@hebcal/rest-api 4.3.0 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +12 -49
- package/dist/bundle.min.js +2 -2
- package/dist/fullcalendar.js +12 -49
- package/dist/fullcalendar.min.js +2 -2
- package/dist/index.js +12 -49
- package/dist/index.mjs +12 -49
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v4.3.
|
|
1
|
+
/*! @hebcal/rest-api v4.3.1 */
|
|
2
2
|
var hebcal__rest_api = (function (exports, core, leyning, triennial) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -4100,6 +4100,8 @@ function pad4(number) {
|
|
|
4100
4100
|
function toISOString(d) {
|
|
4101
4101
|
return pad4(d.getFullYear()) + '-' + pad2(d.getMonth() + 1) + '-' + pad2(d.getDate());
|
|
4102
4102
|
}
|
|
4103
|
+
const flagToCategory = [[core.flags.MAJOR_FAST, 'holiday', 'major', 'fast'], [core.flags.CHANUKAH_CANDLES, 'holiday', 'major'], [core.flags.DAF_YOMI, 'dafyomi'], [core.flags.HEBREW_DATE, 'hebdate'], [core.flags.MINOR_FAST, 'holiday', 'fast'], [core.flags.MINOR_HOLIDAY, 'holiday', 'minor'], [core.flags.MISHNA_YOMI, 'mishnayomi'], [core.flags.MODERN_HOLIDAY, 'holiday', 'modern'], [core.flags.MOLAD, 'molad'], [core.flags.OMER_COUNT, 'omer'], [core.flags.PARSHA_HASHAVUA, 'parashat'], // backwards-compat
|
|
4104
|
+
[core.flags.ROSH_CHODESH, 'roshchodesh'], [core.flags.SHABBAT_MEVARCHIM, 'mevarchim'], [core.flags.SPECIAL_SHABBAT, 'holiday', 'shabbat'], [core.flags.USER_EVENT, 'user']];
|
|
4103
4105
|
/**
|
|
4104
4106
|
* Returns a category and subcategory name
|
|
4105
4107
|
* @param {Event} ev
|
|
@@ -4113,54 +4115,18 @@ function getEventCategories(ev) {
|
|
|
4113
4115
|
return ['zmanim', 'fast'];
|
|
4114
4116
|
}
|
|
4115
4117
|
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
case core.flags.HEBREW_DATE:
|
|
4121
|
-
return ['hebdate'];
|
|
4122
|
-
|
|
4123
|
-
case core.flags.PARSHA_HASHAVUA:
|
|
4124
|
-
return ['parashat'];
|
|
4125
|
-
// backwards-compat
|
|
4126
|
-
|
|
4127
|
-
case core.flags.DAF_YOMI:
|
|
4128
|
-
return ['dafyomi'];
|
|
4129
|
-
|
|
4130
|
-
case core.flags.ROSH_CHODESH:
|
|
4131
|
-
return ['roshchodesh'];
|
|
4132
|
-
|
|
4133
|
-
case core.flags.SPECIAL_SHABBAT:
|
|
4134
|
-
return ['holiday', 'shabbat'];
|
|
4135
|
-
|
|
4136
|
-
case core.flags.MINOR_FAST:
|
|
4137
|
-
return ['holiday', 'fast'];
|
|
4138
|
-
|
|
4139
|
-
case core.flags.MAJOR_FAST:
|
|
4140
|
-
return ['holiday', 'fast', 'major'];
|
|
4141
|
-
|
|
4142
|
-
case core.flags.MODERN_HOLIDAY:
|
|
4143
|
-
return ['holiday', 'modern'];
|
|
4144
|
-
|
|
4145
|
-
case core.flags.SHABBAT_MEVARCHIM:
|
|
4146
|
-
return ['mevarchim'];
|
|
4147
|
-
|
|
4148
|
-
case core.flags.MOLAD:
|
|
4149
|
-
return ['molad'];
|
|
4150
|
-
|
|
4151
|
-
case core.flags.USER_EVENT:
|
|
4152
|
-
return ['user'];
|
|
4118
|
+
if (ev.cholHaMoedDay) {
|
|
4119
|
+
return ['holiday', 'major', 'cholhamoed'];
|
|
4120
|
+
}
|
|
4153
4121
|
|
|
4154
|
-
|
|
4155
|
-
return ['holiday', 'minor'];
|
|
4122
|
+
const mask = ev.getFlags();
|
|
4156
4123
|
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
// fall through to string-based category
|
|
4160
|
-
}
|
|
4124
|
+
for (let i = 0; i < flagToCategory.length; i++) {
|
|
4125
|
+
const attrs = flagToCategory[i];
|
|
4161
4126
|
|
|
4162
|
-
|
|
4163
|
-
|
|
4127
|
+
if (mask & attrs[0]) {
|
|
4128
|
+
return attrs.slice(1);
|
|
4129
|
+
}
|
|
4164
4130
|
}
|
|
4165
4131
|
|
|
4166
4132
|
switch (desc) {
|
|
@@ -4181,9 +4147,6 @@ function getEventCategories(ev) {
|
|
|
4181
4147
|
case 'Rosh Hashana LaBehemot':
|
|
4182
4148
|
return ['holiday', 'minor'];
|
|
4183
4149
|
|
|
4184
|
-
case 'Erev Tish\'a B\'Av':
|
|
4185
|
-
return ['holiday', 'fast', 'major'];
|
|
4186
|
-
|
|
4187
4150
|
default:
|
|
4188
4151
|
return ['holiday', 'major'];
|
|
4189
4152
|
}
|
package/dist/bundle.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v4.3.
|
|
2
|
-
var hebcal__rest_api=function(e,t,r,n){"use strict";var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=function(e){return e&&e.Math==Math&&e},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof a&&a)||function(){return this}()||Function("return this")(),s={},h=function(e){try{return!!e()}catch(e){return!0}},c=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!h((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),u=l,f=Function.prototype.call,d=u?f.bind(f):function(){return f.apply(f,arguments)},g={},m={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,y=p&&!m.call({1:2},1);g.f=y?function(e){var t=p(this,e);return!!t&&t.enumerable}:m;var b,v,S=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},w=l,A=Function.prototype,R=A.bind,H=A.call,T=w&&R.bind(H,H),C=w?function(e){return e&&T(e)}:function(e){return e&&function(){return H.apply(e,arguments)}},P=C,I=P({}.toString),O=P("".slice),E=function(e){return O(I(e),8,-1)},M=h,L=E,k=Object,B=C("".split),D=M((function(){return!k("z").propertyIsEnumerable(0)}))?function(e){return"String"==L(e)?B(e,""):k(e)}:k,F=function(e){return null==e},U=F,x=TypeError,j=function(e){if(U(e))throw x("Can't call method on "+e);return e},N=D,_=j,G=function(e){return N(_(e))},Y="object"==typeof document&&document.all,z={all:Y,IS_HTMLDDA:void 0===Y&&void 0!==Y},K=z.all,W=z.IS_HTMLDDA?function(e){return"function"==typeof e||e===K}:function(e){return"function"==typeof e},J=W,q=z.all,V=z.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:J(e)||e===q}:function(e){return"object"==typeof e?null!==e:J(e)},Z=i,$=W,Q=function(e){return $(e)?e:void 0},X=function(e,t){return arguments.length<2?Q(Z[e]):Z[e]&&Z[e][t]},ee=C({}.isPrototypeOf),te=i,re=X("navigator","userAgent")||"",ne=te.process,ae=te.Deno,oe=ne&&ne.versions||ae&&ae.version,ie=oe&&oe.v8;ie&&(v=(b=ie.split("."))[0]>0&&b[0]<4?1:+(b[0]+b[1])),!v&&re&&(!(b=re.match(/Edge\/(\d+)/))||b[1]>=74)&&(b=re.match(/Chrome\/(\d+)/))&&(v=+b[1]);var se=v,he=h,ce=!!Object.getOwnPropertySymbols&&!he((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&se&&se<41})),le=ce&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ue=X,fe=W,de=ee,ge=Object,me=le?function(e){return"symbol"==typeof e}:function(e){var t=ue("Symbol");return fe(t)&&de(t.prototype,ge(e))},pe=String,ye=function(e){try{return pe(e)}catch(e){return"Object"}},be=W,ve=ye,Se=TypeError,we=function(e){if(be(e))return e;throw Se(ve(e)+" is not a function")},Ae=we,Re=F,He=function(e,t){var r=e[t];return Re(r)?void 0:Ae(r)},Te=d,Ce=W,Pe=V,Ie=TypeError,Oe={exports:{}},Ee=i,Me=Object.defineProperty,Le=function(e,t){try{Me(Ee,e,{value:t,configurable:!0,writable:!0})}catch(r){Ee[e]=t}return t},ke=Le,Be="__core-js_shared__",De=i[Be]||ke(Be,{}),Fe=De;(Oe.exports=function(e,t){return Fe[e]||(Fe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.2",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ue=j,xe=Object,je=function(e){return xe(Ue(e))},Ne=je,_e=C({}.hasOwnProperty),Ge=Object.hasOwn||function(e,t){return _e(Ne(e),t)},Ye=C,ze=0,Ke=Math.random(),We=Ye(1..toString),Je=function(e){return"Symbol("+(void 0===e?"":e)+")_"+We(++ze+Ke,36)},qe=i,Ve=Oe.exports,Ze=Ge,$e=Je,Qe=ce,Xe=le,et=Ve("wks"),tt=qe.Symbol,rt=tt&&tt.for,nt=Xe?tt:tt&&tt.withoutSetter||$e,at=function(e){if(!Ze(et,e)||!Qe&&"string"!=typeof et[e]){var t="Symbol."+e;Qe&&Ze(tt,e)?et[e]=tt[e]:et[e]=Xe&&rt?rt(t):nt(t)}return et[e]},ot=d,it=V,st=me,ht=He,ct=function(e,t){var r,n;if("string"===t&&Ce(r=e.toString)&&!Pe(n=Te(r,e)))return n;if(Ce(r=e.valueOf)&&!Pe(n=Te(r,e)))return n;if("string"!==t&&Ce(r=e.toString)&&!Pe(n=Te(r,e)))return n;throw Ie("Can't convert object to primitive value")},lt=TypeError,ut=at("toPrimitive"),ft=function(e,t){if(!it(e)||st(e))return e;var r,n=ht(e,ut);if(n){if(void 0===t&&(t="default"),r=ot(n,e,t),!it(r)||st(r))return r;throw lt("Can't convert object to primitive value")}return void 0===t&&(t="number"),ct(e,t)},dt=me,gt=function(e){var t=ft(e,"string");return dt(t)?t:t+""},mt=V,pt=i.document,yt=mt(pt)&&mt(pt.createElement),bt=function(e){return yt?pt.createElement(e):{}},vt=bt,St=!c&&!h((function(){return 7!=Object.defineProperty(vt("div"),"a",{get:function(){return 7}}).a})),wt=c,At=d,Rt=g,Ht=S,Tt=G,Ct=gt,Pt=Ge,It=St,Ot=Object.getOwnPropertyDescriptor;s.f=wt?Ot:function(e,t){if(e=Tt(e),t=Ct(t),It)try{return Ot(e,t)}catch(e){}if(Pt(e,t))return Ht(!At(Rt.f,e,t),e[t])};var Et={},Mt=c&&h((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Lt=V,kt=String,Bt=TypeError,Dt=function(e){if(Lt(e))return e;throw Bt(kt(e)+" is not an object")},Ft=c,Ut=St,xt=Mt,jt=Dt,Nt=gt,_t=TypeError,Gt=Object.defineProperty,Yt=Object.getOwnPropertyDescriptor,zt="enumerable",Kt="configurable",Wt="writable";Et.f=Ft?xt?function(e,t,r){if(jt(e),t=Nt(t),jt(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Wt in r&&!r.writable){var n=Yt(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:Kt in r?r.configurable:n.configurable,enumerable:zt in r?r.enumerable:n.enumerable,writable:!1})}return Gt(e,t,r)}:Gt:function(e,t,r){if(jt(e),t=Nt(t),jt(r),Ut)try{return Gt(e,t,r)}catch(e){}if("get"in r||"set"in r)throw _t("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Jt=Et,qt=S,Vt=c?function(e,t,r){return Jt.f(e,t,qt(1,r))}:function(e,t,r){return e[t]=r,e},Zt={exports:{}},$t=c,Qt=Ge,Xt=Function.prototype,er=$t&&Object.getOwnPropertyDescriptor,tr=Qt(Xt,"name"),rr={EXISTS:tr,PROPER:tr&&"something"===function(){}.name,CONFIGURABLE:tr&&(!$t||$t&&er(Xt,"name").configurable)},nr=W,ar=De,or=C(Function.toString);nr(ar.inspectSource)||(ar.inspectSource=function(e){return or(e)});var ir,sr,hr,cr=ar.inspectSource,lr=W,ur=i.WeakMap,fr=lr(ur)&&/native code/.test(String(ur)),dr=Oe.exports,gr=Je,mr=dr("keys"),pr=function(e){return mr[e]||(mr[e]=gr(e))},yr={},br=fr,vr=i,Sr=C,wr=V,Ar=Vt,Rr=Ge,Hr=De,Tr=pr,Cr=yr,Pr="Object already initialized",Ir=vr.TypeError,Or=vr.WeakMap;if(br||Hr.state){var Er=Hr.state||(Hr.state=new Or),Mr=Sr(Er.get),Lr=Sr(Er.has),kr=Sr(Er.set);ir=function(e,t){if(Lr(Er,e))throw Ir(Pr);return t.facade=e,kr(Er,e,t),t},sr=function(e){return Mr(Er,e)||{}},hr=function(e){return Lr(Er,e)}}else{var Br=Tr("state");Cr[Br]=!0,ir=function(e,t){if(Rr(e,Br))throw Ir(Pr);return t.facade=e,Ar(e,Br,t),t},sr=function(e){return Rr(e,Br)?e[Br]:{}},hr=function(e){return Rr(e,Br)}}var Dr={set:ir,get:sr,has:hr,enforce:function(e){return hr(e)?sr(e):ir(e,{})},getterFor:function(e){return function(t){var r;if(!wr(t)||(r=sr(t)).type!==e)throw Ir("Incompatible receiver, "+e+" required");return r}}},Fr=h,Ur=W,xr=Ge,jr=c,Nr=rr.CONFIGURABLE,_r=cr,Gr=Dr.enforce,Yr=Dr.get,zr=Object.defineProperty,Kr=jr&&!Fr((function(){return 8!==zr((function(){}),"length",{value:8}).length})),Wr=String(String).split("String"),Jr=Zt.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!xr(e,"name")||Nr&&e.name!==t)&&(jr?zr(e,"name",{value:t,configurable:!0}):e.name=t),Kr&&r&&xr(r,"arity")&&e.length!==r.arity&&zr(e,"length",{value:r.arity});try{r&&xr(r,"constructor")&&r.constructor?jr&&zr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Gr(e);return xr(n,"source")||(n.source=Wr.join("string"==typeof t?t:"")),e};Function.prototype.toString=Jr((function(){return Ur(this)&&Yr(this).source||_r(this)}),"toString");var qr=W,Vr=Et,Zr=Zt.exports,$r=Le,Qr=function(e,t,r,n){n||(n={});var a=n.enumerable,o=void 0!==n.name?n.name:t;if(qr(r)&&Zr(r,o,n),n.global)a?e[t]=r:$r(t,r);else{try{n.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=r:Vr.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Xr={},en=Math.ceil,tn=Math.floor,rn=Math.trunc||function(e){var t=+e;return(t>0?tn:en)(t)},nn=function(e){var t=+e;return t!=t||0===t?0:rn(t)},an=nn,on=Math.max,sn=Math.min,hn=function(e,t){var r=an(e);return r<0?on(r+t,0):sn(r,t)},cn=nn,ln=Math.min,un=function(e){return e>0?ln(cn(e),9007199254740991):0},fn=un,dn=function(e){return fn(e.length)},gn=G,mn=hn,pn=dn,yn=function(e){return function(t,r,n){var a,o=gn(t),i=pn(o),s=mn(n,i);if(e&&r!=r){for(;i>s;)if((a=o[s++])!=a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},bn={includes:yn(!0),indexOf:yn(!1)},vn=Ge,Sn=G,wn=bn.indexOf,An=yr,Rn=C([].push),Hn=function(e,t){var r,n=Sn(e),a=0,o=[];for(r in n)!vn(An,r)&&vn(n,r)&&Rn(o,r);for(;t.length>a;)vn(n,r=t[a++])&&(~wn(o,r)||Rn(o,r));return o},Tn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Cn=Hn,Pn=Tn.concat("length","prototype");Xr.f=Object.getOwnPropertyNames||function(e){return Cn(e,Pn)};var In={};In.f=Object.getOwnPropertySymbols;var On=X,En=Xr,Mn=In,Ln=Dt,kn=C([].concat),Bn=On("Reflect","ownKeys")||function(e){var t=En.f(Ln(e)),r=Mn.f;return r?kn(t,r(e)):t},Dn=Ge,Fn=Bn,Un=s,xn=Et,jn=h,Nn=W,_n=/#|\.prototype\./,Gn=function(e,t){var r=zn[Yn(e)];return r==Wn||r!=Kn&&(Nn(t)?jn(t):!!t)},Yn=Gn.normalize=function(e){return String(e).replace(_n,".").toLowerCase()},zn=Gn.data={},Kn=Gn.NATIVE="N",Wn=Gn.POLYFILL="P",Jn=Gn,qn=i,Vn=s.f,Zn=Vt,$n=Qr,Qn=Le,Xn=function(e,t,r){for(var n=Fn(t),a=xn.f,o=Un.f,i=0;i<n.length;i++){var s=n[i];Dn(e,s)||r&&Dn(r,s)||a(e,s,o(t,s))}},ea=Jn,ta=function(e,t){var r,n,a,o,i,s=e.target,h=e.global,c=e.stat;if(r=h?qn:c?qn[s]||Qn(s,{}):(qn[s]||{}).prototype)for(n in t){if(o=t[n],a=e.dontCallGetSet?(i=Vn(r,n))&&i.value:r[n],!ea(h?n:s+(c?".":"#")+n,e.forced)&&void 0!==a){if(typeof o==typeof a)continue;Xn(o,a)}(e.sham||a&&a.sham)&&Zn(o,"sham",!0),$n(r,n,o,e)}},ra={};ra[at("toStringTag")]="z";var na="[object z]"===String(ra),aa=W,oa=E,ia=at("toStringTag"),sa=Object,ha="Arguments"==oa(function(){return arguments}()),ca=na?oa:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=sa(e),ia))?r:ha?oa(t):"Object"==(n=oa(t))&&aa(t.callee)?"Arguments":n},la=ca,ua=String,fa=function(e){if("Symbol"===la(e))throw TypeError("Cannot convert a Symbol value to a string");return ua(e)},da=Dt,ga=function(){var e=da(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},ma=h,pa=i.RegExp,ya=ma((function(){var e=pa("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ba=ya||ma((function(){return!pa("a","y").sticky})),va={BROKEN_CARET:ya||ma((function(){var e=pa("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:ba,UNSUPPORTED_Y:ya},Sa={},wa=Hn,Aa=Tn,Ra=Object.keys||function(e){return wa(e,Aa)},Ha=c,Ta=Mt,Ca=Et,Pa=Dt,Ia=G,Oa=Ra;Sa.f=Ha&&!Ta?Object.defineProperties:function(e,t){Pa(e);for(var r,n=Ia(t),a=Oa(t),o=a.length,i=0;o>i;)Ca.f(e,r=a[i++],n[r]);return e};var Ea,Ma=X("document","documentElement"),La=Dt,ka=Sa,Ba=Tn,Da=yr,Fa=Ma,Ua=bt,xa=pr("IE_PROTO"),ja=function(){},Na=function(e){return"<script>"+e+"</"+"script>"},_a=function(e){e.write(Na("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ga=function(){try{Ea=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ga="undefined"!=typeof document?document.domain&&Ea?_a(Ea):((t=Ua("iframe")).style.display="none",Fa.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Na("document.F=Object")),e.close(),e.F):_a(Ea);for(var r=Ba.length;r--;)delete Ga.prototype[Ba[r]];return Ga()};Da[xa]=!0;var Ya,za,Ka=Object.create||function(e,t){var r;return null!==e?(ja.prototype=La(e),r=new ja,ja.prototype=null,r[xa]=e):r=Ga(),void 0===t?r:ka.f(r,t)},Wa=h,Ja=i.RegExp,qa=Wa((function(){var e=Ja(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Va=h,Za=i.RegExp,$a=Va((function(){var e=Za("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Qa=d,Xa=C,eo=fa,to=ga,ro=va,no=Oe.exports,ao=Ka,oo=Dr.get,io=qa,so=$a,ho=no("native-string-replace",String.prototype.replace),co=RegExp.prototype.exec,lo=co,uo=Xa("".charAt),fo=Xa("".indexOf),go=Xa("".replace),mo=Xa("".slice),po=(za=/b*/g,Qa(co,Ya=/a/,"a"),Qa(co,za,"a"),0!==Ya.lastIndex||0!==za.lastIndex),yo=ro.BROKEN_CARET,bo=void 0!==/()??/.exec("")[1];(po||bo||yo||io||so)&&(lo=function(e){var t,r,n,a,o,i,s,h=this,c=oo(h),l=eo(e),u=c.raw;if(u)return u.lastIndex=h.lastIndex,t=Qa(lo,u,l),h.lastIndex=u.lastIndex,t;var f=c.groups,d=yo&&h.sticky,g=Qa(to,h),m=h.source,p=0,y=l;if(d&&(g=go(g,"y",""),-1===fo(g,"g")&&(g+="g"),y=mo(l,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==uo(l,h.lastIndex-1))&&(m="(?: "+m+")",y=" "+y,p++),r=new RegExp("^(?:"+m+")",g)),bo&&(r=new RegExp("^"+m+"$(?!\\s)",g)),po&&(n=h.lastIndex),a=Qa(co,d?r:h,y),d?a?(a.input=mo(a.input,p),a[0]=mo(a[0],p),a.index=h.lastIndex,h.lastIndex+=a[0].length):h.lastIndex=0:po&&a&&(h.lastIndex=h.global?a.index+a[0].length:n),bo&&a&&a.length>1&&Qa(ho,a[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(a[o]=void 0)})),a&&f)for(a.groups=i=ao(null),o=0;o<f.length;o++)i[(s=f[o])[0]]=a[s[1]];return a});ta({target:"RegExp",proto:!0,forced:/./.exec!==lo},{exec:lo});var vo=bt("span").classList,So=vo&&vo.constructor&&vo.constructor.prototype,wo=So===Object.prototype?void 0:So,Ao=at,Ro=Ka,Ho=Et.f,To=Ao("unscopables"),Co=Array.prototype;null==Co[To]&&Ho(Co,To,{configurable:!0,value:Ro(null)});var Po,Io,Oo,Eo={},Mo=!h((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Lo=Ge,ko=W,Bo=je,Do=Mo,Fo=pr("IE_PROTO"),Uo=Object,xo=Uo.prototype,jo=Do?Uo.getPrototypeOf:function(e){var t=Bo(e);if(Lo(t,Fo))return t[Fo];var r=t.constructor;return ko(r)&&t instanceof r?r.prototype:t instanceof Uo?xo:null},No=h,_o=W,Go=V,Yo=jo,zo=Qr,Ko=at("iterator"),Wo=!1;[].keys&&("next"in(Oo=[].keys())?(Io=Yo(Yo(Oo)))!==Object.prototype&&(Po=Io):Wo=!0);var Jo=!Go(Po)||No((function(){var e={};return Po[Ko].call(e)!==e}));Jo&&(Po={}),_o(Po[Ko])||zo(Po,Ko,(function(){return this}));var qo={IteratorPrototype:Po,BUGGY_SAFARI_ITERATORS:Wo},Vo=Et.f,Zo=Ge,$o=at("toStringTag"),Qo=function(e,t,r){e&&!r&&(e=e.prototype),e&&!Zo(e,$o)&&Vo(e,$o,{configurable:!0,value:t})},Xo=qo.IteratorPrototype,ei=Ka,ti=S,ri=Qo,ni=Eo,ai=function(){return this},oi=function(e,t,r,n){var a=t+" Iterator";return e.prototype=ei(Xo,{next:ti(+!n,r)}),ri(e,a,!1),ni[a]=ai,e},ii=W,si=String,hi=TypeError,ci=C,li=Dt,ui=function(e){if("object"==typeof e||ii(e))return e;throw hi("Can't set "+si(e)+" as a prototype")},fi=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=ci(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return li(r),ui(n),t?e(r,n):r.__proto__=n,r}}():void 0),di=ta,gi=d,mi=W,pi=oi,yi=jo,bi=fi,vi=Qo,Si=Vt,wi=Qr,Ai=Eo,Ri=rr.PROPER,Hi=rr.CONFIGURABLE,Ti=qo.IteratorPrototype,Ci=qo.BUGGY_SAFARI_ITERATORS,Pi=at("iterator"),Ii="keys",Oi="values",Ei="entries",Mi=function(){return this},Li=function(e,t,r,n,a,o,i){pi(r,t,n);var s,h,c,l=function(e){if(e===a&&m)return m;if(!Ci&&e in d)return d[e];switch(e){case Ii:case Oi:case Ei:return function(){return new r(this,e)}}return function(){return new r(this)}},u=t+" Iterator",f=!1,d=e.prototype,g=d[Pi]||d["@@iterator"]||a&&d[a],m=!Ci&&g||l(a),p="Array"==t&&d.entries||g;if(p&&(s=yi(p.call(new e)))!==Object.prototype&&s.next&&(yi(s)!==Ti&&(bi?bi(s,Ti):mi(s[Pi])||wi(s,Pi,Mi)),vi(s,u,!0)),Ri&&a==Oi&&g&&g.name!==Oi&&(Hi?Si(d,"name",Oi):(f=!0,m=function(){return gi(g,this)})),a)if(h={values:l(Oi),keys:o?m:l(Ii),entries:l(Ei)},i)for(c in h)(Ci||f||!(c in d))&&wi(d,c,h[c]);else di({target:t,proto:!0,forced:Ci||f},h);return d[Pi]!==m&&wi(d,Pi,m,{name:a}),Ai[t]=m,h},ki=function(e,t){return{value:e,done:t}},Bi=G,Di=function(e){Co[To][e]=!0},Fi=Eo,Ui=Dr,xi=Et.f,ji=Li,Ni=ki,_i=c,Gi="Array Iterator",Yi=Ui.set,zi=Ui.getterFor(Gi),Ki=ji(Array,"Array",(function(e,t){Yi(this,{type:Gi,target:Bi(e),index:0,kind:t})}),(function(){var e=zi(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,Ni(void 0,!0)):Ni("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),Wi=Fi.Arguments=Fi.Array;if(Di("keys"),Di("values"),Di("entries"),_i&&"values"!==Wi.name)try{xi(Wi,"name",{value:"values"})}catch(e){}var Ji=i,qi={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},Vi=wo,Zi=Ki,$i=Vt,Qi=at,Xi=Qi("iterator"),es=Qi("toStringTag"),ts=Zi.values,rs=function(e,t){if(e){if(e[Xi]!==ts)try{$i(e,Xi,ts)}catch(t){e[Xi]=ts}if(e[es]||$i(e,es,t),qi[t])for(var r in Zi)if(e[r]!==Zi[r])try{$i(e,r,Zi[r])}catch(t){e[r]=Zi[r]}}};for(var ns in qi)rs(Ji[ns]&&Ji[ns].prototype,ns);rs(Vi,"DOMTokenList");var as=C,os=nn,is=fa,ss=j,hs=as("".charAt),cs=as("".charCodeAt),ls=as("".slice),us=function(e){return function(t,r){var n,a,o=is(ss(t)),i=os(r),s=o.length;return i<0||i>=s?e?"":void 0:(n=cs(o,i))<55296||n>56319||i+1===s||(a=cs(o,i+1))<56320||a>57343?e?hs(o,i):n:e?ls(o,i,i+2):a-56320+(n-55296<<10)+65536}},fs={codeAt:us(!1),charAt:us(!0)},ds=fs.charAt,gs=fa,ms=Dr,ps=Li,ys=ki,bs="String Iterator",vs=ms.set,Ss=ms.getterFor(bs);ps(String,"String",(function(e){vs(this,{type:bs,string:gs(e),index:0})}),(function(){var e,t=Ss(this),r=t.string,n=t.index;return n>=r.length?ys(void 0,!0):(e=ds(r,n),t.index+=e.length,ys(e,!1))}));var ws=h,As=at("iterator"),Rs=!ws((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[As]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),Hs=we,Ts=l,Cs=C(C.bind),Ps=function(e,t){return Hs(e),void 0===t?e:Ts?Cs(e,t):function(){return e.apply(t,arguments)}},Is=Zt.exports,Os=Et,Es=ee,Ms=TypeError,Ls=function(e,t){if(Es(t,e))return e;throw Ms("Incorrect invocation")},ks=c,Bs=C,Ds=d,Fs=h,Us=Ra,xs=In,js=g,Ns=je,_s=D,Gs=Object.assign,Ys=Object.defineProperty,zs=Bs([].concat),Ks=!Gs||Fs((function(){if(ks&&1!==Gs({b:1},Gs(Ys({},"a",{enumerable:!0,get:function(){Ys(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=Gs({},e)[r]||Us(Gs({},t)).join("")!=n}))?function(e,t){for(var r=Ns(e),n=arguments.length,a=1,o=xs.f,i=js.f;n>a;)for(var s,h=_s(arguments[a++]),c=o?zs(Us(h),o(h)):Us(h),l=c.length,u=0;l>u;)s=c[u++],ks&&!Ds(i,h,s)||(r[s]=h[s]);return r}:Gs,Ws=d,Js=Dt,qs=He,Vs=Dt,Zs=function(e,t,r){var n,a;Js(e);try{if(!(n=qs(e,"return"))){if("throw"===t)throw r;return r}n=Ws(n,e)}catch(e){a=!0,n=e}if("throw"===t)throw r;if(a)throw n;return Js(n),r},$s=Eo,Qs=at("iterator"),Xs=Array.prototype,eh=C,th=h,rh=W,nh=ca,ah=cr,oh=function(){},ih=[],sh=X("Reflect","construct"),hh=/^\s*(?:class|function)\b/,ch=eh(hh.exec),lh=!hh.exec(oh),uh=function(e){if(!rh(e))return!1;try{return sh(oh,ih,e),!0}catch(e){return!1}},fh=function(e){if(!rh(e))return!1;switch(nh(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return lh||!!ch(hh,ah(e))}catch(e){return!0}};fh.sham=!0;var dh=!sh||th((function(){var e;return uh(uh.call)||!uh(Object)||!uh((function(){e=!0}))||e}))?fh:uh,gh=gt,mh=Et,ph=S,yh=function(e,t,r){var n=gh(t);n in e?mh.f(e,n,ph(0,r)):e[n]=r},bh=ca,vh=He,Sh=F,wh=Eo,Ah=at("iterator"),Rh=function(e){if(!Sh(e))return vh(e,Ah)||vh(e,"@@iterator")||wh[bh(e)]},Hh=d,Th=we,Ch=Dt,Ph=ye,Ih=Rh,Oh=TypeError,Eh=function(e,t){var r=arguments.length<2?Ih(e):t;if(Th(r))return Ch(Hh(r,e));throw Oh(Ph(e)+" is not iterable")},Mh=Ps,Lh=d,kh=je,Bh=function(e,t,r,n){try{return n?t(Vs(r)[0],r[1]):t(r)}catch(t){Zs(e,"throw",t)}},Dh=function(e){return void 0!==e&&($s.Array===e||Xs[Qs]===e)},Fh=dh,Uh=dn,xh=yh,jh=Eh,Nh=Rh,_h=Array,Gh=hn,Yh=dn,zh=yh,Kh=Array,Wh=Math.max,Jh=function(e,t,r){for(var n=Yh(e),a=Gh(t,n),o=Gh(void 0===r?n:r,n),i=Kh(Wh(o-a,0)),s=0;a<o;a++,s++)zh(i,s,e[a]);return i.length=s,i},qh=C,Vh=2147483647,Zh=/[^\0-\u007E]/,$h=/[.\u3002\uFF0E\uFF61]/g,Qh="Overflow: input needs wider integers to process",Xh=RangeError,ec=qh($h.exec),tc=Math.floor,rc=String.fromCharCode,nc=qh("".charCodeAt),ac=qh([].join),oc=qh([].push),ic=qh("".replace),sc=qh("".split),hc=qh("".toLowerCase),cc=function(e){return e+22+75*(e<26)},lc=function(e,t,r){var n=0;for(e=r?tc(e/700):e>>1,e+=tc(e/t);e>455;)e=tc(e/35),n+=36;return tc(n+36*e/(e+38))},uc=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var a=nc(e,r++);if(a>=55296&&a<=56319&&r<n){var o=nc(e,r++);56320==(64512&o)?oc(t,((1023&a)<<10)+(1023&o)+65536):(oc(t,a),r--)}else oc(t,a)}return t}(e);var r,n,a=e.length,o=128,i=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&oc(t,rc(n));var h=t.length,c=h;for(h&&oc(t,"-");c<a;){var l=Vh;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<l&&(l=n);var u=c+1;if(l-o>tc((Vh-i)/u))throw Xh(Qh);for(i+=(l-o)*u,o=l,r=0;r<e.length;r++){if((n=e[r])<o&&++i>Vh)throw Xh(Qh);if(n==o){for(var f=i,d=36;;){var g=d<=s?1:d>=s+26?26:d-s;if(f<g)break;var m=f-g,p=36-g;oc(t,rc(cc(g+m%p))),f=tc(m/p),d+=36}oc(t,rc(cc(f))),s=lc(i,u,c==h),i=0,c++}}i++,o++}return ac(t,"")},fc=TypeError,dc=function(e,t){if(e<t)throw fc("Not enough arguments");return e},gc=Qr,mc=Jh,pc=Math.floor,yc=function(e,t){var r=e.length,n=pc(r/2);return r<8?bc(e,t):vc(e,yc(mc(e,0,n),t),yc(mc(e,n),t),t)},bc=function(e,t){for(var r,n,a=e.length,o=1;o<a;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},vc=function(e,t,r,n){for(var a=t.length,o=r.length,i=0,s=0;i<a||s<o;)e[i+s]=i<a&&s<o?n(t[i],r[s])<=0?t[i++]:r[s++]:i<a?t[i++]:r[s++];return e},Sc=ta,wc=i,Ac=d,Rc=C,Hc=c,Tc=Rs,Cc=Qr,Pc=function(e,t,r){for(var n in t)gc(e,n,t[n],r);return e},Ic=Qo,Oc=oi,Ec=Dr,Mc=Ls,Lc=W,kc=Ge,Bc=Ps,Dc=ca,Fc=Dt,Uc=V,xc=fa,jc=Ka,Nc=S,_c=Eh,Gc=Rh,Yc=dc,zc=yc,Kc=at("iterator"),Wc="URLSearchParams",Jc="URLSearchParamsIterator",qc=Ec.set,Vc=Ec.getterFor(Wc),Zc=Ec.getterFor(Jc),$c=Object.getOwnPropertyDescriptor,Qc=function(e){if(!Hc)return wc[e];var t=$c(wc,e);return t&&t.value},Xc=Qc("fetch"),el=Qc("Request"),tl=Qc("Headers"),rl=el&&el.prototype,nl=tl&&tl.prototype,al=wc.RegExp,ol=wc.TypeError,il=wc.decodeURIComponent,sl=wc.encodeURIComponent,hl=Rc("".charAt),cl=Rc([].join),ll=Rc([].push),ul=Rc("".replace),fl=Rc([].shift),dl=Rc([].splice),gl=Rc("".split),ml=Rc("".slice),pl=/\+/g,yl=Array(4),bl=function(e){return yl[e-1]||(yl[e-1]=al("((?:%[\\da-f]{2}){"+e+"})","gi"))},vl=function(e){try{return il(e)}catch(t){return e}},Sl=function(e){var t=ul(e,pl," "),r=4;try{return il(t)}catch(e){for(;r;)t=ul(t,bl(r--),vl);return t}},wl=/[!'()~]|%20/g,Al={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Rl=function(e){return Al[e]},Hl=function(e){return ul(sl(e),wl,Rl)},Tl=Oc((function(e,t){qc(this,{type:Jc,iterator:_c(Vc(e).entries),kind:t})}),"Iterator",(function(){var e=Zc(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),Cl=function(e){this.entries=[],this.url=null,void 0!==e&&(Uc(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===hl(e,0)?ml(e,1):e:xc(e)))};Cl.prototype={type:Wc,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,a,o,i,s,h=Gc(e);if(h)for(r=(t=_c(e,h)).next;!(n=Ac(r,t)).done;){if(o=(a=_c(Fc(n.value))).next,(i=Ac(o,a)).done||(s=Ac(o,a)).done||!Ac(o,a).done)throw ol("Expected sequence with length 2");ll(this.entries,{key:xc(i.value),value:xc(s.value)})}else for(var c in e)kc(e,c)&&ll(this.entries,{key:c,value:xc(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=gl(e,"&"),a=0;a<n.length;)(t=n[a++]).length&&(r=gl(t,"="),ll(this.entries,{key:Sl(fl(r)),value:Sl(cl(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],ll(r,Hl(e.key)+"="+Hl(e.value));return cl(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Pl=function(){Mc(this,Il);var e=arguments.length>0?arguments[0]:void 0;qc(this,new Cl(e))},Il=Pl.prototype;if(Pc(Il,{append:function(e,t){Yc(arguments.length,2);var r=Vc(this);ll(r.entries,{key:xc(e),value:xc(t)}),r.updateURL()},delete:function(e){Yc(arguments.length,1);for(var t=Vc(this),r=t.entries,n=xc(e),a=0;a<r.length;)r[a].key===n?dl(r,a,1):a++;t.updateURL()},get:function(e){Yc(arguments.length,1);for(var t=Vc(this).entries,r=xc(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){Yc(arguments.length,1);for(var t=Vc(this).entries,r=xc(e),n=[],a=0;a<t.length;a++)t[a].key===r&&ll(n,t[a].value);return n},has:function(e){Yc(arguments.length,1);for(var t=Vc(this).entries,r=xc(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){Yc(arguments.length,1);for(var r,n=Vc(this),a=n.entries,o=!1,i=xc(e),s=xc(t),h=0;h<a.length;h++)(r=a[h]).key===i&&(o?dl(a,h--,1):(o=!0,r.value=s));o||ll(a,{key:i,value:s}),n.updateURL()},sort:function(){var e=Vc(this);zc(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=Vc(this).entries,n=Bc(e,arguments.length>1?arguments[1]:void 0),a=0;a<r.length;)n((t=r[a++]).value,t.key,this)},keys:function(){return new Tl(this,"keys")},values:function(){return new Tl(this,"values")},entries:function(){return new Tl(this,"entries")}},{enumerable:!0}),Cc(Il,Kc,Il.entries,{name:"entries"}),Cc(Il,"toString",(function(){return Vc(this).serialize()}),{enumerable:!0}),Ic(Pl,Wc),Sc({global:!0,constructor:!0,forced:!Tc},{URLSearchParams:Pl}),!Tc&&Lc(tl)){var Ol=Rc(nl.has),El=Rc(nl.set),Ml=function(e){if(Uc(e)){var t,r=e.body;if(Dc(r)===Wc)return t=e.headers?new tl(e.headers):new tl,Ol(t,"content-type")||El(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),jc(e,{body:Nc(0,xc(r)),headers:Nc(0,t)})}return e};if(Lc(Xc)&&Sc({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Xc(e,arguments.length>1?Ml(arguments[1]):{})}}),Lc(el)){var Ll=function(e){return Mc(this,rl),new el(e,arguments.length>1?Ml(arguments[1]):{})};rl.constructor=Ll,Ll.prototype=rl,Sc({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Ll})}}var kl,Bl=ta,Dl=c,Fl=Rs,Ul=i,xl=Ps,jl=C,Nl=Qr,_l=function(e,t,r){return r.get&&Is(r.get,t,{getter:!0}),r.set&&Is(r.set,t,{setter:!0}),Os.f(e,t,r)},Gl=Ls,Yl=Ge,zl=Ks,Kl=function(e){var t=kh(e),r=Fh(this),n=arguments.length,a=n>1?arguments[1]:void 0,o=void 0!==a;o&&(a=Mh(a,n>2?arguments[2]:void 0));var i,s,h,c,l,u,f=Nh(t),d=0;if(!f||this===_h&&Dh(f))for(i=Uh(t),s=r?new this(i):_h(i);i>d;d++)u=o?a(t[d],d):t[d],xh(s,d,u);else for(l=(c=jh(t,f)).next,s=r?new this:[];!(h=Lh(l,c)).done;d++)u=o?Bh(c,a,[h.value,d],!0):h.value,xh(s,d,u);return s.length=d,s},Wl=Jh,Jl=fs.codeAt,ql=function(e){var t,r,n=[],a=sc(ic(hc(e),$h,"."),".");for(t=0;t<a.length;t++)r=a[t],oc(n,ec(Zh,r)?"xn--"+uc(r):r);return ac(n,".")},Vl=fa,Zl=Qo,$l=dc,Ql={URLSearchParams:Pl,getState:Vc},Xl=Dr,eu=Xl.set,tu=Xl.getterFor("URL"),ru=Ql.URLSearchParams,nu=Ql.getState,au=Ul.URL,ou=Ul.TypeError,iu=Ul.parseInt,su=Math.floor,hu=Math.pow,cu=jl("".charAt),lu=jl(/./.exec),uu=jl([].join),fu=jl(1..toString),du=jl([].pop),gu=jl([].push),mu=jl("".replace),pu=jl([].shift),yu=jl("".split),bu=jl("".slice),vu=jl("".toLowerCase),Su=jl([].unshift),wu="Invalid scheme",Au="Invalid host",Ru="Invalid port",Hu=/[a-z]/i,Tu=/[\d+-.a-z]/i,Cu=/\d/,Pu=/^0x/i,Iu=/^[0-7]+$/,Ou=/^\d+$/,Eu=/^[\da-f]+$/i,Mu=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Lu=/[\0\t\n\r #/:<>?@[\\\]^|]/,ku=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,Bu=/[\t\n\r]/g,Du=function(e){var t,r,n,a;if("number"==typeof e){for(t=[],r=0;r<4;r++)Su(t,e%256),e=su(e/256);return uu(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,a=0,o=0;o<8;o++)0!==e[o]?(a>r&&(t=n,r=a),n=null,a=0):(null===n&&(n=o),++a);return a>r&&(t=n,r=a),t}(e),r=0;r<8;r++)a&&0===e[r]||(a&&(a=!1),n===r?(t+=r?":":"::",a=!0):(t+=fu(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},Fu={},Uu=zl({},Fu,{" ":1,'"':1,"<":1,">":1,"`":1}),xu=zl({},Uu,{"#":1,"?":1,"{":1,"}":1}),ju=zl({},xu,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Nu=function(e,t){var r=Jl(e,0);return r>32&&r<127&&!Yl(t,e)?e:encodeURIComponent(e)},_u={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Gu=function(e,t){var r;return 2==e.length&&lu(Hu,cu(e,0))&&(":"==(r=cu(e,1))||!t&&"|"==r)},Yu=function(e){var t;return e.length>1&&Gu(bu(e,0,2))&&(2==e.length||"/"===(t=cu(e,2))||"\\"===t||"?"===t||"#"===t)},zu=function(e){return"."===e||"%2e"===vu(e)},Ku={},Wu={},Ju={},qu={},Vu={},Zu={},$u={},Qu={},Xu={},ef={},tf={},rf={},nf={},af={},of={},sf={},hf={},cf={},lf={},uf={},ff={},df=function(e,t,r){var n,a,o,i=Vl(e);if(t){if(a=this.parse(i))throw ou(a);this.searchParams=null}else{if(void 0!==r&&(n=new df(r,!0)),a=this.parse(i,null,n))throw ou(a);(o=nu(new ru)).bindURL(this),this.searchParams=o}};df.prototype={type:"URL",parse:function(e,t,r){var n,a,o,i,s,h=this,c=t||Ku,l=0,u="",f=!1,d=!1,g=!1;for(e=Vl(e),t||(h.scheme="",h.username="",h.password="",h.host=null,h.port=null,h.path=[],h.query=null,h.fragment=null,h.cannotBeABaseURL=!1,e=mu(e,ku,"")),e=mu(e,Bu,""),n=Kl(e);l<=n.length;){switch(a=n[l],c){case Ku:if(!a||!lu(Hu,a)){if(t)return wu;c=Ju;continue}u+=vu(a),c=Wu;break;case Wu:if(a&&(lu(Tu,a)||"+"==a||"-"==a||"."==a))u+=vu(a);else{if(":"!=a){if(t)return wu;u="",c=Ju,l=0;continue}if(t&&(h.isSpecial()!=Yl(_u,u)||"file"==u&&(h.includesCredentials()||null!==h.port)||"file"==h.scheme&&!h.host))return;if(h.scheme=u,t)return void(h.isSpecial()&&_u[h.scheme]==h.port&&(h.port=null));u="","file"==h.scheme?c=af:h.isSpecial()&&r&&r.scheme==h.scheme?c=qu:h.isSpecial()?c=Qu:"/"==n[l+1]?(c=Vu,l++):(h.cannotBeABaseURL=!0,gu(h.path,""),c=lf)}break;case Ju:if(!r||r.cannotBeABaseURL&&"#"!=a)return wu;if(r.cannotBeABaseURL&&"#"==a){h.scheme=r.scheme,h.path=Wl(r.path),h.query=r.query,h.fragment="",h.cannotBeABaseURL=!0,c=ff;break}c="file"==r.scheme?af:Zu;continue;case qu:if("/"!=a||"/"!=n[l+1]){c=Zu;continue}c=Xu,l++;break;case Vu:if("/"==a){c=ef;break}c=cf;continue;case Zu:if(h.scheme=r.scheme,a==kl)h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=Wl(r.path),h.query=r.query;else if("/"==a||"\\"==a&&h.isSpecial())c=$u;else if("?"==a)h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=Wl(r.path),h.query="",c=uf;else{if("#"!=a){h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=Wl(r.path),h.path.length--,c=cf;continue}h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=Wl(r.path),h.query=r.query,h.fragment="",c=ff}break;case $u:if(!h.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,c=cf;continue}c=ef}else c=Xu;break;case Qu:if(c=Xu,"/"!=a||"/"!=cu(u,l+1))continue;l++;break;case Xu:if("/"!=a&&"\\"!=a){c=ef;continue}break;case ef:if("@"==a){f&&(u="%40"+u),f=!0,o=Kl(u);for(var m=0;m<o.length;m++){var p=o[m];if(":"!=p||g){var y=Nu(p,ju);g?h.password+=y:h.username+=y}else g=!0}u=""}else if(a==kl||"/"==a||"?"==a||"#"==a||"\\"==a&&h.isSpecial()){if(f&&""==u)return"Invalid authority";l-=Kl(u).length+1,u="",c=tf}else u+=a;break;case tf:case rf:if(t&&"file"==h.scheme){c=sf;continue}if(":"!=a||d){if(a==kl||"/"==a||"?"==a||"#"==a||"\\"==a&&h.isSpecial()){if(h.isSpecial()&&""==u)return Au;if(t&&""==u&&(h.includesCredentials()||null!==h.port))return;if(i=h.parseHost(u))return i;if(u="",c=hf,t)return;continue}"["==a?d=!0:"]"==a&&(d=!1),u+=a}else{if(""==u)return Au;if(i=h.parseHost(u))return i;if(u="",c=nf,t==rf)return}break;case nf:if(!lu(Cu,a)){if(a==kl||"/"==a||"?"==a||"#"==a||"\\"==a&&h.isSpecial()||t){if(""!=u){var b=iu(u,10);if(b>65535)return Ru;h.port=h.isSpecial()&&b===_u[h.scheme]?null:b,u=""}if(t)return;c=hf;continue}return Ru}u+=a;break;case af:if(h.scheme="file","/"==a||"\\"==a)c=of;else{if(!r||"file"!=r.scheme){c=cf;continue}if(a==kl)h.host=r.host,h.path=Wl(r.path),h.query=r.query;else if("?"==a)h.host=r.host,h.path=Wl(r.path),h.query="",c=uf;else{if("#"!=a){Yu(uu(Wl(n,l),""))||(h.host=r.host,h.path=Wl(r.path),h.shortenPath()),c=cf;continue}h.host=r.host,h.path=Wl(r.path),h.query=r.query,h.fragment="",c=ff}}break;case of:if("/"==a||"\\"==a){c=sf;break}r&&"file"==r.scheme&&!Yu(uu(Wl(n,l),""))&&(Gu(r.path[0],!0)?gu(h.path,r.path[0]):h.host=r.host),c=cf;continue;case sf:if(a==kl||"/"==a||"\\"==a||"?"==a||"#"==a){if(!t&&Gu(u))c=cf;else if(""==u){if(h.host="",t)return;c=hf}else{if(i=h.parseHost(u))return i;if("localhost"==h.host&&(h.host=""),t)return;u="",c=hf}continue}u+=a;break;case hf:if(h.isSpecial()){if(c=cf,"/"!=a&&"\\"!=a)continue}else if(t||"?"!=a)if(t||"#"!=a){if(a!=kl&&(c=cf,"/"!=a))continue}else h.fragment="",c=ff;else h.query="",c=uf;break;case cf:if(a==kl||"/"==a||"\\"==a&&h.isSpecial()||!t&&("?"==a||"#"==a)){if(".."===(s=vu(s=u))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(h.shortenPath(),"/"==a||"\\"==a&&h.isSpecial()||gu(h.path,"")):zu(u)?"/"==a||"\\"==a&&h.isSpecial()||gu(h.path,""):("file"==h.scheme&&!h.path.length&&Gu(u)&&(h.host&&(h.host=""),u=cu(u,0)+":"),gu(h.path,u)),u="","file"==h.scheme&&(a==kl||"?"==a||"#"==a))for(;h.path.length>1&&""===h.path[0];)pu(h.path);"?"==a?(h.query="",c=uf):"#"==a&&(h.fragment="",c=ff)}else u+=Nu(a,xu);break;case lf:"?"==a?(h.query="",c=uf):"#"==a?(h.fragment="",c=ff):a!=kl&&(h.path[0]+=Nu(a,Fu));break;case uf:t||"#"!=a?a!=kl&&("'"==a&&h.isSpecial()?h.query+="%27":h.query+="#"==a?"%23":Nu(a,Fu)):(h.fragment="",c=ff);break;case ff:a!=kl&&(h.fragment+=Nu(a,Uu))}l++}},parseHost:function(e){var t,r,n;if("["==cu(e,0)){if("]"!=cu(e,e.length-1))return Au;if(t=function(e){var t,r,n,a,o,i,s,h=[0,0,0,0,0,0,0,0],c=0,l=null,u=0,f=function(){return cu(e,u)};if(":"==f()){if(":"!=cu(e,1))return;u+=2,l=++c}for(;f();){if(8==c)return;if(":"!=f()){for(t=r=0;r<4&&lu(Eu,f());)t=16*t+iu(f(),16),u++,r++;if("."==f()){if(0==r)return;if(u-=r,c>6)return;for(n=0;f();){if(a=null,n>0){if(!("."==f()&&n<4))return;u++}if(!lu(Cu,f()))return;for(;lu(Cu,f());){if(o=iu(f(),10),null===a)a=o;else{if(0==a)return;a=10*a+o}if(a>255)return;u++}h[c]=256*h[c]+a,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==f()){if(u++,!f())return}else if(f())return;h[c++]=t}else{if(null!==l)return;u++,l=++c}}if(null!==l)for(i=c-l,c=7;0!=c&&i>0;)s=h[c],h[c--]=h[l+i-1],h[l+--i]=s;else if(8!=c)return;return h}(bu(e,1,-1)),!t)return Au;this.host=t}else if(this.isSpecial()){if(e=ql(e),lu(Mu,e))return Au;if(t=function(e){var t,r,n,a,o,i,s,h=yu(e,".");if(h.length&&""==h[h.length-1]&&h.length--,(t=h.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(a=h[n]))return e;if(o=10,a.length>1&&"0"==cu(a,0)&&(o=lu(Pu,a)?16:8,a=bu(a,8==o?1:2)),""===a)i=0;else{if(!lu(10==o?Ou:8==o?Iu:Eu,a))return e;i=iu(a,o)}gu(r,i)}for(n=0;n<t;n++)if(i=r[n],n==t-1){if(i>=hu(256,5-t))return null}else if(i>255)return null;for(s=du(r),n=0;n<r.length;n++)s+=r[n]*hu(256,3-n);return s}(e),null===t)return Au;this.host=t}else{if(lu(Lu,e))return Au;for(t="",r=Kl(e),n=0;n<r.length;n++)t+=Nu(r[n],Fu);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return Yl(_u,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&Gu(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,a=e.host,o=e.port,i=e.path,s=e.query,h=e.fragment,c=t+":";return null!==a?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=Du(a),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?i[0]:i.length?"/"+uu(i,"/"):"",null!==s&&(c+="?"+s),null!==h&&(c+="#"+h),c},setHref:function(e){var t=this.parse(e);if(t)throw ou(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new gf(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Du(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Vl(e)+":",Ku)},getUsername:function(){return this.username},setUsername:function(e){var t=Kl(Vl(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=Nu(t[r],ju)}},getPassword:function(){return this.password},setPassword:function(e){var t=Kl(Vl(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=Nu(t[r],ju)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Du(e):Du(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,tf)},getHostname:function(){var e=this.host;return null===e?"":Du(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,rf)},getPort:function(){var e=this.port;return null===e?"":Vl(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=Vl(e))?this.port=null:this.parse(e,nf))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+uu(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,hf))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=Vl(e))?this.query=null:("?"==cu(e,0)&&(e=bu(e,1)),this.query="",this.parse(e,uf)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=Vl(e))?("#"==cu(e,0)&&(e=bu(e,1)),this.fragment="",this.parse(e,ff)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var gf=function(e){var t=Gl(this,mf),r=$l(arguments.length,1)>1?arguments[1]:void 0,n=eu(t,new df(e,!1,r));Dl||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},mf=gf.prototype,pf=function(e,t){return{get:function(){return tu(this)[e]()},set:t&&function(e){return tu(this)[t](e)},configurable:!0,enumerable:!0}};if(Dl&&(_l(mf,"href",pf("serialize","setHref")),_l(mf,"origin",pf("getOrigin")),_l(mf,"protocol",pf("getProtocol","setProtocol")),_l(mf,"username",pf("getUsername","setUsername")),_l(mf,"password",pf("getPassword","setPassword")),_l(mf,"host",pf("getHost","setHost")),_l(mf,"hostname",pf("getHostname","setHostname")),_l(mf,"port",pf("getPort","setPort")),_l(mf,"pathname",pf("getPathname","setPathname")),_l(mf,"search",pf("getSearch","setSearch")),_l(mf,"searchParams",pf("getSearchParams")),_l(mf,"hash",pf("getHash","setHash"))),Nl(mf,"toJSON",(function(){return tu(this).serialize()}),{enumerable:!0}),Nl(mf,"toString",(function(){return tu(this).serialize()}),{enumerable:!0}),au){var yf=au.createObjectURL,bf=au.revokeObjectURL;yf&&Nl(gf,"createObjectURL",xl(yf,au)),bf&&Nl(gf,"revokeObjectURL",xl(bf,au))}Zl(gf,"URL"),Bl({global:!0,constructor:!0,forced:!Fl,sham:!Dl},{URL:gf});var vf,Sf=V,wf=E,Af=at("match"),Rf=function(e){var t;return Sf(e)&&(void 0!==(t=e[Af])?!!t:"RegExp"==wf(e))},Hf=TypeError,Tf=at("match"),Cf=ta,Pf=C,If=s.f,Of=un,Ef=fa,Mf=function(e){if(Rf(e))throw Hf("The method doesn't accept regular expressions");return e},Lf=j,kf=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Tf]=!1,"/./"[e](t)}catch(e){}}return!1},Bf=Pf("".startsWith),Df=Pf("".slice),Ff=Math.min,Uf=kf("startsWith");Cf({target:"String",proto:!0,forced:!!(Uf||(vf=If(String.prototype,"startsWith"),!vf||vf.writable))&&!Uf},{startsWith:function(e){var t=Ef(Lf(this));Mf(e);var r=Of(Ff(arguments.length>1?arguments[1]:void 0,t.length)),n=Ef(e);return Bf?Bf(t,n,r):Df(t,r,r+n.length)===n}});var xf=d,jf=Ge,Nf=ee,_f=ga,Gf=RegExp.prototype,Yf=rr.PROPER,zf=Qr,Kf=Dt,Wf=fa,Jf=h,qf=function(e){var t=e.flags;return void 0!==t||"flags"in Gf||jf(e,"flags")||!Nf(Gf,e)?t:xf(_f,e)},Vf="toString",Zf=RegExp.prototype.toString,$f=Jf((function(){return"/a/b"!=Zf.call({source:"a",flags:"b"})})),Qf=Yf&&Zf.name!=Vf;($f||Qf)&&zf(RegExp.prototype,Vf,(function(){var e=Kf(this);return"/"+Wf(e.source)+"/"+Wf(qf(e))}),{unsafe:!0});var Xf={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion",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","Family Day":"Yom HaMishpacha, a day to honor the family unit, as a whole, and its centrality to our lives","Herzl Day":"Commemorates the life and vision of Zionist leader Theodor Herzl","Jabotinsky Day":"Commemorates the life and vision of Zionist leader Ze'ev Jabotinsky","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 Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":'Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes "Adar Bet" or "Adar Sheni", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon',"Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","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 Shirah":"Shabbat of Song","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","Yitzhak Rabin Memorial Day":"Commemorates the life of Israeli Prime Minister Yitzhak Rabin","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. 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. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. 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 Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"},ed={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 td(e){if("object"==typeof e&&null!==e&&"string"==typeof e.name){const t={title:e.getName(),city:e.getShortName(),tzid:e.getTzid(),latitude:e.getLatitude(),longitude:e.getLongitude(),cc:e.getCountryCode(),country:ed[e.getCountryCode()]};return["admin1","asciiname","geo","zip","state","stateName","geonameid"].forEach((r=>{e[r]&&(t[r]=e[r])})),t}return{geo:"none"}}function rd(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}function nd(e){return e<10?"0"+e:""+e}function ad(e){return e<0?"-00"+ad(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:""+e}function od(e){return ad(e.getFullYear())+"-"+nd(e.getMonth()+1)+"-"+nd(e.getDate())}function id(e){const r=e.getDesc();if("Fast begins"===r||"Fast ends"===r)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"];case t.flags.MINOR_HOLIDAY:return["holiday","minor"];case t.flags.MISHNA_YOMI:return["mishnayomi"]}if(e.cholHaMoedDay)return["holiday","major","cholhamoed"];switch(r){case"Havdalah":return["havdalah"];case"Candle lighting":return["candles"];case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Erev Purim":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":case"Rosh Hashana LaBehemot":return["holiday","minor"];case"Erev Tish'a B'Av":return["holiday","fast","major"];default:return["holiday","major"]}}function sd(e,t){let r="Hebcal";const n=t.location;if(t.yahrzeit)r+=" Yahrzeits and Anniversaries";else if(n&&n.name){const e=n.name.indexOf(",");r+=" "+(-1==e?n.name:n.name.substring(0,e))}else t.il?r+=" Israel":r+=" Diaspora";if("1"==t.subscribe)return r;if(t.year&&(t.isHebrewYear||0==e.length))r+=" "+t.year;else if(e.length){const t=e[0].getDate().greg(),n=e[e.length-1].getDate().greg();if(t.getFullYear()!=n.getFullYear())r+=" "+t.getFullYear()+"-"+n.getFullYear();else if(t.getMonth()==n.getMonth()){r+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(t)+" "+t.getFullYear()}else r+=" "+t.getFullYear()}return r}function hd(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=Xf[e.getDesc()]||Xf[e.basename()]||"";if(t&&r){const e=r.indexOf(".");if(-1!=e)return r.substring(0,e)}return r}const cd=t.flags.DAF_YOMI|t.flags.OMER_COUNT|t.flags.SHABBAT_MEVARCHIM|t.flags.MOLAD|t.flags.USER_EVENT|t.flags.HEBREW_DATE;function ld(e,n){const a=e.getFlags();if(a&cd)return"";const o=a&t.flags.PARSHA_HASHAVUA?r.getLeyningForParshaHaShavua(e,n):r.getLeyningForHoliday(e,n);let i="";return o&&(o.summary||o.haftara)&&(o.summary&&(i+="Torah: ".concat(o.summary)),o.summary&&o.haftara&&(i+="\n"),o.haftara&&(i+="Haftarah: "+o.haftara,o.reason&&o.reason.haftara&&(i+=" | "+o.reason.haftara))),o&&o.sephardic&&(i+="\nHaftarah for Sephardim: "+o.sephardic),i}function ud(e,t,r,n,a){const o=new URL(e),i="www.hebcal.com"===o.host;if(i){t&&o.searchParams.set("i","on");const e=o.pathname,i=e.startsWith("/holidays/"),s=e.startsWith("/sedrot/"),h=e.startsWith("/omer/");if(i||s||h)return o.host="hebcal.com",o.pathname=i?"/h/"+e.substring(10):s?"/s/"+e.substring(8):"/o/"+e.substring(6),a&&(a.startsWith("ical-")||a.startsWith("pdf-"))||(r&&o.searchParams.set("us",r),n&&o.searchParams.set("um",n)),a&&o.searchParams.set("uc",a),o.toString()}return(r=i?r:"hebcal.com")&&o.searchParams.set("utm_source",r),n&&o.searchParams.set("utm_medium",n),a&&o.searchParams.set("utm_campaign",a),o.toString()}function fd(e){if(void 0!==e.eventTime)return!0;const r=e.getFlags();if(r&t.flags.HEBREW_DATE){return 1!==e.getDate().getDate()}return!!(r&t.flags.DAF_YOMI)||(!!(r&t.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(r&t.flags.SHABBAT_MEVARCHIM))}const dd='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"',gd={dafyomi:"Daf Yomi",hebdate:"Hebrew Date",holiday:"Jewish Holidays",mevarchim:null,molad:null,omer:null,parashat:"Torah Reading",roshchodesh:"Jewish Holidays",user:"Personal"};function md(e,r){const n=e.getDate().greg(),a=n.getDate(),o=n.getMonth()+1,i=String(n.getFullYear()).padStart(4,"0"),s=r.euro?'"'.concat(a,"/").concat(o,"/").concat(i,'"'):'"'.concat(o,"/").concat(a,"/").concat(i,'"');let h="",c="",l="",u='"true"';const f=Boolean(e.eventTime);let d=fd(e)?e.renderBrief(r.locale):e.render(r.locale);if(e.eventTime){const n=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr," PM",r);c=h='"'.concat(n,'"'),l=s,u='"false"'}let g="Jewish Holidays";const m=e.getFlags();if(f&&r.location&&r.location.name){const e=r.location.name,t=e.indexOf(",");g=-1===t?e:e.substring(0,t)}else if(m&t.flags.DAF_YOMI){const e=d.indexOf(": ");-1!=e&&(g=d.substring(0,e),d=d.substring(e+2))}else{const t=gd[id(e)[0]];t&&(g=t)}if(d=d.replace(/,/g,"").replace(/"/g,"''"),r.appendHebrewToSubject){const t=e.renderBrief("he");t&&(d+=" / ".concat(t))}let p=e.memo||hd(e,!0);p||void 0===e.linkedEvent||(p=e.linkedEvent.render(r.locale));const y=p.replace(/,/g,";").replace(/"/g,"''").replace(/\n/g," / "),b=f||m&t.flags.CHAG?4:3;return'"'.concat(d,'",').concat(s,",").concat(h,",").concat(l,",").concat(c,",").concat(u,',"').concat(y,'","').concat(b,'","').concat(g,'"')}function pd(e){return od(e.getDate().greg())}function yd(e,a){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=Boolean(e.eventTime),s=e.getDate(),h=s.greg(),c="object"==typeof a.location?a.location.getTzid():"UTC",l=i?t.Zmanim.formatISOWithTimeZone(c,e.eventTime):od(h),u=id(e),f=e.getFlags();let d=fd(e)?e.renderBrief(a.locale):e.render(a.locale);const g=e.getDesc(),m="Havdalah"===g||"Candle lighting"===g;if(m){d+=": "+t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",a)}const p={title:d,date:l};i||(p.hdate=s.toString()),p.category=u[0],u.length>1&&(p.subcat=u[1]),"holiday"===u[0]&&f&t.flags.CHAG&&(p.yomtov=!0),d!=g&&(p.title_orig=g);const y=e.renderBrief("he");if(y&&(p.hebrew=t.Locale.hebrewStripNikkud(y)),!m){if(o){const o=a.il,i=f===t.flags.PARSHA_HASHAVUA,h=i?r.getLeyningForParshaHaShavua(e,o):r.getLeyningForHoliday(e,o);if(h){p.leyning=vd(h);const t=s.getFullYear();if(i&&!o&&t>=5745){const t=n.getTriennialForParshaHaShavua(e);t&&(p.leyning.triennial=bd({},t.aliyot))}}}const i=e.url();if(i){const e=a.utmSource||"js",t=a.utmMedium||"api",r=a.utmCampaign;p.link=ud(i,a.il,e,t,r)}}if(f&t.flags.OMER_COUNT&&(p.omer={count:{he:e.getTodayIs("he"),en:e.getTodayIs("en")},sefira:{he:e.sefira("he"),translit:e.sefira("translit"),en:e.sefira("en")}}),f&t.flags.HEBREW_DATE){const e=s.getFullYear(),r=s.getMonthName(),n=s.getDate();p.heDateParts={y:t.gematriya(e),m:t.Locale.gettext(r,"he-x-NoNikud"),d:t.gematriya(n)}}const b=e.memo||Xf[e.basename()];return b?p.memo=b:void 0!==e.linkedEvent&&(p.memo=e.linkedEvent.render(a.locale)),a.includeEvent&&(p.ev=e),p}function bd(e,t){return Object.keys(t).forEach((n=>{const a=t[n];if(void 0!==a){e["M"==n?"maftir":n]=r.formatAliyahWithBook(a)}})),e}function vd(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&&bd(t,e.fullkriyah),e.reason&&(["7","8","M"].forEach((r=>{if(e.reason[r]){t["M"==r?"maftir":r]+=" | "+e.reason[r]}})),e.reason.haftara&&(t.haftarah+=" | "+e.reason.haftara)),t}const Sd={s:"en",a:"en","he-x-NoNikud":"he",h:"he",ah:"en",sh:"en"};function wd(e,r){let n=e.render();const a=e.getDate().greg(),o=function(e,t,r,n){if(t){const t=e.eventTime;return t?t.toUTCString():r.toUTCString().replace(/ \S+ GMT$/," 00:00:00 GMT")}return n}(e,r.evPubDate,a,r.lastBuildDate),i=r.location,s=!!i&&i.getIsrael(),h=i?i.getTzid():"UTC",c=r&&r.utmSource||"shabbat1c",l=r&&r.utmMedium||"rss",u=function(e,r,n,a,o,i){let s,h;const c=e.eventTime||e.getDate().greg(),l=t.Zmanim.formatISOWithTimeZone(n,c),u=l.substring(0,l.indexOf("T")),f=u.replace(/-/g,""),d=rd(e.getDesc()),g="".concat(f,"-").concat(d),m=e.url();if(m)s=ud(m,r,o,i).replace(/&/g,"&"),h="".concat(m,"#").concat(g);else{const e="".concat(a,"&dt=").concat(u),t=ud(e,r,o,i).replace(/&/g,"&");h=e.replace(/&/g,"&")+"#".concat(g),s="".concat(t,"#").concat(g)}return[s,h]}(e,s,h,r.mainUrl,c,l),f=u[0],d=u[1],g=id(e)[0],m=e.getDesc();let p;if("Havdalah"===m||"Candle lighting"===m){const r=n.indexOf(": ");if(-1!=r){const a={location:i,il:s,locale:t.Locale.getLocaleName()},o=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",a);n=n.substring(0,r)+": "+o}}else p=e.getFlags()&t.flags.PARSHA_HASHAVUA?ld(e,s):e.memo||Xf[e.basename()];const y=r.dayFormat,b=p||y.format(a),v="candles"==g?"<geo:lat>".concat(i.getLatitude(),"</geo:lat>\n<geo:long>").concat(i.getLongitude(),"</geo:long>\n"):"";return"<item>\n<title>".concat(n,"</title>\n<link>").concat(f,'</link>\n<guid isPermaLink="false">').concat(d,"</guid>\n<description>").concat(b,"</description>\n<category>").concat(g,"</category>\n<pubDate>").concat(o,"</pubDate>\n").concat(v,"</item>\n")}return e.appendIsraelAndTracking=ud,e.countryNames=ed,e.eventToClassicApiObject=yd,e.eventToCsv=md,e.eventToFullCalendar=function(e,r,n){const a=id(e),o=e.getFlags();"holiday"==a[0]&&o&t.flags.CHAG&&a.push("yomtov");const i=Boolean(e.eventTime),s={title:fd(e)?e.renderBrief():e.render(),start:i?t.Zmanim.formatISOWithTimeZone(r,e.eventTime):od(e.getDate().greg()),allDay:!i,className:a.join(" ")},h=e.renderBrief("he");h&&(s.hebrew=t.Locale.hebrewStripNikkud(h));const c=e.url();c&&(s.url=ud(c,n,"js","fc"));const l=e.getDesc();if(!("Havdalah"===l||"Candle lighting"===l)){const r=o&t.flags.PARSHA_HASHAVUA?ld(e,n):e.memo||Xf[e.basename()];r?s.description=r:void 0!==e.linkedEvent&&(s.description=e.linkedEvent.render())}return s},e.eventToRssItem2=wd,e.eventsToClassicApi=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n={title:sd(e,t),date:(new Date).toISOString()};return n.location=td(t.location),e.length&&(n.range={start:pd(e[0]),end:pd(e[e.length-1])}),n.items=e.map((e=>yd(e,t,r))),n},e.eventsToCsv=function(e,t){return[dd].concat(e.map((e=>md(e,t)))).join("\r\n")+"\r\n"},e.eventsToRss2=function(e,t){t.dayFormat=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"});const r=t.location,n=t.mainUrl,a=t.buildDate=t.buildDate||new Date,o=a.getFullYear(),i=t.lastBuildDate=a.toUTCString(),s=t.title||sd(e,t),h=t.description||s,c=t.utmSource||"shabbat1c",l=t.utmMedium||"rss",u=ud(n,r&&r.getIsrael(),c,l,t.utmCampaign).replace(/&/g,"&"),f=t.selfUrl.replace(/&/g,"&"),d=t.lang||Sd[t.locale]||t.locale||"en-US";let g='<?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(s,"</title>\n<link>").concat(u,'</link>\n<atom:link href="').concat(f,'" rel="self" type="application/rss+xml" />\n<description>').concat(h,"</description>\n<language>").concat(d,"</language>\n<copyright>Copyright (c) ").concat(o," Michael J. Radwin. All rights reserved.</copyright>\n<lastBuildDate>").concat(i,"</lastBuildDate>\n");return e.forEach((e=>{g+=wd(e,t)})),g+="</channel>\n</rss>\n",g},e.getCalendarTitle=sd,e.getDownloadFilename=function(e){let r="hebcal";if(e.year)r+="_"+e.year,e.isHebrewYear&&(r+="h"),e.month&&(r+="_"+e.month);else if("object"==typeof e.start&&"object"==typeof e.end){const n=new t.HDate(e.start),a=new t.HDate(e.end),o=n.greg().getFullYear(),i=a.greg().getFullYear();r+=o===i?"_"+o:"_"+o+"_"+i}if("object"==typeof e.location){const t=e.location,n=t.zip||t.asciiname||t.getShortName();n&&(r+="_"+rd(n).replace(/[-]/g,"_"))}return r},e.getEventCategories=id,e.getHolidayDescription=hd,e.holidayDescription=Xf,e.locationToPlainObj=td,e.makeAnchor=rd,e.makeTorahMemoText=ld,e.pad2=nd,e.pad4=ad,e.renderTitleWithoutTime=function(e){return void 0===e.eventTime?e.render():e.renderBrief()},e.shouldRenderBrief=fd,e.toISOString=od,Object.defineProperty(e,"__esModule",{value:!0}),e}({},hebcal,hebcal__leyning,hebcal__triennial);
|
|
1
|
+
/*! @hebcal/rest-api v4.3.1 */
|
|
2
|
+
var hebcal__rest_api=function(e,t,r,n){"use strict";var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=function(e){return e&&e.Math==Math&&e},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof a&&a)||function(){return this}()||Function("return this")(),s={},h=function(e){try{return!!e()}catch(e){return!0}},c=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!h((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),u=l,f=Function.prototype.call,d=u?f.bind(f):function(){return f.apply(f,arguments)},g={},m={}.propertyIsEnumerable,p=Object.getOwnPropertyDescriptor,y=p&&!m.call({1:2},1);g.f=y?function(e){var t=p(this,e);return!!t&&t.enumerable}:m;var b,v,S=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},w=l,A=Function.prototype,R=A.bind,H=A.call,T=w&&R.bind(H,H),C=w?function(e){return e&&T(e)}:function(e){return e&&function(){return H.apply(e,arguments)}},P=C,I=P({}.toString),O=P("".slice),E=function(e){return O(I(e),8,-1)},L=h,M=E,k=Object,B=C("".split),D=L((function(){return!k("z").propertyIsEnumerable(0)}))?function(e){return"String"==M(e)?B(e,""):k(e)}:k,F=function(e){return null==e},U=F,x=TypeError,j=function(e){if(U(e))throw x("Can't call method on "+e);return e},N=D,_=j,G=function(e){return N(_(e))},Y="object"==typeof document&&document.all,z={all:Y,IS_HTMLDDA:void 0===Y&&void 0!==Y},K=z.all,W=z.IS_HTMLDDA?function(e){return"function"==typeof e||e===K}:function(e){return"function"==typeof e},J=W,q=z.all,V=z.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:J(e)||e===q}:function(e){return"object"==typeof e?null!==e:J(e)},Z=i,$=W,Q=function(e){return $(e)?e:void 0},X=function(e,t){return arguments.length<2?Q(Z[e]):Z[e]&&Z[e][t]},ee=C({}.isPrototypeOf),te=i,re=X("navigator","userAgent")||"",ne=te.process,ae=te.Deno,oe=ne&&ne.versions||ae&&ae.version,ie=oe&&oe.v8;ie&&(v=(b=ie.split("."))[0]>0&&b[0]<4?1:+(b[0]+b[1])),!v&&re&&(!(b=re.match(/Edge\/(\d+)/))||b[1]>=74)&&(b=re.match(/Chrome\/(\d+)/))&&(v=+b[1]);var se=v,he=h,ce=!!Object.getOwnPropertySymbols&&!he((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&se&&se<41})),le=ce&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ue=X,fe=W,de=ee,ge=Object,me=le?function(e){return"symbol"==typeof e}:function(e){var t=ue("Symbol");return fe(t)&&de(t.prototype,ge(e))},pe=String,ye=function(e){try{return pe(e)}catch(e){return"Object"}},be=W,ve=ye,Se=TypeError,we=function(e){if(be(e))return e;throw Se(ve(e)+" is not a function")},Ae=we,Re=F,He=function(e,t){var r=e[t];return Re(r)?void 0:Ae(r)},Te=d,Ce=W,Pe=V,Ie=TypeError,Oe={exports:{}},Ee=i,Le=Object.defineProperty,Me=function(e,t){try{Le(Ee,e,{value:t,configurable:!0,writable:!0})}catch(r){Ee[e]=t}return t},ke=Me,Be="__core-js_shared__",De=i[Be]||ke(Be,{}),Fe=De;(Oe.exports=function(e,t){return Fe[e]||(Fe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.2",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Ue=j,xe=Object,je=function(e){return xe(Ue(e))},Ne=je,_e=C({}.hasOwnProperty),Ge=Object.hasOwn||function(e,t){return _e(Ne(e),t)},Ye=C,ze=0,Ke=Math.random(),We=Ye(1..toString),Je=function(e){return"Symbol("+(void 0===e?"":e)+")_"+We(++ze+Ke,36)},qe=i,Ve=Oe.exports,Ze=Ge,$e=Je,Qe=ce,Xe=le,et=Ve("wks"),tt=qe.Symbol,rt=tt&&tt.for,nt=Xe?tt:tt&&tt.withoutSetter||$e,at=function(e){if(!Ze(et,e)||!Qe&&"string"!=typeof et[e]){var t="Symbol."+e;Qe&&Ze(tt,e)?et[e]=tt[e]:et[e]=Xe&&rt?rt(t):nt(t)}return et[e]},ot=d,it=V,st=me,ht=He,ct=function(e,t){var r,n;if("string"===t&&Ce(r=e.toString)&&!Pe(n=Te(r,e)))return n;if(Ce(r=e.valueOf)&&!Pe(n=Te(r,e)))return n;if("string"!==t&&Ce(r=e.toString)&&!Pe(n=Te(r,e)))return n;throw Ie("Can't convert object to primitive value")},lt=TypeError,ut=at("toPrimitive"),ft=function(e,t){if(!it(e)||st(e))return e;var r,n=ht(e,ut);if(n){if(void 0===t&&(t="default"),r=ot(n,e,t),!it(r)||st(r))return r;throw lt("Can't convert object to primitive value")}return void 0===t&&(t="number"),ct(e,t)},dt=me,gt=function(e){var t=ft(e,"string");return dt(t)?t:t+""},mt=V,pt=i.document,yt=mt(pt)&&mt(pt.createElement),bt=function(e){return yt?pt.createElement(e):{}},vt=bt,St=!c&&!h((function(){return 7!=Object.defineProperty(vt("div"),"a",{get:function(){return 7}}).a})),wt=c,At=d,Rt=g,Ht=S,Tt=G,Ct=gt,Pt=Ge,It=St,Ot=Object.getOwnPropertyDescriptor;s.f=wt?Ot:function(e,t){if(e=Tt(e),t=Ct(t),It)try{return Ot(e,t)}catch(e){}if(Pt(e,t))return Ht(!At(Rt.f,e,t),e[t])};var Et={},Lt=c&&h((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Mt=V,kt=String,Bt=TypeError,Dt=function(e){if(Mt(e))return e;throw Bt(kt(e)+" is not an object")},Ft=c,Ut=St,xt=Lt,jt=Dt,Nt=gt,_t=TypeError,Gt=Object.defineProperty,Yt=Object.getOwnPropertyDescriptor,zt="enumerable",Kt="configurable",Wt="writable";Et.f=Ft?xt?function(e,t,r){if(jt(e),t=Nt(t),jt(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Wt in r&&!r.writable){var n=Yt(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:Kt in r?r.configurable:n.configurable,enumerable:zt in r?r.enumerable:n.enumerable,writable:!1})}return Gt(e,t,r)}:Gt:function(e,t,r){if(jt(e),t=Nt(t),jt(r),Ut)try{return Gt(e,t,r)}catch(e){}if("get"in r||"set"in r)throw _t("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Jt=Et,qt=S,Vt=c?function(e,t,r){return Jt.f(e,t,qt(1,r))}:function(e,t,r){return e[t]=r,e},Zt={exports:{}},$t=c,Qt=Ge,Xt=Function.prototype,er=$t&&Object.getOwnPropertyDescriptor,tr=Qt(Xt,"name"),rr={EXISTS:tr,PROPER:tr&&"something"===function(){}.name,CONFIGURABLE:tr&&(!$t||$t&&er(Xt,"name").configurable)},nr=W,ar=De,or=C(Function.toString);nr(ar.inspectSource)||(ar.inspectSource=function(e){return or(e)});var ir,sr,hr,cr=ar.inspectSource,lr=W,ur=i.WeakMap,fr=lr(ur)&&/native code/.test(String(ur)),dr=Oe.exports,gr=Je,mr=dr("keys"),pr=function(e){return mr[e]||(mr[e]=gr(e))},yr={},br=fr,vr=i,Sr=C,wr=V,Ar=Vt,Rr=Ge,Hr=De,Tr=pr,Cr=yr,Pr="Object already initialized",Ir=vr.TypeError,Or=vr.WeakMap;if(br||Hr.state){var Er=Hr.state||(Hr.state=new Or),Lr=Sr(Er.get),Mr=Sr(Er.has),kr=Sr(Er.set);ir=function(e,t){if(Mr(Er,e))throw Ir(Pr);return t.facade=e,kr(Er,e,t),t},sr=function(e){return Lr(Er,e)||{}},hr=function(e){return Mr(Er,e)}}else{var Br=Tr("state");Cr[Br]=!0,ir=function(e,t){if(Rr(e,Br))throw Ir(Pr);return t.facade=e,Ar(e,Br,t),t},sr=function(e){return Rr(e,Br)?e[Br]:{}},hr=function(e){return Rr(e,Br)}}var Dr={set:ir,get:sr,has:hr,enforce:function(e){return hr(e)?sr(e):ir(e,{})},getterFor:function(e){return function(t){var r;if(!wr(t)||(r=sr(t)).type!==e)throw Ir("Incompatible receiver, "+e+" required");return r}}},Fr=h,Ur=W,xr=Ge,jr=c,Nr=rr.CONFIGURABLE,_r=cr,Gr=Dr.enforce,Yr=Dr.get,zr=Object.defineProperty,Kr=jr&&!Fr((function(){return 8!==zr((function(){}),"length",{value:8}).length})),Wr=String(String).split("String"),Jr=Zt.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!xr(e,"name")||Nr&&e.name!==t)&&(jr?zr(e,"name",{value:t,configurable:!0}):e.name=t),Kr&&r&&xr(r,"arity")&&e.length!==r.arity&&zr(e,"length",{value:r.arity});try{r&&xr(r,"constructor")&&r.constructor?jr&&zr(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Gr(e);return xr(n,"source")||(n.source=Wr.join("string"==typeof t?t:"")),e};Function.prototype.toString=Jr((function(){return Ur(this)&&Yr(this).source||_r(this)}),"toString");var qr=W,Vr=Et,Zr=Zt.exports,$r=Me,Qr=function(e,t,r,n){n||(n={});var a=n.enumerable,o=void 0!==n.name?n.name:t;if(qr(r)&&Zr(r,o,n),n.global)a?e[t]=r:$r(t,r);else{try{n.unsafe?e[t]&&(a=!0):delete e[t]}catch(e){}a?e[t]=r:Vr.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},Xr={},en=Math.ceil,tn=Math.floor,rn=Math.trunc||function(e){var t=+e;return(t>0?tn:en)(t)},nn=function(e){var t=+e;return t!=t||0===t?0:rn(t)},an=nn,on=Math.max,sn=Math.min,hn=function(e,t){var r=an(e);return r<0?on(r+t,0):sn(r,t)},cn=nn,ln=Math.min,un=function(e){return e>0?ln(cn(e),9007199254740991):0},fn=un,dn=function(e){return fn(e.length)},gn=G,mn=hn,pn=dn,yn=function(e){return function(t,r,n){var a,o=gn(t),i=pn(o),s=mn(n,i);if(e&&r!=r){for(;i>s;)if((a=o[s++])!=a)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===r)return e||s||0;return!e&&-1}},bn={includes:yn(!0),indexOf:yn(!1)},vn=Ge,Sn=G,wn=bn.indexOf,An=yr,Rn=C([].push),Hn=function(e,t){var r,n=Sn(e),a=0,o=[];for(r in n)!vn(An,r)&&vn(n,r)&&Rn(o,r);for(;t.length>a;)vn(n,r=t[a++])&&(~wn(o,r)||Rn(o,r));return o},Tn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Cn=Hn,Pn=Tn.concat("length","prototype");Xr.f=Object.getOwnPropertyNames||function(e){return Cn(e,Pn)};var In={};In.f=Object.getOwnPropertySymbols;var On=X,En=Xr,Ln=In,Mn=Dt,kn=C([].concat),Bn=On("Reflect","ownKeys")||function(e){var t=En.f(Mn(e)),r=Ln.f;return r?kn(t,r(e)):t},Dn=Ge,Fn=Bn,Un=s,xn=Et,jn=h,Nn=W,_n=/#|\.prototype\./,Gn=function(e,t){var r=zn[Yn(e)];return r==Wn||r!=Kn&&(Nn(t)?jn(t):!!t)},Yn=Gn.normalize=function(e){return String(e).replace(_n,".").toLowerCase()},zn=Gn.data={},Kn=Gn.NATIVE="N",Wn=Gn.POLYFILL="P",Jn=Gn,qn=i,Vn=s.f,Zn=Vt,$n=Qr,Qn=Me,Xn=function(e,t,r){for(var n=Fn(t),a=xn.f,o=Un.f,i=0;i<n.length;i++){var s=n[i];Dn(e,s)||r&&Dn(r,s)||a(e,s,o(t,s))}},ea=Jn,ta=function(e,t){var r,n,a,o,i,s=e.target,h=e.global,c=e.stat;if(r=h?qn:c?qn[s]||Qn(s,{}):(qn[s]||{}).prototype)for(n in t){if(o=t[n],a=e.dontCallGetSet?(i=Vn(r,n))&&i.value:r[n],!ea(h?n:s+(c?".":"#")+n,e.forced)&&void 0!==a){if(typeof o==typeof a)continue;Xn(o,a)}(e.sham||a&&a.sham)&&Zn(o,"sham",!0),$n(r,n,o,e)}},ra={};ra[at("toStringTag")]="z";var na="[object z]"===String(ra),aa=W,oa=E,ia=at("toStringTag"),sa=Object,ha="Arguments"==oa(function(){return arguments}()),ca=na?oa:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=sa(e),ia))?r:ha?oa(t):"Object"==(n=oa(t))&&aa(t.callee)?"Arguments":n},la=ca,ua=String,fa=function(e){if("Symbol"===la(e))throw TypeError("Cannot convert a Symbol value to a string");return ua(e)},da=Dt,ga=function(){var e=da(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},ma=h,pa=i.RegExp,ya=ma((function(){var e=pa("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ba=ya||ma((function(){return!pa("a","y").sticky})),va={BROKEN_CARET:ya||ma((function(){var e=pa("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:ba,UNSUPPORTED_Y:ya},Sa={},wa=Hn,Aa=Tn,Ra=Object.keys||function(e){return wa(e,Aa)},Ha=c,Ta=Lt,Ca=Et,Pa=Dt,Ia=G,Oa=Ra;Sa.f=Ha&&!Ta?Object.defineProperties:function(e,t){Pa(e);for(var r,n=Ia(t),a=Oa(t),o=a.length,i=0;o>i;)Ca.f(e,r=a[i++],n[r]);return e};var Ea,La=X("document","documentElement"),Ma=Dt,ka=Sa,Ba=Tn,Da=yr,Fa=La,Ua=bt,xa=pr("IE_PROTO"),ja=function(){},Na=function(e){return"<script>"+e+"</"+"script>"},_a=function(e){e.write(Na("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ga=function(){try{Ea=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ga="undefined"!=typeof document?document.domain&&Ea?_a(Ea):((t=Ua("iframe")).style.display="none",Fa.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Na("document.F=Object")),e.close(),e.F):_a(Ea);for(var r=Ba.length;r--;)delete Ga.prototype[Ba[r]];return Ga()};Da[xa]=!0;var Ya,za,Ka=Object.create||function(e,t){var r;return null!==e?(ja.prototype=Ma(e),r=new ja,ja.prototype=null,r[xa]=e):r=Ga(),void 0===t?r:ka.f(r,t)},Wa=h,Ja=i.RegExp,qa=Wa((function(){var e=Ja(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Va=h,Za=i.RegExp,$a=Va((function(){var e=Za("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Qa=d,Xa=C,eo=fa,to=ga,ro=va,no=Oe.exports,ao=Ka,oo=Dr.get,io=qa,so=$a,ho=no("native-string-replace",String.prototype.replace),co=RegExp.prototype.exec,lo=co,uo=Xa("".charAt),fo=Xa("".indexOf),go=Xa("".replace),mo=Xa("".slice),po=(za=/b*/g,Qa(co,Ya=/a/,"a"),Qa(co,za,"a"),0!==Ya.lastIndex||0!==za.lastIndex),yo=ro.BROKEN_CARET,bo=void 0!==/()??/.exec("")[1];(po||bo||yo||io||so)&&(lo=function(e){var t,r,n,a,o,i,s,h=this,c=oo(h),l=eo(e),u=c.raw;if(u)return u.lastIndex=h.lastIndex,t=Qa(lo,u,l),h.lastIndex=u.lastIndex,t;var f=c.groups,d=yo&&h.sticky,g=Qa(to,h),m=h.source,p=0,y=l;if(d&&(g=go(g,"y",""),-1===fo(g,"g")&&(g+="g"),y=mo(l,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==uo(l,h.lastIndex-1))&&(m="(?: "+m+")",y=" "+y,p++),r=new RegExp("^(?:"+m+")",g)),bo&&(r=new RegExp("^"+m+"$(?!\\s)",g)),po&&(n=h.lastIndex),a=Qa(co,d?r:h,y),d?a?(a.input=mo(a.input,p),a[0]=mo(a[0],p),a.index=h.lastIndex,h.lastIndex+=a[0].length):h.lastIndex=0:po&&a&&(h.lastIndex=h.global?a.index+a[0].length:n),bo&&a&&a.length>1&&Qa(ho,a[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(a[o]=void 0)})),a&&f)for(a.groups=i=ao(null),o=0;o<f.length;o++)i[(s=f[o])[0]]=a[s[1]];return a});ta({target:"RegExp",proto:!0,forced:/./.exec!==lo},{exec:lo});var vo=bt("span").classList,So=vo&&vo.constructor&&vo.constructor.prototype,wo=So===Object.prototype?void 0:So,Ao=at,Ro=Ka,Ho=Et.f,To=Ao("unscopables"),Co=Array.prototype;null==Co[To]&&Ho(Co,To,{configurable:!0,value:Ro(null)});var Po,Io,Oo,Eo={},Lo=!h((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Mo=Ge,ko=W,Bo=je,Do=Lo,Fo=pr("IE_PROTO"),Uo=Object,xo=Uo.prototype,jo=Do?Uo.getPrototypeOf:function(e){var t=Bo(e);if(Mo(t,Fo))return t[Fo];var r=t.constructor;return ko(r)&&t instanceof r?r.prototype:t instanceof Uo?xo:null},No=h,_o=W,Go=V,Yo=jo,zo=Qr,Ko=at("iterator"),Wo=!1;[].keys&&("next"in(Oo=[].keys())?(Io=Yo(Yo(Oo)))!==Object.prototype&&(Po=Io):Wo=!0);var Jo=!Go(Po)||No((function(){var e={};return Po[Ko].call(e)!==e}));Jo&&(Po={}),_o(Po[Ko])||zo(Po,Ko,(function(){return this}));var qo={IteratorPrototype:Po,BUGGY_SAFARI_ITERATORS:Wo},Vo=Et.f,Zo=Ge,$o=at("toStringTag"),Qo=function(e,t,r){e&&!r&&(e=e.prototype),e&&!Zo(e,$o)&&Vo(e,$o,{configurable:!0,value:t})},Xo=qo.IteratorPrototype,ei=Ka,ti=S,ri=Qo,ni=Eo,ai=function(){return this},oi=function(e,t,r,n){var a=t+" Iterator";return e.prototype=ei(Xo,{next:ti(+!n,r)}),ri(e,a,!1),ni[a]=ai,e},ii=W,si=String,hi=TypeError,ci=C,li=Dt,ui=function(e){if("object"==typeof e||ii(e))return e;throw hi("Can't set "+si(e)+" as a prototype")},fi=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=ci(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return li(r),ui(n),t?e(r,n):r.__proto__=n,r}}():void 0),di=ta,gi=d,mi=W,pi=oi,yi=jo,bi=fi,vi=Qo,Si=Vt,wi=Qr,Ai=Eo,Ri=rr.PROPER,Hi=rr.CONFIGURABLE,Ti=qo.IteratorPrototype,Ci=qo.BUGGY_SAFARI_ITERATORS,Pi=at("iterator"),Ii="keys",Oi="values",Ei="entries",Li=function(){return this},Mi=function(e,t,r,n,a,o,i){pi(r,t,n);var s,h,c,l=function(e){if(e===a&&m)return m;if(!Ci&&e in d)return d[e];switch(e){case Ii:case Oi:case Ei:return function(){return new r(this,e)}}return function(){return new r(this)}},u=t+" Iterator",f=!1,d=e.prototype,g=d[Pi]||d["@@iterator"]||a&&d[a],m=!Ci&&g||l(a),p="Array"==t&&d.entries||g;if(p&&(s=yi(p.call(new e)))!==Object.prototype&&s.next&&(yi(s)!==Ti&&(bi?bi(s,Ti):mi(s[Pi])||wi(s,Pi,Li)),vi(s,u,!0)),Ri&&a==Oi&&g&&g.name!==Oi&&(Hi?Si(d,"name",Oi):(f=!0,m=function(){return gi(g,this)})),a)if(h={values:l(Oi),keys:o?m:l(Ii),entries:l(Ei)},i)for(c in h)(Ci||f||!(c in d))&&wi(d,c,h[c]);else di({target:t,proto:!0,forced:Ci||f},h);return d[Pi]!==m&&wi(d,Pi,m,{name:a}),Ai[t]=m,h},ki=function(e,t){return{value:e,done:t}},Bi=G,Di=function(e){Co[To][e]=!0},Fi=Eo,Ui=Dr,xi=Et.f,ji=Mi,Ni=ki,_i=c,Gi="Array Iterator",Yi=Ui.set,zi=Ui.getterFor(Gi),Ki=ji(Array,"Array",(function(e,t){Yi(this,{type:Gi,target:Bi(e),index:0,kind:t})}),(function(){var e=zi(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,Ni(void 0,!0)):Ni("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),Wi=Fi.Arguments=Fi.Array;if(Di("keys"),Di("values"),Di("entries"),_i&&"values"!==Wi.name)try{xi(Wi,"name",{value:"values"})}catch(e){}var Ji=i,qi={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},Vi=wo,Zi=Ki,$i=Vt,Qi=at,Xi=Qi("iterator"),es=Qi("toStringTag"),ts=Zi.values,rs=function(e,t){if(e){if(e[Xi]!==ts)try{$i(e,Xi,ts)}catch(t){e[Xi]=ts}if(e[es]||$i(e,es,t),qi[t])for(var r in Zi)if(e[r]!==Zi[r])try{$i(e,r,Zi[r])}catch(t){e[r]=Zi[r]}}};for(var ns in qi)rs(Ji[ns]&&Ji[ns].prototype,ns);rs(Vi,"DOMTokenList");var as=C,os=nn,is=fa,ss=j,hs=as("".charAt),cs=as("".charCodeAt),ls=as("".slice),us=function(e){return function(t,r){var n,a,o=is(ss(t)),i=os(r),s=o.length;return i<0||i>=s?e?"":void 0:(n=cs(o,i))<55296||n>56319||i+1===s||(a=cs(o,i+1))<56320||a>57343?e?hs(o,i):n:e?ls(o,i,i+2):a-56320+(n-55296<<10)+65536}},fs={codeAt:us(!1),charAt:us(!0)},ds=fs.charAt,gs=fa,ms=Dr,ps=Mi,ys=ki,bs="String Iterator",vs=ms.set,Ss=ms.getterFor(bs);ps(String,"String",(function(e){vs(this,{type:bs,string:gs(e),index:0})}),(function(){var e,t=Ss(this),r=t.string,n=t.index;return n>=r.length?ys(void 0,!0):(e=ds(r,n),t.index+=e.length,ys(e,!1))}));var ws=h,As=at("iterator"),Rs=!ws((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[As]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),Hs=we,Ts=l,Cs=C(C.bind),Ps=function(e,t){return Hs(e),void 0===t?e:Ts?Cs(e,t):function(){return e.apply(t,arguments)}},Is=Zt.exports,Os=Et,Es=ee,Ls=TypeError,Ms=function(e,t){if(Es(t,e))return e;throw Ls("Incorrect invocation")},ks=c,Bs=C,Ds=d,Fs=h,Us=Ra,xs=In,js=g,Ns=je,_s=D,Gs=Object.assign,Ys=Object.defineProperty,zs=Bs([].concat),Ks=!Gs||Fs((function(){if(ks&&1!==Gs({b:1},Gs(Ys({},"a",{enumerable:!0,get:function(){Ys(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=Gs({},e)[r]||Us(Gs({},t)).join("")!=n}))?function(e,t){for(var r=Ns(e),n=arguments.length,a=1,o=xs.f,i=js.f;n>a;)for(var s,h=_s(arguments[a++]),c=o?zs(Us(h),o(h)):Us(h),l=c.length,u=0;l>u;)s=c[u++],ks&&!Ds(i,h,s)||(r[s]=h[s]);return r}:Gs,Ws=d,Js=Dt,qs=He,Vs=Dt,Zs=function(e,t,r){var n,a;Js(e);try{if(!(n=qs(e,"return"))){if("throw"===t)throw r;return r}n=Ws(n,e)}catch(e){a=!0,n=e}if("throw"===t)throw r;if(a)throw n;return Js(n),r},$s=Eo,Qs=at("iterator"),Xs=Array.prototype,eh=C,th=h,rh=W,nh=ca,ah=cr,oh=function(){},ih=[],sh=X("Reflect","construct"),hh=/^\s*(?:class|function)\b/,ch=eh(hh.exec),lh=!hh.exec(oh),uh=function(e){if(!rh(e))return!1;try{return sh(oh,ih,e),!0}catch(e){return!1}},fh=function(e){if(!rh(e))return!1;switch(nh(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return lh||!!ch(hh,ah(e))}catch(e){return!0}};fh.sham=!0;var dh=!sh||th((function(){var e;return uh(uh.call)||!uh(Object)||!uh((function(){e=!0}))||e}))?fh:uh,gh=gt,mh=Et,ph=S,yh=function(e,t,r){var n=gh(t);n in e?mh.f(e,n,ph(0,r)):e[n]=r},bh=ca,vh=He,Sh=F,wh=Eo,Ah=at("iterator"),Rh=function(e){if(!Sh(e))return vh(e,Ah)||vh(e,"@@iterator")||wh[bh(e)]},Hh=d,Th=we,Ch=Dt,Ph=ye,Ih=Rh,Oh=TypeError,Eh=function(e,t){var r=arguments.length<2?Ih(e):t;if(Th(r))return Ch(Hh(r,e));throw Oh(Ph(e)+" is not iterable")},Lh=Ps,Mh=d,kh=je,Bh=function(e,t,r,n){try{return n?t(Vs(r)[0],r[1]):t(r)}catch(t){Zs(e,"throw",t)}},Dh=function(e){return void 0!==e&&($s.Array===e||Xs[Qs]===e)},Fh=dh,Uh=dn,xh=yh,jh=Eh,Nh=Rh,_h=Array,Gh=hn,Yh=dn,zh=yh,Kh=Array,Wh=Math.max,Jh=function(e,t,r){for(var n=Yh(e),a=Gh(t,n),o=Gh(void 0===r?n:r,n),i=Kh(Wh(o-a,0)),s=0;a<o;a++,s++)zh(i,s,e[a]);return i.length=s,i},qh=C,Vh=2147483647,Zh=/[^\0-\u007E]/,$h=/[.\u3002\uFF0E\uFF61]/g,Qh="Overflow: input needs wider integers to process",Xh=RangeError,ec=qh($h.exec),tc=Math.floor,rc=String.fromCharCode,nc=qh("".charCodeAt),ac=qh([].join),oc=qh([].push),ic=qh("".replace),sc=qh("".split),hc=qh("".toLowerCase),cc=function(e){return e+22+75*(e<26)},lc=function(e,t,r){var n=0;for(e=r?tc(e/700):e>>1,e+=tc(e/t);e>455;)e=tc(e/35),n+=36;return tc(n+36*e/(e+38))},uc=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var a=nc(e,r++);if(a>=55296&&a<=56319&&r<n){var o=nc(e,r++);56320==(64512&o)?oc(t,((1023&a)<<10)+(1023&o)+65536):(oc(t,a),r--)}else oc(t,a)}return t}(e);var r,n,a=e.length,o=128,i=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&oc(t,rc(n));var h=t.length,c=h;for(h&&oc(t,"-");c<a;){var l=Vh;for(r=0;r<e.length;r++)(n=e[r])>=o&&n<l&&(l=n);var u=c+1;if(l-o>tc((Vh-i)/u))throw Xh(Qh);for(i+=(l-o)*u,o=l,r=0;r<e.length;r++){if((n=e[r])<o&&++i>Vh)throw Xh(Qh);if(n==o){for(var f=i,d=36;;){var g=d<=s?1:d>=s+26?26:d-s;if(f<g)break;var m=f-g,p=36-g;oc(t,rc(cc(g+m%p))),f=tc(m/p),d+=36}oc(t,rc(cc(f))),s=lc(i,u,c==h),i=0,c++}}i++,o++}return ac(t,"")},fc=TypeError,dc=function(e,t){if(e<t)throw fc("Not enough arguments");return e},gc=Qr,mc=Jh,pc=Math.floor,yc=function(e,t){var r=e.length,n=pc(r/2);return r<8?bc(e,t):vc(e,yc(mc(e,0,n),t),yc(mc(e,n),t),t)},bc=function(e,t){for(var r,n,a=e.length,o=1;o<a;){for(n=o,r=e[o];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==o++&&(e[n]=r)}return e},vc=function(e,t,r,n){for(var a=t.length,o=r.length,i=0,s=0;i<a||s<o;)e[i+s]=i<a&&s<o?n(t[i],r[s])<=0?t[i++]:r[s++]:i<a?t[i++]:r[s++];return e},Sc=ta,wc=i,Ac=d,Rc=C,Hc=c,Tc=Rs,Cc=Qr,Pc=function(e,t,r){for(var n in t)gc(e,n,t[n],r);return e},Ic=Qo,Oc=oi,Ec=Dr,Lc=Ms,Mc=W,kc=Ge,Bc=Ps,Dc=ca,Fc=Dt,Uc=V,xc=fa,jc=Ka,Nc=S,_c=Eh,Gc=Rh,Yc=dc,zc=yc,Kc=at("iterator"),Wc="URLSearchParams",Jc="URLSearchParamsIterator",qc=Ec.set,Vc=Ec.getterFor(Wc),Zc=Ec.getterFor(Jc),$c=Object.getOwnPropertyDescriptor,Qc=function(e){if(!Hc)return wc[e];var t=$c(wc,e);return t&&t.value},Xc=Qc("fetch"),el=Qc("Request"),tl=Qc("Headers"),rl=el&&el.prototype,nl=tl&&tl.prototype,al=wc.RegExp,ol=wc.TypeError,il=wc.decodeURIComponent,sl=wc.encodeURIComponent,hl=Rc("".charAt),cl=Rc([].join),ll=Rc([].push),ul=Rc("".replace),fl=Rc([].shift),dl=Rc([].splice),gl=Rc("".split),ml=Rc("".slice),pl=/\+/g,yl=Array(4),bl=function(e){return yl[e-1]||(yl[e-1]=al("((?:%[\\da-f]{2}){"+e+"})","gi"))},vl=function(e){try{return il(e)}catch(t){return e}},Sl=function(e){var t=ul(e,pl," "),r=4;try{return il(t)}catch(e){for(;r;)t=ul(t,bl(r--),vl);return t}},wl=/[!'()~]|%20/g,Al={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Rl=function(e){return Al[e]},Hl=function(e){return ul(sl(e),wl,Rl)},Tl=Oc((function(e,t){qc(this,{type:Jc,iterator:_c(Vc(e).entries),kind:t})}),"Iterator",(function(){var e=Zc(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),Cl=function(e){this.entries=[],this.url=null,void 0!==e&&(Uc(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===hl(e,0)?ml(e,1):e:xc(e)))};Cl.prototype={type:Wc,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,a,o,i,s,h=Gc(e);if(h)for(r=(t=_c(e,h)).next;!(n=Ac(r,t)).done;){if(o=(a=_c(Fc(n.value))).next,(i=Ac(o,a)).done||(s=Ac(o,a)).done||!Ac(o,a).done)throw ol("Expected sequence with length 2");ll(this.entries,{key:xc(i.value),value:xc(s.value)})}else for(var c in e)kc(e,c)&&ll(this.entries,{key:c,value:xc(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=gl(e,"&"),a=0;a<n.length;)(t=n[a++]).length&&(r=gl(t,"="),ll(this.entries,{key:Sl(fl(r)),value:Sl(cl(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],ll(r,Hl(e.key)+"="+Hl(e.value));return cl(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Pl=function(){Lc(this,Il);var e=arguments.length>0?arguments[0]:void 0;qc(this,new Cl(e))},Il=Pl.prototype;if(Pc(Il,{append:function(e,t){Yc(arguments.length,2);var r=Vc(this);ll(r.entries,{key:xc(e),value:xc(t)}),r.updateURL()},delete:function(e){Yc(arguments.length,1);for(var t=Vc(this),r=t.entries,n=xc(e),a=0;a<r.length;)r[a].key===n?dl(r,a,1):a++;t.updateURL()},get:function(e){Yc(arguments.length,1);for(var t=Vc(this).entries,r=xc(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){Yc(arguments.length,1);for(var t=Vc(this).entries,r=xc(e),n=[],a=0;a<t.length;a++)t[a].key===r&&ll(n,t[a].value);return n},has:function(e){Yc(arguments.length,1);for(var t=Vc(this).entries,r=xc(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){Yc(arguments.length,1);for(var r,n=Vc(this),a=n.entries,o=!1,i=xc(e),s=xc(t),h=0;h<a.length;h++)(r=a[h]).key===i&&(o?dl(a,h--,1):(o=!0,r.value=s));o||ll(a,{key:i,value:s}),n.updateURL()},sort:function(){var e=Vc(this);zc(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=Vc(this).entries,n=Bc(e,arguments.length>1?arguments[1]:void 0),a=0;a<r.length;)n((t=r[a++]).value,t.key,this)},keys:function(){return new Tl(this,"keys")},values:function(){return new Tl(this,"values")},entries:function(){return new Tl(this,"entries")}},{enumerable:!0}),Cc(Il,Kc,Il.entries,{name:"entries"}),Cc(Il,"toString",(function(){return Vc(this).serialize()}),{enumerable:!0}),Ic(Pl,Wc),Sc({global:!0,constructor:!0,forced:!Tc},{URLSearchParams:Pl}),!Tc&&Mc(tl)){var Ol=Rc(nl.has),El=Rc(nl.set),Ll=function(e){if(Uc(e)){var t,r=e.body;if(Dc(r)===Wc)return t=e.headers?new tl(e.headers):new tl,Ol(t,"content-type")||El(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),jc(e,{body:Nc(0,xc(r)),headers:Nc(0,t)})}return e};if(Mc(Xc)&&Sc({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Xc(e,arguments.length>1?Ll(arguments[1]):{})}}),Mc(el)){var Ml=function(e){return Lc(this,rl),new el(e,arguments.length>1?Ll(arguments[1]):{})};rl.constructor=Ml,Ml.prototype=rl,Sc({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Ml})}}var kl,Bl=ta,Dl=c,Fl=Rs,Ul=i,xl=Ps,jl=C,Nl=Qr,_l=function(e,t,r){return r.get&&Is(r.get,t,{getter:!0}),r.set&&Is(r.set,t,{setter:!0}),Os.f(e,t,r)},Gl=Ms,Yl=Ge,zl=Ks,Kl=function(e){var t=kh(e),r=Fh(this),n=arguments.length,a=n>1?arguments[1]:void 0,o=void 0!==a;o&&(a=Lh(a,n>2?arguments[2]:void 0));var i,s,h,c,l,u,f=Nh(t),d=0;if(!f||this===_h&&Dh(f))for(i=Uh(t),s=r?new this(i):_h(i);i>d;d++)u=o?a(t[d],d):t[d],xh(s,d,u);else for(l=(c=jh(t,f)).next,s=r?new this:[];!(h=Mh(l,c)).done;d++)u=o?Bh(c,a,[h.value,d],!0):h.value,xh(s,d,u);return s.length=d,s},Wl=Jh,Jl=fs.codeAt,ql=function(e){var t,r,n=[],a=sc(ic(hc(e),$h,"."),".");for(t=0;t<a.length;t++)r=a[t],oc(n,ec(Zh,r)?"xn--"+uc(r):r);return ac(n,".")},Vl=fa,Zl=Qo,$l=dc,Ql={URLSearchParams:Pl,getState:Vc},Xl=Dr,eu=Xl.set,tu=Xl.getterFor("URL"),ru=Ql.URLSearchParams,nu=Ql.getState,au=Ul.URL,ou=Ul.TypeError,iu=Ul.parseInt,su=Math.floor,hu=Math.pow,cu=jl("".charAt),lu=jl(/./.exec),uu=jl([].join),fu=jl(1..toString),du=jl([].pop),gu=jl([].push),mu=jl("".replace),pu=jl([].shift),yu=jl("".split),bu=jl("".slice),vu=jl("".toLowerCase),Su=jl([].unshift),wu="Invalid scheme",Au="Invalid host",Ru="Invalid port",Hu=/[a-z]/i,Tu=/[\d+-.a-z]/i,Cu=/\d/,Pu=/^0x/i,Iu=/^[0-7]+$/,Ou=/^\d+$/,Eu=/^[\da-f]+$/i,Lu=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Mu=/[\0\t\n\r #/:<>?@[\\\]^|]/,ku=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,Bu=/[\t\n\r]/g,Du=function(e){var t,r,n,a;if("number"==typeof e){for(t=[],r=0;r<4;r++)Su(t,e%256),e=su(e/256);return uu(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,a=0,o=0;o<8;o++)0!==e[o]?(a>r&&(t=n,r=a),n=null,a=0):(null===n&&(n=o),++a);return a>r&&(t=n,r=a),t}(e),r=0;r<8;r++)a&&0===e[r]||(a&&(a=!1),n===r?(t+=r?":":"::",a=!0):(t+=fu(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},Fu={},Uu=zl({},Fu,{" ":1,'"':1,"<":1,">":1,"`":1}),xu=zl({},Uu,{"#":1,"?":1,"{":1,"}":1}),ju=zl({},xu,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Nu=function(e,t){var r=Jl(e,0);return r>32&&r<127&&!Yl(t,e)?e:encodeURIComponent(e)},_u={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Gu=function(e,t){var r;return 2==e.length&&lu(Hu,cu(e,0))&&(":"==(r=cu(e,1))||!t&&"|"==r)},Yu=function(e){var t;return e.length>1&&Gu(bu(e,0,2))&&(2==e.length||"/"===(t=cu(e,2))||"\\"===t||"?"===t||"#"===t)},zu=function(e){return"."===e||"%2e"===vu(e)},Ku={},Wu={},Ju={},qu={},Vu={},Zu={},$u={},Qu={},Xu={},ef={},tf={},rf={},nf={},af={},of={},sf={},hf={},cf={},lf={},uf={},ff={},df=function(e,t,r){var n,a,o,i=Vl(e);if(t){if(a=this.parse(i))throw ou(a);this.searchParams=null}else{if(void 0!==r&&(n=new df(r,!0)),a=this.parse(i,null,n))throw ou(a);(o=nu(new ru)).bindURL(this),this.searchParams=o}};df.prototype={type:"URL",parse:function(e,t,r){var n,a,o,i,s,h=this,c=t||Ku,l=0,u="",f=!1,d=!1,g=!1;for(e=Vl(e),t||(h.scheme="",h.username="",h.password="",h.host=null,h.port=null,h.path=[],h.query=null,h.fragment=null,h.cannotBeABaseURL=!1,e=mu(e,ku,"")),e=mu(e,Bu,""),n=Kl(e);l<=n.length;){switch(a=n[l],c){case Ku:if(!a||!lu(Hu,a)){if(t)return wu;c=Ju;continue}u+=vu(a),c=Wu;break;case Wu:if(a&&(lu(Tu,a)||"+"==a||"-"==a||"."==a))u+=vu(a);else{if(":"!=a){if(t)return wu;u="",c=Ju,l=0;continue}if(t&&(h.isSpecial()!=Yl(_u,u)||"file"==u&&(h.includesCredentials()||null!==h.port)||"file"==h.scheme&&!h.host))return;if(h.scheme=u,t)return void(h.isSpecial()&&_u[h.scheme]==h.port&&(h.port=null));u="","file"==h.scheme?c=af:h.isSpecial()&&r&&r.scheme==h.scheme?c=qu:h.isSpecial()?c=Qu:"/"==n[l+1]?(c=Vu,l++):(h.cannotBeABaseURL=!0,gu(h.path,""),c=lf)}break;case Ju:if(!r||r.cannotBeABaseURL&&"#"!=a)return wu;if(r.cannotBeABaseURL&&"#"==a){h.scheme=r.scheme,h.path=Wl(r.path),h.query=r.query,h.fragment="",h.cannotBeABaseURL=!0,c=ff;break}c="file"==r.scheme?af:Zu;continue;case qu:if("/"!=a||"/"!=n[l+1]){c=Zu;continue}c=Xu,l++;break;case Vu:if("/"==a){c=ef;break}c=cf;continue;case Zu:if(h.scheme=r.scheme,a==kl)h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=Wl(r.path),h.query=r.query;else if("/"==a||"\\"==a&&h.isSpecial())c=$u;else if("?"==a)h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=Wl(r.path),h.query="",c=uf;else{if("#"!=a){h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=Wl(r.path),h.path.length--,c=cf;continue}h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,h.path=Wl(r.path),h.query=r.query,h.fragment="",c=ff}break;case $u:if(!h.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){h.username=r.username,h.password=r.password,h.host=r.host,h.port=r.port,c=cf;continue}c=ef}else c=Xu;break;case Qu:if(c=Xu,"/"!=a||"/"!=cu(u,l+1))continue;l++;break;case Xu:if("/"!=a&&"\\"!=a){c=ef;continue}break;case ef:if("@"==a){f&&(u="%40"+u),f=!0,o=Kl(u);for(var m=0;m<o.length;m++){var p=o[m];if(":"!=p||g){var y=Nu(p,ju);g?h.password+=y:h.username+=y}else g=!0}u=""}else if(a==kl||"/"==a||"?"==a||"#"==a||"\\"==a&&h.isSpecial()){if(f&&""==u)return"Invalid authority";l-=Kl(u).length+1,u="",c=tf}else u+=a;break;case tf:case rf:if(t&&"file"==h.scheme){c=sf;continue}if(":"!=a||d){if(a==kl||"/"==a||"?"==a||"#"==a||"\\"==a&&h.isSpecial()){if(h.isSpecial()&&""==u)return Au;if(t&&""==u&&(h.includesCredentials()||null!==h.port))return;if(i=h.parseHost(u))return i;if(u="",c=hf,t)return;continue}"["==a?d=!0:"]"==a&&(d=!1),u+=a}else{if(""==u)return Au;if(i=h.parseHost(u))return i;if(u="",c=nf,t==rf)return}break;case nf:if(!lu(Cu,a)){if(a==kl||"/"==a||"?"==a||"#"==a||"\\"==a&&h.isSpecial()||t){if(""!=u){var b=iu(u,10);if(b>65535)return Ru;h.port=h.isSpecial()&&b===_u[h.scheme]?null:b,u=""}if(t)return;c=hf;continue}return Ru}u+=a;break;case af:if(h.scheme="file","/"==a||"\\"==a)c=of;else{if(!r||"file"!=r.scheme){c=cf;continue}if(a==kl)h.host=r.host,h.path=Wl(r.path),h.query=r.query;else if("?"==a)h.host=r.host,h.path=Wl(r.path),h.query="",c=uf;else{if("#"!=a){Yu(uu(Wl(n,l),""))||(h.host=r.host,h.path=Wl(r.path),h.shortenPath()),c=cf;continue}h.host=r.host,h.path=Wl(r.path),h.query=r.query,h.fragment="",c=ff}}break;case of:if("/"==a||"\\"==a){c=sf;break}r&&"file"==r.scheme&&!Yu(uu(Wl(n,l),""))&&(Gu(r.path[0],!0)?gu(h.path,r.path[0]):h.host=r.host),c=cf;continue;case sf:if(a==kl||"/"==a||"\\"==a||"?"==a||"#"==a){if(!t&&Gu(u))c=cf;else if(""==u){if(h.host="",t)return;c=hf}else{if(i=h.parseHost(u))return i;if("localhost"==h.host&&(h.host=""),t)return;u="",c=hf}continue}u+=a;break;case hf:if(h.isSpecial()){if(c=cf,"/"!=a&&"\\"!=a)continue}else if(t||"?"!=a)if(t||"#"!=a){if(a!=kl&&(c=cf,"/"!=a))continue}else h.fragment="",c=ff;else h.query="",c=uf;break;case cf:if(a==kl||"/"==a||"\\"==a&&h.isSpecial()||!t&&("?"==a||"#"==a)){if(".."===(s=vu(s=u))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(h.shortenPath(),"/"==a||"\\"==a&&h.isSpecial()||gu(h.path,"")):zu(u)?"/"==a||"\\"==a&&h.isSpecial()||gu(h.path,""):("file"==h.scheme&&!h.path.length&&Gu(u)&&(h.host&&(h.host=""),u=cu(u,0)+":"),gu(h.path,u)),u="","file"==h.scheme&&(a==kl||"?"==a||"#"==a))for(;h.path.length>1&&""===h.path[0];)pu(h.path);"?"==a?(h.query="",c=uf):"#"==a&&(h.fragment="",c=ff)}else u+=Nu(a,xu);break;case lf:"?"==a?(h.query="",c=uf):"#"==a?(h.fragment="",c=ff):a!=kl&&(h.path[0]+=Nu(a,Fu));break;case uf:t||"#"!=a?a!=kl&&("'"==a&&h.isSpecial()?h.query+="%27":h.query+="#"==a?"%23":Nu(a,Fu)):(h.fragment="",c=ff);break;case ff:a!=kl&&(h.fragment+=Nu(a,Uu))}l++}},parseHost:function(e){var t,r,n;if("["==cu(e,0)){if("]"!=cu(e,e.length-1))return Au;if(t=function(e){var t,r,n,a,o,i,s,h=[0,0,0,0,0,0,0,0],c=0,l=null,u=0,f=function(){return cu(e,u)};if(":"==f()){if(":"!=cu(e,1))return;u+=2,l=++c}for(;f();){if(8==c)return;if(":"!=f()){for(t=r=0;r<4&&lu(Eu,f());)t=16*t+iu(f(),16),u++,r++;if("."==f()){if(0==r)return;if(u-=r,c>6)return;for(n=0;f();){if(a=null,n>0){if(!("."==f()&&n<4))return;u++}if(!lu(Cu,f()))return;for(;lu(Cu,f());){if(o=iu(f(),10),null===a)a=o;else{if(0==a)return;a=10*a+o}if(a>255)return;u++}h[c]=256*h[c]+a,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==f()){if(u++,!f())return}else if(f())return;h[c++]=t}else{if(null!==l)return;u++,l=++c}}if(null!==l)for(i=c-l,c=7;0!=c&&i>0;)s=h[c],h[c--]=h[l+i-1],h[l+--i]=s;else if(8!=c)return;return h}(bu(e,1,-1)),!t)return Au;this.host=t}else if(this.isSpecial()){if(e=ql(e),lu(Lu,e))return Au;if(t=function(e){var t,r,n,a,o,i,s,h=yu(e,".");if(h.length&&""==h[h.length-1]&&h.length--,(t=h.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(a=h[n]))return e;if(o=10,a.length>1&&"0"==cu(a,0)&&(o=lu(Pu,a)?16:8,a=bu(a,8==o?1:2)),""===a)i=0;else{if(!lu(10==o?Ou:8==o?Iu:Eu,a))return e;i=iu(a,o)}gu(r,i)}for(n=0;n<t;n++)if(i=r[n],n==t-1){if(i>=hu(256,5-t))return null}else if(i>255)return null;for(s=du(r),n=0;n<r.length;n++)s+=r[n]*hu(256,3-n);return s}(e),null===t)return Au;this.host=t}else{if(lu(Mu,e))return Au;for(t="",r=Kl(e),n=0;n<r.length;n++)t+=Nu(r[n],Fu);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return Yl(_u,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&Gu(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,a=e.host,o=e.port,i=e.path,s=e.query,h=e.fragment,c=t+":";return null!==a?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=Du(a),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?i[0]:i.length?"/"+uu(i,"/"):"",null!==s&&(c+="?"+s),null!==h&&(c+="#"+h),c},setHref:function(e){var t=this.parse(e);if(t)throw ou(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new gf(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+Du(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(Vl(e)+":",Ku)},getUsername:function(){return this.username},setUsername:function(e){var t=Kl(Vl(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=Nu(t[r],ju)}},getPassword:function(){return this.password},setPassword:function(e){var t=Kl(Vl(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=Nu(t[r],ju)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?Du(e):Du(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,tf)},getHostname:function(){var e=this.host;return null===e?"":Du(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,rf)},getPort:function(){var e=this.port;return null===e?"":Vl(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=Vl(e))?this.port=null:this.parse(e,nf))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+uu(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,hf))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=Vl(e))?this.query=null:("?"==cu(e,0)&&(e=bu(e,1)),this.query="",this.parse(e,uf)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=Vl(e))?("#"==cu(e,0)&&(e=bu(e,1)),this.fragment="",this.parse(e,ff)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var gf=function(e){var t=Gl(this,mf),r=$l(arguments.length,1)>1?arguments[1]:void 0,n=eu(t,new df(e,!1,r));Dl||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},mf=gf.prototype,pf=function(e,t){return{get:function(){return tu(this)[e]()},set:t&&function(e){return tu(this)[t](e)},configurable:!0,enumerable:!0}};if(Dl&&(_l(mf,"href",pf("serialize","setHref")),_l(mf,"origin",pf("getOrigin")),_l(mf,"protocol",pf("getProtocol","setProtocol")),_l(mf,"username",pf("getUsername","setUsername")),_l(mf,"password",pf("getPassword","setPassword")),_l(mf,"host",pf("getHost","setHost")),_l(mf,"hostname",pf("getHostname","setHostname")),_l(mf,"port",pf("getPort","setPort")),_l(mf,"pathname",pf("getPathname","setPathname")),_l(mf,"search",pf("getSearch","setSearch")),_l(mf,"searchParams",pf("getSearchParams")),_l(mf,"hash",pf("getHash","setHash"))),Nl(mf,"toJSON",(function(){return tu(this).serialize()}),{enumerable:!0}),Nl(mf,"toString",(function(){return tu(this).serialize()}),{enumerable:!0}),au){var yf=au.createObjectURL,bf=au.revokeObjectURL;yf&&Nl(gf,"createObjectURL",xl(yf,au)),bf&&Nl(gf,"revokeObjectURL",xl(bf,au))}Zl(gf,"URL"),Bl({global:!0,constructor:!0,forced:!Fl,sham:!Dl},{URL:gf});var vf,Sf=V,wf=E,Af=at("match"),Rf=function(e){var t;return Sf(e)&&(void 0!==(t=e[Af])?!!t:"RegExp"==wf(e))},Hf=TypeError,Tf=at("match"),Cf=ta,Pf=C,If=s.f,Of=un,Ef=fa,Lf=function(e){if(Rf(e))throw Hf("The method doesn't accept regular expressions");return e},Mf=j,kf=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Tf]=!1,"/./"[e](t)}catch(e){}}return!1},Bf=Pf("".startsWith),Df=Pf("".slice),Ff=Math.min,Uf=kf("startsWith");Cf({target:"String",proto:!0,forced:!!(Uf||(vf=If(String.prototype,"startsWith"),!vf||vf.writable))&&!Uf},{startsWith:function(e){var t=Ef(Mf(this));Lf(e);var r=Of(Ff(arguments.length>1?arguments[1]:void 0,t.length)),n=Ef(e);return Bf?Bf(t,n,r):Df(t,r,r+n.length)===n}});var xf=d,jf=Ge,Nf=ee,_f=ga,Gf=RegExp.prototype,Yf=rr.PROPER,zf=Qr,Kf=Dt,Wf=fa,Jf=h,qf=function(e){var t=e.flags;return void 0!==t||"flags"in Gf||jf(e,"flags")||!Nf(Gf,e)?t:xf(_f,e)},Vf="toString",Zf=RegExp.prototype.toString,$f=Jf((function(){return"/a/b"!=Zf.call({source:"a",flags:"b"})})),Qf=Yf&&Zf.name!=Vf;($f||Qf)&&zf(RegExp.prototype,Vf,(function(){var e=Kf(this);return"/"+Wf(e.source)+"/"+Wf(qf(e))}),{unsafe:!0});var Xf={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion",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","Family Day":"Yom HaMishpacha, a day to honor the family unit, as a whole, and its centrality to our lives","Herzl Day":"Commemorates the life and vision of Zionist leader Theodor Herzl","Jabotinsky Day":"Commemorates the life and vision of Zionist leader Ze'ev Jabotinsky","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 Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":'Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes "Adar Bet" or "Adar Sheni", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon',"Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","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 Shirah":"Shabbat of Song","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","Yitzhak Rabin Memorial Day":"Commemorates the life of Israeli Prime Minister Yitzhak Rabin","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. 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. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. 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 Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"},ed={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 td(e){if("object"==typeof e&&null!==e&&"string"==typeof e.name){const t={title:e.getName(),city:e.getShortName(),tzid:e.getTzid(),latitude:e.getLatitude(),longitude:e.getLongitude(),cc:e.getCountryCode(),country:ed[e.getCountryCode()]};return["admin1","asciiname","geo","zip","state","stateName","geonameid"].forEach((r=>{e[r]&&(t[r]=e[r])})),t}return{geo:"none"}}function rd(e){return e.toLowerCase().replace(/'/g,"").replace(/[^\w]/g,"-").replace(/-+/g,"-").replace(/^-/g,"").replace(/-$/g,"")}function nd(e){return e<10?"0"+e:""+e}function ad(e){return e<0?"-00"+ad(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:""+e}function od(e){return ad(e.getFullYear())+"-"+nd(e.getMonth()+1)+"-"+nd(e.getDate())}const id=[[t.flags.MAJOR_FAST,"holiday","major","fast"],[t.flags.CHANUKAH_CANDLES,"holiday","major"],[t.flags.DAF_YOMI,"dafyomi"],[t.flags.HEBREW_DATE,"hebdate"],[t.flags.MINOR_FAST,"holiday","fast"],[t.flags.MINOR_HOLIDAY,"holiday","minor"],[t.flags.MISHNA_YOMI,"mishnayomi"],[t.flags.MODERN_HOLIDAY,"holiday","modern"],[t.flags.MOLAD,"molad"],[t.flags.OMER_COUNT,"omer"],[t.flags.PARSHA_HASHAVUA,"parashat"],[t.flags.ROSH_CHODESH,"roshchodesh"],[t.flags.SHABBAT_MEVARCHIM,"mevarchim"],[t.flags.SPECIAL_SHABBAT,"holiday","shabbat"],[t.flags.USER_EVENT,"user"]];function sd(e){const t=e.getDesc();if("Fast begins"===t||"Fast ends"===t)return["zmanim","fast"];if(e.cholHaMoedDay)return["holiday","major","cholhamoed"];const r=e.getFlags();for(let e=0;e<id.length;e++){const t=id[e];if(r&t[0])return t.slice(1)}switch(t){case"Havdalah":return["havdalah"];case"Candle lighting":return["candles"];case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Erev Purim":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":case"Rosh Hashana LaBehemot":return["holiday","minor"];default:return["holiday","major"]}}function hd(e,t){let r="Hebcal";const n=t.location;if(t.yahrzeit)r+=" Yahrzeits and Anniversaries";else if(n&&n.name){const e=n.name.indexOf(",");r+=" "+(-1==e?n.name:n.name.substring(0,e))}else t.il?r+=" Israel":r+=" Diaspora";if("1"==t.subscribe)return r;if(t.year&&(t.isHebrewYear||0==e.length))r+=" "+t.year;else if(e.length){const t=e[0].getDate().greg(),n=e[e.length-1].getDate().greg();if(t.getFullYear()!=n.getFullYear())r+=" "+t.getFullYear()+"-"+n.getFullYear();else if(t.getMonth()==n.getMonth()){r+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(t)+" "+t.getFullYear()}else r+=" "+t.getFullYear()}return r}function cd(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=Xf[e.getDesc()]||Xf[e.basename()]||"";if(t&&r){const e=r.indexOf(".");if(-1!=e)return r.substring(0,e)}return r}const ld=t.flags.DAF_YOMI|t.flags.OMER_COUNT|t.flags.SHABBAT_MEVARCHIM|t.flags.MOLAD|t.flags.USER_EVENT|t.flags.HEBREW_DATE;function ud(e,n){const a=e.getFlags();if(a&ld)return"";const o=a&t.flags.PARSHA_HASHAVUA?r.getLeyningForParshaHaShavua(e,n):r.getLeyningForHoliday(e,n);let i="";return o&&(o.summary||o.haftara)&&(o.summary&&(i+="Torah: ".concat(o.summary)),o.summary&&o.haftara&&(i+="\n"),o.haftara&&(i+="Haftarah: "+o.haftara,o.reason&&o.reason.haftara&&(i+=" | "+o.reason.haftara))),o&&o.sephardic&&(i+="\nHaftarah for Sephardim: "+o.sephardic),i}function fd(e,t,r,n,a){const o=new URL(e),i="www.hebcal.com"===o.host;if(i){t&&o.searchParams.set("i","on");const e=o.pathname,i=e.startsWith("/holidays/"),s=e.startsWith("/sedrot/"),h=e.startsWith("/omer/");if(i||s||h)return o.host="hebcal.com",o.pathname=i?"/h/"+e.substring(10):s?"/s/"+e.substring(8):"/o/"+e.substring(6),a&&(a.startsWith("ical-")||a.startsWith("pdf-"))||(r&&o.searchParams.set("us",r),n&&o.searchParams.set("um",n)),a&&o.searchParams.set("uc",a),o.toString()}return(r=i?r:"hebcal.com")&&o.searchParams.set("utm_source",r),n&&o.searchParams.set("utm_medium",n),a&&o.searchParams.set("utm_campaign",a),o.toString()}function dd(e){if(void 0!==e.eventTime)return!0;const r=e.getFlags();if(r&t.flags.HEBREW_DATE){return 1!==e.getDate().getDate()}return!!(r&t.flags.DAF_YOMI)||(!!(r&t.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(r&t.flags.SHABBAT_MEVARCHIM))}const gd='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"',md={dafyomi:"Daf Yomi",hebdate:"Hebrew Date",holiday:"Jewish Holidays",mevarchim:null,molad:null,omer:null,parashat:"Torah Reading",roshchodesh:"Jewish Holidays",user:"Personal"};function pd(e,r){const n=e.getDate().greg(),a=n.getDate(),o=n.getMonth()+1,i=String(n.getFullYear()).padStart(4,"0"),s=r.euro?'"'.concat(a,"/").concat(o,"/").concat(i,'"'):'"'.concat(o,"/").concat(a,"/").concat(i,'"');let h="",c="",l="",u='"true"';const f=Boolean(e.eventTime);let d=dd(e)?e.renderBrief(r.locale):e.render(r.locale);if(e.eventTime){const n=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr," PM",r);c=h='"'.concat(n,'"'),l=s,u='"false"'}let g="Jewish Holidays";const m=e.getFlags();if(f&&r.location&&r.location.name){const e=r.location.name,t=e.indexOf(",");g=-1===t?e:e.substring(0,t)}else if(m&t.flags.DAF_YOMI){const e=d.indexOf(": ");-1!=e&&(g=d.substring(0,e),d=d.substring(e+2))}else{const t=md[sd(e)[0]];t&&(g=t)}if(d=d.replace(/,/g,"").replace(/"/g,"''"),r.appendHebrewToSubject){const t=e.renderBrief("he");t&&(d+=" / ".concat(t))}let p=e.memo||cd(e,!0);p||void 0===e.linkedEvent||(p=e.linkedEvent.render(r.locale));const y=p.replace(/,/g,";").replace(/"/g,"''").replace(/\n/g," / "),b=f||m&t.flags.CHAG?4:3;return'"'.concat(d,'",').concat(s,",").concat(h,",").concat(l,",").concat(c,",").concat(u,',"').concat(y,'","').concat(b,'","').concat(g,'"')}function yd(e){return od(e.getDate().greg())}function bd(e,a){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=Boolean(e.eventTime),s=e.getDate(),h=s.greg(),c="object"==typeof a.location?a.location.getTzid():"UTC",l=i?t.Zmanim.formatISOWithTimeZone(c,e.eventTime):od(h),u=sd(e),f=e.getFlags();let d=dd(e)?e.renderBrief(a.locale):e.render(a.locale);const g=e.getDesc(),m="Havdalah"===g||"Candle lighting"===g;if(m){d+=": "+t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",a)}const p={title:d,date:l};i||(p.hdate=s.toString()),p.category=u[0],u.length>1&&(p.subcat=u[1]),"holiday"===u[0]&&f&t.flags.CHAG&&(p.yomtov=!0),d!=g&&(p.title_orig=g);const y=e.renderBrief("he");if(y&&(p.hebrew=t.Locale.hebrewStripNikkud(y)),!m){if(o){const o=a.il,i=f===t.flags.PARSHA_HASHAVUA,h=i?r.getLeyningForParshaHaShavua(e,o):r.getLeyningForHoliday(e,o);if(h){p.leyning=Sd(h);const t=s.getFullYear();if(i&&!o&&t>=5745){const t=n.getTriennialForParshaHaShavua(e);t&&(p.leyning.triennial=vd({},t.aliyot))}}}const i=e.url();if(i){const e=a.utmSource||"js",t=a.utmMedium||"api",r=a.utmCampaign;p.link=fd(i,a.il,e,t,r)}}if(f&t.flags.OMER_COUNT&&(p.omer={count:{he:e.getTodayIs("he"),en:e.getTodayIs("en")},sefira:{he:e.sefira("he"),translit:e.sefira("translit"),en:e.sefira("en")}}),f&t.flags.HEBREW_DATE){const e=s.getFullYear(),r=s.getMonthName(),n=s.getDate();p.heDateParts={y:t.gematriya(e),m:t.Locale.gettext(r,"he-x-NoNikud"),d:t.gematriya(n)}}const b=e.memo||Xf[e.basename()];return b?p.memo=b:void 0!==e.linkedEvent&&(p.memo=e.linkedEvent.render(a.locale)),a.includeEvent&&(p.ev=e),p}function vd(e,t){return Object.keys(t).forEach((n=>{const a=t[n];if(void 0!==a){e["M"==n?"maftir":n]=r.formatAliyahWithBook(a)}})),e}function Sd(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&&vd(t,e.fullkriyah),e.reason&&(["7","8","M"].forEach((r=>{if(e.reason[r]){t["M"==r?"maftir":r]+=" | "+e.reason[r]}})),e.reason.haftara&&(t.haftarah+=" | "+e.reason.haftara)),t}const wd={s:"en",a:"en","he-x-NoNikud":"he",h:"he",ah:"en",sh:"en"};function Ad(e,r){let n=e.render();const a=e.getDate().greg(),o=function(e,t,r,n){if(t){const t=e.eventTime;return t?t.toUTCString():r.toUTCString().replace(/ \S+ GMT$/," 00:00:00 GMT")}return n}(e,r.evPubDate,a,r.lastBuildDate),i=r.location,s=!!i&&i.getIsrael(),h=i?i.getTzid():"UTC",c=r&&r.utmSource||"shabbat1c",l=r&&r.utmMedium||"rss",u=function(e,r,n,a,o,i){let s,h;const c=e.eventTime||e.getDate().greg(),l=t.Zmanim.formatISOWithTimeZone(n,c),u=l.substring(0,l.indexOf("T")),f=u.replace(/-/g,""),d=rd(e.getDesc()),g="".concat(f,"-").concat(d),m=e.url();if(m)s=fd(m,r,o,i).replace(/&/g,"&"),h="".concat(m,"#").concat(g);else{const e="".concat(a,"&dt=").concat(u),t=fd(e,r,o,i).replace(/&/g,"&");h=e.replace(/&/g,"&")+"#".concat(g),s="".concat(t,"#").concat(g)}return[s,h]}(e,s,h,r.mainUrl,c,l),f=u[0],d=u[1],g=sd(e)[0],m=e.getDesc();let p;if("Havdalah"===m||"Candle lighting"===m){const r=n.indexOf(": ");if(-1!=r){const a={location:i,il:s,locale:t.Locale.getLocaleName()},o=t.HebrewCalendar.reformatTimeStr(e.eventTimeStr,"pm",a);n=n.substring(0,r)+": "+o}}else p=e.getFlags()&t.flags.PARSHA_HASHAVUA?ud(e,s):e.memo||Xf[e.basename()];const y=r.dayFormat,b=p||y.format(a),v="candles"==g?"<geo:lat>".concat(i.getLatitude(),"</geo:lat>\n<geo:long>").concat(i.getLongitude(),"</geo:long>\n"):"";return"<item>\n<title>".concat(n,"</title>\n<link>").concat(f,'</link>\n<guid isPermaLink="false">').concat(d,"</guid>\n<description>").concat(b,"</description>\n<category>").concat(g,"</category>\n<pubDate>").concat(o,"</pubDate>\n").concat(v,"</item>\n")}return e.appendIsraelAndTracking=fd,e.countryNames=ed,e.eventToClassicApiObject=bd,e.eventToCsv=pd,e.eventToFullCalendar=function(e,r,n){const a=sd(e),o=e.getFlags();"holiday"==a[0]&&o&t.flags.CHAG&&a.push("yomtov");const i=Boolean(e.eventTime),s={title:dd(e)?e.renderBrief():e.render(),start:i?t.Zmanim.formatISOWithTimeZone(r,e.eventTime):od(e.getDate().greg()),allDay:!i,className:a.join(" ")},h=e.renderBrief("he");h&&(s.hebrew=t.Locale.hebrewStripNikkud(h));const c=e.url();c&&(s.url=fd(c,n,"js","fc"));const l=e.getDesc();if(!("Havdalah"===l||"Candle lighting"===l)){const r=o&t.flags.PARSHA_HASHAVUA?ud(e,n):e.memo||Xf[e.basename()];r?s.description=r:void 0!==e.linkedEvent&&(s.description=e.linkedEvent.render())}return s},e.eventToRssItem2=Ad,e.eventsToClassicApi=function(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const n={title:hd(e,t),date:(new Date).toISOString()};return n.location=td(t.location),e.length&&(n.range={start:yd(e[0]),end:yd(e[e.length-1])}),n.items=e.map((e=>bd(e,t,r))),n},e.eventsToCsv=function(e,t){return[gd].concat(e.map((e=>pd(e,t)))).join("\r\n")+"\r\n"},e.eventsToRss2=function(e,t){t.dayFormat=new Intl.DateTimeFormat("en-US",{weekday:"long",day:"2-digit",month:"long",year:"numeric"});const r=t.location,n=t.mainUrl,a=t.buildDate=t.buildDate||new Date,o=a.getFullYear(),i=t.lastBuildDate=a.toUTCString(),s=t.title||hd(e,t),h=t.description||s,c=t.utmSource||"shabbat1c",l=t.utmMedium||"rss",u=fd(n,r&&r.getIsrael(),c,l,t.utmCampaign).replace(/&/g,"&"),f=t.selfUrl.replace(/&/g,"&"),d=t.lang||wd[t.locale]||t.locale||"en-US";let g='<?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(s,"</title>\n<link>").concat(u,'</link>\n<atom:link href="').concat(f,'" rel="self" type="application/rss+xml" />\n<description>').concat(h,"</description>\n<language>").concat(d,"</language>\n<copyright>Copyright (c) ").concat(o," Michael J. Radwin. All rights reserved.</copyright>\n<lastBuildDate>").concat(i,"</lastBuildDate>\n");return e.forEach((e=>{g+=Ad(e,t)})),g+="</channel>\n</rss>\n",g},e.getCalendarTitle=hd,e.getDownloadFilename=function(e){let r="hebcal";if(e.year)r+="_"+e.year,e.isHebrewYear&&(r+="h"),e.month&&(r+="_"+e.month);else if("object"==typeof e.start&&"object"==typeof e.end){const n=new t.HDate(e.start),a=new t.HDate(e.end),o=n.greg().getFullYear(),i=a.greg().getFullYear();r+=o===i?"_"+o:"_"+o+"_"+i}if("object"==typeof e.location){const t=e.location,n=t.zip||t.asciiname||t.getShortName();n&&(r+="_"+rd(n).replace(/[-]/g,"_"))}return r},e.getEventCategories=sd,e.getHolidayDescription=cd,e.holidayDescription=Xf,e.locationToPlainObj=td,e.makeAnchor=rd,e.makeTorahMemoText=ud,e.pad2=nd,e.pad4=ad,e.renderTitleWithoutTime=function(e){return void 0===e.eventTime?e.render():e.renderBrief()},e.shouldRenderBrief=dd,e.toISOString=od,Object.defineProperty(e,"__esModule",{value:!0}),e}({},hebcal,hebcal__leyning,hebcal__triennial);
|
package/dist/fullcalendar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v4.3.
|
|
1
|
+
/*! @hebcal/rest-api v4.3.1 */
|
|
2
2
|
var hebcalFullCalendar = (function (exports, core, leyning) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -43,6 +43,8 @@ function pad4(number) {
|
|
|
43
43
|
function toISOString(d) {
|
|
44
44
|
return pad4(d.getFullYear()) + '-' + pad2(d.getMonth() + 1) + '-' + pad2(d.getDate());
|
|
45
45
|
}
|
|
46
|
+
var flagToCategory = [[core.flags.MAJOR_FAST, 'holiday', 'major', 'fast'], [core.flags.CHANUKAH_CANDLES, 'holiday', 'major'], [core.flags.DAF_YOMI, 'dafyomi'], [core.flags.HEBREW_DATE, 'hebdate'], [core.flags.MINOR_FAST, 'holiday', 'fast'], [core.flags.MINOR_HOLIDAY, 'holiday', 'minor'], [core.flags.MISHNA_YOMI, 'mishnayomi'], [core.flags.MODERN_HOLIDAY, 'holiday', 'modern'], [core.flags.MOLAD, 'molad'], [core.flags.OMER_COUNT, 'omer'], [core.flags.PARSHA_HASHAVUA, 'parashat'], // backwards-compat
|
|
47
|
+
[core.flags.ROSH_CHODESH, 'roshchodesh'], [core.flags.SHABBAT_MEVARCHIM, 'mevarchim'], [core.flags.SPECIAL_SHABBAT, 'holiday', 'shabbat'], [core.flags.USER_EVENT, 'user']];
|
|
46
48
|
/**
|
|
47
49
|
* Returns a category and subcategory name
|
|
48
50
|
* @param {Event} ev
|
|
@@ -56,54 +58,18 @@ function getEventCategories(ev) {
|
|
|
56
58
|
return ['zmanim', 'fast'];
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
case core.flags.HEBREW_DATE:
|
|
64
|
-
return ['hebdate'];
|
|
65
|
-
|
|
66
|
-
case core.flags.PARSHA_HASHAVUA:
|
|
67
|
-
return ['parashat'];
|
|
68
|
-
// backwards-compat
|
|
69
|
-
|
|
70
|
-
case core.flags.DAF_YOMI:
|
|
71
|
-
return ['dafyomi'];
|
|
72
|
-
|
|
73
|
-
case core.flags.ROSH_CHODESH:
|
|
74
|
-
return ['roshchodesh'];
|
|
75
|
-
|
|
76
|
-
case core.flags.SPECIAL_SHABBAT:
|
|
77
|
-
return ['holiday', 'shabbat'];
|
|
78
|
-
|
|
79
|
-
case core.flags.MINOR_FAST:
|
|
80
|
-
return ['holiday', 'fast'];
|
|
81
|
-
|
|
82
|
-
case core.flags.MAJOR_FAST:
|
|
83
|
-
return ['holiday', 'fast', 'major'];
|
|
84
|
-
|
|
85
|
-
case core.flags.MODERN_HOLIDAY:
|
|
86
|
-
return ['holiday', 'modern'];
|
|
87
|
-
|
|
88
|
-
case core.flags.SHABBAT_MEVARCHIM:
|
|
89
|
-
return ['mevarchim'];
|
|
90
|
-
|
|
91
|
-
case core.flags.MOLAD:
|
|
92
|
-
return ['molad'];
|
|
93
|
-
|
|
94
|
-
case core.flags.USER_EVENT:
|
|
95
|
-
return ['user'];
|
|
61
|
+
if (ev.cholHaMoedDay) {
|
|
62
|
+
return ['holiday', 'major', 'cholhamoed'];
|
|
63
|
+
}
|
|
96
64
|
|
|
97
|
-
|
|
98
|
-
return ['holiday', 'minor'];
|
|
65
|
+
var mask = ev.getFlags();
|
|
99
66
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
// fall through to string-based category
|
|
103
|
-
}
|
|
67
|
+
for (var i = 0; i < flagToCategory.length; i++) {
|
|
68
|
+
var attrs = flagToCategory[i];
|
|
104
69
|
|
|
105
|
-
|
|
106
|
-
|
|
70
|
+
if (mask & attrs[0]) {
|
|
71
|
+
return attrs.slice(1);
|
|
72
|
+
}
|
|
107
73
|
}
|
|
108
74
|
|
|
109
75
|
switch (desc) {
|
|
@@ -124,9 +90,6 @@ function getEventCategories(ev) {
|
|
|
124
90
|
case 'Rosh Hashana LaBehemot':
|
|
125
91
|
return ['holiday', 'minor'];
|
|
126
92
|
|
|
127
|
-
case 'Erev Tish\'a B\'Av':
|
|
128
|
-
return ['holiday', 'fast', 'major'];
|
|
129
|
-
|
|
130
93
|
default:
|
|
131
94
|
return ['holiday', 'major'];
|
|
132
95
|
}
|
package/dist/fullcalendar.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v4.3.
|
|
2
|
-
var hebcalFullCalendar=function(e,a,o){"use strict";var r={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion",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","Family Day":"Yom HaMishpacha, a day to honor the family unit, as a whole, and its centrality to our lives","Herzl Day":"Commemorates the life and vision of Zionist leader Theodor Herzl","Jabotinsky Day":"Commemorates the life and vision of Zionist leader Ze'ev Jabotinsky","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 Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":'Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes "Adar Bet" or "Adar Sheni", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon',"Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","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 Shirah":"Shabbat of Song","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","Yitzhak Rabin Memorial Day":"Commemorates the life of Israeli Prime Minister Yitzhak Rabin","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. 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. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. 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 Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};function t(e){return e<10?"0"+e:""+e}function h(e){return e<0?"-00"+h(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:""+e}function s(e){return h(e.getFullYear())+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())}var n=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.HEBREW_DATE;return e.eventToFullCalendar=function(e,t,h){var i=function(e){var o=e.getDesc();if("Fast begins"===o||"Fast ends"===o)return["zmanim","fast"];switch(e.getFlags()){case a.flags.OMER_COUNT:return["omer"];case a.flags.HEBREW_DATE:return["hebdate"];case a.flags.PARSHA_HASHAVUA:return["parashat"];case a.flags.DAF_YOMI:return["dafyomi"];case a.flags.ROSH_CHODESH:return["roshchodesh"];case a.flags.SPECIAL_SHABBAT:return["holiday","shabbat"];case a.flags.MINOR_FAST:return["holiday","fast"];case a.flags.MAJOR_FAST:return["holiday","fast","major"];case a.flags.MODERN_HOLIDAY:return["holiday","modern"];case a.flags.SHABBAT_MEVARCHIM:return["mevarchim"];case a.flags.MOLAD:return["molad"];case a.flags.USER_EVENT:return["user"];case a.flags.MINOR_HOLIDAY:return["holiday","minor"];case a.flags.MISHNA_YOMI:return["mishnayomi"]}if(e.cholHaMoedDay)return["holiday","major","cholhamoed"];switch(o){case"Havdalah":return["havdalah"];case"Candle lighting":return["candles"];case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Erev Purim":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":case"Rosh Hashana LaBehemot":return["holiday","minor"];case"Erev Tish'a B'Av":return["holiday","fast","major"];default:return["holiday","major"]}}(e),d=e.getFlags();"holiday"==i[0]&&d&a.flags.CHAG&&i.push("yomtov");var l=Boolean(e.eventTime),m=function(e){if(void 0!==e.eventTime)return!0;var o=e.getFlags();return o&a.flags.HEBREW_DATE?1!==e.getDate().getDate():!!(o&a.flags.DAF_YOMI)||!!(o&a.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(o&a.flags.SHABBAT_MEVARCHIM)}(e)?e.renderBrief():e.render(),f={title:m,start:l?a.Zmanim.formatISOWithTimeZone(t,e.eventTime):s(e.getDate().greg()),allDay:!l,className:i.join(" ")},c=e.renderBrief("he");c&&(f.hebrew=a.Locale.hebrewStripNikkud(c));var b=e.url();b&&(f.url=function(e,a,o,r,t){var h=new URL(e),s="www.hebcal.com"===h.host;if(s){a&&h.searchParams.set("i","on");var n=h.pathname,i=n.startsWith("/holidays/"),d=n.startsWith("/sedrot/"),l=n.startsWith("/omer/");if(i||d||l)return h.host="hebcal.com",h.pathname=i?"/h/"+n.substring(10):d?"/s/"+n.substring(8):"/o/"+n.substring(6),t&&(t.startsWith("ical-")||t.startsWith("pdf-"))||(o&&h.searchParams.set("us",o),r&&h.searchParams.set("um",r)),t&&h.searchParams.set("uc",t),h.toString()}return(o=s?o:"hebcal.com")&&h.searchParams.set("utm_source",o),r&&h.searchParams.set("utm_medium",r),t&&h.searchParams.set("utm_campaign",t),h.toString()}(b,h,"js","fc"));var y=e.getDesc();if(!("Havdalah"===y||"Candle lighting"===y)){var u=d&a.flags.PARSHA_HASHAVUA?function(e,r){var t=e.getFlags();if(t&n)return"";var h=t&a.flags.PARSHA_HASHAVUA?o.getLeyningForParshaHaShavua(e,r):o.getLeyningForHoliday(e,r),s="";return h&&(h.summary||h.haftara)&&(h.summary&&(s+="Torah: ".concat(h.summary)),h.summary&&h.haftara&&(s+="\n"),h.haftara&&(s+="Haftarah: "+h.haftara,h.reason&&h.reason.haftara&&(s+=" | "+h.reason.haftara))),h&&h.sephardic&&(s+="\nHaftarah for Sephardim: "+h.sephardic),s}(e,h):e.memo||r[e.basename()];u?f.description=u:void 0!==e.linkedEvent&&(f.description=e.linkedEvent.render())}return f},Object.defineProperty(e,"__esModule",{value:!0}),e}({},hebcal,hebcal__leyning);
|
|
1
|
+
/*! @hebcal/rest-api v4.3.1 */
|
|
2
|
+
var hebcalFullCalendar=function(e,a,o){"use strict";var t={"Asara B'Tevet":"Fast commemorating the siege of Jerusalem","Ben-Gurion Day":"Commemorates the life and vision of Israel's first Prime Minister David Ben-Gurion",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","Family Day":"Yom HaMishpacha, a day to honor the family unit, as a whole, and its centrality to our lives","Herzl Day":"Commemorates the life and vision of Zionist leader Theodor Herzl","Jabotinsky Day":"Commemorates the life and vision of Zionist leader Ze'ev Jabotinsky","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 Nisan":"Start of month of Nisan on the Hebrew calendar. נִיסָן (transliterated Nisan or Nissan) is the 1st month of the Hebrew year, has 30 days, and corresponds to March or April on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Iyyar":"Start of month of Iyyar on the Hebrew calendar. אִיָיר (transliterated Iyyar or Iyar) is the 2nd month of the Hebrew year, has 29 days, and corresponds to April or May on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sivan":"Start of month of Sivan on the Hebrew calendar. Sivan (סִיוָן) is the 3rd month of the Hebrew year, has 30 days, and corresponds to May or June on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tamuz":"Start of month of Tamuz on the Hebrew calendar. תַּמּוּז (transliterated Tamuz or Tammuz) is the 4th month of the Hebrew year, has 29 days, and corresponds to June or July on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Av":"Start of month of Av on the Hebrew calendar. Av (אָב) is the 5th month of the Hebrew year, has 30 days, and corresponds to July or August on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Elul":"Start of month of Elul on the Hebrew calendar. Elul (אֱלוּל) is the 6th month of the Hebrew year, has 29 days, and corresponds to August or September on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Cheshvan":"Start of month of Cheshvan on the Hebrew calendar. חֶשְׁוָן (transliterated Cheshvan or Heshvan) is the 8th month of the Hebrew year, has 29 or 30 days, and corresponds to October or November on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Kislev":"Start of month of Kislev on the Hebrew calendar. Kislev (כִּסְלֵו) is the 9th month of the Hebrew year, has 30 or 29 days, and corresponds to November or December on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Tevet":"Start of month of Tevet on the Hebrew calendar. Tevet (טֵבֵת) is the 10th month of the Hebrew year, has 29 days, and corresponds to December or January on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Sh'vat":"Start of month of Sh'vat on the Hebrew calendar. שְׁבָט (transliterated Sh'vat or Shevat) is the 11th month of the Hebrew year, has 30 days, and corresponds to January or February on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar":"Start of month of Adar on the Hebrew calendar. Adar (אַדָר) is the 12th month of the Hebrew year, has 29 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar I":"Start of month of Adar I (on leap years) on the Hebrew calendar. Adar I (אַדָר א׳) is the 12th month of the Hebrew year, occurs only on leap years, has 30 days, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon","Rosh Chodesh Adar II":'Start of month of Adar II (on leap years) on the Hebrew calendar. Adar II (אַדָר ב׳), sometimes "Adar Bet" or "Adar Sheni", is the 13th month of the Hebrew year, has 29 days, occurs only on leap years, and corresponds to February or March on the Gregorian calendar. רֹאשׁ חוֹדֶשׁ, transliterated Rosh Chodesh or Rosh Hodesh, is a minor holiday that occurs at the beginning of every month in the Hebrew calendar. It is marked by the birth of a new moon',"Rosh Hashana":"The Jewish New Year. Also spelled Rosh Hashanah","Rosh Hashana LaBehemot":"New Year for Tithing Animals","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 Shirah":"Shabbat of Song","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","Yitzhak Rabin Memorial Day":"Commemorates the life of Israeli Prime Minister Yitzhak Rabin","Yom HaAliyah":"Recognizes Aliyah, immigration to the Jewish State of Israel","Yom HaAliyah School Observance":"Aliyah Day observed in Israeli schools","Yom HaAtzma'ut":"Israeli Independence Day. Commemorates the declaration of independence of Israel in 1948. 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. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. 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 Kippur Katan":"Minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh","Yom Yerushalayim":"Jerusalem Day. Commemorates the re-unification of Jerusalem in 1967"};function r(e){return e<10?"0"+e:""+e}function h(e){return e<0?"-00"+h(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:""+e}function s(e){return h(e.getFullYear())+"-"+r(e.getMonth()+1)+"-"+r(e.getDate())}var n=[[a.flags.MAJOR_FAST,"holiday","major","fast"],[a.flags.CHANUKAH_CANDLES,"holiday","major"],[a.flags.DAF_YOMI,"dafyomi"],[a.flags.HEBREW_DATE,"hebdate"],[a.flags.MINOR_FAST,"holiday","fast"],[a.flags.MINOR_HOLIDAY,"holiday","minor"],[a.flags.MISHNA_YOMI,"mishnayomi"],[a.flags.MODERN_HOLIDAY,"holiday","modern"],[a.flags.MOLAD,"molad"],[a.flags.OMER_COUNT,"omer"],[a.flags.PARSHA_HASHAVUA,"parashat"],[a.flags.ROSH_CHODESH,"roshchodesh"],[a.flags.SHABBAT_MEVARCHIM,"mevarchim"],[a.flags.SPECIAL_SHABBAT,"holiday","shabbat"],[a.flags.USER_EVENT,"user"]];var i=a.flags.DAF_YOMI|a.flags.OMER_COUNT|a.flags.SHABBAT_MEVARCHIM|a.flags.MOLAD|a.flags.USER_EVENT|a.flags.HEBREW_DATE;return e.eventToFullCalendar=function(e,r,h){var d=function(e){var a=e.getDesc();if("Fast begins"===a||"Fast ends"===a)return["zmanim","fast"];if(e.cholHaMoedDay)return["holiday","major","cholhamoed"];for(var o=e.getFlags(),t=0;t<n.length;t++){var r=n[t];if(o&r[0])return r.slice(1)}switch(a){case"Havdalah":return["havdalah"];case"Candle lighting":return["candles"];case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Erev Purim":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":case"Rosh Hashana LaBehemot":return["holiday","minor"];default:return["holiday","major"]}}(e),l=e.getFlags();"holiday"==d[0]&&l&a.flags.CHAG&&d.push("yomtov");var m=Boolean(e.eventTime),f=function(e){if(void 0!==e.eventTime)return!0;var o=e.getFlags();return o&a.flags.HEBREW_DATE?1!==e.getDate().getDate():!!(o&a.flags.DAF_YOMI)||!!(o&a.flags.MINOR_FAST&&"Yom Kippur Katan"===e.getDesc().substring(0,16))||!!(o&a.flags.SHABBAT_MEVARCHIM)}(e)?e.renderBrief():e.render(),c={title:f,start:m?a.Zmanim.formatISOWithTimeZone(r,e.eventTime):s(e.getDate().greg()),allDay:!m,className:d.join(" ")},b=e.renderBrief("he");b&&(c.hebrew=a.Locale.hebrewStripNikkud(b));var y=e.url();y&&(c.url=function(e,a,o,t,r){var h=new URL(e),s="www.hebcal.com"===h.host;if(s){a&&h.searchParams.set("i","on");var n=h.pathname,i=n.startsWith("/holidays/"),d=n.startsWith("/sedrot/"),l=n.startsWith("/omer/");if(i||d||l)return h.host="hebcal.com",h.pathname=i?"/h/"+n.substring(10):d?"/s/"+n.substring(8):"/o/"+n.substring(6),r&&(r.startsWith("ical-")||r.startsWith("pdf-"))||(o&&h.searchParams.set("us",o),t&&h.searchParams.set("um",t)),r&&h.searchParams.set("uc",r),h.toString()}return(o=s?o:"hebcal.com")&&h.searchParams.set("utm_source",o),t&&h.searchParams.set("utm_medium",t),r&&h.searchParams.set("utm_campaign",r),h.toString()}(y,h,"js","fc"));var u=e.getDesc();if(!("Havdalah"===u||"Candle lighting"===u)){var g=l&a.flags.PARSHA_HASHAVUA?function(e,t){var r=e.getFlags();if(r&i)return"";var h=r&a.flags.PARSHA_HASHAVUA?o.getLeyningForParshaHaShavua(e,t):o.getLeyningForHoliday(e,t),s="";return h&&(h.summary||h.haftara)&&(h.summary&&(s+="Torah: ".concat(h.summary)),h.summary&&h.haftara&&(s+="\n"),h.haftara&&(s+="Haftarah: "+h.haftara,h.reason&&h.reason.haftara&&(s+=" | "+h.reason.haftara))),h&&h.sephardic&&(s+="\nHaftarah for Sephardim: "+h.sephardic),s}(e,h):e.memo||t[e.basename()];g?c.description=g:void 0!==e.linkedEvent&&(c.description=e.linkedEvent.render())}return c},Object.defineProperty(e,"__esModule",{value:!0}),e}({},hebcal,hebcal__leyning);
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v4.3.
|
|
1
|
+
/*! @hebcal/rest-api v4.3.1 */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
@@ -132,6 +132,8 @@ function pad4(number) {
|
|
|
132
132
|
function toISOString(d) {
|
|
133
133
|
return pad4(d.getFullYear()) + '-' + pad2(d.getMonth() + 1) + '-' + pad2(d.getDate());
|
|
134
134
|
}
|
|
135
|
+
const flagToCategory = [[core.flags.MAJOR_FAST, 'holiday', 'major', 'fast'], [core.flags.CHANUKAH_CANDLES, 'holiday', 'major'], [core.flags.DAF_YOMI, 'dafyomi'], [core.flags.HEBREW_DATE, 'hebdate'], [core.flags.MINOR_FAST, 'holiday', 'fast'], [core.flags.MINOR_HOLIDAY, 'holiday', 'minor'], [core.flags.MISHNA_YOMI, 'mishnayomi'], [core.flags.MODERN_HOLIDAY, 'holiday', 'modern'], [core.flags.MOLAD, 'molad'], [core.flags.OMER_COUNT, 'omer'], [core.flags.PARSHA_HASHAVUA, 'parashat'], // backwards-compat
|
|
136
|
+
[core.flags.ROSH_CHODESH, 'roshchodesh'], [core.flags.SHABBAT_MEVARCHIM, 'mevarchim'], [core.flags.SPECIAL_SHABBAT, 'holiday', 'shabbat'], [core.flags.USER_EVENT, 'user']];
|
|
135
137
|
/**
|
|
136
138
|
* Returns a category and subcategory name
|
|
137
139
|
* @param {Event} ev
|
|
@@ -145,54 +147,18 @@ function getEventCategories(ev) {
|
|
|
145
147
|
return ['zmanim', 'fast'];
|
|
146
148
|
}
|
|
147
149
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
case core.flags.HEBREW_DATE:
|
|
153
|
-
return ['hebdate'];
|
|
154
|
-
|
|
155
|
-
case core.flags.PARSHA_HASHAVUA:
|
|
156
|
-
return ['parashat'];
|
|
157
|
-
// backwards-compat
|
|
158
|
-
|
|
159
|
-
case core.flags.DAF_YOMI:
|
|
160
|
-
return ['dafyomi'];
|
|
161
|
-
|
|
162
|
-
case core.flags.ROSH_CHODESH:
|
|
163
|
-
return ['roshchodesh'];
|
|
164
|
-
|
|
165
|
-
case core.flags.SPECIAL_SHABBAT:
|
|
166
|
-
return ['holiday', 'shabbat'];
|
|
167
|
-
|
|
168
|
-
case core.flags.MINOR_FAST:
|
|
169
|
-
return ['holiday', 'fast'];
|
|
170
|
-
|
|
171
|
-
case core.flags.MAJOR_FAST:
|
|
172
|
-
return ['holiday', 'fast', 'major'];
|
|
173
|
-
|
|
174
|
-
case core.flags.MODERN_HOLIDAY:
|
|
175
|
-
return ['holiday', 'modern'];
|
|
176
|
-
|
|
177
|
-
case core.flags.SHABBAT_MEVARCHIM:
|
|
178
|
-
return ['mevarchim'];
|
|
179
|
-
|
|
180
|
-
case core.flags.MOLAD:
|
|
181
|
-
return ['molad'];
|
|
182
|
-
|
|
183
|
-
case core.flags.USER_EVENT:
|
|
184
|
-
return ['user'];
|
|
150
|
+
if (ev.cholHaMoedDay) {
|
|
151
|
+
return ['holiday', 'major', 'cholhamoed'];
|
|
152
|
+
}
|
|
185
153
|
|
|
186
|
-
|
|
187
|
-
return ['holiday', 'minor'];
|
|
154
|
+
const mask = ev.getFlags();
|
|
188
155
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
// fall through to string-based category
|
|
192
|
-
}
|
|
156
|
+
for (let i = 0; i < flagToCategory.length; i++) {
|
|
157
|
+
const attrs = flagToCategory[i];
|
|
193
158
|
|
|
194
|
-
|
|
195
|
-
|
|
159
|
+
if (mask & attrs[0]) {
|
|
160
|
+
return attrs.slice(1);
|
|
161
|
+
}
|
|
196
162
|
}
|
|
197
163
|
|
|
198
164
|
switch (desc) {
|
|
@@ -213,9 +179,6 @@ function getEventCategories(ev) {
|
|
|
213
179
|
case 'Rosh Hashana LaBehemot':
|
|
214
180
|
return ['holiday', 'minor'];
|
|
215
181
|
|
|
216
|
-
case 'Erev Tish\'a B\'Av':
|
|
217
|
-
return ['holiday', 'fast', 'major'];
|
|
218
|
-
|
|
219
182
|
default:
|
|
220
183
|
return ['holiday', 'major'];
|
|
221
184
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v4.3.
|
|
1
|
+
/*! @hebcal/rest-api v4.3.1 */
|
|
2
2
|
import { flags, HDate, HebrewCalendar, Zmanim, Locale, gematriya } from '@hebcal/core';
|
|
3
3
|
import { getLeyningForParshaHaShavua, getLeyningForHoliday, formatAliyahWithBook } from '@hebcal/leyning';
|
|
4
4
|
import { getTriennialForParshaHaShavua } from '@hebcal/triennial';
|
|
@@ -128,6 +128,8 @@ function pad4(number) {
|
|
|
128
128
|
function toISOString(d) {
|
|
129
129
|
return pad4(d.getFullYear()) + '-' + pad2(d.getMonth() + 1) + '-' + pad2(d.getDate());
|
|
130
130
|
}
|
|
131
|
+
const flagToCategory = [[flags.MAJOR_FAST, 'holiday', 'major', 'fast'], [flags.CHANUKAH_CANDLES, 'holiday', 'major'], [flags.DAF_YOMI, 'dafyomi'], [flags.HEBREW_DATE, 'hebdate'], [flags.MINOR_FAST, 'holiday', 'fast'], [flags.MINOR_HOLIDAY, 'holiday', 'minor'], [flags.MISHNA_YOMI, 'mishnayomi'], [flags.MODERN_HOLIDAY, 'holiday', 'modern'], [flags.MOLAD, 'molad'], [flags.OMER_COUNT, 'omer'], [flags.PARSHA_HASHAVUA, 'parashat'], // backwards-compat
|
|
132
|
+
[flags.ROSH_CHODESH, 'roshchodesh'], [flags.SHABBAT_MEVARCHIM, 'mevarchim'], [flags.SPECIAL_SHABBAT, 'holiday', 'shabbat'], [flags.USER_EVENT, 'user']];
|
|
131
133
|
/**
|
|
132
134
|
* Returns a category and subcategory name
|
|
133
135
|
* @param {Event} ev
|
|
@@ -141,54 +143,18 @@ function getEventCategories(ev) {
|
|
|
141
143
|
return ['zmanim', 'fast'];
|
|
142
144
|
}
|
|
143
145
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
case flags.HEBREW_DATE:
|
|
149
|
-
return ['hebdate'];
|
|
150
|
-
|
|
151
|
-
case flags.PARSHA_HASHAVUA:
|
|
152
|
-
return ['parashat'];
|
|
153
|
-
// backwards-compat
|
|
154
|
-
|
|
155
|
-
case flags.DAF_YOMI:
|
|
156
|
-
return ['dafyomi'];
|
|
157
|
-
|
|
158
|
-
case flags.ROSH_CHODESH:
|
|
159
|
-
return ['roshchodesh'];
|
|
160
|
-
|
|
161
|
-
case flags.SPECIAL_SHABBAT:
|
|
162
|
-
return ['holiday', 'shabbat'];
|
|
163
|
-
|
|
164
|
-
case flags.MINOR_FAST:
|
|
165
|
-
return ['holiday', 'fast'];
|
|
166
|
-
|
|
167
|
-
case flags.MAJOR_FAST:
|
|
168
|
-
return ['holiday', 'fast', 'major'];
|
|
169
|
-
|
|
170
|
-
case flags.MODERN_HOLIDAY:
|
|
171
|
-
return ['holiday', 'modern'];
|
|
172
|
-
|
|
173
|
-
case flags.SHABBAT_MEVARCHIM:
|
|
174
|
-
return ['mevarchim'];
|
|
175
|
-
|
|
176
|
-
case flags.MOLAD:
|
|
177
|
-
return ['molad'];
|
|
178
|
-
|
|
179
|
-
case flags.USER_EVENT:
|
|
180
|
-
return ['user'];
|
|
146
|
+
if (ev.cholHaMoedDay) {
|
|
147
|
+
return ['holiday', 'major', 'cholhamoed'];
|
|
148
|
+
}
|
|
181
149
|
|
|
182
|
-
|
|
183
|
-
return ['holiday', 'minor'];
|
|
150
|
+
const mask = ev.getFlags();
|
|
184
151
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
// fall through to string-based category
|
|
188
|
-
}
|
|
152
|
+
for (let i = 0; i < flagToCategory.length; i++) {
|
|
153
|
+
const attrs = flagToCategory[i];
|
|
189
154
|
|
|
190
|
-
|
|
191
|
-
|
|
155
|
+
if (mask & attrs[0]) {
|
|
156
|
+
return attrs.slice(1);
|
|
157
|
+
}
|
|
192
158
|
}
|
|
193
159
|
|
|
194
160
|
switch (desc) {
|
|
@@ -209,9 +175,6 @@ function getEventCategories(ev) {
|
|
|
209
175
|
case 'Rosh Hashana LaBehemot':
|
|
210
176
|
return ['holiday', 'minor'];
|
|
211
177
|
|
|
212
|
-
case 'Erev Tish\'a B\'Av':
|
|
213
|
-
return ['holiday', 'fast', 'major'];
|
|
214
|
-
|
|
215
178
|
default:
|
|
216
179
|
return ['holiday', 'major'];
|
|
217
180
|
}
|