@hebcal/core 5.5.0 → 5.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +1695 -1130
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.min.js +2 -2
- package/dist/bundle.min.js.map +1 -1
- package/dist/index.cjs +27 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +27 -24
- package/dist/index.mjs.map +1 -1
- package/dist/module.d.ts +1581 -0
- package/dist/pkgVersion.d.ts +1 -1
- package/package.json +14 -13
package/dist/bundle.min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! @hebcal/core v5.5.
|
|
2
|
-
var hebcal=function(e){"use strict";const t=[0,31,28,31,30,31,30,31,31,30,31,30,31],n=[t,t.slice()];function r(e,t){return e-t*Math.floor(e/t)}function o(e,t){return Math.floor(e/t)}function a(e){return!(e%4||!(e%100)&&e%400)}function i(e,t){return n[+a(t)][e]}function s(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function c(e,t,n){const r=e-1;return 365*r+o(r,4)-o(r,100)+o(r,400)+o(367*t-362,12)+(t<=2?0:a(e)?-1:-2)+n}function u(e){if(!s(e))throw new TypeError(`Argument not a Date: ${e}`);return c(e.getFullYear(),e.getMonth()+1,e.getDate())}function h(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const t=function(e){const t=e-1,n=o(t,146097),a=r(t,146097),i=o(a,36524),s=r(a,36524),c=o(s,1461),u=o(r(s,1461),365),h=400*n+100*i+4*c+u;return 4!==i&&4!==u?h+1:h}(e=Math.trunc(e)),n=o(12*(e-c(t,1,1)+(e<c(t,3,1)?0:a(t)?1:2))+373,367),i=e-c(t,n,1)+1,s=new Date(t,n-1,i);return t<100&&t>=0&&s.setFullYear(t),s}n[1][2]=29,e.greg=void 0,e.greg||(e.greg={}),e.greg.abs2greg=h,e.greg.daysInMonth=i,e.greg.greg2abs=u,e.greg.isDate=s,e.greg.isLeapYear=a;const l=1,f=2,d=4,g=6,m=7,y=8,S=9,p=10,w=12,v=13,A={NISAN:l,IYYAR:f,SIVAN:3,TAMUZ:d,AV:5,ELUL:g,TISHREI:m,CHESHVAN:y,KISLEV:S,TEVET:p,SHVAT:11,ADAR_I:w,ADAR_II:v},b=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],T=[b.concat(["Adar","Nisan"]),b.concat(["Adar I","Adar II","Nisan"])],M=new Map,I=-1373428,E=365.24682220597794;function O(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function N(e,t,n){if(O(e,"year"),O(t,"month"),O(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<m){for(let t=m;t<=_(e);t++)r+=k(t,e);for(let n=l;n<t;n++)r+=k(n,e)}else for(let n=m;n<t;n++)r+=k(n,e);return I+R(e)+r-1}function C(e){return I+R(e)}function H(e){if(O(e,"abs"),(e=Math.trunc(e))<=I)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-I)/E);for(;C(t)<=e;)++t;--t;let n=e<N(t,1,1)?7:1;for(;e>N(t,n,k(n,t));)++n;return{yy:t,mm:n,dd:1+e-N(t,n,1)}}function D(e){return(1+7*e)%19<7}function _(e){return+D(e)+12}function k(e,t){switch(e){case f:case d:case g:case p:case v:return 29}return e===w&&!D(t)||e===y&&!P(t)||e===S&&j(t)?29:30}function L(e,t){if(O(e,"month"),O(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return T[+D(t)][e]}function R(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),a=r%1080+o%24*1080,i=1+29*n+Math.floor(o/24);let s=i;(a>=19440||2==i%7&&a>=9924&&!D(e)||1==i%7&&a>=16789&&D(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return M.set(e,n),n}function Y(e){return R(e+1)-R(e)}function P(e){return Y(e)%10==5}function j(e){return Y(e)%10==3}const B=A.NISAN,F=A.CHESHVAN,U=A.KISLEV,x=A.TEVET,Z=A.SHVAT,$=A.ADAR_I,V=A.ADAR_II;function z(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(s(e)){return H(u(e))}return H(e)}const K={"א":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,G=new Map;for(const[e,t]of Object.entries(K))J.set(e,t),G.set(t,e);function W(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 q(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=W(r);for(const t of e)n+=G.get(t);n+="׳"}const o=W(t%1e3);if(1===o.length)return n+G.get(o[0])+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=G.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 Q={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 ee(e){if(e<1||e>49)throw new RangeError(`Invalid Omer day ${e}`)}function te(e){return[Math.floor((e-1)/7)+1,e%7||7]}function ne(e,t){return ee(e),"he"===t?function(e){const t=Math.floor(e/10),n=e%10;let r="הַיּוֹם ";11===e?r+="אַחַד "+le:12===e?r+="שְׁנֵים "+le:12<e&&e<20?r+=oe[n]+" "+le:e>9&&(r+=oe[n],n&&(r+=" ",r+=3===t?"וּ":"וְ"));e>2?((e>20||10===e||20===e)&&(r+=re[t]),r+=e<11?oe[n]+" "+ie+" ":" "+ue+" "):r+=1===e?he+" ":se+" ";if(e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?oe[t]+" "+ce+" ":1===t?"שָׁבֽוּעַ "+oe[1]+" ":ae+" "+ce+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?oe[n]+" "+ie+" ":1===n?he+" ":se+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(e):function(e){const[t,n]=te(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 re=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],oe=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],ae="שְׁנֵי",ie="יָמִים",se=ae+" "+ie,ce="שָׁבוּעוֹת",ue="יוֹם",he=ue+" "+oe[1],le="עָשָׂר";function fe(e){return e<0?"-00"+fe(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function de(e){return e>=0&&e<10?"0"+e:String(e)}const ge=new Map;const me=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function ye(e,t){const n=function(e){const t=ge.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 ge.set(e,n),n}(e).format(t),r=me.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]=fe(parseInt(r[3],10)),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function Se(e){return fe(e.getFullYear())+"-"+de(e.getMonth()+1)+"-"+de(e.getDate())}var pe={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Tevet:["Teves"]}}},we={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 ve={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},Ae={h:"he",a:"ashkenazi",s:"en","":"en"},be=new Map;let Te,Me;function Ie(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function Ee(e){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);return e.toLowerCase()}function Oe(e){const t=Ee(e),n=be.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return n}class Ne{static lookupTranslation(e,t){const n=("string"==typeof t&&be.get(t.toLowerCase())||Te)[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=Ee(e),"object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);be.set(e,t.contexts[""])}static addTranslation(e,t,n){const r=Oe(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=Oe(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=Ee(e),n=Oe(t);return Me=Ae[t]||t,Te=n,Te}static getLocaleName(){return Me}static getLocaleNames(){return Array.from(be.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||Me;if(!n)return Ie(e);switch(n){case"en":case"s":case"a":return Ie(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e)}return n.startsWith("ashkenazi")?Ie(e):e+"."}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}Ne.addLocale("en",ve),Ne.addLocale("s",ve),Ne.addLocale("",ve),Ne.useLocale("en"),Ne.addLocale("ashkenazi",pe),Ne.addLocale("a",pe),Ne.addLocale("he",we),Ne.addLocale("h",we);const Ce=we.contexts[""],He={};for(const[e,t]of Object.entries(Ce))He[e]=[Ne.hebrewStripNikkud(t[0])];const De={headers:we.headers,contexts:{"":He}};Ne.addLocale("he-x-NoNikud",De);const _e="day",ke="week",Le="month",Re="year";class Ye{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 a="string"==typeof n?parseInt(n,10):n;if(isNaN(a))throw new TypeError(`HDate called with bad year argument: ${n}`);this.yy=a,function(e,t){e.mm=Ye.monthNum(t),Pe(e)}(this,t);const i="string"==typeof e?parseInt(e,10):e;if(isNaN(i))throw new TypeError(`HDate called with bad day argument: ${e}`);o=i,(r=this).dd=o,Pe(r)}else{null==e&&(e=new Date);const t="number"!=typeof e||isNaN(e)?s(e)?u(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?H(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 D(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=_(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return k(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 h(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=N(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return N(e,t,n)}getMonthName(){return L(this.getMonth(),this.getFullYear())}render(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=e||Ne.getLocaleName(),r=this.getDate(),o=Ne.gettext(this.getMonthName(),n).replace(/'/g,"’"),a=Ne.ordinal(r,n),i=function(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const t=Ne.lookupTranslation("of",e);if(t)return" "+t;if(e.startsWith("ashkenazi"))return" of";return""}(n),s=`${a}${i} ${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=Ne.gettext(this.getMonthName(),n),o=this.getFullYear();return q(t)+" "+r+" "+q(o)}before(e){return Be(e,this,-1)}onOrBefore(e){return Be(e,this,0)}nearest(e){return Be(e,this,3)}onOrAfter(e){return Be(e,this,6)}after(e){return Be(e,this,7)}next(){return new Ye(this.abs()+1)}prev(){return new Ye(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 Ye(this);if(t=function(e){switch(e){case"d":return _e;case"w":return ke;case"M":return Le;case"y":return Re}const t=String(e||"").toLowerCase().replace(/s$/,"");switch(t){case _e:case ke:case Le:case Re:return t}throw new TypeError(`Invalid units '${e}'`)}(t),t===_e)return new Ye(this.abs()+e);if(t===ke)return new Ye(this.abs()+7*e);if(t===Re)return new Ye(this.getDate(),this.getMonth(),this.getFullYear()+e);{let t=new Ye(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new Ye(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 D(e)}static monthsInYear(e){return _(e)}static daysInMonth(e,t){return k(e,t)}static getMonthName(e,t){return L(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):Ye.monthFromName(e)}static daysInYear(e){return Y(e)}static longCheshvan(e){return P(e)}static shortKislev(e){return j(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 l;case"i":return f;case"e":return g;case"c":case"ח":return y;case"k":case"כ":return S;case"s":switch(t[1]){case"i":return 3;case"h":return 11}break;case"t":switch(t[1]){case"a":return d;case"i":return m;case"e":return p}break;case"a":switch(t[1]){case"v":return 5;case"d":return/(1|[^i]i|a|א)$/i.test(e)?w:v}break;case"ס":return 3;case"ט":return p;case"ש":return 11;case"א":switch(t[1]){case"ב":return 5;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?w:v;case"י":return f;case"ל":return g}break;case"ת":switch(t[1]){case"מ":return d;case"ש":return m}}throw new RangeError(`Unable to parse month name: ${e}`)}(Ne.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]),a=3===r?n[1]:n[1]+" "+n[2],i=Ye.monthFromName(a);let s=X(3===r?n[2]:n[3]);return s<1e3&&(s+=t),new Ye(o,i,s)}}function Pe(e){je(e),function(e){e.dd<1&&(e.mm===A.TISHREI&&(e.yy-=1),e.dd+=k(e.mm,e.yy),e.mm-=1,Pe(e));e.dd>k(e.mm,e.yy)&&(e.mm===A.ELUL&&(e.yy+=1),e.dd-=k(e.mm,e.yy),e.mm===_(e.yy)?e.mm=1:e.mm+=1,Pe(e));je(e)}(e)}function je(e){e.mm!==A.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=_(e.yy),e.yy-=1,Pe(e)):e.mm>_(e.yy)&&(e.mm-=_(e.yy),e.yy+=1,Pe(e)):(e.mm-=1,Pe(e)),delete e.rd}function Be(e,t,n){return new Ye(Ye.dayOnOrBefore(e,t.abs()+n))}var Fe={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"]}}},Ue={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 Machar Chodesh":["שַׁבָּת מָחָר חוֹדֶשׁ"],"Shabbat Nachamu":["שַׁבָּת נַחֲמוּ"],"Shabbat Parah":["שַׁבָּת פּרה"],"Shabbat Rosh Chodesh":["שַׁבָּת רֹאשׁ חוֹדֶשׁ"],"Shabbat Shekalim":["שַׁבָּת שְׁקָלִים"],"Shabbat Shuva":["שַׁבָּת שׁוּבָה"],"Shabbat Zachor":["שַׁבָּת זָכוֹר"],Shavuot:["שָׁבוּעוֹת"],"Shavuot I":["שָׁבוּעוֹת א׳"],"Shavuot II":["שָׁבוּעוֹת ב׳"],"Shmini Atzeret":["שְׁמִינִי עֲצֶרֶת"],"Shushan Purim":["שׁוּשָׁן פּוּרִים"],Sigd:["סיגד"],"Simchat Torah":["שִׂמְחַת תּוֹרָה"],Sukkot:["סוּכּוֹת"],"Sukkot I":["סוּכּוֹת א׳"],"Sukkot II":["סוּכּוֹת ב׳"],"Sukkot II (CH''M)":["סוּכּוֹת ב׳ (חוה״מ)"],"Sukkot III (CH''M)":["סוּכּוֹת ג׳ (חוה״מ)"],"Sukkot IV (CH''M)":["סוּכּוֹת ד׳ (חוה״מ)"],"Sukkot V (CH''M)":["סוּכּוֹת ה׳ (חוה״מ)"],"Sukkot VI (CH''M)":["סוּכּוֹת ו׳ (חוה״מ)"],"Sukkot VII (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit Esther":["תַּעֲנִית אֶסְתֵּר"],"Tish'a B'Av":["תִּשְׁעָה בְּאָב"],"Tu B'Av":["טוּ בְּאָב"],"Tu BiShvat":["טוּ בִּשְׁבָט"],"Tu B'Shvat":["טוּ בִּשְׁבָט"],"Tzom Gedaliah":["צוֹם גְּדַלְיָה"],"Tzom Tammuz":["צוֹם תָּמוּז"],"Yom HaAtzma'ut":["יוֹם הָעַצְמָאוּת"],"Yom HaShoah":["יוֹם הַשּׁוֹאָה"],"Yom HaZikaron":["יוֹם הַזִּכָּרוֹן"],"Yom Kippur":["יוֹם כִּפּוּר"],"Yom Yerushalayim":["יוֹם יְרוּשָׁלַיִם"],"Yom HaAliyah":["יוֹם הַעֲלִיָּה"],"Yom HaAliyah School Observance":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"Pesach I (on Shabbat)":["פֶּסַח יוֹם א׳ (בְּשַׁבָּת)"],"Pesach Chol ha-Moed Day 1":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם א׳"],"Pesach Chol ha-Moed Day 2":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳"],"Pesach Chol ha-Moed Day 3":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳"],"Pesach Chol ha-Moed Day 4":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ד׳"],"Pesach Chol ha-Moed Day 5":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ה׳"],"Pesach Shabbat Chol ha-Moed":["פֶּסַח שַׁבָּת חוֹל הַמּוֹעֵד"],"Shavuot II (on Shabbat)":["שָׁבוּעוֹת יוֹם ב׳ (בְּשַׁבָּת)"],"Rosh Hashana I (on Shabbat)":["רֹאשׁ הַשָּׁנָה יוֹם א׳ (בְּשַׁבָּת)"],"Yom Kippur (on Shabbat)":["יוֹם כִּפּוּר (בְּשַׁבָּת)"],"Yom Kippur (Mincha, Traditional)":["יוֹם כִּפּוּר מִנחָה"],"Yom Kippur (Mincha, Alternate)":["יוֹם כִּפּוּר מִנחָה"],"Sukkot I (on Shabbat)":["סוּכּוֹת יוֹם א׳ (בְּשַׁבָּת)"],"Sukkot Chol ha-Moed Day 1":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם א׳"],"Sukkot Chol ha-Moed Day 2":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ב׳"],"Sukkot Chol ha-Moed Day 3":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ג׳"],"Sukkot Chol ha-Moed Day 4":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ד׳"],"Sukkot Chol ha-Moed Day 5":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ה׳"],"Sukkot Shabbat Chol ha-Moed":["סוּכּוֹת שַׁבָּת חוֹל הַמּוֹעֵד"],"Sukkot Final Day (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Rosh Chodesh Adar":["רֹאשׁ חוֹדֶשׁ אַדָר"],"Rosh Chodesh Adar I":["רֹאשׁ חוֹדֶשׁ אַדָר א׳"],"Rosh Chodesh Adar II":["רֹאשׁ חוֹדֶשׁ אַדָר ב׳"],"Rosh Chodesh Av":["רֹאשׁ חוֹדֶשׁ אָב"],"Rosh Chodesh Cheshvan":["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"],"Rosh Chodesh Elul":["רֹאשׁ חוֹדֶשׁ אֱלוּל"],"Rosh Chodesh Iyyar":["רֹאשׁ חוֹדֶשׁ אִיָיר"],"Rosh Chodesh Kislev":["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"],"Rosh Chodesh Nisan":["רֹאשׁ חוֹדֶשׁ נִיסָן"],"Rosh Chodesh Sh'vat":["רֹאשׁ חוֹדֶשׁ שְׁבָט"],"Rosh Chodesh Sivan":["רֹאשׁ חוֹדֶשׁ סִיוָן"],"Rosh Chodesh Tamuz":["רֹאשׁ חוֹדֶשׁ תָּמוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דַּקּוֹת"],"Fast begins":["תחילת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["תִּשְׁעָה בְּאָב נִדחֶה"],"Shabbat Mevarchim Chodesh":["שַׁבָּת מְבָרְכִים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבָּת שִׁירָה"],"Chatzot HaLailah":["חֲצוֹת הַלַיְלָה"],"Alot haShachar":["עֲלוֹת הַשַּׁחַר"],Misheyakir:["מִשֶּׁיַּכִּיר"],"Misheyakir Machmir":["מִשֶּׁיַּכִּיר מַחמִיר"],Dawn:["דִּימְדּוּמֵי בּוֹקֵר"],Sunrise:["הַנֵץ הַחַמָּה"],"Kriat Shema, sof zeman":["סוֹף זְמַן קְרִיאַת שְׁמַע גר״א"],"Tefilah, sof zeman":["סוֹף זְמַן תְּפִלָּה גר״א"],"Kriat Shema, sof zeman (MGA)":["סוֹף זְמַן קְרִיאַת שְׁמַע מג״א"],"Tefilah, sof zeman (MGA)":["סוֹף זְמַן תְּפִלָּה מג״א"],"Chatzot hayom":["חֲצוֹת הַיּוֹם"],"Mincha Gedolah":["מִנְחָה גְּדוֹלָה"],"Mincha Ketanah":["מִנְחָה קְטַנָּה"],"Plag HaMincha":["פְּלַג הַמִּנְחָה"],Dusk:["דִּימְדּוּמֵי עֶרֶב"],Sunset:["שְׁקִיעָה"],"Nightfall - End of ordained fasts":["לַיְלָה - גמר תעניות דרבנן"],"Tzeit HaKochavim":["צֵאת הַכּוֹכָבִים"],Lovingkindness:["חֶֽסֶד"],Might:["גְבוּרָה"],Beauty:["תִּפאֶרֶת"],Eternity:["נֶּֽצַח"],Splendor:["הוֹד"],Foundation:["יְּסוֹד"],Majesty:["מַּלְכוּת"],day:["יוֹם"],"Chanukah Day 1":["חֲנוּכָּה יוֹם א׳"],"Chanukah Day 2":["חֲנוּכָּה יוֹם ב׳"],"Chanukah Day 3":["חֲנוּכָּה יוֹם ג׳"],"Chanukah Day 4":["חֲנוּכָּה יוֹם ד׳"],"Chanukah Day 5":["חֲנוּכָּה יוֹם ה׳"],"Chanukah Day 6":["חֲנוּכָּה יוֹם ו׳"],"Chanukah Day 7":["חֲנוּכָּה יוֹם ז׳"],"Chanukah Day 7 (on Rosh Chodesh)":["חֲנוּכָּה יוֹם ז׳ (רֹאשׁ חוֹדֶשׁ)"],"Chanukah Day 8":["חֲנוּכָּה יוֹם ח׳"],"Chanukah Day 1 (on Shabbat)":["חֲנוּכָּה יוֹם א׳ (בְּשַׁבָּת)"],"Chanukah Day 2 (on Shabbat)":["חֲנוּכָּה יוֹם ב׳ (בְּשַׁבָּת)"],"Chanukah Day 3 (on Shabbat)":["חֲנוּכָּה יוֹם ג׳ (בְּשַׁבָּת)"],"Chanukah Day 4 (on Shabbat)":["חֲנוּכָּה יוֹם ד׳ (בְּשַׁבָּת)"],"Chanukah Day 5 (on Shabbat)":["חֲנוּכָּה יוֹם ה׳ (בְּשַׁבָּת)"],"Chanukah Day 7 (on Shabbat)":["חֲנוּכָּה יוֹם ז׳ (בְּשַׁבָּת)"],"Chanukah Day 8 (on Shabbat)":["חֲנוּכָּה יוֹם ח׳ (בְּשַׁבָּת)"],"Shabbat Rosh Chodesh Chanukah":["שַׁבָּת רֹאשׁ חוֹדֶשׁ חֲנוּכָּה"],"Yom Kippur Katan":["יוֹם כִּפּוּר קָטָן"],"Family Day":["יוֹם הַמִּשׁפָּחָה"],"Yitzhak Rabin Memorial Day":["יוֹם הַזִּכָּרוֹן ליצחק רבין"],"Jabotinsky Day":["יוֹם ז׳בוטינסקי"],"Herzl Day":["יוֹם הרצל"],"Ben-Gurion Day":["יוֹם בן־גוריון"],"Hebrew Language Day":["יוֹם הַשָׂפָה הַעִברִית"],"Birkat Hachamah":["בִרְכַּת הַחַמָּה"],"Shushan Purim Katan":["שׁוּשָׁן פּוּרִים קָטָן"],"Purim Meshulash":["פּוּרִים מְשׁוּלָּשׁ"],"after sunset":["לְאַחַר הַשְׁקִיעָה"],Yerushalmi:["יְרוּשַׁלְמִי"],"Chag HaBanot":["חַג הַבָּנוֹת"],Joshua:["יְהוֹשׁוּעַ"],Judges:["שׁוֹפְטִים"],"I Samuel":["שְׁמוּאֵל רִאשׁוֹן"],"II Samuel":["שְׁמוּאֵל שֵׁנִי"],"I Kings":["מְלָכִים רִאשׁוֹן"],"II Kings":["מְלָכִים שֵׁנִי"],Isaiah:["יְשַׁעְיָהוּ"],Jeremiah:["יִרְמְיָהוּ"],Ezekiel:["יְחֶזְקֵאל"],Hosea:["הוֹשֵׁעַ"],Joel:["יוֹאֵל"],Amos:["עָמוּס"],Obadiah:["עוֹבַדְיָה"],Jonah:["יוֹנָה"],Micah:["מִיכָה"],Nachum:["נַחוּם"],Habakkuk:["חֲבַקּוּק"],Zephaniah:["צְפַנְיָה"],Haggai:["חַגַּי"],Zechariah:["זְכַרְיָה"],Malachi:["מַלְאָכִי"],Psalms:["תְּהִלִּים"],Proverbs:["מִשְׁלֵי"],Job:["אִיּוֹב"],"Song of Songs":["שִׁיר הַשִּׁירִים"],Ruth:["רוּת"],Lamentations:["אֵיכָה"],Ecclesiastes:["קֹהֶלֶת"],Esther:["אֶסְתֵּר"],Daniel:["דָּנִיֵּאל"],Ezra:["עֶזְרָא"],Nehemiah:["נְחֶמְיָה"],"I Chronicles":["דִברֵי הַיָמִים רִאשׁוֹן"],"II Chronicles":["דִברֵי הַיָמִים שֵׁנִי"],"Yom Kippur (Mincha)":["יוֹם כִּפּוּר מִנחָה"],"Tish'a B'Av (Mincha)":["תִּשְׁעָה בְּאָב מִנחָה"],"Asara B'Tevet (Mincha)":["עֲשָׂרָה בְּטֵבֵת מִנחָה"],"Ta'anit Bechorot (Mincha)":["תַּעֲנִית בְּכוֹרוֹת מִנחָה"],"Ta'anit Esther (Mincha)":["תַּעֲנִית אֶסְתֵּר מִנחָה"],"Tzom Gedaliah (Mincha)":["צוֹם גְּדַלְיָה מִנחָה"],"Tzom Tammuz (Mincha)":["צוֹם תָּמוּז מִנחָה"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"],"Pirkei Avot":["פִּרְקֵי אָבוֹת"]}}};Ne.addTranslations("he",Ue),Ne.addTranslations("h",Ue),Ne.addTranslations("ashkenazi",Fe),Ne.addTranslations("a",Fe);const xe=Ue.contexts[""],Ze={};for(const[e,t]of Object.entries(xe))Ze[e]=[Ne.hebrewStripNikkud(t[0])];const $e={headers:Ue.headers,contexts:{"":Ze}};Ne.addTranslations("he-x-NoNikud",$e);const Ve={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},ze=[[Ve.MAJOR_FAST,"holiday","major","fast"],[Ve.CHANUKAH_CANDLES,"holiday","major"],[Ve.HEBREW_DATE,"hebdate"],[Ve.MINOR_FAST,"holiday","fast"],[Ve.MINOR_HOLIDAY,"holiday","minor"],[Ve.MODERN_HOLIDAY,"holiday","modern"],[Ve.MOLAD,"molad"],[Ve.OMER_COUNT,"omer"],[Ve.PARSHA_HASHAVUA,"parashat"],[Ve.ROSH_CHODESH,"roshchodesh"],[Ve.SHABBAT_MEVARCHIM,"mevarchim"],[Ve.SPECIAL_SHABBAT,"holiday","shabbat"],[Ve.USER_EVENT,"user"]];class Ke{constructor(e,t,n=0,r){if(!Ye.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 Ne.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&Ve.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&Ve.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new Ke(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 ze){if(e&t[0])return t.slice(1)}return["unknown"]}}class Je extends Ke{constructor(e){super(e,e.toString(),Ve.HEBREW_DATE)}render(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:Ne.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=Ne.gettext(t.getMonthName(),e);return q(n)+" "+r}renderBrief(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:Ne.getLocaleName(),r=this.getDate();if(r.getMonth()===A.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 Ge="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},We=function(e){return e&&e.Math===Math&&e},qe=We("object"==typeof globalThis&&globalThis)||We("object"==typeof window&&window)||We("object"==typeof self&&self)||We("object"==typeof Ge&&Ge)||We("object"==typeof Ge&&Ge)||function(){return this}()||Function("return this")(),Xe={},Qe=function(e){try{return!!e()}catch(e){return!0}},et=!Qe((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),tt=!Qe((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),nt=tt,rt=Function.prototype.call,ot=nt?rt.bind(rt):function(){return rt.apply(rt,arguments)},at={},it={}.propertyIsEnumerable,st=Object.getOwnPropertyDescriptor,ct=st&&!it.call({1:2},1);at.f=ct?function(e){var t=st(this,e);return!!t&&t.enumerable}:it;var ut,ht,lt=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ft=tt,dt=Function.prototype,gt=dt.call,mt=ft&&dt.bind.bind(gt,gt),yt=ft?mt:function(e){return function(){return gt.apply(e,arguments)}},St=yt,pt=St({}.toString),wt=St("".slice),vt=Qe,At=function(e){return wt(pt(e),8,-1)},bt=Object,Tt=yt("".split),Mt=vt((function(){return!bt("z").propertyIsEnumerable(0)}))?function(e){return"String"===At(e)?Tt(e,""):bt(e)}:bt,It=function(e){return null==e},Et=It,Ot=TypeError,Nt=function(e){if(Et(e))throw new Ot("Can't call method on "+e);return e},Ct=Mt,Ht=Nt,Dt=function(e){return Ct(Ht(e))},_t="object"==typeof document&&document.all,kt=void 0===_t&&void 0!==_t?function(e){return"function"==typeof e||e===_t}:function(e){return"function"==typeof e},Lt=kt,Rt=function(e){return"object"==typeof e?null!==e:Lt(e)},Yt=qe,Pt=kt,jt=function(e,t){return arguments.length<2?(n=Yt[e],Pt(n)?n:void 0):Yt[e]&&Yt[e][t];var n},Bt=yt({}.isPrototypeOf),Ft=qe.navigator,Ut=Ft&&Ft.userAgent,xt=qe,Zt=Ut?String(Ut):"",$t=xt.process,Vt=xt.Deno,zt=$t&&$t.versions||Vt&&Vt.version,Kt=zt&&zt.v8;Kt&&(ht=(ut=Kt.split("."))[0]>0&&ut[0]<4?1:+(ut[0]+ut[1])),!ht&&Zt&&(!(ut=Zt.match(/Edge\/(\d+)/))||ut[1]>=74)&&(ut=Zt.match(/Chrome\/(\d+)/))&&(ht=+ut[1]);var Jt=ht,Gt=Qe,Wt=qe.String,qt=!!Object.getOwnPropertySymbols&&!Gt((function(){var e=Symbol("symbol detection");return!Wt(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Jt&&Jt<41})),Xt=qt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Qt=jt,en=kt,tn=Bt,nn=Object,rn=Xt?function(e){return"symbol"==typeof e}:function(e){var t=Qt("Symbol");return en(t)&&tn(t.prototype,nn(e))},on=String,an=kt,sn=function(e){try{return on(e)}catch(e){return"Object"}},cn=TypeError,un=function(e){if(an(e))return e;throw new cn(sn(e)+" is not a function")},hn=It,ln=ot,fn=kt,dn=Rt,gn=TypeError,mn={exports:{}},yn=qe,Sn=Object.defineProperty,pn=function(e,t){try{Sn(yn,e,{value:t,configurable:!0,writable:!0})}catch(n){yn[e]=t}return t},wn=qe,vn=pn,An="__core-js_shared__",bn=mn.exports=wn[An]||vn(An,{});(bn.versions||(bn.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Tn=mn.exports,Mn=Tn,In=function(e,t){return Mn[e]||(Mn[e]=t||{})},En=Nt,On=Object,Nn=function(e){return On(En(e))},Cn=yt({}.hasOwnProperty),Hn=Object.hasOwn||function(e,t){return Cn(Nn(e),t)},Dn=yt,_n=0,kn=Math.random(),Ln=Dn(1..toString),Rn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ln(++_n+kn,36)},Yn=In,Pn=Hn,jn=Rn,Bn=qt,Fn=Xt,Un=qe.Symbol,xn=Yn("wks"),Zn=Fn?Un.for||Un:Un&&Un.withoutSetter||jn,$n=function(e){return Pn(xn,e)||(xn[e]=Bn&&Pn(Un,e)?Un[e]:Zn("Symbol."+e)),xn[e]},Vn=ot,zn=Rt,Kn=rn,Jn=function(e,t){var n=e[t];return hn(n)?void 0:un(n)},Gn=function(e,t){var n,r;if("string"===t&&fn(n=e.toString)&&!dn(r=ln(n,e)))return r;if(fn(n=e.valueOf)&&!dn(r=ln(n,e)))return r;if("string"!==t&&fn(n=e.toString)&&!dn(r=ln(n,e)))return r;throw new gn("Can't convert object to primitive value")},Wn=TypeError,qn=$n("toPrimitive"),Xn=function(e,t){if(!zn(e)||Kn(e))return e;var n,r=Jn(e,qn);if(r){if(void 0===t&&(t="default"),n=Vn(r,e,t),!zn(n)||Kn(n))return n;throw new Wn("Can't convert object to primitive value")}return void 0===t&&(t="number"),Gn(e,t)},Qn=rn,er=function(e){var t=Xn(e,"string");return Qn(t)?t:t+""},tr=Rt,nr=qe.document,rr=tr(nr)&&tr(nr.createElement),or=function(e){return rr?nr.createElement(e):{}},ar=or,ir=!et&&!Qe((function(){return 7!==Object.defineProperty(ar("div"),"a",{get:function(){return 7}}).a})),sr=et,cr=ot,ur=at,hr=lt,lr=Dt,fr=er,dr=Hn,gr=ir,mr=Object.getOwnPropertyDescriptor;Xe.f=sr?mr:function(e,t){if(e=lr(e),t=fr(t),gr)try{return mr(e,t)}catch(e){}if(dr(e,t))return hr(!cr(ur.f,e,t),e[t])};var yr={},Sr=et&&Qe((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),pr=Rt,wr=String,vr=TypeError,Ar=function(e){if(pr(e))return e;throw new vr(wr(e)+" is not an object")},br=et,Tr=ir,Mr=Sr,Ir=Ar,Er=er,Or=TypeError,Nr=Object.defineProperty,Cr=Object.getOwnPropertyDescriptor,Hr="enumerable",Dr="configurable",_r="writable";yr.f=br?Mr?function(e,t,n){if(Ir(e),t=Er(t),Ir(n),"function"==typeof e&&"prototype"===t&&"value"in n&&_r in n&&!n[_r]){var r=Cr(e,t);r&&r[_r]&&(e[t]=n.value,n={configurable:Dr in n?n[Dr]:r[Dr],enumerable:Hr in n?n[Hr]:r[Hr],writable:!1})}return Nr(e,t,n)}:Nr:function(e,t,n){if(Ir(e),t=Er(t),Ir(n),Tr)try{return Nr(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Or("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var kr=yr,Lr=lt,Rr=et?function(e,t,n){return kr.f(e,t,Lr(1,n))}:function(e,t,n){return e[t]=n,e},Yr={exports:{}},Pr=et,jr=Hn,Br=Function.prototype,Fr=Pr&&Object.getOwnPropertyDescriptor,Ur=jr(Br,"name"),xr={EXISTS:Ur,PROPER:Ur&&"something"===function(){}.name,CONFIGURABLE:Ur&&(!Pr||Pr&&Fr(Br,"name").configurable)},Zr=kt,$r=Tn,Vr=yt(Function.toString);Zr($r.inspectSource)||($r.inspectSource=function(e){return Vr(e)});var zr,Kr,Jr,Gr=$r.inspectSource,Wr=kt,qr=qe.WeakMap,Xr=Wr(qr)&&/native code/.test(String(qr)),Qr=Rn,eo=In("keys"),to=function(e){return eo[e]||(eo[e]=Qr(e))},no={},ro=Xr,oo=qe,ao=Rt,io=Rr,so=Hn,co=Tn,uo=to,ho=no,lo="Object already initialized",fo=oo.TypeError,go=oo.WeakMap;if(ro||co.state){var mo=co.state||(co.state=new go);mo.get=mo.get,mo.has=mo.has,mo.set=mo.set,zr=function(e,t){if(mo.has(e))throw new fo(lo);return t.facade=e,mo.set(e,t),t},Kr=function(e){return mo.get(e)||{}},Jr=function(e){return mo.has(e)}}else{var yo=uo("state");ho[yo]=!0,zr=function(e,t){if(so(e,yo))throw new fo(lo);return t.facade=e,io(e,yo,t),t},Kr=function(e){return so(e,yo)?e[yo]:{}},Jr=function(e){return so(e,yo)}}var So={set:zr,get:Kr,has:Jr,enforce:function(e){return Jr(e)?Kr(e):zr(e,{})},getterFor:function(e){return function(t){var n;if(!ao(t)||(n=Kr(t)).type!==e)throw new fo("Incompatible receiver, "+e+" required");return n}}},po=yt,wo=Qe,vo=kt,Ao=Hn,bo=et,To=xr.CONFIGURABLE,Mo=Gr,Io=So.enforce,Eo=So.get,Oo=String,No=Object.defineProperty,Co=po("".slice),Ho=po("".replace),Do=po([].join),_o=bo&&!wo((function(){return 8!==No((function(){}),"length",{value:8}).length})),ko=String(String).split("String"),Lo=Yr.exports=function(e,t,n){"Symbol("===Co(Oo(t),0,7)&&(t="["+Ho(Oo(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Ao(e,"name")||To&&e.name!==t)&&(bo?No(e,"name",{value:t,configurable:!0}):e.name=t),_o&&n&&Ao(n,"arity")&&e.length!==n.arity&&No(e,"length",{value:n.arity});try{n&&Ao(n,"constructor")&&n.constructor?bo&&No(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=Io(e);return Ao(r,"source")||(r.source=Do(ko,"string"==typeof t?t:"")),e};Function.prototype.toString=Lo((function(){return vo(this)&&Eo(this).source||Mo(this)}),"toString");var Ro=Yr.exports,Yo=kt,Po=yr,jo=Ro,Bo=pn,Fo={},Uo=Math.ceil,xo=Math.floor,Zo=Math.trunc||function(e){var t=+e;return(t>0?xo:Uo)(t)},$o=Zo,Vo=function(e){var t=+e;return t!=t||0===t?0:$o(t)},zo=Vo,Ko=Math.max,Jo=Math.min,Go=Vo,Wo=Math.min,qo=function(e){var t=Go(e);return t>0?Wo(t,9007199254740991):0},Xo=Dt,Qo=function(e,t){var n=zo(e);return n<0?Ko(n+t,0):Jo(n,t)},ea=function(e){return qo(e.length)},ta=function(e){return function(t,n,r){var o=Xo(t),a=ea(o);if(0===a)return!e&&-1;var i,s=Qo(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},na={includes:ta(!0),indexOf:ta(!1)},ra=Hn,oa=Dt,aa=na.indexOf,ia=no,sa=yt([].push),ca=function(e,t){var n,r=oa(e),o=0,a=[];for(n in r)!ra(ia,n)&&ra(r,n)&&sa(a,n);for(;t.length>o;)ra(r,n=t[o++])&&(~aa(a,n)||sa(a,n));return a},ua=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ha=ca,la=ua.concat("length","prototype");Fo.f=Object.getOwnPropertyNames||function(e){return ha(e,la)};var fa={};fa.f=Object.getOwnPropertySymbols;var da=jt,ga=Fo,ma=fa,ya=Ar,Sa=yt([].concat),pa=da("Reflect","ownKeys")||function(e){var t=ga.f(ya(e)),n=ma.f;return n?Sa(t,n(e)):t},wa=Hn,va=pa,Aa=Xe,ba=yr,Ta=Qe,Ma=kt,Ia=/#|\.prototype\./,Ea=function(e,t){var n=Na[Oa(e)];return n===Ha||n!==Ca&&(Ma(t)?Ta(t):!!t)},Oa=Ea.normalize=function(e){return String(e).replace(Ia,".").toLowerCase()},Na=Ea.data={},Ca=Ea.NATIVE="N",Ha=Ea.POLYFILL="P",Da=Ea,_a=qe,ka=Xe.f,La=Rr,Ra=function(e,t,n,r){r||(r={});var o=r.enumerable,a=void 0!==r.name?r.name:t;if(Yo(n)&&jo(n,a,r),r.global)o?e[t]=n:Bo(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:Po.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},Ya=pn,Pa=function(e,t,n){for(var r=va(t),o=ba.f,a=Aa.f,i=0;i<r.length;i++){var s=r[i];wa(e,s)||n&&wa(n,s)||o(e,s,a(t,s))}},ja=Da,Ba={},Fa=ca,Ua=ua,xa=Object.keys||function(e){return Fa(e,Ua)},Za=et,$a=Sr,Va=yr,za=Ar,Ka=Dt,Ja=xa;Ba.f=Za&&!$a?Object.defineProperties:function(e,t){za(e);for(var n,r=Ka(t),o=Ja(t),a=o.length,i=0;a>i;)Va.f(e,n=o[i++],r[n]);return e};var Ga,Wa=jt("document","documentElement"),qa=Ar,Xa=Ba,Qa=ua,ei=no,ti=Wa,ni=or,ri="prototype",oi="script",ai=to("IE_PROTO"),ii=function(){},si=function(e){return"<"+oi+">"+e+"</"+oi+">"},ci=function(e){e.write(si("")),e.close();var t=e.parentWindow.Object;return e=null,t},ui=function(){try{Ga=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;ui="undefined"!=typeof document?document.domain&&Ga?ci(Ga):(t=ni("iframe"),n="java"+oi+":",t.style.display="none",ti.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(si("document.F=Object")),e.close(),e.F):ci(Ga);for(var r=Qa.length;r--;)delete ui[ri][Qa[r]];return ui()};ei[ai]=!0;var hi=Object.create||function(e,t){var n;return null!==e?(ii[ri]=qa(e),n=new ii,ii[ri]=null,n[ai]=e):n=ui(),void 0===t?n:Xa.f(n,t)},li=$n,fi=hi,di=yr.f,gi=li("unscopables"),mi=Array.prototype;void 0===mi[gi]&&di(mi,gi,{configurable:!0,value:fi(null)});var yi=na.includes,Si=function(e){mi[gi][e]=!0};function pi(e,t,n,r,o){return wi(t,vi(e,t),n,r,o)}function wi(e,t,n,r,o,a){const i=Ui(t,n,r);if(o&&t!==i)throw new RangeError(Jl(e,t,n,r,a));return i}function vi(e,t){const n=e[t];if(void 0===n)throw new TypeError(Wl(t));return n}function Ai(e){return null!==e&&/object|function/.test(typeof e)}function bi(e){const t=new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Map);return function(n){if(t.has(n))return t.get(n);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];const i=e(n,...o);return t.set(n,i),i}}function Ti(e){return Mi({name:e},1)}function Mi(e,t){return Ni((e=>({value:e,configurable:1,writable:!t})),e)}function Ii(e){return Ni((e=>({get:e,configurable:1})),e)}function Ei(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function Oi(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function Ni(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function Ci(e,t,n){const r={};for(let o=0;o<t.length;o++){const a=t[o];r[a]=e(a,o,n)}return r}function Hi(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function Di(e,t){const n={};for(const r of e)n[r]=t[r];return n}function _i(e,t){const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n}function ki(e){e={...e};const t=Object.keys(e);for(const n of t)void 0===e[n]&&delete e[n];return e}function Li(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function Ri(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function Yi(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 Pi(e){return e[0].toUpperCase()+e.substring(1)}function ji(e){return e.slice().sort()}function Bi(e,t){return String(t).padStart(e,"0")}function Fi(e,t){return Math.sign(e-t)}function Ui(e,t,n){return Math.min(Math.max(e,t),n)}function xi(e,t){return[Math.floor(e/t),Zi(e,t)]}function Zi(e,t){return(e%t+t)%t}function $i(e,t){return[Vi(e,t),zi(e,t)]}function Vi(e,t){return Math.trunc(e/t)||0}function zi(e,t){return e%t||0}function Ki(e){return.5===Math.abs(e%1)}function Ji(e,t,n){let r=0,o=0;for(let a=0;a<=t;a++){const t=e[n[a]],i=zf[a],s=Vf/i,[c,u]=$i(t,s);r+=u*i,o+=c}const[a,i]=$i(r,Vf);return[o+a,i]}function Gi(e,t,n){const r={};for(let o=t;o>=0;o--){const t=zf[o];r[n[o]]=Vi(e,t),e=zi(e,t)}return r}function Wi(e){if(void 0!==e)return Xi(e)}function qi(e){return os(Xi(e))}function Xi(e){return rs(pd(e))}function Qi(e){if(null==e)throw new TypeError("Cannot be null or undefined");return e}function es(e,t){if(null==t)throw new RangeError(Wl(e));return t}function ts(e){if(!Ai(e))throw new TypeError(Kl);return e}function ns(e,t){if(typeof t!==e)throw new TypeError(Gl(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t));return t}function rs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(!Number.isInteger(e))throw new RangeError(Ul(t,e));return e||0}function os(e){if(e<=0)throw new RangeError(xl(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",e));return e}function as(e){if("symbol"==typeof e)throw new TypeError(zl);return String(e)}function is(e,t){return Ai(e)?String(e):yd(e,t)}function ss(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(Vl(e));return e}function cs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if("bigint"==typeof e)throw new TypeError($l(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(Zl(t,e));return e}function us(e,t){return Math.trunc(cs(e,t))||0}function hs(e,t){return rs(cs(e,t),t)}function ls(e,t){return os(us(e,t),t)}function fs(e,t){let[n,r]=$i(t,Vf),o=e+n;const a=Math.sign(o);return a&&a===-Math.sign(r)&&(o-=a,r+=a*Vf),[o,r]}function ds(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return fs(e[0]+t[0]*n,e[1]+t[1]*n)}function gs(e,t){return fs(e[0],e[1]+t)}function ms(e,t){return ds(t,e,-1)}function ys(e,t){return Fi(e[0],t[0])||Fi(e[1],t[1])}function Ss(e,t,n){return-1===ys(e,t)||1===ys(e,n)}function ps(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=BigInt(Vf/t);return[Number(e/n),Number(e%n)*t]}function ws(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=Vf/t,[r,o]=$i(e,n);return[r,o*t]}function vs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,r]=e,o=Math.floor(r/t),a=Vf/t;return BigInt(n)*BigInt(a)+BigInt(o)}function As(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;const[r,o]=e,[a,i]=$i(o,t);return r*(Vf/t)+(a+(n?i/t:0))}function bs(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:xi;const[r,o]=e,[a,i]=n(o,t);return[r*(Vf/t)+a,i]}function Ts(e,t){const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function Ms(e){return pi(e,"isoYear",$d,Zd,1),e.isoYear===$d?pi(e,"isoMonth",4,12,1):e.isoYear===Zd&&pi(e,"isoMonth",1,9,1),e}function Is(e){return Es({...e,...Rd,isoHour:12}),e}function Es(e){const t=pi(e,"isoYear",$d,Zd,1),n=t===$d?1:t===Zd?-1:0;return n&&Os(ks({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function Os(e){if(!e||Ss(e,xd,Ud))throw new RangeError(bf);return e}function Ns(e){return Ji(e,5,Cd)[1]}function Cs(e){const[t,n]=xi(e,Vf);return[Gi(n,5,Cd),t]}function Hs(e){return Ds(e)[0]}function Ds(e){return bs(e,xf)}function _s(e){return Ys(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function ks(e){const t=_s(e);if(void 0!==t){const[n,r]=$i(t,jf);return[n,r*Uf+(e.isoMicrosecond||0)*Ff+(e.isoNanosecond||0)]}}function Ls(e,t){const[n,r]=Cs(Ns(e)-t);return Os(ks({...e,isoDay:e.isoDay+r,...n}))}function Rs(){return Ys(...arguments)/Bf}function Ys(){const[e,t]=Ps(...arguments),n=e.valueOf();if(!isNaN(n))return n-t*jf}function Ps(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;const s=e===$d?1:e===Zd?-1:0,c=new Date;return c.setUTCHours(r,o,a,i),c.setUTCFullYear(e,t-1,n+s),[c,s]}function js(e,t){let[n,r]=gs(e,t);r<0&&(r+=Vf,n-=1);const[o,a]=xi(r,Uf),[i,s]=xi(a,Ff);return Bs(n*jf+o,i,s)}function Bs(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)-Fd)/jf)*Math.sign(e),o=new Date(e-r*jf);return Oi(Dd,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+r,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,n])}function Fs(e){return[e.isoYear,e.isoMonth,e.isoDay]}function Us(){return Kd}function xs(e,t){switch(t){case 2:return $s(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function Zs(e){return $s(e)?366:365}function $s(e){return e%4==0&&(e%100!=0||e%400==0)}function Vs(e){const[t,n]=Ps(e.isoYear,e.isoMonth,e.isoDay);return Zi(t.getUTCDay()-n,7)||7}function zs(e){let{isoYear:t}=e;return t<1?["bce",1-t]:["ce",t]}function Ks(e){const t=_s(e);if(t<Jd)return zs(e);const n=Ts(nm(dd),t),{era:r,eraYear:o}=Vh(n,dd);return[r,o]}function Js(e){return Gs(e),Xs(e,1),e}function Gs(e){return qs(e,1),e}function Ws(e){return Li(Hd,e,qs(e))}function qs(e,t){const{isoYear:n}=e,r=pi(e,"isoMonth",1,Us(),t);return{isoYear:n,isoMonth:r,isoDay:pi(e,"isoDay",1,xs(n,r),t)}}function Xs(e,t){return Oi(Cd,[pi(e,"isoHour",0,23,t),pi(e,"isoMinute",0,59,t),pi(e,"isoSecond",0,59,t),pi(e,"isoMillisecond",0,999,t),pi(e,"isoMicrosecond",0,999,t),pi(e,"isoNanosecond",0,999,t)])}function Qs(e){return void 0===e?0:fg(ts(e))}function ec(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=lc(e);const n=dg(e),r=gg(e,t);return[fg(e),r,n]}function tc(e){return dg(lc(e))}function nc(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:9,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:4;t=lc(t);let i=hg(t,r,o),s=cc(t),c=pg(t,a);const u=ug(t,r,o,1);return null==i?i=Math.max(n,u):Sc(i,u),s=uc(s,u,1),e&&(c=(e=>e<4?(e+2)%4:e)(c)),[i,u,s,c]}function rc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=arguments.length>2?arguments[2]:void 0,r=cc(e=fc(e,Wd));const o=pg(e,7);let a=ug(e,t);return a=es(Wd,a),r=uc(r,a,void 0,n),[a,r,o]}function oc(e){return mg(lc(e))}function ac(e,t){return ic(lc(e),t)}function ic(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=hc(e);return[pg(e,4),...sc(ug(e,t),n)]}function sc(e,t){return null!=e?[zf[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function cc(e){const t=e[Xd];return void 0===t?1:us(t,Xd)}function uc(e,t,n,r){const o=r?Vf:zf[t+1];if(o){const n=zf[t];if(o%((e=wi(Xd,e,1,o/n-(r?0:1),1))*n))throw new RangeError(Gl(Xd,e))}else e=wi(Xd,e,1,n?10**9:1,1);return e}function hc(e){let t=e[Qd];if(void 0!==t){if("number"!=typeof t){if("auto"===as(t))return;throw new RangeError(Gl(Qd,t))}t=wi(Qd,Math.floor(t),0,9,1)}return t}function lc(e){return void 0===e?{}:ts(e)}function fc(e,t){return"string"==typeof e?{[t]:e}:ts(e)}function dc(e){if(void 0!==e){if(Ai(e))return Object.assign(Object.create(null),e);throw new TypeError(Kl)}}function gc(e,t){return e&&Object.assign(Object.create(null),e,{overflow:ng[t]})}function mc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:9,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,a=t[e];if(void 0===a)return o?r:void 0;if(a=as(a),"auto"===a)return o?r:null;let i=Yf[a];if(void 0===i&&(i=Id[a]),void 0===i)throw new RangeError(ef(e,a,Yf));return wi(e,i,r,n,1,Pf),i}function yc(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=n[e];if(void 0===o)return r;const a=as(o),i=t[a];if(void 0===i)throw new RangeError(ef(e,a,t));return i}function Sc(e,t){if(t>e)throw new RangeError(Nf)}function pc(e){return{branding:Ig,epochNanoseconds:e}}function wc(e,t,n){return{branding:Mg,calendar:n,timeZone:t,epochNanoseconds:e}}function vc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:bg,calendar:t,...Di(Ld,e)}}function Ac(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Ag,calendar:t,...Di(_d,e)}}function bc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:wg,calendar:t,...Di(_d,e)}}function Tc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:vg,calendar:t,...Di(_d,e)}}function Mc(e){return{branding:Tg,...Di(kd,e)}}function Ic(e){return{branding:Eg,sign:xu(e),...Di(Ad,e)}}function Ec(e){return bs(e.epochNanoseconds,Uf)[0]}function Oc(e){return e.epochNanoseconds}function Nc(e){return"string"==typeof e?e:yd(e.id)}function Cc(e,t){return e===t||Nc(e)===Nc(t)}function Hc(e,t){return As(Vu(e),zf[t],1)}function Dc(e,t,n,r,o,a,i){const s=vd[n],c={...t,[s]:t[s]+r},u=i(e,o,t),h=i(e,o,c);return[a(u),a(h)]}function _c(e,t,n){const r=As(ms(t,n));if(!r)throw new RangeError(df);return As(ms(t,e))/r}function kc(e,t,n,r){return Lc(e,Pc(t,n),r)}function Lc(e,t,n){const[r,o]=Rc(e,t,n);return Es({..._u(e,o),...r})}function Rc(e,t,n){return Cs($c(Ns(e),t,n))}function Yc(e){return $c(e,Zf,7)}function Pc(e,t){return zf[e]*t}function jc(e){const t=Bc(e);return[t,_u(t,1)]}function Bc(e){return Yd(6,e)}function Fc(e,t,n){const r=Math.min(Gu(e),6);return zu(Zc(Vu(e,r),t,n),r)}function Uc(e,t,n,r,o,a,i,s,c,u){if(0===r&&1===o)return e;const h=ju(r,s)?Pu(s)&&r<6&&n>=6?Kc:zc:Jc;let[l,f,d]=h(e,t,n,r,o,a,i,s,c,u);return d&&7!==r&&(l=((e,t,n,r,o,a,i,s)=>{const c=xu(e);for(let u=r+1;u<=n;u++){if(7===u&&7!==n)continue;const r=Nd(u,e);r[vd[u]]+=c;const h=As(ms(i(s(o,a,r)),t));if(h&&Math.sign(h)!==c)break;e=r}return e})(l,f,n,Math.max(6,r),i,s,c,u)),l}function xc(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/Vf)(e);return[$c(t,n,r),0]}return Zc(e,Pc(t,n),r,o)}function Zc(e,t,n,r){let[o,a]=e;r&&a<0&&(a+=Vf,o-=1);const[i,s]=xi($c(a,t,n),Vf);return fs(o+i,s)}function $c(e,t,n){return Vc(e/t,n)*t}function Vc(e,t){return Og[t](e)}function zc(e,t,n,r,o,a){const i=xu(e),s=Vu(e),c=xc(s,r,o,a),u=ms(s,c),h=Math.sign(c[0]-s[0])===i,l=zu(c,Math.min(n,6));return[{...e,...l},ds(t,u),h]}function Kc(e,t,n,r,o,a,i,s,c,u){const h=xu(e),l=As(Vu(e,5)),f=Pc(r,o);let d=$c(l,f,a);const[g,m]=Dc(i,{...e,...Od},6,h,s,c,u),y=d-As(ms(g,m));let S=0;y&&Math.sign(y)!==h?t=gs(g,d):(S+=h,d=$c(y,f,a),t=gs(m,d));const p=Ku(d);return[{...e,...p,days:e.days+S},t,Boolean(S)]}function Jc(e,t,n,r,o,a,i,s,c,u){const h=xu(e),l=vd[r],f=Nd(r,e);7===r&&(e={...e,weeks:e.weeks+Math.trunc(e.days/7)});const d=Vi(e[l],o)*o;f[l]=d;const[g,m]=Dc(i,f,r,o*h,s,c,u),y=d+_c(t,g,m)*h*o,S=$c(y,o,a),p=Math.sign(S-y)===h;return f[l]=S,[f,p?m:g,p]}function Gc(e,t,n,r){const[o,a,i,s]=(e=>{const t=ic(e=lc(e));return[e.timeZone,...t]})(r),c=void 0!==o;return((e,t,n,r,o,a)=>{n=Zc(n,o,r,1);const i=t.getOffsetNanosecondsFor(n);return au(js(n,i),a)+(e?hu(Yc(i)):"Z")})(c,t(c?e(o):Ng),n.epochNanoseconds,a,i,s)}function Wc(e,t,n){const[r,o,a,i,s,c]=(e=>{e=lc(e);const t=mg(e),n=hc(e),r=Sg(e),o=pg(e,4),a=ug(e,4);return[t,yg(e),r,o,...sc(a,n)]})(n);return((e,t,n,r,o,a,i,s,c,u)=>{r=Zc(r,c,s,1);const h=e(n).getOffsetNanosecondsFor(r);return au(js(r,h),u)+hu(Yc(h),i)+((e,t)=>1!==t?"["+(2===t?"!":"")+Nc(e)+"]":"")(n,a)+lu(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,a,i,s,c)}function qc(e,t){const[n,r,o,a]=(e=>(e=lc(e),[mg(e),...ic(e)]))(t);return i=e.calendar,s=n,c=a,au(Lc(e,o,r),c)+lu(i,s);var i,s,c}function Xc(e,t){return n=e.calendar,r=e,o=oc(t),iu(r)+lu(n,o);var n,r,o}function Qc(e,t){return ru(e.calendar,su,e,oc(t))}function eu(e,t){return ru(e.calendar,cu,e,oc(t))}function tu(e,t){const[n,r,o]=ac(t);return a=o,uu(Rc(e,r,n)[0],a);var a}function nu(e,t){const[n,r,o]=ac(t,3);return r>1&&(e={...e,...Fc(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?Uu(e):e,{hours:o,minutes:a}=r,[i,s]=bs(Vu(r,3),xf,$i);$u(i);const c=du(s,t),u=t>=0||!n||c;return(n<0?"-":"")+"P"+ou({Y:mu(r.years),M:mu(r.months),W:mu(r.weeks),D:mu(r.days)})+(o||a||i||u?"T"+ou({H:mu(o),M:mu(a),S:mu(i,u)+c}):"")})(e,o)}function ru(e,t,n,r){const o=Nc(e),a=r>1||0===r&&o!==ld;return 1===r?o===ld?t(n):iu(n):a?iu(n)+fu(o,2===r):t(n)}function ou(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function au(e,t){return iu(e)+"T"+uu(e,t)}function iu(e){return su(e)+"-"+Rf(e.isoDay)}function su(e){const{isoYear:t}=e;return(t<0||t>9999?gu(t)+Bi(6,Math.abs(t)):Bi(4,t))+"-"+Rf(e.isoMonth)}function cu(e){return Rf(e.isoMonth)+"-"+Rf(e.isoDay)}function uu(e,t){const n=[Rf(e.isoHour),Rf(e.isoMinute)];return-1!==t&&n.push(Rf(e.isoSecond)+((e,t,n,r)=>du(e*Uf+t*Ff+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function hu(e){if(1===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0))return"";const[t,n]=xi(Math.abs(e),$f),[r,o]=xi(n,Zf),[a,i]=xi(o,xf);return gu(e)+Rf(t)+":"+Rf(r)+(a||i?":"+Rf(a)+du(i):"")}function lu(e,t){if(1!==t){const n=Nc(e);if(t>1||0===t&&n!==ld)return fu(n,2===t)}return""}function fu(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function du(e,t){let n=Bi(9,e);return n=void 0===t?n.replace(_g,""):n.slice(0,t),n?"."+n:""}function gu(e){return e<0?"-":"+"}function mu(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function yu(e,t){const{epochNanoseconds:n}=e,r=(t.getOffsetNanosecondsFor?t:t(e.timeZone)).getOffsetNanosecondsFor(n),o=js(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function Su(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0;if(void 0!==n&&1===r&&(1===r||i))return Ls(t,n);const s=e.getPossibleInstantsFor(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=ks(t);r&&(n=Yc(n));for(const t of e){let e=As(ms(t,o));if(r&&(e=Yc(e)),e===n)return t}})(s,t,n,a);if(void 0!==e)return e;if(0===r)throw new RangeError(vf)}return i?ks(t):pu(e,t,o,s)}function pu(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(Af);if(r.length)return r[3===n?1:0];const o=ks(t),a=((e,t)=>{const n=e.getOffsetNanosecondsFor(gs(t,-Vf));return vu(e.getOffsetNanosecondsFor(gs(t,Vf))-n)})(e,o),i=a*(2===n?-1:1);return(r=e.getPossibleInstantsFor(js(o,i)))[2===n?0:r.length-1]}function wu(e){if(Math.abs(e)>=Vf)throw new RangeError(pf);return e}function vu(e){if(e>Vf)throw new RangeError(wf);return e}function Au(e,t,n){return pc(Os(ds(t.epochNanoseconds,(e=>{if(Ju(e))throw new RangeError(Ef);return Vu(e,5)})(e?Uu(n):n))))}function bu(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Object.create(null);const i=t(r.timeZone),s=e(r.calendar);return{...r,...Ou(i,s,r,n?Uu(o):o,a)}}function Tu(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const{calendar:a}=n;return vc(Nu(e(a),n,t?Uu(r):r,o),a)}function Mu(e,t,n,r,o){const{calendar:a}=n;return Ac(Cu(e(a),n,t?Uu(r):r,o),a)}function Iu(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const a=n.calendar,i=e(a);let s=Hu(i,n);t&&(r=Fu(r)),r.sign<0&&(s=i.dateAdd(s,{...Ed,months:1}),s=_u(s,-1));const c=i.dateAdd(s,r,o);return bc(Hu(i,c),a)}function Eu(e,t,n){return Mc(Du(t,e?Uu(n):n)[0])}function Ou(e,t,n,r,o){const a=Vu(r,5);let i=n.epochNanoseconds;if(Ju(r)){const s=kg(n,e);i=ds(pu(e,{...Cu(t,s,{...r,...Od},o),...Di(Cd,s)}),a)}else i=ds(i,a),Qs(o);return{epochNanoseconds:Os(i)}}function Nu(e,t,n,r){const[o,a]=Du(t,n);return Es({...Cu(e,t,{...n,...Od,days:n.days+a},r),...o})}function Cu(e,t,n,r){if(n.years||n.months||n.weeks)return e.dateAdd(t,n,r);Qs(r);const o=n.days+Vu(n,5)[0];return o?Is(_u(t,o)):t}function Hu(e,t){return _u(t,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)-e.day(t))}function Du(e,t){const[n,r]=Vu(t,5),[o,a]=Cs(Ns(e)+r);return[o,n+a]}function _u(e,t){return t?{...e,...Bs(_s(e)+t*jf)}:e}function ku(e,t,n){const r=e(n.calendar);return Pu(n)?[n,r,t(n.timeZone)]:[{...n,...Rd},r]}function Lu(e){return e?Oc:ks}function Ru(e){return e?Yi(Ou,e):Nu}function Yu(e){return e?Yi(_h,e):kh}function Pu(e){return e&&e.epochNanoseconds}function ju(e,t){return e<=6-(Pu(t)?1:0)}function Bu(e,t,n,r,o,a,i){const s=e(lc(i).relativeTo),c=Math.max(Gu(o),Gu(a));if(ju(c,s))return Ic(Zu(((e,t,n,r)=>{const o=ds(Vu(e),Vu(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(bf);return{...Ed,...zu(o,n)}})(o,a,c,r)));if(!s)throw new RangeError(If);r&&(a=Uu(a));const[u,h,l]=ku(t,n,s),f=Ru(l),d=Yu(l),g=f(h,u,o);return Ic(d(h,u,f(h,g,a),c))}function Fu(e){return Ic(Uu(e))}function Uu(e){const t={};for(const n of vd)t[n]=-1*e[n]||0;return t}function xu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vd,n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(Mf);n=t}}return n}function Zu(e){for(const t of Md)wi(t,e[t],-Lg,Lg,1);return $u(As(Vu(e),xf)),e}function $u(e){if(!Number.isSafeInteger(e))throw new RangeError(Tf)}function Vu(e){return Ji(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,vd)}function zu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const[n,r]=e,o=Gi(r,t,vd);if(o[vd[t]]+=n*(Vf/zf[t]),!Number.isFinite(o[vd[t]]))throw new RangeError(bf);return o}function Ku(e){return Gi(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,vd)}function Ju(e){return Boolean(xu(e,Td))}function Gu(e){let t=9;for(;t>0&&!e[vd[t]];t--);return t}function Wu(e,t){return[e,t]}function qu(e){const t=Math.floor(e/Cg)*Cg;return[t,t+Cg]}function Xu(e){const t=ch(e);if(void 0===t)throw new RangeError(Cf(e));return t}function Qu(e){const t=ah(yd(e));if(!t||t.m)throw new RangeError(Cf(e));return Ac(t.p?nh(t):rh(t))}function eh(e){if(e.calendar!==ld)throw new RangeError(Hf(e.calendar))}function th(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=yh(e.timeZone),a=Rg(o);return wc(Su(a,Js(e),t,n,r,!a.v,e.m),o,el(e.calendar))}function nh(e){return oh(Es(Js(e)))}function rh(e){return oh(Is(Gs(e)))}function oh(e){return{...e,calendar:el(e.calendar)}}function ah(e){const t=Jg.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:uh(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...hh(e.slice(5)),...lh(e[16]),p:Boolean(e[6]),m:n,offset:n?void 0:t}})(t):void 0}function ih(e){const t=zg.exec(e);return t?(e=>({isoYear:uh(e),isoMonth:parseInt(e[4]),isoDay:1,...lh(e[5])}))(t):void 0}function sh(e){const t=Kg.exec(e);return t?(e=>({isoYear:zd,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...lh(e[3])}))(t):void 0}function ch(e,t){const n=Wg.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(Hf(n));return wu((mh(e[2])*$f+mh(e[3])*Zf+mh(e[4])*xf+fh(e[5]||""))*gh(e[1]))})(n,t):void 0}function uh(e){const t=gh(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(Hf(-0));return t*n}function hh(e){const t=mh(e[3]);return{...Cs(fh(e[4]||""))[0],isoHour:mh(e[1]),isoMinute:mh(e[2]),isoSecond:60===t?59:t}}function lh(e){let t,n;const r=[];if(e.replace(qg,((e,o,a)=>{const i=Boolean(o),[s,c]=a.split("=").reverse();if(c){if("u-ca"===c)r.push(s),t||(t=i);else if(i||/[A-Z]/.test(c))throw new RangeError(Hf(e))}else{if(n)throw new RangeError(Hf(e));n=s}return""})),r.length>1&&t)throw new RangeError(Hf(e));return{timeZone:n,calendar:r[0]||ld}}function fh(e){return parseInt(e.padEnd(9,"0"))}function dh(e){return new RegExp(`^${e}$`,"i")}function gh(e){return e&&"+"!==e?-1:1}function mh(e){return void 0===e?0:parseInt(e)}function yh(e){const t=ph(e);return"number"==typeof t?hu(t):t?(e=>{if(em.test(e))throw new RangeError(Sf);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?Pi(e).replace(/island|noronha|murdo|rivadavia|urville/,Pi):e)))).join("/")})(e):Ng}function Sh(e){const t=ph(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:Ng}function ph(e){const t=ch(e=e.toUpperCase(),1);return void 0!==t?t:e!==Ng?Qg(e):void 0}function wh(e,t){return ys(e.epochNanoseconds,t.epochNanoseconds)}function vh(e,t){return ys(e.epochNanoseconds,t.epochNanoseconds)}function Ah(e,t){return bh(e,t)||Th(e,t)}function bh(e,t){return Fi(_s(e),_s(t))}function Th(e,t){return Fi(Ns(e),Ns(t))}function Mh(e,t){if(e===t)return 1;const n=Nc(e),r=Nc(t);if(n===r)return 1;try{return Sh(n)===Sh(r)}catch(e){}}function Ih(e,t,n,r){const o=nc(e,dc(r),3,5),a=Yh(t.epochNanoseconds,n.epochNanoseconds,...o);return Ic(e?Uu(a):a)}function Eh(e,t,n,r,o,a){const i=Uh(r.calendar,o.calendar),s=dc(a),[c,u,h,l]=nc(n,s,5),f=r.epochNanoseconds,d=o.epochNanoseconds,g=ys(d,f);let m;if(g)if(c<6)m=Yh(f,d,c,u,h,l);else{const n=t(((e,t)=>{if(!Mh(e,t))throw new RangeError(yf);return e})(r.timeZone,o.timeZone)),a=e(i);m=Lh(a,n,r,o,g,c,s),m=Uc(m,d,c,u,h,l,a,r,Oc,Yi(Ou,n))}else m=Ed;return Ic(n?Uu(m):m)}function Oh(e,t,n,r,o){const a=Uh(n.calendar,r.calendar),i=dc(o),[s,c,u,h]=nc(t,i,6),l=ks(n),f=ks(r),d=ys(f,l);let g;if(d)if(s<=6)g=Yh(l,f,s,c,u,h);else{const t=e(a);g=Rh(t,n,r,d,s,i),g=Uc(g,f,s,c,u,h,t,n,ks,Nu)}else g=Ed;return Ic(t?Uu(g):g)}function Nh(e,t,n,r,o){const a=Uh(n.calendar,r.calendar),i=dc(o);return Hh(t,(()=>e(a)),n,r,...nc(t,i,6,9,6),i)}function Ch(e,t,n,r,o){const a=Uh(n.calendar,r.calendar),i=dc(o),s=nc(t,i,9,9,8),c=e(a);return Hh(t,(()=>c),Hu(c,n),Hu(c,r),...s,i)}function Hh(e,t,n,r,o,a,i,s,c){const u=ks(n),h=ks(r);let l;if(ys(h,u))if(6===o)l=Yh(u,h,o,a,i,s);else{const e=t();l=e.dateUntil(n,r,o,c),6===a&&1===i||(l=Uc(l,h,o,a,i,s,e,n,ks,Cu))}else l=Ed;return Ic(e?Uu(l):l)}function Dh(e,t,n,r){const o=dc(r),[a,i,s,c]=nc(e,o,5,5),u=$c(Fh(t,n),Pc(i,s),c),h={...Ed,...Ku(u,a)};return Ic(e?Uu(h):h)}function _h(e,t,n,r,o,a){const i=ys(r.epochNanoseconds,n.epochNanoseconds);return i?o<6?Ph(n.epochNanoseconds,r.epochNanoseconds,o):Lh(t,e,n,r,i,o,a):Ed}function kh(e,t,n,r,o){const a=ks(t),i=ks(n),s=ys(i,a);return s?r<=6?Ph(a,i,r):Rh(e,t,n,s,r,o):Ed}function Lh(e,t,n,r,o,a,i){const[s,c,u]=((e,t,n,r)=>{function o(){return l={..._u(s,u++*-r),...i},f=pu(e,l),ys(c,f)===-r}const a=kg(t,e),i=Di(Cd,a),s=kg(n,e),c=n.epochNanoseconds;let u=0;const h=Fh(a,s);let l,f;if(Math.sign(h)===-r&&u++,o()&&(-1===r||o()))throw new RangeError(df);const d=As(ms(f,c));return[a,l,d]})(t,n,r,o);var h,l;return{...6===a?(h=s,l=c,{...Ed,days:jh(h,l)}):e.dateUntil(s,c,a,i),...Ku(u)}}function Rh(e,t,n,r,o,a){const[i,s,c]=((e,t,n)=>{let r=t,o=Fh(e,t);return Math.sign(o)===-n&&(r=_u(t,-n),o+=Vf*n),[e,r,o]})(t,n,r);return{...e.dateUntil(i,s,o,a),...Ku(c)}}function Yh(e,t,n,r,o,a){return{...Ed,...zu(xc(ms(e,t),r,o,a),n)}}function Ph(e,t,n){return{...Ed,...zu(ms(e,t),n)}}function jh(e,t){return Bh(_s(e),_s(t))}function Bh(e,t){return Math.trunc((t-e)/jf)}function Fh(e,t){return Ns(t)-Ns(e)}function Uh(e,t){if(!Cc(e,t))throw new RangeError(gf);return e}function xh(e){function t(e){return((e,t)=>({...Vh(e,t),F:e.month,day:parseInt(e.day)}))(Ts(n,e),r)}const n=nm(e),r=tl(e);return{id:e,O:Zh(t),B:$h(t)}}function Zh(e){return bi((t=>{const n=_s(t);return e(n)}),WeakMap)}function $h(e){const t=e(0).year-Vd;return bi((n=>{let r,o=Ys(n-t);const a=[],i=[];do{o+=400*jf}while((r=e(o)).year<=n);do{o+=(1-r.day)*jf,r.year===n&&(a.push(o),i.push(r.F)),o-=jf}while((r=e(o)).year>=n);return{k:a.reverse(),C:kf(i.reverse())}}))}function Vh(e,t){let n,r,o=zh(e);if(e.era){const a=gd[t];void 0!==a&&(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=cl(r,a[n]||0))}return{era:n,eraYear:r,year:o}}function zh(e){return parseInt(e.relatedYear||e.year)}function Kh(e){const{year:t,F:n,day:r}=this.O(e),{C:o}=this.B(t);return[t,o[n]+1,r]}function Jh(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)*jf}function Gh(e){const t=Qh(this,e),n=Qh(this,e-1),r=t.length;if(r>n.length){const e=hl(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function Wh(e){return Bh(Jh.call(this,e),Jh.call(this,e+1))}function qh(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),Bh(n[t-1],o[r-1])}function Xh(e){return this.B(e).k.length}function Qh(e,t){return Object.keys(e.B(t).C)}function el(e){if((e=e.toLowerCase())!==ld&&e!==fd&&tl(e)!==tl(nm(e).resolvedOptions().calendar))throw new RangeError(mf(e));return e}function tl(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function nl(e){return this.R(e)[0]}function rl(e){return this.R(e)[1]}function ol(e){const[t]=this.h(e);return Bh(this.q(t),_s(e))+1}function al(e){const t=rm.exec(e);if(!t)throw new RangeError(cf(e));return[parseInt(t[1]),Boolean(t[2])]}function il(e,t,n){return e+(t||n&&e>=n?1:0)}function sl(e,t){return e-(t&&e>=t?1:0)}function cl(e,t){return(t+e)*(Math.sign(t)||1)||0}function ul(e){return gd[ll(e)]}function hl(e){return md[ll(e)]}function ll(e){return tl(e.id||ld)}function fl(e,t,n,r){const o=yl(n,r,sd,[],Xf);if(void 0!==o.timeZone){const r=n.dateFromFields(o),a=pl(o),i=e(o.timeZone);return{epochNanoseconds:Su(t(i),{...r,...a},void 0!==o.offset?Xu(o.offset):void 0),timeZone:i}}return{...n.dateFromFields(o),...Rd}}function dl(e,t,n){const r=yl(e,t,sd,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]);return e.dateFromFields(r,n)}function gl(e,t,n,r){const o=yl(e,t,ad,r);return e.yearMonthFromFields(o,n)}function ml(e,t,n,r){const o=yl(e,n,sd,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=zd),e.monthDayFromFields(o,r)}function yl(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 Sl(t,[...e.fields(n),...o].sort(),r)}function Sl(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:!n;const o={};let a,i=0;for(const r of t){if(r===a)throw new RangeError(Xl(r));if("constructor"===r||"__proto__"===r)throw new RangeError(ql(r));let t=e[r];if(void 0!==t)i=1,sm[r]&&(t=sm[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(Wl(r));o[r]=hd[r]}a=r}if(r&&!i)throw new TypeError(Ql(t));return o}function pl(e,t){return Xs(cm({...hd,...e}),t)}function wl(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];const i=[...e.fields(r),...o].sort();let s=Sl(t,i,a);const c=Sl(n,i);return s=e.mergeFields(s,c),Sl(s,i,[])}function vl(e,t){const n=yl(e,t,ud);return e.monthDayFromFields(n)}function Al(e,t,n){const r=yl(e,t,id);return e.yearMonthFromFields(r,n)}function bl(e,t,n,r,o){t=Di(n=e.fields(n),t),r=Sl(r,o=e.fields(o),[]);let a=e.mergeFields(t,r);return a=Sl(a,[...n,...o].sort(),[]),e.dateFromFields(a)}function Tl(e,t){let{era:n,eraYear:r,year:o}=t;const a=ul(e);if(void 0!==n||void 0!==r){if(void 0===n||void 0===r)throw new TypeError(rf);if(!a)throw new RangeError(nf);const e=a[n];if(void 0===e)throw new RangeError(af(n));const t=cl(r,e);if(void 0!==o&&o!==t)throw new RangeError(of);o=t}else if(void 0===o)throw new TypeError(sf(a));return o}function Ml(e,t,n,r){let{month:o,monthCode:a}=t;if(void 0!==a){const t=((e,t,n,r)=>{const o=e.U(n),[a,i]=al(t);let s=il(a,i,o);if(i){const t=hl(e);if(void 0===t)throw new RangeError(ff);if(t>0){if(s>t)throw new RangeError(ff);if(void 0===o){if(1===r)throw new RangeError(ff);s--}}else{if(s!==-t)throw new RangeError(ff);if(void 0===o&&1===r)throw new RangeError(ff)}}return s})(e,a,n,r);if(void 0!==o&&o!==t)throw new RangeError(uf);o=t,r=1}else if(void 0===o)throw new TypeError(hf);return wi("month",o,1,e.L(n),r)}function Il(e,t,n,r,o){return pi(t,"day",1,e.j(r,n),o)}function El(e,t,n,r){let o=0;const a=[];for(const e of n)void 0!==t[e]?o=1:a.push(e);if(Object.assign(e,t),o)for(const t of r||a)delete e[t]}function Ol(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ld;return wc(e.epochNanoseconds,t,n)}function Nl(e,t){return vc(kg(t,e))}function Cl(e,t){return Ac(kg(t,e))}function Hl(e,t){return Mc(kg(t,e))}function Dl(e,t){return{...e,calendar:t}}function _l(e,t){if(e===t)return e;const n=Nc(e),r=Nc(t);if(n===r||n===ld)return t;if(r===ld)return e;throw new RangeError(gf)}function kl(e,t){return n=>n===ld?e:n===fd||n===dd?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),tm(n))}function Ll(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=_i(r,o),e)||Object.assign(o,t),n&&(o.timeZone=Ng,["full","long"].includes(o.timeStyle)&&(o.timeStyle="medium")),o)}function Rl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Yl;const[n,,,r]=e;return function(o){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pm;for(var i=arguments.length,s=new Array(i>2?i-2:0),c=2;c<i;c++)s[c-2]=arguments[c];const u=t(r&&r(...s),o,a,n),h=u.resolvedOptions();return[u,...Pl(e,h,s)]}}function Yl(e,t,n,r){if(n=r(n),e){if(void 0!==n.timeZone)throw new TypeError(_f);n.timeZone=e}return new Pd(t,n)}function Pl(e,t,n){const[,r,o]=e;return n.map((e=>(e.calendar&&((e,t,n)=>{if((n||e!==ld)&&e!==t)throw new RangeError(gf)})(Nc(e.calendar),t.calendar,o),r(e,t))))}function jl(e){const t=Bl();return js(t,e.getOffsetNanosecondsFor(t))}function Bl(){return ws(Date.now(),Uf)}function Fl(){return Vm||(Vm=(new Pd).resolvedOptions().timeZone)}(function(e,t){var n,r,o,a,i,s=e.target,c=e.global,u=e.stat;if(n=c?_a:u?_a[s]||Ya(s,{}):_a[s]&&_a[s].prototype)for(r in t){if(a=t[r],o=e.dontCallGetSet?(i=ka(n,r))&&i.value:n[r],!ja(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;Pa(a,o)}(e.sham||o&&o.sham)&&La(a,"sham",!0),Ra(n,r,a,e)}})({target:"Array",proto:!0,forced:Qe((function(){return!Array(1).includes()}))},{includes:function(e){return yi(this,e,arguments.length>1?arguments[1]:void 0)}}),Si("includes");const Ul=(e,t)=>`Non-integer ${e}: ${t}`,xl=(e,t)=>`Non-positive ${e}: ${t}`,Zl=(e,t)=>`Non-finite ${e}: ${t}`,$l=e=>`Cannot convert bigint to ${e}`,Vl=e=>`Invalid bigint: ${e}`,zl="Cannot convert Symbol to string",Kl="Invalid object",Jl=(e,t,n,r,o)=>o?Jl(e,o[t],o[n],o[r]):Gl(e,t)+`; must be between ${n}-${r}`,Gl=(e,t)=>`Invalid ${e}: ${t}`,Wl=e=>`Missing ${e}`,ql=e=>`Invalid field ${e}`,Xl=e=>`Duplicate field ${e}`,Ql=e=>"No valid fields: "+e.join(),ef=(e,t,n)=>Gl(e,t)+"; must be "+Object.keys(n).join(),tf="Invalid calling context",nf="Forbidden era/eraYear",rf="Mismatching era/eraYear",of="Mismatching year/eraYear",af=e=>`Invalid era: ${e}`,sf=e=>"Missing year"+(e?"/era/eraYear":""),cf=e=>`Invalid monthCode: ${e}`,uf="Mismatching month/monthCode",hf="Missing month/monthCode",lf="Cannot guess year",ff="Invalid leap month",df="Invalid protocol results",gf="Mismatching Calendars",mf=e=>`Invalid Calendar: ${e}`,yf="Mismatching TimeZones",Sf="Forbidden ICU TimeZone",pf="Out-of-bounds offset",wf="Out-of-bounds TimeZone gap",vf="Invalid TimeZone offset",Af="Ambiguous offset",bf="Out-of-bounds date",Tf="Out-of-bounds duration",Mf="Cannot mix duration signs",If="Missing relativeTo",Ef="Cannot use large units",Of="Required smallestUnit or largestUnit",Nf="smallestUnit > largestUnit",Cf=e=>`Cannot parse: ${e}`,Hf=e=>`Invalid substring: ${e}`,Df=e=>`Cannot format ${e}`,_f="Cannot specify TimeZone",kf=Yi(Ci,((e,t)=>t)),Lf=Yi(Ci,((e,t,n)=>n)),Rf=Yi(Bi,2),Yf={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},Pf=Object.keys(Yf),jf=864e5,Bf=1e3,Ff=1e3,Uf=1e6,xf=1e9,Zf=6e10,$f=36e11,Vf=864e11,zf=[1,Ff,Uf,xf,Zf,$f,Vf],Kf=Pf.slice(0,6),Jf=ji(Kf),Gf=["offset"],Wf=["timeZone"],qf=Kf.concat(Gf),Xf=qf.concat(Wf),Qf=["era","eraYear"],ed=Qf.concat(["year"]),td=["year"],nd=["monthCode"],rd=["month"].concat(nd),od=["day"],ad=rd.concat(td),id=nd.concat(td),sd=od.concat(ad),cd=od.concat(rd),ud=od.concat(nd),hd=Lf(Kf,0),ld="iso8601",fd="gregory",dd="japanese",gd={[fd]:{bce:-1,ce:0},[dd]:{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}},md={chinese:13,dangi:13,hebrew:-6},yd=Yi(ns,"string"),Sd=Yi(ns,"boolean"),pd=Yi(ns,"number"),wd=Yi(ns,"function"),vd=Pf.map((e=>e+"s")),Ad=ji(vd),bd=vd.slice(0,6),Td=vd.slice(6),Md=Td.slice(1),Id=kf(vd),Ed=Lf(vd,0),Od=Lf(bd,0),Nd=Yi(Ri,vd),Cd=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],Hd=["isoDay","isoMonth","isoYear"],Dd=Cd.concat(Hd),_d=ji(Hd),kd=ji(Cd),Ld=ji(Dd),Rd=Lf(kd,0),Yd=Yi(Ri,Dd),Pd=Intl.DateTimeFormat,jd="en-GB",Bd=1e8,Fd=Bd*jf,Ud=[Bd,0],xd=[-Bd,0],Zd=275760,$d=-271821,Vd=1970,zd=1972,Kd=12,Jd=Ys(1868,9,8),Gd=bi(Ks,WeakMap),Wd="smallestUnit",qd="unit",Xd="roundingIncrement",Qd="fractionalSecondDigits",eg="relativeTo",tg={constrain:0,reject:1},ng=Object.keys(tg),rg={compatible:0,reject:1,earlier:2,later:3},og={reject:0,use:1,prefer:2,ignore:3},ag={auto:0,never:1,critical:2,always:3},ig={auto:0,never:1,critical:2},sg={auto:0,never:1},cg={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},ug=Yi(mc,Wd),hg=Yi(mc,"largestUnit"),lg=Yi(mc,qd),fg=Yi(yc,"overflow",tg),dg=Yi(yc,"disambiguation",rg),gg=Yi(yc,"offset",og),mg=Yi(yc,"calendarName",ag),yg=Yi(yc,"timeZoneName",ig),Sg=Yi(yc,"offset",sg),pg=Yi(yc,"roundingMode",cg),wg="PlainYearMonth",vg="PlainMonthDay",Ag="PlainDate",bg="PlainDateTime",Tg="PlainTime",Mg="ZonedDateTime",Ig="Instant",Eg="Duration",Og=[Math.floor,e=>Ki(e)?Math.floor(e):Math.round(e),Math.ceil,e=>Ki(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>Ki(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=>Ki(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],Ng="UTC",Cg=5184e3,Hg=Rs(1847),Dg=Rs((new Date).getUTCFullYear()+10),_g=/0+$/,kg=bi(yu,WeakMap),Lg=2**32-1,Rg=bi((e=>{const t=ph(e);return"object"==typeof t?new Pg(t):new Yg(t||0)}));class Yg{constructor(e){this.v=e}getOffsetNanosecondsFor(){return this.v}getPossibleInstantsFor(e){return[Ls(e,this.v)]}l(){}}class Pg{constructor(e){this.$=(e=>{function t(e){const t=Ui(e,a,i),[s,c]=qu(t),u=r(s),h=r(c);return u===h?u:n(o(s,c),u,h,e)}function n(t,n,r,o){let a,i;for(;(void 0===o||void 0===(a=o<t[0]?n:o>=t[1]?r:void 0))&&(i=t[1]-t[0]);){const n=t[0]+Math.floor(i/2);e(n)===r?t[1]=n:t[0]=n+1}return a}const r=bi(e),o=bi(Wu);let a=Hg,i=Dg;return{G(e){const n=t(e-86400),r=t(e+86400),o=e-n,a=e-r;if(n===r)return[o];const i=t(o);return i===t(a)?[e-i]:n>r?[o,a]:[]},V:t,l(e,t){const s=Ui(e,a,i);let[c,u]=qu(s);const h=Cg*t,l=t<0?()=>u>a||(a=s,0):()=>c<i||(i=s,0);for(;l();){const a=r(c),i=r(u);if(a!==i){const r=o(c,u);n(r,a,i);const s=r[0];if((Fi(s,e)||1)===t)return s}c+=h,u+=h}}}})((e=>t=>{const n=Ts(e,t*Bf);return Rs(zh(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}getOffsetNanosecondsFor(e){return this.$.V(Hs(e))*xf}getPossibleInstantsFor(e){const[t,n]=[Rs((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*Uf+r.isoMicrosecond*Ff+r.isoNanosecond];var r;return this.$.G(t).map((e=>Os(gs(ws(e,xf),n))))}l(e,t){const[n,r]=Ds(e),o=this.$.l(n+(t>0||r?1:0),t);if(void 0!==o)return ws(o,xf)}}const jg="([+−-])",Bg="(?:[.,](\\d{1,9}))?",Fg=`(?:(?:${jg}(\\d{6}))|(\\d{4}))-?(\\d{2})`,Ug="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+Bg+")?)?",xg=jg+Ug,Zg=Fg+"-?(\\d{2})(?:[T ]"+Ug+"(Z|"+xg+")?)?",$g="\\[(!?)([^\\]]*)\\]",Vg=`((?:${$g}){0,9})`,zg=dh(Fg+Vg),Kg=dh("(?:--)?(\\d{2})-?(\\d{2})"+Vg),Jg=dh(Zg+Vg),Gg=dh("T?"+Ug+"(?:"+xg+")?"+Vg),Wg=dh(xg),qg=new RegExp($g,"g"),Xg=dh(`${jg}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${Bg}H)?(?:(\\d+)${Bg}M)?(?:(\\d+)${Bg}S)?)?`),Qg=bi((e=>new Pd(jd,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),em=/^(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$/,tm=bi(xh),nm=bi((e=>new Pd(jd,{calendar:e,timeZone:Ng,era:"short",year:"numeric",month:"short",day:"numeric"}))),rm=/^M(\d{2})(L?)$/,om={era:is,eraYear:us,year:us,month:ls,monthCode:is,day:ls},am=Lf(Kf,us),im=Lf(vd,hs),sm=Object.assign({},om,am,im,{offset:is}),cm=Yi(Hi,Kf,Cd),um={dateAdd(e,t,n){const r=Qs(n);let o,{years:a,months:i,weeks:s,days:c}=t;if(c+=Vu(t,5)[0],a||i)o=((e,t,n,r,o)=>{let[a,i,s]=e.h(t);if(n){const[t,r]=e.I(a,i);a+=n,i=il(t,r,e.U(a)),i=wi("month",i,1,e.L(a),o)}return r&&([a,i]=e._(a,i,r)),s=wi("day",s,1,e.j(a,i),o),e.q(a,i,s)})(this,e,a,i,r);else{if(!s&&!c)return e;o=_s(e)}return o+=(7*s+c)*jf,Is(Bs(o))},dateUntil(e,t,n){if(n<=7){let r=0,o=jh({...e,...Rd},{...t,...Rd});return 7===n&&([r,o]=$i(o,7)),{...Ed,weeks:r,days:o}}const r=this.h(e),o=this.h(t);let[a,i,s]=((e,t,n,r,o,a,i)=>{let s=o-t,c=a-n,u=i-r;if(s||c){const h=Math.sign(s||c);let l=e.j(o,a),f=0;if(Math.sign(u)===-h){const r=l;[o,a]=e._(o,a,-h),s=o-t,c=a-n,l=e.j(o,a),f=h<0?-r:l}if(u=i-Math.min(r,l)+f,s){const[r,i]=e.I(t,n),[u,l]=e.I(o,a);if(c=u-r||Number(l)-Number(i),Math.sign(c)===-h){const n=h<0&&-e.L(o);s=(o-=h)-t,c=a-il(r,i,e.U(o))+(n||e.L(o))}}}return[s,c,u]})(this,...r,...o);return 8===n&&(i+=this.J(a,r[0]),a=0),{...Ed,years:a,months:i,days:s}},dateFromFields(e,t){const n=Qs(t),r=Tl(this,e),o=Ml(this,e,r,n),a=Il(this,e,o,r,n);return Ac(Is(this.P(r,o,a)),this.id||ld)},yearMonthFromFields(e,t){const n=Qs(t),r=Tl(this,e),o=Ml(this,e,r,n);return bc(Ms(this.P(r,o,1)),this.id||ld)},monthDayFromFields(e,t){const n=Qs(t),r=!this.id,{monthCode:o,year:a,month:i}=e;let s,c,u,h,l;if(void 0!==o){[s,c]=al(o),l=vi(e,"day");const t=this.N(s,c,l);if(!t)throw new RangeError(lf);if([u,h]=t,void 0!==i&&i!==h)throw new RangeError(uf);r&&(h=wi("month",h,1,Kd,1),l=wi("day",l,1,xs(void 0!==a?a:u,h),n))}else{u=void 0===a&&r?zd:Tl(this,e),h=Ml(this,e,u,n),l=Il(this,e,h,u,n);const t=this.U(u);c=h===t,s=sl(h,t);const o=this.N(s,c,l);if(!o)throw new RangeError(lf);[u,h]=o}return Tc(Is(this.P(u,h,l)),this.id||ld)},fields(e){return ul(this)&&e.includes("year")?[...e,...Qf]:e},mergeFields(e,t){const n=Object.assign(Object.create(null),e);return El(n,t,rd),ul(this)&&(El(n,t,ed),this.id===dd&&El(n,t,cd,Qf)),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:ol,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"+Rf(e)+(t?"L":""))(r,o)},dayOfWeek:Vs,daysInWeek:()=>7},hm={dayOfYear:ol,h:Fs,q:Ys},lm=Object.assign({},hm,{weekOfYear:nl,yearOfWeek:rl,R(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=Zs(f+e),r=e||1,o=t(Zi(c+n*r,7));return h=(n+(o-u)*r)/7}const r=this.id?1:4,o=Vs(e),a=this.dayOfYear(e),i=Zi(o-1,7),s=a-1,c=Zi(i-s,7),u=t(c);let h,l=Math.floor((s-u)/7)+1,f=e.isoYear;return l?l>n(0)&&(l=1,f++):(l=n(-1),f--),[l,f,h]}}),fm={dayOfYear:ol,h:Kh,q:Jh,weekOfYear:nl,yearOfWeek:rl,R:()=>[]},dm=kl(Object.assign({},um,lm,{h:Fs,ee(e){return this.id===fd?zs(e):this.id===dd?Gd(e):[]},I:(e,t)=>[t,0],N(e,t){if(!t)return[zd,e]},K:$s,U(){},L:Us,J:e=>e*Kd,j:xs,X:Zs,P:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),q:Ys,_:(e,t,n)=>(e+=Vi(n,Kd),(t+=zi(n,Kd))<1?(e--,t+=Kd):t>Kd&&(e++,t-=Kd),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Object.assign({},um,fm,{h:Kh,ee(e){const t=this.O(e);return[t.era,t.eraYear]},I(e,t){const n=Gh.call(this,e);return[sl(t,n),n===t]},N(e,t,n){let[r,o,a]=Kh.call(this,{isoYear:zd,isoMonth:Kd,isoDay:31});const i=Gh.call(this,r),s=o===i;1===(Fi(e,sl(o,i))||Fi(Number(t),Number(s))||Fi(n,a))&&r--;for(let o=0;o<100;o++){const a=r-o,i=Gh.call(this,a),s=il(e,t,i);if(t===(s===i)&&n<=qh.call(this,a,s))return[a,s]}},K(e){const t=Wh.call(this,e);return t>Wh.call(this,e-1)&&t>Wh.call(this,e+1)},U:Gh,L:Xh,J(e,t){const n=t+e,r=Math.sign(e),o=r<0?-1:0;let a=0;for(let e=t;e!==n;e+=r)a+=Xh.call(this,e+o);return a},j:qh,X:Wh,P(e,t,n){return Bs(Jh.call(this,e,t,n))},q:Jh,_(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError(bf);if(n<0)for(;t<1;)t+=Xh.call(this,--e);else{let n;for(;t>(n=Xh.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}})),gm="numeric",mm=["timeZoneName"],ym={month:gm,day:gm},Sm={year:gm,month:gm},pm=Object.assign({},Sm,{day:gm}),wm={hour:gm,minute:gm,second:gm},vm=Object.assign({},pm,wm),Am=Object.assign({},vm,{timeZoneName:"short"}),bm=Object.keys(Sm),Tm=Object.keys(ym),Mm=Object.keys(pm),Im=Object.keys(wm),Em=["dateStyle"],Om=bm.concat(Em),Nm=Tm.concat(Em),Cm=Mm.concat(Em,["weekday"]),Hm=Im.concat(["dayPeriod","timeStyle"]),Dm=Cm.concat(Hm),_m=Dm.concat(mm),km=mm.concat(Hm),Lm=mm.concat(Cm),Rm=mm.concat(["day","weekday"],Hm),Ym=mm.concat(["year","weekday"],Hm),Pm={},jm=[Ll(Dm,vm),Ec],Bm=[Ll(_m,Am),Ec,0,(e,t)=>{const n=Nc(e.timeZone);if(t&&Nc(t.timeZone)!==n)throw new RangeError(yf);return n}],Fm=[Ll(Dm,vm,mm),_s],Um=[Ll(Cm,pm,km),_s],xm=[Ll(Hm,wm,Lm),e=>Ns(e)/Uf],Zm=[Ll(Om,Sm,Rm),_s,1],$m=[Ll(Nm,ym,Ym),_s,1];let Vm;function zm(e,t,n,r,o){function a(){if(!(this instanceof a))throw new TypeError(tf);Uy(this,t(...arguments))}function i(e,t){return Object.defineProperties((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.call(this,s(this),...n)}),Ti(t))}function s(t){const n=Fy(t);if(!n||n.branding!==e)throw new TypeError(tf);return n}return Object.defineProperties(a.prototype,{...Ii(Ni(i,n)),...Mi(Ni(i,r)),...Ei("Temporal."+e)}),Object.defineProperties(a,{...Mi(o),...Ti(e)}),[a,e=>{const t=Object.create(a.prototype);return Uy(t,e),t},s]}function Km(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 Jm(e){if(Fy(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function Gm(e,t){const n={};for(const r in e)n[r]=(e,n)=>{let{o:o}=e;const a=Fy(n)||{},{branding:i}=a,s=i===Ag||t.includes(i)?a:ly(n);return o[r](s)};return n}function Wm(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return(r=t,"string"==typeof r?dm(r):(o=r,Object.assign(Object.create(Ky),{i:o})))[n](e);var r,o};return t}function qm(){throw new TypeError("Cannot use valueOf")}function Xm(e){let{calendar:t}=e;return"string"==typeof t?new VS(t):t}function Qm(e,t){if(t=dc(t),Ai(e)){const n=Fy(e);if(n&&n.branding===vg)return Qs(t),n;const r=Sy(e);return ml(kS(r||ld),!r,e,t)}const n=function(e,t){const n=sh(yd(t));if(n)return eh(n),Tc(Gs(n));const r=Qu(t),{calendar:o}=r,a=e(o),[i,s,c]=a.h(r),[u,h]=a.I(i,s),[l,f]=a.N(u,h,c);return Tc(Is(a.P(l,f,c)),o)}(dm,e);return Qs(t),n}function ey(e,t,n){return wu(Xi(t.call(e,oS(pc(n)))))}function ty(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tS;const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=Yi(t[o],e,wd(e[o]));return r}function ny(e,t){return"string"==typeof e?Rg(e):ty(e,t)}function ry(e){return ny(e,nS)}function oy(e){if(Ai(e)){const t=Fy(e);if(t)switch(t.branding){case Ig:return t;case Mg:return pc(t.epochNanoseconds)}}return function(e){const t=ah(e=is(e));if(!t)throw new RangeError(Cf(e));let n;if(t.m)n=0;else{if(!t.offset)throw new RangeError(Cf(e));n=Xu(t.offset)}return t.timeZone&&ch(t.timeZone,1),pc(Ls(Js(t),n))}(e)}function ay(e,t,n){const r=t.l(oy(n).epochNanoseconds,e);return r?oS(pc(r)):null}function iy(e){return Ai(e)?(Fy(e)||{}).timeZone||cS(e):(e=>yh(function(e){const t=ah(e);return t&&(t.timeZone||t.m&&Ng||t.offset)||e}(yd(e))))(e)}function sy(e,t){if(Ai(e)){const n=Fy(e)||{};switch(n.branding){case Tg:return Qs(t),n;case bg:return Qs(t),Mc(n);case Mg:return Qs(t),Hl(ry,n)}return function(e,t){const n=Qs(t);return Mc(pl(Sl(e,Jf,[],1),n))}(e,t)}return Qs(t),function(e){let t,n=(e=>{const t=Gg.exec(e);return t?(lh(t[10]),hh(t)):void 0})(yd(e));if(!n){if(n=ah(e),!n)throw new RangeError(Cf(e));if(!n.p)throw new RangeError(Cf(e));if(n.m)throw new RangeError(Hf("Z"));eh(n)}if((t=ih(e))&&Ws(t))throw new RangeError(Cf(e));if((t=sh(e))&&Ws(t))throw new RangeError(Cf(e));return Mc(Xs(n,1))}(e)}function cy(e){return void 0===e?void 0:sy(e)}function uy(e,t){if(t=dc(t),Ai(e)){const n=Fy(e);return n&&n.branding===wg?(Qs(t),n):gl(DS(yy(e)),e,t)}const n=function(e,t){const n=ih(yd(t));if(n)return eh(n),bc(Ms(Gs(n)));const r=Qu(t);return bc(Hu(e(r.calendar),r))}(dm,e);return Qs(t),n}function hy(e,t){if(t=dc(t),Ai(e)){const n=Fy(e)||{};switch(n.branding){case bg:return Qs(t),n;case Ag:return Qs(t),vc({...n,...Rd});case Mg:return Qs(t),Nl(ry,n)}return function(e,t,n){const r=yl(e,t,sd,[],Kf),o=Qs(n);return vc(Es({...e.dateFromFields(r,gc(n,o)),...pl(r,o)}))}(_S(yy(e)),e,t)}const n=function(e){const t=ah(yd(e));if(!t||t.m)throw new RangeError(Cf(e));return vc(nh(t))}(e);return Qs(t),n}function ly(e,t){if(t=dc(t),Ai(e)){const n=Fy(e)||{};switch(n.branding){case Ag:return Qs(t),n;case bg:return Qs(t),Ac(n);case Mg:return Qs(t),Cl(ry,n)}return dl(_S(yy(e)),e,t)}const n=Qu(e);return Qs(t),n}function fy(e,t,n){return qi(t.call(e,SS(Ac(n,e))))}function dy(e){return t=>"string"==typeof t?dm(t):((e,t)=>{const n=Object.keys(t).sort(),r={};for(const o of n)r[o]=Yi(t[o],e,e[o]);return r})(t,e)}function gy(e){if(Ai(e)){const t=Fy(e);return t&&t.branding===Eg?t:function(e){const t=Sl(e,Ad);return Ic(Zu({...Ed,...t}))}(e)}return function(e){const t=(e=>{const t=Xg.exec(e);return t?(e=>{function t(e,t,a){let i=0,s=0;if(a&&([i,o]=xi(o,zf[a])),void 0!==e){if(r)throw new RangeError(Hf(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(Hf(e));return t})(e),n=1,t&&(o=fh(t)*(zf[a]/xf),r=1)}return i+s}let n=0,r=0,o=0,a={...Oi(vd,[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)]),...Gi(o,2,vd)};if(!n)throw new RangeError(Ql(vd));return gh(e[1])<0&&(a=Uu(a)),a})(t):void 0})(yd(e));if(!t)throw new RangeError(Cf(e));return Ic(Zu(t))}(e)}function my(e){if(void 0!==e){if(Ai(e)){const t=Fy(e)||{};switch(t.branding){case Mg:case Ag:return t;case bg:return Ac(t)}const n=yy(e);return{...fl(iy,ny,_S(n),e),calendar:n}}return function(e){const t=ah(yd(e));if(!t)throw new RangeError(Cf(e));if(t.timeZone)return th(t,t.offset?Xu(t.offset):void 0);if(t.m)throw new RangeError(Cf(e));return rh(t)}(e)}}function yy(e){return Sy(e)||ld}function Sy(e){const{calendar:t}=e;if(void 0!==t)return py(t)}function py(e){return Ai(e)?(Fy(e)||{}).calendar||zS(e):(e=>el(function(e){const t=ah(e)||ih(e)||sh(e);return t?t.calendar:e}(yd(e))))(e)}function wy(e,t){if(t=dc(t),Ai(e)){const n=Fy(e);if(n&&n.branding===Mg)return ec(t),n;const r=yy(e);return function(e,t,n,r,o,a){const i=yl(n,o,sd,Wf,Xf),s=e(i.timeZone),[c,u,h]=ec(a),l=n.dateFromFields(i,gc(a,c)),f=pl(i,c);return wc(Su(t(s),{...l,...f},void 0!==i.offset?Xu(i.offset):void 0,u,h),s,r)}(iy,ny,_S(r),r,e,t)}return function(e,t){const n=ah(yd(e));if(!n||!n.timeZone)throw new RangeError(Cf(e));const{offset:r}=n,o=r?Xu(r):void 0,[,a,i]=ec(t);return th(n,o,a,i)}(e,t)}function vy(e){return Ni((e=>t=>e(Ay(t))),e)}function Ay(e){return kg(e,ry)}function by(){const e=Pd.prototype,t=Object.getOwnPropertyDescriptors(e),n=Object.getOwnPropertyDescriptors(Pd),r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(this instanceof r))return new r(e,t);XS.set(this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Pd(e,t),r=n.resolvedOptions(),o=r.locale,a=Di(Object.keys(t),r),i=bi(Iy),s=function(){let e;for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];const c=r.map(((t,n)=>{const r=Fy(t),o=(r||{}).branding;if(n&&e&&e!==o)throw new TypeError("Mismatching types for formatting");return e=o,r}));return e?i(e)(o,a,...c):[n,...r]};return s.u=n,s}(e,t))};for(const e in t){const n=t[e],o=e.startsWith("format")&&Ty(e);"function"==typeof n.value?n.value="constructor"===e?r:o||My(e):o&&(n.get=function(){return o.bind(this)})}return n.prototype.value=Object.create(e,t),Object.defineProperties(r,n),r}function Ty(e){return function(){const t=XS.get(this),[n,...r]=t(...arguments);return n[e](...r)}}function My(e){return function(){return XS.get(this).u[e](...arguments)}}function Iy(e){const t=Ey[e];if(!t)throw new TypeError(Df(e));return Rl(t,bi(Yl))}const Ey={Instant:jm,PlainDateTime:Fm,PlainDate:Um,PlainTime:xm,PlainYearMonth:Zm,PlainMonthDay:$m},Oy=Rl(jm),Ny=Rl(Bm),Cy=Rl(Fm),Hy=Rl(Um),Dy=Rl(xm),_y=Rl(Zm),ky=Rl($m),Ly={era:function(e){if(void 0!==e)return yd(e)},eraYear:Wi,year:Xi,month:qi,daysInMonth:qi,daysInYear:qi,inLeapYear:Sd,monthsInYear:qi},Ry={monthCode:yd},Yy={day:qi},Py={dayOfWeek:qi,dayOfYear:qi,weekOfYear:function(e){if(void 0!==e)return qi(e)},yearOfWeek:Wi,daysInWeek:qi},jy=Object.assign({},Ly,Ry,Yy,Py),By=new WeakMap,Fy=By.get.bind(By),Uy=By.set.bind(By),xy={...Gm(Ly,[wg]),...Gm(Py,[]),...Gm(Ry,[wg,vg]),...Gm(Yy,[vg])},Zy=Wm(jy),$y=Wm({...Ly,...Ry}),Vy=Wm({...Ry,...Yy}),zy={calendarId:e=>Nc(e.calendar)},Ky=Ni(((e,t)=>function(n){const{i:r}=this;return e(r[t](SS(Ac(n,r))))}),jy),Jy=Ci((e=>t=>t[e]),vd.concat("sign")),Gy=Ci(((e,t)=>e=>e[Cd[t]]),Kf),Wy={epochSeconds:function(e){return Hs(e.epochNanoseconds)},epochMilliseconds:Ec,epochMicroseconds:function(e){return vs(e.epochNanoseconds,Ff)},epochNanoseconds:function(e){return vs(e.epochNanoseconds)}},qy=Yi(_i,new Set(["branding"])),[Xy,Qy,eS]=zm(vg,Yi((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ld,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:zd;const a=us(t),i=us(n),s=e(r);return Tc(Is(Gs({isoYear:us(o),isoMonth:a,isoDay:i})),s)}),py),{...zy,...Vy},{getISOFields:qy,getCalendar:Xm,with(e,t,n){return Qy(function(e,t,n,r,o){const a=dc(o);return((e,t,n,r)=>{const o=wl(e,t,n,sd);return e.monthDayFromFields(o,r)})(e(t.calendar),n,r,a)}(YS,e,this,Jm(t),n))},equals:(e,t)=>function(e,t){return!bh(e,t)&&Cc(e.calendar,t.calendar)}(e,Qm(t)),toPlainDate(e,t){return SS(function(e,t,n,r){return((e,t,n)=>bl(e,t,ud,ts(n),td))(e(t.calendar),n,r)}(RS,e,this,t))},toLocaleString(e,t,n){const[r,o]=ky(t,n,e);return r.format(o)},toString:eu,toJSON:e=>eu(e),valueOf:qm},{from:(e,t)=>Qy(Qm(e,t))}),tS={getOffsetNanosecondsFor:ey,getPossibleInstantsFor(e,t,n){const r=[...t.call(e,mS(vc(n,ld)))].map((e=>aS(e).epochNanoseconds)),o=r.length;return o>1&&(r.sort(ys),vu(As(ms(r[0],r[o-1])))),r}},nS={getOffsetNanosecondsFor:ey},[rS,oS,aS]=zm(Ig,(function(e){return pc(Os(ps(ss(e))))}),Wy,{add:(e,t)=>oS(Au(0,e,gy(t))),subtract:(e,t)=>oS(Au(1,e,gy(t))),until:(e,t,n)=>xS(Ih(0,e,oy(t),n)),since:(e,t,n)=>xS(Ih(1,e,oy(t),n)),round:(e,t)=>oS(function(e,t){const[n,r,o]=rc(t,5,1);return pc(xc(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!wh(e,t)}(e,oy(t)),toZonedDateTime(e,t){const n=ts(t);return JS(Ol(e,iy(n.timeZone),py(n.calendar)))},toZonedDateTimeISO:(e,t)=>JS(Ol(e,iy(t))),toLocaleString(e,t,n){const[r,o]=Oy(t,n,e);return r.format(o)},toString:(e,t)=>Gc(iy,ry,e,t),toJSON:e=>Gc(iy,ry,e),valueOf:qm},{from:e=>oS(oy(e)),fromEpochSeconds:e=>oS(function(e){return pc(Os(ws(e,xf)))}(e)),fromEpochMilliseconds:e=>oS(function(e){return pc(Os(ws(e,Uf)))}(e)),fromEpochMicroseconds:e=>oS(function(e){return pc(Os(ps(ss(e),Ff)))}(e)),fromEpochNanoseconds:e=>oS(function(e){return pc(Os(ps(ss(e))))}(e)),compare:(e,t)=>wh(oy(e),oy(t))}),[iS,sS]=zm("TimeZone",(e=>{const t=function(e){return yh(yd(e))}(e);return{branding:"TimeZone",id:t,o:Rg(t)}}),{id:e=>e.id},{getPossibleInstantsFor:(e,t)=>{let{o:n}=e;return n.getPossibleInstantsFor(hy(t)).map((e=>oS(pc(e))))},getOffsetNanosecondsFor:(e,t)=>{let{o:n}=e;return n.getOffsetNanosecondsFor(oy(t).epochNanoseconds)},getOffsetStringFor(e,t){const n=oy(t).epochNanoseconds;return hu(ty(this,nS).getOffsetNanosecondsFor(n))},getPlainDateTimeFor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ld;const r=oy(t).epochNanoseconds,o=ty(this,nS).getOffsetNanosecondsFor(r);return mS(vc(js(r,o),py(n)))},getInstantFor(e,t,n){const r=hy(t),o=tc(n),a=ty(this);return oS(pc(pu(a,r,o)))},getNextTransition:(e,t)=>{let{o:n}=e;return ay(1,n,t)},getPreviousTransition:(e,t)=>{let{o:n}=e;return ay(-1,n,t)},equals(e,t){return!!Mh(this,iy(t))},toString:e=>e.id,toJSON:e=>e.id},{from(e){const t=iy(e);return"string"==typeof t?new iS(t):t}}),cS=Km(Object.keys(tS)),[uS,hS]=zm(Tg,(function(){return Mc(Xs(Ni(us,Oi(Cd,[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))}),Gy,{getISOFields:qy,with(e,t,n){return hS(function(e,t,n){return Mc(((e,t,n)=>{const r=Qs(n);return pl({...Di(Jf,e),...Sl(t,Jf)},r)})(e,t,n))}(this,Jm(t),n))},add:(e,t)=>hS(Eu(0,e,gy(t))),subtract:(e,t)=>hS(Eu(1,e,gy(t))),until:(e,t,n)=>xS(Dh(0,e,sy(t),n)),since:(e,t,n)=>xS(Dh(1,e,sy(t),n)),round:(e,t)=>hS(function(e,t){const[n,r,o]=rc(t,5);var a;return Mc((a=o,Rc(e,Pc(n,r),a)[0]))}(e,t)),equals:(e,t)=>function(e,t){return!Th(e,t)}(e,sy(t)),toZonedDateTime:(e,t)=>JS(function(e,t,n,r,o){const a=ts(o),i=t(a.plainDate),s=e(a.timeZone);return wc(pu(n(s),{...i,...r}),s,i.calendar)}(iy,ly,ny,e,t)),toPlainDateTime:(e,t)=>mS(function(e,t){return vc(Es({...e,...t}))}(e,ly(t))),toLocaleString(e,t,n){const[r,o]=Dy(t,n,e);return r.format(o)},toString:tu,toJSON:e=>tu(e),valueOf:qm},{from:(e,t)=>hS(sy(e,t)),compare:(e,t)=>Th(sy(e),sy(t))}),[lS,fS,dS]=zm(wg,Yi((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ld,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const a=us(t),i=us(n),s=e(r);return bc(Ms(Gs({isoYear:a,isoMonth:i,isoDay:us(o)})),s)}),py),{...zy,...$y},{getISOFields:qy,getCalendar:Xm,with(e,t,n){return fS(function(e,t,n,r,o){const a=dc(o);return bc(((e,t,n,r)=>{const o=wl(e,t,n,ad);return e.yearMonthFromFields(o,r)})(e(t.calendar),n,r,a))}(LS,e,this,Jm(t),n))},add:(e,t,n)=>fS(Iu(BS,0,e,gy(t),n)),subtract:(e,t,n)=>fS(Iu(BS,1,e,gy(t),n)),until:(e,t,n)=>xS(Ch(FS,0,e,uy(t),n)),since:(e,t,n)=>xS(Ch(FS,1,e,uy(t),n)),equals:(e,t)=>function(e,t){return!bh(e,t)&&Cc(e.calendar,t.calendar)}(e,uy(t)),toPlainDate(e,t){return SS(function(e,t,n,r){return((e,t,n)=>bl(e,t,id,ts(n),od))(e(t.calendar),n,r)}(RS,e,this,t))},toLocaleString(e,t,n){const[r,o]=_y(t,n,e);return r.format(o)},toString:Qc,toJSON:e=>Qc(e),valueOf:qm},{from:(e,t)=>fS(uy(e,t)),compare:(e,t)=>bh(uy(e),uy(t))}),[gS,mS]=zm(bg,Yi((function(e,t,n,r){let o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:ld;return vc(Es(Js(Ni(us,Oi(Dd,[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))}),py),{...zy,...Zy,...Gy},{getISOFields:qy,getCalendar:Xm,with(e,t,n){return mS(function(e,t,n,r,o){const a=dc(o);return vc(((e,t,n,r)=>{const o=wl(e,t,n,sd,Kf),a=Qs(r);return Es({...e.dateFromFields(o,gc(r,a)),...pl(o,a)})})(e(t.calendar),n,r,a))}(RS,e,this,Jm(t),n))},withCalendar:(e,t)=>mS(Dl(e,py(t))),withPlainDate:(e,t)=>mS(function(e,t){return vc({...e,...t},_l(e.calendar,t.calendar))}(e,ly(t))),withPlainTime:(e,t)=>mS(function(e){return vc({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rd})}(e,cy(t))),add:(e,t,n)=>mS(Tu(PS,0,e,gy(t),n)),subtract:(e,t,n)=>mS(Tu(PS,1,e,gy(t),n)),until:(e,t,n)=>xS(Oh(jS,0,e,hy(t),n)),since:(e,t,n)=>xS(Oh(jS,1,e,hy(t),n)),round:(e,t)=>mS(function(e,t){return vc(kc(e,...rc(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!Ah(e,t)&&Cc(e.calendar,t.calendar)}(e,hy(t)),toZonedDateTime:(e,t,n)=>JS(function(e,t,n,r){const o=((e,t,n,r)=>{const o=tc(r);return pu(e(t),n,o)})(e,n,t,r);return wc(Os(o),n,t.calendar)}(ny,e,iy(t),n)),toPlainDate:e=>SS(Ac(e)),toPlainTime:e=>hS(Mc(e)),toPlainYearMonth(e){return fS(function(e,t,n){const r=e(t.calendar);return bc({...t,...Al(r,n)})}(DS,e,this))},toPlainMonthDay(e){return Qy(function(e,t,n){return vl(e(t.calendar),n)}(kS,e,this))},toLocaleString(e,t,n){const[r,o]=Cy(t,n,e);return r.format(o)},toString:qc,toJSON:e=>qc(e),valueOf:qm},{from:(e,t)=>mS(hy(e,t)),compare:(e,t)=>Ah(hy(e),hy(t))}),[yS,SS,pS]=zm(Ag,Yi((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:ld;return Ac(Is(Gs(Ni(us,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))}),py),{...zy,...Zy},{getISOFields:qy,getCalendar:Xm,with(e,t,n){return SS(function(e,t,n,r,o){const a=dc(o);return((e,t,n,r)=>{const o=wl(e,t,n,sd);return e.dateFromFields(o,r)})(e(t.calendar),n,r,a)}(RS,e,this,Jm(t),n))},withCalendar:(e,t)=>SS(Dl(e,py(t))),add:(e,t,n)=>SS(Mu(PS,0,e,gy(t),n)),subtract:(e,t,n)=>SS(Mu(PS,1,e,gy(t),n)),until:(e,t,n)=>xS(Nh(jS,0,e,ly(t),n)),since:(e,t,n)=>xS(Nh(jS,1,e,ly(t),n)),equals:(e,t)=>function(e,t){return!bh(e,t)&&Cc(e.calendar,t.calendar)}(e,ly(t)),toZonedDateTime(e,t){const n=!Ai(t)||t instanceof iS?{timeZone:t}:t;return JS(function(e,t,n,r,o){const a=e(o.timeZone),i=o.plainTime,s=void 0!==i?t(i):Rd;return wc(pu(n(a),{...r,...s}),a,r.calendar)}(iy,sy,ny,e,n))},toPlainDateTime:(e,t)=>mS(function(e){return vc(Es({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rd}))}(e,cy(t))),toPlainYearMonth(e){return fS(function(e,t,n){return Al(e(t.calendar),n)}(DS,e,this))},toPlainMonthDay(e){return Qy(function(e,t,n){return vl(e(t.calendar),n)}(kS,e,this))},toLocaleString(e,t,n){const[r,o]=Hy(t,n,e);return r.format(o)},toString:Xc,toJSON:e=>Xc(e),valueOf:qm},{from:(e,t)=>SS(ly(e,t)),compare:(e,t)=>bh(ly(e),ly(t))}),wS={fields:(e,t,n)=>[...t.call(e,n)]},vS=Object.assign({dateFromFields:(e,t,n,r)=>pS(t.call(e,Object.assign(Object.create(null),n),r))},wS),AS=Object.assign({yearMonthFromFields:(e,t,n,r)=>dS(t.call(e,Object.assign(Object.create(null),n),r))},wS),bS=Object.assign({monthDayFromFields:(e,t,n,r)=>eS(t.call(e,Object.assign(Object.create(null),n),r))},wS),TS={mergeFields:(e,t,n,r)=>ts(t.call(e,Object.assign(Object.create(null),n),Object.assign(Object.create(null),r)))},MS=Object.assign({},vS,TS),IS=Object.assign({},AS,TS),ES=Object.assign({},bS,TS),OS={dateAdd:(e,t,n,r,o)=>pS(t.call(e,SS(Ac(n,e)),xS(Ic(r)),o))},NS=Object.assign({},OS,{dateUntil:(e,t,n,r,o,a)=>ZS(t.call(e,SS(Ac(n,e)),SS(Ac(r,e)),Object.assign(Object.create(null),a,{largestUnit:Pf[o]})))}),CS=Object.assign({},OS,{day:fy}),HS=Object.assign({},NS,{day:fy}),DS=dy(AS),_S=dy(vS),kS=dy(bS),LS=dy(IS),RS=dy(MS),YS=dy(ES),PS=dy(OS),jS=dy(NS),BS=dy(CS),FS=dy(HS),[US,xS,ZS]=zm(Eg,(function(){return Ic(Zu(Ni(hs,Oi(vd,[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]))))}),{...Jy,blank:function(e){return!e.sign}},{with:(e,t)=>xS(function(e,t){return Ic((n=e,r=t,Zu({...n,...Sl(r,Ad)})));var n,r}(e,t)),negated:e=>xS(Fu(e)),abs:e=>xS(function(e){return-1===e.sign?Fu(e):e}(e)),add:(e,t,n)=>xS(Bu(my,jS,ny,0,e,gy(t),n)),subtract:(e,t,n)=>xS(Bu(my,jS,ny,1,e,gy(t),n)),round:(e,t)=>xS(function(e,t,n,r,o){const a=Gu(r),[i,s,c,u,h]=((e,t,n)=>{e=fc(e,Wd);let r=hg(e);const o=n(e[eg]);let a=cc(e);const i=pg(e,7);let s=ug(e);if(void 0===r&&void 0===s)throw new RangeError(Of);return null==s&&(s=0),null==r&&(r=Math.max(s,t)),Sc(r,s),a=uc(a,s,1),[r,s,a,i,o]})(o,a,e),l=Math.max(a,i);if(!Pu(h)&&l<=6)return Ic(Zu(((e,t,n,r,o)=>{const a=xc(Vu(e),n,r,o);return{...Ed,...zu(a,t)}})(r,i,s,c,u)));if(!h)throw new RangeError(If);const[f,d,g]=ku(t,n,h),m=Lu(g),y=Ru(g),S=Yu(g),p=y(d,f,r);let w=S(d,f,p,i);const v=r.sign,A=xu(w);if(v&&A&&v!==A)throw new RangeError(df);return A&&(w=Uc(w,m(p),i,s,c,u,d,f,m,y)),Ic(w)}(my,jS,ny,e,t)),total:(e,t)=>function(e,t,n,r,o){const a=Gu(r),[i,s]=((e,t)=>{const n=t((e=fc(e,qd))[eg]);let r=lg(e);return r=es(qd,r),[r,n]})(o,e);if(ju(Math.max(i,a),s))return Hc(r,i);if(!s)throw new RangeError(If);const[c,u,h]=ku(t,n,s),l=Lu(h),f=Ru(h),d=Yu(h),g=f(u,c,r),m=d(u,c,g,i);return ju(i,s)?Hc(m,i):((e,t,n,r,o,a,i)=>{const s=xu(e),[c,u]=Dc(r,Nd(n,e),n,s,o,a,i),h=_c(t,c,u);return e[vd[n]]+h*s})(m,l(g),i,u,c,l,f)}(my,jS,ny,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):nu(e)},toString:nu,toJSON:e=>nu(e),valueOf:qm},{from:e=>xS(gy(e)),compare:(e,t,n)=>function(e,t,n,r,o,a){const i=e(lc(a).relativeTo),s=Math.max(Gu(r),Gu(o));if(Li(vd,r,o))return 0;if(ju(s,i))return ys(Vu(r),Vu(o));if(!i)throw new RangeError(If);const[c,u,h]=ku(t,n,i),l=Lu(h),f=Ru(h);return ys(l(f(u,c,r)),l(f(u,c,o)))}(my,PS,ny,gy(e),gy(t),n)}),$S={toString:e=>e.id,toJSON:e=>e.id,...xy,dateAdd:(e,t,n,r)=>{let{id:o,o:a}=e;return SS(Ac(a.dateAdd(ly(t),gy(n),r),o))},dateUntil:(e,t,n,r)=>{let{o:o}=e;return xS(Ic(o.dateUntil(ly(t),ly(n),function(e){return e=lc(e),hg(e,9,6,1)}(r))))},dateFromFields:(e,t,n)=>{let{id:r,o:o}=e;return SS(dl(o,t,n,function(e){return e===ld?["year","day"]:[]}(r)))},yearMonthFromFields:(e,t,n)=>{let{id:r,o:o}=e;return fS(gl(o,t,n,function(e){return e===ld?td:[]}(r)))},monthDayFromFields:(e,t,n)=>{let{id:r,o:o}=e;return Qy(ml(o,0,t,n,function(e){return e===ld?od:[]}(r)))},fields(e,t){let{o:n}=e;const r=new Set(sd),o=[];for(const e of t){if(yd(e),!r.has(e))throw new RangeError(ql(e));r.delete(e),o.push(e)}return n.fields(o)},mergeFields:(e,t,n)=>{let{o:r}=e;return r.mergeFields(ki(Qi(t)),ki(Qi(n)))}},[VS]=zm("Calendar",(e=>{const t=function(e){return el(yd(e))}(e);return{branding:"Calendar",id:t,o:dm(t)}}),{id:e=>e.id},$S,{from(e){const t=py(e);return"string"==typeof t?new VS(t):t}}),zS=Km(Object.keys($S).slice(4)),[KS,JS]=zm(Mg,Yi((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:ld;return wc(Os(ps(ss(n))),t(r),e(o))}),py,iy),{...Wy,...zy,...vy(Zy),...vy(Gy),offset:e=>hu(Ay(e).offsetNanoseconds),offsetNanoseconds:e=>Ay(e).offsetNanoseconds,timeZoneId:e=>Nc(e.timeZone),hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=kg(t,n),[o,a]=jc(r),i=As(ms(pu(n,o),pu(n,a)),$f,1);if(i<=0)throw new RangeError(df);return i}(ny,e)},{getISOFields:e=>function(e,t){const n=kg(t,e);return{calendar:t.calendar,...Di(Ld,n),offset:hu(n.offsetNanoseconds),timeZone:t.timeZone}}(ry,e),getCalendar:Xm,getTimeZone:e=>{let{timeZone:t}=e;return"string"==typeof t?new iS(t):t},with(e,t,n){return JS(function(e,t,n,r,o,a){const i=dc(a),{calendar:s,timeZone:c}=n;return wc(((e,t,n,r,o)=>{const a=wl(e,n,r,sd,qf,Gf),[i,s,c]=ec(o,2);return Su(t,{...e.dateFromFields(a,gc(o,i)),...pl(a,i)},Xu(a.offset),s,c)})(e(s),t(c),r,o,i),c,s)}(RS,ny,e,this,Jm(t),n))},withCalendar:(e,t)=>JS(Dl(e,py(t))),withTimeZone:(e,t)=>JS(function(e,t){return{...e,timeZone:t}}(e,iy(t))),withPlainDate:(e,t)=>JS(function(e,t,n){const r=t.timeZone,o=e(r),a={...kg(t,o),...n},i=_l(t.calendar,n.calendar);return wc(Su(o,a,a.offsetNanoseconds,2),r,i)}(ny,e,ly(t))),withPlainTime:(e,t)=>JS(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Rd;const r=t.timeZone,o=e(r),a={...kg(t,o),...n};return wc(Su(o,a,a.offsetNanoseconds,2),r,t.calendar)}(ny,e,cy(t))),add:(e,t,n)=>JS(bu(PS,ny,0,e,gy(t),n)),subtract:(e,t,n)=>JS(bu(PS,ny,1,e,gy(t),n)),until:(e,t,n)=>xS(Ic(Eh(jS,ny,0,e,wy(t),n))),since:(e,t,n)=>xS(Ic(Eh(jS,ny,1,e,wy(t),n))),round:(e,t)=>JS(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:a}=t;const[i,s,c]=rc(n);if(0===i&&1===s)return t;const u=e(o);if(6===i)r=((e,t,n,r)=>{const o=kg(n,t),[a,i]=e(o),s=n.epochNanoseconds,c=pu(t,a),u=pu(t,i);if(Ss(s,c,u))throw new RangeError(df);return Vc(_c(s,c,u),r)?u:c})(jc,u,t,c);else{const e=u.getOffsetNanosecondsFor(r);r=Su(u,kc(js(r,e),i,s,c),e,2,0,1)}return wc(r,o,a)}(ny,e,t)),startOfDay:e=>JS(function(e,t){const{timeZone:n,calendar:r}=t,o=((e,t,n)=>pu(t,e(kg(n,t))))(Bc,e(n),t);return wc(o,n,r)}(ny,e)),equals:(e,t)=>function(e,t){return!vh(e,t)&&!!Mh(e.timeZone,t.timeZone)&&Cc(e.calendar,t.calendar)}(e,wy(t)),toInstant:e=>oS(function(e){return pc(e.epochNanoseconds)}(e)),toPlainDateTime:e=>mS(Nl(ry,e)),toPlainDate:e=>SS(Cl(ry,e)),toPlainTime:e=>hS(Hl(ry,e)),toPlainYearMonth(e){return fS(function(e,t,n){return Al(e(t.calendar),n)}(DS,e,this))},toPlainMonthDay(e){return Qy(function(e,t,n){return vl(e(t.calendar),n)}(kS,e,this))},toLocaleString(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o]=Ny(t,n,e);return r.format(o)},toString:(e,t)=>Wc(ry,e,t),toJSON:e=>Wc(ry,e),valueOf:qm},{from:(e,t)=>JS(wy(e,t)),compare:(e,t)=>vh(wy(e),wy(t))}),GS=Object.defineProperties({},{...Ei("Temporal.Now"),...Mi({timeZoneId:()=>Fl(),instant:()=>oS(pc(Bl())),zonedDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fl();return JS(wc(Bl(),iy(t),py(e)))},zonedDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fl();return JS(wc(Bl(),iy(e),ld))},plainDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fl();return mS(vc(jl(ry(iy(t))),py(e)))},plainDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fl();return mS(vc(jl(ry(iy(e))),ld))},plainDate:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fl();return SS(Ac(jl(ry(iy(t))),py(e)))},plainDateISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fl();return SS(Ac(jl(ry(iy(e))),ld))},plainTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fl();return hS(Mc(jl(ry(iy(e)))))}})}),WS=Object.defineProperties({},{...Ei("Temporal"),...Mi({PlainYearMonth:lS,PlainMonthDay:Xy,PlainDate:yS,PlainTime:uS,PlainDateTime:gS,ZonedDateTime:KS,Instant:rS,Calendar:VS,TimeZone:iS,Duration:US,Now:GS})}),qS=by(),XS=new WeakMap;function QS(e){return e*Math.PI/180}function ep(e){return 180*e/Math.PI}Object.create(Intl),Mi({DateTimeFormat:qS});class tp{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 np=6356.9;class rp{constructor(e,t){this.date=t,this.geoLocation=e}getSunrise(){const e=this.getUTCSunrise0(rp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(rp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(rp.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(rp.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(rp.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(rp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(rp.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(rp.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(rp.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(rp.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 ep(Math.acos(np/(np+e/1e3)))}adjustZenith(e,t){let n=e;return e===rp.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}getUTCSunrise(e,t,n,r){const o=r?t.getElevation():0,a=this.adjustZenith(n,o);let i=rp.getSunriseUTC(rp.getJulianDay(e),t.getLatitude(),-t.getLongitude(),a);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getUTCSunset(e,t,n,r){const o=r?t.getElevation():0,a=this.adjustZenith(n,o);let i=rp.getSunsetUTC(rp.getJulianDay(e),t.getLatitude(),-t.getLongitude(),a);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getTemporalHour(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();if(null===e||null===t)return NaN;const n=t.epochMilliseconds-e.epochMilliseconds;return Math.floor(n/12)}getSunTransit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();const n=this.getTemporalHour(e,t);return rp.getTimeOffset(e,6*n)}getDateFromTime(e,t){if(isNaN(e))return null;let n=e,r=this.getAdjustedDate();const o=Math.trunc(n);n-=o;const a=Math.trunc(n*=60);n-=a;const i=Math.trunc(n*=60);n-=i;const s=Math.trunc(this.geoLocation.getLongitude()/15);return t&&s+o>18?r=r.add({days:-1}):!t&&s+o<6&&(r=r.add({days:1})),r.toZonedDateTime({timeZone:"UTC",plainTime:new WS.PlainTime(o,a,i,Math.trunc(1e3*n))}).withTimeZone(this.geoLocation.getTimeZone())}static getJulianDay(e){let{year:t,month:n}=e;const{day:r}=e;n<=2&&(t-=1,n+=12);const o=Math.trunc(t/100),a=Math.trunc(2-o+o/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+a-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-rp.JULIAN_DAY_JAN_1_2000)/rp.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*rp.JULIAN_DAYS_PER_CENTURY+rp.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=QS(rp.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 rp.getSunGeometricMeanLongitude(e)+rp.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return rp.getSunTrueLongitude(e)-.00569-.00478*Math.sin(QS(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 rp.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(QS(t))}static getSunDeclination(e){const t=rp.getObliquityCorrection(e),n=rp.getSunApparentLongitude(e),r=Math.sin(QS(t))*Math.sin(QS(n));return ep(Math.asin(r))}static getEquationOfTime(e){const t=rp.getObliquityCorrection(e),n=rp.getSunGeometricMeanLongitude(e),r=rp.getEarthOrbitEccentricity(e),o=rp.getSunGeometricMeanAnomaly(e);let a=Math.tan(QS(t)/2);a*=a;const i=Math.sin(2*QS(n)),s=Math.sin(QS(o));return 4*ep(a*i-2*r*s+4*r*a*s*Math.cos(2*QS(n))-.5*a*a*Math.sin(4*QS(n))-1.25*r*r*Math.sin(2*QS(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=QS(e),o=QS(t);return Math.acos(Math.cos(QS(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=QS(e),o=QS(t);return-Math.acos(Math.cos(QS(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=rp.getJulianDay(e.toPlainDate()),o=rp.getJulianCenturiesFromJulianDay(r),a=rp.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=QS(n-i),c=QS(rp.getSunDeclination(o)),u=QS(t);return ep(Math.asin(Math.sin(u)*Math.sin(c)+Math.cos(u)*Math.cos(c)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=rp.getJulianDay(e.toPlainDate()),o=rp.getJulianCenturiesFromJulianDay(r),a=rp.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=QS(n-i),c=QS(rp.getSunDeclination(o)),u=QS(t);return ep(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(u)-Math.tan(c)*Math.cos(u))))+180}static getSunriseUTC(e,t,n,r){const o=rp.getJulianCenturiesFromJulianDay(e),a=rp.getSolarNoonUTC(o,n),i=rp.getJulianCenturiesFromJulianDay(e+a/1440);let s=rp.getEquationOfTime(i),c=rp.getSunDeclination(i),u=rp.getSunHourAngleAtSunrise(t,c,r),h=n-ep(u),l=4*h,f=720+l-s;const d=rp.getJulianCenturiesFromJulianDay(rp.getJulianDayFromJulianCenturies(o)+f/1440);return s=rp.getEquationOfTime(d),c=rp.getSunDeclination(d),u=rp.getSunHourAngleAtSunrise(t,c,r),h=n-ep(u),l=4*h,f=720+l-s,f}static getSolarNoonUTC(e,t){const n=rp.getJulianCenturiesFromJulianDay(rp.getJulianDayFromJulianCenturies(e)+t/360);let r=rp.getEquationOfTime(n);const o=720+4*t-r,a=rp.getJulianCenturiesFromJulianDay(rp.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=rp.getEquationOfTime(a),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=rp.getJulianCenturiesFromJulianDay(e),a=rp.getSolarNoonUTC(o,n),i=rp.getJulianCenturiesFromJulianDay(e+a/1440);let s=rp.getEquationOfTime(i),c=rp.getSunDeclination(i),u=rp.getSunHourAngleAtSunset(t,c,r),h=n-ep(u),l=4*h,f=720+l-s;const d=rp.getJulianCenturiesFromJulianDay(rp.getJulianDayFromJulianCenturies(o)+f/1440);return s=rp.getEquationOfTime(d),c=rp.getSunDeclination(d),u=rp.getSunHourAngleAtSunset(t,c,r),h=n-ep(u),l=4*h,f=720+l-s,f}}rp.GEOMETRIC_ZENITH=90,rp.CIVIL_ZENITH=96,rp.NAUTICAL_ZENITH=102,rp.ASTRONOMICAL_ZENITH=108,rp.JULIAN_DAY_JAN_1_2000=2451545,rp.JULIAN_DAYS_PER_CENTURY=36525;const op=[["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]],ap=new Map,ip={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"},sp=new Map;class cp extends tp{constructor(e,t,n,r,o,a,i,s){const c="number"==typeof e?e:parseFloat(e);if(isNaN(c)||c<-90||c>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const u="number"==typeof t?t:parseFloat(t);if(isNaN(u)||u<-180||u>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o||null,c,u,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=a,this.geoid=i}getIsrael(){return this.il}getName(){return this.getLocationName()}getShortName(){const e=this.getLocationName();if(!e)return e;const t=e.indexOf(", ");if(-1===t)return e;if("US"===this.cc&&"D"===e[t+2]){if("C"===e[t+3])return e.substring(0,t+4);if("."===e[t+3]&&"C"===e[t+4])return e.substring(0,t+6)}return e.substring(0,t)}getCountryCode(){return this.cc}getTzid(){return this.getTimeZone()}getTimeFormatter(){return function(e){const t=sp.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return sp.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return ap.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 ip[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":ip[t]}static addLocation(e,t){const n=e.toLowerCase();return!ap.has(n)&&(ap.set(n,t),!0)}}for(const e of op){const t=new cp(e[2],e[3],"IL"===e[1],e[4],e[0],e[1],void 0,e[5]);cp.addLocation(e[0],t)}function up(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}Object.defineProperties(globalThis,Mi({Temporal:WS})),Object.defineProperties(Intl,Mi({DateTimeFormat:qS})),Object.defineProperties(Date.prototype,Mi({toTemporalInstant:function(){return oS(pc(ws(this.valueOf(),Uf)))}}));class hp{constructor(e,t,n){const r=function(e){if(s(e))return e;if(Ye.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 rp(e,o),this.useElevation=Boolean(n)}getUseElevation(){return this.useElevation}setUseElevation(e){this.useElevation=e}timeAtAngle(e,t){const n=90+e;return up(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return up(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return up(this.noaa.getSeaLevelSunrise())}sunset(){return up(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return up(this.noaa.getSeaLevelSunset())}dawn(){return up(this.noaa.getBeginCivilTwilight())}dusk(){return up(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new hp(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 up(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 up(rp.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=ye("UTC",t),r=ye(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?"+":"-")+de(Math.floor(r/60))+":"+de(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?"0000-00-00T00:00:00Z":ye(e,t).substring(0,19)+hp.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 hp(e,t,n).sunset();let o=new Ye(t);const a=r.getTime();return isNaN(a)||t.getTime()>=a&&(o=o.next()),o}}const lp={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 fp(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"),a=null==n?void 0:n.hour12;if(void 0!==a&&!a)return e;if(!a&&void 0===lp[o])return e;const i=e.split(":");let s=parseInt(i[0],10);return s<12&&t?(t=t.replace("p","a").replace("P","A"),0===s&&(s=12)):s>12?s%=12:0===s&&(s="00"),`${s}:${i[1]}${t}`}class dp extends Ke{constructor(e,t,n,r,o,a,i){super(e,t,n),this.eventTime=hp.roundTime(r),this.location=o;const s=o.getTimeFormatter();this.eventTimeStr=hp.formatTime(this.eventTime,s);const c=Object.assign(Object.assign({},i),{location:o});this.fmtTime=fp(this.eventTimeStr,"pm",c),void 0!==a&&(this.linkedEvent=a)}render(e){return Ne.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return Ne.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 gp extends dp{constructor(e,t,n,r,o,a){super(e,"Candle lighting",t,n,r,o,a)}getEmoji(){return"🕯️"}}class mp extends dp{constructor(e,t,n,r,o,a,i){super(e,"Havdalah",t,n,r,a,i),o&&(this.havdalahMins=o)}render(e){return this.renderBrief(e)+": "+this.fmtTime}renderBrief(e){let t=Ne.gettext(this.getDesc(),e);if(this.havdalahMins){const n=Ne.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}const yp=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Sp=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],pp="בַּלַּ֥יְלָה";class wp{constructor(e,t){this.m=function(e,t){let n=t-7;n<0&&(n+=_(e));const r=235*Math.floor((e-1)/19)+(e-1)%19*12+Math.floor(((e-1)%19*7+1)/19)+n,o=204+Math.floor(r%1080*793),a=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,i=(o%1080+a%24*1080)%1080;return{year:e,month:t,dayOfWeek:(1+29*r+Math.floor(a/24))%7,hour:a%24,minutes:Math.floor(i/18),chalakim:i%18}}(e,t)}getYear(){return this.m.year}getMonth(){return this.m.month}getMonthName(){return Ye.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:Ne.getLocaleName())&&(e=e.toLowerCase());const r="he"===e||"he-x-nonikud"===e||"h"===e,o=Ne.gettext(this.getMonthName(),e),a=(r?Sp:yp)[this.getDow()],i=this.getMinutes(),s=this.getHour(),c=this.getChalakim(),u=Ne.gettext("Molad",e),h=null!==(n=Ne.lookupTranslation("min",e))&&void 0!==n?n:"minutes",l=Ne.gettext("chalakim",e);if(r){const t=function(e){return e<5?pp:e<12?"בַּבֹּקֶר":e<17?"בַּצׇּהֳרַיִים":e<21?"בָּעֶרֶב":pp}(s),n=`${u} ${o} יִהְיֶה בַּיּוֹם ${a} בשָׁבוּעַ, בְּשָׁעָה ${s} ${t}, ו-${i} ${h} ו-${c} ${l}`;return"he-x-nonikud"===e?Ne.hebrewStripNikkud(n):n}const f=fp(`${s}:00`,"pm",t);return`${u} ${o.replace(/'/g,"’")}: ${a}, ${i} ${h} and ${c} ${l} after ${f}`}}class vp extends Ke{constructor(e,t,n,r){const o=new wp(t,n);super(e,`Molad ${o.getMonthName()} ${t}`,Ve.MOLAD),this.molad=o,this.options=r}render(e){return this.molad.render(e,this.options)}}class Ap extends Ke{constructor(e,t){if(super(e,`Omer ${t}`,Ve.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){ee(e);const[n,r]=te(e),o=Q[t],a=o.words[n];return(o.words[r]+" "+(2===n||6===n?o.infix26:o.infix)+a).normalize()}(this.omer,e)}render(e){"string"==typeof(e=null!=e?e:Ne.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e||"h"===e,n=this.omer;return(t?q(n):Ne.ordinal(n,e))+" "+Ne.gettext("day of the Omer",e)}renderBrief(e){return Ne.gettext("Omer",e)+" "+Ne.gettext("day",e)+" "+this.omer}getEmoji(){return"string"==typeof this.emoji?this.emoji:function(e){let t;return ee(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:Ne.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e?"he":"en",n=ne(this.omer,t);return"he-x-nonikud"===e?Ne.hebrewStripNikkud(n):n}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}class bp 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 Tp{constructor(e,t){e=+e,this.year=e;const n=new Ye(1,A.TISHREI,e),r=n.abs(),o=n.getDay()+1;this.firstSaturday=Ye.dayOnOrBefore(6,r+6);const a=+Ye.isLeapYear(e);this.il=Boolean(t);const i=function(e){const t=Ye.longCheshvan(e),n=Ye.shortKislev(e);return t&&!n?2:!t&&n?0:1}(e);let s=`${a}${o}${i}`;if($p[s]||(s+=+this.il),this.theSedraArray=$p[s],!this.theSedraArray)throw new Error(`improper sedra year type ${s} calculated for ${e}`)}get(e){return this.lookup(e).parsha}getString(e,t){const n=this.get(e),r=t||Ne.getLocaleName();let o=Ne.gettext(n[0],r);if(2===n.length){o+=("he"===r?"־":"-")+Ne.gettext(n[1],r)}return o=o.replace(/'/g,"’"),Ne.gettext("Parashat",r)+" "+o}isParsha(e){return!this.lookup(e).chag}find(e){if("number"==typeof e){if(e>=Mp.length||e<0&&!Ep(e))throw new RangeError(`Invalid parsha number: ${e}`);const t=this.theSedraArray.indexOf(e);return-1===t?null:new Ye(this.firstSaturday+7*t)}if("string"==typeof e){const t=Ip.get(e);if("number"==typeof t)return this.find(t);if(-1!==e.indexOf("-"))return this.find(e.split("-"));{const t=this.theSedraArray.indexOf(e);return-1===t?null:new Ye(this.firstSaturday+7*t)}}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=Ip.get(n),a=Ip.get(r);if("number"!=typeof o||"number"!=typeof a||a!==o+1||!Ep(-o))throw new RangeError(`Unrecognized parsha name: ${n}-${r}`);return this.find(-o)}return null}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(e){const t="number"==typeof e?e:Ye.isHDate(e)?e.abs():NaN;if(isNaN(t))throw new TypeError(`Bad date argument: ${e}`);const n=Ye.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return zp(this.year+1,this.il).lookup(n)}if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[Mp[o]],chag:!1,num:o+1};const a=Op(o);return{parsha:[Mp[a],Mp[a+1]],chag:!1,num:[a+1,a+2]}}}const Mp=["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"],Ip=new Map;for(let e=0;e<Mp.length;e++){const t=Mp[e];Ip.set(t,e)}function Ep(e){switch(e){case-21:case-26:case-28:case-31:case-38:case-41:case-50:return!0}return!1}function Op(e){return-e}const Np="Sukkot Shabbat Chol ha-Moed",Cp="Pesach",Hp="Pesach I",Dp="Pesach Shabbat Chol ha-Moed",_p="Pesach VII",kp="Pesach VIII",Lp="Shavuot";function Rp(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const Yp=[51,52,Np],Pp=[52,"Yom Kippur",Np],jp=["Rosh Hashana",52,"Sukkot","Shmini Atzeret"],Bp=Rp(0,20),Fp=Rp(0,27),Up=Rp(33,40),xp=Rp(43,49),Zp=Rp(43,50),$p={"020":Yp.concat(Bp,Op(21),23,24,Cp,25,Op(26),Op(28),30,Op(31),Up,Op(41),xp,Op(50)),"0220":Yp.concat(Bp,Op(21),23,24,Cp,25,Op(26),Op(28),30,Op(31),33,Lp,Rp(34,37),Op(38),40,Op(41),xp,Op(50)),"0510":Pp.concat(Bp,Op(21),23,24,Hp,kp,25,Op(26),Op(28),30,Op(31),Up,Op(41),Zp),"0511":Pp.concat(Bp,Op(21),23,24,Cp,25,Op(26),Op(28),Rp(30,40),Op(41),Zp),"052":Pp.concat(Rp(0,24),_p,25,Op(26),Op(28),30,Op(31),Up,Op(41),Zp),"070":jp.concat(Bp,Op(21),23,24,_p,25,Op(26),Op(28),30,Op(31),Up,Op(41),Zp),"072":jp.concat(Bp,Op(21),23,24,Dp,25,Op(26),Op(28),30,Op(31),Up,Op(41),xp,Op(50)),1200:Yp.concat(Fp,Dp,Rp(28,33),Lp,Rp(34,37),Op(38),40,Op(41),xp,Op(50)),1201:Yp.concat(Fp,Dp,Rp(28,40),Op(41),xp,Op(50)),1220:Yp.concat(Fp,Hp,kp,Rp(28,40),Op(41),Zp),1221:Yp.concat(Fp,Cp,Rp(28,50)),150:Pp.concat(Rp(0,28),_p,Rp(29,50)),152:Pp.concat(Rp(0,28),Dp,Rp(29,49),Op(50)),170:jp.concat(Fp,Dp,Rp(28,40),Op(41),xp,Op(50)),1720:jp.concat(Fp,Dp,Rp(28,33),Lp,Rp(34,37),Op(38),40,Op(41),xp,Op(50))};$p["0221"]=$p["020"],$p["0310"]=$p["0220"],$p["0311"]=$p["020"],$p[1310]=$p[1220],$p[1311]=$p[1221],$p[1721]=$p[170];const Vp=new bp({maxSize:400});function zp(e,t){const n=`${e}-${t?1:0}`;let r=Vp.get(n);return r||(r=new Tp(e,t),Vp.set(n,r)),r}class Kp extends Ke{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("-"),Ve.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){const t=null!=e?e:Ne.getLocaleName(),n=this.parsha;let r=Ne.gettext(n[0],e);if(2===n.length){r+=("he"===t?"־":"-")+Ne.gettext(n[1],e)}r=r.replace(/'/g,"’");return(Ne.gettext("Parashat",e)+" "+r).normalize()}basename(){return this.parsha.join("-")}url(){if(this.getDate().greg().getFullYear()<100)return;const e=this.urlDateSuffix(),t="https://www.hebcal.com/sedrot/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+e;return this.il?t+"?i=on":t}urlDateSuffix(){return Se(this.getDate().greg()).replace(/-/g,"")}}const Jp=A.NISAN,Gp=A.IYYAR,Wp=A.SIVAN,qp=A.TAMUZ,Xp=A.AV,Qp=A.ELUL,ew=A.TISHREI,tw=A.CHESHVAN,nw=A.KISLEV,rw=A.SHVAT,ow=A.ADAR_II,aw=Ve.CHAG,iw=Ve.LIGHT_CANDLES,sw=Ve.YOM_TOV_ENDS,cw=Ve.CHUL_ONLY,uw=Ve.IL_ONLY,hw=Ve.LIGHT_CANDLES_TZEIS,lw=Ve.CHANUKAH_CANDLES,fw=Ve.MAJOR_FAST,dw=Ve.MINOR_HOLIDAY,gw=Ve.EREV,mw=Ve.CHOL_HAMOED,yw="🫓",Sw="🌿🍋",pw="Rosh Hashana II",ww="Erev Yom Kippur",vw="Yom Kippur",Aw="Erev Sukkot",bw="Sukkot I",Tw="Sukkot II",Mw="Sukkot III (CH''M)",Iw="Sukkot IV (CH''M)",Ew="Sukkot V (CH''M)",Ow="Sukkot VI (CH''M)",Nw="Shmini Atzeret",Cw="Simchat Torah",Hw="Sukkot II (CH''M)",Dw="Sukkot VII (Hoshana Raba)",_w="Chanukah: 1 Candle",kw="Tu BiShvat",Lw="Erev Purim",Rw="Purim",Yw="Shushan Purim",Pw="Erev Pesach",jw="Pesach I",Bw="Pesach II",Fw="Pesach II (CH''M)",Uw="Pesach III (CH''M)",xw="Pesach IV (CH''M)",Zw="Pesach V (CH''M)",$w="Pesach VI (CH''M)",Vw="Pesach VII",zw="Pesach VIII",Kw="Pesach Sheni",Jw="Lag BaOmer",Gw="Erev Shavuot",Ww="Shavuot",qw="Shavuot I",Xw="Shavuot II",Qw="Tu B'Av",ev="Rosh Hashana LaBehemot",tv="Erev Rosh Hashana",nv="Yom Yerushalayim",rv="Ben-Gurion Day",ov="Family Day",av="Yitzhak Rabin Memorial Day",iv="Herzl Day",sv="Jabotinsky Day",cv="Sigd",uv="Yom HaAliyah",hv="Yom HaAliyah School Observance",lv="Hebrew Language Day",fv={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:rv,CHANUKAH_1_CANDLE:_w,EREV_PESACH:Pw,EREV_PURIM:Lw,EREV_ROSH_HASHANA:tv,EREV_SHAVUOT:Gw,EREV_SUKKOT:Aw,EREV_YOM_KIPPUR:ww,FAMILY_DAY:ov,HEBREW_LANGUAGE_DAY:lv,HERZL_DAY:iv,JABOTINSKY_DAY:sv,LAG_BAOMER:Jw,PESACH_I:jw,PESACH_II:Bw,PESACH_III_CHM:Uw,PESACH_II_CHM:Fw,PESACH_IV_CHM:xw,PESACH_SHENI:Kw,PESACH_VII:Vw,PESACH_VIII:zw,PESACH_VI_CHM:$w,PESACH_V_CHM:Zw,PURIM:Rw,ROSH_HASHANA_II:pw,ROSH_HASHANA_LABEHEMOT:ev,SHAVUOT:Ww,SHAVUOT_I:qw,SHAVUOT_II:Xw,SHMINI_ATZERET:Nw,SHUSHAN_PURIM:Yw,SIGD:cv,SIMCHAT_TORAH:Cw,SUKKOT_I:bw,SUKKOT_II:Tw,SUKKOT_III_CHM:Mw,SUKKOT_II_CHM:Hw,SUKKOT_IV_CHM:Iw,SUKKOT_VII_HOSHANA_RABA:Dw,SUKKOT_VI_CHM:Ow,SUKKOT_V_CHM:Ew,TU_BAV:Qw,TU_BISHVAT:kw,YITZHAK_RABIN_MEMORIAL_DAY:av,YOM_HAALIYAH:uv,YOM_HAALIYAH_SCHOOL_OBSERVANCE:hv,YOM_KIPPUR:vw,YOM_YERUSHALAYIM:nv},dv=[{mm:ew,dd:2,desc:pw,flags:aw|sw,emoji:"🍏🍯"},{mm:ew,dd:9,desc:ww,flags:gw|iw},{mm:ew,dd:10,desc:vw,flags:aw|fw|sw},{mm:ew,dd:14,desc:Aw,flags:cw|gw|iw,emoji:Sw},{mm:ew,dd:15,desc:bw,flags:cw|aw|hw,emoji:Sw},{mm:ew,dd:16,desc:Tw,flags:cw|aw|sw,emoji:Sw},{mm:ew,dd:17,desc:Mw,flags:cw|mw,chmDay:1,emoji:Sw},{mm:ew,dd:18,desc:Iw,flags:cw|mw,chmDay:2,emoji:Sw},{mm:ew,dd:19,desc:Ew,flags:cw|mw,chmDay:3,emoji:Sw},{mm:ew,dd:20,desc:Ow,flags:cw|mw,chmDay:4,emoji:Sw},{mm:ew,dd:22,desc:Nw,flags:cw|aw|hw},{mm:ew,dd:23,desc:Cw,flags:cw|aw|sw},{mm:ew,dd:14,desc:Aw,flags:uw|gw|iw,emoji:Sw},{mm:ew,dd:15,desc:bw,flags:uw|aw|sw,emoji:Sw},{mm:ew,dd:16,desc:Hw,flags:uw|mw,chmDay:1,emoji:Sw},{mm:ew,dd:17,desc:Mw,flags:uw|mw,chmDay:2,emoji:Sw},{mm:ew,dd:18,desc:Iw,flags:uw|mw,chmDay:3,emoji:Sw},{mm:ew,dd:19,desc:Ew,flags:uw|mw,chmDay:4,emoji:Sw},{mm:ew,dd:20,desc:Ow,flags:uw|mw,chmDay:5,emoji:Sw},{mm:ew,dd:22,desc:Nw,flags:uw|aw|sw},{mm:ew,dd:21,desc:Dw,flags:iw|mw,chmDay:-1,emoji:Sw},{mm:nw,dd:24,desc:_w,flags:gw|dw|lw,emoji:"🕎1️⃣"},{mm:rw,dd:15,desc:kw,flags:dw,emoji:"🌳"},{mm:ow,dd:13,desc:Lw,flags:gw|dw,emoji:"🎭️📜"},{mm:ow,dd:14,desc:Rw,flags:dw,emoji:"🎭️📜"},{mm:ow,dd:15,desc:Yw,flags:dw,emoji:"🎭️📜"},{mm:Jp,dd:14,desc:Pw,flags:uw|gw|iw,emoji:"🫓🍷"},{mm:Jp,dd:15,desc:jw,flags:uw|aw|sw,emoji:yw},{mm:Jp,dd:16,desc:Fw,flags:uw|mw,chmDay:1,emoji:yw},{mm:Jp,dd:17,desc:Uw,flags:uw|mw,chmDay:2,emoji:yw},{mm:Jp,dd:18,desc:xw,flags:uw|mw,chmDay:3,emoji:yw},{mm:Jp,dd:19,desc:Zw,flags:uw|mw,chmDay:4,emoji:yw},{mm:Jp,dd:20,desc:$w,flags:uw|mw|iw,chmDay:5,emoji:yw},{mm:Jp,dd:21,desc:Vw,flags:uw|aw|sw,emoji:yw},{mm:Jp,dd:14,desc:Pw,flags:cw|gw|iw,emoji:"🫓🍷"},{mm:Jp,dd:15,desc:jw,flags:cw|aw|hw,emoji:"🫓🍷"},{mm:Jp,dd:16,desc:Bw,flags:cw|aw|sw,emoji:yw},{mm:Jp,dd:17,desc:Uw,flags:cw|mw,chmDay:1,emoji:yw},{mm:Jp,dd:18,desc:xw,flags:cw|mw,chmDay:2,emoji:yw},{mm:Jp,dd:19,desc:Zw,flags:cw|mw,chmDay:3,emoji:yw},{mm:Jp,dd:20,desc:$w,flags:cw|mw|iw,chmDay:4,emoji:yw},{mm:Jp,dd:21,desc:Vw,flags:cw|aw|hw,emoji:yw},{mm:Jp,dd:22,desc:zw,flags:cw|aw|sw,emoji:yw},{mm:Gp,dd:14,desc:Kw,flags:dw},{mm:Gp,dd:18,desc:Jw,flags:dw,emoji:"🔥"},{mm:Wp,dd:5,desc:Gw,flags:gw|iw,emoji:"⛰️🌸"},{mm:Wp,dd:6,desc:Ww,flags:uw|aw|sw,emoji:"⛰️🌸"},{mm:Wp,dd:6,desc:qw,flags:cw|aw|hw,emoji:"⛰️🌸"},{mm:Wp,dd:7,desc:Xw,flags:cw|aw|sw,emoji:"⛰️🌸"},{mm:Xp,dd:15,desc:Qw,flags:dw,emoji:"❤️"},{mm:Qp,dd:1,desc:ev,flags:dw,emoji:"🐑"},{mm:Qp,dd:29,desc:tv,flags:gw|iw,emoji:"🍏🍯"}],gv=[{firstYear:5727,mm:Gp,dd:28,desc:nv,chul:!0},{firstYear:5737,mm:nw,dd:6,desc:rv,satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:rw,dd:30,desc:ov},{firstYear:5758,mm:tw,dd:12,desc:av,friSatMovetoThu:!0},{firstYear:5764,mm:Gp,dd:10,desc:iv,satPostponeToSun:!0},{firstYear:5765,mm:qp,dd:29,desc:sv,satPostponeToSun:!0},{firstYear:5769,mm:tw,dd:29,desc:cv,chul:!0,suppressEmoji:!0},{firstYear:5777,mm:Jp,dd:10,desc:uv,chul:!0},{firstYear:5777,mm:tw,dd:7,desc:hv},{firstYear:5773,mm:A.TEVET,dd:21,desc:lv,friSatMovetoThu:!0}];class mv extends Ke{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()&Ve.IL_ONLY?e+"?i=on":e}urlDateSuffix(){const e=this.getDate().greg().getFullYear();return String(e)}getEmoji(){return this.emoji?this.emoji:this.getFlags()&Ve.SPECIAL_SHABBAT?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;switch(this.getDesc()){case fv.LAG_BAOMER:case fv.LEIL_SELICHOT:case fv.PESACH_SHENI:case fv.EREV_PURIM:case fv.PURIM_KATAN:case fv.SHUSHAN_PURIM:case fv.TU_BAV:case fv.TU_BISHVAT:case fv.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 mv(this.date,this.desc,this.mask);for(const t in this)this.hasOwnProperty(t)&&Object.defineProperty(e,t,{value:this[t]});return e}}class yv extends mv{urlDateSuffix(){return Se(this.getDate().greg()).replace(/-/g,"")}}class Sv extends mv{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return Ne.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const pv="Rosh Chodesh";class wv extends mv{constructor(e,t){super(e,`${pv} ${t}`,Ve.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=Ne.gettext(t,e).replace(/'/g,"’");return Ne.gettext(pv,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}const vv="Shabbat Mevarchim Chodesh";class Av extends Ke{constructor(e,t,n){if(super(e,`${vv} ${t}`,Ve.SHABBAT_MEVARCHIM),this.monthName=t,n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n===Ye.monthsInYear(t)?A.NISAN:n+1,o=new wp(t,r);this.memo=o.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=Ne.gettext(this.monthName,e).replace(/'/g,"’");return Ne.gettext(vv,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}const bv=new Map;class Tv{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);bv.set(e,t)}static lookup(e,t,n){const r=bv.get(e);return"function"==typeof r?r(t,n):null}}const Mv="5.5.0";function Iv(e,t,n,r,o){let a=!1,i=o,s=e?e.getFlags():Ve.LIGHT_CANDLES;void 0!==e?r||(s&(Ve.LIGHT_CANDLES_TZEIS|Ve.CHANUKAH_CANDLES)?i=!0:s&Ve.YOM_TOV_ENDS&&(a=!0,i=!0)):o&&(a=!0,s=Ve.LIGHT_CANDLES_TZEIS);const c=i?n.havdalahMins:n.candleLightingMins,u=n.location,h=Boolean(n.useElevation),l=new hp(u,t,h),f=c?l.sunsetOffset(c,!0):l.tzeit(n.havdalahDeg);if(!isNaN(f.getTime()))return a?new mp(t,s,f,u,n.havdalahMins,e,n):new gp(t,s,f,u,e,n)}const Ev="Fast begins",Ov="Fast ends";function Nv(e,t,n,r){const o=r.location,a=e.getDate();return new dp(a,n,e.getFlags(),t,o,e,r)}class Cv extends mv{constructor(e,t,n,r,o){super(e,t,n),this.eventTime=hp.roundTime(r);const a=o.getTimeFormatter();this.eventTimeStr=hp.formatTime(this.eventTime,a),this.location=o}}const Hv=0,Dv=2,_v=5,kv=6,Lv=A.NISAN,Rv=A.IYYAR;function Yv(e){if(e<5708)return null;let t;const n=new Ye(15,Lv,e).getDay();return t=n===Hv?2:n===kv?3:e<5764?4:n===Dv?5:4,new Ye(t,Rv,e)}const Pv="Yom Kippur Katan";class jv extends mv{constructor(e,t){super(e,`${Pv} ${t}`,Ve.MINOR_FAST|Ve.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=Ne.gettext(this.nextMonthName,e).replace(/'/g,"’");return Ne.gettext(Pv,e)+" "+t}renderBrief(e){return Ne.gettext(Pv,e)}url(){}}const Bv=Ve.CHAG,Fv=Ve.IL_ONLY,Uv=Ve.LIGHT_CANDLES_TZEIS,xv=Ve.CHANUKAH_CANDLES,Zv=Ve.MINOR_FAST,$v=Ve.SPECIAL_SHABBAT,Vv=Ve.MODERN_HOLIDAY,zv=Ve.MAJOR_FAST,Kv=Ve.MINOR_HOLIDAY,Jv=Ve.EREV,Gv=A.NISAN,Wv=A.TAMUZ,qv=A.AV,Xv=A.TISHREI,Qv=A.KISLEV,eA=A.TEVET,tA=A.ADAR_I,nA=A.ADAR_II,rA={emoji:"🇮🇱"},oA=new bp({maxSize:400}),aA=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function iA(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=oA.get(e);if(t)return t;const n=new Ye(1,Xv,e),r=new Ye(15,Gv,e),o=new Map;function a(...e){for(const t of e){const e=t.date.toString(),n=o.get(e);"object"==typeof n?n[0].getFlags()&Jv?n.unshift(t):n.push(t):o.set(e,[t])}}for(const t of dv){const n=new Ye(t.dd,t.mm,e),r=new mv(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),a(r)}a(new Sv(n,e,Bv|Uv));const i=4===n.getDay()?4:3;a(new mv(new Ye(i,Xv,e),fv.TZOM_GEDALIAH,Zv)),a(new mv(new Ye(Ye.dayOnOrBefore(6,7+n.abs())),fv.SHABBAT_SHUVA,$v));const s=Ye.shortKislev(e)?new Ye(1,eA,e):new Ye(30,Qv,e);a(new mv(s,fv.CHAG_HABANOT,Kv));for(let t=2;t<=8;t++){const n=new Ye(23+t,Qv,e);a(new mv(n,`Chanukah: ${t} Candles`,Kv|xv,{chanukahDay:t-1,emoji:"🕎"+aA[t]}))}a(new mv(new Ye(32,Qv,e),fv.CHANUKAH_8TH_DAY,Kv,{chanukahDay:8,emoji:"🕎"})),a(new yv(new Ye(10,eA,e),fv.ASARA_BTEVET,Zv));const c=r.abs();a(new mv(new Ye(Ye.dayOnOrBefore(6,c-43)),fv.SHABBAT_SHEKALIM,$v),new mv(new Ye(Ye.dayOnOrBefore(6,c-30)),fv.SHABBAT_ZACHOR,$v),new mv(new Ye(c-(2===r.getDay()?33:31)),fv.TAANIT_ESTHER,Zv));const u=Ye.dayOnOrBefore(6,c-14);a(new mv(new Ye(u-7),fv.SHABBAT_PARAH,$v),new mv(new Ye(u),fv.SHABBAT_HACHODESH,$v),new mv(new Ye(Ye.dayOnOrBefore(6,c-1)),fv.SHABBAT_HAGADOL,$v),new mv(6===r.prev().getDay()?r.onOrBefore(4):new Ye(14,Gv,e),fv.TAANIT_BECHOROT,Zv)),a(new mv(new Ye(Ye.dayOnOrBefore(6,new Ye(1,Xv,e+1).abs()-4)),fv.LEIL_SELICHOT,Kv,{emoji:"🕍"})),0===r.getDay()&&a(new mv(new Ye(16,nA,e),fv.PURIM_MESHULASH,Kv)),Ye.isLeapYear(e)&&(a(new mv(new Ye(14,tA,e),fv.PURIM_KATAN,Kv,{emoji:"🎭️"})),a(new mv(new Ye(15,tA,e),fv.SHUSHAN_PURIM_KATAN,Kv,{emoji:"🎭️"})));const h=function(e){if(e<5711)return null;let t=new Ye(27,Lv,e);return t.getDay()===_v?t=new Ye(26,Lv,e):t.getDay()===Hv&&(t=new Ye(28,Lv,e)),t}(e);h&&a(new mv(h,fv.YOM_HASHOAH,Vv));const l=Yv(e);l&&a(new mv(l,fv.YOM_HAZIKARON,Vv,rA),new mv(l.next(),fv.YOM_HAATZMA_UT,Vv,rA));for(const t of gv)if(e>=t.firstYear){let n=new Ye(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new Ye(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?Vv:Vv|Fv,i=new mv(n,t.desc,o);t.suppressEmoji||(i.emoji="🇮🇱"),a(i)}let f,d=new Ye(17,Wv,e);6===d.getDay()&&(d=new Ye(18,Wv,e),f={observed:!0}),a(new mv(d,fv.TZOM_TAMMUZ,Zv,f));let g,m=new Ye(9,qv,e),y=fv.TISHA_BAV;6===m.getDay()&&(m=m.next(),g={observed:!0},y+=" (observed)");const S=m.abs();a(new mv(new Ye(Ye.dayOnOrBefore(6,S)),fv.SHABBAT_CHAZON,$v),new mv(m.prev(),fv.EREV_TISHA_BAV,Jv|zv,g),new mv(m,y,zv,g),new mv(new Ye(Ye.dayOnOrBefore(6,S+7)),fv.SHABBAT_NACHAMU,$v));const p=Ye.monthsInYear(e);for(let t=1;t<=p;t++){const n=Ye.getMonthName(t,e);30===(t===Gv?Ye.daysInMonth(Ye.monthsInYear(e-1),e-1):Ye.daysInMonth(t-1,e))?(a(new wv(new Ye(1,t,e),n)),a(new wv(new Ye(30,t-1,e),n))):t!==Xv&&a(new wv(new Ye(1,t,e),n))}for(let t=A.IYYAR;t<=p;t++){const n=t+1;if(n===Xv||n===A.CHESHVAN||n===eA)continue;let r=new Ye(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const i=Ye.getMonthName(n,e);a(new jv(r,i))}const w=zp(e,!1).find(15);a(new mv(w,fv.SHABBAT_SHIRAH,$v));const v=function(e){const t=Ye.isLeapYear(e),n=t?nA:Gv,r=t?20:1,o=Ye.hebrew2abs(e,n,r);for(let e=0;e<=40;e++){const t=o+e;if((t+1373429)%10227==172)return t}return 0}(e);if(v){const e=new Ye(v);a(new mv(e,fv.BIRKAT_HACHAMAH,Kv,{emoji:"☀️"}))}return oA.set(e,o),o}function sA(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}const cA={shacharit:!1,mincha:!1,allCongs:!1};function uA(e,t){return hA(e,t,!0)}function hA(e,t,n){const r=function(e,t){const n=Ye.isLeapYear(e),r=Ye.monthsInYear(e);let o=new Ye(9,A.AV,e);6===o.getDay()&&(o=o.next());let a=new Ye(15,A.ADAR_II,e);6===a.getDay()&&(a=a.next());const i=[new Ye(2,A.TISHREI,e)].concat(sA(1,r).map((t=>new Ye(1,t,e))),sA(1,r).filter((t=>30===Ye.daysInMonth(t,e))).map((t=>new Ye(30,t,e))),sA(1,Ye.daysInMonth(A.NISAN,e)).map((t=>new Ye(t,A.NISAN,e))),new Ye(18,A.IYYAR,e),sA(1,8-(t?1:0)).map((t=>new Ye(t,A.SIVAN,e))),o,new Ye(15,A.AV,e),new Ye(29,A.ELUL,e),sA(9,24-(t?1:0)).map((t=>new Ye(t,A.TISHREI,e))),sA(25,33).map((t=>new Ye(t,A.KISLEV,e))),new Ye(15,A.SHVAT,e),new Ye(14,A.ADAR_II,e),a,n?new Ye(14,A.ADAR_I,e):[]),s=[new Ye(14,A.IYYAR,e)].concat(sA(1,13).map((t=>new Ye(t,A.SIVAN,e))),sA(20,31).map((t=>new Ye(t,A.TISHREI,e))),e>=5708?Yv(e).next():[],e>=5727?new Ye(28,A.IYYAR,e):[]),c=[new Ye(29,A.ELUL,e-1),new Ye(9,A.TISHREI,e),new Ye(14,A.IYYAR,e)];return{none:i.map((e=>e.abs())).sort(((e,t)=>e-t)),some:s.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:c.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.yy,t),o=e.abs();if(r.none.indexOf(o)>-1)return cA;const a=e.getDay(),i={shacharit:!1,mincha:!1,allCongs:!1};-1===r.some.indexOf(o)&&(i.allCongs=!0),6!==a&&(i.shacharit=!0);const s=o+1;if(n&&-1===r.yesPrev.indexOf(s)){const e=hA(new Ye(s),t,!1);i.mincha=e.shacharit}else i.mincha=5!==a;return!i.allCongs||i.mincha||i.shacharit?i:cA}const lA=A.TISHREI;function fA(e){if("number"==typeof e)return e;if(s(e))return u(e);if(Ye.isHDate(e))return e.abs();throw new TypeError(`Invalid date type: ${e}`)}function dA(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[fA(e.start),fA(e.end)];const t=Boolean(e.isHebrewYear),n=function(e){return void 0!==e.year?Number(e.year):e.isHebrewYear?(new Ye).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 Ye.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 Ye(1,e||lA,t);let o=r.abs();const a=e?o+r.daysInMonth():new Ye(1,lA,t+n).abs()-1;!e&&t>1&&o--;return[o,a]}(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 a=u(o);let s;if(e)s=a+i(e,t)-1;else{const e=t+n,r=new Date(e,0,1);e<100&&r.setFullYear(e),s=u(r)-1}return[a,s]}(r,n,o)}const gA=A.NISAN,mA=A.SIVAN,yA=A.ELUL,SA=A.TISHREI,pA=Ve.LIGHT_CANDLES,wA=Ve.YOM_TOV_ENDS,vA=Ve.CHUL_ONLY,AA=Ve.IL_ONLY,bA=Ve.LIGHT_CANDLES_TZEIS,TA=Ve.CHANUKAH_CANDLES,MA=Ve.MINOR_FAST,IA=Ve.SPECIAL_SHABBAT,EA=Ve.MODERN_HOLIDAY,OA=Ve.MAJOR_FAST,NA=Ve.ROSH_CHODESH,CA=Ve.PARSHA_HASHAVUA,HA=Ve.DAF_YOMI,DA=Ve.MISHNA_YOMI,_A=Ve.NACH_YOMI,kA=Ve.YERUSHALMI_YOMI,LA=Ve.OMER_COUNT,RA=Ve.SHABBAT_MEVARCHIM,YA=Ve.MINOR_HOLIDAY,PA=Ve.EREV,jA=Ve.CHOL_HAMOED,BA=Ve.YOM_KIPPUR_KATAN,FA=new Set,UA={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,fastEndDeg:1,sedrot:1,il:1,noMinorFast:1,noModern:1,shabbatMevarchim:1,noRoshChodesh:1,noSpecialShabbat:1,noHolidays:1,omer:1,molad:1,ashkenazi:1,locale:1,addHebrewDates:1,addHebrewDatesForEvents:1,appendHebrewToSubject:1,mask:1,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1};const xA={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},ZA={281184:40,294801:30,293067:30};function $A(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof cp))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=ZA[n];if("number"==typeof e)return e}const r=e.getShortName();if(r){const e=xA[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=8.5,"number"!=typeof e.fastEndDeg&&(e.fastEndDeg=7.0833333)}function VA(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask||0;t&NA&&delete e.noRoshChodesh;t&EA&&delete e.noModern;t&MA&&delete e.noMinorFast;t&IA&&delete e.noSpecialShabbat;t&CA&&(e.sedrot=!0);t&(HA|DA|_A|kA)&&(e.dailyLearning=e.dailyLearning||{},t&HA&&(e.dailyLearning.dafYomi=!0),t&DA&&(e.dailyLearning.mishnaYomi=!0),t&_A&&(e.dailyLearning.nachYomi=!0),t&kA&&(e.dailyLearning.yerushalmi=1));t&LA&&(e.omer=!0);t&RA&&(e.shabbatMevarchim=!0);t&BA&&(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;if(e.noHolidays||(r|=NA|wA|MA|IA|EA|OA|YA|PA|jA|pA|bA|TA),e.candlelighting&&(r|=pA|bA|wA),e.noRoshChodesh&&(r&=~NA),e.noModern&&(r&=~EA),e.noMinorFast&&(r&=~MA),e.noSpecialShabbat&&(r&=~IA,r&=~RA),r|=n?AA:vA,e.sedrot&&(r|=CA),e.omer&&(r|=LA),e.shabbatMevarchim&&(r|=RA),e.yomKippurKatan&&(r|=BA),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=HA),t.mishnaYomi&&(r|=DA),t.nachYomi&&(r|=_A),t.yerushalmi&&(r|=kA)}return r}const zA=pA|bA|TA|wA,KA=new cp(0,0,!1,"UTC");function JA(e){return e.observedInIsrael()}function GA(e){return e.observedInDiaspora()}class WA{constructor(){}static calendar(e={}){$A(e=Object.assign({},e));const t=e.location=e.location||KA,n=e.il=e.il||t.getIsrael()||!1,r="number"==typeof e.mask;if(e.mask=VA(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(!Ne.useLocale(t))throw new TypeError(`Locale '${t}' not found; did you forget to import @hebcal/locales?`)}else Ne.useLocale("en");const o=[];let a,i,s=-1,c=-1,u=-1;const l=dA(e);!function(e){for(const t of Object.keys(e))void 0!==UA[t]||FA.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),FA.add(t))}(e);const f=l[0],d=l[1];h(f).getFullYear()<100&&(e.candlelighting=!1);for(let t=f;t<=d;t++){const h=new Ye(t),l=h.getFullYear();l!==u&&(u=l,i=iA(u),e.sedrot&&(a=zp(u,n)),e.omer&&(s=Ye.hebrew2abs(u,gA,16),c=Ye.hebrew2abs(u,mA,5)));const f=o.length,d=h.getDay(),g=5===d,m=6===d;let y;const S=i.get(h.toString())||[];for(const t of S)y=XA(y,o,t,e,g,m,r);if(e.sedrot&&m){const e=a.lookup(t);e.chag||o.push(new Kp(h,e.parsha,n,e.num))}const p=e.dailyLearning;if("object"==typeof p){const e=tb(h,p,n);o.push(...e)}if(e.omer&&t>=s&&t<=c){const n=nb(h,t-s+1,e);o.push(n)}if(m&&(e.molad||e.shabbatMevarchim)){const t=QA(h,e);o.push(...t)}if(!y&&e.candlelighting&&(g||m)&&(y=Iv(void 0,h,e,g,m),g&&y&&a&&(y.memo=a.getString(t,e.locale))),y instanceof mp&&(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}static getBirthdayOrAnniversary(e,t){const n=function(e,t){const n=z(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=D(r);let a=n.mm,i=n.dd;return a===$&&!o||a===V&&o?a=_(e):a!==F||30!==i||P(e)?a===U&&30===i&&j(e)?(a=x,i=1):a===$&&30===i&&o&&!D(e)&&(a=B,i=1):(a=U,i=1),{yy:e,mm:a,dd:i}}(e,t);return void 0===n?n:new Ye(n)}static getYahrzeit(e,t){const n=function(e,t){let n=z(t);if(!(e<=n.yy))return n.mm!==F||30!==n.dd||P(n.yy+1)?n.mm===U&&30===n.dd&&j(n.yy+1)?n=H(N(e,x,1)-1):n.mm===V?n.mm=_(e):n.mm!==$||30!==n.dd||D(e)||(n.dd=30,n.mm=Z):n=H(N(e,U,1)-1),n.mm!==F||30!==n.dd||P(e)?n.mm===U&&30===n.dd&&j(e)&&(n.mm=x,n.dd=1):(n.mm=U,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new Ye(n)}static getHolidaysForYear(e){return iA(e)}static getHolidaysForYearArray(e,t){const n=iA(e),r=Ye.hebrew2abs(e,SA,1),o=Ye.hebrew2abs(e+1,SA,1)-1;let a=[];const i=t?JA:GA;for(let e=r;e<=o;e++){const t=new Ye(e),r=n.get(t.toString());if(r){const e=r.filter(i);a=a.concat(e)}}return a}static getHolidaysOnDate(e,t){const n=Ye.isHDate(e)?e:new Ye(e),r=n.toString(),o=iA(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const a=t?JA:GA;return o.filter(a)}static eruvTavshilin(e,t){if(e.getDay()<3||e.getDay()>4)return!1;const n=new Ye(e),r=n.after(5),o=n.next();return!(!qA(r,t)||qA(n,t)||!qA(o,t))}static reformatTimeStr(e,t,n){return fp(e,t,n)}static version(){return Mv}static getSedra(e,t){return zp(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===A.NISAN&&(15===o||16===o)&&e.getFlags()&Ve.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()&Ve.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(WA.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return uA(e,t)}}function qA(e,t){return 0!==(WA.getHolidaysOnDate(e,t)||[]).filter((e=>e.getFlags()&Ve.CHAG)).length}function XA(e,t,n,r,o,a,i){const s=r.il||!1;if(!n.observedIn(s))return e;const c=n.getFlags();if(!r.yomKippurKatan&&c&BA||r.noModern&&c&EA)return e;const u=Boolean(c&OA),h=Boolean(c&MA);if(r.candlelighting&&(u||h)&&(n=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)return e;const r=(e=e.clone()).getDate(),o=r.greg(),a=t.location,i=t.fastEndDeg,s=Boolean(t.useElevation),c=new hp(a,o,s);if("Erev Tish'a B'Av"===n){const n=c.sunset();isNaN(n.getTime())||(e.startEvent=Nv(e,n,Ev,t))}else if(n.startsWith("Tish'a B'Av")){const n=c.tzeit(i);isNaN(n.getTime())||(e.endEvent=Nv(e,n,Ov,t))}else{const n=c.alotHaShachar();if(isNaN(n.getTime())||(e.startEvent=Nv(e,n,Ev,t)),5!==o.getDay()&&(14!==r.getDate()||r.getMonth()!==A.NISAN)){const n=c.tzeit(i);isNaN(n.getTime())||(e.endEvent=Nv(e,n,Ov,t))}}return e}(n,r),n.startEvent&&(u||h&&!r.noMinorFast)&&t.push(n.startEvent)),c&Number(r.mask)||!c&&!i){if(r.candlelighting&&c&zA){const t=n.getDate();if(e=Iv(n,t,r,o,a),c&TA&&e&&!r.noHolidays){const i=function(e,t,n){const r=n.location,o=Boolean(n.useElevation),a=new hp(r,t.greg(),o).beinHaShmashos();if(isNaN(a.getTime()))return null;const i=new Cv(t,e.getDesc(),e.getFlags(),a,r);return i.emoji=e.emoji,i.chanukahDay=e.chanukahDay,i}(n,t,r);i&&((o||a)&&(i.eventTime=e.eventTime,i.eventTimeStr=e.eventTimeStr),n=i),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&c&BA)&&t.push(n)}return n.endEvent&&(u||h&&!r.noMinorFast)&&t.push(n.endEvent),e}function QA(e,t){const n=[],r=e.getMonth(),o=e.getDate();if(r!==yA&&o>=23&&o<=29){const o=e.getFullYear(),a=r===Ye.monthsInYear(o)?gA:r+1;if(t.molad&&n.push(new vp(e,o,a,t)),t.shabbatMevarchim){const r=Ye.getMonthName(a,o),i=new wp(o,a).render(t.locale||"en",t);n.push(new Av(e,r,i))}}return n}function eb(e,t){return"yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e}function tb(e,t,n){const r=[];for(const[o,a]of Object.entries(t))if(a){const t=eb(o,a),i=Tv.lookup(t,e,n);i&&r.push(i)}return r}function nb(e,t,n){const r=new Ap(e,t);if(n.candlelighting){const t=n.location,o=new hp(t,e.prev(),!1).tzeit(7.0833);isNaN(o.getTime())||(r.alarm=o)}return r}return e.AsaraBTevetEvent=yv,e.CandleLightingEvent=gp,e.DailyLearning=Tv,e.Event=Ke,e.GeoLocation=tp,e.HDate=Ye,e.HavdalahEvent=mp,e.HebrewCalendar=WA,e.HebrewDateEvent=Je,e.HolidayEvent=mv,e.Locale=Ne,e.Location=cp,e.MevarchimChodeshEvent=Av,e.Molad=wp,e.MoladEvent=vp,e.NOAACalculator=rp,e.OmerEvent=Ap,e.ParshaEvent=Kp,e.RoshChodeshEvent=wv,e.RoshHashanaEvent=Sv,e.Sedra=Tp,e.TimedEvent=dp,e.Zmanim=hp,e.flags=Ve,e.gematriya=q,e.gematriyaStrToNum=X,e.holidayDesc=fv,e.months=A,e.parshiot=Mp,e.version=Mv,e}({});
|
|
1
|
+
/*! @hebcal/core v5.5.2 */
|
|
2
|
+
var hebcal=function(e){"use strict";const t="5.5.2",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 a(e,t){return Math.floor(e/t)}function i(e){return!(e%4||!(e%100)&&e%400)}function s(e,t){return r[+i(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+a(r,4)-a(r,100)+a(r,400)+a(367*t-362,12)+(t<=2?0:i(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=a(t,146097),r=o(t,146097),i=a(r,36524),s=o(r,36524),u=a(s,1461),c=a(o(s,1461),365),h=400*n+100*i+4*u+c;return 4!==i&&4!==c?h+1:h}(e=Math.trunc(e)),n=a(12*(e-c(t,1,1)+(e<c(t,3,1)?0:i(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=i;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 S(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function v(e,t,n){if(S(e,"year"),S(t,"month"),S(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 p(e){return y+I(e)}function w(e){if(S(e,"abs"),(e=Math.trunc(e))<=y)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-y)/365.24682220597794);for(;p(t)<=e;)++t;--t;let n=e<v(t,1,1)?7:1;for(;e>v(t,n,T(n,t));)++n;return{yy:t,mm:n,dd:1+e-v(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(S(e,"month"),S(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),a=r%1080+o%24*1080,i=1+29*n+Math.floor(o/24);let s=i;(a>=19440||2==i%7&&a>=9924&&!A(e)||1==i%7&&a>=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 C=f.NISAN,H=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 ae=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function ie(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=ae.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 Se(e){const t=ye(e),n=fe.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return n}class ve{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=Se(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=Se(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=Se(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,"")}}ve.addLocale("en",he),ve.addLocale("s",he),ve.addLocale("",he),ve.useLocale("en"),ve.addLocale("ashkenazi",ue),ve.addLocale("a",ue),ve.addLocale("he",ce),ve.addLocale("h",ce);const pe=ce.contexts[""],we={};for(const[e,t]of Object.entries(pe))we[e]=[ve.hebrewStripNikkud(t[0])];const Ae={headers:ce.headers,contexts:{"":we}};ve.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 a="string"==typeof n?parseInt(n,10):n;if(isNaN(a))throw new TypeError(`HDate called with bad year argument: ${n}`);this.yy=a,function(e,t){e.mm=Ee.monthNum(t),Oe(e)}(this,t);const i="string"==typeof e?parseInt(e,10):e;if(isNaN(i))throw new TypeError(`HDate called with bad day argument: ${e}`);o=i,(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=v(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return v(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||ve.getLocaleName(),r=this.getDate(),o=ve.gettext(this.getMonthName(),n).replace(/'/g,"’"),a=ve.ordinal(r,n),i=function(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const t=ve.lookupTranslation("of",e);if(t)return" "+t;if(e.startsWith("ashkenazi"))return" of";return""}(n),s=`${a}${i} ${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=ve.gettext(this.getMonthName(),n),o=this.getFullYear();return U(t)+" "+r+" "+U(o)}before(e){return Ce(e,this,-1)}onOrBefore(e){return Ce(e,this,0)}nearest(e){return Ce(e,this,3)}onOrAfter(e){return Ce(e,this,6)}after(e){return Ce(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}`)}(ve.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]),a=3===r?n[1]:n[1]+" "+n[2],i=Ee.monthFromName(a);let s=x(3===r?n[2]:n[3]);return s<1e3&&(s+=t),new Ee(o,i,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 Ce(e,t,n){return new Ee(Ee.dayOnOrBefore(e,t.abs()+n))}var He={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 Machar Chodesh":["שַׁבָּת מָחָר חוֹדֶשׁ"],"Shabbat Nachamu":["שַׁבָּת נַחֲמוּ"],"Shabbat Parah":["שַׁבָּת פּרה"],"Shabbat Rosh Chodesh":["שַׁבָּת רֹאשׁ חוֹדֶשׁ"],"Shabbat Shekalim":["שַׁבָּת שְׁקָלִים"],"Shabbat Shuva":["שַׁבָּת שׁוּבָה"],"Shabbat Zachor":["שַׁבָּת זָכוֹר"],Shavuot:["שָׁבוּעוֹת"],"Shavuot I":["שָׁבוּעוֹת א׳"],"Shavuot II":["שָׁבוּעוֹת ב׳"],"Shmini Atzeret":["שְׁמִינִי עֲצֶרֶת"],"Shushan Purim":["שׁוּשָׁן פּוּרִים"],Sigd:["סיגד"],"Simchat Torah":["שִׂמְחַת תּוֹרָה"],Sukkot:["סוּכּוֹת"],"Sukkot I":["סוּכּוֹת א׳"],"Sukkot II":["סוּכּוֹת ב׳"],"Sukkot II (CH''M)":["סוּכּוֹת ב׳ (חוה״מ)"],"Sukkot III (CH''M)":["סוּכּוֹת ג׳ (חוה״מ)"],"Sukkot IV (CH''M)":["סוּכּוֹת ד׳ (חוה״מ)"],"Sukkot V (CH''M)":["סוּכּוֹת ה׳ (חוה״מ)"],"Sukkot VI (CH''M)":["סוּכּוֹת ו׳ (חוה״מ)"],"Sukkot VII (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit Esther":["תַּעֲנִית אֶסְתֵּר"],"Tish'a B'Av":["תִּשְׁעָה בְּאָב"],"Tu B'Av":["טוּ בְּאָב"],"Tu BiShvat":["טוּ בִּשְׁבָט"],"Tu B'Shvat":["טוּ בִּשְׁבָט"],"Tzom Gedaliah":["צוֹם גְּדַלְיָה"],"Tzom Tammuz":["צוֹם תָּמוּז"],"Yom HaAtzma'ut":["יוֹם הָעַצְמָאוּת"],"Yom HaShoah":["יוֹם הַשּׁוֹאָה"],"Yom HaZikaron":["יוֹם הַזִּכָּרוֹן"],"Yom Kippur":["יוֹם כִּפּוּר"],"Yom Yerushalayim":["יוֹם יְרוּשָׁלַיִם"],"Yom HaAliyah":["יוֹם הַעֲלִיָּה"],"Yom HaAliyah School Observance":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"Pesach I (on Shabbat)":["פֶּסַח יוֹם א׳ (בְּשַׁבָּת)"],"Pesach Chol ha-Moed Day 1":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם א׳"],"Pesach Chol ha-Moed Day 2":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳"],"Pesach Chol ha-Moed Day 3":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳"],"Pesach Chol ha-Moed Day 4":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ד׳"],"Pesach Chol ha-Moed Day 5":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ה׳"],"Pesach Shabbat Chol ha-Moed":["פֶּסַח שַׁבָּת חוֹל הַמּוֹעֵד"],"Shavuot II (on Shabbat)":["שָׁבוּעוֹת יוֹם ב׳ (בְּשַׁבָּת)"],"Rosh Hashana I (on Shabbat)":["רֹאשׁ הַשָּׁנָה יוֹם א׳ (בְּשַׁבָּת)"],"Yom Kippur (on Shabbat)":["יוֹם כִּפּוּר (בְּשַׁבָּת)"],"Yom Kippur (Mincha, Traditional)":["יוֹם כִּפּוּר מִנחָה"],"Yom Kippur (Mincha, Alternate)":["יוֹם כִּפּוּר מִנחָה"],"Sukkot I (on Shabbat)":["סוּכּוֹת יוֹם א׳ (בְּשַׁבָּת)"],"Sukkot Chol ha-Moed Day 1":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם א׳"],"Sukkot Chol ha-Moed Day 2":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ב׳"],"Sukkot Chol ha-Moed Day 3":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ג׳"],"Sukkot Chol ha-Moed Day 4":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ד׳"],"Sukkot Chol ha-Moed Day 5":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ה׳"],"Sukkot Shabbat Chol ha-Moed":["סוּכּוֹת שַׁבָּת חוֹל הַמּוֹעֵד"],"Sukkot Final Day (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Rosh Chodesh Adar":["רֹאשׁ חוֹדֶשׁ אַדָר"],"Rosh Chodesh Adar I":["רֹאשׁ חוֹדֶשׁ אַדָר א׳"],"Rosh Chodesh Adar II":["רֹאשׁ חוֹדֶשׁ אַדָר ב׳"],"Rosh Chodesh Av":["רֹאשׁ חוֹדֶשׁ אָב"],"Rosh Chodesh Cheshvan":["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"],"Rosh Chodesh Elul":["רֹאשׁ חוֹדֶשׁ אֱלוּל"],"Rosh Chodesh Iyyar":["רֹאשׁ חוֹדֶשׁ אִיָיר"],"Rosh Chodesh Kislev":["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"],"Rosh Chodesh Nisan":["רֹאשׁ חוֹדֶשׁ נִיסָן"],"Rosh Chodesh Sh'vat":["רֹאשׁ חוֹדֶשׁ שְׁבָט"],"Rosh Chodesh Sivan":["רֹאשׁ חוֹדֶשׁ סִיוָן"],"Rosh Chodesh Tamuz":["רֹאשׁ חוֹדֶשׁ תָּמוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דַּקּוֹת"],"Fast begins":["תחילת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["תִּשְׁעָה בְּאָב נִדחֶה"],"Shabbat Mevarchim Chodesh":["שַׁבָּת מְבָרְכִים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבָּת שִׁירָה"],"Chatzot HaLailah":["חֲצוֹת הַלַיְלָה"],"Alot haShachar":["עֲלוֹת הַשַּׁחַר"],Misheyakir:["מִשֶּׁיַּכִּיר"],"Misheyakir Machmir":["מִשֶּׁיַּכִּיר מַחמִיר"],Dawn:["דִּימְדּוּמֵי בּוֹקֵר"],Sunrise:["הַנֵץ הַחַמָּה"],"Kriat Shema, sof zeman":["סוֹף זְמַן קְרִיאַת שְׁמַע גר״א"],"Tefilah, sof zeman":["סוֹף זְמַן תְּפִלָּה גר״א"],"Kriat Shema, sof zeman (MGA)":["סוֹף זְמַן קְרִיאַת שְׁמַע מג״א"],"Tefilah, sof zeman (MGA)":["סוֹף זְמַן תְּפִלָּה מג״א"],"Chatzot hayom":["חֲצוֹת הַיּוֹם"],"Mincha Gedolah":["מִנְחָה גְּדוֹלָה"],"Mincha Ketanah":["מִנְחָה קְטַנָּה"],"Plag HaMincha":["פְּלַג הַמִּנְחָה"],Dusk:["דִּימְדּוּמֵי עֶרֶב"],Sunset:["שְׁקִיעָה"],"Nightfall - End of ordained fasts":["לַיְלָה - גמר תעניות דרבנן"],"Tzeit HaKochavim":["צֵאת הַכּוֹכָבִים"],Lovingkindness:["חֶֽסֶד"],Might:["גְבוּרָה"],Beauty:["תִּפאֶרֶת"],Eternity:["נֶּֽצַח"],Splendor:["הוֹד"],Foundation:["יְּסוֹד"],Majesty:["מַּלְכוּת"],day:["יוֹם"],"Chanukah Day 1":["חֲנוּכָּה יוֹם א׳"],"Chanukah Day 2":["חֲנוּכָּה יוֹם ב׳"],"Chanukah Day 3":["חֲנוּכָּה יוֹם ג׳"],"Chanukah Day 4":["חֲנוּכָּה יוֹם ד׳"],"Chanukah Day 5":["חֲנוּכָּה יוֹם ה׳"],"Chanukah Day 6":["חֲנוּכָּה יוֹם ו׳"],"Chanukah Day 7":["חֲנוּכָּה יוֹם ז׳"],"Chanukah Day 7 (on Rosh Chodesh)":["חֲנוּכָּה יוֹם ז׳ (רֹאשׁ חוֹדֶשׁ)"],"Chanukah Day 8":["חֲנוּכָּה יוֹם ח׳"],"Chanukah Day 1 (on Shabbat)":["חֲנוּכָּה יוֹם א׳ (בְּשַׁבָּת)"],"Chanukah Day 2 (on Shabbat)":["חֲנוּכָּה יוֹם ב׳ (בְּשַׁבָּת)"],"Chanukah Day 3 (on Shabbat)":["חֲנוּכָּה יוֹם ג׳ (בְּשַׁבָּת)"],"Chanukah Day 4 (on Shabbat)":["חֲנוּכָּה יוֹם ד׳ (בְּשַׁבָּת)"],"Chanukah Day 5 (on Shabbat)":["חֲנוּכָּה יוֹם ה׳ (בְּשַׁבָּת)"],"Chanukah Day 7 (on Shabbat)":["חֲנוּכָּה יוֹם ז׳ (בְּשַׁבָּת)"],"Chanukah Day 8 (on Shabbat)":["חֲנוּכָּה יוֹם ח׳ (בְּשַׁבָּת)"],"Shabbat Rosh Chodesh Chanukah":["שַׁבָּת רֹאשׁ חוֹדֶשׁ חֲנוּכָּה"],"Yom Kippur Katan":["יוֹם כִּפּוּר קָטָן"],"Family Day":["יוֹם הַמִּשׁפָּחָה"],"Yitzhak Rabin Memorial Day":["יוֹם הַזִּכָּרוֹן ליצחק רבין"],"Jabotinsky Day":["יוֹם ז׳בוטינסקי"],"Herzl Day":["יוֹם הרצל"],"Ben-Gurion Day":["יוֹם בן־גוריון"],"Hebrew Language Day":["יוֹם הַשָׂפָה הַעִברִית"],"Birkat Hachamah":["בִרְכַּת הַחַמָּה"],"Shushan Purim Katan":["שׁוּשָׁן פּוּרִים קָטָן"],"Purim Meshulash":["פּוּרִים מְשׁוּלָּשׁ"],"after sunset":["לְאַחַר הַשְׁקִיעָה"],Yerushalmi:["יְרוּשַׁלְמִי"],"Chag HaBanot":["חַג הַבָּנוֹת"],Joshua:["יְהוֹשׁוּעַ"],Judges:["שׁוֹפְטִים"],"I Samuel":["שְׁמוּאֵל רִאשׁוֹן"],"II Samuel":["שְׁמוּאֵל שֵׁנִי"],"I Kings":["מְלָכִים רִאשׁוֹן"],"II Kings":["מְלָכִים שֵׁנִי"],Isaiah:["יְשַׁעְיָהוּ"],Jeremiah:["יִרְמְיָהוּ"],Ezekiel:["יְחֶזְקֵאל"],Hosea:["הוֹשֵׁעַ"],Joel:["יוֹאֵל"],Amos:["עָמוּס"],Obadiah:["עוֹבַדְיָה"],Jonah:["יוֹנָה"],Micah:["מִיכָה"],Nachum:["נַחוּם"],Habakkuk:["חֲבַקּוּק"],Zephaniah:["צְפַנְיָה"],Haggai:["חַגַּי"],Zechariah:["זְכַרְיָה"],Malachi:["מַלְאָכִי"],Psalms:["תְּהִלִּים"],Proverbs:["מִשְׁלֵי"],Job:["אִיּוֹב"],"Song of Songs":["שִׁיר הַשִּׁירִים"],Ruth:["רוּת"],Lamentations:["אֵיכָה"],Ecclesiastes:["קֹהֶלֶת"],Esther:["אֶסְתֵּר"],Daniel:["דָּנִיֵּאל"],Ezra:["עֶזְרָא"],Nehemiah:["נְחֶמְיָה"],"I Chronicles":["דִברֵי הַיָמִים רִאשׁוֹן"],"II Chronicles":["דִברֵי הַיָמִים שֵׁנִי"],"Yom Kippur (Mincha)":["יוֹם כִּפּוּר מִנחָה"],"Tish'a B'Av (Mincha)":["תִּשְׁעָה בְּאָב מִנחָה"],"Asara B'Tevet (Mincha)":["עֲשָׂרָה בְּטֵבֵת מִנחָה"],"Ta'anit Bechorot (Mincha)":["תַּעֲנִית בְּכוֹרוֹת מִנחָה"],"Ta'anit Esther (Mincha)":["תַּעֲנִית אֶסְתֵּר מִנחָה"],"Tzom Gedaliah (Mincha)":["צוֹם גְּדַלְיָה מִנחָה"],"Tzom Tammuz (Mincha)":["צוֹם תָּמוּז מִנחָה"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"],"Pirkei Avot":["פִּרְקֵי אָבוֹת"]}}};ve.addTranslations("he",De),ve.addTranslations("h",De),ve.addTranslations("ashkenazi",He),ve.addTranslations("a",He);const _e=De.contexts[""],ke={};for(const[e,t]of Object.entries(_e))ke[e]=[ve.hebrewStripNikkud(t[0])];const Le={headers:De.headers,contexts:{"":ke}};ve.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 ve.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:ve.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=ve.gettext(t.getMonthName(),e);return U(n)+" "+r}renderBrief(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:ve.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,at,it,st,ut,ct,ht,lt,ft,dt,gt,mt,yt,St,vt,pt,wt,At,bt,Tt,Mt,It,Et,Ot,Nt,Ct,Ht,Dt,_t,kt,Lt,Rt,Yt,Pt,jt,Bt,Ft,Ut,xt,Zt,$t={};function Vt(){return at?ot:(at=1,ot=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function zt(){if(st)return it;st=1;var e=tt(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return it=e?r:function(e){return function(){return n.apply(e,arguments)}},it}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(St)return yt;St=1;var e=Kt(),t=Gt();return yt=function(n){return e(t(n))},yt}function qt(){if(pt)return vt;pt=1;var e="object"==typeof document&&document.all;return vt=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(Ct)return Nt;Ct=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,a=n.Deno,i=o&&o.versions||a&&a.version,s=i&&i.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 Ht;Dt=1;var e=en(),t=Qe(),n=Ze().String;return Ht=!!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(It)return Mt;It=1;var e=zt();return Mt=e({}.isPrototypeOf)}(),r=nn(),o=Object;return Lt=r?function(e){return"symbol"==typeof e}:function(r){var a=e("Symbol");return t(a)&&n(a.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,a){var i,s;if("string"===a&&t(i=o.toString)&&!n(s=e(i,o)))return s;if(t(i=o.valueOf)&&!n(s=e(i,o)))return s;if("string"!==a&&t(i=o.toString)&&!n(s=e(i,o)))return s;throw new r("Can't convert object to primitive value")},xt}var cn,hn,ln,fn,dn,gn,mn,yn,Sn,vn,pn,wn,An,bn,Tn,Mn,In,En,On,Nn,Cn,Hn,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.38.1",mode:e?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/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(Sn)return yn;Sn=1;var e=Gt(),t=Object;return yn=function(n){return t(e(n))}}function jn(){if(pn)return vn;pn=1;var e=zt(),t=Pn(),n=e({}.hasOwnProperty);return vn=Object.hasOwn||function(e,r){return n(t(e),r)},vn}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(),a=nn(),i=e.Symbol,s=t("wks"),u=a?i.for||i:i&&i.withoutSetter||r;return bn=function(e){return n(s,e)||(s[e]=o&&n(i,e)?i[e]:u("Symbol."+e)),s[e]}}function Un(){if(In)return Mn;In=1;var e=nt(),t=Xt(),n=rn(),r=sn(),o=un(),a=Fn(),i=TypeError,s=a("toPrimitive");return Mn=function(a,u){if(!t(a)||n(a))return a;var c,h=r(a,s);if(h){if(void 0===u&&(u="default"),c=e(h,a,u),!t(c)||n(c))return c;throw new i("Can't convert object to primitive value")}return void 0===u&&(u="number"),o(a,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(Cn)return Nn;Cn=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 Hn;Dn=1;var e=et(),t=Qe(),n=Zn();return Hn=!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(),a=xn(),i=jn(),s=$n(),u=Object.getOwnPropertyDescriptor;return Xe.f=e?u:function(e,c){if(e=o(e),c=a(c),s)try{return u(e,c)}catch(e){}if(i(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(),a=TypeError,i=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 a=s(e,t);a&&a[h]&&(e[t]=n.value,n={configurable:c in n?n[c]:a[c],enumerable:u in n?n[u]:a[u],writable:!1})}return i(e,t,n)}:i:function(e,n,s){if(r(e),n=o(n),r(s),t)try{return i(e,n,s)}catch(e){}if("get"in s||"set"in s)throw new a("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,ar,ir,sr,ur,cr,hr,lr,fr,dr,gr,mr,yr,Sr,vr,pr={exports:{}};function wr(){if(sr)return ir;sr=1;var e=zt(),t=qt(),n=Rn(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),ir=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(),a=Xt(),i=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,i(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(!a(n)||(r=t(n)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}},gr}function Mr(){if(yr)return pr.exports;yr=1;var e=zt(),t=Qe(),n=qt(),r=jn(),o=et(),a=function(){if(ar)return or;ar=1;var e=et(),t=jn(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,o=t(n,"name"),a=o&&"something"===function(){}.name,i=o&&(!e||e&&r(n,"name").configurable);return or={EXISTS:o,PROPER:a,CONFIGURABLE:i}}().CONFIGURABLE,i=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"),S=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")||a&&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 i=u(e);return r(i,"source")||(i.source=g(y,"string"==typeof t?t:"")),e};return Function.prototype.toString=S((function(){return n(this)&&c(this).source||i(this)}),"toString"),pr.exports}function Ir(){if(vr)return Sr;vr=1;var e=qt(),t=nr(),n=Mr(),r=Ln();return Sr=function(o,a,i,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:a;if(e(i)&&n(i,c,s),s.global)u?o[a]=i:r(a,i);else{try{s.unsafe?o[a]&&(u=!0):delete o[a]}catch(e){}u?o[a]=i:t.f(o,a,{value:i,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return o},Sr}var Er,Or,Nr,Cr,Hr,Dr,_r,kr,Lr,Rr,Yr,Pr,jr,Br,Fr,Ur,xr,Zr={};function $r(){if(Cr)return Nr;Cr=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 Hr;Dr=1;var e=$r(),t=Math.max,n=Math.min;return Hr=function(r,o){var a=e(r);return a<0?t(a+o,0):n(a,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,a,i){var s=e(o),u=n(s);if(0===u)return!r&&-1;var c,h=t(i,u);if(r&&a!=a){for(;u>h;)if((c=s[h++])!=c)return!0}else for(;u>h;h++)if((r||h in s)&&s[h]===a)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(),a=e([].push);return jr=function(e,i){var s,u=n(e),c=0,h=[];for(s in u)!t(o,s)&&t(u,s)&&a(h,s);for(;i.length>c;)t(u,s=i[c++])&&(~r(h,s)||a(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,ao,io={};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,io.f=Object.getOwnPropertySymbols),io),o=tr(),a=t([].concat);return Xr=e("Reflect","ownKeys")||function(e){var t=n.f(o(e)),i=r.f;return i?a(t,i(e)):t},Xr}function uo(){if(to)return eo;to=1;var e=jn(),t=so(),n=Vn(),r=nr();return eo=function(o,a,i){for(var s=t(a),u=r.f,c=n.f,h=0;h<s.length;h++){var l=s[h];e(o,l)||i&&e(i,l)||u(o,l,c(a,l))}},eo}function co(){if(ao)return oo;ao=1;var e=Ze(),t=Vn().f,n=rr(),r=Ir(),o=Ln(),a=uo(),i=function(){if(ro)return no;ro=1;var e=Qe(),t=qt(),n=/#|\.prototype\./,r=function(n,r){var u=a[o(n)];return u===s||u!==i&&(t(r)?e(r):!!r)},o=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},a=r.data={},i=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],!i(m?h:g+(y?".":"#")+h,s.forced)&&void 0!==l){if(typeof f==typeof l)continue;a(f,l)}(s.sham||l&&l.sham)&&n(f,"sham",!0),r(c,h,f,s)}}}var ho,lo,fo,go,mo,yo,So,vo,po,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 Mo(){if(So)return yo;So=1;var e,t=tr(),n=function(){if(fo)return Ao;fo=1;var e=et(),t=er(),n=nr(),r=tr(),o=Wt(),a=bo();return Ao.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var i,s=o(t),u=a(t),c=u.length,h=0;c>h;)n.f(e,i=u[h++],s[i]);return e},Ao}(),r=Wr(),o=br(),a=To(),i=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=i("iframe"),o="java"+c+":",n.style.display="none",a.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 Io(){if(po)return vo;po=1;var e=Fn(),t=Mo(),n=nr().f,r=e("unscopables"),o=Array.prototype;return void 0===o[r]&&n(o,r,{configurable:!0,value:t(null)}),vo=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,a){const i=Go(t,n,r);if(o&&t!==i)throw new RangeError(nh(e,t,n,r,a));return i}function No(e,t){const n=e[t];if(void 0===n)throw new TypeError(oh(t));return n}function Co(e){return null!==e&&/object|function/.test(typeof e)}function Ho(e){const t=new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Map);return function(n){if(t.has(n))return t.get(n);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];const i=e(n,...o);return t.set(n,i),i}}function 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 a=t[o];r[a]=e(a,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),ea(e,t)]}function Qo(e,t){return Math.trunc(e/t)||0}function ea(e,t){return e%t||0}function ta(e){return.5===Math.abs(e%1)}function na(e,t,n){let r=0,o=0;for(let a=0;a<=t;a++){const t=e[n[a]],i=Xh[a],s=qh/i,[u,c]=Xo(t,s);r+=c*i,o+=u}const[a,i]=Xo(r,qh);return[o+a,i]}function ra(e,t,n){const r={};for(let o=t;o>=0;o--){const t=Xh[o];r[n[o]]=Qo(e,t),e=ea(e,t)}return r}function oa(e){if(void 0!==e)return ia(e)}function aa(e){return fa(ia(e))}function ia(e){return la(Ml(e))}function sa(e){if(null==e)throw new TypeError("Cannot be null or undefined");return e}function ua(e,t){if(null==t)throw new RangeError(oh(e));return t}function ca(e){if(!Co(e))throw new TypeError(th);return e}function ha(e,t){if(typeof t!==e)throw new TypeError(rh(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t));return t}function la(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 fa(e){if(e<=0)throw new RangeError(Wc(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",e));return e}function da(e){if("symbol"==typeof e)throw new TypeError(eh);return String(e)}function ga(e,t){return Co(e)?String(e):bl(e,t)}function ma(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(Qc(e));return e}function ya(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 Sa(e,t){return Math.trunc(ya(e,t))||0}function va(e,t){return la(ya(e,t),t)}function pa(e,t){return fa(Sa(e,t),t)}function wa(e,t){let[n,r]=Xo(t,qh),o=e+n;const a=Math.sign(o);return a&&a===-Math.sign(r)&&(o-=a,r+=a*qh),[o,r]}function Aa(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return wa(e[0]+t[0]*n,e[1]+t[1]*n)}function ba(e,t){return wa(e[0],e[1]+t)}function Ta(e,t){return Aa(t,e,-1)}function Ma(e,t){return Jo(e[0],t[0])||Jo(e[1],t[1])}function Ia(e,t,n){return-1===Ma(e,t)||1===Ma(e,n)}function Ea(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 Oa(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 Na(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,r]=e,o=Math.floor(r/t),a=qh/t;return BigInt(n)*BigInt(a)+BigInt(o)}function Ca(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;const[r,o]=e,[a,i]=Xo(o,t);return r*(qh/t)+(a+(n?i/t:0))}function Ha(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Wo;const[r,o]=e,[a,i]=n(o,t);return[r*(qh/t)+a,i]}function Da(e,t){const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function _a(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 ka(e){return La({...e,...Ul,isoHour:12}),e}function La(e){const t=Eo(e,"isoYear",Wl,Gl,1),n=t===Wl?1:t===Gl?-1:0;return n&&Ra(Ua({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function Ra(e){if(!e||Ia(e,Jl,Kl))throw new RangeError(Ch);return e}function Ya(e){return na(e,5,Rl)[1]}function Pa(e){const[t,n]=Wo(e,qh);return[ra(n,5,Rl),t]}function ja(e){return Ba(e)[0]}function Ba(e){return Ha(e,Jh)}function Fa(e){return $a(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function Ua(e){const t=Fa(e);if(void 0!==t){const[n,r]=Xo(t,$h);return[n,r*Kh+(e.isoMicrosecond||0)*zh+(e.isoNanosecond||0)]}}function xa(e,t){const[n,r]=Pa(Ya(e)-t);return Ra(Ua({...e,isoDay:e.isoDay+r,...n}))}function Za(){return $a(...arguments)/Vh}function $a(){const[e,t]=Va(...arguments),n=e.valueOf();if(!isNaN(n))return n-t*$h}function Va(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;const s=e===Wl?1:e===Gl?-1:0,u=new Date;return u.setUTCHours(r,o,a,i),u.setUTCFullYear(e,t-1,n+s),[u,s]}function za(e,t){let[n,r]=ba(e,t);r<0&&(r+=qh,n-=1);const[o,a]=Wo(r,Kh),[i,s]=Wo(a,zh);return Ka(n*$h+o,i,s)}function Ka(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 Ja(e){return[e.isoYear,e.isoMonth,e.isoDay]}function Ga(){return Ql}function Wa(e,t){switch(t){case 2:return Xa(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function qa(e){return Xa(e)?366:365}function Xa(e){return e%4==0&&(e%100!=0||e%400==0)}function Qa(e){const[t,n]=Va(e.isoYear,e.isoMonth,e.isoDay);return qo(t.getUTCDay()-n,7)||7}function ei(e){let{isoYear:t}=e;return t<1?["bce",1-t]:["ce",t]}function ti(e){const t=Fa(e);if(t<ef)return ei(e);const n=Da(cd(pl),t),{era:r,eraYear:o}=Qu(n,pl);return[r,o]}function ni(e){return ri(e),ii(e,1),e}function ri(e){return ai(e,1),e}function oi(e){return xo(Yl,e,ai(e))}function ai(e,t){const{isoYear:n}=e,r=Eo(e,"isoMonth",1,Ga(),t);return{isoYear:n,isoMonth:r,isoDay:Eo(e,"isoDay",1,Wa(n,r),t)}}function ii(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 si(e){return void 0===e?0:pf(ca(e))}function ui(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=pi(e);const n=wf(e),r=Af(e,t);return[pf(e),r,n]}function ci(e){return wf(pi(e))}function hi(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:9,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:4;t=pi(t);let i=Sf(t,r,o),s=yi(t),u=If(t,a);const c=yf(t,r,o,1);return null==i?i=Math.max(n,c):Ii(i,c),s=Si(s,c,1),e&&(u=(e=>e<4?(e+2)%4:e)(u)),[i,c,s,u]}function li(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=arguments.length>2?arguments[2]:void 0,r=yi(e=wi(e,nf));const o=If(e,7);let a=yf(e,t);return a=ua(nf,a),r=Si(r,a,void 0,n),[a,r,o]}function fi(e){return bf(pi(e))}function di(e,t){return gi(pi(e),t)}function gi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=vi(e);return[If(e,4),...mi(yf(e,t),n)]}function mi(e,t){return null!=e?[Xh[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function yi(e){const t=e[of];return void 0===t?1:Sa(t,of)}function Si(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 vi(e){let t=e[af];if(void 0!==t){if("number"!=typeof t){if("auto"===da(t))return;throw new RangeError(rh(af,t))}t=Oo(af,Math.floor(t),0,9,1)}return t}function pi(e){return void 0===e?{}:ca(e)}function wi(e,t){return"string"==typeof e?{[t]:e}:ca(e)}function Ai(e){if(void 0!==e){if(Co(e))return Object.assign(Object.create(null),e);throw new TypeError(th)}}function bi(e,t){return e&&Object.assign(Object.create(null),e,{overflow:cf[t]})}function Ti(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:9,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,a=t[e];if(void 0===a)return o?r:void 0;if(a=da(a),"auto"===a)return o?r:null;let i=xh[a];if(void 0===i&&(i=Dl[a]),void 0===i)throw new RangeError(uh(e,a,xh));return Oo(e,i,r,n,1,Zh),i}function Mi(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=n[e];if(void 0===o)return r;const a=da(o),i=t[a];if(void 0===i)throw new RangeError(uh(e,a,t));return i}function Ii(e,t){if(t>e)throw new RangeError(Rh)}function Ei(e){return{branding:_f,epochNanoseconds:e}}function Oi(e,t,n){return{branding:Df,calendar:n,timeZone:t,epochNanoseconds:e}}function Ni(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Cf,calendar:t,...Bo(Fl,e)}}function Ci(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Nf,calendar:t,...Bo(jl,e)}}function Hi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Ef,calendar:t,...Bo(jl,e)}}function Di(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:Of,calendar:t,...Bo(jl,e)}}function _i(e){return{branding:Hf,...Bo(Bl,e)}}function ki(e){return{branding:kf,sign:Ws(e),...Bo(Ol,e)}}function Li(e){return Ha(e.epochNanoseconds,Kh)[0]}function Ri(e){return e.epochNanoseconds}function Yi(e){return"string"==typeof e?e:bl(e.id)}function Pi(e,t){return e===t||Yi(e)===Yi(t)}function ji(e,t){return Ca(Qs(e),Xh[t],1)}function Bi(e,t,n,r,o,a,i){const s=El[n],u={...t,[s]:t[s]+r},c=i(e,o,t),h=i(e,o,u);return[a(c),a(h)]}function Fi(e,t,n){const r=Ca(Ta(t,n));if(!r)throw new RangeError(wh);return Ca(Ta(t,e))/r}function Ui(e,t,n,r){return xi(e,Vi(t,n),r)}function xi(e,t,n){const[r,o]=Zi(e,t,n);return La({...Fs(e,o),...r})}function Zi(e,t,n){return Pa(Xi(Ya(e),t,n))}function $i(e){return Xi(e,Gh,7)}function Vi(e,t){return Xh[e]*t}function zi(e){const t=Ki(e);return[t,Fs(t,1)]}function Ki(e){return xl(6,e)}function Ji(e,t,n){const r=Math.min(ru(e),6);return eu(qi(Qs(e,r),t,n),r)}function Gi(e,t,n,r,o,a,i,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,a,i,s,u,c);return d&&7!==r&&(l=((e,t,n,r,o,a,i,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=Ca(Ta(i(s(o,a,r)),t));if(h&&Math.sign(h)!==u)break;e=r}return e})(l,f,n,Math.max(6,r),i,s,u,c)),l}function Wi(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/qh)(e);return[Xi(t,n,r),0]}return qi(e,Vi(t,n),r,o)}function qi(e,t,n,r){let[o,a]=e;r&&a<0&&(a+=qh,o-=1);const[i,s]=Wo(Xi(a,t,n),qh);return wa(o+i,s)}function Xi(e,t,n){return Qi(e/t,n)*t}function Qi(e,t){return Lf[t](e)}function es(e,t,n,r,o,a){const i=Ws(e),s=Qs(e),u=Wi(s,r,o,a),c=Ta(s,u),h=Math.sign(u[0]-s[0])===i,l=eu(u,Math.min(n,6));return[{...e,...l},Aa(t,c),h]}function ts(e,t,n,r,o,a,i,s,u,c){const h=Ws(e),l=Ca(Qs(e,5)),f=Vi(r,o);let d=Xi(l,f,a);const[g,m]=Bi(i,{...e,...kl},6,h,s,u,c),y=d-Ca(Ta(g,m));let S=0;y&&Math.sign(y)!==h?t=ba(g,d):(S+=h,d=Xi(y,f,a),t=ba(m,d));const v=tu(d);return[{...e,...v,days:e.days+S},t,Boolean(S)]}function ns(e,t,n,r,o,a,i,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]=Bi(i,f,r,o*h,s,u,c),y=d+Fi(t,g,m)*h*o,S=Xi(y,o,a),v=Math.sign(S-y)===h;return f[l]=S,[f,v?m:g,v]}function rs(e,t,n,r){const[o,a,i,s]=(e=>{const t=gi(e=pi(e));return[e.timeZone,...t]})(r),u=void 0!==o;return((e,t,n,r,o,a)=>{n=qi(n,o,r,1);const i=t.getOffsetNanosecondsFor(n);return ds(za(n,i),a)+(e?vs($i(i)):"Z")})(u,t(u?e(o):Rf),n.epochNanoseconds,a,i,s)}function os(e,t,n){const[r,o,a,i,s,u]=(e=>{e=pi(e);const t=bf(e),n=vi(e),r=Mf(e),o=If(e,4),a=yf(e,4);return[t,Tf(e),r,o,...mi(a,n)]})(n);return((e,t,n,r,o,a,i,s,u,c)=>{r=qi(r,u,s,1);const h=e(n).getOffsetNanosecondsFor(r);return ds(za(r,h),c)+vs($i(h),i)+((e,t)=>1!==t?"["+(2===t?"!":"")+Yi(e)+"]":"")(n,a)+ps(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,a,i,s,u)}function as(e,t){const[n,r,o,a]=(e=>(e=pi(e),[bf(e),...gi(e)]))(t);return i=e.calendar,s=n,u=a,ds(xi(e,o,r),u)+ps(i,s);var i,s,u}function is(e,t){return n=e.calendar,r=e,o=fi(t),gs(r)+ps(n,o);var n,r,o}function ss(e,t){return ls(e.calendar,ms,e,fi(t))}function us(e,t){return ls(e.calendar,ys,e,fi(t))}function cs(e,t){const[n,r,o]=di(t);return a=o,Ss(Zi(e,r,n)[0],a);var a}function hs(e,t){const[n,r,o]=di(t,3);return r>1&&(e={...e,...Ji(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?Gs(e):e,{hours:o,minutes:a}=r,[i,s]=Ha(Qs(r,3),Jh,Xo);Xs(i);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||a||i||c?"T"+fs({H:Ts(o),M:Ts(a),S:Ts(i,c)+u}):"")})(e,o)}function ls(e,t,n,r){const o=Yi(e),a=r>1||0===r&&o!==Sl;return 1===r?o===Sl?t(n):gs(n):a?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"+Ss(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 Ss(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 vs(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),[a,i]=Wo(o,Jh);return bs(e)+Uh(t)+":"+Uh(r)+(a||i?":"+Uh(a)+As(i):"")}function ps(e,t){if(1!==t){const n=Yi(e);if(t>1||0===t&&n!==Sl)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 Ms(e,t){const{epochNanoseconds:n}=e,r=(t.getOffsetNanosecondsFor?t:t(e.timeZone)).getOffsetNanosecondsFor(n),o=za(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function Is(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0;if(void 0!==n&&1===r&&(1===r||i))return xa(t,n);const s=e.getPossibleInstantsFor(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=Ua(t);r&&(n=$i(n));for(const t of e){let e=Ca(Ta(t,o));if(r&&(e=$i(e)),e===n)return t}})(s,t,n,a);if(void 0!==e)return e;if(0===r)throw new RangeError(Oh)}return i?Ua(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=Ua(t),a=((e,t)=>{const n=e.getOffsetNanosecondsFor(ba(t,-qh));return Ns(e.getOffsetNanosecondsFor(ba(t,qh))-n)})(e,o),i=a*(2===n?-1:1);return(r=e.getPossibleInstantsFor(za(o,i)))[2===n?0:r.length-1]}function Os(e){if(Math.abs(e)>=qh)throw new RangeError(Ih);return e}function Ns(e){if(e>qh)throw new RangeError(Eh);return e}function Cs(e,t,n){return Ei(Ra(Aa(t.epochNanoseconds,(e=>{if(nu(e))throw new RangeError(kh);return Qs(e,5)})(e?Gs(n):n))))}function Hs(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Object.create(null);const i=t(r.timeZone),s=e(r.calendar);return{...r,...Rs(i,s,r,n?Gs(o):o,a)}}function Ds(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const{calendar:a}=n;return Ni(Ys(e(a),n,t?Gs(r):r,o),a)}function _s(e,t,n,r,o){const{calendar:a}=n;return Ci(Ps(e(a),n,t?Gs(r):r,o),a)}function ks(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const a=n.calendar,i=e(a);let s=js(i,n);t&&(r=Js(r)),r.sign<0&&(s=i.dateAdd(s,{..._l,months:1}),s=Fs(s,-1));const u=i.dateAdd(s,r,o);return Hi(js(i,u),a)}function Ls(e,t,n){return _i(Bs(t,e?Gs(n):n)[0])}function Rs(e,t,n,r,o){const a=Qs(r,5);let i=n.epochNanoseconds;if(nu(r)){const s=Ff(n,e);i=Aa(Es(e,{...Ps(t,s,{...r,...kl},o),...Bo(Rl,s)}),a)}else i=Aa(i,a),si(o);return{epochNanoseconds:Ra(i)}}function Ys(e,t,n,r){const[o,a]=Bs(t,n);return La({...Ps(e,t,{...n,...kl,days:n.days+a},r),...o})}function Ps(e,t,n,r){if(n.years||n.months||n.weeks)return e.dateAdd(t,n,r);si(r);const o=n.days+Qs(n,5)[0];return o?ka(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,a]=Pa(Ya(e)+r);return[o,n+a]}function Fs(e,t){return t?{...e,...Ka(Fa(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?Ri:Ua}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,a,i){const s=e(pi(i).relativeTo),u=Math.max(ru(o),ru(a));if(zs(u,s))return ki(qs(((e,t,n,r)=>{const o=Aa(Qs(e),Qs(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(Ch);return{..._l,...eu(o,n)}})(o,a,u,r)));if(!s)throw new RangeError(_h);r&&(a=Gs(a));const[c,h,l]=Us(t,n,s),f=Zs(l),d=$s(l),g=f(h,c,o);return ki(d(h,c,f(h,g,a),u))}function Js(e){return ki(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 Hl)Oo(t,e[t],-Uf,Uf,1);return Xs(Ca(Qs(e),Jh)),e}function Xs(e){if(!Number.isSafeInteger(e))throw new RangeError(Hh)}function Qs(e){return na(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=ra(r,t,El);if(o[El[t]]+=n*(qh/Xh[t]),!Number.isFinite(o[El[t]]))throw new RangeError(Ch);return o}function tu(e){return ra(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,El)}function nu(e){return Boolean(Ws(e,Cl))}function ru(e){let t=9;for(;t>0&&!e[El[t]];t--);return t}function ou(e,t){return[e,t]}function au(e){const t=Math.floor(e/Yf)*Yf;return[t,t+Yf]}function iu(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 Ci(t.p?hu(t):lu(t))}function uu(e){if(e.calendar!==Sl)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=Mu(e.timeZone),a=xf(o);return Oi(Is(a,ni(e),t,n,r,!a.v,e.m),o,uc(e.calendar))}function hu(e){return fu(La(ni(e)))}function lu(e){return fu(ka(ri(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:Su(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...vu(e.slice(5)),...pu(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:Su(e),isoMonth:parseInt(e[4]),isoDay:1,...pu(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]),...pu(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 Su(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 vu(e){const t=Tu(e[3]);return{...Pa(wu(e[4]||""))[0],isoHour:Tu(e[1]),isoMinute:Tu(e[2]),isoSecond:60===t?59:t}}function pu(e){let t,n;const r=[];if(e.replace(od,((e,o,a)=>{const i=Boolean(o),[s,u]=a.split("=").reverse();if(u){if("u-ca"===u)r.push(s),t||(t=i);else if(i||/[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]||Sl}}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 Mu(e){const t=Eu(e);return"number"==typeof t?vs(t):t?(e=>{if(sd.test(e))throw new RangeError(Mh);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 Iu(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?id(e):void 0}function Ou(e,t){return Ma(e.epochNanoseconds,t.epochNanoseconds)}function Nu(e,t){return Ma(e.epochNanoseconds,t.epochNanoseconds)}function Cu(e,t){return Hu(e,t)||Du(e,t)}function Hu(e,t){return Jo(Fa(e),Fa(t))}function Du(e,t){return Jo(Ya(e),Ya(t))}function _u(e,t){if(e===t)return 1;const n=Yi(e),r=Yi(t);if(n===r)return 1;try{return Iu(n)===Iu(r)}catch(e){}}function ku(e,t,n,r){const o=hi(e,Ai(r),3,5),a=$u(t.epochNanoseconds,n.epochNanoseconds,...o);return ki(e?Gs(a):a)}function Lu(e,t,n,r,o,a){const i=Gu(r.calendar,o.calendar),s=Ai(a),[u,c,h,l]=hi(n,s,5),f=r.epochNanoseconds,d=o.epochNanoseconds,g=Ma(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)),a=e(i);m=xu(a,n,r,o,g,u,s),m=Gi(m,d,u,c,h,l,a,r,Ri,$o(Rs,n))}else m=_l;return ki(n?Gs(m):m)}function Ru(e,t,n,r,o){const a=Gu(n.calendar,r.calendar),i=Ai(o),[s,u,c,h]=hi(t,i,6),l=Ua(n),f=Ua(r),d=Ma(f,l);let g;if(d)if(s<=6)g=$u(l,f,s,u,c,h);else{const t=e(a);g=Zu(t,n,r,d,s,i),g=Gi(g,f,s,u,c,h,t,n,Ua,Ys)}else g=_l;return ki(t?Gs(g):g)}function Yu(e,t,n,r,o){const a=Gu(n.calendar,r.calendar),i=Ai(o);return ju(t,(()=>e(a)),n,r,...hi(t,i,6,9,6),i)}function Pu(e,t,n,r,o){const a=Gu(n.calendar,r.calendar),i=Ai(o),s=hi(t,i,9,9,8),u=e(a);return ju(t,(()=>u),js(u,n),js(u,r),...s,i)}function ju(e,t,n,r,o,a,i,s,u){const c=Ua(n),h=Ua(r);let l;if(Ma(h,c))if(6===o)l=$u(c,h,o,a,i,s);else{const e=t();l=e.dateUntil(n,r,o,u),6===a&&1===i||(l=Gi(l,h,o,a,i,s,e,n,Ua,Ps))}else l=_l;return ki(e?Gs(l):l)}function Bu(e,t,n,r){const o=Ai(r),[a,i,s,u]=hi(e,o,5,5),c=Xi(Ju(t,n),Vi(i,s),u),h={..._l,...tu(c,a)};return ki(e?Gs(h):h)}function Fu(e,t,n,r,o,a){const i=Ma(r.epochNanoseconds,n.epochNanoseconds);return i?o<6?Vu(n.epochNanoseconds,r.epochNanoseconds,o):xu(t,e,n,r,i,o,a):_l}function Uu(e,t,n,r,o){const a=Ua(t),i=Ua(n),s=Ma(i,a);return s?r<=6?Vu(a,i,r):Zu(e,t,n,s,r,o):_l}function xu(e,t,n,r,o,a,i){const[s,u,c]=((e,t,n,r)=>{function o(){return l={...Fs(s,c++*-r),...i},f=Es(e,l),Ma(u,f)===-r}const a=Ff(t,e),i=Bo(Rl,a),s=Ff(n,e),u=n.epochNanoseconds;let c=0;const h=Ju(a,s);let l,f;if(Math.sign(h)===-r&&c++,o()&&(-1===r||o()))throw new RangeError(wh);const d=Ca(Ta(f,u));return[a,l,d]})(t,n,r,o);var h,l;return{...6===a?(h=s,l=u,{..._l,days:zu(h,l)}):e.dateUntil(s,u,a,i),...tu(c)}}function Zu(e,t,n,r,o,a){const[i,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(i,s,o,a),...tu(u)}}function $u(e,t,n,r,o,a){return{..._l,...eu(Wi(Ta(e,t),r,o,a),n)}}function Vu(e,t,n){return{..._l,...eu(Ta(e,t),n)}}function zu(e,t){return Ku(Fa(e),Fa(t))}function Ku(e,t){return Math.trunc((t-e)/$h)}function Ju(e,t){return Ya(t)-Ya(e)}function Gu(e,t){if(!Pi(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)}))(Da(n,e),r)}const n=cd(e),r=cc(e);return{id:e,O:qu(t),B:Xu(t)}}function qu(e){return Ho((t=>{const n=Fa(t);return e(n)}),WeakMap)}function Xu(e){const t=e(0).year-ql;return Ho((n=>{let r,o=$a(n-t);const a=[],i=[];do{o+=400*$h}while((r=e(o)).year<=n);do{o+=(1-r.day)*$h,r.year===n&&(a.push(o),i.push(r.F)),o-=$h}while((r=e(o)).year>=n);return{k:a.reverse(),C:Bh(i.reverse())}}))}function Qu(e,t){let n,r,o=ec(e);if(e.era){const a=wl[t];void 0!==a&&(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,a[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=vc(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 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),Ku(n[t-1],o[r-1])}function ic(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())!==Sl&&e!==vl&&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),Fa(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 Sc(e){return wl[pc(e)]}function vc(e){return Al[pc(e)]}function pc(e){return cc(e.id||Sl)}function wc(e,t,n,r){const o=Mc(n,r,dl,[],ol);if(void 0!==o.timeZone){const r=n.dateFromFields(o),a=Ec(o),i=e(o.timeZone);return{epochNanoseconds:Is(t(i),{...r,...a},void 0!==o.offset?iu(o.offset):void 0),timeZone:i}}return{...n.dateFromFields(o),...Ul}}function Ac(e,t,n){const r=Mc(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=Mc(e,t,ll,r);return e.yearMonthFromFields(o,n)}function Tc(e,t,n,r){const o=Mc(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 Mc(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 Ic(t,[...e.fields(n),...o].sort(),r)}function Ic(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:!n;const o={};let a,i=0;for(const r of t){if(r===a)throw new RangeError(ih(r));if("constructor"===r||"__proto__"===r)throw new RangeError(ah(r));let t=e[r];if(void 0!==t)i=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]}a=r}if(r&&!i)throw new TypeError(sh(t));return o}function Ec(e,t){return ii(md({...yl,...e}),t)}function Oc(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];const i=[...e.fields(r),...o].sort();let s=Ic(t,i,a);const u=Ic(n,i);return s=e.mergeFields(s,u),Ic(s,i,[])}function Nc(e,t){const n=Mc(e,t,ml);return e.monthDayFromFields(n)}function Cc(e,t,n){const r=Mc(e,t,fl);return e.yearMonthFromFields(r,n)}function Hc(e,t,n,r,o){t=Bo(n=e.fields(n),t),r=Ic(r,o=e.fields(o),[]);let a=e.mergeFields(t,r);return a=Ic(a,[...n,...o].sort(),[]),e.dateFromFields(a)}function Dc(e,t){let{era:n,eraYear:r,year:o}=t;const a=Sc(e);if(void 0!==n||void 0!==r){if(void 0===n||void 0===r)throw new TypeError(lh);if(!a)throw new RangeError(hh);const e=a[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(a));return o}function _c(e,t,n,r){let{month:o,monthCode:a}=t;if(void 0!==a){const t=((e,t,n,r)=>{const o=e.U(n),[a,i]=dc(t);let s=gc(a,i,o);if(i){const t=vc(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,a,n,r);if(void 0!==o&&o!==t)throw new RangeError(yh);o=t,r=1}else if(void 0===o)throw new TypeError(Sh);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 a=[];for(const e of n)void 0!==t[e]?o=1:a.push(e);if(Object.assign(e,t),o)for(const t of r||a)delete e[t]}function Rc(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Sl;return Oi(e.epochNanoseconds,t,n)}function Yc(e,t){return Ni(Ff(t,e))}function Pc(e,t){return Ci(Ff(t,e))}function jc(e,t){return _i(Ff(t,e))}function Bc(e,t){return{...e,calendar:t}}function Fc(e,t){if(e===t)return e;const n=Yi(e),r=Yi(t);if(n===r||n===Sl)return t;if(r===Sl)return e;throw new RangeError(Ah)}function Uc(e,t){return n=>n===Sl?e:n===vl||n===pl?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 a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$d;for(var i=arguments.length,s=new Array(i>2?i-2:0),u=2;u<i;u++)s[u-2]=arguments[u];const c=t(r&&r(...s),o,a,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!==Sl)&&e!==t)throw new RangeError(Ah)})(Yi(e.calendar),t.calendar,o),r(e,t))))}function zc(e){const t=Kc();return za(t,e.getOffsetNanosecondsFor(t))}function Kc(){return Oa(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=Io();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}`,ah=e=>`Invalid field ${e}`,ih=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",Sh="Missing month/monthCode",vh="Cannot guess year",ph="Invalid leap month",wh="Invalid protocol results",Ah="Mismatching Calendars",bh=e=>`Invalid Calendar: ${e}`,Th="Mismatching TimeZones",Mh="Forbidden ICU TimeZone",Ih="Out-of-bounds offset",Eh="Out-of-bounds TimeZone gap",Oh="Invalid TimeZone offset",Nh="Ambiguous offset",Ch="Out-of-bounds date",Hh="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),al=["era","eraYear"],il=al.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),Sl="iso8601",vl="gregory",pl="japanese",wl={[vl]:{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}},Al={chinese:13,dangi:13,hebrew:-6},bl=$o(ha,"string"),Tl=$o(ha,"boolean"),Ml=$o(ha,"number"),Il=$o(ha,"function"),El=Zh.map((e=>e+"s")),Ol=zo(El),Nl=El.slice(0,6),Cl=El.slice(6),Hl=Cl.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=$a(1868,9,8),tf=Ho(ti,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(Ti,nf),Sf=$o(Ti,"largestUnit"),vf=$o(Ti,rf),pf=$o(Mi,"overflow",uf),wf=$o(Mi,"disambiguation",hf),Af=$o(Mi,"offset",lf),bf=$o(Mi,"calendarName",ff),Tf=$o(Mi,"timeZoneName",df),Mf=$o(Mi,"offset",gf),If=$o(Mi,"roundingMode",mf),Ef="PlainYearMonth",Of="PlainMonthDay",Nf="PlainDate",Cf="PlainDateTime",Hf="PlainTime",Df="ZonedDateTime",_f="Instant",kf="Duration",Lf=[Math.floor,e=>ta(e)?Math.floor(e):Math.round(e),Math.ceil,e=>ta(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>ta(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=>ta(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],Rf="UTC",Yf=5184e3,Pf=Za(1847),jf=Za((new Date).getUTCFullYear()+10),Bf=/0+$/,Ff=Ho(Ms,WeakMap),Uf=2**32-1,xf=Ho((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[xa(e,this.v)]}l(){}}class $f{constructor(e){this.$=(e=>{function t(e){const t=Go(e,a,i),[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 a,i;for(;(void 0===o||void 0===(a=o<t[0]?n:o>=t[1]?r:void 0))&&(i=t[1]-t[0]);){const n=t[0]+Math.floor(i/2);e(n)===r?t[1]=n:t[0]=n+1}return a}const r=Ho(e),o=Ho(ou);let a=Pf,i=jf;return{G(e){const n=t(e-86400),r=t(e+86400),o=e-n,a=e-r;if(n===r)return[o];const i=t(o);return i===t(a)?[e-i]:n>r?[o,a]:[]},V:t,l(e,t){const s=Go(e,a,i);let[u,c]=au(s);const h=Yf*t,l=t<0?()=>c>a||(a=s,0):()=>u<i||(i=s,0);for(;l();){const a=r(u),i=r(c);if(a!==i){const r=o(u,c);n(r,a,i);const s=r[0];if((Jo(s,e)||1)===t)return s}u+=h,c+=h}}}})((e=>t=>{const n=Da(e,t*Vh);return Za(ec(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}getOffsetNanosecondsFor(e){return this.$.V(ja(e))*Jh}getPossibleInstantsFor(e){const[t,n]=[Za((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=>Ra(ba(Oa(e,Jh),n))))}l(e,t){const[n,r]=Ba(e),o=this.$.l(n+(t>0||r?1:0),t);if(void 0!==o)return Oa(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"),ad=Au(`${Vf}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${zf}H)?(?:(\\d+)${zf}M)?(?:(\\d+)${zf}S)?)?`),id=Ho((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=Ho(Wu),cd=Ho((e=>new Zl($l,{calendar:e,timeZone:Rf,era:"short",year:"numeric",month:"short",day:"numeric"}))),hd=/^M(\d{2})(L?)$/,ld={era:ga,eraYear:Sa,year:Sa,month:pa,monthCode:ga,day:pa},fd=Fh(Qh,Sa),dd=Fh(El,va),gd=Object.assign({},ld,fd,dd,{offset:ga}),md=$o(jo,Qh,Rl),yd={dateAdd(e,t,n){const r=si(n);let o,{years:a,months:i,weeks:s,days:u}=t;if(u+=Qs(t,5)[0],a||i)o=((e,t,n,r,o)=>{let[a,i,s]=e.h(t);if(n){const[t,r]=e.I(a,i);a+=n,i=gc(t,r,e.U(a)),i=Oo("month",i,1,e.L(a),o)}return r&&([a,i]=e._(a,i,r)),s=Oo("day",s,1,e.j(a,i),o),e.q(a,i,s)})(this,e,a,i,r);else{if(!s&&!u)return e;o=Fa(e)}return o+=(7*s+u)*$h,ka(Ka(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[a,i,s]=((e,t,n,r,o,a,i)=>{let s=o-t,u=a-n,c=i-r;if(s||u){const h=Math.sign(s||u);let l=e.j(o,a),f=0;if(Math.sign(c)===-h){const r=l;[o,a]=e._(o,a,-h),s=o-t,u=a-n,l=e.j(o,a),f=h<0?-r:l}if(c=i-Math.min(r,l)+f,s){const[r,i]=e.I(t,n),[c,l]=e.I(o,a);if(u=c-r||Number(l)-Number(i),Math.sign(u)===-h){const n=h<0&&-e.L(o);s=(o-=h)-t,u=a-gc(r,i,e.U(o))+(n||e.L(o))}}}return[s,u,c]})(this,...r,...o);return 8===n&&(i+=this.J(a,r[0]),a=0),{..._l,years:a,months:i,days:s}},dateFromFields(e,t){const n=si(t),r=Dc(this,e),o=_c(this,e,r,n),a=kc(this,e,o,r,n);return Ci(ka(this.P(r,o,a)),this.id||Sl)},yearMonthFromFields(e,t){const n=si(t),r=Dc(this,e),o=_c(this,e,r,n);return Hi(_a(this.P(r,o,1)),this.id||Sl)},monthDayFromFields(e,t){const n=si(t),r=!this.id,{monthCode:o,year:a,month:i}=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(vh);if([c,h]=t,void 0!==i&&i!==h)throw new RangeError(yh);r&&(h=Oo("month",h,1,Ql,1),l=Oo("day",l,1,Wa(void 0!==a?a:c,h),n))}else{c=void 0===a&&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(vh);[c,h]=o}return Di(ka(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 Lc(n,t,cl),Sc(this)&&(Lc(n,t,il),this.id===pl&&Lc(n,t,gl,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: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:Qa,daysInWeek:()=>7},Sd={dayOfYear:fc,h:Ja,q:$a},vd=Object.assign({},Sd,{weekOfYear:hc,yearOfWeek:lc,R(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=qa(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=Qa(e),a=this.dayOfYear(e),i=qo(o-1,7),s=a-1,u=qo(i-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:fc,h:tc,q:nc,weekOfYear:hc,yearOfWeek:lc,R:()=>[]},wd=Uc(Object.assign({},yd,vd,{h:Ja,ee(e){return this.id===vl?ei(e):this.id===pl?tf(e):[]},I:(e,t)=>[t,0],N(e,t){if(!t)return[Xl,e]},K:Xa,U(){},L:Ga,J:e=>e*Ql,j:Wa,X:qa,P:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),q:$a,_:(e,t,n)=>(e+=Qo(n,Ql),(t+=ea(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,pd,{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,a]=tc.call(this,{isoYear:Xl,isoMonth:Ql,isoDay:31});const i=rc.call(this,r),s=o===i;1===(Jo(e,mc(o,i))||Jo(Number(t),Number(s))||Jo(n,a))&&r--;for(let o=0;o<100;o++){const a=r-o,i=rc.call(this,a),s=gc(e,t,i);if(t===(s===i)&&n<=ac.call(this,a,s))return[a,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:ic,J(e,t){const n=t+e,r=Math.sign(e),o=r<0?-1:0;let a=0;for(let e=t;e!==n;e+=r)a+=ic.call(this,e+o);return a},j:ac,X:oc,P(e,t,n){return Ka(nc.call(this,e,t,n))},q:nc,_(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError(Ch);if(n<0)for(;t<1;)t+=ic.call(this,--e);else{let n;for(;t>(n=ic.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},Md={year:Ad,month:Ad},Id=Object.assign({},Md,{day:Ad}),Ed={hour:Ad,minute:Ad,second:Ad},Od=Object.assign({},Id,Ed),Nd=Object.assign({},Od,{timeZoneName:"short"}),Cd=Object.keys(Md),Hd=Object.keys(Td),Dd=Object.keys(Id),_d=Object.keys(Ed),kd=["dateStyle"],Ld=Cd.concat(kd),Rd=Hd.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),Li],zd=[xc(Bd,Nd),Li,0,(e,t)=>{const n=Yi(e.timeZone);if(t&&Yi(t.timeZone)!==n)throw new RangeError(Th);return n}],Kd=[xc(jd,Od,bd),Fa],Jd=[xc(Yd,Id,Fd),Fa],Gd=[xc(Pd,Ed,Ud),e=>Ya(e)/Kh],Wd=[xc(Ld,Md,xd),Fa,1],qd=[xc(Rd,Td,Zd),Fa,1];let Xd;function Qd(e,t,n,r,o){function a(){if(!(this instanceof a))throw new TypeError(ch);Jg(this,t(...arguments))}function i(e,t){return Object.defineProperties((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.call(this,s(this),...n)}),Do(t))}function s(t){const n=Kg(t);if(!n||n.branding!==e)throw new TypeError(ch);return n}return Object.defineProperties(a.prototype,{...ko(Yo(i,n)),..._o(Yo(i,r)),...Lo("Temporal."+e)}),Object.defineProperties(a,{..._o(o),...Do(e)}),[a,e=>{const t=Object.create(a.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 a=Kg(n)||{},{branding:i}=a,s=i===Nf||t.includes(i)?a:vg(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 ag(e){let{calendar:t}=e;return"string"==typeof t?new Xm(t):t}function ig(e,t){if(t=Ai(t),Co(e)){const n=Kg(e);if(n&&n.branding===Of)return si(t),n;const r=Mg(e);return Tc(Fm(r||Sl),!r,e,t)}const n=function(e,t){const n=mu(bl(t));if(n)return uu(n),Di(ri(n));const r=su(t),{calendar:o}=r,a=e(o),[i,s,u]=a.h(r),[c,h]=a.I(i,s),[l,f]=a.N(c,h,u);return Di(ka(a.P(l,f,u)),o)}(wd,e);return si(t),n}function sg(e,t,n){return Os(ia(t.call(e,lm(Ei(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,Il(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(Co(e)){const t=Kg(e);if(t)switch(t.branding){case _f:return t;case Df:return Ei(t.epochNanoseconds)}}return function(e){const t=du(e=ga(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=iu(t.offset)}return t.timeZone&&yu(t.timeZone,1),Ei(xa(ni(t),n))}(e)}function fg(e,t,n){const r=t.l(lg(n).epochNanoseconds,e);return r?lm(Ei(r)):null}function dg(e){return Co(e)?(Kg(e)||{}).timeZone||mm(e):(e=>Mu(function(e){const t=du(e);return t&&(t.timeZone||t.m&&Rf||t.offset)||e}(bl(e))))(e)}function gg(e,t){if(Co(e)){const n=Kg(e)||{};switch(n.branding){case Hf:return si(t),n;case Cf:return si(t),_i(n);case Df:return si(t),jc(hg,n)}return function(e,t){const n=si(t);return _i(Ec(Ic(e,el,[],1),n))}(e,t)}return si(t),function(e){let t,n=(e=>{const t=nd.exec(e);return t?(pu(t[10]),vu(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))&&oi(t))throw new RangeError(Yh(e));if((t=mu(e))&&oi(t))throw new RangeError(Yh(e));return _i(ii(n,1))}(e)}function mg(e){return void 0===e?void 0:gg(e)}function yg(e,t){if(t=Ai(t),Co(e)){const n=Kg(e);return n&&n.branding===Ef?(si(t),n):bc(jm(Tg(e)),e,t)}const n=function(e,t){const n=gu(bl(t));if(n)return uu(n),Hi(_a(ri(n)));const r=su(t);return Hi(js(e(r.calendar),r))}(wd,e);return si(t),n}function Sg(e,t){if(t=Ai(t),Co(e)){const n=Kg(e)||{};switch(n.branding){case Cf:return si(t),n;case Nf:return si(t),Ni({...n,...Ul});case Df:return si(t),Yc(hg,n)}return function(e,t,n){const r=Mc(e,t,dl,[],Qh),o=si(n);return Ni(La({...e.dateFromFields(r,bi(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 Ni(hu(t))}(e);return si(t),n}function vg(e,t){if(t=Ai(t),Co(e)){const n=Kg(e)||{};switch(n.branding){case Nf:return si(t),n;case Cf:return si(t),Ci(n);case Df:return si(t),Pc(hg,n)}return Ac(Bm(Tg(e)),e,t)}const n=su(e);return si(t),n}function pg(e,t,n){return aa(t.call(e,Mm(Ci(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(Co(e)){const t=Kg(e);return t&&t.branding===kf?t:function(e){const t=Ic(e,Ol);return ki(qs({..._l,...t}))}(e)}return function(e){const t=(e=>{const t=ad.exec(e);return t?(e=>{function t(e,t,a){let i=0,s=0;if(a&&([i,o]=Wo(o,Xh[a])),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[a]/Jh),r=1)}return i+s}let n=0,r=0,o=0,a={...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)]),...ra(o,2,El)};if(!n)throw new RangeError(sh(El));return bu(e[1])<0&&(a=Gs(a)),a})(t):void 0})(bl(e));if(!t)throw new RangeError(Yh(e));return ki(qs(t))}(e)}function bg(e){if(void 0!==e){if(Co(e)){const t=Kg(e)||{};switch(t.branding){case Df:case Nf:return t;case Cf:return Ci(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?iu(t.offset):void 0);if(t.m)throw new RangeError(Yh(e));return lu(t)}(e)}}function Tg(e){return Mg(e)||Sl}function Mg(e){const{calendar:t}=e;if(void 0!==t)return Ig(t)}function Ig(e){return Co(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=Ai(t),Co(e)){const n=Kg(e);if(n&&n.branding===Df)return ui(t),n;const r=Tg(e);return function(e,t,n,r,o,a){const i=Mc(n,o,dl,nl,ol),s=e(i.timeZone),[u,c,h]=ui(a),l=n.dateFromFields(i,bi(a,u)),f=Ec(i,u);return Oi(Is(t(s),{...l,...f},void 0!==i.offset?iu(i.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?iu(r):void 0,[,a,i]=ui(t);return cu(n,o,a,i)}(e,t)}function Og(e){return Yo((e=>t=>e(Ng(t))),e)}function Ng(e){return Ff(e,hg)}function Cg(){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);ay.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,a=Bo(Object.keys(t),r),i=Ho(_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?i(e)(o,a,...u):[n,...r]};return s.u=n,s}(e,t))};for(const e in t){const n=t[e],o=e.startsWith("format")&&Hg(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 Hg(e){return function(){const t=ay.get(this),[n,...r]=t(...arguments);return n[e](...r)}}function Dg(e){return function(){return ay.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,Ho($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:oa,year:ia,month:aa,daysInMonth:aa,daysInYear:aa,inLeapYear:Tl,monthsInYear:aa},xg={monthCode:bl},Zg={day:aa},$g={dayOfWeek:aa,dayOfYear:aa,weekOfYear:function(e){if(void 0!==e)return aa(e)},yearOfWeek:oa,daysInWeek:aa},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=>Yi(e.calendar)},em=Yo(((e,t)=>function(n){const{i:r}=this;return e(r[t](Mm(Ci(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 ja(e.epochNanoseconds)},epochMilliseconds:Li,epochMicroseconds:function(e){return Na(e.epochNanoseconds,zh)},epochNanoseconds:function(e){return Na(e.epochNanoseconds)}},om=$o(Fo,new Set(["branding"])),[am,im,sm]=Qd(Of,$o((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]:Xl;const a=Sa(t),i=Sa(n),s=e(r);return Di(ka(ri({isoYear:Sa(o),isoMonth:a,isoDay:i})),s)}),Ig),{...Qg,...Xg},{getISOFields:om,getCalendar:ag,with(e,t,n){return im(function(e,t,n,r,o){const a=Ai(o);return((e,t,n,r)=>{const o=Oc(e,t,n,dl);return e.monthDayFromFields(o,r)})(e(t.calendar),n,r,a)}(Zm,e,this,tg(t),n))},equals:(e,t)=>function(e,t){return!Hu(e,t)&&Pi(e.calendar,t.calendar)}(e,ig(t)),toPlainDate(e,t){return Mm(function(e,t,n,r){return((e,t,n)=>Hc(e,t,ml,ca(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)=>im(ig(e,t))}),um={getOffsetNanosecondsFor:sg,getPossibleInstantsFor(e,t,n){const r=[...t.call(e,bm(Ni(n,Sl)))].map((e=>fm(e).epochNanoseconds)),o=r.length;return o>1&&(r.sort(Ma),Ns(Ca(Ta(r[0],r[o-1])))),r}},cm={getOffsetNanosecondsFor:sg},[hm,lm,fm]=Qd(_f,(function(e){return Ei(Ra(Ea(ma(e))))}),rm,{add:(e,t)=>lm(Cs(0,e,Ag(t))),subtract:(e,t)=>lm(Cs(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]=li(t,5,1);return Ei(Wi(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=ca(t);return ty(Rc(e,dg(n.timeZone),Ig(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 Ei(Ra(Oa(e,Jh)))}(e)),fromEpochMilliseconds:e=>lm(function(e){return Ei(Ra(Oa(e,Kh)))}(e)),fromEpochMicroseconds:e=>lm(function(e){return Ei(Ra(Ea(ma(e),zh)))}(e)),fromEpochNanoseconds:e=>lm(function(e){return Ei(Ra(Ea(ma(e))))}(e)),compare:(e,t)=>Ou(lg(e),lg(t))}),[dm,gm]=Qd("TimeZone",(e=>{const t=function(e){return Mu(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(Sg(t)).map((e=>lm(Ei(e))))},getOffsetNanosecondsFor:(e,t)=>{let{o:n}=e;return n.getOffsetNanosecondsFor(lg(t).epochNanoseconds)},getOffsetStringFor(e,t){const n=lg(t).epochNanoseconds;return vs(ug(this,cm).getOffsetNanosecondsFor(n))},getPlainDateTimeFor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Sl;const r=lg(t).epochNanoseconds,o=ug(this,cm).getOffsetNanosecondsFor(r);return bm(Ni(za(r,o),Ig(n)))},getInstantFor(e,t,n){const r=Sg(t),o=ci(n),a=ug(this);return lm(Ei(Es(a,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,Sm]=Qd(Hf,(function(){return _i(ii(Yo(Sa,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 Sm(function(e,t,n){return _i(((e,t,n)=>{const r=si(n);return Ec({...Bo(el,e),...Ic(t,el)},r)})(e,t,n))}(this,tg(t),n))},add:(e,t)=>Sm(Ls(0,e,Ag(t))),subtract:(e,t)=>Sm(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)=>Sm(function(e,t){const[n,r,o]=li(t,5);var a;return _i((a=o,Zi(e,Vi(n,r),a)[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 a=ca(o),i=t(a.plainDate),s=e(a.timeZone);return Oi(Es(n(s),{...i,...r}),s,i.calendar)}(dg,vg,cg,e,t)),toPlainDateTime:(e,t)=>bm(function(e,t){return Ni(La({...e,...t}))}(e,vg(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)=>Sm(gg(e,t)),compare:(e,t)=>Du(gg(e),gg(t))}),[vm,pm,wm]=Qd(Ef,$o((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 a=Sa(t),i=Sa(n),s=e(r);return Hi(_a(ri({isoYear:a,isoMonth:i,isoDay:Sa(o)})),s)}),Ig),{...Qg,...qg},{getISOFields:om,getCalendar:ag,with(e,t,n){return pm(function(e,t,n,r,o){const a=Ai(o);return Hi(((e,t,n,r)=>{const o=Oc(e,t,n,ll);return e.yearMonthFromFields(o,r)})(e(t.calendar),n,r,a))}(Um,e,this,tg(t),n))},add:(e,t,n)=>pm(ks(zm,0,e,Ag(t),n)),subtract:(e,t,n)=>pm(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!Hu(e,t)&&Pi(e.calendar,t.calendar)}(e,yg(t)),toPlainDate(e,t){return Mm(function(e,t,n,r){return((e,t,n)=>Hc(e,t,fl,ca(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)=>pm(yg(e,t)),compare:(e,t)=>Hu(yg(e),yg(t))}),[Am,bm]=Qd(Cf,$o((function(e,t,n,r){let o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:Sl;return Ni(La(ni(Yo(Sa,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))}),Ig),{...Qg,...Wg,...nm},{getISOFields:om,getCalendar:ag,with(e,t,n){return bm(function(e,t,n,r,o){const a=Ai(o);return Ni(((e,t,n,r)=>{const o=Oc(e,t,n,dl,Qh),a=si(r);return La({...e.dateFromFields(o,bi(r,a)),...Ec(o,a)})})(e(t.calendar),n,r,a))}(xm,e,this,tg(t),n))},withCalendar:(e,t)=>bm(Bc(e,Ig(t))),withPlainDate:(e,t)=>bm(function(e,t){return Ni({...e,...t},Fc(e.calendar,t.calendar))}(e,vg(t))),withPlainTime:(e,t)=>bm(function(e){return Ni({...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,Sg(t),n)),since:(e,t,n)=>Gm(Ru(Vm,1,e,Sg(t),n)),round:(e,t)=>bm(function(e,t){return Ni(Ui(e,...li(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!Cu(e,t)&&Pi(e.calendar,t.calendar)}(e,Sg(t)),toZonedDateTime:(e,t,n)=>ty(function(e,t,n,r){const o=((e,t,n,r)=>{const o=ci(r);return Es(e(t),n,o)})(e,n,t,r);return Oi(Ra(o),n,t.calendar)}(cg,e,dg(t),n)),toPlainDate:e=>Mm(Ci(e)),toPlainTime:e=>Sm(_i(e)),toPlainYearMonth(e){return pm(function(e,t,n){const r=e(t.calendar);return Hi({...t,...Cc(r,n)})}(jm,e,this))},toPlainMonthDay(e){return im(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:as,toJSON:e=>as(e),valueOf:og},{from:(e,t)=>bm(Sg(e,t)),compare:(e,t)=>Cu(Sg(e),Sg(t))}),[Tm,Mm,Im]=Qd(Nf,$o((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Sl;return Ci(ka(ri(Yo(Sa,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))}),Ig),{...Qg,...Wg},{getISOFields:om,getCalendar:ag,with(e,t,n){return Mm(function(e,t,n,r,o){const a=Ai(o);return((e,t,n,r)=>{const o=Oc(e,t,n,dl);return e.dateFromFields(o,r)})(e(t.calendar),n,r,a)}(xm,e,this,tg(t),n))},withCalendar:(e,t)=>Mm(Bc(e,Ig(t))),add:(e,t,n)=>Mm(_s($m,0,e,Ag(t),n)),subtract:(e,t,n)=>Mm(_s($m,1,e,Ag(t),n)),until:(e,t,n)=>Gm(Yu(Vm,0,e,vg(t),n)),since:(e,t,n)=>Gm(Yu(Vm,1,e,vg(t),n)),equals:(e,t)=>function(e,t){return!Hu(e,t)&&Pi(e.calendar,t.calendar)}(e,vg(t)),toZonedDateTime(e,t){const n=!Co(t)||t instanceof dm?{timeZone:t}:t;return ty(function(e,t,n,r,o){const a=e(o.timeZone),i=o.plainTime,s=void 0!==i?t(i):Ul;return Oi(Es(n(a),{...r,...s}),a,r.calendar)}(dg,gg,cg,e,n))},toPlainDateTime:(e,t)=>bm(function(e){return Ni(La({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ul}))}(e,mg(t))),toPlainYearMonth(e){return pm(function(e,t,n){return Cc(e(t.calendar),n)}(jm,e,this))},toPlainMonthDay(e){return im(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:is,toJSON:e=>is(e),valueOf:og},{from:(e,t)=>Mm(vg(e,t)),compare:(e,t)=>Hu(vg(e),vg(t))}),Em={fields:(e,t,n)=>[...t.call(e,n)]},Om=Object.assign({dateFromFields:(e,t,n,r)=>Im(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),Cm=Object.assign({monthDayFromFields:(e,t,n,r)=>sm(t.call(e,Object.assign(Object.create(null),n),r))},Em),Hm={mergeFields:(e,t,n,r)=>ca(t.call(e,Object.assign(Object.create(null),n),Object.assign(Object.create(null),r)))},Dm=Object.assign({},Om,Hm),_m=Object.assign({},Nm,Hm),km=Object.assign({},Cm,Hm),Lm={dateAdd:(e,t,n,r,o)=>Im(t.call(e,Mm(Ci(n,e)),Gm(ki(r)),o))},Rm=Object.assign({},Lm,{dateUntil:(e,t,n,r,o,a)=>Wm(t.call(e,Mm(Ci(n,e)),Mm(Ci(r,e)),Object.assign(Object.create(null),a,{largestUnit:Zh[o]})))}),Ym=Object.assign({},Lm,{day:pg}),Pm=Object.assign({},Rm,{day:pg}),jm=wg(Nm),Bm=wg(Om),Fm=wg(Cm),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 ki(qs(Yo(va,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 ki((n=e,r=t,qs({...n,...Ic(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 a=ru(r),[i,s,u,c,h]=((e,t,n)=>{e=wi(e,nf);let r=Sf(e);const o=n(e[sf]);let a=yi(e);const i=If(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)),Ii(r,s),a=Si(a,s,1),[r,s,a,i,o]})(o,a,e),l=Math.max(a,i);if(!Vs(h)&&l<=6)return ki(qs(((e,t,n,r,o)=>{const a=Wi(Qs(e),n,r,o);return{..._l,...eu(a,t)}})(r,i,s,u,c)));if(!h)throw new RangeError(_h);const[f,d,g]=Us(t,n,h),m=xs(g),y=Zs(g),S=$s(g),v=y(d,f,r);let p=S(d,f,v,i);const w=r.sign,A=Ws(p);if(w&&A&&w!==A)throw new RangeError(wh);return A&&(p=Gi(p,m(v),i,s,u,c,d,f,m,y)),ki(p)}(bg,Vm,cg,e,t)),total:(e,t)=>function(e,t,n,r,o){const a=ru(r),[i,s]=((e,t)=>{const n=t((e=wi(e,rf))[sf]);let r=vf(e);return r=ua(rf,r),[r,n]})(o,e);if(zs(Math.max(i,a),s))return ji(r,i);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,i);return zs(i,s)?ji(m,i):((e,t,n,r,o,a,i)=>{const s=Ws(e),[u,c]=Bi(r,Ll(n,e),n,s,o,a,i),h=Fi(t,u,c);return e[El[n]]+h*s})(m,l(g),i,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,a){const i=e(pi(a).relativeTo),s=Math.max(ru(r),ru(o));if(xo(El,r,o))return 0;if(zs(s,i))return Ma(Qs(r),Qs(o));if(!i)throw new RangeError(_h);const[u,c,h]=Us(t,n,i),l=xs(h),f=Zs(h);return Ma(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:a}=e;return Mm(Ci(a.dateAdd(vg(t),Ag(n),r),o))},dateUntil:(e,t,n,r)=>{let{o:o}=e;return Gm(ki(o.dateUntil(vg(t),vg(n),function(e){return e=pi(e),Sf(e,9,6,1)}(r))))},dateFromFields:(e,t,n)=>{let{id:r,o:o}=e;return Mm(Ac(o,t,n,function(e){return e===Sl?["year","day"]:[]}(r)))},yearMonthFromFields:(e,t,n)=>{let{id:r,o:o}=e;return pm(bc(o,t,n,function(e){return e===Sl?sl:[]}(r)))},monthDayFromFields:(e,t,n)=>{let{id:r,o:o}=e;return im(Tc(o,0,t,n,function(e){return e===Sl?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(ah(e));r.delete(e),o.push(e)}return n.fields(o)},mergeFields:(e,t,n)=>{let{o:r}=e;return r.mergeFields(Uo(sa(t)),Uo(sa(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=Ig(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]:Sl;return Oi(Ra(Ea(ma(n))),t(r),e(o))}),Ig,dg),{...rm,...Qg,...Og(Wg),...Og(nm),offset:e=>vs(Ng(e).offsetNanoseconds),offsetNanoseconds:e=>Ng(e).offsetNanoseconds,timeZoneId:e=>Yi(e.timeZone),hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=Ff(t,n),[o,a]=zi(r),i=Ca(Ta(Es(n,o),Es(n,a)),Wh,1);if(i<=0)throw new RangeError(wh);return i}(cg,e)},{getISOFields:e=>function(e,t){const n=Ff(t,e);return{calendar:t.calendar,...Bo(Fl,n),offset:vs(n.offsetNanoseconds),timeZone:t.timeZone}}(hg,e),getCalendar:ag,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,a){const i=Ai(a),{calendar:s,timeZone:u}=n;return Oi(((e,t,n,r,o)=>{const a=Oc(e,n,r,dl,rl,tl),[i,s,u]=ui(o,2);return Is(t,{...e.dateFromFields(a,bi(o,i)),...Ec(a,i)},iu(a.offset),s,u)})(e(s),t(u),r,o,i),u,s)}(xm,cg,e,this,tg(t),n))},withCalendar:(e,t)=>ty(Bc(e,Ig(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),a={...Ff(t,o),...n},i=Fc(t.calendar,n.calendar);return Oi(Is(o,a,a.offsetNanoseconds,2),r,i)}(cg,e,vg(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),a={...Ff(t,o),...n};return Oi(Is(o,a,a.offsetNanoseconds,2),r,t.calendar)}(cg,e,mg(t))),add:(e,t,n)=>ty(Hs($m,cg,0,e,Ag(t),n)),subtract:(e,t,n)=>ty(Hs($m,cg,1,e,Ag(t),n)),until:(e,t,n)=>Gm(ki(Lu(Vm,cg,0,e,Eg(t),n))),since:(e,t,n)=>Gm(ki(Lu(Vm,cg,1,e,Eg(t),n))),round:(e,t)=>ty(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:a}=t;const[i,s,u]=li(n);if(0===i&&1===s)return t;const c=e(o);if(6===i)r=((e,t,n,r)=>{const o=Ff(n,t),[a,i]=e(o),s=n.epochNanoseconds,u=Es(t,a),c=Es(t,i);if(Ia(s,u,c))throw new RangeError(wh);return Qi(Fi(s,u,c),r)?c:u})(zi,c,t,u);else{const e=c.getOffsetNanosecondsFor(r);r=Is(c,Ui(za(r,e),i,s,u),e,2,0,1)}return Oi(r,o,a)}(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))))(Ki,e(n),t);return Oi(o,n,r)}(cg,e)),equals:(e,t)=>function(e,t){return!Nu(e,t)&&!!_u(e.timeZone,t.timeZone)&&Pi(e.calendar,t.calendar)}(e,Eg(t)),toInstant:e=>lm(function(e){return Ei(e.epochNanoseconds)}(e)),toPlainDateTime:e=>bm(Yc(hg,e)),toPlainDate:e=>Mm(Pc(hg,e)),toPlainTime:e=>Sm(jc(hg,e)),toPlainYearMonth(e){return pm(function(e,t,n){return Cc(e(t.calendar),n)}(jm,e,this))},toPlainMonthDay(e){return im(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(Ei(Kc())),zonedDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jc();return ty(Oi(Kc(),dg(t),Ig(e)))},zonedDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jc();return ty(Oi(Kc(),dg(e),Sl))},plainDateTime:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jc();return bm(Ni(zc(hg(dg(t))),Ig(e)))},plainDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jc();return bm(Ni(zc(hg(dg(e))),Sl))},plainDate:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Jc();return Mm(Ci(zc(hg(dg(t))),Ig(e)))},plainDateISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jc();return Mm(Ci(zc(hg(dg(e))),Sl))},plainTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jc();return Sm(_i(zc(hg(dg(e)))))}})}),ry=Object.defineProperties({},{...Lo("Temporal"),..._o({PlainYearMonth:vm,PlainMonthDay:am,PlainDate:Tm,PlainTime:ym,PlainDateTime:Am,ZonedDateTime:ey,Instant:hm,Calendar:Xm,TimeZone:dm,Duration:Jm,Now:ny})}),oy=Cg(),ay=new WeakMap;function iy(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,a=this.adjustZenith(n,o);let i=hy.getSunriseUTC(hy.getJulianDay(e),t.getLatitude(),-t.getLongitude(),a);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getUTCSunset(e,t,n,r){const o=r?t.getElevation():0,a=this.adjustZenith(n,o);let i=hy.getSunsetUTC(hy.getJulianDay(e),t.getLatitude(),-t.getLongitude(),a);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getTemporalHour(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();if(null===e||null===t)return NaN;const n=t.epochMilliseconds-e.epochMilliseconds;return Math.floor(n/12)}getSunTransit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();const n=this.getTemporalHour(e,t);return 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 a=Math.trunc(n*=60);n-=a;const i=Math.trunc(n*=60);n-=i;const s=Math.trunc(this.geoLocation.getLongitude()/15);return t&&s+o>18?r=r.add({days:-1}):!t&&s+o<6&&(r=r.add({days:1})),r.toZonedDateTime({timeZone:"UTC",plainTime:new ry.PlainTime(o,a,i,Math.trunc(1e3*n))}).withTimeZone(this.geoLocation.getTimeZone())}static getJulianDay(e){let{year:t,month:n}=e;const{day:r}=e;n<=2&&(t-=1,n+=12);const o=Math.trunc(t/100),a=Math.trunc(2-o+o/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+a-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-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=iy(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(iy(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(iy(t))}static getSunDeclination(e){const t=hy.getObliquityCorrection(e),n=hy.getSunApparentLongitude(e),r=Math.sin(iy(t))*Math.sin(iy(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 a=Math.tan(iy(t)/2);a*=a;const i=Math.sin(2*iy(n)),s=Math.sin(iy(o));return 4*sy(a*i-2*r*s+4*r*a*s*Math.cos(2*iy(n))-.5*a*a*Math.sin(4*iy(n))-1.25*r*r*Math.sin(2*iy(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=iy(e),o=iy(t);return Math.acos(Math.cos(iy(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=iy(e),o=iy(t);return-Math.acos(Math.cos(iy(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),a=hy.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=iy(n-i),u=iy(hy.getSunDeclination(o)),c=iy(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),a=hy.getEquationOfTime(o);let i=e.hour+12+(e.minute+a+e.second/60)/60;i=-360*i/24%360;const s=iy(n-i),u=iy(hy.getSunDeclination(o)),c=iy(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),a=hy.getSolarNoonUTC(o,n),i=hy.getJulianCenturiesFromJulianDay(e+a/1440);let s=hy.getEquationOfTime(i),u=hy.getSunDeclination(i),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,a=hy.getJulianCenturiesFromJulianDay(hy.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=hy.getEquationOfTime(a),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=hy.getJulianCenturiesFromJulianDay(e),a=hy.getSolarNoonUTC(o,n),i=hy.getJulianCenturiesFromJulianDay(e+a/1440);let s=hy.getEquationOfTime(i),u=hy.getSunDeclination(i),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,a,i,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=a,this.geoid=i}getIsrael(){return this.il}getName(){return this.getLocationName()}getShortName(){const e=this.getLocationName();if(!e)return e;const t=e.indexOf(", ");if(-1===t)return e;if("US"===this.cc&&"D"===e[t+2]){if("C"===e[t+3])return e.substring(0,t+4);if("."===e[t+3]&&"C"===e[t+4])return e.substring(0,t+6)}return e.substring(0,t)}getCountryCode(){return this.cc}getTzid(){return this.getTimeZone()}getTimeFormatter(){return function(e){const t=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(Ei(Oa(this.valueOf(),Kh)))}}));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 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 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 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=ie("UTC",t),r=ie(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":ie(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 a=r.getTime();return isNaN(a)||t.getTime()>=a&&(o=o.next()),o}}const vy={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"),a=null==n?void 0:n.hour12;if(void 0!==a&&!a)return e;if(!a&&void 0===vy[o])return e;const i=e.split(":");let s=parseInt(i[0],10);return s<12&&t?(t=t.replace("p","a").replace("P","A"),0===s&&(s=12)):s>12?s%=12:0===s&&(s="00"),`${s}:${i[1]}${t}`}class wy extends Pe{constructor(e,t,n,r,o,a,i){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({},i),{location:o});this.fmtTime=py(this.eventTimeStr,"pm",u),void 0!==a&&(this.linkedEvent=a)}render(e){return ve.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return ve.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,a){super(e,"Candle lighting",t,n,r,o,a)}getEmoji(){return"🕯️"}}class by extends wy{constructor(e,t,n,r,o,a,i){super(e,"Havdalah",t,n,r,a,i),o&&(this.havdalahMins=o)}render(e){return this.renderBrief(e)+": "+this.fmtTime}renderBrief(e){let t=ve.gettext(this.getDesc(),e);if(this.havdalahMins){const n=ve.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}const Ty=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],My=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],Iy="בַּלַּ֥יְלָה";class Ey{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),a=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,i=(o%1080+a%24*1080)%1080;return{year:e,month:t,dayOfWeek:(1+29*r+Math.floor(a/24))%7,hour:a%24,minutes:Math.floor(i/18),chalakim:i%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:ve.getLocaleName())&&(e=e.toLowerCase());const r="he"===e||"he-x-nonikud"===e||"h"===e,o=ve.gettext(this.getMonthName(),e),a=(r?My:Ty)[this.getDow()],i=this.getMinutes(),s=this.getHour(),u=this.getChalakim(),c=ve.gettext("Molad",e),h=null!==(n=ve.lookupTranslation("min",e))&&void 0!==n?n:"minutes",l=ve.gettext("chalakim",e);if(r){const t=function(e){return e<5?Iy:e<12?"בַּבֹּקֶר":e<17?"בַּצׇּהֳרַיִים":e<21?"בָּעֶרֶב":Iy}(s),n=`${c} ${o} יִהְיֶה בַּיּוֹם ${a} בשָׁבוּעַ, בְּשָׁעָה ${s} ${t}, ו-${i} ${h} ו-${u} ${l}`;return"he-x-nonikud"===e?ve.hebrewStripNikkud(n):n}const f=py(`${s}:00`,"pm",t);return`${c} ${o.replace(/'/g,"’")}: ${a}, ${i} ${h} and ${u} ${l} after ${f}`}}class Oy extends Pe{constructor(e,t,n,r){const o=new Ey(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 Ny 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],a=o.words[n];return(o.words[r]+" "+(2===n||6===n?o.infix26:o.infix)+a).normalize()}(this.omer,e)}render(e){"string"==typeof(e=null!=e?e:ve.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e||"h"===e,n=this.omer;return(t?U(n):ve.ordinal(n,e))+" "+ve.gettext("day of the Omer",e)}renderBrief(e){return ve.gettext("Omer",e)+" "+ve.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:ve.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e?"he":"en",n=z(this.omer,t);return"he-x-nonikud"===e?ve.hebrewStripNikkud(n):n}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}class Cy 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 Hy{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 a=+Ee.isLeapYear(e);this.il=Boolean(t);const i=function(e){const t=Ee.longCheshvan(e),n=Ee.shortKislev(e);return t&&!n?2:!t&&n?0:1}(e);let s=`${a}${o}${i}`;if(qy[s]||(s+=+this.il),this.theSedraArray=qy[s],!this.theSedraArray)throw new Error(`improper sedra year type ${s} calculated for ${e}`)}get(e){return this.lookup(e).parsha}getString(e,t){const n=this.get(e),r=t||ve.getLocaleName();let o=ve.gettext(n[0],r);if(2===n.length){o+=("he"===r?"־":"-")+ve.gettext(n[1],r)}return o=o.replace(/'/g,"’"),ve.gettext("Parashat",r)+" "+o}isParsha(e){return!this.lookup(e).chag}find(e){if("number"==typeof e){if(e>=Dy.length||e<0&&!ky(e))throw new RangeError(`Invalid parsha number: ${e}`);const t=this.theSedraArray.indexOf(e);return-1===t?null:new Ee(this.firstSaturday+7*t)}if("string"==typeof e){const t=_y.get(e);if("number"==typeof t)return this.find(t);if(-1!==e.indexOf("-"))return this.find(e.split("-"));{const t=this.theSedraArray.indexOf(e);return-1===t?null:new Ee(this.firstSaturday+7*t)}}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=_y.get(n),a=_y.get(r);if("number"!=typeof o||"number"!=typeof a||a!==o+1||!ky(-o))throw new RangeError(`Unrecognized parsha name: ${n}-${r}`);return this.find(-o)}return null}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 Qy(this.year+1,this.il).lookup(n)}if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[Dy[o]],chag:!1,num:o+1};const a=Ly(o);return{parsha:[Dy[a],Dy[a+1]],chag:!1,num:[a+1,a+2]}}}const Dy=["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"],_y=new Map;for(let e=0;e<Dy.length;e++){const t=Dy[e];_y.set(t,e)}function ky(e){switch(e){case-21:case-26:case-28:case-31:case-38:case-41:case-50:return!0}return!1}function Ly(e){return-e}const Ry="Sukkot Shabbat Chol ha-Moed",Yy="Pesach",Py="Pesach I",jy="Pesach Shabbat Chol ha-Moed",By="Pesach VII",Fy="Pesach VIII",Uy="Shavuot";function xy(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const Zy=[51,52,Ry],$y=[52,"Yom Kippur",Ry],Vy=["Rosh Hashana",52,"Sukkot","Shmini Atzeret"],zy=xy(0,20),Ky=xy(0,27),Jy=xy(33,40),Gy=xy(43,49),Wy=xy(43,50),qy={"020":Zy.concat(zy,Ly(21),23,24,Yy,25,Ly(26),Ly(28),30,Ly(31),Jy,Ly(41),Gy,Ly(50)),"0220":Zy.concat(zy,Ly(21),23,24,Yy,25,Ly(26),Ly(28),30,Ly(31),33,Uy,xy(34,37),Ly(38),40,Ly(41),Gy,Ly(50)),"0510":$y.concat(zy,Ly(21),23,24,Py,Fy,25,Ly(26),Ly(28),30,Ly(31),Jy,Ly(41),Wy),"0511":$y.concat(zy,Ly(21),23,24,Yy,25,Ly(26),Ly(28),xy(30,40),Ly(41),Wy),"052":$y.concat(xy(0,24),By,25,Ly(26),Ly(28),30,Ly(31),Jy,Ly(41),Wy),"070":Vy.concat(zy,Ly(21),23,24,By,25,Ly(26),Ly(28),30,Ly(31),Jy,Ly(41),Wy),"072":Vy.concat(zy,Ly(21),23,24,jy,25,Ly(26),Ly(28),30,Ly(31),Jy,Ly(41),Gy,Ly(50)),1200:Zy.concat(Ky,jy,xy(28,33),Uy,xy(34,37),Ly(38),40,Ly(41),Gy,Ly(50)),1201:Zy.concat(Ky,jy,xy(28,40),Ly(41),Gy,Ly(50)),1220:Zy.concat(Ky,Py,Fy,xy(28,40),Ly(41),Wy),1221:Zy.concat(Ky,Yy,xy(28,50)),150:$y.concat(xy(0,28),By,xy(29,50)),152:$y.concat(xy(0,28),jy,xy(29,49),Ly(50)),170:Vy.concat(Ky,jy,xy(28,40),Ly(41),Gy,Ly(50)),1720:Vy.concat(Ky,jy,xy(28,33),Uy,xy(34,37),Ly(38),40,Ly(41),Gy,Ly(50))};qy["0221"]=qy["020"],qy["0310"]=qy["0220"],qy["0311"]=qy["020"],qy[1310]=qy[1220],qy[1311]=qy[1221],qy[1721]=qy[170];const Xy=new Cy({maxSize:400});function Qy(e,t){const n=`${e}-${t?1:0}`;let r=Xy.get(n);return r||(r=new Hy(e,t),Xy.set(n,r)),r}class eS 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){const t=null!=e?e:ve.getLocaleName(),n=this.parsha;let r=ve.gettext(n[0],e);if(2===n.length){r+=("he"===t?"־":"-")+ve.gettext(n[1],e)}r=r.replace(/'/g,"’");return(ve.gettext("Parashat",e)+" "+r).normalize()}basename(){return this.parsha.join("-")}url(){if(this.getDate().greg().getFullYear()<100)return;const e=this.urlDateSuffix(),t="https://www.hebcal.com/sedrot/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+e;return this.il?t+"?i=on":t}urlDateSuffix(){return se(this.getDate().greg()).replace(/-/g,"")}}const tS=f.NISAN,nS=f.IYYAR,rS=f.SIVAN,oS=f.ELUL,aS=f.TISHREI,iS=f.CHESHVAN,sS=f.KISLEV,uS=f.SHVAT,cS=f.ADAR_II,hS=Re.CHAG,lS=Re.LIGHT_CANDLES,fS=Re.YOM_TOV_ENDS,dS=Re.CHUL_ONLY,gS=Re.IL_ONLY,mS=Re.LIGHT_CANDLES_TZEIS,yS=Re.MINOR_HOLIDAY,SS=Re.EREV,vS=Re.CHOL_HAMOED,pS="🫓",wS="🌿🍋",AS="Rosh Hashana II",bS="Erev Yom Kippur",TS="Yom Kippur",MS="Erev Sukkot",IS="Sukkot I",ES="Sukkot II",OS="Sukkot III (CH''M)",NS="Sukkot IV (CH''M)",CS="Sukkot V (CH''M)",HS="Sukkot VI (CH''M)",DS="Shmini Atzeret",_S="Simchat Torah",kS="Sukkot II (CH''M)",LS="Sukkot VII (Hoshana Raba)",RS="Chanukah: 1 Candle",YS="Tu BiShvat",PS="Erev Purim",jS="Purim",BS="Shushan Purim",FS="Erev Pesach",US="Pesach I",xS="Pesach II",ZS="Pesach II (CH''M)",$S="Pesach III (CH''M)",VS="Pesach IV (CH''M)",zS="Pesach V (CH''M)",KS="Pesach VI (CH''M)",JS="Pesach VII",GS="Pesach VIII",WS="Pesach Sheni",qS="Lag BaOmer",XS="Erev Shavuot",QS="Shavuot",ev="Shavuot I",tv="Shavuot II",nv="Tu B'Av",rv="Rosh Hashana LaBehemot",ov="Erev Rosh Hashana",av="Yom Yerushalayim",iv="Ben-Gurion Day",sv="Family Day",uv="Yitzhak Rabin Memorial Day",cv="Herzl Day",hv="Jabotinsky Day",lv="Sigd",fv="Yom HaAliyah",dv="Yom HaAliyah School Observance",gv="Hebrew Language Day",mv={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:iv,CHANUKAH_1_CANDLE:RS,EREV_PESACH:FS,EREV_PURIM:PS,EREV_ROSH_HASHANA:ov,EREV_SHAVUOT:XS,EREV_SUKKOT:MS,EREV_YOM_KIPPUR:bS,FAMILY_DAY:sv,HEBREW_LANGUAGE_DAY:gv,HERZL_DAY:cv,JABOTINSKY_DAY:hv,LAG_BAOMER:qS,PESACH_I:US,PESACH_II:xS,PESACH_III_CHM:$S,PESACH_II_CHM:ZS,PESACH_IV_CHM:VS,PESACH_SHENI:WS,PESACH_VII:JS,PESACH_VIII:GS,PESACH_VI_CHM:KS,PESACH_V_CHM:zS,PURIM:jS,ROSH_HASHANA_II:AS,ROSH_HASHANA_LABEHEMOT:rv,SHAVUOT:QS,SHAVUOT_I:ev,SHAVUOT_II:tv,SHMINI_ATZERET:DS,SHUSHAN_PURIM:BS,SIGD:lv,SIMCHAT_TORAH:_S,SUKKOT_I:IS,SUKKOT_II:ES,SUKKOT_III_CHM:OS,SUKKOT_II_CHM:kS,SUKKOT_IV_CHM:NS,SUKKOT_VII_HOSHANA_RABA:LS,SUKKOT_VI_CHM:HS,SUKKOT_V_CHM:CS,TU_BAV:nv,TU_BISHVAT:YS,YITZHAK_RABIN_MEMORIAL_DAY:uv,YOM_HAALIYAH:fv,YOM_HAALIYAH_SCHOOL_OBSERVANCE:dv,YOM_KIPPUR:TS,YOM_YERUSHALAYIM:av},yv=[{mm:aS,dd:2,desc:AS,flags:hS|fS,emoji:"🍏🍯"},{mm:aS,dd:9,desc:bS,flags:SS|lS},{mm:aS,dd:10,desc:TS,flags:hS|Re.MAJOR_FAST|fS},{mm:aS,dd:14,desc:MS,flags:dS|SS|lS,emoji:wS},{mm:aS,dd:15,desc:IS,flags:dS|hS|mS,emoji:wS},{mm:aS,dd:16,desc:ES,flags:dS|hS|fS,emoji:wS},{mm:aS,dd:17,desc:OS,flags:dS|vS,chmDay:1,emoji:wS},{mm:aS,dd:18,desc:NS,flags:dS|vS,chmDay:2,emoji:wS},{mm:aS,dd:19,desc:CS,flags:dS|vS,chmDay:3,emoji:wS},{mm:aS,dd:20,desc:HS,flags:dS|vS,chmDay:4,emoji:wS},{mm:aS,dd:22,desc:DS,flags:dS|hS|mS},{mm:aS,dd:23,desc:_S,flags:dS|hS|fS},{mm:aS,dd:14,desc:MS,flags:gS|SS|lS,emoji:wS},{mm:aS,dd:15,desc:IS,flags:gS|hS|fS,emoji:wS},{mm:aS,dd:16,desc:kS,flags:gS|vS,chmDay:1,emoji:wS},{mm:aS,dd:17,desc:OS,flags:gS|vS,chmDay:2,emoji:wS},{mm:aS,dd:18,desc:NS,flags:gS|vS,chmDay:3,emoji:wS},{mm:aS,dd:19,desc:CS,flags:gS|vS,chmDay:4,emoji:wS},{mm:aS,dd:20,desc:HS,flags:gS|vS,chmDay:5,emoji:wS},{mm:aS,dd:22,desc:DS,flags:gS|hS|fS},{mm:aS,dd:21,desc:LS,flags:lS|vS,chmDay:-1,emoji:wS},{mm:sS,dd:24,desc:RS,flags:SS|yS|Re.CHANUKAH_CANDLES,emoji:"🕎1️⃣"},{mm:uS,dd:15,desc:YS,flags:yS,emoji:"🌳"},{mm:cS,dd:13,desc:PS,flags:SS|yS,emoji:"🎭️📜"},{mm:cS,dd:14,desc:jS,flags:yS,emoji:"🎭️📜"},{mm:cS,dd:15,desc:BS,flags:yS,emoji:"🎭️📜"},{mm:tS,dd:14,desc:FS,flags:gS|SS|lS,emoji:"🫓🍷"},{mm:tS,dd:15,desc:US,flags:gS|hS|fS,emoji:pS},{mm:tS,dd:16,desc:ZS,flags:gS|vS,chmDay:1,emoji:pS},{mm:tS,dd:17,desc:$S,flags:gS|vS,chmDay:2,emoji:pS},{mm:tS,dd:18,desc:VS,flags:gS|vS,chmDay:3,emoji:pS},{mm:tS,dd:19,desc:zS,flags:gS|vS,chmDay:4,emoji:pS},{mm:tS,dd:20,desc:KS,flags:gS|vS|lS,chmDay:5,emoji:pS},{mm:tS,dd:21,desc:JS,flags:gS|hS|fS,emoji:pS},{mm:tS,dd:14,desc:FS,flags:dS|SS|lS,emoji:"🫓🍷"},{mm:tS,dd:15,desc:US,flags:dS|hS|mS,emoji:"🫓🍷"},{mm:tS,dd:16,desc:xS,flags:dS|hS|fS,emoji:pS},{mm:tS,dd:17,desc:$S,flags:dS|vS,chmDay:1,emoji:pS},{mm:tS,dd:18,desc:VS,flags:dS|vS,chmDay:2,emoji:pS},{mm:tS,dd:19,desc:zS,flags:dS|vS,chmDay:3,emoji:pS},{mm:tS,dd:20,desc:KS,flags:dS|vS|lS,chmDay:4,emoji:pS},{mm:tS,dd:21,desc:JS,flags:dS|hS|mS,emoji:pS},{mm:tS,dd:22,desc:GS,flags:dS|hS|fS,emoji:pS},{mm:nS,dd:14,desc:WS,flags:yS},{mm:nS,dd:18,desc:qS,flags:yS,emoji:"🔥"},{mm:rS,dd:5,desc:XS,flags:SS|lS,emoji:"⛰️🌸"},{mm:rS,dd:6,desc:QS,flags:gS|hS|fS,emoji:"⛰️🌸"},{mm:rS,dd:6,desc:ev,flags:dS|hS|mS,emoji:"⛰️🌸"},{mm:rS,dd:7,desc:tv,flags:dS|hS|fS,emoji:"⛰️🌸"},{mm:f.AV,dd:15,desc:nv,flags:yS,emoji:"❤️"},{mm:oS,dd:1,desc:rv,flags:yS,emoji:"🐑"},{mm:oS,dd:29,desc:ov,flags:SS|lS,emoji:"🍏🍯"}],Sv=[{firstYear:5727,mm:nS,dd:28,desc:av,chul:!0},{firstYear:5737,mm:sS,dd:6,desc:iv,satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:uS,dd:30,desc:sv},{firstYear:5758,mm:iS,dd:12,desc:uv,friSatMovetoThu:!0},{firstYear:5764,mm:nS,dd:10,desc:cv,satPostponeToSun:!0},{firstYear:5765,mm:f.TAMUZ,dd:29,desc:hv,satPostponeToSun:!0},{firstYear:5769,mm:iS,dd:29,desc:lv,chul:!0,suppressEmoji:!0},{firstYear:5777,mm:tS,dd:10,desc:fv,chul:!0},{firstYear:5777,mm:iS,dd:7,desc:dv},{firstYear:5773,mm:f.TEVET,dd:21,desc:gv,friSatMovetoThu:!0}];class vv 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 mv.LAG_BAOMER:case mv.LEIL_SELICHOT:case mv.PESACH_SHENI:case mv.EREV_PURIM:case mv.PURIM_KATAN:case mv.SHUSHAN_PURIM:case mv.TU_BAV:case mv.TU_BISHVAT:case mv.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 vv(this.date,this.desc,this.mask);for(const t in this)this.hasOwnProperty(t)&&Object.defineProperty(e,t,{value:this[t]});return e}}class pv extends vv{urlDateSuffix(){return se(this.getDate().greg()).replace(/-/g,"")}}class wv extends vv{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return ve.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const Av="Rosh Chodesh";class bv extends vv{constructor(e,t){super(e,`${Av} ${t}`,Re.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=ve.gettext(t,e).replace(/'/g,"’");return ve.gettext(Av,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}const Tv="Shabbat Mevarchim Chodesh";class Mv extends Pe{constructor(e,t,n){if(super(e,`${Tv} ${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 Ey(t,r);this.memo=o.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=ve.gettext(this.monthName,e).replace(/'/g,"’");return ve.gettext(Tv,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}const Iv=new Map;class Ev{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);Iv.set(e,t)}static lookup(e,t,n){const r=Iv.get(e);return"function"==typeof r?r(t,n):null}}const Ov=Re.LIGHT_CANDLES,Nv=Re.LIGHT_CANDLES_TZEIS;function Cv(e,t,n,r,o){let a=!1,i=o,s=e?e.getFlags():Ov;void 0!==e?r||(s&(Nv|Re.CHANUKAH_CANDLES)?i=!0:s&Re.YOM_TOV_ENDS&&(a=!0,i=!0)):o&&(a=!0,s=Nv);const u=i?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 a?new by(t,s,f,c,n.havdalahMins,e,n):(s|=Ov,new Ay(t,s,f,c,e,n))}const Hv="Fast begins",Dv="Fast ends";function _v(e,t,n,r){const o=r.location,a=e.getDate();return new wy(a,n,e.getFlags(),t,o,e,r)}class kv extends vv{constructor(e,t,n,r,o){super(e,t,n),this.eventTime=Sy.roundTime(r);const a=o.getTimeFormatter();this.eventTimeStr=Sy.formatTime(this.eventTime,a),this.location=o}}const Lv=f.NISAN,Rv=f.IYYAR;function Yv(e){if(e<5708)return null;let t;const n=new Ee(15,Lv,e).getDay();return t=0===n?2:6===n?3:e<5764?4:2===n?5:4,new Ee(t,Rv,e)}const Pv="Yom Kippur Katan";class jv extends vv{constructor(e,t){super(e,`${Pv} ${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=ve.gettext(this.nextMonthName,e).replace(/'/g,"’");return ve.gettext(Pv,e)+" "+t}renderBrief(e){return ve.gettext(Pv,e)}url(){}}const Bv=Re.CHAG,Fv=Re.IL_ONLY,Uv=Re.LIGHT_CANDLES_TZEIS,xv=Re.CHANUKAH_CANDLES,Zv=Re.MINOR_FAST,$v=Re.SPECIAL_SHABBAT,Vv=Re.MODERN_HOLIDAY,zv=Re.MAJOR_FAST,Kv=Re.MINOR_HOLIDAY,Jv=Re.EREV,Gv=f.NISAN,Wv=f.TAMUZ,qv=f.AV,Xv=f.TISHREI,Qv=f.KISLEV,ep=f.TEVET,tp=f.ADAR_I,np=f.ADAR_II,rp={emoji:"🇮🇱"},op=new Cy({maxSize:400}),ap=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function ip(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=op.get(e);if(t)return t;const n=new Ee(1,Xv,e),r=new Ee(15,Gv,e),o=new Map;function a(...e){for(const t of e){const e=t.date.toString(),n=o.get(e);"object"==typeof n?n[0].getFlags()&Jv?n.unshift(t):n.push(t):o.set(e,[t])}}for(const t of yv){const n=new Ee(t.dd,t.mm,e),r=new vv(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),a(r)}a(new wv(n,e,Bv|Uv));const i=4===n.getDay()?4:3;a(new vv(new Ee(i,Xv,e),mv.TZOM_GEDALIAH,Zv)),a(new vv(new Ee(Ee.dayOnOrBefore(6,7+n.abs())),mv.SHABBAT_SHUVA,$v));const s=Ee.shortKislev(e)?new Ee(1,ep,e):new Ee(30,Qv,e);a(new vv(s,mv.CHAG_HABANOT,Kv));for(let t=2;t<=8;t++){const n=new Ee(23+t,Qv,e);a(new vv(n,`Chanukah: ${t} Candles`,Kv|xv,{chanukahDay:t-1,emoji:"🕎"+ap[t]}))}a(new vv(new Ee(32,Qv,e),mv.CHANUKAH_8TH_DAY,Kv,{chanukahDay:8,emoji:"🕎"})),a(new pv(new Ee(10,ep,e),mv.ASARA_BTEVET,Zv));const u=r.abs();a(new vv(new Ee(Ee.dayOnOrBefore(6,u-43)),mv.SHABBAT_SHEKALIM,$v),new vv(new Ee(Ee.dayOnOrBefore(6,u-30)),mv.SHABBAT_ZACHOR,$v),new vv(new Ee(u-(2===r.getDay()?33:31)),mv.TAANIT_ESTHER,Zv));const c=Ee.dayOnOrBefore(6,u-14);a(new vv(new Ee(c-7),mv.SHABBAT_PARAH,$v),new vv(new Ee(c),mv.SHABBAT_HACHODESH,$v),new vv(new Ee(Ee.dayOnOrBefore(6,u-1)),mv.SHABBAT_HAGADOL,$v),new vv(6===r.prev().getDay()?r.onOrBefore(4):new Ee(14,Gv,e),mv.TAANIT_BECHOROT,Zv)),a(new vv(new Ee(Ee.dayOnOrBefore(6,new Ee(1,Xv,e+1).abs()-4)),mv.LEIL_SELICHOT,Kv,{emoji:"🕍"})),0===r.getDay()&&a(new vv(new Ee(16,np,e),mv.PURIM_MESHULASH,Kv)),Ee.isLeapYear(e)&&(a(new vv(new Ee(14,tp,e),mv.PURIM_KATAN,Kv,{emoji:"🎭️"})),a(new vv(new Ee(15,tp,e),mv.SHUSHAN_PURIM_KATAN,Kv,{emoji:"🎭️"})));const h=function(e){if(e<5711)return null;let t=new Ee(27,Lv,e);return 5===t.getDay()?t=new Ee(26,Lv,e):0===t.getDay()&&(t=new Ee(28,Lv,e)),t}(e);h&&a(new vv(h,mv.YOM_HASHOAH,Vv));const l=Yv(e);l&&a(new vv(l,mv.YOM_HAZIKARON,Vv,rp),new vv(l.next(),mv.YOM_HAATZMA_UT,Vv,rp));for(const t of Sv)if(e>=t.firstYear){let n=new Ee(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new Ee(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?Vv:Vv|Fv,i=new vv(n,t.desc,o);t.suppressEmoji||(i.emoji="🇮🇱"),a(i)}let d,g=new Ee(17,Wv,e);6===g.getDay()&&(g=new Ee(18,Wv,e),d={observed:!0}),a(new vv(g,mv.TZOM_TAMMUZ,Zv,d));let m,y=new Ee(9,qv,e),S=mv.TISHA_BAV;6===y.getDay()&&(y=y.next(),m={observed:!0},S+=" (observed)");const v=y.abs();a(new vv(new Ee(Ee.dayOnOrBefore(6,v)),mv.SHABBAT_CHAZON,$v),new vv(y.prev(),mv.EREV_TISHA_BAV,Jv|zv,m),new vv(y,S,zv,m),new vv(new Ee(Ee.dayOnOrBefore(6,v+7)),mv.SHABBAT_NACHAMU,$v));const p=Ee.monthsInYear(e);for(let t=1;t<=p;t++){const n=Ee.getMonthName(t,e);30===(t===Gv?Ee.daysInMonth(Ee.monthsInYear(e-1),e-1):Ee.daysInMonth(t-1,e))?(a(new bv(new Ee(1,t,e),n)),a(new bv(new Ee(30,t-1,e),n))):t!==Xv&&a(new bv(new Ee(1,t,e),n))}for(let t=f.IYYAR;t<=p;t++){const n=t+1;if(n===Xv||n===f.CHESHVAN||n===ep)continue;let r=new Ee(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const i=Ee.getMonthName(n,e);a(new jv(r,i))}const w=Qy(e,!1).find(15);a(new vv(w,mv.SHABBAT_SHIRAH,$v));const A=function(e){const t=Ee.isLeapYear(e),n=t?np:Gv,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);a(new vv(e,mv.BIRKAT_HACHAMAH,Kv,{emoji:"☀️"}))}return op.set(e,o),o}function sp(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}const up={shacharit:!1,mincha:!1,allCongs:!1};function cp(e,t){return hp(e,t,!0)}function hp(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 a=new Ee(15,f.ADAR_II,e);6===a.getDay()&&(a=a.next());const i=[new Ee(2,f.TISHREI,e)].concat(sp(1,r).map((t=>new Ee(1,t,e))),sp(1,r).filter((t=>30===Ee.daysInMonth(t,e))).map((t=>new Ee(30,t,e))),sp(1,Ee.daysInMonth(f.NISAN,e)).map((t=>new Ee(t,f.NISAN,e))),new Ee(18,f.IYYAR,e),sp(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),sp(9,24-(t?1:0)).map((t=>new Ee(t,f.TISHREI,e))),sp(25,33).map((t=>new Ee(t,f.KISLEV,e))),new Ee(15,f.SHVAT,e),new Ee(14,f.ADAR_II,e),a,n?new Ee(14,f.ADAR_I,e):[]),s=[new Ee(14,f.IYYAR,e)].concat(sp(1,13).map((t=>new Ee(t,f.SIVAN,e))),sp(20,31).map((t=>new Ee(t,f.TISHREI,e))),e>=5708?Yv(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:i.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 up;const a=e.getDay(),i={shacharit:!1,mincha:!1,allCongs:!1};-1===r.some.indexOf(o)&&(i.allCongs=!0),6!==a&&(i.shacharit=!0);const s=o+1;if(n&&-1===r.yesPrev.indexOf(s)){const e=hp(new Ee(s),t,!1);i.mincha=e.shacharit}else i.mincha=5!==a;return!i.allCongs||i.mincha||i.shacharit?i:up}const lp=f.TISHREI;function fp(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 dp(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[fp(e.start),fp(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||lp,t);let o=r.abs();const a=e?o+r.daysInMonth():new Ee(1,lp,t+n).abs()-1;!e&&t>1&&o--;return[o,a]}(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 a=h(o);let i;if(e)i=a+s(e,t)-1;else{const e=t+n,r=new Date(e,0,1);e<100&&r.setFullYear(e),i=h(r)-1}return[a,i]}(r,n,o)}const gp=f.NISAN,mp=f.SIVAN,yp=f.ELUL,Sp=f.TISHREI,vp=Re.LIGHT_CANDLES,pp=Re.YOM_TOV_ENDS,wp=Re.CHUL_ONLY,Ap=Re.IL_ONLY,bp=Re.LIGHT_CANDLES_TZEIS,Tp=Re.CHANUKAH_CANDLES,Mp=Re.MINOR_FAST,Ip=Re.SPECIAL_SHABBAT,Ep=Re.MODERN_HOLIDAY,Op=Re.MAJOR_FAST,Np=Re.ROSH_CHODESH,Cp=Re.PARSHA_HASHAVUA,Hp=Re.DAF_YOMI,Dp=Re.MISHNA_YOMI,_p=Re.NACH_YOMI,kp=Re.YERUSHALMI_YOMI,Lp=Re.OMER_COUNT,Rp=Re.SHABBAT_MEVARCHIM,Yp=Re.MINOR_HOLIDAY,Pp=Re.EREV,jp=Re.CHOL_HAMOED,Bp=Re.YOM_KIPPUR_KATAN,Fp=new Set,Up={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,fastEndDeg:1,sedrot:1,il:1,noMinorFast:1,noModern:1,shabbatMevarchim:1,noRoshChodesh:1,noSpecialShabbat:1,noHolidays:1,omer:1,molad:1,ashkenazi:1,locale:1,addHebrewDates:1,addHebrewDatesForEvents:1,appendHebrewToSubject:1,mask:1,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1};const xp={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},Zp={281184:40,294801:30,293067:30};function $p(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=Zp[n];if("number"==typeof e)return e}const r=e.getShortName();if(r){const e=xp[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=8.5,"number"!=typeof e.fastEndDeg&&(e.fastEndDeg=7.0833333)}function Vp(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask||0;t&Np&&delete e.noRoshChodesh;t&Ep&&delete e.noModern;t&Mp&&delete e.noMinorFast;t&Ip&&delete e.noSpecialShabbat;t&Cp&&(e.sedrot=!0);t&(Hp|Dp|_p|kp)&&(e.dailyLearning=e.dailyLearning||{},t&Hp&&(e.dailyLearning.dafYomi=!0),t&Dp&&(e.dailyLearning.mishnaYomi=!0),t&_p&&(e.dailyLearning.nachYomi=!0),t&kp&&(e.dailyLearning.yerushalmi=1));t&Lp&&(e.omer=!0);t&Rp&&(e.shabbatMevarchim=!0);t&Bp&&(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;if(e.noHolidays||(r|=Np|pp|Mp|Ip|Ep|Op|Yp|Pp|jp|vp|bp|Tp),e.candlelighting&&(r|=vp|bp|pp),e.noRoshChodesh&&(r&=~Np),e.noModern&&(r&=~Ep),e.noMinorFast&&(r&=~Mp),e.noSpecialShabbat&&(r&=~Ip,r&=~Rp),r|=n?Ap:wp,e.sedrot&&(r|=Cp),e.omer&&(r|=Lp),e.shabbatMevarchim&&(r|=Rp),e.yomKippurKatan&&(r|=Bp),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=Hp),t.mishnaYomi&&(r|=Dp),t.nachYomi&&(r|=_p),t.yerushalmi&&(r|=kp)}return r}const zp=vp|bp|Tp|pp,Kp=new my(0,0,!1,"UTC");function Jp(e){return e.observedInIsrael()}function Gp(e){return e.observedInDiaspora()}class Wp{constructor(){}static calendar(e={}){$p(e=Object.assign({},e));const t=e.location=e.location||Kp,n=e.il=e.il||t.getIsrael()||!1,r="number"==typeof e.mask;if(e.mask=Vp(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(!ve.useLocale(t))throw new TypeError(`Locale '${t}' not found; did you forget to import @hebcal/locales?`)}else ve.useLocale("en");const o=[];let a,i,s=-1,u=-1,c=-1;const h=dp(e);!function(e){for(const t of Object.keys(e))void 0!==Up[t]||Fp.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),Fp.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,i=ip(c),e.sedrot&&(a=Qy(c,n)),e.omer&&(s=Ee.hebrew2abs(c,gp,16),u=Ee.hebrew2abs(c,mp,5)));const f=o.length,d=h.getDay(),g=5===d,m=6===d;let y;const S=i.get(h.toString())||[];for(const t of S)y=Xp(y,o,t,e,g,m,r);if(e.sedrot&&m){const e=a.lookup(t);e.chag||o.push(new eS(h,e.parsha,n,e.num))}const v=e.dailyLearning;if("object"==typeof v){const e=tw(h,v,n);o.push(...e)}if(e.omer&&t>=s&&t<=u){const n=nw(h,t-s+1,e);o.push(n)}if(m&&(e.molad||e.shabbatMevarchim)){const t=Qp(h,e);o.push(...t)}if(!y&&e.candlelighting&&(g||m)&&(y=Cv(void 0,h,e,g,m),g&&y&&a&&(y.memo=a.getString(t,e.locale))),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}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 a=n.mm,i=n.dd;return a===L&&!o||a===R&&o?a=b(e):a!==H||30!==i||O(e)?a===D&&30===i&&N(e)?(a=_,i=1):a===L&&30===i&&o&&!A(e)&&(a=C,i=1):(a=D,i=1),{yy:e,mm:a,dd:i}}(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!==H||30!==n.dd||O(n.yy+1)?n.mm===D&&30===n.dd&&N(n.yy+1)?n=w(v(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(v(e,D,1)-1),n.mm!==H||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 ip(e)}static getHolidaysForYearArray(e,t){const n=ip(e),r=Ee.hebrew2abs(e,Sp,1),o=Ee.hebrew2abs(e+1,Sp,1)-1;let a=[];const i=t?Jp:Gp;for(let e=r;e<=o;e++){const t=new Ee(e),r=n.get(t.toString());if(r){const e=r.filter(i);a=a.concat(e)}}return a}static getHolidaysOnDate(e,t){const n=Ee.isHDate(e)?e:new Ee(e),r=n.toString(),o=ip(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const a=t?Jp:Gp;return o.filter(a)}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!(!qp(r,t)||qp(n,t)||!qp(o,t))}static reformatTimeStr(e,t,n){return py(e,t,n)}static version(){return t}static getSedra(e,t){return Qy(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}(Wp.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return cp(e,t)}}function qp(e,t){return 0!==(Wp.getHolidaysOnDate(e,t)||[]).filter((e=>e.getFlags()&Re.CHAG)).length}function Xp(e,t,n,r,o,a,i){const s=r.il||!1;if(!n.observedIn(s))return e;const u=n.getFlags();if(!r.yomKippurKatan&&u&Bp||r.noModern&&u&Ep)return e;const c=Boolean(u&Op),h=Boolean(u&Mp);if(r.candlelighting&&(c||h)&&(n=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)return e;const r=(e=e.clone()).getDate(),o=r.greg(),a=t.location,i=t.fastEndDeg,s=Boolean(t.useElevation),u=new Sy(a,o,s);if("Erev Tish'a B'Av"===n){const n=u.sunset();isNaN(n.getTime())||(e.startEvent=_v(e,n,Hv,t))}else if(n.startsWith("Tish'a B'Av")){const n=u.tzeit(i);isNaN(n.getTime())||(e.endEvent=_v(e,n,Dv,t))}else{const n=u.alotHaShachar();if(isNaN(n.getTime())||(e.startEvent=_v(e,n,Hv,t)),5!==o.getDay()&&(14!==r.getDate()||r.getMonth()!==f.NISAN)){const n=u.tzeit(i);isNaN(n.getTime())||(e.endEvent=_v(e,n,Dv,t))}}return e}(n,r),n.startEvent&&(c||h&&!r.noMinorFast)&&t.push(n.startEvent)),u&Number(r.mask)||!u&&!i){if(r.candlelighting&&u&zp){const t=n.getDate();if(e=Cv(n,t,r,o,a),u&Tp&&e&&!r.noHolidays){const i=function(e,t,n){const r=n.location,o=Boolean(n.useElevation),a=new Sy(r,t.greg(),o).beinHaShmashos();if(isNaN(a.getTime()))return null;const i=new kv(t,e.getDesc(),e.getFlags(),a,r);return i.emoji=e.emoji,i.chanukahDay=e.chanukahDay,i}(n,t,r);i&&((o||a)&&(i.eventTime=e.eventTime,i.eventTimeStr=e.eventTimeStr),n=i),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&u&Bp)&&t.push(n)}return n.endEvent&&(c||h&&!r.noMinorFast)&&t.push(n.endEvent),e}function Qp(e,t){const n=[],r=e.getMonth(),o=e.getDate();if(r!==yp&&o>=23&&o<=29){const o=e.getFullYear(),a=r===Ee.monthsInYear(o)?gp:r+1;if(t.molad&&n.push(new Oy(e,o,a,t)),t.shabbatMevarchim){const r=Ee.getMonthName(a,o),i=new Ey(o,a).render(t.locale||"en",t);n.push(new Mv(e,r,i))}}return n}function ew(e,t){return"yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e}function tw(e,t,n){const r=[];for(const[o,a]of Object.entries(t))if(a){const t=ew(o,a),i=Ev.lookup(t,e,n);i&&r.push(i)}return r}function nw(e,t,n){const r=new Ny(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}return e.AsaraBTevetEvent=pv,e.CandleLightingEvent=Ay,e.DailyLearning=Ev,e.Event=Pe,e.GeoLocation=uy,e.HDate=Ee,e.HavdalahEvent=by,e.HebrewCalendar=Wp,e.HebrewDateEvent=je,e.HolidayEvent=vv,e.Locale=ve,e.Location=my,e.MevarchimChodeshEvent=Mv,e.Molad=Ey,e.MoladEvent=Oy,e.NOAACalculator=hy,e.OmerEvent=Ny,e.ParshaEvent=eS,e.RoshChodeshEvent=bv,e.RoshHashanaEvent=wv,e.Sedra=Hy,e.TimedEvent=wy,e.Zmanim=Sy,e.flags=Re,e.gematriya=U,e.gematriyaStrToNum=x,e.holidayDesc=mv,e.months=f,e.parshiot=Dy,e.version=t,e}({});
|
|
3
3
|
//# sourceMappingURL=bundle.min.js.map
|