@hebcal/core 5.9.7 → 5.9.9

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.
Files changed (53) hide show
  1. package/dist/bundle.js +42 -26
  2. package/dist/bundle.js.map +1 -1
  3. package/dist/bundle.min.js +19 -19
  4. package/dist/bundle.min.js.map +1 -1
  5. package/dist/esm/DailyLearning.js +1 -1
  6. package/dist/esm/HebrewDateEvent.js +1 -1
  7. package/dist/esm/HolidayEvent.js +1 -1
  8. package/dist/esm/MevarchimChodeshEvent.js +1 -1
  9. package/dist/esm/ParshaEvent.js +1 -1
  10. package/dist/esm/TimedEvent.js +1 -1
  11. package/dist/esm/YomKippurKatanEvent.js +1 -1
  12. package/dist/esm/ashkenazi.po.js +1 -1
  13. package/dist/esm/calendar.js +1 -1
  14. package/dist/esm/candles.js +1 -1
  15. package/dist/esm/event.js +1 -1
  16. package/dist/esm/getStartAndEnd.js +1 -1
  17. package/dist/esm/hallel.js +1 -1
  18. package/dist/esm/he-x-NoNikud.po.d.ts +12 -0
  19. package/dist/esm/he-x-NoNikud.po.js +5 -0
  20. package/dist/esm/he-x-NoNikud.po.js.map +1 -0
  21. package/dist/esm/he.po.d.ts +0 -56
  22. package/dist/esm/he.po.js +2 -2
  23. package/dist/esm/he.po.js.map +1 -1
  24. package/dist/esm/hebcal.js +1 -1
  25. package/dist/esm/holidays.js +1 -1
  26. package/dist/esm/index.d.ts +1 -1
  27. package/dist/esm/index.js +1 -1
  28. package/dist/esm/locale.js +3 -1
  29. package/dist/esm/locale.js.map +1 -1
  30. package/dist/esm/location.js +1 -1
  31. package/dist/esm/modern.js +1 -1
  32. package/dist/esm/molad.js +1 -1
  33. package/dist/esm/omer.js +1 -1
  34. package/dist/esm/parshaName.js +1 -1
  35. package/dist/esm/parshaYear.js +1 -1
  36. package/dist/esm/pkgVersion.d.ts +1 -1
  37. package/dist/esm/pkgVersion.js +2 -2
  38. package/dist/esm/pkgVersion.js.map +1 -1
  39. package/dist/esm/reformatTimeStr.js +1 -1
  40. package/dist/esm/sedra.js +1 -1
  41. package/dist/esm/staticHolidays.js +1 -1
  42. package/dist/esm/tachanun.js +1 -1
  43. package/dist/esm/zmanim.d.ts +7 -1
  44. package/dist/esm/zmanim.js +13 -2
  45. package/dist/esm/zmanim.js.map +1 -1
  46. package/dist/he-x-NoNikud.po.d.ts +12 -0
  47. package/dist/he.po.d.ts +0 -56
  48. package/dist/index.cjs +33 -17
  49. package/dist/index.cjs.map +1 -1
  50. package/dist/index.d.ts +1 -1
  51. package/dist/pkgVersion.d.ts +1 -1
  52. package/dist/zmanim.d.ts +7 -1
  53. package/package.json +13 -13
@@ -1,21 +1,21 @@
1
- /*! @hebcal/core v5.9.6, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
2
- var hebcal=function(e){"use strict";const t="5.9.6",n=[0,31,28,31,30,31,30,31,31,30,31,30,31],r=[n,n.slice()];
3
- /*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */function o(e,t){return e-t*Math.floor(e/t)}function i(e,t){return Math.floor(e/t)}function a(e){return!(e%4||!(e%100)&&e%400)}function s(e,t){return r[+a(t)][e]}function u(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function c(e,t,n){const r=e-1;return 365*r+i(r,4)-i(r,100)+i(r,400)+i(367*t-362,12)+(t<=2?0:a(e)?-1:-2)+n}function h(e){if(!u(e))throw new TypeError(`not a Date: ${e}`);if(isNaN(e.getTime()))throw new RangeError("Invalid Date");return c(e.getFullYear(),e.getMonth()+1,e.getDate())}function l(e){if("number"!=typeof e||isNaN(e))throw new TypeError(`not a Number: ${e}`);const t=function(e){const t=e-1,n=i(t,146097),r=o(t,146097),a=i(r,36524),s=o(r,36524),u=i(s,1461),c=i(o(s,1461),365),h=400*n+100*a+4*u+c;return 4!==a&&4!==c?h+1:h}(e=Math.trunc(e)),n=i(12*(e-c(t,1,1)+(e<c(t,3,1)?0:a(t)?1:2))+373,367),r=e-c(t,n,1)+1,s=new Date(t,n-1,r);return t<100&&t>=0&&s.setFullYear(t),s}
4
- /*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */r[1][2]=29,e.greg=void 0,e.greg||(e.greg={}),e.greg.abs2greg=l,e.greg.daysInMonth=s,e.greg.greg2abs=h,e.greg.isDate=u,e.greg.isLeapYear=a;
5
- /*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
6
- const f={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},d="Nisan",g=["",d,"Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],m=[[...g,"Adar",d],[...g,"Adar I","Adar II",d]],y=new Map,v=-1373428;function p(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`param '${t}' not a number: ${e}`)}function w(e,t,n){if(p(e,"year"),p(t,"month"),p(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<7){for(let t=7;t<=T(e);t++)r+=I(t,e);for(let n=1;n<t;n++)r+=I(n,e)}else for(let n=7;n<t;n++)r+=I(n,e);return v+M(e)+r-1}function S(e){return v+M(e)}function A(e){if(p(e,"abs"),(e=Math.trunc(e))<=v)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-v)/365.24682220597794);for(;S(t)<=e;)++t;--t;let n=e<w(t,1,1)?7:1;for(;e>w(t,n,I(n,t));)++n;return{yy:t,mm:n,dd:1+e-w(t,n,1)}}function b(e){return(1+7*e)%19<7}function T(e){return+b(e)+12}function I(e,t){switch(e){case 2:case 4:case 6:case 10:case 13:return 29}return 12===e&&!b(t)||8===e&&!N(t)||9===e&&C(t)?29:30}function E(e,t){if(p(e,"month"),p(t,"year"),e<1||e>14)throw new TypeError(`bad monthNum: ${e}`);return m[+b(t)][e]}function M(e){const t=y.get(e);if("number"==typeof t)return t;const n=function(e){const t=e-1,n=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),r=204+n%1080*793,o=5+12*n+793*Math.floor(n/1080)+Math.floor(r/1080),i=r%1080+o%24*1080,a=1+29*n+Math.floor(o/24);let s=a;(i>=19440||2==a%7&&i>=9924&&!b(e)||1==a%7&&i>=16789&&b(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return y.set(e,n),n}function H(e){return M(e+1)-M(e)}function N(e){return H(e)%10==5}function C(e){return H(e)%10==3}
7
- /*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
8
- const D=f.NISAN,O=f.CHESHVAN,_=f.KISLEV,k=f.TEVET,L=f.SHVAT,R=f.ADAR_I,Y=f.ADAR_II;function P(e){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(e))return e;if(u(e)){return A(h(e))}return A(e)}
9
- /*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
10
- const B={"א":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,t]of Object.entries(B))j[t]=e;function U(e){const t=[];for(;e>0;){if(15===e||16===e){t.push(9),t.push(e-9);break}let n,r=100;for(n=400;n>e;n-=r)n===r&&(r/=10);t.push(n),e-=n}return t}function x(e){const t=parseInt(e,10);if(!t||t<0)throw new TypeError(`invalid number: ${e}`);let n="";const r=Math.floor(t/1e3);if(r>0&&5!==r){const e=U(r);for(const t of e)n+=j[t];n+="׳"}const o=U(t%1e3);if(1===o.length)return n+j[o[0]]+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=j[o[e]];return n}function Z(e){let t=0;const n=e.indexOf("׳");if(-1!==n&&n!==e.length-1){t+=1e3*Z(e.substring(0,n)),e=e.substring(n)}for(const n of e){const e=B[n];"number"==typeof e&&(t+=e)}return t}
11
- /*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
12
- /*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v5.9.9, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
2
+ var hebcal=function(e){"use strict";const t="5.9.9",n=[0,31,28,31,30,31,30,31,31,30,31,30,31],r=[n,n.slice()];
3
+ /*! @hebcal/hdate v0.14.2, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */function o(e,t){return e-t*Math.floor(e/t)}function i(e,t){return Math.floor(e/t)}function a(e){return!(e%4||!(e%100)&&e%400)}function s(e,t){return r[+a(t)][e]}function u(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function c(e,t,n){const r=e-1;return 365*r+i(r,4)-i(r,100)+i(r,400)+i(367*t-362,12)+(t<=2?0:a(e)?-1:-2)+n}function h(e){if(!u(e))throw new TypeError(`not a Date: ${e}`);if(isNaN(e.getTime()))throw new RangeError("Invalid Date");return c(e.getFullYear(),e.getMonth()+1,e.getDate())}function l(e){if("number"!=typeof e||isNaN(e))throw new TypeError(`not a Number: ${e}`);const t=function(e){const t=e-1,n=i(t,146097),r=o(t,146097),a=i(r,36524),s=o(r,36524),u=i(s,1461),c=i(o(s,1461),365),h=400*n+100*a+4*u+c;return 4!==a&&4!==c?h+1:h}(e=Math.trunc(e)),n=i(12*(e-c(t,1,1)+(e<c(t,3,1)?0:a(t)?1:2))+373,367),r=e-c(t,n,1)+1,s=new Date(t,n-1,r);return t<100&&t>=0&&s.setFullYear(t),s}
4
+ /*! @hebcal/hdate v0.14.2, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */r[1][2]=29,e.greg=void 0,e.greg||(e.greg={}),e.greg.abs2greg=l,e.greg.daysInMonth=s,e.greg.greg2abs=h,e.greg.isDate=u,e.greg.isLeapYear=a;
5
+ /*! @hebcal/hdate v0.14.2, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
6
+ const f={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},d="Nisan",g=["",d,"Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],m=[[...g,"Adar",d],[...g,"Adar I","Adar II",d]],y=new Map,v=-1373428;function p(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`param '${t}' not a number: ${e}`)}function w(e,t,n){if(p(e,"year"),p(t,"month"),p(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<7){for(let t=7;t<=T(e);t++)r+=E(t,e);for(let n=1;n<t;n++)r+=E(n,e)}else for(let n=7;n<t;n++)r+=E(n,e);return v+M(e)+r-1}function S(e){return v+M(e)}function A(e){if(p(e,"abs"),(e=Math.trunc(e))<=v)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-v)/365.24682220597794);for(;S(t)<=e;)++t;--t;let n=e<w(t,1,1)?7:1;for(;e>w(t,n,E(n,t));)++n;return{yy:t,mm:n,dd:1+e-w(t,n,1)}}function b(e){return(1+7*e)%19<7}function T(e){return+b(e)+12}function E(e,t){switch(e){case 2:case 4:case 6:case 10:case 13:return 29}return 12===e&&!b(t)||8===e&&!H(t)||9===e&&C(t)?29:30}function I(e,t){if(p(e,"month"),p(t,"year"),e<1||e>14)throw new TypeError(`bad monthNum: ${e}`);return m[+b(t)][e]}function M(e){const t=y.get(e);if("number"==typeof t)return t;const n=function(e){const t=e-1,n=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),r=204+n%1080*793,o=5+12*n+793*Math.floor(n/1080)+Math.floor(r/1080),i=r%1080+o%24*1080,a=1+29*n+Math.floor(o/24);let s=a;(i>=19440||2==a%7&&i>=9924&&!b(e)||1==a%7&&i>=16789&&b(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return y.set(e,n),n}function N(e){return M(e+1)-M(e)}function H(e){return N(e)%10==5}function C(e){return N(e)%10==3}
7
+ /*! @hebcal/hdate v0.14.2, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
8
+ const D=f.NISAN,O=f.CHESHVAN,_=f.KISLEV,k=f.TEVET,L=f.SHVAT,R=f.ADAR_I,Y=f.ADAR_II;function B(e){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(e))return e;if(u(e)){return A(h(e))}return A(e)}
9
+ /*! @hebcal/hdate v0.14.2, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
10
+ const P={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},j={};for(const[e,t]of Object.entries(P))j[t]=e;function U(e){const t=[];for(;e>0;){if(15===e||16===e){t.push(9),t.push(e-9);break}let n,r=100;for(n=400;n>e;n-=r)n===r&&(r/=10);t.push(n),e-=n}return t}function x(e){const t=parseInt(e,10);if(!t||t<0)throw new TypeError(`invalid number: ${e}`);let n="";const r=Math.floor(t/1e3);if(r>0&&5!==r){const e=U(r);for(const t of e)n+=j[t];n+="׳"}const o=U(t%1e3);if(1===o.length)return n+j[o[0]]+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=j[o[e]];return n}function Z(e){let t=0;const n=e.indexOf("׳");if(-1!==n&&n!==e.length-1){t+=1e3*Z(e.substring(0,n)),e=e.substring(n)}for(const n of e){const e=P[n];"number"==typeof e&&(t+=e)}return t}
11
+ /*! @hebcal/hdate v0.14.2, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
12
+ /*! @hebcal/hdate v0.14.2, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
13
13
  function $(e){return e<0?"-00"+$(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function V(e){return e>=0&&e<10?"0"+e:String(e)}
14
- /*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */const F=new Map;const z=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function K(e,t){const n=function(e){const t=F.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:e});return F.set(e,n),n}(e).format(t),r=z.exec(n);if(null===r)throw new Error(`Unable to parse formatted string: ${n}`);let o=r[4];return"24"===o&&(o="00"),r[3]=$(parseInt(r[3],10)),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function G(e){return $(e.getFullYear())+"-"+V(e.getMonth()+1)+"-"+V(e.getDate())}
15
- /*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */var J={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"en_CA@ashkenazi"},contexts:{"":{Tevet:["Teves"]}}},W={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:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"]}}};
16
- /*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
17
- /*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
18
- const q={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},X={h:"he",a:"ashkenazi",s:"en","":"en"},Q=new Map;let ee,te;function ne(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function re(e){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);return e.toLowerCase()}function oe(e){const t=re(e),n=Q.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return n}class ie{static lookupTranslation(e,t){const n=("string"==typeof t&&Q.get(t.toLowerCase())||ee)[e];if((null==n?void 0:n.length)&&n[0].length)return n[0]}static gettext(e,t){const n=this.lookupTranslation(e,t);return void 0===n?e:n}static addLocale(e,t){if(e=re(e),"object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);Q.set(e,t.contexts[""])}static addTranslation(e,t,n){const r=oe(e);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id string: ${t}`);const o=Array.isArray(n);if(o){const e=n[0];if("string"!=typeof e||0===e.length)throw new TypeError(`Invalid translation array: ${n}`)}else if("string"!=typeof n)throw new TypeError(`Invalid translation string: ${n}`);r[t]=o?n:[n]}static addTranslations(e,t){const n=oe(e);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const r=t.contexts[""];Object.assign(n,r)}static useLocale(e){const t=re(e),n=oe(t);return te=X[t]||t,ee=n,ee}static getLocaleName(){return te}static getLocaleNames(){return Array.from(Q.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||te;if(!n)return ne(e);switch(n){case"en":case"s":case"a":return ne(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e)}return n.startsWith("ashkenazi")?ne(e):e+"."}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}ie.addLocale("en",q),ie.addLocale("s",q),ie.addLocale("",q),ie.useLocale("en"),ie.addLocale("ashkenazi",J),ie.addLocale("a",J),ie.addLocale("he",W),ie.addLocale("h",W);const ae=W.contexts[""],se={};for(const[e,t]of Object.entries(ae))se[e]=[ie.hebrewStripNikkud(t[0])];const ue={headers:W.headers,contexts:{"":se}};ie.addLocale("he-x-NoNikud",ue);const ce="day",he="week",le="month",fe="year";class de{constructor(e,t,n){if(2===arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3===arguments.length){this.dd=this.mm=1;const i="string"==typeof n?parseInt(n,10):n;if(isNaN(i))throw new TypeError(`HDate called with bad year: ${n}`);this.yy=i,function(e,t){e.mm=de.monthNum(t),ge(e)}(this,t);const a="string"==typeof e?parseInt(e,10):e;if(isNaN(a))throw new TypeError(`HDate called with bad day: ${e}`);o=a,(r=this).dd=o,ge(r)}else{null==e&&(e=new Date);const t="number"!=typeof e||isNaN(e)?u(e)?h(e):void 0!==e.yy?e:null:e;if(null===t)throw new TypeError(`HDate called with bad arg: ${e}`);const n="number"==typeof t,r=n?A(t):t;this.yy=r.yy,this.mm=r.mm,this.dd=r.dd,n&&(this.rd=t)}var r,o}getFullYear(){return this.yy}isLeapYear(){return b(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=T(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return I(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){
19
- /*! @hebcal/hdate v0.14.0, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
20
- return function(e,t){return e-t*Math.floor(e/t)}(this.abs(),7)}greg(){return l(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=w(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return w(e,t,n)}getMonthName(){return E(this.getMonth(),this.getFullYear())}render(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=e||ie.getLocaleName(),r=this.getDate(),o=ie.gettext(this.getMonthName(),n).replace(/'/g,"’"),i=ie.ordinal(r,n),a=function(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const t=ie.lookupTranslation("of",e);if(t)return" "+t;if(e.startsWith("ashkenazi"))return" of";return""}(n),s=`${i}${a} ${o}`;if(t){return`${s}, ${this.getFullYear()}`}return s}renderGematriya(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.getDate(),n=e?"he-x-NoNikud":"he",r=ie.gettext(this.getMonthName(),n),o=this.getFullYear();return x(t)+" "+r+" "+x(o)}before(e){return ye(e,this,-1)}onOrBefore(e){return ye(e,this,0)}nearest(e){return ye(e,this,3)}onOrAfter(e){return ye(e,this,6)}after(e){return ye(e,this,7)}next(){return new de(this.abs()+1)}prev(){return new de(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e="string"==typeof e?parseInt(e,10):e))return new de(this);if(t=function(e){switch(e){case"d":return ce;case"w":return he;case"M":return le;case"y":return fe}const t=String(e||"").toLowerCase().replace(/s$/,"");switch(t){case ce:case he:case le:case fe:return t}throw new TypeError(`Invalid units '${e}'`)}(t),t===ce)return new de(this.abs()+e);if(t===he)return new de(this.abs()+7*e);if(t===fe)return new de(this.getDate(),this.getMonth(),this.getFullYear()+e);{let t=new de(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new de(t.abs()+n*t.daysInMonth());return t}}subtract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}deltaDays(e){return this.abs()-e.abs()}isSameDate(e){return this.yy===e.yy&&this.mm===e.mm&&this.dd===e.dd}toString(){const e=this.getDate(),t=this.getFullYear();return`${e} ${this.getMonthName()} ${t}`}static isLeapYear(e){return b(e)}static monthsInYear(e){return T(e)}static daysInMonth(e,t){return I(e,t)}static getMonthName(e,t){return E(e,t)}static monthNum(e){if("number"==typeof e){if(isNaN(e)||e>14)throw new RangeError(`bad monthNum: ${e}`);return e}return e.charCodeAt(0)>=48&&e.charCodeAt(0)<=57?parseInt(e,10):de.monthFromName(e)}static daysInYear(e){return H(e)}static longCheshvan(e){return N(e)}static shortKislev(e){return C(e)}static monthFromName(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`bad monthName: ${e}`);return e}return function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`bad monthName: ${e}`);return e}let t=e.trim().toLowerCase();switch("ב"===t[0]&&(t=t.substring(1)),t[0]){case"n":case"נ":if("o"===t[1])break;return 1;case"i":return 2;case"e":return 6;case"c":case"ח":return 8;case"k":case"כ":return 9;case"s":switch(t[1]){case"i":return 3;case"h":return 11}break;case"t":switch(t[1]){case"a":return 4;case"i":return 7;case"e":return 10}break;case"a":switch(t[1]){case"v":return 5;case"d":return/(1|[^i]i|a|א)$/i.test(e)?12:13}break;case"ס":return 3;case"ט":return 10;case"ש":return 11;case"א":switch(t[1]){case"ב":return 5;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?12:13;case"י":return 2;case"ל":return 6}break;case"ת":switch(t[1]){case"מ":return 4;case"ש":return 7}}throw new RangeError(`bad monthName: ${e}`)}(ie.hebrewStripNikkud(e))}static dayOnOrBefore(e,t){return t-(t-e)%7}static isHDate(e){return null!==e&&"object"==typeof e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd&&"function"==typeof e.greg&&"function"==typeof e.abs}static fromGematriyaString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;const n=e.split(" ").filter((e=>0!==e.length)),r=n.length;if(3!==r&&4!==r)throw new RangeError(`cannot parse gematriya str: "${e}"`);const o=Z(n[0]),i=3===r?n[1]:n[1]+" "+n[2],a=de.monthFromName(i);let s=Z(3===r?n[2]:n[3]);return s<1e3&&(s+=t),new de(o,a,s)}}function ge(e){me(e),function(e){e.dd<1&&(e.mm===f.TISHREI&&(e.yy-=1),e.dd+=I(e.mm,e.yy),e.mm-=1,ge(e));e.dd>I(e.mm,e.yy)&&(e.mm===f.ELUL&&(e.yy+=1),e.dd-=I(e.mm,e.yy),e.mm===T(e.yy)?e.mm=1:e.mm+=1,ge(e));me(e)}(e)}function me(e){e.mm!==f.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=T(e.yy),e.yy-=1,ge(e)):e.mm>T(e.yy)&&(e.mm-=T(e.yy),e.yy+=1,ge(e)):(e.mm-=1,ge(e)),delete e.rd}function ye(e,t,n){return new de(de.dayOnOrBefore(e,t.abs()+n))}var ve={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"en_CA@ashkenazi"},contexts:{"":{Shabbat:["Shabbos"],"Achrei Mot":["Achrei Mos"],Bechukotai:["Bechukosai"],"Beha'alotcha":["Beha’aloscha"],Bereshit:["Bereshis"],Chukat:["Chukas"],"Erev Shavuot":["Erev Shavuos"],"Erev Sukkot":["Erev Sukkos"],"Ki Tavo":["Ki Savo"],"Ki Teitzei":["Ki Seitzei"],"Ki Tisa":["Ki Sisa"],Matot:["Matos"],"Purim Katan":["Purim Koton"],"Shabbat Chazon":["Shabbos Chazon"],"Shabbat HaChodesh":["Shabbos HaChodesh"],"Shabbat HaGadol":["Shabbos HaGadol"],"Shabbat Nachamu":["Shabbos Nachamu"],"Shabbat Parah":["Shabbos Parah"],"Shabbat Shekalim":["Shabbos Shekalim"],"Shabbat Shuva":["Shabbos Shuvah"],"Shabbat Zachor":["Shabbos Zachor"],Shavuot:["Shavuos"],"Shavuot I":["Shavuos I"],"Shavuot II":["Shavuos II"],Shemot:["Shemos"],"Shmini Atzeret":["Shmini Atzeres"],"Simchat Torah":["Simchas Torah"],Sukkot:["Sukkos"],"Sukkot I":["Sukkos I"],"Sukkot II":["Sukkos II"],"Sukkot II (CH''M)":["Sukkos II (CH’’M)"],"Sukkot III (CH''M)":["Sukkos III (CH’’M)"],"Sukkot IV (CH''M)":["Sukkos IV (CH’’M)"],"Sukkot V (CH''M)":["Sukkos V (CH’’M)"],"Sukkot VI (CH''M)":["Sukkos VI (CH’’M)"],"Sukkot VII (Hoshana Raba)":["Sukkos VII (Hoshana Raba)"],"Ta'anit Bechorot":["Ta’anis Bechoros"],"Ta'anit Esther":["Ta’anis Esther"],Toldot:["Toldos"],Vaetchanan:["Vaeschanan"],Yitro:["Yisro"],"Vezot Haberakhah":["Vezos Haberakhah"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"],"Asara B'Tevet":["Asara B’Teves"],"Alot HaShachar":["Alos HaShachar"],"Kriat Shema, sof zeman":["Krias Shema, sof zman"],"Tefilah, sof zeman":["Tefilah, sof zman"],"Kriat Shema, sof zeman (MGA)":["Krias Shema, sof zman (MGA)"],"Tefilah, sof zeman (MGA)":["Tefilah, sof zman (MGA)"],"Chatzot HaLailah":["Chatzos HaLailah"],"Chatzot hayom":["Chatzos"],"Tzeit HaKochavim":["Tzeis HaKochavim"],"Birkat Hachamah":["Birkas Hachamah"],"Shushan Purim Katan":["Shushan Purim Koton"]}}},pe={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"he_IL"},contexts:{"":{Shabbat:["שַׁבָּת"],"Daf Yomi":["דַף יוֹמִי"],Parashat:["פָּרָשַׁת"],"Achrei Mot":["אַחֲרֵי מוֹת"],Balak:["בָּלָק"],Bamidbar:["בְּמִדְבַּר"],Bechukotai:["בְּחֻקֹּתַי"],"Beha'alotcha":["בְּהַעֲלֹתְךָ"],Behar:["בְּהַר"],Bereshit:["בְּרֵאשִׁית"],Beshalach:["בְּשַׁלַּח"],Bo:["בֹּא"],"Chayei Sara":["חַיֵּי שָֹרָה"],Chukat:["חֻקַּת"],Devarim:["דְּבָרִים"],Eikev:["עֵקֶב"],Emor:["אֱמוֹר"],"Ha'azinu":["הַאֲזִינוּ"],Kedoshim:["קְדשִׁים"],"Ki Tavo":["כִּי־תָבוֹא"],"Ki Teitzei":["כִּי־תֵצֵא"],"Ki Tisa":["כִּי תִשָּׂא"],Korach:["קוֹרַח"],"Lech-Lecha":["לֶךְ־לְךָ"],Masei:["מַסְעֵי"],Matot:["מַּטּוֹת"],Metzora:["מְּצֹרָע"],Miketz:["מִקֵּץ"],Mishpatim:["מִּשְׁפָּטִים"],Nasso:["נָשׂא"],Nitzavim:["נִצָּבִים"],Noach:["נֹחַ"],Pekudei:["פְקוּדֵי"],Pinchas:["פִּינְחָס"],"Re'eh":["רְאֵה"],"Sh'lach":["שְׁלַח־לְךָ"],Shemot:["שְׁמוֹת"],Shmini:["שְּׁמִינִי"],Shoftim:["שׁוֹפְטִים"],Tazria:["תַזְרִיעַ"],Terumah:["תְּרוּמָה"],Tetzaveh:["תְּצַוֶּה"],Toldot:["תּוֹלְדוֹת"],Tzav:["צַו"],Vaera:["וָאֵרָא"],Vaetchanan:["וָאֶתְחַנַּן"],Vayakhel:["וַיַּקְהֵל"],Vayechi:["וַיְחִי"],Vayeilech:["וַיֵּלֶךְ"],Vayera:["וַיֵּרָא"],Vayeshev:["וַיֵּשֶׁב"],Vayetzei:["וַיֵּצֵא"],Vayigash:["וַיִּגַּשׁ"],Vayikra:["וַיִּקְרָא"],Vayishlach:["וַיִּשְׁלַח"],"Vezot Haberakhah":["וְזֹאת הַבְּרָכָה"],Yitro:["יִתְרוֹ"],"Asara B'Tevet":["עֲשָׂרָה בְּטֵבֵת"],"Candle lighting":["הַדְלָקַת נֵרוֹת"],Chanukah:["חֲנוּכָּה"],"Chanukah: 1 Candle":["חֲנוּכָּה: א׳ נֵר"],"Chanukah: 2 Candles":["חֲנוּכָּה: ב׳ נֵרוֹת"],"Chanukah: 3 Candles":["חֲנוּכָּה: ג׳ נֵרוֹת"],"Chanukah: 4 Candles":["חֲנוּכָּה: ד׳ נֵרוֹת"],"Chanukah: 5 Candles":["חֲנוּכָּה: ה׳ נֵרוֹת"],"Chanukah: 6 Candles":["חֲנוּכָּה: ו׳ נֵרוֹת"],"Chanukah: 7 Candles":["חֲנוּכָּה: ז׳ נֵרוֹת"],"Chanukah: 8 Candles":["חֲנוּכָּה: ח׳ נֵרוֹת"],"Chanukah: 8th Day":["חֲנוּכָּה: יוֹם ח׳"],"Days of the Omer":["סְפִירַת הָעוֹמֶר"],Omer:["עוֹמֶר"],"day of the Omer":["בָּעוֹמֶר"],"Erev Pesach":["עֶרֶב פֶּסַח"],"Erev Purim":["עֶרֶב פּוּרִים"],"Erev Rosh Hashana":["עֶרֶב רֹאשׁ הַשָּׁנָה"],"Erev Shavuot":["עֶרֶב שָׁבוּעוֹת"],"Erev Simchat Torah":["עֶרֶב שִׂמְחַת תּוֹרָה"],"Erev Sukkot":["עֶרֶב סוּכּוֹת"],"Erev Tish'a B'Av":["עֶרֶב תִּשְׁעָה בְּאָב"],"Erev Yom Kippur":["עֶרֶב יוֹם כִּפּוּר"],Havdalah:["הַבְדָּלָה"],"Lag BaOmer":["ל״ג בָּעוֹמֶר"],"Leil Selichot":["סליחות"],Pesach:["פֶּסַח"],"Pesach I":["פֶּסַח א׳"],"Pesach II":["פֶּסַח ב׳"],"Pesach II (CH''M)":["פֶּסַח ב׳ (חוה״מ)"],"Pesach III (CH''M)":["פֶּסַח ג׳ (חוה״מ)"],"Pesach IV (CH''M)":["פֶּסַח ד׳ (חוה״מ)"],"Pesach Sheni":["פֶּסַח שני"],"Pesach V (CH''M)":["פֶּסַח ה׳ (חוה״מ)"],"Pesach VI (CH''M)":["פֶּסַח ו׳ (חוה״מ)"],"Pesach VII":["פֶּסַח ז׳"],"Pesach VIII":["פֶּסַח ח׳"],Purim:["פּוּרִים"],"Purim Katan":["פּוּרִים קָטָן"],"Rosh Chodesh %s":["רֹאשׁ חוֹדֶשׁ %s"],"Rosh Chodesh":["רֹאשׁ חוֹדֶשׁ"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבָּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבָּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבָּת הַגָּדוֹל"],"Shabbat Nachamu":["שַׁבָּת נַחֲמוּ"],"Shabbat Parah":["שַׁבָּת פּרה"],"Shabbat Shekalim":["שַׁבָּת שְׁקָלִים"],"Shabbat Shuva":["שַׁבָּת שׁוּבָה"],"Shabbat Zachor":["שַׁבָּת זָכוֹר"],Shavuot:["שָׁבוּעוֹת"],"Shavuot I":["שָׁבוּעוֹת א׳"],"Shavuot II":["שָׁבוּעוֹת ב׳"],"Shmini Atzeret":["שְׁמִינִי עֲצֶרֶת"],"Shushan Purim":["שׁוּשָׁן פּוּרִים"],Sigd:["סיגד"],"Simchat Torah":["שִׂמְחַת תּוֹרָה"],Sukkot:["סוּכּוֹת"],"Sukkot I":["סוּכּוֹת א׳"],"Sukkot II":["סוּכּוֹת ב׳"],"Sukkot II (CH''M)":["סוּכּוֹת ב׳ (חוה״מ)"],"Sukkot III (CH''M)":["סוּכּוֹת ג׳ (חוה״מ)"],"Sukkot IV (CH''M)":["סוּכּוֹת ד׳ (חוה״מ)"],"Sukkot V (CH''M)":["סוּכּוֹת ה׳ (חוה״מ)"],"Sukkot VI (CH''M)":["סוּכּוֹת ו׳ (חוה״מ)"],"Sukkot VII (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit Esther":["תַּעֲנִית אֶסְתֵּר"],"Tish'a B'Av":["תִּשְׁעָה בְּאָב"],"Tu B'Av":["טוּ בְּאָב"],"Tu BiShvat":["טוּ בִּשְׁבָט"],"Tu B'Shvat":["טוּ בִּשְׁבָט"],"Tzom Gedaliah":["צוֹם גְּדַלְיָה"],"Tzom Tammuz":["צוֹם תָּמוּז"],"Yom HaAtzma'ut":["יוֹם הָעַצְמָאוּת"],"Yom HaShoah":["יוֹם הַשּׁוֹאָה"],"Yom HaZikaron":["יוֹם הַזִּכָּרוֹן"],"Yom Kippur":["יוֹם כִּפּוּר"],"Yom Yerushalayim":["יוֹם יְרוּשָׁלַיִם"],"Yom HaAliyah":["יוֹם הַעֲלִיָּה"],"Yom HaAliyah School Observance":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"Rosh Chodesh Adar":["רֹאשׁ חוֹדֶשׁ אַדָר"],"Rosh Chodesh Adar I":["רֹאשׁ חוֹדֶשׁ אַדָר א׳"],"Rosh Chodesh Adar II":["רֹאשׁ חוֹדֶשׁ אַדָר ב׳"],"Rosh Chodesh Av":["רֹאשׁ חוֹדֶשׁ אָב"],"Rosh Chodesh Cheshvan":["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"],"Rosh Chodesh Elul":["רֹאשׁ חוֹדֶשׁ אֱלוּל"],"Rosh Chodesh Iyyar":["רֹאשׁ חוֹדֶשׁ אִיָיר"],"Rosh Chodesh Kislev":["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"],"Rosh Chodesh Nisan":["רֹאשׁ חוֹדֶשׁ נִיסָן"],"Rosh Chodesh Sh'vat":["רֹאשׁ חוֹדֶשׁ שְׁבָט"],"Rosh Chodesh Sivan":["רֹאשׁ חוֹדֶשׁ סִיוָן"],"Rosh Chodesh Tamuz":["רֹאשׁ חוֹדֶשׁ תָּמוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דַּקּוֹת"],"Fast begins":["תחילת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["תִּשְׁעָה בְּאָב נִדחֶה"],"Shabbat Mevarchim Chodesh":["שַׁבָּת מְבָרְכִים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבָּת שִׁירָה"],"Chatzot HaLailah":["חֲצוֹת הַלַיְלָה"],"Alot haShachar":["עֲלוֹת הַשַּׁחַר"],Misheyakir:["מִשֶּׁיַּכִּיר"],"Misheyakir Machmir":["מִשֶּׁיַּכִּיר מַחמִיר"],Dawn:["דִּימְדּוּמֵי בּוֹקֵר"],Sunrise:["הַנֵץ הַחַמָּה"],"Kriat Shema, sof zeman":["סוֹף זְמַן קְרִיאַת שְׁמַע גר״א"],"Tefilah, sof zeman":["סוֹף זְמַן תְּפִלָּה גר״א"],"Kriat Shema, sof zeman (MGA)":["סוֹף זְמַן קְרִיאַת שְׁמַע מג״א"],"Tefilah, sof zeman (MGA)":["סוֹף זְמַן תְּפִלָּה מג״א"],"Chatzot hayom":["חֲצוֹת הַיּוֹם"],"Mincha Gedolah":["מִנְחָה גְּדוֹלָה"],"Mincha Ketanah":["מִנְחָה קְטַנָּה"],"Plag HaMincha":["פְּלַג הַמִּנְחָה"],Dusk:["דִּימְדּוּמֵי עֶרֶב"],Sunset:["שְׁקִיעָה"],"Nightfall - End of ordained fasts":["לַיְלָה - גמר תעניות דרבנן"],"Tzeit HaKochavim":["צֵאת הַכּוֹכָבִים"],Lovingkindness:["חֶֽסֶד"],Might:["גְבוּרָה"],Beauty:["תִּפְאֶֽרֶת"],Eternity:["נֶּֽצַח"],Splendor:["הוֹד"],Foundation:["יְּסוֹד"],Majesty:["מַּלְכוּת"],day:["יוֹם"],"Yom Kippur Katan":["יוֹם כִּפּוּר קָטָן"],Yizkor:["יִזְכּוֹר"],"Family Day":["יוֹם הַמִּשׁפָּחָה"],"Yitzhak Rabin Memorial Day":["יוֹם הַזִּכָּרוֹן ליצחק רבין"],"Jabotinsky Day":["יוֹם ז׳בוטינסקי"],"Herzl Day":["יוֹם הרצל"],"Ben-Gurion Day":["יוֹם בן־גוריון"],"Hebrew Language Day":["יוֹם הַשָׂפָה הַעִברִית"],"Birkat Hachamah":["בִרְכַּת הַחַמָּה"],"Shushan Purim Katan":["שׁוּשָׁן פּוּרִים קָטָן"],"Purim Meshulash":["פּוּרִים מְשׁוּלָּשׁ"],"after sunset":["לְאַחַר הַשְׁקִיעָה"],Yerushalmi:["יְרוּשַׁלְמִי"],"Chag HaBanot":["חַג הַבָּנוֹת"],Joshua:["יְהוֹשׁוּעַ"],Judges:["שׁוֹפְטִים"],"I Samuel":["שְׁמוּאֵל רִאשׁוֹן"],"II Samuel":["שְׁמוּאֵל שֵׁנִי"],"I Kings":["מְלָכִים רִאשׁוֹן"],"II Kings":["מְלָכִים שֵׁנִי"],Isaiah:["יְשַׁעְיָהוּ"],Jeremiah:["יִרְמְיָהוּ"],Ezekiel:["יְחֶזְקֵאל"],Hosea:["הוֹשֵׁעַ"],Joel:["יוֹאֵל"],Amos:["עָמוּס"],Obadiah:["עוֹבַדְיָה"],Jonah:["יוֹנָה"],Micah:["מִיכָה"],Nachum:["נַחוּם"],Habakkuk:["חֲבַקּוּק"],Zephaniah:["צְפַנְיָה"],Haggai:["חַגַּי"],Zechariah:["זְכַרְיָה"],Malachi:["מַלְאָכִי"],Psalms:["תְּהִלִּים"],Proverbs:["מִשְׁלֵי"],Job:["אִיּוֹב"],"Song of Songs":["שִׁיר הַשִּׁירִים"],Ruth:["רוּת"],Lamentations:["אֵיכָה"],Ecclesiastes:["קֹהֶלֶת"],Esther:["אֶסְתֵּר"],Daniel:["דָּנִיֵּאל"],Ezra:["עֶזְרָא"],Nehemiah:["נְחֶמְיָה"],"I Chronicles":["דִברֵי הַיָמִים רִאשׁוֹן"],"II Chronicles":["דִברֵי הַיָמִים שֵׁנִי"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"],"Pirkei Avot":["פִּרְקֵי אָבוֹת"]}}};ie.addTranslations("he",pe),ie.addTranslations("h",pe),ie.addTranslations("ashkenazi",ve),ie.addTranslations("a",ve);const we=pe.contexts[""],Se={};for(const[e,t]of Object.entries(we))Se[e]=[ie.hebrewStripNikkud(t[0])];const Ae={headers:pe.headers,contexts:{"":Se}};ie.addTranslations("he-x-NoNikud",Ae);const be={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},Te=[[be.MAJOR_FAST,"holiday","major","fast"],[be.CHANUKAH_CANDLES,"holiday","major"],[be.HEBREW_DATE,"hebdate"],[be.MINOR_FAST,"holiday","fast"],[be.MINOR_HOLIDAY,"holiday","minor"],[be.MODERN_HOLIDAY,"holiday","modern"],[be.MOLAD,"molad"],[be.OMER_COUNT,"omer"],[be.PARSHA_HASHAVUA,"parashat"],[be.ROSH_CHODESH,"roshchodesh"],[be.SHABBAT_MEVARCHIM,"mevarchim"],[be.SPECIAL_SHABBAT,"holiday","shabbat"],[be.USER_EVENT,"user"],[be.YIZKOR,"yizkor"]];class Ie{constructor(e,t,n=0,r){if(!de.isHDate(e))throw new TypeError(`Invalid Event date: ${e}`);if("string"!=typeof t)throw new TypeError(`Invalid Event description: ${t}`);this.date=e,this.desc=t,this.mask=+n,"object"==typeof r&&null!==r&&Object.assign(this,r)}getDate(){return this.date}getDesc(){return this.desc}getFlags(){return this.mask}render(e){return ie.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&be.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&be.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new Ie(this.date,this.desc,this.mask);return Object.assign(e,this),e}getCategories(){const e=this.getFlags();for(const t of Te){if(e&t[0])return t.slice(1)}return["unknown"]}}class Ee extends Ie{constructor(e){super(e,e.toString(),be.HEBREW_DATE)}render(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:ie.getLocaleName(),r=this.getDate();switch(n){case"h":case"he":return r.renderGematriya(!1);case"he-x-nonikud":return r.renderGematriya(!0);default:return r.render(n,!0)}}renderBriefHebrew(e){const t=this.getDate(),n=t.getDate(),r=ie.gettext(t.getMonthName(),e);return x(n)+" "+r}renderBrief(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:ie.getLocaleName(),r=this.getDate();if(r.getMonth()===f.TISHREI&&1===r.getDate())return this.render(n);switch(n){case"h":case"he":case"he-x-nonikud":return this.renderBriefHebrew(n);default:return r.render(n,!1)}}}var Me,He,Ne="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ce={};function De(){if(He)return Me;He=1;var e=function(e){return e&&e.Math===Math&&e};return Me=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof Ne&&Ne)||e("object"==typeof Me&&Me)||function(){return this}()||Function("return this")()}var Oe,_e,ke,Le,Re,Ye,Pe,Be,je={};function Ue(){return _e?Oe:(_e=1,Oe=function(e){try{return!!e()}catch(e){return!0}})}function xe(){if(Le)return ke;Le=1;var e=Ue();return ke=!e((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function Ze(){if(Ye)return Re;Ye=1;var e=Ue();return Re=!e((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))}function $e(){if(Be)return Pe;Be=1;var e=Ze(),t=Function.prototype.call;return Pe=e?t.bind(t):function(){return t.apply(t,arguments)},Pe}var Ve,Fe,ze,Ke,Ge,Je,We,qe,Xe,Qe,et,tt,nt,rt,ot,it,at,st,ut,ct,ht,lt,ft,dt,gt,mt,yt,vt,pt,wt,St,At,bt,Tt,It,Et,Mt,Ht,Nt,Ct,Dt,Ot={};function _t(){return ze?Fe:(ze=1,Fe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function kt(){if(Ge)return Ke;Ge=1;var e=Ze(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return Ke=e?r:function(e){return function(){return n.apply(e,arguments)}},Ke}function Lt(){if(Xe)return qe;Xe=1;var e=kt(),t=Ue(),n=function(){if(We)return Je;We=1;var e=kt(),t=e({}.toString),n=e("".slice);return Je=function(e){return n(t(e),8,-1)},Je}(),r=Object,o=e("".split);return qe=t((function(){return!r("z").propertyIsEnumerable(0)}))?function(e){return"String"===n(e)?o(e,""):r(e)}:r,qe}function Rt(){return et||(et=1,Qe=function(e){return null==e}),Qe}function Yt(){if(nt)return tt;nt=1;var e=Rt(),t=TypeError;return tt=function(n){if(e(n))throw new t("Can't call method on "+n);return n},tt}function Pt(){if(ot)return rt;ot=1;var e=Lt(),t=Yt();return rt=function(n){return e(t(n))},rt}function Bt(){if(at)return it;at=1;var e="object"==typeof document&&document.all;return it=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function jt(){if(ut)return st;ut=1;var e=Bt();return st=function(t){return"object"==typeof t?null!==t:e(t)},st}function Ut(){if(ht)return ct;ht=1;var e=De(),t=Bt();return ct=function(n,r){return arguments.length<2?(o=e[n],t(o)?o:void 0):e[n]&&e[n][r];var o},ct}function xt(){if(yt)return mt;yt=1;var e,t,n=De(),r=function(){if(gt)return dt;gt=1;var e=De().navigator,t=e&&e.userAgent;return dt=t?String(t):""}(),o=n.process,i=n.Deno,a=o&&o.versions||i&&i.version,s=a&&a.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),mt=t}function Zt(){if(pt)return vt;pt=1;var e=xt(),t=Ue(),n=De().String;return vt=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))}function $t(){if(St)return wt;St=1;var e=Zt();return wt=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Vt(){if(bt)return At;bt=1;var e=Ut(),t=Bt(),n=function(){if(ft)return lt;ft=1;var e=kt();return lt=e({}.isPrototypeOf)}(),r=$t(),o=Object;return At=r?function(e){return"symbol"==typeof e}:function(r){var i=e("Symbol");return t(i)&&n(i.prototype,o(r))},At}function Ft(){if(It)return Tt;It=1;var e=String;return Tt=function(t){try{return e(t)}catch(e){return"Object"}}}function zt(){if(Mt)return Et;Mt=1;var e=Bt(),t=Ft(),n=TypeError;return Et=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function Kt(){if(Nt)return Ht;Nt=1;var e=zt(),t=Rt();return Ht=function(n,r){var o=n[r];return t(o)?void 0:e(o)},Ht}function Gt(){if(Dt)return Ct;Dt=1;var e=$e(),t=Bt(),n=jt(),r=TypeError;return Ct=function(o,i){var a,s;if("string"===i&&t(a=o.toString)&&!n(s=e(a,o)))return s;if(t(a=o.valueOf)&&!n(s=e(a,o)))return s;if("string"!==i&&t(a=o.toString)&&!n(s=e(a,o)))return s;throw new r("Can't convert object to primitive value")},Ct}var Jt,Wt,qt,Xt,Qt,en,tn,nn,rn,on,an,sn,un,cn,hn,ln,fn,dn,gn,mn,yn,vn,pn,wn,Sn={exports:{}};function An(){if(Xt)return qt;Xt=1;var e=De(),t=Object.defineProperty;return qt=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function bn(){if(Qt)return Sn.exports;Qt=1;var e=Wt?Jt:(Wt=1,Jt=!1),t=De(),n=An(),r="__core-js_shared__",o=Sn.exports=t[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.42.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Sn.exports}function Tn(){if(tn)return en;tn=1;var e=bn();return en=function(t,n){return e[t]||(e[t]=n||{})}}function In(){if(rn)return nn;rn=1;var e=Yt(),t=Object;return nn=function(n){return t(e(n))}}function En(){if(an)return on;an=1;var e=kt(),t=In(),n=e({}.hasOwnProperty);return on=Object.hasOwn||function(e,r){return n(t(e),r)},on}function Mn(){if(un)return sn;un=1;var e=kt(),t=0,n=Math.random(),r=e(1..toString);return sn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function Hn(){if(hn)return cn;hn=1;var e=De(),t=Tn(),n=En(),r=Mn(),o=Zt(),i=$t(),a=e.Symbol,s=t("wks"),u=i?a.for||a:a&&a.withoutSetter||r;return cn=function(e){return n(s,e)||(s[e]=o&&n(a,e)?a[e]:u("Symbol."+e)),s[e]}}function Nn(){if(fn)return ln;fn=1;var e=$e(),t=jt(),n=Vt(),r=Kt(),o=Gt(),i=Hn(),a=TypeError,s=i("toPrimitive");return ln=function(i,u){if(!t(i)||n(i))return i;var c,h=r(i,s);if(h){if(void 0===u&&(u="default"),c=e(h,i,u),!t(c)||n(c))return c;throw new a("Can't convert object to primitive value")}return void 0===u&&(u="number"),o(i,u)}}function Cn(){if(gn)return dn;gn=1;var e=Nn(),t=Vt();return dn=function(n){var r=e(n,"string");return t(r)?r:r+""}}function Dn(){if(yn)return mn;yn=1;var e=De(),t=jt(),n=e.document,r=t(n)&&t(n.createElement);return mn=function(e){return r?n.createElement(e):{}},mn}function On(){if(pn)return vn;pn=1;var e=xe(),t=Ue(),n=Dn();return vn=!e&&!t((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function _n(){if(wn)return je;wn=1;var e=xe(),t=$e(),n=function(){if(Ve)return Ot;Ve=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return Ot.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,Ot}(),r=_t(),o=Pt(),i=Cn(),a=En(),s=On(),u=Object.getOwnPropertyDescriptor;return je.f=e?u:function(e,c){if(e=o(e),c=i(c),s)try{return u(e,c)}catch(e){}if(a(e,c))return r(!t(n.f,e,c),e[c])},je}var kn,Ln,Rn,Yn,Pn,Bn,jn,Un={};function xn(){if(Ln)return kn;Ln=1;var e=xe(),t=Ue();return kn=e&&t((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}function Zn(){if(Yn)return Rn;Yn=1;var e=jt(),t=String,n=TypeError;return Rn=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function $n(){if(Pn)return Un;Pn=1;var e=xe(),t=On(),n=xn(),r=Zn(),o=Cn(),i=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",h="writable";return Un.f=e?n?function(e,t,n){if(r(e),t=o(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var i=s(e,t);i&&i[h]&&(e[t]=n.value,n={configurable:c in n?n[c]:i[c],enumerable:u in n?n[u]:i[u],writable:!1})}return a(e,t,n)}:a:function(e,n,s){if(r(e),n=o(n),r(s),t)try{return a(e,n,s)}catch(e){}if("get"in s||"set"in s)throw new i("Accessors not supported");return"value"in s&&(e[n]=s.value),e},Un}function Vn(){if(jn)return Bn;jn=1;var e=xe(),t=$n(),n=_t();return Bn=e?function(e,r,o){return t.f(e,r,n(1,o))}:function(e,t,n){return e[t]=n,e}}var Fn,zn,Kn,Gn,Jn,Wn,qn,Xn,Qn,er,tr,nr,rr,or,ir,ar={exports:{}};function sr(){if(Gn)return Kn;Gn=1;var e=kt(),t=Bt(),n=bn(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),Kn=n.inspectSource}function ur(){if(Xn)return qn;Xn=1;var e=Tn(),t=Mn(),n=e("keys");return qn=function(e){return n[e]||(n[e]=t(e))}}function cr(){return er?Qn:(er=1,Qn={})}function hr(){if(nr)return tr;nr=1;var e,t,n,r=function(){if(Wn)return Jn;Wn=1;var e=De(),t=Bt(),n=e.WeakMap;return Jn=t(n)&&/native code/.test(String(n))}(),o=De(),i=jt(),a=Vn(),s=En(),u=bn(),c=ur(),h=cr(),l="Object already initialized",f=o.TypeError,d=o.WeakMap;if(r||u.state){var g=u.state||(u.state=new d);g.get=g.get,g.has=g.has,g.set=g.set,e=function(e,t){if(g.has(e))throw new f(l);return t.facade=e,g.set(e,t),t},t=function(e){return g.get(e)||{}},n=function(e){return g.has(e)}}else{var m=c("state");h[m]=!0,e=function(e,t){if(s(e,m))throw new f(l);return t.facade=e,a(e,m,t),t},t=function(e){return s(e,m)?e[m]:{}},n=function(e){return s(e,m)}}return tr={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!i(n)||(r=t(n)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}},tr}function lr(){if(rr)return ar.exports;rr=1;var e=kt(),t=Ue(),n=Bt(),r=En(),o=xe(),i=function(){if(zn)return Fn;zn=1;var e=xe(),t=En(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,o=t(n,"name"),i=o&&"something"===function(){}.name,a=o&&(!e||e&&r(n,"name").configurable);return Fn={EXISTS:o,PROPER:i,CONFIGURABLE:a}}().CONFIGURABLE,a=sr(),s=hr(),u=s.enforce,c=s.get,h=String,l=Object.defineProperty,f=e("".slice),d=e("".replace),g=e([].join),m=o&&!t((function(){return 8!==l((function(){}),"length",{value:8}).length})),y=String(String).split("String"),v=ar.exports=function(e,t,n){"Symbol("===f(h(t),0,7)&&(t="["+d(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!r(e,"name")||i&&e.name!==t)&&(o?l(e,"name",{value:t,configurable:!0}):e.name=t),m&&n&&r(n,"arity")&&e.length!==n.arity&&l(e,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&l(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var a=u(e);return r(a,"source")||(a.source=g(y,"string"==typeof t?t:"")),e};return Function.prototype.toString=v((function(){return n(this)&&c(this).source||a(this)}),"toString"),ar.exports}function fr(){if(ir)return or;ir=1;var e=Bt(),t=$n(),n=lr(),r=An();return or=function(o,i,a,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:i;if(e(a)&&n(a,c,s),s.global)u?o[i]=a:r(i,a);else{try{s.unsafe?o[i]&&(u=!0):delete o[i]}catch(e){}u?o[i]=a:t.f(o,i,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return o},or}var dr,gr,mr,yr,vr,pr,wr,Sr,Ar,br,Tr,Ir,Er,Mr,Hr,Nr,Cr,Dr={};function Or(){if(yr)return mr;yr=1;var e=function(){if(gr)return dr;gr=1;var e=Math.ceil,t=Math.floor;return dr=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},dr}();return mr=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function _r(){if(pr)return vr;pr=1;var e=Or(),t=Math.max,n=Math.min;return vr=function(r,o){var i=e(r);return i<0?t(i+o,0):n(i,o)}}function kr(){if(Sr)return wr;Sr=1;var e=Or(),t=Math.min;return wr=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function Lr(){if(br)return Ar;br=1;var e=kr();return Ar=function(t){return e(t.length)}}function Rr(){if(Ir)return Tr;Ir=1;var e=Pt(),t=_r(),n=Lr(),r=function(r){return function(o,i,a){var s=e(o),u=n(s);if(0===u)return!r&&-1;var c,h=t(a,u);if(r&&i!=i){for(;u>h;)if((c=s[h++])!=c)return!0}else for(;u>h;h++)if((r||h in s)&&s[h]===i)return r||h||0;return!r&&-1}};return Tr={includes:r(!0),indexOf:r(!1)}}function Yr(){if(Mr)return Er;Mr=1;var e=kt(),t=En(),n=Pt(),r=Rr().indexOf,o=cr(),i=e([].push);return Er=function(e,a){var s,u=n(e),c=0,h=[];for(s in u)!t(o,s)&&t(u,s)&&i(h,s);for(;a.length>c;)t(u,s=a[c++])&&(~r(h,s)||i(h,s));return h},Er}function Pr(){return Nr?Hr:(Nr=1,Hr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Br,jr,Ur,xr,Zr,$r,Vr,Fr,zr,Kr={};function Gr(){if(Ur)return jr;Ur=1;var e=Ut(),t=kt(),n=function(){if(Cr)return Dr;Cr=1;var e=Yr(),t=Pr().concat("length","prototype");return Dr.f=Object.getOwnPropertyNames||function(n){return e(n,t)},Dr}(),r=(Br||(Br=1,Kr.f=Object.getOwnPropertySymbols),Kr),o=Zn(),i=t([].concat);return jr=e("Reflect","ownKeys")||function(e){var t=n.f(o(e)),a=r.f;return a?i(t,a(e)):t},jr}function Jr(){if(Zr)return xr;Zr=1;var e=En(),t=Gr(),n=_n(),r=$n();return xr=function(o,i,a){for(var s=t(i),u=r.f,c=n.f,h=0;h<s.length;h++){var l=s[h];e(o,l)||a&&e(a,l)||u(o,l,c(i,l))}},xr}function Wr(){if(zr)return Fr;zr=1;var e=De(),t=_n().f,n=Vn(),r=fr(),o=An(),i=Jr(),a=function(){if(Vr)return $r;Vr=1;var e=Ue(),t=Bt(),n=/#|\.prototype\./,r=function(n,r){var u=i[o(n)];return u===s||u!==a&&(t(r)?e(r):!!r)},o=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},i=r.data={},a=r.NATIVE="N",s=r.POLYFILL="P";return $r=r}();return Fr=function(s,u){var c,h,l,f,d,g=s.target,m=s.global,y=s.stat;if(c=m?e:y?e[g]||o(g,{}):e[g]&&e[g].prototype)for(h in u){if(f=u[h],l=s.dontCallGetSet?(d=t(c,h))&&d.value:c[h],!a(m?h:g+(y?".":"#")+h,s.forced)&&void 0!==l){if(typeof f==typeof l)continue;i(f,l)}(s.sham||l&&l.sham)&&n(f,"sham",!0),r(c,h,f,s)}}}var qr,Xr,Qr,eo,to,no,ro,oo,io,ao,so={};function uo(){if(Xr)return qr;Xr=1;var e=Yr(),t=Pr();return qr=Object.keys||function(n){return e(n,t)},qr}function co(){if(to)return eo;to=1;var e=Ut();return eo=e("document","documentElement")}function ho(){if(ro)return no;ro=1;var e,t=Zn(),n=function(){if(Qr)return so;Qr=1;var e=xe(),t=xn(),n=$n(),r=Zn(),o=Pt(),i=uo();return so.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var a,s=o(t),u=i(t),c=u.length,h=0;c>h;)n.f(e,a=u[h++],s[a]);return e},so}(),r=Pr(),o=cr(),i=co(),a=Dn(),s=ur(),u="prototype",c="script",h=s("IE_PROTO"),l=function(){},f=function(e){return"<"+c+">"+e+"</"+c+">"},d=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,n,o;g="undefined"!=typeof document?document.domain&&e?d(e):(n=a("iframe"),o="java"+c+":",n.style.display="none",i.appendChild(n),n.src=String(o),(t=n.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):d(e);for(var s=r.length;s--;)delete g[u][r[s]];return g()};return o[h]=!0,no=Object.create||function(e,r){var o;return null!==e?(l[u]=t(e),o=new l,l[u]=null,o[h]=e):o=g(),void 0===r?o:n.f(o,r)},no}function lo(){if(io)return oo;io=1;var e=Hn(),t=ho(),n=$n().f,r=e("unscopables"),o=Array.prototype;return void 0===o[r]&&n(o,r,{configurable:!0,value:t(null)}),oo=function(e){o[r][e]=!0}}function fo(e,t,n,r,o){return go(t,((e,t)=>{const n=e[t];if(void 0===n)throw new TypeError(kc(t));return n})(e,t),n,r,o)}function go(e,t,n,r,o,i){const a=Lo(t,n,r);if(o&&t!==a)throw new RangeError(Oc(e,t,n,r,i));return a}function mo(e){return null!==e&&/object|function/.test(typeof e)}function yo(e){const t=new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Map);return function(n){if(t.has(n))return t.get(n);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];const a=e(n,...o);return t.set(n,a),a}}function vo(e){return po({name:e},1)}function po(e,t){return bo((e=>({value:e,configurable:1,writable:!t})),e)}function wo(e){return bo((e=>({get:e,configurable:1})),e)}function So(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function Ao(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function bo(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function To(e,t,n){const r={};for(let o=0;o<t.length;o++){const i=t[o];r[i]=e(i,o,n)}return r}function Io(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function Eo(e,t){const n=Object.create(null);for(const r of e)n[r]=t[r];return n}function Mo(e,t){for(const n of t)if(n in e)return 1;return 0}function Ho(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function No(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function Co(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(...n,...r)}}function Do(e){return e[0].toUpperCase()+e.substring(1)}function Oo(e){return e.slice().sort()}function _o(e,t){return String(t).padStart(e,"0")}function ko(e,t){return Math.sign(e-t)}function Lo(e,t,n){return Math.min(Math.max(e,t),n)}function Ro(e,t){return[Math.floor(e/t),Yo(e,t)]}function Yo(e,t){return(e%t+t)%t}function Po(e,t){return[Bo(e,t),jo(e,t)]}function Bo(e,t){return Math.trunc(e/t)||0}function jo(e,t){return e%t||0}function Uo(e){return.5===Math.abs(e%1)}function xo(e,t,n){let r=0,o=0;for(let i=0;i<=t;i++){const t=e[n[i]],a=Nh[i],s=Hh/a,[u,c]=Po(t,s);r+=c*a,o+=u}const[i,a]=Po(r,Hh);return[o+i,a]}function Zo(e,t,n){const r={};for(let o=t;o>=0;o--){const t=Nh[o];r[n[o]]=Bo(e,t),e=jo(e,t)}return r}function $o(e){if(void 0!==e)return Fo(e)}function Vo(e){return Wo(Fo(e))}function Fo(e){return Jo(tl(e))}function zo(e,t){if(null==t)throw new RangeError(kc(e));return t}function Ko(e){if(!mo(e))throw new TypeError(Dc);return e}function Go(e,t){if(typeof t!==e)throw new TypeError(_c(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t));return t}function Jo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(!Number.isInteger(e))throw new RangeError(Ic(t,e));return e||0}function Wo(e){if(e<=0)throw new RangeError(Ec(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",e));return e}function qo(e){if("symbol"==typeof e)throw new TypeError(Cc);return String(e)}function Xo(e,t){return mo(e)?String(e):Qh(e,t)}function Qo(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(Nc(e));return e}function ei(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if("bigint"==typeof e)throw new TypeError(Hc(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(Mc(t,e));return e}function ti(e,t){return Math.trunc(ei(e,t))||0}function ni(e,t){return Jo(ei(e,t),t)}function ri(e,t){return Wo(ti(e,t),t)}function oi(e,t){let[n,r]=Po(t,Hh),o=e+n;const i=Math.sign(o);return i&&i===-Math.sign(r)&&(o-=i,r+=i*Hh),[o,r]}function ii(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return oi(e[0]+t[0]*n,e[1]+t[1]*n)}function ai(e,t){return oi(e[0],e[1]+t)}function si(e,t){return ii(t,e,-1)}function ui(e,t){return ko(e[0],t[0])||ko(e[1],t[1])}function ci(e,t,n){return-1===ui(e,t)||1===ui(e,n)}function hi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=BigInt(Hh/t);return[Number(e/n),Number(e%n)*t]}function li(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=Hh/t,[r,o]=Po(e,n);return[r,o*t]}function fi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;const[r,o]=e,[i,a]=Po(o,t);return r*(Hh/t)+(i+(n?a/t:0))}function di(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ro;const[r,o]=e,[i,a]=n(o,t);return[r*(Hh/t)+i,a]}function gi(e){return fo(e,"isoYear",Il,Tl,1),e.isoYear===Il?fo(e,"isoMonth",4,12,1):e.isoYear===Tl&&fo(e,"isoMonth",1,9,1),e}function mi(e){return yi({...e,...vl,isoHour:12}),e}function yi(e){const t=fo(e,"isoYear",Il,Tl,1),n=t===Il?1:t===Tl?-1:0;return n&&vi(bi({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function vi(e){if(!e||ci(e,bl,Al))throw new RangeError(oh);return e}function pi(e){return xo(e,5,ll)[1]}function wi(e){const[t,n]=Ro(e,Hh);return[Zo(n,5,ll),t]}function Si(e){return di(e,Ih)}function Ai(e){return Ei(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function bi(e){const t=Ai(e);if(void 0!==t){const[n,r]=Po(t,Sh);return[n,r*Th+(e.isoMicrosecond||0)*bh+(e.isoNanosecond||0)]}}function Ti(e,t){const[n,r]=wi(pi(e)-t);return vi(bi({...e,isoDay:e.isoDay+r,...n}))}function Ii(){return Ei(...arguments)/Ah}function Ei(){const[e,t]=Mi(...arguments),n=e.valueOf();if(!isNaN(n))return n-t*Sh}function Mi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;const s=e===Il?1:e===Tl?-1:0,u=new Date;return u.setUTCHours(r,o,i,a),u.setUTCFullYear(e,t-1,n+s),[u,s]}function Hi(e,t){let[n,r]=ai(e,t);r<0&&(r+=Hh,n-=1);const[o,i]=Ro(r,Th),[a,s]=Ro(i,bh);return Ni(n*Sh+o,a,s)}function Ni(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=Math.ceil(Math.max(0,Math.abs(e)-Sl)/Sh)*Math.sign(e),o=new Date(e-r*Sh);return Ao(dl,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+r,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,n])}function Ci(e,t){if(t<-864e13)throw new RangeError(oh);const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function Di(e){return[e.isoYear,e.isoMonth,e.isoDay]}function Oi(e,t){return[t,0]}function _i(){return Cl}function ki(e,t){switch(t){case 2:return Ri(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function Li(e){return Ri(e)?366:365}function Ri(e){return e%4==0&&(e%100!=0||e%400==0)}function Yi(e){const[t,n]=Mi(e.isoYear,e.isoMonth,e.isoDay);return Yo(t.getUTCDay()-n,7)||7}function Pi(e){return this.id===Gh?(e=>{let{isoYear:t}=e;return t<1?["gregory-inverse",1-t]:["gregory",t]})(e):this.id===Jh?Ol(e):[]}function Bi(e){const t=Ai(e);if(t<Dl){const{isoYear:t}=e;return t<1?["japanese-inverse",1-t]:["japanese",t]}const n=Ci($f(Jh),t),{era:r,eraYear:o}=Zu(n,Jh);return[r,o]}function ji(e){return Ui(e),$i(e,1),e}function Ui(e){return Zi(e,1),e}function xi(e){return Ho(fl,e,Zi(e))}function Zi(e,t){const{isoYear:n}=e,r=fo(e,"isoMonth",1,_i(),t);return{isoYear:n,isoMonth:r,isoDay:fo(e,"isoDay",1,ki(n,r),t)}}function $i(e,t){return Ao(ll,[fo(e,"isoHour",0,23,t),fo(e,"isoMinute",0,59,t),fo(e,"isoSecond",0,59,t),fo(e,"isoMillisecond",0,999,t),fo(e,"isoMicrosecond",0,999,t),fo(e,"isoNanosecond",0,999,t)])}function Vi(e){return void 0===e?0:Wl(Ko(e))}function Fi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=ta(e);const n=ql(e),r=Xl(e,t);return[Wl(e),r,n]}function zi(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:9,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:4;t=ta(t);let a=Gl(t,r,o),s=Xi(t),u=nf(t,i);const c=Kl(t,r,o,1);return null==a?a=Math.max(n,c):aa(a,c),s=Qi(s,c,1),e&&(u=(e=>e<4?(e+2)%4:e)(u)),[a,c,s,u]}function Ki(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=arguments.length>2?arguments[2]:void 0,r=Xi(e=na(e,_l));const o=nf(e,7);let i=Kl(e,t);return i=zo(_l,i),r=Qi(r,i,void 0,n),[i,r,o]}function Gi(e){return Ql(ta(e))}function Ji(e,t){return Wi(ta(e),t)}function Wi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=ea(e);return[nf(e,4),...qi(Kl(e,t),n)]}function qi(e,t){return null!=e?[Nh[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function Xi(e){const t=e[Ll];return void 0===t?1:ti(t,Ll)}function Qi(e,t,n,r){const o=r?Hh:Nh[t+1];if(o){const n=Nh[t];if(o%((e=go(Ll,e,1,o/n-(r?0:1),1))*n))throw new RangeError(_c(Ll,e))}else e=go(Ll,e,1,n?10**9:1,1);return e}function ea(e){let t=e[Rl];if(void 0!==t){if("number"!=typeof t){if("auto"===qo(t))return;throw new RangeError(_c(Rl,t))}t=go(Rl,Math.floor(t),0,9,1)}return t}function ta(e){return void 0===e?{}:Ko(e)}function na(e,t){return"string"==typeof e?{[t]:e}:Ko(e)}function ra(e){return{overflow:jl[e]}}function oa(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:9,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,i=t[e];if(void 0===i)return o?r:void 0;if(i=qo(i),"auto"===i)return o?r:null;let a=ph[i];if(void 0===a&&(a=sl[i]),void 0===a)throw new RangeError(Pc(e,i,ph));return go(e,a,r,n,1,wh),a}function ia(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=n[e];if(void 0===o)return r;const i=qo(o),a=t[i];if(void 0===a)throw new RangeError(Pc(e,i,t));return a}function aa(e,t){if(t>e)throw new RangeError(hh)}function sa(e){return{branding:hf,epochNanoseconds:e}}function ua(e,t,n){return{branding:cf,calendar:n,timeZone:t,epochNanoseconds:e}}function ca(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:sf,calendar:t,...Eo(yl,e)}}function ha(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:af,calendar:t,...Eo(gl,e)}}function la(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:rf,calendar:t,...Eo(gl,e)}}function fa(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:of,calendar:t,...Eo(gl,e)}}function da(e){return{branding:uf,...Eo(ml,e)}}function ga(e){return{branding:lf,sign:Ns(e),...Eo(rl,e)}}function ma(e){return di(e.epochNanoseconds,Th)[0]}function ya(e){return e.epochNanoseconds}function va(e,t){return fi(Os(e),Nh[t],1)}function pa(e,t,n,r,o,i,a){const s=nl[n],u={...t,[s]:t[s]+r},c=a(e,o,t),h=a(e,o,u);return[i(c),i(h)]}function wa(e,t,n){const r=fi(si(t,n));if(!r)throw new RangeError(Gc);return fi(si(t,e))/r}function Sa(e,t,n,r){return Aa(e,Ia(t,n),r)}function Aa(e,t,n){const[r,o]=ba(e,t,n);return yi({...ps(e,o),...r})}function ba(e,t,n){return wi(Oa(pi(e),t,n))}function Ta(e){return Oa(e,Eh,7)}function Ia(e,t){return Nh[e]*t}function Ea(e){const t=Ma(e);return[t,ps(t,1)]}function Ma(e){return pl(6,e)}function Ha(e,t,n){const r=Math.min(Rs(e),6);return _s(Da(Os(e,r),t,n),r)}function Na(e,t,n,r,o,i,a,s,u,c){if(0===r&&1===o)return e;const h=Is(r,s)?Ts(s)&&r<6&&n>=6?La:ka:Ra;let[l,f,d]=h(e,t,n,r,o,i,a,s,u,c);return d&&7!==r&&(l=((e,t,n,r,o,i,a,s)=>{const u=Ns(e);for(let c=r+1;c<=n;c++){if(7===c&&7!==n)continue;const r=hl(c,e);r[nl[c]]+=u;const h=fi(si(a(s(o,i,r)),t));if(h&&Math.sign(h)!==u)break;e=r}return e})(l,f,n,Math.max(6,r),a,s,u,c)),l}function Ca(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/Hh)(e);return[Oa(t,n,r),0]}return Da(e,Ia(t,n),r,o)}function Da(e,t,n,r){let[o,i]=e;r&&i<0&&(i+=Hh,o-=1);const[a,s]=Ro(Oa(i,t,n),Hh);return oi(o+a,s)}function Oa(e,t,n){return _a(e/t,n)*t}function _a(e,t){return ff[t](e)}function ka(e,t,n,r,o,i){const a=Ns(e),s=Os(e),u=Ca(s,r,o,i),c=si(s,u),h=Math.sign(u[0]-s[0])===a,l=_s(u,Math.min(n,6));return[{...e,...l},ii(t,c),h]}function La(e,t,n,r,o,i,a,s,u,c){const h=Ns(e)||1,l=fi(Os(e,5)),f=Ia(r,o);let d=Oa(l,f,i);const[g,m]=pa(a,{...e,...cl},6,h,s,u,c),y=d-fi(si(g,m));let v=0;y&&Math.sign(y)!==h?t=ai(g,d):(v+=h,d=Oa(y,f,i),t=ai(m,d));const p=ks(d);return[{...e,...p,days:e.days+v},t,Boolean(v)]}function Ra(e,t,n,r,o,i,a,s,u,c){const h=Ns(e),l=nl[r],f=hl(r,e);7===r&&(e={...e,weeks:e.weeks+Math.trunc(e.days/7)});const d=Bo(e[l],o)*o;f[l]=d;const[g,m]=pa(a,f,r,o*h,s,u,c),y=d+wa(t,g,m)*h*o,v=Oa(y,o,i),p=Math.sign(v-y)===h;return f[l]=v,[f,p?m:g,p]}function Ya(e,t,n,r){const[o,i,a,s]=(e=>{const t=Wi(e=ta(e));return[e.timeZone,...t]})(r),u=void 0!==o;return((e,t,n,r,o,i)=>{n=Da(n,o,r,1);const a=t.R(n);return za(Hi(n,a),i)+(e?qa(Ta(a)):"Z")})(u,t(u?e(o):df),n.epochNanoseconds,i,a,s)}function Pa(e,t,n){const[r,o,i,a,s,u]=(e=>{e=ta(e);const t=Ql(e),n=ea(e),r=tf(e),o=nf(e,4),i=Kl(e,4);return[t,ef(e),r,o,...qi(i,n)]})(n);return((e,t,n,r,o,i,a,s,u,c)=>{r=Da(r,u,s,1);const h=e(n).R(r);return za(Hi(r,h),c)+qa(Ta(h),a)+((e,t)=>1!==t?"["+(2===t?"!":"")+e+"]":"")(n,i)+Xa(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,i,a,s,u)}function Ba(e,t){const[n,r,o,i]=(e=>(e=ta(e),[Ql(e),...Wi(e)]))(t);return a=e.calendar,s=n,u=i,za(Aa(e,o,r),u)+Xa(a,s);var a,s,u}function ja(e,t){return n=e.calendar,r=e,o=Gi(t),Ka(r)+Xa(n,o);var n,r,o}function Ua(e,t){return Va(e.calendar,Ga,e,Gi(t))}function xa(e,t){return Va(e.calendar,Ja,e,Gi(t))}function Za(e,t){const[n,r,o]=Ji(t);return i=o,Wa(ba(e,r,n)[0],i);var i}function $a(e,t){const[n,r,o]=Ji(t,3);return r>1&&Cs(e={...e,...Ha(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?Hs(e):e,{hours:o,minutes:i}=r,[a,s]=di(Os(r,3),Ih,Po);Ds(a);const u=es(s,t),c=t>=0||!n||u;return(n<0?"-":"")+"P"+Fa({Y:ns(r.years),M:ns(r.months),W:ns(r.weeks),D:ns(r.days)})+(o||i||a||c?"T"+Fa({H:ns(o),M:ns(i),S:ns(a,c)+u}):"")})(e,o)}function Va(e,t,n,r){const o=r>1||0===r&&e!==Kh;return 1===r?e===Kh?t(n):Ka(n):o?Ka(n)+Qa(e,2===r):t(n)}function Fa(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function za(e,t){return Ka(e)+"T"+Wa(e,t)}function Ka(e){return Ga(e)+"-"+vh(e.isoDay)}function Ga(e){const{isoYear:t}=e;return(t<0||t>9999?ts(t)+_o(6,Math.abs(t)):_o(4,t))+"-"+vh(e.isoMonth)}function Ja(e){return vh(e.isoMonth)+"-"+vh(e.isoDay)}function Wa(e,t){const n=[vh(e.isoHour),vh(e.isoMinute)];return-1!==t&&n.push(vh(e.isoSecond)+((e,t,n,r)=>es(e*Th+t*bh+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function qa(e){if(1===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0))return"";const[t,n]=Ro(Math.abs(e),Mh),[r,o]=Ro(n,Eh),[i,a]=Ro(o,Ih);return ts(e)+vh(t)+":"+vh(r)+(i||a?":"+vh(i)+es(a):"")}function Xa(e,t){return 1!==t&&(t>1||0===t&&e!==Kh)?Qa(e,2===t):""}function Qa(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function es(e,t){let n=_o(9,e);return n=void 0===t?n.replace(vf,""):n.slice(0,t),n?"."+n:""}function ts(e){return e<0?"-":"+"}function ns(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function rs(e,t){const{epochNanoseconds:n}=e,r=(t.R?t:t(e.timeZone)).R(n),o=Hi(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function os(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0;if(void 0!==n&&1===r&&(1===r||a))return Ti(t,n);const s=e.I(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=bi(t);r&&(n=Ta(n));for(const t of e){let e=fi(si(t,o));if(r&&(e=Ta(e)),e===n)return t}})(s,t,n,i);if(void 0!==e)return e;if(0===r)throw new RangeError(nh)}return a?bi(t):is(e,t,o,s)}function is(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.I(t);if(1===r.length)return r[0];if(1===n)throw new RangeError(rh);if(r.length)return r[3===n?1:0];const o=bi(t),i=((e,t)=>{const n=e.R(ai(t,-864e11));return(e=>{if(e>Hh)throw new RangeError(th);return e})(e.R(ai(t,Hh))-n)})(e,o),a=i*(2===n?-1:1);return(r=e.I(Hi(o,a)))[2===n?0:r.length-1]}function as(e,t){const n=e.I(t);if(n.length)return n[0];const r=ai(bi(t),-864e11);return e.O(r,1)}function ss(e,t,n){return sa(vi(ii(t.epochNanoseconds,(e=>{if(Ls(e))throw new RangeError(uh);return Os(e,5)})(e?Hs(n):n))))}function us(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Object.create(null);const a=t(r.timeZone),s=e(r.calendar);return{...r,...ds(a,s,r,n?Hs(o):o,i)}}function cs(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const{calendar:i}=n;return ca(gs(e(i),n,t?Hs(r):r,o),i)}function hs(e,t,n,r,o){const{calendar:i}=n;return ha(ms(e(i),n,t?Hs(r):r,o),i)}function ls(e,t,n,r,o){const i=n.calendar,a=e(i);let s=mi(ys(a,n));t&&(r=Ms(r)),r.sign<0&&(s=a.P(s,{...ul,months:1}),s=ps(s,-1));const u=a.P(s,r,o);return la(ys(a,u),i)}function fs(e,t,n){return da(vs(t,e?Hs(n):n)[0])}function ds(e,t,n,r,o){const i=Os(r,5);let a=n.epochNanoseconds;if(Ls(r)){const s=pf(n,e);a=ii(is(e,{...ms(t,s,{...r,...cl},o),...Eo(ll,s)}),i)}else a=ii(a,i),Vi(o);return{epochNanoseconds:vi(a)}}function gs(e,t,n,r){const[o,i]=vs(t,n);return yi({...ms(e,t,{...n,...cl,days:n.days+i},r),...o})}function ms(e,t,n,r){if(n.years||n.months||n.weeks)return e.P(t,n,r);Vi(r);const o=n.days+Os(n,5)[0];return o?mi(ps(t,o)):t}function ys(e,t){return ps(t,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)-e.day(t))}function vs(e,t){const[n,r]=Os(t,5),[o,i]=wi(pi(e)+r);return[o,n+i]}function ps(e,t){return t?{...e,...Ni(Ai(e)+t*Sh)}:e}function ws(e,t,n){const r=e(n.calendar);return Ts(n)?[n,r,t(n.timeZone)]:[{...n,...vl},r]}function Ss(e){return e?ya:bi}function As(e){return e?Co(ds,e):gs}function bs(e){return e?Co(pu,e):wu}function Ts(e){return e&&e.epochNanoseconds}function Is(e,t){return e<=6-(Ts(t)?1:0)}function Es(e,t,n,r,o,i,a){const s=e(ta(a).relativeTo),u=Math.max(Rs(o),Rs(i));if(Is(u,s))return ga(Cs(((e,t,n,r)=>{const o=ii(Os(e),Os(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(oh);return{...ul,..._s(o,n)}})(o,i,u,r)));if(!s)throw new RangeError(sh);r&&(i=Hs(i));const[c,h,l]=ws(t,n,s),f=As(l),d=bs(l),g=f(h,c,o);return ga(d(h,c,f(h,g,i),u))}function Ms(e){return ga(Hs(e))}function Hs(e){const t={};for(const n of nl)t[n]=-1*e[n]||0;return t}function Ns(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nl,n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(ah);n=t}}return n}function Cs(e){for(const t of al)go(t,e[t],-4294967295,wf,1);return Ds(fi(Os(e),Ih)),e}function Ds(e){if(!Number.isSafeInteger(e))throw new RangeError(ih)}function Os(e){return xo(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,nl)}function _s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const[n,r]=e,o=Zo(r,t,nl);if(o[nl[t]]+=n*(Hh/Nh[t]),!Number.isFinite(o[nl[t]]))throw new RangeError(oh);return o}function ks(e){return Zo(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,nl)}function Ls(e){return Boolean(Ns(e,il))}function Rs(e){let t=9;for(;t>0&&!e[nl[t]];t--);return t}function Ys(e,t){return[e,t]}function Ps(e){const t=Math.floor(e/gf)*gf;return[t,t+gf]}function Bs(e){const t=Gs(e);if(void 0===t)throw new RangeError(lh(e));return t}function js(e,t,n){let r=Fs(Qh(e));if(!r||r.j)throw new RangeError(lh(e));return t?r.calendar===Kh&&(r=-271821===r.isoYear&&4===r.isoMonth?{...r,isoDay:20,...vl}:{...r,isoDay:1,...vl}):n&&r.calendar===Kh&&(r={...r,isoYear:Nl}),ha(r.C?Zs(r):$s(r))}function Us(e){if(e.calendar!==Kh)throw new RangeError(fh(e.calendar))}function xs(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=nu(e.timeZone),i=Sf(o);let a;return ji(e),a=e.C?os(i,e,t,n,r,!i.$,e.j):as(i,e),ua(a,o,ec(e.calendar))}function Zs(e){return Vs(yi(ji(e)))}function $s(e){return Vs(mi(Ui(e)))}function Vs(e){return{...e,calendar:ec(e.calendar)}}function Fs(e){const t=kf.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:Js(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...Ws(e.slice(5)),...qs(e[16]),C:Boolean(e[6]),j:n,offset:n?void 0:t}})(t):void 0}function zs(e){const t=Of.exec(e);return t?(e=>({isoYear:Js(e),isoMonth:parseInt(e[4]),isoDay:1,...qs(e[5])}))(t):void 0}function Ks(e){const t=_f.exec(e);return t?(e=>({isoYear:Nl,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...qs(e[3])}))(t):void 0}function Gs(e,t){const n=Rf.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(fh(n));return(e=>{if(Math.abs(e)>=Hh)throw new RangeError(eh);return e})((tu(e[2])*Mh+tu(e[3])*Eh+tu(e[4])*Ih+Xs(e[5]||""))*eu(e[1]))})(n,t):void 0}function Js(e){const t=eu(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(fh(-0));return t*n}function Ws(e){const t=tu(e[3]);return{...wi(Xs(e[4]||""))[0],isoHour:tu(e[1]),isoMinute:tu(e[2]),isoSecond:60===t?59:t}}function qs(e){let t,n;const r=[];if(e.replace(Yf,((e,o,i)=>{const a=Boolean(o),[s,u]=i.split("=").reverse();if(u){if("u-ca"===u)r.push(s),t||(t=a);else if(a||/[A-Z]/.test(u))throw new RangeError(fh(e))}else{if(n)throw new RangeError(fh(e));n=s}return""})),r.length>1&&t)throw new RangeError(fh(e));return{timeZone:n,calendar:r[0]||Kh}}function Xs(e){return parseInt(e.padEnd(9,"0"))}function Qs(e){return new RegExp(`^${e}$`,"i")}function eu(e){return e&&"+"!==e?-1:1}function tu(e){return void 0===e?0:parseInt(e)}function nu(e){const t=ou(e);return"number"==typeof t?qa(t):t?(e=>{if(Uf.test(e))throw new RangeError(qc(e));if(jf.test(e))throw new RangeError(Qc);return e.toLowerCase().split("/").map(((e,t)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,((e,n)=>e.length<=2&&!t||"in"===e||"chat"===e?e.toUpperCase():e.length>2||!n?Do(e).replace(/island|noronha|murdo|rivadavia|urville/,Do):e)))).join("/")})(e):df}function ru(e){const t=ou(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:df}function ou(e){const t=Gs(e=e.toUpperCase(),1);return void 0!==t?t:e!==df?Bf(e):void 0}function iu(e,t){return ui(e.epochNanoseconds,t.epochNanoseconds)}function au(e,t){return ui(e.epochNanoseconds,t.epochNanoseconds)}function su(e,t){return uu(e,t)||cu(e,t)}function uu(e,t){return ko(Ai(e),Ai(t))}function cu(e,t){return ko(pi(e),pi(t))}function hu(e,t){if(e===t)return 1;try{return ru(e)===ru(t)}catch(e){}}function lu(e,t,n,r){const o=zi(e,r,3,5),i=bu(t.epochNanoseconds,n.epochNanoseconds,...o);return ga(e?Hs(i):i)}function fu(e,t,n,r,o,i){const a=Hu(r.calendar,o.calendar),[s,u,c,h]=zi(n,i,5),l=r.epochNanoseconds,f=o.epochNanoseconds,d=ui(f,l);let g;if(d)if(s<6)g=bu(l,f,s,u,c,h);else{const n=t(((e,t)=>{if(!hu(e,t))throw new RangeError(Xc);return e})(r.timeZone,o.timeZone)),l=e(a);g=Su(l,n,r,o,d,s,i),g=Na(g,f,s,u,c,h,l,r,ya,Co(ds,n))}else g=ul;return ga(n?Hs(g):g)}function du(e,t,n,r,o){const i=Hu(n.calendar,r.calendar),[a,s,u,c]=zi(t,o,6),h=bi(n),l=bi(r),f=ui(l,h);let d;if(f)if(a<=6)d=bu(h,l,a,s,u,c);else{const t=e(i);d=Au(t,n,r,f,a,o),d=Na(d,l,a,s,u,c,t,n,bi,gs)}else d=ul;return ga(t?Hs(d):d)}function gu(e,t,n,r,o){const i=Hu(n.calendar,r.calendar);return yu(t,(()=>e(i)),n,r,...zi(t,o,6,9,6))}function mu(e,t,n,r,o){const i=Hu(n.calendar,r.calendar),a=zi(t,o,9,9,8),s=e(i),u=ys(s,n),c=ys(s,r);return u.isoYear===c.isoYear&&u.isoMonth===c.isoMonth&&u.isoDay===c.isoDay?ga(ul):yu(t,(()=>s),mi(u),mi(c),...a,8)}function yu(e,t,n,r,o,i,a,s){let u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:6;const c=bi(n),h=bi(r);if(void 0===c||void 0===h)throw new RangeError(oh);let l;if(ui(h,c))if(6===o)l=bu(c,h,o,i,a,s);else{const e=t();l=e.N(n,r,o),i===u&&1===a||(l=Na(l,h,o,i,a,s,e,n,bi,ms))}else l=ul;return ga(e?Hs(l):l)}function vu(e,t,n,r){const[o,i,a,s]=zi(e,r,5,5),u=Oa(Mu(t,n),Ia(i,a),s),c={...ul,...ks(u,o)};return ga(e?Hs(c):c)}function pu(e,t,n,r,o,i){const a=ui(r.epochNanoseconds,n.epochNanoseconds);return a?o<6?Tu(n.epochNanoseconds,r.epochNanoseconds,o):Su(t,e,n,r,a,o,i):ul}function wu(e,t,n,r,o){const i=bi(t),a=bi(n),s=ui(a,i);return s?r<=6?Tu(i,a,r):Au(e,t,n,s,r,o):ul}function Su(e,t,n,r,o,i,a){const[s,u,c]=((e,t,n,r)=>{function o(){return l={...ps(s,c++*-r),...a},f=is(e,l),ui(u,f)===-r}const i=pf(t,e),a=Eo(ll,i),s=pf(n,e),u=n.epochNanoseconds;let c=0;const h=Mu(i,s);let l,f;if(Math.sign(h)===-r&&c++,o()&&(-1===r||o()))throw new RangeError(Gc);const d=fi(si(f,u));return[i,l,d]})(t,n,r,o);var h,l;return{...6===i?(h=s,l=u,{...ul,days:Iu(h,l)}):e.N(s,u,i,a),...ks(c)}}function Au(e,t,n,r,o,i){const[a,s,u]=((e,t,n)=>{let r=t,o=Mu(e,t);return Math.sign(o)===-n&&(r=ps(t,-n),o+=Hh*n),[e,r,o]})(t,n,r);return{...e.N(a,s,o,i),...ks(u)}}function bu(e,t,n,r,o,i){return{...ul,..._s(Ca(si(e,t),r,o,i),n)}}function Tu(e,t,n){return{...ul,..._s(si(e,t),n)}}function Iu(e,t){return Eu(Ai(e),Ai(t))}function Eu(e,t){return Math.trunc((t-e)/Sh)}function Mu(e,t){return pi(t)-pi(e)}function Hu(e,t){if(e!==t)throw new RangeError(Wc);return e}function Nu(e){return this.m(e)[0]}function Cu(e){return this.m(e)[1]}function Du(e){const[t]=this.v(e);return Eu(this.p(t),Ai(e))+1}function Ou(e){const t=xf.exec(e);if(!t)throw new RangeError(Vc(e));return[parseInt(t[1]),Boolean(t[2])]}function _u(e,t){return"M"+vh(e)+(t?"L":"")}function ku(e,t,n){return e+(t||n&&e>=n?1:0)}function Lu(e,t){return e-(t&&e>=t?1:0)}function Ru(e,t){return(t+e)*(Math.sign(t)||1)||0}function Yu(e){return Wh[Bu(e)]}function Pu(e){return Xh[Bu(e)]}function Bu(e){return tc(e.id||Kh)}function ju(e){function t(e){return((e,t)=>({...Zu(e,t),o:e.month,day:parseInt(e.day)}))(Ci(n,e),r)}const n=$f(e),r=tc(e);return{id:e,h:Uu(t),l:xu(t)}}function Uu(e){return yo((t=>{const n=Ai(t);return e(n)}),WeakMap)}function xu(e){const t=e(0).year-Hl;return yo((n=>{let r,o=Ei(n-t),i=0;const a=[],s=[];do{o+=400*Sh}while((r=e(o)).year<=n);do{if(o+=(1-r.day)*Sh,r.year===n&&(a.push(o),s.push(r.o)),o-=Sh,++i>100||o<-864e13)throw new RangeError(Gc)}while((r=e(o)).year>=n);return{i:a.reverse(),u:mh(s.reverse())}}))}function Zu(e,t){let n,r,o=$u(e);if(e.era){const i=Wh[t],a=qh[t]||{};void 0!==i&&(n="islamic"===t?"ah":e.era.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),"bc"===n||"b"===n?n="bce":"ad"===n||"a"===n?n="ce":"beforeroc"===n&&(n="broc"),n=a[n]||n,r=o,o=Ru(r,i[n]||0))}return{era:n,eraYear:r,year:o}}function $u(e){return parseInt(e.relatedYear||e.year)}function Vu(e){const{year:t,o:n,day:r}=this.h(e),{u:o}=this.l(t);return[t,o[n]+1,r]}function Fu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return this.l(e).i[t-1]+(n-1)*Sh}function zu(e,t){const n=Ku.call(this,e);return[Lu(t,n),n===t]}function Ku(e){const t=Xu(this,e),n=Xu(this,e-1),r=t.length;if(r>n.length){const e=Pu(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function Gu(e){return Eu(Fu.call(this,e),Fu.call(this,e+1))}function Ju(e,t){const{i:n}=this.l(e);let r=t+1,o=n;return r>n.length&&(r=1,o=this.l(e+1).i),Eu(n[t-1],o[r-1])}function Wu(e){return this.l(e).i.length}function qu(e){const t=this.h(e);return[t.era,t.eraYear]}function Xu(e,t){return Object.keys(e.l(t).u)}function Qu(e){return ec(Qh(e))}function ec(e){if((e=e.toLowerCase())!==Kh&&e!==Gh){const t=$f(e).resolvedOptions().calendar;if(tc(e)!==tc(t))throw new RangeError(Jc(e));return t}return e}function tc(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function nc(e,t){return n=>n===Kh?e:n===Gh||n===Jh?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),Zf(n))}function rc(e,t,n,r){const o=oc(n,r,$h,[],Lh);if(void 0!==o.timeZone){const r=n.F(o),i=ac(o),a=e(o.timeZone);return{epochNanoseconds:os(t(a),{...r,...i},void 0!==o.offset?Bs(o.offset):void 0),timeZone:a}}return{...n.F(o),...vl}}function oc(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return ic(t,[...e.fields(n),...o].sort(),r)}function ic(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:!n;const o={};let i,a=0;for(const r of t){if(r===i)throw new RangeError(Rc(r));if("constructor"===r||"__proto__"===r)throw new RangeError(Lc(r));let t=e[r];if(void 0!==t)a=1,ed[r]&&(t=ed[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(kc(r));o[r]=zh[r]}i=r}if(r&&!a)throw new TypeError(Yc(t));return o}function ac(e,t){return $i(td({...zh,...e}),t)}function sc(e,t,n,r,o){t=Eo(n=e.fields(n),t),r=ic(r,o=e.fields(o),[]);let i=e.k(t,r);return i=ic(i,[...n,...o].sort(),[]),e.F(i)}function uc(e,t){const n=Yu(e),r=qh[e.id||""]||{};let{era:o,eraYear:i,year:a}=t;if(void 0!==o||void 0!==i){if(void 0===o||void 0===i)throw new TypeError(Uc);if(!n)throw new RangeError(jc);const e=n[r[o]||o];if(void 0===e)throw new RangeError(Zc(o));const t=Ru(i,e);if(void 0!==a&&a!==t)throw new RangeError(xc);a=t}else if(void 0===a)throw new TypeError($c(n));return a}function cc(e,t,n,r){let{month:o,monthCode:i}=t;if(void 0!==i){const t=((e,t,n,r)=>{const o=e.L(n),[i,a]=Ou(t);let s=ku(i,a,o);if(a){const t=Pu(e);if(void 0===t)throw new RangeError(Kc);if(t>0){if(s>t)throw new RangeError(Kc);if(void 0===o){if(1===r)throw new RangeError(Kc);s--}}else{if(s!==-t)throw new RangeError(Kc);if(void 0===o&&1===r)throw new RangeError(Kc)}}return s})(e,i,n,r);if(void 0!==o&&o!==t)throw new RangeError(Fc);o=t,r=1}else if(void 0===o)throw new TypeError(zc);return go("month",o,1,e.B(n),r)}function hc(e,t,n,r,o){return fo(t,"day",1,e.U(r,n),o)}function lc(e,t,n,r){let o=0;const i=[];for(const e of n)void 0!==t[e]?o=1:i.push(e);if(Object.assign(e,t),o)for(const t of r||i)delete e[t]}function fc(e){const t=Xf(e.calendar),[n,r,o]=t.v(e),[i,a]=t.q(n,r);return{year:n,monthCode:_u(i,a),day:o}}function dc(e,t){return ca(pf(t,e))}function gc(e,t){return ha(pf(t,e))}function mc(e,t){return da(pf(t,e))}function yc(e,t,n){const r=new Set(n);return(o,i)=>{const a=n&&Mo(o,n);if(!Mo(o=((e,t)=>{const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n})(r,o),e)){if(i&&a)throw new TypeError("Invalid formatting options");o={...t,...o}}return n&&(o.timeZone=df,["full","long"].includes(o.J)&&(o.J="medium")),o}}function vc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pc,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const[r,,,o]=e;return function(i){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_d;for(var s=arguments.length,u=new Array(s>2?s-2:0),c=2;c<s;c++)u[c-2]=arguments[c];const h=t(o&&o(...u),i,a,r,n),l=h.resolvedOptions();return[h,...wc(e,l,u)]}}function pc(e,t,n,r,o){if(n=r(n,o),e){if(void 0!==n.timeZone)throw new TypeError(gh);n.timeZone=e}return new El(t,n)}function wc(e,t,n){const[,r,o]=e;return n.map((e=>(e.calendar&&((e,t,n)=>{if((n||e!==Kh)&&e!==t)throw new RangeError(Wc)})(e.calendar,t.calendar,o),r(e,t))))}function Sc(e,t){return{...e,calendar:t}}function Ac(e){const t=bc();return Hi(t,e.R(t))}function bc(){return li(Date.now(),Th)}function Tc(){return xd||(xd=(new El).resolvedOptions().timeZone)}!function(){if(ao)return Ce;ao=1;var e=Wr(),t=Rr().includes,n=Ue(),r=lo();e({target:"Array",proto:!0,forced:n((function(){return!Array(1).includes()}))},{includes:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")}();const Ic=(e,t)=>`Non-integer ${e}: ${t}`,Ec=(e,t)=>`Non-positive ${e}: ${t}`,Mc=(e,t)=>`Non-finite ${e}: ${t}`,Hc=e=>`Cannot convert bigint to ${e}`,Nc=e=>`Invalid bigint: ${e}`,Cc="Cannot convert Symbol to string",Dc="Invalid object",Oc=(e,t,n,r,o)=>o?Oc(e,o[t],o[n],o[r]):_c(e,t)+`; must be between ${n}-${r}`,_c=(e,t)=>`Invalid ${e}: ${t}`,kc=e=>`Missing ${e}`,Lc=e=>`Invalid field ${e}`,Rc=e=>`Duplicate field ${e}`,Yc=e=>"No valid fields: "+e.join(),Pc=(e,t,n)=>_c(e,t)+"; must be "+Object.keys(n).join(),Bc="Invalid calling context",jc="Forbidden era/eraYear",Uc="Mismatching era/eraYear",xc="Mismatching year/eraYear",Zc=e=>`Invalid era: ${e}`,$c=e=>"Missing year"+(e?"/era/eraYear":""),Vc=e=>`Invalid monthCode: ${e}`,Fc="Mismatching month/monthCode",zc="Missing month/monthCode",Kc="Invalid leap month",Gc="Invalid protocol results",Jc=e=>_c("Calendar",e),Wc="Mismatching Calendars",qc=e=>_c("TimeZone",e),Xc="Mismatching TimeZones",Qc="Forbidden ICU TimeZone",eh="Out-of-bounds offset",th="Out-of-bounds TimeZone gap",nh="Invalid TimeZone offset",rh="Ambiguous offset",oh="Out-of-bounds date",ih="Out-of-bounds duration",ah="Cannot mix duration signs",sh="Missing relativeTo",uh="Cannot use large units",ch="Required smallestUnit or largestUnit",hh="smallestUnit > largestUnit",lh=e=>`Cannot parse: ${e}`,fh=e=>`Invalid substring: ${e}`,dh="Mismatching types for formatting",gh="Cannot specify TimeZone",mh=Co(To,((e,t)=>t)),yh=Co(To,((e,t,n)=>n)),vh=Co(_o,2),ph={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},wh=Object.keys(ph),Sh=864e5,Ah=1e3,bh=1e3,Th=1e6,Ih=1e9,Eh=6e10,Mh=36e11,Hh=864e11,Nh=[1,bh,Th,Ih,Eh,Mh,Hh],Ch=wh.slice(0,6),Dh=Oo(Ch),Oh=["offset"],_h=["timeZone"],kh=Ch.concat(Oh),Lh=kh.concat(_h),Rh=["era","eraYear"],Yh=Rh.concat(["year"]),Ph=["year"],Bh=["monthCode"],jh=["month"].concat(Bh),Uh=["day"],xh=jh.concat(Ph),Zh=Bh.concat(Ph),$h=Uh.concat(xh),Vh=Uh.concat(jh),Fh=Uh.concat(Bh),zh=yh(Ch,0),Kh="iso8601",Gh="gregory",Jh="japanese",Wh={[Gh]:{"gregory-inverse":-1,gregory:0},[Jh]:{"japanese-inverse":-1,japanese:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018},ethiopic:{ethioaa:0,ethiopic:5500},coptic:{"coptic-inverse":-1,coptic:0},roc:{"roc-inverse":-1,roc:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0}},qh={[Gh]:{bce:"gregory-inverse",ce:"gregory"},[Jh]:{bce:"japanese-inverse",ce:"japanese"},ethiopic:{era0:"ethioaa",era1:"ethiopic"},coptic:{era0:"coptic-inverse",era1:"coptic"},roc:{broc:"roc-inverse",minguo:"roc"}},Xh={chinese:13,dangi:13,hebrew:-6},Qh=Co(Go,"string"),el=Co(Go,"boolean"),tl=Co(Go,"number"),nl=wh.map((e=>e+"s")),rl=Oo(nl),ol=nl.slice(0,6),il=nl.slice(6),al=il.slice(1),sl=mh(nl),ul=yh(nl,0),cl=yh(ol,0),hl=Co(No,nl),ll=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],fl=["isoDay","isoMonth","isoYear"],dl=ll.concat(fl),gl=Oo(fl),ml=Oo(ll),yl=Oo(dl),vl=yh(ml,0),pl=Co(No,dl),wl=1e8,Sl=wl*Sh,Al=[wl,0],bl=[-1e8,0],Tl=275760,Il=-271821,El=Intl.DateTimeFormat,Ml="en-GB",Hl=1970,Nl=1972,Cl=12,Dl=Ei(1868,9,8),Ol=yo(Bi,WeakMap),_l="smallestUnit",kl="unit",Ll="roundingIncrement",Rl="fractionalSecondDigits",Yl="relativeTo",Pl="direction",Bl={constrain:0,reject:1},jl=Object.keys(Bl),Ul={compatible:0,reject:1,earlier:2,later:3},xl={reject:0,use:1,prefer:2,ignore:3},Zl={auto:0,never:1,critical:2,always:3},$l={auto:0,never:1,critical:2},Vl={auto:0,never:1},Fl={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},zl={previous:-1,next:1},Kl=Co(oa,_l),Gl=Co(oa,"largestUnit"),Jl=Co(oa,kl),Wl=Co(ia,"overflow",Bl),ql=Co(ia,"disambiguation",Ul),Xl=Co(ia,"offset",xl),Ql=Co(ia,"calendarName",Zl),ef=Co(ia,"timeZoneName",$l),tf=Co(ia,"offset",Vl),nf=Co(ia,"roundingMode",Fl),rf="PlainYearMonth",of="PlainMonthDay",af="PlainDate",sf="PlainDateTime",uf="PlainTime",cf="ZonedDateTime",hf="Instant",lf="Duration",ff=[Math.floor,e=>Uo(e)?Math.floor(e):Math.round(e),Math.ceil,e=>Uo(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>Uo(e)?Math.trunc(e)||0:Math.round(e),e=>e<0?Math.floor(e):Math.ceil(e),e=>Math.sign(e)*Math.round(Math.abs(e))||0,e=>Uo(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],df="UTC",gf=5184e3,mf=Ii(1847),yf=Ii((new Date).getUTCFullYear()+10),vf=/0+$/,pf=yo(rs,WeakMap),wf=2**32-1,Sf=yo((e=>{const t=ou(e);return"object"==typeof t?new bf(t):new Af(t||0)}));class Af{constructor(e){this.$=e}R(){return this.$}I(e){return(e=>{const t=bi({...e,...vl});if(!t||Math.abs(t[0])>1e8)throw new RangeError(oh)})(e),[Ti(e,this.$)]}O(){}}class bf{constructor(e){this.nn=(e=>{function t(e){const t=Lo(e,i,a),[s,u]=Ps(t),c=r(s),h=r(u);return c===h?c:n(o(s,u),c,h,e)}function n(t,n,r,o){let i,a;for(;(void 0===o||void 0===(i=o<t[0]?n:o>=t[1]?r:void 0))&&(a=t[1]-t[0]);){const n=t[0]+Math.floor(a/2);e(n)===r?t[1]=n:t[0]=n+1}return i}const r=yo(e),o=yo(Ys);let i=mf,a=yf;return{tn(e){const n=t(e-86400),r=t(e+86400),o=e-n,i=e-r;if(n===r)return[o];const a=t(o);return a===t(i)?[e-a]:n>r?[o,i]:[]},rn:t,O(e,t){const s=Lo(e,i,a);let[u,c]=Ps(s);const h=gf*t,l=t<0?()=>c>i||(i=s,0):()=>u<a||(a=s,0);for(;l();){const i=r(u),a=r(c);if(i!==a){const r=o(u,c);n(r,i,a);const s=r[0];if((ko(s,e)||1)===t)return s}u+=h,c+=h}}}})((e=>t=>{const n=Ci(e,t*Ah);return Ii($u(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}R(e){return this.nn.rn((e=>Si(e)[0])(e))*Ih}I(e){const[t,n]=[Ii((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*Th+r.isoMicrosecond*bh+r.isoNanosecond];var r;return this.nn.tn(t).map((e=>vi(ai(li(e,Ih),n))))}O(e,t){const[n,r]=Si(e),o=this.nn.O(n+(t>0||r?1:0),t);if(void 0!==o)return li(o,Ih)}}const Tf="([+-])",If="(?:[.,](\\d{1,9}))?",Ef=`(?:(?:${Tf}(\\d{6}))|(\\d{4}))-?(\\d{2})`,Mf="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+If+")?)?",Hf=Tf+Mf,Nf=Ef+"-?(\\d{2})(?:[T ]"+Mf+"(Z|"+Hf+")?)?",Cf="\\[(!?)([^\\]]*)\\]",Df=`((?:${Cf}){0,9})`,Of=Qs(Ef+Df),_f=Qs("(?:--)?(\\d{2})-?(\\d{2})"+Df),kf=Qs(Nf+Df),Lf=Qs("T?"+Mf+"(?:"+Hf+")?"+Df),Rf=Qs(Hf),Yf=new RegExp(Cf,"g"),Pf=Qs(`${Tf}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${If}H)?(?:(\\d+)${If}M)?(?:(\\d+)${If}S)?)?`),Bf=yo((e=>new El(Ml,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),jf=/^(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$/,Uf=/[^\w\/:+-]+/,xf=/^M(\d{2})(L?)$/,Zf=yo(ju),$f=yo((e=>new El(Ml,{calendar:e,timeZone:df,era:"short",year:"numeric",month:"short",day:"numeric"}))),Vf={P(e,t,n){const r=Vi(n);let o,{years:i,months:a,weeks:s,days:u}=t;if(u+=Os(t,5)[0],i||a)o=((e,t,n,r,o)=>{let[i,a,s]=e.v(t);if(n){const[t,r]=e.q(i,a);i+=n,a=ku(t,r,e.L(i)),a=go("month",a,1,e.B(i),o)}return r&&([i,a]=e.un(i,a,r)),s=go("day",s,1,e.U(i,a),o),e.p(i,a,s)})(this,e,i,a,r);else{if(!s&&!u)return e;o=Ai(e)}if(void 0===o)throw new RangeError(oh);return o+=(7*s+u)*Sh,mi(Ni(o))},N(e,t,n){if(n<=7){let r=0,o=Iu({...e,...vl},{...t,...vl});return 7===n&&([r,o]=Po(o,7)),{...ul,weeks:r,days:o}}const r=this.v(e),o=this.v(t);let[i,a,s]=((e,t,n,r,o,i,a)=>{let s=o-t,u=i-n,c=a-r;if(s||u){const h=Math.sign(s||u);let l=e.U(o,i),f=0;if(Math.sign(c)===-h){const r=l;[o,i]=e.un(o,i,-h),s=o-t,u=i-n,l=e.U(o,i),f=h<0?-r:l}if(c=a-Math.min(r,l)+f,s){const[r,a]=e.q(t,n),[c,l]=e.q(o,i);if(u=c-r||Number(l)-Number(a),Math.sign(u)===-h){const n=h<0&&-e.B(o);s=(o-=h)-t,u=i-ku(r,a,e.L(o))+(n||e.B(o))}}}return[s,u,c]})(this,...r,...o);return 8===n&&(a+=this.cn(i,r[0]),i=0),{...ul,years:i,months:a,days:s}},F(e,t){const n=Vi(t),r=uc(this,e),o=cc(this,e,r,n),i=hc(this,e,o,r,n);return ha(mi(this.V(r,o,i)),this.id||Kh)},K(e,t){const n=Vi(t),r=uc(this,e),o=cc(this,e,r,n);return la(gi(this.V(r,o,1)),this.id||Kh)},_(e,t){const n=Vi(t);let r,o,i,a=void 0!==e.eraYear||void 0!==e.year?uc(this,e):void 0;const s=!this.id;if(void 0===a&&s&&(a=Nl),void 0!==a){const t=cc(this,e,a,n);r=hc(this,e,t,a,n);const s=this.L(a);o=Lu(t,s),i=t===s}else{if(void 0===e.monthCode)throw new TypeError(zc);if([o,i]=Ou(e.monthCode),this.id&&this.id!==Gh&&this.id!==Jh)if(this.id&&"coptic"===tc(this.id)&&0===n){const t=i||13!==o?30:6;r=e.day,r=Lo(r,1,t)}else if(this.id&&"chinese"===tc(this.id)&&0===n){const t=!i||1!==o&&9!==o&&10!==o&&11!==o&&12!==o?30:29;r=e.day,r=Lo(r,1,t)}else r=e.day;else r=hc(this,e,cc(this,e,Nl,n),Nl,n)}const u=this.G(o,i,r);if(!u)throw new RangeError("Cannot guess year");const[c,h]=u;return fa(mi(this.V(c,h,r)),this.id||Kh)},fields(e){return Yu(this)&&e.includes("year")?[...e,...Rh]:e},k(e,t){const n=Object.assign(Object.create(null),e);return lc(n,t,jh),Yu(this)&&(lc(n,t,Yh),this.id===Jh&&lc(n,t,Vh,Rh)),n},inLeapYear(e){const[t]=this.v(e);return this.sn(t)},monthsInYear(e){const[t]=this.v(e);return this.B(t)},daysInMonth(e){const[t,n]=this.v(e);return this.U(t,n)},daysInYear(e){const[t]=this.v(e);return this.fn(t)},dayOfYear:Du,era(e){return this.hn(e)[0]},eraYear(e){return this.hn(e)[1]},monthCode(e){const[t,n]=this.v(e),[r,o]=this.q(t,n);return _u(r,o)},dayOfWeek:Yi,daysInWeek:()=>7},Ff={v:Di,hn:Pi,q:Oi},zf={dayOfYear:Du,v:Di,p:Ei},Kf=Object.assign({},zf,{weekOfYear:Nu,yearOfWeek:Cu,m(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=Li(f+e),r=e||1,o=t(Yo(u+n*r,7));return h=(n+(o-c)*r)/7}const r=this.id?1:4,o=Yi(e),i=this.dayOfYear(e),a=Yo(o-1,7),s=i-1,u=Yo(a-s,7),c=t(u);let h,l=Math.floor((s-c)/7)+1,f=e.isoYear;return l?l>n(0)&&(l=1,f++):(l=n(-1),f--),[l,f,h]}}),Gf=Object.assign({},Vf,Kf,{v:Di,hn:Pi,q:Oi,G(e,t){if(!t)return[Nl,e]},sn:Ri,L(){},B:_i,cn:e=>e*Cl,U:ki,fn:Li,V:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),p:Ei,un:(e,t,n)=>(e+=Bo(n,Cl),(t+=jo(n,Cl))<1?(e--,t+=Cl):t>Cl&&(e++,t-=Cl),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Jf={v:Vu,hn:qu,q:zu},Wf={dayOfYear:Du,v:Vu,p:Fu,weekOfYear:Nu,yearOfWeek:Cu,m:()=>[]},qf=Object.assign({},Vf,Wf,{v:Vu,hn:qu,q:zu,G(e,t,n){const r=this.id&&"chinese"===tc(this.id)?((e,t,n)=>{if(t)switch(e){case 1:return 1651;case 2:return n<30?1947:1765;case 3:return n<30?1966:1955;case 4:return n<30?1963:1944;case 5:return n<30?1971:1952;case 6:return n<30?1960:1941;case 7:return n<30?1968:1938;case 8:return n<30?1957:1718;case 9:return 1832;case 10:return 1870;case 11:return 1814;case 12:return 1890}return 1972})(e,t,n):Nl;let[o,i,a]=Vu.call(this,{isoYear:r,isoMonth:Cl,isoDay:31});const s=Ku.call(this,o),u=i===s;1===(ko(e,Lu(i,s))||ko(Number(t),Number(u))||ko(n,a))&&o--;for(let r=0;r<100;r++){const i=o-r,a=Ku.call(this,i),s=ku(e,t,a);if(t===(s===a)&&n<=Ju.call(this,i,s))return[i,s]}},sn(e){const t=Gu.call(this,e);return t>Gu.call(this,e-1)&&t>Gu.call(this,e+1)},L:Ku,B:Wu,cn(e,t){const n=t+e,r=Math.sign(e),o=r<0?-1:0;let i=0;for(let e=t;e!==n;e+=r)i+=Wu.call(this,e+o);return i},U:Ju,fn:Gu,V(e,t,n){return Ni(Fu.call(this,e,t,n))},p:Fu,un(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError(oh);if(n<0)for(;t<1;)t+=Wu.call(this,--e);else{let n;for(;t>(n=Wu.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.h(e).year},month(e){const{year:t,o:n}=this.h(e),{u:r}=this.l(t);return r[n]+1},day(e){return this.h(e).day}}),Xf=nc(Ff,Jf),Qf=nc(Gf,qf),ed={...{era:Xo,eraYear:ti,year:ti,month:ri,monthCode(e){const t=Xo(e);return Ou(t),t},day:ri},...yh(Ch,ti),...yh(nl,ni),offset(e){const t=Xo(e);return Bs(t),t}},td=Co(Io,Ch,ll),nd=Co(Io,ll,Ch),rd="numeric",od=["timeZoneName"],id={month:rd,day:rd},ad={year:rd,month:rd},sd=Object.assign({},ad,{day:rd}),ud={hour:rd,minute:rd,second:rd},cd=Object.assign({},sd,ud),hd=Object.assign({},cd,{timeZoneName:"short"}),ld=Object.keys(ad),fd=Object.keys(id),dd=Object.keys(sd),gd=Object.keys(ud),md=["dateStyle"],yd=ld.concat(md),vd=fd.concat(md),pd=dd.concat(md,["weekday"]),wd=gd.concat(["dayPeriod","timeStyle","fractionalSecondDigits"]),Sd=pd.concat(wd),Ad=od.concat(wd),bd=od.concat(pd),Td=od.concat(["day","weekday"],wd),Id=od.concat(["year","weekday"],wd),Ed=yc(Sd,cd),Md=yc(Sd,hd),Hd=yc(Sd,cd,od),Nd=yc(pd,sd,Ad),Cd=yc(wd,ud,bd),Dd=yc(yd,ad,Td),Od=yc(vd,id,Id),_d={},kd=new El(void 0,{calendar:Kh}).resolvedOptions().calendar===Kh,Ld=[Ed,ma],Rd=[Md,ma,0,(e,t)=>{const n=e.timeZone;if(t&&t.timeZone!==n)throw new RangeError(Xc);return n}],Yd=[Hd,Ai],Pd=[Nd,Ai],Bd=[Cd,e=>pi(e)/Th],jd=[Dd,Ai,kd],Ud=[Od,Ai,kd];let xd;function Zd(e,t,n,r,o){function i(){if(!(this instanceof i))throw new TypeError(Bc);gg(this,t(...arguments))}function a(e,t){return Object.defineProperties((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.call(this,s(this),...n)}),vo(t))}function s(t){const n=dg(t);if(!n||n.branding!==e)throw new TypeError(Bc);return n}return Object.defineProperties(i.prototype,{...wo(bo(a,n)),...po(bo(a,r)),...So("Temporal."+e)}),Object.defineProperties(i,{...po(o),...vo(e)}),[i,e=>{const t=Object.create(i.prototype);return gg(t,e),t},s]}function $d(e){if(dg(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function Vd(e){return Fd(e)||Kh}function Fd(e){const{calendar:t}=e;if(void 0!==t)return zd(t)}function zd(e){if(mo(e)){const{calendar:t}=dg(e)||{};if(!t)throw new TypeError(Jc(e));return t}return(e=>ec(function(e){const t=Fs(e)||zs(e)||Ks(e);return t?t.calendar:e}(Qh(e))))(e)}function Kd(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return Qf(t)[n](e)};return t}function Gd(){throw new TypeError("Cannot use valueOf")}function Jd(e){if(mo(e)){const{timeZone:t}=dg(e)||{};if(!t)throw new TypeError(qc(e));return t}return(e=>nu(function(e){const t=Fs(e);return t&&(t.timeZone||t.j&&df||t.offset)||e}(Qh(e))))(e)}function Wd(e){if(mo(e)){const t=dg(e);return t&&t.branding===lf?t:function(e){const t=ic(e,rl);return ga(Cs({...ul,...t}))}(e)}return function(e){const t=(e=>{const t=Pf.exec(e);return t?(e=>{function t(e,t,i){let a=0,s=0;if(i&&([a,o]=Ro(o,Nh[i])),void 0!==e){if(r)throw new RangeError(fh(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(fh(e));return t})(e),n=1,t&&(o=Xs(t)*(Nh[i]/Ih),r=1)}return a+s}let n=0,r=0,o=0,i={...Ao(nl,[t(e[2]),t(e[3]),t(e[4]),t(e[5]),t(e[6],e[7],5),t(e[8],e[9],4),t(e[10],e[11],3)]),...Zo(o,2,nl)};if(!n)throw new RangeError(Yc(nl));return eu(e[1])<0&&(i=Hs(i)),i})(t):void 0})(Qh(e));if(!t)throw new RangeError(lh(e));return ga(Cs(t))}(e)}function qd(e){if(void 0!==e){if(mo(e)){const t=dg(e)||{};switch(t.branding){case cf:case af:return t;case sf:return ha(t)}const n=Vd(e);return{...rc(Jd,Sf,Qf(n),e),calendar:n}}return function(e){const t=Fs(Qh(e));if(!t)throw new RangeError(lh(e));if(t.timeZone)return xs(t,t.offset?Bs(t.offset):void 0);if(t.j)throw new RangeError(lh(e));return $s(t)}(e)}}function Xd(e,t){if(mo(e)){const n=dg(e)||{};switch(n.branding){case uf:return Vi(t),n;case sf:return Vi(t),da(n);case cf:return Vi(t),mc(Sf,n)}return function(e,t){return da(ac(ic(e,Dh,[],1),Vi(t)))}(e,t)}const n=function(e){let t,n=(e=>{const t=Lf.exec(e);return t?(qs(t[10]),Ws(t)):void 0})(Qh(e));if(!n){if(n=Fs(e),!n)throw new RangeError(lh(e));if(!n.C)throw new RangeError(lh(e));if(n.j)throw new RangeError(fh("Z"));Us(n)}if((t=zs(e))&&xi(t))throw new RangeError(lh(e));if((t=Ks(e))&&xi(t))throw new RangeError(lh(e));return da($i(n,1))}(e);return Vi(t),n}function Qd(e){return void 0===e?void 0:Xd(e)}function eg(e,t){if(mo(e)){const n=dg(e)||{};switch(n.branding){case sf:return Vi(t),n;case af:return Vi(t),ca({...n,...vl});case cf:return Vi(t),dc(Sf,n)}return function(e,t,n){const r=oc(e,t,$h,[],Ch),o=Vi(n);return ca(yi({...e.F(r,ra(o)),...ac(r,o)}))}(Qf(Vd(e)),e,t)}const n=function(e){const t=Fs(Qh(e));if(!t||t.j)throw new RangeError(lh(e));return ca(Zs(t))}(e);return Vi(t),n}function tg(e,t){if(mo(e)){const n=dg(e);if(n&&n.branding===of)return Vi(t),n;const r=Fd(e);return function(e,t,n,r){const o=oc(e,n,$h,Uh);return t&&void 0!==o.month&&void 0===o.monthCode&&void 0===o.year&&(o.year=Nl),e._(o,r)}(Qf(r||Kh),!r,e,t)}const n=function(e,t){const n=Ks(Qh(t));if(n)return Us(n),fa(Ui(n));const r=js(t,0,1),{calendar:o}=r,i=e(o),[a,s,u]=i.v(r),[c,h]=i.q(a,s),[l,f]=i.G(c,h,u);return fa(mi(i.V(l,f,u)),o)}(Qf,e);return Vi(t),n}function ng(e,t){if(mo(e)){const n=dg(e);return n&&n.branding===rf?(Vi(t),n):function(e,t,n,r){const o=oc(e,t,xh,r);return e.K(o,n)}(Qf(Vd(e)),e,t)}const n=function(e,t){const n=zs(Qh(t));if(n)return Us(n),la(gi(Ui(n)));const r=js(t,1);return la(ys(e(r.calendar),r))}(Qf,e);return Vi(t),n}function rg(e,t){if(mo(e)){const n=dg(e)||{};switch(n.branding){case af:return Vi(t),n;case sf:return Vi(t),ha(n);case cf:return Vi(t),gc(Sf,n)}return function(e,t,n){const r=oc(e,t,$h,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]);return e.F(r,n)}(Qf(Vd(e)),e,t)}const n=js(e);return Vi(t),n}function og(e,t){if(mo(e)){const n=dg(e);if(n&&n.branding===cf)return Fi(t),n;const r=Vd(e);return function(e,t,n,r,o,i){const a=oc(n,o,$h,_h,Lh),s=e(a.timeZone),[u,c,h]=Fi(i),l=n.F(a,ra(u)),f=ac(a,u);return ua(os(t(s),{...l,...f},void 0!==a.offset?Bs(a.offset):void 0,c,h),s,r)}(Jd,Sf,Qf(r),r,e,t)}return function(e,t){const n=Fs(Qh(e));if(!n||!n.timeZone)throw new RangeError(lh(e));const{offset:r}=n,o=r?Bs(r):void 0,[,i,a]=Fi(t);return xs(n,o,i,a)}(e,t)}function ig(e){return bo((e=>t=>e(ag(t))),e)}function ag(e){return pf(e,Sf)}function sg(e){if(mo(e)){const t=dg(e);if(t)switch(t.branding){case hf:return t;case cf:return sa(t.epochNanoseconds)}}return function(e){const t=Fs(e=Xo(e));if(!t)throw new RangeError(lh(e));let n;if(t.j)n=0;else{if(!t.offset)throw new RangeError(lh(e));n=Bs(t.offset)}return t.timeZone&&Gs(t.timeZone,1),sa(Ti(ji(t),n))}(e)}function ug(){function e(e,n){return new t(e,n)}function t(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.create(null);om.set(this,((e,t)=>{const n=new El(e,t),r=n.resolvedOptions(),o=r.locale,i=Eo(Object.keys(t),r),a=yo(lg),s=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];if(e){if(2!==r.length)throw new TypeError(dh);for(const e of r)if(void 0===e)throw new TypeError(dh)}e||void 0!==r[0]||(r=[]);const u=r.map((e=>dg(e)||Number(e)));let c,h=0;for(const e of u){const t="object"==typeof e?e.branding:void 0;if(h++&&t!==c)throw new TypeError(dh);c=t}return c?a(c)(o,i,...u):[n,...u]};return s.X=n,s})(e,t))}const n=El.prototype,r=Object.getOwnPropertyDescriptors(n),o=Object.getOwnPropertyDescriptors(El);for(const t in r){const n=r[t],o=t.startsWith("format")&&cg(t);"function"==typeof n.value?n.value="constructor"===t?e:o||hg(t):o&&(n.get=function(){var e=this;if(!om.has(this))throw new TypeError(Bc);return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return o.apply(e,n)}},Object.defineProperties(n.get,vo(`get ${t}`)))}return o.prototype.value=t.prototype=Object.create({},r),Object.defineProperties(e,o),e}function cg(e){return Object.defineProperties((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o=om.get(this),[i,...a]=o(e.includes("Range"),...n);return i[e](...a)}),vo(e))}function hg(e){return Object.defineProperties((function(){return om.get(this).X[e](...arguments)}),vo(e))}function lg(e){const t=Cg[e];if(!t)throw new TypeError((e=>`Cannot format ${e}`)(e));return vc(t,yo(pc),1)}const fg=new WeakMap,dg=fg.get.bind(fg),gg=fg.set.bind(fg),mg={era:function(e){if(void 0!==e)return Qh(e)},eraYear:$o,year:Fo,month:Vo,daysInMonth:Vo,daysInYear:Vo,inLeapYear:el,monthsInYear:Vo},yg={monthCode:Qh},vg={day:Vo},pg={dayOfWeek:Vo,dayOfYear:Vo,weekOfYear:function(e){if(void 0!==e)return Vo(e)},yearOfWeek:$o,daysInWeek:Vo},wg=Kd(Object.assign({},mg,yg,vg,pg)),Sg=Kd({...mg,...yg}),Ag=Kd({...yg,...vg}),bg={calendarId:e=>e.calendar},Tg=To((e=>t=>t[e]),nl.concat("sign")),Ig=To(((e,t)=>e=>e[ll[t]]),Ch),Eg={epochMilliseconds:ma,epochNanoseconds:function(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,r]=e,o=Math.floor(r/t),i=Hh/t;return BigInt(n)*BigInt(i)+BigInt(o)}(e.epochNanoseconds)}},[Mg,Hg,Ng]=Zd(lf,(function(){return ga(Cs(bo(ni,Ao(nl,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,arguments.length>9&&void 0!==arguments[9]?arguments[9]:0]))))}),{...Tg,blank:function(e){return!e.sign}},{with:(e,t)=>Hg(function(e,t){return ga((n=e,r=t,Cs({...n,...ic(r,rl)})));var n,r}(e,t)),negated:e=>Hg(Ms(e)),abs:e=>Hg(function(e){return-1===e.sign?Ms(e):e}(e)),add:(e,t,n)=>Hg(Es(qd,Qf,Sf,0,e,Wd(t),n)),subtract:(e,t,n)=>Hg(Es(qd,Qf,Sf,1,e,Wd(t),n)),round:(e,t)=>Hg(function(e,t,n,r,o){const i=Rs(r),[a,s,u,c,h]=((e,t,n)=>{e=na(e,_l);let r=Gl(e);const o=n(e[Yl]);let i=Xi(e);const a=nf(e,7);let s=Kl(e);if(void 0===r&&void 0===s)throw new RangeError(ch);if(null==s&&(s=0),null==r&&(r=Math.max(s,t)),aa(r,s),i=Qi(i,s,1),i>1&&s>5&&r!==s)throw new RangeError("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit");return[r,s,i,a,o]})(o,i,e),l=Math.max(i,a);if(!h&&l<=6)return ga(Cs(((e,t,n,r,o)=>{const i=Ca(Os(e),n,r,o);return{...ul,..._s(i,t)}})(r,a,s,u,c)));if(!Ts(h)&&!r.sign)return r;if(!h)throw new RangeError(sh);const[f,d,g]=ws(t,n,h),m=Ss(g),y=As(g),v=bs(g),p=y(d,f,r);Ts(h)||(yi(f),yi(p));let w=v(d,f,p,a);const S=r.sign,A=Ns(w);if(S&&A&&S!==A)throw new RangeError(Gc);return w=Na(w,m(p),a,s,u,c,d,f,m,y),ga(w)}(qd,Qf,Sf,e,t)),total:(e,t)=>function(e,t,n,r,o){const i=Rs(r),[a,s]=((e,t)=>{const n=t((e=na(e,kl))[Yl]);let r=Jl(e);return r=zo(kl,r),[r,n]})(o,e),u=Math.max(a,i);if(!s&&Is(u,s))return va(r,a);if(!s)throw new RangeError(sh);if(!r.sign)return 0;const[c,h,l]=ws(t,n,s),f=Ss(l),d=As(l),g=bs(l),m=d(h,c,r);Ts(s)||(yi(c),yi(m));const y=g(h,c,m,a);return Is(a,s)?va(y,a):((e,t,n,r,o,i,a)=>{const s=Ns(e),[u,c]=pa(r,hl(n,e),n,s,o,i,a),h=wa(t,u,c);return e[nl[n]]+h*s})(y,f(m),a,h,c,f,d)}(qd,Qf,Sf,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):$a(e)},toString:$a,toJSON:e=>$a(e),valueOf:Gd},{from:e=>Hg(Wd(e)),compare:(e,t,n)=>function(e,t,n,r,o,i){const a=e(ta(i).relativeTo),s=Math.max(Rs(r),Rs(o));if(Ho(nl,r,o))return 0;if(Is(s,a))return ui(Os(r),Os(o));if(!a)throw new RangeError(sh);const[u,c,h]=ws(t,n,a),l=Ss(h),f=As(h);return ui(l(f(c,u,r)),l(f(c,u,o)))}(qd,Qf,Sf,Wd(e),Wd(t),n)}),Cg={Instant:Ld,PlainDateTime:Yd,PlainDate:Pd,PlainTime:Bd,PlainYearMonth:jd,PlainMonthDay:Ud},Dg=vc(Ld),Og=vc(Rd),_g=vc(Yd),kg=vc(Pd),Lg=vc(Bd),Rg=vc(jd),Yg=vc(Ud),[Pg,Bg]=Zd(uf,(function(){return da($i(bo(ti,Ao(ll,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0])),1))}),Ig,{with(e,t,n){return Bg(function(e,t,n){return da(((e,t,n)=>ac({...Eo(Dh,e),...ic(t,Dh)},Vi(n)))(e,t,n))}(this,$d(t),n))},add:(e,t)=>Bg(fs(0,e,Wd(t))),subtract:(e,t)=>Bg(fs(1,e,Wd(t))),until:(e,t,n)=>Hg(vu(0,e,Xd(t),n)),since:(e,t,n)=>Hg(vu(1,e,Xd(t),n)),round:(e,t)=>Bg(function(e,t){const[n,r,o]=Ki(t,5);var i;return da((i=o,ba(e,Ia(n,r),i)[0]))}(e,t)),equals:(e,t)=>function(e,t){return!cu(e,t)}(e,Xd(t)),toLocaleString(e,t,n){const[r,o]=Lg(t,n,e);return r.format(o)},toString:Za,toJSON:e=>Za(e),valueOf:Gd},{from:(e,t)=>Bg(Xd(e,t)),compare:(e,t)=>cu(Xd(e),Xd(t))}),[jg,Ug]=Zd(sf,Co((function(e,t,n,r){let o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:Kh;return ca(yi(ji(bo(ti,Ao(dl,[t,n,r,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,arguments.length>9&&void 0!==arguments[9]?arguments[9]:0])))),e(o))}),Qu),{...bg,...wg,...Ig},{with:(e,t,n)=>Ug(function(e,t,n,r){const o=e(t.calendar),i=[...o.fields($h),...Ch].sort(),a={...fc(s=t),hour:s.isoHour,minute:s.isoMinute,second:s.isoSecond,millisecond:s.isoMillisecond,microsecond:s.isoMicrosecond,nanosecond:s.isoNanosecond};var s;const u=ic(n,i),c=Vi(r),h=o.k(a,u),l={...a,...u};return ca(yi({...o.F(h,ra(c)),...$i(td(l),c)}))}(Qf,e,$d(t),n)),withCalendar:(e,t)=>Ug(Sc(e,zd(t))),withPlainTime:(e,t)=>Ug(function(e){return ca(yi({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:vl}))}(e,Qd(t))),add:(e,t,n)=>Ug(cs(Qf,0,e,Wd(t),n)),subtract:(e,t,n)=>Ug(cs(Qf,1,e,Wd(t),n)),until:(e,t,n)=>Hg(du(Qf,0,e,eg(t),n)),since:(e,t,n)=>Hg(du(Qf,1,e,eg(t),n)),round:(e,t)=>Ug(function(e,t){return ca(Sa(e,...Ki(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!su(e,t)&&e.calendar===t.calendar}(e,eg(t)),toZonedDateTime:(e,t,n)=>qg(function(e,t,n,r){const o=((e,t,n,r)=>{const o=(e=>ql(ta(e)))(r);return is(e(t),n,o)})(e,n,t,r);return ua(vi(o),n,t.calendar)}(Sf,e,Jd(t),n)),toPlainDate:e=>Gg(ha(e)),toPlainTime:e=>Bg(da(e)),toLocaleString(e,t,n){const[r,o]=_g(t,n,e);return r.format(o)},toString:Ba,toJSON:e=>Ba(e),valueOf:Gd},{from:(e,t)=>Ug(eg(e,t)),compare:(e,t)=>su(eg(e),eg(t))}),[xg,Zg,$g]=Zd(of,Co((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Kh,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Nl;const i=ti(t),a=ti(n),s=e(r);return fa(mi(Ui({isoYear:ti(o),isoMonth:i,isoDay:a})),s)}),Qu),{...bg,...Ag},{with:(e,t,n)=>Zg(function(e,t,n,r){const o=e(t.calendar),i=o.fields($h).sort(),a=(e=>{const t=Xf(e.calendar),[n,r,o]=t.v(e),[i,a]=t.q(n,r);return{monthCode:_u(i,a),day:o}})(t),s=ic(n,i),u=o.k(a,s);return o._(u,r)}(Qf,e,$d(t),n)),equals:(e,t)=>function(e,t){return!uu(e,t)&&e.calendar===t.calendar}(e,tg(t)),toPlainDate(e,t){return Gg(function(e,t,n,r){return((e,t,n)=>sc(e,t,Fh,Ko(n),Ph))(e(t.calendar),n,r)}(Qf,e,this,t))},toLocaleString(e,t,n){const[r,o]=Yg(t,n,e);return r.format(o)},toString:xa,toJSON:e=>xa(e),valueOf:Gd},{from:(e,t)=>Zg(tg(e,t))}),[Vg,Fg,zg]=Zd(rf,Co((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Kh,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const i=ti(t),a=ti(n),s=e(r);return la(gi(Ui({isoYear:i,isoMonth:a,isoDay:ti(o)})),s)}),Qu),{...bg,...Sg},{with:(e,t,n)=>Fg(function(e,t,n,r){const o=e(t.calendar),i=o.fields(xh).sort(),a=(e=>{const t=Xf(e.calendar),[n,r]=t.v(e),[o,i]=t.q(n,r);return{year:n,monthCode:_u(o,i)}})(t),s=ic(n,i),u=o.k(a,s);return o.K(u,r)}(Qf,e,$d(t),n)),add:(e,t,n)=>Fg(ls(Qf,0,e,Wd(t),n)),subtract:(e,t,n)=>Fg(ls(Qf,1,e,Wd(t),n)),until:(e,t,n)=>Hg(mu(Qf,0,e,ng(t),n)),since:(e,t,n)=>Hg(mu(Qf,1,e,ng(t),n)),equals:(e,t)=>function(e,t){return!uu(e,t)&&e.calendar===t.calendar}(e,ng(t)),toPlainDate(e,t){return Gg(function(e,t,n,r){return((e,t,n)=>sc(e,t,Zh,Ko(n),Uh))(e(t.calendar),n,r)}(Qf,e,this,t))},toLocaleString(e,t,n){const[r,o]=Rg(t,n,e);return r.format(o)},toString:Ua,toJSON:e=>Ua(e),valueOf:Gd},{from:(e,t)=>Fg(ng(e,t)),compare:(e,t)=>uu(ng(e),ng(t))}),[Kg,Gg,Jg]=Zd(af,Co((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Kh;return ha(mi(Ui(bo(ti,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))}),Qu),{...bg,...wg},{with:(e,t,n)=>Gg(function(e,t,n,r){const o=e(t.calendar),i=o.fields($h).sort(),a=fc(t),s=ic(n,i),u=o.k(a,s);return o.F(u,r)}(Qf,e,$d(t),n)),withCalendar:(e,t)=>Gg(Sc(e,zd(t))),add:(e,t,n)=>Gg(hs(Qf,0,e,Wd(t),n)),subtract:(e,t,n)=>Gg(hs(Qf,1,e,Wd(t),n)),until:(e,t,n)=>Hg(gu(Qf,0,e,rg(t),n)),since:(e,t,n)=>Hg(gu(Qf,1,e,rg(t),n)),equals:(e,t)=>function(e,t){return!uu(e,t)&&e.calendar===t.calendar}(e,rg(t)),toZonedDateTime(e,t){const n=mo(t)?t:{timeZone:t};return qg(function(e,t,n,r,o){const i=e(o.timeZone),a=o.plainTime,s=void 0!==a?t(a):void 0,u=n(i);let c;return c=s?is(u,{...r,...s}):as(u,{...r,...vl}),ua(c,i,r.calendar)}(Jd,Xd,Sf,e,n))},toPlainDateTime:(e,t)=>Ug(function(e){return ca(yi({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:vl}))}(e,Qd(t))),toPlainYearMonth(e){return Fg(function(e,t,n){return((e,t)=>{const n=oc(e,t,Zh);return e.K(n,void 0)})(e(t.calendar),n)}(Qf,e,this))},toPlainMonthDay(e){return Zg(function(e,t,n){return((e,t)=>{const n=oc(e,t,Fh);return e._(n)})(e(t.calendar),n)}(Qf,e,this))},toLocaleString(e,t,n){const[r,o]=kg(t,n,e);return r.format(o)},toString:ja,toJSON:e=>ja(e),valueOf:Gd},{from:(e,t)=>Gg(rg(e,t)),compare:(e,t)=>uu(rg(e),rg(t))}),[Wg,qg]=Zd(cf,Co((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Kh;return ua(vi(hi(Qo(n))),t(r),e(o))}),Qu,(function(e){return nu(Qh(e))})),{...Eg,...bg,...ig(wg),...ig(Ig),offset:e=>qa(ag(e).offsetNanoseconds),offsetNanoseconds:e=>ag(e).offsetNanoseconds,timeZoneId:e=>e.timeZone,hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=pf(t,n),[o,i]=Ea(r),a=fi(si(as(n,o),as(n,i)),Mh,1);if(a<=0)throw new RangeError(Gc);return a}(Sf,e)},{with:(e,t,n)=>qg(function(e,t,n,r,o){const{calendar:i,timeZone:a}=n,s=e(i),u=t(a),c=[...s.fields($h),...kh].sort(),h=(e=>{const t=pf(e,Sf),n=qa(t.offsetNanoseconds),r=Xf(e.calendar),[o,i,a]=r.v(t),[s,u]=r.q(o,i),c=_u(s,u);return{...nd(t),year:o,monthCode:c,day:a,offset:n}})(n),l=ic(r,c),f=s.k(h,l),d={...h,...l},[g,m,y]=Fi(o,2);return ua(os(u,{...s.F(f,ra(g)),...$i(td(d),g)},Bs(d.offset),m,y),a,i)}(Qf,Sf,e,$d(t),n)),withCalendar:(e,t)=>qg(Sc(e,zd(t))),withTimeZone:(e,t)=>qg(function(e,t){return{...e,timeZone:t}}(e,Jd(t))),withPlainTime:(e,t)=>qg(function(e,t,n){const r=t.timeZone,o=e(r),i={...pf(t,o),...n||vl};let a;return a=n?os(o,i,i.offsetNanoseconds,2):as(o,i),ua(a,r,t.calendar)}(Sf,e,Qd(t))),add:(e,t,n)=>qg(us(Qf,Sf,0,e,Wd(t),n)),subtract:(e,t,n)=>qg(us(Qf,Sf,1,e,Wd(t),n)),until:(e,t,n)=>Hg(ga(fu(Qf,Sf,0,e,og(t),n))),since:(e,t,n)=>Hg(ga(fu(Qf,Sf,1,e,og(t),n))),round:(e,t)=>qg(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:i}=t;const[a,s,u]=Ki(n);if(0===a&&1===s)return t;const c=e(o);if(6===a)r=((e,t,n,r)=>{const o=pf(n,t),[i,a]=e(o),s=n.epochNanoseconds,u=as(t,i),c=as(t,a);if(ci(s,u,c))throw new RangeError(Gc);return _a(wa(s,u,c),r)?c:u})(Ea,c,t,u);else{const e=c.R(r);r=os(c,Sa(Hi(r,e),a,s,u),e,2,0,1)}return ua(r,o,i)}(Sf,e,t)),startOfDay:e=>qg(function(e,t){const{timeZone:n,calendar:r}=t,o=((e,t,n)=>as(t,e(pf(n,t))))(Ma,e(n),t);return ua(o,n,r)}(Sf,e)),equals:(e,t)=>function(e,t){return!au(e,t)&&!!hu(e.timeZone,t.timeZone)&&e.calendar===t.calendar}(e,og(t)),toInstant:e=>Qg(function(e){return sa(e.epochNanoseconds)}(e)),toPlainDateTime:e=>Ug(dc(Sf,e)),toPlainDate:e=>Gg(gc(Sf,e)),toPlainTime:e=>Bg(mc(Sf,e)),toLocaleString(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o]=Og(t,n,e);return r.format(o)},toString:(e,t)=>Pa(Sf,e,t),toJSON:e=>Pa(Sf,e),valueOf:Gd,getTimeZoneTransition(e,t){const{timeZone:n,epochNanoseconds:r}=e,o=function(e){const t=na(e,Pl),n=ia(Pl,zl,t,0);if(!n)throw new RangeError(_c(Pl,n));return n}(t),i=Sf(n).O(r,o);return i?qg({...e,epochNanoseconds:i}):null}},{from:(e,t)=>qg(og(e,t)),compare:(e,t)=>au(og(e),og(t))}),[Xg,Qg,em]=Zd(hf,(function(e){return sa(vi(hi(Qo(e))))}),Eg,{add:(e,t)=>Qg(ss(0,e,Wd(t))),subtract:(e,t)=>Qg(ss(1,e,Wd(t))),until:(e,t,n)=>Hg(lu(0,e,sg(t),n)),since:(e,t,n)=>Hg(lu(1,e,sg(t),n)),round:(e,t)=>Qg(function(e,t){const[n,r,o]=Ki(t,5,1);return sa(Ca(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!iu(e,t)}(e,sg(t)),toZonedDateTimeISO:(e,t)=>qg(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Kh;return ua(e.epochNanoseconds,t,n)}(e,Jd(t))),toLocaleString(e,t,n){const[r,o]=Dg(t,n,e);return r.format(o)},toString:(e,t)=>Ya(Jd,Sf,e,t),toJSON:e=>Ya(Jd,Sf,e),valueOf:Gd},{from:e=>Qg(sg(e)),fromEpochMilliseconds:e=>Qg(function(e){return sa(vi(li(ni(e),Th)))}(e)),fromEpochNanoseconds:e=>Qg(function(e){return sa(vi(hi(Qo(e))))}(e)),compare:(e,t)=>iu(sg(e),sg(t))}),tm=Object.defineProperties({},{...So("Temporal.Now"),...po({timeZoneId:()=>Tc(),instant:()=>Qg(sa(bc())),zonedDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tc();return qg(ua(bc(),Jd(e),Kh))},plainDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tc();return Ug(ca(Ac(Sf(Jd(e))),Kh))},plainDateISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tc();return Gg(ha(Ac(Sf(Jd(e))),Kh))},plainTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tc();return Bg(da(Ac(Sf(Jd(e)))))}})}),nm=Object.defineProperties({},{...So("Temporal"),...po({PlainYearMonth:Vg,PlainMonthDay:xg,PlainDate:Kg,PlainTime:Pg,PlainDateTime:jg,ZonedDateTime:Wg,Instant:Xg,Duration:Mg,Now:tm})}),rm=ug(),om=new WeakMap;function im(e){return e*Math.PI/180}function am(e){return 180*e/Math.PI}Object.create(Intl),po({DateTimeFormat:rm}),Object.defineProperties(globalThis,po({Temporal:nm})),Object.defineProperties(Intl,po({DateTimeFormat:rm})),Object.defineProperties(Date.prototype,po({toTemporalInstant:function(){const e=Date.prototype.valueOf.call(this);return Qg(sa(li(Jo(e),Th)))}}));class sm{constructor(e,t,n,r,o){this.locationName=null,this.setLocationName(e),this.setLatitude(t),this.setLongitude(n),this.setElevation(r),this.setTimeZone(o)}getElevation(){return this.elevation}setElevation(e){if("number"!=typeof e)throw new TypeError("Invalid elevation");if(e<0)throw new RangeError(`elevation ${e} must be zero or positive`);this.elevation=e}setLatitude(e){if("number"!=typeof e)throw new TypeError("Invalid latitude");if(e<-90||e>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);this.latitude=e}getLatitude(){return this.latitude}setLongitude(e){if("number"!=typeof e)throw new TypeError("Invalid longitude");if(e<-180||e>180)throw new RangeError(`Longitude ${e} out of range [-180,180]`);this.longitude=e}getLongitude(){return this.longitude}getLocationName(){return this.locationName}setLocationName(e){this.locationName=e}getTimeZone(){return this.timeZoneId}setTimeZone(e){if(!e)throw new RangeError("Invalid timeZoneId");this.timeZoneId=e}}const um=6356.9;class cm{constructor(e,t){this.date=t,this.geoLocation=e}getSunrise(){const e=this.getUTCSunrise0(cm.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(cm.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(cm.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(cm.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(cm.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(cm.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(cm.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(cm.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(cm.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(cm.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 am(Math.acos(um/(um+e/1e3)))}adjustZenith(e,t){let n=e;return e===cm.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}getUTCSunrise(e,t,n,r){const o=r?t.getElevation():0,i=this.adjustZenith(n,o);let a=cm.getSunriseUTC(cm.getJulianDay(e),t.getLatitude(),-t.getLongitude(),i);for(a/=60;a<0;)a+=24;for(;a>=24;)a-=24;return a}getUTCSunset(e,t,n,r){const o=r?t.getElevation():0,i=this.adjustZenith(n,o);let a=cm.getSunsetUTC(cm.getJulianDay(e),t.getLatitude(),-t.getLongitude(),i);for(a/=60;a<0;)a+=24;for(;a>=24;)a-=24;return a}getTemporalHour(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();if(null===e||null===t)return NaN;const n=t.epochMilliseconds-e.epochMilliseconds;return Math.floor(n/12)}getSunTransit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();const n=this.getTemporalHour(e,t);return cm.getTimeOffset(e,6*n)}getDateFromTime(e,t){if(isNaN(e))return null;let n=e,r=this.getAdjustedDate();const o=Math.trunc(n);n-=o;const i=Math.trunc(n*=60);n-=i;const a=Math.trunc(n*=60);n-=a;const s=Math.trunc(this.geoLocation.getLongitude()/15);return t&&s+o>18?r=r.add({days:-1}):!t&&s+o<6&&(r=r.add({days:1})),r.toZonedDateTime({timeZone:"UTC",plainTime:new Temporal.PlainTime(o,i,a,Math.trunc(1e3*n))}).withTimeZone(this.geoLocation.getTimeZone())}static getJulianDay(e){let{year:t,month:n}=e;const{day:r}=e;n<=2&&(t-=1,n+=12);const o=Math.trunc(t/100),i=Math.trunc(2-o+o/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+i-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-cm.JULIAN_DAY_JAN_1_2000)/cm.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*cm.JULIAN_DAYS_PER_CENTURY+cm.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=im(cm.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 cm.getSunGeometricMeanLongitude(e)+cm.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return cm.getSunTrueLongitude(e)-.00569-.00478*Math.sin(im(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 cm.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(im(t))}static getSunDeclination(e){const t=cm.getObliquityCorrection(e),n=cm.getSunApparentLongitude(e),r=Math.sin(im(t))*Math.sin(im(n));return am(Math.asin(r))}static getEquationOfTime(e){const t=cm.getObliquityCorrection(e),n=cm.getSunGeometricMeanLongitude(e),r=cm.getEarthOrbitEccentricity(e),o=cm.getSunGeometricMeanAnomaly(e);let i=Math.tan(im(t)/2);i*=i;const a=Math.sin(2*im(n)),s=Math.sin(im(o));return 4*am(i*a-2*r*s+4*r*i*s*Math.cos(2*im(n))-.5*i*i*Math.sin(4*im(n))-1.25*r*r*Math.sin(2*im(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=im(e),o=im(t);return Math.acos(Math.cos(im(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=im(e),o=im(t);return-Math.acos(Math.cos(im(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=cm.getJulianDay(e.toPlainDate()),o=cm.getJulianCenturiesFromJulianDay(r),i=cm.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=im(n-a),u=im(cm.getSunDeclination(o)),c=im(t);return am(Math.asin(Math.sin(c)*Math.sin(u)+Math.cos(c)*Math.cos(u)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=cm.getJulianDay(e.toPlainDate()),o=cm.getJulianCenturiesFromJulianDay(r),i=cm.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=im(n-a),u=im(cm.getSunDeclination(o)),c=im(t);return am(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(c)-Math.tan(u)*Math.cos(c))))+180}static getSunriseUTC(e,t,n,r){const o=cm.getJulianCenturiesFromJulianDay(e),i=cm.getSolarNoonUTC(o,n),a=cm.getJulianCenturiesFromJulianDay(e+i/1440);let s=cm.getEquationOfTime(a),u=cm.getSunDeclination(a),c=cm.getSunHourAngleAtSunrise(t,u,r),h=n-am(c),l=4*h,f=720+l-s;const d=cm.getJulianCenturiesFromJulianDay(cm.getJulianDayFromJulianCenturies(o)+f/1440);return s=cm.getEquationOfTime(d),u=cm.getSunDeclination(d),c=cm.getSunHourAngleAtSunrise(t,u,r),h=n-am(c),l=4*h,f=720+l-s,f}static getSolarNoonUTC(e,t){const n=cm.getJulianCenturiesFromJulianDay(cm.getJulianDayFromJulianCenturies(e)+t/360);let r=cm.getEquationOfTime(n);const o=720+4*t-r,i=cm.getJulianCenturiesFromJulianDay(cm.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=cm.getEquationOfTime(i),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=cm.getJulianCenturiesFromJulianDay(e),i=cm.getSolarNoonUTC(o,n),a=cm.getJulianCenturiesFromJulianDay(e+i/1440);let s=cm.getEquationOfTime(a),u=cm.getSunDeclination(a),c=cm.getSunHourAngleAtSunset(t,u,r),h=n-am(c),l=4*h,f=720+l-s;const d=cm.getJulianCenturiesFromJulianDay(cm.getJulianDayFromJulianCenturies(o)+f/1440);return s=cm.getEquationOfTime(d),u=cm.getSunDeclination(d),c=cm.getSunHourAngleAtSunset(t,u,r),h=n-am(c),l=4*h,f=720+l-s,f}}cm.GEOMETRIC_ZENITH=90,cm.CIVIL_ZENITH=96,cm.NAUTICAL_ZENITH=102,cm.ASTRONOMICAL_ZENITH=108,cm.JULIAN_DAY_JAN_1_2000=2451545,cm.JULIAN_DAYS_PER_CENTURY=36525;const hm=[["Ashdod","IL",31.79213,34.64966,"Asia/Jerusalem",27],["Atlanta","US",33.749,-84.38798,"America/New_York",336],["Austin","US",30.26715,-97.74306,"America/Chicago",165],["Baghdad","IQ",33.34058,44.40088,"Asia/Baghdad",41],["Beer Sheva","IL",31.25181,34.7913,"Asia/Jerusalem",285],["Berlin","DE",52.52437,13.41053,"Europe/Berlin",43],["Baltimore","US",39.29038,-76.61219,"America/New_York",35],["Bogota","CO",4.60971,-74.08175,"America/Bogota",2582],["Boston","US",42.35843,-71.05977,"America/New_York",38],["Budapest","HU",47.49801,19.03991,"Europe/Budapest",104],["Buenos Aires","AR",-34.61315,-58.37723,"America/Argentina/Buenos_Aires",31],["Buffalo","US",42.88645,-78.87837,"America/New_York",191],["Chicago","US",41.85003,-87.65005,"America/Chicago",180],["Cincinnati","US",39.162,-84.45689,"America/New_York",267],["Cleveland","US",41.4995,-81.69541,"America/New_York",204],["Dallas","US",32.78306,-96.80667,"America/Chicago",139],["Denver","US",39.73915,-104.9847,"America/Denver",1636],["Detroit","US",42.33143,-83.04575,"America/Detroit",192],["Eilat","IL",29.55805,34.94821,"Asia/Jerusalem",63],["Gibraltar","GI",36.14474,-5.35257,"Europe/Gibraltar",11],["Haifa","IL",32.81841,34.9885,"Asia/Jerusalem",40],["Hawaii","US",21.30694,-157.85833,"Pacific/Honolulu",18],["Helsinki","FI",60.16952,24.93545,"Europe/Helsinki",26],["Houston","US",29.76328,-95.36327,"America/Chicago",30],["Jerusalem","IL",31.76904,35.21633,"Asia/Jerusalem",786],["Johannesburg","ZA",-26.20227,28.04363,"Africa/Johannesburg",1767],["Kiev","UA",50.45466,30.5238,"Europe/Kiev",187],["La Paz","BO",-16.5,-68.15,"America/La_Paz",3782],["Livingston","US",40.79593,-74.31487,"America/New_York",98],["Las Vegas","US",36.17497,-115.13722,"America/Los_Angeles",613],["London","GB",51.50853,-.12574,"Europe/London",25],["Los Angeles","US",34.05223,-118.24368,"America/Los_Angeles",96],["Marseilles","FR",43.29695,5.38107,"Europe/Paris",28],["Miami","US",25.77427,-80.19366,"America/New_York",25],["Minneapolis","US",44.97997,-93.26384,"America/Chicago",262],["Melbourne","AU",-37.814,144.96332,"Australia/Melbourne",25],["Mexico City","MX",19.42847,-99.12766,"America/Mexico_City",2240],["Montreal","CA",45.50884,-73.58781,"America/Toronto",216],["Moscow","RU",55.75222,37.61556,"Europe/Moscow",144],["New York","US",40.71427,-74.00597,"America/New_York",57],["Omaha","US",41.25861,-95.93779,"America/Chicago",315],["Ottawa","CA",45.41117,-75.69812,"America/Toronto",71],["Panama City","PA",8.9936,-79.51973,"America/Panama",17],["Paris","FR",48.85341,2.3488,"Europe/Paris",42],["Pawtucket","US",41.87871,-71.38256,"America/New_York",0],["Petach Tikvah","IL",32.08707,34.88747,"Asia/Jerusalem",54],["Philadelphia","US",39.95233,-75.16379,"America/New_York",8],["Phoenix","US",33.44838,-112.07404,"America/Phoenix",366],["Pittsburgh","US",40.44062,-79.99589,"America/New_York",239],["Providence","US",41.82399,-71.41283,"America/New_York",0],["Portland","US",45.52345,-122.67621,"America/Los_Angeles",15],["Saint Louis","US",38.62727,-90.19789,"America/Chicago",149],["Saint Petersburg","RU",59.93863,30.31413,"Europe/Moscow",11],["San Diego","US",32.71533,-117.15726,"America/Los_Angeles",20],["San Francisco","US",37.77493,-122.41942,"America/Los_Angeles",28],["Sao Paulo","BR",-23.5475,-46.63611,"America/Sao_Paulo",769],["Seattle","US",47.60621,-122.33207,"America/Los_Angeles",56],["Sydney","AU",-33.86785,151.20732,"Australia/Sydney",58],["Tel Aviv","IL",32.08088,34.78057,"Asia/Jerusalem",15],["Tiberias","IL",32.79221,35.53124,"Asia/Jerusalem",0],["Toronto","CA",43.70011,-79.4163,"America/Toronto",175],["Vancouver","CA",49.24966,-123.11934,"America/Vancouver",70],["White Plains","US",41.03399,-73.76291,"America/New_York",82],["Washington DC","US",38.89511,-77.03637,"America/New_York",6],["Worcester","US",42.26259,-71.80229,"America/New_York",164]],lm=new Map,fm={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"},dm=new Map;class gm extends sm{constructor(e,t,n,r,o,i,a,s){const u="number"==typeof e?e:parseFloat(e);if(isNaN(u)||u<-90||u>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const c="number"==typeof t?t:parseFloat(t);if(isNaN(c)||c<-180||c>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);if(!r)throw new RangeError("Invalid timezone");super(o||null,u,c,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=i,this.geoid=a}getIsrael(){return this.il}getName(){return this.getLocationName()}getShortName(){const e=this.getLocationName();if(!e)return e;const t=e.indexOf(", ");if(-1===t)return e;if("US"===this.cc&&"D"===e[t+2]){if("C"===e[t+3])return e.substring(0,t+4);if("."===e[t+3]&&"C"===e[t+4])return e.substring(0,t+6)}return e.substring(0,t)}getCountryCode(){return this.cc}getTzid(){return this.getTimeZone()}getTimeFormatter(){return function(e){const t=dm.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return dm.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return lm.get(e.toLowerCase())}toString(){return JSON.stringify(this)}static legacyTzToTzid(e,t){if(e=+e,"none"===t){if(0===e)return"UTC";return`Etc/GMT${e>0?"+":""}${e}`}if(2===e&&"israel"===t)return"Asia/Jerusalem";if("eu"===t)switch(e){case-2:return"Atlantic/Cape_Verde";case-1:return"Atlantic/Azores";case 0:return"Europe/London";case 1:return"Europe/Paris";case 2:return"Europe/Athens"}else if("usa"===t)return fm[String(-1*e)]}static getUsaTzid(e,t,n){return 10===(t=+t)&&"AK"===e?"America/Adak":7===t&&"AZ"===e?"Y"===n?"America/Denver":"America/Phoenix":fm[t]}static addLocation(e,t){const n=e.toLowerCase();return!lm.has(n)&&(lm.set(n,t),!0)}}for(const e of hm){const t=new gm(e[2],e[3],"IL"===e[1],e[4],e[0],e[1],void 0,e[5]);gm.addLocation(e[0],t)}function mm(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}class ym{constructor(e,t,n){const r=function(e){if(u(e))return e;if(de.isHDate(e))return e.greg();throw new TypeError(`invalid date: ${e}`)}(t);this.date=r,this.gloc=e;const o=Temporal.PlainDate.from({year:r.getFullYear(),month:r.getMonth()+1,day:r.getDate()});this.noaa=new cm(e,o),this.useElevation=Boolean(n)}getUseElevation(){return this.useElevation}setUseElevation(e){this.useElevation=e}timeAtAngle(e,t){const n=90+e;return mm(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return mm(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return mm(this.noaa.getSeaLevelSunrise())}sunset(){return mm(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return mm(this.noaa.getSeaLevelSunset())}dawn(){return mm(this.noaa.getBeginCivilTwilight())}dusk(){return mm(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new ym(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise().getTime()-this.gregEve().getTime())/12}chatzot(){const e=this.noaa.getSeaLevelSunrise(),t=this.noaa.getSeaLevelSunset();return mm(this.noaa.getSunTransit(e,t))}chatzotNight(){return new Date(this.sunrise().getTime()-6*this.nightHour())}alotHaShachar(){return this.timeAtAngle(16.1,!0)}misheyakir(){return this.timeAtAngle(11.5,!0)}misheyakirMachmir(){return this.timeAtAngle(10.2,!0)}getShaahZmanisBasedZman(e){const t=this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise(),n=this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset(),r=this.noaa.getTemporalHour(t,n),o=Math.round(r*e);return mm(cm.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}getTemporalHour72(e){const t=this.sunriseOffset(-72,!1,e),n=(this.sunsetOffset(72,!1,e).getTime()-t.getTime())/12;return[t,n]}getTemporalHourByDeg(e){const t=this.timeAtAngle(e,!0),n=(this.timeAtAngle(e,!1).getTime()-t.getTime())/12;return[t,n]}sofZmanShmaMGA(){const[e,t]=this.getTemporalHour72(!0),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanShmaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanShmaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA(){const[e,t]=this.getTemporalHour72(!0),n=Math.floor(4*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1),n=Math.floor(4*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8),n=Math.floor(4*t);return new Date(e.getTime()+n)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaGedolaMGA(){const[e,t]=this.getTemporalHour72(!1),n=Math.floor(6.5*t);return new Date(e.getTime()+n)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}minchaKetanaMGA(){const[e,t]=this.getTemporalHour72(!1);return new Date(e.getTime()+Math.floor(9.5*t))}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(e=8.5){return this.timeAtAngle(e,!1)}neitzHaChama(){return this.sunrise()}shkiah(){return this.sunset()}beinHaShmashos(){const e=this.tzeit(7.083),t=e.getTime();return isNaN(t)?e:new Date(t-81e4)}static formatTime(e,t){const n=t.format(e),r=n.split(":");return"24"===r[0]?"00:"+r[1]:n}static roundTime(e){const t=e.getTime();if(isNaN(t))return e;const n=e.getMilliseconds(),r=e.getSeconds();if(0===r&&0===n)return e;const o=1e3*r+n;return new Date(t+(o>=3e4?6e4-o:-1*o))}static timeZoneOffset(e,t){const n=function(e,t){const n=K("UTC",t),r=K(e,t),o=new Date(n).getTime()-new Date(r).getTime();return Math.ceil(o/1e3/60)}(e,t),r=Math.abs(n),o=r%60;return(n<0?"+":"-")+V(Math.floor(r/60))+":"+V(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?"0000-00-00T00:00:00Z":K(e,t).substring(0,19)+ym.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 ym(e,t,n).sunset();let o=new de(t);const i=r.getTime();return isNaN(i)||t.getTime()>=i&&(o=o.next()),o}}const vm={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 pm(e,t,n){var r;if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const o=(null===(r=null==n?void 0:n.location)||void 0===r?void 0:r.getCountryCode())||((null==n?void 0:n.il)?"IL":"US"),i=null==n?void 0:n.hour12;if(void 0!==i&&!i)return e;if(!i&&void 0===vm[o])return e;const a=e.split(":");let s=parseInt(a[0],10);return s<12&&t?(t=t.replace("p","a").replace("P","A"),0===s&&(s=12)):s>12?s%=12:0===s&&(s="00"),`${s}:${a[1]}${t}`}class wm extends Ie{constructor(e,t,n,r,o,i,a){super(e,t,n),this.eventTime=ym.roundTime(r),this.location=o;const s=o.getTimeFormatter();this.eventTimeStr=ym.formatTime(this.eventTime,s);const u=Object.assign(Object.assign({},a),{location:o});this.fmtTime=pm(this.eventTimeStr,"pm",u),void 0!==i&&(this.linkedEvent=i)}render(e){return ie.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return ie.gettext(this.getDesc(),e)}getCategories(){switch(this.getDesc()){case"Candle lighting":return["candles"];case"Havdalah":return["havdalah"];case"Fast begins":case"Fast ends":return["zmanim","fast"]}return["unknown"]}}class Sm extends wm{constructor(e,t,n,r,o,i){super(e,"Candle lighting",t,n,r,o,i)}getEmoji(){return"🕯️"}}class Am extends wm{constructor(e,t,n,r,o,i,a){super(e,"Havdalah",t,n,r,i,a),o&&(this.havdalahMins=o)}render(e){return this.renderBrief(e)+": "+this.fmtTime}renderBrief(e){let t=ie.gettext(this.getDesc(),e);if(this.havdalahMins){const n=ie.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}const bm=f.NISAN,Tm=f.IYYAR,Im=f.SIVAN,Em=f.ELUL,Mm=f.TISHREI,Hm=f.CHESHVAN,Nm=f.KISLEV,Cm=f.SHVAT,Dm=f.ADAR_II,Om=be.CHAG,_m=be.LIGHT_CANDLES,km=be.YOM_TOV_ENDS,Lm=be.CHUL_ONLY,Rm=be.IL_ONLY,Ym=be.LIGHT_CANDLES_TZEIS,Pm=be.MINOR_HOLIDAY,Bm=be.EREV,jm=be.CHOL_HAMOED,Um="🫓",xm="🌿🍋",Zm="Rosh Hashana II",$m="Erev Yom Kippur",Vm="Yom Kippur",Fm="Erev Sukkot",zm="Sukkot I",Km="Sukkot II",Gm="Sukkot III (CH''M)",Jm="Sukkot IV (CH''M)",Wm="Sukkot V (CH''M)",qm="Sukkot VI (CH''M)",Xm="Shmini Atzeret",Qm="Simchat Torah",ey="Sukkot II (CH''M)",ty="Sukkot VII (Hoshana Raba)",ny="Chanukah: 1 Candle",ry="Tu BiShvat",oy="Erev Purim",iy="Purim",ay="Shushan Purim",sy="Erev Pesach",uy="Pesach I",cy="Pesach II",hy="Pesach II (CH''M)",ly="Pesach III (CH''M)",fy="Pesach IV (CH''M)",dy="Pesach V (CH''M)",gy="Pesach VI (CH''M)",my="Pesach VII",yy="Pesach VIII",vy="Pesach Sheni",py="Lag BaOmer",wy="Erev Shavuot",Sy="Shavuot",Ay="Shavuot I",by="Shavuot II",Ty="Tu B'Av",Iy="Rosh Hashana LaBehemot",Ey="Erev Rosh Hashana",My="Yom Yerushalayim",Hy="Ben-Gurion Day",Ny="Family Day",Cy="Yitzhak Rabin Memorial Day",Dy="Herzl Day",Oy="Jabotinsky Day",_y="Sigd",ky="Yom HaAliyah",Ly="Yom HaAliyah School Observance",Ry="Hebrew Language Day",Yy={ASARA_BTEVET:"Asara B'Tevet",BIRKAT_HACHAMAH:"Birkat Hachamah",CHAG_HABANOT:"Chag HaBanot",CHANUKAH_8TH_DAY:"Chanukah: 8th Day",EREV_TISHA_BAV:"Erev Tish'a B'Av",LEIL_SELICHOT:"Leil Selichot",PURIM_KATAN:"Purim Katan",PURIM_MESHULASH:"Purim Meshulash",SHABBAT_CHAZON:"Shabbat Chazon",SHABBAT_HACHODESH:"Shabbat HaChodesh",SHABBAT_HAGADOL:"Shabbat HaGadol",SHABBAT_NACHAMU:"Shabbat Nachamu",SHABBAT_PARAH:"Shabbat Parah",SHABBAT_SHEKALIM:"Shabbat Shekalim",SHABBAT_SHIRAH:"Shabbat Shirah",SHABBAT_SHUVA:"Shabbat Shuva",SHABBAT_ZACHOR:"Shabbat Zachor",SHUSHAN_PURIM_KATAN:"Shushan Purim Katan",TAANIT_BECHOROT:"Ta'anit Bechorot",TAANIT_ESTHER:"Ta'anit Esther",TISHA_BAV:"Tish'a B'Av",TZOM_GEDALIAH:"Tzom Gedaliah",TZOM_TAMMUZ:"Tzom Tammuz",YOM_HAATZMA_UT:"Yom HaAtzma'ut",YOM_HASHOAH:"Yom HaShoah",YOM_HAZIKARON:"Yom HaZikaron",BEN_GURION_DAY:Hy,CHANUKAH_1_CANDLE:ny,EREV_PESACH:sy,EREV_PURIM:oy,EREV_ROSH_HASHANA:Ey,EREV_SHAVUOT:wy,EREV_SUKKOT:Fm,EREV_YOM_KIPPUR:$m,FAMILY_DAY:Ny,HEBREW_LANGUAGE_DAY:Ry,HERZL_DAY:Dy,JABOTINSKY_DAY:Oy,LAG_BAOMER:py,PESACH_I:uy,PESACH_II:cy,PESACH_III_CHM:ly,PESACH_II_CHM:hy,PESACH_IV_CHM:fy,PESACH_SHENI:vy,PESACH_VII:my,PESACH_VIII:yy,PESACH_VI_CHM:gy,PESACH_V_CHM:dy,PURIM:iy,ROSH_HASHANA_II:Zm,ROSH_HASHANA_LABEHEMOT:Iy,SHAVUOT:Sy,SHAVUOT_I:Ay,SHAVUOT_II:by,SHMINI_ATZERET:Xm,SHUSHAN_PURIM:ay,SIGD:_y,SIMCHAT_TORAH:Qm,SUKKOT_I:zm,SUKKOT_II:Km,SUKKOT_III_CHM:Gm,SUKKOT_II_CHM:ey,SUKKOT_IV_CHM:Jm,SUKKOT_VII_HOSHANA_RABA:ty,SUKKOT_VI_CHM:qm,SUKKOT_V_CHM:Wm,TU_BAV:Ty,TU_BISHVAT:ry,YITZHAK_RABIN_MEMORIAL_DAY:Cy,YOM_HAALIYAH:ky,YOM_HAALIYAH_SCHOOL_OBSERVANCE:Ly,YOM_KIPPUR:Vm,YOM_YERUSHALAYIM:My},Py=[{mm:Mm,dd:2,desc:Zm,flags:Om|km,emoji:"🍏🍯"},{mm:Mm,dd:9,desc:$m,flags:Bm|_m},{mm:Mm,dd:10,desc:Vm,flags:Om|be.MAJOR_FAST|km},{mm:Mm,dd:14,desc:Fm,flags:Lm|Bm|_m,emoji:xm},{mm:Mm,dd:15,desc:zm,flags:Lm|Om|Ym,emoji:xm},{mm:Mm,dd:16,desc:Km,flags:Lm|Om|km,emoji:xm},{mm:Mm,dd:17,desc:Gm,flags:Lm|jm,chmDay:1,emoji:xm},{mm:Mm,dd:18,desc:Jm,flags:Lm|jm,chmDay:2,emoji:xm},{mm:Mm,dd:19,desc:Wm,flags:Lm|jm,chmDay:3,emoji:xm},{mm:Mm,dd:20,desc:qm,flags:Lm|jm,chmDay:4,emoji:xm},{mm:Mm,dd:22,desc:Xm,flags:Lm|Om|Ym},{mm:Mm,dd:23,desc:Qm,flags:Lm|Om|km},{mm:Mm,dd:14,desc:Fm,flags:Rm|Bm|_m,emoji:xm},{mm:Mm,dd:15,desc:zm,flags:Rm|Om|km,emoji:xm},{mm:Mm,dd:16,desc:ey,flags:Rm|jm,chmDay:1,emoji:xm},{mm:Mm,dd:17,desc:Gm,flags:Rm|jm,chmDay:2,emoji:xm},{mm:Mm,dd:18,desc:Jm,flags:Rm|jm,chmDay:3,emoji:xm},{mm:Mm,dd:19,desc:Wm,flags:Rm|jm,chmDay:4,emoji:xm},{mm:Mm,dd:20,desc:qm,flags:Rm|jm,chmDay:5,emoji:xm},{mm:Mm,dd:22,desc:Xm,flags:Rm|Om|km},{mm:Mm,dd:21,desc:ty,flags:_m|jm,chmDay:-1,emoji:xm},{mm:Nm,dd:24,desc:ny,flags:Bm|Pm|be.CHANUKAH_CANDLES,emoji:"🕎1️⃣"},{mm:Cm,dd:15,desc:ry,flags:Pm,emoji:"🌳"},{mm:Dm,dd:13,desc:oy,flags:Bm|Pm,emoji:"🎭️📜"},{mm:Dm,dd:14,desc:iy,flags:Pm,emoji:"🎭️📜"},{mm:Dm,dd:15,desc:ay,flags:Pm,emoji:"🎭️📜"},{mm:bm,dd:14,desc:sy,flags:Rm|Bm|_m,emoji:"🫓🍷"},{mm:bm,dd:15,desc:uy,flags:Rm|Om|km,emoji:Um},{mm:bm,dd:16,desc:hy,flags:Rm|jm,chmDay:1,emoji:Um},{mm:bm,dd:17,desc:ly,flags:Rm|jm,chmDay:2,emoji:Um},{mm:bm,dd:18,desc:fy,flags:Rm|jm,chmDay:3,emoji:Um},{mm:bm,dd:19,desc:dy,flags:Rm|jm,chmDay:4,emoji:Um},{mm:bm,dd:20,desc:gy,flags:Rm|jm|_m,chmDay:5,emoji:Um},{mm:bm,dd:21,desc:my,flags:Rm|Om|km,emoji:Um},{mm:bm,dd:14,desc:sy,flags:Lm|Bm|_m,emoji:"🫓🍷"},{mm:bm,dd:15,desc:uy,flags:Lm|Om|Ym,emoji:"🫓🍷"},{mm:bm,dd:16,desc:cy,flags:Lm|Om|km,emoji:Um},{mm:bm,dd:17,desc:ly,flags:Lm|jm,chmDay:1,emoji:Um},{mm:bm,dd:18,desc:fy,flags:Lm|jm,chmDay:2,emoji:Um},{mm:bm,dd:19,desc:dy,flags:Lm|jm,chmDay:3,emoji:Um},{mm:bm,dd:20,desc:gy,flags:Lm|jm|_m,chmDay:4,emoji:Um},{mm:bm,dd:21,desc:my,flags:Lm|Om|Ym,emoji:Um},{mm:bm,dd:22,desc:yy,flags:Lm|Om|km,emoji:Um},{mm:Tm,dd:14,desc:vy,flags:Pm},{mm:Tm,dd:18,desc:py,flags:Pm,emoji:"🔥"},{mm:Im,dd:5,desc:wy,flags:Bm|_m,emoji:"⛰️🌸"},{mm:Im,dd:6,desc:Sy,flags:Rm|Om|km,emoji:"⛰️🌸"},{mm:Im,dd:6,desc:Ay,flags:Lm|Om|Ym,emoji:"⛰️🌸"},{mm:Im,dd:7,desc:by,flags:Lm|Om|km,emoji:"⛰️🌸"},{mm:f.AV,dd:15,desc:Ty,flags:Pm,emoji:"❤️"},{mm:Em,dd:1,desc:Iy,flags:Pm,emoji:"🐑"},{mm:Em,dd:29,desc:Ey,flags:Bm|_m,emoji:"🍏🍯"}],By=[{firstYear:5727,mm:Tm,dd:28,desc:My,chul:!0},{firstYear:5737,mm:Nm,dd:6,desc:Hy,satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:Cm,dd:30,desc:Ny},{firstYear:5758,mm:Hm,dd:12,desc:Cy,friSatMovetoThu:!0},{firstYear:5764,mm:Tm,dd:10,desc:Dy,satPostponeToSun:!0},{firstYear:5765,mm:f.TAMUZ,dd:29,desc:Oy,satPostponeToSun:!0},{firstYear:5769,mm:Hm,dd:29,desc:_y,chul:!0,suppressEmoji:!0,friSatMovetoThu:!0},{firstYear:5777,mm:bm,dd:10,desc:ky,chul:!0},{firstYear:5777,mm:Hm,dd:7,desc:Ly},{firstYear:5773,mm:f.TEVET,dd:21,desc:Ry,friSatMovetoThu:!0}];class jy extends Ie{basename(){return this.getDesc().replace(/ \d{4}$/,"").replace(/ \(CH''M\)$/,"").replace(/ \(observed\)$/,"").replace(/ \(Hoshana Raba\)$/,"").replace(/ [IV]+$/,"").replace(/: \d Candles?$/,"").replace(/: 8th Day$/,"").replace(/^Erev /,"")}url(){if(this.getDate().greg().getFullYear()<100)return;const e="https://www.hebcal.com/holidays/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+this.urlDateSuffix();return this.getFlags()&be.IL_ONLY?e+"?i=on":e}urlDateSuffix(){const e=this.getDate().greg().getFullYear();return String(e)}getEmoji(){return this.emoji?this.emoji:this.getFlags()&be.SPECIAL_SHABBAT?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;switch(this.getDesc()){case Yy.LAG_BAOMER:case Yy.LEIL_SELICHOT:case Yy.PESACH_SHENI:case Yy.EREV_PURIM:case Yy.PURIM_KATAN:case Yy.SHUSHAN_PURIM:case Yy.TU_BAV:case Yy.TU_BISHVAT:case Yy.ROSH_HASHANA_LABEHEMOT:return["holiday","minor"]}return["holiday","major"]}render(e){return super.render(e).replace(/'/g,"’")}renderBrief(e){return super.renderBrief(e).replace(/'/g,"’")}clone(){const e=new jy(this.date,this.desc,this.mask);return Object.assign(e,this),e}}class Uy extends jy{urlDateSuffix(){return G(this.getDate().greg()).replace(/-/g,"")}}class xy extends jy{urlDateSuffix(){const e=this.getDate().greg();let t=e.getFullYear();return 0===e.getMonth()&&t--,String(t)}}class Zy extends jy{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return ie.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const $y="Rosh Chodesh";class Vy extends jy{constructor(e,t){super(e,`${$y} ${t}`,be.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=ie.gettext(t,e).replace(/'/g,"’");return ie.gettext($y,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}const Fy=be.LIGHT_CANDLES,zy=be.LIGHT_CANDLES_TZEIS;function Ky(e,t,n,r,o){let i=!1,a=o,s=e?e.getFlags():Fy;void 0!==e?r||(s&(zy|be.CHANUKAH_CANDLES)?a=!0:s&be.YOM_TOV_ENDS&&(i=!0,a=!0)):o&&(i=!0,s=zy);const u=Number(a?n.havdalahMins:n.candleLightingMins),c=n.location,h=Boolean(n.useElevation),l=new ym(c,t,h),f=a&&!u?l.tzeit(n.havdalahDeg):l.sunsetOffset(u,!0);if(!isNaN(f.getTime()))return i?new Am(t,s,f,c,n.havdalahMins,e,n):(s|=Fy,new Sm(t,s,f,c,e,n))}const Gy="Fast begins",Jy="Fast ends";class Wy extends jy{constructor(e,t,n){super(e.getDate(),e.getDesc(),e.getFlags()),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 qy(e,t,n,r){const o=r.location,i=e.getDate();return new wm(i,n,e.getFlags(),t,o,e,r)}class Xy extends xy{constructor(e,t,n,r,o){super(e,t,n),this.eventTime=ym.roundTime(r);const i=o.getTimeFormatter();this.eventTimeStr=ym.formatTime(this.eventTime,i),this.location=o}}const Qy=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ev=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],tv=["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],nv="בַּלַּ֥יְלָה";class rv{constructor(e,t){this.m=function(e,t){let n=t-7;n<0&&(n+=T(e));const r=235*Math.floor((e-1)/19)+(e-1)%19*12+Math.floor(((e-1)%19*7+1)/19)+n,o=204+Math.floor(r%1080*793),i=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,a=(o%1080+i%24*1080)%1080;return{year:e,month:t,dayOfWeek:(1+29*r+Math.floor(i/24))%7,hour:i%24,minutes:Math.floor(a/18),chalakim:a%18}}(e,t)}getYear(){return this.m.year}getMonth(){return this.m.month}getMonthName(){return de.getMonthName(this.m.month,this.m.year)}getDow(){return this.m.dayOfWeek}getHour(){return this.m.hour}getMinutes(){return this.m.minutes}getChalakim(){return this.m.chalakim}render(e,t){var n;"string"==typeof(e=null!=e?e:ie.getLocaleName())&&(e=e.toLowerCase());const r="he"===e||"he-x-nonikud"===e||"h"===e,o="fr"===e,i=ie.gettext(this.getMonthName(),e),a=(r?ev:o?tv:Qy)[this.getDow()],s=this.getMinutes(),u=this.getHour(),c=this.getChalakim(),h=ie.gettext("Molad",e),l=null!==(n=ie.lookupTranslation("min",e))&&void 0!==n?n:"minutes",f=ie.gettext("chalakim",e),d=ie.gettext("and",e),g=ie.gettext("after",e);if(r){const t=function(e){return e<5?nv:e<12?"בַּבֹּקֶר":e<17?"בַּצׇּהֳרַיִים":e<21?"בָּעֶרֶב":nv}(u),n=`${h} ${i} יִהְיֶה בַּיּוֹם ${a} בשָׁבוּעַ, בְּשָׁעָה ${u} ${t}, ו-${s} ${l} ו-${c} ${f}`;return"he-x-nonikud"===e?ie.hebrewStripNikkud(n):n}const m=pm(`${u}:00`,"pm",t);return`${h} ${i.replace(/'/g,"’")}: ${a}, ${s} ${l} ${d} ${c} ${f} ${g} ${m}`}}class ov extends Ie{constructor(e,t,n,r){const o=new rv(t,n);super(e,`Molad ${o.getMonthName()} ${t}`,be.MOLAD),this.molad=o,this.options=r}render(e){return this.molad.render(e,this.options)}}const iv={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 av(e){return[Math.floor((e-1)/7)+1,e%7||7]}const sv=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],uv=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],cv="שְׁנֵי",hv="יָמִים",lv=cv+" "+hv,fv="שָׁבוּעוֹת",dv="יוֹם",gv=dv+" "+uv[1],mv="עָשָׂר";class yv extends Ie{constructor(e,t){super(e,`Omer ${t}`,be.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]=av(this.omer),r=iv[e],o=r.pfxWords,i=r.words,a=o?o[t]:i[t];return(i[n]+" "+(o?"":2===t||6===t?r.infix26:r.infix)+a).normalize()}render(e){"string"==typeof(e=null!=e?e:ie.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e||"h"===e,n=this.omer;return(t?x(n):ie.ordinal(n,e))+" "+ie.gettext("day of the Omer",e)}renderBrief(e){return ie.gettext("Omer",e)+" "+ie.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){"string"==typeof(e=null!=e?e:ie.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e?function(e){const t=Math.floor(e/10),n=e%10;let r="הַיּוֹם ";if(11===e?r+="אַחַד "+mv:12===e?r+="שְׁנֵים "+mv:12<e&&e<20?r+=uv[n]+" "+mv:e>9&&(r+=uv[n],n&&(r+=" ",r+=3===t?"וּ":"וְ")),e>2?((e>20||10===e||20===e)&&(r+=sv[t]),r+=e<11?uv[n]+" "+hv+" ":" יוֹם "):r+=1===e?gv+" ":lv+" ",e>6){r=r.trim(),r+=", שֶׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?uv[t]+" "+fv+" ":1===t?"שָׁבֽוּעַ "+uv[1]+" ":cv+" "+fv+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?uv[n]+" "+hv+" ":1===n?gv+" ":lv+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(this.omer):function(e){const[t,n]=av(e);let r=`Today is ${e} ${1===e?"day":"days"}`;if(t>1||7===e){const e=7===n,o=e?t:t-1;r+=`, which is ${o} ${1===o?"week":"weeks"}`,e||(r+=` and ${n} ${1===n?"day":"days"}`)}return r+" of the Omer"}(this.omer);return"he-x-nonikud"===e?ie.hebrewStripNikkud(t):t}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}function vv(e,t){const n=null!=t?t:ie.getLocaleName();let r=ie.gettext(e[0],n);if(2===e.length){r+=("he"===n?"־":"-")+ie.gettext(e[1],n)}r=r.replace(/'/g,"’");return(ie.gettext("Parashat",t)+" "+r).normalize()}class pv extends Map{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=e.maxSize,this.maxAge=e.maxAge||Number.POSITIVE_INFINITY,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if("function"==typeof this.onEviction)for(const[t,n]of e)this.onEviction(t,n.value)}_deleteIfExpired(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.onEviction&&this.onEviction(e,t.value),this.delete(e))}_getOrDeleteIfExpired(e,t){if(!1===this._deleteIfExpired(e,t))return t.value}_getItemValue(e,t){return t.expiry?this._getOrDeleteIfExpired(e,t):t.value}_peek(e,t){const n=t.get(e);return this._getItemValue(e,n)}_set(e,t){this.cache.set(e,t),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(e,t){this.oldCache.delete(e),this._set(e,t)}*_entriesAscending(){for(const e of this.oldCache){const[t,n]=e;if(!this.cache.has(t)){!1===this._deleteIfExpired(t,n)&&(yield e)}}for(const e of this.cache){const[t,n]=e;!1===this._deleteIfExpired(t,n)&&(yield e)}}get(e){if(this.cache.has(e)){const t=this.cache.get(e);return this._getItemValue(e,t)}if(this.oldCache.has(e)){const t=this.oldCache.get(e);if(!1===this._deleteIfExpired(e,t))return this._moveToRecent(e,t),t.value}}set(e,t){let{maxAge:n=this.maxAge}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.cache.has(e)?this.cache.set(e,{value:t,expiry:r}):this._set(e,{value:t,expiry:r}),this}has(e){return this.cache.has(e)?!this._deleteIfExpired(e,this.cache.get(e)):!!this.oldCache.has(e)&&!this._deleteIfExpired(e,this.oldCache.get(e))}peek(e){return this.cache.has(e)?this._peek(e,this.cache):this.oldCache.has(e)?this._peek(e,this.oldCache):void 0}delete(e){const t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this._entriesAscending()],n=t.length-e;n<0?(this.cache=new Map(t),this.oldCache=new Map,this._size=t.length):(n>0&&this._emitEvictions(t.slice(0,n)),this.oldCache=new Map(t.slice(n)),this.cache=new Map,this._size=0),this.maxSize=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache){const[t,n]=e;!1===this._deleteIfExpired(t,n)&&(yield[t,n.value])}for(const e of this.oldCache){const[t,n]=e;if(!this.cache.has(t)){!1===this._deleteIfExpired(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.cache];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;!1===this._deleteIfExpired(r,o)&&(yield[r,o.value])}e=[...this.oldCache];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;if(!this.cache.has(r)){!1===this._deleteIfExpired(r,o)&&(yield[r,o.value])}}}*entriesAscending(){for(const[e,t]of this._entriesAscending())yield[e,t.value]}get size(){if(!this._size)return this.oldCache.size;let e=0;for(const t of this.oldCache.keys())this.cache.has(t)||e++;return Math.min(this._size+e,this.maxSize)}entries(){return this.entriesAscending()}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}class wv{constructor(e,t){e=+e,this.year=e;const n=new de(1,f.TISHREI,e),r=n.abs(),o=n.getDay()+1;this.firstSaturday=de.dayOnOrBefore(6,r+6);const i=+de.isLeapYear(e);this.il=Boolean(t);const a=function(e){const t=de.longCheshvan(e),n=de.shortKislev(e);return t&&!n?2:!t&&n?0:1}(e);let s=`${i}${o}${a}`;if(xv[s]?(this.theSedraArray=xv[s],this.yearKey=s):(s+=+this.il,this.theSedraArray=xv[s],this.yearKey=s),!this.theSedraArray)throw new Error(`improper sedra year type ${s} calculated for ${e}`)}get(e){return this.lookup(e).parsha}getString(e,t){return vv(this.get(e),t)}isParsha(e){return!this.lookup(e).chag}find(e){if("number"==typeof e){if(e>=Sv.length||e<0&&!Tv(e))throw new RangeError(`Invalid parsha number: ${e}`);return this.findInternal(e)}if("string"==typeof e){const t=Av.get(e);return"number"==typeof t?this.find(t):-1!==e.indexOf("-")?e===Nv||e===Ev?this.findInternal(e):this.find(e.split("-")):this.findInternal(e)}if(Array.isArray(e)){const t=e.length;if(1!==t&&2!==t||"string"!=typeof e[0])throw new TypeError(`Invalid parsha argument: ${JSON.stringify(e)}`);if(1===t)return this.find(e[0]);const n=e[0],r=e[1],o=Av.get(n),i=Av.get(r);if("number"!=typeof o||"number"!=typeof i||i!==o+1||!Tv(-o))throw new RangeError(`Unrecognized parsha name: ${n}-${r}`);return this.find(-o)}return null}findInternal(e){const t=this.theSedraArray.indexOf(e);return-1===t?null:new de(this.firstSaturday+7*t)}findContaining(e){const t=this.find(e);if(t)return t;if("number"==typeof e){const t=-e;return Tv(t)?this.find(t):this.find(t+1)}{const t=Av.get(e);if(t){const e=-t;return Tv(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:de.isHDate(e)?e.abs():NaN;if(isNaN(t))throw new TypeError(`Bad date argument: ${e}`);const n=de.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return $v(this.year+1,this.il).lookup(n)}const i=new de(n);if("string"==typeof o)return{parsha:[o],chag:!0,hdate:i};if(o>=0)return{parsha:[Sv[o]],chag:!1,num:o+1,hdate:i};const a=Iv(o);return{parsha:[Sv[a],Sv[a+1]],chag:!1,num:[a+1,a+2],hdate:i}}}const Sv=["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"],Av=new Map;for(let e=0;e<Sv.length;e++){const t=Sv[e];Av.set(t,e)}const bv=[21,26,28,31,38,41,50];function Tv(e){return bv.includes(-e)}function Iv(e){return-e}const Ev="Sukkot Shabbat Chol ha-Moed",Mv="Pesach",Hv="Pesach I",Nv="Pesach Shabbat Chol ha-Moed",Cv="Pesach VII",Dv="Pesach VIII",Ov="Shavuot";function _v(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const kv=[51,52,Ev],Lv=[52,"Yom Kippur",Ev],Rv=["Rosh Hashana",52,"Sukkot","Shmini Atzeret"],Yv=_v(0,20),Pv=_v(0,27),Bv=_v(33,40),jv=_v(43,49),Uv=_v(43,50),xv={"020":kv.concat(Yv,Iv(21),23,24,Nv,25,Iv(26),Iv(28),30,Iv(31),Bv,Iv(41),jv,Iv(50)),"0220":kv.concat(Yv,Iv(21),23,24,Nv,25,Iv(26),Iv(28),30,Iv(31),33,Ov,_v(34,37),Iv(38),40,Iv(41),jv,Iv(50)),"0510":Lv.concat(Yv,Iv(21),23,24,Hv,Dv,25,Iv(26),Iv(28),30,Iv(31),Bv,Iv(41),Uv),"0511":Lv.concat(Yv,Iv(21),23,24,Mv,25,Iv(26),Iv(28),_v(30,40),Iv(41),Uv),"052":Lv.concat(_v(0,24),Cv,25,Iv(26),Iv(28),30,Iv(31),Bv,Iv(41),Uv),"070":Rv.concat(Yv,Iv(21),23,24,Cv,25,Iv(26),Iv(28),30,Iv(31),Bv,Iv(41),Uv),"072":Rv.concat(Yv,Iv(21),23,24,Nv,25,Iv(26),Iv(28),30,Iv(31),Bv,Iv(41),jv,Iv(50)),1200:kv.concat(Pv,Nv,_v(28,33),Ov,_v(34,37),Iv(38),40,Iv(41),jv,Iv(50)),1201:kv.concat(Pv,Nv,_v(28,40),Iv(41),jv,Iv(50)),1220:kv.concat(Pv,Hv,Dv,_v(28,40),Iv(41),Uv),1221:kv.concat(Pv,Mv,_v(28,50)),150:Lv.concat(_v(0,28),Cv,_v(29,50)),152:Lv.concat(_v(0,28),Nv,_v(29,49),Iv(50)),170:Rv.concat(Pv,Nv,_v(28,40),Iv(41),jv,Iv(50)),1720:Rv.concat(Pv,Nv,_v(28,33),Ov,_v(34,37),Iv(38),40,Iv(41),jv,Iv(50))};xv["0221"]=xv["020"],xv["0310"]=xv["0220"],xv["0311"]=xv["020"],xv[1310]=xv[1220],xv[1311]=xv[1221],xv[1721]=xv[170];const Zv=new pv({maxSize:400});function $v(e,t){const n=`${e}-${t?1:0}`;let r=Zv.get(n);return r||(r=new wv(e,t),Zv.set(n,r)),r}class Vv extends Ie{constructor(e,t,n=!1,r=-1){if(!Array.isArray(t)||0===t.length||t.length>2)throw new TypeError("Bad parsha argument");super(e,"Parashat "+t.join("-"),be.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){return vv(this.parsha,e)}basename(){return this.parsha.join("-")}url(){if(this.getDate().greg().getFullYear()<100)return;const e=this.urlDateSuffix(),t="https://www.hebcal.com/sedrot/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+e;return this.il?t+"?i=on":t}urlDateSuffix(){return G(this.getDate().greg()).replace(/-/g,"")}}const Fv=f.NISAN,zv=f.IYYAR;function Kv(e){if(e<5708)return null;let t;const n=new de(15,Fv,e).getDay();return t=0===n?2:6===n?3:e<5764?4:2===n?5:4,new de(t,zv,e)}const Gv="Yom Kippur Katan";class Jv extends jy{constructor(e,t){super(e,`${Gv} ${t}`,be.MINOR_FAST|be.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=ie.gettext(this.nextMonthName,e).replace(/'/g,"’");return ie.gettext(Gv,e)+" "+t}renderBrief(e){return ie.gettext(Gv,e)}url(){}}function Wv(e){return e.observedInIsrael()}function qv(e){return e.observedInDiaspora()}function Xv(e,t){const n=de.isHDate(e)?e:new de(e),r=n.toString(),o=Mp(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const i=o.filter(function(e){return e?Wv:qv}(t));return i}const Qv=be.CHAG,ep=be.IL_ONLY,tp=be.LIGHT_CANDLES_TZEIS,np=be.CHANUKAH_CANDLES,rp=be.MINOR_FAST,op=be.SPECIAL_SHABBAT,ip=be.MODERN_HOLIDAY,ap=be.MAJOR_FAST,sp=be.MINOR_HOLIDAY,up=be.EREV,cp=0,hp=2,lp=4,fp=5,dp=6,gp=f.NISAN,mp=f.TAMUZ,yp=f.AV,vp=f.TISHREI,pp=f.KISLEV,wp=f.TEVET,Sp=f.ADAR_I,Ap=f.ADAR_II,bp={emoji:"🇮🇱"},Tp="🕎",Ip=new pv({maxSize:400}),Ep=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function Mp(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=Ip.get(e);if(t)return t;const n=new de(1,vp,e),r=new de(15,gp,e),o=new Map;function i(...e){for(const t of e){const e=t.date.toString(),n=o.get(e);"object"==typeof n?n[0].getFlags()&up?n.unshift(t):n.push(t):o.set(e,[t])}}for(const t of Py){const n=new de(t.dd,t.mm,e),r=new jy(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),i(r)}i(new Zy(n,e,Qv|tp));const a=n.getDay()===lp?4:3;i(new jy(new de(a,vp,e),Yy.TZOM_GEDALIAH,rp)),i(new jy(new de(de.dayOnOrBefore(dp,7+n.abs())),Yy.SHABBAT_SHUVA,op));const s=de.shortKislev(e)?new de(1,wp,e):new de(30,pp,e);i(new jy(s,Yy.CHAG_HABANOT,sp));for(let t=2;t<=8;t++){const n=new de(23+t,pp,e);i(new xy(n,`Chanukah: ${t} Candles`,sp|np,{chanukahDay:t-1,emoji:Tp+Ep[t]}))}i(new xy(new de(32,pp,e),Yy.CHANUKAH_8TH_DAY,sp,{chanukahDay:8,emoji:Tp})),i(new Uy(new de(10,wp,e),Yy.ASARA_BTEVET,rp));const u=r.abs();i(new jy(new de(de.dayOnOrBefore(dp,u-43)),Yy.SHABBAT_SHEKALIM,op),new jy(new de(de.dayOnOrBefore(dp,u-30)),Yy.SHABBAT_ZACHOR,op),new jy(new de(u-(r.getDay()===hp?33:31)),Yy.TAANIT_ESTHER,rp));const c=de.dayOnOrBefore(dp,u-14);i(new jy(new de(c-7),Yy.SHABBAT_PARAH,op),new jy(new de(c),Yy.SHABBAT_HACHODESH,op),new jy(new de(de.dayOnOrBefore(dp,u-1)),Yy.SHABBAT_HAGADOL,op),new jy(r.prev().getDay()===dp?r.onOrBefore(lp):new de(14,gp,e),Yy.TAANIT_BECHOROT,rp)),i(new jy(new de(de.dayOnOrBefore(dp,new de(1,vp,e+1).abs()-4)),Yy.LEIL_SELICHOT,sp,{emoji:"🕍"})),r.getDay()===cp&&i(new jy(new de(16,Ap,e),Yy.PURIM_MESHULASH,sp)),de.isLeapYear(e)&&(i(new jy(new de(14,Sp,e),Yy.PURIM_KATAN,sp,{emoji:"🎭️"})),i(new jy(new de(15,Sp,e),Yy.SHUSHAN_PURIM_KATAN,sp,{emoji:"🎭️"})));const h=function(e){if(e<5711)return null;let t=new de(27,Fv,e);return 5===t.getDay()?t=new de(26,Fv,e):0===t.getDay()&&(t=new de(28,Fv,e)),t}(e);h&&i(new jy(h,Yy.YOM_HASHOAH,ip));const l=Kv(e);l&&i(new jy(l,Yy.YOM_HAZIKARON,ip,bp),new jy(l.next(),Yy.YOM_HAATZMA_UT,ip,bp));for(const t of By)if(e>=t.firstYear){let n=new de(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||r!==fp&&r!==dp?t.friPostponeToSun&&r===fp?n=new de(n.abs()+2):t.satPostponeToSun&&r===dp&&(n=n.next()):n=n.onOrBefore(lp);const o=t.chul?ip:ip|ep,a=new jy(n,t.desc,o);t.suppressEmoji||(a.emoji="🇮🇱"),i(a)}let d,g=new de(17,mp,e);g.getDay()===dp&&(g=new de(18,mp,e),d={observed:!0}),i(new jy(g,Yy.TZOM_TAMMUZ,rp,d));let m,y=new de(9,yp,e),v=Yy.TISHA_BAV;y.getDay()===dp&&(y=y.next(),m={observed:!0},v+=" (observed)");const p=y.abs();i(new jy(new de(de.dayOnOrBefore(dp,p)),Yy.SHABBAT_CHAZON,op),new jy(y.prev(),Yy.EREV_TISHA_BAV,up|ap,m),new jy(y,v,ap,m),new jy(new de(de.dayOnOrBefore(dp,p+7)),Yy.SHABBAT_NACHAMU,op));const w=de.monthsInYear(e);for(let t=1;t<=w;t++){const n=de.getMonthName(t,e);30===(t===gp?de.daysInMonth(de.monthsInYear(e-1),e-1):de.daysInMonth(t-1,e))?(i(new Vy(new de(1,t,e),n)),i(new Vy(new de(30,t-1,e),n))):t!==vp&&i(new Vy(new de(1,t,e),n))}for(let t=f.IYYAR;t<=w;t++){const n=t+1;if(n===vp||n===f.CHESHVAN||n===wp)continue;let r=new de(29,t,e);const o=r.getDay();o!==fp&&o!==dp||(r=r.onOrBefore(lp));const a=de.getMonthName(n,e);i(new Jv(r,a))}const S=$v(e,!1).find(15);i(new jy(S,Yy.SHABBAT_SHIRAH,op));const A=function(e){const t=de.isLeapYear(e),n=t?Ap:gp,r=t?20:1,o=de.hebrew2abs(e,n,r);for(let e=0;e<=40;e++){const t=o+e;if((t+1373429)%10227==172)return t}return 0}(e);if(A){const e=new de(A);i(new jy(e,Yy.BIRKAT_HACHAMAH,sp,{emoji:"☀️"}))}return Ip.set(e,o),o}function Hp(e,t){const n=Mp(e),r=de.hebrew2abs(e,vp,1),o=de.hebrew2abs(e+1,vp,1)-1;let i=[];const a=t?Wv:qv;for(let e=r;e<=o;e++){const t=new de(e),r=n.get(t.toString());if(r){const e=r.filter(a);i=i.concat(e)}}return i}const Np="Shabbat Mevarchim Chodesh";class Cp extends Ie{constructor(e,t,n,r){if(super(e,`${Np} ${t}`,be.SHABBAT_MEVARCHIM),this.monthName=ie.gettext(t,r),n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n===de.monthsInYear(t)?f.NISAN:n+1,o=new rv(t,r);this.memo=o.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=ie.gettext(this.monthName,e).replace(/'/g,"’");return ie.gettext(Np,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}const Dp=new Map;class Op{static addCalendar(e,t,n){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);Dp.set(e.toLowerCase(),{fn:t,startDate:n})}static lookup(e,t,n){const r=Dp.get(e.toLowerCase());return"object"==typeof r?r.fn(t,n):null}static getStartDate(e){const t=Dp.get(e.toLowerCase());if("object"==typeof t)return t.startDate}static has(e){return Dp.has(e.toLowerCase())}static getCalendars(){return Array.from(Dp.keys())}}function _p(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}const kp={shacharit:!1,mincha:!1,allCongs:!1};function Lp(e,t){return Rp(e,t,!0)}function Rp(e,t,n){const r=function(e,t){const n=de.isLeapYear(e),r=de.monthsInYear(e);let o=new de(9,f.AV,e);6===o.getDay()&&(o=o.next());let i=new de(15,f.ADAR_II,e);6===i.getDay()&&(i=i.next());const a=[new de(2,f.TISHREI,e)].concat(_p(1,r).map((t=>new de(1,t,e))),_p(1,r).filter((t=>30===de.daysInMonth(t,e))).map((t=>new de(30,t,e))),_p(1,de.daysInMonth(f.NISAN,e)).map((t=>new de(t,f.NISAN,e))),new de(18,f.IYYAR,e),_p(1,8-(t?1:0)).map((t=>new de(t,f.SIVAN,e))),o,new de(15,f.AV,e),new de(29,f.ELUL,e),_p(9,24-(t?1:0)).map((t=>new de(t,f.TISHREI,e))),_p(25,33).map((t=>new de(t,f.KISLEV,e))),new de(15,f.SHVAT,e),new de(14,f.ADAR_II,e),i,n?new de(14,f.ADAR_I,e):[]),s=[new de(14,f.IYYAR,e)].concat(_p(1,13).map((t=>new de(t,f.SIVAN,e))),_p(20,31).map((t=>new de(t,f.TISHREI,e))),e>=5708?Kv(e).next():[],e>=5727?new de(28,f.IYYAR,e):[]),u=[new de(29,f.ELUL,e-1),new de(9,f.TISHREI,e),new de(14,f.IYYAR,e)];return{none:a.map((e=>e.abs())).sort(((e,t)=>e-t)),some:s.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:u.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.yy,t),o=e.abs();if(r.none.indexOf(o)>-1)return kp;const i=e.getDay(),a={shacharit:!1,mincha:!1,allCongs:!1};-1===r.some.indexOf(o)&&(a.allCongs=!0),6!==i&&(a.shacharit=!0);const s=o+1;if(n&&-1===r.yesPrev.indexOf(s)){const e=Rp(new de(s),t,!1);a.mincha=e.shacharit}else a.mincha=5!==i;return!a.allCongs||a.mincha||a.shacharit?a:kp}const Yp=f.TISHREI;function Pp(e){if("number"==typeof e)return e;if(u(e))return h(e);if(de.isHDate(e))return e.abs();throw new TypeError(`Invalid date type: ${e}`)}function Bp(e){if(e.start&&!e.end||e.end&&!e.start)throw new TypeError("Both options.start and options.end are required");if(e.start&&e.end)return[Pp(e.start),Pp(e.end)];const t=Boolean(e.isHebrewYear),n=function(e){return void 0!==e.year?Number(e.year):e.isHebrewYear?(new de).getFullYear():(new Date).getFullYear()}(e);if(isNaN(n))throw new RangeError(`Invalid year ${e.year}`);if(t&&n<1)throw new RangeError(`Invalid Hebrew year ${n}`);const r=function(e){if(e.month){if(e.isHebrewYear)return de.monthNum(e.month);if("number"==typeof e.month)return e.month}return NaN}(e),o=Number(e.numYears)||1;return t?function(e,t,n){const r=new de(1,e||Yp,t);let o=r.abs();const i=e?o+r.daysInMonth():new de(1,Yp,t+n).abs()-1;!e&&t>1&&o--;return[o,i]}(r,n,o):function(e,t,n){const r=e?e-1:0,o=new Date(t,r,1);t<100&&o.setFullYear(t);const i=h(o);let a;if(e)a=i+s(e,t)-1;else{const e=t+n,r=new Date(e,0,1);e<100&&r.setFullYear(e),a=h(r)-1}return[i,a]}(r,n,o)}function jp(e={}){!function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof gm))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");const n=e.candleLightingMins;let r="number"!=typeof n||isNaN(n)?18:Math.trunc(n);t.getIsrael()&&18===Math.abs(r)&&(r=function(e,t){const n=e.getGeoId();if(n){const e=vw[n];if("number"==typeof e)return e}const r=e.getShortName();if(r){const e=yw[r];if("number"==typeof e)return e}return t}(t,r));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=pw;"number"!=typeof e.fastEndDeg&&(e.fastEndDeg=ww)}(e=Object.assign({},e));const t=e.location=e.location||Aw,n=e.il=e.il||t.getIsrael()||!1,r="number"==typeof e.mask;if(e.mask=function(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask||0;t&tw&&delete e.noRoshChodesh;t&Qp&&delete e.noModern;t&qp&&delete e.noMinorFast;t&Xp&&delete e.noSpecialShabbat;t&nw&&(e.sedrot=!0);t&(rw|ow|iw|aw)&&(e.dailyLearning=e.dailyLearning||{},t&rw&&(e.dailyLearning.dafYomi=!0),t&ow&&(e.dailyLearning.mishnaYomi=!0),t&iw&&(e.dailyLearning.nachYomi=!0),t&aw&&(e.dailyLearning.yerushalmi=1));t&sw&&(e.omer=!0);t&uw&&(e.shabbatMevarchim=!0);t&fw&&(e.yomKippurKatan=!0);t&dw&&(e.yizkor=!0);return t}(e);const n=e.il||(null===(t=e.location)||void 0===t?void 0:t.getIsrael())||!1;let r=0;e.noHolidays||(r|=tw|zp|qp|Xp|Qp|ew|cw|hw|lw|Fp|Jp|Wp);e.candlelighting&&(r|=Fp|Jp|zp);e.noRoshChodesh&&(r&=~tw);e.noModern&&(r&=~Qp);e.noMinorFast&&(r&=~qp);e.noSpecialShabbat&&(r&=~Xp,r&=~uw);r|=n?Gp:Kp;e.sedrot&&(r|=nw);e.omer&&(r|=sw);e.shabbatMevarchim&&(r|=uw);e.yomKippurKatan&&(r|=fw);e.yizkor&&(r|=dw);if(e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=rw),t.mishnaYomi&&(r|=ow),t.nachYomi&&(r|=iw),t.yerushalmi&&(r|=aw)}return r}(e),e.ashkenazi||e.locale){if(e.locale&&"string"!=typeof e.locale)throw new TypeError(`Invalid options.locale: ${e.locale}`);const t=e.ashkenazi?"ashkenazi":e.locale;if(!ie.useLocale(t))throw new TypeError(`Locale '${t}' not found; did you forget to import @hebcal/locales?`)}else ie.useLocale("en");const o=[];let i,a,s=-1,u=-1,c=-1;const h=Bp(e);!function(e){for(const t of Object.keys(e))void 0!==mw[t]||gw.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),gw.add(t));if(e.dailyLearning)for(const t of Object.keys(e.dailyLearning))gw.has(t)||Op.has(t)||(console.warn(`Ignoring unrecognized DailyLearning calendar: ${t}`),gw.add(t))}(e);const d=h[0],g=h[1];l(d).getFullYear()<100&&(e.candlelighting=!1);for(let t=d;t<=g;t++){const h=new de(t),l=h.getFullYear();l!==c&&(c=l,a=Mp(c),e.sedrot&&(i=$v(c,n)),e.omer&&(s=de.hebrew2abs(c,Zp,16),u=de.hebrew2abs(c,$p,5)));const d=o.length,g=h.getDay(),m=g===Up,y=g===xp;let v;const p=a.get(h.toString())||[];for(const t of p)v=bw(v,o,t,e,m,y,r);if(e.sedrot&&y){const e=i.lookup(t);e.chag||o.push(new Vv(h,e.parsha,n,e.num))}if(e.yizkor){const e=h.getMonth(),t=h.getDate();if(e===f.TISHREI&&(10===t||22===t)||e===Zp&&t===(n?21:22)||e===$p&&t===(n?6:7)){const e=p.filter((e=>e.observedIn(n)))[0],t=new Ie(h,"Yizkor",be.YIZKOR,{emoji:"🕯️",linkedEvent:e});o.push(t)}}const w=e.dailyLearning;let S=0;if("object"==typeof w){const e=Ew(h,w,n);S=e.length,S&&o.push(...e)}if(e.omer&&t>=s&&t<=u){const n=Mw(h,t-s+1,e);o.push(n)}if(y&&(e.molad||e.shabbatMevarchim)){const t=Tw(h,e);o.push(...t)}if(!v&&e.candlelighting&&(m||y)&&(v=Ky(void 0,h,e,m,y),m&&v&&i)){const r=i.lookup(t),o=new Vv(h.next(),r.parsha,n,r.num);v.memo=o.render(e.locale)}if(v instanceof Am&&(0===e.havdalahMins||0===e.havdalahDeg)&&(v=void 0),v&&o.push(v),e.addHebrewDates||e.addHebrewDatesForEvents&&d!==o.length-S){const e=new Ee(h);d===o.length?o.push(e):o.splice(d,0,e)}}return o}const Up=5,xp=6,Zp=f.NISAN,$p=f.SIVAN,Vp=f.ELUL,Fp=be.LIGHT_CANDLES,zp=be.YOM_TOV_ENDS,Kp=be.CHUL_ONLY,Gp=be.IL_ONLY,Jp=be.LIGHT_CANDLES_TZEIS,Wp=be.CHANUKAH_CANDLES,qp=be.MINOR_FAST,Xp=be.SPECIAL_SHABBAT,Qp=be.MODERN_HOLIDAY,ew=be.MAJOR_FAST,tw=be.ROSH_CHODESH,nw=be.PARSHA_HASHAVUA,rw=be.DAF_YOMI,ow=be.MISHNA_YOMI,iw=be.NACH_YOMI,aw=be.YERUSHALMI_YOMI,sw=be.OMER_COUNT,uw=be.SHABBAT_MEVARCHIM,cw=be.MINOR_HOLIDAY,hw=be.EREV,lw=be.CHOL_HAMOED,fw=be.YOM_KIPPUR_KATAN,dw=be.YIZKOR,gw=new Set,mw={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,fastEndDeg:1,sedrot:1,il:1,noMinorFast:1,noModern:1,shabbatMevarchim:1,noRoshChodesh:1,noSpecialShabbat:1,noHolidays:1,omer:1,molad:1,ashkenazi:1,locale:1,addHebrewDates:1,addHebrewDatesForEvents:1,mask:1,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1,yizkor:1};const yw={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},vw={281184:40,294801:30,293067:30},pw=8.5,ww=7.0833333;const Sw=Fp|Jp|Wp|zp,Aw=new gm(0,0,!1,"UTC");function bw(e,t,n,r,o,i,a){const s=r.il||!1;if(!n.observedIn(s))return e;const u=n.getFlags();if(!r.yomKippurKatan&&u&fw||r.noModern&&u&Qp)return e;const c=Boolean(u&ew),h=Boolean(u&qp);let l;if(r.candlelighting&&(c||h)&&"Yom Kippur"!==n.getDesc()&&(n=l=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)throw new RangeError("YK does not require this function");const r=e.getDate(),o=r.greg(),i=t.location,a=t.fastEndDeg,s=Boolean(t.useElevation),u=new ym(i,o,s);let c,h;if("Erev Tish'a B'Av"===n){const n=u.sunset();isNaN(n.getTime())||(c=qy(e,n,Gy,t))}else if(n.startsWith("Tish'a B'Av")){const n=u.tzeit(a);isNaN(n.getTime())||(h=qy(e,n,Jy,t))}else{const n=u.alotHaShachar();if(isNaN(n.getTime())||(c=qy(e,n,Gy,t)),5!==o.getDay()&&(14!==r.getDate()||r.getMonth()!==f.NISAN)){const n=u.tzeit(a);isNaN(n.getTime())||(h=qy(e,n,Jy,t))}}const l=new Wy(e,c,h);return Object.assign(l,e),l}(n,r),l.startEvent&&(c||h&&!r.noMinorFast)&&t.push(l.startEvent)),u&Number(r.mask)||!u&&!a){if(r.candlelighting&&u&Sw){const t=n.getDate();if(e=Ky(n,t,r,o,i),u&Wp&&e&&!r.noHolidays){const a=function(e,t,n){const r=n.location,o=Boolean(n.useElevation),i=new ym(r,t.greg(),o).beinHaShmashos();if(isNaN(i.getTime()))return null;const a=new Xy(t,e.getDesc(),e.getFlags(),i,r);return a.emoji=e.emoji,a.chanukahDay=e.chanukahDay,a}(n,t,r);a&&((o||i)&&(a.eventTime=e.eventTime,a.eventTimeStr=e.eventTimeStr),n=a),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&u&fw)&&t.push(n)}return(c||h&&!r.noMinorFast)&&l&&l.endEvent&&t.push(l.endEvent),e}function Tw(e,t){const n=[],r=e.getMonth(),o=e.getDate();if(r!==Vp&&o>=23&&o<=29){const o=e.getFullYear(),i=r===de.monthsInYear(o)?Zp:r+1;if(t.molad&&n.push(new ov(e,o,i,t)),t.shabbatMevarchim){const r=de.getMonthName(i,o),a=new rv(o,i).render(t.locale||"en",t);n.push(new Cp(e,r,a,t.locale))}}return n}function Iw(e,t){return"yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e}function Ew(e,t,n){const r=[];for(const[o,i]of Object.entries(t))if(i){const t=Iw(o,i),a=Op.lookup(t,e,n);a&&r.push(a)}return r}function Mw(e,t,n){const r=new yv(e,t);if(n.candlelighting){const t=n.location,o=new ym(t,e.prev(),!1).tzeit(7.0833);isNaN(o.getTime())||(r.alarm=o)}return r}function Hw(e,t){return 0!==(Xv(e,t)||[]).filter((e=>e.getFlags()&be.CHAG)).length}return e.AsaraBTevetEvent=Uy,e.CandleLightingEvent=Sm,e.ChanukahEvent=xy,e.DailyLearning=Op,e.Event=Ie,e.FastDayEvent=Wy,e.GeoLocation=sm,e.HDate=de,e.HavdalahEvent=Am,e.HebrewCalendar=class{constructor(){}static calendar(e={}){return jp(e)}static getBirthdayOrAnniversary(e,t){const n=function(e,t){const n=P(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=b(r);let i=n.mm,a=n.dd;return i===R&&!o||i===Y&&o?i=T(e):i!==O||30!==a||N(e)?i===_&&30===a&&C(e)?(i=k,a=1):i===R&&30===a&&o&&!b(e)&&(i=D,a=1):(i=_,a=1),{yy:e,mm:i,dd:a}}(e,t);return void 0===n?n:new de(n)}static getYahrzeit(e,t){const n=function(e,t){let n=P(t);if(!(e<=n.yy))return n.mm!==O||30!==n.dd||N(n.yy+1)?n.mm===_&&30===n.dd&&C(n.yy+1)?n=A(w(e,k,1)-1):n.mm===Y?n.mm=T(e):n.mm!==R||30!==n.dd||b(e)||(n.dd=30,n.mm=L):n=A(w(e,_,1)-1),n.mm!==O||30!==n.dd||N(e)?n.mm===_&&30===n.dd&&C(e)&&(n.mm=k,n.dd=1):(n.mm=_,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new de(n)}static getHolidaysForYear(e){return Mp(e)}static getHolidaysForYearArray(e,t){return Hp(e,t)}static getHolidaysOnDate(e,t){return Xv(e,t)}static eruvTavshilin(e,t){if(e.getDay()<3||e.getDay()>4)return!1;const n=new de(e),r=n.after(5),o=n.next();return!(!Hw(r,t)||Hw(n,t)||!Hw(o,t))}static reformatTimeStr(e,t,n){return pm(e,t,n)}static version(){return t}static getSedra(e,t){return $v(e,t)}static hallel(e,t){return function(e,t){const n=e.filter((e=>{const t=e.getDesc(),n=e.getDate(),r=n.getMonth(),o=n.getDate();return t.startsWith("Chanukah")||t.startsWith("Shavuot")||t.startsWith("Sukkot")||r===f.NISAN&&(15===o||16===o)&&e.getFlags()&be.CHAG||"Yom HaAtzma'ut"===t||"Yom Yerushalayim"===t})).map((e=>e.getDate().abs())),r=t.abs();return n.includes(r)?2:e.filter((e=>{const t=e.getDesc();return e.getFlags()&be.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(Hp(e.getFullYear(),t),e)}static tachanun(e,t){return Lp(e,t)}},e.HebrewDateEvent=Ee,e.HolidayEvent=jy,e.Locale=ie,e.Location=gm,e.MevarchimChodeshEvent=Cp,e.Molad=rv,e.MoladEvent=ov,e.NOAACalculator=cm,e.OmerEvent=yv,e.ParshaEvent=Vv,e.RoshChodeshEvent=Vy,e.RoshHashanaEvent=Zy,e.Sedra=wv,e.TimedChanukahEvent=Xy,e.TimedEvent=wm,e.YomKippurKatanEvent=Jv,e.Zmanim=ym,e.flags=be,e.gematriya=x,e.gematriyaStrToNum=Z,e.getHolidaysOnDate=Xv,e.getSedra=$v,e.holidayDesc=Yy,e.months=f,e.parshaYear=function(e,t){const n=$v(e,t),r=n.getFirstSaturday(),o=de.hebrew2abs(e,f.ELUL,29),i=[];for(let e=r;e<=o;e+=7){const r=n.lookup(e);if(!r.chag){const e=new Vv(r.hdate,r.parsha,t,r.num);i.push(e)}}return i},e.parshiot=Sv,e.version=t,e}({});
14
+ /*! @hebcal/hdate v0.14.2, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */const F=new Map;const z=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function K(e,t){const n=function(e){const t=F.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:e});return F.set(e,n),n}(e).format(t),r=z.exec(n);if(null===r)throw new Error(`Unable to parse formatted string: ${n}`);let o=r[4];return"24"===o&&(o="00"),r[3]=$(parseInt(r[3],10)),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function G(e){return $(e.getFullYear())+"-"+V(e.getMonth()+1)+"-"+V(e.getDate())}
15
+ /*! @hebcal/hdate v0.14.2, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */var J={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"en_CA@ashkenazi"},contexts:{"":{Tevet:["Teves"]}}},W={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:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"]}}};
16
+ /*! @hebcal/hdate v0.14.2, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
17
+ /*! @hebcal/hdate v0.14.2, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
18
+ const q={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},X={h:"he",a:"ashkenazi",s:"en","":"en"},Q=new Map;let ee,te;function ne(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function re(e){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);return e.toLowerCase()}function oe(e){const t=re(e),n=Q.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return n}class ie{static lookupTranslation(e,t){const n=("string"==typeof t&&Q.get(t.toLowerCase())||ee)[e];if((null==n?void 0:n.length)&&n[0].length)return n[0]}static gettext(e,t){const n=this.lookupTranslation(e,t);return void 0===n?e:n}static addLocale(e,t){if(e=re(e),"object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);Q.set(e,t.contexts[""])}static addTranslation(e,t,n){const r=oe(e);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id string: ${t}`);const o=Array.isArray(n);if(o){const e=n[0];if("string"!=typeof e||0===e.length)throw new TypeError(`Invalid translation array: ${n}`)}else if("string"!=typeof n)throw new TypeError(`Invalid translation string: ${n}`);r[t]=o?n:[n]}static addTranslations(e,t){const n=oe(e);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const r=t.contexts[""];Object.assign(n,r)}static useLocale(e){const t=re(e),n=oe(t);return te=X[t]||t,ee=n,ee}static getLocaleName(){return te}static getLocaleNames(){return Array.from(Q.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||te;if(!n)return ne(e);switch(n){case"en":case"s":case"a":return ne(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e)}return n.startsWith("ashkenazi")?ne(e):e+"."}static hebrewStripNikkud(e){return e.normalize().replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}ie.addLocale("en",q),ie.addLocale("s",q),ie.addLocale("",q),ie.useLocale("en"),ie.addLocale("ashkenazi",J),ie.addLocale("a",J),ie.addLocale("he",W),ie.addLocale("h",W);const ae=W.contexts[""],se={};for(const[e,t]of Object.entries(ae))se[e]=[ie.hebrewStripNikkud(t[0])];const ue={headers:W.headers,contexts:{"":se}};ie.addLocale("he-x-NoNikud",ue);const ce="day",he="week",le="month",fe="year";class de{constructor(e,t,n){if(2===arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3===arguments.length){this.dd=this.mm=1;const i="string"==typeof n?parseInt(n,10):n;if(isNaN(i))throw new TypeError(`HDate called with bad year: ${n}`);this.yy=i,function(e,t){e.mm=de.monthNum(t),ge(e)}(this,t);const a="string"==typeof e?parseInt(e,10):e;if(isNaN(a))throw new TypeError(`HDate called with bad day: ${e}`);o=a,(r=this).dd=o,ge(r)}else{null==e&&(e=new Date);const t="number"!=typeof e||isNaN(e)?u(e)?h(e):void 0!==e.yy?e:null:e;if(null===t)throw new TypeError(`HDate called with bad arg: ${e}`);const n="number"==typeof t,r=n?A(t):t;this.yy=r.yy,this.mm=r.mm,this.dd=r.dd,n&&(this.rd=t)}var r,o}getFullYear(){return this.yy}isLeapYear(){return b(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=T(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return E(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){
19
+ /*! @hebcal/hdate v0.14.2, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
20
+ return function(e,t){return e-t*Math.floor(e/t)}(this.abs(),7)}greg(){return l(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=w(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return w(e,t,n)}getMonthName(){return I(this.getMonth(),this.getFullYear())}render(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=e||ie.getLocaleName(),r=this.getDate(),o=ie.gettext(this.getMonthName(),n).replace(/'/g,"’"),i=ie.ordinal(r,n),a=function(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const t=ie.lookupTranslation("of",e);if(t)return" "+t;if(e.startsWith("ashkenazi"))return" of";return""}(n),s=`${i}${a} ${o}`;if(t){return`${s}, ${this.getFullYear()}`}return s}renderGematriya(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.getDate(),n=e?"he-x-NoNikud":"he",r=ie.gettext(this.getMonthName(),n),o=this.getFullYear();return x(t)+" "+r+" "+x(o)}before(e){return ye(e,this,-1)}onOrBefore(e){return ye(e,this,0)}nearest(e){return ye(e,this,3)}onOrAfter(e){return ye(e,this,6)}after(e){return ye(e,this,7)}next(){return new de(this.abs()+1)}prev(){return new de(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e="string"==typeof e?parseInt(e,10):e))return new de(this);if(t=function(e){switch(e){case"d":return ce;case"w":return he;case"M":return le;case"y":return fe}const t=String(e||"").toLowerCase().replace(/s$/,"");switch(t){case ce:case he:case le:case fe:return t}throw new TypeError(`Invalid units '${e}'`)}(t),t===ce)return new de(this.abs()+e);if(t===he)return new de(this.abs()+7*e);if(t===fe)return new de(this.getDate(),this.getMonth(),this.getFullYear()+e);{let t=new de(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new de(t.abs()+n*t.daysInMonth());return t}}subtract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}deltaDays(e){return this.abs()-e.abs()}isSameDate(e){return this.yy===e.yy&&this.mm===e.mm&&this.dd===e.dd}toString(){const e=this.getDate(),t=this.getFullYear();return`${e} ${this.getMonthName()} ${t}`}static isLeapYear(e){return b(e)}static monthsInYear(e){return T(e)}static daysInMonth(e,t){return E(e,t)}static getMonthName(e,t){return I(e,t)}static monthNum(e){if("number"==typeof e){if(isNaN(e)||e>14)throw new RangeError(`bad monthNum: ${e}`);return e}return e.charCodeAt(0)>=48&&e.charCodeAt(0)<=57?parseInt(e,10):de.monthFromName(e)}static daysInYear(e){return N(e)}static longCheshvan(e){return H(e)}static shortKislev(e){return C(e)}static monthFromName(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`bad monthName: ${e}`);return e}return function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`bad monthName: ${e}`);return e}let t=e.trim().toLowerCase();switch("ב"===t[0]&&(t=t.substring(1)),t[0]){case"n":case"נ":if("o"===t[1])break;return 1;case"i":return 2;case"e":return 6;case"c":case"ח":return 8;case"k":case"כ":return 9;case"s":switch(t[1]){case"i":return 3;case"h":return 11}break;case"t":switch(t[1]){case"a":return 4;case"i":return 7;case"e":return 10}break;case"a":switch(t[1]){case"v":return 5;case"d":return/(1|[^i]i|a|א)$/i.test(e)?12:13}break;case"ס":return 3;case"ט":return 10;case"ש":return 11;case"א":switch(t[1]){case"ב":return 5;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?12:13;case"י":return 2;case"ל":return 6}break;case"ת":switch(t[1]){case"מ":return 4;case"ש":return 7}}throw new RangeError(`bad monthName: ${e}`)}(ie.hebrewStripNikkud(e))}static dayOnOrBefore(e,t){return t-(t-e)%7}static isHDate(e){return null!==e&&"object"==typeof e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd&&"function"==typeof e.greg&&"function"==typeof e.abs}static fromGematriyaString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;const n=e.split(" ").filter((e=>0!==e.length)),r=n.length;if(3!==r&&4!==r)throw new RangeError(`cannot parse gematriya str: "${e}"`);const o=Z(n[0]),i=3===r?n[1]:n[1]+" "+n[2],a=de.monthFromName(i);let s=Z(3===r?n[2]:n[3]);return s<1e3&&(s+=t),new de(o,a,s)}}function ge(e){me(e),function(e){e.dd<1&&(e.mm===f.TISHREI&&(e.yy-=1),e.dd+=E(e.mm,e.yy),e.mm-=1,ge(e));e.dd>E(e.mm,e.yy)&&(e.mm===f.ELUL&&(e.yy+=1),e.dd-=E(e.mm,e.yy),e.mm===T(e.yy)?e.mm=1:e.mm+=1,ge(e));me(e)}(e)}function me(e){e.mm!==f.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=T(e.yy),e.yy-=1,ge(e)):e.mm>T(e.yy)&&(e.mm-=T(e.yy),e.yy+=1,ge(e)):(e.mm-=1,ge(e)),delete e.rd}function ye(e,t,n){return new de(de.dayOnOrBefore(e,t.abs()+n))}var ve={headers:{"plural-forms":"nplurals=2; plural=(n > 1);",language:"en_CA@ashkenazi"},contexts:{"":{Shabbat:["Shabbos"],"Achrei Mot":["Achrei Mos"],Bechukotai:["Bechukosai"],"Beha'alotcha":["Beha’aloscha"],Bereshit:["Bereshis"],Chukat:["Chukas"],"Erev Shavuot":["Erev Shavuos"],"Erev Sukkot":["Erev Sukkos"],"Ki Tavo":["Ki Savo"],"Ki Teitzei":["Ki Seitzei"],"Ki Tisa":["Ki Sisa"],Matot:["Matos"],"Purim Katan":["Purim Koton"],"Shabbat Chazon":["Shabbos Chazon"],"Shabbat HaChodesh":["Shabbos HaChodesh"],"Shabbat HaGadol":["Shabbos HaGadol"],"Shabbat Nachamu":["Shabbos Nachamu"],"Shabbat Parah":["Shabbos Parah"],"Shabbat Shekalim":["Shabbos Shekalim"],"Shabbat Shuva":["Shabbos Shuvah"],"Shabbat Zachor":["Shabbos Zachor"],Shavuot:["Shavuos"],"Shavuot I":["Shavuos I"],"Shavuot II":["Shavuos II"],Shemot:["Shemos"],"Shmini Atzeret":["Shmini Atzeres"],"Simchat Torah":["Simchas Torah"],Sukkot:["Sukkos"],"Sukkot I":["Sukkos I"],"Sukkot II":["Sukkos II"],"Sukkot II (CH''M)":["Sukkos II (CH’’M)"],"Sukkot III (CH''M)":["Sukkos III (CH’’M)"],"Sukkot IV (CH''M)":["Sukkos IV (CH’’M)"],"Sukkot V (CH''M)":["Sukkos V (CH’’M)"],"Sukkot VI (CH''M)":["Sukkos VI (CH’’M)"],"Sukkot VII (Hoshana Raba)":["Sukkos VII (Hoshana Raba)"],"Ta'anit Bechorot":["Ta’anis Bechoros"],"Ta'anit Esther":["Ta’anis Esther"],Toldot:["Toldos"],Vaetchanan:["Vaeschanan"],Yitro:["Yisro"],"Vezot Haberakhah":["Vezos Haberakhah"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"],"Asara B'Tevet":["Asara B’Teves"],"Alot HaShachar":["Alos HaShachar"],"Kriat Shema, sof zeman":["Krias Shema, sof zman"],"Tefilah, sof zeman":["Tefilah, sof zman"],"Kriat Shema, sof zeman (MGA)":["Krias Shema, sof zman (MGA)"],"Tefilah, sof zeman (MGA)":["Tefilah, sof zman (MGA)"],"Chatzot HaLailah":["Chatzos HaLailah"],"Chatzot hayom":["Chatzos"],"Tzeit HaKochavim":["Tzeis HaKochavim"],"Birkat Hachamah":["Birkas Hachamah"],"Shushan Purim Katan":["Shushan Purim Koton"]}}},pe={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":["פֶּסַח ח׳"],Purim:["פּוּרִים"],"Purim Katan":["פּוּרִים קָטָן"],"Rosh Chodesh %s":["רֹאשׁ חוֹדֶשׁ %s"],"Rosh Chodesh":["רֹאשׁ חוֹדֶשׁ"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבָּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבָּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבָּת הַגָּדוֹל"],"Shabbat Nachamu":["שַׁבָּת נַחֲמוּ"],"Shabbat Parah":["שַׁבָּת פּרה"],"Shabbat Shekalim":["שַׁבָּת שְׁקָלִים"],"Shabbat Shuva":["שַׁבָּת שׁוּבָה"],"Shabbat Zachor":["שַׁבָּת זָכוֹר"],Shavuot:["שָׁבוּעוֹת"],"Shavuot I":["שָׁבוּעוֹת א׳"],"Shavuot II":["שָׁבוּעוֹת ב׳"],"Shmini Atzeret":["שְׁמִינִי עֲצֶרֶת"],"Shushan Purim":["שׁוּשָׁן פּוּרִים"],Sigd:["סיגד"],"Simchat Torah":["שִׂמְחַת תּוֹרָה"],Sukkot:["סוּכּוֹת"],"Sukkot I":["סוּכּוֹת א׳"],"Sukkot II":["סוּכּוֹת ב׳"],"Sukkot II (CH''M)":["סוּכּוֹת ב׳ (חוה״מ)"],"Sukkot III (CH''M)":["סוּכּוֹת ג׳ (חוה״מ)"],"Sukkot IV (CH''M)":["סוּכּוֹת ד׳ (חוה״מ)"],"Sukkot V (CH''M)":["סוּכּוֹת ה׳ (חוה״מ)"],"Sukkot VI (CH''M)":["סוּכּוֹת ו׳ (חוה״מ)"],"Sukkot VII (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit Esther":["תַּעֲנִית אֶסְתֵּר"],"Tish'a B'Av":["תִּשְׁעָה בְּאָב"],"Tu B'Av":["טוּ בְּאָב"],"Tu BiShvat":["טוּ בִּשְׁבָט"],"Tu B'Shvat":["טוּ בִּשְׁבָט"],"Tzom Gedaliah":["צוֹם גְּדַלְיָה"],"Tzom Tammuz":["צוֹם תָּמוּז"],"Yom HaAtzma'ut":["יוֹם הָעַצְמָאוּת"],"Yom HaShoah":["יוֹם הַשּׁוֹאָה"],"Yom HaZikaron":["יוֹם הַזִּכָּרוֹן"],"Yom Kippur":["יוֹם כִּפּוּר"],"Yom Yerushalayim":["יוֹם יְרוּשָׁלַיִם"],"Yom HaAliyah":["יוֹם הַעֲלִיָּה"],"Yom HaAliyah School Observance":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"Rosh Chodesh Adar":["רֹאשׁ חוֹדֶשׁ אַדָר"],"Rosh Chodesh Adar I":["רֹאשׁ חוֹדֶשׁ אַדָר א׳"],"Rosh Chodesh Adar II":["רֹאשׁ חוֹדֶשׁ אַדָר ב׳"],"Rosh Chodesh Av":["רֹאשׁ חוֹדֶשׁ אָב"],"Rosh Chodesh Cheshvan":["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"],"Rosh Chodesh Elul":["רֹאשׁ חוֹדֶשׁ אֱלוּל"],"Rosh Chodesh Iyyar":["רֹאשׁ חוֹדֶשׁ אִיָיר"],"Rosh Chodesh Kislev":["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"],"Rosh Chodesh Nisan":["רֹאשׁ חוֹדֶשׁ נִיסָן"],"Rosh Chodesh Sh'vat":["רֹאשׁ חוֹדֶשׁ שְׁבָט"],"Rosh Chodesh Sivan":["רֹאשׁ חוֹדֶשׁ סִיוָן"],"Rosh Chodesh Tamuz":["רֹאשׁ חוֹדֶשׁ תָּמוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דַּקּוֹת"],"Fast begins":["תחילת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["תִּשְׁעָה בְּאָב נִדחֶה"],"Shabbat Mevarchim Chodesh":["שַׁבָּת מְבָרְכִים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבָּת שִׁירָה"],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":["בִרְכַּת הַחַמָּה"],"Shushan Purim Katan":["שׁוּשָׁן פּוּרִים קָטָן"],"Purim Meshulash":["פּוּרִים מְשׁוּלָּשׁ"],"Chag HaBanot":["חַג הַבָּנוֹת"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"]}}};ie.addTranslations("he",pe),ie.addTranslations("h",pe),ie.addTranslations("ashkenazi",ve),ie.addTranslations("a",ve);const we=pe.contexts[""],Se={};for(const[e,t]of Object.entries(we))Se[e]=[ie.hebrewStripNikkud(t[0])];const Ae={headers:pe.headers,contexts:{"":Se}};ie.addTranslations("he-x-NoNikud",Ae),ie.addTranslations("he-x-NoNikud",{headers:{"plural-forms":"nplurals=2; plural=(n != 1);",language:"he-x-NoNikud"},contexts:{"":{Korach:["קורח"]}}});const be={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},Te=[[be.MAJOR_FAST,"holiday","major","fast"],[be.CHANUKAH_CANDLES,"holiday","major"],[be.HEBREW_DATE,"hebdate"],[be.MINOR_FAST,"holiday","fast"],[be.MINOR_HOLIDAY,"holiday","minor"],[be.MODERN_HOLIDAY,"holiday","modern"],[be.MOLAD,"molad"],[be.OMER_COUNT,"omer"],[be.PARSHA_HASHAVUA,"parashat"],[be.ROSH_CHODESH,"roshchodesh"],[be.SHABBAT_MEVARCHIM,"mevarchim"],[be.SPECIAL_SHABBAT,"holiday","shabbat"],[be.USER_EVENT,"user"],[be.YIZKOR,"yizkor"]];class Ee{constructor(e,t,n=0,r){if(!de.isHDate(e))throw new TypeError(`Invalid Event date: ${e}`);if("string"!=typeof t)throw new TypeError(`Invalid Event description: ${t}`);this.date=e,this.desc=t,this.mask=+n,"object"==typeof r&&null!==r&&Object.assign(this,r)}getDate(){return this.date}getDesc(){return this.desc}getFlags(){return this.mask}render(e){return ie.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&be.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&be.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new Ee(this.date,this.desc,this.mask);return Object.assign(e,this),e}getCategories(){const e=this.getFlags();for(const t of Te){if(e&t[0])return t.slice(1)}return["unknown"]}}class Ie extends Ee{constructor(e){super(e,e.toString(),be.HEBREW_DATE)}render(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:ie.getLocaleName(),r=this.getDate();switch(n){case"h":case"he":return r.renderGematriya(!1);case"he-x-nonikud":return r.renderGematriya(!0);default:return r.render(n,!0)}}renderBriefHebrew(e){const t=this.getDate(),n=t.getDate(),r=ie.gettext(t.getMonthName(),e);return x(n)+" "+r}renderBrief(e){const t=null==e?void 0:e.toLowerCase(),n=null!=t?t:ie.getLocaleName(),r=this.getDate();if(r.getMonth()===f.TISHREI&&1===r.getDate())return this.render(n);switch(n){case"h":case"he":case"he-x-nonikud":return this.renderBriefHebrew(n);default:return r.render(n,!1)}}}var Me,Ne,He="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ce={};function De(){if(Ne)return Me;Ne=1;var e=function(e){return e&&e.Math===Math&&e};return Me=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof He&&He)||e("object"==typeof Me&&Me)||function(){return this}()||Function("return this")()}var Oe,_e,ke,Le,Re,Ye,Be,Pe,je={};function Ue(){return _e?Oe:(_e=1,Oe=function(e){try{return!!e()}catch(e){return!0}})}function xe(){if(Le)return ke;Le=1;var e=Ue();return ke=!e((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function Ze(){if(Ye)return Re;Ye=1;var e=Ue();return Re=!e((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))}function $e(){if(Pe)return Be;Pe=1;var e=Ze(),t=Function.prototype.call;return Be=e?t.bind(t):function(){return t.apply(t,arguments)},Be}var Ve,Fe,ze,Ke,Ge,Je,We,qe,Xe,Qe,et,tt,nt,rt,ot,it,at,st,ut,ct,ht,lt,ft,dt,gt,mt,yt,vt,pt,wt,St,At,bt,Tt,Et,It,Mt,Nt,Ht,Ct,Dt,Ot={};function _t(){return ze?Fe:(ze=1,Fe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function kt(){if(Ge)return Ke;Ge=1;var e=Ze(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return Ke=e?r:function(e){return function(){return n.apply(e,arguments)}},Ke}function Lt(){if(Xe)return qe;Xe=1;var e=kt(),t=Ue(),n=function(){if(We)return Je;We=1;var e=kt(),t=e({}.toString),n=e("".slice);return Je=function(e){return n(t(e),8,-1)},Je}(),r=Object,o=e("".split);return qe=t((function(){return!r("z").propertyIsEnumerable(0)}))?function(e){return"String"===n(e)?o(e,""):r(e)}:r,qe}function Rt(){return et||(et=1,Qe=function(e){return null==e}),Qe}function Yt(){if(nt)return tt;nt=1;var e=Rt(),t=TypeError;return tt=function(n){if(e(n))throw new t("Can't call method on "+n);return n},tt}function Bt(){if(ot)return rt;ot=1;var e=Lt(),t=Yt();return rt=function(n){return e(t(n))},rt}function Pt(){if(at)return it;at=1;var e="object"==typeof document&&document.all;return it=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function jt(){if(ut)return st;ut=1;var e=Pt();return st=function(t){return"object"==typeof t?null!==t:e(t)},st}function Ut(){if(ht)return ct;ht=1;var e=De(),t=Pt();return ct=function(n,r){return arguments.length<2?(o=e[n],t(o)?o:void 0):e[n]&&e[n][r];var o},ct}function xt(){if(yt)return mt;yt=1;var e,t,n=De(),r=function(){if(gt)return dt;gt=1;var e=De().navigator,t=e&&e.userAgent;return dt=t?String(t):""}(),o=n.process,i=n.Deno,a=o&&o.versions||i&&i.version,s=a&&a.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),mt=t}function Zt(){if(pt)return vt;pt=1;var e=xt(),t=Ue(),n=De().String;return vt=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))}function $t(){if(St)return wt;St=1;var e=Zt();return wt=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Vt(){if(bt)return At;bt=1;var e=Ut(),t=Pt(),n=function(){if(ft)return lt;ft=1;var e=kt();return lt=e({}.isPrototypeOf)}(),r=$t(),o=Object;return At=r?function(e){return"symbol"==typeof e}:function(r){var i=e("Symbol");return t(i)&&n(i.prototype,o(r))},At}function Ft(){if(Et)return Tt;Et=1;var e=String;return Tt=function(t){try{return e(t)}catch(e){return"Object"}}}function zt(){if(Mt)return It;Mt=1;var e=Pt(),t=Ft(),n=TypeError;return It=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function Kt(){if(Ht)return Nt;Ht=1;var e=zt(),t=Rt();return Nt=function(n,r){var o=n[r];return t(o)?void 0:e(o)},Nt}function Gt(){if(Dt)return Ct;Dt=1;var e=$e(),t=Pt(),n=jt(),r=TypeError;return Ct=function(o,i){var a,s;if("string"===i&&t(a=o.toString)&&!n(s=e(a,o)))return s;if(t(a=o.valueOf)&&!n(s=e(a,o)))return s;if("string"!==i&&t(a=o.toString)&&!n(s=e(a,o)))return s;throw new r("Can't convert object to primitive value")},Ct}var Jt,Wt,qt,Xt,Qt,en,tn,nn,rn,on,an,sn,un,cn,hn,ln,fn,dn,gn,mn,yn,vn,pn,wn,Sn={exports:{}};function An(){if(Xt)return qt;Xt=1;var e=De(),t=Object.defineProperty;return qt=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function bn(){if(Qt)return Sn.exports;Qt=1;var e=Wt?Jt:(Wt=1,Jt=!1),t=De(),n=An(),r="__core-js_shared__",o=Sn.exports=t[r]||n(r,{});return(o.versions||(o.versions=[])).push({version:"3.43.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Sn.exports}function Tn(){if(tn)return en;tn=1;var e=bn();return en=function(t,n){return e[t]||(e[t]=n||{})}}function En(){if(rn)return nn;rn=1;var e=Yt(),t=Object;return nn=function(n){return t(e(n))}}function In(){if(an)return on;an=1;var e=kt(),t=En(),n=e({}.hasOwnProperty);return on=Object.hasOwn||function(e,r){return n(t(e),r)},on}function Mn(){if(un)return sn;un=1;var e=kt(),t=0,n=Math.random(),r=e(1.1.toString);return sn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function Nn(){if(hn)return cn;hn=1;var e=De(),t=Tn(),n=In(),r=Mn(),o=Zt(),i=$t(),a=e.Symbol,s=t("wks"),u=i?a.for||a:a&&a.withoutSetter||r;return cn=function(e){return n(s,e)||(s[e]=o&&n(a,e)?a[e]:u("Symbol."+e)),s[e]}}function Hn(){if(fn)return ln;fn=1;var e=$e(),t=jt(),n=Vt(),r=Kt(),o=Gt(),i=Nn(),a=TypeError,s=i("toPrimitive");return ln=function(i,u){if(!t(i)||n(i))return i;var c,h=r(i,s);if(h){if(void 0===u&&(u="default"),c=e(h,i,u),!t(c)||n(c))return c;throw new a("Can't convert object to primitive value")}return void 0===u&&(u="number"),o(i,u)}}function Cn(){if(gn)return dn;gn=1;var e=Hn(),t=Vt();return dn=function(n){var r=e(n,"string");return t(r)?r:r+""}}function Dn(){if(yn)return mn;yn=1;var e=De(),t=jt(),n=e.document,r=t(n)&&t(n.createElement);return mn=function(e){return r?n.createElement(e):{}},mn}function On(){if(pn)return vn;pn=1;var e=xe(),t=Ue(),n=Dn();return vn=!e&&!t((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function _n(){if(wn)return je;wn=1;var e=xe(),t=$e(),n=function(){if(Ve)return Ot;Ve=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return Ot.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,Ot}(),r=_t(),o=Bt(),i=Cn(),a=In(),s=On(),u=Object.getOwnPropertyDescriptor;return je.f=e?u:function(e,c){if(e=o(e),c=i(c),s)try{return u(e,c)}catch(e){}if(a(e,c))return r(!t(n.f,e,c),e[c])},je}var kn,Ln,Rn,Yn,Bn,Pn,jn,Un={};function xn(){if(Ln)return kn;Ln=1;var e=xe(),t=Ue();return kn=e&&t((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}function Zn(){if(Yn)return Rn;Yn=1;var e=jt(),t=String,n=TypeError;return Rn=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function $n(){if(Bn)return Un;Bn=1;var e=xe(),t=On(),n=xn(),r=Zn(),o=Cn(),i=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",h="writable";return Un.f=e?n?function(e,t,n){if(r(e),t=o(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var i=s(e,t);i&&i[h]&&(e[t]=n.value,n={configurable:c in n?n[c]:i[c],enumerable:u in n?n[u]:i[u],writable:!1})}return a(e,t,n)}:a:function(e,n,s){if(r(e),n=o(n),r(s),t)try{return a(e,n,s)}catch(e){}if("get"in s||"set"in s)throw new i("Accessors not supported");return"value"in s&&(e[n]=s.value),e},Un}function Vn(){if(jn)return Pn;jn=1;var e=xe(),t=$n(),n=_t();return Pn=e?function(e,r,o){return t.f(e,r,n(1,o))}:function(e,t,n){return e[t]=n,e}}var Fn,zn,Kn,Gn,Jn,Wn,qn,Xn,Qn,er,tr,nr,rr,or,ir,ar={exports:{}};function sr(){if(Gn)return Kn;Gn=1;var e=kt(),t=Pt(),n=bn(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),Kn=n.inspectSource}function ur(){if(Xn)return qn;Xn=1;var e=Tn(),t=Mn(),n=e("keys");return qn=function(e){return n[e]||(n[e]=t(e))}}function cr(){return er?Qn:(er=1,Qn={})}function hr(){if(nr)return tr;nr=1;var e,t,n,r=function(){if(Wn)return Jn;Wn=1;var e=De(),t=Pt(),n=e.WeakMap;return Jn=t(n)&&/native code/.test(String(n))}(),o=De(),i=jt(),a=Vn(),s=In(),u=bn(),c=ur(),h=cr(),l="Object already initialized",f=o.TypeError,d=o.WeakMap;if(r||u.state){var g=u.state||(u.state=new d);g.get=g.get,g.has=g.has,g.set=g.set,e=function(e,t){if(g.has(e))throw new f(l);return t.facade=e,g.set(e,t),t},t=function(e){return g.get(e)||{}},n=function(e){return g.has(e)}}else{var m=c("state");h[m]=!0,e=function(e,t){if(s(e,m))throw new f(l);return t.facade=e,a(e,m,t),t},t=function(e){return s(e,m)?e[m]:{}},n=function(e){return s(e,m)}}return tr={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!i(n)||(r=t(n)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}},tr}function lr(){if(rr)return ar.exports;rr=1;var e=kt(),t=Ue(),n=Pt(),r=In(),o=xe(),i=function(){if(zn)return Fn;zn=1;var e=xe(),t=In(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,o=t(n,"name"),i=o&&"something"===function(){}.name,a=o&&(!e||e&&r(n,"name").configurable);return Fn={EXISTS:o,PROPER:i,CONFIGURABLE:a}}().CONFIGURABLE,a=sr(),s=hr(),u=s.enforce,c=s.get,h=String,l=Object.defineProperty,f=e("".slice),d=e("".replace),g=e([].join),m=o&&!t((function(){return 8!==l((function(){}),"length",{value:8}).length})),y=String(String).split("String"),v=ar.exports=function(e,t,n){"Symbol("===f(h(t),0,7)&&(t="["+d(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!r(e,"name")||i&&e.name!==t)&&(o?l(e,"name",{value:t,configurable:!0}):e.name=t),m&&n&&r(n,"arity")&&e.length!==n.arity&&l(e,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&l(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var a=u(e);return r(a,"source")||(a.source=g(y,"string"==typeof t?t:"")),e};return Function.prototype.toString=v((function(){return n(this)&&c(this).source||a(this)}),"toString"),ar.exports}function fr(){if(ir)return or;ir=1;var e=Pt(),t=$n(),n=lr(),r=An();return or=function(o,i,a,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:i;if(e(a)&&n(a,c,s),s.global)u?o[i]=a:r(i,a);else{try{s.unsafe?o[i]&&(u=!0):delete o[i]}catch(e){}u?o[i]=a:t.f(o,i,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return o},or}var dr,gr,mr,yr,vr,pr,wr,Sr,Ar,br,Tr,Er,Ir,Mr,Nr,Hr,Cr,Dr={};function Or(){if(yr)return mr;yr=1;var e=function(){if(gr)return dr;gr=1;var e=Math.ceil,t=Math.floor;return dr=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},dr}();return mr=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function _r(){if(pr)return vr;pr=1;var e=Or(),t=Math.max,n=Math.min;return vr=function(r,o){var i=e(r);return i<0?t(i+o,0):n(i,o)}}function kr(){if(Sr)return wr;Sr=1;var e=Or(),t=Math.min;return wr=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function Lr(){if(br)return Ar;br=1;var e=kr();return Ar=function(t){return e(t.length)}}function Rr(){if(Er)return Tr;Er=1;var e=Bt(),t=_r(),n=Lr(),r=function(r){return function(o,i,a){var s=e(o),u=n(s);if(0===u)return!r&&-1;var c,h=t(a,u);if(r&&i!=i){for(;u>h;)if((c=s[h++])!=c)return!0}else for(;u>h;h++)if((r||h in s)&&s[h]===i)return r||h||0;return!r&&-1}};return Tr={includes:r(!0),indexOf:r(!1)}}function Yr(){if(Mr)return Ir;Mr=1;var e=kt(),t=In(),n=Bt(),r=Rr().indexOf,o=cr(),i=e([].push);return Ir=function(e,a){var s,u=n(e),c=0,h=[];for(s in u)!t(o,s)&&t(u,s)&&i(h,s);for(;a.length>c;)t(u,s=a[c++])&&(~r(h,s)||i(h,s));return h},Ir}function Br(){return Hr?Nr:(Hr=1,Nr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Pr,jr,Ur,xr,Zr,$r,Vr,Fr,zr,Kr={};function Gr(){if(Ur)return jr;Ur=1;var e=Ut(),t=kt(),n=function(){if(Cr)return Dr;Cr=1;var e=Yr(),t=Br().concat("length","prototype");return Dr.f=Object.getOwnPropertyNames||function(n){return e(n,t)},Dr}(),r=(Pr||(Pr=1,Kr.f=Object.getOwnPropertySymbols),Kr),o=Zn(),i=t([].concat);return jr=e("Reflect","ownKeys")||function(e){var t=n.f(o(e)),a=r.f;return a?i(t,a(e)):t},jr}function Jr(){if(Zr)return xr;Zr=1;var e=In(),t=Gr(),n=_n(),r=$n();return xr=function(o,i,a){for(var s=t(i),u=r.f,c=n.f,h=0;h<s.length;h++){var l=s[h];e(o,l)||a&&e(a,l)||u(o,l,c(i,l))}},xr}function Wr(){if(zr)return Fr;zr=1;var e=De(),t=_n().f,n=Vn(),r=fr(),o=An(),i=Jr(),a=function(){if(Vr)return $r;Vr=1;var e=Ue(),t=Pt(),n=/#|\.prototype\./,r=function(n,r){var u=i[o(n)];return u===s||u!==a&&(t(r)?e(r):!!r)},o=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},i=r.data={},a=r.NATIVE="N",s=r.POLYFILL="P";return $r=r}();return Fr=function(s,u){var c,h,l,f,d,g=s.target,m=s.global,y=s.stat;if(c=m?e:y?e[g]||o(g,{}):e[g]&&e[g].prototype)for(h in u){if(f=u[h],l=s.dontCallGetSet?(d=t(c,h))&&d.value:c[h],!a(m?h:g+(y?".":"#")+h,s.forced)&&void 0!==l){if(typeof f==typeof l)continue;i(f,l)}(s.sham||l&&l.sham)&&n(f,"sham",!0),r(c,h,f,s)}}}var qr,Xr,Qr,eo,to,no,ro,oo,io,ao,so={};function uo(){if(Xr)return qr;Xr=1;var e=Yr(),t=Br();return qr=Object.keys||function(n){return e(n,t)},qr}function co(){if(to)return eo;to=1;var e=Ut();return eo=e("document","documentElement")}function ho(){if(ro)return no;ro=1;var e,t=Zn(),n=function(){if(Qr)return so;Qr=1;var e=xe(),t=xn(),n=$n(),r=Zn(),o=Bt(),i=uo();return so.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var a,s=o(t),u=i(t),c=u.length,h=0;c>h;)n.f(e,a=u[h++],s[a]);return e},so}(),r=Br(),o=cr(),i=co(),a=Dn(),s=ur(),u="prototype",c="script",h=s("IE_PROTO"),l=function(){},f=function(e){return"<"+c+">"+e+"</"+c+">"},d=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,n,o;g="undefined"!=typeof document?document.domain&&e?d(e):(n=a("iframe"),o="java"+c+":",n.style.display="none",i.appendChild(n),n.src=String(o),(t=n.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):d(e);for(var s=r.length;s--;)delete g[u][r[s]];return g()};return o[h]=!0,no=Object.create||function(e,r){var o;return null!==e?(l[u]=t(e),o=new l,l[u]=null,o[h]=e):o=g(),void 0===r?o:n.f(o,r)},no}function lo(){if(io)return oo;io=1;var e=Nn(),t=ho(),n=$n().f,r=e("unscopables"),o=Array.prototype;return void 0===o[r]&&n(o,r,{configurable:!0,value:t(null)}),oo=function(e){o[r][e]=!0}}function fo(e,t,n,r,o){return go(t,((e,t)=>{const n=e[t];if(void 0===n)throw new TypeError(kc(t));return n})(e,t),n,r,o)}function go(e,t,n,r,o,i){const a=Lo(t,n,r);if(o&&t!==a)throw new RangeError(Oc(e,t,n,r,i));return a}function mo(e){return null!==e&&/object|function/.test(typeof e)}function yo(e){const t=new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Map);return function(n){if(t.has(n))return t.get(n);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];const a=e(n,...o);return t.set(n,a),a}}function vo(e){return po({name:e},1)}function po(e,t){return bo((e=>({value:e,configurable:1,writable:!t})),e)}function wo(e){return bo((e=>({get:e,configurable:1})),e)}function So(e){return{[Symbol.toStringTag]:{value:e,configurable:1}}}function Ao(e,t){const n={};let r=e.length;for(const o of t)n[e[--r]]=o;return n}function bo(e,t,n){const r={};for(const o in t)r[o]=e(t[o],o,n);return r}function To(e,t,n){const r={};for(let o=0;o<t.length;o++){const i=t[o];r[i]=e(i,o,n)}return r}function Eo(e,t,n){const r={};for(let o=0;o<e.length;o++)r[t[o]]=n[e[o]];return r}function Io(e,t){const n=Object.create(null);for(const r of e)n[r]=t[r];return n}function Mo(e,t){for(const n of t)if(n in e)return 1;return 0}function No(e,t,n){for(const r of e)if(t[r]!==n[r])return 0;return 1}function Ho(e,t,n){const r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function Co(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e(...n,...r)}}function Do(e){return e[0].toUpperCase()+e.substring(1)}function Oo(e){return e.slice().sort()}function _o(e,t){return String(t).padStart(e,"0")}function ko(e,t){return Math.sign(e-t)}function Lo(e,t,n){return Math.min(Math.max(e,t),n)}function Ro(e,t){return[Math.floor(e/t),Yo(e,t)]}function Yo(e,t){return(e%t+t)%t}function Bo(e,t){return[Po(e,t),jo(e,t)]}function Po(e,t){return Math.trunc(e/t)||0}function jo(e,t){return e%t||0}function Uo(e){return.5===Math.abs(e%1)}function xo(e,t,n){let r=0,o=0;for(let i=0;i<=t;i++){const t=e[n[i]],a=Hh[i],s=Nh/a,[u,c]=Bo(t,s);r+=c*a,o+=u}const[i,a]=Bo(r,Nh);return[o+i,a]}function Zo(e,t,n){const r={};for(let o=t;o>=0;o--){const t=Hh[o];r[n[o]]=Po(e,t),e=jo(e,t)}return r}function $o(e){if(void 0!==e)return Fo(e)}function Vo(e){return Wo(Fo(e))}function Fo(e){return Jo(tl(e))}function zo(e,t){if(null==t)throw new RangeError(kc(e));return t}function Ko(e){if(!mo(e))throw new TypeError(Dc);return e}function Go(e,t){if(typeof t!==e)throw new TypeError(_c(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,t));return t}function Jo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if(!Number.isInteger(e))throw new RangeError(Ec(t,e));return e||0}function Wo(e){if(e<=0)throw new RangeError(Ic(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number",e));return e}function qo(e){if("symbol"==typeof e)throw new TypeError(Cc);return String(e)}function Xo(e,t){return mo(e)?String(e):Qh(e,t)}function Qo(e){if("string"==typeof e)return BigInt(e);if("bigint"!=typeof e)throw new TypeError(Hc(e));return e}function ei(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"number";if("bigint"==typeof e)throw new TypeError(Nc(t));if(e=Number(e),!Number.isFinite(e))throw new RangeError(Mc(t,e));return e}function ti(e,t){return Math.trunc(ei(e,t))||0}function ni(e,t){return Jo(ei(e,t),t)}function ri(e,t){return Wo(ti(e,t),t)}function oi(e,t){let[n,r]=Bo(t,Nh),o=e+n;const i=Math.sign(o);return i&&i===-Math.sign(r)&&(o-=i,r+=i*Nh),[o,r]}function ii(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return oi(e[0]+t[0]*n,e[1]+t[1]*n)}function ai(e,t){return oi(e[0],e[1]+t)}function si(e,t){return ii(t,e,-1)}function ui(e,t){return ko(e[0],t[0])||ko(e[1],t[1])}function ci(e,t,n){return-1===ui(e,t)||1===ui(e,n)}function hi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=BigInt(Nh/t);return[Number(e/n),Number(e%n)*t]}function li(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=Nh/t,[r,o]=Bo(e,n);return[r,o*t]}function fi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2?arguments[2]:void 0;const[r,o]=e,[i,a]=Bo(o,t);return r*(Nh/t)+(i+(n?a/t:0))}function di(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ro;const[r,o]=e,[i,a]=n(o,t);return[r*(Nh/t)+i,a]}function gi(e){return fo(e,"isoYear",El,Tl,1),e.isoYear===El?fo(e,"isoMonth",4,12,1):e.isoYear===Tl&&fo(e,"isoMonth",1,9,1),e}function mi(e){return yi({...e,...vl,isoHour:12}),e}function yi(e){const t=fo(e,"isoYear",El,Tl,1),n=t===El?1:t===Tl?-1:0;return n&&vi(bi({...e,isoDay:e.isoDay+n,isoNanosecond:e.isoNanosecond-n})),e}function vi(e){if(!e||ci(e,bl,Al))throw new RangeError(oh);return e}function pi(e){return xo(e,5,ll)[1]}function wi(e){const[t,n]=Ro(e,Nh);return[Zo(n,5,ll),t]}function Si(e){return di(e,Eh)}function Ai(e){return Ii(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond)}function bi(e){const t=Ai(e);if(void 0!==t){const[n,r]=Bo(t,Sh);return[n,r*Th+(e.isoMicrosecond||0)*bh+(e.isoNanosecond||0)]}}function Ti(e,t){const[n,r]=wi(pi(e)-t);return vi(bi({...e,isoDay:e.isoDay+r,...n}))}function Ei(){return Ii(...arguments)/Ah}function Ii(){const[e,t]=Mi(...arguments),n=e.valueOf();if(!isNaN(n))return n-t*Sh}function Mi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;const s=e===El?1:e===Tl?-1:0,u=new Date;return u.setUTCHours(r,o,i,a),u.setUTCFullYear(e,t-1,n+s),[u,s]}function Ni(e,t){let[n,r]=ai(e,t);r<0&&(r+=Nh,n-=1);const[o,i]=Ro(r,Th),[a,s]=Ro(i,bh);return Hi(n*Sh+o,a,s)}function Hi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=Math.ceil(Math.max(0,Math.abs(e)-Sl)/Sh)*Math.sign(e),o=new Date(e-r*Sh);return Ao(dl,[o.getUTCFullYear(),o.getUTCMonth()+1,o.getUTCDate()+r,o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds(),t,n])}function Ci(e,t){if(t<-Sl)throw new RangeError(oh);const n=e.formatToParts(t),r={};for(const e of n)r[e.type]=e.value;return r}function Di(e){return[e.isoYear,e.isoMonth,e.isoDay]}function Oi(e,t){return[t,0]}function _i(){return Cl}function ki(e,t){switch(t){case 2:return Ri(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function Li(e){return Ri(e)?366:365}function Ri(e){return e%4==0&&(e%100!=0||e%400==0)}function Yi(e){const[t,n]=Mi(e.isoYear,e.isoMonth,e.isoDay);return Yo(t.getUTCDay()-n,7)||7}function Bi(e){return this.id===Gh?(e=>{let{isoYear:t}=e;return t<1?["gregory-inverse",1-t]:["gregory",t]})(e):this.id===Jh?Ol(e):[]}function Pi(e){const t=Ai(e);if(t<Dl){const{isoYear:t}=e;return t<1?["japanese-inverse",1-t]:["japanese",t]}const n=Ci($f(Jh),t),{era:r,eraYear:o}=Zu(n,Jh);return[r,o]}function ji(e){return Ui(e),$i(e,1),e}function Ui(e){return Zi(e,1),e}function xi(e){return No(fl,e,Zi(e))}function Zi(e,t){const{isoYear:n}=e,r=fo(e,"isoMonth",1,_i(),t);return{isoYear:n,isoMonth:r,isoDay:fo(e,"isoDay",1,ki(n,r),t)}}function $i(e,t){return Ao(ll,[fo(e,"isoHour",0,23,t),fo(e,"isoMinute",0,59,t),fo(e,"isoSecond",0,59,t),fo(e,"isoMillisecond",0,999,t),fo(e,"isoMicrosecond",0,999,t),fo(e,"isoNanosecond",0,999,t)])}function Vi(e){return void 0===e?0:Wl(Ko(e))}function Fi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=ta(e);const n=ql(e),r=Xl(e,t);return[Wl(e),r,n]}function zi(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:9,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:4;t=ta(t);let a=Gl(t,r,o),s=Xi(t),u=nf(t,i);const c=Kl(t,r,o,1);return null==a?a=Math.max(n,c):aa(a,c),s=Qi(s,c,1),e&&(u=(e=>e<4?(e+2)%4:e)(u)),[a,c,s,u]}function Ki(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=arguments.length>2?arguments[2]:void 0,r=Xi(e=na(e,_l));const o=nf(e,7);let i=Kl(e,t);return i=zo(_l,i),r=Qi(r,i,void 0,n),[i,r,o]}function Gi(e){return Ql(ta(e))}function Ji(e,t){return Wi(ta(e),t)}function Wi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=ea(e);return[nf(e,4),...qi(Kl(e,t),n)]}function qi(e,t){return null!=e?[Hh[e],e<4?9-3*e:-1]:[void 0===t?1:10**(9-t),t]}function Xi(e){const t=e[Ll];return void 0===t?1:ti(t,Ll)}function Qi(e,t,n,r){const o=r?Nh:Hh[t+1];if(o){const n=Hh[t];if(o%((e=go(Ll,e,1,o/n-(r?0:1),1))*n))throw new RangeError(_c(Ll,e))}else e=go(Ll,e,1,n?10**9:1,1);return e}function ea(e){let t=e[Rl];if(void 0!==t){if("number"!=typeof t){if("auto"===qo(t))return;throw new RangeError(_c(Rl,t))}t=go(Rl,Math.floor(t),0,9,1)}return t}function ta(e){return void 0===e?{}:Ko(e)}function na(e,t){return"string"==typeof e?{[t]:e}:Ko(e)}function ra(e){return{overflow:jl[e]}}function oa(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:9,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0,i=t[e];if(void 0===i)return o?r:void 0;if(i=qo(i),"auto"===i)return o?r:null;let a=ph[i];if(void 0===a&&(a=sl[i]),void 0===a)throw new RangeError(Bc(e,i,ph));return go(e,a,r,n,1,wh),a}function ia(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=n[e];if(void 0===o)return r;const i=qo(o),a=t[i];if(void 0===a)throw new RangeError(Bc(e,i,t));return a}function aa(e,t){if(t>e)throw new RangeError(hh)}function sa(e){return{branding:hf,epochNanoseconds:e}}function ua(e,t,n){return{branding:cf,calendar:n,timeZone:t,epochNanoseconds:e}}function ca(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:sf,calendar:t,...Io(yl,e)}}function ha(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:af,calendar:t,...Io(gl,e)}}function la(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:rf,calendar:t,...Io(gl,e)}}function fa(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.calendar;return{branding:of,calendar:t,...Io(gl,e)}}function da(e){return{branding:uf,...Io(ml,e)}}function ga(e){return{branding:lf,sign:Hs(e),...Io(rl,e)}}function ma(e){return di(e.epochNanoseconds,Th)[0]}function ya(e){return e.epochNanoseconds}function va(e,t){return fi(Os(e),Hh[t],1)}function pa(e,t,n,r,o,i,a){const s=nl[n],u={...t,[s]:t[s]+r},c=a(e,o,t),h=a(e,o,u);return[i(c),i(h)]}function wa(e,t,n){const r=fi(si(t,n));if(!r)throw new RangeError(Gc);return fi(si(t,e))/r}function Sa(e,t,n,r){return Aa(e,Ea(t,n),r)}function Aa(e,t,n){const[r,o]=ba(e,t,n);return yi({...ps(e,o),...r})}function ba(e,t,n){return wi(Oa(pi(e),t,n))}function Ta(e){return Oa(e,Ih,7)}function Ea(e,t){return Hh[e]*t}function Ia(e){const t=Ma(e);return[t,ps(t,1)]}function Ma(e){return pl(6,e)}function Na(e,t,n){const r=Math.min(Rs(e),6);return _s(Da(Os(e,r),t,n),r)}function Ha(e,t,n,r,o,i,a,s,u,c){if(0===r&&1===o)return e;const h=Es(r,s)?Ts(s)&&r<6&&n>=6?La:ka:Ra;let[l,f,d]=h(e,t,n,r,o,i,a,s,u,c);return d&&7!==r&&(l=((e,t,n,r,o,i,a,s)=>{const u=Hs(e);for(let c=r+1;c<=n;c++){if(7===c&&7!==n)continue;const r=hl(c,e);r[nl[c]]+=u;const h=fi(si(a(s(o,i,r)),t));if(h&&Math.sign(h)!==u)break;e=r}return e})(l,f,n,Math.max(6,r),a,s,u,c)),l}function Ca(e,t,n,r,o){if(6===t){const t=(e=>e[0]+e[1]/Nh)(e);return[Oa(t,n,r),0]}return Da(e,Ea(t,n),r,o)}function Da(e,t,n,r){let[o,i]=e;r&&i<0&&(i+=Nh,o-=1);const[a,s]=Ro(Oa(i,t,n),Nh);return oi(o+a,s)}function Oa(e,t,n){return _a(e/t,n)*t}function _a(e,t){return ff[t](e)}function ka(e,t,n,r,o,i){const a=Hs(e),s=Os(e),u=Ca(s,r,o,i),c=si(s,u),h=Math.sign(u[0]-s[0])===a,l=_s(u,Math.min(n,6));return[{...e,...l},ii(t,c),h]}function La(e,t,n,r,o,i,a,s,u,c){const h=Hs(e)||1,l=fi(Os(e,5)),f=Ea(r,o);let d=Oa(l,f,i);const[g,m]=pa(a,{...e,...cl},6,h,s,u,c),y=d-fi(si(g,m));let v=0;y&&Math.sign(y)!==h?t=ai(g,d):(v+=h,d=Oa(y,f,i),t=ai(m,d));const p=ks(d);return[{...e,...p,days:e.days+v},t,Boolean(v)]}function Ra(e,t,n,r,o,i,a,s,u,c){const h=Hs(e),l=nl[r],f=hl(r,e);7===r&&(e={...e,weeks:e.weeks+Math.trunc(e.days/7)});const d=Po(e[l],o)*o;f[l]=d;const[g,m]=pa(a,f,r,o*h,s,u,c),y=d+wa(t,g,m)*h*o,v=Oa(y,o,i),p=Math.sign(v-y)===h;return f[l]=v,[f,p?m:g,p]}function Ya(e,t,n,r){const[o,i,a,s]=(e=>{const t=Wi(e=ta(e));return[e.timeZone,...t]})(r),u=void 0!==o;return((e,t,n,r,o,i)=>{n=Da(n,o,r,1);const a=t.R(n);return za(Ni(n,a),i)+(e?qa(Ta(a)):"Z")})(u,t(u?e(o):df),n.epochNanoseconds,i,a,s)}function Ba(e,t,n){const[r,o,i,a,s,u]=(e=>{e=ta(e);const t=Ql(e),n=ea(e),r=tf(e),o=nf(e,4),i=Kl(e,4);return[t,ef(e),r,o,...qi(i,n)]})(n);return((e,t,n,r,o,i,a,s,u,c)=>{r=Da(r,u,s,1);const h=e(n).R(r);return za(Ni(r,h),c)+qa(Ta(h),a)+((e,t)=>1!==t?"["+(2===t?"!":"")+e+"]":"")(n,i)+Xa(t,o)})(e,t.calendar,t.timeZone,t.epochNanoseconds,r,o,i,a,s,u)}function Pa(e,t){const[n,r,o,i]=(e=>(e=ta(e),[Ql(e),...Wi(e)]))(t);return a=e.calendar,s=n,u=i,za(Aa(e,o,r),u)+Xa(a,s);var a,s,u}function ja(e,t){return n=e.calendar,r=e,o=Gi(t),Ka(r)+Xa(n,o);var n,r,o}function Ua(e,t){return Va(e.calendar,Ga,e,Gi(t))}function xa(e,t){return Va(e.calendar,Ja,e,Gi(t))}function Za(e,t){const[n,r,o]=Ji(t);return i=o,Wa(ba(e,r,n)[0],i);var i}function $a(e,t){const[n,r,o]=Ji(t,3);return r>1&&Cs(e={...e,...Na(e,r,n)}),((e,t)=>{const{sign:n}=e,r=-1===n?Ns(e):e,{hours:o,minutes:i}=r,[a,s]=di(Os(r,3),Eh,Bo);Ds(a);const u=es(s,t),c=t>=0||!n||u;return(n<0?"-":"")+"P"+Fa({Y:ns(r.years),M:ns(r.months),W:ns(r.weeks),D:ns(r.days)})+(o||i||a||c?"T"+Fa({H:ns(o),M:ns(i),S:ns(a,c)+u}):"")})(e,o)}function Va(e,t,n,r){const o=r>1||0===r&&e!==Kh;return 1===r?e===Kh?t(n):Ka(n):o?Ka(n)+Qa(e,2===r):t(n)}function Fa(e){const t=[];for(const n in e){const r=e[n];r&&t.push(r,n)}return t.join("")}function za(e,t){return Ka(e)+"T"+Wa(e,t)}function Ka(e){return Ga(e)+"-"+vh(e.isoDay)}function Ga(e){const{isoYear:t}=e;return(t<0||t>9999?ts(t)+_o(6,Math.abs(t)):_o(4,t))+"-"+vh(e.isoMonth)}function Ja(e){return vh(e.isoMonth)+"-"+vh(e.isoDay)}function Wa(e,t){const n=[vh(e.isoHour),vh(e.isoMinute)];return-1!==t&&n.push(vh(e.isoSecond)+((e,t,n,r)=>es(e*Th+t*bh+n,r))(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t)),n.join(":")}function qa(e){if(1===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0))return"";const[t,n]=Ro(Math.abs(e),Mh),[r,o]=Ro(n,Ih),[i,a]=Ro(o,Eh);return ts(e)+vh(t)+":"+vh(r)+(i||a?":"+vh(i)+es(a):"")}function Xa(e,t){return 1!==t&&(t>1||0===t&&e!==Kh)?Qa(e,2===t):""}function Qa(e,t){return"["+(t?"!":"")+"u-ca="+e+"]"}function es(e,t){let n=_o(9,e);return n=void 0===t?n.replace(vf,""):n.slice(0,t),n?"."+n:""}function ts(e){return e<0?"-":"+"}function ns(e,t){return e||t?e.toLocaleString("fullwide",{useGrouping:0}):""}function rs(e,t){const{epochNanoseconds:n}=e,r=(t.R?t:t(e.timeZone)).R(n),o=Ni(n,r);return{calendar:e.calendar,...o,offsetNanoseconds:r}}function os(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0;if(void 0!==n&&1===r&&(1===r||a))return Ti(t,n);const s=e.I(t);if(void 0!==n&&3!==r){const e=((e,t,n,r)=>{const o=bi(t);r&&(n=Ta(n));for(const t of e){let e=fi(si(t,o));if(r&&(e=Ta(e)),e===n)return t}})(s,t,n,i);if(void 0!==e)return e;if(0===r)throw new RangeError(nh)}return a?bi(t):is(e,t,o,s)}function is(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.I(t);if(1===r.length)return r[0];if(1===n)throw new RangeError(rh);if(r.length)return r[3===n?1:0];const o=bi(t),i=((e,t)=>{const n=e.R(ai(t,-Nh));return(e=>{if(e>Nh)throw new RangeError(th);return e})(e.R(ai(t,Nh))-n)})(e,o),a=i*(2===n?-1:1);return(r=e.I(Ni(o,a)))[2===n?0:r.length-1]}function as(e,t){const n=e.I(t);if(n.length)return n[0];const r=ai(bi(t),-Nh);return e.O(r,1)}function ss(e,t,n){return sa(vi(ii(t.epochNanoseconds,(e=>{if(Ls(e))throw new RangeError(uh);return Os(e,5)})(e?Ns(n):n))))}function us(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Object.create(null);const a=t(r.timeZone),s=e(r.calendar);return{...r,...ds(a,s,r,n?Ns(o):o,i)}}function cs(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object.create(null);const{calendar:i}=n;return ca(gs(e(i),n,t?Ns(r):r,o),i)}function hs(e,t,n,r,o){const{calendar:i}=n;return ha(ms(e(i),n,t?Ns(r):r,o),i)}function ls(e,t,n,r,o){const i=n.calendar,a=e(i);let s=mi(ys(a,n));t&&(r=Ms(r)),r.sign<0&&(s=a.P(s,{...ul,months:1}),s=ps(s,-1));const u=a.P(s,r,o);return la(ys(a,u),i)}function fs(e,t,n){return da(vs(t,e?Ns(n):n)[0])}function ds(e,t,n,r,o){const i=Os(r,5);let a=n.epochNanoseconds;if(Ls(r)){const s=pf(n,e);a=ii(is(e,{...ms(t,s,{...r,...cl},o),...Io(ll,s)}),i)}else a=ii(a,i),Vi(o);return{epochNanoseconds:vi(a)}}function gs(e,t,n,r){const[o,i]=vs(t,n);return yi({...ms(e,t,{...n,...cl,days:n.days+i},r),...o})}function ms(e,t,n,r){if(n.years||n.months||n.weeks)return e.P(t,n,r);Vi(r);const o=n.days+Os(n,5)[0];return o?mi(ps(t,o)):t}function ys(e,t){return ps(t,(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1)-e.day(t))}function vs(e,t){const[n,r]=Os(t,5),[o,i]=wi(pi(e)+r);return[o,n+i]}function ps(e,t){return t?{...e,...Hi(Ai(e)+t*Sh)}:e}function ws(e,t,n){const r=e(n.calendar);return Ts(n)?[n,r,t(n.timeZone)]:[{...n,...vl},r]}function Ss(e){return e?ya:bi}function As(e){return e?Co(ds,e):gs}function bs(e){return e?Co(pu,e):wu}function Ts(e){return e&&e.epochNanoseconds}function Es(e,t){return e<=6-(Ts(t)?1:0)}function Is(e,t,n,r,o,i,a){const s=e(ta(a).relativeTo),u=Math.max(Rs(o),Rs(i));if(Es(u,s))return ga(Cs(((e,t,n,r)=>{const o=ii(Os(e),Os(t),r?-1:1);if(!Number.isFinite(o[0]))throw new RangeError(oh);return{...ul,..._s(o,n)}})(o,i,u,r)));if(!s)throw new RangeError(sh);r&&(i=Ns(i));const[c,h,l]=ws(t,n,s),f=As(l),d=bs(l),g=f(h,c,o);return ga(d(h,c,f(h,g,i),u))}function Ms(e){return ga(Ns(e))}function Ns(e){const t={};for(const n of nl)t[n]=-1*e[n]||0;return t}function Hs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nl,n=0;for(const r of t){const t=Math.sign(e[r]);if(t){if(n&&n!==t)throw new RangeError(ah);n=t}}return n}function Cs(e){for(const t of al)go(t,e[t],-wf,wf,1);return Ds(fi(Os(e),Eh)),e}function Ds(e){if(!Number.isSafeInteger(e))throw new RangeError(ih)}function Os(e){return xo(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,nl)}function _s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const[n,r]=e,o=Zo(r,t,nl);if(o[nl[t]]+=n*(Nh/Hh[t]),!Number.isFinite(o[nl[t]]))throw new RangeError(oh);return o}function ks(e){return Zo(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,nl)}function Ls(e){return Boolean(Hs(e,il))}function Rs(e){let t=9;for(;t>0&&!e[nl[t]];t--);return t}function Ys(e,t){return[e,t]}function Bs(e){const t=Math.floor(e/gf)*gf;return[t,t+gf]}function Ps(e){const t=Gs(e);if(void 0===t)throw new RangeError(lh(e));return t}function js(e,t,n){let r=Fs(Qh(e));if(!r||r.j)throw new RangeError(lh(e));return t?r.calendar===Kh&&(r=-271821===r.isoYear&&4===r.isoMonth?{...r,isoDay:20,...vl}:{...r,isoDay:1,...vl}):n&&r.calendar===Kh&&(r={...r,isoYear:Hl}),ha(r.C?Zs(r):$s(r))}function Us(e){if(e.calendar!==Kh)throw new RangeError(fh(e.calendar))}function xs(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;const o=nu(e.timeZone),i=Sf(o);let a;return ji(e),a=e.C?os(i,e,t,n,r,!i.$,e.j):as(i,e),ua(a,o,ec(e.calendar))}function Zs(e){return Vs(yi(ji(e)))}function $s(e){return Vs(mi(Ui(e)))}function Vs(e){return{...e,calendar:ec(e.calendar)}}function Fs(e){const t=kf.exec(e);return t?(e=>{const t=e[10],n="Z"===(t||"").toUpperCase();return{isoYear:Js(e),isoMonth:parseInt(e[4]),isoDay:parseInt(e[5]),...Ws(e.slice(5)),...qs(e[16]),C:Boolean(e[6]),j:n,offset:n?void 0:t}})(t):void 0}function zs(e){const t=Of.exec(e);return t?(e=>({isoYear:Js(e),isoMonth:parseInt(e[4]),isoDay:1,...qs(e[5])}))(t):void 0}function Ks(e){const t=_f.exec(e);return t?(e=>({isoYear:Hl,isoMonth:parseInt(e[1]),isoDay:parseInt(e[2]),...qs(e[3])}))(t):void 0}function Gs(e,t){const n=Rf.exec(e);return n?((e,t)=>{const n=e[4]||e[5];if(t&&n)throw new RangeError(fh(n));return(e=>{if(Math.abs(e)>=Nh)throw new RangeError(eh);return e})((tu(e[2])*Mh+tu(e[3])*Ih+tu(e[4])*Eh+Xs(e[5]||""))*eu(e[1]))})(n,t):void 0}function Js(e){const t=eu(e[1]),n=parseInt(e[2]||e[3]);if(t<0&&!n)throw new RangeError(fh(-0));return t*n}function Ws(e){const t=tu(e[3]);return{...wi(Xs(e[4]||""))[0],isoHour:tu(e[1]),isoMinute:tu(e[2]),isoSecond:60===t?59:t}}function qs(e){let t,n;const r=[];if(e.replace(Yf,((e,o,i)=>{const a=Boolean(o),[s,u]=i.split("=").reverse();if(u){if("u-ca"===u)r.push(s),t||(t=a);else if(a||/[A-Z]/.test(u))throw new RangeError(fh(e))}else{if(n)throw new RangeError(fh(e));n=s}return""})),r.length>1&&t)throw new RangeError(fh(e));return{timeZone:n,calendar:r[0]||Kh}}function Xs(e){return parseInt(e.padEnd(9,"0"))}function Qs(e){return new RegExp(`^${e}$`,"i")}function eu(e){return e&&"+"!==e?-1:1}function tu(e){return void 0===e?0:parseInt(e)}function nu(e){const t=ou(e);return"number"==typeof t?qa(t):t?(e=>{if(Uf.test(e))throw new RangeError(qc(e));if(jf.test(e))throw new RangeError(Qc);return e.toLowerCase().split("/").map(((e,t)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,((e,n)=>e.length<=2&&!t||"in"===e||"chat"===e?e.toUpperCase():e.length>2||!n?Do(e).replace(/island|noronha|murdo|rivadavia|urville/,Do):e)))).join("/")})(e):df}function ru(e){const t=ou(e);return"number"==typeof t?t:t?t.resolvedOptions().timeZone:df}function ou(e){const t=Gs(e=e.toUpperCase(),1);return void 0!==t?t:e!==df?Pf(e):void 0}function iu(e,t){return ui(e.epochNanoseconds,t.epochNanoseconds)}function au(e,t){return ui(e.epochNanoseconds,t.epochNanoseconds)}function su(e,t){return uu(e,t)||cu(e,t)}function uu(e,t){return ko(Ai(e),Ai(t))}function cu(e,t){return ko(pi(e),pi(t))}function hu(e,t){if(e===t)return 1;try{return ru(e)===ru(t)}catch(e){}}function lu(e,t,n,r){const o=zi(e,r,3,5),i=bu(t.epochNanoseconds,n.epochNanoseconds,...o);return ga(e?Ns(i):i)}function fu(e,t,n,r,o,i){const a=Nu(r.calendar,o.calendar),[s,u,c,h]=zi(n,i,5),l=r.epochNanoseconds,f=o.epochNanoseconds,d=ui(f,l);let g;if(d)if(s<6)g=bu(l,f,s,u,c,h);else{const n=t(((e,t)=>{if(!hu(e,t))throw new RangeError(Xc);return e})(r.timeZone,o.timeZone)),l=e(a);g=Su(l,n,r,o,d,s,i),g=Ha(g,f,s,u,c,h,l,r,ya,Co(ds,n))}else g=ul;return ga(n?Ns(g):g)}function du(e,t,n,r,o){const i=Nu(n.calendar,r.calendar),[a,s,u,c]=zi(t,o,6),h=bi(n),l=bi(r),f=ui(l,h);let d;if(f)if(a<=6)d=bu(h,l,a,s,u,c);else{const t=e(i);d=Au(t,n,r,f,a,o),d=Ha(d,l,a,s,u,c,t,n,bi,gs)}else d=ul;return ga(t?Ns(d):d)}function gu(e,t,n,r,o){const i=Nu(n.calendar,r.calendar);return yu(t,(()=>e(i)),n,r,...zi(t,o,6,9,6))}function mu(e,t,n,r,o){const i=Nu(n.calendar,r.calendar),a=zi(t,o,9,9,8),s=e(i),u=ys(s,n),c=ys(s,r);return u.isoYear===c.isoYear&&u.isoMonth===c.isoMonth&&u.isoDay===c.isoDay?ga(ul):yu(t,(()=>s),mi(u),mi(c),...a,8)}function yu(e,t,n,r,o,i,a,s){let u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:6;const c=bi(n),h=bi(r);if(void 0===c||void 0===h)throw new RangeError(oh);let l;if(ui(h,c))if(6===o)l=bu(c,h,o,i,a,s);else{const e=t();l=e.N(n,r,o),i===u&&1===a||(l=Ha(l,h,o,i,a,s,e,n,bi,ms))}else l=ul;return ga(e?Ns(l):l)}function vu(e,t,n,r){const[o,i,a,s]=zi(e,r,5,5),u=Oa(Mu(t,n),Ea(i,a),s),c={...ul,...ks(u,o)};return ga(e?Ns(c):c)}function pu(e,t,n,r,o,i){const a=ui(r.epochNanoseconds,n.epochNanoseconds);return a?o<6?Tu(n.epochNanoseconds,r.epochNanoseconds,o):Su(t,e,n,r,a,o,i):ul}function wu(e,t,n,r,o){const i=bi(t),a=bi(n),s=ui(a,i);return s?r<=6?Tu(i,a,r):Au(e,t,n,s,r,o):ul}function Su(e,t,n,r,o,i,a){const[s,u,c]=((e,t,n,r)=>{function o(){return l={...ps(s,c++*-r),...a},f=is(e,l),ui(u,f)===-r}const i=pf(t,e),a=Io(ll,i),s=pf(n,e),u=n.epochNanoseconds;let c=0;const h=Mu(i,s);let l,f;if(Math.sign(h)===-r&&c++,o()&&(-1===r||o()))throw new RangeError(Gc);const d=fi(si(f,u));return[i,l,d]})(t,n,r,o);var h,l;return{...6===i?(h=s,l=u,{...ul,days:Eu(h,l)}):e.N(s,u,i,a),...ks(c)}}function Au(e,t,n,r,o,i){const[a,s,u]=((e,t,n)=>{let r=t,o=Mu(e,t);return Math.sign(o)===-n&&(r=ps(t,-n),o+=Nh*n),[e,r,o]})(t,n,r);return{...e.N(a,s,o,i),...ks(u)}}function bu(e,t,n,r,o,i){return{...ul,..._s(Ca(si(e,t),r,o,i),n)}}function Tu(e,t,n){return{...ul,..._s(si(e,t),n)}}function Eu(e,t){return Iu(Ai(e),Ai(t))}function Iu(e,t){return Math.trunc((t-e)/Sh)}function Mu(e,t){return pi(t)-pi(e)}function Nu(e,t){if(e!==t)throw new RangeError(Wc);return e}function Hu(e){return this.m(e)[0]}function Cu(e){return this.m(e)[1]}function Du(e){const[t]=this.v(e);return Iu(this.p(t),Ai(e))+1}function Ou(e){const t=xf.exec(e);if(!t)throw new RangeError(Vc(e));return[parseInt(t[1]),Boolean(t[2])]}function _u(e,t){return"M"+vh(e)+(t?"L":"")}function ku(e,t,n){return e+(t||n&&e>=n?1:0)}function Lu(e,t){return e-(t&&e>=t?1:0)}function Ru(e,t){return(t+e)*(Math.sign(t)||1)||0}function Yu(e){return Wh[Pu(e)]}function Bu(e){return Xh[Pu(e)]}function Pu(e){return tc(e.id||Kh)}function ju(e){function t(e){return((e,t)=>({...Zu(e,t),o:e.month,day:parseInt(e.day)}))(Ci(n,e),r)}const n=$f(e),r=tc(e);return{id:e,h:Uu(t),l:xu(t)}}function Uu(e){return yo((t=>{const n=Ai(t);return e(n)}),WeakMap)}function xu(e){const t=e(0).year-Nl;return yo((n=>{let r,o=Ii(n-t),i=0;const a=[],s=[];do{o+=400*Sh}while((r=e(o)).year<=n);do{if(o+=(1-r.day)*Sh,r.year===n&&(a.push(o),s.push(r.o)),o-=Sh,++i>100||o<-Sl)throw new RangeError(Gc)}while((r=e(o)).year>=n);return{i:a.reverse(),u:mh(s.reverse())}}))}function Zu(e,t){let n,r,o=$u(e);if(e.era){const i=Wh[t],a=qh[t]||{};void 0!==i&&(n="islamic"===t?"ah":e.era.normalize("NFD").toLowerCase().replace(/[^a-z0-9]/g,""),"bc"===n||"b"===n?n="bce":"ad"===n||"a"===n?n="ce":"beforeroc"===n&&(n="broc"),n=a[n]||n,r=o,o=Ru(r,i[n]||0))}return{era:n,eraYear:r,year:o}}function $u(e){return parseInt(e.relatedYear||e.year)}function Vu(e){const{year:t,o:n,day:r}=this.h(e),{u:o}=this.l(t);return[t,o[n]+1,r]}function Fu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return this.l(e).i[t-1]+(n-1)*Sh}function zu(e,t){const n=Ku.call(this,e);return[Lu(t,n),n===t]}function Ku(e){const t=Xu(this,e),n=Xu(this,e-1),r=t.length;if(r>n.length){const e=Bu(this);if(e<0)return-e;for(let e=0;e<r;e++)if(t[e]!==n[e])return e+1}}function Gu(e){return Iu(Fu.call(this,e),Fu.call(this,e+1))}function Ju(e,t){const{i:n}=this.l(e);let r=t+1,o=n;return r>n.length&&(r=1,o=this.l(e+1).i),Iu(n[t-1],o[r-1])}function Wu(e){return this.l(e).i.length}function qu(e){const t=this.h(e);return[t.era,t.eraYear]}function Xu(e,t){return Object.keys(e.l(t).u)}function Qu(e){return ec(Qh(e))}function ec(e){if((e=e.toLowerCase())!==Kh&&e!==Gh){const t=$f(e).resolvedOptions().calendar;if(tc(e)!==tc(t))throw new RangeError(Jc(e));return t}return e}function tc(e){return"islamicc"===e&&(e="islamic"),e.split("-")[0]}function nc(e,t){return n=>n===Kh?e:n===Gh||n===Jh?Object.assign(Object.create(e),{id:n}):Object.assign(Object.create(t),Zf(n))}function rc(e,t,n,r){const o=oc(n,r,$h,[],Lh);if(void 0!==o.timeZone){const r=n.F(o),i=ac(o),a=e(o.timeZone);return{epochNanoseconds:os(t(a),{...r,...i},void 0!==o.offset?Ps(o.offset):void 0),timeZone:a}}return{...n.F(o),...vl}}function oc(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return ic(t,[...e.fields(n),...o].sort(),r)}function ic(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:!n;const o={};let i,a=0;for(const r of t){if(r===i)throw new RangeError(Rc(r));if("constructor"===r||"__proto__"===r)throw new RangeError(Lc(r));let t=e[r];if(void 0!==t)a=1,ed[r]&&(t=ed[r](t,r)),o[r]=t;else if(n){if(n.includes(r))throw new TypeError(kc(r));o[r]=zh[r]}i=r}if(r&&!a)throw new TypeError(Yc(t));return o}function ac(e,t){return $i(td({...zh,...e}),t)}function sc(e,t,n,r,o){t=Io(n=e.fields(n),t),r=ic(r,o=e.fields(o),[]);let i=e.k(t,r);return i=ic(i,[...n,...o].sort(),[]),e.F(i)}function uc(e,t){const n=Yu(e),r=qh[e.id||""]||{};let{era:o,eraYear:i,year:a}=t;if(void 0!==o||void 0!==i){if(void 0===o||void 0===i)throw new TypeError(Uc);if(!n)throw new RangeError(jc);const e=n[r[o]||o];if(void 0===e)throw new RangeError(Zc(o));const t=Ru(i,e);if(void 0!==a&&a!==t)throw new RangeError(xc);a=t}else if(void 0===a)throw new TypeError($c(n));return a}function cc(e,t,n,r){let{month:o,monthCode:i}=t;if(void 0!==i){const t=((e,t,n,r)=>{const o=e.L(n),[i,a]=Ou(t);let s=ku(i,a,o);if(a){const t=Bu(e);if(void 0===t)throw new RangeError(Kc);if(t>0){if(s>t)throw new RangeError(Kc);if(void 0===o){if(1===r)throw new RangeError(Kc);s--}}else{if(s!==-t)throw new RangeError(Kc);if(void 0===o&&1===r)throw new RangeError(Kc)}}return s})(e,i,n,r);if(void 0!==o&&o!==t)throw new RangeError(Fc);o=t,r=1}else if(void 0===o)throw new TypeError(zc);return go("month",o,1,e.B(n),r)}function hc(e,t,n,r,o){return fo(t,"day",1,e.U(r,n),o)}function lc(e,t,n,r){let o=0;const i=[];for(const e of n)void 0!==t[e]?o=1:i.push(e);if(Object.assign(e,t),o)for(const t of r||i)delete e[t]}function fc(e){const t=Xf(e.calendar),[n,r,o]=t.v(e),[i,a]=t.q(n,r);return{year:n,monthCode:_u(i,a),day:o}}function dc(e,t){return ca(pf(t,e))}function gc(e,t){return ha(pf(t,e))}function mc(e,t){return da(pf(t,e))}function yc(e,t,n){const r=new Set(n);return(o,i)=>{const a=n&&Mo(o,n);if(!Mo(o=((e,t)=>{const n={};for(const r in t)e.has(r)||(n[r]=t[r]);return n})(r,o),e)){if(i&&a)throw new TypeError("Invalid formatting options");o={...t,...o}}return n&&(o.timeZone=df,["full","long"].includes(o.J)&&(o.J="medium")),o}}function vc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pc,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const[r,,,o]=e;return function(i){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_d;for(var s=arguments.length,u=new Array(s>2?s-2:0),c=2;c<s;c++)u[c-2]=arguments[c];const h=t(o&&o(...u),i,a,r,n),l=h.resolvedOptions();return[h,...wc(e,l,u)]}}function pc(e,t,n,r,o){if(n=r(n,o),e){if(void 0!==n.timeZone)throw new TypeError(gh);n.timeZone=e}return new Il(t,n)}function wc(e,t,n){const[,r,o]=e;return n.map((e=>(e.calendar&&((e,t,n)=>{if((n||e!==Kh)&&e!==t)throw new RangeError(Wc)})(e.calendar,t.calendar,o),r(e,t))))}function Sc(e,t){return{...e,calendar:t}}function Ac(e){const t=bc();return Ni(t,e.R(t))}function bc(){return li(Date.now(),Th)}function Tc(){return xd||(xd=(new Il).resolvedOptions().timeZone)}!function(){if(ao)return Ce;ao=1;var e=Wr(),t=Rr().includes,n=Ue(),r=lo();e({target:"Array",proto:!0,forced:n((function(){return!Array(1).includes()}))},{includes:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")}();const Ec=(e,t)=>`Non-integer ${e}: ${t}`,Ic=(e,t)=>`Non-positive ${e}: ${t}`,Mc=(e,t)=>`Non-finite ${e}: ${t}`,Nc=e=>`Cannot convert bigint to ${e}`,Hc=e=>`Invalid bigint: ${e}`,Cc="Cannot convert Symbol to string",Dc="Invalid object",Oc=(e,t,n,r,o)=>o?Oc(e,o[t],o[n],o[r]):_c(e,t)+`; must be between ${n}-${r}`,_c=(e,t)=>`Invalid ${e}: ${t}`,kc=e=>`Missing ${e}`,Lc=e=>`Invalid field ${e}`,Rc=e=>`Duplicate field ${e}`,Yc=e=>"No valid fields: "+e.join(),Bc=(e,t,n)=>_c(e,t)+"; must be "+Object.keys(n).join(),Pc="Invalid calling context",jc="Forbidden era/eraYear",Uc="Mismatching era/eraYear",xc="Mismatching year/eraYear",Zc=e=>`Invalid era: ${e}`,$c=e=>"Missing year"+(e?"/era/eraYear":""),Vc=e=>`Invalid monthCode: ${e}`,Fc="Mismatching month/monthCode",zc="Missing month/monthCode",Kc="Invalid leap month",Gc="Invalid protocol results",Jc=e=>_c("Calendar",e),Wc="Mismatching Calendars",qc=e=>_c("TimeZone",e),Xc="Mismatching TimeZones",Qc="Forbidden ICU TimeZone",eh="Out-of-bounds offset",th="Out-of-bounds TimeZone gap",nh="Invalid TimeZone offset",rh="Ambiguous offset",oh="Out-of-bounds date",ih="Out-of-bounds duration",ah="Cannot mix duration signs",sh="Missing relativeTo",uh="Cannot use large units",ch="Required smallestUnit or largestUnit",hh="smallestUnit > largestUnit",lh=e=>`Cannot parse: ${e}`,fh=e=>`Invalid substring: ${e}`,dh="Mismatching types for formatting",gh="Cannot specify TimeZone",mh=Co(To,((e,t)=>t)),yh=Co(To,((e,t,n)=>n)),vh=Co(_o,2),ph={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},wh=Object.keys(ph),Sh=864e5,Ah=1e3,bh=1e3,Th=1e6,Eh=1e9,Ih=6e10,Mh=36e11,Nh=864e11,Hh=[1,bh,Th,Eh,Ih,Mh,Nh],Ch=wh.slice(0,6),Dh=Oo(Ch),Oh=["offset"],_h=["timeZone"],kh=Ch.concat(Oh),Lh=kh.concat(_h),Rh=["era","eraYear"],Yh=Rh.concat(["year"]),Bh=["year"],Ph=["monthCode"],jh=["month"].concat(Ph),Uh=["day"],xh=jh.concat(Bh),Zh=Ph.concat(Bh),$h=Uh.concat(xh),Vh=Uh.concat(jh),Fh=Uh.concat(Ph),zh=yh(Ch,0),Kh="iso8601",Gh="gregory",Jh="japanese",Wh={[Gh]:{"gregory-inverse":-1,gregory:0},[Jh]:{"japanese-inverse":-1,japanese:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018},ethiopic:{ethioaa:0,ethiopic:5500},coptic:{"coptic-inverse":-1,coptic:0},roc:{"roc-inverse":-1,roc:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0}},qh={[Gh]:{bce:"gregory-inverse",ce:"gregory"},[Jh]:{bce:"japanese-inverse",ce:"japanese"},ethiopic:{era0:"ethioaa",era1:"ethiopic"},coptic:{era0:"coptic-inverse",era1:"coptic"},roc:{broc:"roc-inverse",minguo:"roc"}},Xh={chinese:13,dangi:13,hebrew:-6},Qh=Co(Go,"string"),el=Co(Go,"boolean"),tl=Co(Go,"number"),nl=wh.map((e=>e+"s")),rl=Oo(nl),ol=nl.slice(0,6),il=nl.slice(6),al=il.slice(1),sl=mh(nl),ul=yh(nl,0),cl=yh(ol,0),hl=Co(Ho,nl),ll=["isoNanosecond","isoMicrosecond","isoMillisecond","isoSecond","isoMinute","isoHour"],fl=["isoDay","isoMonth","isoYear"],dl=ll.concat(fl),gl=Oo(fl),ml=Oo(ll),yl=Oo(dl),vl=yh(ml,0),pl=Co(Ho,dl),wl=1e8,Sl=wl*Sh,Al=[wl,0],bl=[-wl,0],Tl=275760,El=-271821,Il=Intl.DateTimeFormat,Ml="en-GB",Nl=1970,Hl=1972,Cl=12,Dl=Ii(1868,9,8),Ol=yo(Pi,WeakMap),_l="smallestUnit",kl="unit",Ll="roundingIncrement",Rl="fractionalSecondDigits",Yl="relativeTo",Bl="direction",Pl={constrain:0,reject:1},jl=Object.keys(Pl),Ul={compatible:0,reject:1,earlier:2,later:3},xl={reject:0,use:1,prefer:2,ignore:3},Zl={auto:0,never:1,critical:2,always:3},$l={auto:0,never:1,critical:2},Vl={auto:0,never:1},Fl={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},zl={previous:-1,next:1},Kl=Co(oa,_l),Gl=Co(oa,"largestUnit"),Jl=Co(oa,kl),Wl=Co(ia,"overflow",Pl),ql=Co(ia,"disambiguation",Ul),Xl=Co(ia,"offset",xl),Ql=Co(ia,"calendarName",Zl),ef=Co(ia,"timeZoneName",$l),tf=Co(ia,"offset",Vl),nf=Co(ia,"roundingMode",Fl),rf="PlainYearMonth",of="PlainMonthDay",af="PlainDate",sf="PlainDateTime",uf="PlainTime",cf="ZonedDateTime",hf="Instant",lf="Duration",ff=[Math.floor,e=>Uo(e)?Math.floor(e):Math.round(e),Math.ceil,e=>Uo(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>Uo(e)?Math.trunc(e)||0:Math.round(e),e=>e<0?Math.floor(e):Math.ceil(e),e=>Math.sign(e)*Math.round(Math.abs(e))||0,e=>Uo(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],df="UTC",gf=5184e3,mf=Ei(1847),yf=Ei((new Date).getUTCFullYear()+10),vf=/0+$/,pf=yo(rs,WeakMap),wf=2**32-1,Sf=yo((e=>{const t=ou(e);return"object"==typeof t?new bf(t):new Af(t||0)}));class Af{constructor(e){this.$=e}R(){return this.$}I(e){return(e=>{const t=bi({...e,...vl});if(!t||Math.abs(t[0])>1e8)throw new RangeError(oh)})(e),[Ti(e,this.$)]}O(){}}class bf{constructor(e){this.nn=(e=>{function t(e){const t=Lo(e,i,a),[s,u]=Bs(t),c=r(s),h=r(u);return c===h?c:n(o(s,u),c,h,e)}function n(t,n,r,o){let i,a;for(;(void 0===o||void 0===(i=o<t[0]?n:o>=t[1]?r:void 0))&&(a=t[1]-t[0]);){const n=t[0]+Math.floor(a/2);e(n)===r?t[1]=n:t[0]=n+1}return i}const r=yo(e),o=yo(Ys);let i=mf,a=yf;return{tn(e){const n=t(e-86400),r=t(e+86400),o=e-n,i=e-r;if(n===r)return[o];const a=t(o);return a===t(i)?[e-a]:n>r?[o,i]:[]},rn:t,O(e,t){const s=Lo(e,i,a);let[u,c]=Bs(s);const h=gf*t,l=t<0?()=>c>i||(i=s,0):()=>u<a||(a=s,0);for(;l();){const i=r(u),a=r(c);if(i!==a){const r=o(u,c);n(r,i,a);const s=r[0];if((ko(s,e)||1)===t)return s}u+=h,c+=h}}}})((e=>t=>{const n=Ci(e,t*Ah);return Ei($u(n),parseInt(n.month),parseInt(n.day),parseInt(n.hour),parseInt(n.minute),parseInt(n.second))-t})(e))}R(e){return this.nn.rn((e=>Si(e)[0])(e))*Eh}I(e){const[t,n]=[Ei((r=e).isoYear,r.isoMonth,r.isoDay,r.isoHour,r.isoMinute,r.isoSecond),r.isoMillisecond*Th+r.isoMicrosecond*bh+r.isoNanosecond];var r;return this.nn.tn(t).map((e=>vi(ai(li(e,Eh),n))))}O(e,t){const[n,r]=Si(e),o=this.nn.O(n+(t>0||r?1:0),t);if(void 0!==o)return li(o,Eh)}}const Tf="([+-])",Ef="(?:[.,](\\d{1,9}))?",If=`(?:(?:${Tf}(\\d{6}))|(\\d{4}))-?(\\d{2})`,Mf="(\\d{2})(?::?(\\d{2})(?::?(\\d{2})"+Ef+")?)?",Nf=Tf+Mf,Hf=If+"-?(\\d{2})(?:[T ]"+Mf+"(Z|"+Nf+")?)?",Cf="\\[(!?)([^\\]]*)\\]",Df=`((?:${Cf}){0,9})`,Of=Qs(If+Df),_f=Qs("(?:--)?(\\d{2})-?(\\d{2})"+Df),kf=Qs(Hf+Df),Lf=Qs("T?"+Mf+"(?:"+Nf+")?"+Df),Rf=Qs(Nf),Yf=new RegExp(Cf,"g"),Bf=Qs(`${Tf}?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?:(\\d+)${Ef}H)?(?:(\\d+)${Ef}M)?(?:(\\d+)${Ef}S)?)?`),Pf=yo((e=>new Il(Ml,{timeZone:e,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}))),jf=/^(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$/,Uf=/[^\w\/:+-]+/,xf=/^M(\d{2})(L?)$/,Zf=yo(ju),$f=yo((e=>new Il(Ml,{calendar:e,timeZone:df,era:"short",year:"numeric",month:"short",day:"numeric"}))),Vf={P(e,t,n){const r=Vi(n);let o,{years:i,months:a,weeks:s,days:u}=t;if(u+=Os(t,5)[0],i||a)o=((e,t,n,r,o)=>{let[i,a,s]=e.v(t);if(n){const[t,r]=e.q(i,a);i+=n,a=ku(t,r,e.L(i)),a=go("month",a,1,e.B(i),o)}return r&&([i,a]=e.un(i,a,r)),s=go("day",s,1,e.U(i,a),o),e.p(i,a,s)})(this,e,i,a,r);else{if(!s&&!u)return e;o=Ai(e)}if(void 0===o)throw new RangeError(oh);return o+=(7*s+u)*Sh,mi(Hi(o))},N(e,t,n){if(n<=7){let r=0,o=Eu({...e,...vl},{...t,...vl});return 7===n&&([r,o]=Bo(o,7)),{...ul,weeks:r,days:o}}const r=this.v(e),o=this.v(t);let[i,a,s]=((e,t,n,r,o,i,a)=>{let s=o-t,u=i-n,c=a-r;if(s||u){const h=Math.sign(s||u);let l=e.U(o,i),f=0;if(Math.sign(c)===-h){const r=l;[o,i]=e.un(o,i,-h),s=o-t,u=i-n,l=e.U(o,i),f=h<0?-r:l}if(c=a-Math.min(r,l)+f,s){const[r,a]=e.q(t,n),[c,l]=e.q(o,i);if(u=c-r||Number(l)-Number(a),Math.sign(u)===-h){const n=h<0&&-e.B(o);s=(o-=h)-t,u=i-ku(r,a,e.L(o))+(n||e.B(o))}}}return[s,u,c]})(this,...r,...o);return 8===n&&(a+=this.cn(i,r[0]),i=0),{...ul,years:i,months:a,days:s}},F(e,t){const n=Vi(t),r=uc(this,e),o=cc(this,e,r,n),i=hc(this,e,o,r,n);return ha(mi(this.V(r,o,i)),this.id||Kh)},K(e,t){const n=Vi(t),r=uc(this,e),o=cc(this,e,r,n);return la(gi(this.V(r,o,1)),this.id||Kh)},_(e,t){const n=Vi(t);let r,o,i,a=void 0!==e.eraYear||void 0!==e.year?uc(this,e):void 0;const s=!this.id;if(void 0===a&&s&&(a=Hl),void 0!==a){const t=cc(this,e,a,n);r=hc(this,e,t,a,n);const s=this.L(a);o=Lu(t,s),i=t===s}else{if(void 0===e.monthCode)throw new TypeError(zc);if([o,i]=Ou(e.monthCode),this.id&&this.id!==Gh&&this.id!==Jh)if(this.id&&"coptic"===tc(this.id)&&0===n){const t=i||13!==o?30:6;r=e.day,r=Lo(r,1,t)}else if(this.id&&"chinese"===tc(this.id)&&0===n){const t=!i||1!==o&&9!==o&&10!==o&&11!==o&&12!==o?30:29;r=e.day,r=Lo(r,1,t)}else r=e.day;else r=hc(this,e,cc(this,e,Hl,n),Hl,n)}const u=this.G(o,i,r);if(!u)throw new RangeError("Cannot guess year");const[c,h]=u;return fa(mi(this.V(c,h,r)),this.id||Kh)},fields(e){return Yu(this)&&e.includes("year")?[...e,...Rh]:e},k(e,t){const n=Object.assign(Object.create(null),e);return lc(n,t,jh),Yu(this)&&(lc(n,t,Yh),this.id===Jh&&lc(n,t,Vh,Rh)),n},inLeapYear(e){const[t]=this.v(e);return this.sn(t)},monthsInYear(e){const[t]=this.v(e);return this.B(t)},daysInMonth(e){const[t,n]=this.v(e);return this.U(t,n)},daysInYear(e){const[t]=this.v(e);return this.fn(t)},dayOfYear:Du,era(e){return this.hn(e)[0]},eraYear(e){return this.hn(e)[1]},monthCode(e){const[t,n]=this.v(e),[r,o]=this.q(t,n);return _u(r,o)},dayOfWeek:Yi,daysInWeek:()=>7},Ff={v:Di,hn:Bi,q:Oi},zf={dayOfYear:Du,v:Di,p:Ii},Kf=Object.assign({},zf,{weekOfYear:Hu,yearOfWeek:Cu,m(e){function t(e){return(7-e<r?7:0)-e}function n(e){const n=Li(f+e),r=e||1,o=t(Yo(u+n*r,7));return h=(n+(o-c)*r)/7}const r=this.id?1:4,o=Yi(e),i=this.dayOfYear(e),a=Yo(o-1,7),s=i-1,u=Yo(a-s,7),c=t(u);let h,l=Math.floor((s-c)/7)+1,f=e.isoYear;return l?l>n(0)&&(l=1,f++):(l=n(-1),f--),[l,f,h]}}),Gf=Object.assign({},Vf,Kf,{v:Di,hn:Bi,q:Oi,G(e,t){if(!t)return[Hl,e]},sn:Ri,L(){},B:_i,cn:e=>e*Cl,U:ki,fn:Li,V:(e,t,n)=>({isoYear:e,isoMonth:t,isoDay:n}),p:Ii,un:(e,t,n)=>(e+=Po(n,Cl),(t+=jo(n,Cl))<1?(e--,t+=Cl):t>Cl&&(e++,t-=Cl),[e,t]),year:e=>e.isoYear,month:e=>e.isoMonth,day:e=>e.isoDay}),Jf={v:Vu,hn:qu,q:zu},Wf={dayOfYear:Du,v:Vu,p:Fu,weekOfYear:Hu,yearOfWeek:Cu,m:()=>[]},qf=Object.assign({},Vf,Wf,{v:Vu,hn:qu,q:zu,G(e,t,n){const r=this.id&&"chinese"===tc(this.id)?((e,t,n)=>{if(t)switch(e){case 1:return 1651;case 2:return n<30?1947:1765;case 3:return n<30?1966:1955;case 4:return n<30?1963:1944;case 5:return n<30?1971:1952;case 6:return n<30?1960:1941;case 7:return n<30?1968:1938;case 8:return n<30?1957:1718;case 9:return 1832;case 10:return 1870;case 11:return 1814;case 12:return 1890}return 1972})(e,t,n):Hl;let[o,i,a]=Vu.call(this,{isoYear:r,isoMonth:Cl,isoDay:31});const s=Ku.call(this,o),u=i===s;1===(ko(e,Lu(i,s))||ko(Number(t),Number(u))||ko(n,a))&&o--;for(let r=0;r<100;r++){const i=o-r,a=Ku.call(this,i),s=ku(e,t,a);if(t===(s===a)&&n<=Ju.call(this,i,s))return[i,s]}},sn(e){const t=Gu.call(this,e);return t>Gu.call(this,e-1)&&t>Gu.call(this,e+1)},L:Ku,B:Wu,cn(e,t){const n=t+e,r=Math.sign(e),o=r<0?-1:0;let i=0;for(let e=t;e!==n;e+=r)i+=Wu.call(this,e+o);return i},U:Ju,fn:Gu,V(e,t,n){return Hi(Fu.call(this,e,t,n))},p:Fu,un(e,t,n){if(n){if(t+=n,!Number.isSafeInteger(t))throw new RangeError(oh);if(n<0)for(;t<1;)t+=Wu.call(this,--e);else{let n;for(;t>(n=Wu.call(this,e));)t-=n,e++}}return[e,t]},year(e){return this.h(e).year},month(e){const{year:t,o:n}=this.h(e),{u:r}=this.l(t);return r[n]+1},day(e){return this.h(e).day}}),Xf=nc(Ff,Jf),Qf=nc(Gf,qf),ed={...{era:Xo,eraYear:ti,year:ti,month:ri,monthCode(e){const t=Xo(e);return Ou(t),t},day:ri},...yh(Ch,ti),...yh(nl,ni),offset(e){const t=Xo(e);return Ps(t),t}},td=Co(Eo,Ch,ll),nd=Co(Eo,ll,Ch),rd="numeric",od=["timeZoneName"],id={month:rd,day:rd},ad={year:rd,month:rd},sd=Object.assign({},ad,{day:rd}),ud={hour:rd,minute:rd,second:rd},cd=Object.assign({},sd,ud),hd=Object.assign({},cd,{timeZoneName:"short"}),ld=Object.keys(ad),fd=Object.keys(id),dd=Object.keys(sd),gd=Object.keys(ud),md=["dateStyle"],yd=ld.concat(md),vd=fd.concat(md),pd=dd.concat(md,["weekday"]),wd=gd.concat(["dayPeriod","timeStyle","fractionalSecondDigits"]),Sd=pd.concat(wd),Ad=od.concat(wd),bd=od.concat(pd),Td=od.concat(["day","weekday"],wd),Ed=od.concat(["year","weekday"],wd),Id=yc(Sd,cd),Md=yc(Sd,hd),Nd=yc(Sd,cd,od),Hd=yc(pd,sd,Ad),Cd=yc(wd,ud,bd),Dd=yc(yd,ad,Td),Od=yc(vd,id,Ed),_d={},kd=new Il(void 0,{calendar:Kh}).resolvedOptions().calendar===Kh,Ld=[Id,ma],Rd=[Md,ma,0,(e,t)=>{const n=e.timeZone;if(t&&t.timeZone!==n)throw new RangeError(Xc);return n}],Yd=[Nd,Ai],Bd=[Hd,Ai],Pd=[Cd,e=>pi(e)/Th],jd=[Dd,Ai,kd],Ud=[Od,Ai,kd];let xd;function Zd(e,t,n,r,o){function i(){if(!(this instanceof i))throw new TypeError(Pc);gg(this,t(...arguments))}function a(e,t){return Object.defineProperties((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.call(this,s(this),...n)}),vo(t))}function s(t){const n=dg(t);if(!n||n.branding!==e)throw new TypeError(Pc);return n}return Object.defineProperties(i.prototype,{...wo(bo(a,n)),...po(bo(a,r)),...So("Temporal."+e)}),Object.defineProperties(i,{...po(o),...vo(e)}),[i,e=>{const t=Object.create(i.prototype);return gg(t,e),t},s]}function $d(e){if(dg(e)||void 0!==e.calendar||void 0!==e.timeZone)throw new TypeError("Invalid bag");return e}function Vd(e){return Fd(e)||Kh}function Fd(e){const{calendar:t}=e;if(void 0!==t)return zd(t)}function zd(e){if(mo(e)){const{calendar:t}=dg(e)||{};if(!t)throw new TypeError(Jc(e));return t}return(e=>ec(function(e){const t=Fs(e)||zs(e)||Ks(e);return t?t.calendar:e}(Qh(e))))(e)}function Kd(e){const t={};for(const n in e)t[n]=e=>{const{calendar:t}=e;return Qf(t)[n](e)};return t}function Gd(){throw new TypeError("Cannot use valueOf")}function Jd(e){if(mo(e)){const{timeZone:t}=dg(e)||{};if(!t)throw new TypeError(qc(e));return t}return(e=>nu(function(e){const t=Fs(e);return t&&(t.timeZone||t.j&&df||t.offset)||e}(Qh(e))))(e)}function Wd(e){if(mo(e)){const t=dg(e);return t&&t.branding===lf?t:function(e){const t=ic(e,rl);return ga(Cs({...ul,...t}))}(e)}return function(e){const t=(e=>{const t=Bf.exec(e);return t?(e=>{function t(e,t,i){let a=0,s=0;if(i&&([a,o]=Ro(o,Hh[i])),void 0!==e){if(r)throw new RangeError(fh(e));s=(e=>{const t=parseInt(e);if(!Number.isFinite(t))throw new RangeError(fh(e));return t})(e),n=1,t&&(o=Xs(t)*(Hh[i]/Eh),r=1)}return a+s}let n=0,r=0,o=0,i={...Ao(nl,[t(e[2]),t(e[3]),t(e[4]),t(e[5]),t(e[6],e[7],5),t(e[8],e[9],4),t(e[10],e[11],3)]),...Zo(o,2,nl)};if(!n)throw new RangeError(Yc(nl));return eu(e[1])<0&&(i=Ns(i)),i})(t):void 0})(Qh(e));if(!t)throw new RangeError(lh(e));return ga(Cs(t))}(e)}function qd(e){if(void 0!==e){if(mo(e)){const t=dg(e)||{};switch(t.branding){case cf:case af:return t;case sf:return ha(t)}const n=Vd(e);return{...rc(Jd,Sf,Qf(n),e),calendar:n}}return function(e){const t=Fs(Qh(e));if(!t)throw new RangeError(lh(e));if(t.timeZone)return xs(t,t.offset?Ps(t.offset):void 0);if(t.j)throw new RangeError(lh(e));return $s(t)}(e)}}function Xd(e,t){if(mo(e)){const n=dg(e)||{};switch(n.branding){case uf:return Vi(t),n;case sf:return Vi(t),da(n);case cf:return Vi(t),mc(Sf,n)}return function(e,t){return da(ac(ic(e,Dh,[],1),Vi(t)))}(e,t)}const n=function(e){let t,n=(e=>{const t=Lf.exec(e);return t?(qs(t[10]),Ws(t)):void 0})(Qh(e));if(!n){if(n=Fs(e),!n)throw new RangeError(lh(e));if(!n.C)throw new RangeError(lh(e));if(n.j)throw new RangeError(fh("Z"));Us(n)}if((t=zs(e))&&xi(t))throw new RangeError(lh(e));if((t=Ks(e))&&xi(t))throw new RangeError(lh(e));return da($i(n,1))}(e);return Vi(t),n}function Qd(e){return void 0===e?void 0:Xd(e)}function eg(e,t){if(mo(e)){const n=dg(e)||{};switch(n.branding){case sf:return Vi(t),n;case af:return Vi(t),ca({...n,...vl});case cf:return Vi(t),dc(Sf,n)}return function(e,t,n){const r=oc(e,t,$h,[],Ch),o=Vi(n);return ca(yi({...e.F(r,ra(o)),...ac(r,o)}))}(Qf(Vd(e)),e,t)}const n=function(e){const t=Fs(Qh(e));if(!t||t.j)throw new RangeError(lh(e));return ca(Zs(t))}(e);return Vi(t),n}function tg(e,t){if(mo(e)){const n=dg(e);if(n&&n.branding===of)return Vi(t),n;const r=Fd(e);return function(e,t,n,r){const o=oc(e,n,$h,Uh);return t&&void 0!==o.month&&void 0===o.monthCode&&void 0===o.year&&(o.year=Hl),e._(o,r)}(Qf(r||Kh),!r,e,t)}const n=function(e,t){const n=Ks(Qh(t));if(n)return Us(n),fa(Ui(n));const r=js(t,0,1),{calendar:o}=r,i=e(o),[a,s,u]=i.v(r),[c,h]=i.q(a,s),[l,f]=i.G(c,h,u);return fa(mi(i.V(l,f,u)),o)}(Qf,e);return Vi(t),n}function ng(e,t){if(mo(e)){const n=dg(e);return n&&n.branding===rf?(Vi(t),n):function(e,t,n,r){const o=oc(e,t,xh,r);return e.K(o,n)}(Qf(Vd(e)),e,t)}const n=function(e,t){const n=zs(Qh(t));if(n)return Us(n),la(gi(Ui(n)));const r=js(t,1);return la(ys(e(r.calendar),r))}(Qf,e);return Vi(t),n}function rg(e,t){if(mo(e)){const n=dg(e)||{};switch(n.branding){case af:return Vi(t),n;case sf:return Vi(t),ha(n);case cf:return Vi(t),gc(Sf,n)}return function(e,t,n){const r=oc(e,t,$h,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]);return e.F(r,n)}(Qf(Vd(e)),e,t)}const n=js(e);return Vi(t),n}function og(e,t){if(mo(e)){const n=dg(e);if(n&&n.branding===cf)return Fi(t),n;const r=Vd(e);return function(e,t,n,r,o,i){const a=oc(n,o,$h,_h,Lh),s=e(a.timeZone),[u,c,h]=Fi(i),l=n.F(a,ra(u)),f=ac(a,u);return ua(os(t(s),{...l,...f},void 0!==a.offset?Ps(a.offset):void 0,c,h),s,r)}(Jd,Sf,Qf(r),r,e,t)}return function(e,t){const n=Fs(Qh(e));if(!n||!n.timeZone)throw new RangeError(lh(e));const{offset:r}=n,o=r?Ps(r):void 0,[,i,a]=Fi(t);return xs(n,o,i,a)}(e,t)}function ig(e){return bo((e=>t=>e(ag(t))),e)}function ag(e){return pf(e,Sf)}function sg(e){if(mo(e)){const t=dg(e);if(t)switch(t.branding){case hf:return t;case cf:return sa(t.epochNanoseconds)}}return function(e){const t=Fs(e=Xo(e));if(!t)throw new RangeError(lh(e));let n;if(t.j)n=0;else{if(!t.offset)throw new RangeError(lh(e));n=Ps(t.offset)}return t.timeZone&&Gs(t.timeZone,1),sa(Ti(ji(t),n))}(e)}function ug(){function e(e,n){return new t(e,n)}function t(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.create(null);om.set(this,((e,t)=>{const n=new Il(e,t),r=n.resolvedOptions(),o=r.locale,i=Io(Object.keys(t),r),a=yo(lg),s=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];if(e){if(2!==r.length)throw new TypeError(dh);for(const e of r)if(void 0===e)throw new TypeError(dh)}e||void 0!==r[0]||(r=[]);const u=r.map((e=>dg(e)||Number(e)));let c,h=0;for(const e of u){const t="object"==typeof e?e.branding:void 0;if(h++&&t!==c)throw new TypeError(dh);c=t}return c?a(c)(o,i,...u):[n,...u]};return s.X=n,s})(e,t))}const n=Il.prototype,r=Object.getOwnPropertyDescriptors(n),o=Object.getOwnPropertyDescriptors(Il);for(const t in r){const n=r[t],o=t.startsWith("format")&&cg(t);"function"==typeof n.value?n.value="constructor"===t?e:o||hg(t):o&&(n.get=function(){var e=this;if(!om.has(this))throw new TypeError(Pc);return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return o.apply(e,n)}},Object.defineProperties(n.get,vo(`get ${t}`)))}return o.prototype.value=t.prototype=Object.create({},r),Object.defineProperties(e,o),e}function cg(e){return Object.defineProperties((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o=om.get(this),[i,...a]=o(e.includes("Range"),...n);return i[e](...a)}),vo(e))}function hg(e){return Object.defineProperties((function(){return om.get(this).X[e](...arguments)}),vo(e))}function lg(e){const t=Cg[e];if(!t)throw new TypeError((e=>`Cannot format ${e}`)(e));return vc(t,yo(pc),1)}const fg=new WeakMap,dg=fg.get.bind(fg),gg=fg.set.bind(fg),mg={era:function(e){if(void 0!==e)return Qh(e)},eraYear:$o,year:Fo,month:Vo,daysInMonth:Vo,daysInYear:Vo,inLeapYear:el,monthsInYear:Vo},yg={monthCode:Qh},vg={day:Vo},pg={dayOfWeek:Vo,dayOfYear:Vo,weekOfYear:function(e){if(void 0!==e)return Vo(e)},yearOfWeek:$o,daysInWeek:Vo},wg=Kd(Object.assign({},mg,yg,vg,pg)),Sg=Kd({...mg,...yg}),Ag=Kd({...yg,...vg}),bg={calendarId:e=>e.calendar},Tg=To((e=>t=>t[e]),nl.concat("sign")),Eg=To(((e,t)=>e=>e[ll[t]]),Ch),Ig={epochMilliseconds:ma,epochNanoseconds:function(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,r]=e,o=Math.floor(r/t),i=Nh/t;return BigInt(n)*BigInt(i)+BigInt(o)}(e.epochNanoseconds)}},[Mg,Ng,Hg]=Zd(lf,(function(){return ga(Cs(bo(ni,Ao(nl,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,arguments.length>9&&void 0!==arguments[9]?arguments[9]:0]))))}),{...Tg,blank:function(e){return!e.sign}},{with:(e,t)=>Ng(function(e,t){return ga((n=e,r=t,Cs({...n,...ic(r,rl)})));var n,r}(e,t)),negated:e=>Ng(Ms(e)),abs:e=>Ng(function(e){return-1===e.sign?Ms(e):e}(e)),add:(e,t,n)=>Ng(Is(qd,Qf,Sf,0,e,Wd(t),n)),subtract:(e,t,n)=>Ng(Is(qd,Qf,Sf,1,e,Wd(t),n)),round:(e,t)=>Ng(function(e,t,n,r,o){const i=Rs(r),[a,s,u,c,h]=((e,t,n)=>{e=na(e,_l);let r=Gl(e);const o=n(e[Yl]);let i=Xi(e);const a=nf(e,7);let s=Kl(e);if(void 0===r&&void 0===s)throw new RangeError(ch);if(null==s&&(s=0),null==r&&(r=Math.max(s,t)),aa(r,s),i=Qi(i,s,1),i>1&&s>5&&r!==s)throw new RangeError("For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit");return[r,s,i,a,o]})(o,i,e),l=Math.max(i,a);if(!h&&l<=6)return ga(Cs(((e,t,n,r,o)=>{const i=Ca(Os(e),n,r,o);return{...ul,..._s(i,t)}})(r,a,s,u,c)));if(!Ts(h)&&!r.sign)return r;if(!h)throw new RangeError(sh);const[f,d,g]=ws(t,n,h),m=Ss(g),y=As(g),v=bs(g),p=y(d,f,r);Ts(h)||(yi(f),yi(p));let w=v(d,f,p,a);const S=r.sign,A=Hs(w);if(S&&A&&S!==A)throw new RangeError(Gc);return w=Ha(w,m(p),a,s,u,c,d,f,m,y),ga(w)}(qd,Qf,Sf,e,t)),total:(e,t)=>function(e,t,n,r,o){const i=Rs(r),[a,s]=((e,t)=>{const n=t((e=na(e,kl))[Yl]);let r=Jl(e);return r=zo(kl,r),[r,n]})(o,e),u=Math.max(a,i);if(!s&&Es(u,s))return va(r,a);if(!s)throw new RangeError(sh);if(!r.sign)return 0;const[c,h,l]=ws(t,n,s),f=Ss(l),d=As(l),g=bs(l),m=d(h,c,r);Ts(s)||(yi(c),yi(m));const y=g(h,c,m,a);return Es(a,s)?va(y,a):((e,t,n,r,o,i,a)=>{const s=Hs(e),[u,c]=pa(r,hl(n,e),n,s,o,i,a),h=wa(t,u,c);return e[nl[n]]+h*s})(y,f(m),a,h,c,f,d)}(qd,Qf,Sf,e,t),toLocaleString(e,t,n){return Intl.DurationFormat?new Intl.DurationFormat(t,n).format(this):$a(e)},toString:$a,toJSON:e=>$a(e),valueOf:Gd},{from:e=>Ng(Wd(e)),compare:(e,t,n)=>function(e,t,n,r,o,i){const a=e(ta(i).relativeTo),s=Math.max(Rs(r),Rs(o));if(No(nl,r,o))return 0;if(Es(s,a))return ui(Os(r),Os(o));if(!a)throw new RangeError(sh);const[u,c,h]=ws(t,n,a),l=Ss(h),f=As(h);return ui(l(f(c,u,r)),l(f(c,u,o)))}(qd,Qf,Sf,Wd(e),Wd(t),n)}),Cg={Instant:Ld,PlainDateTime:Yd,PlainDate:Bd,PlainTime:Pd,PlainYearMonth:jd,PlainMonthDay:Ud},Dg=vc(Ld),Og=vc(Rd),_g=vc(Yd),kg=vc(Bd),Lg=vc(Pd),Rg=vc(jd),Yg=vc(Ud),[Bg,Pg]=Zd(uf,(function(){return da($i(bo(ti,Ao(ll,[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0])),1))}),Eg,{with(e,t,n){return Pg(function(e,t,n){return da(((e,t,n)=>ac({...Io(Dh,e),...ic(t,Dh)},Vi(n)))(e,t,n))}(this,$d(t),n))},add:(e,t)=>Pg(fs(0,e,Wd(t))),subtract:(e,t)=>Pg(fs(1,e,Wd(t))),until:(e,t,n)=>Ng(vu(0,e,Xd(t),n)),since:(e,t,n)=>Ng(vu(1,e,Xd(t),n)),round:(e,t)=>Pg(function(e,t){const[n,r,o]=Ki(t,5);var i;return da((i=o,ba(e,Ea(n,r),i)[0]))}(e,t)),equals:(e,t)=>function(e,t){return!cu(e,t)}(e,Xd(t)),toLocaleString(e,t,n){const[r,o]=Lg(t,n,e);return r.format(o)},toString:Za,toJSON:e=>Za(e),valueOf:Gd},{from:(e,t)=>Pg(Xd(e,t)),compare:(e,t)=>cu(Xd(e),Xd(t))}),[jg,Ug]=Zd(sf,Co((function(e,t,n,r){let o=arguments.length>10&&void 0!==arguments[10]?arguments[10]:Kh;return ca(yi(ji(bo(ti,Ao(dl,[t,n,r,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,arguments.length>9&&void 0!==arguments[9]?arguments[9]:0])))),e(o))}),Qu),{...bg,...wg,...Eg},{with:(e,t,n)=>Ug(function(e,t,n,r){const o=e(t.calendar),i=[...o.fields($h),...Ch].sort(),a={...fc(s=t),hour:s.isoHour,minute:s.isoMinute,second:s.isoSecond,millisecond:s.isoMillisecond,microsecond:s.isoMicrosecond,nanosecond:s.isoNanosecond};var s;const u=ic(n,i),c=Vi(r),h=o.k(a,u),l={...a,...u};return ca(yi({...o.F(h,ra(c)),...$i(td(l),c)}))}(Qf,e,$d(t),n)),withCalendar:(e,t)=>Ug(Sc(e,zd(t))),withPlainTime:(e,t)=>Ug(function(e){return ca(yi({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:vl}))}(e,Qd(t))),add:(e,t,n)=>Ug(cs(Qf,0,e,Wd(t),n)),subtract:(e,t,n)=>Ug(cs(Qf,1,e,Wd(t),n)),until:(e,t,n)=>Ng(du(Qf,0,e,eg(t),n)),since:(e,t,n)=>Ng(du(Qf,1,e,eg(t),n)),round:(e,t)=>Ug(function(e,t){return ca(Sa(e,...Ki(t)),e.calendar)}(e,t)),equals:(e,t)=>function(e,t){return!su(e,t)&&e.calendar===t.calendar}(e,eg(t)),toZonedDateTime:(e,t,n)=>qg(function(e,t,n,r){const o=((e,t,n,r)=>{const o=(e=>ql(ta(e)))(r);return is(e(t),n,o)})(e,n,t,r);return ua(vi(o),n,t.calendar)}(Sf,e,Jd(t),n)),toPlainDate:e=>Gg(ha(e)),toPlainTime:e=>Pg(da(e)),toLocaleString(e,t,n){const[r,o]=_g(t,n,e);return r.format(o)},toString:Pa,toJSON:e=>Pa(e),valueOf:Gd},{from:(e,t)=>Ug(eg(e,t)),compare:(e,t)=>su(eg(e),eg(t))}),[xg,Zg,$g]=Zd(of,Co((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Kh,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Hl;const i=ti(t),a=ti(n),s=e(r);return fa(mi(Ui({isoYear:ti(o),isoMonth:i,isoDay:a})),s)}),Qu),{...bg,...Ag},{with:(e,t,n)=>Zg(function(e,t,n,r){const o=e(t.calendar),i=o.fields($h).sort(),a=(e=>{const t=Xf(e.calendar),[n,r,o]=t.v(e),[i,a]=t.q(n,r);return{monthCode:_u(i,a),day:o}})(t),s=ic(n,i),u=o.k(a,s);return o._(u,r)}(Qf,e,$d(t),n)),equals:(e,t)=>function(e,t){return!uu(e,t)&&e.calendar===t.calendar}(e,tg(t)),toPlainDate(e,t){return Gg(function(e,t,n,r){return((e,t,n)=>sc(e,t,Fh,Ko(n),Bh))(e(t.calendar),n,r)}(Qf,e,this,t))},toLocaleString(e,t,n){const[r,o]=Yg(t,n,e);return r.format(o)},toString:xa,toJSON:e=>xa(e),valueOf:Gd},{from:(e,t)=>Zg(tg(e,t))}),[Vg,Fg,zg]=Zd(rf,Co((function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Kh,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const i=ti(t),a=ti(n),s=e(r);return la(gi(Ui({isoYear:i,isoMonth:a,isoDay:ti(o)})),s)}),Qu),{...bg,...Sg},{with:(e,t,n)=>Fg(function(e,t,n,r){const o=e(t.calendar),i=o.fields(xh).sort(),a=(e=>{const t=Xf(e.calendar),[n,r]=t.v(e),[o,i]=t.q(n,r);return{year:n,monthCode:_u(o,i)}})(t),s=ic(n,i),u=o.k(a,s);return o.K(u,r)}(Qf,e,$d(t),n)),add:(e,t,n)=>Fg(ls(Qf,0,e,Wd(t),n)),subtract:(e,t,n)=>Fg(ls(Qf,1,e,Wd(t),n)),until:(e,t,n)=>Ng(mu(Qf,0,e,ng(t),n)),since:(e,t,n)=>Ng(mu(Qf,1,e,ng(t),n)),equals:(e,t)=>function(e,t){return!uu(e,t)&&e.calendar===t.calendar}(e,ng(t)),toPlainDate(e,t){return Gg(function(e,t,n,r){return((e,t,n)=>sc(e,t,Zh,Ko(n),Uh))(e(t.calendar),n,r)}(Qf,e,this,t))},toLocaleString(e,t,n){const[r,o]=Rg(t,n,e);return r.format(o)},toString:Ua,toJSON:e=>Ua(e),valueOf:Gd},{from:(e,t)=>Fg(ng(e,t)),compare:(e,t)=>uu(ng(e),ng(t))}),[Kg,Gg,Jg]=Zd(af,Co((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Kh;return ha(mi(Ui(bo(ti,{isoYear:t,isoMonth:n,isoDay:r}))),e(o))}),Qu),{...bg,...wg},{with:(e,t,n)=>Gg(function(e,t,n,r){const o=e(t.calendar),i=o.fields($h).sort(),a=fc(t),s=ic(n,i),u=o.k(a,s);return o.F(u,r)}(Qf,e,$d(t),n)),withCalendar:(e,t)=>Gg(Sc(e,zd(t))),add:(e,t,n)=>Gg(hs(Qf,0,e,Wd(t),n)),subtract:(e,t,n)=>Gg(hs(Qf,1,e,Wd(t),n)),until:(e,t,n)=>Ng(gu(Qf,0,e,rg(t),n)),since:(e,t,n)=>Ng(gu(Qf,1,e,rg(t),n)),equals:(e,t)=>function(e,t){return!uu(e,t)&&e.calendar===t.calendar}(e,rg(t)),toZonedDateTime(e,t){const n=mo(t)?t:{timeZone:t};return qg(function(e,t,n,r,o){const i=e(o.timeZone),a=o.plainTime,s=void 0!==a?t(a):void 0,u=n(i);let c;return c=s?is(u,{...r,...s}):as(u,{...r,...vl}),ua(c,i,r.calendar)}(Jd,Xd,Sf,e,n))},toPlainDateTime:(e,t)=>Ug(function(e){return ca(yi({...e,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:vl}))}(e,Qd(t))),toPlainYearMonth(e){return Fg(function(e,t,n){return((e,t)=>{const n=oc(e,t,Zh);return e.K(n,void 0)})(e(t.calendar),n)}(Qf,e,this))},toPlainMonthDay(e){return Zg(function(e,t,n){return((e,t)=>{const n=oc(e,t,Fh);return e._(n)})(e(t.calendar),n)}(Qf,e,this))},toLocaleString(e,t,n){const[r,o]=kg(t,n,e);return r.format(o)},toString:ja,toJSON:e=>ja(e),valueOf:Gd},{from:(e,t)=>Gg(rg(e,t)),compare:(e,t)=>uu(rg(e),rg(t))}),[Wg,qg]=Zd(cf,Co((function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Kh;return ua(vi(hi(Qo(n))),t(r),e(o))}),Qu,(function(e){return nu(Qh(e))})),{...Ig,...bg,...ig(wg),...ig(Eg),offset:e=>qa(ag(e).offsetNanoseconds),offsetNanoseconds:e=>ag(e).offsetNanoseconds,timeZoneId:e=>e.timeZone,hoursInDay:e=>function(e,t){const n=e(t.timeZone),r=pf(t,n),[o,i]=Ia(r),a=fi(si(as(n,o),as(n,i)),Mh,1);if(a<=0)throw new RangeError(Gc);return a}(Sf,e)},{with:(e,t,n)=>qg(function(e,t,n,r,o){const{calendar:i,timeZone:a}=n,s=e(i),u=t(a),c=[...s.fields($h),...kh].sort(),h=(e=>{const t=pf(e,Sf),n=qa(t.offsetNanoseconds),r=Xf(e.calendar),[o,i,a]=r.v(t),[s,u]=r.q(o,i),c=_u(s,u);return{...nd(t),year:o,monthCode:c,day:a,offset:n}})(n),l=ic(r,c),f=s.k(h,l),d={...h,...l},[g,m,y]=Fi(o,2);return ua(os(u,{...s.F(f,ra(g)),...$i(td(d),g)},Ps(d.offset),m,y),a,i)}(Qf,Sf,e,$d(t),n)),withCalendar:(e,t)=>qg(Sc(e,zd(t))),withTimeZone:(e,t)=>qg(function(e,t){return{...e,timeZone:t}}(e,Jd(t))),withPlainTime:(e,t)=>qg(function(e,t,n){const r=t.timeZone,o=e(r),i={...pf(t,o),...n||vl};let a;return a=n?os(o,i,i.offsetNanoseconds,2):as(o,i),ua(a,r,t.calendar)}(Sf,e,Qd(t))),add:(e,t,n)=>qg(us(Qf,Sf,0,e,Wd(t),n)),subtract:(e,t,n)=>qg(us(Qf,Sf,1,e,Wd(t),n)),until:(e,t,n)=>Ng(ga(fu(Qf,Sf,0,e,og(t),n))),since:(e,t,n)=>Ng(ga(fu(Qf,Sf,1,e,og(t),n))),round:(e,t)=>qg(function(e,t,n){let{epochNanoseconds:r,timeZone:o,calendar:i}=t;const[a,s,u]=Ki(n);if(0===a&&1===s)return t;const c=e(o);if(6===a)r=((e,t,n,r)=>{const o=pf(n,t),[i,a]=e(o),s=n.epochNanoseconds,u=as(t,i),c=as(t,a);if(ci(s,u,c))throw new RangeError(Gc);return _a(wa(s,u,c),r)?c:u})(Ia,c,t,u);else{const e=c.R(r);r=os(c,Sa(Ni(r,e),a,s,u),e,2,0,1)}return ua(r,o,i)}(Sf,e,t)),startOfDay:e=>qg(function(e,t){const{timeZone:n,calendar:r}=t,o=((e,t,n)=>as(t,e(pf(n,t))))(Ma,e(n),t);return ua(o,n,r)}(Sf,e)),equals:(e,t)=>function(e,t){return!au(e,t)&&!!hu(e.timeZone,t.timeZone)&&e.calendar===t.calendar}(e,og(t)),toInstant:e=>Qg(function(e){return sa(e.epochNanoseconds)}(e)),toPlainDateTime:e=>Ug(dc(Sf,e)),toPlainDate:e=>Gg(gc(Sf,e)),toPlainTime:e=>Pg(mc(Sf,e)),toLocaleString(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o]=Og(t,n,e);return r.format(o)},toString:(e,t)=>Ba(Sf,e,t),toJSON:e=>Ba(Sf,e),valueOf:Gd,getTimeZoneTransition(e,t){const{timeZone:n,epochNanoseconds:r}=e,o=function(e){const t=na(e,Bl),n=ia(Bl,zl,t,0);if(!n)throw new RangeError(_c(Bl,n));return n}(t),i=Sf(n).O(r,o);return i?qg({...e,epochNanoseconds:i}):null}},{from:(e,t)=>qg(og(e,t)),compare:(e,t)=>au(og(e),og(t))}),[Xg,Qg,em]=Zd(hf,(function(e){return sa(vi(hi(Qo(e))))}),Ig,{add:(e,t)=>Qg(ss(0,e,Wd(t))),subtract:(e,t)=>Qg(ss(1,e,Wd(t))),until:(e,t,n)=>Ng(lu(0,e,sg(t),n)),since:(e,t,n)=>Ng(lu(1,e,sg(t),n)),round:(e,t)=>Qg(function(e,t){const[n,r,o]=Ki(t,5,1);return sa(Ca(e.epochNanoseconds,n,r,o,1))}(e,t)),equals:(e,t)=>function(e,t){return!iu(e,t)}(e,sg(t)),toZonedDateTimeISO:(e,t)=>qg(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Kh;return ua(e.epochNanoseconds,t,n)}(e,Jd(t))),toLocaleString(e,t,n){const[r,o]=Dg(t,n,e);return r.format(o)},toString:(e,t)=>Ya(Jd,Sf,e,t),toJSON:e=>Ya(Jd,Sf,e),valueOf:Gd},{from:e=>Qg(sg(e)),fromEpochMilliseconds:e=>Qg(function(e){return sa(vi(li(ni(e),Th)))}(e)),fromEpochNanoseconds:e=>Qg(function(e){return sa(vi(hi(Qo(e))))}(e)),compare:(e,t)=>iu(sg(e),sg(t))}),tm=Object.defineProperties({},{...So("Temporal.Now"),...po({timeZoneId:()=>Tc(),instant:()=>Qg(sa(bc())),zonedDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tc();return qg(ua(bc(),Jd(e),Kh))},plainDateTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tc();return Ug(ca(Ac(Sf(Jd(e))),Kh))},plainDateISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tc();return Gg(ha(Ac(Sf(Jd(e))),Kh))},plainTimeISO:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tc();return Pg(da(Ac(Sf(Jd(e)))))}})}),nm=Object.defineProperties({},{...So("Temporal"),...po({PlainYearMonth:Vg,PlainMonthDay:xg,PlainDate:Kg,PlainTime:Bg,PlainDateTime:jg,ZonedDateTime:Wg,Instant:Xg,Duration:Mg,Now:tm})}),rm=ug(),om=new WeakMap;function im(e){return e*Math.PI/180}function am(e){return 180*e/Math.PI}Object.create(Intl),po({DateTimeFormat:rm}),Object.defineProperties(globalThis,po({Temporal:nm})),Object.defineProperties(Intl,po({DateTimeFormat:rm})),Object.defineProperties(Date.prototype,po({toTemporalInstant:function(){const e=Date.prototype.valueOf.call(this);return Qg(sa(li(Jo(e),Th)))}}));class sm{constructor(e,t,n,r,o){this.locationName=null,this.setLocationName(e),this.setLatitude(t),this.setLongitude(n),this.setElevation(r),this.setTimeZone(o)}getElevation(){return this.elevation}setElevation(e){if("number"!=typeof e)throw new TypeError("Invalid elevation");if(e<0)throw new RangeError(`elevation ${e} must be zero or positive`);this.elevation=e}setLatitude(e){if("number"!=typeof e)throw new TypeError("Invalid latitude");if(e<-90||e>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);this.latitude=e}getLatitude(){return this.latitude}setLongitude(e){if("number"!=typeof e)throw new TypeError("Invalid longitude");if(e<-180||e>180)throw new RangeError(`Longitude ${e} out of range [-180,180]`);this.longitude=e}getLongitude(){return this.longitude}getLocationName(){return this.locationName}setLocationName(e){this.locationName=e}getTimeZone(){return this.timeZoneId}setTimeZone(e){if(!e)throw new RangeError("Invalid timeZoneId");this.timeZoneId=e}}const um=6356.9;class cm{constructor(e,t){this.date=t,this.geoLocation=e}getSunrise(){const e=this.getUTCSunrise0(cm.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(cm.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(cm.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(cm.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(cm.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(cm.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(cm.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(cm.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(cm.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(cm.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 am(Math.acos(um/(um+e/1e3)))}adjustZenith(e,t){let n=e;return e===cm.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}getUTCSunrise(e,t,n,r){const o=r?t.getElevation():0,i=this.adjustZenith(n,o);let a=cm.getSunriseUTC(cm.getJulianDay(e),t.getLatitude(),-t.getLongitude(),i);for(a/=60;a<0;)a+=24;for(;a>=24;)a-=24;return a}getUTCSunset(e,t,n,r){const o=r?t.getElevation():0,i=this.adjustZenith(n,o);let a=cm.getSunsetUTC(cm.getJulianDay(e),t.getLatitude(),-t.getLongitude(),i);for(a/=60;a<0;)a+=24;for(;a>=24;)a-=24;return a}getTemporalHour(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();if(null===e||null===t)return NaN;const n=t.epochMilliseconds-e.epochMilliseconds;return Math.floor(n/12)}getSunTransit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();const n=this.getTemporalHour(e,t);return cm.getTimeOffset(e,6*n)}getDateFromTime(e,t){if(isNaN(e))return null;let n=e,r=this.getAdjustedDate();const o=Math.trunc(n);n-=o;const i=Math.trunc(n*=60);n-=i;const a=Math.trunc(n*=60);n-=a;const s=Math.trunc(this.geoLocation.getLongitude()/15);return t&&s+o>18?r=r.add({days:-1}):!t&&s+o<6&&(r=r.add({days:1})),r.toZonedDateTime({timeZone:"UTC",plainTime:new Temporal.PlainTime(o,i,a,Math.trunc(1e3*n))}).withTimeZone(this.geoLocation.getTimeZone())}static getJulianDay(e){let{year:t,month:n}=e;const{day:r}=e;n<=2&&(t-=1,n+=12);const o=Math.trunc(t/100),i=Math.trunc(2-o+o/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+i-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-cm.JULIAN_DAY_JAN_1_2000)/cm.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*cm.JULIAN_DAYS_PER_CENTURY+cm.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=im(cm.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 cm.getSunGeometricMeanLongitude(e)+cm.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return cm.getSunTrueLongitude(e)-.00569-.00478*Math.sin(im(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 cm.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(im(t))}static getSunDeclination(e){const t=cm.getObliquityCorrection(e),n=cm.getSunApparentLongitude(e),r=Math.sin(im(t))*Math.sin(im(n));return am(Math.asin(r))}static getEquationOfTime(e){const t=cm.getObliquityCorrection(e),n=cm.getSunGeometricMeanLongitude(e),r=cm.getEarthOrbitEccentricity(e),o=cm.getSunGeometricMeanAnomaly(e);let i=Math.tan(im(t)/2);i*=i;const a=Math.sin(2*im(n)),s=Math.sin(im(o));return 4*am(i*a-2*r*s+4*r*i*s*Math.cos(2*im(n))-.5*i*i*Math.sin(4*im(n))-1.25*r*r*Math.sin(2*im(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=im(e),o=im(t);return Math.acos(Math.cos(im(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=im(e),o=im(t);return-Math.acos(Math.cos(im(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=cm.getJulianDay(e.toPlainDate()),o=cm.getJulianCenturiesFromJulianDay(r),i=cm.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=im(n-a),u=im(cm.getSunDeclination(o)),c=im(t);return am(Math.asin(Math.sin(c)*Math.sin(u)+Math.cos(c)*Math.cos(u)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=cm.getJulianDay(e.toPlainDate()),o=cm.getJulianCenturiesFromJulianDay(r),i=cm.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=im(n-a),u=im(cm.getSunDeclination(o)),c=im(t);return am(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(c)-Math.tan(u)*Math.cos(c))))+180}static getSunriseUTC(e,t,n,r){const o=cm.getJulianCenturiesFromJulianDay(e),i=cm.getSolarNoonUTC(o,n),a=cm.getJulianCenturiesFromJulianDay(e+i/1440);let s=cm.getEquationOfTime(a),u=cm.getSunDeclination(a),c=cm.getSunHourAngleAtSunrise(t,u,r),h=n-am(c),l=4*h,f=720+l-s;const d=cm.getJulianCenturiesFromJulianDay(cm.getJulianDayFromJulianCenturies(o)+f/1440);return s=cm.getEquationOfTime(d),u=cm.getSunDeclination(d),c=cm.getSunHourAngleAtSunrise(t,u,r),h=n-am(c),l=4*h,f=720+l-s,f}static getSolarNoonUTC(e,t){const n=cm.getJulianCenturiesFromJulianDay(cm.getJulianDayFromJulianCenturies(e)+t/360);let r=cm.getEquationOfTime(n);const o=720+4*t-r,i=cm.getJulianCenturiesFromJulianDay(cm.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=cm.getEquationOfTime(i),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=cm.getJulianCenturiesFromJulianDay(e),i=cm.getSolarNoonUTC(o,n),a=cm.getJulianCenturiesFromJulianDay(e+i/1440);let s=cm.getEquationOfTime(a),u=cm.getSunDeclination(a),c=cm.getSunHourAngleAtSunset(t,u,r),h=n-am(c),l=4*h,f=720+l-s;const d=cm.getJulianCenturiesFromJulianDay(cm.getJulianDayFromJulianCenturies(o)+f/1440);return s=cm.getEquationOfTime(d),u=cm.getSunDeclination(d),c=cm.getSunHourAngleAtSunset(t,u,r),h=n-am(c),l=4*h,f=720+l-s,f}}cm.GEOMETRIC_ZENITH=90,cm.CIVIL_ZENITH=96,cm.NAUTICAL_ZENITH=102,cm.ASTRONOMICAL_ZENITH=108,cm.JULIAN_DAY_JAN_1_2000=2451545,cm.JULIAN_DAYS_PER_CENTURY=36525;const hm=[["Ashdod","IL",31.79213,34.64966,"Asia/Jerusalem",27],["Atlanta","US",33.749,-84.38798,"America/New_York",336],["Austin","US",30.26715,-97.74306,"America/Chicago",165],["Baghdad","IQ",33.34058,44.40088,"Asia/Baghdad",41],["Beer Sheva","IL",31.25181,34.7913,"Asia/Jerusalem",285],["Berlin","DE",52.52437,13.41053,"Europe/Berlin",43],["Baltimore","US",39.29038,-76.61219,"America/New_York",35],["Bogota","CO",4.60971,-74.08175,"America/Bogota",2582],["Boston","US",42.35843,-71.05977,"America/New_York",38],["Budapest","HU",47.49801,19.03991,"Europe/Budapest",104],["Buenos Aires","AR",-34.61315,-58.37723,"America/Argentina/Buenos_Aires",31],["Buffalo","US",42.88645,-78.87837,"America/New_York",191],["Chicago","US",41.85003,-87.65005,"America/Chicago",180],["Cincinnati","US",39.162,-84.45689,"America/New_York",267],["Cleveland","US",41.4995,-81.69541,"America/New_York",204],["Dallas","US",32.78306,-96.80667,"America/Chicago",139],["Denver","US",39.73915,-104.9847,"America/Denver",1636],["Detroit","US",42.33143,-83.04575,"America/Detroit",192],["Eilat","IL",29.55805,34.94821,"Asia/Jerusalem",63],["Gibraltar","GI",36.14474,-5.35257,"Europe/Gibraltar",11],["Haifa","IL",32.81841,34.9885,"Asia/Jerusalem",40],["Hawaii","US",21.30694,-157.85833,"Pacific/Honolulu",18],["Helsinki","FI",60.16952,24.93545,"Europe/Helsinki",26],["Houston","US",29.76328,-95.36327,"America/Chicago",30],["Jerusalem","IL",31.76904,35.21633,"Asia/Jerusalem",786],["Johannesburg","ZA",-26.20227,28.04363,"Africa/Johannesburg",1767],["Kiev","UA",50.45466,30.5238,"Europe/Kiev",187],["La Paz","BO",-16.5,-68.15,"America/La_Paz",3782],["Livingston","US",40.79593,-74.31487,"America/New_York",98],["Las Vegas","US",36.17497,-115.13722,"America/Los_Angeles",613],["London","GB",51.50853,-.12574,"Europe/London",25],["Los Angeles","US",34.05223,-118.24368,"America/Los_Angeles",96],["Marseilles","FR",43.29695,5.38107,"Europe/Paris",28],["Miami","US",25.77427,-80.19366,"America/New_York",25],["Minneapolis","US",44.97997,-93.26384,"America/Chicago",262],["Melbourne","AU",-37.814,144.96332,"Australia/Melbourne",25],["Mexico City","MX",19.42847,-99.12766,"America/Mexico_City",2240],["Montreal","CA",45.50884,-73.58781,"America/Toronto",216],["Moscow","RU",55.75222,37.61556,"Europe/Moscow",144],["New York","US",40.71427,-74.00597,"America/New_York",57],["Omaha","US",41.25861,-95.93779,"America/Chicago",315],["Ottawa","CA",45.41117,-75.69812,"America/Toronto",71],["Panama City","PA",8.9936,-79.51973,"America/Panama",17],["Paris","FR",48.85341,2.3488,"Europe/Paris",42],["Pawtucket","US",41.87871,-71.38256,"America/New_York",0],["Petach Tikvah","IL",32.08707,34.88747,"Asia/Jerusalem",54],["Philadelphia","US",39.95233,-75.16379,"America/New_York",8],["Phoenix","US",33.44838,-112.07404,"America/Phoenix",366],["Pittsburgh","US",40.44062,-79.99589,"America/New_York",239],["Providence","US",41.82399,-71.41283,"America/New_York",0],["Portland","US",45.52345,-122.67621,"America/Los_Angeles",15],["Saint Louis","US",38.62727,-90.19789,"America/Chicago",149],["Saint Petersburg","RU",59.93863,30.31413,"Europe/Moscow",11],["San Diego","US",32.71533,-117.15726,"America/Los_Angeles",20],["San Francisco","US",37.77493,-122.41942,"America/Los_Angeles",28],["Sao Paulo","BR",-23.5475,-46.63611,"America/Sao_Paulo",769],["Seattle","US",47.60621,-122.33207,"America/Los_Angeles",56],["Sydney","AU",-33.86785,151.20732,"Australia/Sydney",58],["Tel Aviv","IL",32.08088,34.78057,"Asia/Jerusalem",15],["Tiberias","IL",32.79221,35.53124,"Asia/Jerusalem",0],["Toronto","CA",43.70011,-79.4163,"America/Toronto",175],["Vancouver","CA",49.24966,-123.11934,"America/Vancouver",70],["White Plains","US",41.03399,-73.76291,"America/New_York",82],["Washington DC","US",38.89511,-77.03637,"America/New_York",6],["Worcester","US",42.26259,-71.80229,"America/New_York",164]],lm=new Map,fm={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"},dm=new Map;class gm extends sm{constructor(e,t,n,r,o,i,a,s){const u="number"==typeof e?e:parseFloat(e);if(isNaN(u)||u<-90||u>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const c="number"==typeof t?t:parseFloat(t);if(isNaN(c)||c<-180||c>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);if(!r)throw new RangeError("Invalid timezone");super(o||null,u,c,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=i,this.geoid=a}getIsrael(){return this.il}getName(){return this.getLocationName()}getShortName(){const e=this.getLocationName();if(!e)return e;const t=e.indexOf(", ");if(-1===t)return e;if("US"===this.cc&&"D"===e[t+2]){if("C"===e[t+3])return e.substring(0,t+4);if("."===e[t+3]&&"C"===e[t+4])return e.substring(0,t+6)}return e.substring(0,t)}getCountryCode(){return this.cc}getTzid(){return this.getTimeZone()}getTimeFormatter(){return function(e){const t=dm.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return dm.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return lm.get(e.toLowerCase())}toString(){return JSON.stringify(this)}static legacyTzToTzid(e,t){if(e=+e,"none"===t){if(0===e)return"UTC";return`Etc/GMT${e>0?"+":""}${e}`}if(2===e&&"israel"===t)return"Asia/Jerusalem";if("eu"===t)switch(e){case-2:return"Atlantic/Cape_Verde";case-1:return"Atlantic/Azores";case 0:return"Europe/London";case 1:return"Europe/Paris";case 2:return"Europe/Athens"}else if("usa"===t)return fm[String(-1*e)]}static getUsaTzid(e,t,n){return 10===(t=+t)&&"AK"===e?"America/Adak":7===t&&"AZ"===e?"Y"===n?"America/Denver":"America/Phoenix":fm[t]}static addLocation(e,t){const n=e.toLowerCase();return!lm.has(n)&&(lm.set(n,t),!0)}}for(const e of hm){const t=new gm(e[2],e[3],"IL"===e[1],e[4],e[0],e[1],void 0,e[5]);gm.addLocation(e[0],t)}function mm(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}class ym{constructor(e,t,n){const r=function(e){if(u(e))return e;if(de.isHDate(e))return e.greg();throw new TypeError(`invalid date: ${e}`)}(t);this.date=r,this.gloc=e;const o=Temporal.PlainDate.from({year:r.getFullYear(),month:r.getMonth()+1,day:r.getDate()});this.noaa=new cm(e,o),this.useElevation=Boolean(n)}getUseElevation(){return this.useElevation}setUseElevation(e){this.useElevation=e}timeAtAngle(e,t){const n=90+e;return mm(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return mm(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return mm(this.noaa.getSeaLevelSunrise())}sunset(){return mm(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return mm(this.noaa.getSeaLevelSunset())}dawn(){return mm(this.noaa.getBeginCivilTwilight())}dusk(){return mm(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new ym(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise().getTime()-this.gregEve().getTime())/12}chatzot(){const e=this.noaa.getSeaLevelSunrise(),t=this.noaa.getSeaLevelSunset();return mm(this.noaa.getSunTransit(e,t))}chatzotNight(){return new Date(this.sunrise().getTime()-6*this.nightHour())}alotHaShachar(){return this.timeAtAngle(16.1,!0)}alotHaShachar72(){return this.sunriseOffset(-72,!1,!1)}misheyakir(){return this.timeAtAngle(11.5,!0)}misheyakirMachmir(){return this.timeAtAngle(10.2,!0)}getShaahZmanisBasedZman(e){const t=this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise(),n=this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset(),r=this.noaa.getTemporalHour(t,n),o=Math.round(r*e);return mm(cm.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}getTemporalHour72(e){const t=this.sunriseOffset(-72,!1,e),n=(this.sunsetOffset(72,!1,e).getTime()-t.getTime())/12;return[t,n]}getTemporalHourByDeg(e){const t=this.timeAtAngle(e,!0),n=(this.timeAtAngle(e,!1).getTime()-t.getTime())/12;return[t,n]}sofZmanShmaMGA(){const[e,t]=this.getTemporalHour72(!0),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanShmaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanShmaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8),n=Math.floor(3*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA(){const[e,t]=this.getTemporalHour72(!0),n=Math.floor(4*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA16Point1(){const[e,t]=this.getTemporalHourByDeg(16.1),n=Math.floor(4*t);return new Date(e.getTime()+n)}sofZmanTfillaMGA19Point8(){const[e,t]=this.getTemporalHourByDeg(19.8),n=Math.floor(4*t);return new Date(e.getTime()+n)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaGedolaMGA(){const[e,t]=this.getTemporalHour72(!1),n=Math.floor(6.5*t);return new Date(e.getTime()+n)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}minchaKetanaMGA(){const[e,t]=this.getTemporalHour72(!1);return new Date(e.getTime()+Math.floor(9.5*t))}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(e=8.5){return this.timeAtAngle(e,!1)}neitzHaChama(){return this.sunrise()}shkiah(){return this.sunset()}beinHaShmashos(){const e=this.tzeit(7.083),t=e.getTime();return isNaN(t)?e:new Date(t-81e4)}static formatTime(e,t){if(isNaN(e.getTime()))return"XX:XX";const n=t.format(e),r=n.split(":");return"24"===r[0]?"00:"+r[1]:n}static roundTime(e){const t=e.getTime();if(isNaN(t))return e;const n=e.getMilliseconds(),r=e.getSeconds();if(0===r&&0===n)return e;const o=1e3*r+n;return new Date(t+(o>=3e4?6e4-o:-1*o))}static timeZoneOffset(e,t){const n=function(e,t){const n=K("UTC",t),r=K(e,t),o=new Date(n).getTime()-new Date(r).getTime();return Math.ceil(o/1e3/60)}(e,t),r=Math.abs(n),o=r%60;return(n<0?"+":"-")+V(Math.floor(r/60))+":"+V(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?"0000-00-00T00:00:00Z":K(e,t).substring(0,19)+ym.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 ym(e,t,n).sunset();let o=new de(t);const i=r.getTime();return isNaN(i)||t.getTime()>=i&&(o=o.next()),o}}const vm={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 pm(e,t,n){var r;if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const o=(null===(r=null==n?void 0:n.location)||void 0===r?void 0:r.getCountryCode())||((null==n?void 0:n.il)?"IL":"US"),i=null==n?void 0:n.hour12;if(void 0!==i&&!i)return e;if(!i&&void 0===vm[o])return e;const a=e.split(":");let s=parseInt(a[0],10);return s<12&&t?(t=t.replace("p","a").replace("P","A"),0===s&&(s=12)):s>12?s%=12:0===s&&(s="00"),`${s}:${a[1]}${t}`}class wm extends Ee{constructor(e,t,n,r,o,i,a){super(e,t,n),this.eventTime=ym.roundTime(r),this.location=o;const s=o.getTimeFormatter();this.eventTimeStr=ym.formatTime(this.eventTime,s);const u=Object.assign(Object.assign({},a),{location:o});this.fmtTime=pm(this.eventTimeStr,"pm",u),void 0!==i&&(this.linkedEvent=i)}render(e){return ie.gettext(this.getDesc(),e)+": "+this.fmtTime}renderBrief(e){return ie.gettext(this.getDesc(),e)}getCategories(){switch(this.getDesc()){case"Candle lighting":return["candles"];case"Havdalah":return["havdalah"];case"Fast begins":case"Fast ends":return["zmanim","fast"]}return["unknown"]}}class Sm extends wm{constructor(e,t,n,r,o,i){super(e,"Candle lighting",t,n,r,o,i)}getEmoji(){return"🕯️"}}class Am extends wm{constructor(e,t,n,r,o,i,a){super(e,"Havdalah",t,n,r,i,a),o&&(this.havdalahMins=o)}render(e){return this.renderBrief(e)+": "+this.fmtTime}renderBrief(e){let t=ie.gettext(this.getDesc(),e);if(this.havdalahMins){const n=ie.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}const bm=f.NISAN,Tm=f.IYYAR,Em=f.SIVAN,Im=f.ELUL,Mm=f.TISHREI,Nm=f.CHESHVAN,Hm=f.KISLEV,Cm=f.SHVAT,Dm=f.ADAR_II,Om=be.CHAG,_m=be.LIGHT_CANDLES,km=be.YOM_TOV_ENDS,Lm=be.CHUL_ONLY,Rm=be.IL_ONLY,Ym=be.LIGHT_CANDLES_TZEIS,Bm=be.MINOR_HOLIDAY,Pm=be.EREV,jm=be.CHOL_HAMOED,Um="🫓",xm="🌿🍋",Zm="Rosh Hashana II",$m="Erev Yom Kippur",Vm="Yom Kippur",Fm="Erev Sukkot",zm="Sukkot I",Km="Sukkot II",Gm="Sukkot III (CH''M)",Jm="Sukkot IV (CH''M)",Wm="Sukkot V (CH''M)",qm="Sukkot VI (CH''M)",Xm="Shmini Atzeret",Qm="Simchat Torah",ey="Sukkot II (CH''M)",ty="Sukkot VII (Hoshana Raba)",ny="Chanukah: 1 Candle",ry="Tu BiShvat",oy="Erev Purim",iy="Purim",ay="Shushan Purim",sy="Erev Pesach",uy="Pesach I",cy="Pesach II",hy="Pesach II (CH''M)",ly="Pesach III (CH''M)",fy="Pesach IV (CH''M)",dy="Pesach V (CH''M)",gy="Pesach VI (CH''M)",my="Pesach VII",yy="Pesach VIII",vy="Pesach Sheni",py="Lag BaOmer",wy="Erev Shavuot",Sy="Shavuot",Ay="Shavuot I",by="Shavuot II",Ty="Tu B'Av",Ey="Rosh Hashana LaBehemot",Iy="Erev Rosh Hashana",My="Yom Yerushalayim",Ny="Ben-Gurion Day",Hy="Family Day",Cy="Yitzhak Rabin Memorial Day",Dy="Herzl Day",Oy="Jabotinsky Day",_y="Sigd",ky="Yom HaAliyah",Ly="Yom HaAliyah School Observance",Ry="Hebrew Language Day",Yy={ASARA_BTEVET:"Asara B'Tevet",BIRKAT_HACHAMAH:"Birkat Hachamah",CHAG_HABANOT:"Chag HaBanot",CHANUKAH_8TH_DAY:"Chanukah: 8th Day",EREV_TISHA_BAV:"Erev Tish'a B'Av",LEIL_SELICHOT:"Leil Selichot",PURIM_KATAN:"Purim Katan",PURIM_MESHULASH:"Purim Meshulash",SHABBAT_CHAZON:"Shabbat Chazon",SHABBAT_HACHODESH:"Shabbat HaChodesh",SHABBAT_HAGADOL:"Shabbat HaGadol",SHABBAT_NACHAMU:"Shabbat Nachamu",SHABBAT_PARAH:"Shabbat Parah",SHABBAT_SHEKALIM:"Shabbat Shekalim",SHABBAT_SHIRAH:"Shabbat Shirah",SHABBAT_SHUVA:"Shabbat Shuva",SHABBAT_ZACHOR:"Shabbat Zachor",SHUSHAN_PURIM_KATAN:"Shushan Purim Katan",TAANIT_BECHOROT:"Ta'anit Bechorot",TAANIT_ESTHER:"Ta'anit Esther",TISHA_BAV:"Tish'a B'Av",TZOM_GEDALIAH:"Tzom Gedaliah",TZOM_TAMMUZ:"Tzom Tammuz",YOM_HAATZMA_UT:"Yom HaAtzma'ut",YOM_HASHOAH:"Yom HaShoah",YOM_HAZIKARON:"Yom HaZikaron",BEN_GURION_DAY:Ny,CHANUKAH_1_CANDLE:ny,EREV_PESACH:sy,EREV_PURIM:oy,EREV_ROSH_HASHANA:Iy,EREV_SHAVUOT:wy,EREV_SUKKOT:Fm,EREV_YOM_KIPPUR:$m,FAMILY_DAY:Hy,HEBREW_LANGUAGE_DAY:Ry,HERZL_DAY:Dy,JABOTINSKY_DAY:Oy,LAG_BAOMER:py,PESACH_I:uy,PESACH_II:cy,PESACH_III_CHM:ly,PESACH_II_CHM:hy,PESACH_IV_CHM:fy,PESACH_SHENI:vy,PESACH_VII:my,PESACH_VIII:yy,PESACH_VI_CHM:gy,PESACH_V_CHM:dy,PURIM:iy,ROSH_HASHANA_II:Zm,ROSH_HASHANA_LABEHEMOT:Ey,SHAVUOT:Sy,SHAVUOT_I:Ay,SHAVUOT_II:by,SHMINI_ATZERET:Xm,SHUSHAN_PURIM:ay,SIGD:_y,SIMCHAT_TORAH:Qm,SUKKOT_I:zm,SUKKOT_II:Km,SUKKOT_III_CHM:Gm,SUKKOT_II_CHM:ey,SUKKOT_IV_CHM:Jm,SUKKOT_VII_HOSHANA_RABA:ty,SUKKOT_VI_CHM:qm,SUKKOT_V_CHM:Wm,TU_BAV:Ty,TU_BISHVAT:ry,YITZHAK_RABIN_MEMORIAL_DAY:Cy,YOM_HAALIYAH:ky,YOM_HAALIYAH_SCHOOL_OBSERVANCE:Ly,YOM_KIPPUR:Vm,YOM_YERUSHALAYIM:My},By=[{mm:Mm,dd:2,desc:Zm,flags:Om|km,emoji:"🍏🍯"},{mm:Mm,dd:9,desc:$m,flags:Pm|_m},{mm:Mm,dd:10,desc:Vm,flags:Om|be.MAJOR_FAST|km},{mm:Mm,dd:14,desc:Fm,flags:Lm|Pm|_m,emoji:xm},{mm:Mm,dd:15,desc:zm,flags:Lm|Om|Ym,emoji:xm},{mm:Mm,dd:16,desc:Km,flags:Lm|Om|km,emoji:xm},{mm:Mm,dd:17,desc:Gm,flags:Lm|jm,chmDay:1,emoji:xm},{mm:Mm,dd:18,desc:Jm,flags:Lm|jm,chmDay:2,emoji:xm},{mm:Mm,dd:19,desc:Wm,flags:Lm|jm,chmDay:3,emoji:xm},{mm:Mm,dd:20,desc:qm,flags:Lm|jm,chmDay:4,emoji:xm},{mm:Mm,dd:22,desc:Xm,flags:Lm|Om|Ym},{mm:Mm,dd:23,desc:Qm,flags:Lm|Om|km},{mm:Mm,dd:14,desc:Fm,flags:Rm|Pm|_m,emoji:xm},{mm:Mm,dd:15,desc:zm,flags:Rm|Om|km,emoji:xm},{mm:Mm,dd:16,desc:ey,flags:Rm|jm,chmDay:1,emoji:xm},{mm:Mm,dd:17,desc:Gm,flags:Rm|jm,chmDay:2,emoji:xm},{mm:Mm,dd:18,desc:Jm,flags:Rm|jm,chmDay:3,emoji:xm},{mm:Mm,dd:19,desc:Wm,flags:Rm|jm,chmDay:4,emoji:xm},{mm:Mm,dd:20,desc:qm,flags:Rm|jm,chmDay:5,emoji:xm},{mm:Mm,dd:22,desc:Xm,flags:Rm|Om|km},{mm:Mm,dd:21,desc:ty,flags:_m|jm,chmDay:-1,emoji:xm},{mm:Hm,dd:24,desc:ny,flags:Pm|Bm|be.CHANUKAH_CANDLES,emoji:"🕎1️⃣"},{mm:Cm,dd:15,desc:ry,flags:Bm,emoji:"🌳"},{mm:Dm,dd:13,desc:oy,flags:Pm|Bm,emoji:"🎭️📜"},{mm:Dm,dd:14,desc:iy,flags:Bm,emoji:"🎭️📜"},{mm:Dm,dd:15,desc:ay,flags:Bm,emoji:"🎭️📜"},{mm:bm,dd:14,desc:sy,flags:Rm|Pm|_m,emoji:"🫓🍷"},{mm:bm,dd:15,desc:uy,flags:Rm|Om|km,emoji:Um},{mm:bm,dd:16,desc:hy,flags:Rm|jm,chmDay:1,emoji:Um},{mm:bm,dd:17,desc:ly,flags:Rm|jm,chmDay:2,emoji:Um},{mm:bm,dd:18,desc:fy,flags:Rm|jm,chmDay:3,emoji:Um},{mm:bm,dd:19,desc:dy,flags:Rm|jm,chmDay:4,emoji:Um},{mm:bm,dd:20,desc:gy,flags:Rm|jm|_m,chmDay:5,emoji:Um},{mm:bm,dd:21,desc:my,flags:Rm|Om|km,emoji:Um},{mm:bm,dd:14,desc:sy,flags:Lm|Pm|_m,emoji:"🫓🍷"},{mm:bm,dd:15,desc:uy,flags:Lm|Om|Ym,emoji:"🫓🍷"},{mm:bm,dd:16,desc:cy,flags:Lm|Om|km,emoji:Um},{mm:bm,dd:17,desc:ly,flags:Lm|jm,chmDay:1,emoji:Um},{mm:bm,dd:18,desc:fy,flags:Lm|jm,chmDay:2,emoji:Um},{mm:bm,dd:19,desc:dy,flags:Lm|jm,chmDay:3,emoji:Um},{mm:bm,dd:20,desc:gy,flags:Lm|jm|_m,chmDay:4,emoji:Um},{mm:bm,dd:21,desc:my,flags:Lm|Om|Ym,emoji:Um},{mm:bm,dd:22,desc:yy,flags:Lm|Om|km,emoji:Um},{mm:Tm,dd:14,desc:vy,flags:Bm},{mm:Tm,dd:18,desc:py,flags:Bm,emoji:"🔥"},{mm:Em,dd:5,desc:wy,flags:Pm|_m,emoji:"⛰️🌸"},{mm:Em,dd:6,desc:Sy,flags:Rm|Om|km,emoji:"⛰️🌸"},{mm:Em,dd:6,desc:Ay,flags:Lm|Om|Ym,emoji:"⛰️🌸"},{mm:Em,dd:7,desc:by,flags:Lm|Om|km,emoji:"⛰️🌸"},{mm:f.AV,dd:15,desc:Ty,flags:Bm,emoji:"❤️"},{mm:Im,dd:1,desc:Ey,flags:Bm,emoji:"🐑"},{mm:Im,dd:29,desc:Iy,flags:Pm|_m,emoji:"🍏🍯"}],Py=[{firstYear:5727,mm:Tm,dd:28,desc:My,chul:!0},{firstYear:5737,mm:Hm,dd:6,desc:Ny,satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:Cm,dd:30,desc:Hy},{firstYear:5758,mm:Nm,dd:12,desc:Cy,friSatMovetoThu:!0},{firstYear:5764,mm:Tm,dd:10,desc:Dy,satPostponeToSun:!0},{firstYear:5765,mm:f.TAMUZ,dd:29,desc:Oy,satPostponeToSun:!0},{firstYear:5769,mm:Nm,dd:29,desc:_y,chul:!0,suppressEmoji:!0,friSatMovetoThu:!0},{firstYear:5777,mm:bm,dd:10,desc:ky,chul:!0},{firstYear:5777,mm:Nm,dd:7,desc:Ly},{firstYear:5773,mm:f.TEVET,dd:21,desc:Ry,friSatMovetoThu:!0}];class jy extends Ee{basename(){return this.getDesc().replace(/ \d{4}$/,"").replace(/ \(CH''M\)$/,"").replace(/ \(observed\)$/,"").replace(/ \(Hoshana Raba\)$/,"").replace(/ [IV]+$/,"").replace(/: \d Candles?$/,"").replace(/: 8th Day$/,"").replace(/^Erev /,"")}url(){if(this.getDate().greg().getFullYear()<100)return;const e="https://www.hebcal.com/holidays/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+this.urlDateSuffix();return this.getFlags()&be.IL_ONLY?e+"?i=on":e}urlDateSuffix(){const e=this.getDate().greg().getFullYear();return String(e)}getEmoji(){return this.emoji?this.emoji:this.getFlags()&be.SPECIAL_SHABBAT?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;switch(this.getDesc()){case Yy.LAG_BAOMER:case Yy.LEIL_SELICHOT:case Yy.PESACH_SHENI:case Yy.EREV_PURIM:case Yy.PURIM_KATAN:case Yy.SHUSHAN_PURIM:case Yy.TU_BAV:case Yy.TU_BISHVAT:case Yy.ROSH_HASHANA_LABEHEMOT:return["holiday","minor"]}return["holiday","major"]}render(e){return super.render(e).replace(/'/g,"’")}renderBrief(e){return super.renderBrief(e).replace(/'/g,"’")}clone(){const e=new jy(this.date,this.desc,this.mask);return Object.assign(e,this),e}}class Uy extends jy{urlDateSuffix(){return G(this.getDate().greg()).replace(/-/g,"")}}class xy extends jy{urlDateSuffix(){const e=this.getDate().greg();let t=e.getFullYear();return 0===e.getMonth()&&t--,String(t)}}class Zy extends jy{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return ie.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const $y="Rosh Chodesh";class Vy extends jy{constructor(e,t){super(e,`${$y} ${t}`,be.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13),n=ie.gettext(t,e).replace(/'/g,"’");return ie.gettext($y,e)+" "+n}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}const Fy=be.LIGHT_CANDLES,zy=be.LIGHT_CANDLES_TZEIS;function Ky(e,t,n,r,o){let i=!1,a=o,s=e?e.getFlags():Fy;void 0!==e?r||(s&(zy|be.CHANUKAH_CANDLES)?a=!0:s&be.YOM_TOV_ENDS&&(i=!0,a=!0)):o&&(i=!0,s=zy);const u=Number(a?n.havdalahMins:n.candleLightingMins),c=n.location,h=Boolean(n.useElevation),l=new ym(c,t,h),f=a&&!u?l.tzeit(n.havdalahDeg):l.sunsetOffset(u,!0);if(!isNaN(f.getTime()))return i?new Am(t,s,f,c,n.havdalahMins,e,n):(s|=Fy,new Sm(t,s,f,c,e,n))}const Gy="Fast begins",Jy="Fast ends";class Wy extends jy{constructor(e,t,n){super(e.getDate(),e.getDesc(),e.getFlags()),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 qy(e,t,n,r){const o=r.location,i=e.getDate();return new wm(i,n,e.getFlags(),t,o,e,r)}class Xy extends xy{constructor(e,t,n,r,o){super(e,t,n),this.eventTime=ym.roundTime(r);const i=o.getTimeFormatter();this.eventTimeStr=ym.formatTime(this.eventTime,i),this.location=o}}const Qy=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ev=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],tv=["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],nv="בַּלַּ֥יְלָה";class rv{constructor(e,t){this.m=function(e,t){let n=t-7;n<0&&(n+=T(e));const r=235*Math.floor((e-1)/19)+(e-1)%19*12+Math.floor(((e-1)%19*7+1)/19)+n,o=204+Math.floor(r%1080*793),i=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,a=(o%1080+i%24*1080)%1080;return{year:e,month:t,dayOfWeek:(1+29*r+Math.floor(i/24))%7,hour:i%24,minutes:Math.floor(a/18),chalakim:a%18}}(e,t)}getYear(){return this.m.year}getMonth(){return this.m.month}getMonthName(){return de.getMonthName(this.m.month,this.m.year)}getDow(){return this.m.dayOfWeek}getHour(){return this.m.hour}getMinutes(){return this.m.minutes}getChalakim(){return this.m.chalakim}render(e,t){var n;"string"==typeof(e=null!=e?e:ie.getLocaleName())&&(e=e.toLowerCase());const r="he"===e||"he-x-nonikud"===e||"h"===e,o="fr"===e,i=ie.gettext(this.getMonthName(),e),a=(r?ev:o?tv:Qy)[this.getDow()],s=this.getMinutes(),u=this.getHour(),c=this.getChalakim(),h=ie.gettext("Molad",e),l=null!==(n=ie.lookupTranslation("min",e))&&void 0!==n?n:"minutes",f=ie.gettext("chalakim",e),d=ie.gettext("and",e),g=ie.gettext("after",e);if(r){const t=function(e){return e<5?nv:e<12?"בַּבֹּקֶר":e<17?"בַּצׇּהֳרַיִים":e<21?"בָּעֶרֶב":nv}(u),n=`${h} ${i} יִהְיֶה בַּיּוֹם ${a} בשָׁבוּעַ, בְּשָׁעָה ${u} ${t}, ו-${s} ${l} ו-${c} ${f}`;return"he-x-nonikud"===e?ie.hebrewStripNikkud(n):n}const m=pm(`${u}:00`,"pm",t);return`${h} ${i.replace(/'/g,"’")}: ${a}, ${s} ${l} ${d} ${c} ${f} ${g} ${m}`}}class ov extends Ee{constructor(e,t,n,r){const o=new rv(t,n);super(e,`Molad ${o.getMonthName()} ${t}`,be.MOLAD),this.molad=o,this.options=r}render(e){return this.molad.render(e,this.options)}}const iv={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 av(e){return[Math.floor((e-1)/7)+1,e%7||7]}const sv=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],uv=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָּׁה","שִׁשָּׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],cv="שְׁנֵי",hv="יָמִים",lv=cv+" "+hv,fv="שָׁבוּעוֹת",dv="יוֹם",gv=dv+" "+uv[1],mv="עָשָׂר";class yv extends Ee{constructor(e,t){super(e,`Omer ${t}`,be.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]=av(this.omer),r=iv[e],o=r.pfxWords,i=r.words,a=o?o[t]:i[t];return(i[n]+" "+(o?"":2===t||6===t?r.infix26:r.infix)+a).normalize()}render(e){"string"==typeof(e=null!=e?e:ie.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e||"h"===e,n=this.omer;return(t?x(n):ie.ordinal(n,e))+" "+ie.gettext("day of the Omer",e)}renderBrief(e){return ie.gettext("Omer",e)+" "+ie.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){"string"==typeof(e=null!=e?e:ie.getLocaleName())&&(e=e.toLowerCase());const t="he"===e||"he-x-nonikud"===e?function(e){const t=Math.floor(e/10),n=e%10;let r="הַיּוֹם ";if(11===e?r+="אַחַד "+mv:12===e?r+="שְׁנֵים "+mv:12<e&&e<20?r+=uv[n]+" "+mv:e>9&&(r+=uv[n],n&&(r+=" ",r+=3===t?"וּ":"וְ")),e>2?((e>20||10===e||20===e)&&(r+=sv[t]),r+=e<11?uv[n]+" "+hv+" ":" יוֹם "):r+=1===e?gv+" ":lv+" ",e>6){r=r.trim(),r+=", שֶׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?uv[t]+" "+fv+" ":1===t?"שָׁבֽוּעַ "+uv[1]+" ":cv+" "+fv+" ",n&&(r+=2===n||3===n?"וּ":5===n?"וַ":"וְ",r+=n>2?uv[n]+" "+hv+" ":1===n?gv+" ":lv+" ")}return r+="לָעֽוֹמֶר",r.normalize()}(this.omer):function(e){const[t,n]=av(e);let r=`Today is ${e} ${1===e?"day":"days"}`;if(t>1||7===e){const e=7===n,o=e?t:t-1;r+=`, which is ${o} ${1===o?"week":"weeks"}`,e||(r+=` and ${n} ${1===n?"day":"days"}`)}return r+" of the Omer"}(this.omer);return"he-x-nonikud"===e?ie.hebrewStripNikkud(t):t}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}function vv(e,t){const n=null!=t?t:ie.getLocaleName();let r=ie.gettext(e[0],n);if(2===e.length){r+=("he"===n?"־":"-")+ie.gettext(e[1],n)}r=r.replace(/'/g,"’");return(ie.gettext("Parashat",t)+" "+r).normalize()}class pv extends Map{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=e.maxSize,this.maxAge=e.maxAge||Number.POSITIVE_INFINITY,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if("function"==typeof this.onEviction)for(const[t,n]of e)this.onEviction(t,n.value)}_deleteIfExpired(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.onEviction&&this.onEviction(e,t.value),this.delete(e))}_getOrDeleteIfExpired(e,t){if(!1===this._deleteIfExpired(e,t))return t.value}_getItemValue(e,t){return t.expiry?this._getOrDeleteIfExpired(e,t):t.value}_peek(e,t){const n=t.get(e);return this._getItemValue(e,n)}_set(e,t){this.cache.set(e,t),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(e,t){this.oldCache.delete(e),this._set(e,t)}*_entriesAscending(){for(const e of this.oldCache){const[t,n]=e;if(!this.cache.has(t)){!1===this._deleteIfExpired(t,n)&&(yield e)}}for(const e of this.cache){const[t,n]=e;!1===this._deleteIfExpired(t,n)&&(yield e)}}get(e){if(this.cache.has(e)){const t=this.cache.get(e);return this._getItemValue(e,t)}if(this.oldCache.has(e)){const t=this.oldCache.get(e);if(!1===this._deleteIfExpired(e,t))return this._moveToRecent(e,t),t.value}}set(e,t){let{maxAge:n=this.maxAge}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.cache.has(e)?this.cache.set(e,{value:t,expiry:r}):this._set(e,{value:t,expiry:r}),this}has(e){return this.cache.has(e)?!this._deleteIfExpired(e,this.cache.get(e)):!!this.oldCache.has(e)&&!this._deleteIfExpired(e,this.oldCache.get(e))}peek(e){return this.cache.has(e)?this._peek(e,this.cache):this.oldCache.has(e)?this._peek(e,this.oldCache):void 0}delete(e){const t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this._entriesAscending()],n=t.length-e;n<0?(this.cache=new Map(t),this.oldCache=new Map,this._size=t.length):(n>0&&this._emitEvictions(t.slice(0,n)),this.oldCache=new Map(t.slice(n)),this.cache=new Map,this._size=0),this.maxSize=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.cache){const[t,n]=e;!1===this._deleteIfExpired(t,n)&&(yield[t,n.value])}for(const e of this.oldCache){const[t,n]=e;if(!this.cache.has(t)){!1===this._deleteIfExpired(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.cache];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;!1===this._deleteIfExpired(r,o)&&(yield[r,o.value])}e=[...this.oldCache];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;if(!this.cache.has(r)){!1===this._deleteIfExpired(r,o)&&(yield[r,o.value])}}}*entriesAscending(){for(const[e,t]of this._entriesAscending())yield[e,t.value]}get size(){if(!this._size)return this.oldCache.size;let e=0;for(const t of this.oldCache.keys())this.cache.has(t)||e++;return Math.min(this._size+e,this.maxSize)}entries(){return this.entriesAscending()}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}class wv{constructor(e,t){e=+e,this.year=e;const n=new de(1,f.TISHREI,e),r=n.abs(),o=n.getDay()+1;this.firstSaturday=de.dayOnOrBefore(6,r+6);const i=+de.isLeapYear(e);this.il=Boolean(t);const a=function(e){const t=de.longCheshvan(e),n=de.shortKislev(e);return t&&!n?2:!t&&n?0:1}(e);let s=`${i}${o}${a}`;if(xv[s]?(this.theSedraArray=xv[s],this.yearKey=s):(s+=+this.il,this.theSedraArray=xv[s],this.yearKey=s),!this.theSedraArray)throw new Error(`improper sedra year type ${s} calculated for ${e}`)}get(e){return this.lookup(e).parsha}getString(e,t){return vv(this.get(e),t)}isParsha(e){return!this.lookup(e).chag}find(e){if("number"==typeof e){if(e>=Sv.length||e<0&&!Tv(e))throw new RangeError(`Invalid parsha number: ${e}`);return this.findInternal(e)}if("string"==typeof e){const t=Av.get(e);return"number"==typeof t?this.find(t):-1!==e.indexOf("-")?e===Hv||e===Iv?this.findInternal(e):this.find(e.split("-")):this.findInternal(e)}if(Array.isArray(e)){const t=e.length;if(1!==t&&2!==t||"string"!=typeof e[0])throw new TypeError(`Invalid parsha argument: ${JSON.stringify(e)}`);if(1===t)return this.find(e[0]);const n=e[0],r=e[1],o=Av.get(n),i=Av.get(r);if("number"!=typeof o||"number"!=typeof i||i!==o+1||!Tv(-o))throw new RangeError(`Unrecognized parsha name: ${n}-${r}`);return this.find(-o)}return null}findInternal(e){const t=this.theSedraArray.indexOf(e);return-1===t?null:new de(this.firstSaturday+7*t)}findContaining(e){const t=this.find(e);if(t)return t;if("number"==typeof e){const t=-e;return Tv(t)?this.find(t):this.find(t+1)}{const t=Av.get(e);if(t){const e=-t;return Tv(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:de.isHDate(e)?e.abs():NaN;if(isNaN(t))throw new TypeError(`Bad date argument: ${e}`);const n=de.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return $v(this.year+1,this.il).lookup(n)}const i=new de(n);if("string"==typeof o)return{parsha:[o],chag:!0,hdate:i};if(o>=0)return{parsha:[Sv[o]],chag:!1,num:o+1,hdate:i};const a=Ev(o);return{parsha:[Sv[a],Sv[a+1]],chag:!1,num:[a+1,a+2],hdate:i}}}const Sv=["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"],Av=new Map;for(let e=0;e<Sv.length;e++){const t=Sv[e];Av.set(t,e)}const bv=[21,26,28,31,38,41,50];function Tv(e){return bv.includes(-e)}function Ev(e){return-e}const Iv="Sukkot Shabbat Chol ha-Moed",Mv="Pesach",Nv="Pesach I",Hv="Pesach Shabbat Chol ha-Moed",Cv="Pesach VII",Dv="Pesach VIII",Ov="Shavuot";function _v(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const kv=[51,52,Iv],Lv=[52,"Yom Kippur",Iv],Rv=["Rosh Hashana",52,"Sukkot","Shmini Atzeret"],Yv=_v(0,20),Bv=_v(0,27),Pv=_v(33,40),jv=_v(43,49),Uv=_v(43,50),xv={"020":kv.concat(Yv,Ev(21),23,24,Hv,25,Ev(26),Ev(28),30,Ev(31),Pv,Ev(41),jv,Ev(50)),"0220":kv.concat(Yv,Ev(21),23,24,Hv,25,Ev(26),Ev(28),30,Ev(31),33,Ov,_v(34,37),Ev(38),40,Ev(41),jv,Ev(50)),"0510":Lv.concat(Yv,Ev(21),23,24,Nv,Dv,25,Ev(26),Ev(28),30,Ev(31),Pv,Ev(41),Uv),"0511":Lv.concat(Yv,Ev(21),23,24,Mv,25,Ev(26),Ev(28),_v(30,40),Ev(41),Uv),"052":Lv.concat(_v(0,24),Cv,25,Ev(26),Ev(28),30,Ev(31),Pv,Ev(41),Uv),"070":Rv.concat(Yv,Ev(21),23,24,Cv,25,Ev(26),Ev(28),30,Ev(31),Pv,Ev(41),Uv),"072":Rv.concat(Yv,Ev(21),23,24,Hv,25,Ev(26),Ev(28),30,Ev(31),Pv,Ev(41),jv,Ev(50)),1200:kv.concat(Bv,Hv,_v(28,33),Ov,_v(34,37),Ev(38),40,Ev(41),jv,Ev(50)),1201:kv.concat(Bv,Hv,_v(28,40),Ev(41),jv,Ev(50)),1220:kv.concat(Bv,Nv,Dv,_v(28,40),Ev(41),Uv),1221:kv.concat(Bv,Mv,_v(28,50)),150:Lv.concat(_v(0,28),Cv,_v(29,50)),152:Lv.concat(_v(0,28),Hv,_v(29,49),Ev(50)),170:Rv.concat(Bv,Hv,_v(28,40),Ev(41),jv,Ev(50)),1720:Rv.concat(Bv,Hv,_v(28,33),Ov,_v(34,37),Ev(38),40,Ev(41),jv,Ev(50))};xv["0221"]=xv["020"],xv["0310"]=xv["0220"],xv["0311"]=xv["020"],xv[1310]=xv[1220],xv[1311]=xv[1221],xv[1721]=xv[170];const Zv=new pv({maxSize:400});function $v(e,t){const n=`${e}-${t?1:0}`;let r=Zv.get(n);return r||(r=new wv(e,t),Zv.set(n,r)),r}class Vv extends Ee{constructor(e,t,n=!1,r=-1){if(!Array.isArray(t)||0===t.length||t.length>2)throw new TypeError("Bad parsha argument");super(e,"Parashat "+t.join("-"),be.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){return vv(this.parsha,e)}basename(){return this.parsha.join("-")}url(){if(this.getDate().greg().getFullYear()<100)return;const e=this.urlDateSuffix(),t="https://www.hebcal.com/sedrot/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+e;return this.il?t+"?i=on":t}urlDateSuffix(){return G(this.getDate().greg()).replace(/-/g,"")}}const Fv=f.NISAN,zv=f.IYYAR;function Kv(e){if(e<5708)return null;let t;const n=new de(15,Fv,e).getDay();return t=0===n?2:6===n?3:e<5764?4:2===n?5:4,new de(t,zv,e)}const Gv="Yom Kippur Katan";class Jv extends jy{constructor(e,t){super(e,`${Gv} ${t}`,be.MINOR_FAST|be.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=ie.gettext(this.nextMonthName,e).replace(/'/g,"’");return ie.gettext(Gv,e)+" "+t}renderBrief(e){return ie.gettext(Gv,e)}url(){}}function Wv(e){return e.observedInIsrael()}function qv(e){return e.observedInDiaspora()}function Xv(e,t){const n=de.isHDate(e)?e:new de(e),r=n.toString(),o=Mp(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const i=o.filter(function(e){return e?Wv:qv}(t));return i}const Qv=be.CHAG,ep=be.IL_ONLY,tp=be.LIGHT_CANDLES_TZEIS,np=be.CHANUKAH_CANDLES,rp=be.MINOR_FAST,op=be.SPECIAL_SHABBAT,ip=be.MODERN_HOLIDAY,ap=be.MAJOR_FAST,sp=be.MINOR_HOLIDAY,up=be.EREV,cp=0,hp=2,lp=4,fp=5,dp=6,gp=f.NISAN,mp=f.TAMUZ,yp=f.AV,vp=f.TISHREI,pp=f.KISLEV,wp=f.TEVET,Sp=f.ADAR_I,Ap=f.ADAR_II,bp={emoji:"🇮🇱"},Tp="🕎",Ep=new pv({maxSize:400}),Ip=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function Mp(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=Ep.get(e);if(t)return t;const n=new de(1,vp,e),r=new de(15,gp,e),o=new Map;function i(...e){for(const t of e){const e=t.date.toString(),n=o.get(e);"object"==typeof n?n[0].getFlags()&up?n.unshift(t):n.push(t):o.set(e,[t])}}for(const t of By){const n=new de(t.dd,t.mm,e),r=new jy(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),i(r)}i(new Zy(n,e,Qv|tp));const a=n.getDay()===lp?4:3;i(new jy(new de(a,vp,e),Yy.TZOM_GEDALIAH,rp)),i(new jy(new de(de.dayOnOrBefore(dp,7+n.abs())),Yy.SHABBAT_SHUVA,op));const s=de.shortKislev(e)?new de(1,wp,e):new de(30,pp,e);i(new jy(s,Yy.CHAG_HABANOT,sp));for(let t=2;t<=8;t++){const n=new de(23+t,pp,e);i(new xy(n,`Chanukah: ${t} Candles`,sp|np,{chanukahDay:t-1,emoji:Tp+Ip[t]}))}i(new xy(new de(32,pp,e),Yy.CHANUKAH_8TH_DAY,sp,{chanukahDay:8,emoji:Tp})),i(new Uy(new de(10,wp,e),Yy.ASARA_BTEVET,rp));const u=r.abs();i(new jy(new de(de.dayOnOrBefore(dp,u-43)),Yy.SHABBAT_SHEKALIM,op),new jy(new de(de.dayOnOrBefore(dp,u-30)),Yy.SHABBAT_ZACHOR,op),new jy(new de(u-(r.getDay()===hp?33:31)),Yy.TAANIT_ESTHER,rp));const c=de.dayOnOrBefore(dp,u-14);i(new jy(new de(c-7),Yy.SHABBAT_PARAH,op),new jy(new de(c),Yy.SHABBAT_HACHODESH,op),new jy(new de(de.dayOnOrBefore(dp,u-1)),Yy.SHABBAT_HAGADOL,op),new jy(r.prev().getDay()===dp?r.onOrBefore(lp):new de(14,gp,e),Yy.TAANIT_BECHOROT,rp)),i(new jy(new de(de.dayOnOrBefore(dp,new de(1,vp,e+1).abs()-4)),Yy.LEIL_SELICHOT,sp,{emoji:"🕍"})),r.getDay()===cp&&i(new jy(new de(16,Ap,e),Yy.PURIM_MESHULASH,sp)),de.isLeapYear(e)&&(i(new jy(new de(14,Sp,e),Yy.PURIM_KATAN,sp,{emoji:"🎭️"})),i(new jy(new de(15,Sp,e),Yy.SHUSHAN_PURIM_KATAN,sp,{emoji:"🎭️"})));const h=function(e){if(e<5711)return null;let t=new de(27,Fv,e);return 5===t.getDay()?t=new de(26,Fv,e):0===t.getDay()&&(t=new de(28,Fv,e)),t}(e);h&&i(new jy(h,Yy.YOM_HASHOAH,ip));const l=Kv(e);l&&i(new jy(l,Yy.YOM_HAZIKARON,ip,bp),new jy(l.next(),Yy.YOM_HAATZMA_UT,ip,bp));for(const t of Py)if(e>=t.firstYear){let n=new de(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||r!==fp&&r!==dp?t.friPostponeToSun&&r===fp?n=new de(n.abs()+2):t.satPostponeToSun&&r===dp&&(n=n.next()):n=n.onOrBefore(lp);const o=t.chul?ip:ip|ep,a=new jy(n,t.desc,o);t.suppressEmoji||(a.emoji="🇮🇱"),i(a)}let d,g=new de(17,mp,e);g.getDay()===dp&&(g=new de(18,mp,e),d={observed:!0}),i(new jy(g,Yy.TZOM_TAMMUZ,rp,d));let m,y=new de(9,yp,e),v=Yy.TISHA_BAV;y.getDay()===dp&&(y=y.next(),m={observed:!0},v+=" (observed)");const p=y.abs();i(new jy(new de(de.dayOnOrBefore(dp,p)),Yy.SHABBAT_CHAZON,op),new jy(y.prev(),Yy.EREV_TISHA_BAV,up|ap,m),new jy(y,v,ap,m),new jy(new de(de.dayOnOrBefore(dp,p+7)),Yy.SHABBAT_NACHAMU,op));const w=de.monthsInYear(e);for(let t=1;t<=w;t++){const n=de.getMonthName(t,e);30===(t===gp?de.daysInMonth(de.monthsInYear(e-1),e-1):de.daysInMonth(t-1,e))?(i(new Vy(new de(1,t,e),n)),i(new Vy(new de(30,t-1,e),n))):t!==vp&&i(new Vy(new de(1,t,e),n))}for(let t=f.IYYAR;t<=w;t++){const n=t+1;if(n===vp||n===f.CHESHVAN||n===wp)continue;let r=new de(29,t,e);const o=r.getDay();o!==fp&&o!==dp||(r=r.onOrBefore(lp));const a=de.getMonthName(n,e);i(new Jv(r,a))}const S=$v(e,!1).find(15);i(new jy(S,Yy.SHABBAT_SHIRAH,op));const A=function(e){const t=de.isLeapYear(e),n=t?Ap:gp,r=t?20:1,o=de.hebrew2abs(e,n,r);for(let e=0;e<=40;e++){const t=o+e;if((t+1373429)%10227==172)return t}return 0}(e);if(A){const e=new de(A);i(new jy(e,Yy.BIRKAT_HACHAMAH,sp,{emoji:"☀️"}))}return Ep.set(e,o),o}function Np(e,t){const n=Mp(e),r=de.hebrew2abs(e,vp,1),o=de.hebrew2abs(e+1,vp,1)-1;let i=[];const a=t?Wv:qv;for(let e=r;e<=o;e++){const t=new de(e),r=n.get(t.toString());if(r){const e=r.filter(a);i=i.concat(e)}}return i}const Hp="Shabbat Mevarchim Chodesh";class Cp extends Ee{constructor(e,t,n,r){if(super(e,`${Hp} ${t}`,be.SHABBAT_MEVARCHIM),this.monthName=ie.gettext(t,r),n)this.memo=n;else{const t=e.getFullYear(),n=e.getMonth(),r=n===de.monthsInYear(t)?f.NISAN:n+1,o=new rv(t,r);this.memo=o.render("en",{hour12:!1})}}basename(){return this.getDesc()}render(e){const t=ie.gettext(this.monthName,e).replace(/'/g,"’");return ie.gettext(Hp,e)+" "+t}renderBrief(e){const t=this.render(e),n=t.indexOf(" ");return t.substring(n+1)}}const Dp=new Map;class Op{static addCalendar(e,t,n){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);Dp.set(e.toLowerCase(),{fn:t,startDate:n})}static lookup(e,t,n){const r=Dp.get(e.toLowerCase());return"object"==typeof r?r.fn(t,n):null}static getStartDate(e){const t=Dp.get(e.toLowerCase());if("object"==typeof t)return t.startDate}static has(e){return Dp.has(e.toLowerCase())}static getCalendars(){return Array.from(Dp.keys())}}function _p(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}const kp={shacharit:!1,mincha:!1,allCongs:!1};function Lp(e,t){return Rp(e,t,!0)}function Rp(e,t,n){const r=function(e,t){const n=de.isLeapYear(e),r=de.monthsInYear(e);let o=new de(9,f.AV,e);6===o.getDay()&&(o=o.next());let i=new de(15,f.ADAR_II,e);6===i.getDay()&&(i=i.next());const a=[new de(2,f.TISHREI,e)].concat(_p(1,r).map((t=>new de(1,t,e))),_p(1,r).filter((t=>30===de.daysInMonth(t,e))).map((t=>new de(30,t,e))),_p(1,de.daysInMonth(f.NISAN,e)).map((t=>new de(t,f.NISAN,e))),new de(18,f.IYYAR,e),_p(1,8-(t?1:0)).map((t=>new de(t,f.SIVAN,e))),o,new de(15,f.AV,e),new de(29,f.ELUL,e),_p(9,24-(t?1:0)).map((t=>new de(t,f.TISHREI,e))),_p(25,33).map((t=>new de(t,f.KISLEV,e))),new de(15,f.SHVAT,e),new de(14,f.ADAR_II,e),i,n?new de(14,f.ADAR_I,e):[]),s=[new de(14,f.IYYAR,e)].concat(_p(1,13).map((t=>new de(t,f.SIVAN,e))),_p(20,31).map((t=>new de(t,f.TISHREI,e))),e>=5708?Kv(e).next():[],e>=5727?new de(28,f.IYYAR,e):[]),u=[new de(29,f.ELUL,e-1),new de(9,f.TISHREI,e),new de(14,f.IYYAR,e)];return{none:a.map((e=>e.abs())).sort(((e,t)=>e-t)),some:s.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:u.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.yy,t),o=e.abs();if(r.none.indexOf(o)>-1)return kp;const i=e.getDay(),a={shacharit:!1,mincha:!1,allCongs:!1};-1===r.some.indexOf(o)&&(a.allCongs=!0),6!==i&&(a.shacharit=!0);const s=o+1;if(n&&-1===r.yesPrev.indexOf(s)){const e=Rp(new de(s),t,!1);a.mincha=e.shacharit}else a.mincha=5!==i;return!a.allCongs||a.mincha||a.shacharit?a:kp}const Yp=f.TISHREI;function Bp(e){if("number"==typeof e)return e;if(u(e))return h(e);if(de.isHDate(e))return e.abs();throw new TypeError(`Invalid date type: ${e}`)}function Pp(e){if(e.start&&!e.end||e.end&&!e.start)throw new TypeError("Both options.start and options.end are required");if(e.start&&e.end)return[Bp(e.start),Bp(e.end)];const t=Boolean(e.isHebrewYear),n=function(e){return void 0!==e.year?Number(e.year):e.isHebrewYear?(new de).getFullYear():(new Date).getFullYear()}(e);if(isNaN(n))throw new RangeError(`Invalid year ${e.year}`);if(t&&n<1)throw new RangeError(`Invalid Hebrew year ${n}`);const r=function(e){if(e.month){if(e.isHebrewYear)return de.monthNum(e.month);if("number"==typeof e.month)return e.month}return NaN}(e),o=Number(e.numYears)||1;return t?function(e,t,n){const r=new de(1,e||Yp,t);let o=r.abs();const i=e?o+r.daysInMonth():new de(1,Yp,t+n).abs()-1;!e&&t>1&&o--;return[o,i]}(r,n,o):function(e,t,n){const r=e?e-1:0,o=new Date(t,r,1);t<100&&o.setFullYear(t);const i=h(o);let a;if(e)a=i+s(e,t)-1;else{const e=t+n,r=new Date(e,0,1);e<100&&r.setFullYear(e),a=h(r)-1}return[i,a]}(r,n,o)}function jp(e={}){!function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof gm))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");const n=e.candleLightingMins;let r="number"!=typeof n||isNaN(n)?18:Math.trunc(n);t.getIsrael()&&18===Math.abs(r)&&(r=function(e,t){const n=e.getGeoId();if(n){const e=vw[n];if("number"==typeof e)return e}const r=e.getShortName();if(r){const e=yw[r];if("number"==typeof e)return e}return t}(t,r));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=pw;"number"!=typeof e.fastEndDeg&&(e.fastEndDeg=ww)}(e=Object.assign({},e));const t=e.location=e.location||Aw,n=e.il=e.il||t.getIsrael()||!1,r="number"==typeof e.mask;if(e.mask=function(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask||0;t&tw&&delete e.noRoshChodesh;t&Qp&&delete e.noModern;t&qp&&delete e.noMinorFast;t&Xp&&delete e.noSpecialShabbat;t&nw&&(e.sedrot=!0);t&(rw|ow|iw|aw)&&(e.dailyLearning=e.dailyLearning||{},t&rw&&(e.dailyLearning.dafYomi=!0),t&ow&&(e.dailyLearning.mishnaYomi=!0),t&iw&&(e.dailyLearning.nachYomi=!0),t&aw&&(e.dailyLearning.yerushalmi=1));t&sw&&(e.omer=!0);t&uw&&(e.shabbatMevarchim=!0);t&fw&&(e.yomKippurKatan=!0);t&dw&&(e.yizkor=!0);return t}(e);const n=e.il||(null===(t=e.location)||void 0===t?void 0:t.getIsrael())||!1;let r=0;e.noHolidays||(r|=tw|zp|qp|Xp|Qp|ew|cw|hw|lw|Fp|Jp|Wp);e.candlelighting&&(r|=Fp|Jp|zp);e.noRoshChodesh&&(r&=~tw);e.noModern&&(r&=~Qp);e.noMinorFast&&(r&=~qp);e.noSpecialShabbat&&(r&=~Xp,r&=~uw);r|=n?Gp:Kp;e.sedrot&&(r|=nw);e.omer&&(r|=sw);e.shabbatMevarchim&&(r|=uw);e.yomKippurKatan&&(r|=fw);e.yizkor&&(r|=dw);if(e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=rw),t.mishnaYomi&&(r|=ow),t.nachYomi&&(r|=iw),t.yerushalmi&&(r|=aw)}return r}(e),e.ashkenazi||e.locale){if(e.locale&&"string"!=typeof e.locale)throw new TypeError(`Invalid options.locale: ${e.locale}`);const t=e.ashkenazi?"ashkenazi":e.locale;if(!ie.useLocale(t))throw new TypeError(`Locale '${t}' not found; did you forget to import @hebcal/locales?`)}else ie.useLocale("en");const o=[];let i,a,s=-1,u=-1,c=-1;const h=Pp(e);!function(e){for(const t of Object.keys(e))void 0!==mw[t]||gw.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),gw.add(t));if(e.dailyLearning)for(const t of Object.keys(e.dailyLearning))gw.has(t)||Op.has(t)||(console.warn(`Ignoring unrecognized DailyLearning calendar: ${t}`),gw.add(t))}(e);const d=h[0],g=h[1];l(d).getFullYear()<100&&(e.candlelighting=!1);for(let t=d;t<=g;t++){const h=new de(t),l=h.getFullYear();l!==c&&(c=l,a=Mp(c),e.sedrot&&(i=$v(c,n)),e.omer&&(s=de.hebrew2abs(c,Zp,16),u=de.hebrew2abs(c,$p,5)));const d=o.length,g=h.getDay(),m=g===Up,y=g===xp;let v;const p=a.get(h.toString())||[];for(const t of p)v=bw(v,o,t,e,m,y,r);if(e.sedrot&&y){const e=i.lookup(t);e.chag||o.push(new Vv(h,e.parsha,n,e.num))}if(e.yizkor){const e=h.getMonth(),t=h.getDate();if(e===f.TISHREI&&(10===t||22===t)||e===Zp&&t===(n?21:22)||e===$p&&t===(n?6:7)){const e=p.filter((e=>e.observedIn(n)))[0],t=new Ee(h,"Yizkor",be.YIZKOR,{emoji:"🕯️",linkedEvent:e});o.push(t)}}const w=e.dailyLearning;let S=0;if("object"==typeof w){const e=Iw(h,w,n);S=e.length,S&&o.push(...e)}if(e.omer&&t>=s&&t<=u){const n=Mw(h,t-s+1,e);o.push(n)}if(y&&(e.molad||e.shabbatMevarchim)){const t=Tw(h,e);o.push(...t)}if(!v&&e.candlelighting&&(m||y)&&(v=Ky(void 0,h,e,m,y),m&&v&&i)){const r=i.lookup(t),o=new Vv(h.next(),r.parsha,n,r.num);v.memo=o.render(e.locale)}if(v instanceof Am&&(0===e.havdalahMins||0===e.havdalahDeg)&&(v=void 0),v&&o.push(v),e.addHebrewDates||e.addHebrewDatesForEvents&&d!==o.length-S){const e=new Ie(h);d===o.length?o.push(e):o.splice(d,0,e)}}return o}const Up=5,xp=6,Zp=f.NISAN,$p=f.SIVAN,Vp=f.ELUL,Fp=be.LIGHT_CANDLES,zp=be.YOM_TOV_ENDS,Kp=be.CHUL_ONLY,Gp=be.IL_ONLY,Jp=be.LIGHT_CANDLES_TZEIS,Wp=be.CHANUKAH_CANDLES,qp=be.MINOR_FAST,Xp=be.SPECIAL_SHABBAT,Qp=be.MODERN_HOLIDAY,ew=be.MAJOR_FAST,tw=be.ROSH_CHODESH,nw=be.PARSHA_HASHAVUA,rw=be.DAF_YOMI,ow=be.MISHNA_YOMI,iw=be.NACH_YOMI,aw=be.YERUSHALMI_YOMI,sw=be.OMER_COUNT,uw=be.SHABBAT_MEVARCHIM,cw=be.MINOR_HOLIDAY,hw=be.EREV,lw=be.CHOL_HAMOED,fw=be.YOM_KIPPUR_KATAN,dw=be.YIZKOR,gw=new Set,mw={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,fastEndDeg:1,sedrot:1,il:1,noMinorFast:1,noModern:1,shabbatMevarchim:1,noRoshChodesh:1,noSpecialShabbat:1,noHolidays:1,omer:1,molad:1,ashkenazi:1,locale:1,addHebrewDates:1,addHebrewDatesForEvents:1,mask:1,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1,yizkor:1};const yw={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},vw={281184:40,294801:30,293067:30},pw=8.5,ww=7.0833333;const Sw=Fp|Jp|Wp|zp,Aw=new gm(0,0,!1,"UTC");function bw(e,t,n,r,o,i,a){const s=r.il||!1;if(!n.observedIn(s))return e;const u=n.getFlags();if(!r.yomKippurKatan&&u&fw||r.noModern&&u&Qp)return e;const c=Boolean(u&ew),h=Boolean(u&qp);let l;if(r.candlelighting&&(c||h)&&"Yom Kippur"!==n.getDesc()&&(n=l=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)throw new RangeError("YK does not require this function");const r=e.getDate(),o=r.greg(),i=t.location,a=t.fastEndDeg,s=Boolean(t.useElevation),u=new ym(i,o,s);let c,h;if("Erev Tish'a B'Av"===n){const n=u.sunset();isNaN(n.getTime())||(c=qy(e,n,Gy,t))}else if(n.startsWith("Tish'a B'Av")){const n=u.tzeit(a);isNaN(n.getTime())||(h=qy(e,n,Jy,t))}else{const n=u.alotHaShachar();if(isNaN(n.getTime())||(c=qy(e,n,Gy,t)),5!==o.getDay()&&(14!==r.getDate()||r.getMonth()!==f.NISAN)){const n=u.tzeit(a);isNaN(n.getTime())||(h=qy(e,n,Jy,t))}}const l=new Wy(e,c,h);return Object.assign(l,e),l}(n,r),l.startEvent&&(c||h&&!r.noMinorFast)&&t.push(l.startEvent)),u&Number(r.mask)||!u&&!a){if(r.candlelighting&&u&Sw){const t=n.getDate();if(e=Ky(n,t,r,o,i),u&Wp&&e&&!r.noHolidays){const a=function(e,t,n){const r=n.location,o=Boolean(n.useElevation),i=new ym(r,t.greg(),o).beinHaShmashos();if(isNaN(i.getTime()))return null;const a=new Xy(t,e.getDesc(),e.getFlags(),i,r);return a.emoji=e.emoji,a.chanukahDay=e.chanukahDay,a}(n,t,r);a&&((o||i)&&(a.eventTime=e.eventTime,a.eventTimeStr=e.eventTimeStr),n=a),e=void 0}}(!r.noHolidays||r.yomKippurKatan&&u&fw)&&t.push(n)}return(c||h&&!r.noMinorFast)&&l&&l.endEvent&&t.push(l.endEvent),e}function Tw(e,t){const n=[],r=e.getMonth(),o=e.getDate();if(r!==Vp&&o>=23&&o<=29){const o=e.getFullYear(),i=r===de.monthsInYear(o)?Zp:r+1;if(t.molad&&n.push(new ov(e,o,i,t)),t.shabbatMevarchim){const r=de.getMonthName(i,o),a=new rv(o,i).render(t.locale||"en",t);n.push(new Cp(e,r,a,t.locale))}}return n}function Ew(e,t){return"yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e}function Iw(e,t,n){const r=[];for(const[o,i]of Object.entries(t))if(i){const t=Ew(o,i),a=Op.lookup(t,e,n);a&&r.push(a)}return r}function Mw(e,t,n){const r=new yv(e,t);if(n.candlelighting){const t=n.location,o=new ym(t,e.prev(),!1).tzeit(7.0833);isNaN(o.getTime())||(r.alarm=o)}return r}function Nw(e,t){return 0!==(Xv(e,t)||[]).filter((e=>e.getFlags()&be.CHAG)).length}return e.AsaraBTevetEvent=Uy,e.CandleLightingEvent=Sm,e.ChanukahEvent=xy,e.DailyLearning=Op,e.Event=Ee,e.FastDayEvent=Wy,e.GeoLocation=sm,e.HDate=de,e.HavdalahEvent=Am,e.HebrewCalendar=class{constructor(){}static calendar(e={}){return jp(e)}static getBirthdayOrAnniversary(e,t){const n=function(e,t){const n=B(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=b(r);let i=n.mm,a=n.dd;return i===R&&!o||i===Y&&o?i=T(e):i!==O||30!==a||H(e)?i===_&&30===a&&C(e)?(i=k,a=1):i===R&&30===a&&o&&!b(e)&&(i=D,a=1):(i=_,a=1),{yy:e,mm:i,dd:a}}(e,t);return void 0===n?n:new de(n)}static getYahrzeit(e,t){const n=function(e,t){let n=B(t);if(!(e<=n.yy))return n.mm!==O||30!==n.dd||H(n.yy+1)?n.mm===_&&30===n.dd&&C(n.yy+1)?n=A(w(e,k,1)-1):n.mm===Y?n.mm=T(e):n.mm!==R||30!==n.dd||b(e)||(n.dd=30,n.mm=L):n=A(w(e,_,1)-1),n.mm!==O||30!==n.dd||H(e)?n.mm===_&&30===n.dd&&C(e)&&(n.mm=k,n.dd=1):(n.mm=_,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new de(n)}static getHolidaysForYear(e){return Mp(e)}static getHolidaysForYearArray(e,t){return Np(e,t)}static getHolidaysOnDate(e,t){return Xv(e,t)}static eruvTavshilin(e,t){if(e.getDay()<3||e.getDay()>4)return!1;const n=new de(e),r=n.after(5),o=n.next();return!(!Nw(r,t)||Nw(n,t)||!Nw(o,t))}static reformatTimeStr(e,t,n){return pm(e,t,n)}static version(){return t}static getSedra(e,t){return $v(e,t)}static hallel(e,t){return function(e,t){const n=e.filter((e=>{const t=e.getDesc(),n=e.getDate(),r=n.getMonth(),o=n.getDate();return t.startsWith("Chanukah")||t.startsWith("Shavuot")||t.startsWith("Sukkot")||r===f.NISAN&&(15===o||16===o)&&e.getFlags()&be.CHAG||"Yom HaAtzma'ut"===t||"Yom Yerushalayim"===t})).map((e=>e.getDate().abs())),r=t.abs();return n.includes(r)?2:e.filter((e=>{const t=e.getDesc();return e.getFlags()&be.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(Np(e.getFullYear(),t),e)}static tachanun(e,t){return Lp(e,t)}},e.HebrewDateEvent=Ie,e.HolidayEvent=jy,e.Locale=ie,e.Location=gm,e.MevarchimChodeshEvent=Cp,e.Molad=rv,e.MoladEvent=ov,e.NOAACalculator=cm,e.OmerEvent=yv,e.ParshaEvent=Vv,e.RoshChodeshEvent=Vy,e.RoshHashanaEvent=Zy,e.Sedra=wv,e.TimedChanukahEvent=Xy,e.TimedEvent=wm,e.YomKippurKatanEvent=Jv,e.Zmanim=ym,e.flags=be,e.gematriya=x,e.gematriyaStrToNum=Z,e.getHolidaysOnDate=Xv,e.getSedra=$v,e.holidayDesc=Yy,e.months=f,e.parshaYear=function(e,t){const n=$v(e,t),r=n.getFirstSaturday(),o=de.hebrew2abs(e,f.ELUL,29),i=[];for(let e=r;e<=o;e+=7){const r=n.lookup(e);if(!r.chag){const e=new Vv(r.hdate,r.parsha,t,r.num);i.push(e)}}return i},e.parshiot=Sv,e.version=t,e}({});
21
21
  //# sourceMappingURL=bundle.min.js.map