@hebcal/core 5.3.4 → 5.3.5

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.3.4 */
2
- var hebcal=function(e){"use strict";const t=[0,31,28,31,30,31,30,31,31,30,31,30,31],n=[t,t.slice()];function r(e,t){return e-t*Math.floor(e/t)}function o(e,t){return Math.floor(e/t)}n[1][2]=29,e.greg=void 0,function(e){function t(e){return!(e%4||!(e%100)&&e%400)}function a(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function i(e,n,r){const a=e-1;return 365*a+o(a,4)-o(a,100)+o(a,400)+o(367*n-362,12)+(n<=2?0:t(e)?-1:-2)+r}e.isLeapYear=t,e.daysInMonth=function(e,r){return n[+t(r)][e]},e.isDate=a,e.greg2abs=function(e){if(!a(e))throw new TypeError(`Argument not a Date: ${e}`);return i(e.getFullYear(),e.getMonth()+1,e.getDate())},e.abs2greg=function(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const n=function(e){const t=e-1,n=o(t,146097),a=r(t,146097),i=o(a,36524),s=r(a,36524),c=o(s,1461),u=o(r(s,1461),365),h=400*n+100*i+4*c+u;return 4!==i&&4!==u?h+1:h}(e=Math.trunc(e)),a=o(12*(e-i(n,1,1)+(e<i(n,3,1)?0:t(n)?1:2))+373,367),s=e-i(n,a,1)+1,c=new Date(n,a-1,s);return n<100&&n>=0&&c.setFullYear(n),c}}(e.greg||(e.greg={}));const a=1,i=2,s=4,c=6,u=7,h=8,l=9,f=10,d=12,g=13,m={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},y=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],p=[y.concat(["Adar","Nisan"]),y.concat(["Adar I","Adar II","Nisan"])],w=new Map,v=-1373428,S=365.24682220597794;function b(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function M(e,t,n){if(b(e,"year"),b(t,"month"),b(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<u){for(let t=u;t<=A(e);t++)r+=D(t,e);for(let n=a;n<t;n++)r+=D(n,e)}else for(let n=u;n<t;n++)r+=D(n,e);return v+O(e)+r-1}function I(e){return v+O(e)}function T(e){if(b(e,"abs"),(e=Math.trunc(e))<=v)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-v)/S);for(;I(t)<=e;)++t;--t;let n=e<M(t,1,1)?7:1;for(;e>M(t,n,D(n,t));)++n;return{yy:t,mm:n,dd:1+e-M(t,n,1)}}function E(e){return(1+7*e)%19<7}function A(e){return+E(e)+12}function D(e,t){switch(e){case i:case s:case c:case f:case g:return 29}return e===d&&!E(t)||e===h&&!k(t)||e===l&&H(t)?29:30}function C(e,t){if(b(e,"month"),b(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return p[+E(t)][e]}function O(e){const t=w.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),a=r%1080+o%24*1080,i=1+29*n+Math.floor(o/24);let s=i;(a>=19440||2==i%7&&a>=9924&&!E(e)||1==i%7&&a>=16789&&E(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return w.set(e,n),n}function N(e){return O(e+1)-O(e)}function k(e){return N(e)%10==5}function H(e){return N(e)%10==3}const L=m.NISAN,R=m.CHESHVAN,P=m.KISLEV,Y=m.TEVET,j=m.SHVAT,F=m.ADAR_I,_=m.ADAR_II;function B(t){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(t))return t;if("number"==typeof t)return T(t);if(e.greg.isDate(t)){return T(e.greg.greg2abs(t))}throw new TypeError(`Argument not a Date: ${t}`)}const x={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},$=new Map,U=new Map;for(const[e,t]of Object.entries(x))$.set(e,t),U.set(t,e);function Z(e){const t=[];for(;e>0;){if(15===e||16===e){t.push(9),t.push(e-9);break}let n,r=100;for(n=400;n>e;n-=r)n===r&&(r/=10);t.push(n),e-=n}return t}function z(e){const t=parseInt(e,10);if(!t)throw new TypeError(`invalid parameter to gematriya ${e}`);let n="";const r=Math.floor(t/1e3);if(r>0&&5!==r){const e=Z(r);for(const t of e)n+=U.get(t);n+="׳"}const o=Z(t%1e3);if(1===o.length)return n+U.get(o[0])+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=U.get(o[e]);return n}function V(e){let t=0;const n=e.indexOf("׳");if(-1!==n&&n!==e.length-1){t+=1e3*V(e.substring(0,n)),e=e.substring(n)}for(const n of e){const e=$.get(n);"number"==typeof e&&(t+=e)}return t}const K={en:{infix:"within ",infix26:"within ",words:["","Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"]},he:{infix:"שֶׁבְּ",infix26:"שֶׁבִּ",words:["","חֶֽסֶד","גְבוּרָה","תִּפאֶרֶת","נֶּֽצַח","הוֹד","יְּסוֹד","מַּלְכוּת"]},translit:{infix:"sheb'",infix26:"shebi",words:["","Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"]}};function J(e){if(e<1||e>49)throw new RangeError(`Invalid Omer day ${e}`)}function G(e){return[Math.floor((e-1)/7)+1,e%7||7]}function W(e,t){return J(e),"en"===t?function(e){const[t,n]=G(e),r=1===e?"day":"days";let o=`Today is ${e} ${r}`;if(t>1||7===e){const e=7===n,r=e?t:t-1;if(o+=`, which is ${r} ${1===r?"week":"weeks"}`,!e){o+=` and ${n} ${1===n?"day":"days"}`}}return o+" of the Omer"}(e):"he"===t?function(e){const t=Math.floor(e/10),n=e%10;let r="הַיּוֹם ";10<e&&e<20?r+=X[n]+" עָשָׂר":e>9&&(r+=X[n],n&&(r+=" ",r+=3===t?"וּ":"וְ"));e>2?((e>20||10===e||20===e)&&(r+=q[t]),r+=e<11?X[n]+" "+ee+" ":" "+re+" "):r+=1===e?oe+" ":te+" ";if(e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?X[t]+" "+ne+" ":1===t?"שָׁבֽוּעַ "+X[1]+" ":Q+" "+ne+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?X[n]+" "+ee+" ":1===n?oe+" ":te+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(e):void 0}const q=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],X=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],Q="שְׁנֵי",ee="יָמִים",te=Q+" "+ee,ne="שָׁבוּעוֹת",re="יוֹם",oe=re+" "+X[1];const ae={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},ie={h:"he",a:"ashkenazi",s:"en","":"en"},se=new Map;let ce=null,ue=null;class he{static lookupTranslation(e,t){const n=null==t?void 0:t.toLowerCase(),r=("string"==typeof t&&se.get(n)||ce)[e];if(null!=r&&r.length&&r[0].length)return r[0]}static gettext(e,t){const n=this.lookupTranslation(e,t);return void 0===n?e:n}static addLocale(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);se.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=se.get(r);if(!o)throw new TypeError(`Unknown locale: ${e}`);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id: ${t}`);const a=Array.isArray(n);if(a){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]=a?n:[n]}static addTranslations(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const n=e.toLowerCase(),r=se.get(n);if(!r)throw new TypeError(`Unknown locale: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const o=t.contexts[""];Object.assign(r,o)}static useLocale(e){const t=e.toLowerCase(),n=se.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return ue=ie[t]||t,ce=n,ce}static getLocaleName(){return ue}static getLocaleNames(){return Array.from(se.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||ue;if(!n)return this.getEnOrdinal(e);switch(n){case"en":case"s":case"a":case"ashkenazi":case"ashkenazi_litvish":case"ashkenazi_poylish":case"ashkenazi_standard":return this.getEnOrdinal(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e);default:return e+"."}}static getEnOrdinal(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}function le(e){throw new TypeError(e)}he.addLocale("en",ae),he.addLocale("s",ae),he.addLocale("",ae),he.useLocale("en");const fe="day",de="week",ge="month",me="year",ye={d:fe,w:de,M:ge,y:me},pe={day:fe,week:de,month:ge,year:me};class we{constructor(t,n,r){if(2==arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3==arguments.length){if(this.dd=this.mm=1,r=parseInt(r,10),isNaN(r))throw new TypeError(`HDate called with bad year argument: ${r}`);if(this.yy=r,this.setMonth(n),t=parseInt(t,10),isNaN(t))throw new TypeError(`HDate called with bad day argument: ${t}`);this.setDate(t)}else{null==t&&(t=new Date);const n="number"!=typeof t||isNaN(t)?e.greg.isDate(t)?e.greg.greg2abs(t):"number"==typeof t.yy&&"number"==typeof t.mm&&"number"==typeof t.dd?t:le(`HDate called with bad argument: ${t}`):t,r="number"==typeof n,o=r?T(n):n;this.dd=o.dd,this.mm=o.mm,this.yy=o.yy,r&&(this.rd=n)}}getFullYear(){return this.yy}isLeapYear(){return E(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=A(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return D(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){return function(e,t){return e-t*Math.floor(e/t)}(this.abs(),7)}setMonth(e){return this.mm=we.monthNum(e),ve(this),this}setDate(e){return this.dd=e,ve(this),this}greg(){return e.greg.abs2greg(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=M(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return M(e,t,n)}getMonthName(){return C(this.getMonth(),this.getFullYear())}render(){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||he.getLocaleName(),n=this.getDate(),r=he.gettext(this.getMonthName(),t).replace(/'/g,"’"),o=`${he.ordinal(n,t)}${we.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=he.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=he.gettext(this.getMonthName(),n),o=this.getFullYear();return z(t)+" "+r+" "+z(o)}before(e){return be(e,this,-1)}onOrBefore(e){return be(e,this,0)}nearest(e){return be(e,this,3)}onOrAfter(e){return be(e,this,6)}after(e){return be(e,this,7)}next(){return new we(this.abs()+1)}prev(){return new we(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e=parseInt(e,10)))return new we(this);if(t=we.standardizeUnits(t),t===fe)return new we(this.abs()+e);if(t===de)return new we(this.abs()+7*e);if(t===me)return new we(this.getDate(),this.getMonth(),this.getFullYear()+e);if(t===ge){let t=new we(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new we(t.abs()+n*t.daysInMonth());return t}}static standardizeUnits(e){const t=ye[e]||String(e||"").toLowerCase().replace(/s$/,"");return pe[t]||le(`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(!we.isHDate(e))throw new TypeError(`Bad argument: ${e}`);return this.abs()-e.abs()}isSameDate(e){return!!we.isHDate(e)&&(this.yy==e.yy&&this.mm==e.mm&&this.dd==e.dd)}toString(){const e=this.getDate(),t=this.getFullYear();return`${e} ${this.getMonthName()} ${t}`}static isLeapYear(e){return E(e)}static monthsInYear(e){return A(e)}static daysInMonth(e,t){return D(e,t)}static getMonthName(e,t){return C(e,t)}static monthNum(e){if("number"==typeof e){if(isNaN(e)||e>14)throw new RangeError(`Invalid month number: ${e}`);return e}return e.charCodeAt(0)>=48&&e.charCodeAt(0)<=57?parseInt(e,10):we.monthFromName(e)}static daysInYear(e){return N(e)}static longCheshvan(e){return k(e)}static shortKislev(e){return H(e)}static monthFromName(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}return function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}let t=e.trim().toLowerCase();switch("ב"===t[0]&&(t=t.substring(1)),t[0]){case"n":case"נ":if("o"===t[1])break;return m.NISAN;case"i":return m.IYYAR;case"e":return m.ELUL;case"c":case"ח":return m.CHESHVAN;case"k":case"כ":return m.KISLEV;case"s":switch(t[1]){case"i":return m.SIVAN;case"h":return m.SHVAT}break;case"t":switch(t[1]){case"a":return m.TAMUZ;case"i":return m.TISHREI;case"e":return m.TEVET}break;case"a":switch(t[1]){case"v":return m.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?m.ADAR_I:m.ADAR_II}break;case"ס":return m.SIVAN;case"ט":return m.TEVET;case"ש":return m.SHVAT;case"א":switch(t[1]){case"ב":return m.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?m.ADAR_I:m.ADAR_II;case"י":return m.IYYAR;case"ל":return m.ELUL}break;case"ת":switch(t[1]){case"מ":return m.TAMUZ;case"ש":return m.TISHREI}}throw new RangeError(`Unable to parse month name: ${e}`)}(he.hebrewStripNikkud(e))}static dayOnOrBefore(e,t){return t-(t-e)%7}static isHDate(e){return null!==e&&"object"==typeof e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd&&"function"==typeof e.greg&&"function"==typeof e.abs}static fromGematriyaString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;const n=e.split(" ").filter((e=>0!==e.length)),r=n.length;if(3!==r&&4!==r)throw new RangeError(`Unable to parse gematriya string: "${e}"`);const o=V(n[0]),a=3===r?n[1]:n[1]+" "+n[2],i=we.monthFromName(a);let s=V(3===r?n[2]:n[3]);return s<1e3&&(s+=t),new we(o,i,s)}}function ve(e){Se(e),function(e){e.dd<1&&(e.mm==m.TISHREI&&(e.yy-=1),e.dd+=D(e.mm,e.yy),e.mm-=1,ve(e));e.dd>D(e.mm,e.yy)&&(e.mm===m.ELUL&&(e.yy+=1),e.dd-=D(e.mm,e.yy),e.mm===A(e.yy)?e.mm=1:e.mm+=1,ve(e));Se(e)}(e)}function Se(e){e.mm!==m.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=A(e.yy),e.yy-=1,ve(e)):e.mm>A(e.yy)&&(e.mm-=A(e.yy),e.yy+=1,ve(e)):(e.mm-=1,ve(e)),delete e.rd}function be(e,t,n){return new we(we.dayOnOrBefore(e,t.abs()+n))}const Me={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,DAILY_LEARNING:67108864},Ie=[[Me.MAJOR_FAST,"holiday","major","fast"],[Me.CHANUKAH_CANDLES,"holiday","major"],[Me.HEBREW_DATE,"hebdate"],[Me.MINOR_FAST,"holiday","fast"],[Me.MINOR_HOLIDAY,"holiday","minor"],[Me.MODERN_HOLIDAY,"holiday","modern"],[Me.MOLAD,"molad"],[Me.OMER_COUNT,"omer"],[Me.PARSHA_HASHAVUA,"parashat"],[Me.ROSH_CHODESH,"roshchodesh"],[Me.SHABBAT_MEVARCHIM,"mevarchim"],[Me.SPECIAL_SHABBAT,"holiday","shabbat"],[Me.USER_EVENT,"user"]];class Te{constructor(e,t,n,r){this.date=e,this.desc=t,this.mask=+n,"object"==typeof r&&null!==r&&Object.assign(this,r)}getDate(){return this.date}getDesc(){return this.desc}getFlags(){return this.mask}render(e){return he.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&Me.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&Me.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 Ie)if(e&t[0])return t.slice(1);return["unknown"]}}class Ee extends Te{constructor(e){super(e,e.toString(),Me.HEBREW_DATE)}render(e){const t=(null==e?void 0:e.toLowerCase())||he.getLocaleName(),n=this.getDate();switch(t){case"h":case"he":return n.renderGematriya(!1);case"he-x-nonikud":return n.renderGematriya(!0);default:return n.render(t,!0)}}renderBriefHebrew(e){const t=this.getDate(),n=t.getDate(),r=he.gettext(t.getMonthName(),e);return z(n)+" "+r}renderBrief(e){const t=(null==e?void 0:e.toLowerCase())||he.getLocaleName(),n=this.getDate();if(n.getMonth()===m.TISHREI&&1===n.getDate())return this.render(t);switch(t){case"h":case"he":case"he-x-nonikud":return this.renderBriefHebrew(t);default:return n.render(t,!1)}}}var Ae="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},De=function(e){return e&&e.Math===Math&&e},Ce=De("object"==typeof globalThis&&globalThis)||De("object"==typeof window&&window)||De("object"==typeof self&&self)||De("object"==typeof Ae&&Ae)||De("object"==typeof Ae&&Ae)||function(){return this}()||Function("return this")(),Oe={},Ne=function(e){try{return!!e()}catch(e){return!0}},ke=!Ne((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),He=!Ne((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Le=He,Re=Function.prototype.call,Pe=Le?Re.bind(Re):function(){return Re.apply(Re,arguments)},Ye={},je={}.propertyIsEnumerable,Fe=Object.getOwnPropertyDescriptor,_e=Fe&&!je.call({1:2},1);Ye.f=_e?function(e){var t=Fe(this,e);return!!t&&t.enumerable}:je;var Be,xe,$e=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ue=He,Ze=Function.prototype,ze=Ze.call,Ve=Ue&&Ze.bind.bind(ze,ze),Ke=Ue?Ve:function(e){return function(){return ze.apply(e,arguments)}},Je=Ke,Ge=Je({}.toString),We=Je("".slice),qe=Ne,Xe=function(e){return We(Ge(e),8,-1)},Qe=Object,et=Ke("".split),tt=qe((function(){return!Qe("z").propertyIsEnumerable(0)}))?function(e){return"String"===Xe(e)?et(e,""):Qe(e)}:Qe,nt=function(e){return null==e},rt=nt,ot=TypeError,at=function(e){if(rt(e))throw new ot("Can't call method on "+e);return e},it=tt,st=at,ct=function(e){return it(st(e))},ut="object"==typeof document&&document.all,ht=void 0===ut&&void 0!==ut?function(e){return"function"==typeof e||e===ut}:function(e){return"function"==typeof e},lt=ht,ft=function(e){return"object"==typeof e?null!==e:lt(e)},dt=Ce,gt=ht,mt=function(e,t){return arguments.length<2?(n=dt[e],gt(n)?n:void 0):dt[e]&&dt[e][t];var n},yt=Ke({}.isPrototypeOf),pt=Ce,wt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",vt=pt.process,St=pt.Deno,bt=vt&&vt.versions||St&&St.version,Mt=bt&&bt.v8;Mt&&(xe=(Be=Mt.split("."))[0]>0&&Be[0]<4?1:+(Be[0]+Be[1])),!xe&&wt&&(!(Be=wt.match(/Edge\/(\d+)/))||Be[1]>=74)&&(Be=wt.match(/Chrome\/(\d+)/))&&(xe=+Be[1]);var It=xe,Tt=Ne,Et=Ce.String,At=!!Object.getOwnPropertySymbols&&!Tt((function(){var e=Symbol("symbol detection");return!Et(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&It&&It<41})),Dt=At&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ct=mt,Ot=ht,Nt=yt,kt=Object,Ht=Dt?function(e){return"symbol"==typeof e}:function(e){var t=Ct("Symbol");return Ot(t)&&Nt(t.prototype,kt(e))},Lt=String,Rt=ht,Pt=function(e){try{return Lt(e)}catch(e){return"Object"}},Yt=TypeError,jt=function(e){if(Rt(e))return e;throw new Yt(Pt(e)+" is not a function")},Ft=nt,_t=Pe,Bt=ht,xt=ft,$t=TypeError,Ut={exports:{}},Zt=Ce,zt=Object.defineProperty,Vt=function(e,t){try{zt(Zt,e,{value:t,configurable:!0,writable:!0})}catch(n){Zt[e]=t}return t},Kt=Ce,Jt=Vt,Gt="__core-js_shared__",Wt=Ut.exports=Kt[Gt]||Jt(Gt,{});(Wt.versions||(Wt.versions=[])).push({version:"3.37.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE",source:"https://github.com/zloirock/core-js"});var qt=Ut.exports,Xt=qt,Qt=function(e,t){return Xt[e]||(Xt[e]=t||{})},en=at,tn=Object,nn=function(e){return tn(en(e))},rn=Ke({}.hasOwnProperty),on=Object.hasOwn||function(e,t){return rn(nn(e),t)},an=Ke,sn=0,cn=Math.random(),un=an(1..toString),hn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+un(++sn+cn,36)},ln=Qt,fn=on,dn=hn,gn=At,mn=Dt,yn=Ce.Symbol,pn=ln("wks"),wn=mn?yn.for||yn:yn&&yn.withoutSetter||dn,vn=function(e){return fn(pn,e)||(pn[e]=gn&&fn(yn,e)?yn[e]:wn("Symbol."+e)),pn[e]},Sn=Pe,bn=ft,Mn=Ht,In=function(e,t){var n=e[t];return Ft(n)?void 0:jt(n)},Tn=function(e,t){var n,r;if("string"===t&&Bt(n=e.toString)&&!xt(r=_t(n,e)))return r;if(Bt(n=e.valueOf)&&!xt(r=_t(n,e)))return r;if("string"!==t&&Bt(n=e.toString)&&!xt(r=_t(n,e)))return r;throw new $t("Can't convert object to primitive value")},En=TypeError,An=vn("toPrimitive"),Dn=function(e,t){if(!bn(e)||Mn(e))return e;var n,r=In(e,An);if(r){if(void 0===t&&(t="default"),n=Sn(r,e,t),!bn(n)||Mn(n))return n;throw new En("Can't convert object to primitive value")}return void 0===t&&(t="number"),Tn(e,t)},Cn=Ht,On=function(e){var t=Dn(e,"string");return Cn(t)?t:t+""},Nn=ft,kn=Ce.document,Hn=Nn(kn)&&Nn(kn.createElement),Ln=function(e){return Hn?kn.createElement(e):{}},Rn=Ln,Pn=!ke&&!Ne((function(){return 7!==Object.defineProperty(Rn("div"),"a",{get:function(){return 7}}).a})),Yn=ke,jn=Pe,Fn=Ye,_n=$e,Bn=ct,xn=On,$n=on,Un=Pn,Zn=Object.getOwnPropertyDescriptor;Oe.f=Yn?Zn:function(e,t){if(e=Bn(e),t=xn(t),Un)try{return Zn(e,t)}catch(e){}if($n(e,t))return _n(!jn(Fn.f,e,t),e[t])};var zn={},Vn=ke&&Ne((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Kn=ft,Jn=String,Gn=TypeError,Wn=function(e){if(Kn(e))return e;throw new Gn(Jn(e)+" is not an object")},qn=ke,Xn=Pn,Qn=Vn,er=Wn,tr=On,nr=TypeError,rr=Object.defineProperty,or=Object.getOwnPropertyDescriptor,ar="enumerable",ir="configurable",sr="writable";zn.f=qn?Qn?function(e,t,n){if(er(e),t=tr(t),er(n),"function"==typeof e&&"prototype"===t&&"value"in n&&sr in n&&!n[sr]){var r=or(e,t);r&&r[sr]&&(e[t]=n.value,n={configurable:ir in n?n[ir]:r[ir],enumerable:ar in n?n[ar]:r[ar],writable:!1})}return rr(e,t,n)}:rr:function(e,t,n){if(er(e),t=tr(t),er(n),Xn)try{return rr(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new nr("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var cr=zn,ur=$e,hr=ke?function(e,t,n){return cr.f(e,t,ur(1,n))}:function(e,t,n){return e[t]=n,e},lr={exports:{}},fr=ke,dr=on,gr=Function.prototype,mr=fr&&Object.getOwnPropertyDescriptor,yr=dr(gr,"name"),pr={EXISTS:yr,PROPER:yr&&"something"===function(){}.name,CONFIGURABLE:yr&&(!fr||fr&&mr(gr,"name").configurable)},wr=ht,vr=qt,Sr=Ke(Function.toString);wr(vr.inspectSource)||(vr.inspectSource=function(e){return Sr(e)});var br,Mr,Ir,Tr=vr.inspectSource,Er=ht,Ar=Ce.WeakMap,Dr=Er(Ar)&&/native code/.test(String(Ar)),Cr=hn,Or=Qt("keys"),Nr=function(e){return Or[e]||(Or[e]=Cr(e))},kr={},Hr=Dr,Lr=Ce,Rr=ft,Pr=hr,Yr=on,jr=qt,Fr=Nr,_r=kr,Br="Object already initialized",xr=Lr.TypeError,$r=Lr.WeakMap;if(Hr||jr.state){var Ur=jr.state||(jr.state=new $r);Ur.get=Ur.get,Ur.has=Ur.has,Ur.set=Ur.set,br=function(e,t){if(Ur.has(e))throw new xr(Br);return t.facade=e,Ur.set(e,t),t},Mr=function(e){return Ur.get(e)||{}},Ir=function(e){return Ur.has(e)}}else{var Zr=Fr("state");_r[Zr]=!0,br=function(e,t){if(Yr(e,Zr))throw new xr(Br);return t.facade=e,Pr(e,Zr,t),t},Mr=function(e){return Yr(e,Zr)?e[Zr]:{}},Ir=function(e){return Yr(e,Zr)}}var zr={set:br,get:Mr,has:Ir,enforce:function(e){return Ir(e)?Mr(e):br(e,{})},getterFor:function(e){return function(t){var n;if(!Rr(t)||(n=Mr(t)).type!==e)throw new xr("Incompatible receiver, "+e+" required");return n}}},Vr=Ke,Kr=Ne,Jr=ht,Gr=on,Wr=ke,qr=pr.CONFIGURABLE,Xr=Tr,Qr=zr.enforce,eo=zr.get,to=String,no=Object.defineProperty,ro=Vr("".slice),oo=Vr("".replace),ao=Vr([].join),io=Wr&&!Kr((function(){return 8!==no((function(){}),"length",{value:8}).length})),so=String(String).split("String"),co=lr.exports=function(e,t,n){"Symbol("===ro(to(t),0,7)&&(t="["+oo(to(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Gr(e,"name")||qr&&e.name!==t)&&(Wr?no(e,"name",{value:t,configurable:!0}):e.name=t),io&&n&&Gr(n,"arity")&&e.length!==n.arity&&no(e,"length",{value:n.arity});try{n&&Gr(n,"constructor")&&n.constructor?Wr&&no(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=Qr(e);return Gr(r,"source")||(r.source=ao(so,"string"==typeof t?t:"")),e};Function.prototype.toString=co((function(){return Jr(this)&&eo(this).source||Xr(this)}),"toString");var uo=lr.exports,ho=ht,lo=zn,fo=uo,go=Vt,mo={},yo=Math.ceil,po=Math.floor,wo=Math.trunc||function(e){var t=+e;return(t>0?po:yo)(t)},vo=wo,So=function(e){var t=+e;return t!=t||0===t?0:vo(t)},bo=So,Mo=Math.max,Io=Math.min,To=So,Eo=Math.min,Ao=function(e){var t=To(e);return t>0?Eo(t,9007199254740991):0},Do=ct,Co=function(e,t){var n=bo(e);return n<0?Mo(n+t,0):Io(n,t)},Oo=function(e){return Ao(e.length)},No=function(e){return function(t,n,r){var o=Do(t),a=Oo(o);if(0===a)return!e&&-1;var i,s=Co(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},ko={includes:No(!0),indexOf:No(!1)},Ho=on,Lo=ct,Ro=ko.indexOf,Po=kr,Yo=Ke([].push),jo=function(e,t){var n,r=Lo(e),o=0,a=[];for(n in r)!Ho(Po,n)&&Ho(r,n)&&Yo(a,n);for(;t.length>o;)Ho(r,n=t[o++])&&(~Ro(a,n)||Yo(a,n));return a},Fo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_o=jo,Bo=Fo.concat("length","prototype");mo.f=Object.getOwnPropertyNames||function(e){return _o(e,Bo)};var xo={};xo.f=Object.getOwnPropertySymbols;var $o=mt,Uo=mo,Zo=xo,zo=Wn,Vo=Ke([].concat),Ko=$o("Reflect","ownKeys")||function(e){var t=Uo.f(zo(e)),n=Zo.f;return n?Vo(t,n(e)):t},Jo=on,Go=Ko,Wo=Oe,qo=zn,Xo=Ne,Qo=ht,ea=/#|\.prototype\./,ta=function(e,t){var n=ra[na(e)];return n===aa||n!==oa&&(Qo(t)?Xo(t):!!t)},na=ta.normalize=function(e){return String(e).replace(ea,".").toLowerCase()},ra=ta.data={},oa=ta.NATIVE="N",aa=ta.POLYFILL="P",ia=ta,sa=Ce,ca=Oe.f,ua=hr,ha=function(e,t,n,r){r||(r={});var o=r.enumerable,a=void 0!==r.name?r.name:t;if(ho(n)&&fo(n,a,r),r.global)o?e[t]=n:go(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:lo.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},la=Vt,fa=function(e,t,n){for(var r=Go(t),o=qo.f,a=Wo.f,i=0;i<r.length;i++){var s=r[i];Jo(e,s)||n&&Jo(n,s)||o(e,s,a(t,s))}},da=ia,ga={},ma=jo,ya=Fo,pa=Object.keys||function(e){return ma(e,ya)},wa=ke,va=Vn,Sa=zn,ba=Wn,Ma=ct,Ia=pa;ga.f=wa&&!va?Object.defineProperties:function(e,t){ba(e);for(var n,r=Ma(t),o=Ia(t),a=o.length,i=0;a>i;)Sa.f(e,n=o[i++],r[n]);return e};var Ta,Ea=mt("document","documentElement"),Aa=Wn,Da=ga,Ca=Fo,Oa=kr,Na=Ea,ka=Ln,Ha="prototype",La="script",Ra=Nr("IE_PROTO"),Pa=function(){},Ya=function(e){return"<"+La+">"+e+"</"+La+">"},ja=function(e){e.write(Ya("")),e.close();var t=e.parentWindow.Object;return e=null,t},Fa=function(){try{Ta=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Fa="undefined"!=typeof document?document.domain&&Ta?ja(Ta):(t=ka("iframe"),n="java"+La+":",t.style.display="none",Na.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Ya("document.F=Object")),e.close(),e.F):ja(Ta);for(var r=Ca.length;r--;)delete Fa[Ha][Ca[r]];return Fa()};Oa[Ra]=!0;var _a=Object.create||function(e,t){var n;return null!==e?(Pa[Ha]=Aa(e),n=new Pa,Pa[Ha]=null,n[Ra]=e):n=Fa(),void 0===t?n:Da.f(n,t)},Ba=vn,xa=_a,$a=zn.f,Ua=Ba("unscopables"),Za=Array.prototype;void 0===Za[Ua]&&$a(Za,Ua,{configurable:!0,value:xa(null)});var za=ko.includes,Va=function(e){Za[Ua][e]=!0};function Ka(e,t,n,r,o){return Ja(t,Ga(e,t),n,r,o)}function Ja(e,t,n,r,o,a){const i=yi(t,n,r);if(o&&t!==i)throw new RangeError(Il(e,t,n,r,a));return i}function Ga(e,t){const n=e[t];if(void 0===n)throw new TypeError(El(t));return n}function Wa(e){return null!==e&&/object|function/.test(typeof e)}function qa(e){const t=new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Map);return function(n){if(t.has(n))return t.get(n);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];const i=e(n,...o);return t.set(n,i),i}}function Xa(e){return Qa({name:e},1)}function Qa(e,t){return ri((e=>({value:e,configurable:1,writable:!t})),e)}function ei(e){return ri((e=>({get:e,configurable:1})),e)}function ti(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function ni(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function ri(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function oi(e,t,n){const r={};for(let o=0;o<t.length;o++){const a=t[o];r[a]=e(a,o,n)}return r}function ai(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function ii(e,t){const n={};for(const r of e)n[r]=t[r];return n}function si(e,t){const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n}function ci(e){e={...e};const t=Object.keys(e);for(const n of t)void 0===e[n]&&delete e[n];return e}function ui(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function hi(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function li(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(...n,...r)}}function fi(e){return e[0].toUpperCase()+e.substring(1)}function di(e){return e.slice().sort()}function gi(e,t){return String(t).padStart(e,"0")}function mi(e,t){return Math.sign(e-t)}function yi(e,t,n){return Math.min(Math.max(e,t),n)}function pi(e,t){return[Math.floor(e/t),wi(e,t)]}function wi(e,t){return(e%t+t)%t}function vi(e,t){return[Si(e,t),bi(e,t)]}function Si(e,t){return Math.trunc(e/t)||0}function bi(e,t){return e%t||0}function Mi(e){return.5===Math.abs(e%1)}function Ii(e,t,n){let r=0,o=0;for(let a=0;a<=t;a++){const t=e[n[a]],i=bf[a],s=Sf/i,[c,u]=vi(t,s);r+=u*i,o+=c}const[a,i]=vi(r,Sf);return[o+a,i]}function Ti(e,t,n){const r={};for(let o=t;o>=0;o--){const t=bf[o];r[n[o]]=Si(e,t),e=bi(e,t)}return r}function Ei(e){if(void 0!==e)return Di(e)}function Ai(e){return Li(Di(e))}function Di(e){return Hi(Jf(e))}function Ci(e){if(null==e)throw new TypeError("Cannot be null or undefined");return e}function Oi(e,t){if(null==t)throw new RangeError(El(e));return t}function Ni(e){if(!Wa(e))throw new TypeError(Ml);return e}function ki(e,t){if(typeof t!==e)throw new TypeError(Tl(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t));return t}function Hi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(!Number.isInteger(e))throw new RangeError(yl(t,e));return e||0}function Li(e){if(e<=0)throw new RangeError(pl(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",e));return e}function Ri(e){if("symbol"==typeof e)throw new TypeError(bl);return String(e)}function Pi(e,t){return Wa(e)?String(e):Vf(e,t)}function Yi(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(Sl(e));return e}function ji(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if("bigint"==typeof e)throw new TypeError(vl(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(wl(t,e));return e}function Fi(e,t){return Math.trunc(ji(e,t))||0}function _i(e,t){return Hi(ji(e,t),t)}function Bi(e,t){return Li(Fi(e,t),t)}function xi(e,t){let[n,r]=vi(t,Sf),o=e+n;const a=Math.sign(o);return a&&a===-Math.sign(r)&&(o-=a,r+=a*Sf),[o,r]}function $i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return xi(e[0]+t[0]*n,e[1]+t[1]*n)}function Ui(e,t){return xi(e[0],e[1]+t)}function Zi(e,t){return $i(t,e,-1)}function zi(e,t){return mi(e[0],t[0])||mi(e[1],t[1])}function Vi(e,t,n){return-1===zi(e,t)||1===zi(e,n)}function Ki(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=BigInt(Sf/t);return[Number(e/n),Number(e%n)*t]}function Ji(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=Sf/t,[r,o]=vi(e,n);return[r,o*t]}function Gi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,r]=e,o=Math.floor(r/t),a=Sf/t;return BigInt(n)*BigInt(a)+BigInt(o)}function Wi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;const[r,o]=e,[a,i]=vi(o,t);return r*(Sf/t)+(a+(n?i/t:0))}function qi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pi;const[r,o]=e,[a,i]=n(o,t);return[r*(Sf/t)+a,i]}function Xi(e,t){const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function Qi(e){return Ka(e,"isoYear",Sd,vd,1),e.isoYear===Sd?Ka(e,"isoMonth",4,12,1):e.isoYear===vd&&Ka(e,"isoMonth",1,9,1),e}function es(e){return ts({...e,...ld,isoHour:12}),e}function ts(e){const t=Ka(e,"isoYear",Sd,vd,1),n=t===Sd?1:t===vd?-1:0;return n&&ns(cs({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function ns(e){if(!e||Vi(e,wd,pd))throw new RangeError(Wl);return e}function rs(e){return Ii(e,5,ad)[1]}function os(e){const[t,n]=pi(e,Sf);return[Ti(n,5,ad),t]}function as(e){return is(e)[0]}function is(e){return qi(e,pf)}function ss(e){return ls(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function cs(e){const t=ss(e);if(void 0!==t){const[n,r]=vi(t,df);return[n,r*yf+(e.isoMicrosecond||0)*mf+(e.isoNanosecond||0)]}}function us(e,t){const[n,r]=os(rs(e)-t);return ns(cs({...e,isoDay:e.isoDay+r,...n}))}function hs(){return ls(...arguments)/gf}function ls(){const[e,t]=fs(...arguments),n=e.valueOf();if(!isNaN(n))return n-t*df}function fs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;const s=e===Sd?1:e===vd?-1:0,c=new Date;return c.setUTCHours(r,o,a,i),c.setUTCFullYear(e,t-1,n+s),[c,s]}function ds(e,t){let[n,r]=Ui(e,t);r<0&&(r+=Sf,n-=1);const[o,a]=pi(r,yf),[i,s]=pi(a,mf);return gs(n*df+o,i,s)}function gs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=Math.ceil(Math.max(0,Math.abs(e)-yd)/df)*Math.sign(e),o=new Date(e-r*df);return ni(sd,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+r,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,n])}function ms(e){return[e.isoYear,e.isoMonth,e.isoDay]}function ys(){return Id}function ps(e,t){switch(t){case 2:return vs(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function ws(e){return vs(e)?366:365}function vs(e){return e%4==0&&(e%100!=0||e%400==0)}function Ss(e){const[t,n]=fs(e.isoYear,e.isoMonth,e.isoDay);return wi(t.getUTCDay()-n,7)||7}function bs(e){let{isoYear:t}=e;return t<1?["bce",1-t]:["ce",t]}function Ms(e){const t=ss(e);if(t<Td)return bs(e);const n=Xi(Hg($f),t),{era:r,eraYear:o}=Sh(n,$f);return[r,o]}function Is(e){return Ts(e),Ds(e,1),e}function Ts(e){return As(e,1),e}function Es(e){return ui(id,e,As(e))}function As(e,t){const{isoYear:n}=e,r=Ka(e,"isoMonth",1,ys(),t);return{isoYear:n,isoMonth:r,isoDay:Ka(e,"isoDay",1,ps(n,r),t)}}function Ds(e,t){return ni(ad,[Ka(e,"isoHour",0,23,t),Ka(e,"isoMinute",0,59,t),Ka(e,"isoSecond",0,59,t),Ka(e,"isoMillisecond",0,999,t),Ka(e,"isoMicrosecond",0,999,t),Ka(e,"isoNanosecond",0,999,t)])}function Cs(e){return void 0===e?0:$d(Ni(e))}function Os(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=Bs(e);const n=Ud(e),r=Zd(e,t);return[$d(e),r,n]}function Ns(e){return Ud(Bs(e))}function ks(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:9,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:4;t=Bs(t);let i=Bd(t,r,o),s=js(t),c=Jd(t,a);const u=_d(t,r,o,1);return null==i?i=Math.max(n,u):Vs(i,u),s=Fs(s,u,1),e&&(c=(e=>e<4?(e+2)%4:e)(c)),[i,u,s,c]}function Hs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=arguments.length>2?arguments[2]:void 0,r=js(e=xs(e,Ad));const o=Jd(e,7);let a=_d(e,t);return a=Oi(Ad,a),r=Fs(r,a,void 0,n),[a,r,o]}function Ls(e){return zd(Bs(e))}function Rs(e,t){return Ps(Bs(e),t)}function Ps(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=_s(e);return[Jd(e,4),...Ys(_d(e,t),n)]}function Ys(e,t){return null!=e?[bf[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function js(e){const t=e[Cd];return void 0===t?1:Fi(t,Cd)}function Fs(e,t,n,r){const o=r?Sf:bf[t+1];if(o){const n=bf[t];if(o%((e=Ja(Cd,e,1,o/n-(r?0:1),1))*n))throw new RangeError(Tl(Cd,e))}else e=Ja(Cd,e,1,n?10**9:1,1);return e}function _s(e){let t=e[Od];if(void 0!==t){if("number"!=typeof t){if("auto"===Ri(t))return;throw new RangeError(Tl(Od,t))}t=Ja(Od,Math.floor(t),0,9,1)}return t}function Bs(e){return void 0===e?{}:Ni(e)}function xs(e,t){return"string"==typeof e?{[t]:e}:Ni(e)}function $s(e){if(void 0!==e){if(Wa(e))return Object.assign(Object.create(null),e);throw new TypeError(Ml)}}function Us(e,t){return e&&Object.assign(Object.create(null),e,{overflow:Hd[t]})}function Zs(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:9,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,a=t[e];if(void 0===a)return o?r:void 0;if(a=Ri(a),"auto"===a)return o?r:null;let i=lf[a];if(void 0===i&&(i=td[a]),void 0===i)throw new RangeError(Ol(e,a,lf));return Ja(e,i,r,n,1,ff),i}function zs(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=n[e];if(void 0===o)return r;const a=Ri(o),i=t[a];if(void 0===i)throw new RangeError(Ol(e,a,t));return i}function Vs(e,t){if(t>e)throw new RangeError(nf)}function Ks(e){return{branding:tg,epochNanoseconds:e}}function Js(e,t,n){return{branding:eg,calendar:n,timeZone:t,epochNanoseconds:e}}function Gs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Xd,calendar:t,...ii(hd,e)}}function Ws(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:qd,calendar:t,...ii(cd,e)}}function qs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Gd,calendar:t,...ii(cd,e)}}function Xs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Wd,calendar:t,...ii(cd,e)}}function Qs(e){return{branding:Qd,...ii(ud,e)}}function ec(e){return{branding:ng,sign:pu(e),...ii(qf,e)}}function tc(e){return qi(e.epochNanoseconds,yf)[0]}function nc(e){return e.epochNanoseconds}function rc(e){return"string"==typeof e?e:Vf(e.id)}function oc(e,t){return e===t||rc(e)===rc(t)}function ac(e,t,n,r,o,a){const i={...nd,[Wf[t]]:n},s=a(r,e),c=a(s,i);return[o(s),o(c)]}function ic(e,t,n){const r=Wi(Zi(t,n));if(!r)throw new RangeError(xl);return Wi(Zi(t,e))/r}function sc(e,t,n,r){return cc(e,lc(t,n),r)}function cc(e,t,n){const[r,o]=uc(e,t,n);return ts({...iu(e,o),...r})}function uc(e,t,n){return os(wc(rs(e),t,n))}function hc(e){return wc(e,wf,7)}function lc(e,t){return bf[e]*t}function fc(e){const t=dc(e);return[t,iu(t,1)]}function dc(e){return fd(6,e)}function gc(e,t,n){const r=Math.min(Tu(e),6);return bu(pc(Su(e,r),t,n),r)}function mc(e,t,n,r,o,a,i,s,c){if(0===r&&1===o)return e;const u=r>6?Mc:lu(i)&&r<6?bc:Sc;let[h,l,f]=u(e,t,n,r,o,a,i,s,c);return f&&(h=((e,t,n,r,o,a,i)=>{const s=pu(e);for(let c=r+1;c<=n;c++){if(7===c&&7!==n)continue;const r=od(c,e);r[Wf[c]]+=s;const u=Wi(Zi(a(i(o,r)),t));if(u&&Math.sign(u)!==s)break;e=r}return e})(h,l,n,Math.max(6,r),i,s,c)),h}function yc(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/Sf)(e);return[wc(t,n,r),0]}return pc(e,lc(t,n),r,o)}function pc(e,t,n,r){let[o,a]=e;r&&a<0&&(a+=Sf,o-=1);const[i,s]=pi(wc(a,t,n),Sf);return xi(o+i,s)}function wc(e,t,n){return vc(e/t,n)*t}function vc(e,t){return rg[t](e)}function Sc(e,t,n,r,o,a){const i=pu(e),s=Su(e),c=yc(s,r,o,a),u=Zi(s,c),h=Math.sign(c[0]-s[0])===i,l=bu(c,Math.min(n,6));return[{...e,...l},$i(t,u),h]}function bc(e,t,n,r,o,a,i,s,c){const u=pu(e);let[h,l]=Su(e,5);const f=lc(r,o);let d=wc(l,f,a);const[g,m]=ac({...e,...rd},6,u,i,s,c),y=d-Wi(Zi(g,m));y&&Math.sign(y)!==u?t=Ui(g,d):(h+=u,d=wc(y,f,a),t=Ui(m,d));const p=Mu(d);return[{...e,...p,days:e.days+h},t,Boolean(h)]}function Mc(e,t,n,r,o,a,i,s,c){const u=pu(e),h=Wf[r],l=od(r,e),f=Si(e[h],o)*o;l[h]=f;const[d,g]=ac(l,r,o*u,i,s,c),m=f+ic(t,d,g)*u*o,y=wc(m,o,a),p=Math.sign(y-m)===u;return l[h]=y,[l,p?g:d,p]}function Ic(e,t,n,r){const[o,a,i,s]=(e=>{const t=Ps(e=Bs(e));return[e.timeZone,...t]})(r),c=void 0!==o;return((e,t,n,r,o,a)=>{n=pc(n,o,r,1);const i=t.getOffsetNanosecondsFor(n);return Lc(ds(n,i),a)+(e?Fc(hc(i)):"Z")})(c,t(c?e(o):og),n.epochNanoseconds,a,i,s)}function Tc(e,t,n){const[r,o,a,i,s,c]=(e=>{e=Bs(e);const t=zd(e),n=_s(e),r=Kd(e),o=Jd(e,4),a=_d(e,4);return[t,Vd(e),r,o,...Ys(a,n)]})(n);return((e,t,n,r,o,a,i,s,c,u)=>{r=pc(r,c,s,1);const h=e(n).getOffsetNanosecondsFor(r);return Lc(ds(r,h),u)+Fc(hc(h),i)+((e,t)=>1!==t?"["+(2===t?"!":"")+rc(e)+"]":"")(n,a)+_c(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,a,i,s,c)}function Ec(e,t){const[n,r,o,a]=(e=>(e=Bs(e),[zd(e),...Ps(e)]))(t);return i=e.calendar,s=n,c=a,Lc(cc(e,o,r),c)+_c(i,s);var i,s,c}function Ac(e,t){return n=e.calendar,r=e,o=Ls(t),Rc(r)+_c(n,o);var n,r,o}function Dc(e,t){return kc(e.calendar,Pc,e,Ls(t))}function Cc(e,t){return kc(e.calendar,Yc,e,Ls(t))}function Oc(e,t){const[n,r,o]=Rs(t);return a=o,jc(uc(e,r,n)[0],a);var a}function Nc(e,t){const[n,r,o]=Rs(t,3);return r>1&&(e={...e,...gc(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?yu(e):e,{hours:o,minutes:a}=r,[i,s]=qi(Su(r,3),pf,vi);vu(i);const c=xc(s,t),u=t>=0||!n||c;return(n<0?"-":"")+"P"+Hc({Y:Uc(r.years),M:Uc(r.months),W:Uc(r.weeks),D:Uc(r.days)})+(o||a||i||u?"T"+Hc({H:Uc(o),M:Uc(a),S:Uc(i,u)+c}):"")})(e,o)}function kc(e,t,n,r){const o=rc(e),a=r>1||0===r&&o!==Bf;return 1===r?o===Bf?t(n):Rc(n):a?Rc(n)+Bc(o,2===r):t(n)}function Hc(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function Lc(e,t){return Rc(e)+"T"+jc(e,t)}function Rc(e){return Pc(e)+"-"+hf(e.isoDay)}function Pc(e){const{isoYear:t}=e;return(t<0||t>9999?$c(t)+gi(6,Math.abs(t)):gi(4,t))+"-"+hf(e.isoMonth)}function Yc(e){return hf(e.isoMonth)+"-"+hf(e.isoDay)}function jc(e,t){const n=[hf(e.isoHour),hf(e.isoMinute)];return-1!==t&&n.push(hf(e.isoSecond)+((e,t,n,r)=>xc(e*yf+t*mf+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function Fc(e){if(1===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0))return"";const[t,n]=pi(Math.abs(e),vf),[r,o]=pi(n,wf),[a,i]=pi(o,pf);return $c(e)+hf(t)+":"+hf(r)+(a||i?":"+hf(a)+xc(i):"")}function _c(e,t){if(1!==t){const n=rc(e);if(t>1||0===t&&n!==Bf)return Bc(n,2===t)}return""}function Bc(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function xc(e,t){let n=gi(9,e);return n=void 0===t?n.replace(cg,""):n.slice(0,t),n?"."+n:""}function $c(e){return e<0?"-":"+"}function Uc(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function Zc(e,t){const{epochNanoseconds:n}=e,r=(t.getOffsetNanosecondsFor?t:t(e.timeZone)).getOffsetNanosecondsFor(n),o=ds(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function zc(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,a=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0;if(void 0!==n&&1===r&&(1===r||i))return us(t,n);const s=e.getPossibleInstantsFor(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=cs(t);r&&(n=hc(n));for(const t of e){let e=Wi(Zi(t,o));if(r&&(e=hc(e)),e===n)return t}})(s,t,n,a);if(void 0!==e)return e;if(0===r)throw new RangeError(Jl)}return i?cs(t):Vc(e,t,o,s)}function Vc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.getPossibleInstantsFor(t);if(1===r.length)return r[0];if(1===n)throw new RangeError(Gl);if(r.length)return r[3===n?1:0];const o=cs(t),a=((e,t)=>{const n=e.getOffsetNanosecondsFor(Ui(t,-Sf));return Jc(e.getOffsetNanosecondsFor(Ui(t,Sf))-n)})(e,o),i=a*(2===n?-1:1);return(r=e.getPossibleInstantsFor(ds(o,i)))[2===n?0:r.length-1]}function Kc(e){if(Math.abs(e)>=Sf)throw new RangeError(Vl);return e}function Jc(e){if(e>Sf)throw new RangeError(Kl);return e}function Gc(e,t,n){return Ks(ns($i(t.epochNanoseconds,(e=>{if(Iu(e))throw new RangeError(ef);return Su(e,5)})(e?yu(n):n))))}function Wc(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Object.create(null);const i=t(r.timeZone),s=e(r.calendar);return{...r,...tu(s,i,r,n?yu(o):o,a)}}function qc(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const{calendar:a}=n;return Gs(nu(e(a),n,t?yu(r):r,o),a)}function Xc(e,t,n,r,o){const{calendar:a}=n;return Ws(ru(e(a),n,t?yu(r):r,o),a)}function Qc(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const a=n.calendar,i=e(a);let s=ou(i,n);t&&(r=mu(r)),r.sign<0&&(s=i.dateAdd(s,{...nd,months:1}),s=iu(s,-1));const c=i.dateAdd(s,r,o);return qs(ou(i,c),a)}function eu(e,t,n){return Qs(au(t,e?yu(n):n)[0])}function tu(e,t,n,r,o){const a=Su(r,5);let i=n.epochNanoseconds;if(Iu(r)){const s=ug(n,t);i=$i(Vc(t,{...ru(e,s,{...r,...rd},o),...ii(ad,s)}),a)}else i=$i(i,a),Cs(o);return{epochNanoseconds:ns(i)}}function nu(e,t,n,r){const[o,a]=au(t,n);return ts({...ru(e,t,{...n,...rd,days:n.days+a},r),...o})}function ru(e,t,n,r){if(n.years||n.months||n.weeks)return e.dateAdd(t,n,r);Cs(r);const o=n.days+Su(n,5)[0];return o?es(iu(t,o)):t}function ou(e,t){return iu(t,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)-e.day(t))}function au(e,t){const[n,r]=Su(t,5),[o,a]=os(rs(e)+r);return[o,n+a]}function iu(e,t){return t?{...e,...gs(ss(e)+t*df)}:e}function su(e,t,n){const r=e(n.calendar);return lu(n)?[n,r,t(n.timeZone)]:[{...n,...ld},r]}function cu(e){return e?nc:cs}function uu(e,t){return t?li(tu,e,t):li(nu,e)}function hu(e,t){return t?li(sh,e,t):li(ch,e)}function lu(e){return e&&e.epochNanoseconds}function fu(e,t){return e<=6-(lu(t)?1:0)}function du(e,t,n,r,o,a){const i=o(n,e);return[a(n,i,t),r(i)]}function gu(e,t,n,r,o,a,i){const s=e(Bs(i).relativeTo),c=Math.max(Tu(o),Tu(a));if(fu(c,s))return ec(wu(((e,t,n,r)=>{const o=$i(Su(e),Su(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(Wl);return{...nd,...bu(o,n)}})(o,a,c,r)));if(!s)throw new RangeError(Ql);r&&(a=yu(a));const[u,h,l]=su(t,n,s),f=uu(h,l),d=hu(h,l),g=f(u,o);return ec(d(u,f(g,a),c))}function mu(e){return ec(yu(e))}function yu(e){const t={};for(const n of Wf)t[n]=-1*e[n]||0;return t}function pu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wf,n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(Xl);n=t}}return n}function wu(e){for(const t of ed)Ja(t,e[t],-hg,hg,1);return vu(Wi(Su(e),pf)),e}function vu(e){if(!Number.isSafeInteger(e))throw new RangeError(ql)}function Su(e){return Ii(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,Wf)}function bu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const[n,r]=e,o=Ti(r,t,Wf);if(o[Wf[t]]+=n*(Sf/bf[t]),!Number.isFinite(o[Wf[t]]))throw new RangeError(Wl);return o}function Mu(e){return Ti(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,Wf)}function Iu(e){return Boolean(pu(e,Qf))}function Tu(e){let t=9;for(;t>0&&!e[Wf[t]];t--);return t}function Eu(e,t){return[e,t]}function Au(e){const t=Math.floor(e/ag)*ag;return[t,t+ag]}function Du(e){const t=ju(e);if(void 0===t)throw new RangeError(rf(e));return t}function Cu(e){const t=Ru(Vf(e));if(!t||t.O)throw new RangeError(rf(e));return Ws(t.I?ku(t):Hu(t))}function Ou(e){if(e.calendar!==Bf)throw new RangeError(of(e.calendar))}function Nu(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=zu(e.timeZone),a=lg(o);return Js(zc(a,Is(e),t,n,r,!a.R,e.O),o,Oh(e.calendar))}function ku(e){return Lu(ts(Is(e)))}function Hu(e){return Lu(es(Ts(e)))}function Lu(e){return{...e,calendar:Oh(e.calendar)}}function Ru(e){const t=Tg.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:Fu(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),..._u(e.slice(5)),...Bu(e[16]),I:Boolean(e[6]),O:n,offset:n?void 0:t}})(t):void 0}function Pu(e){const t=Mg.exec(e);return t?(e=>({isoYear:Fu(e),isoMonth:parseInt(e[4]),isoDay:1,...Bu(e[5])}))(t):void 0}function Yu(e){const t=Ig.exec(e);return t?(e=>({isoYear:Md,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...Bu(e[3])}))(t):void 0}function ju(e,t){const n=Ag.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(of(n));return Kc((Zu(e[2])*vf+Zu(e[3])*wf+Zu(e[4])*pf+xu(e[5]||""))*Uu(e[1]))})(n,t):void 0}function Fu(e){const t=Uu(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(of(-0));return t*n}function _u(e){const t=Zu(e[3]);return{...os(xu(e[4]||""))[0],isoHour:Zu(e[1]),isoMinute:Zu(e[2]),isoSecond:60===t?59:t}}function Bu(e){let t,n;const r=[];if(e.replace(Dg,((e,o,a)=>{const i=Boolean(o),[s,c]=a.split("=").reverse();if(c){if("u-ca"===c)r.push(s),t||(t=i);else if(i||/[A-Z]/.test(c))throw new RangeError(of(e))}else{if(n)throw new RangeError(of(e));n=s}return""})),r.length>1&&t)throw new RangeError(of(e));return{timeZone:n,calendar:r[0]||Bf}}function xu(e){return parseInt(e.padEnd(9,"0"))}function $u(e){return new RegExp(`^${e}$`,"i")}function Uu(e){return e&&"+"!==e?-1:1}function Zu(e){return void 0===e?0:parseInt(e)}function zu(e){const t=Ku(e);return"number"==typeof t?Fc(t):t?(e=>{if(Ng.test(e))throw new RangeError(zl);return e.toLowerCase().split("/").map(((e,t)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,((e,n)=>e.length<=2&&!t||"in"===e||"chat"===e?e.toUpperCase():e.length>2||!n?fi(e).replace(/island|noronha|murdo|rivadavia|urville/,fi):e)))).join("/")})(e):og}function Vu(e){const t=Ku(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:og}function Ku(e){const t=ju(e=e.toUpperCase(),1);return void 0!==t?t:e!==og?Og(e):void 0}function Ju(e,t){return zi(e.epochNanoseconds,t.epochNanoseconds)}function Gu(e,t){return zi(e.epochNanoseconds,t.epochNanoseconds)}function Wu(e,t){return qu(e,t)||Xu(e,t)}function qu(e,t){return mi(ss(e),ss(t))}function Xu(e,t){return mi(rs(e),rs(t))}function Qu(e,t){if(e===t)return 1;const n=rc(e),r=rc(t);if(n===r)return 1;try{return Vu(n)===Vu(r)}catch(e){}}function eh(e,t,n,r){const o=ks(e,$s(r),3,5),a=lh(t.epochNanoseconds,n.epochNanoseconds,...o);return ec(e?yu(a):a)}function th(e,t,n,r,o,a){const i=yh(r.calendar,o.calendar),s=$s(a),[c,u,h,l]=ks(n,s,5),f=r.epochNanoseconds,d=o.epochNanoseconds,g=zi(d,f);let m;if(g)if(c<6)m=lh(f,d,c,u,h,l);else{const n=t(((e,t)=>{if(!Qu(e,t))throw new RangeError(Zl);return e})(r.timeZone,o.timeZone)),a=e(i);m=uh(a,n,r,o,g,c,s),m=mc(m,d,c,u,h,l,r,nc,li(tu,a,n))}else m=nd;return ec(n?yu(m):m)}function nh(e,t,n,r,o){const a=yh(n.calendar,r.calendar),i=$s(o),[s,c,u,h]=ks(t,i,6),l=cs(n),f=cs(r),d=zi(f,l);let g;if(d)if(s<=6)g=lh(l,f,s,c,u,h);else{const t=e(a);g=hh(t,n,r,d,s,i),g=mc(g,f,s,c,u,h,n,cs,li(nu,t))}else g=nd;return ec(t?yu(g):g)}function rh(e,t,n,r,o){const a=yh(n.calendar,r.calendar),i=$s(o);return ah(t,(()=>e(a)),n,r,...ks(t,i,6,9,6),i)}function oh(e,t,n,r,o){const a=yh(n.calendar,r.calendar),i=$s(o),s=ks(t,i,9,9,8),c=e(a);return ah(t,(()=>c),ou(c,n),ou(c,r),...s,i)}function ah(e,t,n,r,o,a,i,s,c){const u=cs(n),h=cs(r);let l;if(zi(h,u))if(6===o)l=lh(u,h,o,a,i,s);else{const e=t();l=e.dateUntil(n,r,o,c),6===a&&1===i||(l=mc(l,h,o,a,i,s,n,cs,li(ru,e)))}else l=nd;return ec(e?yu(l):l)}function ih(e,t,n,r){const o=$s(r),[a,i,s,c]=ks(e,o,5,5),u=wc(mh(t,n),lc(i,s),c),h={...nd,...Mu(u,a)};return ec(e?yu(h):h)}function sh(e,t,n,r,o,a){const i=zi(r.epochNanoseconds,n.epochNanoseconds);return i?o<6?fh(n.epochNanoseconds,r.epochNanoseconds,o):uh(e,t,n,r,i,o,a):nd}function ch(e,t,n,r,o){const a=cs(t),i=cs(n),s=zi(i,a);return s?r<=6?fh(a,i,r):hh(e,t,n,s,r,o):nd}function uh(e,t,n,r,o,a,i){const[s,c,u]=((e,t,n,r)=>{function o(){return l={...iu(s,u++*-r),...i},f=Vc(e,l),zi(c,f)===-r}const a=ug(t,e),i=ii(ad,a),s=ug(n,e),c=n.epochNanoseconds;let u=0;const h=mh(a,s);let l,f;if(Math.sign(h)===-r&&u++,o()&&(-1===r||o()))throw new RangeError(xl);const d=Wi(Zi(f,c));return[a,l,d]})(t,n,r,o);var h,l;return{...6===a?(h=s,l=c,{...nd,days:dh(h,l)}):e.dateUntil(s,c,a,i),...Mu(u)}}function hh(e,t,n,r,o,a){let i=t,s=mh(t,n);return Math.sign(s)===-r&&(i=iu(t,r),s+=Sf*r),{...e.dateUntil(i,n,o,a),...Mu(s)}}function lh(e,t,n,r,o,a){return{...nd,...bu(yc(Zi(e,t),r,o,a),n)}}function fh(e,t,n){return{...nd,...bu(Zi(e,t),n)}}function dh(e,t){return gh(ss(e),ss(t))}function gh(e,t){return Math.trunc((t-e)/df)}function mh(e,t){return rs(t)-rs(e)}function yh(e,t){if(!oc(e,t))throw new RangeError($l);return e}function ph(e){function t(e){return((e,t)=>({...Sh(e,t),o:e.month,day:parseInt(e.day)}))(Xi(n,e),r)}const n=Hg(e),r=Nh(e);return{id:e,h:wh(t),l:vh(t)}}function wh(e){return qa((t=>{const n=ss(t);return e(n)}),WeakMap)}function vh(e){const t=e(0).year-bd;return qa((n=>{let r,o=ls(n-t);const a=[],i=[];do{o+=400*df}while((r=e(o)).year<=n);do{o+=(1-r.day)*df,r.year===n&&(a.push(o),i.push(r.o)),o-=df}while((r=e(o)).year>=n);return{i:a.reverse(),u:cf(i.reverse())}}))}function Sh(e,t){let n,r,o=bh(e);if(e.era){const i=Uf[t];void 0!==i&&(a=(a=e.era).normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),n=Zf[a]||a,r=o,o=jh(r,i[n]||0))}var a;return{era:n,eraYear:r,year:o}}function bh(e){return parseInt(e.relatedYear||e.year)}function Mh(e){const{year:t,o:n,day:r}=this.h(e),{u:o}=this.l(t);return[t,o[n]+1,r]}function Ih(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return this.l(e).i[t-1]+(n-1)*df}function Th(e){const t=Ch(this,e),n=Ch(this,e-1),r=t.length;if(r>n.length){const e=_h(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function Eh(e){return gh(Ih.call(this,e),Ih.call(this,e+1))}function Ah(e,t){const{i:n}=this.l(e);let r=t+1,o=n;return r>n.length&&(r=1,o=this.l(e+1).i),gh(n[t-1],o[r-1])}function Dh(e){return this.l(e).i.length}function Ch(e,t){return Object.keys(e.l(t).u)}function Oh(e){if((e=e.toLowerCase())!==Bf&&e!==xf&&Nh(e)!==Nh(Hg(e).resolvedOptions().calendar))throw new RangeError(Ul(e));return e}function Nh(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function kh(e){return this.m(e)[0]}function Hh(e){return this.m(e)[1]}function Lh(e){const[t]=this.v(e);return gh(this.p(t),ss(e))+1}function Rh(e){const t=Lg.exec(e);if(!t)throw new RangeError(Yl(e));return[parseInt(t[1]),Boolean(t[2])]}function Ph(e,t,n){return e+(t||n&&e>=n?1:0)}function Yh(e,t){return e-(t&&e>=t?1:0)}function jh(e,t){return(t+e)*(Math.sign(t)||1)||0}function Fh(e){return Uf[Bh(e)]}function _h(e){return zf[Bh(e)]}function Bh(e){return Nh(e.id||Bf)}function xh(e,t,n,r){const o=zh(n,r,Yf,[],Df);if(void 0!==o.timeZone){const r=n.dateFromFields(o),a=Kh(o),i=e(o.timeZone);return{epochNanoseconds:zc(t(i),{...r,...a},void 0!==o.offset?Du(o.offset):void 0),timeZone:i}}return{...n.dateFromFields(o),...ld}}function $h(e,t,n){const r=zh(e,t,Yf,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]);return e.dateFromFields(r,n)}function Uh(e,t,n,r){const o=zh(e,t,Rf,r);return e.yearMonthFromFields(o,n)}function Zh(e,t,n,r){const o=zh(e,n,Yf,arguments.length>4&&void 0!==arguments[4]?arguments[4]:[]);return t&&void 0!==o.month&&void 0===o.monthCode&&void 0===o.year&&(o.year=Md),e.monthDayFromFields(o,r)}function zh(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return Vh(t,[...e.fields(n),...o].sort(),r)}function Vh(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:!n;const o={};let a,i=0;for(const r of t){if(r===a)throw new RangeError(Dl(r));if("constructor"===r||"__proto__"===r)throw new RangeError(Al(r));let t=e[r];if(void 0!==t)i=1,jg[r]&&(t=jg[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(El(r));o[r]=_f[r]}a=r}if(r&&!i)throw new TypeError(Cl(t));return o}function Kh(e,t){return Ds(Fg({..._f,...e}),t)}function Jh(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];const i=[...e.fields(r),...o].sort();let s=Vh(t,i,a);const c=Vh(n,i);return s=e.mergeFields(s,c),Vh(s,i,[])}function Gh(e,t){const n=zh(e,t,Ff);return e.monthDayFromFields(n)}function Wh(e,t,n){const r=zh(e,t,Pf);return e.yearMonthFromFields(r,n)}function qh(e,t,n,r,o){t=ii(n=e.fields(n),t),r=Vh(r,o=e.fields(o),[]);let a=e.mergeFields(t,r);return a=Vh(a,[...n,...o].sort(),[]),e.dateFromFields(a)}function Xh(e,t){let{era:n,eraYear:r,year:o}=t;const a=Fh(e);if(void 0!==n||void 0!==r){if(void 0===n||void 0===r)throw new TypeError(Hl);if(!a)throw new RangeError(kl);const e=a[n];if(void 0===e)throw new RangeError(Rl(n));const t=jh(r,e);if(void 0!==o&&o!==t)throw new RangeError(Ll);o=t}else if(void 0===o)throw new TypeError(Pl(a));return o}function Qh(e,t,n,r){let{month:o,monthCode:a}=t;if(void 0!==a){const t=((e,t,n,r)=>{const o=e.P(n),[a,i]=Rh(t);let s=Ph(a,i,o);if(i){const t=_h(e);if(void 0===t)throw new RangeError(Bl);if(t>0){if(s>t)throw new RangeError(Bl);if(void 0===o){if(1===r)throw new RangeError(Bl);s--}}else{if(s!==-t)throw new RangeError(Bl);if(void 0===o&&1===r)throw new RangeError(Bl)}}return s})(e,a,n,r);if(void 0!==o&&o!==t)throw new RangeError(jl);o=t,r=1}else if(void 0===o)throw new TypeError(Fl);return Ja("month",o,1,e.j(n),r)}function el(e,t,n,r,o){return Ka(t,"day",1,e.N(r,n),o)}function tl(e,t,n,r){let o=0;const a=[];for(const e of n)void 0!==t[e]?o=1:a.push(e);if(Object.assign(e,t),o)for(const t of r||a)delete e[t]}function nl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Bf;return Js(e.epochNanoseconds,t,n)}function rl(e,t){return Gs(ug(t,e))}function ol(e,t){return Ws(ug(t,e))}function al(e,t){return Qs(ug(t,e))}function il(e,t){return{...e,calendar:t}}function sl(e,t){if(e===t)return e;const n=rc(e),r=rc(t);if(n===r||n===Bf)return t;if(r===Bf)return e;throw new RangeError($l)}function cl(e,t){return n=>n===Bf?e:n===xf||n===$f?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),kg(n))}function ul(e,t,n){const r=new Set(n);return o=>(((e,t)=>{for(const n of t)if(n in e)return 1;return 0})(o=si(r,o),e)||Object.assign(o,t),n&&(o.timeZone=og,["full","long"].includes(o.timeStyle)&&(o.timeStyle="medium")),o)}function hl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ll;const[n,,,r]=e;return function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dm;for(var i=arguments.length,s=new Array(i>2?i-2:0),c=2;c<i;c++)s[c-2]=arguments[c];const u=t(r&&r(...s),o,a,n),h=u.resolvedOptions();return[u,...fl(e,h,s)]}}function ll(e,t,n,r){if(n=r(n),e){if(void 0!==n.timeZone)throw new TypeError(sf);n.timeZone=e}return new dd(t,n)}function fl(e,t,n){const[,r,o]=e;return n.map((e=>(e.calendar&&((e,t,n)=>{if((n||e!==Bf)&&e!==t)throw new RangeError($l)})(rc(e.calendar),t.calendar,o),r(e,t))))}function dl(e){const t=gl();return ds(t,e.getOffsetNanosecondsFor(t))}function gl(){return Ji(Date.now(),yf)}function ml(){return bm||(bm=(new dd).resolvedOptions().timeZone)}(function(e,t){var n,r,o,a,i,s=e.target,c=e.global,u=e.stat;if(n=c?sa:u?sa[s]||la(s,{}):sa[s]&&sa[s].prototype)for(r in t){if(a=t[r],o=e.dontCallGetSet?(i=ca(n,r))&&i.value:n[r],!da(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;fa(a,o)}(e.sham||o&&o.sham)&&ua(a,"sham",!0),ha(n,r,a,e)}})({target:"Array",proto:!0,forced:Ne((function(){return!Array(1).includes()}))},{includes:function(e){return za(this,e,arguments.length>1?arguments[1]:void 0)}}),Va("includes");const yl=(e,t)=>`Non-integer ${e}: ${t}`,pl=(e,t)=>`Non-positive ${e}: ${t}`,wl=(e,t)=>`Non-finite ${e}: ${t}`,vl=e=>`Cannot convert bigint to ${e}`,Sl=e=>`Invalid bigint: ${e}`,bl="Cannot convert Symbol to string",Ml="Invalid object",Il=(e,t,n,r,o)=>o?Il(e,o[t],o[n],o[r]):Tl(e,t)+`; must be between ${n}-${r}`,Tl=(e,t)=>`Invalid ${e}: ${t}`,El=e=>`Missing ${e}`,Al=e=>`Invalid field ${e}`,Dl=e=>`Duplicate field ${e}`,Cl=e=>"No valid fields: "+e.join(),Ol=(e,t,n)=>Tl(e,t)+"; must be "+Object.keys(n).join(),Nl="Invalid calling context",kl="Forbidden era/eraYear",Hl="Mismatching era/eraYear",Ll="Mismatching year/eraYear",Rl=e=>`Invalid era: ${e}`,Pl=e=>"Missing year"+(e?"/era/eraYear":""),Yl=e=>`Invalid monthCode: ${e}`,jl="Mismatching month/monthCode",Fl="Missing month/monthCode",_l="Cannot guess year",Bl="Invalid leap month",xl="Invalid protocol results",$l="Mismatching Calendars",Ul=e=>`Invalid Calendar: ${e}`,Zl="Mismatching TimeZones",zl="Forbidden ICU TimeZone",Vl="Out-of-bounds offset",Kl="Out-of-bounds TimeZone gap",Jl="Invalid TimeZone offset",Gl="Ambiguous offset",Wl="Out-of-bounds date",ql="Out-of-bounds duration",Xl="Cannot mix duration signs",Ql="Missing relativeTo",ef="Cannot use large units",tf="Required smallestUnit or largestUnit",nf="smallestUnit > largestUnit",rf=e=>`Cannot parse: ${e}`,of=e=>`Invalid substring: ${e}`,af=e=>`Cannot format ${e}`,sf="Cannot specify TimeZone",cf=li(oi,((e,t)=>t)),uf=li(oi,((e,t,n)=>n)),hf=li(gi,2),lf={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},ff=Object.keys(lf),df=864e5,gf=1e3,mf=1e3,yf=1e6,pf=1e9,wf=6e10,vf=36e11,Sf=864e11,bf=[1,mf,yf,pf,wf,vf,Sf],Mf=ff.slice(0,6),If=di(Mf),Tf=["offset"],Ef=["timeZone"],Af=Mf.concat(Tf),Df=Af.concat(Ef),Cf=["era","eraYear"],Of=Cf.concat(["year"]),Nf=["year"],kf=["monthCode"],Hf=["month"].concat(kf),Lf=["day"],Rf=Hf.concat(Nf),Pf=kf.concat(Nf),Yf=Lf.concat(Rf),jf=Lf.concat(Hf),Ff=Lf.concat(kf),_f=uf(Mf,0),Bf="iso8601",xf="gregory",$f="japanese",Uf={[xf]:{bce:-1,ce:0},[$f]:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018},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}},Zf={bc:"bce",ad:"ce"},zf={chinese:13,dangi:13,hebrew:-6},Vf=li(ki,"string"),Kf=li(ki,"boolean"),Jf=li(ki,"number"),Gf=li(ki,"function"),Wf=ff.map((e=>e+"s")),qf=di(Wf),Xf=Wf.slice(0,6),Qf=Wf.slice(6),ed=Qf.slice(1),td=cf(Wf),nd=uf(Wf,0),rd=uf(Xf,0),od=li(hi,Wf),ad=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],id=["isoDay","isoMonth","isoYear"],sd=ad.concat(id),cd=di(id),ud=di(ad),hd=di(sd),ld=uf(ud,0),fd=li(hi,sd),dd=Intl.DateTimeFormat,gd="en-GB",md=1e8,yd=md*df,pd=[md,0],wd=[-md,0],vd=275760,Sd=-271821,bd=1970,Md=1972,Id=12,Td=ls(1868,9,8),Ed=qa(Ms,WeakMap),Ad="smallestUnit",Dd="unit",Cd="roundingIncrement",Od="fractionalSecondDigits",Nd="relativeTo",kd={constrain:0,reject:1},Hd=Object.keys(kd),Ld={compatible:0,reject:1,earlier:2,later:3},Rd={reject:0,use:1,prefer:2,ignore:3},Pd={auto:0,never:1,critical:2,always:3},Yd={auto:0,never:1,critical:2},jd={auto:0,never:1},Fd={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},_d=li(Zs,Ad),Bd=li(Zs,"largestUnit"),xd=li(Zs,Dd),$d=li(zs,"overflow",kd),Ud=li(zs,"disambiguation",Ld),Zd=li(zs,"offset",Rd),zd=li(zs,"calendarName",Pd),Vd=li(zs,"timeZoneName",Yd),Kd=li(zs,"offset",jd),Jd=li(zs,"roundingMode",Fd),Gd="PlainYearMonth",Wd="PlainMonthDay",qd="PlainDate",Xd="PlainDateTime",Qd="PlainTime",eg="ZonedDateTime",tg="Instant",ng="Duration",rg=[Math.floor,e=>Mi(e)?Math.floor(e):Math.round(e),Math.ceil,e=>Mi(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>Mi(e)?Math.trunc(e)||0:Math.round(e),e=>e<0?Math.floor(e):Math.ceil(e),e=>Math.sign(e)*Math.round(Math.abs(e))||0,e=>Mi(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],og="UTC",ag=5184e3,ig=hs(1847),sg=hs((new Date).getUTCFullYear()+10),cg=/0+$/,ug=qa(Zc,WeakMap),hg=2**32-1,lg=qa((e=>{const t=Ku(e);return"object"==typeof t?new dg(t):new fg(t||0)}));class fg{constructor(e){this.R=e}getOffsetNanosecondsFor(){return this.R}getPossibleInstantsFor(e){return[us(e,this.R)]}B(){}}class dg{constructor(e){this.q=(e=>{function t(e){const t=yi(e,a,i),[s,c]=Au(t),u=r(s),h=r(c);return u===h?u:n(o(s,c),u,h,e)}function n(t,n,r,o){let a,i;for(;(void 0===o||void 0===(a=o<t[0]?n:o>=t[1]?r:void 0))&&(i=t[1]-t[0]);){const n=t[0]+Math.floor(i/2);e(n)===r?t[1]=n:t[0]=n+1}return a}const r=qa(e),o=qa(Eu);let a=ig,i=sg;return{J(e){const n=t(e-86400),r=t(e+86400),o=e-n,a=e-r;if(n===r)return[o];const i=t(o);return i===t(a)?[e-i]:n>r?[o,a]:[]},_:t,B(e,t){const s=yi(e,a,i);let[c,u]=Au(s);const h=ag*t,l=t<0?()=>u>a||(a=s,0):()=>c<i||(i=s,0);for(;l();){const a=r(c),i=r(u);if(a!==i){const r=o(c,u);n(r,a,i);const s=r[0];if((mi(s,e)||1)===t)return s}c+=h,u+=h}}}})((e=>t=>{const n=Xi(e,t*gf);return hs(bh(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}getOffsetNanosecondsFor(e){return this.q._(as(e))*pf}getPossibleInstantsFor(e){const[t,n]=[hs((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*yf+r.isoMicrosecond*mf+r.isoNanosecond];var r;return this.q.J(t).map((e=>ns(Ui(Ji(e,pf),n))))}B(e,t){const[n,r]=is(e),o=this.q.B(n+(t>0||r?1:0),t);if(void 0!==o)return Ji(o,pf)}}const gg="([+−-])",mg="(?:[.,](\\d{1,9}))?",yg=`(?:(?:${gg}(\\d{6}))|(\\d{4}))-?(\\d{2})`,pg="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+mg+")?)?",wg=gg+pg,vg=yg+"-?(\\d{2})(?:[T ]"+pg+"(Z|"+wg+")?)?",Sg="\\[(!?)([^\\]]*)\\]",bg=`((?:${Sg}){0,9})`,Mg=$u(yg+bg),Ig=$u("(?:--)?(\\d{2})-?(\\d{2})"+bg),Tg=$u(vg+bg),Eg=$u("T?"+pg+"(?:"+wg+")?"+bg),Ag=$u(wg),Dg=new RegExp(Sg,"g"),Cg=$u(`${gg}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${mg}H)?(?:(\\d+)${mg}M)?(?:(\\d+)${mg}S)?)?`),Og=qa((e=>new dd(gd,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),Ng=/^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/,kg=qa(ph),Hg=qa((e=>new dd(gd,{calendar:e,timeZone:og,era:"short",year:"numeric",month:"short",day:"numeric"}))),Lg=/^M(\d{2})(L?)$/,Rg={era:Pi,eraYear:Fi,year:Fi,month:Bi,monthCode:Pi,day:Bi},Pg=uf(Mf,Fi),Yg=uf(Wf,_i),jg=Object.assign({},Rg,Pg,Yg,{offset:Pi}),Fg=li(ai,Mf,ad),_g={dateAdd(e,t,n){const r=Cs(n);let o,{years:a,months:i,weeks:s,days:c}=t;if(c+=Su(t,5)[0],a||i)o=((e,t,n,r,o)=>{let[a,i,s]=e.v(t);if(n){const[t,r]=e.$(a,i);a+=n,i=Ph(t,r,e.P(a)),i=Ja("month",i,1,e.j(a),o)}return r&&([a,i]=e.G(a,i,r)),s=Ja("day",s,1,e.N(a,i),o),e.p(a,i,s)})(this,e,a,i,r);else{if(!s&&!c)return e;o=ss(e)}return o+=(7*s+c)*df,es(gs(o))},dateUntil(e,t,n){if(n<=7){let r=0,o=dh({...e,...ld},{...t,...ld});return 7===n&&([r,o]=vi(o,7)),{...nd,weeks:r,days:o}}const r=this.v(e),o=this.v(t);let[a,i,s]=((e,t,n,r,o,a,i)=>{let s=o-t,c=a-n,u=i-r;if(s||c){const h=Math.sign(s||c);let l=e.N(o,a),f=0;if(Math.sign(u)===-h){const r=l;[o,a]=e.G(o,a,-h),s=o-t,c=a-n,l=e.N(o,a),f=h<0?-r:l}if(u=i-Math.min(r,l)+f,s){const[r,i]=e.$(t,n),[u,l]=e.$(o,a);if(c=u-r||Number(l)-Number(i),Math.sign(c)===-h){const n=h<0&&-e.j(o);s=(o-=h)-t,c=a-Ph(r,i,e.P(o))+(n||e.j(o))}}}return[s,c,u]})(this,...r,...o);return 8===n&&(i+=this.V(a,r[0]),a=0),{...nd,years:a,months:i,days:s}},dateFromFields(e,t){const n=Cs(t),r=Xh(this,e),o=Qh(this,e,r,n),a=el(this,e,o,r,n);return Ws(es(this.L(r,o,a)),this.id||Bf)},yearMonthFromFields(e,t){const n=Cs(t),r=Xh(this,e),o=Qh(this,e,r,n);return qs(Qi(this.L(r,o,1)),this.id||Bf)},monthDayFromFields(e,t){const n=Cs(t),r=!this.id,{monthCode:o,year:a,month:i}=e;let s,c,u,h,l;if(void 0!==o){[s,c]=Rh(o),l=Ga(e,"day");const t=this.k(s,c,l);if(!t)throw new RangeError(_l);if([u,h]=t,void 0!==i&&i!==h)throw new RangeError(jl);r&&(h=Ja("month",h,1,Id,1),l=Ja("day",l,1,ps(void 0!==a?a:u,h),n))}else{u=void 0===a&&r?Md:Xh(this,e),h=Qh(this,e,u,n),l=el(this,e,h,u,n);const t=this.P(u);c=h===t,s=Yh(h,t);const o=this.k(s,c,l);if(!o)throw new RangeError(_l);[u,h]=o}return Xs(es(this.L(u,h,l)),this.id||Bf)},fields(e){return Fh(this)&&e.includes("year")?[...e,...Cf]:e},mergeFields(e,t){const n=Object.assign(Object.create(null),e);return tl(n,t,Hf),Fh(this)&&(tl(n,t,Of),this.id===$f&&tl(n,t,jf,Cf)),n},inLeapYear(e){const[t]=this.v(e);return this.K(t)},monthsInYear(e){const[t]=this.v(e);return this.j(t)},daysInMonth(e){const[t,n]=this.v(e);return this.N(t,n)},daysInYear(e){const[t]=this.v(e);return this.X(t)},dayOfYear:Lh,era(e){return this.nn(e)[0]},eraYear(e){return this.nn(e)[1]},monthCode(e){const[t,n]=this.v(e),[r,o]=this.$(t,n);return((e,t)=>"M"+hf(e)+(t?"L":""))(r,o)},dayOfWeek:Ss,daysInWeek:()=>7},Bg={dayOfYear:Lh,v:ms,p:ls},xg=Object.assign({},Bg,{weekOfYear:kh,yearOfWeek:Hh,m(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=ws(f+e),r=e||1,o=t(wi(c+n*r,7));return h=(n+(o-u)*r)/7}const r=this.id?1:4,o=Ss(e),a=this.dayOfYear(e),i=wi(o-1,7),s=a-1,c=wi(i-s,7),u=t(c);let h,l=Math.floor((s-u)/7)+1,f=e.isoYear;return l?l>n(0)&&(l=1,f++):(l=n(-1),f--),[l,f,h]}}),$g={dayOfYear:Lh,v:Mh,p:Ih,weekOfYear:kh,yearOfWeek:Hh,m:()=>[]},Ug=cl(Object.assign({},_g,xg,{v:ms,nn(e){return this.id===xf?bs(e):this.id===$f?Ed(e):[]},$:(e,t)=>[t,0],k(e,t){if(!t)return[Md,e]},K:vs,P(){},j:ys,V:e=>e*Id,N:ps,X:ws,L:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),p:ls,G:(e,t,n)=>(e+=Si(n,Id),(t+=bi(n,Id))<1?(e--,t+=Id):t>Id&&(e++,t-=Id),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Object.assign({},_g,$g,{v:Mh,nn(e){const t=this.h(e);return[t.era,t.eraYear]},$(e,t){const n=Th.call(this,e);return[Yh(t,n),n===t]},k(e,t,n){let[r,o,a]=Mh.call(this,{isoYear:Md,isoMonth:Id,isoDay:31});const i=Th.call(this,r),s=o===i;1===(mi(e,Yh(o,i))||mi(Number(t),Number(s))||mi(n,a))&&r--;for(let o=0;o<100;o++){const a=r-o,i=Th.call(this,a),s=Ph(e,t,i);if(t===(s===i)&&n<=Ah.call(this,a,s))return[a,s]}},K(e){const t=Eh.call(this,e);return t>Eh.call(this,e-1)&&t>Eh.call(this,e+1)},P:Th,j:Dh,V(e,t){const n=t+e,r=Math.sign(e),o=r<0?-1:0;let a=0;for(let e=t;e!==n;e+=r)a+=Dh.call(this,e+o);return a},N:Ah,X:Eh,L(e,t,n){return gs(Ih.call(this,e,t,n))},p:Ih,G(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError(Wl);if(n<0)for(;t<1;)t+=Dh.call(this,--e);else{let n;for(;t>(n=Dh.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.h(e).year},month(e){const{year:t,o:n}=this.h(e),{u:r}=this.l(t);return r[n]+1},day(e){return this.h(e).day}})),Zg="numeric",zg=["timeZoneName"],Vg={month:Zg,day:Zg},Kg={year:Zg,month:Zg},Jg=Object.assign({},Kg,{day:Zg}),Gg={hour:Zg,minute:Zg,second:Zg},Wg=Object.assign({},Jg,Gg),qg=Object.assign({},Wg,{timeZoneName:"short"}),Xg=Object.keys(Kg),Qg=Object.keys(Vg),em=Object.keys(Jg),tm=Object.keys(Gg),nm=["dateStyle"],rm=Xg.concat(nm),om=Qg.concat(nm),am=em.concat(nm,["weekday"]),im=tm.concat(["dayPeriod","timeStyle"]),sm=am.concat(im),cm=sm.concat(zg),um=zg.concat(im),hm=zg.concat(am),lm=zg.concat(["day","weekday"],im),fm=zg.concat(["year","weekday"],im),dm={},gm=[ul(sm,Wg),tc],mm=[ul(cm,qg),tc,0,(e,t)=>{const n=rc(e.timeZone);if(t&&rc(t.timeZone)!==n)throw new RangeError(Zl);return n}],ym=[ul(sm,Wg,zg),ss],pm=[ul(am,Jg,um),ss],wm=[ul(im,Gg,hm),e=>rs(e)/yf],vm=[ul(rm,Kg,lm),ss,1],Sm=[ul(om,Vg,fm),ss,1];let bm;function Mm(e,t,n,r,o){function a(){if(!(this instanceof a))throw new TypeError(Nl);py(this,t(...arguments))}function i(e,t){return Object.defineProperties((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.call(this,s(this),...n)}),Xa(t))}function s(t){const n=yy(t);if(!n||n.branding!==e)throw new TypeError(Nl);return n}return Object.defineProperties(a.prototype,{...ei(ri(i,n)),...Qa(ri(i,r)),...ti("Temporal."+e)}),Object.defineProperties(a,{...Qa(o),...Xa(e)}),[a,e=>{const t=Object.create(a.prototype);return py(t,e),t},s]}function Im(e){return e=e.concat("id").sort(),t=>{if(!function(e,t){for(const n of t)if(!(n in e))return 0;return 1}(t,e))throw new TypeError("Invalid protocol");return t}}function Tm(e){if(yy(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function Em(e,t){const n={};for(const r in e)n[r]=(e,n)=>{let{F:o}=e;const a=yy(n)||{},{branding:i}=a,s=i===qd||t.includes(i)?a:xm(n);return o[r](s)};return n}function Am(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return(r=t,"string"==typeof r?Ug(r):(o=r,Object.assign(Object.create(Iy),{C:o})))[n](e);var r,o};return t}function Dm(){throw new TypeError("Cannot use valueOf")}function Cm(e){let{calendar:t}=e;return"string"==typeof t?new bp(t):t}function Om(e,t){if(t=$s(t),Wa(e)){const n=yy(e);if(n&&n.branding===Wd)return Cs(t),n;const r=Km(e);return Zh(up(r||Bf),!r,e,t)}const n=function(e,t){const n=Yu(Vf(t));if(n)return Ou(n),Xs(Ts(n));const r=Cu(t),{calendar:o}=r,a=e(o),[i,s,c]=a.v(r),[u,h]=a.$(i,s),[l,f]=a.k(u,h,c);return Xs(es(a.L(l,f,c)),o)}(Ug,e);return Cs(t),n}function Nm(e,t,n){return Kc(Di(t.call(e,Ry(Ks(n)))))}function km(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ky;const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=li(t[o],e,Gf(e[o]));return r}function Hm(e,t){return"string"==typeof e?lg(e):km(e,t)}function Lm(e){return Hm(e,Hy)}function Rm(e){if(Wa(e)){const t=yy(e);if(t)switch(t.branding){case tg:return t;case eg:return Ks(t.epochNanoseconds)}}return function(e){const t=Ru(e=Pi(e));if(!t)throw new RangeError(rf(e));let n;if(t.O)n=0;else{if(!t.offset)throw new RangeError(rf(e));n=Du(t.offset)}return t.timeZone&&ju(t.timeZone,1),Ks(us(Is(t),n))}(e)}function Pm(e,t,n){const r=t.B(Rm(n).epochNanoseconds,e);return r?Ry(Ks(r)):null}function Ym(e){return Wa(e)?(yy(e)||{}).timeZone||Fy(e):(e=>zu(function(e){const t=Ru(e);return t&&(t.timeZone||t.O&&og||t.offset)||e}(Vf(e))))(e)}function jm(e,t){if(Wa(e)){const n=yy(e)||{};switch(n.branding){case Qd:return Cs(t),n;case Xd:return Cs(t),Qs(n);case eg:return Cs(t),al(Lm,n)}return function(e,t){const n=Cs(t);return Qs(Kh(Vh(e,If,[],1),n))}(e,t)}return Cs(t),function(e){let t,n=(e=>{const t=Eg.exec(e);return t?(Bu(t[10]),_u(t)):void 0})(Vf(e));if(!n){if(n=Ru(e),!n)throw new RangeError(rf(e));if(!n.I)throw new RangeError(rf(e));if(n.O)throw new RangeError(of("Z"));Ou(n)}if((t=Pu(e))&&Es(t))throw new RangeError(rf(e));if((t=Yu(e))&&Es(t))throw new RangeError(rf(e));return Qs(Ds(n,1))}(e)}function Fm(e){return void 0===e?void 0:jm(e)}function _m(e,t){if(t=$s(t),Wa(e)){const n=yy(e);return n&&n.branding===Gd?(Cs(t),n):Uh(sp(Vm(e)),e,t)}const n=function(e,t){const n=Pu(Vf(t));if(n)return Ou(n),qs(Qi(Ts(n)));const r=Cu(t);return qs(ou(e(r.calendar),r))}(Ug,e);return Cs(t),n}function Bm(e,t){if(t=$s(t),Wa(e)){const n=yy(e)||{};switch(n.branding){case Xd:return Cs(t),n;case qd:return Cs(t),Gs({...n,...ld});case eg:return Cs(t),rl(Lm,n)}return function(e,t,n){const r=zh(e,t,Yf,[],Mf),o=Cs(n);return Gs(ts({...e.dateFromFields(r,Us(n,o)),...Kh(r,o)}))}(cp(Vm(e)),e,t)}const n=function(e){const t=Ru(Vf(e));if(!t||t.O)throw new RangeError(rf(e));return Gs(ku(t))}(e);return Cs(t),n}function xm(e,t){if(t=$s(t),Wa(e)){const n=yy(e)||{};switch(n.branding){case qd:return Cs(t),n;case Xd:return Cs(t),Ws(n);case eg:return Cs(t),ol(Lm,n)}return $h(cp(Vm(e)),e,t)}const n=Cu(e);return Cs(t),n}function $m(e,t,n){return Ai(t.call(e,Ky(Ws(n,e))))}function Um(e){return t=>"string"==typeof t?Ug(t):((e,t)=>{const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=li(t[o],e,e[o]);return r})(t,e)}function Zm(e){if(Wa(e)){const t=yy(e);return t&&t.branding===ng?t:function(e){const t=Vh(e,qf);return ec(wu({...nd,...t}))}(e)}return function(e){const t=(e=>{const t=Cg.exec(e);return t?(e=>{function t(e,t,a){let i=0,s=0;if(a&&([i,o]=pi(o,bf[a])),void 0!==e){if(r)throw new RangeError(of(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(of(e));return t})(e),n=1,t&&(o=xu(t)*(bf[a]/pf),r=1)}return i+s}let n=0,r=0,o=0,a={...ni(Wf,[t(e[2]),t(e[3]),t(e[4]),t(e[5]),t(e[6],e[7],5),t(e[8],e[9],4),t(e[10],e[11],3)]),...Ti(o,2,Wf)};if(!n)throw new RangeError(Cl(Wf));return Uu(e[1])<0&&(a=yu(a)),a})(t):void 0})(Vf(e));if(!t)throw new RangeError(rf(e));return ec(wu(t))}(e)}function zm(e){if(void 0!==e){if(Wa(e)){const t=yy(e)||{};switch(t.branding){case eg:case qd:return t;case Xd:return Ws(t)}const n=Vm(e);return{...xh(Ym,Hm,cp(n),e),calendar:n}}return function(e){const t=Ru(Vf(e));if(!t)throw new RangeError(rf(e));if(t.timeZone)return Nu(t,t.offset?Du(t.offset):void 0);if(t.O)throw new RangeError(rf(e));return Hu(t)}(e)}}function Vm(e){return Km(e)||Bf}function Km(e){const{calendar:t}=e;if(void 0!==t)return Jm(t)}function Jm(e){return Wa(e)?(yy(e)||{}).calendar||Mp(e):(e=>Oh(function(e){const t=Ru(e)||Pu(e)||Yu(e);return t?t.calendar:e}(Vf(e))))(e)}function Gm(e,t){if(t=$s(t),Wa(e)){const n=yy(e);if(n&&n.branding===eg)return Os(t),n;const r=Vm(e);return function(e,t,n,r,o,a){const i=zh(n,o,Yf,Ef,Df),s=e(i.timeZone),[c,u,h]=Os(a),l=n.dateFromFields(i,Us(a,c)),f=Kh(i,c);return Js(zc(t(s),{...l,...f},void 0!==i.offset?Du(i.offset):void 0,u,h),s,r)}(Ym,Hm,cp(r),r,e,t)}return function(e,t){const n=Ru(Vf(e));if(!n||!n.timeZone)throw new RangeError(rf(e));const{offset:r}=n,o=r?Du(r):void 0,[,a,i]=Os(t);return Nu(n,o,a,i)}(e,t)}function Wm(e){return ri((e=>t=>e(qm(t))),e)}function qm(e){return ug(e,Lm)}function Xm(){const e=dd.prototype,t=Object.getOwnPropertyDescriptors(e),n=Object.getOwnPropertyDescriptors(dd),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))return new r(e,t);Cp.set(this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new dd(e,t),r=n.resolvedOptions(),o=r.locale,a=ii(Object.keys(t),r),i=qa(ty),s=function(){let e;for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];const c=r.map(((t,n)=>{const r=yy(t),o=(r||{}).branding;if(n&&e&&e!==o)throw new TypeError("Mismatching types for formatting");return e=o,r}));return e?i(e)(o,a,...c):[n,...r]};return s.U=n,s}(e,t))};for(const e in t){const n=t[e],o=e.startsWith("format")&&Qm(e);"function"==typeof n.value?n.value="constructor"===e?r:o||ey(e):o&&(n.get=function(){return o.bind(this)})}return n.prototype.value=Object.create(e,t),Object.defineProperties(r,n),r}function Qm(e){return function(){const t=Cp.get(this),[n,...r]=t(...arguments);return n[e](...r)}}function ey(e){return function(){return Cp.get(this).U[e](...arguments)}}function ty(e){const t=ny[e];if(!t)throw new TypeError(af(e));return hl(t,qa(ll))}const ny={Instant:gm,PlainDateTime:ym,PlainDate:pm,PlainTime:wm,PlainYearMonth:vm,PlainMonthDay:Sm},ry=hl(gm),oy=hl(mm),ay=hl(ym),iy=hl(pm),sy=hl(wm),cy=hl(vm),uy=hl(Sm),hy={era:function(e){if(void 0!==e)return Vf(e)},eraYear:Ei,year:Di,month:Ai,daysInMonth:Ai,daysInYear:Ai,inLeapYear:Kf,monthsInYear:Ai},ly={monthCode:Vf},fy={day:Ai},dy={dayOfWeek:Ai,dayOfYear:Ai,weekOfYear:function(e){if(void 0!==e)return Ai(e)},yearOfWeek:Ei,daysInWeek:Ai},gy=Object.assign({},hy,ly,fy,dy),my=new WeakMap,yy=my.get.bind(my),py=my.set.bind(my),wy={...Em(hy,[Gd]),...Em(dy,[]),...Em(ly,[Gd,Wd]),...Em(fy,[Wd])},vy=Am(gy),Sy=Am({...hy,...ly}),by=Am({...ly,...fy}),My={calendarId:e=>rc(e.calendar)},Iy=ri(((e,t)=>function(n){const{C:r}=this;return e(r[t](Ky(Ws(n,r))))}),gy),Ty=oi((e=>t=>t[e]),Wf.concat("sign")),Ey=oi(((e,t)=>e=>e[ad[t]]),Mf),Ay={epochSeconds:function(e){return as(e.epochNanoseconds)},epochMilliseconds:tc,epochMicroseconds:function(e){return Gi(e.epochNanoseconds,mf)},epochNanoseconds:function(e){return Gi(e.epochNanoseconds)}},Dy=li(si,new Set(["branding"])),[Cy,Oy,Ny]=Mm(Wd,li((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Bf,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Md;const a=Fi(t),i=Fi(n),s=e(r);return Xs(es(Ts({isoYear:Fi(o),isoMonth:a,isoDay:i})),s)}),Jm),{...My,...by},{getISOFields:Dy,getCalendar:Cm,with(e,t,n){return Oy(function(e,t,n,r,o){const a=$s(o);return((e,t,n,r)=>{const o=Jh(e,t,n,Yf);return e.monthDayFromFields(o,r)})(e(t.calendar),n,r,a)}(fp,e,this,Tm(t),n))},equals:(e,t)=>function(e,t){return!qu(e,t)&&oc(e.calendar,t.calendar)}(e,Om(t)),toPlainDate(e,t){return Ky(function(e,t,n,r){return((e,t,n)=>qh(e,t,Ff,Ni(n),Nf))(e(t.calendar),n,r)}(lp,e,this,t))},toLocaleString(e,t,n){const[r,o]=uy(t,n,e);return r.format(o)},toString:Cc,toJSON:e=>Cc(e),valueOf:Dm},{from:(e,t)=>Oy(Om(e,t))}),ky={getOffsetNanosecondsFor:Nm,getPossibleInstantsFor(e,t,n){const r=[...t.call(e,zy(Gs(n,Bf)))].map((e=>Py(e).epochNanoseconds)),o=r.length;return o>1&&(r.sort(zi),Jc(Wi(Zi(r[0],r[o-1])))),r}},Hy={getOffsetNanosecondsFor:Nm},[Ly,Ry,Py]=Mm(tg,(function(e){return Ks(ns(Ki(Yi(e))))}),Ay,{add:(e,t)=>Ry(Gc(0,e,Zm(t))),subtract:(e,t)=>Ry(Gc(1,e,Zm(t))),until:(e,t,n)=>wp(eh(0,e,Rm(t),n)),since:(e,t,n)=>wp(eh(1,e,Rm(t),n)),round:(e,t)=>Ry(function(e,t){const[n,r,o]=Hs(t,5,1);return Ks(yc(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!Ju(e,t)}(e,Rm(t)),toZonedDateTime(e,t){const n=Ni(t);return Tp(nl(e,Ym(n.timeZone),Jm(n.calendar)))},toZonedDateTimeISO:(e,t)=>Tp(nl(e,Ym(t))),toLocaleString(e,t,n){const[r,o]=ry(t,n,e);return r.format(o)},toString:(e,t)=>Ic(Ym,Lm,e,t),toJSON:e=>Ic(Ym,Lm,e),valueOf:Dm},{from:e=>Ry(Rm(e)),fromEpochSeconds:e=>Ry(function(e){return Ks(ns(Ji(e,pf)))}(e)),fromEpochMilliseconds:e=>Ry(function(e){return Ks(ns(Ji(e,yf)))}(e)),fromEpochMicroseconds:e=>Ry(function(e){return Ks(ns(Ki(Yi(e),mf)))}(e)),fromEpochNanoseconds:e=>Ry(function(e){return Ks(ns(Ki(Yi(e))))}(e)),compare:(e,t)=>Ju(Rm(e),Rm(t))}),[Yy,jy]=Mm("TimeZone",(e=>{const t=function(e){return zu(Vf(e))}(e);return{branding:"TimeZone",id:t,F:lg(t)}}),{id:e=>e.id},{getPossibleInstantsFor:(e,t)=>{let{F:n}=e;return n.getPossibleInstantsFor(Bm(t)).map((e=>Ry(Ks(e))))},getOffsetNanosecondsFor:(e,t)=>{let{F:n}=e;return n.getOffsetNanosecondsFor(Rm(t).epochNanoseconds)},getOffsetStringFor(e,t){const n=Rm(t).epochNanoseconds;return Fc(km(this,Hy).getOffsetNanosecondsFor(n))},getPlainDateTimeFor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Bf;const r=Rm(t).epochNanoseconds,o=km(this,Hy).getOffsetNanosecondsFor(r);return zy(Gs(ds(r,o),Jm(n)))},getInstantFor(e,t,n){const r=Bm(t),o=Ns(n),a=km(this);return Ry(Ks(Vc(a,r,o)))},getNextTransition:(e,t)=>{let{F:n}=e;return Pm(1,n,t)},getPreviousTransition:(e,t)=>{let{F:n}=e;return Pm(-1,n,t)},equals(e,t){return!!Qu(this,Ym(t))},toString:e=>e.id,toJSON:e=>e.id},{from(e){const t=Ym(e);return"string"==typeof t?new Yy(t):t}}),Fy=Im(Object.keys(ky)),[_y,By]=Mm(Qd,(function(){return Qs(Ds(ri(Fi,ni(ad,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0])),1))}),Ey,{getISOFields:Dy,with(e,t,n){return By(function(e,t,n){return Qs(((e,t,n)=>{const r=Cs(n);return Kh({...ii(If,e),...Vh(t,If)},r)})(e,t,n))}(this,Tm(t),n))},add:(e,t)=>By(eu(0,e,Zm(t))),subtract:(e,t)=>By(eu(1,e,Zm(t))),until:(e,t,n)=>wp(ih(0,e,jm(t),n)),since:(e,t,n)=>wp(ih(1,e,jm(t),n)),round:(e,t)=>By(function(e,t){const[n,r,o]=Hs(t,5);var a;return Qs((a=o,uc(e,lc(n,r),a)[0]))}(e,t)),equals:(e,t)=>function(e,t){return!Xu(e,t)}(e,jm(t)),toZonedDateTime:(e,t)=>Tp(function(e,t,n,r,o){const a=Ni(o),i=t(a.plainDate),s=e(a.timeZone);return Js(Vc(n(s),{...i,...r}),s,i.calendar)}(Ym,xm,Hm,e,t)),toPlainDateTime:(e,t)=>zy(function(e,t){return Gs(ts({...e,...t}))}(e,xm(t))),toLocaleString(e,t,n){const[r,o]=sy(t,n,e);return r.format(o)},toString:Oc,toJSON:e=>Oc(e),valueOf:Dm},{from:(e,t)=>By(jm(e,t)),compare:(e,t)=>Xu(jm(e),jm(t))}),[xy,$y,Uy]=Mm(Gd,li((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Bf,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const a=Fi(t),i=Fi(n),s=e(r);return qs(Qi(Ts({isoYear:a,isoMonth:i,isoDay:Fi(o)})),s)}),Jm),{...My,...Sy},{getISOFields:Dy,getCalendar:Cm,with(e,t,n){return $y(function(e,t,n,r,o){const a=$s(o);return qs(((e,t,n,r)=>{const o=Jh(e,t,n,Rf);return e.yearMonthFromFields(o,r)})(e(t.calendar),n,r,a))}(hp,e,this,Tm(t),n))},add:(e,t,n)=>$y(Qc(mp,0,e,Zm(t),n)),subtract:(e,t,n)=>$y(Qc(mp,1,e,Zm(t),n)),until:(e,t,n)=>wp(oh(yp,0,e,_m(t),n)),since:(e,t,n)=>wp(oh(yp,1,e,_m(t),n)),equals:(e,t)=>function(e,t){return!qu(e,t)&&oc(e.calendar,t.calendar)}(e,_m(t)),toPlainDate(e,t){return Ky(function(e,t,n,r){return((e,t,n)=>qh(e,t,Pf,Ni(n),Lf))(e(t.calendar),n,r)}(lp,e,this,t))},toLocaleString(e,t,n){const[r,o]=cy(t,n,e);return r.format(o)},toString:Dc,toJSON:e=>Dc(e),valueOf:Dm},{from:(e,t)=>$y(_m(e,t)),compare:(e,t)=>qu(_m(e),_m(t))}),[Zy,zy]=Mm(Xd,li((function(e,t,n,r){let o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:Bf;return Gs(ts(Is(ri(Fi,ni(sd,[t,n,r,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,arguments.length>9&&void 0!==arguments[9]?arguments[9]:0])))),e(o))}),Jm),{...My,...vy,...Ey},{getISOFields:Dy,getCalendar:Cm,with(e,t,n){return zy(function(e,t,n,r,o){const a=$s(o);return Gs(((e,t,n,r)=>{const o=Jh(e,t,n,Yf,Mf),a=Cs(r);return ts({...e.dateFromFields(o,Us(r,a)),...Kh(o,a)})})(e(t.calendar),n,r,a))}(lp,e,this,Tm(t),n))},withCalendar:(e,t)=>zy(il(e,Jm(t))),withPlainDate:(e,t)=>zy(function(e,t){return Gs({...e,...t},sl(e.calendar,t.calendar))}(e,xm(t))),withPlainTime:(e,t)=>zy(function(e){return Gs({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:ld})}(e,Fm(t))),add:(e,t,n)=>zy(qc(dp,0,e,Zm(t),n)),subtract:(e,t,n)=>zy(qc(dp,1,e,Zm(t),n)),until:(e,t,n)=>wp(nh(gp,0,e,Bm(t),n)),since:(e,t,n)=>wp(nh(gp,1,e,Bm(t),n)),round:(e,t)=>zy(function(e,t){return Gs(sc(e,...Hs(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!Wu(e,t)&&oc(e.calendar,t.calendar)}(e,Bm(t)),toZonedDateTime:(e,t,n)=>Tp(function(e,t,n,r){const o=((e,t,n,r)=>{const o=Ns(r);return Vc(e(t),n,o)})(e,n,t,r);return Js(ns(o),n,t.calendar)}(Hm,e,Ym(t),n)),toPlainDate:e=>Ky(Ws(e)),toPlainTime:e=>By(Qs(e)),toPlainYearMonth(e){return $y(function(e,t,n){const r=e(t.calendar);return qs({...t,...Wh(r,n)})}(sp,e,this))},toPlainMonthDay(e){return Oy(function(e,t,n){return Gh(e(t.calendar),n)}(up,e,this))},toLocaleString(e,t,n){const[r,o]=ay(t,n,e);return r.format(o)},toString:Ec,toJSON:e=>Ec(e),valueOf:Dm},{from:(e,t)=>zy(Bm(e,t)),compare:(e,t)=>Wu(Bm(e),Bm(t))}),[Vy,Ky,Jy]=Mm(qd,li((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Bf;return Ws(es(Ts(ri(Fi,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))}),Jm),{...My,...vy},{getISOFields:Dy,getCalendar:Cm,with(e,t,n){return Ky(function(e,t,n,r,o){const a=$s(o);return((e,t,n,r)=>{const o=Jh(e,t,n,Yf);return e.dateFromFields(o,r)})(e(t.calendar),n,r,a)}(lp,e,this,Tm(t),n))},withCalendar:(e,t)=>Ky(il(e,Jm(t))),add:(e,t,n)=>Ky(Xc(dp,0,e,Zm(t),n)),subtract:(e,t,n)=>Ky(Xc(dp,1,e,Zm(t),n)),until:(e,t,n)=>wp(rh(gp,0,e,xm(t),n)),since:(e,t,n)=>wp(rh(gp,1,e,xm(t),n)),equals:(e,t)=>function(e,t){return!qu(e,t)&&oc(e.calendar,t.calendar)}(e,xm(t)),toZonedDateTime(e,t){const n=!Wa(t)||t instanceof Yy?{timeZone:t}:t;return Tp(function(e,t,n,r,o){const a=e(o.timeZone),i=o.plainTime,s=void 0!==i?t(i):ld;return Js(Vc(n(a),{...r,...s}),a,r.calendar)}(Ym,jm,Hm,e,n))},toPlainDateTime:(e,t)=>zy(function(e){return Gs(ts({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:ld}))}(e,Fm(t))),toPlainYearMonth(e){return $y(function(e,t,n){return Wh(e(t.calendar),n)}(sp,e,this))},toPlainMonthDay(e){return Oy(function(e,t,n){return Gh(e(t.calendar),n)}(up,e,this))},toLocaleString(e,t,n){const[r,o]=iy(t,n,e);return r.format(o)},toString:Ac,toJSON:e=>Ac(e),valueOf:Dm},{from:(e,t)=>Ky(xm(e,t)),compare:(e,t)=>qu(xm(e),xm(t))}),Gy={fields:(e,t,n)=>[...t.call(e,n)]},Wy=Object.assign({dateFromFields:(e,t,n,r)=>Jy(t.call(e,Object.assign(Object.create(null),n),r))},Gy),qy=Object.assign({yearMonthFromFields:(e,t,n,r)=>Uy(t.call(e,Object.assign(Object.create(null),n),r))},Gy),Xy=Object.assign({monthDayFromFields:(e,t,n,r)=>Ny(t.call(e,Object.assign(Object.create(null),n),r))},Gy),Qy={mergeFields:(e,t,n,r)=>Ni(t.call(e,Object.assign(Object.create(null),n),Object.assign(Object.create(null),r)))},ep=Object.assign({},Wy,Qy),tp=Object.assign({},qy,Qy),np=Object.assign({},Xy,Qy),rp={dateAdd:(e,t,n,r,o)=>Jy(t.call(e,Ky(Ws(n,e)),wp(ec(r)),o))},op=Object.assign({},rp,{dateUntil:(e,t,n,r,o,a)=>vp(t.call(e,Ky(Ws(n,e)),Ky(Ws(r,e)),Object.assign(Object.create(null),a,{largestUnit:ff[o]})))}),ap=Object.assign({},rp,{day:$m}),ip=Object.assign({},op,{day:$m}),sp=Um(qy),cp=Um(Wy),up=Um(Xy),hp=Um(tp),lp=Um(ep),fp=Um(np),dp=Um(rp),gp=Um(op),mp=Um(ap),yp=Um(ip),[pp,wp,vp]=Mm(ng,(function(){return ec(wu(ri(_i,ni(Wf,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,arguments.length>9&&void 0!==arguments[9]?arguments[9]:0]))))}),{...Ty,blank:function(e){return!e.sign}},{with:(e,t)=>wp(function(e,t){return ec((n=e,r=t,wu({...n,...Vh(r,qf)})));var n,r}(e,t)),negated:e=>wp(mu(e)),abs:e=>wp(function(e){return-1===e.sign?mu(e):e}(e)),add:(e,t,n)=>wp(gu(zm,gp,Hm,0,e,Zm(t),n)),subtract:(e,t,n)=>wp(gu(zm,gp,Hm,1,e,Zm(t),n)),round:(e,t)=>wp(function(e,t,n,r,o){const a=Tu(r),[i,s,c,u,h]=((e,t,n)=>{e=xs(e,Ad);let r=Bd(e);const o=n(e[Nd]);let a=js(e);const i=Jd(e,7);let s=_d(e);if(void 0===r&&void 0===s)throw new RangeError(tf);return null==s&&(s=0),null==r&&(r=Math.max(s,t)),Vs(r,s),a=Fs(a,s,1),[r,s,a,i,o]})(o,a,e);if(fu(Math.max(a,i),h))return ec(wu(((e,t,n,r,o)=>{const a=yc(Su(e),n,r,o);return{...nd,...bu(a,t)}})(r,i,s,c,u)));if(!h)throw new RangeError(Ql);const[l,f,d]=su(t,n,h),g=cu(d),m=uu(f,d),y=hu(f,d);let p=0;r.weeks&&7===s&&(p=r.weeks,r={...r,weeks:0});let[w,v]=du(r,i,l,g,m,y);const S=r.sign,b=pu(w);if(S&&b&&S!==b)throw new RangeError(xl);return b&&(w=mc(w,v,i,s,c,u,l,g,m)),w.weeks+=p,ec(w)}(zm,gp,Hm,e,t)),total:(e,t)=>function(e,t,n,r,o){const a=Tu(r),[i,s]=((e,t)=>{const n=t((e=xs(e,Dd))[Nd]);let r=xd(e);return r=Oi(Dd,r),[r,n]})(o,e);if(fu(Math.max(i,a),s))return((e,t)=>Wi(Su(e),bf[t],1))(r,i);if(!s)throw new RangeError(Ql);const[c,u,h]=su(t,n,s),l=cu(h),f=uu(u,h);return((e,t,n,r,o,a)=>{const i=pu(e),[s,c]=ac(od(n,e),n,i,r,o,a),u=ic(t,s,c);return e[Wf[n]]+u*i})(...du(r,i,c,l,f,hu(u,h)),i,c,l,f)}(zm,gp,Hm,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):Nc(e)},toString:Nc,toJSON:e=>Nc(e),valueOf:Dm},{from:e=>wp(Zm(e)),compare:(e,t,n)=>function(e,t,n,r,o,a){const i=e(Bs(a).relativeTo),s=Math.max(Tu(r),Tu(o));if(ui(Wf,r,o))return 0;if(fu(s,i))return zi(Su(r),Su(o));if(!i)throw new RangeError(Ql);const[c,u,h]=su(t,n,i),l=cu(h),f=uu(u,h);return zi(l(f(c,r)),l(f(c,o)))}(zm,dp,Hm,Zm(e),Zm(t),n)}),Sp={toString:e=>e.id,toJSON:e=>e.id,...wy,dateAdd:(e,t,n,r)=>{let{id:o,F:a}=e;return Ky(Ws(a.dateAdd(xm(t),Zm(n),r),o))},dateUntil:(e,t,n,r)=>{let{F:o}=e;return wp(ec(o.dateUntil(xm(t),xm(n),function(e){return e=Bs(e),Bd(e,9,6,1)}(r))))},dateFromFields:(e,t,n)=>{let{id:r,F:o}=e;return Ky($h(o,t,n,function(e){return e===Bf?["year","day"]:[]}(r)))},yearMonthFromFields:(e,t,n)=>{let{id:r,F:o}=e;return $y(Uh(o,t,n,function(e){return e===Bf?Nf:[]}(r)))},monthDayFromFields:(e,t,n)=>{let{id:r,F:o}=e;return Oy(Zh(o,0,t,n,function(e){return e===Bf?Lf:[]}(r)))},fields(e,t){let{F:n}=e;const r=new Set(Yf),o=[];for(const e of t){if(Vf(e),!r.has(e))throw new RangeError(Al(e));r.delete(e),o.push(e)}return n.fields(o)},mergeFields:(e,t,n)=>{let{F:r}=e;return r.mergeFields(ci(Ci(t)),ci(Ci(n)))}},[bp]=Mm("Calendar",(e=>{const t=function(e){return Oh(Vf(e))}(e);return{branding:"Calendar",id:t,F:Ug(t)}}),{id:e=>e.id},Sp,{from(e){const t=Jm(e);return"string"==typeof t?new bp(t):t}}),Mp=Im(Object.keys(Sp).slice(4)),[Ip,Tp]=Mm(eg,li((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Bf;return Js(ns(Ki(Yi(n))),t(r),e(o))}),Jm,Ym),{...Ay,...My,...Wm(vy),...Wm(Ey),offset:e=>Fc(qm(e).offsetNanoseconds),offsetNanoseconds:e=>qm(e).offsetNanoseconds,timeZoneId:e=>rc(e.timeZone),hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=ug(t,n),[o,a]=fc(r),i=Wi(Zi(Vc(n,o),Vc(n,a)),vf,1);if(i<=0)throw new RangeError(xl);return i}(Hm,e)},{getISOFields:e=>function(e,t){const n=ug(t,e);return{calendar:t.calendar,...ii(hd,n),offset:Fc(n.offsetNanoseconds),timeZone:t.timeZone}}(Lm,e),getCalendar:Cm,getTimeZone:e=>{let{timeZone:t}=e;return"string"==typeof t?new Yy(t):t},with(e,t,n){return Tp(function(e,t,n,r,o,a){const i=$s(a),{calendar:s,timeZone:c}=n;return Js(((e,t,n,r,o)=>{const a=Jh(e,n,r,Yf,Af,Tf),[i,s,c]=Os(o,2);return zc(t,{...e.dateFromFields(a,Us(o,i)),...Kh(a,i)},Du(a.offset),s,c)})(e(s),t(c),r,o,i),c,s)}(lp,Hm,e,this,Tm(t),n))},withCalendar:(e,t)=>Tp(il(e,Jm(t))),withTimeZone:(e,t)=>Tp(function(e,t){return{...e,timeZone:t}}(e,Ym(t))),withPlainDate:(e,t)=>Tp(function(e,t,n){const r=t.timeZone,o=e(r),a={...ug(t,o),...n},i=sl(t.calendar,n.calendar);return Js(zc(o,a,a.offsetNanoseconds,2),r,i)}(Hm,e,xm(t))),withPlainTime:(e,t)=>Tp(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ld;const r=t.timeZone,o=e(r),a={...ug(t,o),...n};return Js(zc(o,a,a.offsetNanoseconds,2),r,t.calendar)}(Hm,e,Fm(t))),add:(e,t,n)=>Tp(Wc(dp,Hm,0,e,Zm(t),n)),subtract:(e,t,n)=>Tp(Wc(dp,Hm,1,e,Zm(t),n)),until:(e,t,n)=>wp(ec(th(gp,Hm,0,e,Gm(t),n))),since:(e,t,n)=>wp(ec(th(gp,Hm,1,e,Gm(t),n))),round:(e,t)=>Tp(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:a}=t;const[i,s,c]=Hs(n);if(0===i&&1===s)return t;const u=e(o);if(6===i)r=((e,t,n,r)=>{const o=ug(n,t),[a,i]=e(o),s=n.epochNanoseconds,c=Vc(t,a),u=Vc(t,i);if(Vi(s,c,u))throw new RangeError(xl);return vc(ic(s,c,u),r)?u:c})(fc,u,t,c);else{const e=u.getOffsetNanosecondsFor(r);r=zc(u,sc(ds(r,e),i,s,c),e,2,0,1)}return Js(r,o,a)}(Hm,e,t)),startOfDay:e=>Tp(function(e,t){const{timeZone:n,calendar:r}=t,o=((e,t,n)=>Vc(t,e(ug(n,t))))(dc,e(n),t);return Js(o,n,r)}(Hm,e)),equals:(e,t)=>function(e,t){return!Gu(e,t)&&!!Qu(e.timeZone,t.timeZone)&&oc(e.calendar,t.calendar)}(e,Gm(t)),toInstant:e=>Ry(function(e){return Ks(e.epochNanoseconds)}(e)),toPlainDateTime:e=>zy(rl(Lm,e)),toPlainDate:e=>Ky(ol(Lm,e)),toPlainTime:e=>By(al(Lm,e)),toPlainYearMonth(e){return $y(function(e,t,n){return Wh(e(t.calendar),n)}(sp,e,this))},toPlainMonthDay(e){return Oy(function(e,t,n){return Gh(e(t.calendar),n)}(up,e,this))},toLocaleString(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o]=oy(t,n,e);return r.format(o)},toString:(e,t)=>Tc(Lm,e,t),toJSON:e=>Tc(Lm,e),valueOf:Dm},{from:(e,t)=>Tp(Gm(e,t)),compare:(e,t)=>Gu(Gm(e),Gm(t))}),Ep=Object.defineProperties({},{...ti("Temporal.Now"),...Qa({timeZoneId:()=>ml(),instant:()=>Ry(Ks(gl())),zonedDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ml();return Tp(Js(gl(),Ym(t),Jm(e)))},zonedDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ml();return Tp(Js(gl(),Ym(e),Bf))},plainDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ml();return zy(Gs(dl(Lm(Ym(t))),Jm(e)))},plainDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ml();return zy(Gs(dl(Lm(Ym(e))),Bf))},plainDate:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ml();return Ky(Ws(dl(Lm(Ym(t))),Jm(e)))},plainDateISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ml();return Ky(Ws(dl(Lm(Ym(e))),Bf))},plainTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ml();return By(Qs(dl(Lm(Ym(e)))))}})}),Ap=Object.defineProperties({},{...ti("Temporal"),...Qa({PlainYearMonth:xy,PlainMonthDay:Cy,PlainDate:Vy,PlainTime:_y,PlainDateTime:Zy,ZonedDateTime:Ip,Instant:Ly,Calendar:bp,TimeZone:Yy,Duration:pp,Now:Ep})}),Dp=Xm(),Cp=new WeakMap;function Op(e){return e*Math.PI/180}function Np(e){return 180*e/Math.PI}Object.create(Intl),Qa({DateTimeFormat:Dp});class kp{constructor(e,t,n,r,o){this.locationName=null,this.setLocationName(e),this.setLatitude(t),this.setLongitude(n),this.setElevation(r),this.setTimeZone(o)}getElevation(){return this.elevation}setElevation(e){if("number"!=typeof e)throw new TypeError("Invalid elevation");if(e<0)throw new RangeError(`elevation ${e} must be zero or positive`);this.elevation=e}setLatitude(e){if("number"!=typeof e)throw new TypeError("Invalid latitude");if(e<-90||e>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);this.latitude=e}getLatitude(){return this.latitude}setLongitude(e){if("number"!=typeof e)throw new TypeError("Invalid longitude");if(e<-180||e>180)throw new RangeError(`Longitude ${e} out of range [-180,180]`);this.longitude=e}getLongitude(){return this.longitude}getLocationName(){return this.locationName}setLocationName(e){this.locationName=e}getTimeZone(){return this.timeZoneId}setTimeZone(e){this.timeZoneId=e}}const Hp=6356.9;class Lp{constructor(e,t){this.date=t,this.geoLocation=e}getSunrise(){const e=this.getUTCSunrise0(Lp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(Lp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(Lp.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(Lp.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(Lp.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(Lp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(Lp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(Lp.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(Lp.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(Lp.ASTRONOMICAL_ZENITH)}static getTimeOffset(e,t){return null===e||isNaN(t)?null:e.add({milliseconds:t})}getSunriseOffsetByDegrees(e){const t=this.getUTCSunrise0(e);return isNaN(t)?null:this.getDateFromTime(t,!0)}getSunsetOffsetByDegrees(e){const t=this.getUTCSunset0(e);return isNaN(t)?null:this.getDateFromTime(t,!1)}getUTCSunrise0(e){return this.getUTCSunrise(this.getAdjustedDate(),this.geoLocation,e,!0)}getUTCSeaLevelSunrise(e){return this.getUTCSunrise(this.getAdjustedDate(),this.geoLocation,e,!1)}getUTCSunset0(e){return this.getUTCSunset(this.getAdjustedDate(),this.geoLocation,e,!0)}getUTCSeaLevelSunset(e){return this.getUTCSunset(this.getAdjustedDate(),this.geoLocation,e,!1)}getAdjustedDate(){return this.date}getElevationAdjustment(e){return Np(Math.acos(Hp/(Hp+e/1e3)))}adjustZenith(e,t){let n=e;return e===Lp.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}getUTCSunrise(e,t,n,r){const o=r?t.getElevation():0,a=this.adjustZenith(n,o);let i=Lp.getSunriseUTC(Lp.getJulianDay(e),t.getLatitude(),-t.getLongitude(),a);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getUTCSunset(e,t,n,r){const o=r?t.getElevation():0,a=this.adjustZenith(n,o);let i=Lp.getSunsetUTC(Lp.getJulianDay(e),t.getLatitude(),-t.getLongitude(),a);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}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 Lp.getTimeOffset(e,6*n)}getDateFromTime(e,t){if(isNaN(e))return null;let n=e,r=this.getAdjustedDate();const o=Math.trunc(n);n-=o;const a=Math.trunc(n*=60);n-=a;const i=Math.trunc(n*=60);n-=i;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 Ap.PlainTime(o,a,i,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),a=Math.trunc(2-o+o/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+a-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-Lp.JULIAN_DAY_JAN_1_2000)/Lp.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*Lp.JULIAN_DAYS_PER_CENTURY+Lp.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=Op(Lp.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 Lp.getSunGeometricMeanLongitude(e)+Lp.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return Lp.getSunTrueLongitude(e)-.00569-.00478*Math.sin(Op(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 Lp.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(Op(t))}static getSunDeclination(e){const t=Lp.getObliquityCorrection(e),n=Lp.getSunApparentLongitude(e),r=Math.sin(Op(t))*Math.sin(Op(n));return Np(Math.asin(r))}static getEquationOfTime(e){const t=Lp.getObliquityCorrection(e),n=Lp.getSunGeometricMeanLongitude(e),r=Lp.getEarthOrbitEccentricity(e),o=Lp.getSunGeometricMeanAnomaly(e);let a=Math.tan(Op(t)/2);a*=a;const i=Math.sin(2*Op(n)),s=Math.sin(Op(o));return 4*Np(a*i-2*r*s+4*r*a*s*Math.cos(2*Op(n))-.5*a*a*Math.sin(4*Op(n))-1.25*r*r*Math.sin(2*Op(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=Op(e),o=Op(t);return Math.acos(Math.cos(Op(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=Op(e),o=Op(t);return-Math.acos(Math.cos(Op(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=Lp.getJulianDay(e.toPlainDate()),o=Lp.getJulianCenturiesFromJulianDay(r),a=Lp.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=Op(n-i),c=Op(Lp.getSunDeclination(o)),u=Op(t);return Np(Math.asin(Math.sin(u)*Math.sin(c)+Math.cos(u)*Math.cos(c)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=Lp.getJulianDay(e.toPlainDate()),o=Lp.getJulianCenturiesFromJulianDay(r),a=Lp.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=Op(n-i),c=Op(Lp.getSunDeclination(o)),u=Op(t);return Np(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(u)-Math.tan(c)*Math.cos(u))))+180}static getSunriseUTC(e,t,n,r){const o=Lp.getJulianCenturiesFromJulianDay(e),a=Lp.getSolarNoonUTC(o,n),i=Lp.getJulianCenturiesFromJulianDay(e+a/1440);let s=Lp.getEquationOfTime(i),c=Lp.getSunDeclination(i),u=Lp.getSunHourAngleAtSunrise(t,c,r),h=n-Np(u),l=4*h,f=720+l-s;const d=Lp.getJulianCenturiesFromJulianDay(Lp.getJulianDayFromJulianCenturies(o)+f/1440);return s=Lp.getEquationOfTime(d),c=Lp.getSunDeclination(d),u=Lp.getSunHourAngleAtSunrise(t,c,r),h=n-Np(u),l=4*h,f=720+l-s,f}static getSolarNoonUTC(e,t){const n=Lp.getJulianCenturiesFromJulianDay(Lp.getJulianDayFromJulianCenturies(e)+t/360);let r=Lp.getEquationOfTime(n);const o=720+4*t-r,a=Lp.getJulianCenturiesFromJulianDay(Lp.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=Lp.getEquationOfTime(a),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=Lp.getJulianCenturiesFromJulianDay(e),a=Lp.getSolarNoonUTC(o,n),i=Lp.getJulianCenturiesFromJulianDay(e+a/1440);let s=Lp.getEquationOfTime(i),c=Lp.getSunDeclination(i),u=Lp.getSunHourAngleAtSunset(t,c,r),h=n-Np(u),l=4*h,f=720+l-s;const d=Lp.getJulianCenturiesFromJulianDay(Lp.getJulianDayFromJulianCenturies(o)+f/1440);return s=Lp.getEquationOfTime(d),c=Lp.getSunDeclination(d),u=Lp.getSunHourAngleAtSunset(t,c,r),h=n-Np(u),l=4*h,f=720+l-s,f}}Lp.GEOMETRIC_ZENITH=90,Lp.CIVIL_ZENITH=96,Lp.NAUTICAL_ZENITH=102,Lp.ASTRONOMICAL_ZENITH=108,Lp.JULIAN_DAY_JAN_1_2000=2451545,Lp.JULIAN_DAYS_PER_CENTURY=36525;const Rp=[["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]],Pp=new Map,Yp={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"},jp=new Map;class Fp extends kp{constructor(e,t,n,r,o,a,i,s){const c="number"==typeof e?e:parseFloat(e);if(isNaN(c)||c<-90||c>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const u="number"==typeof t?t:parseFloat(t);if(isNaN(u)||u<-180||u>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o,c,u,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=a,this.geoid=i}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=jp.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return jp.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return Pp.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 Yp[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":Yp[t]}static addLocation(e,t){const n=e.toLowerCase();return!Pp.has(n)&&(Pp.set(n,t),!0)}}for(const e of Rp){const t=new Fp(e[2],e[3],"IL"==e[1],e[4],e[0],e[1],void 0,e[5]);Fp.addLocation(t.getName(),t)}const _p=new Map;const Bp=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function xp(e,t){const n=function(e){const t=_p.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 _p.set(e,n),n}(e).format(t),r=Bp.exec(n);let o=r[4];return"24"==o&&(o="00"),r[3]=$p(r[3]),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function $p(e){return e<0?"-00"+$p(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function Up(e){return e<10?"0"+e:String(e)}function Zp(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}Object.defineProperties(globalThis,Qa({Temporal:Ap})),Object.defineProperties(Intl,Qa({DateTimeFormat:Dp})),Object.defineProperties(Date.prototype,Qa({toTemporalInstant:function(){return Ry(Ks(Ji(this.valueOf(),yf)))}}));class zp{constructor(t,n,r){const o=e.greg.isDate(n)?n:we.isHDate(n)?n.greg():le(`invalid date: ${n}`);this.date=o,this.gloc=t;const a=Temporal.PlainDate.from({year:o.getFullYear(),month:o.getMonth()+1,day:o.getDate()});this.noaa=new Lp(t,a),this.useElevation=Boolean(r)}timeAtAngle(e,t){const n=90+e;return Zp(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return Zp(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return Zp(this.noaa.getSeaLevelSunrise())}sunset(){return Zp(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return Zp(this.noaa.getSeaLevelSunset())}dawn(){return Zp(this.noaa.getBeginCivilTwilight())}dusk(){return Zp(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new zp(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise()-this.gregEve())/12}chatzot(){return Zp(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 Zp(Lp.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}getTemporalHour72(){const e=this.sunriseOffset(-72,!1,!0);return[e,(this.sunsetOffset(72,!1,!0)-e)/12]}getTemporalHour16Point1(){const e=this.alotHaShachar();return[e,(this.tzeit(16.1)-e)/12]}sofZmanShmaMGA(){const[e,t]=this.getTemporalHour72();return new Date(e.getTime()+3*t)}sofZmanShmaMGA16Point1(){const[e,t]=this.getTemporalHour16Point1();return new Date(e.getTime()+3*t)}sofZmanTfillaMGA(){const[e,t]=this.getTemporalHour72();return new Date(e.getTime()+4*t)}sofZmanTfillaMGA16Point1(){const[e,t]=this.getTemporalHour16Point1();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()}beinHaShmashos(){const e=this.tzeit(7.083),t=e.getTime();return isNaN(t)?e:new Date(t-81e4)}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=xp("UTC",t),r=xp(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?"+":"-")+Up(Math.floor(r/60))+":"+Up(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?null:xp(e,t).substring(0,19)+zp.timeZoneOffset(e,t)}sunriseOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunrise():this.sunrise();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}sunsetOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunset():this.sunset();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}}const Vp={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 Kp(e,t,n){var r;if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const o=(null==n||null===(r=n.location)||void 0===r?void 0:r.cc)||(null!=n&&n.il?"IL":"US"),a=null==n?void 0:n.hour12;if(void 0!==a&&!a)return e;if(!a&&void 0===Vp[o])return e;const i=e.split(":");let s=parseInt(i[0],10);return s<12&&t?(t=t.replace("p","a").replace("P","A"),0===s&&(s=12)):s>12?s%=12:0===s&&(s="00"),`${s}:${i[1]}${t}`}function Jp(e,t,n,r,o){let a=!1,i=o,s=e?e.getFlags():Me.LIGHT_CANDLES;void 0!==e?r||(s&(Me.LIGHT_CANDLES_TZEIS|Me.CHANUKAH_CANDLES)?i=!0:s&Me.YOM_TOV_ENDS&&(a=!0,i=!0)):o&&(a=!0,s=Me.LIGHT_CANDLES_TZEIS);const c=i?n.havdalahMins:n.candleLightingMins,u=n.location,h=new zp(u,t,n.useElevation),l=c?h.sunsetOffset(c,!0):h.tzeit(n.havdalahDeg);return isNaN(l.getTime())?null:a?new Wp(t,s,l,u,n.havdalahMins,e,n):new qp(t,s,l,u,e,n)}class Gp extends Te{constructor(e,t,n,r,o,a,i){super(e,t,n),this.eventTime=zp.roundTime(r),this.location=o;const s=o.getTimeFormatter();this.eventTimeStr=zp.formatTime(this.eventTime,s);const c=Object.assign({location:o},i);this.fmtTime=Kp(this.eventTimeStr,"pm",c),void 0!==a&&(this.linkedEvent=a)}render(e){return he.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return he.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 Wp extends Gp{constructor(e,t,n,r,o,a,i){super(e,"Havdalah",t,n,r,a,i),o&&(this.havdalahMins=o)}render(e){return this.renderBrief(e)+": "+this.fmtTime}renderBrief(e){let t=he.gettext(this.getDesc(),e);if(this.havdalahMins){const n=he.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}class qp extends Gp{constructor(e,t,n,r,o,a){super(e,"Candle lighting",t,n,r,o,a)}getEmoji(){return"🕯️"}}function Xp(e,t,n,r,o){if(isNaN(t.getTime()))return null;const a=o.location;return new Gp(e,n,r.getFlags(),t,a,r,o)}const Qp=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ew=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],tw="בַּלַּ֥יְלָה";class nw{constructor(e,t){let n=t-7;n<0&&(n+=we.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),a=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,i=(o%1080+a%24*1080)%1080,s=(1+29*r+Math.floor(a/24))%7;this.year=e,this.month=t,this.dow=s,this.hour=a%24,this.minutes=Math.floor(i/18),this.chalakim=i%18}getYear(){return this.year}getMonth(){return this.month}getMonthName(){return we.getMonthName(this.month,this.year)}getDow(){return this.dow}getHour(){return this.hour}getMinutes(){return this.minutes}getChalakim(){return this.chalakim}render(e,t){"string"==typeof(e=e||he.getLocaleName())&&(e=e.toLowerCase());const n="he"===e||"he-x-nonikud"===e||"h"===e,r=he.gettext(this.getMonthName(),e),o=(n?ew:Qp)[this.getDow()],a=this.getMinutes(),i=this.getHour(),s=this.getChalakim(),c=he.gettext("Molad",e),u=he.lookupTranslation("min",e)||"minutes",h=he.gettext("chalakim",e);if(n){const t=`${c} ${r} יִהְיֶה בַּיּוֹם ${o} בשָׁבוּעַ, בְּשָׁעָה ${i} ${i<5?tw:i<12?"בַּבֹּקֶר":i<17?"בַּצׇּהֳרַיִים":i<21?"בָּעֶרֶב":tw}, ו-${a} ${u} ו-${s} ${h}`;return"he-x-nonikud"===e?he.hebrewStripNikkud(t):t}const l=Kp(`${i}:00`,"pm",t);return`${c} ${r.replace(/'/g,"’")}: ${o}, ${a} ${u} and ${s} ${h} after ${l}`}}class rw extends Te{constructor(e,t,n,r){const o=new nw(t,n);super(e,`Molad ${o.getMonthName()} ${t}`,Me.MOLAD),this.molad=o,this.options=r}render(e){return this.molad.render(e,this.options)}}class ow extends Te{constructor(e,t){if(super(e,`Omer ${t}`,Me.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";return"he"!==e&&"translit"!==e&&(e="en"),function(e,t){J(e);const[n,r]=G(e),o=K[t],a=o.words[n];return(o.words[r]+" "+(2===n||6===n?o.infix26:o.infix)+a).normalize()}(this.omer,e)}render(e){e=e||he.getLocaleName();const t=this.omer;return("he"==e?z(t):he.ordinal(t,e))+" "+he.gettext("day of the Omer",e)}renderBrief(e){return he.gettext("Omer",e)+" "+he.gettext("day",e)+" "+this.omer}getEmoji(){return"string"==typeof this.emoji?this.emoji:(J(e=this.omer),e<=20?String.fromCodePoint(9312+e-1):e<=35?String.fromCodePoint(12881+e-21):String.fromCodePoint(12977+e-36));var e}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){if("string"==typeof(e=e||he.getLocaleName())&&(e=e.toLowerCase()),"he"===e)return W(this.omer,"he");if("he-x-nonikud"===e){const e=W(this.omer,"he");return he.hebrewStripNikkud(e)}return W(this.omer,"en")}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}class aw extends Map{#e=0;#t=new Map;#n=new Map;#r;#o;#a;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.#r=e.maxSize,this.#o=e.maxAge||Number.POSITIVE_INFINITY,this.#a=e.onEviction}get __oldCache(){return this.#n}#i(e){if("function"==typeof this.#a)for(const[t,n]of e)this.#a(t,n.value)}#s(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.#a&&this.#a(e,t.value),this.delete(e))}#c(e,t){if(!1===this.#s(e,t))return t.value}#u(e,t){return t.expiry?this.#c(e,t):t.value}#h(e,t){const n=t.get(e);return this.#u(e,n)}#l(e,t){this.#t.set(e,t),this.#e++,this.#e>=this.#r&&(this.#e=0,this.#i(this.#n),this.#n=this.#t,this.#t=new Map)}#f(e,t){this.#n.delete(e),this.#l(e,t)}*#d(){for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield e)}}for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield e)}}get(e){if(this.#t.has(e)){const t=this.#t.get(e);return this.#u(e,t)}if(this.#n.has(e)){const t=this.#n.get(e);if(!1===this.#s(e,t))return this.#f(e,t),t.value}}set(e,t){let{maxAge:n=this.#o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.#t.has(e)?this.#t.set(e,{value:t,expiry:r}):this.#l(e,{value:t,expiry:r}),this}has(e){return this.#t.has(e)?!this.#s(e,this.#t.get(e)):!!this.#n.has(e)&&!this.#s(e,this.#n.get(e))}peek(e){return this.#t.has(e)?this.#h(e,this.#t):this.#n.has(e)?this.#h(e,this.#n):void 0}delete(e){const t=this.#t.delete(e);return t&&this.#e--,this.#n.delete(e)||t}clear(){this.#t.clear(),this.#n.clear(),this.#e=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this.#d()],n=t.length-e;n<0?(this.#t=new Map(t),this.#n=new Map,this.#e=t.length):(n>0&&this.#i(t.slice(0,n)),this.#n=new Map(t.slice(n)),this.#t=new Map,this.#e=0),this.#r=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield[t,n.value])}for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.#t];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;!1===this.#s(r,o)&&(yield[r,o.value])}e=[...this.#n];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;if(!this.#t.has(r)){!1===this.#s(r,o)&&(yield[r,o.value])}}}*entriesAscending(){for(const[e,t]of this.#d())yield[e,t.value]}get size(){if(!this.#e)return this.#n.size;let e=0;for(const t of this.#n.keys())this.#t.has(t)||e++;return Math.min(this.#e+e,this.#r)}get maxSize(){return this.#r}entries(){return this.entriesAscending()}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}class iw{constructor(e,t){e=+e;const n=we.longCheshvan(e),r=we.shortKislev(e),o=this.type=n&&!r?2:!n&&r?0:1;this.year=e;const a=new we(1,m.TISHREI,e),i=a.abs(),s=this.roshHashanaDay=a.getDay()+1;this.firstSaturday=we.dayOnOrBefore(6,i+6);const c=this.leap=+we.isLeapYear(e);this.il=Boolean(t);const u=`${c}${s}${o}`;if(Iw[u])this.key=u,this.theSedraArray=Iw[u];else{const e=this.key=u+ +this.il;this.theSedraArray=Iw[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||he.getLocaleName();let o=he.gettext(n[0],r);if(2==n.length){o+=("he"==r?"־":"-")+he.gettext(n[1],r)}return o=o.replace(/'/g,"’"),he.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 we(this.firstSaturday+7*t)}if("string"==typeof e){const t=cw.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 we(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=cw.get(t);if(cw.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:we.isHDate(e)?e.abs():function(e){throw new TypeError(e)}(`Bad date argument: ${e}`),n=we.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return Ew(this.year+1,this.il).lookup(n)}if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[sw[o]],chag:!1,num:o+1};const a=uw(o);return{parsha:[sw[a],sw[a+1]],chag:!1,num:[a+1,a+2]}}}const sw=["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"],cw=new Map;for(let e=0;e<sw.length;e++){const t=sw[e];cw.set(t,e)}function uw(e){return-e}const hw="Rosh Hashana",lw="Yom Kippur",fw="Sukkot",dw="Sukkot Shabbat Chol ha-Moed",gw="Shmini Atzeret",mw=dw,yw="Pesach",pw="Pesach I",ww="Pesach Shabbat Chol ha-Moed",vw="Pesach VII",Sw="Pesach VIII",bw="Shavuot";function Mw(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const Iw={"020":[51,52].concat(mw,Mw(0,20),uw(21),23,24,yw,25,uw(26),uw(28),30,uw(31),Mw(33,40),uw(41),Mw(43,49),uw(50)),"0220":[51,52].concat(mw,Mw(0,20),uw(21),23,24,yw,25,uw(26),uw(28),30,uw(31),33,bw,Mw(34,37),uw(38),40,uw(41),Mw(43,49),uw(50)),"0510":[52].concat(lw,mw,Mw(0,20),uw(21),23,24,pw,Sw,25,uw(26),uw(28),30,uw(31),Mw(33,40),uw(41),Mw(43,50)),"0511":[52].concat(lw,mw,Mw(0,20),uw(21),23,24,yw,25,uw(26),uw(28),Mw(30,40),uw(41),Mw(43,50)),"052":[52].concat(lw,dw,Mw(0,24),vw,25,uw(26),uw(28),30,uw(31),Mw(33,40),uw(41),Mw(43,50)),"070":[].concat(hw,52,fw,gw,Mw(0,20),uw(21),23,24,vw,25,uw(26),uw(28),30,uw(31),Mw(33,40),uw(41),Mw(43,50)),"072":[].concat(hw,52,fw,gw,Mw(0,20),uw(21),23,24,ww,25,uw(26),uw(28),30,uw(31),Mw(33,40),uw(41),Mw(43,49),uw(50)),1200:[51,52].concat(dw,Mw(0,27),ww,Mw(28,33),bw,Mw(34,37),uw(38),40,uw(41),Mw(43,49),uw(50)),1201:[51,52].concat(dw,Mw(0,27),ww,Mw(28,40),uw(41),Mw(43,49),uw(50)),1220:[51,52].concat(dw,Mw(0,27),pw,Sw,Mw(28,40),uw(41),Mw(43,50)),1221:[51,52].concat(dw,Mw(0,27),yw,Mw(28,50)),150:[52].concat(lw,dw,Mw(0,28),vw,Mw(29,50)),152:[52].concat(lw,dw,Mw(0,28),ww,Mw(29,49),uw(50)),170:[].concat(hw,52,fw,gw,Mw(0,27),ww,Mw(28,40),uw(41),Mw(43,49),uw(50)),1720:[].concat(hw,52,fw,gw,Mw(0,27),ww,Mw(28,33),bw,Mw(34,37),uw(38),40,uw(41),Mw(43,49),uw(50))};Iw["0221"]=Iw["020"],Iw["0310"]=Iw["0220"],Iw["0311"]=Iw["020"],Iw[1310]=Iw[1220],Iw[1311]=Iw[1221],Iw[1721]=Iw[170];const Tw=new aw({maxSize:400});function Ew(e,t){const n=`${e}-${t?1:0}`;let r=Tw.get(n);return r||(r=new iw(e,t),Tw.set(n,r)),r}class Aw extends Te{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("-"),Me.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){const t=e||he.getLocaleName(),n=this.parsha;let r=he.gettext(n[0],e);if(2==n.length){r+=("he"==t?"־":"-")+he.gettext(n[1],e)}r=r.replace(/'/g,"’");return(he.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 Dw=uo,Cw=zn,Ow=Wn,Nw=ke,kw=function(e,t,n){return n.get&&Dw(n.get,t,{getter:!0}),n.set&&Dw(n.set,t,{setter:!0}),Cw.f(e,t,n)},Hw=function(){var e=Ow(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},Lw=Ne,Rw=Ce.RegExp,Pw=Rw.prototype,Yw=Nw&&Lw((function(){var e=!0;try{Rw(".","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}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var i in e&&(a.hasIndices="d"),a)o(i,a[i]);return Object.getOwnPropertyDescriptor(Pw,"flags").get.call(t)!==r||n!==r}));Yw&&kw(Pw,"flags",{configurable:!0,get:Hw});const jw=0,Fw=2,_w=5,Bw=6,xw=m.NISAN,$w=m.IYYAR;function Uw(e){if(e<5708)return null;let t;const n=new we(15,xw,e).getDay();return t=n===jw?2:n===Bw?3:e<5764?4:n===Fw?5:4,new we(t,$w,e)}const Zw=m.NISAN,zw=m.IYYAR,Vw=m.SIVAN,Kw=m.TAMUZ,Jw=m.AV,Gw=m.ELUL,Ww=m.TISHREI,qw=m.CHESHVAN,Xw=m.KISLEV,Qw=m.SHVAT,ev=m.ADAR_II,tv=Me.CHAG,nv=Me.LIGHT_CANDLES,rv=Me.YOM_TOV_ENDS,ov=Me.CHUL_ONLY,av=Me.IL_ONLY,iv=Me.LIGHT_CANDLES_TZEIS,sv=Me.CHANUKAH_CANDLES,cv=Me.MAJOR_FAST,uv=Me.MINOR_HOLIDAY,hv=Me.EREV,lv=Me.CHOL_HAMOED,fv="🫓",dv="🌿🍋",gv=[{mm:Ww,dd:2,desc:"Rosh Hashana II",flags:tv|rv,emoji:"🍏🍯"},{mm:Ww,dd:9,desc:"Erev Yom Kippur",flags:hv|nv},{mm:Ww,dd:10,desc:"Yom Kippur",flags:tv|cv|rv},{mm:Ww,dd:14,desc:"Erev Sukkot",flags:ov|hv|nv,emoji:dv},{mm:Ww,dd:15,desc:"Sukkot I",flags:ov|tv|iv,emoji:dv},{mm:Ww,dd:16,desc:"Sukkot II",flags:ov|tv|rv,emoji:dv},{mm:Ww,dd:17,desc:"Sukkot III (CH''M)",flags:ov|lv,chmDay:1,emoji:dv},{mm:Ww,dd:18,desc:"Sukkot IV (CH''M)",flags:ov|lv,chmDay:2,emoji:dv},{mm:Ww,dd:19,desc:"Sukkot V (CH''M)",flags:ov|lv,chmDay:3,emoji:dv},{mm:Ww,dd:20,desc:"Sukkot VI (CH''M)",flags:ov|lv,chmDay:4,emoji:dv},{mm:Ww,dd:22,desc:"Shmini Atzeret",flags:ov|tv|iv},{mm:Ww,dd:23,desc:"Simchat Torah",flags:ov|tv|rv},{mm:Ww,dd:14,desc:"Erev Sukkot",flags:av|hv|nv,emoji:dv},{mm:Ww,dd:15,desc:"Sukkot I",flags:av|tv|rv,emoji:dv},{mm:Ww,dd:16,desc:"Sukkot II (CH''M)",flags:av|lv,chmDay:1,emoji:dv},{mm:Ww,dd:17,desc:"Sukkot III (CH''M)",flags:av|lv,chmDay:2,emoji:dv},{mm:Ww,dd:18,desc:"Sukkot IV (CH''M)",flags:av|lv,chmDay:3,emoji:dv},{mm:Ww,dd:19,desc:"Sukkot V (CH''M)",flags:av|lv,chmDay:4,emoji:dv},{mm:Ww,dd:20,desc:"Sukkot VI (CH''M)",flags:av|lv,chmDay:5,emoji:dv},{mm:Ww,dd:22,desc:"Shmini Atzeret",flags:av|tv|rv},{mm:Ww,dd:21,desc:"Sukkot VII (Hoshana Raba)",flags:nv|lv,chmDay:-1,emoji:dv},{mm:Xw,dd:24,desc:"Chanukah: 1 Candle",flags:hv|uv|sv,emoji:"🕎1️⃣"},{mm:Qw,dd:15,desc:"Tu BiShvat",flags:uv,emoji:"🌳"},{mm:ev,dd:13,desc:"Erev Purim",flags:hv|uv,emoji:"🎭️📜"},{mm:ev,dd:14,desc:"Purim",flags:uv,emoji:"🎭️📜"},{mm:ev,dd:15,desc:"Shushan Purim",flags:uv,emoji:"🎭️📜"},{mm:Zw,dd:14,desc:"Erev Pesach",flags:av|hv|nv,emoji:"🫓🍷"},{mm:Zw,dd:15,desc:"Pesach I",flags:av|tv|rv,emoji:fv},{mm:Zw,dd:16,desc:"Pesach II (CH''M)",flags:av|lv,chmDay:1,emoji:fv},{mm:Zw,dd:17,desc:"Pesach III (CH''M)",flags:av|lv,chmDay:2,emoji:fv},{mm:Zw,dd:18,desc:"Pesach IV (CH''M)",flags:av|lv,chmDay:3,emoji:fv},{mm:Zw,dd:19,desc:"Pesach V (CH''M)",flags:av|lv,chmDay:4,emoji:fv},{mm:Zw,dd:20,desc:"Pesach VI (CH''M)",flags:av|lv|nv,chmDay:5,emoji:fv},{mm:Zw,dd:21,desc:"Pesach VII",flags:av|tv|rv,emoji:fv},{mm:Zw,dd:14,desc:"Erev Pesach",flags:ov|hv|nv,emoji:"🫓🍷"},{mm:Zw,dd:15,desc:"Pesach I",flags:ov|tv|iv,emoji:"🫓🍷"},{mm:Zw,dd:16,desc:"Pesach II",flags:ov|tv|rv,emoji:fv},{mm:Zw,dd:17,desc:"Pesach III (CH''M)",flags:ov|lv,chmDay:1,emoji:fv},{mm:Zw,dd:18,desc:"Pesach IV (CH''M)",flags:ov|lv,chmDay:2,emoji:fv},{mm:Zw,dd:19,desc:"Pesach V (CH''M)",flags:ov|lv,chmDay:3,emoji:fv},{mm:Zw,dd:20,desc:"Pesach VI (CH''M)",flags:ov|lv|nv,chmDay:4,emoji:fv},{mm:Zw,dd:21,desc:"Pesach VII",flags:ov|tv|iv,emoji:fv},{mm:Zw,dd:22,desc:"Pesach VIII",flags:ov|tv|rv,emoji:fv},{mm:zw,dd:14,desc:"Pesach Sheni",flags:uv},{mm:zw,dd:18,desc:"Lag BaOmer",flags:uv,emoji:"🔥"},{mm:Vw,dd:5,desc:"Erev Shavuot",flags:hv|nv,emoji:"⛰️🌸"},{mm:Vw,dd:6,desc:"Shavuot",flags:av|tv|rv,emoji:"⛰️🌸"},{mm:Vw,dd:6,desc:"Shavuot I",flags:ov|tv|iv,emoji:"⛰️🌸"},{mm:Vw,dd:7,desc:"Shavuot II",flags:ov|tv|rv,emoji:"⛰️🌸"},{mm:Jw,dd:15,desc:"Tu B'Av",flags:uv,emoji:"❤️"},{mm:Gw,dd:1,desc:"Rosh Hashana LaBehemot",flags:uv,emoji:"🐑"},{mm:Gw,dd:29,desc:"Erev Rosh Hashana",flags:hv|nv,emoji:"🍏🍯"}],mv=[{firstYear:5727,mm:zw,dd:28,desc:"Yom Yerushalayim",chul:!0},{firstYear:5737,mm:Xw,dd:6,desc:"Ben-Gurion Day",satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:Qw,dd:30,desc:"Family Day"},{firstYear:5758,mm:qw,dd:12,desc:"Yitzhak Rabin Memorial Day",friSatMovetoThu:!0},{firstYear:5764,mm:zw,dd:10,desc:"Herzl Day",satPostponeToSun:!0},{firstYear:5765,mm:Kw,dd:29,desc:"Jabotinsky Day",satPostponeToSun:!0},{firstYear:5769,mm:qw,dd:29,desc:"Sigd",chul:!0,suppressEmoji:!0},{firstYear:5777,mm:Zw,dd:10,desc:"Yom HaAliyah",chul:!0},{firstYear:5777,mm:qw,dd:7,desc:"Yom HaAliyah School Observance"},{firstYear:5773,mm:m.TEVET,dd:21,desc:"Hebrew Language Day",friSatMovetoThu:!0}],yv=Me.CHAG,pv=Me.IL_ONLY,wv=Me.LIGHT_CANDLES_TZEIS,vv=Me.CHANUKAH_CANDLES,Sv=Me.MINOR_FAST,bv=Me.SPECIAL_SHABBAT,Mv=Me.MODERN_HOLIDAY,Iv=Me.MAJOR_FAST,Tv=Me.MINOR_HOLIDAY,Ev=Me.EREV;class Av extends Te{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()&pv?e+"?i=on":e}urlDateSuffix(){return this.getDate().greg().getFullYear()}getEmoji(){return this.emoji?this.emoji:this.getFlags()&bv?"🕍":"✡️"}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"]}}render(e){return super.render(e).replace(/'/g,"’")}renderBrief(e){return super.renderBrief(e).replace(/'/g,"’")}}const Dv="Rosh Chodesh";class Cv extends Av{constructor(e,t){super(e,`${Dv} ${t}`,Me.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=he.gettext(t,e).replace(/'/g,"’");return he.gettext(Dv,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}class Ov extends Av{urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}const Nv="Shabbat Mevarchim Chodesh";class kv extends Te{constructor(e,t,n){if(super(e,`${Nv} ${t}`,Me.SHABBAT_MEVARCHIM),this.monthName=t,n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n==we.monthsInYear(t)?Pv:n+1,o=new nw(t,r);this.memo=o.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=he.gettext(this.monthName,e).replace(/'/g,"’");return he.gettext(Nv,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}class Hv extends Av{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return he.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const Lv="Yom Kippur Katan";class Rv extends Av{constructor(e,t){super(e,`${Lv} ${t}`,Me.MINOR_FAST|Me.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){const t=he.gettext(this.nextMonthName,e).replace(/'/g,"’");return he.gettext(Lv,e)+" "+t}renderBrief(e){return he.gettext(Lv,e)}url(){}}const Pv=m.NISAN,Yv=m.TAMUZ,jv=m.AV,Fv=m.TISHREI,_v=m.KISLEV,Bv=m.TEVET,xv=m.ADAR_I,$v=m.ADAR_II,Uv={emoji:"🇮🇱"},Zv=new aw({maxSize:400}),zv=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function Vv(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=Zv.get(e);if(t)return t;const n=new we(1,Fv,e),r=new we(15,Pv,e),o=new Map;function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const e of t){const t=e.date.toString(),n=o.get(t);"object"==typeof n?n[0].getFlags()&Ev?n.unshift(e):n.push(e):o.set(t,[e])}}for(const t of gv){const n=new we(t.dd,t.mm,e),r=new Av(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),a(r)}a(new Hv(n,e,yv|wv)),a(new Av(new we(3+(4==n.getDay()),Fv,e),"Tzom Gedaliah",Sv)),a(new Av(new we(we.dayOnOrBefore(6,7+n.abs())),"Shabbat Shuva",bv));const i=we.shortKislev(e)?new we(1,Bv,e):new we(30,_v,e);a(new Av(i,"Chag HaBanot",Tv));for(let t=2;t<=8;t++){const n=new we(23+t,_v,e);a(new Av(n,`Chanukah: ${t} Candles`,Tv|vv,{chanukahDay:t-1,emoji:"🕎"+zv[t]}))}a(new Av(new we(32,_v,e),"Chanukah: 8th Day",Tv,{chanukahDay:8,emoji:"🕎"})),a(new Ov(new we(10,Bv,e),"Asara B'Tevet",Sv));const s=r.abs();a(new Av(new we(we.dayOnOrBefore(6,s-43)),"Shabbat Shekalim",bv),new Av(new we(we.dayOnOrBefore(6,s-30)),"Shabbat Zachor",bv),new Av(new we(s-(2==r.getDay()?33:31)),"Ta'anit Esther",Sv)),a(new Av(new we(we.dayOnOrBefore(6,s-14)-7),"Shabbat Parah",bv),new Av(new we(we.dayOnOrBefore(6,s-14)),"Shabbat HaChodesh",bv),new Av(new we(we.dayOnOrBefore(6,s-1)),"Shabbat HaGadol",bv),new Av(6==r.prev().getDay()?r.onOrBefore(4):new we(14,Pv,e),"Ta'anit Bechorot",Sv)),a(new Av(new we(we.dayOnOrBefore(6,new we(1,Fv,e+1).abs()-4)),"Leil Selichot",Tv,{emoji:"🕍"})),0==r.getDay()&&a(new Av(new we(16,$v,e),"Purim Meshulash",Tv)),we.isLeapYear(e)&&(a(new Av(new we(14,xv,e),"Purim Katan",Tv,{emoji:"🎭️"})),a(new Av(new we(15,xv,e),"Shushan Purim Katan",Tv,{emoji:"🎭️"})));const c=function(e){if(e<5711)return null;let t=new we(27,xw,e);return t.getDay()===_w?t=new we(26,xw,e):t.getDay()===jw&&(t=new we(28,xw,e)),t}(e);c&&a(new Av(c,"Yom HaShoah",Mv));const u=Uw(e);u&&a(new Av(u,"Yom HaZikaron",Mv,Uv),new Av(u.next(),"Yom HaAtzma'ut",Mv,Uv));for(const t of mv)if(e>=t.firstYear){let n=new we(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new we(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?Mv:Mv|pv,i=new Av(n,t.desc,o);t.suppressEmoji||(i.emoji="🇮🇱"),a(i)}let h,l=new we(17,Yv,e);6==l.getDay()&&(l=new we(18,Yv,e),h={observed:!0}),a(new Av(l,"Tzom Tammuz",Sv,h));let f,d=new we(9,jv,e),g="Tish'a B'Av";6==d.getDay()&&(d=d.next(),f={observed:!0},g+=" (observed)");const y=d.abs();a(new Av(new we(we.dayOnOrBefore(6,y)),"Shabbat Chazon",bv),new Av(d.prev(),"Erev Tish'a B'Av",Ev|Iv,f),new Av(d,g,Iv,f),new Av(new we(we.dayOnOrBefore(6,y+7)),"Shabbat Nachamu",bv));const p=we.monthsInYear(e);for(let t=1;t<=p;t++){const n=we.getMonthName(t,e);30==(t==Pv?we.daysInMonth(we.monthsInYear(e-1),e-1):we.daysInMonth(t-1,e))?(a(new Cv(new we(1,t,e),n)),a(new Cv(new we(30,t-1,e),n))):t!==Fv&&a(new Cv(new we(1,t,e),n))}for(let t=m.IYYAR;t<=p;t++){const n=t+1;if(n===Fv||n===m.CHESHVAN||n===Bv)continue;let r=new we(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const i=we.getMonthName(n,e);a(new Rv(r,i))}const w=Ew(e,!1).find(15);a(new Av(w,"Shabbat Shirah",bv));const v=function(e){const t=we.isLeapYear(e),n=t?$v:Pv,r=t?20:1,o=we.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(v){const e=new we(v);a(new Av(e,"Birkat Hachamah",Tv,{emoji:"☀️"}))}return Zv.set(e,o),o}const Kv=new Map;class Jv{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);Kv.set(e,t)}static lookup(e,t){const n=Kv.get(e);return"function"==typeof n?n(t):null}}const Gv="5.3.4";var Wv={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"]}}};he.addLocale("ashkenazi",Wv),he.addLocale("a",Wv);var qv={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":["יוֹם בן־גוריון"],"Hebrew Language 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:["חֲלָקִים"]}}};he.addLocale("he",qv),he.addLocale("h",qv);const Xv=qv.contexts[""],Qv={};for(const[e,t]of Object.entries(Xv))Qv[e]=[he.hebrewStripNikkud(t[0])];const eS={headers:qv.headers,contexts:{"":Qv}};function tS(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}he.addLocale("he-x-NoNikud",eS);const nS={shacharit:!1,mincha:!1,allCongs:!1};function rS(e,t){return oS(e,t,!0)}function oS(e,t,n){const r=function(e,t){const n=we.isLeapYear(e),r=12+n;let o=new we(9,m.AV,e);6===o.getDay()&&(o=o.next());let a=new we(15,m.ADAR_II,e);6===a.getDay()&&(a=a.next());const i=[].concat(tS(1,r).map((t=>new we(1,t,e))),tS(1,r).filter((t=>30===we.daysInMonth(t,e))).map((t=>new we(30,t,e))),new we(2,m.TISHREI,e),tS(1,we.daysInMonth(m.NISAN,e)).map((t=>new we(t,m.NISAN,e))),new we(18,m.IYYAR,e),tS(1,8-(t?1:0)).map((t=>new we(t,m.SIVAN,e))),o,new we(15,m.AV,e),new we(29,m.ELUL,e),tS(9,24-(t?1:0)).map((t=>new we(t,m.TISHREI,e))),tS(25,33).map((t=>new we(t,m.KISLEV,e))),new we(15,m.SHVAT,e),new we(14,m.ADAR_II,e),a,n?new we(14,m.ADAR_I,e):[]),s=[].concat(tS(1,13).map((t=>new we(t,m.SIVAN,e))),tS(20,31).map((t=>new we(t,m.TISHREI,e))),new we(14,m.IYYAR,e),e>=5708?Uw(e).next():[],e>=5727?new we(28,m.IYYAR,e):[]),c=[].concat(new we(29,m.ELUL,e-1),new we(9,m.TISHREI,e),new we(14,m.IYYAR,e));return{none:i.map((e=>e.abs())).sort(((e,t)=>e-t)),some:s.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:c.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.getFullYear(),t),o=e.abs();if(r.none.indexOf(o)>-1)return nS;const a=e.getDay(),i={shacharit:!1,mincha:!1,allCongs:!1};-1===r.some.indexOf(o)&&(i.allCongs=!0),6!==a&&(i.shacharit=!0);const s=o+1;if(n&&-1===r.yesPrev.indexOf(s)){const e=oS(new we(s),t,!1);i.mincha=e.shacharit}else i.mincha=5!==a;return!i.allCongs||i.mincha||i.shacharit?i:nS}const aS=m.NISAN,iS=m.SIVAN,sS=m.ELUL,cS=m.TISHREI,uS=Me.LIGHT_CANDLES,hS=Me.YOM_TOV_ENDS,lS=Me.CHUL_ONLY,fS=Me.IL_ONLY,dS=Me.LIGHT_CANDLES_TZEIS,gS=Me.CHANUKAH_CANDLES,mS=Me.MINOR_FAST,yS=Me.SPECIAL_SHABBAT,pS=Me.MODERN_HOLIDAY,wS=Me.MAJOR_FAST,vS=Me.ROSH_CHODESH,SS=Me.PARSHA_HASHAVUA,bS=Me.DAF_YOMI,MS=Me.MISHNA_YOMI,IS=Me.NACH_YOMI,TS=Me.YERUSHALMI_YOMI,ES=Me.OMER_COUNT,AS=Me.SHABBAT_MEVARCHIM,DS=Me.MINOR_HOLIDAY,CS=Me.EREV,OS=Me.CHOL_HAMOED,NS=Me.YOM_KIPPUR_KATAN,kS=new Set,HS={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,fastEndDeg:1,sedrot:1,il:1,noMinorFast:1,noModern:1,shabbatMevarchim:1,noRoshChodesh:1,noSpecialShabbat:1,noHolidays:1,omer:1,molad:1,ashkenazi:1,locale:1,addHebrewDates:1,addHebrewDatesForEvents:1,appendHebrewToSubject:1,mask:1,userMask:1,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1};const LS={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},RS={281184:40,294801:30,293067:30};function PS(t){if("number"==typeof t)return t;if(e.greg.isDate(t))return e.greg.greg2abs(t);if(we.isHDate(t))return t.abs();throw new TypeError(`Invalid date type: ${t}`)}function YS(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask;t&vS&&delete e.noRoshChodesh;t&pS&&delete e.noModern;t&mS&&delete e.noMinorFast;t&yS&&delete e.noSpecialShabbat;t&SS&&(e.sedrot=!0);t&(bS|MS|IS|TS)&&(e.dailyLearning=e.dailyLearning||{},t&bS&&(e.dailyLearning.dafYomi=!0),t&MS&&(e.dailyLearning.mishnaYomi=!0),t&IS&&(e.dailyLearning.nachYomi=!0),t&TS&&(e.dailyLearning.yerushalmi=1));t&ES&&(e.omer=!0);t&AS&&(e.shabbatMevarchim=!0);t&NS&&(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|=vS|hS|mS|yS|pS|wS|DS|CS|OS|uS|dS|gS),e.candlelighting&&(r|=uS|dS|hS),e.noRoshChodesh&&(r&=~vS),e.noModern&&(r&=~pS),e.noMinorFast&&(r&=~mS),e.noSpecialShabbat&&(r&=~yS,r&=~AS),r|=n?fS:lS,e.sedrot&&(r|=SS),e.omer&&(r|=ES),e.shabbatMevarchim&&(r|=AS),e.yomKippurKatan&&(r|=NS),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=bS),t.mishnaYomi&&(r|=MS),t.nachYomi&&(r|=IS),t.yerushalmi&&(r|=TS)}return r}const jS=uS|dS|gS|hS,FS=new Fp(0,0,!1,"UTC");function _S(e){return e.observedInIsrael()}function BS(e){return e.observedInDiaspora()}class xS{static calendar(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=Object.assign({},t),function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof Fp))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=RS[e];"number"==typeof r&&(n=r);const o=LS[t.getShortName()];"number"==typeof o&&(n=o)}e.candleLightingMins=-1*Math.abs(n),"number"==typeof e.havdalahMins?e.havdalahMins=Math.abs(e.havdalahMins):"number"==typeof e.havdalahDeg?e.havdalahDeg=Math.abs(e.havdalahDeg):e.havdalahDeg=8.5,"number"!=typeof e.fastEndDeg&&(e.fastEndDeg=7.0833333)}(t);const n=t.location=t.location||FS,r=t.il=t.il||n.il||!1;if(t.mask=YS(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(!he.useLocale(e))throw new TypeError(`Locale '${e}' not found; did you forget to import @hebcal/locales?`)}else he.useLocale("en");const o=[];let a,i,s,c,u=-1;const h=function(t){if(t.start&&!t.end||t.end&&!t.start)throw new TypeError("Both options.start and options.end are required");if(t.start&&t.end)return[PS(t.start),PS(t.end)];const n=Boolean(t.isHebrewYear),r=void 0!==t.year?parseInt(t.year,10):n?(new we).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?we.monthNum(t.month):t.month);const a=parseInt(t.numYears,10)||1;if(n){const e=new we(1,o||cS,r);let n=e.abs();const i=t.month?n+e.daysInMonth():new we(1,cS,r+a).abs()-1;return!o&&r>1&&n--,[n,i]}{const n=t.month?o-1:0,i=new Date(r,n,1);r<100&&i.setFullYear(r);const s=e.greg.greg2abs(i);let c;if(t.month)c=s+e.greg.daysInMonth(o,r)-1;else{const t=r+a,n=new Date(t,0,1);t<100&&n.setFullYear(t),c=e.greg.greg2abs(n)-1}return[s,c]}}(t);!function(e){for(const t of Object.keys(e))void 0!==HS[t]||kS.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),kS.add(t))}(t);const l=h[0],f=h[1];e.greg.abs2greg(l).getFullYear()<100&&(t.candlelighting=!1);for(let e=l;e<=f;e++){const h=new we(e),l=h.getFullYear();l!=u&&(u=l,i=Vv(u),t.sedrot&&(a=Ew(u,r)),t.omer&&(s=we.hebrew2abs(u,aS,16),c=we.hebrew2abs(u,iS,5)));const f=o.length,d=h.getDay(),g=5===d,m=6===d;let y;const p=i.get(h.toString())||[];for(const e of p)y=$S(y,o,e,t,g,m);if(t.sedrot&&m){const t=a.lookup(e);t.chag||o.push(new Aw(h,t.parsha,r,t.num))}const w=t.dailyLearning;if("object"==typeof w)for(const[e,t]of Object.entries(w))if(t){const n="yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e,r=Jv.lookup(n,h);r&&o.push(r)}if(t.omer&&e>=s&&e<=c){const r=new ow(h,e-s+1);if(t.candlelighting){const e=new zp(n,h.prev()).tzeit(7.0833);isNaN(e.getTime())||(r.alarm=e)}o.push(r)}const v=h.getMonth(),S=h.getDate();if(m&&(t.molad||t.shabbatMevarchim)&&v!=sS&&S>=23&&S<=29){const e=v==we.monthsInYear(l)?aS:v+1;if(t.molad&&o.push(new rw(h,l,e,t)),t.shabbatMevarchim){const n=we.getMonthName(e,l),r=new nw(l,e).render(t.locale||"en",t);o.push(new kv(h,n,r))}}if(!y&&t.candlelighting&&(g||m)&&(y=Jp(void 0,h,t,g,m),g&&y&&a&&(y.memo=a.getString(e,t.locale))),y instanceof Wp&&(0===t.havdalahMins||0===t.havdalahDeg)&&(y=null),y&&o.push(y),t.addHebrewDates||t.addHebrewDatesForEvents&&f!=o.length){const e=new Ee(h);f==o.length?o.push(e):o.splice(f,0,e)}}return o}static getBirthdayOrAnniversary(e,t){const n=function(e,t){const n=B(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=E(r);let a=n.mm,i=n.dd;return a===F&&!o||a===_&&o?a=A(e):a!==R||30!==i||k(e)?a===P&&30===i&&H(e)?(a=Y,i=1):a===F&&30===i&&o&&!E(e)&&(a=L,i=1):(a=P,i=1),{yy:e,mm:a,dd:i}}(e,t);return void 0===n?n:new we(n)}static getYahrzeit(e,t){const n=function(e,t){let n=B(t);if(!(e<=n.yy))return n.mm!==R||30!==n.dd||k(n.yy+1)?n.mm===P&&30===n.dd&&H(n.yy+1)?n=T(M(e,Y,1)-1):n.mm===_?n.mm=A(e):n.mm!==F||30!==n.dd||E(e)||(n.dd=30,n.mm=j):n=T(M(e,P,1)-1),n.mm!==R||30!==n.dd||k(e)?n.mm===P&&30===n.dd&&H(e)&&(n.mm=Y,n.dd=1):(n.mm=P,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new we(n)}static getHolidaysForYear(e){return Vv(e)}static getHolidaysForYearArray(e,t){const n=Vv(e),r=we.hebrew2abs(e,cS,1),o=we.hebrew2abs(e+1,cS,1)-1;let a=[];const i=t?_S:BS;for(let e=r;e<=o;e++){const t=new we(e),r=n.get(t.toString());if(r){const e=r.filter(i);a=a.concat(e)}}return a}static getHolidaysOnDate(e,t){const n=we.isHDate(e)?e:new we(e),r=n.toString(),o=Vv(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const a=t?_S:BS;return o.filter(a)}static reformatTimeStr(e,t,n){return Kp(e,t,n)}static version(){return Gv}static getSedra(e,t){return Ew(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===m.NISAN&&(15===o||16===o)&&e.getFlags()&Me.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()&Me.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(xS.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return rS(e,t)}}function $S(e,t,n,r,o,a){const i=r.il;if(!n.observedIn(i))return e;const s=n.getFlags();if(!r.yomKippurKatan&&s&NS||r.noModern&&s&pS)return e;const c=r.location,u=Boolean(s&wS),h=Boolean(s&mS);if(r.candlelighting&&(u||h)&&(n=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)return e;const r=(e=e.clone()).getDate(),o=r.greg(),a=t.location,i=t.fastEndDeg,s=new zp(a,o,t.useElevation);if("Erev Tish'a B'Av"===n){const n=s.sunset();e.startEvent=Xp(r,n,"Fast begins",e,t)}else if(n.startsWith("Tish'a B'Av"))e.endEvent=Xp(r,s.tzeit(i),"Fast ends",e,t);else{const n=s.alotHaShachar();e.startEvent=Xp(r,n,"Fast begins",e,t),5===o.getDay()||14===r.getDate()&&r.getMonth()===m.NISAN||(e.endEvent=Xp(r,s.tzeit(i),"Fast ends",e,t))}return e}(n,r),n.startEvent&&(u||h&&!r.noMinorFast)&&t.push(n.startEvent)),s&r.mask||!s&&!r.userMask){if(r.candlelighting&&s&jS){const t=n.getDate();if(e=Jp(n,t,r,o,a),s&gS&&e&&!r.noHolidays){const i=o||a?e:function(e,t,n){const r=n.location,o=new zp(r,t.greg(),n.useElevation);return Xp(t,o.beinHaShmashos(),e.getDesc(),e,n)}(n,t,r),u={eventTime:i.eventTime,eventTimeStr:i.eventTimeStr,location:c};n.chanukahDay&&(u.chanukahDay=n.chanukahDay),n.emoji&&(u.emoji=n.emoji),n=new Av(t,n.getDesc(),s,u),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&s&NS)&&t.push(n)}return n.endEvent&&(u||h&&!r.noMinorFast)&&t.push(n.endEvent),e}return e.AsaraBTevetEvent=Ov,e.CandleLightingEvent=qp,e.DailyLearning=Jv,e.Event=Te,e.GeoLocation=kp,e.HDate=we,e.HavdalahEvent=Wp,e.HebrewCalendar=xS,e.HebrewDateEvent=Ee,e.HolidayEvent=Av,e.Locale=he,e.Location=Fp,e.MevarchimChodeshEvent=kv,e.Molad=nw,e.MoladEvent=rw,e.NOAACalculator=Lp,e.OmerEvent=ow,e.ParshaEvent=Aw,e.RoshChodeshEvent=Cv,e.RoshHashanaEvent=Hv,e.Sedra=iw,e.TimedEvent=Gp,e.Zmanim=zp,e.flags=Me,e.gematriya=z,e.gematriyaStrToNum=V,e.months=m,e.parshiot=sw,e.version=Gv,e}({});
1
+ /*! @hebcal/core v5.3.5 */
2
+ var hebcal=function(e){"use strict";const t=[0,31,28,31,30,31,30,31,31,30,31,30,31],n=[t,t.slice()];function r(e,t){return e-t*Math.floor(e/t)}function o(e,t){return Math.floor(e/t)}n[1][2]=29,e.greg=void 0,function(e){function t(e){return!(e%4||!(e%100)&&e%400)}function a(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function i(e,n,r){const a=e-1;return 365*a+o(a,4)-o(a,100)+o(a,400)+o(367*n-362,12)+(n<=2?0:t(e)?-1:-2)+r}e.isLeapYear=t,e.daysInMonth=function(e,r){return n[+t(r)][e]},e.isDate=a,e.greg2abs=function(e){if(!a(e))throw new TypeError(`Argument not a Date: ${e}`);return i(e.getFullYear(),e.getMonth()+1,e.getDate())},e.abs2greg=function(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const n=function(e){const t=e-1,n=o(t,146097),a=r(t,146097),i=o(a,36524),s=r(a,36524),c=o(s,1461),u=o(r(s,1461),365),h=400*n+100*i+4*c+u;return 4!==i&&4!==u?h+1:h}(e=Math.trunc(e)),a=o(12*(e-i(n,1,1)+(e<i(n,3,1)?0:t(n)?1:2))+373,367),s=e-i(n,a,1)+1,c=new Date(n,a-1,s);return n<100&&n>=0&&c.setFullYear(n),c}}(e.greg||(e.greg={}));const a=1,i=2,s=4,c=6,u=7,h=8,l=9,f=10,d=12,g=13,m={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},y=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],p=[y.concat(["Adar","Nisan"]),y.concat(["Adar I","Adar II","Nisan"])],w=new Map,v=-1373428,S=365.24682220597794;function b(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function M(e,t,n){if(b(e,"year"),b(t,"month"),b(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<u){for(let t=u;t<=A(e);t++)r+=D(t,e);for(let n=a;n<t;n++)r+=D(n,e)}else for(let n=u;n<t;n++)r+=D(n,e);return v+O(e)+r-1}function I(e){return v+O(e)}function T(e){if(b(e,"abs"),(e=Math.trunc(e))<=v)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-v)/S);for(;I(t)<=e;)++t;--t;let n=e<M(t,1,1)?7:1;for(;e>M(t,n,D(n,t));)++n;return{yy:t,mm:n,dd:1+e-M(t,n,1)}}function E(e){return(1+7*e)%19<7}function A(e){return+E(e)+12}function D(e,t){switch(e){case i:case s:case c:case f:case g:return 29}return e===d&&!E(t)||e===h&&!k(t)||e===l&&H(t)?29:30}function C(e,t){if(b(e,"month"),b(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return p[+E(t)][e]}function O(e){const t=w.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),a=r%1080+o%24*1080,i=1+29*n+Math.floor(o/24);let s=i;(a>=19440||2==i%7&&a>=9924&&!E(e)||1==i%7&&a>=16789&&E(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return w.set(e,n),n}function N(e){return O(e+1)-O(e)}function k(e){return N(e)%10==5}function H(e){return N(e)%10==3}const L=m.NISAN,R=m.CHESHVAN,P=m.KISLEV,Y=m.TEVET,j=m.SHVAT,F=m.ADAR_I,_=m.ADAR_II;function B(t){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(t))return t;if("number"==typeof t)return T(t);if(e.greg.isDate(t)){return T(e.greg.greg2abs(t))}throw new TypeError(`Argument not a Date: ${t}`)}const x={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},$=new Map,U=new Map;for(const[e,t]of Object.entries(x))$.set(e,t),U.set(t,e);function Z(e){const t=[];for(;e>0;){if(15===e||16===e){t.push(9),t.push(e-9);break}let n,r=100;for(n=400;n>e;n-=r)n===r&&(r/=10);t.push(n),e-=n}return t}function z(e){const t=parseInt(e,10);if(!t)throw new TypeError(`invalid parameter to gematriya ${e}`);let n="";const r=Math.floor(t/1e3);if(r>0&&5!==r){const e=Z(r);for(const t of e)n+=U.get(t);n+="׳"}const o=Z(t%1e3);if(1===o.length)return n+U.get(o[0])+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=U.get(o[e]);return n}function V(e){let t=0;const n=e.indexOf("׳");if(-1!==n&&n!==e.length-1){t+=1e3*V(e.substring(0,n)),e=e.substring(n)}for(const n of e){const e=$.get(n);"number"==typeof e&&(t+=e)}return t}const K={en:{infix:"within ",infix26:"within ",words:["","Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"]},he:{infix:"שֶׁבְּ",infix26:"שֶׁבִּ",words:["","חֶֽסֶד","גְבוּרָה","תִּפאֶרֶת","נֶּֽצַח","הוֹד","יְּסוֹד","מַּלְכוּת"]},translit:{infix:"sheb'",infix26:"shebi",words:["","Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"]}};function J(e){if(e<1||e>49)throw new RangeError(`Invalid Omer day ${e}`)}function G(e){return[Math.floor((e-1)/7)+1,e%7||7]}function W(e,t){return J(e),"en"===t?function(e){const[t,n]=G(e),r=1===e?"day":"days";let o=`Today is ${e} ${r}`;if(t>1||7===e){const e=7===n,r=e?t:t-1;if(o+=`, which is ${r} ${1===r?"week":"weeks"}`,!e){o+=` and ${n} ${1===n?"day":"days"}`}}return o+" of the Omer"}(e):"he"===t?function(e){const t=Math.floor(e/10),n=e%10;let r="הַיּוֹם ";10<e&&e<20?r+=X[n]+" עָשָׂר":e>9&&(r+=X[n],n&&(r+=" ",r+=3===t?"וּ":"וְ"));e>2?((e>20||10===e||20===e)&&(r+=q[t]),r+=e<11?X[n]+" "+ee+" ":" "+re+" "):r+=1===e?oe+" ":te+" ";if(e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?X[t]+" "+ne+" ":1===t?"שָׁבֽוּעַ "+X[1]+" ":Q+" "+ne+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?X[n]+" "+ee+" ":1===n?oe+" ":te+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(e):void 0}const q=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],X=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],Q="שְׁנֵי",ee="יָמִים",te=Q+" "+ee,ne="שָׁבוּעוֹת",re="יוֹם",oe=re+" "+X[1];const ae={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},ie={h:"he",a:"ashkenazi",s:"en","":"en"},se=new Map;let ce=null,ue=null;class he{static lookupTranslation(e,t){const n=null==t?void 0:t.toLowerCase(),r=("string"==typeof t&&se.get(n)||ce)[e];if(null!=r&&r.length&&r[0].length)return r[0]}static gettext(e,t){const n=this.lookupTranslation(e,t);return void 0===n?e:n}static addLocale(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);se.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=se.get(r);if(!o)throw new TypeError(`Unknown locale: ${e}`);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id: ${t}`);const a=Array.isArray(n);if(a){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]=a?n:[n]}static addTranslations(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const n=e.toLowerCase(),r=se.get(n);if(!r)throw new TypeError(`Unknown locale: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const o=t.contexts[""];Object.assign(r,o)}static useLocale(e){const t=e.toLowerCase(),n=se.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return ue=ie[t]||t,ce=n,ce}static getLocaleName(){return ue}static getLocaleNames(){return Array.from(se.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||ue;if(!n)return this.getEnOrdinal(e);switch(n){case"en":case"s":case"a":case"ashkenazi":case"ashkenazi_litvish":case"ashkenazi_poylish":case"ashkenazi_standard":return this.getEnOrdinal(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e);default:return e+"."}}static getEnOrdinal(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}function le(e){throw new TypeError(e)}he.addLocale("en",ae),he.addLocale("s",ae),he.addLocale("",ae),he.useLocale("en");const fe="day",de="week",ge="month",me="year",ye={d:fe,w:de,M:ge,y:me},pe={day:fe,week:de,month:ge,year:me};class we{constructor(t,n,r){if(2==arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3==arguments.length){if(this.dd=this.mm=1,r=parseInt(r,10),isNaN(r))throw new TypeError(`HDate called with bad year argument: ${r}`);if(this.yy=r,this.setMonth(n),t=parseInt(t,10),isNaN(t))throw new TypeError(`HDate called with bad day argument: ${t}`);this.setDate(t)}else{null==t&&(t=new Date);const n="number"!=typeof t||isNaN(t)?e.greg.isDate(t)?e.greg.greg2abs(t):"number"==typeof t.yy&&"number"==typeof t.mm&&"number"==typeof t.dd?t:le(`HDate called with bad argument: ${t}`):t,r="number"==typeof n,o=r?T(n):n;this.dd=o.dd,this.mm=o.mm,this.yy=o.yy,r&&(this.rd=n)}}getFullYear(){return this.yy}isLeapYear(){return E(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=A(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return D(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){return function(e,t){return e-t*Math.floor(e/t)}(this.abs(),7)}setMonth(e){return this.mm=we.monthNum(e),ve(this),this}setDate(e){return this.dd=e,ve(this),this}greg(){return e.greg.abs2greg(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=M(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return M(e,t,n)}getMonthName(){return C(this.getMonth(),this.getFullYear())}render(){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||he.getLocaleName(),n=this.getDate(),r=he.gettext(this.getMonthName(),t).replace(/'/g,"’"),o=`${he.ordinal(n,t)}${we.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=he.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=he.gettext(this.getMonthName(),n),o=this.getFullYear();return z(t)+" "+r+" "+z(o)}before(e){return be(e,this,-1)}onOrBefore(e){return be(e,this,0)}nearest(e){return be(e,this,3)}onOrAfter(e){return be(e,this,6)}after(e){return be(e,this,7)}next(){return new we(this.abs()+1)}prev(){return new we(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e=parseInt(e,10)))return new we(this);if(t=we.standardizeUnits(t),t===fe)return new we(this.abs()+e);if(t===de)return new we(this.abs()+7*e);if(t===me)return new we(this.getDate(),this.getMonth(),this.getFullYear()+e);if(t===ge){let t=new we(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new we(t.abs()+n*t.daysInMonth());return t}}static standardizeUnits(e){const t=ye[e]||String(e||"").toLowerCase().replace(/s$/,"");return pe[t]||le(`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(!we.isHDate(e))throw new TypeError(`Bad argument: ${e}`);return this.abs()-e.abs()}isSameDate(e){return!!we.isHDate(e)&&(this.yy==e.yy&&this.mm==e.mm&&this.dd==e.dd)}toString(){const e=this.getDate(),t=this.getFullYear();return`${e} ${this.getMonthName()} ${t}`}static isLeapYear(e){return E(e)}static monthsInYear(e){return A(e)}static daysInMonth(e,t){return D(e,t)}static getMonthName(e,t){return C(e,t)}static monthNum(e){if("number"==typeof e){if(isNaN(e)||e>14)throw new RangeError(`Invalid month number: ${e}`);return e}return e.charCodeAt(0)>=48&&e.charCodeAt(0)<=57?parseInt(e,10):we.monthFromName(e)}static daysInYear(e){return N(e)}static longCheshvan(e){return k(e)}static shortKislev(e){return H(e)}static monthFromName(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}return function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}let t=e.trim().toLowerCase();switch("ב"===t[0]&&(t=t.substring(1)),t[0]){case"n":case"נ":if("o"===t[1])break;return m.NISAN;case"i":return m.IYYAR;case"e":return m.ELUL;case"c":case"ח":return m.CHESHVAN;case"k":case"כ":return m.KISLEV;case"s":switch(t[1]){case"i":return m.SIVAN;case"h":return m.SHVAT}break;case"t":switch(t[1]){case"a":return m.TAMUZ;case"i":return m.TISHREI;case"e":return m.TEVET}break;case"a":switch(t[1]){case"v":return m.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?m.ADAR_I:m.ADAR_II}break;case"ס":return m.SIVAN;case"ט":return m.TEVET;case"ש":return m.SHVAT;case"א":switch(t[1]){case"ב":return m.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?m.ADAR_I:m.ADAR_II;case"י":return m.IYYAR;case"ל":return m.ELUL}break;case"ת":switch(t[1]){case"מ":return m.TAMUZ;case"ש":return m.TISHREI}}throw new RangeError(`Unable to parse month name: ${e}`)}(he.hebrewStripNikkud(e))}static dayOnOrBefore(e,t){return t-(t-e)%7}static isHDate(e){return null!==e&&"object"==typeof e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd&&"function"==typeof e.greg&&"function"==typeof e.abs}static fromGematriyaString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;const n=e.split(" ").filter((e=>0!==e.length)),r=n.length;if(3!==r&&4!==r)throw new RangeError(`Unable to parse gematriya string: "${e}"`);const o=V(n[0]),a=3===r?n[1]:n[1]+" "+n[2],i=we.monthFromName(a);let s=V(3===r?n[2]:n[3]);return s<1e3&&(s+=t),new we(o,i,s)}}function ve(e){Se(e),function(e){e.dd<1&&(e.mm==m.TISHREI&&(e.yy-=1),e.dd+=D(e.mm,e.yy),e.mm-=1,ve(e));e.dd>D(e.mm,e.yy)&&(e.mm===m.ELUL&&(e.yy+=1),e.dd-=D(e.mm,e.yy),e.mm===A(e.yy)?e.mm=1:e.mm+=1,ve(e));Se(e)}(e)}function Se(e){e.mm!==m.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=A(e.yy),e.yy-=1,ve(e)):e.mm>A(e.yy)&&(e.mm-=A(e.yy),e.yy+=1,ve(e)):(e.mm-=1,ve(e)),delete e.rd}function be(e,t,n){return new we(we.dayOnOrBefore(e,t.abs()+n))}const Me={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,DAILY_LEARNING:67108864},Ie=[[Me.MAJOR_FAST,"holiday","major","fast"],[Me.CHANUKAH_CANDLES,"holiday","major"],[Me.HEBREW_DATE,"hebdate"],[Me.MINOR_FAST,"holiday","fast"],[Me.MINOR_HOLIDAY,"holiday","minor"],[Me.MODERN_HOLIDAY,"holiday","modern"],[Me.MOLAD,"molad"],[Me.OMER_COUNT,"omer"],[Me.PARSHA_HASHAVUA,"parashat"],[Me.ROSH_CHODESH,"roshchodesh"],[Me.SHABBAT_MEVARCHIM,"mevarchim"],[Me.SPECIAL_SHABBAT,"holiday","shabbat"],[Me.USER_EVENT,"user"]];class Te{constructor(e,t,n,r){this.date=e,this.desc=t,this.mask=+n,"object"==typeof r&&null!==r&&Object.assign(this,r)}getDate(){return this.date}getDesc(){return this.desc}getFlags(){return this.mask}render(e){return he.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&Me.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&Me.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 Ie)if(e&t[0])return t.slice(1);return["unknown"]}}class Ee extends Te{constructor(e){super(e,e.toString(),Me.HEBREW_DATE)}render(e){const t=(null==e?void 0:e.toLowerCase())||he.getLocaleName(),n=this.getDate();switch(t){case"h":case"he":return n.renderGematriya(!1);case"he-x-nonikud":return n.renderGematriya(!0);default:return n.render(t,!0)}}renderBriefHebrew(e){const t=this.getDate(),n=t.getDate(),r=he.gettext(t.getMonthName(),e);return z(n)+" "+r}renderBrief(e){const t=(null==e?void 0:e.toLowerCase())||he.getLocaleName(),n=this.getDate();if(n.getMonth()===m.TISHREI&&1===n.getDate())return this.render(t);switch(t){case"h":case"he":case"he-x-nonikud":return this.renderBriefHebrew(t);default:return n.render(t,!1)}}}var Ae="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},De=function(e){return e&&e.Math===Math&&e},Ce=De("object"==typeof globalThis&&globalThis)||De("object"==typeof window&&window)||De("object"==typeof self&&self)||De("object"==typeof Ae&&Ae)||De("object"==typeof Ae&&Ae)||function(){return this}()||Function("return this")(),Oe={},Ne=function(e){try{return!!e()}catch(e){return!0}},ke=!Ne((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),He=!Ne((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Le=He,Re=Function.prototype.call,Pe=Le?Re.bind(Re):function(){return Re.apply(Re,arguments)},Ye={},je={}.propertyIsEnumerable,Fe=Object.getOwnPropertyDescriptor,_e=Fe&&!je.call({1:2},1);Ye.f=_e?function(e){var t=Fe(this,e);return!!t&&t.enumerable}:je;var Be,xe,$e=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ue=He,Ze=Function.prototype,ze=Ze.call,Ve=Ue&&Ze.bind.bind(ze,ze),Ke=Ue?Ve:function(e){return function(){return ze.apply(e,arguments)}},Je=Ke,Ge=Je({}.toString),We=Je("".slice),qe=Ne,Xe=function(e){return We(Ge(e),8,-1)},Qe=Object,et=Ke("".split),tt=qe((function(){return!Qe("z").propertyIsEnumerable(0)}))?function(e){return"String"===Xe(e)?et(e,""):Qe(e)}:Qe,nt=function(e){return null==e},rt=nt,ot=TypeError,at=function(e){if(rt(e))throw new ot("Can't call method on "+e);return e},it=tt,st=at,ct=function(e){return it(st(e))},ut="object"==typeof document&&document.all,ht=void 0===ut&&void 0!==ut?function(e){return"function"==typeof e||e===ut}:function(e){return"function"==typeof e},lt=ht,ft=function(e){return"object"==typeof e?null!==e:lt(e)},dt=Ce,gt=ht,mt=function(e,t){return arguments.length<2?(n=dt[e],gt(n)?n:void 0):dt[e]&&dt[e][t];var n},yt=Ke({}.isPrototypeOf),pt=Ce,wt="undefined"!=typeof navigator&&String(navigator.userAgent)||"",vt=pt.process,St=pt.Deno,bt=vt&&vt.versions||St&&St.version,Mt=bt&&bt.v8;Mt&&(xe=(Be=Mt.split("."))[0]>0&&Be[0]<4?1:+(Be[0]+Be[1])),!xe&&wt&&(!(Be=wt.match(/Edge\/(\d+)/))||Be[1]>=74)&&(Be=wt.match(/Chrome\/(\d+)/))&&(xe=+Be[1]);var It=xe,Tt=Ne,Et=Ce.String,At=!!Object.getOwnPropertySymbols&&!Tt((function(){var e=Symbol("symbol detection");return!Et(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&It&&It<41})),Dt=At&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ct=mt,Ot=ht,Nt=yt,kt=Object,Ht=Dt?function(e){return"symbol"==typeof e}:function(e){var t=Ct("Symbol");return Ot(t)&&Nt(t.prototype,kt(e))},Lt=String,Rt=ht,Pt=function(e){try{return Lt(e)}catch(e){return"Object"}},Yt=TypeError,jt=function(e){if(Rt(e))return e;throw new Yt(Pt(e)+" is not a function")},Ft=nt,_t=Pe,Bt=ht,xt=ft,$t=TypeError,Ut={exports:{}},Zt=Ce,zt=Object.defineProperty,Vt=function(e,t){try{zt(Zt,e,{value:t,configurable:!0,writable:!0})}catch(n){Zt[e]=t}return t},Kt=Ce,Jt=Vt,Gt="__core-js_shared__",Wt=Ut.exports=Kt[Gt]||Jt(Gt,{});(Wt.versions||(Wt.versions=[])).push({version:"3.37.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.0/LICENSE",source:"https://github.com/zloirock/core-js"});var qt=Ut.exports,Xt=qt,Qt=function(e,t){return Xt[e]||(Xt[e]=t||{})},en=at,tn=Object,nn=function(e){return tn(en(e))},rn=Ke({}.hasOwnProperty),on=Object.hasOwn||function(e,t){return rn(nn(e),t)},an=Ke,sn=0,cn=Math.random(),un=an(1..toString),hn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+un(++sn+cn,36)},ln=Qt,fn=on,dn=hn,gn=At,mn=Dt,yn=Ce.Symbol,pn=ln("wks"),wn=mn?yn.for||yn:yn&&yn.withoutSetter||dn,vn=function(e){return fn(pn,e)||(pn[e]=gn&&fn(yn,e)?yn[e]:wn("Symbol."+e)),pn[e]},Sn=Pe,bn=ft,Mn=Ht,In=function(e,t){var n=e[t];return Ft(n)?void 0:jt(n)},Tn=function(e,t){var n,r;if("string"===t&&Bt(n=e.toString)&&!xt(r=_t(n,e)))return r;if(Bt(n=e.valueOf)&&!xt(r=_t(n,e)))return r;if("string"!==t&&Bt(n=e.toString)&&!xt(r=_t(n,e)))return r;throw new $t("Can't convert object to primitive value")},En=TypeError,An=vn("toPrimitive"),Dn=function(e,t){if(!bn(e)||Mn(e))return e;var n,r=In(e,An);if(r){if(void 0===t&&(t="default"),n=Sn(r,e,t),!bn(n)||Mn(n))return n;throw new En("Can't convert object to primitive value")}return void 0===t&&(t="number"),Tn(e,t)},Cn=Ht,On=function(e){var t=Dn(e,"string");return Cn(t)?t:t+""},Nn=ft,kn=Ce.document,Hn=Nn(kn)&&Nn(kn.createElement),Ln=function(e){return Hn?kn.createElement(e):{}},Rn=Ln,Pn=!ke&&!Ne((function(){return 7!==Object.defineProperty(Rn("div"),"a",{get:function(){return 7}}).a})),Yn=ke,jn=Pe,Fn=Ye,_n=$e,Bn=ct,xn=On,$n=on,Un=Pn,Zn=Object.getOwnPropertyDescriptor;Oe.f=Yn?Zn:function(e,t){if(e=Bn(e),t=xn(t),Un)try{return Zn(e,t)}catch(e){}if($n(e,t))return _n(!jn(Fn.f,e,t),e[t])};var zn={},Vn=ke&&Ne((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Kn=ft,Jn=String,Gn=TypeError,Wn=function(e){if(Kn(e))return e;throw new Gn(Jn(e)+" is not an object")},qn=ke,Xn=Pn,Qn=Vn,er=Wn,tr=On,nr=TypeError,rr=Object.defineProperty,or=Object.getOwnPropertyDescriptor,ar="enumerable",ir="configurable",sr="writable";zn.f=qn?Qn?function(e,t,n){if(er(e),t=tr(t),er(n),"function"==typeof e&&"prototype"===t&&"value"in n&&sr in n&&!n[sr]){var r=or(e,t);r&&r[sr]&&(e[t]=n.value,n={configurable:ir in n?n[ir]:r[ir],enumerable:ar in n?n[ar]:r[ar],writable:!1})}return rr(e,t,n)}:rr:function(e,t,n){if(er(e),t=tr(t),er(n),Xn)try{return rr(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new nr("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var cr=zn,ur=$e,hr=ke?function(e,t,n){return cr.f(e,t,ur(1,n))}:function(e,t,n){return e[t]=n,e},lr={exports:{}},fr=ke,dr=on,gr=Function.prototype,mr=fr&&Object.getOwnPropertyDescriptor,yr=dr(gr,"name"),pr={EXISTS:yr,PROPER:yr&&"something"===function(){}.name,CONFIGURABLE:yr&&(!fr||fr&&mr(gr,"name").configurable)},wr=ht,vr=qt,Sr=Ke(Function.toString);wr(vr.inspectSource)||(vr.inspectSource=function(e){return Sr(e)});var br,Mr,Ir,Tr=vr.inspectSource,Er=ht,Ar=Ce.WeakMap,Dr=Er(Ar)&&/native code/.test(String(Ar)),Cr=hn,Or=Qt("keys"),Nr=function(e){return Or[e]||(Or[e]=Cr(e))},kr={},Hr=Dr,Lr=Ce,Rr=ft,Pr=hr,Yr=on,jr=qt,Fr=Nr,_r=kr,Br="Object already initialized",xr=Lr.TypeError,$r=Lr.WeakMap;if(Hr||jr.state){var Ur=jr.state||(jr.state=new $r);Ur.get=Ur.get,Ur.has=Ur.has,Ur.set=Ur.set,br=function(e,t){if(Ur.has(e))throw new xr(Br);return t.facade=e,Ur.set(e,t),t},Mr=function(e){return Ur.get(e)||{}},Ir=function(e){return Ur.has(e)}}else{var Zr=Fr("state");_r[Zr]=!0,br=function(e,t){if(Yr(e,Zr))throw new xr(Br);return t.facade=e,Pr(e,Zr,t),t},Mr=function(e){return Yr(e,Zr)?e[Zr]:{}},Ir=function(e){return Yr(e,Zr)}}var zr={set:br,get:Mr,has:Ir,enforce:function(e){return Ir(e)?Mr(e):br(e,{})},getterFor:function(e){return function(t){var n;if(!Rr(t)||(n=Mr(t)).type!==e)throw new xr("Incompatible receiver, "+e+" required");return n}}},Vr=Ke,Kr=Ne,Jr=ht,Gr=on,Wr=ke,qr=pr.CONFIGURABLE,Xr=Tr,Qr=zr.enforce,eo=zr.get,to=String,no=Object.defineProperty,ro=Vr("".slice),oo=Vr("".replace),ao=Vr([].join),io=Wr&&!Kr((function(){return 8!==no((function(){}),"length",{value:8}).length})),so=String(String).split("String"),co=lr.exports=function(e,t,n){"Symbol("===ro(to(t),0,7)&&(t="["+oo(to(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Gr(e,"name")||qr&&e.name!==t)&&(Wr?no(e,"name",{value:t,configurable:!0}):e.name=t),io&&n&&Gr(n,"arity")&&e.length!==n.arity&&no(e,"length",{value:n.arity});try{n&&Gr(n,"constructor")&&n.constructor?Wr&&no(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=Qr(e);return Gr(r,"source")||(r.source=ao(so,"string"==typeof t?t:"")),e};Function.prototype.toString=co((function(){return Jr(this)&&eo(this).source||Xr(this)}),"toString");var uo=lr.exports,ho=ht,lo=zn,fo=uo,go=Vt,mo={},yo=Math.ceil,po=Math.floor,wo=Math.trunc||function(e){var t=+e;return(t>0?po:yo)(t)},vo=wo,So=function(e){var t=+e;return t!=t||0===t?0:vo(t)},bo=So,Mo=Math.max,Io=Math.min,To=So,Eo=Math.min,Ao=function(e){var t=To(e);return t>0?Eo(t,9007199254740991):0},Do=ct,Co=function(e,t){var n=bo(e);return n<0?Mo(n+t,0):Io(n,t)},Oo=function(e){return Ao(e.length)},No=function(e){return function(t,n,r){var o=Do(t),a=Oo(o);if(0===a)return!e&&-1;var i,s=Co(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},ko={includes:No(!0),indexOf:No(!1)},Ho=on,Lo=ct,Ro=ko.indexOf,Po=kr,Yo=Ke([].push),jo=function(e,t){var n,r=Lo(e),o=0,a=[];for(n in r)!Ho(Po,n)&&Ho(r,n)&&Yo(a,n);for(;t.length>o;)Ho(r,n=t[o++])&&(~Ro(a,n)||Yo(a,n));return a},Fo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_o=jo,Bo=Fo.concat("length","prototype");mo.f=Object.getOwnPropertyNames||function(e){return _o(e,Bo)};var xo={};xo.f=Object.getOwnPropertySymbols;var $o=mt,Uo=mo,Zo=xo,zo=Wn,Vo=Ke([].concat),Ko=$o("Reflect","ownKeys")||function(e){var t=Uo.f(zo(e)),n=Zo.f;return n?Vo(t,n(e)):t},Jo=on,Go=Ko,Wo=Oe,qo=zn,Xo=Ne,Qo=ht,ea=/#|\.prototype\./,ta=function(e,t){var n=ra[na(e)];return n===aa||n!==oa&&(Qo(t)?Xo(t):!!t)},na=ta.normalize=function(e){return String(e).replace(ea,".").toLowerCase()},ra=ta.data={},oa=ta.NATIVE="N",aa=ta.POLYFILL="P",ia=ta,sa=Ce,ca=Oe.f,ua=hr,ha=function(e,t,n,r){r||(r={});var o=r.enumerable,a=void 0!==r.name?r.name:t;if(ho(n)&&fo(n,a,r),r.global)o?e[t]=n:go(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:lo.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},la=Vt,fa=function(e,t,n){for(var r=Go(t),o=qo.f,a=Wo.f,i=0;i<r.length;i++){var s=r[i];Jo(e,s)||n&&Jo(n,s)||o(e,s,a(t,s))}},da=ia,ga={},ma=jo,ya=Fo,pa=Object.keys||function(e){return ma(e,ya)},wa=ke,va=Vn,Sa=zn,ba=Wn,Ma=ct,Ia=pa;ga.f=wa&&!va?Object.defineProperties:function(e,t){ba(e);for(var n,r=Ma(t),o=Ia(t),a=o.length,i=0;a>i;)Sa.f(e,n=o[i++],r[n]);return e};var Ta,Ea=mt("document","documentElement"),Aa=Wn,Da=ga,Ca=Fo,Oa=kr,Na=Ea,ka=Ln,Ha="prototype",La="script",Ra=Nr("IE_PROTO"),Pa=function(){},Ya=function(e){return"<"+La+">"+e+"</"+La+">"},ja=function(e){e.write(Ya("")),e.close();var t=e.parentWindow.Object;return e=null,t},Fa=function(){try{Ta=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Fa="undefined"!=typeof document?document.domain&&Ta?ja(Ta):(t=ka("iframe"),n="java"+La+":",t.style.display="none",Na.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Ya("document.F=Object")),e.close(),e.F):ja(Ta);for(var r=Ca.length;r--;)delete Fa[Ha][Ca[r]];return Fa()};Oa[Ra]=!0;var _a=Object.create||function(e,t){var n;return null!==e?(Pa[Ha]=Aa(e),n=new Pa,Pa[Ha]=null,n[Ra]=e):n=Fa(),void 0===t?n:Da.f(n,t)},Ba=vn,xa=_a,$a=zn.f,Ua=Ba("unscopables"),Za=Array.prototype;void 0===Za[Ua]&&$a(Za,Ua,{configurable:!0,value:xa(null)});var za=ko.includes,Va=function(e){Za[Ua][e]=!0};function Ka(e,t,n,r,o){return Ja(t,Ga(e,t),n,r,o)}function Ja(e,t,n,r,o,a){const i=yi(t,n,r);if(o&&t!==i)throw new RangeError(Il(e,t,n,r,a));return i}function Ga(e,t){const n=e[t];if(void 0===n)throw new TypeError(El(t));return n}function Wa(e){return null!==e&&/object|function/.test(typeof e)}function qa(e){const t=new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Map);return function(n){if(t.has(n))return t.get(n);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];const i=e(n,...o);return t.set(n,i),i}}function Xa(e){return Qa({name:e},1)}function Qa(e,t){return ri((e=>({value:e,configurable:1,writable:!t})),e)}function ei(e){return ri((e=>({get:e,configurable:1})),e)}function ti(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function ni(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function ri(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function oi(e,t,n){const r={};for(let o=0;o<t.length;o++){const a=t[o];r[a]=e(a,o,n)}return r}function ai(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function ii(e,t){const n={};for(const r of e)n[r]=t[r];return n}function si(e,t){const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n}function ci(e){e={...e};const t=Object.keys(e);for(const n of t)void 0===e[n]&&delete e[n];return e}function ui(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function hi(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function li(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(...n,...r)}}function fi(e){return e[0].toUpperCase()+e.substring(1)}function di(e){return e.slice().sort()}function gi(e,t){return String(t).padStart(e,"0")}function mi(e,t){return Math.sign(e-t)}function yi(e,t,n){return Math.min(Math.max(e,t),n)}function pi(e,t){return[Math.floor(e/t),wi(e,t)]}function wi(e,t){return(e%t+t)%t}function vi(e,t){return[Si(e,t),bi(e,t)]}function Si(e,t){return Math.trunc(e/t)||0}function bi(e,t){return e%t||0}function Mi(e){return.5===Math.abs(e%1)}function Ii(e,t,n){let r=0,o=0;for(let a=0;a<=t;a++){const t=e[n[a]],i=bf[a],s=Sf/i,[c,u]=vi(t,s);r+=u*i,o+=c}const[a,i]=vi(r,Sf);return[o+a,i]}function Ti(e,t,n){const r={};for(let o=t;o>=0;o--){const t=bf[o];r[n[o]]=Si(e,t),e=bi(e,t)}return r}function Ei(e){if(void 0!==e)return Di(e)}function Ai(e){return Li(Di(e))}function Di(e){return Hi(Jf(e))}function Ci(e){if(null==e)throw new TypeError("Cannot be null or undefined");return e}function Oi(e,t){if(null==t)throw new RangeError(El(e));return t}function Ni(e){if(!Wa(e))throw new TypeError(Ml);return e}function ki(e,t){if(typeof t!==e)throw new TypeError(Tl(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t));return t}function Hi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(!Number.isInteger(e))throw new RangeError(yl(t,e));return e||0}function Li(e){if(e<=0)throw new RangeError(pl(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",e));return e}function Ri(e){if("symbol"==typeof e)throw new TypeError(bl);return String(e)}function Pi(e,t){return Wa(e)?String(e):Vf(e,t)}function Yi(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(Sl(e));return e}function ji(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if("bigint"==typeof e)throw new TypeError(vl(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(wl(t,e));return e}function Fi(e,t){return Math.trunc(ji(e,t))||0}function _i(e,t){return Hi(ji(e,t),t)}function Bi(e,t){return Li(Fi(e,t),t)}function xi(e,t){let[n,r]=vi(t,Sf),o=e+n;const a=Math.sign(o);return a&&a===-Math.sign(r)&&(o-=a,r+=a*Sf),[o,r]}function $i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return xi(e[0]+t[0]*n,e[1]+t[1]*n)}function Ui(e,t){return xi(e[0],e[1]+t)}function Zi(e,t){return $i(t,e,-1)}function zi(e,t){return mi(e[0],t[0])||mi(e[1],t[1])}function Vi(e,t,n){return-1===zi(e,t)||1===zi(e,n)}function Ki(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=BigInt(Sf/t);return[Number(e/n),Number(e%n)*t]}function Ji(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=Sf/t,[r,o]=vi(e,n);return[r,o*t]}function Gi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,r]=e,o=Math.floor(r/t),a=Sf/t;return BigInt(n)*BigInt(a)+BigInt(o)}function Wi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;const[r,o]=e,[a,i]=vi(o,t);return r*(Sf/t)+(a+(n?i/t:0))}function qi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pi;const[r,o]=e,[a,i]=n(o,t);return[r*(Sf/t)+a,i]}function Xi(e,t){const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function Qi(e){return Ka(e,"isoYear",Sd,vd,1),e.isoYear===Sd?Ka(e,"isoMonth",4,12,1):e.isoYear===vd&&Ka(e,"isoMonth",1,9,1),e}function es(e){return ts({...e,...ld,isoHour:12}),e}function ts(e){const t=Ka(e,"isoYear",Sd,vd,1),n=t===Sd?1:t===vd?-1:0;return n&&ns(cs({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function ns(e){if(!e||Vi(e,wd,pd))throw new RangeError(Wl);return e}function rs(e){return Ii(e,5,ad)[1]}function os(e){const[t,n]=pi(e,Sf);return[Ti(n,5,ad),t]}function as(e){return is(e)[0]}function is(e){return qi(e,pf)}function ss(e){return ls(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function cs(e){const t=ss(e);if(void 0!==t){const[n,r]=vi(t,df);return[n,r*yf+(e.isoMicrosecond||0)*mf+(e.isoNanosecond||0)]}}function us(e,t){const[n,r]=os(rs(e)-t);return ns(cs({...e,isoDay:e.isoDay+r,...n}))}function hs(){return ls(...arguments)/gf}function ls(){const[e,t]=fs(...arguments),n=e.valueOf();if(!isNaN(n))return n-t*df}function fs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;const s=e===Sd?1:e===vd?-1:0,c=new Date;return c.setUTCHours(r,o,a,i),c.setUTCFullYear(e,t-1,n+s),[c,s]}function ds(e,t){let[n,r]=Ui(e,t);r<0&&(r+=Sf,n-=1);const[o,a]=pi(r,yf),[i,s]=pi(a,mf);return gs(n*df+o,i,s)}function gs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=Math.ceil(Math.max(0,Math.abs(e)-yd)/df)*Math.sign(e),o=new Date(e-r*df);return ni(sd,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+r,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,n])}function ms(e){return[e.isoYear,e.isoMonth,e.isoDay]}function ys(){return Id}function ps(e,t){switch(t){case 2:return vs(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function ws(e){return vs(e)?366:365}function vs(e){return e%4==0&&(e%100!=0||e%400==0)}function Ss(e){const[t,n]=fs(e.isoYear,e.isoMonth,e.isoDay);return wi(t.getUTCDay()-n,7)||7}function bs(e){let{isoYear:t}=e;return t<1?["bce",1-t]:["ce",t]}function Ms(e){const t=ss(e);if(t<Td)return bs(e);const n=Xi(Hg($f),t),{era:r,eraYear:o}=Sh(n,$f);return[r,o]}function Is(e){return Ts(e),Ds(e,1),e}function Ts(e){return As(e,1),e}function Es(e){return ui(id,e,As(e))}function As(e,t){const{isoYear:n}=e,r=Ka(e,"isoMonth",1,ys(),t);return{isoYear:n,isoMonth:r,isoDay:Ka(e,"isoDay",1,ps(n,r),t)}}function Ds(e,t){return ni(ad,[Ka(e,"isoHour",0,23,t),Ka(e,"isoMinute",0,59,t),Ka(e,"isoSecond",0,59,t),Ka(e,"isoMillisecond",0,999,t),Ka(e,"isoMicrosecond",0,999,t),Ka(e,"isoNanosecond",0,999,t)])}function Cs(e){return void 0===e?0:$d(Ni(e))}function Os(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=Bs(e);const n=Ud(e),r=Zd(e,t);return[$d(e),r,n]}function Ns(e){return Ud(Bs(e))}function ks(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:9,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:4;t=Bs(t);let i=Bd(t,r,o),s=js(t),c=Jd(t,a);const u=_d(t,r,o,1);return null==i?i=Math.max(n,u):Vs(i,u),s=Fs(s,u,1),e&&(c=(e=>e<4?(e+2)%4:e)(c)),[i,u,s,c]}function Hs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=arguments.length>2?arguments[2]:void 0,r=js(e=xs(e,Ad));const o=Jd(e,7);let a=_d(e,t);return a=Oi(Ad,a),r=Fs(r,a,void 0,n),[a,r,o]}function Ls(e){return zd(Bs(e))}function Rs(e,t){return Ps(Bs(e),t)}function Ps(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=_s(e);return[Jd(e,4),...Ys(_d(e,t),n)]}function Ys(e,t){return null!=e?[bf[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function js(e){const t=e[Cd];return void 0===t?1:Fi(t,Cd)}function Fs(e,t,n,r){const o=r?Sf:bf[t+1];if(o){const n=bf[t];if(o%((e=Ja(Cd,e,1,o/n-(r?0:1),1))*n))throw new RangeError(Tl(Cd,e))}else e=Ja(Cd,e,1,n?10**9:1,1);return e}function _s(e){let t=e[Od];if(void 0!==t){if("number"!=typeof t){if("auto"===Ri(t))return;throw new RangeError(Tl(Od,t))}t=Ja(Od,Math.floor(t),0,9,1)}return t}function Bs(e){return void 0===e?{}:Ni(e)}function xs(e,t){return"string"==typeof e?{[t]:e}:Ni(e)}function $s(e){if(void 0!==e){if(Wa(e))return Object.assign(Object.create(null),e);throw new TypeError(Ml)}}function Us(e,t){return e&&Object.assign(Object.create(null),e,{overflow:Hd[t]})}function Zs(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:9,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,a=t[e];if(void 0===a)return o?r:void 0;if(a=Ri(a),"auto"===a)return o?r:null;let i=lf[a];if(void 0===i&&(i=td[a]),void 0===i)throw new RangeError(Ol(e,a,lf));return Ja(e,i,r,n,1,ff),i}function zs(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=n[e];if(void 0===o)return r;const a=Ri(o),i=t[a];if(void 0===i)throw new RangeError(Ol(e,a,t));return i}function Vs(e,t){if(t>e)throw new RangeError(nf)}function Ks(e){return{branding:tg,epochNanoseconds:e}}function Js(e,t,n){return{branding:eg,calendar:n,timeZone:t,epochNanoseconds:e}}function Gs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Xd,calendar:t,...ii(hd,e)}}function Ws(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:qd,calendar:t,...ii(cd,e)}}function qs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Gd,calendar:t,...ii(cd,e)}}function Xs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Wd,calendar:t,...ii(cd,e)}}function Qs(e){return{branding:Qd,...ii(ud,e)}}function ec(e){return{branding:ng,sign:pu(e),...ii(qf,e)}}function tc(e){return qi(e.epochNanoseconds,yf)[0]}function nc(e){return e.epochNanoseconds}function rc(e){return"string"==typeof e?e:Vf(e.id)}function oc(e,t){return e===t||rc(e)===rc(t)}function ac(e,t,n,r,o,a){const i={...nd,[Wf[t]]:n},s=a(r,e),c=a(s,i);return[o(s),o(c)]}function ic(e,t,n){const r=Wi(Zi(t,n));if(!r)throw new RangeError(xl);return Wi(Zi(t,e))/r}function sc(e,t,n,r){return cc(e,lc(t,n),r)}function cc(e,t,n){const[r,o]=uc(e,t,n);return ts({...iu(e,o),...r})}function uc(e,t,n){return os(wc(rs(e),t,n))}function hc(e){return wc(e,wf,7)}function lc(e,t){return bf[e]*t}function fc(e){const t=dc(e);return[t,iu(t,1)]}function dc(e){return fd(6,e)}function gc(e,t,n){const r=Math.min(Tu(e),6);return bu(pc(Su(e,r),t,n),r)}function mc(e,t,n,r,o,a,i,s,c){if(0===r&&1===o)return e;const u=r>6?Mc:lu(i)&&r<6?bc:Sc;let[h,l,f]=u(e,t,n,r,o,a,i,s,c);return f&&(h=((e,t,n,r,o,a,i)=>{const s=pu(e);for(let c=r+1;c<=n;c++){if(7===c&&7!==n)continue;const r=od(c,e);r[Wf[c]]+=s;const u=Wi(Zi(a(i(o,r)),t));if(u&&Math.sign(u)!==s)break;e=r}return e})(h,l,n,Math.max(6,r),i,s,c)),h}function yc(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/Sf)(e);return[wc(t,n,r),0]}return pc(e,lc(t,n),r,o)}function pc(e,t,n,r){let[o,a]=e;r&&a<0&&(a+=Sf,o-=1);const[i,s]=pi(wc(a,t,n),Sf);return xi(o+i,s)}function wc(e,t,n){return vc(e/t,n)*t}function vc(e,t){return rg[t](e)}function Sc(e,t,n,r,o,a){const i=pu(e),s=Su(e),c=yc(s,r,o,a),u=Zi(s,c),h=Math.sign(c[0]-s[0])===i,l=bu(c,Math.min(n,6));return[{...e,...l},$i(t,u),h]}function bc(e,t,n,r,o,a,i,s,c){const u=pu(e);let[h,l]=Su(e,5);const f=lc(r,o);let d=wc(l,f,a);const[g,m]=ac({...e,...rd},6,u,i,s,c),y=d-Wi(Zi(g,m));y&&Math.sign(y)!==u?t=Ui(g,d):(h+=u,d=wc(y,f,a),t=Ui(m,d));const p=Mu(d);return[{...e,...p,days:e.days+h},t,Boolean(h)]}function Mc(e,t,n,r,o,a,i,s,c){const u=pu(e),h=Wf[r],l=od(r,e),f=Si(e[h],o)*o;l[h]=f;const[d,g]=ac(l,r,o*u,i,s,c),m=f+ic(t,d,g)*u*o,y=wc(m,o,a),p=Math.sign(y-m)===u;return l[h]=y,[l,p?g:d,p]}function Ic(e,t,n,r){const[o,a,i,s]=(e=>{const t=Ps(e=Bs(e));return[e.timeZone,...t]})(r),c=void 0!==o;return((e,t,n,r,o,a)=>{n=pc(n,o,r,1);const i=t.getOffsetNanosecondsFor(n);return Lc(ds(n,i),a)+(e?Fc(hc(i)):"Z")})(c,t(c?e(o):og),n.epochNanoseconds,a,i,s)}function Tc(e,t,n){const[r,o,a,i,s,c]=(e=>{e=Bs(e);const t=zd(e),n=_s(e),r=Kd(e),o=Jd(e,4),a=_d(e,4);return[t,Vd(e),r,o,...Ys(a,n)]})(n);return((e,t,n,r,o,a,i,s,c,u)=>{r=pc(r,c,s,1);const h=e(n).getOffsetNanosecondsFor(r);return Lc(ds(r,h),u)+Fc(hc(h),i)+((e,t)=>1!==t?"["+(2===t?"!":"")+rc(e)+"]":"")(n,a)+_c(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,a,i,s,c)}function Ec(e,t){const[n,r,o,a]=(e=>(e=Bs(e),[zd(e),...Ps(e)]))(t);return i=e.calendar,s=n,c=a,Lc(cc(e,o,r),c)+_c(i,s);var i,s,c}function Ac(e,t){return n=e.calendar,r=e,o=Ls(t),Rc(r)+_c(n,o);var n,r,o}function Dc(e,t){return kc(e.calendar,Pc,e,Ls(t))}function Cc(e,t){return kc(e.calendar,Yc,e,Ls(t))}function Oc(e,t){const[n,r,o]=Rs(t);return a=o,jc(uc(e,r,n)[0],a);var a}function Nc(e,t){const[n,r,o]=Rs(t,3);return r>1&&(e={...e,...gc(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?yu(e):e,{hours:o,minutes:a}=r,[i,s]=qi(Su(r,3),pf,vi);vu(i);const c=xc(s,t),u=t>=0||!n||c;return(n<0?"-":"")+"P"+Hc({Y:Uc(r.years),M:Uc(r.months),W:Uc(r.weeks),D:Uc(r.days)})+(o||a||i||u?"T"+Hc({H:Uc(o),M:Uc(a),S:Uc(i,u)+c}):"")})(e,o)}function kc(e,t,n,r){const o=rc(e),a=r>1||0===r&&o!==Bf;return 1===r?o===Bf?t(n):Rc(n):a?Rc(n)+Bc(o,2===r):t(n)}function Hc(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function Lc(e,t){return Rc(e)+"T"+jc(e,t)}function Rc(e){return Pc(e)+"-"+hf(e.isoDay)}function Pc(e){const{isoYear:t}=e;return(t<0||t>9999?$c(t)+gi(6,Math.abs(t)):gi(4,t))+"-"+hf(e.isoMonth)}function Yc(e){return hf(e.isoMonth)+"-"+hf(e.isoDay)}function jc(e,t){const n=[hf(e.isoHour),hf(e.isoMinute)];return-1!==t&&n.push(hf(e.isoSecond)+((e,t,n,r)=>xc(e*yf+t*mf+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function Fc(e){if(1===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0))return"";const[t,n]=pi(Math.abs(e),vf),[r,o]=pi(n,wf),[a,i]=pi(o,pf);return $c(e)+hf(t)+":"+hf(r)+(a||i?":"+hf(a)+xc(i):"")}function _c(e,t){if(1!==t){const n=rc(e);if(t>1||0===t&&n!==Bf)return Bc(n,2===t)}return""}function Bc(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function xc(e,t){let n=gi(9,e);return n=void 0===t?n.replace(cg,""):n.slice(0,t),n?"."+n:""}function $c(e){return e<0?"-":"+"}function Uc(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function Zc(e,t){const{epochNanoseconds:n}=e,r=(t.getOffsetNanosecondsFor?t:t(e.timeZone)).getOffsetNanosecondsFor(n),o=ds(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function zc(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,a=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0;if(void 0!==n&&1===r&&(1===r||i))return us(t,n);const s=e.getPossibleInstantsFor(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=cs(t);r&&(n=hc(n));for(const t of e){let e=Wi(Zi(t,o));if(r&&(e=hc(e)),e===n)return t}})(s,t,n,a);if(void 0!==e)return e;if(0===r)throw new RangeError(Jl)}return i?cs(t):Vc(e,t,o,s)}function Vc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.getPossibleInstantsFor(t);if(1===r.length)return r[0];if(1===n)throw new RangeError(Gl);if(r.length)return r[3===n?1:0];const o=cs(t),a=((e,t)=>{const n=e.getOffsetNanosecondsFor(Ui(t,-Sf));return Jc(e.getOffsetNanosecondsFor(Ui(t,Sf))-n)})(e,o),i=a*(2===n?-1:1);return(r=e.getPossibleInstantsFor(ds(o,i)))[2===n?0:r.length-1]}function Kc(e){if(Math.abs(e)>=Sf)throw new RangeError(Vl);return e}function Jc(e){if(e>Sf)throw new RangeError(Kl);return e}function Gc(e,t,n){return Ks(ns($i(t.epochNanoseconds,(e=>{if(Iu(e))throw new RangeError(ef);return Su(e,5)})(e?yu(n):n))))}function Wc(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Object.create(null);const i=t(r.timeZone),s=e(r.calendar);return{...r,...tu(s,i,r,n?yu(o):o,a)}}function qc(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const{calendar:a}=n;return Gs(nu(e(a),n,t?yu(r):r,o),a)}function Xc(e,t,n,r,o){const{calendar:a}=n;return Ws(ru(e(a),n,t?yu(r):r,o),a)}function Qc(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const a=n.calendar,i=e(a);let s=ou(i,n);t&&(r=mu(r)),r.sign<0&&(s=i.dateAdd(s,{...nd,months:1}),s=iu(s,-1));const c=i.dateAdd(s,r,o);return qs(ou(i,c),a)}function eu(e,t,n){return Qs(au(t,e?yu(n):n)[0])}function tu(e,t,n,r,o){const a=Su(r,5);let i=n.epochNanoseconds;if(Iu(r)){const s=ug(n,t);i=$i(Vc(t,{...ru(e,s,{...r,...rd},o),...ii(ad,s)}),a)}else i=$i(i,a),Cs(o);return{epochNanoseconds:ns(i)}}function nu(e,t,n,r){const[o,a]=au(t,n);return ts({...ru(e,t,{...n,...rd,days:n.days+a},r),...o})}function ru(e,t,n,r){if(n.years||n.months||n.weeks)return e.dateAdd(t,n,r);Cs(r);const o=n.days+Su(n,5)[0];return o?es(iu(t,o)):t}function ou(e,t){return iu(t,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)-e.day(t))}function au(e,t){const[n,r]=Su(t,5),[o,a]=os(rs(e)+r);return[o,n+a]}function iu(e,t){return t?{...e,...gs(ss(e)+t*df)}:e}function su(e,t,n){const r=e(n.calendar);return lu(n)?[n,r,t(n.timeZone)]:[{...n,...ld},r]}function cu(e){return e?nc:cs}function uu(e,t){return t?li(tu,e,t):li(nu,e)}function hu(e,t){return t?li(sh,e,t):li(ch,e)}function lu(e){return e&&e.epochNanoseconds}function fu(e,t){return e<=6-(lu(t)?1:0)}function du(e,t,n,r,o,a){const i=o(n,e);return[a(n,i,t),r(i)]}function gu(e,t,n,r,o,a,i){const s=e(Bs(i).relativeTo),c=Math.max(Tu(o),Tu(a));if(fu(c,s))return ec(wu(((e,t,n,r)=>{const o=$i(Su(e),Su(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(Wl);return{...nd,...bu(o,n)}})(o,a,c,r)));if(!s)throw new RangeError(Ql);r&&(a=yu(a));const[u,h,l]=su(t,n,s),f=uu(h,l),d=hu(h,l),g=f(u,o);return ec(d(u,f(g,a),c))}function mu(e){return ec(yu(e))}function yu(e){const t={};for(const n of Wf)t[n]=-1*e[n]||0;return t}function pu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wf,n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(Xl);n=t}}return n}function wu(e){for(const t of ed)Ja(t,e[t],-hg,hg,1);return vu(Wi(Su(e),pf)),e}function vu(e){if(!Number.isSafeInteger(e))throw new RangeError(ql)}function Su(e){return Ii(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,Wf)}function bu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const[n,r]=e,o=Ti(r,t,Wf);if(o[Wf[t]]+=n*(Sf/bf[t]),!Number.isFinite(o[Wf[t]]))throw new RangeError(Wl);return o}function Mu(e){return Ti(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,Wf)}function Iu(e){return Boolean(pu(e,Qf))}function Tu(e){let t=9;for(;t>0&&!e[Wf[t]];t--);return t}function Eu(e,t){return[e,t]}function Au(e){const t=Math.floor(e/ag)*ag;return[t,t+ag]}function Du(e){const t=ju(e);if(void 0===t)throw new RangeError(rf(e));return t}function Cu(e){const t=Ru(Vf(e));if(!t||t.O)throw new RangeError(rf(e));return Ws(t.I?ku(t):Hu(t))}function Ou(e){if(e.calendar!==Bf)throw new RangeError(of(e.calendar))}function Nu(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=zu(e.timeZone),a=lg(o);return Js(zc(a,Is(e),t,n,r,!a.R,e.O),o,Oh(e.calendar))}function ku(e){return Lu(ts(Is(e)))}function Hu(e){return Lu(es(Ts(e)))}function Lu(e){return{...e,calendar:Oh(e.calendar)}}function Ru(e){const t=Tg.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:Fu(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),..._u(e.slice(5)),...Bu(e[16]),I:Boolean(e[6]),O:n,offset:n?void 0:t}})(t):void 0}function Pu(e){const t=Mg.exec(e);return t?(e=>({isoYear:Fu(e),isoMonth:parseInt(e[4]),isoDay:1,...Bu(e[5])}))(t):void 0}function Yu(e){const t=Ig.exec(e);return t?(e=>({isoYear:Md,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...Bu(e[3])}))(t):void 0}function ju(e,t){const n=Ag.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(of(n));return Kc((Zu(e[2])*vf+Zu(e[3])*wf+Zu(e[4])*pf+xu(e[5]||""))*Uu(e[1]))})(n,t):void 0}function Fu(e){const t=Uu(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(of(-0));return t*n}function _u(e){const t=Zu(e[3]);return{...os(xu(e[4]||""))[0],isoHour:Zu(e[1]),isoMinute:Zu(e[2]),isoSecond:60===t?59:t}}function Bu(e){let t,n;const r=[];if(e.replace(Dg,((e,o,a)=>{const i=Boolean(o),[s,c]=a.split("=").reverse();if(c){if("u-ca"===c)r.push(s),t||(t=i);else if(i||/[A-Z]/.test(c))throw new RangeError(of(e))}else{if(n)throw new RangeError(of(e));n=s}return""})),r.length>1&&t)throw new RangeError(of(e));return{timeZone:n,calendar:r[0]||Bf}}function xu(e){return parseInt(e.padEnd(9,"0"))}function $u(e){return new RegExp(`^${e}$`,"i")}function Uu(e){return e&&"+"!==e?-1:1}function Zu(e){return void 0===e?0:parseInt(e)}function zu(e){const t=Ku(e);return"number"==typeof t?Fc(t):t?(e=>{if(Ng.test(e))throw new RangeError(zl);return e.toLowerCase().split("/").map(((e,t)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,((e,n)=>e.length<=2&&!t||"in"===e||"chat"===e?e.toUpperCase():e.length>2||!n?fi(e).replace(/island|noronha|murdo|rivadavia|urville/,fi):e)))).join("/")})(e):og}function Vu(e){const t=Ku(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:og}function Ku(e){const t=ju(e=e.toUpperCase(),1);return void 0!==t?t:e!==og?Og(e):void 0}function Ju(e,t){return zi(e.epochNanoseconds,t.epochNanoseconds)}function Gu(e,t){return zi(e.epochNanoseconds,t.epochNanoseconds)}function Wu(e,t){return qu(e,t)||Xu(e,t)}function qu(e,t){return mi(ss(e),ss(t))}function Xu(e,t){return mi(rs(e),rs(t))}function Qu(e,t){if(e===t)return 1;const n=rc(e),r=rc(t);if(n===r)return 1;try{return Vu(n)===Vu(r)}catch(e){}}function eh(e,t,n,r){const o=ks(e,$s(r),3,5),a=lh(t.epochNanoseconds,n.epochNanoseconds,...o);return ec(e?yu(a):a)}function th(e,t,n,r,o,a){const i=yh(r.calendar,o.calendar),s=$s(a),[c,u,h,l]=ks(n,s,5),f=r.epochNanoseconds,d=o.epochNanoseconds,g=zi(d,f);let m;if(g)if(c<6)m=lh(f,d,c,u,h,l);else{const n=t(((e,t)=>{if(!Qu(e,t))throw new RangeError(Zl);return e})(r.timeZone,o.timeZone)),a=e(i);m=uh(a,n,r,o,g,c,s),m=mc(m,d,c,u,h,l,r,nc,li(tu,a,n))}else m=nd;return ec(n?yu(m):m)}function nh(e,t,n,r,o){const a=yh(n.calendar,r.calendar),i=$s(o),[s,c,u,h]=ks(t,i,6),l=cs(n),f=cs(r),d=zi(f,l);let g;if(d)if(s<=6)g=lh(l,f,s,c,u,h);else{const t=e(a);g=hh(t,n,r,d,s,i),g=mc(g,f,s,c,u,h,n,cs,li(nu,t))}else g=nd;return ec(t?yu(g):g)}function rh(e,t,n,r,o){const a=yh(n.calendar,r.calendar),i=$s(o);return ah(t,(()=>e(a)),n,r,...ks(t,i,6,9,6),i)}function oh(e,t,n,r,o){const a=yh(n.calendar,r.calendar),i=$s(o),s=ks(t,i,9,9,8),c=e(a);return ah(t,(()=>c),ou(c,n),ou(c,r),...s,i)}function ah(e,t,n,r,o,a,i,s,c){const u=cs(n),h=cs(r);let l;if(zi(h,u))if(6===o)l=lh(u,h,o,a,i,s);else{const e=t();l=e.dateUntil(n,r,o,c),6===a&&1===i||(l=mc(l,h,o,a,i,s,n,cs,li(ru,e)))}else l=nd;return ec(e?yu(l):l)}function ih(e,t,n,r){const o=$s(r),[a,i,s,c]=ks(e,o,5,5),u=wc(mh(t,n),lc(i,s),c),h={...nd,...Mu(u,a)};return ec(e?yu(h):h)}function sh(e,t,n,r,o,a){const i=zi(r.epochNanoseconds,n.epochNanoseconds);return i?o<6?fh(n.epochNanoseconds,r.epochNanoseconds,o):uh(e,t,n,r,i,o,a):nd}function ch(e,t,n,r,o){const a=cs(t),i=cs(n),s=zi(i,a);return s?r<=6?fh(a,i,r):hh(e,t,n,s,r,o):nd}function uh(e,t,n,r,o,a,i){const[s,c,u]=((e,t,n,r)=>{function o(){return l={...iu(s,u++*-r),...i},f=Vc(e,l),zi(c,f)===-r}const a=ug(t,e),i=ii(ad,a),s=ug(n,e),c=n.epochNanoseconds;let u=0;const h=mh(a,s);let l,f;if(Math.sign(h)===-r&&u++,o()&&(-1===r||o()))throw new RangeError(xl);const d=Wi(Zi(f,c));return[a,l,d]})(t,n,r,o);var h,l;return{...6===a?(h=s,l=c,{...nd,days:dh(h,l)}):e.dateUntil(s,c,a,i),...Mu(u)}}function hh(e,t,n,r,o,a){let i=t,s=mh(t,n);return Math.sign(s)===-r&&(i=iu(t,r),s+=Sf*r),{...e.dateUntil(i,n,o,a),...Mu(s)}}function lh(e,t,n,r,o,a){return{...nd,...bu(yc(Zi(e,t),r,o,a),n)}}function fh(e,t,n){return{...nd,...bu(Zi(e,t),n)}}function dh(e,t){return gh(ss(e),ss(t))}function gh(e,t){return Math.trunc((t-e)/df)}function mh(e,t){return rs(t)-rs(e)}function yh(e,t){if(!oc(e,t))throw new RangeError($l);return e}function ph(e){function t(e){return((e,t)=>({...Sh(e,t),o:e.month,day:parseInt(e.day)}))(Xi(n,e),r)}const n=Hg(e),r=Nh(e);return{id:e,h:wh(t),l:vh(t)}}function wh(e){return qa((t=>{const n=ss(t);return e(n)}),WeakMap)}function vh(e){const t=e(0).year-bd;return qa((n=>{let r,o=ls(n-t);const a=[],i=[];do{o+=400*df}while((r=e(o)).year<=n);do{o+=(1-r.day)*df,r.year===n&&(a.push(o),i.push(r.o)),o-=df}while((r=e(o)).year>=n);return{i:a.reverse(),u:cf(i.reverse())}}))}function Sh(e,t){let n,r,o=bh(e);if(e.era){const i=Uf[t];void 0!==i&&(a=(a=e.era).normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),n=Zf[a]||a,r=o,o=jh(r,i[n]||0))}var a;return{era:n,eraYear:r,year:o}}function bh(e){return parseInt(e.relatedYear||e.year)}function Mh(e){const{year:t,o:n,day:r}=this.h(e),{u:o}=this.l(t);return[t,o[n]+1,r]}function Ih(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return this.l(e).i[t-1]+(n-1)*df}function Th(e){const t=Ch(this,e),n=Ch(this,e-1),r=t.length;if(r>n.length){const e=_h(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function Eh(e){return gh(Ih.call(this,e),Ih.call(this,e+1))}function Ah(e,t){const{i:n}=this.l(e);let r=t+1,o=n;return r>n.length&&(r=1,o=this.l(e+1).i),gh(n[t-1],o[r-1])}function Dh(e){return this.l(e).i.length}function Ch(e,t){return Object.keys(e.l(t).u)}function Oh(e){if((e=e.toLowerCase())!==Bf&&e!==xf&&Nh(e)!==Nh(Hg(e).resolvedOptions().calendar))throw new RangeError(Ul(e));return e}function Nh(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function kh(e){return this.m(e)[0]}function Hh(e){return this.m(e)[1]}function Lh(e){const[t]=this.v(e);return gh(this.p(t),ss(e))+1}function Rh(e){const t=Lg.exec(e);if(!t)throw new RangeError(Yl(e));return[parseInt(t[1]),Boolean(t[2])]}function Ph(e,t,n){return e+(t||n&&e>=n?1:0)}function Yh(e,t){return e-(t&&e>=t?1:0)}function jh(e,t){return(t+e)*(Math.sign(t)||1)||0}function Fh(e){return Uf[Bh(e)]}function _h(e){return zf[Bh(e)]}function Bh(e){return Nh(e.id||Bf)}function xh(e,t,n,r){const o=zh(n,r,Yf,[],Df);if(void 0!==o.timeZone){const r=n.dateFromFields(o),a=Kh(o),i=e(o.timeZone);return{epochNanoseconds:zc(t(i),{...r,...a},void 0!==o.offset?Du(o.offset):void 0),timeZone:i}}return{...n.dateFromFields(o),...ld}}function $h(e,t,n){const r=zh(e,t,Yf,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]);return e.dateFromFields(r,n)}function Uh(e,t,n,r){const o=zh(e,t,Rf,r);return e.yearMonthFromFields(o,n)}function Zh(e,t,n,r){const o=zh(e,n,Yf,arguments.length>4&&void 0!==arguments[4]?arguments[4]:[]);return t&&void 0!==o.month&&void 0===o.monthCode&&void 0===o.year&&(o.year=Md),e.monthDayFromFields(o,r)}function zh(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return Vh(t,[...e.fields(n),...o].sort(),r)}function Vh(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:!n;const o={};let a,i=0;for(const r of t){if(r===a)throw new RangeError(Dl(r));if("constructor"===r||"__proto__"===r)throw new RangeError(Al(r));let t=e[r];if(void 0!==t)i=1,jg[r]&&(t=jg[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(El(r));o[r]=_f[r]}a=r}if(r&&!i)throw new TypeError(Cl(t));return o}function Kh(e,t){return Ds(Fg({..._f,...e}),t)}function Jh(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];const i=[...e.fields(r),...o].sort();let s=Vh(t,i,a);const c=Vh(n,i);return s=e.mergeFields(s,c),Vh(s,i,[])}function Gh(e,t){const n=zh(e,t,Ff);return e.monthDayFromFields(n)}function Wh(e,t,n){const r=zh(e,t,Pf);return e.yearMonthFromFields(r,n)}function qh(e,t,n,r,o){t=ii(n=e.fields(n),t),r=Vh(r,o=e.fields(o),[]);let a=e.mergeFields(t,r);return a=Vh(a,[...n,...o].sort(),[]),e.dateFromFields(a)}function Xh(e,t){let{era:n,eraYear:r,year:o}=t;const a=Fh(e);if(void 0!==n||void 0!==r){if(void 0===n||void 0===r)throw new TypeError(Hl);if(!a)throw new RangeError(kl);const e=a[n];if(void 0===e)throw new RangeError(Rl(n));const t=jh(r,e);if(void 0!==o&&o!==t)throw new RangeError(Ll);o=t}else if(void 0===o)throw new TypeError(Pl(a));return o}function Qh(e,t,n,r){let{month:o,monthCode:a}=t;if(void 0!==a){const t=((e,t,n,r)=>{const o=e.P(n),[a,i]=Rh(t);let s=Ph(a,i,o);if(i){const t=_h(e);if(void 0===t)throw new RangeError(Bl);if(t>0){if(s>t)throw new RangeError(Bl);if(void 0===o){if(1===r)throw new RangeError(Bl);s--}}else{if(s!==-t)throw new RangeError(Bl);if(void 0===o&&1===r)throw new RangeError(Bl)}}return s})(e,a,n,r);if(void 0!==o&&o!==t)throw new RangeError(jl);o=t,r=1}else if(void 0===o)throw new TypeError(Fl);return Ja("month",o,1,e.j(n),r)}function el(e,t,n,r,o){return Ka(t,"day",1,e.N(r,n),o)}function tl(e,t,n,r){let o=0;const a=[];for(const e of n)void 0!==t[e]?o=1:a.push(e);if(Object.assign(e,t),o)for(const t of r||a)delete e[t]}function nl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Bf;return Js(e.epochNanoseconds,t,n)}function rl(e,t){return Gs(ug(t,e))}function ol(e,t){return Ws(ug(t,e))}function al(e,t){return Qs(ug(t,e))}function il(e,t){return{...e,calendar:t}}function sl(e,t){if(e===t)return e;const n=rc(e),r=rc(t);if(n===r||n===Bf)return t;if(r===Bf)return e;throw new RangeError($l)}function cl(e,t){return n=>n===Bf?e:n===xf||n===$f?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),kg(n))}function ul(e,t,n){const r=new Set(n);return o=>(((e,t)=>{for(const n of t)if(n in e)return 1;return 0})(o=si(r,o),e)||Object.assign(o,t),n&&(o.timeZone=og,["full","long"].includes(o.timeStyle)&&(o.timeStyle="medium")),o)}function hl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ll;const[n,,,r]=e;return function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dm;for(var i=arguments.length,s=new Array(i>2?i-2:0),c=2;c<i;c++)s[c-2]=arguments[c];const u=t(r&&r(...s),o,a,n),h=u.resolvedOptions();return[u,...fl(e,h,s)]}}function ll(e,t,n,r){if(n=r(n),e){if(void 0!==n.timeZone)throw new TypeError(sf);n.timeZone=e}return new dd(t,n)}function fl(e,t,n){const[,r,o]=e;return n.map((e=>(e.calendar&&((e,t,n)=>{if((n||e!==Bf)&&e!==t)throw new RangeError($l)})(rc(e.calendar),t.calendar,o),r(e,t))))}function dl(e){const t=gl();return ds(t,e.getOffsetNanosecondsFor(t))}function gl(){return Ji(Date.now(),yf)}function ml(){return bm||(bm=(new dd).resolvedOptions().timeZone)}(function(e,t){var n,r,o,a,i,s=e.target,c=e.global,u=e.stat;if(n=c?sa:u?sa[s]||la(s,{}):sa[s]&&sa[s].prototype)for(r in t){if(a=t[r],o=e.dontCallGetSet?(i=ca(n,r))&&i.value:n[r],!da(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;fa(a,o)}(e.sham||o&&o.sham)&&ua(a,"sham",!0),ha(n,r,a,e)}})({target:"Array",proto:!0,forced:Ne((function(){return!Array(1).includes()}))},{includes:function(e){return za(this,e,arguments.length>1?arguments[1]:void 0)}}),Va("includes");const yl=(e,t)=>`Non-integer ${e}: ${t}`,pl=(e,t)=>`Non-positive ${e}: ${t}`,wl=(e,t)=>`Non-finite ${e}: ${t}`,vl=e=>`Cannot convert bigint to ${e}`,Sl=e=>`Invalid bigint: ${e}`,bl="Cannot convert Symbol to string",Ml="Invalid object",Il=(e,t,n,r,o)=>o?Il(e,o[t],o[n],o[r]):Tl(e,t)+`; must be between ${n}-${r}`,Tl=(e,t)=>`Invalid ${e}: ${t}`,El=e=>`Missing ${e}`,Al=e=>`Invalid field ${e}`,Dl=e=>`Duplicate field ${e}`,Cl=e=>"No valid fields: "+e.join(),Ol=(e,t,n)=>Tl(e,t)+"; must be "+Object.keys(n).join(),Nl="Invalid calling context",kl="Forbidden era/eraYear",Hl="Mismatching era/eraYear",Ll="Mismatching year/eraYear",Rl=e=>`Invalid era: ${e}`,Pl=e=>"Missing year"+(e?"/era/eraYear":""),Yl=e=>`Invalid monthCode: ${e}`,jl="Mismatching month/monthCode",Fl="Missing month/monthCode",_l="Cannot guess year",Bl="Invalid leap month",xl="Invalid protocol results",$l="Mismatching Calendars",Ul=e=>`Invalid Calendar: ${e}`,Zl="Mismatching TimeZones",zl="Forbidden ICU TimeZone",Vl="Out-of-bounds offset",Kl="Out-of-bounds TimeZone gap",Jl="Invalid TimeZone offset",Gl="Ambiguous offset",Wl="Out-of-bounds date",ql="Out-of-bounds duration",Xl="Cannot mix duration signs",Ql="Missing relativeTo",ef="Cannot use large units",tf="Required smallestUnit or largestUnit",nf="smallestUnit > largestUnit",rf=e=>`Cannot parse: ${e}`,of=e=>`Invalid substring: ${e}`,af=e=>`Cannot format ${e}`,sf="Cannot specify TimeZone",cf=li(oi,((e,t)=>t)),uf=li(oi,((e,t,n)=>n)),hf=li(gi,2),lf={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},ff=Object.keys(lf),df=864e5,gf=1e3,mf=1e3,yf=1e6,pf=1e9,wf=6e10,vf=36e11,Sf=864e11,bf=[1,mf,yf,pf,wf,vf,Sf],Mf=ff.slice(0,6),If=di(Mf),Tf=["offset"],Ef=["timeZone"],Af=Mf.concat(Tf),Df=Af.concat(Ef),Cf=["era","eraYear"],Of=Cf.concat(["year"]),Nf=["year"],kf=["monthCode"],Hf=["month"].concat(kf),Lf=["day"],Rf=Hf.concat(Nf),Pf=kf.concat(Nf),Yf=Lf.concat(Rf),jf=Lf.concat(Hf),Ff=Lf.concat(kf),_f=uf(Mf,0),Bf="iso8601",xf="gregory",$f="japanese",Uf={[xf]:{bce:-1,ce:0},[$f]:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018},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}},Zf={bc:"bce",ad:"ce"},zf={chinese:13,dangi:13,hebrew:-6},Vf=li(ki,"string"),Kf=li(ki,"boolean"),Jf=li(ki,"number"),Gf=li(ki,"function"),Wf=ff.map((e=>e+"s")),qf=di(Wf),Xf=Wf.slice(0,6),Qf=Wf.slice(6),ed=Qf.slice(1),td=cf(Wf),nd=uf(Wf,0),rd=uf(Xf,0),od=li(hi,Wf),ad=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],id=["isoDay","isoMonth","isoYear"],sd=ad.concat(id),cd=di(id),ud=di(ad),hd=di(sd),ld=uf(ud,0),fd=li(hi,sd),dd=Intl.DateTimeFormat,gd="en-GB",md=1e8,yd=md*df,pd=[md,0],wd=[-md,0],vd=275760,Sd=-271821,bd=1970,Md=1972,Id=12,Td=ls(1868,9,8),Ed=qa(Ms,WeakMap),Ad="smallestUnit",Dd="unit",Cd="roundingIncrement",Od="fractionalSecondDigits",Nd="relativeTo",kd={constrain:0,reject:1},Hd=Object.keys(kd),Ld={compatible:0,reject:1,earlier:2,later:3},Rd={reject:0,use:1,prefer:2,ignore:3},Pd={auto:0,never:1,critical:2,always:3},Yd={auto:0,never:1,critical:2},jd={auto:0,never:1},Fd={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},_d=li(Zs,Ad),Bd=li(Zs,"largestUnit"),xd=li(Zs,Dd),$d=li(zs,"overflow",kd),Ud=li(zs,"disambiguation",Ld),Zd=li(zs,"offset",Rd),zd=li(zs,"calendarName",Pd),Vd=li(zs,"timeZoneName",Yd),Kd=li(zs,"offset",jd),Jd=li(zs,"roundingMode",Fd),Gd="PlainYearMonth",Wd="PlainMonthDay",qd="PlainDate",Xd="PlainDateTime",Qd="PlainTime",eg="ZonedDateTime",tg="Instant",ng="Duration",rg=[Math.floor,e=>Mi(e)?Math.floor(e):Math.round(e),Math.ceil,e=>Mi(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>Mi(e)?Math.trunc(e)||0:Math.round(e),e=>e<0?Math.floor(e):Math.ceil(e),e=>Math.sign(e)*Math.round(Math.abs(e))||0,e=>Mi(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],og="UTC",ag=5184e3,ig=hs(1847),sg=hs((new Date).getUTCFullYear()+10),cg=/0+$/,ug=qa(Zc,WeakMap),hg=2**32-1,lg=qa((e=>{const t=Ku(e);return"object"==typeof t?new dg(t):new fg(t||0)}));class fg{constructor(e){this.R=e}getOffsetNanosecondsFor(){return this.R}getPossibleInstantsFor(e){return[us(e,this.R)]}B(){}}class dg{constructor(e){this.q=(e=>{function t(e){const t=yi(e,a,i),[s,c]=Au(t),u=r(s),h=r(c);return u===h?u:n(o(s,c),u,h,e)}function n(t,n,r,o){let a,i;for(;(void 0===o||void 0===(a=o<t[0]?n:o>=t[1]?r:void 0))&&(i=t[1]-t[0]);){const n=t[0]+Math.floor(i/2);e(n)===r?t[1]=n:t[0]=n+1}return a}const r=qa(e),o=qa(Eu);let a=ig,i=sg;return{J(e){const n=t(e-86400),r=t(e+86400),o=e-n,a=e-r;if(n===r)return[o];const i=t(o);return i===t(a)?[e-i]:n>r?[o,a]:[]},_:t,B(e,t){const s=yi(e,a,i);let[c,u]=Au(s);const h=ag*t,l=t<0?()=>u>a||(a=s,0):()=>c<i||(i=s,0);for(;l();){const a=r(c),i=r(u);if(a!==i){const r=o(c,u);n(r,a,i);const s=r[0];if((mi(s,e)||1)===t)return s}c+=h,u+=h}}}})((e=>t=>{const n=Xi(e,t*gf);return hs(bh(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}getOffsetNanosecondsFor(e){return this.q._(as(e))*pf}getPossibleInstantsFor(e){const[t,n]=[hs((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*yf+r.isoMicrosecond*mf+r.isoNanosecond];var r;return this.q.J(t).map((e=>ns(Ui(Ji(e,pf),n))))}B(e,t){const[n,r]=is(e),o=this.q.B(n+(t>0||r?1:0),t);if(void 0!==o)return Ji(o,pf)}}const gg="([+−-])",mg="(?:[.,](\\d{1,9}))?",yg=`(?:(?:${gg}(\\d{6}))|(\\d{4}))-?(\\d{2})`,pg="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+mg+")?)?",wg=gg+pg,vg=yg+"-?(\\d{2})(?:[T ]"+pg+"(Z|"+wg+")?)?",Sg="\\[(!?)([^\\]]*)\\]",bg=`((?:${Sg}){0,9})`,Mg=$u(yg+bg),Ig=$u("(?:--)?(\\d{2})-?(\\d{2})"+bg),Tg=$u(vg+bg),Eg=$u("T?"+pg+"(?:"+wg+")?"+bg),Ag=$u(wg),Dg=new RegExp(Sg,"g"),Cg=$u(`${gg}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${mg}H)?(?:(\\d+)${mg}M)?(?:(\\d+)${mg}S)?)?`),Og=qa((e=>new dd(gd,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),Ng=/^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/,kg=qa(ph),Hg=qa((e=>new dd(gd,{calendar:e,timeZone:og,era:"short",year:"numeric",month:"short",day:"numeric"}))),Lg=/^M(\d{2})(L?)$/,Rg={era:Pi,eraYear:Fi,year:Fi,month:Bi,monthCode:Pi,day:Bi},Pg=uf(Mf,Fi),Yg=uf(Wf,_i),jg=Object.assign({},Rg,Pg,Yg,{offset:Pi}),Fg=li(ai,Mf,ad),_g={dateAdd(e,t,n){const r=Cs(n);let o,{years:a,months:i,weeks:s,days:c}=t;if(c+=Su(t,5)[0],a||i)o=((e,t,n,r,o)=>{let[a,i,s]=e.v(t);if(n){const[t,r]=e.$(a,i);a+=n,i=Ph(t,r,e.P(a)),i=Ja("month",i,1,e.j(a),o)}return r&&([a,i]=e.G(a,i,r)),s=Ja("day",s,1,e.N(a,i),o),e.p(a,i,s)})(this,e,a,i,r);else{if(!s&&!c)return e;o=ss(e)}return o+=(7*s+c)*df,es(gs(o))},dateUntil(e,t,n){if(n<=7){let r=0,o=dh({...e,...ld},{...t,...ld});return 7===n&&([r,o]=vi(o,7)),{...nd,weeks:r,days:o}}const r=this.v(e),o=this.v(t);let[a,i,s]=((e,t,n,r,o,a,i)=>{let s=o-t,c=a-n,u=i-r;if(s||c){const h=Math.sign(s||c);let l=e.N(o,a),f=0;if(Math.sign(u)===-h){const r=l;[o,a]=e.G(o,a,-h),s=o-t,c=a-n,l=e.N(o,a),f=h<0?-r:l}if(u=i-Math.min(r,l)+f,s){const[r,i]=e.$(t,n),[u,l]=e.$(o,a);if(c=u-r||Number(l)-Number(i),Math.sign(c)===-h){const n=h<0&&-e.j(o);s=(o-=h)-t,c=a-Ph(r,i,e.P(o))+(n||e.j(o))}}}return[s,c,u]})(this,...r,...o);return 8===n&&(i+=this.V(a,r[0]),a=0),{...nd,years:a,months:i,days:s}},dateFromFields(e,t){const n=Cs(t),r=Xh(this,e),o=Qh(this,e,r,n),a=el(this,e,o,r,n);return Ws(es(this.L(r,o,a)),this.id||Bf)},yearMonthFromFields(e,t){const n=Cs(t),r=Xh(this,e),o=Qh(this,e,r,n);return qs(Qi(this.L(r,o,1)),this.id||Bf)},monthDayFromFields(e,t){const n=Cs(t),r=!this.id,{monthCode:o,year:a,month:i}=e;let s,c,u,h,l;if(void 0!==o){[s,c]=Rh(o),l=Ga(e,"day");const t=this.k(s,c,l);if(!t)throw new RangeError(_l);if([u,h]=t,void 0!==i&&i!==h)throw new RangeError(jl);r&&(h=Ja("month",h,1,Id,1),l=Ja("day",l,1,ps(void 0!==a?a:u,h),n))}else{u=void 0===a&&r?Md:Xh(this,e),h=Qh(this,e,u,n),l=el(this,e,h,u,n);const t=this.P(u);c=h===t,s=Yh(h,t);const o=this.k(s,c,l);if(!o)throw new RangeError(_l);[u,h]=o}return Xs(es(this.L(u,h,l)),this.id||Bf)},fields(e){return Fh(this)&&e.includes("year")?[...e,...Cf]:e},mergeFields(e,t){const n=Object.assign(Object.create(null),e);return tl(n,t,Hf),Fh(this)&&(tl(n,t,Of),this.id===$f&&tl(n,t,jf,Cf)),n},inLeapYear(e){const[t]=this.v(e);return this.K(t)},monthsInYear(e){const[t]=this.v(e);return this.j(t)},daysInMonth(e){const[t,n]=this.v(e);return this.N(t,n)},daysInYear(e){const[t]=this.v(e);return this.X(t)},dayOfYear:Lh,era(e){return this.nn(e)[0]},eraYear(e){return this.nn(e)[1]},monthCode(e){const[t,n]=this.v(e),[r,o]=this.$(t,n);return((e,t)=>"M"+hf(e)+(t?"L":""))(r,o)},dayOfWeek:Ss,daysInWeek:()=>7},Bg={dayOfYear:Lh,v:ms,p:ls},xg=Object.assign({},Bg,{weekOfYear:kh,yearOfWeek:Hh,m(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=ws(f+e),r=e||1,o=t(wi(c+n*r,7));return h=(n+(o-u)*r)/7}const r=this.id?1:4,o=Ss(e),a=this.dayOfYear(e),i=wi(o-1,7),s=a-1,c=wi(i-s,7),u=t(c);let h,l=Math.floor((s-u)/7)+1,f=e.isoYear;return l?l>n(0)&&(l=1,f++):(l=n(-1),f--),[l,f,h]}}),$g={dayOfYear:Lh,v:Mh,p:Ih,weekOfYear:kh,yearOfWeek:Hh,m:()=>[]},Ug=cl(Object.assign({},_g,xg,{v:ms,nn(e){return this.id===xf?bs(e):this.id===$f?Ed(e):[]},$:(e,t)=>[t,0],k(e,t){if(!t)return[Md,e]},K:vs,P(){},j:ys,V:e=>e*Id,N:ps,X:ws,L:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),p:ls,G:(e,t,n)=>(e+=Si(n,Id),(t+=bi(n,Id))<1?(e--,t+=Id):t>Id&&(e++,t-=Id),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Object.assign({},_g,$g,{v:Mh,nn(e){const t=this.h(e);return[t.era,t.eraYear]},$(e,t){const n=Th.call(this,e);return[Yh(t,n),n===t]},k(e,t,n){let[r,o,a]=Mh.call(this,{isoYear:Md,isoMonth:Id,isoDay:31});const i=Th.call(this,r),s=o===i;1===(mi(e,Yh(o,i))||mi(Number(t),Number(s))||mi(n,a))&&r--;for(let o=0;o<100;o++){const a=r-o,i=Th.call(this,a),s=Ph(e,t,i);if(t===(s===i)&&n<=Ah.call(this,a,s))return[a,s]}},K(e){const t=Eh.call(this,e);return t>Eh.call(this,e-1)&&t>Eh.call(this,e+1)},P:Th,j:Dh,V(e,t){const n=t+e,r=Math.sign(e),o=r<0?-1:0;let a=0;for(let e=t;e!==n;e+=r)a+=Dh.call(this,e+o);return a},N:Ah,X:Eh,L(e,t,n){return gs(Ih.call(this,e,t,n))},p:Ih,G(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError(Wl);if(n<0)for(;t<1;)t+=Dh.call(this,--e);else{let n;for(;t>(n=Dh.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.h(e).year},month(e){const{year:t,o:n}=this.h(e),{u:r}=this.l(t);return r[n]+1},day(e){return this.h(e).day}})),Zg="numeric",zg=["timeZoneName"],Vg={month:Zg,day:Zg},Kg={year:Zg,month:Zg},Jg=Object.assign({},Kg,{day:Zg}),Gg={hour:Zg,minute:Zg,second:Zg},Wg=Object.assign({},Jg,Gg),qg=Object.assign({},Wg,{timeZoneName:"short"}),Xg=Object.keys(Kg),Qg=Object.keys(Vg),em=Object.keys(Jg),tm=Object.keys(Gg),nm=["dateStyle"],rm=Xg.concat(nm),om=Qg.concat(nm),am=em.concat(nm,["weekday"]),im=tm.concat(["dayPeriod","timeStyle"]),sm=am.concat(im),cm=sm.concat(zg),um=zg.concat(im),hm=zg.concat(am),lm=zg.concat(["day","weekday"],im),fm=zg.concat(["year","weekday"],im),dm={},gm=[ul(sm,Wg),tc],mm=[ul(cm,qg),tc,0,(e,t)=>{const n=rc(e.timeZone);if(t&&rc(t.timeZone)!==n)throw new RangeError(Zl);return n}],ym=[ul(sm,Wg,zg),ss],pm=[ul(am,Jg,um),ss],wm=[ul(im,Gg,hm),e=>rs(e)/yf],vm=[ul(rm,Kg,lm),ss,1],Sm=[ul(om,Vg,fm),ss,1];let bm;function Mm(e,t,n,r,o){function a(){if(!(this instanceof a))throw new TypeError(Nl);py(this,t(...arguments))}function i(e,t){return Object.defineProperties((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.call(this,s(this),...n)}),Xa(t))}function s(t){const n=yy(t);if(!n||n.branding!==e)throw new TypeError(Nl);return n}return Object.defineProperties(a.prototype,{...ei(ri(i,n)),...Qa(ri(i,r)),...ti("Temporal."+e)}),Object.defineProperties(a,{...Qa(o),...Xa(e)}),[a,e=>{const t=Object.create(a.prototype);return py(t,e),t},s]}function Im(e){return e=e.concat("id").sort(),t=>{if(!function(e,t){for(const n of t)if(!(n in e))return 0;return 1}(t,e))throw new TypeError("Invalid protocol");return t}}function Tm(e){if(yy(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function Em(e,t){const n={};for(const r in e)n[r]=(e,n)=>{let{F:o}=e;const a=yy(n)||{},{branding:i}=a,s=i===qd||t.includes(i)?a:xm(n);return o[r](s)};return n}function Am(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return(r=t,"string"==typeof r?Ug(r):(o=r,Object.assign(Object.create(Iy),{C:o})))[n](e);var r,o};return t}function Dm(){throw new TypeError("Cannot use valueOf")}function Cm(e){let{calendar:t}=e;return"string"==typeof t?new bp(t):t}function Om(e,t){if(t=$s(t),Wa(e)){const n=yy(e);if(n&&n.branding===Wd)return Cs(t),n;const r=Km(e);return Zh(up(r||Bf),!r,e,t)}const n=function(e,t){const n=Yu(Vf(t));if(n)return Ou(n),Xs(Ts(n));const r=Cu(t),{calendar:o}=r,a=e(o),[i,s,c]=a.v(r),[u,h]=a.$(i,s),[l,f]=a.k(u,h,c);return Xs(es(a.L(l,f,c)),o)}(Ug,e);return Cs(t),n}function Nm(e,t,n){return Kc(Di(t.call(e,Ry(Ks(n)))))}function km(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ky;const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=li(t[o],e,Gf(e[o]));return r}function Hm(e,t){return"string"==typeof e?lg(e):km(e,t)}function Lm(e){return Hm(e,Hy)}function Rm(e){if(Wa(e)){const t=yy(e);if(t)switch(t.branding){case tg:return t;case eg:return Ks(t.epochNanoseconds)}}return function(e){const t=Ru(e=Pi(e));if(!t)throw new RangeError(rf(e));let n;if(t.O)n=0;else{if(!t.offset)throw new RangeError(rf(e));n=Du(t.offset)}return t.timeZone&&ju(t.timeZone,1),Ks(us(Is(t),n))}(e)}function Pm(e,t,n){const r=t.B(Rm(n).epochNanoseconds,e);return r?Ry(Ks(r)):null}function Ym(e){return Wa(e)?(yy(e)||{}).timeZone||Fy(e):(e=>zu(function(e){const t=Ru(e);return t&&(t.timeZone||t.O&&og||t.offset)||e}(Vf(e))))(e)}function jm(e,t){if(Wa(e)){const n=yy(e)||{};switch(n.branding){case Qd:return Cs(t),n;case Xd:return Cs(t),Qs(n);case eg:return Cs(t),al(Lm,n)}return function(e,t){const n=Cs(t);return Qs(Kh(Vh(e,If,[],1),n))}(e,t)}return Cs(t),function(e){let t,n=(e=>{const t=Eg.exec(e);return t?(Bu(t[10]),_u(t)):void 0})(Vf(e));if(!n){if(n=Ru(e),!n)throw new RangeError(rf(e));if(!n.I)throw new RangeError(rf(e));if(n.O)throw new RangeError(of("Z"));Ou(n)}if((t=Pu(e))&&Es(t))throw new RangeError(rf(e));if((t=Yu(e))&&Es(t))throw new RangeError(rf(e));return Qs(Ds(n,1))}(e)}function Fm(e){return void 0===e?void 0:jm(e)}function _m(e,t){if(t=$s(t),Wa(e)){const n=yy(e);return n&&n.branding===Gd?(Cs(t),n):Uh(sp(Vm(e)),e,t)}const n=function(e,t){const n=Pu(Vf(t));if(n)return Ou(n),qs(Qi(Ts(n)));const r=Cu(t);return qs(ou(e(r.calendar),r))}(Ug,e);return Cs(t),n}function Bm(e,t){if(t=$s(t),Wa(e)){const n=yy(e)||{};switch(n.branding){case Xd:return Cs(t),n;case qd:return Cs(t),Gs({...n,...ld});case eg:return Cs(t),rl(Lm,n)}return function(e,t,n){const r=zh(e,t,Yf,[],Mf),o=Cs(n);return Gs(ts({...e.dateFromFields(r,Us(n,o)),...Kh(r,o)}))}(cp(Vm(e)),e,t)}const n=function(e){const t=Ru(Vf(e));if(!t||t.O)throw new RangeError(rf(e));return Gs(ku(t))}(e);return Cs(t),n}function xm(e,t){if(t=$s(t),Wa(e)){const n=yy(e)||{};switch(n.branding){case qd:return Cs(t),n;case Xd:return Cs(t),Ws(n);case eg:return Cs(t),ol(Lm,n)}return $h(cp(Vm(e)),e,t)}const n=Cu(e);return Cs(t),n}function $m(e,t,n){return Ai(t.call(e,Ky(Ws(n,e))))}function Um(e){return t=>"string"==typeof t?Ug(t):((e,t)=>{const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=li(t[o],e,e[o]);return r})(t,e)}function Zm(e){if(Wa(e)){const t=yy(e);return t&&t.branding===ng?t:function(e){const t=Vh(e,qf);return ec(wu({...nd,...t}))}(e)}return function(e){const t=(e=>{const t=Cg.exec(e);return t?(e=>{function t(e,t,a){let i=0,s=0;if(a&&([i,o]=pi(o,bf[a])),void 0!==e){if(r)throw new RangeError(of(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(of(e));return t})(e),n=1,t&&(o=xu(t)*(bf[a]/pf),r=1)}return i+s}let n=0,r=0,o=0,a={...ni(Wf,[t(e[2]),t(e[3]),t(e[4]),t(e[5]),t(e[6],e[7],5),t(e[8],e[9],4),t(e[10],e[11],3)]),...Ti(o,2,Wf)};if(!n)throw new RangeError(Cl(Wf));return Uu(e[1])<0&&(a=yu(a)),a})(t):void 0})(Vf(e));if(!t)throw new RangeError(rf(e));return ec(wu(t))}(e)}function zm(e){if(void 0!==e){if(Wa(e)){const t=yy(e)||{};switch(t.branding){case eg:case qd:return t;case Xd:return Ws(t)}const n=Vm(e);return{...xh(Ym,Hm,cp(n),e),calendar:n}}return function(e){const t=Ru(Vf(e));if(!t)throw new RangeError(rf(e));if(t.timeZone)return Nu(t,t.offset?Du(t.offset):void 0);if(t.O)throw new RangeError(rf(e));return Hu(t)}(e)}}function Vm(e){return Km(e)||Bf}function Km(e){const{calendar:t}=e;if(void 0!==t)return Jm(t)}function Jm(e){return Wa(e)?(yy(e)||{}).calendar||Mp(e):(e=>Oh(function(e){const t=Ru(e)||Pu(e)||Yu(e);return t?t.calendar:e}(Vf(e))))(e)}function Gm(e,t){if(t=$s(t),Wa(e)){const n=yy(e);if(n&&n.branding===eg)return Os(t),n;const r=Vm(e);return function(e,t,n,r,o,a){const i=zh(n,o,Yf,Ef,Df),s=e(i.timeZone),[c,u,h]=Os(a),l=n.dateFromFields(i,Us(a,c)),f=Kh(i,c);return Js(zc(t(s),{...l,...f},void 0!==i.offset?Du(i.offset):void 0,u,h),s,r)}(Ym,Hm,cp(r),r,e,t)}return function(e,t){const n=Ru(Vf(e));if(!n||!n.timeZone)throw new RangeError(rf(e));const{offset:r}=n,o=r?Du(r):void 0,[,a,i]=Os(t);return Nu(n,o,a,i)}(e,t)}function Wm(e){return ri((e=>t=>e(qm(t))),e)}function qm(e){return ug(e,Lm)}function Xm(){const e=dd.prototype,t=Object.getOwnPropertyDescriptors(e),n=Object.getOwnPropertyDescriptors(dd),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))return new r(e,t);Cp.set(this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new dd(e,t),r=n.resolvedOptions(),o=r.locale,a=ii(Object.keys(t),r),i=qa(ty),s=function(){let e;for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];const c=r.map(((t,n)=>{const r=yy(t),o=(r||{}).branding;if(n&&e&&e!==o)throw new TypeError("Mismatching types for formatting");return e=o,r}));return e?i(e)(o,a,...c):[n,...r]};return s.U=n,s}(e,t))};for(const e in t){const n=t[e],o=e.startsWith("format")&&Qm(e);"function"==typeof n.value?n.value="constructor"===e?r:o||ey(e):o&&(n.get=function(){return o.bind(this)})}return n.prototype.value=Object.create(e,t),Object.defineProperties(r,n),r}function Qm(e){return function(){const t=Cp.get(this),[n,...r]=t(...arguments);return n[e](...r)}}function ey(e){return function(){return Cp.get(this).U[e](...arguments)}}function ty(e){const t=ny[e];if(!t)throw new TypeError(af(e));return hl(t,qa(ll))}const ny={Instant:gm,PlainDateTime:ym,PlainDate:pm,PlainTime:wm,PlainYearMonth:vm,PlainMonthDay:Sm},ry=hl(gm),oy=hl(mm),ay=hl(ym),iy=hl(pm),sy=hl(wm),cy=hl(vm),uy=hl(Sm),hy={era:function(e){if(void 0!==e)return Vf(e)},eraYear:Ei,year:Di,month:Ai,daysInMonth:Ai,daysInYear:Ai,inLeapYear:Kf,monthsInYear:Ai},ly={monthCode:Vf},fy={day:Ai},dy={dayOfWeek:Ai,dayOfYear:Ai,weekOfYear:function(e){if(void 0!==e)return Ai(e)},yearOfWeek:Ei,daysInWeek:Ai},gy=Object.assign({},hy,ly,fy,dy),my=new WeakMap,yy=my.get.bind(my),py=my.set.bind(my),wy={...Em(hy,[Gd]),...Em(dy,[]),...Em(ly,[Gd,Wd]),...Em(fy,[Wd])},vy=Am(gy),Sy=Am({...hy,...ly}),by=Am({...ly,...fy}),My={calendarId:e=>rc(e.calendar)},Iy=ri(((e,t)=>function(n){const{C:r}=this;return e(r[t](Ky(Ws(n,r))))}),gy),Ty=oi((e=>t=>t[e]),Wf.concat("sign")),Ey=oi(((e,t)=>e=>e[ad[t]]),Mf),Ay={epochSeconds:function(e){return as(e.epochNanoseconds)},epochMilliseconds:tc,epochMicroseconds:function(e){return Gi(e.epochNanoseconds,mf)},epochNanoseconds:function(e){return Gi(e.epochNanoseconds)}},Dy=li(si,new Set(["branding"])),[Cy,Oy,Ny]=Mm(Wd,li((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Bf,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Md;const a=Fi(t),i=Fi(n),s=e(r);return Xs(es(Ts({isoYear:Fi(o),isoMonth:a,isoDay:i})),s)}),Jm),{...My,...by},{getISOFields:Dy,getCalendar:Cm,with(e,t,n){return Oy(function(e,t,n,r,o){const a=$s(o);return((e,t,n,r)=>{const o=Jh(e,t,n,Yf);return e.monthDayFromFields(o,r)})(e(t.calendar),n,r,a)}(fp,e,this,Tm(t),n))},equals:(e,t)=>function(e,t){return!qu(e,t)&&oc(e.calendar,t.calendar)}(e,Om(t)),toPlainDate(e,t){return Ky(function(e,t,n,r){return((e,t,n)=>qh(e,t,Ff,Ni(n),Nf))(e(t.calendar),n,r)}(lp,e,this,t))},toLocaleString(e,t,n){const[r,o]=uy(t,n,e);return r.format(o)},toString:Cc,toJSON:e=>Cc(e),valueOf:Dm},{from:(e,t)=>Oy(Om(e,t))}),ky={getOffsetNanosecondsFor:Nm,getPossibleInstantsFor(e,t,n){const r=[...t.call(e,zy(Gs(n,Bf)))].map((e=>Py(e).epochNanoseconds)),o=r.length;return o>1&&(r.sort(zi),Jc(Wi(Zi(r[0],r[o-1])))),r}},Hy={getOffsetNanosecondsFor:Nm},[Ly,Ry,Py]=Mm(tg,(function(e){return Ks(ns(Ki(Yi(e))))}),Ay,{add:(e,t)=>Ry(Gc(0,e,Zm(t))),subtract:(e,t)=>Ry(Gc(1,e,Zm(t))),until:(e,t,n)=>wp(eh(0,e,Rm(t),n)),since:(e,t,n)=>wp(eh(1,e,Rm(t),n)),round:(e,t)=>Ry(function(e,t){const[n,r,o]=Hs(t,5,1);return Ks(yc(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!Ju(e,t)}(e,Rm(t)),toZonedDateTime(e,t){const n=Ni(t);return Tp(nl(e,Ym(n.timeZone),Jm(n.calendar)))},toZonedDateTimeISO:(e,t)=>Tp(nl(e,Ym(t))),toLocaleString(e,t,n){const[r,o]=ry(t,n,e);return r.format(o)},toString:(e,t)=>Ic(Ym,Lm,e,t),toJSON:e=>Ic(Ym,Lm,e),valueOf:Dm},{from:e=>Ry(Rm(e)),fromEpochSeconds:e=>Ry(function(e){return Ks(ns(Ji(e,pf)))}(e)),fromEpochMilliseconds:e=>Ry(function(e){return Ks(ns(Ji(e,yf)))}(e)),fromEpochMicroseconds:e=>Ry(function(e){return Ks(ns(Ki(Yi(e),mf)))}(e)),fromEpochNanoseconds:e=>Ry(function(e){return Ks(ns(Ki(Yi(e))))}(e)),compare:(e,t)=>Ju(Rm(e),Rm(t))}),[Yy,jy]=Mm("TimeZone",(e=>{const t=function(e){return zu(Vf(e))}(e);return{branding:"TimeZone",id:t,F:lg(t)}}),{id:e=>e.id},{getPossibleInstantsFor:(e,t)=>{let{F:n}=e;return n.getPossibleInstantsFor(Bm(t)).map((e=>Ry(Ks(e))))},getOffsetNanosecondsFor:(e,t)=>{let{F:n}=e;return n.getOffsetNanosecondsFor(Rm(t).epochNanoseconds)},getOffsetStringFor(e,t){const n=Rm(t).epochNanoseconds;return Fc(km(this,Hy).getOffsetNanosecondsFor(n))},getPlainDateTimeFor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Bf;const r=Rm(t).epochNanoseconds,o=km(this,Hy).getOffsetNanosecondsFor(r);return zy(Gs(ds(r,o),Jm(n)))},getInstantFor(e,t,n){const r=Bm(t),o=Ns(n),a=km(this);return Ry(Ks(Vc(a,r,o)))},getNextTransition:(e,t)=>{let{F:n}=e;return Pm(1,n,t)},getPreviousTransition:(e,t)=>{let{F:n}=e;return Pm(-1,n,t)},equals(e,t){return!!Qu(this,Ym(t))},toString:e=>e.id,toJSON:e=>e.id},{from(e){const t=Ym(e);return"string"==typeof t?new Yy(t):t}}),Fy=Im(Object.keys(ky)),[_y,By]=Mm(Qd,(function(){return Qs(Ds(ri(Fi,ni(ad,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0])),1))}),Ey,{getISOFields:Dy,with(e,t,n){return By(function(e,t,n){return Qs(((e,t,n)=>{const r=Cs(n);return Kh({...ii(If,e),...Vh(t,If)},r)})(e,t,n))}(this,Tm(t),n))},add:(e,t)=>By(eu(0,e,Zm(t))),subtract:(e,t)=>By(eu(1,e,Zm(t))),until:(e,t,n)=>wp(ih(0,e,jm(t),n)),since:(e,t,n)=>wp(ih(1,e,jm(t),n)),round:(e,t)=>By(function(e,t){const[n,r,o]=Hs(t,5);var a;return Qs((a=o,uc(e,lc(n,r),a)[0]))}(e,t)),equals:(e,t)=>function(e,t){return!Xu(e,t)}(e,jm(t)),toZonedDateTime:(e,t)=>Tp(function(e,t,n,r,o){const a=Ni(o),i=t(a.plainDate),s=e(a.timeZone);return Js(Vc(n(s),{...i,...r}),s,i.calendar)}(Ym,xm,Hm,e,t)),toPlainDateTime:(e,t)=>zy(function(e,t){return Gs(ts({...e,...t}))}(e,xm(t))),toLocaleString(e,t,n){const[r,o]=sy(t,n,e);return r.format(o)},toString:Oc,toJSON:e=>Oc(e),valueOf:Dm},{from:(e,t)=>By(jm(e,t)),compare:(e,t)=>Xu(jm(e),jm(t))}),[xy,$y,Uy]=Mm(Gd,li((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Bf,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const a=Fi(t),i=Fi(n),s=e(r);return qs(Qi(Ts({isoYear:a,isoMonth:i,isoDay:Fi(o)})),s)}),Jm),{...My,...Sy},{getISOFields:Dy,getCalendar:Cm,with(e,t,n){return $y(function(e,t,n,r,o){const a=$s(o);return qs(((e,t,n,r)=>{const o=Jh(e,t,n,Rf);return e.yearMonthFromFields(o,r)})(e(t.calendar),n,r,a))}(hp,e,this,Tm(t),n))},add:(e,t,n)=>$y(Qc(mp,0,e,Zm(t),n)),subtract:(e,t,n)=>$y(Qc(mp,1,e,Zm(t),n)),until:(e,t,n)=>wp(oh(yp,0,e,_m(t),n)),since:(e,t,n)=>wp(oh(yp,1,e,_m(t),n)),equals:(e,t)=>function(e,t){return!qu(e,t)&&oc(e.calendar,t.calendar)}(e,_m(t)),toPlainDate(e,t){return Ky(function(e,t,n,r){return((e,t,n)=>qh(e,t,Pf,Ni(n),Lf))(e(t.calendar),n,r)}(lp,e,this,t))},toLocaleString(e,t,n){const[r,o]=cy(t,n,e);return r.format(o)},toString:Dc,toJSON:e=>Dc(e),valueOf:Dm},{from:(e,t)=>$y(_m(e,t)),compare:(e,t)=>qu(_m(e),_m(t))}),[Zy,zy]=Mm(Xd,li((function(e,t,n,r){let o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:Bf;return Gs(ts(Is(ri(Fi,ni(sd,[t,n,r,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,arguments.length>9&&void 0!==arguments[9]?arguments[9]:0])))),e(o))}),Jm),{...My,...vy,...Ey},{getISOFields:Dy,getCalendar:Cm,with(e,t,n){return zy(function(e,t,n,r,o){const a=$s(o);return Gs(((e,t,n,r)=>{const o=Jh(e,t,n,Yf,Mf),a=Cs(r);return ts({...e.dateFromFields(o,Us(r,a)),...Kh(o,a)})})(e(t.calendar),n,r,a))}(lp,e,this,Tm(t),n))},withCalendar:(e,t)=>zy(il(e,Jm(t))),withPlainDate:(e,t)=>zy(function(e,t){return Gs({...e,...t},sl(e.calendar,t.calendar))}(e,xm(t))),withPlainTime:(e,t)=>zy(function(e){return Gs({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:ld})}(e,Fm(t))),add:(e,t,n)=>zy(qc(dp,0,e,Zm(t),n)),subtract:(e,t,n)=>zy(qc(dp,1,e,Zm(t),n)),until:(e,t,n)=>wp(nh(gp,0,e,Bm(t),n)),since:(e,t,n)=>wp(nh(gp,1,e,Bm(t),n)),round:(e,t)=>zy(function(e,t){return Gs(sc(e,...Hs(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!Wu(e,t)&&oc(e.calendar,t.calendar)}(e,Bm(t)),toZonedDateTime:(e,t,n)=>Tp(function(e,t,n,r){const o=((e,t,n,r)=>{const o=Ns(r);return Vc(e(t),n,o)})(e,n,t,r);return Js(ns(o),n,t.calendar)}(Hm,e,Ym(t),n)),toPlainDate:e=>Ky(Ws(e)),toPlainTime:e=>By(Qs(e)),toPlainYearMonth(e){return $y(function(e,t,n){const r=e(t.calendar);return qs({...t,...Wh(r,n)})}(sp,e,this))},toPlainMonthDay(e){return Oy(function(e,t,n){return Gh(e(t.calendar),n)}(up,e,this))},toLocaleString(e,t,n){const[r,o]=ay(t,n,e);return r.format(o)},toString:Ec,toJSON:e=>Ec(e),valueOf:Dm},{from:(e,t)=>zy(Bm(e,t)),compare:(e,t)=>Wu(Bm(e),Bm(t))}),[Vy,Ky,Jy]=Mm(qd,li((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Bf;return Ws(es(Ts(ri(Fi,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))}),Jm),{...My,...vy},{getISOFields:Dy,getCalendar:Cm,with(e,t,n){return Ky(function(e,t,n,r,o){const a=$s(o);return((e,t,n,r)=>{const o=Jh(e,t,n,Yf);return e.dateFromFields(o,r)})(e(t.calendar),n,r,a)}(lp,e,this,Tm(t),n))},withCalendar:(e,t)=>Ky(il(e,Jm(t))),add:(e,t,n)=>Ky(Xc(dp,0,e,Zm(t),n)),subtract:(e,t,n)=>Ky(Xc(dp,1,e,Zm(t),n)),until:(e,t,n)=>wp(rh(gp,0,e,xm(t),n)),since:(e,t,n)=>wp(rh(gp,1,e,xm(t),n)),equals:(e,t)=>function(e,t){return!qu(e,t)&&oc(e.calendar,t.calendar)}(e,xm(t)),toZonedDateTime(e,t){const n=!Wa(t)||t instanceof Yy?{timeZone:t}:t;return Tp(function(e,t,n,r,o){const a=e(o.timeZone),i=o.plainTime,s=void 0!==i?t(i):ld;return Js(Vc(n(a),{...r,...s}),a,r.calendar)}(Ym,jm,Hm,e,n))},toPlainDateTime:(e,t)=>zy(function(e){return Gs(ts({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:ld}))}(e,Fm(t))),toPlainYearMonth(e){return $y(function(e,t,n){return Wh(e(t.calendar),n)}(sp,e,this))},toPlainMonthDay(e){return Oy(function(e,t,n){return Gh(e(t.calendar),n)}(up,e,this))},toLocaleString(e,t,n){const[r,o]=iy(t,n,e);return r.format(o)},toString:Ac,toJSON:e=>Ac(e),valueOf:Dm},{from:(e,t)=>Ky(xm(e,t)),compare:(e,t)=>qu(xm(e),xm(t))}),Gy={fields:(e,t,n)=>[...t.call(e,n)]},Wy=Object.assign({dateFromFields:(e,t,n,r)=>Jy(t.call(e,Object.assign(Object.create(null),n),r))},Gy),qy=Object.assign({yearMonthFromFields:(e,t,n,r)=>Uy(t.call(e,Object.assign(Object.create(null),n),r))},Gy),Xy=Object.assign({monthDayFromFields:(e,t,n,r)=>Ny(t.call(e,Object.assign(Object.create(null),n),r))},Gy),Qy={mergeFields:(e,t,n,r)=>Ni(t.call(e,Object.assign(Object.create(null),n),Object.assign(Object.create(null),r)))},ep=Object.assign({},Wy,Qy),tp=Object.assign({},qy,Qy),np=Object.assign({},Xy,Qy),rp={dateAdd:(e,t,n,r,o)=>Jy(t.call(e,Ky(Ws(n,e)),wp(ec(r)),o))},op=Object.assign({},rp,{dateUntil:(e,t,n,r,o,a)=>vp(t.call(e,Ky(Ws(n,e)),Ky(Ws(r,e)),Object.assign(Object.create(null),a,{largestUnit:ff[o]})))}),ap=Object.assign({},rp,{day:$m}),ip=Object.assign({},op,{day:$m}),sp=Um(qy),cp=Um(Wy),up=Um(Xy),hp=Um(tp),lp=Um(ep),fp=Um(np),dp=Um(rp),gp=Um(op),mp=Um(ap),yp=Um(ip),[pp,wp,vp]=Mm(ng,(function(){return ec(wu(ri(_i,ni(Wf,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,arguments.length>9&&void 0!==arguments[9]?arguments[9]:0]))))}),{...Ty,blank:function(e){return!e.sign}},{with:(e,t)=>wp(function(e,t){return ec((n=e,r=t,wu({...n,...Vh(r,qf)})));var n,r}(e,t)),negated:e=>wp(mu(e)),abs:e=>wp(function(e){return-1===e.sign?mu(e):e}(e)),add:(e,t,n)=>wp(gu(zm,gp,Hm,0,e,Zm(t),n)),subtract:(e,t,n)=>wp(gu(zm,gp,Hm,1,e,Zm(t),n)),round:(e,t)=>wp(function(e,t,n,r,o){const a=Tu(r),[i,s,c,u,h]=((e,t,n)=>{e=xs(e,Ad);let r=Bd(e);const o=n(e[Nd]);let a=js(e);const i=Jd(e,7);let s=_d(e);if(void 0===r&&void 0===s)throw new RangeError(tf);return null==s&&(s=0),null==r&&(r=Math.max(s,t)),Vs(r,s),a=Fs(a,s,1),[r,s,a,i,o]})(o,a,e);if(fu(Math.max(a,i),h))return ec(wu(((e,t,n,r,o)=>{const a=yc(Su(e),n,r,o);return{...nd,...bu(a,t)}})(r,i,s,c,u)));if(!h)throw new RangeError(Ql);const[l,f,d]=su(t,n,h),g=cu(d),m=uu(f,d),y=hu(f,d);let p=0;r.weeks&&7===s&&(p=r.weeks,r={...r,weeks:0});let[w,v]=du(r,i,l,g,m,y);const S=r.sign,b=pu(w);if(S&&b&&S!==b)throw new RangeError(xl);return b&&(w=mc(w,v,i,s,c,u,l,g,m)),w.weeks+=p,ec(w)}(zm,gp,Hm,e,t)),total:(e,t)=>function(e,t,n,r,o){const a=Tu(r),[i,s]=((e,t)=>{const n=t((e=xs(e,Dd))[Nd]);let r=xd(e);return r=Oi(Dd,r),[r,n]})(o,e);if(fu(Math.max(i,a),s))return((e,t)=>Wi(Su(e),bf[t],1))(r,i);if(!s)throw new RangeError(Ql);const[c,u,h]=su(t,n,s),l=cu(h),f=uu(u,h);return((e,t,n,r,o,a)=>{const i=pu(e),[s,c]=ac(od(n,e),n,i,r,o,a),u=ic(t,s,c);return e[Wf[n]]+u*i})(...du(r,i,c,l,f,hu(u,h)),i,c,l,f)}(zm,gp,Hm,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):Nc(e)},toString:Nc,toJSON:e=>Nc(e),valueOf:Dm},{from:e=>wp(Zm(e)),compare:(e,t,n)=>function(e,t,n,r,o,a){const i=e(Bs(a).relativeTo),s=Math.max(Tu(r),Tu(o));if(ui(Wf,r,o))return 0;if(fu(s,i))return zi(Su(r),Su(o));if(!i)throw new RangeError(Ql);const[c,u,h]=su(t,n,i),l=cu(h),f=uu(u,h);return zi(l(f(c,r)),l(f(c,o)))}(zm,dp,Hm,Zm(e),Zm(t),n)}),Sp={toString:e=>e.id,toJSON:e=>e.id,...wy,dateAdd:(e,t,n,r)=>{let{id:o,F:a}=e;return Ky(Ws(a.dateAdd(xm(t),Zm(n),r),o))},dateUntil:(e,t,n,r)=>{let{F:o}=e;return wp(ec(o.dateUntil(xm(t),xm(n),function(e){return e=Bs(e),Bd(e,9,6,1)}(r))))},dateFromFields:(e,t,n)=>{let{id:r,F:o}=e;return Ky($h(o,t,n,function(e){return e===Bf?["year","day"]:[]}(r)))},yearMonthFromFields:(e,t,n)=>{let{id:r,F:o}=e;return $y(Uh(o,t,n,function(e){return e===Bf?Nf:[]}(r)))},monthDayFromFields:(e,t,n)=>{let{id:r,F:o}=e;return Oy(Zh(o,0,t,n,function(e){return e===Bf?Lf:[]}(r)))},fields(e,t){let{F:n}=e;const r=new Set(Yf),o=[];for(const e of t){if(Vf(e),!r.has(e))throw new RangeError(Al(e));r.delete(e),o.push(e)}return n.fields(o)},mergeFields:(e,t,n)=>{let{F:r}=e;return r.mergeFields(ci(Ci(t)),ci(Ci(n)))}},[bp]=Mm("Calendar",(e=>{const t=function(e){return Oh(Vf(e))}(e);return{branding:"Calendar",id:t,F:Ug(t)}}),{id:e=>e.id},Sp,{from(e){const t=Jm(e);return"string"==typeof t?new bp(t):t}}),Mp=Im(Object.keys(Sp).slice(4)),[Ip,Tp]=Mm(eg,li((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Bf;return Js(ns(Ki(Yi(n))),t(r),e(o))}),Jm,Ym),{...Ay,...My,...Wm(vy),...Wm(Ey),offset:e=>Fc(qm(e).offsetNanoseconds),offsetNanoseconds:e=>qm(e).offsetNanoseconds,timeZoneId:e=>rc(e.timeZone),hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=ug(t,n),[o,a]=fc(r),i=Wi(Zi(Vc(n,o),Vc(n,a)),vf,1);if(i<=0)throw new RangeError(xl);return i}(Hm,e)},{getISOFields:e=>function(e,t){const n=ug(t,e);return{calendar:t.calendar,...ii(hd,n),offset:Fc(n.offsetNanoseconds),timeZone:t.timeZone}}(Lm,e),getCalendar:Cm,getTimeZone:e=>{let{timeZone:t}=e;return"string"==typeof t?new Yy(t):t},with(e,t,n){return Tp(function(e,t,n,r,o,a){const i=$s(a),{calendar:s,timeZone:c}=n;return Js(((e,t,n,r,o)=>{const a=Jh(e,n,r,Yf,Af,Tf),[i,s,c]=Os(o,2);return zc(t,{...e.dateFromFields(a,Us(o,i)),...Kh(a,i)},Du(a.offset),s,c)})(e(s),t(c),r,o,i),c,s)}(lp,Hm,e,this,Tm(t),n))},withCalendar:(e,t)=>Tp(il(e,Jm(t))),withTimeZone:(e,t)=>Tp(function(e,t){return{...e,timeZone:t}}(e,Ym(t))),withPlainDate:(e,t)=>Tp(function(e,t,n){const r=t.timeZone,o=e(r),a={...ug(t,o),...n},i=sl(t.calendar,n.calendar);return Js(zc(o,a,a.offsetNanoseconds,2),r,i)}(Hm,e,xm(t))),withPlainTime:(e,t)=>Tp(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ld;const r=t.timeZone,o=e(r),a={...ug(t,o),...n};return Js(zc(o,a,a.offsetNanoseconds,2),r,t.calendar)}(Hm,e,Fm(t))),add:(e,t,n)=>Tp(Wc(dp,Hm,0,e,Zm(t),n)),subtract:(e,t,n)=>Tp(Wc(dp,Hm,1,e,Zm(t),n)),until:(e,t,n)=>wp(ec(th(gp,Hm,0,e,Gm(t),n))),since:(e,t,n)=>wp(ec(th(gp,Hm,1,e,Gm(t),n))),round:(e,t)=>Tp(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:a}=t;const[i,s,c]=Hs(n);if(0===i&&1===s)return t;const u=e(o);if(6===i)r=((e,t,n,r)=>{const o=ug(n,t),[a,i]=e(o),s=n.epochNanoseconds,c=Vc(t,a),u=Vc(t,i);if(Vi(s,c,u))throw new RangeError(xl);return vc(ic(s,c,u),r)?u:c})(fc,u,t,c);else{const e=u.getOffsetNanosecondsFor(r);r=zc(u,sc(ds(r,e),i,s,c),e,2,0,1)}return Js(r,o,a)}(Hm,e,t)),startOfDay:e=>Tp(function(e,t){const{timeZone:n,calendar:r}=t,o=((e,t,n)=>Vc(t,e(ug(n,t))))(dc,e(n),t);return Js(o,n,r)}(Hm,e)),equals:(e,t)=>function(e,t){return!Gu(e,t)&&!!Qu(e.timeZone,t.timeZone)&&oc(e.calendar,t.calendar)}(e,Gm(t)),toInstant:e=>Ry(function(e){return Ks(e.epochNanoseconds)}(e)),toPlainDateTime:e=>zy(rl(Lm,e)),toPlainDate:e=>Ky(ol(Lm,e)),toPlainTime:e=>By(al(Lm,e)),toPlainYearMonth(e){return $y(function(e,t,n){return Wh(e(t.calendar),n)}(sp,e,this))},toPlainMonthDay(e){return Oy(function(e,t,n){return Gh(e(t.calendar),n)}(up,e,this))},toLocaleString(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o]=oy(t,n,e);return r.format(o)},toString:(e,t)=>Tc(Lm,e,t),toJSON:e=>Tc(Lm,e),valueOf:Dm},{from:(e,t)=>Tp(Gm(e,t)),compare:(e,t)=>Gu(Gm(e),Gm(t))}),Ep=Object.defineProperties({},{...ti("Temporal.Now"),...Qa({timeZoneId:()=>ml(),instant:()=>Ry(Ks(gl())),zonedDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ml();return Tp(Js(gl(),Ym(t),Jm(e)))},zonedDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ml();return Tp(Js(gl(),Ym(e),Bf))},plainDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ml();return zy(Gs(dl(Lm(Ym(t))),Jm(e)))},plainDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ml();return zy(Gs(dl(Lm(Ym(e))),Bf))},plainDate:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ml();return Ky(Ws(dl(Lm(Ym(t))),Jm(e)))},plainDateISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ml();return Ky(Ws(dl(Lm(Ym(e))),Bf))},plainTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ml();return By(Qs(dl(Lm(Ym(e)))))}})}),Ap=Object.defineProperties({},{...ti("Temporal"),...Qa({PlainYearMonth:xy,PlainMonthDay:Cy,PlainDate:Vy,PlainTime:_y,PlainDateTime:Zy,ZonedDateTime:Ip,Instant:Ly,Calendar:bp,TimeZone:Yy,Duration:pp,Now:Ep})}),Dp=Xm(),Cp=new WeakMap;function Op(e){return e*Math.PI/180}function Np(e){return 180*e/Math.PI}Object.create(Intl),Qa({DateTimeFormat:Dp});class kp{constructor(e,t,n,r,o){this.locationName=null,this.setLocationName(e),this.setLatitude(t),this.setLongitude(n),this.setElevation(r),this.setTimeZone(o)}getElevation(){return this.elevation}setElevation(e){if("number"!=typeof e)throw new TypeError("Invalid elevation");if(e<0)throw new RangeError(`elevation ${e} must be zero or positive`);this.elevation=e}setLatitude(e){if("number"!=typeof e)throw new TypeError("Invalid latitude");if(e<-90||e>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);this.latitude=e}getLatitude(){return this.latitude}setLongitude(e){if("number"!=typeof e)throw new TypeError("Invalid longitude");if(e<-180||e>180)throw new RangeError(`Longitude ${e} out of range [-180,180]`);this.longitude=e}getLongitude(){return this.longitude}getLocationName(){return this.locationName}setLocationName(e){this.locationName=e}getTimeZone(){return this.timeZoneId}setTimeZone(e){this.timeZoneId=e}}const Hp=6356.9;class Lp{constructor(e,t){this.date=t,this.geoLocation=e}getSunrise(){const e=this.getUTCSunrise0(Lp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(Lp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(Lp.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(Lp.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(Lp.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(Lp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(Lp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(Lp.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(Lp.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(Lp.ASTRONOMICAL_ZENITH)}static getTimeOffset(e,t){return null===e||isNaN(t)?null:e.add({milliseconds:t})}getSunriseOffsetByDegrees(e){const t=this.getUTCSunrise0(e);return isNaN(t)?null:this.getDateFromTime(t,!0)}getSunsetOffsetByDegrees(e){const t=this.getUTCSunset0(e);return isNaN(t)?null:this.getDateFromTime(t,!1)}getUTCSunrise0(e){return this.getUTCSunrise(this.getAdjustedDate(),this.geoLocation,e,!0)}getUTCSeaLevelSunrise(e){return this.getUTCSunrise(this.getAdjustedDate(),this.geoLocation,e,!1)}getUTCSunset0(e){return this.getUTCSunset(this.getAdjustedDate(),this.geoLocation,e,!0)}getUTCSeaLevelSunset(e){return this.getUTCSunset(this.getAdjustedDate(),this.geoLocation,e,!1)}getAdjustedDate(){return this.date}getElevationAdjustment(e){return Np(Math.acos(Hp/(Hp+e/1e3)))}adjustZenith(e,t){let n=e;return e===Lp.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}getUTCSunrise(e,t,n,r){const o=r?t.getElevation():0,a=this.adjustZenith(n,o);let i=Lp.getSunriseUTC(Lp.getJulianDay(e),t.getLatitude(),-t.getLongitude(),a);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getUTCSunset(e,t,n,r){const o=r?t.getElevation():0,a=this.adjustZenith(n,o);let i=Lp.getSunsetUTC(Lp.getJulianDay(e),t.getLatitude(),-t.getLongitude(),a);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}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 Lp.getTimeOffset(e,6*n)}getDateFromTime(e,t){if(isNaN(e))return null;let n=e,r=this.getAdjustedDate();const o=Math.trunc(n);n-=o;const a=Math.trunc(n*=60);n-=a;const i=Math.trunc(n*=60);n-=i;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 Ap.PlainTime(o,a,i,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),a=Math.trunc(2-o+o/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+a-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-Lp.JULIAN_DAY_JAN_1_2000)/Lp.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*Lp.JULIAN_DAYS_PER_CENTURY+Lp.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=Op(Lp.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 Lp.getSunGeometricMeanLongitude(e)+Lp.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return Lp.getSunTrueLongitude(e)-.00569-.00478*Math.sin(Op(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 Lp.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(Op(t))}static getSunDeclination(e){const t=Lp.getObliquityCorrection(e),n=Lp.getSunApparentLongitude(e),r=Math.sin(Op(t))*Math.sin(Op(n));return Np(Math.asin(r))}static getEquationOfTime(e){const t=Lp.getObliquityCorrection(e),n=Lp.getSunGeometricMeanLongitude(e),r=Lp.getEarthOrbitEccentricity(e),o=Lp.getSunGeometricMeanAnomaly(e);let a=Math.tan(Op(t)/2);a*=a;const i=Math.sin(2*Op(n)),s=Math.sin(Op(o));return 4*Np(a*i-2*r*s+4*r*a*s*Math.cos(2*Op(n))-.5*a*a*Math.sin(4*Op(n))-1.25*r*r*Math.sin(2*Op(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=Op(e),o=Op(t);return Math.acos(Math.cos(Op(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=Op(e),o=Op(t);return-Math.acos(Math.cos(Op(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=Lp.getJulianDay(e.toPlainDate()),o=Lp.getJulianCenturiesFromJulianDay(r),a=Lp.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=Op(n-i),c=Op(Lp.getSunDeclination(o)),u=Op(t);return Np(Math.asin(Math.sin(u)*Math.sin(c)+Math.cos(u)*Math.cos(c)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=Lp.getJulianDay(e.toPlainDate()),o=Lp.getJulianCenturiesFromJulianDay(r),a=Lp.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=Op(n-i),c=Op(Lp.getSunDeclination(o)),u=Op(t);return Np(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(u)-Math.tan(c)*Math.cos(u))))+180}static getSunriseUTC(e,t,n,r){const o=Lp.getJulianCenturiesFromJulianDay(e),a=Lp.getSolarNoonUTC(o,n),i=Lp.getJulianCenturiesFromJulianDay(e+a/1440);let s=Lp.getEquationOfTime(i),c=Lp.getSunDeclination(i),u=Lp.getSunHourAngleAtSunrise(t,c,r),h=n-Np(u),l=4*h,f=720+l-s;const d=Lp.getJulianCenturiesFromJulianDay(Lp.getJulianDayFromJulianCenturies(o)+f/1440);return s=Lp.getEquationOfTime(d),c=Lp.getSunDeclination(d),u=Lp.getSunHourAngleAtSunrise(t,c,r),h=n-Np(u),l=4*h,f=720+l-s,f}static getSolarNoonUTC(e,t){const n=Lp.getJulianCenturiesFromJulianDay(Lp.getJulianDayFromJulianCenturies(e)+t/360);let r=Lp.getEquationOfTime(n);const o=720+4*t-r,a=Lp.getJulianCenturiesFromJulianDay(Lp.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=Lp.getEquationOfTime(a),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=Lp.getJulianCenturiesFromJulianDay(e),a=Lp.getSolarNoonUTC(o,n),i=Lp.getJulianCenturiesFromJulianDay(e+a/1440);let s=Lp.getEquationOfTime(i),c=Lp.getSunDeclination(i),u=Lp.getSunHourAngleAtSunset(t,c,r),h=n-Np(u),l=4*h,f=720+l-s;const d=Lp.getJulianCenturiesFromJulianDay(Lp.getJulianDayFromJulianCenturies(o)+f/1440);return s=Lp.getEquationOfTime(d),c=Lp.getSunDeclination(d),u=Lp.getSunHourAngleAtSunset(t,c,r),h=n-Np(u),l=4*h,f=720+l-s,f}}Lp.GEOMETRIC_ZENITH=90,Lp.CIVIL_ZENITH=96,Lp.NAUTICAL_ZENITH=102,Lp.ASTRONOMICAL_ZENITH=108,Lp.JULIAN_DAY_JAN_1_2000=2451545,Lp.JULIAN_DAYS_PER_CENTURY=36525;const Rp=[["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]],Pp=new Map,Yp={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"},jp=new Map;class Fp extends kp{constructor(e,t,n,r,o,a,i,s){const c="number"==typeof e?e:parseFloat(e);if(isNaN(c)||c<-90||c>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const u="number"==typeof t?t:parseFloat(t);if(isNaN(u)||u<-180||u>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o,c,u,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=a,this.geoid=i}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=jp.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return jp.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return Pp.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 Yp[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":Yp[t]}static addLocation(e,t){const n=e.toLowerCase();return!Pp.has(n)&&(Pp.set(n,t),!0)}}for(const e of Rp){const t=new Fp(e[2],e[3],"IL"==e[1],e[4],e[0],e[1],void 0,e[5]);Fp.addLocation(t.getName(),t)}const _p=new Map;const Bp=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function xp(e,t){const n=function(e){const t=_p.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 _p.set(e,n),n}(e).format(t),r=Bp.exec(n);let o=r[4];return"24"==o&&(o="00"),r[3]=$p(r[3]),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function $p(e){return e<0?"-00"+$p(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function Up(e){return e<10?"0"+e:String(e)}function Zp(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}Object.defineProperties(globalThis,Qa({Temporal:Ap})),Object.defineProperties(Intl,Qa({DateTimeFormat:Dp})),Object.defineProperties(Date.prototype,Qa({toTemporalInstant:function(){return Ry(Ks(Ji(this.valueOf(),yf)))}}));class zp{constructor(t,n,r){const o=e.greg.isDate(n)?n:we.isHDate(n)?n.greg():le(`invalid date: ${n}`);this.date=o,this.gloc=t;const a=Temporal.PlainDate.from({year:o.getFullYear(),month:o.getMonth()+1,day:o.getDate()});this.noaa=new Lp(t,a),this.useElevation=Boolean(r)}timeAtAngle(e,t){const n=90+e;return Zp(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return Zp(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return Zp(this.noaa.getSeaLevelSunrise())}sunset(){return Zp(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return Zp(this.noaa.getSeaLevelSunset())}dawn(){return Zp(this.noaa.getBeginCivilTwilight())}dusk(){return Zp(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new zp(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise()-this.gregEve())/12}chatzot(){return Zp(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 Zp(Lp.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}getTemporalHour72(){const e=this.sunriseOffset(-72,!1,!0);return[e,(this.sunsetOffset(72,!1,!0)-e)/12]}getTemporalHour16Point1(){const e=this.alotHaShachar();return[e,(this.tzeit(16.1)-e)/12]}sofZmanShmaMGA(){const[e,t]=this.getTemporalHour72();return new Date(e.getTime()+3*t)}sofZmanShmaMGA16Point1(){const[e,t]=this.getTemporalHour16Point1();return new Date(e.getTime()+3*t)}sofZmanTfillaMGA(){const[e,t]=this.getTemporalHour72();return new Date(e.getTime()+4*t)}sofZmanTfillaMGA16Point1(){const[e,t]=this.getTemporalHour16Point1();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()}beinHaShmashos(){const e=this.tzeit(7.083),t=e.getTime();return isNaN(t)?e:new Date(t-81e4)}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=xp("UTC",t),r=xp(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?"+":"-")+Up(Math.floor(r/60))+":"+Up(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?null:xp(e,t).substring(0,19)+zp.timeZoneOffset(e,t)}sunriseOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunrise():this.sunrise();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}sunsetOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunset():this.sunset();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}}const Vp={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 Kp(e,t,n){var r;if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const o=(null==n||null===(r=n.location)||void 0===r?void 0:r.cc)||(null!=n&&n.il?"IL":"US"),a=null==n?void 0:n.hour12;if(void 0!==a&&!a)return e;if(!a&&void 0===Vp[o])return e;const i=e.split(":");let s=parseInt(i[0],10);return s<12&&t?(t=t.replace("p","a").replace("P","A"),0===s&&(s=12)):s>12?s%=12:0===s&&(s="00"),`${s}:${i[1]}${t}`}function Jp(e,t,n,r,o){let a=!1,i=o,s=e?e.getFlags():Me.LIGHT_CANDLES;void 0!==e?r||(s&(Me.LIGHT_CANDLES_TZEIS|Me.CHANUKAH_CANDLES)?i=!0:s&Me.YOM_TOV_ENDS&&(a=!0,i=!0)):o&&(a=!0,s=Me.LIGHT_CANDLES_TZEIS);const c=i?n.havdalahMins:n.candleLightingMins,u=n.location,h=new zp(u,t,n.useElevation),l=c?h.sunsetOffset(c,!0):h.tzeit(n.havdalahDeg);return isNaN(l.getTime())?null:a?new Wp(t,s,l,u,n.havdalahMins,e,n):new qp(t,s,l,u,e,n)}class Gp extends Te{constructor(e,t,n,r,o,a,i){super(e,t,n),this.eventTime=zp.roundTime(r),this.location=o;const s=o.getTimeFormatter();this.eventTimeStr=zp.formatTime(this.eventTime,s);const c=Object.assign({location:o},i);this.fmtTime=Kp(this.eventTimeStr,"pm",c),void 0!==a&&(this.linkedEvent=a)}render(e){return he.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return he.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 Wp extends Gp{constructor(e,t,n,r,o,a,i){super(e,"Havdalah",t,n,r,a,i),o&&(this.havdalahMins=o)}render(e){return this.renderBrief(e)+": "+this.fmtTime}renderBrief(e){let t=he.gettext(this.getDesc(),e);if(this.havdalahMins){const n=he.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}class qp extends Gp{constructor(e,t,n,r,o,a){super(e,"Candle lighting",t,n,r,o,a)}getEmoji(){return"🕯️"}}function Xp(e,t,n,r,o){if(isNaN(t.getTime()))return null;const a=o.location;return new Gp(e,n,r.getFlags(),t,a,r,o)}const Qp=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ew=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],tw="בַּלַּ֥יְלָה";class nw{constructor(e,t){let n=t-7;n<0&&(n+=we.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),a=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,i=(o%1080+a%24*1080)%1080,s=(1+29*r+Math.floor(a/24))%7;this.year=e,this.month=t,this.dow=s,this.hour=a%24,this.minutes=Math.floor(i/18),this.chalakim=i%18}getYear(){return this.year}getMonth(){return this.month}getMonthName(){return we.getMonthName(this.month,this.year)}getDow(){return this.dow}getHour(){return this.hour}getMinutes(){return this.minutes}getChalakim(){return this.chalakim}render(e,t){"string"==typeof(e=e||he.getLocaleName())&&(e=e.toLowerCase());const n="he"===e||"he-x-nonikud"===e||"h"===e,r=he.gettext(this.getMonthName(),e),o=(n?ew:Qp)[this.getDow()],a=this.getMinutes(),i=this.getHour(),s=this.getChalakim(),c=he.gettext("Molad",e),u=he.lookupTranslation("min",e)||"minutes",h=he.gettext("chalakim",e);if(n){const t=`${c} ${r} יִהְיֶה בַּיּוֹם ${o} בשָׁבוּעַ, בְּשָׁעָה ${i} ${i<5?tw:i<12?"בַּבֹּקֶר":i<17?"בַּצׇּהֳרַיִים":i<21?"בָּעֶרֶב":tw}, ו-${a} ${u} ו-${s} ${h}`;return"he-x-nonikud"===e?he.hebrewStripNikkud(t):t}const l=Kp(`${i}:00`,"pm",t);return`${c} ${r.replace(/'/g,"’")}: ${o}, ${a} ${u} and ${s} ${h} after ${l}`}}class rw extends Te{constructor(e,t,n,r){const o=new nw(t,n);super(e,`Molad ${o.getMonthName()} ${t}`,Me.MOLAD),this.molad=o,this.options=r}render(e){return this.molad.render(e,this.options)}}class ow extends Te{constructor(e,t){if(super(e,`Omer ${t}`,Me.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";return"he"!==e&&"translit"!==e&&(e="en"),function(e,t){J(e);const[n,r]=G(e),o=K[t],a=o.words[n];return(o.words[r]+" "+(2===n||6===n?o.infix26:o.infix)+a).normalize()}(this.omer,e)}render(e){e=e||he.getLocaleName();const t=this.omer;return("he"==e?z(t):he.ordinal(t,e))+" "+he.gettext("day of the Omer",e)}renderBrief(e){return he.gettext("Omer",e)+" "+he.gettext("day",e)+" "+this.omer}getEmoji(){return"string"==typeof this.emoji?this.emoji:(J(e=this.omer),e<=20?String.fromCodePoint(9312+e-1):e<=35?String.fromCodePoint(12881+e-21):String.fromCodePoint(12977+e-36));var e}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){if("string"==typeof(e=e||he.getLocaleName())&&(e=e.toLowerCase()),"he"===e)return W(this.omer,"he");if("he-x-nonikud"===e){const e=W(this.omer,"he");return he.hebrewStripNikkud(e)}return W(this.omer,"en")}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}class aw extends Map{#e=0;#t=new Map;#n=new Map;#r;#o;#a;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.#r=e.maxSize,this.#o=e.maxAge||Number.POSITIVE_INFINITY,this.#a=e.onEviction}get __oldCache(){return this.#n}#i(e){if("function"==typeof this.#a)for(const[t,n]of e)this.#a(t,n.value)}#s(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.#a&&this.#a(e,t.value),this.delete(e))}#c(e,t){if(!1===this.#s(e,t))return t.value}#u(e,t){return t.expiry?this.#c(e,t):t.value}#h(e,t){const n=t.get(e);return this.#u(e,n)}#l(e,t){this.#t.set(e,t),this.#e++,this.#e>=this.#r&&(this.#e=0,this.#i(this.#n),this.#n=this.#t,this.#t=new Map)}#f(e,t){this.#n.delete(e),this.#l(e,t)}*#d(){for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield e)}}for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield e)}}get(e){if(this.#t.has(e)){const t=this.#t.get(e);return this.#u(e,t)}if(this.#n.has(e)){const t=this.#n.get(e);if(!1===this.#s(e,t))return this.#f(e,t),t.value}}set(e,t){let{maxAge:n=this.#o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.#t.has(e)?this.#t.set(e,{value:t,expiry:r}):this.#l(e,{value:t,expiry:r}),this}has(e){return this.#t.has(e)?!this.#s(e,this.#t.get(e)):!!this.#n.has(e)&&!this.#s(e,this.#n.get(e))}peek(e){return this.#t.has(e)?this.#h(e,this.#t):this.#n.has(e)?this.#h(e,this.#n):void 0}delete(e){const t=this.#t.delete(e);return t&&this.#e--,this.#n.delete(e)||t}clear(){this.#t.clear(),this.#n.clear(),this.#e=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this.#d()],n=t.length-e;n<0?(this.#t=new Map(t),this.#n=new Map,this.#e=t.length):(n>0&&this.#i(t.slice(0,n)),this.#n=new Map(t.slice(n)),this.#t=new Map,this.#e=0),this.#r=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield[t,n.value])}for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.#t];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;!1===this.#s(r,o)&&(yield[r,o.value])}e=[...this.#n];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;if(!this.#t.has(r)){!1===this.#s(r,o)&&(yield[r,o.value])}}}*entriesAscending(){for(const[e,t]of this.#d())yield[e,t.value]}get size(){if(!this.#e)return this.#n.size;let e=0;for(const t of this.#n.keys())this.#t.has(t)||e++;return Math.min(this.#e+e,this.#r)}get maxSize(){return this.#r}entries(){return this.entriesAscending()}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}class iw{constructor(e,t){e=+e;const n=we.longCheshvan(e),r=we.shortKislev(e),o=this.type=n&&!r?2:!n&&r?0:1;this.year=e;const a=new we(1,m.TISHREI,e),i=a.abs(),s=this.roshHashanaDay=a.getDay()+1;this.firstSaturday=we.dayOnOrBefore(6,i+6);const c=this.leap=+we.isLeapYear(e);this.il=Boolean(t);const u=`${c}${s}${o}`;if(Iw[u])this.key=u,this.theSedraArray=Iw[u];else{const e=this.key=u+ +this.il;this.theSedraArray=Iw[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||he.getLocaleName();let o=he.gettext(n[0],r);if(2==n.length){o+=("he"==r?"־":"-")+he.gettext(n[1],r)}return o=o.replace(/'/g,"’"),he.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 we(this.firstSaturday+7*t)}if("string"==typeof e){const t=cw.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 we(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=cw.get(t);if(cw.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:we.isHDate(e)?e.abs():function(e){throw new TypeError(e)}(`Bad date argument: ${e}`),n=we.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return Ew(this.year+1,this.il).lookup(n)}if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[sw[o]],chag:!1,num:o+1};const a=uw(o);return{parsha:[sw[a],sw[a+1]],chag:!1,num:[a+1,a+2]}}}const sw=["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"],cw=new Map;for(let e=0;e<sw.length;e++){const t=sw[e];cw.set(t,e)}function uw(e){return-e}const hw="Rosh Hashana",lw="Yom Kippur",fw="Sukkot",dw="Sukkot Shabbat Chol ha-Moed",gw="Shmini Atzeret",mw=dw,yw="Pesach",pw="Pesach I",ww="Pesach Shabbat Chol ha-Moed",vw="Pesach VII",Sw="Pesach VIII",bw="Shavuot";function Mw(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const Iw={"020":[51,52].concat(mw,Mw(0,20),uw(21),23,24,yw,25,uw(26),uw(28),30,uw(31),Mw(33,40),uw(41),Mw(43,49),uw(50)),"0220":[51,52].concat(mw,Mw(0,20),uw(21),23,24,yw,25,uw(26),uw(28),30,uw(31),33,bw,Mw(34,37),uw(38),40,uw(41),Mw(43,49),uw(50)),"0510":[52].concat(lw,mw,Mw(0,20),uw(21),23,24,pw,Sw,25,uw(26),uw(28),30,uw(31),Mw(33,40),uw(41),Mw(43,50)),"0511":[52].concat(lw,mw,Mw(0,20),uw(21),23,24,yw,25,uw(26),uw(28),Mw(30,40),uw(41),Mw(43,50)),"052":[52].concat(lw,dw,Mw(0,24),vw,25,uw(26),uw(28),30,uw(31),Mw(33,40),uw(41),Mw(43,50)),"070":[].concat(hw,52,fw,gw,Mw(0,20),uw(21),23,24,vw,25,uw(26),uw(28),30,uw(31),Mw(33,40),uw(41),Mw(43,50)),"072":[].concat(hw,52,fw,gw,Mw(0,20),uw(21),23,24,ww,25,uw(26),uw(28),30,uw(31),Mw(33,40),uw(41),Mw(43,49),uw(50)),1200:[51,52].concat(dw,Mw(0,27),ww,Mw(28,33),bw,Mw(34,37),uw(38),40,uw(41),Mw(43,49),uw(50)),1201:[51,52].concat(dw,Mw(0,27),ww,Mw(28,40),uw(41),Mw(43,49),uw(50)),1220:[51,52].concat(dw,Mw(0,27),pw,Sw,Mw(28,40),uw(41),Mw(43,50)),1221:[51,52].concat(dw,Mw(0,27),yw,Mw(28,50)),150:[52].concat(lw,dw,Mw(0,28),vw,Mw(29,50)),152:[52].concat(lw,dw,Mw(0,28),ww,Mw(29,49),uw(50)),170:[].concat(hw,52,fw,gw,Mw(0,27),ww,Mw(28,40),uw(41),Mw(43,49),uw(50)),1720:[].concat(hw,52,fw,gw,Mw(0,27),ww,Mw(28,33),bw,Mw(34,37),uw(38),40,uw(41),Mw(43,49),uw(50))};Iw["0221"]=Iw["020"],Iw["0310"]=Iw["0220"],Iw["0311"]=Iw["020"],Iw[1310]=Iw[1220],Iw[1311]=Iw[1221],Iw[1721]=Iw[170];const Tw=new aw({maxSize:400});function Ew(e,t){const n=`${e}-${t?1:0}`;let r=Tw.get(n);return r||(r=new iw(e,t),Tw.set(n,r)),r}class Aw extends Te{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("-"),Me.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){const t=e||he.getLocaleName(),n=this.parsha;let r=he.gettext(n[0],e);if(2==n.length){r+=("he"==t?"־":"-")+he.gettext(n[1],e)}r=r.replace(/'/g,"’");return(he.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 Dw=uo,Cw=zn,Ow=Wn,Nw=ke,kw=function(e,t,n){return n.get&&Dw(n.get,t,{getter:!0}),n.set&&Dw(n.set,t,{setter:!0}),Cw.f(e,t,n)},Hw=function(){var e=Ow(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},Lw=Ne,Rw=Ce.RegExp,Pw=Rw.prototype,Yw=Nw&&Lw((function(){var e=!0;try{Rw(".","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}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var i in e&&(a.hasIndices="d"),a)o(i,a[i]);return Object.getOwnPropertyDescriptor(Pw,"flags").get.call(t)!==r||n!==r}));Yw&&kw(Pw,"flags",{configurable:!0,get:Hw});const jw=0,Fw=2,_w=5,Bw=6,xw=m.NISAN,$w=m.IYYAR;function Uw(e){if(e<5708)return null;let t;const n=new we(15,xw,e).getDay();return t=n===jw?2:n===Bw?3:e<5764?4:n===Fw?5:4,new we(t,$w,e)}const Zw=m.NISAN,zw=m.IYYAR,Vw=m.SIVAN,Kw=m.TAMUZ,Jw=m.AV,Gw=m.ELUL,Ww=m.TISHREI,qw=m.CHESHVAN,Xw=m.KISLEV,Qw=m.SHVAT,ev=m.ADAR_II,tv=Me.CHAG,nv=Me.LIGHT_CANDLES,rv=Me.YOM_TOV_ENDS,ov=Me.CHUL_ONLY,av=Me.IL_ONLY,iv=Me.LIGHT_CANDLES_TZEIS,sv=Me.CHANUKAH_CANDLES,cv=Me.MAJOR_FAST,uv=Me.MINOR_HOLIDAY,hv=Me.EREV,lv=Me.CHOL_HAMOED,fv="🫓",dv="🌿🍋",gv=[{mm:Ww,dd:2,desc:"Rosh Hashana II",flags:tv|rv,emoji:"🍏🍯"},{mm:Ww,dd:9,desc:"Erev Yom Kippur",flags:hv|nv},{mm:Ww,dd:10,desc:"Yom Kippur",flags:tv|cv|rv},{mm:Ww,dd:14,desc:"Erev Sukkot",flags:ov|hv|nv,emoji:dv},{mm:Ww,dd:15,desc:"Sukkot I",flags:ov|tv|iv,emoji:dv},{mm:Ww,dd:16,desc:"Sukkot II",flags:ov|tv|rv,emoji:dv},{mm:Ww,dd:17,desc:"Sukkot III (CH''M)",flags:ov|lv,chmDay:1,emoji:dv},{mm:Ww,dd:18,desc:"Sukkot IV (CH''M)",flags:ov|lv,chmDay:2,emoji:dv},{mm:Ww,dd:19,desc:"Sukkot V (CH''M)",flags:ov|lv,chmDay:3,emoji:dv},{mm:Ww,dd:20,desc:"Sukkot VI (CH''M)",flags:ov|lv,chmDay:4,emoji:dv},{mm:Ww,dd:22,desc:"Shmini Atzeret",flags:ov|tv|iv},{mm:Ww,dd:23,desc:"Simchat Torah",flags:ov|tv|rv},{mm:Ww,dd:14,desc:"Erev Sukkot",flags:av|hv|nv,emoji:dv},{mm:Ww,dd:15,desc:"Sukkot I",flags:av|tv|rv,emoji:dv},{mm:Ww,dd:16,desc:"Sukkot II (CH''M)",flags:av|lv,chmDay:1,emoji:dv},{mm:Ww,dd:17,desc:"Sukkot III (CH''M)",flags:av|lv,chmDay:2,emoji:dv},{mm:Ww,dd:18,desc:"Sukkot IV (CH''M)",flags:av|lv,chmDay:3,emoji:dv},{mm:Ww,dd:19,desc:"Sukkot V (CH''M)",flags:av|lv,chmDay:4,emoji:dv},{mm:Ww,dd:20,desc:"Sukkot VI (CH''M)",flags:av|lv,chmDay:5,emoji:dv},{mm:Ww,dd:22,desc:"Shmini Atzeret",flags:av|tv|rv},{mm:Ww,dd:21,desc:"Sukkot VII (Hoshana Raba)",flags:nv|lv,chmDay:-1,emoji:dv},{mm:Xw,dd:24,desc:"Chanukah: 1 Candle",flags:hv|uv|sv,emoji:"🕎1️⃣"},{mm:Qw,dd:15,desc:"Tu BiShvat",flags:uv,emoji:"🌳"},{mm:ev,dd:13,desc:"Erev Purim",flags:hv|uv,emoji:"🎭️📜"},{mm:ev,dd:14,desc:"Purim",flags:uv,emoji:"🎭️📜"},{mm:ev,dd:15,desc:"Shushan Purim",flags:uv,emoji:"🎭️📜"},{mm:Zw,dd:14,desc:"Erev Pesach",flags:av|hv|nv,emoji:"🫓🍷"},{mm:Zw,dd:15,desc:"Pesach I",flags:av|tv|rv,emoji:fv},{mm:Zw,dd:16,desc:"Pesach II (CH''M)",flags:av|lv,chmDay:1,emoji:fv},{mm:Zw,dd:17,desc:"Pesach III (CH''M)",flags:av|lv,chmDay:2,emoji:fv},{mm:Zw,dd:18,desc:"Pesach IV (CH''M)",flags:av|lv,chmDay:3,emoji:fv},{mm:Zw,dd:19,desc:"Pesach V (CH''M)",flags:av|lv,chmDay:4,emoji:fv},{mm:Zw,dd:20,desc:"Pesach VI (CH''M)",flags:av|lv|nv,chmDay:5,emoji:fv},{mm:Zw,dd:21,desc:"Pesach VII",flags:av|tv|rv,emoji:fv},{mm:Zw,dd:14,desc:"Erev Pesach",flags:ov|hv|nv,emoji:"🫓🍷"},{mm:Zw,dd:15,desc:"Pesach I",flags:ov|tv|iv,emoji:"🫓🍷"},{mm:Zw,dd:16,desc:"Pesach II",flags:ov|tv|rv,emoji:fv},{mm:Zw,dd:17,desc:"Pesach III (CH''M)",flags:ov|lv,chmDay:1,emoji:fv},{mm:Zw,dd:18,desc:"Pesach IV (CH''M)",flags:ov|lv,chmDay:2,emoji:fv},{mm:Zw,dd:19,desc:"Pesach V (CH''M)",flags:ov|lv,chmDay:3,emoji:fv},{mm:Zw,dd:20,desc:"Pesach VI (CH''M)",flags:ov|lv|nv,chmDay:4,emoji:fv},{mm:Zw,dd:21,desc:"Pesach VII",flags:ov|tv|iv,emoji:fv},{mm:Zw,dd:22,desc:"Pesach VIII",flags:ov|tv|rv,emoji:fv},{mm:zw,dd:14,desc:"Pesach Sheni",flags:uv},{mm:zw,dd:18,desc:"Lag BaOmer",flags:uv,emoji:"🔥"},{mm:Vw,dd:5,desc:"Erev Shavuot",flags:hv|nv,emoji:"⛰️🌸"},{mm:Vw,dd:6,desc:"Shavuot",flags:av|tv|rv,emoji:"⛰️🌸"},{mm:Vw,dd:6,desc:"Shavuot I",flags:ov|tv|iv,emoji:"⛰️🌸"},{mm:Vw,dd:7,desc:"Shavuot II",flags:ov|tv|rv,emoji:"⛰️🌸"},{mm:Jw,dd:15,desc:"Tu B'Av",flags:uv,emoji:"❤️"},{mm:Gw,dd:1,desc:"Rosh Hashana LaBehemot",flags:uv,emoji:"🐑"},{mm:Gw,dd:29,desc:"Erev Rosh Hashana",flags:hv|nv,emoji:"🍏🍯"}],mv=[{firstYear:5727,mm:zw,dd:28,desc:"Yom Yerushalayim",chul:!0},{firstYear:5737,mm:Xw,dd:6,desc:"Ben-Gurion Day",satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:Qw,dd:30,desc:"Family Day"},{firstYear:5758,mm:qw,dd:12,desc:"Yitzhak Rabin Memorial Day",friSatMovetoThu:!0},{firstYear:5764,mm:zw,dd:10,desc:"Herzl Day",satPostponeToSun:!0},{firstYear:5765,mm:Kw,dd:29,desc:"Jabotinsky Day",satPostponeToSun:!0},{firstYear:5769,mm:qw,dd:29,desc:"Sigd",chul:!0,suppressEmoji:!0},{firstYear:5777,mm:Zw,dd:10,desc:"Yom HaAliyah",chul:!0},{firstYear:5777,mm:qw,dd:7,desc:"Yom HaAliyah School Observance"},{firstYear:5773,mm:m.TEVET,dd:21,desc:"Hebrew Language Day",friSatMovetoThu:!0}],yv=Me.CHAG,pv=Me.IL_ONLY,wv=Me.LIGHT_CANDLES_TZEIS,vv=Me.CHANUKAH_CANDLES,Sv=Me.MINOR_FAST,bv=Me.SPECIAL_SHABBAT,Mv=Me.MODERN_HOLIDAY,Iv=Me.MAJOR_FAST,Tv=Me.MINOR_HOLIDAY,Ev=Me.EREV;class Av extends Te{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()&pv?e+"?i=on":e}urlDateSuffix(){return this.getDate().greg().getFullYear()}getEmoji(){return this.emoji?this.emoji:this.getFlags()&bv?"🕍":"✡️"}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"]}}render(e){return super.render(e).replace(/'/g,"’")}renderBrief(e){return super.renderBrief(e).replace(/'/g,"’")}}const Dv="Rosh Chodesh";class Cv extends Av{constructor(e,t){super(e,`${Dv} ${t}`,Me.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=he.gettext(t,e).replace(/'/g,"’");return he.gettext(Dv,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}class Ov extends Av{urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}const Nv="Shabbat Mevarchim Chodesh";class kv extends Te{constructor(e,t,n){if(super(e,`${Nv} ${t}`,Me.SHABBAT_MEVARCHIM),this.monthName=t,n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n==we.monthsInYear(t)?Pv:n+1,o=new nw(t,r);this.memo=o.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=he.gettext(this.monthName,e).replace(/'/g,"’");return he.gettext(Nv,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}class Hv extends Av{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return he.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const Lv="Yom Kippur Katan";class Rv extends Av{constructor(e,t){super(e,`${Lv} ${t}`,Me.MINOR_FAST|Me.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){const t=he.gettext(this.nextMonthName,e).replace(/'/g,"’");return he.gettext(Lv,e)+" "+t}renderBrief(e){return he.gettext(Lv,e)}url(){}}const Pv=m.NISAN,Yv=m.TAMUZ,jv=m.AV,Fv=m.TISHREI,_v=m.KISLEV,Bv=m.TEVET,xv=m.ADAR_I,$v=m.ADAR_II,Uv={emoji:"🇮🇱"},Zv=new aw({maxSize:400}),zv=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function Vv(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=Zv.get(e);if(t)return t;const n=new we(1,Fv,e),r=new we(15,Pv,e),o=new Map;function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const e of t){const t=e.date.toString(),n=o.get(t);"object"==typeof n?n[0].getFlags()&Ev?n.unshift(e):n.push(e):o.set(t,[e])}}for(const t of gv){const n=new we(t.dd,t.mm,e),r=new Av(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),a(r)}a(new Hv(n,e,yv|wv)),a(new Av(new we(3+(4==n.getDay()),Fv,e),"Tzom Gedaliah",Sv)),a(new Av(new we(we.dayOnOrBefore(6,7+n.abs())),"Shabbat Shuva",bv));const i=we.shortKislev(e)?new we(1,Bv,e):new we(30,_v,e);a(new Av(i,"Chag HaBanot",Tv));for(let t=2;t<=8;t++){const n=new we(23+t,_v,e);a(new Av(n,`Chanukah: ${t} Candles`,Tv|vv,{chanukahDay:t-1,emoji:"🕎"+zv[t]}))}a(new Av(new we(32,_v,e),"Chanukah: 8th Day",Tv,{chanukahDay:8,emoji:"🕎"})),a(new Ov(new we(10,Bv,e),"Asara B'Tevet",Sv));const s=r.abs();a(new Av(new we(we.dayOnOrBefore(6,s-43)),"Shabbat Shekalim",bv),new Av(new we(we.dayOnOrBefore(6,s-30)),"Shabbat Zachor",bv),new Av(new we(s-(2==r.getDay()?33:31)),"Ta'anit Esther",Sv)),a(new Av(new we(we.dayOnOrBefore(6,s-14)-7),"Shabbat Parah",bv),new Av(new we(we.dayOnOrBefore(6,s-14)),"Shabbat HaChodesh",bv),new Av(new we(we.dayOnOrBefore(6,s-1)),"Shabbat HaGadol",bv),new Av(6==r.prev().getDay()?r.onOrBefore(4):new we(14,Pv,e),"Ta'anit Bechorot",Sv)),a(new Av(new we(we.dayOnOrBefore(6,new we(1,Fv,e+1).abs()-4)),"Leil Selichot",Tv,{emoji:"🕍"})),0==r.getDay()&&a(new Av(new we(16,$v,e),"Purim Meshulash",Tv)),we.isLeapYear(e)&&(a(new Av(new we(14,xv,e),"Purim Katan",Tv,{emoji:"🎭️"})),a(new Av(new we(15,xv,e),"Shushan Purim Katan",Tv,{emoji:"🎭️"})));const c=function(e){if(e<5711)return null;let t=new we(27,xw,e);return t.getDay()===_w?t=new we(26,xw,e):t.getDay()===jw&&(t=new we(28,xw,e)),t}(e);c&&a(new Av(c,"Yom HaShoah",Mv));const u=Uw(e);u&&a(new Av(u,"Yom HaZikaron",Mv,Uv),new Av(u.next(),"Yom HaAtzma'ut",Mv,Uv));for(const t of mv)if(e>=t.firstYear){let n=new we(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new we(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?Mv:Mv|pv,i=new Av(n,t.desc,o);t.suppressEmoji||(i.emoji="🇮🇱"),a(i)}let h,l=new we(17,Yv,e);6==l.getDay()&&(l=new we(18,Yv,e),h={observed:!0}),a(new Av(l,"Tzom Tammuz",Sv,h));let f,d=new we(9,jv,e),g="Tish'a B'Av";6==d.getDay()&&(d=d.next(),f={observed:!0},g+=" (observed)");const y=d.abs();a(new Av(new we(we.dayOnOrBefore(6,y)),"Shabbat Chazon",bv),new Av(d.prev(),"Erev Tish'a B'Av",Ev|Iv,f),new Av(d,g,Iv,f),new Av(new we(we.dayOnOrBefore(6,y+7)),"Shabbat Nachamu",bv));const p=we.monthsInYear(e);for(let t=1;t<=p;t++){const n=we.getMonthName(t,e);30==(t==Pv?we.daysInMonth(we.monthsInYear(e-1),e-1):we.daysInMonth(t-1,e))?(a(new Cv(new we(1,t,e),n)),a(new Cv(new we(30,t-1,e),n))):t!==Fv&&a(new Cv(new we(1,t,e),n))}for(let t=m.IYYAR;t<=p;t++){const n=t+1;if(n===Fv||n===m.CHESHVAN||n===Bv)continue;let r=new we(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const i=we.getMonthName(n,e);a(new Rv(r,i))}const w=Ew(e,!1).find(15);a(new Av(w,"Shabbat Shirah",bv));const v=function(e){const t=we.isLeapYear(e),n=t?$v:Pv,r=t?20:1,o=we.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(v){const e=new we(v);a(new Av(e,"Birkat Hachamah",Tv,{emoji:"☀️"}))}return Zv.set(e,o),o}const Kv=new Map;class Jv{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);Kv.set(e,t)}static lookup(e,t){const n=Kv.get(e);return"function"==typeof n?n(t):null}}const Gv="5.3.5";var Wv={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"]}}};he.addLocale("ashkenazi",Wv),he.addLocale("a",Wv);var qv={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":["יוֹם בן־גוריון"],"Hebrew Language 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:["חֲלָקִים"]}}};he.addLocale("he",qv),he.addLocale("h",qv);const Xv=qv.contexts[""],Qv={};for(const[e,t]of Object.entries(Xv))Qv[e]=[he.hebrewStripNikkud(t[0])];const eS={headers:qv.headers,contexts:{"":Qv}};function tS(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}he.addLocale("he-x-NoNikud",eS);const nS={shacharit:!1,mincha:!1,allCongs:!1};function rS(e,t){return oS(e,t,!0)}function oS(e,t,n){const r=function(e,t){const n=we.isLeapYear(e),r=12+n;let o=new we(9,m.AV,e);6===o.getDay()&&(o=o.next());let a=new we(15,m.ADAR_II,e);6===a.getDay()&&(a=a.next());const i=[].concat(tS(1,r).map((t=>new we(1,t,e))),tS(1,r).filter((t=>30===we.daysInMonth(t,e))).map((t=>new we(30,t,e))),new we(2,m.TISHREI,e),tS(1,we.daysInMonth(m.NISAN,e)).map((t=>new we(t,m.NISAN,e))),new we(18,m.IYYAR,e),tS(1,8-(t?1:0)).map((t=>new we(t,m.SIVAN,e))),o,new we(15,m.AV,e),new we(29,m.ELUL,e),tS(9,24-(t?1:0)).map((t=>new we(t,m.TISHREI,e))),tS(25,33).map((t=>new we(t,m.KISLEV,e))),new we(15,m.SHVAT,e),new we(14,m.ADAR_II,e),a,n?new we(14,m.ADAR_I,e):[]),s=[].concat(tS(1,13).map((t=>new we(t,m.SIVAN,e))),tS(20,31).map((t=>new we(t,m.TISHREI,e))),new we(14,m.IYYAR,e),e>=5708?Uw(e).next():[],e>=5727?new we(28,m.IYYAR,e):[]),c=[].concat(new we(29,m.ELUL,e-1),new we(9,m.TISHREI,e),new we(14,m.IYYAR,e));return{none:i.map((e=>e.abs())).sort(((e,t)=>e-t)),some:s.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:c.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.getFullYear(),t),o=e.abs();if(r.none.indexOf(o)>-1)return nS;const a=e.getDay(),i={shacharit:!1,mincha:!1,allCongs:!1};-1===r.some.indexOf(o)&&(i.allCongs=!0),6!==a&&(i.shacharit=!0);const s=o+1;if(n&&-1===r.yesPrev.indexOf(s)){const e=oS(new we(s),t,!1);i.mincha=e.shacharit}else i.mincha=5!==a;return!i.allCongs||i.mincha||i.shacharit?i:nS}const aS=m.NISAN,iS=m.SIVAN,sS=m.ELUL,cS=m.TISHREI,uS=Me.LIGHT_CANDLES,hS=Me.YOM_TOV_ENDS,lS=Me.CHUL_ONLY,fS=Me.IL_ONLY,dS=Me.LIGHT_CANDLES_TZEIS,gS=Me.CHANUKAH_CANDLES,mS=Me.MINOR_FAST,yS=Me.SPECIAL_SHABBAT,pS=Me.MODERN_HOLIDAY,wS=Me.MAJOR_FAST,vS=Me.ROSH_CHODESH,SS=Me.PARSHA_HASHAVUA,bS=Me.DAF_YOMI,MS=Me.MISHNA_YOMI,IS=Me.NACH_YOMI,TS=Me.YERUSHALMI_YOMI,ES=Me.OMER_COUNT,AS=Me.SHABBAT_MEVARCHIM,DS=Me.MINOR_HOLIDAY,CS=Me.EREV,OS=Me.CHOL_HAMOED,NS=Me.YOM_KIPPUR_KATAN,kS=new Set,HS={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,fastEndDeg:1,sedrot:1,il:1,noMinorFast:1,noModern:1,shabbatMevarchim:1,noRoshChodesh:1,noSpecialShabbat:1,noHolidays:1,omer:1,molad:1,ashkenazi:1,locale:1,addHebrewDates:1,addHebrewDatesForEvents:1,appendHebrewToSubject:1,mask:1,userMask:1,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1};const LS={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},RS={281184:40,294801:30,293067:30};function PS(t){if("number"==typeof t)return t;if(e.greg.isDate(t))return e.greg.greg2abs(t);if(we.isHDate(t))return t.abs();throw new TypeError(`Invalid date type: ${t}`)}function YS(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask;t&vS&&delete e.noRoshChodesh;t&pS&&delete e.noModern;t&mS&&delete e.noMinorFast;t&yS&&delete e.noSpecialShabbat;t&SS&&(e.sedrot=!0);t&(bS|MS|IS|TS)&&(e.dailyLearning=e.dailyLearning||{},t&bS&&(e.dailyLearning.dafYomi=!0),t&MS&&(e.dailyLearning.mishnaYomi=!0),t&IS&&(e.dailyLearning.nachYomi=!0),t&TS&&(e.dailyLearning.yerushalmi=1));t&ES&&(e.omer=!0);t&AS&&(e.shabbatMevarchim=!0);t&NS&&(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|=vS|hS|mS|yS|pS|wS|DS|CS|OS|uS|dS|gS),e.candlelighting&&(r|=uS|dS|hS),e.noRoshChodesh&&(r&=~vS),e.noModern&&(r&=~pS),e.noMinorFast&&(r&=~mS),e.noSpecialShabbat&&(r&=~yS,r&=~AS),r|=n?fS:lS,e.sedrot&&(r|=SS),e.omer&&(r|=ES),e.shabbatMevarchim&&(r|=AS),e.yomKippurKatan&&(r|=NS),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=bS),t.mishnaYomi&&(r|=MS),t.nachYomi&&(r|=IS),t.yerushalmi&&(r|=TS)}return r}const jS=uS|dS|gS|hS,FS=new Fp(0,0,!1,"UTC");function _S(e){return e.observedInIsrael()}function BS(e){return e.observedInDiaspora()}class xS{static calendar(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=Object.assign({},t),function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof Fp))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=RS[e];"number"==typeof r&&(n=r);const o=LS[t.getShortName()];"number"==typeof o&&(n=o)}e.candleLightingMins=-1*Math.abs(n),"number"==typeof e.havdalahMins?e.havdalahMins=Math.abs(e.havdalahMins):"number"==typeof e.havdalahDeg?e.havdalahDeg=Math.abs(e.havdalahDeg):e.havdalahDeg=8.5,"number"!=typeof e.fastEndDeg&&(e.fastEndDeg=7.0833333)}(t);const n=t.location=t.location||FS,r=t.il=t.il||n.il||!1;if(t.mask=YS(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(!he.useLocale(e))throw new TypeError(`Locale '${e}' not found; did you forget to import @hebcal/locales?`)}else he.useLocale("en");const o=[];let a,i,s,c,u=-1;const h=function(t){if(t.start&&!t.end||t.end&&!t.start)throw new TypeError("Both options.start and options.end are required");if(t.start&&t.end)return[PS(t.start),PS(t.end)];const n=Boolean(t.isHebrewYear),r=void 0!==t.year?parseInt(t.year,10):n?(new we).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?we.monthNum(t.month):t.month);const a=parseInt(t.numYears,10)||1;if(n){const e=new we(1,o||cS,r);let n=e.abs();const i=t.month?n+e.daysInMonth():new we(1,cS,r+a).abs()-1;return!o&&r>1&&n--,[n,i]}{const n=t.month?o-1:0,i=new Date(r,n,1);r<100&&i.setFullYear(r);const s=e.greg.greg2abs(i);let c;if(t.month)c=s+e.greg.daysInMonth(o,r)-1;else{const t=r+a,n=new Date(t,0,1);t<100&&n.setFullYear(t),c=e.greg.greg2abs(n)-1}return[s,c]}}(t);!function(e){for(const t of Object.keys(e))void 0!==HS[t]||kS.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),kS.add(t))}(t);const l=h[0],f=h[1];e.greg.abs2greg(l).getFullYear()<100&&(t.candlelighting=!1);for(let e=l;e<=f;e++){const h=new we(e),l=h.getFullYear();l!=u&&(u=l,i=Vv(u),t.sedrot&&(a=Ew(u,r)),t.omer&&(s=we.hebrew2abs(u,aS,16),c=we.hebrew2abs(u,iS,5)));const f=o.length,d=h.getDay(),g=5===d,m=6===d;let y;const p=i.get(h.toString())||[];for(const e of p)y=$S(y,o,e,t,g,m);if(t.sedrot&&m){const t=a.lookup(e);t.chag||o.push(new Aw(h,t.parsha,r,t.num))}const w=t.dailyLearning;if("object"==typeof w)for(const[e,t]of Object.entries(w))if(t){const n="yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e,r=Jv.lookup(n,h);r&&o.push(r)}if(t.omer&&e>=s&&e<=c){const r=new ow(h,e-s+1);if(t.candlelighting){const e=new zp(n,h.prev()).tzeit(7.0833);isNaN(e.getTime())||(r.alarm=e)}o.push(r)}const v=h.getMonth(),S=h.getDate();if(m&&(t.molad||t.shabbatMevarchim)&&v!=sS&&S>=23&&S<=29){const e=v==we.monthsInYear(l)?aS:v+1;if(t.molad&&o.push(new rw(h,l,e,t)),t.shabbatMevarchim){const n=we.getMonthName(e,l),r=new nw(l,e).render(t.locale||"en",t);o.push(new kv(h,n,r))}}if(!y&&t.candlelighting&&(g||m)&&(y=Jp(void 0,h,t,g,m),g&&y&&a&&(y.memo=a.getString(e,t.locale))),y instanceof Wp&&(0===t.havdalahMins||0===t.havdalahDeg)&&(y=null),y&&o.push(y),t.addHebrewDates||t.addHebrewDatesForEvents&&f!=o.length){const e=new Ee(h);f==o.length?o.push(e):o.splice(f,0,e)}}return o}static getBirthdayOrAnniversary(e,t){const n=function(e,t){const n=B(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=E(r);let a=n.mm,i=n.dd;return a===F&&!o||a===_&&o?a=A(e):a!==R||30!==i||k(e)?a===P&&30===i&&H(e)?(a=Y,i=1):a===F&&30===i&&o&&!E(e)&&(a=L,i=1):(a=P,i=1),{yy:e,mm:a,dd:i}}(e,t);return void 0===n?n:new we(n)}static getYahrzeit(e,t){const n=function(e,t){let n=B(t);if(!(e<=n.yy))return n.mm!==R||30!==n.dd||k(n.yy+1)?n.mm===P&&30===n.dd&&H(n.yy+1)?n=T(M(e,Y,1)-1):n.mm===_?n.mm=A(e):n.mm!==F||30!==n.dd||E(e)||(n.dd=30,n.mm=j):n=T(M(e,P,1)-1),n.mm!==R||30!==n.dd||k(e)?n.mm===P&&30===n.dd&&H(e)&&(n.mm=Y,n.dd=1):(n.mm=P,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new we(n)}static getHolidaysForYear(e){return Vv(e)}static getHolidaysForYearArray(e,t){const n=Vv(e),r=we.hebrew2abs(e,cS,1),o=we.hebrew2abs(e+1,cS,1)-1;let a=[];const i=t?_S:BS;for(let e=r;e<=o;e++){const t=new we(e),r=n.get(t.toString());if(r){const e=r.filter(i);a=a.concat(e)}}return a}static getHolidaysOnDate(e,t){const n=we.isHDate(e)?e:new we(e),r=n.toString(),o=Vv(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const a=t?_S:BS;return o.filter(a)}static reformatTimeStr(e,t,n){return Kp(e,t,n)}static version(){return Gv}static getSedra(e,t){return Ew(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===m.NISAN&&(15===o||16===o)&&e.getFlags()&Me.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()&Me.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(xS.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return rS(e,t)}}function $S(e,t,n,r,o,a){const i=r.il;if(!n.observedIn(i))return e;const s=n.getFlags();if(!r.yomKippurKatan&&s&NS||r.noModern&&s&pS)return e;const c=r.location,u=Boolean(s&wS),h=Boolean(s&mS);if(r.candlelighting&&(u||h)&&(n=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)return e;const r=(e=e.clone()).getDate(),o=r.greg(),a=t.location,i=t.fastEndDeg,s=new zp(a,o,t.useElevation);if("Erev Tish'a B'Av"===n){const n=s.sunset();e.startEvent=Xp(r,n,"Fast begins",e,t)}else if(n.startsWith("Tish'a B'Av"))e.endEvent=Xp(r,s.tzeit(i),"Fast ends",e,t);else{const n=s.alotHaShachar();e.startEvent=Xp(r,n,"Fast begins",e,t),5===o.getDay()||14===r.getDate()&&r.getMonth()===m.NISAN||(e.endEvent=Xp(r,s.tzeit(i),"Fast ends",e,t))}return e}(n,r),n.startEvent&&(u||h&&!r.noMinorFast)&&t.push(n.startEvent)),s&r.mask||!s&&!r.userMask){if(r.candlelighting&&s&jS){const t=n.getDate();if(e=Jp(n,t,r,o,a),s&gS&&e&&!r.noHolidays){const i=o||a?e:function(e,t,n){const r=n.location,o=new zp(r,t.greg(),n.useElevation);return Xp(t,o.beinHaShmashos(),e.getDesc(),e,n)}(n,t,r),u={eventTime:i.eventTime,eventTimeStr:i.eventTimeStr,location:c};n.chanukahDay&&(u.chanukahDay=n.chanukahDay),n.emoji&&(u.emoji=n.emoji),n=new Av(t,n.getDesc(),s,u),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&s&NS)&&t.push(n)}return n.endEvent&&(u||h&&!r.noMinorFast)&&t.push(n.endEvent),e}return e.AsaraBTevetEvent=Ov,e.CandleLightingEvent=qp,e.DailyLearning=Jv,e.Event=Te,e.GeoLocation=kp,e.HDate=we,e.HavdalahEvent=Wp,e.HebrewCalendar=xS,e.HebrewDateEvent=Ee,e.HolidayEvent=Av,e.Locale=he,e.Location=Fp,e.MevarchimChodeshEvent=kv,e.Molad=nw,e.MoladEvent=rw,e.NOAACalculator=Lp,e.OmerEvent=ow,e.ParshaEvent=Aw,e.RoshChodeshEvent=Cv,e.RoshHashanaEvent=Hv,e.Sedra=iw,e.TimedEvent=Gp,e.Zmanim=zp,e.flags=Me,e.gematriya=z,e.gematriyaStrToNum=V,e.months=m,e.parshiot=sw,e.version=Gv,e}({});