1/* 2 AddEvent; Add to Calendar, v1.6.1 <http://addevent.com> 3 Copyright (C) 2012-2018 AddEvent(R), Inc. 4 @author Michael Nilsson 5*/ 6function $d(e) { return document.getElementById(e) } var addeventatc = function () { var e, t, a, n, o, d = !1, c = 1, i = !1, l = !0, r = !1, s = !1, p = !1, u = 1, v = "", m = !0, g = !0, h = !0, f = !0, b = !0, w = !0, x = "Apple Calendar", k = "Google <em>(online)</em>", y = "Outlook", _ = "Outlook.com <em>(online)</em>", T = "Yahoo <em>(online)</em>", z = "Facebook Event", E = null, N = null, C = null, I = null, $ = null, A = null, L = !1; return { initialize: function () { if (!d) { d = !0; try { addeventasync() } catch (e) { } "https:", "addevent.com", "https://addevent.com", e = "undefined" != typeof SVGRect ? "https://www.addevent.com/gfx/icon-calendar-t1.svg" : "https://www.addevent.com/gfx/icon-calendar-t5.png", addeventatc.trycss(), addeventatc.generate() } }, generate: function () { for (var e = document.getElementsByTagName("*"), t = 0; t < e.length; t += 1) addeventatc.hasclass(e[t], "addeventatc") && function () { var a = "addeventatc" + c; e[t].id = a, e[t].title = "", e[t].style.visibility = "visible", e[t].setAttribute("aria-haspopup", "true"), e[t].setAttribute("aria-expanded", "false"), e[t].setAttribute("tabindex", "0"), i ? (e[t].onclick = function () { return !1 }, e[t].onmouseover = function () { clearTimeout(n), addeventatc.toogle(this, { type: "mouseover", id: a }) }, e[t].onmouseout = function () { n = setTimeout(function () { addeventatc.mouseout(this, { type: "mouseout", id: a }) }, 100) }) : (e[t].onclick = function () { return addeventatc.toogle(this, { type: "click", id: a }), !1 }, e[t].onmouseover = function () { }, e[t].onmouseout = function () { }), e[t].onkeydown = function (e) { var t = e.which || e.keyCode; "13" != t && "32" != t && "27" != t && "38" != t && "40" != t || e.preventDefault(), "13" != t && "32" != t || (addeventatc.keyboardclick(this, { type: "click", id: a }), addeventatc.toogle(this, { type: "click", id: a, keynav: !0 })), "27" == t && addeventatc.hideandreset(), "38" == t && addeventatc.keyboard(this, { type: "keyboard", id: a, key: "up" }), "40" == t && addeventatc.keyboard(this, { type: "keyboard", id: a, key: "down" }), L = !0 }, e[t].onblur = function () { L && setTimeout(function () { addeventatc.hideandreset() }, 300) }; var o = e[t]; if ("none" != e[t].getAttribute("data-styling") && "inline-buttons" != e[t].getAttribute("data-render") || (l = !1), l) { var d = document.createElement("span"); d.className = "addeventatc_icon", o.appendChild(d) } c++, r = !0; for (var s = e[t].getElementsByTagName("*"), p = 0; p < s.length; p += 1) addeventatc.hasclass(s[p], "atc_node") || ("" != s[p].className ? s[p].className += " atc_node" : s[p].className += "atc_node"); if ("inline-buttons" == e[t].getAttribute("data-render")) { e[t].onclick = function () { }, addeventatc.toogle(e[t], { type: "render", id: a }), e[t].setAttribute("aria-expanded", "true"), e[t].removeAttribute("tabindex"), e[t].onkeydown = function () { }, e[t].blur = function () { }; var u = document.getElementById(a + "-drop"); if (u) { u.setAttribute("aria-hidden", "false"); for (s = u.getElementsByTagName("SPAN"), p = 0; p < s.length; p += 1) { s[p]; s[p].tabIndex = "0", s[p].onkeydown = function (e) { var t = e.which || e.keyCode; "13" != t && "32" != t || e.target.click() } } } } }(); u = addeventatc.topzindex(), l ? addeventatc.applycss() : (addeventatc.removeelement($d("ate_css")), addeventatc.removeelement($d("ate_tmp_css")), addeventatc.helpercss()), r && !s && (s = !0, addeventatc.track({ typ: "exposure", cal: "" })) }, toogle: function (e, n) { var o, d, c, i = !1, l = ""; if (d = $d(o = e.id)) { c = d.getAttribute("data-direct"); var r = d.getAttribute("data-intel"), s = d.getAttribute("data-intel-apple"); if ("ios" == addeventatc.agent() && "click" == n.type && "true" !== s && "false" !== r && (c = "appleical", d.setAttribute("data-intel-apple", "true")), "outlook" == c || "google" == c || "yahoo" == c || "hotmail" == c || "outlookcom" == c || "appleical" == c || "apple" == c || "facebook" == c) "click" == n.type && (addeventatc.click({ button: o, service: c, id: n.id }), null != E && addeventatc.trigger("button_click", { id: o })); else if ("mouseover" == n.type && a != d && (p = !1), "click" == n.type || "render" == n.type || "mouseover" == n.type && !p) { "mouseover" == n.type && (p = !0, null != N && addeventatc.trigger("button_mouseover", { id: o })), i = addeventatc.getburl({ id: o, facebook: !0 }
6), "" == v && (v = "appleical,google,outlook,outlookcom,yahoo,facebook"); for (var u = (v = (v += ",").replace(/ /gi, "")).split(","), C = 0; C < u.length; C += 1) (m && "ical" == u[C] || m && "appleical" == u[C]) && (l += '<span class="ateappleical" id="' + o + '-appleical" role="menuitem">' + x + "</span>"), g && "google" == u[C] && (l += '<span class="ategoogle" id="' + o + '-google" role="menuitem">' + k + "</span>"), h && "outlook" == u[C] && (l += '<span class="ateoutlook" id="' + o + '-outlook" role="menuitem">' + y + "</span>"), (f && "hotmail" == u[C] || f && "outlookcom" == u[C]) && (l += '<span class="ateoutlookcom" id="' + o + '-outlookcom" role="menuitem">' + _ + "</span>"), b && "yahoo" == u[C] && (l += '<span class="ateyahoo" id="' + o + '-yahoo" role="menuitem">' + T + "</span>"), i && "facebook" == u[C] && w && "facebook" == u[C] && (l += '<span class="atefacebook" id="' + o + '-facebook" role="menuitem">' + z + "</span>"); if (addeventatc.getlicense(t) || (l += '<em class="copyx"><em class="brx"></em><em class="frs"><a href="https://www.addevent.com" title="" tabindex="-1" id="' + o + '-home">AddEvent.com</a></em></em>'), !$d(o + "-drop")) { var I = document.createElement("span"); I.id = o + "-drop", I.className = "addeventatc_dropdown", I.setAttribute("aria-hidden", "true"), I.setAttribute("aria-labelledby", o), I.innerHTML = l, d.appendChild(I) } $d(o + "-appleical") && ($d(o + "-appleical").onclick = function () { addeventatc.click({ button: o, service: "appleical", id: n.id }) }), $d(o + "-google") && ($d(o + "-google").onclick = function () { addeventatc.click({ button: o, service: "google", id: n.id }) }), $d(o + "-outlook") && ($d(o + "-outlook").onclick = function () { addeventatc.click({ button: o, service: "outlook", id: n.id }) }), $d(o + "-outlookcom") && ($d(o + "-outlookcom").onclick = function () { addeventatc.click({ button: o, service: "outlookcom", id: n.id }) }), $d(o + "-yahoo") && ($d(o + "-yahoo").onclick = function () { addeventatc.click({ button: o, service: "yahoo", id: n.id }) }), $d(o + "-facebook") && ($d(o + "-facebook").onclick = function () { addeventatc.click({ button: o, service: "facebook", id: n.id }) }), $d(o + "-home") && ($d(o + "-home").onclick = function () { addeventatc.click({ button: o, service: "home", id: n.id }) }), addeventatc.show(o, n) } return a = d, !1 } }, click: function (e) { var t, a, n, o = location.origin, d = !0; if (void 0 === location.origin && (o = location.protocol + "//" + location.host), t = $d(e.button)) { if ("home" == e.service) n = "https://www.addevent.com"; else { a = addeventatc.getburl({ id: e.button, facebook: !1 }), n = "https://www.addevent.com/create/?service=" + e.service + a + "&reference=" + o, "outlook" != e.service && "appleical" != e.service || (d = !1, addeventatc.usewebcal() && (n = "webcal://www.addevent.com/create/?uwc=on&service=" + e.service + a + "&reference=" + o)); var c = t.getAttribute("data-id"); null !== c && (n = "https://www.addevent.com/event/" + c + "+" + e.service) } if (!$d("atecllink")) { var i = document.createElement("a"); i.id = "atecllink", i.rel = "external", i.setAttribute("data-role", "none"), i.innerHTML = "{addeventatc-ghost-link}", i.style.display = "none", document.body.appendChild(i) } var l = $d("atecllink"); if (l.target = d ? "_blank" : "_self", l.href = n, addeventatc.eclick("atecllink"), addeventatc.track({ typ: "click", cal: e.service }), null != A) { addeventatc.trigger("button_dropdown_click", { id: e.button, service: e.service }); try { (event || window.event).stopPropagation() } catch (e) { } } } }, mouseout: function (e, t) { p = !1, addeventatc.hideandreset(), null != C && addeventatc.trigger("button_mouseout", { id: t.id }) }, show: function (e, t) { var a = $d(e), n = $d(e + "-drop"); if (a && n) if ("block" == addeventatc.getstyle(n, "display")) addeventatc.hideandreset(); else { addeventatc.hideandreset(!0), n.style.display = "block", a.style.outline = "0", a.style.zIndex = u + 1, a.className = a.className + " addeventatc-selected", a.className = a.className.replace(/\s+/g, " "), a.setAttribute("aria-expanded", "true"), n.setAttribute("aria-hidden", "false"), t.keynav && addeventatc.keyboard(this, { type: "keyboard", id: e, key: "down" }); var o = a.getAttribute("data-dropdown-x"), d = a.getAttribute("data-dropdown-y"), c = "auto", i = "auto";
6 null != o && (i = o), null != d && (c = d), n.style.left = "0px", n.style.top = "0px", n.style.display = "block"; var l = parseInt(a.offsetHeight), r = parseInt(a.offsetWidth), s = parseInt(n.offsetHeight), p = parseInt(n.offsetWidth), v = addeventatc.viewport(), m = parseInt(v.w), g = parseInt(v.h), h = parseInt(v.x), f = parseInt(v.y), b = addeventatc.elementposition(n), w = parseInt(b.x), x = parseInt(b.y) + s, k = g + f, y = 0, _ = 0; "down" == c && "left" == i ? (y = "0px", _ = l + "px") : "up" == c && "left" == i ? (y = "0px", _ = -s + "px") : "down" == c && "right" == i ? (y = -(p - r) + "px", _ = l + "px") : "up" == c && "right" == i ? (y = -(p - r) + "px", _ = -s + "px") : "auto" == c && "left" == i ? (y = "0px", _ = x > k ? -s + "px" : l + "px") : "auto" == c && "right" == i ? (y = -(p - r) + "px", _ = x > k ? -s + "px" : l + "px") : (_ = x > k ? -s + "px" : l + "px", y = w + p > m + h ? -(p - r) + "px" : "0px"), n.style.left = y, n.style.top = _, "click" == t.type && null != E && addeventatc.trigger("button_click", { id: e }), null != I && addeventatc.trigger("button_dropdown_show", { id: e }) } }, hide: function (e) { var t = !1; ("string" == typeof e && "" !== e || e instanceof String && "" !== e) && (e.indexOf("addeventatc") > -1 || e.indexOf("atc_node") > -1) && (t = !0), t || addeventatc.hideandreset() }, hideandreset: function (e) { for (var t = "", a = document.getElementsByTagName("*"), n = 0; n < a.length; n += 1) if (addeventatc.hasclass(a[n], "addeventatc")) { a[n].className = a[n].className.replace(/addeventatc-selected/gi, ""), a[n].className = a[n].className.replace(/\s+$/, ""), a[n].style.zIndex = "auto", a[n].style.outline = ""; var o = $d(a[n].id + "-drop"); if (o) { var d = addeventatc.getstyle(o, "display"); "block" == d && (t = a[n].id), o.style.display = "none", "block" !== (d = addeventatc.getstyle(o, "display")) && (a[n].setAttribute("aria-expanded", "false"), o.setAttribute("aria-hidden", "true")); for (var c = o.getElementsByTagName("SPAN"), i = 0; i < c.length; i += 1) { var l = new RegExp("(\\s|^)drop_markup(\\s|$)"); c[i].className = c[i].className.replace(l, " "), c[i].className = c[i].className.replace(/\s+$/, "") } } } e || null != $ && addeventatc.trigger("button_dropdown_hide", { id: t }) }, getburl: function (e) { var t = $d(e.id), a = "", n = !1; if (t) { for (var o = t.getElementsByTagName("*"), d = 0; d < o.length; d += 1) (addeventatc.hasclass(o[d], "_start") || addeventatc.hasclass(o[d], "start")) && (a += "&dstart=" + encodeURIComponent(o[d].innerHTML)), (addeventatc.hasclass(o[d], "_end") || addeventatc.hasclass(o[d], "end")) && (a += "&dend=" + encodeURIComponent(o[d].innerHTML)), (addeventatc.hasclass(o[d], "_zonecode") || addeventatc.hasclass(o[d], "zonecode")) && (a += "&dzone=" + encodeURIComponent(o[d].innerHTML)), (addeventatc.hasclass(o[d], "_timezone") || addeventatc.hasclass(o[d], "timezone")) && (a += "&dtime=" + encodeURIComponent(o[d].innerHTML)), (addeventatc.hasclass(o[d], "_summary") || addeventatc.hasclass(o[d], "summary") || addeventatc.hasclass(o[d], "title")) && (a += "&dsum=" + encodeURIComponent(o[d].innerHTML)), (addeventatc.hasclass(o[d], "_description") || addeventatc.hasclass(o[d], "description")) && (a += "&ddesc=" + encodeURIComponent(o[d].innerHTML)), (addeventatc.hasclass(o[d], "_location") || addeventatc.hasclass(o[d], "location")) && (a += "&dloca=" + encodeURIComponent(o[d].innerHTML)), (addeventatc.hasclass(o[d], "_organizer") || addeventatc.hasclass(o[d], "organizer")) && (a += "&dorga=" + encodeURIComponent(o[d].innerHTML)), (addeventatc.hasclass(o[d], "_organizer_email") || addeventatc.hasclass(o[d], "organizer_email")) && (a += "&dorgaem=" + encodeURIComponent(o[d].innerHTML)), (addeventatc.hasclass(o[d], "_attendees") || addeventatc.hasclass(o[d], "attendees")) && (a += "&datte=" + encodeURIComponent(o[d].innerHTML)), (addeventatc.hasclass(o[d], "_all_day_event") || addeventatc.hasclass(o[d], "all_day_event")) && (a += "&dallday=" + encodeURIComponent(o[d].innerHTML)), (addeventatc.hasclass(o[d], "_date_format") || addeventatc.hasclass(o[d], "date_format")) && (a += "&dateformat=" + encodeURIComponent(o[d].innerHTML)), (addeventatc.hasclass(o[d], "_alarm_reminder") || addeventatc.hasclass(o[d], "alarm_reminder")) && (a += "&alarm=" + encodeURIComponent(o[d].innerHTML)), (addeventatc.hasclass(o[d], "_recurring") || addeventatc.hasclass(o[d], "recurring")) && (a += "&drule=" + encodeURIComponent(o[d].innerHTML)), (addeventatc.hasclass(o[d], "_facebook_event") || addeventatc.hasclass(o[d], "facebook_event")) && (a += "&fbevent=" + encodeURIComponent(o[d].innerHTML), n = !0), (addeventatc.hasclass(o[d], "_client") || addeventatc.hasclass(o[d], "client")) && (a += "&client=" + encodeURIComponent(o[d].innerHTML)), (addeventatc.hasclass(o[d], "_calname") || addeventatc.hasclass(o[d], "calname")) && (a += "&calname=" + encodeURIComponent(o[d].innerHTML)), (addeventatc.hasclass(o[d], "_uid") || addeventatc.hasclass(o[d], "uid")) && (a += "&uid=" + encodeURIComponent(o[d].innerHTML)), (addeventatc.hasclass(o[d], "_status") || addeventatc.hasclass(o[d], "status")) && (a += "&status=" + encodeURIComponent(o[d].innerHTML)), (addeventatc.hasclass(o[d], "_method") || addeventatc.hasclass(o[d], "method")) && (a += "&method=" + encodeURIComponent(o[d].innerHTML)); "false" == t.getAttribute("data-google-api") && (a += "&gapi=false") } return e.facebook && (a = n), a }, trycss: function () { if (!$d("ate_tmp_css")) { try { var e = ""; e = ".addeventatc {visibility:hidden;}", e += ".addeventatc .data {display:none!important;}", e += ".addeventatc .start, .addeventatc .end, .addeventatc .timezone, .addeventatc .title, .addeventatc .description, .addeventatc .location, .addeventatc .organizer, .addeventatc .organizer_email, .addeventatc .facebook_event, .addeventatc .all_day_event, .addeventatc .date_format, .addeventatc .alarm_reminder, .addeventatc .recurring, .addeventatc .attendees, .addeventatc .client, .addeventatc .calname, .addeventatc .uid, .addeventatc .status, .addeventatc .method {display:none!important;}", l && (e += ".addeventatc {background-image:url(https://www.addevent.com/gfx/icon-calendar-t5.png), url(https://www.addevent.com/gfx/icon-calendar-t1.svg), url(https://www.addevent.com/gfx/icon-apple-t1.svg), url(https://www.addevent.com/gfx/icon-facebook-t1.svg), url(https://www.addevent.com/gfx/icon-google-t1.svg), url(https://www.addevent.com/gfx/icon-outlook-t1.svg), url(https://www.addevent.com/gfx/icon-yahoo-t1.svg);background-position:-9999px -9999px;background-repeat:no-repeat;}"); var t = document.createElement("style"); t.type = "text/css", t.id = "ate_tmp_css", t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e)), document.getElementsByTagName("head")[0].appendChild(t) } catch (e) { } addeventatc.track({ typ: "jsinit", cal: "" }) } }, applycss: function () { if (!$d("ate_css")) { var a = ""; a += '.addeventatc {display:inline-block;*display:inline;zoom:1;position:relative;z-index:1;font-family:Roboto,"Helvetica Neue",Helvetica,Optima,Segoe,"Segoe UI",Candara,Calibri,Arial,sans-serif;color:#000!important;font-weight:300;line-height:100%!important;background-color:#fff;border:1px solid;border-color:#e5e6e9 #dfe0e4 #d0d1d5;font-size:15px;text-decoration:none;padding:13px 12px 12px 43px;-webkit-border-radius:3px;border-radius:3px;
6cursor:pointer;-webkit-font-smoothing:antialiased!important;text-shadow:1px 1px 1px rgba(0,0,0,0.004);-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);background-image:url(https://www.addevent.com/gfx/icon-calendar-t5.png), url(https://www.addevent.com/gfx/icon-calendar-t1.svg), url(https://www.addevent.com/gfx/icon-apple-t1.svg), url(https://www.addevent.com/gfx/icon-facebook-t1.svg), url(https://www.addevent.com/gfx/icon-google-t1.svg), url(https://www.addevent.com/gfx/icon-outlook-t1.svg), url(https://www.addevent.com/gfx/icon-yahoo-t1.svg);background-position:-9999px -9999px;background-repeat:no-repeat;}', a += ".addeventatc:hover {border:1px solid #aab9d4;color:#000;font-size:15px;text-decoration:none;}", a += ".addeventatc:focus {outline:none;border:1px solid #aab9d4;}", a += ".addeventatc:active {top:1px;}", a += ".addeventatc-selected {background-color:#f9f9f9;}", a += ".addeventatc .addeventatc_icon {width:18px;height:18px;position:absolute;z-index:1;left:12px;top:10px;background:url(" + e + ") no-repeat;background-size:18px 18px;}", a += ".addeventatc .start, .addeventatc .end, .addeventatc .timezone, .addeventatc .title, .addeventatc .description, .addeventatc .location, .addeventatc .organizer, .addeventatc .organizer_email, .addeventatc .facebook_event, .addeventatc .all_day_event, .addeventatc .date_format, .addeventatc .alarm_reminder, .addeventatc .recurring, .addeventatc .attendees, .addeventatc .client, .addeventatc .calname, .addeventatc .uid, .addeventatc .status, .addeventatc .method {display:none!important;}", a += ".addeventatc .data {display:none!important;}", a += ".addeventatc br {display:none;}", addeventatc.getlicense(t) ? a += ".addeventatc_dropdown {width:200px;position:absolute;z-index:99999;padding:6px 0px 6px 0px;background:#fff;text-align:left;display:none;margin-top:-2px;margin-left:-1px;border-top:1px solid #c8c8c8;border-right:1px solid #bebebe;border-bottom:1px solid #a8a8a8;border-left:1px solid #bebebe;-moz-border-radius:2px;-webkit-border-radius:2px;-webkit-box-shadow:1px 3px 6px rgba(0,0,0,0.15);-moz-box-shadow:1px 3px 6px rgba(0,0,0,0.15);box-shadow:1px 3px 6px rgba(0,0,0,0.15);}" : a += ".addeventatc_dropdown {width:200px;position:absolute;z-index:99999;padding:6px 0px 0px 0px;background:#fff;text-align:left;display:none;margin-top:-2px;margin-left:-1px;border-top:1px solid #c8c8c8;border-right:1px solid #bebebe;border-bottom:1px solid #a8a8a8;border-left:1px solid #bebebe;-moz-border-radius:2px;-webkit-border-radius:2px;-webkit-box-shadow:1px 3px 6px rgba(0,0,0,0.15);-moz-box-shadow:1px 3px 6px rgba(0,0,0,0.15);box-shadow:1px 3px 6px rgba(0,0,0,0.15);}", a += ".addeventatc_dropdown span {display:block;line-height:100%;background:#fff;text-decoration:none;font-size:14px;color:#333;padding:9px 10px 9px 40px;}", a += ".addeventatc_dropdown span:hover {background-color:#f4f4f4;color:#000;text-decoration:none;font-size:14px;}", a += ".addeventatc_dropdown .drop_markup {background-color:#f4f4f4;color:#000;text-decoration:none;font-size:14px;}", a += ".addeventatc_dropdown .copyx {height:21px;display:block;position:relative;cursor:default;}", a += ".addeventatc_dropdown .brx {height:1px;overflow:hidden;background:#e0e0e0;position:absolute;z-index:100;left:10px;right:10px;top:9px;}", a += ".addeventatc_dropdown .frs {position:absolute;top:5px;cursor:pointer;right:10px;font-style:normal!important;font-weight:normal!important;text-align:right;z-index:101;line-height:9px!important;background:#fff;text-decoration:none;font-size:9px!important;color:#cacaca!important;}", a += ".addeventatc_dropdown .frs a {margin:0!important;padding:0!important;font-style:normal!important;font-weight:normal!important;line-height:9px!important;background-color:#fff!important;text-decoration:none;font-size:9px!important;color:#cacaca!important;padding-left:10px!important;display:inline-block;}", a += ".addeventatc_dropdown .frs a:hover {color:#999!important;}", a += ".addeventatc_dropdown .ateappleical {background-image:url(https://www.addevent.com/gfx/icon-apple-t1.svg);background-repeat:no-repeat;background-position:13px 50%;background-size:14px auto;}", a += ".addeventatc_dropdown .ateoutlook {background-image:url(https://www.addevent.com/gfx/icon-outlook-t1.svg);background-repeat:no-repeat;background-position:12px 50%;background-size:16px auto;}", a += ".addeventatc_dropdown .ateoutlookcom {background-image:url(https://www.addevent.com/gfx/icon-outlook-t1.svg);background-repeat:no-repeat;background-position:12px 50%;background-size:16px auto;}", a += ".addeventatc_dropdown .ategoogle {background-image:url(https://www.addevent.com/gfx/icon-google-t1.svg);background-repeat:no-repeat;background-position:12px 50%;background-size:16px auto;}", a += ".addeventatc_dropdown .ateyahoo {background-image:url(https://www.addevent.com/gfx/icon-yahoo-t1.svg);background-repeat:no-repeat;background-position:12px 50%;background-size:16px auto;}", a += ".addeventatc_dropdown .atefacebook {background-image:url(https://www.addevent.com/gfx/icon-facebook-t1.svg);background-repeat:no-repeat;background-position:12px 50%;background-size:16px auto;}", a += ".addeventatc_dropdown em {font-size:12px!important;color:#999!important;}"; var n = document.createElement("style"); n.type = "text/css", n.id = "ate_css", n.styleSheet ? n.styleSheet.cssText = a : n.appendChild(document.createTextNode(a)), document.getElementsByTagName("head")[0].appendChild(n), addeventatc.removeelement
6($d("ate_tmp_css")) } }, helpercss: function () { if (!$d("ate_helper_css")) { var e = ""; e += ".addeventatc_dropdown .drop_markup {background-color:#f4f4f4;}", e += ".addeventatc_dropdown .frs a {margin:0!important;padding:0!important;font-style:normal!important;font-weight:normal!important;line-height:110%!important;background-color:#fff!important;text-decoration:none;font-size:9px!important;color:#cacaca!important;display:inline-block;}", e += ".addeventatc_dropdown .frs a:hover {color:#999!important;}", e += ".addeventatc .start, .addeventatc .end, .addeventatc .timezone, .addeventatc .title, .addeventatc .description, .addeventatc .location, .addeventatc .organizer, .addeventatc .organizer_email, .addeventatc .facebook_event, .addeventatc .all_day_event, .addeventatc .date_format, .addeventatc .alarm_reminder, .addeventatc .recurring, .addeventatc .attendees, .addeventatc .client, .addeventatc .calname, .addeventatc .uid, .addeventatc .status, .addeventatc .method {display:none!important;}"; var t = document.createElement("style"); t.type = "text/css", t.id = "ate_helper_css", t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e)), document.getElementsByTagName("head")[0].appendChild(t) } }, removeelement: function (e) { try { return !!(hdx = e) && hdx.parentNode.removeChild(hdx) } catch (e) { } }, topzindex: function () { for (var e = 1, t = document.getElementsByTagName("*"), a = 0; a < t.length; a += 1) if (addeventatc.hasclass(t[a], "addeventatc") || addeventatc.hasclass(t[a], "addeventstc")) { var n = addeventatc.getstyle(t[a], "z-index"); !isNaN(parseFloat(n)) && isFinite(n) && (n = parseInt(n)) > e && (e = n) } return e }, viewport: function () { var e = 0, t = 0, a = 0, n = 0; return "number" == typeof window.innerWidth ? (e = window.innerWidth, t = window.innerHeight) : document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight) ? (e = document.documentElement.clientWidth, t = document.documentElement.clientHeight) : document.body && (document.body.clientWidth || document.body.clientHeight) && (e = document.body.clientWidth, t = document.body.clientHeight), document.all ? (n = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft, a = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) : (n = window.pageXOffset, a = window.pageYOffset), { w: e, h: t, x: n, y: a } }, elementposition: function (e) { var t = 0, a = 0; if (e.offsetParent) for (t = e.offsetLeft, a = e.offsetTop; e = e.offsetParent;) t += e.offsetLeft, a += e.offsetTop; return { x: t, y: a } }, getstyle: function (e, t) { var a, n = e; return n.currentStyle ? a = n.currentStyle[t] : window.getComputedStyle && (a = document.defaultView.getComputedStyle(n, null).getPropertyValue(t)), a }, getlicense: function (e) { var t = location.origin, a = !1; if (void 0 === location.origin && (t = location.protocol + "//" + location.host), e) { var n = e.substring(0, 1), o = e.substring(9, 10), d = e.substring(17, 18); "a" == n && "z" == o && "m" == d && (a = !0) } return (-1 == t.indexOf("addevent.com") && "aao8iuet5zp9iqw5sm9z" == e || -1 == t.indexOf("addevent.to") && "aao8iuet5zp9iqw5sm9z" == e || -1 == t.indexOf("addevent.com") && "aao8iuet5zp9iqw5sm9z" == e) && (a = !0), a }, refresh: function () { for (var e = document.getElementsByTagName("*"), t = [], a = 0; a < e.length; a += 1) if (addeventatc.hasclass(e[a], "addeventatc")) { e[a].className = e[a].className.replace(/addeventatc-selected/gi, ""), e[a].id = ""; for (var n = e[a].getElementsByTagName("*"), o = 0; o < n.length; o += 1) (addeventatc.hasclass(n[o], "addeventatc_icon") || addeventatc.hasclass(n[o], "addeventatc_dropdown")) && t.push(n[o]) } for (var d = 0; d < t.length; d += 1) addeventatc.removeelement(t[d]); addeventatc.removeelement($d("ate_css")), c = 1, s = !1, addeventatc.generate() }, hasclass: function (e, t) { return new RegExp("(\\s|^)" + t + "(\\s|$)").test(e.className) }, eclick: function (e) { var t = document.getElementById(e); if (t.click) t.click(); else if (document.createEvent) { var a = document.createEvent("MouseEvents"); a.initEvent("click", !0, !0), t.dispatchEvent(a) } }, track: function (e) { new Image, (new Date).getTime(), encodeURIComponent(window.location.origin) }, getguid: function () { for (var e = "addevent_track_cookie=", t = "", a = document.cookie.split(";"), n = 0; n < a.length; n++) { for (var o = a[n]; " " == o.charAt(0) ;) o = o.substring(1, o.length); 0 == o.indexOf(e) && (t = o.substring(e.length, o.length)) } if ("" == t) { var d = (addeventatc.s4() + addeventatc.s4() + "-" + addeventatc.s4() + "-4" + addeventatc.s4().substr(0, 3) + "-" + addeventatc.s4() + "-" + addeventatc.s4() + addeventatc.s4() + addeventatc.s4()).toLowerCase(), c = new Date; c.setTime(c.getTime() + 31536e6); var i = "expires=" + c.toUTCString(); document.cookie = "addevent_track_cookie=" + d + "; " + i, t = d } return t }, s4: function () { return (65536 * (1 + Math.random()) | 0).toString(16).substring(1) }, documentclick: function (e) { e = (e = e || window.event).target || e.srcElement, ate_touch_capable ? (clearTimeout(o), o = setTimeout(function () { addeventatc.hide(e.className) }, 500)) : addeventatc.hide(e.className) }, trigger: function (e, t) { if ("button_click" == e) try { E(t) } catch (e) { } if ("button_mouseover" == e) try { N(t) } catch (e) { } if ("button_mouseout" == e) try { C(t) } catch (e) { } if ("button_dropdown_show" == e) try { I(t) } catch (e) { } if ("button_dropdown_hide" == e) try { $(t) } catch (e) { } if ("button_dropdown_click" == e) try { A(t) } catch (e) { } }, register: function (e, t) { "button-click" == e && (E = t), "button-mouseover" == e && (N = t), "button-mouseout" == e && (C = t), "button-dropdown-show" == e && (I = t), "button-dropdown-hide" == e && ($ = t), "button-dropdown-click" == e && (A = t) }, settings: function (e) { null != e.license && (t = e.license), null != e.css && (e.css ? l = !0 : (l = !1, addeventatc.removeelement
6($d("ate_css")))), null != e.mouse && (i = e.mouse), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) && (i = !1), null != e.outlook && null != e.outlook.show && (h = e.outlook.show), null != e.google && null != e.google.show && (g = e.google.show), null != e.yahoo && null != e.yahoo.show && (b = e.yahoo.show), null != e.hotmail && null != e.hotmail.show && (f = e.hotmail.show), null != e.outlookcom && null != e.outlookcom.show && (f = e.outlookcom.show), null != e.ical && null != e.ical.show && (m = e.ical.show), null != e.appleical && null != e.appleical.show && (m = e.appleical.show), null != e.facebook && null != e.facebook.show && (w = e.facebook.show), null != e.outlook && null != e.outlook.text && (y = e.outlook.text), null != e.google && null != e.google.text && (k = e.google.text), null != e.yahoo && null != e.yahoo.text && (T = e.yahoo.text), null != e.hotmail && null != e.hotmail.text && (_ = e.hotmail.text), null != e.outlookcom && null != e.outlookcom.text && (_ = e.outlookcom.text), null != e.ical && null != e.ical.text && (x = e.ical.text), null != e.appleical && null != e.appleical.text && (x = e.appleical.text), null != e.facebook && null != e.facebook.text && (z = e.facebook.text), null != e.dropdown && null != e.dropdown.order && (v = e.dropdown.order) }, keyboard: function (e, t) { var a = document.getElementById(t.id + "-drop"); if (a && "block" == addeventatc.getstyle(a, "display")) { for (var n = a.getElementsByTagName("SPAN"), o = null, d = 0, c = 0, i = 0; i < n.length; i += 1) d++, addeventatc.hasclass(n[i], "drop_markup") && (o = n[i], c = d); null === o ? c = 1 : "down" == t.key ? c >= d ? c = 1 : c++ : 1 == c ? c = d : c--, d = 0; for (i = 0; i < n.length; i += 1) if (++d == c) n[i].className += " drop_markup"; else { var l = new RegExp("(\\s|^)drop_markup(\\s|$)"); n[i].className = n[i].className.replace(l, " "), n[i].className = n[i].className.replace(/\s+$/, "") } } }, keyboardclick: function (e, t) { var a = document.getElementById(t.id + "-drop"); if (a) { for (var n = a.getElementsByTagName("SPAN"), o = null, d = 0; d < n.length; d += 1) addeventatc.hasclass(n[d], "drop_markup") && (o = n[d]); if (null !== o) { o.click(); for (d = 0; d < n.length; d += 1) { var c = new RegExp("(\\s|^)drop_markup(\\s|$)"); n[d].className = n[d].className.replace(c, " "), n[d].className = n[d].className.replace(/\s+$/, "") } } } }, usewebcal: function () { var e = !1, t = window.navigator.userAgent.toLowerCase(), a = /CriOS/i.test(navigator.userAgent), n = /iphone|ipod|ipad/.test(t), o = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent); return (n && o || n && a) && (e = !0), e }, agent: function () { var e = navigator.userAgent || navigator.vendor || window.opera; return /windows phone/i.test(e) ? "windows_phone" : /android/i.test(e) ? "android" : /iPad|iPhone|iPod/.test(e) && !window.MSStream ? "ios" : "unknown" } } }(); !function (e, t) { "use strict"; e = e || "docReady", t = t || window; var a = [], n = !1, o = !1; function d() { if (!n) { n = !0; for (var e = 0; e < a.length; e++) a[e].fn.call(window, a[e].ctx); a = [] } } function c() { "complete" === document.readyState && d() } t[e] = function (e, t) { if ("function" != typeof e) throw new TypeError("callback for docReady(fn) must be a function"); n ? setTimeout(function () { e(t) }, 1) : (a.push({ fn: e, ctx: t }), "complete" === document.readyState || !document.attachEvent && "interactive" === document.readyState ? setTimeout(d, 1) : o || (document.addEventListener ? (document.addEventListener("DOMContentLoaded", d, !1), window.addEventListener("load", d, !1)) : (document.attachEvent("onreadystatechange", c), window.attachEvent("onload", d)), o = !0)) } }("addeventReady", window); var ate_touch_capable = "ontouchstart" in window || window.DocumentTouch && document instanceof window.DocumentTouch || navigator.maxTouchPoints > 0 || window.navigator.msMaxTouchPoints > 0; window.addEventListener ? (document.addEventListener("click", addeventatc.documentclick, !1), ate_touch_capable && document.addEventListener("touchend", addeventatc.documentclick, !1)) : window.attachEvent ? (document.attachEvent("onclick", addeventatc.documentclick), ate_touch_capable && document.attachEvent("ontouchend", addeventatc.documentclick)) : document.onclick = function () { addeventatc.documentclick(event) }, addeventReady(function () { addeventatc.initialize(), setTimeout("addeventatc.initialize();", 200) });
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.