1(function(){'use strict';var originalAddEventListener=document.addEventListener;var isDOMReady=document.readyState==='complete'||document.readyState==='interactive';document.addEventListener=function(event,callback,options){if(event==='DOMContentLoaded'&&typeof callback==='function'){var deferredCallback=function(e){requestAnimationFrame(function(){callback.call(this,e)}.bind(this))};if(isDOMReady){requestAnimationFrame(function(){callback.call(document,new Event('DOMContentLoaded'))})}else{originalAddEventListener.call(document,event,deferredCallback,options)}}else{originalAddEventListener.call(document,event,callback,options)}};if(!isDOMReady){originalAddEventListener.call(document,'DOMContentLoaded',function(){isDOMReady=!0})}})();!function(e,t){"use strict";var o=function(){if(!(this instanceof o))throw"OP3_Cookie: OP3_Cookie is a constructor."};o.prototype={_defaults:{expires:null,"max-age":null,domain:null,path:"/",secure:null,samesite:null},_encodeKey:function(e){return e.replace(/[^\x10-\x7E]+/g,"").replace(/[\x20\(\)<>@,;:\\"\/\[\]\?={}]+/g,"")},_encodeValue:function(e){return encodeURIComponent(e)},_decodeValue:function(e){return decodeURIComponent(e)},get:function(e){var t=this.toObject();return e in t?t[e]:null},set:function(e,o,i){if(void 0!==e&&""!==e){if(e=this._encodeKey(e),o=this._encodeValue(o),!e||!o)throw"OP3.Cookie: key/value arguments are mandatory.";for(var n in i=i||{}){var r=i[n];delete i[n],i[n.toLowerCase()]=r}for(var n in this._defaults)n in i||(i[n]=this._defaults[n]);if(i.expires){if(!isNaN(1*i.expires)){var s=new Date;s.setTime(s.getTime()+24*i.expires*60*60*1e3),i.expires=s}i.expires instanceof Date&&(i.expires=i.expires.toUTCString())}var a="";for(var n in i)null!==i[n]&&!1!==i[n]&&(a+=";"+n,!0!==i[n]&&(a+="="+i[n]));t.cookie=e+"="+o+a}},del:function(e){this.set(e,"0",{expires:-1})},toObject:function(){var e={};return(t.cookie?t.cookie.split("; "):[]).forEach(function(t){var o=t.split("="),i=o[0],n=o.slice(1).join("=");n=(n=this._decodeValue(n)).replace(/^"(.*)"$/,"$1"),e[i]=n}.bind(this)),e}},o.prototype.constructor=o,e.OP3=e.OP3||{},e.OP3.Cookie=new o}(window,document);!function(e,t){"use strict";var n=function(t){if(!(this instanceof n))throw"OP3_PopOverlay: OP3_PopOverlay is a constructor.";if(t=t||e,"[object Window]"!==Object.prototype.toString.call(t))throw"OP3_PopOverlay: parent argument must be of type Window.";this._init(t)};n.prototype={constructor:n,_init:function(e){this._parent=e,this._wrapper=null,this._wrappers=null,this._elements=null,this._current=null,this._focusablesSelector='a[href]:not([tabindex="-1"]),button:not([disabled]):not([tabindex="-1"]),input:not([disabled]):not([tabindex="-1"]),select:not([disabled]):not([tabindex="-1"]),textarea:not([disabled]):not([tabindex="-1"]),[tabindex]:not([tabindex="-1"])',this._lastFocused=null,this._openKeydownHandler=null,this._focusInHandler=null,this._boundHandleLoad=this._handleLoad.bind(this),this._boundHandleExitIntent=this._handleExitIntent.bind(this),this._boundHandleClick=this._handleClick.bind(this),this.parent.addEventListener("load",this._boundHandleLoad),this.parent.document.addEventListener("exitintent",this._boundHandleExitIntent),this.parent.document.body.addEventListener("click",this._boundHandleClick),this.refresh()},destroy:function(){this.clearElements(),this.parent.document.body.removeEventListener("click",this._boundHandleClick),this.parent.document.removeEventListener("exitintent",this._boundHandleExitIntent),this.parent.removeEventListener("load",this._boundHandleLoad),delete this._boundHandleClick,delete this._boundHandleExitIntent,delete this._boundHandleLoad,delete this._current,delete this._elements,delete this._wrappers,delete this._wrapper,delete this._parent},get parent(){return this._parent},set parent(e){if(this.parent!==e){if("[object Window]"!==Object.prototype.toString.call(e))throw"OP3_PopOverlay: parent property must be of type Window.";this.destroy(),this._init(e)}},get wrapper(){return this._wrapper||(this._wrappers=Array.from(this.parent.document.querySelectorAll(".op3-designer-element--content, .op3-designer-element--header, .op3-designer-element--footer, .op3-designer-element--layout")),this._wrapper=this._wrappers.length>0?this._wrappers[0]:null),this._wrapper}
1,get wrappers(){return this._wrappers||(this._wrappers=Array.from(this.parent.document.querySelectorAll(".op3-designer-element--content, .op3-designer-element--header, .op3-designer-element--footer, .op3-designer-element--layout")),this._wrapper=this._wrappers.length>0?this._wrappers[0]:null),this._wrappers},get current(){return this._current},refresh:function(){this.clearElements(),this.wrappers.forEach(function(e){e.querySelectorAll('.op3-element[data-op3-element-type="popoverlay"]').forEach(function(e){this.addElement(e)}.bind(this))}.bind(this))},clearElements:function(){this._elements&&Object.keys(this._elements).map(function(e){return this._elements[e]}.bind(this)).forEach(function(e){e.interval&&this.parent.clearInterval(e.interval),this._teardownA11yHandlers(e)}.bind(this)),this._elements={}},addElement:function(e){var t=this._getElementConfig(e);if(t){var n=t.index;Object.keys(this._elements).map(function(e){return this._elements[e]}.bind(this)).filter(function(e){return e.index>=n}).forEach(function(e){e.index++}),this._elements[t.uuid]=t}},removeElement:function(e){var t=this._getElementConfig(e);if(t){var n=this.current,i=t.uuid,o=t.index,r=t.interval;n===i&&this.close(),r&&this.parent.clearInterval(r),delete this._elements[i],Object.keys(this._elements).map(function(e){return this._elements[e]}.bind(this)).filter(function(e){return e.index>=o}).forEach(function(e){e.index--})}},refreshElement:function(e){var t=this._getElementConfig(e);t&&(this._elements[t.uuid]=this._getElementConfig(e,!0))},getConfig:function(e){return e in this._elements?this._elements[e]:null},open:function(e,t){if(this.current)return this._call(t,null);var n=this._elements[e];if(!n)return this._call(t,null);this._modalShow(n,t)},close:function(e){var t=this.current;t?this._modalHide(this._elements[t],e):this._call(e,null)},_isDevice:!!(navigator.maxTouchPoints||"ontouchstart"in t.documentElement),_call:function(e){if("function"==typeof e){var t=Array.prototype.slice.call(arguments,1);e.apply(this,t)}},_trigger:function(e,t,n){var i=new CustomEvent("op3popoverlay"+t,n||{});return e.dispatchEvent(i),i},_getElementConfig:function(t,n){if(!n){var i=t.getAttribute("data-op3-uuid"),o=this.getConfig(i);if(o)return o}var r=t.querySelector(".op3-popoverlay-content"),a=t.querySelector(".op3-popoverlay-controls"),s=t.querySelectorAll('[data-op3-element-type="video"] iframe, [data-op3-element-type="video"] video'),l=t.querySelectorAll('[data-op3-element-type="soundcloud"] iframe'),d=[];this.wrappers.forEach(function(e){var t=Array.prototype.slice.call(e.querySelectorAll('.op3-element[data-op3-element-type="popoverlay"]'));d=d.concat(t)});var c,p=d.indexOf(t),u=t.getAttribute("data-op3-uuid"),h=r.getAttribute("data-op3-text"),v=r.getAttribute("data-op-animation"),f=r.getAttribute("data-op-animation-trigger")||"none",m=!!(1*r.getAttribute("data-op3-use-on-devices")),_=0,y=1*r.getAttribute("data-op3-cookie-expires")||0;t.className=t.className.replace(/(^|\s)op3-popoverlay-effect-\S+/g," ").replace(/\s+/g," ").trim(),t.className+=(t.className?" ":"")+"op3-popoverlay-effect-"+v;var b=e.getComputedStyle(r);c=parseFloat(b.getPropertyValue("animation-duration"))||parseFloat(b.getPropertyValue("transition-duration"))||0;var g=r.getAttribute("data-op-timer")||"0sec";g&&g.indexOf("sec")>-1?_=1e3*parseInt(g,10):g&&g.indexOf("min")>-1&&(_=1e3*parseInt(g,10)*60);var E=t.querySelector(".op3-popoverlay-wrapper"),w=t.querySelector(".op3-popoverlay-background"),A=t.querySelector(".op3-popoverlay-title"),k=t.querySelector(".op3-popoverlay-desc"),x=t.querySelector(".op3-popoverlay-close"),H=A?A.id||"op3-pop-title-"+u:null;A&&!A.id&&(A.id=H);var L=k?k.id||"op3-pop-desc-"+u:null;return k&&!k.id&&(k.id=L),E&&(E.setAttribute("role","dialog"),E.setAttribute("aria-modal","true"),H&&E.setAttribute("aria-labelledby",H),L&&E.setAttribute("aria-describedby",L),E.setAttribute("tabindex","-1")),{element:t,content:r,controls:a,videoElements:s,soundcloudElements:l,interval:null,index:
1p,uuid:u,name:h,animationStyle:v,animationDuration:c,triggerEvent:f,useOnDevices:m,delayTimer:_,cookieExpires:y,dialogEl:E,backdropEl:w,titleEl:A,descEl:k,closeEl:x}},_setupA11yHandlers:function(e){var n=this,i=e.dialogEl,o=e.backdropEl;this._lastFocused=t.activeElement,o&&(e._backdropClick=function(){n.close()},o.addEventListener("click",e._backdropClick)),this._openKeydownHandler=function(e){if(i)if("Escape"===e.key)e.preventDefault(),n.close();else if("Tab"===e.key){var o=Array.from(i.querySelectorAll(n._focusablesSelector)).filter(function(e){return null!==e.offsetParent||e===i});if(0===o.length)return e.preventDefault(),void i.focus();var r=o[0],a=o[o.length-1];e.shiftKey&&t.activeElement===r?(e.preventDefault(),a.focus()):e.shiftKey||t.activeElement!==a||(e.preventDefault(),r.focus())}},t.addEventListener("keydown",this._openKeydownHandler,!0),this._focusInHandler=function(e){i&&(i.contains(e.target)||((i.querySelectorAll(n._focusablesSelector)[0]||i).focus(),e.stopPropagation()))},t.addEventListener("focusin",this._focusInHandler,!0),e.closeEl&&"A"===e.closeEl.tagName&&(e.closeEl.setAttribute("role","button"),e._closeKeyHandler=function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),n.close())},e.closeEl.addEventListener("keydown",e._closeKeyHandler)),i&&i.focus(),t.body.style.overflow="hidden"},_teardownA11yHandlers:function(e){var n=e.backdropEl;this._openKeydownHandler&&(t.removeEventListener("keydown",this._openKeydownHandler,!0),this._openKeydownHandler=null),this._focusInHandler&&(t.removeEventListener("focusin",this._focusInHandler,!0),this._focusInHandler=null),n&&e._backdropClick&&(n.removeEventListener("click",e._backdropClick),n.setAttribute("aria-hidden","true"),n.hidden=!0,delete e._backdropClick),e.closeEl&&e._closeKeyHandler&&(e.closeEl.removeEventListener("keydown",e._closeKeyHandler),delete e._closeKeyHandler),this._lastFocused&&"function"==typeof this._lastFocused.focus&&this._lastFocused.focus(),this._lastFocused=null,t.body.style.overflow=""},_modalShow:function(e,t){var n=e.element,i=this.wrapper,o=function(i){i&&i.target!==e.content||(i&&(i.target.removeEventListener("transitionend",o),i.target.removeEventListener("animationend",o)),e.dialogEl&&(e.dialogEl.setAttribute("aria-modal","true"),e.dialogEl.removeAttribute("aria-hidden")),this._setupA11yHandlers(e),this._trigger(n,"open",{bubbles:!0,detail:{config:e}}),this._call(t,e))}.bind(this);this._current=e.uuid,i&&i.classList.add("op3-popoverlay-active"),n.classList.remove("op3-popoverlay-hide"),n.classList.remove("op3-popoverlay-show"),n.style.display="block",e.backdropEl&&(e.backdropEl.removeAttribute("aria-hidden"),e.backdropEl.hidden=!1),n.offsetHeight,n.classList.add("op3-popoverlay-show"),e.animationDuration&&n.parentElement?(e.content.addEventListener("transitionend",o),e.content.addEventListener("animationend",o)):o(),this._videoStart(),this._soundcloudStart()},_modalHide:function(e,t){var n=e.element,i=this.wrapper,o=function(r){r&&r.target!==e.content||(r&&(r.target.removeEventListener("transitionend",o),r.target.removeEventListener("animationend",o)),e.dialogEl&&e.dialogEl.setAttribute("aria-hidden","true"),this._teardownA11yHandlers(e),this._current=null,i&&i.classList.remove("op3-popoverlay-active"),n.classList.remove("op3-popoverlay-show"),n.style.display="none",this._trigger(n,"close",{bubbles:!0,detail:{config:e}}),this._call(t,e))}.bind(this);e.interval&&(this.parent.clearInterval(e.interval),e.interval=null),n.classList.remove("op3-popoverlay-show"),n.classList.add("op3-popoverlay-hide"),e.animationDuration&&n.parentElement?(e.content.addEventListener("transitionend",o),e.content.addEventListener("animationend",o)):o(),this._videoStop(),this._soundcloudStop()},_popup:function(e){var t="op3-popoverlay-"+OP3.Meta.pageId+"-"+e.uuid;OP3.Cookie.get(t)||(e.cookieExpires&&OP3.Cookie.set(t,"1",{expires:e.cookieExpires}),this.open(e.uuid))},_videoStart:function(){this.getConfig(this.current).videoElements.forEach(function(e){if(!e.matches("[data-embed-video-facade-src]")){var t=e.closest(".op3-video-wrapper"),n=e.getAttribute("src"),i=t.getAttribute("data-op3-src");if(!n&&i&&e.setAttribute("src",i),t.matches('[data-op3-video-autoplay="1"]')){var o=t.closest(".op3-element").querySelector(".op3-video-image-overlay");o&&(o.style.display="none")}}})},_videoStop:function(){this.getConfig(this.current).videoElements.forEac
1h(function(e){if(!e.matches("[data-embed-video-facade-src]")){var t=e.closest(".op3-video-wrapper"),n=e.getAttribute("src"),i=t.getAttribute("data-op3-src");"embed"===t.getAttribute("data-op3-video-source")&&t.setAttribute("data-op3-src",n),i&&e.setAttribute("src","")}})},_soundcloudStart:function(){this.getConfig(this.current).soundcloudElements.forEach(function(e){var t=e.getAttribute("src"),n=e.getAttribute("data-op3-src");t&&e.setAttribute("data-op3-src",t),!t&&n&&e.setAttribute("src",n)})},_soundcloudStop:function(){this.getConfig(this.current).soundcloudElements.forEach(function(e){e.setAttribute("src","")})},_handleLoad:function(e){Object.keys(this._elements).map(function(e){return this._elements[e]}.bind(this)).filter(function(e){var t=e.triggerEvent;return"load"===t||"load_delay"===t||"exitintent"===t&&this._isDevice&&e.useOnDevices}.bind(this)).forEach(function(e){var t=e.triggerEvent,n=e.useOnDevices,i="exitintent"!==t?e.delayTimer:0;n&&this._isDevice&&"exitintent"===t&&e.delayTimer>0&&(i=e.delayTimer),e.interval=this.parent.setTimeout(this._popup.bind(this,e),i)}.bind(this))},_handleExitIntent:function(e){Object.keys(this._elements).map(function(e){return this._elements[e]}.bind(this)).filter(function(e){return"exitintent"===e.triggerEvent&&!this._isDevice}.bind(this)).forEach(function(e){var t="exitintent"!==e.triggerEvent?e.delayTimer:0;e.interval=this.parent.setTimeout(this._popup.bind(this,e),t)}.bind(this))},_handleClick:function(e){e.target.closest('[data-op3-action="popoverlay"],[data-op-action="popoverlay"]')&&this._handleClickOpen(e),e.target.closest('.op3-popoverlay-background,.op3-popoverlay-close,[data-op-action="closePopoverlay"]')&&this._handleClickClose(e)},_handleClickOpen:function(e){e.preventDefault();var t=e.target.closest('[data-op3-action="popoverlay"],[data-op-action="popoverlay"]'),n=t.getAttribute("data-op-popoverlay-trigger")||t.getAttribute("data-op3-popoverlay-trigger");this._elements[n]&&this.close(function(){this.open(n)}.bind(this))},_handleClickClose:function(e){e.preventDefault();var t=e.target.closest('[data-op3-element-type="popoverlay"]');t&&(t.getAttribute("data-op3-uuid")===this.current&&this.close())}},e.OP3=e.OP3||{}
1,OP3.PopOverlay=new n}(window,document);document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll('[data-op3-element-type="video"] .op3-video-magic-overlay .op3-video-magic-overlay-image');if(e.length>0)for(var t=0;t<e.length;t++){var o=(e[t].currentStyle||window.getComputedStyle(e[t],!1)).backgroundImage.slice(4,-1).replace(/"/g,""),n=new Image;n.src=o,function(t,o){o.onload=function(){e[t].style.maxWidth=o.width+"px",e[t].style.maxHeight=o.height+"px"}}(t,n)}});!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():t.Stickify=e()}("undefined"!=typeof self?self:this,function(){"use strict";var t=[],e=function(t,i){if(!(this instanceof e))throw"Stickify: Stickify is a constructor.";if(!(t instanceof HTMLElement))throw"Stickify: element argument must be of HTMLElement type.";if("object"!=typeof(i||{}))throw"Stickify: options argument must be of Object type.";this._init.apply(this,arguments)};return e.prototype={constructor:e,_defaultOptions:{matchMedia:"all",position:"top",untilElement:null,offset:0,zIndex:"1000"},_init:function(e,i){if(!e._stickify){for(var n in e.classList.add("stickify"),e._stickify=this,this._element=e,t.push(e),this._options={},this._defaultOptions){var s=i&&n in i?this._validateOption(n,i[n]):this._defaultOptions[n];void 0===s&&(s=this._defaultOptions[n]),this._options[n]=s}var o=e.ownerDocument,r=o.defaultView,l=o.createElement("div");l.classList.add("stickify__placeholder"),this._placeholder=l;var a=o.createElement("div");a.classList.add("stickify__collapser"),this._collapser=a,this._boundHandleWindowMove=this._handleWindowMove.bind(this),r.addEventListener("scroll",this._boundHandleWindowMove),r.addEventListener("resize",this._boundHandleWindowMove),this.__reverseRepaint=!0,this.refresh(),delete this.__reverseRepaint}},destroy:function(){var e=this.element,i=e.classList,n=e.ownerDocument.defaultView;i.remove("stickify--sticky"),i.remove("stickify"),this._repaintElement(),delete e._stickify,t=t.filter(function(t){return t!==this.element}.bind(this)),this._collapser.remove(),this._placeholder.remove(),n.removeEventListener("resize",this._boundHandleWindowMove),n.removeEventListener("scroll",this._boundHandleWindowMove),delete this._boundHandleWindowMove,delete this._collapser,delete this._placeholder,delete this._options,delete this._element},get element(){return this._element},get isSticky(){return this.element.classList.contains("stickify--sticky")},get isAnchored(){return this.element.classList.contains("stickify--anchored")},getOption:function(t){return this._options[t]},setOption:function(t,e){if(t in this._defaultOptions&&void 0!==(e=this._validateOption(t,e))){var i=this.getOption(t);i!==e&&(this._options[t]=e,this._dispatchEvent("option",{key:t,value:e,oldValue:i}),this.refresh())}},refresh:function(){var t=this.element;if("none"!==this._css(t,"display")){var e=t.ownerDocument.defaultView,i=this._getNonStickyLayout(),n=i.viewport.rect,s=i.element.rect,o=this.getOption("matchMedia"),r=this.getOption("position"),l=this.getOption("offset"),a=e.matchMedia(o).matches&&("top"===r?s.top<l:s.bottom<n.height-l),c=this.isSticky!==a;c&&t.classList[a?"add":"remove"]("stickify--sticky"),this._repaint(i),c&&this._dispatchEvent("change",{sticky:a})}},_dispatchEvent:function(t,e){var i=new CustomEvent("stickify"+t,{detail:e});return this.element.dispatchEvent(i),i},_toKebabCase:function(t){return t.replace(/[A-Z]+/g,function(t){return"-"+t.toLowerCase()})},_css:function(t,e,i){var n=t.ownerDocument.defaultView;if("string"==typeof e&&void 0===i)return n.getComputedStyle(t).getPropertyValue(this._toKebabCase(e));if("string"==typeof e)t.style.setProperty(e,i);else if(null===e)t.removeAttribute("style");else{if(Array.isArray(e)){var s=n.getComputedStyle(t);return e.reduce(function(t,e){return t[e]=s.getPropertyValue(this._toKebabCase(e)),t}.bind(this),{})}"object"==typeof e&&Object.keys(e).forEach(function(i){t.style.setProperty(this._toKebabCase(i),e[i])}.bind(this))}},_getMargins:function(t){var e=["marginTop","marginRight","marginBottom","marginLeft"],i=this._css(t,e);return i=e.reduce(function(t,e){return t.push(parseFloat(i[e])),t},[])},_getCollapsedMargin:function(t,e){return Math.max(parseFloat(this._css(t,"marginBottom")),e?parseFloat(this._css(e,e.contains(t)?"marginBottom":"marginTop")):0)},_getNonStickyLayout:function(){var t=this.element,e=this._placeholder,i=this._collapser,n=t.ownerDocument.documentElement,s=this.getOption("untilElement"),o=t.getAttribute("style");this._css(t,null),this._css(e,"display","none"),this._css(i,"dis
1play","none");var r={viewport:{margin:null,padding:null,rect:new DOMRect(0,0,n.clientWidth,n.clientHeight)},element:{margin:this._getMargins(t),padding:null,rect:t.getBoundingClientRect()},untilElement:s?{margin:this._getMargins(s),padding:null,rect:s.getBoundingClientRect()}:null};return this._css(i,"display",""),this._css(e,"display",""),t.setAttribute("style",o||""),r},_getRealOffsetOption:function(t){if(!this.isSticky)return null;var e=this.getOption("position"),i=this.getOption("untilElement"),n=this.getOption("offset"),s=t.viewport.rect;if(t.untilElement){var o,r=i.contains(this.element),l=t.untilElement.rect[r?"bottom":"top"];"top"===e?(o=n+t.element.rect.height,(o+=this._getCollapsedMargin(this._placeholder,i))>l&&(n-=o-l)):(o=s.height-n,(o+=this._getCollapsedMargin(this._placeholder,this._placeholder.nextElementSibling))>l&&(n+=o-l))}return n},_repaint:function(t){var e=["_repaintElement","_repaintPlaceholder","_repaintCollapser"];this.__reverseRepaint&&e.reverse(),e.forEach(function(e){this[e].call(this,t)}.bind(this))},_repaintCollapser:function(t){},_repaintPlaceholder:function(t){var e=this._placeholder;if(!this.isSticky)return e.remove();var i=this.element,n=(this._collapser,this.getOption("untilElement")),s=this.getOption("position"),o=(this.getOption("offset"),t.element.margin),r=t.element.rect;this._css(e,{height:r.height+"px",margin:o.map(function(t){return t+"px"}).join(" ")}),"top"===s?i.insertAdjacentElement("beforebegin",e):n&&!n.contains(i)?n.insertAdjacentElement("beforebegin",e):n?n.insertAdjacentElement("afterend",e):i.ownerDocument.body.appendChild(e)},_repaintElement:function(t){var e=this.isSticky,i=this.isAnchored,n=this.element,s=n.classList,o=t?t.element.rect:null,r={position:e?"fixed":"",boxSizing:e?"border-box":"",top:"",right:"",bottom:"",left:e?o.left+"px":"",width:e?o.width+"px":"",margin:e?"0px":"",zIndex:e?this.getOption("zIndex"):""};if(s.remove("stickify--anchored"),e){var l=this.getOption("position"),a=this.getOption("offset"),c=this._getRealOffsetOption(t);r[l]=c+"px",a!==c&&s.add("stickify--anchored")}i!==this.isAnchored&&this._dispatchEvent("anchor",{anchor:i?null:this.getOption("untilElement")}),this._css(n,r)},_validateOption:function(t,e){var i=this["_validateOption"+t.charAt(0).toUpperCase()+t.slice(1)];return"function"==typeof i?i.call(this,e):t in this._defaultOptions?e:void 0},_validateOptionMatchMedia:function(t){return String(t)},_validateOptionPosition:function(t){return t=(t=(t=String(t)).replace(/[^a-zA-Z]+/g,"")).toLowerCase(),["top","bottom"].includes(t)||(t="top"),t},_validateOptionUntilElement:function(t){try{if("string"==typeof t&&(t=this.element.ownerDocument.querySelector(t)||""),t instanceof HTMLElement&&!this.element.contains(t))return t}catch(t){}return this._defaultOptions.untilElement},_validateOptionOffset:function(t){return t*=1,isNaN(t)?this._defaultOptions.offset:t},_validateOptionZIndex:function(t){var e=1*t;return!isNaN(e)&&e>=0?String(e):["inherit","initial","revert","revert-layer","unset"].includes(t)?t:this._defaultOptions.zIndex},_handleWindowMove:function(t){this.refresh()}},e.getElements=function(){return t},e.getInstance=function(e){return t.includes(e)&&e._stickify?e._stickify:null},e});document.addEventListener("DOMContentLoaded",function(t){var e={getProperties:function(t){for(var e=null,i=0;i<t.children.length;i++)if("1"===t.children[i].getAttribute("data-op3-sticky")){e=t.children[i];break}return{activeDesktop:e.getAttribute("data-op3-sticky-active-desktop")||"1",activeTablet:e.getAttribute("data-op3-sticky-active-tablet")||"1",activeMobile:e.getAttribute("data-op3-sticky-active-mobile")||"1",position:e.getAttribute("data-op3-sticky-position")||"top",offsetDesktop:e.getAttribute("data-op3-sticky-top-desktop")||"0",offsetTablet:e.getAttribute("data-op3-sticky-top-tablet")||"0",offsetMobile:e.getAttribute("data-op3-sticky-top-mobile")||"0",stickyUntil:e.getAttribute("data-op3-sticky-until")||"0",untilElement:e.getAttribute("data-op3-sticky-until-element")||""}},getOptions:function(t){var i=e.getProperties(t),a={desktop:"screen and (min-width: 1024px)",tablet:"screen and (max-width: 1023px) and (min-width: 768px)",mobile:"screen and (max-width: 767px)"},o=null,n={matchMedia:"all",position:"top",untilElement:null,offset:0,zIndex:1e3};if(i){for(var d in a)window.matchMedia(a[d]).matches&&(o=d);for(var d in n.matchMedia="",a){"1"===i["active"+d.charAt(0).toUpperCase()+d.slice(1)]&&(n.matchMedia+=", "+a[d])}if(n.matchMedia=n.matchMedia?n.matchMedia.replace(/^,\s/,""):"none",n.position=i.position||"top","1"===i.stickyUntil?n.untilElement=t.parentElement.closest(".op3-element, .op3-designer-element > [data-op3-children]"):"2"===i.stickyUntil&&i.untilElement&&(n.untilElement=i.untilElement),n.offset="mobile"===o?i.offsetMobile:"tablet"===o?i.offsetTablet:i.offsetDesktop,n.offset=parseInt(n.offset),"top"===n.position){var r=e.getAdminBar();r&&"fixed"===window.getComputedStyle(r).getPropertyValue("position")&&(n.offset+=r.offsetHeight)}n.zIndex-=1*t.getAttribute("data-stickify-index")||0}return n},getAdminBar:function(){return"_adminBar"in e?e._adminBar:(e._adminBar=document.querySelector("#wpadminbar"),e.getAdminBar())}};document.querySelectorAll('[data-op3-sticky="1"]:not([data-op3-sticky-active-desktop="0"][data-op3-sticky-active-tablet="0"][data-op3-sticky-active-mobile="0"])').forEach(function(t,i){var a=t.parentElement;a.setAttribute("data-stickify-index",i),new Stickify(a,e.getOptions(a))})});!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&module.exports?module.exports=t():e.EmbedVideoFacade=t()}("undefined"!=typeof self?self:this,function(){"use strict";var e=[];function t(e,n){if(!(this instanceof t))throw"EmbedVideoFacade: EmbedVideoFacade is a constructor.";this._init.apply(this,arguments)}t.prototype={constructor:t,_defaultOptions:{srcAttr:"data-src",addPoster:"auto",posterElement:null,interactStyle:"cursor: pointer;",interactElement:null,lazyLoad:!1,lazyLoadThreshold:256,isDevice:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Windows Phone|Opera Mini/i.test(navigator.userAgent),canUseWebp:!1,canUseAvif:!1},_init:function(e,t){if(!(e instanceof HTMLElement))throw"EmbedVideoFacade: element argument must be of HTMLElement type.";if(this._element=e,this.element.classList.add("embed-video-facade"),this._setStatus("pending"),"object"!=typeof(t||{}
1))throw"EmbedVideoFacade: element argument must be of Object type.";for(var n in this._options={},this._defaultOptions)this._options[n]=t&&n in t?t[n]:this._defaultOptions[n];var i="["+this.getOption("srcAttr")+"]",r=this.element.querySelectorAll(i);r=Array.prototype.slice.call(r),this.element.matches(i)&&r.unshift(this.element),r.forEach(function(e){var t=e.getAttribute("src");t&&"about:blank"!==t&&e.setAttribute("src","")}),this._nodes=r,this._url=this.element.getAttribute(this.getOption("srcAttr")),this._source=null,this._poster=null,this._posterElement=null,this._interactElement=null,this._boundHandleElementLoad=this._handleElementLoad.bind(this),this._boundHandleElementPointerover=this._handleElementPointerover.bind(this),this._boundHandleElementClick=this._handleElementClick.bind(this),this._boundHandleIntersectionObserver=this._handleIntersectionObserver.bind(this),this._intersectionObserver=null,"function"==typeof IntersectionObserver&&this.getOption("lazyLoad")&&(this._intersectionObserver=new IntersectionObserver(this._boundHandleIntersectionObserver,{root:null,rootMargin:(1*this.getOption("lazyLoadThreshold")||0)+"px",threshold:0}));var s=this._iframeProps(this.element);s&&!s.crossdomain&&"complete"!==s.readyState?this._bind(this.element,"load",this._boundHandleElementLoad):this._boundHandleElementLoad()},destroy:function(){this._intersectionObserver&&this._intersectionObserver.disconnect(),this._unbind(this._interactElement,"click",this._boundHandleElementClick),this._unbind(this._interactElement,"pointerover",this._boundHandleElementPointerover),this._unbind(this.element,"load",this._boundHandleElementLoad);var e="embed-video-facade";this.getOption("interactElement").classList.remove(e+"-interact"),this._posterElement.classList.remove(e+"-poster"),this.element.classList.remove(e),this.element.removeAttribute("data-"+e+"-source"),this.element.removeAttribute("data-"+e+"-status"),delete this._boundHandleIntersectionObserver,delete this._boundHandleElementClick,delete this._boundHandleElementPointerover,delete this._boundHandleElementLoad,delete this._interactElement,delete this._posterElement,delete this._poster,delete this._source,delete this._url,delete this._nodes,delete this._options,delete this._element,this._trigger("destroy")},_call:function(e){if("function"==typeof e){var t=Array.prototype.slice.call(arguments,1);e.apply(this,t)}},_prepare:function(){this._prepareElement(),this._prepareSource(),this._preparePoster(),this._prepareInteract(),this._unbind(this.element,"load",this._boundHandleElementLoad),this._trigger("init");var e=this._iframeProps(this.element);!!e&&e.hasCachedContent&&this.connect()},_prepareElement:function(){this._setStatus("idle")},_prepareSource:function(){e.forEach(function(e){if(!this._source){var t=new e(this);t.test()&&(this._source=t)}}.bind(this)),this.element.setAttribute("data-embed-video-facade-source",this.source||"")},_replacePoster:function(){var e=this.getOption("posterElement");if(e.classList.contains("oll-css"))return!1;var t=this.getOption("addPoster"),n=this._computedStyle(e,"background-image");return"auto"===t&&!(n&&"none"!==n)||"auto"!==t&&t},_preparePoster:function(){var e=this.getOption("posterElement");e.classList.add("embed-video-facade-poster"),this._posterElement=e,this._source&&this._replacePoster()&&this._source.getPoster(function(e){this._poster=e,e&&this._intersectionObserver?this._applyPosterLazy(e):e&&this._applyPoster(e)}.bind(this))},_applyPoster:function(e){var t=this.getOption("posterElement"),n=this._source.posterStyle();n&&this._applyStyle(t,n),t.style.backgroundImage="url("+e+")",this._poster=e,this._loadImage(e,function(e){this._trigger(e?"posterload":"postererror")})},_applyPosterLazy:function(e){var t=this.getOption("posterElement");t.setAttribute("data-embed-video-facade-poster-src",e),this._intersectionObserver.observe(t)},_prepareInteract:function(){var e=this.getOption("interactElement");e.classList.add("embed-video-facade-interact");var t=this._iframeProps(e),n=!!t&&t.hasEmptyContent,i=!!t&&t.hasCachedContent;n&&(e=e.contentDocument);var r=this.getOption("interactStyle");this._applyStyle(n?e.documentElement:e,r),n&&(e.documentElement.style.height="100%",e.documentElement.style.background="transparent"),i||(this._bind(e,"pointerover",this._boundHandleElementPointerover),this._bind(e,"click",this._boundHandleElementClick)),this._interactElement=e},_loadImage:function(e,t){if(e instanceof Image)return e.complete&&0!==e.naturalHeight?this._call(t,e):e.complete?this._call(t,null):(e.addEventListener("load",function(e){e.target.naturalHeight?this._call(t,e.target):this._call(t,null)}.bind(this)),e.addEventListener("error",function(e){this._call(t,null)}.bind(this))),e;if("string"==typeof e){var n=new Image;return n.src=e,n.complete&&0!==n.naturalHeight?this._call(t,n):e.complete?this._call(t,null):this._loadImage(n,t),n}return null},_bind:function(e,t,n){e.addEventListener(t,n)},_unbind:function(e,t,n){e.removeEventListener(t,n)},_trigger:function(e){var t;return e="embedvideofacade"+e,"function"!=typeof Event?(t=this.document.createEvent("Event")).initEvent(e,!1,!1):t=new Event(e),this.element.dispatchEvent(t),t},_setStatus:function(e){this.element.setAttribute("data-embed-vi
1deo-facade-status",e)},getOption:function(e){var t=this._options[e];return"function"==typeof t&&(t=t.apply(this)),!/Element$/.test(e)||t instanceof HTMLElement||(t=this.element),t},preconnect:function(){this._source&&"preconnected"!==this.status&&"connected"!==this.status&&(this._source.preconnect(),this._unbind(this._interactElement,"pointerover",this._boundHandleElementPointerover),this._setStatus("preconnected"),this._trigger("preconnect"))},connect:function(){if(this._source&&"connected"!==this.status){var e=this.getOption("srcAttr"),t=this._source.url();this._nodes.forEach(function(n){var i=t||n.getAttribute(e);n.removeAttribute(e),n.setAttribute("src",i)}),this._unbind(this._interactElement,"click",this._boundHandleElementClick),this._unbind(this._interactElement,"pointerover",this._boundHandleElementPointerover),this._setStatus("connected"),this._trigger("connect")}},get window(){return this.document.defaultView},get document(){return this.element.ownerDocument},get element(){return this._element},get status(){return this.element.getAttribute("data-embed-video-facade-status")},get url(){return this._url},get source(){return this._source?this._source.name:null},get videoId(){return this._source?this._source.videoId():null},get poster(){return this._poster},get width(){return this._source?this._source.width():null},get height(){return this._source?this._source.height():null},_computedStyle:function(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)},_applyStyle:function(e,t){var n=this.document.createElement("div");n.setAttribute("style",t);for(var i=0;i<n.style.length;i++){var r=n.style[i],s=n.style.getPropertyValue(r);e.style.setProperty(r,s)}},_isDisabled:function(e){return!!e.closest(".embed-video-facade-disabled")},_iframeProps:function(e){if(!e.matches("iframe"))return null;var t=e.src,n=!t||"about:blank"===t,i=!e.contentDocument;return{hasEmptySrc:n,crossorigin:i,readyState:i?null:e.contentDocument.readyState,hasEmptyContent:n&&!i,hasCachedContent:n&&i}},_handleElementLoad:function(e){this._prepare()},_handleElementPointerover:function(e){this._isDisabled(e.target)||this.preconnect()},_handleElementClick:function(e){this._isDisabled(e.target)||this.connect()},_handleIntersectionObserver:function(e){e.forEach(function(e){if(e.intersectionRatio>0||e.isIntersecting){var t=e.target,n="data-embed-video-facade-poster-src",i=t.getAttribute(n);t.removeAttribute(n),this._intersectionObserver.unobserve(t),this._intersectionObserver.disconnect(),this._intersectionObserver=null,this._applyPoster(i)}}.bind(this))}};var n=function(e){this._init.apply(this,arguments)};return n.prototype={constructor:n,_init:function(e){this._parent=e},destroy:function(){delete this._parent},get parent(){return this._parent},get name(){return"unknown"},get isDevice(){return!!this.parent.getOption("isDevice")},get canUseWebp(){return!!this.parent.getOption("canUseWebp")},get canUseAvif(){return!!this.parent.getOption("canUseAvif")},_call:function(e){this.parent._call.apply(this,arguments)},_preconnect:function(e){var t='link[rel="preconnect"][href="'+e+'"]';if(!document.head.querySelector(t)){var n=document.createElement("link");n.rel="preconnect",n.href=e,n.crossorigin=!0,document.head.appendChild(n)}},_replaceUrlParam:function(e,t,n){var i=new RegExp("([?&])("+t+")=(.*?)(&|$)"),r=e.replace(i,"$1$2="+n+"$4");return i.test(r)||(r+=(-1===r.indexOf("?")?"?":"&")+t+"="+n),r},test:function(){return!1},url:function(){return null},videoId:function(){return null},getPoster:function(e){this._call(e,null)},posterStyle:function(){return"background: none center / cover no-repeat #000"},preconnect:function(){},width:function(){return this.parent.element.getAttribute("width")||"320"},height:function(){return this.parent.element.getAttribute("height")||"240"}},t.registerSource=function(t,i){var r=function(e){n.apply(this,arguments)};for(var s in r.prototype=Object.create(n.prototype),Object.defineProperty(r.prototype,"name",{value:t,writable:!1}),i){var o=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(r.prototype,s,o)}r.prototype.constructor=r,e.push(r)},t});EmbedVideoFacade.registerSource("vimeo",{test:function(){return/https?\:\/\/player\.vimeo\.com\/video\/[\d]+/.test(this.parent.url)},url:function(){var t=this.parent.url;
1return t=this._replaceUrlParam(t,"autoplay","1"),this.isDevice&&(t=this._replaceUrlParam(t,"muted","1")),t},videoId:function(){return this.parent.url.match(/https?\:\/\/player\.vimeo\.com\/video\/([\d]+)/)[1]},getPoster:function(t){return fetch("https://vimeo.com/api/oembed.json?url="+encodeURIComponent(this.parent.url)).then(function(t){return t.json()}).then(function(e){this._call(t,e.thumbnail_url)}.bind(this))},preconnect:function(){this._preconnect("https://player.vimeo.com"),this._preconnect("https://i.vimeocdn.com"),this._preconnect("https://f.vimeocdn.com"),this._preconnect("https://fresnel.vimeocdn.com")}});window.addEventListener("DOMContentLoaded",function(e){var t=document.documentElement,a=t.matches('[data-op3-support~="webp"]'),d=t.matches('[data-op3-support~="avif"]'),o="undefined"!=typeof OP3&&OP3.Settings&&OP3.Settings.lazyLoadAssets&&("native+js"===OP3.Settings.lazyLoadAssets||"js"===OP3.Settings.lazyLoadAssets);document.querySelectorAll("[data-embed-video-facade-src]").forEach(function(e){var t=e.closest(".op3-element"),n=t?t.querySelector(".op3-video-image-overlay"):null;e._embedVideoFacade=new EmbedVideoFacade(e,{srcAttr:"data-embed-video-facade-src",lazyLoad:o,posterElement:n,interactElement:n,canUseWebp:a,canUseAvif:d})})});!function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.RichTextAnimationBase=e()}(this,function(){"use strict";var t=0,e=function(t,i){if(!(this instanceof e))throw"RichTextAnimationBase: RichTextAnimationBase is a constructor.";if(!(t instanceof HTMLElement))throw"RichTextAnimationBase: element argument must be of HTMLElement type.";this._init(t,i||{})};return e.prototype={DEFAULT_OPTIONS:{delay:600,transitionDuration:null,loop:!1,loopDelay:2500,stylesheet:null},DATA_ATTR:"base",USE_DYNAMIC_DATA_ATTR:!0,constructor:e,_init:function(t,e){t._richTextAnimation||(t._richTextAnimation=this,this._initUi(t),this._initOptions(e),this._initStylesheet(),this._initStatus(),this._initObserver(),this._initCustom(),this._isInit=!0,this._trigger("init"))},_initUi:function(t){this._ui={element:t},this._ui.document=t.ownerDocument,this._ui.window=this._ui.document.defaultView,t.classList.add("rich-text-animation"),t.setAttribute("data-rich-text-animation",this.DATA_ATTR),t.setAttribute("data-rich-text-animation-id",this._uniqueId())},_initOptions:function(t){var e=this._getDefaultOptions();this._options={};var i={};for(var n in e){var s="data-rich-text-animation-option-"+this._toSnakeCase(n,"-");this._ui.element.matches("["+s+"]")&&(i[n]=this._ui.element.getAttribute(s))}for(var n in e)this.setOption(n,e[n]);for(var n in i)this.setOption(n,i[n]);for(var n in t)this.setOption(n,t[n])},_initStylesheet:function(){this._defineStylesheetRule(this._ui.element,this.selector())},_initStatus:function(){this._setStatus("idle")},_initObserver:function(){this._isObserving=!1,this._observer=new IntersectionObserver(this._handleObserver.bind(this),{threshold:[0,1]}),this._loopAnimationCount=0,this._isElementInViewport=null,this._interval=null},_initCustom:function(){},destroy:function(t){clearInterval(this._interval),this.unobserve(),this._undefineStylesheetRule(this._ui.element),this._ui.element.removeAttribute("data-rich-text-animation-status"),this._ui.element.removeAttribute("data-rich-text-animation-id"),this._ui.element.removeAttribute("style"),this._ui.element.classList.remove("rich-text-animation"),t&&(this._ui.element.removeAttribute("data-rich-text-animation"),Object.keys(this._options).forEach(function(t){this._ui.element.removeAttribute("data-rich-text-animation-option-"+this._toSnakeCase(t,"-"))}.bind(this))),delete this._ui.element._richTextAnimation,delete this._isInit,delete this._interval,delete this._isElementInViewport,delete this._loopAnimationCount,delete this._isObserving,delete this._observer,delete this._status,delete this._options,delete this._ui},reload:function(t){var e=this._ui.element,i=this._options,n=this.isObserving();this.destroy(),this._init(e,i),(t||void 0===t&&n)&&this.observe()},selector:function(){return'.rich-text-animation[data-rich-text-animation="'+this.DATA_ATTR+'"][data-rich-text-animation-id="'+this._ui.element.getAttribute("data-rich-text-animation-id")+'"]'},getOption:function(t){if(!t)return null;if(t=this._toCamelCase(t),!this._options.hasOwnProperty(t))return null;var e=this._options[t];return null===e||"object"!=typeof e||e instanceof HTMLElement||(e=e instanceof Array?e.slice():JSON.parse(JSON.stringify(e))),e},setOption:function(t,e){if(t=this._toCamelCase(t),void 0!==(e=this._val
1idateOption(t,e))){var i=this.getOption(t);if(i!==e){if(this._options[t]=e,null===e||e instanceof Node)this._ui.element.removeAttribute("data-rich-text-animation-option-"+this._toSnakeCase(t,"-"));else{var n=e;"object"==typeof e&&(n=JSON.stringify(n)),this._ui.element.setAttribute("data-rich-text-animation-option-"+this._toSnakeCase(t,"-"),n)}this._trigger("option",{key:t,value:e,valueBefore:i})}}},select:function(){var t=this._ui.document.createRange();t.selectNodeContents(this._ui.element);var e=this._ui.window.getSelection();e.removeAllRanges(),e.addRange(t)},serialize:function(){var t={};return Object.keys(this._options).forEach(function(e){t[e]=this.getOption(e)}.bind(this)),t},observe:function(){this.isObserving()||(this._isObserving=!0,this._isElementInViewport=null,this._observer.observe(this._ui.element),this._trigger("observe"))},unobserve:function(){this.isObserving()&&(this._isObserving=!1,this._isElementInViewport=null,this._observer.disconnect(),this._trigger("unobserve"))},isObserving:function(){return this._isObserving},isAnimating:function(){return"pending"===this._getStatus()},animate:function(t){if(!this.isAnimating()){this._setStatus("pending"),this._trigger("animatestart"),this._loopAnimationCount++;var e=function(){this._interval=null,this._ui.element.closest("body")?this._backward(function(){this._forward(function(){var i=this._isElementInViewport;this.getOption("loop")?i?this._interval=setTimeout(e,this.getOption("loopDelay")):this._setStatus("paused"):(this._interval=null,this._setStatus("idle"),this._callCallback(t),this._trigger("animate"))}.bind(this))}.bind(this)):this.destroy()}.bind(this);this._interval=setTimeout(e,this.getOption("delay"))}},_uniqueId:function(){return++t},_getDefaultOptions:function(){for(var t=this.__proto__,i={};;){for(var n in t.DEFAULT_OPTIONS)i.hasOwnProperty(n)||(i[n]=t.DEFAULT_OPTIONS[n]);if(t===e.prototype)break;t=t.__proto__}if(null===i.transitionDuration){var s=this._ui.window.getComputedStyle(this._ui.element).getPropertyValue("transition-duration");/ms$/.test(s)?i.transitionDuration=parseFloat(s):/s$/.test(s)&&(i.transitionDuration=1e3*parseFloat(s))}return i},_getStatus:function(){return this._status},_setStatus:function(t){var e=this._getStatus();t!==e&&(this._status=t,this.USE_DYNAMIC_DATA_ATTR&&this._ui.element.setAttribute("data-rich-text-animation-status",this._status),this._trigger("status",{value:this._status,valueBefore:e}))},_getElementStyle:function(t,e){return t&&e?this._ui.window.getComputedStyle(t).getPropertyValue(e):null},_setElementStyles:function(t,e,i){if(t instanceof NodeList||t instanceof Array)t.forEach(function(t){this._setElementStyles(t,e,i)}.bind(this));else{var n,s,o=this.getOption("stylesheet");i&&(n=t.style.transitionDuration,s=t.style.animationDuration,t.style.transitionDuration="0s",t.style.animationDuratio="0s");var r=t;for(var a in o&&(r=t._richTextAnimationStylesheetRule),e)r.style.setProperty(a,e[a]);i&&(t.offsetHeight,t.style.transitionDuration=n,t.style.animationDuration=s,t.getAttribute("style")||t.removeAttribute("style"))}},_setElementStyle:function(t,e,i,n){var s={};s[e]=i,this._setElementStyles(t,s,n)},_setElementStyleFromAttr:function(t,e,i){if(t instanceof NodeList||t instanceof Array)t.forEach(function(t){this._setElementStyleFromAttr(t,e,i)}.bind(this));else{var n=t.getAttribute(i);this._setElementStyle(t,e,n)}},_defineStylesheetRule:function(t,e){if(t){var i=this.getOption("stylesheet");if(i){var n=i.sheet||i.styleSheet;n.insertRule(e+" {}",n.cssRules.length);var s=n.cssRules[n.cssRules.length-1];t._richTextAnimationStylesheetRule=s}}},_undefineStylesheetRule:function(t){var e=this.getOption("stylesheet");if(e){var i=t._richTextAnimationStylesheetRule;if(i){var n=e.sheet||e.styleSheet,s=this._toArray(n.cssRules).indexOf(i);n.deleteRule(s),delete t._richTextAnimationStylesheetRule}}},_backward:function(t){throw"RichTextAnimation: can not animate on abstract class."},_forward:function(t){throw"RichTextAnimation: can not animate on abstract class."},_uppercaseFirst:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},_toCamelCase:function(t){return t.replace(/[-_][a-z]/g,function(t){return t.charAt(1).toUpperCase()})},_toSnakeCase:function(t,e){return void 0===e&&(e="_"),t.replace(/[A-Z]/g,function(t){return e+t.toLowerCase()})},_toArray:function(t){return Array.prototype.slice.call(t)},_validateOption:function(t,e){var i=e;return"delay"===t||"transitionDuration"===t||"loopDelay"===t?(i*=1,i=Math.min(i,1e4),i=Math.max(i,100)):"loop"===t?i="true"===i||"false"!==i&&!!i:"stylesheet"===t&&i instanceof HTMLStyleElement&&!this._isInit||(i=void 0),i},_callCallback:function(t){"function"==typeof t&&t.call(this._ui.element)},_trigger:function(t,e){if(this._isInit){var i,n="_trigger"+this._uppercaseFirst(t);return"function"==typeof this[n]&&this[n](e),t="richtextanimation"+t,"function"!=typeof CustomEvent?(i=this.document.createEvent("CustomEvent")).initCustomEvent(t,!1,!1,e):i=new CustomEvent(t,{detail:e}),this._ui.element.dispatchEvent(i),i}},_triggerInit:function(t){for(var e in this._options)this._triggerOption({key:e,value:this._options[e],valueBefore:void 0})},_triggerOption:function(t){t&&"loop"===t.key&&(this._loopAnimationCount=0)},_handleObserver:function(t){var e=t[0].intersectionRatio,i=this.getOption("loop"),n=this._loopAnimationCount;this._isElementInViewport=e>0,(1===e&&!n||1===e&&i)&&this.animate()}},e});!function(t,i){"function"==typeof define&&define.amd?define(i):"object"==typeof exports?module.exports=i():t.RichTextAnimationDraw=i()}(this,function(){"use strict";var t=function(t,i){RichTextAnimationBase.apply(this,arguments)};return t.prototype=Object.assign(Object.create(RichTextAnimationBase.prototype),{DEFAULT_OPTIONS:{bringToFront:null,color:null,thickness:null,roundedEdges:null},DATA_ATTR:"draw",constructor:t,_initUi:function(t){RichTextAnimationBase.prototype._initUi.apply(this,arguments),this._ui.svg=this._ui.element.querySelector("svg"),this._ui.svg&&(this._ui.path=this._ui.svg.querySelectorAll("path"),this._ui.path.length)},_initStylesheet:function(){var t=this._ui.path?this._ui.path:null;if(t){RichTextAnimationBase.prototype._initStylesheet.apply(this,arguments);var i=this.selector();this._defineStylesheetRule(this._ui.svg,i+" svg"),t&&this._ui.path.forEach(function(t,e){t.setAttribute("data-rich-text-animation-path-index",e),this._defineStylesheetRule(t,i+' svg path[data-rich-text-animation-path-index="'+e+'"]');var n=t.getTotalLength();t.setAttribute("data-rich-text-animation-path-length",n),this._setElementStyle(t,"stroke-dashoffset",n),this._setElementStyle(t,"stroke-dasharray",n)}.bind(this))}},destroy:function(t){this._undefineStylesheetRule(this._ui.svg),this._ui.path.forEach(function(t){t.removeAttribute("data-rich-text-animation-path-length"),t.removeAttribute("data-rich-text-animation-path-index"),this._undefineStylesheetRule(t)}.bind(this)),RichTextAnimationBase.prototype.destroy.apply(this,arguments)},_backward:function(t){var i=this._ui.path&&this._ui.path[0]?this._ui.path[0]:null;if(i){var e=this._ui.window.getComputedStyle(i);if(e.getPropertyValue("stroke-dashoffset")===e.getPropertyValue("stroke-dasharray"))return"1"!==e.getPropertyValue("opacity")&&this._setElementStyle(this._ui.path,"opacity","1",!0),void this._callCallback(t);var n=this.getOption("transitionDuration")/this._ui.path.length;this._fadeOut(function(){this._setElementStyle(this._ui.path,"transition-duration","0ms"),this._setElementStyle(this._ui.path,"opacity","1"),this._setElementStyleFromAttr(this._ui.path,"stroke-dashoffset","data-rich-text-animation-path-length"),setTimeout(function(){this._setElementStyle(this._ui.path,"transition-duration",n+"ms"),this._callCallback(t)}.bind(this))}.bind(this))}},_forward:function(t){this._drawIn(function(){this._callCallback(t)}.bind(this))},_fadeIn:function(t){this._animatePathOpacity(!1,function(){this._callCallback(t)}.bind(this))},_fadeOut:function(t){this._animatePathOpacity(!0,function(){this._callCallback(t)}.bind(this))},_drawIn:function(t){this._animatePathStrokeDash(!1,function(){this._callCallback(t)}.bind(this))},_drawOut:function(t){this._animatePathStrokeDash(!0,function(){this._callCallback(t)}.bind(this))},_animatePathOpacity:function(t,i){var e=this._toArray(this._ui.path),n=t?"pop":"shift",a=function(s){if(s&&s.target.removeEventListener("transitionend",a),e.length){var h=e[n](),o=this._ui.window.getComputedStyle(h).getPropertyValue("opacity"),r=t?"0":"1";o+""!==r?(h.addEventListener("transitionend",a),this._setElementStyle(h,"opacity",r)):a()}else this._callCallback(i)}.bind(this);a()},_animatePathStrokeDash:function(t,i){var e=this._toArray(this._ui.path),n=t?"pop":"shift",a=function(s){if(s&&s.target.removeEventListener("transitionend",a),e.length){var h=e[n](),o=this._ui.window.getComputedStyle(h),r=o.getPropertyValue("stroke-dashoffset"),l=o.getPropertyValue("stroke-dasharray");(t?r!==l:0!==parseFloat(r))?(h.addEventListener("transitionend",a),this._setElementStyle(h,"stroke-dashoffset",t?h.getAttribute("data-rich-text-animation-path-length"):"0")):a()}else this._callCallback(i)}.bind(this);a()},_getDefaultOptions:function(){var t=RichTextAnimationBase.prototype._getDefaultOptions.apply(this,arguments),i=this._ui.path&&this._ui.path[0]?this._ui.path[0]:null;return null===t.bringToFront&&(t.bringToFront="-1"!==this._getElementStyle(this._ui.svg,"z-index")),null===t.roundedEdges&&(t.roundedEdges="round"===this._getElementStyle(i,"stroke-linecap")),null===t.color&&(t.color=this._getElementStyle(i,"stroke")),null===t.thickness&&(t.thickness=parseInt(this._getElementStyle(i,"stroke-width"))||1),t}
1,_validateOption:function(t,i){var e=RichTextAnimationBase.prototype._validateOption.apply(this,arguments);return void 0!==e?e:(e=i,"bringToFront"===t||"roundedEdges"===t?e="true"===e||"false"!==e&&!!e:"color"===t&&"string"==typeof i||("thickness"===t?(e*=1,e=Math.min(e,10),e=Math.max(e,1)):e=void 0),e)},_triggerInit:function(t){var i=this._ui.svg;if(i){var e=i.parentElement;e.removeChild(i),RichTextAnimationBase.prototype._triggerInit.apply(this,arguments),e.appendChild(i)}},_triggerOption:function(t){RichTextAnimationBase.prototype._triggerOption.apply(this,arguments),"transitionDuration"===t.key?this._setElementStyle(this._ui.path,"transition-duration",t.value/this._ui.path.length+"ms"):"bringToFront"===t.key?this._setElementStyle(this._ui.svg,"z-index",t.value?"auto":"-1"):"color"===t.key?this._setElementStyle(this._ui.path,"stroke",t.value):"thickness"===t.key?this._setElementStyle(this._ui.path,"stroke-width",t.value+"px"):"roundedEdges"===t.key&&(this._setElementStyle(this._ui.path,"stroke-linecap",t.value?"round":"square"),this._setElementStyle(this._ui.path,"stroke-linejoin",t.value?"round":"mitter"))}}),t});!function(t,e){t.querySelectorAll(".rich-text-animation[data-rich-text-animation]").forEach(function(t){var n="RichTextAnimation"+t.getAttribute("data-rich-text-animation").replace(/-(\w)/g,function(t,e){return e.toUpperCase()}).replace(/^\w/g,function(t){return t.toUpperCase()});"function"==typeof e[n]&&new e[n](t).observe()})}(document,window)
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.