@hebcal/icalendar
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -1,1 +0,1 @@ | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("@hebcal/core"),require("@hebcal/leyning")):"function"==typeof define&&define.amd?define(["@hebcal/core","@hebcal/leyning"],n):(t=t||self).hebcal__icalendar=n(t.hebcal__core,t.hebcal__leyning)}(this,(function(t,n){"use strict";n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,n,e){return t(e={path:n,exports:{},require:function(t,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&e.path)}},e.exports),e.exports}var o=function(t){return t&&t.Math==Math&&t},i=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof e&&e)||Function("return this")(),a=function(t){try{return!!t()}catch(t){return!0}},c=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,s={f:l&&!u.call({1:2},1)?function(t){var n=l(this,t);return!!n&&n.enumerable}:u},f=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},T={}.toString,g=function(t){return T.call(t).slice(8,-1)},E="".split,h=a((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==g(t)?E.call(t,""):Object(t)}:Object,p=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},S=function(t){return h(p(t))},d=function(t){return"object"==typeof t?null!==t:"function"==typeof t},A=function(t,n){if(!d(t))return t;var e,r;if(n&&"function"==typeof(e=t.toString)&&!d(r=e.call(t)))return r;if("function"==typeof(e=t.valueOf)&&!d(r=e.call(t)))return r;if(!n&&"function"==typeof(e=t.toString)&&!d(r=e.call(t)))return r;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,v=function(t,n){return y.call(t,n)},O=i.document,D=d(O)&&d(O.createElement),R=function(t){return D?O.createElement(t):{}},m=!c&&!a((function(){return 7!=Object.defineProperty(R("div"),"a",{get:function(){return 7}}).a})),N=Object.getOwnPropertyDescriptor,I={f:c?N:function(t,n){if(t=S(t),n=A(n,!0),m)try{return N(t,n)}catch(t){}if(v(t,n))return f(!s.f.call(t,n),t[n])}},F=function(t){if(!d(t))throw TypeError(String(t)+" is not an object");return t},b=Object.defineProperty,M={f:c?b:function(t,n,e){if(F(t),n=A(n,!0),F(e),m)try{return b(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},L=c?function(t,n,e){return M.f(t,n,f(1,e))}:function(t,n,e){return t[n]=e,t},x=function(t,n){try{L(i,t,n)}catch(e){i[t]=n}return n},Y=i["__core-js_shared__"]||x("__core-js_shared__",{}),B=Function.toString;"function"!=typeof Y.inspectSource&&(Y.inspectSource=function(t){return B.call(t)});var H,Z,w,U=Y.inspectSource,_=i.WeakMap,C="function"==typeof _&&/native code/.test(U(_)),G=r((function(t){(t.exports=function(t,n){return Y[t]||(Y[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),P=0,j=Math.random(),V=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++P+j).toString(36)},k=G("keys"),W=function(t){return k[t]||(k[t]=V(t))},$={},z=i.WeakMap;if(C){var Q=new z,X=Q.get,K=Q.has,q=Q.set;H=function(t,n){return q.call(Q,t,n),n},Z=function(t){return X.call(Q,t)||{}},w=function(t){return K.call(Q,t)}}else{var J=W("state");$[J]=!0,H=function(t,n){return L(t,J,n),n},Z=function(t){return v(t,J)?t[J]:{}},w=function(t){return v(t,J)}}var tt={set:H,get:Z,has:w,enforce:function(t){return w(t)?Z(t):H(t,{})},getterFor:function(t){return function(n){var e;if(!d(n)||(e=Z(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}},nt=r((function(t){var n=tt.get,e=tt.enforce,r=String(String).split("String");(t.exports=function(t,n,o,a){var c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet;"function"==typeof o&&("string"!=typeof n||v(o,"name")||L(o,"name",n),e(o).source=r.join("string"==typeof n?n:"")),t!==i?(c?!l&&t[n]&&(u=!0):delete t[n],u?t[n]=o:L(t,n,o)):u?t[n]=o:x(n,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&n(this).source||U(this)}))})),et=i,rt=function(t){return"function"==typeof t?t:void 0},ot=function(t,n){return arguments.length<2?rt(et[t])||rt(i[t]):et[t]&&et[t][n]||i[t]&&i[t][n]},it=Math.ceil,at=Math.floor,ct=function(t){return isNaN(t=+t)?0:(t>0?at:it)(t)},ut=Math.min,lt=function(t){return t>0?ut(ct(t),9007199254740991):0},st=Math.max,ft=Math.min,Tt=function(t){return function(n,e,r){var o,i=S(n),a=lt(i.length),c=function(t,n){var e=ct(t);return e<0?st(e+n,0):ft(e,n)}(r,a);if(t&&e!=e){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===e)return t||c||0;return!t&&-1}},gt={includes:Tt(!0),indexOf:Tt(!1)}.indexOf,Et=function(t,n){var e,r=S(t),o=0,i=[];for(e in r)!v($,e)&&v(r,e)&&i.push(e);for(;n.length>o;)v(r,e=n[o++])&&(~gt(i,e)||i.push(e));return i},ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],pt=ht.concat("length","prototype"),St={f:Object.getOwnPropertyNames||function(t){return Et(t,pt)}},dt={f:Object.getOwnPropertySymbols},At=ot("Reflect","ownKeys")||function(t){var n=St.f(F(t)),e=dt.f;return e?n.concat(e(t)):n},yt=function(t,n){for(var e=At(n),r=M.f,o=I.f,i=0;i<e.length;i++){var a=e[i];v(t,a)||r(t,a,o(n,a))}},vt=/#|\.prototype\./,Ot=function(t,n){var e=Rt[Dt(t)];return e==Nt||e!=mt&&("function"==typeof n?a(n):!!n)},Dt=Ot.normalize=function(t){return String(t).replace(vt,".").toLowerCase()},Rt=Ot.data={},mt=Ot.NATIVE="N",Nt=Ot.POLYFILL="P",It=Ot,Ft=I.f,bt=function(t,n){var e,r,o,a,c,u=t.target,l=t.global,s=t.stat;if(e=l?i:s?i[u]||x(u,{}):(i[u]||{}).prototype)for(r in n){if(a=n[r],o=t.noTargetGet?(c=Ft(e,r))&&c.value:e[r],!It(l?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof a==typeof o)continue;yt(a,o)}(t.sham||o&&o.sham)&&L(a,"sham",!0),nt(e,r,a,t)}},Mt=function(){var t=F(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n};function Lt(t,n){return RegExp(t,n)}var xt,Yt,Bt={UNSUPPORTED_Y:a((function(){var t=Lt("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:a((function(){var t=Lt("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Ht=RegExp.prototype.exec,Zt=String.prototype.replace,wt=Ht,Ut=(xt=/a/,Yt=/b*/g,Ht.call(xt,"a"),Ht.call(Yt,"a"),0!==xt.lastIndex||0!==Yt.lastIndex),_t=Bt.UNSUPPORTED_Y||Bt.BROKEN_CARET,Ct=void 0!==/()??/.exec("")[1];(Ut||Ct||_t)&&(wt=function(t){var n,e,r,o,i=this,a=_t&&i.sticky,c=Mt.call(i),u=i.source,l=0,s=t;return a&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),s=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(u="(?: "+u+")",s=" "+s,l++),e=new RegExp("^(?:"+u+")",c)),Ct&&(e=new RegExp("^"+u+"$(?!\\s)",c)),Ut&&(n=i.lastIndex),r=Ht.call(a?e:i,s),a?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Ut&&r&&(i.lastIndex=i.global?r.index+r[0].length:n),Ct&&r&&r.length>1&&Zt.call(r[0],e,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Gt=wt;bt({target:"RegExp",proto:!0,forced:/./.exec!==Gt},{exec:Gt});var Pt=!!Object.getOwnPropertySymbols&&!a((function(){return!String(Symbol())})),jt=Pt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Vt=G("wks"),kt=i.Symbol,Wt=jt?kt:kt&&kt.withoutSetter||V,$t=function(t){return v(Vt,t)||(Pt&&v(kt,t)?Vt[t]=kt[t]:Vt[t]=Wt("Symbol."+t)),Vt[t]},zt=$t("species"),Qt=!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Xt="$0"==="a".replace(/./,"$0"),Kt=$t("replace"),qt=!!/./[Kt]&&""===/./[Kt]("a","$0"),Jt=!a((function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var e="ab".split(t);return 2!==e.length||"a"!==e[0]||"b"!==e[1]})),tn=function(t,n,e,r){var o=$t(t),i=!a((function(){var n={};return n[o]=function(){return 7},7!=""[t](n)})),c=i&&!a((function(){var n=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[zt]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return n=!0,null},e[o](""),!n}));if(!i||!c||"replace"===t&&(!Qt||!Xt||qt)||"split"===t&&!Jt){var u=/./[o],l=e(o,""[t],(function(t,n,e,r,o){return n.exec===Gt?i&&!o?{done:!0,value:u.call(n,e,r)}:{done:!0,value:t.call(e,n,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Xt,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:qt}),s=l[0],f=l[1];nt(String.prototype,t,s),nt(RegExp.prototype,o,2==n?function(t,n){return f.call(t,this,n)}:function(t){return f.call(t,this)})}r&&L(RegExp.prototype[o],"sham",!0)},nn=function(t){return Object(p(t))},en=function(t){return function(n,e){var r,o,i=String(p(n)),a=ct(e),c=i.length;return a<0||a>=c?t?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===c||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):r:t?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},rn={codeAt:en(!1),charAt:en(!0)}.charAt,on=function(t,n,e){return n+(e?rn(t,n).length:1)},an=function(t,n){var e=t.exec;if("function"==typeof e){var r=e.call(t,n);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==g(t))throw TypeError("RegExp#exec called on incompatible receiver");return Gt.call(t,n)},cn=Math.max,un=Math.min,ln=Math.floor,sn=/\$([$&'`]|\d\d?|<[^>]*>)/g,fn=/\$([$&'`]|\d\d?)/g;tn("replace",2,(function(t,n,e,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(e,r){var o=p(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,r):n.call(String(o),e,r)},function(t,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(a)){var u=e(n,t,this,r);if(u.done)return u.value}var l=F(t),s=String(this),f="function"==typeof r;f||(r=String(r));var T=l.global;if(T){var g=l.unicode;l.lastIndex=0}for(var E=[];;){var h=an(l,s);if(null===h)break;if(E.push(h),!T)break;""===String(h[0])&&(l.lastIndex=on(s,lt(l.lastIndex),g))}for(var p,S="",d=0,A=0;A<E.length;A++){h=E[A];for(var y=String(h[0]),v=cn(un(ct(h.index),s.length),0),O=[],D=1;D<h.length;D++)O.push(void 0===(p=h[D])?p:String(p));var R=h.groups;if(f){var m=[y].concat(O,v,s);void 0!==R&&m.push(R);var N=String(r.apply(void 0,m))}else N=c(y,s,v,O,R,r);v>=d&&(S+=s.slice(d,v)+N,d=v+y.length)}return S+s.slice(d)}];function c(t,e,r,o,i,a){var c=r+t.length,u=o.length,l=fn;return void 0!==i&&(i=nn(i),l=sn),n.call(a,l,(function(n,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(c);case"<":l=i[a.slice(1,-1)];break;default:var s=+a;if(0===s)return n;if(s>u){var f=ln(s/10);return 0===f?n:f<=u?void 0===o[f-1]?a.charAt(1):o[f-1]+a.charAt(1):n}l=o[s-1]}return void 0===l?"":l}))}}));var Tn=$t("match"),gn=function(t){var n;return d(t)&&(void 0!==(n=t[Tn])?!!n:"RegExp"==g(t))},En=$t("species"),hn=function(t,n){var e,r=F(t).constructor;return void 0===r||null==(e=F(r)[En])?n:function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}(e)},pn=[].push,Sn=Math.min,dn=!a((function(){return!RegExp(4294967295,"y")}));tn("split",2,(function(t,n,e){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var r=String(p(this)),o=void 0===e?4294967295:e>>>0;if(0===o)return[];if(void 0===t)return[r];if(!gn(t))return n.call(r,t,o);for(var i,a,c,u=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,f=new RegExp(t.source,l+"g");(i=Gt.call(f,r))&&!((a=f.lastIndex)>s&&(u.push(r.slice(s,i.index)),i.length>1&&i.index<r.length&&pn.apply(u,i.slice(1)),c=i[0].length,s=a,u.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return s===r.length?!c&&f.test("")||u.push(""):u.push(r.slice(s)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,e){var o=p(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,e):r.call(String(o),n,e)},function(t,o){var i=e(r,t,this,o,r!==n);if(i.done)return i.value;var a=F(t),c=String(this),u=hn(a,RegExp),l=a.unicode,s=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(dn?"y":"g"),f=new u(dn?a:"^(?:"+a.source+")",s),T=void 0===o?4294967295:o>>>0;if(0===T)return[];if(0===c.length)return null===an(f,c)?[c]:[];for(var g=0,E=0,h=[];E<c.length;){f.lastIndex=dn?E:0;var p,S=an(f,dn?c:c.slice(E));if(null===S||(p=Sn(lt(f.lastIndex+(dn?0:E)),c.length))===g)E=on(c,E,l);else{if(h.push(c.slice(g,E)),h.length===T)return h;for(var d=1;d<=S.length-1;d++)if(h.push(S[d]),h.length===T)return h;E=g=p}}return h.push(c.slice(g)),h}]}),!dn);var An,yn=function(t){if(gn(t))throw TypeError("The method doesn't accept regular expressions");return t},vn=$t("match"),On=I.f,Dn="".startsWith,Rn=Math.min,mn=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[vn]=!1,"/./"[t](n)}catch(t){}}return!1}("startsWith"),Nn=!(mn||(An=On(String.prototype,"startsWith"),!An||An.writable));bt({target:"String",proto:!0,forced:!Nn&&!mn},{startsWith:function(t){var n=String(p(this));yn(t);var e=lt(Rn(arguments.length>1?arguments[1]:void 0,n.length)),r=String(t);return Dn?Dn.call(n,r,e):n.slice(e,e+r.length)===r}});var In="\t\n\v\f\r \u2028\u2029\ufeff",Fn="["+In+"]",bn=RegExp("^"+Fn+Fn+"*"),Mn=RegExp(Fn+Fn+"*$"),Ln=function(t){return function(n){var e=String(p(n));return 1&t&&(e=e.replace(bn,"")),2&t&&(e=e.replace(Mn,"")),e}},xn={start:Ln(1),end:Ln(2),trim:Ln(3)},Yn=xn.trim;bt({target:"String",proto:!0,forced:function(t){return a((function(){return!!In[t]()||" "!=" "[t]()||In[t].name!==t}))}("trim")},{trim:function(){return Yn(this)}});var Bn,Hn={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},Zn=Object.keys||function(t){return Et(t,ht)},wn=c?Object.defineProperties:function(t,n){F(t);for(var e,r=Zn(n),o=r.length,i=0;o>i;)M.f(t,e=r[i++],n[e]);return t},Un=ot("document","documentElement"),_n=W("IE_PROTO"),Cn=function(){},Gn=function(t){return"<script>"+t+"<\/script>"},Pn=function(){try{Bn=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,n;Pn=Bn?function(t){t.write(Gn("")),t.close();var n=t.parentWindow.Object;return t=null,n}(Bn):((n=R("iframe")).style.display="none",Un.appendChild(n),n.src=String("javascript:"),(t=n.contentWindow.document).open(),t.write(Gn("document.F=Object")),t.close(),t.F);for(var e=ht.length;e--;)delete Pn.prototype[ht[e]];return Pn()};$[_n]=!0;var jn=Object.create||function(t,n){var e;return null!==t?(Cn.prototype=F(t),e=new Cn,Cn.prototype=null,e[_n]=t):e=Pn(),void 0===n?e:wn(e,n)},Vn=$t("unscopables"),kn=Array.prototype;null==kn[Vn]&&M.f(kn,Vn,{configurable:!0,value:jn(null)});var Wn,$n,zn,Qn=function(t){kn[Vn][t]=!0},Xn=!a((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Kn=W("IE_PROTO"),qn=Object.prototype,Jn=Xn?Object.getPrototypeOf:function(t){return t=nn(t),v(t,Kn)?t[Kn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?qn:null},te=$t("iterator"),ne=!1;[].keys&&("next"in(zn=[].keys())?($n=Jn(Jn(zn)))!==Object.prototype&&(Wn=$n):ne=!0),null==Wn&&(Wn={}),v(Wn,te)||L(Wn,te,(function(){return this}));var ee={IteratorPrototype:Wn,BUGGY_SAFARI_ITERATORS:ne},re=M.f,oe=$t("toStringTag"),ie=function(t,n,e){t&&!v(t=e?t:t.prototype,oe)&&re(t,oe,{configurable:!0,value:n})},ae=ee.IteratorPrototype,ce=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,e={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),n=e instanceof Array}catch(t){}return function(e,r){return F(e),function(t){if(!d(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),n?t.call(e,r):e.__proto__=r,e}}():void 0),ue=ee.IteratorPrototype,le=ee.BUGGY_SAFARI_ITERATORS,se=$t("iterator"),fe=function(){return this},Te=tt.set,ge=tt.getterFor("Array Iterator"),Ee=function(t,n,e,r,o,i,a){!function(t,n,e){var r=n+" Iterator";t.prototype=jn(ae,{next:f(1,e)}),ie(t,r,!1)}(e,n,r);var c,u,l,s=function(t){if(t===o&&p)return p;if(!le&&t in E)return E[t];switch(t){case"keys":case"values":case"entries":return function(){return new e(this,t)}}return function(){return new e(this)}},T=n+" Iterator",g=!1,E=t.prototype,h=E[se]||E["@@iterator"]||o&&E[o],p=!le&&h||s(o),S="Array"==n&&E.entries||h;if(S&&(c=Jn(S.call(new t)),ue!==Object.prototype&&c.next&&(Jn(c)!==ue&&(ce?ce(c,ue):"function"!=typeof c[se]&&L(c,se,fe)),ie(c,T,!0))),"values"==o&&h&&"values"!==h.name&&(g=!0,p=function(){return h.call(this)}),E[se]!==p&&L(E,se,p),o)if(u={values:s("values"),keys:i?p:s("keys"),entries:s("entries")},a)for(l in u)(le||g||!(l in E))&&nt(E,l,u[l]);else bt({target:n,proto:!0,forced:le||g},u);return u}(Array,"Array",(function(t,n){Te(this,{type:"Array Iterator",target:S(t),index:0,kind:n})}),(function(){var t=ge(this),n=t.target,e=t.kind,r=t.index++;return!n||r>=n.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:r,done:!1}:"values"==e?{value:n[r],done:!1}:{value:[r,n[r]],done:!1}}),"values");Qn("keys"),Qn("values"),Qn("entries");var he=$t("iterator"),pe=$t("toStringTag"),Se=Ee.values;for(var de in Hn){var Ae=i[de],ye=Ae&&Ae.prototype;if(ye){if(ye[he]!==Se)try{L(ye,he,Se)}catch(t){ye[he]=Se}if(ye[pe]||L(ye,pe,de),Hn[de])for(var ve in Ee)if(ye[ve]!==Ee[ve])try{L(ye,ve,Ee[ve])}catch(t){ye[ve]=Ee[ve]}}}var Oe=r((function(t){!function(){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(t,n){return t<<n|t>>>32-n},rotr:function(t,n){return t<<32-n|t>>>n},endian:function(t){if(t.constructor==Number)return 16711935&e.rotl(t,8)|4278255360&e.rotl(t,24);for(var n=0;n<t.length;n++)t[n]=e.endian(t[n]);return t},randomBytes:function(t){for(var n=[];t>0;t--)n.push(Math.floor(256*Math.random()));return n},bytesToWords:function(t){for(var n=[],e=0,r=0;e<t.length;e++,r+=8)n[r>>>5]|=t[e]<<24-r%32;return n},wordsToBytes:function(t){for(var n=[],e=0;e<32*t.length;e+=8)n.push(t[e>>>5]>>>24-e%32&255);return n},bytesToHex:function(t){for(var n=[],e=0;e<t.length;e++)n.push((t[e]>>>4).toString(16)),n.push((15&t[e]).toString(16));return n.join("")},hexToBytes:function(t){for(var n=[],e=0;e<t.length;e+=2)n.push(parseInt(t.substr(e,2),16));return n},bytesToBase64:function(t){for(var e=[],r=0;r<t.length;r+=3)for(var o=t[r]<<16|t[r+1]<<8|t[r+2],i=0;i<4;i++)8*r+6*i<=8*t.length?e.push(n.charAt(o>>>6*(3-i)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],r=0,o=0;r<t.length;o=++r%4)0!=o&&e.push((n.indexOf(t.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|n.indexOf(t.charAt(r))>>>6-2*o);return e}};t.exports=e}()})),De={utf8:{stringToBytes:function(t){return De.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(De.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var n=[],e=0;e<t.length;e++)n.push(255&t.charCodeAt(e));return n},bytesToString:function(t){for(var n=[],e=0;e<t.length;e++)n.push(String.fromCharCode(t[e]));return n.join("")}}},Re=De,me=function(t){return null!=t&&(Ne(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&Ne(t.slice(0,0))}(t)||!!t._isBuffer)};function Ne(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var Ie=r((function(t){!function(){var n=Oe,e=Re.utf8,r=me,o=Re.bin,i=function(t,a){t.constructor==String?t=a&&"binary"===a.encoding?o.stringToBytes(t):e.stringToBytes(t):r(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());for(var c=n.bytesToWords(t),u=8*t.length,l=1732584193,s=-271733879,f=-1732584194,T=271733878,g=0;g<c.length;g++)c[g]=16711935&(c[g]<<8|c[g]>>>24)|4278255360&(c[g]<<24|c[g]>>>8);c[u>>>5]|=128<<u%32,c[14+(u+64>>>9<<4)]=u;var E=i._ff,h=i._gg,p=i._hh,S=i._ii;for(g=0;g<c.length;g+=16){var d=l,A=s,y=f,v=T;l=E(l,s,f,T,c[g+0],7,-680876936),T=E(T,l,s,f,c[g+1],12,-389564586),f=E(f,T,l,s,c[g+2],17,606105819),s=E(s,f,T,l,c[g+3],22,-1044525330),l=E(l,s,f,T,c[g+4],7,-176418897),T=E(T,l,s,f,c[g+5],12,1200080426),f=E(f,T,l,s,c[g+6],17,-1473231341),s=E(s,f,T,l,c[g+7],22,-45705983),l=E(l,s,f,T,c[g+8],7,1770035416),T=E(T,l,s,f,c[g+9],12,-1958414417),f=E(f,T,l,s,c[g+10],17,-42063),s=E(s,f,T,l,c[g+11],22,-1990404162),l=E(l,s,f,T,c[g+12],7,1804603682),T=E(T,l,s,f,c[g+13],12,-40341101),f=E(f,T,l,s,c[g+14],17,-1502002290),l=h(l,s=E(s,f,T,l,c[g+15],22,1236535329),f,T,c[g+1],5,-165796510),T=h(T,l,s,f,c[g+6],9,-1069501632),f=h(f,T,l,s,c[g+11],14,643717713),s=h(s,f,T,l,c[g+0],20,-373897302),l=h(l,s,f,T,c[g+5],5,-701558691),T=h(T,l,s,f,c[g+10],9,38016083),f=h(f,T,l,s,c[g+15],14,-660478335),s=h(s,f,T,l,c[g+4],20,-405537848),l=h(l,s,f,T,c[g+9],5,568446438),T=h(T,l,s,f,c[g+14],9,-1019803690),f=h(f,T,l,s,c[g+3],14,-187363961),s=h(s,f,T,l,c[g+8],20,1163531501),l=h(l,s,f,T,c[g+13],5,-1444681467),T=h(T,l,s,f,c[g+2],9,-51403784),f=h(f,T,l,s,c[g+7],14,1735328473),l=p(l,s=h(s,f,T,l,c[g+12],20,-1926607734),f,T,c[g+5],4,-378558),T=p(T,l,s,f,c[g+8],11,-2022574463),f=p(f,T,l,s,c[g+11],16,1839030562),s=p(s,f,T,l,c[g+14],23,-35309556),l=p(l,s,f,T,c[g+1],4,-1530992060),T=p(T,l,s,f,c[g+4],11,1272893353),f=p(f,T,l,s,c[g+7],16,-155497632),s=p(s,f,T,l,c[g+10],23,-1094730640),l=p(l,s,f,T,c[g+13],4,681279174),T=p(T,l,s,f,c[g+0],11,-358537222),f=p(f,T,l,s,c[g+3],16,-722521979),s=p(s,f,T,l,c[g+6],23,76029189),l=p(l,s,f,T,c[g+9],4,-640364487),T=p(T,l,s,f,c[g+12],11,-421815835),f=p(f,T,l,s,c[g+15],16,530742520),l=S(l,s=p(s,f,T,l,c[g+2],23,-995338651),f,T,c[g+0],6,-198630844),T=S(T,l,s,f,c[g+7],10,1126891415),f=S(f,T,l,s,c[g+14],15,-1416354905),s=S(s,f,T,l,c[g+5],21,-57434055),l=S(l,s,f,T,c[g+12],6,1700485571),T=S(T,l,s,f,c[g+3],10,-1894986606),f=S(f,T,l,s,c[g+10],15,-1051523),s=S(s,f,T,l,c[g+1],21,-2054922799),l=S(l,s,f,T,c[g+8],6,1873313359),T=S(T,l,s,f,c[g+15],10,-30611744),f=S(f,T,l,s,c[g+6],15,-1560198380),s=S(s,f,T,l,c[g+13],21,1309151649),l=S(l,s,f,T,c[g+4],6,-145523070),T=S(T,l,s,f,c[g+11],10,-1120210379),f=S(f,T,l,s,c[g+2],15,718787259),s=S(s,f,T,l,c[g+9],21,-343485551),l=l+d>>>0,s=s+A>>>0,f=f+y>>>0,T=T+v>>>0}return n.endian([l,s,f,T])};i._ff=function(t,n,e,r,o,i,a){var c=t+(n&e|~n&r)+(o>>>0)+a;return(c<<i|c>>>32-i)+n},i._gg=function(t,n,e,r,o,i,a){var c=t+(n&r|e&~r)+(o>>>0)+a;return(c<<i|c>>>32-i)+n},i._hh=function(t,n,e,r,o,i,a){var c=t+(n^e^r)+(o>>>0)+a;return(c<<i|c>>>32-i)+n},i._ii=function(t,n,e,r,o,i,a){var c=t+(e^(n|~r))+(o>>>0)+a;return(c<<i|c>>>32-i)+n},i._blocksize=16,i._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var r=n.wordsToBytes(i(t,e));return e&&e.asBytes?r:e&&e.asString?o.bytesToString(r):n.bytesToHex(r)}}()})),Fe=/(\d+).(\d+).(\d+),?\s+(\d+).(\d+)(.(\d+))?/,be={timeZone:"UTC",hourCycle:"h23",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"},Me=new Intl.DateTimeFormat("en-US",be);function Le(t){t=t.replace(/[\u200E\u200F]/g,"");Fe.exec(t);return[].slice.call(Fe.exec(t),1).map(Math.floor)}function xe(t){return t<10?"0"+t:String(t)}function Ye(t,n){const e=function(t,n){be.timeZone=t;var e,r,o,i=new Intl.DateTimeFormat("en-US",be);return e=Le(Me.format(n)),r=Le(i.format(n)),(o=e[1]-r[1])>15&&(o=-1),o<-15&&(o=1),60*(24*o+(e[3]-r[3]))+(e[4]-r[4])}(t,n),r=Math.abs(e),o=r%60;return(Boolean(e<0)?"+":"-")+xe(Math.floor(r/60))+":"+xe(o)}function Be(t){return t.getFullYear()+"-"+xe(t.getMonth()+1)+"-"+xe(t.getDate())}function He(t,n,e){const r=Be(t);return n?r+"T"+n+":00"+Ye(e,t):r}function Ze(n){switch(n.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.MODERN_HOLIDAY:return["holiday","modern"];case t.flags.SHABBAT_MEVARCHIM:return["mevarchim"]}if(n.getAttrs().cholHaMoedDay)return["holiday","major","cholhamoed"];switch(n.getDesc()){case"Havdalah":return["havdalah"];case"Candle lighting":return["candles"];case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":return["holiday","minor"];default:return["holiday","major"]}}const we={"US/Eastern":"BEGIN:VTIMEZONE\r\nTZID:US/Eastern\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETTO:-0500\r\nTZOFFSETFROM:-0400\r\nTZNAME:EST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETTO:-0400\r\nTZOFFSETFROM:-0500\r\nTZNAME:EDT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","US/Central":"BEGIN:VTIMEZONE\r\nTZID:US/Central\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETTO:-0600\r\nTZOFFSETFROM:-0500\r\nTZNAME:CST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETTO:-0500\r\nTZOFFSETFROM:-0600\r\nTZNAME:CDT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","US/Mountain":"BEGIN:VTIMEZONE\r\nTZID:US/Mountain\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETTO:-0700\r\nTZOFFSETFROM:-0600\r\nTZNAME:MST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETTO:-0600\r\nTZOFFSETFROM:-0700\r\nTZNAME:MDT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","US/Pacific":"BEGIN:VTIMEZONE\r\nTZID:US/Pacific\r\nX-MICROSOFT-CDO-TZID:13\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETFROM:-0700\r\nTZOFFSETTO:-0800\r\nTZNAME:PST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETFROM:-0800\r\nTZOFFSETTO:-0700\r\nTZNAME:PDT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","US/Alaska":"BEGIN:VTIMEZONE\r\nTZID:US/Alaska\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETTO:-0900\r\nTZOFFSETFROM:+0000\r\nTZNAME:AKST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETTO:-0800\r\nTZOFFSETFROM:-0900\r\nTZNAME:AKDT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","US/Hawaii":"BEGIN:VTIMEZONE\r\nTZID:US/Hawaii\r\nLAST-MODIFIED:20060309T044821Z\r\nBEGIN:DAYLIGHT\r\nDTSTART:19330430T123000\r\nTZOFFSETTO:-0930\r\nTZOFFSETFROM:+0000\r\nTZNAME:HDT\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:19330521T020000\r\nTZOFFSETTO:-1030\r\nTZOFFSETFROM:-0930\r\nTZNAME:HST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19420209T020000\r\nTZOFFSETTO:-0930\r\nTZOFFSETFROM:-1030\r\nTZNAME:HWT\r\nEND:DAYLIGHT\r\nBEGIN:DAYLIGHT\r\nDTSTART:19450814T133000\r\nTZOFFSETTO:-0930\r\nTZOFFSETFROM:-0930\r\nTZNAME:HPT\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:19450930T020000\r\nTZOFFSETTO:-1030\r\nTZOFFSETFROM:-0930\r\nTZNAME:HST\r\nEND:STANDARD\r\nBEGIN:STANDARD\r\nDTSTART:19470608T020000\r\nTZOFFSETTO:-1000\r\nTZOFFSETFROM:-1030\r\nTZNAME:HST\r\nEND:STANDARD\r\nEND:VTIMEZONE","US/Aleutian":"BEGIN:VTIMEZONE\r\nTZID:US/Aleutian\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETTO:-1000\r\nTZOFFSETFROM:-0900\r\nTZNAME:HAST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETTO:-0900\r\nTZOFFSETFROM:-1000\r\nTZNAME:HADT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","America/Phoenix":"BEGIN:VTIMEZONE\r\nTZID:America/Phoenix\r\nBEGIN:STANDARD\r\nDTSTART:19700101T000000\r\nTZOFFSETTO:-0700\r\nTZOFFSETFROM:-0700\r\nEND:STANDARD\r\nEND:VTIMEZONE"};function Ue(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];for(const n of e)t.write(n),t.write("\r\n")}function _e(t){return String(t.getFullYear()).padStart(4,"0")+xe(t.getMonth()+1)+xe(t.getDate())}function Ce(t){const n=t.toISOString();return n.slice(0,4)+n.slice(5,7)+n.slice(8,13)+n.slice(14,16)+n.slice(17,19)+"Z"}function Ge(e,r,o,i){i.dtstamp=o,e.write(function(e,r){const o=r.dtstamp||Ce(new Date);let i=e.render();const a=e.getDesc(),c=e.getAttrs(),u=e.getFlags(),l=Boolean(c.eventTime);let s=l?r.location.name:void 0;if(u&t.flags.DAF_YOMI){const t=i.indexOf(": ");-1!=t&&(s=i.substring(0,t),i=i.substring(t+2))}const f=t.hebcal.getShortUrl(e);let T;if(u&t.flags.PARSHA_HASHAVUA){const t=n.getLeyningForParshaHaShavua(e,r.il);if(T="Torah: ".concat(t.summary),t.reason)for(const e of["7","8","M"])if(t.reason[e]){const r=Number(e)?"".concat(e,"th aliyah"):"Maftir";T+="\\n".concat(r,": ")+n.formatAliyahWithBook(t.fullkriyah[e])+" | "+t.reason[e]}t.haftara&&(T+="\\nHaftarah: "+t.haftara),t.sephardic&&(T+="\\nHaftarah for Sephardim: "+t.sephardic),T+="\\n\\n"+f}else{T=c.memo||"";const t=n.getLeyningForHoliday(e,r.il);t&&(T+="\\nTorah: ".concat(t.summary),t.haftara&&(T+="\\nHaftarah: "+t.haftara)),f&&(T+="\\n\\n"+f)}const g=_e(e.getDate().greg());let E,h,p=g,S="TRANSPARENT",d="FREE";if(l){let[t,n]=c.eventTimeStr.split(":");Number(t)<12&&(t=12+Number(t)),p+="T"+function(t,n,e){return xe(t)+xe(n)+xe(e)}(t,n,0),h=p,E=";TZID=".concat(r.location.tzid);const e=i.indexOf(": ");-1!=e&&(i=i.substring(0,e))}else h=_e(e.getDate().next().greg()),E=";VALUE=DATE",u&t.flags.CHAG&&(S="OPAQUE",d="OOF");const A=Ie(i);let y="hebcal-".concat(g,"-").concat(A);l&&r.location&&(r.location.geoid?y+="-".concat(r.location.geoid):r.location.name&&(y+="-"+t.hebcal.makeAnchor(r.location.name)));i=i.replace(/,/g,"\\,");const v=["BEGIN:VEVENT","DTSTAMP:".concat(o),"CATEGORIES:Holiday","CLASS:PUBLIC","SUMMARY:".concat(i),"DTSTART".concat(E,":").concat(p),"DTEND".concat(E,":").concat(h),"TRANSP:".concat(S),"X-MICROSOFT-CDO-BUSYSTATUS:".concat(d),"UID:".concat(y)];Pe(v,"DESCRIPTION",T),Pe(v,"LOCATION",s),r.location&&v.push("GEO:"+r.location.latitude+";"+r.location.longitude);f&&v.push("URL:".concat(f));let O;e.getFlags()&t.flags.OMER_COUNT?O="3H":e.getFlags()&t.flags.USER_EVENT?O="12H":l&&a.startsWith("Candle lighting")&&(O="10M");O&&v.push("BEGIN:VALARM","ACTION:DISPLAY","DESCRIPTION:REMINDER","TRIGGER;RELATED=START:-PT".concat(O),"END:VALARM");return v.push("END:VEVENT"),v.join("\r\n")}(r,i))}function Pe(t,n,e){if(e){const r=e.replace(/,/g,"\\,").replace(/;/g,"\\;");t.push(n+":"+r)}}function je(t,n,e){t.setHeader("Content-Type","".concat(n,'; filename="').concat(e,'"')),t.setHeader("Content-Disposition","attachment; filename=".concat(e)),t.setHeader("Last-Modified",(new Date).toUTCString())}function Ve(t){let n="hebcal_"+t.year;return t.isHebrewYear&&(n+="H"),t.month&&(n+="_"+t.month),t.location&&t.location.name&&(n+="_"+makeAnchor(t.location.name)),n}var ke=M.f,We=i.Symbol;if(c&&"function"==typeof We&&(!("description"in We.prototype)||void 0!==We().description)){var $e={},ze=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),n=this instanceof ze?new We(t):void 0===t?We():We(t);return""===t&&($e[n]=!0),n};yt(ze,We);var Qe=ze.prototype=We.prototype;Qe.constructor=ze;var Xe=Qe.toString,Ke="Symbol(test)"==String(We("test")),qe=/^Symbol\((.*)\)[^)]+$/;ke(Qe,"description",{configurable:!0,get:function(){var t=d(this)?this.valueOf():this,n=Xe.call(t);if(v($e,t))return"";var e=Ke?n.slice(7,-1):n.replace(qe,"$1");return""===e?void 0:e}}),bt({global:!0,forced:!0},{Symbol:ze})}return{csvWriteContents:function(n,e,r){const o=Ve(r)+".csv";je(n,"text/x-csv",o),n.write('"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"\r\n'),e.forEach(e=>{n.write(function(n,e){const r=n.getDate().greg(),o=r.getDate(),i=r.getMonth()+1,a=String(r.getFullYear()).padStart(4,"0"),c=e.euro?"".concat(o,"/").concat(i,"/").concat(a):"".concat(i,"/").concat(o,"/").concat(a);let u=n.render(),l="",s="",f="",T='"true"';const g=n.getAttrs(),E=Boolean(g.eventTime);if(E){const n=t.hebcal.reformatTimeStr(g.eventTimeStr," PM",e);s=l='"'.concat(n,'"'),f=c,T='"false"';const r=u.indexOf(": ");-1!=r&&(u=u.substring(0,r))}let h="Jewish Holidays";const p=n.getFlags();if(E&&e.location&&e.location.name)h=e.location.name;else if(p&t.flags.DAF_YOMI){const t=u.indexOf(": ");-1!=t&&(h=u.substring(0,t),u=u.substring(t+2))}u=u.replace(/,/g,"").replace(/"/g,"''");const S=(g.memo||"").replace(/,/g,";").replace(/"/g,"''"),d=E||p&t.flags.CHAG?4:3;return'"'.concat(u,'",').concat(c,",").concat(l,",").concat(f,",").concat(s,",").concat(T,',"').concat(S,'",').concat(d,',"').concat(h,'"')}(e,r)),n.write("\r\n")})},icalWriteContents:function(t,n,e,r){const o="text/calendar; charset=UTF-8";if(r.subscribe)t.setHeader("Content-Type",o);else{const n=Ve(r)+".ics";je(t,o,n)}Ue(t,"BEGIN:VCALENDAR");const i=r.location;i&&i.name?e=i.name+" "+e:r.yahrzeit||(e=(r.il?"Israel":"Diaspora")+" "+e),e=e.replace(/,/g,"\\,").replace(/\s+/g," ").trim(),Ue(t,"VERSION:2.0");const a=(r.locale||"en").toUpperCase();Ue(t,"PRODID:-//hebcal.com/NONSGML Hebcal Calendar v7.0//".concat(a),"CALSCALE:GREGORIAN","METHOD:PUBLISH","X-LOTUS-CHARSET:UTF-8","X-PUBLISHED-TTL:PT7D"),Ue(t,e?"X-WR-CALNAME:Hebcal ".concat(e):"X-WR-CALNAME:Hebcal");const c=r.yahrzeit?"Yahrzeits + Anniversaries from www.hebcal.com":"Jewish Holidays from www.hebcal.com";Ue(t,"X-WR-CALDESC:".concat(c)),i&&i.tzid&&(Ue(t,"X-WR-TIMEZONE;VALUE=TEXT:".concat(tzid)),we[tzid]&&Ue(t,we[tzid]));const u=Ce(new Date);n.forEach(n=>Ge(t,n,u,r)),Ue(t,"END:VCALENDAR")},eventToFullCalendar:function(n,e){const r=n.getAttrs(),o=Ze(n);"holiday"==o[0]&&n.getFlags()&t.flags.CHAG&&o.push("yomtov");let i=n.render();const a=n.getDesc();if("Havdalah"==a||"Candle lighting"==a){const t=i.indexOf(":");-1!=t&&(i=i.substring(0,t))}else if(n.getFlags()&t.flags.DAF_YOMI){const t=i.indexOf(":");-1!=t&&(i=i.substring(t+1))}const c={title:i,start:He(n.getDate().greg(),r.eventTimeStr,e),allDay:!Boolean(r.eventTime),className:o.join(" ")},u=t.hebcal.getEventUrl(n);return u&&(c.url=u),r.memo&&(c.description=r.memo),c},getEventCategories:Ze,pad2:xe,timeZoneOffsetStr:Ye,toISOString:Be,toISOStringWithTimezone:He}})); | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@hebcal/core"),require("@hebcal/leyning")):"function"==typeof define&&define.amd?define(["@hebcal/core","@hebcal/leyning"],t):(n=n||self).hebcal__icalendar=t(n.hebcal__core,n.hebcal__leyning)}(this,(function(n,t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(n,t,e){return n(e={path:t,exports:{},require:function(n,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&e.path)}},e.exports),e.exports}var a=function(n){return n&&n.Math==Math&&n},o=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof e&&e)||Function("return this")(),i=function(n){try{return!!n()}catch(n){return!0}},c=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,s={f:l&&!u.call({1:2},1)?function(n){var t=l(this,n);return!!t&&t.enumerable}:u},f=function(n,t){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:t}},T={}.toString,g=function(n){return T.call(n).slice(8,-1)},h="".split,E=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(n){return"String"==g(n)?h.call(n,""):Object(n)}:Object,S=function(n){if(null==n)throw TypeError("Can't call method on "+n);return n},p=function(n){return E(S(n))},d=function(n){return"object"==typeof n?null!==n:"function"==typeof n},A=function(n,t){if(!d(n))return n;var e,r;if(t&&"function"==typeof(e=n.toString)&&!d(r=e.call(n)))return r;if("function"==typeof(e=n.valueOf)&&!d(r=e.call(n)))return r;if(!t&&"function"==typeof(e=n.toString)&&!d(r=e.call(n)))return r;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,v=function(n,t){return y.call(n,t)},O=o.document,D=d(O)&&d(O.createElement),R=function(n){return D?O.createElement(n):{}},N=!c&&!i((function(){return 7!=Object.defineProperty(R("div"),"a",{get:function(){return 7}}).a})),m=Object.getOwnPropertyDescriptor,I={f:c?m:function(n,t){if(n=p(n),t=A(t,!0),N)try{return m(n,t)}catch(n){}if(v(n,t))return f(!s.f.call(n,t),n[t])}},M=function(n){if(!d(n))throw TypeError(String(n)+" is not an object");return n},b=Object.defineProperty,F={f:c?b:function(n,t,e){if(M(n),t=A(t,!0),M(e),N)try{return b(n,t,e)}catch(n){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(n[t]=e.value),n}},L=c?function(n,t,e){return F.f(n,t,f(1,e))}:function(n,t,e){return n[t]=e,n},B=function(n,t){try{L(o,n,t)}catch(e){o[n]=t}return t},C=o["__core-js_shared__"]||B("__core-js_shared__",{}),Y=Function.toString;"function"!=typeof C.inspectSource&&(C.inspectSource=function(n){return Y.call(n)});var G,Z,H,P=C.inspectSource,U=o.WeakMap,x="function"==typeof U&&/native code/.test(P(U)),w=r((function(n){(n.exports=function(n,t){return C[n]||(C[n]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),_=0,j=Math.random(),V=function(n){return"Symbol("+String(void 0===n?"":n)+")_"+(++_+j).toString(36)},k=w("keys"),K=function(n){return k[n]||(k[n]=V(n))},W={},z=o.WeakMap;if(x){var Q=new z,$=Q.get,X=Q.has,J=Q.set;G=function(n,t){return J.call(Q,n,t),t},Z=function(n){return $.call(Q,n)||{}},H=function(n){return X.call(Q,n)}}else{var q=K("state");W[q]=!0,G=function(n,t){return L(n,q,t),t},Z=function(n){return v(n,q)?n[q]:{}},H=function(n){return v(n,q)}}var nn={set:G,get:Z,has:H,enforce:function(n){return H(n)?Z(n):G(n,{})},getterFor:function(n){return function(t){var e;if(!d(t)||(e=Z(t)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return e}}},tn=r((function(n){var t=nn.get,e=nn.enforce,r=String(String).split("String");(n.exports=function(n,t,a,i){var c=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof a&&("string"!=typeof t||v(a,"name")||L(a,"name",t),e(a).source=r.join("string"==typeof t?t:"")),n!==o?(c?!l&&n[t]&&(u=!0):delete n[t],u?n[t]=a:L(n,t,a)):u?n[t]=a:B(t,a)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||P(this)}))})),en=o,rn=function(n){return"function"==typeof n?n:void 0},an=function(n,t){return arguments.length<2?rn(en[n])||rn(o[n]):en[n]&&en[n][t]||o[n]&&o[n][t]},on=Math.ceil,cn=Math.floor,un=function(n){return isNaN(n=+n)?0:(n>0?cn:on)(n)},ln=Math.min,sn=function(n){return n>0?ln(un(n),9007199254740991):0},fn=Math.max,Tn=Math.min,gn=function(n){return function(t,e,r){var a,o=p(t),i=sn(o.length),c=function(n,t){var e=un(n);return e<0?fn(e+t,0):Tn(e,t)}(r,i);if(n&&e!=e){for(;i>c;)if((a=o[c++])!=a)return!0}else for(;i>c;c++)if((n||c in o)&&o[c]===e)return n||c||0;return!n&&-1}},hn={includes:gn(!0),indexOf:gn(!1)}.indexOf,En=function(n,t){var e,r=p(n),a=0,o=[];for(e in r)!v(W,e)&&v(r,e)&&o.push(e);for(;t.length>a;)v(r,e=t[a++])&&(~hn(o,e)||o.push(e));return o},Sn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],pn=Sn.concat("length","prototype"),dn={f:Object.getOwnPropertyNames||function(n){return En(n,pn)}},An={f:Object.getOwnPropertySymbols},yn=an("Reflect","ownKeys")||function(n){var t=dn.f(M(n)),e=An.f;return e?t.concat(e(n)):t},vn=function(n,t){for(var e=yn(t),r=F.f,a=I.f,o=0;o<e.length;o++){var i=e[o];v(n,i)||r(n,i,a(t,i))}},On=/#|\.prototype\./,Dn=function(n,t){var e=Nn[Rn(n)];return e==In||e!=mn&&("function"==typeof t?i(t):!!t)},Rn=Dn.normalize=function(n){return String(n).replace(On,".").toLowerCase()},Nn=Dn.data={},mn=Dn.NATIVE="N",In=Dn.POLYFILL="P",Mn=Dn,bn=I.f,Fn=function(n,t){var e,r,a,i,c,u=n.target,l=n.global,s=n.stat;if(e=l?o:s?o[u]||B(u,{}):(o[u]||{}).prototype)for(r in t){if(i=t[r],a=n.noTargetGet?(c=bn(e,r))&&c.value:e[r],!Mn(l?r:u+(s?".":"#")+r,n.forced)&&void 0!==a){if(typeof i==typeof a)continue;vn(i,a)}(n.sham||a&&a.sham)&&L(i,"sham",!0),tn(e,r,i,n)}},Ln=function(){var n=M(this),t="";return n.global&&(t+="g"),n.ignoreCase&&(t+="i"),n.multiline&&(t+="m"),n.dotAll&&(t+="s"),n.unicode&&(t+="u"),n.sticky&&(t+="y"),t};function Bn(n,t){return RegExp(n,t)}var Cn,Yn,Gn={UNSUPPORTED_Y:i((function(){var n=Bn("a","y");return n.lastIndex=2,null!=n.exec("abcd")})),BROKEN_CARET:i((function(){var n=Bn("^r","gy");return n.lastIndex=2,null!=n.exec("str")}))},Zn=RegExp.prototype.exec,Hn=String.prototype.replace,Pn=Zn,Un=(Cn=/a/,Yn=/b*/g,Zn.call(Cn,"a"),Zn.call(Yn,"a"),0!==Cn.lastIndex||0!==Yn.lastIndex),xn=Gn.UNSUPPORTED_Y||Gn.BROKEN_CARET,wn=void 0!==/()??/.exec("")[1];(Un||wn||xn)&&(Pn=function(n){var t,e,r,a,o=this,i=xn&&o.sticky,c=Ln.call(o),u=o.source,l=0,s=n;return i&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),s=String(n).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==n[o.lastIndex-1])&&(u="(?: "+u+")",s=" "+s,l++),e=new RegExp("^(?:"+u+")",c)),wn&&(e=new RegExp("^"+u+"$(?!\\s)",c)),Un&&(t=o.lastIndex),r=Zn.call(i?e:o,s),i?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:Un&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),wn&&r&&r.length>1&&Hn.call(r[0],e,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r});var _n=Pn;Fn({target:"RegExp",proto:!0,forced:/./.exec!==_n},{exec:_n});var jn=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),Vn=jn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,kn=w("wks"),Kn=o.Symbol,Wn=Vn?Kn:Kn&&Kn.withoutSetter||V,zn=function(n){return v(kn,n)||(jn&&v(Kn,n)?kn[n]=Kn[n]:kn[n]=Wn("Symbol."+n)),kn[n]},Qn=zn("species"),$n=!i((function(){var n=/./;return n.exec=function(){var n=[];return n.groups={a:"7"},n},"7"!=="".replace(n,"$<a>")})),Xn="$0"==="a".replace(/./,"$0"),Jn=zn("replace"),qn=!!/./[Jn]&&""===/./[Jn]("a","$0"),nt=!i((function(){var n=/(?:)/,t=n.exec;n.exec=function(){return t.apply(this,arguments)};var e="ab".split(n);return 2!==e.length||"a"!==e[0]||"b"!==e[1]})),tt=function(n,t,e,r){var a=zn(n),o=!i((function(){var t={};return t[a]=function(){return 7},7!=""[n](t)})),c=o&&!i((function(){var t=!1,e=/a/;return"split"===n&&((e={}).constructor={},e.constructor[Qn]=function(){return e},e.flags="",e[a]=/./[a]),e.exec=function(){return t=!0,null},e[a](""),!t}));if(!o||!c||"replace"===n&&(!$n||!Xn||qn)||"split"===n&&!nt){var u=/./[a],l=e(a,""[n],(function(n,t,e,r,a){return t.exec===_n?o&&!a?{done:!0,value:u.call(t,e,r)}:{done:!0,value:n.call(e,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Xn,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:qn}),s=l[0],f=l[1];tn(String.prototype,n,s),tn(RegExp.prototype,a,2==t?function(n,t){return f.call(n,this,t)}:function(n){return f.call(n,this)})}r&&L(RegExp.prototype[a],"sham",!0)},et=function(n){return Object(S(n))},rt=function(n){return function(t,e){var r,a,o=String(S(t)),i=un(e),c=o.length;return i<0||i>=c?n?"":void 0:(r=o.charCodeAt(i))<55296||r>56319||i+1===c||(a=o.charCodeAt(i+1))<56320||a>57343?n?o.charAt(i):r:n?o.slice(i,i+2):a-56320+(r-55296<<10)+65536}},at={codeAt:rt(!1),charAt:rt(!0)}.charAt,ot=function(n,t,e){return t+(e?at(n,t).length:1)},it=function(n,t){var e=n.exec;if("function"==typeof e){var r=e.call(n,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==g(n))throw TypeError("RegExp#exec called on incompatible receiver");return _n.call(n,t)},ct=Math.max,ut=Math.min,lt=Math.floor,st=/\$([$&'`]|\d\d?|<[^>]*>)/g,ft=/\$([$&'`]|\d\d?)/g;tt("replace",2,(function(n,t,e,r){var a=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=r.REPLACE_KEEPS_$0,i=a?"$":"$0";return[function(e,r){var a=S(this),o=null==e?void 0:e[n];return void 0!==o?o.call(e,a,r):t.call(String(a),e,r)},function(n,r){if(!a&&o||"string"==typeof r&&-1===r.indexOf(i)){var u=e(t,n,this,r);if(u.done)return u.value}var l=M(n),s=String(this),f="function"==typeof r;f||(r=String(r));var T=l.global;if(T){var g=l.unicode;l.lastIndex=0}for(var h=[];;){var E=it(l,s);if(null===E)break;if(h.push(E),!T)break;""===String(E[0])&&(l.lastIndex=ot(s,sn(l.lastIndex),g))}for(var S,p="",d=0,A=0;A<h.length;A++){E=h[A];for(var y=String(E[0]),v=ct(ut(un(E.index),s.length),0),O=[],D=1;D<E.length;D++)O.push(void 0===(S=E[D])?S:String(S));var R=E.groups;if(f){var N=[y].concat(O,v,s);void 0!==R&&N.push(R);var m=String(r.apply(void 0,N))}else m=c(y,s,v,O,R,r);v>=d&&(p+=s.slice(d,v)+m,d=v+y.length)}return p+s.slice(d)}];function c(n,e,r,a,o,i){var c=r+n.length,u=a.length,l=ft;return void 0!==o&&(o=et(o),l=st),t.call(i,l,(function(t,i){var l;switch(i.charAt(0)){case"$":return"$";case"&":return n;case"`":return e.slice(0,r);case"'":return e.slice(c);case"<":l=o[i.slice(1,-1)];break;default:var s=+i;if(0===s)return t;if(s>u){var f=lt(s/10);return 0===f?t:f<=u?void 0===a[f-1]?i.charAt(1):a[f-1]+i.charAt(1):t}l=a[s-1]}return void 0===l?"":l}))}}));var Tt=zn("match"),gt=function(n){var t;return d(n)&&(void 0!==(t=n[Tt])?!!t:"RegExp"==g(n))},ht=zn("species"),Et=function(n,t){var e,r=M(n).constructor;return void 0===r||null==(e=M(r)[ht])?t:function(n){if("function"!=typeof n)throw TypeError(String(n)+" is not a function");return n}(e)},St=[].push,pt=Math.min,dt=!i((function(){return!RegExp(4294967295,"y")}));tt("split",2,(function(n,t,e){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(n,e){var r=String(S(this)),a=void 0===e?4294967295:e>>>0;if(0===a)return[];if(void 0===n)return[r];if(!gt(n))return t.call(r,n,a);for(var o,i,c,u=[],l=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(n.sticky?"y":""),s=0,f=new RegExp(n.source,l+"g");(o=_n.call(f,r))&&!((i=f.lastIndex)>s&&(u.push(r.slice(s,o.index)),o.length>1&&o.index<r.length&&St.apply(u,o.slice(1)),c=o[0].length,s=i,u.length>=a));)f.lastIndex===o.index&&f.lastIndex++;return s===r.length?!c&&f.test("")||u.push(""):u.push(r.slice(s)),u.length>a?u.slice(0,a):u}:"0".split(void 0,0).length?function(n,e){return void 0===n&&0===e?[]:t.call(this,n,e)}:t,[function(t,e){var a=S(this),o=null==t?void 0:t[n];return void 0!==o?o.call(t,a,e):r.call(String(a),t,e)},function(n,a){var o=e(r,n,this,a,r!==t);if(o.done)return o.value;var i=M(n),c=String(this),u=Et(i,RegExp),l=i.unicode,s=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(dt?"y":"g"),f=new u(dt?i:"^(?:"+i.source+")",s),T=void 0===a?4294967295:a>>>0;if(0===T)return[];if(0===c.length)return null===it(f,c)?[c]:[];for(var g=0,h=0,E=[];h<c.length;){f.lastIndex=dt?h:0;var S,p=it(f,dt?c:c.slice(h));if(null===p||(S=pt(sn(f.lastIndex+(dt?0:h)),c.length))===g)h=ot(c,h,l);else{if(E.push(c.slice(g,h)),E.length===T)return E;for(var d=1;d<=p.length-1;d++)if(E.push(p[d]),E.length===T)return E;h=g=S}}return E.push(c.slice(g)),E}]}),!dt);var At,yt=function(n){if(gt(n))throw TypeError("The method doesn't accept regular expressions");return n},vt=zn("match"),Ot=I.f,Dt="".startsWith,Rt=Math.min,Nt=function(n){var t=/./;try{"/./"[n](t)}catch(e){try{return t[vt]=!1,"/./"[n](t)}catch(n){}}return!1}("startsWith"),mt=!(Nt||(At=Ot(String.prototype,"startsWith"),!At||At.writable));Fn({target:"String",proto:!0,forced:!mt&&!Nt},{startsWith:function(n){var t=String(S(this));yt(n);var e=sn(Rt(arguments.length>1?arguments[1]:void 0,t.length)),r=String(n);return Dt?Dt.call(t,r,e):t.slice(e,e+r.length)===r}});var It,Mt={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},bt=Object.keys||function(n){return En(n,Sn)},Ft=c?Object.defineProperties:function(n,t){M(n);for(var e,r=bt(t),a=r.length,o=0;a>o;)F.f(n,e=r[o++],t[e]);return n},Lt=an("document","documentElement"),Bt=K("IE_PROTO"),Ct=function(){},Yt=function(n){return"<script>"+n+"<\/script>"},Gt=function(){try{It=document.domain&&new ActiveXObject("htmlfile")}catch(n){}var n,t;Gt=It?function(n){n.write(Yt("")),n.close();var t=n.parentWindow.Object;return n=null,t}(It):((t=R("iframe")).style.display="none",Lt.appendChild(t),t.src=String("javascript:"),(n=t.contentWindow.document).open(),n.write(Yt("document.F=Object")),n.close(),n.F);for(var e=Sn.length;e--;)delete Gt.prototype[Sn[e]];return Gt()};W[Bt]=!0;var Zt=Object.create||function(n,t){var e;return null!==n?(Ct.prototype=M(n),e=new Ct,Ct.prototype=null,e[Bt]=n):e=Gt(),void 0===t?e:Ft(e,t)},Ht=zn("unscopables"),Pt=Array.prototype;null==Pt[Ht]&&F.f(Pt,Ht,{configurable:!0,value:Zt(null)});var Ut,xt,wt,_t=function(n){Pt[Ht][n]=!0},jt=!i((function(){function n(){}return n.prototype.constructor=null,Object.getPrototypeOf(new n)!==n.prototype})),Vt=K("IE_PROTO"),kt=Object.prototype,Kt=jt?Object.getPrototypeOf:function(n){return n=et(n),v(n,Vt)?n[Vt]:"function"==typeof n.constructor&&n instanceof n.constructor?n.constructor.prototype:n instanceof Object?kt:null},Wt=zn("iterator"),zt=!1;[].keys&&("next"in(wt=[].keys())?(xt=Kt(Kt(wt)))!==Object.prototype&&(Ut=xt):zt=!0),null==Ut&&(Ut={}),v(Ut,Wt)||L(Ut,Wt,(function(){return this}));var Qt={IteratorPrototype:Ut,BUGGY_SAFARI_ITERATORS:zt},$t=F.f,Xt=zn("toStringTag"),Jt=function(n,t,e){n&&!v(n=e?n:n.prototype,Xt)&&$t(n,Xt,{configurable:!0,value:t})},qt=Qt.IteratorPrototype,ne=Object.setPrototypeOf||("__proto__"in{}?function(){var n,t=!1,e={};try{(n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),t=e instanceof Array}catch(n){}return function(e,r){return M(e),function(n){if(!d(n)&&null!==n)throw TypeError("Can't set "+String(n)+" as a prototype")}(r),t?n.call(e,r):e.__proto__=r,e}}():void 0),te=Qt.IteratorPrototype,ee=Qt.BUGGY_SAFARI_ITERATORS,re=zn("iterator"),ae=function(){return this},oe=nn.set,ie=nn.getterFor("Array Iterator"),ce=function(n,t,e,r,a,o,i){!function(n,t,e){var r=t+" Iterator";n.prototype=Zt(qt,{next:f(1,e)}),Jt(n,r,!1)}(e,t,r);var c,u,l,s=function(n){if(n===a&&S)return S;if(!ee&&n in h)return h[n];switch(n){case"keys":case"values":case"entries":return function(){return new e(this,n)}}return function(){return new e(this)}},T=t+" Iterator",g=!1,h=n.prototype,E=h[re]||h["@@iterator"]||a&&h[a],S=!ee&&E||s(a),p="Array"==t&&h.entries||E;if(p&&(c=Kt(p.call(new n)),te!==Object.prototype&&c.next&&(Kt(c)!==te&&(ne?ne(c,te):"function"!=typeof c[re]&&L(c,re,ae)),Jt(c,T,!0))),"values"==a&&E&&"values"!==E.name&&(g=!0,S=function(){return E.call(this)}),h[re]!==S&&L(h,re,S),a)if(u={values:s("values"),keys:o?S:s("keys"),entries:s("entries")},i)for(l in u)(ee||g||!(l in h))&&tn(h,l,u[l]);else Fn({target:t,proto:!0,forced:ee||g},u);return u}(Array,"Array",(function(n,t){oe(this,{type:"Array Iterator",target:p(n),index:0,kind:t})}),(function(){var n=ie(this),t=n.target,e=n.kind,r=n.index++;return!t||r>=t.length?(n.target=void 0,{value:void 0,done:!0}):"keys"==e?{value:r,done:!1}:"values"==e?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");_t("keys"),_t("values"),_t("entries");var ue=zn("iterator"),le=zn("toStringTag"),se=ce.values;for(var fe in Mt){var Te=o[fe],ge=Te&&Te.prototype;if(ge){if(ge[ue]!==se)try{L(ge,ue,se)}catch(n){ge[ue]=se}if(ge[le]||L(ge,le,fe),Mt[fe])for(var he in ce)if(ge[he]!==ce[he])try{L(ge,he,ce[he])}catch(n){ge[he]=ce[he]}}}var Ee=r((function(n){!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(n,t){return n<<t|n>>>32-t},rotr:function(n,t){return n<<32-t|n>>>t},endian:function(n){if(n.constructor==Number)return 16711935&e.rotl(n,8)|4278255360&e.rotl(n,24);for(var t=0;t<n.length;t++)n[t]=e.endian(n[t]);return n},randomBytes:function(n){for(var t=[];n>0;n--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(n){for(var t=[],e=0,r=0;e<n.length;e++,r+=8)t[r>>>5]|=n[e]<<24-r%32;return t},wordsToBytes:function(n){for(var t=[],e=0;e<32*n.length;e+=8)t.push(n[e>>>5]>>>24-e%32&255);return t},bytesToHex:function(n){for(var t=[],e=0;e<n.length;e++)t.push((n[e]>>>4).toString(16)),t.push((15&n[e]).toString(16));return t.join("")},hexToBytes:function(n){for(var t=[],e=0;e<n.length;e+=2)t.push(parseInt(n.substr(e,2),16));return t},bytesToBase64:function(n){for(var e=[],r=0;r<n.length;r+=3)for(var a=n[r]<<16|n[r+1]<<8|n[r+2],o=0;o<4;o++)8*r+6*o<=8*n.length?e.push(t.charAt(a>>>6*(3-o)&63)):e.push("=");return e.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],r=0,a=0;r<n.length;a=++r%4)0!=a&&e.push((t.indexOf(n.charAt(r-1))&Math.pow(2,-2*a+8)-1)<<2*a|t.indexOf(n.charAt(r))>>>6-2*a);return e}};n.exports=e}()})),Se={utf8:{stringToBytes:function(n){return Se.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(Se.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var t=[],e=0;e<n.length;e++)t.push(255&n.charCodeAt(e));return t},bytesToString:function(n){for(var t=[],e=0;e<n.length;e++)t.push(String.fromCharCode(n[e]));return t.join("")}}},pe=Se,de=function(n){return null!=n&&(Ae(n)||function(n){return"function"==typeof n.readFloatLE&&"function"==typeof n.slice&&Ae(n.slice(0,0))}(n)||!!n._isBuffer)};function Ae(n){return!!n.constructor&&"function"==typeof n.constructor.isBuffer&&n.constructor.isBuffer(n)}var ye=r((function(n){!function(){var t=Ee,e=pe.utf8,r=de,a=pe.bin,o=function(n,i){n.constructor==String?n=i&&"binary"===i.encoding?a.stringToBytes(n):e.stringToBytes(n):r(n)?n=Array.prototype.slice.call(n,0):Array.isArray(n)||(n=n.toString());for(var c=t.bytesToWords(n),u=8*n.length,l=1732584193,s=-271733879,f=-1732584194,T=271733878,g=0;g<c.length;g++)c[g]=16711935&(c[g]<<8|c[g]>>>24)|4278255360&(c[g]<<24|c[g]>>>8);c[u>>>5]|=128<<u%32,c[14+(u+64>>>9<<4)]=u;var h=o._ff,E=o._gg,S=o._hh,p=o._ii;for(g=0;g<c.length;g+=16){var d=l,A=s,y=f,v=T;l=h(l,s,f,T,c[g+0],7,-680876936),T=h(T,l,s,f,c[g+1],12,-389564586),f=h(f,T,l,s,c[g+2],17,606105819),s=h(s,f,T,l,c[g+3],22,-1044525330),l=h(l,s,f,T,c[g+4],7,-176418897),T=h(T,l,s,f,c[g+5],12,1200080426),f=h(f,T,l,s,c[g+6],17,-1473231341),s=h(s,f,T,l,c[g+7],22,-45705983),l=h(l,s,f,T,c[g+8],7,1770035416),T=h(T,l,s,f,c[g+9],12,-1958414417),f=h(f,T,l,s,c[g+10],17,-42063),s=h(s,f,T,l,c[g+11],22,-1990404162),l=h(l,s,f,T,c[g+12],7,1804603682),T=h(T,l,s,f,c[g+13],12,-40341101),f=h(f,T,l,s,c[g+14],17,-1502002290),l=E(l,s=h(s,f,T,l,c[g+15],22,1236535329),f,T,c[g+1],5,-165796510),T=E(T,l,s,f,c[g+6],9,-1069501632),f=E(f,T,l,s,c[g+11],14,643717713),s=E(s,f,T,l,c[g+0],20,-373897302),l=E(l,s,f,T,c[g+5],5,-701558691),T=E(T,l,s,f,c[g+10],9,38016083),f=E(f,T,l,s,c[g+15],14,-660478335),s=E(s,f,T,l,c[g+4],20,-405537848),l=E(l,s,f,T,c[g+9],5,568446438),T=E(T,l,s,f,c[g+14],9,-1019803690),f=E(f,T,l,s,c[g+3],14,-187363961),s=E(s,f,T,l,c[g+8],20,1163531501),l=E(l,s,f,T,c[g+13],5,-1444681467),T=E(T,l,s,f,c[g+2],9,-51403784),f=E(f,T,l,s,c[g+7],14,1735328473),l=S(l,s=E(s,f,T,l,c[g+12],20,-1926607734),f,T,c[g+5],4,-378558),T=S(T,l,s,f,c[g+8],11,-2022574463),f=S(f,T,l,s,c[g+11],16,1839030562),s=S(s,f,T,l,c[g+14],23,-35309556),l=S(l,s,f,T,c[g+1],4,-1530992060),T=S(T,l,s,f,c[g+4],11,1272893353),f=S(f,T,l,s,c[g+7],16,-155497632),s=S(s,f,T,l,c[g+10],23,-1094730640),l=S(l,s,f,T,c[g+13],4,681279174),T=S(T,l,s,f,c[g+0],11,-358537222),f=S(f,T,l,s,c[g+3],16,-722521979),s=S(s,f,T,l,c[g+6],23,76029189),l=S(l,s,f,T,c[g+9],4,-640364487),T=S(T,l,s,f,c[g+12],11,-421815835),f=S(f,T,l,s,c[g+15],16,530742520),l=p(l,s=S(s,f,T,l,c[g+2],23,-995338651),f,T,c[g+0],6,-198630844),T=p(T,l,s,f,c[g+7],10,1126891415),f=p(f,T,l,s,c[g+14],15,-1416354905),s=p(s,f,T,l,c[g+5],21,-57434055),l=p(l,s,f,T,c[g+12],6,1700485571),T=p(T,l,s,f,c[g+3],10,-1894986606),f=p(f,T,l,s,c[g+10],15,-1051523),s=p(s,f,T,l,c[g+1],21,-2054922799),l=p(l,s,f,T,c[g+8],6,1873313359),T=p(T,l,s,f,c[g+15],10,-30611744),f=p(f,T,l,s,c[g+6],15,-1560198380),s=p(s,f,T,l,c[g+13],21,1309151649),l=p(l,s,f,T,c[g+4],6,-145523070),T=p(T,l,s,f,c[g+11],10,-1120210379),f=p(f,T,l,s,c[g+2],15,718787259),s=p(s,f,T,l,c[g+9],21,-343485551),l=l+d>>>0,s=s+A>>>0,f=f+y>>>0,T=T+v>>>0}return t.endian([l,s,f,T])};o._ff=function(n,t,e,r,a,o,i){var c=n+(t&e|~t&r)+(a>>>0)+i;return(c<<o|c>>>32-o)+t},o._gg=function(n,t,e,r,a,o,i){var c=n+(t&r|e&~r)+(a>>>0)+i;return(c<<o|c>>>32-o)+t},o._hh=function(n,t,e,r,a,o,i){var c=n+(t^e^r)+(a>>>0)+i;return(c<<o|c>>>32-o)+t},o._ii=function(n,t,e,r,a,o,i){var c=n+(e^(t|~r))+(a>>>0)+i;return(c<<o|c>>>32-o)+t},o._blocksize=16,o._digestsize=16,n.exports=function(n,e){if(null==n)throw new Error("Illegal argument "+n);var r=t.wordsToBytes(o(n,e));return e&&e.asBytes?r:e&&e.asString?a.bytesToString(r):t.bytesToHex(r)}}()}));const ve=new Map;const Oe=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function De(n,t){const e=function(n){const t=ve.get(n);if(t)return t;const e=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:n});return ve.set(n,e),e}(n).format(t);let[,r,a,o,i,c,u]=Oe.exec(e);return"24"==i&&(i="00"),"".concat(o,"-").concat(r,"-").concat(a,"T").concat(i,":").concat(c,":").concat(u,"Z")}function Re(n){return n<10?"0"+n:String(n)}function Ne(n,t){const e=function(n,t){const e=De("UTC",t),r=De(n,t),a=new Date(e).getTime()-new Date(r).getTime();return Math.ceil(a/1e3/60)}(n,t),r=Math.abs(e),a=r%60;return(Boolean(e<0)?"+":"-")+Re(Math.floor(r/60))+":"+Re(a)}function me(n){return n.getFullYear()+"-"+Re(n.getMonth()+1)+"-"+Re(n.getDate())}function Ie(n,t,e){const r=me(n);return t?r+"T"+t+":00"+Ne(e,n):r}function Me(t){switch(t.getFlags()){case n.flags.OMER_COUNT:return["omer"];case n.flags.HEBREW_DATE:return["hebdate"];case n.flags.PARSHA_HASHAVUA:return["parashat"];case n.flags.DAF_YOMI:return["dafyomi"];case n.flags.ROSH_CHODESH:return["roshchodesh"];case n.flags.SPECIAL_SHABBAT:return["holiday","shabbat"];case n.flags.MINOR_FAST:return["holiday","fast"];case n.flags.MODERN_HOLIDAY:return["holiday","modern"];case n.flags.SHABBAT_MEVARCHIM:return["mevarchim"]}if(t.getAttrs().cholHaMoedDay)return["holiday","major","cholhamoed"];switch(t.getDesc()){case"Havdalah":return["havdalah"];case"Candle lighting":return["candles"];case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":return["holiday","minor"];default:return["holiday","major"]}}const be={"US/Eastern":"BEGIN:VTIMEZONE\r\nTZID:US/Eastern\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETTO:-0500\r\nTZOFFSETFROM:-0400\r\nTZNAME:EST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETTO:-0400\r\nTZOFFSETFROM:-0500\r\nTZNAME:EDT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","US/Central":"BEGIN:VTIMEZONE\r\nTZID:US/Central\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETTO:-0600\r\nTZOFFSETFROM:-0500\r\nTZNAME:CST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETTO:-0500\r\nTZOFFSETFROM:-0600\r\nTZNAME:CDT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","US/Mountain":"BEGIN:VTIMEZONE\r\nTZID:US/Mountain\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETTO:-0700\r\nTZOFFSETFROM:-0600\r\nTZNAME:MST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETTO:-0600\r\nTZOFFSETFROM:-0700\r\nTZNAME:MDT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","US/Pacific":"BEGIN:VTIMEZONE\r\nTZID:US/Pacific\r\nX-MICROSOFT-CDO-TZID:13\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETFROM:-0700\r\nTZOFFSETTO:-0800\r\nTZNAME:PST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETFROM:-0800\r\nTZOFFSETTO:-0700\r\nTZNAME:PDT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","US/Alaska":"BEGIN:VTIMEZONE\r\nTZID:US/Alaska\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETTO:-0900\r\nTZOFFSETFROM:+0000\r\nTZNAME:AKST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETTO:-0800\r\nTZOFFSETFROM:-0900\r\nTZNAME:AKDT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","US/Hawaii":"BEGIN:VTIMEZONE\r\nTZID:US/Hawaii\r\nLAST-MODIFIED:20060309T044821Z\r\nBEGIN:DAYLIGHT\r\nDTSTART:19330430T123000\r\nTZOFFSETTO:-0930\r\nTZOFFSETFROM:+0000\r\nTZNAME:HDT\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:19330521T020000\r\nTZOFFSETTO:-1030\r\nTZOFFSETFROM:-0930\r\nTZNAME:HST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19420209T020000\r\nTZOFFSETTO:-0930\r\nTZOFFSETFROM:-1030\r\nTZNAME:HWT\r\nEND:DAYLIGHT\r\nBEGIN:DAYLIGHT\r\nDTSTART:19450814T133000\r\nTZOFFSETTO:-0930\r\nTZOFFSETFROM:-0930\r\nTZNAME:HPT\r\nEND:DAYLIGHT\r\nBEGIN:STANDARD\r\nDTSTART:19450930T020000\r\nTZOFFSETTO:-1030\r\nTZOFFSETFROM:-0930\r\nTZNAME:HST\r\nEND:STANDARD\r\nBEGIN:STANDARD\r\nDTSTART:19470608T020000\r\nTZOFFSETTO:-1000\r\nTZOFFSETFROM:-1030\r\nTZNAME:HST\r\nEND:STANDARD\r\nEND:VTIMEZONE","US/Aleutian":"BEGIN:VTIMEZONE\r\nTZID:US/Aleutian\r\nBEGIN:STANDARD\r\nDTSTART:19701101T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU\r\nTZOFFSETTO:-1000\r\nTZOFFSETFROM:-0900\r\nTZNAME:HAST\r\nEND:STANDARD\r\nBEGIN:DAYLIGHT\r\nDTSTART:19700308T020000\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU\r\nTZOFFSETTO:-0900\r\nTZOFFSETFROM:-1000\r\nTZNAME:HADT\r\nEND:DAYLIGHT\r\nEND:VTIMEZONE","America/Phoenix":"BEGIN:VTIMEZONE\r\nTZID:America/Phoenix\r\nBEGIN:STANDARD\r\nDTSTART:19700101T000000\r\nTZOFFSETTO:-0700\r\nTZOFFSETFROM:-0700\r\nEND:STANDARD\r\nEND:VTIMEZONE"};function Fe(n){return String(n.getFullYear()).padStart(4,"0")+Re(n.getMonth()+1)+Re(n.getDate())}function Le(n){const t=n.toISOString();return t.slice(0,4)+t.slice(5,7)+t.slice(8,13)+t.slice(14,16)+t.slice(17,19)+"Z"}function Be(n,t,e){if(e){const r=e.replace(/,/g,"\\,").replace(/;/g,"\\;");n.push(t+":"+r)}}function Ce(e,r){const a=r.dtstamp||Le(new Date);let o=e.render();const i=e.getDesc(),c=e.getAttrs(),u=e.getFlags(),l=Boolean(c.eventTime);let s=l?r.location.name:void 0;if(u&n.flags.DAF_YOMI){const n=o.indexOf(": ");-1!=n&&(s=o.substring(0,n),o=o.substring(n+2))}const f=n.hebcal.getShortUrl(e);let T;if(u&n.flags.PARSHA_HASHAVUA){const n=t.getLeyningForParshaHaShavua(e,r.il);if(T="Torah: ".concat(n.summary),n.reason)for(const e of["7","8","M"])if(n.reason[e]){const r=Number(e)?"".concat(e,"th aliyah"):"Maftir";T+="\\n".concat(r,": ")+t.formatAliyahWithBook(n.fullkriyah[e])+" | "+n.reason[e]}n.haftara&&(T+="\\nHaftarah: "+n.haftara),n.sephardic&&(T+="\\nHaftarah for Sephardim: "+n.sephardic),T+="\\n\\n"+f}else{T=c.memo||"";const n=t.getLeyningForHoliday(e,r.il);n&&(T+="\\nTorah: ".concat(n.summary),n.haftara&&(T+="\\nHaftarah: "+n.haftara)),f&&(T+="\\n\\n"+f)}const g=Fe(e.getDate().greg());let h,E,S=g,p="TRANSPARENT",d="FREE";if(l){let[n,t]=c.eventTimeStr.split(":");Number(n)<12&&(n=12+Number(n)),S+="T"+function(n,t,e){return Re(n)+Re(t)+Re(e)}(n,t,0),E=S,h=";TZID=".concat(r.location.tzid);const e=o.indexOf(": ");-1!=e&&(o=o.substring(0,e))}else E=Fe(e.getDate().next().greg()),h=";VALUE=DATE",u&n.flags.CHAG&&(p="OPAQUE",d="OOF");const A=ye(o);let y="hebcal-".concat(g,"-").concat(A);l&&r.location&&(r.location.geoid?y+="-".concat(r.location.geoid):r.location.name&&(y+="-"+n.hebcal.makeAnchor(r.location.name))),o=o.replace(/,/g,"\\,");const v=["BEGIN:VEVENT","DTSTAMP:".concat(a),"CATEGORIES:Holiday","CLASS:PUBLIC","SUMMARY:".concat(o),"DTSTART".concat(h,":").concat(S),"DTEND".concat(h,":").concat(E),"TRANSP:".concat(p),"X-MICROSOFT-CDO-BUSYSTATUS:".concat(d),"UID:".concat(y)];let O;return Be(v,"DESCRIPTION",T),Be(v,"LOCATION",s),r.location&&v.push("GEO:"+r.location.latitude+";"+r.location.longitude),f&&v.push("URL:".concat(f)),e.getFlags()&n.flags.OMER_COUNT?O="3H":e.getFlags()&n.flags.USER_EVENT?O="12H":l&&i.startsWith("Candle lighting")&&(O="10M"),O&&v.push("BEGIN:VALARM","ACTION:DISPLAY","DESCRIPTION:REMINDER","TRIGGER;RELATED=START:-PT".concat(O),"END:VALARM"),v.push("END:VEVENT"),v.join("\r\n")}const Ye='"Subject","Start Date","Start Time","End Date","End Time","All day event","Description","Show time as","Location"';function Ge(t,e){const r=t.getDate().greg(),a=r.getDate(),o=r.getMonth()+1,i=String(r.getFullYear()).padStart(4,"0"),c=e.euro?"".concat(a,"/").concat(o,"/").concat(i):"".concat(o,"/").concat(a,"/").concat(i);let u=t.render(),l="",s="",f="",T='"true"';const g=t.getAttrs(),h=Boolean(g.eventTime);if(h){const t=n.hebcal.reformatTimeStr(g.eventTimeStr," PM",e);s=l='"'.concat(t,'"'),f=c,T='"false"';const r=u.indexOf(": ");-1!=r&&(u=u.substring(0,r))}let E="Jewish Holidays";const S=t.getFlags();if(h&&e.location&&e.location.name)E=e.location.name;else if(S&n.flags.DAF_YOMI){const n=u.indexOf(": ");-1!=n&&(E=u.substring(0,n),u=u.substring(n+2))}u=u.replace(/,/g,"").replace(/"/g,"''");const p=(g.memo||"").replace(/,/g,";").replace(/"/g,"''"),d=h||S&n.flags.CHAG?4:3;return'"'.concat(u,'",').concat(c,",").concat(l,",").concat(f,",").concat(s,",").concat(T,',"').concat(p,'",').concat(d,',"').concat(E,'"')}var Ze=F.f,He=o.Symbol;if(c&&"function"==typeof He&&(!("description"in He.prototype)||void 0!==He().description)){var Pe={},Ue=function(){var n=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof Ue?new He(n):void 0===n?He():He(n);return""===n&&(Pe[t]=!0),t};vn(Ue,He);var xe=Ue.prototype=He.prototype;xe.constructor=Ue;var we=xe.toString,_e="Symbol(test)"==String(He("test")),je=/^Symbol\((.*)\)[^)]+$/;Ze(xe,"description",{configurable:!0,get:function(){var n=d(this)?this.valueOf():this,t=we.call(n);if(v(Pe,n))return"";var e=_e?t.slice(7,-1):t.replace(je,"$1");return""===e?void 0:e}}),Fn({global:!0,forced:!0},{Symbol:Ue})}return{countryNames:{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"},eventToCsv:Ge,eventsToCsv:function(n,t){return[Ye].concat(n.map(n=>Ge(n,t))).join("\r\n")},eventToIcal:Ce,eventsToIcalendar:function(n,t){let e=[];e.push("BEGIN:VCALENDAR"),e.push("VERSION:2.0");const r=(t.locale||"en").toUpperCase();e.push("PRODID:-//hebcal.com/NONSGML Hebcal Calendar v7.0//".concat(r),"CALSCALE:GREGORIAN","METHOD:PUBLISH","X-LOTUS-CHARSET:UTF-8","X-PUBLISHED-TTL:PT7D");const a=function(n,t){let e="Hebcal";const r=t.location;if(t.yahrzeit?e+=" Yahrzeits and Anniversaries":r&&r.name?e+=" "+r.name:t.il?e+=" Israel":e+=" Diaspora",t.isHebrewYear)e+=" "+t.year;else{const t=n[0].getDate().greg(),r=n[n.length-1].getDate().greg();if(t.getFullYear()!=r.getFullYear())e+=" "+t.getFullYear()+"-"+r.getFullYear();else if(t.getMonth()==r.getMonth()){e+=" "+new Intl.DateTimeFormat("en-US",{month:"long"}).format(t)+" "+t.getFullYear()}else e+=" "+t.getFullYear()}return e}(n,t);e.push("X-WR-CALNAME:".concat(a));const o=t.yahrzeit?"Yahrzeits + Anniversaries from www.hebcal.com":"Jewish Holidays from www.hebcal.com";e.push("X-WR-CALDESC:".concat(o));const i=t.location;if(i&&i.tzid){const n=i.tzid;e.push("X-WR-TIMEZONE;VALUE=TEXT:".concat(n)),be[n]&&e.push(be[n])}return t.dtstamp=Le(new Date),e=e.concat(n.map(n=>Ce(n,t))),e.push("END:VCALENDAR"),e.join("\r\n")},eventToFullCalendar:function(t,e){const r=t.getAttrs(),a=Me(t);"holiday"==a[0]&&t.getFlags()&n.flags.CHAG&&a.push("yomtov");let o=t.render();const i=t.getDesc();if("Havdalah"==i||"Candle lighting"==i){const n=o.indexOf(":");-1!=n&&(o=o.substring(0,n))}else if(t.getFlags()&n.flags.DAF_YOMI){const n=o.indexOf(":");-1!=n&&(o=o.substring(n+1))}const c={title:o,start:Ie(t.getDate().greg(),r.eventTimeStr,e),allDay:!Boolean(r.eventTime),className:a.join(" ")},u=n.hebcal.getEventUrl(t);return u&&(c.url=u),r.memo&&(c.description=r.memo),c},getEventCategories:Me,pad2:Re,timeZoneOffsetStr:Ne,toISOString:me,toISOStringWithTimezone:Ie}})); |
{ | ||
"name": "@hebcal/icalendar", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"author": "Michael J. Radwin (https://github.com/mjradwin)", | ||
@@ -21,4 +21,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@hebcal/core": "^1.1.0", | ||
"@hebcal/leyning": "^1.0.10" | ||
"@hebcal/core": "^1.1.4", | ||
"@hebcal/leyning": "^1.1.2" | ||
}, | ||
@@ -57,2 +57,3 @@ "scripts": { | ||
"@rollup/plugin-commonjs": "^12.0.0", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^8.0.0", | ||
@@ -63,3 +64,2 @@ "ava": "^3.8.2", | ||
"eslint-config-google": "^0.14.0", | ||
"get-timezone-offset": "^1.0.4", | ||
"jsdoc": "^3.6.4", | ||
@@ -66,0 +66,0 @@ "jsdoc-to-markdown": "^5.0.3", |
316
README.md
# hebcal-icalendar | ||
Jewish holidays and Hebrew calendar as iCalendar RFC 2445 | ||
## Installation | ||
```bash | ||
$ npm install @hebcal/icalendar | ||
``` | ||
## Synopsis | ||
```javascript | ||
import {hebcal, Location} from '@hebcal/core'; | ||
import icalendar from '@hebcal/icalendar'; | ||
const options = { | ||
year: 2020, | ||
month: 2, | ||
sedrot: true, | ||
candlelighting: true, | ||
location: Location.lookup('Hawaii'), | ||
}; | ||
const events = hebcal.hebrewCalendar(options); | ||
console.log(icalendar.eventsToIcalendar(ev, options)); | ||
``` | ||
## Constants | ||
<dl> | ||
<dt><a href="#icalendar">icalendar</a></dt> | ||
<dd><p>Main interface to hebcal/icalendar</p> | ||
</dd> | ||
</dl> | ||
## Functions | ||
<dl> | ||
<dt><a href="#getFormatter">getFormatter(tzid)</a> ⇒ <code>Intl.DateTimeFormat</code></dt> | ||
<dd></dd> | ||
<dt><a href="#getPseudoISO">getPseudoISO(tzid, date)</a> ⇒ <code>string</code></dt> | ||
<dd></dd> | ||
<dt><a href="#getTimezoneOffset">getTimezoneOffset(tzid, date)</a> ⇒ <code>number</code></dt> | ||
<dd></dd> | ||
<dt><a href="#pad2">pad2(number)</a> ⇒ <code>string</code></dt> | ||
<dd></dd> | ||
<dt><a href="#timeZoneOffsetStr">timeZoneOffsetStr(tzid, date)</a> ⇒ <code>string</code></dt> | ||
<dd><p>Get offset string (like "+05:00" or "-08:00") from tzid (like "Europe/Moscow")</p> | ||
</dd> | ||
<dt><a href="#toISOString">toISOString(d)</a> ⇒ <code>string</code></dt> | ||
<dd><p>Returns just the date portion as YYYY-MM-DD</p> | ||
</dd> | ||
<dt><a href="#toISOStringWithTimezone">toISOStringWithTimezone(date, timeStr, tzid)</a> ⇒ <code>string</code></dt> | ||
<dd><p>Returns a string like "2018-09-01T12:30:00-05:00'"</p> | ||
</dd> | ||
<dt><a href="#getEventCategories">getEventCategories(ev)</a> ⇒ <code>Array.<string></code></dt> | ||
<dd><p>Returns a category and subcategory name</p> | ||
</dd> | ||
<dt><a href="#icalWriteLine">icalWriteLine(res, ...str)</a></dt> | ||
<dd></dd> | ||
<dt><a href="#formatYYYYMMDD">formatYYYYMMDD(d)</a> ⇒ <code>string</code></dt> | ||
<dd></dd> | ||
<dt><a href="#formatTime">formatTime(hour, min, sec)</a> ⇒ <code>string</code></dt> | ||
<dd></dd> | ||
<dt><a href="#makeDtstamp">makeDtstamp(dt)</a> ⇒ <code>string</code></dt> | ||
<dd><p>Returns UTC string for iCalendar</p> | ||
</dd> | ||
<dt><a href="#icalWriteEvent">icalWriteEvent(res, e, dtstamp, options)</a></dt> | ||
<dd></dd> | ||
<dt><a href="#addOptional">addOptional(arr, key, val)</a></dt> | ||
<dd></dd> | ||
<dt><a href="#eventToIcal">eventToIcal(e, options)</a> ⇒ <code>string</code></dt> | ||
<dd></dd> | ||
<dt><a href="#exportHttpHeader">exportHttpHeader(res, mimeType, fileName)</a></dt> | ||
<dd></dd> | ||
<dt><a href="#icalWriteContents">icalWriteContents(res, events, options)</a></dt> | ||
<dd></dd> | ||
<dt><a href="#getDownloadFilename">getDownloadFilename(options)</a> ⇒ <code>string</code></dt> | ||
<dd></dd> | ||
<dt><a href="#eventToCsv">eventToCsv(e, options)</a> ⇒ <code>string</code></dt> | ||
<dd><p>Renders an Event as a string</p> | ||
</dd> | ||
<dt><a href="#csvWriteContents">csvWriteContents(res, events, options)</a></dt> | ||
<dd></dd> | ||
<dt><a href="#eventToFullCalendar">eventToFullCalendar(ev, tzid)</a> ⇒ <code>Object</code></dt> | ||
<dd><p>Converts a Hebcal event to a FullCalendar.io object</p> | ||
</dd> | ||
</dl> | ||
<a name="icalendar"></a> | ||
## icalendar | ||
Main interface to hebcal/icalendar | ||
**Kind**: global constant | ||
<a name="getFormatter"></a> | ||
## getFormatter(tzid) ⇒ <code>Intl.DateTimeFormat</code> | ||
**Kind**: global function | ||
| Param | Type | | ||
| --- | --- | | ||
| tzid | <code>string</code> | | ||
<a name="getPseudoISO"></a> | ||
## getPseudoISO(tzid, date) ⇒ <code>string</code> | ||
**Kind**: global function | ||
| Param | Type | | ||
| --- | --- | | ||
| tzid | <code>string</code> | | ||
| date | <code>Date</code> | | ||
<a name="getTimezoneOffset"></a> | ||
## getTimezoneOffset(tzid, date) ⇒ <code>number</code> | ||
**Kind**: global function | ||
| Param | Type | | ||
| --- | --- | | ||
| tzid | <code>string</code> | | ||
| date | <code>Date</code> | | ||
<a name="pad2"></a> | ||
## pad2(number) ⇒ <code>string</code> | ||
**Kind**: global function | ||
| Param | Type | | ||
| --- | --- | | ||
| number | <code>number</code> | | ||
<a name="timeZoneOffsetStr"></a> | ||
## timeZoneOffsetStr(tzid, date) ⇒ <code>string</code> | ||
Get offset string (like "+05:00" or "-08:00") from tzid (like "Europe/Moscow") | ||
**Kind**: global function | ||
| Param | Type | | ||
| --- | --- | | ||
| tzid | <code>string</code> | | ||
| date | <code>Date</code> | | ||
<a name="toISOString"></a> | ||
## toISOString(d) ⇒ <code>string</code> | ||
Returns just the date portion as YYYY-MM-DD | ||
**Kind**: global function | ||
| Param | Type | | ||
| --- | --- | | ||
| d | <code>Date</code> | | ||
<a name="toISOStringWithTimezone"></a> | ||
## toISOStringWithTimezone(date, timeStr, tzid) ⇒ <code>string</code> | ||
Returns a string like "2018-09-01T12:30:00-05:00'" | ||
**Kind**: global function | ||
| Param | Type | Description | | ||
| --- | --- | --- | | ||
| date | <code>Date</code> | | | ||
| timeStr | <code>string</code> | must be formatted with only hours and minutes, like "17:12" | | ||
| tzid | <code>string</code> | like "America/New_York" | | ||
<a name="getEventCategories"></a> | ||
## getEventCategories(ev) ⇒ <code>Array.<string></code> | ||
Returns a category and subcategory name | ||
**Kind**: global function | ||
| Param | Type | | ||
| --- | --- | | ||
| ev | <code>Event</code> | | ||
<a name="icalWriteLine"></a> | ||
## icalWriteLine(res, ...str) | ||
**Kind**: global function | ||
| Param | Type | | ||
| --- | --- | | ||
| res | <code>stream.Writable</code> | | ||
| ...str | <code>string</code> | | ||
<a name="formatYYYYMMDD"></a> | ||
## formatYYYYMMDD(d) ⇒ <code>string</code> | ||
**Kind**: global function | ||
| Param | Type | | ||
| --- | --- | | ||
| d | <code>Date</code> | | ||
<a name="formatTime"></a> | ||
## formatTime(hour, min, sec) ⇒ <code>string</code> | ||
**Kind**: global function | ||
| Param | Type | | ||
| --- | --- | | ||
| hour | <code>number</code> \| <code>string</code> | | ||
| min | <code>number</code> \| <code>string</code> | | ||
| sec | <code>number</code> \| <code>string</code> | | ||
<a name="makeDtstamp"></a> | ||
## makeDtstamp(dt) ⇒ <code>string</code> | ||
Returns UTC string for iCalendar | ||
**Kind**: global function | ||
| Param | Type | | ||
| --- | --- | | ||
| dt | <code>Date</code> | | ||
<a name="icalWriteEvent"></a> | ||
## icalWriteEvent(res, e, dtstamp, options) | ||
**Kind**: global function | ||
| Param | Type | | ||
| --- | --- | | ||
| res | <code>stream.Writable</code> | | ||
| e | <code>Event</code> | | ||
| dtstamp | <code>string</code> | | ||
| options | <code>hebcal.HebcalOptions</code> | | ||
<a name="addOptional"></a> | ||
## addOptional(arr, key, val) | ||
**Kind**: global function | ||
| Param | Type | | ||
| --- | --- | | ||
| arr | <code>Array.<string></code> | | ||
| key | <code>string</code> | | ||
| val | <code>string</code> | | ||
<a name="eventToIcal"></a> | ||
## eventToIcal(e, options) ⇒ <code>string</code> | ||
**Kind**: global function | ||
**Returns**: <code>string</code> - multi-line result, delimited by \r\n | ||
| Param | Type | | ||
| --- | --- | | ||
| e | <code>Event</code> | | ||
| options | <code>hebcal.HebcalOptions</code> | | ||
<a name="exportHttpHeader"></a> | ||
## exportHttpHeader(res, mimeType, fileName) | ||
**Kind**: global function | ||
| Param | Type | | ||
| --- | --- | | ||
| res | <code>stream.Writable</code> | | ||
| mimeType | <code>string</code> | | ||
| fileName | <code>string</code> | | ||
<a name="icalWriteContents"></a> | ||
## icalWriteContents(res, events, options) | ||
**Kind**: global function | ||
| Param | Type | | ||
| --- | --- | | ||
| res | <code>stream.Writable</code> | | ||
| events | <code>Array.<Event></code> | | ||
| options | <code>hebcal.HebcalOptions</code> | | ||
<a name="getDownloadFilename"></a> | ||
## getDownloadFilename(options) ⇒ <code>string</code> | ||
**Kind**: global function | ||
| Param | Type | | ||
| --- | --- | | ||
| options | <code>hebcal.HebcalOptions</code> | | ||
<a name="eventToCsv"></a> | ||
## eventToCsv(e, options) ⇒ <code>string</code> | ||
Renders an Event as a string | ||
**Kind**: global function | ||
| Param | Type | | ||
| --- | --- | | ||
| e | <code>Event</code> | | ||
| options | <code>hebcal.HebcalOptions</code> | | ||
<a name="csvWriteContents"></a> | ||
## csvWriteContents(res, events, options) | ||
**Kind**: global function | ||
| Param | Type | | ||
| --- | --- | | ||
| res | <code>stream.Writable</code> | | ||
| events | <code>Array.<Event></code> | | ||
| options | <code>hebcal.HebcalOptions</code> | | ||
<a name="eventToFullCalendar"></a> | ||
## eventToFullCalendar(ev, tzid) ⇒ <code>Object</code> | ||
Converts a Hebcal event to a FullCalendar.io object | ||
**Kind**: global function | ||
| Param | Type | Description | | ||
| --- | --- | --- | | ||
| ev | <code>Event</code> | | | ||
| tzid | <code>string</code> | timeZone identifier | | ||
import resolve from '@rollup/plugin-node-resolve'; | ||
import commonjs from '@rollup/plugin-commonjs'; | ||
import babel from '@rollup/plugin-babel'; | ||
import json from '@rollup/plugin-json'; | ||
import pkg from './package.json'; | ||
@@ -24,2 +25,3 @@ import {terser} from 'rollup-plugin-terser'; | ||
plugins: [ | ||
json({compact: true}), | ||
babel({ | ||
@@ -26,0 +28,0 @@ babelHelpers: 'bundled', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
151816
14
319
2543
Updated@hebcal/core@^1.1.4
Updated@hebcal/leyning@^1.1.2