Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hebcal/rest-api

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hebcal/rest-api - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

4

dist/bundle.min.js

@@ -1,2 +0,2 @@

/*! @hebcal/rest-api v3.1.0 */
var hebcal__rest_api=function(e,t,a){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){var t={exports:{}};return e(t,t.exports),t.exports}var r,i=function(e){return e&&e.Math==Math&&e},s=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n&&n)||function(){return this}()||Function("return this")(),c={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},l=function(e){try{return!!e()}catch(e){return!0}},h={}.toString,u="".split,f=l((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==function(e){return h.call(e).slice(8,-1)}(e)?u.call(e,""):Object(e)}:Object,m=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},g=function(e){return f(m(e))},d=!l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),y=function(e){return"object"==typeof e?null!==e:"function"==typeof e},p=s.document,b=y(p)&&y(p.createElement),S=function(e){return b?p.createElement(e):{}},v=!d&&!l((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),w=function(e){if(!y(e))throw TypeError(String(e)+" is not an object");return e},T=function(e,t){if(!y(e))return e;var a,n;if(t&&"function"==typeof(a=e.toString)&&!y(n=a.call(e)))return n;if("function"==typeof(a=e.valueOf)&&!y(n=a.call(e)))return n;if(!t&&"function"==typeof(a=e.toString)&&!y(n=a.call(e)))return n;throw TypeError("Can't convert object to primitive value")},A=Object.defineProperty,C={f:d?A:function(e,t,a){if(w(e),t=T(t,!0),w(a),v)try{return A(e,t,a)}catch(e){}if("get"in a||"set"in a)throw TypeError("Accessors not supported");return"value"in a&&(e[t]=a.value),e}},H=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},M=d?function(e,t,a){return C.f(e,t,H(1,a))}:function(e,t,a){return e[t]=a,e},O=function(e,t){try{M(s,e,t)}catch(a){s[e]=t}return t},I="__core-js_shared__",B=s[I]||O(I,{}),R=o((function(e){(e.exports=function(e,t){return B[e]||(B[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.8.1",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),L={}.hasOwnProperty,P=function(e,t){return L.call(e,t)},D=0,F=Math.random(),E=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++D+F).toString(36)},N=!!Object.getOwnPropertySymbols&&!l((function(){return!String(Symbol())})),G=N&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_=R("wks"),k=s.Symbol,j=G?k:k&&k.withoutSetter||E,Y=function(e){return P(_,e)||(N&&P(k,e)?_[e]=k[e]:_[e]=j("Symbol."+e)),_[e]},z=Math.ceil,U=Math.floor,K=function(e){return isNaN(e=+e)?0:(e>0?U:z)(e)},x=Math.min,J=Math.max,V=Math.min,W=function(e){return function(t,a,n){var o,r,i=g(t),s=(o=i.length)>0?x(K(o),9007199254740991):0,c=function(e,t){var a=K(e);return a<0?J(a+t,0):V(a,t)}(n,s);if(e&&a!=a){for(;s>c;)if((r=i[c++])!=r)return!0}else for(;s>c;c++)if((e||c in i)&&i[c]===a)return e||c||0;return!e&&-1}},Z={includes:W(!0),indexOf:W(!1)},q={},Q=Z.indexOf,X=function(e,t){var a,n=g(e),o=0,r=[];for(a in n)!P(q,a)&&P(n,a)&&r.push(a);for(;t.length>o;)P(n,a=t[o++])&&(~Q(r,a)||r.push(a));return r},$=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ee=Object.keys||function(e){return X(e,$)},te=d?Object.defineProperties:function(e,t){w(e);for(var a,n=ee(t),o=n.length,r=0;o>r;)C.f(e,a=n[r++],t[a]);return e},ae=s,ne=function(e){return"function"==typeof e?e:void 0},oe=function(e,t){return arguments.length<2?ne(ae[e])||ne(s[e]):ae[e]&&ae[e][t]||s[e]&&s[e][t]},re=oe("document","documentElement"),ie=R("keys"),se=function(e){return ie[e]||(ie[e]=E(e))},ce=se("IE_PROTO"),le=function(){},he=function(e){return"<script>"+e+"</"+"script>"},ue=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;ue=r?function(e){e.write(he("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=S("iframe")).style.display="none",re.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(he("document.F=Object")),e.close(),e.F);for(var a=$.length;a--;)delete ue.prototype[$[a]];return ue()};q[ce]=!0;var fe=Object.create||function(e,t){var a;return null!==e?(le.prototype=w(e),a=new le,le.prototype=null,a[ce]=e):a=ue(),void 0===t?a:te(a,t)},me=Y("unscopables"),ge=Array.prototype;null==ge[me]&&C.f(ge,me,{configurable:!0,value:fe(null)});var de=function(e){ge[me][e]=!0},ye=Function.toString;"function"!=typeof B.inspectSource&&(B.inspectSource=function(e){return ye.call(e)});var pe,be,Se,ve=B.inspectSource,we=s.WeakMap,Te="function"==typeof we&&/native code/.test(ve(we)),Ae=s.WeakMap;if(Te){var Ce=B.state||(B.state=new Ae),He=Ce.get,Me=Ce.has,Oe=Ce.set;pe=function(e,t){return t.facade=e,Oe.call(Ce,e,t),t},be=function(e){return He.call(Ce,e)||{}},Se=function(e){return Me.call(Ce,e)}}else{var Ie=se("state");q[Ie]=!0,pe=function(e,t){return t.facade=e,M(e,Ie,t),t},be=function(e){return P(e,Ie)?e[Ie]:{}},Se=function(e){return P(e,Ie)}}var Be,Re,Le,Pe={set:pe,get:be,has:Se,enforce:function(e){return Se(e)?be(e):pe(e,{})},getterFor:function(e){return function(t){var a;if(!y(t)||(a=be(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return a}}},De={}.propertyIsEnumerable,Fe=Object.getOwnPropertyDescriptor,Ee={f:Fe&&!De.call({1:2},1)?function(e){var t=Fe(this,e);return!!t&&t.enumerable}:De},Ne=Object.getOwnPropertyDescriptor,Ge={f:d?Ne:function(e,t){if(e=g(e),t=T(t,!0),v)try{return Ne(e,t)}catch(e){}if(P(e,t))return H(!Ee.f.call(e,t),e[t])}},_e=o((function(e){var t=Pe.get,a=Pe.enforce,n=String(String).split("String");(e.exports=function(e,t,o,r){var i,c=!!r&&!!r.unsafe,l=!!r&&!!r.enumerable,h=!!r&&!!r.noTargetGet;"function"==typeof o&&("string"!=typeof t||P(o,"name")||M(o,"name",t),(i=a(o)).source||(i.source=n.join("string"==typeof t?t:""))),e!==s?(c?!h&&e[t]&&(l=!0):delete e[t],l?e[t]=o:M(e,t,o)):l?e[t]=o:O(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||ve(this)}))})),ke=$.concat("length","prototype"),je={f:Object.getOwnPropertyNames||function(e){return X(e,ke)}},Ye={f:Object.getOwnPropertySymbols},ze=oe("Reflect","ownKeys")||function(e){var t=je.f(w(e)),a=Ye.f;return a?t.concat(a(e)):t},Ue=function(e,t){for(var a=ze(t),n=C.f,o=Ge.f,r=0;r<a.length;r++){var i=a[r];P(e,i)||n(e,i,o(t,i))}},Ke=/#|\.prototype\./,xe=function(e,t){var a=Ve[Je(e)];return a==Ze||a!=We&&("function"==typeof t?l(t):!!t)},Je=xe.normalize=function(e){return String(e).replace(Ke,".").toLowerCase()},Ve=xe.data={},We=xe.NATIVE="N",Ze=xe.POLYFILL="P",qe=xe,Qe=Ge.f,Xe=!l((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),$e=se("IE_PROTO"),et=Object.prototype,tt=Xe?Object.getPrototypeOf:function(e){return e=Object(m(e)),P(e,$e)?e[$e]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?et:null},at=Y("iterator"),nt=!1;[].keys&&("next"in(Le=[].keys())?(Re=tt(tt(Le)))!==Object.prototype&&(Be=Re):nt=!0),null==Be&&(Be={}),P(Be,at)||M(Be,at,(function(){return this}));var ot={IteratorPrototype:Be,BUGGY_SAFARI_ITERATORS:nt},rt=C.f,it=Y("toStringTag"),st=function(e,t,a){e&&!P(e=a?e:e.prototype,it)&&rt(e,it,{configurable:!0,value:t})},ct=ot.IteratorPrototype,lt=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,a={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(a,[]),t=a instanceof Array}catch(e){}return function(a,n){return w(a),function(e){if(!y(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(n),t?e.call(a,n):a.__proto__=n,a}}():void 0),ht=ot.IteratorPrototype,ut=ot.BUGGY_SAFARI_ITERATORS,ft=Y("iterator"),mt="keys",gt="values",dt="entries",yt=function(){return this},pt="Array Iterator",bt=Pe.set,St=Pe.getterFor(pt),vt=function(e,t,a,n,o,r,i){!function(e,t,a){var n=t+" Iterator";e.prototype=fe(ct,{next:H(1,a)}),st(e,n,!1)}(a,t,n);var c,l,h,u=function(e){if(e===o&&y)return y;if(!ut&&e in g)return g[e];switch(e){case mt:case gt:case dt:return function(){return new a(this,e)}}return function(){return new a(this)}},f=t+" Iterator",m=!1,g=e.prototype,d=g[ft]||g["@@iterator"]||o&&g[o],y=!ut&&d||u(o),p="Array"==t&&g.entries||d;if(p&&(c=tt(p.call(new e)),ht!==Object.prototype&&c.next&&(tt(c)!==ht&&(lt?lt(c,ht):"function"!=typeof c[ft]&&M(c,ft,yt)),st(c,f,!0))),o==gt&&d&&d.name!==gt&&(m=!0,y=function(){return d.call(this)}),g[ft]!==y&&M(g,ft,y),o)if(l={values:u(gt),keys:r?y:u(mt),entries:u(dt)},i)for(h in l)(ut||m||!(h in g))&&_e(g,h,l[h]);else!function(e,t){var a,n,o,r,i,c=e.target,l=e.global,h=e.stat;if(a=l?s:h?s[c]||O(c,{}):(s[c]||{}).prototype)for(n in t){if(r=t[n],o=e.noTargetGet?(i=Qe(a,n))&&i.value:a[n],!qe(l?n:c+(h?".":"#")+n,e.forced)&&void 0!==o){if(typeof r==typeof o)continue;Ue(r,o)}(e.sham||o&&o.sham)&&M(r,"sham",!0),_e(a,n,r,e)}}({target:t,proto:!0,forced:ut||m},l);return l}(Array,"Array",(function(e,t){bt(this,{type:pt,target:g(e),index:0,kind:t})}),(function(){var e=St(this),t=e.target,a=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==a?{value:n,done:!1}:"values"==a?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");de("keys"),de("values"),de("entries");var wt=Y("iterator"),Tt=Y("toStringTag"),At=vt.values;for(var Ct in c){var Ht=s[Ct],Mt=Ht&&Ht.prototype;if(Mt){if(Mt[wt]!==At)try{M(Mt,wt,At)}catch(e){Mt[wt]=At}if(Mt[Tt]||M(Mt,Tt,Ct),c[Ct])for(var Ot in vt)if(Mt[Ot]!==vt[Ot])try{M(Mt,Ot,vt[Ot])}catch(e){Mt[Ot]=vt[Ot]}}}const It={};const Bt=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function Rt(e,t){const a=function(e){const t=It[e];if(t)return t;const a=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 It[e]=a,a}(e).format(t),n=Bt.exec(a);let o=n[4];return"24"==o&&(o="00"),"".concat(n[3],"-").concat(n[1],"-").concat(n[2],"T").concat(o,":").concat(n[5],":").concat(n[6],"Z")}var Lt={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem",Chanukah:"Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights","Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot","Lag BaOmer":"33rd day of counting the Omer","Leil Selichot":"Prayers for forgiveness in preparation for the High Holidays","Pesach Sheni":"Second Passover, one month after Passover",Pesach:"Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt","Purim Katan":"Minor Purim celebration during Adar I on leap years",Purim:"Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination","Rosh Chodesh Adar I":"Beginning of new Hebrew month of Adar I (on leap years). Adar I is the 12th month of the Hebrew year. Corresponds to February or March on the Gregorian calendar","Rosh Chodesh Adar II":'Beginning of new Hebrew month of Adar II (on leap years). Adar II (sometimes "Adar Bet" or "Adar Sheni") is the 13th month of the Hebrew year, occurring only on leap years. Corresponds to February or March on the Gregorian calendar',"Rosh Chodesh Adar":"Beginning of new Hebrew month of Adar. Adar is the 12th month of the Hebrew year. Corresponds to February or March on the Gregorian calendar","Rosh Chodesh Av":"Beginning of new Hebrew month of Av. Av is the 5th month of the Hebrew year. Corresponds to July or August on the Gregorian calendar","Rosh Chodesh Cheshvan":"Beginning of new Hebrew month of Cheshvan. Cheshvan is the 8th month of the Hebrew year. Corresponds to October or November on the Gregorian calendar","Rosh Chodesh Elul":"Beginning of new Hebrew month of Elul. Elul is the 6th month of the Hebrew year. Corresponds to August or September on the Gregorian calendar","Rosh Chodesh Iyyar":"Beginning of new Hebrew month of Iyyar. Iyyar (somtimes transliterated Iyar) is the 2nd month of the Hebrew year. Corresponds to April or May on the Gregorian calendar","Rosh Chodesh Kislev":"Beginning of new Hebrew month of Kislev. Kislev is the 9th month of the Hebrew year. Corresponds to November or December on the Gregorian calendar","Rosh Chodesh Nisan":"Beginning of new Hebrew month of Nisan. Nisan (sometimes transliterated Nissan) is the 1st month of the Hebrew year. rresponds to March or April on the Gregorian calendar","Rosh Chodesh Sh'vat":"Beginning of new Hebrew month of Sh'vat. Sh'vat (sometimes transliterated Shevat) is the 11th month of the Hebrew year. Corresponds to January or February on the Gregorian calendar","Rosh Chodesh Sivan":"Beginning of new Hebrew month of Sivan. Sivan is the 3rd month of the Hebrew year. Corresponds to May or June on the Gregorian calendar","Rosh Chodesh Tamuz":"Beginning of new Hebrew month of Tamuz. Tamuz (sometimes transliterated Tammuz) is the 4th month of the Hebrew year. Corresponds to June or July on the Gregorian calendar","Rosh Chodesh Tevet":"Beginning of new Hebrew month of Tevet. Tevet is the 10th month of the Hebrew year. Corresponds to December or January on the Gregorian calendar","Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Shabbat Chazon":"Shabbat before Tish'a B'Av (Shabbat of Prophecy/Shabbat of Vision)","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan","Shabbat HaGadol":"Shabbat before Pesach","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Nachamu":"Shabbat after Tish'a B'Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (\"Comfort, oh comfort my people\")","Shabbat Parah":"Shabbat of the Red Heifer","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar","Shabbat Shuva":"Shabbat that falls between Rosh Hashanah and Yom Kippur (Shabbat of Returning)","Shabbat Zachor":"Shabbat before Purim",Shavuot:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","Shmini Atzeret":"Eighth Day of Assembly","Shushan Purim":"Purim celebrated in Jerusalem and walled cities",Sigd:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","Simchat Torah":"Day of Celebrating the Torah",Sukkot:"Feast of Booths","Ta'anit Bechorot":"Fast of the First Born","Ta'anit Esther":"Fast of Esther","Tish'a B'Av":"The Ninth of Av. Fast commemorating the destruction of the two Temples","Tu B'Av":"Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av","Tu BiShvat":"New Year for Trees","Tzom Gedaliah":"Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah","Tzom Tammuz":"Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Note that Hebcal displays modern holidays like Yom HaAtzma'ut according to the Israeli schedule. Although Yom HaAtzma'ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat","Yom HaShoah":"Holocaust Memorial Day","Yom HaZikaron":"Israeli Memorial Day. Note that Hebcal displays modern holidays like Yom HaZikaron according to the Israeli schedule. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma'ut, which always follows it) would conflict with Shabbat","Yom Kippur":"Day of Atonement","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};function Pt(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}function Dt(e){return e<10?"0"+e:String(e)}function Ft(e){return e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function Et(e,t){const a=function(e,t){const a=Rt("UTC",t),n=Rt(e,t),o=new Date(a).getTime()-new Date(n).getTime();return Math.ceil(o/1e3/60)}(e,t),n=Math.abs(a),o=n%60;return(Boolean(a<0)?"+":"-")+Dt(Math.floor(n/60))+":"+Dt(o)}function Nt(e){return Ft(e.getFullYear())+"-"+Dt(e.getMonth()+1)+"-"+Dt(e.getDate())}function Gt(e,t,a){const n=Nt(e);return t?n+"T"+t+":00"+Et(a,e):n}function _t(e){const a=e.getDesc();if("Fast begins"===a||"Fast ends"===a)return["zmanim","fast"];switch(e.getFlags()){case t.flags.OMER_COUNT:return["omer"];case t.flags.HEBREW_DATE:return["hebdate"];case t.flags.PARSHA_HASHAVUA:return["parashat"];case t.flags.DAF_YOMI:return["dafyomi"];case t.flags.ROSH_CHODESH:return["roshchodesh"];case t.flags.SPECIAL_SHABBAT:return["holiday","shabbat"];case t.flags.MINOR_FAST:return["holiday","fast"];case t.flags.MAJOR_FAST:return["holiday","fast","major"];case t.flags.MODERN_HOLIDAY:return["holiday","modern"];case t.flags.SHABBAT_MEVARCHIM:return["mevarchim"];case t.flags.MOLAD:return["molad"];case t.flags.USER_EVENT:return["user"]}if(e.cholHaMoedDay)return["holiday","major","cholhamoed"];switch(a){case"Havdalah":return["havdalah"];case"Candle lighting":return["candles"];case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":return["holiday","minor"];default:return["holiday","major"]}}function kt(e,t){let a="Hebcal";const n=t.location;if(t.yahrzeit)a+=" Yahrzeits and Anniversaries";else if(n&&n.name){const e=n.name.indexOf(",");a+=" "+(-1==e?n.name:n.name.substring(0,e))}else t.il?a+=" Israel":a+=" Diaspora";if(t.isHebrewYear||0==e.length)a+=" "+t.year;else{const t=e[0].getDate().greg(),n=e[e.length-1].getDate().greg();if(t.getFullYear()!=n.getFullYear())a+=" "+t.getFullYear()+"-"+n.getFullYear();else if(t.getMonth()==n.getMonth()){a+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(t)+" "+t.getFullYear()}else a+=" "+t.getFullYear()}return a}function jt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const a=Lt[e.getDesc()]||Lt[e.basename()]||"";if(t&&a){const e=a.indexOf(".");if(-1!=e)return a.substring(0,e)}return a}const Yt=t.flags.DAF_YOMI|t.flags.OMER_COUNT|t.flags.SHABBAT_MEVARCHIM|t.flags.MOLAD|t.flags.USER_EVENT|t.flags.HEBREW_DATE;function zt(e,n){const o=e.getFlags();if(o&Yt)return"";let r,i="";if(o&t.flags.PARSHA_HASHAVUA){if(r=a.getLeyningForParshaHaShavua(e,n),i="Torah: ".concat(r.summary),r.reason)for(const e of["7","M"]){const t=r.reason[e];if(t){const n="7"===e?"7th aliyah":"Maftir",o=a.formatAliyahWithBook(r.fullkriyah[e]);i+="\n".concat(n,": ").concat(o," | ").concat(t)}}r.haftara&&(i+="\nHaftarah: "+r.haftara,r.reason&&r.reason.haftara&&(i+=" | "+r.reason.haftara))}else if(r=a.getLeyningForHoliday(e,n),r&&(r.summary||r.haftara))return r.summary&&(i+="Torah: ".concat(r.summary)),r.summary&&r.haftara&&(i+="\n"),r.haftara&&(i+="Haftarah: "+r.haftara),i;return r&&r.sephardic&&(i+="\nHaftarah for Sephardim: "+r.sephardic),i}const Ut='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"';function Kt(e,a){const n=e.getDate().greg(),o=n.getDate(),r=n.getMonth()+1,i=String(n.getFullYear()).padStart(4,"0"),s=a.euro?'"'.concat(o,"/").concat(r,"/").concat(i,'"'):'"'.concat(r,"/").concat(o,"/").concat(i,'"');let c="",l="",h="",u='"true"';const f=Boolean(e.eventTime);let m=f?e.renderBrief():e.render();if(e.eventTime){const n=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr," PM",a);l=c='"'.concat(n,'"'),h=s,u='"false"'}let g="Jewish Holidays";const d=e.getFlags();if(f&&a.location&&a.location.name){const e=a.location.name.indexOf(",");g=-1==e?a.location.name:a.location.name.substring(0,e)}else if(d&t.flags.DAF_YOMI){const e=m.indexOf(": ");-1!=e&&(g=m.substring(0,e),m=m.substring(e+2))}if(m=m.replace(/,/g,"").replace(/"/g,"''"),a.appendHebrewToSubject){const t=e.renderBrief("he");t&&(m+=" / ".concat(t))}const y=(e.memo||jt(e,!0)).replace(/,/g,";").replace(/"/g,"''"),p=f||d&t.flags.CHAG?4:3;return'"'.concat(m,'",').concat(s,",").concat(c,",").concat(h,",").concat(l,",").concat(u,',"').concat(y,'","').concat(p,'","').concat(g,'"')}var xt={AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CD:"Democratic Republic of the Congo",CF:"Central African Republic",CG:"Republic of the Congo",CH:"Switzerland",CI:"Ivory Coast",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GE:"Georgia",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GQ:"Equatorial Guinea",GR:"Greece",GT:"Guatemala",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MD:"Moldova",ME:"Montenegro",MG:"Madagascar",MK:"Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MP:"Northern Mariana Islands",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PR:"Puerto Rico",PT:"Portugal",PY:"Paraguay",QA:"Qatar",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SK:"Slovakia",SL:"Sierra Leone",SN:"Senegal",SO:"Somalia",SR:"Suriname",ST:"Sao Tome and Principe",SV:"El Salvador",SY:"Syria",SZ:"Swaziland",TC:"Turks and Caicos Islands",TD:"Chad",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TM:"Turkmenistan",TN:"Tunisia",TR:"Turkey",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"British Virgin Islands",VN:"Vietnam",WS:"Samoa",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe"};function Jt(e,n){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=Boolean(e.eventTime),i=e.getDate(),s=i.greg(),c="object"==typeof n.location?n.location.getTzid():"UTC",l=r?Gt(s,e.eventTimeStr,c):Nt(s),h=_t(e);let u=r?e.renderBrief():e.render();const f=e.getDesc(),m="Havdalah"===f||"Candle lighting"===f;if(m){u+=": "+t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",n)}const g={title:u,date:l,category:h[0]};h.length>1&&(g.subcat=h[1]),"holiday"==h[0]&&e.getFlags()&t.flags.CHAG&&(g.yomtov=!0),u!=f&&(g.title_orig=f);const d=e.renderBrief("he");if(d&&(g.hebrew=t.Locale.hebrewStripNikkud(d)),!m){if(o){const o=n.il,r=e.getFlags()==t.flags.PARSHA_HASHAVUA,s=r?a.getLeyningForParshaHaShavua(e,o):a.getLeyningForHoliday(e,o);if(s){g.leyning=Wt(s);const t=i.getFullYear();if(r&&!o&&t>=5745&&t<=5830){const t=a.getTriennialForParshaHaShavua(e);t&&(g.leyning.triennial=Vt({},t))}}}const r=e.url();if(r)if("https://www.hebcal.com"==r.substring(0,22)){const e=n.il?"i=on&":"";g.link="".concat(r,"?").concat(e,"utm_source=js&utm_medium=api")}else{const e=-1==r.indexOf("?")?"?":"&";g.link=r+e+"utm_source=hebcal.com&utm_medium=api"}}const y=e.memo||Lt[e.basename()];return y&&(g.memo=y),g}function Vt(e,t){return Object.keys(t).forEach(n=>{const o=t[n];if(void 0!==o){e["M"==n?"maftir":n]=a.formatAliyahWithBook(o)}}),e}function Wt(e){const t={};return e.summary&&(t.torah=e.summary),e.haftara&&(t.haftarah=e.haftara),e.sephardic&&(t.haftarah_sephardic=e.sephardic),e.fullkriyah&&Vt(t,e.fullkriyah),e.reason&&(["7","8","M"].forEach(a=>{if(e.reason[a]){t["M"==a?"maftir":a]+=" | "+e.reason[a]}}),e.reason.haftara&&(t.haftarah+=" | "+e.reason.haftara)),t}const Zt="utm_source=shabbat1c&amp;utm_medium=rss";function qt(e,a,n,o,r){let i=e.render();const s=e.getDate().greg(),c=function(e,t,a,n){if(t){const t=e.eventTime;return t?t.toUTCString():a.toUTCString().replace(/ \S+ GMT$/," 00:00:00 GMT")}return n}(e,a,s,n),l=function(e,t){let a,n;const o=(e.eventTime||e.getDate().greg()).toISOString(),r=encodeURIComponent(o.substring(0,e.eventTime?19:10)),i=e.url(),s=i&&t?i+"?i=on":i;if(s)a=-1==s.indexOf("?")?s+"?"+Zt:s+"&amp;"+Zt,n=a+"&amp;dt="+r;else{const t=Pt(e.getDesc());n=a="https://www.hebcal.com/shabbat?"+Zt+"&amp;dt="+r+"#"+t}return[a,n]}(e,r.getIsrael()),h=l[0],u=l[1],f=o.format(s),m=_t(e)[0],g=e.getDesc();if("Havdalah"===g||"Candle lighting"===g){const a=i.indexOf(": ");if(-1!=a){const n={location:r,il:r.getIsrael(),locale:t.Locale.getLocaleName()},o=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",n);i=i.substring(0,a)+": "+o}}const d="candles"==m?"<geo:lat>".concat(r.getLatitude(),"</geo:lat>\n<geo:long>").concat(r.getLongitude(),"</geo:long>\n"):"";return"<item>\n<title>".concat(i,"</title>\n<link>").concat(h,'</link>\n<guid isPermaLink="false">').concat(u,"</guid>\n<description>").concat(f,"</description>\n<category>").concat(m,"</category>\n<pubDate>").concat(c,"</pubDate>\n").concat(d,"</item>\n")}return e.countryNames=xt,e.eventToClassicApiObject=Jt,e.eventToCsv=Kt,e.eventToFullCalendar=function(e,a,n){const o=_t(e);"holiday"==o[0]&&e.getFlags()&t.flags.CHAG&&o.push("yomtov");const r=Boolean(e.eventTime),i={title:r||e.getFlags()&t.flags.DAF_YOMI?e.renderBrief():e.render(),start:Gt(e.getDate().greg(),e.eventTimeStr,a),allDay:!r,className:o.join(" ")};let s=e.renderBrief("he");if(s){const a=s.indexOf(":");-1!=a&&e.getFlags()&t.flags.DAF_YOMI&&(s=s.substring(a+1)),i.hebrew=t.Locale.hebrewStripNikkud(s)}const c=e.url();if(c)if("https://www.hebcal.com"==c.substring(0,22)){const e=n?"i=on&":"";i.url="".concat(c,"?").concat(e,"utm_source=js&utm_medium=fc")}else{const e=-1==c.indexOf("?")?"?":"&";i.url=c+e+"utm_source=hebcal.com&utm_medium=fc"}const l=e.getDesc();if(!("Havdalah"===l||"Candle lighting"===l)){const a=e.getFlags()&t.flags.PARSHA_HASHAVUA?zt(e,n):e.memo||Lt[e.basename()];a&&(i.description=a)}return i},e.eventToRssItem=qt,e.eventsToClassicApi=function(e,t){let a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n={title:kt(e,t),date:(new Date).toISOString()},o=t.location;return"object"==typeof o&&"string"==typeof o.name?(n.location={title:o.getName(),city:o.getShortName(),tzid:o.getTzid(),latitude:o.getLatitude(),longitude:o.getLongitude(),cc:o.getCountryCode(),country:xt[o.getCountryCode()]},["admin1","asciiname","geo","zip","state","geonameid"].forEach(e=>{o[e]&&(n.location[e]=o[e])})):n.location={geo:"none"},n.items=e.map(e=>Jt(e,t,a)),n},e.eventsToCsv=function(e,t){return[Ut].concat(e.map(e=>Kt(e,t))).join("\r\n")+"\r\n"},e.eventsToRss=function(e,t,a,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"en-US",r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];const i=t.getName(),s=(new Date).getFullYear(),c="Shabbat Times for "+i,l=(new Date).toUTCString(),h=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"});a=a.replace(/&/g,"&amp;"),n=n.replace(/&/g,"&amp;");let u='<?xml version="1.0" encoding="UTF-8"?>\n<rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:atom="http://www.w3.org/2005/Atom">\n<channel>\n<title>'.concat(c,"</title>\n<link>").concat(a,"&amp;").concat(Zt,'</link>\n<atom:link href="').concat(n,'" rel="self" type="application/rss+xml" />\n<description>Weekly Shabbat candle lighting times for ').concat(i,"</description>\n<language>").concat(o,"</language>\n<copyright>Copyright (c) ").concat(s," Michael J. Radwin. All rights reserved.</copyright>\n<lastBuildDate>").concat(l,"</lastBuildDate>\n");return e.forEach(e=>{u+=qt(e,r,l,h,t)}),u+="</channel>\n</rss>\n",u},e.getCalendarTitle=kt,e.getDownloadFilename=function(e){let t="hebcal_"+e.year;if(e.isHebrewYear&&(t+="H"),e.month&&(t+="_"+e.month),e.location){t+="_"+(e.location.zip||e.location.asciiname||e.location.getShortName()).replace(/[^A-Za-z0-9]/g,"_")}return t},e.getEventCategories=_t,e.getHolidayDescription=jt,e.holidayDescription=Lt,e.makeAnchor=Pt,e.makeTorahMemoText=zt,e.pad2=Dt,e.pad4=Ft,e.renderTitleWithoutTime=function(e){return void 0===e.eventTime?e.render():e.renderBrief()},e.timeZoneOffsetStr=Et,e.toISOString=Nt,e.toISOStringWithTimezone=Gt,Object.defineProperty(e,"__esModule",{value:!0}),e}({},hebcal,hebcal__leyning);
/*! @hebcal/rest-api v3.2.0 */
var hebcal__rest_api=function(e,t,n){"use strict";var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){var t={exports:{}};return e(t,t.exports),t.exports}var r,i=function(e){return e&&e.Math==Math&&e},s=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof a&&a)||function(){return this}()||Function("return this")(),c={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},l=function(e){try{return!!e()}catch(e){return!0}},h={}.toString,u="".split,f=l((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==function(e){return h.call(e).slice(8,-1)}(e)?u.call(e,""):Object(e)}:Object,m=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},d=function(e){return f(m(e))},g=!l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),y=function(e){return"object"==typeof e?null!==e:"function"==typeof e},p=s.document,b=y(p)&&y(p.createElement),S=function(e){return b?p.createElement(e):{}},v=!g&&!l((function(){return 7!=Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a})),w=function(e){if(!y(e))throw TypeError(String(e)+" is not an object");return e},T=function(e,t){if(!y(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!y(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!y(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!y(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")},A=Object.defineProperty,C={f:g?A:function(e,t,n){if(w(e),t=T(t,!0),w(n),v)try{return A(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},H=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},M=g?function(e,t,n){return C.f(e,t,H(1,n))}:function(e,t,n){return e[t]=n,e},O=function(e,t){try{M(s,e,t)}catch(n){s[e]=t}return t},I="__core-js_shared__",B=s[I]||O(I,{}),E=o((function(e){(e.exports=function(e,t){return B[e]||(B[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.8.1",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),R={}.hasOwnProperty,L=function(e,t){return R.call(e,t)},P=0,D=Math.random(),F=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++P+D).toString(36)},k=!!Object.getOwnPropertySymbols&&!l((function(){return!String(Symbol())})),N=k&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,G=E("wks"),_=s.Symbol,j=N?_:_&&_.withoutSetter||F,Y=function(e){return L(G,e)||(k&&L(_,e)?G[e]=_[e]:G[e]=j("Symbol."+e)),G[e]},z=Math.ceil,U=Math.floor,K=function(e){return isNaN(e=+e)?0:(e>0?U:z)(e)},x=Math.min,J=Math.max,V=Math.min,W=function(e){return function(t,n,a){var o,r,i=d(t),s=(o=i.length)>0?x(K(o),9007199254740991):0,c=function(e,t){var n=K(e);return n<0?J(n+t,0):V(n,t)}(a,s);if(e&&n!=n){for(;s>c;)if((r=i[c++])!=r)return!0}else for(;s>c;c++)if((e||c in i)&&i[c]===n)return e||c||0;return!e&&-1}},Z={includes:W(!0),indexOf:W(!1)},q={},Q=Z.indexOf,X=function(e,t){var n,a=d(e),o=0,r=[];for(n in a)!L(q,n)&&L(a,n)&&r.push(n);for(;t.length>o;)L(a,n=t[o++])&&(~Q(r,n)||r.push(n));return r},$=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ee=Object.keys||function(e){return X(e,$)},te=g?Object.defineProperties:function(e,t){w(e);for(var n,a=ee(t),o=a.length,r=0;o>r;)C.f(e,n=a[r++],t[n]);return e},ne=s,ae=function(e){return"function"==typeof e?e:void 0},oe=function(e,t){return arguments.length<2?ae(ne[e])||ae(s[e]):ne[e]&&ne[e][t]||s[e]&&s[e][t]},re=oe("document","documentElement"),ie=E("keys"),se=function(e){return ie[e]||(ie[e]=F(e))},ce=se("IE_PROTO"),le=function(){},he=function(e){return"<script>"+e+"</"+"script>"},ue=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;ue=r?function(e){e.write(he("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=S("iframe")).style.display="none",re.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(he("document.F=Object")),e.close(),e.F);for(var n=$.length;n--;)delete ue.prototype[$[n]];return ue()};q[ce]=!0;var fe=Object.create||function(e,t){var n;return null!==e?(le.prototype=w(e),n=new le,le.prototype=null,n[ce]=e):n=ue(),void 0===t?n:te(n,t)},me=Y("unscopables"),de=Array.prototype;null==de[me]&&C.f(de,me,{configurable:!0,value:fe(null)});var ge=function(e){de[me][e]=!0},ye=Function.toString;"function"!=typeof B.inspectSource&&(B.inspectSource=function(e){return ye.call(e)});var pe,be,Se,ve=B.inspectSource,we=s.WeakMap,Te="function"==typeof we&&/native code/.test(ve(we)),Ae=s.WeakMap;if(Te){var Ce=B.state||(B.state=new Ae),He=Ce.get,Me=Ce.has,Oe=Ce.set;pe=function(e,t){return t.facade=e,Oe.call(Ce,e,t),t},be=function(e){return He.call(Ce,e)||{}},Se=function(e){return Me.call(Ce,e)}}else{var Ie=se("state");q[Ie]=!0,pe=function(e,t){return t.facade=e,M(e,Ie,t),t},be=function(e){return L(e,Ie)?e[Ie]:{}},Se=function(e){return L(e,Ie)}}var Be,Ee,Re,Le={set:pe,get:be,has:Se,enforce:function(e){return Se(e)?be(e):pe(e,{})},getterFor:function(e){return function(t){var n;if(!y(t)||(n=be(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Pe={}.propertyIsEnumerable,De=Object.getOwnPropertyDescriptor,Fe={f:De&&!Pe.call({1:2},1)?function(e){var t=De(this,e);return!!t&&t.enumerable}:Pe},ke=Object.getOwnPropertyDescriptor,Ne={f:g?ke:function(e,t){if(e=d(e),t=T(t,!0),v)try{return ke(e,t)}catch(e){}if(L(e,t))return H(!Fe.f.call(e,t),e[t])}},Ge=o((function(e){var t=Le.get,n=Le.enforce,a=String(String).split("String");(e.exports=function(e,t,o,r){var i,c=!!r&&!!r.unsafe,l=!!r&&!!r.enumerable,h=!!r&&!!r.noTargetGet;"function"==typeof o&&("string"!=typeof t||L(o,"name")||M(o,"name",t),(i=n(o)).source||(i.source=a.join("string"==typeof t?t:""))),e!==s?(c?!h&&e[t]&&(l=!0):delete e[t],l?e[t]=o:M(e,t,o)):l?e[t]=o:O(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||ve(this)}))})),_e=$.concat("length","prototype"),je={f:Object.getOwnPropertyNames||function(e){return X(e,_e)}},Ye={f:Object.getOwnPropertySymbols},ze=oe("Reflect","ownKeys")||function(e){var t=je.f(w(e)),n=Ye.f;return n?t.concat(n(e)):t},Ue=function(e,t){for(var n=ze(t),a=C.f,o=Ne.f,r=0;r<n.length;r++){var i=n[r];L(e,i)||a(e,i,o(t,i))}},Ke=/#|\.prototype\./,xe=function(e,t){var n=Ve[Je(e)];return n==Ze||n!=We&&("function"==typeof t?l(t):!!t)},Je=xe.normalize=function(e){return String(e).replace(Ke,".").toLowerCase()},Ve=xe.data={},We=xe.NATIVE="N",Ze=xe.POLYFILL="P",qe=xe,Qe=Ne.f,Xe=!l((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),$e=se("IE_PROTO"),et=Object.prototype,tt=Xe?Object.getPrototypeOf:function(e){return e=Object(m(e)),L(e,$e)?e[$e]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?et:null},nt=Y("iterator"),at=!1;[].keys&&("next"in(Re=[].keys())?(Ee=tt(tt(Re)))!==Object.prototype&&(Be=Ee):at=!0),null==Be&&(Be={}),L(Be,nt)||M(Be,nt,(function(){return this}));var ot={IteratorPrototype:Be,BUGGY_SAFARI_ITERATORS:at},rt=C.f,it=Y("toStringTag"),st=function(e,t,n){e&&!L(e=n?e:e.prototype,it)&&rt(e,it,{configurable:!0,value:t})},ct=ot.IteratorPrototype,lt=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,a){return w(n),function(e){if(!y(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(a),t?e.call(n,a):n.__proto__=a,n}}():void 0),ht=ot.IteratorPrototype,ut=ot.BUGGY_SAFARI_ITERATORS,ft=Y("iterator"),mt="keys",dt="values",gt="entries",yt=function(){return this},pt="Array Iterator",bt=Le.set,St=Le.getterFor(pt),vt=function(e,t,n,a,o,r,i){!function(e,t,n){var a=t+" Iterator";e.prototype=fe(ct,{next:H(1,n)}),st(e,a,!1)}(n,t,a);var c,l,h,u=function(e){if(e===o&&y)return y;if(!ut&&e in d)return d[e];switch(e){case mt:case dt:case gt:return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",m=!1,d=e.prototype,g=d[ft]||d["@@iterator"]||o&&d[o],y=!ut&&g||u(o),p="Array"==t&&d.entries||g;if(p&&(c=tt(p.call(new e)),ht!==Object.prototype&&c.next&&(tt(c)!==ht&&(lt?lt(c,ht):"function"!=typeof c[ft]&&M(c,ft,yt)),st(c,f,!0))),o==dt&&g&&g.name!==dt&&(m=!0,y=function(){return g.call(this)}),d[ft]!==y&&M(d,ft,y),o)if(l={values:u(dt),keys:r?y:u(mt),entries:u(gt)},i)for(h in l)(ut||m||!(h in d))&&Ge(d,h,l[h]);else!function(e,t){var n,a,o,r,i,c=e.target,l=e.global,h=e.stat;if(n=l?s:h?s[c]||O(c,{}):(s[c]||{}).prototype)for(a in t){if(r=t[a],o=e.noTargetGet?(i=Qe(n,a))&&i.value:n[a],!qe(l?a:c+(h?".":"#")+a,e.forced)&&void 0!==o){if(typeof r==typeof o)continue;Ue(r,o)}(e.sham||o&&o.sham)&&M(r,"sham",!0),Ge(n,a,r,e)}}({target:t,proto:!0,forced:ut||m},l);return l}(Array,"Array",(function(e,t){bt(this,{type:pt,target:d(e),index:0,kind:t})}),(function(){var e=St(this),t=e.target,n=e.kind,a=e.index++;return!t||a>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:a,done:!1}:"values"==n?{value:t[a],done:!1}:{value:[a,t[a]],done:!1}}),"values");ge("keys"),ge("values"),ge("entries");var wt=Y("iterator"),Tt=Y("toStringTag"),At=vt.values;for(var Ct in c){var Ht=s[Ct],Mt=Ht&&Ht.prototype;if(Mt){if(Mt[wt]!==At)try{M(Mt,wt,At)}catch(e){Mt[wt]=At}if(Mt[Tt]||M(Mt,Tt,Ct),c[Ct])for(var Ot in vt)if(Mt[Ot]!==vt[Ot])try{M(Mt,Ot,vt[Ot])}catch(e){Mt[Ot]=vt[Ot]}}}const It={};const Bt=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function Et(e,t){const n=function(e){const t=It[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 It[e]=n,n}(e).format(t),a=Bt.exec(n);let o=a[4];return"24"==o&&(o="00"),"".concat(a[3],"-").concat(a[1],"-").concat(a[2],"T").concat(o,":").concat(a[5],":").concat(a[6],"Z")}var Rt={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem",Chanukah:"Hanukkah, the Jewish festival of rededication. Also known as the Festival of Lights","Days of the Omer":"7 weeks from the second night of Pesach to the day before Shavuot","Lag BaOmer":"33rd day of counting the Omer","Leil Selichot":"Prayers for forgiveness in preparation for the High Holidays","Pesach Sheni":"Second Passover, one month after Passover",Pesach:"Passover, the Feast of Unleavened Bread. Also called Chag HaMatzot (the Festival of Matzah), it commemorates the Exodus and freedom of the Israelites from ancient Egypt","Purim Katan":"Minor Purim celebration during Adar I on leap years",Purim:"Celebration of Jewish deliverance as told by Megilat Esther. It commemorates a time when the Jewish people living in Persia were saved from extermination","Rosh Chodesh Adar I":"Beginning of new Hebrew month of Adar I (on leap years). Adar I is the 12th month of the Hebrew year. Corresponds to February or March on the Gregorian calendar","Rosh Chodesh Adar II":'Beginning of new Hebrew month of Adar II (on leap years). Adar II (sometimes "Adar Bet" or "Adar Sheni") is the 13th month of the Hebrew year, occurring only on leap years. Corresponds to February or March on the Gregorian calendar',"Rosh Chodesh Adar":"Beginning of new Hebrew month of Adar. Adar is the 12th month of the Hebrew year. Corresponds to February or March on the Gregorian calendar","Rosh Chodesh Av":"Beginning of new Hebrew month of Av. Av is the 5th month of the Hebrew year. Corresponds to July or August on the Gregorian calendar","Rosh Chodesh Cheshvan":"Beginning of new Hebrew month of Cheshvan. Cheshvan is the 8th month of the Hebrew year. Corresponds to October or November on the Gregorian calendar","Rosh Chodesh Elul":"Beginning of new Hebrew month of Elul. Elul is the 6th month of the Hebrew year. Corresponds to August or September on the Gregorian calendar","Rosh Chodesh Iyyar":"Beginning of new Hebrew month of Iyyar. Iyyar (somtimes transliterated Iyar) is the 2nd month of the Hebrew year. Corresponds to April or May on the Gregorian calendar","Rosh Chodesh Kislev":"Beginning of new Hebrew month of Kislev. Kislev is the 9th month of the Hebrew year. Corresponds to November or December on the Gregorian calendar","Rosh Chodesh Nisan":"Beginning of new Hebrew month of Nisan. Nisan (sometimes transliterated Nissan) is the 1st month of the Hebrew year. rresponds to March or April on the Gregorian calendar","Rosh Chodesh Sh'vat":"Beginning of new Hebrew month of Sh'vat. Sh'vat (sometimes transliterated Shevat) is the 11th month of the Hebrew year. Corresponds to January or February on the Gregorian calendar","Rosh Chodesh Sivan":"Beginning of new Hebrew month of Sivan. Sivan is the 3rd month of the Hebrew year. Corresponds to May or June on the Gregorian calendar","Rosh Chodesh Tamuz":"Beginning of new Hebrew month of Tamuz. Tamuz (sometimes transliterated Tammuz) is the 4th month of the Hebrew year. Corresponds to June or July on the Gregorian calendar","Rosh Chodesh Tevet":"Beginning of new Hebrew month of Tevet. Tevet is the 10th month of the Hebrew year. Corresponds to December or January on the Gregorian calendar","Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Shabbat Chazon":"Shabbat before Tish'a B'Av (Shabbat of Prophecy/Shabbat of Vision)","Shabbat HaChodesh":"Shabbat before Rosh Chodesh Nissan","Shabbat HaGadol":"Shabbat before Pesach","Shabbat Machar Chodesh":"When Shabbat falls the day before Rosh Chodesh","Shabbat Nachamu":"Shabbat after Tish'a B'Av (Shabbat of Consolation). The first of seven Shabbatot leading up to Rosh Hashanah. Named after the Haftarah (from Isaiah 40) which begins with the verse נַחֲמוּ נַחֲמוּ, עַמִּי (\"Comfort, oh comfort my people\")","Shabbat Parah":"Shabbat of the Red Heifer","Shabbat Rosh Chodesh":"When Shabbat falls on Rosh Chodesh","Shabbat Shekalim":"Shabbat before Rosh Chodesh Adar","Shabbat Shuva":"Shabbat that falls between Rosh Hashanah and Yom Kippur (Shabbat of Returning)","Shabbat Zachor":"Shabbat before Purim",Shavuot:"Festival of Weeks. Commemorates the giving of the Torah at Mount Sinai","Shmini Atzeret":"Eighth Day of Assembly","Shushan Purim":"Purim celebrated in Jerusalem and walled cities",Sigd:"Ethiopian Jewish holiday occurring 50 days after Yom Kippur","Simchat Torah":"Day of Celebrating the Torah",Sukkot:"Feast of Booths","Ta'anit Bechorot":"Fast of the First Born","Ta'anit Esther":"Fast of Esther","Tish'a B'Av":"The Ninth of Av. Fast commemorating the destruction of the two Temples","Tu B'Av":"Minor Jewish holiday of love. Observed on the 15th day of the Hebrew month of Av","Tu BiShvat":"New Year for Trees","Tzom Gedaliah":"Fast of the Seventh Month. Commemorates the assassination of the Jewish governor of Judah","Tzom Tammuz":"Fast commemorating breaching of the walls of Jerusalem before the destruction of the Second Temple","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. Note that Hebcal displays modern holidays like Yom HaAtzma'ut according to the Israeli schedule. Although Yom HaAtzma'ut is normally observed on the 5th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaZikaron, which always precedes it) would conflict with Shabbat","Yom HaShoah":"Holocaust Memorial Day","Yom HaZikaron":"Israeli Memorial Day. Note that Hebcal displays modern holidays like Yom HaZikaron according to the Israeli schedule. Although Yom Hazikaron is normally observed on the 4th of Iyyar, it may be moved earlier or postponed if observance of the holiday (or Yom HaAtzma'ut, which always follows it) would conflict with Shabbat","Yom Kippur":"Day of Atonement","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};function Lt(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}function Pt(e){return e<10?"0"+e:String(e)}function Dt(e){return e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function Ft(e,t){const n=function(e,t){const n=Et("UTC",t),a=Et(e,t),o=new Date(n).getTime()-new Date(a).getTime();return Math.ceil(o/1e3/60)}(e,t),a=Math.abs(n),o=a%60;return(Boolean(n<0)?"+":"-")+Pt(Math.floor(a/60))+":"+Pt(o)}function kt(e){return Dt(e.getFullYear())+"-"+Pt(e.getMonth()+1)+"-"+Pt(e.getDate())}function Nt(e,t,n){const a=kt(e);return t?a+"T"+t+":00"+Ft(n,e):a}function Gt(e){const n=e.getDesc();if("Fast begins"===n||"Fast ends"===n)return["zmanim","fast"];switch(e.getFlags()){case t.flags.OMER_COUNT:return["omer"];case t.flags.HEBREW_DATE:return["hebdate"];case t.flags.PARSHA_HASHAVUA:return["parashat"];case t.flags.DAF_YOMI:return["dafyomi"];case t.flags.ROSH_CHODESH:return["roshchodesh"];case t.flags.SPECIAL_SHABBAT:return["holiday","shabbat"];case t.flags.MINOR_FAST:return["holiday","fast"];case t.flags.MAJOR_FAST:return["holiday","fast","major"];case t.flags.MODERN_HOLIDAY:return["holiday","modern"];case t.flags.SHABBAT_MEVARCHIM:return["mevarchim"];case t.flags.MOLAD:return["molad"];case t.flags.USER_EVENT:return["user"]}if(e.cholHaMoedDay)return["holiday","major","cholhamoed"];switch(n){case"Havdalah":return["havdalah"];case"Candle lighting":return["candles"];case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":return["holiday","minor"];default:return["holiday","major"]}}function _t(e,t){let n="Hebcal";const a=t.location;if(t.yahrzeit)n+=" Yahrzeits and Anniversaries";else if(a&&a.name){const e=a.name.indexOf(",");n+=" "+(-1==e?a.name:a.name.substring(0,e))}else t.il?n+=" Israel":n+=" Diaspora";if(t.isHebrewYear||0==e.length)n+=" "+t.year;else{const t=e[0].getDate().greg(),a=e[e.length-1].getDate().greg();if(t.getFullYear()!=a.getFullYear())n+=" "+t.getFullYear()+"-"+a.getFullYear();else if(t.getMonth()==a.getMonth()){n+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(t)+" "+t.getFullYear()}else n+=" "+t.getFullYear()}return n}function jt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=Rt[e.getDesc()]||Rt[e.basename()]||"";if(t&&n){const e=n.indexOf(".");if(-1!=e)return n.substring(0,e)}return n}const Yt=t.flags.DAF_YOMI|t.flags.OMER_COUNT|t.flags.SHABBAT_MEVARCHIM|t.flags.MOLAD|t.flags.USER_EVENT|t.flags.HEBREW_DATE;function zt(e,a){const o=e.getFlags();if(o&Yt)return"";let r,i="";if(o&t.flags.PARSHA_HASHAVUA){if(r=n.getLeyningForParshaHaShavua(e,a),i="Torah: ".concat(r.summary),r.reason)for(const e of["7","M"]){const t=r.reason[e];if(t){const a="7"===e?"7th aliyah":"Maftir",o=n.formatAliyahWithBook(r.fullkriyah[e]);i+="\n".concat(a,": ").concat(o," | ").concat(t)}}r.haftara&&(i+="\nHaftarah: "+r.haftara,r.reason&&r.reason.haftara&&(i+=" | "+r.reason.haftara))}else if(r=n.getLeyningForHoliday(e,a),r&&(r.summary||r.haftara))return r.summary&&(i+="Torah: ".concat(r.summary)),r.summary&&r.haftara&&(i+="\n"),r.haftara&&(i+="Haftarah: "+r.haftara),i;return r&&r.sephardic&&(i+="\nHaftarah for Sephardim: "+r.sephardic),i}const Ut='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"';function Kt(e,n){const a=e.getDate().greg(),o=a.getDate(),r=a.getMonth()+1,i=String(a.getFullYear()).padStart(4,"0"),s=n.euro?'"'.concat(o,"/").concat(r,"/").concat(i,'"'):'"'.concat(r,"/").concat(o,"/").concat(i,'"');let c="",l="",h="",u='"true"';const f=Boolean(e.eventTime);let m=f?e.renderBrief():e.render();if(e.eventTime){const a=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr," PM",n);l=c='"'.concat(a,'"'),h=s,u='"false"'}let d="Jewish Holidays";const g=e.getFlags();if(f&&n.location&&n.location.name){const e=n.location.name.indexOf(",");d=-1==e?n.location.name:n.location.name.substring(0,e)}else if(g&t.flags.DAF_YOMI){const e=m.indexOf(": ");-1!=e&&(d=m.substring(0,e),m=m.substring(e+2))}if(m=m.replace(/,/g,"").replace(/"/g,"''"),n.appendHebrewToSubject){const t=e.renderBrief("he");t&&(m+=" / ".concat(t))}let y=e.memo||jt(e,!0);y||void 0===e.linkedEvent||(y=e.linkedEvent.render());const p=y.replace(/,/g,";").replace(/"/g,"''"),b=f||g&t.flags.CHAG?4:3;return'"'.concat(m,'",').concat(s,",").concat(c,",").concat(h,",").concat(l,",").concat(u,',"').concat(p,'","').concat(b,'","').concat(d,'"')}var xt={AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CD:"Democratic Republic of the Congo",CF:"Central African Republic",CG:"Republic of the Congo",CH:"Switzerland",CI:"Ivory Coast",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GE:"Georgia",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GQ:"Equatorial Guinea",GR:"Greece",GT:"Guatemala",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MD:"Moldova",ME:"Montenegro",MG:"Madagascar",MK:"Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MP:"Northern Mariana Islands",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PR:"Puerto Rico",PT:"Portugal",PY:"Paraguay",QA:"Qatar",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SK:"Slovakia",SL:"Sierra Leone",SN:"Senegal",SO:"Somalia",SR:"Suriname",ST:"Sao Tome and Principe",SV:"El Salvador",SY:"Syria",SZ:"Swaziland",TC:"Turks and Caicos Islands",TD:"Chad",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TM:"Turkmenistan",TN:"Tunisia",TR:"Turkey",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"British Virgin Islands",VN:"Vietnam",WS:"Samoa",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe"};function Jt(e,a){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=Boolean(e.eventTime),i=e.getDate(),s=i.greg(),c="object"==typeof a.location?a.location.getTzid():"UTC",l=r?Nt(s,e.eventTimeStr,c):kt(s),h=Gt(e);let u=r?e.renderBrief():e.render();const f=e.getDesc(),m="Havdalah"===f||"Candle lighting"===f;if(m){u+=": "+t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",a)}const d={title:u,date:l,category:h[0]};h.length>1&&(d.subcat=h[1]),"holiday"==h[0]&&e.getFlags()&t.flags.CHAG&&(d.yomtov=!0),u!=f&&(d.title_orig=f);const g=e.renderBrief("he");if(g&&(d.hebrew=t.Locale.hebrewStripNikkud(g)),!m){if(o){const o=a.il,r=e.getFlags()==t.flags.PARSHA_HASHAVUA,s=r?n.getLeyningForParshaHaShavua(e,o):n.getLeyningForHoliday(e,o);if(s){d.leyning=Wt(s);const t=i.getFullYear();if(r&&!o&&t>=5745&&t<=5830){const t=n.getTriennialForParshaHaShavua(e);t&&(d.leyning.triennial=Vt({},t))}}}const r=e.url();if(r)if("https://www.hebcal.com"==r.substring(0,22)){const e=a.il?"i=on&":"";d.link="".concat(r,"?").concat(e,"utm_source=js&utm_medium=api")}else{const e=-1==r.indexOf("?")?"?":"&";d.link=r+e+"utm_source=hebcal.com&utm_medium=api"}}const y=e.memo||Rt[e.basename()];return y?d.memo=y:void 0!==e.linkedEvent&&(d.memo=e.linkedEvent.render()),d}function Vt(e,t){return Object.keys(t).forEach(a=>{const o=t[a];if(void 0!==o){e["M"==a?"maftir":a]=n.formatAliyahWithBook(o)}}),e}function Wt(e){const t={};return e.summary&&(t.torah=e.summary),e.haftara&&(t.haftarah=e.haftara),e.sephardic&&(t.haftarah_sephardic=e.sephardic),e.fullkriyah&&Vt(t,e.fullkriyah),e.reason&&(["7","8","M"].forEach(n=>{if(e.reason[n]){t["M"==n?"maftir":n]+=" | "+e.reason[n]}}),e.reason.haftara&&(t.haftarah+=" | "+e.reason.haftara)),t}const Zt="utm_source=shabbat1c&amp;utm_medium=rss";function qt(e,n,a,o,r){let i=e.render();const s=e.getDate().greg(),c=function(e,t,n,a){if(t){const t=e.eventTime;return t?t.toUTCString():n.toUTCString().replace(/ \S+ GMT$/," 00:00:00 GMT")}return a}(e,n,s,a),l=function(e,t){let n,a;const o=(e.eventTime||e.getDate().greg()).toISOString(),r=encodeURIComponent(o.substring(0,e.eventTime?19:10)),i=e.url(),s=i&&t?i+"?i=on":i;if(s)n=-1==s.indexOf("?")?s+"?"+Zt:s+"&amp;"+Zt,a=n+"&amp;dt="+r;else{const t=Lt(e.getDesc());a=n="https://www.hebcal.com/shabbat?"+Zt+"&amp;dt="+r+"#"+t}return[n,a]}(e,r.getIsrael()),h=l[0],u=l[1],f=o.format(s),m=Gt(e)[0],d=e.getDesc();if("Havdalah"===d||"Candle lighting"===d){const n=i.indexOf(": ");if(-1!=n){const a={location:r,il:r.getIsrael(),locale:t.Locale.getLocaleName()},o=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",a);i=i.substring(0,n)+": "+o}}const g="candles"==m?"<geo:lat>".concat(r.getLatitude(),"</geo:lat>\n<geo:long>").concat(r.getLongitude(),"</geo:long>\n"):"";return"<item>\n<title>".concat(i,"</title>\n<link>").concat(h,'</link>\n<guid isPermaLink="false">').concat(u,"</guid>\n<description>").concat(f,"</description>\n<category>").concat(m,"</category>\n<pubDate>").concat(c,"</pubDate>\n").concat(g,"</item>\n")}return e.countryNames=xt,e.eventToClassicApiObject=Jt,e.eventToCsv=Kt,e.eventToFullCalendar=function(e,n,a){const o=Gt(e);"holiday"==o[0]&&e.getFlags()&t.flags.CHAG&&o.push("yomtov");const r=Boolean(e.eventTime),i={title:r||e.getFlags()&t.flags.DAF_YOMI?e.renderBrief():e.render(),start:Nt(e.getDate().greg(),e.eventTimeStr,n),allDay:!r,className:o.join(" ")};let s=e.renderBrief("he");if(s){const n=s.indexOf(":");-1!=n&&e.getFlags()&t.flags.DAF_YOMI&&(s=s.substring(n+1)),i.hebrew=t.Locale.hebrewStripNikkud(s)}const c=e.url();if(c)if("https://www.hebcal.com"==c.substring(0,22)){const e=a?"i=on&":"";i.url="".concat(c,"?").concat(e,"utm_source=js&utm_medium=fc")}else{const e=-1==c.indexOf("?")?"?":"&";i.url=c+e+"utm_source=hebcal.com&utm_medium=fc"}const l=e.getDesc();if(!("Havdalah"===l||"Candle lighting"===l)){const n=e.getFlags()&t.flags.PARSHA_HASHAVUA?zt(e,a):e.memo||Rt[e.basename()];n?i.description=n:void 0!==e.linkedEvent&&(i.description=e.linkedEvent.render())}return i},e.eventToRssItem=qt,e.eventsToClassicApi=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const a={title:_t(e,t),date:(new Date).toISOString()},o=t.location;return"object"==typeof o&&"string"==typeof o.name?(a.location={title:o.getName(),city:o.getShortName(),tzid:o.getTzid(),latitude:o.getLatitude(),longitude:o.getLongitude(),cc:o.getCountryCode(),country:xt[o.getCountryCode()]},["admin1","asciiname","geo","zip","state","geonameid"].forEach(e=>{o[e]&&(a.location[e]=o[e])})):a.location={geo:"none"},a.items=e.map(e=>Jt(e,t,n)),a},e.eventsToCsv=function(e,t){return[Ut].concat(e.map(e=>Kt(e,t))).join("\r\n")+"\r\n"},e.eventsToRss=function(e,t,n,a){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"en-US",r=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];const i=t.getName(),s=(new Date).getFullYear(),c="Shabbat Times for "+i,l=(new Date).toUTCString(),h=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"});n=n.replace(/&/g,"&amp;"),a=a.replace(/&/g,"&amp;");let u='<?xml version="1.0" encoding="UTF-8"?>\n<rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:atom="http://www.w3.org/2005/Atom">\n<channel>\n<title>'.concat(c,"</title>\n<link>").concat(n,"&amp;").concat(Zt,'</link>\n<atom:link href="').concat(a,'" rel="self" type="application/rss+xml" />\n<description>Weekly Shabbat candle lighting times for ').concat(i,"</description>\n<language>").concat(o,"</language>\n<copyright>Copyright (c) ").concat(s," Michael J. Radwin. All rights reserved.</copyright>\n<lastBuildDate>").concat(l,"</lastBuildDate>\n");return e.forEach(e=>{u+=qt(e,r,l,h,t)}),u+="</channel>\n</rss>\n",u},e.getCalendarTitle=_t,e.getDownloadFilename=function(e){let t="hebcal_"+e.year;if(e.isHebrewYear&&(t+="H"),e.month&&(t+="_"+e.month),e.location){t+="_"+(e.location.zip||e.location.asciiname||e.location.getShortName()).replace(/[^A-Za-z0-9]/g,"_")}return t},e.getEventCategories=Gt,e.getHolidayDescription=jt,e.holidayDescription=Rt,e.makeAnchor=Lt,e.makeTorahMemoText=zt,e.pad2=Pt,e.pad4=Dt,e.renderTitleWithoutTime=function(e){return void 0===e.eventTime?e.render():e.renderBrief()},e.timeZoneOffsetStr=Ft,e.toISOString=kt,e.toISOStringWithTimezone=Nt,Object.defineProperty(e,"__esModule",{value:!0}),e}({},hebcal,hebcal__leyning);

@@ -1,2 +0,2 @@

/*! @hebcal/rest-api v3.1.0 */
/*! @hebcal/rest-api v3.2.0 */
'use strict';

@@ -433,3 +433,8 @@

const memo0 = e.memo || getHolidayDescription(e, true);
let memo0 = e.memo || getHolidayDescription(e, true);
if (!memo0 && typeof e.linkedEvent !== 'undefined') {
memo0 = e.linkedEvent.render();
}
const memo = memo0.replace(/,/g, ';').replace(/"/g, '\'\'');

@@ -572,3 +577,9 @@ const showTimeAs = timed || mask & core.flags.CHAG ? 4 : 3;

const memo = ev.memo || holidayDescription[ev.basename()];
if (memo) result.memo = memo;
if (memo) {
result.memo = memo;
} else if (typeof ev.linkedEvent !== 'undefined') {
result.memo = ev.linkedEvent.render();
}
return result;

@@ -831,3 +842,8 @@ }

const memo = ev.getFlags() & core.flags.PARSHA_HASHAVUA ? makeTorahMemoText(ev, il) : ev.memo || holidayDescription[ev.basename()];
if (memo) result.description = memo;
if (memo) {
result.description = memo;
} else if (typeof ev.linkedEvent !== 'undefined') {
result.description = ev.linkedEvent.render();
}
}

@@ -834,0 +850,0 @@

{
"name": "@hebcal/rest-api",
"version": "3.1.0",
"version": "3.2.0",
"author": "Michael J. Radwin (https://github.com/mjradwin)",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc