@hebcal/core 6.10.0 → 6.11.0
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/README.md +13 -5
- package/dist/bundle.js +88 -16
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.min.js +13 -13
- package/dist/bundle.min.js.map +1 -1
- package/dist/esm/CalOptions.d.ts +35 -2
- package/dist/esm/DailyLearning.js +1 -1
- package/dist/esm/HebrewDateEvent.js +1 -1
- package/dist/esm/HolidayEvent.js +1 -1
- package/dist/esm/MevarchimChodeshEvent.js +1 -1
- package/dist/esm/ParshaEvent.js +1 -1
- package/dist/esm/TimedEvent.js +1 -1
- package/dist/esm/YomKippurKatanEvent.js +1 -1
- package/dist/esm/ashkenazi.po.js +1 -1
- package/dist/esm/calendar.d.ts +11 -3
- package/dist/esm/calendar.js +36 -4
- package/dist/esm/calendar.js.map +1 -1
- package/dist/esm/candles.d.ts +8 -5
- package/dist/esm/candles.js +52 -12
- package/dist/esm/candles.js.map +1 -1
- package/dist/esm/cities.json.js +1 -1
- package/dist/esm/event.js +1 -1
- package/dist/esm/getStartAndEnd.js +1 -1
- package/dist/esm/hallel.js +1 -1
- package/dist/esm/he-x-NoNikud.po.js +1 -1
- package/dist/esm/he.po.js +1 -1
- package/dist/esm/hebcal.js +1 -1
- package/dist/esm/holidays.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/isAssurBemlacha.js +1 -1
- package/dist/esm/isAveilut.js +1 -1
- package/dist/esm/isFastDay.js +1 -1
- package/dist/esm/locale.js +1 -1
- package/dist/esm/location.js +1 -1
- package/dist/esm/modern.js +1 -1
- package/dist/esm/molad.js +1 -1
- package/dist/esm/moladBase.js +1 -1
- package/dist/esm/moladDate.js +1 -1
- package/dist/esm/omer.js +1 -1
- package/dist/esm/parshaName.js +1 -1
- package/dist/esm/parshaYear.js +1 -1
- package/dist/esm/pkgVersion.d.ts +1 -1
- package/dist/esm/pkgVersion.js +2 -2
- package/dist/esm/pkgVersion.js.map +1 -1
- package/dist/esm/reformatTimeStr.js +1 -1
- package/dist/esm/sedra.js +1 -1
- package/dist/esm/sefira.json.js +1 -1
- package/dist/esm/staticHolidays.js +1 -1
- package/dist/esm/string.js +1 -1
- package/dist/esm/tachanun.js +1 -1
- package/dist/esm/zmanim.js +1 -1
- package/package.json +1 -1
package/dist/bundle.min.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/*! @hebcal/core v6.
|
|
2
|
-
var hebcal=function(
|
|
3
|
-
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */function a(e
|
|
1
|
+
/*! @hebcal/core v6.11.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
2
|
+
var hebcal=function(t){"use strict";const e="6.11.0",n=[0,31,28,31,30,31,30,31,31,30,31,30,31],r=[n,n.slice()];
|
|
3
|
+
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */function a(t,e){return t-e*Math.floor(t/e)}function o(t,e){return Math.floor(t/e)}function i(t){return!(t%4||!(t%100)&&t%400)}function s(t,e){return r[+i(e)][t]}function u(t){return"object"==typeof t&&Date.prototype.isPrototypeOf(t)}function c(t,e,n){const r=t-1;return 365*r+o(r,4)-o(r,100)+o(r,400)+o(367*e-362,12)+(e<=2?0:i(t)?-1:-2)+n}function h(t){if(!u(t))throw new TypeError(`not a Date: ${t}`);if(isNaN(t.getTime()))throw new RangeError("Invalid Date");return c(t.getFullYear(),t.getMonth()+1,t.getDate())}function l(t){if("number"!=typeof t||isNaN(t))throw new TypeError(`not a Number: ${t}`);const e=function(t){const e=t-1,n=o(e,146097),r=a(e,146097),i=o(r,36524),s=a(r,36524),u=o(s,1461),c=o(a(s,1461),365),h=400*n+100*i+4*u+c;return 4!==i&&4!==c?h+1:h}(t=Math.trunc(t)),n=o(12*(t-c(e,1,1)+(t<c(e,3,1)?0:i(e)?1:2))+373,367),r=t-c(e,n,1)+1,s=new Date(e,n-1,r);return e<100&&e>=0&&s.setFullYear(e),s}
|
|
4
4
|
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
5
5
|
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
6
|
-
function d(
|
|
7
|
-
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */r[1][2]=29,
|
|
8
|
-
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */const
|
|
6
|
+
function d(t){if("string"!=typeof t)throw new TypeError(`bad nikkud str: ${t}`);return t.normalize().replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}
|
|
7
|
+
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */r[1][2]=29,t.greg=void 0,t.greg||(t.greg={}),t.greg.abs2greg=l,t.greg.daysInMonth=s,t.greg.greg2abs=h,t.greg.isDate=u,t.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},m="Nisan",g=["",m,"Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],y=[[...g,"Adar",m],[...g,"Adar I","Adar II",m]],S=5e3,A=new Int32Array(2e3),p=-1373428;function I(t,e){if("number"!=typeof t||isNaN(t))throw new TypeError(`param '${e}' not a number: ${t}`)}function T(t,e,n){if(I(t,"year"),I(e,"month"),I(n,"day"),t<1)throw new RangeError(`hebrew2abs: invalid year ${t}`);let r=n;if(e<7){const n=b(t);for(let e=7;e<=n;e++)r+=H(e,t);for(let n=1;n<e;n++)r+=H(n,t)}else for(let n=7;n<e;n++)r+=H(n,t);return p+C(t)+r-1}function M(t){return p+C(t)}function v(t){if(I(t,"abs"),(t=Math.trunc(t))<=p)throw new RangeError(`abs2hebrew: ${t} is before epoch`);let e=Math.floor((t-p)/365.24682220597794);for(;M(e)<=t;)++e;--e;let n=t<T(e,1,1)?7:1;for(;t>T(e,n,H(n,e));)++n;return{yy:e,mm:n,dd:1+t-T(e,n,1)}}function w(t){return(1+7*t)%19<7}function b(t){return+w(t)+12}const E=[0,30,29,30,29,30,29,30,0,0,29,30,0,29];function H(t,e){const n=E[t];return 0!==n?n:12===t?w(e)?30:29:8===t?O(e)?30:29:_(e)?29:30}function N(t,e){if(I(t,"month"),I(e,"year"),t<1||t>14)throw new TypeError(`bad monthNum: ${t}`);return y[+w(e)][t]}function C(t){if(t>=S&&t<=6999){const e=t-S,n=A[e];if(0!==n)return n;const r=D(t);return A[e]=r,r}return D(t)}function D(t){const e=t-1,n=235*Math.floor(e/19)+e%19*12+Math.floor((e%19*7+1)/19),r=204+n%1080*793,a=5+12*n+793*Math.floor(n/1080)+Math.floor(r/1080),o=r%1080+a%24*1080,i=1+29*n+Math.floor(a/24);let s=i;return(o>=19440||2==i%7&&o>=9924&&!w(t)||1==i%7&&o>=16789&&w(e))&&s++,s%7==0||s%7==3||s%7==5?s+1:s}function k(t){return C(t+1)-C(t)}function O(t){return k(t)%10==5}function _(t){return k(t)%10==3}function B(t){if("number"==typeof t){if(isNaN(t)||t<1||t>14)throw new RangeError(`bad monthName: ${t}`);return t}if("string"!=typeof t)throw new TypeError(`bad monthName: ${t}`);let e=t.trim().toLowerCase();switch(e=d(e).replace(/׳$/,""),e.startsWith("ב")&&(e=e.substring(1)),e[0]){case"n":case"נ":if("o"===e[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(e[1]){case"i":return 3;case"h":return 11}break;case"t":switch(e[1]){case"a":return 4;case"i":return 7;case"e":return 10}break;case"a":switch(e[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(e[1]){case"ב":return 5;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?12:13;case"י":return 2;case"ל":return 6}break;case"ת":switch(e[1]){case"מ":return 4;case"ש":return 7}}throw new RangeError(`bad monthName: ${t}`)}
|
|
8
|
+
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */const L=f.NISAN,R=f.CHESHVAN,Y=f.KISLEV,Z=f.TEVET,P=f.SHVAT,U=f.ADAR_I,x=f.ADAR_II;function z(t){if(function(t){const e=t;return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(t)){const e=t;return{yy:e.yy,mm:e.mm,dd:e.dd}}if(u(t)){return v(h(t))}return v(t)}
|
|
9
9
|
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
10
|
-
const F={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},j={};for(const[e
|
|
11
|
-
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */function G(
|
|
12
|
-
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */const W=new Map;const q=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function X(e
|
|
13
|
-
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */var
|
|
10
|
+
const F={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},j={};for(const[t,e]of Object.entries(F))j[e]=t;function $(t){const e=[];for(;t>0;){if(15===t||16===t){e.push(9,t-9);break}let n,r=100;for(n=400;n>t;n-=r)n===r&&(r/=10);e.push(n),t-=n}return e}function V(t){const e=parseInt(t,10);if(!e||e<0)throw new TypeError(`invalid number: ${t}`);let n="";const r=Math.floor(e/1e3);if(r>0&&5!==r){const t=$(r);for(const e of t)n+=j[e];n+="׳"}const a=$(e%1e3);if(1===a.length)return n+j[a[0]]+"׳";for(let t=0;t<a.length;t++)t+1===a.length&&(n+="״"),n+=j[a[t]];return n}function K(t){if("string"!=typeof t)throw new TypeError(`bad gematriya str: ${t}`);let e=0;const n=t.indexOf("׳");if(-1!==n&&n!==t.length-1){e+=1e3*K(t.substring(0,n)),t=t.substring(n)}for(const n of t){const t=F[n];"number"==typeof t&&(e+=t)}return e}
|
|
11
|
+
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */function G(t){return t<0?"-00"+G(-t):t<10?"000"+t:t<100?"00"+t:t<1e3?"0"+t:String(t)}function J(t){return t>=0&&t<10?"0"+t:String(t)}
|
|
12
|
+
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */const W=new Map;const q=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function X(t,e){const n=function(t){const e=W.get(t);if(e)return e;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:t});return W.set(t,n),n}(t).format(e),r=q.exec(n);if(null===r)throw new Error(`Unable to parse formatted string: ${n}`);let a=r[4];return"24"===a&&(a="00"),r[3]=G(parseInt(r[3],10)),`${r[3]}-${r[1]}-${r[2]}T${a}:${r[5]}:${r[6]}Z`}function Q(t,e){const n=X("UTC",e),r=X(t,e),a=new Date(n).getTime()-new Date(r).getTime();return Math.ceil(a/1e3/60)}function tt(t){return G(t.getFullYear())+"-"+J(t.getMonth()+1)+"-"+J(t.getDate())}
|
|
13
|
+
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */var et={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"he"},contexts:{"":{Adar:["אֲדָר"],"Adar I":["אֲדָר א׳"],"Adar II":["אֲדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָּיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tammuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"]}}};
|
|
14
14
|
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
15
15
|
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
16
|
-
const
|
|
16
|
+
const nt={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},rt={h:"he",a:"ashkenazi",s:"en","":"en"},at=new Map;function ot(t){if("string"!=typeof t)throw new TypeError(`Invalid locale name: ${t}`);return(t=rt[t]||t).toLowerCase()}function it(t){const e=ot(t),n=at.get(e);if(!n)throw new RangeError(`Locale '${t}' not found`);return n}class st{static lookupTranslation(t,e){const n=("string"==typeof e&&at.get(ot(e))||nt.contexts[""])[t];if(n?.length&&n[0].length)return n[0]}static gettext(t,e){const n=this.lookupTranslation(t,e);return void 0===n?t:n}static addLocale(t,e){t=ot(t);const n=e.contexts;if("object"!=typeof n||"object"!=typeof n[""])throw new TypeError(`Locale '${t}' invalid compact format`);at.set(t,n[""])}static addTranslation(t,e,n){const r=it(t);if("string"!=typeof e||0===e.length)throw new TypeError(`Invalid id string: ${e}`);const a=Array.isArray(n);if(a){const t=n[0];if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid translation array: ${n}`)}else if("string"!=typeof n)throw new TypeError(`Invalid translation string: ${n}`);r[e]=a?n:[n]}static addTranslations(t,e){const n=it(t),r=e.contexts;if("object"!=typeof r||"object"!=typeof r[""])throw new TypeError(`Locale '${t}' invalid compact format`);Object.assign(n,r[""])}static getLocaleNames(){return Array.from(at.keys()).sort((t,e)=>t.localeCompare(e))}static hasLocale(t){const e=ot(t);return at.has(e)}static ordinal(t,e){const n=ot(e||"");return"en"===n||n.startsWith("ashkenazi")?function(t){const e=["th","st","nd","rd"],n=t%100;return t+(e[(n-20)%10]||e[n]||e[0])}(t):st.isHebrewLocale(n)?String(t):"es"===n?t+"º":t+"."}static hebrewStripNikkud(t){return d(t)}static copyLocaleNoNikud(t){const e=t.contexts[""],n={};for(const[t,r]of Object.entries(e))n[t]=[d(r[0])];return{headers:t.headers,contexts:{"":n}}}static isHebrewLocale(t){return"string"==typeof t&&(t=(t=rt[t]||t).toLowerCase()).startsWith("he")}}st.addLocale("en",nt),st.addLocale("ashkenazi",{headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"und-x-ashkenaz"},contexts:{"":{Tevet:["Teves"]}}}),st.addLocale("he",et);const ut=st.copyLocaleNoNikud(et);
|
|
17
17
|
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
18
|
-
function
|
|
19
|
-
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */function Ae(e,t){const n=function(e,t){let n=z(t);if(!(e<=n.yy))return n.mm!==R||30!==n.dd||O(n.yy+1)?n.mm===Y&&30===n.dd&&_(n.yy+1)?n=v(T(e,Z,1)-1):n.mm===x?n.mm=b(e):n.mm!==U||30!==n.dd||w(e)||(n.dd=30,n.mm=P):n=v(T(e,Y,1)-1),n.mm!==R||30!==n.dd||O(e)?n.mm===Y&&30===n.dd&&_(e)&&(n.mm=Z,n.dd=1):(n.mm=Y,n.dd=1),n.yy=e,n}(e,t);return n&&new fe(n)}function pe(e,t){const n=function(e,t){const n=z(t),r=n.yy;if(e===r)return n;if(e<r)return;const a=w(r);let o=n.mm,i=n.dd;return o===U&&!a||o===x&&a?o=b(e):o!==R||30!==i||O(e)?o===Y&&30===i&&_(e)?(o=Z,i=1):o===U&&30===i&&a&&!w(e)&&(o=B,i=1):(o=Y,i=1),{yy:e,mm:o,dd:i}}(e,t);return n&&new fe(n)}var Ie={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"he_IL"},contexts:{"":{Shabbat:["שַׁבָּת"],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":["פֶּסַח ח׳"],"Pesach Shabbat Chol ha-Moed":["שַׁבַּת חֹל הַמּוֹעֵד פֶּסַח"],Purim:["פּוּרִים"],"Purim Katan":["פּוּרִים קָטָן"],"Rosh Chodesh":["רֹאשׁ חוֹדֶשׁ"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבַּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבַּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבַּת הַגָּדוֹל"],"Shabbat Nachamu":["שַׁבַּת נַחֲמוּ"],"Shabbat Parah":["שַׁבַּת פָּרָה"],"Shabbat Shekalim":["שַׁבַּת שְׁקָלִים"],"Shabbat Shuva":["שַׁבַּת שׁוּבָה"],"Shabbat Zachor":["שַׁבַּת זָכוֹר"],Shavuot:["שָׁבוּעוֹת"],"Shavuot I":["שָׁבוּעוֹת א׳"],"Shavuot II":["שָׁבוּעוֹת ב׳"],"Shmini Atzeret":["שְׁמִינִי עֲצֶרֶת"],"Shushan Purim":["שׁוּשָׁן פּוּרִים"],Sigd:["חַג הַסִּיגְד"],"Simchat Torah":["שִׂמְחַת תּוֹרָה"],Sukkot:["סֻכּוֹת"],"Sukkot I":["סֻכּוֹת א׳"],"Sukkot II":["סֻכּוֹת ב׳"],"Sukkot II (CH''M)":["סֻכּוֹת ב׳ (חוה״מ)"],"Sukkot III (CH''M)":["סֻכּוֹת ג׳ (חוה״מ)"],"Sukkot IV (CH''M)":["סֻכּוֹת ד׳ (חוה״מ)"],"Sukkot V (CH''M)":["סֻכּוֹת ה׳ (חוה״מ)"],"Sukkot VI (CH''M)":["סֻכּוֹת ו׳ (חוה״מ)"],"Sukkot VII (Hoshana Raba)":["סֻכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Sukkot Shabbat Chol ha-Moed":["שַׁבַּת חֹל הַמּוֹעֵד סֻכּוֹת"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit BeHaB":["תַּעֲנִית בה״ב"],"Ta'anit Esther":["תַּעֲנִית אֶסְתֵּר"],"Tish'a B'Av":["תִּשְׁעָה בְּאָב"],"Tu B'Av":["ט״וּ בְּאָב"],"Tu BiShvat":["ט״וּ בִּשְׁבָט"],"Tu B'Shvat":["ט״וּ בִּשְׁבָט"],"Tzom Gedaliah":["צוֹם גְּדַלְיָה"],"Tzom Tammuz":["צוֹם י״ז בְּתַמּוּז"],"Yom HaAtzma'ut":["יוֹם הָעַצְמָאוּת"],"Yom HaShoah":["יוֹם הַשּׁוֹאָה"],"Yom HaZikaron":["יוֹם הַזִּכָּרוֹן"],"Yom Kippur":["יוֹם כִּפּוּר"],"Yom Yerushalayim":["יוֹם יְרוּשָׁלַיִם"],"Yom HaAliyah":["יוֹם הַעֲלִיָּה"],"Yom HaAliyah School Observance":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"Rosh Chodesh Adar":["רֹאשׁ חוֹדֶשׁ אֲדָר"],"Rosh Chodesh Adar I":["רֹאשׁ חוֹדֶשׁ אֲדָר א׳"],"Rosh Chodesh Adar II":["רֹאשׁ חוֹדֶשׁ אֲדָר ב׳"],"Rosh Chodesh Av":["רֹאשׁ חוֹדֶשׁ אָב"],"Rosh Chodesh Cheshvan":["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"],"Rosh Chodesh Elul":["רֹאשׁ חוֹדֶשׁ אֱלוּל"],"Rosh Chodesh Iyyar":["רֹאשׁ חוֹדֶשׁ אִיָּיר"],"Rosh Chodesh Kislev":["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"],"Rosh Chodesh Nisan":["רֹאשׁ חוֹדֶשׁ נִיסָן"],"Rosh Chodesh Sh'vat":["רֹאשׁ חוֹדֶשׁ שְׁבָט"],"Rosh Chodesh Sivan":["רֹאשׁ חוֹדֶשׁ סִיוָן"],"Rosh Chodesh Tamuz":["רֹאשׁ חוֹדֶשׁ תַּמּוּז"],"Rosh Chodesh Tammuz":["רֹאשׁ חוֹדֶשׁ תַּמּוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דַּקּוֹת"],"Fast begins":["תְּחִילַּת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["(תִּשְׁעָה בְּאָב (נִדְחָה"],"Shabbat Mevarchim Chodesh":["שַׁבַּת מְבָרְכִים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבַּת שִׁירָה"],Lovingkindness:["חֶסֶד"],Might:["גְּבוּרָה"],Beauty:["תִּפְאֶרֶת"],Eternity:["נֶּצַח"],Splendor:["הוֹד"],Foundation:["יְּסוֹד"],Majesty:["מַּלְכוּת"],day:["יוֹם"],"Yom Kippur Katan":["יוֹם כִּפּוּר קָטָן"],Yizkor:["יִזְכּוֹר"],"Family Day":["יוֹם הַמִּשׁפָּחָה"],"Yitzhak Rabin Memorial Day":["יוֹם הַזִּכָּרוֹן לְיִצְחָק רַבִּין"],"Jabotinsky Day":["יוֹם זַ׳בּוֹטִינְסְקִי"],"Herzl Day":["יוֹם הֶרְצְל"],"Ben-Gurion Day":["יוֹם בֶּן־גּוּרִיּוֹן"],"Hebrew Language Day":["יוֹם הַשָׂפָה הַעִברִית"],"Birkat Hachamah":["בִּרְכַּת הַחַמָּה"],"Birkat HaChamah":["בִּרְכַּת הַחַמָּה"],"Shushan Purim Katan":["שׁוּשָׁן פּוּרִים קָטָן"],"Purim Meshulash":["פּוּרִים מְשׁוּלָּשׁ"],"Chag HaBanot":["חַג הַבָּנוֹת"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"],"Alot HaShachar":["עֲלוֹת הַשַּׁחַר"],Misheyakir:["מִשֶּׁיַּכִּיר"],"Misheyakir Machmir":["מִשֶּׁיַּכִּיר מַחְמִיר"],Sunrise:["נֵץ הַחַמָּה"],"Kriat Shema, sof zeman":["סוֹף זְמַן קְרִיאַת שְׁמַע"],"Tefilah, sof zeman":["סוֹף זְמַן תְּפִלָּה"],"Kriat Shema, sof zeman (MGA)":["סוֹף זְמַן קְרִיאַת שְׁמַע (מג״א)"],"Kriat Shema, sof zeman (GRA)":["סוֹף זְמַן קְרִיאַת שְׁמַע (גְּרָ״א)"],"Tefilah, sof zeman (MGA)":["סוֹף זְמַן תְּפִלָּה (מג״א)"],"Tefilah, sof zeman (GRA)":["סוֹף זְמַן תְּפִלָּה (גְּרָ״א)"],"Chatzot HaLailah":["חֲצוֹת הַלַּיְלָה"],"Chatzot HaYom":["חֲצוֹת הַיּוֹם"],"Chatzot hayom":["חֲצוֹת הַיּוֹם"],"Mincha Gedolah":["מִנְחָה גְּדוֹלָה"],"Mincha Ketanah":["מִנְחָה קְטַנָּה"],"Plag HaMincha":["פְּלַג הַמִּנְחָה"],Sunset:["שְׁקִיעַת הַחַמָּה"],"Bein HaShemashot":["בֵּין הַשְּׁמָשׁוֹת"],"Tzeit HaKochavim":["צֵאת הַכּוֹכָבִים"],"Biur Chametz":["בִּעוּר חָמֵץ"],"Finish eating chametz":["סוֹף זְמַן אֲכִילַת חָמֵץ"]}}};se.addTranslations("he",Ie),se.addTranslations("ashkenazi",{headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"und-x-ashkenaz"},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"],"Pesach Shabbat Chol ha-Moed":["Pesach Shabbos Chol ha-Moed"],"Purim Katan":["Purim Koton"],"Rosh Hashana LaBehemot":["Rosh Hashana LaBeheimos"],"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)"],"Sukkot Shabbat Chol ha-Moed":["Sukkos Shabbos Chol ha-Moed"],"Ta'anit Bechorot":["Ta’anis Bechoros"],"Ta'anit BeHaB":["Ta’anis BeHaB"],"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"],"Birkat Hachamah":["Birkas HaChamah"],"Birkat HaChamah":["Birkas HaChamah"],"Shushan Purim Katan":["Shushan Purim Koton"],"Alot HaShachar":["Alos HaShachar"],Misheyakir:["Misheyakir"],"Misheyakir Machmir":["Misheyakir Machmir"],Sunrise:["Sunrise"],"Kriat Shema, sof zeman":["Krias Shema, sof zman"],"Tefilah, sof zeman":["Tefilah, sof zman"],"Kriat Shema, sof zeman (MGA)":["Krias Shema, sof zman (MGA)"],"Kriat Shema, sof zeman (GRA)":["Krias Shema, sof zman (GRA)"],"Tefilah, sof zeman (MGA)":["Tefilah, sof zman (MGA)"],"Tefilah, sof zeman (GRA)":["Tefilah, sof zman (GRA)"],"Chatzot HaLailah":["Chatzos HaLailah"],"Chatzot HaYom":["Chatzos"],"Chatzot hayom":["Chatzos"],"Mincha Gedolah":["Mincha Gedolah"],"Mincha Ketanah":["Mincha Ketanah"],"Plag HaMincha":["Plag HaMincha"],Sunset:["Sunset"],"Bein HaShemashot":["Bein HaShemashos"],"Tzeit HaKochavim":["Tzeis HaKochavim"]}}});const Te=se.copyLocaleNoNikud(Ie);se.addTranslations("he-x-NoNikud",Te),se.addTranslations("he-x-NoNikud",{headers:{"plural-forms":"nplurals=2; plural=(n != 1);",language:"he-x-NoNikud"},contexts:{"":{Korach:["קורח"],Chukat:["חוקת"],"Erev Yom Kippur":["ערב יום כיפור"],"Yom Kippur":["יום כיפור"],"Yom Kippur Katan":["יום כיפור קטן"],"Pesach Shabbat Chol ha-Moed":["שבת חול המועד פסח"],"Sukkot Shabbat Chol ha-Moed":["שבת חול המועד סוכות"],"Erev Sukkot":["ערב סוכות"],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)":["סוכות ז׳ (הושענא רבה)"]}}});const Me={CHAG:1,LIGHT_CANDLES:2,YOM_TOV_ENDS:4,CHUL_ONLY:8,IL_ONLY:16,LIGHT_CANDLES_TZEIS:32,CHANUKAH_CANDLES:64,ROSH_CHODESH:128,MINOR_FAST:256,SPECIAL_SHABBAT:512,PARSHA_HASHAVUA:1024,DAF_YOMI:2048,OMER_COUNT:4096,MODERN_HOLIDAY:8192,MAJOR_FAST:16384,SHABBAT_MEVARCHIM:32768,MOLAD:65536,USER_EVENT:131072,HEBREW_DATE:262144,MINOR_HOLIDAY:524288,EREV:1048576,CHOL_HAMOED:2097152,MISHNA_YOMI:4194304,YOM_KIPPUR_KATAN:8388608,YERUSHALMI_YOMI:16777216,NACH_YOMI:33554432,DAILY_LEARNING:67108864,YIZKOR:134217728,BEHAB:268435456},ve=Object.entries(Me);function we(e){if(!Object.hasOwn(Me,e))throw new RangeError(`Unknown flag name: ${String(e)}`);return Me[e]}const be=[[Me.MAJOR_FAST,"holiday","major","fast"],[Me.CHANUKAH_CANDLES,"holiday","minor"],[Me.HEBREW_DATE,"hebdate"],[Me.MINOR_FAST,"holiday","fast"],[Me.MINOR_HOLIDAY,"holiday","minor"],[Me.MODERN_HOLIDAY,"holiday","modern"],[Me.MOLAD,"molad"],[Me.OMER_COUNT,"omer"],[Me.PARSHA_HASHAVUA,"parashat"],[Me.ROSH_CHODESH,"roshchodesh"],[Me.SHABBAT_MEVARCHIM,"mevarchim"],[Me.SPECIAL_SHABBAT,"holiday","shabbat"],[Me.USER_EVENT,"user"],[Me.YIZKOR,"yizkor"]];class He{constructor(e,t,n=0,r){if(!fe.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}greg(){return this.date.greg()}getDesc(){return this.desc}getFlags(){return this.mask}hasFlag(e){return 0!==(this.mask&we(e))}hasAnyFlag(...e){let t=0;for(const n of e)t|=we(n);return 0!==(this.mask&t)}flagNames(){return ve.filter(([,e])=>this.mask&e).map(([e])=>e)}render(e){return se.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!this.hasFlag("CHUL_ONLY")}observedInDiaspora(){return!this.hasFlag("IL_ONLY")}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}getCategories(){const e=this.mask;for(const t of be){if(e&t[0])return t.slice(1)}return["unknown"]}}class Ee extends He{constructor(e){super(e,e.toString(),Me.HEBREW_DATE)}render(e){const t=e?.toLowerCase(),n=t??"en",r=this.getDate();switch(n){case"h":case"he":return r.renderGematriya(!1);case"he-x-nonikud":return r.renderGematriya(!0);default:return r.render(n,!0)}}renderBriefHebrew(e){const t=this.getDate(),n=t.getDate(),r=se.gettext(t.getMonthName(),e);return V(n)+" "+r}renderBrief(e){const t=e?.toLowerCase(),n=t??"en",r=this.getDate();if(r.getMonth()===m.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)}}}const Ne=(e,t,n,r)=>Ce(e,t)+`; must be between ${n}-${r}`,Ce=(e,t)=>`Invalid ${e}: ${t}`;function De(e){return void 0===e?Object.create(null):Be(e)}function ke(e,t="number"){if("bigint"==typeof e)throw new TypeError((e=>`Cannot convert bigint to ${e}`)(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(((e,t)=>`Non-finite ${e}: ${t}`)(t,e));return e}function Oe(e,t){return Math.trunc(ke(e,t))||0}function _e(e,t){return function(e,t="number"){if(e<=0)throw new RangeError(((e,t)=>`Non-positive ${e}: ${t}`)(t,e));return e}(Oe(e,t),t)}function Le(e){return null!==e&&("object"==typeof e||"function"==typeof e)}function Be(e){if(!Le(e))throw new TypeError("Invalid object");return e}function Re(e,t){return"string"==typeof e?((e,t)=>{const n=Object.create(null);return n[e]=t,n})(t,e):Be(e)}const Ye="smallestUnit",Ze={constrain:0,reject:1},Pe={compatible:0,reject:1,earlier:2,later:3},Ue={reject:0,use:1,prefer:2,ignore:3},xe={auto:0,never:1,critical:2,always:3},ze={auto:0,never:1,critical:2},Fe={auto:0,never:1},je={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},$e=[Math.floor,function(e){return gn(e)?Math.floor(e):Math.round(e)},Math.ceil,function(e){return gn(e)?Math.ceil(e):Math.round(e)},Math.trunc,function(e){return gn(e)?Math.trunc(e)||0:Math.round(e)},function(e){return e<0?Math.floor(e):Math.ceil(e)},function(e){return Math.sign(e)*Math.round(Math.abs(e))||0},function(e){return gn(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)}],Ve={previous:-1,next:1};function Ke(e){const t=e.roundingIncrement;return void 0===t?1:Oe(t,"roundingIncrement")}function Ge(e){let t=e.fractionalSecondDigits;if(void 0!==t){if("number"!=typeof t){if("auto"===ya(t))return;Bt(pt("fractionalSecondDigits",t))}t=Zt("fractionalSecondDigits",Math.floor(t),0,9,1)}return t}function Je(e,t,n=0,r){let a=t[e];if(void 0===a)return r?n:void 0;if(a=ya(a),"auto"===a)return r?n:null;let o=bn[a];return void 0===o&&(o=ra.indexOf(a)),o<0&&Bt(Mt(e,a,bn)),o}function We(e,t,n,r=0){const a=n[e];if(void 0===a)return r;const o=ya(a),i=t[o];return void 0===i&&Bt(Mt(e,o,t)),i}const qe=Gt(Je,Ye),Xe=Gt(Je,"largestUnit"),Qe=Gt(Je,"unit"),et=Gt(We,"overflow",Ze),tt=Gt(We,"disambiguation",Pe),nt=Gt(We,"offset",Ue),rt=Gt(We,"calendarName",xe),at=Gt(We,"timeZoneName",ze),ot=Gt(We,"offset",Fe),it=Gt(We,"roundingMode",je),st=Gt(We,"direction",Ve);function ut(e,t,n,r){const a=r?On:_n[t+1];if(a){const n=_n[t];a%((e=Zt("roundingIncrement",e,1,a/n-(r?0:1),1))*n)&&Bt(pt("roundingIncrement",e))}else e=Zt("roundingIncrement",e,1,n?10**9:1,1);return e}function ct(e,t,n,r){return null!=t&&Zt(e,t,n,r,1,Hn),t}function ht(e,t){t>e&&Bt(Nt)}function lt(e,t,n,r=9,a=0,o=4){t=De(t);let i=Xe(t,a),s=Ke(t),u=it(t,o),c=qe(t,a,1);return i=ct("largestUnit",i,a,r),c=ct(Ye,c,a,r),null==i?i=Math.max(n,c):ht(i,c),s=ut(s,c,1),e&&(u=(e=>e<4?(e+2)%4:e)(u)),[i,c,s,u]}function dt(e,t=6,n){let r=Ke(e=Re(e,Ye));const a=it(e,7);let o=qe(e);return o=da(Ye,o),o=ct(Ye,o,0,t),r=ut(r,o,void 0,n),[o,r,a]}function mt(e){return void 0===e?0:et(Be(e))}function ft(e,t=0){e=De(e);const n=tt(e),r=nt(e,t);return[et(e),r,n]}function gt(e,t=4){const n=Ge(e),r=it(e,4),a=qe(e);return[r,...At(ct(Ye,a,0,t),n)]}function yt(e){return rt(De(e))}function St(e,t){return gt(De(e),t)}function At(e,t){return null!=e?[_n[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}const pt=Ce,It=e=>`Missing ${e}`,Tt=e=>"No valid fields: "+e.join(),Mt=(e,t,n)=>Ce(e,t)+"; must be "+Object.keys(n).join(),vt=e=>"Missing year"+(e?"/era/eraYear":""),wt="Invalid leap month",bt=e=>Ce("TimeZone",e),Ht="Out-of-bounds date",Et="Required smallestUnit or largestUnit",Nt="smallestUnit > largestUnit",Ct=e=>`Cannot parse: ${e}`,Dt=e=>`Invalid substring: ${e}`,kt=e=>`Cannot format ${e}`,Ot="Mismatching types for formatting",_t=function(e,t,n){return Math.min(Math.max(e,t),n)},Lt=Le;function Bt(e){throw new RangeError(e)}function Rt(e){throw new TypeError(e)}function Yt(e,t,n,r,a){return Zt(t,((e,t)=>{const n=e[t];return void 0===n&&Rt(It(t)),n})(e,t),n,r,a)}function Zt(e,t,n,r,a,o){const i=_t(t,n,r);return a&&t!==i&&Bt(((e,t,n,r,a)=>a?Ne(e,a[t],a[n],a[r]):Ne(e,t,n,r))(e,t,n,r,o)),i}function Pt(e,t=Map){const n=new t;return(t,...r)=>{if(n.has(t))return n.get(t);const a=e(t,...r);return n.set(t,a),a}}const Ut=(e,t)=>zt(e=>({value:e,configurable:1,writable:!t}),e),xt=e=>({[Symbol.toStringTag]:{value:e,configurable:1}});function zt(e,t){const n={};for(const r in t)n[r]=e(t[r],r);return n}function Ft(e,t){const n={};for(const r of e)n[r]=t;return n}function jt(e){const t={};for(const n of e)t[n]=e=>e[n];return t}function $t(e,t,n=Object.create(null)){for(const r of e)n[r]=t[r];return n}function Vt(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function Kt(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function Gt(e,...t){return(...n)=>e(...t,...n)}function Jt(e){return e}function Wt(){}function qt(e){return e[0].toUpperCase()+e.substring(1)}function Xt(...e){return[].concat(...e).sort()}function Qt(e){return new RegExp(`^${e}$`,"i")}function en(e){return parseInt(e.padEnd(9,"0"))}function tn(e){return e&&"+"!==e?-1:1}function nn(e){return void 0===e?0:parseInt(e)}function rn(e,t){return String(t).padStart(e,"0")}const an=Gt(rn,2);function on(e,t){return Math.sign(e-t)}function sn(e,t){return e<t?-1:e>t?1:0}function un(e,t){const n=e/t;return e%t<0n?n-1n:n}function cn(e,t){const n=un(e,t);return[n,e-n*t]}function hn(e,t){return[Math.floor(e/t),ln(e,t)]}function ln(e,t){return(e%t+t)%t}function dn(e,t){return Math.trunc(e/t)||0}function mn(e,t){return e%t||0}function fn(e,t=1){return t*(.5+e/5)}function gn(e){return.5===Math.abs(e%1)}const yn="iso8601",Sn={bce:-1,ce:0};function An(e){const t=e.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,"");return"bc"===t||"b"===t?"bce":"ad"===t||"a"===t?"ce":t}const pn=void 0;function In(e){return e===pn?"iso8601":0===e?"gregory":e.id}const Tn=/^M(\d{2})(L?)$/;function Mn(e){const t=Tn.exec(e);return t||Bt((e=>`Invalid monthCode: ${e}`)(e)),[parseInt(t[1]),Boolean(t[2])]}function vn(e,t){return"M"+an(e)+(t?"L":"")}function wn(e,t,n){return e+(t||n&&e>=n?1:0)}const bn={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},Hn=Object.keys(bn),En=1e3,Nn=1e6,Cn=1e9,Dn=6e10,kn=36e11,On=864e11,_n=[1,En,Nn,Cn,Dn,kn,On],Ln=BigInt(En),Bn=BigInt(Nn),Rn=BigInt(Cn),Yn=BigInt(Dn),Zn=BigInt(kn),Pn=BigInt(On);function Un(e,t){const n=Number(e/Pn),r=Number(e%Pn);return n*(On/t)+(Math.trunc(r/t)+r%t/t)}const xn=Hn.slice(0,6),zn=jt(xn),Fn=["year"],jn=["day"],$n=["day","month","year"],Vn=["offset"],Kn=["timeZone"],Gn=["era","eraYear"],Jn=["era","eraYear","year"],Wn=["month","monthCode"],qn=["day","month","monthCode"],Xn=Xt(xn),Qn=Xt(Gn,Fn),er=Xt(Wn,Fn),tr=Xt(Gn,er),nr=Xt(["monthCode"],Fn),rr=Xt(Gn,nr),ar=Xt(jn,["monthCode"]),or=Xt(jn,er),ir=Xt(jn,Gn,er),sr=Xt(or,xn),ur=Xt(ir,xn),cr=Xt(or,xn,Vn),hr=Xt(ir,xn,Vn),lr=Xt(or,xn,Vn,Kn),dr=Xt(ir,xn,Vn,Kn),mr=Xt(jn,nr),fr=Xt(jn,Gn,nr),gr=Ft(xn,0);function yr(e){return Ar(e,1),e}const Sr={hour:23,minute:59,second:59};function Ar(e,t){const n={};for(const r of xn)n[r]=Zt(r,e[r],0,Sr[r]||999,t);return n}function pr(e){return Tr(e)*Cn+Mr(e)}function Ir(e){return 1e3*Tr(e)+e.millisecond}function Tr(e){return 3600*e.hour+60*e.minute+e.second}function Mr(e){return e.millisecond*Nn+e.microsecond*En+e.nanosecond}function vr(e){const[t,n]=hn(e,On);return[wr(n),t]}function wr(e){const[t,n]=hn(e,Nn),[r,a]=hn(n,En);return function(e,t=0,n=0){const[r,a]=hn(e,36e5),[o,i]=hn(a,6e4),[s,u]=hn(i,1e3);return{hour:r,minute:o,second:s,millisecond:u,microsecond:t,nanosecond:n}}(t,r,a)}function br(e){const[t,n]=cn(e,Rn);return[Number(t),Number(n)]}function Hr(e){return Number(un(e,Bn))}function Er(e){return Cr(e)+BigInt(pr(e))}function Nr(e){return Dr(e)+Ir(e)}function Cr(e){return BigInt(kr(e))*Pn}function Dr(e){return 864e5*kr(e)}function kr(e){return Or(e.year,e.month,e.day)}function Or(e,t=1,n=1){const r=t-1;return e+=Math.floor(r/12),t=ln(r,12),Date.UTC(e%400-400,t,0)/864e5+146097*(dn(e,400)+1)+n}function _r(e){const[t,n]=cn(e,Pn);return{...Lr(Number(t)),...wr(Number(n))}}function Lr(e){const t=new Date(864e5*ln(e,146097));return{year:t.getUTCFullYear()+400*Math.floor(e/146097),month:t.getUTCMonth()+1,day:t.getUTCDate()}}function Br(e,t){if(!t)return{year:1972,month:e}}function Rr(e,t){switch(t){case 2:return Yr(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function Yr(e){return e%4==0&&(e%100!=0||e%400==0)}function Zr(e){return ln(Or(e.year,e.month,e.day)+4,7)||7}function Pr(e){return Or(e.year,e.month,e.day)-Or(e.year)+1}function Ur(e){let t=e.year,n=Math.floor((Pr(e)-Zr(e)+10)/7),r=xr(t);return n<1?n=r=xr(--t):n>r&&(n=1,r=xr(++t)),{weekOfYear:n,yearOfWeek:t,De:r}}function xr(e){const t=Zr({year:e,month:1,day:1});return 4===t||3===t&&Yr(e)?53:52}function zr(e){return Fr(e),yr(e)}function Fr(e){return $r(e,1),e}function jr(e){return Vt($n,e,$r(e))}function $r(e,t){const{year:n}=e,r=Yt(e,"month",1,12,t);return{year:n,month:r,day:Yt(e,"day",1,Rr(n,r),t)}}function Vr(e,t){return e?e.de(t):t}function Kr(e,t,n){return e?e.N(t,n):function(e){return[e,0]}(n)}function Gr(e,t){return 0===e?function({year:e}){return e<1?{era:"bce",eraYear:1-e}:{era:"ce",eraYear:e}}(t):e&&e.h?.(t)||{}}function Jr(e,t,n,r){return e?e.fe(t,n,r):function(e,t,n){return{year:e,month:t,day:n}}(t,n,r)}function Wr(e,t){return e?e.j(t):12}function qr(e,t,n){return e?e.o(t,n):Rr(t,n)}function Xr(e,t){const{year:n,month:r}=Vr(e,t),[a,o]=Kr(e,n,r);return vn(a,o)}function Qr(e,t){const{year:n}=Vr(e,t);return e?e.q(n):Yr(n)}function ea(e,t){const{year:n}=Vr(e,t);return Wr(e,n)}function ta(e,t){const{year:n,month:r}=Vr(e,t);return qr(e,n,r)}function na(e,t){const{year:n}=Vr(e,t);return e?e.i(n):function(e){return Yr(e)?366:365}(n)}const ra=Hn.map(e=>e+"s"),aa=jt(ra),oa=Xt(ra),ia=ra.slice(0,6),sa=ra.slice(6),ua=sa.slice(1),ca=Ft(ra,0),ha=Ft(ia,0),la=Gt(Kt,ra);function da(e,t){return null==t&&Bt(It(e)),t}const ma=Gt(fa,"string");function fa(e,t,n=e){return typeof t!==e&&Rt(pt(n,t)),t}function ga(e,t="number"){return Number.isInteger(e)||Bt(((e,t)=>`Non-integer ${e}: ${t}`)(t,e)),e||0}function ya(e){return"symbol"==typeof e&&Rt("Cannot convert Symbol to string"),String(e)}function Sa(e){if(!Le(e))return e;const t=e[Symbol.toPrimitive];if(null!=t){"function"!=typeof t&&Rt();const n=Reflect.apply(t,e,["string"]);return Le(n)&&Rt(),n}return Date.prototype[Symbol.toPrimitive].call(e,"string")}function Aa(e){return"boolean"==typeof e?BigInt(e?1:0):"string"==typeof e?BigInt(e):("bigint"!=typeof e&&Rt(`Invalid bigint: ${e}`),e)}function pa(e,t){return ga(ke(e,t),t)}function Ia(e,t){return $t($n,e,$t(xn,t))}const Ta=BigInt(1e8)*Pn,Ma=BigInt(-1e8)*Pn,va=Ma-Pn,wa=-3261848;function ba(e){const t=12*e.year+e.month;return(t<wa||t>3309129)&&Bt(Ht),e}function Ha(e,t=1){const n=Cr(e);return(n<(t?va:Ma)||n>Ta)&&Bt(Ht),e}function Ea(e){return((t=Er(e))<=va||t>=Ta+Pn)&&Bt(Ht),e;var t}function Na(e){return(e<Ma||e>Ta)&&Bt(Ht),e}function Ca(e,t){return Na(Cr(e)+BigInt(pr(e)-t))}function Da(e,t,n){return ka(e/t,n)*t}function ka(e,t){return $e[t](e)}function Oa(e,t,n,r){let a=_a(e,t,n);return((e,t,n,r)=>r>0?t<=e&&e<=n:n<=e&&e<=t)(r,a.I,a.O,Math.sign(t))||(a=_a(e+t,t,n)),a}function _a(e,t,n){const r=e+t;return{ve:e,qe:r,I:n(e),O:n(r)}}function La(e,t){return e.ve+t*(e.qe-e.ve)}function Ba(e,t,n){const r=n-t,a=e-t;if(!a)return 0;const o=a<0n?-a:a,i=r<0n?-r:r,s=sn(a,0n)===sn(r,0n)?1:-1;return sn(o,i)<=0?o===i?s:fn(sn(2n*o,i),s):Number(a)/Number(r)}function Ra(e){return{epochNanoseconds:e}}function Ya(e,t,n){return{calendar:n,timeZone:t,epochNanoseconds:e}}function Za(e,t){return $t(xn,e,Pa(e,t))}function Pa(e,t){return $t($n,e,{calendar:t})}function Ua(e){return $t(xn,e)}function xa(e){return $t(ra,e,{sign:Fo(e)})}function za(e,t,n,r){return Ya(6===t?function(e,t){const[n,r]=Wa(e);return function(e,t,n,r){return ka(Ba(e<n?e:n-1n,t,n),r)?n:t}(e.epochNanoseconds,n,r,t)}(e,r):function(e,t,n,r){if(0===t&&1===n)return e.epochNanoseconds;const a=ro(e);return oo(e.timeZone,$a(a,to(t,n),r),a.offsetNanoseconds,2,0,1)}(e,t,n,r),e.timeZone,e.calendar)}function Fa(e,t,n,r,a,o,i,s){if(0===r&&1===a)return e;const u=Fo(e)||1,c=Ro(r,s)?s&&r<6&&n>=6?Ga:Ja:Ka;let[h,l,d]=c(u,e,t,n,r,a,o,i);return d&&7!==r&&(h=((e,t,n,r,a,o)=>{for(let i=r+1;i<=n;i++){if(7===i&&7!==n)continue;const r=la(i,e);r[ra[i]]+=a;const s=sn(t,Oo(o,r));if(s&&s!==a)break;e=r}return e})(h,l,n,Math.max(6,r),u,i)),h}function ja(e,t,n){const r=Math.min(Qo(e),6);return Wo(Xa(Ko(e),BigInt(t),n),r)}function $a(e,t,n){const[r,a]=Va(e,t,n),o=Ia(po(e,a),r);return Ea(o),o}function Va(e,t,n){return vr(Da(pr(e),t,n))}function Ka(e,t,n,r,a,o,i,s){const u=ra[a],c=la(a,t);7===a&&(t={...t,weeks:t.weeks+Math.trunc(t.days/7)});const h=dn(t[u],o)*o,l=Oa(h,o*e,e=>(c[u]=e,Oo(s,c)),n),d=function(e,t,n,r){return Da(La(e,Ba(t,e.I,e.O)),n,r)}(l,n,o,i);return c[u]=d,[c,d===l.qe?l.O:l.I,d!==h]}function Ga(e,t,n,r,a,o,i,s){const u=Number(Go(t)),c=to(a,o);let h=Da(u,c,i);const l={...t,...ha},d=Oa(l.days,e,e=>(l.days=e,Oo(s,l)),n),m=d.I,f=d.O,g=h-Number(f-m);let y=0;g&&Math.sign(g)!==e?n=m+BigInt(h):(y+=e,h=Da(g,c,i),n=f+BigInt(h));const S=qo(h);return[{...t,...S,days:t.days+y},n,Boolean(y)]}function Ja(e,t,n,r,a,o,i){const s=Ko(t),u=Xa(s,no(a,o),i),c=u-s,h=Math.sign(Number(u/Pn)-Number(s/Pn))===e,l=Wo(u,Math.min(r,6));return[{...t,...l},n+c,h]}function Wa(e){const{timeZone:t}=e,n=Ia(ro(e),gr),r=Ia(po(n,1),gr);return[so(t,n),so(t,r)]}function qa(e){return Da(e,Dn,7)}function Xa(e,t,n){return eo(e,t,n,e/t%2n)}function Qa(e,t,n){const[r,a]=cn(e,Pn),o=r*Pn;return o+eo(a,t,n,(o/t+a/t)%2n)}function eo(e,t,n,r){const a=e/t,o=e%t;let i=0;o&&(i=fn(sn(2n*(o<0n?-o:o),t),Math.sign(Number(o))));const s=ka(Number(r)+i,n);return(a-r+BigInt(s))*t}function to(e,t){return _n[e]*t}function no(e,t){return BigInt(_n[e])*BigInt(t)}const ro=Pt(ao,WeakMap);function ao(e){const{epochNanoseconds:t,timeZone:n}=e,r=n.B(t);return{..._r(t+BigInt(r)),offsetNanoseconds:r}}function oo(e,t,n,r=0,a=0,o,i){if(void 0!==n&&1===r&&(1===r||i))return Ca(t,n);2!==r&&0!==r||Ha(t,0);const s=e.R(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const a=Er(t);r&&(n=qa(n));for(const t of e){let e=Number(a-t);if(r&&(e=qa(e)),e===n)return t}})(s,t,n,o);if(void 0!==e)return e;0===r&&Bt("Invalid TimeZone offset")}return i?Er(t):io(e,t,a,s)}function io(e,t,n=0,r=e.R(t)){if(1===r.length)return r[0];if(1===n&&Bt("Ambiguous offset"),r.length)return r[3===n?1:0];const a=Er(t),o=((e,t)=>{const n=e.B(t-Pn);return(e=>(e>On&&Bt("Out-of-bounds TimeZone gap"),e))(e.B(t+Pn)-n)})(e,a),i=_r(a+BigInt(o*(2===n?-1:1)));return(r=e.R(i))[2===n?0:r.length-1]}function so(e,t){const n=e.R(t);if(n.length)return n[0];const r=Er(t)-Pn;return e.C(r,1)}function uo(e,t,n,r=0){Fo(n)&&Qo(n)<8&&Bt("Cannot use small units");const a=Ha(go(e,t));return go(e,fo(e,a,n,r))}function co(e,t,n=0){const{calendar:r,epochNanoseconds:a,timeZone:o}=e,i=Go(t);let s=a;if(Xo(t)){const a=ro(e);s=io(o,Ia(fo(r,a,{...t,...ha},n),a))+i}else s+=i;return{...e,epochNanoseconds:Na(s)}}function ho(e,t,n,r=0){const[a,o]=lo(t,n);return Ea(Ia(fo(e,t,{...n,...ha,days:n.days+o},r),a))}function lo(e,t){return function(e,t){const n=Number(t/Pn),r=Number(t%Pn),[a,o]=vr(pr(e)+r);return[a,n+o]}(e,Go(t))}function mo(e,t){return function(e,t){return Na(e+t)}(e,(Xo(n=t)&&Bt("Cannot use large units"),Go(n)));var n}function fo(e,t,n,r=0){let a,{years:o,months:i,weeks:s,days:u}=n;if(u+=Number(Go(n)/Pn),o||i)a=yo(e,t,o,i,r);else{if(!s&&!u)return t;a=t}return(s||u)&&(a=po(a,7*s+u)),Ha(a)}function go(e,t){return po(t,1-Vr(e,t).day)}function yo(e,t,n,r,a){const o=Vr(e,t);let{year:i,month:s,day:u}=o;if(n){const[t,r]=Kr(e,i,s);i+=n,s=Ao(e,t,r,e?e.p(i):void 0,a),s=Zt("month",s,1,Wr(e,i),a)}if(r){const t=So(e,i,s,r);({year:i,month:s}=t)}return u=Zt("day",u,1,qr(e,i,s),a),Jr(e,i,s,u)}function So(e,t,n,r){return e?e.ae(t,n,r):function(e,t,n){return e+=dn(n,12),(t+=mn(n,12))<1?(e--,t+=12):t>12&&(e++,t-=12),{year:e,month:t}}(t,n,r)}function Ao(e,t,n,r,a){if(n){const n=e?e.l:void 0;return void 0!==r&&(n<0||r===t+1)?r:(1===a&&Bt(wt),n<0?-n:t)}return wn(t,0,r)}function po(e,t){return t?Lr(kr(e)+t):e}function Io(e,t){return In(e)!==In(t)&&Bt("Mismatching Calendars"),e}function To(e,t,n,r,a,o,i){return r<6?vo(t.epochNanoseconds,n.epochNanoseconds,r,a,o,i):((e,t,n,r,a,o,i)=>{const s=n.epochNanoseconds;if(s===t.epochNanoseconds)return ca;let u;const c=(h=t.timeZone,l=n.timeZone,h.m!==l.m&&Bt("Mismatching TimeZones"),h);var h,l;return u=wo(c,e,t,n,r),u=Fa(u,s,r,a,o,i,_o(e,c,t),1),u})(e,t,n,r,a,o,i)}function Mo(e,t,n,r,a,o,i,s=6){const u=Cr(n);if(!No(t,n))return ca;let c;return c=Eo(e,t,n,r),a===s&&1===o||(c=Fa(c,u,r,a,o,i,Lo(e,t))),c}function vo(e,t,n,r,a,o){return{...ca,...Wo(Xa(t-e,no(r,a),o),n)}}function wo(e,t,n,r,a){return a<6?{...ca,...Wo(r.epochNanoseconds-n.epochNanoseconds,a)}:((e,n,r)=>{const o=sn(r.epochNanoseconds,n.epochNanoseconds);if(!o)return ca;if(!No(ro(n),ro(r)))return{...ca,...Wo(r.epochNanoseconds-n.epochNanoseconds,5)};const[i,s,u]=function(e,t,n,r){const a=ro(t),o=ro(n),i=n.epochNanoseconds;let s=0;const u=pr(o)-pr(a);Math.sign(u)===-r&&s++;const c=s+(r>0?1:0);for(;;s++){const t=po(o,s*-r),n=io(e,Ia(t,a));if(s===c||sn(i,n)!==-r)return[a,t,Number(i-n)]}}(e,n,r,o);return{...(c=i,h=s,Eo(t,c,h,a)),...qo(u)};var c,h})(e,n,r)}function bo(e,t,n,r){const a=Er(t),o=Er(n),i=sn(o,a);return i?r<=6?{...ca,...Wo(o-a,r)}:Ho(e,t,n,i,r):ca}function Ho(e,t,n,r,a){let o=n,i=pr(n)-pr(t);return Math.sign(i)===-r&&(o=po(n,-r),i+=On*r),{...Eo(e,t,o,a),...qo(i)}}function Eo(e,t,n,r){if(r<=7)return((e,t,n)=>{const r=Co(t,n);return e?{...ca,weeks:dn(r,7),days:mn(r,7)}:{...ca,days:r}})(7===r,t,n);const a=Vr(e,t),o=Vr(e,n);if(8===r){const{year:r,month:i,day:s}=a,{year:u,month:c,day:h}=o,l=Math.sign(on(u,r)||on(c,i)||Co(t,n));let d=0,m=0;if(l){d=e?e.ee(r,i,u,c):function(e,t,n,r){return 12*(n-e)+r-t}(r,i,u,c);let a=yo(e,t,0,d,0);l*on(s,h)>0&&(d-=l,a=yo(e,t,0,d,0)),m=Co(a,n)}return{...ca,months:d,days:m}}const{year:i,month:s,day:u}=a;let{year:c,month:h,day:l}=o,d=c-i,m=h-s,f=l-u;if(d||m){const t=Math.sign(d||m);let n=qr(e,c,h),r=0;if(Math.sign(l-u)===-t){const a=n,o=So(e,c,h,-t);({year:c,month:h}=o),d=c-i,m=h-s,n=qr(e,c,h),r=t<0?-a:n}if(f=l-Math.min(u,n)+r,d){const[n,r]=Kr(e,i,s),[a,o]=Kr(e,c,h),u=e?e.l:void 0;if(m=void 0!==u&&r&&!o&&(u<0?t>0&&a===-u:t<0&&a===n)?0:a-n||Number(o)-Number(r),Math.sign(m)===-t){const a=t<0&&-Wr(e,c);c-=t,d=c-i,m=h-Ao(e,n,r,e?e.p(c):void 0,0)+(a||Wr(e,c))}else if(e){const t=Ao(e,n,r,e.p(c),0);m=e.ee(c,t,c,h)}}}return{...ca,years:d,months:m,days:f}}function No(e,t){return on(e.year,t.year)||on(e.month,t.month)||on(e.day,t.day)}function Co(e,t){return kr(t)-kr(e)}function Do(e,t,n){return Bo(e)?((e,t,n)=>{const{calendar:r,timeZone:a}=e,o=co(e,t);return[wo(a,r,e,o,n),o.epochNanoseconds,_o(r,a,e)]})(e,t,n):((e,t,n)=>{const{calendar:r}=e,a=Ea(Ia(e,gr)),o=ho(r,a,t);return[bo(r,a,o,n),Er(o),Lo(r,e)]})(e,t,n)}function ko(e,t){return Bo(e)?co(e,t).epochNanoseconds:Er(ho(e.calendar,Ia(e,gr),t))}function Oo(e,t){return Xo(t)?e.ke(t):e.ne}function _o(e,t,n){const r=ro(n);return{ne:n.epochNanoseconds,ke:n=>io(t,Ia(fo(e,r,n),r))}}function Lo(e,t){return{ne:Cr(t),ke:n=>Cr(fo(e,t,n))}}function Bo(e){return"timeZone"in e}function Ro(e,t){return e<=6-(t?1:0)}function Yo(e,t,n){const r={};for(let a=t;a>=0;a--){const t=_n[a];r[n[a]]=dn(e,t),e=mn(e,t)}return r}const Zo=2**53;function Po(e,t,n){const r=Math.max(Qo(t),Qo(n));return r>6&&Bt("Cannot use large units"),((e,t,n,r)=>xa(jo(((e,t,n,r)=>{const a=Ko(e)+Ko(t)*BigInt(r?-1:1);return Number.isFinite(Number(a/Pn))||Bt(Ht),{...ca,...Wo(a,n)}})(t,n,r,e))))(e,t,n,r)}function Uo(e,t,n){const r=Qo(t),[a,o,i,s,u]=function(e,t,n){e=Re(e,Ye);let r=Xe(e);const a=n(e.relativeTo);let o=Ke(e);const i=it(e,7);let s=qe(e);return void 0===r&&void 0===s&&Bt(Et),null==s&&(s=0),null==r&&(r=Math.max(s,t)),ht(r,s),o=ut(o,s,1),o>1&&s>5&&r!==s&&Bt("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit"),[r,s,o,i,a]}(n,r,e);if(!u&&Math.max(r,a)<=6)return xa(jo(((e,t,n,r,a)=>{const o=Xa(Ko(e),no(n,r),a);return{...ca,...Wo(o,t)}})(t,a,o,i,s)));u||Bt("Missing relativeTo");const c=Bo(u);if(!t.sign&&(!c||a<6))return t;const[h,l,d]=Do(u,t,a);return xa(Fa(h,l,a,o,i,s,d,c))}function xo(e){return xa(zo(e))}function zo(e){const t={};for(const n of ra)t[n]=-1*e[n]||0;return t}function Fo(e,t=ra){let n=0;for(const r of t){const t=Math.sign(e[r]);t&&(n&&n!==t&&Bt("Cannot mix duration signs"),n=t)}return n}function jo(e){for(const t of ua)$o(t,e[t]);const t=Ko(e);return Vo(Number(t/Rn)),e}function $o(e,t){return Zt(e,t,-4294967295,4294967295,1)}function Vo(e){Number.isSafeInteger(e)||Bt("Out-of-bounds duration")}function Ko(e){return BigInt(e.days)*Pn+Go(e)}function Go(e){return BigInt(e.hours)*Zn+BigInt(e.minutes)*Yn+Jo(e)}function Jo(e){return BigInt(e.seconds)*Rn+BigInt(e.milliseconds)*Bn+BigInt(e.microseconds)*Ln+BigInt(e.nanoseconds)}function Wo(e,t=6){const n=Number(e/Pn),r=Number(e%Pn),a=_n[t],o=t<=3?Number(e/BigInt(a)):n*(On/a)+dn(r,a);Number.isFinite(o)||Bt(Ht),t<=3&&Math.abs(o)/(Cn/_n[t])>=Zo&&Bt(Ht);const i=Yo(r,t,ra);return i[ra[t]]=o,i}function qo(e,t=5){return Yo(e,t,ra)}function Xo(e){return Boolean(Fo(e,sa))}function Qo(e){let t=9;for(;t>0&&!e[ra[t]];t--);return t}function ei(e,t){return sn(e.epochNanoseconds,t.epochNanoseconds)}function ti(e,t){return ni(e,t)||ri(e,t)}function ni(e,t){return on(kr(e),kr(t))}function ri(e,t){return on(pr(e),pr(t))}function ai(e){return 0===e?Sn:e?e.k:void 0}function oi(e,t,n=t){return ai(e)?n:t}function ii(e,t){const n=t||void 0,r=ai(t);let{era:a,eraYear:o,year:i}=e;if(void 0!==i&&(i=Oe(i,"year")),void 0!==o&&(o=Oe(o,"eraYear")),void 0!==a||void 0!==o){void 0!==a&&void 0!==o||Rt("Mismatching era/eraYear"),r||Bt("Forbidden era/eraYear");const e=An(a),t=r[e];void 0===t&&Bt((e=>`Invalid era: ${e}`)(a));const s=n?._?n._(o,e,t):function(e,t){return(t+e)*(Math.sign(t)||1)||0}(o,t);void 0!==i&&i!==s&&Bt("Mismatching year/eraYear"),i=s}else void 0===i&&Rt(vt(r));return i}function si(e,t,n,r,a){let{month:o,monthCode:i}=e;if(void 0!==i){const e=((e,t,n,r,a=Mn(t))=>{const o=e?e.p(n):void 0,[i,s]=a;let u=wn(i,s,o);if(s){const t=e?e.l:void 0;void 0===t&&Bt(wt),t>0?(u>t&&Bt(wt),o!==u&&(1===r&&Bt(wt),u=wn(i,0,o))):(u!==-t&&Bt(wt),void 0===o&&1===r&&Bt(wt))}return u})(t,i,n,a,r);void 0!==o&&o!==e&&Bt("Mismatching month/monthCode"),o=e,a=1}else void 0===o&&Rt("Missing month/monthCode");return Zt("month",o,1,Wr(t,n),a)}function ui(e,t,n,r,a){return Yt(e,"day",1,qr(t,n,r),a)}function ci(e,t){return Ar($t(xn,{...gr,...e}),t)}const hi=Qt("([+-])(\\d{2})(?::?(\\d{2})(?::?(\\d{2})(?:[.,](\\d{1,9}))?)?)?");function li(e){const t=di(e);return void 0===t&&Bt(Ct(e)),t}function di(e,t){const n=hi.exec(e);if(n&&(e=>(e=>{"T"!==e[0]&&"t"!==e[0]||(e=e.slice(1));const t=e.search(/[.,]/),n=t<0?e:e.slice(0,t),r=n.split(":");return 1===r.length?/^(?:\d{2}|\d{4}|\d{6})$/i.test(n):(2===r.length||3===r.length)&&r.every(e=>2===e.length&&/^\d{2}$/i.test(e))})(e.slice(1)))(n[0]))return((e,t)=>{const n=e[4]||e[5];t&&n&&Bt(Dt(n));return r=(nn(e[2])*kn+nn(e[3])*Dn+nn(e[4])*Cn+en(e[5]||""))*tn(e[1]),Math.abs(r)>=On&&Bt("Out-of-bounds offset"),r;var r})(n,t)}const mi={era:ya,month:_e,monthCode:(e,t)=>ma(Sa(e),t),day:_e},fi=Ft(xn,Oe),gi=Ft(ra,pa),yi=Object.assign({},mi,fi),Si={offset:e=>li(ma(Sa(e))),...yi};function Ai(e,t,n,r,a=!r){const o={};let i=0;for(const a of t){let t=e[a];if(void 0!==t){i=1;const e=n[a];e&&(t=e(t,a)),o[a]=t}else r&&r.includes(a)&&Rt(It(a))}return a&&!i&&Rt(Tt(t)),o}function pi(e,t,n){const r=ai(t);void 0!==e.year||void 0!==e.era&&void 0!==e.eraYear||Rt(vt(r)),void 0===e.monthCode&&void 0===e.month&&Rt("Missing month/monthCode"),n||void 0!==e.day||Rt(It("day"));const a=bi(e);return[ii(e,t),a]}function Ii(e,t){const n=t===pn,r=ai(t);void 0===e.day&&Rt(It("day")),n||void 0===e.month||void 0!==e.year||void 0!==e.era&&void 0!==e.eraYear||Rt(vt(r));const a=bi(e);return[void 0!==e.eraYear||void 0!==e.year?ii(e,t):void 0,a]}function Ti(e,t=gr,n){const r=Ia(e,t);return Ea(r),Za(r,n)}function Mi(e,t,n,r,a){const o=si(e,t,n,r,a);return Pa(Ha(Jr(t,n,o,ui(e,t,n,o,a))),t)}function vi(e,t,n,r,a){return function(e,t,n){return Pa(ba(Jr(e,t,n,1)),e)}(t,n,si(e,t,n,r,a))}function wi(e,t,n,r,a){const o=t===pn;let i,s,u,c=n;if(void 0===c&&o&&(c=1972),void 0!==c){o||Ha(Jr(t,c,1,1));const n=si(e,t,c,r,a);i=ui(e,t,c,n,a),[s,u]=Kr(t,c,n)}else{void 0===e.monthCode&&Rt("Missing month/monthCode"),[s,u]=r;const n=t?t.re:1972;if(void 0!==n)i=ui(e,t,n,si(e,t,n,r,a),a);else{const n=0===a&&t?t.ge?.(s,u,e.day):void 0;i=void 0!==n?n:e.day}}return function(e,t,n,r,a,o){let i=n;i&&((e&&e.V?.[t])??1/0)<a&&(1===o&&Bt(wt),i=0,r=_t(a,1,(e&&e.U)??1/0));let s=e?e.u(t,Boolean(i),r):Br(t,Boolean(i));for(;!s&&0===o&&r>1;)r--,s=e?e.u(t,Boolean(i),r):Br(t,Boolean(i));s||Bt("Cannot guess year");const{year:u,month:c}=s;return Pa(Ha(Jr(e,u,c,r)),e)}(t,s,u,i,e.day,a)}function bi(e){if(void 0!==e.monthCode)return Mn(e.monthCode)}const Hi=Intl.DateTimeFormat;const Ei={El_Aaiun:17,Tucuman:12,Tirane:11,Riga:10,Simferopol:9,Vienna:9,Tunis:8,Boa_Vista:6,Fortaleza:6,Maceio:6,Noronha:6,Recife:6,Gaza:6,Hebron:6,DeNoronha:6},Ni=-388152e4;function Ci(e,t,n){const[r,a,o,i]=function(e){const t=Ge(e=De(e)),n=it(e,4),r=qe(e);return[e.timeZone,n,...At(ct(Ye,r,0,4),t)]}(n),s=void 0!==r;return((e,t,n,r,a,o)=>{n=Qa(n,BigInt(a),r);const i=t.B(n);return Ui(_r(n+BigInt(i)),o)+(e?$i(qa(i)):"Z")})(s,rs(s?e(r):"UTC"),t.epochNanoseconds,a,o,i)}function Di(e,t){const n=function(e){e=De(e);const t=rt(e),n=Ge(e),r=ot(e),a=it(e,4),o=qe(e);return[t,at(e),r,a,...At(ct(Ye,o,0,4),n)]}(t);return((e,t,n,r,a,o,i,s,u,c)=>{r=Qa(r,BigInt(u),s);const h=n.B(r);return Ui(_r(r+BigInt(h)),c)+$i(qa(h),i)+function(e,t){return 1!==t?"["+(2===t?"!":"")+e+"]":""}(t,o)+Vi(e,a)})(e.calendar,e.timeZone.id,e.timeZone,e.epochNanoseconds,...n)}function ki(e,t){const n=function(e){return e=De(e),[rt(e),...gt(e)]}(t);return((e,t,n,r,a,o)=>Ui($a(t,a,r),o)+Vi(e,n))(e.calendar,e,...n)}function Oi(e,t){return n=e.calendar,r=e,a=yt(t),xi(r)+Vi(n,a);var n,r,a}function _i(e,t){return Bi(e.calendar,zi,e,yt(t))}function Li(e,t){return Bi(e.calendar,Fi,e,yt(t))}function Bi(e,t,n,r){const a=r>1||0===r&&e!==pn;return 1===r?e===pn?t(n):xi(n):a?xi(n)+Ki(In(e),2===r):t(n)}function Ri(e,t){return((e,t,n,r)=>ji(Va(e,n,t)[0],r))(e,...St(t))}function Yi(e,t){const[n,r,a]=St(t,3);return r>1&&jo(e={...e,...ja(e,r,n)}),function(e,t){const{sign:n}=e,r=-1===n?zo(e):e,{hours:a,minutes:o}=r,i=Jo(r),s=Number(i/Rn),u=Number(i%Rn);Vo(s);const c=Ji(u,t),h=t>=0||!n||c;return(n<0?"-":"")+"P"+Zi({Y:Pi(r.years),M:Pi(r.months),W:Pi(r.weeks),D:Pi(r.days)})+(a||o||s||h?"T"+Zi({H:Pi(a),M:Pi(o),S:Pi(s,h)+c}):"")}(e,a)}function Zi(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function Pi(e,t){if(!e&&!t)return"";const n=Object.create(null);return n.useGrouping=0,e.toLocaleString("fullwide",n)}function Ui(e,t){return xi(e)+"T"+ji(e,t)}function xi(e){return zi(e)+"-"+an(e.day)}function zi(e){const{year:t}=e;return(t<0||t>9999?Wi(t)+rn(6,Math.abs(t)):rn(4,t))+"-"+an(e.month)}function Fi(e){return an(e.month)+"-"+an(e.day)}function ji(e,t){const n=[an(e.hour),an(e.minute)];return-1!==t&&n.push(an(e.second)+((e,t,n,r)=>Ji(e*Nn+t*En+n,r))(e.millisecond,e.microsecond,e.nanosecond,t)),n.join(":")}function $i(e,t=0){if(1===t)return"";const[n,r]=hn(Math.abs(e),kn),[a,o]=hn(r,Dn),[i,s]=hn(o,Cn);return Wi(e)+an(n)+":"+an(a)+(i||s?":"+an(i)+Ji(s):"")}function Vi(e,t){return t>1||0===t&&e!==pn?Ki(In(e),2===t):""}function Ki(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}const Gi=/0+$/;function Ji(e,t){let n=rn(9,e);return n=void 0===t?n.replace(Gi,""):n.slice(0,t),n?"."+n:""}function Wi(e){return e<0?"-":"+"}const qi=/^(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$/,Xi=/[^\w\/:+-]+/;function Qi(e){return es(e).id}function es(e){const t=e.toUpperCase(),n=(e=>{const t=di(e,1);if(void 0!==t)return{id:$i(t),Z:t,m:t}})(t);if(n)return{kind:"fixed",...n};const r="UTC"===t?"UTC":(e=>(Xi.test(e)&&Bt(bt(e)),qi.test(e)&&Bt("Forbidden ICU TimeZone"),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?qt(e).replace(/island|noronha|murdo|rivadavia|urville/,qt):e)).join("/")))(e);return ts(r)}const ts=Pt(e=>{if("UTC"===e)return{kind:"utc",id:e,m:e};const t=e.toUpperCase(),n=ns(t);return{kind:"named",id:e,format:n,m:n.resolvedOptions().timeZone}}),ns=Pt(e=>new Hi("en-u-hc-h23",{calendar:"iso8601",timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}));function rs(e){const t=es(e);return as(t.id,t)}const as=Pt((e,t)=>"named"===t.kind?new is(e,t.m,t.format):new os(e,t.m,"fixed"===t.kind?t.Z:0));class os{constructor(e,t,n){this.id=e,this.m=t,this.Z=n}B(){return this.Z}R(e){return[Ca(e,this.Z)]}C(){}}class is{constructor(e,t,n){this.id=e,this.m=t,this.oe=((e,t)=>{const n=Pt(e),r=Pt(us),a=86400*t;function o(e){const[t,o]=cs(e,a),s=hs(t),u=hs(o),c=n(s),h=n(u);return c===h?c:i(r(s,u),c,h,e)}function i(t,n,r,a){let o,i;for(;(void 0===a||void 0===(o=a<t[0]?n:a>=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 o}return{Ae(e){const t=o(e-86400),n=o(e+86400),r=e-t,a=e-n;if(t===n)return[r];const i=o(r);return i===o(a)?[e-i]:t>n?[r,a]:[]},ze:o,C:function e(t,o){if(o>0&&t>=864e10)return;if(o<0){if(t<=Ni)return;const n=ss()+94867200;if(t>n)return e(n,-1)}const s=o>0?Math.max(t,Ni):t;let[u,c]=cs(s,a);const h=a*o,l=o>0?Math.max(t,ss())+94867200:Ni,d=()=>o<0?c>l:u<l;for(;d();){const e=hs(u),a=hs(c),s=n(e),l=n(a);if(s!==l){const n=r(e,a);i(n,s,l);const u=n[0];if((on(u,t)||1)===o)return u}u+=h,c+=h}}}})((e=>t=>{const n=function(e,t){t<-864e13&&Bt(Ht);const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}(e,1e3*t);return 86400*Or((e=>{const t=e.relatedYear;if(void 0!==t)return parseInt(t);const n=parseInt(e.year);return void 0!==e.era&&"bce"===An(e.era)?1-n:n})(n),parseInt(n.month),parseInt(n.day))+3600*parseInt(n.hour)+60*parseInt(n.minute)+parseInt(n.second)-t})(n),(e=>{const t=e.split("/").pop();return Ei[t]||60})(e))}B(e){return this.oe.ze((e=>br(e)[0])(e))*Cn}R(e){const t=86400*kr(e)+Tr(e),n=Mr(e);return this.oe.Ae(t).map(e=>Na(BigInt(e)*Rn+BigInt(n)))}C(e,t){const[n,r]=br(e),a=this.oe.C(n+(t>0||r?1:0),t);if(void 0!==a)return BigInt(a)*Rn}}function ss(){return Math.floor(Date.now()/1e3)}function us(e,t){return[e,t]}function cs(e,t){const n=Math.floor(e/t)*t;return[n,n+t]}function hs(e){return _t(e,-1e10,864e10)}function ls(e){Bt(Ct(e))}function ds(e){"iso8601"!==e.calendarId&&Bt(Dt(e.calendarId))}function ms(e){const t=Ns(e);return t&&!t.F||ls(e),t}function fs(e,t,n){return t&&"iso8601"===e.calendarId?(Fr(e),e.te&&yr(e),ps(t(e),n)):e.te?As(e,n):ps(e,n)}function gs(e){const t=12*e.year+e.month===wa?20:1;return{...e,day:t}}function ys(e){return{...e,year:1972}}function Ss(e,t,n){const r=rs(Qi(e.timeZoneId));let a;if(zr(e),e.te){const t=e.offset?li(e.offset):void 0,[,i,s]=ft(n);a=oo(r,e,t,i,s,!(r.Z||void 0===e.offset||(o=e.offset,o.replace(/\D/g,"").length>4)),e.F)}else ft(n),a=so(r,e);var o;return Na(a),Ya(a,r,t(e.calendarId))}function As(e,t){return zr(e),Ea(e),{...Ia(e,e),calendar:t(e.calendarId)}}function ps(e,t){return Fr(e),Ha(e),{calendar:t(e.calendarId),year:e.year,month:e.month,day:e.day}}function Is(e){return`(\\d{2})(?:(:?)(\\d{2})(?:\\${e}(\\d{2})(?:[.,](\\d{1,9}))?)?)?`}const Ts="(?:(?:([+-])(\\d{6}))|(\\d{4}))(-?)(\\d{2})\\4(\\d{2})(?:[T ]"+Is(8)+"(Z|([+-])"+Is(15)+")?)?",Ms=Qt("(?:(?:([+-])(\\d{6}))|(\\d{4}))-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})"),vs=Qt("(?:--)?(\\d{2})-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})"),ws=Qt(Ts+"((?:\\[(!?)([^\\]]*)\\]){0,9})"),bs=Qt("T?"+Is(2)+`(([+-])${Is(9)})?((?:\\[(!?)([^\\]]*)\\]){0,9})`),Hs=new RegExp("\\[(!?)([^\\]]*)\\]","g"),Es=Qt("([+-])?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?!$)(?:(\\d+)(?:[.,](\\d{1,9}))?H)?(?:(\\d+)(?:[.,](\\d{1,9}))?M)?(?:(\\d+)(?:[.,](\\d{1,9}))?S)?)?");function Ns(e){const t=ws.exec(e);return t?(e=>{const t=e[12],n="Z"===(t||"").toUpperCase();return{year:_s(e),month:parseInt(e[5]),day:parseInt(e[6]),...Os(e,7),...Ls(e[19]),te:Boolean(e[7]),F:n,offset:n?void 0:t}})(t):void 0}function Cs(e){const t=Ms.exec(e);if(t)return(e=>({year:_s(e),month:parseInt(e[4]),day:1,...Ls(e[5])}))(t)}function Ds(e){const t=vs.exec(e);return t?(e=>({year:1972,month:parseInt(e[1]),day:parseInt(e[2]),...Ls(e[3])}))(t):void 0}function ks(e){const t=bs.exec(e);if(t)return t[6]&&li(t[6]),t}function Os(e,t){const n=nn(e[t+3]);return{...vr(en(e[t+4]||""))[0],hour:nn(e[t]),minute:nn(e[t+2]),second:60===n?59:n}}function _s(e){const t=tn(e[1]),n=parseInt(e[2]||e[3]);return t<0&&!n&&Bt(Dt(-0)),t*n}function Ls(e){let t,n;const r=[];return e.replace(Hs,(e,a,o)=>{const i=Boolean(a),[s,u]=o.split("=").reverse();return u?"u-ca"===u?(r.push(s.toLowerCase()),t||(t=i)):(i||/[A-Z]/.test(u))&&Bt(Dt(e)):(n&&Bt(Dt(e)),n=s),""}),r.length>1&&t&&Bt(Dt(e)),{timeZoneId:n,calendarId:r[0]||"iso8601"}}function Bs(e,t,n){const r=Object.assign(Object.create(null),t);return Rs(r,n,Wn),ai(e)&&(Rs(r,n,Jn),e&&e.je&&Rs(r,n,qn,Gn)),r}function Rs(e,t,n,r){let a=0;const o=[];for(const e of n)void 0!==t[e]?a=1:o.push(e);if(Object.assign(e,t),a)for(const t of r||o)delete e[t]}function Ys(e,t,n){const[r,a]=Kr(e,t,n);return vn(r,a)}function Zs(e,t,n){const[r,a]=function(e,t){const n=t((e=Re(e,"unit")).relativeTo);let r=Qe(e);return r=da("unit",r),[r,n]}(n,e),o=Qo(t),i=Math.max(r,o),s=a&&Bo(a);if(!a&&Ro(i,s))return Ps(t,r);if(a||Bt("Missing relativeTo"),!t.sign&&(!s||r<6))return 0;const[u,c,h]=Do(a,t,r);return Ro(r,s)?Ps(u,r):((e,t,n,r)=>{const a=ra[n],o=la(n,e);return function(e,t,n,r){const a=Oa(e,t,r,n);return La(a,Number(n-a.I)/Number(a.O-a.I))}(e[a],Fo(e)||1,t,e=>(o[a]=e,Oo(r,o)))})(u,c,r,h)}function Ps(e,t){return Un(Ko(e),_n[t])}function Us(e){return Za(ro(e),e.calendar)}function xs(e){return Pa(ro(e),e.calendar)}function zs(e){return Ua(ro(e))}function Fs(e,t,n){const r=oi(e,mr,fr);let a=Bs(e,t,n);a=Ai(a,r,mi,[]);const[o,i]=pi(a,e);return Mi(a,e,o,i,0)}function js(e){return e.timeZone="UTC",["full","long"].includes(e.timeStyle)&&(e.timeStyle="medium"),e}function $s(e,t,n){const r=e.resolvedOptions().calendar;!n&&t.calendar===pn||In(t.calendar)===r||Bt("Mismatching Calendars")}function Vs(e,t,n,r,a){const o=new Set(e),i=new Set(t),s=new Set(n);return(e,t)=>{let n,u;const c={},h={},l={};let d=0,m=0;for(const t of Object.keys(e)){const r=e[t];void 0===r||s.has(t)||(o.has(t)?"dateStyle"===t?n=r:"timeStyle"===t?u=r:c[t]=r:"era"===t?h[t]=r:i.has(t)?"dateStyle"===t||"timeStyle"===t?m=1:d=1:l[t]=r)}const f=void 0!==n,g=void 0!==u,y=f||g,S=Object.keys(c).length>0,A=d||m,p=S||f||g,I=Object.keys(h).length>0;(!t&&A||t&&A&&!p||y&&(S||I||d))&&Rt("Invalid formatting options");const T={};return y||p||Object.assign(T,r),Object.assign(T,c,h,l),f&&(a?Object.assign(T,a[n]):T.dateStyle=n),g&&(T.timeStyle=u),T}}const Ks={year:"numeric",month:"numeric",day:"numeric"},Gs={hour:"numeric",minute:"numeric",second:"numeric"},Js=Object.assign({},Ks,Gs),Ws=["weekday","year","month","day","dateStyle"],qs=["dayPeriod","hour","minute","second","fractionalSecondDigits","timeStyle"],Xs=Ws.concat(qs),Qs=["weekday","day"].concat(qs),eu=["weekday","year"].concat(qs),tu=Vs(Xs,[],[],Js),nu=Vs(Xs,[],[],{...Js,timeZoneName:"short"}),ru=Vs(Xs,[],["timeZoneName"],Js),au=Vs(Ws,qs,["timeZoneName"],Ks),ou=Vs(qs,Ws,["timeZoneName","era"],Gs),iu=Vs(["year","month","dateStyle"],Qs,["timeZoneName"],{year:"numeric",month:"numeric"},{full:{year:"numeric",month:"long"},long:{year:"numeric",month:"long"},medium:{year:"numeric",month:"short"},short:{year:"2-digit",month:"numeric"}}),su=Vs(["month","day","dateStyle"],eu,["timeZoneName","era"],{month:"numeric",day:"numeric"},{full:{month:"long",day:"numeric"},long:{month:"long",day:"numeric"},medium:{month:"short",day:"numeric"},short:{month:"numeric",day:"numeric"}});function uu(e){const t=cu(),n=e.B(t);return _r(t+BigInt(n))}function cu(){return BigInt(Date.now())*Bn}function hu(){return(new Hi).resolvedOptions().timeZone}const lu=globalThis.Temporal,du="PlainYearMonth",mu="PlainMonthDay",fu="PlainDate",gu="PlainDateTime",yu="PlainTime",Su="ZonedDateTime",Au="Instant",pu="Duration";function Iu(e,t,n,...r){return Object.defineProperties(t,Ut({name:e},1)),Object.defineProperties(t.prototype,xt("Temporal."+e)),Object.defineProperties(t.prototype,zt(e=>({get(){return e(n(this))},configurable:1}),Object.assign({},...r))),t}const Tu="noop"===Wt.name?e=>{Object.defineProperty(e,"_str_",{value:e.toJSON()})}:Wt;function Mu(){Rt("Invalid calling context")}function vu(){Rt("Cannot use valueOf")}const wu={era:e=>Gr(e.calendar,e).era,eraYear:e=>Gr(e.calendar,e).eraYear,year:e=>Vr(e.calendar,e).year,month:e=>Vr(e.calendar,e).month,monthCode:e=>Xr(e.calendar,e)},bu={era:e=>Gr(e.calendar,e).era,eraYear:e=>Gr(e.calendar,e).eraYear,year:e=>Vr(e.calendar,e).year,month:e=>Vr(e.calendar,e).month,monthCode:e=>Xr(e.calendar,e),day:e=>Vr(e.calendar,e).day},Hu={monthCode:e=>Xr(e.calendar,e),day:e=>Vr(e.calendar,e).day},Eu={daysInMonth:e=>ta(e.calendar,e),daysInYear:e=>na(e.calendar,e),monthsInYear:e=>ea(e.calendar,e),inLeapYear:e=>Qr(e.calendar,e)},Nu={dayOfWeek:e=>Zr(e),dayOfYear:e=>function(e,t){if(!e)return Pr(t);const{year:n}=Vr(e,t),r=Jr(e,n,1,1);return kr(t)-kr(r)+1}(e.calendar,e),weekOfYear:e=>function(e,t){return e===pn?Ur(t).weekOfYear:void 0}(e.calendar,e),yearOfWeek:e=>function(e,t){return e===pn?Ur(t).yearOfWeek:void 0}(e.calendar,e),daysInWeek:()=>7,daysInMonth:e=>ta(e.calendar,e),daysInYear:e=>na(e.calendar,e),monthsInYear:e=>ea(e.calendar,e),inLeapYear:e=>Qr(e.calendar,e)};function Cu(e,t,n,r){const[a,o,i,s]=lt(e,r,3,5);return Bu(e,vo(t.epochNanoseconds,n.epochNanoseconds,a,o,i,s))}function Du(e,t,n,r){const a=Io(t.calendar,n.calendar),[o,i,s,u]=lt(e,r,5);return Bu(e,To(a,t,n,o,i,s,u))}function ku(e,t,n,r){const a=Io(t.calendar,n.calendar),[o,i,s,u]=lt(e,r,6);return Bu(e,function(e,t,n,r,a,o,i){return r<=6?vo(Er(t),Er(n),r,a,o,i):((e,t,n,r,a,o,i)=>{const s=Er(n),u=sn(s,Er(t));if(!u)return ca;let c;return c=Ho(e,t,n,u,r),c=Fa(c,s,r,a,o,i,((e,t)=>({ne:Er(t),ke:n=>Er(Ia(fo(e,t,n),t))}))(e,t)),c})(e,t,n,r,a,o,i)}(a,t,n,o,i,s,u))}function Ou(e,t,n,r){const a=Io(t.calendar,n.calendar),[o,i,s,u]=lt(e,r,6,9,6);return Bu(e,function(e,t,n,r,a,o,i,s=6){return 6===r?vo(Cr(t),Cr(n),r,a,o,i):Mo(e,t,n,r,a,o,i,s)}(a,t,n,o,i,s,u))}function _u(e,t,n,r){const a=Io(t.calendar,n.calendar),[o,i,s,u]=lt(e,r,9,9,8);return Bu(e,function(e,t,n,r,a,o,i){const s=go(e,t),u=go(e,n);return No(s,u)?Mo(e,Ha(s),Ha(u),r,a,o,i,8):ca}(a,t,n,o,i,s,u))}function Lu(e,t,n,r){const[a,o,i,s]=lt(e,r,5,5);return Bu(e,function(e,t,n,r,a,o){const i=Da(pr(t)-pr(e),to(r,a),o);return{...ca,...qo(i,n)}}(t,n,a,o,i,s))}function Bu(e,t){return xa(e?zo(t):t)}function Ru(e,t,n){const{calendar:r}=e,a=function(e,t,n){const r=oi(e,or,ir),{year:a,month:o,day:i}=Vr(e,t);return Bs(e,{year:a,monthCode:Ys(e,a,o),day:i},Ai(n,r,mi))}(r,e,t),[o,i]=pi(a,r);return Mi(a,r,o,i,mt(n))}function Yu(e,t,n){const{calendar:r}=e,[a,o]=function(e,t,n){const r=oi(e,sr,ur),{year:a,month:o,day:i}=Vr(e,t),s={year:a,monthCode:Ys(e,a,o),day:i,hour:t.hour,minute:t.minute,second:t.second,millisecond:t.millisecond,microsecond:t.microsecond,nanosecond:t.nanosecond},u=Ai(n,r,yi),c=Bs(e,s,u);return[{...s,...u},c]}(r,e,t),[i,s]=pi(o,r);return function(e,t,n,r,a,o){return Ti(Mi(t,n,r,a,o),Ar(e,o),n)}(a,o,r,i,s,mt(n))}function Zu(e,t,n){const{calendar:r}=e,a=function(e,t,n){const r=oi(e,er,tr),{year:a,month:o}=Vr(e,t);return Bs(e,{year:a,monthCode:Ys(e,a,o)},Ai(n,r,mi))}(r,e,t),[o,i]=pi(a,r,1);return vi(a,r,o,i,mt(n))}function Pu(e,t,n){const{calendar:r}=e,a=function(e,t,n){const r=oi(e,or,ir),{year:a,month:o,day:i}=Vr(e,t);return Bs(e,{monthCode:Ys(e,a,o),day:i},Ai(n,r,mi))}(r,e,t),[o,i]=Ii(a,r);return wi(a,r,o,i,mt(n))}function Uu(e,t,n){const r=function(e,t){return{...$t(Xn,e),...Ai(t,Xn,fi)}}(e,t);return ci(r,mt(n))}function xu(e,t,n){const{calendar:r}=e,[a,o]=function(e,t,n){const r=oi(e,cr,hr),a=ro(t),{year:o,month:i,day:s}=Vr(e,a),u={year:o,monthCode:Ys(e,o,i),day:s,hour:a.hour,minute:a.minute,second:a.second,millisecond:a.millisecond,microsecond:a.microsecond,nanosecond:a.nanosecond,offset:a.offsetNanoseconds},c=Ai(n,r,Si),h=Bs(e,u,c);return[{...u,...c},h]}(r,e,t),[i,s]=pi(o,r),[u,c,h]=ft(n,2);return function(e,t,n,r,a,o,i,s){const{calendar:u,timeZone:c}=e;return Ya(oo(c,Ia(Mi(n,u,r,a,o),Ar(t,o)),t.offset,i,s),c,u)}(e,a,o,i,s,u,c,h)}function zu(e){return function(e,t=Jt){const n=new WeakMap;function r(e){const t=n.get(e);return t||Rt("Invalid calling context"),t}class a{constructor(r,a=Object.create(null)){const o=t(a),i=[],s=new Proxy(Object.create(null),{get(e,t){const n=o[t];return void 0!==n&&i.push(t),n}}),u=new Hi(r,s),c=u.resolvedOptions(),h=$t(i,c);n.set(this,{$:e({t:u,Ce:c.locale,G:h,Ee:o}),t:u})}get format(){const e=r(this);return e.we||(e.we=t=>{const[n,...r]=e.$.A(t);return n.format(...r)})}formatToParts(e){const{$:t}=r(this),[n,...a]=t.A(e);return n.formatToParts(...a)}resolvedOptions(){return r(this).t.resolvedOptions()}}const{prototype:o}=a;function i(e,t){return new a(e,t)}Hi.prototype.formatRange&&Object.defineProperties(o,Ut({formatRange(e,t){const{$:n}=r(this),[a,o,i]=n.v(e,t);return a.formatRange(o,i)},formatRangeToParts(e,t){const{$:n}=r(this),[a,o,i]=n.v(e,t);return a.formatRangeToParts(o,i)}}));const s=Object.getOwnPropertyDescriptors(Hi);return s.prototype.value=o,Object.defineProperties(i,s),o.constructor=i,Object.defineProperties(o,xt("Intl.DateTimeFormat")),i}(t=>{const n=Pt(e=>{let n;switch(e){case Au:n=tu(t.G,1);break;case gu:n=js(ru(t.G,1));break;case fu:n=js(au(t.G,1));break;case yu:n=js(ou(t.G,1));break;case du:n=js(iu(t.G,1));break;case mu:n=js(su(t.G,1));break;default:Rt(kt(e))}return new Hi(t.Ce,n)});return{A(r){if(void 0===r)return[t.t];const a=e(r);if(!a)return[t.t,Number(r)];const[o,i]=a,s=n(o);return Fu(s,o,i),[s,ju(o,i)]},v(r,a){void 0!==r&&void 0!==a||Rt(Ot);const o=e(r),i=o?void 0:Number(r),s=e(a),u=s?void 0:Number(a);if(!o&&!s)return[t.t,i,u];o&&s||Rt(Ot);const[c,h]=o,[l,d]=s;c!==l&&Rt(Ot);const m=n(c);return Fu(m,c,h),Fu(m,c,d),[m,ju(c,h),ju(c,d)]}}})}function Fu(e,t,n){switch(t){case Au:case yu:return;case gu:case fu:return void $s(e,n);case du:case mu:return void $s(e,n,1);default:Rt(kt(t))}}function ju(e,t){switch(e){case Au:return Hr(t.epochNanoseconds);case gu:return Nr(t);case fu:case du:case mu:return Dr(t);case yu:return Ir(t);default:Rt(kt(e))}}function $u(e){const t=ma(e).toLowerCase();return t===yn?pn:"gregory"===t?0:void Bt((n=e,r="temporal-polyfill/full",`Unknown calendar ${n}; might need ${r}`));var n,r}function Vu(e=yn){return $u(e)}const Ku=new WeakMap,Gu=Iu(Su,class{constructor(e,t,n=void 0){ec(this,Ya(Na(Aa(e)),rs(Qi(ma(t))),Vu(n)))}static from(e,t=void 0){return Ju(Qu(e,t))}static compare(e,t){return ei(Qu(e),Qu(t))}get calendarId(){return In(Wu(this).calendar)}get timeZoneId(){return Wu(this).timeZone.id}get epochMilliseconds(){return Hr(Wu(this).epochNanoseconds)}get epochNanoseconds(){return Wu(this).epochNanoseconds}get offset(){return $i(ro(Wu(this)).offsetNanoseconds)}get offsetNanoseconds(){return ro(Wu(this)).offsetNanoseconds}get hoursInDay(){return function(e){const[t,n]=Wa(e);return Un(n-t,kn)}(Wu(this))}with(e,t=void 0){return Ju(xu(Wu(this),bc(e),t))}withCalendar(e){return Ju({...Wu(this),calendar:Wc(e)})}withTimeZone(e){return Ju({...Wu(this),timeZone:rs(tc(e))})}withPlainTime(e=void 0){return Ju(function(e,t){const{timeZone:n}=e,r=ro(e),{offsetNanoseconds:a}=r,o=t||gr;let i;return i=t?oo(n,Ia(r,o),a,2):so(n,Ia(r,o)),Ya(i,n,e.calendar)}(Wu(this),Oc(e)))}add(e,t=void 0){return Ju(co(Wu(this),nh(e),mt(t)))}subtract(e,t=void 0){return Ju(co(Wu(this),zo(nh(e)),mt(t)))}until(e,t=void 0){return Qc(Du(0,Wu(this),Qu(e),t))}since(e,t=void 0){return Qc(Du(1,Wu(this),Qu(e),t))}round(e){const t=Wu(this),[n,r,a]=dt(e);return Ju(za(t,n,r,a))}startOfDay(){return Ju(function(e){const{timeZone:t,calendar:n}=e;return Ya(so(t,Ia(ro(e),gr)),t,n)}(Wu(this)))}equals(e){return t=Wu(this),n=Qu(e),!ei(t,n)&&t.timeZone.m===n.timeZone.m&&t.calendar===n.calendar;var t,n}toInstant(){return ac(Ra(Wu(this).epochNanoseconds))}toPlainDateTime(){return Rc(Us(Wu(this)))}toPlainDate(){return Fc(xs(Wu(this)))}toPlainTime(){return Nc(zs(Wu(this)))}toLocaleString(e=void 0,t={}){const n=Wu(this),r=new Hi(e,function(e,t){return void 0!==e.timeZone&&Rt("Cannot specify TimeZone"),e.timeZone=t,e}(nu(t),function(e){return e.timeZone.id}(n)));return $s(r,n),r.format(Hr(n.epochNanoseconds))}toString(e=void 0){return Di(Wu(this),e)}toJSON(){return Di(Wu(this))}getTimeZoneTransition(e){const t=Wu(this),n=t.timeZone.C(t.epochNanoseconds,function(e){const t=Re(e,"direction"),n=st(t,0);return n||Bt(pt("direction",n)),n}(e));return void 0!==n?Ju({...t,epochNanoseconds:n}):null}valueOf(){return vu()}},qu,bu,Nu,zn);function Ju(e){return ec(Object.create(Gu.prototype),e)}function Wu(e){return Xu(e)||Mu()}function qu(e){const t=Wu(e);return{...ro(t),calendar:t.calendar}}function Xu(e){return Ku.get(e)}function Qu(e,t){if(Lt(e)){const n=Xu(e);if(n)return ft(t),n;return function(e,t,n,r){const a=Ai(n,oi(t,lr,dr),Si,Kn,0),o=e(a.timeZone),[i,s]=pi(a,t),[u,c,h]=ft(r),l=Mi(a,t,i,s,u),d=ci(a,u),m=rs(o);return Ya(oo(m,Ia(l,d),a.offset,c,h),m,t)}(tc,Gc(e),e,t)}return function(e,t,n){const r=Ns(ma(e));return r&&r.timeZoneId||ls(e),Ss(r,t,n)}(e,$u,t)}function ec(e,t){return Ku.set(e,t),Tu(e),e}function tc(e){if(Lt(e)){const t=Xu(e);return t||Rt(bt(e)),t.timeZone.id}return(e=>Qi(function(e){const t=Ns(e);return t&&(t.timeZoneId||t.F&&"UTC"||t.offset)||e}(ma(e))))(e)}const nc=new WeakMap,rc=Iu(Au,class{constructor(e){cc(this,Ra(Na(Aa(e))))}static from(e){return ac(sc(e))}static fromEpochMilliseconds(e){return ac(function(e){return Ra(Na(BigInt(pa(e))*Bn))}(e))}static fromEpochNanoseconds(e){return ac(function(e){return Ra(Na(Aa(e)))}(e))}static compare(e,t){return ei(sc(e),sc(t))}get epochMilliseconds(){return Hr(oc(this).epochNanoseconds)}get epochNanoseconds(){return oc(this).epochNanoseconds}add(e){return ac(Ra(mo(oc(this).epochNanoseconds,nh(e))))}subtract(e){return ac(Ra(mo(oc(this).epochNanoseconds,zo(nh(e)))))}until(e,t=void 0){return Qc(Cu(0,oc(this),sc(e),t))}since(e,t=void 0){return Qc(Cu(1,oc(this),sc(e),t))}round(e){const t=oc(this),[n,r,a]=dt(e,5,1);return ac(Ra(Qa(t.epochNanoseconds,no(n,r),a)))}equals(e){return t=oc(this),n=sc(e),!ei(t,n);var t,n}toZonedDateTimeISO(e){return Ju(function(e,t,n){return Ya(e.epochNanoseconds,t,n)}(oc(this),rs(tc(e))))}toLocaleString(e=void 0,t={}){const n=oc(this);return new Hi(e,tu(t)).format(Hr(n.epochNanoseconds))}toString(e=void 0){return Ci(tc,oc(this),e)}toJSON(){return Ci(tc,oc(this))}valueOf(){return vu()}});function ac(e){return cc(Object.create(rc.prototype),e)}function oc(e){return ic(e)||Mu()}function ic(e){return nc.get(e)}function sc(e){if(Lt(e)){const t=ic(e);if(t)return t;const n=Xu(e);if(n)return Ra(n.epochNanoseconds)}return function(e){const t=Ns(e=ma(Sa(e)));let n;return t||ls(e),t.F?n=0:t.offset?n=li(t.offset):ls(e),t.timeZoneId&&di(t.timeZoneId,1),zr(t),Ra(Ca(t,n))}(e)}const{toTemporalInstant:uc}={toTemporalInstant(){const e=Date.prototype.valueOf.call(this);return ac(Ra(BigInt(ga(e))*Bn))}};function cc(e,t){return nc.set(e,t),Tu(e),e}const hc=new WeakMap,lc=Iu(mu,class{constructor(e,t,n=void 0,r){const a=Oe(e),o=Oe(t),i=Vu(n);yc(this,Pa(Ha(Fr({year:Oe(r??1972),month:a,day:o})),i))}static from(e,t=void 0){return dc(gc(e,t))}get calendarId(){return In(mc(this).calendar)}with(e,t=void 0){return dc(Pu(mc(this),bc(e),t))}equals(e){return t=mc(this),n=gc(e),!ni(t,n)&&t.calendar===n.calendar;var t,n}toPlainDate(e){return Fc(function(e,t,n){const r=oi(e,Fn,Qn);return Fs(e,$t(ar,t),Ai(Be(n),r,mi,[]))}(mc(this).calendar,this,e))}toLocaleString(e=void 0,t={}){const n=mc(this),r=new Hi(e,js(su(t)));return $s(r,n,1),r.format(Dr(n))}toString(e=void 0){return Li(mc(this),e)}toJSON(){return Li(mc(this))}valueOf(){return vu()}},mc,Hu);function dc(e){return yc(Object.create(lc.prototype),e)}function mc(e){return fc(e)||Mu()}function fc(e){return hc.get(e)}function gc(e,t){if(Lt(e)){const n=fc(e);if(n)return mt(t),n;const r=Jc(e);return function(e,t,n,r){const a=Ai(n,oi(e,or,ir),mi,jn,0);t&&void 0!==a.month&&void 0===a.monthCode&&void 0===a.year&&(a.year=1972);const[o,i]=Ii(a,e);return wi(a,e,o,i,mt(r))}(void 0===r?pn:r,void 0===r,e,t)}const n=function(e,t){const n=Ds(ma(e));if(n)return ds(n),Pa(Fr(n),t(n.calendarId));const r=fs(ms(e),ys,t),{calendar:a}=r,{year:o,month:i,day:s}=Vr(a,r),[u,c]=Kr(a,o,i),{year:h,month:l}=((e,t,n,r)=>{const a=e?e.u(t,n,r):Br(t,n);return a||Bt("Cannot guess year"),a})(a,u,c,s);return Pa(Ha(Jr(a,h,l,s)),a)}(e,$u);return mt(t),n}function yc(e,t){return hc.set(e,t),Tu(e),e}const Sc=new WeakMap,Ac=Iu(du,class{constructor(e,t,n=void 0,r){const a=Oe(e),o=Oe(t),i=Vu(n);vc(this,Pa(ba(Fr({year:a,month:o,day:Oe(r??1)})),i))}static from(e,t=void 0){return pc(Mc(e,t))}static compare(e,t){return ni(Mc(e),Mc(t))}get calendarId(){return In(Ic(this).calendar)}with(e,t=void 0){return pc(Zu(Ic(this),bc(e),t))}add(e,t=void 0){const n=Ic(this);return pc(Pa(uo(n.calendar,n,nh(e),mt(t)),n.calendar))}subtract(e,t=void 0){const n=Ic(this);return pc(Pa(uo(n.calendar,n,zo(nh(e)),mt(t)),n.calendar))}until(e,t=void 0){return Qc(_u(0,Ic(this),Mc(e),t))}since(e,t=void 0){return Qc(_u(1,Ic(this),Mc(e),t))}equals(e){return t=Ic(this),n=Mc(e),!ni(t,n)&&t.calendar===n.calendar;var t,n}toPlainDate(e){return Fc(function(e,t,n){return Fs(e,$t(oi(e,nr,rr),t),Ai(Be(n),jn,mi,[]))}(Ic(this).calendar,this,e))}toLocaleString(e=void 0,t={}){const n=Ic(this),r=new Hi(e,js(iu(t)));return $s(r,n,1),r.format(Dr(n))}toString(e=void 0){return _i(Ic(this),e)}toJSON(){return _i(Ic(this))}valueOf(){return vu()}},Ic,wu,Eu);function pc(e){return vc(Object.create(Ac.prototype),e)}function Ic(e){return Tc(e)||Mu()}function Tc(e){return Sc.get(e)}function Mc(e,t){if(Lt(e)){const n=Tc(e);if(n)return mt(t),n;return function(e,t,n,r){const a=Ai(t,oi(e,er,tr),mi,r),[o,i]=pi(a,e,1);return vi(a,e,o,i,mt(n))}(Gc(e),e,t)}const n=function(e,t){const n=Cs(ma(e));if(n)return ds(n),Pa(ba(Fr(n)),t(n.calendarId));const r=fs(ms(e),gs,t),{calendar:a}=r;return Pa(go(a,r),a)}(e,$u);return mt(t),n}function vc(e,t){return Sc.set(e,t),Tu(e),e}function wc(e){if(!Lt(e))return;let t=ic(e);return t?[Au,t]:(t=Xu(e),t?[Su,t]:(t=Zc(e),t?[gu,t]:(t=$c(e),t?[fu,t]:(t=Dc(e),t?[yu,t]:(t=Tc(e),t?[du,t]:(t=fc(e),t?[mu,t]:(t=th(e),t?[pu,t]:void 0)))))))}function bc(e){return(wc(e)||void 0!==e.calendar||void 0!==e.timeZone)&&Rt("Invalid bag"),e}const Hc=new WeakMap,Ec=Iu(yu,class{constructor(e=0,t=0,n=0,r=0,a=0,o=0){_c(this,Ua(yr(zt(Oe,{hour:e,minute:t,second:n,millisecond:r,microsecond:a,nanosecond:o}))))}static from(e,t=void 0){return Nc(kc(e,t))}static compare(e,t){return ri(kc(e),kc(t))}with(e,t=void 0){return Nc(Uu(Cc(this),bc(e),t))}add(e){return Nc(lo(Cc(this),nh(e))[0])}subtract(e){return Nc(lo(Cc(this),zo(nh(e)))[0])}until(e,t=void 0){return Qc(Lu(0,Cc(this),kc(e),t))}since(e,t=void 0){return Qc(Lu(1,Cc(this),kc(e),t))}round(e){const t=Cc(this),[n,r,a]=dt(e,5);return Nc(Va(t,to(n,r),a)[0])}equals(e){return t=Cc(this),n=kc(e),!ri(t,n);var t,n}toLocaleString(e=void 0,t={}){const n=Cc(this);return new Hi(e,js(ou(t))).format(Ir(n))}toString(e=void 0){return Ri(Cc(this),e)}toJSON(){return Ri(Cc(this))}valueOf(){return vu()}},Cc,zn);function Nc(e){return _c(Object.create(Ec.prototype),e)}function Cc(e){return Dc(e)||Mu()}function Dc(e){return Hc.get(e)}function kc(e,t){if(Lt(e)){const n=Dc(e);if(n)return mt(t),n;const r=Zc(e);if(r)return mt(t),Ua(r);const a=Xu(e);return a?(mt(t),zs(a)):function(e,t){return ci(Ai(e,Xn,fi,[],1),mt(t))}(e,t)}const n=function(e){let t,n=(e=>{const t=ks(e);return t?(Ls(t[13]),Os(t,1)):void 0})(e=ma(e));if(!n){const t=Ns(e);t&&t.te||ls(e),t.F&&Bt(Dt("Z")),ds(t),n=t}return(t=Cs(e))&&jr(t)&&ls(e),(t=Ds(e))&&jr(t)&&ls(e),Ua(yr(n))}(e);return mt(t),n}function Oc(e){return void 0===e?void 0:kc(e)}function _c(e,t){return Hc.set(e,t),Tu(e),e}const Lc=new WeakMap,Bc=Iu(gu,class{constructor(e,t,n,r=0,a=0,o=0,i=0,s=0,u=0,c=void 0){Uc(this,Za(Ea(zr(zt(Oe,{year:e,month:t,day:n,hour:r,minute:a,second:o,millisecond:i,microsecond:s,nanosecond:u}))),Vu(c)))}static from(e,t=void 0){return Rc(Pc(e,t))}static compare(e,t){return ti(Pc(e),Pc(t))}get calendarId(){return In(Yc(this).calendar)}with(e,t=void 0){return Rc(Yu(Yc(this),bc(e),t))}withCalendar(e){return Rc(Za(Yc(this),Wc(e)))}withPlainTime(e=void 0){const t=Yc(this);return Rc(Ti(t,Oc(e),t.calendar))}add(e,t=void 0){const n=Yc(this);return Rc(Za(ho(n.calendar,n,nh(e),mt(t)),n.calendar))}subtract(e,t=void 0){const n=Yc(this);return Rc(Za(ho(n.calendar,n,zo(nh(e)),mt(t)),n.calendar))}until(e,t=void 0){return Qc(ku(0,Yc(this),Pc(e),t))}since(e,t=void 0){return Qc(ku(1,Yc(this),Pc(e),t))}round(e){const t=Yc(this),[n,r,a]=dt(e);return Rc(Za($a(t,to(n,r),a),t.calendar))}equals(e){return t=Yc(this),n=Pc(e),!ti(t,n)&&t.calendar===n.calendar;var t,n}toZonedDateTime(e,t=void 0){return Ju((n=Yc(this),r=rs(tc(e)),a=function(e){return tt(De(e))}(t),Ya(Na(io(r,n,a)),r,n.calendar)));var n,r,a}toPlainDate(){const e=Yc(this);return Fc(Pa(e,e.calendar))}toPlainTime(){return Nc(Ua(Yc(this)))}toLocaleString(e=void 0,t={}){const n=Yc(this),r=new Hi(e,js(ru(t)));return $s(r,n),r.format(Nr(n))}toString(e=void 0){return ki(Yc(this),e)}toJSON(){return ki(Yc(this))}valueOf(){return vu()}},Yc,bu,Nu,zn);function Rc(e){return Uc(Object.create(Bc.prototype),e)}function Yc(e){return Zc(e)||Mu()}function Zc(e){return Lc.get(e)}function Pc(e,t){if(Lt(e)){const n=Zc(e);if(n)return mt(t),n;const r=$c(e);if(r)return mt(t),Za(Ia(r,gr),r.calendar);const a=Xu(e);if(a)return mt(t),Us(a);return function(e,t,n){const r=Ai(t,oi(e,sr,ur),yi,[],0),[a,o]=pi(r,e),i=mt(n);return Ti(Mi(r,e,a,o,i),ci(r,i),e)}(Gc(e),e,t)}const n=function(e,t){const n=Ns(ma(e));return n&&!n.F||ls(e),As(n,t)}(e,$u);return mt(t),n}function Uc(e,t){return Lc.set(e,t),Tu(e),e}const xc=new WeakMap,zc=Iu(fu,class{constructor(e,t,n,r=void 0){Kc(this,Pa(Ha(Fr(zt(Oe,{year:e,month:t,day:n}))),Vu(r)))}static from(e,t=void 0){return Fc(Vc(e,t))}static compare(e,t){return ni(Vc(e),Vc(t))}get calendarId(){return In(jc(this).calendar)}with(e,t=void 0){return Fc(Ru(jc(this),bc(e),t))}withCalendar(e){return Fc(Pa(jc(this),Wc(e)))}add(e,t=void 0){const n=jc(this);return Fc(Pa(fo(n.calendar,n,nh(e),mt(t)),n.calendar))}subtract(e,t=void 0){const n=jc(this);return Fc(Pa(fo(n.calendar,n,zo(nh(e)),mt(t)),n.calendar))}until(e,t=void 0){return Qc(Ou(0,jc(this),Vc(e),t))}since(e,t=void 0){return Qc(Ou(1,jc(this),Vc(e),t))}equals(e){return t=jc(this),n=Vc(e),!ni(t,n)&&t.calendar===n.calendar;var t,n}toZonedDateTime(e){const t=Lt(e)?{timeZone:e.timeZone,plainTime:e.plainTime}:{timeZone:e},n=jc(this),r=tc(t.timeZone),a=t.plainTime,o=void 0!==a?kc(a):void 0;return Ju(function(e,t,n){let r;return r=n?io(t,Ia(e,n)):so(t,Ia(e,gr)),Ya(r,t,e.calendar)}(n,rs(r),o))}toPlainDateTime(e=void 0){const t=jc(this);return Rc(Ti(t,Oc(e),t.calendar))}toPlainYearMonth(){return pc(function(e,t){const n=Ai(t,oi(e,nr,rr),mi),[r,a]=pi(n,e,1);return vi(n,e,r,a,0)}(jc(this).calendar,this))}toPlainMonthDay(){return dc(function(e,t){const n=Ai(t,ar,mi),[r,a]=Ii(n,e);return wi(n,e,r,a,0)}(jc(this).calendar,this))}toLocaleString(e=void 0,t={}){const n=jc(this),r=new Hi(e,js(au(t)));return $s(r,n),r.format(Dr(n))}toString(e=void 0){return Oi(jc(this),e)}toJSON(){return Oi(jc(this))}valueOf(){return vu()}},jc,bu,Nu);function Fc(e){return Kc(Object.create(zc.prototype),e)}function jc(e){return $c(e)||Mu()}function $c(e){return xc.get(e)}function Vc(e,t){if(Lt(e)){const n=$c(e);if(n)return mt(t),n;const r=Zc(e);if(r)return mt(t),Pa(r,r.calendar);const a=Xu(e);if(a)return mt(t),xs(a);return function(e,t,n,r=[]){const a=Ai(t,oi(e,or,ir),mi,r),[o,i]=pi(a,e);return Mi(a,e,o,i,mt(n))}(Gc(e),e,t)}const n=function(e,t){const n=fs(ms(ma(e)),void 0,t);return Pa(n,n.calendar)}(e,$u);return mt(t),n}function Kc(e,t){return xc.set(e,t),Tu(e),e}function Gc(e){const t=Jc(e);return void 0===t?pn:t}function Jc(e){const{calendar:t}=e;if(void 0!==t)return Wc(t)}function Wc(e){if(Lt(e)){const t=$c(e)||Zc(e)||Xu(e)||fc(e)||Tc(e);return t||Rt(Ce("Calendar",e)),t.calendar}return(e=>$u(function(e){const t=Ns(e)||Cs(e)||Ds(e);if(t)return t.calendarId;const n=ks(e);return n?Ls(n[13]).calendarId:e}(ma(e))))(e)}const qc=new WeakMap,Xc=Iu(pu,class{constructor(e=0,t=0,n=0,r=0,a=0,o=0,i=0,s=0,u=0,c=0){ah(this,xa(jo(zt(pa,{years:e,months:t,weeks:n,days:r,hours:a,minutes:o,seconds:i,milliseconds:s,microseconds:u,nanoseconds:c}))))}static from(e){return Qc(nh(e))}static compare(e,t,n=void 0){return function(e,t,n,r){const a=e(De(r).relativeTo),o=Math.max(Qo(t),Qo(n));return Vt(ra,t,n)?0:Ro(o,a&&Bo(a))?sn(Ko(t),Ko(n)):(a||Bt("Missing relativeTo"),sn(ko(a,t),ko(a,n)))}(rh,nh(e),nh(t),n)}get sign(){return eh(this).sign}get blank(){return!eh(this).sign}with(e){return Qc((t=eh(this),xa((n=t,r=e,jo({...n,...Ai(r,oa,gi)})))));var t,n,r}negated(){return Qc(xo(eh(this)))}abs(){return Qc(-1===(e=eh(this)).sign?xo(e):e);var e}add(e){return Qc(Po(0,eh(this),nh(e)))}subtract(e){return Qc(Po(1,eh(this),nh(e)))}round(e){return Qc(Uo(rh,eh(this),e))}total(e){return Zs(rh,eh(this),e)}toLocaleString(e=void 0,t){const n=eh(this);return Intl.DurationFormat?new Intl.DurationFormat(e,t).format(n):Yi(n,t)}toString(e=void 0){return Yi(eh(this),e)}toJSON(){return Yi(eh(this))}valueOf(){return vu()}},eh,aa);function Qc(e){return ah(Object.create(Xc.prototype),e)}function eh(e){return th(e)||Mu()}function th(e){return qc.get(e)}function nh(e){return Lt(e)?th(e)||function(e){const t=Ai(e,oa,gi);return xa(jo({...ca,...t}))}(e):function(e){const t=Es.exec(ma(e));return t||ls(e),xa(jo((e=>{let t=0,n=0,r=0,a={years:o(e[2]),months:o(e[3]),weeks:o(e[4]),days:o(e[5]),hours:o(e[6],e[7],5),minutes:o(e[8],e[9],4),seconds:o(e[10],e[11],3),...Yo(r,2,ra)};return t||Bt(Tt(ra)),tn(e[1])<0&&(a=zo(a)),a;function o(e,a,o){let i=0,s=0;return o&&([i,r]=hn(r,_n[o])),void 0!==e&&(n&&Bt(Dt(e)),s=(e=>{const t=parseInt(e);return Number.isFinite(t)||Bt(Dt(e)),t})(e),t=1,a&&(r=en(a)*(_n[o]/Cn),n=1)),i+s}})(t)))}(e)}function rh(e){if(void 0!==e){if(Lt(e)){const t=Xu(e);if(t)return t;const n=$c(e);if(n)return n;const r=Zc(e);if(r)return Pa(r,r.calendar);return function(e,t,n){const r=Ai(n,oi(t,lr,dr),Si,[],0),a=void 0!==r.timeZone,[o,i]=pi(r,t),s=Mi(r,t,o,i,0);if(a){const n=ci(r),a=rs(e(r.timeZone));return{epochNanoseconds:oo(a,Ia(s,n),r.offset),timeZone:a,calendar:t}}return s}(tc,Gc(e),e)}return function(e,t){const n=Ns(ma(e));return n||ls(e),n.timeZoneId?Ss(n,t,void 0):(n.F&&ls(e),ps(n,t))}(e,$u)}}function ah(e,t){return qc.set(e,t),Tu(e),e}const oh=Object.defineProperties({},{...xt("Temporal.Now"),...Ut({timeZoneId:()=>hu(),instant:()=>ac(Ra(cu())),zonedDateTimeISO(e=hu()){const t=rs(tc(e));return Ju(Ya(cu(),t))},plainDateTimeISO:(e=hu())=>Rc(Za(uu(rs(tc(e))))),plainDateISO:(e=hu())=>Fc(Pa(uu(rs(tc(e))))),plainTimeISO:(e=hu())=>Nc(Ua(uu(rs(tc(e)))))})}),ih=Object.defineProperties({},{...xt("Temporal"),...Ut({PlainYearMonth:Ac,PlainMonthDay:lc,PlainDate:zc,PlainTime:Ec,PlainDateTime:Bc,ZonedDateTime:Gu,Instant:rc,Duration:Xc,Now:oh})}),sh=zu(wc);function uh(e){return e*Math.PI/180}function ch(e){return 180*e/Math.PI}lu||(Object.defineProperties(globalThis,Ut({Temporal:ih})),Object.defineProperties(Intl,Ut({DateTimeFormat:sh})),Object.defineProperties(Date.prototype,Ut({toTemporalInstant:uc})));class hh{constructor(e,t,n,r,a){this.setLocationName(e),this.setLatitude(t),this.setLongitude(n),this.setElevation(r),this.setTimeZone(a)}latitude;longitude;locationName=null;timeZoneId;elevation;getElevation(){return this.elevation}setElevation(e){if("number"!=typeof e)throw new TypeError("Invalid elevation");if(e<0)throw new RangeError(`elevation ${e} must be zero or positive`);this.elevation=e}setLatitude(e){if("number"!=typeof e)throw new TypeError("Invalid latitude");if(e<-90||e>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);this.latitude=e}getLatitude(){return this.latitude}setLongitude(e){if("number"!=typeof e)throw new TypeError("Invalid longitude");if(e<-180||e>180)throw new RangeError(`Longitude ${e} out of range [-180,180]`);this.longitude=e}getLongitude(){return this.longitude}getLocationName(){return this.locationName}setLocationName(e){this.locationName=e}getTimeZone(){return this.timeZoneId}setTimeZone(e){if(!e)throw new RangeError("Invalid timeZoneId");this.timeZoneId=e}}const lh=6356.9;class dh{constructor(e,t){this.date=t,this.geoLocation=e}static GEOMETRIC_ZENITH=90;static CIVIL_ZENITH=96;static NAUTICAL_ZENITH=102;static ASTRONOMICAL_ZENITH=108;date;geoLocation;getSunrise(){const e=this.getUTCSunrise0(dh.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(dh.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(dh.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(dh.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(dh.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(dh.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(dh.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(dh.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(dh.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(dh.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 ch(Math.acos(lh/(lh+e/1e3)))}adjustZenith(e,t){let n=e;return e===dh.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}static JULIAN_DAY_JAN_1_2000=2451545;static JULIAN_DAYS_PER_CENTURY=36525;getUTCSunrise(e,t,n,r){const a=r?t.getElevation():0,o=this.adjustZenith(n,a);let i=dh.getSunriseUTC(dh.getJulianDay(e),t.getLatitude(),-t.getLongitude(),o);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getUTCSunset(e,t,n,r){const a=r?t.getElevation():0,o=this.adjustZenith(n,a);let i=dh.getSunsetUTC(dh.getJulianDay(e),t.getLatitude(),-t.getLongitude(),o);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getTemporalHour(e=this.getSeaLevelSunrise(),t=this.getSeaLevelSunset()){if(null===e||null===t)return NaN;const n=t.epochMilliseconds-e.epochMilliseconds;return Math.floor(n/12)}getSunTransit(e=this.getSeaLevelSunrise(),t=this.getSeaLevelSunset()){const n=this.getTemporalHour(e,t);return dh.getTimeOffset(e,6*n)}getDateFromTime(e,t){const n=this.getEpochMillisFromTime(e,t);return isNaN(n)?null:Temporal.Instant.fromEpochMilliseconds(n).toZonedDateTimeISO(this.geoLocation.getTimeZone())}getEpochMillisFromTime(e,t){if(isNaN(e))return NaN;let n=e;const r=this.getAdjustedDate(),a=Math.trunc(n);n-=a;const o=Math.trunc(n*=60);n-=o;const i=Math.trunc(n*=60);n-=i;const s=Math.trunc(this.geoLocation.getLongitude()/15);let u=0;t&&s+a>18?u=-1:!t&&s+a<6&&(u=1);const c=r.year;let h=Date.UTC(c,r.month-1,r.day,a,o,i,Math.trunc(1e3*n));if(c>=0&&c<100){const e=new Date(h);e.setUTCFullYear(c),h=e.getTime()}return h+864e5*u}static getJulianDay(e){let{year:t,month:n}=e;const{day:r}=e;n<=2&&(t-=1,n+=12);const a=Math.trunc(t/100),o=Math.trunc(2-a+a/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+o-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-dh.JULIAN_DAY_JAN_1_2000)/dh.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*dh.JULIAN_DAYS_PER_CENTURY+dh.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=uh(dh.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 dh.getSunGeometricMeanLongitude(e)+dh.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return dh.getSunTrueLongitude(e)-.00569-.00478*Math.sin(uh(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 dh.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(uh(t))}static getSunDeclination(e){const t=dh.getObliquityCorrection(e),n=dh.getSunApparentLongitude(e),r=Math.sin(uh(t))*Math.sin(uh(n));return ch(Math.asin(r))}static getEquationOfTime(e){const t=dh.getObliquityCorrection(e),n=dh.getSunGeometricMeanLongitude(e),r=dh.getEarthOrbitEccentricity(e),a=dh.getSunGeometricMeanAnomaly(e);let o=Math.tan(uh(t)/2);o*=o;const i=Math.sin(2*uh(n)),s=Math.sin(uh(a));return 4*ch(o*i-2*r*s+4*r*o*s*Math.cos(2*uh(n))-.5*o*o*Math.sin(4*uh(n))-1.25*r*r*Math.sin(2*uh(a)))}static getSunHourAngleAtSunrise(e,t,n){const r=uh(e),a=uh(t);return Math.acos(Math.cos(uh(n))/(Math.cos(r)*Math.cos(a))-Math.tan(r)*Math.tan(a))}static getSunHourAngleAtSunset(e,t,n){const r=uh(e),a=uh(t);return-Math.acos(Math.cos(uh(n))/(Math.cos(r)*Math.cos(a))-Math.tan(r)*Math.tan(a))}static getSolarElevation(e,t,n){const r=dh.getJulianDay(e.toPlainDate()),a=dh.getJulianCenturiesFromJulianDay(r),o=dh.getEquationOfTime(a);let i=e.hour+12+(e.minute+o+e.second/60)/60;i=-360*i/24%360;const s=uh(n-i),u=uh(dh.getSunDeclination(a)),c=uh(t);return ch(Math.asin(Math.sin(c)*Math.sin(u)+Math.cos(c)*Math.cos(u)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=dh.getJulianDay(e.toPlainDate()),a=dh.getJulianCenturiesFromJulianDay(r),o=dh.getEquationOfTime(a);let i=e.hour+12+(e.minute+o+e.second/60)/60;i=-360*i/24%360;const s=uh(n-i),u=uh(dh.getSunDeclination(a)),c=uh(t);return ch(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 a=dh.getJulianCenturiesFromJulianDay(e),o=dh.getSolarNoonUTC(a,n),i=dh.getJulianCenturiesFromJulianDay(e+o/1440);let s=dh.getEquationOfTime(i),u=dh.getSunDeclination(i),c=dh.getSunHourAngleAtSunrise(t,u,r),h=n-ch(c),l=4*h,d=720+l-s;const m=dh.getJulianCenturiesFromJulianDay(dh.getJulianDayFromJulianCenturies(a)+d/1440);return s=dh.getEquationOfTime(m),u=dh.getSunDeclination(m),c=dh.getSunHourAngleAtSunrise(t,u,r),h=n-ch(c),l=4*h,d=720+l-s,d}static getSolarNoonUTC(e,t){const n=dh.getJulianCenturiesFromJulianDay(dh.getJulianDayFromJulianCenturies(e)+t/360);let r=dh.getEquationOfTime(n);const a=720+4*t-r,o=dh.getJulianCenturiesFromJulianDay(dh.getJulianDayFromJulianCenturies(e)-.5+a/1440);return r=dh.getEquationOfTime(o),720+4*t-r}static getSunsetUTC(e,t,n,r){const a=dh.getJulianCenturiesFromJulianDay(e),o=dh.getSolarNoonUTC(a,n),i=dh.getJulianCenturiesFromJulianDay(e+o/1440);let s=dh.getEquationOfTime(i),u=dh.getSunDeclination(i),c=dh.getSunHourAngleAtSunset(t,u,r),h=n-ch(c),l=4*h,d=720+l-s;const m=dh.getJulianCenturiesFromJulianDay(dh.getJulianDayFromJulianCenturies(a)+d/1440);return s=dh.getEquationOfTime(m),u=dh.getSunDeclination(m),c=dh.getSunHourAngleAtSunset(t,u,r),h=n-ch(c),l=4*h,d=720+l-s,d}}var mh=["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|-0.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"];class fh extends Map{#e=0;#t=new Map;#n=new Map;#r;#a;#o;constructor(e={}){if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.#r=e.maxSize,this.#a=e.maxAge||Number.POSITIVE_INFINITY,this.#o=e.onEviction}get __oldCache(){return this.#n}#i(e){if("function"==typeof this.#o)for(const[t,n]of e)this.#o(t,n.value)}#s(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.#o&&this.#o(e,t.value),this.delete(e))}#u(e,t){if(!1===this.#s(e,t))return t.value}#c(e,t){return t.expiry?this.#u(e,t):t.value}#h(e,t){const n=t.get(e);return this.#c(e,n)}#l(e,t){this.#t.set(e,t),this.#e++,this.#e>=this.#r&&(this.#e=0,this.#i(this.#n),this.#n=this.#t,this.#t=new Map)}#d(e,t){this.#n.delete(e),this.#l(e,t)}*#m(){for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield e)}}for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield e)}}get(e){if(this.#t.has(e)){const t=this.#t.get(e);return this.#c(e,t)}if(this.#n.has(e)){const t=this.#n.get(e);if(!1===this.#s(e,t))return this.#d(e,t),t.value}}set(e,t,{maxAge:n=this.#a}={}){const r="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.#t.has(e)?this.#t.set(e,{value:t,expiry:r}):this.#l(e,{value:t,expiry:r}),this}has(e){return this.#t.has(e)?!this.#s(e,this.#t.get(e)):!!this.#n.has(e)&&!this.#s(e,this.#n.get(e))}peek(e){return this.#t.has(e)?this.#h(e,this.#t):this.#n.has(e)?this.#h(e,this.#n):void 0}expiresIn(e){const t=this.#t.get(e)??this.#n.get(e);if(t)return t.expiry?t.expiry-Date.now():Number.POSITIVE_INFINITY}delete(e){const t=this.#t.delete(e);return t&&this.#e--,this.#n.delete(e)||t}clear(){this.#t.clear(),this.#n.clear(),this.#e=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this.#m()],n=t.length-e;n<0?(this.#t=new Map(t),this.#n=new Map,this.#e=t.length):(n>0&&this.#i(t.slice(0,n)),this.#n=new Map(t.slice(n)),this.#t=new Map,this.#e=0),this.#r=e}evict(e=1){const t=Number(e);if(!t||t<=0)return;const n=[...this.#m()],r=Math.trunc(Math.min(t,Math.max(n.length-1,0)));r<=0||(this.#i(n.slice(0,r)),this.#n=new Map(n.slice(r)),this.#t=new Map,this.#e=0)}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield[t,n.value])}for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.#t];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,a]=n;!1===this.#s(r,a)&&(yield[r,a.value])}e=[...this.#n];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,a]=n;if(!this.#t.has(r)){!1===this.#s(r,a)&&(yield[r,a.value])}}}*entriesAscending(){for(const[e,t]of this.#m())yield[e,t.value]}get size(){if(!this.#e)return this.#n.size;let e=0;for(const t of this.#n.keys())this.#t.has(t)||e++;return Math.min(this.#e+e,this.#r)}get maxSize(){return this.#r}get maxAge(){return this.#a}entries(){return this.entriesAscending()}forEach(e,t=this){for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return"QuickLRU"}toString(){return`QuickLRU(${this.size}/${this.maxSize})`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}const gh=new Map,yh={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"},Sh=new fh({maxSize:120});class Ah extends hh{constructor(e,t,n,r,a,o,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]`);if(!r)throw new RangeError("Invalid timezone");const h="number"==typeof s&&s>0?s:0;a&&"string"!=typeof a&&(a=String(a)),super(a||null,u,c,h,r),this.il=Boolean(n),this.cc=o,"IL"===o&&(this.il=!0),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=Sh.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return Sh.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return 0===gh.size&&function(){for(const e of mh){const[t,n,r,a,o,i]=e.split("|"),s=new Ah(+r,+a,"IL"===n,o,t,n,void 0,+i);Ah.addLocation(t,s)}}(),gh.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"}return"usa"===t?yh[String(-1*e)]:void 0}static getUsaTzid(e,t,n){return 10===(t=+t)&&"AK"===e?"America/Adak":7===t&&"AZ"===e?"Y"===n?"America/Denver":"America/Phoenix":yh[t]}static addLocation(e,t){const n=e.toLowerCase();return!gh.has(n)&&(gh.set(n,t),!0)}}const ph={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 Ih(e,t,n){if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const r=n?.location?.getCountryCode()||(n?.il?"IL":"US"),a=n?.hour12;if(void 0!==a&&!a)return e;if(!a&&void 0===ph[r])return e;const o=e.split(":");let i=parseInt(o[0],10);return i<12&&t?(t=t.replace("p","a").replace("P","A"),0===i&&(i=12)):i>12?i%=12:0===i&&(i="00"),`${i}:${o[1]}${t}`}const Th=25920;function Mh(e,t){const n=function(e,t){const n=w(e);return(t+(n?6:5))%(n?13:12)+1}(e,t);return 31524+765433*(235*Math.trunc((e-1)/19)+(e-1)%19*12+Math.trunc(((e-1)%19*7+1)/19)+(n-1))}function vh(e,t){const n=Mh(e,t),r=function(e){return Math.trunc(e/Th)+-1373429}(n);let a=new fe(r);const o=Math.trunc(n/Th);let i=Math.trunc(n-o*Th),s=Math.trunc(i/1080);i-=1080*s;const u=Math.trunc(i/18);s>=6&&(a=a.next()),s=(s+18)%24;return{hdate:a,hour:s,minutes:u,chalakim:i-18*u}}function wh(e){const t=10*e.chalakim/3,n=Math.trunc(1e3*(t-Math.trunc(t))),r=e.hdate.greg(),a="Etc/GMT+2",o=Temporal.ZonedDateTime.from({year:r.getFullYear(),month:r.getMonth()+1,day:r.getDate(),hour:e.hour,minute:e.minutes,second:Math.trunc(t),millisecond:n,timeZone:a}),i=function(e,t,n){const r=4*t*6e4- -1*Q(n,e)*6e4;return Math.trunc(r)}(r,35.2354,a);return o.subtract({milliseconds:i}).withTimeZone("UTC")}function bh(e){return e.replaceAll("'","’")}function Hh(e){return e.toLowerCase().replaceAll("'","").replaceAll(" ","-")}const Eh=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Nh=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],Ch=["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],Dh="בַּלַּ֥יְלָה";class kh{constructor(e,t){this.m=vh(e,t),this.year=e,this.month=t}getMoladDate(){return this.m.hdate}getYear(){return this.year}getMonth(){return this.month}getMonthName(){return fe.getMonthName(this.month,this.year)}getDow(){return this.m.hdate.getDay()}getHour(){return this.m.hour}getMinutes(){return this.m.minutes}getChalakim(){return this.m.chalakim}getInstant(){return this.instant??=wh(this.m),this.instant}getTchilasZmanKidushLevana3Days(){return this.getInstant().add({hours:72})}getTchilasZmanKidushLevana7Days(){return this.getInstant().add({hours:168})}getSofZmanKidushLevanaBetweenMoldos(){return this.getInstant().add({hours:354,minutes:22,seconds:1,milliseconds:666})}getSofZmanKidushLevana15Days(){return this.getInstant().add({hours:360})}render(e,t){const n=se.gettext(this.getMonthName(),e),r=function(e){return se.isHebrewLocale(e)?Nh:"fr"===e?Ch:Eh}(e),a=r[this.getDow()],o=this.getMinutes(),i=this.getHour(),s=this.getChalakim(),u=se.gettext("Molad",e),c=se.lookupTranslation("min",e)??"minutes",h=se.gettext("chalakim",e),l=se.gettext("and",e);if(se.isHebrewLocale(e)){const t=function(e){return e<5?Dh:e<12?"בַּבֹּקֶר":e<17?"בַּצׇּהֳרַיִים":e<21?"בָּעֶרֶב":Dh}(i);let r=`${u} ${n} יִהְיֶה בַּיּוֹם ${a} בשָׁבוּעַ, בְּשָׁעָה ${i} ${t}, ו-${o} ${c}`;return 0!==s&&(r+=` ו-${s} ${h}`),"he-x-nonikud"===e.toLocaleLowerCase()?se.hebrewStripNikkud(r):r}const d=Ih(`${i}:${J(o)}`,"pm",t),m=`${u} ${bh(n)}: ${a}, ${d}`;return 0===s?m:m+` ${l} ${s} ${h}`}}class Oh extends He{constructor(e,t,n,r){const a=new kh(t,n);super(e,`Molad ${a.getMonthName()} ${t}`,Me.MOLAD),this.molad=a,this.options=r}render(e){return this.molad.render(e,this.options)}}function _h(e){const t=new Date(e);return t.setMilliseconds(0),t}const Lh=90,Bh=91.583;function Rh(e,t){return Math.floor((t-e)/12)}class Yh{constructor(e,t,n){this.hdate=new fe(t);const r=u(t)?t:this.hdate.greg();this.plainDate=new Temporal.PlainDate(r.getFullYear(),r.getMonth()+1,r.getDate()),this.gloc=e,this.noaa=new dh(e,this.plainDate),this.useElevation=Boolean(n)}getUseElevation(){return this.useElevation}setUseElevation(e){this.useElevation=e}timeAtAngle(e,t){const n=Lh+e;return _h(t?this.sunriseMillis(n,!0):this.sunsetMillis(n,!0))}sunriseMillis(e,t){const n=t?this.noaa.getUTCSunrise0(e):this.noaa.getUTCSeaLevelSunrise(e);return this.noaa.getEpochMillisFromTime(n,!0)}sunsetMillis(e,t){const n=t?this.noaa.getUTCSunset0(e):this.noaa.getUTCSeaLevelSunset(e);return this.noaa.getEpochMillisFromTime(n,!1)}sunrise(){return _h(this.sunriseMillis(Lh,this.useElevation))}seaLevelSunrise(){return _h(this.sunriseMillis(Lh,!1))}sunset(){return _h(this.sunsetMillis(Lh,this.useElevation))}seaLevelSunset(){return _h(this.sunsetMillis(Lh,!1))}dawn(){return _h(this.sunriseMillis(96,!0))}dusk(){return _h(this.sunsetMillis(96,!0))}gregEve(){const e=this.plainDate.subtract({days:1}),t=new Date(e.year,e.month-1,e.day);return new Yh(this.gloc,t,this.useElevation).sunset()}nightHour(){return(this.sunrise().getTime()-this.gregEve().getTime())/12}chatzot(){const e=this.sunriseMillis(Lh,!1);return _h(e+6*Rh(e,this.sunsetMillis(Lh,!1)))}chatzotNight(){return new Date(this.sunrise().getTime()-6*this.nightHour())}alotHaShachar(){return this.timeAtAngle(16.1,!0)}alotHaShachar72(){return this.sunriseOffset(-72,!1,!1)}alotHaShachar72zdt(){const e=this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise();return e?e.subtract({minutes:72}):null}misheyakir(){return this.timeAtAngle(11.5,!0)}misheyakirMachmir(){return this.timeAtAngle(10.2,!0)}getShaahZmanisBasedZmanMillis(e,t,n){return e+Math.trunc(Rh(e,t)*n)}getShaahZmanisBasedZman(e){const t=this.sunriseMillis(Lh,this.useElevation),n=this.sunsetMillis(Lh,this.useElevation);return _h(this.getShaahZmanisBasedZmanMillis(t,n,e))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}sofZmanBiurChametzGRA(){return this.getShaahZmanisBasedZman(5)}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)}tzeit72(){const e=this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset();return e?e.add({minutes:72}):null}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)}getMidnightLastNight(){return this.plainDate.toZonedDateTime({timeZone:this.gloc.getTimeZone()})}getMidnightTonight(){return this.plainDate.add({days:1}).toZonedDateTime({timeZone:this.gloc.getTimeZone()})}getMoladBasedTime(e,t,n,r){const a=this.getMidnightLastNight(),o=this.getMidnightTonight();return Temporal.ZonedDateTime.compare(e,a)<0||Temporal.ZonedDateTime.compare(e,o)>0?null:null===t||null===n?e.withTimeZone(this.gloc.getTimeZone()):Temporal.ZonedDateTime.compare(e,t)>0&&Temporal.ZonedDateTime.compare(e,n)<0?r?n:t:e.withTimeZone(this.gloc.getTimeZone())}getSofZmanKidushLevanaBetweenMoldos(e=null,t=null){const n=this.hdate;if(n.getDate()<11||n.getDate()>16)return null;const r=new kh(n.getFullYear(),n.getMonth());return this.getMoladBasedTime(r.getSofZmanKidushLevanaBetweenMoldos(),e,t,!1)}getSofZmanKidushLevana15Days(e=null,t=null){const n=this.hdate;if(n.getDate()<11||n.getDate()>17)return null;const r=new kh(n.getFullYear(),n.getMonth());return this.getMoladBasedTime(r.getSofZmanKidushLevana15Days(),e,t,!1)}getTchilasZmanKidushLevana3Days(e=null,t=null){const n=this.hdate;if(n.getDate()>5&&n.getDate()<30)return null;const r=new kh(n.getFullYear(),n.getMonth());let a=this.getMoladBasedTime(r.getTchilasZmanKidushLevana3Days(),e,t,!0);if(null===a&&30===n.getDate()){const e=n.add(1,"week"),t=new kh(e.getFullYear(),e.getMonth());a=this.getMoladBasedTime(t.getTchilasZmanKidushLevana3Days(),null,null,!0)}return a}getZmanMolad(){const e=this.hdate;if(e.getDate()>2&&e.getDate()<27)return null;const t=new kh(e.getFullYear(),e.getMonth());let n=this.getMoladBasedTime(t.getInstant(),null,null,!0);if(null===n&&e.getDate()>26){const t=e.add(1,"week"),r=new kh(t.getFullYear(),t.getMonth());n=this.getMoladBasedTime(r.getInstant(),null,null,!0)}return n}getTchilasZmanKidushLevana7Days(e=null,t=null){const n=this.hdate;if(n.getDate()<4||n.getDate()>9)return null;const r=new kh(n.getFullYear(),n.getMonth());return this.getMoladBasedTime(r.getTchilasZmanKidushLevana7Days(),e,t,!0)}getSunriseBaalHatanya(){return this.sunriseMillis(Bh,!0)}getSunsetBaalHatanya(){return this.sunsetMillis(Bh,!0)}alosBaalHatanya(){return this.timeAtAngle(16.9,!0)}getShaahZmanisBaalHatanya(e){return _h(this.getShaahZmanisBasedZmanMillis(this.getSunriseBaalHatanya(),this.getSunsetBaalHatanya(),e))}sofZmanShmaBaalHatanya(){return this.getShaahZmanisBaalHatanya(3)}sofZmanTfilaBaalHatanya(){return this.getShaahZmanisBaalHatanya(4)}minchaGedolaBaalHatanya(){return this.getShaahZmanisBaalHatanya(6.5)}minchaKetanaBaalHatanya(){return this.getShaahZmanisBaalHatanya(9.5)}plagHaminchaBaalHatanya(){return this.getShaahZmanisBaalHatanya(10.75)}tzaisBaalHatanya(){return this.timeAtAngle(6,!1)}static formatTime(e,t){if(isNaN(e.getTime()))return"XX:XX";const n=t.format(e);return 50===n.charCodeAt(0)&&52===n.charCodeAt(1)&&58===n.charCodeAt(2)?"00"+n.substring(2):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 a=1e3*r+n;return new Date(t+(a>=3e4?6e4-a:-1*a))}static timeZoneOffset(e,t){const n=Q(e,t),r=Math.abs(n),a=r%60;return(n<0?"+":"-")+J(Math.floor(r/60))+":"+J(a)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?"0000-00-00T00:00:00Z":X(e,t).substring(0,19)+Yh.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 Yh(e,t,n).sunset();let a=new fe(t);const o=r.getTime();return isNaN(o)||t.getTime()>=o&&(a=a.next()),a}}const Zh=m.NISAN,Ph=m.IYYAR;function Uh(e){if(e<5708)return null;let t;const n=new fe(15,Zh,e).getDay();return t=0===n?2:6===n?3:e<5764?4:2===n?5:4,new fe(t,Ph,e)}class xh{constructor(e,t){e=+e,this.year=e;const n=new fe(1,m.TISHREI,e),r=this.rh=n.abs(),a=n.getDay()+1;this.firstSaturday=fe.dayOnOrBefore(6,r+6);const o=+fe.isLeapYear(e);this.il=Boolean(t);const i=function(e){const t=fe.longCheshvan(e),n=fe.shortKislev(e);return t&&!n?2:!t&&n?0:1}(e);let s=`${o}${a}${i}`;if(cl[s]?(this.theSedraArray=cl[s],this.yearKey=s):(s+=+this.il,this.theSedraArray=cl[s],this.yearKey=s),!this.theSedraArray)throw new Error(`improper sedra year type ${s} calculated for ${e}`)}find(e){if("number"==typeof e){if(e>=zh.length||e<0&&!$h(e))throw new RangeError(`Invalid parsha number: ${e}`);return this.findInternal(e)}if("string"==typeof e){const t=Fh.get(e);return"number"==typeof t?this.find(t):e.includes("-")?e===Wh||e===Kh?this.findInternal(e):this.find(e.split("-")):this.findInternal(e)}if(Array.isArray(e)){const t=e.length;if(1!==t&&2!==t||"string"!=typeof e[0])throw new TypeError(`Invalid parsha argument: ${JSON.stringify(e)}`);if(1===t)return this.find(e[0]);const n=e[0],r=e[1],a=Fh.get(n),o=Fh.get(r);if("number"!=typeof a||"number"!=typeof o||o!==a+1||!$h(-a))throw new RangeError(`Unrecognized parsha name: ${n}-${r}`);return this.find(-a)}return null}findInternal(e){const t=this.theSedraArray.indexOf(e);return-1===t?null:new fe(this.firstSaturday+7*t)}findContaining(e){const t=this.find(e);if(t)return t;if("number"==typeof e){const t=-e;return $h(t)?this.find(t):this.find(t+1)}{const t=Fh.get(e);if(t){const e=-t;return $h(e)?this.find(e):this.find(e+1)}{const[t]=e.split("-");return this.find(t)}}}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(e){const t="number"==typeof e?e:fe.isHDate(e)?e.abs():NaN;if(isNaN(t))throw new TypeError(`Bad date argument: ${e}`);if(t<this.rh)throw new RangeError(`Date ${e} before start of Hebrew year ${this.year}`);const n=fe.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,a=this.theSedraArray[r];if(void 0===a){return ll(this.year+1,this.il).lookup(n)}const o=new fe(n);if("string"==typeof a)return{parsha:[a],chag:!0,hdate:o,il:this.il,num:0};if(a>=0)return{parsha:[zh[a]],chag:!1,num:a+1,hdate:o,il:this.il};const i=Vh(a);return{parsha:[zh[i],zh[i+1]],chag:!1,num:[i+1,i+2],hdate:o,il:this.il}}lookupWeekday(e){const t="number"==typeof e?e:fe.isHDate(e)?e.abs():NaN;if(isNaN(t))throw new TypeError(`Bad date argument: ${e}`);if(t<this.rh)throw new RangeError(`Date ${e} before start of Hebrew year ${this.year}`);const n=new fe(t).getDay();if(1!==n&&4!==n)return;const r=new fe(fe.dayOnOrBefore(6,t+6)),a=this.lookup(r);return a.chag?this.findWeekdayParsha(r):a}findWeekdayParsha(e){const t=e.getFullYear(),n=this.il;if(e.getMonth()===m.TISHREI){const t=e.getDate();if(t>2&&t<=(n?22:23))return{parsha:["Vezot Haberakhah"],chag:!1,num:54,hdate:e,il:n}}const r=t===this.year?this:ll(t,n),a=new fe(1,m.TISHREI,t+1).abs()-1,o=a+30;for(let i=e.abs()+7;i<=o;i+=7){const e=(i>a?ll(t+1,n):r).lookup(i);if(!e.chag)return e}throw new Error(`can't find weekday parsha for ${e}/${n}`)}}const zh=["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","Vezot Haberakhah"],Fh=new Map;for(let e=0;e<zh.length;e++){const t=zh[e];Fh.set(t,e)}const jh=new Set([21,26,28,31,38,41,50]);function $h(e){return jh.has(-e)}function Vh(e){return-e}const Kh="Sukkot Shabbat Chol ha-Moed",Gh="Pesach",Jh="Pesach I",Wh="Pesach Shabbat Chol ha-Moed",qh="Pesach VII",Xh="Pesach VIII",Qh="Shavuot";function el(e,t){return Array.from({length:t-e+1},(t,n)=>n+e)}const tl=[51,52,Kh],nl=[52,"Yom Kippur",Kh],rl=["Rosh Hashana",52,"Sukkot","Shmini Atzeret"],al=el(0,20),ol=el(0,27),il=el(33,40),sl=el(43,49),ul=el(43,50),cl={"020":tl.concat(al,Vh(21),23,24,Wh,25,Vh(26),Vh(28),30,Vh(31),il,Vh(41),sl,Vh(50)),"0220":tl.concat(al,Vh(21),23,24,Wh,25,Vh(26),Vh(28),30,Vh(31),33,Qh,el(34,37),Vh(38),40,Vh(41),sl,Vh(50)),"0510":nl.concat(al,Vh(21),23,24,Jh,Xh,25,Vh(26),Vh(28),30,Vh(31),il,Vh(41),ul),"0511":nl.concat(al,Vh(21),23,24,Gh,25,Vh(26),Vh(28),el(30,40),Vh(41),ul),"052":nl.concat(el(0,24),qh,25,Vh(26),Vh(28),30,Vh(31),il,Vh(41),ul),"070":rl.concat(al,Vh(21),23,24,qh,25,Vh(26),Vh(28),30,Vh(31),il,Vh(41),ul),"072":rl.concat(al,Vh(21),23,24,Wh,25,Vh(26),Vh(28),30,Vh(31),il,Vh(41),sl,Vh(50)),1200:tl.concat(ol,Wh,el(28,33),Qh,el(34,37),Vh(38),40,Vh(41),sl,Vh(50)),1201:tl.concat(ol,Wh,el(28,40),Vh(41),sl,Vh(50)),1220:tl.concat(ol,Jh,Xh,el(28,40),Vh(41),ul),1221:tl.concat(ol,Gh,el(28,50)),150:nl.concat(el(0,28),qh,el(29,50)),152:nl.concat(el(0,28),Wh,el(29,49),Vh(50)),170:rl.concat(ol,Wh,el(28,40),Vh(41),sl,Vh(50)),1720:rl.concat(ol,Wh,el(28,33),Qh,el(34,37),Vh(38),40,Vh(41),sl,Vh(50))};cl["0221"]=cl["020"],cl["0310"]=cl["0220"],cl["0311"]=cl["020"],cl[1310]=cl[1220],cl[1311]=cl[1221],cl[1721]=cl[170];const hl=new fh({maxSize:120});function ll(e,t){const n=`${e}-${t?1:0}`;let r=hl.get(n);return r||(r=new xh(e,t),hl.set(n,r)),r}const dl=m.NISAN,ml=m.IYYAR,fl=m.SIVAN,gl=m.ELUL,yl=m.TISHREI,Sl=m.CHESHVAN,Al=m.SHVAT,pl=m.ADAR_II,Il=Me.CHAG,Tl=Me.LIGHT_CANDLES,Ml=Me.YOM_TOV_ENDS,vl=Me.CHUL_ONLY,wl=Me.IL_ONLY,bl=Me.LIGHT_CANDLES_TZEIS,Hl=Me.MINOR_HOLIDAY,El=Me.EREV,Nl=Me.CHOL_HAMOED,Cl="🫓",Dl="🌿🍋",kl="Rosh Hashana II",Ol="Erev Yom Kippur",_l="Yom Kippur",Ll="Erev Sukkot",Bl="Sukkot I",Rl="Sukkot II",Yl="Sukkot III (CH''M)",Zl="Sukkot IV (CH''M)",Pl="Sukkot V (CH''M)",Ul="Sukkot VI (CH''M)",xl="Shmini Atzeret",zl="Simchat Torah",Fl="Sukkot II (CH''M)",jl="Sukkot VII (Hoshana Raba)",$l="Tu BiShvat",Vl="Erev Purim",Kl="Purim",Gl="Shushan Purim",Jl="Erev Pesach",Wl="Pesach I",ql="Pesach II",Xl="Pesach II (CH''M)",Ql="Pesach III (CH''M)",ed="Pesach IV (CH''M)",td="Pesach V (CH''M)",nd="Pesach VI (CH''M)",rd="Pesach VII",ad="Pesach VIII",od="Pesach Sheni",id="Lag BaOmer",sd="Erev Shavuot",ud="Shavuot",cd="Shavuot I",hd="Shavuot II",ld="Tu B'Av",dd="Rosh Hashana LaBehemot",md="Erev Rosh Hashana",fd="Yom Yerushalayim",gd="Ben-Gurion Day",yd="Family Day",Sd="Yitzhak Rabin Memorial Day",Ad="Herzl Day",pd="Jabotinsky Day",Id="Sigd",Td="Yom HaAliyah",Md="Yom HaAliyah School Observance",vd="Hebrew Language Day",wd={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_BEHAB:"Ta'anit BeHaB",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:gd,CHANUKAH_1_CANDLE:"Chanukah: 1 Candle",EREV_PESACH:Jl,EREV_PURIM:Vl,EREV_ROSH_HASHANA:md,EREV_SHAVUOT:sd,EREV_SUKKOT:Ll,EREV_YOM_KIPPUR:Ol,FAMILY_DAY:yd,HEBREW_LANGUAGE_DAY:vd,HERZL_DAY:Ad,JABOTINSKY_DAY:pd,LAG_BAOMER:id,PESACH_I:Wl,PESACH_II:ql,PESACH_III_CHM:Ql,PESACH_II_CHM:Xl,PESACH_IV_CHM:ed,PESACH_SHENI:od,PESACH_VII:rd,PESACH_VIII:ad,PESACH_VI_CHM:nd,PESACH_V_CHM:td,PURIM:Kl,ROSH_HASHANA_II:kl,ROSH_HASHANA_LABEHEMOT:dd,SHAVUOT:ud,SHAVUOT_I:cd,SHAVUOT_II:hd,SHMINI_ATZERET:xl,SHUSHAN_PURIM:Gl,SIGD:Id,SIMCHAT_TORAH:zl,SUKKOT_I:Bl,SUKKOT_II:Rl,SUKKOT_III_CHM:Yl,SUKKOT_II_CHM:Fl,SUKKOT_IV_CHM:Zl,SUKKOT_VII_HOSHANA_RABA:jl,SUKKOT_VI_CHM:Ul,SUKKOT_V_CHM:Pl,TU_BAV:ld,TU_BISHVAT:$l,YITZHAK_RABIN_MEMORIAL_DAY:Sd,YOM_HAALIYAH:Td,YOM_HAALIYAH_SCHOOL_OBSERVANCE:Md,YOM_KIPPUR:_l,YOM_YERUSHALAYIM:fd,CANDLE_LIGHTING:"Candle lighting",HAVDALAH:"Havdalah",FAST_BEGINS:"Fast begins",FAST_ENDS:"Fast ends",BIUR_CHAMETZ:"Biur Chametz",SOF_ZMAN_ACHILAT_CHAMETZ:"Finish eating chametz",YIZKOR:"Yizkor"},bd=[{mm:yl,dd:2,desc:kl,flags:Il|Ml,emoji:"🍏🍯"},{mm:yl,dd:9,desc:Ol,flags:El|Tl},{mm:yl,dd:10,desc:_l,flags:Il|Me.MAJOR_FAST|Ml},{mm:yl,dd:14,desc:Ll,flags:vl|El|Tl,emoji:Dl},{mm:yl,dd:15,desc:Bl,flags:vl|Il|bl,emoji:Dl},{mm:yl,dd:16,desc:Rl,flags:vl|Il|Ml,emoji:Dl},{mm:yl,dd:17,desc:Yl,flags:vl|Nl,chmDay:1,emoji:Dl},{mm:yl,dd:18,desc:Zl,flags:vl|Nl,chmDay:2,emoji:Dl},{mm:yl,dd:19,desc:Pl,flags:vl|Nl,chmDay:3,emoji:Dl},{mm:yl,dd:20,desc:Ul,flags:vl|Nl,chmDay:4,emoji:Dl},{mm:yl,dd:22,desc:xl,flags:vl|Il|bl},{mm:yl,dd:23,desc:zl,flags:vl|Il|Ml},{mm:yl,dd:14,desc:Ll,flags:wl|El|Tl,emoji:Dl},{mm:yl,dd:15,desc:Bl,flags:wl|Il|Ml,emoji:Dl},{mm:yl,dd:16,desc:Fl,flags:wl|Nl,chmDay:1,emoji:Dl},{mm:yl,dd:17,desc:Yl,flags:wl|Nl,chmDay:2,emoji:Dl},{mm:yl,dd:18,desc:Zl,flags:wl|Nl,chmDay:3,emoji:Dl},{mm:yl,dd:19,desc:Pl,flags:wl|Nl,chmDay:4,emoji:Dl},{mm:yl,dd:20,desc:Ul,flags:wl|Nl,chmDay:5,emoji:Dl},{mm:yl,dd:22,desc:xl,flags:wl|Il|Ml},{mm:yl,dd:21,desc:jl,flags:Tl|Nl,chmDay:-1,emoji:Dl},{mm:Al,dd:15,desc:$l,flags:Hl,emoji:"🌳"},{mm:pl,dd:13,desc:Vl,flags:El|Hl,emoji:"🎭️📜"},{mm:pl,dd:14,desc:Kl,flags:Hl,emoji:"🎭️📜"},{mm:pl,dd:15,desc:Gl,flags:Hl,emoji:"🎭️📜"},{mm:dl,dd:14,desc:Jl,flags:wl|El|Tl,emoji:"🫓🍷"},{mm:dl,dd:15,desc:Wl,flags:wl|Il|Ml,emoji:Cl},{mm:dl,dd:16,desc:Xl,flags:wl|Nl,chmDay:1,emoji:Cl},{mm:dl,dd:17,desc:Ql,flags:wl|Nl,chmDay:2,emoji:Cl},{mm:dl,dd:18,desc:ed,flags:wl|Nl,chmDay:3,emoji:Cl},{mm:dl,dd:19,desc:td,flags:wl|Nl,chmDay:4,emoji:Cl},{mm:dl,dd:20,desc:nd,flags:wl|Nl|Tl,chmDay:5,emoji:Cl},{mm:dl,dd:21,desc:rd,flags:wl|Il|Ml,emoji:Cl},{mm:dl,dd:14,desc:Jl,flags:vl|El|Tl,emoji:"🫓🍷"},{mm:dl,dd:15,desc:Wl,flags:vl|Il|bl,emoji:"🫓🍷"},{mm:dl,dd:16,desc:ql,flags:vl|Il|Ml,emoji:Cl},{mm:dl,dd:17,desc:Ql,flags:vl|Nl,chmDay:1,emoji:Cl},{mm:dl,dd:18,desc:ed,flags:vl|Nl,chmDay:2,emoji:Cl},{mm:dl,dd:19,desc:td,flags:vl|Nl,chmDay:3,emoji:Cl},{mm:dl,dd:20,desc:nd,flags:vl|Nl|Tl,chmDay:4,emoji:Cl},{mm:dl,dd:21,desc:rd,flags:vl|Il|bl,emoji:Cl},{mm:dl,dd:22,desc:ad,flags:vl|Il|Ml,emoji:Cl},{mm:ml,dd:14,desc:od,flags:Hl},{mm:ml,dd:18,desc:id,flags:Hl,emoji:"🔥"},{mm:fl,dd:5,desc:sd,flags:El|Tl,emoji:"⛰️🌸"},{mm:fl,dd:6,desc:ud,flags:wl|Il|Ml,emoji:"⛰️🌸"},{mm:fl,dd:6,desc:cd,flags:vl|Il|bl,emoji:"⛰️🌸"},{mm:fl,dd:7,desc:hd,flags:vl|Il|Ml,emoji:"⛰️🌸"},{mm:m.AV,dd:15,desc:ld,flags:Hl,emoji:"❤️"},{mm:gl,dd:1,desc:dd,flags:Hl,emoji:"🐑"},{mm:gl,dd:29,desc:md,flags:El|Tl,emoji:"🍏🍯"}],Hd=[{firstYear:5727,mm:ml,dd:28,desc:fd,chul:!0},{firstYear:5737,mm:m.KISLEV,dd:6,desc:gd,satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:Al,dd:30,desc:yd},{firstYear:5758,mm:Sl,dd:12,desc:Sd,friSatMovetoThu:!0},{firstYear:5764,mm:ml,dd:10,desc:Ad,satPostponeToSun:!0},{firstYear:5765,mm:m.TAMUZ,dd:29,desc:pd,satPostponeToSun:!0},{firstYear:5769,mm:Sl,dd:29,desc:Id,chul:!0,suppressEmoji:!0,friSatMovetoThu:!0},{firstYear:5777,mm:dl,dd:10,desc:Td,chul:!0},{firstYear:5777,mm:Sl,dd:7,desc:Md},{firstYear:5773,mm:m.TEVET,dd:21,desc:vd,friSatMovetoThu:!0}];class Ed extends He{constructor(e,t,n=0,r){super(e,t,n,r),"object"==typeof r&&null!==r&&Object.assign(this,r)}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(){const e=this.greg().getFullYear();if(e<100||e>2999)return;const t="https://www.hebcal.com/holidays/"+Hh(this.basename())+"-"+this.urlDateSuffix();return this.hasFlag("IL_ONLY")?t+"?i=on":t}urlDateSuffix(){const e=this.greg().getFullYear();return String(e)}getEmoji(){return this.emoji?this.emoji:this.hasFlag("SPECIAL_SHABBAT")?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;switch(this.getDesc()){case wd.LAG_BAOMER:case wd.LEIL_SELICHOT:case wd.PESACH_SHENI:case wd.EREV_PURIM:case wd.PURIM_KATAN:case wd.SHUSHAN_PURIM:case wd.TU_BAV:case wd.TU_BISHVAT:case wd.ROSH_HASHANA_LABEHEMOT:return["holiday","minor"]}return["holiday","major"]}render(e){return bh(super.render(e))}renderBrief(e){return bh(super.renderBrief(e))}}class Nd extends Ed{urlDateSuffix(){return ee(this.greg()).replaceAll("-","")}}const Cd=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];class Dd extends Ed{constructor(e,t,n,r){if(super(e,t,n),this.chanukahDay=r,this.emoji="🕎",8!==r){const e=r?r+1:1;this.emoji+=Cd[e]}}urlDateSuffix(){const e=this.greg();let t=e.getFullYear();return 0===e.getMonth()&&t--,String(t)}}class kd extends Ed{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return se.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const Od="Rosh Chodesh";class _d extends Ed{constructor(e,t){super(e,`${Od} ${t}`,Me.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=bh(se.gettext(t,e));return se.gettext(Od,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}const Ld="Yom Kippur Katan";class Bd extends Ed{constructor(e,t){super(e,`${Ld} ${t}`,Me.MINOR_FAST|Me.YOM_KIPPUR_KATAN),this.nextMonthName=t,this.memo=`Minor Day of Atonement on the day preceeding Rosh Chodesh ${t}`}basename(){return this.getDesc()}render(e){const t=bh(se.gettext(this.nextMonthName,e));return se.gettext(Ld,e)+" "+t}renderBrief(e){return se.gettext(Ld,e)}url(){}}function Rd(e,t){const n=fe.isHDate(e)?e:new fe(e),r=n.toString(),a=lm(n.getFullYear()).get(r);if(void 0===t||void 0===a)return a;return a.filter(e=>e.observedIn(t))}const Yd=Me.CHAG,Zd=Me.IL_ONLY,Pd=Me.LIGHT_CANDLES_TZEIS,Ud=Me.CHANUKAH_CANDLES,xd=Me.BEHAB,zd=Me.MINOR_FAST,Fd=Me.SPECIAL_SHABBAT,jd=Me.MODERN_HOLIDAY,$d=Me.MAJOR_FAST,Vd=Me.MINOR_HOLIDAY,Kd=Me.EREV,Gd=0,Jd=2,Wd=4,qd=5,Xd=6,Qd=m.NISAN,em=m.IYYAR,tm=m.TAMUZ,nm=m.AV,rm=m.TISHREI,am=m.CHESHVAN,om=m.KISLEV,im=m.TEVET,sm=m.ADAR_I,um=m.ADAR_II,cm={emoji:"🇮🇱"},hm=new fh({maxSize:120});function lm(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=hm.get(e);if(t)return t;const n=new fe(1,rm,e),r=new fe(15,Qd,e),a=new Map;function o(...e){for(const t of e){const e=t.date.toString(),n=a.get(e);"object"==typeof n?n[0].hasFlag("EREV")?n.unshift(t):n.push(t):a.set(e,[t])}}for(const t of bd){const n=new fe(t.dd,t.mm,e),r={};t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay);o(new Ed(n,t.desc,t.flags,r))}o(new kd(n,e,Yd|Pd));const i=n.getDay()===Wd?4:3;o(new Ed(new fe(i,rm,e),wd.TZOM_GEDALIAH,zd)),o(new Ed(new fe(fe.dayOnOrBefore(Xd,7+n.abs())),wd.SHABBAT_SHUVA,Fd));const s=fe.shortKislev(e)?new fe(1,im,e):new fe(30,om,e);o(new Ed(s,wd.CHAG_HABANOT,Vd)),o(new Dd(new fe(24,om,e),wd.CHANUKAH_1_CANDLE,Kd|Vd|Ud,void 0));for(let t=2;t<=8;t++){const n=new fe(23+t,om,e);o(new Dd(n,`Chanukah: ${t} Candles`,Vd|Ud,t-1))}o(new Dd(new fe(32,om,e),wd.CHANUKAH_8TH_DAY,Vd,8)),o(new Nd(new fe(10,im,e),wd.ASARA_BTEVET,zd));const u=r.abs();o(new Ed(new fe(fe.dayOnOrBefore(Xd,u-43)),wd.SHABBAT_SHEKALIM,Fd),new Ed(new fe(fe.dayOnOrBefore(Xd,u-30)),wd.SHABBAT_ZACHOR,Fd),new Ed(new fe(u-(r.getDay()===Jd?33:31)),wd.TAANIT_ESTHER,zd));const c=fe.dayOnOrBefore(Xd,u-14);o(new Ed(new fe(c-7),wd.SHABBAT_PARAH,Fd),new Ed(new fe(c),wd.SHABBAT_HACHODESH,Fd),new Ed(new fe(fe.dayOnOrBefore(Xd,u-1)),wd.SHABBAT_HAGADOL,Fd),new Ed(r.prev().getDay()===Xd?r.onOrBefore(Wd):new fe(14,Qd,e),wd.TAANIT_BECHOROT,zd)),o(new Ed(new fe(fe.dayOnOrBefore(Xd,new fe(1,rm,e+1).abs()-4)),wd.LEIL_SELICHOT,Vd,{emoji:"🕍"})),r.getDay()===Gd&&o(new Ed(new fe(16,um,e),wd.PURIM_MESHULASH,Vd)),fe.isLeapYear(e)&&(o(new Ed(new fe(14,sm,e),wd.PURIM_KATAN,Vd,{emoji:"🎭️"})),o(new Ed(new fe(15,sm,e),wd.SHUSHAN_PURIM_KATAN,Vd,{emoji:"🎭️"})));const h=function(e){if(e<5711)return null;let t=new fe(27,Zh,e);return 5===t.getDay()?t=new fe(26,Zh,e):0===t.getDay()&&(t=new fe(28,Zh,e)),t}(e);h&&o(new Ed(h,wd.YOM_HASHOAH,jd));const l=Uh(e);l&&o(new Ed(l,wd.YOM_HAZIKARON,jd,cm),new Ed(l.next(),wd.YOM_HAATZMA_UT,jd,cm));for(const t of Hd)if(e>=t.firstYear){let n=new fe(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||r!==qd&&r!==Xd?t.friPostponeToSun&&r===qd?n=new fe(n.abs()+2):t.satPostponeToSun&&r===Xd&&(n=n.next()):n=n.onOrBefore(Wd);const a=t.chul?jd:jd|Zd,i=new Ed(n,t.desc,a);t.suppressEmoji||(i.emoji="🇮🇱"),o(i)}let d,f=new fe(17,tm,e);f.getDay()===Xd&&(f=new fe(18,tm,e),d={observed:!0}),o(new Ed(f,wd.TZOM_TAMMUZ,zd,d));let g,y=new fe(9,nm,e),S=wd.TISHA_BAV;y.getDay()===Xd&&(y=y.next(),g={observed:!0},S+=" (observed)");const A=y.abs();o(new Ed(new fe(fe.dayOnOrBefore(Xd,A)),wd.SHABBAT_CHAZON,Fd),new Ed(y.prev(),wd.EREV_TISHA_BAV,Kd|$d,g),new Ed(y,S,$d,g),new Ed(new fe(fe.dayOnOrBefore(Xd,A+7)),wd.SHABBAT_NACHAMU,Fd));const p=fe.monthsInYear(e);for(let t=1;t<=p;t++){const n=fe.getMonthName(t,e);30===(t===Qd?fe.daysInMonth(fe.monthsInYear(e-1),e-1):fe.daysInMonth(t-1,e))?(o(new _d(new fe(1,t,e),n)),o(new _d(new fe(30,t-1,e),n))):t!==rm&&o(new _d(new fe(1,t,e),n))}for(let t=m.IYYAR;t<=p;t++){const n=t+1;if(n===rm||n===m.CHESHVAN||n===im)continue;let r=new fe(29,t,e);const a=r.getDay();a!==qd&&a!==Xd||(r=r.onOrBefore(Wd));const i=fe.getMonthName(n,e);o(new Bd(r,i))}for(const t of[am,em]){const n=new fe(1,t,e);let r=new fe(fe.dayOnOrBefore(Xd,n.abs()+6));r.abs()===n.abs()&&(r=new fe(r.abs()+7));const a=[2,5,9].map(e=>new fe(r.abs()+e));t===em&&14===a[2].getDate()&&(a[2]=new fe(17,em,e));for(const e of a)o(new Ed(e,wd.TAANIT_BEHAB,zd|xd))}const I=ll(e,!1).find(15);o(new Ed(I,wd.SHABBAT_SHIRAH,Fd));const T=function(e){const t=fe.isLeapYear(e),n=t?um:Qd,r=t?20:1,a=fe.hebrew2abs(e,n,r);for(let e=0;e<=40;e++){const t=a+e;if((t+1373429)%10227==172)return t}return 0}(e);if(T){const e=new fe(T);o(new Ed(e,wd.BIRKAT_HACHAMAH,Vd,{emoji:"☀️"}))}return hm.set(e,a),a}const dm=m.NISAN,mm=m.SIVAN,fm=m.TAMUZ,gm=m.AV;const ym=wd.HAVDALAH,Sm=wd.CANDLE_LIGHTING;class Am extends He{constructor(e,t,n,r,a,o,i){super(e,t,n),this.eventTime=Yh.roundTime(r),this.location=a;const s=a.getTimeFormatter();this.eventTimeStr=Yh.formatTime(this.eventTime,s);const u={...i,location:a};this.fmtTime=Ih(this.eventTimeStr,"pm",u),void 0!==o&&(this.linkedEvent=o)}render(e){return se.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return se.gettext(this.getDesc(),e)}getCategories(){switch(this.getDesc()){case Sm:return["candles"];case ym:return["havdalah"];case wd.FAST_BEGINS:case wd.FAST_ENDS:return["zmanim","fast"];case wd.SOF_ZMAN_ACHILAT_CHAMETZ:return["zmanim","achilasChametz"];case wd.BIUR_CHAMETZ:return["zmanim","biurChametz"]}return["unknown"]}}class pm extends Am{constructor(e,t,n,r,a,o){super(e,Sm,t,n,r,a,o)}getEmoji(){return"🕯️"}}class Im extends Am{constructor(e,t,n,r,a,o,i){super(e,ym,t,n,r,o,i),a&&(this.havdalahMins=a)}render(e){return this.renderBrief(e)+": "+this.fmtTime}renderBrief(e){let t=se.gettext(this.getDesc(),e);if(this.havdalahMins){const n=se.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}const Tm=Me.LIGHT_CANDLES,Mm=Me.LIGHT_CANDLES_TZEIS;function vm(e,t,n,r,a){let o=!1,i=a,s=e?e.mask:Tm;void 0!==e?r||(e.hasAnyFlag("LIGHT_CANDLES_TZEIS","CHANUKAH_CANDLES")?i=!0:e.hasFlag("YOM_TOV_ENDS")&&(o=!0,i=!0)):a&&(o=!0,s=Mm);const u=Number(i?n.havdalahMins:n.candleLightingMins),c=n.location,h=Boolean(n.useElevation),l=new Yh(c,t,h),d=i&&!u?l.tzeit(n.havdalahDeg):l.sunsetOffset(u,!0);if(!isNaN(d.getTime()))return o?new Im(t,s,d,c,n.havdalahMins,e,n):(s|=Tm,new pm(t,s,d,c,e,n))}const wm=wd.FAST_BEGINS,bm=wd.FAST_ENDS;function Hm(e,t,n){if(t)return e.tzeit(6.45);const r=n.fastEndMins;if("number"==typeof r&&0!==r)return e.sunsetOffset(Math.abs(r),!0);const a=n.fastEndDeg;return"number"==typeof a&&0!==a?e.tzeit(Math.abs(a)):n.il?e.sunsetOffset(15,!0):e.tzeit(7.0833333)}class Em extends Ed{constructor(e,t,n){super(e.getDate(),e.getDesc(),e.mask),this.linkedEvent=e,this.startEvent=t,this.endEvent=n}render(e){return this.linkedEvent.render(e)}renderBrief(e){return this.linkedEvent.renderBrief(e)}urlDateSuffix(){return this.linkedEvent.urlDateSuffix()}url(){return this.linkedEvent.url()}getEmoji(){return this.linkedEvent.getEmoji()}getCategories(){return this.linkedEvent.getCategories()}}function Nm(e,t,n,r){const a=r.location,o=e.getDate();return new Am(o,n,e.mask,t,a,e,r)}class Cm extends Dd{constructor(e,t,n){super(e.getDate(),e.getDesc(),e.mask,e.chanukahDay),this.eventTime=Yh.roundTime(t);const r=n.getTimeFormatter();this.eventTimeStr=Yh.formatTime(this.eventTime,r),this.location=n,this.emoji=e.emoji}}var Dm={ps67lines:["אֱלֹהִים יְחָנֵּנוּ וִיבָרְכֵנוּ יָאֵר־פָּנָיו אִתָּנוּ סֶלָה","לָדַעַת בָּאָרֶץ דַּרְכֶּךָ בְּכָל־גּוֹיִם יְשׁוּעָתֶךָ","יוֹדוּךָ עַמִּים אֱלֹהִים יוֹדוּךָ עַמִּים כֻּלָּם","יִשְׂמְחוּ וִירַנְּנוּ לְאֻמִּים כִּי־תִשְׁפֹּט עַמִּים מִישׁוֹר וּלְאֻמִּים בָּאָרֶץ תַּנחֵם סֶלָה","יוֹדוּךָ עַמִּים אֱלֹהִים יוֹדוּךָ עַמִּים כֻּלָּם","אֶרֶץ נָתְנָה יְבוּלָהּ יְבָרְכֵנוּ אֱלֹהִים אֱלֹהֵינוּ","יְבָרְכֵנוּ אֱלֹהִים וְיִירְאוּ אוֹתוֹ כָּל־אַפְסֵי־אָרֶץ"],lamnatzeachLetters:"ישמחווירננולאמיםכיתשפוטעמיםמישורולאמיםבארץתנחםסלה",anaBekoach:["אָנָּא","בְּכֹחַ","גְּדֻלַּת","יְמִינְךָ","תַּתִּיר","צְרוּרָה","אב״ג ית״ץ","קַבֵּל","רִנַּת","עַמְּךָ","שַׂגְּבֵנוּ","טַהֲרֵנוּ","נוֹרָא","קר״ע שט״ן","נָא","גִבּוֹר","דּוֹרְשֵׁי","יִחוּדְךָ","כְּבָבַת","שָׁמְרֵם","נג״ד יכ״ש","בָּרְכֵם","טַהֲרֵם","רַחֲמֵי","צִדְקָתְךָ","תָּמִיד","גָּמְלֵם","בט״ר צת״ג","חֲסִין","קָדוֹשׁ","בְּרֹב","טוּבְךָ","נַהֵל","עֲדָתֶךָ","חק״ב תנ״ע","יָחִיד","גֵּאֶה","לְעַמְּךָ","פְּנֵה","זוֹכְרֵי","קְדֻשָּׁתֶךָ","יג״ל פז״ק","שַׁוְעָתֵנוּ","קַבֵּל","וּשְׁמַע","צַעֲקָתֵנוּ","יוֹדֵעַ","תַּעֲלוּמוֹת","שק״ו צי״ת"]};const km={en:{infix:"within ",infix26:"within ",words:["","Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"],pfxWords:null},he:{infix:null,infix26:null,words:["","חֶֽסֶד","גְּבוּרָה","תִּפְאֶֽרֶת","נֶּֽצַח","הוֹד","יְּסוֹד","מַלְכוּת"],pfxWords:["","שֶׁבְּחֶֽסֶד","שֶׁבִּגְבוּרָה","שֶׁבְּתִפְאֶֽרֶת","שֶׁבְּנֶֽצַח","שֶׁבְּהוֹד","שֶׁבִּיְסוֹד","שֶׁבְּמַלְכוּת"]},translit:{infix:"sheb'",infix26:"shebi",words:["","Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"],pfxWords:null}};function Om(e){return[Math.floor((e-1)/7)+1,e%7||7]}const _m=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],Lm=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],Bm="שְׁנֵי",Rm="יָמִים",Ym=Bm+" "+Rm,Zm="שָׁבוּעוֹת",Pm="יוֹם",Um=Pm+" "+Lm[1],xm="עָשָׂר";const zm=Dm.anaBekoach,Fm=Dm.ps67lines.flatMap(e=>e.split(/[ ־]/)),jm=Dm.lamnatzeachLetters.split("");class $m extends He{constructor(e,t){super(e,`Omer ${t}`,Me.OMER_COUNT),function(e){if(e<1||e>49)throw new RangeError(`Invalid Omer day ${e}`)}(t),this.weekNumber=Math.floor((t-1)/7)+1,this.daysWithinWeeks=t%7||7,this.omer=t}sefira(e="en"){"he"!==e&&"translit"!==e&&(e="en");const[t,n]=Om(this.omer),r=km[e],a=r.pfxWords,o=r.words,i=a?a[t]:o[t];return(o[n]+" "+(a?"":2===t||6===t?r.infix26:r.infix)+i).normalize()}render(e){const t=se.isHebrewLocale(e),n=this.omer;return(t?V(n):se.ordinal(n,e))+" "+se.gettext("day of the Omer",e)}renderBrief(e){return se.gettext("Omer",e)+" "+se.gettext("day",e)+" "+this.omer}getEmoji(){if("string"==typeof this.emoji)return this.emoji;let e;const t=this.omer;return e=t<=20?9312+t-1:t<=35?12881+t-21:12977+t-36,String.fromCodePoint(e)}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){e=(e||"en").toLowerCase();const t=se.isHebrewLocale(e)?function(e){const t=Math.floor(e/10),n=e%10;let r="הַיּוֹם ";if(11===e?r+="אַחַד "+xm:12===e?r+="שְׁנֵים "+xm:12<e&&e<20?r+=Lm[n]+" "+xm:e>9&&(r+=Lm[n],n&&(r+=" ",r+=3===t?"וּ":"וְ")),e>2?((e>20||10===e||20===e)&&(r+=_m[t]),r+=e<11?Lm[n]+" "+Rm+" ":" יוֹם "):r+=1===e?Um+" ":Ym+" ",e>6){r=r.trim(),r+=", שֶׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?Lm[t]+" "+Zm+" ":1===t?"שָׁבֽוּעַ "+Lm[1]+" ":Bm+" "+Zm+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?Lm[n]+" "+Rm+" ":1===n?Um+" ":Ym+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(this.omer):function(e){const[t,n]=Om(e);let r=`Today is ${e} ${1===e?"day":"days"}`;if(t>1||7===e){const e=7===n,a=e?t:t-1;r+=`, which are ${a} ${1===a?"week":"weeks"}`,e||(r+=` and ${n} ${1===n?"day":"days"}`)}return r+" of the Omer"}(this.omer);return"he-x-nonikud"===e?se.hebrewStripNikkud(t):t}url(){const e=this.getDate().getFullYear();if(!(e<5e3||e>6759))return`https://www.hebcal.com/omer/${e}/${this.omer}`}getLamnatzeachWord(){return Fm[this.omer-1]}getLamnatzeachLetter(){return jm[this.omer-1]}getAnaBekoachWord(){return zm[this.omer-1].normalize()}}function Vm(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}const Km={shacharit:!1,mincha:!1,allCongs:!1};function Gm(e,t){return Jm(e,t,!0)}function Jm(e,t,n){const r=function(e,t){const n=fe.isLeapYear(e),r=fe.monthsInYear(e);let a=new fe(9,m.AV,e);6===a.getDay()&&(a=a.next());let o=new fe(15,m.ADAR_II,e);6===o.getDay()&&(o=o.next());const i=[new fe(2,m.TISHREI,e)].concat(Vm(1,r).map(t=>new fe(1,t,e)),Vm(1,r).filter(t=>30===fe.daysInMonth(t,e)).map(t=>new fe(30,t,e)),Vm(1,fe.daysInMonth(m.NISAN,e)).map(t=>new fe(t,m.NISAN,e)),new fe(18,m.IYYAR,e),Vm(1,8-(t?1:0)).map(t=>new fe(t,m.SIVAN,e)),a,new fe(15,m.AV,e),new fe(29,m.ELUL,e),Vm(9,24-(t?1:0)).map(t=>new fe(t,m.TISHREI,e)),Vm(25,33).map(t=>new fe(t,m.KISLEV,e)),new fe(15,m.SHVAT,e),new fe(14,m.ADAR_II,e),o,n?new fe(14,m.ADAR_I,e):[]),s=[new fe(14,m.IYYAR,e)].concat(Vm(1,13).map(t=>new fe(t,m.SIVAN,e)),Vm(20,31).map(t=>new fe(t,m.TISHREI,e)),e>=5708?Uh(e).next():[],e>=5727?new fe(28,m.IYYAR,e):[]),u=[new fe(29,m.ELUL,e-1),new fe(9,m.TISHREI,e),new fe(14,m.IYYAR,e)];return{none:i.map(e=>e.abs()).sort((e,t)=>e-t),some:s.map(e=>e.abs()).sort((e,t)=>e-t),yesPrev:u.map(e=>e.abs()).sort((e,t)=>e-t)}}(e.yy,t),a=e.abs();if(r.none.includes(a))return Km;const o=e.getDay(),i={shacharit:!1,mincha:!1,allCongs:!1};r.some.includes(a)||(i.allCongs=!0),6!==o&&(i.shacharit=!0);const s=a+1;if(n&&!r.yesPrev.includes(s)){const e=Jm(new fe(s),t,!1);i.mincha=e.shacharit}else i.mincha=5!==o;return!i.allCongs||i.mincha||i.shacharit?i:Km}class Wm extends He{constructor(e){if(1!==arguments.length)throw new TypeError(`ParshaEvent constructor takes a single SedraResult argument; got ${arguments.length} arguments`);if("object"!=typeof e||null===e||!Array.isArray(e.parsha)||0===e.parsha.length||e.parsha.length>2||!fe.isHDate(e.hdate))throw new TypeError(`Invalid SedraResult argument: ${JSON.stringify(e)}`);const t="Parashat "+e.parsha.join("-");super(e.hdate,t,Me.PARSHA_HASHAVUA),this.p=e}render(e){return function(e,t){let n=se.gettext(e[0],t);2===e.length&&(n+=(se.isHebrewLocale(t)?"־":"-")+se.gettext(e[1],t));return n=bh(n),(se.gettext("Parashat",t)+" "+n).normalize()}(this.p.parsha,e)}basename(){return this.p.parsha.join("-")}url(){const e=this.greg().getFullYear();if(e<100||e>2999)return;const t=this.urlDateSuffix(),n="https://www.hebcal.com/sedrot/"+Hh(this.basename())+"-"+t;return this.p.il?n+"?i=on":n}urlDateSuffix(){return ee(this.greg()).replaceAll("-","")}get parsha(){return this.p.parsha}}const qm=m.TISHREI;function Xm(e){if("number"==typeof e)return e;if(u(e))return h(e);if(fe.isHDate(e))return e.abs();throw new TypeError(`Invalid date type: ${e}`)}const Qm=2e3;function ef(e){const t=void 0!==e.start,n=void 0!==e.end;if(t!==n)throw new TypeError("options.start requires options.end");if(t&&n){const t=Xm(e.start),n=Xm(e.end);if(n-t>73e4)throw new RangeError("Date range exceeds 2000 years");return[t,n]}const r=Boolean(e.isHebrewYear),a=function(e){return void 0!==e.year?Number(e.year):e.isHebrewYear?(new fe).getFullYear():(new Date).getFullYear()}(e);if(isNaN(a))throw new RangeError(`Invalid year ${e.year}`);if(r&&a<1)throw new RangeError(`Invalid Hebrew year ${a}`);const o=function(e){if(e.month){if(e.isHebrewYear)return fe.monthNum(e.month);if("number"==typeof e.month)return e.month}return NaN}(e),i=Number(e.numYears)||1;if(i>Qm)throw new RangeError("options.numYears exceeds 2000");return r?function(e,t,n){const r=new fe(1,e||qm,t);let a=r.abs();const o=e?a+r.daysInMonth():new fe(1,qm,t+n).abs()-1;!e&&t>1&&a--;return[a,o]}(o,a,i):function(e,t,n){const r=e?e-1:0,a=new Date(t,r,1);t<100&&a.setFullYear(t);const o=h(a);let i;if(e)i=o+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[o,i]}(o,a,i)}const tf=new Map;class nf{static addCalendar(e,t,n){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);tf.set(e.toLowerCase(),{fn:t,startDate:n})}static lookup(e,t,n){const r=tf.get(e.toLowerCase());return"object"==typeof r?r.fn(t,n):null}static getStartDate(e){const t=tf.get(e.toLowerCase());if("object"==typeof t)return t.startDate}static has(e){return tf.has(e.toLowerCase())}static getCalendars(){return Array.from(tf.keys())}}const rf="Shabbat Mevarchim Chodesh";class af extends He{constructor(e,t,n,r){if(super(e,`${rf} ${t}`,Me.SHABBAT_MEVARCHIM),this.monthName=se.gettext(t,r),n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n===fe.monthsInYear(t)?m.NISAN:n+1,a=new kh(t,r);this.memo=a.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=bh(se.gettext(this.monthName,e));return se.gettext(rf,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}function of(e={}){!function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof Ah))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");if("number"==typeof e.fastEndDeg&&"number"==typeof e.fastEndMins)throw new TypeError("options.fastEndDeg and options.fastEndMins are mutually exclusive");const n=e.candleLightingMins;let r="number"!=typeof n||isNaN(n)?18:Math.trunc(n);t.getIsrael()&&18===Math.abs(r)&&(r=function(e){const t=e.getGeoId();if(t){const e=Pf[t];if("number"==typeof e)return e}const n=e.getShortName();if(n){const e=Zf[n];if("number"==typeof e)return e}return 20}(t));e.candleLightingMins=-1*Math.abs(r),"number"==typeof e.havdalahMins?e.havdalahMins=Math.trunc(Math.abs(e.havdalahMins)):"number"==typeof e.havdalahDeg?e.havdalahDeg=Math.abs(e.havdalahDeg):e.havdalahDeg=Uf;"number"==typeof e.fastEndDeg&&(e.fastEndDeg=Math.abs(e.fastEndDeg));"number"==typeof e.fastEndMins&&(e.fastEndMins=Math.trunc(Math.abs(e.fastEndMins)))}(e={...e});const t=e.location=e.location||xf,n=e.il=e.il||t.getIsrael()||!1,r="number"==typeof e.mask;if(e.mask=function(e){if("number"==typeof e.mask)return function(e){const t=e.mask||0;t&Mf&&delete e.noRoshChodesh;t&If&&delete e.noModern;t&Af&&delete e.noMinorFast;t&pf&&delete e.noSpecialShabbat;t&vf&&(e.sedrot=!0);t&(wf|bf|Hf|Ef)&&(e.dailyLearning=e.dailyLearning||{},t&wf&&(e.dailyLearning.dafYomi=!0),t&bf&&(e.dailyLearning.mishnaYomi=!0),t&Hf&&(e.dailyLearning.nachYomi=!0),t&Ef&&(e.dailyLearning.yerushalmi=1));t&Nf&&(e.omer=!0);t&Cf&&(e.shabbatMevarchim=!0);t&_f&&(e.yomKippurKatan=!0);t&Bf&&(e.behab=!0);t&Lf&&(e.yizkor=!0);return t}(e);const t=e.il||e.location?.getIsrael()||!1;let n=0;e.noHolidays||(n|=Mf|mf|Af|pf|If|Tf|Df|kf|Of|df|yf|Sf);e.candlelighting&&(n|=df|yf|mf);e.noRoshChodesh&&(n&=~Mf);e.noModern&&(n&=~If);e.noMinorFast&&(n&=~Af);e.noSpecialShabbat&&(n&=~pf,n&=~Cf);n|=t?gf:ff;e.sedrot&&(n|=vf);e.omer&&(n|=Nf);e.shabbatMevarchim&&(n|=Cf);e.yomKippurKatan&&(n|=_f);e.behab&&(n|=Bf);e.yizkor&&(n|=Lf);const r=e.dailyLearning;"object"==typeof r&&null!==r&&(r.dafYomi&&(n|=wf),r.mishnaYomi&&(n|=bf),r.nachYomi&&(n|=Hf),r.yerushalmi&&(n|=Ef));return n}(e),e.locale){const t=e.locale;if(t&&"string"!=typeof t)throw new TypeError(`Invalid options.locale: ${t}`);if(!se.hasLocale(t))throw new TypeError(`Locale '${t}' not found; did you forget to import @hebcal/locales?`)}else e.ashkenazi?e.locale="ashkenazi":e.locale="en";const a=[];let o,i,s=-1,u=-1,c=-1;const h=ef(e);!function(e){for(const t of Object.keys(e))void 0!==Yf[t]||Rf.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),Rf.add(t));if(e.dailyLearning)for(const[t,n]of Object.entries(e.dailyLearning)){const e=jf(t,n);Rf.has(t)||nf.has(e)||(console.warn(`Ignoring unrecognized DailyLearning calendar: ${t}`),Rf.add(t))}}(e);const d=h[0],f=h[1],g=l(d).getFullYear();(g<100||g>9999)&&(e.candlelighting=!1,e.sedrot=!1,e.dailyLearning={});for(let t=d;t<=f;t++){const h=new fe(t),l=h.getFullYear();l!==c&&(c=l,i=lm(c),e.sedrot&&(o=ll(c,n)),e.omer&&(s=fe.hebrew2abs(c,cf,16),u=fe.hebrew2abs(c,hf,5)));const d=a.length,f=h.getDay(),g=f===sf,y=f===uf;let S;const A=(i.get(h.toString())||[]).filter(e=>e.observedIn(n));for(const t of A)S=zf(S,a,t,e,g,y,r);const p=h.getMonth(),I=h.getDate();if(g&&e.candlelighting&&p===m.NISAN&&13===I){const t=Kf(h,e);t&&a.push(t)}if(e.sedrot&&y){const e=o.lookup(t);e.chag||a.push(new Wm(e))}if(e.yizkor&&(p===m.TISHREI&&(10===I||22===I)||p===cf&&I===(n?21:22)||p===hf&&I===(n?6:7))){const e=A[0],t=new He(h,wd.YIZKOR,Me.YIZKOR,{emoji:"🕯️",linkedEvent:e});a.push(t)}const T=e.dailyLearning;let M=0;if("object"==typeof T&&null!==T){const e=$f(h,T,n);M=e.length,M&&a.push(...e)}if(e.omer&&t>=s&&t<=u){const n=Vf(h,t-s+1,e);a.push(n)}if(y&&(e.molad||e.shabbatMevarchim)){const t=Ff(h,e);a.push(...t)}if(!S&&e.candlelighting&&(g||y)&&(S=vm(void 0,h,e,g,y),g&&S&&o)){const n=o.lookup(t);if(n.chag)S.memo=se.gettext(n.parsha[0],e.locale);else{const t=new Wm(n);S.memo=t.render(e.locale)}}if(S instanceof Im&&(0===e.havdalahMins||0===e.havdalahDeg)&&(S=void 0),S&&a.push(S),e.addHebrewDates||e.addHebrewDatesForEvents&&d!==a.length-M){const e=new Ee(h);d===a.length?a.push(e):a.splice(d,0,e)}}return a}const sf=5,uf=6,cf=m.NISAN,hf=m.SIVAN,lf=m.ELUL,df=Me.LIGHT_CANDLES,mf=Me.YOM_TOV_ENDS,ff=Me.CHUL_ONLY,gf=Me.IL_ONLY,yf=Me.LIGHT_CANDLES_TZEIS,Sf=Me.CHANUKAH_CANDLES,Af=Me.MINOR_FAST,pf=Me.SPECIAL_SHABBAT,If=Me.MODERN_HOLIDAY,Tf=Me.MAJOR_FAST,Mf=Me.ROSH_CHODESH,vf=Me.PARSHA_HASHAVUA,wf=Me.DAF_YOMI,bf=Me.MISHNA_YOMI,Hf=Me.NACH_YOMI,Ef=Me.YERUSHALMI_YOMI,Nf=Me.OMER_COUNT,Cf=Me.SHABBAT_MEVARCHIM,Df=Me.MINOR_HOLIDAY,kf=Me.EREV,Of=Me.CHOL_HAMOED,_f=Me.YOM_KIPPUR_KATAN,Lf=Me.YIZKOR,Bf=Me.BEHAB,Rf=new Set,Yf={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,fastEndDeg:1,fastEndMins:1,sedrot:1,il:1,noMinorFast:1,noModern:1,shabbatMevarchim:1,noRoshChodesh:1,noSpecialShabbat:1,noHolidays:1,omer:1,molad:1,ashkenazi:1,locale:1,addHebrewDates:1,addHebrewDatesForEvents:1,mask:1,yomKippurKatan:1,behab:1,hour12:1,dailyLearning:1,useElevation:1,yizkor:1};const Zf={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},Pf={281184:40,294801:30,293067:30},Uf=8.5;const xf=new Ah(0,0,!1,"UTC");function zf(e,t,n,r,a,o,i){const s=r.il||!1;if(!n.observedIn(s))return e;const u=n.mask,c=n.hasFlag("YOM_KIPPUR_KATAN"),h=n.hasFlag("BEHAB");if(!r.yomKippurKatan&&c||!r.behab&&h||r.noModern&&n.hasFlag("MODERN_HOLIDAY"))return e;if(r.candlelighting&&n.getDesc()===wd.EREV_PESACH){const e=function(e,t){const n=[],r=t.location,a=Boolean(t.useElevation),o=e.getDate(),i=new Yh(r,o,a).sofZmanTfilla();if(isNaN(i.getTime()))return[];const s=new Am(o,wd.SOF_ZMAN_ACHILAT_CHAMETZ,0,i,r,void 0,t);if(s.emoji="🍞",n.push(s),o.getDay()!==uf){const e=Kf(o,t);e&&n.push(e)}return n}(n,r);e.length&&t.push(...e)}const l=n.hasFlag("MAJOR_FAST"),d=n.hasFlag("MINOR_FAST"),f=n.hasFlag("CHANUKAH_CANDLES"),g=n.hasAnyFlag("LIGHT_CANDLES","LIGHT_CANDLES_TZEIS","CHANUKAH_CANDLES","YOM_TOV_ENDS");let y;if(r.candlelighting&&(l||d)&&n.getDesc()!==wd.YOM_KIPPUR&&(n=y=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)throw new RangeError("YK does not require this function");const r=e.getDate(),a=r.greg(),o=t.location,i=Boolean(t.useElevation),s=new Yh(o,a,i);let u,c;if("Erev Tish'a B'Av"===n){const n=s.sunset();isNaN(n.getTime())||(u=Nm(e,n,wm,t))}else if(n.startsWith("Tish'a B'Av")){const n=Hm(s,!0,t);isNaN(n.getTime())||(c=Nm(e,n,bm,t))}else{const n=s.alotHaShachar();if(isNaN(n.getTime())||(u=Nm(e,n,wm,t)),5!==a.getDay()&&(14!==r.getDate()||r.getMonth()!==m.NISAN)){const n=Hm(s,!1,t);isNaN(n.getTime())||(c=Nm(e,n,bm,t))}}const h=new Em(e,u,c);return Object.assign(h,e),h}(n,r),y.startEvent&&(l||d&&!r.noMinorFast)&&t.push(y.startEvent)),u&Number(r.mask)||!u&&!i){if(r.candlelighting&&g){const t=n.getDate();if(e=vm(n,t,r,a,o),f&&e&&!r.noHolidays){const t=function(e,t){const n=e.getDate(),r=t.location,a=Boolean(t.useElevation),o=new Yh(r,n.greg(),a).beinHaShmashos();return isNaN(o.getTime())?null:new Cm(e,o,r)}(n,r);t&&((a||o)&&(t.eventTime=e.eventTime,t.eventTimeStr=e.eventTimeStr),n=t),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&c||r.behab&&h)&&t.push(n)}return(l||d&&!r.noMinorFast)&&y?.endEvent&&t.push(y.endEvent),e}function Ff(e,t){const n=[],r=e.getMonth(),a=e.getDate();if(r!==lf&&a>=23&&a<=29){const a=e.getFullYear(),o=r===fe.monthsInYear(a)?cf:r+1;if(t.molad&&n.push(new Oh(e,a,o,t)),t.shabbatMevarchim){const r=fe.getMonthName(o,a),i=new kh(a,o).render(t.locale,t);n.push(new af(e,r,i,t.locale))}}return n}function jf(e,t){return"yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e}function $f(e,t,n){const r=[];for(const[a,o]of Object.entries(t))if(o){const t=jf(a,o),i=nf.lookup(t,e,n);i&&r.push(i)}return r}function Vf(e,t,n){const r=new $m(e,t);if(n.candlelighting){const t=n.location,a=new Yh(t,e.prev(),!1).tzeit(7.0833);isNaN(a.getTime())||(r.alarm=a)}return r}function Kf(e,t){const n=t.location,r=Boolean(t.useElevation),a=new Yh(n,e,r).sofZmanBiurChametzGRA();if(isNaN(a.getTime()))return;const o=new Am(e,wd.BIUR_CHAMETZ,0,a,n,void 0,t);return o.emoji="🔥",o}function Gf(e,t){return 0!==(Rd(e,t)||[]).filter(e=>e.hasFlag("CHAG")).length}return e.AsaraBTevetEvent=Nd,e.CandleLightingEvent=pm,e.ChanukahEvent=Dd,e.DailyLearning=nf,e.Event=He,e.FastDayEvent=Em,e.GeoLocation=hh,e.HDate=fe,e.HavdalahEvent=Im,e.HebrewCalendar=class{constructor(){}static calendar(e={}){return of(e)}static getBirthdayOrAnniversary(e,t){return pe(e,t)}static getYahrzeit(e,t){return Ae(e,t)}static getHolidaysForYear(e){return lm(e)}static getHolidaysForYearArray(e,t){return function(e,t){const n=lm(e),r=fe.hebrew2abs(e,rm,1),a=fe.hebrew2abs(e+1,rm,1)-1;let o=[];for(let e=r;e<=a;e++){const r=new fe(e),a=n.get(r.toString());if(a){const e=a.filter(e=>e.observedIn(t));o=o.concat(e)}}return o}(e,t)}static getHolidaysOnDate(e,t){return Rd(e,t)}static eruvTavshilin(e,t){if(e.getDay()<3||e.getDay()>4)return!1;const n=new fe(e),r=n.after(5),a=n.next();return!(!Gf(r,t)||Gf(n,t)||!Gf(a,t))}static reformatTimeStr(e,t,n){return Ih(e,t,n)}static version(){return t}static getSedra(e,t){return ll(e,t)}static hallel(e,t){const n=Rd(e,t);return n?function(e,t){const n=t.abs();for(const t of e){const e=t.getDate();if(e.abs()!==n)continue;const r=t.getDesc(),a=e.getMonth(),o=e.getDate();if(r.startsWith("Chanukah")||r.startsWith("Shavuot")||r.startsWith("Sukkot")||a===m.NISAN&&(15===o||16===o)&&t.hasFlag("CHAG")||r===wd.YOM_HAATZMA_UT||r===wd.YOM_YERUSHALAYIM)return 2;if(t.hasFlag("ROSH_CHODESH")||r.startsWith("Pesach")&&r!==wd.PESACH_I&&r!==wd.PESACH_II)return 1}return 0}(n,e):0}static tachanun(e,t){return Gm(e,t)}},e.HebrewDateEvent=Ee,e.HolidayEvent=Ed,e.Locale=se,e.Location=Ah,e.MevarchimChodeshEvent=af,e.Molad=kh,e.MoladEvent=Oh,e.NOAACalculator=dh,e.OmerEvent=$m,e.ParshaEvent=Wm,e.RoshChodeshEvent=_d,e.RoshHashanaEvent=kd,e.Sedra=xh,e.TimedChanukahEvent=Cm,e.TimedEvent=Am,e.YomKippurKatanEvent=Bd,e.Zmanim=Yh,e.calculateMolad=vh,e.calendar=of,e.flags=Me,e.gematriya=V,e.gematriyaStrToNum=K,e.getHolidaysOnDate=Rd,e.getMoladAsDate=wh,e.getSedra=ll,e.holidayDesc=wd,e.isAssurBemlacha=function(e,t,n){const r=X(t.getTzid(),e),a=parseInt(r.substring(0,4),10),o=parseInt(r.substring(5,7),10),i=parseInt(r.substring(8,10),10),s=new fe(new Date(a,o-1,i)),u=new Yh(t,s,n),c=u.sunset().getTime();if(isNaN(c))throw new Error("Could not determine sunset");const h=t.getIsrael(),l=e.getTime(),d=s.getDay(),m=Rd(s,h)||[];if(function(e,t){return 5===e||!!t.find(e=>e.hasAnyFlag("LIGHT_CANDLES","LIGHT_CANDLES_TZEIS"))}(d,m)&&l>=c)return!0;if(function(e,t){return 6===e||!!t.find(e=>e.hasFlag("CHAG"))}(d,m)){return l<=u.tzeit().getTime()}return!1},e.isAveilut=function(e){const t=function(e){return fe.isHDate(e)?e:new fe(e)}(e);return function(e){const t=e.getFullYear(),n=new fe(16,dm,t).abs(),r=new fe(5,mm,t).abs(),a=e.abs();return a>=n&&a<=r}(t)||function(e){const t=e.getFullYear(),n=new fe(17,fm,t).abs(),r=new fe(9,gm,t),a=6===r.getDay()?new fe(10,gm,t).abs():r.abs(),o=e.abs();return o>=n&&o<=a}(t)},e.isFastDay=function(e,t){const n=(Rd(e,t)||[]).find(e=>e.hasAnyFlag("MAJOR_FAST","MINOR_FAST")&&!e.hasFlag("EREV"));return Boolean(n)},e.months=m,e.parshaYear=function(e,t){const n=ll(e,t),r=n.getFirstSaturday(),a=fe.hebrew2abs(e,m.ELUL,29),o=[];for(let e=r;e<=a;e+=7){const t=n.lookup(e);if(!t.chag){const e=new Wm(t);o.push(e)}}return o},e.parshiot=zh,e.reformatTimeStr=Ih,e.tachanun=Gm,e.version=t,e}({});
|
|
18
|
+
function ct(t,e){return t-e*Math.floor(t/e)}st.addLocale("he-x-NoNikud",ut);const ht="day",lt="week",dt="month",ft="year";class mt{yy;mm;dd;rd;constructor(t,e,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 o="string"==typeof n?parseInt(n,10):n;if(isNaN(o))throw new TypeError(`HDate called with bad year: ${n}`);this.yy=o,function(t,e){t.mm=mt.monthNum(e),gt(t)}(this,e);const i="string"==typeof t?parseInt(t,10):t;if(isNaN(i))throw new TypeError(`HDate called with bad day: ${t}`);a=i,(r=this).dd=a,gt(r)}else{null==t&&(t=new Date);const e="number"!=typeof t||isNaN(t)?u(t)?h(t):void 0!==t.yy?t:null:t;if(null===e)throw new TypeError(`HDate called with bad arg: ${t}`);const n="number"==typeof e,r=n?v(e):e;this.yy=r.yy,this.mm=r.mm,this.dd=r.dd,n&&(this.rd=e)}var r,a}getFullYear(){return this.yy}isLeapYear(){return w(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const t=b(this.getFullYear());return(this.getMonth()+t-6)%t||t}daysInMonth(){return H(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){return ct(this.abs(),7)}greg(){return l(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=T(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(t,e,n){return T(t,e,n)}getMonthName(){return N(this.getMonth(),this.getFullYear())}render(t,e=!0){const n=t||"en",r=this.getDate(),a=st.gettext(this.getMonthName(),n).replace(/'/g,"’"),o=st.ordinal(r,n),i=function(t){switch(t){case"en":case"s":case"a":case"ashkenazi":return" of"}const e=st.lookupTranslation("of",t);if(e)return" "+e;if(t.startsWith("ashkenazi"))return" of";return""}(n),s=`${o}${i} ${a}`;if(e){return`${s}, ${this.getFullYear()}`}return s}renderGematriya(t=!1,e=!1){const n=this.getDate(),r=t?"he-x-NoNikud":"he",a=st.gettext(this.getMonthName(),r),o=V(n)+" "+a;if(e)return o;return o+" "+V(this.getFullYear())}before(t){return St(t,this,-1)}onOrBefore(t){return St(t,this,0)}nearest(t){return St(t,this,3)}onOrAfter(t){return St(t,this,6)}after(t){return St(t,this,7)}next(){return new mt(this.abs()+1)}prev(){return new mt(this.abs()-1)}add(t,e="d"){if(!(t="string"==typeof t?parseInt(t,10):t))return new mt(this);if((e=function(t){switch(t){case"d":return ht;case"w":return lt;case"M":return dt;case"y":return ft}const e=String(t||"").toLowerCase().replace(/s$/,"");switch(e){case ht:case lt:case dt:case ft:return e}throw new TypeError(`Invalid units '${t}'`)}(e))===ht)return new mt(this.abs()+t);if(e===lt)return new mt(this.abs()+7*t);if(e===ft)return new mt(this.getDate(),this.getMonth(),this.getFullYear()+t);{let e=new mt(this);const n=t>0?1:-1;t=Math.abs(t);for(let r=0;r<t;r++)e=new mt(e.abs()+n*e.daysInMonth());return e}}subtract(t,e="d"){return this.add(-1*t,e)}deltaDays(t){return this.abs()-t.abs()}isSameDate(t){return this.yy===t.yy&&this.mm===t.mm&&this.dd===t.dd}toString(){const t=this.getDate(),e=this.getFullYear();return`${t} ${this.getMonthName()} ${e}`}static isLeapYear(t){return w(t)}static monthsInYear(t){return b(t)}static daysInMonth(t,e){return H(t,e)}static getMonthName(t,e){return N(t,e)}static monthNum(t){if("number"==typeof t){if(isNaN(t)||t>14)throw new RangeError(`bad monthNum: ${t}`);return t}if("string"!=typeof t)throw new TypeError(`bad monthNum: ${t}`);return t.charCodeAt(0)>=48&&t.charCodeAt(0)<=57?parseInt(t,10):B(t)}static daysInYear(t){return k(t)}static longCheshvan(t){return O(t)}static shortKislev(t){return _(t)}static monthFromName(t){return B(t)}static dayOnOrBefore(t,e){return e-ct(e-t,7)}static isHDate(t){const e=t;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(t,e=5e3){if("string"!=typeof t)throw new TypeError(`bad gematriya str: ${t}`);const n=t.split(" ").filter(t=>0!==t.length),r=n.length;if(3!==r&&4!==r)throw new RangeError(`cannot parse gematriya str: "${t}"`);const a=K(n[0]),o=B(3===r?n[1]:n[1]+" "+n[2]);let i=K(3===r?n[2]:n[3]);return i<1e3&&(i+=e),new mt(a,o,i)}}function gt(t){yt(t),function(t){t.dd<1&&(t.mm===f.TISHREI&&(t.yy-=1),t.dd+=H(t.mm,t.yy),t.mm-=1,gt(t));t.dd>H(t.mm,t.yy)&&(t.mm===f.ELUL&&(t.yy+=1),t.dd-=H(t.mm,t.yy),t.mm===b(t.yy)?t.mm=1:t.mm+=1,gt(t));yt(t)}(t)}function yt(t){t.mm!==f.ADAR_II||t.isLeapYear()?t.mm<1?(t.mm+=b(t.yy),t.yy-=1,gt(t)):t.mm>b(t.yy)&&(t.mm-=b(t.yy),t.yy+=1,gt(t)):(t.mm-=1,gt(t)),delete t.rd}function St(t,e,n){return new mt(mt.dayOnOrBefore(t,e.abs()+n))}
|
|
19
|
+
/*! @hebcal/hdate v0.22.8, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */function At(t,e){const n=function(t,e){let n=z(e);if(!(t<=n.yy))return n.mm!==R||30!==n.dd||O(n.yy+1)?n.mm===Y&&30===n.dd&&_(n.yy+1)?n=v(T(t,Z,1)-1):n.mm===x?n.mm=b(t):n.mm!==U||30!==n.dd||w(t)||(n.dd=30,n.mm=P):n=v(T(t,Y,1)-1),n.mm!==R||30!==n.dd||O(t)?n.mm===Y&&30===n.dd&&_(t)&&(n.mm=Z,n.dd=1):(n.mm=Y,n.dd=1),n.yy=t,n}(t,e);return n&&new mt(n)}function pt(t,e){const n=function(t,e){const n=z(e),r=n.yy;if(t===r)return n;if(t<r)return;const a=w(r);let o=n.mm,i=n.dd;return o===U&&!a||o===x&&a?o=b(t):o!==R||30!==i||O(t)?o===Y&&30===i&&_(t)?(o=Z,i=1):o===U&&30===i&&a&&!w(t)&&(o=L,i=1):(o=Y,i=1),{yy:t,mm:o,dd:i}}(t,e);return n&&new mt(n)}var It={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"he_IL"},contexts:{"":{Shabbat:["שַׁבָּת"],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":["פֶּסַח ח׳"],"Pesach Shabbat Chol ha-Moed":["שַׁבַּת חֹל הַמּוֹעֵד פֶּסַח"],Purim:["פּוּרִים"],"Purim Katan":["פּוּרִים קָטָן"],"Rosh Chodesh":["רֹאשׁ חוֹדֶשׁ"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבַּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבַּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבַּת הַגָּדוֹל"],"Shabbat Nachamu":["שַׁבַּת נַחֲמוּ"],"Shabbat Parah":["שַׁבַּת פָּרָה"],"Shabbat Shekalim":["שַׁבַּת שְׁקָלִים"],"Shabbat Shuva":["שַׁבַּת שׁוּבָה"],"Shabbat Zachor":["שַׁבַּת זָכוֹר"],Shavuot:["שָׁבוּעוֹת"],"Shavuot I":["שָׁבוּעוֹת א׳"],"Shavuot II":["שָׁבוּעוֹת ב׳"],"Shmini Atzeret":["שְׁמִינִי עֲצֶרֶת"],"Shushan Purim":["שׁוּשָׁן פּוּרִים"],Sigd:["חַג הַסִּיגְד"],"Simchat Torah":["שִׂמְחַת תּוֹרָה"],Sukkot:["סֻכּוֹת"],"Sukkot I":["סֻכּוֹת א׳"],"Sukkot II":["סֻכּוֹת ב׳"],"Sukkot II (CH''M)":["סֻכּוֹת ב׳ (חוה״מ)"],"Sukkot III (CH''M)":["סֻכּוֹת ג׳ (חוה״מ)"],"Sukkot IV (CH''M)":["סֻכּוֹת ד׳ (חוה״מ)"],"Sukkot V (CH''M)":["סֻכּוֹת ה׳ (חוה״מ)"],"Sukkot VI (CH''M)":["סֻכּוֹת ו׳ (חוה״מ)"],"Sukkot VII (Hoshana Raba)":["סֻכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Sukkot Shabbat Chol ha-Moed":["שַׁבַּת חֹל הַמּוֹעֵד סֻכּוֹת"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit BeHaB":["תַּעֲנִית בה״ב"],"Ta'anit Esther":["תַּעֲנִית אֶסְתֵּר"],"Tish'a B'Av":["תִּשְׁעָה בְּאָב"],"Tu B'Av":["ט״וּ בְּאָב"],"Tu BiShvat":["ט״וּ בִּשְׁבָט"],"Tu B'Shvat":["ט״וּ בִּשְׁבָט"],"Tzom Gedaliah":["צוֹם גְּדַלְיָה"],"Tzom Tammuz":["צוֹם י״ז בְּתַמּוּז"],"Yom HaAtzma'ut":["יוֹם הָעַצְמָאוּת"],"Yom HaShoah":["יוֹם הַשּׁוֹאָה"],"Yom HaZikaron":["יוֹם הַזִּכָּרוֹן"],"Yom Kippur":["יוֹם כִּפּוּר"],"Yom Yerushalayim":["יוֹם יְרוּשָׁלַיִם"],"Yom HaAliyah":["יוֹם הַעֲלִיָּה"],"Yom HaAliyah School Observance":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"Rosh Chodesh Adar":["רֹאשׁ חוֹדֶשׁ אֲדָר"],"Rosh Chodesh Adar I":["רֹאשׁ חוֹדֶשׁ אֲדָר א׳"],"Rosh Chodesh Adar II":["רֹאשׁ חוֹדֶשׁ אֲדָר ב׳"],"Rosh Chodesh Av":["רֹאשׁ חוֹדֶשׁ אָב"],"Rosh Chodesh Cheshvan":["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"],"Rosh Chodesh Elul":["רֹאשׁ חוֹדֶשׁ אֱלוּל"],"Rosh Chodesh Iyyar":["רֹאשׁ חוֹדֶשׁ אִיָּיר"],"Rosh Chodesh Kislev":["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"],"Rosh Chodesh Nisan":["רֹאשׁ חוֹדֶשׁ נִיסָן"],"Rosh Chodesh Sh'vat":["רֹאשׁ חוֹדֶשׁ שְׁבָט"],"Rosh Chodesh Sivan":["רֹאשׁ חוֹדֶשׁ סִיוָן"],"Rosh Chodesh Tamuz":["רֹאשׁ חוֹדֶשׁ תַּמּוּז"],"Rosh Chodesh Tammuz":["רֹאשׁ חוֹדֶשׁ תַּמּוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דַּקּוֹת"],"Fast begins":["תְּחִילַּת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["(תִּשְׁעָה בְּאָב (נִדְחָה"],"Shabbat Mevarchim Chodesh":["שַׁבַּת מְבָרְכִים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבַּת שִׁירָה"],Lovingkindness:["חֶסֶד"],Might:["גְּבוּרָה"],Beauty:["תִּפְאֶרֶת"],Eternity:["נֶּצַח"],Splendor:["הוֹד"],Foundation:["יְּסוֹד"],Majesty:["מַּלְכוּת"],day:["יוֹם"],"Yom Kippur Katan":["יוֹם כִּפּוּר קָטָן"],Yizkor:["יִזְכּוֹר"],"Family Day":["יוֹם הַמִּשׁפָּחָה"],"Yitzhak Rabin Memorial Day":["יוֹם הַזִּכָּרוֹן לְיִצְחָק רַבִּין"],"Jabotinsky Day":["יוֹם זַ׳בּוֹטִינְסְקִי"],"Herzl Day":["יוֹם הֶרְצְל"],"Ben-Gurion Day":["יוֹם בֶּן־גּוּרִיּוֹן"],"Hebrew Language Day":["יוֹם הַשָׂפָה הַעִברִית"],"Birkat Hachamah":["בִּרְכַּת הַחַמָּה"],"Birkat HaChamah":["בִּרְכַּת הַחַמָּה"],"Shushan Purim Katan":["שׁוּשָׁן פּוּרִים קָטָן"],"Purim Meshulash":["פּוּרִים מְשׁוּלָּשׁ"],"Chag HaBanot":["חַג הַבָּנוֹת"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"],"Alot HaShachar":["עֲלוֹת הַשַּׁחַר"],Misheyakir:["מִשֶּׁיַּכִּיר"],"Misheyakir Machmir":["מִשֶּׁיַּכִּיר מַחְמִיר"],Sunrise:["נֵץ הַחַמָּה"],"Kriat Shema, sof zeman":["סוֹף זְמַן קְרִיאַת שְׁמַע"],"Tefilah, sof zeman":["סוֹף זְמַן תְּפִלָּה"],"Kriat Shema, sof zeman (MGA)":["סוֹף זְמַן קְרִיאַת שְׁמַע (מג״א)"],"Kriat Shema, sof zeman (GRA)":["סוֹף זְמַן קְרִיאַת שְׁמַע (גְּרָ״א)"],"Tefilah, sof zeman (MGA)":["סוֹף זְמַן תְּפִלָּה (מג״א)"],"Tefilah, sof zeman (GRA)":["סוֹף זְמַן תְּפִלָּה (גְּרָ״א)"],"Chatzot HaLailah":["חֲצוֹת הַלַּיְלָה"],"Chatzot HaYom":["חֲצוֹת הַיּוֹם"],"Chatzot hayom":["חֲצוֹת הַיּוֹם"],"Mincha Gedolah":["מִנְחָה גְּדוֹלָה"],"Mincha Ketanah":["מִנְחָה קְטַנָּה"],"Plag HaMincha":["פְּלַג הַמִּנְחָה"],Sunset:["שְׁקִיעַת הַחַמָּה"],"Bein HaShemashot":["בֵּין הַשְּׁמָשׁוֹת"],"Tzeit HaKochavim":["צֵאת הַכּוֹכָבִים"],"Biur Chametz":["בִּעוּר חָמֵץ"],"Finish eating chametz":["סוֹף זְמַן אֲכִילַת חָמֵץ"]}}};st.addTranslations("he",It),st.addTranslations("ashkenazi",{headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"und-x-ashkenaz"},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"],"Pesach Shabbat Chol ha-Moed":["Pesach Shabbos Chol ha-Moed"],"Purim Katan":["Purim Koton"],"Rosh Hashana LaBehemot":["Rosh Hashana LaBeheimos"],"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)"],"Sukkot Shabbat Chol ha-Moed":["Sukkos Shabbos Chol ha-Moed"],"Ta'anit Bechorot":["Ta’anis Bechoros"],"Ta'anit BeHaB":["Ta’anis BeHaB"],"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"],"Birkat Hachamah":["Birkas HaChamah"],"Birkat HaChamah":["Birkas HaChamah"],"Shushan Purim Katan":["Shushan Purim Koton"],"Alot HaShachar":["Alos HaShachar"],Misheyakir:["Misheyakir"],"Misheyakir Machmir":["Misheyakir Machmir"],Sunrise:["Sunrise"],"Kriat Shema, sof zeman":["Krias Shema, sof zman"],"Tefilah, sof zeman":["Tefilah, sof zman"],"Kriat Shema, sof zeman (MGA)":["Krias Shema, sof zman (MGA)"],"Kriat Shema, sof zeman (GRA)":["Krias Shema, sof zman (GRA)"],"Tefilah, sof zeman (MGA)":["Tefilah, sof zman (MGA)"],"Tefilah, sof zeman (GRA)":["Tefilah, sof zman (GRA)"],"Chatzot HaLailah":["Chatzos HaLailah"],"Chatzot HaYom":["Chatzos"],"Chatzot hayom":["Chatzos"],"Mincha Gedolah":["Mincha Gedolah"],"Mincha Ketanah":["Mincha Ketanah"],"Plag HaMincha":["Plag HaMincha"],Sunset:["Sunset"],"Bein HaShemashot":["Bein HaShemashos"],"Tzeit HaKochavim":["Tzeis HaKochavim"]}}});const Tt=st.copyLocaleNoNikud(It);st.addTranslations("he-x-NoNikud",Tt),st.addTranslations("he-x-NoNikud",{headers:{"plural-forms":"nplurals=2; plural=(n != 1);",language:"he-x-NoNikud"},contexts:{"":{Korach:["קורח"],Chukat:["חוקת"],"Erev Yom Kippur":["ערב יום כיפור"],"Yom Kippur":["יום כיפור"],"Yom Kippur Katan":["יום כיפור קטן"],"Pesach Shabbat Chol ha-Moed":["שבת חול המועד פסח"],"Sukkot Shabbat Chol ha-Moed":["שבת חול המועד סוכות"],"Erev Sukkot":["ערב סוכות"],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)":["סוכות ז׳ (הושענא רבה)"]}}});const Mt={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,YIZKOR:134217728,BEHAB:268435456},vt=Object.entries(Mt);function wt(t){if(!Object.hasOwn(Mt,t))throw new RangeError(`Unknown flag name: ${String(t)}`);return Mt[t]}const bt=[[Mt.MAJOR_FAST,"holiday","major","fast"],[Mt.CHANUKAH_CANDLES,"holiday","minor"],[Mt.HEBREW_DATE,"hebdate"],[Mt.MINOR_FAST,"holiday","fast"],[Mt.MINOR_HOLIDAY,"holiday","minor"],[Mt.MODERN_HOLIDAY,"holiday","modern"],[Mt.MOLAD,"molad"],[Mt.OMER_COUNT,"omer"],[Mt.PARSHA_HASHAVUA,"parashat"],[Mt.ROSH_CHODESH,"roshchodesh"],[Mt.SHABBAT_MEVARCHIM,"mevarchim"],[Mt.SPECIAL_SHABBAT,"holiday","shabbat"],[Mt.USER_EVENT,"user"],[Mt.YIZKOR,"yizkor"]];class Et{constructor(t,e,n=0,r){if(!mt.isHDate(t))throw new TypeError(`Invalid Event date: ${t}`);if("string"!=typeof e)throw new TypeError(`Invalid Event description: ${e}`);this.date=t,this.desc=e,this.mask=+n,"object"==typeof r&&null!==r&&Object.assign(this,r)}getDate(){return this.date}greg(){return this.date.greg()}getDesc(){return this.desc}getFlags(){return this.mask}hasFlag(t){return 0!==(this.mask&wt(t))}hasAnyFlag(...t){let e=0;for(const n of t)e|=wt(n);return 0!==(this.mask&e)}flagNames(){return vt.filter(([,t])=>this.mask&t).map(([t])=>t)}render(t){return st.gettext(this.desc,t)}renderBrief(t){return this.render(t)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!this.hasFlag("CHUL_ONLY")}observedInDiaspora(){return!this.hasFlag("IL_ONLY")}observedIn(t){return t?this.observedInIsrael():this.observedInDiaspora()}getCategories(){const t=this.mask;for(const e of bt){if(t&e[0])return e.slice(1)}return["unknown"]}}class Ht extends Et{constructor(t){super(t,t.toString(),Mt.HEBREW_DATE)}render(t){const e=t?.toLowerCase(),n=e??"en",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(t){const e=this.getDate(),n=e.getDate(),r=st.gettext(e.getMonthName(),t);return V(n)+" "+r}renderBrief(t){const e=t?.toLowerCase(),n=e??"en",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)}}}const Nt=(t,e,n,r)=>Ct(t,e)+`; must be between ${n}-${r}`,Ct=(t,e)=>`Invalid ${t}: ${e}`;function Dt(t){return void 0===t?Object.create(null):Lt(t)}function kt(t,e="number"){if("bigint"==typeof t)throw new TypeError((t=>`Cannot convert bigint to ${t}`)(e));if(t=Number(t),!Number.isFinite(t))throw new RangeError(((t,e)=>`Non-finite ${t}: ${e}`)(e,t));return t}function Ot(t,e){return Math.trunc(kt(t,e))||0}function _t(t,e){return function(t,e="number"){if(t<=0)throw new RangeError(((t,e)=>`Non-positive ${t}: ${e}`)(e,t));return t}(Ot(t,e),e)}function Bt(t){return null!==t&&("object"==typeof t||"function"==typeof t)}function Lt(t){if(!Bt(t))throw new TypeError("Invalid object");return t}function Rt(t,e){return"string"==typeof t?((t,e)=>{const n=Object.create(null);return n[t]=e,n})(e,t):Lt(t)}const Yt="smallestUnit",Zt={constrain:0,reject:1},Pt={compatible:0,reject:1,earlier:2,later:3},Ut={reject:0,use:1,prefer:2,ignore:3},xt={auto:0,never:1,critical:2,always:3},zt={auto:0,never:1,critical:2},Ft={auto:0,never:1},jt={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},$t=[Math.floor,function(t){return gn(t)?Math.floor(t):Math.round(t)},Math.ceil,function(t){return gn(t)?Math.ceil(t):Math.round(t)},Math.trunc,function(t){return gn(t)?Math.trunc(t)||0:Math.round(t)},function(t){return t<0?Math.floor(t):Math.ceil(t)},function(t){return Math.sign(t)*Math.round(Math.abs(t))||0},function(t){return gn(t)?(t=Math.trunc(t)||0)+t%2:Math.round(t)}],Vt={previous:-1,next:1};function Kt(t){const e=t.roundingIncrement;return void 0===e?1:Ot(e,"roundingIncrement")}function Gt(t){let e=t.fractionalSecondDigits;if(void 0!==e){if("number"!=typeof e){if("auto"===ya(e))return;Le(pe("fractionalSecondDigits",e))}e=Ze("fractionalSecondDigits",Math.floor(e),0,9,1)}return e}function Jt(t,e,n=0,r){let a=e[t];if(void 0===a)return r?n:void 0;if(a=ya(a),"auto"===a)return r?n:null;let o=bn[a];return void 0===o&&(o=ra.indexOf(a)),o<0&&Le(Me(t,a,bn)),o}function Wt(t,e,n,r=0){const a=n[t];if(void 0===a)return r;const o=ya(a),i=e[o];return void 0===i&&Le(Me(t,o,e)),i}const qt=Ge(Jt,Yt),Xt=Ge(Jt,"largestUnit"),Qt=Ge(Jt,"unit"),te=Ge(Wt,"overflow",Zt),ee=Ge(Wt,"disambiguation",Pt),ne=Ge(Wt,"offset",Ut),re=Ge(Wt,"calendarName",xt),ae=Ge(Wt,"timeZoneName",zt),oe=Ge(Wt,"offset",Ft),ie=Ge(Wt,"roundingMode",jt),se=Ge(Wt,"direction",Vt);function ue(t,e,n,r){const a=r?On:_n[e+1];if(a){const n=_n[e];a%((t=Ze("roundingIncrement",t,1,a/n-(r?0:1),1))*n)&&Le(pe("roundingIncrement",t))}else t=Ze("roundingIncrement",t,1,n?10**9:1,1);return t}function ce(t,e,n,r){return null!=e&&Ze(t,e,n,r,1,En),e}function he(t,e){e>t&&Le(Ne)}function le(t,e,n,r=9,a=0,o=4){e=Dt(e);let i=Xt(e,a),s=Kt(e),u=ie(e,o),c=qt(e,a,1);return i=ce("largestUnit",i,a,r),c=ce(Yt,c,a,r),null==i?i=Math.max(n,c):he(i,c),s=ue(s,c,1),t&&(u=(t=>t<4?(t+2)%4:t)(u)),[i,c,s,u]}function de(t,e=6,n){let r=Kt(t=Rt(t,Yt));const a=ie(t,7);let o=qt(t);return o=da(Yt,o),o=ce(Yt,o,0,e),r=ue(r,o,void 0,n),[o,r,a]}function fe(t){return void 0===t?0:te(Lt(t))}function me(t,e=0){t=Dt(t);const n=ee(t),r=ne(t,e);return[te(t),r,n]}function ge(t,e=4){const n=Gt(t),r=ie(t,4),a=qt(t);return[r,...Ae(ce(Yt,a,0,e),n)]}function ye(t){return re(Dt(t))}function Se(t,e){return ge(Dt(t),e)}function Ae(t,e){return null!=t?[_n[t],t<4?9-3*t:-1]:[void 0===e?1:10**(9-e),e]}const pe=Ct,Ie=t=>`Missing ${t}`,Te=t=>"No valid fields: "+t.join(),Me=(t,e,n)=>Ct(t,e)+"; must be "+Object.keys(n).join(),ve=t=>"Missing year"+(t?"/era/eraYear":""),we="Invalid leap month",be=t=>Ct("TimeZone",t),Ee="Out-of-bounds date",He="Required smallestUnit or largestUnit",Ne="smallestUnit > largestUnit",Ce=t=>`Cannot parse: ${t}`,De=t=>`Invalid substring: ${t}`,ke=t=>`Cannot format ${t}`,Oe="Mismatching types for formatting",_e=function(t,e,n){return Math.min(Math.max(t,e),n)},Be=Bt;function Le(t){throw new RangeError(t)}function Re(t){throw new TypeError(t)}function Ye(t,e,n,r,a){return Ze(e,((t,e)=>{const n=t[e];return void 0===n&&Re(Ie(e)),n})(t,e),n,r,a)}function Ze(t,e,n,r,a,o){const i=_e(e,n,r);return a&&e!==i&&Le(((t,e,n,r,a)=>a?Nt(t,a[e],a[n],a[r]):Nt(t,e,n,r))(t,e,n,r,o)),i}function Pe(t,e=Map){const n=new e;return(e,...r)=>{if(n.has(e))return n.get(e);const a=t(e,...r);return n.set(e,a),a}}const Ue=(t,e)=>ze(t=>({value:t,configurable:1,writable:!e}),t),xe=t=>({[Symbol.toStringTag]:{value:t,configurable:1}});function ze(t,e){const n={};for(const r in e)n[r]=t(e[r],r);return n}function Fe(t,e){const n={};for(const r of t)n[r]=e;return n}function je(t){const e={};for(const n of t)e[n]=t=>t[n];return e}function $e(t,e,n=Object.create(null)){for(const r of t)n[r]=e[r];return n}function Ve(t,e,n){for(const r of t)if(e[r]!==n[r])return 0;return 1}function Ke(t,e,n){const r={...n};for(let n=0;n<e;n++)r[t[n]]=0;return r}function Ge(t,...e){return(...n)=>t(...e,...n)}function Je(t){return t}function We(){}function qe(t){return t[0].toUpperCase()+t.substring(1)}function Xe(...t){return[].concat(...t).sort()}function Qe(t){return new RegExp(`^${t}$`,"i")}function tn(t){return parseInt(t.padEnd(9,"0"))}function en(t){return t&&"+"!==t?-1:1}function nn(t){return void 0===t?0:parseInt(t)}function rn(t,e){return String(e).padStart(t,"0")}const an=Ge(rn,2);function on(t,e){return Math.sign(t-e)}function sn(t,e){return t<e?-1:t>e?1:0}function un(t,e){const n=t/e;return t%e<0n?n-1n:n}function cn(t,e){const n=un(t,e);return[n,t-n*e]}function hn(t,e){return[Math.floor(t/e),ln(t,e)]}function ln(t,e){return(t%e+e)%e}function dn(t,e){return Math.trunc(t/e)||0}function fn(t,e){return t%e||0}function mn(t,e=1){return e*(.5+t/5)}function gn(t){return.5===Math.abs(t%1)}const yn="iso8601",Sn={bce:-1,ce:0};function An(t){const e=t.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,"");return"bc"===e||"b"===e?"bce":"ad"===e||"a"===e?"ce":e}const pn=void 0;function In(t){return t===pn?"iso8601":0===t?"gregory":t.id}const Tn=/^M(\d{2})(L?)$/;function Mn(t){const e=Tn.exec(t);return e||Le((t=>`Invalid monthCode: ${t}`)(t)),[parseInt(e[1]),Boolean(e[2])]}function vn(t,e){return"M"+an(t)+(e?"L":"")}function wn(t,e,n){return t+(e||n&&t>=n?1:0)}const bn={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},En=Object.keys(bn),Hn=1e3,Nn=1e6,Cn=1e9,Dn=6e10,kn=36e11,On=864e11,_n=[1,Hn,Nn,Cn,Dn,kn,On],Bn=BigInt(Hn),Ln=BigInt(Nn),Rn=BigInt(Cn),Yn=BigInt(Dn),Zn=BigInt(kn),Pn=BigInt(On);function Un(t,e){const n=Number(t/Pn),r=Number(t%Pn);return n*(On/e)+(Math.trunc(r/e)+r%e/e)}const xn=En.slice(0,6),zn=je(xn),Fn=["year"],jn=["day"],$n=["day","month","year"],Vn=["offset"],Kn=["timeZone"],Gn=["era","eraYear"],Jn=["era","eraYear","year"],Wn=["month","monthCode"],qn=["day","month","monthCode"],Xn=Xe(xn),Qn=Xe(Gn,Fn),tr=Xe(Wn,Fn),er=Xe(Gn,tr),nr=Xe(["monthCode"],Fn),rr=Xe(Gn,nr),ar=Xe(jn,["monthCode"]),or=Xe(jn,tr),ir=Xe(jn,Gn,tr),sr=Xe(or,xn),ur=Xe(ir,xn),cr=Xe(or,xn,Vn),hr=Xe(ir,xn,Vn),lr=Xe(or,xn,Vn,Kn),dr=Xe(ir,xn,Vn,Kn),fr=Xe(jn,nr),mr=Xe(jn,Gn,nr),gr=Fe(xn,0);function yr(t){return Ar(t,1),t}const Sr={hour:23,minute:59,second:59};function Ar(t,e){const n={};for(const r of xn)n[r]=Ze(r,t[r],0,Sr[r]||999,e);return n}function pr(t){return Tr(t)*Cn+Mr(t)}function Ir(t){return 1e3*Tr(t)+t.millisecond}function Tr(t){return 3600*t.hour+60*t.minute+t.second}function Mr(t){return t.millisecond*Nn+t.microsecond*Hn+t.nanosecond}function vr(t){const[e,n]=hn(t,On);return[wr(n),e]}function wr(t){const[e,n]=hn(t,Nn),[r,a]=hn(n,Hn);return function(t,e=0,n=0){const[r,a]=hn(t,36e5),[o,i]=hn(a,6e4),[s,u]=hn(i,1e3);return{hour:r,minute:o,second:s,millisecond:u,microsecond:e,nanosecond:n}}(e,r,a)}function br(t){const[e,n]=cn(t,Rn);return[Number(e),Number(n)]}function Er(t){return Number(un(t,Ln))}function Hr(t){return Cr(t)+BigInt(pr(t))}function Nr(t){return Dr(t)+Ir(t)}function Cr(t){return BigInt(kr(t))*Pn}function Dr(t){return 864e5*kr(t)}function kr(t){return Or(t.year,t.month,t.day)}function Or(t,e=1,n=1){const r=e-1;return t+=Math.floor(r/12),e=ln(r,12),Date.UTC(t%400-400,e,0)/864e5+146097*(dn(t,400)+1)+n}function _r(t){const[e,n]=cn(t,Pn);return{...Br(Number(e)),...wr(Number(n))}}function Br(t){const e=new Date(864e5*ln(t,146097));return{year:e.getUTCFullYear()+400*Math.floor(t/146097),month:e.getUTCMonth()+1,day:e.getUTCDate()}}function Lr(t,e){if(!e)return{year:1972,month:t}}function Rr(t,e){switch(e){case 2:return Yr(t)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function Yr(t){return t%4==0&&(t%100!=0||t%400==0)}function Zr(t){return ln(Or(t.year,t.month,t.day)+4,7)||7}function Pr(t){return Or(t.year,t.month,t.day)-Or(t.year)+1}function Ur(t){let e=t.year,n=Math.floor((Pr(t)-Zr(t)+10)/7),r=xr(e);return n<1?n=r=xr(--e):n>r&&(n=1,r=xr(++e)),{weekOfYear:n,yearOfWeek:e,De:r}}function xr(t){const e=Zr({year:t,month:1,day:1});return 4===e||3===e&&Yr(t)?53:52}function zr(t){return Fr(t),yr(t)}function Fr(t){return $r(t,1),t}function jr(t){return Ve($n,t,$r(t))}function $r(t,e){const{year:n}=t,r=Ye(t,"month",1,12,e);return{year:n,month:r,day:Ye(t,"day",1,Rr(n,r),e)}}function Vr(t,e){return t?t.de(e):e}function Kr(t,e,n){return t?t.N(e,n):function(t){return[t,0]}(n)}function Gr(t,e){return 0===t?function({year:t}){return t<1?{era:"bce",eraYear:1-t}:{era:"ce",eraYear:t}}(e):t&&t.h?.(e)||{}}function Jr(t,e,n,r){return t?t.fe(e,n,r):function(t,e,n){return{year:t,month:e,day:n}}(e,n,r)}function Wr(t,e){return t?t.j(e):12}function qr(t,e,n){return t?t.o(e,n):Rr(e,n)}function Xr(t,e){const{year:n,month:r}=Vr(t,e),[a,o]=Kr(t,n,r);return vn(a,o)}function Qr(t,e){const{year:n}=Vr(t,e);return t?t.q(n):Yr(n)}function ta(t,e){const{year:n}=Vr(t,e);return Wr(t,n)}function ea(t,e){const{year:n,month:r}=Vr(t,e);return qr(t,n,r)}function na(t,e){const{year:n}=Vr(t,e);return t?t.i(n):function(t){return Yr(t)?366:365}(n)}const ra=En.map(t=>t+"s"),aa=je(ra),oa=Xe(ra),ia=ra.slice(0,6),sa=ra.slice(6),ua=sa.slice(1),ca=Fe(ra,0),ha=Fe(ia,0),la=Ge(Ke,ra);function da(t,e){return null==e&&Le(Ie(t)),e}const fa=Ge(ma,"string");function ma(t,e,n=t){return typeof e!==t&&Re(pe(n,e)),e}function ga(t,e="number"){return Number.isInteger(t)||Le(((t,e)=>`Non-integer ${t}: ${e}`)(e,t)),t||0}function ya(t){return"symbol"==typeof t&&Re("Cannot convert Symbol to string"),String(t)}function Sa(t){if(!Bt(t))return t;const e=t[Symbol.toPrimitive];if(null!=e){"function"!=typeof e&&Re();const n=Reflect.apply(e,t,["string"]);return Bt(n)&&Re(),n}return Date.prototype[Symbol.toPrimitive].call(t,"string")}function Aa(t){return"boolean"==typeof t?BigInt(t?1:0):"string"==typeof t?BigInt(t):("bigint"!=typeof t&&Re(`Invalid bigint: ${t}`),t)}function pa(t,e){return ga(kt(t,e),e)}function Ia(t,e){return $e($n,t,$e(xn,e))}const Ta=BigInt(1e8)*Pn,Ma=BigInt(-1e8)*Pn,va=Ma-Pn,wa=-3261848;function ba(t){const e=12*t.year+t.month;return(e<wa||e>3309129)&&Le(Ee),t}function Ea(t,e=1){const n=Cr(t);return(n<(e?va:Ma)||n>Ta)&&Le(Ee),t}function Ha(t){return((e=Hr(t))<=va||e>=Ta+Pn)&&Le(Ee),t;var e}function Na(t){return(t<Ma||t>Ta)&&Le(Ee),t}function Ca(t,e){return Na(Cr(t)+BigInt(pr(t)-e))}function Da(t,e,n){return ka(t/e,n)*e}function ka(t,e){return $t[e](t)}function Oa(t,e,n,r){let a=_a(t,e,n);return((t,e,n,r)=>r>0?e<=t&&t<=n:n<=t&&t<=e)(r,a.I,a.O,Math.sign(e))||(a=_a(t+e,e,n)),a}function _a(t,e,n){const r=t+e;return{ve:t,qe:r,I:n(t),O:n(r)}}function Ba(t,e){return t.ve+e*(t.qe-t.ve)}function La(t,e,n){const r=n-e,a=t-e;if(!a)return 0;const o=a<0n?-a:a,i=r<0n?-r:r,s=sn(a,0n)===sn(r,0n)?1:-1;return sn(o,i)<=0?o===i?s:mn(sn(2n*o,i),s):Number(a)/Number(r)}function Ra(t){return{epochNanoseconds:t}}function Ya(t,e,n){return{calendar:n,timeZone:e,epochNanoseconds:t}}function Za(t,e){return $e(xn,t,Pa(t,e))}function Pa(t,e){return $e($n,t,{calendar:e})}function Ua(t){return $e(xn,t)}function xa(t){return $e(ra,t,{sign:Fo(t)})}function za(t,e,n,r){return Ya(6===e?function(t,e){const[n,r]=Wa(t);return function(t,e,n,r){return ka(La(t<n?t:n-1n,e,n),r)?n:e}(t.epochNanoseconds,n,r,e)}(t,r):function(t,e,n,r){if(0===e&&1===n)return t.epochNanoseconds;const a=ro(t);return oo(t.timeZone,$a(a,eo(e,n),r),a.offsetNanoseconds,2,0,1)}(t,e,n,r),t.timeZone,t.calendar)}function Fa(t,e,n,r,a,o,i,s){if(0===r&&1===a)return t;const u=Fo(t)||1,c=Ro(r,s)?s&&r<6&&n>=6?Ga:Ja:Ka;let[h,l,d]=c(u,t,e,n,r,a,o,i);return d&&7!==r&&(h=((t,e,n,r,a,o)=>{for(let i=r+1;i<=n;i++){if(7===i&&7!==n)continue;const r=la(i,t);r[ra[i]]+=a;const s=sn(e,Oo(o,r));if(s&&s!==a)break;t=r}return t})(h,l,n,Math.max(6,r),u,i)),h}function ja(t,e,n){const r=Math.min(Qo(t),6);return Wo(Xa(Ko(t),BigInt(e),n),r)}function $a(t,e,n){const[r,a]=Va(t,e,n),o=Ia(po(t,a),r);return Ha(o),o}function Va(t,e,n){return vr(Da(pr(t),e,n))}function Ka(t,e,n,r,a,o,i,s){const u=ra[a],c=la(a,e);7===a&&(e={...e,weeks:e.weeks+Math.trunc(e.days/7)});const h=dn(e[u],o)*o,l=Oa(h,o*t,t=>(c[u]=t,Oo(s,c)),n),d=function(t,e,n,r){return Da(Ba(t,La(e,t.I,t.O)),n,r)}(l,n,o,i);return c[u]=d,[c,d===l.qe?l.O:l.I,d!==h]}function Ga(t,e,n,r,a,o,i,s){const u=Number(Go(e)),c=eo(a,o);let h=Da(u,c,i);const l={...e,...ha},d=Oa(l.days,t,t=>(l.days=t,Oo(s,l)),n),f=d.I,m=d.O,g=h-Number(m-f);let y=0;g&&Math.sign(g)!==t?n=f+BigInt(h):(y+=t,h=Da(g,c,i),n=m+BigInt(h));const S=qo(h);return[{...e,...S,days:e.days+y},n,Boolean(y)]}function Ja(t,e,n,r,a,o,i){const s=Ko(e),u=Xa(s,no(a,o),i),c=u-s,h=Math.sign(Number(u/Pn)-Number(s/Pn))===t,l=Wo(u,Math.min(r,6));return[{...e,...l},n+c,h]}function Wa(t){const{timeZone:e}=t,n=Ia(ro(t),gr),r=Ia(po(n,1),gr);return[so(e,n),so(e,r)]}function qa(t){return Da(t,Dn,7)}function Xa(t,e,n){return to(t,e,n,t/e%2n)}function Qa(t,e,n){const[r,a]=cn(t,Pn),o=r*Pn;return o+to(a,e,n,(o/e+a/e)%2n)}function to(t,e,n,r){const a=t/e,o=t%e;let i=0;o&&(i=mn(sn(2n*(o<0n?-o:o),e),Math.sign(Number(o))));const s=ka(Number(r)+i,n);return(a-r+BigInt(s))*e}function eo(t,e){return _n[t]*e}function no(t,e){return BigInt(_n[t])*BigInt(e)}const ro=Pe(ao,WeakMap);function ao(t){const{epochNanoseconds:e,timeZone:n}=t,r=n.B(e);return{..._r(e+BigInt(r)),offsetNanoseconds:r}}function oo(t,e,n,r=0,a=0,o,i){if(void 0!==n&&1===r&&(1===r||i))return Ca(e,n);2!==r&&0!==r||Ea(e,0);const s=t.R(e);if(void 0!==n&&3!==r){const t=((t,e,n,r)=>{const a=Hr(e);r&&(n=qa(n));for(const e of t){let t=Number(a-e);if(r&&(t=qa(t)),t===n)return e}})(s,e,n,o);if(void 0!==t)return t;0===r&&Le("Invalid TimeZone offset")}return i?Hr(e):io(t,e,a,s)}function io(t,e,n=0,r=t.R(e)){if(1===r.length)return r[0];if(1===n&&Le("Ambiguous offset"),r.length)return r[3===n?1:0];const a=Hr(e),o=((t,e)=>{const n=t.B(e-Pn);return(t=>(t>On&&Le("Out-of-bounds TimeZone gap"),t))(t.B(e+Pn)-n)})(t,a),i=_r(a+BigInt(o*(2===n?-1:1)));return(r=t.R(i))[2===n?0:r.length-1]}function so(t,e){const n=t.R(e);if(n.length)return n[0];const r=Hr(e)-Pn;return t.C(r,1)}function uo(t,e,n,r=0){Fo(n)&&Qo(n)<8&&Le("Cannot use small units");const a=Ea(go(t,e));return go(t,mo(t,a,n,r))}function co(t,e,n=0){const{calendar:r,epochNanoseconds:a,timeZone:o}=t,i=Go(e);let s=a;if(Xo(e)){const a=ro(t);s=io(o,Ia(mo(r,a,{...e,...ha},n),a))+i}else s+=i;return{...t,epochNanoseconds:Na(s)}}function ho(t,e,n,r=0){const[a,o]=lo(e,n);return Ha(Ia(mo(t,e,{...n,...ha,days:n.days+o},r),a))}function lo(t,e){return function(t,e){const n=Number(e/Pn),r=Number(e%Pn),[a,o]=vr(pr(t)+r);return[a,n+o]}(t,Go(e))}function fo(t,e){return function(t,e){return Na(t+e)}(t,(Xo(n=e)&&Le("Cannot use large units"),Go(n)));var n}function mo(t,e,n,r=0){let a,{years:o,months:i,weeks:s,days:u}=n;if(u+=Number(Go(n)/Pn),o||i)a=yo(t,e,o,i,r);else{if(!s&&!u)return e;a=e}return(s||u)&&(a=po(a,7*s+u)),Ea(a)}function go(t,e){return po(e,1-Vr(t,e).day)}function yo(t,e,n,r,a){const o=Vr(t,e);let{year:i,month:s,day:u}=o;if(n){const[e,r]=Kr(t,i,s);i+=n,s=Ao(t,e,r,t?t.p(i):void 0,a),s=Ze("month",s,1,Wr(t,i),a)}if(r){const e=So(t,i,s,r);({year:i,month:s}=e)}return u=Ze("day",u,1,qr(t,i,s),a),Jr(t,i,s,u)}function So(t,e,n,r){return t?t.ae(e,n,r):function(t,e,n){return t+=dn(n,12),(e+=fn(n,12))<1?(t--,e+=12):e>12&&(t++,e-=12),{year:t,month:e}}(e,n,r)}function Ao(t,e,n,r,a){if(n){const n=t?t.l:void 0;return void 0!==r&&(n<0||r===e+1)?r:(1===a&&Le(we),n<0?-n:e)}return wn(e,0,r)}function po(t,e){return e?Br(kr(t)+e):t}function Io(t,e){return In(t)!==In(e)&&Le("Mismatching Calendars"),t}function To(t,e,n,r,a,o,i){return r<6?vo(e.epochNanoseconds,n.epochNanoseconds,r,a,o,i):((t,e,n,r,a,o,i)=>{const s=n.epochNanoseconds;if(s===e.epochNanoseconds)return ca;let u;const c=(h=e.timeZone,l=n.timeZone,h.m!==l.m&&Le("Mismatching TimeZones"),h);var h,l;return u=wo(c,t,e,n,r),u=Fa(u,s,r,a,o,i,_o(t,c,e),1),u})(t,e,n,r,a,o,i)}function Mo(t,e,n,r,a,o,i,s=6){const u=Cr(n);if(!No(e,n))return ca;let c;return c=Ho(t,e,n,r),a===s&&1===o||(c=Fa(c,u,r,a,o,i,Bo(t,e))),c}function vo(t,e,n,r,a,o){return{...ca,...Wo(Xa(e-t,no(r,a),o),n)}}function wo(t,e,n,r,a){return a<6?{...ca,...Wo(r.epochNanoseconds-n.epochNanoseconds,a)}:((t,n,r)=>{const o=sn(r.epochNanoseconds,n.epochNanoseconds);if(!o)return ca;if(!No(ro(n),ro(r)))return{...ca,...Wo(r.epochNanoseconds-n.epochNanoseconds,5)};const[i,s,u]=function(t,e,n,r){const a=ro(e),o=ro(n),i=n.epochNanoseconds;let s=0;const u=pr(o)-pr(a);Math.sign(u)===-r&&s++;const c=s+(r>0?1:0);for(;;s++){const e=po(o,s*-r),n=io(t,Ia(e,a));if(s===c||sn(i,n)!==-r)return[a,e,Number(i-n)]}}(t,n,r,o);return{...(c=i,h=s,Ho(e,c,h,a)),...qo(u)};var c,h})(t,n,r)}function bo(t,e,n,r){const a=Hr(e),o=Hr(n),i=sn(o,a);return i?r<=6?{...ca,...Wo(o-a,r)}:Eo(t,e,n,i,r):ca}function Eo(t,e,n,r,a){let o=n,i=pr(n)-pr(e);return Math.sign(i)===-r&&(o=po(n,-r),i+=On*r),{...Ho(t,e,o,a),...qo(i)}}function Ho(t,e,n,r){if(r<=7)return((t,e,n)=>{const r=Co(e,n);return t?{...ca,weeks:dn(r,7),days:fn(r,7)}:{...ca,days:r}})(7===r,e,n);const a=Vr(t,e),o=Vr(t,n);if(8===r){const{year:r,month:i,day:s}=a,{year:u,month:c,day:h}=o,l=Math.sign(on(u,r)||on(c,i)||Co(e,n));let d=0,f=0;if(l){d=t?t.ee(r,i,u,c):function(t,e,n,r){return 12*(n-t)+r-e}(r,i,u,c);let a=yo(t,e,0,d,0);l*on(s,h)>0&&(d-=l,a=yo(t,e,0,d,0)),f=Co(a,n)}return{...ca,months:d,days:f}}const{year:i,month:s,day:u}=a;let{year:c,month:h,day:l}=o,d=c-i,f=h-s,m=l-u;if(d||f){const e=Math.sign(d||f);let n=qr(t,c,h),r=0;if(Math.sign(l-u)===-e){const a=n,o=So(t,c,h,-e);({year:c,month:h}=o),d=c-i,f=h-s,n=qr(t,c,h),r=e<0?-a:n}if(m=l-Math.min(u,n)+r,d){const[n,r]=Kr(t,i,s),[a,o]=Kr(t,c,h),u=t?t.l:void 0;if(f=void 0!==u&&r&&!o&&(u<0?e>0&&a===-u:e<0&&a===n)?0:a-n||Number(o)-Number(r),Math.sign(f)===-e){const a=e<0&&-Wr(t,c);c-=e,d=c-i,f=h-Ao(t,n,r,t?t.p(c):void 0,0)+(a||Wr(t,c))}else if(t){const e=Ao(t,n,r,t.p(c),0);f=t.ee(c,e,c,h)}}}return{...ca,years:d,months:f,days:m}}function No(t,e){return on(t.year,e.year)||on(t.month,e.month)||on(t.day,e.day)}function Co(t,e){return kr(e)-kr(t)}function Do(t,e,n){return Lo(t)?((t,e,n)=>{const{calendar:r,timeZone:a}=t,o=co(t,e);return[wo(a,r,t,o,n),o.epochNanoseconds,_o(r,a,t)]})(t,e,n):((t,e,n)=>{const{calendar:r}=t,a=Ha(Ia(t,gr)),o=ho(r,a,e);return[bo(r,a,o,n),Hr(o),Bo(r,t)]})(t,e,n)}function ko(t,e){return Lo(t)?co(t,e).epochNanoseconds:Hr(ho(t.calendar,Ia(t,gr),e))}function Oo(t,e){return Xo(e)?t.ke(e):t.ne}function _o(t,e,n){const r=ro(n);return{ne:n.epochNanoseconds,ke:n=>io(e,Ia(mo(t,r,n),r))}}function Bo(t,e){return{ne:Cr(e),ke:n=>Cr(mo(t,e,n))}}function Lo(t){return"timeZone"in t}function Ro(t,e){return t<=6-(e?1:0)}function Yo(t,e,n){const r={};for(let a=e;a>=0;a--){const e=_n[a];r[n[a]]=dn(t,e),t=fn(t,e)}return r}const Zo=2**53;function Po(t,e,n){const r=Math.max(Qo(e),Qo(n));return r>6&&Le("Cannot use large units"),((t,e,n,r)=>xa(jo(((t,e,n,r)=>{const a=Ko(t)+Ko(e)*BigInt(r?-1:1);return Number.isFinite(Number(a/Pn))||Le(Ee),{...ca,...Wo(a,n)}})(e,n,r,t))))(t,e,n,r)}function Uo(t,e,n){const r=Qo(e),[a,o,i,s,u]=function(t,e,n){t=Rt(t,Yt);let r=Xt(t);const a=n(t.relativeTo);let o=Kt(t);const i=ie(t,7);let s=qt(t);return void 0===r&&void 0===s&&Le(He),null==s&&(s=0),null==r&&(r=Math.max(s,e)),he(r,s),o=ue(o,s,1),o>1&&s>5&&r!==s&&Le("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit"),[r,s,o,i,a]}(n,r,t);if(!u&&Math.max(r,a)<=6)return xa(jo(((t,e,n,r,a)=>{const o=Xa(Ko(t),no(n,r),a);return{...ca,...Wo(o,e)}})(e,a,o,i,s)));u||Le("Missing relativeTo");const c=Lo(u);if(!e.sign&&(!c||a<6))return e;const[h,l,d]=Do(u,e,a);return xa(Fa(h,l,a,o,i,s,d,c))}function xo(t){return xa(zo(t))}function zo(t){const e={};for(const n of ra)e[n]=-1*t[n]||0;return e}function Fo(t,e=ra){let n=0;for(const r of e){const e=Math.sign(t[r]);e&&(n&&n!==e&&Le("Cannot mix duration signs"),n=e)}return n}function jo(t){for(const e of ua)$o(e,t[e]);const e=Ko(t);return Vo(Number(e/Rn)),t}function $o(t,e){return Ze(t,e,-4294967295,4294967295,1)}function Vo(t){Number.isSafeInteger(t)||Le("Out-of-bounds duration")}function Ko(t){return BigInt(t.days)*Pn+Go(t)}function Go(t){return BigInt(t.hours)*Zn+BigInt(t.minutes)*Yn+Jo(t)}function Jo(t){return BigInt(t.seconds)*Rn+BigInt(t.milliseconds)*Ln+BigInt(t.microseconds)*Bn+BigInt(t.nanoseconds)}function Wo(t,e=6){const n=Number(t/Pn),r=Number(t%Pn),a=_n[e],o=e<=3?Number(t/BigInt(a)):n*(On/a)+dn(r,a);Number.isFinite(o)||Le(Ee),e<=3&&Math.abs(o)/(Cn/_n[e])>=Zo&&Le(Ee);const i=Yo(r,e,ra);return i[ra[e]]=o,i}function qo(t,e=5){return Yo(t,e,ra)}function Xo(t){return Boolean(Fo(t,sa))}function Qo(t){let e=9;for(;e>0&&!t[ra[e]];e--);return e}function ti(t,e){return sn(t.epochNanoseconds,e.epochNanoseconds)}function ei(t,e){return ni(t,e)||ri(t,e)}function ni(t,e){return on(kr(t),kr(e))}function ri(t,e){return on(pr(t),pr(e))}function ai(t){return 0===t?Sn:t?t.k:void 0}function oi(t,e,n=e){return ai(t)?n:e}function ii(t,e){const n=e||void 0,r=ai(e);let{era:a,eraYear:o,year:i}=t;if(void 0!==i&&(i=Ot(i,"year")),void 0!==o&&(o=Ot(o,"eraYear")),void 0!==a||void 0!==o){void 0!==a&&void 0!==o||Re("Mismatching era/eraYear"),r||Le("Forbidden era/eraYear");const t=An(a),e=r[t];void 0===e&&Le((t=>`Invalid era: ${t}`)(a));const s=n?._?n._(o,t,e):function(t,e){return(e+t)*(Math.sign(e)||1)||0}(o,e);void 0!==i&&i!==s&&Le("Mismatching year/eraYear"),i=s}else void 0===i&&Re(ve(r));return i}function si(t,e,n,r,a){let{month:o,monthCode:i}=t;if(void 0!==i){const t=((t,e,n,r,a=Mn(e))=>{const o=t?t.p(n):void 0,[i,s]=a;let u=wn(i,s,o);if(s){const e=t?t.l:void 0;void 0===e&&Le(we),e>0?(u>e&&Le(we),o!==u&&(1===r&&Le(we),u=wn(i,0,o))):(u!==-e&&Le(we),void 0===o&&1===r&&Le(we))}return u})(e,i,n,a,r);void 0!==o&&o!==t&&Le("Mismatching month/monthCode"),o=t,a=1}else void 0===o&&Re("Missing month/monthCode");return Ze("month",o,1,Wr(e,n),a)}function ui(t,e,n,r,a){return Ye(t,"day",1,qr(e,n,r),a)}function ci(t,e){return Ar($e(xn,{...gr,...t}),e)}const hi=Qe("([+-])(\\d{2})(?::?(\\d{2})(?::?(\\d{2})(?:[.,](\\d{1,9}))?)?)?");function li(t){const e=di(t);return void 0===e&&Le(Ce(t)),e}function di(t,e){const n=hi.exec(t);if(n&&(t=>(t=>{"T"!==t[0]&&"t"!==t[0]||(t=t.slice(1));const e=t.search(/[.,]/),n=e<0?t:t.slice(0,e),r=n.split(":");return 1===r.length?/^(?:\d{2}|\d{4}|\d{6})$/i.test(n):(2===r.length||3===r.length)&&r.every(t=>2===t.length&&/^\d{2}$/i.test(t))})(t.slice(1)))(n[0]))return((t,e)=>{const n=t[4]||t[5];e&&n&&Le(De(n));return r=(nn(t[2])*kn+nn(t[3])*Dn+nn(t[4])*Cn+tn(t[5]||""))*en(t[1]),Math.abs(r)>=On&&Le("Out-of-bounds offset"),r;var r})(n,e)}const fi={era:ya,month:_t,monthCode:(t,e)=>fa(Sa(t),e),day:_t},mi=Fe(xn,Ot),gi=Fe(ra,pa),yi=Object.assign({},fi,mi),Si={offset:t=>li(fa(Sa(t))),...yi};function Ai(t,e,n,r,a=!r){const o={};let i=0;for(const a of e){let e=t[a];if(void 0!==e){i=1;const t=n[a];t&&(e=t(e,a)),o[a]=e}else r&&r.includes(a)&&Re(Ie(a))}return a&&!i&&Re(Te(e)),o}function pi(t,e,n){const r=ai(e);void 0!==t.year||void 0!==t.era&&void 0!==t.eraYear||Re(ve(r)),void 0===t.monthCode&&void 0===t.month&&Re("Missing month/monthCode"),n||void 0!==t.day||Re(Ie("day"));const a=bi(t);return[ii(t,e),a]}function Ii(t,e){const n=e===pn,r=ai(e);void 0===t.day&&Re(Ie("day")),n||void 0===t.month||void 0!==t.year||void 0!==t.era&&void 0!==t.eraYear||Re(ve(r));const a=bi(t);return[void 0!==t.eraYear||void 0!==t.year?ii(t,e):void 0,a]}function Ti(t,e=gr,n){const r=Ia(t,e);return Ha(r),Za(r,n)}function Mi(t,e,n,r,a){const o=si(t,e,n,r,a);return Pa(Ea(Jr(e,n,o,ui(t,e,n,o,a))),e)}function vi(t,e,n,r,a){return function(t,e,n){return Pa(ba(Jr(t,e,n,1)),t)}(e,n,si(t,e,n,r,a))}function wi(t,e,n,r,a){const o=e===pn;let i,s,u,c=n;if(void 0===c&&o&&(c=1972),void 0!==c){o||Ea(Jr(e,c,1,1));const n=si(t,e,c,r,a);i=ui(t,e,c,n,a),[s,u]=Kr(e,c,n)}else{void 0===t.monthCode&&Re("Missing month/monthCode"),[s,u]=r;const n=e?e.re:1972;if(void 0!==n)i=ui(t,e,n,si(t,e,n,r,a),a);else{const n=0===a&&e?e.ge?.(s,u,t.day):void 0;i=void 0!==n?n:t.day}}return function(t,e,n,r,a,o){let i=n;i&&((t&&t.V?.[e])??1/0)<a&&(1===o&&Le(we),i=0,r=_e(a,1,(t&&t.U)??1/0));let s=t?t.u(e,Boolean(i),r):Lr(e,Boolean(i));for(;!s&&0===o&&r>1;)r--,s=t?t.u(e,Boolean(i),r):Lr(e,Boolean(i));s||Le("Cannot guess year");const{year:u,month:c}=s;return Pa(Ea(Jr(t,u,c,r)),t)}(e,s,u,i,t.day,a)}function bi(t){if(void 0!==t.monthCode)return Mn(t.monthCode)}const Ei=Intl.DateTimeFormat;const Hi={El_Aaiun:17,Tucuman:12,Tirane:11,Riga:10,Simferopol:9,Vienna:9,Tunis:8,Boa_Vista:6,Fortaleza:6,Maceio:6,Noronha:6,Recife:6,Gaza:6,Hebron:6,DeNoronha:6},Ni=-388152e4;function Ci(t,e,n){const[r,a,o,i]=function(t){const e=Gt(t=Dt(t)),n=ie(t,4),r=qt(t);return[t.timeZone,n,...Ae(ce(Yt,r,0,4),e)]}(n),s=void 0!==r;return((t,e,n,r,a,o)=>{n=Qa(n,BigInt(a),r);const i=e.B(n);return Ui(_r(n+BigInt(i)),o)+(t?$i(qa(i)):"Z")})(s,rs(s?t(r):"UTC"),e.epochNanoseconds,a,o,i)}function Di(t,e){const n=function(t){t=Dt(t);const e=re(t),n=Gt(t),r=oe(t),a=ie(t,4),o=qt(t);return[e,ae(t),r,a,...Ae(ce(Yt,o,0,4),n)]}(e);return((t,e,n,r,a,o,i,s,u,c)=>{r=Qa(r,BigInt(u),s);const h=n.B(r);return Ui(_r(r+BigInt(h)),c)+$i(qa(h),i)+function(t,e){return 1!==e?"["+(2===e?"!":"")+t+"]":""}(e,o)+Vi(t,a)})(t.calendar,t.timeZone.id,t.timeZone,t.epochNanoseconds,...n)}function ki(t,e){const n=function(t){return t=Dt(t),[re(t),...ge(t)]}(e);return((t,e,n,r,a,o)=>Ui($a(e,a,r),o)+Vi(t,n))(t.calendar,t,...n)}function Oi(t,e){return n=t.calendar,r=t,a=ye(e),xi(r)+Vi(n,a);var n,r,a}function _i(t,e){return Li(t.calendar,zi,t,ye(e))}function Bi(t,e){return Li(t.calendar,Fi,t,ye(e))}function Li(t,e,n,r){const a=r>1||0===r&&t!==pn;return 1===r?t===pn?e(n):xi(n):a?xi(n)+Ki(In(t),2===r):e(n)}function Ri(t,e){return((t,e,n,r)=>ji(Va(t,n,e)[0],r))(t,...Se(e))}function Yi(t,e){const[n,r,a]=Se(e,3);return r>1&&jo(t={...t,...ja(t,r,n)}),function(t,e){const{sign:n}=t,r=-1===n?zo(t):t,{hours:a,minutes:o}=r,i=Jo(r),s=Number(i/Rn),u=Number(i%Rn);Vo(s);const c=Ji(u,e),h=e>=0||!n||c;return(n<0?"-":"")+"P"+Zi({Y:Pi(r.years),M:Pi(r.months),W:Pi(r.weeks),D:Pi(r.days)})+(a||o||s||h?"T"+Zi({H:Pi(a),M:Pi(o),S:Pi(s,h)+c}):"")}(t,a)}function Zi(t){const e=[];for(const n in t){const r=t[n];r&&e.push(r,n)}return e.join("")}function Pi(t,e){if(!t&&!e)return"";const n=Object.create(null);return n.useGrouping=0,t.toLocaleString("fullwide",n)}function Ui(t,e){return xi(t)+"T"+ji(t,e)}function xi(t){return zi(t)+"-"+an(t.day)}function zi(t){const{year:e}=t;return(e<0||e>9999?Wi(e)+rn(6,Math.abs(e)):rn(4,e))+"-"+an(t.month)}function Fi(t){return an(t.month)+"-"+an(t.day)}function ji(t,e){const n=[an(t.hour),an(t.minute)];return-1!==e&&n.push(an(t.second)+((t,e,n,r)=>Ji(t*Nn+e*Hn+n,r))(t.millisecond,t.microsecond,t.nanosecond,e)),n.join(":")}function $i(t,e=0){if(1===e)return"";const[n,r]=hn(Math.abs(t),kn),[a,o]=hn(r,Dn),[i,s]=hn(o,Cn);return Wi(t)+an(n)+":"+an(a)+(i||s?":"+an(i)+Ji(s):"")}function Vi(t,e){return e>1||0===e&&t!==pn?Ki(In(t),2===e):""}function Ki(t,e){return"["+(e?"!":"")+"u-ca="+t+"]"}const Gi=/0+$/;function Ji(t,e){let n=rn(9,t);return n=void 0===e?n.replace(Gi,""):n.slice(0,e),n?"."+n:""}function Wi(t){return t<0?"-":"+"}const qi=/^(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$/,Xi=/[^\w\/:+-]+/;function Qi(t){return ts(t).id}function ts(t){const e=t.toUpperCase(),n=(t=>{const e=di(t,1);if(void 0!==e)return{id:$i(e),Z:e,m:e}})(e);if(n)return{kind:"fixed",...n};const r="UTC"===e?"UTC":(t=>(Xi.test(t)&&Le(be(t)),qi.test(t)&&Le("Forbidden ICU TimeZone"),t.toLowerCase().split("/").map((t,e)=>(t.length<=3||/\d/.test(t))&&!/etc|yap/.test(t)?t.toUpperCase():t.replace(/baja|dumont|[a-z]+/g,(t,n)=>t.length<=2&&!e||"in"===t||"chat"===t?t.toUpperCase():t.length>2||!n?qe(t).replace(/island|noronha|murdo|rivadavia|urville/,qe):t)).join("/")))(t);return es(r)}const es=Pe(t=>{if("UTC"===t)return{kind:"utc",id:t,m:t};const e=t.toUpperCase(),n=ns(e);return{kind:"named",id:t,format:n,m:n.resolvedOptions().timeZone}}),ns=Pe(t=>new Ei("en-u-hc-h23",{calendar:"iso8601",timeZone:t,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}));function rs(t){const e=ts(t);return as(e.id,e)}const as=Pe((t,e)=>"named"===e.kind?new is(t,e.m,e.format):new os(t,e.m,"fixed"===e.kind?e.Z:0));class os{constructor(t,e,n){this.id=t,this.m=e,this.Z=n}B(){return this.Z}R(t){return[Ca(t,this.Z)]}C(){}}class is{constructor(t,e,n){this.id=t,this.m=e,this.oe=((t,e)=>{const n=Pe(t),r=Pe(us),a=86400*e;function o(t){const[e,o]=cs(t,a),s=hs(e),u=hs(o),c=n(s),h=n(u);return c===h?c:i(r(s,u),c,h,t)}function i(e,n,r,a){let o,i;for(;(void 0===a||void 0===(o=a<e[0]?n:a>=e[1]?r:void 0))&&(i=e[1]-e[0]);){const n=e[0]+Math.floor(i/2);t(n)===r?e[1]=n:e[0]=n+1}return o}return{Ae(t){const e=o(t-86400),n=o(t+86400),r=t-e,a=t-n;if(e===n)return[r];const i=o(r);return i===o(a)?[t-i]:e>n?[r,a]:[]},ze:o,C:function t(e,o){if(o>0&&e>=864e10)return;if(o<0){if(e<=Ni)return;const n=ss()+94867200;if(e>n)return t(n,-1)}const s=o>0?Math.max(e,Ni):e;let[u,c]=cs(s,a);const h=a*o,l=o>0?Math.max(e,ss())+94867200:Ni,d=()=>o<0?c>l:u<l;for(;d();){const t=hs(u),a=hs(c),s=n(t),l=n(a);if(s!==l){const n=r(t,a);i(n,s,l);const u=n[0];if((on(u,e)||1)===o)return u}u+=h,c+=h}}}})((t=>e=>{const n=function(t,e){e<-864e13&&Le(Ee);const n=t.formatToParts(e),r={};for(const t of n)r[t.type]=t.value;return r}(t,1e3*e);return 86400*Or((t=>{const e=t.relatedYear;if(void 0!==e)return parseInt(e);const n=parseInt(t.year);return void 0!==t.era&&"bce"===An(t.era)?1-n:n})(n),parseInt(n.month),parseInt(n.day))+3600*parseInt(n.hour)+60*parseInt(n.minute)+parseInt(n.second)-e})(n),(t=>{const e=t.split("/").pop();return Hi[e]||60})(t))}B(t){return this.oe.ze((t=>br(t)[0])(t))*Cn}R(t){const e=86400*kr(t)+Tr(t),n=Mr(t);return this.oe.Ae(e).map(t=>Na(BigInt(t)*Rn+BigInt(n)))}C(t,e){const[n,r]=br(t),a=this.oe.C(n+(e>0||r?1:0),e);if(void 0!==a)return BigInt(a)*Rn}}function ss(){return Math.floor(Date.now()/1e3)}function us(t,e){return[t,e]}function cs(t,e){const n=Math.floor(t/e)*e;return[n,n+e]}function hs(t){return _e(t,-1e10,864e10)}function ls(t){Le(Ce(t))}function ds(t){"iso8601"!==t.calendarId&&Le(De(t.calendarId))}function fs(t){const e=Ns(t);return e&&!e.F||ls(t),e}function ms(t,e,n){return e&&"iso8601"===t.calendarId?(Fr(t),t.te&&yr(t),ps(e(t),n)):t.te?As(t,n):ps(t,n)}function gs(t){const e=12*t.year+t.month===wa?20:1;return{...t,day:e}}function ys(t){return{...t,year:1972}}function Ss(t,e,n){const r=rs(Qi(t.timeZoneId));let a;if(zr(t),t.te){const e=t.offset?li(t.offset):void 0,[,i,s]=me(n);a=oo(r,t,e,i,s,!(r.Z||void 0===t.offset||(o=t.offset,o.replace(/\D/g,"").length>4)),t.F)}else me(n),a=so(r,t);var o;return Na(a),Ya(a,r,e(t.calendarId))}function As(t,e){return zr(t),Ha(t),{...Ia(t,t),calendar:e(t.calendarId)}}function ps(t,e){return Fr(t),Ea(t),{calendar:e(t.calendarId),year:t.year,month:t.month,day:t.day}}function Is(t){return`(\\d{2})(?:(:?)(\\d{2})(?:\\${t}(\\d{2})(?:[.,](\\d{1,9}))?)?)?`}const Ts="(?:(?:([+-])(\\d{6}))|(\\d{4}))(-?)(\\d{2})\\4(\\d{2})(?:[T ]"+Is(8)+"(Z|([+-])"+Is(15)+")?)?",Ms=Qe("(?:(?:([+-])(\\d{6}))|(\\d{4}))-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})"),vs=Qe("(?:--)?(\\d{2})-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})"),ws=Qe(Ts+"((?:\\[(!?)([^\\]]*)\\]){0,9})"),bs=Qe("T?"+Is(2)+`(([+-])${Is(9)})?((?:\\[(!?)([^\\]]*)\\]){0,9})`),Es=new RegExp("\\[(!?)([^\\]]*)\\]","g"),Hs=Qe("([+-])?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?!$)(?:(\\d+)(?:[.,](\\d{1,9}))?H)?(?:(\\d+)(?:[.,](\\d{1,9}))?M)?(?:(\\d+)(?:[.,](\\d{1,9}))?S)?)?");function Ns(t){const e=ws.exec(t);return e?(t=>{const e=t[12],n="Z"===(e||"").toUpperCase();return{year:_s(t),month:parseInt(t[5]),day:parseInt(t[6]),...Os(t,7),...Bs(t[19]),te:Boolean(t[7]),F:n,offset:n?void 0:e}})(e):void 0}function Cs(t){const e=Ms.exec(t);if(e)return(t=>({year:_s(t),month:parseInt(t[4]),day:1,...Bs(t[5])}))(e)}function Ds(t){const e=vs.exec(t);return e?(t=>({year:1972,month:parseInt(t[1]),day:parseInt(t[2]),...Bs(t[3])}))(e):void 0}function ks(t){const e=bs.exec(t);if(e)return e[6]&&li(e[6]),e}function Os(t,e){const n=nn(t[e+3]);return{...vr(tn(t[e+4]||""))[0],hour:nn(t[e]),minute:nn(t[e+2]),second:60===n?59:n}}function _s(t){const e=en(t[1]),n=parseInt(t[2]||t[3]);return e<0&&!n&&Le(De(-0)),e*n}function Bs(t){let e,n;const r=[];return t.replace(Es,(t,a,o)=>{const i=Boolean(a),[s,u]=o.split("=").reverse();return u?"u-ca"===u?(r.push(s.toLowerCase()),e||(e=i)):(i||/[A-Z]/.test(u))&&Le(De(t)):(n&&Le(De(t)),n=s),""}),r.length>1&&e&&Le(De(t)),{timeZoneId:n,calendarId:r[0]||"iso8601"}}function Ls(t,e,n){const r=Object.assign(Object.create(null),e);return Rs(r,n,Wn),ai(t)&&(Rs(r,n,Jn),t&&t.je&&Rs(r,n,qn,Gn)),r}function Rs(t,e,n,r){let a=0;const o=[];for(const t of n)void 0!==e[t]?a=1:o.push(t);if(Object.assign(t,e),a)for(const e of r||o)delete t[e]}function Ys(t,e,n){const[r,a]=Kr(t,e,n);return vn(r,a)}function Zs(t,e,n){const[r,a]=function(t,e){const n=e((t=Rt(t,"unit")).relativeTo);let r=Qt(t);return r=da("unit",r),[r,n]}(n,t),o=Qo(e),i=Math.max(r,o),s=a&&Lo(a);if(!a&&Ro(i,s))return Ps(e,r);if(a||Le("Missing relativeTo"),!e.sign&&(!s||r<6))return 0;const[u,c,h]=Do(a,e,r);return Ro(r,s)?Ps(u,r):((t,e,n,r)=>{const a=ra[n],o=la(n,t);return function(t,e,n,r){const a=Oa(t,e,r,n);return Ba(a,Number(n-a.I)/Number(a.O-a.I))}(t[a],Fo(t)||1,e,t=>(o[a]=t,Oo(r,o)))})(u,c,r,h)}function Ps(t,e){return Un(Ko(t),_n[e])}function Us(t){return Za(ro(t),t.calendar)}function xs(t){return Pa(ro(t),t.calendar)}function zs(t){return Ua(ro(t))}function Fs(t,e,n){const r=oi(t,fr,mr);let a=Ls(t,e,n);a=Ai(a,r,fi,[]);const[o,i]=pi(a,t);return Mi(a,t,o,i,0)}function js(t){return t.timeZone="UTC",["full","long"].includes(t.timeStyle)&&(t.timeStyle="medium"),t}function $s(t,e,n){const r=t.resolvedOptions().calendar;!n&&e.calendar===pn||In(e.calendar)===r||Le("Mismatching Calendars")}function Vs(t,e,n,r,a){const o=new Set(t),i=new Set(e),s=new Set(n);return(t,e)=>{let n,u;const c={},h={},l={};let d=0,f=0;for(const e of Object.keys(t)){const r=t[e];void 0===r||s.has(e)||(o.has(e)?"dateStyle"===e?n=r:"timeStyle"===e?u=r:c[e]=r:"era"===e?h[e]=r:i.has(e)?"dateStyle"===e||"timeStyle"===e?f=1:d=1:l[e]=r)}const m=void 0!==n,g=void 0!==u,y=m||g,S=Object.keys(c).length>0,A=d||f,p=S||m||g,I=Object.keys(h).length>0;(!e&&A||e&&A&&!p||y&&(S||I||d))&&Re("Invalid formatting options");const T={};return y||p||Object.assign(T,r),Object.assign(T,c,h,l),m&&(a?Object.assign(T,a[n]):T.dateStyle=n),g&&(T.timeStyle=u),T}}const Ks={year:"numeric",month:"numeric",day:"numeric"},Gs={hour:"numeric",minute:"numeric",second:"numeric"},Js=Object.assign({},Ks,Gs),Ws=["weekday","year","month","day","dateStyle"],qs=["dayPeriod","hour","minute","second","fractionalSecondDigits","timeStyle"],Xs=Ws.concat(qs),Qs=["weekday","day"].concat(qs),tu=["weekday","year"].concat(qs),eu=Vs(Xs,[],[],Js),nu=Vs(Xs,[],[],{...Js,timeZoneName:"short"}),ru=Vs(Xs,[],["timeZoneName"],Js),au=Vs(Ws,qs,["timeZoneName"],Ks),ou=Vs(qs,Ws,["timeZoneName","era"],Gs),iu=Vs(["year","month","dateStyle"],Qs,["timeZoneName"],{year:"numeric",month:"numeric"},{full:{year:"numeric",month:"long"},long:{year:"numeric",month:"long"},medium:{year:"numeric",month:"short"},short:{year:"2-digit",month:"numeric"}}),su=Vs(["month","day","dateStyle"],tu,["timeZoneName","era"],{month:"numeric",day:"numeric"},{full:{month:"long",day:"numeric"},long:{month:"long",day:"numeric"},medium:{month:"short",day:"numeric"},short:{month:"numeric",day:"numeric"}});function uu(t){const e=cu(),n=t.B(e);return _r(e+BigInt(n))}function cu(){return BigInt(Date.now())*Ln}function hu(){return(new Ei).resolvedOptions().timeZone}const lu=globalThis.Temporal,du="PlainYearMonth",fu="PlainMonthDay",mu="PlainDate",gu="PlainDateTime",yu="PlainTime",Su="ZonedDateTime",Au="Instant",pu="Duration";function Iu(t,e,n,...r){return Object.defineProperties(e,Ue({name:t},1)),Object.defineProperties(e.prototype,xe("Temporal."+t)),Object.defineProperties(e.prototype,ze(t=>({get(){return t(n(this))},configurable:1}),Object.assign({},...r))),e}const Tu="noop"===We.name?t=>{Object.defineProperty(t,"_str_",{value:t.toJSON()})}:We;function Mu(){Re("Invalid calling context")}function vu(){Re("Cannot use valueOf")}const wu={era:t=>Gr(t.calendar,t).era,eraYear:t=>Gr(t.calendar,t).eraYear,year:t=>Vr(t.calendar,t).year,month:t=>Vr(t.calendar,t).month,monthCode:t=>Xr(t.calendar,t)},bu={era:t=>Gr(t.calendar,t).era,eraYear:t=>Gr(t.calendar,t).eraYear,year:t=>Vr(t.calendar,t).year,month:t=>Vr(t.calendar,t).month,monthCode:t=>Xr(t.calendar,t),day:t=>Vr(t.calendar,t).day},Eu={monthCode:t=>Xr(t.calendar,t),day:t=>Vr(t.calendar,t).day},Hu={daysInMonth:t=>ea(t.calendar,t),daysInYear:t=>na(t.calendar,t),monthsInYear:t=>ta(t.calendar,t),inLeapYear:t=>Qr(t.calendar,t)},Nu={dayOfWeek:t=>Zr(t),dayOfYear:t=>function(t,e){if(!t)return Pr(e);const{year:n}=Vr(t,e),r=Jr(t,n,1,1);return kr(e)-kr(r)+1}(t.calendar,t),weekOfYear:t=>function(t,e){return t===pn?Ur(e).weekOfYear:void 0}(t.calendar,t),yearOfWeek:t=>function(t,e){return t===pn?Ur(e).yearOfWeek:void 0}(t.calendar,t),daysInWeek:()=>7,daysInMonth:t=>ea(t.calendar,t),daysInYear:t=>na(t.calendar,t),monthsInYear:t=>ta(t.calendar,t),inLeapYear:t=>Qr(t.calendar,t)};function Cu(t,e,n,r){const[a,o,i,s]=le(t,r,3,5);return Lu(t,vo(e.epochNanoseconds,n.epochNanoseconds,a,o,i,s))}function Du(t,e,n,r){const a=Io(e.calendar,n.calendar),[o,i,s,u]=le(t,r,5);return Lu(t,To(a,e,n,o,i,s,u))}function ku(t,e,n,r){const a=Io(e.calendar,n.calendar),[o,i,s,u]=le(t,r,6);return Lu(t,function(t,e,n,r,a,o,i){return r<=6?vo(Hr(e),Hr(n),r,a,o,i):((t,e,n,r,a,o,i)=>{const s=Hr(n),u=sn(s,Hr(e));if(!u)return ca;let c;return c=Eo(t,e,n,u,r),c=Fa(c,s,r,a,o,i,((t,e)=>({ne:Hr(e),ke:n=>Hr(Ia(mo(t,e,n),e))}))(t,e)),c})(t,e,n,r,a,o,i)}(a,e,n,o,i,s,u))}function Ou(t,e,n,r){const a=Io(e.calendar,n.calendar),[o,i,s,u]=le(t,r,6,9,6);return Lu(t,function(t,e,n,r,a,o,i,s=6){return 6===r?vo(Cr(e),Cr(n),r,a,o,i):Mo(t,e,n,r,a,o,i,s)}(a,e,n,o,i,s,u))}function _u(t,e,n,r){const a=Io(e.calendar,n.calendar),[o,i,s,u]=le(t,r,9,9,8);return Lu(t,function(t,e,n,r,a,o,i){const s=go(t,e),u=go(t,n);return No(s,u)?Mo(t,Ea(s),Ea(u),r,a,o,i,8):ca}(a,e,n,o,i,s,u))}function Bu(t,e,n,r){const[a,o,i,s]=le(t,r,5,5);return Lu(t,function(t,e,n,r,a,o){const i=Da(pr(e)-pr(t),eo(r,a),o);return{...ca,...qo(i,n)}}(e,n,a,o,i,s))}function Lu(t,e){return xa(t?zo(e):e)}function Ru(t,e,n){const{calendar:r}=t,a=function(t,e,n){const r=oi(t,or,ir),{year:a,month:o,day:i}=Vr(t,e);return Ls(t,{year:a,monthCode:Ys(t,a,o),day:i},Ai(n,r,fi))}(r,t,e),[o,i]=pi(a,r);return Mi(a,r,o,i,fe(n))}function Yu(t,e,n){const{calendar:r}=t,[a,o]=function(t,e,n){const r=oi(t,sr,ur),{year:a,month:o,day:i}=Vr(t,e),s={year:a,monthCode:Ys(t,a,o),day:i,hour:e.hour,minute:e.minute,second:e.second,millisecond:e.millisecond,microsecond:e.microsecond,nanosecond:e.nanosecond},u=Ai(n,r,yi),c=Ls(t,s,u);return[{...s,...u},c]}(r,t,e),[i,s]=pi(o,r);return function(t,e,n,r,a,o){return Ti(Mi(e,n,r,a,o),Ar(t,o),n)}(a,o,r,i,s,fe(n))}function Zu(t,e,n){const{calendar:r}=t,a=function(t,e,n){const r=oi(t,tr,er),{year:a,month:o}=Vr(t,e);return Ls(t,{year:a,monthCode:Ys(t,a,o)},Ai(n,r,fi))}(r,t,e),[o,i]=pi(a,r,1);return vi(a,r,o,i,fe(n))}function Pu(t,e,n){const{calendar:r}=t,a=function(t,e,n){const r=oi(t,or,ir),{year:a,month:o,day:i}=Vr(t,e);return Ls(t,{monthCode:Ys(t,a,o),day:i},Ai(n,r,fi))}(r,t,e),[o,i]=Ii(a,r);return wi(a,r,o,i,fe(n))}function Uu(t,e,n){const r=function(t,e){return{...$e(Xn,t),...Ai(e,Xn,mi)}}(t,e);return ci(r,fe(n))}function xu(t,e,n){const{calendar:r}=t,[a,o]=function(t,e,n){const r=oi(t,cr,hr),a=ro(e),{year:o,month:i,day:s}=Vr(t,a),u={year:o,monthCode:Ys(t,o,i),day:s,hour:a.hour,minute:a.minute,second:a.second,millisecond:a.millisecond,microsecond:a.microsecond,nanosecond:a.nanosecond,offset:a.offsetNanoseconds},c=Ai(n,r,Si),h=Ls(t,u,c);return[{...u,...c},h]}(r,t,e),[i,s]=pi(o,r),[u,c,h]=me(n,2);return function(t,e,n,r,a,o,i,s){const{calendar:u,timeZone:c}=t;return Ya(oo(c,Ia(Mi(n,u,r,a,o),Ar(e,o)),e.offset,i,s),c,u)}(t,a,o,i,s,u,c,h)}function zu(t){return function(t,e=Je){const n=new WeakMap;function r(t){const e=n.get(t);return e||Re("Invalid calling context"),e}class a{constructor(r,a=Object.create(null)){const o=e(a),i=[],s=new Proxy(Object.create(null),{get(t,e){const n=o[e];return void 0!==n&&i.push(e),n}}),u=new Ei(r,s),c=u.resolvedOptions(),h=$e(i,c);n.set(this,{$:t({t:u,Ce:c.locale,G:h,Ee:o}),t:u})}get format(){const t=r(this);return t.we||(t.we=e=>{const[n,...r]=t.$.A(e);return n.format(...r)})}formatToParts(t){const{$:e}=r(this),[n,...a]=e.A(t);return n.formatToParts(...a)}resolvedOptions(){return r(this).t.resolvedOptions()}}const{prototype:o}=a;function i(t,e){return new a(t,e)}Ei.prototype.formatRange&&Object.defineProperties(o,Ue({formatRange(t,e){const{$:n}=r(this),[a,o,i]=n.v(t,e);return a.formatRange(o,i)},formatRangeToParts(t,e){const{$:n}=r(this),[a,o,i]=n.v(t,e);return a.formatRangeToParts(o,i)}}));const s=Object.getOwnPropertyDescriptors(Ei);return s.prototype.value=o,Object.defineProperties(i,s),o.constructor=i,Object.defineProperties(o,xe("Intl.DateTimeFormat")),i}(e=>{const n=Pe(t=>{let n;switch(t){case Au:n=eu(e.G,1);break;case gu:n=js(ru(e.G,1));break;case mu:n=js(au(e.G,1));break;case yu:n=js(ou(e.G,1));break;case du:n=js(iu(e.G,1));break;case fu:n=js(su(e.G,1));break;default:Re(ke(t))}return new Ei(e.Ce,n)});return{A(r){if(void 0===r)return[e.t];const a=t(r);if(!a)return[e.t,Number(r)];const[o,i]=a,s=n(o);return Fu(s,o,i),[s,ju(o,i)]},v(r,a){void 0!==r&&void 0!==a||Re(Oe);const o=t(r),i=o?void 0:Number(r),s=t(a),u=s?void 0:Number(a);if(!o&&!s)return[e.t,i,u];o&&s||Re(Oe);const[c,h]=o,[l,d]=s;c!==l&&Re(Oe);const f=n(c);return Fu(f,c,h),Fu(f,c,d),[f,ju(c,h),ju(c,d)]}}})}function Fu(t,e,n){switch(e){case Au:case yu:return;case gu:case mu:return void $s(t,n);case du:case fu:return void $s(t,n,1);default:Re(ke(e))}}function ju(t,e){switch(t){case Au:return Er(e.epochNanoseconds);case gu:return Nr(e);case mu:case du:case fu:return Dr(e);case yu:return Ir(e);default:Re(ke(t))}}function $u(t){const e=fa(t).toLowerCase();return e===yn?pn:"gregory"===e?0:void Le((n=t,r="temporal-polyfill/full",`Unknown calendar ${n}; might need ${r}`));var n,r}function Vu(t=yn){return $u(t)}const Ku=new WeakMap,Gu=Iu(Su,class{constructor(t,e,n=void 0){tc(this,Ya(Na(Aa(t)),rs(Qi(fa(e))),Vu(n)))}static from(t,e=void 0){return Ju(Qu(t,e))}static compare(t,e){return ti(Qu(t),Qu(e))}get calendarId(){return In(Wu(this).calendar)}get timeZoneId(){return Wu(this).timeZone.id}get epochMilliseconds(){return Er(Wu(this).epochNanoseconds)}get epochNanoseconds(){return Wu(this).epochNanoseconds}get offset(){return $i(ro(Wu(this)).offsetNanoseconds)}get offsetNanoseconds(){return ro(Wu(this)).offsetNanoseconds}get hoursInDay(){return function(t){const[e,n]=Wa(t);return Un(n-e,kn)}(Wu(this))}with(t,e=void 0){return Ju(xu(Wu(this),bc(t),e))}withCalendar(t){return Ju({...Wu(this),calendar:Wc(t)})}withTimeZone(t){return Ju({...Wu(this),timeZone:rs(ec(t))})}withPlainTime(t=void 0){return Ju(function(t,e){const{timeZone:n}=t,r=ro(t),{offsetNanoseconds:a}=r,o=e||gr;let i;return i=e?oo(n,Ia(r,o),a,2):so(n,Ia(r,o)),Ya(i,n,t.calendar)}(Wu(this),Oc(t)))}add(t,e=void 0){return Ju(co(Wu(this),nh(t),fe(e)))}subtract(t,e=void 0){return Ju(co(Wu(this),zo(nh(t)),fe(e)))}until(t,e=void 0){return Qc(Du(0,Wu(this),Qu(t),e))}since(t,e=void 0){return Qc(Du(1,Wu(this),Qu(t),e))}round(t){const e=Wu(this),[n,r,a]=de(t);return Ju(za(e,n,r,a))}startOfDay(){return Ju(function(t){const{timeZone:e,calendar:n}=t;return Ya(so(e,Ia(ro(t),gr)),e,n)}(Wu(this)))}equals(t){return e=Wu(this),n=Qu(t),!ti(e,n)&&e.timeZone.m===n.timeZone.m&&e.calendar===n.calendar;var e,n}toInstant(){return ac(Ra(Wu(this).epochNanoseconds))}toPlainDateTime(){return Rc(Us(Wu(this)))}toPlainDate(){return Fc(xs(Wu(this)))}toPlainTime(){return Nc(zs(Wu(this)))}toLocaleString(t=void 0,e={}){const n=Wu(this),r=new Ei(t,function(t,e){return void 0!==t.timeZone&&Re("Cannot specify TimeZone"),t.timeZone=e,t}(nu(e),function(t){return t.timeZone.id}(n)));return $s(r,n),r.format(Er(n.epochNanoseconds))}toString(t=void 0){return Di(Wu(this),t)}toJSON(){return Di(Wu(this))}getTimeZoneTransition(t){const e=Wu(this),n=e.timeZone.C(e.epochNanoseconds,function(t){const e=Rt(t,"direction"),n=se(e,0);return n||Le(pe("direction",n)),n}(t));return void 0!==n?Ju({...e,epochNanoseconds:n}):null}valueOf(){return vu()}},qu,bu,Nu,zn);function Ju(t){return tc(Object.create(Gu.prototype),t)}function Wu(t){return Xu(t)||Mu()}function qu(t){const e=Wu(t);return{...ro(e),calendar:e.calendar}}function Xu(t){return Ku.get(t)}function Qu(t,e){if(Be(t)){const n=Xu(t);if(n)return me(e),n;return function(t,e,n,r){const a=Ai(n,oi(e,lr,dr),Si,Kn,0),o=t(a.timeZone),[i,s]=pi(a,e),[u,c,h]=me(r),l=Mi(a,e,i,s,u),d=ci(a,u),f=rs(o);return Ya(oo(f,Ia(l,d),a.offset,c,h),f,e)}(ec,Gc(t),t,e)}return function(t,e,n){const r=Ns(fa(t));return r&&r.timeZoneId||ls(t),Ss(r,e,n)}(t,$u,e)}function tc(t,e){return Ku.set(t,e),Tu(t),t}function ec(t){if(Be(t)){const e=Xu(t);return e||Re(be(t)),e.timeZone.id}return(t=>Qi(function(t){const e=Ns(t);return e&&(e.timeZoneId||e.F&&"UTC"||e.offset)||t}(fa(t))))(t)}const nc=new WeakMap,rc=Iu(Au,class{constructor(t){cc(this,Ra(Na(Aa(t))))}static from(t){return ac(sc(t))}static fromEpochMilliseconds(t){return ac(function(t){return Ra(Na(BigInt(pa(t))*Ln))}(t))}static fromEpochNanoseconds(t){return ac(function(t){return Ra(Na(Aa(t)))}(t))}static compare(t,e){return ti(sc(t),sc(e))}get epochMilliseconds(){return Er(oc(this).epochNanoseconds)}get epochNanoseconds(){return oc(this).epochNanoseconds}add(t){return ac(Ra(fo(oc(this).epochNanoseconds,nh(t))))}subtract(t){return ac(Ra(fo(oc(this).epochNanoseconds,zo(nh(t)))))}until(t,e=void 0){return Qc(Cu(0,oc(this),sc(t),e))}since(t,e=void 0){return Qc(Cu(1,oc(this),sc(t),e))}round(t){const e=oc(this),[n,r,a]=de(t,5,1);return ac(Ra(Qa(e.epochNanoseconds,no(n,r),a)))}equals(t){return e=oc(this),n=sc(t),!ti(e,n);var e,n}toZonedDateTimeISO(t){return Ju(function(t,e,n){return Ya(t.epochNanoseconds,e,n)}(oc(this),rs(ec(t))))}toLocaleString(t=void 0,e={}){const n=oc(this);return new Ei(t,eu(e)).format(Er(n.epochNanoseconds))}toString(t=void 0){return Ci(ec,oc(this),t)}toJSON(){return Ci(ec,oc(this))}valueOf(){return vu()}});function ac(t){return cc(Object.create(rc.prototype),t)}function oc(t){return ic(t)||Mu()}function ic(t){return nc.get(t)}function sc(t){if(Be(t)){const e=ic(t);if(e)return e;const n=Xu(t);if(n)return Ra(n.epochNanoseconds)}return function(t){const e=Ns(t=fa(Sa(t)));let n;return e||ls(t),e.F?n=0:e.offset?n=li(e.offset):ls(t),e.timeZoneId&&di(e.timeZoneId,1),zr(e),Ra(Ca(e,n))}(t)}const{toTemporalInstant:uc}={toTemporalInstant(){const t=Date.prototype.valueOf.call(this);return ac(Ra(BigInt(ga(t))*Ln))}};function cc(t,e){return nc.set(t,e),Tu(t),t}const hc=new WeakMap,lc=Iu(fu,class{constructor(t,e,n=void 0,r){const a=Ot(t),o=Ot(e),i=Vu(n);yc(this,Pa(Ea(Fr({year:Ot(r??1972),month:a,day:o})),i))}static from(t,e=void 0){return dc(gc(t,e))}get calendarId(){return In(fc(this).calendar)}with(t,e=void 0){return dc(Pu(fc(this),bc(t),e))}equals(t){return e=fc(this),n=gc(t),!ni(e,n)&&e.calendar===n.calendar;var e,n}toPlainDate(t){return Fc(function(t,e,n){const r=oi(t,Fn,Qn);return Fs(t,$e(ar,e),Ai(Lt(n),r,fi,[]))}(fc(this).calendar,this,t))}toLocaleString(t=void 0,e={}){const n=fc(this),r=new Ei(t,js(su(e)));return $s(r,n,1),r.format(Dr(n))}toString(t=void 0){return Bi(fc(this),t)}toJSON(){return Bi(fc(this))}valueOf(){return vu()}},fc,Eu);function dc(t){return yc(Object.create(lc.prototype),t)}function fc(t){return mc(t)||Mu()}function mc(t){return hc.get(t)}function gc(t,e){if(Be(t)){const n=mc(t);if(n)return fe(e),n;const r=Jc(t);return function(t,e,n,r){const a=Ai(n,oi(t,or,ir),fi,jn,0);e&&void 0!==a.month&&void 0===a.monthCode&&void 0===a.year&&(a.year=1972);const[o,i]=Ii(a,t);return wi(a,t,o,i,fe(r))}(void 0===r?pn:r,void 0===r,t,e)}const n=function(t,e){const n=Ds(fa(t));if(n)return ds(n),Pa(Fr(n),e(n.calendarId));const r=ms(fs(t),ys,e),{calendar:a}=r,{year:o,month:i,day:s}=Vr(a,r),[u,c]=Kr(a,o,i),{year:h,month:l}=((t,e,n,r)=>{const a=t?t.u(e,n,r):Lr(e,n);return a||Le("Cannot guess year"),a})(a,u,c,s);return Pa(Ea(Jr(a,h,l,s)),a)}(t,$u);return fe(e),n}function yc(t,e){return hc.set(t,e),Tu(t),t}const Sc=new WeakMap,Ac=Iu(du,class{constructor(t,e,n=void 0,r){const a=Ot(t),o=Ot(e),i=Vu(n);vc(this,Pa(ba(Fr({year:a,month:o,day:Ot(r??1)})),i))}static from(t,e=void 0){return pc(Mc(t,e))}static compare(t,e){return ni(Mc(t),Mc(e))}get calendarId(){return In(Ic(this).calendar)}with(t,e=void 0){return pc(Zu(Ic(this),bc(t),e))}add(t,e=void 0){const n=Ic(this);return pc(Pa(uo(n.calendar,n,nh(t),fe(e)),n.calendar))}subtract(t,e=void 0){const n=Ic(this);return pc(Pa(uo(n.calendar,n,zo(nh(t)),fe(e)),n.calendar))}until(t,e=void 0){return Qc(_u(0,Ic(this),Mc(t),e))}since(t,e=void 0){return Qc(_u(1,Ic(this),Mc(t),e))}equals(t){return e=Ic(this),n=Mc(t),!ni(e,n)&&e.calendar===n.calendar;var e,n}toPlainDate(t){return Fc(function(t,e,n){return Fs(t,$e(oi(t,nr,rr),e),Ai(Lt(n),jn,fi,[]))}(Ic(this).calendar,this,t))}toLocaleString(t=void 0,e={}){const n=Ic(this),r=new Ei(t,js(iu(e)));return $s(r,n,1),r.format(Dr(n))}toString(t=void 0){return _i(Ic(this),t)}toJSON(){return _i(Ic(this))}valueOf(){return vu()}},Ic,wu,Hu);function pc(t){return vc(Object.create(Ac.prototype),t)}function Ic(t){return Tc(t)||Mu()}function Tc(t){return Sc.get(t)}function Mc(t,e){if(Be(t)){const n=Tc(t);if(n)return fe(e),n;return function(t,e,n,r){const a=Ai(e,oi(t,tr,er),fi,r),[o,i]=pi(a,t,1);return vi(a,t,o,i,fe(n))}(Gc(t),t,e)}const n=function(t,e){const n=Cs(fa(t));if(n)return ds(n),Pa(ba(Fr(n)),e(n.calendarId));const r=ms(fs(t),gs,e),{calendar:a}=r;return Pa(go(a,r),a)}(t,$u);return fe(e),n}function vc(t,e){return Sc.set(t,e),Tu(t),t}function wc(t){if(!Be(t))return;let e=ic(t);return e?[Au,e]:(e=Xu(t),e?[Su,e]:(e=Zc(t),e?[gu,e]:(e=$c(t),e?[mu,e]:(e=Dc(t),e?[yu,e]:(e=Tc(t),e?[du,e]:(e=mc(t),e?[fu,e]:(e=eh(t),e?[pu,e]:void 0)))))))}function bc(t){return(wc(t)||void 0!==t.calendar||void 0!==t.timeZone)&&Re("Invalid bag"),t}const Ec=new WeakMap,Hc=Iu(yu,class{constructor(t=0,e=0,n=0,r=0,a=0,o=0){_c(this,Ua(yr(ze(Ot,{hour:t,minute:e,second:n,millisecond:r,microsecond:a,nanosecond:o}))))}static from(t,e=void 0){return Nc(kc(t,e))}static compare(t,e){return ri(kc(t),kc(e))}with(t,e=void 0){return Nc(Uu(Cc(this),bc(t),e))}add(t){return Nc(lo(Cc(this),nh(t))[0])}subtract(t){return Nc(lo(Cc(this),zo(nh(t)))[0])}until(t,e=void 0){return Qc(Bu(0,Cc(this),kc(t),e))}since(t,e=void 0){return Qc(Bu(1,Cc(this),kc(t),e))}round(t){const e=Cc(this),[n,r,a]=de(t,5);return Nc(Va(e,eo(n,r),a)[0])}equals(t){return e=Cc(this),n=kc(t),!ri(e,n);var e,n}toLocaleString(t=void 0,e={}){const n=Cc(this);return new Ei(t,js(ou(e))).format(Ir(n))}toString(t=void 0){return Ri(Cc(this),t)}toJSON(){return Ri(Cc(this))}valueOf(){return vu()}},Cc,zn);function Nc(t){return _c(Object.create(Hc.prototype),t)}function Cc(t){return Dc(t)||Mu()}function Dc(t){return Ec.get(t)}function kc(t,e){if(Be(t)){const n=Dc(t);if(n)return fe(e),n;const r=Zc(t);if(r)return fe(e),Ua(r);const a=Xu(t);return a?(fe(e),zs(a)):function(t,e){return ci(Ai(t,Xn,mi,[],1),fe(e))}(t,e)}const n=function(t){let e,n=(t=>{const e=ks(t);return e?(Bs(e[13]),Os(e,1)):void 0})(t=fa(t));if(!n){const e=Ns(t);e&&e.te||ls(t),e.F&&Le(De("Z")),ds(e),n=e}return(e=Cs(t))&&jr(e)&&ls(t),(e=Ds(t))&&jr(e)&&ls(t),Ua(yr(n))}(t);return fe(e),n}function Oc(t){return void 0===t?void 0:kc(t)}function _c(t,e){return Ec.set(t,e),Tu(t),t}const Bc=new WeakMap,Lc=Iu(gu,class{constructor(t,e,n,r=0,a=0,o=0,i=0,s=0,u=0,c=void 0){Uc(this,Za(Ha(zr(ze(Ot,{year:t,month:e,day:n,hour:r,minute:a,second:o,millisecond:i,microsecond:s,nanosecond:u}))),Vu(c)))}static from(t,e=void 0){return Rc(Pc(t,e))}static compare(t,e){return ei(Pc(t),Pc(e))}get calendarId(){return In(Yc(this).calendar)}with(t,e=void 0){return Rc(Yu(Yc(this),bc(t),e))}withCalendar(t){return Rc(Za(Yc(this),Wc(t)))}withPlainTime(t=void 0){const e=Yc(this);return Rc(Ti(e,Oc(t),e.calendar))}add(t,e=void 0){const n=Yc(this);return Rc(Za(ho(n.calendar,n,nh(t),fe(e)),n.calendar))}subtract(t,e=void 0){const n=Yc(this);return Rc(Za(ho(n.calendar,n,zo(nh(t)),fe(e)),n.calendar))}until(t,e=void 0){return Qc(ku(0,Yc(this),Pc(t),e))}since(t,e=void 0){return Qc(ku(1,Yc(this),Pc(t),e))}round(t){const e=Yc(this),[n,r,a]=de(t);return Rc(Za($a(e,eo(n,r),a),e.calendar))}equals(t){return e=Yc(this),n=Pc(t),!ei(e,n)&&e.calendar===n.calendar;var e,n}toZonedDateTime(t,e=void 0){return Ju((n=Yc(this),r=rs(ec(t)),a=function(t){return ee(Dt(t))}(e),Ya(Na(io(r,n,a)),r,n.calendar)));var n,r,a}toPlainDate(){const t=Yc(this);return Fc(Pa(t,t.calendar))}toPlainTime(){return Nc(Ua(Yc(this)))}toLocaleString(t=void 0,e={}){const n=Yc(this),r=new Ei(t,js(ru(e)));return $s(r,n),r.format(Nr(n))}toString(t=void 0){return ki(Yc(this),t)}toJSON(){return ki(Yc(this))}valueOf(){return vu()}},Yc,bu,Nu,zn);function Rc(t){return Uc(Object.create(Lc.prototype),t)}function Yc(t){return Zc(t)||Mu()}function Zc(t){return Bc.get(t)}function Pc(t,e){if(Be(t)){const n=Zc(t);if(n)return fe(e),n;const r=$c(t);if(r)return fe(e),Za(Ia(r,gr),r.calendar);const a=Xu(t);if(a)return fe(e),Us(a);return function(t,e,n){const r=Ai(e,oi(t,sr,ur),yi,[],0),[a,o]=pi(r,t),i=fe(n);return Ti(Mi(r,t,a,o,i),ci(r,i),t)}(Gc(t),t,e)}const n=function(t,e){const n=Ns(fa(t));return n&&!n.F||ls(t),As(n,e)}(t,$u);return fe(e),n}function Uc(t,e){return Bc.set(t,e),Tu(t),t}const xc=new WeakMap,zc=Iu(mu,class{constructor(t,e,n,r=void 0){Kc(this,Pa(Ea(Fr(ze(Ot,{year:t,month:e,day:n}))),Vu(r)))}static from(t,e=void 0){return Fc(Vc(t,e))}static compare(t,e){return ni(Vc(t),Vc(e))}get calendarId(){return In(jc(this).calendar)}with(t,e=void 0){return Fc(Ru(jc(this),bc(t),e))}withCalendar(t){return Fc(Pa(jc(this),Wc(t)))}add(t,e=void 0){const n=jc(this);return Fc(Pa(mo(n.calendar,n,nh(t),fe(e)),n.calendar))}subtract(t,e=void 0){const n=jc(this);return Fc(Pa(mo(n.calendar,n,zo(nh(t)),fe(e)),n.calendar))}until(t,e=void 0){return Qc(Ou(0,jc(this),Vc(t),e))}since(t,e=void 0){return Qc(Ou(1,jc(this),Vc(t),e))}equals(t){return e=jc(this),n=Vc(t),!ni(e,n)&&e.calendar===n.calendar;var e,n}toZonedDateTime(t){const e=Be(t)?{timeZone:t.timeZone,plainTime:t.plainTime}:{timeZone:t},n=jc(this),r=ec(e.timeZone),a=e.plainTime,o=void 0!==a?kc(a):void 0;return Ju(function(t,e,n){let r;return r=n?io(e,Ia(t,n)):so(e,Ia(t,gr)),Ya(r,e,t.calendar)}(n,rs(r),o))}toPlainDateTime(t=void 0){const e=jc(this);return Rc(Ti(e,Oc(t),e.calendar))}toPlainYearMonth(){return pc(function(t,e){const n=Ai(e,oi(t,nr,rr),fi),[r,a]=pi(n,t,1);return vi(n,t,r,a,0)}(jc(this).calendar,this))}toPlainMonthDay(){return dc(function(t,e){const n=Ai(e,ar,fi),[r,a]=Ii(n,t);return wi(n,t,r,a,0)}(jc(this).calendar,this))}toLocaleString(t=void 0,e={}){const n=jc(this),r=new Ei(t,js(au(e)));return $s(r,n),r.format(Dr(n))}toString(t=void 0){return Oi(jc(this),t)}toJSON(){return Oi(jc(this))}valueOf(){return vu()}},jc,bu,Nu);function Fc(t){return Kc(Object.create(zc.prototype),t)}function jc(t){return $c(t)||Mu()}function $c(t){return xc.get(t)}function Vc(t,e){if(Be(t)){const n=$c(t);if(n)return fe(e),n;const r=Zc(t);if(r)return fe(e),Pa(r,r.calendar);const a=Xu(t);if(a)return fe(e),xs(a);return function(t,e,n,r=[]){const a=Ai(e,oi(t,or,ir),fi,r),[o,i]=pi(a,t);return Mi(a,t,o,i,fe(n))}(Gc(t),t,e)}const n=function(t,e){const n=ms(fs(fa(t)),void 0,e);return Pa(n,n.calendar)}(t,$u);return fe(e),n}function Kc(t,e){return xc.set(t,e),Tu(t),t}function Gc(t){const e=Jc(t);return void 0===e?pn:e}function Jc(t){const{calendar:e}=t;if(void 0!==e)return Wc(e)}function Wc(t){if(Be(t)){const e=$c(t)||Zc(t)||Xu(t)||mc(t)||Tc(t);return e||Re(Ct("Calendar",t)),e.calendar}return(t=>$u(function(t){const e=Ns(t)||Cs(t)||Ds(t);if(e)return e.calendarId;const n=ks(t);return n?Bs(n[13]).calendarId:t}(fa(t))))(t)}const qc=new WeakMap,Xc=Iu(pu,class{constructor(t=0,e=0,n=0,r=0,a=0,o=0,i=0,s=0,u=0,c=0){ah(this,xa(jo(ze(pa,{years:t,months:e,weeks:n,days:r,hours:a,minutes:o,seconds:i,milliseconds:s,microseconds:u,nanoseconds:c}))))}static from(t){return Qc(nh(t))}static compare(t,e,n=void 0){return function(t,e,n,r){const a=t(Dt(r).relativeTo),o=Math.max(Qo(e),Qo(n));return Ve(ra,e,n)?0:Ro(o,a&&Lo(a))?sn(Ko(e),Ko(n)):(a||Le("Missing relativeTo"),sn(ko(a,e),ko(a,n)))}(rh,nh(t),nh(e),n)}get sign(){return th(this).sign}get blank(){return!th(this).sign}with(t){return Qc((e=th(this),xa((n=e,r=t,jo({...n,...Ai(r,oa,gi)})))));var e,n,r}negated(){return Qc(xo(th(this)))}abs(){return Qc(-1===(t=th(this)).sign?xo(t):t);var t}add(t){return Qc(Po(0,th(this),nh(t)))}subtract(t){return Qc(Po(1,th(this),nh(t)))}round(t){return Qc(Uo(rh,th(this),t))}total(t){return Zs(rh,th(this),t)}toLocaleString(t=void 0,e){const n=th(this);return Intl.DurationFormat?new Intl.DurationFormat(t,e).format(n):Yi(n,e)}toString(t=void 0){return Yi(th(this),t)}toJSON(){return Yi(th(this))}valueOf(){return vu()}},th,aa);function Qc(t){return ah(Object.create(Xc.prototype),t)}function th(t){return eh(t)||Mu()}function eh(t){return qc.get(t)}function nh(t){return Be(t)?eh(t)||function(t){const e=Ai(t,oa,gi);return xa(jo({...ca,...e}))}(t):function(t){const e=Hs.exec(fa(t));return e||ls(t),xa(jo((t=>{let e=0,n=0,r=0,a={years:o(t[2]),months:o(t[3]),weeks:o(t[4]),days:o(t[5]),hours:o(t[6],t[7],5),minutes:o(t[8],t[9],4),seconds:o(t[10],t[11],3),...Yo(r,2,ra)};return e||Le(Te(ra)),en(t[1])<0&&(a=zo(a)),a;function o(t,a,o){let i=0,s=0;return o&&([i,r]=hn(r,_n[o])),void 0!==t&&(n&&Le(De(t)),s=(t=>{const e=parseInt(t);return Number.isFinite(e)||Le(De(t)),e})(t),e=1,a&&(r=tn(a)*(_n[o]/Cn),n=1)),i+s}})(e)))}(t)}function rh(t){if(void 0!==t){if(Be(t)){const e=Xu(t);if(e)return e;const n=$c(t);if(n)return n;const r=Zc(t);if(r)return Pa(r,r.calendar);return function(t,e,n){const r=Ai(n,oi(e,lr,dr),Si,[],0),a=void 0!==r.timeZone,[o,i]=pi(r,e),s=Mi(r,e,o,i,0);if(a){const n=ci(r),a=rs(t(r.timeZone));return{epochNanoseconds:oo(a,Ia(s,n),r.offset),timeZone:a,calendar:e}}return s}(ec,Gc(t),t)}return function(t,e){const n=Ns(fa(t));return n||ls(t),n.timeZoneId?Ss(n,e,void 0):(n.F&&ls(t),ps(n,e))}(t,$u)}}function ah(t,e){return qc.set(t,e),Tu(t),t}const oh=Object.defineProperties({},{...xe("Temporal.Now"),...Ue({timeZoneId:()=>hu(),instant:()=>ac(Ra(cu())),zonedDateTimeISO(t=hu()){const e=rs(ec(t));return Ju(Ya(cu(),e))},plainDateTimeISO:(t=hu())=>Rc(Za(uu(rs(ec(t))))),plainDateISO:(t=hu())=>Fc(Pa(uu(rs(ec(t))))),plainTimeISO:(t=hu())=>Nc(Ua(uu(rs(ec(t)))))})}),ih=Object.defineProperties({},{...xe("Temporal"),...Ue({PlainYearMonth:Ac,PlainMonthDay:lc,PlainDate:zc,PlainTime:Hc,PlainDateTime:Lc,ZonedDateTime:Gu,Instant:rc,Duration:Xc,Now:oh})}),sh=zu(wc);function uh(t){return t*Math.PI/180}function ch(t){return 180*t/Math.PI}lu||(Object.defineProperties(globalThis,Ue({Temporal:ih})),Object.defineProperties(Intl,Ue({DateTimeFormat:sh})),Object.defineProperties(Date.prototype,Ue({toTemporalInstant:uc})));class hh{constructor(t,e,n,r,a){this.setLocationName(t),this.setLatitude(e),this.setLongitude(n),this.setElevation(r),this.setTimeZone(a)}latitude;longitude;locationName=null;timeZoneId;elevation;getElevation(){return this.elevation}setElevation(t){if("number"!=typeof t)throw new TypeError("Invalid elevation");if(t<0)throw new RangeError(`elevation ${t} must be zero or positive`);this.elevation=t}setLatitude(t){if("number"!=typeof t)throw new TypeError("Invalid latitude");if(t<-90||t>90)throw new RangeError(`Latitude ${t} out of range [-90,90]`);this.latitude=t}getLatitude(){return this.latitude}setLongitude(t){if("number"!=typeof t)throw new TypeError("Invalid longitude");if(t<-180||t>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);this.longitude=t}getLongitude(){return this.longitude}getLocationName(){return this.locationName}setLocationName(t){this.locationName=t}getTimeZone(){return this.timeZoneId}setTimeZone(t){if(!t)throw new RangeError("Invalid timeZoneId");this.timeZoneId=t}}const lh=6356.9;class dh{constructor(t,e){this.date=e,this.geoLocation=t}static GEOMETRIC_ZENITH=90;static CIVIL_ZENITH=96;static NAUTICAL_ZENITH=102;static ASTRONOMICAL_ZENITH=108;date;geoLocation;getSunrise(){const t=this.getUTCSunrise0(dh.GEOMETRIC_ZENITH);return isNaN(t)?null:this.getDateFromTime(t,!0)}getSeaLevelSunrise(){const t=this.getUTCSeaLevelSunrise(dh.GEOMETRIC_ZENITH);return isNaN(t)?null:this.getDateFromTime(t,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(dh.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(dh.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(dh.ASTRONOMICAL_ZENITH)}getSunset(){const t=this.getUTCSunset0(dh.GEOMETRIC_ZENITH);return isNaN(t)?null:this.getDateFromTime(t,!1)}getSeaLevelSunset(){const t=this.getUTCSeaLevelSunset(dh.GEOMETRIC_ZENITH);return isNaN(t)?null:this.getDateFromTime(t,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(dh.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(dh.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(dh.ASTRONOMICAL_ZENITH)}static getTimeOffset(t,e){return null===t||isNaN(e)?null:t.add({milliseconds:e})}getSunriseOffsetByDegrees(t){const e=this.getUTCSunrise0(t);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSunsetOffsetByDegrees(t){const e=this.getUTCSunset0(t);return isNaN(e)?null:this.getDateFromTime(e,!1)}getUTCSunrise0(t){return this.getUTCSunrise(this.getAdjustedDate(),this.geoLocation,t,!0)}getUTCSeaLevelSunrise(t){return this.getUTCSunrise(this.getAdjustedDate(),this.geoLocation,t,!1)}getUTCSunset0(t){return this.getUTCSunset(this.getAdjustedDate(),this.geoLocation,t,!0)}getUTCSeaLevelSunset(t){return this.getUTCSunset(this.getAdjustedDate(),this.geoLocation,t,!1)}getAdjustedDate(){return this.date}getElevationAdjustment(t){return ch(Math.acos(lh/(lh+t/1e3)))}adjustZenith(t,e){let n=t;return t===dh.GEOMETRIC_ZENITH&&(n=t+(.8333333333333333+this.getElevationAdjustment(e))),n}static JULIAN_DAY_JAN_1_2000=2451545;static JULIAN_DAYS_PER_CENTURY=36525;getUTCSunrise(t,e,n,r){const a=r?e.getElevation():0,o=this.adjustZenith(n,a);let i=dh.getSunriseUTC(dh.getJulianDay(t),e.getLatitude(),-e.getLongitude(),o);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getUTCSunset(t,e,n,r){const a=r?e.getElevation():0,o=this.adjustZenith(n,a);let i=dh.getSunsetUTC(dh.getJulianDay(t),e.getLatitude(),-e.getLongitude(),o);for(i/=60;i<0;)i+=24;for(;i>=24;)i-=24;return i}getTemporalHour(t=this.getSeaLevelSunrise(),e=this.getSeaLevelSunset()){if(null===t||null===e)return NaN;const n=e.epochMilliseconds-t.epochMilliseconds;return Math.floor(n/12)}getSunTransit(t=this.getSeaLevelSunrise(),e=this.getSeaLevelSunset()){const n=this.getTemporalHour(t,e);return dh.getTimeOffset(t,6*n)}getDateFromTime(t,e){const n=this.getEpochMillisFromTime(t,e);return isNaN(n)?null:Temporal.Instant.fromEpochMilliseconds(n).toZonedDateTimeISO(this.geoLocation.getTimeZone())}getEpochMillisFromTime(t,e){if(isNaN(t))return NaN;let n=t;const r=this.getAdjustedDate(),a=Math.trunc(n);n-=a;const o=Math.trunc(n*=60);n-=o;const i=Math.trunc(n*=60);n-=i;const s=Math.trunc(this.geoLocation.getLongitude()/15);let u=0;e&&s+a>18?u=-1:!e&&s+a<6&&(u=1);const c=r.year;let h=Date.UTC(c,r.month-1,r.day,a,o,i,Math.trunc(1e3*n));if(c>=0&&c<100){const t=new Date(h);t.setUTCFullYear(c),h=t.getTime()}return h+864e5*u}static getJulianDay(t){let{year:e,month:n}=t;const{day:r}=t;n<=2&&(e-=1,n+=12);const a=Math.trunc(e/100),o=Math.trunc(2-a+a/4);return Math.floor(365.25*(e+4716))+Math.floor(30.6001*(n+1))+r+o-1524.5}static getJulianCenturiesFromJulianDay(t){return(t-dh.JULIAN_DAY_JAN_1_2000)/dh.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(t){return t*dh.JULIAN_DAYS_PER_CENTURY+dh.JULIAN_DAY_JAN_1_2000}static getSunGeometricMeanLongitude(t){let e=280.46646+t*(36000.76983+3032e-7*t);for(;e>360;)e-=360;for(;e<0;)e+=360;return e}static getSunGeometricMeanAnomaly(t){return 357.52911+t*(35999.05029-1537e-7*t)}static getEarthOrbitEccentricity(t){return.016708634-t*(42037e-9+1.267e-7*t)}static getSunEquationOfCenter(t){const e=uh(dh.getSunGeometricMeanAnomaly(t));return Math.sin(e)*(1.914602-t*(.004817+14e-6*t))+Math.sin(e+e)*(.019993-101e-6*t)+289e-6*Math.sin(e+e+e)}static getSunTrueLongitude(t){return dh.getSunGeometricMeanLongitude(t)+dh.getSunEquationOfCenter(t)}static getSunApparentLongitude(t){const e=125.04-1934.136*t;return dh.getSunTrueLongitude(t)-.00569-.00478*Math.sin(uh(e))}static getMeanObliquityOfEcliptic(t){return 23+(26+(21.448-t*(46.815+t*(59e-5-.001813*t)))/60)/60}static getObliquityCorrection(t){const e=125.04-1934.136*t;return dh.getMeanObliquityOfEcliptic(t)+.00256*Math.cos(uh(e))}static getSunDeclination(t){const e=dh.getObliquityCorrection(t),n=dh.getSunApparentLongitude(t),r=Math.sin(uh(e))*Math.sin(uh(n));return ch(Math.asin(r))}static getEquationOfTime(t){const e=dh.getObliquityCorrection(t),n=dh.getSunGeometricMeanLongitude(t),r=dh.getEarthOrbitEccentricity(t),a=dh.getSunGeometricMeanAnomaly(t);let o=Math.tan(uh(e)/2);o*=o;const i=Math.sin(2*uh(n)),s=Math.sin(uh(a));return 4*ch(o*i-2*r*s+4*r*o*s*Math.cos(2*uh(n))-.5*o*o*Math.sin(4*uh(n))-1.25*r*r*Math.sin(2*uh(a)))}static getSunHourAngleAtSunrise(t,e,n){const r=uh(t),a=uh(e);return Math.acos(Math.cos(uh(n))/(Math.cos(r)*Math.cos(a))-Math.tan(r)*Math.tan(a))}static getSunHourAngleAtSunset(t,e,n){const r=uh(t),a=uh(e);return-Math.acos(Math.cos(uh(n))/(Math.cos(r)*Math.cos(a))-Math.tan(r)*Math.tan(a))}static getSolarElevation(t,e,n){const r=dh.getJulianDay(t.toPlainDate()),a=dh.getJulianCenturiesFromJulianDay(r),o=dh.getEquationOfTime(a);let i=t.hour+12+(t.minute+o+t.second/60)/60;i=-360*i/24%360;const s=uh(n-i),u=uh(dh.getSunDeclination(a)),c=uh(e);return ch(Math.asin(Math.sin(c)*Math.sin(u)+Math.cos(c)*Math.cos(u)*Math.cos(s)))}static getSolarAzimuth(t,e,n){const r=dh.getJulianDay(t.toPlainDate()),a=dh.getJulianCenturiesFromJulianDay(r),o=dh.getEquationOfTime(a);let i=t.hour+12+(t.minute+o+t.second/60)/60;i=-360*i/24%360;const s=uh(n-i),u=uh(dh.getSunDeclination(a)),c=uh(e);return ch(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(c)-Math.tan(u)*Math.cos(c))))+180}static getSunriseUTC(t,e,n,r){const a=dh.getJulianCenturiesFromJulianDay(t),o=dh.getSolarNoonUTC(a,n),i=dh.getJulianCenturiesFromJulianDay(t+o/1440);let s=dh.getEquationOfTime(i),u=dh.getSunDeclination(i),c=dh.getSunHourAngleAtSunrise(e,u,r),h=n-ch(c),l=4*h,d=720+l-s;const f=dh.getJulianCenturiesFromJulianDay(dh.getJulianDayFromJulianCenturies(a)+d/1440);return s=dh.getEquationOfTime(f),u=dh.getSunDeclination(f),c=dh.getSunHourAngleAtSunrise(e,u,r),h=n-ch(c),l=4*h,d=720+l-s,d}static getSolarNoonUTC(t,e){const n=dh.getJulianCenturiesFromJulianDay(dh.getJulianDayFromJulianCenturies(t)+e/360);let r=dh.getEquationOfTime(n);const a=720+4*e-r,o=dh.getJulianCenturiesFromJulianDay(dh.getJulianDayFromJulianCenturies(t)-.5+a/1440);return r=dh.getEquationOfTime(o),720+4*e-r}static getSunsetUTC(t,e,n,r){const a=dh.getJulianCenturiesFromJulianDay(t),o=dh.getSolarNoonUTC(a,n),i=dh.getJulianCenturiesFromJulianDay(t+o/1440);let s=dh.getEquationOfTime(i),u=dh.getSunDeclination(i),c=dh.getSunHourAngleAtSunset(e,u,r),h=n-ch(c),l=4*h,d=720+l-s;const f=dh.getJulianCenturiesFromJulianDay(dh.getJulianDayFromJulianCenturies(a)+d/1440);return s=dh.getEquationOfTime(f),u=dh.getSunDeclination(f),c=dh.getSunHourAngleAtSunset(e,u,r),h=n-ch(c),l=4*h,d=720+l-s,d}}var fh=["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|-0.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"];class mh extends Map{#t=0;#e=new Map;#n=new Map;#r;#a;#o;constructor(t={}){if(super(),!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof t.maxAge&&0===t.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.#r=t.maxSize,this.#a=t.maxAge||Number.POSITIVE_INFINITY,this.#o=t.onEviction}get __oldCache(){return this.#n}#i(t){if("function"==typeof this.#o)for(const[e,n]of t)this.#o(e,n.value)}#s(t,e){return"number"==typeof e.expiry&&e.expiry<=Date.now()&&("function"==typeof this.#o&&this.#o(t,e.value),this.delete(t))}#u(t,e){if(!1===this.#s(t,e))return e.value}#c(t,e){return e.expiry?this.#u(t,e):e.value}#h(t,e){const n=e.get(t);return this.#c(t,n)}#l(t,e){this.#e.set(t,e),this.#t++,this.#t>=this.#r&&(this.#t=0,this.#i(this.#n),this.#n=this.#e,this.#e=new Map)}#d(t,e){this.#n.delete(t),this.#l(t,e)}*#f(){for(const t of this.#n){const[e,n]=t;if(!this.#e.has(e)){!1===this.#s(e,n)&&(yield t)}}for(const t of this.#e){const[e,n]=t;!1===this.#s(e,n)&&(yield t)}}get(t){if(this.#e.has(t)){const e=this.#e.get(t);return this.#c(t,e)}if(this.#n.has(t)){const e=this.#n.get(t);if(!1===this.#s(t,e))return this.#d(t,e),e.value}}set(t,e,{maxAge:n=this.#a}={}){const r="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.#e.has(t)?this.#e.set(t,{value:e,expiry:r}):this.#l(t,{value:e,expiry:r}),this}has(t){return this.#e.has(t)?!this.#s(t,this.#e.get(t)):!!this.#n.has(t)&&!this.#s(t,this.#n.get(t))}peek(t){return this.#e.has(t)?this.#h(t,this.#e):this.#n.has(t)?this.#h(t,this.#n):void 0}expiresIn(t){const e=this.#e.get(t)??this.#n.get(t);if(e)return e.expiry?e.expiry-Date.now():Number.POSITIVE_INFINITY}delete(t){const e=this.#e.delete(t);return e&&this.#t--,this.#n.delete(t)||e}clear(){this.#e.clear(),this.#n.clear(),this.#t=0}resize(t){if(!(t&&t>0))throw new TypeError("`maxSize` must be a number greater than 0");const e=[...this.#f()],n=e.length-t;n<0?(this.#e=new Map(e),this.#n=new Map,this.#t=e.length):(n>0&&this.#i(e.slice(0,n)),this.#n=new Map(e.slice(n)),this.#e=new Map,this.#t=0),this.#r=t}evict(t=1){const e=Number(t);if(!e||e<=0)return;const n=[...this.#f()],r=Math.trunc(Math.min(e,Math.max(n.length-1,0)));r<=0||(this.#i(n.slice(0,r)),this.#n=new Map(n.slice(r)),this.#e=new Map,this.#t=0)}*keys(){for(const[t]of this)yield t}*values(){for(const[,t]of this)yield t}*[Symbol.iterator](){for(const t of this.#e){const[e,n]=t;!1===this.#s(e,n)&&(yield[e,n.value])}for(const t of this.#n){const[e,n]=t;if(!this.#e.has(e)){!1===this.#s(e,n)&&(yield[e,n.value])}}}*entriesDescending(){let t=[...this.#e];for(let e=t.length-1;e>=0;--e){const n=t[e],[r,a]=n;!1===this.#s(r,a)&&(yield[r,a.value])}t=[...this.#n];for(let e=t.length-1;e>=0;--e){const n=t[e],[r,a]=n;if(!this.#e.has(r)){!1===this.#s(r,a)&&(yield[r,a.value])}}}*entriesAscending(){for(const[t,e]of this.#f())yield[t,e.value]}get size(){if(!this.#t)return this.#n.size;let t=0;for(const e of this.#n.keys())this.#e.has(e)||t++;return Math.min(this.#t+t,this.#r)}get maxSize(){return this.#r}get maxAge(){return this.#a}entries(){return this.entriesAscending()}forEach(t,e=this){for(const[n,r]of this.entriesAscending())t.call(e,r,n,this)}get[Symbol.toStringTag](){return"QuickLRU"}toString(){return`QuickLRU(${this.size}/${this.maxSize})`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}const gh=new Map,yh={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"},Sh=new mh({maxSize:120});class Ah extends hh{constructor(t,e,n,r,a,o,i,s){const u="number"==typeof t?t:parseFloat(t);if(isNaN(u)||u<-90||u>90)throw new RangeError(`Latitude ${t} out of range [-90,90]`);const c="number"==typeof e?e:parseFloat(e);if(isNaN(c)||c<-180||c>180)throw new RangeError(`Longitude ${e} out of range [-180,180]`);if(!r)throw new RangeError("Invalid timezone");const h="number"==typeof s&&s>0?s:0;a&&"string"!=typeof a&&(a=String(a)),super(a||null,u,c,h,r),this.il=Boolean(n),this.cc=o,"IL"===o&&(this.il=!0),this.geoid=i}getIsrael(){return this.il}getName(){return this.getLocationName()}getShortName(){const t=this.getLocationName();if(!t)return t;const e=t.indexOf(", ");if(-1===e)return t;if("US"===this.cc&&"D"===t[e+2]){if("C"===t[e+3])return t.substring(0,e+4);if("."===t[e+3]&&"C"===t[e+4])return t.substring(0,e+6)}return t.substring(0,e)}getCountryCode(){return this.cc}getTzid(){return this.getTimeZone()}getTimeFormatter(){return function(t){const e=Sh.get(t);if(e)return e;const n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour:"numeric",minute:"numeric",hour12:!1});return Sh.set(t,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(t){return 0===gh.size&&function(){for(const t of fh){const[e,n,r,a,o,i]=t.split("|"),s=new Ah(+r,+a,"IL"===n,o,e,n,void 0,+i);Ah.addLocation(e,s)}}(),gh.get(t.toLowerCase())}toString(){return JSON.stringify(this)}static legacyTzToTzid(t,e){if(t=+t,"none"===e){if(0===t)return"UTC";return`Etc/GMT${t>0?"+":""}${t}`}if(2===t&&"israel"===e)return"Asia/Jerusalem";if("eu"===e)switch(t){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"}return"usa"===e?yh[String(-1*t)]:void 0}static getUsaTzid(t,e,n){return 10===(e=+e)&&"AK"===t?"America/Adak":7===e&&"AZ"===t?"Y"===n?"America/Denver":"America/Phoenix":yh[e]}static addLocation(t,e){const n=t.toLowerCase();return!gh.has(n)&&(gh.set(n,e),!0)}}const ph={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 Ih(t,e,n){if("string"!=typeof t)throw new TypeError(`Bad timeStr: ${t}`);const r=n?.location?.getCountryCode()||(n?.il?"IL":"US"),a=n?.hour12;if(void 0!==a&&!a)return t;if(!a&&void 0===ph[r])return t;const o=t.split(":");let i=parseInt(o[0],10);return i<12&&e?(e=e.replace("p","a").replace("P","A"),0===i&&(i=12)):i>12?i%=12:0===i&&(i="00"),`${i}:${o[1]}${e}`}const Th=25920;function Mh(t,e){const n=function(t,e){const n=w(t);return(e+(n?6:5))%(n?13:12)+1}(t,e);return 31524+765433*(235*Math.trunc((t-1)/19)+(t-1)%19*12+Math.trunc(((t-1)%19*7+1)/19)+(n-1))}function vh(t,e){const n=Mh(t,e),r=function(t){return Math.trunc(t/Th)+-1373429}(n);let a=new mt(r);const o=Math.trunc(n/Th);let i=Math.trunc(n-o*Th),s=Math.trunc(i/1080);i-=1080*s;const u=Math.trunc(i/18);s>=6&&(a=a.next()),s=(s+18)%24;return{hdate:a,hour:s,minutes:u,chalakim:i-18*u}}function wh(t){const e=10*t.chalakim/3,n=Math.trunc(1e3*(e-Math.trunc(e))),r=t.hdate.greg(),a="Etc/GMT+2",o=Temporal.ZonedDateTime.from({year:r.getFullYear(),month:r.getMonth()+1,day:r.getDate(),hour:t.hour,minute:t.minutes,second:Math.trunc(e),millisecond:n,timeZone:a}),i=function(t,e,n){const r=4*e*6e4- -1*Q(n,t)*6e4;return Math.trunc(r)}(r,35.2354,a);return o.subtract({milliseconds:i}).withTimeZone("UTC")}function bh(t){return t.replaceAll("'","’")}function Eh(t){return t.toLowerCase().replaceAll("'","").replaceAll(" ","-")}const Hh=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Nh=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],Ch=["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],Dh="בַּלַּ֥יְלָה";class kh{constructor(t,e){this.m=vh(t,e),this.year=t,this.month=e}getMoladDate(){return this.m.hdate}getYear(){return this.year}getMonth(){return this.month}getMonthName(){return mt.getMonthName(this.month,this.year)}getDow(){return this.m.hdate.getDay()}getHour(){return this.m.hour}getMinutes(){return this.m.minutes}getChalakim(){return this.m.chalakim}getInstant(){return this.instant??=wh(this.m),this.instant}getTchilasZmanKidushLevana3Days(){return this.getInstant().add({hours:72})}getTchilasZmanKidushLevana7Days(){return this.getInstant().add({hours:168})}getSofZmanKidushLevanaBetweenMoldos(){return this.getInstant().add({hours:354,minutes:22,seconds:1,milliseconds:666})}getSofZmanKidushLevana15Days(){return this.getInstant().add({hours:360})}render(t,e){const n=st.gettext(this.getMonthName(),t),r=function(t){return st.isHebrewLocale(t)?Nh:"fr"===t?Ch:Hh}(t),a=r[this.getDow()],o=this.getMinutes(),i=this.getHour(),s=this.getChalakim(),u=st.gettext("Molad",t),c=st.lookupTranslation("min",t)??"minutes",h=st.gettext("chalakim",t),l=st.gettext("and",t);if(st.isHebrewLocale(t)){const e=function(t){return t<5?Dh:t<12?"בַּבֹּקֶר":t<17?"בַּצׇּהֳרַיִים":t<21?"בָּעֶרֶב":Dh}(i);let r=`${u} ${n} יִהְיֶה בַּיּוֹם ${a} בשָׁבוּעַ, בְּשָׁעָה ${i} ${e}, ו-${o} ${c}`;return 0!==s&&(r+=` ו-${s} ${h}`),"he-x-nonikud"===t.toLocaleLowerCase()?st.hebrewStripNikkud(r):r}const d=Ih(`${i}:${J(o)}`,"pm",e),f=`${u} ${bh(n)}: ${a}, ${d}`;return 0===s?f:f+` ${l} ${s} ${h}`}}class Oh extends Et{constructor(t,e,n,r){const a=new kh(e,n);super(t,`Molad ${a.getMonthName()} ${e}`,Mt.MOLAD),this.molad=a,this.options=r}render(t){return this.molad.render(t,this.options)}}function _h(t){const e=new Date(t);return e.setMilliseconds(0),e}const Bh=90,Lh=91.583;function Rh(t,e){return Math.floor((e-t)/12)}class Yh{constructor(t,e,n){this.hdate=new mt(e);const r=u(e)?e:this.hdate.greg();this.plainDate=new Temporal.PlainDate(r.getFullYear(),r.getMonth()+1,r.getDate()),this.gloc=t,this.noaa=new dh(t,this.plainDate),this.useElevation=Boolean(n)}getUseElevation(){return this.useElevation}setUseElevation(t){this.useElevation=t}timeAtAngle(t,e){const n=Bh+t;return _h(e?this.sunriseMillis(n,!0):this.sunsetMillis(n,!0))}sunriseMillis(t,e){const n=e?this.noaa.getUTCSunrise0(t):this.noaa.getUTCSeaLevelSunrise(t);return this.noaa.getEpochMillisFromTime(n,!0)}sunsetMillis(t,e){const n=e?this.noaa.getUTCSunset0(t):this.noaa.getUTCSeaLevelSunset(t);return this.noaa.getEpochMillisFromTime(n,!1)}sunrise(){return _h(this.sunriseMillis(Bh,this.useElevation))}seaLevelSunrise(){return _h(this.sunriseMillis(Bh,!1))}sunset(){return _h(this.sunsetMillis(Bh,this.useElevation))}seaLevelSunset(){return _h(this.sunsetMillis(Bh,!1))}dawn(){return _h(this.sunriseMillis(96,!0))}dusk(){return _h(this.sunsetMillis(96,!0))}gregEve(){const t=this.plainDate.subtract({days:1}),e=new Date(t.year,t.month-1,t.day);return new Yh(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise().getTime()-this.gregEve().getTime())/12}chatzot(){const t=this.sunriseMillis(Bh,!1);return _h(t+6*Rh(t,this.sunsetMillis(Bh,!1)))}chatzotNight(){return new Date(this.sunrise().getTime()-6*this.nightHour())}alotHaShachar(){return this.timeAtAngle(16.1,!0)}alotHaShachar72(){return this.sunriseOffset(-72,!1,!1)}alotHaShachar72zdt(){const t=this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise();return t?t.subtract({minutes:72}):null}misheyakir(){return this.timeAtAngle(11.5,!0)}misheyakirMachmir(){return this.timeAtAngle(10.2,!0)}getShaahZmanisBasedZmanMillis(t,e,n){return t+Math.trunc(Rh(t,e)*n)}getShaahZmanisBasedZman(t){const e=this.sunriseMillis(Bh,this.useElevation),n=this.sunsetMillis(Bh,this.useElevation);return _h(this.getShaahZmanisBasedZmanMillis(e,n,t))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}sofZmanBiurChametzGRA(){return this.getShaahZmanisBasedZman(5)}getTemporalHour72(t){const e=this.sunriseOffset(-72,!1,t),n=(this.sunsetOffset(72,!1,t).getTime()-e.getTime())/12;return[e,n]}getTemporalHourByDeg(t){const e=this.timeAtAngle(t,!0),n=(this.timeAtAngle(t,!1).getTime()-e.getTime())/12;return[e,n]}sofZmanShmaMGA(){const[t,e]=this.getTemporalHour72(!0),n=Math.floor(3*e);return new Date(t.getTime()+n)}sofZmanShmaMGA16Point1(){const[t,e]=this.getTemporalHourByDeg(16.1),n=Math.floor(3*e);return new Date(t.getTime()+n)}sofZmanShmaMGA19Point8(){const[t,e]=this.getTemporalHourByDeg(19.8),n=Math.floor(3*e);return new Date(t.getTime()+n)}sofZmanTfillaMGA(){const[t,e]=this.getTemporalHour72(!0),n=Math.floor(4*e);return new Date(t.getTime()+n)}sofZmanTfillaMGA16Point1(){const[t,e]=this.getTemporalHourByDeg(16.1),n=Math.floor(4*e);return new Date(t.getTime()+n)}sofZmanTfillaMGA19Point8(){const[t,e]=this.getTemporalHourByDeg(19.8),n=Math.floor(4*e);return new Date(t.getTime()+n)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaGedolaMGA(){const[t,e]=this.getTemporalHour72(!1),n=Math.floor(6.5*e);return new Date(t.getTime()+n)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}minchaKetanaMGA(){const[t,e]=this.getTemporalHour72(!1);return new Date(t.getTime()+Math.floor(9.5*e))}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(t=8.5){return this.timeAtAngle(t,!1)}tzeit72(){const t=this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset();return t?t.add({minutes:72}):null}neitzHaChama(){return this.sunrise()}shkiah(){return this.sunset()}beinHaShmashos(){const t=this.tzeit(7.083),e=t.getTime();return isNaN(e)?t:new Date(e-81e4)}getMidnightLastNight(){return this.plainDate.toZonedDateTime({timeZone:this.gloc.getTimeZone()})}getMidnightTonight(){return this.plainDate.add({days:1}).toZonedDateTime({timeZone:this.gloc.getTimeZone()})}getMoladBasedTime(t,e,n,r){const a=this.getMidnightLastNight(),o=this.getMidnightTonight();return Temporal.ZonedDateTime.compare(t,a)<0||Temporal.ZonedDateTime.compare(t,o)>0?null:null===e||null===n?t.withTimeZone(this.gloc.getTimeZone()):Temporal.ZonedDateTime.compare(t,e)>0&&Temporal.ZonedDateTime.compare(t,n)<0?r?n:e:t.withTimeZone(this.gloc.getTimeZone())}getSofZmanKidushLevanaBetweenMoldos(t=null,e=null){const n=this.hdate;if(n.getDate()<11||n.getDate()>16)return null;const r=new kh(n.getFullYear(),n.getMonth());return this.getMoladBasedTime(r.getSofZmanKidushLevanaBetweenMoldos(),t,e,!1)}getSofZmanKidushLevana15Days(t=null,e=null){const n=this.hdate;if(n.getDate()<11||n.getDate()>17)return null;const r=new kh(n.getFullYear(),n.getMonth());return this.getMoladBasedTime(r.getSofZmanKidushLevana15Days(),t,e,!1)}getTchilasZmanKidushLevana3Days(t=null,e=null){const n=this.hdate;if(n.getDate()>5&&n.getDate()<30)return null;const r=new kh(n.getFullYear(),n.getMonth());let a=this.getMoladBasedTime(r.getTchilasZmanKidushLevana3Days(),t,e,!0);if(null===a&&30===n.getDate()){const t=n.add(1,"week"),e=new kh(t.getFullYear(),t.getMonth());a=this.getMoladBasedTime(e.getTchilasZmanKidushLevana3Days(),null,null,!0)}return a}getZmanMolad(){const t=this.hdate;if(t.getDate()>2&&t.getDate()<27)return null;const e=new kh(t.getFullYear(),t.getMonth());let n=this.getMoladBasedTime(e.getInstant(),null,null,!0);if(null===n&&t.getDate()>26){const e=t.add(1,"week"),r=new kh(e.getFullYear(),e.getMonth());n=this.getMoladBasedTime(r.getInstant(),null,null,!0)}return n}getTchilasZmanKidushLevana7Days(t=null,e=null){const n=this.hdate;if(n.getDate()<4||n.getDate()>9)return null;const r=new kh(n.getFullYear(),n.getMonth());return this.getMoladBasedTime(r.getTchilasZmanKidushLevana7Days(),t,e,!0)}getSunriseBaalHatanya(){return this.sunriseMillis(Lh,!0)}getSunsetBaalHatanya(){return this.sunsetMillis(Lh,!0)}alosBaalHatanya(){return this.timeAtAngle(16.9,!0)}getShaahZmanisBaalHatanya(t){return _h(this.getShaahZmanisBasedZmanMillis(this.getSunriseBaalHatanya(),this.getSunsetBaalHatanya(),t))}sofZmanShmaBaalHatanya(){return this.getShaahZmanisBaalHatanya(3)}sofZmanTfilaBaalHatanya(){return this.getShaahZmanisBaalHatanya(4)}minchaGedolaBaalHatanya(){return this.getShaahZmanisBaalHatanya(6.5)}minchaKetanaBaalHatanya(){return this.getShaahZmanisBaalHatanya(9.5)}plagHaminchaBaalHatanya(){return this.getShaahZmanisBaalHatanya(10.75)}tzaisBaalHatanya(){return this.timeAtAngle(6,!1)}static formatTime(t,e){if(isNaN(t.getTime()))return"XX:XX";const n=e.format(t);return 50===n.charCodeAt(0)&&52===n.charCodeAt(1)&&58===n.charCodeAt(2)?"00"+n.substring(2):n}static roundTime(t){const e=t.getTime();if(isNaN(e))return t;const n=t.getMilliseconds(),r=t.getSeconds();if(0===r&&0===n)return t;const a=1e3*r+n;return new Date(e+(a>=3e4?6e4-a:-1*a))}static timeZoneOffset(t,e){const n=Q(t,e),r=Math.abs(n),a=r%60;return(n<0?"+":"-")+J(Math.floor(r/60))+":"+J(a)}static formatISOWithTimeZone(t,e){return isNaN(e.getTime())?"0000-00-00T00:00:00Z":X(t,e).substring(0,19)+Yh.timeZoneOffset(t,e)}sunriseOffset(t,e=!0,n=!1){const r=n?this.seaLevelSunrise():this.sunrise();return isNaN(r.getTime())?r:(e&&(t>0&&r.getSeconds()>=30&&t++,r.setSeconds(0,0)),new Date(r.getTime()+60*t*1e3))}sunsetOffset(t,e=!0,n=!1){const r=n?this.seaLevelSunset():this.sunset();return isNaN(r.getTime())?r:(e&&(t>0&&r.getSeconds()>=30&&t++,r.setSeconds(0,0)),new Date(r.getTime()+60*t*1e3))}static makeSunsetAwareHDate(t,e,n){const r=new Yh(t,e,n).sunset();let a=new mt(e);const o=r.getTime();return isNaN(o)||e.getTime()>=o&&(a=a.next()),a}}const Zh=f.NISAN,Ph=f.IYYAR;function Uh(t){if(t<5708)return null;let e;const n=new mt(15,Zh,t).getDay();return e=0===n?2:6===n?3:t<5764?4:2===n?5:4,new mt(e,Ph,t)}class xh{constructor(t,e){t=+t,this.year=t;const n=new mt(1,f.TISHREI,t),r=this.rh=n.abs(),a=n.getDay()+1;this.firstSaturday=mt.dayOnOrBefore(6,r+6);const o=+mt.isLeapYear(t);this.il=Boolean(e);const i=function(t){const e=mt.longCheshvan(t),n=mt.shortKislev(t);return e&&!n?2:!e&&n?0:1}(t);let s=`${o}${a}${i}`;if(cl[s]?(this.theSedraArray=cl[s],this.yearKey=s):(s+=+this.il,this.theSedraArray=cl[s],this.yearKey=s),!this.theSedraArray)throw new Error(`improper sedra year type ${s} calculated for ${t}`)}find(t){if("number"==typeof t){if(t>=zh.length||t<0&&!$h(t))throw new RangeError(`Invalid parsha number: ${t}`);return this.findInternal(t)}if("string"==typeof t){const e=Fh.get(t);return"number"==typeof e?this.find(e):t.includes("-")?t===Wh||t===Kh?this.findInternal(t):this.find(t.split("-")):this.findInternal(t)}if(Array.isArray(t)){const e=t.length;if(1!==e&&2!==e||"string"!=typeof t[0])throw new TypeError(`Invalid parsha argument: ${JSON.stringify(t)}`);if(1===e)return this.find(t[0]);const n=t[0],r=t[1],a=Fh.get(n),o=Fh.get(r);if("number"!=typeof a||"number"!=typeof o||o!==a+1||!$h(-a))throw new RangeError(`Unrecognized parsha name: ${n}-${r}`);return this.find(-a)}return null}findInternal(t){const e=this.theSedraArray.indexOf(t);return-1===e?null:new mt(this.firstSaturday+7*e)}findContaining(t){const e=this.find(t);if(e)return e;if("number"==typeof t){const e=-t;return $h(e)?this.find(e):this.find(e+1)}{const e=Fh.get(t);if(e){const t=-e;return $h(t)?this.find(t):this.find(t+1)}{const[e]=t.split("-");return this.find(e)}}}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(t){const e="number"==typeof t?t:mt.isHDate(t)?t.abs():NaN;if(isNaN(e))throw new TypeError(`Bad date argument: ${t}`);if(e<this.rh)throw new RangeError(`Date ${t} before start of Hebrew year ${this.year}`);const n=mt.dayOnOrBefore(6,e+6),r=(n-this.firstSaturday)/7,a=this.theSedraArray[r];if(void 0===a){return ll(this.year+1,this.il).lookup(n)}const o=new mt(n);if("string"==typeof a)return{parsha:[a],chag:!0,hdate:o,il:this.il,num:0};if(a>=0)return{parsha:[zh[a]],chag:!1,num:a+1,hdate:o,il:this.il};const i=Vh(a);return{parsha:[zh[i],zh[i+1]],chag:!1,num:[i+1,i+2],hdate:o,il:this.il}}lookupWeekday(t){const e="number"==typeof t?t:mt.isHDate(t)?t.abs():NaN;if(isNaN(e))throw new TypeError(`Bad date argument: ${t}`);if(e<this.rh)throw new RangeError(`Date ${t} before start of Hebrew year ${this.year}`);const n=new mt(e).getDay();if(1!==n&&4!==n)return;const r=new mt(mt.dayOnOrBefore(6,e+6)),a=this.lookup(r);return a.chag?this.findWeekdayParsha(r):a}findWeekdayParsha(t){const e=t.getFullYear(),n=this.il;if(t.getMonth()===f.TISHREI){const e=t.getDate();if(e>2&&e<=(n?22:23))return{parsha:["Vezot Haberakhah"],chag:!1,num:54,hdate:t,il:n}}const r=e===this.year?this:ll(e,n),a=new mt(1,f.TISHREI,e+1).abs()-1,o=a+30;for(let i=t.abs()+7;i<=o;i+=7){const t=(i>a?ll(e+1,n):r).lookup(i);if(!t.chag)return t}throw new Error(`can't find weekday parsha for ${t}/${n}`)}}const zh=["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","Vezot Haberakhah"],Fh=new Map;for(let t=0;t<zh.length;t++){const e=zh[t];Fh.set(e,t)}const jh=new Set([21,26,28,31,38,41,50]);function $h(t){return jh.has(-t)}function Vh(t){return-t}const Kh="Sukkot Shabbat Chol ha-Moed",Gh="Pesach",Jh="Pesach I",Wh="Pesach Shabbat Chol ha-Moed",qh="Pesach VII",Xh="Pesach VIII",Qh="Shavuot";function tl(t,e){return Array.from({length:e-t+1},(e,n)=>n+t)}const el=[51,52,Kh],nl=[52,"Yom Kippur",Kh],rl=["Rosh Hashana",52,"Sukkot","Shmini Atzeret"],al=tl(0,20),ol=tl(0,27),il=tl(33,40),sl=tl(43,49),ul=tl(43,50),cl={"020":el.concat(al,Vh(21),23,24,Wh,25,Vh(26),Vh(28),30,Vh(31),il,Vh(41),sl,Vh(50)),"0220":el.concat(al,Vh(21),23,24,Wh,25,Vh(26),Vh(28),30,Vh(31),33,Qh,tl(34,37),Vh(38),40,Vh(41),sl,Vh(50)),"0510":nl.concat(al,Vh(21),23,24,Jh,Xh,25,Vh(26),Vh(28),30,Vh(31),il,Vh(41),ul),"0511":nl.concat(al,Vh(21),23,24,Gh,25,Vh(26),Vh(28),tl(30,40),Vh(41),ul),"052":nl.concat(tl(0,24),qh,25,Vh(26),Vh(28),30,Vh(31),il,Vh(41),ul),"070":rl.concat(al,Vh(21),23,24,qh,25,Vh(26),Vh(28),30,Vh(31),il,Vh(41),ul),"072":rl.concat(al,Vh(21),23,24,Wh,25,Vh(26),Vh(28),30,Vh(31),il,Vh(41),sl,Vh(50)),1200:el.concat(ol,Wh,tl(28,33),Qh,tl(34,37),Vh(38),40,Vh(41),sl,Vh(50)),1201:el.concat(ol,Wh,tl(28,40),Vh(41),sl,Vh(50)),1220:el.concat(ol,Jh,Xh,tl(28,40),Vh(41),ul),1221:el.concat(ol,Gh,tl(28,50)),150:nl.concat(tl(0,28),qh,tl(29,50)),152:nl.concat(tl(0,28),Wh,tl(29,49),Vh(50)),170:rl.concat(ol,Wh,tl(28,40),Vh(41),sl,Vh(50)),1720:rl.concat(ol,Wh,tl(28,33),Qh,tl(34,37),Vh(38),40,Vh(41),sl,Vh(50))};cl["0221"]=cl["020"],cl["0310"]=cl["0220"],cl["0311"]=cl["020"],cl[1310]=cl[1220],cl[1311]=cl[1221],cl[1721]=cl[170];const hl=new mh({maxSize:120});function ll(t,e){const n=`${t}-${e?1:0}`;let r=hl.get(n);return r||(r=new xh(t,e),hl.set(n,r)),r}const dl=f.NISAN,fl=f.IYYAR,ml=f.SIVAN,gl=f.ELUL,yl=f.TISHREI,Sl=f.CHESHVAN,Al=f.SHVAT,pl=f.ADAR_II,Il=Mt.CHAG,Tl=Mt.LIGHT_CANDLES,Ml=Mt.YOM_TOV_ENDS,vl=Mt.CHUL_ONLY,wl=Mt.IL_ONLY,bl=Mt.LIGHT_CANDLES_TZEIS,El=Mt.MINOR_HOLIDAY,Hl=Mt.EREV,Nl=Mt.CHOL_HAMOED,Cl="🫓",Dl="🌿🍋",kl="Rosh Hashana II",Ol="Erev Yom Kippur",_l="Yom Kippur",Bl="Erev Sukkot",Ll="Sukkot I",Rl="Sukkot II",Yl="Sukkot III (CH''M)",Zl="Sukkot IV (CH''M)",Pl="Sukkot V (CH''M)",Ul="Sukkot VI (CH''M)",xl="Shmini Atzeret",zl="Simchat Torah",Fl="Sukkot II (CH''M)",jl="Sukkot VII (Hoshana Raba)",$l="Tu BiShvat",Vl="Erev Purim",Kl="Purim",Gl="Shushan Purim",Jl="Erev Pesach",Wl="Pesach I",ql="Pesach II",Xl="Pesach II (CH''M)",Ql="Pesach III (CH''M)",td="Pesach IV (CH''M)",ed="Pesach V (CH''M)",nd="Pesach VI (CH''M)",rd="Pesach VII",ad="Pesach VIII",od="Pesach Sheni",id="Lag BaOmer",sd="Erev Shavuot",ud="Shavuot",cd="Shavuot I",hd="Shavuot II",ld="Tu B'Av",dd="Rosh Hashana LaBehemot",fd="Erev Rosh Hashana",md="Yom Yerushalayim",gd="Ben-Gurion Day",yd="Family Day",Sd="Yitzhak Rabin Memorial Day",Ad="Herzl Day",pd="Jabotinsky Day",Id="Sigd",Td="Yom HaAliyah",Md="Yom HaAliyah School Observance",vd="Hebrew Language Day",wd={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_BEHAB:"Ta'anit BeHaB",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:gd,CHANUKAH_1_CANDLE:"Chanukah: 1 Candle",EREV_PESACH:Jl,EREV_PURIM:Vl,EREV_ROSH_HASHANA:fd,EREV_SHAVUOT:sd,EREV_SUKKOT:Bl,EREV_YOM_KIPPUR:Ol,FAMILY_DAY:yd,HEBREW_LANGUAGE_DAY:vd,HERZL_DAY:Ad,JABOTINSKY_DAY:pd,LAG_BAOMER:id,PESACH_I:Wl,PESACH_II:ql,PESACH_III_CHM:Ql,PESACH_II_CHM:Xl,PESACH_IV_CHM:td,PESACH_SHENI:od,PESACH_VII:rd,PESACH_VIII:ad,PESACH_VI_CHM:nd,PESACH_V_CHM:ed,PURIM:Kl,ROSH_HASHANA_II:kl,ROSH_HASHANA_LABEHEMOT:dd,SHAVUOT:ud,SHAVUOT_I:cd,SHAVUOT_II:hd,SHMINI_ATZERET:xl,SHUSHAN_PURIM:Gl,SIGD:Id,SIMCHAT_TORAH:zl,SUKKOT_I:Ll,SUKKOT_II:Rl,SUKKOT_III_CHM:Yl,SUKKOT_II_CHM:Fl,SUKKOT_IV_CHM:Zl,SUKKOT_VII_HOSHANA_RABA:jl,SUKKOT_VI_CHM:Ul,SUKKOT_V_CHM:Pl,TU_BAV:ld,TU_BISHVAT:$l,YITZHAK_RABIN_MEMORIAL_DAY:Sd,YOM_HAALIYAH:Td,YOM_HAALIYAH_SCHOOL_OBSERVANCE:Md,YOM_KIPPUR:_l,YOM_YERUSHALAYIM:md,CANDLE_LIGHTING:"Candle lighting",HAVDALAH:"Havdalah",FAST_BEGINS:"Fast begins",FAST_ENDS:"Fast ends",BIUR_CHAMETZ:"Biur Chametz",SOF_ZMAN_ACHILAT_CHAMETZ:"Finish eating chametz",YIZKOR:"Yizkor"},bd=[{mm:yl,dd:2,desc:kl,flags:Il|Ml,emoji:"🍏🍯"},{mm:yl,dd:9,desc:Ol,flags:Hl|Tl},{mm:yl,dd:10,desc:_l,flags:Il|Mt.MAJOR_FAST|Ml},{mm:yl,dd:14,desc:Bl,flags:vl|Hl|Tl,emoji:Dl},{mm:yl,dd:15,desc:Ll,flags:vl|Il|bl,emoji:Dl},{mm:yl,dd:16,desc:Rl,flags:vl|Il|Ml,emoji:Dl},{mm:yl,dd:17,desc:Yl,flags:vl|Nl,chmDay:1,emoji:Dl},{mm:yl,dd:18,desc:Zl,flags:vl|Nl,chmDay:2,emoji:Dl},{mm:yl,dd:19,desc:Pl,flags:vl|Nl,chmDay:3,emoji:Dl},{mm:yl,dd:20,desc:Ul,flags:vl|Nl,chmDay:4,emoji:Dl},{mm:yl,dd:22,desc:xl,flags:vl|Il|bl},{mm:yl,dd:23,desc:zl,flags:vl|Il|Ml},{mm:yl,dd:14,desc:Bl,flags:wl|Hl|Tl,emoji:Dl},{mm:yl,dd:15,desc:Ll,flags:wl|Il|Ml,emoji:Dl},{mm:yl,dd:16,desc:Fl,flags:wl|Nl,chmDay:1,emoji:Dl},{mm:yl,dd:17,desc:Yl,flags:wl|Nl,chmDay:2,emoji:Dl},{mm:yl,dd:18,desc:Zl,flags:wl|Nl,chmDay:3,emoji:Dl},{mm:yl,dd:19,desc:Pl,flags:wl|Nl,chmDay:4,emoji:Dl},{mm:yl,dd:20,desc:Ul,flags:wl|Nl,chmDay:5,emoji:Dl},{mm:yl,dd:22,desc:xl,flags:wl|Il|Ml},{mm:yl,dd:21,desc:jl,flags:Tl|Nl,chmDay:-1,emoji:Dl},{mm:Al,dd:15,desc:$l,flags:El,emoji:"🌳"},{mm:pl,dd:13,desc:Vl,flags:Hl|El,emoji:"🎭️📜"},{mm:pl,dd:14,desc:Kl,flags:El,emoji:"🎭️📜"},{mm:pl,dd:15,desc:Gl,flags:El,emoji:"🎭️📜"},{mm:dl,dd:14,desc:Jl,flags:wl|Hl|Tl,emoji:"🫓🍷"},{mm:dl,dd:15,desc:Wl,flags:wl|Il|Ml,emoji:Cl},{mm:dl,dd:16,desc:Xl,flags:wl|Nl,chmDay:1,emoji:Cl},{mm:dl,dd:17,desc:Ql,flags:wl|Nl,chmDay:2,emoji:Cl},{mm:dl,dd:18,desc:td,flags:wl|Nl,chmDay:3,emoji:Cl},{mm:dl,dd:19,desc:ed,flags:wl|Nl,chmDay:4,emoji:Cl},{mm:dl,dd:20,desc:nd,flags:wl|Nl|Tl,chmDay:5,emoji:Cl},{mm:dl,dd:21,desc:rd,flags:wl|Il|Ml,emoji:Cl},{mm:dl,dd:14,desc:Jl,flags:vl|Hl|Tl,emoji:"🫓🍷"},{mm:dl,dd:15,desc:Wl,flags:vl|Il|bl,emoji:"🫓🍷"},{mm:dl,dd:16,desc:ql,flags:vl|Il|Ml,emoji:Cl},{mm:dl,dd:17,desc:Ql,flags:vl|Nl,chmDay:1,emoji:Cl},{mm:dl,dd:18,desc:td,flags:vl|Nl,chmDay:2,emoji:Cl},{mm:dl,dd:19,desc:ed,flags:vl|Nl,chmDay:3,emoji:Cl},{mm:dl,dd:20,desc:nd,flags:vl|Nl|Tl,chmDay:4,emoji:Cl},{mm:dl,dd:21,desc:rd,flags:vl|Il|bl,emoji:Cl},{mm:dl,dd:22,desc:ad,flags:vl|Il|Ml,emoji:Cl},{mm:fl,dd:14,desc:od,flags:El},{mm:fl,dd:18,desc:id,flags:El,emoji:"🔥"},{mm:ml,dd:5,desc:sd,flags:Hl|Tl,emoji:"⛰️🌸"},{mm:ml,dd:6,desc:ud,flags:wl|Il|Ml,emoji:"⛰️🌸"},{mm:ml,dd:6,desc:cd,flags:vl|Il|bl,emoji:"⛰️🌸"},{mm:ml,dd:7,desc:hd,flags:vl|Il|Ml,emoji:"⛰️🌸"},{mm:f.AV,dd:15,desc:ld,flags:El,emoji:"❤️"},{mm:gl,dd:1,desc:dd,flags:El,emoji:"🐑"},{mm:gl,dd:29,desc:fd,flags:Hl|Tl,emoji:"🍏🍯"}],Ed=[{firstYear:5727,mm:fl,dd:28,desc:md,chul:!0},{firstYear:5737,mm:f.KISLEV,dd:6,desc:gd,satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:Al,dd:30,desc:yd},{firstYear:5758,mm:Sl,dd:12,desc:Sd,friSatMovetoThu:!0},{firstYear:5764,mm:fl,dd:10,desc:Ad,satPostponeToSun:!0},{firstYear:5765,mm:f.TAMUZ,dd:29,desc:pd,satPostponeToSun:!0},{firstYear:5769,mm:Sl,dd:29,desc:Id,chul:!0,suppressEmoji:!0,friSatMovetoThu:!0},{firstYear:5777,mm:dl,dd:10,desc:Td,chul:!0},{firstYear:5777,mm:Sl,dd:7,desc:Md},{firstYear:5773,mm:f.TEVET,dd:21,desc:vd,friSatMovetoThu:!0}];class Hd extends Et{constructor(t,e,n=0,r){super(t,e,n,r),"object"==typeof r&&null!==r&&Object.assign(this,r)}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(){const t=this.greg().getFullYear();if(t<100||t>2999)return;const e="https://www.hebcal.com/holidays/"+Eh(this.basename())+"-"+this.urlDateSuffix();return this.hasFlag("IL_ONLY")?e+"?i=on":e}urlDateSuffix(){const t=this.greg().getFullYear();return String(t)}getEmoji(){return this.emoji?this.emoji:this.hasFlag("SPECIAL_SHABBAT")?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const t=super.getCategories();if("unknown"!==t[0])return t;switch(this.getDesc()){case wd.LAG_BAOMER:case wd.LEIL_SELICHOT:case wd.PESACH_SHENI:case wd.EREV_PURIM:case wd.PURIM_KATAN:case wd.SHUSHAN_PURIM:case wd.TU_BAV:case wd.TU_BISHVAT:case wd.ROSH_HASHANA_LABEHEMOT:return["holiday","minor"]}return["holiday","major"]}render(t){return bh(super.render(t))}renderBrief(t){return bh(super.renderBrief(t))}}class Nd extends Hd{urlDateSuffix(){return tt(this.greg()).replaceAll("-","")}}const Cd=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];class Dd extends Hd{constructor(t,e,n,r){if(super(t,e,n),this.chanukahDay=r,this.emoji="🕎",8!==r){const t=r?r+1:1;this.emoji+=Cd[t]}}urlDateSuffix(){const t=this.greg();let e=t.getFullYear();return 0===t.getMonth()&&e--,String(e)}}class kd extends Hd{constructor(t,e,n){super(t,`Rosh Hashana ${e}`,n),this.hyear=e}render(t){return st.gettext("Rosh Hashana",t)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const Od="Rosh Chodesh";class _d extends Hd{constructor(t,e){super(t,`${Od} ${e}`,Mt.ROSH_CHODESH)}render(t){const e=this.getDesc().substring(13),n=bh(st.gettext(e,t));return st.gettext(Od,t)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}const Bd="Yom Kippur Katan";class Ld extends Hd{constructor(t,e){super(t,`${Bd} ${e}`,Mt.MINOR_FAST|Mt.YOM_KIPPUR_KATAN),this.nextMonthName=e,this.memo=`Minor Day of Atonement on the day preceeding Rosh Chodesh ${e}`}basename(){return this.getDesc()}render(t){const e=bh(st.gettext(this.nextMonthName,t));return st.gettext(Bd,t)+" "+e}renderBrief(t){return st.gettext(Bd,t)}url(){}}function Rd(t,e){const n=mt.isHDate(t)?t:new mt(t),r=n.toString(),a=df(n.getFullYear()).get(r);if(void 0===e||void 0===a)return a;return a.filter(t=>t.observedIn(e))}const Yd=Mt.CHAG,Zd=Mt.IL_ONLY,Pd=Mt.LIGHT_CANDLES_TZEIS,Ud=Mt.CHANUKAH_CANDLES,xd=Mt.BEHAB,zd=Mt.MINOR_FAST,Fd=Mt.SPECIAL_SHABBAT,jd=Mt.MODERN_HOLIDAY,$d=Mt.MAJOR_FAST,Vd=Mt.MINOR_HOLIDAY,Kd=Mt.EREV,Gd=0,Jd=2,Wd=4,qd=5,Xd=6,Qd=f.NISAN,tf=f.IYYAR,ef=f.TAMUZ,nf=f.AV,rf=f.TISHREI,af=f.CHESHVAN,of=f.KISLEV,sf=f.TEVET,uf=f.ADAR_I,cf=f.ADAR_II,hf={emoji:"🇮🇱"},lf=new mh({maxSize:120});function df(t){if("number"!=typeof t)throw new TypeError(`bad Hebrew year: ${t}`);if(t<1||t>32658)throw new RangeError(`Hebrew year ${t} out of range 1-32658`);const e=lf.get(t);if(e)return e;const n=new mt(1,rf,t),r=new mt(15,Qd,t),a=new Map;function o(...t){for(const e of t){const t=e.date.toString(),n=a.get(t);"object"==typeof n?n[0].hasFlag("EREV")?n.unshift(e):n.push(e):a.set(t,[e])}}for(const e of bd){const n=new mt(e.dd,e.mm,t),r={};e.emoji&&(r.emoji=e.emoji),e.chmDay&&(r.cholHaMoedDay=e.chmDay);o(new Hd(n,e.desc,e.flags,r))}o(new kd(n,t,Yd|Pd));const i=n.getDay()===Wd?4:3;o(new Hd(new mt(i,rf,t),wd.TZOM_GEDALIAH,zd)),o(new Hd(new mt(mt.dayOnOrBefore(Xd,7+n.abs())),wd.SHABBAT_SHUVA,Fd));const s=mt.shortKislev(t)?new mt(1,sf,t):new mt(30,of,t);o(new Hd(s,wd.CHAG_HABANOT,Vd)),o(new Dd(new mt(24,of,t),wd.CHANUKAH_1_CANDLE,Kd|Vd|Ud,void 0));for(let e=2;e<=8;e++){const n=new mt(23+e,of,t);o(new Dd(n,`Chanukah: ${e} Candles`,Vd|Ud,e-1))}o(new Dd(new mt(32,of,t),wd.CHANUKAH_8TH_DAY,Vd,8)),o(new Nd(new mt(10,sf,t),wd.ASARA_BTEVET,zd));const u=r.abs();o(new Hd(new mt(mt.dayOnOrBefore(Xd,u-43)),wd.SHABBAT_SHEKALIM,Fd),new Hd(new mt(mt.dayOnOrBefore(Xd,u-30)),wd.SHABBAT_ZACHOR,Fd),new Hd(new mt(u-(r.getDay()===Jd?33:31)),wd.TAANIT_ESTHER,zd));const c=mt.dayOnOrBefore(Xd,u-14);o(new Hd(new mt(c-7),wd.SHABBAT_PARAH,Fd),new Hd(new mt(c),wd.SHABBAT_HACHODESH,Fd),new Hd(new mt(mt.dayOnOrBefore(Xd,u-1)),wd.SHABBAT_HAGADOL,Fd),new Hd(r.prev().getDay()===Xd?r.onOrBefore(Wd):new mt(14,Qd,t),wd.TAANIT_BECHOROT,zd)),o(new Hd(new mt(mt.dayOnOrBefore(Xd,new mt(1,rf,t+1).abs()-4)),wd.LEIL_SELICHOT,Vd,{emoji:"🕍"})),r.getDay()===Gd&&o(new Hd(new mt(16,cf,t),wd.PURIM_MESHULASH,Vd)),mt.isLeapYear(t)&&(o(new Hd(new mt(14,uf,t),wd.PURIM_KATAN,Vd,{emoji:"🎭️"})),o(new Hd(new mt(15,uf,t),wd.SHUSHAN_PURIM_KATAN,Vd,{emoji:"🎭️"})));const h=function(t){if(t<5711)return null;let e=new mt(27,Zh,t);return 5===e.getDay()?e=new mt(26,Zh,t):0===e.getDay()&&(e=new mt(28,Zh,t)),e}(t);h&&o(new Hd(h,wd.YOM_HASHOAH,jd));const l=Uh(t);l&&o(new Hd(l,wd.YOM_HAZIKARON,jd,hf),new Hd(l.next(),wd.YOM_HAATZMA_UT,jd,hf));for(const e of Ed)if(t>=e.firstYear){let n=new mt(e.dd,e.mm,t);const r=n.getDay();!e.friSatMovetoThu||r!==qd&&r!==Xd?e.friPostponeToSun&&r===qd?n=new mt(n.abs()+2):e.satPostponeToSun&&r===Xd&&(n=n.next()):n=n.onOrBefore(Wd);const a=e.chul?jd:jd|Zd,i=new Hd(n,e.desc,a);e.suppressEmoji||(i.emoji="🇮🇱"),o(i)}let d,m=new mt(17,ef,t);m.getDay()===Xd&&(m=new mt(18,ef,t),d={observed:!0}),o(new Hd(m,wd.TZOM_TAMMUZ,zd,d));let g,y=new mt(9,nf,t),S=wd.TISHA_BAV;y.getDay()===Xd&&(y=y.next(),g={observed:!0},S+=" (observed)");const A=y.abs();o(new Hd(new mt(mt.dayOnOrBefore(Xd,A)),wd.SHABBAT_CHAZON,Fd),new Hd(y.prev(),wd.EREV_TISHA_BAV,Kd|$d,g),new Hd(y,S,$d,g),new Hd(new mt(mt.dayOnOrBefore(Xd,A+7)),wd.SHABBAT_NACHAMU,Fd));const p=mt.monthsInYear(t);for(let e=1;e<=p;e++){const n=mt.getMonthName(e,t);30===(e===Qd?mt.daysInMonth(mt.monthsInYear(t-1),t-1):mt.daysInMonth(e-1,t))?(o(new _d(new mt(1,e,t),n)),o(new _d(new mt(30,e-1,t),n))):e!==rf&&o(new _d(new mt(1,e,t),n))}for(let e=f.IYYAR;e<=p;e++){const n=e+1;if(n===rf||n===f.CHESHVAN||n===sf)continue;let r=new mt(29,e,t);const a=r.getDay();a!==qd&&a!==Xd||(r=r.onOrBefore(Wd));const i=mt.getMonthName(n,t);o(new Ld(r,i))}for(const e of[af,tf]){const n=new mt(1,e,t);let r=new mt(mt.dayOnOrBefore(Xd,n.abs()+6));r.abs()===n.abs()&&(r=new mt(r.abs()+7));const a=[2,5,9].map(t=>new mt(r.abs()+t));e===tf&&14===a[2].getDate()&&(a[2]=new mt(17,tf,t));for(const t of a)o(new Hd(t,wd.TAANIT_BEHAB,zd|xd))}const I=ll(t,!1).find(15);o(new Hd(I,wd.SHABBAT_SHIRAH,Fd));const T=function(t){const e=mt.isLeapYear(t),n=e?cf:Qd,r=e?20:1,a=mt.hebrew2abs(t,n,r);for(let t=0;t<=40;t++){const e=a+t;if((e+1373429)%10227==172)return e}return 0}(t);if(T){const t=new mt(T);o(new Hd(t,wd.BIRKAT_HACHAMAH,Vd,{emoji:"☀️"}))}return lf.set(t,a),a}const ff=f.NISAN,mf=f.SIVAN,gf=f.TAMUZ,yf=f.AV;const Sf=wd.HAVDALAH,Af=wd.CANDLE_LIGHTING;class pf extends Et{constructor(t,e,n,r,a,o,i){super(t,e,n),this.eventTime=Yh.roundTime(r),this.location=a;const s=a.getTimeFormatter();this.eventTimeStr=Yh.formatTime(this.eventTime,s);const u={...i,location:a};this.fmtTime=Ih(this.eventTimeStr,"pm",u),void 0!==o&&(this.linkedEvent=o)}render(t){return st.gettext(this.getDesc(),t)+": "+this.fmtTime}renderBrief(t){return st.gettext(this.getDesc(),t)}getCategories(){switch(this.getDesc()){case Af:return["candles"];case Sf:return["havdalah"];case wd.FAST_BEGINS:case wd.FAST_ENDS:return["zmanim","fast"];case wd.SOF_ZMAN_ACHILAT_CHAMETZ:return["zmanim","achilasChametz"];case wd.BIUR_CHAMETZ:return["zmanim","biurChametz"]}return["unknown"]}}class If extends pf{constructor(t,e,n,r,a,o){super(t,Af,e,n,r,a,o)}getEmoji(){return"🕯️"}}class Tf extends pf{constructor(t,e,n,r,a,o,i){super(t,Sf,e,n,r,o,i),a&&(this.havdalahMins=a)}render(t){return this.renderBrief(t)+": "+this.fmtTime}renderBrief(t){let e=st.gettext(this.getDesc(),t);if(this.havdalahMins){const n=st.gettext("min",t);e+=` (${this.havdalahMins} ${n})`}return e}getEmoji(){return"✨"}}const Mf=Mt.LIGHT_CANDLES,vf=Mt.LIGHT_CANDLES_TZEIS;function wf(t,e,n,r,a){let o=!1,i=a,s=t?t.mask:Mf;void 0!==t?r||(t.hasAnyFlag("LIGHT_CANDLES_TZEIS","CHANUKAH_CANDLES")?i=!0:t.hasFlag("YOM_TOV_ENDS")&&(o=!0,i=!0)):a&&(o=!0,s=vf);const u=Number(i?n.havdalahMins:n.candleLightingMins),c=n.location,h=Boolean(n.useElevation),l=new Yh(c,e,h),d=i&&!u?l.tzeit(n.havdalahDeg):l.sunsetOffset(u,!0);if(!isNaN(d.getTime()))return o?new Tf(e,s,d,c,n.havdalahMins,t,n):(s|=Mf,new If(e,s,d,c,t,n))}const bf=wd.FAST_BEGINS,Ef=wd.FAST_ENDS;function Hf(t){return"number"==typeof t&&isFinite(t)&&0!==t?t:void 0}function Nf(t,e,n){if(e){const e=Hf(n.tishaBavEndMins);if(void 0!==e)return t.sunsetOffset(Math.abs(e),!0);const r=Hf(n.tishaBavEndDeg);return t.tzeit(void 0===r?6.45:Math.abs(r))}const r=n.fastEndMins;if("number"==typeof r&&0!==r)return t.sunsetOffset(Math.abs(r),!0);const a=n.fastEndDeg;return"number"==typeof a&&0!==a?t.tzeit(Math.abs(a)):n.il?t.sunsetOffset(15,!0):t.tzeit(7.0833333)}class Cf extends Hd{constructor(t,e,n){super(t.getDate(),t.getDesc(),t.mask),this.linkedEvent=t,this.startEvent=e,this.endEvent=n}render(t){return this.linkedEvent.render(t)}renderBrief(t){return this.linkedEvent.renderBrief(t)}urlDateSuffix(){return this.linkedEvent.urlDateSuffix()}url(){return this.linkedEvent.url()}getEmoji(){return this.linkedEvent.getEmoji()}getCategories(){return this.linkedEvent.getCategories()}}function Df(t,e){const n=t.getDesc();if("Yom Kippur"===n)throw new RangeError("YK does not require this function");const r=t.getDate(),a=r.greg(),o=e.location,i=Boolean(e.useElevation),s=new Yh(o,a,i);let u,c;if("Erev Tish'a B'Av"===n){const n=s.sunset();isNaN(n.getTime())||(u=kf(t,n,bf,e))}else if(n.startsWith("Tish'a B'Av")){const n=Nf(s,!0,e);isNaN(n.getTime())||(c=kf(t,n,Ef,e))}else{const n=function(t,e){const n=Hf(e.fastStartMins);if(void 0!==n)return t.sunriseOffset(-Math.abs(n),!0);const r=Hf(e.fastStartDeg);return t.timeAtAngle(void 0===r?16.1:Math.abs(r),!0)}(s,e);if(isNaN(n.getTime())||(u=kf(t,n,bf,e)),5!==a.getDay()&&(14!==r.getDate()||r.getMonth()!==f.NISAN)){const n=Nf(s,!1,e);isNaN(n.getTime())||(c=kf(t,n,Ef,e))}}const h=new Cf(t,u,c);return Object.assign(h,t),h}function kf(t,e,n,r){const a=r.location,o=t.getDate();return new pf(o,n,t.mask,e,a,t,r)}class Of extends Dd{constructor(t,e,n){super(t.getDate(),t.getDesc(),t.mask,t.chanukahDay),this.eventTime=Yh.roundTime(e);const r=n.getTimeFormatter();this.eventTimeStr=Yh.formatTime(this.eventTime,r),this.location=n,this.emoji=t.emoji}}var _f={ps67lines:["אֱלֹהִים יְחָנֵּנוּ וִיבָרְכֵנוּ יָאֵר־פָּנָיו אִתָּנוּ סֶלָה","לָדַעַת בָּאָרֶץ דַּרְכֶּךָ בְּכָל־גּוֹיִם יְשׁוּעָתֶךָ","יוֹדוּךָ עַמִּים אֱלֹהִים יוֹדוּךָ עַמִּים כֻּלָּם","יִשְׂמְחוּ וִירַנְּנוּ לְאֻמִּים כִּי־תִשְׁפֹּט עַמִּים מִישׁוֹר וּלְאֻמִּים בָּאָרֶץ תַּנחֵם סֶלָה","יוֹדוּךָ עַמִּים אֱלֹהִים יוֹדוּךָ עַמִּים כֻּלָּם","אֶרֶץ נָתְנָה יְבוּלָהּ יְבָרְכֵנוּ אֱלֹהִים אֱלֹהֵינוּ","יְבָרְכֵנוּ אֱלֹהִים וְיִירְאוּ אוֹתוֹ כָּל־אַפְסֵי־אָרֶץ"],lamnatzeachLetters:"ישמחווירננולאמיםכיתשפוטעמיםמישורולאמיםבארץתנחםסלה",anaBekoach:["אָנָּא","בְּכֹחַ","גְּדֻלַּת","יְמִינְךָ","תַּתִּיר","צְרוּרָה","אב״ג ית״ץ","קַבֵּל","רִנַּת","עַמְּךָ","שַׂגְּבֵנוּ","טַהֲרֵנוּ","נוֹרָא","קר״ע שט״ן","נָא","גִבּוֹר","דּוֹרְשֵׁי","יִחוּדְךָ","כְּבָבַת","שָׁמְרֵם","נג״ד יכ״ש","בָּרְכֵם","טַהֲרֵם","רַחֲמֵי","צִדְקָתְךָ","תָּמִיד","גָּמְלֵם","בט״ר צת״ג","חֲסִין","קָדוֹשׁ","בְּרֹב","טוּבְךָ","נַהֵל","עֲדָתֶךָ","חק״ב תנ״ע","יָחִיד","גֵּאֶה","לְעַמְּךָ","פְּנֵה","זוֹכְרֵי","קְדֻשָּׁתֶךָ","יג״ל פז״ק","שַׁוְעָתֵנוּ","קַבֵּל","וּשְׁמַע","צַעֲקָתֵנוּ","יוֹדֵעַ","תַּעֲלוּמוֹת","שק״ו צי״ת"]};const Bf={en:{infix:"within ",infix26:"within ",words:["","Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"],pfxWords:null},he:{infix:null,infix26:null,words:["","חֶֽסֶד","גְּבוּרָה","תִּפְאֶֽרֶת","נֶּֽצַח","הוֹד","יְּסוֹד","מַלְכוּת"],pfxWords:["","שֶׁבְּחֶֽסֶד","שֶׁבִּגְבוּרָה","שֶׁבְּתִפְאֶֽרֶת","שֶׁבְּנֶֽצַח","שֶׁבְּהוֹד","שֶׁבִּיְסוֹד","שֶׁבְּמַלְכוּת"]},translit:{infix:"sheb'",infix26:"shebi",words:["","Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"],pfxWords:null}};function Lf(t){return[Math.floor((t-1)/7)+1,t%7||7]}const Rf=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],Yf=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],Zf="שְׁנֵי",Pf="יָמִים",Uf=Zf+" "+Pf,xf="שָׁבוּעוֹת",zf="יוֹם",Ff=zf+" "+Yf[1],jf="עָשָׂר";const $f=_f.anaBekoach,Vf=_f.ps67lines.flatMap(t=>t.split(/[ ־]/)),Kf=_f.lamnatzeachLetters.split("");class Gf extends Et{constructor(t,e){super(t,`Omer ${e}`,Mt.OMER_COUNT),function(t){if(t<1||t>49)throw new RangeError(`Invalid Omer day ${t}`)}(e),this.weekNumber=Math.floor((e-1)/7)+1,this.daysWithinWeeks=e%7||7,this.omer=e}sefira(t="en"){"he"!==t&&"translit"!==t&&(t="en");const[e,n]=Lf(this.omer),r=Bf[t],a=r.pfxWords,o=r.words,i=a?a[e]:o[e];return(o[n]+" "+(a?"":2===e||6===e?r.infix26:r.infix)+i).normalize()}render(t){const e=st.isHebrewLocale(t),n=this.omer;return(e?V(n):st.ordinal(n,t))+" "+st.gettext("day of the Omer",t)}renderBrief(t){return st.gettext("Omer",t)+" "+st.gettext("day",t)+" "+this.omer}getEmoji(){if("string"==typeof this.emoji)return this.emoji;let t;const e=this.omer;return t=e<=20?9312+e-1:e<=35?12881+e-21:12977+e-36,String.fromCodePoint(t)}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(t){t=(t||"en").toLowerCase();const e=st.isHebrewLocale(t)?function(t){const e=Math.floor(t/10),n=t%10;let r="הַיּוֹם ";if(11===t?r+="אַחַד "+jf:12===t?r+="שְׁנֵים "+jf:12<t&&t<20?r+=Yf[n]+" "+jf:t>9&&(r+=Yf[n],n&&(r+=" ",r+=3===e?"וּ":"וְ")),t>2?((t>20||10===t||20===t)&&(r+=Rf[e]),r+=t<11?Yf[n]+" "+Pf+" ":" יוֹם "):r+=1===t?Ff+" ":Uf+" ",t>6){r=r.trim(),r+=", שֶׁהֵם ";const e=Math.floor(t/7),n=t%7;r+=e>2?Yf[e]+" "+xf+" ":1===e?"שָׁבֽוּעַ "+Yf[1]+" ":Zf+" "+xf+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?Yf[n]+" "+Pf+" ":1===n?Ff+" ":Uf+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(this.omer):function(t){const[e,n]=Lf(t);let r=`Today is ${t} ${1===t?"day":"days"}`;if(e>1||7===t){const t=7===n,a=t?e:e-1;r+=`, which are ${a} ${1===a?"week":"weeks"}`,t||(r+=` and ${n} ${1===n?"day":"days"}`)}return r+" of the Omer"}(this.omer);return"he-x-nonikud"===t?st.hebrewStripNikkud(e):e}url(){const t=this.getDate().getFullYear();if(!(t<5e3||t>6759))return`https://www.hebcal.com/omer/${t}/${this.omer}`}getLamnatzeachWord(){return Vf[this.omer-1]}getLamnatzeachLetter(){return Kf[this.omer-1]}getAnaBekoachWord(){return $f[this.omer-1].normalize()}}function Jf(t,e){const n=[];for(let r=t;r<=e;r++)n.push(r);return n}const Wf={shacharit:!1,mincha:!1,allCongs:!1};function qf(t,e){return Xf(t,e,!0)}function Xf(t,e,n){const r=function(t,e){const n=mt.isLeapYear(t),r=mt.monthsInYear(t);let a=new mt(9,f.AV,t);6===a.getDay()&&(a=a.next());let o=new mt(15,f.ADAR_II,t);6===o.getDay()&&(o=o.next());const i=[new mt(2,f.TISHREI,t)].concat(Jf(1,r).map(e=>new mt(1,e,t)),Jf(1,r).filter(e=>30===mt.daysInMonth(e,t)).map(e=>new mt(30,e,t)),Jf(1,mt.daysInMonth(f.NISAN,t)).map(e=>new mt(e,f.NISAN,t)),new mt(18,f.IYYAR,t),Jf(1,8-(e?1:0)).map(e=>new mt(e,f.SIVAN,t)),a,new mt(15,f.AV,t),new mt(29,f.ELUL,t),Jf(9,24-(e?1:0)).map(e=>new mt(e,f.TISHREI,t)),Jf(25,33).map(e=>new mt(e,f.KISLEV,t)),new mt(15,f.SHVAT,t),new mt(14,f.ADAR_II,t),o,n?new mt(14,f.ADAR_I,t):[]),s=[new mt(14,f.IYYAR,t)].concat(Jf(1,13).map(e=>new mt(e,f.SIVAN,t)),Jf(20,31).map(e=>new mt(e,f.TISHREI,t)),t>=5708?Uh(t).next():[],t>=5727?new mt(28,f.IYYAR,t):[]),u=[new mt(29,f.ELUL,t-1),new mt(9,f.TISHREI,t),new mt(14,f.IYYAR,t)];return{none:i.map(t=>t.abs()).sort((t,e)=>t-e),some:s.map(t=>t.abs()).sort((t,e)=>t-e),yesPrev:u.map(t=>t.abs()).sort((t,e)=>t-e)}}(t.yy,e),a=t.abs();if(r.none.includes(a))return Wf;const o=t.getDay(),i={shacharit:!1,mincha:!1,allCongs:!1};r.some.includes(a)||(i.allCongs=!0),6!==o&&(i.shacharit=!0);const s=a+1;if(n&&!r.yesPrev.includes(s)){const t=Xf(new mt(s),e,!1);i.mincha=t.shacharit}else i.mincha=5!==o;return!i.allCongs||i.mincha||i.shacharit?i:Wf}class Qf extends Et{constructor(t){if(1!==arguments.length)throw new TypeError(`ParshaEvent constructor takes a single SedraResult argument; got ${arguments.length} arguments`);if("object"!=typeof t||null===t||!Array.isArray(t.parsha)||0===t.parsha.length||t.parsha.length>2||!mt.isHDate(t.hdate))throw new TypeError(`Invalid SedraResult argument: ${JSON.stringify(t)}`);const e="Parashat "+t.parsha.join("-");super(t.hdate,e,Mt.PARSHA_HASHAVUA),this.p=t}render(t){return function(t,e){let n=st.gettext(t[0],e);2===t.length&&(n+=(st.isHebrewLocale(e)?"־":"-")+st.gettext(t[1],e));return n=bh(n),(st.gettext("Parashat",e)+" "+n).normalize()}(this.p.parsha,t)}basename(){return this.p.parsha.join("-")}url(){const t=this.greg().getFullYear();if(t<100||t>2999)return;const e=this.urlDateSuffix(),n="https://www.hebcal.com/sedrot/"+Eh(this.basename())+"-"+e;return this.p.il?n+"?i=on":n}urlDateSuffix(){return tt(this.greg()).replaceAll("-","")}get parsha(){return this.p.parsha}}const tm=f.TISHREI;function em(t){if("number"==typeof t)return t;if(u(t))return h(t);if(mt.isHDate(t))return t.abs();throw new TypeError(`Invalid date type: ${t}`)}const nm=2e3;function rm(t){const e=void 0!==t.start,n=void 0!==t.end;if(e!==n)throw new TypeError("options.start requires options.end");if(e&&n){const e=em(t.start),n=em(t.end);if(n-e>73e4)throw new RangeError("Date range exceeds 2000 years");return[e,n]}const r=Boolean(t.isHebrewYear),a=function(t){return void 0!==t.year?Number(t.year):t.isHebrewYear?(new mt).getFullYear():(new Date).getFullYear()}(t);if(isNaN(a))throw new RangeError(`Invalid year ${t.year}`);if(r&&a<1)throw new RangeError(`Invalid Hebrew year ${a}`);const o=function(t){if(t.month){if(t.isHebrewYear)return mt.monthNum(t.month);if("number"==typeof t.month)return t.month}return NaN}(t),i=Number(t.numYears)||1;if(i>nm)throw new RangeError("options.numYears exceeds 2000");return r?function(t,e,n){const r=new mt(1,t||tm,e);let a=r.abs();const o=t?a+r.daysInMonth():new mt(1,tm,e+n).abs()-1;!t&&e>1&&a--;return[a,o]}(o,a,i):function(t,e,n){const r=t?t-1:0,a=new Date(e,r,1);e<100&&a.setFullYear(e);const o=h(a);let i;if(t)i=o+s(t,e)-1;else{const t=e+n,r=new Date(t,0,1);t<100&&r.setFullYear(t),i=h(r)-1}return[o,i]}(o,a,i)}const am=new Map;class om{static addCalendar(t,e,n){if("function"!=typeof e)throw new TypeError(`Invalid calendar function: ${e}`);am.set(t.toLowerCase(),{fn:e,startDate:n})}static lookup(t,e,n){const r=am.get(t.toLowerCase());return"object"==typeof r?r.fn(e,n):null}static getStartDate(t){const e=am.get(t.toLowerCase());if("object"==typeof e)return e.startDate}static has(t){return am.has(t.toLowerCase())}static getCalendars(){return Array.from(am.keys())}}const im="Shabbat Mevarchim Chodesh";class sm extends Et{constructor(t,e,n,r){if(super(t,`${im} ${e}`,Mt.SHABBAT_MEVARCHIM),this.monthName=st.gettext(e,r),n)this.memo=n;else{const e=t.getFullYear(),n=t.getMonth(),r=n===mt.monthsInYear(e)?f.NISAN:n+1,a=new kh(e,r);this.memo=a.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(t){const e=bh(st.gettext(this.monthName,t));return st.gettext(im,t)+" "+e}renderBrief(t){const e=this.render(t),n=e.indexOf(" ");return e.substring(n+1)}}function um(t={}){!function(t){if(!t.candlelighting)return;const e=t.location;if(void 0===e||!(e instanceof Ah))throw new TypeError("options.candlelighting requires valid options.location");if("number"==typeof t.havdalahMins&&"number"==typeof t.havdalahDeg)throw new TypeError("options.havdalahMins and options.havdalahDeg are mutually exclusive");if("number"==typeof t.fastEndDeg&&"number"==typeof t.fastEndMins)throw new TypeError("options.fastEndDeg and options.fastEndMins are mutually exclusive");if("number"==typeof t.fastStartDeg&&"number"==typeof t.fastStartMins)throw new TypeError("options.fastStartDeg and options.fastStartMins are mutually exclusive");if("number"==typeof t.tishaBavEndDeg&&"number"==typeof t.tishaBavEndMins)throw new TypeError("options.tishaBavEndDeg and options.tishaBavEndMins are mutually exclusive");const n=t.candleLightingMins;let r="number"!=typeof n||isNaN(n)?18:Math.trunc(n);e.getIsrael()&&18===Math.abs(r)&&(r=function(t){const e=t.getGeoId();if(e){const t=xm[e];if("number"==typeof t)return t}const n=t.getShortName();if(n){const t=Um[n];if("number"==typeof t)return t}return 20}(e));t.candleLightingMins=-1*Math.abs(r),"number"==typeof t.havdalahMins?t.havdalahMins=Math.trunc(Math.abs(t.havdalahMins)):"number"==typeof t.havdalahDeg?t.havdalahDeg=Math.abs(t.havdalahDeg):t.havdalahDeg=zm;"number"==typeof t.fastEndDeg&&(t.fastEndDeg=Math.abs(t.fastEndDeg));"number"==typeof t.fastEndMins&&(t.fastEndMins=Math.trunc(Math.abs(t.fastEndMins)));"number"==typeof t.fastStartDeg&&(t.fastStartDeg=Math.abs(t.fastStartDeg));"number"==typeof t.fastStartMins&&(t.fastStartMins=Math.trunc(Math.abs(t.fastStartMins)));"number"==typeof t.tishaBavEndDeg&&(t.tishaBavEndDeg=Math.abs(t.tishaBavEndDeg));"number"==typeof t.tishaBavEndMins&&(t.tishaBavEndMins=Math.trunc(Math.abs(t.tishaBavEndMins)))}(t={...t});const e=t.location=t.location||Fm,n=t.il=t.il||e.getIsrael()||!1,r="number"==typeof t.mask;if(t.mask=function(t){if("number"==typeof t.mask)return function(t){const e=t.mask||0;e&wm&&delete t.noRoshChodesh;e&Mm&&delete t.noModern;e&Im&&delete t.noMinorFast;e&Tm&&delete t.noSpecialShabbat;e&bm&&(t.sedrot=!0);e&(Em|Hm|Nm|Cm)&&(t.dailyLearning=t.dailyLearning||{},e&Em&&(t.dailyLearning.dafYomi=!0),e&Hm&&(t.dailyLearning.mishnaYomi=!0),e&Nm&&(t.dailyLearning.nachYomi=!0),e&Cm&&(t.dailyLearning.yerushalmi=1));e&Dm&&(t.omer=!0);e&km&&(t.shabbatMevarchim=!0);e&Lm&&(t.yomKippurKatan=!0);e&Ym&&(t.behab=!0);e&Rm&&(t.yizkor=!0);return e}(t);const e=t.il||t.location?.getIsrael()||!1;let n=0;t.noHolidays||(n|=wm|gm|Im|Tm|Mm|vm|Om|_m|Bm|mm|Am|pm);t.candlelighting&&(n|=mm|Am|gm);t.noRoshChodesh&&(n&=~wm);t.noModern&&(n&=~Mm);t.noMinorFast&&(n&=~Im);t.noSpecialShabbat&&(n&=~Tm,n&=~km);n|=e?Sm:ym;t.sedrot&&(n|=bm);t.omer&&(n|=Dm);t.shabbatMevarchim&&(n|=km);t.yomKippurKatan&&(n|=Lm);t.behab&&(n|=Ym);t.yizkor&&(n|=Rm);const r=t.dailyLearning;"object"==typeof r&&null!==r&&(r.dafYomi&&(n|=Em),r.mishnaYomi&&(n|=Hm),r.nachYomi&&(n|=Nm),r.yerushalmi&&(n|=Cm));return n}(t),t.locale){const e=t.locale;if(e&&"string"!=typeof e)throw new TypeError(`Invalid options.locale: ${e}`);if(!st.hasLocale(e))throw new TypeError(`Locale '${e}' not found; did you forget to import @hebcal/locales?`)}else t.ashkenazi?t.locale="ashkenazi":t.locale="en";const a=[];let o,i,s=-1,u=-1,c=-1;const h=rm(t);!function(t){for(const e of Object.keys(t))void 0!==Pm[e]||Zm.has(e)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${e}`),Zm.add(e));if(t.dailyLearning)for(const[e,n]of Object.entries(t.dailyLearning)){const t=Vm(e,n);Zm.has(e)||om.has(t)||(console.warn(`Ignoring unrecognized DailyLearning calendar: ${e}`),Zm.add(e))}}(t);const d=h[0],m=h[1],g=l(d).getFullYear();(g<100||g>9999)&&(t.candlelighting=!1,t.sedrot=!1,t.dailyLearning={});for(let e=d;e<=m;e++){const h=new mt(e),l=h.getFullYear();l!==c&&(c=l,i=df(c),t.sedrot&&(o=ll(c,n)),t.omer&&(s=mt.hebrew2abs(c,lm,16),u=mt.hebrew2abs(c,dm,5)));const d=a.length,m=h.getDay(),g=m===cm,y=m===hm;let S;const A=(i.get(h.toString())||[]).filter(t=>t.observedIn(n));for(const e of A)S=jm(S,a,e,t,g,y,r);const p=h.getMonth(),I=h.getDate();if(g&&t.candlelighting&&p===f.NISAN&&13===I){const e=Jm(h,t);e&&a.push(e)}if(t.sedrot&&y){const t=o.lookup(e);t.chag||a.push(new Qf(t))}if(t.yizkor&&(p===f.TISHREI&&(10===I||22===I)||p===lm&&I===(n?21:22)||p===dm&&I===(n?6:7))){const t=A[0],e=new Et(h,wd.YIZKOR,Mt.YIZKOR,{emoji:"🕯️",linkedEvent:t});a.push(e)}const T=t.dailyLearning;let M=0;if("object"==typeof T&&null!==T){const t=Km(h,T,n);M=t.length,M&&a.push(...t)}if(t.omer&&e>=s&&e<=u){const n=Gm(h,e-s+1,t);a.push(n)}if(y&&(t.molad||t.shabbatMevarchim)){const e=$m(h,t);a.push(...e)}if(!S&&t.candlelighting&&(g||y)&&(S=wf(void 0,h,t,g,y),g&&S&&o)){const n=o.lookup(e);if(n.chag)S.memo=st.gettext(n.parsha[0],t.locale);else{const e=new Qf(n);S.memo=e.render(t.locale)}}if(S instanceof Tf&&(0===t.havdalahMins||0===t.havdalahDeg)&&(S=void 0),S&&a.push(S),t.addHebrewDates||t.addHebrewDatesForEvents&&d!==a.length-M){const t=new Ht(h);d===a.length?a.push(t):a.splice(d,0,t)}}return a}const cm=5,hm=6,lm=f.NISAN,dm=f.SIVAN,fm=f.ELUL,mm=Mt.LIGHT_CANDLES,gm=Mt.YOM_TOV_ENDS,ym=Mt.CHUL_ONLY,Sm=Mt.IL_ONLY,Am=Mt.LIGHT_CANDLES_TZEIS,pm=Mt.CHANUKAH_CANDLES,Im=Mt.MINOR_FAST,Tm=Mt.SPECIAL_SHABBAT,Mm=Mt.MODERN_HOLIDAY,vm=Mt.MAJOR_FAST,wm=Mt.ROSH_CHODESH,bm=Mt.PARSHA_HASHAVUA,Em=Mt.DAF_YOMI,Hm=Mt.MISHNA_YOMI,Nm=Mt.NACH_YOMI,Cm=Mt.YERUSHALMI_YOMI,Dm=Mt.OMER_COUNT,km=Mt.SHABBAT_MEVARCHIM,Om=Mt.MINOR_HOLIDAY,_m=Mt.EREV,Bm=Mt.CHOL_HAMOED,Lm=Mt.YOM_KIPPUR_KATAN,Rm=Mt.YIZKOR,Ym=Mt.BEHAB,Zm=new Set,Pm={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,fastEndDeg:1,fastEndMins:1,fastStartDeg:1,fastStartMins:1,tishaBavEndDeg:1,tishaBavEndMins:1,sedrot:1,il:1,noMinorFast:1,noModern:1,shabbatMevarchim:1,noRoshChodesh:1,noSpecialShabbat:1,noHolidays:1,omer:1,molad:1,ashkenazi:1,locale:1,addHebrewDates:1,addHebrewDatesForEvents:1,mask:1,yomKippurKatan:1,behab:1,hour12:1,dailyLearning:1,useElevation:1,yizkor:1};const Um={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},xm={281184:40,294801:30,293067:30},zm=8.5;const Fm=new Ah(0,0,!1,"UTC");function jm(t,e,n,r,a,o,i){const s=r.il||!1;if(!n.observedIn(s))return t;const u=n.mask,c=n.hasFlag("YOM_KIPPUR_KATAN"),h=n.hasFlag("BEHAB");if(!r.yomKippurKatan&&c||!r.behab&&h||r.noModern&&n.hasFlag("MODERN_HOLIDAY"))return t;if(r.candlelighting&&n.getDesc()===wd.EREV_PESACH){const t=function(t,e){const n=[],r=e.location,a=Boolean(e.useElevation),o=t.getDate(),i=new Yh(r,o,a).sofZmanTfilla();if(isNaN(i.getTime()))return[];const s=new pf(o,wd.SOF_ZMAN_ACHILAT_CHAMETZ,0,i,r,void 0,e);if(s.emoji="🍞",n.push(s),o.getDay()!==hm){const t=Jm(o,e);t&&n.push(t)}return n}(n,r);t.length&&e.push(...t)}const l=n.hasFlag("MAJOR_FAST"),d=n.hasFlag("MINOR_FAST"),f=n.hasFlag("CHANUKAH_CANDLES"),m=n.hasAnyFlag("LIGHT_CANDLES","LIGHT_CANDLES_TZEIS","CHANUKAH_CANDLES","YOM_TOV_ENDS");let g;if(r.candlelighting&&(l||d)&&n.getDesc()!==wd.YOM_KIPPUR&&(n=g=Df(n,r),g.startEvent&&(l||d&&!r.noMinorFast)&&e.push(g.startEvent)),u&Number(r.mask)||!u&&!i){if(r.candlelighting&&m){const e=n.getDate();if(t=wf(n,e,r,a,o),f&&t&&!r.noHolidays){const e=function(t,e){const n=t.getDate(),r=e.location,a=Boolean(e.useElevation),o=new Yh(r,n.greg(),a).beinHaShmashos();return isNaN(o.getTime())?null:new Of(t,o,r)}(n,r);e&&((a||o)&&(e.eventTime=t.eventTime,e.eventTimeStr=t.eventTimeStr),n=e),t=void 0}}(!r.noHolidays||r.yomKippurKatan&&c||r.behab&&h)&&e.push(n)}return(l||d&&!r.noMinorFast)&&g?.endEvent&&e.push(g.endEvent),t}function $m(t,e){const n=[],r=t.getMonth(),a=t.getDate();if(r!==fm&&a>=23&&a<=29){const a=t.getFullYear(),o=r===mt.monthsInYear(a)?lm:r+1;if(e.molad&&n.push(new Oh(t,a,o,e)),e.shabbatMevarchim){const r=mt.getMonthName(o,a),i=new kh(a,o).render(e.locale,e);n.push(new sm(t,r,i,e.locale))}}return n}function Vm(t,e){return"yerushalmi"===t?2===e?"yerushalmi-schottenstein":"yerushalmi-vilna":t}function Km(t,e,n){const r=[];for(const[a,o]of Object.entries(e))if(o){const e=Vm(a,o),i=om.lookup(e,t,n);i&&r.push(i)}return r}function Gm(t,e,n){const r=new Gf(t,e);if(n.candlelighting){const e=n.location,a=new Yh(e,t.prev(),!1).tzeit(7.0833);isNaN(a.getTime())||(r.alarm=a)}return r}function Jm(t,e){const n=e.location,r=Boolean(e.useElevation),a=new Yh(n,t,r).sofZmanBiurChametzGRA();if(isNaN(a.getTime()))return;const o=new pf(t,wd.BIUR_CHAMETZ,0,a,n,void 0,e);return o.emoji="🔥",o}function Wm(t,e){return 0!==(Rd(t,e)||[]).filter(t=>t.hasFlag("CHAG")).length}return t.AsaraBTevetEvent=Nd,t.CandleLightingEvent=If,t.ChanukahEvent=Dd,t.DailyLearning=om,t.Event=Et,t.FastDayEvent=Cf,t.GeoLocation=hh,t.HDate=mt,t.HavdalahEvent=Tf,t.HebrewCalendar=class{constructor(){}static calendar(t={}){return um(t)}static getBirthdayOrAnniversary(t,e){return pt(t,e)}static getYahrzeit(t,e){return At(t,e)}static getHolidaysForYear(t){return df(t)}static getHolidaysForYearArray(t,e){return function(t,e){const n=df(t),r=mt.hebrew2abs(t,rf,1),a=mt.hebrew2abs(t+1,rf,1)-1;let o=[];for(let t=r;t<=a;t++){const r=new mt(t),a=n.get(r.toString());if(a){const t=a.filter(t=>t.observedIn(e));o=o.concat(t)}}return o}(t,e)}static getHolidaysOnDate(t,e){return Rd(t,e)}static eruvTavshilin(t,e){if(t.getDay()<3||t.getDay()>4)return!1;const n=new mt(t),r=n.after(5),a=n.next();return!(!Wm(r,e)||Wm(n,e)||!Wm(a,e))}static reformatTimeStr(t,e,n){return Ih(t,e,n)}static version(){return e}static getSedra(t,e){return ll(t,e)}static hallel(t,e){const n=Rd(t,e);return n?function(t,e){const n=e.abs();for(const e of t){const t=e.getDate();if(t.abs()!==n)continue;const r=e.getDesc(),a=t.getMonth(),o=t.getDate();if(r.startsWith("Chanukah")||r.startsWith("Shavuot")||r.startsWith("Sukkot")||a===f.NISAN&&(15===o||16===o)&&e.hasFlag("CHAG")||r===wd.YOM_HAATZMA_UT||r===wd.YOM_YERUSHALAYIM)return 2;if(e.hasFlag("ROSH_CHODESH")||r.startsWith("Pesach")&&r!==wd.PESACH_I&&r!==wd.PESACH_II)return 1}return 0}(n,t):0}static tachanun(t,e){return qf(t,e)}},t.HebrewDateEvent=Ht,t.HolidayEvent=Hd,t.Locale=st,t.Location=Ah,t.MevarchimChodeshEvent=sm,t.Molad=kh,t.MoladEvent=Oh,t.NOAACalculator=dh,t.OmerEvent=Gf,t.ParshaEvent=Qf,t.RoshChodeshEvent=_d,t.RoshHashanaEvent=kd,t.Sedra=xh,t.TimedChanukahEvent=Of,t.TimedEvent=pf,t.YomKippurKatanEvent=Ld,t.Zmanim=Yh,t.calculateMolad=vh,t.calendar=um,t.flags=Mt,t.gematriya=V,t.gematriyaStrToNum=K,t.getHolidaysOnDate=Rd,t.getMoladAsDate=wh,t.getSedra=ll,t.holidayDesc=wd,t.isAssurBemlacha=function(t,e,n){const r=X(e.getTzid(),t),a=parseInt(r.substring(0,4),10),o=parseInt(r.substring(5,7),10),i=parseInt(r.substring(8,10),10),s=new mt(new Date(a,o-1,i)),u=new Yh(e,s,n),c=u.sunset().getTime();if(isNaN(c))throw new Error("Could not determine sunset");const h=e.getIsrael(),l=t.getTime(),d=s.getDay(),f=Rd(s,h)||[];if(function(t,e){return 5===t||!!e.find(t=>t.hasAnyFlag("LIGHT_CANDLES","LIGHT_CANDLES_TZEIS"))}(d,f)&&l>=c)return!0;if(function(t,e){return 6===t||!!e.find(t=>t.hasFlag("CHAG"))}(d,f)){return l<=u.tzeit().getTime()}return!1},t.isAveilut=function(t){const e=function(t){return mt.isHDate(t)?t:new mt(t)}(t);return function(t){const e=t.getFullYear(),n=new mt(16,ff,e).abs(),r=new mt(5,mf,e).abs(),a=t.abs();return a>=n&&a<=r}(e)||function(t){const e=t.getFullYear(),n=new mt(17,gf,e).abs(),r=new mt(9,yf,e),a=6===r.getDay()?new mt(10,yf,e).abs():r.abs(),o=t.abs();return o>=n&&o<=a}(e)},t.isFastDay=function(t,e){const n=(Rd(t,e)||[]).find(t=>t.hasAnyFlag("MAJOR_FAST","MINOR_FAST")&&!t.hasFlag("EREV"));return Boolean(n)},t.months=f,t.parshaYear=function(t,e){const n=ll(t,e),r=n.getFirstSaturday(),a=mt.hebrew2abs(t,f.ELUL,29),o=[];for(let t=r;t<=a;t+=7){const e=n.lookup(t);if(!e.chag){const t=new Qf(e);o.push(t)}}return o},t.parshiot=zh,t.reformatTimeStr=Ih,t.tachanun=qf,t.version=e,t}({});
|
|
20
20
|
//# sourceMappingURL=bundle.min.js.map
|