1const atcbVersion="1.4.3";function atcb_init(){console.log("add-to-calendar button initialized (version "+atcbVersion+")"),console.log("See https://github.com/jekuer/add-to-calendar-button for details");let a=document.querySelectorAll(".atcb");if(0<a.length){var n=document.querySelectorAll(".atcb_initialized");for(let t=0;t<a.length;t++)if(!a[t].classList.contains("atcb_initialized")){let e;var l=a[t].querySelector("script");l&&l.innerHTML?(e=JSON.parse(l.innerHTML),e=atcb_clean_schema_json(e),e.deleteJSON=!1):(e=JSON.parse(a[t].innerHTML),e.deleteJSON=!0),e=atcb_rewrite_config(e),atcb_check_required(e)&&(e.startDate=atcb_date_calculation(e.startDate),e.endDate=atcb_date_calculation(e.endDate),atcb_validate(e)&&atcb_generate(a[t],t+n.length,e))}}}function atcb_clean_schema_json(a){Object.keys(a.event).forEach(e=>{"@"!==e.charAt(0)&&(a[e]=a.event[e])});return["start","end"].forEach(function(e){var t;null==a[e+"Date"]||null!=(t=a[e+"Date"].split("T"))[1]&&(a[e+"Date"]=t[0],a[e+"Time"]=t[1])}),delete a.event,a}function atcb_rewrite_config(t){const a={title:"name",dateStart:"startDate",dateEnd:"endDate",timeStart:"startTime",timeEnd:"endTime"};return Object.keys(a).forEach(e=>{null==t[a[e]]&&null!=t[e]&&(t[a[e]]=t[e])}),t}function atcb_check_required(t){if(null==t.options||t.options.length<1)return console.log("add-to-calendar button generation failed: no options set"),!1;return["name","startDate","endDate"].every(function(e){return null!=t[e]&&""!=t[e]||(console.log("add-to-calendar button generation failed: required setting missing ["+e+"]"),!1)})}function atcb_date_calculation(e){let t=new Date;var a=t.getMonth()+1+"-"+t.getDate()+"-"+t.getFullYear();const n=(e=e.replace(/today/gi,a)).split("+");a=n[0].split("-");let l=new Date(a[2],a[0]-1,a[1]);return null!=n[1]&&0<n[1]&&l.setDate(l.getDate()+parseInt(n[1])),(l.getMonth()+1<10?"0":"")+(l.getMonth()+1)+"-"+(l.getDate()<10?"0":"")+l.getDate()+"-"+l.getFullYear()}function atcb_validate(a){const t=["Apple","Google","iCal","Microsoft365","Outlook.com","Yahoo"];if(!a.options.every(function(e){e=e.split("|");return!!t.includes(e[0])||(console.log("add-to-calendar button generation failed: invalid option ["+e[0]+"]"),!1)}))return!1;const e=["startDate","endDate"];let n=e;if(!e.every(function(e){var t=a[e].split("-");return t.length<3||3<t.length?(console.log("add-to-calendar button generation failed: date misspelled ["+e+": "+a[e]+"]"),!1):(n[e]=new Date(t[2],t[0]-1,t[1]),!0)}))return!1;return!!["startTime","endTime"].every(function(e){if(null!=a[e]){var t=a[e].split(":");if(t.length<2||2<t.length)return console.log("add-to-calendar button generation failed: time misspelled ["+e+": "+a[e]+"]"),!1;if(23<t[0])return console.log("add-to-calendar button generation failed: time misspelled - hours number too high ["+e+": "+t[0]+"]"),!1;if(59<t[1])return console.log("add-to-calendar button generation failed: time misspelled - minutes number too high ["+e+": "+t[1]+"]"),!1;"startTime"==e&&(n.startDate=new Date(n.startDate.getTime()+36e5*t[0]+6e4*t[1])),"endTime"==e&&(n.endDate=new Date(n.endDate.getTime()+36e5*t[0]+6e4*t[1]))}return!0})&&(null!=a.startTime&&null==a.endTime||null==a.startTime&&null!=a.endTime?(console.log("add-to-calendar button generation failed: if you set a starting time, you also need to define an end time"),!1):!(n.endDate<n.startDate)||(console.log("add-to-calendar button generation failed: end date before start date"),!1))}function atcb_generate(e,t,n){n.deleteJSON&&(e.innerHTML="");let a=document.createElement("div"),l=(a.classList.add("atcb_button_wrapper"),e.appendChild(a),document.createElement("div")),c=(l.id="atcb_button_"+t,l.classList.add("atcb_button"),l.dataset.atcbtn=t,a.appendChild(l),l.innerHTML='<span class="atcb_icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.88 122.88"><path d="M81.61 4.73c0-2.61 2.58-4.73 5.77-4.73s5.77 2.12 5.77 4.73v20.72c0 2.61-2.58 4.73-5.77 4.73s-5.77-2.12-5.77-4.73V4.73h0zm-3.65 76.03c1.83 0 3.32 1.49 3.32 3.32s-1.49 3.32-3.32 3.32l-12.95-.04-.04 12.93c0 1.83-1.49 3.32-3.32 3.32s-3.32-1.49-3.32-3.32l.04-12.94-12.93-.05c-1.83 0-3.32-1.49-3.32-3.32s1.49-3.32 3.32-3.32l12.94.04.04-12.93c0-1.83 1.49-3.32 3.32-3.32s3.32 1.49 3.32 3.32l-.04 12.95 12.94.04h0zM29.61 4.73c0-2.61 2.58-4.73 5.77-4.73s5.77 2.12 5.77 4.73v20.72c0 2.61-2.58 4.73-5.77 4.73s-5.7
17-2.12-5.77-4.73V4.73h0zM6.4 45.32h110.08V21.47c0-.8-.33-1.53-.86-2.07-.53-.53-1.26-.86-2.07-.86H103c-1.77 0-3.2-1.43-3.2-3.2s1.43-3.2 3.2-3.2h10.55c2.57 0 4.9 1.05 6.59 2.74s2.74 4.02 2.74 6.59v27.06 65.03c0 2.57-1.05 4.9-2.74 6.59s-4.02 2.74-6.59 2.74H9.33c-2.57 0-4.9-1.05-6.59-2.74-1.69-1.7-2.74-4.03-2.74-6.6V48.53 21.47c0-2.57 1.05-4.9 2.74-6.59s4.02-2.74 6.59-2.74H20.6c1.77 0 3.2 1.43 3.2 3.2s-1.43 3.2-3.2 3.2H9.33c-.8 0-1.53.33-2.07.86-.53.53-.86 1.26-.86 2.07v23.85h0zm110.08 6.41H6.4v61.82c0 .8.33 1.53.86 2.07.53.53 1.26.86 2.07.86h104.22c.8 0 1.53-.33 2.07-.86.53-.53.86-1.26.86-2.07V51.73h0zM50.43 18.54c-1.77 0-3.2-1.43-3.2-3.2s1.43-3.2 3.2-3.2h21.49c1.77 0 3.2 1.43 3.2 3.2s-1.43 3.2-3.2 3.2H50.43h0z"/></svg></span>',l.innerHTML+='<span class="atcb_text">'+(n.label||"Add to Calendar")+"</span>","click"==n.trigger?l.addEventListener("click",atcb_toggle,{passive:!0}):(l.addEventListener("touchstart",atcb_toggle,{passive:!0}),l.addEventListener("mouseenter",atcb_open,!1)),n.description=n.description.replace(/<br\s*\/?>/gim,"\n"),document.createElement("div")),i=(c.id="atcb_list_"+t,c.classList.add("atcb_list"),c.style.display="none",a.appendChild(c),n.options.forEach(function(e){var t=e.split("|");let a=document.createElement("div");switch(a.classList.add("atcb_list_item"),c.appendChild(a),t[0]){case"Apple":a.innerHTML='<span class="atcb_icon"><svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" shape-rendering="geometricPrecision" image-rendering="optimizeQuality" fill-rule="evenodd" viewBox="0 0 640 640"><path d="M494.782 340.02c-.803-81.025 66.084-119.907 69.072-121.832-37.595-54.993-96.167-62.552-117.037-63.402-49.843-5.032-97.242 29.362-122.565 29.362-25.253 0-64.277-28.607-105.604-27.85-54.32.803-104.4 31.594-132.403 80.245C29.81 334.457 71.81 479.58 126.816 558.976c26.87 38.882 58.914 82.56 100.997 81 40.512-1.594 55.843-26.244 104.848-26.244 48.993 0 62.753 26.245 105.64 25.406 43.606-.803 71.232-39.638 97.925-78.65 30.887-45.12 43.548-88.75 44.316-90.994-.969-.437-85.029-32.634-85.879-129.439l.118-.035zM414.23 102.178C436.553 75.095 451.636 37.5 447.514-.024c-32.162 1.311-71.163 21.437-94.253 48.485-20.729 24.012-38.836 62.28-33.993 99.036 35.918 2.8 72.591-18.248 94.926-45.272l.036-.047z"/></svg></span>',a.innerHTML+='<span class="atcb_text">',a.innerHTML+=t[1]||"Apple",a.innerHTML+="</span>",a.addEventListener("click",function(){atcb_generate_ical(n),atcb_close_all()},!1);break;case"Google":a.innerHTML='<span class="atcb_icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.88 122.88"><path d="M93.78 29.1H29.1v64.68h64.68V29.1z" fill="#fff"/><path d="M93.78 122.88l29.1-29.1h-29.1v29.1z" fill="#f72a25"/><path d="M122.88 29.1h-29.1v64.68h29.1V29.1z" fill="#fbbc04"/><path d="M93.78 93.78H29.1v29.1h64.68v-29.1z" fill="#34a853"/><path d="M0 93.78v19.4c0 5.36 4.34 9.7 9.7 9.7h19.4v-29.1H0h0z" fill="#188038"/><path d="M122.88 29.1V9.7c0-5.36-4.34-9.7-9.7-9.7h-19.4v29.1h29.1 0z" fill="#1967d2"/><path d="M93.78 0H9.7C4.34 0 0 4.34 0 9.7v84.08h29.1V29.1h64.67V0h.01z" fill="#4285f4"/><path d="M42.37 79.27c-2.42-1.63-4.09-4.02-5-7.17l5.61-2.31c.51 1.94 1.4 3.44 2.67 4.51 1.26 1.07 2.8 1.59 4.59 1.59 1.84 0 3.41-.56 4.73-1.67 1.32-1.12 1.98-2.54 1.98-4.26 0-1.76-.7-3.2-2.09-4.32s-3.14-1.67-5.22-1.67H46.4v-5.55h2.91c1.79 0 3.31-.48 4.54-1.46 1.23-.97 1.84-2.3 1.84-3.99 0-1.5-.55-2.7-1.65-3.6s-2.49-1.35-4.18-1.35c-1.65 0-2.96.44-3.93 1.32s-1.7 2-2.12 3.24l-5.55-2.31c.74-2.09 2.09-3.93 4.07-5.52s4.51-2.39 7.58-2.39c2.27 0 4.32.44 6.13 1.32s3.23 2.1 4.26 3.65c1.03 1.56 1.54 3.31 1.54 5.25 0 1.98-.48 3.65-1.43 5.03-.95 1.37-2.13 2.43-3.52 3.16v.33c1.79.74 3.36 1.96 4.51 3.52 1.17 1.58 1.76 3.46 1.76 5.66s-.56 4.16-1.67 5.88c-1.12 1.72-2.66 3.08-4.62 4.07s-4.17 1.49-6.62 1.49c-2.84 0-5.46-.81-7.88-2.45h0 0zm34.46-27.84l-6.16 4.45-3.08-4.67 11.05-7.97h4.24v37.6h-6.05V51.43h0z" fill="#1a73e8"/></svg></span>',a.innerHTML+='<span class="atcb_text">',a.innerHTML+=t[1]||"Google",a.innerHTML+="</span>",a.addEventListener("click",function(){atcb_generate_google(n),atcb_close_all()},!1);break;case"iCal":a.innerHTML='<span class="atcb_icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.88 122.88"><path d="M81.61 4.73c0-2.61 2.58-4.73 5.77-4.73s5.77 2.12 5.77 4.73v20.72c0 2.61-2.58 4.73-5.77 4.73s-5.7
17-2.12-5.77-4.73V4.73h0zm-15.5 99.08c-.34 0-.61-1.43-.61-3.2s.27-3.2.61-3.2H81.9c.34 0 .61 1.43.61 3.2s-.27 3.2-.61 3.2H66.11h0zM15.85 67.09c-.34 0-.61-1.43-.61-3.2s.27-3.2.61-3.2h15.79c.34 0 .61 1.43.61 3.2s-.27 3.2-.61 3.2H15.85h0zm25.13 0c-.34 0-.61-1.43-.61-3.2s.27-3.2.61-3.2h15.79c.34 0 .61 1.43.61 3.2s-.27 3.2-.61 3.2H40.98h0zm25.13 0c-.34 0-.61-1.43-.61-3.2s.27-3.2.61-3.2H81.9c.34 0 .61 1.43.61 3.2s-.27 3.2-.61 3.2H66.11h0zm25.14 0c-.34 0-.61-1.43-.61-3.2s.27-3.2.61-3.2h15.79c.34 0 .61 1.43.61 3.2s-.27 3.2-.61 3.2H91.25h0zm-75.4 18.36c-.34 0-.61-1.43-.61-3.2s.27-3.2.61-3.2h15.79c.34 0 .61 1.43.61 3.2s-.27 3.2-.61 3.2H15.85h0zm25.13 0c-.34 0-.61-1.43-.61-3.2s.27-3.2.61-3.2h15.79c.34 0 .61 1.43.61 3.2s-.27 3.2-.61 3.2H40.98h0zm25.13 0c-.34 0-.61-1.43-.61-3.2s.27-3.2.61-3.2H81.9c.34 0 .61 1.43.61 3.2s-.27 3.2-.61 3.2H66.11h0zm25.14 0c-.34 0-.61-1.43-.61-3.2s.27-3.2.61-3.2h15.79c.34 0 .61 1.43.61 3.2s-.27 3.2-.61 3.2H91.25h0zm-75.4 18.36c-.34 0-.61-1.43-.61-3.2s.27-3.2.61-3.2h15.79c.34 0 .61 1.43.61 3.2s-.27 3.2-.61 3.2H15.85h0zm25.13 0c-.34 0-.61-1.43-.61-3.2s.27-3.2.61-3.2h15.79c.34 0 .61 1.43.61 3.2s-.27 3.2-.61 3.2H40.98h0zM29.61 4.73c0-2.61 2.58-4.73 5.77-4.73s5.77 2.12 5.77 4.73v20.72c0 2.61-2.58 4.73-5.77 4.73s-5.77-2.12-5.77-4.73V4.73h0zM6.4 45.32h110.07V21.47c0-.8-.33-1.53-.86-2.07-.53-.53-1.26-.86-2.07-.86H103c-1.77 0-3.2-1.43-3.2-3.2s1.43-3.2 3.2-3.2h10.55c2.57 0 4.9 1.05 6.59 2.74s2.74 4.02 2.74 6.59v27.06 65.03c0 2.57-1.05 4.9-2.74 6.59s-4.02 2.74-6.59 2.74H9.33c-2.57 0-4.9-1.05-6.59-2.74-1.69-1.7-2.74-4.03-2.74-6.6V48.52 21.47c0-2.57 1.05-4.9 2.74-6.59s4.02-2.74 6.59-2.74H20.6c1.77 0 3.2 1.43 3.2 3.2s-1.43 3.2-3.2 3.2H9.33c-.8 0-1.53.33-2.07.86-.53.53-.86 1.26-.86 2.07v23.85h0zm110.08 6.41H6.4v61.82c0 .8.33 1.53.86 2.07.53.53 1.26.86 2.07.86h104.22c.8 0 1.53-.33 2.07-.86.53-.53.86-1.26.86-2.07V51.73h0zM50.43 18.54c-1.77 0-3.2-1.43-3.2-3.2s1.43-3.2 3.2-3.2h21.49c1.77 0 3.2 1.43 3.2 3.2s-1.43 3.2-3.2 3.2H50.43h0z"/></svg></span>',a.innerHTML+='<span class="atcb_text">',a.innerHTML+=t[1]||"iCal File",a.innerHTML+="</span>",a.addEventListener("click",function(){atcb_generate_ical(n),atcb_close_all()},!1);break;case"Microsoft365":a.innerHTML='<span class="atcb_icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 278050 333334" shape-rendering="geometricPrecision" image-rendering="optimizeQuality" fill-rule="evenodd"><path fill="#ea3e23" d="M278050 305556l-29-16V28627L178807 0 448 66971l-448 87 22 200227 60865-23821V80555l117920-28193-17 239519L122 267285l178668 65976v73l99231-27462v-316z"/></svg></span>',a.innerHTML+='<span class="atcb_text">',a.innerHTML+=t[1]||"Microsoft 365",a.innerHTML+="</span>",a.addEventListener("click",function(){atcb_generate_microsoft(n,"365"),atcb_close_all()},!1);break;case"Outlook.com":a.innerHTML='<span class="atcb_icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="-0.129793726981 0 33.251996719421 32" width="2500" height="2397"><path d="M28.596 2H11.404A1.404 1.404 0 0 0 10 3.404V5l9.69 3L30 5V3.404A1.404 1.404 0 0 0 28.596 2z" fill="#0364b8"/><path d="M31.65 17.405A11.341 11.341 0 0 0 32 16a.666.666 0 0 0-.333-.576l-.013-.008-.004-.002L20.812 9.24a1.499 1.499 0 0 0-1.479-.083 1.49 1.49 0 0 0-.145.082L8.35 15.415l-.004.002-.012.007A.666.666 0 0 0 8 16a11.344 11.344 0 0 0 .35 1.405l11.492 8.405z" fill="#0a2767"/><path d="M24 5h-7l-2.021 3L17 11l7 6h6v-6z" fill="#28a8ea"/><path d="M10 5h7v6h-7z" fill="#0078d4"/><path d="M24 5h6v6h-6z" fill="#50d9ff"/><path d="M24 17l-7-6h-7v6l7 6 10.832 1.768z" fill="#0364b8"/><path d="M17 11h7v6h-7z" fill="#0078d4"/><path d="M10 17h7v6h-7z" fill="#064a8c"/><path d="M24 17h6v6h-6z" fill="#0078d4"/><path d="M20.19 25.218l-11.793-8.6.495-.87 10.909 6.212a.528.528 0 0 0 .42-.012l10.933-6.23.496.869z" fill="#0a2767" opacity=".5"/><path d="M31.667 16.577l-.014.008-.003.002-10.838 6.174a1.497 1.497 0 0 1-1.46.091l3.774 5.061 8.254 1.797v.004A1.498 1.498 0 0 0 32 28.5V16a.666.666 0 0 1-.333.577z" fill="#1490df"/><path d="M32 28.5v-.738l-9.983-5.688-1.205.687a1.497 1.497 0 0 1-1.46.091l3.774 5.061 8.254 1.797v.004A1.498 1.498 0 0 0 32 28.5z" opacity=".05"/><path d="M31.95 28.883L21.007 22.65l-.195.11a1.497 1.497 0 0 1-1.46.092l3.774 5.061 8.254 1.797v.004a1.501 1.501 0 0 0 .57-.83z" opacity=".1"/><path d="M8.35 16.59v-.01h-.01l-.03-.02A.65.65 0 0 1 8 16v12.5A1.498 1.498 0 0 0 9.5 30h21a1.503 1.503 0 0 0 .37-.05.637.637 0 0 0 .18-.06.142.142 0 0 0 .06-.02 1.048 1.048 0 0 0 .23-.13c.02-.01.03-.01.04-.03z" fill="#28a8ea"/><path d="M18 24.667V8.333A1.337 1.337 0 0 0 16.667 7H10.03v7.456l-1.68.958-.005.002-.012.007A.666.666 0 0 0 8 16v.005V16v10h8.667A1.337 1.337 0 0 0 18 24.667z" opacity=".1"/><path d="M17 25.667V9.333A1.337 1.337 0 0 0 15.667 8H10.03v6.456l-1.68.958-.005.002-.012.007A.666.666 0 0 0 8 16v.005V16v11h7.667A1.337 1.337 0 0 0 17 25.667z" opacity=".2"/><path d="M17 23.667V9.333A1.337 1.337 0 0 0 15.667 8H10.03v6.456l-1.68.958-.005.002-.012.007A.666.666 0 0 0 8 16v.005V16v9h7.667A1.337 1.337 0 0 0 17 23.667z" opacity=".2"/><path d="M16 23.667V9.333A1.337 1.337 0 0 0 14.667 8H10.03v6.456l-1.68.958-.005.002-.012.007A.666.666 0 0 0 8 16v.005V16v9h6.667A1.337 1.337 0 0 0 16 23.667z" opacity=".2"/><path d="M1.333 8h13.334A1.333 1.333 0 0 1 16 9.333v13.334A1.333 1.333 0 0 1 14.667 24H1.333A1.333 1.333 0 0 1 0 22.667V9.333A1.333 1.333 0 0 1 1.333 8z" fill="#0078d4"/><path d="M3.867 13.468a4.181 4.181 0 0 1 1.642-1.814A4.965 4.965 0 0 1 8.119 11a4.617 4.617 0 0 1 2.413.62 4.14 4.14 0 0 1 1.598 1.733 5.597 5.597 0 0 1 .56 2.55 5.901 5.901 0 0 1-.577 2.666 4.239 4.239 0 0 1-1.645 1.794A4.8 4.8 0 0 1 7.963 21a4.729 4.729 0 0 1-2.468-.627 4.204 4.204 0 0 1-1.618-1.736 5.459 5.459 0 0 1-.567-2.519 6.055 6.055 0 0 1 .557-2.65zm1.75 4.258a2.716 2.716 0 0 0 .923 1.194 2.411 2.411 0 0 0 1.443.435 2.533 2.533 0 0 0 1.541-.449 2.603 2.603 0 0 0 .897-1.197 4.626 4.626 0 0 0 .286-1.665 5.063 5.063 0 0 0-.27-1.686 2.669 2.669 0 0 0-.866-1.24 2.387 2.387 0 0 0-1.527-.473 2.493 2.493 0 0 0-1.477.439 2.741 2.741 0 0 0-.944 1.203 4.776 4.776 0 0 0-.007 3.44z" fill="#fff"/></svg></span>',a.innerHTML+='<span class="atcb_text">',a.innerHTML+=t[1]||"Outlook.com",a.innerHTML+="</span>",a.addEventListener("click",function(){atcb_generate_microsoft(n,"outlook"),atcb_close_all()},!1);break;case"Yahoo":a.innerHTML='<span class="atcb_icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 3386.34 3010.5" shape-rendering="geometricPrecision" image-rendering="optimizeQuality" fill-rule="evenodd"><path d="M0 732.88h645.84l376.07 962.1 380.96-962.1h628.76l-946.8 2277.62H451.98l259.19-603.53L.02 732.88zm2763.84 768.75h-704.26L2684.65 0l701.69.03-622.5 1501.6zm-519.78 143.72c216.09 0 391.25 175.17 391.25 391.22 0 216.06-175.16 391.23-391.25 391.23-216.06 0-391.19-175.17-391.19-391.23 0-216.05 175.16-391.22 391.19-391.22z" fill="#5f01d1" fill-rule="nonzero"/></svg></span>',a.innerHTML+='<span class="atcb_text">',a.innerHTML+=t[1]||"Yahoo",a.innerHTML+="</span>",a.addEventListener("click",function(){atcb_generate_yahoo(n),atcb_close_all()},!1)}}),document.createElement("div"));i.id="atcb_bgoverlay_"+t,i.classList.add("atcb_bgoverlay"),i.style.display="none",e.appendChild(i),i.addEventListener("click",atcb_close_all,{passive:!0}),i.addEventListener("touchstart",atcb_close_all,{passive:!0}),i.addEventListener("mouseenter",atcb_close_all,!1),e.classList.remove("atcb"),e.classList.add("atcb_initialized"),n.inline?e.style.display="inline-block":e.style.display="block",console.log("add-to-calendar button #"+(t+1)+" created")}function atcb_toggle(){(this.classList.contains("active")?atcb_close:atcb_open).call(this)}function atcb_open(){this.classList.add("active");let e=document.getElementById("atcb_list_"+this.dataset.atcbtn);e.style.display="block",document.getElementById("atcb_bgoverlay_"+this.dataset.atcbtn).style.display="block"}function atcb_close(){this.classList.remove("active");let e=document.getElementById("atcb_list_"+this.dataset.atcbtn);e.style.display="none",document.getElementById("atcb_bgoverlay_"+this.dataset.atcbtn).style.display="none"}function atcb_close_all(){var t=document.querySelectorAll(".atcb_button");for(let e=0;e<t.length;e++)atcb_close.call(t[e])}function atcb_generate_google(e){let t="https://calendar.google.com/calendar/render?action=TEMPLATE";var a=atcb_generate_time(e,"clean","google");t+="&dates="+a.start+"%2F"+a.end,null!=e.description&&""!=e.description&&(t+="&details="+encodeURIComponent(e.description)),null!=e.location&&""!=e.location&&(t+="&location="+encodeURIComponent(e.location)),null!=e.name&&""!=e.name&&(t+="&text="+encodeURIComponent(e.name)),window.open(t,"_blank").focus()}function atcb_generate_yahoo(e){let t="https://calendar.yahoo.com/?v=60";var a=atcb_generate_time(e,"clean");t+="&st="+a.start+"&et="+a.end,a.allday&&(t+="&dur=allday"),null!=e.description&&""!=e.description&&(t+="&desc="+encodeURIComponent(e.description)),null!=e.location&&""!=e.location&&(t+="&in_loc="+encodeURIComponent(e.location)),null!=e.name&&""!=e.name&&(t+="&title="+encodeURIComponent(e.name)),window.open(t,"_blank").focus()}function atcb_generate_microsoft(e,t="365"){let a="https://";a+="outlook"==t?"outlook.live.com":"outlook.office.com",a+="/calendar/0/deeplink/compose?path=%2Fcalendar%2Faction%2Fcompose&rru=addevent";t=atcb_generate_time(e,"delimiters","microsoft");a+="&startdt="+t.start+"&enddt="+t.end,t.allday&&(a+="&allday=true"),null!=e.description&&""!=e.description&&(a+="&body="+encodeURIComponent(e.description)),null!=e.location&&""!=e.location&&(a+="&location="+encodeURIComponent(e.location)),null!=e.name&&""!=e.name&&(a+="&subject="+encodeURIComponent(e.name)),window.open(a,"_blank").focus()}function atcb_generate_ical(t){let e=new Date;e=e.toISOString().replace(/\-/g,"").replace(/\:/g,"").replace(/\..../g,"");var a=atcb_generate_time(t,"clean","ical");let n="",l=(a.allday&&(n=";VALUE=DATE"),["BEGIN:VCALENDAR","VERSION:2.0","CALSCALE:GREGORIAN","BEGIN:VEVENT","DTSTAMP:"+a.start,"DTSTART"+n+":"+a.start,"DTEND"+n+":"+a.end,"DESCRIPTION:"+t.description.replace(/\n/g,"\\n"),"SUMMARY:"+t.name,"LOCATION:"+t.location,"STATUS:CONFIRMED","LAST-MODIFIED:"+e,"SEQUENCE:0","END:VEVENT","END:VCALENDAR"]);a="data:text/calendar;base64,"+btoa(l.join("\r\n").replace(/[\u00A0-\u2666]/g,function(e){return"&#"+e.charCodeAt(0)+";"}));try{if(!window.ActiveXObject){let e=document.createElement("a");e.href=a,e.target="_blank",e.download=t.iCalFileName||"event-to-save-in-my-calendar";var c=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});e.dispatchEvent(c),(window.URL||window.webkitURL).revokeObjectURL(e.href)}}catch(e){console.log(e)}}function atcb_generate_time(a,n="delimiters",l="general"){var c=a.startDate.split("-"),i=a.endDate.split("-");let o="",s="",r=!1;if(null!=a.startTime&&null!=a.endTime)if(null!=a.timeZoneOffset&&""!=a.timeZoneOffset)o=new Date(c[2]+"-"+c[0]+"-"+c[1]+"T"+a.startTime+":00.000"+a.timeZoneOffset),s=new Date(i[2]+"-"+i[0]+"-"+i[1]+"T"+a.endTime+":00.000"+a.timeZoneOffset),o=o.toISOString().replace(".000",""),s=s.toISOString().replace(".000",""),"clean"==n&&(o=o.replace(/\-/g,"").replace(/\:/g,""),s=s.replace(/\-/g,"").replace(/\:/g,""));else{if(o=new Date(c[2]+"-"+c[0]+"-"+c[1]+"T"+a.startTime+":00.000+00:00"),s=new Date(i[2]+"-"+i[0]+"-"+i[1]+"T"+a.endTime+":00.000+00:00"),null!=a.timeZone&&""!=a.timeZone){let e=new Date(o.toLocaleStr
1ing("en-US",{timeZone:"UTC"})),t=("currentBrowser"==a.timeZone&&(a.timeZone=Intl.DateTimeFormat().resolvedOptions().timeZone),new Date(o.toLocaleString("en-US",{timeZone:a.timeZone})));a=e.getTime()-t.getTime();o.setTime(o.getTime()+a),s.setTime(s.getTime()+a)}o=o.toISOString().replace(".000",""),s=s.toISOString().replace(".000",""),"clean"==n&&(o=o.replace(/\-/g,"").replace(/\:/g,""),s=s.replace(/\-/g,"").replace(/\:/g,""))}else{r=!0,o=new Date(c[2],c[0]-1,c[1]),o.setDate(o.getDate()+1);let e=o.toISOString().split("T"),t=(s=new Date(i[2],i[0]-1,i[1]),"google"==l||"microsoft"==l||"ical"==l?s.setDate(s.getDate()+2):s.setDate(s.getDate()+1),s.toISOString().split("T"));"clean"==n&&(e[0]=e[0].replace(/\-/g,""),t[0]=t[0].replace(/\-/g,"")),o=e[0],s=t[0]}return{start:o,end:s,allday:r}}document.addEventListener("DOMContentLoaded",atcb_init,!1); 2//# sourceMappingURL=atcb.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.