@hebcal/core 5.7.4 → 5.7.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,3 +1,3 @@
1
- /*! @hebcal/core v5.7.4 */
2
- var hebcal=function(e){"use strict";const t="5.7.4",n=[0,31,28,31,30,31,30,31,31,30,31,30,31],r=[n,n.slice()];function o(e,t){return e-t*Math.floor(e/t)}function i(e,t){return Math.floor(e/t)}function a(e){return!(e%4||!(e%100)&&e%400)}function s(e,t){return r[+a(t)][e]}function u(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function c(e,t,n){const r=e-1;return 365*r+i(r,4)-i(r,100)+i(r,400)+i(367*t-362,12)+(t<=2?0:a(e)?-1:-2)+n}function h(e){if(!u(e))throw new TypeError(`Argument not a Date: ${e}`);return c(e.getFullYear(),e.getMonth()+1,e.getDate())}function l(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const t=function(e){const t=e-1,n=i(t,146097),r=o(t,146097),a=i(r,36524),s=o(r,36524),u=i(s,1461),c=i(o(s,1461),365),h=400*n+100*a+4*u+c;return 4!==a&&4!==c?h+1:h}(e=Math.trunc(e)),n=i(12*(e-c(t,1,1)+(e<c(t,3,1)?0:a(t)?1:2))+373,367),r=e-c(t,n,1)+1,s=new Date(t,n-1,r);return t<100&&t>=0&&s.setFullYear(t),s}r[1][2]=29,e.greg=void 0,e.greg||(e.greg={}),e.greg.abs2greg=l,e.greg.daysInMonth=s,e.greg.greg2abs=h,e.greg.isDate=u,e.greg.isLeapYear=a;const f={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},d=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],g=[d.concat(["Adar","Nisan"]),d.concat(["Adar I","Adar II","Nisan"])],m=new Map,y=-1373428;function v(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function p(e,t,n){if(v(e,"year"),v(t,"month"),v(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<7){for(let t=7;t<=b(e);t++)r+=T(t,e);for(let n=1;n<t;n++)r+=T(n,e)}else for(let n=7;n<t;n++)r+=T(n,e);return y+M(e)+r-1}function S(e){return y+M(e)}function w(e){if(v(e,"abs"),(e=Math.trunc(e))<=y)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-y)/365.24682220597794);for(;S(t)<=e;)++t;--t;let n=e<p(t,1,1)?7:1;for(;e>p(t,n,T(n,t));)++n;return{yy:t,mm:n,dd:1+e-p(t,n,1)}}function A(e){return(1+7*e)%19<7}function b(e){return+A(e)+12}function T(e,t){switch(e){case 2:case 4:case 6:case 10:case 13:return 29}return 12===e&&!A(t)||8===e&&!O(t)||9===e&&N(t)?29:30}function I(e,t){if(v(e,"month"),v(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return g[+A(t)][e]}function M(e){const t=m.get(e);if("number"==typeof t)return t;const n=function(e){const t=e-1,n=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),r=204+n%1080*793,o=5+12*n+793*Math.floor(n/1080)+Math.floor(r/1080),i=r%1080+o%24*1080,a=1+29*n+Math.floor(o/24);let s=a;(i>=19440||2==a%7&&i>=9924&&!A(e)||1==a%7&&i>=16789&&A(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return m.set(e,n),n}function E(e){return M(e+1)-M(e)}function O(e){return E(e)%10==5}function N(e){return E(e)%10==3}const H=f.NISAN,C=f.CHESHVAN,D=f.KISLEV,_=f.TEVET,k=f.SHVAT,L=f.ADAR_I,R=f.ADAR_II;function Y(e){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(e))return e;if(u(e)){return w(h(e))}return w(e)}const P={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},j=new Map,B=new Map;for(const[e,t]of Object.entries(P))j.set(e,t),B.set(t,e);function F(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 U(e){const t=parseInt(e,10);if(!t||t<0)throw new TypeError(`invalid gematriya number: ${e}`);let n="";const r=Math.floor(t/1e3);if(r>0&&5!==r){const e=F(r);for(const t of e)n+=B.get(t);n+="׳"}const o=F(t%1e3);if(1===o.length)return n+B.get(o[0])+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=B.get(o[e]);return n}function x(e){let t=0;const n=e.indexOf("׳");if(-1!==n&&n!==e.length-1){t+=1e3*x(e.substring(0,n)),e=e.substring(n)}for(const n of e){const e=j.get(n);"number"==typeof e&&(t+=e)}return t}const Z={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 $(e){if(e<1||e>49)throw new RangeError(`Invalid Omer day ${e}`)}function V(e){return[Math.floor((e-1)/7)+1,e%7||7]}function z(e,t){return $(e),"he"===t?function(e){const t=Math.floor(e/10),n=e%10;let r="הַיּוֹם ";11===e?r+="אַחַד "+te:12===e?r+="שְׁנֵים "+te:12<e&&e<20?r+=J[n]+" "+te:e>9&&(r+=J[n],n&&(r+=" ",r+=3===t?"וּ":"וְ"));e>2?((e>20||10===e||20===e)&&(r+=K[t]),r+=e<11?J[n]+" "+W+" ":" "+Q+" "):r+=1===e?ee+" ":q+" ";if(e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?J[t]+" "+X+" ":1===t?"שָׁבֽוּעַ "+J[1]+" ":G+" "+X+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?J[n]+" "+W+" ":1===n?ee+" ":q+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(e):function(e){const[t,n]=V(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)}const K=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],J=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],G="שְׁנֵי",W="יָמִים",q=G+" "+W,X="שָׁבוּעוֹת",Q="יוֹם",ee=Q+" "+J[1],te="עָשָׂר";function ne(e){return e<0?"-00"+ne(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function re(e){return e>=0&&e<10?"0"+e:String(e)}const oe=new Map;const ie=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function ae(e,t){const n=function(e){const t=oe.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 oe.set(e,n),n}(e).format(t),r=ie.exec(n);if(null===r)throw new Error(`Unable to parse formatted string: ${n}`);let o=r[4];return"24"===o&&(o="00"),r[3]=ne(parseInt(r[3],10)),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function se(e){return ne(e.getFullYear())+"-"+re(e.getMonth()+1)+"-"+re(e.getDate())}var ue={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Tevet:["Teves"]}}},ce={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"]}}};const he={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},le={h:"he",a:"ashkenazi",s:"en","":"en"},fe=new Map;let de,ge;function me(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function ye(e){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);return e.toLowerCase()}function ve(e){const t=ye(e),n=fe.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return n}class pe{static lookupTranslation(e,t){const n=("string"==typeof t&&fe.get(t.toLowerCase())||de)[e];if((null==n?void 0:n.length)&&n[0].length)return n[0]}static gettext(e,t){const n=this.lookupTranslation(e,t);return void 0===n?e:n}static addLocale(e,t){if(e=ye(e),"object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);fe.set(e,t.contexts[""])}static addTranslation(e,t,n){const r=ve(e);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id string: ${t}`);const o=Array.isArray(n);if(o){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 string: ${n}`);r[t]=o?n:[n]}static addTranslations(e,t){const n=ve(e);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const r=t.contexts[""];Object.assign(n,r)}static useLocale(e){const t=ye(e),n=ve(t);return ge=le[t]||t,de=n,de}static getLocaleName(){return ge}static getLocaleNames(){return Array.from(fe.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||ge;if(!n)return me(e);switch(n){case"en":case"s":case"a":return me(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e)}return n.startsWith("ashkenazi")?me(e):e+"."}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}pe.addLocale("en",he),pe.addLocale("s",he),pe.addLocale("",he),pe.useLocale("en"),pe.addLocale("ashkenazi",ue),pe.addLocale("a",ue),pe.addLocale("he",ce),pe.addLocale("h",ce);const Se=ce.contexts[""],we={};for(const[e,t]of Object.entries(Se))we[e]=[pe.hebrewStripNikkud(t[0])];const Ae={headers:ce.headers,contexts:{"":we}};pe.addLocale("he-x-NoNikud",Ae);const be="day",Te="week",Ie="month",Me="year";class Ee{constructor(e,t,n){if(2===arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3===arguments.length){this.dd=this.mm=1;const i="string"==typeof n?parseInt(n,10):n;if(isNaN(i))throw new TypeError(`HDate called with bad year argument: ${n}`);this.yy=i,function(e,t){e.mm=Ee.monthNum(t),Oe(e)}(this,t);const a="string"==typeof e?parseInt(e,10):e;if(isNaN(a))throw new TypeError(`HDate called with bad day argument: ${e}`);o=a,(r=this).dd=o,Oe(r)}else{null==e&&(e=new Date);const t="number"!=typeof e||isNaN(e)?u(e)?h(e):void 0!==e.yy?e:null:e;if(null===t)throw new TypeError(`HDate called with bad argument: ${e}`);const n="number"==typeof t,r=n?w(t):t;this.yy=r.yy,this.mm=r.mm,this.dd=r.dd,n&&(this.rd=t)}var r,o}getFullYear(){return this.yy}isLeapYear(){return A(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=b(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return T(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){return function(e,t){return e-t*Math.floor(e/t)}(this.abs(),7)}greg(){return l(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=p(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return p(e,t,n)}getMonthName(){return I(this.getMonth(),this.getFullYear())}render(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=e||pe.getLocaleName(),r=this.getDate(),o=pe.gettext(this.getMonthName(),n).replace(/'/g,"’"),i=pe.ordinal(r,n),a=function(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const t=pe.lookupTranslation("of",e);if(t)return" "+t;if(e.startsWith("ashkenazi"))return" of";return""}(n),s=`${i}${a} ${o}`;if(t){return`${s}, ${this.getFullYear()}`}return s}renderGematriya(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.getDate(),n=e?"he-x-NoNikud":"he",r=pe.gettext(this.getMonthName(),n),o=this.getFullYear();return U(t)+" "+r+" "+U(o)}before(e){return He(e,this,-1)}onOrBefore(e){return He(e,this,0)}nearest(e){return He(e,this,3)}onOrAfter(e){return He(e,this,6)}after(e){return He(e,this,7)}next(){return new Ee(this.abs()+1)}prev(){return new Ee(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e="string"==typeof e?parseInt(e,10):e))return new Ee(this);if(t=function(e){switch(e){case"d":return be;case"w":return Te;case"M":return Ie;case"y":return Me}const t=String(e||"").toLowerCase().replace(/s$/,"");switch(t){case be:case Te:case Ie:case Me:return t}throw new TypeError(`Invalid units '${e}'`)}(t),t===be)return new Ee(this.abs()+e);if(t===Te)return new Ee(this.abs()+7*e);if(t===Me)return new Ee(this.getDate(),this.getMonth(),this.getFullYear()+e);{let t=new Ee(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new Ee(t.abs()+n*t.daysInMonth());return t}}subtract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}deltaDays(e){return this.abs()-e.abs()}isSameDate(e){return this.yy===e.yy&&this.mm===e.mm&&this.dd===e.dd}toString(){const e=this.getDate(),t=this.getFullYear();return`${e} ${this.getMonthName()} ${t}`}static isLeapYear(e){return A(e)}static monthsInYear(e){return b(e)}static daysInMonth(e,t){return T(e,t)}static getMonthName(e,t){return I(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):Ee.monthFromName(e)}static daysInYear(e){return E(e)}static longCheshvan(e){return O(e)}static shortKislev(e){return N(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 1;case"i":return 2;case"e":return 6;case"c":case"ח":return 8;case"k":case"כ":return 9;case"s":switch(t[1]){case"i":return 3;case"h":return 11}break;case"t":switch(t[1]){case"a":return 4;case"i":return 7;case"e":return 10}break;case"a":switch(t[1]){case"v":return 5;case"d":return/(1|[^i]i|a|א)$/i.test(e)?12:13}break;case"ס":return 3;case"ט":return 10;case"ש":return 11;case"א":switch(t[1]){case"ב":return 5;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?12:13;case"י":return 2;case"ל":return 6}break;case"ת":switch(t[1]){case"מ":return 4;case"ש":return 7}}throw new RangeError(`Unable to parse month name: ${e}`)}(pe.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=x(n[0]),i=3===r?n[1]:n[1]+" "+n[2],a=Ee.monthFromName(i);let s=x(3===r?n[2]:n[3]);return s<1e3&&(s+=t),new Ee(o,a,s)}}function Oe(e){Ne(e),function(e){e.dd<1&&(e.mm===f.TISHREI&&(e.yy-=1),e.dd+=T(e.mm,e.yy),e.mm-=1,Oe(e));e.dd>T(e.mm,e.yy)&&(e.mm===f.ELUL&&(e.yy+=1),e.dd-=T(e.mm,e.yy),e.mm===b(e.yy)?e.mm=1:e.mm+=1,Oe(e));Ne(e)}(e)}function Ne(e){e.mm!==f.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=b(e.yy),e.yy-=1,Oe(e)):e.mm>b(e.yy)&&(e.mm-=b(e.yy),e.yy+=1,Oe(e)):(e.mm-=1,Oe(e)),delete e.rd}function He(e,t,n){return new Ee(Ee.dayOnOrBefore(e,t.abs()+n))}var Ce={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"],"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"]}}},De={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":["רֹאשׁ חוֹדֶשׁ"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבָּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבָּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבָּת הַגָּדוֹל"],"Shabbat Nachamu":["שַׁבָּת נַחֲמוּ"],"Shabbat Parah":["שַׁבָּת פּרה"],"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":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"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:["יוֹם"],"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":["דִברֵי הַיָמִים שֵׁנִי"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"],"Pirkei Avot":["פִּרְקֵי אָבוֹת"]}}};pe.addTranslations("he",De),pe.addTranslations("h",De),pe.addTranslations("ashkenazi",Ce),pe.addTranslations("a",Ce);const _e=De.contexts[""],ke={};for(const[e,t]of Object.entries(_e))ke[e]=[pe.hebrewStripNikkud(t[0])];const Le={headers:De.headers,contexts:{"":ke}};pe.addTranslations("he-x-NoNikud",Le);const Re={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},Ye=[[Re.MAJOR_FAST,"holiday","major","fast"],[Re.CHANUKAH_CANDLES,"holiday","major"],[Re.HEBREW_DATE,"hebdate"],[Re.MINOR_FAST,"holiday","fast"],[Re.MINOR_HOLIDAY,"holiday","minor"],[Re.MODERN_HOLIDAY,"holiday","modern"],[Re.MOLAD,"molad"],[Re.OMER_COUNT,"omer"],[Re.PARSHA_HASHAVUA,"parashat"],[Re.ROSH_CHODESH,"roshchodesh"],[Re.SHABBAT_MEVARCHIM,"mevarchim"],[Re.SPECIAL_SHABBAT,"holiday","shabbat"],[Re.USER_EVENT,"user"]];class Pe{constructor(e,t,n=0,r){if(!Ee.isHDate(e))throw new TypeError(`Invalid Event date: ${e}`);if("string"!=typeof t)throw new TypeError(`Invalid Event description: ${t}`);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 pe.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&Re.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&Re.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new Pe(this.date,this.desc,this.mask);for(const t in this)this.hasOwnProperty(t)&&Object.defineProperty(e,t,{value:this[t]});return e}getCategories(){const e=this.getFlags();for(const t of Ye){if(e&t[0])return t.slice(1)}return["unknown"]}}class je extends Pe{constructor(e){super(e,e.toString(),Re.HEBREW_DATE)}render(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:pe.getLocaleName(),r=this.getDate();switch(n){case"h":case"he":return r.renderGematriya(!1);case"he-x-nonikud":return r.renderGematriya(!0);default:return r.render(n,!0)}}renderBriefHebrew(e){const t=this.getDate(),n=t.getDate(),r=pe.gettext(t.getMonthName(),e);return U(n)+" "+r}renderBrief(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:pe.getLocaleName(),r=this.getDate();if(r.getMonth()===f.TISHREI&&1===r.getDate())return this.render(n);switch(n){case"h":case"he":case"he-x-nonikud":return this.renderBriefHebrew(n);default:return r.render(n,!1)}}}var Be,Fe,Ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},xe={};function Ze(){if(Fe)return Be;Fe=1;var e=function(e){return e&&e.Math===Math&&e};return Be=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof Ue&&Ue)||e("object"==typeof Be&&Be)||function(){return this}()||Function("return this")()}var $e,Ve,ze,Ke,Je,Ge,We,qe,Xe={};function Qe(){return Ve?$e:(Ve=1,$e=function(e){try{return!!e()}catch(e){return!0}})}function et(){if(Ke)return ze;Ke=1;var e=Qe();return ze=!e((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function tt(){if(Ge)return Je;Ge=1;var e=Qe();return Je=!e((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))}function nt(){if(qe)return We;qe=1;var e=tt(),t=Function.prototype.call;return We=e?t.bind(t):function(){return t.apply(t,arguments)},We}var rt,ot,it,at,st,ut,ct,ht,lt,ft,dt,gt,mt,yt,vt,pt,St,wt,At,bt,Tt,It,Mt,Et,Ot,Nt,Ht,Ct,Dt,_t,kt,Lt,Rt,Yt,Pt,jt,Bt,Ft,Ut,xt,Zt,$t={};function Vt(){return it?ot:(it=1,ot=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function zt(){if(st)return at;st=1;var e=tt(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return at=e?r:function(e){return function(){return n.apply(e,arguments)}},at}function Kt(){if(lt)return ht;lt=1;var e=zt(),t=Qe(),n=function(){if(ct)return ut;ct=1;var e=zt(),t=e({}.toString),n=e("".slice);return ut=function(e){return n(t(e),8,-1)},ut}(),r=Object,o=e("".split);return ht=t((function(){return!r("z").propertyIsEnumerable(0)}))?function(e){return"String"===n(e)?o(e,""):r(e)}:r,ht}function Jt(){return dt||(dt=1,ft=function(e){return null==e}),ft}function Gt(){if(mt)return gt;mt=1;var e=Jt(),t=TypeError;return gt=function(n){if(e(n))throw new t("Can't call method on "+n);return n},gt}function Wt(){if(vt)return yt;vt=1;var e=Kt(),t=Gt();return yt=function(n){return e(t(n))},yt}function qt(){if(St)return pt;St=1;var e="object"==typeof document&&document.all;return pt=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function Xt(){if(At)return wt;At=1;var e=qt();return wt=function(t){return"object"==typeof t?null!==t:e(t)},wt}function Qt(){if(Tt)return bt;Tt=1;var e=Ze(),t=qt();return bt=function(n,r){return arguments.length<2?(o=e[n],t(o)?o:void 0):e[n]&&e[n][r];var o},bt}function en(){if(Ht)return Nt;Ht=1;var e,t,n=Ze(),r=function(){if(Ot)return Et;Ot=1;var e=Ze().navigator,t=e&&e.userAgent;return Et=t?String(t):""}(),o=n.process,i=n.Deno,a=o&&o.versions||i&&i.version,s=a&&a.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),Nt=t}function tn(){if(Dt)return Ct;Dt=1;var e=en(),t=Qe(),n=Ze().String;return Ct=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))}function nn(){if(kt)return _t;kt=1;var e=tn();return _t=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function rn(){if(Rt)return Lt;Rt=1;var e=Qt(),t=qt(),n=function(){if(Mt)return It;Mt=1;var e=zt();return It=e({}.isPrototypeOf)}(),r=nn(),o=Object;return Lt=r?function(e){return"symbol"==typeof e}:function(r){var i=e("Symbol");return t(i)&&n(i.prototype,o(r))},Lt}function on(){if(Pt)return Yt;Pt=1;var e=String;return Yt=function(t){try{return e(t)}catch(e){return"Object"}}}function an(){if(Bt)return jt;Bt=1;var e=qt(),t=on(),n=TypeError;return jt=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function sn(){if(Ut)return Ft;Ut=1;var e=an(),t=Jt();return Ft=function(n,r){var o=n[r];return t(o)?void 0:e(o)},Ft}function un(){if(Zt)return xt;Zt=1;var e=nt(),t=qt(),n=Xt(),r=TypeError;return xt=function(o,i){var a,s;if("string"===i&&t(a=o.toString)&&!n(s=e(a,o)))return s;if(t(a=o.valueOf)&&!n(s=e(a,o)))return s;if("string"!==i&&t(a=o.toString)&&!n(s=e(a,o)))return s;throw new r("Can't convert object to primitive value")},xt}var cn,hn,ln,fn,dn,gn,mn,yn,vn,pn,Sn,wn,An,bn,Tn,In,Mn,En,On,Nn,Hn,Cn,Dn,_n,kn={exports:{}};function Ln(){if(fn)return ln;fn=1;var e=Ze(),t=Object.defineProperty;return ln=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function Rn(){if(dn)return kn.exports;dn=1;var e=hn?cn:(hn=1,cn=!1),t=Ze(),n=Ln(),r="__core-js_shared__",o=kn.exports=t[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.39.0",mode:e?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"}),kn.exports}function Yn(){if(mn)return gn;mn=1;var e=Rn();return gn=function(t,n){return e[t]||(e[t]=n||{})}}function Pn(){if(vn)return yn;vn=1;var e=Gt(),t=Object;return yn=function(n){return t(e(n))}}function jn(){if(Sn)return pn;Sn=1;var e=zt(),t=Pn(),n=e({}.hasOwnProperty);return pn=Object.hasOwn||function(e,r){return n(t(e),r)},pn}function Bn(){if(An)return wn;An=1;var e=zt(),t=0,n=Math.random(),r=e(1..toString);return wn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function Fn(){if(Tn)return bn;Tn=1;var e=Ze(),t=Yn(),n=jn(),r=Bn(),o=tn(),i=nn(),a=e.Symbol,s=t("wks"),u=i?a.for||a:a&&a.withoutSetter||r;return bn=function(e){return n(s,e)||(s[e]=o&&n(a,e)?a[e]:u("Symbol."+e)),s[e]}}function Un(){if(Mn)return In;Mn=1;var e=nt(),t=Xt(),n=rn(),r=sn(),o=un(),i=Fn(),a=TypeError,s=i("toPrimitive");return In=function(i,u){if(!t(i)||n(i))return i;var c,h=r(i,s);if(h){if(void 0===u&&(u="default"),c=e(h,i,u),!t(c)||n(c))return c;throw new a("Can't convert object to primitive value")}return void 0===u&&(u="number"),o(i,u)}}function xn(){if(On)return En;On=1;var e=Un(),t=rn();return En=function(n){var r=e(n,"string");return t(r)?r:r+""}}function Zn(){if(Hn)return Nn;Hn=1;var e=Ze(),t=Xt(),n=e.document,r=t(n)&&t(n.createElement);return Nn=function(e){return r?n.createElement(e):{}},Nn}function $n(){if(Dn)return Cn;Dn=1;var e=et(),t=Qe(),n=Zn();return Cn=!e&&!t((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function Vn(){if(_n)return Xe;_n=1;var e=et(),t=nt(),n=function(){if(rt)return $t;rt=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return $t.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,$t}(),r=Vt(),o=Wt(),i=xn(),a=jn(),s=$n(),u=Object.getOwnPropertyDescriptor;return Xe.f=e?u:function(e,c){if(e=o(e),c=i(c),s)try{return u(e,c)}catch(e){}if(a(e,c))return r(!t(n.f,e,c),e[c])},Xe}var zn,Kn,Jn,Gn,Wn,qn,Xn,Qn={};function er(){if(Kn)return zn;Kn=1;var e=et(),t=Qe();return zn=e&&t((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}function tr(){if(Gn)return Jn;Gn=1;var e=Xt(),t=String,n=TypeError;return Jn=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function nr(){if(Wn)return Qn;Wn=1;var e=et(),t=$n(),n=er(),r=tr(),o=xn(),i=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",h="writable";return Qn.f=e?n?function(e,t,n){if(r(e),t=o(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var i=s(e,t);i&&i[h]&&(e[t]=n.value,n={configurable:c in n?n[c]:i[c],enumerable:u in n?n[u]:i[u],writable:!1})}return a(e,t,n)}:a:function(e,n,s){if(r(e),n=o(n),r(s),t)try{return a(e,n,s)}catch(e){}if("get"in s||"set"in s)throw new i("Accessors not supported");return"value"in s&&(e[n]=s.value),e},Qn}function rr(){if(Xn)return qn;Xn=1;var e=et(),t=nr(),n=Vt();return qn=e?function(e,r,o){return t.f(e,r,n(1,o))}:function(e,t,n){return e[t]=n,e}}var or,ir,ar,sr,ur,cr,hr,lr,fr,dr,gr,mr,yr,vr,pr,Sr={exports:{}};function wr(){if(sr)return ar;sr=1;var e=zt(),t=qt(),n=Rn(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),ar=n.inspectSource}function Ar(){if(lr)return hr;lr=1;var e=Yn(),t=Bn(),n=e("keys");return hr=function(e){return n[e]||(n[e]=t(e))}}function br(){return dr?fr:(dr=1,fr={})}function Tr(){if(mr)return gr;mr=1;var e,t,n,r=function(){if(cr)return ur;cr=1;var e=Ze(),t=qt(),n=e.WeakMap;return ur=t(n)&&/native code/.test(String(n))}(),o=Ze(),i=Xt(),a=rr(),s=jn(),u=Rn(),c=Ar(),h=br(),l="Object already initialized",f=o.TypeError,d=o.WeakMap;if(r||u.state){var g=u.state||(u.state=new d);g.get=g.get,g.has=g.has,g.set=g.set,e=function(e,t){if(g.has(e))throw new f(l);return t.facade=e,g.set(e,t),t},t=function(e){return g.get(e)||{}},n=function(e){return g.has(e)}}else{var m=c("state");h[m]=!0,e=function(e,t){if(s(e,m))throw new f(l);return t.facade=e,a(e,m,t),t},t=function(e){return s(e,m)?e[m]:{}},n=function(e){return s(e,m)}}return gr={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!i(n)||(r=t(n)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}},gr}function Ir(){if(yr)return Sr.exports;yr=1;var e=zt(),t=Qe(),n=qt(),r=jn(),o=et(),i=function(){if(ir)return or;ir=1;var e=et(),t=jn(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,o=t(n,"name"),i=o&&"something"===function(){}.name,a=o&&(!e||e&&r(n,"name").configurable);return or={EXISTS:o,PROPER:i,CONFIGURABLE:a}}().CONFIGURABLE,a=wr(),s=Tr(),u=s.enforce,c=s.get,h=String,l=Object.defineProperty,f=e("".slice),d=e("".replace),g=e([].join),m=o&&!t((function(){return 8!==l((function(){}),"length",{value:8}).length})),y=String(String).split("String"),v=Sr.exports=function(e,t,n){"Symbol("===f(h(t),0,7)&&(t="["+d(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!r(e,"name")||i&&e.name!==t)&&(o?l(e,"name",{value:t,configurable:!0}):e.name=t),m&&n&&r(n,"arity")&&e.length!==n.arity&&l(e,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&l(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var a=u(e);return r(a,"source")||(a.source=g(y,"string"==typeof t?t:"")),e};return Function.prototype.toString=v((function(){return n(this)&&c(this).source||a(this)}),"toString"),Sr.exports}function Mr(){if(pr)return vr;pr=1;var e=qt(),t=nr(),n=Ir(),r=Ln();return vr=function(o,i,a,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:i;if(e(a)&&n(a,c,s),s.global)u?o[i]=a:r(i,a);else{try{s.unsafe?o[i]&&(u=!0):delete o[i]}catch(e){}u?o[i]=a:t.f(o,i,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return o},vr}var Er,Or,Nr,Hr,Cr,Dr,_r,kr,Lr,Rr,Yr,Pr,jr,Br,Fr,Ur,xr,Zr={};function $r(){if(Hr)return Nr;Hr=1;var e=function(){if(Or)return Er;Or=1;var e=Math.ceil,t=Math.floor;return Er=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},Er}();return Nr=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function Vr(){if(Dr)return Cr;Dr=1;var e=$r(),t=Math.max,n=Math.min;return Cr=function(r,o){var i=e(r);return i<0?t(i+o,0):n(i,o)}}function zr(){if(kr)return _r;kr=1;var e=$r(),t=Math.min;return _r=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function Kr(){if(Rr)return Lr;Rr=1;var e=zr();return Lr=function(t){return e(t.length)}}function Jr(){if(Pr)return Yr;Pr=1;var e=Wt(),t=Vr(),n=Kr(),r=function(r){return function(o,i,a){var s=e(o),u=n(s);if(0===u)return!r&&-1;var c,h=t(a,u);if(r&&i!=i){for(;u>h;)if((c=s[h++])!=c)return!0}else for(;u>h;h++)if((r||h in s)&&s[h]===i)return r||h||0;return!r&&-1}};return Yr={includes:r(!0),indexOf:r(!1)}}function Gr(){if(Br)return jr;Br=1;var e=zt(),t=jn(),n=Wt(),r=Jr().indexOf,o=br(),i=e([].push);return jr=function(e,a){var s,u=n(e),c=0,h=[];for(s in u)!t(o,s)&&t(u,s)&&i(h,s);for(;a.length>c;)t(u,s=a[c++])&&(~r(h,s)||i(h,s));return h},jr}function Wr(){return Ur?Fr:(Ur=1,Fr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var qr,Xr,Qr,eo,to,no,ro,oo,io,ao={};function so(){if(Qr)return Xr;Qr=1;var e=Qt(),t=zt(),n=function(){if(xr)return Zr;xr=1;var e=Gr(),t=Wr().concat("length","prototype");return Zr.f=Object.getOwnPropertyNames||function(n){return e(n,t)},Zr}(),r=(qr||(qr=1,ao.f=Object.getOwnPropertySymbols),ao),o=tr(),i=t([].concat);return Xr=e("Reflect","ownKeys")||function(e){var t=n.f(o(e)),a=r.f;return a?i(t,a(e)):t},Xr}function uo(){if(to)return eo;to=1;var e=jn(),t=so(),n=Vn(),r=nr();return eo=function(o,i,a){for(var s=t(i),u=r.f,c=n.f,h=0;h<s.length;h++){var l=s[h];e(o,l)||a&&e(a,l)||u(o,l,c(i,l))}},eo}function co(){if(io)return oo;io=1;var e=Ze(),t=Vn().f,n=rr(),r=Mr(),o=Ln(),i=uo(),a=function(){if(ro)return no;ro=1;var e=Qe(),t=qt(),n=/#|\.prototype\./,r=function(n,r){var u=i[o(n)];return u===s||u!==a&&(t(r)?e(r):!!r)},o=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},i=r.data={},a=r.NATIVE="N",s=r.POLYFILL="P";return no=r}();return oo=function(s,u){var c,h,l,f,d,g=s.target,m=s.global,y=s.stat;if(c=m?e:y?e[g]||o(g,{}):e[g]&&e[g].prototype)for(h in u){if(f=u[h],l=s.dontCallGetSet?(d=t(c,h))&&d.value:c[h],!a(m?h:g+(y?".":"#")+h,s.forced)&&void 0!==l){if(typeof f==typeof l)continue;i(f,l)}(s.sham||l&&l.sham)&&n(f,"sham",!0),r(c,h,f,s)}}}var ho,lo,fo,go,mo,yo,vo,po,So,wo,Ao={};function bo(){if(lo)return ho;lo=1;var e=Gr(),t=Wr();return ho=Object.keys||function(n){return e(n,t)},ho}function To(){if(mo)return go;mo=1;var e=Qt();return go=e("document","documentElement")}function Io(){if(vo)return yo;vo=1;var e,t=tr(),n=function(){if(fo)return Ao;fo=1;var e=et(),t=er(),n=nr(),r=tr(),o=Wt(),i=bo();return Ao.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var a,s=o(t),u=i(t),c=u.length,h=0;c>h;)n.f(e,a=u[h++],s[a]);return e},Ao}(),r=Wr(),o=br(),i=To(),a=Zn(),s=Ar(),u="prototype",c="script",h=s("IE_PROTO"),l=function(){},f=function(e){return"<"+c+">"+e+"</"+c+">"},d=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,n,o;g="undefined"!=typeof document?document.domain&&e?d(e):(n=a("iframe"),o="java"+c+":",n.style.display="none",i.appendChild(n),n.src=String(o),(t=n.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):d(e);for(var s=r.length;s--;)delete g[u][r[s]];return g()};return o[h]=!0,yo=Object.create||function(e,r){var o;return null!==e?(l[u]=t(e),o=new l,l[u]=null,o[h]=e):o=g(),void 0===r?o:n.f(o,r)},yo}function Mo(){if(So)return po;So=1;var e=Fn(),t=Io(),n=nr().f,r=e("unscopables"),o=Array.prototype;return void 0===o[r]&&n(o,r,{configurable:!0,value:t(null)}),po=function(e){o[r][e]=!0}}function Eo(e,t,n,r,o){return Oo(t,No(e,t),n,r,o)}function Oo(e,t,n,r,o,i){const a=Go(t,n,r);if(o&&t!==a)throw new RangeError(nh(e,t,n,r,i));return a}function No(e,t){const n=e[t];if(void 0===n)throw new TypeError(oh(t));return n}function Ho(e){return null!==e&&/object|function/.test(typeof e)}function Co(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),i=1;i<r;i++)o[i-1]=arguments[i];const a=e(n,...o);return t.set(n,a),a}}function Do(e){return _o({name:e},1)}function _o(e,t){return Yo((e=>({value:e,configurable:1,writable:!t})),e)}function ko(e){return Yo((e=>({get:e,configurable:1})),e)}function Lo(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function Ro(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function Yo(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function Po(e,t,n){const r={};for(let o=0;o<t.length;o++){const i=t[o];r[i]=e(i,o,n)}return r}function jo(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function Bo(e,t){const n={};for(const r of e)n[r]=t[r];return n}function Fo(e,t){const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n}function Uo(e){e={...e};const t=Object.keys(e);for(const n of t)void 0===e[n]&&delete e[n];return e}function xo(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function Zo(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function $o(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 Vo(e){return e[0].toUpperCase()+e.substring(1)}function zo(e){return e.slice().sort()}function Ko(e,t){return String(t).padStart(e,"0")}function Jo(e,t){return Math.sign(e-t)}function Go(e,t,n){return Math.min(Math.max(e,t),n)}function Wo(e,t){return[Math.floor(e/t),qo(e,t)]}function qo(e,t){return(e%t+t)%t}function Xo(e,t){return[Qo(e,t),ei(e,t)]}function Qo(e,t){return Math.trunc(e/t)||0}function ei(e,t){return e%t||0}function ti(e){return.5===Math.abs(e%1)}function ni(e,t,n){let r=0,o=0;for(let i=0;i<=t;i++){const t=e[n[i]],a=Xh[i],s=qh/a,[u,c]=Xo(t,s);r+=c*a,o+=u}const[i,a]=Xo(r,qh);return[o+i,a]}function ri(e,t,n){const r={};for(let o=t;o>=0;o--){const t=Xh[o];r[n[o]]=Qo(e,t),e=ei(e,t)}return r}function oi(e){if(void 0!==e)return ai(e)}function ii(e){return fi(ai(e))}function ai(e){return li(Il(e))}function si(e){if(null==e)throw new TypeError("Cannot be null or undefined");return e}function ui(e,t){if(null==t)throw new RangeError(oh(e));return t}function ci(e){if(!Ho(e))throw new TypeError(th);return e}function hi(e,t){if(typeof t!==e)throw new TypeError(rh(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t));return t}function li(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(!Number.isInteger(e))throw new RangeError(Gc(t,e));return e||0}function fi(e){if(e<=0)throw new RangeError(Wc(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",e));return e}function di(e){if("symbol"==typeof e)throw new TypeError(eh);return String(e)}function gi(e,t){return Ho(e)?String(e):bl(e,t)}function mi(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(Qc(e));return e}function yi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if("bigint"==typeof e)throw new TypeError(Xc(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(qc(t,e));return e}function vi(e,t){return Math.trunc(yi(e,t))||0}function pi(e,t){return li(yi(e,t),t)}function Si(e,t){return fi(vi(e,t),t)}function wi(e,t){let[n,r]=Xo(t,qh),o=e+n;const i=Math.sign(o);return i&&i===-Math.sign(r)&&(o-=i,r+=i*qh),[o,r]}function Ai(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return wi(e[0]+t[0]*n,e[1]+t[1]*n)}function bi(e,t){return wi(e[0],e[1]+t)}function Ti(e,t){return Ai(t,e,-1)}function Ii(e,t){return Jo(e[0],t[0])||Jo(e[1],t[1])}function Mi(e,t,n){return-1===Ii(e,t)||1===Ii(e,n)}function Ei(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=BigInt(qh/t);return[Number(e/n),Number(e%n)*t]}function Oi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=qh/t,[r,o]=Xo(e,n);return[r,o*t]}function Ni(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,r]=e,o=Math.floor(r/t),i=qh/t;return BigInt(n)*BigInt(i)+BigInt(o)}function Hi(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,[i,a]=Xo(o,t);return r*(qh/t)+(i+(n?a/t:0))}function Ci(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Wo;const[r,o]=e,[i,a]=n(o,t);return[r*(qh/t)+i,a]}function Di(e,t){const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function _i(e){return Eo(e,"isoYear",Wl,Gl,1),e.isoYear===Wl?Eo(e,"isoMonth",4,12,1):e.isoYear===Gl&&Eo(e,"isoMonth",1,9,1),e}function ki(e){return Li({...e,...Ul,isoHour:12}),e}function Li(e){const t=Eo(e,"isoYear",Wl,Gl,1),n=t===Wl?1:t===Gl?-1:0;return n&&Ri(Ui({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function Ri(e){if(!e||Mi(e,Jl,Kl))throw new RangeError(Hh);return e}function Yi(e){return ni(e,5,Rl)[1]}function Pi(e){const[t,n]=Wo(e,qh);return[ri(n,5,Rl),t]}function ji(e){return Bi(e)[0]}function Bi(e){return Ci(e,Jh)}function Fi(e){return $i(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function Ui(e){const t=Fi(e);if(void 0!==t){const[n,r]=Xo(t,$h);return[n,r*Kh+(e.isoMicrosecond||0)*zh+(e.isoNanosecond||0)]}}function xi(e,t){const[n,r]=Pi(Yi(e)-t);return Ri(Ui({...e,isoDay:e.isoDay+r,...n}))}function Zi(){return $i(...arguments)/Vh}function $i(){const[e,t]=Vi(...arguments),n=e.valueOf();if(!isNaN(n))return n-t*$h}function Vi(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,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;const s=e===Wl?1:e===Gl?-1:0,u=new Date;return u.setUTCHours(r,o,i,a),u.setUTCFullYear(e,t-1,n+s),[u,s]}function zi(e,t){let[n,r]=bi(e,t);r<0&&(r+=qh,n-=1);const[o,i]=Wo(r,Kh),[a,s]=Wo(i,zh);return Ki(n*$h+o,a,s)}function Ki(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)-zl)/$h)*Math.sign(e),o=new Date(e-r*$h);return Ro(Pl,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+r,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,n])}function Ji(e){return[e.isoYear,e.isoMonth,e.isoDay]}function Gi(){return Ql}function Wi(e,t){switch(t){case 2:return Xi(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function qi(e){return Xi(e)?366:365}function Xi(e){return e%4==0&&(e%100!=0||e%400==0)}function Qi(e){const[t,n]=Vi(e.isoYear,e.isoMonth,e.isoDay);return qo(t.getUTCDay()-n,7)||7}function ea(e){let{isoYear:t}=e;return t<1?["bce",1-t]:["ce",t]}function ta(e){const t=Fi(e);if(t<ef)return ea(e);const n=Di(cd(Sl),t),{era:r,eraYear:o}=Qu(n,Sl);return[r,o]}function na(e){return ra(e),aa(e,1),e}function ra(e){return ia(e,1),e}function oa(e){return xo(Yl,e,ia(e))}function ia(e,t){const{isoYear:n}=e,r=Eo(e,"isoMonth",1,Gi(),t);return{isoYear:n,isoMonth:r,isoDay:Eo(e,"isoDay",1,Wi(n,r),t)}}function aa(e,t){return Ro(Rl,[Eo(e,"isoHour",0,23,t),Eo(e,"isoMinute",0,59,t),Eo(e,"isoSecond",0,59,t),Eo(e,"isoMillisecond",0,999,t),Eo(e,"isoMicrosecond",0,999,t),Eo(e,"isoNanosecond",0,999,t)])}function sa(e){return void 0===e?0:Sf(ci(e))}function ua(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=Sa(e);const n=wf(e),r=Af(e,t);return[Sf(e),r,n]}function ca(e){return wf(Sa(e))}function ha(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,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:4;t=Sa(t);let a=vf(t,r,o),s=ya(t),u=Mf(t,i);const c=yf(t,r,o,1);return null==a?a=Math.max(n,c):Ma(a,c),s=va(s,c,1),e&&(u=(e=>e<4?(e+2)%4:e)(u)),[a,c,s,u]}function la(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=arguments.length>2?arguments[2]:void 0,r=ya(e=wa(e,nf));const o=Mf(e,7);let i=yf(e,t);return i=ui(nf,i),r=va(r,i,void 0,n),[i,r,o]}function fa(e){return bf(Sa(e))}function da(e,t){return ga(Sa(e),t)}function ga(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=pa(e);return[Mf(e,4),...ma(yf(e,t),n)]}function ma(e,t){return null!=e?[Xh[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function ya(e){const t=e[of];return void 0===t?1:vi(t,of)}function va(e,t,n,r){const o=r?qh:Xh[t+1];if(o){const n=Xh[t];if(o%((e=Oo(of,e,1,o/n-(r?0:1),1))*n))throw new RangeError(rh(of,e))}else e=Oo(of,e,1,n?10**9:1,1);return e}function pa(e){let t=e[af];if(void 0!==t){if("number"!=typeof t){if("auto"===di(t))return;throw new RangeError(rh(af,t))}t=Oo(af,Math.floor(t),0,9,1)}return t}function Sa(e){return void 0===e?{}:ci(e)}function wa(e,t){return"string"==typeof e?{[t]:e}:ci(e)}function Aa(e){if(void 0!==e){if(Ho(e))return Object.assign(Object.create(null),e);throw new TypeError(th)}}function ba(e,t){return e&&Object.assign(Object.create(null),e,{overflow:cf[t]})}function Ta(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,i=t[e];if(void 0===i)return o?r:void 0;if(i=di(i),"auto"===i)return o?r:null;let a=xh[i];if(void 0===a&&(a=Dl[i]),void 0===a)throw new RangeError(uh(e,i,xh));return Oo(e,a,r,n,1,Zh),a}function Ia(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 i=di(o),a=t[i];if(void 0===a)throw new RangeError(uh(e,i,t));return a}function Ma(e,t){if(t>e)throw new RangeError(Rh)}function Ea(e){return{branding:_f,epochNanoseconds:e}}function Oa(e,t,n){return{branding:Df,calendar:n,timeZone:t,epochNanoseconds:e}}function Na(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Hf,calendar:t,...Bo(Fl,e)}}function Ha(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Nf,calendar:t,...Bo(jl,e)}}function Ca(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Ef,calendar:t,...Bo(jl,e)}}function Da(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Of,calendar:t,...Bo(jl,e)}}function _a(e){return{branding:Cf,...Bo(Bl,e)}}function ka(e){return{branding:kf,sign:Ws(e),...Bo(Ol,e)}}function La(e){return Ci(e.epochNanoseconds,Kh)[0]}function Ra(e){return e.epochNanoseconds}function Ya(e){return"string"==typeof e?e:bl(e.id)}function Pa(e,t){return e===t||Ya(e)===Ya(t)}function ja(e,t){return Hi(Qs(e),Xh[t],1)}function Ba(e,t,n,r,o,i,a){const s=El[n],u={...t,[s]:t[s]+r},c=a(e,o,t),h=a(e,o,u);return[i(c),i(h)]}function Fa(e,t,n){const r=Hi(Ti(t,n));if(!r)throw new RangeError(wh);return Hi(Ti(t,e))/r}function Ua(e,t,n,r){return xa(e,Va(t,n),r)}function xa(e,t,n){const[r,o]=Za(e,t,n);return Li({...Fs(e,o),...r})}function Za(e,t,n){return Pi(Xa(Yi(e),t,n))}function $a(e){return Xa(e,Gh,7)}function Va(e,t){return Xh[e]*t}function za(e){const t=Ka(e);return[t,Fs(t,1)]}function Ka(e){return xl(6,e)}function Ja(e,t,n){const r=Math.min(ru(e),6);return eu(qa(Qs(e,r),t,n),r)}function Ga(e,t,n,r,o,i,a,s,u,c){if(0===r&&1===o)return e;const h=zs(r,s)?Vs(s)&&r<6&&n>=6?ts:es:ns;let[l,f,d]=h(e,t,n,r,o,i,a,s,u,c);return d&&7!==r&&(l=((e,t,n,r,o,i,a,s)=>{const u=Ws(e);for(let c=r+1;c<=n;c++){if(7===c&&7!==n)continue;const r=Ll(c,e);r[El[c]]+=u;const h=Hi(Ti(a(s(o,i,r)),t));if(h&&Math.sign(h)!==u)break;e=r}return e})(l,f,n,Math.max(6,r),a,s,u,c)),l}function Wa(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/qh)(e);return[Xa(t,n,r),0]}return qa(e,Va(t,n),r,o)}function qa(e,t,n,r){let[o,i]=e;r&&i<0&&(i+=qh,o-=1);const[a,s]=Wo(Xa(i,t,n),qh);return wi(o+a,s)}function Xa(e,t,n){return Qa(e/t,n)*t}function Qa(e,t){return Lf[t](e)}function es(e,t,n,r,o,i){const a=Ws(e),s=Qs(e),u=Wa(s,r,o,i),c=Ti(s,u),h=Math.sign(u[0]-s[0])===a,l=eu(u,Math.min(n,6));return[{...e,...l},Ai(t,c),h]}function ts(e,t,n,r,o,i,a,s,u,c){const h=Ws(e),l=Hi(Qs(e,5)),f=Va(r,o);let d=Xa(l,f,i);const[g,m]=Ba(a,{...e,...kl},6,h,s,u,c),y=d-Hi(Ti(g,m));let v=0;y&&Math.sign(y)!==h?t=bi(g,d):(v+=h,d=Xa(y,f,i),t=bi(m,d));const p=tu(d);return[{...e,...p,days:e.days+v},t,Boolean(v)]}function ns(e,t,n,r,o,i,a,s,u,c){const h=Ws(e),l=El[r],f=Ll(r,e);7===r&&(e={...e,weeks:e.weeks+Math.trunc(e.days/7)});const d=Qo(e[l],o)*o;f[l]=d;const[g,m]=Ba(a,f,r,o*h,s,u,c),y=d+Fa(t,g,m)*h*o,v=Xa(y,o,i),p=Math.sign(v-y)===h;return f[l]=v,[f,p?m:g,p]}function rs(e,t,n,r){const[o,i,a,s]=(e=>{const t=ga(e=Sa(e));return[e.timeZone,...t]})(r),u=void 0!==o;return((e,t,n,r,o,i)=>{n=qa(n,o,r,1);const a=t.getOffsetNanosecondsFor(n);return ds(zi(n,a),i)+(e?ps($a(a)):"Z")})(u,t(u?e(o):Rf),n.epochNanoseconds,i,a,s)}function os(e,t,n){const[r,o,i,a,s,u]=(e=>{e=Sa(e);const t=bf(e),n=pa(e),r=If(e),o=Mf(e,4),i=yf(e,4);return[t,Tf(e),r,o,...ma(i,n)]})(n);return((e,t,n,r,o,i,a,s,u,c)=>{r=qa(r,u,s,1);const h=e(n).getOffsetNanosecondsFor(r);return ds(zi(r,h),c)+ps($a(h),a)+((e,t)=>1!==t?"["+(2===t?"!":"")+Ya(e)+"]":"")(n,i)+Ss(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,i,a,s,u)}function is(e,t){const[n,r,o,i]=(e=>(e=Sa(e),[bf(e),...ga(e)]))(t);return a=e.calendar,s=n,u=i,ds(xa(e,o,r),u)+Ss(a,s);var a,s,u}function as(e,t){return n=e.calendar,r=e,o=fa(t),gs(r)+Ss(n,o);var n,r,o}function ss(e,t){return ls(e.calendar,ms,e,fa(t))}function us(e,t){return ls(e.calendar,ys,e,fa(t))}function cs(e,t){const[n,r,o]=da(t);return i=o,vs(Za(e,r,n)[0],i);var i}function hs(e,t){const[n,r,o]=da(t,3);return r>1&&(e={...e,...Ja(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?Gs(e):e,{hours:o,minutes:i}=r,[a,s]=Ci(Qs(r,3),Jh,Xo);Xs(a);const u=As(s,t),c=t>=0||!n||u;return(n<0?"-":"")+"P"+fs({Y:Ts(r.years),M:Ts(r.months),W:Ts(r.weeks),D:Ts(r.days)})+(o||i||a||c?"T"+fs({H:Ts(o),M:Ts(i),S:Ts(a,c)+u}):"")})(e,o)}function ls(e,t,n,r){const o=Ya(e),i=r>1||0===r&&o!==vl;return 1===r?o===vl?t(n):gs(n):i?gs(n)+ws(o,2===r):t(n)}function fs(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function ds(e,t){return gs(e)+"T"+vs(e,t)}function gs(e){return ms(e)+"-"+Uh(e.isoDay)}function ms(e){const{isoYear:t}=e;return(t<0||t>9999?bs(t)+Ko(6,Math.abs(t)):Ko(4,t))+"-"+Uh(e.isoMonth)}function ys(e){return Uh(e.isoMonth)+"-"+Uh(e.isoDay)}function vs(e,t){const n=[Uh(e.isoHour),Uh(e.isoMinute)];return-1!==t&&n.push(Uh(e.isoSecond)+((e,t,n,r)=>As(e*Kh+t*zh+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function ps(e){if(1===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0))return"";const[t,n]=Wo(Math.abs(e),Wh),[r,o]=Wo(n,Gh),[i,a]=Wo(o,Jh);return bs(e)+Uh(t)+":"+Uh(r)+(i||a?":"+Uh(i)+As(a):"")}function Ss(e,t){if(1!==t){const n=Ya(e);if(t>1||0===t&&n!==vl)return ws(n,2===t)}return""}function ws(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function As(e,t){let n=Ko(9,e);return n=void 0===t?n.replace(Bf,""):n.slice(0,t),n?"."+n:""}function bs(e){return e<0?"-":"+"}function Ts(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function Is(e,t){const{epochNanoseconds:n}=e,r=(t.getOffsetNanosecondsFor?t:t(e.timeZone)).getOffsetNanosecondsFor(n),o=zi(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function Ms(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0;if(void 0!==n&&1===r&&(1===r||a))return xi(t,n);const s=e.getPossibleInstantsFor(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=Ui(t);r&&(n=$a(n));for(const t of e){let e=Hi(Ti(t,o));if(r&&(e=$a(e)),e===n)return t}})(s,t,n,i);if(void 0!==e)return e;if(0===r)throw new RangeError(Oh)}return a?Ui(t):Es(e,t,o,s)}function Es(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(Nh);if(r.length)return r[3===n?1:0];const o=Ui(t),i=((e,t)=>{const n=e.getOffsetNanosecondsFor(bi(t,-qh));return Ns(e.getOffsetNanosecondsFor(bi(t,qh))-n)})(e,o),a=i*(2===n?-1:1);return(r=e.getPossibleInstantsFor(zi(o,a)))[2===n?0:r.length-1]}function Os(e){if(Math.abs(e)>=qh)throw new RangeError(Mh);return e}function Ns(e){if(e>qh)throw new RangeError(Eh);return e}function Hs(e,t,n){return Ea(Ri(Ai(t.epochNanoseconds,(e=>{if(nu(e))throw new RangeError(kh);return Qs(e,5)})(e?Gs(n):n))))}function Cs(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Object.create(null);const a=t(r.timeZone),s=e(r.calendar);return{...r,...Rs(a,s,r,n?Gs(o):o,i)}}function Ds(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const{calendar:i}=n;return Na(Ys(e(i),n,t?Gs(r):r,o),i)}function _s(e,t,n,r,o){const{calendar:i}=n;return Ha(Ps(e(i),n,t?Gs(r):r,o),i)}function ks(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const i=n.calendar,a=e(i);let s=js(a,n);t&&(r=Js(r)),r.sign<0&&(s=a.dateAdd(s,{..._l,months:1}),s=Fs(s,-1));const u=a.dateAdd(s,r,o);return Ca(js(a,u),i)}function Ls(e,t,n){return _a(Bs(t,e?Gs(n):n)[0])}function Rs(e,t,n,r,o){const i=Qs(r,5);let a=n.epochNanoseconds;if(nu(r)){const s=Ff(n,e);a=Ai(Es(e,{...Ps(t,s,{...r,...kl},o),...Bo(Rl,s)}),i)}else a=Ai(a,i),sa(o);return{epochNanoseconds:Ri(a)}}function Ys(e,t,n,r){const[o,i]=Bs(t,n);return Li({...Ps(e,t,{...n,...kl,days:n.days+i},r),...o})}function Ps(e,t,n,r){if(n.years||n.months||n.weeks)return e.dateAdd(t,n,r);sa(r);const o=n.days+Qs(n,5)[0];return o?ki(Fs(t,o)):t}function js(e,t){return Fs(t,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)-e.day(t))}function Bs(e,t){const[n,r]=Qs(t,5),[o,i]=Pi(Yi(e)+r);return[o,n+i]}function Fs(e,t){return t?{...e,...Ki(Fi(e)+t*$h)}:e}function Us(e,t,n){const r=e(n.calendar);return Vs(n)?[n,r,t(n.timeZone)]:[{...n,...Ul},r]}function xs(e){return e?Ra:Ui}function Zs(e){return e?$o(Rs,e):Ys}function $s(e){return e?$o(Fu,e):Uu}function Vs(e){return e&&e.epochNanoseconds}function zs(e,t){return e<=6-(Vs(t)?1:0)}function Ks(e,t,n,r,o,i,a){const s=e(Sa(a).relativeTo),u=Math.max(ru(o),ru(i));if(zs(u,s))return ka(qs(((e,t,n,r)=>{const o=Ai(Qs(e),Qs(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(Hh);return{..._l,...eu(o,n)}})(o,i,u,r)));if(!s)throw new RangeError(_h);r&&(i=Gs(i));const[c,h,l]=Us(t,n,s),f=Zs(l),d=$s(l),g=f(h,c,o);return ka(d(h,c,f(h,g,i),u))}function Js(e){return ka(Gs(e))}function Gs(e){const t={};for(const n of El)t[n]=-1*e[n]||0;return t}function Ws(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:El,n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(Dh);n=t}}return n}function qs(e){for(const t of Cl)Oo(t,e[t],-Uf,Uf,1);return Xs(Hi(Qs(e),Jh)),e}function Xs(e){if(!Number.isSafeInteger(e))throw new RangeError(Ch)}function Qs(e){return ni(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,El)}function eu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const[n,r]=e,o=ri(r,t,El);if(o[El[t]]+=n*(qh/Xh[t]),!Number.isFinite(o[El[t]]))throw new RangeError(Hh);return o}function tu(e){return ri(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,El)}function nu(e){return Boolean(Ws(e,Hl))}function ru(e){let t=9;for(;t>0&&!e[El[t]];t--);return t}function ou(e,t){return[e,t]}function iu(e){const t=Math.floor(e/Yf)*Yf;return[t,t+Yf]}function au(e){const t=yu(e);if(void 0===t)throw new RangeError(Yh(e));return t}function su(e){const t=du(bl(e));if(!t||t.m)throw new RangeError(Yh(e));return Ha(t.p?hu(t):lu(t))}function uu(e){if(e.calendar!==vl)throw new RangeError(Ph(e.calendar))}function cu(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=Iu(e.timeZone),i=xf(o);return Oa(Ms(i,na(e),t,n,r,!i.v,e.m),o,uc(e.calendar))}function hu(e){return fu(Li(na(e)))}function lu(e){return fu(ki(ra(e)))}function fu(e){return{...e,calendar:uc(e.calendar)}}function du(e){const t=td.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:vu(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...pu(e.slice(5)),...Su(e[16]),p:Boolean(e[6]),m:n,offset:n?void 0:t}})(t):void 0}function gu(e){const t=Qf.exec(e);return t?(e=>({isoYear:vu(e),isoMonth:parseInt(e[4]),isoDay:1,...Su(e[5])}))(t):void 0}function mu(e){const t=ed.exec(e);return t?(e=>({isoYear:Xl,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...Su(e[3])}))(t):void 0}function yu(e,t){const n=rd.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(Ph(n));return Os((Tu(e[2])*Wh+Tu(e[3])*Gh+Tu(e[4])*Jh+wu(e[5]||""))*bu(e[1]))})(n,t):void 0}function vu(e){const t=bu(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(Ph(-0));return t*n}function pu(e){const t=Tu(e[3]);return{...Pi(wu(e[4]||""))[0],isoHour:Tu(e[1]),isoMinute:Tu(e[2]),isoSecond:60===t?59:t}}function Su(e){let t,n;const r=[];if(e.replace(od,((e,o,i)=>{const a=Boolean(o),[s,u]=i.split("=").reverse();if(u){if("u-ca"===u)r.push(s),t||(t=a);else if(a||/[A-Z]/.test(u))throw new RangeError(Ph(e))}else{if(n)throw new RangeError(Ph(e));n=s}return""})),r.length>1&&t)throw new RangeError(Ph(e));return{timeZone:n,calendar:r[0]||vl}}function wu(e){return parseInt(e.padEnd(9,"0"))}function Au(e){return new RegExp(`^${e}$`,"i")}function bu(e){return e&&"+"!==e?-1:1}function Tu(e){return void 0===e?0:parseInt(e)}function Iu(e){const t=Eu(e);return"number"==typeof t?ps(t):t?(e=>{if(sd.test(e))throw new RangeError(Ih);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?Vo(e).replace(/island|noronha|murdo|rivadavia|urville/,Vo):e)))).join("/")})(e):Rf}function Mu(e){const t=Eu(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:Rf}function Eu(e){const t=yu(e=e.toUpperCase(),1);return void 0!==t?t:e!==Rf?ad(e):void 0}function Ou(e,t){return Ii(e.epochNanoseconds,t.epochNanoseconds)}function Nu(e,t){return Ii(e.epochNanoseconds,t.epochNanoseconds)}function Hu(e,t){return Cu(e,t)||Du(e,t)}function Cu(e,t){return Jo(Fi(e),Fi(t))}function Du(e,t){return Jo(Yi(e),Yi(t))}function _u(e,t){if(e===t)return 1;const n=Ya(e),r=Ya(t);if(n===r)return 1;try{return Mu(n)===Mu(r)}catch(e){}}function ku(e,t,n,r){const o=ha(e,Aa(r),3,5),i=$u(t.epochNanoseconds,n.epochNanoseconds,...o);return ka(e?Gs(i):i)}function Lu(e,t,n,r,o,i){const a=Gu(r.calendar,o.calendar),s=Aa(i),[u,c,h,l]=ha(n,s,5),f=r.epochNanoseconds,d=o.epochNanoseconds,g=Ii(d,f);let m;if(g)if(u<6)m=$u(f,d,u,c,h,l);else{const n=t(((e,t)=>{if(!_u(e,t))throw new RangeError(Th);return e})(r.timeZone,o.timeZone)),i=e(a);m=xu(i,n,r,o,g,u,s),m=Ga(m,d,u,c,h,l,i,r,Ra,$o(Rs,n))}else m=_l;return ka(n?Gs(m):m)}function Ru(e,t,n,r,o){const i=Gu(n.calendar,r.calendar),a=Aa(o),[s,u,c,h]=ha(t,a,6),l=Ui(n),f=Ui(r),d=Ii(f,l);let g;if(d)if(s<=6)g=$u(l,f,s,u,c,h);else{const t=e(i);g=Zu(t,n,r,d,s,a),g=Ga(g,f,s,u,c,h,t,n,Ui,Ys)}else g=_l;return ka(t?Gs(g):g)}function Yu(e,t,n,r,o){const i=Gu(n.calendar,r.calendar),a=Aa(o);return ju(t,(()=>e(i)),n,r,...ha(t,a,6,9,6),a)}function Pu(e,t,n,r,o){const i=Gu(n.calendar,r.calendar),a=Aa(o),s=ha(t,a,9,9,8),u=e(i);return ju(t,(()=>u),js(u,n),js(u,r),...s,a)}function ju(e,t,n,r,o,i,a,s,u){const c=Ui(n),h=Ui(r);let l;if(Ii(h,c))if(6===o)l=$u(c,h,o,i,a,s);else{const e=t();l=e.dateUntil(n,r,o,u),6===i&&1===a||(l=Ga(l,h,o,i,a,s,e,n,Ui,Ps))}else l=_l;return ka(e?Gs(l):l)}function Bu(e,t,n,r){const o=Aa(r),[i,a,s,u]=ha(e,o,5,5),c=Xa(Ju(t,n),Va(a,s),u),h={..._l,...tu(c,i)};return ka(e?Gs(h):h)}function Fu(e,t,n,r,o,i){const a=Ii(r.epochNanoseconds,n.epochNanoseconds);return a?o<6?Vu(n.epochNanoseconds,r.epochNanoseconds,o):xu(t,e,n,r,a,o,i):_l}function Uu(e,t,n,r,o){const i=Ui(t),a=Ui(n),s=Ii(a,i);return s?r<=6?Vu(i,a,r):Zu(e,t,n,s,r,o):_l}function xu(e,t,n,r,o,i,a){const[s,u,c]=((e,t,n,r)=>{function o(){return l={...Fs(s,c++*-r),...a},f=Es(e,l),Ii(u,f)===-r}const i=Ff(t,e),a=Bo(Rl,i),s=Ff(n,e),u=n.epochNanoseconds;let c=0;const h=Ju(i,s);let l,f;if(Math.sign(h)===-r&&c++,o()&&(-1===r||o()))throw new RangeError(wh);const d=Hi(Ti(f,u));return[i,l,d]})(t,n,r,o);var h,l;return{...6===i?(h=s,l=u,{..._l,days:zu(h,l)}):e.dateUntil(s,u,i,a),...tu(c)}}function Zu(e,t,n,r,o,i){const[a,s,u]=((e,t,n)=>{let r=t,o=Ju(e,t);return Math.sign(o)===-n&&(r=Fs(t,-n),o+=qh*n),[e,r,o]})(t,n,r);return{...e.dateUntil(a,s,o,i),...tu(u)}}function $u(e,t,n,r,o,i){return{..._l,...eu(Wa(Ti(e,t),r,o,i),n)}}function Vu(e,t,n){return{..._l,...eu(Ti(e,t),n)}}function zu(e,t){return Ku(Fi(e),Fi(t))}function Ku(e,t){return Math.trunc((t-e)/$h)}function Ju(e,t){return Yi(t)-Yi(e)}function Gu(e,t){if(!Pa(e,t))throw new RangeError(Ah);return e}function Wu(e){function t(e){return((e,t)=>({...Qu(e,t),F:e.month,day:parseInt(e.day)}))(Di(n,e),r)}const n=cd(e),r=cc(e);return{id:e,O:qu(t),B:Xu(t)}}function qu(e){return Co((t=>{const n=Fi(t);return e(n)}),WeakMap)}function Xu(e){const t=e(0).year-ql;return Co((n=>{let r,o=$i(n-t);const i=[],a=[];do{o+=400*$h}while((r=e(o)).year<=n);do{o+=(1-r.day)*$h,r.year===n&&(i.push(o),a.push(r.F)),o-=$h}while((r=e(o)).year>=n);return{k:i.reverse(),C:Bh(a.reverse())}}))}function Qu(e,t){let n,r,o=ec(e);if(e.era){const i=wl[t];void 0!==i&&(n="islamic"===t?"ah":e.era.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),"bc"===n||"b"===n?n="bce":"ad"!==n&&"a"!==n||(n="ce"),r=o,o=yc(r,i[n]||0))}return{era:n,eraYear:r,year:o}}function ec(e){return parseInt(e.relatedYear||e.year)}function tc(e){const{year:t,F:n,day:r}=this.O(e),{C:o}=this.B(t);return[t,o[n]+1,r]}function nc(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.B(e).k[t-1]+(n-1)*$h}function rc(e){const t=sc(this,e),n=sc(this,e-1),r=t.length;if(r>n.length){const e=pc(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function oc(e){return Ku(nc.call(this,e),nc.call(this,e+1))}function ic(e,t){const{k:n}=this.B(e);let r=t+1,o=n;return r>n.length&&(r=1,o=this.B(e+1).k),Ku(n[t-1],o[r-1])}function ac(e){return this.B(e).k.length}function sc(e,t){return Object.keys(e.B(t).C)}function uc(e){if((e=e.toLowerCase())!==vl&&e!==pl&&cc(e)!==cc(cd(e).resolvedOptions().calendar))throw new RangeError(bh(e));return e}function cc(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function hc(e){return this.R(e)[0]}function lc(e){return this.R(e)[1]}function fc(e){const[t]=this.h(e);return Ku(this.q(t),Fi(e))+1}function dc(e){const t=hd.exec(e);if(!t)throw new RangeError(mh(e));return[parseInt(t[1]),Boolean(t[2])]}function gc(e,t,n){return e+(t||n&&e>=n?1:0)}function mc(e,t){return e-(t&&e>=t?1:0)}function yc(e,t){return(t+e)*(Math.sign(t)||1)||0}function vc(e){return wl[Sc(e)]}function pc(e){return Al[Sc(e)]}function Sc(e){return cc(e.id||vl)}function wc(e,t,n,r){const o=Ic(n,r,dl,[],ol);if(void 0!==o.timeZone){const r=n.dateFromFields(o),i=Ec(o),a=e(o.timeZone);return{epochNanoseconds:Ms(t(a),{...r,...i},void 0!==o.offset?au(o.offset):void 0),timeZone:a}}return{...n.dateFromFields(o),...Ul}}function Ac(e,t,n){const r=Ic(e,t,dl,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]);return e.dateFromFields(r,n)}function bc(e,t,n,r){const o=Ic(e,t,ll,r);return e.yearMonthFromFields(o,n)}function Tc(e,t,n,r){const o=Ic(e,n,dl,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=Xl),e.monthDayFromFields(o,r)}function Ic(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 Mc(t,[...e.fields(n),...o].sort(),r)}function Mc(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:!n;const o={};let i,a=0;for(const r of t){if(r===i)throw new RangeError(ah(r));if("constructor"===r||"__proto__"===r)throw new RangeError(ih(r));let t=e[r];if(void 0!==t)a=1,gd[r]&&(t=gd[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(oh(r));o[r]=yl[r]}i=r}if(r&&!a)throw new TypeError(sh(t));return o}function Ec(e,t){return aa(md({...yl,...e}),t)}function Oc(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];const a=[...e.fields(r),...o].sort();let s=Mc(t,a,i);const u=Mc(n,a);return s=e.mergeFields(s,u),Mc(s,a,[])}function Nc(e,t){const n=Ic(e,t,ml);return e.monthDayFromFields(n)}function Hc(e,t,n){const r=Ic(e,t,fl);return e.yearMonthFromFields(r,n)}function Cc(e,t,n,r,o){t=Bo(n=e.fields(n),t),r=Mc(r,o=e.fields(o),[]);let i=e.mergeFields(t,r);return i=Mc(i,[...n,...o].sort(),[]),e.dateFromFields(i)}function Dc(e,t){let{era:n,eraYear:r,year:o}=t;const i=vc(e);if(void 0!==n||void 0!==r){if(void 0===n||void 0===r)throw new TypeError(lh);if(!i)throw new RangeError(hh);const e=i[n];if(void 0===e)throw new RangeError(dh(n));const t=yc(r,e);if(void 0!==o&&o!==t)throw new RangeError(fh);o=t}else if(void 0===o)throw new TypeError(gh(i));return o}function _c(e,t,n,r){let{month:o,monthCode:i}=t;if(void 0!==i){const t=((e,t,n,r)=>{const o=e.U(n),[i,a]=dc(t);let s=gc(i,a,o);if(a){const t=pc(e);if(void 0===t)throw new RangeError(Sh);if(t>0){if(s>t)throw new RangeError(Sh);if(void 0===o){if(1===r)throw new RangeError(Sh);s--}}else{if(s!==-t)throw new RangeError(Sh);if(void 0===o&&1===r)throw new RangeError(Sh)}}return s})(e,i,n,r);if(void 0!==o&&o!==t)throw new RangeError(yh);o=t,r=1}else if(void 0===o)throw new TypeError(vh);return Oo("month",o,1,e.L(n),r)}function kc(e,t,n,r,o){return Eo(t,"day",1,e.j(r,n),o)}function Lc(e,t,n,r){let o=0;const i=[];for(const e of n)void 0!==t[e]?o=1:i.push(e);if(Object.assign(e,t),o)for(const t of r||i)delete e[t]}function Rc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vl;return Oa(e.epochNanoseconds,t,n)}function Yc(e,t){return Na(Ff(t,e))}function Pc(e,t){return Ha(Ff(t,e))}function jc(e,t){return _a(Ff(t,e))}function Bc(e,t){return{...e,calendar:t}}function Fc(e,t){if(e===t)return e;const n=Ya(e),r=Ya(t);if(n===r||n===vl)return t;if(r===vl)return e;throw new RangeError(Ah)}function Uc(e,t){return n=>n===vl?e:n===pl||n===Sl?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),ud(n))}function xc(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=Fo(r,o),e)||Object.assign(o,t),n&&(o.timeZone=Rf,["full","long"].includes(o.timeStyle)&&(o.timeStyle="medium")),o)}function Zc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$c;const[n,,,r]=e;return function(o){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$d;for(var a=arguments.length,s=new Array(a>2?a-2:0),u=2;u<a;u++)s[u-2]=arguments[u];const c=t(r&&r(...s),o,i,n),h=c.resolvedOptions();return[c,...Vc(e,h,s)]}}function $c(e,t,n,r){if(n=r(n),e){if(void 0!==n.timeZone)throw new TypeError(jh);n.timeZone=e}return new Zl(t,n)}function Vc(e,t,n){const[,r,o]=e;return n.map((e=>(e.calendar&&((e,t,n)=>{if((n||e!==vl)&&e!==t)throw new RangeError(Ah)})(Ya(e.calendar),t.calendar,o),r(e,t))))}function zc(e){const t=Kc();return zi(t,e.getOffsetNanosecondsFor(t))}function Kc(){return Oi(Date.now(),Kh)}function Jc(){return Xd||(Xd=(new Zl).resolvedOptions().timeZone)}!function(){if(wo)return xe;wo=1;var e=co(),t=Jr().includes,n=Qe(),r=Mo();e({target:"Array",proto:!0,forced:n((function(){return!Array(1).includes()}))},{includes:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")}();const Gc=(e,t)=>`Non-integer ${e}: ${t}`,Wc=(e,t)=>`Non-positive ${e}: ${t}`,qc=(e,t)=>`Non-finite ${e}: ${t}`,Xc=e=>`Cannot convert bigint to ${e}`,Qc=e=>`Invalid bigint: ${e}`,eh="Cannot convert Symbol to string",th="Invalid object",nh=(e,t,n,r,o)=>o?nh(e,o[t],o[n],o[r]):rh(e,t)+`; must be between ${n}-${r}`,rh=(e,t)=>`Invalid ${e}: ${t}`,oh=e=>`Missing ${e}`,ih=e=>`Invalid field ${e}`,ah=e=>`Duplicate field ${e}`,sh=e=>"No valid fields: "+e.join(),uh=(e,t,n)=>rh(e,t)+"; must be "+Object.keys(n).join(),ch="Invalid calling context",hh="Forbidden era/eraYear",lh="Mismatching era/eraYear",fh="Mismatching year/eraYear",dh=e=>`Invalid era: ${e}`,gh=e=>"Missing year"+(e?"/era/eraYear":""),mh=e=>`Invalid monthCode: ${e}`,yh="Mismatching month/monthCode",vh="Missing month/monthCode",ph="Cannot guess year",Sh="Invalid leap month",wh="Invalid protocol results",Ah="Mismatching Calendars",bh=e=>`Invalid Calendar: ${e}`,Th="Mismatching TimeZones",Ih="Forbidden ICU TimeZone",Mh="Out-of-bounds offset",Eh="Out-of-bounds TimeZone gap",Oh="Invalid TimeZone offset",Nh="Ambiguous offset",Hh="Out-of-bounds date",Ch="Out-of-bounds duration",Dh="Cannot mix duration signs",_h="Missing relativeTo",kh="Cannot use large units",Lh="Required smallestUnit or largestUnit",Rh="smallestUnit > largestUnit",Yh=e=>`Cannot parse: ${e}`,Ph=e=>`Invalid substring: ${e}`,jh="Cannot specify TimeZone",Bh=$o(Po,((e,t)=>t)),Fh=$o(Po,((e,t,n)=>n)),Uh=$o(Ko,2),xh={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},Zh=Object.keys(xh),$h=864e5,Vh=1e3,zh=1e3,Kh=1e6,Jh=1e9,Gh=6e10,Wh=36e11,qh=864e11,Xh=[1,zh,Kh,Jh,Gh,Wh,qh],Qh=Zh.slice(0,6),el=zo(Qh),tl=["offset"],nl=["timeZone"],rl=Qh.concat(tl),ol=rl.concat(nl),il=["era","eraYear"],al=il.concat(["year"]),sl=["year"],ul=["monthCode"],cl=["month"].concat(ul),hl=["day"],ll=cl.concat(sl),fl=ul.concat(sl),dl=hl.concat(ll),gl=hl.concat(cl),ml=hl.concat(ul),yl=Fh(Qh,0),vl="iso8601",pl="gregory",Sl="japanese",wl={[pl]:{bce:-1,ce:0},[Sl]:{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}},Al={chinese:13,dangi:13,hebrew:-6},bl=$o(hi,"string"),Tl=$o(hi,"boolean"),Il=$o(hi,"number"),Ml=$o(hi,"function"),El=Zh.map((e=>e+"s")),Ol=zo(El),Nl=El.slice(0,6),Hl=El.slice(6),Cl=Hl.slice(1),Dl=Bh(El),_l=Fh(El,0),kl=Fh(Nl,0),Ll=$o(Zo,El),Rl=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],Yl=["isoDay","isoMonth","isoYear"],Pl=Rl.concat(Yl),jl=zo(Yl),Bl=zo(Rl),Fl=zo(Pl),Ul=Fh(Bl,0),xl=$o(Zo,Pl),Zl=Intl.DateTimeFormat,$l="en-GB",Vl=1e8,zl=Vl*$h,Kl=[Vl,0],Jl=[-Vl,0],Gl=275760,Wl=-271821,ql=1970,Xl=1972,Ql=12,ef=$i(1868,9,8),tf=Co(ta,WeakMap),nf="smallestUnit",rf="unit",of="roundingIncrement",af="fractionalSecondDigits",sf="relativeTo",uf={constrain:0,reject:1},cf=Object.keys(uf),hf={compatible:0,reject:1,earlier:2,later:3},lf={reject:0,use:1,prefer:2,ignore:3},ff={auto:0,never:1,critical:2,always:3},df={auto:0,never:1,critical:2},gf={auto:0,never:1},mf={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},yf=$o(Ta,nf),vf=$o(Ta,"largestUnit"),pf=$o(Ta,rf),Sf=$o(Ia,"overflow",uf),wf=$o(Ia,"disambiguation",hf),Af=$o(Ia,"offset",lf),bf=$o(Ia,"calendarName",ff),Tf=$o(Ia,"timeZoneName",df),If=$o(Ia,"offset",gf),Mf=$o(Ia,"roundingMode",mf),Ef="PlainYearMonth",Of="PlainMonthDay",Nf="PlainDate",Hf="PlainDateTime",Cf="PlainTime",Df="ZonedDateTime",_f="Instant",kf="Duration",Lf=[Math.floor,e=>ti(e)?Math.floor(e):Math.round(e),Math.ceil,e=>ti(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>ti(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=>ti(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],Rf="UTC",Yf=5184e3,Pf=Zi(1847),jf=Zi((new Date).getUTCFullYear()+10),Bf=/0+$/,Ff=Co(Is,WeakMap),Uf=2**32-1,xf=Co((e=>{const t=Eu(e);return"object"==typeof t?new $f(t):new Zf(t||0)}));class Zf{constructor(e){this.v=e}getOffsetNanosecondsFor(){return this.v}getPossibleInstantsFor(e){return[xi(e,this.v)]}l(){}}class $f{constructor(e){this.$=(e=>{function t(e){const t=Go(e,i,a),[s,u]=iu(t),c=r(s),h=r(u);return c===h?c:n(o(s,u),c,h,e)}function n(t,n,r,o){let i,a;for(;(void 0===o||void 0===(i=o<t[0]?n:o>=t[1]?r:void 0))&&(a=t[1]-t[0]);){const n=t[0]+Math.floor(a/2);e(n)===r?t[1]=n:t[0]=n+1}return i}const r=Co(e),o=Co(ou);let i=Pf,a=jf;return{G(e){const n=t(e-86400),r=t(e+86400),o=e-n,i=e-r;if(n===r)return[o];const a=t(o);return a===t(i)?[e-a]:n>r?[o,i]:[]},V:t,l(e,t){const s=Go(e,i,a);let[u,c]=iu(s);const h=Yf*t,l=t<0?()=>c>i||(i=s,0):()=>u<a||(a=s,0);for(;l();){const i=r(u),a=r(c);if(i!==a){const r=o(u,c);n(r,i,a);const s=r[0];if((Jo(s,e)||1)===t)return s}u+=h,c+=h}}}})((e=>t=>{const n=Di(e,t*Vh);return Zi(ec(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}getOffsetNanosecondsFor(e){return this.$.V(ji(e))*Jh}getPossibleInstantsFor(e){const[t,n]=[Zi((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*Kh+r.isoMicrosecond*zh+r.isoNanosecond];var r;return this.$.G(t).map((e=>Ri(bi(Oi(e,Jh),n))))}l(e,t){const[n,r]=Bi(e),o=this.$.l(n+(t>0||r?1:0),t);if(void 0!==o)return Oi(o,Jh)}}const Vf="([+−-])",zf="(?:[.,](\\d{1,9}))?",Kf=`(?:(?:${Vf}(\\d{6}))|(\\d{4}))-?(\\d{2})`,Jf="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+zf+")?)?",Gf=Vf+Jf,Wf=Kf+"-?(\\d{2})(?:[T ]"+Jf+"(Z|"+Gf+")?)?",qf="\\[(!?)([^\\]]*)\\]",Xf=`((?:${qf}){0,9})`,Qf=Au(Kf+Xf),ed=Au("(?:--)?(\\d{2})-?(\\d{2})"+Xf),td=Au(Wf+Xf),nd=Au("T?"+Jf+"(?:"+Gf+")?"+Xf),rd=Au(Gf),od=new RegExp(qf,"g"),id=Au(`${Vf}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${zf}H)?(?:(\\d+)${zf}M)?(?:(\\d+)${zf}S)?)?`),ad=Co((e=>new Zl($l,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),sd=/^(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$/,ud=Co(Wu),cd=Co((e=>new Zl($l,{calendar:e,timeZone:Rf,era:"short",year:"numeric",month:"short",day:"numeric"}))),hd=/^M(\d{2})(L?)$/,ld={era:gi,eraYear:vi,year:vi,month:Si,monthCode:gi,day:Si},fd=Fh(Qh,vi),dd=Fh(El,pi),gd=Object.assign({},ld,fd,dd,{offset:gi}),md=$o(jo,Qh,Rl),yd={dateAdd(e,t,n){const r=sa(n);let o,{years:i,months:a,weeks:s,days:u}=t;if(u+=Qs(t,5)[0],i||a)o=((e,t,n,r,o)=>{let[i,a,s]=e.h(t);if(n){const[t,r]=e.I(i,a);i+=n,a=gc(t,r,e.U(i)),a=Oo("month",a,1,e.L(i),o)}return r&&([i,a]=e._(i,a,r)),s=Oo("day",s,1,e.j(i,a),o),e.q(i,a,s)})(this,e,i,a,r);else{if(!s&&!u)return e;o=Fi(e)}return o+=(7*s+u)*$h,ki(Ki(o))},dateUntil(e,t,n){if(n<=7){let r=0,o=zu({...e,...Ul},{...t,...Ul});return 7===n&&([r,o]=Xo(o,7)),{..._l,weeks:r,days:o}}const r=this.h(e),o=this.h(t);let[i,a,s]=((e,t,n,r,o,i,a)=>{let s=o-t,u=i-n,c=a-r;if(s||u){const h=Math.sign(s||u);let l=e.j(o,i),f=0;if(Math.sign(c)===-h){const r=l;[o,i]=e._(o,i,-h),s=o-t,u=i-n,l=e.j(o,i),f=h<0?-r:l}if(c=a-Math.min(r,l)+f,s){const[r,a]=e.I(t,n),[c,l]=e.I(o,i);if(u=c-r||Number(l)-Number(a),Math.sign(u)===-h){const n=h<0&&-e.L(o);s=(o-=h)-t,u=i-gc(r,a,e.U(o))+(n||e.L(o))}}}return[s,u,c]})(this,...r,...o);return 8===n&&(a+=this.J(i,r[0]),i=0),{..._l,years:i,months:a,days:s}},dateFromFields(e,t){const n=sa(t),r=Dc(this,e),o=_c(this,e,r,n),i=kc(this,e,o,r,n);return Ha(ki(this.P(r,o,i)),this.id||vl)},yearMonthFromFields(e,t){const n=sa(t),r=Dc(this,e),o=_c(this,e,r,n);return Ca(_i(this.P(r,o,1)),this.id||vl)},monthDayFromFields(e,t){const n=sa(t),r=!this.id,{monthCode:o,year:i,month:a}=e;let s,u,c,h,l;if(void 0!==o){[s,u]=dc(o),l=No(e,"day");const t=this.N(s,u,l);if(!t)throw new RangeError(ph);if([c,h]=t,void 0!==a&&a!==h)throw new RangeError(yh);r&&(h=Oo("month",h,1,Ql,1),l=Oo("day",l,1,Wi(void 0!==i?i:c,h),n))}else{c=void 0===i&&r?Xl:Dc(this,e),h=_c(this,e,c,n),l=kc(this,e,h,c,n);const t=this.U(c);u=h===t,s=mc(h,t);const o=this.N(s,u,l);if(!o)throw new RangeError(ph);[c,h]=o}return Da(ki(this.P(c,h,l)),this.id||vl)},fields(e){return vc(this)&&e.includes("year")?[...e,...il]:e},mergeFields(e,t){const n=Object.assign(Object.create(null),e);return Lc(n,t,cl),vc(this)&&(Lc(n,t,al),this.id===Sl&&Lc(n,t,gl,il)),n},inLeapYear(e){const[t]=this.h(e);return this.K(t)},monthsInYear(e){const[t]=this.h(e);return this.L(t)},daysInMonth(e){const[t,n]=this.h(e);return this.j(t,n)},daysInYear(e){const[t]=this.h(e);return this.X(t)},dayOfYear:fc,era(e){return this.ee(e)[0]},eraYear(e){return this.ee(e)[1]},monthCode(e){const[t,n]=this.h(e),[r,o]=this.I(t,n);return((e,t)=>"M"+Uh(e)+(t?"L":""))(r,o)},dayOfWeek:Qi,daysInWeek:()=>7},vd={dayOfYear:fc,h:Ji,q:$i},pd=Object.assign({},vd,{weekOfYear:hc,yearOfWeek:lc,R(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=qi(f+e),r=e||1,o=t(qo(u+n*r,7));return h=(n+(o-c)*r)/7}const r=this.id?1:4,o=Qi(e),i=this.dayOfYear(e),a=qo(o-1,7),s=i-1,u=qo(a-s,7),c=t(u);let h,l=Math.floor((s-c)/7)+1,f=e.isoYear;return l?l>n(0)&&(l=1,f++):(l=n(-1),f--),[l,f,h]}}),Sd={dayOfYear:fc,h:tc,q:nc,weekOfYear:hc,yearOfWeek:lc,R:()=>[]},wd=Uc(Object.assign({},yd,pd,{h:Ji,ee(e){return this.id===pl?ea(e):this.id===Sl?tf(e):[]},I:(e,t)=>[t,0],N(e,t){if(!t)return[Xl,e]},K:Xi,U(){},L:Gi,J:e=>e*Ql,j:Wi,X:qi,P:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),q:$i,_:(e,t,n)=>(e+=Qo(n,Ql),(t+=ei(n,Ql))<1?(e--,t+=Ql):t>Ql&&(e++,t-=Ql),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Object.assign({},yd,Sd,{h:tc,ee(e){const t=this.O(e);return[t.era,t.eraYear]},I(e,t){const n=rc.call(this,e);return[mc(t,n),n===t]},N(e,t,n){let[r,o,i]=tc.call(this,{isoYear:Xl,isoMonth:Ql,isoDay:31});const a=rc.call(this,r),s=o===a;1===(Jo(e,mc(o,a))||Jo(Number(t),Number(s))||Jo(n,i))&&r--;for(let o=0;o<100;o++){const i=r-o,a=rc.call(this,i),s=gc(e,t,a);if(t===(s===a)&&n<=ic.call(this,i,s))return[i,s]}},K(e){const t=oc.call(this,e);return t>oc.call(this,e-1)&&t>oc.call(this,e+1)},U:rc,L:ac,J(e,t){const n=t+e,r=Math.sign(e),o=r<0?-1:0;let i=0;for(let e=t;e!==n;e+=r)i+=ac.call(this,e+o);return i},j:ic,X:oc,P(e,t,n){return Ki(nc.call(this,e,t,n))},q:nc,_(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError(Hh);if(n<0)for(;t<1;)t+=ac.call(this,--e);else{let n;for(;t>(n=ac.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.O(e).year},month(e){const{year:t,F:n}=this.O(e),{C:r}=this.B(t);return r[n]+1},day(e){return this.O(e).day}})),Ad="numeric",bd=["timeZoneName"],Td={month:Ad,day:Ad},Id={year:Ad,month:Ad},Md=Object.assign({},Id,{day:Ad}),Ed={hour:Ad,minute:Ad,second:Ad},Od=Object.assign({},Md,Ed),Nd=Object.assign({},Od,{timeZoneName:"short"}),Hd=Object.keys(Id),Cd=Object.keys(Td),Dd=Object.keys(Md),_d=Object.keys(Ed),kd=["dateStyle"],Ld=Hd.concat(kd),Rd=Cd.concat(kd),Yd=Dd.concat(kd,["weekday"]),Pd=_d.concat(["dayPeriod","timeStyle"]),jd=Yd.concat(Pd),Bd=jd.concat(bd),Fd=bd.concat(Pd),Ud=bd.concat(Yd),xd=bd.concat(["day","weekday"],Pd),Zd=bd.concat(["year","weekday"],Pd),$d={},Vd=[xc(jd,Od),La],zd=[xc(Bd,Nd),La,0,(e,t)=>{const n=Ya(e.timeZone);if(t&&Ya(t.timeZone)!==n)throw new RangeError(Th);return n}],Kd=[xc(jd,Od,bd),Fi],Jd=[xc(Yd,Md,Fd),Fi],Gd=[xc(Pd,Ed,Ud),e=>Yi(e)/Kh],Wd=[xc(Ld,Id,xd),Fi,1],qd=[xc(Rd,Td,Zd),Fi,1];let Xd;function Qd(e,t,n,r,o){function i(){if(!(this instanceof i))throw new TypeError(ch);Jg(this,t(...arguments))}function a(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)}),Do(t))}function s(t){const n=Kg(t);if(!n||n.branding!==e)throw new TypeError(ch);return n}return Object.defineProperties(i.prototype,{...ko(Yo(a,n)),..._o(Yo(a,r)),...Lo("Temporal."+e)}),Object.defineProperties(i,{..._o(o),...Do(e)}),[i,e=>{const t=Object.create(i.prototype);return Jg(t,e),t},s]}function eg(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 tg(e){if(Kg(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function ng(e,t){const n={};for(const r in e)n[r]=(e,n)=>{let{o:o}=e;const i=Kg(n)||{},{branding:a}=i,s=a===Nf||t.includes(a)?i:pg(n);return o[r](s)};return n}function rg(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return(r=t,"string"==typeof r?wd(r):(o=r,Object.assign(Object.create(em),{i:o})))[n](e);var r,o};return t}function og(){throw new TypeError("Cannot use valueOf")}function ig(e){let{calendar:t}=e;return"string"==typeof t?new Xm(t):t}function ag(e,t){if(t=Aa(t),Ho(e)){const n=Kg(e);if(n&&n.branding===Of)return sa(t),n;const r=Ig(e);return Tc(Fm(r||vl),!r,e,t)}const n=function(e,t){const n=mu(bl(t));if(n)return uu(n),Da(ra(n));const r=su(t),{calendar:o}=r,i=e(o),[a,s,u]=i.h(r),[c,h]=i.I(a,s),[l,f]=i.N(c,h,u);return Da(ki(i.P(l,f,u)),o)}(wd,e);return sa(t),n}function sg(e,t,n){return Os(ai(t.call(e,lm(Ea(n)))))}function ug(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:um;const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=$o(t[o],e,Ml(e[o]));return r}function cg(e,t){return"string"==typeof e?xf(e):ug(e,t)}function hg(e){return cg(e,cm)}function lg(e){if(Ho(e)){const t=Kg(e);if(t)switch(t.branding){case _f:return t;case Df:return Ea(t.epochNanoseconds)}}return function(e){const t=du(e=gi(e));if(!t)throw new RangeError(Yh(e));let n;if(t.m)n=0;else{if(!t.offset)throw new RangeError(Yh(e));n=au(t.offset)}return t.timeZone&&yu(t.timeZone,1),Ea(xi(na(t),n))}(e)}function fg(e,t,n){const r=t.l(lg(n).epochNanoseconds,e);return r?lm(Ea(r)):null}function dg(e){return Ho(e)?(Kg(e)||{}).timeZone||mm(e):(e=>Iu(function(e){const t=du(e);return t&&(t.timeZone||t.m&&Rf||t.offset)||e}(bl(e))))(e)}function gg(e,t){if(Ho(e)){const n=Kg(e)||{};switch(n.branding){case Cf:return sa(t),n;case Hf:return sa(t),_a(n);case Df:return sa(t),jc(hg,n)}return function(e,t){const n=sa(t);return _a(Ec(Mc(e,el,[],1),n))}(e,t)}return sa(t),function(e){let t,n=(e=>{const t=nd.exec(e);return t?(Su(t[10]),pu(t)):void 0})(bl(e));if(!n){if(n=du(e),!n)throw new RangeError(Yh(e));if(!n.p)throw new RangeError(Yh(e));if(n.m)throw new RangeError(Ph("Z"));uu(n)}if((t=gu(e))&&oa(t))throw new RangeError(Yh(e));if((t=mu(e))&&oa(t))throw new RangeError(Yh(e));return _a(aa(n,1))}(e)}function mg(e){return void 0===e?void 0:gg(e)}function yg(e,t){if(t=Aa(t),Ho(e)){const n=Kg(e);return n&&n.branding===Ef?(sa(t),n):bc(jm(Tg(e)),e,t)}const n=function(e,t){const n=gu(bl(t));if(n)return uu(n),Ca(_i(ra(n)));const r=su(t);return Ca(js(e(r.calendar),r))}(wd,e);return sa(t),n}function vg(e,t){if(t=Aa(t),Ho(e)){const n=Kg(e)||{};switch(n.branding){case Hf:return sa(t),n;case Nf:return sa(t),Na({...n,...Ul});case Df:return sa(t),Yc(hg,n)}return function(e,t,n){const r=Ic(e,t,dl,[],Qh),o=sa(n);return Na(Li({...e.dateFromFields(r,ba(n,o)),...Ec(r,o)}))}(Bm(Tg(e)),e,t)}const n=function(e){const t=du(bl(e));if(!t||t.m)throw new RangeError(Yh(e));return Na(hu(t))}(e);return sa(t),n}function pg(e,t){if(t=Aa(t),Ho(e)){const n=Kg(e)||{};switch(n.branding){case Nf:return sa(t),n;case Hf:return sa(t),Ha(n);case Df:return sa(t),Pc(hg,n)}return Ac(Bm(Tg(e)),e,t)}const n=su(e);return sa(t),n}function Sg(e,t,n){return ii(t.call(e,Im(Ha(n,e))))}function wg(e){return t=>"string"==typeof t?wd(t):((e,t)=>{const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=$o(t[o],e,e[o]);return r})(t,e)}function Ag(e){if(Ho(e)){const t=Kg(e);return t&&t.branding===kf?t:function(e){const t=Mc(e,Ol);return ka(qs({..._l,...t}))}(e)}return function(e){const t=(e=>{const t=id.exec(e);return t?(e=>{function t(e,t,i){let a=0,s=0;if(i&&([a,o]=Wo(o,Xh[i])),void 0!==e){if(r)throw new RangeError(Ph(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(Ph(e));return t})(e),n=1,t&&(o=wu(t)*(Xh[i]/Jh),r=1)}return a+s}let n=0,r=0,o=0,i={...Ro(El,[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)]),...ri(o,2,El)};if(!n)throw new RangeError(sh(El));return bu(e[1])<0&&(i=Gs(i)),i})(t):void 0})(bl(e));if(!t)throw new RangeError(Yh(e));return ka(qs(t))}(e)}function bg(e){if(void 0!==e){if(Ho(e)){const t=Kg(e)||{};switch(t.branding){case Df:case Nf:return t;case Hf:return Ha(t)}const n=Tg(e);return{...wc(dg,cg,Bm(n),e),calendar:n}}return function(e){const t=du(bl(e));if(!t)throw new RangeError(Yh(e));if(t.timeZone)return cu(t,t.offset?au(t.offset):void 0);if(t.m)throw new RangeError(Yh(e));return lu(t)}(e)}}function Tg(e){return Ig(e)||vl}function Ig(e){const{calendar:t}=e;if(void 0!==t)return Mg(t)}function Mg(e){return Ho(e)?(Kg(e)||{}).calendar||Qm(e):(e=>uc(function(e){const t=du(e)||gu(e)||mu(e);return t?t.calendar:e}(bl(e))))(e)}function Eg(e,t){if(t=Aa(t),Ho(e)){const n=Kg(e);if(n&&n.branding===Df)return ua(t),n;const r=Tg(e);return function(e,t,n,r,o,i){const a=Ic(n,o,dl,nl,ol),s=e(a.timeZone),[u,c,h]=ua(i),l=n.dateFromFields(a,ba(i,u)),f=Ec(a,u);return Oa(Ms(t(s),{...l,...f},void 0!==a.offset?au(a.offset):void 0,c,h),s,r)}(dg,cg,Bm(r),r,e,t)}return function(e,t){const n=du(bl(e));if(!n||!n.timeZone)throw new RangeError(Yh(e));const{offset:r}=n,o=r?au(r):void 0,[,i,a]=ua(t);return cu(n,o,i,a)}(e,t)}function Og(e){return Yo((e=>t=>e(Ng(t))),e)}function Ng(e){return Ff(e,hg)}function Hg(){const e=Zl.prototype,t=Object.getOwnPropertyDescriptors(e),n=Object.getOwnPropertyDescriptors(Zl),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))return new r(e,t);iy.set(this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Zl(e,t),r=n.resolvedOptions(),o=r.locale,i=Bo(Object.keys(t),r),a=Co(_g),s=function(){let e;for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];const u=r.map(((t,n)=>{const r=Kg(t),o=(r||{}).branding;if(n&&e&&e!==o)throw new TypeError("Mismatching types for formatting");return e=o,r}));return e?a(e)(o,i,...u):[n,...r]};return s.u=n,s}(e,t))};for(const e in t){const n=t[e],o=e.startsWith("format")&&Cg(e);"function"==typeof n.value?n.value="constructor"===e?r:o||Dg(e):o&&(n.get=function(){return o.bind(this)})}return n.prototype.value=Object.create(e,t),Object.defineProperties(r,n),r}function Cg(e){return function(){const t=iy.get(this),[n,...r]=t(...arguments);return n[e](...r)}}function Dg(e){return function(){return iy.get(this).u[e](...arguments)}}function _g(e){const t=kg[e];if(!t)throw new TypeError((e=>`Cannot format ${e}`)(e));return Zc(t,Co($c))}const kg={Instant:Vd,PlainDateTime:Kd,PlainDate:Jd,PlainTime:Gd,PlainYearMonth:Wd,PlainMonthDay:qd},Lg=Zc(Vd),Rg=Zc(zd),Yg=Zc(Kd),Pg=Zc(Jd),jg=Zc(Gd),Bg=Zc(Wd),Fg=Zc(qd),Ug={era:function(e){if(void 0!==e)return bl(e)},eraYear:oi,year:ai,month:ii,daysInMonth:ii,daysInYear:ii,inLeapYear:Tl,monthsInYear:ii},xg={monthCode:bl},Zg={day:ii},$g={dayOfWeek:ii,dayOfYear:ii,weekOfYear:function(e){if(void 0!==e)return ii(e)},yearOfWeek:oi,daysInWeek:ii},Vg=Object.assign({},Ug,xg,Zg,$g),zg=new WeakMap,Kg=zg.get.bind(zg),Jg=zg.set.bind(zg),Gg={...ng(Ug,[Ef]),...ng($g,[]),...ng(xg,[Ef,Of]),...ng(Zg,[Of])},Wg=rg(Vg),qg=rg({...Ug,...xg}),Xg=rg({...xg,...Zg}),Qg={calendarId:e=>Ya(e.calendar)},em=Yo(((e,t)=>function(n){const{i:r}=this;return e(r[t](Im(Ha(n,r))))}),Vg),tm=Po((e=>t=>t[e]),El.concat("sign")),nm=Po(((e,t)=>e=>e[Rl[t]]),Qh),rm={epochSeconds:function(e){return ji(e.epochNanoseconds)},epochMilliseconds:La,epochMicroseconds:function(e){return Ni(e.epochNanoseconds,zh)},epochNanoseconds:function(e){return Ni(e.epochNanoseconds)}},om=$o(Fo,new Set(["branding"])),[im,am,sm]=Qd(Of,$o((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:vl,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Xl;const i=vi(t),a=vi(n),s=e(r);return Da(ki(ra({isoYear:vi(o),isoMonth:i,isoDay:a})),s)}),Mg),{...Qg,...Xg},{getISOFields:om,getCalendar:ig,with(e,t,n){return am(function(e,t,n,r,o){const i=Aa(o);return((e,t,n,r)=>{const o=Oc(e,t,n,dl);return e.monthDayFromFields(o,r)})(e(t.calendar),n,r,i)}(Zm,e,this,tg(t),n))},equals:(e,t)=>function(e,t){return!Cu(e,t)&&Pa(e.calendar,t.calendar)}(e,ag(t)),toPlainDate(e,t){return Im(function(e,t,n,r){return((e,t,n)=>Cc(e,t,ml,ci(n),sl))(e(t.calendar),n,r)}(xm,e,this,t))},toLocaleString(e,t,n){const[r,o]=Fg(t,n,e);return r.format(o)},toString:us,toJSON:e=>us(e),valueOf:og},{from:(e,t)=>am(ag(e,t))}),um={getOffsetNanosecondsFor:sg,getPossibleInstantsFor(e,t,n){const r=[...t.call(e,bm(Na(n,vl)))].map((e=>fm(e).epochNanoseconds)),o=r.length;return o>1&&(r.sort(Ii),Ns(Hi(Ti(r[0],r[o-1])))),r}},cm={getOffsetNanosecondsFor:sg},[hm,lm,fm]=Qd(_f,(function(e){return Ea(Ri(Ei(mi(e))))}),rm,{add:(e,t)=>lm(Hs(0,e,Ag(t))),subtract:(e,t)=>lm(Hs(1,e,Ag(t))),until:(e,t,n)=>Gm(ku(0,e,lg(t),n)),since:(e,t,n)=>Gm(ku(1,e,lg(t),n)),round:(e,t)=>lm(function(e,t){const[n,r,o]=la(t,5,1);return Ea(Wa(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!Ou(e,t)}(e,lg(t)),toZonedDateTime(e,t){const n=ci(t);return ty(Rc(e,dg(n.timeZone),Mg(n.calendar)))},toZonedDateTimeISO:(e,t)=>ty(Rc(e,dg(t))),toLocaleString(e,t,n){const[r,o]=Lg(t,n,e);return r.format(o)},toString:(e,t)=>rs(dg,hg,e,t),toJSON:e=>rs(dg,hg,e),valueOf:og},{from:e=>lm(lg(e)),fromEpochSeconds:e=>lm(function(e){return Ea(Ri(Oi(e,Jh)))}(e)),fromEpochMilliseconds:e=>lm(function(e){return Ea(Ri(Oi(e,Kh)))}(e)),fromEpochMicroseconds:e=>lm(function(e){return Ea(Ri(Ei(mi(e),zh)))}(e)),fromEpochNanoseconds:e=>lm(function(e){return Ea(Ri(Ei(mi(e))))}(e)),compare:(e,t)=>Ou(lg(e),lg(t))}),[dm,gm]=Qd("TimeZone",(e=>{const t=function(e){return Iu(bl(e))}(e);return{branding:"TimeZone",id:t,o:xf(t)}}),{id:e=>e.id},{getPossibleInstantsFor:(e,t)=>{let{o:n}=e;return n.getPossibleInstantsFor(vg(t)).map((e=>lm(Ea(e))))},getOffsetNanosecondsFor:(e,t)=>{let{o:n}=e;return n.getOffsetNanosecondsFor(lg(t).epochNanoseconds)},getOffsetStringFor(e,t){const n=lg(t).epochNanoseconds;return ps(ug(this,cm).getOffsetNanosecondsFor(n))},getPlainDateTimeFor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vl;const r=lg(t).epochNanoseconds,o=ug(this,cm).getOffsetNanosecondsFor(r);return bm(Na(zi(r,o),Mg(n)))},getInstantFor(e,t,n){const r=vg(t),o=ca(n),i=ug(this);return lm(Ea(Es(i,r,o)))},getNextTransition:(e,t)=>{let{o:n}=e;return fg(1,n,t)},getPreviousTransition:(e,t)=>{let{o:n}=e;return fg(-1,n,t)},equals(e,t){return!!_u(this,dg(t))},toString:e=>e.id,toJSON:e=>e.id},{from(e){const t=dg(e);return"string"==typeof t?new dm(t):t}}),mm=eg(Object.keys(um)),[ym,vm]=Qd(Cf,(function(){return _a(aa(Yo(vi,Ro(Rl,[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))}),nm,{getISOFields:om,with(e,t,n){return vm(function(e,t,n){return _a(((e,t,n)=>{const r=sa(n);return Ec({...Bo(el,e),...Mc(t,el)},r)})(e,t,n))}(this,tg(t),n))},add:(e,t)=>vm(Ls(0,e,Ag(t))),subtract:(e,t)=>vm(Ls(1,e,Ag(t))),until:(e,t,n)=>Gm(Bu(0,e,gg(t),n)),since:(e,t,n)=>Gm(Bu(1,e,gg(t),n)),round:(e,t)=>vm(function(e,t){const[n,r,o]=la(t,5);var i;return _a((i=o,Za(e,Va(n,r),i)[0]))}(e,t)),equals:(e,t)=>function(e,t){return!Du(e,t)}(e,gg(t)),toZonedDateTime:(e,t)=>ty(function(e,t,n,r,o){const i=ci(o),a=t(i.plainDate),s=e(i.timeZone);return Oa(Es(n(s),{...a,...r}),s,a.calendar)}(dg,pg,cg,e,t)),toPlainDateTime:(e,t)=>bm(function(e,t){return Na(Li({...e,...t}))}(e,pg(t))),toLocaleString(e,t,n){const[r,o]=jg(t,n,e);return r.format(o)},toString:cs,toJSON:e=>cs(e),valueOf:og},{from:(e,t)=>vm(gg(e,t)),compare:(e,t)=>Du(gg(e),gg(t))}),[pm,Sm,wm]=Qd(Ef,$o((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:vl,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const i=vi(t),a=vi(n),s=e(r);return Ca(_i(ra({isoYear:i,isoMonth:a,isoDay:vi(o)})),s)}),Mg),{...Qg,...qg},{getISOFields:om,getCalendar:ig,with(e,t,n){return Sm(function(e,t,n,r,o){const i=Aa(o);return Ca(((e,t,n,r)=>{const o=Oc(e,t,n,ll);return e.yearMonthFromFields(o,r)})(e(t.calendar),n,r,i))}(Um,e,this,tg(t),n))},add:(e,t,n)=>Sm(ks(zm,0,e,Ag(t),n)),subtract:(e,t,n)=>Sm(ks(zm,1,e,Ag(t),n)),until:(e,t,n)=>Gm(Pu(Km,0,e,yg(t),n)),since:(e,t,n)=>Gm(Pu(Km,1,e,yg(t),n)),equals:(e,t)=>function(e,t){return!Cu(e,t)&&Pa(e.calendar,t.calendar)}(e,yg(t)),toPlainDate(e,t){return Im(function(e,t,n,r){return((e,t,n)=>Cc(e,t,fl,ci(n),hl))(e(t.calendar),n,r)}(xm,e,this,t))},toLocaleString(e,t,n){const[r,o]=Bg(t,n,e);return r.format(o)},toString:ss,toJSON:e=>ss(e),valueOf:og},{from:(e,t)=>Sm(yg(e,t)),compare:(e,t)=>Cu(yg(e),yg(t))}),[Am,bm]=Qd(Hf,$o((function(e,t,n,r){let o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:vl;return Na(Li(na(Yo(vi,Ro(Pl,[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))}),Mg),{...Qg,...Wg,...nm},{getISOFields:om,getCalendar:ig,with(e,t,n){return bm(function(e,t,n,r,o){const i=Aa(o);return Na(((e,t,n,r)=>{const o=Oc(e,t,n,dl,Qh),i=sa(r);return Li({...e.dateFromFields(o,ba(r,i)),...Ec(o,i)})})(e(t.calendar),n,r,i))}(xm,e,this,tg(t),n))},withCalendar:(e,t)=>bm(Bc(e,Mg(t))),withPlainDate:(e,t)=>bm(function(e,t){return Na({...e,...t},Fc(e.calendar,t.calendar))}(e,pg(t))),withPlainTime:(e,t)=>bm(function(e){return Na({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ul})}(e,mg(t))),add:(e,t,n)=>bm(Ds($m,0,e,Ag(t),n)),subtract:(e,t,n)=>bm(Ds($m,1,e,Ag(t),n)),until:(e,t,n)=>Gm(Ru(Vm,0,e,vg(t),n)),since:(e,t,n)=>Gm(Ru(Vm,1,e,vg(t),n)),round:(e,t)=>bm(function(e,t){return Na(Ua(e,...la(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!Hu(e,t)&&Pa(e.calendar,t.calendar)}(e,vg(t)),toZonedDateTime:(e,t,n)=>ty(function(e,t,n,r){const o=((e,t,n,r)=>{const o=ca(r);return Es(e(t),n,o)})(e,n,t,r);return Oa(Ri(o),n,t.calendar)}(cg,e,dg(t),n)),toPlainDate:e=>Im(Ha(e)),toPlainTime:e=>vm(_a(e)),toPlainYearMonth(e){return Sm(function(e,t,n){const r=e(t.calendar);return Ca({...t,...Hc(r,n)})}(jm,e,this))},toPlainMonthDay(e){return am(function(e,t,n){return Nc(e(t.calendar),n)}(Fm,e,this))},toLocaleString(e,t,n){const[r,o]=Yg(t,n,e);return r.format(o)},toString:is,toJSON:e=>is(e),valueOf:og},{from:(e,t)=>bm(vg(e,t)),compare:(e,t)=>Hu(vg(e),vg(t))}),[Tm,Im,Mm]=Qd(Nf,$o((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:vl;return Ha(ki(ra(Yo(vi,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))}),Mg),{...Qg,...Wg},{getISOFields:om,getCalendar:ig,with(e,t,n){return Im(function(e,t,n,r,o){const i=Aa(o);return((e,t,n,r)=>{const o=Oc(e,t,n,dl);return e.dateFromFields(o,r)})(e(t.calendar),n,r,i)}(xm,e,this,tg(t),n))},withCalendar:(e,t)=>Im(Bc(e,Mg(t))),add:(e,t,n)=>Im(_s($m,0,e,Ag(t),n)),subtract:(e,t,n)=>Im(_s($m,1,e,Ag(t),n)),until:(e,t,n)=>Gm(Yu(Vm,0,e,pg(t),n)),since:(e,t,n)=>Gm(Yu(Vm,1,e,pg(t),n)),equals:(e,t)=>function(e,t){return!Cu(e,t)&&Pa(e.calendar,t.calendar)}(e,pg(t)),toZonedDateTime(e,t){const n=!Ho(t)||t instanceof dm?{timeZone:t}:t;return ty(function(e,t,n,r,o){const i=e(o.timeZone),a=o.plainTime,s=void 0!==a?t(a):Ul;return Oa(Es(n(i),{...r,...s}),i,r.calendar)}(dg,gg,cg,e,n))},toPlainDateTime:(e,t)=>bm(function(e){return Na(Li({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ul}))}(e,mg(t))),toPlainYearMonth(e){return Sm(function(e,t,n){return Hc(e(t.calendar),n)}(jm,e,this))},toPlainMonthDay(e){return am(function(e,t,n){return Nc(e(t.calendar),n)}(Fm,e,this))},toLocaleString(e,t,n){const[r,o]=Pg(t,n,e);return r.format(o)},toString:as,toJSON:e=>as(e),valueOf:og},{from:(e,t)=>Im(pg(e,t)),compare:(e,t)=>Cu(pg(e),pg(t))}),Em={fields:(e,t,n)=>[...t.call(e,n)]},Om=Object.assign({dateFromFields:(e,t,n,r)=>Mm(t.call(e,Object.assign(Object.create(null),n),r))},Em),Nm=Object.assign({yearMonthFromFields:(e,t,n,r)=>wm(t.call(e,Object.assign(Object.create(null),n),r))},Em),Hm=Object.assign({monthDayFromFields:(e,t,n,r)=>sm(t.call(e,Object.assign(Object.create(null),n),r))},Em),Cm={mergeFields:(e,t,n,r)=>ci(t.call(e,Object.assign(Object.create(null),n),Object.assign(Object.create(null),r)))},Dm=Object.assign({},Om,Cm),_m=Object.assign({},Nm,Cm),km=Object.assign({},Hm,Cm),Lm={dateAdd:(e,t,n,r,o)=>Mm(t.call(e,Im(Ha(n,e)),Gm(ka(r)),o))},Rm=Object.assign({},Lm,{dateUntil:(e,t,n,r,o,i)=>Wm(t.call(e,Im(Ha(n,e)),Im(Ha(r,e)),Object.assign(Object.create(null),i,{largestUnit:Zh[o]})))}),Ym=Object.assign({},Lm,{day:Sg}),Pm=Object.assign({},Rm,{day:Sg}),jm=wg(Nm),Bm=wg(Om),Fm=wg(Hm),Um=wg(_m),xm=wg(Dm),Zm=wg(km),$m=wg(Lm),Vm=wg(Rm),zm=wg(Ym),Km=wg(Pm),[Jm,Gm,Wm]=Qd(kf,(function(){return ka(qs(Yo(pi,Ro(El,[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]))))}),{...tm,blank:function(e){return!e.sign}},{with:(e,t)=>Gm(function(e,t){return ka((n=e,r=t,qs({...n,...Mc(r,Ol)})));var n,r}(e,t)),negated:e=>Gm(Js(e)),abs:e=>Gm(function(e){return-1===e.sign?Js(e):e}(e)),add:(e,t,n)=>Gm(Ks(bg,Vm,cg,0,e,Ag(t),n)),subtract:(e,t,n)=>Gm(Ks(bg,Vm,cg,1,e,Ag(t),n)),round:(e,t)=>Gm(function(e,t,n,r,o){const i=ru(r),[a,s,u,c,h]=((e,t,n)=>{e=wa(e,nf);let r=vf(e);const o=n(e[sf]);let i=ya(e);const a=Mf(e,7);let s=yf(e);if(void 0===r&&void 0===s)throw new RangeError(Lh);return null==s&&(s=0),null==r&&(r=Math.max(s,t)),Ma(r,s),i=va(i,s,1),[r,s,i,a,o]})(o,i,e),l=Math.max(i,a);if(!Vs(h)&&l<=6)return ka(qs(((e,t,n,r,o)=>{const i=Wa(Qs(e),n,r,o);return{..._l,...eu(i,t)}})(r,a,s,u,c)));if(!h)throw new RangeError(_h);const[f,d,g]=Us(t,n,h),m=xs(g),y=Zs(g),v=$s(g),p=y(d,f,r);let S=v(d,f,p,a);const w=r.sign,A=Ws(S);if(w&&A&&w!==A)throw new RangeError(wh);return A&&(S=Ga(S,m(p),a,s,u,c,d,f,m,y)),ka(S)}(bg,Vm,cg,e,t)),total:(e,t)=>function(e,t,n,r,o){const i=ru(r),[a,s]=((e,t)=>{const n=t((e=wa(e,rf))[sf]);let r=pf(e);return r=ui(rf,r),[r,n]})(o,e);if(zs(Math.max(a,i),s))return ja(r,a);if(!s)throw new RangeError(_h);const[u,c,h]=Us(t,n,s),l=xs(h),f=Zs(h),d=$s(h),g=f(c,u,r),m=d(c,u,g,a);return zs(a,s)?ja(m,a):((e,t,n,r,o,i,a)=>{const s=Ws(e),[u,c]=Ba(r,Ll(n,e),n,s,o,i,a),h=Fa(t,u,c);return e[El[n]]+h*s})(m,l(g),a,c,u,l,f)}(bg,Vm,cg,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):hs(e)},toString:hs,toJSON:e=>hs(e),valueOf:og},{from:e=>Gm(Ag(e)),compare:(e,t,n)=>function(e,t,n,r,o,i){const a=e(Sa(i).relativeTo),s=Math.max(ru(r),ru(o));if(xo(El,r,o))return 0;if(zs(s,a))return Ii(Qs(r),Qs(o));if(!a)throw new RangeError(_h);const[u,c,h]=Us(t,n,a),l=xs(h),f=Zs(h);return Ii(l(f(c,u,r)),l(f(c,u,o)))}(bg,$m,cg,Ag(e),Ag(t),n)}),qm={toString:e=>e.id,toJSON:e=>e.id,...Gg,dateAdd:(e,t,n,r)=>{let{id:o,o:i}=e;return Im(Ha(i.dateAdd(pg(t),Ag(n),r),o))},dateUntil:(e,t,n,r)=>{let{o:o}=e;return Gm(ka(o.dateUntil(pg(t),pg(n),function(e){return e=Sa(e),vf(e,9,6,1)}(r))))},dateFromFields:(e,t,n)=>{let{id:r,o:o}=e;return Im(Ac(o,t,n,function(e){return e===vl?["year","day"]:[]}(r)))},yearMonthFromFields:(e,t,n)=>{let{id:r,o:o}=e;return Sm(bc(o,t,n,function(e){return e===vl?sl:[]}(r)))},monthDayFromFields:(e,t,n)=>{let{id:r,o:o}=e;return am(Tc(o,0,t,n,function(e){return e===vl?hl:[]}(r)))},fields(e,t){let{o:n}=e;const r=new Set(dl),o=[];for(const e of t){if(bl(e),!r.has(e))throw new RangeError(ih(e));r.delete(e),o.push(e)}return n.fields(o)},mergeFields:(e,t,n)=>{let{o:r}=e;return r.mergeFields(Uo(si(t)),Uo(si(n)))}},[Xm]=Qd("Calendar",(e=>{const t=function(e){return uc(bl(e))}(e);return{branding:"Calendar",id:t,o:wd(t)}}),{id:e=>e.id},qm,{from(e){const t=Mg(e);return"string"==typeof t?new Xm(t):t}}),Qm=eg(Object.keys(qm).slice(4)),[ey,ty]=Qd(Df,$o((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:vl;return Oa(Ri(Ei(mi(n))),t(r),e(o))}),Mg,dg),{...rm,...Qg,...Og(Wg),...Og(nm),offset:e=>ps(Ng(e).offsetNanoseconds),offsetNanoseconds:e=>Ng(e).offsetNanoseconds,timeZoneId:e=>Ya(e.timeZone),hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=Ff(t,n),[o,i]=za(r),a=Hi(Ti(Es(n,o),Es(n,i)),Wh,1);if(a<=0)throw new RangeError(wh);return a}(cg,e)},{getISOFields:e=>function(e,t){const n=Ff(t,e);return{calendar:t.calendar,...Bo(Fl,n),offset:ps(n.offsetNanoseconds),timeZone:t.timeZone}}(hg,e),getCalendar:ig,getTimeZone:e=>{let{timeZone:t}=e;return"string"==typeof t?new dm(t):t},with(e,t,n){return ty(function(e,t,n,r,o,i){const a=Aa(i),{calendar:s,timeZone:u}=n;return Oa(((e,t,n,r,o)=>{const i=Oc(e,n,r,dl,rl,tl),[a,s,u]=ua(o,2);return Ms(t,{...e.dateFromFields(i,ba(o,a)),...Ec(i,a)},au(i.offset),s,u)})(e(s),t(u),r,o,a),u,s)}(xm,cg,e,this,tg(t),n))},withCalendar:(e,t)=>ty(Bc(e,Mg(t))),withTimeZone:(e,t)=>ty(function(e,t){return{...e,timeZone:t}}(e,dg(t))),withPlainDate:(e,t)=>ty(function(e,t,n){const r=t.timeZone,o=e(r),i={...Ff(t,o),...n},a=Fc(t.calendar,n.calendar);return Oa(Ms(o,i,i.offsetNanoseconds,2),r,a)}(cg,e,pg(t))),withPlainTime:(e,t)=>ty(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ul;const r=t.timeZone,o=e(r),i={...Ff(t,o),...n};return Oa(Ms(o,i,i.offsetNanoseconds,2),r,t.calendar)}(cg,e,mg(t))),add:(e,t,n)=>ty(Cs($m,cg,0,e,Ag(t),n)),subtract:(e,t,n)=>ty(Cs($m,cg,1,e,Ag(t),n)),until:(e,t,n)=>Gm(ka(Lu(Vm,cg,0,e,Eg(t),n))),since:(e,t,n)=>Gm(ka(Lu(Vm,cg,1,e,Eg(t),n))),round:(e,t)=>ty(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:i}=t;const[a,s,u]=la(n);if(0===a&&1===s)return t;const c=e(o);if(6===a)r=((e,t,n,r)=>{const o=Ff(n,t),[i,a]=e(o),s=n.epochNanoseconds,u=Es(t,i),c=Es(t,a);if(Mi(s,u,c))throw new RangeError(wh);return Qa(Fa(s,u,c),r)?c:u})(za,c,t,u);else{const e=c.getOffsetNanosecondsFor(r);r=Ms(c,Ua(zi(r,e),a,s,u),e,2,0,1)}return Oa(r,o,i)}(cg,e,t)),startOfDay:e=>ty(function(e,t){const{timeZone:n,calendar:r}=t,o=((e,t,n)=>Es(t,e(Ff(n,t))))(Ka,e(n),t);return Oa(o,n,r)}(cg,e)),equals:(e,t)=>function(e,t){return!Nu(e,t)&&!!_u(e.timeZone,t.timeZone)&&Pa(e.calendar,t.calendar)}(e,Eg(t)),toInstant:e=>lm(function(e){return Ea(e.epochNanoseconds)}(e)),toPlainDateTime:e=>bm(Yc(hg,e)),toPlainDate:e=>Im(Pc(hg,e)),toPlainTime:e=>vm(jc(hg,e)),toPlainYearMonth(e){return Sm(function(e,t,n){return Hc(e(t.calendar),n)}(jm,e,this))},toPlainMonthDay(e){return am(function(e,t,n){return Nc(e(t.calendar),n)}(Fm,e,this))},toLocaleString(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o]=Rg(t,n,e);return r.format(o)},toString:(e,t)=>os(hg,e,t),toJSON:e=>os(hg,e),valueOf:og},{from:(e,t)=>ty(Eg(e,t)),compare:(e,t)=>Nu(Eg(e),Eg(t))}),ny=Object.defineProperties({},{...Lo("Temporal.Now"),..._o({timeZoneId:()=>Jc(),instant:()=>lm(Ea(Kc())),zonedDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jc();return ty(Oa(Kc(),dg(t),Mg(e)))},zonedDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jc();return ty(Oa(Kc(),dg(e),vl))},plainDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jc();return bm(Na(zc(hg(dg(t))),Mg(e)))},plainDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jc();return bm(Na(zc(hg(dg(e))),vl))},plainDate:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jc();return Im(Ha(zc(hg(dg(t))),Mg(e)))},plainDateISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jc();return Im(Ha(zc(hg(dg(e))),vl))},plainTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jc();return vm(_a(zc(hg(dg(e)))))}})}),ry=Object.defineProperties({},{...Lo("Temporal"),..._o({PlainYearMonth:pm,PlainMonthDay:im,PlainDate:Tm,PlainTime:ym,PlainDateTime:Am,ZonedDateTime:ey,Instant:hm,Calendar:Xm,TimeZone:dm,Duration:Jm,Now:ny})}),oy=Hg(),iy=new WeakMap;function ay(e){return e*Math.PI/180}function sy(e){return 180*e/Math.PI}Object.create(Intl),_o({DateTimeFormat:oy});class uy{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 cy=6356.9;class hy{constructor(e,t){this.date=t,this.geoLocation=e}getSunrise(){const e=this.getUTCSunrise0(hy.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(hy.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(hy.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(hy.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(hy.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(hy.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(hy.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(hy.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(hy.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(hy.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 sy(Math.acos(cy/(cy+e/1e3)))}adjustZenith(e,t){let n=e;return e===hy.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}getUTCSunrise(e,t,n,r){const o=r?t.getElevation():0,i=this.adjustZenith(n,o);let a=hy.getSunriseUTC(hy.getJulianDay(e),t.getLatitude(),-t.getLongitude(),i);for(a/=60;a<0;)a+=24;for(;a>=24;)a-=24;return a}getUTCSunset(e,t,n,r){const o=r?t.getElevation():0,i=this.adjustZenith(n,o);let a=hy.getSunsetUTC(hy.getJulianDay(e),t.getLatitude(),-t.getLongitude(),i);for(a/=60;a<0;)a+=24;for(;a>=24;)a-=24;return a}getTemporalHour(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();if(null===e||null===t)return NaN;const n=t.epochMilliseconds-e.epochMilliseconds;return Math.floor(n/12)}getSunTransit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();const n=this.getTemporalHour(e,t);return hy.getTimeOffset(e,6*n)}getDateFromTime(e,t){if(isNaN(e))return null;let n=e,r=this.getAdjustedDate();const o=Math.trunc(n);n-=o;const i=Math.trunc(n*=60);n-=i;const a=Math.trunc(n*=60);n-=a;const s=Math.trunc(this.geoLocation.getLongitude()/15);return t&&s+o>18?r=r.add({days:-1}):!t&&s+o<6&&(r=r.add({days:1})),r.toZonedDateTime({timeZone:"UTC",plainTime:new ry.PlainTime(o,i,a,Math.trunc(1e3*n))}).withTimeZone(this.geoLocation.getTimeZone())}static getJulianDay(e){let{year:t,month:n}=e;const{day:r}=e;n<=2&&(t-=1,n+=12);const o=Math.trunc(t/100),i=Math.trunc(2-o+o/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+i-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-hy.JULIAN_DAY_JAN_1_2000)/hy.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*hy.JULIAN_DAYS_PER_CENTURY+hy.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=ay(hy.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 hy.getSunGeometricMeanLongitude(e)+hy.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return hy.getSunTrueLongitude(e)-.00569-.00478*Math.sin(ay(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 hy.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(ay(t))}static getSunDeclination(e){const t=hy.getObliquityCorrection(e),n=hy.getSunApparentLongitude(e),r=Math.sin(ay(t))*Math.sin(ay(n));return sy(Math.asin(r))}static getEquationOfTime(e){const t=hy.getObliquityCorrection(e),n=hy.getSunGeometricMeanLongitude(e),r=hy.getEarthOrbitEccentricity(e),o=hy.getSunGeometricMeanAnomaly(e);let i=Math.tan(ay(t)/2);i*=i;const a=Math.sin(2*ay(n)),s=Math.sin(ay(o));return 4*sy(i*a-2*r*s+4*r*i*s*Math.cos(2*ay(n))-.5*i*i*Math.sin(4*ay(n))-1.25*r*r*Math.sin(2*ay(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=ay(e),o=ay(t);return Math.acos(Math.cos(ay(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=ay(e),o=ay(t);return-Math.acos(Math.cos(ay(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=hy.getJulianDay(e.toPlainDate()),o=hy.getJulianCenturiesFromJulianDay(r),i=hy.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=ay(n-a),u=ay(hy.getSunDeclination(o)),c=ay(t);return sy(Math.asin(Math.sin(c)*Math.sin(u)+Math.cos(c)*Math.cos(u)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=hy.getJulianDay(e.toPlainDate()),o=hy.getJulianCenturiesFromJulianDay(r),i=hy.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=ay(n-a),u=ay(hy.getSunDeclination(o)),c=ay(t);return sy(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(c)-Math.tan(u)*Math.cos(c))))+180}static getSunriseUTC(e,t,n,r){const o=hy.getJulianCenturiesFromJulianDay(e),i=hy.getSolarNoonUTC(o,n),a=hy.getJulianCenturiesFromJulianDay(e+i/1440);let s=hy.getEquationOfTime(a),u=hy.getSunDeclination(a),c=hy.getSunHourAngleAtSunrise(t,u,r),h=n-sy(c),l=4*h,f=720+l-s;const d=hy.getJulianCenturiesFromJulianDay(hy.getJulianDayFromJulianCenturies(o)+f/1440);return s=hy.getEquationOfTime(d),u=hy.getSunDeclination(d),c=hy.getSunHourAngleAtSunrise(t,u,r),h=n-sy(c),l=4*h,f=720+l-s,f}static getSolarNoonUTC(e,t){const n=hy.getJulianCenturiesFromJulianDay(hy.getJulianDayFromJulianCenturies(e)+t/360);let r=hy.getEquationOfTime(n);const o=720+4*t-r,i=hy.getJulianCenturiesFromJulianDay(hy.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=hy.getEquationOfTime(i),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=hy.getJulianCenturiesFromJulianDay(e),i=hy.getSolarNoonUTC(o,n),a=hy.getJulianCenturiesFromJulianDay(e+i/1440);let s=hy.getEquationOfTime(a),u=hy.getSunDeclination(a),c=hy.getSunHourAngleAtSunset(t,u,r),h=n-sy(c),l=4*h,f=720+l-s;const d=hy.getJulianCenturiesFromJulianDay(hy.getJulianDayFromJulianCenturies(o)+f/1440);return s=hy.getEquationOfTime(d),u=hy.getSunDeclination(d),c=hy.getSunHourAngleAtSunset(t,u,r),h=n-sy(c),l=4*h,f=720+l-s,f}}hy.GEOMETRIC_ZENITH=90,hy.CIVIL_ZENITH=96,hy.NAUTICAL_ZENITH=102,hy.ASTRONOMICAL_ZENITH=108,hy.JULIAN_DAY_JAN_1_2000=2451545,hy.JULIAN_DAYS_PER_CENTURY=36525;const ly=[["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]],fy=new Map,dy={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"},gy=new Map;class my extends uy{constructor(e,t,n,r,o,i,a,s){const u="number"==typeof e?e:parseFloat(e);if(isNaN(u)||u<-90||u>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const c="number"==typeof t?t:parseFloat(t);if(isNaN(c)||c<-180||c>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o||null,u,c,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=i,this.geoid=a}getIsrael(){return this.il}getName(){return this.getLocationName()}getShortName(){const e=this.getLocationName();if(!e)return e;const t=e.indexOf(", ");if(-1===t)return e;if("US"===this.cc&&"D"===e[t+2]){if("C"===e[t+3])return e.substring(0,t+4);if("."===e[t+3]&&"C"===e[t+4])return e.substring(0,t+6)}return e.substring(0,t)}getCountryCode(){return this.cc}getTzid(){return this.getTimeZone()}getTimeFormatter(){return function(e){const t=gy.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return gy.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return fy.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 dy[String(-1*e)]}static getUsaTzid(e,t,n){return 10===(t=+t)&&"AK"===e?"America/Adak":7===t&&"AZ"===e?"Y"===n?"America/Denver":"America/Phoenix":dy[t]}static addLocation(e,t){const n=e.toLowerCase();return!fy.has(n)&&(fy.set(n,t),!0)}}for(const e of ly){const t=new my(e[2],e[3],"IL"===e[1],e[4],e[0],e[1],void 0,e[5]);my.addLocation(e[0],t)}function yy(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}Object.defineProperties(globalThis,_o({Temporal:ry})),Object.defineProperties(Intl,_o({DateTimeFormat:oy})),Object.defineProperties(Date.prototype,_o({toTemporalInstant:function(){return lm(Ea(Oi(this.valueOf(),Kh)))}}));class vy{constructor(e,t,n){const r=function(e){if(u(e))return e;if(Ee.isHDate(e))return e.greg();throw new TypeError(`invalid date: ${e}`)}(t);this.date=r,this.gloc=e;const o=Temporal.PlainDate.from({year:r.getFullYear(),month:r.getMonth()+1,day:r.getDate()});this.noaa=new hy(e,o),this.useElevation=Boolean(n)}getUseElevation(){return this.useElevation}setUseElevation(e){this.useElevation=e}timeAtAngle(e,t){const n=90+e;return yy(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return yy(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return yy(this.noaa.getSeaLevelSunrise())}sunset(){return yy(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return yy(this.noaa.getSeaLevelSunset())}dawn(){return yy(this.noaa.getBeginCivilTwilight())}dusk(){return yy(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new vy(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise().getTime()-this.gregEve().getTime())/12}chatzot(){const e=this.noaa.getSeaLevelSunrise(),t=this.noaa.getSeaLevelSunset();return yy(this.noaa.getSunTransit(e,t))}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.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise(),n=this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset(),r=this.noaa.getTemporalHour(t,n),o=Math.round(r*e);return yy(hy.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}getTemporalHour72(e){const t=this.sunriseOffset(-72,!1,e),n=(this.sunsetOffset(72,!1,e).getTime()-t.getTime())/12;return[t,n]}getTemporalHourByDeg(e){const t=this.timeAtAngle(e,!0),n=(this.timeAtAngle(e,!1).getTime()-t.getTime())/12;return[t,n]}sofZmanShmaMGA(){const[e,t]=this.getTemporalHour72(!0),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanShmaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanShmaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA(){const[e,t]=this.getTemporalHour72(!0),n=Math.floor(4*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1),n=Math.floor(4*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8),n=Math.floor(4*t);return new Date(e.getTime()+n)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaGedolaMGA(){const[e,t]=this.getTemporalHour72(!1),n=Math.floor(6.5*t);return new Date(e.getTime()+n)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}minchaKetanaMGA(){const[e,t]=this.getTemporalHour72(!1);return new Date(e.getTime()+Math.floor(9.5*t))}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(e=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=ae("UTC",t),r=ae(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?"+":"-")+re(Math.floor(r/60))+":"+re(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?"0000-00-00T00:00:00Z":ae(e,t).substring(0,19)+vy.timeZoneOffset(e,t)}sunriseOffset(e,t=!0,n=!1){const r=n?this.seaLevelSunrise():this.sunrise();return isNaN(r.getTime())?r:(t&&(e>0&&r.getSeconds()>=30&&e++,r.setSeconds(0,0)),new Date(r.getTime()+60*e*1e3))}sunsetOffset(e,t=!0,n=!1){const r=n?this.seaLevelSunset():this.sunset();return isNaN(r.getTime())?r:(t&&(e>0&&r.getSeconds()>=30&&e++,r.setSeconds(0,0)),new Date(r.getTime()+60*e*1e3))}static makeSunsetAwareHDate(e,t,n){const r=new vy(e,t,n).sunset();let o=new Ee(t);const i=r.getTime();return isNaN(i)||t.getTime()>=i&&(o=o.next()),o}}const py={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 Sy(e,t,n){var r;if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const o=(null===(r=null==n?void 0:n.location)||void 0===r?void 0:r.getCountryCode())||((null==n?void 0:n.il)?"IL":"US"),i=null==n?void 0:n.hour12;if(void 0!==i&&!i)return e;if(!i&&void 0===py[o])return e;const a=e.split(":");let s=parseInt(a[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}:${a[1]}${t}`}class wy extends Pe{constructor(e,t,n,r,o,i,a){super(e,t,n),this.eventTime=vy.roundTime(r),this.location=o;const s=o.getTimeFormatter();this.eventTimeStr=vy.formatTime(this.eventTime,s);const u=Object.assign(Object.assign({},a),{location:o});this.fmtTime=Sy(this.eventTimeStr,"pm",u),void 0!==i&&(this.linkedEvent=i)}render(e){return pe.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return pe.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"]}return["unknown"]}}class Ay extends wy{constructor(e,t,n,r,o,i){super(e,"Candle lighting",t,n,r,o,i)}getEmoji(){return"🕯️"}}class by extends wy{constructor(e,t,n,r,o,i,a){super(e,"Havdalah",t,n,r,i,a),o&&(this.havdalahMins=o)}render(e){return this.renderBrief(e)+": "+this.fmtTime}renderBrief(e){let t=pe.gettext(this.getDesc(),e);if(this.havdalahMins){const n=pe.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}const Ty=f.NISAN,Iy=f.IYYAR,My=f.SIVAN,Ey=f.ELUL,Oy=f.TISHREI,Ny=f.CHESHVAN,Hy=f.KISLEV,Cy=f.SHVAT,Dy=f.ADAR_II,_y=Re.CHAG,ky=Re.LIGHT_CANDLES,Ly=Re.YOM_TOV_ENDS,Ry=Re.CHUL_ONLY,Yy=Re.IL_ONLY,Py=Re.LIGHT_CANDLES_TZEIS,jy=Re.MINOR_HOLIDAY,By=Re.EREV,Fy=Re.CHOL_HAMOED,Uy="🫓",xy="🌿🍋",Zy="Rosh Hashana II",$y="Erev Yom Kippur",Vy="Yom Kippur",zy="Erev Sukkot",Ky="Sukkot I",Jy="Sukkot II",Gy="Sukkot III (CH''M)",Wy="Sukkot IV (CH''M)",qy="Sukkot V (CH''M)",Xy="Sukkot VI (CH''M)",Qy="Shmini Atzeret",ev="Simchat Torah",tv="Sukkot II (CH''M)",nv="Sukkot VII (Hoshana Raba)",rv="Chanukah: 1 Candle",ov="Tu BiShvat",iv="Erev Purim",av="Purim",sv="Shushan Purim",uv="Erev Pesach",cv="Pesach I",hv="Pesach II",lv="Pesach II (CH''M)",fv="Pesach III (CH''M)",dv="Pesach IV (CH''M)",gv="Pesach V (CH''M)",mv="Pesach VI (CH''M)",yv="Pesach VII",vv="Pesach VIII",pv="Pesach Sheni",Sv="Lag BaOmer",wv="Erev Shavuot",Av="Shavuot",bv="Shavuot I",Tv="Shavuot II",Iv="Tu B'Av",Mv="Rosh Hashana LaBehemot",Ev="Erev Rosh Hashana",Ov="Yom Yerushalayim",Nv="Ben-Gurion Day",Hv="Family Day",Cv="Yitzhak Rabin Memorial Day",Dv="Herzl Day",_v="Jabotinsky Day",kv="Sigd",Lv="Yom HaAliyah",Rv="Yom HaAliyah School Observance",Yv="Hebrew Language Day",Pv={ASARA_BTEVET:"Asara B'Tevet",BIRKAT_HACHAMAH:"Birkat Hachamah",CHAG_HABANOT:"Chag HaBanot",CHANUKAH_8TH_DAY:"Chanukah: 8th Day",EREV_TISHA_BAV:"Erev Tish'a B'Av",LEIL_SELICHOT:"Leil Selichot",PURIM_KATAN:"Purim Katan",PURIM_MESHULASH:"Purim Meshulash",SHABBAT_CHAZON:"Shabbat Chazon",SHABBAT_HACHODESH:"Shabbat HaChodesh",SHABBAT_HAGADOL:"Shabbat HaGadol",SHABBAT_NACHAMU:"Shabbat Nachamu",SHABBAT_PARAH:"Shabbat Parah",SHABBAT_SHEKALIM:"Shabbat Shekalim",SHABBAT_SHIRAH:"Shabbat Shirah",SHABBAT_SHUVA:"Shabbat Shuva",SHABBAT_ZACHOR:"Shabbat Zachor",SHUSHAN_PURIM_KATAN:"Shushan Purim Katan",TAANIT_BECHOROT:"Ta'anit Bechorot",TAANIT_ESTHER:"Ta'anit Esther",TISHA_BAV:"Tish'a B'Av",TZOM_GEDALIAH:"Tzom Gedaliah",TZOM_TAMMUZ:"Tzom Tammuz",YOM_HAATZMA_UT:"Yom HaAtzma'ut",YOM_HASHOAH:"Yom HaShoah",YOM_HAZIKARON:"Yom HaZikaron",BEN_GURION_DAY:Nv,CHANUKAH_1_CANDLE:rv,EREV_PESACH:uv,EREV_PURIM:iv,EREV_ROSH_HASHANA:Ev,EREV_SHAVUOT:wv,EREV_SUKKOT:zy,EREV_YOM_KIPPUR:$y,FAMILY_DAY:Hv,HEBREW_LANGUAGE_DAY:Yv,HERZL_DAY:Dv,JABOTINSKY_DAY:_v,LAG_BAOMER:Sv,PESACH_I:cv,PESACH_II:hv,PESACH_III_CHM:fv,PESACH_II_CHM:lv,PESACH_IV_CHM:dv,PESACH_SHENI:pv,PESACH_VII:yv,PESACH_VIII:vv,PESACH_VI_CHM:mv,PESACH_V_CHM:gv,PURIM:av,ROSH_HASHANA_II:Zy,ROSH_HASHANA_LABEHEMOT:Mv,SHAVUOT:Av,SHAVUOT_I:bv,SHAVUOT_II:Tv,SHMINI_ATZERET:Qy,SHUSHAN_PURIM:sv,SIGD:kv,SIMCHAT_TORAH:ev,SUKKOT_I:Ky,SUKKOT_II:Jy,SUKKOT_III_CHM:Gy,SUKKOT_II_CHM:tv,SUKKOT_IV_CHM:Wy,SUKKOT_VII_HOSHANA_RABA:nv,SUKKOT_VI_CHM:Xy,SUKKOT_V_CHM:qy,TU_BAV:Iv,TU_BISHVAT:ov,YITZHAK_RABIN_MEMORIAL_DAY:Cv,YOM_HAALIYAH:Lv,YOM_HAALIYAH_SCHOOL_OBSERVANCE:Rv,YOM_KIPPUR:Vy,YOM_YERUSHALAYIM:Ov},jv=[{mm:Oy,dd:2,desc:Zy,flags:_y|Ly,emoji:"🍏🍯"},{mm:Oy,dd:9,desc:$y,flags:By|ky},{mm:Oy,dd:10,desc:Vy,flags:_y|Re.MAJOR_FAST|Ly},{mm:Oy,dd:14,desc:zy,flags:Ry|By|ky,emoji:xy},{mm:Oy,dd:15,desc:Ky,flags:Ry|_y|Py,emoji:xy},{mm:Oy,dd:16,desc:Jy,flags:Ry|_y|Ly,emoji:xy},{mm:Oy,dd:17,desc:Gy,flags:Ry|Fy,chmDay:1,emoji:xy},{mm:Oy,dd:18,desc:Wy,flags:Ry|Fy,chmDay:2,emoji:xy},{mm:Oy,dd:19,desc:qy,flags:Ry|Fy,chmDay:3,emoji:xy},{mm:Oy,dd:20,desc:Xy,flags:Ry|Fy,chmDay:4,emoji:xy},{mm:Oy,dd:22,desc:Qy,flags:Ry|_y|Py},{mm:Oy,dd:23,desc:ev,flags:Ry|_y|Ly},{mm:Oy,dd:14,desc:zy,flags:Yy|By|ky,emoji:xy},{mm:Oy,dd:15,desc:Ky,flags:Yy|_y|Ly,emoji:xy},{mm:Oy,dd:16,desc:tv,flags:Yy|Fy,chmDay:1,emoji:xy},{mm:Oy,dd:17,desc:Gy,flags:Yy|Fy,chmDay:2,emoji:xy},{mm:Oy,dd:18,desc:Wy,flags:Yy|Fy,chmDay:3,emoji:xy},{mm:Oy,dd:19,desc:qy,flags:Yy|Fy,chmDay:4,emoji:xy},{mm:Oy,dd:20,desc:Xy,flags:Yy|Fy,chmDay:5,emoji:xy},{mm:Oy,dd:22,desc:Qy,flags:Yy|_y|Ly},{mm:Oy,dd:21,desc:nv,flags:ky|Fy,chmDay:-1,emoji:xy},{mm:Hy,dd:24,desc:rv,flags:By|jy|Re.CHANUKAH_CANDLES,emoji:"🕎1️⃣"},{mm:Cy,dd:15,desc:ov,flags:jy,emoji:"🌳"},{mm:Dy,dd:13,desc:iv,flags:By|jy,emoji:"🎭️📜"},{mm:Dy,dd:14,desc:av,flags:jy,emoji:"🎭️📜"},{mm:Dy,dd:15,desc:sv,flags:jy,emoji:"🎭️📜"},{mm:Ty,dd:14,desc:uv,flags:Yy|By|ky,emoji:"🫓🍷"},{mm:Ty,dd:15,desc:cv,flags:Yy|_y|Ly,emoji:Uy},{mm:Ty,dd:16,desc:lv,flags:Yy|Fy,chmDay:1,emoji:Uy},{mm:Ty,dd:17,desc:fv,flags:Yy|Fy,chmDay:2,emoji:Uy},{mm:Ty,dd:18,desc:dv,flags:Yy|Fy,chmDay:3,emoji:Uy},{mm:Ty,dd:19,desc:gv,flags:Yy|Fy,chmDay:4,emoji:Uy},{mm:Ty,dd:20,desc:mv,flags:Yy|Fy|ky,chmDay:5,emoji:Uy},{mm:Ty,dd:21,desc:yv,flags:Yy|_y|Ly,emoji:Uy},{mm:Ty,dd:14,desc:uv,flags:Ry|By|ky,emoji:"🫓🍷"},{mm:Ty,dd:15,desc:cv,flags:Ry|_y|Py,emoji:"🫓🍷"},{mm:Ty,dd:16,desc:hv,flags:Ry|_y|Ly,emoji:Uy},{mm:Ty,dd:17,desc:fv,flags:Ry|Fy,chmDay:1,emoji:Uy},{mm:Ty,dd:18,desc:dv,flags:Ry|Fy,chmDay:2,emoji:Uy},{mm:Ty,dd:19,desc:gv,flags:Ry|Fy,chmDay:3,emoji:Uy},{mm:Ty,dd:20,desc:mv,flags:Ry|Fy|ky,chmDay:4,emoji:Uy},{mm:Ty,dd:21,desc:yv,flags:Ry|_y|Py,emoji:Uy},{mm:Ty,dd:22,desc:vv,flags:Ry|_y|Ly,emoji:Uy},{mm:Iy,dd:14,desc:pv,flags:jy},{mm:Iy,dd:18,desc:Sv,flags:jy,emoji:"🔥"},{mm:My,dd:5,desc:wv,flags:By|ky,emoji:"⛰️🌸"},{mm:My,dd:6,desc:Av,flags:Yy|_y|Ly,emoji:"⛰️🌸"},{mm:My,dd:6,desc:bv,flags:Ry|_y|Py,emoji:"⛰️🌸"},{mm:My,dd:7,desc:Tv,flags:Ry|_y|Ly,emoji:"⛰️🌸"},{mm:f.AV,dd:15,desc:Iv,flags:jy,emoji:"❤️"},{mm:Ey,dd:1,desc:Mv,flags:jy,emoji:"🐑"},{mm:Ey,dd:29,desc:Ev,flags:By|ky,emoji:"🍏🍯"}],Bv=[{firstYear:5727,mm:Iy,dd:28,desc:Ov,chul:!0},{firstYear:5737,mm:Hy,dd:6,desc:Nv,satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:Cy,dd:30,desc:Hv},{firstYear:5758,mm:Ny,dd:12,desc:Cv,friSatMovetoThu:!0},{firstYear:5764,mm:Iy,dd:10,desc:Dv,satPostponeToSun:!0},{firstYear:5765,mm:f.TAMUZ,dd:29,desc:_v,satPostponeToSun:!0},{firstYear:5769,mm:Ny,dd:29,desc:kv,chul:!0,suppressEmoji:!0},{firstYear:5777,mm:Ty,dd:10,desc:Lv,chul:!0},{firstYear:5777,mm:Ny,dd:7,desc:Rv},{firstYear:5773,mm:f.TEVET,dd:21,desc:Yv,friSatMovetoThu:!0}];class Fv extends Pe{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()&Re.IL_ONLY?e+"?i=on":e}urlDateSuffix(){const e=this.getDate().greg().getFullYear();return String(e)}getEmoji(){return this.emoji?this.emoji:this.getFlags()&Re.SPECIAL_SHABBAT?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;switch(this.getDesc()){case Pv.LAG_BAOMER:case Pv.LEIL_SELICHOT:case Pv.PESACH_SHENI:case Pv.EREV_PURIM:case Pv.PURIM_KATAN:case Pv.SHUSHAN_PURIM:case Pv.TU_BAV:case Pv.TU_BISHVAT:case Pv.ROSH_HASHANA_LABEHEMOT:return["holiday","minor"]}return["holiday","major"]}render(e){return super.render(e).replace(/'/g,"’")}renderBrief(e){return super.renderBrief(e).replace(/'/g,"’")}clone(){const e=new Fv(this.date,this.desc,this.mask);for(const t in this)this.hasOwnProperty(t)&&Object.defineProperty(e,t,{value:this[t]});return e}}class Uv extends Fv{urlDateSuffix(){return se(this.getDate().greg()).replace(/-/g,"")}}class xv extends Fv{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return pe.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const Zv="Rosh Chodesh";class $v extends Fv{constructor(e,t){super(e,`${Zv} ${t}`,Re.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=pe.gettext(t,e).replace(/'/g,"’");return pe.gettext(Zv,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}const Vv=Re.LIGHT_CANDLES,zv=Re.LIGHT_CANDLES_TZEIS;function Kv(e,t,n,r,o){let i=!1,a=o,s=e?e.getFlags():Vv;void 0!==e?r||(s&(zv|Re.CHANUKAH_CANDLES)?a=!0:s&Re.YOM_TOV_ENDS&&(i=!0,a=!0)):o&&(i=!0,s=zv);const u=a?n.havdalahMins:n.candleLightingMins,c=n.location,h=Boolean(n.useElevation),l=new vy(c,t,h),f=u?l.sunsetOffset(u,!0):l.tzeit(n.havdalahDeg);if(!isNaN(f.getTime()))return i?new by(t,s,f,c,n.havdalahMins,e,n):(s|=Vv,new Ay(t,s,f,c,e,n))}const Jv="Fast begins",Gv="Fast ends";class Wv extends Fv{constructor(e,t,n,r,o){super(e,t,n),this.startEvent=r,this.endEvent=o}urlDateSuffix(){if("Asara B'Tevet"===this.getDesc()){return se(this.getDate().greg()).replace(/-/g,"")}return super.urlDateSuffix()}}function qv(e,t,n,r){const o=r.location,i=e.getDate();return new wy(i,n,e.getFlags(),t,o,e,r)}class Xv extends Fv{constructor(e,t,n,r,o){super(e,t,n),this.eventTime=vy.roundTime(r);const i=o.getTimeFormatter();this.eventTimeStr=vy.formatTime(this.eventTime,i),this.location=o}}const Qv=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ep=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],tp="בַּלַּ֥יְלָה";class np{constructor(e,t){this.m=function(e,t){let n=t-7;n<0&&(n+=b(e));const r=235*Math.floor((e-1)/19)+(e-1)%19*12+Math.floor(((e-1)%19*7+1)/19)+n,o=204+Math.floor(r%1080*793),i=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,a=(o%1080+i%24*1080)%1080;return{year:e,month:t,dayOfWeek:(1+29*r+Math.floor(i/24))%7,hour:i%24,minutes:Math.floor(a/18),chalakim:a%18}}(e,t)}getYear(){return this.m.year}getMonth(){return this.m.month}getMonthName(){return Ee.getMonthName(this.m.month,this.m.year)}getDow(){return this.m.dayOfWeek}getHour(){return this.m.hour}getMinutes(){return this.m.minutes}getChalakim(){return this.m.chalakim}render(e,t){var n;"string"==typeof(e=null!=e?e:pe.getLocaleName())&&(e=e.toLowerCase());const r="he"===e||"he-x-nonikud"===e||"h"===e,o=pe.gettext(this.getMonthName(),e),i=(r?ep:Qv)[this.getDow()],a=this.getMinutes(),s=this.getHour(),u=this.getChalakim(),c=pe.gettext("Molad",e),h=null!==(n=pe.lookupTranslation("min",e))&&void 0!==n?n:"minutes",l=pe.gettext("chalakim",e);if(r){const t=function(e){return e<5?tp:e<12?"בַּבֹּקֶר":e<17?"בַּצׇּהֳרַיִים":e<21?"בָּעֶרֶב":tp}(s),n=`${c} ${o} יִהְיֶה בַּיּוֹם ${i} בשָׁבוּעַ, בְּשָׁעָה ${s} ${t}, ו-${a} ${h} ו-${u} ${l}`;return"he-x-nonikud"===e?pe.hebrewStripNikkud(n):n}const f=Sy(`${s}:00`,"pm",t);return`${c} ${o.replace(/'/g,"’")}: ${i}, ${a} ${h} and ${u} ${l} after ${f}`}}class rp extends Pe{constructor(e,t,n,r){const o=new np(t,n);super(e,`Molad ${o.getMonthName()} ${t}`,Re.MOLAD),this.molad=o,this.options=r}render(e){return this.molad.render(e,this.options)}}class op extends Pe{constructor(e,t){if(super(e,`Omer ${t}`,Re.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(e="en"){return"he"!==e&&"translit"!==e&&(e="en"),function(e,t){$(e);const[n,r]=V(e),o=Z[t],i=o.words[n];return(o.words[r]+" "+(2===n||6===n?o.infix26:o.infix)+i).normalize()}(this.omer,e)}render(e){"string"==typeof(e=null!=e?e:pe.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e||"h"===e,n=this.omer;return(t?U(n):pe.ordinal(n,e))+" "+pe.gettext("day of the Omer",e)}renderBrief(e){return pe.gettext("Omer",e)+" "+pe.gettext("day",e)+" "+this.omer}getEmoji(){return"string"==typeof this.emoji?this.emoji:function(e){let t;return $(e),t=e<=20?9312+e-1:e<=35?12881+e-21:12977+e-36,String.fromCodePoint(t)}(this.omer)}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){"string"==typeof(e=null!=e?e:pe.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e?"he":"en",n=z(this.omer,t);return"he-x-nonikud"===e?pe.hebrewStripNikkud(n):n}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}function ip(e,t){const n=null!=t?t:pe.getLocaleName();let r=pe.gettext(e[0],n);if(2===e.length){r+=("he"===n?"־":"-")+pe.gettext(e[1],n)}r=r.replace(/'/g,"’");return(pe.gettext("Parashat",t)+" "+r).normalize()}class ap extends Map{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.maxSize=e.maxSize,this.maxAge=e.maxAge||Number.POSITIVE_INFINITY,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if("function"==typeof this.onEviction)for(const[t,n]of e)this.onEviction(t,n.value)}_deleteIfExpired(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.onEviction&&this.onEviction(e,t.value),this.delete(e))}_getOrDeleteIfExpired(e,t){if(!1===this._deleteIfExpired(e,t))return t.value}_getItemValue(e,t){return t.expiry?this._getOrDeleteIfExpired(e,t):t.value}_peek(e,t){const n=t.get(e);return this._getItemValue(e,n)}_set(e,t){this.cache.set(e,t),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(e,t){this.oldCache.delete(e),this._set(e,t)}*_entriesAscending(){for(const e of this.oldCache){const[t,n]=e;if(!this.cache.has(t)){!1===this._deleteIfExpired(t,n)&&(yield e)}}for(const e of this.cache){const[t,n]=e;!1===this._deleteIfExpired(t,n)&&(yield e)}}get(e){if(this.cache.has(e)){const t=this.cache.get(e);return this._getItemValue(e,t)}if(this.oldCache.has(e)){const t=this.oldCache.get(e);if(!1===this._deleteIfExpired(e,t))return this._moveToRecent(e,t),t.value}}set(e,t){let{maxAge:n=this.maxAge}=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.cache.has(e)?this.cache.set(e,{value:t,expiry:r}):this._set(e,{value:t,expiry:r}),this}has(e){return this.cache.has(e)?!this._deleteIfExpired(e,this.cache.get(e)):!!this.oldCache.has(e)&&!this._deleteIfExpired(e,this.oldCache.get(e))}peek(e){return this.cache.has(e)?this._peek(e,this.cache):this.oldCache.has(e)?this._peek(e,this.oldCache):void 0}delete(e){const t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this._entriesAscending()],n=t.length-e;n<0?(this.cache=new Map(t),this.oldCache=new Map,this._size=t.length):(n>0&&this._emitEvictions(t.slice(0,n)),this.oldCache=new Map(t.slice(n)),this.cache=new Map,this._size=0),this.maxSize=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache){const[t,n]=e;!1===this._deleteIfExpired(t,n)&&(yield[t,n.value])}for(const e of this.oldCache){const[t,n]=e;if(!this.cache.has(t)){!1===this._deleteIfExpired(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.cache];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;!1===this._deleteIfExpired(r,o)&&(yield[r,o.value])}e=[...this.oldCache];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;if(!this.cache.has(r)){!1===this._deleteIfExpired(r,o)&&(yield[r,o.value])}}}*entriesAscending(){for(const[e,t]of this._entriesAscending())yield[e,t.value]}get size(){if(!this._size)return this.oldCache.size;let e=0;for(const t of this.oldCache.keys())this.cache.has(t)||e++;return Math.min(this._size+e,this.maxSize)}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 sp{constructor(e,t){e=+e,this.year=e;const n=new Ee(1,f.TISHREI,e),r=n.abs(),o=n.getDay()+1;this.firstSaturday=Ee.dayOnOrBefore(6,r+6);const i=+Ee.isLeapYear(e);this.il=Boolean(t);const a=function(e){const t=Ee.longCheshvan(e),n=Ee.shortKislev(e);return t&&!n?2:!t&&n?0:1}(e);let s=`${i}${o}${a}`;if(Hp[s]||(s+=+this.il),this.theSedraArray=Hp[s],!this.theSedraArray)throw new Error(`improper sedra year type ${s} calculated for ${e}`)}get(e){return this.lookup(e).parsha}getString(e,t){return ip(this.get(e),t)}isParsha(e){return!this.lookup(e).chag}find(e){if("number"==typeof e){if(e>=up.length||e<0&&!lp(e))throw new RangeError(`Invalid parsha number: ${e}`);return this.findInternal(e)}if("string"==typeof e){const t=cp.get(e);return"number"==typeof t?this.find(t):-1!==e.indexOf("-")?e===yp||e===dp?this.findInternal(e):this.find(e.split("-")):this.findInternal(e)}if(Array.isArray(e)){const t=e.length;if(1!==t&&2!==t||"string"!=typeof e[0])throw new TypeError(`Invalid parsha argument: ${JSON.stringify(e)}`);if(1===t)return this.find(e[0]);const n=e[0],r=e[1],o=cp.get(n),i=cp.get(r);if("number"!=typeof o||"number"!=typeof i||i!==o+1||!lp(-o))throw new RangeError(`Unrecognized parsha name: ${n}-${r}`);return this.find(-o)}return null}findInternal(e){const t=this.theSedraArray.indexOf(e);return-1===t?null:new Ee(this.firstSaturday+7*t)}findContaining(e){const t=this.find(e);if(t)return t;if("number"==typeof e){const t=-e;return lp(t)?this.find(t):this.find(t+1)}{const t=cp.get(e);if(t){const e=-t;return lp(e)?this.find(e):this.find(e+1)}{const[t]=e.split("-");return this.find(t)}}}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(e){const t="number"==typeof e?e:Ee.isHDate(e)?e.abs():NaN;if(isNaN(t))throw new TypeError(`Bad date argument: ${e}`);const n=Ee.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return Dp(this.year+1,this.il).lookup(n)}const i=new Ee(n);if("string"==typeof o)return{parsha:[o],chag:!0,hdate:i};if(o>=0)return{parsha:[up[o]],chag:!1,num:o+1,hdate:i};const a=fp(o);return{parsha:[up[a],up[a+1]],chag:!1,num:[a+1,a+2],hdate:i}}}const up=["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"],cp=new Map;for(let e=0;e<up.length;e++){const t=up[e];cp.set(t,e)}const hp=[21,26,28,31,38,41,50];function lp(e){return hp.includes(-e)}function fp(e){return-e}const dp="Sukkot Shabbat Chol ha-Moed",gp="Pesach",mp="Pesach I",yp="Pesach Shabbat Chol ha-Moed",vp="Pesach VII",pp="Pesach VIII",Sp="Shavuot";function wp(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const Ap=[51,52,dp],bp=[52,"Yom Kippur",dp],Tp=["Rosh Hashana",52,"Sukkot","Shmini Atzeret"],Ip=wp(0,20),Mp=wp(0,27),Ep=wp(33,40),Op=wp(43,49),Np=wp(43,50),Hp={"020":Ap.concat(Ip,fp(21),23,24,gp,25,fp(26),fp(28),30,fp(31),Ep,fp(41),Op,fp(50)),"0220":Ap.concat(Ip,fp(21),23,24,gp,25,fp(26),fp(28),30,fp(31),33,Sp,wp(34,37),fp(38),40,fp(41),Op,fp(50)),"0510":bp.concat(Ip,fp(21),23,24,mp,pp,25,fp(26),fp(28),30,fp(31),Ep,fp(41),Np),"0511":bp.concat(Ip,fp(21),23,24,gp,25,fp(26),fp(28),wp(30,40),fp(41),Np),"052":bp.concat(wp(0,24),vp,25,fp(26),fp(28),30,fp(31),Ep,fp(41),Np),"070":Tp.concat(Ip,fp(21),23,24,vp,25,fp(26),fp(28),30,fp(31),Ep,fp(41),Np),"072":Tp.concat(Ip,fp(21),23,24,yp,25,fp(26),fp(28),30,fp(31),Ep,fp(41),Op,fp(50)),1200:Ap.concat(Mp,yp,wp(28,33),Sp,wp(34,37),fp(38),40,fp(41),Op,fp(50)),1201:Ap.concat(Mp,yp,wp(28,40),fp(41),Op,fp(50)),1220:Ap.concat(Mp,mp,pp,wp(28,40),fp(41),Np),1221:Ap.concat(Mp,gp,wp(28,50)),150:bp.concat(wp(0,28),vp,wp(29,50)),152:bp.concat(wp(0,28),yp,wp(29,49),fp(50)),170:Tp.concat(Mp,yp,wp(28,40),fp(41),Op,fp(50)),1720:Tp.concat(Mp,yp,wp(28,33),Sp,wp(34,37),fp(38),40,fp(41),Op,fp(50))};Hp["0221"]=Hp["020"],Hp["0310"]=Hp["0220"],Hp["0311"]=Hp["020"],Hp[1310]=Hp[1220],Hp[1311]=Hp[1221],Hp[1721]=Hp[170];const Cp=new ap({maxSize:400});function Dp(e,t){const n=`${e}-${t?1:0}`;let r=Cp.get(n);return r||(r=new sp(e,t),Cp.set(n,r)),r}class _p extends Pe{constructor(e,t,n=!1,r=-1){if(!Array.isArray(t)||0===t.length||t.length>2)throw new TypeError("Bad parsha argument");super(e,"Parashat "+t.join("-"),Re.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){return ip(this.parsha,e)}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(){return se(this.getDate().greg()).replace(/-/g,"")}}const kp=f.NISAN,Lp=f.IYYAR;function Rp(e){if(e<5708)return null;let t;const n=new Ee(15,kp,e).getDay();return t=0===n?2:6===n?3:e<5764?4:2===n?5:4,new Ee(t,Lp,e)}const Yp="Yom Kippur Katan";class Pp extends Fv{constructor(e,t){super(e,`${Yp} ${t}`,Re.MINOR_FAST|Re.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=pe.gettext(this.nextMonthName,e).replace(/'/g,"’");return pe.gettext(Yp,e)+" "+t}renderBrief(e){return pe.gettext(Yp,e)}url(){}}function jp(e){return e.observedInIsrael()}function Bp(e){return e.observedInDiaspora()}function Fp(e,t){const n=Ee.isHDate(e)?e:new Ee(e),r=n.toString(),o=gS(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const i=o.filter(function(e){return e?jp:Bp}(t));return i}const Up=Re.CHAG,xp=Re.IL_ONLY,Zp=Re.LIGHT_CANDLES_TZEIS,$p=Re.CHANUKAH_CANDLES,Vp=Re.MINOR_FAST,zp=Re.SPECIAL_SHABBAT,Kp=Re.MODERN_HOLIDAY,Jp=Re.MAJOR_FAST,Gp=Re.MINOR_HOLIDAY,Wp=Re.EREV,qp=0,Xp=2,Qp=4,eS=5,tS=6,nS=f.NISAN,rS=f.TAMUZ,oS=f.AV,iS=f.TISHREI,aS=f.KISLEV,sS=f.TEVET,uS=f.ADAR_I,cS=f.ADAR_II,hS={emoji:"🇮🇱"},lS="🕎",fS=new ap({maxSize:400}),dS=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function gS(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=fS.get(e);if(t)return t;const n=new Ee(1,iS,e),r=new Ee(15,nS,e),o=new Map;function i(...e){for(const t of e){const e=t.date.toString(),n=o.get(e);"object"==typeof n?n[0].getFlags()&Wp?n.unshift(t):n.push(t):o.set(e,[t])}}for(const t of jv){const n=new Ee(t.dd,t.mm,e),r=new Fv(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),i(r)}i(new xv(n,e,Up|Zp));const a=n.getDay()===Qp?4:3;i(new Fv(new Ee(a,iS,e),Pv.TZOM_GEDALIAH,Vp)),i(new Fv(new Ee(Ee.dayOnOrBefore(tS,7+n.abs())),Pv.SHABBAT_SHUVA,zp));const s=Ee.shortKislev(e)?new Ee(1,sS,e):new Ee(30,aS,e);i(new Fv(s,Pv.CHAG_HABANOT,Gp));for(let t=2;t<=8;t++){const n=new Ee(23+t,aS,e);i(new Fv(n,`Chanukah: ${t} Candles`,Gp|$p,{chanukahDay:t-1,emoji:lS+dS[t]}))}i(new Fv(new Ee(32,aS,e),Pv.CHANUKAH_8TH_DAY,Gp,{chanukahDay:8,emoji:lS})),i(new Uv(new Ee(10,sS,e),Pv.ASARA_BTEVET,Vp));const u=r.abs();i(new Fv(new Ee(Ee.dayOnOrBefore(tS,u-43)),Pv.SHABBAT_SHEKALIM,zp),new Fv(new Ee(Ee.dayOnOrBefore(tS,u-30)),Pv.SHABBAT_ZACHOR,zp),new Fv(new Ee(u-(r.getDay()===Xp?33:31)),Pv.TAANIT_ESTHER,Vp));const c=Ee.dayOnOrBefore(tS,u-14);i(new Fv(new Ee(c-7),Pv.SHABBAT_PARAH,zp),new Fv(new Ee(c),Pv.SHABBAT_HACHODESH,zp),new Fv(new Ee(Ee.dayOnOrBefore(tS,u-1)),Pv.SHABBAT_HAGADOL,zp),new Fv(r.prev().getDay()===tS?r.onOrBefore(Qp):new Ee(14,nS,e),Pv.TAANIT_BECHOROT,Vp)),i(new Fv(new Ee(Ee.dayOnOrBefore(tS,new Ee(1,iS,e+1).abs()-4)),Pv.LEIL_SELICHOT,Gp,{emoji:"🕍"})),r.getDay()===qp&&i(new Fv(new Ee(16,cS,e),Pv.PURIM_MESHULASH,Gp)),Ee.isLeapYear(e)&&(i(new Fv(new Ee(14,uS,e),Pv.PURIM_KATAN,Gp,{emoji:"🎭️"})),i(new Fv(new Ee(15,uS,e),Pv.SHUSHAN_PURIM_KATAN,Gp,{emoji:"🎭️"})));const h=function(e){if(e<5711)return null;let t=new Ee(27,kp,e);return 5===t.getDay()?t=new Ee(26,kp,e):0===t.getDay()&&(t=new Ee(28,kp,e)),t}(e);h&&i(new Fv(h,Pv.YOM_HASHOAH,Kp));const l=Rp(e);l&&i(new Fv(l,Pv.YOM_HAZIKARON,Kp,hS),new Fv(l.next(),Pv.YOM_HAATZMA_UT,Kp,hS));for(const t of Bv)if(e>=t.firstYear){let n=new Ee(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||r!==eS&&r!==tS?t.friPostponeToSun&&r===eS?n=new Ee(n.abs()+2):t.satPostponeToSun&&r===tS&&(n=n.next()):n=n.onOrBefore(Qp);const o=t.chul?Kp:Kp|xp,a=new Fv(n,t.desc,o);t.suppressEmoji||(a.emoji="🇮🇱"),i(a)}let d,g=new Ee(17,rS,e);g.getDay()===tS&&(g=new Ee(18,rS,e),d={observed:!0}),i(new Fv(g,Pv.TZOM_TAMMUZ,Vp,d));let m,y=new Ee(9,oS,e),v=Pv.TISHA_BAV;y.getDay()===tS&&(y=y.next(),m={observed:!0},v+=" (observed)");const p=y.abs();i(new Fv(new Ee(Ee.dayOnOrBefore(tS,p)),Pv.SHABBAT_CHAZON,zp),new Fv(y.prev(),Pv.EREV_TISHA_BAV,Wp|Jp,m),new Fv(y,v,Jp,m),new Fv(new Ee(Ee.dayOnOrBefore(tS,p+7)),Pv.SHABBAT_NACHAMU,zp));const S=Ee.monthsInYear(e);for(let t=1;t<=S;t++){const n=Ee.getMonthName(t,e);30===(t===nS?Ee.daysInMonth(Ee.monthsInYear(e-1),e-1):Ee.daysInMonth(t-1,e))?(i(new $v(new Ee(1,t,e),n)),i(new $v(new Ee(30,t-1,e),n))):t!==iS&&i(new $v(new Ee(1,t,e),n))}for(let t=f.IYYAR;t<=S;t++){const n=t+1;if(n===iS||n===f.CHESHVAN||n===sS)continue;let r=new Ee(29,t,e);const o=r.getDay();o!==eS&&o!==tS||(r=r.onOrBefore(Qp));const a=Ee.getMonthName(n,e);i(new Pp(r,a))}const w=Dp(e,!1).find(15);i(new Fv(w,Pv.SHABBAT_SHIRAH,zp));const A=function(e){const t=Ee.isLeapYear(e),n=t?cS:nS,r=t?20:1,o=Ee.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(A){const e=new Ee(A);i(new Fv(e,Pv.BIRKAT_HACHAMAH,Gp,{emoji:"☀️"}))}return fS.set(e,o),o}function mS(e,t){const n=gS(e),r=Ee.hebrew2abs(e,iS,1),o=Ee.hebrew2abs(e+1,iS,1)-1;let i=[];const a=t?jp:Bp;for(let e=r;e<=o;e++){const t=new Ee(e),r=n.get(t.toString());if(r){const e=r.filter(a);i=i.concat(e)}}return i}const yS="Shabbat Mevarchim Chodesh";class vS extends Pe{constructor(e,t,n){if(super(e,`${yS} ${t}`,Re.SHABBAT_MEVARCHIM),this.monthName=t,n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n===Ee.monthsInYear(t)?f.NISAN:n+1,o=new np(t,r);this.memo=o.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=pe.gettext(this.monthName,e).replace(/'/g,"’");return pe.gettext(yS,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}const pS=new Map;class SS{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);pS.set(e,t)}static lookup(e,t,n){const r=pS.get(e);return"function"==typeof r?r(t,n):null}}function wS(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}const AS={shacharit:!1,mincha:!1,allCongs:!1};function bS(e,t){return TS(e,t,!0)}function TS(e,t,n){const r=function(e,t){const n=Ee.isLeapYear(e),r=Ee.monthsInYear(e);let o=new Ee(9,f.AV,e);6===o.getDay()&&(o=o.next());let i=new Ee(15,f.ADAR_II,e);6===i.getDay()&&(i=i.next());const a=[new Ee(2,f.TISHREI,e)].concat(wS(1,r).map((t=>new Ee(1,t,e))),wS(1,r).filter((t=>30===Ee.daysInMonth(t,e))).map((t=>new Ee(30,t,e))),wS(1,Ee.daysInMonth(f.NISAN,e)).map((t=>new Ee(t,f.NISAN,e))),new Ee(18,f.IYYAR,e),wS(1,8-(t?1:0)).map((t=>new Ee(t,f.SIVAN,e))),o,new Ee(15,f.AV,e),new Ee(29,f.ELUL,e),wS(9,24-(t?1:0)).map((t=>new Ee(t,f.TISHREI,e))),wS(25,33).map((t=>new Ee(t,f.KISLEV,e))),new Ee(15,f.SHVAT,e),new Ee(14,f.ADAR_II,e),i,n?new Ee(14,f.ADAR_I,e):[]),s=[new Ee(14,f.IYYAR,e)].concat(wS(1,13).map((t=>new Ee(t,f.SIVAN,e))),wS(20,31).map((t=>new Ee(t,f.TISHREI,e))),e>=5708?Rp(e).next():[],e>=5727?new Ee(28,f.IYYAR,e):[]),u=[new Ee(29,f.ELUL,e-1),new Ee(9,f.TISHREI,e),new Ee(14,f.IYYAR,e)];return{none:a.map((e=>e.abs())).sort(((e,t)=>e-t)),some:s.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:u.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.yy,t),o=e.abs();if(r.none.indexOf(o)>-1)return AS;const i=e.getDay(),a={shacharit:!1,mincha:!1,allCongs:!1};-1===r.some.indexOf(o)&&(a.allCongs=!0),6!==i&&(a.shacharit=!0);const s=o+1;if(n&&-1===r.yesPrev.indexOf(s)){const e=TS(new Ee(s),t,!1);a.mincha=e.shacharit}else a.mincha=5!==i;return!a.allCongs||a.mincha||a.shacharit?a:AS}const IS=f.TISHREI;function MS(e){if("number"==typeof e)return e;if(u(e))return h(e);if(Ee.isHDate(e))return e.abs();throw new TypeError(`Invalid date type: ${e}`)}function ES(e){if(e.start&&!e.end||e.end&&!e.start)throw new TypeError("Both options.start and options.end are required");if(e.start&&e.end)return[MS(e.start),MS(e.end)];const t=Boolean(e.isHebrewYear),n=function(e){return void 0!==e.year?Number(e.year):e.isHebrewYear?(new Ee).getFullYear():(new Date).getFullYear()}(e);if(isNaN(n))throw new RangeError(`Invalid year ${e.year}`);if(t&&n<1)throw new RangeError(`Invalid Hebrew year ${n}`);const r=function(e){if(e.month){if(e.isHebrewYear)return Ee.monthNum(e.month);if("number"==typeof e.month)return e.month}return NaN}(e),o=Number(e.numYears)||1;return t?function(e,t,n){const r=new Ee(1,e||IS,t);let o=r.abs();const i=e?o+r.daysInMonth():new Ee(1,IS,t+n).abs()-1;!e&&t>1&&o--;return[o,i]}(r,n,o):function(e,t,n){const r=e?e-1:0,o=new Date(t,r,1);t<100&&o.setFullYear(t);const i=h(o);let a;if(e)a=i+s(e,t)-1;else{const e=t+n,r=new Date(e,0,1);e<100&&r.setFullYear(e),a=h(r)-1}return[i,a]}(r,n,o)}function OS(e={}){!function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof my))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=Number(e.candleLightingMins)||18;t.getIsrael()&&18===Math.abs(n)&&(n=function(e,t){const n=e.getGeoId();if(n){const e=ow[n];if("number"==typeof e)return e}const r=e.getShortName();if(r){const e=rw[r];if("number"==typeof e)return e}return t}(t,n));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=iw;"number"!=typeof e.fastEndDeg&&(e.fastEndDeg=aw)}(e=Object.assign({},e));const t=e.location=e.location||uw,n=e.il=e.il||t.getIsrael()||!1,r="number"==typeof e.mask;if(e.mask=function(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask||0;t&ZS&&delete e.noRoshChodesh;t&US&&delete e.noModern;t&BS&&delete e.noMinorFast;t&FS&&delete e.noSpecialShabbat;t&$S&&(e.sedrot=!0);t&(VS|zS|KS|JS)&&(e.dailyLearning=e.dailyLearning||{},t&VS&&(e.dailyLearning.dafYomi=!0),t&zS&&(e.dailyLearning.mishnaYomi=!0),t&KS&&(e.dailyLearning.nachYomi=!0),t&JS&&(e.dailyLearning.yerushalmi=1));t&GS&&(e.omer=!0);t&WS&&(e.shabbatMevarchim=!0);t&ew&&(e.yomKippurKatan=!0);return t}(e);const n=e.il||(null===(t=e.location)||void 0===t?void 0:t.getIsrael())||!1;let r=0;e.noHolidays||(r|=ZS|LS|BS|FS|US|xS|qS|XS|QS|kS|PS|jS);e.candlelighting&&(r|=kS|PS|LS);e.noRoshChodesh&&(r&=~ZS);e.noModern&&(r&=~US);e.noMinorFast&&(r&=~BS);e.noSpecialShabbat&&(r&=~FS,r&=~WS);r|=n?YS:RS;e.sedrot&&(r|=$S);e.omer&&(r|=GS);e.shabbatMevarchim&&(r|=WS);e.yomKippurKatan&&(r|=ew);if(e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=VS),t.mishnaYomi&&(r|=zS),t.nachYomi&&(r|=KS),t.yerushalmi&&(r|=JS)}return r}(e),e.ashkenazi||e.locale){if(e.locale&&"string"!=typeof e.locale)throw new TypeError(`Invalid options.locale: ${e.locale}`);const t=e.ashkenazi?"ashkenazi":e.locale;if(!pe.useLocale(t))throw new TypeError(`Locale '${t}' not found; did you forget to import @hebcal/locales?`)}else pe.useLocale("en");const o=[];let i,a,s=-1,u=-1,c=-1;const h=ES(e);!function(e){for(const t of Object.keys(e))void 0!==nw[t]||tw.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),tw.add(t))}(e);const f=h[0],d=h[1];l(f).getFullYear()<100&&(e.candlelighting=!1);for(let t=f;t<=d;t++){const h=new Ee(t),l=h.getFullYear();l!==c&&(c=l,a=gS(c),e.sedrot&&(i=Dp(c,n)),e.omer&&(s=Ee.hebrew2abs(c,CS,16),u=Ee.hebrew2abs(c,DS,5)));const f=o.length,d=h.getDay(),g=d===NS,m=d===HS;let y;const v=a.get(h.toString())||[];for(const t of v)y=cw(y,o,t,e,g,m,r);if(e.sedrot&&m){const e=i.lookup(t);e.chag||o.push(new _p(h,e.parsha,n,e.num))}const p=e.dailyLearning;if("object"==typeof p){const e=fw(h,p,n);o.push(...e)}if(e.omer&&t>=s&&t<=u){const n=dw(h,t-s+1,e);o.push(n)}if(m&&(e.molad||e.shabbatMevarchim)){const t=hw(h,e);o.push(...t)}if(!y&&e.candlelighting&&(g||m)&&(y=Kv(void 0,h,e,g,m),g&&y&&i)){const r=i.lookup(t),o=new _p(h.next(),r.parsha,n,r.num);y.memo=o.render(e.locale)}if(y instanceof by&&(0===e.havdalahMins||0===e.havdalahDeg)&&(y=void 0),y&&o.push(y),e.addHebrewDates||e.addHebrewDatesForEvents&&f!==o.length){const e=new je(h);f===o.length?o.push(e):o.splice(f,0,e)}}return o}const NS=5,HS=6,CS=f.NISAN,DS=f.SIVAN,_S=f.ELUL,kS=Re.LIGHT_CANDLES,LS=Re.YOM_TOV_ENDS,RS=Re.CHUL_ONLY,YS=Re.IL_ONLY,PS=Re.LIGHT_CANDLES_TZEIS,jS=Re.CHANUKAH_CANDLES,BS=Re.MINOR_FAST,FS=Re.SPECIAL_SHABBAT,US=Re.MODERN_HOLIDAY,xS=Re.MAJOR_FAST,ZS=Re.ROSH_CHODESH,$S=Re.PARSHA_HASHAVUA,VS=Re.DAF_YOMI,zS=Re.MISHNA_YOMI,KS=Re.NACH_YOMI,JS=Re.YERUSHALMI_YOMI,GS=Re.OMER_COUNT,WS=Re.SHABBAT_MEVARCHIM,qS=Re.MINOR_HOLIDAY,XS=Re.EREV,QS=Re.CHOL_HAMOED,ew=Re.YOM_KIPPUR_KATAN,tw=new Set,nw={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,mask:1,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1};const rw={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},ow={281184:40,294801:30,293067:30},iw=8.5,aw=7.0833333;const sw=kS|PS|jS|LS,uw=new my(0,0,!1,"UTC");function cw(e,t,n,r,o,i,a){const s=r.il||!1;if(!n.observedIn(s))return e;const u=n.getFlags();if(!r.yomKippurKatan&&u&ew||r.noModern&&u&US)return e;const c=Boolean(u&xS),h=Boolean(u&BS);let l;if(r.candlelighting&&(c||h)&&(n=l=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)return e;const r=e.getDate(),o=r.greg(),i=t.location,a=t.fastEndDeg,s=Boolean(t.useElevation),u=new vy(i,o,s);let c,h;if("Erev Tish'a B'Av"===n){const n=u.sunset();isNaN(n.getTime())||(c=qv(e,n,Jv,t))}else if(n.startsWith("Tish'a B'Av")){const n=u.tzeit(a);isNaN(n.getTime())||(h=qv(e,n,Gv,t))}else{const n=u.alotHaShachar();if(isNaN(n.getTime())||(c=qv(e,n,Jv,t)),5!==o.getDay()&&(14!==r.getDate()||r.getMonth()!==f.NISAN)){const n=u.tzeit(a);isNaN(n.getTime())||(h=qv(e,n,Gv,t))}}const l=new Wv(r,n,e.getFlags(),c,h);for(const t in e)e.hasOwnProperty(t)&&Object.defineProperty(l,t,{value:e[t]});return l}(n,r),l.startEvent&&(c||h&&!r.noMinorFast)&&t.push(l.startEvent)),u&Number(r.mask)||!u&&!a){if(r.candlelighting&&u&sw){const t=n.getDate();if(e=Kv(n,t,r,o,i),u&jS&&e&&!r.noHolidays){const a=function(e,t,n){const r=n.location,o=Boolean(n.useElevation),i=new vy(r,t.greg(),o).beinHaShmashos();if(isNaN(i.getTime()))return null;const a=new Xv(t,e.getDesc(),e.getFlags(),i,r);return a.emoji=e.emoji,a.chanukahDay=e.chanukahDay,a}(n,t,r);a&&((o||i)&&(a.eventTime=e.eventTime,a.eventTimeStr=e.eventTimeStr),n=a),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&u&ew)&&t.push(n)}return(c||h&&!r.noMinorFast)&&l&&l.endEvent&&t.push(l.endEvent),e}function hw(e,t){const n=[],r=e.getMonth(),o=e.getDate();if(r!==_S&&o>=23&&o<=29){const o=e.getFullYear(),i=r===Ee.monthsInYear(o)?CS:r+1;if(t.molad&&n.push(new rp(e,o,i,t)),t.shabbatMevarchim){const r=Ee.getMonthName(i,o),a=new np(o,i).render(t.locale||"en",t);n.push(new vS(e,r,a))}}return n}function lw(e,t){return"yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e}function fw(e,t,n){const r=[];for(const[o,i]of Object.entries(t))if(i){const t=lw(o,i),a=SS.lookup(t,e,n);a&&r.push(a)}return r}function dw(e,t,n){const r=new op(e,t);if(n.candlelighting){const t=n.location,o=new vy(t,e.prev(),!1).tzeit(7.0833);isNaN(o.getTime())||(r.alarm=o)}return r}function gw(e,t){return 0!==(Fp(e,t)||[]).filter((e=>e.getFlags()&Re.CHAG)).length}return e.AsaraBTevetEvent=Uv,e.CandleLightingEvent=Ay,e.DailyLearning=SS,e.Event=Pe,e.FastDayEvent=Wv,e.GeoLocation=uy,e.HDate=Ee,e.HavdalahEvent=by,e.HebrewCalendar=class{constructor(){}static calendar(e={}){return OS(e)}static getBirthdayOrAnniversary(e,t){const n=function(e,t){const n=Y(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=A(r);let i=n.mm,a=n.dd;return i===L&&!o||i===R&&o?i=b(e):i!==C||30!==a||O(e)?i===D&&30===a&&N(e)?(i=_,a=1):i===L&&30===a&&o&&!A(e)&&(i=H,a=1):(i=D,a=1),{yy:e,mm:i,dd:a}}(e,t);return void 0===n?n:new Ee(n)}static getYahrzeit(e,t){const n=function(e,t){let n=Y(t);if(!(e<=n.yy))return n.mm!==C||30!==n.dd||O(n.yy+1)?n.mm===D&&30===n.dd&&N(n.yy+1)?n=w(p(e,_,1)-1):n.mm===R?n.mm=b(e):n.mm!==L||30!==n.dd||A(e)||(n.dd=30,n.mm=k):n=w(p(e,D,1)-1),n.mm!==C||30!==n.dd||O(e)?n.mm===D&&30===n.dd&&N(e)&&(n.mm=_,n.dd=1):(n.mm=D,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new Ee(n)}static getHolidaysForYear(e){return gS(e)}static getHolidaysForYearArray(e,t){return mS(e,t)}static getHolidaysOnDate(e,t){return Fp(e,t)}static eruvTavshilin(e,t){if(e.getDay()<3||e.getDay()>4)return!1;const n=new Ee(e),r=n.after(5),o=n.next();return!(!gw(r,t)||gw(n,t)||!gw(o,t))}static reformatTimeStr(e,t,n){return Sy(e,t,n)}static version(){return t}static getSedra(e,t){return Dp(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===f.NISAN&&(15===o||16===o)&&e.getFlags()&Re.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()&Re.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(mS(e.getFullYear(),t),e)}static tachanun(e,t){return bS(e,t)}},e.HebrewDateEvent=je,e.HolidayEvent=Fv,e.Locale=pe,e.Location=my,e.MevarchimChodeshEvent=vS,e.Molad=np,e.MoladEvent=rp,e.NOAACalculator=hy,e.OmerEvent=op,e.ParshaEvent=_p,e.RoshChodeshEvent=$v,e.RoshHashanaEvent=xv,e.Sedra=sp,e.TimedEvent=wy,e.Zmanim=vy,e.flags=Re,e.gematriya=U,e.gematriyaStrToNum=x,e.getHolidaysOnDate=Fp,e.getSedra=Dp,e.holidayDesc=Pv,e.months=f,e.parshiot=up,e.version=t,e}({});
1
+ /*! @hebcal/core v5.7.5 */
2
+ var hebcal=function(e){"use strict";const t="5.7.5",n=[0,31,28,31,30,31,30,31,31,30,31,30,31],r=[n,n.slice()];function o(e,t){return e-t*Math.floor(e/t)}function i(e,t){return Math.floor(e/t)}function a(e){return!(e%4||!(e%100)&&e%400)}function s(e,t){return r[+a(t)][e]}function u(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function c(e,t,n){const r=e-1;return 365*r+i(r,4)-i(r,100)+i(r,400)+i(367*t-362,12)+(t<=2?0:a(e)?-1:-2)+n}function h(e){if(!u(e))throw new TypeError(`Argument not a Date: ${e}`);return c(e.getFullYear(),e.getMonth()+1,e.getDate())}function l(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const t=function(e){const t=e-1,n=i(t,146097),r=o(t,146097),a=i(r,36524),s=o(r,36524),u=i(s,1461),c=i(o(s,1461),365),h=400*n+100*a+4*u+c;return 4!==a&&4!==c?h+1:h}(e=Math.trunc(e)),n=i(12*(e-c(t,1,1)+(e<c(t,3,1)?0:a(t)?1:2))+373,367),r=e-c(t,n,1)+1,s=new Date(t,n-1,r);return t<100&&t>=0&&s.setFullYear(t),s}r[1][2]=29,e.greg=void 0,e.greg||(e.greg={}),e.greg.abs2greg=l,e.greg.daysInMonth=s,e.greg.greg2abs=h,e.greg.isDate=u,e.greg.isLeapYear=a;const f={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},d=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],g=[d.concat(["Adar","Nisan"]),d.concat(["Adar I","Adar II","Nisan"])],m=new Map,y=-1373428;function v(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function S(e,t,n){if(v(e,"year"),v(t,"month"),v(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<7){for(let t=7;t<=b(e);t++)r+=T(t,e);for(let n=1;n<t;n++)r+=T(n,e)}else for(let n=7;n<t;n++)r+=T(n,e);return y+I(e)+r-1}function w(e){return y+I(e)}function p(e){if(v(e,"abs"),(e=Math.trunc(e))<=y)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-y)/365.24682220597794);for(;w(t)<=e;)++t;--t;let n=e<S(t,1,1)?7:1;for(;e>S(t,n,T(n,t));)++n;return{yy:t,mm:n,dd:1+e-S(t,n,1)}}function A(e){return(1+7*e)%19<7}function b(e){return+A(e)+12}function T(e,t){switch(e){case 2:case 4:case 6:case 10:case 13:return 29}return 12===e&&!A(t)||8===e&&!O(t)||9===e&&N(t)?29:30}function M(e,t){if(v(e,"month"),v(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return g[+A(t)][e]}function I(e){const t=m.get(e);if("number"==typeof t)return t;const n=function(e){const t=e-1,n=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),r=204+n%1080*793,o=5+12*n+793*Math.floor(n/1080)+Math.floor(r/1080),i=r%1080+o%24*1080,a=1+29*n+Math.floor(o/24);let s=a;(i>=19440||2==a%7&&i>=9924&&!A(e)||1==a%7&&i>=16789&&A(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return m.set(e,n),n}function E(e){return I(e+1)-I(e)}function O(e){return E(e)%10==5}function N(e){return E(e)%10==3}const H=f.NISAN,D=f.CHESHVAN,C=f.KISLEV,_=f.TEVET,k=f.SHVAT,L=f.ADAR_I,R=f.ADAR_II;function Y(e){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(e))return e;if(u(e)){return p(h(e))}return p(e)}const P={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},j=new Map,B=new Map;for(const[e,t]of Object.entries(P))j.set(e,t),B.set(t,e);function F(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 U(e){const t=parseInt(e,10);if(!t||t<0)throw new TypeError(`invalid gematriya number: ${e}`);let n="";const r=Math.floor(t/1e3);if(r>0&&5!==r){const e=F(r);for(const t of e)n+=B.get(t);n+="׳"}const o=F(t%1e3);if(1===o.length)return n+B.get(o[0])+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=B.get(o[e]);return n}function Z(e){let t=0;const n=e.indexOf("׳");if(-1!==n&&n!==e.length-1){t+=1e3*Z(e.substring(0,n)),e=e.substring(n)}for(const n of e){const e=j.get(n);"number"==typeof e&&(t+=e)}return t}const $={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 x(e){if(e<1||e>49)throw new RangeError(`Invalid Omer day ${e}`)}function V(e){return[Math.floor((e-1)/7)+1,e%7||7]}function z(e,t){return x(e),"he"===t?function(e){const t=Math.floor(e/10),n=e%10;let r="הַיּוֹם ";11===e?r+="אַחַד "+te:12===e?r+="שְׁנֵים "+te:12<e&&e<20?r+=J[n]+" "+te:e>9&&(r+=J[n],n&&(r+=" ",r+=3===t?"וּ":"וְ"));e>2?((e>20||10===e||20===e)&&(r+=K[t]),r+=e<11?J[n]+" "+W+" ":" "+Q+" "):r+=1===e?ee+" ":q+" ";if(e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?J[t]+" "+X+" ":1===t?"שָׁבֽוּעַ "+J[1]+" ":G+" "+X+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?J[n]+" "+W+" ":1===n?ee+" ":q+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(e):function(e){const[t,n]=V(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)}const K=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],J=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],G="שְׁנֵי",W="יָמִים",q=G+" "+W,X="שָׁבוּעוֹת",Q="יוֹם",ee=Q+" "+J[1],te="עָשָׂר";function ne(e){return e<0?"-00"+ne(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function re(e){return e>=0&&e<10?"0"+e:String(e)}const oe=new Map;const ie=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function ae(e,t){const n=function(e){const t=oe.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 oe.set(e,n),n}(e).format(t),r=ie.exec(n);if(null===r)throw new Error(`Unable to parse formatted string: ${n}`);let o=r[4];return"24"===o&&(o="00"),r[3]=ne(parseInt(r[3],10)),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function se(e){return ne(e.getFullYear())+"-"+re(e.getMonth()+1)+"-"+re(e.getDate())}var ue={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Tevet:["Teves"]}}},ce={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"]}}};const he={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},le={h:"he",a:"ashkenazi",s:"en","":"en"},fe=new Map;let de,ge;function me(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function ye(e){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);return e.toLowerCase()}function ve(e){const t=ye(e),n=fe.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return n}class Se{static lookupTranslation(e,t){const n=("string"==typeof t&&fe.get(t.toLowerCase())||de)[e];if((null==n?void 0:n.length)&&n[0].length)return n[0]}static gettext(e,t){const n=this.lookupTranslation(e,t);return void 0===n?e:n}static addLocale(e,t){if(e=ye(e),"object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);fe.set(e,t.contexts[""])}static addTranslation(e,t,n){const r=ve(e);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id string: ${t}`);const o=Array.isArray(n);if(o){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 string: ${n}`);r[t]=o?n:[n]}static addTranslations(e,t){const n=ve(e);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const r=t.contexts[""];Object.assign(n,r)}static useLocale(e){const t=ye(e),n=ve(t);return ge=le[t]||t,de=n,de}static getLocaleName(){return ge}static getLocaleNames(){return Array.from(fe.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||ge;if(!n)return me(e);switch(n){case"en":case"s":case"a":return me(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e)}return n.startsWith("ashkenazi")?me(e):e+"."}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}Se.addLocale("en",he),Se.addLocale("s",he),Se.addLocale("",he),Se.useLocale("en"),Se.addLocale("ashkenazi",ue),Se.addLocale("a",ue),Se.addLocale("he",ce),Se.addLocale("h",ce);const we=ce.contexts[""],pe={};for(const[e,t]of Object.entries(we))pe[e]=[Se.hebrewStripNikkud(t[0])];const Ae={headers:ce.headers,contexts:{"":pe}};Se.addLocale("he-x-NoNikud",Ae);const be="day",Te="week",Me="month",Ie="year";class Ee{constructor(e,t,n){if(2===arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3===arguments.length){this.dd=this.mm=1;const i="string"==typeof n?parseInt(n,10):n;if(isNaN(i))throw new TypeError(`HDate called with bad year argument: ${n}`);this.yy=i,function(e,t){e.mm=Ee.monthNum(t),Oe(e)}(this,t);const a="string"==typeof e?parseInt(e,10):e;if(isNaN(a))throw new TypeError(`HDate called with bad day argument: ${e}`);o=a,(r=this).dd=o,Oe(r)}else{null==e&&(e=new Date);const t="number"!=typeof e||isNaN(e)?u(e)?h(e):void 0!==e.yy?e:null:e;if(null===t)throw new TypeError(`HDate called with bad argument: ${e}`);const n="number"==typeof t,r=n?p(t):t;this.yy=r.yy,this.mm=r.mm,this.dd=r.dd,n&&(this.rd=t)}var r,o}getFullYear(){return this.yy}isLeapYear(){return A(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=b(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return T(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){return function(e,t){return e-t*Math.floor(e/t)}(this.abs(),7)}greg(){return l(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=S(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return S(e,t,n)}getMonthName(){return M(this.getMonth(),this.getFullYear())}render(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=e||Se.getLocaleName(),r=this.getDate(),o=Se.gettext(this.getMonthName(),n).replace(/'/g,"’"),i=Se.ordinal(r,n),a=function(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const t=Se.lookupTranslation("of",e);if(t)return" "+t;if(e.startsWith("ashkenazi"))return" of";return""}(n),s=`${i}${a} ${o}`;if(t){return`${s}, ${this.getFullYear()}`}return s}renderGematriya(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.getDate(),n=e?"he-x-NoNikud":"he",r=Se.gettext(this.getMonthName(),n),o=this.getFullYear();return U(t)+" "+r+" "+U(o)}before(e){return He(e,this,-1)}onOrBefore(e){return He(e,this,0)}nearest(e){return He(e,this,3)}onOrAfter(e){return He(e,this,6)}after(e){return He(e,this,7)}next(){return new Ee(this.abs()+1)}prev(){return new Ee(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e="string"==typeof e?parseInt(e,10):e))return new Ee(this);if(t=function(e){switch(e){case"d":return be;case"w":return Te;case"M":return Me;case"y":return Ie}const t=String(e||"").toLowerCase().replace(/s$/,"");switch(t){case be:case Te:case Me:case Ie:return t}throw new TypeError(`Invalid units '${e}'`)}(t),t===be)return new Ee(this.abs()+e);if(t===Te)return new Ee(this.abs()+7*e);if(t===Ie)return new Ee(this.getDate(),this.getMonth(),this.getFullYear()+e);{let t=new Ee(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new Ee(t.abs()+n*t.daysInMonth());return t}}subtract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}deltaDays(e){return this.abs()-e.abs()}isSameDate(e){return this.yy===e.yy&&this.mm===e.mm&&this.dd===e.dd}toString(){const e=this.getDate(),t=this.getFullYear();return`${e} ${this.getMonthName()} ${t}`}static isLeapYear(e){return A(e)}static monthsInYear(e){return b(e)}static daysInMonth(e,t){return T(e,t)}static getMonthName(e,t){return M(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):Ee.monthFromName(e)}static daysInYear(e){return E(e)}static longCheshvan(e){return O(e)}static shortKislev(e){return N(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 1;case"i":return 2;case"e":return 6;case"c":case"ח":return 8;case"k":case"כ":return 9;case"s":switch(t[1]){case"i":return 3;case"h":return 11}break;case"t":switch(t[1]){case"a":return 4;case"i":return 7;case"e":return 10}break;case"a":switch(t[1]){case"v":return 5;case"d":return/(1|[^i]i|a|א)$/i.test(e)?12:13}break;case"ס":return 3;case"ט":return 10;case"ש":return 11;case"א":switch(t[1]){case"ב":return 5;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?12:13;case"י":return 2;case"ל":return 6}break;case"ת":switch(t[1]){case"מ":return 4;case"ש":return 7}}throw new RangeError(`Unable to parse month name: ${e}`)}(Se.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=Z(n[0]),i=3===r?n[1]:n[1]+" "+n[2],a=Ee.monthFromName(i);let s=Z(3===r?n[2]:n[3]);return s<1e3&&(s+=t),new Ee(o,a,s)}}function Oe(e){Ne(e),function(e){e.dd<1&&(e.mm===f.TISHREI&&(e.yy-=1),e.dd+=T(e.mm,e.yy),e.mm-=1,Oe(e));e.dd>T(e.mm,e.yy)&&(e.mm===f.ELUL&&(e.yy+=1),e.dd-=T(e.mm,e.yy),e.mm===b(e.yy)?e.mm=1:e.mm+=1,Oe(e));Ne(e)}(e)}function Ne(e){e.mm!==f.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=b(e.yy),e.yy-=1,Oe(e)):e.mm>b(e.yy)&&(e.mm-=b(e.yy),e.yy+=1,Oe(e)):(e.mm-=1,Oe(e)),delete e.rd}function He(e,t,n){return new Ee(Ee.dayOnOrBefore(e,t.abs()+n))}var De={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"],"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"]}}},Ce={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":["רֹאשׁ חוֹדֶשׁ"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבָּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבָּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבָּת הַגָּדוֹל"],"Shabbat Nachamu":["שַׁבָּת נַחֲמוּ"],"Shabbat Parah":["שַׁבָּת פּרה"],"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":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"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:["יוֹם"],"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":["דִברֵי הַיָמִים שֵׁנִי"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"],"Pirkei Avot":["פִּרְקֵי אָבוֹת"]}}};Se.addTranslations("he",Ce),Se.addTranslations("h",Ce),Se.addTranslations("ashkenazi",De),Se.addTranslations("a",De);const _e=Ce.contexts[""],ke={};for(const[e,t]of Object.entries(_e))ke[e]=[Se.hebrewStripNikkud(t[0])];const Le={headers:Ce.headers,contexts:{"":ke}};Se.addTranslations("he-x-NoNikud",Le);const Re={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},Ye=[[Re.MAJOR_FAST,"holiday","major","fast"],[Re.CHANUKAH_CANDLES,"holiday","major"],[Re.HEBREW_DATE,"hebdate"],[Re.MINOR_FAST,"holiday","fast"],[Re.MINOR_HOLIDAY,"holiday","minor"],[Re.MODERN_HOLIDAY,"holiday","modern"],[Re.MOLAD,"molad"],[Re.OMER_COUNT,"omer"],[Re.PARSHA_HASHAVUA,"parashat"],[Re.ROSH_CHODESH,"roshchodesh"],[Re.SHABBAT_MEVARCHIM,"mevarchim"],[Re.SPECIAL_SHABBAT,"holiday","shabbat"],[Re.USER_EVENT,"user"]];class Pe{constructor(e,t,n=0,r){if(!Ee.isHDate(e))throw new TypeError(`Invalid Event date: ${e}`);if("string"!=typeof t)throw new TypeError(`Invalid Event description: ${t}`);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 Se.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&Re.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&Re.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new Pe(this.date,this.desc,this.mask);for(const t in this)this.hasOwnProperty(t)&&Object.defineProperty(e,t,{value:this[t]});return e}getCategories(){const e=this.getFlags();for(const t of Ye){if(e&t[0])return t.slice(1)}return["unknown"]}}class je extends Pe{constructor(e){super(e,e.toString(),Re.HEBREW_DATE)}render(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:Se.getLocaleName(),r=this.getDate();switch(n){case"h":case"he":return r.renderGematriya(!1);case"he-x-nonikud":return r.renderGematriya(!0);default:return r.render(n,!0)}}renderBriefHebrew(e){const t=this.getDate(),n=t.getDate(),r=Se.gettext(t.getMonthName(),e);return U(n)+" "+r}renderBrief(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:Se.getLocaleName(),r=this.getDate();if(r.getMonth()===f.TISHREI&&1===r.getDate())return this.render(n);switch(n){case"h":case"he":case"he-x-nonikud":return this.renderBriefHebrew(n);default:return r.render(n,!1)}}}var Be="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Fe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ue,Ze,$e={};function xe(){if(Ze)return Ue;Ze=1;var e=function(e){return e&&e.Math===Math&&e};return Ue=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof Be&&Be)||e("object"==typeof Ue&&Ue)||function(){return this}()||Function("return this")()}var Ve,ze,Ke,Je,Ge,We,qe,Xe,Qe={};function et(){return ze?Ve:(ze=1,Ve=function(e){try{return!!e()}catch(e){return!0}})}function tt(){if(Je)return Ke;Je=1;var e=et();return Ke=!e((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function nt(){if(We)return Ge;We=1;var e=et();return Ge=!e((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))}function rt(){if(Xe)return qe;Xe=1;var e=nt(),t=Function.prototype.call;return qe=e?t.bind(t):function(){return t.apply(t,arguments)},qe}var ot,it,at,st,ut,ct,ht,lt,ft,dt,gt,mt,yt,vt,St,wt,pt,At,bt,Tt,Mt,It,Et,Ot,Nt,Ht,Dt,Ct,_t,kt,Lt,Rt,Yt,Pt,jt,Bt,Ft,Ut,Zt,$t,xt,Vt={};function zt(){return at?it:(at=1,it=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function Kt(){if(ut)return st;ut=1;var e=nt(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return st=e?r:function(e){return function(){return n.apply(e,arguments)}},st}function Jt(){if(ft)return lt;ft=1;var e=Kt(),t=et(),n=function(){if(ht)return ct;ht=1;var e=Kt(),t=e({}.toString),n=e("".slice);return ct=function(e){return n(t(e),8,-1)},ct}(),r=Object,o=e("".split);return lt=t((function(){return!r("z").propertyIsEnumerable(0)}))?function(e){return"String"===n(e)?o(e,""):r(e)}:r,lt}function Gt(){return gt||(gt=1,dt=function(e){return null==e}),dt}function Wt(){if(yt)return mt;yt=1;var e=Gt(),t=TypeError;return mt=function(n){if(e(n))throw new t("Can't call method on "+n);return n},mt}function qt(){if(St)return vt;St=1;var e=Jt(),t=Wt();return vt=function(n){return e(t(n))},vt}function Xt(){if(pt)return wt;pt=1;var e="object"==typeof document&&document.all;return wt=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function Qt(){if(bt)return At;bt=1;var e=Xt();return At=function(t){return"object"==typeof t?null!==t:e(t)},At}function en(){if(Mt)return Tt;Mt=1;var e=xe(),t=Xt();return Tt=function(n,r){return arguments.length<2?(o=e[n],t(o)?o:void 0):e[n]&&e[n][r];var o},Tt}function tn(){if(Dt)return Ht;Dt=1;var e,t,n=xe(),r=function(){if(Nt)return Ot;Nt=1;var e=xe().navigator,t=e&&e.userAgent;return Ot=t?String(t):""}(),o=n.process,i=n.Deno,a=o&&o.versions||i&&i.version,s=a&&a.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),Ht=t}function nn(){if(_t)return Ct;_t=1;var e=tn(),t=et(),n=xe().String;return Ct=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))}function rn(){if(Lt)return kt;Lt=1;var e=nn();return kt=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function on(){if(Yt)return Rt;Yt=1;var e=en(),t=Xt(),n=function(){if(Et)return It;Et=1;var e=Kt();return It=e({}.isPrototypeOf)}(),r=rn(),o=Object;return Rt=r?function(e){return"symbol"==typeof e}:function(r){var i=e("Symbol");return t(i)&&n(i.prototype,o(r))},Rt}function an(){if(jt)return Pt;jt=1;var e=String;return Pt=function(t){try{return e(t)}catch(e){return"Object"}}}function sn(){if(Ft)return Bt;Ft=1;var e=Xt(),t=an(),n=TypeError;return Bt=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function un(){if(Zt)return Ut;Zt=1;var e=sn(),t=Gt();return Ut=function(n,r){var o=n[r];return t(o)?void 0:e(o)},Ut}function cn(){if(xt)return $t;xt=1;var e=rt(),t=Xt(),n=Qt(),r=TypeError;return $t=function(o,i){var a,s;if("string"===i&&t(a=o.toString)&&!n(s=e(a,o)))return s;if(t(a=o.valueOf)&&!n(s=e(a,o)))return s;if("string"!==i&&t(a=o.toString)&&!n(s=e(a,o)))return s;throw new r("Can't convert object to primitive value")},$t}var hn,ln,fn,dn,gn,mn,yn,vn,Sn,wn,pn,An,bn,Tn,Mn,In,En,On,Nn,Hn,Dn,Cn,_n,kn,Ln={exports:{}};function Rn(){if(dn)return fn;dn=1;var e=xe(),t=Object.defineProperty;return fn=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function Yn(){if(gn)return Ln.exports;gn=1;var e=ln?hn:(ln=1,hn=!1),t=xe(),n=Rn(),r="__core-js_shared__",o=Ln.exports=t[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.39.0",mode:e?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Ln.exports}function Pn(){if(yn)return mn;yn=1;var e=Yn();return mn=function(t,n){return e[t]||(e[t]=n||{})}}function jn(){if(Sn)return vn;Sn=1;var e=Wt(),t=Object;return vn=function(n){return t(e(n))}}function Bn(){if(pn)return wn;pn=1;var e=Kt(),t=jn(),n=e({}.hasOwnProperty);return wn=Object.hasOwn||function(e,r){return n(t(e),r)},wn}function Fn(){if(bn)return An;bn=1;var e=Kt(),t=0,n=Math.random(),r=e(1..toString);return An=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function Un(){if(Mn)return Tn;Mn=1;var e=xe(),t=Pn(),n=Bn(),r=Fn(),o=nn(),i=rn(),a=e.Symbol,s=t("wks"),u=i?a.for||a:a&&a.withoutSetter||r;return Tn=function(e){return n(s,e)||(s[e]=o&&n(a,e)?a[e]:u("Symbol."+e)),s[e]}}function Zn(){if(En)return In;En=1;var e=rt(),t=Qt(),n=on(),r=un(),o=cn(),i=Un(),a=TypeError,s=i("toPrimitive");return In=function(i,u){if(!t(i)||n(i))return i;var c,h=r(i,s);if(h){if(void 0===u&&(u="default"),c=e(h,i,u),!t(c)||n(c))return c;throw new a("Can't convert object to primitive value")}return void 0===u&&(u="number"),o(i,u)}}function $n(){if(Nn)return On;Nn=1;var e=Zn(),t=on();return On=function(n){var r=e(n,"string");return t(r)?r:r+""}}function xn(){if(Dn)return Hn;Dn=1;var e=xe(),t=Qt(),n=e.document,r=t(n)&&t(n.createElement);return Hn=function(e){return r?n.createElement(e):{}},Hn}function Vn(){if(_n)return Cn;_n=1;var e=tt(),t=et(),n=xn();return Cn=!e&&!t((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function zn(){if(kn)return Qe;kn=1;var e=tt(),t=rt(),n=function(){if(ot)return Vt;ot=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return Vt.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,Vt}(),r=zt(),o=qt(),i=$n(),a=Bn(),s=Vn(),u=Object.getOwnPropertyDescriptor;return Qe.f=e?u:function(e,c){if(e=o(e),c=i(c),s)try{return u(e,c)}catch(e){}if(a(e,c))return r(!t(n.f,e,c),e[c])},Qe}var Kn,Jn,Gn,Wn,qn,Xn,Qn,er={};function tr(){if(Jn)return Kn;Jn=1;var e=tt(),t=et();return Kn=e&&t((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}function nr(){if(Wn)return Gn;Wn=1;var e=Qt(),t=String,n=TypeError;return Gn=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function rr(){if(qn)return er;qn=1;var e=tt(),t=Vn(),n=tr(),r=nr(),o=$n(),i=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",h="writable";return er.f=e?n?function(e,t,n){if(r(e),t=o(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var i=s(e,t);i&&i[h]&&(e[t]=n.value,n={configurable:c in n?n[c]:i[c],enumerable:u in n?n[u]:i[u],writable:!1})}return a(e,t,n)}:a:function(e,n,s){if(r(e),n=o(n),r(s),t)try{return a(e,n,s)}catch(e){}if("get"in s||"set"in s)throw new i("Accessors not supported");return"value"in s&&(e[n]=s.value),e},er}function or(){if(Qn)return Xn;Qn=1;var e=tt(),t=rr(),n=zt();return Xn=e?function(e,r,o){return t.f(e,r,n(1,o))}:function(e,t,n){return e[t]=n,e}}var ir,ar,sr,ur,cr,hr,lr,fr,dr,gr,mr,yr,vr,Sr,wr,pr={exports:{}};function Ar(){if(ur)return sr;ur=1;var e=Kt(),t=Xt(),n=Yn(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),sr=n.inspectSource}function br(){if(fr)return lr;fr=1;var e=Pn(),t=Fn(),n=e("keys");return lr=function(e){return n[e]||(n[e]=t(e))}}function Tr(){return gr?dr:(gr=1,dr={})}function Mr(){if(yr)return mr;yr=1;var e,t,n,r=function(){if(hr)return cr;hr=1;var e=xe(),t=Xt(),n=e.WeakMap;return cr=t(n)&&/native code/.test(String(n))}(),o=xe(),i=Qt(),a=or(),s=Bn(),u=Yn(),c=br(),h=Tr(),l="Object already initialized",f=o.TypeError,d=o.WeakMap;if(r||u.state){var g=u.state||(u.state=new d);g.get=g.get,g.has=g.has,g.set=g.set,e=function(e,t){if(g.has(e))throw new f(l);return t.facade=e,g.set(e,t),t},t=function(e){return g.get(e)||{}},n=function(e){return g.has(e)}}else{var m=c("state");h[m]=!0,e=function(e,t){if(s(e,m))throw new f(l);return t.facade=e,a(e,m,t),t},t=function(e){return s(e,m)?e[m]:{}},n=function(e){return s(e,m)}}return mr={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!i(n)||(r=t(n)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}},mr}function Ir(){if(vr)return pr.exports;vr=1;var e=Kt(),t=et(),n=Xt(),r=Bn(),o=tt(),i=function(){if(ar)return ir;ar=1;var e=tt(),t=Bn(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,o=t(n,"name"),i=o&&"something"===function(){}.name,a=o&&(!e||e&&r(n,"name").configurable);return ir={EXISTS:o,PROPER:i,CONFIGURABLE:a}}().CONFIGURABLE,a=Ar(),s=Mr(),u=s.enforce,c=s.get,h=String,l=Object.defineProperty,f=e("".slice),d=e("".replace),g=e([].join),m=o&&!t((function(){return 8!==l((function(){}),"length",{value:8}).length})),y=String(String).split("String"),v=pr.exports=function(e,t,n){"Symbol("===f(h(t),0,7)&&(t="["+d(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!r(e,"name")||i&&e.name!==t)&&(o?l(e,"name",{value:t,configurable:!0}):e.name=t),m&&n&&r(n,"arity")&&e.length!==n.arity&&l(e,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&l(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var a=u(e);return r(a,"source")||(a.source=g(y,"string"==typeof t?t:"")),e};return Function.prototype.toString=v((function(){return n(this)&&c(this).source||a(this)}),"toString"),pr.exports}function Er(){if(wr)return Sr;wr=1;var e=Xt(),t=rr(),n=Ir(),r=Rn();return Sr=function(o,i,a,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:i;if(e(a)&&n(a,c,s),s.global)u?o[i]=a:r(i,a);else{try{s.unsafe?o[i]&&(u=!0):delete o[i]}catch(e){}u?o[i]=a:t.f(o,i,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return o},Sr}var Or,Nr,Hr,Dr,Cr,_r,kr,Lr,Rr,Yr,Pr,jr,Br,Fr,Ur,Zr,$r,xr={};function Vr(){if(Dr)return Hr;Dr=1;var e=function(){if(Nr)return Or;Nr=1;var e=Math.ceil,t=Math.floor;return Or=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},Or}();return Hr=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function zr(){if(_r)return Cr;_r=1;var e=Vr(),t=Math.max,n=Math.min;return Cr=function(r,o){var i=e(r);return i<0?t(i+o,0):n(i,o)}}function Kr(){if(Lr)return kr;Lr=1;var e=Vr(),t=Math.min;return kr=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function Jr(){if(Yr)return Rr;Yr=1;var e=Kr();return Rr=function(t){return e(t.length)}}function Gr(){if(jr)return Pr;jr=1;var e=qt(),t=zr(),n=Jr(),r=function(r){return function(o,i,a){var s=e(o),u=n(s);if(0===u)return!r&&-1;var c,h=t(a,u);if(r&&i!=i){for(;u>h;)if((c=s[h++])!=c)return!0}else for(;u>h;h++)if((r||h in s)&&s[h]===i)return r||h||0;return!r&&-1}};return Pr={includes:r(!0),indexOf:r(!1)}}function Wr(){if(Fr)return Br;Fr=1;var e=Kt(),t=Bn(),n=qt(),r=Gr().indexOf,o=Tr(),i=e([].push);return Br=function(e,a){var s,u=n(e),c=0,h=[];for(s in u)!t(o,s)&&t(u,s)&&i(h,s);for(;a.length>c;)t(u,s=a[c++])&&(~r(h,s)||i(h,s));return h},Br}function qr(){return Zr?Ur:(Zr=1,Ur=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Xr,Qr,eo,to,no,ro,oo,io,ao,so={};function uo(){if(eo)return Qr;eo=1;var e=en(),t=Kt(),n=function(){if($r)return xr;$r=1;var e=Wr(),t=qr().concat("length","prototype");return xr.f=Object.getOwnPropertyNames||function(n){return e(n,t)},xr}(),r=(Xr||(Xr=1,so.f=Object.getOwnPropertySymbols),so),o=nr(),i=t([].concat);return Qr=e("Reflect","ownKeys")||function(e){var t=n.f(o(e)),a=r.f;return a?i(t,a(e)):t},Qr}function co(){if(no)return to;no=1;var e=Bn(),t=uo(),n=zn(),r=rr();return to=function(o,i,a){for(var s=t(i),u=r.f,c=n.f,h=0;h<s.length;h++){var l=s[h];e(o,l)||a&&e(a,l)||u(o,l,c(i,l))}},to}function ho(){if(ao)return io;ao=1;var e=xe(),t=zn().f,n=or(),r=Er(),o=Rn(),i=co(),a=function(){if(oo)return ro;oo=1;var e=et(),t=Xt(),n=/#|\.prototype\./,r=function(n,r){var u=i[o(n)];return u===s||u!==a&&(t(r)?e(r):!!r)},o=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},i=r.data={},a=r.NATIVE="N",s=r.POLYFILL="P";return ro=r}();return io=function(s,u){var c,h,l,f,d,g=s.target,m=s.global,y=s.stat;if(c=m?e:y?e[g]||o(g,{}):e[g]&&e[g].prototype)for(h in u){if(f=u[h],l=s.dontCallGetSet?(d=t(c,h))&&d.value:c[h],!a(m?h:g+(y?".":"#")+h,s.forced)&&void 0!==l){if(typeof f==typeof l)continue;i(f,l)}(s.sham||l&&l.sham)&&n(f,"sham",!0),r(c,h,f,s)}}}var lo,fo,go,mo,yo,vo,So,wo,po,Ao,bo={};function To(){if(fo)return lo;fo=1;var e=Wr(),t=qr();return lo=Object.keys||function(n){return e(n,t)},lo}function Mo(){if(yo)return mo;yo=1;var e=en();return mo=e("document","documentElement")}function Io(){if(So)return vo;So=1;var e,t=nr(),n=function(){if(go)return bo;go=1;var e=tt(),t=tr(),n=rr(),r=nr(),o=qt(),i=To();return bo.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var a,s=o(t),u=i(t),c=u.length,h=0;c>h;)n.f(e,a=u[h++],s[a]);return e},bo}(),r=qr(),o=Tr(),i=Mo(),a=xn(),s=br(),u="prototype",c="script",h=s("IE_PROTO"),l=function(){},f=function(e){return"<"+c+">"+e+"</"+c+">"},d=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,n,o;g="undefined"!=typeof document?document.domain&&e?d(e):(n=a("iframe"),o="java"+c+":",n.style.display="none",i.appendChild(n),n.src=String(o),(t=n.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):d(e);for(var s=r.length;s--;)delete g[u][r[s]];return g()};return o[h]=!0,vo=Object.create||function(e,r){var o;return null!==e?(l[u]=t(e),o=new l,l[u]=null,o[h]=e):o=g(),void 0===r?o:n.f(o,r)},vo}function Eo(){if(po)return wo;po=1;var e=Un(),t=Io(),n=rr().f,r=e("unscopables"),o=Array.prototype;return void 0===o[r]&&n(o,r,{configurable:!0,value:t(null)}),wo=function(e){o[r][e]=!0}}function Oo(e,t,n,r,o){return No(t,Ho(e,t),n,r,o)}function No(e,t,n,r,o,i){const a=Wo(t,n,r);if(o&&t!==a)throw new RangeError(rh(e,t,n,r,i));return a}function Ho(e,t){const n=e[t];if(void 0===n)throw new TypeError(ih(t));return n}function Do(e){return null!==e&&/object|function/.test(typeof e)}function Co(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),i=1;i<r;i++)o[i-1]=arguments[i];const a=e(n,...o);return t.set(n,a),a}}function _o(e){return ko({name:e},1)}function ko(e,t){return Po((e=>({value:e,configurable:1,writable:!t})),e)}function Lo(e){return Po((e=>({get:e,configurable:1})),e)}function Ro(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function Yo(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function Po(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function jo(e,t,n){const r={};for(let o=0;o<t.length;o++){const i=t[o];r[i]=e(i,o,n)}return r}function Bo(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function Fo(e,t){const n={};for(const r of e)n[r]=t[r];return n}function Uo(e,t){const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n}function Zo(e){e={...e};const t=Object.keys(e);for(const n of t)void 0===e[n]&&delete e[n];return e}function $o(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function xo(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function Vo(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 zo(e){return e[0].toUpperCase()+e.substring(1)}function Ko(e){return e.slice().sort()}function Jo(e,t){return String(t).padStart(e,"0")}function Go(e,t){return Math.sign(e-t)}function Wo(e,t,n){return Math.min(Math.max(e,t),n)}function qo(e,t){return[Math.floor(e/t),Xo(e,t)]}function Xo(e,t){return(e%t+t)%t}function Qo(e,t){return[ei(e,t),ti(e,t)]}function ei(e,t){return Math.trunc(e/t)||0}function ti(e,t){return e%t||0}function ni(e){return.5===Math.abs(e%1)}function ri(e,t,n){let r=0,o=0;for(let i=0;i<=t;i++){const t=e[n[i]],a=Qh[i],s=Xh/a,[u,c]=Qo(t,s);r+=c*a,o+=u}const[i,a]=Qo(r,Xh);return[o+i,a]}function oi(e,t,n){const r={};for(let o=t;o>=0;o--){const t=Qh[o];r[n[o]]=ei(e,t),e=ti(e,t)}return r}function ii(e){if(void 0!==e)return si(e)}function ai(e){return di(si(e))}function si(e){return fi(Il(e))}function ui(e){if(null==e)throw new TypeError("Cannot be null or undefined");return e}function ci(e,t){if(null==t)throw new RangeError(ih(e));return t}function hi(e){if(!Do(e))throw new TypeError(nh);return e}function li(e,t){if(typeof t!==e)throw new TypeError(oh(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t));return t}function fi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(!Number.isInteger(e))throw new RangeError(Wc(t,e));return e||0}function di(e){if(e<=0)throw new RangeError(qc(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",e));return e}function gi(e){if("symbol"==typeof e)throw new TypeError(th);return String(e)}function mi(e,t){return Do(e)?String(e):Tl(e,t)}function yi(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(eh(e));return e}function vi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if("bigint"==typeof e)throw new TypeError(Qc(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(Xc(t,e));return e}function Si(e,t){return Math.trunc(vi(e,t))||0}function wi(e,t){return fi(vi(e,t),t)}function pi(e,t){return di(Si(e,t),t)}function Ai(e,t){let[n,r]=Qo(t,Xh),o=e+n;const i=Math.sign(o);return i&&i===-Math.sign(r)&&(o-=i,r+=i*Xh),[o,r]}function bi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Ai(e[0]+t[0]*n,e[1]+t[1]*n)}function Ti(e,t){return Ai(e[0],e[1]+t)}function Mi(e,t){return bi(t,e,-1)}function Ii(e,t){return Go(e[0],t[0])||Go(e[1],t[1])}function Ei(e,t,n){return-1===Ii(e,t)||1===Ii(e,n)}function Oi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=BigInt(Xh/t);return[Number(e/n),Number(e%n)*t]}function Ni(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=Xh/t,[r,o]=Qo(e,n);return[r,o*t]}function Hi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,r]=e,o=Math.floor(r/t),i=Xh/t;return BigInt(n)*BigInt(i)+BigInt(o)}function Di(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,[i,a]=Qo(o,t);return r*(Xh/t)+(i+(n?a/t:0))}function Ci(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qo;const[r,o]=e,[i,a]=n(o,t);return[r*(Xh/t)+i,a]}function _i(e,t){const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function ki(e){return Oo(e,"isoYear",ql,Wl,1),e.isoYear===ql?Oo(e,"isoMonth",4,12,1):e.isoYear===Wl&&Oo(e,"isoMonth",1,9,1),e}function Li(e){return Ri({...e,...Zl,isoHour:12}),e}function Ri(e){const t=Oo(e,"isoYear",ql,Wl,1),n=t===ql?1:t===Wl?-1:0;return n&&Yi(Zi({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function Yi(e){if(!e||Ei(e,Gl,Jl))throw new RangeError(Dh);return e}function Pi(e){return ri(e,5,Yl)[1]}function ji(e){const[t,n]=qo(e,Xh);return[oi(n,5,Yl),t]}function Bi(e){return Fi(e)[0]}function Fi(e){return Ci(e,Gh)}function Ui(e){return Vi(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function Zi(e){const t=Ui(e);if(void 0!==t){const[n,r]=Qo(t,Vh);return[n,r*Jh+(e.isoMicrosecond||0)*Kh+(e.isoNanosecond||0)]}}function $i(e,t){const[n,r]=ji(Pi(e)-t);return Yi(Zi({...e,isoDay:e.isoDay+r,...n}))}function xi(){return Vi(...arguments)/zh}function Vi(){const[e,t]=zi(...arguments),n=e.valueOf();if(!isNaN(n))return n-t*Vh}function zi(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,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;const s=e===ql?1:e===Wl?-1:0,u=new Date;return u.setUTCHours(r,o,i,a),u.setUTCFullYear(e,t-1,n+s),[u,s]}function Ki(e,t){let[n,r]=Ti(e,t);r<0&&(r+=Xh,n-=1);const[o,i]=qo(r,Jh),[a,s]=qo(i,Kh);return Ji(n*Vh+o,a,s)}function Ji(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)-Kl)/Vh)*Math.sign(e),o=new Date(e-r*Vh);return Yo(jl,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+r,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,n])}function Gi(e){return[e.isoYear,e.isoMonth,e.isoDay]}function Wi(){return ef}function qi(e,t){switch(t){case 2:return Qi(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function Xi(e){return Qi(e)?366:365}function Qi(e){return e%4==0&&(e%100!=0||e%400==0)}function ea(e){const[t,n]=zi(e.isoYear,e.isoMonth,e.isoDay);return Xo(t.getUTCDay()-n,7)||7}function ta(e){let{isoYear:t}=e;return t<1?["bce",1-t]:["ce",t]}function na(e){const t=Ui(e);if(t<tf)return ta(e);const n=_i(hd(pl),t),{era:r,eraYear:o}=ec(n,pl);return[r,o]}function ra(e){return oa(e),sa(e,1),e}function oa(e){return aa(e,1),e}function ia(e){return $o(Pl,e,aa(e))}function aa(e,t){const{isoYear:n}=e,r=Oo(e,"isoMonth",1,Wi(),t);return{isoYear:n,isoMonth:r,isoDay:Oo(e,"isoDay",1,qi(n,r),t)}}function sa(e,t){return Yo(Yl,[Oo(e,"isoHour",0,23,t),Oo(e,"isoMinute",0,59,t),Oo(e,"isoSecond",0,59,t),Oo(e,"isoMillisecond",0,999,t),Oo(e,"isoMicrosecond",0,999,t),Oo(e,"isoNanosecond",0,999,t)])}function ua(e){return void 0===e?0:pf(hi(e))}function ca(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=pa(e);const n=Af(e),r=bf(e,t);return[pf(e),r,n]}function ha(e){return Af(pa(e))}function la(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,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:4;t=pa(t);let a=Sf(t,r,o),s=va(t),u=Ef(t,i);const c=vf(t,r,o,1);return null==a?a=Math.max(n,c):Ea(a,c),s=Sa(s,c,1),e&&(u=(e=>e<4?(e+2)%4:e)(u)),[a,c,s,u]}function fa(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=arguments.length>2?arguments[2]:void 0,r=va(e=Aa(e,rf));const o=Ef(e,7);let i=vf(e,t);return i=ci(rf,i),r=Sa(r,i,void 0,n),[i,r,o]}function da(e){return Tf(pa(e))}function ga(e,t){return ma(pa(e),t)}function ma(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=wa(e);return[Ef(e,4),...ya(vf(e,t),n)]}function ya(e,t){return null!=e?[Qh[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function va(e){const t=e[af];return void 0===t?1:Si(t,af)}function Sa(e,t,n,r){const o=r?Xh:Qh[t+1];if(o){const n=Qh[t];if(o%((e=No(af,e,1,o/n-(r?0:1),1))*n))throw new RangeError(oh(af,e))}else e=No(af,e,1,n?10**9:1,1);return e}function wa(e){let t=e[sf];if(void 0!==t){if("number"!=typeof t){if("auto"===gi(t))return;throw new RangeError(oh(sf,t))}t=No(sf,Math.floor(t),0,9,1)}return t}function pa(e){return void 0===e?{}:hi(e)}function Aa(e,t){return"string"==typeof e?{[t]:e}:hi(e)}function ba(e){if(void 0!==e){if(Do(e))return Object.assign(Object.create(null),e);throw new TypeError(nh)}}function Ta(e,t){return e&&Object.assign(Object.create(null),e,{overflow:hf[t]})}function Ma(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,i=t[e];if(void 0===i)return o?r:void 0;if(i=gi(i),"auto"===i)return o?r:null;let a=$h[i];if(void 0===a&&(a=_l[i]),void 0===a)throw new RangeError(ch(e,i,$h));return No(e,a,r,n,1,xh),a}function Ia(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 i=gi(o),a=t[i];if(void 0===a)throw new RangeError(ch(e,i,t));return a}function Ea(e,t){if(t>e)throw new RangeError(Yh)}function Oa(e){return{branding:kf,epochNanoseconds:e}}function Na(e,t,n){return{branding:_f,calendar:n,timeZone:t,epochNanoseconds:e}}function Ha(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Df,calendar:t,...Fo(Ul,e)}}function Da(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Hf,calendar:t,...Fo(Bl,e)}}function Ca(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Of,calendar:t,...Fo(Bl,e)}}function _a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Nf,calendar:t,...Fo(Bl,e)}}function ka(e){return{branding:Cf,...Fo(Fl,e)}}function La(e){return{branding:Lf,sign:qs(e),...Fo(Nl,e)}}function Ra(e){return Ci(e.epochNanoseconds,Jh)[0]}function Ya(e){return e.epochNanoseconds}function Pa(e){return"string"==typeof e?e:Tl(e.id)}function ja(e,t){return e===t||Pa(e)===Pa(t)}function Ba(e,t){return Di(eu(e),Qh[t],1)}function Fa(e,t,n,r,o,i,a){const s=Ol[n],u={...t,[s]:t[s]+r},c=a(e,o,t),h=a(e,o,u);return[i(c),i(h)]}function Ua(e,t,n){const r=Di(Mi(t,n));if(!r)throw new RangeError(Ah);return Di(Mi(t,e))/r}function Za(e,t,n,r){return $a(e,za(t,n),r)}function $a(e,t,n){const[r,o]=xa(e,t,n);return Ri({...Us(e,o),...r})}function xa(e,t,n){return ji(Qa(Pi(e),t,n))}function Va(e){return Qa(e,Wh,7)}function za(e,t){return Qh[e]*t}function Ka(e){const t=Ja(e);return[t,Us(t,1)]}function Ja(e){return $l(6,e)}function Ga(e,t,n){const r=Math.min(ou(e),6);return tu(Xa(eu(e,r),t,n),r)}function Wa(e,t,n,r,o,i,a,s,u,c){if(0===r&&1===o)return e;const h=Ks(r,s)?zs(s)&&r<6&&n>=6?ns:ts:rs;let[l,f,d]=h(e,t,n,r,o,i,a,s,u,c);return d&&7!==r&&(l=((e,t,n,r,o,i,a,s)=>{const u=qs(e);for(let c=r+1;c<=n;c++){if(7===c&&7!==n)continue;const r=Rl(c,e);r[Ol[c]]+=u;const h=Di(Mi(a(s(o,i,r)),t));if(h&&Math.sign(h)!==u)break;e=r}return e})(l,f,n,Math.max(6,r),a,s,u,c)),l}function qa(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/Xh)(e);return[Qa(t,n,r),0]}return Xa(e,za(t,n),r,o)}function Xa(e,t,n,r){let[o,i]=e;r&&i<0&&(i+=Xh,o-=1);const[a,s]=qo(Qa(i,t,n),Xh);return Ai(o+a,s)}function Qa(e,t,n){return es(e/t,n)*t}function es(e,t){return Rf[t](e)}function ts(e,t,n,r,o,i){const a=qs(e),s=eu(e),u=qa(s,r,o,i),c=Mi(s,u),h=Math.sign(u[0]-s[0])===a,l=tu(u,Math.min(n,6));return[{...e,...l},bi(t,c),h]}function ns(e,t,n,r,o,i,a,s,u,c){const h=qs(e),l=Di(eu(e,5)),f=za(r,o);let d=Qa(l,f,i);const[g,m]=Fa(a,{...e,...Ll},6,h,s,u,c),y=d-Di(Mi(g,m));let v=0;y&&Math.sign(y)!==h?t=Ti(g,d):(v+=h,d=Qa(y,f,i),t=Ti(m,d));const S=nu(d);return[{...e,...S,days:e.days+v},t,Boolean(v)]}function rs(e,t,n,r,o,i,a,s,u,c){const h=qs(e),l=Ol[r],f=Rl(r,e);7===r&&(e={...e,weeks:e.weeks+Math.trunc(e.days/7)});const d=ei(e[l],o)*o;f[l]=d;const[g,m]=Fa(a,f,r,o*h,s,u,c),y=d+Ua(t,g,m)*h*o,v=Qa(y,o,i),S=Math.sign(v-y)===h;return f[l]=v,[f,S?m:g,S]}function os(e,t,n,r){const[o,i,a,s]=(e=>{const t=ma(e=pa(e));return[e.timeZone,...t]})(r),u=void 0!==o;return((e,t,n,r,o,i)=>{n=Xa(n,o,r,1);const a=t.getOffsetNanosecondsFor(n);return gs(Ki(n,a),i)+(e?ws(Va(a)):"Z")})(u,t(u?e(o):Yf),n.epochNanoseconds,i,a,s)}function is(e,t,n){const[r,o,i,a,s,u]=(e=>{e=pa(e);const t=Tf(e),n=wa(e),r=If(e),o=Ef(e,4),i=vf(e,4);return[t,Mf(e),r,o,...ya(i,n)]})(n);return((e,t,n,r,o,i,a,s,u,c)=>{r=Xa(r,u,s,1);const h=e(n).getOffsetNanosecondsFor(r);return gs(Ki(r,h),c)+ws(Va(h),a)+((e,t)=>1!==t?"["+(2===t?"!":"")+Pa(e)+"]":"")(n,i)+ps(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,i,a,s,u)}function as(e,t){const[n,r,o,i]=(e=>(e=pa(e),[Tf(e),...ma(e)]))(t);return a=e.calendar,s=n,u=i,gs($a(e,o,r),u)+ps(a,s);var a,s,u}function ss(e,t){return n=e.calendar,r=e,o=da(t),ms(r)+ps(n,o);var n,r,o}function us(e,t){return fs(e.calendar,ys,e,da(t))}function cs(e,t){return fs(e.calendar,vs,e,da(t))}function hs(e,t){const[n,r,o]=ga(t);return i=o,Ss(xa(e,r,n)[0],i);var i}function ls(e,t){const[n,r,o]=ga(t,3);return r>1&&(e={...e,...Ga(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?Ws(e):e,{hours:o,minutes:i}=r,[a,s]=Ci(eu(r,3),Gh,Qo);Qs(a);const u=bs(s,t),c=t>=0||!n||u;return(n<0?"-":"")+"P"+ds({Y:Ms(r.years),M:Ms(r.months),W:Ms(r.weeks),D:Ms(r.days)})+(o||i||a||c?"T"+ds({H:Ms(o),M:Ms(i),S:Ms(a,c)+u}):"")})(e,o)}function fs(e,t,n,r){const o=Pa(e),i=r>1||0===r&&o!==Sl;return 1===r?o===Sl?t(n):ms(n):i?ms(n)+As(o,2===r):t(n)}function ds(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function gs(e,t){return ms(e)+"T"+Ss(e,t)}function ms(e){return ys(e)+"-"+Zh(e.isoDay)}function ys(e){const{isoYear:t}=e;return(t<0||t>9999?Ts(t)+Jo(6,Math.abs(t)):Jo(4,t))+"-"+Zh(e.isoMonth)}function vs(e){return Zh(e.isoMonth)+"-"+Zh(e.isoDay)}function Ss(e,t){const n=[Zh(e.isoHour),Zh(e.isoMinute)];return-1!==t&&n.push(Zh(e.isoSecond)+((e,t,n,r)=>bs(e*Jh+t*Kh+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function ws(e){if(1===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0))return"";const[t,n]=qo(Math.abs(e),qh),[r,o]=qo(n,Wh),[i,a]=qo(o,Gh);return Ts(e)+Zh(t)+":"+Zh(r)+(i||a?":"+Zh(i)+bs(a):"")}function ps(e,t){if(1!==t){const n=Pa(e);if(t>1||0===t&&n!==Sl)return As(n,2===t)}return""}function As(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function bs(e,t){let n=Jo(9,e);return n=void 0===t?n.replace(Ff,""):n.slice(0,t),n?"."+n:""}function Ts(e){return e<0?"-":"+"}function Ms(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function Is(e,t){const{epochNanoseconds:n}=e,r=(t.getOffsetNanosecondsFor?t:t(e.timeZone)).getOffsetNanosecondsFor(n),o=Ki(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function Es(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0;if(void 0!==n&&1===r&&(1===r||a))return $i(t,n);const s=e.getPossibleInstantsFor(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=Zi(t);r&&(n=Va(n));for(const t of e){let e=Di(Mi(t,o));if(r&&(e=Va(e)),e===n)return t}})(s,t,n,i);if(void 0!==e)return e;if(0===r)throw new RangeError(Nh)}return a?Zi(t):Os(e,t,o,s)}function Os(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(Hh);if(r.length)return r[3===n?1:0];const o=Zi(t),i=((e,t)=>{const n=e.getOffsetNanosecondsFor(Ti(t,-Xh));return Hs(e.getOffsetNanosecondsFor(Ti(t,Xh))-n)})(e,o),a=i*(2===n?-1:1);return(r=e.getPossibleInstantsFor(Ki(o,a)))[2===n?0:r.length-1]}function Ns(e){if(Math.abs(e)>=Xh)throw new RangeError(Eh);return e}function Hs(e){if(e>Xh)throw new RangeError(Oh);return e}function Ds(e,t,n){return Oa(Yi(bi(t.epochNanoseconds,(e=>{if(ru(e))throw new RangeError(Lh);return eu(e,5)})(e?Ws(n):n))))}function Cs(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Object.create(null);const a=t(r.timeZone),s=e(r.calendar);return{...r,...Ys(a,s,r,n?Ws(o):o,i)}}function _s(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const{calendar:i}=n;return Ha(Ps(e(i),n,t?Ws(r):r,o),i)}function ks(e,t,n,r,o){const{calendar:i}=n;return Da(js(e(i),n,t?Ws(r):r,o),i)}function Ls(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const i=n.calendar,a=e(i);let s=Bs(a,n);t&&(r=Gs(r)),r.sign<0&&(s=a.dateAdd(s,{...kl,months:1}),s=Us(s,-1));const u=a.dateAdd(s,r,o);return Ca(Bs(a,u),i)}function Rs(e,t,n){return ka(Fs(t,e?Ws(n):n)[0])}function Ys(e,t,n,r,o){const i=eu(r,5);let a=n.epochNanoseconds;if(ru(r)){const s=Uf(n,e);a=bi(Os(e,{...js(t,s,{...r,...Ll},o),...Fo(Yl,s)}),i)}else a=bi(a,i),ua(o);return{epochNanoseconds:Yi(a)}}function Ps(e,t,n,r){const[o,i]=Fs(t,n);return Ri({...js(e,t,{...n,...Ll,days:n.days+i},r),...o})}function js(e,t,n,r){if(n.years||n.months||n.weeks)return e.dateAdd(t,n,r);ua(r);const o=n.days+eu(n,5)[0];return o?Li(Us(t,o)):t}function Bs(e,t){return Us(t,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)-e.day(t))}function Fs(e,t){const[n,r]=eu(t,5),[o,i]=ji(Pi(e)+r);return[o,n+i]}function Us(e,t){return t?{...e,...Ji(Ui(e)+t*Vh)}:e}function Zs(e,t,n){const r=e(n.calendar);return zs(n)?[n,r,t(n.timeZone)]:[{...n,...Zl},r]}function $s(e){return e?Ya:Zi}function xs(e){return e?Vo(Ys,e):Ps}function Vs(e){return e?Vo(Uu,e):Zu}function zs(e){return e&&e.epochNanoseconds}function Ks(e,t){return e<=6-(zs(t)?1:0)}function Js(e,t,n,r,o,i,a){const s=e(pa(a).relativeTo),u=Math.max(ou(o),ou(i));if(Ks(u,s))return La(Xs(((e,t,n,r)=>{const o=bi(eu(e),eu(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(Dh);return{...kl,...tu(o,n)}})(o,i,u,r)));if(!s)throw new RangeError(kh);r&&(i=Ws(i));const[c,h,l]=Zs(t,n,s),f=xs(l),d=Vs(l),g=f(h,c,o);return La(d(h,c,f(h,g,i),u))}function Gs(e){return La(Ws(e))}function Ws(e){const t={};for(const n of Ol)t[n]=-1*e[n]||0;return t}function qs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ol,n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(_h);n=t}}return n}function Xs(e){for(const t of Cl)No(t,e[t],-Zf,Zf,1);return Qs(Di(eu(e),Gh)),e}function Qs(e){if(!Number.isSafeInteger(e))throw new RangeError(Ch)}function eu(e){return ri(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,Ol)}function tu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const[n,r]=e,o=oi(r,t,Ol);if(o[Ol[t]]+=n*(Xh/Qh[t]),!Number.isFinite(o[Ol[t]]))throw new RangeError(Dh);return o}function nu(e){return oi(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,Ol)}function ru(e){return Boolean(qs(e,Dl))}function ou(e){let t=9;for(;t>0&&!e[Ol[t]];t--);return t}function iu(e,t){return[e,t]}function au(e){const t=Math.floor(e/Pf)*Pf;return[t,t+Pf]}function su(e){const t=vu(e);if(void 0===t)throw new RangeError(Ph(e));return t}function uu(e){const t=gu(Tl(e));if(!t||t.m)throw new RangeError(Ph(e));return Da(t.p?lu(t):fu(t))}function cu(e){if(e.calendar!==Sl)throw new RangeError(jh(e.calendar))}function hu(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=Iu(e.timeZone),i=$f(o);return Na(Es(i,ra(e),t,n,r,!i.v,e.m),o,cc(e.calendar))}function lu(e){return du(Ri(ra(e)))}function fu(e){return du(Li(oa(e)))}function du(e){return{...e,calendar:cc(e.calendar)}}function gu(e){const t=nd.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:Su(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...wu(e.slice(5)),...pu(e[16]),p:Boolean(e[6]),m:n,offset:n?void 0:t}})(t):void 0}function mu(e){const t=ed.exec(e);return t?(e=>({isoYear:Su(e),isoMonth:parseInt(e[4]),isoDay:1,...pu(e[5])}))(t):void 0}function yu(e){const t=td.exec(e);return t?(e=>({isoYear:Ql,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...pu(e[3])}))(t):void 0}function vu(e,t){const n=od.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(jh(n));return Ns((Mu(e[2])*qh+Mu(e[3])*Wh+Mu(e[4])*Gh+Au(e[5]||""))*Tu(e[1]))})(n,t):void 0}function Su(e){const t=Tu(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(jh(-0));return t*n}function wu(e){const t=Mu(e[3]);return{...ji(Au(e[4]||""))[0],isoHour:Mu(e[1]),isoMinute:Mu(e[2]),isoSecond:60===t?59:t}}function pu(e){let t,n;const r=[];if(e.replace(id,((e,o,i)=>{const a=Boolean(o),[s,u]=i.split("=").reverse();if(u){if("u-ca"===u)r.push(s),t||(t=a);else if(a||/[A-Z]/.test(u))throw new RangeError(jh(e))}else{if(n)throw new RangeError(jh(e));n=s}return""})),r.length>1&&t)throw new RangeError(jh(e));return{timeZone:n,calendar:r[0]||Sl}}function Au(e){return parseInt(e.padEnd(9,"0"))}function bu(e){return new RegExp(`^${e}$`,"i")}function Tu(e){return e&&"+"!==e?-1:1}function Mu(e){return void 0===e?0:parseInt(e)}function Iu(e){const t=Ou(e);return"number"==typeof t?ws(t):t?(e=>{if(ud.test(e))throw new RangeError(Ih);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?zo(e).replace(/island|noronha|murdo|rivadavia|urville/,zo):e)))).join("/")})(e):Yf}function Eu(e){const t=Ou(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:Yf}function Ou(e){const t=vu(e=e.toUpperCase(),1);return void 0!==t?t:e!==Yf?sd(e):void 0}function Nu(e,t){return Ii(e.epochNanoseconds,t.epochNanoseconds)}function Hu(e,t){return Ii(e.epochNanoseconds,t.epochNanoseconds)}function Du(e,t){return Cu(e,t)||_u(e,t)}function Cu(e,t){return Go(Ui(e),Ui(t))}function _u(e,t){return Go(Pi(e),Pi(t))}function ku(e,t){if(e===t)return 1;const n=Pa(e),r=Pa(t);if(n===r)return 1;try{return Eu(n)===Eu(r)}catch(e){}}function Lu(e,t,n,r){const o=la(e,ba(r),3,5),i=Vu(t.epochNanoseconds,n.epochNanoseconds,...o);return La(e?Ws(i):i)}function Ru(e,t,n,r,o,i){const a=Wu(r.calendar,o.calendar),s=ba(i),[u,c,h,l]=la(n,s,5),f=r.epochNanoseconds,d=o.epochNanoseconds,g=Ii(d,f);let m;if(g)if(u<6)m=Vu(f,d,u,c,h,l);else{const n=t(((e,t)=>{if(!ku(e,t))throw new RangeError(Mh);return e})(r.timeZone,o.timeZone)),i=e(a);m=$u(i,n,r,o,g,u,s),m=Wa(m,d,u,c,h,l,i,r,Ya,Vo(Ys,n))}else m=kl;return La(n?Ws(m):m)}function Yu(e,t,n,r,o){const i=Wu(n.calendar,r.calendar),a=ba(o),[s,u,c,h]=la(t,a,6),l=Zi(n),f=Zi(r),d=Ii(f,l);let g;if(d)if(s<=6)g=Vu(l,f,s,u,c,h);else{const t=e(i);g=xu(t,n,r,d,s,a),g=Wa(g,f,s,u,c,h,t,n,Zi,Ps)}else g=kl;return La(t?Ws(g):g)}function Pu(e,t,n,r,o){const i=Wu(n.calendar,r.calendar),a=ba(o);return Bu(t,(()=>e(i)),n,r,...la(t,a,6,9,6),a)}function ju(e,t,n,r,o){const i=Wu(n.calendar,r.calendar),a=ba(o),s=la(t,a,9,9,8),u=e(i);return Bu(t,(()=>u),Bs(u,n),Bs(u,r),...s,a)}function Bu(e,t,n,r,o,i,a,s,u){const c=Zi(n),h=Zi(r);let l;if(Ii(h,c))if(6===o)l=Vu(c,h,o,i,a,s);else{const e=t();l=e.dateUntil(n,r,o,u),6===i&&1===a||(l=Wa(l,h,o,i,a,s,e,n,Zi,js))}else l=kl;return La(e?Ws(l):l)}function Fu(e,t,n,r){const o=ba(r),[i,a,s,u]=la(e,o,5,5),c=Qa(Gu(t,n),za(a,s),u),h={...kl,...nu(c,i)};return La(e?Ws(h):h)}function Uu(e,t,n,r,o,i){const a=Ii(r.epochNanoseconds,n.epochNanoseconds);return a?o<6?zu(n.epochNanoseconds,r.epochNanoseconds,o):$u(t,e,n,r,a,o,i):kl}function Zu(e,t,n,r,o){const i=Zi(t),a=Zi(n),s=Ii(a,i);return s?r<=6?zu(i,a,r):xu(e,t,n,s,r,o):kl}function $u(e,t,n,r,o,i,a){const[s,u,c]=((e,t,n,r)=>{function o(){return l={...Us(s,c++*-r),...a},f=Os(e,l),Ii(u,f)===-r}const i=Uf(t,e),a=Fo(Yl,i),s=Uf(n,e),u=n.epochNanoseconds;let c=0;const h=Gu(i,s);let l,f;if(Math.sign(h)===-r&&c++,o()&&(-1===r||o()))throw new RangeError(Ah);const d=Di(Mi(f,u));return[i,l,d]})(t,n,r,o);var h,l;return{...6===i?(h=s,l=u,{...kl,days:Ku(h,l)}):e.dateUntil(s,u,i,a),...nu(c)}}function xu(e,t,n,r,o,i){const[a,s,u]=((e,t,n)=>{let r=t,o=Gu(e,t);return Math.sign(o)===-n&&(r=Us(t,-n),o+=Xh*n),[e,r,o]})(t,n,r);return{...e.dateUntil(a,s,o,i),...nu(u)}}function Vu(e,t,n,r,o,i){return{...kl,...tu(qa(Mi(e,t),r,o,i),n)}}function zu(e,t,n){return{...kl,...tu(Mi(e,t),n)}}function Ku(e,t){return Ju(Ui(e),Ui(t))}function Ju(e,t){return Math.trunc((t-e)/Vh)}function Gu(e,t){return Pi(t)-Pi(e)}function Wu(e,t){if(!ja(e,t))throw new RangeError(bh);return e}function qu(e){function t(e){return((e,t)=>({...ec(e,t),F:e.month,day:parseInt(e.day)}))(_i(n,e),r)}const n=hd(e),r=hc(e);return{id:e,O:Xu(t),B:Qu(t)}}function Xu(e){return Co((t=>{const n=Ui(t);return e(n)}),WeakMap)}function Qu(e){const t=e(0).year-Xl;return Co((n=>{let r,o=Vi(n-t);const i=[],a=[];do{o+=400*Vh}while((r=e(o)).year<=n);do{o+=(1-r.day)*Vh,r.year===n&&(i.push(o),a.push(r.F)),o-=Vh}while((r=e(o)).year>=n);return{k:i.reverse(),C:Fh(a.reverse())}}))}function ec(e,t){let n,r,o=tc(e);if(e.era){const i=Al[t];void 0!==i&&(n="islamic"===t?"ah":e.era.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),"bc"===n||"b"===n?n="bce":"ad"!==n&&"a"!==n||(n="ce"),r=o,o=vc(r,i[n]||0))}return{era:n,eraYear:r,year:o}}function tc(e){return parseInt(e.relatedYear||e.year)}function nc(e){const{year:t,F:n,day:r}=this.O(e),{C:o}=this.B(t);return[t,o[n]+1,r]}function rc(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.B(e).k[t-1]+(n-1)*Vh}function oc(e){const t=uc(this,e),n=uc(this,e-1),r=t.length;if(r>n.length){const e=wc(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function ic(e){return Ju(rc.call(this,e),rc.call(this,e+1))}function ac(e,t){const{k:n}=this.B(e);let r=t+1,o=n;return r>n.length&&(r=1,o=this.B(e+1).k),Ju(n[t-1],o[r-1])}function sc(e){return this.B(e).k.length}function uc(e,t){return Object.keys(e.B(t).C)}function cc(e){if((e=e.toLowerCase())!==Sl&&e!==wl&&hc(e)!==hc(hd(e).resolvedOptions().calendar))throw new RangeError(Th(e));return e}function hc(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function lc(e){return this.R(e)[0]}function fc(e){return this.R(e)[1]}function dc(e){const[t]=this.h(e);return Ju(this.q(t),Ui(e))+1}function gc(e){const t=ld.exec(e);if(!t)throw new RangeError(yh(e));return[parseInt(t[1]),Boolean(t[2])]}function mc(e,t,n){return e+(t||n&&e>=n?1:0)}function yc(e,t){return e-(t&&e>=t?1:0)}function vc(e,t){return(t+e)*(Math.sign(t)||1)||0}function Sc(e){return Al[pc(e)]}function wc(e){return bl[pc(e)]}function pc(e){return hc(e.id||Sl)}function Ac(e,t,n,r){const o=Ic(n,r,gl,[],il);if(void 0!==o.timeZone){const r=n.dateFromFields(o),i=Oc(o),a=e(o.timeZone);return{epochNanoseconds:Es(t(a),{...r,...i},void 0!==o.offset?su(o.offset):void 0),timeZone:a}}return{...n.dateFromFields(o),...Zl}}function bc(e,t,n){const r=Ic(e,t,gl,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]);return e.dateFromFields(r,n)}function Tc(e,t,n,r){const o=Ic(e,t,fl,r);return e.yearMonthFromFields(o,n)}function Mc(e,t,n,r){const o=Ic(e,n,gl,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=Ql),e.monthDayFromFields(o,r)}function Ic(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 Ec(t,[...e.fields(n),...o].sort(),r)}function Ec(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:!n;const o={};let i,a=0;for(const r of t){if(r===i)throw new RangeError(sh(r));if("constructor"===r||"__proto__"===r)throw new RangeError(ah(r));let t=e[r];if(void 0!==t)a=1,md[r]&&(t=md[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(ih(r));o[r]=vl[r]}i=r}if(r&&!a)throw new TypeError(uh(t));return o}function Oc(e,t){return sa(yd({...vl,...e}),t)}function Nc(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];const a=[...e.fields(r),...o].sort();let s=Ec(t,a,i);const u=Ec(n,a);return s=e.mergeFields(s,u),Ec(s,a,[])}function Hc(e,t){const n=Ic(e,t,yl);return e.monthDayFromFields(n)}function Dc(e,t,n){const r=Ic(e,t,dl);return e.yearMonthFromFields(r,n)}function Cc(e,t,n,r,o){t=Fo(n=e.fields(n),t),r=Ec(r,o=e.fields(o),[]);let i=e.mergeFields(t,r);return i=Ec(i,[...n,...o].sort(),[]),e.dateFromFields(i)}function _c(e,t){let{era:n,eraYear:r,year:o}=t;const i=Sc(e);if(void 0!==n||void 0!==r){if(void 0===n||void 0===r)throw new TypeError(fh);if(!i)throw new RangeError(lh);const e=i[n];if(void 0===e)throw new RangeError(gh(n));const t=vc(r,e);if(void 0!==o&&o!==t)throw new RangeError(dh);o=t}else if(void 0===o)throw new TypeError(mh(i));return o}function kc(e,t,n,r){let{month:o,monthCode:i}=t;if(void 0!==i){const t=((e,t,n,r)=>{const o=e.U(n),[i,a]=gc(t);let s=mc(i,a,o);if(a){const t=wc(e);if(void 0===t)throw new RangeError(ph);if(t>0){if(s>t)throw new RangeError(ph);if(void 0===o){if(1===r)throw new RangeError(ph);s--}}else{if(s!==-t)throw new RangeError(ph);if(void 0===o&&1===r)throw new RangeError(ph)}}return s})(e,i,n,r);if(void 0!==o&&o!==t)throw new RangeError(vh);o=t,r=1}else if(void 0===o)throw new TypeError(Sh);return No("month",o,1,e.L(n),r)}function Lc(e,t,n,r,o){return Oo(t,"day",1,e.j(r,n),o)}function Rc(e,t,n,r){let o=0;const i=[];for(const e of n)void 0!==t[e]?o=1:i.push(e);if(Object.assign(e,t),o)for(const t of r||i)delete e[t]}function Yc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Sl;return Na(e.epochNanoseconds,t,n)}function Pc(e,t){return Ha(Uf(t,e))}function jc(e,t){return Da(Uf(t,e))}function Bc(e,t){return ka(Uf(t,e))}function Fc(e,t){return{...e,calendar:t}}function Uc(e,t){if(e===t)return e;const n=Pa(e),r=Pa(t);if(n===r||n===Sl)return t;if(r===Sl)return e;throw new RangeError(bh)}function Zc(e,t){return n=>n===Sl?e:n===wl||n===pl?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),cd(n))}function $c(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=Uo(r,o),e)||Object.assign(o,t),n&&(o.timeZone=Yf,["full","long"].includes(o.timeStyle)&&(o.timeStyle="medium")),o)}function xc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vc;const[n,,,r]=e;return function(o){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vd;for(var a=arguments.length,s=new Array(a>2?a-2:0),u=2;u<a;u++)s[u-2]=arguments[u];const c=t(r&&r(...s),o,i,n),h=c.resolvedOptions();return[c,...zc(e,h,s)]}}function Vc(e,t,n,r){if(n=r(n),e){if(void 0!==n.timeZone)throw new TypeError(Bh);n.timeZone=e}return new xl(t,n)}function zc(e,t,n){const[,r,o]=e;return n.map((e=>(e.calendar&&((e,t,n)=>{if((n||e!==Sl)&&e!==t)throw new RangeError(bh)})(Pa(e.calendar),t.calendar,o),r(e,t))))}function Kc(e){const t=Jc();return Ki(t,e.getOffsetNanosecondsFor(t))}function Jc(){return Ni(Date.now(),Jh)}function Gc(){return Qd||(Qd=(new xl).resolvedOptions().timeZone)}!function(){if(Ao)return $e;Ao=1;var e=ho(),t=Gr().includes,n=et(),r=Eo();e({target:"Array",proto:!0,forced:n((function(){return!Array(1).includes()}))},{includes:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")}();const Wc=(e,t)=>`Non-integer ${e}: ${t}`,qc=(e,t)=>`Non-positive ${e}: ${t}`,Xc=(e,t)=>`Non-finite ${e}: ${t}`,Qc=e=>`Cannot convert bigint to ${e}`,eh=e=>`Invalid bigint: ${e}`,th="Cannot convert Symbol to string",nh="Invalid object",rh=(e,t,n,r,o)=>o?rh(e,o[t],o[n],o[r]):oh(e,t)+`; must be between ${n}-${r}`,oh=(e,t)=>`Invalid ${e}: ${t}`,ih=e=>`Missing ${e}`,ah=e=>`Invalid field ${e}`,sh=e=>`Duplicate field ${e}`,uh=e=>"No valid fields: "+e.join(),ch=(e,t,n)=>oh(e,t)+"; must be "+Object.keys(n).join(),hh="Invalid calling context",lh="Forbidden era/eraYear",fh="Mismatching era/eraYear",dh="Mismatching year/eraYear",gh=e=>`Invalid era: ${e}`,mh=e=>"Missing year"+(e?"/era/eraYear":""),yh=e=>`Invalid monthCode: ${e}`,vh="Mismatching month/monthCode",Sh="Missing month/monthCode",wh="Cannot guess year",ph="Invalid leap month",Ah="Invalid protocol results",bh="Mismatching Calendars",Th=e=>`Invalid Calendar: ${e}`,Mh="Mismatching TimeZones",Ih="Forbidden ICU TimeZone",Eh="Out-of-bounds offset",Oh="Out-of-bounds TimeZone gap",Nh="Invalid TimeZone offset",Hh="Ambiguous offset",Dh="Out-of-bounds date",Ch="Out-of-bounds duration",_h="Cannot mix duration signs",kh="Missing relativeTo",Lh="Cannot use large units",Rh="Required smallestUnit or largestUnit",Yh="smallestUnit > largestUnit",Ph=e=>`Cannot parse: ${e}`,jh=e=>`Invalid substring: ${e}`,Bh="Cannot specify TimeZone",Fh=Vo(jo,((e,t)=>t)),Uh=Vo(jo,((e,t,n)=>n)),Zh=Vo(Jo,2),$h={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},xh=Object.keys($h),Vh=864e5,zh=1e3,Kh=1e3,Jh=1e6,Gh=1e9,Wh=6e10,qh=36e11,Xh=864e11,Qh=[1,Kh,Jh,Gh,Wh,qh,Xh],el=xh.slice(0,6),tl=Ko(el),nl=["offset"],rl=["timeZone"],ol=el.concat(nl),il=ol.concat(rl),al=["era","eraYear"],sl=al.concat(["year"]),ul=["year"],cl=["monthCode"],hl=["month"].concat(cl),ll=["day"],fl=hl.concat(ul),dl=cl.concat(ul),gl=ll.concat(fl),ml=ll.concat(hl),yl=ll.concat(cl),vl=Uh(el,0),Sl="iso8601",wl="gregory",pl="japanese",Al={[wl]:{bce:-1,ce:0},[pl]:{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}},bl={chinese:13,dangi:13,hebrew:-6},Tl=Vo(li,"string"),Ml=Vo(li,"boolean"),Il=Vo(li,"number"),El=Vo(li,"function"),Ol=xh.map((e=>e+"s")),Nl=Ko(Ol),Hl=Ol.slice(0,6),Dl=Ol.slice(6),Cl=Dl.slice(1),_l=Fh(Ol),kl=Uh(Ol,0),Ll=Uh(Hl,0),Rl=Vo(xo,Ol),Yl=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],Pl=["isoDay","isoMonth","isoYear"],jl=Yl.concat(Pl),Bl=Ko(Pl),Fl=Ko(Yl),Ul=Ko(jl),Zl=Uh(Fl,0),$l=Vo(xo,jl),xl=Intl.DateTimeFormat,Vl="en-GB",zl=1e8,Kl=zl*Vh,Jl=[zl,0],Gl=[-zl,0],Wl=275760,ql=-271821,Xl=1970,Ql=1972,ef=12,tf=Vi(1868,9,8),nf=Co(na,WeakMap),rf="smallestUnit",of="unit",af="roundingIncrement",sf="fractionalSecondDigits",uf="relativeTo",cf={constrain:0,reject:1},hf=Object.keys(cf),lf={compatible:0,reject:1,earlier:2,later:3},ff={reject:0,use:1,prefer:2,ignore:3},df={auto:0,never:1,critical:2,always:3},gf={auto:0,never:1,critical:2},mf={auto:0,never:1},yf={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},vf=Vo(Ma,rf),Sf=Vo(Ma,"largestUnit"),wf=Vo(Ma,of),pf=Vo(Ia,"overflow",cf),Af=Vo(Ia,"disambiguation",lf),bf=Vo(Ia,"offset",ff),Tf=Vo(Ia,"calendarName",df),Mf=Vo(Ia,"timeZoneName",gf),If=Vo(Ia,"offset",mf),Ef=Vo(Ia,"roundingMode",yf),Of="PlainYearMonth",Nf="PlainMonthDay",Hf="PlainDate",Df="PlainDateTime",Cf="PlainTime",_f="ZonedDateTime",kf="Instant",Lf="Duration",Rf=[Math.floor,e=>ni(e)?Math.floor(e):Math.round(e),Math.ceil,e=>ni(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>ni(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=>ni(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],Yf="UTC",Pf=5184e3,jf=xi(1847),Bf=xi((new Date).getUTCFullYear()+10),Ff=/0+$/,Uf=Co(Is,WeakMap),Zf=2**32-1,$f=Co((e=>{const t=Ou(e);return"object"==typeof t?new Vf(t):new xf(t||0)}));class xf{constructor(e){this.v=e}getOffsetNanosecondsFor(){return this.v}getPossibleInstantsFor(e){return[$i(e,this.v)]}l(){}}class Vf{constructor(e){this.$=(e=>{function t(e){const t=Wo(e,i,a),[s,u]=au(t),c=r(s),h=r(u);return c===h?c:n(o(s,u),c,h,e)}function n(t,n,r,o){let i,a;for(;(void 0===o||void 0===(i=o<t[0]?n:o>=t[1]?r:void 0))&&(a=t[1]-t[0]);){const n=t[0]+Math.floor(a/2);e(n)===r?t[1]=n:t[0]=n+1}return i}const r=Co(e),o=Co(iu);let i=jf,a=Bf;return{G(e){const n=t(e-86400),r=t(e+86400),o=e-n,i=e-r;if(n===r)return[o];const a=t(o);return a===t(i)?[e-a]:n>r?[o,i]:[]},V:t,l(e,t){const s=Wo(e,i,a);let[u,c]=au(s);const h=Pf*t,l=t<0?()=>c>i||(i=s,0):()=>u<a||(a=s,0);for(;l();){const i=r(u),a=r(c);if(i!==a){const r=o(u,c);n(r,i,a);const s=r[0];if((Go(s,e)||1)===t)return s}u+=h,c+=h}}}})((e=>t=>{const n=_i(e,t*zh);return xi(tc(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}getOffsetNanosecondsFor(e){return this.$.V(Bi(e))*Gh}getPossibleInstantsFor(e){const[t,n]=[xi((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*Jh+r.isoMicrosecond*Kh+r.isoNanosecond];var r;return this.$.G(t).map((e=>Yi(Ti(Ni(e,Gh),n))))}l(e,t){const[n,r]=Fi(e),o=this.$.l(n+(t>0||r?1:0),t);if(void 0!==o)return Ni(o,Gh)}}const zf="([+−-])",Kf="(?:[.,](\\d{1,9}))?",Jf=`(?:(?:${zf}(\\d{6}))|(\\d{4}))-?(\\d{2})`,Gf="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+Kf+")?)?",Wf=zf+Gf,qf=Jf+"-?(\\d{2})(?:[T ]"+Gf+"(Z|"+Wf+")?)?",Xf="\\[(!?)([^\\]]*)\\]",Qf=`((?:${Xf}){0,9})`,ed=bu(Jf+Qf),td=bu("(?:--)?(\\d{2})-?(\\d{2})"+Qf),nd=bu(qf+Qf),rd=bu("T?"+Gf+"(?:"+Wf+")?"+Qf),od=bu(Wf),id=new RegExp(Xf,"g"),ad=bu(`${zf}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${Kf}H)?(?:(\\d+)${Kf}M)?(?:(\\d+)${Kf}S)?)?`),sd=Co((e=>new xl(Vl,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),ud=/^(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$/,cd=Co(qu),hd=Co((e=>new xl(Vl,{calendar:e,timeZone:Yf,era:"short",year:"numeric",month:"short",day:"numeric"}))),ld=/^M(\d{2})(L?)$/,fd={era:mi,eraYear:Si,year:Si,month:pi,monthCode:mi,day:pi},dd=Uh(el,Si),gd=Uh(Ol,wi),md=Object.assign({},fd,dd,gd,{offset:mi}),yd=Vo(Bo,el,Yl),vd={dateAdd(e,t,n){const r=ua(n);let o,{years:i,months:a,weeks:s,days:u}=t;if(u+=eu(t,5)[0],i||a)o=((e,t,n,r,o)=>{let[i,a,s]=e.h(t);if(n){const[t,r]=e.I(i,a);i+=n,a=mc(t,r,e.U(i)),a=No("month",a,1,e.L(i),o)}return r&&([i,a]=e._(i,a,r)),s=No("day",s,1,e.j(i,a),o),e.q(i,a,s)})(this,e,i,a,r);else{if(!s&&!u)return e;o=Ui(e)}return o+=(7*s+u)*Vh,Li(Ji(o))},dateUntil(e,t,n){if(n<=7){let r=0,o=Ku({...e,...Zl},{...t,...Zl});return 7===n&&([r,o]=Qo(o,7)),{...kl,weeks:r,days:o}}const r=this.h(e),o=this.h(t);let[i,a,s]=((e,t,n,r,o,i,a)=>{let s=o-t,u=i-n,c=a-r;if(s||u){const h=Math.sign(s||u);let l=e.j(o,i),f=0;if(Math.sign(c)===-h){const r=l;[o,i]=e._(o,i,-h),s=o-t,u=i-n,l=e.j(o,i),f=h<0?-r:l}if(c=a-Math.min(r,l)+f,s){const[r,a]=e.I(t,n),[c,l]=e.I(o,i);if(u=c-r||Number(l)-Number(a),Math.sign(u)===-h){const n=h<0&&-e.L(o);s=(o-=h)-t,u=i-mc(r,a,e.U(o))+(n||e.L(o))}}}return[s,u,c]})(this,...r,...o);return 8===n&&(a+=this.J(i,r[0]),i=0),{...kl,years:i,months:a,days:s}},dateFromFields(e,t){const n=ua(t),r=_c(this,e),o=kc(this,e,r,n),i=Lc(this,e,o,r,n);return Da(Li(this.P(r,o,i)),this.id||Sl)},yearMonthFromFields(e,t){const n=ua(t),r=_c(this,e),o=kc(this,e,r,n);return Ca(ki(this.P(r,o,1)),this.id||Sl)},monthDayFromFields(e,t){const n=ua(t),r=!this.id,{monthCode:o,year:i,month:a}=e;let s,u,c,h,l;if(void 0!==o){[s,u]=gc(o),l=Ho(e,"day");const t=this.N(s,u,l);if(!t)throw new RangeError(wh);if([c,h]=t,void 0!==a&&a!==h)throw new RangeError(vh);r&&(h=No("month",h,1,ef,1),l=No("day",l,1,qi(void 0!==i?i:c,h),n))}else{c=void 0===i&&r?Ql:_c(this,e),h=kc(this,e,c,n),l=Lc(this,e,h,c,n);const t=this.U(c);u=h===t,s=yc(h,t);const o=this.N(s,u,l);if(!o)throw new RangeError(wh);[c,h]=o}return _a(Li(this.P(c,h,l)),this.id||Sl)},fields(e){return Sc(this)&&e.includes("year")?[...e,...al]:e},mergeFields(e,t){const n=Object.assign(Object.create(null),e);return Rc(n,t,hl),Sc(this)&&(Rc(n,t,sl),this.id===pl&&Rc(n,t,ml,al)),n},inLeapYear(e){const[t]=this.h(e);return this.K(t)},monthsInYear(e){const[t]=this.h(e);return this.L(t)},daysInMonth(e){const[t,n]=this.h(e);return this.j(t,n)},daysInYear(e){const[t]=this.h(e);return this.X(t)},dayOfYear:dc,era(e){return this.ee(e)[0]},eraYear(e){return this.ee(e)[1]},monthCode(e){const[t,n]=this.h(e),[r,o]=this.I(t,n);return((e,t)=>"M"+Zh(e)+(t?"L":""))(r,o)},dayOfWeek:ea,daysInWeek:()=>7},Sd={dayOfYear:dc,h:Gi,q:Vi},wd=Object.assign({},Sd,{weekOfYear:lc,yearOfWeek:fc,R(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=Xi(f+e),r=e||1,o=t(Xo(u+n*r,7));return h=(n+(o-c)*r)/7}const r=this.id?1:4,o=ea(e),i=this.dayOfYear(e),a=Xo(o-1,7),s=i-1,u=Xo(a-s,7),c=t(u);let h,l=Math.floor((s-c)/7)+1,f=e.isoYear;return l?l>n(0)&&(l=1,f++):(l=n(-1),f--),[l,f,h]}}),pd={dayOfYear:dc,h:nc,q:rc,weekOfYear:lc,yearOfWeek:fc,R:()=>[]},Ad=Zc(Object.assign({},vd,wd,{h:Gi,ee(e){return this.id===wl?ta(e):this.id===pl?nf(e):[]},I:(e,t)=>[t,0],N(e,t){if(!t)return[Ql,e]},K:Qi,U(){},L:Wi,J:e=>e*ef,j:qi,X:Xi,P:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),q:Vi,_:(e,t,n)=>(e+=ei(n,ef),(t+=ti(n,ef))<1?(e--,t+=ef):t>ef&&(e++,t-=ef),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Object.assign({},vd,pd,{h:nc,ee(e){const t=this.O(e);return[t.era,t.eraYear]},I(e,t){const n=oc.call(this,e);return[yc(t,n),n===t]},N(e,t,n){let[r,o,i]=nc.call(this,{isoYear:Ql,isoMonth:ef,isoDay:31});const a=oc.call(this,r),s=o===a;1===(Go(e,yc(o,a))||Go(Number(t),Number(s))||Go(n,i))&&r--;for(let o=0;o<100;o++){const i=r-o,a=oc.call(this,i),s=mc(e,t,a);if(t===(s===a)&&n<=ac.call(this,i,s))return[i,s]}},K(e){const t=ic.call(this,e);return t>ic.call(this,e-1)&&t>ic.call(this,e+1)},U:oc,L:sc,J(e,t){const n=t+e,r=Math.sign(e),o=r<0?-1:0;let i=0;for(let e=t;e!==n;e+=r)i+=sc.call(this,e+o);return i},j:ac,X:ic,P(e,t,n){return Ji(rc.call(this,e,t,n))},q:rc,_(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError(Dh);if(n<0)for(;t<1;)t+=sc.call(this,--e);else{let n;for(;t>(n=sc.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.O(e).year},month(e){const{year:t,F:n}=this.O(e),{C:r}=this.B(t);return r[n]+1},day(e){return this.O(e).day}})),bd="numeric",Td=["timeZoneName"],Md={month:bd,day:bd},Id={year:bd,month:bd},Ed=Object.assign({},Id,{day:bd}),Od={hour:bd,minute:bd,second:bd},Nd=Object.assign({},Ed,Od),Hd=Object.assign({},Nd,{timeZoneName:"short"}),Dd=Object.keys(Id),Cd=Object.keys(Md),_d=Object.keys(Ed),kd=Object.keys(Od),Ld=["dateStyle"],Rd=Dd.concat(Ld),Yd=Cd.concat(Ld),Pd=_d.concat(Ld,["weekday"]),jd=kd.concat(["dayPeriod","timeStyle"]),Bd=Pd.concat(jd),Fd=Bd.concat(Td),Ud=Td.concat(jd),Zd=Td.concat(Pd),$d=Td.concat(["day","weekday"],jd),xd=Td.concat(["year","weekday"],jd),Vd={},zd=[$c(Bd,Nd),Ra],Kd=[$c(Fd,Hd),Ra,0,(e,t)=>{const n=Pa(e.timeZone);if(t&&Pa(t.timeZone)!==n)throw new RangeError(Mh);return n}],Jd=[$c(Bd,Nd,Td),Ui],Gd=[$c(Pd,Ed,Ud),Ui],Wd=[$c(jd,Od,Zd),e=>Pi(e)/Jh],qd=[$c(Rd,Id,$d),Ui,1],Xd=[$c(Yd,Md,xd),Ui,1];let Qd;function eg(e,t,n,r,o){function i(){if(!(this instanceof i))throw new TypeError(hh);Gg(this,t(...arguments))}function a(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)}),_o(t))}function s(t){const n=Jg(t);if(!n||n.branding!==e)throw new TypeError(hh);return n}return Object.defineProperties(i.prototype,{...Lo(Po(a,n)),...ko(Po(a,r)),...Ro("Temporal."+e)}),Object.defineProperties(i,{...ko(o),..._o(e)}),[i,e=>{const t=Object.create(i.prototype);return Gg(t,e),t},s]}function tg(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 ng(e){if(Jg(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function rg(e,t){const n={};for(const r in e)n[r]=(e,n)=>{let{o:o}=e;const i=Jg(n)||{},{branding:a}=i,s=a===Hf||t.includes(a)?i:wg(n);return o[r](s)};return n}function og(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return(r=t,"string"==typeof r?Ad(r):(o=r,Object.assign(Object.create(tm),{i:o})))[n](e);var r,o};return t}function ig(){throw new TypeError("Cannot use valueOf")}function ag(e){let{calendar:t}=e;return"string"==typeof t?new Qm(t):t}function sg(e,t){if(t=ba(t),Do(e)){const n=Jg(e);if(n&&n.branding===Nf)return ua(t),n;const r=Ig(e);return Mc(Um(r||Sl),!r,e,t)}const n=function(e,t){const n=yu(Tl(t));if(n)return cu(n),_a(oa(n));const r=uu(t),{calendar:o}=r,i=e(o),[a,s,u]=i.h(r),[c,h]=i.I(a,s),[l,f]=i.N(c,h,u);return _a(Li(i.P(l,f,u)),o)}(Ad,e);return ua(t),n}function ug(e,t,n){return Ns(si(t.call(e,fm(Oa(n)))))}function cg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cm;const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=Vo(t[o],e,El(e[o]));return r}function hg(e,t){return"string"==typeof e?$f(e):cg(e,t)}function lg(e){return hg(e,hm)}function fg(e){if(Do(e)){const t=Jg(e);if(t)switch(t.branding){case kf:return t;case _f:return Oa(t.epochNanoseconds)}}return function(e){const t=gu(e=mi(e));if(!t)throw new RangeError(Ph(e));let n;if(t.m)n=0;else{if(!t.offset)throw new RangeError(Ph(e));n=su(t.offset)}return t.timeZone&&vu(t.timeZone,1),Oa($i(ra(t),n))}(e)}function dg(e,t,n){const r=t.l(fg(n).epochNanoseconds,e);return r?fm(Oa(r)):null}function gg(e){return Do(e)?(Jg(e)||{}).timeZone||ym(e):(e=>Iu(function(e){const t=gu(e);return t&&(t.timeZone||t.m&&Yf||t.offset)||e}(Tl(e))))(e)}function mg(e,t){if(Do(e)){const n=Jg(e)||{};switch(n.branding){case Cf:return ua(t),n;case Df:return ua(t),ka(n);case _f:return ua(t),Bc(lg,n)}return function(e,t){const n=ua(t);return ka(Oc(Ec(e,tl,[],1),n))}(e,t)}return ua(t),function(e){let t,n=(e=>{const t=rd.exec(e);return t?(pu(t[10]),wu(t)):void 0})(Tl(e));if(!n){if(n=gu(e),!n)throw new RangeError(Ph(e));if(!n.p)throw new RangeError(Ph(e));if(n.m)throw new RangeError(jh("Z"));cu(n)}if((t=mu(e))&&ia(t))throw new RangeError(Ph(e));if((t=yu(e))&&ia(t))throw new RangeError(Ph(e));return ka(sa(n,1))}(e)}function yg(e){return void 0===e?void 0:mg(e)}function vg(e,t){if(t=ba(t),Do(e)){const n=Jg(e);return n&&n.branding===Of?(ua(t),n):Tc(Bm(Mg(e)),e,t)}const n=function(e,t){const n=mu(Tl(t));if(n)return cu(n),Ca(ki(oa(n)));const r=uu(t);return Ca(Bs(e(r.calendar),r))}(Ad,e);return ua(t),n}function Sg(e,t){if(t=ba(t),Do(e)){const n=Jg(e)||{};switch(n.branding){case Df:return ua(t),n;case Hf:return ua(t),Ha({...n,...Zl});case _f:return ua(t),Pc(lg,n)}return function(e,t,n){const r=Ic(e,t,gl,[],el),o=ua(n);return Ha(Ri({...e.dateFromFields(r,Ta(n,o)),...Oc(r,o)}))}(Fm(Mg(e)),e,t)}const n=function(e){const t=gu(Tl(e));if(!t||t.m)throw new RangeError(Ph(e));return Ha(lu(t))}(e);return ua(t),n}function wg(e,t){if(t=ba(t),Do(e)){const n=Jg(e)||{};switch(n.branding){case Hf:return ua(t),n;case Df:return ua(t),Da(n);case _f:return ua(t),jc(lg,n)}return bc(Fm(Mg(e)),e,t)}const n=uu(e);return ua(t),n}function pg(e,t,n){return ai(t.call(e,Im(Da(n,e))))}function Ag(e){return t=>"string"==typeof t?Ad(t):((e,t)=>{const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=Vo(t[o],e,e[o]);return r})(t,e)}function bg(e){if(Do(e)){const t=Jg(e);return t&&t.branding===Lf?t:function(e){const t=Ec(e,Nl);return La(Xs({...kl,...t}))}(e)}return function(e){const t=(e=>{const t=ad.exec(e);return t?(e=>{function t(e,t,i){let a=0,s=0;if(i&&([a,o]=qo(o,Qh[i])),void 0!==e){if(r)throw new RangeError(jh(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(jh(e));return t})(e),n=1,t&&(o=Au(t)*(Qh[i]/Gh),r=1)}return a+s}let n=0,r=0,o=0,i={...Yo(Ol,[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)]),...oi(o,2,Ol)};if(!n)throw new RangeError(uh(Ol));return Tu(e[1])<0&&(i=Ws(i)),i})(t):void 0})(Tl(e));if(!t)throw new RangeError(Ph(e));return La(Xs(t))}(e)}function Tg(e){if(void 0!==e){if(Do(e)){const t=Jg(e)||{};switch(t.branding){case _f:case Hf:return t;case Df:return Da(t)}const n=Mg(e);return{...Ac(gg,hg,Fm(n),e),calendar:n}}return function(e){const t=gu(Tl(e));if(!t)throw new RangeError(Ph(e));if(t.timeZone)return hu(t,t.offset?su(t.offset):void 0);if(t.m)throw new RangeError(Ph(e));return fu(t)}(e)}}function Mg(e){return Ig(e)||Sl}function Ig(e){const{calendar:t}=e;if(void 0!==t)return Eg(t)}function Eg(e){return Do(e)?(Jg(e)||{}).calendar||ey(e):(e=>cc(function(e){const t=gu(e)||mu(e)||yu(e);return t?t.calendar:e}(Tl(e))))(e)}function Og(e,t){if(t=ba(t),Do(e)){const n=Jg(e);if(n&&n.branding===_f)return ca(t),n;const r=Mg(e);return function(e,t,n,r,o,i){const a=Ic(n,o,gl,rl,il),s=e(a.timeZone),[u,c,h]=ca(i),l=n.dateFromFields(a,Ta(i,u)),f=Oc(a,u);return Na(Es(t(s),{...l,...f},void 0!==a.offset?su(a.offset):void 0,c,h),s,r)}(gg,hg,Fm(r),r,e,t)}return function(e,t){const n=gu(Tl(e));if(!n||!n.timeZone)throw new RangeError(Ph(e));const{offset:r}=n,o=r?su(r):void 0,[,i,a]=ca(t);return hu(n,o,i,a)}(e,t)}function Ng(e){return Po((e=>t=>e(Hg(t))),e)}function Hg(e){return Uf(e,lg)}function Dg(){const e=xl.prototype,t=Object.getOwnPropertyDescriptors(e),n=Object.getOwnPropertyDescriptors(xl),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))return new r(e,t);ay.set(this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new xl(e,t),r=n.resolvedOptions(),o=r.locale,i=Fo(Object.keys(t),r),a=Co(kg),s=function(){let e;for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];const u=r.map(((t,n)=>{const r=Jg(t),o=(r||{}).branding;if(n&&e&&e!==o)throw new TypeError("Mismatching types for formatting");return e=o,r}));return e?a(e)(o,i,...u):[n,...r]};return s.u=n,s}(e,t))};for(const e in t){const n=t[e],o=e.startsWith("format")&&Cg(e);"function"==typeof n.value?n.value="constructor"===e?r:o||_g(e):o&&(n.get=function(){return o.bind(this)})}return n.prototype.value=Object.create(e,t),Object.defineProperties(r,n),r}function Cg(e){return function(){const t=ay.get(this),[n,...r]=t(...arguments);return n[e](...r)}}function _g(e){return function(){return ay.get(this).u[e](...arguments)}}function kg(e){const t=Lg[e];if(!t)throw new TypeError((e=>`Cannot format ${e}`)(e));return xc(t,Co(Vc))}const Lg={Instant:zd,PlainDateTime:Jd,PlainDate:Gd,PlainTime:Wd,PlainYearMonth:qd,PlainMonthDay:Xd},Rg=xc(zd),Yg=xc(Kd),Pg=xc(Jd),jg=xc(Gd),Bg=xc(Wd),Fg=xc(qd),Ug=xc(Xd),Zg={era:function(e){if(void 0!==e)return Tl(e)},eraYear:ii,year:si,month:ai,daysInMonth:ai,daysInYear:ai,inLeapYear:Ml,monthsInYear:ai},$g={monthCode:Tl},xg={day:ai},Vg={dayOfWeek:ai,dayOfYear:ai,weekOfYear:function(e){if(void 0!==e)return ai(e)},yearOfWeek:ii,daysInWeek:ai},zg=Object.assign({},Zg,$g,xg,Vg),Kg=new WeakMap,Jg=Kg.get.bind(Kg),Gg=Kg.set.bind(Kg),Wg={...rg(Zg,[Of]),...rg(Vg,[]),...rg($g,[Of,Nf]),...rg(xg,[Nf])},qg=og(zg),Xg=og({...Zg,...$g}),Qg=og({...$g,...xg}),em={calendarId:e=>Pa(e.calendar)},tm=Po(((e,t)=>function(n){const{i:r}=this;return e(r[t](Im(Da(n,r))))}),zg),nm=jo((e=>t=>t[e]),Ol.concat("sign")),rm=jo(((e,t)=>e=>e[Yl[t]]),el),om={epochSeconds:function(e){return Bi(e.epochNanoseconds)},epochMilliseconds:Ra,epochMicroseconds:function(e){return Hi(e.epochNanoseconds,Kh)},epochNanoseconds:function(e){return Hi(e.epochNanoseconds)}},im=Vo(Uo,new Set(["branding"])),[am,sm,um]=eg(Nf,Vo((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Sl,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Ql;const i=Si(t),a=Si(n),s=e(r);return _a(Li(oa({isoYear:Si(o),isoMonth:i,isoDay:a})),s)}),Eg),{...em,...Qg},{getISOFields:im,getCalendar:ag,with(e,t,n){return sm(function(e,t,n,r,o){const i=ba(o);return((e,t,n,r)=>{const o=Nc(e,t,n,gl);return e.monthDayFromFields(o,r)})(e(t.calendar),n,r,i)}(xm,e,this,ng(t),n))},equals:(e,t)=>function(e,t){return!Cu(e,t)&&ja(e.calendar,t.calendar)}(e,sg(t)),toPlainDate(e,t){return Im(function(e,t,n,r){return((e,t,n)=>Cc(e,t,yl,hi(n),ul))(e(t.calendar),n,r)}($m,e,this,t))},toLocaleString(e,t,n){const[r,o]=Ug(t,n,e);return r.format(o)},toString:cs,toJSON:e=>cs(e),valueOf:ig},{from:(e,t)=>sm(sg(e,t))}),cm={getOffsetNanosecondsFor:ug,getPossibleInstantsFor(e,t,n){const r=[...t.call(e,Tm(Ha(n,Sl)))].map((e=>dm(e).epochNanoseconds)),o=r.length;return o>1&&(r.sort(Ii),Hs(Di(Mi(r[0],r[o-1])))),r}},hm={getOffsetNanosecondsFor:ug},[lm,fm,dm]=eg(kf,(function(e){return Oa(Yi(Oi(yi(e))))}),om,{add:(e,t)=>fm(Ds(0,e,bg(t))),subtract:(e,t)=>fm(Ds(1,e,bg(t))),until:(e,t,n)=>Wm(Lu(0,e,fg(t),n)),since:(e,t,n)=>Wm(Lu(1,e,fg(t),n)),round:(e,t)=>fm(function(e,t){const[n,r,o]=fa(t,5,1);return Oa(qa(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!Nu(e,t)}(e,fg(t)),toZonedDateTime(e,t){const n=hi(t);return ny(Yc(e,gg(n.timeZone),Eg(n.calendar)))},toZonedDateTimeISO:(e,t)=>ny(Yc(e,gg(t))),toLocaleString(e,t,n){const[r,o]=Rg(t,n,e);return r.format(o)},toString:(e,t)=>os(gg,lg,e,t),toJSON:e=>os(gg,lg,e),valueOf:ig},{from:e=>fm(fg(e)),fromEpochSeconds:e=>fm(function(e){return Oa(Yi(Ni(e,Gh)))}(e)),fromEpochMilliseconds:e=>fm(function(e){return Oa(Yi(Ni(e,Jh)))}(e)),fromEpochMicroseconds:e=>fm(function(e){return Oa(Yi(Oi(yi(e),Kh)))}(e)),fromEpochNanoseconds:e=>fm(function(e){return Oa(Yi(Oi(yi(e))))}(e)),compare:(e,t)=>Nu(fg(e),fg(t))}),[gm,mm]=eg("TimeZone",(e=>{const t=function(e){return Iu(Tl(e))}(e);return{branding:"TimeZone",id:t,o:$f(t)}}),{id:e=>e.id},{getPossibleInstantsFor:(e,t)=>{let{o:n}=e;return n.getPossibleInstantsFor(Sg(t)).map((e=>fm(Oa(e))))},getOffsetNanosecondsFor:(e,t)=>{let{o:n}=e;return n.getOffsetNanosecondsFor(fg(t).epochNanoseconds)},getOffsetStringFor(e,t){const n=fg(t).epochNanoseconds;return ws(cg(this,hm).getOffsetNanosecondsFor(n))},getPlainDateTimeFor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Sl;const r=fg(t).epochNanoseconds,o=cg(this,hm).getOffsetNanosecondsFor(r);return Tm(Ha(Ki(r,o),Eg(n)))},getInstantFor(e,t,n){const r=Sg(t),o=ha(n),i=cg(this);return fm(Oa(Os(i,r,o)))},getNextTransition:(e,t)=>{let{o:n}=e;return dg(1,n,t)},getPreviousTransition:(e,t)=>{let{o:n}=e;return dg(-1,n,t)},equals(e,t){return!!ku(this,gg(t))},toString:e=>e.id,toJSON:e=>e.id},{from(e){const t=gg(e);return"string"==typeof t?new gm(t):t}}),ym=tg(Object.keys(cm)),[vm,Sm]=eg(Cf,(function(){return ka(sa(Po(Si,Yo(Yl,[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))}),rm,{getISOFields:im,with(e,t,n){return Sm(function(e,t,n){return ka(((e,t,n)=>{const r=ua(n);return Oc({...Fo(tl,e),...Ec(t,tl)},r)})(e,t,n))}(this,ng(t),n))},add:(e,t)=>Sm(Rs(0,e,bg(t))),subtract:(e,t)=>Sm(Rs(1,e,bg(t))),until:(e,t,n)=>Wm(Fu(0,e,mg(t),n)),since:(e,t,n)=>Wm(Fu(1,e,mg(t),n)),round:(e,t)=>Sm(function(e,t){const[n,r,o]=fa(t,5);var i;return ka((i=o,xa(e,za(n,r),i)[0]))}(e,t)),equals:(e,t)=>function(e,t){return!_u(e,t)}(e,mg(t)),toZonedDateTime:(e,t)=>ny(function(e,t,n,r,o){const i=hi(o),a=t(i.plainDate),s=e(i.timeZone);return Na(Os(n(s),{...a,...r}),s,a.calendar)}(gg,wg,hg,e,t)),toPlainDateTime:(e,t)=>Tm(function(e,t){return Ha(Ri({...e,...t}))}(e,wg(t))),toLocaleString(e,t,n){const[r,o]=Bg(t,n,e);return r.format(o)},toString:hs,toJSON:e=>hs(e),valueOf:ig},{from:(e,t)=>Sm(mg(e,t)),compare:(e,t)=>_u(mg(e),mg(t))}),[wm,pm,Am]=eg(Of,Vo((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Sl,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const i=Si(t),a=Si(n),s=e(r);return Ca(ki(oa({isoYear:i,isoMonth:a,isoDay:Si(o)})),s)}),Eg),{...em,...Xg},{getISOFields:im,getCalendar:ag,with(e,t,n){return pm(function(e,t,n,r,o){const i=ba(o);return Ca(((e,t,n,r)=>{const o=Nc(e,t,n,fl);return e.yearMonthFromFields(o,r)})(e(t.calendar),n,r,i))}(Zm,e,this,ng(t),n))},add:(e,t,n)=>pm(Ls(Km,0,e,bg(t),n)),subtract:(e,t,n)=>pm(Ls(Km,1,e,bg(t),n)),until:(e,t,n)=>Wm(ju(Jm,0,e,vg(t),n)),since:(e,t,n)=>Wm(ju(Jm,1,e,vg(t),n)),equals:(e,t)=>function(e,t){return!Cu(e,t)&&ja(e.calendar,t.calendar)}(e,vg(t)),toPlainDate(e,t){return Im(function(e,t,n,r){return((e,t,n)=>Cc(e,t,dl,hi(n),ll))(e(t.calendar),n,r)}($m,e,this,t))},toLocaleString(e,t,n){const[r,o]=Fg(t,n,e);return r.format(o)},toString:us,toJSON:e=>us(e),valueOf:ig},{from:(e,t)=>pm(vg(e,t)),compare:(e,t)=>Cu(vg(e),vg(t))}),[bm,Tm]=eg(Df,Vo((function(e,t,n,r){let o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:Sl;return Ha(Ri(ra(Po(Si,Yo(jl,[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))}),Eg),{...em,...qg,...rm},{getISOFields:im,getCalendar:ag,with(e,t,n){return Tm(function(e,t,n,r,o){const i=ba(o);return Ha(((e,t,n,r)=>{const o=Nc(e,t,n,gl,el),i=ua(r);return Ri({...e.dateFromFields(o,Ta(r,i)),...Oc(o,i)})})(e(t.calendar),n,r,i))}($m,e,this,ng(t),n))},withCalendar:(e,t)=>Tm(Fc(e,Eg(t))),withPlainDate:(e,t)=>Tm(function(e,t){return Ha({...e,...t},Uc(e.calendar,t.calendar))}(e,wg(t))),withPlainTime:(e,t)=>Tm(function(e){return Ha({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zl})}(e,yg(t))),add:(e,t,n)=>Tm(_s(Vm,0,e,bg(t),n)),subtract:(e,t,n)=>Tm(_s(Vm,1,e,bg(t),n)),until:(e,t,n)=>Wm(Yu(zm,0,e,Sg(t),n)),since:(e,t,n)=>Wm(Yu(zm,1,e,Sg(t),n)),round:(e,t)=>Tm(function(e,t){return Ha(Za(e,...fa(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!Du(e,t)&&ja(e.calendar,t.calendar)}(e,Sg(t)),toZonedDateTime:(e,t,n)=>ny(function(e,t,n,r){const o=((e,t,n,r)=>{const o=ha(r);return Os(e(t),n,o)})(e,n,t,r);return Na(Yi(o),n,t.calendar)}(hg,e,gg(t),n)),toPlainDate:e=>Im(Da(e)),toPlainTime:e=>Sm(ka(e)),toPlainYearMonth(e){return pm(function(e,t,n){const r=e(t.calendar);return Ca({...t,...Dc(r,n)})}(Bm,e,this))},toPlainMonthDay(e){return sm(function(e,t,n){return Hc(e(t.calendar),n)}(Um,e,this))},toLocaleString(e,t,n){const[r,o]=Pg(t,n,e);return r.format(o)},toString:as,toJSON:e=>as(e),valueOf:ig},{from:(e,t)=>Tm(Sg(e,t)),compare:(e,t)=>Du(Sg(e),Sg(t))}),[Mm,Im,Em]=eg(Hf,Vo((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Sl;return Da(Li(oa(Po(Si,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))}),Eg),{...em,...qg},{getISOFields:im,getCalendar:ag,with(e,t,n){return Im(function(e,t,n,r,o){const i=ba(o);return((e,t,n,r)=>{const o=Nc(e,t,n,gl);return e.dateFromFields(o,r)})(e(t.calendar),n,r,i)}($m,e,this,ng(t),n))},withCalendar:(e,t)=>Im(Fc(e,Eg(t))),add:(e,t,n)=>Im(ks(Vm,0,e,bg(t),n)),subtract:(e,t,n)=>Im(ks(Vm,1,e,bg(t),n)),until:(e,t,n)=>Wm(Pu(zm,0,e,wg(t),n)),since:(e,t,n)=>Wm(Pu(zm,1,e,wg(t),n)),equals:(e,t)=>function(e,t){return!Cu(e,t)&&ja(e.calendar,t.calendar)}(e,wg(t)),toZonedDateTime(e,t){const n=!Do(t)||t instanceof gm?{timeZone:t}:t;return ny(function(e,t,n,r,o){const i=e(o.timeZone),a=o.plainTime,s=void 0!==a?t(a):Zl;return Na(Os(n(i),{...r,...s}),i,r.calendar)}(gg,mg,hg,e,n))},toPlainDateTime:(e,t)=>Tm(function(e){return Ha(Ri({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zl}))}(e,yg(t))),toPlainYearMonth(e){return pm(function(e,t,n){return Dc(e(t.calendar),n)}(Bm,e,this))},toPlainMonthDay(e){return sm(function(e,t,n){return Hc(e(t.calendar),n)}(Um,e,this))},toLocaleString(e,t,n){const[r,o]=jg(t,n,e);return r.format(o)},toString:ss,toJSON:e=>ss(e),valueOf:ig},{from:(e,t)=>Im(wg(e,t)),compare:(e,t)=>Cu(wg(e),wg(t))}),Om={fields:(e,t,n)=>[...t.call(e,n)]},Nm=Object.assign({dateFromFields:(e,t,n,r)=>Em(t.call(e,Object.assign(Object.create(null),n),r))},Om),Hm=Object.assign({yearMonthFromFields:(e,t,n,r)=>Am(t.call(e,Object.assign(Object.create(null),n),r))},Om),Dm=Object.assign({monthDayFromFields:(e,t,n,r)=>um(t.call(e,Object.assign(Object.create(null),n),r))},Om),Cm={mergeFields:(e,t,n,r)=>hi(t.call(e,Object.assign(Object.create(null),n),Object.assign(Object.create(null),r)))},_m=Object.assign({},Nm,Cm),km=Object.assign({},Hm,Cm),Lm=Object.assign({},Dm,Cm),Rm={dateAdd:(e,t,n,r,o)=>Em(t.call(e,Im(Da(n,e)),Wm(La(r)),o))},Ym=Object.assign({},Rm,{dateUntil:(e,t,n,r,o,i)=>qm(t.call(e,Im(Da(n,e)),Im(Da(r,e)),Object.assign(Object.create(null),i,{largestUnit:xh[o]})))}),Pm=Object.assign({},Rm,{day:pg}),jm=Object.assign({},Ym,{day:pg}),Bm=Ag(Hm),Fm=Ag(Nm),Um=Ag(Dm),Zm=Ag(km),$m=Ag(_m),xm=Ag(Lm),Vm=Ag(Rm),zm=Ag(Ym),Km=Ag(Pm),Jm=Ag(jm),[Gm,Wm,qm]=eg(Lf,(function(){return La(Xs(Po(wi,Yo(Ol,[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]))))}),{...nm,blank:function(e){return!e.sign}},{with:(e,t)=>Wm(function(e,t){return La((n=e,r=t,Xs({...n,...Ec(r,Nl)})));var n,r}(e,t)),negated:e=>Wm(Gs(e)),abs:e=>Wm(function(e){return-1===e.sign?Gs(e):e}(e)),add:(e,t,n)=>Wm(Js(Tg,zm,hg,0,e,bg(t),n)),subtract:(e,t,n)=>Wm(Js(Tg,zm,hg,1,e,bg(t),n)),round:(e,t)=>Wm(function(e,t,n,r,o){const i=ou(r),[a,s,u,c,h]=((e,t,n)=>{e=Aa(e,rf);let r=Sf(e);const o=n(e[uf]);let i=va(e);const a=Ef(e,7);let s=vf(e);if(void 0===r&&void 0===s)throw new RangeError(Rh);return null==s&&(s=0),null==r&&(r=Math.max(s,t)),Ea(r,s),i=Sa(i,s,1),[r,s,i,a,o]})(o,i,e),l=Math.max(i,a);if(!zs(h)&&l<=6)return La(Xs(((e,t,n,r,o)=>{const i=qa(eu(e),n,r,o);return{...kl,...tu(i,t)}})(r,a,s,u,c)));if(!h)throw new RangeError(kh);const[f,d,g]=Zs(t,n,h),m=$s(g),y=xs(g),v=Vs(g),S=y(d,f,r);let w=v(d,f,S,a);const p=r.sign,A=qs(w);if(p&&A&&p!==A)throw new RangeError(Ah);return A&&(w=Wa(w,m(S),a,s,u,c,d,f,m,y)),La(w)}(Tg,zm,hg,e,t)),total:(e,t)=>function(e,t,n,r,o){const i=ou(r),[a,s]=((e,t)=>{const n=t((e=Aa(e,of))[uf]);let r=wf(e);return r=ci(of,r),[r,n]})(o,e);if(Ks(Math.max(a,i),s))return Ba(r,a);if(!s)throw new RangeError(kh);const[u,c,h]=Zs(t,n,s),l=$s(h),f=xs(h),d=Vs(h),g=f(c,u,r),m=d(c,u,g,a);return Ks(a,s)?Ba(m,a):((e,t,n,r,o,i,a)=>{const s=qs(e),[u,c]=Fa(r,Rl(n,e),n,s,o,i,a),h=Ua(t,u,c);return e[Ol[n]]+h*s})(m,l(g),a,c,u,l,f)}(Tg,zm,hg,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):ls(e)},toString:ls,toJSON:e=>ls(e),valueOf:ig},{from:e=>Wm(bg(e)),compare:(e,t,n)=>function(e,t,n,r,o,i){const a=e(pa(i).relativeTo),s=Math.max(ou(r),ou(o));if($o(Ol,r,o))return 0;if(Ks(s,a))return Ii(eu(r),eu(o));if(!a)throw new RangeError(kh);const[u,c,h]=Zs(t,n,a),l=$s(h),f=xs(h);return Ii(l(f(c,u,r)),l(f(c,u,o)))}(Tg,Vm,hg,bg(e),bg(t),n)}),Xm={toString:e=>e.id,toJSON:e=>e.id,...Wg,dateAdd:(e,t,n,r)=>{let{id:o,o:i}=e;return Im(Da(i.dateAdd(wg(t),bg(n),r),o))},dateUntil:(e,t,n,r)=>{let{o:o}=e;return Wm(La(o.dateUntil(wg(t),wg(n),function(e){return e=pa(e),Sf(e,9,6,1)}(r))))},dateFromFields:(e,t,n)=>{let{id:r,o:o}=e;return Im(bc(o,t,n,function(e){return e===Sl?["year","day"]:[]}(r)))},yearMonthFromFields:(e,t,n)=>{let{id:r,o:o}=e;return pm(Tc(o,t,n,function(e){return e===Sl?ul:[]}(r)))},monthDayFromFields:(e,t,n)=>{let{id:r,o:o}=e;return sm(Mc(o,0,t,n,function(e){return e===Sl?ll:[]}(r)))},fields(e,t){let{o:n}=e;const r=new Set(gl),o=[];for(const e of t){if(Tl(e),!r.has(e))throw new RangeError(ah(e));r.delete(e),o.push(e)}return n.fields(o)},mergeFields:(e,t,n)=>{let{o:r}=e;return r.mergeFields(Zo(ui(t)),Zo(ui(n)))}},[Qm]=eg("Calendar",(e=>{const t=function(e){return cc(Tl(e))}(e);return{branding:"Calendar",id:t,o:Ad(t)}}),{id:e=>e.id},Xm,{from(e){const t=Eg(e);return"string"==typeof t?new Qm(t):t}}),ey=tg(Object.keys(Xm).slice(4)),[ty,ny]=eg(_f,Vo((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Sl;return Na(Yi(Oi(yi(n))),t(r),e(o))}),Eg,gg),{...om,...em,...Ng(qg),...Ng(rm),offset:e=>ws(Hg(e).offsetNanoseconds),offsetNanoseconds:e=>Hg(e).offsetNanoseconds,timeZoneId:e=>Pa(e.timeZone),hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=Uf(t,n),[o,i]=Ka(r),a=Di(Mi(Os(n,o),Os(n,i)),qh,1);if(a<=0)throw new RangeError(Ah);return a}(hg,e)},{getISOFields:e=>function(e,t){const n=Uf(t,e);return{calendar:t.calendar,...Fo(Ul,n),offset:ws(n.offsetNanoseconds),timeZone:t.timeZone}}(lg,e),getCalendar:ag,getTimeZone:e=>{let{timeZone:t}=e;return"string"==typeof t?new gm(t):t},with(e,t,n){return ny(function(e,t,n,r,o,i){const a=ba(i),{calendar:s,timeZone:u}=n;return Na(((e,t,n,r,o)=>{const i=Nc(e,n,r,gl,ol,nl),[a,s,u]=ca(o,2);return Es(t,{...e.dateFromFields(i,Ta(o,a)),...Oc(i,a)},su(i.offset),s,u)})(e(s),t(u),r,o,a),u,s)}($m,hg,e,this,ng(t),n))},withCalendar:(e,t)=>ny(Fc(e,Eg(t))),withTimeZone:(e,t)=>ny(function(e,t){return{...e,timeZone:t}}(e,gg(t))),withPlainDate:(e,t)=>ny(function(e,t,n){const r=t.timeZone,o=e(r),i={...Uf(t,o),...n},a=Uc(t.calendar,n.calendar);return Na(Es(o,i,i.offsetNanoseconds,2),r,a)}(hg,e,wg(t))),withPlainTime:(e,t)=>ny(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Zl;const r=t.timeZone,o=e(r),i={...Uf(t,o),...n};return Na(Es(o,i,i.offsetNanoseconds,2),r,t.calendar)}(hg,e,yg(t))),add:(e,t,n)=>ny(Cs(Vm,hg,0,e,bg(t),n)),subtract:(e,t,n)=>ny(Cs(Vm,hg,1,e,bg(t),n)),until:(e,t,n)=>Wm(La(Ru(zm,hg,0,e,Og(t),n))),since:(e,t,n)=>Wm(La(Ru(zm,hg,1,e,Og(t),n))),round:(e,t)=>ny(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:i}=t;const[a,s,u]=fa(n);if(0===a&&1===s)return t;const c=e(o);if(6===a)r=((e,t,n,r)=>{const o=Uf(n,t),[i,a]=e(o),s=n.epochNanoseconds,u=Os(t,i),c=Os(t,a);if(Ei(s,u,c))throw new RangeError(Ah);return es(Ua(s,u,c),r)?c:u})(Ka,c,t,u);else{const e=c.getOffsetNanosecondsFor(r);r=Es(c,Za(Ki(r,e),a,s,u),e,2,0,1)}return Na(r,o,i)}(hg,e,t)),startOfDay:e=>ny(function(e,t){const{timeZone:n,calendar:r}=t,o=((e,t,n)=>Os(t,e(Uf(n,t))))(Ja,e(n),t);return Na(o,n,r)}(hg,e)),equals:(e,t)=>function(e,t){return!Hu(e,t)&&!!ku(e.timeZone,t.timeZone)&&ja(e.calendar,t.calendar)}(e,Og(t)),toInstant:e=>fm(function(e){return Oa(e.epochNanoseconds)}(e)),toPlainDateTime:e=>Tm(Pc(lg,e)),toPlainDate:e=>Im(jc(lg,e)),toPlainTime:e=>Sm(Bc(lg,e)),toPlainYearMonth(e){return pm(function(e,t,n){return Dc(e(t.calendar),n)}(Bm,e,this))},toPlainMonthDay(e){return sm(function(e,t,n){return Hc(e(t.calendar),n)}(Um,e,this))},toLocaleString(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o]=Yg(t,n,e);return r.format(o)},toString:(e,t)=>is(lg,e,t),toJSON:e=>is(lg,e),valueOf:ig},{from:(e,t)=>ny(Og(e,t)),compare:(e,t)=>Hu(Og(e),Og(t))}),ry=Object.defineProperties({},{...Ro("Temporal.Now"),...ko({timeZoneId:()=>Gc(),instant:()=>fm(Oa(Jc())),zonedDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gc();return ny(Na(Jc(),gg(t),Eg(e)))},zonedDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gc();return ny(Na(Jc(),gg(e),Sl))},plainDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gc();return Tm(Ha(Kc(lg(gg(t))),Eg(e)))},plainDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gc();return Tm(Ha(Kc(lg(gg(e))),Sl))},plainDate:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gc();return Im(Da(Kc(lg(gg(t))),Eg(e)))},plainDateISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gc();return Im(Da(Kc(lg(gg(e))),Sl))},plainTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gc();return Sm(ka(Kc(lg(gg(e)))))}})}),oy=Object.defineProperties({},{...Ro("Temporal"),...ko({PlainYearMonth:wm,PlainMonthDay:am,PlainDate:Mm,PlainTime:vm,PlainDateTime:bm,ZonedDateTime:ty,Instant:lm,Calendar:Qm,TimeZone:gm,Duration:Gm,Now:ry})}),iy=Dg(),ay=new WeakMap;function sy(e){return e*Math.PI/180}function uy(e){return 180*e/Math.PI}Object.create(Intl),ko({DateTimeFormat:iy});class cy{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 hy=6356.9;class ly{constructor(e,t){this.date=t,this.geoLocation=e}getSunrise(){const e=this.getUTCSunrise0(ly.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(ly.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(ly.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(ly.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(ly.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(ly.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(ly.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(ly.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(ly.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(ly.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 uy(Math.acos(hy/(hy+e/1e3)))}adjustZenith(e,t){let n=e;return e===ly.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}getUTCSunrise(e,t,n,r){const o=r?t.getElevation():0,i=this.adjustZenith(n,o);let a=ly.getSunriseUTC(ly.getJulianDay(e),t.getLatitude(),-t.getLongitude(),i);for(a/=60;a<0;)a+=24;for(;a>=24;)a-=24;return a}getUTCSunset(e,t,n,r){const o=r?t.getElevation():0,i=this.adjustZenith(n,o);let a=ly.getSunsetUTC(ly.getJulianDay(e),t.getLatitude(),-t.getLongitude(),i);for(a/=60;a<0;)a+=24;for(;a>=24;)a-=24;return a}getTemporalHour(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();if(null===e||null===t)return NaN;const n=t.epochMilliseconds-e.epochMilliseconds;return Math.floor(n/12)}getSunTransit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();const n=this.getTemporalHour(e,t);return ly.getTimeOffset(e,6*n)}getDateFromTime(e,t){if(isNaN(e))return null;let n=e,r=this.getAdjustedDate();const o=Math.trunc(n);n-=o;const i=Math.trunc(n*=60);n-=i;const a=Math.trunc(n*=60);n-=a;const s=Math.trunc(this.geoLocation.getLongitude()/15);return t&&s+o>18?r=r.add({days:-1}):!t&&s+o<6&&(r=r.add({days:1})),r.toZonedDateTime({timeZone:"UTC",plainTime:new oy.PlainTime(o,i,a,Math.trunc(1e3*n))}).withTimeZone(this.geoLocation.getTimeZone())}static getJulianDay(e){let{year:t,month:n}=e;const{day:r}=e;n<=2&&(t-=1,n+=12);const o=Math.trunc(t/100),i=Math.trunc(2-o+o/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+i-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-ly.JULIAN_DAY_JAN_1_2000)/ly.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*ly.JULIAN_DAYS_PER_CENTURY+ly.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=sy(ly.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 ly.getSunGeometricMeanLongitude(e)+ly.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return ly.getSunTrueLongitude(e)-.00569-.00478*Math.sin(sy(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 ly.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(sy(t))}static getSunDeclination(e){const t=ly.getObliquityCorrection(e),n=ly.getSunApparentLongitude(e),r=Math.sin(sy(t))*Math.sin(sy(n));return uy(Math.asin(r))}static getEquationOfTime(e){const t=ly.getObliquityCorrection(e),n=ly.getSunGeometricMeanLongitude(e),r=ly.getEarthOrbitEccentricity(e),o=ly.getSunGeometricMeanAnomaly(e);let i=Math.tan(sy(t)/2);i*=i;const a=Math.sin(2*sy(n)),s=Math.sin(sy(o));return 4*uy(i*a-2*r*s+4*r*i*s*Math.cos(2*sy(n))-.5*i*i*Math.sin(4*sy(n))-1.25*r*r*Math.sin(2*sy(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=sy(e),o=sy(t);return Math.acos(Math.cos(sy(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=sy(e),o=sy(t);return-Math.acos(Math.cos(sy(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=ly.getJulianDay(e.toPlainDate()),o=ly.getJulianCenturiesFromJulianDay(r),i=ly.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=sy(n-a),u=sy(ly.getSunDeclination(o)),c=sy(t);return uy(Math.asin(Math.sin(c)*Math.sin(u)+Math.cos(c)*Math.cos(u)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=ly.getJulianDay(e.toPlainDate()),o=ly.getJulianCenturiesFromJulianDay(r),i=ly.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=sy(n-a),u=sy(ly.getSunDeclination(o)),c=sy(t);return uy(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(c)-Math.tan(u)*Math.cos(c))))+180}static getSunriseUTC(e,t,n,r){const o=ly.getJulianCenturiesFromJulianDay(e),i=ly.getSolarNoonUTC(o,n),a=ly.getJulianCenturiesFromJulianDay(e+i/1440);let s=ly.getEquationOfTime(a),u=ly.getSunDeclination(a),c=ly.getSunHourAngleAtSunrise(t,u,r),h=n-uy(c),l=4*h,f=720+l-s;const d=ly.getJulianCenturiesFromJulianDay(ly.getJulianDayFromJulianCenturies(o)+f/1440);return s=ly.getEquationOfTime(d),u=ly.getSunDeclination(d),c=ly.getSunHourAngleAtSunrise(t,u,r),h=n-uy(c),l=4*h,f=720+l-s,f}static getSolarNoonUTC(e,t){const n=ly.getJulianCenturiesFromJulianDay(ly.getJulianDayFromJulianCenturies(e)+t/360);let r=ly.getEquationOfTime(n);const o=720+4*t-r,i=ly.getJulianCenturiesFromJulianDay(ly.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=ly.getEquationOfTime(i),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=ly.getJulianCenturiesFromJulianDay(e),i=ly.getSolarNoonUTC(o,n),a=ly.getJulianCenturiesFromJulianDay(e+i/1440);let s=ly.getEquationOfTime(a),u=ly.getSunDeclination(a),c=ly.getSunHourAngleAtSunset(t,u,r),h=n-uy(c),l=4*h,f=720+l-s;const d=ly.getJulianCenturiesFromJulianDay(ly.getJulianDayFromJulianCenturies(o)+f/1440);return s=ly.getEquationOfTime(d),u=ly.getSunDeclination(d),c=ly.getSunHourAngleAtSunset(t,u,r),h=n-uy(c),l=4*h,f=720+l-s,f}}ly.GEOMETRIC_ZENITH=90,ly.CIVIL_ZENITH=96,ly.NAUTICAL_ZENITH=102,ly.ASTRONOMICAL_ZENITH=108,ly.JULIAN_DAY_JAN_1_2000=2451545,ly.JULIAN_DAYS_PER_CENTURY=36525;const fy=[["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]],dy=new Map,gy={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"},my=new Map;class yy extends cy{constructor(e,t,n,r,o,i,a,s){const u="number"==typeof e?e:parseFloat(e);if(isNaN(u)||u<-90||u>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const c="number"==typeof t?t:parseFloat(t);if(isNaN(c)||c<-180||c>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o||null,u,c,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=i,this.geoid=a}getIsrael(){return this.il}getName(){return this.getLocationName()}getShortName(){const e=this.getLocationName();if(!e)return e;const t=e.indexOf(", ");if(-1===t)return e;if("US"===this.cc&&"D"===e[t+2]){if("C"===e[t+3])return e.substring(0,t+4);if("."===e[t+3]&&"C"===e[t+4])return e.substring(0,t+6)}return e.substring(0,t)}getCountryCode(){return this.cc}getTzid(){return this.getTimeZone()}getTimeFormatter(){return function(e){const t=my.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return my.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return dy.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 gy[String(-1*e)]}static getUsaTzid(e,t,n){return 10===(t=+t)&&"AK"===e?"America/Adak":7===t&&"AZ"===e?"Y"===n?"America/Denver":"America/Phoenix":gy[t]}static addLocation(e,t){const n=e.toLowerCase();return!dy.has(n)&&(dy.set(n,t),!0)}}for(const e of fy){const t=new yy(e[2],e[3],"IL"===e[1],e[4],e[0],e[1],void 0,e[5]);yy.addLocation(e[0],t)}function vy(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}Object.defineProperties(globalThis,ko({Temporal:oy})),Object.defineProperties(Intl,ko({DateTimeFormat:iy})),Object.defineProperties(Date.prototype,ko({toTemporalInstant:function(){return fm(Oa(Ni(this.valueOf(),Jh)))}}));class Sy{constructor(e,t,n){const r=function(e){if(u(e))return e;if(Ee.isHDate(e))return e.greg();throw new TypeError(`invalid date: ${e}`)}(t);this.date=r,this.gloc=e;const o=Temporal.PlainDate.from({year:r.getFullYear(),month:r.getMonth()+1,day:r.getDate()});this.noaa=new ly(e,o),this.useElevation=Boolean(n)}getUseElevation(){return this.useElevation}setUseElevation(e){this.useElevation=e}timeAtAngle(e,t){const n=90+e;return vy(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return vy(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return vy(this.noaa.getSeaLevelSunrise())}sunset(){return vy(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return vy(this.noaa.getSeaLevelSunset())}dawn(){return vy(this.noaa.getBeginCivilTwilight())}dusk(){return vy(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new Sy(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise().getTime()-this.gregEve().getTime())/12}chatzot(){const e=this.noaa.getSeaLevelSunrise(),t=this.noaa.getSeaLevelSunset();return vy(this.noaa.getSunTransit(e,t))}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.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise(),n=this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset(),r=this.noaa.getTemporalHour(t,n),o=Math.round(r*e);return vy(ly.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}getTemporalHour72(e){const t=this.sunriseOffset(-72,!1,e),n=(this.sunsetOffset(72,!1,e).getTime()-t.getTime())/12;return[t,n]}getTemporalHourByDeg(e){const t=this.timeAtAngle(e,!0),n=(this.timeAtAngle(e,!1).getTime()-t.getTime())/12;return[t,n]}sofZmanShmaMGA(){const[e,t]=this.getTemporalHour72(!0),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanShmaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanShmaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA(){const[e,t]=this.getTemporalHour72(!0),n=Math.floor(4*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1),n=Math.floor(4*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8),n=Math.floor(4*t);return new Date(e.getTime()+n)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaGedolaMGA(){const[e,t]=this.getTemporalHour72(!1),n=Math.floor(6.5*t);return new Date(e.getTime()+n)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}minchaKetanaMGA(){const[e,t]=this.getTemporalHour72(!1);return new Date(e.getTime()+Math.floor(9.5*t))}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(e=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=ae("UTC",t),r=ae(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?"+":"-")+re(Math.floor(r/60))+":"+re(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?"0000-00-00T00:00:00Z":ae(e,t).substring(0,19)+Sy.timeZoneOffset(e,t)}sunriseOffset(e,t=!0,n=!1){const r=n?this.seaLevelSunrise():this.sunrise();return isNaN(r.getTime())?r:(t&&(e>0&&r.getSeconds()>=30&&e++,r.setSeconds(0,0)),new Date(r.getTime()+60*e*1e3))}sunsetOffset(e,t=!0,n=!1){const r=n?this.seaLevelSunset():this.sunset();return isNaN(r.getTime())?r:(t&&(e>0&&r.getSeconds()>=30&&e++,r.setSeconds(0,0)),new Date(r.getTime()+60*e*1e3))}static makeSunsetAwareHDate(e,t,n){const r=new Sy(e,t,n).sunset();let o=new Ee(t);const i=r.getTime();return isNaN(i)||t.getTime()>=i&&(o=o.next()),o}}const wy={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 py(e,t,n){var r;if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const o=(null===(r=null==n?void 0:n.location)||void 0===r?void 0:r.getCountryCode())||((null==n?void 0:n.il)?"IL":"US"),i=null==n?void 0:n.hour12;if(void 0!==i&&!i)return e;if(!i&&void 0===wy[o])return e;const a=e.split(":");let s=parseInt(a[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}:${a[1]}${t}`}class Ay extends Pe{constructor(e,t,n,r,o,i,a){super(e,t,n),this.eventTime=Sy.roundTime(r),this.location=o;const s=o.getTimeFormatter();this.eventTimeStr=Sy.formatTime(this.eventTime,s);const u=Object.assign(Object.assign({},a),{location:o});this.fmtTime=py(this.eventTimeStr,"pm",u),void 0!==i&&(this.linkedEvent=i)}render(e){return Se.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return Se.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"]}return["unknown"]}}class by extends Ay{constructor(e,t,n,r,o,i){super(e,"Candle lighting",t,n,r,o,i)}getEmoji(){return"🕯️"}}class Ty extends Ay{constructor(e,t,n,r,o,i,a){super(e,"Havdalah",t,n,r,i,a),o&&(this.havdalahMins=o)}render(e){return this.renderBrief(e)+": "+this.fmtTime}renderBrief(e){let t=Se.gettext(this.getDesc(),e);if(this.havdalahMins){const n=Se.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}const My=f.NISAN,Iy=f.IYYAR,Ey=f.SIVAN,Oy=f.ELUL,Ny=f.TISHREI,Hy=f.CHESHVAN,Dy=f.KISLEV,Cy=f.SHVAT,_y=f.ADAR_II,ky=Re.CHAG,Ly=Re.LIGHT_CANDLES,Ry=Re.YOM_TOV_ENDS,Yy=Re.CHUL_ONLY,Py=Re.IL_ONLY,jy=Re.LIGHT_CANDLES_TZEIS,By=Re.MINOR_HOLIDAY,Fy=Re.EREV,Uy=Re.CHOL_HAMOED,Zy="🫓",$y="🌿🍋",xy="Rosh Hashana II",Vy="Erev Yom Kippur",zy="Yom Kippur",Ky="Erev Sukkot",Jy="Sukkot I",Gy="Sukkot II",Wy="Sukkot III (CH''M)",qy="Sukkot IV (CH''M)",Xy="Sukkot V (CH''M)",Qy="Sukkot VI (CH''M)",ev="Shmini Atzeret",tv="Simchat Torah",nv="Sukkot II (CH''M)",rv="Sukkot VII (Hoshana Raba)",ov="Chanukah: 1 Candle",iv="Tu BiShvat",av="Erev Purim",sv="Purim",uv="Shushan Purim",cv="Erev Pesach",hv="Pesach I",lv="Pesach II",fv="Pesach II (CH''M)",dv="Pesach III (CH''M)",gv="Pesach IV (CH''M)",mv="Pesach V (CH''M)",yv="Pesach VI (CH''M)",vv="Pesach VII",Sv="Pesach VIII",wv="Pesach Sheni",pv="Lag BaOmer",Av="Erev Shavuot",bv="Shavuot",Tv="Shavuot I",Mv="Shavuot II",Iv="Tu B'Av",Ev="Rosh Hashana LaBehemot",Ov="Erev Rosh Hashana",Nv="Yom Yerushalayim",Hv="Ben-Gurion Day",Dv="Family Day",Cv="Yitzhak Rabin Memorial Day",_v="Herzl Day",kv="Jabotinsky Day",Lv="Sigd",Rv="Yom HaAliyah",Yv="Yom HaAliyah School Observance",Pv="Hebrew Language Day",jv={ASARA_BTEVET:"Asara B'Tevet",BIRKAT_HACHAMAH:"Birkat Hachamah",CHAG_HABANOT:"Chag HaBanot",CHANUKAH_8TH_DAY:"Chanukah: 8th Day",EREV_TISHA_BAV:"Erev Tish'a B'Av",LEIL_SELICHOT:"Leil Selichot",PURIM_KATAN:"Purim Katan",PURIM_MESHULASH:"Purim Meshulash",SHABBAT_CHAZON:"Shabbat Chazon",SHABBAT_HACHODESH:"Shabbat HaChodesh",SHABBAT_HAGADOL:"Shabbat HaGadol",SHABBAT_NACHAMU:"Shabbat Nachamu",SHABBAT_PARAH:"Shabbat Parah",SHABBAT_SHEKALIM:"Shabbat Shekalim",SHABBAT_SHIRAH:"Shabbat Shirah",SHABBAT_SHUVA:"Shabbat Shuva",SHABBAT_ZACHOR:"Shabbat Zachor",SHUSHAN_PURIM_KATAN:"Shushan Purim Katan",TAANIT_BECHOROT:"Ta'anit Bechorot",TAANIT_ESTHER:"Ta'anit Esther",TISHA_BAV:"Tish'a B'Av",TZOM_GEDALIAH:"Tzom Gedaliah",TZOM_TAMMUZ:"Tzom Tammuz",YOM_HAATZMA_UT:"Yom HaAtzma'ut",YOM_HASHOAH:"Yom HaShoah",YOM_HAZIKARON:"Yom HaZikaron",BEN_GURION_DAY:Hv,CHANUKAH_1_CANDLE:ov,EREV_PESACH:cv,EREV_PURIM:av,EREV_ROSH_HASHANA:Ov,EREV_SHAVUOT:Av,EREV_SUKKOT:Ky,EREV_YOM_KIPPUR:Vy,FAMILY_DAY:Dv,HEBREW_LANGUAGE_DAY:Pv,HERZL_DAY:_v,JABOTINSKY_DAY:kv,LAG_BAOMER:pv,PESACH_I:hv,PESACH_II:lv,PESACH_III_CHM:dv,PESACH_II_CHM:fv,PESACH_IV_CHM:gv,PESACH_SHENI:wv,PESACH_VII:vv,PESACH_VIII:Sv,PESACH_VI_CHM:yv,PESACH_V_CHM:mv,PURIM:sv,ROSH_HASHANA_II:xy,ROSH_HASHANA_LABEHEMOT:Ev,SHAVUOT:bv,SHAVUOT_I:Tv,SHAVUOT_II:Mv,SHMINI_ATZERET:ev,SHUSHAN_PURIM:uv,SIGD:Lv,SIMCHAT_TORAH:tv,SUKKOT_I:Jy,SUKKOT_II:Gy,SUKKOT_III_CHM:Wy,SUKKOT_II_CHM:nv,SUKKOT_IV_CHM:qy,SUKKOT_VII_HOSHANA_RABA:rv,SUKKOT_VI_CHM:Qy,SUKKOT_V_CHM:Xy,TU_BAV:Iv,TU_BISHVAT:iv,YITZHAK_RABIN_MEMORIAL_DAY:Cv,YOM_HAALIYAH:Rv,YOM_HAALIYAH_SCHOOL_OBSERVANCE:Yv,YOM_KIPPUR:zy,YOM_YERUSHALAYIM:Nv},Bv=[{mm:Ny,dd:2,desc:xy,flags:ky|Ry,emoji:"🍏🍯"},{mm:Ny,dd:9,desc:Vy,flags:Fy|Ly},{mm:Ny,dd:10,desc:zy,flags:ky|Re.MAJOR_FAST|Ry},{mm:Ny,dd:14,desc:Ky,flags:Yy|Fy|Ly,emoji:$y},{mm:Ny,dd:15,desc:Jy,flags:Yy|ky|jy,emoji:$y},{mm:Ny,dd:16,desc:Gy,flags:Yy|ky|Ry,emoji:$y},{mm:Ny,dd:17,desc:Wy,flags:Yy|Uy,chmDay:1,emoji:$y},{mm:Ny,dd:18,desc:qy,flags:Yy|Uy,chmDay:2,emoji:$y},{mm:Ny,dd:19,desc:Xy,flags:Yy|Uy,chmDay:3,emoji:$y},{mm:Ny,dd:20,desc:Qy,flags:Yy|Uy,chmDay:4,emoji:$y},{mm:Ny,dd:22,desc:ev,flags:Yy|ky|jy},{mm:Ny,dd:23,desc:tv,flags:Yy|ky|Ry},{mm:Ny,dd:14,desc:Ky,flags:Py|Fy|Ly,emoji:$y},{mm:Ny,dd:15,desc:Jy,flags:Py|ky|Ry,emoji:$y},{mm:Ny,dd:16,desc:nv,flags:Py|Uy,chmDay:1,emoji:$y},{mm:Ny,dd:17,desc:Wy,flags:Py|Uy,chmDay:2,emoji:$y},{mm:Ny,dd:18,desc:qy,flags:Py|Uy,chmDay:3,emoji:$y},{mm:Ny,dd:19,desc:Xy,flags:Py|Uy,chmDay:4,emoji:$y},{mm:Ny,dd:20,desc:Qy,flags:Py|Uy,chmDay:5,emoji:$y},{mm:Ny,dd:22,desc:ev,flags:Py|ky|Ry},{mm:Ny,dd:21,desc:rv,flags:Ly|Uy,chmDay:-1,emoji:$y},{mm:Dy,dd:24,desc:ov,flags:Fy|By|Re.CHANUKAH_CANDLES,emoji:"🕎1️⃣"},{mm:Cy,dd:15,desc:iv,flags:By,emoji:"🌳"},{mm:_y,dd:13,desc:av,flags:Fy|By,emoji:"🎭️📜"},{mm:_y,dd:14,desc:sv,flags:By,emoji:"🎭️📜"},{mm:_y,dd:15,desc:uv,flags:By,emoji:"🎭️📜"},{mm:My,dd:14,desc:cv,flags:Py|Fy|Ly,emoji:"🫓🍷"},{mm:My,dd:15,desc:hv,flags:Py|ky|Ry,emoji:Zy},{mm:My,dd:16,desc:fv,flags:Py|Uy,chmDay:1,emoji:Zy},{mm:My,dd:17,desc:dv,flags:Py|Uy,chmDay:2,emoji:Zy},{mm:My,dd:18,desc:gv,flags:Py|Uy,chmDay:3,emoji:Zy},{mm:My,dd:19,desc:mv,flags:Py|Uy,chmDay:4,emoji:Zy},{mm:My,dd:20,desc:yv,flags:Py|Uy|Ly,chmDay:5,emoji:Zy},{mm:My,dd:21,desc:vv,flags:Py|ky|Ry,emoji:Zy},{mm:My,dd:14,desc:cv,flags:Yy|Fy|Ly,emoji:"🫓🍷"},{mm:My,dd:15,desc:hv,flags:Yy|ky|jy,emoji:"🫓🍷"},{mm:My,dd:16,desc:lv,flags:Yy|ky|Ry,emoji:Zy},{mm:My,dd:17,desc:dv,flags:Yy|Uy,chmDay:1,emoji:Zy},{mm:My,dd:18,desc:gv,flags:Yy|Uy,chmDay:2,emoji:Zy},{mm:My,dd:19,desc:mv,flags:Yy|Uy,chmDay:3,emoji:Zy},{mm:My,dd:20,desc:yv,flags:Yy|Uy|Ly,chmDay:4,emoji:Zy},{mm:My,dd:21,desc:vv,flags:Yy|ky|jy,emoji:Zy},{mm:My,dd:22,desc:Sv,flags:Yy|ky|Ry,emoji:Zy},{mm:Iy,dd:14,desc:wv,flags:By},{mm:Iy,dd:18,desc:pv,flags:By,emoji:"🔥"},{mm:Ey,dd:5,desc:Av,flags:Fy|Ly,emoji:"⛰️🌸"},{mm:Ey,dd:6,desc:bv,flags:Py|ky|Ry,emoji:"⛰️🌸"},{mm:Ey,dd:6,desc:Tv,flags:Yy|ky|jy,emoji:"⛰️🌸"},{mm:Ey,dd:7,desc:Mv,flags:Yy|ky|Ry,emoji:"⛰️🌸"},{mm:f.AV,dd:15,desc:Iv,flags:By,emoji:"❤️"},{mm:Oy,dd:1,desc:Ev,flags:By,emoji:"🐑"},{mm:Oy,dd:29,desc:Ov,flags:Fy|Ly,emoji:"🍏🍯"}],Fv=[{firstYear:5727,mm:Iy,dd:28,desc:Nv,chul:!0},{firstYear:5737,mm:Dy,dd:6,desc:Hv,satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:Cy,dd:30,desc:Dv},{firstYear:5758,mm:Hy,dd:12,desc:Cv,friSatMovetoThu:!0},{firstYear:5764,mm:Iy,dd:10,desc:_v,satPostponeToSun:!0},{firstYear:5765,mm:f.TAMUZ,dd:29,desc:kv,satPostponeToSun:!0},{firstYear:5769,mm:Hy,dd:29,desc:Lv,chul:!0,suppressEmoji:!0},{firstYear:5777,mm:My,dd:10,desc:Rv,chul:!0},{firstYear:5777,mm:Hy,dd:7,desc:Yv},{firstYear:5773,mm:f.TEVET,dd:21,desc:Pv,friSatMovetoThu:!0}];class Uv extends Pe{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()&Re.IL_ONLY?e+"?i=on":e}urlDateSuffix(){const e=this.getDate().greg().getFullYear();return String(e)}getEmoji(){return this.emoji?this.emoji:this.getFlags()&Re.SPECIAL_SHABBAT?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;switch(this.getDesc()){case jv.LAG_BAOMER:case jv.LEIL_SELICHOT:case jv.PESACH_SHENI:case jv.EREV_PURIM:case jv.PURIM_KATAN:case jv.SHUSHAN_PURIM:case jv.TU_BAV:case jv.TU_BISHVAT:case jv.ROSH_HASHANA_LABEHEMOT:return["holiday","minor"]}return["holiday","major"]}render(e){return super.render(e).replace(/'/g,"’")}renderBrief(e){return super.renderBrief(e).replace(/'/g,"’")}clone(){const e=new Uv(this.date,this.desc,this.mask);for(const t in this)this.hasOwnProperty(t)&&Object.defineProperty(e,t,{value:this[t]});return e}}class Zv extends Uv{urlDateSuffix(){return se(this.getDate().greg()).replace(/-/g,"")}}class $v extends Uv{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return Se.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const xv="Rosh Chodesh";class Vv extends Uv{constructor(e,t){super(e,`${xv} ${t}`,Re.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=Se.gettext(t,e).replace(/'/g,"’");return Se.gettext(xv,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}const zv=Re.LIGHT_CANDLES,Kv=Re.LIGHT_CANDLES_TZEIS;function Jv(e,t,n,r,o){let i=!1,a=o,s=e?e.getFlags():zv;void 0!==e?r||(s&(Kv|Re.CHANUKAH_CANDLES)?a=!0:s&Re.YOM_TOV_ENDS&&(i=!0,a=!0)):o&&(i=!0,s=Kv);const u=a?n.havdalahMins:n.candleLightingMins,c=n.location,h=Boolean(n.useElevation),l=new Sy(c,t,h),f=u?l.sunsetOffset(u,!0):l.tzeit(n.havdalahDeg);if(!isNaN(f.getTime()))return i?new Ty(t,s,f,c,n.havdalahMins,e,n):(s|=zv,new by(t,s,f,c,e,n))}const Gv="Fast begins",Wv="Fast ends";class qv extends Uv{constructor(e,t,n,r,o){super(e,t,n),this.startEvent=r,this.endEvent=o}urlDateSuffix(){if("Asara B'Tevet"===this.getDesc()){return se(this.getDate().greg()).replace(/-/g,"")}return super.urlDateSuffix()}}function Xv(e,t,n,r){const o=r.location,i=e.getDate();return new Ay(i,n,e.getFlags(),t,o,e,r)}class Qv extends Uv{constructor(e,t,n,r,o){super(e,t,n),this.eventTime=Sy.roundTime(r);const i=o.getTimeFormatter();this.eventTimeStr=Sy.formatTime(this.eventTime,i),this.location=o}}const eS=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],tS=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],nS="בַּלַּ֥יְלָה";class rS{constructor(e,t){this.m=function(e,t){let n=t-7;n<0&&(n+=b(e));const r=235*Math.floor((e-1)/19)+(e-1)%19*12+Math.floor(((e-1)%19*7+1)/19)+n,o=204+Math.floor(r%1080*793),i=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,a=(o%1080+i%24*1080)%1080;return{year:e,month:t,dayOfWeek:(1+29*r+Math.floor(i/24))%7,hour:i%24,minutes:Math.floor(a/18),chalakim:a%18}}(e,t)}getYear(){return this.m.year}getMonth(){return this.m.month}getMonthName(){return Ee.getMonthName(this.m.month,this.m.year)}getDow(){return this.m.dayOfWeek}getHour(){return this.m.hour}getMinutes(){return this.m.minutes}getChalakim(){return this.m.chalakim}render(e,t){var n;"string"==typeof(e=null!=e?e:Se.getLocaleName())&&(e=e.toLowerCase());const r="he"===e||"he-x-nonikud"===e||"h"===e,o=Se.gettext(this.getMonthName(),e),i=(r?tS:eS)[this.getDow()],a=this.getMinutes(),s=this.getHour(),u=this.getChalakim(),c=Se.gettext("Molad",e),h=null!==(n=Se.lookupTranslation("min",e))&&void 0!==n?n:"minutes",l=Se.gettext("chalakim",e);if(r){const t=function(e){return e<5?nS:e<12?"בַּבֹּקֶר":e<17?"בַּצׇּהֳרַיִים":e<21?"בָּעֶרֶב":nS}(s),n=`${c} ${o} יִהְיֶה בַּיּוֹם ${i} בשָׁבוּעַ, בְּשָׁעָה ${s} ${t}, ו-${a} ${h} ו-${u} ${l}`;return"he-x-nonikud"===e?Se.hebrewStripNikkud(n):n}const f=py(`${s}:00`,"pm",t);return`${c} ${o.replace(/'/g,"’")}: ${i}, ${a} ${h} and ${u} ${l} after ${f}`}}class oS extends Pe{constructor(e,t,n,r){const o=new rS(t,n);super(e,`Molad ${o.getMonthName()} ${t}`,Re.MOLAD),this.molad=o,this.options=r}render(e){return this.molad.render(e,this.options)}}class iS extends Pe{constructor(e,t){if(super(e,`Omer ${t}`,Re.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(e="en"){return"he"!==e&&"translit"!==e&&(e="en"),function(e,t){x(e);const[n,r]=V(e),o=$[t],i=o.words[n];return(o.words[r]+" "+(2===n||6===n?o.infix26:o.infix)+i).normalize()}(this.omer,e)}render(e){"string"==typeof(e=null!=e?e:Se.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e||"h"===e,n=this.omer;return(t?U(n):Se.ordinal(n,e))+" "+Se.gettext("day of the Omer",e)}renderBrief(e){return Se.gettext("Omer",e)+" "+Se.gettext("day",e)+" "+this.omer}getEmoji(){return"string"==typeof this.emoji?this.emoji:function(e){let t;return x(e),t=e<=20?9312+e-1:e<=35?12881+e-21:12977+e-36,String.fromCodePoint(t)}(this.omer)}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){"string"==typeof(e=null!=e?e:Se.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e?"he":"en",n=z(this.omer,t);return"he-x-nonikud"===e?Se.hebrewStripNikkud(n):n}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}function aS(e,t){const n=null!=t?t:Se.getLocaleName();let r=Se.gettext(e[0],n);if(2===e.length){r+=("he"===n?"־":"-")+Se.gettext(e[1],n)}r=r.replace(/'/g,"’");return(Se.gettext("Parashat",t)+" "+r).normalize()}var sS,uS;var cS=function(){if(uS)return sS;uS=1;class e{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=e.maxSize,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(e,t){this.cache.set(e,t),this._size++,this._size>=this.maxSize&&(this._size=0,this.oldCache=this.cache,this.cache=new Map)}get(e){if(this.cache.has(e))return this.cache.get(e);if(this.oldCache.has(e)){const t=this.oldCache.get(e);return this.oldCache.delete(e),this._set(e,t),t}}set(e,t){return this.cache.has(e)?this.cache.set(e,t):this._set(e,t),this}has(e){return this.cache.has(e)||this.oldCache.has(e)}peek(e){return this.cache.has(e)?this.cache.get(e):this.oldCache.has(e)?this.oldCache.get(e):void 0}delete(e){const t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache)yield e;for(const e of this.oldCache){const[t]=e;this.cache.has(t)||(yield e)}}get size(){let e=0;for(const t of this.oldCache.keys())this.cache.has(t)||e++;return this._size+e}}return sS=e}(),hS=Fe(cS);class lS{constructor(e,t){e=+e,this.year=e;const n=new Ee(1,f.TISHREI,e),r=n.abs(),o=n.getDay()+1;this.firstSaturday=Ee.dayOnOrBefore(6,r+6);const i=+Ee.isLeapYear(e);this.il=Boolean(t);const a=function(e){const t=Ee.longCheshvan(e),n=Ee.shortKislev(e);return t&&!n?2:!t&&n?0:1}(e);let s=`${i}${o}${a}`;if(kS[s]||(s+=+this.il),this.theSedraArray=kS[s],!this.theSedraArray)throw new Error(`improper sedra year type ${s} calculated for ${e}`)}get(e){return this.lookup(e).parsha}getString(e,t){return aS(this.get(e),t)}isParsha(e){return!this.lookup(e).chag}find(e){if("number"==typeof e){if(e>=fS.length||e<0&&!mS(e))throw new RangeError(`Invalid parsha number: ${e}`);return this.findInternal(e)}if("string"==typeof e){const t=dS.get(e);return"number"==typeof t?this.find(t):-1!==e.indexOf("-")?e===pS||e===vS?this.findInternal(e):this.find(e.split("-")):this.findInternal(e)}if(Array.isArray(e)){const t=e.length;if(1!==t&&2!==t||"string"!=typeof e[0])throw new TypeError(`Invalid parsha argument: ${JSON.stringify(e)}`);if(1===t)return this.find(e[0]);const n=e[0],r=e[1],o=dS.get(n),i=dS.get(r);if("number"!=typeof o||"number"!=typeof i||i!==o+1||!mS(-o))throw new RangeError(`Unrecognized parsha name: ${n}-${r}`);return this.find(-o)}return null}findInternal(e){const t=this.theSedraArray.indexOf(e);return-1===t?null:new Ee(this.firstSaturday+7*t)}findContaining(e){const t=this.find(e);if(t)return t;if("number"==typeof e){const t=-e;return mS(t)?this.find(t):this.find(t+1)}{const t=dS.get(e);if(t){const e=-t;return mS(e)?this.find(e):this.find(e+1)}{const[t]=e.split("-");return this.find(t)}}}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(e){const t="number"==typeof e?e:Ee.isHDate(e)?e.abs():NaN;if(isNaN(t))throw new TypeError(`Bad date argument: ${e}`);const n=Ee.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return RS(this.year+1,this.il).lookup(n)}const i=new Ee(n);if("string"==typeof o)return{parsha:[o],chag:!0,hdate:i};if(o>=0)return{parsha:[fS[o]],chag:!1,num:o+1,hdate:i};const a=yS(o);return{parsha:[fS[a],fS[a+1]],chag:!1,num:[a+1,a+2],hdate:i}}}const fS=["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"],dS=new Map;for(let e=0;e<fS.length;e++){const t=fS[e];dS.set(t,e)}const gS=[21,26,28,31,38,41,50];function mS(e){return gS.includes(-e)}function yS(e){return-e}const vS="Sukkot Shabbat Chol ha-Moed",SS="Pesach",wS="Pesach I",pS="Pesach Shabbat Chol ha-Moed",AS="Pesach VII",bS="Pesach VIII",TS="Shavuot";function MS(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const IS=[51,52,vS],ES=[52,"Yom Kippur",vS],OS=["Rosh Hashana",52,"Sukkot","Shmini Atzeret"],NS=MS(0,20),HS=MS(0,27),DS=MS(33,40),CS=MS(43,49),_S=MS(43,50),kS={"020":IS.concat(NS,yS(21),23,24,SS,25,yS(26),yS(28),30,yS(31),DS,yS(41),CS,yS(50)),"0220":IS.concat(NS,yS(21),23,24,SS,25,yS(26),yS(28),30,yS(31),33,TS,MS(34,37),yS(38),40,yS(41),CS,yS(50)),"0510":ES.concat(NS,yS(21),23,24,wS,bS,25,yS(26),yS(28),30,yS(31),DS,yS(41),_S),"0511":ES.concat(NS,yS(21),23,24,SS,25,yS(26),yS(28),MS(30,40),yS(41),_S),"052":ES.concat(MS(0,24),AS,25,yS(26),yS(28),30,yS(31),DS,yS(41),_S),"070":OS.concat(NS,yS(21),23,24,AS,25,yS(26),yS(28),30,yS(31),DS,yS(41),_S),"072":OS.concat(NS,yS(21),23,24,pS,25,yS(26),yS(28),30,yS(31),DS,yS(41),CS,yS(50)),1200:IS.concat(HS,pS,MS(28,33),TS,MS(34,37),yS(38),40,yS(41),CS,yS(50)),1201:IS.concat(HS,pS,MS(28,40),yS(41),CS,yS(50)),1220:IS.concat(HS,wS,bS,MS(28,40),yS(41),_S),1221:IS.concat(HS,SS,MS(28,50)),150:ES.concat(MS(0,28),AS,MS(29,50)),152:ES.concat(MS(0,28),pS,MS(29,49),yS(50)),170:OS.concat(HS,pS,MS(28,40),yS(41),CS,yS(50)),1720:OS.concat(HS,pS,MS(28,33),TS,MS(34,37),yS(38),40,yS(41),CS,yS(50))};kS["0221"]=kS["020"],kS["0310"]=kS["0220"],kS["0311"]=kS["020"],kS[1310]=kS[1220],kS[1311]=kS[1221],kS[1721]=kS[170];const LS=new hS({maxSize:400});function RS(e,t){const n=`${e}-${t?1:0}`;let r=LS.get(n);return r||(r=new lS(e,t),LS.set(n,r)),r}class YS extends Pe{constructor(e,t,n=!1,r=-1){if(!Array.isArray(t)||0===t.length||t.length>2)throw new TypeError("Bad parsha argument");super(e,"Parashat "+t.join("-"),Re.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){return aS(this.parsha,e)}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(){return se(this.getDate().greg()).replace(/-/g,"")}}const PS=f.NISAN,jS=f.IYYAR;function BS(e){if(e<5708)return null;let t;const n=new Ee(15,PS,e).getDay();return t=0===n?2:6===n?3:e<5764?4:2===n?5:4,new Ee(t,jS,e)}const FS="Yom Kippur Katan";class US extends Uv{constructor(e,t){super(e,`${FS} ${t}`,Re.MINOR_FAST|Re.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=Se.gettext(this.nextMonthName,e).replace(/'/g,"’");return Se.gettext(FS,e)+" "+t}renderBrief(e){return Se.gettext(FS,e)}url(){}}function ZS(e){return e.observedInIsrael()}function $S(e){return e.observedInDiaspora()}function xS(e,t){const n=Ee.isHDate(e)?e:new Ee(e),r=n.toString(),o=Sw(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const i=o.filter(function(e){return e?ZS:$S}(t));return i}const VS=Re.CHAG,zS=Re.IL_ONLY,KS=Re.LIGHT_CANDLES_TZEIS,JS=Re.CHANUKAH_CANDLES,GS=Re.MINOR_FAST,WS=Re.SPECIAL_SHABBAT,qS=Re.MODERN_HOLIDAY,XS=Re.MAJOR_FAST,QS=Re.MINOR_HOLIDAY,ew=Re.EREV,tw=0,nw=2,rw=4,ow=5,iw=6,aw=f.NISAN,sw=f.TAMUZ,uw=f.AV,cw=f.TISHREI,hw=f.KISLEV,lw=f.TEVET,fw=f.ADAR_I,dw=f.ADAR_II,gw={emoji:"🇮🇱"},mw="🕎",yw=new hS({maxSize:400}),vw=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function Sw(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=yw.get(e);if(t)return t;const n=new Ee(1,cw,e),r=new Ee(15,aw,e),o=new Map;function i(...e){for(const t of e){const e=t.date.toString(),n=o.get(e);"object"==typeof n?n[0].getFlags()&ew?n.unshift(t):n.push(t):o.set(e,[t])}}for(const t of Bv){const n=new Ee(t.dd,t.mm,e),r=new Uv(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),i(r)}i(new $v(n,e,VS|KS));const a=n.getDay()===rw?4:3;i(new Uv(new Ee(a,cw,e),jv.TZOM_GEDALIAH,GS)),i(new Uv(new Ee(Ee.dayOnOrBefore(iw,7+n.abs())),jv.SHABBAT_SHUVA,WS));const s=Ee.shortKislev(e)?new Ee(1,lw,e):new Ee(30,hw,e);i(new Uv(s,jv.CHAG_HABANOT,QS));for(let t=2;t<=8;t++){const n=new Ee(23+t,hw,e);i(new Uv(n,`Chanukah: ${t} Candles`,QS|JS,{chanukahDay:t-1,emoji:mw+vw[t]}))}i(new Uv(new Ee(32,hw,e),jv.CHANUKAH_8TH_DAY,QS,{chanukahDay:8,emoji:mw})),i(new Zv(new Ee(10,lw,e),jv.ASARA_BTEVET,GS));const u=r.abs();i(new Uv(new Ee(Ee.dayOnOrBefore(iw,u-43)),jv.SHABBAT_SHEKALIM,WS),new Uv(new Ee(Ee.dayOnOrBefore(iw,u-30)),jv.SHABBAT_ZACHOR,WS),new Uv(new Ee(u-(r.getDay()===nw?33:31)),jv.TAANIT_ESTHER,GS));const c=Ee.dayOnOrBefore(iw,u-14);i(new Uv(new Ee(c-7),jv.SHABBAT_PARAH,WS),new Uv(new Ee(c),jv.SHABBAT_HACHODESH,WS),new Uv(new Ee(Ee.dayOnOrBefore(iw,u-1)),jv.SHABBAT_HAGADOL,WS),new Uv(r.prev().getDay()===iw?r.onOrBefore(rw):new Ee(14,aw,e),jv.TAANIT_BECHOROT,GS)),i(new Uv(new Ee(Ee.dayOnOrBefore(iw,new Ee(1,cw,e+1).abs()-4)),jv.LEIL_SELICHOT,QS,{emoji:"🕍"})),r.getDay()===tw&&i(new Uv(new Ee(16,dw,e),jv.PURIM_MESHULASH,QS)),Ee.isLeapYear(e)&&(i(new Uv(new Ee(14,fw,e),jv.PURIM_KATAN,QS,{emoji:"🎭️"})),i(new Uv(new Ee(15,fw,e),jv.SHUSHAN_PURIM_KATAN,QS,{emoji:"🎭️"})));const h=function(e){if(e<5711)return null;let t=new Ee(27,PS,e);return 5===t.getDay()?t=new Ee(26,PS,e):0===t.getDay()&&(t=new Ee(28,PS,e)),t}(e);h&&i(new Uv(h,jv.YOM_HASHOAH,qS));const l=BS(e);l&&i(new Uv(l,jv.YOM_HAZIKARON,qS,gw),new Uv(l.next(),jv.YOM_HAATZMA_UT,qS,gw));for(const t of Fv)if(e>=t.firstYear){let n=new Ee(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||r!==ow&&r!==iw?t.friPostponeToSun&&r===ow?n=new Ee(n.abs()+2):t.satPostponeToSun&&r===iw&&(n=n.next()):n=n.onOrBefore(rw);const o=t.chul?qS:qS|zS,a=new Uv(n,t.desc,o);t.suppressEmoji||(a.emoji="🇮🇱"),i(a)}let d,g=new Ee(17,sw,e);g.getDay()===iw&&(g=new Ee(18,sw,e),d={observed:!0}),i(new Uv(g,jv.TZOM_TAMMUZ,GS,d));let m,y=new Ee(9,uw,e),v=jv.TISHA_BAV;y.getDay()===iw&&(y=y.next(),m={observed:!0},v+=" (observed)");const S=y.abs();i(new Uv(new Ee(Ee.dayOnOrBefore(iw,S)),jv.SHABBAT_CHAZON,WS),new Uv(y.prev(),jv.EREV_TISHA_BAV,ew|XS,m),new Uv(y,v,XS,m),new Uv(new Ee(Ee.dayOnOrBefore(iw,S+7)),jv.SHABBAT_NACHAMU,WS));const w=Ee.monthsInYear(e);for(let t=1;t<=w;t++){const n=Ee.getMonthName(t,e);30===(t===aw?Ee.daysInMonth(Ee.monthsInYear(e-1),e-1):Ee.daysInMonth(t-1,e))?(i(new Vv(new Ee(1,t,e),n)),i(new Vv(new Ee(30,t-1,e),n))):t!==cw&&i(new Vv(new Ee(1,t,e),n))}for(let t=f.IYYAR;t<=w;t++){const n=t+1;if(n===cw||n===f.CHESHVAN||n===lw)continue;let r=new Ee(29,t,e);const o=r.getDay();o!==ow&&o!==iw||(r=r.onOrBefore(rw));const a=Ee.getMonthName(n,e);i(new US(r,a))}const p=RS(e,!1).find(15);i(new Uv(p,jv.SHABBAT_SHIRAH,WS));const A=function(e){const t=Ee.isLeapYear(e),n=t?dw:aw,r=t?20:1,o=Ee.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(A){const e=new Ee(A);i(new Uv(e,jv.BIRKAT_HACHAMAH,QS,{emoji:"☀️"}))}return yw.set(e,o),o}function ww(e,t){const n=Sw(e),r=Ee.hebrew2abs(e,cw,1),o=Ee.hebrew2abs(e+1,cw,1)-1;let i=[];const a=t?ZS:$S;for(let e=r;e<=o;e++){const t=new Ee(e),r=n.get(t.toString());if(r){const e=r.filter(a);i=i.concat(e)}}return i}const pw="Shabbat Mevarchim Chodesh";class Aw extends Pe{constructor(e,t,n){if(super(e,`${pw} ${t}`,Re.SHABBAT_MEVARCHIM),this.monthName=t,n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n===Ee.monthsInYear(t)?f.NISAN:n+1,o=new rS(t,r);this.memo=o.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=Se.gettext(this.monthName,e).replace(/'/g,"’");return Se.gettext(pw,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}const bw=new Map;class Tw{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);bw.set(e,t)}static lookup(e,t,n){const r=bw.get(e);return"function"==typeof r?r(t,n):null}}function Mw(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}const Iw={shacharit:!1,mincha:!1,allCongs:!1};function Ew(e,t){return Ow(e,t,!0)}function Ow(e,t,n){const r=function(e,t){const n=Ee.isLeapYear(e),r=Ee.monthsInYear(e);let o=new Ee(9,f.AV,e);6===o.getDay()&&(o=o.next());let i=new Ee(15,f.ADAR_II,e);6===i.getDay()&&(i=i.next());const a=[new Ee(2,f.TISHREI,e)].concat(Mw(1,r).map((t=>new Ee(1,t,e))),Mw(1,r).filter((t=>30===Ee.daysInMonth(t,e))).map((t=>new Ee(30,t,e))),Mw(1,Ee.daysInMonth(f.NISAN,e)).map((t=>new Ee(t,f.NISAN,e))),new Ee(18,f.IYYAR,e),Mw(1,8-(t?1:0)).map((t=>new Ee(t,f.SIVAN,e))),o,new Ee(15,f.AV,e),new Ee(29,f.ELUL,e),Mw(9,24-(t?1:0)).map((t=>new Ee(t,f.TISHREI,e))),Mw(25,33).map((t=>new Ee(t,f.KISLEV,e))),new Ee(15,f.SHVAT,e),new Ee(14,f.ADAR_II,e),i,n?new Ee(14,f.ADAR_I,e):[]),s=[new Ee(14,f.IYYAR,e)].concat(Mw(1,13).map((t=>new Ee(t,f.SIVAN,e))),Mw(20,31).map((t=>new Ee(t,f.TISHREI,e))),e>=5708?BS(e).next():[],e>=5727?new Ee(28,f.IYYAR,e):[]),u=[new Ee(29,f.ELUL,e-1),new Ee(9,f.TISHREI,e),new Ee(14,f.IYYAR,e)];return{none:a.map((e=>e.abs())).sort(((e,t)=>e-t)),some:s.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:u.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.yy,t),o=e.abs();if(r.none.indexOf(o)>-1)return Iw;const i=e.getDay(),a={shacharit:!1,mincha:!1,allCongs:!1};-1===r.some.indexOf(o)&&(a.allCongs=!0),6!==i&&(a.shacharit=!0);const s=o+1;if(n&&-1===r.yesPrev.indexOf(s)){const e=Ow(new Ee(s),t,!1);a.mincha=e.shacharit}else a.mincha=5!==i;return!a.allCongs||a.mincha||a.shacharit?a:Iw}const Nw=f.TISHREI;function Hw(e){if("number"==typeof e)return e;if(u(e))return h(e);if(Ee.isHDate(e))return e.abs();throw new TypeError(`Invalid date type: ${e}`)}function Dw(e){if(e.start&&!e.end||e.end&&!e.start)throw new TypeError("Both options.start and options.end are required");if(e.start&&e.end)return[Hw(e.start),Hw(e.end)];const t=Boolean(e.isHebrewYear),n=function(e){return void 0!==e.year?Number(e.year):e.isHebrewYear?(new Ee).getFullYear():(new Date).getFullYear()}(e);if(isNaN(n))throw new RangeError(`Invalid year ${e.year}`);if(t&&n<1)throw new RangeError(`Invalid Hebrew year ${n}`);const r=function(e){if(e.month){if(e.isHebrewYear)return Ee.monthNum(e.month);if("number"==typeof e.month)return e.month}return NaN}(e),o=Number(e.numYears)||1;return t?function(e,t,n){const r=new Ee(1,e||Nw,t);let o=r.abs();const i=e?o+r.daysInMonth():new Ee(1,Nw,t+n).abs()-1;!e&&t>1&&o--;return[o,i]}(r,n,o):function(e,t,n){const r=e?e-1:0,o=new Date(t,r,1);t<100&&o.setFullYear(t);const i=h(o);let a;if(e)a=i+s(e,t)-1;else{const e=t+n,r=new Date(e,0,1);e<100&&r.setFullYear(e),a=h(r)-1}return[i,a]}(r,n,o)}function Cw(e={}){!function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof yy))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=Number(e.candleLightingMins)||18;t.getIsrael()&&18===Math.abs(n)&&(n=function(e,t){const n=e.getGeoId();if(n){const e=up[n];if("number"==typeof e)return e}const r=e.getShortName();if(r){const e=sp[r];if("number"==typeof e)return e}return t}(t,n));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=cp;"number"!=typeof e.fastEndDeg&&(e.fastEndDeg=hp)}(e=Object.assign({},e));const t=e.location=e.location||fp,n=e.il=e.il||t.getIsrael()||!1,r="number"==typeof e.mask;if(e.mask=function(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask||0;t&Kw&&delete e.noRoshChodesh;t&Vw&&delete e.noModern;t&$w&&delete e.noMinorFast;t&xw&&delete e.noSpecialShabbat;t&Jw&&(e.sedrot=!0);t&(Gw|Ww|qw|Xw)&&(e.dailyLearning=e.dailyLearning||{},t&Gw&&(e.dailyLearning.dafYomi=!0),t&Ww&&(e.dailyLearning.mishnaYomi=!0),t&qw&&(e.dailyLearning.nachYomi=!0),t&Xw&&(e.dailyLearning.yerushalmi=1));t&Qw&&(e.omer=!0);t&ep&&(e.shabbatMevarchim=!0);t&op&&(e.yomKippurKatan=!0);return t}(e);const n=e.il||(null===(t=e.location)||void 0===t?void 0:t.getIsrael())||!1;let r=0;e.noHolidays||(r|=Kw|jw|$w|xw|Vw|zw|tp|np|rp|Pw|Uw|Zw);e.candlelighting&&(r|=Pw|Uw|jw);e.noRoshChodesh&&(r&=~Kw);e.noModern&&(r&=~Vw);e.noMinorFast&&(r&=~$w);e.noSpecialShabbat&&(r&=~xw,r&=~ep);r|=n?Fw:Bw;e.sedrot&&(r|=Jw);e.omer&&(r|=Qw);e.shabbatMevarchim&&(r|=ep);e.yomKippurKatan&&(r|=op);if(e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=Gw),t.mishnaYomi&&(r|=Ww),t.nachYomi&&(r|=qw),t.yerushalmi&&(r|=Xw)}return r}(e),e.ashkenazi||e.locale){if(e.locale&&"string"!=typeof e.locale)throw new TypeError(`Invalid options.locale: ${e.locale}`);const t=e.ashkenazi?"ashkenazi":e.locale;if(!Se.useLocale(t))throw new TypeError(`Locale '${t}' not found; did you forget to import @hebcal/locales?`)}else Se.useLocale("en");const o=[];let i,a,s=-1,u=-1,c=-1;const h=Dw(e);!function(e){for(const t of Object.keys(e))void 0!==ap[t]||ip.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),ip.add(t))}(e);const f=h[0],d=h[1];l(f).getFullYear()<100&&(e.candlelighting=!1);for(let t=f;t<=d;t++){const h=new Ee(t),l=h.getFullYear();l!==c&&(c=l,a=Sw(c),e.sedrot&&(i=RS(c,n)),e.omer&&(s=Ee.hebrew2abs(c,Lw,16),u=Ee.hebrew2abs(c,Rw,5)));const f=o.length,d=h.getDay(),g=d===_w,m=d===kw;let y;const v=a.get(h.toString())||[];for(const t of v)y=dp(y,o,t,e,g,m,r);if(e.sedrot&&m){const e=i.lookup(t);e.chag||o.push(new YS(h,e.parsha,n,e.num))}const S=e.dailyLearning;if("object"==typeof S){const e=yp(h,S,n);o.push(...e)}if(e.omer&&t>=s&&t<=u){const n=vp(h,t-s+1,e);o.push(n)}if(m&&(e.molad||e.shabbatMevarchim)){const t=gp(h,e);o.push(...t)}if(!y&&e.candlelighting&&(g||m)&&(y=Jv(void 0,h,e,g,m),g&&y&&i)){const r=i.lookup(t),o=new YS(h.next(),r.parsha,n,r.num);y.memo=o.render(e.locale)}if(y instanceof Ty&&(0===e.havdalahMins||0===e.havdalahDeg)&&(y=void 0),y&&o.push(y),e.addHebrewDates||e.addHebrewDatesForEvents&&f!==o.length){const e=new je(h);f===o.length?o.push(e):o.splice(f,0,e)}}return o}const _w=5,kw=6,Lw=f.NISAN,Rw=f.SIVAN,Yw=f.ELUL,Pw=Re.LIGHT_CANDLES,jw=Re.YOM_TOV_ENDS,Bw=Re.CHUL_ONLY,Fw=Re.IL_ONLY,Uw=Re.LIGHT_CANDLES_TZEIS,Zw=Re.CHANUKAH_CANDLES,$w=Re.MINOR_FAST,xw=Re.SPECIAL_SHABBAT,Vw=Re.MODERN_HOLIDAY,zw=Re.MAJOR_FAST,Kw=Re.ROSH_CHODESH,Jw=Re.PARSHA_HASHAVUA,Gw=Re.DAF_YOMI,Ww=Re.MISHNA_YOMI,qw=Re.NACH_YOMI,Xw=Re.YERUSHALMI_YOMI,Qw=Re.OMER_COUNT,ep=Re.SHABBAT_MEVARCHIM,tp=Re.MINOR_HOLIDAY,np=Re.EREV,rp=Re.CHOL_HAMOED,op=Re.YOM_KIPPUR_KATAN,ip=new Set,ap={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,mask:1,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1};const sp={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},up={281184:40,294801:30,293067:30},cp=8.5,hp=7.0833333;const lp=Pw|Uw|Zw|jw,fp=new yy(0,0,!1,"UTC");function dp(e,t,n,r,o,i,a){const s=r.il||!1;if(!n.observedIn(s))return e;const u=n.getFlags();if(!r.yomKippurKatan&&u&op||r.noModern&&u&Vw)return e;const c=Boolean(u&zw),h=Boolean(u&$w);let l;if(r.candlelighting&&(c||h)&&(n=l=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)return e;const r=e.getDate(),o=r.greg(),i=t.location,a=t.fastEndDeg,s=Boolean(t.useElevation),u=new Sy(i,o,s);let c,h;if("Erev Tish'a B'Av"===n){const n=u.sunset();isNaN(n.getTime())||(c=Xv(e,n,Gv,t))}else if(n.startsWith("Tish'a B'Av")){const n=u.tzeit(a);isNaN(n.getTime())||(h=Xv(e,n,Wv,t))}else{const n=u.alotHaShachar();if(isNaN(n.getTime())||(c=Xv(e,n,Gv,t)),5!==o.getDay()&&(14!==r.getDate()||r.getMonth()!==f.NISAN)){const n=u.tzeit(a);isNaN(n.getTime())||(h=Xv(e,n,Wv,t))}}const l=new qv(r,n,e.getFlags(),c,h);for(const t in e)e.hasOwnProperty(t)&&Object.defineProperty(l,t,{value:e[t]});return l}(n,r),l.startEvent&&(c||h&&!r.noMinorFast)&&t.push(l.startEvent)),u&Number(r.mask)||!u&&!a){if(r.candlelighting&&u&lp){const t=n.getDate();if(e=Jv(n,t,r,o,i),u&Zw&&e&&!r.noHolidays){const a=function(e,t,n){const r=n.location,o=Boolean(n.useElevation),i=new Sy(r,t.greg(),o).beinHaShmashos();if(isNaN(i.getTime()))return null;const a=new Qv(t,e.getDesc(),e.getFlags(),i,r);return a.emoji=e.emoji,a.chanukahDay=e.chanukahDay,a}(n,t,r);a&&((o||i)&&(a.eventTime=e.eventTime,a.eventTimeStr=e.eventTimeStr),n=a),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&u&op)&&t.push(n)}return(c||h&&!r.noMinorFast)&&l&&l.endEvent&&t.push(l.endEvent),e}function gp(e,t){const n=[],r=e.getMonth(),o=e.getDate();if(r!==Yw&&o>=23&&o<=29){const o=e.getFullYear(),i=r===Ee.monthsInYear(o)?Lw:r+1;if(t.molad&&n.push(new oS(e,o,i,t)),t.shabbatMevarchim){const r=Ee.getMonthName(i,o),a=new rS(o,i).render(t.locale||"en",t);n.push(new Aw(e,r,a))}}return n}function mp(e,t){return"yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e}function yp(e,t,n){const r=[];for(const[o,i]of Object.entries(t))if(i){const t=mp(o,i),a=Tw.lookup(t,e,n);a&&r.push(a)}return r}function vp(e,t,n){const r=new iS(e,t);if(n.candlelighting){const t=n.location,o=new Sy(t,e.prev(),!1).tzeit(7.0833);isNaN(o.getTime())||(r.alarm=o)}return r}function Sp(e,t){return 0!==(xS(e,t)||[]).filter((e=>e.getFlags()&Re.CHAG)).length}return e.AsaraBTevetEvent=Zv,e.CandleLightingEvent=by,e.DailyLearning=Tw,e.Event=Pe,e.FastDayEvent=qv,e.GeoLocation=cy,e.HDate=Ee,e.HavdalahEvent=Ty,e.HebrewCalendar=class{constructor(){}static calendar(e={}){return Cw(e)}static getBirthdayOrAnniversary(e,t){const n=function(e,t){const n=Y(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=A(r);let i=n.mm,a=n.dd;return i===L&&!o||i===R&&o?i=b(e):i!==D||30!==a||O(e)?i===C&&30===a&&N(e)?(i=_,a=1):i===L&&30===a&&o&&!A(e)&&(i=H,a=1):(i=C,a=1),{yy:e,mm:i,dd:a}}(e,t);return void 0===n?n:new Ee(n)}static getYahrzeit(e,t){const n=function(e,t){let n=Y(t);if(!(e<=n.yy))return n.mm!==D||30!==n.dd||O(n.yy+1)?n.mm===C&&30===n.dd&&N(n.yy+1)?n=p(S(e,_,1)-1):n.mm===R?n.mm=b(e):n.mm!==L||30!==n.dd||A(e)||(n.dd=30,n.mm=k):n=p(S(e,C,1)-1),n.mm!==D||30!==n.dd||O(e)?n.mm===C&&30===n.dd&&N(e)&&(n.mm=_,n.dd=1):(n.mm=C,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new Ee(n)}static getHolidaysForYear(e){return Sw(e)}static getHolidaysForYearArray(e,t){return ww(e,t)}static getHolidaysOnDate(e,t){return xS(e,t)}static eruvTavshilin(e,t){if(e.getDay()<3||e.getDay()>4)return!1;const n=new Ee(e),r=n.after(5),o=n.next();return!(!Sp(r,t)||Sp(n,t)||!Sp(o,t))}static reformatTimeStr(e,t,n){return py(e,t,n)}static version(){return t}static getSedra(e,t){return RS(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===f.NISAN&&(15===o||16===o)&&e.getFlags()&Re.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()&Re.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(ww(e.getFullYear(),t),e)}static tachanun(e,t){return Ew(e,t)}},e.HebrewDateEvent=je,e.HolidayEvent=Uv,e.Locale=Se,e.Location=yy,e.MevarchimChodeshEvent=Aw,e.Molad=rS,e.MoladEvent=oS,e.NOAACalculator=ly,e.OmerEvent=iS,e.ParshaEvent=YS,e.RoshChodeshEvent=Vv,e.RoshHashanaEvent=$v,e.Sedra=lS,e.TimedEvent=Ay,e.Zmanim=Sy,e.flags=Re,e.gematriya=U,e.gematriyaStrToNum=Z,e.getHolidaysOnDate=xS,e.getSedra=RS,e.holidayDesc=jv,e.months=f,e.parshiot=fS,e.version=t,e}({});
3
3
  //# sourceMappingURL=bundle.min.js.map