File: /www/wwwroot/biographybirthday.com/wp-content/cache/minify/e4841.js_old
!function(){if("function"==typeof window.CustomEvent)return!1;function a(c,a){a=a||{bubbles:!1,cancelable:!1,detail:void 0};var b=document.createEvent("CustomEvent");return b.initCustomEvent(c,a.bubbles,a.cancelable,a.detail),b}a.prototype=window.Event.prototype,window.CustomEvent=a}(),function(){var b=function(a){return new RegExp("(^| )"+a+"( |$)")},c=function(b,c,d){for(var a=0;a<b.length;a++)c.call(d,b[a])};function a(a){this.element=a}a.prototype={add:function(){c(arguments,function(a){this.contains(a)||(this.element.className+=this.element.className.length>0?" "+a:a)},this)},remove:function(){c(arguments,function(a){this.element.className=this.element.className.replace(b(a),"")},this)},toggle:function(a){return this.contains(a)?(this.remove(a),!1):(this.add(a),!0)},contains:function(a){return b(a).test(this.element.className)},replace:function(a,b){this.remove(a),this.add(b)}},"classList"in Element.prototype||Object.defineProperty(Element.prototype,"classList",{get:function(){return new a(this)}}),window.DOMTokenList&&null==DOMTokenList.prototype.replace&&(DOMTokenList.prototype.replace=a.prototype.replace)}(),function(a,b,c){var d=new function(){this.cookiesAccepted=null,this.noticeContainer=null,this.setStatus=function(c){var l=this,g="",h="",f=new Date,e=new Date;"1"===cnArgs.onScroll&&a.removeEventListener("scroll",this.handleScroll),"accept"===c?(c="true",e.setTime(parseInt(f.getTime())+1e3*parseInt(cnArgs.cookieTime))):(c="false",e.setTime(parseInt(f.getTime())+1e3*parseInt(cnArgs.cookieTimeRejected))),"1"===cnArgs.globalCookie&&(g=this.getDomain(b.location.hostname)),"localhost"===b.location.hostname&&(h=b.location.pathname.split("/")[1]);var i="";"https:"===b.location.protocol&&(i=";secure"),b.cookie=cnArgs.cookieName+"="+c+";expires="+e.toUTCString()+";path=/"+h+";domain="+g+i,this.cookiesAccepted="true"===c;var k=new CustomEvent("setCookieNotice",{detail:{value:c,time:f,expires:e,data:cnArgs}});if(b.dispatchEvent(k),this.setBodyClass(["cookies-set","true"===c?"cookies-accepted":"cookies-refused"]),this.hideCookieNotice(),"automatic"===cnArgs.revokeCookiesOpt&&(this.noticeContainer.addEventListener("animationend",function a(){l.noticeContainer.removeEventListener("animationend",a),l.showRevokeNotice()}),this.noticeContainer.addEventListener("webkitAnimationEnd",function a(){l.noticeContainer.removeEventListener("webkitAnimationEnd",a),l.showRevokeNotice()})),"1"===cnArgs.redirection&&("true"===c&&null===this.cookiesAccepted||c!==this.cookiesAccepted&&null!==this.cookiesAccepted)){var d=a.location.protocol+"//",j=a.location.host+"/"+a.location.pathname;"1"===cnArgs.cache?(d=d+j.replace("//","/")+(""===a.location.search?"?":a.location.search+"&")+"cn-reloaded=1"+a.location.hash,a.location.href=d):(d=d+j.replace("//","/")+a.location.search+a.location.hash,a.location.reload(!0));return}},this.getDomain=function(a){new RegExp(/https?:\/\//).test(a)||(a="http://"+a);var b=new URL(a).hostname.split(".");return b.slice(0).slice(-(4===b.length?3:2)).join(".")},this.getStatus=function(d){var a=("; "+b.cookie).split("; cookie_notice_accepted=");if(2!==a.length)return null;var c=a.pop().split(";").shift();return d?"true"===c:c},this.showCookieNotice=function(){var c=this,a=new CustomEvent("showCookieNotice",{detail:{data:cnArgs}});b.dispatchEvent(a),this.noticeContainer.classList.remove("cookie-notice-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function a(){c.noticeContainer.removeEventListener("animationend",a),c.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function a(){c.noticeContainer.removeEventListener("webkitAnimationEnd",a),c.noticeContainer.classList.remove("cn-animated")})},this.hideCookieNotice=function(){var c=this,a=new CustomEvent("hideCookieNotice",{detail:{data:cnArgs}});b.dispatchEvent(a),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function a(){c.noticeContainer.removeEventListener("animationend",a),c.noticeContainer.classList.remove("cn-animated"),c.noticeContainer.classList.add("cookie-notice-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function a(){c.noticeContainer.removeEventListener("webkitAnimationEnd",a),c.noticeContainer.classList.remove("cn-animated"),c.noticeContainer.classList.add("cookie-notice-hidden")})},this.showRevokeNotice=function(){var c=this,a=new CustomEvent("showRevokeNotice",{detail:{data:cnArgs}});b.dispatchEvent(a),this.noticeContainer.classList.remove("cookie-revoke-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function a(){c.noticeContainer.removeEventListener("animationend",a),c.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function a(){c.noticeContainer.removeEventListener("webkitAnimationEnd",a),c.noticeContainer.classList.remove("cn-animated")})},this.hideRevokeNotice=function(){var c=this,a=new CustomEvent("hideRevokeNotice",{detail:{data:cnArgs}});b.dispatchEvent(a),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function a(){c.noticeContainer.removeEventListener("animationend",a),c.noticeContainer.classList.remove("cn-animated"),c.noticeContainer.classList.add("cookie-revoke-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function a(){c.noticeContainer.removeEventListener("webkitAnimationEnd",a),c.noticeContainer.classList.remove("cn-animated"),c.noticeContainer.classList.add("cookie-revoke-hidden")})},this.setBodyClass=function(c){b.body.classList.remove("cookies-revoke"),b.body.classList.remove("cookies-accepted"),b.body.classList.remove("cookies-refused"),b.body.classList.remove("cookies-set"),b.body.classList.remove("cookies-not-set");for(var a=0;a<c.length;a++)b.body.classList.add(c[a])},this.handleScroll=function(){(a.pageYOffset||(b.documentElement||b.body.parentNode||b.body).scrollTop)>parseInt(cnArgs.onScrollOffset)&&this.setStatus("accept")},this.getClosest=function(a,c){for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(c){for(var b=(this.document||this.ownerDocument).querySelectorAll(c),a=b.length;--a>=0&&b.item(a)!==this;);return a> -1});a&&a!==b;a=a.parentNode)if(a.matches(c))return a;return null},this.inIframe=function(){try{return a.self!==a.top}catch(b){return!0}},this.init=function(){var g=this;if(!0!==this.inIframe()&&(this.cookiesAccepted=this.getStatus(!0),this.noticeContainer=b.getElementById("cookie-notice"),this.noticeContainer)){var d=b.getElementsByClassName("cn-set-cookie"),e=b.getElementsByClassName("cn-revoke-cookie"),f=b.getElementById("cn-close-notice");this.noticeContainer.classList.add("cn-effect-"+cnArgs.hideEffect),null===this.cookiesAccepted?("1"===cnArgs.onScroll&&a.addEventListener("scroll",function(a){g.handleScroll()}),"1"===cnArgs.onClick&&a.addEventListener("click",function(a){null===g.getClosest(a.target,"#cookie-notice")&&g.setStatus("accept")},!0),this.setBodyClass(["cookies-not-set"]),this.showCookieNotice()):(this.setBodyClass(["cookies-set",!0===this.cookiesAccepted?"cookies-accepted":"cookies-refused"]),"1"===cnArgs.revokeCookies&&"automatic"===cnArgs.revokeCookiesOpt&&this.showRevokeNotice());for(var c=0;c<d.length;c++)d[c].addEventListener("click",function(a){a.preventDefault(),a.stopPropagation(),g.setStatus(this.dataset.cookieSet)});null!==f&&f.addEventListener("click",function(a){a.preventDefault(),a.stopPropagation(),g.setStatus("reject")});for(var c=0;c<e.length;c++)e[c].addEventListener("click",function(a){a.preventDefault(),g.noticeContainer.classList.contains("cookie-revoke-visible")?(g.hideRevokeNotice(),g.noticeContainer.addEventListener("animationend",function a(){g.noticeContainer.removeEventListener("animationend",a),g.showCookieNotice()}),g.noticeContainer.addEventListener("webkitAnimationEnd",function a(){g.noticeContainer.removeEventListener("webkitAnimationEnd",a),g.showCookieNotice()})):g.noticeContainer.classList.contains("cookie-notice-hidden")&&g.noticeContainer.classList.contains("cookie-revoke-hidden")&&g.showCookieNotice()})}}};a.addEventListener("load",function(){d.init()},!1)}(window,document,void 0)
;function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function _extends(){return(_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.LazyLoad=e()}(this,function(){"use strict";var t="undefined"!=typeof window,e=t&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),n=t&&"IntersectionObserver"in window,r=t&&"classList"in document.createElement("p"),o={elements_selector:"img",container:e||t?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",class_loading:"loading",class_loaded:"loaded",class_error:"error",load_delay:0,auto_unobserve:!0,callback_enter:null,callback_exit:null,callback_reveal:null,callback_loaded:null,callback_error:null,callback_finish:null,use_native:!1},a=function(t,e){var n,r=new t(e);try{n=new CustomEvent("LazyLoad::Initialized",{detail:{instance:r}})}catch(t){(n=document.createEvent("CustomEvent")).initCustomEvent("LazyLoad::Initialized",!1,!1,{instance:r})}window.dispatchEvent(n)};var i=function(t,e){return t.getAttribute("data-"+e)},s=function(t,e,n){var r="data-"+e;null!==n?t.setAttribute(r,n):t.removeAttribute(r)},c=function(t){return"true"===i(t,"was-processed")},l=function(t,e){return s(t,"ll-timeout",e)},u=function(t){return i(t,"ll-timeout")},f=function(t,e){t&&t(e)},d=function(t,e){t._loadingCount+=e,0===t._elements.length&&0===t._loadingCount&&f(t._settings.callback_finish)},_=function(t){for(var e,n=[],r=0;e=t.children[r];r+=1)"SOURCE"===e.tagName&&n.push(e);return n},v=function(t,e,n){n&&t.setAttribute(e,n)},b=function(t,e){v(t,"sizes",i(t,e.data_sizes)),v(t,"srcset",i(t,e.data_srcset)),v(t,"src",i(t,e.data_src))},m={IMG:function(t,e){var n=t.parentNode;n&&"PICTURE"===n.tagName&&_(n).forEach(function(t){b(t,e)});b(t,e)},IFRAME:function(t,e){v(t,"src",i(t,e.data_src))},VIDEO:function(t,e){_(t).forEach(function(t){v(t,"src",i(t,e.data_src))}),v(t,"src",i(t,e.data_src)),t.load()}},g=function(t,e){var n,r,o=e._settings,a=t.tagName,s=m[a];if(s)return s(t,o),d(e,1),void(e._elements=(n=e._elements,r=t,n.filter(function(t){return t!==r})));!function(t,e){var n=i(t,e.data_src),r=i(t,e.data_bg);n&&(t.style.backgroundImage='url("'.concat(n,'")')),r&&(t.style.backgroundImage=r)}(t,o)},y=function(t,e){r?t.classList.add(e):t.className+=(t.className?" ":"")+e},h=function(t,e){r?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,"")},p=function(t,e,n){t.addEventListener(e,n)},E=function(t,e,n){t.removeEventListener(e,n)},w=function(t,e,n){E(t,"load",e),E(t,"loadeddata",e),E(t,"error",n)},A=function(t,e,n){var r=n._settings,o=e?r.class_loaded:r.class_error,a=e?r.callback_loaded:r.callback_error,i=t.target;h(i,r.class_loading),y(i,o),f(a,i),d(n,-1)},I=function(t,e){var n=function n(o){A(o,!0,e),w(t,n,r)},r=function r(o){A(o,!1,e),w(t,n,r)};!function(t,e,n){p(t,"load",e),p(t,"loadeddata",e),p(t,"error",n)}(t,n,r)},k=["IMG","IFRAME","VIDEO"],L=function(t,e){var n=e._observer;S(t,e),n&&e._settings.auto_unobserve&&n.unobserve(t)},O=function(t){var e=u(t);e&&(clearTimeout(e),l(t,null))},x=function(t,e){var n=e._settings.load_delay,r=u(t);r||(r=setTimeout(function(){L(t,e),O(t)},n),l(t,r))},S=function(t,e,n){var r=e._settings;!n&&c(t)||(k.indexOf(t.tagName)>-1&&(I(t,e),y(t,r.class_loading)),g(t,e),function(t){s(t,"was-processed","true")}(t),f(r.callback_reveal,t),f(r.callback_set,t))},z=function(t){return!!n&&(t._observer=new IntersectionObserver(function(e){e.forEach(function(e){return function(t){return t.isIntersecting||t.intersectionRatio>0}(e)?function(t,e){var n=e._settings;f(n.callback_enter,t),n.load_delay?x(t,e):L(t,e)}(e.target,t):function(t,e){var n=e._settings;f(n.callback_exit,t),n.load_delay&&O(t)}(e.target,t)})},{root:(e=t._settings).container===document?null:e.container,rootMargin:e.thresholds||e.threshold+"px"}),!0);var e},C=["IMG","IFRAME"],N=function(t,e){return function(t){return t.filter(function(t){return!c(t)})}((n=t||function(t){return t.container.querySelectorAll(t.elements_selector)}(e),Array.prototype.slice.call(n)));var n},M=function(t){var e=t._settings;_toConsumableArray(e.container.querySelectorAll("."+e.class_error)).forEach(function(t){h(t,e.class_error),function(t){s(t,"was-processed",null)}(t)}),t.update()},R=function(e,n){var r;this._settings=function(t){return _extends({},o,t)}(e),this._loadingCount=0,z(this),this.update(n),r=this,t&&window.addEventListener("online",function(t){M(r)})};return R.prototype={update:function(t){var n,r=this,o=this._settings;(this._elements=N(t,o),!e&&this._observer)?(function(t){return t.use_native&&"loading"in HTMLImageElement.prototype}(o)&&((n=this)._elements.forEach(function(t){-1!==C.indexOf(t.tagName)&&(t.setAttribute("loading","lazy"),S(t,n))}),this._elements=N(t,o)),this._elements.forEach(function(t){r._observer.observe(t)})):this.loadAll()},destroy:function(){var t=this;this._observer&&(this._elements.forEach(function(e){t._observer.unobserve(e)}),this._observer=null),this._elements=null,this._settings=null},load:function(t,e){S(t,this,e)},loadAll:function(){var t=this;this._elements.forEach(function(e){L(e,t)})}},t&&function(t,e){if(e)if(e.length)for(var n,r=0;n=e[r];r+=1)a(t,n);else a(t,e)}(R,window.lazyLoadOptions),R});