jQuery(function(e){new DLM_XHR_Download});class DLM_XHR_Download{responsHeaders={};constructor(){(dlmXHRinstance=this).init()}init(){dlmXHRinstance.attachButtonEvent()}attachButtonEvent(){jQuery("html,body").on("click",".dlm-no-access-modal-window > div",function(e){e.stopPropagation()}),jQuery("html, body").on("click",".dlm-no-access-modal-overlay, .dlm-no-access-modal-close, .dlm-no-access-modal-window",function(e){e.stopPropagation(),jQuery("#dlm-no-access-modal").remove()}),jQuery(document).on("keydown",function(e){"Escape"===e.key&&jQuery("#dlm-no-access-modal").remove()}),jQuery("html, body").on("click","a",function(e){let o=jQuery(this).attr("href"),d=!1;if(jQuery(this).hasClass("dlm-no-xhr-download")&&(d=!0),"undefined"!=typeof dlmNonXHRGlobalLinks&&0<dlmNonXHRGlobalLinks.length&&void 0!==o&&dlmNonXHRGlobalLinks.forEach(e=>{0<=o.indexOf(e)&&(d=!0)}),d)jQuery("#dlm-no-access-modal").remove();else{if("string"==typeof o)try{o=new URL(o,window.location.origin).href}catch(e){}var r,s;jQuery(document).trigger("dlm-xhr-download-button-click",[o,this,dlmXHRGlobalLinks]),void 0!==o&&0<=o.indexOf(dlmXHRGlobalLinks)&&(r=jQuery(this).data("redirect"),s=jQuery(this).attr("target"),void 0!==r&&!0===r&&"_blank"===s||dlmXHRinstance.handleDownloadClick(this,e))}})}handleDownloadClick(e,o){o.stopPropagation();var d=e.getAttribute("href"),d={button:e,href:d,buttonObj:jQuery(e)};-1===d.href.indexOf("blob:http")&&"#"!==d.href&&(o.preventDefault(),dlmXHRinstance.retrieveBlob(d))}retrieveBlob(e){let f=this,{button:h,href:w,buttonObj:x}=e,H,g=new XMLHttpRequest,b=dlmXHR.prevent_duplicates,R=x.attr("target"),y=x.attr("class");y=void 0!==y&&""!==y?y.replace("dlm-download-started","").replace("dlm-download-completed",""):"",x.addClass("dlm-download-started"),h.setAttribute("href","#"),h.removeAttribute("download"),h.setAttribute("disabled","disabled"),dlmXHRProgress&&(e='<img src="'+dlmXHRgif+'" class="dlm-xhr-loading-gif" style="display:inline-block; vertical-align: middle; margin-left:15px;">',h.innerHTML+=e),jQuery(document).trigger("dlm_download_triggered",[this,h,x,H,g]);let C=!1;g.responseType="blob",g.onreadystatechange=function(){var{status:e,readyState:o,statusText:d}=g,r=g.getAllResponseHeaders().split("\r\n").reduce((e,o)=>{var[o,d]=o.split(": ");return e[o]=d,e},{});1<Object.keys(r).length&&(C=!0,f.responseHeaders=r);let s="download",n=!1,t=!1,a=!1,l=!1,i=null,m=!1,c=!1,p=!1,v=!1,u=!1;if(C&&void 0!==f.responseHeaders["dlm-file-name"]&&(n=f.responseHeaders["dlm-file-name"]),C&&void 0!==f.responseHeaders["dlm-no-waypoints"]&&(t=!0),C&&void 0!==f.responseHeaders["dlm-redirect"]&&(a=f.responseHeaders["dlm-redirect"]),C&&void 0!==f.responseHeaders["dlm-external-download"]&&(l=!0),C&&void 0!==f.responseHeaders["dlm-no-access"]&&(i=f.responseHeaders["dlm-no-access"]),C&&void 0!==f.responseHeaders["dlm-no-access-modal"]&&(m=f.responseHeaders["dlm-no-access-modal"]),C&&void 0!==f.responseHeaders["dlm-error"]&&(c=f.responseHeaders["dlm-error"]),C&&void 0!==f.responseHeaders["dlm-download-id"]&&(p=f.responseHeaders["dlm-download-id"]),C&&void 0!==f.responseHeaders["dlm-version-id"]&&(v=f.responseHeaders["dlm-version-id"]),C&&void 0!==f.responseHeaders["dlm-no-access-modal-text"]&&(u=f.responseHeaders["dlm-no-access-modal-text"]),C&&void 0!==f.responseHeaders["x-dlm-file-name"]&&(n=f.responseHeaders["x-dlm-file-name"]),C&&void 0!==f.responseHeaders["x-dlm-no-waypoints"]&&(t=!0),C&&void 0!==f.responseHeaders["x-dlm-redirect"]&&(a=f.responseHeaders["x-dlm-redirect"]),C&&void 0!==f.responseHeaders["x-dlm-external-download"]&&(l=!0),C&&void 0!==f.responseHeaders["x-dlm-no-access"]&&(i=f.responseHeaders["x-dlm-no-access"]),C&&void 0!==f.responseHeaders["x-dlm-no-access-modal"]&&(m=f.responseHeaders["x-dlm-no-access-modal"]),C&&void 0!==f.responseHeaders["x-dlm-error"]&&(c=f.responseHeaders["x-dlm-error"]),C&&void 0!==f.responseHeaders["x-dlm-download-id"]&&(p=f.responseHeaders["x-dlm-download-id"]),C&&void 0!==f.responseHeaders["x-dlm-version-id"]&&(v=f.responseHeaders["x-dlm-version-id"]),C&&void 0!==f.responseHeaders["x-dlm-no-access-modal-text"]&&(u=f.responseHeaders["x-dlm-no-access-modal-text"]),n?(s=n.replace(/\"/g,"").replace(";",""),s=decodeURI(s)):C&&void 0!==f.responseHeaders["content-disposition"]&&(s=(s=f.responseHeaders["content-disposition"].split(/(?:filename\*=UTF-8'')|(?:filename=)/)[1]).replace(/\"/g,"").replace(";",""),s=decodeURI(s)),c=c&&(c in dlmXHRtranslations?dlmXHRtranslations[c]:dlmXHRtranslations.error),2===g.readyState){if(C&&void 0!==f.responseHeaders["x-dlm-force-abort"]&&""!==f.responseHeaders["x-dlm-force-abort"])return h.removeAttribute("download"),h.setAttribute("href",w),x.removeClass().addClass(y).find("span.dlm-xhr-progress").remove(),x.find(".dlm-xhr-loading-gif").remove(),g.abort(),void jQuery("#dlm-no-access-modal").remove();if(t)return g.abort(),a?void(window.location.href=a):void(window.location.href=w);if(l)return g.abort(),void dlmXHRinstance.dlmExternalDownload(f.responseHeaders,h,x,s,w);if(0===Object.keys(f.responseHeaders).filter(e=>-1!==e.indexOf("dlm-")).length)return g.abort(),void(window.location.href=w);if(i&&"true"===i&&m&&0!=m)return dlmXHRinstance.dlmNoAccessModal(f.responseHeaders),h.removeAttribute("download"),h.setAttribute("href",w),x.removeClass().addClass(y).find("span.dlm-xhr-progress").remove(),x.find(".dlm-xhr-loading-gif").remove(),void g.abort();if(c&&""!==c&&null!==c)return dlmXHRinstance.dlmLogDownload(f.responseHeaders,"failed",!1),h.removeAttribute("download"),h.setAttribute("href",w),x.removeClass().addClass(y).find("span.dlm-xhr-progress").remove(),x.find(".dlm-xhr-loading-gif").remove(),g.abort(),void(m&&0!=m?dlmXHRinstance.dlmNoAccessModal(f.responseHeaders):(x.find(".dlm-xhr-error").remove(),x.append('<span class="dlm-xhr-error">'+c+"</span>")));if(a&&""!==a&&null!==a)return dlmXHRinstance.dlmLogDownload(f.responseHeaders,"redirected",!1,a,i,R),h.removeAttribute("download"),h.setAttribute("href",w),x.removeClass().addClass(y).find("span.dlm-xhr-progress").remove(),x.find(".dlm-xhr-loading-gif").remove(),void g.abort()}404==e&&2==o&&((r=document.createElement("p")).innerHTML=d,h.parentNode.appendChild(r)),401==e&&2==o?window.location.href=d:(403==e&&2==o&&((r=document.createElement("p")).innerHTML=d,h.parentNode.appendChild(r)),200==e&&4==o&&(d=g.response,H=URL.createObjectURL(d),h.removeEventListener("click",dlmXHRinstance.handleDownloadClick),h.setAttribute("download",""+s),h.setAttribute("href",H),h.click(),x.removeClass().addClass(y+" dlm-download-complete"),dlmXHRinstance.attachButtonEvent(),jQuery(document).trigger("dlm_download_complete",[this,h,x,H]),dlmXHRinstance.dlmLogDownload(f.responseHeaders,"completed",b),window.URL.revokeObjectURL(H),h.removeAttribute("download"),h.setAttribute("href",w),x.find(".dlm-xhr-loading-gif").remove(),setTimeout(function(){x.removeClass().addClass(y).find("span.dlm-xhr-progress").remove()},4e3)))},dlmXHRProgress&&g.addEventListener("progress",function(e){let o=e.total,d=(void 0!==e.total&&"undefined"!==e.total&&0!==e.total||void 0!==f.responseHeaders["x-dlm-filesize"]&&(o=f.responseHeaders["x-dlm-filesize"]),e.loaded/o*100);d=d.toFixed();var r;x.find("span.dlm-xhr-progress").remove(),r="dlm-download-started download-"+10*Math.ceil(d/10),1/0!=d&&x.append('<span class="dlm-xhr-progress">&nbsp;'+d+"%</span>"),x.removeClass().addClass(y+" "+r),jQuery(document).trigger("dlm_download_progress",[this,h,x,H,e,d])}),g.onerror=function(){h.removeAttribute("download"),h.setAttribute("href",w),x.removeClass().addClass(y+" dlm-no-xhr-download").find("span.dlm-xhr-progress").remove(),x.find(".dlm-xhr-error").remove(),x.append('<span class="dlm-xhr-error">'+dlmXHRtranslations.error+"</span>"),console.log("** An error occurred during the transaction")},g.open("GET",w,!0),g.setRequestHeader("Cache-Control","no-store, no-cache, no-transform, max-age=0"),g.setRequestHeader("dlm-xhr-request","dlm_XMLHttpRequest"),g.send()}dlmLogDownload(e,o,d,r=null,s=null,n="_self"){var t=window.location.href,a=e["x-dlm-download-id"]??e["dlm-download-id"],l=e["x-dlm-version-id"]??e["dlm-version-id"],i=navigator.userAgent||"",i=/^((?!chrome|android|crios|fxios|edgios).)*safari/i.test(i)&&!/CriOS|FxiOS|EdgiOS/i.test(i);if(s&&r)if(i)window.location.href=r;else{let e=n||"_self",o=window.open(r,e,"noopener");o&&(o.location.href=r)}else{var m,c,p=new URLSearchParams({action:"log_dlm_xhr_download",download_id:a,version_id:l,status:o,cookie:d,currentURL:t,nonce:e["x-dlm-nonce"]});for([m,c]of Object.entries(e))p.append(`responseHeaders[${m}]`,c);try{navigator.sendBeacon(dlmXHR.ajaxUrl,new Blob([p.toString()],{type:"application/x-www-form-urlencoded;charset=UTF-8"}))}catch(e){try{fetch(dlmXHR.ajaxUrl,{method:"POST",body:p,keepalive:!0})}catch(e){}}if(r)if(i)window.location.href(r);else{let e=n||"_self",o=window.open(r,e,"noopener");s&&o&&(o.location.href=r)}}}dlmNoAccessModal(e){let o="empty-download",d="empty-version",r="empty-restriction",s="",t=(void 0!==e["dlm-download-id"]&&(o=e["dlm-download-id"]),void 0!==e["dlm-version-id"]&&(d=e["dlm-version-id"]),void 0!==e["dlm-no-access-modal-text"]&&(s=e["dlm-no-access-modal-text"]),void 0!==e["dlm-no-access-restriction"]&&(r=e["dlm-no-access-restriction"]),void 0!==e["x-dlm-download-id"]&&(o=e["x-dlm-download-id"]),void 0!==e["x-dlm-version-id"]&&(d=e["x-dlm-version-id"]),void 0!==e["x-dlm-no-access-modal-text"]&&(s=e["x-dlm-no-access-modal-text"]),void 0!==e["x-dlm-no-access-restriction"]&&(r=e["x-dlm-no-access-restriction"]),{download_id:o,version_id:d,modal_text:s,restriction:r,action:"no_access_dlm_xhr_download",nonce:e["x-dlm-nonce"]});jQuery(document).trigger("dlm-xhr-modal-data",[t,e]),document.dispatchEvent(new CustomEvent("dlm-xhr-modal-data",{detail:{data:t,headers:e}})),jQuery.post(dlmXHR.ajaxUrl,t,function(e){jQuery("#dlm-no-access-modal").remove();var o=document.createElement("div"),d=(o.innerHTML=e,/<script\b[^>]*>([\s\S]*?)<\/script>/gm);for(o.innerHTML=o.innerHTML.replace(d,"");null!==(s=d.exec(e));){var r=s[0],s=s[1],n=document.createElement("script"),r=r.match(/src=["']([^"']+)["']/),r=(r?n.src=r[1]:n.textContent=s,o.querySelector("#dlm-no-access-modal"));(r||document.body).appendChild(n)}for(;o.firstChild;)document.body.appendChild(o.firstChild);jQuery(document).trigger(t.action,[e,t]),document.dispatchEvent(new CustomEvent(t.action,{detail:[e,t]}))})}dlmExternalDownload(d,s,n,r,t){let a=new XMLHttpRequest,l=(n.attr("target"),n.attr("class")),i,e="";void 0!==d["dlm-external-download"]&&(e=d["dlm-external-download"]),void 0!==d["x-dlm-external-download"]&&(e=d["x-dlm-external-download"]),l=void 0!==l&&""!==l?l.replace("dlm-download-started","").replace("dlm-download-completed",""):"",n.addClass("dlm-download-started"),s.setAttribute("href","#"),s.removeAttribute("download"),s.setAttribute("disabled","disabled"),jQuery(document).trigger("dlm_download_triggered",[this,s,n,i,a]),a.responseType="blob",a.onreadystatechange=function(){var{status:e,readyState:o}=a;403===e?(dlmXHRinstance.dlmLogDownload(d,"failed",!1),a.abort(),n.find(".dlm-xhr-error").remove(),n.append('<span class="dlm-xhr-error">Acces Denied to file.</span>')):200==e&&4==o&&(e=a.response,i=URL.createObjectURL(e),s.removeEventListener("click",dlmXHRinstance.handleDownloadClick),s.setAttribute("download",""+r),s.setAttribute("href",i),s.click(),n.removeClass().addClass(l+" dlm-download-complete"),dlmXHRinstance.attachButtonEvent(),jQuery(document).trigger("dlm_download_complete",[this,s,n,i]),dlmXHRinstance.dlmLogDownload(d,"completed",!1),window.URL.revokeObjectURL(i),s.removeAttribute("download"),s.setAttribute("href",t),n.find(".dlm-xhr-loading-gif").remove(),setTimeout(function(){n.removeClass().addClass(l).find("span.dlm-xhr-progress").remove()},1e3))},dlmXHRProgress&&a.addEventListener("progress",function(e){let o=e.total,d=(void 0!==e.total&&"undefined"!==e.total||(o=a.getResponseHeader("X-DLM-Filesize")),e.loaded/o*100);d=d.toFixed();var r;n.find("span.dlm-xhr-progress").remove(),r="dlm-download-started download-"+10*Math.ceil(d/10),1/0!=d&&n.append('<span class="dlm-xhr-progress">&nbsp;'+d+"%</span>"),n.removeClass().addClass(l+" "+r),jQuery(document).trigger("dlm_download_progress",[this,s,n,i,e,d])}),a.onerror=function(){s.removeAttribute("download"),s.setAttribute("href",t),n.removeClass().addClass(l+" .dlm-no-xhr-download").find("span.dlm-xhr-progress").remove(),n.find(".dlm-xhr-error").remove(),n.append('<span class="dlm-xhr-error">'+dlmXHRtranslations.error+"</span>"),console.log("** An error occurred during the transaction")},a.open("GET",e,!0),a.setRequestHeader("Cache-Control","no-store, no-cache, no-transform, max-age=0"),a.setRequestHeader("dlm-xhr-request","dlm_XMLHttpRequest"),a.send()}};
(()=>{var e={437:()=>{(()=>{const e={analytics:["statistics","statistics-anonymous"],targeting:["marketing"],preferences:["preferences"]},t=Object.keys(e),n=()=>{if(!("wp_set_consent"in window))return;const{wp_set_consent:n=(e,t)=>{}}=window;n("functional","allow"),t.forEach((t=>{if(!(t in e))return;const i=pressidiumCookieConsent.allowedCategory(t)?"allow":"deny";e[t].forEach((e=>{n(e,i)}))}))};window.wp_consent_type="optin";const i=new CustomEvent("wp_consent_type_defined");document.dispatchEvent(i),window.addEventListener("pressidium-cookie-consent-accepted",n),window.addEventListener("pressidium-cookie-consent-changed",n)})()},470:()=>{!function(){"use strict";var e="initCookieConsent";"undefined"!=typeof window&&"function"!=typeof window[e]&&(window[e]=function(e){var t,n,i,o,a,s,r,c,d,l,u,p,h,f,g,m,_,b,v,y,C,k,w,A,S,x,L,E,N,T,z,O,M,j,q,H={mode:"opt-in",current_lang:"en",auto_language:null,autorun:!0,page_scripts:!0,hide_from_bots:!0,cookie_name:"cc_cookie",cookie_expiration:182,cookie_domain:location.hostname,cookie_path:"/",cookie_same_site:"Lax",use_rfc_cookie:!1,autoclear_cookies:!0,revision:0,script_selector:"data-cookiecategory"},I={},D={},Z=null,R=!0,J=!1,P=!1,G=!1,U=!1,F=!0,X=[],Y=!1,B=[],K=[],$=[],V=!1,Q=[],W=[],ee=[],te=[],ne=[],ie=document.documentElement,oe=function(e){ue("CookieConsent [CONFIG]: received_config_settings ",t=e),"number"==typeof t.cookie_expiration&&(H.cookie_expiration=t.cookie_expiration),"number"==typeof t.cookie_necessary_only_expiration&&(H.cookie_necessary_only_expiration=t.cookie_necessary_only_expiration),"boolean"==typeof t.autorun&&(H.autorun=t.autorun),"string"==typeof t.cookie_domain&&(H.cookie_domain=t.cookie_domain),"string"==typeof t.cookie_same_site&&(H.cookie_same_site=t.cookie_same_site),"string"==typeof t.cookie_path&&(H.cookie_path=t.cookie_path),"string"==typeof t.cookie_name&&(H.cookie_name=t.cookie_name),"function"==typeof t.onAccept&&(u=t.onAccept),"function"==typeof t.onFirstAction&&(h=t.onFirstAction),"function"==typeof t.onChange&&(p=t.onChange),"opt-out"===t.mode&&(H.mode="opt-out"),"number"==typeof t.revision&&(t.revision>-1&&(H.revision=t.revision),U=!0),"boolean"==typeof t.autoclear_cookies&&(H.autoclear_cookies=t.autoclear_cookies),!0===t.use_rfc_cookie&&(H.use_rfc_cookie=!0),"boolean"==typeof t.hide_from_bots&&(H.hide_from_bots=t.hide_from_bots),H.hide_from_bots&&(V=navigator&&(navigator.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(navigator.userAgent)||navigator.webdriver)),H.page_scripts=!0===t.page_scripts,"browser"===t.auto_language||!0===t.auto_language?H.auto_language="browser":"document"===t.auto_language&&(H.auto_language="document"),ue("CookieConsent [LANG]: auto_language strategy is '"+H.auto_language+"'"),H.current_lang=he(t.languages,t.current_lang)},ae=function(e){for(var t="accept-",n=r("c-settings"),i=r(t+"all"),o=r(t+"necessary"),a=r(t+"custom"),s=0;s<n.length;s++)n[s].setAttribute("aria-haspopup","dialog"),Ce(n[s],"click",(function(e){e.preventDefault(),I.showSettings(0)}));for(s=0;s<i.length;s++)Ce(i[s],"click",(function(e){c(e,"all")}));for(s=0;s<a.length;s++)Ce(a[s],"click",(function(e){c(e)}));for(s=0;s<o.length;s++)Ce(o[s],"click",(function(e){c(e,[])}));function r(t){return(e||document).querySelectorAll('[data-cc="'+t+'"]')}function c(e,t){e.preventDefault(),I.accept(t),I.hideSettings(),I.hide()}},se=function(e,t){return t.hasOwnProperty(e)?e:ke(t).length>0?t.hasOwnProperty(H.current_lang)?H.current_lang:ke(t)[0]:void 0},re=function(e){if(!0===t.force_consent&&we(ie,"force--consent"),!v){v=pe("div");var n=pe("div"),i=pe("div");v.id="cm",n.id="c-inr-i",i.id="cm-ov",v.tabIndex=-1,v.setAttribute("role","dialog"),v.setAttribute("aria-modal","true"),v.setAttribute("aria-hidden","false"),v.setAttribute("aria-labelledby","c-ttl"),v.setAttribute("aria-describedby","c-txt"),b.appendChild(v),b.appendChild(i),v.style.visibility=i.style.visibility="hidden",i.style.opacity=0}var o=t.languages[e].consent_modal.title;o&&(y||((y=pe("div")).id="c-ttl",y.setAttribute("role","heading"),y.setAttribute("aria-level","2"),n.appendChild(y)),y.innerHTML=o);var a=t.languages[e].consent_modal.description;U&&(a=F?a.replace("{{revision_message}}",""):a.replace("{{revision_message}}",t.languages[e].consent_modal.revision_message||"")),C||((C=pe("div")).id="c-txt",n.appendChild(C)),C.innerHTML=a;var s,r=t.languages[e].consent_modal.primary_btn,c=t.languages[e].consent_modal.secondary_btn;r&&(k||((k=pe("button")).id="c-p-bn",k.className="c-bn",k.appendChild(xe(1)),"accept_all"===r.role&&(s="all"),Ce(k,"click",(function(){I.hide(),ue("CookieConsent [ACCEPT]: cookie_consent was accepted!"),I.accept(s)}))),k.firstElementChild.innerHTML=t.languages[e].consent_modal.primary_btn.text),c&&(w||((w=pe("button")).id="c-s-bn",w.className="c-bn c_link",w.appendChild(xe(1)),"accept_necessary"===c.role?Ce(w,"click",(function(){I.hide(),I.accept([])})):Ce(w,"click",(function(){I.showSettings(0)}))),w.firstElementChild.innerHTML=t.languages[e].consent_modal.secondary_btn.text);var d=t.gui_options;S||((S=pe("div")).id="c-inr",S.appendChild(n)),A||((A=pe("div")).id="c-bns",d&&d.consent_modal&&!0===d.consent_modal.swap_buttons?(c&&A.appendChild(w),r&&A.appendChild(k),A.className="swap"):(r&&A.appendChild(k),c&&A.appendChild(w)),(r||c)&&S.appendChild(A),v.appendChild(S)),J=!0,ae(S)},ce=function(e){if(x)(z=pe("div")).id="s-bl";else{(x=pe("div")).tabIndex=-1;var n=pe("div"),i=pe("div"),o=pe("div");L=pe("div"),E=pe("div");var a=pe("div");(N=pe("button")).appendChild(xe(2));var s=pe("div");T=pe("div");var r=pe("div"),c=!1;Ce(x,"mouseup",(function(e){!G||c||L.contains(e.target)||I.hideSettings()})),Ce(x,"mousedown",(function(e){G&&(c=L.contains(e.target))})),x.id="s-cnt",n.id="c-vln",o.id="c-s-in",i.id="cs",E.id="s-ttl",L.id="s-inr",a.id="s-hdr",T.id="s-bl",N.id="s-c-bn",r.id="cs-ov",s.id="s-c-bnc",N.className="c-bn",x.setAttribute("role","dialog"),x.setAttribute("aria-modal","true"),x.setAttribute("aria-hidden","true"),x.setAttribute("aria-labelledby","s-ttl"),E.setAttribute("role","heading"),x.style.visibility=r.style.visibility="hidden",r.style.opacity=0,s.appendChild(N),Ce(document,"keydown",(function(e){27===e.keyCode&&G&&I.hideSettings()}),!0),Ce(N,"click",(function(){I.hideSettings()}))}var u=t.languages[e].settings_modal;N.setAttribute("aria-label",u.close_btn_label||"Close"),l=u.blocks,d=u.cookie_table_headers;var p=u.cookie_table_caption,h=l.length;E.innerHTML=u.title;for(var f=0;f<h;++f){var g=l[f].title,m=l[f].description,_=l[f].toggle,v=l[f].cookie_table,y=!0===t.remove_cookie_tables,C=!!m||!y&&!!v,k=pe("div"),w=pe("div");if(m){var A=pe("div");A.className="p",A.insertAdjacentHTML("beforeend",m)}var S=pe("div");if(S.className="title",k.className="c-bl",w.className="desc",void 0!==_){var H="c-ac-"+f,Z=pe(C?"button":"div"),J=pe("label"),P=pe("input"),U=pe("span"),F=pe("span"),X=pe("span"),Y=pe("span");Z.className=C?"b-tl exp":"b-tl",J.className="b-tg",P.className="c-tgl",X.className="on-i",Y.className="off-i",U.className="c-tg",F.className="t-lb",C&&(Z.setAttribute("aria-expanded","false"),Z.setAttribute("aria-controls",H)),P.type="checkbox",U.setAttribute("aria-hidden","true");var B=_.value;P.value=B,F.textContent=g,Z.insertAdjacentHTML("beforeend",g),S.appendChild(Z),U.appendChild(X),U.appendChild(Y),R?_.enabled?(P.checked=!0,!z&&ee.push(!0),_.enabled&&!z&&$.push(B)):!z&&ee.push(!1):le(D.categories,B)>-1?(P.checked=!0,!z&&ee.push(!0)):!z&&ee.push(!1),!z&&te.push(B),_.readonly&&(P.disabled=!0,we(U,"c-ro"),!z&&ne.push(B)),we(w,"b-acc"),we(S,"b-bn"),we(k,"b-ex"),w.id=H,w.setAttribute("aria-hidden","true"),J.appendChild(P),J.appendChild(U),J.appendChild(F),S.appendChild(J),C&&function(e,t,n){Ce(Z,"click",(function(){Se(t,"act")?(Ae(t,"act"),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true")):(we(t,"act"),n.setAttribute("aria-expanded","true"),e.setAttribute("aria-hidden","false"))}),!1)}(w,k,Z)}else if(g){var K=pe("div");K.className="b-tl",K.setAttribute("role","heading"),K.setAttribute("aria-level","3"),K.insertAdjacentHTML("beforeend",g),S.appendChild(K)}if(g&&k.appendChild(S),m&&w.appendChild(A),!y&&void 0!==v){for(var V=document.createDocumentFragment(),Q=0;Q<d.length;++Q){var W=pe("th"),ie=d[Q];if(W.setAttribute("scope","col"),ie){var oe=ie&&ke(ie)[0];W.textContent=d[Q][oe],V.appendChild(W)}}var ae=pe("tr");ae.appendChild(V);var se=pe("thead");se.appendChild(ae);var re=pe("table");if(p){var ce=pe("caption");ce.innerHTML=p,re.appendChild(ce)}re.appendChild(se);for(var de=document.createDocumentFragment(),ue=0;ue<v.length;ue++){for(var he=pe("tr"),fe=0;fe<d.length;++fe)if(ie=d[fe]){oe=ke(ie)[0];var ge=pe("td");ge.insertAdjacentHTML("beforeend",v[ue][oe]),ge.setAttribute("data-column",ie[oe]),he.appendChild(ge)}de.appendChild(he)}var me=pe("tbody");me.appendChild(de),re.appendChild(me),w.appendChild(re)}(_&&g||!_&&(g||m))&&(k.appendChild(w),z?z.appendChild(k):T.appendChild(k))}O||((O=pe("div")).id="s-bns"),j||((j=pe("button")).id="s-all-bn",j.className="c-bn",O.appendChild(j),Ce(j,"click",(function(){I.accept("all"),I.hideSettings(),I.hide()}))),j.innerHTML=u.accept_all_btn;var _e=u.reject_all_btn;if(_e&&(q||((q=pe("button")).id="s-rall-bn",q.className="c-bn",Ce(q,"click",(function(){I.accept([]),I.hideSettings(),I.hide()})),L.className="bns-t",O.appendChild(q)),q.innerHTML=_e),M||((M=pe("button")).id="s-sv-bn",M.className="c-bn",O.appendChild(M),Ce(M,"click",(function(){I.accept(),I.hideSettings(),I.hide()}))),M.innerHTML=u.save_settings_btn,z)return L.replaceChild(z,T),void(T=z);a.appendChild(E),a.appendChild(s),L.appendChild(a),L.appendChild(T),L.appendChild(O),o.appendChild(L),i.appendChild(o),n.appendChild(i),x.appendChild(n),b.appendChild(x),b.appendChild(r)};I.updateLanguage=function(e,n){if("string"==typeof e){var i=se(e,t.languages);return(i!==H.current_lang||!0===n)&&(H.current_lang=i,J&&re(i),ce(i),ue("CookieConsent [LANGUAGE]: curr_lang: '"+i+"'"),!0)}};var de=function(e){var t=l.length,n=-1;Y=!1;var i=ve("","all"),o=[H.cookie_domain,"."+H.cookie_domain];if("www."===H.cookie_domain.slice(0,4)){var a=H.cookie_domain.substr(4);o.push(a),o.push("."+a)}for(var s=0;s<t;s++){var r=l[s];if(r.hasOwnProperty("toggle")){var c=le(X,r.toggle.value)>-1;if(!ee[++n]&&r.hasOwnProperty("cookie_table")&&(e||c)){var u=r.cookie_table,p=ke(d[0])[0],h=u.length;"on_disable"===r.toggle.reload&&c&&(Y=!0);for(var f=0;f<h;f++){var g=o,m=u[f],_=[],b=m[p],v=m.is_regex||!1,y=m.domain||null,C=m.path||!1;if(y&&(g=[y,"."+y]),v)for(var k=0;k<i.length;k++)i[k].match(b)&&_.push(i[k]);else{var w=le(i,b);w>-1&&_.push(i[w])}ue("CookieConsent [AUTOCLEAR]: search cookie: '"+b+"', found:",_),_.length>0&&(ye(_,C,g),"on_clear"===r.toggle.reload&&(Y=!0))}}}}},le=function(e,t){return e.indexOf(t)},ue=function(e,t,n){},pe=function(e){var t=document.createElement(e);return"button"===e&&t.setAttribute("type",e),t},he=function(e,t){return"browser"===H.auto_language?se(fe(),e):"document"===H.auto_language?se(document.documentElement.lang,e):"string"==typeof t?H.current_lang=se(t,e):(ue("CookieConsent [LANG]: setting current_lang='"+H.current_lang+"'"),H.current_lang)},fe=function(){var e=navigator.language||navigator.browserLanguage;return e.length>2&&(e=e[0]+e[1]),ue("CookieConsent [LANG]: detected_browser_lang='"+e+"'"),e.toLowerCase()};I.allowedCategory=function(e){if(R&&"opt-in"!==H.mode)t=$;else var t=JSON.parse(ve(H.cookie_name,"one",!0)||"{}").categories||[];return le(t,e)>-1},I.run=function(t){if(document.getElementById("cc_div"))ue("CookieConsent [NOTICE]: cookie consent already attached to body!");else{if(oe(t),V)return;D=JSON.parse(ve(H.cookie_name,"one",!0)||"{}");var r=void 0!==(o=D.consent_uuid);if((n=D.consent_date)&&(n=new Date(n)),(i=D.last_consent_update)&&(i=new Date(i)),Z=void 0!==D.data?D.data:null,U&&D.revision!==H.revision&&(F=!1),J=R=!(r&&F&&n&&i&&o),function(){(_=pe("div")).id="cc--main",_.style.position="fixed",_.innerHTML='<div id="cc_div" class="cc_div"></div>',b=_.children[0];var t=H.current_lang;J&&re(t),ce(t),(e||document.body).appendChild(_)}(),function(){var e=["[href]","button","input","details",'[tabindex="0"]'];function t(t,n){try{var i=t.querySelectorAll(e.join(':not([tabindex="-1"]), '))}catch(n){return t.querySelectorAll(e.join(", "))}n[0]=i[0],n[1]=i[i.length-1]}t(L,W),J&&t(v,Q)}(),function(e){if("object"==typeof e){var t=e.consent_modal,n=e.settings_modal;J&&t&&i(v,["box","bar","cloud"],["top","middle","bottom"],["zoom","slide"],t.layout,t.position,t.transition),n&&i(x,["bar"],["left","right"],["zoom","slide"],n.layout,n.position,n.transition)}function i(e,t,n,i,o,a,s){if(a=a&&a.split(" ")||[],le(t,o)>-1&&(we(e,o),("bar"!==o||"middle"!==a[0])&&le(n,a[0])>-1))for(var r=0;r<a.length;r++)we(e,a[r]);le(i,s)>-1&&we(e,s)}}(t.gui_options),ae(),H.autorun&&J&&I.show(t.delay||0),setTimeout((function(){we(_,"c--anim")}),30),setTimeout((function(){Ce(document,"keydown",(function(e){if("Tab"===e.key&&(P||G)&&a){var t=Ne();e.shiftKey?t!==a[0]&&s.contains(t)||(e.preventDefault(),Le(a[1])):t!==a[1]&&s.contains(t)||(e.preventDefault(),Le(a[0]))}}))}),100),R)"opt-out"===H.mode&&(ue("CookieConsent [CONFIG] mode='"+H.mode+"', default enabled categories:",$),ge()),ue("CookieConsent [NOTICE]: ask for consent!");else{var c="boolean"==typeof D.rfc_cookie;(!c||c&&D.rfc_cookie!==H.use_rfc_cookie)&&(D.rfc_cookie=H.use_rfc_cookie,be(H.cookie_name,JSON.stringify(D))),f=_e(me()),ge(),"function"==typeof u&&u(D),ue("CookieConsent [NOTICE]: consent already given!",D)}}};var ge=function(){if(H.page_scripts){var e=D.categories||[];R&&"opt-out"===H.mode&&(e=$);var t=document.querySelectorAll("script["+H.script_selector+"]"),n=function(t,i){if(i<t.length){var o=t[i],a=o.getAttribute(H.script_selector);if(le(e,a)>-1){o.type=o.getAttribute("data-type")||"text/javascript",o.removeAttribute(H.script_selector);var s=o.getAttribute("data-src");s&&o.removeAttribute("data-src");var r=pe("script");if(r.textContent=o.innerHTML,function(e,t){for(var n=t.attributes,i=n.length,o=0;o<i;o++){var a=n[o].nodeName;e.setAttribute(a,t[a]||t.getAttribute(a))}}(r,o),s?r.src=s:s=o.src,s&&(r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,n(t,++i))}:r.onload=function(){r.onload=null,n(t,++i)}),o.parentNode.replaceChild(r,o),s)return}n(t,++i)}};n(t,0)}};I.set=function(e,t){return"data"===e&&function(e,t){var n=!1;if("update"===t){var i=typeof(Z=I.get("data"))==typeof e;if(i&&"object"==typeof Z)for(var o in!Z&&(Z={}),e)Z[o]!==e[o]&&(Z[o]=e[o],n=!0);else!i&&Z||Z===e||(Z=e,n=!0)}else Z=e,n=!0;return n&&(D.data=Z,be(H.cookie_name,JSON.stringify(D))),n}(t.value,t.mode)},I.get=function(e,t){return JSON.parse(ve(t||H.cookie_name,"one",!0)||"{}")[e]},I.getConfig=function(e){return H[e]||t[e]};var me=function(){return B=D.categories||[],K=te.filter((function(e){return-1===le(B,e)})),{accepted:B,rejected:K}},_e=function(e){var t="custom",n=ne.length;return e.accepted.length===te.length?t="all":e.accepted.length===n&&(t="necessary"),t};I.getUserPreferences=function(){var e=me();return{accept_type:_e(e),accepted_categories:e.accepted,rejected_categories:e.rejected}},I.loadScript=function(e,t,n){var i="function"==typeof t;if(document.querySelector('script[src="'+e+'"]'))i&&t();else{var o=pe("script");if(n&&n.length>0)for(var a=0;a<n.length;++a)n[a]&&o.setAttribute(n[a].name,n[a].value);i&&(o.onload=t),o.src=e,document.head.appendChild(o)}},I.updateScripts=function(){ge()},I.show=function(e,t){!0===t&&re(H.current_lang),J&&(g=Ne(),a=Q,s=v,P=!0,v.removeAttribute("aria-hidden"),setTimeout((function(){we(ie,"show--consent"),ue("CookieConsent [MODAL]: show consent_modal")}),e>0?e:t?30:0))},I.hide=function(){J&&(P=!1,Le(r),v.setAttribute("aria-hidden","true"),Ae(ie,"show--consent"),Le(g),g=null,ue("CookieConsent [MODAL]: hide"))},I.showSettings=function(e){G=!0,x.removeAttribute("aria-hidden"),P?m=Ne():g=Ne(),s=x,a=W,setTimeout((function(){we(ie,"show--settings"),ue("CookieConsent [SETTINGS]: show settings_modal")}),e>0?e:0)},I.hideSettings=function(){G=!1,Ee(),Le(c),x.setAttribute("aria-hidden","true"),Ae(ie,"show--settings"),P?(Le(m),m=null,s=v,a=Q):(Le(g),g=null),ue("CookieConsent [SETTINGS]: hide settings_modal")},I.accept=function(e,t){var a=e||void 0,s=t||[],r=[];if(a)if("object"==typeof a&&"number"==typeof a.length)for(var c=0;c<a.length;c++)-1!==le(te,a[c])&&r.push(a[c]);else"string"==typeof a&&("all"===a?r=te.slice():-1!==le(te,a)&&r.push(a));else r=function(){for(var e=document.querySelectorAll(".c-tgl")||[],t=[],n=0;n<e.length;n++)e[n].checked&&t.push(e[n].value);return t}();if(s.length>=1)for(c=0;c<s.length;c++)r=r.filter((function(e){return e!==s[c]}));for(c=0;c<te.length;c++)!0===ne.includes(te[c])&&-1===le(r,te[c])&&r.push(te[c]);!function(e){X=[];var t=x.querySelectorAll(".c-tgl")||[];if(t.length>0)for(var a=0;a<t.length;a++)-1!==le(e,te[a])?(t[a].checked=!0,ee[a]||(X.push(te[a]),ee[a]=!0)):(t[a].checked=!1,ee[a]&&(X.push(te[a]),ee[a]=!1));!R&&H.autoclear_cookies&&X.length>0&&de(),n||(n=new Date),o||(o=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){try{return(e^(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)}catch(e){return""}}))),D={categories:e,level:e,revision:H.revision,data:Z,rfc_cookie:H.use_rfc_cookie,consent_date:n.toISOString(),consent_uuid:o},(R||X.length>0)&&(F=!0,i=i?new Date:n,D.last_consent_update=i.toISOString(),f=_e(me()),be(H.cookie_name,JSON.stringify(D)),ge()),R&&(H.autoclear_cookies&&de(!0),"function"==typeof h&&h(I.getUserPreferences(),D),"function"==typeof u&&u(D),R=!1,"opt-in"===H.mode)||("function"==typeof p&&X.length>0&&p(D,X),Y&&location.reload())}(r)},I.eraseCookies=function(e,t,n){var i=[],o=n?[n,"."+n]:[H.cookie_domain,"."+H.cookie_domain];if("object"==typeof e&&e.length>0)for(var a=0;a<e.length;a++)this.validCookie(e[a])&&i.push(e[a]);else this.validCookie(e)&&i.push(e);ye(i,t,o)};var be=function(e,t){var n=H.cookie_expiration;"number"==typeof H.cookie_necessary_only_expiration&&"necessary"===f&&(n=H.cookie_necessary_only_expiration),t=H.use_rfc_cookie?encodeURIComponent(t):t;var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var o=e+"="+(t||"")+"; expires="+i.toUTCString()+"; Path="+H.cookie_path+";";o+=" SameSite="+H.cookie_same_site+";",location.hostname.indexOf(".")>-1&&H.cookie_domain&&(o+=" Domain="+H.cookie_domain+";"),"https:"===location.protocol&&(o+=" Secure;"),document.cookie=o,ue("CookieConsent [SET_COOKIE]: '"+e+"' expires after "+n+" day(s)")},ve=function(e,t,n){var i;if("one"===t){if((i=(i=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))?n?i.pop():e:"")&&e===H.cookie_name){try{i=JSON.parse(i)}catch(e){try{i=JSON.parse(decodeURIComponent(i))}catch(e){i={}}}i=JSON.stringify(i)}}else if("all"===t){var o=document.cookie.split(/;\s*/);i=[];for(var a=0;a<o.length;a++)i.push(o[a].split("=")[0])}return i},ye=function(e,t,n){for(var i=t||"/",o=0;o<e.length;o++){for(var a=0;a<n.length;a++)document.cookie=e[o]+"=; path="+i+(0==n[a].indexOf(".")?"; domain="+n[a]:"")+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";ue("CookieConsent [AUTOCLEAR]: deleting cookie: '"+e[o]+"' path: '"+i+"' domain:",n)}};I.validCookie=function(e){return""!==ve(e,"one",!0)},I.validConsent=function(){return!R};var Ce=function(e,t,n,i){e.addEventListener(t,n,!0===i&&{passive:!0})},ke=function(e){if("object"==typeof e)return Object.keys(e)},we=function(e,t){e.classList.add(t)},Ae=function(e,t){e.classList.remove(t)},Se=function(e,t){return e.classList.contains(t)},xe=function(e){var t=pe("span");return t.tabIndex=-1,1===e?r=t:c=t,t},Le=function(e){e&&e instanceof HTMLElement&&e.focus()},Ee=function(){for(var e=L.querySelectorAll(".c-tgl"),t=0;t<e.length;t++){var n=e[t].value,i=ne.includes(n);e[t].checked=i||I.allowedCategory(n)}},Ne=function(){return document.activeElement};return I})}()}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}(()=>{"use strict";n(470);const e=document.createElement("template");e.innerHTML='\n  <style>\n    :host {\n      display: block;\n      \n      position: fixed;\n      bottom: 1rem;\n      \n      z-index: 1;\n    }\n    \n    :host(.left){\n      left: 1rem;\n    }\n\n    :host(.right){\n      right: 1rem;\n    }\n\n    .button {\n      border-radius: 100%;\n      z-index: 1000;\n      cursor: pointer;\n      border: none;\n      box-shadow: 0 0.3rem 0.6rem rgba(2, 2, 3, 0.2);\n      background-color: var(--cc-btn-floating-bg, #3859d0);\n      transition: opacity 450ms, transform 450ms;\n    }\n    \n    .button:hover {\n      background-color: var(--cc-btn-floating-hover-bg, #1d2e38);\n    }\n    \n    .button.sm {\n      width: 3rem;\n      height: 3rem;\n      padding: 0.5rem;\n    }\n    \n    .button.lg {\n      width: 4rem;\n      height: 4rem;\n      padding: 0.7rem;\n    }\n    \n    .button.hidden {\n      visibility: hidden;\n    }\n    \n    .button.visible {\n      visibility: visible;\n    }\n    \n    .button.hidden.fade-in {\n      opacity: 0;\n    }\n    \n    .button.visible.fade-in {\n      opacity: 1;\n    }\n    \n    .button.hidden.fade-in-up {\n      transform: translateY(0.7rem);\n      opacity: 0;\n    }\n    \n    .button.visible.fade-in-up {\n      transform: translateY(0);\n      opacity: 1;\n    }\n    \n    .button.hidden.fade-in-zoom {\n      transform: scale(0);\n      opacity: 0;\n    }\n    \n    .button.visible.fade-in-zoom {\n      transform: scale(1);\n      opacity: 1;\n    }\n    \n    .button.hidden.zoom-in {\n      transform: scale(0);\n    }\n    \n    .button.visible.zoom-in {\n      transform: scale(1);\n    }\n    \n    :host(.left) .button.hidden.slide-in-horizontal.sm {\n      transform: translateX(-4rem);\n    }\n    \n    :host(.left) .button.hidden.slide-in-horizontal.lg {\n      transform: translateX(-5rem);\n    }\n    \n    :host(.right) .button.hidden.slide-in-horizontal.sm {\n      transform: translateX(4rem);\n    }\n    \n    :host(.right) .button.hidden.slide-in-horizontal.lg {\n      transform: translateX(5rem);\n    }\n\n    .button.visible.slide-in-horizontal {\n      transform: translateX(0);\n    }\n    \n    .button.hidden.slide-in-vertical.sm {\n      transform: translateY(4rem);\n    }\n    \n    .button.hidden.slide-in-vertical.lg {\n      transform: translateY(5rem);\n    }\n\n    .button.visible.slide-in-vertical {\n      transform: translateY(0);\n    }\n    \n    [name="icon"] {\n      fill: var(--cc-btn-floating-icon, #f9faff);\n    }\n    \n    [name="icon"]:hover {\n      fill: var(--cc-btn-floating-hover-icon, #f9faff);\n    }\n    \n    @media (prefers-reduced-motion){\n      .button {\n        transition: none;\n      }\n    }\n  </style>\n  <button class="button" type="button" aria-label="Cookie settings">\n    <slot name="icon"></slot>\n  </button>\n';class t extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(e.content.cloneNode(!0)),this._size=this.getAttribute("size")||"sm",this._position=this.getAttribute("position")||"left",this._status=this.getAttribute("status")||"hidden",this._label=this.getAttribute("label")||"Cookie settings",this._transition=this.getAttribute("transition")||"fade-in-up",this._initIconSlot()}get observedAttributes(){return["size","position","label","status","transition"]}get size(){return this._size||""}set size(e){this._size=e,this._update(),this.setAttribute("size",this._size)}get position(){return this._position||""}set position(e){this._position=e,this._update(),this.setAttribute("position",this._position)}get label(){return this._label||""}set label(e){this._label=e,this._update(),this.setAttribute("label",this._label)}get status(){return this._status||""}set status(e){this._status=e,this._update(),this.setAttribute("status",this._status)}get transition(){return this._transition||""}set transition(e){this._transition=e,this._update(),this.setAttribute("transition",this._transition)}connectedCallback(){this.shadowRoot.querySelector(".button").addEventListener("click",(()=>{window.pressidiumCookieConsent.showSettings(0)})),this._update()}attributeChangedCallback(e,t,n){switch(e){case"size":this._size=n;break;case"position":this._position=n;break;case"label":this._label=n;break;case"status":this._status=n;break;case"transition":this._transition=n}}_updateSize(){const e=this.shadowRoot.querySelector(".button");if(!e)return;const t=["sm","lg"];t.forEach((t=>e.classList.remove(t))),e.classList.add(t.includes(this._size)?this._size:"sm")}_updatePosition(){const e=["left","right"];e.forEach((e=>this.classList.remove(e))),this.classList.add(e.includes(this._position)?this._position:"left")}_updateTransition(){const e=this.shadowRoot.querySelector(".button");if(!e)return;const t=["fade-in","fade-in-up","fade-in-zoom","zoom-in","slide-in-horizontal","slide-in-vertical"];t.forEach((t=>e.classList.remove(t))),t.includes(this._transition)&&e.classList.add(this._transition)}_updateLabel(){this.shadowRoot.querySelector(".button").setAttribute("aria-label",this._label)}_updateStatus(){const e=this.shadowRoot.querySelector(".button");if(!e)return;const t=["visible","hidden"];t.forEach((t=>e.classList.remove(t))),e.classList.add(t.includes(this._status)?this._status:"hidden")}_initIconSlot(){const e=this.shadowRoot.querySelector('slot[name="icon"]');e.addEventListener("slotchange",(()=>{const[t]=e.assignedNodes();t.setAttribute("aria-hidden","true"),t.setAttribute("focusable","false")}))}_update(){this._updateSize(),this._updatePosition(),this._updateTransition(),this._updateLabel(),this._updateStatus()}}const i=t;customElements.define("pressidium-floating-button",i),n(437),((e,t)=>{if("function"!=typeof initCookieConsent)return;if(void 0===e)return;if(!("settings"in e))return;const n={ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:"denied",functionality_storage:"denied",personalization_storage:"denied",security_storage:"denied"},{settings:i,additional_options:o}=e,{record_consents:a,hide_empty_categories:s,floating_button:r,gcm:c}=o,d=()=>{r.enabled&&(document.querySelector("pressidium-floating-button").status="visible")},l=()=>{r.enabled&&(document.querySelector("pressidium-floating-button").status="hidden")},u=(e={})=>{const{enabled:t=!1,size:n="sm",position:o="left",icon:a="pressidium",transition:s=""}=e;if(!t)return;const r=((e=null)=>{if(!window.pressidiumCookieConsent)return{};const t=e||window.pressidiumCookieConsent.getConfig("current_lang");return i.languages[t]})(),c=document.querySelector("pressidium-floating-button");c&&c.remove();const d=document.createElement("pressidium-floating-button");d.size=n,d.label=r.settings_modal.title,d.position=o,d.status="hidden",d.transition=s,d.innerHTML="pressidium"===a?'\n          <svg slot="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">\n            <path d="M158.7,140.72c-2.72,2.24-7.25,6.4-9.16,11.2a32.62,32.62,0,0,0-1.86,11.24,21.61,21.61,0,0,0,.16,2.84c2.84,5,12.07,5.47,17.1,5.08,5.7-.45,14.24-2.33,17.92-7.14a22.63,22.63,0,0,0,3.59-8.1,18.83,18.83,0,0,0,0-10.71C183.52,136.17,170.14,133.86,158.7,140.72Z" />\n            <path d="M97.42,140.72c-11.43-6.86-24.82-4.55-27.76,4.41a18.75,18.75,0,0,0,0,10.71,22.54,22.54,0,0,0,3.6,8.1c3.67,4.81,12.21,6.69,17.91,7.14,5,.39,14.26-.1,17.11-5.08a23,23,0,0,0,.15-2.84,32.38,32.38,0,0,0-1.86-11.24C104.67,147.12,100.14,143,97.42,140.72Z" />\n            <path d="M149.25,153.7h0c-.08.23-.16.46-.23.69C149.09,154.17,149.17,153.94,149.25,153.7Z" />\n            <circle cx="194.32" cy="56.21" r="8.27" />\n            <circle cx="188.99" cy="87.22" r="7.74" />\n            <circle cx="225.28" cy="98.04" r="5.29" />\n            <path d="M220.67,130.68a23,23,0,0,1-4.65.47,23.29,23.29,0,0,1-17.9-8.36l-1.08.47a34.31,34.31,0,0,1,5.19,9.18c4.12,10.88,6,27.72.5,38.78-13,.32-42.81,5.63-61.68,10.2-1.16.28-.54.12,0,0h-2.24c-.45-1.32-1.47-5.77-1.29-19.08.24-18.06,9.58-37.44,25.38-46a31,31,0,0,1-5.38-35.68,23.3,23.3,0,0,1-14.13-24c-1.86-.19-3.76-.35-5.72-.47L141,51.45l-30.69,5.4a99.63,99.63,0,0,0-25.53,6.34c-6.91-7.85-23.1-20.8-55.41-22.3,0,0-7,38.55,10.91,73.33-5.11,15-7.56,29.83-11.42,40.14-.07.18-.13.35-.2.52-.13.35-.27.7-.41,1s-.19.46-.28.68l-.3.68c-.13.3-.27.6-.41.89s-.15.32-.23.47c-.16.34-.33.67-.51,1l-.21.38c-.18.34-.37.66-.56,1l-.18.29-.6.92-.15.2c-.2.3-.42.58-.64.85a1.33,1.33,0,0,1-.14.19c-.24.29-.48.56-.73.83l-.17.18c-.25.26-.5.51-.77.75l-.17.15c-.27.23-.55.46-.83.67a.71.71,0,0,0-.14.1c-.31.21-.61.42-.93.61h0c-.33.19-.65.35-1,.51l-.08,0c-.38.16-.72.29-1.06.4l-.19.06c-.34.11-.7.2-1.06.28l-.19,0c-.37.07-.75.13-1.14.17h-.15c-.42,0-.84.06-1.28.06h0c.09.21.19.41.28.62v0C29.65,202.39,80.19,227,128,227h0c47.8,0,98.28-24.56,113.58-57.91l.16-.09.05,0h0l0,0,.08,0c0-.19,0-.38,0-.58C229,168.32,226,151.4,220.67,130.68ZM53.9,132.44c6-15.86,22.05-24.81,38.11-16.8,16.55,8.25,26.39,28.17,26.63,46.7.18,13.31-.84,17.76-1.29,19.08h-2.24c.5.12,1.12.28,0,0-18.87-4.57-48.72-9.88-61.68-10.2C47.9,160.16,49.77,143.32,53.9,132.44ZM142,191.73l-4.28,2.19a15,15,0,0,1-19.3,0l-4.28-2.19c-2.42-2-1-4.59,2.17-4.59h23.52C143,187.14,144.42,189.7,142,191.73Z" />\n          </svg>\n        ':'\n          <svg slot="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1080 1080">\n            <path d="m793.47,318.72c0,19.65-15.93,35.58-35.58,35.58s-33.58-15.93-33.58-35.58,14.93-35.58,34.58-35.58,34.58,15.93,34.58,35.58Z"/>\n            <path d="m785.16,120.41c16.16,27.99,12.86,58.96-14.01,74.47-26.87,15.51-62.2,11.32-78.36-16.67-16.16-27.99-13.41-64.88,13.46-80.4s62.75-5.4,78.91,22.6Z"/>\n            <path d="m1043.43,346.47c-7.41,21.67-31.28,35.46-52.08,28.35s-31.64-30.45-24.23-52.11c7.41-21.67,30.28-35.46,51.07-28.35,20.8,7.11,32.64,30.45,25.23,52.11Z"/>\n            <path d="m964.32,545.91c-.76-14.23-2.12-28.29-4.04-42.17-1.26-9.06-11.33-13.96-19.16-9.24-10,6.03-21.72,9.5-34.25,9.5-29.69,0-54.83-19.46-63.36-46.32-2.23-7.01-9.55-10.97-16.65-9.05-.05.01-.1.03-.14.04-17.21,5.61-35.64,8.5-54.8,8.16-89.99-1.62-162.95-75.26-163.79-165.25-.16-17.24,2.3-33.88,7-49.56,2.32-7.75-2.64-15.73-10.59-17.25-44.38-8.46-77.92-47.46-77.92-94.29v-.14c0-7.5-6.38-13.44-13.86-12.87-219.15,16.78-394.36,223.9-394.36,428.43,0,237.22,189.37,433.54,422.96,433.54,210.43,0,435.18-205.3,422.96-433.54Zm-661.54,78.52c-25.16,0-45.55-18.39-45.55-43.55s20.39-45.55,45.55-45.55,49.55,20.39,49.55,45.55-24.4,43.55-49.55,43.55Zm50.55-303.43c-12.74,0-23.07-10.33-23.07-23.07s10.33-23.07,23.07-23.07,23.07,10.33,23.07,23.07-10.33,23.07-23.07,23.07Zm124.8,447.93c-12.33,0-22.32-9.99-22.32-22.32s9.99-22.32,22.32-22.32,22.32,9.99,22.32,22.32-9.99,22.32-22.32,22.32Zm6.68-232.69c-54.51,0-79.27-36.04-79.27-79.27s36.04-78.27,79.27-78.27,82.27,35.04,82.27,78.27-28.74,79.27-82.27,79.27Zm281.37,186.05c-44.77,0-64.6-29.69-61.52-63.53,3.25-35.76,32.51-61.52,61.52-61.52,33.98,0,61.52,27.55,61.52,61.52s-27.55,63.53-61.52,63.53Z"/>\n          </svg>\n        ',document.body.appendChild(d);const u=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&l()}))})),p=()=>{const e=document.querySelector("#cm");e&&u.observe(e)};new MutationObserver((()=>{document.querySelector("#cm")&&p()})).observe(document,{childList:!0,subtree:!0}),p()},p=async t=>{if(!a)return;const{rest_url:n,consent_route:i}=e.api;try{await fetch(`${n}${i}`,{method:"POST",credentials:"same-origin",headers:new Headers({"Content-Type":"application/json;charset=UTF-8"}),body:JSON.stringify({consent_date:t.consent_date,uuid:t.consent_uuid,url:window.location.href,user_agent:window.navigator.userAgent,necessary_consent:t.level.includes("necessary"),analytics_consent:t.level.includes("analytics"),targeting_consent:t.level.includes("targeting"),preferences_consent:t.level.includes("preferences")})})}catch(e){console.error(e)}},h=(e=[])=>{const t={...n},i={necessary:["functionality_storage","security_storage"],preferences:["personalization_storage"],analytics:["analytics_storage"],targeting:["ad_storage","ad_user_data","ad_personalization"]};return e.forEach((e=>{i[e].forEach((e=>{t[e]="granted"}))})),t},f=(e=[])=>{if(!c.enabled||"gtag"!==c.implementation||!("gtag"in window)||"function"!=typeof window.gtag)return;if(!Array.isArray(e)||0===e.length)return;const n=h(e);t("consent","update",n)},g=(e=[])=>{Array.isArray(e)&&0!==e.length&&(window.pressidiumConsentListeners=window.pressidiumConsentListeners||[],window.pressidiumConsentListeners.forEach((t=>{t(h(e))})))};s&&Object.entries(i.languages).forEach((([e,t])=>{i.languages[e].settings_modal.blocks=t.settings_modal.blocks.filter((e=>!(e=>"toggle"in e&&(!("cookie_table"in e)||0===e.cookie_table.length))(e)))})),window.pressidiumCookieConsent=initCookieConsent(),window.pressidiumCookieConsent.run({...i,onAccept:async e=>{await p(e),"categories"in e&&c.enabled&&(f(e.categories),g(e.categories)),d();const t=new CustomEvent("pressidium-cookie-consent-accepted",{detail:{cookie:e}});window.dispatchEvent(t)},onChange:async(e,t)=>{await p(e),"categories"in e&&c.enabled&&(f(e.categories),g(e.categories)),d();const n=new CustomEvent("pressidium-cookie-consent-changed",{detail:{cookie:e,changedCategories:t}});window.dispatchEvent(n)}}),u(r),window.pressidiumFloatingButton={init:u,show:d,hide:l};const m=window.pressidiumCookieConsent.get("categories");f(m),document.querySelectorAll("#cc--main button").forEach((e=>{e.classList.add("has-background","has-text-color")}))})(pressidiumCCClientDetails,window.gtag)})()})();
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(i,a,function(e){return t[e]}.bind(null,a));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=95)}([function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i,a=window;try{i=!!window.top.document&&window.top}catch(t){i=!1}i&&i.__Cypress__?window.parent===i?a=window:a=window.parent:i&&(a=i,window.self)},function(t,e,n){var i=n(10),a=n(29),o=n(30),r=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":r&&r in Object(t)?a(t):o(t)}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){var i=n(14),a="object"==typeof self&&self&&self.Object===Object&&self,o=i||a||Function("return this")();t.exports=o},function(t,e,n){var i=n(1),a=n(3);t.exports=function(t){return"symbol"==typeof t||a(t)&&"[object Symbol]"==i(t)}},function(t,e,n){var i=n(18)(Object,"create");t.exports=i},function(t,e,n){var i=n(77);t.exports=function(t,e){for(var n=t.length;n--;)if(i(t[n][0],e))return n;return-1}},function(t,e,n){var i=n(83);t.exports=function(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var i=n(55);t.exports=function(t,e,n){var a=null==t?void 0:i(t,e);return void 0===a?n:a}},function(t,e,n){var i=n(4).Symbol;t.exports=i},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var i=n(13),a=n(15);t.exports=function(t){return null!=t&&a(t.length)&&!i(t)}},function(t,e,n){var i=n(1),a=n(11);t.exports=function(t){if(!a(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(28))},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,a=Array(i);++n<i;)a[n]=e(t[n],n,t);return a}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var i=n(65),a=n(69);t.exports=function(t,e){var n=a(t,e);return i(n)?n:void 0}},function(t,e,n){var i=n(24),a=n(12),o=n(31),r=n(32),s=n(37),c=Math.max;t.exports=function(t,e,n,l){t=a(t)?t:s(t),n=n&&!l?r(n):0;var _=t.length;return n<0&&(n=c(_+n,0)),o(t)?n<=_&&t.indexOf(e,n)>-1:!!_&&i(t,e,n)>-1}},function(t,e){t.exports=jQuery},function(t,e){!function(){"use strict";function t(i){if(!i)throw new Error("No options passed to Waypoint constructor");if(!i.element)throw new Error("No element option passed to Waypoint constructor");if(!i.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,i),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=i.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),n[this.key]=this,e+=1}var e=0,n={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete n[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var i in n)e.push(n[i]);for(var a=0,o=e.length;o>a;a++)e[a][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.invokeAll("enable")},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=a.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+n,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,i[t.waypointContextKey]=this,n+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var n=0,i={},a=window.Waypoint,o=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete i[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",(function(){e.didResize||(e.didResize=!0,a.requestAnimationFrame(t))}))},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",(function(){(!e.didScroll||a.isTouch)&&(e.didScroll=!0,a.requestAnimationFrame(t))}))},e.prototype.handleResize=function(){a.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var n in e){var i=e[n],a=i.newScroll>i.oldScroll?i.forward:i.backward;for(var o in this.waypoints[n]){var r=this.waypoints[n][o],s=i.oldScroll<r.triggerPoint,c=i.newScroll>=r.triggerPoint;(s&&c||!s&&!c)&&(r.queueTrigger(a),t[r.group.id]=r.group)}}for(var l in t)t[l].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?a.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?a.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var n in this.waypoints[e])t.push(this.waypoints[e][n]);for(var i=0,a=t.length;a>i;i++)t[i].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,n=e?void 0:this.adapter.offset(),i={};for(var o in this.handleScroll(),t={horizontal:{contextOffset:e?0:n.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:n.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var r=t[o];for(var s in this.waypoints[o]){var c,l,_,d,p=this.waypoints[o][s],u=p.options.offset,f=p.triggerPoint,h=0,b=null==f;p.element!==p.element.window&&(h=p.adapter.offset()[r.offsetProp]),"function"==typeof u?u=u.apply(p):"string"==typeof u&&(u=parseFloat(u),p.options.offset.indexOf("%")>-1&&(u=Math.ceil(r.contextDimension*u/100))),c=r.contextScroll-r.contextOffset,p.triggerPoint=h+c-u,l=f<r.oldScroll,_=p.triggerPoint>=r.oldScroll,d=!l&&!_,!b&&(l&&_)?(p.queueTrigger(r.backward),i[p.group.id]=p.group):(!b&&d||b&&r.oldScroll>=p.triggerPoint)&&(p.queueTrigger(r.forward),i[p.group.id]=p.group)}}return a.requestAnimationFrame((function(){for(var t in i)i[t].flushTriggers()})),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in i)i[t].refresh()},e.findByElement=function(t){return i[t.waypointContextKey]},window.onload=function(){o&&o(),e.refreshAll()},a.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},a.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function n(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[this.axis][this.name]=this}var i={vertical:{},horizontal:{}},a=window.Waypoint;n.prototype.add=function(t){this.waypoints.push(t)},n.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},n.prototype.flushTriggers=function(){for(var n in this.triggerQueues){var i=this.triggerQueues[n],a="up"===n||"left"===n;i.sort(a?e:t);for(var o=0,r=i.length;r>o;o+=1){var s=i[o];(s.options.continuous||o===i.length-1)&&s.trigger([n])}}this.clearTriggerQueues()},n.prototype.next=function(e){this.waypoints.sort(t);var n=a.Adapter.inArray(e,this.waypoints);return n===this.waypoints.length-1?null:this.waypoints[n+1]},n.prototype.previous=function(e){this.waypoints.sort(t);var n=a.Adapter.inArray(e,this.waypoints);return n?this.waypoints[n-1]:null},n.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},n.prototype.remove=function(t){var e=a.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},n.prototype.first=function(){return this.waypoints[0]},n.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},n.findOrCreate=function(t){return i[t.axis][t.name]||new n(t)},a.Group=n}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,n=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],(function(e,n){t.prototype[n]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[n].apply(this.$element,t)}})),e.each(["extend","inArray","isEmptyObject"],(function(n,i){t[i]=e[i]})),n.adapters.push({name:"jquery",Adapter:t}),n.Adapter=t}(),function(){"use strict";function t(t){return function(){var n=[],i=arguments[0];return"function"==typeof arguments[0]&&((i=t.extend({},arguments[1])).handler=arguments[0]),this.each((function(){var a=t.extend({},i,{element:this});"string"==typeof a.context&&(a.context=t(this).closest(a.context)[0]),n.push(new e(a))})),n}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}()},function(t,e){function n(t){return(n="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){for(var n in e)t[n]=e[n]}(window,function(t){var e={};function i(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==n(t)&&t&&t.__esModule)return t;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(a,o,function(e){return t[e]}.bind(null,o));return a},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i(i.s=1463)}({1:function(t,e,n){var i=n(93);t.exports=function(t,e,n){var a=null==t?void 0:i(t,e);return void 0===a?n:a}},100:function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}},101:function(t,e,n){var i=n(227),a=n(239),o=n(241),r=n(242),s=n(243);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=r,c.prototype.set=s,t.exports=c},102:function(t,e,n){var i=n(149),a=n(207),o=n(257);t.exports=function(t,e,n){return e==e?o(t,e,n):i(t,a,n)}},107:function(t,e,i){(function(t){var a=i(138),o=e&&!e.nodeType&&e,r=o&&"object"==n(t)&&t&&!t.nodeType&&t,s=r&&r.exports===o&&a.process,c=function(){try{return r&&r.require&&r.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=c}).call(this,i(96)(t))},108:function(t,e,n){var i=n(76),a=n(245),o=n(246),r=n(247),s=n(248),c=n(249);function l(t){var e=this.__data__=new i(t);this.size=e.size}l.prototype.clear=a,l.prototype.delete=o,l.prototype.get=r,l.prototype.has=s,l.prototype.set=c,t.exports=l},110:function(t,e,n){var i=n(51);t.exports=function(t){return"function"==typeof t?t:i}},111:function(t,e,i){var a=i(4),o=i(53),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(a(t))return!1;var i=n(t);return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=t&&!o(t))||s.test(t)||!r.test(t)||null!=e&&t in Object(e)}},116:function(t,e,n){var i=n(188),a=n(12),o=n(53),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(a(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=a(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=s.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):r.test(t)?NaN:+t}},117:function(t,e,n){var i=n(90),a=n(217),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return a(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},118:function(t,e,n){var i=n(250),a=n(30);t.exports=function t(e,n,o,r,s){return e===n||(null==e||null==n||!a(e)&&!a(n)?e!=e&&n!=n:i(e,n,o,r,t,s))}},119:function(t,e){t.exports=function(t,e){for(var n=-1,i=e.length,a=t.length;++n<i;)t[a+n]=e[n];return t}},12:function(t,e){t.exports=function(t){var e=n(t);return null!=t&&("object"==e||"function"==e)}},120:function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,a=0,o=[];++n<i;){var r=t[n];e(r,n,t)&&(o[a++]=r)}return o}},126:function(t,e,n){var i=n(162),a=n(17);t.exports=function(t,e){return t&&i(t,e,a)}},129:function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},138:function(t,e,i){(function(e){var i="object"==n(e)&&e&&e.Object===Object&&e;t.exports=i}).call(this,i(89))},139:function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},140:function(t,e,n){var i=n(147),a=n(173),o=n(148);t.exports=function(t,e,n,r,s,c){var l=1&n,_=t.length,d=e.length;if(_!=d&&!(l&&d>_))return!1;var p=c.get(t),u=c.get(e);if(p&&u)return p==e&&u==t;var f=-1,h=!0,b=2&n?new i:void 0;for(c.set(t,e),c.set(e,t);++f<_;){var v=t[f],m=e[f];if(r)var g=l?r(m,v,f,e,t,c):r(v,m,f,t,e,c);if(void 0!==g){if(g)continue;h=!1;break}if(b){if(!a(e,(function(t,e){if(!o(b,e)&&(v===t||s(v,t,n,r,c)))return b.push(e)}))){h=!1;break}}else if(v!==m&&!s(v,m,n,r,c)){h=!1;break}}return c.delete(t),c.delete(e),h}},141:function(t,e,n){var i=n(120),a=n(164),o=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,s=r?function(t){return null==t?[]:(t=Object(t),i(r(t),(function(e){return o.call(t,e)})))}:a;t.exports=s},146:function(t,e,n){var i=n(101);function a(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function n(){var i=arguments,a=e?e.apply(this,i):i[0],o=n.cache;if(o.has(a))return o.get(a);var r=t.apply(this,i);return n.cache=o.set(a,r)||o,r};return n.cache=new(a.Cache||i),n}a.Cache=i,t.exports=a},1463:function(t,e,n){"use strict";(function(t){var e=n(354),i=n(353),a=n(1464);!function(n){var o=n("body").hasClass("et-block-layout-preview"),r=n(".et-l--header").first(),s=0;if(window.et_pb_debounce=function(t,e,n){var i,a,o,r,s,c=Date.now||(new Date).getTime(),l=function l(){var _=c-r;_<e&&_>=0?i=setTimeout(l,e-_):(i=null,n||(s=t.apply(o,a),i||(o=a=null)))};return function(){o=this,a=arguments,r=c;var _=n&&!i;return i||(i=setTimeout(l,e)),_&&(s=t.apply(o,a),o=a=null),s}},r.length){var c=r.find(".et_builder_inner_content").children(".et_pb_section--fixed"),l=et_pb_debounce((function(t){s=0,n.each(c,(function(t,e){var i=n(e).outerHeight(!0);s+=i;var a=n(e).offset().top;a<0&&Math.abs(a)>s?s=0:a<0&&(s+=a)}))}),300);n(window).on("resize",l)}window.et_pb_smooth_scroll=function(t,e,i,o){var c=t.offset().top,l=n(window).width(),_=0,d=0,p="",u="",f=r.find(".et_pb_section");if(!(0,a.isTargetStickyState)(t)){_=n("body").hasClass("et_fixed_nav")&&l>980?(n("#top-header").outerHeight()||0)+(n("#main-header").outerHeight()||0)-1:0,n("#wpadminbar").length&&l>600&&(_+=n("#wpadminbar").outerHeight()||0),r.length&&(f.hasClass("et_pb_section--fixed")&&(p=Math.ceil(parseFloat(f.css("left"))),u=Math.ceil(parseFloat(f.css("right"))),l<980&&(_+=90)),0===p+u&&(_+=s));var h=(0,a.getClosestStickyModuleOffsetTop)(t);h&&(_+=h),d=e?0:Math.round(c)-_,void 0===o&&(o="swing"),n("html, body").animate({scrollTop:d},i,o)}},window.et_pb_form_placeholders_init=function(e){e.find('input:text, input[type="email"], input[type="url"], textarea').each((function(e,n){var i=t(n),a=i.siblings("label"),o=i.siblings("label").text();a.length&&(a.hide(),i.siblings("span.required")&&(o+=i.siblings("span.required").text(),i.siblings("span.required").hide()),i.val(o))})).on("focus",(function(){var e=t(this).siblings("label").text();t(this).siblings("span.required").length&&(e+=t(this).siblings("span.required").text()),t(this).val()===e&&t(this).val("")})).on("blur",(function(){var e=t(this).siblings("label").text();t(this).siblings("span.required").length&&(e+=t(this).siblings("span.required").text()),""===t(this).val()&&t(this).val(e)}))},window.et_duplicate_menu=function(t,e,a,o,r){e.each((function(){var e,s=n(this);if(!s.find("#".concat(a)).length&&(""!==t&&t.clone().attr("id",a).removeClass().attr("class",o).appendTo(s),(e=s.find("> ul")).find(".menu_slide").remove(),e.find(".et_pb_menu__logo-slot").remove(),e.find("li").first().addClass("et_first_mobile_item"),e.find("a").on("click",(function(){n(this).parents(".et_mobile_menu").siblings(".mobile_menu_bar").trigger("click")})),"no_click_event"!==r)){i.isBuilder&&s.off("click");var c=s.closest(".et_pb_section"),l=s.closest(".et_pb_row"),_="0px"!==c.css("border-radius"),d="0px"!==l.css("border-radius");s.on("click",".mobile_menu_bar",(function(){return n(".mobile_nav.opened .mobile_menu_bar").not(n(this)).trigger("click"),s.hasClass("closed")?(s.removeClass("closed").addClass("opened"),(_||d)&&(c.css("overflow","visible"),l.css("overflow","visible")),e.stop().slideDown(500)):(s.removeClass("opened").addClass("closed"),e.stop().slideUp(500),(_||d)&&setTimeout((function(){c.css("overflow","hidden"),l.css("overflow","hidden")}),500)),!1}))}})),n("#mobile_menu .centered-inline-logo-wrap").remove()},window.et_pb_remove_placeholder_text=function(e){e.find("input:text, textarea").each((function(e,n){var i=t(n),a=i.siblings("label");i.siblings("label").text(),a.length&&a.is(":hidden")&&a.text()==i.val()&&i.val("")}))},window.et_fix_fullscreen_section=function(){var t=n(o?e.top_window:window);n("section.et_pb_fullscreen").each((function(){var e=n(this);et_calc_fullscreen_section.bind(e),t.on("resize",et_calc_fullscreen_section.bind(e))}))},window.et_bar_counters_init=function(t){t.length&&t.css({width:"".concat(parseFloat(t.attr("data-width")),"%")})},window.et_fix_pricing_currency_position=function(t){setTimeout((function(){var e=void 0!==t?t:n(".et_pb_pricing_table");e.length&&e.each((function(){var t=n(this).find(".et_pb_et_price"),e=!!t.length&&t.find(".et_pb_dollar_sign"),i=!!t.length&&t.find(".et_pb_sum");e&&i&&e.css({marginLeft:"".concat(-e.width(),"px")})}))}),1)},window.et_pb_set_responsive_grid=function(t,e){setTimeout((function(){var i=t.innerWidth(),a=t.find(e),o=a.outerWidth(!0),r=o-a.outerWidth(),s=Math.round((i+r)/o),c=1,l=1,_=n();if(a.removeClass("last_in_row first_in_row on_last_row"),a.filter(":visible").each((function(){var t=n(this);t.hasClass("inactive")||(l===c?(t.addClass("first_in_row"),_=t):0==c%s&&(t.addClass("last_in_row"),l=c+1),c++)})),_.length){var d=_.parents(".et_pb_module");if(d.is(":last-child")){var p=_.parents(".et_pb_column")[0];n(p).find(".et_pb_grid_item").removeClass("on_last_row");var u=d.find(".et_pb_gallery_pagination");0===u.length&&(u=d.find(".et_pb_portofolio_pagination")),(0===u.length||u.length>0&&!u.is(":visible"))&&(s>1&&_.addClass("on_last_row"),_.nextAll().addClass("on_last_row"))}}}),1)},window.et_pb_set_tabs_height=function(t){void 0===t&&(t=n(".et_pb_tabs")),t.length&&t.each((function(){var t=n(this).find(".et_pb_tabs_controls"),e=t.find("li"),i=0,a=n(this).parents(".et_pb_column_1_3, .et_pb_column_1_4, .et_pb_column_3_8").length>0,o=parseFloat(n(window).width())<768,r=a||o;r&&n(this).addClass("et_pb_tabs_vertically_stacked"),e.length&&(t.children("li").removeAttr("style"),e.each((function(){var t=n(this).outerHeight();r||t>i&&(i=t)}))),0!==i&&t.children("li").css("height","".concat(i,"px"))}))},window.et_pb_box_shadow_apply_overlay=function(t){void 0!==document.body.style.pointerEvents&&(void 0===document.documentMode||document.documentMode>=11)?n(t).each((function(){n(this).children(".box-shadow-overlay").length||n(this).addClass("has-box-shadow-overlay").prepend('<div class="box-shadow-overlay"></div>')})):n(t).addClass(".et-box-shadow-no-overlay")},window.et_pb_init_nav_menu=function(t){t.each((function(){var t=n(this);t.data("et-is-menu-ready")||(t.find("li").on("mouseenter",(function(){window.et_pb_toggle_nav_menu(n(this),"open")})).on("mouseleave",(function(){window.et_pb_toggle_nav_menu(n(this),"close",0)})),n("body").on("touchend",(function(t){n(t.target).closest("ul.nav, ul.menu").length<1&&n(".et-hover").length>0&&window.et_pb_toggle_nav_menu(n(".et-hover"),"close")})),t.find("li.menu-item-has-children").on("touchend",(function(t){var e=n(t.target).closest(".menu-item");if(e.hasClass("menu-item-has-children")){var i=n(this),a=e.closest(".mega-menu-parent.et-touch-hover").length>0;if(i.hasClass("et-touch-hover")||a)void 0!==i.find(">a").attr("href")&&(window.location=i.find(">a").attr("href"));else{var o=n(t.target),r=o.closest(".menu-item").siblings(".et-touch-hover");if(o.closest(".et-touch-hover").length<1&&window.et_pb_toggle_nav_menu(n(".et-hover"),"close",0),i.addClass("et-touch-hover"),r.length>0){var s=r.find(".et-touch-hover");window.et_pb_toggle_nav_menu(r,"close"),window.et_pb_toggle_nav_menu(s,"close")}window.et_pb_toggle_nav_menu(i,"open")}t.preventDefault(),t.stopPropagation()}})),t.find("li.mega-menu").each((function(){var t=n(this),e=t.children("ul").children("li").length;e<4&&t.addClass("mega-menu-parent mega-menu-parent-".concat(e))})),t.data("et-is-menu-ready","ready"))}))},window.et_pb_toggle_nav_menu=function(t,e,n){if("open"===e)t.closest("li.mega-menu").length&&!t.hasClass("mega-menu")||(t.addClass("et-show-dropdown"),t.removeClass("et-hover").addClass("et-hover"));else{var i=void 0!==n?n:200;t.removeClass("et-show-dropdown"),t.removeClass("et-touch-hover"),setTimeout((function(){t.hasClass("et-show-dropdown")||t.removeClass("et-hover")}),i)}},window.et_pb_apply_sticky_image_effect=function(t){var e=t.closest(".et_pb_row"),n=e.closest(".et_pb_section"),i=t.closest(".et_pb_column"),a="et_pb_section_sticky",o="et_pb_section_sticky_mobile",r=n.children(".et_pb_row").last(),s=e.children(".et_pb_column").last(),c=i.children(".et_pb_module").last();return!e.is(r)||(r.addClass("et-last-child"),!t.is(c)||(n.hasClass(a)||n.addClass(a),i.addClass("et_pb_row_sticky"),void(!n.hasClass(o)&&i.is(s)&&n.addClass(o))))},window.et_pb_menu_inject_inline_centered_logo=function(t){var e=n(t).find("nav > ul > li"),i=Math.round(e.length/2),a=window.et_pb_menu_inject_item(t,i,!0);return a&&n(a).addClass("et_pb_menu__logo-slot"),a},window.et_pb_menu_inject_item=function(t,e,i){i=void 0===i||i,e=Math.max(e,0);var a=n(t).find("nav > ul").first();if(0===a.length)return null;var o=a.find("> li"),r=n("<li></li>");if(0===o.length)a.append(r);else{var s=i?"before":"after",c=i?o.eq(e):o.eq(o.length-1-e);0===c.length&&(s=i?"after":"before",c=i?o.last():o.first()),c[s](r)}return r.get(0)},window.et_pb_reposition_menu_module_dropdowns=et_pb_debounce((function(t){n(t||".et_pb_menu, .et_pb_fullwidth_menu").each((function(){var t=n(this).find(".et_pb_row").first();if(0===t.length)return!0;var e=t.offset().top,i=n(this).attr("class").replace(/^.*?(et_pb(?:_fullwidth)?_menu_\d+[^\s]*).*$/i,"$1"),a=n(this).find(".et_pb_menu__menu ul").first().hasClass("upwards"),o="";n(this).find(".et_pb_menu__menu > nav > ul > li.mega-menu.menu-item-has-children").each((function(){var r=n(this),s=r.attr("class").replace(/^.*?(menu-item-\d+).*$/i,"$1"),c=".".concat(i," li.").concat(s," > .sub-menu");if(a){var l=Math.floor(e+t.outerHeight()-r.offset().top)-1;o+="".concat(c,"{ bottom: ").concat(l.toString(),"px !important; }")}else l=Math.floor(r.offset().top+r.outerHeight()-e)-1,o+="".concat(c,"{ top: ").concat(l.toString(),"px !important; }")}));var r=n("style.et-menu-style-".concat(i)).first();0===r.length&&((r=n("<style></style>")).addClass("et-menu-style"),r.addClass("et-menu-style-".concat(i)),r.appendTo(n("head")));var s=r.html();o!==s&&r.html(o)}))}),200)}(t)}).call(this,n(8))},1464:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.trimTransitionValue=e.isTargetStickyState=e.getStickyStyles=e.getLimitSelector=e.getLimit=e.getClosestStickyModuleOffsetTop=e.filterInvalidModules=void 0;var i=p(n(64)),a=p(n(9)),o=p(n(1)),r=p(n(159)),s=p(n(7)),c=p(n(5)),l=p(n(36)),_=p(n(8)),d=n(353);function p(t){return t&&t.__esModule?t:{default:t}}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.getLimit=function(t,e){if(!(0,s.default)(["body","section","row","column"],e))return!1;var n=b(t,e);if(!n)return!1;var i=n.outerHeight(),a=n.outerWidth();return{limit:e,height:i,width:a,offsets:(0,d.getOffsets)(n,a,i)}};var b=function(t,e){var n=!1;switch(e){case"body":n=".et_builder_inner_content";break;case"section":n=".et_pb_section";break;case"row":n=".et_pb_row";break;case"column":n=".et_pb_column"}return!!n&&t.closest(n)};e.getLimitSelector=b,e.filterInvalidModules=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};return(0,a.default)(t,(function(t,i){(0,_.default)(t.selector).parents(".et_pb_sticky_module").length>0||(!(0,c.default)(e)&&e[i]?n[i]=f(f({},e[i]),t):n[i]=t)})),n},e.getStickyStyles=function(t,e,n){var i=e.clone().addClass("et_pb_sticky et_pb_sticky_style_dom").attr({"data-sticky-style-dom-id":t,style:""}).css({opacity:0,transition:"none",animation:"none"});i.find("img").each((function(t){var n=(0,_.default)(this),i=e.find("img").eq(t),a=(0,o.default)(i,[0,"naturalWidth"],e.find("img").eq(t).outerWidth()),r=(0,o.default)(i,[0,"naturalHeight"],e.find("img").eq(t).outerHeight());n.attr({scrset:"",src:'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(a,'" height="').concat(r,'"><rect width="').concat(a,'" height="').concat(r,'" /></svg>')})})),e.after(i);var a=function(t){var a="margin".concat(t),o=e.hasClass("et_pb_sticky")?n:e;return parseFloat(i.css(a))-parseFloat(o.css(a))},r=e.parent().hasClass("et_pb_equal_columns");r&&(e.hide(),n.hide());var s={height:i.outerHeight(),width:i.outerWidth(),marginRight:a("Right"),marginLeft:a("Left"),padding:i.css("padding")};return r&&(e.show(),n.show()),(0,_.default)('.et_pb_sticky_style_dom[data-sticky-style-dom-id="'.concat(t,'"]')).remove(),s},e.trimTransitionValue=function(t,e){(0,l.default)(t)||(t="");var n=t.split(", "),a=(0,i.default)(n,(function(t){return!(0,s.default)(e,(0,r.default)(t.split(" ")))}));return(0,c.default)(a)?"none":a.join(", ")},e.getClosestStickyModuleOffsetTop=function(t){var e=t.offset();e.right=e.left+t.outerWidth();var n=null,i=0,r=(0,o.default)(window.ET_FE,"stores.sticky.modules",{});if((0,a.default)(r,(function(i){if((0,s.default)(["top_bottom","top"],i.position)&&!t.is((0,o.default)(i,"selector"))&&!((0,o.default)(i,"offsets.right",0)<e.left||(0,o.default)(i,"offsets.left",0)>e.right||(0,o.default)(i,"offsets.top",0)>e.top)){var a=(0,o.default)(i,"bottomLimitSettings.offsets.bottom");a&&a<e.top||(n=i)}})),(0,o.default)(n,"topOffsetModules",!1)){(0,a.default)((0,o.default)(n,"topOffsetModules",[]),(function(t){var e=(0,o.default)(r,[t,"heightSticky"],(0,o.default)(r,[t,"height"],0));i+=e}));var c=(0,o.default)(r,[n.id,"heightSticky"],(0,o.default)(r,[n.id,"height"],0));i+=c}return i},e.isTargetStickyState=function(t){var e=(0,o.default)(window.ET_FE,"stores.sticky.modules",{}),n=!1;return(0,a.default)(e,(function(e){var i=t.is((0,o.default)(e,"selector")),a=e.isSticky,r=e.isPaused;if(i&&a&&!r)return n=!0,!1})),n}},147:function(t,e,n){var i=n(101),a=n(251),o=n(252);function r(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new i;++e<n;)this.add(t[e])}r.prototype.add=r.prototype.push=a,r.prototype.has=o,t.exports=r},148:function(t,e){t.exports=function(t,e){return t.has(e)}},149:function(t,e){t.exports=function(t,e,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(e(t[o],o,t))return o;return-1}},150:function(t,e,n){var i=n(116);t.exports=function(t){return t?(t=i(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},159:function(t,e){t.exports=function(t){return t&&t.length?t[0]:void 0}},162:function(t,e,n){var i=n(203)();t.exports=i},163:function(t,e,n){var i=n(187),a=n(80),o=n(4),r=n(73),s=n(71),c=n(82),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),_=!n&&a(t),d=!n&&!_&&r(t),p=!n&&!_&&!d&&c(t),u=n||_||d||p,f=u?i(t.length,String):[],h=f.length;for(var b in t)!e&&!l.call(t,b)||u&&("length"==b||d&&("offset"==b||"parent"==b)||p&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||s(b,h))||f.push(b);return f}},164:function(t,e){t.exports=function(){return[]}},169:function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},17:function(t,e,n){var i=n(163),a=n(117),o=n(38);t.exports=function(t){return o(t)?i(t):a(t)}},170:function(t,e,n){var i=n(44)(n(23),"Set");t.exports=i},171:function(t,e,n){var i=n(44)(n(23),"WeakMap");t.exports=i},172:function(t,e,n){var i=n(226),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,r=i((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(a,(function(t,n,i,a){e.push(i?a.replace(o,"$1"):n||t)})),e}));t.exports=r},173:function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}},174:function(t,e,n){var i=n(23).Uint8Array;t.exports=i},175:function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}},176:function(t,e,n){var i=n(177),a=n(141),o=n(17);t.exports=function(t){return i(t,o,a)}},177:function(t,e,n){var i=n(119),a=n(4);t.exports=function(t,e,n){var o=e(t);return a(t)?o:i(o,n(t))}},178:function(t,e,n){var i=n(12);t.exports=function(t){return t==t&&!i(t)}},179:function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},186:function(t,e){t.exports=function(){return!1}},187:function(t,e){t.exports=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}},188:function(t,e,n){var i=n(189),a=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(a,""):t}},189:function(t,e){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},190:function(t,e,n){var i=n(45);t.exports=function(t,e){return i(e,(function(e){return t[e]}))}},201:function(t,e,n){var i=n(35),a=n(221),o=n(12),r=n(139),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,_=c.toString,d=l.hasOwnProperty,p=RegExp("^"+_.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||a(t))&&(i(t)?p:s).test(r(t))}},202:function(t,e,n){var i=n(23)["__core-js_shared__"];t.exports=i},203:function(t,e){t.exports=function(t){return function(e,n,i){for(var a=-1,o=Object(e),r=i(e),s=r.length;s--;){var c=r[t?s:++a];if(!1===n(o[c],c,o))break}return e}}},204:function(t,e,n){var i=n(38);t.exports=function(t,e){return function(n,a){if(null==n)return n;if(!i(n))return t(n,a);for(var o=n.length,r=e?o:-1,s=Object(n);(e?r--:++r<o)&&!1!==a(s[r],r,s););return n}}},205:function(t,e,n){var i=n(74),a=n(80),o=n(4),r=n(71),s=n(99),c=n(52);t.exports=function(t,e,n){for(var l=-1,_=(e=i(e,t)).length,d=!1;++l<_;){var p=c(e[l]);if(!(d=null!=t&&n(t,p)))break;t=t[p]}return d||++l!=_?d:!!(_=null==t?0:t.length)&&s(_)&&r(p,_)&&(o(t)||a(t))}},206:function(t,e,n){var i=n(287),a=n(205);t.exports=function(t,e){return null!=t&&a(t,e,i)}},207:function(t,e){t.exports=function(t){return t!=t}},217:function(t,e,n){var i=n(169)(Object.keys,Object);t.exports=i},218:function(t,e,n){var i=n(44)(n(23),"DataView");t.exports=i},219:function(t,e,n){var i=n(59),a=Object.prototype,o=a.hasOwnProperty,r=a.toString,s=i?i.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(t){}var a=r.call(t);return i&&(e?t[s]=n:delete t[s]),a}},220:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},221:function(t,e,n){var i,a=n(202),o=(i=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";t.exports=function(t){return!!o&&o in t}},222:function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},223:function(t,e,n){var i=n(44)(n(23),"Promise");t.exports=i},224:function(t,e,n){var i=n(37),a=n(30);t.exports=function(t){return a(t)&&"[object Arguments]"==i(t)}},225:function(t,e,n){var i=n(37),a=n(99),o=n(30),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&a(t.length)&&!!r[i(t)]}},226:function(t,e,n){var i=n(146);t.exports=function(t){var e=i(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},227:function(t,e,n){var i=n(228),a=n(76),o=n(98);t.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||a),string:new i}}},228:function(t,e,n){var i=n(229),a=n(230),o=n(231),r=n(232),s=n(233);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=r,c.prototype.set=s,t.exports=c},229:function(t,e,n){var i=n(75);t.exports=function(){this.__data__=i?i(null):{},this.size=0}},23:function(t,e,i){var a=i(138),o="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,r=a||o||Function("return this")();t.exports=r},230:function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},231:function(t,e,n){var i=n(75),a=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(i){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(e,t)?e[t]:void 0}},232:function(t,e,n){var i=n(75),a=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return i?void 0!==e[t]:a.call(e,t)}},233:function(t,e,n){var i=n(75);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this}},234:function(t,e){t.exports=function(){this.__data__=[],this.size=0}},235:function(t,e,n){var i=n(77),a=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=i(e,t);return!(n<0||(n==e.length-1?e.pop():a.call(e,n,1),--this.size,0))}},236:function(t,e,n){var i=n(77);t.exports=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}},237:function(t,e,n){var i=n(77);t.exports=function(t){return i(this.__data__,t)>-1}},238:function(t,e,n){var i=n(77);t.exports=function(t,e){var n=this.__data__,a=i(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this}},239:function(t,e,n){var i=n(78);t.exports=function(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}},240:function(t,e){t.exports=function(t){var e=n(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},241:function(t,e,n){var i=n(78);t.exports=function(t){return i(this,t).get(t)}},242:function(t,e,n){var i=n(78);t.exports=function(t){return i(this,t).has(t)}},243:function(t,e,n){var i=n(78);t.exports=function(t,e){var n=i(this,t),a=n.size;return n.set(t,e),this.size+=n.size==a?0:1,this}},244:function(t,e,n){var i=n(108),a=n(118);t.exports=function(t,e,n,o){var r=n.length,s=r,c=!o;if(null==t)return!s;for(t=Object(t);r--;){var l=n[r];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++r<s;){var _=(l=n[r])[0],d=t[_],p=l[1];if(c&&l[2]){if(void 0===d&&!(_ in t))return!1}else{var u=new i;if(o)var f=o(d,p,_,t,e,u);if(!(void 0===f?a(p,d,3,o,u):f))return!1}}return!0}},245:function(t,e,n){var i=n(76);t.exports=function(){this.__data__=new i,this.size=0}},246:function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},247:function(t,e){t.exports=function(t){return this.__data__.get(t)}},248:function(t,e){t.exports=function(t){return this.__data__.has(t)}},249:function(t,e,n){var i=n(76),a=n(98),o=n(101);t.exports=function(t,e){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!a||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(r)}return n.set(t,e),this.size=n.size,this}},250:function(t,e,n){var i=n(108),a=n(140),o=n(253),r=n(254),s=n(70),c=n(4),l=n(73),_=n(82),d="[object Arguments]",p="[object Array]",u="[object Object]",f=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,h,b,v){var m=c(t),g=c(e),w=m?p:s(t),y=g?p:s(e),x=(w=w==d?u:w)==u,C=(y=y==d?u:y)==u,k=w==y;if(k&&l(t)){if(!l(e))return!1;m=!0,x=!1}if(k&&!x)return v||(v=new i),m||_(t)?a(t,e,n,h,b,v):o(t,e,w,n,h,b,v);if(!(1&n)){var j=x&&f.call(t,"__wrapped__"),T=C&&f.call(e,"__wrapped__");if(j||T){var O=j?t.value():t,S=T?e.value():e;return v||(v=new i),b(O,S,n,h,v)}}return!!k&&(v||(v=new i),r(t,e,n,h,b,v))}},251:function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},252:function(t,e){t.exports=function(t){return this.__data__.has(t)}},253:function(t,e,n){var i=n(59),a=n(174),o=n(60),r=n(140),s=n(175),c=n(129),l=i?i.prototype:void 0,_=l?l.valueOf:void 0;t.exports=function(t,e,n,i,l,d,p){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!d(new a(t),new a(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var u=s;case"[object Set]":var f=1&i;if(u||(u=c),t.size!=e.size&&!f)return!1;var h=p.get(t);if(h)return h==e;i|=2,p.set(t,e);var b=r(u(t),u(e),i,l,d,p);return p.delete(t),b;case"[object Symbol]":if(_)return _.call(t)==_.call(e)}return!1}},254:function(t,e,n){var i=n(176),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,r,s){var c=1&n,l=i(t),_=l.length;if(_!=i(e).length&&!c)return!1;for(var d=_;d--;){var p=l[d];if(!(c?p in e:a.call(e,p)))return!1}var u=s.get(t),f=s.get(e);if(u&&f)return u==e&&f==t;var h=!0;s.set(t,e),s.set(e,t);for(var b=c;++d<_;){var v=t[p=l[d]],m=e[p];if(o)var g=c?o(m,v,p,e,t,s):o(v,m,p,t,e,s);if(!(void 0===g?v===m||r(v,m,n,o,s):g)){h=!1;break}b||(b="constructor"==p)}if(h&&!b){var w=t.constructor,y=e.constructor;w==y||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof y&&y instanceof y||(h=!1)}return s.delete(t),s.delete(e),h}},255:function(t,e,n){var i=n(178),a=n(17);t.exports=function(t){for(var e=a(t),n=e.length;n--;){var o=e[n],r=t[o];e[n]=[o,r,i(r)]}return e}},256:function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},257:function(t,e){t.exports=function(t,e,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===e)return i;return-1}},272:function(t,e,n){var i=n(244),a=n(255),o=n(179);t.exports=function(t){var e=a(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||i(n,t,e)}}},273:function(t,e,n){var i=n(118),a=n(1),o=n(206),r=n(111),s=n(178),c=n(179),l=n(52);t.exports=function(t,e){return r(t)&&s(e)?c(l(t),e):function(n){var r=a(n,t);return void 0===r&&r===e?o(n,t):i(e,r,3)}}},274:function(t,e,n){var i=n(256),a=n(288),o=n(111),r=n(52);t.exports=function(t){return o(t)?i(r(t)):a(t)}},287:function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},288:function(t,e,n){var i=n(93);t.exports=function(t){return function(e){return i(e,t)}}},29:function(t,e,n){var i=n(83);t.exports=function(t){return null==t?"":i(t)}},30:function(t,e){t.exports=function(t){return null!=t&&"object"==n(t)}},32:function(t,e,i){var a=i(272),o=i(273),r=i(51),s=i(4),c=i(274);t.exports=function(t){return"function"==typeof t?t:null==t?r:"object"==n(t)?s(t)?o(t[0],t[1]):a(t):c(t)}},327:function(t,e,n){var i=n(87);t.exports=function(t,e){var n=[];return i(t,(function(t,i,a){e(t,i,a)&&n.push(t)})),n}},33:function(t,e,n){var i=n(150);t.exports=function(t){var e=i(t),n=e%1;return e==e?n?e-n:e:0}},35:function(t,e,n){var i=n(37),a=n(12);t.exports=function(t){if(!a(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},353:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setImportantInlineValue=e.registerFrontendComponent=e.maybeIncreaseEmitterMaxListeners=e.maybeDecreaseEmitterMaxListeners=e.isVB=e.isTB=e.isLBP=e.isLBB=e.isFE=e.isExtraTheme=e.isDiviTheme=e.isBuilderType=e.isBuilder=e.isBlockEditor=e.isBFB=e.is=e.getOffsets=e.getBuilderUtilsParams=e.getBuilderType=void 0;var a=c(i(7)),o=c(i(1)),r=c(i(8)),s=i(354);function c(t){return t&&t.__esModule?t:{default:t}}function l(t){return(l="function"==typeof Symbol&&"symbol"==n(Symbol.iterator)?function(t){return n(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":n(t)})(t)}var _=function(){return window.et_builder_utils_params?window.et_builder_utils_params:s.top_window.et_builder_utils_params?s.top_window.et_builder_utils_params:{}};e.getBuilderUtilsParams=_;var d=function(){return(0,o.default)(_(),"builderType","")};e.getBuilderType=d;var p=function(t){return t===d()};e.isBuilderType=p;var u=function(t){return(0,o.default)(_(),"condition.".concat(t))};e.is=u;var f=p("fe");e.isFE=f;var h=p("vb");e.isVB=h;var b=p("bfb");e.isBFB=b;var v=p("tb");e.isTB=v;var m=p("lbb");e.isLBB=m;var g=u("diviTheme");e.isDiviTheme=g;var w=u("extraTheme");e.isExtraTheme=w;var y=p("lbp");e.isLBP=y;var x=0<(0,r.default)(s.top_window.document).find(".edit-post-layout__content").length;e.isBlockEditor=x;var C=(0,a.default)(["vb","bfb","tb","lbb"],d());e.isBuilder=C,e.getOffsets=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=C&&t.hasClass("et_pb_sticky")&&"fixed"!==t.css("position"),a=t.data("et-offsets"),r=t.data("et-offsets-device"),s=(0,o.default)(window.ET_FE,"stores.window.breakpoint","");if(i&&void 0!==a&&r===s)return a;var c=t.offset();if(void 0===c)return{};var l=C?t.children('.et-fb-custom-css-output[data-sticky-has-transform="on"]').length>0:t.hasClass("et_pb_sticky--has-transform"),_=void 0===c.top?0:c.top,d=void 0===c.left?0:c.left;if(l){var p=t.parent().offset(),u={top:c.top-p.top,left:c.left-p.left},f={top:t[0].offsetTop,left:t[0].offsetLeft};_+=f.top-u.top,c.top=_,d+=f.left-u.left,c.left=d}return c.right=d+e,c.bottom=_+n,t.data("et-offsets",c),""!==s&&t.data("et-offsets-device",c),c},e.maybeIncreaseEmitterMaxListeners=function(t,e){var n=t.listenerCount(e),i=t.getMaxListeners();n===i&&t.setMaxListeners(i+1)},e.maybeDecreaseEmitterMaxListeners=function(t,e){var n=t.listenerCount(e);t.getMaxListeners()>10&&t.setMaxListeners(n)},e.registerFrontendComponent=function(t,e,n){void 0===window.ET_FE&&(window.ET_FE={}),"object"!==l(window.ET_FE[t])&&(window.ET_FE[t]={}),window.ET_FE[t][e]=n},e.setImportantInlineValue=function(t,e,n){t.css(e,"");var i=t.attr("style");t.attr("style","".concat(i," ").concat(e,": ").concat(n," !important;"))}},354:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.top_window=e.is_iframe=void 0;var i=window;e.top_window=i;var a,o=!1;e.is_iframe=o;try{a=!!window.top.document&&window.top}catch(t){a=!1}a&&a.__Cypress__?window.parent===a?(e.top_window=i=window,e.is_iframe=o=!1):(e.top_window=i=window.parent,e.is_iframe=o=!0):a&&(e.top_window=i=a,e.is_iframe=o=a!==window.self)},36:function(t,e,n){var i=n(37),a=n(4),o=n(30);t.exports=function(t){return"string"==typeof t||!a(t)&&o(t)&&"[object String]"==i(t)}},37:function(t,e,n){var i=n(59),a=n(219),o=n(220),r=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":r&&r in Object(t)?a(t):o(t)}},38:function(t,e,n){var i=n(35),a=n(99);t.exports=function(t){return null!=t&&a(t.length)&&!i(t)}},4:function(t,e){var n=Array.isArray;t.exports=n},44:function(t,e,n){var i=n(201),a=n(222);t.exports=function(t,e){var n=a(t,e);return i(n)?n:void 0}},45:function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,a=Array(i);++n<i;)a[n]=e(t[n],n,t);return a}},5:function(t,e,n){var i=n(117),a=n(70),o=n(80),r=n(4),s=n(38),c=n(73),l=n(90),_=n(82),d=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(r(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||_(t)||o(t)))return!t.length;var e=a(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(l(t))return!i(t).length;for(var n in t)if(d.call(t,n))return!1;return!0}},51:function(t,e){t.exports=function(t){return t}},52:function(t,e,n){var i=n(53);t.exports=function(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},53:function(t,e,i){var a=i(37),o=i(30);t.exports=function(t){return"symbol"==n(t)||o(t)&&"[object Symbol]"==a(t)}},59:function(t,e,n){var i=n(23).Symbol;t.exports=i},60:function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},64:function(t,e,n){var i=n(120),a=n(327),o=n(32),r=n(4);t.exports=function(t,e){return(r(t)?i:a)(t,o(e,3))}},7:function(t,e,n){var i=n(102),a=n(38),o=n(36),r=n(33),s=n(86),c=Math.max;t.exports=function(t,e,n,l){t=a(t)?t:s(t),n=n&&!l?r(n):0;var _=t.length;return n<0&&(n=c(_+n,0)),o(t)?n<=_&&t.indexOf(e,n)>-1:!!_&&i(t,e,n)>-1}},70:function(t,e,n){var i=n(218),a=n(98),o=n(223),r=n(170),s=n(171),c=n(37),l=n(139),_="[object Map]",d="[object Promise]",p="[object Set]",u="[object WeakMap]",f="[object DataView]",h=l(i),b=l(a),v=l(o),m=l(r),g=l(s),w=c;(i&&w(new i(new ArrayBuffer(1)))!=f||a&&w(new a)!=_||o&&w(o.resolve())!=d||r&&w(new r)!=p||s&&w(new s)!=u)&&(w=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,i=n?l(n):"";if(i)switch(i){case h:return f;case b:return _;case v:return d;case m:return p;case g:return u}return e}),t.exports=w},71:function(t,e){var i=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var a=n(t);return!!(e=null==e?9007199254740991:e)&&("number"==a||"symbol"!=a&&i.test(t))&&t>-1&&t%1==0&&t<e}},73:function(t,e,i){(function(t){var a=i(23),o=i(186),r=e&&!e.nodeType&&e,s=r&&"object"==n(t)&&t&&!t.nodeType&&t,c=s&&s.exports===r?a.Buffer:void 0,l=(c?c.isBuffer:void 0)||o;t.exports=l}).call(this,i(96)(t))},74:function(t,e,n){var i=n(4),a=n(111),o=n(172),r=n(29);t.exports=function(t,e){return i(t)?t:a(t,e)?[t]:o(r(t))}},75:function(t,e,n){var i=n(44)(Object,"create");t.exports=i},76:function(t,e,n){var i=n(234),a=n(235),o=n(236),r=n(237),s=n(238);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=r,c.prototype.set=s,t.exports=c},77:function(t,e,n){var i=n(60);t.exports=function(t,e){for(var n=t.length;n--;)if(i(t[n][0],e))return n;return-1}},78:function(t,e,n){var i=n(240);t.exports=function(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}},8:function(t,e){t.exports=window.jQuery},80:function(t,e,n){var i=n(224),a=n(30),o=Object.prototype,r=o.hasOwnProperty,s=o.propertyIsEnumerable,c=i(function(){return arguments}())?i:function(t){return a(t)&&r.call(t,"callee")&&!s.call(t,"callee")};t.exports=c},81:function(t,e){t.exports=function(t){return function(e){return t(e)}}},82:function(t,e,n){var i=n(225),a=n(81),o=n(107),r=o&&o.isTypedArray,s=r?a(r):i;t.exports=s},83:function(t,e,n){var i=n(59),a=n(45),o=n(4),r=n(53),s=i?i.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return a(e,t)+"";if(r(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},86:function(t,e,n){var i=n(190),a=n(17);t.exports=function(t){return null==t?[]:i(t,a(t))}},87:function(t,e,n){var i=n(126),a=n(204)(i);t.exports=a},89:function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==("undefined"==typeof window?"undefined":n(window))&&(i=window)}t.exports=i},9:function(t,e,n){var i=n(100),a=n(87),o=n(110),r=n(4);t.exports=function(t,e){return(r(t)?i:a)(t,o(e))}},90:function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},93:function(t,e,n){var i=n(74),a=n(52);t.exports=function(t,e){for(var n=0,o=(e=i(e,t)).length;null!=t&&n<o;)t=t[a(e[n++])];return n&&n==o?t:void 0}},96:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},98:function(t,e,n){var i=n(44)(n(23),"Map");t.exports=i},99:function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}}))},function(t,e,n){function i(t){return(i="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){for(var n in e)t[n]=e[n]}(window,function(t){var e={};function n(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==i(t)&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(a,o,function(e){return t[e]}.bind(null,o));return a},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=1465)}({1:function(t,e,n){var i=n(93);t.exports=function(t,e,n){var a=null==t?void 0:i(t,e);return void 0===a?n:a}},100:function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}},101:function(t,e,n){var i=n(227),a=n(239),o=n(241),r=n(242),s=n(243);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=r,c.prototype.set=s,t.exports=c},102:function(t,e,n){var i=n(149),a=n(207),o=n(257);t.exports=function(t,e,n){return e==e?o(t,e,n):i(t,a,n)}},107:function(t,e,n){(function(t){var a=n(138),o=e&&!e.nodeType&&e,r=o&&"object"==i(t)&&t&&!t.nodeType&&t,s=r&&r.exports===o&&a.process,c=function(){try{return r&&r.require&&r.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=c}).call(this,n(96)(t))},108:function(t,e,n){var i=n(76),a=n(245),o=n(246),r=n(247),s=n(248),c=n(249);function l(t){var e=this.__data__=new i(t);this.size=e.size}l.prototype.clear=a,l.prototype.delete=o,l.prototype.get=r,l.prototype.has=s,l.prototype.set=c,t.exports=l},11:function(t,e){t.exports=function(t){return void 0===t}},110:function(t,e,n){var i=n(51);t.exports=function(t){return"function"==typeof t?t:i}},111:function(t,e,n){var a=n(4),o=n(53),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(a(t))return!1;var n=i(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||s.test(t)||!r.test(t)||null!=e&&t in Object(e)}},112:function(t,e){t.exports=function(t,e,n){var i=-1,a=t.length;e<0&&(e=-e>a?0:a+e),(n=n>a?a:n)<0&&(n+=a),a=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+e];return o}},116:function(t,e,n){var i=n(188),a=n(12),o=n(53),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(a(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=a(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=s.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):r.test(t)?NaN:+t}},117:function(t,e,n){var i=n(90),a=n(217),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return a(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},118:function(t,e,n){var i=n(250),a=n(30);t.exports=function t(e,n,o,r,s){return e===n||(null==e||null==n||!a(e)&&!a(n)?e!=e&&n!=n:i(e,n,o,r,t,s))}},119:function(t,e){t.exports=function(t,e){for(var n=-1,i=e.length,a=t.length;++n<i;)t[a+n]=e[n];return t}},12:function(t,e){t.exports=function(t){var e=i(t);return null!=t&&("object"==e||"function"==e)}},120:function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,a=0,o=[];++n<i;){var r=t[n];e(r,n,t)&&(o[a++]=r)}return o}},121:function(t,e,n){var i=n(209);t.exports=function(t,e,n){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},126:function(t,e,n){var i=n(162),a=n(17);t.exports=function(t,e){return t&&i(t,e,a)}},129:function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},138:function(t,e,n){(function(e){var n="object"==i(e)&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(89))},139:function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},140:function(t,e,n){var i=n(147),a=n(173),o=n(148);t.exports=function(t,e,n,r,s,c){var l=1&n,_=t.length,d=e.length;if(_!=d&&!(l&&d>_))return!1;var p=c.get(t),u=c.get(e);if(p&&u)return p==e&&u==t;var f=-1,h=!0,b=2&n?new i:void 0;for(c.set(t,e),c.set(e,t);++f<_;){var v=t[f],m=e[f];if(r)var g=l?r(m,v,f,e,t,c):r(v,m,f,t,e,c);if(void 0!==g){if(g)continue;h=!1;break}if(b){if(!a(e,(function(t,e){if(!o(b,e)&&(v===t||s(v,t,n,r,c)))return b.push(e)}))){h=!1;break}}else if(v!==m&&!s(v,m,n,r,c)){h=!1;break}}return c.delete(t),c.delete(e),h}},141:function(t,e,n){var i=n(120),a=n(164),o=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,s=r?function(t){return null==t?[]:(t=Object(t),i(r(t),(function(e){return o.call(t,e)})))}:a;t.exports=s},146:function(t,e,n){var i=n(101);function a(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function n(){var i=arguments,a=e?e.apply(this,i):i[0],o=n.cache;if(o.has(a))return o.get(a);var r=t.apply(this,i);return n.cache=o.set(a,r)||o,r};return n.cache=new(a.Cache||i),n}a.Cache=i,t.exports=a},1465:function(t,e,n){"use strict";(function(t){var e=p(n(7)),a=p(n(11)),o=p(n(4)),r=p(n(1)),s=p(n(54)),c=p(n(9)),l=p(n(334)),_=n(328),d=n(353);function p(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==i(Symbol.iterator)?function(t){return i(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":i(t)})(t)}n(1466),et_pb_custom.page_id,function(n){var i=void 0!==window.ETBlockLayoutModulesScript&&n("body").hasClass("et-block-layout-preview"),p=d.isBuilder||i?ET_Builder.Frames.top:window,f=n(window),h=n(i?p:window),b=d.isBuilder?p.jQuery(p):n(window),v=n("body").hasClass("et-tb"),m=n("body").hasClass("et-bfb"),g=d.isBuilder&&!m,w=function(){return!i&&g&&(n("html").is(".et-fb-preview--wireframe")||n("html").is(".et-fb-preview--desktop"))},y=function(){return d.isBuilder&&n("html").is(".et-fb-preview--zoom")},x=function(t){return t.closest("#et-fb-app").length>0};window.et_load_event_fired=!1,window.et_is_transparent_nav=n("body").hasClass("et_transparent_nav"),window.et_is_vertical_nav=n("body").hasClass("et_vertical_nav"),window.et_is_fixed_nav=n("body").hasClass("et_fixed_nav"),window.et_is_minified_js=n("body").hasClass("et_minified_js"),window.et_is_minified_css=n("body").hasClass("et_minified_css"),window.et_force_width_container_change=!1,t.fn.reverse=[].reverse,t.fn.closest_descendent=function(t){for(var e,n=this.children();n.length&&!(e=n.filter(t)).length;)n=n.children();return e},window.et_pb_init_woo_star_rating=function(t){var e=t.closest("div").find("p.stars");e.length>0&&e.remove(),t.hide().before('<p class="stars">\t\t\t\t<span>\t\t\t\t\t<a class="star-1" href="#">1</a>\t\t\t\t\t<a class="star-2" href="#">2</a>\t\t\t\t\t<a class="star-3" href="#">3</a>\t\t\t\t\t<a class="star-4" href="#">4</a>\t\t\t\t\t<a class="star-5" href="#">5</a>\t\t\t\t</span>\t\t\t</p>')},window.et_pb_wrap_woo_attribute_fields_in_span=function(){var t=n("form.variations_form");n.each(t,(function(t,e){var i=n(e),a=i.find(".variations select"),o=i.find(".variations select").parent("td.value"),r=i.find(".reset_variations");0===o.length||o.attr("data-is-span-added")||(o.attr("data-is-span-added","1"),n(a).wrap("<span></span>"),g&&r.length>0&&n(r).remove())}))};var C=!1;function k(){return n(".et-l:not(.et-l--footer) .et_pb_section:visible").first()}function j(){var t=n(".et_pb_blog_grid");if(0!==t.length)var e=t.find(".et_pb_salvattore_content"),i=setInterval((function(){e.each((function(){var t=n(this),e=t[0],a=getComputedStyle(e,":before").content;"none"!==a&&clearInterval(i),t.children(".column").length||"none"!==a&&(t.children("div").length&&!t.children("div")[0].classList.length?salvattore.recreateColumns(e):salvattore.registerGrid(e))}))}),100)}if(window.et_calculate_fullscreen_section_size=function(){n("section.et_pb_fullscreen").each((function(){et_calc_fullscreen_section.bind(n(this))()})),d.isBuilder||(clearTimeout(C),C=setTimeout((function(){h.off("resize",et_calculate_fullscreen_section_size),h.off("et-pb-header-height-calculated",et_calculate_fullscreen_section_size),h.trigger("resize"),h.on("resize",et_calculate_fullscreen_section_size),h.on("et-pb-header-height-calculated",et_calculate_fullscreen_section_size)})))},window.et_pb_init_modules=function(){n.et_pb_simple_slider=function(t,e){var i,a,o,r=n.extend({slide:".et-slide",arrows:".et-pb-slider-arrows",prev_arrow:".et-pb-arrow-prev",next_arrow:".et-pb-arrow-next",controls:".et-pb-controllers a",carousel_controls:".et_pb_carousel_item",control_active_class:"et-pb-active-control",previous_text:et_pb_custom.previous,next_text:et_pb_custom.next,fade_speed:500,use_arrows:!0,use_controls:!0,manual_arrows:"",append_controls_to:"",controls_below:!1,controls_class:"et-pb-controllers",slideshow:!1,slideshow_speed:7e3,show_progress_bar:!1,tabs_animation:!1,use_carousel:!1,active_slide:0},e),s=n(t),c=s.closest_descendent(r.slide),l=c.length,_=r.fade_speed,p=r.active_slide,u="",h="",b=(s.find(".et_pb_container").width(),s.hasClass("et_pb_post_slider")),v=!1;if(s.et_animation_running=!1,n.data(t,"et_pb_simple_slider",s),c.eq(0).addClass("et-pb-active-slide"),s.attr("data-active-slide",c.data("slide-id")),r.tabs_animation||s.hasClass("et_pb_bg_layout_dark")||s.hasClass("et_pb_bg_layout_light")||s.addClass(C(c.eq(0))),r.use_arrows&&l>1&&(""==r.manual_arrows?r.hasOwnProperty("slide")&&".et_pb_gallery_item"===r.slide?s.append("".concat('<div class="et-pb-slider-arrows"><a class="et-pb-arrow-prev" href="#" style="color:inherit"><span>').concat(r.previous_text,"</span>")+'</a><a class="et-pb-arrow-next" href="#" style="color:inherit">'+"<span>".concat(r.next_text,"</span>")+"</a></div>"):s.append("".concat('<div class="et-pb-slider-arrows"><a class="et-pb-arrow-prev" href="#" ><span>').concat(r.previous_text,"</span>")+'</a><a class="et-pb-arrow-next" href="#">'+"<span>".concat(r.next_text,"</span>")+"</a></div>"):s.append(r.manual_arrows),s.find(r.arrows),s.find(r.prev_arrow),s.find(r.next_arrow),s.on("click.et_pb_simple_slider",r.next_arrow,(function(){return s.et_animation_running||s.et_slider_move_to("next"),!1})),s.on("click.et_pb_simple_slider",r.prev_arrow,(function(){return s.et_animation_running||s.et_slider_move_to("previous"),!1})),s.on("swipeleft.et_pb_simple_slider",r.slide,(function(t){n(t.target).closest(".et-fb-popover-tinymce").length||n(t.target).closest(".et-fb-editable-element").length||s.et_slider_move_to("next")})),s.on("swiperight.et_pb_simple_slider",r.slide,(function(t){n(t.target).closest(".et-fb-popover-tinymce").length||n(t.target).closest(".et-fb-editable-element").length||s.et_slider_move_to("previous")}))),r.use_controls&&l>1){for(var m=1;m<=l;m++)u+='<a href="#"'.concat(1==m?' class="'.concat(r.control_active_class,'"'):"",">").concat(m,"</a>");s.find("video").length>0&&(r.controls_class+=" et-pb-controllers-has-video-tag"),u='<div class="'.concat(r.controls_class,'">').concat(u,"</div>"),""==r.append_controls_to?s.append(u):n(r.append_controls_to).append(u),(i=r.controls_below?s.parent().find(r.controls):s.find(r.controls)).on("click.et_pb_simple_slider",(function(){return s.et_animation_running||s.et_slider_move_to(n(this).index()),!1}))}if(r.use_carousel&&l>1){for(m=1;m<=l;m++){var g=m-1,w=void 0!==c.eq(g).data("image")?"url(".concat(c.eq(g).data("image"),")"):"none";h+='<div class="et_pb_carousel_item '.concat(1===m?r.control_active_class:"",'" data-slide-id="').concat(g,'">')+'<div class="et_pb_video_overlay" href="#" style="background-image: '.concat(w,';">')+'<div class="et_pb_video_overlay_hover"><a href="#" class="et_pb_video_play"></a></div></div></div>'}h="".concat('<div class="et_pb_carousel"><div class="et_pb_carousel_items">').concat(h,"</div>")+"</div>",s.after(h),(a=s.siblings(".et_pb_carousel").find(r.carousel_controls)).on("click.et_pb_simple_slider",(function(){if(s.et_animation_running)return!1;var t=n(this);return s.et_slider_move_to(t.data("slide-id")),!1}))}function y(){v||(s.hasClass("et_pb_pause_slider")?setTimeout((function(){y()}),2e3):r.slideshow&&l>1&&!s.hasClass("et_slider_hovered")&&(o=setTimeout((function(){s.et_slider_move_to("next")}),r.slideshow_speed)))}function x(){var t=s,e=t.find(".et-pb-active-slide .et_pb_slide_image"),n=e.find("img"),i=t.find(".et-pb-active-slide .et_pb_slide_video"),a=e.closest(".et_pb_slide"),o=a.closest(".et_pb_slider"),r=parseFloat(o.innerHeight()),c=parseFloat(.8*r),l=parseFloat(e.height()),_=parseFloat(i.height()),d=k().children(".et_pb_module:visible").first(),p=d.find(".et_pb_slide .et_pb_container"),u=k().is(".et_pb_fullwidth_section"),f=parseFloat(p.height()),h=parseFloat(.8*f);isNaN(c)||(e.find("img").css("maxHeight","".concat(c,"px")),l=parseInt(e.height()),window.et_is_transparent_nav&&d.is(".et_pb_slider")&&u&&(e.find("img").css("maxHeight","".concat(h,"px")),l=parseInt(e.height()))),!isNaN(l)&&a.hasClass("et_pb_media_alignment_center")&&(e.css("marginTop","-".concat(l/2,"px")),n.data("hasLoadEvent")||(n.data("hasLoadEvent",!0),n.on("load",(function(){l=parseFloat(e.height()),e.css("marginTop","-".concat(l/2,"px"))})))),isNaN(_)||i.css("marginTop","-".concat(_/2,"px"))}function C(t){return t.hasClass("et_pb_bg_layout_light")?"et_pb_bg_layout_light":"et_pb_bg_layout_dark"}r.slideshow&&l>1&&s.on("mouseenter.et_pb_simple_slider",(function(){s.hasClass("et_slider_auto_ignore_hover")||(s.addClass("et_slider_hovered"),void 0!==o&&clearTimeout(o))})).on("mouseleave.et_pb_simple_slider",(function(){s.hasClass("et_slider_auto_ignore_hover")||(s.removeClass("et_slider_hovered"),y())})),y(),s.et_slider_destroy=function(){void 0!==o&&clearTimeout(o),v=!0,s.off(".et_pb_simple_slider"),s.find(".et_pb_slide").css({"z-index":"",display:"",opacity:""}),s.find(".et-pb-active-slide").removeClass("et-pb-active-slide"),s.find(".et-pb-moved-slide").removeClass("et-pb-moved-slide"),s.find(".et-pb-slider-arrows, .et-pb-controllers").remove(),s.siblings(".et_pb_carousel, .et-pb-controllers").remove(),s.removeData("et_pb_simple_slider")},s.et_fix_slider_content_images=x,window.et_load_event_fired?"function"==typeof et_fix_slider_height&&et_fix_slider_height(s):f.on("load",(function(){"function"==typeof et_fix_slider_height&&et_fix_slider_height(s)})),f.on("resize.et_simple_slider",(function(){et_fix_slider_height(s)})),s.et_slider_move_to=function(t){var e=(c=s.closest_descendent(r.slide)).eq(p);if(s.et_animation_running=!0,s.removeClass("et_slide_transition_to_next et_slide_transition_to_previous").addClass("et_slide_transition_to_".concat(t)),s.find(".et-pb-moved-slide").removeClass("et-pb-moved-slide"),"next"===t||"previous"===t)p="next"===t?p+1<l?p+1:0:p-1>=0?p-1:l-1;else{if(p===t)return s.find(".et-pb-inactive-slide").css({"z-index":"",display:"",opacity:0}),e.css({display:"block",opacity:1}).data("slide-status","active"),void(s.et_animation_running=!1);p=t}s.attr("data-active-slide",c.eq(p).data("slide-id")),void 0!==o&&clearTimeout(o);var u=c.eq(p);s.trigger("slide",{current:e,next:u}),void 0!==e.find("video")[0]&&void 0!==e.find("video")[0].player&&e.find("video")[0].player.pause(),void 0!==u.find("video")[0]&&void 0!==u.find("video")[0].player&&u.find("video")[0].player.play();var f,h,v,m=e.find(".et_pb_video_box iframe");if(m.length){var g=m.attr("src");g=(g=(g=g.replace(/\?autoplay=1$/,"")).replace(/\?autoplay=1&(amp;)?/,"?")).replace(/&(amp;)?autoplay=1/,""),setTimeout((function(){m.attr({src:g})}),r.fade_speed),m.parents(".et_pb_video_box").next(".et_pb_video_overlay").css({display:"block",opacity:1})}s.trigger("simple_slider_before_move_to",{direction:t,next_slide:u}),c.each((function(){n(this).css("zIndex",1)})),e.css("zIndex",2).removeClass("et-pb-active-slide").addClass("et-pb-moved-slide").data("slide-status","inactive"),u.css({display:"block",opacity:0}).addClass("et-pb-active-slide").data("slide-status","active"),h=(f=s).find(".et-pb-active-slide .et_pb_slide_video"),v=parseFloat(h.height()),f.find(".et_pb_slide_video .wp-video-shortcode").css({width:"",height:""}),isNaN(v)||h.css("marginTop","-".concat(v/2,"px")),x(),b&&setTimeout((function(){var t=n(".et_pb_circle_counter"),e=n(".et_pb_number_counter");window.et_fix_testimonial_inner_width(),t.length&&window.et_pb_reinit_circle_counters(t),e.length&&window.et_pb_reinit_number_counters(e),window.et_reinit_waypoint_modules()}),1e3),r.use_controls&&i.removeClass(r.control_active_class).eq(p).addClass(r.control_active_class),r.use_carousel&&a&&a.removeClass(r.control_active_class).eq(p).addClass(r.control_active_class),r.tabs_animation?(u.css({display:"none",opacity:0}),e.addClass("et_slide_transition").css({display:"block",opacity:1}).animate({opacity:0},_,(function(){n(this).css("display","none").removeClass("et_slide_transition"),u.css({display:"block",opacity:0}).animate({opacity:1},_,(function(){s.et_animation_running=!1,s.trigger("simple_slider_after_move_to",{next_slide:u}),n(window).trigger("resize")}))}))):(u.stop(!0,!0).animate({opacity:1},_),e.stop(!0,!0).addClass("et_slide_transition").css({display:"list-item",opacity:1}).animate({opacity:0},_,(function(){var t,i,a,o=C(e),r=C(u);d.isBuilder?n(this).removeClass("et_slide_transition"):n(this).css("display","none").removeClass("et_slide_transition"),(t=e).has("iframe").length?(a=(i=t.find("iframe")).attr("src"),i.attr("src",""),i.attr("src",a)):t.has("video").length&&(t.find(".et_pb_section_video_bg").length||(i=t.find("video"))[0].pause()),s.removeClass(o).addClass(r),s.et_animation_running=!1,s.hasClass("et_pb_gallery")&&"none"===u.css("maxHeight")&&u.css("maxHeight",u.outerHeight()),s.trigger("simple_slider_after_move_to",{next_slide:u})}))),u.find(".et_parallax_bg").length&&window.et_pb_parallax_init(u.find(".et_parallax_bg")),y()}},n.fn.et_pb_simple_slider=function(t){return this.each((function(){return n.data(this,"et_pb_simple_slider")||new n.et_pb_simple_slider(this,t)}))};var e="||",l="|";function C(t){var i=t.split(l)[0];if(n("#".concat(i)).length){if(window.location.hash){var a=window.location.hash.substring(1),o=[];if(-1!==a.indexOf(e,0)){for(var r=a.split(e),s=!1,c=0;c<r.length;c++)r[c].split(l)[0]===i?(o.push(t),s=!0):o.push(r[c]);s||o.push(t)}else a.split(l)[0]!==i&&o.push(a),o.push(t);a=o.join(e)}else a=t;var _=document.body.scrollTop;window.location.hash=a,document.body.scrollTop=_}}function T(){var e;void 0!==t.fn.mediaelementplayer&&(e=".et_audio_container","string"==typeof e&&(e=n(e)),e.not("#et-fb-app *")).each((function(){var e=t(this);e.find(".mejs-container").first().length>0||e.find("audio").mediaelementplayer(window._wpmejsSettings)}))}n.et_pb_simple_carousel=function(t,e){var i=n.extend({slide_duration:500},e),a=n(t),o=a.find(".et_pb_carousel_items"),r=o.find(".et_pb_carousel_item");function s(t){r.width();var e=r.height();t.parent().hasClass("et_pb_with_border")&&(e=r.outerHeight()),o.css("height","".concat(e,"px"))}function c(t){var e=3,i=t.parents('.et_pb_column:not(".et_pb_specialty_column")');if(i.hasClass("et_pb_column_4_4")||i.hasClass("et_pb_column_3_4")||i.hasClass("et_pb_column_2_3")?f.width()>=768&&(e=4):i.hasClass("et_pb_column_1_4")?f.width()<=480&&f.width()>=980&&(e=2):i.hasClass("et_pb_column_3_5")?e=4:(i.hasClass("et_pb_column_1_5")||i.hasClass("et_pb_column_1_6"))&&(e=2),e!==o.data("portfolio-columns")&&!t.data("columns_setting_up")){t.data("columns_setting_up",!0),o.removeClass("columns-".concat(o.data("portfolio-columns"))),o.addClass("columns-".concat(e)),o.data("portfolio-columns",e),o.find(".et-carousel-group").length&&(r.appendTo(o),o.find(".et-carousel-group").remove());var a=o.data("items"),s=n('<div class="et-carousel-group active">').appendTo(o);r.data("position",""),a.length<=e?o.find(".et-pb-slider-arrows").hide():o.find(".et-pb-slider-arrows").show();for(var c=1,l=0;l<a.length;l++,c++)l<e?(n(a[l]).show(),n(a[l]).appendTo(s),n(a[l]).data("position",c),n(a[l]).addClass("position_".concat(c))):(c=n(a[l]).data("position"),n(a[l]).removeClass("position_".concat(c)),n(a[l]).data("position",""),n(a[l]).hide());t.data("columns_setting_up",!1)}}a.et_animation_running=!1,a.addClass("container-width-change-notify").on("containerWidthChanged",(function(t){c(a),s(a)})),o.data("items",r.toArray()),a.data("columns_setting_up",!1),o.prepend("".concat('<div class="et-pb-slider-arrows"><a class="et-pb-slider-arrow et-pb-arrow-prev" href="#"><span>').concat(et_pb_custom.previous,"</span>")+'</a><a class="et-pb-slider-arrow et-pb-arrow-next" href="#">'+"<span>".concat(et_pb_custom.next,"</span>")+"</a></div>"),c(a),s(a),a.find(".et-pb-arrow-next"),a.find(".et-pb-arrow-prev"),a.on("click",".et-pb-arrow-next",(function(){return a.et_animation_running||a.et_carousel_move_to("next"),!1})),a.on("click",".et-pb-arrow-prev",(function(){return a.et_animation_running||a.et_carousel_move_to("previous"),!1})),a.on("swipeleft",(function(){a.et_carousel_move_to("next")})),a.on("swiperight",(function(){a.et_carousel_move_to("previous")})),a.et_carousel_move_to=function(t){var e=o.find(".et-carousel-group.active"),s=o.data("items"),c=o.data("portfolio-columns");a.et_animation_running=!0;var l=0;e.children().each((function(){n(this).css({position:"absolute",left:"".concat(l,"px")}),l+=n(this).outerWidth(!0)})),n("body").addClass("et-pb-is-sliding-carousel");var _=e.find(".et_pb_carousel_item").length,d=0;if("next"==t){var p,u=1,f=1,h=C=(x=s.indexOf(e.children().first()[0]))+c,b=h+c;(p=n('<div class="et-carousel-group next" style="display: none;left: 100%;position: absolute;top: 0;">').insertAfter(e)).css({width:"".concat(e.innerWidth(),"px")}).show();for(var v=0,m=0;m>=x&&m<C&&(n(s[v]).addClass("changing_position current_position current_position_".concat(u)),n(s[v]).data("current_position",u),u++),m>=h&&m<b&&(n(s[v]).data("next_position",f),n(s[v]).addClass("changing_position next_position next_position_".concat(f)),n(s[v]).hasClass("current_position")?(n(s[v]).clone(!0).appendTo(e).hide().addClass("delayed_container_append_dup").attr("id","".concat(n(s[v]).attr("id"),"-dup")),n(s[v]).addClass("delayed_container_append")):n(s[v]).addClass("container_append"),f++),!(f>c);v++,m++)v>=s.length-1&&(v=-1);var g=o.find(".container_append, .delayed_container_append_dup").sort((function(t,e){var i=parseInt(n(t).data("next_position")),a=parseInt(n(e).data("next_position"));return i<a?-1:i>a?1:0}));n(g).show().appendTo(p),l=0,p.children().each((function(){n(this).css({position:"absolute",left:"".concat(l,"px")}),l+=n(this).outerWidth(!0)})),e.animate({left:"-100%"},{duration:i.slide_duration,progress:function(t,n){n>d/_&&(d++,e.find(".et_pb_carousel_item:nth-child(".concat(d,")")).addClass("item-fade-out"),p.find(".et_pb_carousel_item:nth-child(".concat(d,")")).addClass("item-fade-in"))},complete:function(){o.find(".delayed_container_append").each((function(){l=n("#".concat(n(this).attr("id"),"-dup")).css("left"),n(this).css({position:"absolute",left:l}),n(this).appendTo(p)})),e.removeClass("active"),e.children().each((function(){var t=n(this).data("position");u=n(this).data("current_position"),n(this).removeClass("position_".concat(t," ")+"changing_position current_position current_position_".concat(u)),n(this).data("position",""),n(this).data("current_position",""),n(this).hide(),n(this).css({position:"",left:""}),n(this).appendTo(o)})),o.find(".item-fade-out").removeClass("item-fade-out"),p.find(".item-fade-in").removeClass("item-fade-in"),n("body").removeClass("et-pb-is-sliding-carousel"),e.remove()}});var w=e.width()+parseInt(r.first().css("marginRight").slice(0,-2));p.addClass("active").css({position:"absolute",top:"0px",left:"".concat(w,"px")}),p.animate({left:"0%"},{duration:i.slide_duration,complete:function(){p.removeClass("next").addClass("active").css({position:"",width:"",top:"",left:""}),p.find(".changing_position").each((function(t){var e=n(this).data("position");u=n(this).data("current_position"),f=n(this).data("next_position"),n(this).removeClass("container_append delayed_container_append position_".concat(e," ")+"changing_position current_position current_position_".concat(u," next_position next_position_").concat(f)),n(this).data("current_position",""),n(this).data("next_position",""),n(this).data("position",t+1)})),p.children().css({position:"",left:""}),p.find(".delayed_container_append_dup").remove(),a.et_animation_running=!1}})}else if("previous"==t){u=c;var y,x,C,k=c,j=c-1,T=(C=(x=s.indexOf(e.children().last()[0]))-j)-1,O=T-j;(y=n('<div class="et-carousel-group prev" style="display: none;left: 100%;position: absolute;top: 0;">').insertBefore(e)).css({left:"-".concat(e.innerWidth(),"px"),width:"".concat(e.innerWidth(),"px")}).show();for(var S=s.length-1,P=s.length-1;P<=x&&P>=C&&(n(s[S]).addClass("changing_position current_position current_position_".concat(u)),n(s[S]).data("current_position",u),u--),P<=T&&P>=O&&(n(s[S]).data("prev_position",k),n(s[S]).addClass("changing_position prev_position prev_position_".concat(k)),n(s[S]).hasClass("current_position")?(n(s[S]).clone(!0).appendTo(e).addClass("delayed_container_append_dup").attr("id","".concat(n(s[S]).attr("id"),"-dup")),n(s[S]).addClass("delayed_container_append")):n(s[S]).addClass("container_append"),k--),!(k<=0);S--,P--)0==S&&(S=s.length);g=o.find(".container_append, .delayed_container_append_dup").sort((function(t,e){var i=parseInt(n(t).data("prev_position")),a=parseInt(n(e).data("prev_position"));return i<a?-1:i>a?1:0})),n(g).show().appendTo(y),l=0,y.children().each((function(){n(this).css({position:"absolute",left:"".concat(l,"px")}),l+=n(this).outerWidth(!0)})),e.animate({left:"100%"},{duration:i.slide_duration,progress:function(t,n){if(n>d/_){var i=_-d;e.find(".et_pb_carousel_item:nth-child(".concat(i,")")).addClass("item-fade-out"),y.find(".et_pb_carousel_item:nth-child(".concat(i,")")).addClass("item-fade-in"),d++}},complete:function(){o.find(".delayed_container_append").reverse().each((function(){l=n("#".concat(n(this).attr("id"),"-dup")).css("left"),n(this).css({position:"absolute",left:l}),n(this).prependTo(y)})),e.removeClass("active"),e.children().each((function(){var t=n(this).data("position");u=n(this).data("current_position"),n(this).removeClass("position_".concat(t," ")+"changing_position current_position current_position_".concat(u)),n(this).data("position",""),n(this).data("current_position",""),n(this).hide(),n(this).css({position:"",left:""}),n(this).appendTo(o)})),o.find(".item-fade-out").removeClass("item-fade-out"),y.find(".item-fade-in").removeClass("item-fade-in"),n("body").removeClass("et-pb-is-sliding-carousel"),e.remove()}});var z=-1*e.width()-parseInt(r.first().css("marginRight").slice(0,-2));y.addClass("active").css({position:"absolute",top:"0px",left:"".concat(z,"px")}),y.animate({left:"0%"},{duration:i.slide_duration,complete:function(){y.removeClass("prev").addClass("active").css({position:"",width:"",top:"",left:""}),y.find(".delayed_container_append_dup").remove(),y.find(".changing_position").each((function(t){var e=n(this).data("position");u=n(this).data("current_position"),k=n(this).data("prev_position"),n(this).removeClass("container_append delayed_container_append position_".concat(e," ")+"changing_position current_position current_position_".concat(u," prev_position prev_position_").concat(k)),n(this).data("current_position",""),n(this).data("prev_position",""),e=t+1,n(this).data("position",e),n(this).addClass("position_".concat(e))})),y.children().css({position:"",left:""}),a.et_animation_running=!1}})}}},n.fn.et_pb_simple_carousel=function(t){return this.each((function(){return n.data(this,"et_pb_simple_carousel")||new n.et_pb_simple_carousel(this,t)}))},n((function(){n(window).trigger("et_pb_before_init_modules");var k=n(".et_pb_slider"),j=n(".et_pb_tabs"),S=n(".et_pb_section_video_bg"),P=n(".et_pb_newsletter_button"),z=n(".et_pb_newsletter_field .input"),I=n(".et_pb_filterable_portfolio"),A=n(".et_pb_fullwidth_portfolio"),E=n(".et_pb_gallery"),B=n(".et_pb_countdown_timer"),M=n(".et_post_gallery"),H=n(".et_pb_lightbox_image"),F=n(".et_pb_map_container"),L=n(".et_pb_circle_counter"),D=n(".et_pb_number_counter"),W=n(".et_parallax_bg"),q=(n(".et_pb_shop"),n(".single.et_pb_pagebuilder_layout.et_full_width_page"),n("[data-background-layout][data-background-layout-hover]")),N=null!==navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/)||"standalone"in window.navigator&&!window.navigator.standalone,$=navigator.userAgent.match(/iPad/),V=null!==navigator.userAgent.match(/MSIE 9.0/),R=n(".et_pb_row"),Q=window.et_pb_custom&&!window.et_pb_custom.is_builder_plugin_used?n("body"):R,U=Q.width(),Z=(n("body").hasClass("et_vertical_fixed"),n("body").hasClass("rtl"),n("body").hasClass("et_hide_nav")),Y=(n("body").hasClass("et_header_style_left"),n("#top-header")),G=(n("#main-header"),n("#page-container"),n(".et_transparent_nav"),n("body.et_pb_pagebuilder_layout .et_pb_section:first-child"),n("#main-content .container:first-child")),X=(G.find(".et_post_meta_wrapper").first().find("h1"),G.find(".entry-content").first(),n("body.single-post"),n(".et_header_style_split"),n("#et-top-navigation"),n("#logo"),n(".et_pb_image_sticky")),J=n(".et_pb_counter_amount"),K=n(".et_pb_carousel"),tt=window.et_pb_custom&&window.et_pb_custom.is_divi_theme_used?n("ul.nav"):n(".et_pb_fullwidth_menu ul.nav"),et=window.et_pb_custom&&1e3*window.et_pb_custom.ab_bounce_rate,nt={},it="",at=(0,r.default)(window,"etCore.api.spam.recaptcha");n.each(et_pb_custom.ab_tests,(function(t,e){nt[e.post_id]={read_page:!1,read_goal:!1,view_goal:!1,click_goal:!1,con_goal:!1,con_short:!1}}));var ot=n(".et_pb_grid_item").parent().get(),rt=n(".et_pb_gutter_hover");window.et_pb_slider_init=function(t){var e={fade_speed:700,slide:t.hasClass("et_pb_gallery")?".et_pb_gallery_item":".et_pb_slide"};if(t.hasClass("et_pb_slider_no_arrows")&&(e.use_arrows=!1),t.hasClass("et_pb_slider_no_pagination")&&(e.use_controls=!1),t.hasClass("et_slider_auto")){e.slideshow=!0;var i=/et_slider_speed_(\d+)/g.exec(t.attr("class"));e.slideshow_speed=null===i?10:i[1]}t.parent().hasClass("et_pb_video_slider")&&(e.controls_below=!0,e.append_controls_to=t.parent(),setTimeout((function(){n(".et_pb_preload").removeClass("et_pb_preload")}),500)),t.hasClass("et_pb_slider_carousel")&&(e.use_carousel=!0),t.et_pb_simple_slider(e)};var st=tt;if(n(".et_pb_ab_shop_conversion").length&&void 0!==Bt("et_pb_ab_shop_log")&&""!==Bt("et_pb_ab_shop_log")){var ct=Bt("et_pb_ab_shop_log").split("_");Pt("con_goal",ct[0],ct[1],ct[2]),Mt(0,"et_pb_ab_shop_log=true")}function lt(t){var e="";if(t.length)if(t.each((function(){var t=n(this).attr("class").split("et_pb_column_")[1],i=(void 0!==t?t.split(" ",1)[0]:"4_4").replace("_","-").trim();e+="_".concat(i)})),-1!==e.indexOf("1-4")||-1!==e.indexOf("1-5_1-5")||-1!==e.indexOf("1-6_1-6"))switch(e){case"_1-4_1-4_1-4_1-4":e="et_pb_row_4col";break;case"_1-5_1-5_1-5_1-5_1-5":e="et_pb_row_5col";break;case"_1-6_1-6_1-6_1-6_1-6_1-6":e="et_pb_row_6col";break;default:e="et_pb_row".concat(e)}else e="";return e}if(n(".et_pb_ab_split_track").length&&n(".et_pb_ab_split_track").each((function(){var t=n(this).data("test_id"),e="et_pb_ab_shortcode_track_".concat(t);if(void 0!==Bt(e)&&""!==Bt(e)){var i=Bt(e).split("_");Pt("con_short",i[0],i[1],i[2]),Mt(0,"".concat(e,"=true"))}})),rt.length>0&&rt.each((function(){var t=n(this),e=t.data("original_gutter"),i=t.data("hover_gutter");t.on("mouseenter",(function(){t.removeClass("et_pb_gutters".concat(e)),t.addClass("et_pb_gutters".concat(i))})).on("mouseleave",(function(){t.removeClass("et_pb_gutters".concat(i)),t.addClass("et_pb_gutters".concat(e))}))})),window.et_pb_custom&&window.et_pb_custom.is_ab_testing_active&&n.each(et_pb_custom.ab_tests,(function(t,e){!function(t){if(!d.isBuilder){var e=It(t.post_id),i=zt(t.post_id);if(n.each(nt[t.post_id],(function(e){var n="click_goal"===e||"con_short"===e?"":i;nt[t.post_id][e]=Et("et_pb_ab_".concat(e,"_").concat(t.post_id).concat(t.test_id).concat(n),"true")})),nt[t.post_id].read_page||setTimeout((function(){Pt("read_page",t.post_id,void 0,t.test_id)}),et),"on"!==et_pb_custom.is_shortcode_tracking||nt[t.post_id].con_short||Mt(365,"et_pb_ab_shortcode_track_".concat(t.post_id,"=").concat(t.post_id,"_").concat(i,"_").concat(t.test_id)),e.length)if(e.hasClass("et_pb_module")&&(e.hasClass("et_pb_button")||e.find(".et_pb_button").length)){if(!e.hasClass("et_pb_contact_form_container")&&!e.hasClass("et_pb_newsletter")){var a=e.hasClass("et_pb_button")?e:e.find(".et_pb_button");if(e.hasClass("et_pb_comments_module")){var o=-1!==window.location.href.indexOf("#comment-"),r=Et("et_pb_ab_comment_log_".concat(t.post_id).concat(t.test_id),"true");o&&r&&(Pt("con_goal",t.post_id,void 0,t.test_id),Mt(0,"et_pb_ab_comment_log_".concat(t.post_id).concat(t.test_id,"=true")))}a.on("click",(function(){!e.hasClass("et_pb_comments_module")||nt[t.post_id].con_goal?St(e,"click_goal"):Mt(365,"et_pb_ab_comment_log_".concat(t.post_id).concat(t.test_id,"=true"))}))}}else e.on("click",(function(){e.hasClass("et_pb_shop")&&!nt[t.post_id].con_goal&&Mt(365,"et_pb_ab_shop_log=".concat(t.post_id,"_").concat(i,"_").concat(t.test_id)),St(e,"click_goal")}))}}(e)})),R.length&&R.each((function(){var t=n(this),e="";""!==(e=lt(t.find(">.et_pb_column")))&&t.addClass(e),t.find(".et_pb_row_inner").length&&t.find(".et_pb_row_inner").each((function(){var t=n(this);""!==(e=lt(t.find(".et_pb_column")))&&t.addClass(e)}));var i=t.parents(".et_pb_section.section_has_divider").length?6:3,a=isNaN(t.css("z-index"))||t.css("z-index")<i;t.find(".et_pb_module.et_pb_menu").length&&a&&t.css("z-index",i)})),window.et_pb_init_nav_menu(st),X.each((function(){window.et_pb_apply_sticky_image_effect(n(this))})),N&&(n(".et_pb_section_video_bg").each((function(){var t=n(this);t.closest(".et_pb_preload").removeClass("et_pb_preload"),t.hasClass("opened")&&t.remove()})),n("body").addClass("et_mobile_device"),$||n("body").addClass("et_mobile_device_not_ipad")),V&&n("body").addClass("et_ie9"),(S.length||d.isBuilder)&&(window.et_pb_video_section_init=function(t){t.find("video").mediaelementplayer({pauseOtherPlayers:!1,success:function(t,e){t.addEventListener("loadeddata",(function(){et_pb_resize_section_video_bg(n(e)),et_pb_center_video(n(e).closest(".mejs-video"))}),!1),t.addEventListener("canplay",(function(){n(e).closest(".et_pb_preload").removeClass("et_pb_preload")}),!1)}})},S.length>0&&et_pb_video_section_init(S)),T(),!i&&M.length>0){var _t=n.magnificPopup.instance;n("body").on("swiperight",".mfp-container",(function(){_t.prev()})),n("body").on("swipeleft",".mfp-container",(function(){_t.next()})),M.each((function(){n(this).magnificPopup({delegate:".et_pb_gallery_image a",type:"image",removalDelay:500,gallery:{enabled:!0,navigateByImgClick:!0},mainClass:"mfp-fade",zoom:{enabled:window.et_pb_custom&&!window.et_pb_custom.is_builder_plugin_used,duration:500,opener:function(t){return t.find("img")}},autoFocusLast:!1})})),M.find("a").off("click")}function dt(t){var e=t.parents(".et_pb_fullwidth_portfolio"),i=e.find(".et_pb_portfolio_items"),a=(i.find(".et_pb_portfolio_item"),i.find(".et_pb_carousel_group.active")),o=700,r=i.data("items"),s=i.data("portfolio-columns"),c=a.innerWidth()/s,l="".concat(100/s,"%");if(void 0!==r&&!e.data("carouseling"))if(e.data("carouseling",!0),a.children().each((function(){n(this).css({width:"".concat(c+1,"px"),"max-width":"".concat(c,"px"),position:"absolute",left:"".concat(c*(n(this).data("position")-1),"px")})})),t.hasClass("et-pb-arrow-next")){var _,d=1,p=1,u=y=(w=r.indexOf(a.children().first()[0]))+s,f=u+s,h=a.innerWidth();(_=n('<div class="et_pb_carousel_group next" style="display: none;left: 100%;position: absolute;top: 0;">').insertAfter(a)).css({width:"".concat(h,"px"),"max-width":"".concat(h,"px")}).show();for(var b=0,v=0;v>=w&&v<y&&(n(r[b]).addClass("changing_position current_position current_position_".concat(d)),n(r[b]).data("current_position",d),d++),v>=u&&v<f&&(n(r[b]).data("next_position",p),n(r[b]).addClass("changing_position next_position next_position_".concat(p)),n(r[b]).hasClass("current_position")?(n(r[b]).clone(!0).appendTo(a).hide().addClass("delayed_container_append_dup").attr("id","".concat(n(r[b]).attr("id"),"-dup")),n(r[b]).addClass("delayed_container_append")):n(r[b]).addClass("container_append"),p++),!(p>s);b++,v++)b>=r.length-1&&(b=-1);var m=i.find(".container_append, .delayed_container_append_dup").sort((function(t,e){var i=parseInt(n(t).data("next_position")),a=parseInt(n(e).data("next_position"));return i<a?-1:i>a?1:0}));n(m).show().appendTo(_),_.children().each((function(){n(this).css({width:"".concat(c,"px"),"max-width":"".concat(c,"px"),position:"absolute",left:"".concat(c*(n(this).data("next_position")-1),"px")})})),a.animate({left:"-100%"},{duration:o,complete:function(){i.find(".delayed_container_append").each((function(){n(this).css({width:"".concat(c,"px"),"max-width":"".concat(c,"px"),position:"absolute",left:"".concat(c*(n(this).data("next_position")-1),"px")}),n(this).appendTo(_)})),a.removeClass("active"),a.children().each((function(){var t=n(this).data("position");d=n(this).data("current_position"),n(this).removeClass("position_".concat(t," ")+"changing_position current_position current_position_".concat(d)),n(this).data("position",""),n(this).data("current_position",""),n(this).hide(),n(this).css({position:"",width:"","max-width":"",left:""}),n(this).appendTo(i)})),a.remove(),ut(e)}}),_.addClass("active").css({position:"absolute",top:"0px",left:"100%"}),_.animate({left:"0%"},{duration:o,complete:function(){setTimeout((function(){_.removeClass("next").addClass("active").css({position:"",width:"","max-width":"",top:"",left:""}),_.find(".delayed_container_append_dup").remove(),_.find(".changing_position").each((function(t){var e=n(this).data("position");d=n(this).data("current_position"),p=n(this).data("next_position"),n(this).removeClass("container_append delayed_container_append position_".concat(e," ")+"changing_position current_position current_position_".concat(d," next_position next_position_").concat(p)),n(this).data("current_position",""),n(this).data("next_position",""),n(this).data("position",t+1)})),i.find(".et_pb_portfolio_item").removeClass("first_in_row last_in_row"),et_pb_set_responsive_grid(i,".et_pb_portfolio_item:visible"),_.children().css({position:"",width:l,"max-width":l,left:""}),e.data("carouseling",!1)}),100)}})}else{d=s;var g,w,y,x=s,C=s-1,k=(y=(w=r.indexOf(a.children().last()[0]))-C)-1,j=k-C;h=a.innerWidth(),(g=n('<div class="et_pb_carousel_group prev" style="display: none;left: 100%;position: absolute;top: 0;">').insertBefore(a)).css({left:"-".concat(h,"px"),width:"".concat(h,"px"),"max-width":"".concat(h,"px")}).show();for(var T=r.length-1,O=r.length-1;O<=w&&O>=y&&(n(r[T]).addClass("changing_position current_position current_position_".concat(d)),n(r[T]).data("current_position",d),d--),O<=k&&O>=j&&(n(r[T]).data("prev_position",x),n(r[T]).addClass("changing_position prev_position prev_position_".concat(x)),n(r[T]).hasClass("current_position")?(n(r[T]).clone(!0).appendTo(a).addClass("delayed_container_append_dup").attr("id","".concat(n(r[T]).attr("id"),"-dup")),n(r[T]).addClass("delayed_container_append")):n(r[T]).addClass("container_append"),x--),!(x<=0);T--,O--)0==T&&(T=r.length);var S=i.find(".container_append, .delayed_container_append_dup").sort((function(t,e){var i=parseInt(n(t).data("prev_position")),a=parseInt(n(e).data("prev_position"));return i<a?-1:i>a?1:0}));n(S).show().appendTo(g),g.children().each((function(){n(this).css({width:"".concat(c,"px"),"max-width":"".concat(c,"px"),position:"absolute",left:"".concat(c*(n(this).data("prev_position")-1),"px")})})),a.animate({left:"100%"},{duration:o,complete:function(){i.find(".delayed_container_append").reverse().each((function(){n(this).css({width:"".concat(c,"px"),"max-width":"".concat(c,"px"),position:"absolute",left:"".concat(c*(n(this).data("prev_position")-1),"px")}),n(this).prependTo(g)})),a.removeClass("active"),a.children().each((function(){var t=n(this).data("position");d=n(this).data("current_position"),n(this).removeClass("position_".concat(t," ")+"changing_position current_position current_position_".concat(d)),n(this).data("position",""),n(this).data("current_position",""),n(this).hide(),n(this).css({position:"",width:"","max-width":"",left:""}),n(this).appendTo(i)})),a.remove()}}),g.addClass("active").css({position:"absolute",top:"0px",left:"-100%"}),g.animate({left:"0%"},{duration:o,complete:function(){setTimeout((function(){g.removeClass("prev").addClass("active").css({position:"",width:"","max-width":"",top:"",left:""}),g.find(".delayed_container_append_dup").remove(),g.find(".changing_position").each((function(t){var e=n(this).data("position");d=n(this).data("current_position"),x=n(this).data("prev_position"),n(this).removeClass("container_append delayed_container_append position_".concat(e," ")+"changing_position current_position current_position_".concat(d," prev_position prev_position_").concat(x)),n(this).data("current_position",""),n(this).data("prev_position",""),e=t+1,n(this).data("position",e),n(this).addClass("position_".concat(e))})),i.find(".et_pb_portfolio_item").removeClass("first_in_row last_in_row"),et_pb_set_responsive_grid(i,".et_pb_portfolio_item:visible"),g.children().css({position:"",width:l,"max-width":l,left:""}),e.data("carouseling",!1)}),100)}})}}function pt(t,e){var i,a=t.find(".et_pb_portfolio_items"),o=a.width(),r=a.find(".et_pb_portfolio_item");if(r.length,void 0!==r){var s=o/(i=o>=1600?5:o>=1024?4:o>=768?3:o>=480?2:1)*.75;if(e&&a.css({height:"".concat(s,"px")}),r.css({height:"".concat(s,"px")}),i!==a.data("portfolio-columns")&&!t.data("columns_setting_up")){t.data("columns_setting_up",!0);var c="".concat(100/i,"%");if(r.css({width:c,"max-width":c}),a.removeClass("columns-".concat(a.data("portfolio-columns"))),a.addClass("columns-".concat(i)),a.data("portfolio-columns",i),!e)return t.data("columns_setting_up",!1);a.find(".et_pb_carousel_group").length&&(r.appendTo(a),a.find(".et_pb_carousel_group").remove());var l=a.data("items"),_=n('<div class="et_pb_carousel_group active">').appendTo(a);if(void 0!==l){r.data("position",""),l.length<=i?a.find(".et-pb-slider-arrows").hide():a.find(".et-pb-slider-arrows").show();for(var d=1,p=0;p<l.length;p++,d++)p<i?(n(l[p]).show(),n(l[p]).appendTo(_),n(l[p]).data("position",d),n(l[p]).addClass("position_".concat(d))):(d=n(l[p]).data("position"),n(l[p]).removeClass("position_".concat(d)),n(l[p]).data("position",""),n(l[p]).hide());t.data("columns_setting_up",!1)}}}}function ut(t){if("on"===t.data("auto-rotate")&&t.find(".et_pb_portfolio_item").length>t.find(".et_pb_carousel_group .et_pb_portfolio_item").length&&!t.hasClass("et_carousel_hovered")){var e=setTimeout((function(){dt(t.find(".et-pb-arrow-next"))}),t.data("auto-rotate-speed"));t.data("et_carousel_timer",e)}}if(!i&&(H.length>0||d.isBuilder)&&(H.off("click"),H.on("click"),window.et_pb_image_lightbox_init=function(e){if(!e.magnificPopup)return t(window).on("load",(function(){window.et_pb_image_lightbox_init(e)}));e.magnificPopup({type:"image",removalDelay:500,mainClass:"mfp-fade",zoom:{enabled:window.et_pb_custom&&!window.et_pb_custom.is_builder_plugin_used,duration:500,opener:function(t){return t.find("img")}},autoFocusLast:!1})},et_pb_image_lightbox_init(H)),(k.length||d.isBuilder)&&k.each((function(){var t=n(this);et_pb_slider_init(t)})),((K=n(".et_pb_carousel")).length||d.isBuilder)&&K.each((function(){n(this).et_pb_simple_carousel({slide_duration:1e3})})),(ot.length||d.isBuilder)&&n(ot).each((function(){window.et_pb_set_responsive_grid(n(this),".et_pb_grid_item")})),(A.length||d.isBuilder)&&(window.et_fullwidth_portfolio_init=function(t,e){var i=t.find(".et_pb_portfolio_items");i.data("items",i.find(".et_pb_portfolio_item").toArray()),t.data("columns_setting_up",!1),t.hasClass("et_pb_fullwidth_portfolio_carousel")?(i.prepend("".concat('<div class="et-pb-slider-arrows"><a class="et-pb-arrow-prev" href="#"><span>').concat(et_pb_custom.previous,"</span>")+'</a><a class="et-pb-arrow-next" href="#">'+"<span>".concat(et_pb_custom.next,"</span>")+"</a></div>"),pt(t,!0),ut(t),t.on("swiperight",(function(){n(this).find(".et-pb-arrow-prev").trigger("click")})),t.on("swipeleft",(function(){n(this).find(".et-pb-arrow-next").trigger("click")})),t.on("mouseenter",(function(){n(this).addClass("et_carousel_hovered"),void 0!==n(this).data("et_carousel_timer")&&clearInterval(n(this).data("et_carousel_timer"))})).on("mouseleave",(function(){n(this).removeClass("et_carousel_hovered"),ut(n(this))})),t.data("carouseling",!1),t.on("click",".et-pb-slider-arrows a",(function(t){return dt(n(this)),t.preventDefault(),!1}))):pt(t,!1),"function"==typeof e&&e()},A.each((function(){et_fullwidth_portfolio_init(n(this))}))),n(".et_pb_section_video").length&&(window._wpmejsSettings.pauseOtherPlayers=!1),I.length||d.isBuilder){var ft=function(t){if(t.attr("id")){var e=[];e.push(t.attr("id")),e.push(t.find(".et_pb_portfolio_filter > a.active").data("category-slug")),t.find(".et_pb_portofolio_pagination a.active").length?e.push(t.find(".et_pb_portofolio_pagination a.active").data("page")):e.push(1),C(e=e.join(l))}};window.et_pb_filterable_portfolio_init=function(t){void 0!==t?set_filterable_portfolio_init(t):I.each((function(){set_filterable_portfolio_init(n(this))}))},window.set_filterable_portfolio_init=function(t,e){var i=t.find(".et_pb_portfolio_items").clone();t.show(),t.find(".et_pb_portfolio_item").addClass("active"),t.css("display","block"),window.set_filterable_grid_items(t),"function"==typeof e&&e(),t.on("click",".et_pb_portfolio_filter a",(function(t){t.preventDefault();var e=n(this).data("category-slug"),a=n(this).parents(".et_pb_filterable_portfolio"),o=a.find(".et_pb_portfolio_items");"all"==e?(a.find(".et_pb_portfolio_filter a").removeClass("active"),a.find(".et_pb_portfolio_filter_all a").addClass("active"),o.empty(),o.append(i.find(".et_pb_portfolio_item").clone()),a.find(".et_pb_portfolio_item").addClass("active")):(a.find(".et_pb_portfolio_filter_all").removeClass("active"),a.find(".et_pb_portfolio_filter a").removeClass("active"),a.find(".et_pb_portfolio_filter_all a").removeClass("active"),n(this).addClass("active"),o.empty(),o.append(i.find(".et_pb_portfolio_item.project_category_".concat(n(this).data("category-slug"))).clone()),o.find(".et_pb_portfolio_item").removeClass("active"),o.find(".et_pb_portfolio_item.project_category_".concat(n(this).data("category-slug"))).addClass("active").removeClass("inactive")),window.set_filterable_grid_items(a),setTimeout((function(){ft(a)}),500),a.find(".et_pb_portfolio_item").removeClass("first_in_row last_in_row"),et_pb_set_responsive_grid(a,".et_pb_portfolio_item:visible")})),t.on("click",".et_pb_portofolio_pagination a",(function(t){t.preventDefault();var e=n(this).data("page"),i=n(this).parents(".et_pb_filterable_portfolio");i.find(".et_pb_portfolio_items"),et_pb_smooth_scroll(i,!1,800),n(this).hasClass("page-prev")?e=parseInt(n(this).parents("ul").find("a.active").data("page"))-1:n(this).hasClass("page-next")&&(e=parseInt(n(this).parents("ul").find("a.active").data("page"))+1),n(this).parents("ul").find("a").removeClass("active"),n(this).parents("ul").find("a.page-".concat(e)).addClass("active");var a=n(this).parents("ul").find("a.page-".concat(e)).parent().index(),o=n(this).parents("ul").find("li.page").length;n(this).parent().nextUntil(".page-".concat(a+3)).show(),n(this).parent().prevUntil(".page-".concat(a-3)).show(),n(this).parents("ul").find("li.page").each((function(t){n(this).hasClass("prev")||n(this).hasClass("next")||(t<a-3||t>a+1?n(this).hide():n(this).show(),(o-a<=2&&o-t<=5||a<=3&&t<=4)&&n(this).show())})),e>1?n(this).parents("ul").find("li.prev").show():n(this).parents("ul").find("li.prev").hide(),n(this).parents("ul").find("a.active").hasClass("last-page")?n(this).parents("ul").find("li.next").hide():n(this).parents("ul").find("li.next").show(),i.find(".et_pb_portfolio_item").hide(),i.find(".et_pb_portfolio_item").filter((function(t){return n(this).data("page")===e})).show(),window.et_pb_set_responsive_grid(i.find(".et_pb_portfolio_items"),".et_pb_portfolio_item"),setTimeout((function(){ft(i)}),500),i.find(".et_pb_portfolio_item").removeClass("first_in_row last_in_row"),et_pb_set_responsive_grid(i,".et_pb_portfolio_item:visible")})),t.on("et_hashchange",(function(e){var i=e.params;(t=n("#".concat(e.target.id))).find('.et_pb_portfolio_filter a[data-category-slug="'.concat(i[0],'"]')).hasClass("active")||t.find('.et_pb_portfolio_filter a[data-category-slug="'.concat(i[0],'"]')).trigger("click"),i[1]&&setTimeout((function(){t.find(".et_pb_portofolio_pagination a.page-".concat(i[1])).hasClass("active")||t.find(".et_pb_portofolio_pagination a.page-".concat(i[1])).addClass("active").trigger("click")}),300)}))},window.set_filterable_grid_items=function(t){var e,i=t.find(".et_pb_portfolio_filter > a.active").data("category-slug");window.et_pb_set_responsive_grid(t.find(".et_pb_portfolio_items"),".et_pb_portfolio_item");var a=(e="all"===i?t.find(".et_pb_portfolio_item"):t.find(".et_pb_portfolio_item.project_category_".concat(i))).length,o=t.data("posts-number"),r=0===o?1:Math.ceil(a/o);window.set_filterable_grid_pages(t,r),a=0;var s=1;t.find(".et_pb_portfolio_item").data("page",""),e.each((function(t){a++,0===parseInt(a%o)?(n(this).data("page",s),s++):n(this).data("page",s)})),e.filter((function(){return 1==n(this).data("page")})).show(),e.filter((function(){return 1!=n(this).data("page")})).hide()},window.set_filterable_grid_pages=function(t,e){var n=t.find(".et_pb_portofolio_pagination");if(n.length&&(n.html("<ul></ul>"),!(e<=1))){var i=n.children("ul");i.append('<li class="prev" style="display:none;"><a href="#" data-page="prev" class="page-prev">'.concat(et_pb_custom.prev,"</a></li>"));for(var a=1;a<=e;a++){var o=1===a?" active":"",r=a===e?" last-page":"",s=a>=5?' style="display:none;"':"";i.append("<li".concat(s,' class="page page-').concat(a,'"><a href="#" data-page="').concat(a,'" class="page-').concat(a).concat(o).concat(r,'">').concat(a,"</a></li>"))}i.append('<li class="next"><a href="#" data-page="next" class="page-next">'.concat(et_pb_custom.next,"</a></li>"))}},window.et_load_event_fired?et_pb_filterable_portfolio_init():n(window).on("load",(function(){et_pb_filterable_portfolio_init()}))}if((E.length||d.isBuilder)&&(window.set_gallery_grid_items=function(t){var e=t.find(".et_pb_gallery_items"),i=e.find(".et_pb_gallery_item"),a=i.length,o=parseInt(e.attr("data-per_page")),r=isNaN(o)||0===o?4:o,s=Math.ceil(a/r);window.et_pb_set_responsive_grid(e,".et_pb_gallery_item"),set_gallery_grid_pages(t,s),a=0;var c=1;i.data("page",""),i.each((function(t){a++;var e=n(this);0===parseInt(a%r)?(e.data("page",c),c++):e.data("page",c)})),i.filter((function(){return 1==n(this).data("page")})).show(),i.filter((function(){return 1!=n(this).data("page")})).hide()},window.set_gallery_grid_pages=function(t,e){var n=t.find(".et_pb_gallery_pagination");if(n.length)if(n.html("<ul></ul>"),e<=1)n.hide();else{var i=n.children("ul");i.append('<li class="prev" style="display:none;"><a href="#" data-page="prev" class="page-prev">'.concat(et_pb_custom.prev,"</a></li>"));for(var a=1;a<=e;a++){var o=1===a?" active":"",r=a===e?" last-page":"",s=a>=5?' style="display:none;"':"";i.append("<li".concat(s,' class="page page-').concat(a,'"><a href="#" data-page="').concat(a,'" class="page-').concat(a).concat(o).concat(r,'">').concat(a,"</a></li>"))}i.append('<li class="next"><a href="#" data-page="next" class="page-next">'.concat(et_pb_custom.next,"</a></li>"))}},window.set_gallery_hash=function(t){if(t.attr("id")){var e=[];e.push(t.attr("id")),t.find(".et_pb_gallery_pagination a.active").length?e.push(t.find(".et_pb_gallery_pagination a.active").data("page")):e.push(1),C(e=e.join(l))}},window.et_pb_gallery_init=function(t){t.hasClass("et_pb_gallery_grid")&&(t.show(),set_gallery_grid_items(t),t.on("et_hashchange",(function(e){var i=e.params;t=n("#".concat(e.target.id));var a=i[0];a&&(t.find(".et_pb_gallery_pagination a.page-".concat(a)).hasClass("active")||t.find(".et_pb_gallery_pagination a.page-".concat(a)).addClass("active").trigger("click"))})))},E.each((function(){var t=n(this);et_pb_gallery_init(t)})),E.data("paginating",!1),window.et_pb_gallery_pagination_nav=function(t){t.on("click",".et_pb_gallery_pagination a",(function(t){t.preventDefault();var e=n(this).data("page"),i=n(this).parents(".et_pb_gallery"),a=i.find(".et_pb_gallery_items"),o=a.find(".et_pb_gallery_item");if(!i.data("paginating")){i.data("paginating",!0),n(this).hasClass("page-prev")?e=parseInt(n(this).parents("ul").find("a.active").data("page"))-1:n(this).hasClass("page-next")&&(e=parseInt(n(this).parents("ul").find("a.active").data("page"))+1),n(this).parents("ul").find("a").removeClass("active"),n(this).parents("ul").find("a.page-".concat(e)).addClass("active");var r=n(this).parents("ul").find("a.page-".concat(e)).parent().index(),s=n(this).parents("ul").find("li.page").length;n(this).parent().nextUntil(".page-".concat(r+3)).show(),n(this).parent().prevUntil(".page-".concat(r-3)).show(),n(this).parents("ul").find("li.page").each((function(t){n(this).hasClass("prev")||n(this).hasClass("next")||(t<r-3||t>r+1?n(this).hide():n(this).show(),(s-r<=2&&s-t<=5||r<=3&&t<=4)&&n(this).show())})),e>1?n(this).parents("ul").find("li.prev").show():n(this).parents("ul").find("li.prev").hide(),n(this).parents("ul").find("a.active").hasClass("last-page")?n(this).parents("ul").find("li.next").hide():n(this).parents("ul").find("li.next").show(),o.hide(),o.filter((function(t){return n(this).data("page")===e})).show(),i.data("paginating",!1),window.et_pb_set_responsive_grid(a,".et_pb_gallery_item"),setTimeout((function(){set_gallery_hash(i)}),100)}}))},et_pb_gallery_pagination_nav(E),d.isBuilder&&et_pb_gallery_pagination_nav(n("#et-fb-app"))),J.length&&J.each((function(){window.et_bar_counters_init(n(this))})),window.et_countdown_timer=function(t){var e=parseInt(t.attr("data-end-timestamp"))-(new Date).getTime()/1e3,n=parseInt(e/86400);n=n>0?n:0,e%=86400;var i=parseInt(e/3600);i=i>0?i:0,e%=3600;var a=parseInt(e/60);a=a>0?a:0;var o=parseInt(e%60);o=o>0?o:0;var r=t.find(".days > .value").parent(".section"),s=t.find(".hours > .value").parent(".section"),c=t.find(".minutes > .value").parent(".section"),l=t.find(".seconds > .value").parent(".section");if(0==n)r.hasClass("zero")||t.find(".days > .value").html("000").parent(".section").addClass("zero").next().addClass("zero");else{var _=n.toString().length>=3?n.toString().length:3;t.find(".days > .value").html("000".concat(n).slice(-_)),r.hasClass("zero")&&r.removeClass("zero").next().removeClass("zero")}0===n&&0===i?s.hasClass("zero")||t.find(".hours > .value").html("00").parent(".section").addClass("zero").next().addClass("zero"):(t.find(".hours > .value").html("0".concat(i).slice(-2)),s.hasClass("zero")&&s.removeClass("zero").next().removeClass("zero")),0===n&&0===i&&0===a?c.hasClass("zero")||t.find(".minutes > .value").html("00").parent(".section").addClass("zero").next().addClass("zero"):(t.find(".minutes > .value").html("0".concat(a).slice(-2)),c.hasClass("zero")&&c.removeClass("zero").next().removeClass("zero")),0===n&&0===i&&0===a&&0===o?l.hasClass("zero")||t.find(".seconds > .value").html("00").parent(".section").addClass("zero"):(t.find(".seconds > .value").html("0".concat(o).slice(-2)),l.hasClass("zero")&&l.removeClass("zero").next().removeClass("zero"))},window.et_countdown_timer_labels=function(t){t.closest(".et_pb_column_3_8").length||t.closest(".et_pb_column_1_4").length||t.children(".et_pb_countdown_timer_container").width()<=400?(t.find(".days .label").text(t.find(".days").data("short")),t.find(".hours .label").text(t.find(".hours").data("short")),t.find(".minutes .label").text(t.find(".minutes").data("short")),t.find(".seconds .label").text(t.find(".seconds").data("short"))):(t.find(".days .label").text(t.find(".days").data("full")),t.find(".hours .label").text(t.find(".hours").data("full")),t.find(".minutes .label").text(t.find(".minutes").data("full")),t.find(".seconds .label").text(t.find(".seconds").data("full")))},(B.length||d.isBuilder)&&(window.et_pb_countdown_timer_init=function(t){t.each((function(){var t=n(this);et_countdown_timer_labels(t),et_countdown_timer(t),setInterval((function(){et_countdown_timer(t)}),1e3)}))},et_pb_countdown_timer_init(B)),window.et_pb_tabs_init=function(t){t.each((function(){var t=n(this),e=t.find(".et_pb_tabs_controls li"),i=v||m||g?0:t.find(".et_pb_tab_active").index(),a={use_controls:!1,use_arrows:!1,slide:".et_pb_all_tabs > div",tabs_animation:!0};0!==i&&(a.active_slide=i),t.et_pb_simple_slider(a).on("et_hashchange",(function(t){var e=t.params,i=n("#".concat(t.target.id)),a=e[0];i.find(".et_pb_tabs_controls li").eq(a).hasClass("et_pb_tab_active")||i.find(".et_pb_tabs_controls li").eq(a).trigger("click")})),e.on("click",(function(){var t=n(this),e=t.closest(".et_pb_tabs").data("et_pb_simple_slider");if(e.et_animation_running)return!1;if(t.addClass("et_pb_tab_active").siblings().removeClass("et_pb_tab_active"),e.data("et_pb_simple_slider").et_slider_move_to(t.index()),t.closest(".et_pb_tabs").attr("id")){var i=[];i.push(t.closest(".et_pb_tabs").attr("id")),i.push(t.index()),C(i=i.join(l))}return!1})),function(t){var e=window.location.hash;if(""!==e){var n=e.replace("#","");n=/^tab\-/.test(n)?n:"tab-".concat(n);var i=t.find('.et_pb_tabs_controls li a[href="#'.concat(n,'"]'));i.length&&i.parent().trigger("click")}}(t),window.et_pb_set_tabs_height()}))},(j.length||d.isBuilder)&&window.et_pb_tabs_init(j),F.length||d.isBuilder){var ht=function(){F.each((function(){et_pb_map_init(n(this))}))};window.et_pb_map_init=function(t){if("undefined"!=typeof google&&void 0!==google.maps){var e=At();it=e;var i="desktop"!==e?"-".concat(e):"",a="phone"===e?"-tablet":"",o=t.attr("data-grayscale".concat(i))||0;o||(o=t.attr("data-grayscale".concat(a))||t.attr("data-grayscale")||0);var r,s=t.children(".et_pb_map"),c=o,l=N&&"off"!==s.data("mobile-dragging")||!N;0!==c&&(c="-".concat(c.toString()));var _=parseFloat(s.attr("data-center-lat"))||0,d=parseFloat(s.attr("data-center-lng"))||0;t.data("map",new google.maps.Map(s[0],{zoom:parseInt(s.attr("data-zoom")),center:new google.maps.LatLng(_,d),mapTypeId:google.maps.MapTypeId.ROADMAP,scrollwheel:"on"==s.attr("data-mouse-wheel"),draggable:l,panControlOptions:{position:t.is(".et_beneath_transparent_nav")?google.maps.ControlPosition.LEFT_BOTTOM:google.maps.ControlPosition.LEFT_TOP},zoomControlOptions:{position:t.is(".et_beneath_transparent_nav")?google.maps.ControlPosition.LEFT_BOTTOM:google.maps.ControlPosition.LEFT_TOP},styles:[{stylers:[{saturation:parseInt(c)}]}]})),t.find(".et_pb_map_pin").each((function(){var e=n(this),i=new google.maps.Marker({position:new google.maps.LatLng(parseFloat(e.attr("data-lat")),parseFloat(e.attr("data-lng"))),map:t.data("map"),title:e.attr("data-title"),icon:{url:"".concat(et_pb_custom.builder_images_uri,"/marker.png"),size:new google.maps.Size(46,43),anchor:new google.maps.Point(16,43)},shape:{coord:[1,1,46,43],type:"rect"},anchorPoint:new google.maps.Point(0,-45)});if(e.find(".infowindow").length){var a=new google.maps.InfoWindow({content:e.html()});google.maps.event.addListener(t.data("map"),"click",(function(){a.close()})),google.maps.event.addListener(i,"click",(function(){r&&r.close(),r=a,a.open(t.data("map"),i),e.closest(".et_pb_module").trigger("mouseleave"),setTimeout((function(){e.closest(".et_pb_module").trigger("mouseenter")}),1)}))}}))}},window.et_load_event_fired?ht():"undefined"!=typeof google&&void 0!==google.maps&&google.maps.event.addDomListener(window,"load",(function(){ht()}))}n(".et_pb_shop, .et_pb_wc_upsells, .et_pb_wc_related_products").each((function(){var t=n(this),e=(0,a.default)(t.data("icon"))||""===t.data("icon")?"":t.data("icon"),i=(0,a.default)(t.data("icon-tablet"))||""===t.data("icon-tablet")?"":t.data("icon-tablet"),o=(0,a.default)(t.data("icon-phone"))||""===t.data("icon-phone")?"":t.data("icon-phone"),r=(0,a.default)(t.data("icon-sticky"))||""===t.data("icon-sticky")?"":t.data("icon-sticky"),s=t.find(".et_overlay");if(!s.length&&t.hasClass("et_pb_wc_related_products")&&(s=t.find(".et_pb_extra_overlay"),t=s.closest(".et_pb_module_inner").parent(),e=(0,a.default)(t.data("icon"))||""===t.data("icon")?"":t.data("icon"),i=(0,a.default)(t.data("icon-tablet"))||""===t.data("icon-tablet")?"":t.data("icon-tablet"),o=(0,a.default)(t.data("icon-phone"))||""===t.data("icon-phone")?"":t.data("icon-phone"),r=(0,a.default)(t.data("icon-sticky"))||""===t.data("icon-sticky")?"":t.data("icon-sticky")),""!==e&&s.attr("data-icon",e).addClass("et_pb_inline_icon"),""!==i&&s.attr("data-icon-tablet",i).addClass("et_pb_inline_icon_tablet"),""!==o&&s.attr("data-icon-phone",o).addClass("et_pb_inline_icon_phone"),""!==r&&s.attr("data-icon-sticky",r).addClass("et_pb_inline_icon_sticky"),t.hasClass("et_pb_shop")){var c=t.find("li.product"),l=t.attr("data-shortcode_index"),_="et_pb_shop_item_".concat(l);c.length>0&&c.each((function(t,e){n(e).addClass("".concat(_,"_").concat(t))}))}})),n(".et_pb_wc_cart_totals").each((function(){var t=d.isBuilder?n(".et_pb_module_inner",this):n(this),e={};n.each(t.data(),(function(n){if(n.includes("buttonName")){var i=t.data(n),a=t.data("".concat(i,"-icon"))||"",o=t.data("".concat(i,"-icon-tablet"))||"",r=t.data("".concat(i,"-icon-phone"))||"";e[i]={icon:a,"icon-tablet":o,"icon-phone":r,class:t.data("button-class")}}})),n.each(e,(function(e,n){var i=t.find('button[name="'.concat(e,'"]:eq(0)'));0===i.length&&(i=t.find(".".concat(e))),i.addClass(n.class),i.attr("data-icon",n.icon),i.attr("data-icon-tablet",n["icon-tablet"]),i.attr("data-icon-phone",n["icon-phone"])}))})),q.each((function(){var t,e,i=n(this),a=i.data("background-layout"),o=i.data("background-layout-hover"),r=i.data("background-layout-tablet"),s=i.data("background-layout-phone");i.hasClass("et_pb_button_module_wrapper")?i=i.find("> .et_pb_button"):i.hasClass("et_pb_gallery")?(t=i.find(".et_pb_gallery_item"),i=i.add(t)):i.hasClass("et_pb_post_slider")?(t=i.find(".et_pb_slide"),i=i.add(t)):i.hasClass("et_pb_slide")&&(e=i.closest(".et_pb_slider"),i=i.add(e));var c="et_pb_bg_layout_light et_pb_bg_layout_dark et_pb_text_color_dark",l="et_pb_bg_layout_".concat(a),_="et_pb_bg_layout_".concat(o),d="light"===a?"et_pb_text_color_dark":"",p="light"===o?"et_pb_text_color_dark":"";r&&(c+=" et_pb_bg_layout_light_tablet et_pb_bg_layout_dark_tablet et_pb_text_color_dark_tablet",l+=" et_pb_bg_layout_".concat(r,"_tablet"),_+=" et_pb_bg_layout_".concat(o,"_tablet"),d+="light"===r?" et_pb_text_color_dark_tablet":"",p+="light"===o?" et_pb_text_color_dark_tablet":""),s&&(c+=" et_pb_bg_layout_light_phone et_pb_bg_layout_dark_phone et_pb_text_color_dark_phone",l+=" et_pb_bg_layout_".concat(s,"_phone"),_+=" et_pb_bg_layout_".concat(o,"_phone"),d+="light"===s?" et_pb_text_color_dark_phone":"",p+="light"===o?" et_pb_text_color_dark_phone":""),i.on("mouseenter",(function(){i.removeClass(c),i.addClass(_),i.hasClass("et_pb_audio_module")&&""!==p&&i.addClass(p)})),i.on("mouseleave",(function(){i.removeClass(c),i.addClass(l),i.hasClass("et_pb_audio_module")&&""!==d&&i.addClass(d)}))})),(L.length||d.isBuilder||n(".et_pb_ajax_pagination_container").length>0)&&(window.et_pb_circle_counter_init=function(t,e,i){if(!(t.width()<=0)){var a=At();it=a;var o="";void 0!==i&&""!==i?o="-".concat(i):"desktop"!==a&&(o="-".concat(a));var r=t.data("bar-bg-color"),s=t.data("bar-bg-color".concat(o));void 0!==s&&""!==s&&(r=s);var c=t.data("color")||"#000000",l=t.data("color".concat(o));void 0!==l&&""!==l&&(c=l);var _=t.data("alpha")||"0.1",d=t.data("alpha".concat(o));void 0===d||""===d||isNaN(d)||(_=d),t.easyPieChart({animate:{duration:1800,enabled:!0},size:0!==t.width()?t.width():10,barColor:r,trackColor:c,trackAlpha:_,scaleColor:!1,lineWidth:5,onStart:function(){n(this.el).find(".percent p").css({visibility:"visible"})},onStep:function(t,e,i){n(this.el).find(".percent-value").text(Math.round(parseInt(i)))},onStop:function(t,e){n(this.el).find(".percent-value").text(n(this.el).data("number-value"))}})}},window.et_pb_reinit_circle_counters=function(t){t.each((function(){var t=n(this).find(".et_pb_circle_counter_inner");window.et_pb_circle_counter_init(t,!1),t.on("mouseover",(function(e){window.et_pb_circle_counter_update(t,e,"hover")})),t.on("mouseleave",(function(e){window.et_pb_circle_counter_update(t,e)})),t.on("containerWidthChanged",(function(e,i){(t=n(e.target)).find("canvas").remove(),t.removeData("easyPieChart"),window.et_pb_circle_counter_init(t,!0,i)}));var e=t.attr("data-sticky-id");e&&(window.addEventListener("ETBuilderStickyStart",(function(n){e===n.detail.stickyId&&window.et_pb_circle_counter_update(t,event,"sticky")})),window.addEventListener("ETBuilderStickyEnd",(function(n){e===n.detail.stickyId&&window.et_pb_circle_counter_update(t,event)})))}))},window.et_pb_reinit_circle_counters(L)),window.et_pb_circle_counter_update=function(t,e,i){if(t.is(":visible")&&void 0!==t.data("easyPieChart")){if("mouseleave"===e.type&&t.closest(".et_pb_sticky").length>0&&(i="sticky"),n(e.target).length>0&&("mouseover"===e.type||"mouseleave"===e.type)){var a=!1,o=t.data("bar-bg-color-hover"),r=t.data("color-hover"),s=t.data("alpha-hover");if((void 0!==o&&""!==o||void 0!==r&&""!==r||void 0!==s&&""!==s)&&(a=!0),!a)return}var c=[];void 0!==i&&""!==i&&(c=[i]),t.trigger("containerWidthChanged",c),["ETBuilderStickyStart","ETBuilderStickyEnd"].includes(e.type)&&""===t.find(".percent-value").text()||(t.data("easyPieChart").disableAnimation(),t.data("easyPieChart").update(t.data("number-value")))}},(D.length||d.isBuilder||n(".et_pb_ajax_pagination_container").length>0)&&(window.et_pb_reinit_number_counters=function(t){var e=n("body").hasClass("gecko");function i(t,e){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e)}function a(t){return t.data("number-separator")}n.fn.fitText&&t.find(".percent p").fitText(.3),t.each((function(){var t=n(this);t.easyPieChart({animate:{duration:1800,enabled:!0},size:e?1:0,trackColor:!1,scaleColor:!1,lineWidth:0,onStart:function(e,o){n(this.el).addClass("active"),e===o&&n(this.el).find(".percent-value").text(i(n(this.el).data("number-value"),a(t)))},onStep:function(e,o,r){r!=o&&n(this.el).find(".percent-value").text(i(Math.round(parseInt(r)),a(t)))},onStop:function(e,o){n(this.el).find(".percent-value").text(i(n(this.el).data("number-value"),a(t)))}})}))},window.et_pb_reinit_number_counters(D)),window.et_apply_parallax=function(){if(n(this).length&&void 0!==n(this)&&void 0!==n(this).offset()){var t=b;v?t=p.jQuery("#et-fb-app"):w()&&(t=n(window));var e=n(this),a=e.parent(),o=y()?e.offset().top/2:e.offset().top,r=t.scrollTop();if(!a.hasClass("et_is_animating")){if(i){var s="#divi-layout-iframe-".concat(ETBlockLayoutModulesScript.blockId);o+=p.jQuery(s).offset().top}var c,l=.3*(r+b.height()-o);c="translate(0, ".concat(l,"px)"),(e.children(".et_parallax_bg_wrap").length>0?e.children(".et_parallax_bg_wrap").find(".et_parallax_bg"):e.children(".et_parallax_bg")).css({"-webkit-transform":c,"-moz-transform":c,"-ms-transform":c,transform:c})}}},window.et_parallax_set_height=function(){var t=n(this),e=d.isBuilder&&t.parent(".et_pb_fullscreen").length&&b.height()>t.innerHeight()?b.height():t.innerHeight(),i=.3*b.height()+e;m&&(i+=p.jQuery("#et_pb_layout .inside").offset().top),t.find(".et_parallax_bg").css({height:"".concat(i,"px")})},window.et_apply_builder_css_parallax=function(){if(d.isBuilder||i){var t=n(this),e=t.children(".et_parallax_bg");if(e.css({width:"",height:"",top:"",left:"",backgroundAttachment:""}),!w()||v){var a=v?p.jQuery("#et-fb-app"):b,o=a.scrollTop(),r=m?p.jQuery("#et_pb_layout .inside").offset().top:0,s=y()?2:1,c=t.offset(),l=y()?c.top/2:c.top;i&&(a=p.jQuery((0,_.getContentAreaSelector)(p,!0)),r=p.jQuery("#divi-layout-iframe-".concat(ETBlockLayoutModulesScript.blockId)).offset().top,o=a.offset().top),e.css({width:"".concat(n(window).width(),"px"),height:"".concat(a.innerHeight()*s,"px"),top:"".concat(o-r-l,"px"),left:"".concat(0-c.left,"px"),backgroundAttachment:"scroll"})}}},n(".et_pb_accordion").on("touchstart",(function(t){if("desktop"!==At()){var e=n(t.target);(e.hasClass("et_pb_toggle_title")||e.hasClass("et_fb_toggle_overlay"))&&(t.preventDefault(),e.trigger("click"))}})),n("body").on("click",".et_pb_toggle_title, .et_fb_toggle_overlay",(function(){var t,e,i=n(this).closest(".et_pb_toggle"),a=i.parents(".et_pb_section"),o=i.find(".et_pb_toggle_content"),r=i.closest(".et_pb_accordion"),s=r.length,c=r.hasClass("et_pb_accordion_toggling"),l=n(window).scrollTop(),_=0,d=i.hasClass("et_pb_toggle_close")?"closed":"opened";if(s){if(i.hasClass("et_pb_toggle_open")||c)return!1;r.addClass("et_pb_accordion_toggling"),t=i.siblings(".et_pb_toggle_open")}if(!o.is(":animated")&&(o.slideToggle(700,(function(){!function(t,e,n){"closed"===t?e.removeClass("et_pb_toggle_close").addClass("et_pb_toggle_open"):e.removeClass("et_pb_toggle_open").addClass("et_pb_toggle_close"),n.hasClass("et_pb_section_parallax")&&!n.children().hasClass("et_pb_parallax_css")&&et_parallax_set_height.bind(n)(),window.et_reinit_waypoint_modules()}(d,i,a)})),s)){var p=function(){t.removeClass("et_pb_toggle_open").addClass("et_pb_toggle_close"),r.removeClass("et_pb_accordion_toggling"),e=i.offset(),n("#wpadminbar").length&&(_+=n("#wpadminbar").height()),n("#top-header").length&&(_+=n("#top-header").height()),n("#main-header").length&&!window.et_is_vertical_nav&&(_+=n("#main-header").height()),l+_>e.top&&n("html, body").animate({scrollTop:e.top-_-50})};t.find(".et_pb_toggle_content").is(":visible")?t.find(".et_pb_toggle_content").slideToggle(700,p):(t.find(".et_pb_toggle_content").hide(),p())}}));var bt=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,vt=n(".et_pb_contact_form_container"),mt=!d.isBuilder&&n(".et_pb_module.et_pb_recaptcha_enabled").length>0,gt=document.body.innerHTML.match(/<script [^>]*src="[^"].*google.com\/recaptcha\/api.js\?.*render.*"[^>]*>([\s\S]*?)<\/script>/gim),wt=n("#et-recaptcha-v3-js"),yt=gt&&gt.length>wt.length;function xt(t){var e=t||k;e&&e.length&&e.each((function(){var t=n(this).parent(".et_pb_section"),e=n(this).find(".et_pb_slide"),i=e.find(".et_pb_container"),a=0,o=0,r=n(this).hasClass("et_pb_post_slider_image_top"),s=n(this).hasClass("et_pb_post_slider_image_bottom");if(t.is(".et_pb_section_first"))return!0;i.css("height",""),e.addClass("et_pb_temp_slide"),"object"===u(n(this).data("et_pb_simple_slider"))&&n(this).data("et_pb_simple_slider").et_fix_slider_content_images(),e.each((function(){var t=parseFloat(n(this).innerHeight()),e=n(this).find(".et_pb_slide_image"),i=parseFloat(n(this).data("adjustedHeight")),c=isNaN(i)?0:i;t=c&&c<t?t-c:t,(r||s)&&(e.length?(o=r?parseFloat(e.css("margin-top")):parseFloat(e.css("margin-bottom")),o+=10):n(this).find(".et_pb_container").addClass("et_pb_no_image")),0!==n(this).find(".et_pb_slide_description").length&&0!==n(this).find(".et_pb_slide_description").html().trim().length||n(this).find(".et_pb_container").addClass("et_pb_empty_slide"),a<t&&(a=t)})),a+o<1?i.css("height",""):i.css("height","".concat(a+o,"px")),e.removeClass("et_pb_temp_slide"),e.filter(".et-pb-active-slide").find(".et_pb_slide_image").children("img").addClass("active")}))}!d.isBuilder&&(yt||mt&&at&&at.isEnabled())&&n("body").addClass("et_pb_recaptcha_enabled"),vt.length&&vt.each((function(){var t=n(this),e=t.find("form"),i=void 0!==t.data("redirect_url")?t.data("redirect_url"):"";e.find("input[type=checkbox]").on("change",(function(){var t=n(this),e=t.siblings("input[type=text]").first(),i=t.prop("checked");e.val(i?e.data("checked"):e.data("unchecked"))})),e.on("submit",(function(e){e.preventDefault();var a=n(this);if(!0!==a.data("submitted")){var o=a.find('input[type=text], .et_pb_checkbox_handle, .et_pb_contact_field[data-type="radio"], textarea, select'),r=a.find(".et_pb_contact_captcha"),s=t.find(".et-pb-contact-message"),c=void 0!==t.data("form_unique_num")?t.data("form_unique_num"):0,l=!1,_="",d="",p=[],u=[],h=n.Deferred();at&&t.hasClass("et_pb_recaptcha_enabled")?at.interaction("Divi/Module/ContactForm/".concat(c)).then((function(t){h.resolve(t)})):h.resolve(""),n.when(h).done((function(e){if(_="<ul>",o.removeClass("et_contact_error"),o.each((function(){var t=n(this),e=!1;"checkbox"===t.data("field_type")&&(e=t.parents(".et_pb_contact_field")).removeClass("et_contact_error"),"radio"===t.data("type")&&(e=(t=t.find('input[type="radio"]')).parents(".et_pb_contact_field"));var i,a=t.attr("id"),o=t.val(),r=t.siblings("label").first().text(),s=void 0!==t.data("field_type")?t.data("field_type"):"text",c=void 0!==t.data("required_mark")?t.data("required_mark"):"not_required",f=void 0!==t.data("original_id")?t.data("original_id"):"",h=!1;if("radio"===s){if(0!==e.find('input[type="radio"]').length){s="radio";var b=e.find('input[type="radio"]').first();c=void 0!==b.data("required_mark")?b.data("required_mark"):"not_required",o="",e.find('input[type="radio"]:checked')&&(o=e.find('input[type="radio"]:checked').val())}r=e.find(".et_pb_contact_form_label").text(),a=e.find('input[type="radio"]').first().attr("name"),f=e.attr("data-id"),0===e.find('input[type="radio"]:checked').length&&(h=!0)}if("checkbox"===s){if(o="",0!==e.find('input[type="checkbox"]').length){s="checkbox";var v=e.find(".et_pb_checkbox_handle");c=void 0!==v.data("required_mark")?v.data("required_mark"):"not_required",e.find('input[type="checked"]:checked')&&(o=[],e.find('input[type="checkbox"]:checked').each((function(){o.push(n(this).val())})),o=o.join(", "))}if(e.find(".et_pb_checkbox_handle").val(o),0===(r=e.find(".et_pb_contact_form_label").text()).trim().length){var m=e.find('.et_pb_contact_field_checkbox input[type="checkbox"]');if(m.length>0){var g=[];m.each((function(){g.push(n(this).val())})),0===(r=g.join(", ")).trim().length&&(r=et_pb_custom.wrong_checkbox)}}a=e.find(".et_pb_checkbox_handle").attr("name"),f=e.attr("data-id"),0===e.find('input[type="checkbox"]:checked').length&&(h=!0)}if(r=r.replace(/"/g,"&quot;"),t.is(":visible")||!t.parents("[data-conditional-logic]").length||"hidden"===t.attr("type")||"radio"===t.attr("type"))if("hidden"!==t.attr("type")&&"radio"!==t.attr("type")||t.parents(".et_pb_contact_field").is(":visible")){if(void 0!==a&&p.push({field_id:a,original_id:f,required_mark:c,field_type:s,field_label:r}),"required"!==c||""!==o&&!0!==h||t.is('[id^="et_pb_contact_et_number_"]')||(!1===e?t.addClass("et_contact_error"):e.addClass("et_contact_error"),l=!0,""===(i=r)&&(i=et_pb_custom.captcha),d+="<li>".concat(i,"</li>")),"email"===s){var w=o.trim().toLowerCase(),y=function(t){if(6>t.length)return!1;if(!1===function(t,e,n){var i=(t+"").indexOf("@",1);return-1!==i&&i}(t))return!1;var e=t.split("@",2),n=e[0],i=e[1];if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(n))return!1;if(/\.{2,}/.test(i))return!1;if(s(i," \t\n\r\0\v.")!==i)return!1;var a=i.split(".");if(2>a.length)return!1;for(var o in a){var r=a[o];if(s(r," \t\n\r\0\v-")!==r)return!1;if(!/^[a-z0-9-]+$/i.test(r))return!1}return!0;function s(t,e){var n=[" ","\n","\r","\t","\f","\v","\xa0","\u2000","\u2001","\u2002","\u2003","\u2004","\u2005","\u2006","\u2007","\u2008","\u2009","\u200a","\u200b","\u2028","\u2029","\u3000"].join(""),i=0,a=0;for(t+="",e&&(n=(e+"").replace(/([[\]().?/*{}+$^:])/g,"$1")),i=t.length,a=0;a<i;a++)if(-1===n.indexOf(t.charAt(a))){t=t.substring(a);break}for(a=(i=t.length)-1;a>=0;a--)if(-1===n.indexOf(t.charAt(a))){t=t.substring(0,a+1);break}return-1===n.indexOf(t.charAt(0))?t:""}}(w);""===w||r===w||y||(t.addClass("et_contact_error"),l=!0,y||(_+="<li>".concat(et_pb_custom.invalid,"</li>")))}}else u.push(f);else u.push(f)})),r.length&&""!==r.val()){var h=parseInt(r.data("first_digit")),b=parseInt(r.data("second_digit"));parseInt(r.val())!==h+b&&(_+="<li>".concat(et_pb_custom.wrong_captcha,"</li>"),l=!0,h=Math.floor(15*Math.random()+1),b=Math.floor(15*Math.random()+1),r.data("first_digit",h),r.data("second_digit",b),r.val(""),a.find(".et_pb_contact_captcha_question").empty().append("".concat(h," + ").concat(b)))}if(!l){a.data("submitted",!0);var v=a.attr("action"),m=a.serializeArray();m.push({name:"et_pb_contact_email_fields_".concat(c),value:JSON.stringify(p)}),m.push({name:"token",value:e}),u.length>0&&m.push({name:"et_pb_contact_email_hidden_fields_".concat(c),value:JSON.stringify(u)}),t.removeClass("et_animated").removeAttr("style").fadeTo("fast",.2,(function(){t.load("".concat(v," #").concat(t.attr("id"),"> *"),m,(function(e,a){if("error"===a){var o=n("#".concat(t.attr("id")),e);o.length>0&&t.html(o)}n(e).find(".et_pb_contact_error_text").length||(St(t,"con_goal"),""!==i&&(window.location.href=i)),t.fadeTo("fast",1)}))}))}_+="</ul>",""!==d&&("<ul></ul>"!==_&&(_='<p class="et_normal_padding">'.concat(et_pb_custom.contact_error_message,"</p>").concat(_)),d="<ul>".concat(d,"</ul>"),d="<p>".concat(et_pb_custom.fill_message,"</p>").concat(d),_=d+_),"<ul></ul>"!==_&&(s.html(_),t.parents(".et_pb_section_parallax").length&&t.parents(".et_pb_section_parallax").each((function(){!n(this).children(".et_parallax_bg").hasClass("et_pb_parallax_css")&&f.trigger("resize")})))}))}}))})),window.et_pb_play_overlayed_video=function(t){var e,i,a,o=t,r=o.closest(".et_pb_video_overlay"),s=o.closest(".et_pb_video, .et_main_video_container, .et_pb_video_wrap"),c=s.find("iframe"),l=c.length>0,_=s.find(".fb-video").length;if(l){if(_&&void 0!==c[2]&&(c=n(c[2])),i=(e=c.attr("src")).split("?"),-1!==e.indexOf("autoplay="))return;a=void 0!==i[1]?"".concat(i[0],"?autoplay=1&amp;").concat(i[1]):"".concat(i[0],"?autoplay=1"),c.attr({src:a})}else s.find("video").get(0).play();r.fadeTo(500,0,(function(){n(this).css("display","none")}))},n("body").on("click",".et_pb_post .et_pb_video_overlay, .et_pb_video .et_pb_video_overlay, .et_pb_video_wrap .et_pb_video_overlay",(function(){var t=n(this);return et_pb_play_overlayed_video(t),!1})),window.et_pb_resize_section_video_bg=function(t){(void 0!==t?t.closest(".et_pb_section_video_bg"):n(".et_pb_section_video_bg")).each((function(){var t=n(this);x(t)&&(t.removeAttr("data-ratio"),t.find("video").removeAttr("style"));var e,i,a=t.find("video"),o=(a.prop("videoWidth")||parseInt(a.width()))/(a.prop("videoHeight")||parseInt(a.height())),r=t.find(".mejs-video, video, object").css("margin","0px"),s=t.closest(".et_pb_section_video").length?t.closest(".et_pb_section_video"):t.closest(".et_pb_slides"),c=s.innerWidth(),l=s.innerHeight();void 0!==t.attr("data-ratio")||isNaN(o)||t.attr("data-ratio",o),c/l<o?(e=l*o,i=l):(e=c,i=c/o),r.width(e).height(i),d.isBuilder&&setTimeout((function(){r.width(e).height(i)}),0)}))},window.et_pb_center_video=function(t){var e=void 0!==t?t:n(".et_pb_section_video_bg .mejs-video");e.length&&e.each((function(){var e=n(this);if(et_pb_adjust_video_margin(e),x(e)&&setTimeout((function(){et_pb_adjust_video_margin(e)}),0),void 0!==t&&t.closest(".et_pb_slider").length&&!t.closest(".et_pb_first_video").length)return!1}))},window.et_pb_adjust_video_margin=function(t){var e=0-t.width()/2;t.css("margin-left","".concat(e,"px"))};var Ct={};function kt(){var t=n(window).width();n(".nav li.et-reverse-direction-nav").removeClass("et-reverse-direction-nav"),n(".nav li li ul").each((function(){var e=n(this),i=e.width(),a=e.offset(),o=e.parents(".nav > li");a.left>t-i&&o.addClass("et-reverse-direction-nav")}))}function jt(t,e,n){n=n||t.data("et_waypoint_max_instances")||1;var i=t.data("et_waypoint")||[],a=(0,r.default)(window,["et_pb_custom","waypoints_options"]);if(a){var s=(0,r.default)(a,"context",[]);s&&(0,o.default)(s)&&(0,c.default)(s,(function(n){var i=t.closest(n);if(i.length>0)return e.context=i,!1}))}if(i.length<n){var l=t.waypoint(e);l&&l.length>0&&(i.push(l[0]),t.data("et_waypoint",i))}else for(var _=0;_<i.length;_++)i[_].context.refresh()}function Tt(t,e){var i=t.parents(".et_pb_section").index(),a=n(".et_pb_section").length-1,o=t.parents(".et_pb_row").index(),r=t.parents(".et_pb_section").children().length-1;return i===a&&o===r?"bottom-in-view":e}function Ot(t){for(var e=!1,n=[".et_pb_toggle_title",".mejs-container *",".et_pb_contact_field input",".et_pb_contact_field textarea",".et_pb_contact_field_checkbox *",".et_pb_contact_field_radio *",".et_pb_contact_captcha",".et_pb_tabs_controls a",".flex-control-nav *",".et_pb_menu__search-button",".et_pb_menu__close-search-button",".et_pb_menu__search-container *",".et_pb_fullwidth_header_scroll *"],i=0;i<n.length;i++)if(t.is(n[i])){e=!0;break}return e}function St(t,e,n){if(!d.isBuilder){var i=function(t){var e=t.attr("class"),n=parseInt(e.replace(/^.*et_pb_ab_goal_id-(\d+).*$/,"$1"));return isNaN(n)?0:n}(t),a=void 0===e?"con_goal":e;t.hasClass("et_pb_ab_goal")&&!nt[i][a]?Pt(a,i):void 0!==n&&n()}}function Pt(t,e,i,a,o){var r=void 0===e?et_pb_custom.page_id:e,c=void 0===i?zt(r):i,l=void 0===a?function(t){for(var e=0;e<et_pb_custom.ab_tests;e++)if(et_pb_custom.ab_tests[e].post_id===t)return et_pb_custom.ab_tests[e].test_id;return et_pb_custom.unique_test_id}(r):a,_=JSON.stringify({test_id:r,subject_id:c,record_type:t}),d="click_goal"===t||"con_short"===t?"":c;Mt(365,"et_pb_ab_".concat(t,"_").concat(r).concat(l).concat(d,"=true")),(0,s.default)(nt,[r,t],!0),n.ajax({type:"POST",url:et_pb_custom.ajaxurl,data:{action:"et_pb_update_stats_table",stats_data_array:_,et_ab_log_nonce:et_pb_custom.et_ab_log_nonce}}).always((function(){void 0!==o&&o()}))}function zt(t){var e=n("*[class*=et_pb_ab_subject_id-".concat(t,"_]"));return!(e.length<=0||n("html").is(".et_fb_preview_active--wireframe_preview"))&&e.attr("class").split("et_pb_ab_subject_id-")[1].split(" ")[0].split("_")[1]}function It(t){return n(".et_pb_ab_goal_id-".concat(t))}function At(){var t=f.width(),e="desktop";return t<=980&&t>767?e="tablet":t<=767&&(e="phone"),e}function Et(t,e){return Bt(t)==e}function Bt(t){return function(){for(var t=document.cookie.split("; "),e={},n=t.length-1;n>=0;n--){var i=t[n].split("=");e[i[0]]=i[1]}return e}()[t]}function Mt(t,e){var n,i,a=(n=24*t*60*60*1e3,(i=new Date).setTime(i.getTime()+n),"; expires=".concat(i.toUTCString()));document.cookie="".concat(e+a,"; path=/")}function Ht(){if(!window.et_is_fixed_nav)return 0;var t=void 0===n("#main-header").attr("data-fixed-height-onload")?0:n("#main-header").attr("data-fixed-height-onload");return window.et_is_fixed_nav?parseFloat(t):0}window.et_fix_slider_height=d.isBuilder?function(t){var e=t||k;if(e&&e.length){var n=e.data("address");Ct[n]||(Ct[n]=window.et_pb_debounce(xt,100)),Ct[n](t)}}:xt,kt(),et_pb_form_placeholders_init(n(".et_pb_comments_module #commentform")),n(".et-menu-nav ul.nav").each((function(t){et_duplicate_menu(n(this),n(this).closest(".et_pb_module").find("div .mobile_nav"),"mobile_menu".concat(t+1),"et_mobile_menu")})),n(".et_pb_menu, .et_pb_fullwidth_menu").each((function(){var t=n(this),e=t.data("bg_color");e&&t.find("ul").css({"background-color":e})})),P.on("click",(function(t){et_pb_submit_newsletter(n(this),t)})),z.on("keypress",(function(t){if(13===(t.which||t.keyCode)){var e=n(this).closest("form").find(".et_pb_newsletter_button");et_pb_submit_newsletter(e,t)}})),P.closest(".et_pb_newsletter").find("input[type=checkbox]").on("change",(function(){var t=n(this),e=t.siblings("input[type=text]").first(),i=t.prop("checked");e.val(i?e.data("checked"):e.data("unchecked"))})),window.et_pb_submit_newsletter=function(t,e){if(t.closest(".et_pb_login_form").length)St(t.closest(".et_pb_newsletter"),"con_goal");else{if(void 0!==e&&e.preventDefault(),n(".et_pb_feedburner_form").length>0){var i=n(".et_pb_feedburner_form input[name=uri]").val();return window.open("https://feedburner.google.com/fb/a/mailverify?uri=".concat(i),"et-feedburner-subscribe","scrollbars=yes,width=550,height=520"),!0}var a=t.closest(".et_pb_newsletter"),o=a.find('input[name="et_pb_signup_firstname"]'),r=a.find('input[name="et_pb_signup_lastname"]'),s=a.find('input[name="et_pb_signup_email"]'),c=a.find('input[name="et_pb_signup_list_id"]').val(),l=a.find(".et_pb_newsletter_error").hide(),_=a.find('input[name="et_pb_signup_provider"]').val(),d=a.find('input[name="et_pb_signup_account_name"]').val(),p=a.find('input[name="et_pb_signup_ip_address"]').val(),u=a.find('input[name="et_pb_signup_checksum"]').val(),h=a.find(".et_pb_newsletter_fields"),b=a.find(".et_pb_newsletter_success"),v=a.data("redirect_url"),m=a.data("redirect_query"),g={},w=[],y="<ul>",x="",C=h.find('input[type=text], .et_pb_checkbox_handle, .et_pb_contact_field[data-type="radio"], textarea, select').filter(".et_pb_signup_custom_field, .et_pb_signup_custom_field *");o.removeClass("et_pb_signup_error"),r.removeClass("et_pb_signup_error"),s.removeClass("et_pb_signup_error"),C.removeClass("et_contact_error"),l.html("");var k=!0,j=t.closest(".et_pb_newsletter_form form");if(j.length>0&&"function"==typeof j[0].reportValidity&&(k=j[0].reportValidity()),o.length>0&&!o.val()&&(o.addClass("et_pb_signup_error"),k=!1),r.length>0&&!r.val()&&(r.addClass("et_pb_signup_error"),k=!1),bt.test(s.val())||(s.addClass("et_pb_signup_error"),k=!1),k){if(C.each((function(){var t=n(this),e=!1;["checkbox","booleancheckbox"].includes(t.data("field_type"))&&(e=t.parents(".et_pb_contact_field")).removeClass("et_contact_error"),"radio"===t.data("type")&&(e=(t=t.find('input[type="radio"]')).parents(".et_pb_contact_field"));var i,a=t.data("id"),o=t.val(),r=t.siblings("label").first().text(),s=void 0!==t.data("field_type")?t.data("field_type"):"text",c=void 0!==t.data("required_mark")?t.data("required_mark"):"not_required",l=void 0!==t.data("original_id")?t.data("original_id"):"",d=!1;if(a||(a=t.data("original_id")),"radio"===s){if(0!==e.find('input[type="radio"]').length){var p=e.find('input[type="radio"]').first();c=void 0!==p.data("required_mark")?p.data("required_mark"):"not_required",o="",e.find('input[type="radio"]:checked')&&(o=e.find('input[type="radio"]:checked').val())}r=e.find(".et_pb_contact_form_label").text(),a=t.data("original_id"),n.isEmptyObject(o)||(g[a]=o),0===e.find('input[type="radio"]:checked').length&&(d=!0),o&&(g[a]=o)}else if(["checkbox","booleancheckbox"].includes(s)){if(o={},0!==e.find('input[type="checkbox"]').length){var u=e.find(".et_pb_checkbox_handle");c=void 0!==u.data("required_mark")?u.data("required_mark"):"not_required",e.find('input[type="checked"]:checked')&&e.find('input[type="checkbox"]:checked').each((function(){if("booleancheckbox"===s)o=n(this).val();else{var t=n(this).data("id");o[t]=n(this).val()}}))}if(0===(r=e.find(".et_pb_contact_form_label").text()).trim().length){var f=e.find('.et_pb_contact_field_checkbox input[type="checkbox"]');if(f.length>0){var h=[];f.each((function(){h.push(n(this).val())})),0===(r=h.join(", ")).trim().length&&(r=et_pb_custom.wrong_checkbox)}}a=e.attr("data-id"),n.isEmptyObject(o)||(g[a]=o),0===e.find('input[type="checkbox"]:checked').length&&(d=!0)}else if("ontraport"===_&&"select"===s){var b=t.find(":selected");g[a]=b.length>0?b.data("id"):o}else g[a]=o;if("mailchimp"===_&&["select","radio"].indexOf(s)>-1){var v=(b="select"===s?t.find(":selected"):e.find('input[type="radio"]:checked')).length>0?b.data("id"):null;null!==v&&(g[a]={},g[a][v]=o)}if(r=r.replace(/"/g,"&quot;"),t.is(":visible")||"hidden"===t.attr("type")||"radio"===t.attr("type"))if("hidden"!==t.attr("type")&&"radio"!==t.attr("type")||t.parents(".et_pb_contact_field").is(":visible")){if("required"!==c||""!==o&&!0!==d||(!1===e?t.addClass("et_contact_error"):e.addClass("et_contact_error"),k=!1,""===(i=r)&&(i=et_pb_custom.captcha),x+="<li>".concat(i,"</li>")),"email"===s){var m=o.trim().toLowerCase(),C=bt.test(m);""===m||r===m||C||(t.addClass("et_contact_error"),k=!1,C||(y+="<li>".concat(et_pb_custom.invalid,"</li>")))}}else w.push(a);else w.push(l)})),y+="</ul>",""!==x&&("<ul></ul>"!==y&&(y='<p class="et_normal_padding">'.concat(et_pb_custom.contact_error_message,"</p>").concat(y)),x="<ul>".concat(x,"</ul>"),x="<p>".concat(et_pb_custom.fill_message,"</p>").concat(x),y=x+y),"<ul></ul>"!==y)return l.html(y).show(),void(a.parents(".et_pb_section_parallax").length&&a.parents(".et_pb_section_parallax").each((function(){!n(this).children(".et_parallax_bg").hasClass("et_pb_parallax_css")&&f.trigger("resize")})));var T=n.Deferred();at&&a.hasClass("et_pb_recaptcha_enabled")?at.interaction("Divi/Module/EmailOptin/List/".concat(c)).then((function(t){T.resolve(t)})):T.resolve(""),n.when(T).done((function(t){n.ajax({type:"POST",url:et_pb_custom.ajaxurl,dataType:"json",data:{action:"et_pb_submit_subscribe_form",et_frontend_nonce:et_pb_custom.et_frontend_nonce,et_list_id:c,et_firstname:o.val(),et_lastname:r.val(),et_email:s.val(),et_provider:_,et_account:d,et_ip_address:p,et_custom_fields:g,et_hidden_fields:w,token:t,et_checksum:u},beforeSend:function(){a.find(".et_pb_newsletter_button").addClass("et_pb_button_text_loading").find(".et_subscribe_loader").show()},complete:function(){a.find(".et_pb_newsletter_button").removeClass("et_pb_button_text_loading").find(".et_subscribe_loader").hide()},success:function(t){t?(t.error&&l.show().append("<h2>").text(t.error),t.success&&(v?St(a,"con_goal",(function(){var t=function(){var t={};return m?(o.length>0&&m.indexOf("name")>-1&&(t.first_name=o.val()),r.length>0&&m.indexOf("last_name")>-1&&(t.last_name=r.val()),m.indexOf("email")>-1&&(t.email=s.val()),m.indexOf("ip_address")>-1&&(t.ip_address=a.data("ip_address")),m.indexOf("css_id")>-1&&(t.form_id=a.attr("id")),decodeURIComponent(n.param(t))):""}();t.length&&(v.indexOf("?")>-1?v+="&":v+="?"),window.location=v+t})):(St(a,"con_goal"),a.find(".et_pb_newsletter_fields").hide(),b.show()))):l.html(et_pb_custom.subscription_failed).show()}})}))}}},window.et_fix_testimonial_inner_width=function(){var t=n(window).width();t>959?n(".et_pb_testimonial").each((function(){if(n(this).is(":visible")){var t=n(this),e=t.find(".et_pb_testimonial_portrait"),i=e.outerWidth(!0)||0,a=t.find(".et_pb_testimonial_description"),o=t.closest(".et_pb_column");i>90&&(e.css("padding-bottom","0px"),e.width("90px"),e.height("90px"));var r=o.hasClass("et_pb_column_1_3")||o.hasClass("et_pb_column_1_4")||o.hasClass("et_pb_column_1_5")||o.hasClass("et_pb_column_1_6")||o.hasClass("et_pb_column_2_5")||o.hasClass("et_pb_column_3_8")?0:i;a.css("margin-left","".concat(r,"px"))}})):t>767?n(".et_pb_testimonial").each((function(){if(n(this).is(":visible")){var t=n(this),e=t.find(".et_pb_testimonial_portrait").outerWidth(!0)||0,i=t.find(".et_pb_testimonial_description"),a=t.closest(".et_pb_column"),o=a.hasClass("et_pb_column_1_4")||a.hasClass("et_pb_column_1_5")||a.hasClass("et_pb_column_1_6")||a.hasClass("et_pb_column_2_5")||a.hasClass("et_pb_column_3_8")?0:e;i.css("margin-left","".concat(o,"px"))}})):n(".et_pb_testimonial_description").removeAttr("style")},window.et_fix_testimonial_inner_width(),window.et_pb_video_background_init=function(t,e){var n=t.closest(".et_pb_section_video_bg"),i=!1,a=!0;e.onplaying=function(){i=!0,a=!1},e.onpause=function(){i=!1,a=!0},jt(n,{offset:"100%",handler:function(o){var r=n.hasClass("et_pb_video_play_outside_viewport");t.is(":visible")&&"down"===o?e.paused&&!i&&e.play():t.is(":visible")&&"up"===o&&(e.paused||a||r||e.pause())}},2),jt(n,{offset:function(){var t=this.element.clientHeight,e=Math.ceil(window.innerHeight/2);return t>e&&(e=t),-1*e},handler:function(o){var r=n.hasClass("et_pb_video_play_outside_viewport");t.is(":visible")&&"up"===o?e.paused&&!i&&e.play():t.is(":visible")&&"down"===o&&(e.paused||a||r||e.pause())}},2)},window.et_animate_element=function(t){var e=t;if(!e.hasClass("et_had_animation")){var i=e.attr("data-animation-style"),a=e.attr("data-animation-repeat"),o=e.attr("data-animation-duration"),r=e.attr("data-animation-delay"),s=e.attr("data-animation-intensity"),c=e.attr("data-animation-starting-opacity"),l=e.attr("data-animation-speed-curve"),_=e.parent(".et_pb_button_module_wrapper"),d=n("body").hasClass("edge");e.is(".et_pb_section")&&"roll"===i&&n("".concat(et_frontend_scripts.builderCssContainerPrefix,", ").concat(et_frontend_scripts.builderCssLayoutPrefix)).css("overflow-x","hidden"),et_remove_animation_data(e);var p=isNaN(parseInt(c))?0:.01*parseInt(c);-1===n.inArray(l,["linear","ease","ease-in","ease-out","ease-in-out"])&&(l="ease-in-out"),_.length>0&&(e.removeClass("et_animated"),(e=_).addClass("et_animated")),e.css({"animation-duration":o,"animation-delay":r,opacity:p,"animation-timing-function":l}),"slideTop"!==i&&"slideBottom"!==i||e.css("left","0px");for(var u={},f=isNaN(parseInt(s))?50:parseInt(s),h=["slide","zoom","flip","fold","roll"],b=!1,v=!1,m=0;m<h.length;m++){var g=h[m];if(i&&i.substr(0,g.length)===g){b=g,""!==(v=i.substr(g.length,i.length))&&(v=v.toLowerCase());break}}if(!1!==b&&!1!==v&&(u=function(t,e,n){var i={};switch(t){case"slide":switch(e){case"top":i={transform:"translate3d(0, ".concat(-2*n,"%, 0)")};break;case"right":i={transform:"translate3d(".concat(2*n,"%, 0, 0)")};break;case"bottom":i={transform:"translate3d(0, ".concat(2*n,"%, 0)")};break;case"left":i={transform:"translate3d(".concat(-2*n,"%, 0, 0)")};break;default:i={transform:"scale3d(".concat(a=.01*(100-n),", ").concat(a,", ").concat(a,")")}}break;case"zoom":var a;i={transform:"scale3d(".concat(a=.01*(100-n),", ").concat(a,", ").concat(a,")")};break;case"flip":switch(e){case"right":var o=Math.ceil(.9*n);i={transform:"perspective(2000px) rotateY(".concat(o,"deg)")};break;case"left":o=-1*Math.ceil(.9*n),i={transform:"perspective(2000px) rotateY(".concat(o,"deg)")};break;case"top":default:o=Math.ceil(.9*n),i={transform:"perspective(2000px) rotateX(".concat(o,"deg)")};break;case"bottom":o=-1*Math.ceil(.9*n),i={transform:"perspective(2000px) rotateX(".concat(o,"deg)")}}break;case"fold":switch(e){case"top":o=-1*Math.ceil(.9*n),i={transform:"perspective(2000px) rotateX(".concat(o,"deg)")};break;case"bottom":o=Math.ceil(.9*n),i={transform:"perspective(2000px) rotateX(".concat(o,"deg)")};break;case"left":o=Math.ceil(.9*n),i={transform:"perspective(2000px) rotateY(".concat(o,"deg)")};break;default:o=-1*Math.ceil(.9*n),i={transform:"perspective(2000px) rotateY(".concat(o,"deg)")}}break;case"roll":switch(e){case"right":case"bottom":o=-1*Math.ceil(3.6*n),i={transform:"rotateZ(".concat(o,"deg)")};break;case"top":case"left":o=Math.ceil(3.6*n),i={transform:"rotateZ(".concat(o,"deg)")};break;default:o=Math.ceil(3.6*n),i={transform:"rotateZ(".concat(o,"deg)")}}}return i}(b,v,f)),n.isEmptyObject(u)||e.css(d?n.extend(u,{transition:"transform 0s ease-in"}):u),e.addClass("et_animated"),e.addClass("et_is_animating"),e.addClass(i),e.addClass(a),!a){var w=parseInt(o),y=parseInt(r);setTimeout((function(){et_remove_animation(e)}),w+y),d&&!n.isEmptyObject(u)&&setTimeout((function(){e.css("transition","")}),w+y+50)}}},window.et_process_animation_data=function(t){if("undefined"!=typeof et_animation_data&&et_animation_data.length>0){n("body").css("overflow-x","hidden"),n("#page-container").css("overflow-y","hidden");for(var e=0;e<et_animation_data.length;e++){var i=et_animation_data[e];if(i.class&&i.style&&i.repeat&&i.duration&&i.delay&&i.intensity&&i.starting_opacity&&i.speed_curve){var a=n(".".concat(i.class)),o=At(),r="desktop"===o;it=o;var s="";r||(s+="_".concat(o));var c=r||void 0===i["style".concat(s)]?i.style:i["style".concat(s)],l=r||void 0===i["repeat".concat(s)]?i.repeat:i["repeat".concat(s)],_=r||void 0===i["duration".concat(s)]?i.duration:i["duration".concat(s)],d=r||void 0===i["delay".concat(s)]?i.delay:i["delay".concat(s)],p=r||void 0===i["intensity".concat(s)]?i.intensity:i["intensity".concat(s)],u=r||void 0===i["starting_opacity".concat(s)]?i.starting_opacity:i["starting_opacity".concat(s)],f=r||void 0===i["speed_curve".concat(s)]?i.speed_curve:i["speed_curve".concat(s)];a.attr({"data-animation-style":c,"data-animation-repeat":"once"===l?"":"infinite","data-animation-duration":_,"data-animation-delay":d,"data-animation-intensity":p,"data-animation-starting-opacity":u,"data-animation-speed-curve":f}),!0===t?a.hasClass("et_pb_circle_counter")?(jt(a,{offset:"100%",handler:function(){var t=n(this.element).find(".et_pb_circle_counter_inner");t.data("PieChartHasLoaded")||void 0===t.data("easyPieChart")||(t.data("easyPieChart").update(t.data("number-value")),t.data("PieChartHasLoaded",!0),et_animate_element(n(this.element)))}}),jt(a,{offset:"bottom-in-view",handler:function(){var t=n(this.element).find(".et_pb_circle_counter_inner");t.data("PieChartHasLoaded")||void 0===t.data("easyPieChart")||(t.data("easyPieChart").update(t.data("number-value")),t.data("PieChartHasLoaded",!0),et_animate_element(n(this.element)))}})):a.hasClass("et_pb_number_counter")?(jt(a,{offset:"100%",handler:function(){n(this.element).data("easyPieChart").update(n(this.element).data("number-value")),et_animate_element(n(this.element))}}),jt(a,{offset:"bottom-in-view",handler:function(){n(this.element).data("easyPieChart").update(n(this.element).data("number-value")),et_animate_element(n(this.element))}})):jt(a,{offset:"100%",handler:function(){et_animate_element(n(this.element))}}):et_animate_element(a)}}}},window.et_has_animation_data=function(t){var e=!1;if("undefined"!=typeof et_animation_data&&et_animation_data.length>0)for(var n=0;n<et_animation_data.length;n++){var i=et_animation_data[n];if(i.class&&t.hasClass(i.class)){e=!0;break}}return e},window.et_get_animation_classes=function(){return["et_animated","et_is_animating","infinite","et-waypoint","fade","fadeTop","fadeRight","fadeBottom","fadeLeft","slide","slideTop","slideRight","slideBottom","slideLeft","bounce","bounceTop","bounceRight","bounceBottom","bounceLeft","zoom","zoomTop","zoomRight","zoomBottom","zoomLeft","flip","flipTop","flipRight","flipBottom","flipLeft","fold","foldTop","foldRight","foldBottom","foldLeft","roll","rollTop","rollRight","rollBottom","rollLeft","transformAnim"]},window.et_remove_animation=function(t){if(!t.hasClass("infinite")){var e=et_get_animation_classes();t.is(".et_pb_section")&&t.is(".roll")&&n("".concat(et_frontend_scripts.builderCssContainerPrefix,", ").concat(et_frontend_scripts.builderCssLayoutPrefix)).css("overflow-x",""),t.removeClass(e.join(" ")),t.css({"animation-delay":"","animation-duration":"","animation-timing-function":"",opacity:"",transform:"",left:""}),t.addClass("et_had_animation")}},window.et_remove_animation_data=function(t){var e=[];if(!(0,a.default)(t.get(0))){for(var i=t.get(0).attributes,o=0;o<i.length;o++)"data-animation-"===i[o].name.substring(0,15)&&e.push(i[o].name);n.each(e,(function(e,n){t.removeAttr(n)}))}},window.et_reinit_waypoint_modules=et_pb_debounce((function(){var t=n(".et_pb_circle_counter"),e=n(".et_pb_number_counter"),a=n(".et_pb_section_video_bg video");if(n.fn.waypoint&&window.et_pb_custom&&"yes"!==window.et_pb_custom.ignore_waypoints&&!d.isBuilder)et_process_animation_data(!0),n(".et-waypoint").each((function(){jt(n(this),{offset:Tt(n(this),"100%"),handler:function(){n(this.element).addClass("et-animated")}},2)})),t.length&&t.each((function(){var t=n(this).find(".et_pb_circle_counter_inner");t.is(":visible")&&!et_has_animation_data(t)&&jt(t,{offset:Tt(n(this),"100%"),handler:function(){t.data("PieChartHasLoaded")||void 0===t.data("easyPieChart")||i||(t.data("easyPieChart").update(t.data("number-value")),t.data("PieChartHasLoaded",!0))}},2)})),e.length&&e.each((function(){var t=n(this);et_has_animation_data(t)||jt(t,{offset:Tt(n(this),"100%"),handler:function(){t.data("easyPieChart").update(t.data("number-value"))}})})),d.isBuilder||n.each(et_pb_custom.ab_tests,(function(t,e){var i=It(e.post_id);if(0===i.length)return!0;jt(i,{offset:Tt(n(this),"80%"),handler:function(){!nt[e.post_id].read_goal&&i.length&&i.visible(!0)&&(setTimeout((function(){i.length&&i.visible(!0)&&!nt[e.post_id].read_goal&&Pt("read_goal",e.post_id,void 0,e.test_id)}),3e3),St(i,"view_goal"))}})}));else{et_process_animation_data(!1);var o=d.isBuilder?"et-animated--vb":"et-animated";n(".et-waypoint").addClass(o),n(".et-waypoint").each((function(){et_animate_element(n(this))})),t.length&&t.each((function(){var t=n(this).find(".et_pb_circle_counter_inner");t.is(":visible")&&(t.data("PieChartHasLoaded")||void 0===t.data("easyPieChart")||(t.data("easyPieChart").update(t.data("number-value")),t.data("PieChartHasLoaded",!0)))})),e.length&&e.each((function(){var t=n(this);t.data("easyPieChart").update(t.data("number-value"))})),n.each(et_pb_custom.ab_tests,(function(t,e){var n=It(e.post_id);return 0===n.length||!(!nt[e.post_id].read_goal&&n.length&&n.visible(!0))||(setTimeout((function(){n.length&&n.visible(!0)&&!nt[e.post_id].read_goal&&Pt("read_goal",e.post_id,void 0,e.test_id)}),3e3),void St(n,"view_goal"))}))}a.length&&a.each((function(){var t=n(this);et_pb_video_background_init(t,this)}))}),100),"undefined"!=typeof et_link_options_data&&et_link_options_data.length>0&&n.each(et_link_options_data,(function(t,e){if(e.class&&e.url&&e.target){var i=n(".".concat(e.class));i.on("click",(function(t){if(t.target!==t.currentTarget&&!Ot(n(t.target))||t.target===t.currentTarget){t.stopPropagation();var i=e.url;if(i=(i=i.replace(/&#91;/g,"[")).replace(/&#93;/g,"]"),"_blank"===e.target)return void window.open(i);if("#product_reviews_tab"===i){var a=n(".reviews_tab a");a.length>0&&(a.trigger("click"),et_pb_smooth_scroll(a,void 0,800),history.pushState(null,"",i))}else i&&"#"===i[0]&&n(i).length?(et_pb_smooth_scroll(n(i),void 0,800),history.pushState(null,"",i)):window.location=i}})),i.on("click","a, button",(function(t){Ot(n(this))||t.stopPropagation()}))}}));var Ft={},Lt={};function Dt(){if(n.fn.fitVids){var t="iframe[src^='http://www.hulu.com'], iframe[src^='http://www.dailymotion.com'], iframe[src^='http://www.funnyordie.com'], iframe[src^='https://embed-ssl.ted.com'], iframe[src^='http://embed.revision3.com'], iframe[src^='https://flickr.com'], iframe[src^='http://blip.tv'], iframe[src^='http://www.collegehumor.com']",e="";(0,a.default)(window.lazySizes)||(t+=", iframe[src^='data:image']",e+=".lazyloading"),n(".et_pb_slide_video").fitVids(),n(".et_pb_module").fitVids({customSelector:t,ignore:e})}xt(),et_calculate_fullscreen_section_size()}function Wt(){et_fix_fullscreen_section(),et_calculate_fullscreen_section_size(),n(document).on("click",".et_pb_fullwidth_header_scroll a",et_pb_fullwidth_header_scroll),setTimeout((function(){n(".et_pb_preload").removeClass("et_pb_preload")}),500),window.HashChangeEvent&&(n(window).on("hashchange",(function(){!function(t){var i,a,o;if(t.length)if(-1!==t.indexOf(e,0)){i=t.split(e);for(var r=0;r<i.length;r++)o=(a=i[r].split(l))[0],a.shift(),o.length&&n("#".concat(o)).length&&n("#".concat(o)).trigger({type:"et_hashchange",params:a})}else o=(a=t.split(l))[0],a.shift(),o.length&&n("#".concat(o)).length&&n("#".concat(o)).trigger({type:"et_hashchange",params:a})}(window.location.hash.replace(/[^a-zA-Z0-9-_|]/g,""))})),n(window).trigger("hashchange")),W.length&&!N&&W.each((function(){et_pb_parallax_init(n(this))})),window.et_reinit_waypoint_modules(),n(".et_audio_content").length&&n(window).trigger("resize")}function qt(){setTimeout((function(){(window.et_pb_box_shadow_elements||[]).map(et_pb_box_shadow_apply_overlay)}),0)}function Nt(t,e){var i=n(window).width()>980,a=window.et_is_fixed_nav,o=n("#wpadminbar"),r=o.length&&i?o.height():0,s=n("#top-header"),c=s.length&&a&&i?s.height():0,l=n("#main-header"),_=r+c+(l.length&&a&&i?l.height():0),d=t.offset().top-_-50;void 0!==t.find(".et_pb_salvattore_content").attr("data-columns")&&(e||salvattore.registerGrid(t.find(".et_pb_salvattore_content")[0]),salvattore.recreateColumns(t.find(".et_pb_salvattore_content")[0]),t.find(".et_pb_post").css({opacity:"1"})),t.find(".et_audio_container").length>0&&"undefined"!=typeof wp&&void 0!==wp.mediaelement&&"function"==typeof wp.mediaelement.initialize&&(wp.mediaelement.initialize(),n(window).trigger("resize")),t.find(".et-waypoint, .et_pb_circle_counter, .et_pb_number_counter").length>0&&t.find(".et-waypoint, .et_pb_circle_counter, .et_pb_number_counter").each((function(){var t=n(this);t.hasClass("et_pb_circle_counter")&&window.et_pb_reinit_circle_counters(t),t.hasClass("et_pb_number_counter")&&window.et_pb_reinit_number_counters(t),t.find(".et_pb_counter_amount").length>0&&t.find(".et_pb_counter_amount").each((function(){window.et_bar_counters_init(n(this))})),n(this).css({opacity:"1"}),window.et_reinit_waypoint_modules()})),t.find(".et_pb_slider").length>0&&t.find(".et_pb_slider").each((function(){et_pb_slider_init(n(this))})),t.on("click",".et_pb_video_overlay",(function(t){t.preventDefault(),et_pb_play_overlayed_video(n(this))})),t.fitVids({customSelector:"iframe[src^='http://www.hulu.com'], iframe[src^='http://www.dailymotion.com'], iframe[src^='http://www.funnyordie.com'], iframe[src^='https://embed-ssl.ted.com'], iframe[src^='http://embed.revision3.com'], iframe[src^='https://flickr.com'], iframe[src^='http://blip.tv'], iframe[src^='http://www.collegehumor.com']"}),t.fadeTo("slow",1),"function"==typeof window.et_shortcodes_init&&window.et_shortcodes_init(t),T(),n("html, body").animate({scrollTop:d});var p=t.find(".et_pb_grid_item");p.length&&et_pb_set_responsive_grid(n(p.parent().get(0)),".et_pb_grid_item")}window.et_calc_fullscreen_section=function(t,e){var i="object"===u(t)&&"resize"===t.type,a=n(p),o=e||n(this),r=o.index(".et_pb_fullscreen"),s=i&&void 0!==Ft[r]&&t.target.window_width>Ft[r]?800:0;Ft[r]=a.width(),void 0!==Lt[r]&&clearTimeout(Lt[r]),Lt[r]=setTimeout((function(){var t=n("body"),e=n(".et-l--header").first(),i=e.length>0?e.height():0,r=o.length,s=o.index(".et_pb_fullwidth_header"),c=r?o.offset():{},l=o.children(".et_pb_fullwidth_header_container"),_=l.children(".header-content-container"),d=l.children(".header-image-container"),u=p.innerHeight||a.height(),f=p.jQuery("#wpadminbar"),h=f.length,b=h?f.height():0,v=n("#top-header"),m=v.length,g=m?v.height():0,w=n("#main-header"),y=w.length,x=y?w.outerHeight():0,C=Ht(),k=a.width()<782,j=a.width()>980,T=(a.width()<=980&&a.width(),a.width(),b+i+g+(window.et_is_vertical_nav&&j?0:x)),O=void 0!==c.top&&c.top<=T,S=p.jQuery(".edit-post-header"),P=p.jQuery(".edit-post-layout__footer");w.attr("data-height-onload")&&(x=parseFloat(w.attr("data-height-onload"))),h&&(k?O&&(u-=b):u-=b),S.length>0&&(u-=S.outerHeight()),P.length>0&&(u-=P.outerHeight()),m&&j&&(Z&&!window.et_is_vertical_nav?O||(u-=g):!window.et_is_fixed_nav||window.et_is_vertical_nav?O&&(u-=g):u-=g),y&&(j?Z&&!window.et_is_vertical_nav?O||(u-=C):window.et_is_fixed_nav&&!window.et_is_vertical_nav?u-=O?x:C:window.et_is_fixed_nav||window.et_is_vertical_nav||O&&(u-=x):O&&(u-=x)),t.hasClass("et_transparent_nav")&&t.hasClass("et_hide_nav")&&0===s&&o.css("padding-top","");var z=parseInt(o.css("borderTopWidth"));z&&(u-=z);var I=parseInt(o.css("borderBottomWidth"));if(I&&(u-=I),i>0&&0===s&&0===o.closest(e).length&&(u-=i),setTimeout((function(){o.css("min-height","".concat(u,"px")),l.css("min-height","".concat(u,"px"))}),100),l.hasClass("center")&&_.hasClass("bottom")&&d.hasClass("bottom")&&l.addClass("bottom-bottom"),l.hasClass("center")&&_.hasClass("center")&&d.hasClass("center")&&l.addClass("center-center"),l.hasClass("center")&&_.hasClass("center")&&d.hasClass("bottom")){l.addClass("center-bottom");var A=u-d.outerHeight(!0);A>0&&_.css("min-height","".concat(A,"px")).css("height","10px")}l.hasClass("center")&&_.hasClass("bottom")&&d.hasClass("center")&&l.addClass("bottom-center"),(l.hasClass("left")||l.hasClass("right"))&&!_.length&&d.length&&l.css("justify-content","flex-end"),l.hasClass("center")&&_.hasClass("bottom")&&!d.length&&_.find(".header-content").css("margin-bottom","".concat(80,"px")),_.hasClass("bottom")&&d.hasClass("center")&&(d.find(".header-image").css("margin-bottom","".concat(80,"px")),d.css("align-self","flex-end"));var E=0;_.length&&(E+=_.outerHeight()),d.length&&(E+=d.outerHeight()),E>u&&(o.css("min-height","".concat(E,"px")),l.css("min-height","".concat(E,"px"))),d.hasClass("bottom")&&(E<u&&(o.css("min-height","".concat(E+80,"px")),l.css("min-height","".concat(E+80,"px"))),l.css("justify-content","flex-end"))}),s)},d.isBuilder||(h.on("resize",et_calculate_fullscreen_section_size),h.on("et-pb-header-height-calculated",et_calculate_fullscreen_section_size)),window.debounced_et_apply_builder_css_parallax=et_pb_debounce(et_apply_builder_css_parallax,100),window.et_pb_parallax_init=function(t){var e=t.parent();t.hasClass("et_pb_parallax_css")?(n("body").hasClass("et-fb")||v||i)&&(et_apply_builder_css_parallax.bind(e)(),v?p.jQuery("#et-fb-app").on("scroll.etCssParallaxBackground",et_apply_builder_css_parallax.bind(e)).on("resize.etCssParallaxBackground",window.debounced_et_apply_builder_css_parallax.bind(e)):n(window).on("scroll.etCssParallaxBackground",et_apply_builder_css_parallax.bind(e)).on("resize.etCssParallaxBackground",window.debounced_et_apply_builder_css_parallax.bind(e))):(et_parallax_set_height.bind(e)(),et_apply_parallax.bind(e)(),v?p.jQuery("#et-fb-app").on("scroll.etTrueParallaxBackground",et_apply_parallax.bind(e)):n(window).on("scroll.etTrueParallaxBackground",et_apply_parallax.bind(e)),n(window).on("resize.etTrueParallaxBackground",et_pb_debounce(et_parallax_set_height,100).bind(e)),n(window).on("resize.etTrueParallaxBackground",et_pb_debounce(et_apply_parallax,100).bind(e)),e.find(".et-learn-more .heading-more").on("click",(function(){setTimeout((function(){et_parallax_set_height.bind(e)()}),300)})))},n(window).on("resize",(function(){var t=f.width(),e=Q.css("width"),i=void 0!==e&&"%"!==e.substr(-1,1)?Q.width():Q.width()/100*t,a=U!==i,o=n(".et_pb_top_inside_divider, .et_pb_bottom_inside_divider");if(et_pb_resize_section_video_bg(),et_pb_center_video(),xt(),kt(),O(),A.each((function(){var t=!!n(this).hasClass("et_pb_fullwidth_portfolio_carousel");pt(n(this),t)})),a||window.et_force_width_container_change){n(".container-width-change-notify").trigger("containerWidthChanged"),setTimeout((function(){I.each((function(){window.set_filterable_grid_items(n(this))})),E.each((function(){n(this).hasClass("et_pb_gallery_grid")&&set_gallery_grid_items(n(this))}))}),100),U=i;var r=n(".et_pb_circle_counter");r.length&&r.each((function(){var t=n(this).find(".et_pb_circle_counter_inner");if(t.is(":visible")){void 0===t.data("easyPieChart")&&window.et_pb_circle_counter_init(t);var e=At();it=e;var i="desktop"!==e?"-".concat(e):"",a=t.data("bar-bg-color".concat(i));void 0!==a&&""!==a&&(t.data("easyPieChart").options.barColor=a);var o=t.data("color".concat(i));void 0!==o&&""!==o&&(t.data("easyPieChart").options.trackColor=o,t.trigger("containerWidthChanged"));var r=t.data("alpha".concat(i));void 0!==r&&""!==r&&(t.data("easyPieChart").options.trackAlpha=r,t.trigger("containerWidthChanged")),t.data("easyPieChart").update(t.data("number-value"))}})),B.length&&B.each((function(){var t=n(this);et_countdown_timer_labels(t)})),window.et_force_width_container_change=!1}window.et_fix_testimonial_inner_width(),J.length&&J.each((function(){window.et_bar_counters_init(n(this))})),d.isBuilder&&At()!==it&&et_process_animation_data(!1),(F.length||d.isBuilder)&&function(t){if(At()===it)return!1;t.each((function(){var t=n(this),e=t.data("map");if(void 0!==e){var i=At();it=i;var a="desktop"!==i?"-".concat(i):"",o="phone"===i?"-tablet":"",r=t.attr("data-grayscale".concat(a))||0;r||(r=t.attr("data-grayscale".concat(o))||t.attr("data-grayscale")||0),0!==r&&(r="-".concat(r.toString())),e.setOptions({styles:[{stylers:[{saturation:parseInt(r)}]}]})}}))}(F),(ot.length||d.isBuilder)&&n(ot).each((function(){window.et_pb_set_responsive_grid(n(this),".et_pb_grid_item")})),!d.isBuilder&&o.length&&o.each((function(){etFixDividerSpacing(n(this))}))})),d.isBuilder?n(window).one("et_fb_init_app_after",Dt):Dt(),window.et_pb_fullwidth_header_scroll=function(t){t.preventDefault();var e=f.width(),i=n("body"),a=e<782,o=i.hasClass("et_transparent_nav"),r=i.hasClass("et_hide_nav"),s=e>980,c=n(this).parents("section"),l=c.offset(),_=n("#wpadminbar"),d=n("#main-header"),p=_.length&&!a?_.height():0,u=Y.length&&window.et_is_fixed_nav&&s?Y.height():0,h=void 0===d.attr("data-height-onload")?0:d.attr("data-height-onload"),b=d.height()===Ht()||!s||!window.et_is_fixed_nav||o||r?0:Ht()-parseFloat(h),v=l.top+c.outerHeight(!0)+b-(p+u+Ht());if(!g&&window.et_is_fixed_nav&&o){var m=d.clone().addClass("et-disabled-animations et-fixed-header").css("visibility","hidden").appendTo(i);v+=Ht()-m.height(),m.remove()}c.length&&n("html, body").animate({scrollTop:v},{duration:800})},window.et_load_event_fired?Wt():n(window).on("load",(function(){Wt()})),n(".et_section_specialty").length&&n(".et_section_specialty").each((function(){n(this).find(".et_pb_row").find(">.et_pb_column:not(.et_pb_specialty_column)").addClass("et_pb_column_single")})),n(".et_pb_section_parallax").length&&n(".et_pb_map").length&&n("body").addClass("parallax-map-support"),window.et_pb_custom&&n(".et_pb_widget_area ".concat(window.et_pb_custom.widget_search_selector)).each((function(){var t=n(this),e=t.find('input[type="submit"]'),i=e.attr("value"),a=t.find("button"),o=a.text(),r=!(!e.length&&!a.length);(t.find('input[type="text"]').length||t.find('input[type="search"]').length)&&(r||t.addClass("et-no-submit-button"),t.width()<150&&t.addClass("et-narrow-wrapper"),!e.length||void 0!==i&&""!==i||(e.remove(),t.addClass("et-no-submit-button")),!a.length||void 0!==o&&""!==o||(a.remove(),t.addClass("et-no-submit-button")))})),n("body").on("click",".et_pb_ajax_pagination_container .wp-pagenavi a,.et_pb_ajax_pagination_container .pagination a",(function(){var e,a=n(this),o=a.attr("href"),r=window.location.href,s=a.closest(".et_pb_module").attr("class").split(" "),c="",l=et_get_animation_classes();return window.et_pb_ajax_pagination_cache=window.et_pb_ajax_pagination_cache||[],n.each(s,(function(t,e){l.concat(["et_had_animation","lazyload","lazyloaded"]).includes(e)||""!==e.trim()&&(c+=".".concat(e))})),e=n(c),et_remove_animation(e),void 0!==window.et_pb_ajax_pagination_cache[o+c]?e.fadeTo("slow",.2,(function(){e.find(".et_pb_ajax_pagination_container").replaceWith(window.et_pb_ajax_pagination_cache[o+c]),Nt(e,!0),n(".et_pb_tabs").length&&window.et_pb_tabs_init(n(".et_pb_tabs")),qt()})):(void 0===window.et_pb_ajax_pagination_cache[r+c]&&(window.et_pb_ajax_pagination_cache[r+c]=e.find(".et_pb_ajax_pagination_container")),e.fadeTo("slow",.2,(function(){var a=function(i){var a=t(i),r=a.filter("#et-builder-module-design-cached-inline-styles"),s=a.find("".concat(c," .et_pb_ajax_pagination_container")).prepend(r);et_remove_animation(s.find(".et_animated")),e.find(".et_pb_ajax_pagination_container").replaceWith(s),window.et_pb_ajax_pagination_cache[o+c]=s,Nt(e,!1),n(".et_pb_tabs").length&&window.et_pb_tabs_init(n(".et_pb_tabs")),qt(),n(document.body).trigger("post-load")},r={url:o,success:a,error:function(e){404===e.status&&t("body.error404").length>0&&a(e.responseText)}};i&&(r.data={et_layout_block_layout_content:ETBlockLayoutModulesScript.layoutContent},r.method="POST"),t.ajax(r)}))),!1})),window.et_pb_search_init=function(t){var e=At();it=e;var n=t.find(".et_pb_s"),i=t.find(".et_pb_searchsubmit"),a=i.outerHeight(),o=n.innerHeight();i.css({position:"relative"}),a>o&&n.innerHeight(a),i.css({position:""})},window.et_pb_search_percentage_custom_margin_fix=function(t){var e=t.find(".et_pb_s").css("margin").split(" "),n={};switch(e.length){case 4:n={top:e[0],right:e[1],bottom:e[2],left:e[3]};break;case 2:n={top:e[0],right:e[1],bottom:e[0],left:e[1]};break;default:n={top:e[0],right:e[0],bottom:e[0],left:e[0]}}var i="".concat(0-parseFloat(n.left),"px");t.find(".et_pb_searchsubmit").css({top:n.top,right:i,bottom:n.bottom})},n(".et_pb_search").length&&n(".et_pb_search").each((function(){var t=n(this);t.is(".et_pb_search_percentage_custom_margin")&&et_pb_search_percentage_custom_margin_fix(t),et_pb_search_init(t)})),window.et_pb_comments_init=function(t){var e=t.find(".comment-reply-link, .submit");e.length&&(e.addClass("et_pb_button"),void 0!==t.attr("data-icon")&&""!==t.attr("data-icon")&&(e.attr("data-icon",t.attr("data-icon")),e.addClass("et_pb_custom_button_icon")),void 0!==t.attr("data-icon-tablet")&&""!==t.attr("data-icon-tablet")&&(e.attr("data-icon-tablet",t.attr("data-icon-tablet")),e.addClass("et_pb_custom_button_icon")),void 0!==t.attr("data-icon-phone")&&""!==t.attr("data-icon-phone")&&(e.attr("data-icon-phone",t.attr("data-icon-phone")),e.addClass("et_pb_custom_button_icon")))},n(".et_pb_comments_module").length&&n(".et_pb_comments_module").each((function(){var t=n(this);et_pb_comments_init(t)}));var $t=document.onreadystatechange||function(){};function Vt(t){t.find("[data-conditional-logic]").each((function(){for(var e=n(this),i=e.data("conditional-logic"),a=e.data("conditional-relation"),o=[],r=0;r<i.length;r++){var s,c=i[r],l=c[0],_=c[1],d=c[2],p=t.find('.et_pb_contact_field[data-id="'.concat(l,'"]')),u=(p.data("id"),p.data("type"));if(p.is(":visible")){switch(u){case"input":case"email":s=p.find("input").val();break;case"text":s=p.find("textarea").val();break;case"radio":s=p.find("input:checked").val()||"";break;case"checkbox":var f=p.find(":checkbox:checked");s=!1,f.each((function(){if(d===n(this).val())return s=!0,!1})),d=!0;break;case"select":s=p.find("select").val()}if("is empty"!==_&&"is not empty"!==_||(_="is empty"===_?"is":"is not",d="","checkbox"===u&&!1===s&&(s="")),s&&"string"==typeof s&&(s=s.replace(/\\(.)/g,"$1")),!("is"===_&&s!==d||"is not"===_&&s===d)){var h=new RegExp(d,"i");if("string"==typeof d&&(h=new RegExp(d.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"),"i")),("contains"!==_||s.match(h))&&("does not contain"!==_||!s.match(h))){var b=parseInt(s),v=parseInt(d);("is greater"!==_&&"is less"!==_||!isNaN(b)&&!isNaN(v))&&("is greater"===_&&b<=v||"is less"===_&&b>=v||o.push(!0))}}}}e.hide();var m=e.find('input[type="text"]'),g=m.attr("pattern");m.attr("novalidate","novalidate"),m.attr("data-pattern",g),m.removeAttr("pattern"),"all"===a&&i.length===o.length&&(e.show(),m.removeAttr("novalidate"),m.attr("pattern",m.data("pattern"))),"any"===a&&0<o.length&&(e.show(),m.removeAttr("novalidate"),m.attr("pattern",m.data("pattern")))}))}if(document.onreadystatechange=function(){"complete"===document.readyState&&window.et_fix_pricing_currency_position(),$t()},n(".et_pb_contact_form_container, .et_pb_newsletter_custom_fields").each((function(){var t=n(this),e="input, textarea, select",i=function(){Vt(t)},a=et_pb_debounce(i,250);t.on("change",e,i),t.on("keydown",e,a),Vt(t)})),"undefined"!=typeof et_animation_data&&et_animation_data.length>0){for(var Rt=0,Qt=0;Qt<et_animation_data.length;Qt++){var Ut=et_animation_data[Qt];if(Ut.class){var Zt=n(".".concat(Ut.class));(Zt.hasClass("et_pb_menu")||Zt.hasClass("et_pb_fullwidth_menu"))&&Rt++}}n(".et_pb_menu, .et_pb_fullwidth_menu").each((function(){var t=n(this);t.on("webkitAnimationEnd oanimationend msAnimationEnd animationend",(function(){t.css("z-index",Rt-t.index(".et_pb_menu, .et_pb_fullwidth_menu"))}))}))}n(".et_pb_section_video_bg_hover").each((function(){var t=this,e=n(this).closest(".et_pb_section_video_on_hover"),i=!1;e.on("mouseover",(function(){i||(n(t).find(".mejs-video video").trigger("play"),i=!0)})),e.on("mouseleave",(function(){i=!1}))})),n(document).trigger("et_pb_after_init_modules"),window.et_pb_wrap_woo_attribute_fields_in_span(),window.et_pb_shop_add_hover_class=function(){n(".et_pb_shop").each((function(){n(this).find(".et_shop_image").on("mouseover",(function(){var t=n(this).parents().eq(1),e=t.find(".price"),i=t.find(".woocommerce-loop-product__title");e.addClass("hover"),i.addClass("hover")})).on("mouseout",(function(){var t=n(this).parents().eq(1),e=t.find(".price"),i=t.find(".woocommerce-loop-product__title");e.removeClass("hover"),i.removeClass("hover")}))}))},et_pb_shop_add_hover_class()})),window.et_load_event_fired?j():n(window).on("load",(function(){j()}))},window.etFixDividerSpacing=function(t){t.attr("style","");var e=t.css("backgroundSize").split(" "),n=e[0],i=e[1];if("string"==typeof n&&"string"==typeof i&&"100%"!==n&&"%"===n.substr(-1,1)){var a=parseFloat(t.outerWidth()),o=parseFloat(n)/100*a,r="".concat(parseInt(o),"px ").concat(i);t.css("backgroundSize",r)}},window.et_pb_custom&&window.et_pb_custom.is_ab_testing_active&&"yes"===window.et_pb_custom.is_cache_plugin_active){n(window).on("load",(function(){window.et_load_event_fired=!0}));var T=et_pb_custom.ab_tests.length;n.each(et_pb_custom.ab_tests,(function(t,e){n.ajax({type:"POST",url:et_pb_custom.ajaxurl,dataType:"json",data:{action:"et_pb_ab_get_subject_id",et_frontend_nonce:et_pb_custom.et_frontend_nonce,et_pb_ab_test_id:e.post_id},success:function(t){if(t){var i=n(".et_pb_subject_placeholder_id_".concat(e.post_id,"_").concat(t.id));i.after(t.content),i.remove()}(T-=1)<=0&&(n(".et_pb_subject_placeholder").remove(),window.et_pb_init_modules(),n("body").trigger("et_pb_ab_subject_ready"))}})}))}else window.et_pb_init_modules();function O(){n("body").is(".et-fb")&&n("#wpadminbar").length>0&&setTimeout((function(){n("#et_fix_html_margin").remove(),n("<style />",{id:"et_fix_html_margin",text:"html.js.et-fb-top-html { margin-top: 0px !important; }"}).appendTo("head")}),0)}function S(t){var e=t.find(".et_pb_menu__wrap").first(),n=t.find(".et_pb_menu__search-container").first(),i=t.find(".et_pb_menu__search-input").first();n.hasClass("et_pb_is_animating")||(e.removeClass("et_pb_menu__wrap--hidden").addClass("et_pb_menu__wrap--visible"),n.removeClass("et_pb_menu__search-container--visible").addClass("et_pb_menu__search-container--hidden et_pb_is_animating"),i.trigger("blur"),setTimeout((function(){n.removeClass("et_pb_is_animating").addClass("et_pb_menu__search-container--disabled")}),1e3))}document.addEventListener("readystatechange",(function(){"complete"===document.readyState&&(d.isDiviTheme||d.isExtraTheme)&&function(){if(window.et_location_hash=window.location.hash.replace(/[^a-zA-Z0-9-_#]/g,""),""!==window.et_location_hash){window.scrollTo(0,0);var t=n(window.et_location_hash);t.length&&("scrollRestoration"in history?history.scrollRestoration="manual":(window.et_location_hash_style=t.css("display"),t.css("display","none")))}}()})),document.addEventListener("DOMContentLoaded",(function(){n(".et_pb_top_inside_divider.et-no-transition, .et_pb_bottom_inside_divider.et-no-transition").removeClass("et-no-transition").each((function(){etFixDividerSpacing(n(this))})),setTimeout((function(){(window.et_pb_box_shadow_elements||[]).map(et_pb_box_shadow_apply_overlay)}),0)})),n(window).on("load",(function(){var t=n("body");if(window.et_load_event_fired=!0,t.hasClass("safari")){var e=t.css("display"),i="initial"===e?"block":"initial";if(t.css({display:i}),setTimeout((function(){t.css({display:e})}),0),t.hasClass("woocommerce-page")&&t.hasClass("single-product")){var a=n(".woocommerce div.product div.images.woocommerce-product-gallery");if(0===a.length)return;var o=parseInt(a[0].style.opacity);if(!o)return;a.css({opacity:o-.09}),setTimeout((function(){a.css({opacity:o})}),0)}}n(".et_pb_module #rating, .et_pb_module .comment-form-rating").length>0&&n(".et_pb_module #rating, .et_pb_module .comment-form-rating").each((function(){window.et_pb_init_woo_star_rating(n(this))})),window.et_pb_init_woo_custom_button_icon=function(){n(".et_pb_woo_custom_button_icon").length>0&&n(".et_pb_woo_custom_button_icon").each((function(){var t=n(this),e=t.attr("data-button-names");if(e){var i=(0,l.default)(e," ");(0,c.default)(i,(function(e){var n=t.find('button[name="'.concat(e,'"]')),i=t.attr("data-".concat(e,"-icon")),a=t.attr("data-".concat(e,"-icon-tablet")),o=t.attr("data-".concat(e,"-icon-phone"));n.addClass("et_pb_custom_button_icon et_pb_button"),(i||a||o)&&(n.attr("data-icon",i),n.attr("data-icon-tablet",a),n.attr("data-icon-phone",o))}))}else{var a=t.data("button-class"),o=t.find(".".concat(a)),r=t.attr("data-button-icon"),s=t.attr("data-button-icon-tablet"),_=t.attr("data-button-icon-phone");o.addClass("et_pb_custom_button_icon et_pb_button"),(r||s||_)&&(o.attr("data-icon",r),o.attr("data-icon-tablet",s),o.attr("data-icon-phone",_))}}))},window.et_pb_init_woo_custom_button_icon(),n("body").on("updated_checkout",(function(t){window.et_pb_init_woo_custom_button_icon()})),n(".et_pb_wc_meta").length>0&&n(".et_pb_wc_meta").each((function(){var t=n(this);""===t.find(".product_meta span:visible").text()&&t.addClass("et_pb_wc_meta_empty")}))})),n((function(){if(void 0!==MutationObserver)for(var t=function(t){return t.filter((function(){return!n(this).is(":visible")})).length},e=n(".et_pb_section"),i=function(t){var e=void 0!==n.uniqueSort?n.uniqueSort:n.unique,i=n([]);return t.each((function(){i=i.add(n(this).parents())})),e(i.get())}(e),a=t(e),o=new MutationObserver(window.et_pb_debounce((function(){var i=t(e);i<a&&n(window).trigger("resize"),a=i}),200)),r=0;r<i.length;r++)o.observe(i[r],{childList:!0,attributes:!0,attributeFilter:["class","style"],attributeOldValue:!1,characterData:!1,characterDataOldValue:!1,subtree:!1})})),O(),n(document).on("click",".et_pb_menu__search-button",(function(){!function(t){var e=t.find(".et_pb_menu__wrap").first(),i=t.find(".et_pb_menu__search-container").first(),a=t.find(".et_pb_menu__search-input").first(),o=t.find(".et_pb_row > .et_pb_menu__logo-wrap").first(),r=t.find(".et_pb_menu_inner_container > .et_pb_menu__logo-wrap").first(),s=o.add(r),c=n(window).width()<=980;if(!i.hasClass("et_pb_is_animating")){if(e.find(".mobile_nav.opened").removeClass("opened").addClass("closed"),e.find(".et_mobile_menu").hide(),e.removeClass("et_pb_menu__wrap--visible").addClass("et_pb_menu__wrap--hidden"),i.removeClass("et_pb_menu__search-container--hidden et_pb_menu__search-container--disabled").addClass("et_pb_menu__search-container--visible et_pb_is_animating"),i.css("padding-top","0px"),t.hasClass("et_pb_menu--style-left_aligned")||t.hasClass("et_pb_fullwidth_menu--style-left_aligned"))i.css("padding-left","".concat(s.width(),"px"));else{var l=s.height();i.css("padding-left","0px"),(c||t.hasClass("et_pb_menu--style-centered")||t.hasClass("et_pb_fullwidth_menu--style-centered"))&&i.css("padding-top","".concat(l>0?l+30:0,"px"))}a.css("font-size",t.find(".et-menu-nav li a").first().css("font-size")),setTimeout((function(){a.trigger("focus")}),0),setTimeout((function(){e.addClass("et_pb_no_animation"),i.addClass("et_pb_no_animation").removeClass("et_pb_is_animating")}),1e3)}}(n(this).closest(".et_pb_module"))})),n(document).on("click",".et_pb_menu__close-search-button",(function(){S(n(this).closest(".et_pb_module"))})),n(document).on("blur",".et_pb_menu__search-input",(function(){S(n(this).closest(".et_pb_module"))})),n((function(){n(".et_pb_menu--style-inline_centered_logo, .et_pb_fullwidth_menu--style-inline_centered_logo").each((function(){!function(t){var e=t.find(".et_pb_menu__logo-wrap").first();if(0!==e.length){var i=t.find(".et_pb_menu__menu").first();if(!(0===i.length||i.find(".et_pb_menu__logo").length>0)){var a=window.et_pb_menu_inject_inline_centered_logo(i.get(0));null!==a&&n(a).empty().append(e.clone())}}}(n(this))})),(0,a.default)(window.lazySizes)||n(document).on("lazyloaded",(function(t){var i=n(t.target),o=i.attr("name");i.is("iframe")&&((0,e.default)(o,"fitvid")||(0,a.default)(o))&&(i.attr("src",i.attr("data-src")),i.parent().fitVids())}))})),document.addEventListener("DOMContentLoaded",window.et_pb_reposition_menu_module_dropdowns),n(window).on("resize",window.et_pb_reposition_menu_module_dropdowns);var P={contexts:["content","attrs","styles","classes","visibility"],screenMode:void 0,windowWidth:void 0,init:function(t,e){P.screenMode=t,P.windowWidth=e,n(".et_multi_view__hover_selector").removeClass("et_multi_view__hover_selector"),P.getElements().each((function(){var t=n(this);if(!P.isBuilderElement(t)){var e=P.getData(t);e.$hoverSelector&&e.$hoverSelector.length&&e.$hoverSelector.addClass("et_multi_view__hover_selector"),P.normalStateHandler(e)}})),P.isTouchDevice()?(window.removeEventListener("touchstart",P.touchStateHandler),window.addEventListener("touchstart",P.touchStateHandler,{passive:!1})):(n(".et_multi_view__hover_selector").off("mouseenter mouseleave",P.hoverStateHandler),n(".et_multi_view__hover_selector").on("mouseenter mouseleave",P.hoverStateHandler),n("#main-header, #main-footer").off("mouseenter",P.resetHoverState),n("#main-header, #main-footer").on("mouseenter",P.resetHoverState))},normalStateHandler:function(t){t&&!P.isEmptyObject(t.normalState)&&P.callbackHandlerDefault(t.normalState,t.$target,t.$source,t.slug)},touchStateHandler:function(t){var e=n(t.target);if(n(t.target).hasClass("et_multi_view__hover_selector")||(e=n(t.target).closest(".et_multi_view__hover_selector")),e&&e.length){var i=n(t.target).is("a")?n(t.target):n(t.target).closest("a",e);if(i&&i.length){var a=i.attr("href");"#"!==a&&0===a.indexOf("#")&&n(a)&&n(a).length&&(t.preventDefault(),n("html, body").animate({scrollTop:n(a).offset().top},800))}else e.hasClass("et_multi_view__hovered")?P.resetHoverState(e,(function(){e.hasClass("et_clickable")&&e.trigger("click")})):P.setHoverState(e,(function(){e.hasClass("et_clickable")&&e.trigger("click")}))}},hoverStateHandler:function(t){var e=n(t.target);n(t.target).hasClass("et_multi_view__hover_selector")||(e=n(t.target).closest(".et_multi_view__hover_selector")),"mouseenter"!==t.type||e.hasClass("et_multi_view__hovered")?"mouseleave"===t.type&&e.hasClass("et_multi_view__hovered")&&P.resetHoverState(e):P.setHoverState(e)},setHoverState:function(t,e){P.resetHoverState();var i=[];t.data("etMultiView")&&i.push(P.getData(t)),t.find("[data-et-multi-view]").each((function(){var t=n(this);P.isBuilderElement(t)||i.push(P.getData(t))}));for(var a=0;a<i.length;a++){var o=i[a];!o||P.isEmptyObject(o.normalState)||P.isEmptyObject(o.hoverState)||P.callbackHandlerDefault(o.hoverState,o.$target,o.$source,o.slug)}t.addClass("et_multi_view__hovered"),"function"==typeof e&&e()},resetHoverState:function(t,e){var i=[];t&&t.length?(t.data("etMultiView")&&i.push(P.getData(t)),t.find("[data-et-multi-view]").each((function(){var t=n(this);P.isBuilderElement(t)||i.push(P.getData(t))}))):P.getElements().each((function(){var t=n(this);P.isBuilderElement(t)||i.push(P.getData(t))}));for(var a=0;a<i.length;a++){var o=i[a];!o||P.isEmptyObject(o.normalState)||P.isEmptyObject(o.hoverState)||P.callbackHandlerDefault(o.normalState,o.$target,o.$source,o.slug)}n(".et_multi_view__hover_selector").removeClass("et_multi_view__hovered"),"function"==typeof e&&e()},getData:function(t){if(!t||!t.length)return!1;var e=P.getScreenMode(),i=t.data("etMultiView");if(!i)return!1;if("string"==typeof i&&(i=P.tryParseJSON(i)),!i||!i.schema||!i.slug)return!1;var a=i.target?n(i.target):t;if(!a||!a.length)return!1;for(var o={},r={},s=0;s<P.contexts.length;s++){var c=P.contexts[s];i.schema&&i.schema.hasOwnProperty(c)&&(i.schema[c].hasOwnProperty(e)?o[c]=i.schema[c][e]:"tablet"===e&&i.schema[c].hasOwnProperty("desktop")?o[c]=i.schema[c].desktop:"phone"===e&&i.schema[c].hasOwnProperty("tablet")?o[c]=i.schema[c].tablet:"phone"===e&&i.schema[c].hasOwnProperty("desktop")&&(o[c]=i.schema[c].desktop),i.schema[c].hasOwnProperty("hover")&&(r[c]=i.schema[c].hover))}var l=!!i.hover_selector&&n(i.hover_selector);return l&&l.length||(l=t.hasClass(".et_pb_module")?t:t.closest(".et_pb_module")),{normalState:o,hoverState:r,$target:a,$source:t,$hoverSelector:l,slug:i.slug,screenMode:e}},callbackHandlerDefault:function(t,e,n,i){if(i){var a=P.getCallbackHandlerCustom(i);if(a&&"function"==typeof a)return a(t,e,n,i)}var o={};return t.hasOwnProperty("content")&&(o.content=P.updateContent(t.content,e,n)),t.hasOwnProperty("attrs")&&(o.attrs=P.updateAttrs(t.attrs,e,n)),t.hasOwnProperty("styles")&&(o.styles=P.updateStyles(t.styles,e,n)),t.hasOwnProperty("classes")&&(o.classes=P.updateClasses(t.classes,e,n)),t.hasOwnProperty("visibility")&&(o.visibility=P.updateVisibility(t.visibility,e,n)),!P.isEmptyObject(o)&&o},callbackHandlerCounter:function(t,e,n){var i=P.callbackHandlerDefault(t,e,n);i&&i.attrs&&i.attrs.hasOwnProperty("data-width")&&window.et_bar_counters_init(e)},callbackHandlerNumberCounter:function(t,e,n){if(e.hasClass("title"))return P.callbackHandlerDefault(t,e,n);var i=t.attrs||!1;if(i&&(i.hasOwnProperty("data-percent-sign")&&P.updateContent(i["data-percent-sign"],e.find(".percent-sign"),n),i.hasOwnProperty("data-number-value"))){var a=e.closest(".et_pb_number_counter"),o=i["data-number-value"]||50,r=i["data-number-separator"]||"";P.updateAttrs({"data-number-value":o,"data-number-separator":r},a,n)&&a.data("easyPieChart")&&a.data("easyPieChart").update(o)}},callbackHandlerCircleCounter:function(t,e,n){if(!e.hasClass("et_pb_circle_counter_inner"))return P.callbackHandlerDefault(t,e,n);var i=t.attrs||!1;if(i&&(i.hasOwnProperty("data-percent-sign")&&P.updateContent(i["data-percent-sign"],e.find(".percent-sign"),n),i.hasOwnProperty("data-number-value"))){var a=e.closest(".et_pb_circle_counter_inner"),o=i["data-number-value"];P.updateAttrs({"data-number-value":o},a,n)&&a.data("easyPieChart")&&(window.et_pb_circle_counter_init(a),a.data("easyPieChart").update(o))}},callbackHandlerSlider:function(t,e,n){var i=P.callbackHandlerDefault(t,e,n);e.hasClass("et_pb_module")&&i&&i.classes&&(i.classes.add&&-1!==i.classes.add.indexOf("et_pb_slider_no_arrows")&&e.find(".et-pb-slider-arrows").addClass("et_multi_view_hidden"),i.classes.remove&&-1!==i.classes.remove.indexOf("et_pb_slider_no_arrows")&&e.find(".et-pb-slider-arrows").removeClass("et_multi_view_hidden"),i.classes.add&&-1!==i.classes.add.indexOf("et_pb_slider_no_pagination")&&e.find(".et-pb-controllers").addClass("et_multi_view_hidden"),i.classes.remove&&-1!==i.classes.remove.indexOf("et_pb_slider_no_pagination")&&e.find(".et-pb-controllers").removeClass("et_multi_view_hidden"))},callbackHandlerPostSlider:function(t,e,n){var i=P.callbackHandlerDefault(t,e,n);e.hasClass("et_pb_module")&&i&&i.classes&&(i.classes.add&&-1!==i.classes.add.indexOf("et_pb_slider_no_arrows")&&e.find(".et-pb-slider-arrows").addClass("et_multi_view_hidden"),i.classes.remove&&-1!==i.classes.remove.indexOf("et_pb_slider_no_arrows")&&e.find(".et-pb-slider-arrows").removeClass("et_multi_view_hidden"),i.classes.add&&-1!==i.classes.add.indexOf("et_pb_slider_no_pagination")&&e.find(".et-pb-controllers").addClass("et_multi_view_hidden"),i.classes.remove&&-1!==i.classes.remove.indexOf("et_pb_slider_no_pagination")&&e.find(".et-pb-controllers").removeClass("et_multi_view_hidden"))},callbackHandlerVideoSlider:function(t,e,n){var i=P.callbackHandlerDefault(t,e,n);if(e.hasClass("et_pb_slider")&&i&&i.classes){i.classes.add&&-1!==i.classes.add.indexOf("et_pb_slider_no_arrows")&&e.find(".et-pb-slider-arrows").addClass("et_multi_view_hidden"),i.classes.remove&&-1!==i.classes.remove.indexOf("et_pb_slider_no_arrows")&&e.find(".et-pb-slider-arrows").removeClass("et_multi_view_hidden");var a=i.classes.add&&-1!==i.classes.add.indexOf("et_pb_slider_dots")?"et_pb_slider_dots":!(!i.classes.add||-1===i.classes.add.indexOf("et_pb_slider_carousel"))&&"et_pb_slider_carousel";if(a){var o=e.data("et_pb_simple_slider");"object"===u(o)&&o.et_slider_destroy(),et_pb_slider_init(e),"et_pb_slider_carousel"===a&&e.siblings(".et_pb_carousel").et_pb_simple_carousel({slide_duration:1e3})}}},callbackHandlerSliderItem:function(t,e,i){if(!e.hasClass("et_pb_slide_video")&&!e.is("img"))return P.callbackHandlerDefault(t,e,i);if(e.hasClass("et_pb_slide_video")){var a=!(!t||!t.content)&&n(t.content),o=-1!==e.html().indexOf("fluid-width-video-wrapper")?n(e.find(".fluid-width-video-wrapper").html()):n(e.html());if(!a||!o)return;var r=!1;if(a.hasClass("wp-video")&&o.hasClass("wp-video")?function(){if(a.find("source").length!==o.find("source").length)return!0;var t=!1;return a.find("source").each((function(e){var i=o.find("source").eq(e);n(this).attr("src")!==i.attr("src")&&(t=!0)})),t}()&&(r=P.callbackHandlerDefault(t,e,i)):(a.is("iframe")&&o.is("iframe")&&a.attr("src")!==o.attr("src")||a.hasClass("wp-video")&&o.is("iframe")||a.is("iframe")&&o.hasClass("wp-video"))&&(r=P.callbackHandlerDefault(t,e,i)),r&&r.content)if(a.is("iframe"))e.closest(".et_pb_module").fitVids();else{var s=a.find("video").attr("width"),c=a.find("video").attr("height"),l=e.width(),_=l/s*c;e.find("video").mediaelementplayer({videoWidth:parseInt(l),videoHeight:parseInt(_),autosizeProgress:!1,success:function(t,e){var i=n(e),a=_-i.height()+n(t).height();i.css("margin-top","".concat(a,"px"))}})}}else if(e.is("img")&&(r=P.callbackHandlerDefault(t,e,i))&&r.attrs&&r.attrs.src){var d=e.closest(".et_pb_module");e.css("visibility","hidden"),et_fix_slider_height(d),setTimeout((function(){et_fix_slider_height(d),e.css("visibility","visible")}),100)}},callbackHandlerVideo:function(t,e,i){if(e.hasClass("et_pb_video_overlay"))return P.callbackHandlerDefault(t,e,i);var a=!1,o=!(!t||!t.content)&&n(t.content),r=-1!==e.html().indexOf("fluid-width-video-wrapper")?n(e.find(".fluid-width-video-wrapper").html()):n(e.html());return o&&r?(o.is("video")&&r.is("video")?function(){if(o.find("source").length!==r.find("source").length)return!0;var t=!1;return o.find("source").each((function(e){var i=r.find("source").eq(e);n(this).attr("src")!==i.attr("src")&&(t=!0)})),t}()&&(a=P.callbackHandlerDefault(t,e,i)):(o.is("iframe")&&r.is("iframe")&&o.attr("src")!==r.attr("src")||o.is("video")&&r.is("iframe")||o.is("iframe")&&r.is("video"))&&(a=P.callbackHandlerDefault(t,e,i)),a&&a.content&&o.is("iframe")&&n.fn.fitVids&&e.fitVids(),a):void 0},callbackHandlerBlog:function(t,e,n){var i=P.callbackHandlerDefault(t,e,n),a=P.getObjectValue(i,"classes.add");a&&-1!==a.indexOf("et_pb_blog_show_content")&&et_reinit_waypoint_modules()},callbackHandlerWooCommerceBreadcrumb:function(t,e,n){if(t.content)return P.callbackHandlerDefault(t,e,n);if(t.attrs&&t.attrs.hasOwnProperty("href")){var i=t.attrs.href;return P.updateAttrs({href:i},e,n)}},callbackHandlerWooCommerceTabs:function(t,e,i){var a=P.callbackHandlerDefault(t,e,i);if(a&&a.attrs&&a.attrs.hasOwnProperty("data-include_tabs")){e.find("li").hide(),e.find("li").removeClass("et_pb_tab_active");var o=[];a.attrs["data-include_tabs"].split("|").forEach((function(t){""!==t.trim()&&o.push("".concat(t,"_tab"))})),o.forEach((function(t,e){0===e&&n(".".concat(t)).addClass("et_pb_tab_active"),n(".".concat(t)).show()}))}},getCallbackHandlerCustom:function(t){switch(t){case"et_pb_counter":return P.callbackHandlerCounter;case"et_pb_number_counter":return P.callbackHandlerNumberCounter;case"et_pb_circle_counter":return P.callbackHandlerCircleCounter;case"et_pb_slider":case"et_pb_fullwidth_slider":return P.callbackHandlerSlider;case"et_pb_post_slider":case"et_pb_fullwidth_post_slider":return P.callbackHandlerPostSlider;case"et_pb_video_slider":return P.callbackHandlerVideoSlider;case"et_pb_slide":return P.callbackHandlerSliderItem;case"et_pb_video":return P.callbackHandlerVideo;case"et_pb_blog":return P.callbackHandlerBlog;case"et_pb_wc_breadcrumb":return P.callbackHandlerWooCommerceBreadcrumb;case"et_pb_wc_tabs":return P.callbackHandlerWooCommerceTabs;default:return!1}},updateContent:function(t,e,i){if(void 0===t)return!1;var a=n("<"+(e.get(0).tagName||"div")+">").html(t);return e.html()!==a.html()&&(e.empty().html(t),i.hasClass("et_multi_view_swapped")||i.addClass("et_multi_view_swapped"),!0)},updateAttrs:function(t,e,i){if(!t)return!1;var a={};return n.each(t,(function(n,i){var o=e.attr(n);switch(n){case"class":case"style":case"srcset":case"sizes":break;case"src":o!==i&&(e.off("load"),e.on("load",(function(){e.addClass("et_multi_view_image__loaded"),e.removeClass("et_multi_view_image__loading")})),e.addClass("et_multi_view_image__loading"),e.removeClass("et_multi_view_image__loaded"),e.attr({src:i,srcset:t.srcset||"",sizes:t.sizes||""}),i?e.removeClass("et_multi_view_hidden_image"):e.addClass("et_multi_view_hidden_image"),a[n]=i);break;default:o!==i&&(e.attr(n,i),0===n.indexOf("data-")&&e.data(n.replace("data-",""),i),a[n]=i)}})),!P.isEmptyObject(a)&&(i.hasClass("et_multi_view_swapped")||i.addClass("et_multi_view_swapped"),a)},updateStyles:function(t,e,i){if(!t)return!1;var a={};return n.each(t,(function(t,n){e.css(t)!==n&&(e.css(t,n),a[t]=n)})),!P.isEmptyObject(a)&&(i.hasClass("et_multi_view_swapped")||i.addClass("et_multi_view_swapped"),a)},updateClasses:function(t,e,n){if(!t)return!1;var i={};if(t.add)for(var a=0;a<t.add.length;a++)e.hasClass(t.add[a])||(e.addClass(t.add[a]),i.hasOwnProperty("add")||(i.add=[]),i.add.push(t.add[a]));if(t.remove)for(a=0;a<t.remove.length;a++)e.hasClass(t.remove[a])&&(e.removeClass(t.remove[a]),i.hasOwnProperty("remove")||(i.remove=[]),i.remove.push(t.remove[a]));return!P.isEmptyObject(i)&&(n.hasClass("et_multi_view_swapped")||n.addClass("et_multi_view_swapped"),i)},updateVisibility:function(t,e,n){var i={};return t&&e.hasClass("et_multi_view_hidden")&&(e.removeClass("et_multi_view_hidden"),i.isVisible=!0),t||e.hasClass("et_multi_view_hidden")||(e.addClass("et_multi_view_hidden"),i.isHidden=!0),!P.isEmptyObject(i)&&(n.hasClass("et_multi_view_swapped")||n.addClass("et_multi_view_swapped"),i)},isEmptyObject:function(t){if(!t)return!0;var e=!0;for(var n in t)t.hasOwnProperty(n)&&(e=!1);return e},getObjectValue:function(t,e,i){try{for(var a=n.extend({},t),o=e.split("."),r=0;r<o.length;++r)a=a[o[r]];return a}catch(t){return i}},tryParseJSON:function(t){try{return JSON.parse(t)}catch(t){return!1}},getScreenMode:function(){if(d.isBuilder&&P.screenMode)return P.screenMode;var t=P.getWindowWidth();return t>980?"desktop":t>767?"tablet":"phone"},getWindowWidth:function(){return P.windowWidth?P.windowWidth:d.isBuilder?n(".et-core-frame").width():n(window).width()},getElements:function(){return d.isBuilder?n(".et-core-frame").contents().find("[data-et-multi-view]"):n("[data-et-multi-view]")},isBuilderElement:function(t){return t.closest("#et-fb-app").length>0},isTouchDevice:function(){return"ontouchstart"in window||navigator.msMaxTouchPoints}};!function(){if(d.isBuilder)n(window).on("et_fb_preview_mode_changed",(function(t,e){"et_fb_preview_mode_changed"===t.type&&P.init(e)}));else{n((function(){P.init()})),n(window).on("orientationchange",(function(t){P.init()}));var t=null;n(window).on("resize",(function(e){e.originalEvent&&e.originalEvent.isTrusted&&(clearTimeout(t),t=setTimeout((function(){P.init(void 0,n(window).width())}),200))}))}}(),d.isBuilder&&n((function(){n(document).on("submit",".et-fb-root-ancestor-sibling form",(function(t){t.preventDefault()})),n(document).on("click",'.et-fb-root-ancestor-sibling a, .et-fb-root-ancestor-sibling button, .et-fb-root-ancestor-sibling input[type="submit"]',(function(t){t.preventDefault()}))})),window.etInitWooReviewsRatingStars=function(){n('select[name="rating"]').each((function(){n(this).prev(".stars").remove(),n(this).hide().before('<p class="stars">\t\t\t\t\t\t<span>\t\t\t\t\t\t\t<a class="star-1" href="#">1</a>\t\t\t\t\t\t\t<a class="star-2" href="#">2</a>\t\t\t\t\t\t\t<a class="star-3" href="#">3</a>\t\t\t\t\t\t\t<a class="star-4" href="#">4</a>\t\t\t\t\t\t\t<a class="star-5" href="#">5</a>\t\t\t\t\t\t</span>\t\t\t\t\t</p>')}))}}(t)}).call(this,n(8))},1466:function(t,e,n){"use strict";(function(t){var e,i=(e=n(7))&&e.__esModule?e:{default:e},a=n(353);!function(t){function e(){var e=t("body").hasClass("et_pb_pagebuilder_layout"),n=t("body").hasClass("et-tb-has-template");return!(e||n)}function n(e){var n=e.target.getAttribute("name"),i=e.target.value;t("input[type=hidden][name=".concat(n,"]")).remove(),t("<input>").attr({type:"hidden",value:i,name:n}).prependTo(".et_pb_wc_checkout_payment_info form.checkout")}function o(e){var n=e.target.getAttribute("name"),a=t("input[type=hidden][name=".concat(n,"]"));(0,i.default)(["ship_to_different_address","createaccount"],n)&&!e.target.checked&&a.remove(),"ship_to_different_address"===n&&(e.target.checked?(c(),t("div.shipping_address").slideDown()):t("div.shipping_address").slideUp())}function r(e){var n=e.target.getAttribute("name"),a=e.target.value;t("input[type=hidden][name=".concat(n,"]")).remove(),(0,i.default)(["shipping_state","billing_state"],n)&&t("input[type=hidden][name=".concat(n,"]"),".et_pb_wc_checkout_payment_info").remove(),t("<input>").attr({type:"hidden",value:a,name:n}).prependTo(".et_pb_wc_checkout_payment_info form.checkout")}function s(e){var n=t(e.target),i=e.target.getAttribute("name"),a=n.val();t(".et_pb_wc_checkout_payment_info input[type=hidden][name=".concat(i,"]")).remove(),t("<input>").attr({type:"hidden",value:a,name:i}).prependTo(".et_pb_wc_checkout_payment_info form.checkout")}function c(){var e=t(".et_pb_wc_checkout_shipping input[name=ship_to_different_address]"),n=e.is(":checked");t(".et_pb_wc_checkout_billing .form-row").each((function(){var e,n,i=t(this).find("input"),a=t(this).find("select");i.length?(e=i.attr("name"),n=i.val()):a.length&&(e=a.attr("name"),n=a.val()),""!==e&&void 0!==e&&t("<input>").attr({type:"hidden",value:n,name:e}).prependTo(".et_pb_wc_checkout_payment_info form.checkout")})),n&&(t(".et_pb_wc_checkout_shipping .form-row").each((function(){var e,n,i=t(this).find("input"),a=t(this).find("select");i.length?(e=i.attr("name"),n=i.val()):a.length&&(e=a.attr("name"),n=a.val()),""!==e&&void 0!==e&&(t('.et_pb_wc_checkout_payment_info form.checkout input[type="hidden"][name="'+e+'"]').remove(),t("<input>").attr({type:"hidden",value:n,name:e}).prependTo(".et_pb_wc_checkout_payment_info form.checkout"))})),t("<input>").attr({type:"hidden",value:e.val(),name:"ship_to_different_address"}).prependTo(".et_pb_wc_checkout_payment_info form.checkout"))}var l;function _(){var e=t(".et_pb_wc_checkout_payment_info");t(".wc_payment_method").removeClass("et_pb_checked"),e.find('input.input-radio[type="radio"]:checked').parent(".wc_payment_method").addClass("et_pb_checked")}var d={customButtonIconInit:function(){window.et_pb_init_woo_custom_button_icon()},animationInit:function(){u.etProcessAnimationData()},makeReturnToShopBtnVisibleWhenCartEmptied:function(){if(!a.isVB){var e=t(".wc-backward").closest(".et_pb_wc_cart_notice");e.hasClass("et_animated")&&e.removeClass("et_animated").addClass("et_had_animation")}},removeDuplicateWooCartForm:function(){a.isVB||t(".woocommerce-cart-form").closest(".woocommerce").find(".woocommerce-cart-form:not(:first)").remove()},removeDuplicatedCartTotalModules:function(){a.isVB||t(".et_pb_wc_cart_totals").find(".cart_totals:not(:first)").remove()},wooCartTotalsInit:function(){t(document.body).on("updated_wc_div",this.removeDuplicatedCartTotalModules)},wooCartProductsInit:function(){t(document.body).on("updated_wc_div",this.removeDuplicateWooCartForm)},wooNoticeInit:function(){t(document.body).on("updated_wc_div",this.makeReturnToShopBtnVisibleWhenCartEmptied),t(document.body).on("updated_wc_div",this.animationInit)},reInitCustomButtonIcon:function(){t(document.body).on("updated_wc_div",this.customButtonIconInit)},init:function(){this.wooCartProductsInit(),this.wooNoticeInit(),this.reInitCustomButtonIcon(),this.wooCartTotalsInit(),t(document.body).on("change input",".woocommerce-cart-form .cart_item :input",(function(){if(!a.isBuilder){var e,n,i,o=t(this).closest(".et_pb_module_inner").find('button[name="update_cart"]'),r=t(this).parents(".et_pb_woo_custom_button_icon.et_pb_wc_cart_products");e=r.attr("data-apply_coupon-icon"),n=r.attr("data-apply_coupon-icon-tablet"),i=r.attr("data-apply_coupon-icon-phone"),o.addClass("et_pb_custom_button_icon et_pb_button"),(e||n||i)&&(o.attr("data-icon",e),o.attr("data-icon-tablet",n),o.attr("data-icon-phone",i))}}))}},p={init:function(){this.stopStickyWooNoticeScroll()},stopStickyWooNoticeScroll:function(){a.isVB||t("a.showcoupon").on("click",(function(e){if(t(this).parents(".et_pb_wc_cart_notice").hasClass("et_pb_sticky_module")){e.stopPropagation();var n=t(this).parents(".et_pb_sticky_module");return t(".checkout_coupon",n).slideToggle(400,(function(){t(".checkout_coupon",n).find(":input:eq(0)").focus()})),!1}}))}},u={et_get_animation_classes:function(){return["et_animated","et_is_animating","infinite","et-waypoint","fade","fadeTop","fadeRight","fadeBottom","fadeLeft","slide","slideTop","slideRight","slideBottom","slideLeft","bounce","bounceTop","bounceRight","bounceBottom","bounceLeft","zoom","zoomTop","zoomRight","zoomBottom","zoomLeft","flip","flipTop","flipRight","flipBottom","flipLeft","fold","foldTop","foldRight","foldBottom","foldLeft","roll","rollTop","rollRight","rollBottom","rollLeft","transformAnim"]},et_remove_animation:function(e){if(!e.hasClass("infinite")){var n=this.et_get_animation_classes();e.is(".et_pb_section")&&e.is(".roll")&&t("".concat(et_frontend_scripts.builderCssContainerPrefix,", ").concat(et_frontend_scripts.builderCssLayoutPrefix)).css("overflow-x",""),e.removeClass(n.join(" ")),e.css({"animation-delay":"","animation-duration":"","animation-timing-function":"",opacity:"",transform:"",left:""}),e.addClass("et_had_animation")}},et_remove_animation_data:function(e){for(var n=[],i=e.get(0).attributes,a=0;a<i.length;a++)"data-animation-"===i[a].name.substring(0,15)&&n.push(i[a].name);t.each(n,(function(t,n){e.removeAttr(n)}))},et_process_animation_intensity:function(t,e,n){var i={};switch(t){case"slide":switch(e){case"top":i={transform:"translate3d(0, ".concat(-2*n,"%, 0)")};break;case"right":i={transform:"translate3d(".concat(2*n,"%, 0, 0)")};break;case"bottom":i={transform:"translate3d(0, ".concat(2*n,"%, 0)")};break;case"left":i={transform:"translate3d(".concat(-2*n,"%, 0, 0)")};break;default:i={transform:"scale3d(".concat(a=.01*(100-n),", ").concat(a,", ").concat(a,")")}}break;case"zoom":var a;i={transform:"scale3d(".concat(a=.01*(100-n),", ").concat(a,", ").concat(a,")")};break;case"flip":switch(e){case"right":var o=Math.ceil(.9*n);i={transform:"perspective(2000px) rotateY(".concat(o,"deg)")};break;case"left":o=-1*Math.ceil(.9*n),i={transform:"perspective(2000px) rotateY(".concat(o,"deg)")};break;case"top":default:o=Math.ceil(.9*n),i={transform:"perspective(2000px) rotateX(".concat(o,"deg)")};break;case"bottom":o=-1*Math.ceil(.9*n),i={transform:"perspective(2000px) rotateX(".concat(o,"deg)")}}break;case"fold":switch(e){case"top":o=-1*Math.ceil(.9*n),i={transform:"perspective(2000px) rotateX(".concat(o,"deg)")};break;case"bottom":o=Math.ceil(.9*n),i={transform:"perspective(2000px) rotateX(".concat(o,"deg)")};break;case"left":o=Math.ceil(.9*n),i={transform:"perspective(2000px) rotateY(".concat(o,"deg)")};break;default:o=-1*Math.ceil(.9*n),i={transform:"perspective(2000px) rotateY(".concat(o,"deg)")}}break;case"roll":switch(e){case"right":case"bottom":o=-1*Math.ceil(3.6*n),i={transform:"rotateZ(".concat(o,"deg)")};break;case"top":case"left":o=Math.ceil(3.6*n),i={transform:"rotateZ(".concat(o,"deg)")};break;default:o=Math.ceil(3.6*n),i={transform:"rotateZ(".concat(o,"deg)")}}}return i},et_animate_element:function(e){var n=this,i=e;if(!i.hasClass("et_had_animation")){var a=i.attr("data-animation-style"),o=i.attr("data-animation-repeat"),r=i.attr("data-animation-duration"),s=i.attr("data-animation-delay"),c=i.attr("data-animation-intensity"),l=i.attr("data-animation-starting-opacity"),_=i.attr("data-animation-speed-curve"),d=i.parent(".et_pb_button_module_wrapper"),p=t("body").hasClass("edge");i.is(".et_pb_section")&&"roll"===a&&t("".concat(et_frontend_scripts.builderCssContainerPrefix,", ").concat(et_frontend_scripts.builderCssLayoutPrefix)).css("overflow-x","hidden"),this.et_remove_animation_data(i);var u=isNaN(parseInt(l))?0:.01*parseInt(l);-1===t.inArray(_,["linear","ease","ease-in","ease-out","ease-in-out"])&&(_="ease-in-out"),d.length>0&&(i.removeClass("et_animated"),(i=d).addClass("et_animated")),i.css({"animation-duration":r,"animation-delay":s,opacity:u,"animation-timing-function":_}),"slideTop"!==a&&"slideBottom"!==a||i.css("left","0px");for(var f={},h=isNaN(parseInt(c))?50:parseInt(c),b=["slide","zoom","flip","fold","roll"],v=!1,m=!1,g=0;g<b.length;g++){var w=b[g];if(a&&a.substr(0,w.length)===w){v=w,""!==(m=a.substr(w.length,a.length))&&(m=m.toLowerCase());break}}if(!1!==v&&!1!==m&&(f=this.et_process_animation_intensity(v,m,h)),t.isEmptyObject(f)||i.css(p?t.extend(f,{transition:"transform 0s ease-in"}):f),i.addClass("et_animated"),i.addClass("et_is_animating"),i.addClass(a),i.addClass(o),!o){var y=parseInt(r),x=parseInt(s);setTimeout((function(){n.et_remove_animation(i)}),y+x),p&&!t.isEmptyObject(f)&&setTimeout((function(){i.css("transition","")}),y+x+50)}}},getCurrentWindowMode:function(){var e=t(window).width(),n="desktop";return e<=980&&e>767?n="tablet":e<=767&&(n="phone"),n},etProcessAnimationData:function(){if("undefined"!=typeof et_animation_data&&0!==et_animation_data.length){t("body").css("overflow-x","hidden"),t("#page-container").css("overflow-y","hidden");for(var e=0;e<et_animation_data.length;e++){var n=et_animation_data[e];if(n.class&&n.style&&n.repeat&&n.duration&&n.delay&&n.intensity&&n.starting_opacity&&n.speed_curve){var i=t(".".concat(n.class));i.removeClass("et_had_animation");var a=this.getCurrentWindowMode(),o="desktop"===a,r="";o||(r+="_".concat(a));var s=o||void 0===n["style".concat(r)]?n.style:n["style".concat(r)],c=o||void 0===n["repeat".concat(r)]?n.repeat:n["repeat".concat(r)],l=o||void 0===n["duration".concat(r)]?n.duration:n["duration".concat(r)],_=o||void 0===n["delay".concat(r)]?n.delay:n["delay".concat(r)],d=o||void 0===n["intensity".concat(r)]?n.intensity:n["intensity".concat(r)],p=o||void 0===n["starting_opacity".concat(r)]?n.starting_opacity:n["starting_opacity".concat(r)],u=o||void 0===n["speed_curve".concat(r)]?n.speed_curve:n["speed_curve".concat(r)];i.attr({"data-animation-style":s,"data-animation-repeat":"once"===c?"":"infinite","data-animation-duration":l,"data-animation-delay":_,"data-animation-intensity":d,"data-animation-starting-opacity":p,"data-animation-speed-curve":u}),this.et_animate_element(i)}}}}};d.init(),p.init(),function e(){t(".et_pb_wc_checkout_billing form.checkout").length?(a.isVB&&t(".et_pb_wc_checkout_billing form.checkout").prepend('\n        <div class="woocommerce-NoticeGroup woocommerce-NoticeGroup-checkout">\n          <ul class="woocommerce-error" role="alert">\n            <li data-id="billing_first_name">\n              <strong>Billing First name</strong> is a required field.\n            </li>\n          </ul>\n        </div>\n        '),clearTimeout(l)):l=setTimeout(e,1e3)}(),t(document.body).on("updated_checkout",_),t("#et-boc").on("change","input.input-radio",_),t(document.body).on("click",".woocommerce-cart-form .product-remove > a",(function(t){if("undefined"!=typeof wc_cart_params&&a.isVB)return t.preventDefault(),!1})),t(document.body).on("init_checkout",(function(){e()||(t(document.body).on("checkout_error",(function(){t(".woocommerce-NoticeGroup-checkout:not(:first)").hide()})),c(),t(document.body).on("change",".et_pb_wc_checkout_billing input",s),t(document.body).on("change",".et_pb_wc_checkout_billing select",r),t(document.body).on("change",".et_pb_wc_checkout_shipping input",s),t(document.body).on("change",".et_pb_wc_checkout_shipping select",r),t(document.body).on("change","#ship-to-different-address input",o),t(document.body).on("change","textarea[name=order_comments]",n),t(document.body).on("change","input#createaccount",o),t(".et_pb_wc_checkout_shipping").length||t('.woocommerce-error li[data-id^="shipping_"]').hide(),t(".et_pb_wc_checkout_shipping div.shipping_address").hide())})),t(document.body).on("wc_cart_emptied",(function(){e()||t(".et_pb_wc_cart_totals").hide()})),t(".et_pb_wc_checkout_order_details").on("change","input[name^=shipping_method]",(function(){t(document.body).trigger("update_checkout")})),t(".et_pb_wc_checkout_billing select[name^=billing_country], .et_pb_wc_checkout_shipping select[name^=shipping_country]").on("change",(function(){t(document.body).trigger("update_checkout")})),t(".et_pb_wc_checkout_billing input[name^=billing_postcode], .et_pb_wc_checkout_shipping input[name^=shipping_postcode]").on("change",(function(){t(document.body).trigger("update_checkout")})),e()||t("body").hasClass("woocommerce-order-received")&&t('.et_pb_row:has(".et_pb_column.et_pb_column_empty")').addClass("et_pb_no_top_bottom_padding")}(t),t((function(t){t.scroll_to_notices=function(e){var n=100;t(".et-fixed-header").length&&(n+=t(".et-fixed-header").height()),e.length&&t("html, body").animate({scrollTop:e.offset().top-n},1e3)}}))}).call(this,n(8))},147:function(t,e,n){var i=n(101),a=n(251),o=n(252);function r(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new i;++e<n;)this.add(t[e])}r.prototype.add=r.prototype.push=a,r.prototype.has=o,t.exports=r},148:function(t,e){t.exports=function(t,e){return t.has(e)}},149:function(t,e){t.exports=function(t,e,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(e(t[o],o,t))return o;return-1}},150:function(t,e,n){var i=n(116);t.exports=function(t){return t?(t=i(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},151:function(t,e,n){var i=n(121),a=n(60),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var r=t[e];o.call(t,e)&&a(r,n)&&(void 0!==n||e in t)||i(t,e,n)}},162:function(t,e,n){var i=n(203)();t.exports=i},163:function(t,e,n){var i=n(187),a=n(80),o=n(4),r=n(73),s=n(71),c=n(82),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),_=!n&&a(t),d=!n&&!_&&r(t),p=!n&&!_&&!d&&c(t),u=n||_||d||p,f=u?i(t.length,String):[],h=f.length;for(var b in t)!e&&!l.call(t,b)||u&&("length"==b||d&&("offset"==b||"parent"==b)||p&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||s(b,h))||f.push(b);return f}},164:function(t,e){t.exports=function(){return[]}},165:function(t,e,n){var i=n(112);t.exports=function(t,e,n){var a=t.length;return n=void 0===n?a:n,!e&&n>=a?t:i(t,e,n)}},166:function(t,e,n){var i=n(343),a=n(181),o=n(344);t.exports=function(t){return a(t)?o(t):i(t)}},169:function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},17:function(t,e,n){var i=n(163),a=n(117),o=n(38);t.exports=function(t){return o(t)?i(t):a(t)}},170:function(t,e,n){var i=n(44)(n(23),"Set");t.exports=i},171:function(t,e,n){var i=n(44)(n(23),"WeakMap");t.exports=i},172:function(t,e,n){var i=n(226),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,r=i((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(a,(function(t,n,i,a){e.push(i?a.replace(o,"$1"):n||t)})),e}));t.exports=r},173:function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}},174:function(t,e,n){var i=n(23).Uint8Array;t.exports=i},175:function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}},176:function(t,e,n){var i=n(177),a=n(141),o=n(17);t.exports=function(t){return i(t,o,a)}},177:function(t,e,n){var i=n(119),a=n(4);t.exports=function(t,e,n){var o=e(t);return a(t)?o:i(o,n(t))}},178:function(t,e,n){var i=n(12);t.exports=function(t){return t==t&&!i(t)}},179:function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},181:function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},186:function(t,e){t.exports=function(){return!1}},187:function(t,e){t.exports=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}},188:function(t,e,n){var i=n(189),a=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(a,""):t}},189:function(t,e){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},190:function(t,e,n){var i=n(45);t.exports=function(t,e){return i(e,(function(e){return t[e]}))}},201:function(t,e,n){var i=n(35),a=n(221),o=n(12),r=n(139),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,_=c.toString,d=l.hasOwnProperty,p=RegExp("^"+_.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||a(t))&&(i(t)?p:s).test(r(t))}},202:function(t,e,n){var i=n(23)["__core-js_shared__"];t.exports=i},203:function(t,e){t.exports=function(t){return function(e,n,i){for(var a=-1,o=Object(e),r=i(e),s=r.length;s--;){var c=r[t?s:++a];if(!1===n(o[c],c,o))break}return e}}},204:function(t,e,n){var i=n(38);t.exports=function(t,e){return function(n,a){if(null==n)return n;if(!i(n))return t(n,a);for(var o=n.length,r=e?o:-1,s=Object(n);(e?r--:++r<o)&&!1!==a(s[r],r,s););return n}}},205:function(t,e,n){var i=n(74),a=n(80),o=n(4),r=n(71),s=n(99),c=n(52);t.exports=function(t,e,n){for(var l=-1,_=(e=i(e,t)).length,d=!1;++l<_;){var p=c(e[l]);if(!(d=null!=t&&n(t,p)))break;t=t[p]}return d||++l!=_?d:!!(_=null==t?0:t.length)&&s(_)&&r(p,_)&&(o(t)||a(t))}},206:function(t,e,n){var i=n(287),a=n(205);t.exports=function(t,e){return null!=t&&a(t,e,i)}},207:function(t,e){t.exports=function(t){return t!=t}},209:function(t,e,n){var i=n(44),a=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=a},210:function(t,e,n){var i=n(151),a=n(74),o=n(71),r=n(12),s=n(52);t.exports=function(t,e,n,c){if(!r(t))return t;for(var l=-1,_=(e=a(e,t)).length,d=_-1,p=t;null!=p&&++l<_;){var u=s(e[l]),f=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(l!=d){var h=p[u];void 0===(f=c?c(h,u,p):void 0)&&(f=r(h)?h:o(e[l+1])?[]:{})}i(p,u,f),p=p[u]}return t}},217:function(t,e,n){var i=n(169)(Object.keys,Object);t.exports=i},218:function(t,e,n){var i=n(44)(n(23),"DataView");t.exports=i},219:function(t,e,n){var i=n(59),a=Object.prototype,o=a.hasOwnProperty,r=a.toString,s=i?i.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(t){}var a=r.call(t);return i&&(e?t[s]=n:delete t[s]),a}},220:function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},221:function(t,e,n){var i,a=n(202),o=(i=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";t.exports=function(t){return!!o&&o in t}},222:function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},223:function(t,e,n){var i=n(44)(n(23),"Promise");t.exports=i},224:function(t,e,n){var i=n(37),a=n(30);t.exports=function(t){return a(t)&&"[object Arguments]"==i(t)}},225:function(t,e,n){var i=n(37),a=n(99),o=n(30),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&a(t.length)&&!!r[i(t)]}},226:function(t,e,n){var i=n(146);t.exports=function(t){var e=i(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},227:function(t,e,n){var i=n(228),a=n(76),o=n(98);t.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||a),string:new i}}},228:function(t,e,n){var i=n(229),a=n(230),o=n(231),r=n(232),s=n(233);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=r,c.prototype.set=s,t.exports=c},229:function(t,e,n){var i=n(75);t.exports=function(){this.__data__=i?i(null):{},this.size=0}},23:function(t,e,n){var a=n(138),o="object"==("undefined"==typeof self?"undefined":i(self))&&self&&self.Object===Object&&self,r=a||o||Function("return this")();t.exports=r},230:function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},231:function(t,e,n){var i=n(75),a=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(i){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(e,t)?e[t]:void 0}},232:function(t,e,n){var i=n(75),a=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return i?void 0!==e[t]:a.call(e,t)}},233:function(t,e,n){var i=n(75);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this}},234:function(t,e){t.exports=function(){this.__data__=[],this.size=0}},235:function(t,e,n){var i=n(77),a=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=i(e,t);return!(n<0||(n==e.length-1?e.pop():a.call(e,n,1),--this.size,0))}},236:function(t,e,n){var i=n(77);t.exports=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}},237:function(t,e,n){var i=n(77);t.exports=function(t){return i(this.__data__,t)>-1}},238:function(t,e,n){var i=n(77);t.exports=function(t,e){var n=this.__data__,a=i(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this}},239:function(t,e,n){var i=n(78);t.exports=function(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}},240:function(t,e){t.exports=function(t){var e=i(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},241:function(t,e,n){var i=n(78);t.exports=function(t){return i(this,t).get(t)}},242:function(t,e,n){var i=n(78);t.exports=function(t){return i(this,t).has(t)}},243:function(t,e,n){var i=n(78);t.exports=function(t,e){var n=i(this,t),a=n.size;return n.set(t,e),this.size+=n.size==a?0:1,this}},244:function(t,e,n){var i=n(108),a=n(118);t.exports=function(t,e,n,o){var r=n.length,s=r,c=!o;if(null==t)return!s;for(t=Object(t);r--;){var l=n[r];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++r<s;){var _=(l=n[r])[0],d=t[_],p=l[1];if(c&&l[2]){if(void 0===d&&!(_ in t))return!1}else{var u=new i;if(o)var f=o(d,p,_,t,e,u);if(!(void 0===f?a(p,d,3,o,u):f))return!1}}return!0}},245:function(t,e,n){var i=n(76);t.exports=function(){this.__data__=new i,this.size=0}},246:function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},247:function(t,e){t.exports=function(t){return this.__data__.get(t)}},248:function(t,e){t.exports=function(t){return this.__data__.has(t)}},249:function(t,e,n){var i=n(76),a=n(98),o=n(101);t.exports=function(t,e){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!a||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(r)}return n.set(t,e),this.size=n.size,this}},250:function(t,e,n){var i=n(108),a=n(140),o=n(253),r=n(254),s=n(70),c=n(4),l=n(73),_=n(82),d="[object Arguments]",p="[object Array]",u="[object Object]",f=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,h,b,v){var m=c(t),g=c(e),w=m?p:s(t),y=g?p:s(e),x=(w=w==d?u:w)==u,C=(y=y==d?u:y)==u,k=w==y;if(k&&l(t)){if(!l(e))return!1;m=!0,x=!1}if(k&&!x)return v||(v=new i),m||_(t)?a(t,e,n,h,b,v):o(t,e,w,n,h,b,v);if(!(1&n)){var j=x&&f.call(t,"__wrapped__"),T=C&&f.call(e,"__wrapped__");if(j||T){var O=j?t.value():t,S=T?e.value():e;return v||(v=new i),b(O,S,n,h,v)}}return!!k&&(v||(v=new i),r(t,e,n,h,b,v))}},251:function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},252:function(t,e){t.exports=function(t){return this.__data__.has(t)}},253:function(t,e,n){var i=n(59),a=n(174),o=n(60),r=n(140),s=n(175),c=n(129),l=i?i.prototype:void 0,_=l?l.valueOf:void 0;t.exports=function(t,e,n,i,l,d,p){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!d(new a(t),new a(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var u=s;case"[object Set]":var f=1&i;if(u||(u=c),t.size!=e.size&&!f)return!1;var h=p.get(t);if(h)return h==e;i|=2,p.set(t,e);var b=r(u(t),u(e),i,l,d,p);return p.delete(t),b;case"[object Symbol]":if(_)return _.call(t)==_.call(e)}return!1}},254:function(t,e,n){var i=n(176),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,r,s){var c=1&n,l=i(t),_=l.length;if(_!=i(e).length&&!c)return!1;for(var d=_;d--;){var p=l[d];if(!(c?p in e:a.call(e,p)))return!1}var u=s.get(t),f=s.get(e);if(u&&f)return u==e&&f==t;var h=!0;s.set(t,e),s.set(e,t);for(var b=c;++d<_;){var v=t[p=l[d]],m=e[p];if(o)var g=c?o(m,v,p,e,t,s):o(v,m,p,t,e,s);if(!(void 0===g?v===m||r(v,m,n,o,s):g)){h=!1;break}b||(b="constructor"==p)}if(h&&!b){var w=t.constructor,y=e.constructor;w==y||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof y&&y instanceof y||(h=!1)}return s.delete(t),s.delete(e),h}},255:function(t,e,n){var i=n(178),a=n(17);t.exports=function(t){for(var e=a(t),n=e.length;n--;){var o=e[n],r=t[o];e[n]=[o,r,i(r)]}return e}},256:function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},257:function(t,e){t.exports=function(t,e,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===e)return i;return-1}},272:function(t,e,n){var i=n(244),a=n(255),o=n(179);t.exports=function(t){var e=a(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||i(n,t,e)}}},273:function(t,e,n){var i=n(118),a=n(1),o=n(206),r=n(111),s=n(178),c=n(179),l=n(52);t.exports=function(t,e){return r(t)&&s(e)?c(l(t),e):function(n){var r=a(n,t);return void 0===r&&r===e?o(n,t):i(e,r,3)}}},274:function(t,e,n){var i=n(256),a=n(288),o=n(111),r=n(52);t.exports=function(t){return o(t)?i(r(t)):a(t)}},287:function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},288:function(t,e,n){var i=n(93);t.exports=function(t){return function(e){return i(e,t)}}},29:function(t,e,n){var i=n(83);t.exports=function(t){return null==t?"":i(t)}},30:function(t,e){t.exports=function(t){return null!=t&&"object"==i(t)}},31:function(t,e,n){var i=n(45),a=n(32),o=n(311),r=n(4);t.exports=function(t,e){return(r(t)?i:o)(t,a(e,3))}},311:function(t,e,n){var i=n(87),a=n(38);t.exports=function(t,e){var n=-1,o=a(t)?Array(t.length):[];return i(t,(function(t,i,a){o[++n]=e(t,i,a)})),o}},32:function(t,e,n){var a=n(272),o=n(273),r=n(51),s=n(4),c=n(274);t.exports=function(t){return"function"==typeof t?t:null==t?r:"object"==i(t)?s(t)?o(t[0],t[1]):a(t):c(t)}},328:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTemplateEditorIframe=e.getMotionEffectTrackerContainer=e.getEditorWritingFlowSelector=e.getEditorInserterMenuSelector=e.getContentAreaSelectorList=e.getContentAreaSelectorByVersion=e.getContentAreaSelector=void 0;var i=c(n(31)),a=c(n(65)),o=c(n(4)),r=c(n(7)),s=c(n(1));function c(t){return t&&t.__esModule?t:{default:t}}var l=function(){return{6.8:"block-editor-block-canvas",5.5:"interface-interface-skeleton__content",5.4:"block-editor-editor-skeleton__content",5.3:"edit-post-layout__content",5.2:"edit-post-layout__content","gutenberg-7.1":"edit-post-editor-regions__content"}};e.getContentAreaSelectorList=l;var _=function t(e,n){if((0,o.default)(e))return(0,i.default)(e,(function(e){return t(e,n)}));var a=n?".":"",r=(0,s.default)({6.8:"block-editor-block-canvas",5.5:"interface-interface-skeleton__content",5.4:"block-editor-editor-skeleton__content",5.3:"edit-post-layout__content",5.2:"edit-post-layout__content","gutenberg-7.1":"edit-post-editor-regions__content"},e,"");return"".concat(a).concat(r)};e.getContentAreaSelectorByVersion=_;var d=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?".":"";return n+((0,a.default)(t.document.querySelector(_("6.8",!0)))?(0,a.default)(t.document.querySelector(_("5.5",!0)))?(0,a.default)(t.document.querySelector(_("5.4",!0)))?(0,a.default)(t.document.querySelector(_("gutenberg-7.1",!0)))?_("5.2"):_("gutenberg-7.1"):_("5.4"):_("5.5"):_("6.8"))};e.getContentAreaSelector=d,e.getEditorWritingFlowSelector=function(){arguments.length>0&&void 0!==arguments[0]||window;var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e=t?".":"",n="block-editor-writing-flow";return e+n},e.getEditorInserterMenuSelector=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=d(t,!1),i=e?".":"";return i+((0,r.default)(_(["5.4","5.5"]),n)?"block-editor-inserter__menu":"editor-inserter__menu")},e.getMotionEffectTrackerContainer=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=d(t,!1),i=e?".":"";return i+("block-editor-editor-skeleton__content"===n?"block-editor-writing-flow":n)},e.getTemplateEditorIframe=function(t){return t.jQuery('iframe[name="editor-canvas"]').contents()}},33:function(t,e,n){var i=n(150);t.exports=function(t){var e=i(t),n=e%1;return e==e?n?e-n:e:0}},334:function(t,e,n){var i=n(83),a=n(165),o=n(181),r=n(91),s=n(345),c=n(166),l=n(29);t.exports=function(t,e,n){return n&&"number"!=typeof n&&r(t,e,n)&&(e=n=void 0),(n=void 0===n?4294967295:n>>>0)?(t=l(t))&&("string"==typeof e||null!=e&&!s(e))&&!(e=i(e))&&o(t)?a(c(t),0,n):t.split(e,n):[]}},343:function(t,e){t.exports=function(t){return t.split("")}},344:function(t,e){var n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",a="[^\\ud800-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",r="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+i+")?",c="[\\ufe0e\\ufe0f]?",l=c+s+"(?:\\u200d(?:"+[a,o,r].join("|")+")"+c+s+")*",_="(?:"+[a+n+"?",n,o,r,"[\\ud800-\\udfff]"].join("|")+")",d=RegExp(i+"(?="+i+")|"+_+l,"g");t.exports=function(t){return t.match(d)||[]}},345:function(t,e,n){var i=n(439),a=n(81),o=n(107),r=o&&o.isRegExp,s=r?a(r):i;t.exports=s},35:function(t,e,n){var i=n(37),a=n(12);t.exports=function(t){if(!a(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},353:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setImportantInlineValue=e.registerFrontendComponent=e.maybeIncreaseEmitterMaxListeners=e.maybeDecreaseEmitterMaxListeners=e.isVB=e.isTB=e.isLBP=e.isLBB=e.isFE=e.isExtraTheme=e.isDiviTheme=e.isBuilderType=e.isBuilder=e.isBlockEditor=e.isBFB=e.is=e.getOffsets=e.getBuilderUtilsParams=e.getBuilderType=void 0;var a=c(n(7)),o=c(n(1)),r=c(n(8)),s=n(354);function c(t){return t&&t.__esModule?t:{default:t}}function l(t){return(l="function"==typeof Symbol&&"symbol"==i(Symbol.iterator)?function(t){return i(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":i(t)})(t)}var _=function(){return window.et_builder_utils_params?window.et_builder_utils_params:s.top_window.et_builder_utils_params?s.top_window.et_builder_utils_params:{}};e.getBuilderUtilsParams=_;var d=function(){return(0,o.default)(_(),"builderType","")};e.getBuilderType=d;var p=function(t){return t===d()};e.isBuilderType=p;var u=function(t){return(0,o.default)(_(),"condition.".concat(t))};e.is=u;var f=p("fe");e.isFE=f;var h=p("vb");e.isVB=h;var b=p("bfb");e.isBFB=b;var v=p("tb");e.isTB=v;var m=p("lbb");e.isLBB=m;var g=u("diviTheme");e.isDiviTheme=g;var w=u("extraTheme");e.isExtraTheme=w;var y=p("lbp");e.isLBP=y;var x=0<(0,r.default)(s.top_window.document).find(".edit-post-layout__content").length;e.isBlockEditor=x;var C=(0,a.default)(["vb","bfb","tb","lbb"],d());e.isBuilder=C,e.getOffsets=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=C&&t.hasClass("et_pb_sticky")&&"fixed"!==t.css("position"),a=t.data("et-offsets"),r=t.data("et-offsets-device"),s=(0,o.default)(window.ET_FE,"stores.window.breakpoint","");if(i&&void 0!==a&&r===s)return a;var c=t.offset();if(void 0===c)return{};var l=C?t.children('.et-fb-custom-css-output[data-sticky-has-transform="on"]').length>0:t.hasClass("et_pb_sticky--has-transform"),_=void 0===c.top?0:c.top,d=void 0===c.left?0:c.left;if(l){var p=t.parent().offset(),u={top:c.top-p.top,left:c.left-p.left},f={top:t[0].offsetTop,left:t[0].offsetLeft};_+=f.top-u.top,c.top=_,d+=f.left-u.left,c.left=d}return c.right=d+e,c.bottom=_+n,t.data("et-offsets",c),""!==s&&t.data("et-offsets-device",c),c},e.maybeIncreaseEmitterMaxListeners=function(t,e){var n=t.listenerCount(e),i=t.getMaxListeners();n===i&&t.setMaxListeners(i+1)},e.maybeDecreaseEmitterMaxListeners=function(t,e){var n=t.listenerCount(e);t.getMaxListeners()>10&&t.setMaxListeners(n)},e.registerFrontendComponent=function(t,e,n){void 0===window.ET_FE&&(window.ET_FE={}),"object"!==l(window.ET_FE[t])&&(window.ET_FE[t]={}),window.ET_FE[t][e]=n},e.setImportantInlineValue=function(t,e,n){t.css(e,"");var i=t.attr("style");t.attr("style","".concat(i," ").concat(e,": ").concat(n," !important;"))}},354:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.top_window=e.is_iframe=void 0;var i=window;e.top_window=i;var a,o=!1;e.is_iframe=o;try{a=!!window.top.document&&window.top}catch(t){a=!1}a&&a.__Cypress__?window.parent===a?(e.top_window=i=window,e.is_iframe=o=!1):(e.top_window=i=window.parent,e.is_iframe=o=!0):a&&(e.top_window=i=a,e.is_iframe=o=a!==window.self)},36:function(t,e,n){var i=n(37),a=n(4),o=n(30);t.exports=function(t){return"string"==typeof t||!a(t)&&o(t)&&"[object String]"==i(t)}},37:function(t,e,n){var i=n(59),a=n(219),o=n(220),r=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":r&&r in Object(t)?a(t):o(t)}},38:function(t,e,n){var i=n(35),a=n(99);t.exports=function(t){return null!=t&&a(t.length)&&!i(t)}},4:function(t,e){var n=Array.isArray;t.exports=n},439:function(t,e,n){var i=n(37),a=n(30);t.exports=function(t){return a(t)&&"[object RegExp]"==i(t)}},44:function(t,e,n){var i=n(201),a=n(222);t.exports=function(t,e){var n=a(t,e);return i(n)?n:void 0}},45:function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,a=Array(i);++n<i;)a[n]=e(t[n],n,t);return a}},51:function(t,e){t.exports=function(t){return t}},52:function(t,e,n){var i=n(53);t.exports=function(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},53:function(t,e,n){var a=n(37),o=n(30);t.exports=function(t){return"symbol"==i(t)||o(t)&&"[object Symbol]"==a(t)}},54:function(t,e,n){var i=n(210);t.exports=function(t,e,n){return null==t?t:i(t,e,n)}},59:function(t,e,n){var i=n(23).Symbol;t.exports=i},60:function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},65:function(t,e){t.exports=function(t){return null===t}},7:function(t,e,n){var i=n(102),a=n(38),o=n(36),r=n(33),s=n(86),c=Math.max;t.exports=function(t,e,n,l){t=a(t)?t:s(t),n=n&&!l?r(n):0;var _=t.length;return n<0&&(n=c(_+n,0)),o(t)?n<=_&&t.indexOf(e,n)>-1:!!_&&i(t,e,n)>-1}},70:function(t,e,n){var i=n(218),a=n(98),o=n(223),r=n(170),s=n(171),c=n(37),l=n(139),_="[object Map]",d="[object Promise]",p="[object Set]",u="[object WeakMap]",f="[object DataView]",h=l(i),b=l(a),v=l(o),m=l(r),g=l(s),w=c;(i&&w(new i(new ArrayBuffer(1)))!=f||a&&w(new a)!=_||o&&w(o.resolve())!=d||r&&w(new r)!=p||s&&w(new s)!=u)&&(w=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,i=n?l(n):"";if(i)switch(i){case h:return f;case b:return _;case v:return d;case m:return p;case g:return u}return e}),t.exports=w},71:function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var a=i(t);return!!(e=null==e?9007199254740991:e)&&("number"==a||"symbol"!=a&&n.test(t))&&t>-1&&t%1==0&&t<e}},73:function(t,e,n){(function(t){var a=n(23),o=n(186),r=e&&!e.nodeType&&e,s=r&&"object"==i(t)&&t&&!t.nodeType&&t,c=s&&s.exports===r?a.Buffer:void 0,l=(c?c.isBuffer:void 0)||o;t.exports=l}).call(this,n(96)(t))},74:function(t,e,n){var i=n(4),a=n(111),o=n(172),r=n(29);t.exports=function(t,e){return i(t)?t:a(t,e)?[t]:o(r(t))}},75:function(t,e,n){var i=n(44)(Object,"create");t.exports=i},76:function(t,e,n){var i=n(234),a=n(235),o=n(236),r=n(237),s=n(238);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=r,c.prototype.set=s,t.exports=c},77:function(t,e,n){var i=n(60);t.exports=function(t,e){for(var n=t.length;n--;)if(i(t[n][0],e))return n;return-1}},78:function(t,e,n){var i=n(240);t.exports=function(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}},8:function(t,e){t.exports=window.jQuery},80:function(t,e,n){var i=n(224),a=n(30),o=Object.prototype,r=o.hasOwnProperty,s=o.propertyIsEnumerable,c=i(function(){return arguments}())?i:function(t){return a(t)&&r.call(t,"callee")&&!s.call(t,"callee")};t.exports=c},81:function(t,e){t.exports=function(t){return function(e){return t(e)}}},82:function(t,e,n){var i=n(225),a=n(81),o=n(107),r=o&&o.isTypedArray,s=r?a(r):i;t.exports=s},83:function(t,e,n){var i=n(59),a=n(45),o=n(4),r=n(53),s=i?i.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return a(e,t)+"";if(r(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},86:function(t,e,n){var i=n(190),a=n(17);t.exports=function(t){return null==t?[]:i(t,a(t))}},87:function(t,e,n){var i=n(126),a=n(204)(i);t.exports=a},89:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==("undefined"==typeof window?"undefined":i(window))&&(n=window)}t.exports=n},9:function(t,e,n){var i=n(100),a=n(87),o=n(110),r=n(4);t.exports=function(t,e){return(r(t)?i:a)(t,o(e))}},90:function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},91:function(t,e,n){var a=n(60),o=n(38),r=n(71),s=n(12);t.exports=function(t,e,n){if(!s(n))return!1;var c=i(e);return!!("number"==c?o(n)&&r(e,n.length):"string"==c&&e in n)&&a(n[e],t)}},93:function(t,e,n){var i=n(74),a=n(52);t.exports=function(t,e){for(var n=0,o=(e=i(e,t)).length;null!=t&&n<o;)t=t[a(e[n++])];return n&&n==o?t:void 0}},96:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},98:function(t,e,n){var i=n(44)(n(23),"Map");t.exports=i},99:function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}}}))},function(t,e,n){var i=n(25),a=n(26),o=n(27);t.exports=function(t,e,n){return e==e?o(t,e,n):i(t,a,n)}},function(t,e){t.exports=function(t,e,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(e(t[o],o,t))return o;return-1}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===e)return i;return-1}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var i=n(10),a=Object.prototype,o=a.hasOwnProperty,r=a.toString,s=i?i.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(t){}var a=r.call(t);return i&&(e?t[s]=n:delete t[s]),a}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var i=n(1),a=n(2),o=n(3);t.exports=function(t){return"string"==typeof t||!a(t)&&o(t)&&"[object String]"==i(t)}},function(t,e,n){var i=n(33);t.exports=function(t){var e=i(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var i=n(34);t.exports=function(t){return t?(t=i(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},function(t,e,n){var i=n(35),a=n(11),o=n(5),r=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(a(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=a(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=i(t);var n=s.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):r.test(t)?NaN:+t}},function(t,e,n){var i=n(36),a=/^\s+/;t.exports=function(t){return t?t.slice(0,i(t)+1).replace(a,""):t}},function(t,e){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},function(t,e,n){var i=n(38),a=n(39);t.exports=function(t){return null==t?[]:i(t,a(t))}},function(t,e,n){var i=n(16);t.exports=function(t,e){return i(e,(function(e){return t[e]}))}},function(t,e,n){var i=n(40),a=n(51),o=n(12);t.exports=function(t){return o(t)?i(t):a(t)}},function(t,e,n){var i=n(41),a=n(42),o=n(2),r=n(44),s=n(46),c=n(47),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),_=!n&&a(t),d=!n&&!_&&r(t),p=!n&&!_&&!d&&c(t),u=n||_||d||p,f=u?i(t.length,String):[],h=f.length;for(var b in t)!e&&!l.call(t,b)||u&&("length"==b||d&&("offset"==b||"parent"==b)||p&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||s(b,h))||f.push(b);return f}},function(t,e){t.exports=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}},function(t,e,n){var i=n(43),a=n(3),o=Object.prototype,r=o.hasOwnProperty,s=o.propertyIsEnumerable,c=i(function(){return arguments}())?i:function(t){return a(t)&&r.call(t,"callee")&&!s.call(t,"callee")};t.exports=c},function(t,e,n){var i=n(1),a=n(3);t.exports=function(t){return a(t)&&"[object Arguments]"==i(t)}},function(t,e,n){(function(t){var i=n(4),a=n(45),o=e&&!e.nodeType&&e,r=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=r&&r.exports===o?i.Buffer:void 0,c=(s?s.isBuffer:void 0)||a;t.exports=c}).call(this,n(17)(t))},function(t,e){t.exports=function(){return!1}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var i=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==i||"symbol"!=i&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,n){var i=n(48),a=n(49),o=n(50),r=o&&o.isTypedArray,s=r?a(r):i;t.exports=s},function(t,e,n){var i=n(1),a=n(15),o=n(3),r={};r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&a(t.length)&&!!r[i(t)]}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){var i=n(14),a=e&&!e.nodeType&&e,o=a&&"object"==typeof t&&t&&!t.nodeType&&t,r=o&&o.exports===a&&i.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||r&&r.binding&&r.binding("util")}catch(t){}}();t.exports=s}).call(this,n(17)(t))},function(t,e,n){var i=n(52),a=n(53),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return a(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var i=n(54)(Object.keys,Object);t.exports=i},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var i=n(56),a=n(89);t.exports=function(t,e){for(var n=0,o=(e=i(e,t)).length;null!=t&&n<o;)t=t[a(e[n++])];return n&&n==o?t:void 0}},function(t,e,n){var i=n(2),a=n(57),o=n(58),r=n(87);t.exports=function(t,e){return i(t)?t:a(t,e)?[t]:o(r(t))}},function(t,e,n){var i=n(2),a=n(5),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;t.exports=function(t,e){if(i(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!a(t))||(r.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e,n){var i=n(59),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,r=i((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(a,(function(t,n,i,a){e.push(i?a.replace(o,"$1"):n||t)})),e}));t.exports=r},function(t,e,n){var i=n(60);t.exports=function(t){var e=i(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},function(t,e,n){var i=n(61);function a(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,a=e?e.apply(this,i):i[0],o=n.cache;if(o.has(a))return o.get(a);var r=t.apply(this,i);return n.cache=o.set(a,r)||o,r};return n.cache=new(a.Cache||i),n}a.Cache=i,t.exports=a},function(t,e,n){var i=n(62),a=n(82),o=n(84),r=n(85),s=n(86);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=r,c.prototype.set=s,t.exports=c},function(t,e,n){var i=n(63),a=n(74),o=n(81);t.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||a),string:new i}}},function(t,e,n){var i=n(64),a=n(70),o=n(71),r=n(72),s=n(73);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=r,c.prototype.set=s,t.exports=c},function(t,e,n){var i=n(6);t.exports=function(){this.__data__=i?i(null):{},this.size=0}},function(t,e,n){var i=n(13),a=n(66),o=n(11),r=n(68),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,_=c.toString,d=l.hasOwnProperty,p=RegExp("^"+_.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||a(t))&&(i(t)?p:s).test(r(t))}},function(t,e,n){var i,a=n(67),o=(i=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var i=n(4)["__core-js_shared__"];t.exports=i},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var i=n(6),a=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(i){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(e,t)?e[t]:void 0}},function(t,e,n){var i=n(6),a=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return i?void 0!==e[t]:a.call(e,t)}},function(t,e,n){var i=n(6);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,n){var i=n(75),a=n(76),o=n(78),r=n(79),s=n(80);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}c.prototype.clear=i,c.prototype.delete=a,c.prototype.get=o,c.prototype.has=r,c.prototype.set=s,t.exports=c},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var i=n(7),a=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=i(e,t);return!(n<0)&&(n==e.length-1?e.pop():a.call(e,n,1),--this.size,!0)}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var i=n(7);t.exports=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var i=n(7);t.exports=function(t){return i(this.__data__,t)>-1}},function(t,e,n){var i=n(7);t.exports=function(t,e){var n=this.__data__,a=i(n,t);return a<0?(++this.size,n.push([t,e])):n[a][1]=e,this}},function(t,e,n){var i=n(18)(n(4),"Map");t.exports=i},function(t,e,n){var i=n(8);t.exports=function(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var i=n(8);t.exports=function(t){return i(this,t).get(t)}},function(t,e,n){var i=n(8);t.exports=function(t){return i(this,t).has(t)}},function(t,e,n){var i=n(8);t.exports=function(t,e){var n=i(this,t),a=n.size;return n.set(t,e),this.size+=n.size==a?0:1,this}},function(t,e,n){var i=n(88);t.exports=function(t){return null==t?"":i(t)}},function(t,e,n){var i=n(10),a=n(16),o=n(2),r=n(5),s=i?i.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return a(e,t)+"";if(r(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e,n){var i=n(5);t.exports=function(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},,,,,,function(t,e,n){"use strict";n.r(e);n(21),n(22),n(23);var i=n(19),a=n.n(i),o=n(9),r=n.n(o),s=n(20),c=n.n(s),l=n(0);var _=function(){return window.et_builder_utils_params?window.et_builder_utils_params:l.a.et_builder_utils_params?l.a.et_builder_utils_params:{}},d=function(){return r()(_(),"builderType","")},p=function(t){return t===d()},u=function(t){return r()(_(),"condition.".concat(t))},f=(p("fe"),p("vb"),p("bfb"),p("tb"),p("lbb"),u("diviTheme"),u("extraTheme"),p("lbp"),c()(l.a.document).find(".edit-post-layout__content").length,a()(["vb","bfb","tb","lbb"],d()));!function(t){window.et_calculating_scroll_position=!1,window.et_side_nav_links_initialized=!1;var e=f?ET_Builder.Frames.top:window,n={};function i(){return n.et_get_first_section?n.et_get_first_section:n.et_get_first_section=t(".et-l:not(.et-l--footer) .et_pb_section:visible").first()}var a="ontouchstart"in window||navigator.maxTouchPoints,o=t(window),r=t("#main-content .container:first-child");function s(t,e,n){var i,a,o,r,s,c=Date.now||(new Date).getTime(),l=function l(){var _=c-r;_<e&&_>=0?i=setTimeout(l,e-_):(i=null,n||(s=t.apply(o,a),i||(o=a=null)))};return function(){o=this,a=arguments,r=c;var _=n&&!i;return i||(i=setTimeout(l,e)),_&&(s=t.apply(o,a),o=a=null),s}}function c(e){var n,i=t("body"),a=t("#logo"),o=parseInt(a.attr("data-actual-width")),r=parseInt(a.attr("data-actual-height")),s=parseInt(a.attr("data-height-percentage")),c=t("#et-top-navigation"),l=parseInt(c.attr("data-height")),_=parseInt(c.attr("data-fixed-height")),d=t("#main-header"),p=i.hasClass("et_header_style_split"),u=d.hasClass("et-fixed-header"),f=i.hasClass("et_hide_primary_logo"),h=i.hasClass("et_hide_fixed_logo"),b=u?l:_;e=void 0!==e&&e,p&&!window.et_is_vertical_nav&&(e&&(b=l),n=o*((b*(s/100)+22)/r),f&&(u||e)&&(n=0),!h||u||e||(n=0),t(".et_header_style_split .centered-inline-logo-wrap").css({width:n+"px"}))}function l(e){var n=t(".et_header_style_slide .et_slide_in_menu_container"),i=t(".et_header_style_slide #page-container, .et_header_style_slide.et_fixed_nav #main-header"),a=t(".et_header_style_slide #main-header"),o=n.hasClass("et_pb_slide_menu_opened"),r=void 0!==e?e:"auto",s=t("body").hasClass("et_boxed_layout"),c=s?parseFloat(t("#page-container").css("margin-left")):0,l=n.innerWidth(),_=t("body").hasClass("rtl");"auto"!==r&&(o&&"open"===r||!o&&"close"===r)||(o?(_?(n.css({left:"-"+l+"px"}),i.css({right:"0px"})):(n.css({right:"-"+l+"px"}),i.css({left:"0px"})),s&&et_is_fixed_nav&&(_?a.css({right:c+"px"}):a.css({left:c+"px"})),setTimeout((function(){n.css({display:"none"})}),700)):(n.css({display:"block"}),setTimeout((function(){if(_?(n.css({left:"0px"}),i.css({right:"-"+(l-c)+"px"})):(n.css({right:"0px"}),i.css({left:"-"+(l-c)+"px"})),s&&et_is_fixed_nav){var t=0>l-2*c?Math.abs(l-2*c):"-"+(l-2*c);t<l&&(_?a.css({right:t+"px"}):a.css({left:t+"px"}))}}),50)),t("body").toggleClass("et_pb_slide_menu_active"),n.toggleClass("et_pb_slide_menu_opened"))}function _(){if(et_is_fixed_nav&&!(980>=parseInt(o.width()))){var e=parseInt(t("#main-header").length?t("#main-header").innerHeight():0);t("html, body").animate({scrollTop:t("form.checkout").offset().top-100-e},1e3)}}function d(){var e=t(".et_header_style_fullscreen .et_slide_in_menu_container"),n=e.find(".et_slide_menu_top").innerHeight();e.toggleClass("et_pb_fullscreen_menu_opened"),t("body").toggleClass("et_pb_fullscreen_menu_active"),p(),e.hasClass("et_pb_fullscreen_menu_opened")?(e.addClass("et_pb_fullscreen_menu_animated"),e.css({"padding-top":n+20+"px"})):setTimeout((function(){e.removeClass("et_pb_fullscreen_menu_animated")}),1e3)}function p(t){if(f){var n=jQuery(".et_header_style_fullscreen .et_slide_in_menu_container.et_pb_fullscreen_menu_opened");if(n.length>0){var i=jQuery(e).height();i-=parseInt(n.css("padding-top"),10),n.closest(".admin-bar").length>0&&(i-=32),n.find(".et_pb_fullscreen_nav_container").css("max-height",i+"px")}}}if(document.addEventListener("DOMContentLoaded",(function(){var n,a=t("body").hasClass("et_fixed_nav")||t("body").hasClass("et_vertical_fixed"),l=t("body").hasClass("et_vertical_fixed"),_=t("body").hasClass("rtl"),u=t("body").hasClass("et_hide_nav"),h=t("body").hasClass("et_header_style_left"),b=t("#top-header"),v=t("#main-header"),m=t("#page-container"),g=t("body.single"),w=!1,y=0,x=t("#et-top-navigation"),C=t("#logo"),k=t("ul.nav, ul.menu"),j=t(".container"),T=t("body").hasClass("et_is_customize_preview"),O=t("#et-secondary-menu a.et-cart-info");if(t(".woocommerce .woocommerce-product-gallery").length>0){var S=t(".woocommerce-product-gallery")[0],P=S.outerHTML.replace("data-columns","data-cols");S.outerHTML=P}function z(){var e=t("#main-header > .container > .logo_container"),n=t(".centered-inline-logo-wrap > .logo_container"),i=x.children("nav").children("ul").children("li").length,a=Math.round(i/2)-1,r=window.innerWidth||o.width();r>980&&e.length&&t("body").hasClass("et_header_style_split")&&(t('<li class="centered-inline-logo-wrap"></li>').insertAfter(x.find("nav > ul >li:nth("+a+")")),e.appendTo(x.find(".centered-inline-logo-wrap"))),r<=980&&n.length&&(n.prependTo("#main-header > .container"),t("#main-header .centered-inline-logo-wrap").remove())}function I(){var e=t("body");if(e.hasClass("et_boxed_layout")&&e.hasClass("et_vertical_fixed")&&e.hasClass("et_vertical_right")){var n=parseFloat(t("#page-container").css("margin-right"));n=0>(n+=parseFloat(t("#et-main-area").css("margin-right"))-225)?0:n,t("#main-header").addClass("et_vertical_menu_set").css({left:"",right:n+"px"})}}O.length>0&&t(".shop_table.cart").length>0&&t(document.body).on("updated_wc_div",(function(){var e,n=0;t(".shop_table.cart").find(".product-quantity input").each((function(){n+=parseInt(t(this).val())})),e=(e=1===n?DIVI.item_count:DIVI.items_count).replace("%d",n),O.find("span").text(e)})),window.et_pb_init_nav_menu(k),(t(".et_header_style_split").length&&!window.et_is_vertical_nav||T)&&(z(),t(window).on("resize",(function(){z()}))),window.et_is_vertical_nav&&(t("#main-header").height()<t("#et-top-navigation").height()&&t("#main-header").height(t("#et-top-navigation").height()+t("#logo").height()+100),I()),window.et_calculate_header_values=function(){var e=b.length&&b.is(":visible")?parseInt(b.innerHeight()):0,i=t("#wpadminbar").length?parseInt(t("#wpadminbar").innerHeight()):0,a=t(".et_header_style_slide .et_slide_in_menu_container"),o=t("body").hasClass("rtl");if(y=parseInt(t("#main-header").length?t("#main-header").innerHeight():0)+e,n=(y<=90?y-29:y-56)+i,a.length&&!t("body").hasClass("et_pb_slide_menu_active")&&(o?a.css({left:"-"+parseInt(a.innerWidth())+"px",display:"none"}):a.css({right:"-"+parseInt(a.innerWidth())+"px",display:"none"}),t("body").hasClass("et_boxed_layout")))if(o){var r=m.css("margin-right");v.css({right:r})}else{r=m.css("margin-left");v.css({left:r})}};var A=t("#commentform");if(et_pb_form_placeholders_init(A),A.on("submit",(function(){et_pb_remove_placeholder_text(A)})),et_duplicate_menu(t("#et-top-navigation ul.nav"),t("#et-top-navigation .mobile_nav"),"mobile_menu","et_mobile_menu"),et_duplicate_menu("",t(".et_pb_fullscreen_nav_container"),"mobile_menu_slide","et_mobile_menu","no_click_event"),t("ul.et_disable_top_tier").length){var E=t("ul.et_disable_top_tier > li > ul").prev("a");E.attr("href","#"),E.on("click",(function(t){t.preventDefault()}));var B=t("ul#mobile_menu > li > ul").prev("a");B.attr("href","#"),B.on("click",(function(t){t.preventDefault()}))}if(t("#et-secondary-nav").length&&t("#et-top-navigation #mobile_menu").append(t("#et-secondary-nav").clone().html()),t(".et_slide_in_menu_container").length){var M=t(".et_slide_in_menu_container").find(".menu-item-has-children > a");M.length&&M.append('<span class="et_mobile_menu_arrow"></span>')}function H(n){setTimeout((function(){var n=0,i=t("body"),a=f?e.jQuery("#wpadminbar"):t("#wpadminbar"),o=e.jQuery("html"),r=t("#top-header"),s=o.is(".et-fb-preview--zoom:not(.et-fb-preview--desktop)");if(s=(s=s||o.is(".et-fb-preview--tablet"))||o.is(".et-fb-preview--phone"),a.length&&!Number.isNaN(a.innerHeight())){var c=parseFloat(a.innerHeight());n+=f&&s?0:c}r.length&&r.is(":visible")&&(n+=r.innerHeight());var l=i.hasClass("et_fixed_nav"),_=!l&&i.hasClass("et_transparent_nav")&&i.hasClass("et_secondary_nav_enabled");window.et_is_vertical_nav||!l&&!_||t("#main-header").css("top",n+"px")}),n)}function F(){var e=t("body"),n=t(document).height(),i=t(window).height()+y+200;e.hasClass("et_vertical_nav")||(e.hasClass("et_hide_nav")||e.hasClass("et_hide_nav_disabled")&&e.hasClass("et_fixed_nav"))&&(n>i?(e.hasClass("et_hide_nav_disabled")&&(e.addClass("et_hide_nav"),e.removeClass("et_hide_nav_disabled")),t("#main-header").css("transform","translateY(-"+y+"px)"),t("#top-header").css("transform","translateY(-"+y+"px)")):(t("#main-header").css({transform:"translateY(0)",opacity:"1"}),t("#top-header").css({transform:"translateY(0)",opacity:"1"}),e.removeClass("et_hide_nav"),e.addClass("et_hide_nav_disabled")),W())}function L(t,e){var n={};n[e]=t.css(e),t.attr({"data-fix-page-container":"on"}).data({fix_page_container_style:n})}function D(t,e){if(void 0===t)return!1;var n=t.split("|");return void 0!==n[e]&&n[e]}function W(){var e,n,s=parseInt(o.width()),c=b.length&&b.is(":visible")?parseInt(b.innerHeight()):0,l=0,_=v.clone().addClass("et-disabled-animations main-header-clone").css({opacity:"0px",position:"fixed",top:"auto",right:"0px",bottom:"0px",left:"0px"}).appendTo(t("body"));if(t("body").hasClass("et-bfb")||t('*[data-fix-page-container="on"]').each((function(){var e=t(this),n=e.data();n&&n.fix_page_container_style&&e.css(n.fix_page_container_style)})),s>980&&(!v.attr("data-height-loaded")||t("body").is(".et-fb"))){var d=0;v.hasClass("et-fixed-header")?(_.removeClass("et-fixed-header"),d=_.height(),_.addClass("et-fixed-header")):d=v.height(),v.attr({"data-height-onload":parseInt(d),"data-height-loaded":!0})}if(s<=980?(e=parseInt(v.length?v.innerHeight():0)+c-(t("body").hasClass("et-fb")?0:1),window.et_is_transparent_nav&&!i().length&&(e+=58)):(e=parseInt(v.attr("data-height-onload"))+c,window.et_is_transparent_nav&&!window.et_is_vertical_nav&&r.length&&(e+=58),l=_.height()),u){var p=parseInt(x.data("height"))-parseInt(x.data("fixed-height"));l=parseInt(v.data("height-onload"))-p}v.attr({"data-fixed-height-onload":l});var f=t(".et_fixed_nav.et_transparent_nav.et-db.et_full_width_page #left-area > .woocommerce-notices-wrapper");if(f.length>0&&"yes"!==f.attr("data-position-set")){var h=l;0===h&&v.attr("data-height-onload")&&(h=v.attr("data-height-onload")),f.css("marginTop",parseFloat(h)+"px"),f.animate({opacity:"1"}),f.attr("data-position-set","yes")}var w=t(document).height(),C=t(window).height()+y+200>w,k=parseInt(t(window).width())>980&&u;if(!window.et_is_transparent_nav||window.et_is_vertical_nav||k&&!C)a&&m.css("paddingTop",e+"px");else{t("body").hasClass("et-bfb")||i().addClass("et_pb_section_first");var j=i().length,T=j&&g.length,O=r.find(".et_post_meta_wrapper").first(),S=O.find("h1.entry-title"),P=t(".single.et_pb_pagebuilder_layout.et_full_width_page"),z=P.length&&S.length,I=P.length&&0===S.length,A=T&&t(".et-l--body").length,E=i().is(".et_pb_fullwidth_section"),B=s<=980&&r.length,M=t("body").hasClass("single-project");if(A||!T||I&&E||M)if(E){var F=i().children(".et_pb_module:visible").first();if(I&&E&&s>980&&(e-=58),F.is(".et_pb_slider")){var W=F.find(".et_pb_slide_image"),q=F.find(".et_pb_slide"),N=F.find(".et_pb_slide .et_pb_container"),$=0-parseInt(W.height())/2,V=F.find(".et-pb-slider-arrows a"),R=V.height();L(q,"paddingTop"),q.css({paddingTop:e+"px"}),N.css({"min-height":""}),L(W,"marginTop"),W.css({marginTop:$+"px"}),L(V,"marginTop"),V.css({marginTop:e/2-R/2+"px"});var Q=0;F.find(".et_pb_slide").each((function(){var e=t(this),n=e.find(".et_pb_container");e.show(),n.css({"min-height":""});var i=n.innerHeight();Q<i&&(Q=i),e.is(':not(".et-pb-active-slide")')&&e.hide()})),L(N,"min-height"),N.css({"min-height":Q+"px"})}else if(F.is(".et_pb_fullwidth_header")){F.removeAttr("style");var U=parseInt(F.css("paddingTop"));L(F,"paddingTop"),F.css({paddingTop:e+U+"px"})}else if(F.is(".et_pb_fullwidth_portfolio"))L(F,"paddingTop"),F.css({paddingTop:e+"px"});else if(F.is(".et_pb_map_container")){var Z=F.find(".et_pb_map");Z.css({height:""}),F.find(".et_pb_map").css({height:e+parseInt(Z.css("height"))+"px"}),F.addClass("et_beneath_transparent_nav")}else if(F.is(".et_pb_menu")||F.is(".et_pb_fullwidth_menu"))L(F,"marginTop"),F.css({marginTop:e+"px"});else if(F.is(".et_pb_fullwidth_code")){var Y=F;Y.css({paddingTop:""});var G=parseInt(Y.css("paddingTop"));L(Y,"paddingTop"),Y.css({paddingTop:e+G+"px"})}else if(F.is(".et_pb_post_title")){L(F,"paddingTop"),F.css({paddingTop:e+50+"px"})}else F.length||(n=parseFloat(i().css("paddingTop")),L(i(),"paddingTop"),i().data("is_hide_nav")||i().css({paddingTop:n+e+"px"}),clearTimeout(window.et_fallback_transparent_adjustment_timeout),window.et_fallback_transparent_adjustment_timeout=setTimeout((function(){var a=t("body").hasClass("et_hide_nav")&&"matrix(1, 0, 0, 1, 0, 0)"!==t("#main-header").css("transform");a?i().css({paddingTop:""}):i().css({paddingTop:n+e+"px"}),i().data("is_hide_nav",a)}),300))}else if(j){i().css({paddingTop:""});var X,J=D(i().attr("data-padding"),0),K=D(i().attr("data-padding-tablet"),0),tt=D(i().attr("data-padding-phone"),0);J||K||tt?(s>980&&J?i().css({paddingTop:"number"==typeof J?J+"px":J}):s>767&&K?i().css({paddingTop:"number"==typeof K?K+"px":K}):tt&&i().css({paddingTop:"number"==typeof tt?tt+"px":tt}),X=parseInt(i().css("paddingTop")),i().css({paddingTop:e+X+"px"})):(n=e+parseInt(i().css("paddingTop")),L(i(),"paddingTop"),i().css({paddingTop:n+"px"}))}else B?r.css({paddingTop:e+"px"}):t("#main-content .container:first-child").css({paddingTop:e+"px"});else r.css({paddingTop:""}),s<980&&(e+=40),E&&i().css({paddingTop:"0px"}),z?O.css({paddingTop:e+"px"}):I?(L(i(),"paddingTop"),i().css({paddingTop:""}),i().css({paddingTop:"calc("+(e-58)+"px + "+i().css("paddingTop")+")"})):(L(r,"paddingTop"),r.css({paddingTop:e+"px"}));t("#et_fix_page_container_position").length||t("<style />",{id:"et_fix_page_container_position",text:"#page-container{ padding-top: 0 !important;}"}).appendTo("head");var et=t(".et_pb_section:visible").first(),nt=et.find(".et_pb_row:visible").first(),it=et.find(".et_pb_module:visible").first(),at=et.hasClass("et_pb_section_parallax"),ot=nt.hasClass("et_pb_section_parallax"),rt=it.hasClass("et_pb_section_parallax");(at||ot||rt)&&t(window).trigger("resize.etTrueParallaxBackground")}_.remove(),H(0),t(document).trigger("et-pb-header-height-calculated")}window.et_change_primary_nav_position=H,window.et_fix_page_container_position=W,j.data("previous-width",parseInt(j.width()));var q=s((function(){W(),"function"==typeof et_fix_fullscreen_section&&et_fix_fullscreen_section()}),200);function N(){if(a&&et_calculate_header_values(),setTimeout((function(){W()}),0),window.et_is_minified_js&&window.et_is_transparent_nav&&!window.et_is_vertical_nav&&t(window).trigger("resize"),window.hasOwnProperty("et_location_hash")&&""!==window.et_location_hash&&function(){var e=window.et_location_hash.replace(/(\|)/g,"\\$1");if(0!==t(e).length){var n=t(e+" .et_pb_map_container"),i=n.children(".et_pb_map"),a=t(e);void 0!==window.et_location_hash_style&&a.css("display",window.et_location_hash_style);var o=(void 0!==a.offset().top?a.offset().top:0)>4e3?1600:800;n.length&&google.maps.event.trigger(i[0],"resize"),a.parents().hasClass("commentlist")&&t(".reviews_tab").trigger("click").animate({scrollTop:a.offset().top},700),setTimeout((function(){et_pb_smooth_scroll(a,!1,o,"swing"),setTimeout((function(){et_pb_smooth_scroll(a,!1,150,"linear")}),o+25)}),700)}}(),h&&!window.et_is_vertical_nav){var e=parseInt(t("#logo").width());_?x.css("padding-right",e+30+"px"):x.css("padding-left",e+30+"px")}if(t("p.demo_store").length&&t("p.demo_store").is(":visible")&&(t("#footer-bottom").css("margin-bottom",t("p.demo_store").innerHeight()+"px"),t(".woocommerce-store-notice__dismiss-link").on("click",(function(){t("#footer-bottom").css("margin-bottom","")}))),t.fn.waypoint){var s;if(l&&(s=t("#main-content")).waypoint({handler:function(e){c(),"down"===e?t("#main-header").addClass("et-fixed-header"):t("#main-header").removeClass("et-fixed-header")}}),a){var d=(i().length>0?i().offset().top:0)<=(t("#wpadminbar").length?t("#wpadminbar").height():0);d&&window.et_is_transparent_nav&&!window.et_is_vertical_nav&&i().length?(s=i().is(".et_pb_fullwidth_section")?i().children(".et_pb_module:visible").first():i().find(".et_pb_row:visible").first()).length||(s=t(".et-l .et_pb_module:visible").first()):s=d&&window.et_is_transparent_nav&&!window.et_is_vertical_nav&&r.length?t("#content-area"):t("#main-content");var p=!0;setTimeout((function(){p=!1}),0),s.waypoint({offset:function(){if(w&&(setTimeout((function(){et_calculate_header_values()}),200),w=!1),u)return n-y-200;var t=s.offset();return t.top<n&&(n=0-(n-t.top)),n},handler:function(e){if(c(),"down"===e){if(p&&0===o.scrollTop())return;if(v.addClass("et-fixed-header"),m.addClass("et-animated-content"),b.addClass("et-fixed-header"),!u&&!window.et_is_transparent_nav&&!t(".mobile_menu_bar_toggle").is(":visible")){var n,i,a,r=b.length?parseInt(b.height()):0;n=v.clone().addClass("et-fixed-header, et_header_clone").css({transition:"none",display:"none"}),i=parseInt(n.prependTo("body").height()),window.et_is_vertical_nav||(a=parseInt(m.css("padding-top"))-i-r+1,m.css("margin-top",-a+"px")),t(".et_header_clone").remove()}}else a=1,v.removeClass("et-fixed-header"),b.removeClass("et-fixed-header"),m.css("margin-top",-a+"px");window.dispatchEvent(new CustomEvent("ETDiviFixedHeaderTransitionStart",{detail:{marginTop:-a}})),setTimeout((function(){Z(),window.dispatchEvent(new CustomEvent("ETDiviFixedHeaderTransitionEnd",{detail:{marginTop:-a}}))}),400)}})}u&&F()}}t(window).on("resize",(function(){var n,i,r=parseInt(o.width()),s=j.length>0,c=s&&parseInt(j.data("previous-width"))||0,l=j.css("width"),_=void 0!==l?"%"!==l.substr(-1,1):"",d=s?_?parseInt(j.width()):parseInt((parseInt(j.width())/100).toFixed(0))*r:0,p=j.length&&c!==d,h=t(".et_slide_in_menu_container"),b=f?e.jQuery("#wpadminbar"):t("#wpadminbar"),g=t("body").hasClass("rtl");(a&&p&&(q(),j.data("previous-width",d)),u&&F(),(b.length&&a&&r>=740&&r<=782||f)&&(et_calculate_header_values(),H(0)),Z(),h.length&&!t("body").hasClass("et_pb_slide_menu_active")&&(g?h.css({left:"-"+parseInt(h.innerWidth())+"px",right:"unset"}):h.css({right:"-"+parseInt(h.innerWidth())+"px"}),t("body").hasClass("et_boxed_layout")&&a&&(g?(n=m.css("margin-right"),v.css({right:n})):(n=m.css("margin-left"),v.css({left:n})))),h.length&&t("body").hasClass("et_pb_slide_menu_active"))&&(t("body").hasClass("et_boxed_layout")?(n=parseFloat(m.css("margin-left")),m.css({left:"-"+(parseInt(h.innerWidth())-n)+"px"}),a&&(i=0>parseInt(h.innerWidth())-2*n?Math.abs(h.innerWidth()-2*n):"-"+(h.innerWidth()-2*n))<parseInt(h.innerWidth())&&v.css({left:i+"px"})):g?t("#page-container, .et_fixed_nav #main-header").css({right:"-"+parseInt(h.innerWidth())+"px"}):t("#page-container, .et_fixed_nav #main-header").css({left:"-"+parseInt(h.innerWidth())+"px"}));if(h.length&&t("body").hasClass("et_header_style_fullscreen")){var w=parseInt(h.find(".et_slide_menu_top").innerHeight());h.css({"padding-top":w+20+"px"})}I()})),f&&jQuery(".et_header_style_fullscreen .et_slide_in_menu_container").length>0&&jQuery(window).on("resize",p),t((function(){t.fn.fitVids&&t("#main-content").fitVids({customSelector:"iframe[src^='http://www.hulu.com'], iframe[src^='http://www.dailymotion.com'], iframe[src^='http://www.funnyordie.com'], iframe[src^='https://embed-ssl.ted.com'], iframe[src^='http://embed.revision3.com'], iframe[src^='https://flickr.com'], iframe[src^='http://blip.tv'], iframe[src^='http://www.collegehumor.com']"})})),t('a[href*="#"]:not([href="#"]), .mobile_nav').on("click",(function(e){var n=t(this),i=n.closest(".et_smooth_scroll_disabled").length,a=n.closest(".woocommerce-tabs").length&&n.closest(".tabs").length,o=n.closest(".tt_tabs_navigation").length,r=n.closest(".eab-shortcode_calendar-navigation-link").length,s=n.closest(".view-cart-lnk").length,c=n.hasClass("acomment-reply"),l=n.closest(".hustle-ui").length,_=n.hasClass("woocommerce-review-link"),p=i||s||a||r||c||_||o||l;if((n.hasClass("mobile_nav")||location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname)&&!p){var u=t(this.hash);if(n.hasClass("mobile_nav")&&(u=t("#"+e.target.hash.slice(1)),t(e.target).parent().hasClass("pum-trigger"))){e.preventDefault();var f=t(e.target).parent().attr("class").split(" ").filter((function(t){return t.includes("popmake")}))[0].split("-")[1];t("#pum-".concat(f)).css({opacity:"1",display:"block"}),t("#popmake-".concat(f)).css({opacity:"1",display:"block"})}if(!u.length&&this.hash&&(u=t("[name="+this.hash.slice(1)+"]")),u.length)return t(this).parents().hasClass("widget_recent_reviews")&&t(".reviews_tab").trigger("click").animate({scrollTop:u.offset().top},700),n.closest(".et_pb_fullscreen_menu_opened").length>0&&d(),setTimeout((function(){et_pb_smooth_scroll(u,!1,800)}),0),!t("#main-header").hasClass("et-fixed-header")&&t("body").hasClass("et_fixed_nav")&&t(window).width()>980&&setTimeout((function(){et_pb_smooth_scroll(u,!1,40,"linear")}),780),!1}}));var $,V,R,Q=function(){var e,n=t(".et-l--post"),i=t(".et-l--body .et_pb_section:visible").not(".et-l--post .et_pb_section");return e=f?n.find(".et-fb-post-content > .et_pb_section"):n.find(".et_builder_inner_content > .et_pb_section:visible"),0===i.length||e.length>1?e:i};function U(){t(".et_search_form_container").hasClass("et_pb_is_animating")||(t(".et_menu_container").removeClass("et_pb_menu_hidden et_pb_no_animation").addClass("et_pb_menu_visible"),t(".et_search_form_container").removeClass("et_pb_search_visible et_pb_no_animation").addClass("et_pb_search_form_hidden et_pb_is_animating"),setTimeout((function(){t(".et_menu_container").addClass("et_pb_no_animation"),t(".et_search_form_container").addClass("et_pb_no_animation").removeClass("et_pb_is_animating")}),1e3))}function Z(){var e=t(".et_search_form_container");if(e.hasClass("et_pb_search_visible")){var n=t("body"),i=t("#main-header").innerHeight(),a=t("#top-menu").width(),o=t("#top-menu li a").css("font-size");e.css({height:i+"px"}),e.find("input").css("font-size",o),n.hasClass("et_header_style_left")?e.find("form").css("max-width",a+60+"px"):e.css("max-width",a+60+"px")}}if(window.et_pb_window_side_nav_scroll_init=function(){if(!0!==window.et_calculating_scroll_position&&!1!==window.et_side_nav_links_initialized){var e=Q();window.et_calculating_scroll_position=!0;var n,i=t(".et-l--header").length||t(".et-l--body").length||!t("#main-header").length?0:-90,a=t("body").hasClass("et_fixed_nav")?20:i,o=t("#top-header").length>0?parseInt(t("#top-header").height()):0,r=t("#main-header").length>0?parseInt(t("#main-header").height()):0;t("#wpadminbar").length>0&&parseInt(t(window).width())>600&&(a+=parseInt(t("#wpadminbar").outerHeight())),n=window.et_is_vertical_nav?o+a+60:o+r+a;for(var s=parseInt(t(window).height()),c=parseInt(t(window).scrollTop()),l=s+c===parseInt(t(document).height()),_=t(".side_nav_item a").length-1,d=0;d<=_;d++){var p=e.eq(d),u=void 0===p.offset(),f=t(".side_nav_item a.active").parent().index(),h=null,b=!1===u?p.offset().top-n:0;u?h=0:l?h=_:c>=b&&(h=d),null!==h&&h!==f&&(t(".side_nav_item a").removeClass("active"),t("a#side_nav_item_id_"+h).addClass("active"))}window.et_calculating_scroll_position=!1}},window.et_pb_side_nav_page_init=function(e){if(t(".et_pb_side_nav_page").length){var n=Q(),i=n.length,a=parseInt((20*i+40)/2);window.et_side_nav_links_initialized=!1,window.et_calculating_scroll_position=!1,i>1&&t(".et_pb_side_nav_page").length&&(e?t(".et_pb_side_nav").empty():t("#main-content").append('<ul class="et_pb_side_nav"></ul>'),n.each((function(e,n){var a=0===e?"active":"";t(".et_pb_side_nav").append('<li class="side_nav_item"><a href="#" id="side_nav_item_id_'+e+'" class="'+a+'">'+e+"</a></li>"),i-1===e&&(window.et_side_nav_links_initialized=!0)})),t("ul.et_pb_side_nav").css("marginTop","-"+a+"px"),t(".et_pb_side_nav").addClass("et-visible"),t(".et_pb_side_nav a").on("click",(function(){var e=parseInt(t(this).text()),i=n.eq(e),a="0"==t(this).text()&&!t(".et-l--body").length;return et_pb_smooth_scroll(i,a,800),!t("#main-header").hasClass("et-fixed-header")&&t("body").hasClass("et_fixed_nav")&&parseInt(t(window).width())>980&&setTimeout((function(){et_pb_smooth_scroll(i,a,200)}),500),!1})),t(window).on("scroll",et_pb_window_side_nav_scroll_init))}},t(window).on("resize",(function(){et_pb_side_nav_page_init(!0)})),t("body").is(".et-fb, .et-bfb")&&(window.et_pb_side_nav_page_init=s(window.et_pb_side_nav_page_init,200)),et_pb_side_nav_page_init(),t(".et_pb_scroll_top").length&&(t(window).on("scroll",(function(){t(this).scrollTop()>800?t(".et_pb_scroll_top").show().removeClass("et-hidden").addClass("et-visible"):t(".et_pb_scroll_top").removeClass("et-visible").addClass("et-hidden")})),t(".et_pb_scroll_top").on("click",(function(){t("html, body").animate({scrollTop:0},800)}))),t(".comment-reply-link").length&&t(".comment-reply-link").addClass("et_pb_button"),t("#et_top_search").on("click",(function(){var e=t(".et_search_form_container");e.hasClass("et_pb_is_animating")||(t(".et_menu_container").removeClass("et_pb_menu_visible et_pb_no_animation").addClass("et_pb_menu_hidden"),e.removeClass("et_pb_search_form_hidden et_pb_no_animation").addClass("et_pb_search_visible et_pb_is_animating"),setTimeout((function(){t(".et_menu_container").addClass("et_pb_no_animation"),e.addClass("et_pb_no_animation").removeClass("et_pb_is_animating")}),1e3),e.find("input").trigger("focus"),Z())})),t(".et_close_search_field").on("click",(function(){U()})),t(document).on("mouseup",(function(e){var n=t("#main-header");t(".et_menu_container").hasClass("et_pb_menu_hidden")&&(n.is(e.target)||0!==n.has(e.target).length||U())})),C.length){var Y=C.is("img")?C.attr("src"):C.find("img").attr("src");$=Y,V=function(){var e,n,i,a="svg"===(C.is("img")?C.attr("src"):C.find("img").attr("src")).substr(-3,3);t("body").append(t("<div />",{id:"et-define-logo-wrap",style:"position: fixed; bottom: 0; opacity: 0;"})),e=t("#et-define-logo-wrap"),a&&e.addClass("svg-logo"),e.html(C.clone().css({display:"block"}).removeAttr("id")),n=e.find("img").width(),i=e.find("img").height(),C.attr({"data-actual-width":n,"data-actual-height":i}),e.remove(),c(!0)},(R=new Image).onLoad=V,R.onload=V,R.src=$}function G(){t(window).off("scroll",window.et_pb_window_side_nav_scroll_init),t("#main-content .et_pb_side_nav").off("click",".et_pb_side_nav a"),t("#main-content .et_pb_side_nav").remove(),et_pb_side_nav_page_init()}t(".footer-widget").each((function(){var e=t(this),n=e.width(),i=e.find(".widget_adsensewidget ins");i.length&&i.width(n)})),t("body").is(".et-fb")?(t(window).on("et_fb_root_did_mount",(function(){G(),N()})),t(window).on("et_fb_section_content_change",G)):window.addEventListener("load",N)})),t("#main-header").on("click",".et_toggle_slide_menu",(function(){l()})),a&&(o.on("swipeleft",(function(t){30>=parseInt(o.width())-parseInt(t.swipestart.coords[0])&&l("open")})),o.on("swiperight",(function(e){t("body").hasClass("et_pb_slide_menu_active")&&l("close")}))),t("#page-container").on("click",".et_toggle_fullscreen_menu",(function(){d()})),t(window).on("visibilitychange",(function(){t("body").hasClass("et_pb_fullscreen_menu_active")&&t(".et_toggle_fullscreen_menu").trigger("click")})),t(".et_pb_fullscreen_nav_container").on("click","li.menu-item-has-children > a",(function(){var e=t(this).closest("li"),n=e.find(">a .et_mobile_menu_arrow"),i=e.find(">ul"),a=n.hasClass("et_pb_submenu_opened");return n.toggleClass("et_pb_submenu_opened"),a?(i.removeClass("et_pb_slide_dropdown_opened"),i.slideToggle(700,"easeInOutCubic")):(i.slideToggle(700,"easeInOutCubic"),i.addClass("et_pb_slide_dropdown_opened")),!1})),t("body").hasClass("et_header_style_fullscreen")){var u=t(".et_header_style_fullscreen .et_slide_in_menu_container");if(u.length){var h=u.find(".et_slide_menu_top").innerHeight();u.css({"padding-top":h+20+"px"})}}t(document.body).on("checkout_error",(function(){_()})),t(document.body).on("updated_checkout",(function(t){"failure"===t.result&&_()})),o.on("et_fb_init",(function(){var t=e.wp;if(t&&t.hooks&&t.hooks.addFilter){var n=window.DIVI.row_selector;t.hooks.addFilter("et.pb.row.css.selector","divi.et.pb.row.css.selector",(function(t){return t.replace("%%row_selector%%",n)}))}}))}(jQuery)}]);
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=94)}({94:function(e,t){!function(){var e,t={frameRate:150,animationTime:400,stepSize:80,pulseAlgorithm:!0,pulseScale:8,pulseNormalize:1,accelerationDelta:20,accelerationMax:1,keyboardSupport:!0,arrowScroll:50,touchpadSupport:!0,fixedBackground:!0,excluded:""},n=t,r=!1,o={x:0,y:0},a=!1,i=document.documentElement,l=[120,120,120],u=37,c=38,s=39,d=40,f=32,m=33,p=34,h=35,w=36;n=t;function v(){if(document.body){var t,o=document.body,l=document.documentElement,u=window.innerHeight,c=o.scrollHeight;if(i=document.compatMode.indexOf("CSS")>=0?l:o,e=o,(t=document.body.classList.contains("et-fb"))&&C("keydown",k),n.keyboardSupport&&!t&&E("keydown",k),a=!0,top!=self)r=!0;else if(c>u&&(o.offsetHeight<=u||l.offsetHeight<=u)){var s=!1;if(l.style.height="auto",setTimeout((function(){s||l.scrollHeight==document.height||(s=!0,setTimeout((function(){l.style.height=document.height+"px",s=!1}),500))}),10),i.offsetHeight<=u){var d=document.createElement("div");d.style.clear="both",o.appendChild(d)}}n.fixedBackground||(o.style.backgroundAttachment="scroll",l.style.backgroundAttachment="scroll")}}var b=[],y=!1,g=+new Date;function S(e,t,r,a){var i,l;if(a||(a=1e3),i=(i=t)>0?1:-1,l=(l=r)>0?1:-1,(o.x!==i||o.y!==l)&&(o.x=i,o.y=l,b=[],g=0),1!=n.accelerationMax){var u=+new Date-g;if(u<n.accelerationDelta){var c=(1+30/u)/2;c>1&&(c=Math.min(c,n.accelerationMax),t*=c,r*=c)}g=+new Date}if(b.push({x:t,y:r,lastX:t<0?.99:-.99,lastY:r<0?.99:-.99,start:+new Date}),!y){var s=e===document.body;_((function o(i){for(var l=+new Date,u=0,c=0,d=0;d<b.length;d++){var f=b[d],m=l-f.start,p=m>=n.animationTime,h=p?1:m/n.animationTime;n.pulseAlgorithm&&(h=P(h));var w=f.x*h-f.lastX>>0,v=f.y*h-f.lastY>>0;u+=w,c+=v,f.lastX+=w,f.lastY+=v,p&&(b.splice(d,1),d--)}s?window.scrollBy(u,c):(u&&(e.scrollLeft+=u),c&&(e.scrollTop+=c)),t||r||(b=[]),b.length?_(o,e,a/n.frameRate+1):y=!1}),e,0),y=!0}}function k(t){var r=t.target,o=t.ctrlKey||t.altKey||t.metaKey||t.shiftKey&&t.keyCode!==f;if(/input|textarea|select|embed/i.test(r.nodeName)||r.isContentEditable||t.defaultPrevented||o)return!0;if(N(r,"button")&&t.keyCode===f)return!0;var a=0,i=0,l=T(e),v=l.clientHeight;switch(l==document.body&&(v=window.innerHeight),t.keyCode){case c:i=-n.arrowScroll;break;case d:i=n.arrowScroll;break;case f:i=-(t.shiftKey?1:-1)*v*.9;break;case m:i=.9*-v;break;case p:i=.9*v;break;case w:i=-window.pageYOffset;break;case h:var b=l.scrollHeight-l.scrollTop-v;i=b>0?b+10:0;break;case u:a=-n.arrowScroll;break;case s:a=n.arrowScroll;break;default:return!0}S(l,a,i),t.preventDefault()}var x={};setInterval((function(){x={}}),1e4);var M,D=(M=0,function(e){return e.uniqueID||(e.uniqueID=M++)});function H(e,t){for(var n=e.length;n--;)x[D(e[n])]=t;return t}function T(e){var t=[],n=i.scrollHeight;do{var o=x[D(e)];if(o)return H(t,o);if(t.push(e),n===e.scrollHeight){if(!r||i.clientHeight+10<n)return H(t,document.body)}else if(e.clientHeight+10<e.scrollHeight){var a=getComputedStyle(e,"").getPropertyValue("overflow-y");if("scroll"===a||"auto"===a)return H(t,e)}}while(e=e.parentNode)}function E(e,t,n){window.addEventListener(e,t,n||!1)}function C(e,t,n){window.removeEventListener(e,t,n||!1)}function N(e,t){return(e.nodeName||"").toLowerCase()===t.toLowerCase()}function O(e,t){return Math.floor(e/t)==e/t}var _=window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(e,t,n){window.setTimeout(e,n||1e3/60)};function z(e){var t,r;return(e*=n.pulseScale)<1?t=e-(1-Math.exp(-e)):(e-=1,t=(r=Math.exp(-1))+(1-Math.exp(-e))*(1-r)),t*n.pulseNormalize}function P(e){return e>=1?1:e<=0?0:(1==n.pulseNormalize&&(n.pulseNormalize/=z(1)),z(e))}var j=/chrome/i.test(window.navigator.userAgent),A=null;"onwheel"in document.createElement("div")?A="wheel":"onmousewheel"in document.createElement("div")&&(A="mousewheel");var L=document.body.className.split(" ").filter((function(e){return"et_smooth_scroll"===e})).length>0;A&&j&&L&&(window.addEventListener(A,(function(t){a||v();var r=t.target,o=T(r),i=document.documentElement.className.split(" ").filter((function(e){return"et-fb-preview--tablet"===e||"et-fb-preview--phone"===e||"et-fb-preview--zoom"===e||"et-fb-preview--wireframe"===e})).length>0;if(!o||t.defaultPrevented||N(e,"embed")||N(r,"embed")&&/\.pdf/i.test(r.src)||i)return!0;var u=t.wheelDeltaX||0,c=t.wheelDeltaY||0;if(u||c||(c=t.wheelDelta||0),!n.touchpadSupport&&function(e){if(!e)return;return e=Math.abs(e),l.push(e),l.shift(),clearTimeout(void 0),!(O(l[0],120)&&O(l[1],120)&&O(l[2],120))}(c))return!0;Math.abs(u)>1.2&&(u*=n.stepSize/120),Math.abs(c)>1.2&&(c*=n.stepSize/120),S(o,-u,-c),t.preventDefault()}),{passive:!1}),E("mousedown",(function(t){e=t.target})),E("load",v)),window.ET_SmoothScroll={toggleKeydown:function(e){e?E("keydown",k):C("keydown",k)}}}()}});
!function(){var e={795:function(){var e,t;(t=t||(e=[],{getAll:function(){return e},add:function(t){e.push(t)},remove:function(t){var i=e.indexOf(t);-1!==i&&e.splice(i,1)},update:function(t){if(0===e.length)return!1;var i=0;for(t=null!=t?t:window.performance.now();i<e.length;)e[i].update(t)?i++:e.splice(i,1);return!0}})).Tween=function(e){var i={},n={},o={},s=1e3,a=!1,r=0,l=null,h=t.Easing.Linear.None,u=t.Interpolation.Linear,p=null,c=!1,d=null,f=null,g=null;for(var m in e)i[m]=parseFloat(e[m],10);this.to=function(e,t){return null!=t&&(s=t),n=e,this},this.start=function(s){for(var h in t.add(this),a=!0,c=!1,l=(null!=s?s:window.performance.now())+r,n){if(n[h]instanceof Array){if(0===n[h].length)continue;n[h]=[e[h]].concat(n[h])}null!=i[h]&&(i[h]=e[h],i[h]instanceof Array==!1&&(i[h]*=1),o[h]=i[h]||0)}return this},this.stop=function(){return a&&(t.remove(this),a=!1,null!=g&&g.call(e)),this},this.complete=function(){return a&&(t.remove(this),a=!1,null!=f&&f.call(e)),this},this.delay=function(e){return r=e,this},this.easing=function(e){return h=null==e?h:e,this},this.onStart=function(e){return p=e,this},this.onUpdate=function(e){return d=e,this},this.onComplete=function(e){return f=e,this},this.onStop=function(e){return g=e,this},this.update=function(t){if(t<l)return!0;for(o in!1===c&&(null!=p&&p.call(e),c=!0),a=(a=(t-l)/s)>1?1:a,r=h(a),n)if(null!=i[o]){var o,a,r,g=i[o]||0,m=n[o];m instanceof Array?e[o]=u(m,r):("string"==typeof m&&(m=m.startsWith("+")||m.startsWith("-")?g+parseFloat(m,10):parseFloat(m,10)),"number"==typeof m&&(e[o]=g+(m-g)*r))}return null!=d&&d.call(e,r),1!==a||(null!=f&&f.call(e),!1)}},t.Easing={Linear:{None:function(e){return e}},Quadratic:{InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},Sinusoidal:{In:function(e){return 1-Math.cos(e*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)}},Cubic:{InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}}},t.Interpolation={Linear:function(e,i){var n=e.length-1,o=n*i,s=Math.floor(o),a=t.Interpolation.Utils.Linear;return i<0?a(e[0],e[1],o):i>1?a(e[n],e[n-1],n-o):a(e[s],e[s+1>n?n:s+1],o-s)},Utils:{Linear:function(e,t,i){return(t-e)*i+e}}},window.TWEEN=t}},t={};function i(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,i),s.exports}i.amdO={},function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}function t(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||n(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,i){if(t){if("string"==typeof t)return e(t,i);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,i)}}var o,s,a=new WeakMap,r=new WeakMap;function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e instanceof l)return e;if(!(this instanceof l))return new l(e,t);if(a.set(this,[]),this.length=0,!e)return this;var i=[];return"string"==typeof e?i=e.trim().startsWith("<")&&e.trim().endsWith(">")?(i=Array.from(document.createRange().createContextualFragment(e.trim()).children)).map(function(e){return e.cloneNode(!0)}):Array.from(document.querySelectorAll(e)):e.nodeType||e===window||e===document?i=[e]:void 0!==e.length&&(i=Array.from(e)),this._setElements(i,t),this}function h(){return!0}function u(){return!1}l.prototype._getElements=function(){return a.get(this)||[]},l.prototype._setElements=function(e,i){var n=this;return a.set(this,e),this.length=e.length,Object.keys(this).forEach(function(e){isNaN(e)||delete n[e]}),e.forEach(function(e,o){if(i.hasOwnProperty("class")){var s;(s=e.classList).add.apply(s,t(i.class.trim().split(" ")))}i.hasOwnProperty("id")&&(e.id=i.id),i.hasOwnProperty("title")&&(e.title=i.title),i.hasOwnProperty("html")&&(e.innerHTML=i.html),n[o]=e}),this},l.prototype.on=function(e,t,i){var n,o;return"string"==typeof t&&"function"==typeof i?(o=t,n=i):(n=t,o=null),this._getElements().forEach(function(t){if(o){var i=function(e){if(e.target){var t=e.target.closest(o);t&&(e.originalEvent=e,n.call(t,e))}};t.addEventListener(e,i),t._queryHandlers||(t._queryHandlers={}),t._queryHandlers[e]||(t._queryHandlers[e]=[]),t._queryHandlers[e].push({original:n,wrapped:i,selector:o})}else{var s=function(e){e.originalEvent=e,n.call(t,e)};t.addEventListener(e,s),t._queryHandlers||(t._queryHandlers={}),t._queryHandlers[e]||(t._queryHandlers[e]=[]),t._queryHandlers[e].push({original:n,wrapped:s})}}),this},l.prototype.off=function(){return this._getElements().forEach(function(e){e._queryHandlers&&(Object.keys(e._queryHandlers).forEach(function(t){e._queryHandlers[t].forEach(function(i){e.removeEventListener(t,i.wrapped)})}),e._queryHandlers={})}),this},l.prototype.trigger=function(e){return this._getElements().forEach(function(t){if("string"==typeof e&&"function"==typeof t[e])t[e]();else{var i=new Event(e,{bubbles:!0});t.dispatchEvent(i)}}),this},l.prototype.addClass=function(e){return e&&this._getElements().forEach(function(i){if(i.classList){var n;(n=i.classList).add.apply(n,t(e.trim().split(" ")))}}),this},l.prototype.removeClass=function(e){return e&&this._getElements().forEach(function(i){if(i.classList){var n;(n=i.classList).remove.apply(n,t(e.trim().split(" ")))}}),this},l.prototype.hasClass=function(e){return this._getElements().some(function(t){return t.classList&&t.classList.contains(e)})},l.prototype.toggleClass=function(e,t){return this._getElements().forEach(function(i){void 0===t?i.classList.toggle(e):t?i.classList.add(e):i.classList.remove(e)}),this},l.prototype.css=function(e){var t=["width","height","min-width","min-height","max-width","max-height","margin","marginTop","marginRight","marginBottom","marginLeft","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","top","right","bottom","left","border-width","border-top-width","border-right-width","border-bottom-width","border-left-width","fontSize","lineHeight"];return this._getElements().forEach(function(i){Object.keys(e).forEach(function(n){var o=e[n];null!=o&&""!==o&&!isNaN(parseFloat(o))&&isFinite(o)&&t.includes(n)&&0!==o&&"0"!==o&&"number"==typeof o&&(o+="px"),i.style[n]=o})}),this},l.prototype.prepend=function(e){return e&&this._getElements().forEach(function(t){"string"==typeof e?t.insertAdjacentHTML("afterbegin",e):e instanceof l?e._getElements().forEach(function(e){t.insertBefore(e,t.firstChild)}):e.nodeType&&t.insertBefore(e,t.firstChild)}),this},l.prototype.append=function(e){return e&&this._getElements().forEach(function(t){"string"==typeof e?t.insertAdjacentHTML("beforeend",e):e instanceof l?e._getElements().forEach(function(e){t.contains(e)||t.appendChild(e)}):e.nodeType&&!t.contains(e)&&t.appendChild(e)}),this},l.prototype.appendTo=function(e){var t=e instanceof l?e._getElements()[0]:"string"==typeof e?document.querySelector(e):e;return t&&this._getElements().forEach(function(e){t.contains(e)||t.appendChild(e)}),this},l.prototype.after=function(e){return this._getElements().forEach(function(t){"string"==typeof e?t.insertAdjacentHTML("afterend",e):e instanceof l?e._getElements().forEach(function(e){t.parentNode.insertBefore(e,t.nextSibling)}):e.nodeType&&t.parentNode.insertBefore(e,t.nextSibling)}),this},l.prototype.html=function(e){return void 0===e?this._getElements()[0]?this._getElements()[0].innerHTML:"":(this._getElements().forEach(function(t){t.innerHTML=e}),this)},l.prototype.text=function(e){return void 0===e?this._getElements()[0]?this._getElements()[0].textContent:"":(this._getElements().forEach(function(t){t.textContent=e}),this)},l.prototype.find=function(e){var i=[];return this._getElements().forEach(function(n){var o=n.querySelectorAll(e);i.push.apply(i,t(Array.from(o)))}),new l(i)},l.prototype.children=function(e){var t=[];return this._getElements().forEach(function(i){Array.from(i.children).forEach(function(i){(!e||i.matches(e))&&t.push(i)})}),new l(t)},l.prototype.is=function(e){return this._getElements().some(function(t){return t.matches(e)})},l.prototype.closest=function(e){var t=[];return this._getElements().forEach(function(i){var n=i.closest(e);n&&!t.includes(n)&&t.push(n)}),new l(t)},l.prototype.contains=function(e){var t=e instanceof l?e._getElements()[0]:e;return this._getElements().some(function(e){return e.contains(t)})},l.prototype.siblings=function(e){var i=[];return this._getElements().forEach(function(n){var o=Array.from(n.parentElement.children).filter(function(e){return e!==n});e&&(o=o.filter(function(t){return t.matches(e)})),i.push.apply(i,t(o))}),new l(i)},l.prototype.parent=function(e){var t=this._getElements().map(function(e){return e.parentElement}).filter(function(e){return null!==e});return e&&(t=t.filter(function(t){return t.matches(e)})),new l(t)},l.prototype.each=function(e){return this._getElements().forEach(function(t,i){e.call(t,i,t)}),this},l.prototype.map=function(e){return this._getElements().map(function(t,i){return e.call(t,i,t)}),this},l.prototype.get=function(){return this._getElements()},l.prototype.attr=function(e,t){return 1==arguments.length?this._getElements()[0]?this._getElements()[0].getAttribute(e):void 0:(void 0===t?this._getElements().forEach(function(t){t.removeAttribute(e)}):this._getElements().forEach(function(i){i.setAttribute(e,t)}),this)},l.prototype.removeAttr=function(e){return this._getElements().forEach(function(t){t.removeAttribute(e)}),this},l.prototype.data=function(e,t){if(void 0===t){var i=this._getElements()[0];if(!i)return;var n=r.get(i)||{};if(void 0!==n[e])return n[e];var o=e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()});return i.dataset[o]}return this._getElements().forEach(function(i){if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)i.setAttribute("data-".concat(e),t);else if(null===t){i.removeAttribute("data-".concat(e));var n=r.get(i);n&&void 0!==n[e]&&(delete n[e],r.set(i,n))}else if((void 0===t?"undefined":t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)=="object"){var o=r.get(i)||{};o[e]=t,r.set(i,o)}}),this},l.prototype.height=function(e){if(void 0===e){if(0===this._getElements().length)return 0;var t=this._getElements()[0];return t===window?window.innerHeight:t.offsetHeight}return this._getElements().forEach(function(t){t.style.height="number"==typeof e?e+"px":e}),this},l.prototype.width=function(e){if(void 0===e){if(0===this._getElements().length)return 0;var t=this._getElements()[0];return t===window?window.innerWidth:t.offsetWidth}return this._getElements().forEach(function(t){t.style.width="number"==typeof e?e+"px":e}),this},l.prototype.offset=function(){return{top:this[0].offsetTop,left:this[0].offsetLeft}},l.prototype.remove=function(){return this._getElements().forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)}),this._setElements([]),this},l.prototype.val=function(e){return void 0===e?this._getElements()[0]?this._getElements()[0].value:"":(this._getElements().forEach(function(t){t.value=e}),this)},l.prototype.hide=function(){return this._getElements().forEach(function(e){e.style.display="none"}),this},l.prototype.show=function(){return this._getElements().forEach(function(e){e.style.display="block"}),this},l.prototype.ready=function(e){document.addEventListener("DOMContentLoaded",e)},l.prototype.scrollTop=function(e){return void 0===e?this._getElements()[0]?this._getElements()[0].scrollTop:0:(this._getElements().forEach(function(t){t.scrollTop=e}),this)},l.prototype.change=function(e){return this._getElements().forEach(function(t){t.addEventListener("change",e)}),this},l.prototype.click=function(){return this._getElements().forEach(function(e){"function"==typeof e.click&&e.click()}),this},l.extend=function(e,t){for(var i=arguments.length,o=Array(i>2?i-2:0),s=2;s<i;s++)o[s-2]=arguments[s];if(!t)return{};var a=!0,r=!1,h=void 0;try{for(var u,p=o[Symbol.iterator]();!(a=(u=p.next()).done);a=!0){var c=u.value;if(c){var d=!0,f=!1,g=void 0;try{for(var m,v=Object.entries(c)[Symbol.iterator]();!(d=(m=v.next()).done);d=!0){var y,b=(y=m.value,function(e){if(Array.isArray(e))return e}(y)||function(e,t){var i,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var s=[],a=!0,r=!1;try{for(o=o.call(e);!(a=(i=o.next()).done)&&(s.push(i.value),2!==s.length);a=!0);}catch(e){r=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw n}}return s}}(y,2)||n(y,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),w=b[0],P=b[1];if(P instanceof l)t[w]=P;else switch(Object.prototype.toString.call(P)){case"[object Object]":"[object Object]"===Object.prototype.toString.call(t[w])?t[w]=l.extend(t[w],P):t[w]=l.extend({},P);break;case"[object Array]":t[w]=l.extend(Array(P.length),P);break;default:t[w]=P}}}catch(e){f=!0,g=e}finally{try{d||null==v.return||v.return()}finally{if(f)throw g}}}}}catch(e){r=!0,h=e}finally{try{a||null==p.return||p.return()}finally{if(r)throw h}}return t},l.Event=function(e,t){if(!(this instanceof l.Event))return new l.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?h:u,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&l.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this._eventFixed=!0},l.Event.prototype={constructor:l.Event,isDefaultPrevented:u,isPropagationStopped:u,isImmediatePropagationStopped:u,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=h,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=h,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=h,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},l.event={fix:function(e){return e._eventFixed?e:new l.Event(e)}};var p={jQuery:null,version:"2.4.27",autoDetectLocation:!0,_isHashTriggered:!1,slug:void 0,locationVar:"dearViewerLocation",locationFile:void 0,MOUSE_CLICK_ACTIONS:{NONE:"none",NAV:"nav"},ARROW_KEYS_ACTIONS:{NONE:"none",NAV:"nav"},MOUSE_DBL_CLICK_ACTIONS:{NONE:"none",ZOOM:"zoom"},MOUSE_SCROLL_ACTIONS:{NONE:"none",ZOOM:"zoom",NAV:"nav"},PAGE_SCALE:{PAGE_FIT:"fit",PAGE_WIDTH:"width",AUTO:"auto",ACTUAL:"actual",MANUAL:"manual"},READ_DIRECTION:{LTR:"ltr",RTL:"rtl"},TURN_DIRECTION:{LEFT:"left",RIGHT:"right",NONE:"none"},INFO_TYPE:{INFO:"info",ERROR:"error"},FLIPBOOK_PAGE_MODE:{SINGLE:"single",DOUBLE:"double",AUTO:"auto"},FLIPBOOK_SINGLE_PAGE_MODE:{ZOOM:"zoom",BOOKLET:"booklet",AUTO:"auto"},FLIPBOOK_PAGE_SIZE:{AUTO:"auto",SINGLE:"single",DOUBLE_INTERNAL:"dbl_int",DOUBLE:"dbl",DOUBLE_COVER_BACK:"dbl_cover_back"},LINK_TARGET:{NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4},CONTROLS_POSITION:{HIDDEN:"hidden",TOP:"top",BOTTOM:"bottom"},TURN_CORNER:{TL:"tl",TR:"tr",BL:"bl",BR:"br",L:"l",R:"r",NONE:"none"},REQUEST_STATUS:{OFF:"none",ON:"pending",COUNT:"counting"},TEXTURE_TARGET:{THUMB:0,VIEWER:1,ZOOM:2},FLIPBOOK_CENTER_SHIFT:{RIGHT:1,LEFT:-1,NONE:0},FLIPBOOK_COVER_TYPE:{NONE:"none",PLAIN:"plain",BASIC:"basic",RIDGE:"ridge"}};function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}p.fakejQuery=!1,"undefined"==typeof jQuery?(p.fakejQuery=!0,p.jQuery=l):p.jQuery=jQuery,p._defaults={is3D:!0,has3DShadow:!0,color3DCover:"#aaaaaa",color3DSheets:"#fff",cover3DType:p.FLIPBOOK_COVER_TYPE.NONE,flexibility:.9,drag3D:!1,height:"auto",autoOpenOutline:!1,autoOpenThumbnail:!1,showDownloadControl:!0,showSearchControl:!0,showPrintControl:!0,enableSound:!0,duration:800,pageRotation:0,flipbook3DTiltAngleUp:0,flipbook3DTiltAngleLeft:0,readDirection:p.READ_DIRECTION.LTR,pageMode:p.FLIPBOOK_PAGE_MODE.AUTO,singlePageMode:p.FLIPBOOK_SINGLE_PAGE_MODE.AUTO,flipbookFitPages:!1,backgroundColor:"transparent",flipbookHardPages:"none",openPage:1,annotationClass:"",maxTextureSize:3200,minTextureSize:256,rangeChunkSize:524288,disableAutoFetch:!0,disableStream:!0,disableFontFace:!1,calendarMode:!1,icons:{altnext:"df-icon-arrow-right1",altprev:"df-icon-arrow-left1",next:"df-icon-arrow-right1",prev:"df-icon-arrow-left1",end:"df-icon-last-page",start:"df-icon-first-page",share:"df-icon-share","outline-open":"df-icon-arrow-right","outline-close":"df-icon-arrow-down",help:"df-icon-help",more:"df-icon-more",download:"df-icon-download",zoomin:"df-icon-add-circle",zoomout:"df-icon-minus-circle",resetzoom:"df-icon-minus-circle",fullscreen:"df-icon-fullscreen","fullscreen-off":"df-icon-fit-screen",fitscreen:"df-icon-fit-screen",thumbnail:"df-icon-grid-view",outline:"df-icon-list",close:"df-icon-close",doublepage:"df-icon-double-page",singlepage:"df-icon-file",print:"df-icon-print",play:"df-icon-play",pause:"df-icon-pause",search:"df-icon-search",sound:"df-icon-volume","sound-off":"df-icon-volume",facebook:"df-icon-facebook",google:"df-icon-google",twitter:"df-icon-twitter",whatsapp:"df-icon-whatsapp",linkedin:"df-icon-linkedin",pinterest:"df-icon-pinterest",mail:"df-icon-mail"},text:{toggleSound:"Turn on/off Sound",toggleThumbnails:"Toggle Thumbnails",toggleOutline:"Toggle Outline/Bookmark",previousPage:"Previous Page",nextPage:"Next Page",toggleFullscreen:"Toggle Fullscreen",zoomIn:"Zoom In",zoomOut:"Zoom Out",resetZoom:"Reset Zoom",pageFit:"Fit Page",widthFit:"Fit Width",toggleHelp:"Toggle Help",search:"Search in PDF",singlePageMode:"Single Page Mode",doublePageMode:"Double Page Mode",downloadPDFFile:"Download PDF File",gotoFirstPage:"Goto First Page",gotoLastPage:"Goto Last Page",print:"Print",play:"Start AutoPlay",pause:"Pause AutoPlay",share:"Share",close:"Close",mailSubject:"Check out this FlipBook",mailBody:"Check out this site {{url}}",loading:"Loading",thumbTitle:"Thumbnails",outlineTitle:"Table of Contents",searchTitle:"Search",searchPlaceHolder:"Search",searchClear:"Clear",searchSearchingInfo:"Searching Page:",searchResultsFound:"results found",searchResultsNotFound:"No results Found!",searchResultPage:"Page",searchResult:"result",searchResults:"results",searchMinimum:"Minimum 3 letters required!",analyticsEventCategory:"DearFlip",analyticsViewerReady:"Document Ready",analyticsViewerOpen:"Document Opened",analyticsViewerClose:"Document Closed",analyticsFirstPageChange:"First Page Changed"},share:{facebook:"https://www.facebook.com/sharer/sharer.php?u={{url}}&t={{mailsubject}}",twitter:"https://twitter.com/share?url={{url}}&text={{mailsubject}}",mail:void 0,whatsapp:"https://api.whatsapp.com/send/?text={{mailsubject}}+{{url}}&app_absent=0",linkedin:"https://www.linkedin.com/shareArticle?url={{url}}&title={{mailsubject}}",pinterest:"https://www.pinterest.com/pin/create/button/?url={{url}}&media=&description={{mailsubject}}"},allControls:"altPrev,pageNumber,altNext,play,outline,thumbnail,zoomIn,zoomOut,zoom,fullScreen,share,download,search,pageMode,startPage,endPage,sound,search,print,more",moreControls:"download,pageMode,pageFit,startPage,endPage,sound",leftControls:"outline,thumbnail",rightControls:"fullScreen,share,download,more",hideControls:"",hideShareControls:"",controlsPosition:p.CONTROLS_POSITION.BOTTOM,paddingTop:20,paddingLeft:15,paddingRight:15,paddingBottom:20,enableAnalytics:!1,hashNavigationEnabled:!1,zoomRatio:2,maxDPI:2,fakeZoom:1,progressiveZoom:!1,pageScale:p.PAGE_SCALE.PAGE_FIT,controlsFloating:!0,sideMenuOverlay:!0,enableAnnotation:!0,enableAutoLinks:!0,arrowKeysAction:p.ARROW_KEYS_ACTIONS.NAV,clickAction:p.MOUSE_CLICK_ACTIONS.NAV,dblClickAction:p.MOUSE_DBL_CLICK_ACTIONS.NONE,mouseScrollAction:p.MOUSE_SCROLL_ACTIONS.NONE,linkTarget:p.LINK_TARGET.BLANK,soundFile:"sound/turn2.mp3",imagesLocation:"images",imageResourcesPath:"images/pdfjs/",popupThumbPlaceholder:"data:image/svg+xml,"+escape('<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 210 297"><rect width="210" height="297" style="fill:#f1f2f2"/><circle cx="143" cy="95" r="12" style="fill:#e3e8ed"/><polygon points="131 138 120 149 95 124 34 184 176 185 131 138" style="fill:#e3e8ed"/></svg>'),cMapUrl:"js/libs/cmaps/",logo:"",logoUrl:"",sharePrefix:"",pageSize:p.FLIPBOOK_PAGE_SIZE.AUTO,backgroundImage:"",pixelRatio:window.devicePixelRatio||1,spotLightIntensity:.22,ambientLightColor:"#fff",ambientLightIntensity:.8,shadowOpacity:.1,slug:void 0,headerElementSelector:void 0,onReady:function(e){},onPageChanged:function(e){},beforePageChanged:function(e){},onCreate:function(e){},onCreateUI:function(e){},onFlip:function(e){},beforeFlip:function(e){},autoPDFLinktoViewer:!1,autoLightBoxFullscreen:!1,thumbLayout:"book-title-hover",cleanupAfterRender:!0,canvasWillReadFrequently:!0,providerType:"pdf",loadMoreCount:-1,autoPlay:!1,autoPlayDuration:1e3,autoPlayStart:!1,popupBackGroundColor:"#eee",mockupMode:!1,instantTextureProcess:!1,cachePDFTexture:!1,pdfVersion:"default"},p.defaults={},p.jQuery.extend(!0,p.defaults,p._defaults),p.viewers={},p.providers={},p.openFileOptions={},p.executeCallback=function(){};var d=p.jQuery,f="WebKitCSSMatrix"in window||document.body&&"MozPerspective"in document.body.style,g="onmousedown"in window,m=p.utils={mouseEvents:g?{type:"mouse",start:"mousedown",move:"mousemove",end:"mouseup"}:{type:"touch",start:"touchstart",move:"touchmove",end:"touchend"},html:{div:"<div></div>",a:"<a>",input:"<input type='text'/>",select:"<select></select>"},getSharePrefix:function(){return m.getSharePrefixes()[0]},getSharePrefixes:function(){return(p.defaults.sharePrefix+",dflip-,flipbook-,dearflip-,dearpdf-").split(",").map(function(e){return e.trim()})},toRad:function(e){return e*Math.PI/180},toDeg:function(e){return 180*e/Math.PI},ifdef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null==e?t:e},createBtn:function(e,t,i){var n=d(m.html.div,{class:"df-ui-btn df-ui-"+e,title:i,html:void 0!==i?"<span>"+i+"</span>":""});return void 0!==t&&t.indexOf("<svg")>-1?n.html(t.replace("<svg",'<svg xmlns="http://www.w3.org/2000/svg" ')):n.addClass(t),n},transition:function(e,t){return e?t/1e3+"s ease-out":"0s none"},display:function(e){return e?"block":"none"},resetTranslate:function(){return m.translateStr(0,0)},bgImage:function(e){return null==e||"blank"===e?"":' url("'+e+'")'},translateStr:function(e,t){return f?" translate3d("+e+"px,"+t+"px, 0px) ":" translate("+e+"px, "+t+"px) "},httpsCorrection:function(e){try{if(null==e)return null;if("string"!=typeof e)return e;var t=window.location;if(t.href.split(".")[0]===e.split(".")[0])return e;e.split("://")[1].split("/")[0].replace("www.","")===t.hostname.replace("www.","")&&e.indexOf(t.hostname.replace("www.",""))>-1&&(t.href.indexOf("https://")>-1?e=e.replace("http://","https://"):t.href.indexOf("http://")>-1&&(e=e.replace("https://","http://")),t.href.indexOf("://www.")>-1&&-1===e.indexOf("://www.")&&(e=e.replace("://","://www.")),-1===t.href.indexOf("://www.")&&e.indexOf("://www.")>-1&&(e=e.replace("://www.","://")))}catch(t){console.log("Skipping URL correction: "+e)}return e},rotateStr:function(e){return" rotateZ("+e+"deg) "},lowerPowerOfTwo:function(e){return Math.pow(2,Math.floor(Math.log(e)/Math.LN2))},nearestPowerOfTwo:function(e,t){return Math.min(t||2048,Math.pow(2,Math.ceil(Math.log(e)/Math.LN2)))},getFullscreenElement:function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},hasFullscreenEnabled:function(){return document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled},fixMouseEvent:function(e){if(!e)return e;var t=e.originalEvent||e;if(!t.changedTouches||!(t.changedTouches.length>0))return e;var i=d.event.fix(e),n=t.changedTouches[0];return i.clientX=n.clientX,i.clientY=n.clientY,i.pageX=n.pageX,i.touches=t.touches,i.pageY=n.pageY,i.movementX=n.movementX,i.movementY=n.movementY,i},limitAt:function(e,t,i){return e<t?t:e>i?i:e},distOrigin:function(e,t){return m.distPoints(0,0,e,t)},distPoints:function(e,t,i,n){return Math.sqrt(Math.pow(i-e,2)+Math.pow(n-t,2))},angleByDistance:function(e,t){var i=t/2,n=m.limitAt(e,0,t);return n<i?m.toDeg(Math.asin(n/i)):90+m.toDeg(Math.asin((n-i)/i))},calculateScale:function(e,t){var i=m.distPoints(e[0].x,e[0].y,e[1].x,e[1].y);return m.distPoints(t[0].x,t[0].y,t[1].x,t[1].y)/i},getVectorAvg:function(e){return{x:e.map(function(e){return e.x}).reduce(m.sum)/e.length,y:e.map(function(e){return e.y}).reduce(m.sum)/e.length}},sum:function(e,t){return e+t},getTouches:function(e,t){return t=t||{left:0,top:0},Array.prototype.slice.call(e.touches).map(function(e){return{x:e.pageX-t.left,y:e.pageY-t.top}})},getScriptCallbacks:[],getScript:function(e,t,i,n){var o,s=m.getScriptCallbacks[e];function a(){o.removeEventListener("load",r,!1),o.removeEventListener("readystatechange",r,!1),o.removeEventListener("complete",r,!1),o.removeEventListener("error",l,!1),o.onload=o.onreadystatechange=null,o=null,o=null}function r(e,t){if(null!=o&&(t||!o.readyState||/loaded|complete/.test(o.readyState))){if(!t){for(var n=0;n<s.length;n++)s[n]&&s[n](),s[n]=null;i=null}a()}}function l(){i(),a(),i=null}if(0===d("script[src='"+e+"']").length){(s=m.getScriptCallbacks[e]=[]).push(t),o=document.createElement("script");var h=document.body.getElementsByTagName("script")[0];o.async=!0,o.setAttribute("data-cfasync","false"),!0===n&&o.setAttribute("type","module"),null!=h?(h.parentNode.insertBefore(o,h),h=null):document.body.appendChild(o),o.addEventListener("load",r,!1),o.addEventListener("readystatechange",r,!1),o.addEventListener("complete",r,!1),i&&o.addEventListener("error",l,!1),o.src=e+("MS"===m.prefix.dom?"?"+Math.random():"")}else s.push(t)},loadScript:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise(function(i,n){var o=document.createElement("script");o.src=e,o.onload=function(e){t&&o.remove(),i(e)},o.onerror=function(){n(Error("Cannot load script at: ".concat(o.src)))},(document.head||document.documentElement).append(o)})},detectScriptLocation:function(){if(void 0===window[p.locationVar])d("script").each(function(){var e=d(this)[0].src;if((e.indexOf("/"+p.locationFile+".js")>-1||e.indexOf("/"+p.locationFile+".min.js")>-1||e.indexOf("js/"+p.locationFile+".")>-1)&&(e.indexOf("https://")>-1||e.indexOf("http://")>-1)){var t=e.split("/");window[p.locationVar]=t.slice(0,-2).join("/")}});else if(-1==window[p.locationVar].indexOf(":")){var e=document.createElement("a");e.href=window[p.locationVar],window[p.locationVar]=e.href,e=null}void 0!==window[p.locationVar]&&window[p.locationVar].length>2&&"/"!==window[p.locationVar].slice(-1)&&(window.window[p.locationVar]+="/")},disposeObject:function(e){return e&&e.dispose&&e.dispose(),e=null},log:function(){for(var e,t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];!0===p.defaults.enableDebugLog&&window.console&&(e=console).log.apply(e,function(e){if(Array.isArray(e))return c(e)}(i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return c(e,void 0);var i=Object.prototype.toString.call(e).slice(8,-1);if("Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i)return Array.from(i);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return c(e,void 0)}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},color:{getBrightness:function(e){var t=e.replace("#","").match(/.{1,2}/g).map(function(e){return parseInt(e,16)});return .299*t[0]+.587*t[1]+.114*t[2]},isLight:function(e){return!m.color.isDark(e)},isDark:function(e){return 128>m.color.getBrightness(e)}},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isIOS:/(iPad|iPhone|iPod)/g.test(navigator.userAgent),isIPad:"iPad"===navigator.platform||void 0!==navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/Mac/.test(navigator.platform),isMac:navigator.platform.toUpperCase().indexOf("MAC")>=0,isSafari:/constructor/i.test(window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||window.safari.pushNotification).toString(),isIEUnsupported:!!navigator.userAgent.match(/(MSIE|Trident)/),isSafariWindows:function(){return!m.isMac&&m.isSafari},hasWebgl:function(){try{var e=document.createElement("canvas");return!!(window.WebGLRenderingContext&&(e.getContext("webgl")||e.getContext("experimental-webgl")))}catch(e){return!1}}(),hasES2022:void 0!==Array.prototype.at,canSupport3D:function(){var e=!0;try{if(!1==m.hasWebgl)e=!1,console.log("Proper Support for Canvas webgl 3D not detected!");else if(!1==m.hasES2022)e=!1,console.log("Proper Support for 3D not extpected in older browser!");else if(-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>0)e=!1,console.log("Proper Support for 3D not detected for IE!");else if(m.isSafariWindows())e=!1,console.log("Proper Support for 3D not detected for Safari!");else{var t=navigator.userAgent.toString().toLowerCase().match(/android\s([0-9\.]*)/i);(t=t?t[1]:void 0)&&(t=parseInt(t,10),!isNaN(t)&&t<9&&(e=!1,console.log("Proper Support for 3D not detected for Android below 9.0!")))}}catch(e){}return e},prefix:(o=window.getComputedStyle(document.documentElement,""),s=Array.prototype.slice.call(o).join("").match(/-(moz|webkit|ms)-/)[1],{dom:"WebKit|Moz|MS".match(RegExp("("+s+")","i"))[1],lowercase:s,css:"-"+s+"-",js:s[0].toUpperCase()+s.substr(1)}),scrollIntoView:function(e,t,i){(t=t||e.parentNode).scrollTop=e.offsetTop+(!1===i?e.offsetHeight-t.offsetHeight:0),t.scrollLeft=e.offsetLeft-t.offsetLeft},getVisibleElements:function(e){var t=e.container,i=e.elements,n=e.visible||[],o=t.scrollTop,s=o+t.clientHeight;if(0==s)return n;var a=0,r=i.length-1,l=i[a],h=l.offsetTop+l.clientTop+l.clientHeight;if(h<o)for(;a<r;){var u=a+r>>1;(h=(l=i[u]).offsetTop+l.clientTop+l.clientHeight)>o?r=u:a=u+1}for(var p=a;p<i.length;p++)if((l=i[p]).offsetTop+l.clientTop<=s)n.push(p+1);else break;return n},getMouseDelta:function(e){var t=0;return null!=e.wheelDelta?t=e.wheelDelta:null!=e.detail&&(t=-e.detail),t},pan:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.startPoint,o=e.app.zoomValue,s=e.left+(!0===i?0:t.raw.x-n.raw.x),a=e.top+(!0===i?0:t.raw.y-n.raw.y);e.left=Math.ceil(m.limitAt(s,-e.shiftWidth,e.shiftWidth)),e.top=Math.ceil(m.limitAt(a,-e.shiftHeight,e.shiftHeight)),1===o&&(e.left=0,e.top=0),!1===i&&(e.startPoint=t)},elementIntersection:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e[0].getBoundingClientRect(),o=t[0].getBoundingClientRect(),s=Math.max(n.left,Math.floor(o.left)),a=Math.max(n.top,Math.floor(o.top)),r=Math.min(n.right,o.right),l=Math.min(n.bottom,o.bottom),h=Math.max(r-s,0),u=Math.max(l-a,0);return i?{left:Math.max(n.left-o.left,0),top:Math.max(n.top-o.top,0),width:h,height:u}:{left:s,top:a,right:r,bottom:l,width:h,height:u}}};m.isChromeExtension=function(){return 0===window.location.href.indexOf("chrome-extension://")};var v=/\x00+/g,y=/[\x01-\x1F]/g;m.removeNullCharacters=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"string"!=typeof e?(warn("The argument for removeNullCharacters must be a string."),e):(t&&(e=e.replace(y," ")),e.replace(v,""))},p.hashFocusBookFound=!1,m.detectHash=function(){p.preParseHash=window.location.hash;var e=m.getSharePrefixes();-1==e.indexOf("")&&e.push(""),Array.prototype.forEach.call(e,function(e){var t=p.preParseHash,i="#"+e;if(t&&t.indexOf(i)>=0&&!1===p.hashFocusBookFound){i.length>1&&(t=t.split(i)[1]);var n=t.split("/")[0].replace("#","");if(n.length>0)try{var o,s=t.split("/")[1];if(null!=s&&(s=s.split("/")[0]),o=d("[data-df-slug="+n+"]"),0===o.length&&(o=d("[data-slug="+n+"]")),0===o.length&&(o=d("#df-"+n+",#"+n)),0===o.length&&(o=d("[data-_slug="+n+"]")),o.length>0&&o.is("._df_thumb,._df_button,._df_custom,._df_link,._df_book,.df-element,.dp-element")){o=d(o[0]),p.hashFocusBookFound=!0,s=parseInt(s,10),m.focusHash(o);var a=p.activeLightBox&&p.activeLightBox.app||o.data("df-app");if(null!=a)return a.gotoPage(s),m.focusHash(a.element),!1;null!=s&&o.attr("data-hash-page",s),o.addClass("df-hash-focused",!0),null!=o.data("lightbox")||null!=o.data("df-lightbox")?(p._isHashTriggered=!0,o.trigger("click"),p._isHashTriggered=!1):null!=o.attr("href")&&o.attr("href").indexOf(".pdf")>-1&&o.trigger("click")}}catch(e){console.log(e)}}})},m.focusHash=function(e){var t,i;null===(t=(i=e[0]).scrollIntoView)||void 0===t||t.call(i,{behavior:"smooth",block:"nearest",inline:"nearest"})},m.contain=function(e,t,i,n){var o=Math.min(i/e,n/t);return{width:e*o,height:t*o}},m.containUnStretched=function(e,t,i,n){var o=Math.min(1,i/e,n/t);return{width:e*o,height:t*o}},m.fallbackOptions=function(e){return void 0===e.share.mail&&(e.share.mail="mailto:?subject="+e.text.mailSubject+"&body="+e.text.mailBody),e.openPage&&(e.openPage=parseInt(e.openPage,10)),e};var b=function(e){var t={},i={id:"",thumb:"",openPage:"data-hash-page,df-page,data-df-page,data-page,page",target:"",height:"",showDownloadControl:"data-download",source:"pdf-source,df-source,source",is3D:"webgl,is3d",viewerType:"viewertype,viewer-type",pageMode:"pagemode"};for(var n in i)for(var o=(n+","+i[n]).split(","),s=0;s<o.length;s++){var a=o[s];if(""!==a){var r=e.data(a);if(null!==r&&""!==r&&void 0!==r||null!==(r=e.attr(a))&&""!==r&&void 0!==r){t[n]=r;break}}}return e.removeAttr("data-hash-page"),t};m.getOptions=function(e){void 0==(e=d(e)).data("df-option")&void 0==e.data("option")&&e.data("df-option","option_"+e.attr("id")),void 0!==e.attr("source")&&e.data("df-source",e.attr("source"));var t=e.data("df-option")||e.data("option"),i=void 0;i=(void 0===t?"undefined":t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)=="object"?t:null==t||""===t||null==window[t]?{}:window[t];var n=b(e);return d.extend(!0,{},i,n)},m.isTrue=function(e){return"true"===e||!0===e},m.parseInt=function(e){return parseInt(e,10)},m.parseFloat=function(e){return parseFloat(e)},m.parseIntIfExists=function(e){return void 0!==e&&(e=parseInt(e,10)),e},m.parseFloatIfExists=function(e){return void 0!==e&&(e=parseFloat(e)),e},m.parseBoolIfExists=function(e){return void 0!==e&&(e=m.isTrue(e)),e},m.getCurveAngle=function(e,t){var i,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e?(i=t>135?180-(180-t)*2:t>45?t-45:0,i=m.limitAt(i,n,180)):(i=t<45?2*t:t<135?t+45:180,i=m.limitAt(i,0,180-n)),i},m.sanitizeOptions=function(e){if(e.showDownloadControl=m.parseBoolIfExists(e.showDownloadControl),e.showSearchControl=m.parseBoolIfExists(e.showSearchControl),e.showPrintControl=m.parseBoolIfExists(e.showPrintControl),e.flipbook3DTiltAngleLeft=m.parseIntIfExists(e.flipbook3DTiltAngleLeft),e.flipbook3DTiltAngleUp=m.parseIntIfExists(e.flipbook3DTiltAngleUp),e.paddingLeft=m.parseIntIfExists(e.paddingLeft),e.paddingRight=m.parseIntIfExists(e.paddingRight),e.paddingTop=m.parseIntIfExists(e.paddingTop),e.paddingBottom=m.parseIntIfExists(e.paddingBottom),e.duration=m.parseIntIfExists(e.duration),e.rangeChunkSize=m.parseIntIfExists(e.rangeChunkSize),e.maxTextureSize=m.parseIntIfExists(e.maxTextureSize),e.linkTarget=m.parseIntIfExists(e.linkTarget),e.zoomRatio=m.parseFloatIfExists(e.zoomRatio),e.enableAnalytics=m.parseBoolIfExists(e.enableAnalytics),e.autoPlay=m.parseBoolIfExists(e.autoPlay),e.autoPlayStart=m.parseBoolIfExists(e.autoPlayStart),e.autoPlayDuration=m.parseIntIfExists(e.autoPlayDuration),void 0!==e.loadMoreCount&&(e.loadMoreCount=m.parseInt(e.loadMoreCount),(isNaN(e.loadMoreCount)||0===e.loadMoreCount)&&(e.loadMoreCount=-1)),null!=e.source&&(Array===e.source.constructor||Array.isArray(e.source)||e.source instanceof Array))for(var t=0;t<e.source.length;t++)e.source[t]=m.httpsCorrection(e.source[t]);else e.source=m.httpsCorrection(e.source);return e},m.finalizeOptions=function(e){return e},m.urlify=function(e){for(var t,i,n=/[a-zA-Z0-9][^\s,]{3,}\.[^\s,]+[a-zA-Z0-9]/gi,o=[];t=n.exec(e);){var s=t[0];1==(s.match(/@/g)||[]).length?s.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,7})+/gi)&&o.push({index:t.index,length:s.length,text:s}):s.match(/[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b[-a-zA-Z0-9@:%_\+.~#?&//=]*/g)&&(0===(i=s.toLowerCase()).indexOf("http:")||0===i.indexOf("https:")||0===i.indexOf("www."))&&o.push({index:t.index,length:s.length,text:s})}return o},m.oldurlify=function(e){return e.replace(/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[.\!\/\\w]*))?)/g,function(e,t,i,n,o){var s=e=e.toLowerCase();if(e.indexOf(":")>0&&-1===e.indexOf("http:")&&-1===e.indexOf("https:"))return m.log("AutoLink Rejected: "+s+" for "+e),e;if(0===e.indexOf("www."))s="http://"+e;else if(0===e.indexOf("http://")||0===e.indexOf("https://"));else if(0===e.indexOf("mailto:"));else if(e.indexOf("@")>0&&(s="mailto:"+e,null===e.match(/(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/)))return m.log("AutoLink Rejected: "+s+" for "+e),e;return m.log("AutoLink: "+s+" for "+e),'<a href="'+s+'" class="df-autolink" target="_blank">'+e+"</a>"})},m.supportsPassive=!1;try{var w=Object.defineProperty({},"passive",{get:function(){m.supportsPassive=!0}});window.addEventListener("testPassive",null,w),window.removeEventListener("testPassive",null,w)}catch(e){}p.parseCSSElements=function(){d(".dvcss").each(function(){var e,t=d(this),i=function(e){for(var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dvcss_e_",n=e.classList,o=0;o<n.length;o++)if(0===(t=n[o]).indexOf(i))return t;return null}(t[0]);t.removeClass(i).removeClass("dvcss"),i=i.replace("dvcss_e_","");try{e=JSON.parse(atob(i))}catch(e){}if(e){var n="df_option_"+e.id;window[n]=d.extend(!0,{},window[n],e),t.addClass("df-element"),"none"!==e.lightbox&&(t.attr("data-df-lightbox",void 0===e.lightbox?"custom":e.lightbox),"thumb"==e.lightbox&&t.attr("data-df-thumb",e.pdfThumb),e.thumbLayout&&t.attr("data-df-thumb-layout",e.thumbLayout),e.apl&&t.attr("apl",e.apl)),t.data("df-option",n),t.attr("data-df-slug",e.slug),t.attr("id","df_"+e.id)}})},p.parseThumbs=function(e){e.element.html(""),(null==e.thumbURL||""==e.thumbURL.toString().trim())&&(e.element.addClass("df-thumb-not-found"),e.thumbURL=p.defaults.popupThumbPlaceholder);var t=d("<span class='df-book-title'>").html(e.title),i=d("<div class='df-book-wrapper'>").appendTo(e.element);i.append(d("<div class='df-book-page1'>")),i.append(d("<div class='df-book-page2'>"));var n=d("<div class='df-book-cover'>").append(t).appendTo(i),o=e.element.hasClass("df-skip-lazy"),s=d('<img width="210px" height="297px" class="df-lazy" alt="'+e.title+'"/>');n.prepend(s),o?(s.attr("src",e.thumbURL),s.removeClass("df-lazy")):(s.attr("data-src",e.thumbURL),s.attr("src",p.defaults.popupThumbPlaceholder),p.addLazyElement(s[0])),!0===p.defaults.displayLightboxPlayIcon&&n.addClass("df-icon-play-popup"),"book-title-top"===e.thumbLayout?t.prependTo(e.element):("book-title-bottom"===e.thumbLayout||"cover-title"===e.thumbLayout)&&(e.hasShelf?e.thumbLayout="book-title-fixed":t.appendTo(e.element),!0===p.defaults.displayLightboxPlayIcon&&(e.element.removeClass("df-icon-play-popup"),i.addClass("df-icon-play-popup"))),e.element.addClass("df-tl-"+e.thumbLayout),e.element.attr("title",e.title)},p.initId=10,p.embeds=[],p.activeEmbeds=[],p.removeEmbeds=[],p.removeEmbedsLimit=m.isMobile?1:2,p.parseNormalElements=function(){d(".df-posts").each(function(){if(!1!==p.defaults.loadMoreCount&&-1!==p.defaults.loadMoreCount){var e=d(this);if("true"!==e.data("df-parsed")){e.data("df-parsed","true"),e.attr("df-parsed","true");var t=0,i=e.find(".df-element"),n=i.length;i.each(function(){++t>p.defaults.loadMoreCount&&d(this).attr("skip-parse","true")}),n>p.defaults.loadMoreCount&&e.append("<div class='df-load-more-button-wrapper'><div class='df-load-more-button'>Load More..</div></div>")}}}),p.triggerId=10,d(".df-element").each(function(){var e=d(this);if("true"!==e.attr("skip-parse")&&"true"!==e.data("df-parsed")){e.data("df-parsed","true"),e.attr("df-parsed","true");var t=e.data("df-lightbox")||e.data("lightbox");if(void 0===t)e.addClass("df-lazy-embed"),p.addLazyElement(e[0]);else if(e.addClass("df-popup-"+t),"thumb"===t){var i=e.data("df-thumb-layout")||p.defaults.thumbLayout,n=m.httpsCorrection(e.data("df-thumb"));e.removeAttr("data-thumb").removeAttr("data-thumb-layout");var o=e.html().trim();(void 0===o||""===o)&&(o="Click to Open");var s=e.parent().hasClass("df-has-shelf");p.parseThumbs({element:e,thumbURL:n,title:o,thumbLayout:i,hasShelf:s}),s&&e.after(d("<df-post-shelf>"))}else"button"===t&&p.defaults.buttonClass&&e.addClass(p.defaults.buttonClass);var a=e.attr("data-trigger");null!=a&&a.length>1&&(a=a.split(","),p.triggerId++,a.forEach(function(t){e.attr("df-trigger-id",p.triggerId),d("#"+t).addClass("df-trigger").attr("df-trigger",p.triggerId)}))}}),p.handleLazy=function(){var e;if(p.removeEmbeds.length>p.removeEmbedsLimit&&(e=p.removeEmbeds.shift())){var t=d("[initID='"+e+"']");if(t.length>0){var i=t.data("df-app");if(i){t.attr("data-df-page",i.currentPageNumber),m.log("Removed app id "+e),i.dispose(),i=null;var n=p.activeEmbeds.indexOf(e);n>-1&&p.activeEmbeds.splice(n,1)}}}if(e=p.embeds.shift()){var o=d("[initID='"+e+"']");if(o.length>0){if(o.is("img"))o.hasClass("df-lazy")?(o.attr("src",o.attr("data-src")),o.removeAttr("data-src"),o.removeClass("df-lazy"),p.lazyObserver.unobserve(o[0])):m.log("Prevent this"),p.handleLazy();else{var s=o.data("df-app");null==s?new p.Application({element:o}):s.softInit(),m.log("Created app id "+e),p.activeEmbeds.push(e)}}}p.removeEmbeds.length<=p.removeEmbedsLimit&&0==p.embeds.length&&(p.checkRequestQueue=null)}},p.lazyObserver={observe:function(e){(e=d(e)).is("img")?e.hasClass("df-lazy")&&(e.attr("src",e.attr("data-src")),e.removeAttr("data-src"),e.removeClass("df-lazy")):new p.Application({element:e})}},"function"==typeof IntersectionObserver&&(p.lazyObserver=new IntersectionObserver(function(e,t){e.forEach(function(e){var t,i=d(e.target),n=i.attr("initID");e.isIntersecting?(!i.attr("initID")&&(i.attr("initID",p.initId),n=p.initId.toString(),p.initId++),(t=p.removeEmbeds.indexOf(n))>-1?(p.removeEmbeds.splice(t,1),m.log("Removed id "+n+"from Removal list")):-1==(t=p.embeds.indexOf(n))&&(p.embeds.push(n),m.log("Added id "+n+"to Add list"))):n&&((t=p.embeds.indexOf(n))>-1?(p.embeds.splice(t,1),m.log("Removed id "+n+" from Add list")):-1==(t=p.removeEmbeds.indexOf(n))&&(p.removeEmbeds.push(n),m.log("Added id "+n+" to Removal list"))),P=0,(p.removeEmbeds.length>p.removeEmbedsLimit||p.embeds.length>0)&&null==p.checkRequestQueue&&(p.checkRequestQueue=function(){P++,p.checkRequestQueue&&requestAnimationFrame(function(){p&&p.checkRequestQueue&&p.checkRequestQueue()}),P>20&&(P=0,p.handleLazy())},p.checkRequestQueue())})}));var P=0;p.addLazyElement=function(e){p.lazyObserver.observe(e)},p.parseElements=m.parseElements=function(){p.parseCSSElements(),p.parseNormalElements()},p.initUtils=function(){m.detectScriptLocation();var e=d("body");(m.isSafari||m.isIOS)&&e.addClass("df-ios"),e.on("click",function(){}),e.on("click",".df-posts .df-load-more-button",function(){var e=d(this).closest(".df-posts");if(e.length>0){var t=0;e.find(".df-element").each(function(){var e=d(this);"true"===e.attr("skip-parse")&&(t<p.defaults.loadMoreCount&&e.removeAttr("skip-parse"),t++)}),p.parseNormalElements()}}),p.defaults.shelfImage&&""!=p.defaults.shelfImage&&e.append("<style>.df-has-shelf df-post-shelf:before, .df-has-shelf df-post-shelf:after{background-image: url('"+p.defaults.shelfImage+"');}</style>")};var S=p.jQuery,E=p.utils,x=/*#__PURE__*/function(){var e;function t(e,i){(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,t),this.pages=[],this.app=i,this.parentElement=this.app.viewerContainer;var n="df-viewer "+(e.viewerClass||"");this.element=S("<div>",{class:n}),this.parentElement.append(this.element),this.wrapper=S("<div>",{class:"df-viewer-wrapper"}),this.element.append(this.wrapper),this.oldBasePageNumber=0,this.pages=[],this.minZoom=1,this.maxZoom=4,this.swipeThreshold=20,this.stageDOM=null,this.events={},this.arrowKeysAction=e.arrowKeysAction,this.clickAction=e.clickAction,this.scrollAction=e.scrollAction,this.dblClickAction=e.dblClickAction,this.pageBuffer=[],this.pageBufferSize=10,this.afterConstructor()}return e=[{key:"afterConstructor",value:function(){}},{key:"init",value:function(){}},{key:"softDispose",value:function(){}},{key:"updateBuffer",value:function(e){}},{key:"pageResetCallback",value:function(e){}},{key:"initCustomControls",value:function(){}},{key:"_getInnerWidth",value:function(){return this.app.dimensions.containerWidth-this.app.dimensions.padding.width-this.app.dimensions.offset.width}},{key:"_getInnerHeight",value:function(){return this.app.dimensions.maxHeight-this.app.dimensions.padding.height}},{key:"_getOuterHeight",value:function(e){return e}},{key:"dispose",value:function(){this.stageDOM&&(this.stageDOM.removeEventListener("mousemove",this.events.mousemove,!1),this.stageDOM.removeEventListener("mousedown",this.events.mousedown,!1),this.stageDOM.removeEventListener("mouseup",this.events.mouseup,!1),this.stageDOM.removeEventListener("touchmove",this.events.mousemove,!1),this.stageDOM.removeEventListener("touchstart",this.events.mousedown,!1),this.stageDOM.removeEventListener("touchend",this.events.mouseup,!1),this.stageDOM.removeEventListener("dblclick",this.events.dblclick,!1),this.stageDOM.removeEventListener("scroll",this.events.scroll,!1),this.stageDOM.removeEventListener("mousewheel",this.events.mousewheel,!1),this.stageDOM.removeEventListener("DOMMouseScroll",this.events.mousewheel,!1)),this.events=null,this.stageDOM=null,this.element.remove()}},{key:"checkDocumentPageSizes",value:function(){}},{key:"getViewerPageNumber",value:function(e){return e}},{key:"getDocumentPageNumber",value:function(e){return e}},{key:"getRenderContext",value:function(e,t){var i=this.app,n=i.provider,o=t.pageNumber,s=E.ifdef(t.textureTarget,p.TEXTURE_TARGET.VIEWER);i.dimensions.pageFit;var a=n.viewPorts[o],r=i.viewer.getTextureSize(t),l=null;if(l=s===p.TEXTURE_TARGET.THUMB?i.thumbSize:Math.floor(r.height),void 0===n.getCache(o,l)){var h=r.height/a.height,u=document.createElement("canvas"),c=this.filterViewPort(e.getViewport({scale:h,rotation:e._pageInfo.rotate+i.options.pageRotation}),o);s===p.TEXTURE_TARGET.THUMB&&(h=c.width/c.height>180/i.thumbSize?180*h/c.width:h*i.thumbSize/c.height,c=this.filterViewPort(e.getViewport({scale:h,rotation:e._pageInfo.rotate+i.options.pageRotation}),o)),u.height=Math.floor(c.height),u.width=Math.floor(c.width);var d=Math.abs(u.width-r.width)/r.width*100;return d>.001&&d<2&&(u.width=Math.floor(r.width),u.height=Math.floor(r.height)),i.viewer.filterViewPortCanvas(c,u,o),{canvas:u,canvasContext:u.getContext("2d",{willReadFrequently:!0===p.defaults.canvasWillReadFrequently}),viewport:c}}}},{key:"filterViewPort",value:function(e,t){return e}},{key:"getViewPort",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.app.provider.viewPorts[e];return t?null!=i?i:this.app.provider.defaultPage.viewPort:i}},{key:"pagesReady",value:function(){this.app.executeCallback("onPagesReady")}},{key:"onReady",value:function(){}},{key:"filterViewPortCanvas",value:function(e){}},{key:"finalizeAnnotations",value:function(){}},{key:"finalizeTextContent",value:function(){}},{key:"updateTextContent",value:function(e){void 0==e&&(e=this.getBasePage(e)),this.app.provider.processTextContent(e,this.getTextElement(e,!0))}},{key:"isActivePage",value:function(e){return e===this.app.currentPageNumber}},{key:"initEvents",value:function(){var e=this.stageDOM=E.ifdef(this.stageDOM,this.parentElement[0]);e&&(e.addEventListener("mousemove",this.events.mousemove=this.mouseMove.bind(this),!1),e.addEventListener("mousedown",this.events.mousedown=this.mouseDown.bind(this),!1),e.addEventListener("mouseup",this.events.mouseup=this.mouseUp.bind(this),!1),e.addEventListener("touchmove",this.events.mousemove=this.mouseMove.bind(this),!1),e.addEventListener("touchstart",this.events.mousedown=this.mouseDown.bind(this),!1),e.addEventListener("touchend",this.events.mouseup=this.mouseUp.bind(this),!1),e.addEventListener("dblclick",this.events.dblclick=this.dblclick.bind(this),!1),e.addEventListener("scroll",this.events.scroll=this.onScroll.bind(this),!1),e.addEventListener("mousewheel",this.events.mousewheel=this.mouseWheel.bind(this),!1),e.addEventListener("DOMMouseScroll",this.events.mousewheel=this.mouseWheel.bind(this),!1)),this.startTouches=null,this.lastScale=null,this.startPoint=null}},{key:"refresh",value:function(){}},{key:"reset",value:function(){}},{key:"eventToPoint",value:function(e){var t={x:e.clientX,y:e.clientY};return t.x=t.x-this.app.viewerContainer[0].getBoundingClientRect().left,t.y=t.y-this.app.viewerContainer[0].getBoundingClientRect().top,{raw:t}}},{key:"mouseMove",value:function(e){e=E.fixMouseEvent(e),this.pinchMove(e),!0===this.pinchZoomDirty&&e.preventDefault(),this.startPoint&&!0!=this.pinchZoomDirty&&(this.pan(this.eventToPoint(e)),e.preventDefault())}},{key:"mouseDown",value:function(e){e=E.fixMouseEvent(e),this.pinchDown(e),this.startPoint=this.eventToPoint(e)}},{key:"mouseUp",value:function(e){e=E.fixMouseEvent(e),!0===this.pinchZoomDirty&&e.preventDefault();var t=this.eventToPoint(e),i=e.target||e.originalTarget,n=this.startPoint&&t.x===this.startPoint.x&&t.y===this.startPoint.y&&"A"!==i.nodeName;!0===e.ctrlKey&&n&&this.zoomOnPoint(t),this.pinchUp(e),this.startPoint=null}},{key:"pinchDown",value:function(e){null!=e.touches&&2==e.touches.length&&null==this.startTouches&&(this.startTouches=E.getTouches(e),this.app.viewer.zoomCenter=E.getVectorAvg(E.getTouches(e,this.parentElement.offset())),this.lastScale=1)}},{key:"pinchUp",value:function(e){null!=e.touches&&e.touches.length<2&&!0==this.pinchZoomDirty&&(this.app.viewer.lastScale=this.lastScale,this.app.container.removeClass("df-pinch-zoom"),this.updateTemporaryScale(!0),this.app.zoom(),this.lastScale=null,this.app.viewer.canSwipe=!1,this.pinchZoomDirty=!1,this.app.viewer._pinchZoomLastScale=null,this.startTouches=null)}},{key:"pinchMove",value:function(e){if(null!=e.touches&&2==e.touches.length&&null!=this.startTouches){this.pinchZoomDirty=!0,this.app.container.addClass("df-pinch-zoom");var t=E.calculateScale(this.startTouches,E.getTouches(e));this.lastScale,this.lastScale=t,this.app.viewer.pinchZoomUpdateScale=E.limitAt(t,this.app.viewer.minZoom/this.app.zoomValue,this.app.viewer.maxZoom/this.app.zoomValue),this.app.viewer._pinchZoomLastScale!=this.app.viewer.pinchZoomUpdateScale&&(this.app.viewer.pinchZoomRequestStatus=p.REQUEST_STATUS.ON,this.app.viewer._pinchZoomLastScale=this.app.viewer.pinchZoomUpdateScale),e.preventDefault();return}}},{key:"updateTemporaryScale",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!0===e)this.parentElement[0].style.transform="none";else if(this.app.viewer.zoomCenter){var t=this.app.viewer.pinchZoomUpdateScale;this.parentElement[0].style.transformOrigin=this.app.viewer.zoomCenter.x+"px "+this.app.viewer.zoomCenter.y+"px",this.parentElement[0].style.transform="scale3d("+t+","+t+",1)"}}},{key:"pan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.panRequestStatus=p.REQUEST_STATUS.ON,E.pan(this,e,t)}},{key:"updatePan",value:function(){this.element.css({transform:"translate3d("+this.left+"px,"+this.top+"px,0)"})}},{key:"dblclick",value:function(e){}},{key:"onScroll",value:function(e){}},{key:"mouseWheel",value:function(e){var t=this.app,i=E.getMouseDelta(e),n=!0===e.ctrlKey,o=t.options.mouseScrollAction===p.MOUSE_SCROLL_ACTIONS.ZOOM&&(!0===t.options.isLightBox||!0===t.isFullscreen);n||o?(i>0||i<0)&&(e.preventDefault(),t.viewer.zoomCenter=this.eventToPoint(e).raw,t.zoom(i),t.ui.update()):t.options.mouseScrollAction===p.MOUSE_SCROLL_ACTIONS.NAV&&(i>0?t.next():i<0&&t.prev())}},{key:"zoomOnPoint",value:function(e){this.app.viewer.zoomCenter=e.raw,this.app.zoom(1)}},{key:"getVisiblePages",value:function(){return this.visiblePagesCache=[],{main:this.visiblePagesCache,buffer:[]}}},{key:"getBasePage",value:function(){return this.app.currentPageNumber}},{key:"isFirstPage",value:function(e){return void 0===e&&(e=this.app.currentPageNumber),1===e}},{key:"isLastPage",value:function(e){return void 0===e&&(e=this.app.currentPageNumber),e===this.app.pageCount}},{key:"isEdgePage",value:function(e){return void 0===e&&(e=this.app.currentPageNumber),1===e||e===this.app.pageCount}},{key:"checkRequestQueue",value:function(){var e=p.REQUEST_STATUS;this.panRequestStatus===e.ON&&(this.updatePan(),this.panRequestStatus=e.OFF),this.app.viewer.pinchZoomRequestStatus===e.ON&&(this.app.viewer.updateTemporaryScale(),this.app.viewer.pinchZoomRequestStatus=e.OFF)}},{key:"isAnimating",value:function(){return!1}},{key:"updatePendingStatusClass",value:function(e){void 0===e&&(e=this.isAnimating()),this.app.container.toggleClass("df-pending",e)}},{key:"initPages",value:function(){}},{key:"resize",value:function(){}},{key:"determinePageMode",value:function(){}},{key:"zoom",value:function(){}},{key:"gotoPageCallBack",value:function(){this.requestRefresh()}},{key:"requestRefresh",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];this.app.refreshRequestStatus=!0===e?p.REQUEST_STATUS.ON:p.REQUEST_STATUS.OFF}},{key:"getPageByNumber",value:function(e){var t=this.pages,i=void 0;if(this.app.isValidPage(e)){for(var n=0;n<t.length;n++)if(e===t[n].pageNumber){i=t[n];break}}return i}},{key:"changeAnnotation",value:function(){return!1}},{key:"getAnnotationElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.getPageByNumber(e);if(void 0!==i)return void 0===i.annotationElement&&(i.annotationElement=S("<div class='df-link-content'>"),i.contentLayer.append(i.annotationElement)),!0===t&&i.annotationElement.html(""),i.annotationElement[0]}},{key:"getTextElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.getPageByNumber(e);if(void 0!==i)return void 0===i.textElement&&(i.textElement=S("<div class='df-text-content'>"),i.contentLayer.append(i.textElement)),!0===t&&(i.textElement.html(""),i.textElement.siblings(".df-auto-link-content").html("")),i.textElement[0]}},{key:"render",value:function(){}},{key:"checkPageLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!0,i=this.getVisiblePages().main,n=!0===e?i.length:this.isBooklet?1:2;n=Math.min(n,i.length);for(var o=0;o<n;o++){var s=this.getPageByNumber(i[o]);s&&(t=s.textureLoaded&&t)}return this.element.toggleClass("df-loading",!t),t}},{key:"textureLoadedCallback",value:function(e){}},{key:"handleZoom",value:function(){}},{key:"getTextureSize",value:function(e){console.error("Texture calculation missing!")}},{key:"textureHeightLimit",value:function(e){return E.limitAt(e,1,this.app.dimensions.maxTextureHeight)}},{key:"textureWidthLimit",value:function(e){return E.limitAt(e,1,this.app.dimensions.maxTextureWidth)}},{key:"setPage",value:function(e){E.log("Set Page detected",e.pageNumber);var t=this.getPageByNumber(e.pageNumber);return!!t&&(e.callback=this.textureLoadedCallback.bind(this),t.loadTexture(e),this.updateBuffer(t),!0)}},{key:"cleanPage",value:function(e){return!0}},{key:"validatePageChange",value:function(e){return e!==this.app.currentPageNumber}},{key:"afterControlUpdate",value:function(){}},{key:"searchPage",value:function(e){return{include:!0,label:this.app.provider.getLabelforPage(e)}}}],function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();function C(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function T(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function k(e,t,i){return t&&T(e.prototype,t),i&&T(e,i),e}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var L=p.utils,N=p.jQuery,_=/*#__PURE__*/function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}(n,e);var t,i=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,i=O(n);return e=t?Reflect.construct(i,arguments,O(this).constructor):i.apply(this,arguments),e&&("object"==(e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof e)?e:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)});function n(e){var t;return C(this,n),(t=i.call(this)).canvasMode=null,e&&e.parentElement&&(t.parentElement=e.parentElement),t.init(),t}return k(n,[{key:"init",value:function(){var e=this.element=N("<div>",{class:"df-page"});e[0].appendChild(this.contentLayer[0]),this.texture=new Image,this.parentElement&&this.parentElement[0].append(e[0])}},{key:"resetContent",value:function(){void 0!==this.annotationElement&&this.annotationElement.html(""),void 0!==this.textElement&&this.textElement.html("")}},{key:"setLoading",value:function(){this.element.toggleClass("df-loading",!0!==this.textureLoaded)}},{key:"loadTexture",value:function(e){var t=this,i=e.texture,n=e.callback;function o(){t.textureSrc=i,t.element.css({backgroundImage:L.bgImage(i)}),t.updateTextureLoadStatus(!0),"function"==typeof n&&n(e)}null===t.canvasMode&&i&&"CANVAS"===i.nodeName&&(t.canvasMode=!0),!0===t.canvasMode?(t.element.find("canvas").remove(),i!==t.textureLoadFallback&&(t.textureSrc=i,t.element.append(N(i))),t.updateTextureLoadStatus(!0),"function"==typeof n&&n(e)):i===t.textureLoadFallback?o():(t.texture.onload=o,t.texture.src=i)}},{key:"updateCSS",value:function(e){this.element.css(e)}},{key:"resetCSS",value:function(){this.element.css({transform:"",boxShadow:"",display:"block"})}}]),n}(/*#__PURE__*/function(){function e(){C(this,e),this.textureLoadFallback="blank",this.textureStamp="-1",this.textureLoaded=!1,this.texture="blank",this.textureSrc="blank",this.pageNumber=void 0,this.contentLayer=N("<div>",{class:"df-page-content"})}return k(e,[{key:"reset",value:function(){this.resetTexture(),this.resetContent()}},{key:"resetTexture",value:function(){this.textureLoaded=!1,this.textureStamp="-1",this.loadTexture({texture:this.textureLoadFallback}),this.contentLayer.removeClass("df-content-loaded")}},{key:"clearTexture",value:function(){this.loadTexture({texture:this.textureLoadFallback})}},{key:"resetContent",value:function(){}},{key:"loadTexture",value:function(e){}},{key:"getTexture",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.textureSrc;return!0===e&&t&&t.cloneNode&&(t=t.cloneNode()).getContext&&t.getContext("2d").drawImage(this.textureSrc,0,0),t}},{key:"setLoading",value:function(){}},{key:"updateTextureLoadStatus",value:function(e){this.textureLoaded=!0===e,L.log((!0===this.textureLoaded?"Loaded ":"Loading ")+this.textureStamp+" for "+this.pageNumber),this.contentLayer.toggleClass("df-content-loaded",!0===e),this.setLoading()}},{key:"changeTexture",value:function(e,t){var i=e+"|"+t;return this.textureStamp!==i&&(L.log("Page "+e+":texture changed from - "+this.textureStamp+" to "+i),this.textureLoaded=!1,this.textureStamp=i,this.updateTextureLoadStatus(!1),!0)}}]),e}());function I(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e,t,i){return(A="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=M(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(i||e):o.value}})(e,t,i||e)}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function z(e,t){return(z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var D=p.jQuery,F=p.utils,B=/*#__PURE__*/function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&z(e,t)}(o,e);var t,i,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,i=M(o);return e=t?Reflect.construct(i,arguments,M(this).constructor):i.apply(this,arguments),e&&("object"==(e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof e)?e:I(this)});function o(e,t){var i;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),e.viewerClass="df-reader",t.options.mouseScrollAction=p.MOUSE_SCROLL_ACTIONS.NONE,(i=n.call(this,e,t)).app.jumpStep=1,i.minZoom=.25,i.stackCount=i.app.pageCount,i.app.options.paddingLeft=0,i.app.options.paddingRight=0,i.app.options.paddingTop=10,i.app.options.paddingBottom=!0===i.app.options.controlsFloating?20:10,i.app.pageScaling=i.app.options.pageScale,i.acceptAppMouseEvents=!0,i.scrollStatus=p.REQUEST_STATUS.OFF,i.deltaPanX=0,i.deltaPanY=0,t._viewerPrepared(),i.zoomViewer=I(i),i}return i=[{key:"init",value:function(){A(M(o.prototype),"init",this).call(this),this.initEvents(),this.initPages(),this.initScrollBar()}},{key:"initEvents",value:function(){this.stageDOM=this.element[0],A(M(o.prototype),"initEvents",this).call(this)}},{key:"initPages",value:function(){this.stackCount=this.app.pageCount;for(var e=0;e<this.stackCount;e++){var t=new _({parentElement:this.wrapper});t.index=e,t.viewer=this,this.pages.push(t)}}},{key:"initScrollBar",value:function(){this.scrollBar=D("<div class='df-reader-scrollbar'>"),this.scrollBar.appendTo(this.app.container),this.scrollPageNumber=D("<div class='df-reader-scroll-page-number'>").appendTo(this.app.container),this.scrollPageNumberCurrent=D("<div>").appendTo(this.scrollPageNumber),this.scrollPageNumberTotal=D("<div class='df-reader-scroll-page-number-total'>").appendTo(this.scrollPageNumber)}},{key:"afterControlUpdate",value:function(){if(void 0!==this.scrollBar){var e=this.app.getCurrentLabel();this.scrollBar.text(e),this.app.provider.pageLabels?(this.scrollPageNumberCurrent.text(e),this.scrollPageNumberTotal.text("("+this.app.currentPageNumber+" of "+this.app.pageCount+")")):(this.scrollPageNumberCurrent.text(e),this.scrollPageNumberTotal.text("of "+this.app.pageCount))}}},{key:"updateBuffer",value:function(e){if("-1"!==e.textureStamp&&void 0!==e.pageNumber){for(var t=e.pageNumber,i=e.pageNumber,n=0,o=0;o<this.pageBuffer.length;o++){var s=this.pageBuffer[o].pageNumber;if(t===s){F.log("Page "+t+" already in buffer, skipping");return}Math.abs(this.app.currentPageNumber-s)>Math.abs(this.app.currentPageNumber-i)&&(i=s,n=o)}this.pageBuffer.push(e),this.pageBuffer.length>this.pageBufferSize&&(F.log("Farthest buffer: "+i),this.pageBuffer[n].reset(),this.pageBuffer.splice(n,1))}}},{key:"initCustomControls",value:function(){var e=this.app.ui.controls;e.openRight.hide(),e.openLeft.hide()}},{key:"dispose",value:function(){A(M(o.prototype),"dispose",this).call(this),this.scrollBar&&this.scrollBar.remove(),this.scrollPageNumber&&this.scrollPageNumber.remove(),this.element.remove()}},{key:"_getInnerHeight",value:function(){A(M(o.prototype),"_getInnerHeight",this).call(this);var e=this.app.dimensions.maxHeight-this.app.dimensions.padding.height,t=this.app.dimensions.defaultPage.viewPort,i=this.app.dimensions.containerWidth-20-this.app.dimensions.padding.width;this.app.pageScaling===p.PAGE_SCALE.ACTUAL&&(i=1*this.app.provider.defaultPage.viewPort.width);var n=e;return this.app.pageScaling===p.PAGE_SCALE.PAGE_WIDTH?n=100*t.height:this.app.pageScaling===p.PAGE_SCALE.AUTO?n=1.5*t.height:this.app.pageScaling===p.PAGE_SCALE.ACTUAL&&(n=1*t.height),n-=2,this._containCover=F.contain(t.width,t.height,i,n),n=Math.min(e,this._containCover.height+2),this.app.pageScaleValue=this._containCover.height/t.height,this.app.dimensions.isFixedHeight?e:n}},{key:"handleZoom",value:function(){var e=this.app,t=this.maxZoom=4,i=e.zoomValue;!0===e.pendingZoom&&null!=e.zoomDelta?i=e.zoomDelta>0?i*e.options.zoomRatio:i/e.options.zoomRatio:null!=this.lastScale&&(i*=this.lastScale,this.lastScale=null),i=F.limitAt(i,this.minZoom,t),e.zoomValueChange=i/e.zoomValue,e.zoomChanged=e.zoomValue!==i,e.zoomValue=i}},{key:"resize",value:function(){var e=this.app;e.dimensions;var t=e.dimensions.padding,i=this.shiftHeight=0;this.element.css({top:-i,bottom:-i,right:-0,left:-0,paddingTop:t.top,paddingRight:t.right,paddingBottom:t.bottom,paddingLeft:t.left});for(var n=this.getVisiblePages().main[0]-1,o=(n=this.pages[n].element[0]).getBoundingClientRect(),s=this.parentElement[0].getBoundingClientRect(),a=0;a<this.pages.length;a++){var r=this.pages[a],l=this.getViewPort(a+1,!0),h=r.element[0].style;h.height=Math.floor(l.height*e.pageScaleValue*e.zoomValue)+"px",h.width=Math.floor(l.width*e.pageScaleValue*e.zoomValue)+"px"}if(this.oldScrollHeight!=this.element[0].scrollHeight&&void 0!==this.oldScrollHeight){var u,p=this.element[0].scrollHeight/this.oldScrollHeight;this.skipScrollCheck=!0;var c=n.offsetTop+n.clientTop-(o.top-s.top+n.clientTop)*p,d=n.offsetLeft+n.clientLeft-(o.left-s.left+n.clientLeft)*p;c+=(p-1)*10/2,d+=(p-1)*10/2,this.zoomCenter=null!==(u=this.zoomCenter)&&void 0!==u?u:{x:0,y:0},c+=(p-1)*this.zoomCenter.y,d+=(p-1)*this.zoomCenter.x,this.zoomCenter=null,this.element[0].scrollTop=c,this.element[0].scrollLeft=d,this.skipScrollCheck=!1}this.oldScrollHeight=this.element[0].scrollHeight,this.scrollBar[0].style.transform="none",this.updateScrollBar()}},{key:"onReady",value:function(){this.gotoPageCallBack(),this.oldScrollHeight=this.element[0].scrollHeight}},{key:"refresh",value:function(){for(var e=this.app,t=this.getVisiblePages().main,i=0;i<t.length;i++){var n=void 0,o=t[i];n=this.pages[o-1],o!==n.pageNumber&&(n.resetTexture(),this.app.textureRequestStatus=p.REQUEST_STATUS.ON),n.element.attr("number",o),n.pageNumber=o}this.requestRefresh(!1),e.textureRequestStatus=p.REQUEST_STATUS.ON}},{key:"isAnimating",value:function(){return this.scrollStatus===p.REQUEST_STATUS.ON||this.scrollStatus===p.REQUEST_STATUS.COUNT}},{key:"checkRequestQueue",value:function(){A(M(o.prototype),"checkRequestQueue",this).call(this),this.scrollStatus===p.REQUEST_STATUS.ON&&(this.scrollStatus=p.REQUEST_STATUS.OFF),this.scrollStatus===p.REQUEST_STATUS.COUNT&&(this.scrollStatus=p.REQUEST_STATUS.ON)}},{key:"isActivePage",value:function(e){return void 0!==this.visiblePagesCache&&this.visiblePagesCache.includes(e)}},{key:"getVisiblePages",value:function(){var e=F.getVisibleElements({container:this.element[0],elements:this.wrapper[0].children});return e=0===e.length?[this.app.currentPageNumber]:e.splice(0,this.pageBufferSize),this.visiblePagesCache=e,{main:e,buffer:[]}}},{key:"getPageByNumber",value:function(e){var t=this.pages[e-1];return void 0===t&&F.log("Page Not found for: "+e),t}},{key:"onScroll",value:function(e){for(var t=this.element[0].scrollTop+this.app.dimensions.containerHeight/2,i=this.getVisiblePages().main,n=i[0],o=0;o<i.length;o++){n=i[o];var s=this.pages[n-1].element[0],a=s.offsetTop+s.clientTop;if(a<=t&&s.clientHeight+a>=t)break;if(o>0&&a>t&&s.clientHeight+a>=t){n=i[o-1];break}}this.skipScrollIntoView=!0,this.app.gotoPage(n),this.skipScrollIntoView=!1,this.updateScrollBar(),e.preventDefault&&e.preventDefault(),e.stopPropagation(),this.requestRefresh(),this.scrollStatus=p.REQUEST_STATUS.COUNT,p.handlePopup(this.element,!1)}},{key:"updateScrollBar",value:function(){var e=this.element[0];this.app.container[0],e.scrollLeft;var t=60+(e.offsetHeight-40-60-60)*e.scrollTop/(e.scrollHeight-e.offsetHeight);isNaN(t)&&(t=60),this.scrollBar.lastY=t,this.scrollBar[0].style.transform="translateY("+t+"px)"}},{key:"validatePageChange",value:function(e){}},{key:"gotoPageCallBack",value:function(){if(!0!==this.skipScrollIntoView){var e=this.getPageByNumber(this.app.currentPageNumber);null!=e&&F.scrollIntoView(e.element[0],this.element[0])}this.skipScrollIntoView=!1,this.requestRefresh()}},{key:"getTextureSize",value:function(e){var t=this.app.provider.viewPorts[1];this.app.provider.viewPorts[e.pageNumber]&&(t=this.app.provider.viewPorts[e.pageNumber]);var i=this.app.options.pixelRatio;return{height:t.height*this.app.zoomValue*this.app.pageScaleValue*i,width:t.width*this.app.zoomValue*this.app.pageScaleValue*i}}},{key:"textureLoadedCallback",value:function(e){var t=this.getPageByNumber(e.pageNumber),i=this.app,n=this.getViewPort(e.pageNumber,!0);t.element.height(Math.floor(n.height*i.pageScaleValue*i.zoomValue)).width(Math.floor(n.width*i.pageScaleValue*i.zoomValue)),this.pagesReady()}},{key:"pan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.startPoint,n=e.raw.y-i.raw.y,o=e.raw.x-i.raw.x;this.deltaPanY+=n,this.deltaPanX+=o,this.panRequestStatus=p.REQUEST_STATUS.ON,!1===t&&(this.startPoint=e)}},{key:"updatePan",value:function(){this.element[0].scrollTop=this.element[0].scrollTop-this.deltaPanY,this.element[0].scrollLeft=this.element[0].scrollLeft-this.deltaPanX,this.deltaPanY=0,this.deltaPanX=0}},{key:"mouseMove",value:function(e){if(this.startPoint&&this.isScrollBarPressed){var t=F.fixMouseEvent(e),i=this.eventToPoint(t),n=this.element[0],s=this.scrollBar.lastY-(this.startPoint.raw.y-i.raw.y);this.scrollBar.lastY=s,n.scrollTop=(s-60)*(n.scrollHeight-n.offsetHeight)/(n.offsetHeight-40-60-60),this.startPoint=i,e.preventDefault();return}e.touches&&e.touches.length<2||A(M(o.prototype),"mouseMove",this).call(this,e)}},{key:"mouseDown",value:function(e){A(M(o.prototype),"mouseDown",this).call(this,e),e.srcElement===this.scrollBar[0]&&(this.isScrollBarPressed=!0,this.scrollBar.addClass("df-active"),this.scrollPageNumber.addClass("df-active"))}},{key:"mouseUp",value:function(e){A(M(o.prototype),"mouseUp",this).call(this,e),(this.isScrollBarPressed=this.scrollBar)&&(this.isScrollBarPressed=!1,this.scrollBar.removeClass("df-active"),this.scrollPageNumber.removeClass("df-active"))}}],function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(o.prototype,i),o}(x);function H(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function U(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function V(e,t,i){return t&&U(e.prototype,t),i&&U(e,i),e}function W(e,t,i){return(W="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=j(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(i||e):o.value}})(e,t,i||e)}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function q(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&G(e,t)}function G(e,t){return(G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var i,n=j(e);return i=t?Reflect.construct(n,arguments,j(this).constructor):n.apply(this,arguments),i&&("object"==(i&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)||"function"==typeof i)?i:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)}}var K=p.jQuery,X=p.utils,Q=/*#__PURE__*/function(e){q(i,e);var t=Z(i);function i(e,n){var o,s;return H(this,i),e.viewerClass="df-flipbook "+(e.viewerClass||""),(o=t.call(this,e,n)).isFlipBook=!0,o.sheets=[],o.isRTL=o.app.isRTL,o.foldSense=o.isVertical()?0:50,o.isOneSided=!1,o.stackCount=null!==(s=e.stackCount)&&void 0!==s?s:6,o.annotedPage=null,o.pendingAnnotations=[],o.seamPositionX=0,o.seamPositionY=0,o.dragSheet=null,o.drag=null,o.soundOn=!0===e.enableSound,o.soundFile=null,o.minZoom=1,o.maxZoom=4,o.pureMaxZoom=4,(o.app.options.pageSize===p.FLIPBOOK_PAGE_SIZE.AUTO||o.app.options.pageSize===p.FLIPBOOK_PAGE_SIZE.DOUBLE_INTERNAL)&&(o.app.checkSecondPage=!0),o.app.pageScaling=p.PAGE_SCALE.PAGE_FIT,e.viewerClass="",o.zoomViewer=new J(e,n),o}return V(i,[{key:"init",value:function(){W(j(i.prototype),"init",this).call(this),this.initSound();var e=this.app;this.pageMode=e.options.pageMode===p.FLIPBOOK_PAGE_MODE.AUTO?X.isMobile||e.pageCount<=2?p.FLIPBOOK_PAGE_MODE.SINGLE:p.FLIPBOOK_PAGE_MODE.DOUBLE:e.options.pageMode,this.singlePageMode=e.options.singlePageMode||(X.isMobile?p.FLIPBOOK_SINGLE_PAGE_MODE.BOOKLET:p.FLIPBOOK_SINGLE_PAGE_MODE.ZOOM),this.updatePageMode(),this.rightSheetHeight=this.leftSheetHeight=this._defaultPageSize.height,this.leftSheetWidth=this.rightSheetWidth=this._defaultPageSize.width,this.leftSheetTop=this.rightSheetTop=(this.availablePageHeight()-this._defaultPageSize.height)/2,this.topSheetLeft=this.bottomSheetLeft=(this.availablePageWidth()-this._defaultPageSize.width)/2,this.zoomViewer.rightSheetHeight=this.zoomViewer.leftSheetHeight=this._defaultPageSize.height,this.zoomViewer.leftSheetWidth=this.zoomViewer.rightSheetWidth=this._defaultPageSize.width}},{key:"determineHeight",value:function(){}},{key:"initCustomControls",value:function(){W(j(i.prototype),"initCustomControls",this).call(this);var e=this,t=this.app,n=t.ui,o=n.controls,s=t.options.text,a=t.options.icons;o.sound=X.createBtn("sound",a.sound,s.toggleSound).on("click",function(){e.soundOn=!e.soundOn,n.updateSound()}),n.updateSound=function(){!1===e.soundOn?o.sound.addClass("disabled"):o.sound.removeClass("disabled")},n.updateSound()}},{key:"dispose",value:function(){W(j(i.prototype),"dispose",this).call(this);for(var e=0;e<this.sheets.length;e++){var t=this.sheets[e];t&&t.currentTween&&(t.currentTween.stop(),t.currentTween=null)}this.zoomViewer.dispose(),this.soundFile=null}},{key:"determinePageMode",value:function(){var e=this.app,t=this.pageMode;if(this.app.pageCount<3)this.pageMode=p.FLIPBOOK_PAGE_MODE.SINGLE;else if(this.app.options.pageMode===p.FLIPBOOK_PAGE_MODE.AUTO&&!0!=this.pageModeChangedManually){if(!0===X.isMobile){if(this.app.dimensions.isAutoHeight&&!1==this.app.dimensions.isFixedHeight){var i=this._calculateInnerHeight(!0),n=this._calculateInnerHeight(!1),o=e.dimensions.stage.innerWidth+(!0!=e.options.sideMenuOverlay&&e.isSideMenuOpen?220:0);this.pageMode=i>1.1*n&&o<768?p.FLIPBOOK_PAGE_MODE.SINGLE:p.FLIPBOOK_PAGE_MODE.DOUBLE,this._calculateInnerHeight()}else{var s=e.dimensions.stage.innerWidth+(!0!=e.options.sideMenuOverlay&&e.isSideMenuOpen?220:0);this.pageMode=e.dimensions.stage.innerHeight>1.1*s&&s<768?p.FLIPBOOK_PAGE_MODE.SINGLE:p.FLIPBOOK_PAGE_MODE.DOUBLE}}this.pageMode!=t&&this.setPageMode({isSingle:this.pageMode==p.FLIPBOOK_PAGE_MODE.SINGLE})}}},{key:"initSound",value:function(){this.soundFile=document.createElement("audio"),this.soundFile.setAttribute("src",this.app.options.soundFile+"?ver="+p.version),this.soundFile.setAttribute("type","audio/mpeg")}},{key:"playSound",value:function(){try{!0===this.app.userHasInteracted&&!0===this.soundOn&&(this.soundFile.currentTime=0,this.soundFile.play())}catch(e){}}},{key:"checkDocumentPageSizes",value:function(){var e=this.app.provider;e.pageSize===p.FLIPBOOK_PAGE_SIZE.AUTO&&(e._page2Ratio&&e._page2Ratio>1.5*e.defaultPage.pageRatio?e.pageSize=p.FLIPBOOK_PAGE_SIZE.DOUBLE_INTERNAL:e.pageSize=p.FLIPBOOK_PAGE_SIZE.SINGLE),e.pageSize===p.FLIPBOOK_PAGE_SIZE.DOUBLE_INTERNAL&&(e.pageCount=1===e.numPages?1:2*e.numPages-2),(e.pageSize===p.FLIPBOOK_PAGE_SIZE.DOUBLE_COVER_BACK||e.pageSize===p.FLIPBOOK_PAGE_SIZE.DOUBLE)&&(e.pageCount=2*e.numPages)}},{key:"getViewerPageNumber",value:function(e){return this.app.provider.pageSize===p.FLIPBOOK_PAGE_SIZE.DOUBLE_INTERNAL&&e>2&&(e=2*e-1),this.app.provider.pageSize===p.FLIPBOOK_PAGE_SIZE.DOUBLE_COVER_BACK&&e>2&&(e=2*e-1),e}},{key:"getDocumentPageNumber",value:function(e){return this.app.provider.pageSize===p.FLIPBOOK_PAGE_SIZE.DOUBLE_INTERNAL&&e>2?Math.ceil((e-1)/2)+1:this.app.provider.pageSize===p.FLIPBOOK_PAGE_SIZE.DOUBLE_COVER_BACK&&e>1?e===this.app.pageCount?1:Math.ceil((e-1)/2)+1:e}},{key:"getViewPort",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;return this.filterViewPort(W(j(i.prototype),"getViewPort",this).call(this,e,t),e,n)}},{key:"isDoubleInternal",value:function(){return this.app.provider.pageSize===p.FLIPBOOK_PAGE_SIZE.DOUBLE_INTERNAL}},{key:"isDoubleCoverBack",value:function(){return this.app.provider.pageSize===p.FLIPBOOK_PAGE_SIZE.DOUBLE_COVER_BACK}},{key:"isDoubleInternalPage",value:function(e){return this.isDoubleInternal()&&e>1&&e<this.app.provider.pageCount}},{key:"getDoublePageWidthFix",value:function(e){return this.isDoubleInternalPage(e)||this.isDoubleCoverBack()?2:1}},{key:"isDoublePageFix",value:function(e){var t=!1;return(this.isDoubleCoverBack()||this.isDoubleInternalPage(e))&&(this.app.isRTL?e%2==0&&(t=!0):e%2==1&&(t=!0)),t}},{key:"finalizeAnnotations",value:function(e,t){}},{key:"finalizeTextContent",value:function(e,t){this.app.zoomValue>this.app.viewer.pureMaxZoom&&(this.zoomViewer.leftViewPort&&this.zoomViewer.leftPage.contentLayer[0].style.setProperty("--scale-factor",this.zoomViewer.leftSheetHeight/this.zoomViewer.leftViewPort.height),this.zoomViewer.rightViewPort&&this.zoomViewer.rightPage.contentLayer[0].style.setProperty("--scale-factor",this.zoomViewer.rightSheetHeight/this.zoomViewer.rightViewPort.height))}},{key:"isActivePage",value:function(e){return void 0!==this.visiblePagesCache&&this.visiblePagesCache.includes(e)}},{key:"isSheetCover",value:function(e){var t=this.isBooklet;return 0===e||t&&1===e||e===Math.ceil(this.app.pageCount/(t?1:2))-(t?0:1)}},{key:"isSheetHard",value:function(e){var t=this.app.options.flipbookHardPages;if(this.isBooklet,"cover"===t)return this.isSheetCover(e);if("all"===t)return!0;var i=(","+t+",").indexOf(","+(2*e+1)+",")>-1,n=(","+t+",").indexOf(","+(2*e+2)+",")>-1;return i||n}},{key:"sheetsIndexShift",value:function(e,t,i){e>t?(this.sheets[i-1].skipFlip=!0,this.sheets.unshift(this.sheets.pop())):e<t&&(this.sheets[0].skipFlip=!0,this.sheets.push(this.sheets.shift()))}},{key:"checkSwipe",value:function(e,t){if(!0!==this.pinchZoomDirty&&1===this.app.zoomValue&&!0===this.canSwipe){var i=this.isVertical()?e.y-this.lastPosY:e.x-this.lastPosX;null!=t.touches&&this.isVertical()&&i>5&&t.preventDefault(),Math.abs(i)>this.swipeThreshold&&(i<0?this.app.openRight():this.app.openLeft(),this.canSwipe=!1,t.preventDefault()),this.lastPosX=e.x,this.lastPosY=e.y}}},{key:"checkCenter",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.app,n=p.FLIPBOOK_CENTER_SHIFT,o=i.currentPageNumber%2==0,s=this.getBasePage(),a=this.isRTL,r=this.isSingle;e=0===s||this.isBooklet?this.isRTL?n.RIGHT:n.LEFT:s===i.pageCount?a?n.LEFT:n.RIGHT:r?a?o?n.LEFT:n.RIGHT:o?n.RIGHT:n.LEFT:n.NONE,!0!==this.centerNeedsUpdate&&(this.centerNeedsUpdate=this.centerShift!==e),this.centerNeedsUpdate&&(this.centerShift=e,this.updateCenter(t),this.centerNeedsUpdate=!1)}},{key:"updateCenter",value:function(){console.log("UpdateCenter: missing implementation.")}},{key:"reset",value:function(){for(var e,t=0;t<this.sheets.length;t++)(e=this.sheets[t]).reset(),e.pageNumber=-1,e.frontPage&&(e.frontPage.pageNumber=-1),e.backPage&&(e.backPage.pageNumber=-1),e.resetTexture();this.annotedPage=null,this.oldBasePageNumber=-1,this.centerShift=null,this.refresh()}},{key:"handleZoom",value:function(){var e=this.app;e.dimensions;var t=this.getLeftPageTextureSize({zoom:!1,isAnnotation:!0}),i=this.getRightPageTextureSize({zoom:!1,isAnnotation:!0});this.maxZoom,e.zoomValue,this.pureMaxZoom=e.dimensions.maxTextureSize/Math.max(t.height,t.width,i.height,i.width);var n=this.maxZoom=e.options.fakeZoom*this.pureMaxZoom,o=e.zoomValue,s=!1,a=!1;n<this.minZoom&&(n=this.maxZoom=this.minZoom),!0===e.pendingZoom&&null!=e.zoomDelta?o=e.zoomDelta>0?o*e.options.zoomRatio:o/e.options.zoomRatio:null!=this.lastScale&&(o*=this.lastScale,this.lastScale=null),o=X.limitAt(o,this.minZoom,n),e.zoomValueChange=o/e.zoomValue,(e.zoomChanged=e.zoomValue!==o)&&(1===o||1===e.zoomValue)&&(s=1===o,a=1===e.zoomValue),e.zoomValue=o,(a||s)&&(e.container.toggleClass("df-zoom-active",1!==o),a&&this.enterZoom(),s&&this.exitZoom())}},{key:"refresh",value:function(){var e=this.app,t=this.stackCount,i=this.isRTL,n=this.isBooklet,o=this.getBasePage(),s=n?1:2;i&&(o=e.pageCount-o);var a,r=this.oldBasePageNumber,l=Math.ceil(e.pageCount/s),h=Math.floor(t/2);o!==this.oldBasePageNumber&&(this.pageNumberChanged=!0,this.updatePendingStatusClass(!0),this.zoomViewer.reset()),this.sheetsIndexShift(r,o,t);var u=Math.ceil(o/s);for(a=0;a<t;a++){var c=void 0,d=u-h+a;if(i&&(d=l-d-1),null!=(c=this.sheets[a])){c.targetSide=a<h?p.TURN_DIRECTION.LEFT:p.TURN_DIRECTION.RIGHT;var f=c.side!==c.targetSide,g=d!==c.pageNumber,m=f&&!1===c.skipFlip&&1===e.zoomValue;!f&&g&&c.isFlipping&&c.currentTween&&c.currentTween.stop(),c.isHard=this.isSheetHard(d),c.isCover=this.isSheetCover(d),g&&(c.resetTexture(),(this.app.isRTL?c.backPage:c.frontPage).pageNumber=this.isBooklet?d:2*d+1,(this.app.isRTL?c.frontPage:c.backPage).pageNumber=this.isBooklet?-1:2*d+2,e.textureRequestStatus=p.REQUEST_STATUS.ON),c.pageNumber=d,this.refreshSheet({sheet:c,sheetNumber:d,totalSheets:l,zIndex:this.stackCount+(a<h?a-h:h-a),visible:n?i?a<h||c.isFlipping||m:a>=h||c.isFlipping||m:d>=0&&d<l||n&&d===l,index:a,needsFlip:m,midPoint:h})}}this.requestRefresh(!1),e.textureRequestStatus=p.REQUEST_STATUS.ON,this.oldBasePageNumber=o,this.checkCenter(),this.zoomViewer.refresh(),this.pageNumberChanged=!1}},{key:"validatePageChange",value:function(e){if(e===this.app.currentPageNumber)return!1;var t=this.app,i=!this.isFlipping()||void 0===t.oldPageNumber;return(i=i||t.currentPageNumber<e&&t.oldPageNumber<t.currentPageNumber)||t.currentPageNumber>e&&t.oldPageNumber>t.currentPageNumber}},{key:"getVisiblePages",value:function(){for(var e=[],t=this.getBasePage(),i=this.app.zoomValue>1?1:this.isBooklet&&X.isMobile?Math.min(this.stackCount/2,2):this.stackCount/2,n=0;n<i;n++)e.push(t-n),e.push(t+n+1);return this.visiblePagesCache=e,{main:e,buffer:[]}}},{key:"getBasePage",value:function(e){return(void 0===e&&(e=this.app.currentPageNumber),this.isBooklet)?e:2*Math.floor(e/2)}},{key:"getRightPageNumber",value:function(){return this.getBasePage()+(this.isBooklet?0:this.isRTL?0:1)}},{key:"getLeftPageNumber",value:function(){return this.getBasePage()+(this.isBooklet?0:this.isRTL?1:0)}},{key:"afterFlip",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0],!0!==this.isAnimating()&&(this.pagesReady(),this.updatePendingStatusClass())}},{key:"isFlipping",value:function(){var e=!1;return this.sheets.forEach(function(t){!0===t.isFlipping&&(e=!0)}),e}},{key:"isAnimating",value:function(){return this.isFlipping()}},{key:"mouseWheel",value:function(e){this.app.options.mouseScrollAction===p.MOUSE_SCROLL_ACTIONS.ZOOM?this.zoomViewer.mouseWheel(e):W(j(i.prototype),"mouseWheel",this).call(this,e)}},{key:"checkRequestQueue",value:function(){this.app.zoomValue>1?this.zoomViewer.checkRequestQueue():W(j(i.prototype),"checkRequestQueue",this).call(this)}},{key:"updatePan",value:function(){}},{key:"resetPageTween",value:function(){}},{key:"gotoPageCallBack",value:function(){this.resetPageTween(),1!==this.app.zoomValue&&!0===this.app.options.resetZoomBeforeFlip&&this.app.resetZoom(),this.beforeFlip(),this.requestRefresh()}},{key:"beforeFlip",value:function(){this.app.executeCallback("beforeFlip"),1===this.app.zoomValue&&this.getBasePage()!==this.oldBasePageNumber&&this.playSound()}},{key:"onFlip",value:function(){this.app.executeCallback("onFlip")}},{key:"getAnnotationElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=void 0;return(o=this.app.zoomValue>1||!0===n?this.zoomViewer.getAnnotationElement(e,t):W(j(i.prototype),"getAnnotationElement",this).call(this,e,t))&&(o.parentNode.classList.toggle("df-double-internal",this.isDoubleInternalPage(e)),o.parentNode.classList.toggle("df-double-internal-fix",this.isDoublePageFix(e))),o}},{key:"getTextElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.app.zoomValue>1||!0===n?this.zoomViewer.getTextElement(e,t):W(j(i.prototype),"getTextElement",this).call(this,e,t)}},{key:"enterZoom",value:function(){this.exchangeTexture(this,this.zoomViewer)}},{key:"exitZoom",value:function(){this.exchangeTexture(this.zoomViewer,this)}},{key:"exchangeTexture",value:function(e,t){var i=this.getBasePage(),n=e.getPageByNumber(i),o=t.getPageByNumber(i);if(o&&"-1"===o.textureStamp?(o.textureStamp=n.textureStamp,o.loadTexture({texture:n.getTexture(!0)}),X.log("Texture Exchanging at "+i)):X.log("Texture Exchanging Bypassed at "+i),!this.isBooklet){var s=e.getPageByNumber(i+1),a=t.getPageByNumber(i+1);a&&"-1"===a.textureStamp?(a.textureStamp=s.textureStamp,a.loadTexture({texture:s.getTexture(!0)}),X.log("Texture Exchanging at "+(i+1))):X.log("Texture Exchanging Bypassed at "+(i+1))}t.pagesReady()}},{key:"setPageMode",value:function(e){var t=this.app,i=!0===e.isSingle;this.pageMode=i?p.FLIPBOOK_PAGE_MODE.SINGLE:p.FLIPBOOK_PAGE_MODE.DOUBLE,this.updatePageMode(),t.resizeRequestStart()}},{key:"updatePageMode",value:function(){var e=this.app;this.app.pageCount<3&&(this.pageMode=p.FLIPBOOK_PAGE_MODE.SINGLE),this.isSingle=this.pageMode===p.FLIPBOOK_PAGE_MODE.SINGLE,this.isBooklet=this.isSingle&&this.singlePageMode===p.FLIPBOOK_SINGLE_PAGE_MODE.BOOKLET,this.app.jumpStep=this.isSingle?1:2,this.totalSheets=Math.ceil(this.app.pageCount/(this.isBooklet?1:2)),this.sheets.length>0&&this.reset(),e.ui.controls.pageMode&&(e.viewer.pageMode===p.FLIPBOOK_PAGE_MODE.DOUBLE?e.ui.controls.pageMode.removeClass(e.options.icons.doublepage).addClass(e.options.icons.singlepage).attr("title",e.options.text.singlePageMode).html("<span>"+e.options.text.singlePageMode+"</span>"):e.ui.controls.pageMode.addClass(e.options.icons.doublepage).removeClass(e.options.icons.singlepage).attr("title",e.options.text.doublePageMode).html("<span>"+e.options.text.doublePageMode+"</span>"))}},{key:"setPage",value:function(e){return e.textureTarget===p.TEXTURE_TARGET.ZOOM?this.zoomViewer.setPage(e):W(j(i.prototype),"setPage",this).call(this,e)}},{key:"_calculateInnerHeight",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;void 0===e&&(e=this.pageMode===p.FLIPBOOK_PAGE_MODE.SINGLE);var t=this.app.dimensions.defaultPage.viewPort,i=this.availablePageWidth(!1,!0,e),n=this.app.dimensions.maxHeight-this.app.dimensions.padding.height,o=this.isVertical()&&!1==e?n/2:n;this._defaultPageSize=X.contain(t.width,t.height,i,o),this._pageFitArea={width:i,height:n};var s=this.app.dimensions.isFixedHeight?n:this._pageFitArea.height;return this.app.dimensions.isAutoHeight&&!1==this.app.dimensions.isFixedHeight&&(s=Math.floor(this._defaultPageSize.height)),s}},{key:"_getInnerHeight",value:function(){var e=this._calculateInnerHeight();return this.app.dimensions.stage.width=this.app.dimensions.stage.innerWidth+this.app.dimensions.padding.width,this.app.dimensions.stage.height=e+this.app.dimensions.padding.height,e}},{key:"availablePageWidth",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0===i&&(i=this.pageMode===p.FLIPBOOK_PAGE_MODE.SINGLE);var n=!0===t?this.app.dimensions.offset.width:0,o=this.app.dimensions.stage.innerWidth+n;return Math.floor((o/=!0===i||this.isVertical()?1:2)*(e?this.app.zoomValue:1))}},{key:"availablePageHeight",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;void 0===t&&(t=this.pageMode===p.FLIPBOOK_PAGE_MODE.SINGLE);var i=this.app.dimensions.stage.innerHeight;return!1===t&&this.isVertical()&&(i/=2),Math.floor(i*(e?this.app.zoomValue:1))}},{key:"getTextureSize",value:function(e){var t=this.getViewPort(e.pageNumber,!0),i=this.app.options.pixelRatio,n=!1===e.isRestricted?99999:this.app.options.maxTextureSize,o=X.contain(t.width,t.height,Math.min(i*this.availablePageWidth(e.zoom),n),Math.min(i*this.availablePageHeight(e.zoom),n));return{height:o.height,width:o.width}}},{key:"getLeftPageTextureSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.pageNumber=this.getLeftPageNumber(),this.getTextureSize(e)}},{key:"getRightPageTextureSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.pageNumber=this.getRightPageNumber(),this.getTextureSize(e)}},{key:"filterViewPort",value:function(e,t){var i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(void 0!==e){if(!0!=i)return e;var n=e.clone();return n.width=n.width/this.getDoublePageWidthFix(t),n}}},{key:"filterViewPortCanvas",value:function(e,t,i){this.isDoublePageFix(i)&&(e.transform[4]=e.transform[4]-Math.floor(Math.min(t.width,2*e.width-t.width))),e.widthFix=this.isDoubleInternalPage(i)?2:1}},{key:"isClosedPage",value:function(e){return void 0===e&&(e=this.app.currentPageNumber),1===e||e===this.app.jumpStep*Math.ceil(this.app.pageCount/this.app.jumpStep)&&!this.isBooklet}},{key:"isLeftPage",value:function(e){return(void 0===e&&(e=this.app.currentPageNumber),this.isBooklet)?this.isRTL:e%2==(this.isRTL?1:0)}},{key:"cleanPage",value:function(e){if(!this.isDoubleInternalPage(e))return W(j(i.prototype),"cleanPage",this).call(this,e);var t=e+(e%2==1?-1:1);return!1===this.app.provider.requestedPages[e]&&!1===this.app.provider.requestedPages[t]}},{key:"onReady",value:function(){W(j(i.prototype),"onReady",this).call(this)}},{key:"searchPage",value:function(e){return{include:!this.isDoublePageFix(e),label:this.app.provider.getLabelforPage(e)+(this.isDoubleInternalPage(e)?"-"+this.app.provider.getLabelforPage(e+1):"")}}},{key:"isVertical",value:function(){return!1}}]),i}(x),Y=/*#__PURE__*/function(e){q(i,e);var t=Z(i);function i(e){var n;return H(this,i),(n=t.call(this)).zoomStamp="",n.pendingZoomScale=1,n}return V(i,[{key:"resetZoomTexture",value:function(){this.zoomElement&&this.zoomElement.html(""),this.zoomStamp=""}},{key:"resetTexture",value:function(){W(j(i.prototype),"resetTexture",this).call(this),this.resetZoomTexture()}}]),i}(_),J=/*#__PURE__*/function(e){q(i,e);var t=Z(i);function i(e,n){var o;return H(this,i),e.viewerClass="df-zoomview "+(e.viewerClass||""),(o=t.call(this,e,n)).viewer=o.app.viewer,o.events={},o.init(),o.initEvents(),o.left=0,o.top=0,o.zoomUpdateCount=0,o}return V(i,[{key:"init",value:function(){this.leftPage=new Y,this.rightPage=new Y,this.pages.push(this.leftPage),this.pages.push(this.rightPage),this.leftPage.element.addClass("df-page-back"),this.rightPage.element.addClass("df-page-front"),this.wrapper.append(this.leftPage.element),this.wrapper.append(this.rightPage.element),this.bookShadow=K("<div>",{class:"df-book-shadow"}),this.wrapper.append(this.bookShadow),this.wrapper.addClass("df-sheet")}},{key:"initEvents",value:function(){this.stageDOM=this.element[0],W(j(i.prototype),"initEvents",this).call(this)}},{key:"dispose",value:function(){this.element.remove()}},{key:"resize",value:function(){var e=this.app.dimensions,t=e.padding,i=this.app.viewer.availablePageHeight(),n=this.app.viewer.availablePageWidth(),o=this.fullWidth=n*(this.app.viewer.pageMode===p.FLIPBOOK_PAGE_MODE.SINGLE||this.app.viewer.isVertical()?1:2),s=this.fullHeight=i*(this.app.viewer.isVertical()&&this.app.viewer.pageMode!==p.FLIPBOOK_PAGE_MODE.SINGLE?2:1),a=e.stage.innerWidth,r=e.stage.innerHeight,l=this.shiftHeight=Math.ceil(X.limitAt((s-r)/2,0,s)),h=this.shiftWidth=Math.ceil(X.limitAt((o-a)/2,0,o));if(1===this.app.zoomValue&&(this.left=0,this.top=0),this.element.css({top:-l,bottom:-l,right:-h,left:-h,paddingTop:t.top,paddingRight:t.right,paddingBottom:t.bottom,paddingLeft:t.left,transform:"translate3d("+this.left+"px,"+this.top+"px,0)"}),this.wrapper.css({width:o,height:s,marginTop:e.height-s-t.height>0?(e.height-t.height-s)/2:0}),this.wrapper.height(s).width(o-o%2),!0===this.app.pendingZoom&&this.zoom(),this.app.viewer.annotedPage=null,this.pagesReady(),!0===this.app.options.progressiveZoom){if(this.app.zoomValue>this.app.viewer.pureMaxZoom){if(this.startZoomUpdateRequest(),this.leftPage.zoomElement&&""!=this.leftPage.zoomStamp){var u=this.leftPage.zoomIntersection,c=this.leftSheetHeight/this.leftPage.zoomParentHeight;this.leftPage.zoomElement.css({left:u.left*c,top:u.top*c,width:u.width*c,height:u.height*c}),console.log("Left:"+c+":"+this.leftPage.zoomElement[0].style.cssText)}if(this.rightPage.zoomElement&&""!=this.rightPage.zoomStamp){var d=this.rightPage.zoomIntersection,f=this.rightSheetHeight/this.rightPage.zoomParentHeight;this.rightPage.zoomElement.css({left:d.left*f,top:d.top*f,width:d.width*f,height:d.height*f}),console.log("Right:"+f+":"+this.rightPage.zoomElement[0].style.cssText)}}else this.leftPage.resetZoomTexture(),this.rightPage.resetZoomTexture()}}},{key:"zoom",value:function(){var e=this.app;if(e.zoomChanged){var t=e.dimensions.origin,i=e.zoomValueChange;if(1===e.zoomValue)this.left=0,this.top=0;else{this.left*=i,this.top*=i,e.viewer.zoomCenter||(e.viewer.zoomCenter={x:t.x,y:t.y});var n={raw:e.viewer.zoomCenter},o={raw:{}},s=(n.raw.x-t.x)*i,a=(n.raw.y-t.y)*i;o.raw.x=t.x+s,o.raw.y=t.y+a,this.startPoint=o,this.pan(n),this.startPoint=null,e.container.toggleClass("df-zoom-region-active",this.app.zoomValue>this.app.viewer.pureMaxZoom)}}e.viewer.zoomCenter=null}},{key:"reset",value:function(){this.leftPage.resetTexture(),this.rightPage.resetTexture()}},{key:"refresh",value:function(){var e=this.app,t=e.viewer,i=t.getBasePage(),n=t.isBooklet?!e.isRTL:e.isRTL,o=n?this.rightPage:this.leftPage,s=n?this.leftPage:this.rightPage;o.pageNumber=i,s.pageNumber=i+1,o.updateCSS({display:0===i?"none":"block"}),s.updateCSS({display:s.pageNumber>e.pageCount||t.isBooklet?"none":"block"})}},{key:"updateCenter",value:function(){var e=this.app.viewer.isVertical();if(null!==this&&null!==this.app.viewer){var t=1*this.app.viewer.centerShift*(this.app.viewer.isRTL,this.app.viewer.isLeftPage()?e?this.leftSheetHeight:this.leftSheetWidth:e?this.rightSheetHeight:this.rightSheetWidth)/2;e?this.wrapper[0].style.top=t+"px":this.wrapper[0].style.left=t+"px"}}},{key:"isDoubleInternalPage",value:function(e){return this.app.viewer.isDoubleInternalPage(e)}},{key:"pagesReady",value:function(){if(!this.app.viewer.isFlipping()&&(1!==this.app.zoomValue&&this.app.viewer.updatePendingStatusClass(!1),!1===this.app.options.flipbookFitPages)){var e=this.app.viewer.getBasePage(),t=this.leftViewPort=this.app.viewer.getViewPort(e+(this.app.viewer.isBooklet?0:this.app.viewer.isRTL?1:0)),i=this.rightViewPort=this.app.viewer.getViewPort(e+(this.app.viewer.isBooklet?0:this.app.viewer.isRTL?0:1));if(t){var n=X.contain(t.width,t.height,this.app.viewer.availablePageWidth(),this.app.viewer.availablePageHeight());this.leftSheetWidth=Math.floor(n.width),this.leftSheetHeight=Math.floor(n.height),this.leftSheetTop=(this.app.viewer.availablePageHeight()-this.leftSheetHeight)/2,this.topSheetLeft=(this.app.viewer.availablePageWidth()-this.leftSheetWidth)/2,this.app.zoomValue>this.app.viewer.pureMaxZoom&&this.leftPage.contentLayer[0].style.setProperty("--scale-factor",this.leftSheetHeight/t.height)}if(i){var o=X.contain(i.width,i.height,this.app.viewer.availablePageWidth(),this.app.viewer.availablePageHeight());this.rightSheetWidth=Math.floor(o.width),this.rightSheetHeight=Math.floor(o.height),this.rightSheetTop=(this.app.viewer.availablePageHeight()-this.rightSheetHeight)/2,this.bottomSheetLeft=(this.app.viewer.availablePageWidth()-this.rightSheetWidth)/2,this.app.zoomValue>this.app.viewer.pureMaxZoom&&this.rightPage.contentLayer[0].style.setProperty("--scale-factor",this.rightSheetHeight/i.height)}(void 0!=t||void 0!=i)&&(this.totalSheetsWidth=this.leftSheetWidth+this.rightSheetWidth,this.leftPage.element.height(Math.floor(this.leftSheetHeight)).width(Math.floor(this.leftSheetWidth)),this.rightPage.element.height(Math.floor(this.rightSheetHeight)).width(Math.floor(this.rightSheetWidth)),this.app.viewer.isVertical()?(this.leftPage.element.css({transform:"translateX("+Math.floor(this.topSheetLeft)+"px)"}),this.rightPage.element.css({transform:"translateX("+Math.floor(this.bottomSheetLeft)+"px)"})):(this.leftPage.element.css({transform:"translateY("+Math.floor(this.leftSheetTop)+"px)"}),this.rightPage.element.css({transform:"translateY("+Math.floor(this.rightSheetTop)+"px)"})))}}},{key:"textureLoadedCallback",value:function(e){this.getPageByNumber(e.pageNumber),this.pagesReady()}},{key:"mouseUp",value:function(e){W(j(i.prototype),"mouseUp",this).call(this,e),this.startZoomUpdateRequest()}},{key:"setPage",value:function(e){return this.app,this.app.viewer,W(j(i.prototype),"setPage",this).call(this,e)}},{key:"startZoomUpdateRequest",value:function(){this.zoomUpdateStatus=p.REQUEST_STATUS.COUNT}},{key:"checkRequestQueue",value:function(){W(j(i.prototype),"checkRequestQueue",this).call(this),!0===this.app.options.progressiveZoom&&(this.zoomUpdateStatus===p.REQUEST_STATUS.ON?(this.zoomUpdateStatus=p.REQUEST_STATUS.OFF,this.zoomUpdate()):this.zoomUpdateStatus===p.REQUEST_STATUS.COUNT&&(this.zoomUpdateCount++,this.zoomUpdateCount>3&&(this.zoomUpdateCount=0,this.zoomUpdateStatus=p.REQUEST_STATUS.ON)))}},{key:"zoomUpdate",value:function(){this.zoomUpdatePage({pageNumber:this.app.viewer.getRightPageNumber(),refHeight:this.rightSheetHeight}),this.zoomUpdatePage({pageNumber:this.app.viewer.getLeftPageNumber(),refHeight:this.leftSheetHeight})}},{key:"zoomUpdatePage",value:function(e){var t=this.app,i=this.app.options.pixelRatio,n=this.app.viewer,o="",s=this.getPageByNumber(e.pageNumber);if(void 0!==s){var a=X.elementIntersection(t.element,s.element,!0);if(t.zoomValue>n.pureMaxZoom&&a.width*a.height>0){if(!0===DEARFLIP.skipZoom)return;var r=s.pageNumber+"|"+JSON.stringify(a);if(s.zoomStamp==r){console.log("Rendered "+s.pageNumber+" Duplicate zoom request");return}s.zoomStamp=r;var l=t.viewer.getDocumentPageNumber(e.pageNumber),h=t.provider,u=e.pageNumber,p=performance.now();h.pdfDocument.getPage(l).then(function(n){s.element.offset(),e.isRestricted=!1;var c=t.viewer.getRenderContext(n,e);h.viewPorts[l],c.viewport=n.getViewport({scale:e.refHeight*i/h.viewPorts[l].height}),c.canvas.height=a.height*i,c.canvas.width=a.width*i,o=c.canvas.width+"x"+c.canvas.height+" - of("+c.viewport.width.toFixed(2)+"x"+c.viewport.height.toFixed(2)+")",console.log("Page "+u+" rendering - "+c.canvas.width+"x"+c.canvas.height),c.viewport.transform[4]-=a.left*i,c.viewport.transform[5]-=a.top*i,h.requestedPages+=","+e.trace+"["+l+"|"+c.canvas.height+"]",n.cleanupAfterRender=!1,n.render(c).promise.then(function(){var i=X.elementIntersection(t.element,s.element,!0);if(s.zoomStamp!==r){console.log("Faulty zoom texture detected");return}if(s.zoomStamp!==s.pageNumber+"|"+JSON.stringify(i)){console.log("Faulty zoom texture detected - instant");return}if(void 0===s.zoomElement&&(s.zoomElement=K("<div class='zoom-element'></div>"),s.element.append(s.zoomElement)),s.zoomElement.html(""),s.zoomElement.append(c.canvas),s.zoomElement.css({left:a.left,top:a.top,width:a.width,height:a.height}),s.zoomIntersection=a,s.zoomParentHeight=s.element.height(),!0===t.options.cleanupAfterRender){var d=","+e.trace+"["+l+"|"+c.canvas.height+"]";h.requestedPages.indexOf(d)>-1&&(h.requestedPages=h.requestedPages.replace(d,""),-1==h.requestedPages.indexOf("["+l+"|")&&(h.pagesToClean.push(n),h.pagesToClean.length>0&&h.cleanUpPages()))}c=null,console.log("Rendered "+u+" in "+Math.floor(performance.now()-p)+" ms:"+o+" for "+r)}).catch(function(e){console.log(e)})}).catch(function(e){console.log(e)})}}}}]),i}(x),$=/*#__PURE__*/function(){function e(t){H(this,e),this.parentElement=t.parentElement,this.isFlipping=!1,this.isOneSided=!1,this.viewer=t.viewer,this.frontPage=null,this.backPage=null,this.pageNumber=void 0,this.animateToReset=null}return V(e,[{key:"init",value:function(){}},{key:"flip",value:function(){}},{key:"frontImage",value:function(e){this.frontPage.loadTexture({texture:e.texture,callback:e.callback})}},{key:"backImage",value:function(e){this.backPage.loadTexture({texture:e.texture,callback:e.callback})}},{key:"resetTexture",value:function(){this.frontPage.resetTexture(),this.backPage.resetTexture()}},{key:"reset",value:function(){this.animateToReset=null,this.isFlipping=!1,this.currentTween=null,this.pendingPoint=null,this.magnetic=!1,this.skipFlip=!0,this.animateToReset=null,this.viewer.dragPage=null,this.viewer.flipPage=null,this.viewer.corner=p.TURN_CORNER.NONE}}]),e}();function ee(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function et(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ei(e,t,i){return t&&et(e.prototype,t),i&&et(e,i),e}function en(e,t,i){return(en="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=eo(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(i||e):o.value}})(e,t,i||e)}function eo(e){return(eo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function es(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ea(e,t)}function ea(e,t){return(ea=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function er(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var i,n=eo(e);return i=t?Reflect.construct(n,arguments,eo(this).constructor):n.apply(this,arguments),i&&("object"==(i&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)||"function"==typeof i)?i:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)}}var el=p.jQuery,eh=p.utils,eu=/*#__PURE__*/function(e){es(i,e);var t=er(i);function i(e){var n;return ee(this,i),(n=t.call(this,e)).init(),n}return ei(i,[{key:"init",value:function(){var e="<div>",t=this.element=el(e,{class:"df-sheet"}),i=this.frontPage=new _;i.element.addClass("df-page-front");var n=this.backPage=new _;n.element.addClass("df-page-back");var o=this.wrapper=el(e,{class:"df-sheet-wrapper"}),s=this.foldInnerShadow=el(e,{class:"df-sheet-fold-inner-shadow"}),a=this.foldOuterShadow=el(e,{class:"df-sheet-fold-outer-shadow"});this.parentElement.append(t),t.append(o),t.append(a),o.append(i.element),o.append(n.element),o.append(s)}},{key:"updateCSS",value:function(e){this.element.css(e)}},{key:"resetCSS",value:function(){this.wrapper.css({transform:""}),this.frontPage.resetCSS(),this.backPage.resetCSS()}},{key:"updateSize",value:function(e,t,i,n){e=Math.floor(e),t=Math.floor(t),i=Math.floor(i),n=Math.floor(n),this.wrapper[0].style.height=this.wrapper[0].style.width=Math.ceil(eh.distOrigin(e,t)*this.viewer.app.zoomValue)+"px",this.element[0].style.height=this.frontPage.element[0].style.height=this.backPage.element[0].style.height=this.foldInnerShadow[0].style.height=t+"px",this.element[0].style.width=this.frontPage.element[0].style.width=this.backPage.element[0].style.width=this.foldInnerShadow[0].style.width=e+"px",this.viewer.isVertical()?this.element[0].style.transform="translateX("+n+"px)":this.element[0].style.transform="translateY("+i+"px)"}},{key:"flip",value:function(e){var t=this;if(e=e||t.pendingPoint,null!=t&&null!=t.viewer){t.isFlipping=!0,t.viewer.flipPage=t;var i,n,o=t.viewer.isBooklet,s=t.side===p.TURN_DIRECTION.RIGHT,a=t.viewer.isRTL,r=t.viewer.corner===p.TURN_CORNER.BL||t.viewer.corner===p.TURN_CORNER.BR?t.element.height():0,l=t.viewer.leftSheetWidth+t.viewer.rightSheetWidth,h=0;n=t.end=t&&!0===t.animateToReset?{x:s?l:0,y:r}:{x:s?0:l,y:r},t.flipEasing=t.isHard?TWEEN.Easing.Quadratic.InOut:TWEEN.Easing.Linear.None;var u=t.viewer.app.options.duration;!0===t.isHard?(null!=e&&(h=eh.angleByDistance(e.distance,e.fullWidth)),i=t.init={angle:h*(s?-1:1)},n=t.end=t&&!0===t.animateToReset?{angle:s?0:-0}:{angle:s?-180:180}):null==e?i=t.init=t&&!0===t.animateToReset?{x:s?0:l,y:0}:{x:s?l:0,y:0}:(i=t.init={x:e.x,y:e.y,opacity:1},u=t.viewer.app.options.duration*eh.distPoints(i.x,i.y,n.x,n.y)/t.viewer.fullWidth,u=eh.limitAt(u,t.viewer.app.options.duration/3,t.viewer.duration)),i.index=0,n.index=1,t.isFlipping=!0,o&&(!s&&!a||s&&a)&&(t.element[0].style.opacity=0),!0===t.isHard?t.currentTween=new TWEEN.Tween(i).delay(0).to(n,t.viewer.app.options.duration).onUpdate(function(){t.updateTween(this)}).easing(t.flipEasing).onComplete(t.completeTween.bind(t)).start():null==e?t.currentTween=new TWEEN.Tween(i).delay(0).to(n,t.viewer.app.options.duration).onUpdate(function(){t.updateTween(this)}).easing(TWEEN.Easing.Sinusoidal.Out).onComplete(t.completeTween.bind(t)).start():t.currentTween=new TWEEN.Tween(i).delay(0).to(n,u).onUpdate(function(){t.updateTween(this)}).easing(TWEEN.Easing.Sinusoidal.Out).onComplete(t.completeTween.bind(t)).start()}}},{key:"updatePoint",value:function(e){if(null!=e){var t=this.element.width(),i=this.element.height(),n=this.viewer.corner!==p.TURN_CORNER.NONE?this.viewer.corner:e.corner,o=p.TURN_CORNER,s=this.side===p.TURN_DIRECTION.RIGHT,a=n===o.BL||n===o.BR;e.rx=!0===s?this.viewer.leftSheetWidth+t-e.x:e.x,e.ry=!0===a?i-e.y:e.y;var r=Math.atan2(e.ry,e.rx);r=Math.PI/2-eh.limitAt(r,0,eh.toRad(90));var l=t-e.rx/2,h=e.ry/2,u=Math.max(0,Math.sin(r-Math.atan2(h,l))*eh.distOrigin(l,h)),c=.5*eh.distOrigin(e.rx,e.ry),d=Math.ceil(t-u*Math.sin(r)),f=Math.ceil(u*Math.cos(r)),g=eh.toDeg(r),m=a?s?180+(90-g):180+g:s?g:90-g,v=a?s?180+(90-g):g:s?g+180:m,y=a?s?90-g:g+90:s?m-90:m+180,b=s?t-d:d,w=a?i+f:-f,P=s?-d:d-t,S=a?-i-f:f,E=eh.limitAt(.5*e.distance/t,0,.5),x=eh.limitAt((this.viewer.leftSheetWidth+t-e.rx)*.5/t,.05,.3);this.element.addClass("df-folding");var C=s?this.backPage.element:this.frontPage.element,T=s?this.frontPage.element:this.backPage.element,k=this.foldOuterShadow,O=this.foldInnerShadow;this.wrapper.css({transform:eh.translateStr(b,w)+eh.rotateStr(m)}),T.css({transform:eh.rotateStr(-m)+eh.translateStr(-b,-w)}),C.css({transform:eh.rotateStr(v)+eh.translateStr(P,S),boxShadow:"rgba(0, 0, 0, "+E+") 0px 0px 20px"}),O.css({transform:eh.rotateStr(v)+eh.translateStr(P,S),opacity:x/2,backgroundImage:eh.prefix.css+"linear-gradient("+y+"deg, rgba(0, 0, 0, 0.25) , rgb(0, 0, 0) "+.7*c+"px, rgb(255, 255, 255) "+c+"px)"}),k.css({opacity:x/2,left:s?"auto":0,right:s?0:"auto",backgroundImage:eh.prefix.css+"linear-gradient("+(-y+180)+"deg, rgba(0, 0, 0,0) "+c/3+"px, rgb(0, 0, 0) "+c+"px)"})}}},{key:"updateAngle",value:function(e,t){if(this.viewer.isVertical()){var i=5*this.element.height();this.wrapper.css({perspective:i,perspectiveOrigin:!0===t?"50% 0%":"50% 100%"}),this.element.addClass("df-folding"),this.backPage.updateCSS({display:!0===t?e<=-90?"block":"none":e<90?"block":"none",transform:("MfS"!==eh.prefix.dom?"":"perspective("+i+"px) ")+(!0===t?"translateY(-100%) ":"")+"rotateX("+((!0===t?180:0)-e)+"deg)"}),this.frontPage.updateCSS({display:!0===t?e>-90?"block":"none":e>=90?"block":"none",transform:("MSd"!==eh.prefix.dom?"":"perspective("+i+"px) ")+(!1===t?"translateY(100%) ":"")+"rotateX("+((!1===t?-180:0)-e)+"deg)"})}else{var n=5*this.element.width();this.wrapper.css({perspective:n,perspectiveOrigin:!0===t?"0% 50%":"100% 50%"}),this.element.addClass("df-folding"),this.backPage.updateCSS({display:!0===t?e<=-90?"block":"none":e<90?"block":"none",transform:("MfS"!==eh.prefix.dom?"":"perspective("+n+"px) ")+(!0===t?"translateX(-100%) ":"")+"rotateY("+((!0===t?180:0)+e)+"deg)"}),this.frontPage.updateCSS({display:!0===t?e>-90?"block":"none":e>=90?"block":"none",transform:("MSd"!==eh.prefix.dom?"":"perspective("+n+"px) ")+(!1===t?"translateX(100%) ":"")+"rotateY("+((!1===t?-180:0)+e)+"deg)"})}}},{key:"updateTween",value:function(e){var t=this.viewer.isBooklet,i=this.side===p.TURN_DIRECTION.RIGHT,n=this.viewer.isRTL,o=!0===this.animateToReset;!0===this.isHard?(this.updateAngle(e.angle,i),this.angle=e.angle):(this.updatePoint({x:e.x,y:e.y}),this.x=e.x,this.y=e.y),t&&!o&&(this.element[0].style.opacity=i&&!n||!i&&n?e.index>.5?2*(1-e.index):1:e.index<.5?2*e.index:1)}},{key:"completeTween",value:function(){!0===this.isHard?(this.updateAngle(this.end.angle),this.backPage.element.css({display:"block"}),this.frontPage.element.css({display:"block"})):this.updatePoint({x:this.end.x,y:this.end.y}),this.element[0].style.opacity=1,!0!==this.animateToReset&&(this.side=this.targetSide),this.reset(),this.viewer.onFlip(),this.viewer.afterFlip(),this.viewer.requestRefresh()}}]),i}($),ep=/*#__PURE__*/function(e){es(i,e);var t=er(i);function i(e,n){var o,s;return ee(this,i),e.viewerClass=null!==(s=e.viewerClass)&&void 0!==s?s:"df-flipbook-2d",e.skipViewerLoaded=!0,(o=t.call(this,e,n)).bookShadow=el("<div>",{class:"df-book-shadow"}),o.wrapper.append(o.bookShadow),o.corner=p.TURN_CORNER.NONE,n._viewerPrepared(),o}return ei(i,[{key:"init",value:function(){en(eo(i.prototype),"init",this).call(this),this.initEvents(),this.initPages()}},{key:"initEvents",value:function(){this.stageDOM=this.element[0],en(eo(i.prototype),"initEvents",this).call(this)}},{key:"dispose",value:function(){en(eo(i.prototype),"dispose",this).call(this),this.element.remove()}},{key:"initPages",value:function(){for(var e=0;e<this.stackCount;e++){var t=new eu({parentElement:this.wrapper});t.index=e,t.viewer=this,this.sheets.push(t),this.pages.push(t.frontPage),this.pages.push(t.backPage)}}},{key:"resize",value:function(){en(eo(i.prototype),"resize",this).call(this);var e=this.app.dimensions,t=e.padding,n=this.availablePageHeight(),o=this.availablePageWidth(),s=this.fullWidth=o*(this.app.viewer.pageMode===p.FLIPBOOK_PAGE_MODE.SINGLE||this.app.viewer.isVertical()?1:2),a=this.fullHeight=n*(this.app.viewer.isVertical()&&this.app.viewer.pageMode!==p.FLIPBOOK_PAGE_MODE.SINGLE?2:1),r=e.width,l=e.height,h=this.shiftHeight=Math.ceil(eh.limitAt((a-l+t.height)/2,0,a)),u=this.shiftWidth=Math.ceil(eh.limitAt((s-r+t.width)/2,0,s));1===this.app.zoomValue&&(this.left=0,this.top=0),this.element.css({top:-h,bottom:-h,right:-u,left:-u,paddingTop:t.top,paddingRight:t.right,paddingBottom:t.bottom,paddingLeft:t.left,transform:"translate3d("+this.left+"px,"+this.top+"px,0)"}),this.wrapper.css({marginTop:Math.max(e.height-a-t.height)/2,width:s-s%2,height:a}),this.zoomViewer.resize(),this.centerNeedsUpdate=!0,this.checkCenter(!0),this.pagesReady()}},{key:"updateCenter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.isVertical(),i=this.centerShift,n=(this.isRTL,this.isLeftPage()?this.leftSheetHeight:this.rightSheetHeight),o=this.isLeftPage()?this.leftSheetWidth:this.rightSheetWidth,s=t?0:i*o/2,a=t?i*n/2:0;this.wrapperShiftX=s,this.wrapperShiftY=a,this.seamPositionY=(this.app.dimensions.padding.heightDiff+this.app.dimensions.containerHeight)/2+a,this.seamPositionX=(-this.app.dimensions.offset.width+this.app.dimensions.containerWidth)/2+s,t?this.wrapper[0].style.top=this.wrapperShiftY+"px":this.wrapper[0].style.left=this.wrapperShiftX+"px",this.wrapper[0].style.transition=e?"none":"",this.zoomViewer.updateCenter()}},{key:"refreshSheet",value:function(e){var t=e.sheet,i=e.sheetNumber;!1===t.isFlipping&&(e.needsFlip?(t.element.addClass("df-flipping"),t.flip()):(t.skipFlip=!1,t.element.removeClass("df-flipping df-quick-turn df-folding df-left-side df-right-side"),t.element.addClass(t.targetSide===p.TURN_DIRECTION.LEFT?"df-left-side":"df-right-side"),t.side=t.targetSide,t.targetSide===p.TURN_DIRECTION.LEFT?this.isVertical()?t.updateSize(this.leftSheetWidth,this.leftSheetHeight,0,this.topSheetLeft):t.updateSize(this.leftSheetWidth,this.leftSheetHeight,this.leftSheetTop,0):this.isVertical()?t.updateSize(this.rightSheetWidth,this.rightSheetHeight,0,this.bottomSheetLeft):t.updateSize(this.rightSheetWidth,this.rightSheetHeight,this.rightSheetTop,0))),t.visible=e.visible,t.isHard?t.element.addClass("df-hard-sheet"):(t.element.removeClass("df-hard-sheet"),t.frontPage.updateCSS({display:"block"}),t.backPage.updateCSS({display:"block"})),t.updateCSS({display:!0===t.visible?"block":"none",zIndex:e.zIndex}),null==t.pendingPoint&&!1===t.isFlipping&&t.resetCSS(),i!==t.pageNumber&&(t.element.attr("number",i),t.backPage.element.attr("pagenumber",t.backPage.pageNumber),t.frontPage.element.attr("pagenumber",t.frontPage.pageNumber))}},{key:"eventToPoint",value:function(e){var t=this.isVertical();e=eh.fixMouseEvent(e);var i,n,o,s,a,r,l,h,u,c,d=this.wrapper[0].getBoundingClientRect(),f=this.is3D,g=this.sheets,m=(this.app.dimensions,{x:e.clientX,y:e.clientY}),v=this.parentElement[0].getBoundingClientRect();m.x=m.x-v.left,m.y=m.y-v.top,i=(c=this.dragSheet?this.dragSheet.side===p.TURN_DIRECTION.RIGHT:t?m.y>this.seamPositionY:m.x>this.seamPositionX)?this.rightSheetWidth:this.leftSheetWidth,s=c?this.rightSheetHeight:this.leftSheetHeight,n=t?i:this.rightSheetWidth+this.leftSheetWidth,o=t?this.leftSheetHeight+this.rightSheetHeight:s,r=c?this.rightSheetTop:this.leftSheetTop,a=t?m.x-(this.seamPositionX-(c?this.rightSheetWidth:this.leftSheetWidth)/2):m.x-(this.seamPositionX-this.leftSheetWidth),r=m.y-(d.top-v.top)-r,l=this.drag===p.TURN_DIRECTION.NONE?a<i?a:n-a:this.drag===p.TURN_DIRECTION.LEFT?a:n-a,h=c?g[this.stackCount/2]:g[this.stackCount/2-1],u=a<this.foldSense?p.TURN_DIRECTION.LEFT:a>n-this.foldSense?p.TURN_DIRECTION.RIGHT:p.TURN_DIRECTION.NONE;var y,b=r,w=this.foldSense;return y=a>=0&&a<w?b>=0&&b<=w?p.TURN_CORNER.TL:b>=o-w&&b<=o?p.TURN_CORNER.BL:b>w&&b<o-w?p.TURN_CORNER.L:p.TURN_CORNER.NONE:a>=n-w&&a<=n?b>=0&&b<=w?p.TURN_CORNER.TR:b>=o-w&&b<=o?p.TURN_CORNER.BR:b>w&&b<o-w?p.TURN_CORNER.R:p.TURN_CORNER.NONE:p.TURN_CORNER.NONE,{isInsideSheet:a>=0&&a<=n&&b>=0&&b<=o,isInsideCorner:y!==p.TURN_CORNER.NONE&&y!==p.TURN_CORNER.L&&y!==p.TURN_CORNER.R,x:f?m.x:a,y:f?m.y:r,fullWidth:n,sheetWidth:i,sheetHeight:s,rawDistance:n-a,distance:l,sheet:h,drag:u,foldSense:this.foldSense,event:e,raw:m,corner:y}}},{key:"pan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];eh.pan(this,e,t)}},{key:"mouseMove",value:function(e){var t=this.eventToPoint(e);if(null!=e.touches&&2==e.touches.length){this.pinchMove(e);return}1!==this.app.zoomValue&&null!=this.startPoint&&!0===this.canSwipe&&(this.pan(t),e.preventDefault());var i=this.dragSheet||t.sheet;if(null==this.flipPage&&(null!=this.dragSheet||!0===t.isInsideCorner)){null!=this.dragSheet||(t.y=eh.limitAt(t.y,1,this.availablePageHeight()-1),t.x=eh.limitAt(t.x,1,t.fullWidth-1));var n=null!=this.dragSheet?this.corner:t.corner;if(i.isHard){var o=n===p.TURN_CORNER.BR||n===p.TURN_CORNER.TR,s=eh.angleByDistance(t.distance,t.fullWidth);i.updateAngle(s*(o?-1:1),o)}else i.updatePoint(t);i.magnetic=!0,i.magneticCorner=t.corner,e.preventDefault()}null==this.dragSheet&&null!=i&&!1===t.isInsideCorner&&!0===i.magnetic&&(i.pendingPoint=t,i.animateToReset=!0,i.magnetic=!1,this.corner=i.magneticCorner,i.flip(i.pendingPoint),i.pendingPoint=null),this.checkSwipe(t,e)}},{key:"mouseUp",value:function(e){if(e.touches||0===e.button){if(null==this.dragSheet&&null!=e.touches&&0==e.touches.length){this.pinchUp(e);return}var t=this.eventToPoint(e),i=e.target||e.originalTarget,n=1===this.app.zoomValue&&t.x===this.startPoint.x&&t.y===this.startPoint.y&&"A"!==i.nodeName;if(!0===e.ctrlKey&&n)this.zoomOnPoint(t);else if(this.dragSheet){e.preventDefault();var o=this.dragSheet;if(o.pendingPoint=t,this.drag=t.drag,n&&(!0===t.isInsideCorner||t.isInsideSheet&&this.clickAction===p.MOUSE_CLICK_ACTIONS.NAV))t.corner.indexOf("l")>-1?this.app.openLeft():this.app.openRight();else{var s=this.getBasePage();t.distance>t.sheetWidth/2&&(t.sheet.side===p.TURN_DIRECTION.LEFT?this.app.openLeft():this.app.openRight()),s===this.getBasePage()&&(o.animateToReset=!0,o.flip(t))}this.dragSheet=null,o.magnetic=!1}else n&&!t.sheet.isFlipping&&t.isInsideSheet&&this.clickAction===p.MOUSE_CLICK_ACTIONS.NAV&&("left"===t.sheet.side?this.app.openLeft():this.app.openRight());this.startPoint=null,this.canSwipe=!1,this.drag=p.TURN_DIRECTION.NONE}}},{key:"mouseDown",value:function(e){if(e.touches||0===e.button){if(null!=e.touches&&2==e.touches.length){this.pinchDown(e);return}var t=this.eventToPoint(e);this.startPoint=t,this.lastPosX=t.x,this.lastPosY=t.y,t.isInsideCorner&&null==this.flipPage?(this.dragSheet=t.sheet,this.drag=t.drag,this.corner=t.corner,0===t.sheet.pageNumber?this.bookShadow.css({width:"50%",left:this.app.isRTL?0:"50%",transitionDelay:""}):t.sheet.pageNumber===Math.ceil(this.app.pageCount/2)-1&&this.bookShadow.css({width:"50%",left:this.app.isRTL?"50%":0,transitionDelay:""})):this.canSwipe=!0}}},{key:"onScroll",value:function(e){}},{key:"resetPageTween",value:function(){for(var e=0;e<this.stackCount;e++){var t=this.sheets[e];t.currentTween&&t.currentTween.complete(!0)}this.requestRefresh()}},{key:"pagesReady",value:function(){if(!this.isFlipping()){if(!1===this.app.options.flipbookFitPages){var e=this.app.viewer.getBasePage(),t=this.leftViewport=this.getViewPort(e+(this.isBooklet?0:this.isRTL?1:0)),i=this.rightViewPort=this.getViewPort(e+(this.isBooklet?0:this.isRTL?0:1));if(t){var n=eh.contain(t.width,t.height,this.availablePageWidth(),this.availablePageHeight());this.leftSheetWidth=Math.floor(n.width),this.leftSheetHeight=Math.floor(n.height),this.leftSheetTop=(this.availablePageHeight()-this.leftSheetHeight)/2,this.topSheetLeft=(this.app.viewer.availablePageWidth()-this.leftSheetWidth)/2}if(i){var o=eh.contain(i.width,i.height,this.availablePageWidth(),this.availablePageHeight());this.rightSheetWidth=Math.floor(o.width),this.rightSheetHeight=Math.floor(o.height),this.rightSheetTop=(this.availablePageHeight()-this.rightSheetHeight)/2,this.bottomSheetLeft=(this.app.viewer.availablePageWidth()-this.rightSheetWidth)/2}this.totalSheetsWidth=this.leftSheetWidth+this.rightSheetWidth;for(var s=0;s<this.sheets.length;s++){var a=this.sheets[s];a.side===p.TURN_DIRECTION.LEFT?this.isVertical()?a.updateSize(this.leftSheetWidth,this.leftSheetHeight,0,this.topSheetLeft):a.updateSize(this.leftSheetWidth,this.leftSheetHeight,this.leftSheetTop,0):this.isVertical()?a.updateSize(this.rightSheetWidth,this.rightSheetHeight,0,this.bottomSheetLeft):a.updateSize(this.rightSheetWidth,this.rightSheetHeight,this.rightSheetTop,0)}}this.updateCenter(),this.updatePendingStatusClass(),this.app.executeCallback("onPagesReady")}}},{key:"textureLoadedCallback",value:function(e){this.getPageByNumber(e.pageNumber),this.pagesReady()}},{key:"isSheetHard",value:function(e){return!!this.isVertical()||en(eo(i.prototype),"isSheetHard",this).call(this,e)}}]),i}(Q);function ec(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function ed(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ef(e,t,i){return t&&ed(e.prototype,t),i&&ed(e,i),e}function eg(e,t,i){return(eg="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=em(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(i||e):o.value}})(e,t,i||e)}function em(e){return(em=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ev(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ey(e,t)}function ey(e,t){return(ey=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function eb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var i,n=em(e);return i=t?Reflect.construct(n,arguments,em(this).constructor):n.apply(this,arguments),i&&("object"==(i&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)||"function"==typeof i)?i:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)}}var ew=p.jQuery,eP=p.utils,eS=/*#__PURE__*/function(e){ev(i,e);var t=eb(i);function i(){return ec(this,i),t.apply(this,arguments)}return ef(i,[{key:"init",value:function(){var e=this.element=ew("<div>",{class:"df-sheet"});(this.frontPage=new _).element.addClass("df-page-front").appendTo(this.element),(this.backPage=new _).element.addClass("df-page-back").appendTo(this.element),this.parentElement.append(e),this.frontPage.sheet=this.backPage.sheet=this}},{key:"completeTween",value:function(){this.isFlipping=!1,this.viewer.onFlip(),this.viewer.afterFlip(),this.viewer.requestRefresh(),this.element[0].style.opacity=1}},{key:"flip",value:function(e){this.side=this.targetSide,this.completeTween()}},{key:"updateSize",value:function(e,t,i,n){e=Math.floor(e),t=Math.floor(t),i=Math.floor(i),this.element[0].style.height=this.frontPage.element[0].style.height=t+"px",this.element[0].style.width=this.frontPage.element[0].style.width=e+"px",this.element[0].style.transform="translateX("+this.positionX+"px) translateY("+i+"px)"}}]),i}(eu),eE=/*#__PURE__*/function(e){ev(i,e);var t=eb(i);function i(e,n){var o;return ec(this,i),e.viewerClass="df-slider",e.pageMode=p.FLIPBOOK_PAGE_MODE.SINGLE,e.singlePageMode=p.FLIPBOOK_SINGLE_PAGE_MODE.BOOKLET,e.pageSize=p.FLIPBOOK_PAGE_SIZE.SINGLE,(o=t.call(this,e,n)).stackCount=10,o.soundOn=!1,o.foldSense=0,n._viewerPrepared(),o}return ef(i,[{key:"initPages",value:function(){for(var e=0;e<this.stackCount;e++){var t=new eS({parentElement:this.wrapper});t.index=e,t.viewer=this,this.sheets.push(t),this.pages.push(t.frontPage),this.pages.push(t.backPage)}}},{key:"resize",value:function(){eg(em(i.prototype),"resize",this).call(this),this.skipTransition=!0}},{key:"refreshSheet",value:function(e){var t=e.sheet,i=e.sheetNumber;t.element.toggleClass("df-no-transition",t.skipFlip||this.skipTransition),!1===t.isFlipping&&(e.needsFlip?t.flip():(t.skipFlip=!1,t.element.removeClass("df-flipping df-quick-turn df-folding df-left-side df-right-side"),t.element.addClass(t.targetSide===p.TURN_DIRECTION.LEFT?"df-left-side":"df-right-side"),t.side=t.targetSide)),t.visible=e.visible,t.updateCSS({display:e.sheetNumber>0&&e.sheetNumber<=this.app.pageCount?"block":"none",zIndex:e.zIndex}),i!==t.pageNumber&&(t.element.attr("number",i),t.backPage.element.attr("pagenumber",t.backPage.pageNumber),t.frontPage.element.attr("pagenumber",t.frontPage.pageNumber))}},{key:"refresh",value:function(){eg(em(i.prototype),"refresh",this).call(this),this.skipTransition=!1}},{key:"eventToPoint",value:function(e){var t=eg(em(i.prototype),"eventToPoint",this).call(this,e);return t.isInsideSheet=ew(e.srcElement).closest(".df-page").length>0,t.isInsideCorner=!1,t}},{key:"initCustomControls",value:function(){var e=this.app.ui.controls;e.pageMode&&e.pageMode.hide()}},{key:"setPageMode",value:function(e){e.isSingle=!0,eg(em(i.prototype),"setPageMode",this).call(this,e)}},{key:"pagesReady",value:function(){if(!this.isFlipping()){var e=0,t=0,i=this.app;this.stackCount;for(var n=[],o=i.currentPageNumber,s=0;s<this.stackCount/2;s++)n.push(o+s),n.push(o-s-1);for(var a=0;a<this.stackCount;a++){var r=n[a];if(this.getPageByNumber(r)){var l=this.getPageByNumber(r).sheet,h=this.getViewPort(l.pageNumber,!0),u=eP.contain(h.width,h.height,this.availablePageWidth(),this.availablePageHeight());i.currentPageNumber===l.pageNumber&&(this.leftSheetWidth=this.rightSheetWidth=Math.floor(u.width)),i.currentPageNumber>l.pageNumber?(e-=Math.floor(u.width)+10,l.positionX=e):(l.positionX=t,t+=Math.floor(u.width)+10);var p=(this.availablePageHeight()-u.height)/2;l.updateSize(Math.floor(u.width*i.zoomValue),Math.floor(u.height*i.zoomValue),p)}}this.updateCenter(),this.updatePendingStatusClass(),this.app.executeCallback("onPagesReady")}}},{key:"isVertical",value:function(){return!1}}]),i}(ep);function ex(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eC(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function eT(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ek(e,t,i){return t&&eT(e.prototype,t),i&&eT(e,i),e}function eO(e){return(eO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eR(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&eL(e,t)}function eL(e,t){return(eL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function eN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var i,n=eO(e);return i=t?Reflect.construct(n,arguments,eO(this).constructor):n.apply(this,arguments),i&&("object"==(i&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)||"function"==typeof i)?i:ex(this)}}var e_={};function eI(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eA(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function eM(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ez(e,t,i){return t&&eM(e.prototype,t),i&&eM(e,i),e}function eD(e,t,i){return(eD="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=eF(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(i||e):o.value}})(e,t,i||e)}function eF(e){return(eF=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eB(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&eH(e,t)}function eH(e,t){return(eH=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function eU(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var i,n=eF(e);return i=t?Reflect.construct(n,arguments,eF(this).constructor):n.apply(this,arguments),i&&("object"==(i&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i)||"function"==typeof i)?i:eI(this)}}e_.init=function(){if(!0!==e_.initialized){var e=window.THREE;e_={init:function(){},initialized:!0,GEOMETRY_TYPE:{PLANE:0,BOX:1,MODEL:2},MATERIAL_FACE:{FRONT:5,BACK:4},WHITE_COLOR:new e.Color("white"),defaults:{anisotropy:8,maxTextureSize:2048,groundTexture:"blank",color:16777215,shininess:15,width:210,height:297,depth:.2,segments:150,textureLoadFallback:"blank"},textureLoader:new e.TextureLoader,clearChild:function(e){var t,i=e.material;if(e.parent.remove(e),e=m.disposeObject(e),null!=i){if(null==i.length)i.map&&(t=i.map,i.dispose(),t.dispose()),i.bumpMap&&(t=i.bumpMap,i.dispose(),t.dispose()),i.normalMap&&(t=i.normalMap,i.dispose(),t.dispose());else for(var n=0;n<i.length;n++)i[n]&&(i[n].map&&(t=i[n].map,i[n].dispose(),t.dispose()),i[n].bumpMap&&(t=i[n].bumpMap,i[n].dispose(),t.dispose()),i[n].normalMap&&(t=i[n].normalMap,i[n].dispose(),t.dispose())),i[n]=null;i=null,t=null}},loadImage:function(t,i,n,o,s){if(null==i){var a=null==t.material[n]?null:t.material[n][o]?t.material[n][o].sourceFile:null;return null==a?null:a.indexOf("data:image")>-1?null:a}var r=null;return"CANVAS"===i.nodeName||"IMG"===i.nodeName?((r=new e.Texture(i)).needsUpdate=!0,e_.loadTexture(r,t,o,n),"function"==typeof s&&s(t,r)):"blank"!==i?(r=null==i?null:e_.textureLoader.load(i,function(e){e.sourceFile=i,e_.loadTexture(e,t,o,n),"function"==typeof s&&s(t,e)},void 0,function(){null==r.image&&e_.loadImage(t,e_.defaults.textureLoadFallback,n,o),e_.loadTextureFailed()}))&&(r.mapping=e.UVMapping):(e_.loadTexture(null,t,o,n),"function"==typeof s&&s(t,r)),0},loadTexture:function(t,i,n,o){if(t){var s=t.image;t.naturalWidth=s.naturalWidth,t.naturalHeight=s.naturalHeight,t.needsUpdate=!0,void 0!=i.textureRotation&&(t.rotation=e.MathUtils.degToRad(i.textureRotation),t.center=i.textureCenter)}null!==t&&"map"===n&&(t.anisotropy=0,e_.defaults.anisotropy>0&&(t.anisotropy=e_.defaults.anisotropy),!0===e.skipPowerOfTwo&&(t.minFilter=e.LinearFilter,t.magFilter=e.LinearFilter),t.name=new Date().toTimeString()),e_.clearTexture(i.material[o][n]),i.material[o][n]=t,"bumpMap"===n&&(i.material[o].bumpScale=i.sheet.getBumpScale(o)),i.material[o].needsUpdate=!0},loadTextureFailed:function(){return null},clearTexture:function(e){if(e){if(e.image&&"CANVAS"===e.image.nodeName){if(e.image.remove)try{e.image.remove()}catch(e){console.log(e)}delete e.image}e=m.disposeObject(e)}}},e.skipPowerOfTwo=!0;var t=/*#__PURE__*/function(t){eR(n,t);var i=eN(n);function n(t){eC(this,n);var o,s=t.width||e_.defaults.width,a=t.height||e_.defaults.height,r=t.color||e_.defaults.color,l=t.segments||e_.defaults.segments,h=t.depth||e_.defaults.depth,u={color:r,flatShading:!1,shininess:t.shininess||e_.defaults.shininess},p=new e.MeshPhongMaterial(u),c=[p,p,p,p,new e.MeshPhongMaterial(u),new e.MeshPhongMaterial(u)];return(o=i.call(this,new e.BoxGeometry(s,a,h,l,1,1),c)).material[5].transparent=!0,o.material[4].transparent=!0,o.baseType="Paper",o.type="Paper",o.castShadow=!0,o.receiveShadow=!0,t.parent3D.add(ex(o)),o}return ek(n,[{key:"loadImage",value:function(e,t,i){e_.loadImage(this,e,t,"map",i)}},{key:"frontImage",value:function(e,t){e_.loadImage(this,e,e_.MATERIAL_FACE.FRONT,"map",t)}},{key:"backImage",value:function(e,t){e_.loadImage(this,e,e_.MATERIAL_FACE.BACK,"map",t)}},{key:"loadBump",value:function(e){e_.loadImage(this,e,e_.MATERIAL_FACE.FRONT,"bumpMap",null),e_.loadImage(this,e,e_.MATERIAL_FACE.BACK,"bumpMap",null)}},{key:"loadNormalMap",value:function(e,t){if(void 0!==t){e_.loadImage(this,e,t,"normalMap",null);return}e_.loadImage(this,e,e_.MATERIAL_FACE.FRONT,"normalMap",null),e_.loadImage(this,e,e_.MATERIAL_FACE.BACK,"normalMap",null)}}]),n}(e.Mesh),i=/*#__PURE__*/function(e){eR(i,e);var t=eN(i);function i(e){var n;return eC(this,i),(n=t.call(this,e)).receiveShadow=!0,n.frontImage(e_.defaults.groundTexture),n.backImage(e_.defaults.groundTexture),n.type="Ground",n}return i}(t),n=/*#__PURE__*/function(t){eR(o,t);var n=eN(o);function o(t){eC(this,o);var s,a=ex(s=n.call(this));a.canvas=t.canvas||document.createElement("canvas"),a.canvas=s.canvas,a.camera=new e.PerspectiveCamera(20,a.width/a.height,4,5e4),a.renderer=new e.WebGLRenderer({canvas:a.canvas,antialias:!0,alpha:!0}),a.renderer.setPixelRatio(t.pixelRatio),a.renderer.setSize(a.width,a.height),a.renderer.setClearColor(16777215,0),a.renderer.shadowMap.enabled=!0,a.renderer.shadowMap.type=1,a.ground=new i({color:16777215,height:a.camera.far/10,width:a.camera.far/10,segments:2,parent3D:a}),a.ambientLight=new e.AmbientLight(4473924),a.add(a.ambientLight);var r=a.spotLight=new e.DirectionalLight(16777215,.25);return r.position.set(0,1,0),!1!==t.castShadow&&(r.castShadow=!0,r.shadow.camera.near=200,r.shadow.camera.far=2e3,r.shadow.camera.top=1350,r.shadow.camera.bottom=-1350,r.shadow.camera.left=-1350,r.shadow.camera.right=1350,r.shadow.radius=2,r.shadow.mapSize.width=1024,r.shadow.mapSize.height=1024,r.shadow.needsUpdate=!0),a.add(r),a.animateCount=0,a.renderCount=0,a.camera.position.set(-300,300,300),a.camera.lookAt(new e.Vector3(0,0,0)),s}return ek(o,[{key:"resizeCanvas",value:function(e,t){this.renderer.setSize(e,t),this.camera.aspect=e/t,this.camera.updateProjectionMatrix()}},{key:"render",value:function(){this.animateCount++,this.renderer.render(this,this.camera),null!=this.stats&&this.stats.update()}},{key:"clearMaterials",value:function(){for(var e=this.children.length,t=e-1;t>=0;t--){var i=this.children[t];if(i.baseType&&"Paper"===i.baseType&&i.material){if(i.material.length)for(var n=0;n<i.material.length;n++)i.material[n].needsUpdate=!0;else i.material.needsUpdate=!0}}}},{key:"clearChild",value:function(){this.spotLight.shadow.map=m.disposeObject(this.spotLight.shadow.map),this.spotLight.castShadow=!1,this.clearMaterials();for(var e=this.children.length,t=e-1;t>=0;t--){var i=this.children[t];if(i.children&&i.children.length>0)for(var n=i.children.length-1;n>=0;n--)e_.clearChild(i.children[n]);e_.clearChild(i),i=null}this.render()}}]),o}(e.Scene);e_.Paper=t,e_.Stage=n;var o=/*#__PURE__*/function(e){eR(i,e);var t=eN(i);function i(e){var n;return eC(this,i),(n=t.call(this)).element=e,n.element.style.position="absolute",n.addEventListener("removed",function(){null!==this.element.parentNode&&this.element.parentNode.removeChild(this.element)}),n}return i}(e.Object3D);e.CSS3DObject=o;var s=/*#__PURE__*/function(e){eR(i,e);var t=eN(i);function i(e){return eC(this,i),t.call(this,e)}return i}(e.CSS3DObject);e.CSS3DSprite=s,e.MathUtils&&(e.Math=e.MathUtils),e.CSS3DRenderer=function(){m.log("THREE.CSS3DRenderer",e.REVISION);var t,i,n,o,s=new e.Matrix4,a={camera:{fov:0,style:""},objects:{}},r=document.createElement("div");r.style.overflow="hidden",r.style.WebkitTransformStyle="preserve-3d",r.style.MozTransformStyle="preserve-3d",r.style.oTransformStyle="preserve-3d",r.style.transformStyle="preserve-3d",this.domElement=r;var l=document.createElement("div");l.style.WebkitTransformStyle="preserve-3d",l.style.MozTransformStyle="preserve-3d",l.style.oTransformStyle="preserve-3d",l.style.transformStyle="preserve-3d",r.appendChild(l),this.setClearColor=function(){},this.getSize=function(){return{width:t,height:i}},this.setSize=function(e,s){t=e,i=s,n=t/2,o=i/2,r.style.width=e+"px",r.style.height=s+"px",l.style.width=e+"px",l.style.height=s+"px"};var h=function(e){return Math.abs(e)<Number.EPSILON?0:e},u=function(e){var t=e.elements;return"matrix3d("+h(t[0])+","+h(-t[1])+","+h(t[2])+","+h(t[3])+","+h(t[4])+","+h(-t[5])+","+h(t[6])+","+h(t[7])+","+h(t[8])+","+h(-t[9])+","+h(t[10])+","+h(t[11])+","+h(t[12])+","+h(-t[13])+","+h(t[14])+","+h(t[15])+")"},p=function(e){var t=e.elements;return"translate3d(-50%,-50%,0) matrix3d("+h(t[0])+","+h(t[1])+","+h(t[2])+","+h(t[3])+","+h(-t[4])+","+h(-t[5])+","+h(-t[6])+","+h(-t[7])+","+h(t[8])+","+h(t[9])+","+h(t[10])+","+h(t[11])+","+h(t[12])+","+h(t[13])+","+h(t[14])+","+h(t[15])+")"},c=function(t,i){if(t instanceof e.CSS3DObject){t instanceof e.CSS3DSprite?(s.copy(i.matrixWorldInverse),s.transpose(),s.copyPosition(t.matrixWorld),s.scale(t.scale),s.elements[3]=0,s.elements[7]=0,s.elements[11]=0,s.elements[15]=1,n=p(s)):n=p(t.matrixWorld);var n,o=t.element,r=a.objects[t.id];(void 0===r||r!==n)&&(o.style.WebkitTransform=n,o.style.MozTransform=n,o.style.oTransform=n,o.style.transform=n,a.objects[t.id]=n),o.parentNode!==l&&l.appendChild(o)}for(var h=0,u=t.children.length;h<u;h++)c(t.children[h],i)};this.render=function(t,s){var h=.5/Math.tan(e.Math.degToRad(.5*s.fov))*i;a.camera.fov!==h&&(r.style.WebkitPerspective=h+"px",r.style.MozPerspective=h+"px",r.style.oPerspective=h+"px",r.style.perspective=h+"px",a.camera.fov=h),t.updateMatrixWorld(),null===s.parent&&s.updateMatrixWorld(),s.matrixWorldInverse.invert?s.matrixWorldInverse.copy(s.matrixWorld).invert():s.matrixWorldInverse.getInverse(s.matrixWorld);var p="translate3d(0,0,"+h+"px)"+u(s.matrixWorldInverse)+" translate3d("+n+"px,"+o+"px, 0)";a.camera.style!==p&&(l.style.WebkitTransform=p,l.style.MozTransform=p,l.style.oTransform=p,l.style.transform=p,a.camera.style=p),c(t,s)}}}};var eV=p.jQuery,eW=p.utils,ej=/*#__PURE__*/function(e){eB(i,e);var t=eU(i);function i(e){var n;return eA(this,i),(n=t.call(this,e)).flexibility=e.flexibility,n.sheetAngle=180,n.curveAngle=0,n.parent3D=e.parent3D,n.segments=e.segments||50,n.width=e.width||100,n.height=e.height||100,n.depth=e.depth||.5,n.matColor="white",n.fallbackMatColor=e_.WHITE_COLOR,n.init(),n.bumpScale=[0,0,0,0,1,1],n}return ez(i,[{key:"init",value:function(){this.element=new e_.Paper({parent3D:this.parent3D,segments:this.segments,depth:this.depth,height:this.height,width:this.width,flatShading:0===this.flexibility}),this.element.sheet=this,this.frontPage=new eG({sheet:this,face:5}),this.backPage=new eG({sheet:this,face:4}),this.reset(),this.updateAngle()}},{key:"setMatColor",value:function(e,t){if(this.matColor=new THREE.Color(e),void 0===t)for(var i=0;i<6;i++)this.element.material[i].color=this.matColor;else this.element.material[t].color=this.matColor}},{key:"getBumpScale",value:function(e){return this.bumpScale[e]}},{key:"resetMatColor",value:function(e,t){this.element.material[e].color=t?this.matColor:this.fallbackMatColor}},{key:"frontImage",value:function(e,t){this.element.frontImage(e,t)}},{key:"backImage",value:function(e,t){this.element.backImage(e,t)}},{key:"updateAngle",value:function(){if(void 0!==this.viewer&&null!==this.viewer){var e=!0===this.isHard?0:this.flexibility,t=(this.viewer.isVertical()?this.height:this.width)*(1-Math.sin(e/2*(e/2))/2-e/20);this.element.scale.y=(this.viewer.isVertical()?this.width:this.height)/this.element.geometry.parameters.height;var i=this.segments,n=t/1,o=n*e,s=[],a=[],r=[],l=[],h=[],u=[],p=this.depth,c=0,d=[];d.push(c),h[0]=[],u[0]=[];var f=this.sheetAngle*Math.PI/180;this.viewer.isVertical()||(this.element.position.x=-Math.cos(f)*this.viewer.pageOffset),this.viewer.isVertical()&&(this.element.position.y=Math.cos(f)*this.viewer.pageOffset);var g=!0===this.isHard?f:this.curveAngle*Math.PI/180,m=this.sheetAngle*Math.PI/180,v=m-Math.PI/2,y=Math.sin(v)*p/2;h[0][0]=h[0][1]=new THREE.Vector3(-n*Math.cos(f),0,Math.sin(f)*n-y),u[0][0]=u[0][1]=new THREE.Vector3(h[0][0].x-Math.cos(v)*p,0,h[0][0].z+2*y),h[0][1]=new THREE.Vector3(-n/2*Math.cos(g),0,n/2*Math.sin(g)-y),u[0][1]=new THREE.Vector3(h[0][1].x-Math.cos(v)*p,0,h[0][1].z+2*y),m=(45+this.sheetAngle/2)*Math.PI/180,h[0][2]=new THREE.Vector3(-Math.cos(m)*o/2,0,Math.sin(m)*o-y),u[0][2]=new THREE.Vector3(h[0][2].x+Math.cos(v)*p,0,h[0][2].z+2*y),5e-4>Math.abs(u[0][2].x-0)&&(u[0][2].x=0),h[0][3]=new THREE.Vector3(0,0,-y),u[0][3]=new THREE.Vector3(h[0][3].x-Math.cos(v)*p,0,h[0][3].z+2*y),5e-4>Math.abs(u[0][3].x-0)&&(u[0][3].x=0);for(var b=0;b<1;b++){var w=Math.max(this.segments-1,1);s[b]=new THREE.CubicBezierCurve3(h[b][0],h[b][1],h[b][2],h[b][3]),r[b]=s[b].getPoints(w),w>2&&r[b].push(new THREE.Vector3().copy(r[b][w]));for(var P=void 0,S=r[b][0],E=1;E<r[b].length;E++)c+=(P=r[b][E]).distanceTo(S),d.push(c),S=P;a[b]=new THREE.CubicBezierCurve3(u[b][0],u[b][1],u[b][2],u[b][3]),l[b]=a[b].getPoints(w),w>2&&l[b].push(new THREE.Vector3().copy(l[b][w]))}var x=this.element.geometry;if(void 0!==x.attributes){var C=x.attributes.position,T=x.attributes.uv,k=i+1;C.setZ(0,r[0][i].z),C.setZ(2,r[0][i].z),C.setX(0,r[0][i].x),C.setX(2,r[0][i].x),C.setZ(1,l[0][i].z),C.setZ(3,l[0][i].z),C.setX(1,l[0][i].x),C.setX(3,l[0][i].x),C.setZ(5,r[0][0].z),C.setZ(7,r[0][0].z),C.setX(5,r[0][0].x),C.setX(7,r[0][0].x),C.setZ(4,l[0][0].z),C.setZ(6,l[0][0].z),C.setX(4,l[0][0].x),C.setX(6,l[0][0].x);for(var O=0;O<1;O++)for(var R=0;R<k;R++)C.setZ(8+0*k+R,r[0][R].z),C.setX(8+0*k+R,r[0][R].x),C.setZ(8+1*k+R,l[0][R].z),C.setX(8+1*k+R,l[0][R].x),C.setZ(8+2*k+R,r[0][R].z),C.setX(8+2*k+R,r[0][R].x),C.setZ(8+3*k+R,l[0][R].z),C.setX(8+3*k+R,l[0][R].x),C.setZ(8+4*k+R,r[0][R].z),C.setX(8+4*k+R,r[0][R].x),C.setZ(8+5*k+R,r[0][R].z),C.setX(8+5*k+R,r[0][R].x),T.setX(8+4*k+R,d[R]/c),T.setX(8+5*k+R,d[R]/c),C.setZ(8+6*k+R,l[0][i-R].z),C.setX(8+6*k+R,l[0][i-R].x),C.setZ(8+7*k+R,l[0][i-R].z),C.setX(8+7*k+R,l[0][i-R].x),T.setX(8+6*k+R,1-d[i-R]/c),T.setX(8+7*k+R,1-d[i-R]/c);x.computeBoundingBox(),this.element.scale.x=1*n/c,x.computeBoundingSphere(),C.needsUpdate=!0,T.needsUpdate=!0,x.computeVertexNormals()}else{var L=x.vertices,N=i-1,_=8;L[0].z=L[2].z=r[0][i].z,L[0].x=L[2].x=r[0][i].x,L[1].z=L[3].z=l[0][i].z,L[1].x=L[3].x=l[0][i].x,L[5].z=L[7].z=r[0][0].z,L[5].x=L[7].x=r[0][0].x,L[4].z=L[6].z=l[0][0].z,L[4].x=L[6].x=l[0][0].x;for(var I=0;I<1;I++)for(var A=1;A<i;A++)L[_].z=L[_+3*N].z=l[0][A].z,L[_].x=L[_+3*N].x=l[0][A].x,L[_+N].z=L[_+2*N].z=r[0][A].z,L[_+N].x=L[_+2*N].x=r[0][A].x,_++;for(var M=x.faceVertexUvs[0],z=x.faces,D=0,F=0;F<M.length;F++)if(z[F].materialIndex===e_.MATERIAL_FACE.BACK){var B=d[D]/c;F%2==0?(M[F][0].x=M[F][1].x=M[F+1][0].x=B,D++):M[F-1][2].x=M[F][1].x=M[F][2].x=B}else if(z[F].materialIndex===e_.MATERIAL_FACE.FRONT){var H=1-d[D]/c;F%2==0?(M[F][0].x=M[F][1].x=M[F+1][0].x=H,D--):M[F-1][2].x=M[F][1].x=M[F][2].x=H}x.computeBoundingBox(),this.element.scale.x=1*n/c,x.computeBoundingSphere(),x.verticesNeedUpdate=!0,x.computeFaceNormals(),x.computeVertexNormals(),x.uvsNeedUpdate=!0,x.normalsNeedUpdate=!0}s.forEach(function(e){}),a.forEach(function(e){}),l.forEach(function(e){}),r.forEach(function(e){})}}},{key:"flip",value:function(e,t){var i=this,n=i.viewer.isBooklet;!0===i.isCover&&(0===e&&(e=2.5*i.viewer.flexibility),180===e&&(e-=2.5*i.viewer.flexibility));var o=t-e,s=e>90,a=i.viewer.isRTL,r=s?i.backPage.pageNumber:i.frontPage.pageNumber,l=this.viewer.getViewPort(r);l&&(l=eW.contain(l.width,l.height,i.viewer.availablePageWidth(),i.viewer.availablePageHeight()));var h=-(i.viewer.has3DCover&&i.viewer.isClosedPage()?i.viewer.coverExtraWidth:0),u=-(i.viewer.has3DCover&&i.viewer.isClosedPage()?i.viewer.coverExtraHeight:0);i.init={angle:e,height:s?i.viewer.rightSheetHeight:i.viewer.leftSheetHeight,width:s?i.viewer.rightSheetWidth:i.viewer.leftSheetWidth,index:s&&!a||!s&&a?1:0,_index:0},i.first={angle:e+o/4,index:s&&!a||!s&&a?1:.25},i.mid={angle:e+2*o/4,index:.5},i.mid2={angle:e+3*o/4,index:s&&!a||!s&&a?.25:1},i.end={angle:t,index:s&&!a||!s&&a?0:1,height:u+(l?l.height:i.height),width:h+(l?l.width:i.width)},i.isFlipping=!0;var p=function(e){i.sheetAngle=e.angle,i.curveAngle=i.isHard?e.angle:eW.getCurveAngle(s,e.angle),!0===i.isHard?(i.flexibility=0,i.isCover&&i.viewer.flipCover(i)):i.flexibility=e.angle<90?i.leftFlexibility:i.rightFlexibility,i.element.position.z=(e.angle<90?i.leftPos:i.rightPos)+i.depth,n&&(i.element.material[5].opacity=i.element.material[4].opacity=e.index,i.element.castShadow=e.index>.5),i.height=e.height,i.width=e.width,i.updateAngle(!0)};n&&(!s&&!a||s&&a)&&(i.element.material[5].opacity=i.element.material[4].opacity=0,i.element.castShadow=!1),i.currentTween=new TWEEN.Tween(i.init).to({angle:[i.first.angle,i.mid.angle,i.mid2.angle,i.end.angle],index:[i.first.index,i.mid.index,i.mid2.index,i.end.index],_index:1,height:i.end.height,width:i.end.width},i.viewer.app.options.duration*Math.abs(o)/180).onUpdate(function(e){p(this,e)}).easing(TWEEN.Easing.Sinusoidal.Out).onStop(function(){i.currentTween=null,i.isFlipping=!1,i.isCover&&(i.viewer.leftCover.isFlipping=!1,i.viewer.rightCover.isFlipping=!1),i.element.material[5].opacity=i.element.material[4].opacity=1}).onComplete(function(){i.updateAngle(),i.element.material[5].opacity=i.element.material[4].opacity=1,i.element.castShadow=!0,i.isFlipping=!1,i.isCover&&(i.viewer.leftCover.isFlipping=!1,i.viewer.rightCover.isFlipping=!1),i.side=i.targetSide,i.viewer.onFlip(),i.viewer.afterFlip(),i.currentTween=null,i.viewer&&i.viewer.requestRefresh&&i.viewer.requestRefresh()}).start(),i.currentTween.update(window.performance.now())}}]),i}($),eq=/*#__PURE__*/function(e){eB(i,e);var t=eU(i);function i(e,n){var o,s,a,r,l;return eA(this,i),e.viewerClass="df-flipbook-3d",(o=t.call(this,e,n)).pageOffset=5,o.spiralCount=20,o.groundDistance=null!==(s=e.groundDistance)&&void 0!==s?s:2,o.hasSpiral="true"===e.hasSpiral||!0===e.hasSpiral,o.flexibility=eW.limitAt(null!==(a=e.flexibility)&&void 0!==a?a:.9,0,10),o.hasSpiral&&(o.flexibility=0),0===o.flexibility&&(e.sheetSegments=8),o.drag3D=eW.isTrue(e.drag3D),o.texturePowerOfTwo=!eW.isMobile&&(null===(r=e.texturePowerOfTwo)||void 0===r||r),o.color3DSheets=null!==(l=o.app.options.color3DSheets)&&void 0!==l?l:"white",o.midPosition=0,o.initMOCKUP(function(){n._viewerPrepared()}),o}return ez(i,[{key:"initMOCKUP",value:function(e){var t=this.app;"undefined"==typeof THREE?(t.updateInfo(t.options.text.loading+" WEBGL 3D ..."),"function"==typeof window.define&&window.define.amd&&window.requirejs?(window.requirejs.config({paths:{three:t.options.threejsSrc.replace(".js","")},shim:{three:{exports:"THREE"}}}),window.require(["three"],function(t){return window.THREE=t,e_.init(),"function"==typeof e&&e(),t})):"function"==typeof window.define&&window.define.amd?window.require(["three",t.options.threejsSrc.replace(".js","")],function(t){t(function(){e_.init(),"function"==typeof e&&e()})}):eW.getScript(t.options.threejsSrc+"?ver="+p.version,function(){e_.init(),"function"==typeof e&&e()},function(){t.updateInfo("Unable to load THREE.js...")})):(e_.init(),"function"==typeof e&&e())}},{key:"init",value:function(){var e=this.app;eD(eF(i.prototype),"init",this).call(this),e.provider.defaultPage.pageRatio,this.pageScaleX=1,this.initDepth(),this.initStage(),this.initPages(),this.initEvents(),this.render()}},{key:"updatePageMode",value:function(){eD(eF(i.prototype),"updatePageMode",this).call(this);var e=this.app;this.has3DCover=e.options.cover3DType!==p.FLIPBOOK_COVER_TYPE.NONE&&e.pageCount>7&&!this.isBooklet,this.has3DCover&&"none"===e.options.flipbookHardPages&&(e.options.flipbookHardPages="cover")}},{key:"initDepth",value:function(){var e,t;this.sheetDepth=this.pageScaleX*(null!==(e=this.app.options.sheetDepth)&&void 0!==e?e:.5),this.sheetSegments=null!==(t=this.app.options.sheetSegments)&&void 0!==t?t:20,this.coverDepth=2*this.sheetDepth,this.sheetsDepth=Math.min(10,this.app.pageCount/4)*this.sheetDepth}},{key:"initStage",value:function(){var e=this.stage=new e_.Stage({pixelRatio:this.app.options.pixelRatio});(e.canvas=eV(e.renderer.domElement).addClass("df-3dcanvas")).appendTo(this.element),e.camera.position.set(0,0,600),e.camera.lookAt(new THREE.Vector3(0,0,0)),this.camera=e.camera,e.spotLight.position.set(-220,220,550),e.spotLight.castShadow=!eW.isMobile&&this.app.options.has3DShadow,e.spotLight.shadow&&(e.spotLight.shadow.bias=-.005),e.ambientLight.color=new THREE.Color("#fff"),e.ambientLight.intensity=.82;var t=new THREE.ShadowMaterial;t.opacity=this.app.options.shadowOpacity,e.ground.oldMaterial=e.ground.material,e.ground.material=t,e.ground.position.z=this.has3DCover?-6:-4,e.selectiveRendering=!0;var i=e.cssRenderer=new THREE.CSS3DRenderer;eV(i.domElement).css({position:"absolute",top:0,pointerEvents:"none"}).addClass("df-3dcanvas df-csscanvas"),this.element[0].appendChild(i.domElement),e.cssScene=new THREE.Scene,this.wrapper.remove(),this.wrapper=new THREE.Group,this.stage.add(this.wrapper),this.wrapper.add(e.ground),this.bookWrapper=new THREE.Group,this.bookWrapper.name="bookwrapper",this.wrapper.add(this.bookWrapper),this.bookHelper=e.bookHelper=new THREE.BoxHelper(this.bookWrapper,16776960),e.add(this.bookHelper),this.bookHelper.visible=!1,this.cameraWrapper=new THREE.Group,this.cameraWrapper.add(e.camera),e.add(this.cameraWrapper),this.app.renderRequestStatus=p.REQUEST_STATUS.ON}},{key:"initPages",value:function(){for(var e={parent3D:this.bookWrapper,viewer:this,segments:this.sheetSegments,depth:this.sheetDepth,flexibility:this.flexibility},t=0;t<this.stackCount;t++){var i=new ej(e);i.index=t,i.viewer=this,this.sheets.push(i),i.setMatColor(this.color3DSheets),this.pages.push(i.frontPage),this.pages.push(i.backPage),this.stage.cssScene.add(i.frontPage.cssPage),this.stage.cssScene.add(i.backPage.cssPage)}e.depth=this.sheetsDepth,e.segments=1,e.flexibility=0,this.leftSheets=new ej(e),this.rightSheets=new ej(e),this.leftSheets.setMatColor(this.color3DSheets),this.rightSheets.setMatColor(this.color3DSheets),e.depth=this.coverDepth,this.leftCover=new ej(e),this.rightCover=new ej(e),this.leftCover.isHard=!0,this.rightCover.isHard=!0,this.set3DCoverNormal(),this.setcolor3DCover(this.app.options.color3DCover),this.stage.cssScene.add(this.leftCover.frontPage.cssPage),this.stage.cssScene.add(this.rightCover.backPage.cssPage),this.zoomViewer.leftPage.element.css({backgroundColor:this.color3DSheets}),this.zoomViewer.rightPage.element.css({backgroundColor:this.color3DSheets}),this.isVertical()&&this.bookWrapper.children.forEach(function(e){e.rotateZ(THREE.MathUtils.degToRad(-90)),e.textureCenter=new THREE.Vector2(.5,.5),e.textureRotation=90}),this.initSpiral()}},{key:"initSpiral",value:function(){this.hasSpiral=!1}},{key:"set3DCoverNormal",value:function(){}},{key:"setcolor3DCover",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]}},{key:"initEvents",value:function(){this.stageDOM=this.element[0],eD(eF(i.prototype),"initEvents",this).call(this)}},{key:"dispose",value:function(){eD(eF(i.prototype),"dispose",this).call(this),this.stage&&(this.stage.clearChild(),this.stage.cssRenderer.domElement.parentNode.removeChild(this.stage.cssRenderer.domElement),this.stage.cssRenderer=null,this.stage.orbitControl=eW.disposeObject(this.stage.orbitControl),this.stage.renderer=eW.disposeObject(this.stage.renderer),eV(this.stage.canvas).remove(),this.stage.canvas=null,this.stage=eW.disposeObject(this.stage)),this.centerTween&&this.centerTween.stop&&this.centerTween.stop()}},{key:"render",value:function(){this.stage.render(),this.stage.cssRenderer.render(this.stage.cssScene,this.stage.camera)}},{key:"resize",value:function(){eD(eF(i.prototype),"resize",this).call(this);var e=this,t=e.app,n=e.stage,o=t.dimensions;o.padding,e.isSingle;var s=this.availablePageWidth(),a=this.availablePageHeight();n.resizeCanvas(o.stage.width,o.stage.height),n.cssRenderer.setSize(o.stage.width,o.stage.height),this.pageScaleX=Math.max(Math.max(s,a)/400,1),this.initDepth(),this.sheets.forEach(function(t){t.depth=e.sheetDepth}),t.refreshRequestStart();var r=this.refSize=Math.min(a,s);this.coverExtraWidth=(e.isVertical()?2:1)*r*.025,this.coverExtraHeight=(e.isVertical()?1:2)*r*.025,!0!==this.has3DCover&&(this.coverExtraWidth=0,this.coverExtraHeight=0),e.zoomViewer.resize(),e.cameraPositionDirty=!0,e.centerNeedsUpdate=!0,e.checkCenter(!0),e.pagesReady(),this.pageOffset=(this.hasSpiral?6:0)*Math.min(this._defaultPageSize.width,this._defaultPageSize.height)/1e3}},{key:"fitCameraToCenteredObject",value:function(e,t,i,n){var o=new THREE.Box3;o.setFromObject(t),new THREE.Vector3;var s=new THREE.Vector3;o.getSize(s);var a=this.coverExtraHeight,r=2*this.coverExtraWidth;this.isClosedPage()&&(r=0,a=0),s.x=s.x-r+this.app.dimensions.padding.width,s.y=s.y-a+this.app.dimensions.padding.height;var l=e.fov*(Math.PI/180),h=2*Math.atan(Math.tan(l/2)*e.aspect),u=Math.max(s.z/2+Math.abs(s.x/2/Math.tan(h/2)),s.z/2+Math.abs(s.y/2/Math.tan(l/2)));void 0!==i&&0!==i&&(u*=i),e.position.set(0,0,u);var p=o.min.z,c=p<0?-p+u:u-p;e.far=3*c,e.updateProjectionMatrix(),void 0!==n&&(n.target=new THREE.Vector3(0,0,0),n.maxDistance=2*c)}},{key:"updateShadowSize",value:function(){}},{key:"refresh",value:function(){var e=this.app,t=this.getBasePage();this.refreshRequested=!0;var n=1/e.pageCount*t,o=this.isRTL?1-n:n,s=Math.min(this.stackCount,this.totalSheets),a=eW.limitAt(this.totalSheets,this.stackCount,2*this.stackCount),r=this.isBooklet?0:this.flexibility/a;this.leftFlexibility=r*(1-o),this.rightFlexibility=r*o,this.midPosition=.5*s*this.sheetDepth,eD(eF(i.prototype),"refresh",this).call(this);var l=!0===this.has3DCover;this.leftCover.element.visible=this.rightCover.element.visible=this.leftSheets.element.visible=this.rightSheets.element.visible=l,this.wrapper.position.z=-this.midPosition;var h=0,u=0,p=this.isRTL,c=this.isFirstPage(),d=this.isLastPage(),f=this.isLeftClosed=this.isClosedPage()&&(p&&d||!p&&c),g=this.isRightClosed=this.isClosedPage()&&(!p&&d||p&&c);if(l){this.leftSheets.depth=p?this.sheetsDepth*(1-this.getBasePage()/e.pageCount):this.sheetsDepth*t/e.pageCount,this.leftSheets.element.visible=p?e.pageCount-this.getBasePage()>2:t>2,h-=this.leftSheets.depth/2,this.leftSheets.element.position.z=h,h-=this.coverDepth+(this.leftSheets.element.visible?this.leftSheets.depth/2:0)+3*this.coverDepth,this.leftCover.depth=this.rightCover.depth=this.coverDepth;var m=Math.max(this.leftSheetHeight,this.rightSheetHeight);g&&(m=this.leftSheetHeight),f&&(m=this.rightSheetHeight),!0!==this.leftCover.isFlipping&&(this.leftCover.element.position.z=f?this.midPosition+this.coverDepth:h+this.coverDepth/2,this.leftCover.element.position.z=Math.max(this.leftCover.element.position.z,-(.05*this.refSize)),this.leftCover.element.position.x=0,this.leftSheets.sheetAngle=this.leftCover.sheetAngle=f?180:0,this.leftSheets.curveAngle=this.leftCover.curveAngle=f?180:0,!0===this.rightCover.isFlipping||(this.leftCover.height=m,this.leftCover.width=this.leftCover.sheetAngle<90?this.leftSheetWidth:this.rightSheetWidth,this.isClosedPage()||(this.leftCover.width+=this.coverExtraWidth,this.leftCover.height+=this.coverExtraHeight)),this.leftSheets.updateAngle(),this.leftCover.updateAngle()),this.rightSheets.depth=this.sheetsDepth-this.leftSheets.depth,this.rightSheets.element.visible=p?t>2:e.pageCount-this.getBasePage()>2,u-=this.rightSheets.depth/2,this.rightSheets.element.position.z=u,u-=this.coverDepth+(this.rightSheets.element.visible?this.rightSheets.depth/2:0)+3*this.coverDepth,!0!==this.rightCover.isFlipping&&(this.rightCover.element.position.z=g?this.midPosition+this.coverDepth:u+this.coverDepth/2,this.rightCover.element.position.z=Math.max(this.rightCover.element.position.z,-(.05*this.refSize)),this.rightCover.element.position.x=0,this.rightSheets.sheetAngle=this.rightCover.sheetAngle=g?0:180,this.rightSheets.curveAngle=this.rightCover.curveAngle=g?0:180,!0===this.leftCover.isFlipping||(this.rightCover.height=m,this.rightCover.width=this.rightCover.sheetAngle<90?this.leftSheetWidth:this.rightSheetWidth,this.isClosedPage()||(this.rightCover.width+=this.coverExtraWidth,this.rightCover.height+=this.coverExtraHeight)),this.rightSheets.updateAngle(),this.rightCover.updateAngle()),this.updateSheets(),this.stage.ground.position.z=Math.min(h,u)-this.refSize*this.groundDistance/100,this.stage.ground.position.z=Math.max(this.stage.ground.position.z,-(.1*this.refSize))}else this.stage.ground.position.z=-this.midPosition-15*this.sheetDepth;!0===this.cameraPositionDirty&&this.updateCameraPosition(),this.refreshSpiral()}},{key:"refreshSpiral",value:function(){}},{key:"updateCameraPosition",value:function(){var e=this.app,t=this.stage,i=e.dimensions,n=i.padding,o=1/(2*Math.tan(Math.PI*t.camera.fov*.5/180)/(i.stage.height/e.zoomValue))+2.2;this.updateShadowSize(),this.stage.spotLight.position.x=-(330*this.pageScaleX),this.stage.spotLight.position.y=330*this.pageScaleX,this.stage.spotLight.position.z=550*this.pageScaleX,this.stage.spotLight.shadow.camera.far=1200*this.pageScaleX,this.stage.spotLight.shadow.camera.updateProjectionMatrix();var s=(n.top-n.bottom)/e.zoomValue/2,a=-(n.left-n.right)/e.zoomValue/2;t.camera.position.z!==o&&!0===e.pendingZoom&&(t.camera.position.z=o),1===e.zoomValue&&(this.bookWrapper.rotation.set(0,0,0),this.bookHelper.rotation.set(0,0,0),this.cameraWrapper.rotation.set(0,0,0),0!==e.options.flipbook3DTiltAngleUp||0!==e.options.flipbook3DTiltAngleLeft?(t.camera.aspect=i.stage.width/i.stage.height,t.camera.updateProjectionMatrix(),this.bookWrapper.rotateZ(THREE.Math.degToRad(-e.options.flipbook3DTiltAngleLeft)),this.bookWrapper.rotateX(THREE.Math.degToRad(-e.options.flipbook3DTiltAngleUp)),this.isVertical()?this.bookWrapper.scale.y=1/(this.isSingle?2:1):this.bookWrapper.scale.x=1/(this.isSingle?2:1),this.bookHelper.update(),this.fitCameraToCenteredObject(t.camera,this.bookWrapper),this.bookWrapper.rotation.set(0,0,0),this.bookWrapper.scale.x=1,this.bookWrapper.scale.y=1,t.camera.position.set(a,s,t.camera.position.z+t.ground.position.z),this.camera.aspect=i.stage.width/i.stage.height,this.camera.updateProjectionMatrix(),this.cameraWrapper.rotateX(THREE.Math.degToRad(e.options.flipbook3DTiltAngleUp)),this.cameraWrapper.rotateZ(THREE.Math.degToRad(e.options.flipbook3DTiltAngleLeft))):t.camera.position.set(a,s,o)),t.camera.updateProjectionMatrix(),this.app.renderRequestStatus=p.REQUEST_STATUS.ON,this.cameraPositionDirty=!1}},{key:"refreshSheet",value:function(e){var t,i=e.sheet,n=e.index,o=i.sheetAngle,s=!(i.isHard||0===this.flexibility);i.leftFlexibility=s?this.leftFlexibility:0,i.rightFlexibility=s?this.rightFlexibility:0,i.leftPos=this.midPosition+(n-e.midPoint+1)*this.sheetDepth-this.sheetDepth/2,i.rightPos=this.midPosition-(n-e.midPoint)*this.sheetDepth-this.sheetDepth/2,t=i.targetSide===p.TURN_DIRECTION.LEFT?0:180,!1===i.isFlipping&&(e.needsFlip?(i.isFlipping=!0,i.isCover&&0===e.sheetNumber&&(this.isRTL?this.rightCover.isFlipping=!0:this.leftCover.isFlipping=!0),i.isCover&&this.totalSheets-e.sheetNumber==1&&(this.isRTL?this.leftCover.isFlipping=!0:this.rightCover.isFlipping=!0),i.element.position.z=Math.max(o<90?i.leftPos:i.rightPos,this.midPosition)+this.sheetDepth,i.flexibility=o<90?i.leftFlexibility:i.rightFlexibility,i.flip(o,t)):(i.skipFlip=!1,i.sheetAngle=i.curveAngle=t,i.flexibility=t<90?i.leftFlexibility:i.rightFlexibility,i.element.position.z=t<90?i.leftPos:i.rightPos,i.side=i.targetSide,i.height=t<90?this.leftSheetHeight:this.rightSheetHeight,i.width=t<90?this.leftSheetWidth:this.rightSheetWidth),i.updateAngle(),this.app.renderRequestStatus=p.REQUEST_STATUS.ON),i.element.visible=e.visible}},{key:"updateCenter",value:function(){var e=this,t=this.app,i=this.isVertical(),n=i?e.wrapper.position.y:e.wrapper.position.x,o=(this.isVertical()?-1:1)*e.centerShift*(this.isLeftPage()?i?this.leftSheetHeight:this.leftSheetWidth:i?this.rightSheetHeight:this.rightSheetWidth)/2;e.seamPositionY=(t.dimensions.padding.heightDiff+t.dimensions.containerHeight)/2-o,e.seamPositionX=(-t.dimensions.offset.width+t.dimensions.containerWidth)/2+o,o!==e.centerEnd&&(e.centerTween&&e.centerTween.stop&&e.centerTween.stop(),e.onCenterStartAnimation(this),e.centerTween=new TWEEN.Tween({x:n}).delay(0).to({x:o},1===t.zoomValue&&!0!==e.skipCenterAnimation?e.app.options.duration:1).onStart(function(){}).onUpdate(function(){e.onCenterUpdateAnimation(this)}).onComplete(function(){e.onCenterCompleteAnimation(this)}).onStop(function(){e.onCenterStopAnimation(this)}).easing(TWEEN.Easing.Cubic.InOut).start(),this.updatePendingStatusClass(),e.skipCenterAnimation=!1,e.centerEnd=o),e.renderRequestStatus=p.REQUEST_STATUS.ON,this.zoomViewer.updateCenter()}},{key:"onCenterUpdateAnimation",value:function(e){this.isVertical()?(this.wrapper.position.y=e.x,this.stage&&this.stage.cssScene&&(this.stage.cssScene.position.y=e.x)):(this.wrapper.position.x=e.x,this.stage&&this.stage.cssScene&&(this.stage.cssScene.position.x=e.x))}},{key:"onCenterStartAnimation",value:function(e){}},{key:"onCenterStopAnimation",value:function(e){}},{key:"onCenterCompleteAnimation",value:function(e){}},{key:"flipCover",value:function(e){var t,i,n=null;0===e.pageNumber||this.isBooklet&&1===e.pageNumber?(n=this.isRTL?this.rightCover:this.leftCover,t=this.isRTL?1:-1):e.pageNumber===this.totalSheets-1&&(n=this.isRTL?this.leftCover:this.rightCover,t=this.isRTL?-1:1),null!==n&&(i=n.depth+e.depth+1,n.sheetAngle=e.sheetAngle,n.curveAngle=e.curveAngle,this.rightCover.height=this.leftCover.height=e.height+this.coverExtraHeight,this.rightCover.width=this.leftCover.width=e.width+this.coverExtraWidth,n.flexibility=e.flexibility,this.rightCover.updateAngle(),this.leftCover.updateAngle(),n.element.position.x=e.element.position.x+t*Math.sin(e.sheetAngle*Math.PI/180)*i,n.element.position.z=e.element.position.z+t*Math.cos(e.sheetAngle*Math.PI/180)*i)}},{key:"pagesReady",value:function(){if(!this.isAnimating()&&!0===this.refreshRequested){if(!1===this.app.options.flipbookFitPages){var e=this.app.viewer.getBasePage(),t=this.leftViewport=this.getViewPort(e+(this.isBooklet?0:this.isRTL?1:0)),i=this.rightViewPort=this.getViewPort(e+(this.isBooklet?0:this.isRTL?0:1));if(t){var n=eW.contain(t.width,t.height,this.availablePageWidth(),this.availablePageHeight());(this.leftSheetWidth!=Math.floor(n.width)||this.leftSheetHeight!=Math.floor(n.height))&&(this.cameraPositionDirty=!0),this.leftSheetWidth=Math.floor(n.width),this.leftSheetHeight=Math.floor(n.height)}if(i){var o=eW.contain(i.width,i.height,this.availablePageWidth(),this.availablePageHeight());(this.rightSheetWidth!=Math.floor(o.width)||this.rightSheetWidth!=Math.floor(o.height))&&(this.cameraPositionDirty=!0),this.rightSheetWidth=Math.floor(o.width),this.rightSheetHeight=Math.floor(o.height)}for(var s=0;s<this.sheets.length;s++){var a=this.sheets[s];a.side===p.TURN_DIRECTION.LEFT?(a.height=this.leftSheetHeight,a.width=this.leftSheetWidth):(a.height=this.rightSheetHeight,a.width=this.rightSheetWidth),a.updateAngle()}if(this.isClosedPage()){var r=this.isRTL&&this.isLastPage()||!this.isRTL&&this.isFirstPage();this.leftCover.width=this.rightCover.width=r?this.rightSheetWidth:this.leftSheetWidth,this.leftCover.height=this.rightCover.height=r?this.rightSheetHeight:this.leftSheetHeight}else this.leftCover.height=this.rightCover.height=this.coverExtraHeight+Math.max(this.leftSheetHeight,this.rightSheetHeight),this.leftCover.width=this.coverExtraWidth+this.leftSheetWidth,this.rightCover.width=this.coverExtraWidth+this.rightSheetWidth;this.leftSheets.width=this.leftSheetWidth,this.leftSheets.height=this.leftSheetHeight,this.rightSheets.height=this.rightSheetHeight,this.rightSheets.width=this.rightSheetWidth,this.leftCover.updateAngle(),this.leftSheets.updateAngle(),this.rightCover.updateAngle(),this.rightSheets.updateAngle(),this.updateSheets(!0)}this.updateCenter(),this.updateCSSLayer(),this.updatePendingStatusClass(),this.refreshSpiral(),!0===this.cameraPositionDirty&&this.updateCameraPosition(),this.app.executeCallback("onPagesReady")}}},{key:"updateSheets",value:function(e){if(!0!==this.isClosedPage()){var t=this.getPageByNumber(this.getRightPageNumber());if(!0!==this.rightCover.isFlipping&&t&&t.sheet.element.geometry.attributes){var i=this.rightSheets.element.geometry.attributes.position,n=e?t.sheet.element.geometry.boundingBox.max.x*t.sheet.element.scale.x:this.rightSheets.lastSlopeX;i.setX(21,n),i.setX(23,n),i.setX(4,n),i.setX(6,n),i.setX(10,n),i.setX(14,n),i.needsUpdate=!0,this.rightSheets.element.geometry.attributes.uv.needsUpdate=!0,this.rightSheets.element.geometry.computeVertexNormals(),e&&(this.rightSheets.lastSlopeX=n)}var o=this.getPageByNumber(this.getLeftPageNumber());if(!0!==this.leftCover.isFlipping&&o&&o.sheet.element.geometry.attributes){var s=this.leftSheets.element.geometry.attributes.position,a=e?o.sheet.element.geometry.boundingBox.min.x*o.sheet.element.scale.x:this.leftSheets.lastSlopeX;s.setX(16,a),s.setX(18,a),s.setX(5,a),s.setX(7,a),s.setX(8,a),s.setX(12,a),s.needsUpdate=!0,this.leftSheets.element.geometry.attributes.uv.needsUpdate=!0,this.leftSheets.element.geometry.computeVertexNormals(),e&&(this.leftSheets.lastSlopeX=a)}}}},{key:"updateCSSLayer",value:function(){}},{key:"mouseMove",value:function(e){if(e=eW.fixMouseEvent(e),this.app.renderRequestStatus=p.REQUEST_STATUS.ON,null!=e.touches&&2===e.touches.length){this.pinchMove(e);return}var t=this.eventToPoint(e);if(null!==this.dragSheet&&!1!==this.drag3D&&Math.abs(t.x-this.startPoint.x)>2){!0!==this.isDragging&&(this.updatePendingStatusClass(!0),this.isDragging=!0);var i=this.dragSheet.width,n=t.x-(this.app.dimensions.origin.x+this.centerEnd-i),o=eW.limitAt(1-n/i,-1,1),s=eW.toDeg(Math.acos(o)),a=this.dragSheet,r=this.drag===p.TURN_DIRECTION.LEFT;a.sheetAngle=s;var l=eW.getCurveAngle(r,s,45);a.isCover&&a.viewer.flipCover(a),a.curveAngle=a.isHard?s:l,a.updateAngle()}this.checkSwipe(t,e)}},{key:"mouseUp",value:function(e){if((e=eW.fixMouseEvent(e)).touches||0===e.button){if(null==this.dragSheet&&null!=e.touches&&0===e.touches.length){this.pinchUp(e);return}var t=this.eventToPoint(e);if(1===this.app.zoomValue){if(null!==this.dragSheet){var i=t.x-this.startPoint.x;Math.abs(i)>2*this.swipeThreshold&&(this.drag===p.TURN_DIRECTION.LEFT&&i>0?this.app.openLeft():this.drag===p.TURN_DIRECTION.RIGHT&&i<0&&this.app.openRight()),this.requestRefresh(),this.updatePendingStatusClass()}var n=e.target||e.originalTarget,o=this.startPoint&&t.x===this.startPoint.x&&t.y===this.startPoint.y&&"A"!==n.nodeName;!0===e.ctrlKey&&o?this.zoomOnPoint(t):o&&t.sheet&&this.clickAction===p.MOUSE_CLICK_ACTIONS.NAV&&(t.sheet.sheetAngle>90?this.app.openRight():this.app.openLeft())}this.dragSheet=null,this.drag=null,!0===this.isDragging&&(this.isDragging=!1),this.startPoint=null,this.canSwipe=!1,this.app.renderRequestStatus=p.REQUEST_STATUS.ON}}},{key:"raycastCLick",value:function(e){this.mouse=new THREE.Vector2,this.raycaster=new THREE.Raycaster,this.mouse.x=e.offsetX/this.app.dimensions.stage.width*2-1,this.mouse.y=1-e.offsetY/this.app.dimensions.stage.height*2,this.raycaster.setFromCamera(this.mouse,this.camera);var t=this.raycaster.intersectObjects(this.bookWrapper.children,!0);if(t.length>0){var i,n=0;do{if((i=null!=t[n]?t[n].object:null).sheet&&i.sheet.index&&!0!==i.sheet.isFlipping)return i;n++}while(n<t.length)}}},{key:"mouseDown",value:function(e){if((e=eW.fixMouseEvent(e)).touches||0===e.button){if(null!=e.touches&&2===e.touches.length)this.pinchDown(e);else{e=eW.fixMouseEvent(e);var t=this.eventToPoint(e);this.startPoint=t,this.lastPosX=t.x,this.lastPosY=t.y;var i=this.raycastCLick(e),n=t.sheet?t.sheet.width-Math.abs(t.x-(this.app.dimensions.origin.x+this.centerEnd)):0;t.sheet&&i&&t.isInsideSheet&&n<t.sheet.width/2?(this.dragSheet=i.sheet,this.drag=t.sheet.sheetAngle<90?p.TURN_DIRECTION.LEFT:p.TURN_DIRECTION.RIGHT):this.canSwipe=!0}}}},{key:"eventToPoint",value:function(e){var t=this.app.dimensions,i={x:(e=eW.fixMouseEvent(e)).clientX,y:e.clientY};i.x=i.x-this.parentElement[0].getBoundingClientRect().left,i.y=i.y-this.parentElement[0].getBoundingClientRect().top;var n=(-t.offset.width+t.containerWidth)/2-t.stage.width/2,o=(-t.offset.width+t.containerWidth)/2+t.stage.width/2,s=t.padding.top,a=t.padding.top+this.availablePageHeight(),r=this.isVertical()?i.y<this.seamPositionY:i.x<this.seamPositionX,l=this.getBasePage()+(r?0:1),h=this.getPageByNumber(l);h&&(h=h.sheet);var u=i.x>n&&i.x<o&&i.y>s&&i.y<a;return{isInsideSheet:u,isInsideDragZone:u&&i.x-n<this.foldSense||o-i.x<this.foldSense,x:i.x,y:i.y,left:n,top:s,right:o,bottom:a,raw:i,isLeftSheet:r,sheet:h}}},{key:"textureLoadedCallback",value:function(e){this.app.renderRequestStart(),this.pagesReady()}},{key:"getTextureSize",value:function(e){var t=eD(eF(i.prototype),"getTextureSize",this).call(this,e);if(1!==this.app.zoomValue||!0===e.isAnnotation)return t;var n=eW.nearestPowerOfTwo(t.height),o=t.width*n/t.height;return this.texturePowerOfTwo?{height:n,width:o}:t}},{key:"getPageByNumber",value:function(e){if(this.has3DCover){var t=!this.isBooklet&&e===this.app.pageCount&&e%2==0,n=1===e;if(!this.isRTL&&n||this.isRTL&&t)return this.leftCover.frontPage;if(!this.isRTL&&t||this.isRTL&&n)return this.rightCover.backPage}return eD(eF(i.prototype),"getPageByNumber",this).call(this,e)}},{key:"setPage",value:function(e){return eD(eF(i.prototype),"setPage",this).call(this,e)}},{key:"beforeFlip",value:function(){eD(eF(i.prototype),"beforeFlip",this).call(this)}}]),i}(Q),eG=/*#__PURE__*/function(e){eB(i,e);var t=eU(i);function i(e){eA(this,i);var n,o=eI(n=t.call(this,e));return o.element=null,o.face=e.face,o.parent3D=e.sheet,o.sheet=e.sheet,o.cssPage=new THREE.CSS3DObject(o.contentLayer[0]),n}return ez(i,[{key:"setLoading",value:function(){this.sheet.viewer.checkPageLoading()}},{key:"clearMap",value:function(){this.sheet.element.material[this.face].map=null,this.sheet.element.material[this.face].needsUpdate=!0}},{key:"loadTexture",value:function(e){var t=this,i=e.texture,n=e.callback;function o(i,o){t.updateTextureLoadStatus(!0),t.sheet.resetMatColor(t.face,e.texture===t.textureLoadFallback),"function"==typeof n&&n(e)}t.textureSrc=i,"function"==typeof p.defaults.beforeLoadTexture&&p.defaults.beforeLoadTexture({texture:i,page:t}),4===this.face?this.sheet.backImage(i,o):this.sheet.frontImage(i,o)}}]),i}(_);function eZ(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eK(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function eX(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function eQ(e,t,i){return t&&eX(e.prototype,t),i&&eX(e,i),e}function eY(e){return(eY=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eJ(e,t){return(eJ=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function e$(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}p.defaults.maxTextureSize=2048,p.viewers={},p.viewers.flipbook=function e(t,i){return(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),!1==p.utils.canSupport3D()&&(t.is3D=!1),p.utils.isTrue(t.is3D))?new eq(t,i):new ep(t,i)},p.viewers.default=p.viewers.reader=B,p.viewers.slider=eE;var e0=p.jQuery,e1=p.utils,e2=/*#__PURE__*/function(){function e(){eK(this,e),this.baseUrl=null,this.pdfDocument=null,this.pdfApp=null,this.pdfHistory=null,this.externalLinkRel=null,this.externalLinkEnabled=!0,this._pagesRefCache=null}return eQ(e,[{key:"dispose",value:function(){this.baseUrl=null,this.pdfDocument=null,this.pdfApp=null,this.pdfHistory=null,this._pagesRefCache=null}},{key:"setDocument",value:function(e,t){this.baseUrl=t,this.pdfDocument=e,this._pagesRefCache=Object.create(null)}},{key:"setViewer",value:function(e){this.pdfApp=e,this.externalLinkTarget=e.options.linkTarget}},{key:"setHistory",value:function(e){this.pdfHistory=e}},{key:"pagesCount",get:function(){return this.pdfDocument.numPages}},{key:"page",get:function(){return this.pdfApp.currentPageNumber},set:function(e){this.pdfApp.gotoPage(e)}},{key:"navigateTo",value:function(e){this.goToDestination(e)}},{key:"addLinkAttributes",value:function(e,t){arguments.length>2&&void 0!==arguments[2]&&arguments[2];var i=this.externalLinkTarget,n=this.externalLinkRel,o=this.externalLinkEnabled;if(!t||"string"!=typeof t)throw Error('A valid "url" parameter must provided.');var s=(0,e1.removeNullCharacters)(t);o?e.href=e.title=s:(e.href="",e.title="Disabled: ".concat(s),e.onclick=function(){return!1});var a="";switch(i){case p.LINK_TARGET.NONE:break;case p.LINK_TARGET.SELF:a="_self";break;case p.LINK_TARGET.BLANK:a="_blank";break;case p.LINK_TARGET.PARENT:a="_parent";break;case p.LINK_TARGET.TOP:a="_top"}e.target=a,e.rel="string"==typeof n?n:"noopener noreferrer nofollow"}},{key:"goToDestination",value:function(e){var t,i="",n=this,o=function(t){e1.log("Requested: ",t);var s=t instanceof Object?n._pagesRefCache[t.num+" "+t.gen+" R"]:t+1;s?((s=n.pdfApp.viewer.getViewerPageNumber(s))>n.pdfApp.pageCount&&(s=n.pdfApp.pageCount),e1.log("Loading for:",t," at page ",s),n.pdfApp.requestDestRefKey===t.num+" "+t.gen+" R"?(n.pdfApp.gotoPage(s),n.pdfHistory&&n.pdfHistory.push({dest:e,hash:i,page:s})):e1.log("Expired Request for ",s," with ",t)):(n.pdfApp.container.addClass("df-fetch-pdf"),n.pdfDocument.getPageIndex(t).then(function(e){var i=t.num+" "+t.gen+" R";n._pagesRefCache[i]=e+1,o(t)}))};"string"==typeof e?(i=e,t=this.pdfDocument.getDestination(e)):t=Promise.resolve(e),t.then(function(t){e1.log("Started:",t),e=t,t instanceof Array&&(n.pdfApp.requestDestRefKey=t[0].num+" "+t[0].gen+" R",o(t[0]))})}},{key:"customNavigateTo",value:function(e){if(""!==e&&null!=e&&"null"!==e){var t=null;if(isNaN(Math.floor(e))){if("string"==typeof e&&isNaN(t=parseInt(e.replace("#",""),10))){window.open(e,this.pdfApp.options.linkTarget===p.LINK_TARGET.SELF?"_self":"_blank");return}}else t=e;null!=t&&this.pdfApp.gotoPage(t)}}},{key:"getDestinationHash",value:function(e){if("string"==typeof e)return this.getAnchorUrl("#"+escape(e));if(e instanceof Array){var t=e[0],i=t instanceof Object?this._pagesRefCache[t.num+" "+t.gen+" R"]:t+1;if(i){var n=this.getAnchorUrl("#page="+i),o=e[1];if((void 0===o?"undefined":e$(o))==="object"&&"name"in o&&"XYZ"===o.name){var s=e[4]||this.pdfApp.pageScaleValue,a=parseFloat(s);a&&(s=100*a),n+="&zoom="+s,(e[2]||e[3])&&(n+=","+(e[2]||0)+","+(e[3]||0))}return n}}return this.getAnchorUrl("")}},{key:"getCustomDestinationHash",value:function(e){return"#"+escape(e)}},{key:"getAnchorUrl",value:function(e){return(this.baseUrl||"")+e}},{key:"executeNamedAction",value:function(e){switch(e){case"GoBack":this.pdfHistory&&this.pdfHistory.back();break;case"GoForward":this.pdfHistory&&this.pdfHistory.forward();break;case"NextPage":this.page++;break;case"PrevPage":this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}var t=document.createEvent("CustomEvent");t.initCustomEvent("namedaction",!0,!0,{action:e}),this.pdfApp.container.dispatchEvent(t)}},{key:"cachePageRef",value:function(e,t){var i=t.num+" "+t.gen+" R";this._pagesRefCache[i]=e}}]),e}(),e3=/*#__PURE__*/function(){function e(t,i){eK(this,e),this.props=t,this.app=i,this.textureCache=[],this.pageCount=0,this.numPages=0,this.outline=[],this.viewPorts=[],this.requestedPages="",this.requestIndex=0,this.pagesToClean=[],this.defaultPage=void 0,this.pageSize=this.app.options.pageSize,this._page1Pass=!1,this._page2Pass=!1,this.pageLabels=void 0,this.textSearchLength=0,this.textSearch="",this.textContentSearch=[],this.textContentJoinedSearch=[],this.textOffsetSearch=[],this.textContent=[],this.textContentJoined=[],this.textOffset=[],this.autoLinkItemsCache=[],this.autoLinkHitsCache=[],this.searchHitItemsCache=[],this.searchHits=[],this.PDFLinkItemsCache=[],this.canPrint=!0,this.textPostion=[],this.renderTime=0}return eQ(e,[{key:"finalize",value:function(){}},{key:"dispose",value:function(){}},{key:"softDispose",value:function(){}},{key:"setCache",value:function(e,t,i){i&&(void 0===this.textureCache[i]&&(this.textureCache[i]=[]),this.textureCache[i][e]=t)}},{key:"getCache",value:function(e,t){return void 0===this.textureCache[t]?void 0:this.textureCache[t][e]}},{key:"_isValidPage",value:function(e){return e>0&&e<=this.pageCount}},{key:"getLabelforPage",value:function(e){return this.pageLabels&&void 0!==this.pageLabels[e-1]?this.pageLabels[e-1]:e}},{key:"getThumbLabel",value:function(e){var t=this.getLabelforPage(e);return t!==e?t+" ("+e+")":e}},{key:"getPageNumberForLabel",value:function(e){if(!this.pageLabels)return e;var t=this.pageLabels.indexOf(e);return t<0?null:t+1}},{key:"processPage",value:function(e){}},{key:"cleanUpPages",value:function(){}},{key:"checkRequestQueue",value:function(){}},{key:"processAnnotations",value:function(){}},{key:"processTextContent",value:function(){}},{key:"loadDocument",value:function(){}},{key:"pagesLoaded",value:function(){this._page1Pass&&this._page2Pass&&(this.app.viewer.checkDocumentPageSizes(),this.finalize())}},{key:"_documentLoaded",value:function(){this.finalizeOutLine(),this.app&&this.app.dimensions&&void 0===this.app.dimensions.pageFit&&e1.log("Provider needs to initialize page properties for the app"),this.app._documentLoaded()}},{key:"finalizeOutLine",value:function(){if(null!==this.app&&null!==this.app.options){var e=this.app.options.outline;if(e)for(var t=0;t<e.length;t++)e[t].custom=!0,e[t].dest=e[t].dest.replace(/javascript:/g,""),this.outline.push(e[t])}}},{key:"search",value:function(){}}]),e}(),e5=/*#__PURE__*/function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&eJ(e,t)}(o,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,i=eY(o);return e=t?Reflect.construct(i,arguments,eY(this).constructor):i.apply(this,arguments),e&&("object"===e$(e)||"function"==typeof e)?e:eZ(this)});function o(e,t){eK(this,o);var i,s=(i=n.call(this,e,t)).app,a=eZ(i);return a.pdfDocument=void 0,a._page2Ratio=void 0,a.cacheBustParameters="?ver="+p.version+"&pdfver="+s.options.pdfVersion,!0!==e.skipInit&&i.init(),i}return eQ(o,[{key:"init",value:function(){var e,t=this.app,n=this;function o(e){t.updateInfo(t.options.text.loading+" PDF Worker ...");var i=document.createElement("a");i.href=t.options.pdfjsWorkerSrc+n.cacheBustParameters,i.hostname!==window.location.hostname&&!0===p.loadCorsPdfjsWorker?(t.updateInfo(t.options.text.loading+" PDF Worker CORS ..."),e0.ajax({url:t.options.pdfjsWorkerSrc+n.cacheBustParameters,cache:!0,success:function(i){t.options.pdfjsWorkerSrc=e1.createObjectURL(i,"text/javascript"),"function"==typeof e&&e()}})):"function"==typeof e&&e()}e=function(){pdfjsLib.GlobalWorkerOptions.workerSrc=t.options.pdfjsWorkerSrc+n.cacheBustParameters,pdfjsLib.canvasWillReadFrequently=p.defaults.canvasWillReadFrequently,n.loadDocument()},"undefined"==typeof pdfjsLib?(t.updateInfo(t.options.text.loading+" PDF Service ..."),e1.getScript(t.options.pdfjsSrc+n.cacheBustParameters,function(){"function"==typeof define&&i.amdO&&window.requirejs&&window.require&&window.require.config?(t.updateInfo(t.options.text.loading+" PDF Service (require) ..."),window.require.config({paths:{"pdfjs-dist/build/pdf.worker":t.options.pdfjsWorkerSrc.replace(".js","")}}),window.require(["pdfjs-dist/build/pdf"],function(t){window.pdfjsLib=t,o(e)})):o(e)},function(){t.updateInfo("Unable to load PDF service.."),n.dispose()},t.options.pdfjsSrc.indexOf("pdfjs-4")>1||t.options.pdfjsSrc.indexOf("pdfjs-5")>1)):"function"==typeof e&&e()}},{key:"dispose",value:function(){this.pdfDocument&&this.pdfDocument.destroy(),this.linkService=e1.disposeObject(this.linkService),this.pdfLoadProgress&&this.pdfLoadProgress.destroy(),this.pdfLoadProgress=null,this.pdfDocument=null}},{key:"loadDocument",value:function(){var e=this.app,t=this.app.options,i=this,n=t.pdfParameters||{};if(n.url=e1.httpsCorrection(n.url||t.source),n.rangeChunkSize=t.rangeChunkSize,n.cMapPacked=!0,n.disableAutoFetch=t.disableAutoFetch,n.disableStream=t.disableStream,n.disableRange=!0===t.disableRange,n.disableFontFace=t.disableFontFace,n.isEvalSupported=!1,n.cMapUrl=t.cMapUrl,n.imagesLocation=t.imagesLocation,n.imageResourcesPath=t.imageResourcesPath,!n.url&&!n.data&&!n.range){e.updateInfo("ERROR:No PDF File provided! ","df-error");return}var o=i.pdfLoadProgress=pdfjsLib.getDocument(n);o._worker.promise.then(function(t){e.updateInfo(e.options.text.loading+" PDF ...")}),o.onPassword=function(e,t){switch(t){case pdfjsLib.PasswordResponses.NEED_PASSWORD:var i=prompt("Enter the password to open the PDF file.");if(null===i)throw Error("No password givsen.");e(i);break;case pdfjsLib.PasswordResponses.INCORRECT_PASSWORD:var i=prompt("Invalid password. Please try again.");if(!i)throw Error("No password givaen.");e(i)}},o.promise.then(function(n){i.pdfDocument=n,n.getPage(1).then(function(o){i.defaultPage=o;var s,a=i.defaultPage.viewPort=o.getViewport({scale:1,rotation:o._pageInfo.rotate+e.options.pageRotation}),r=i.defaultPage.pageRatio=a.width/a.height;i.viewPorts[1]=a,e.dimensions.defaultPage={ratio:r,viewPort:a,width:a.width,height:a.height},e.dimensions.maxTextureHeight=(null!==(s=t.maxTextureSize)&&void 0!==s?s:3200)/(r>1?r:1),e.dimensions.maxTextureWidth=e.dimensions.maxTextureHeight*r,e.dimensions.autoHeightRatio=1/r,i.pageCount=n.numPages,i.numPages=n.numPages,i._page1Pass=!0,i.pagesLoaded()}),n.numPages>1&&!0===e.checkSecondPage?n.getPage(2).then(function(t){var n=t.getViewport({scale:1,rotation:t._pageInfo.rotate+e.options.pageRotation});i._page2Ratio=n.width/n.height,i.viewPorts[2]=n,i._page2Pass=!0,i.pagesLoaded()}):(i._page2Pass=!0,i.pagesLoaded())}).catch(function(t){if(null!==e&&null!=e.options){var n,o="",s=document.createElement("a");s.href=e.options.source,s.hostname===window.location.hostname||-1!==s.href.indexOf("file://")||e1.isChromeExtension()||-1!==s.href.indexOf("blob:")||(o="<strong>CROSS ORIGIN!! </strong>");var a=(null===(n=e.options)||void 0===n?void 0:n.fileName)||s.href;e.updateInfo(o+"<strong>Error: Cannot access file!  </strong>"+a+"<br><br>"+t.message,"df-error"),console.log(t),e.container.removeClass("df-loading").addClass("df-error"),i.dispose()}}),o.getTotalLength=function(){return i.pdfLoadProgress._transport._networkStream._fullRequestReader.contentLength},o.onProgress=function(t){if(null!==e){var i=100*t.loaded/o.getTotalLength();isNaN(i)?t&&t.loaded?(void 0===o.lastLoaded||o.lastLoaded+25e4<t.loaded)&&(o.lastLoaded=t.loaded,e.updateInfo(e.options.text.loading+" PDF "+(Math.ceil(t.loaded/1e4)/100).toFixed(2).toString()+"MB ...")):e.updateInfo(e.options.text.loading+" PDF ..."):e.updateInfo(e.options.text.loading+" PDF "+Math.ceil(Math.min(100,i)).toString().split(".")[0]+"% ...")}}}},{key:"pdfFetchStarted",value:function(){this.pdfFetchStatusCount=0,this.app.container.addClass("df-fetch-pdf"),this.pdfFetchStatus=p.REQUEST_STATUS.COUNT}},{key:"checkRequestQueue",value:function(){}},{key:"finalize",value:function(){var e=this.app,t=this;null!==e&&null!==e.options&&(t.linkService=new e2,t.linkService.setDocument(t.pdfDocument,null),t.linkService.setViewer(e),t.pdfDocument.getOutline().then(function(i){!0===e.options.overwritePDFOutline&&(i=[]),i=i||[],t.outline=i}).finally(function(){t._getLabels()}))}},{key:"_getLabels",value:function(){var e=this.app,t=this;t.pdfDocument.getPageLabels().then(function(i){if(i&&!0!==e.options.disablePageLabels){for(var n=i.length,o=0,s=0,a=0;a<n;a++){var r=i[a];if(r===(a+1).toString())o++;else if(""===r)s++;else break}o>=n||s>=n||(t.pageLabels=i)}}).finally(function(){t._getPermissions()})}},{key:"_getPermissions",value:function(){var e=this.app,t=this;t.pdfDocument.getPermissions().then(function(i){null!==i&&Array.isArray(i)&&(t.canPrint=i.indexOf(pdfjsLib.PermissionFlag.PRINT)>-1,!1==t.canPrint&&(console.log("PDF printing is disabled."),e.options.showPrintControl=e.options.showPrintControl&&t.canPrint))}).finally(function(){t._documentLoaded()})}},{key:"processPage",value:function(e){var t=this.app,i=this,n=e.pageNumber,o=0,s="",a=t.viewer.getTextureSize(e);if(!0===DEARFLIP.defaults.cachePDFTexture&&void 0!==this.getCache(n,a.height)){t.applyTexture(this.getCache(n,a.height),e),e1.log("Texture loaded from cache for:"+n);return}var r=t.viewer.getDocumentPageNumber(n);e1.log("Requesting PDF Page:"+r),i.pdfDocument.getPage(r).then(function(l){i.viewPorts[n]||(e.isFreshPage=!0,i.viewPorts[n]=l.getViewport({scale:1,rotation:l._pageInfo.rotate+t.options.pageRotation}));var h,u=t.viewer.getRenderContext(l,e);i.viewPorts[n].lastScale=u.viewport.scale,i.viewPorts[n].lastHeight=u.canvas.height,e.isFreshPage&&(null===(h=t.viewer.getPageByNumber(e.pageNumber))||void 0===h||h.changeTexture(e.pageNumber,u.canvas.height)),s=u.canvas.width+"x"+u.canvas.height,e1.log("Page "+n+" rendering - "+s),e.trace=i.requestIndex++,i.requestedPages+=","+e.trace+"["+r+"|"+u.canvas.height+"]",l.cleanupAfterRender=!1,o=performance.now(),l.render(u).promise.then(function(){if(t.applyTexture(u.canvas,e),!0===DEARFLIP.defaults.cachePDFTexture&&i.setCache(e.pageNumber,u.canvas,a.height),!0===t.options.cleanupAfterRender){var h=","+e.trace+"["+r+"|"+u.canvas.height+"]";i.requestedPages.indexOf(h)>-1&&(i.requestedPages=i.requestedPages.replace(h,""),-1==i.requestedPages.indexOf("["+r+"|")&&(i.pagesToClean.push(l),i.pagesToClean.length>0&&i.cleanUpPages()))}u=null;var p=performance.now()-o;i.renderTime+=p,e1.log("Rendered "+n+" in "+p+" ms:"+s)}).catch(function(e){console.log(e)})}).catch(function(e){console.log(e)})}},{key:"cleanUpPages",value:function(){for(;this.pagesToClean.length>0;)this.pagesToClean.splice(-1)[0].cleanup()}},{key:"clearSearch",value:function(){this.searchHits=[],this.searchHitItemsCache=[],this.totalHits=0,this.app.searchResults.html(""),this.app.container.removeClass("df-search-open"),this.textSearch="",this.app.container.find(".df-search-hits").remove()}},{key:"search",value:function(e){if(this.textSearch!==e){if(this.clearSearch(),e.length<3&&""!=e){this.app.updateSearchInfo(this.app.options.text.searchMinimum);return}this.textSearch=e,this.textSearchLength=e.length,this.app.searchContainer.addClass("df-searching"),this.app.container.addClass("df-fetch-pdf"),this._search(e,1)}}},{key:"_search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this;i.app.updateSearchInfo(i.app.options.text.searchSearchingInfo+" "+t),i.searchPage(t).then(function(n){for(var o,s=RegExp(e,"gi"),a=[];o=s.exec(n);)a.push({index:o.index,length:i.textSearchLength});if(i.searchHits[t]=a,a.length>0){var r=i.app.viewer.searchPage(t);!0===r.include&&(i.totalHits+=a.length,i.app.searchResults.append('<div class="df-search-result '+(i.app.currentPageNumber===t?"df-active":"")+'" data-df-page="'+t+'"><span>'+i.app.options.text.searchResultPage+" "+r.label+"</span><span>"+a.length+" "+(a.length>1?i.app.options.text.searchResults:i.app.options.text.searchResult)+"</span></div>"))}i.app.viewer.isActivePage(t)&&(i.processTextContent(t,i.app.viewer.getTextElement(t,!0)),i.app.ui.update()),i._search(e,t+1)}).catch(function(){}).finally(function(){0===i.totalHits?i.app.updateSearchInfo(i.app.options.text.searchResultsNotFound):i.app.updateSearchInfo(i.totalHits+" "+i.app.options.text.searchResultsFound),i.app.searchContainer.removeClass("df-searching"),i.app.container.removeClass("df-fetch-pdf")})}},{key:"prepareTextContent",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this;if(void 0==n.textContentJoinedSearch[t]||i){var o,n=this,s=0,a=0,r=0;n.textContentSearch[t]=[],n.textContent[t]=[],n.textOffsetSearch[t]=[],n.textOffset[t]=[],n.textContentJoinedSearch[t]=[],n.textContentJoined[t]=[];for(var l=0;l<e.items.length;l++)o=e.items[l],n.textContentSearch[t].push(!0===o.hasEOL?o.str+" ":o.str),n.textContent[t].push(o.str+" "),a+=r=(o.str.length||0)+(!0===o.hasEOL?1:0),n.textOffsetSearch[t].push({length:r,offset:a-r}),s+=r=(o.str.length||0)+1,n.textOffset[t].push({length:r,offset:s-r});n.textContentJoinedSearch[t]=n.textContentSearch[t].join(""),n.textContentJoined[t]=n.textContent[t].join("")}}},{key:"searchPage",value:function(e){var t=this;return new Promise(function(i,n){if(t._isValidPage(e))try{var o=t.app.viewer.getDocumentPageNumber(e);void 0==t.textContentJoinedSearch[o]?t.pdfDocument.getPage(o).then(function(e){e.getTextContent().then(function(e){t.prepareTextContent(e,o),i(t.textContentJoinedSearch[o])})}):i(t.textContentJoinedSearch[o])}catch(e){e1.log(e),n(e)}else n()})}}]),o}(e3);function e8(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e9(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function e4(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function e7(e,t,i){return t&&e4(e.prototype,t),i&&e4(e,i),e}function e6(e){return(e6=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function te(e,t){return(te=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}p.providers.pdf=e5;var tt=p.jQuery,ti=p.utils,tn=/*#__PURE__*/function(){function e(t){e9(this,e),this._viewPort=new ts(0,0),this._pageInfo={rotate:0},this.src=t.src}return e7(e,[{key:"getViewport",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{scale:1};return new ts(this._viewPort.height*e.scale,this._viewPort.width*e.scale,e.scale)}}]),e}(),to=/*#__PURE__*/function(){function e(t){e9(this,e),this.source=[],this.pages=[],this.numPages=t.length;for(var i=0;i<t.length;i++)this.source[i]=ti.httpsCorrection(t[i].toString()),this.pages.push(new tn({src:this.source[i]}))}return e7(e,[{key:"getPage",value:function(e){var t=this;return new Promise(function(i,n){try{var o=tt("<img/>");o.attr("src",t.source[e-1]),o[0].crossOrigin="Anonymous",o.on("load",function(){tt(this).off();var e=new tn({src:this.src});e._viewPort.height=this.height,e._viewPort.width=this.width,e._viewPort.scale=1,e.image=this,i(e)})}catch(e){n(e)}})}}]),e}(),ts=/*#__PURE__*/function(){function e(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;e9(this,e),this.scale=n,this.height=t,this.width=i,this.scale=n,this.transform=[0,0,0,0,0,this.height]}return e7(e,[{key:"clone",value:function(){return new e(this.height,this.width,this.scale)}}]),e}(),ta=/*#__PURE__*/function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&te(e,t)}(n,e);var t,i=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,i=e6(n);return e=t?Reflect.construct(i,arguments,e6(this).constructor):i.apply(this,arguments),e&&("object"==(e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof e)?e:e8(this)});function n(e,t){e9(this,n);var o,s=(o=i.call(this,e,t)).app,a=e8(o);return a.document=new to(s.options.source),a.pageCount=a.document.numPages,a.numPages=a.document.numPages,a.loadDocument(),o}return e7(n,[{key:"dispose",value:function(){}},{key:"loadDocument",value:function(){var e=this.app,t=this.app.options,i=this;i.document.getPage(1).then(function(n){i.defaultPage=n;var o,s=i.defaultPage.viewPort=n._viewPort,a=i.defaultPage.pageRatio=s.width/s.height;i.viewPorts[1]=s,e.dimensions.defaultPage={ratio:a,viewPort:s,width:s.width,height:s.height},e.dimensions.maxTextureHeight=(null!==(o=t.maxTextureSize)&&void 0!==o?o:3200)/(a>1?a:1),e.dimensions.maxTextureWidth=e.dimensions.maxTextureHeight*a,e.dimensions.autoHeightRatio=1/a,i._page1Pass=!0,i.pagesLoaded()}),i.pageCount>1&&!0===e.checkSecondPage?i.document.getPage(2).then(function(e){var t=e._viewPort;i._page2Ratio=t.width/t.height,i.viewPorts[2]=t,i._page2Pass=!0,i.pagesLoaded()}):(i._page2Pass=!0,i.pagesLoaded())}},{key:"finalize",value:function(){var e=this.app;null!==e&&null!==e.options&&(this.linkService=new e2,this.linkService.setViewer(e),this._documentLoaded())}},{key:"processPage",value:function(e){var t=this.app,i=this,n=e.pageNumber,o=performance.now(),s=t.viewer.getDocumentPageNumber(n);ti.log("Requesting PDF Page:"+s),i.document.getPage(s).then(function(s){i.viewPorts[n]||(e.isFreshPage=!0,i.viewPorts[n]=s._viewPort);var a,r,l=t.viewer.getRenderContext(s,e);(e.isFreshPage&&(null===(a=t.viewer.getPageByNumber(e.pageNumber))||void 0===a||a.changeTexture(e.pageNumber,l.canvas.height)),e.preferCanvas=!0,!0===e.preferCanvas)?(l.canvas.getContext("2d").drawImage(s.image,l.viewport.transform[4],0,l.canvas.width*(null!==(r=l.viewport.widthFix)&&void 0!==r?r:1),l.canvas.height),t.applyTexture(l.canvas,e)):t.applyTexture({src:s.src,height:l.canvas.height,width:l.canvas.width},e),ti.log("Rendered "+n+" in "+(performance.now()-o)+" milliseconds")})}}]),n}(e3);function tr(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function tl(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function th(e,t,i){return t&&tl(e.prototype,t),i&&tl(e,i),e}function tu(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}p.providers.image=ta,i(795);var tp=p.jQuery,tc=p.utils,td=p.REQUEST_STATUS,tf=/*#__PURE__*/function(){function e(t,i){tr(this,e),this.options=t,this.app=i,this.parentElement=this.app.container,this.element=tp("<div>",{class:"df-ui"}),this.leftElement=tp("<div>",{class:"df-ui-left"}).appendTo(this.element),this.centerElement=tp("<div>",{class:"df-ui-center"}).appendTo(this.element),this.rightElement=tp("<div>",{class:"df-ui-right"}).appendTo(this.element),this.parentElement.append(this.element),this.events={},this.controls={}}return th(e,[{key:"init",value:function(){var e=this,t="<div>",i=this.app,n=this.controls,o=i.options.text,s=i.options.icons;e.createLogo(),this.openRight=n.openRight=tp(t,{class:"df-ui-nav df-ui-next",title:i.isRTL?o.previousPage:o.nextPage,html:'<div class="df-ui-btn '+s.next+'"></div>'}).on("click",function(){i.openRight()}),this.openLeft=n.openLeft=tp(t,{class:"df-ui-nav df-ui-prev",title:i.isRTL?o.nextPage:o.previousPage,html:'<div class="df-ui-btn '+s.prev+'"></div>'}).on("click",function(){i.openLeft()}),!0==i.options.autoPlay&&(this.play=n.play=tc.createBtn("play",s.play,o.play).on("click",function(){var e=tp(this);i.setAutoPlay(!e.hasClass(i.options.icons.pause))}),i.setAutoPlay(i.options.autoPlayStart)),this.pageNumber=n.pageNumber=tc.createBtn("page").on("change",function(){i.gotoPageLabel(n.pageInput.val())}).on("keyup",function(e){13===e.keyCode&&i.gotoPageLabel(n.pageInput.val())});var a="df_book_page_number_"+Math.ceil(performance.now()/10);this.pageInput=n.pageInput=tp('<input id="'+a+'" type="text"/>').appendTo(n.pageNumber),this.pageLabel=n.pageLabel=tp('<label for="'+a+'"></label>').appendTo(n.pageNumber),this.thumbnail=n.thumbnail=tc.createBtn("thumbnail",s.thumbnail,o.toggleThumbnails),n.thumbnail.on("click",function(){var t=tp(this);null==i.thumblist&&i.initThumbs(),i.thumbContainer.toggleClass("df-sidemenu-visible"),t.toggleClass("df-active"),t.hasClass("df-active")&&(t.siblings(".df-active").trigger("click"),i.thumbRequestStatus=td.ON),e.update(),!1===i.options.sideMenuOverlay&&i.resizeRequestStart()}).addClass("df-sidemenu-trigger"),i.hasOutline()&&(this.outline=n.outline=tc.createBtn("outline",s.outline,o.toggleOutline),n.outline.on("click",function(){var t=tp(this);if(null==i.outlineViewer&&i.initOutline(),i.outlineContainer){var n=i.outlineContainer;t.toggleClass("df-active"),n.toggleClass("df-sidemenu-visible"),t.hasClass("df-active")&&t.siblings(".df-active").trigger("click"),e.update(),!1===i.options.sideMenuOverlay&&i.resizeRequestStart()}}).addClass("df-sidemenu-trigger")),!0===i.options.showSearchControl&&!0!==tc.isMobile&&"string"==typeof i.options.source&&(n.search=tc.createBtn("search",s.search,o.search),n.search.on("click",function(){var t=tp(this);if(null==i.searchContainer&&i.initSearch(),i.searchContainer){var n=i.searchContainer;t.toggleClass("df-active"),n.toggleClass("df-sidemenu-visible"),t.hasClass("df-active")&&(t.siblings(".df-active").trigger("click"),i.searchBox[0].focus()),e.update(),!1===i.options.sideMenuOverlay&&i.resizeRequestStart()}}).addClass("df-sidemenu-trigger"));var r=e.element;if(this.zoomIn=n.zoomIn=tc.createBtn("zoomin",s.zoomin,o.zoomIn).on("click",function(){i.zoom(1),e.update()}),this.zoomOut=n.zoomOut=tc.createBtn("zoomout",s.zoomout,o.zoomOut).on("click",function(){i.zoom(-1),e.update()}),this.resetZoom=n.resetZoom=tc.createBtn("resetzoom",s.resetzoom,o.resetZoom).on("click",function(){i.resetZoom(-1),e.update()}),i.viewer.isFlipBook){if(i.pageCount>2){var l=i.viewer.pageMode===p.FLIPBOOK_PAGE_MODE.SINGLE;this.pageMode=n.pageMode=tc.createBtn("pagemode",s[l?"doublepage":"singlepage"],l?o.doublePageMode:o.singlePageMode).on("click",function(){var e=tp(this);i.viewer.setPageMode({isSingle:!e.hasClass(s.doublepage)}),i.viewer.pageModeChangedManually=!0})}}else this.pageFit=n.pageFit=tc.createBtn("pagefit",s.pagefit,o.pageFit).on("click",function(){var e=n.pageFit;!0==!e.hasClass(s.widthfit)?(e.addClass(s.widthfit),e.html("<span>"+o.widthFit+"</span>"),e.attr("title",o.widthFit)):(e.removeClass(s.widthfit),e.html("<span>"+o.pageFit+"</span>"),e.attr("title",o.pageFit))});if(this.share=n.share=tc.createBtn("share",s.share,o.share).on("click",function(){null==e.shareBox&&(e.shareBox=new tg(i.container,i.options)),!0===e.shareBox.isOpen?e.shareBox.close():(e.shareBox.update(i.getURLHash()),e.shareBox.show())}),this.more=n.more=tc.createBtn("more",s.more).on("click",function(t){!0!==e.moreContainerOpen&&(tp(this).addClass("df-active"),e.moreContainerOpen=!0,t.stopPropagation())}),this.startPage=n.startPage=tc.createBtn("start",s.start,o.gotoFirstPage).on("click",function(){i.start()}),this.endPage=n.endPage=tc.createBtn("end",s.end,o.gotoLastPage).on("click",function(){i.end()}),!0===i.options.showPrintControl&&!0!==tc.isMobile&&"string"==typeof i.options.source&&(this.print=n.print=tc.createBtn("print",s.print,o.print).on("click",function(){p.printHandler=p.printHandler||new tv,p.printHandler.printPDF(i.options.source)})),!0===i.options.showDownloadControl&&"string"==typeof i.options.source){var h="df-ui-btn df-ui-download "+s.download;this.download=n.download=tp('<a download target="_blank" class="'+h+'"><span>'+o.downloadPDFFile+"</span></a>"),n.download.attr("href",tc.httpsCorrection(i.options.source)).attr("title",o.downloadPDFFile)}e.moreContainer=tp(t,{class:"df-more-container"}),n.more.append(e.moreContainer),!0===i.options.isLightBox&&!0!==i.fullscreenSupported||(this.fullScreen=n.fullScreen=tc.createBtn("fullscreen",s.fullscreen,o.toggleFullscreen).on("click",i.switchFullscreen.bind(i))),i.viewer.initCustomControls();var u=i.options.allControls.replace(/ /g,"").split(","),c=","+i.options.moreControls.replace(/ /g,"")+",",d=","+i.options.hideControls.replace(/ /g,"")+",";i.options.leftControls.replace(/ /g,""),i.options.rightControls.replace(/ /g,""),d+=",";for(var f=0;f<u.length;f++){var g=u[f];if(0>d.indexOf(","+g+",")){var m=n[g];null!=m&&(void 0===m?"undefined":tu(m))=="object"&&(c.indexOf(","+g+",")>-1&&"more"!==g&&"pageNumber"!==g?e.moreContainer.append(m):!0==i.options.controlsFloating?r.append(m):this.centerElement.append(m))}}0==e.moreContainer.children().length&&this.more.addClass("df-hidden"),i.container.append(r),i.container.append(n.openLeft),i.container.append(this.controls.openRight),window.addEventListener("click",e.events.closePanels=e.closePanels.bind(e),!1),window.addEventListener("keyup",e.events.keyup=e.keyUp.bind(e),!1),document.addEventListener("fullscreenchange",e.events.fullscreenChange=e.fullscreenChange.bind(e),!1),!0===i.options.autoOpenThumbnail&&e.controls.thumbnail.trigger("click"),i.hasOutline()&&!0===i.options.autoOpenOutline&&e.controls.outline.trigger("click"),i.executeCallback("onCreateUI")}},{key:"closePanels",value:function(e){if(!0===this.moreContainerOpen){var t;null===(t=this.controls.more)||void 0===t||t.removeClass("df-active"),this.moreContainerOpen=!1}}},{key:"fullscreenChange",value:function(e){void 0===tc.getFullscreenElement()&&!0===this.app.isFullscreen&&this.app.switchFullscreen()}},{key:"keyUp",value:function(e){var t=this.app;if("INPUT"!==e.target.nodeName){var i=!1;switch(t.options.arrowKeysAction===p.ARROW_KEYS_ACTIONS.NAV&&((!0===t.isFullscreen||!0===t.options.isLightBox)&&(i=!0),!0!=t.options.isLightBox&&p.activeEmbeds.length<2&&!1===tp("body").hasClass("df-lightbox-open")&&(i=!0)),e.keyCode){case 27:p.activeLightBox&&p.activeLightBox.app&&!tc.isChromeExtension()&&p.activeLightBox.closeButton.trigger("click");break;case 37:i&&t.openLeft();break;case 39:i&&t.openRight();break;case 38:i&&t.viewer.isVertical()&&t.openLeft();break;case 40:i&&t.viewer.isVertical()&&t.openRight()}}}},{key:"createLogo",value:function(){var e=this.app,t=null;e.options.logo.indexOf("<")>-1?t=tp(e.options.logo).addClass("df-logo df-logo-html"):e.options.logo.trim().length>2&&(t=tp('<a class="df-logo df-logo-img" target="_blank" href="'+e.options.logoUrl+'"><img alt="" src="'+e.options.logo+'"/>')),this.element.append(t)}},{key:"dispose",value:function(){for(var e in this.controls)if(this.controls.hasOwnProperty(e)){var t=this.controls[e];null!==t&&(void 0===t?"undefined":tu(t))=="object"&&t.off().remove()}this.element.remove(),this.shareBox=tc.disposeObject(this.shareBox),window.removeEventListener("click",this.events.closePanels,!1),window.removeEventListener("keyup",this.events.keyup,!1),document.removeEventListener("fullscreenchange",this.events.fullscreenChange,!1)}},{key:"update",value:function(){var e=this.app,t=this.controls;!0!==this._pageLabelWidthSet&&(this.pageLabel.width(""),e.provider.pageLabels?this.pageLabel.text("88888888888888888".substring(0,3*e.pageCount.toString().length+4)):this.pageLabel.text("88888888888".substring(0,2*e.pageCount.toString().length+3)),this.pageNumber.width(this.pageLabel.width()),this.pageLabel.width(this.pageLabel.width()),this.pageLabel.text(""),this._pageLabelWidthSet=!0);var i=e.getCurrentLabel();if(i.toString()!==e.currentPageNumber.toString()?t.pageLabel.text(i+"("+e.currentPageNumber+"/"+e.pageCount+")"):t.pageLabel.text(i+"/"+e.pageCount),t.pageInput.val(i),e.container.toggleClass("df-sidemenu-open",e.container.find(".df-sidemenu-visible").length>0),this.isSearchOpen=e.provider.totalHits>0&&e.container.find(".df-sidemenu-visible.df-search-container").length>0,e.container.toggleClass("df-search-open",this.isSearchOpen),this.isSearchOpen){var n=e.searchContainer.find(".df-search-result[data-df-page='"+e.currentPageNumber+"']");if(e.searchContainer.find(".df-search-result.df-active").removeClass("df-active"),n.length>0&&!n.hasClass(".df-active")){n.addClass("df-active");var o=e.searchResults[0],s=o.scrollTop;s+o.getBoundingClientRect().height<(n=n[0]).offsetTop+n.scrollHeight?tc.scrollIntoView(n,null,!1):s>n.offsetTop&&tc.scrollIntoView(n)}}t.zoomIn.toggleClass("disabled",e.zoomValue===e.viewer.maxZoom),t.zoomOut.toggleClass("disabled",e.zoomValue===e.viewer.minZoom);var a=e.isRTL,r=e.currentPageNumber===e.startPage,l=e.currentPageNumber===e.endPage,h=r&&!a||l&&a,u=l&&!a||r&&a;t.openRight.toggleClass("df-hidden",u),t.openLeft.toggleClass("df-hidden",h),e.viewer.afterControlUpdate()}}]),e}(),tg=/*#__PURE__*/function(){function e(t,i){tr(this,e),this.isOpen=!1,this.shareUrl="",this.init(t,i)}return th(e,[{key:"init",value:function(e,t){var i=this;for(var n in i.wrapper=tp('<div class="df-share-wrapper" style="display: none;">').on("click",function(){i.close()}),i.box=tp('<div class="df-share-box">'),i.box.on("click",function(e){e.preventDefault(),e.stopPropagation()}),i.box.appendTo(i.wrapper).html('<span class="df-share-title">'+t.text.share+"</span>"),i.urlInput=tp('<textarea name="df-share-url" class="df-share-url">').on("click",function(){this.select()}),i.box.append(i.urlInput),t.share)!function(e){if(t.share.hasOwnProperty(e)&&0>t.hideShareControls.indexOf(e)){var n=t.share[e];null!==n&&(i[e]=tp("<div>",{class:"df-share-button df-share-"+e+" "+t.icons[e]}).on("click",function(e){e.preventDefault(),window.open(n.replace("{{url}}",encodeURIComponent(i.shareUrl)).replace("{{mailsubject}}",t.text.mailSubject),"Sharer","width=500,height=400"),e.stopPropagation()}),i.box.append(i[e]))}}(n);tp(e).append(i.wrapper)}},{key:"show",value:function(){this.wrapper.show(),this.urlInput.val(this.shareUrl),this.urlInput.trigger("click"),this.isOpen=!0}},{key:"dispose",value:function(){for(var e in this)this.hasOwnProperty(e)&&this[e]&&this[e].off&&this[e].off();this.wrapper.remove()}},{key:"close",value:function(){this.wrapper.hide(),this.isOpen=!1}},{key:"update",value:function(e){this.shareUrl=e}}]),e}(),tm=/*#__PURE__*/function(){function e(t){tr(this,e),this.duration=300;var i=this;return i.lightboxWrapper=tp("<div>").addClass("df-lightbox-wrapper"),i.backGround=tp("<div>").addClass("df-lightbox-bg").appendTo(i.lightboxWrapper),i.element=tp("<div>").addClass("df-app").appendTo(i.lightboxWrapper),i.controls=tp("<div>").addClass("df-lightbox-controls").appendTo(i.lightboxWrapper),i.closeButton=tp("<div>").addClass("df-lightbox-close df-ui-btn "+p.defaults.icons.close).on("click",function(){i.close(t)}).appendTo(i.controls),i.lightboxWrapper.append(i.element),i}return th(e,[{key:"show",value:function(e){return 0===this.lightboxWrapper.parent().length&&tp("body").append(this.lightboxWrapper),tp("html,body").addClass("df-lightbox-open"),this.lightboxWrapper.show(),"function"==typeof e&&e(),this}},{key:"close",value:function(e){return this.lightboxWrapper.hide(),Array.prototype.forEach.call(p.utils.getSharePrefixes(),function(e){0===window.location.hash.indexOf("#"+e)&&!0==p.defaults.hashNavigationEnabled&&history.replaceState(void 0,void 0,"#_")}),"function"==typeof e&&setTimeout(e,this.duration),tp("html,body").removeClass("df-lightbox-open"),this.element.attr("class","df-app").attr("style",""),this.lightboxWrapper.attr("class","df-lightbox-wrapper").attr("style","display:none"),this.backGround.attr("style",""),this}}]),e}(),tv=/*#__PURE__*/function(){function e(){tr(this,e);var t=this;return t.frame=tp('<iframe id="df-print-frame" style="display:none" src="about:blank">').appendTo(tp("body")),t.frame.on("load",function(){try{t.frame[0].contentWindow.print()}catch(e){console.log(e)}}),t}return th(e,[{key:"printPDF",value:function(e){-1==e.indexOf("?")?e+="?print=true":e+="&print=true",this.frame[0].src=e}}]),e}(),ty=/*#__PURE__*/function(){function e(t,i){tr(this,e),this.options=t,this.app=i,this.parentElement=t.parentElement,this.element=tp("<div>",{class:"df-sidemenu-wrapper"}),this.parentElement.append(this.element),this.buttons=tp("<div>",{class:"df-sidemenu-buttons df-ui-wrapper"}).appendTo(this.element),this.close=tc.createBtn("close",i.options.icons.close,i.options.text.close),this.buttons.append(this.close)}return th(e,[{key:"dispose",value:function(){this.element.remove()}}]),e}(),tb=/*#__PURE__*/function(){function e(t){tr(this,e),this.outline=null,this.lastToggleIsShow=!0,this.container=t.container,this.linkService=t.linkService,this.outlineItemClass=t.outlineItemClass||"outlineItem",this.outlineToggleClass=t.outlineToggleClass||"outlineItemToggler",this.outlineToggleHiddenClass=t.outlineToggleHiddenClass||"outlineItemsHidden"}return th(e,[{key:"dispose",value:function(){this.container&&this.container.parentNode&&this.container.parentNode.removeChild(this.container),this.linkService=null}},{key:"reset",value:function(){this.outline=null,this.lastToggleIsShow=!0;for(var e=this.container;e.firstChild;)e.removeChild(e.firstChild)}},{key:"_dispatchEvent",value:function(e){var t=document.createEvent("CustomEvent");t.initCustomEvent("outlineloaded",!0,!0,{outlineCount:e}),this.container.dispatchEvent(t)}},{key:"_bindLink",value:function(e,t){var i=this.linkService;if(!0===t.custom)e.href=i.getCustomDestinationHash(t.dest),e.onclick=function(){return i.customNavigateTo(t.dest),!1};else{if(t.url){pdfjsLib.addLinkAttributes(e,{url:t.url});return}e.href=i.getDestinationHash(t.dest),e.onclick=function(){return i.navigateTo(t.dest),!1}}}},{key:"_addToggleButton",value:function(e){var t=this,i=document.createElement("div");i.className=this.outlineToggleClass+" "+this.outlineToggleHiddenClass,i.onclick=(function(n){if(n.stopPropagation(),i.classList.toggle(this.outlineToggleHiddenClass),n.shiftKey){var o=!i.classList.contains(this.outlineToggleHiddenClass);t._toggleOutlineItem(e,o)}}).bind(this),e.insertBefore(i,e.firstChild)}},{key:"_toggleOutlineItem",value:function(e,t){this.lastToggleIsShow=t;for(var i=e.querySelectorAll("."+this.outlineToggleClass),n=0,o=i.length;n<o;++n)i[n].classList[t?"remove":"add"](this.outlineToggleHiddenClass)}},{key:"render",value:function(e){var t=e&&e.outline||null,i=0;if(this.outline&&this.reset(),this.outline=t,t){for(var n=document.createDocumentFragment(),o=[{parent:n,items:this.outline,custom:!1}],s=!1;o.length>0;)for(var a=o.shift(),r=a.custom,l=0,h=a.items.length;l<h;l++){var u=a.items[l],p=document.createElement("div");p.className=this.outlineItemClass;var c=document.createElement("a");if(null==u.custom&&null!=r&&(u.custom=r),this._bindLink(c,u),c.textContent=u.title.replace(/\x00/g,""),p.appendChild(c),u.items&&u.items.length>0){s=!0,this._addToggleButton(p);var d=document.createElement("div");d.className=this.outlineItemClass+"s",p.appendChild(d),o.push({parent:d,custom:u.custom,items:u.items})}a.parent.appendChild(p),i++}s&&(null!=this.container.classList?this.container.classList.add(this.outlineItemClass+"s"):null!=this.container.className&&(this.container.className+=" picWindow")),this.container.appendChild(n),this._dispatchEvent(i)}}}]),e}(),tw=/*#__PURE__*/function(){function e(t){tr(this,e);var i=function(){s.thumbRequestCount=0,s.thumbRequestStatus=td.COUNT},n=this.itemHeight=t.itemHeight,o=this.itemWidth=t.itemWidth,s=this.app=t.app;this.items=t.items,this.generatorFn=t.generatorFn,this.totalRows=t.totalRows||t.items&&t.items.length,this.addFn=t.addFn,this.scrollFn=t.scrollFn,this.container=document.createElement("div");for(var a=this,r=0;r<this.totalRows;r++){var l=document.createElement("div"),h=r+1;l.id="df-thumb"+h;var u=document.createElement("div"),p=document.createElement("div"),c=document.createElement("div");c.className="df-wrapper",p.className="df-thumb-number",l.className="df-thumb",u.className="df-bg-image",c.style.height=n+"px",c.style.width=o+"px",p.innerText=s.provider.getLabelforPage(h),l.appendChild(c),c.appendChild(p),c.appendChild(u),this.container.appendChild(l)}a.dispose=function(){a.container&&a.container.parentNode&&a.container.parentNode.removeChild(a.container),a.container.removeEventListener("scroll",i)},a.container.addEventListener("scroll",i)}return th(e,[{key:"processThumbRequest",value:function(){tc.log("Thumb Request Initiated");var e=this.app;if(e.thumbRequestStatus=td.OFF,e.activeThumb!==e.currentPageNumber&&null!=e.thumbContainer&&e.thumbContainer.hasClass("df-sidemenu-visible")){var t=e.thumblist.container,i=t.scrollTop,n=t.getBoundingClientRect().height,o=e.thumbContainer.find("#df-thumb"+e.currentPageNumber);o.length>0?(e.thumbContainer.find(".df-selected").removeClass("df-selected"),o.addClass("df-selected"),i+n<(o=o[0]).offsetTop+o.scrollHeight?tc.scrollIntoView(o,null,!1):i>o.offsetTop&&tc.scrollIntoView(o),e.activeThumb=e.currentPageNumber):(tp(t).scrollTop(124*e.currentPageNumber),e.thumbRequestStatus=td.ON)}if(0===e.thumblist.container.getElementsByClassName("df-thumb-requested").length){var s=tc.getVisibleElements({container:e.thumblist.container,elements:e.thumblist.container.children});-1===s.indexOf(e.activeThumb)&&s.unshift(e.activeThumb);for(var a=0;a<s.length;a++){var r=e.thumblist.container.children[s[a]-1];if(void 0!==r&&!1===r.classList.contains("df-thumb-loaded")&&!1===r.classList.contains("df-thumb-requested"))return r.classList.add("df-thumb-requested"),tc.log("Thumb Requested for "+s[a]),e.provider.processPage({pageNumber:s[a],textureTarget:p.TEXTURE_TARGET.THUMB}),!1}}}},{key:"setPage",value:function(e){var t=this.app,i=e.pageNumber,n=e.texture;if(e.textureTarget===p.TEXTURE_TARGET.THUMB){var o=t.container.find("#df-thumb"+i);o.find(".df-wrapper").css({height:e.height,width:e.width}),o.find(".df-bg-image").css({backgroundImage:tc.bgImage(n)}),o.addClass("df-thumb-loaded").removeClass("df-thumb-requested")}tc.log("Thumbnail set for "+e.pageNumber),t.thumbRequestStatus=td.ON}}]),e}();function tP(){if(void 0===p.openLocalFileInput){var e=p.openLocalFileInput=tp('<input type="file" accept=".pdf" style="display:none">').appendTo(tp("body")).data("df-option",p.openFileOptions);e.change(function(){var t,i=e[0].files;i.length&&(t=i[0],e.val(""),p.openFile(t))})}}p.openLightBox=function(e){p.activeLightBox||(p.activeLightBox=new tm(function(){p.activeLightBox.app&&(p.activeLightBox.app.closeRequested=!0,p.activeLightBox.app.analytics({eventAction:p.activeLightBox.app.options.analyticsViewerClose,options:p.activeLightBox.app.options})),p.activeLightBox.app=tc.disposeObject(p.activeLightBox.app)})),p.activeLightBox.duration=300,(void 0===p.activeLightBox.app||null===p.activeLightBox.app||!0===p.activeLightBox.app.closeRequested||p.openLocalFileInput==e)&&(p.activeLightBox.app=tc.disposeObject(p.activeLightBox.app),null===p.activeLightBox.app&&p.activeLightBox.show(function(){p.activeLightBox.app=new p.Application({transparent:!1,isLightBox:!0,height:"100%",dataElement:e,element:p.activeLightBox.element}),!0!==p._isHashTriggered&&!0==p.defaults.hashNavigationEnabled&&history.pushState(null,null,"#"),p.activeLightBox.lightboxWrapper.toggleClass("df-lightbox-padded",!1===p.activeLightBox.app.options.popupFullsize),p.activeLightBox.lightboxWrapper.toggleClass("df-rtl",p.activeLightBox.app.options.readDirection===p.READ_DIRECTION.RTL),p.activeLightBox.backGround.css({backgroundColor:"transparent"===p.activeLightBox.app.options.backgroundColor?p.defaults.popupBackGroundColor:p.activeLightBox.app.options.backgroundColor})}))},p.checkBrowserURLforDefaults=function(){if(!tc.isIEUnsupported){var e=new URL(location.href).searchParams.get("viewer-type")||new URL(location.href).searchParams.get("viewertype"),t=new URL(location.href).searchParams.get("is-3d")||new URL(location.href).searchParams.get("is3d");e&&(p.defaults.viewerType=e),("true"===t||"false"===t)&&(p.defaults.is3D="true"===t)}},p.fileDropHandler=function(e,t){var i=e[0];"application/pdf"===i.type&&(t.preventDefault(),t.stopPropagation(),p.openFile(i))},p.openFile=function(e){if(e){var t;p.oldLocalFileObjectURL&&window.URL.revokeObjectURL(p.oldLocalFileObjectURL),p.oldLocalFileObjectURL=window.URL.createObjectURL(e),null===(t=p.openFileSelected)||void 0===t||t.call(p,{url:p.oldLocalFileObjectURL,file:e}),p.openURL(p.oldLocalFileObjectURL)}else p.openURL()},p.openURL=function(e){tP(),e&&(p.openFileOptions.source=e,p.openFileOptions.pdfParameters=null),p.openLightBox(p.openLocalFileInput)},p.openBase64=function(e){p.openFileOptions.source=null,p.openFileOptions.pdfParameters={data:atob(e)},p.openURL()},p.openLocalFile=function(){tP(),p.openLocalFileInput.click()},p.initControls=function(){var e=tp("body");if(!1!==p.defaults.autoPDFLinktoViewer&&e.on("click",'a[href$=".pdf"]',function(e){var t=tp(this);void 0!==t.attr("download")||"_blank"===t.attr("target")||t.hasClass("df-ui-btn")||t.parents(".df-app").length>0||(e.preventDefault(),t.data("df-source",t.attr("href")),p.openLightBox(t))}),window.addEventListener("popstate",function(e){p.activeLightBox&&p.activeLightBox.app&&!tc.isChromeExtension()&&p.activeLightBox.closeButton.trigger("click")}),e.on("click",".df-open-local-file",function(e){p.openLocalFile()}),e.on("click",".df-sidemenu-buttons .df-ui-close",function(){tp(this).closest(".df-app").find(".df-ui-btn.df-active").trigger("click")}),e.on("mouseout",".df-link-content section.squareAnnotation, .df-link-content section.textAnnotation, .df-link-content section.freeTextAnnotation",function(){var e=tp(this);p.handlePopup(e,!1)}),e.on("mouseover",".df-link-content section.squareAnnotation, .df-link-content section.textAnnotation, .df-link-content section.freeTextAnnotation",function(){var e=tp(this);p.handlePopup(e,!0)}),p.handlePopup=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],i=e.closest(".df-container"),n=i.find(".df-comment-popup");if(n.toggleClass("df-active",t),t){var o=e[0].getBoundingClientRect(),s=i[0].getBoundingClientRect(),a=e.find(".popupWrapper").first();if(e.hasClass("popupTriggerArea")){var r=e.data("annotation-id");void 0!==r&&(a=e.siblings("[data-annotation-id=popup_"+r+"]"))}n.html(a.html());var l=o.left-s.left;l+360>s.width?l=s.width-360-10:l<10&&(l=10);var h=o.top-s.top+o.height+5;h+n.height()>s.height?h=o.top-n.height()-o.height-10:h<10&&(h=10),n.css({left:l,top:h})}},void 0!=p.fileDropElement){var t=tp(p.fileDropElement);t.length>0&&(t.on("dragover",function(e){e.preventDefault(),e.stopPropagation(),tp(this).addClass("df-dragging")}),t.on("dragleave",function(e){e.preventDefault(),e.stopPropagation(),tp(this).removeClass("df-dragging")}),t.on("drop",function(e){var t=e.originalEvent.dataTransfer.files;t.length&&p.fileDropHandler(t,e)}))}};var tS=p.jQuery,tE=p.REQUEST_STATUS,tx=p.utils,tC=/*#__PURE__*/function(){var e;function t(e){var i,n,o;(function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")})(this,t),this.options=e,this.viewerType=this.options.viewerType,this.startPage=1,this.endPage=1,this.element=tS(this.options.element),e.maxTextureSize=null!==(i=e.maxTextureSize)&&void 0!==i?i:2048,tx.isMobile&&(e.maxTextureSize=4096===e.maxTextureSize?3200:e.maxTextureSize),this.dimensions={padding:{},offset:{},pageFit:{},stage:{},isAutoHeight:"auto"===e.height,maxTextureSize:e.maxTextureSize},this.is3D=e.is3D,this.options.pixelRatio=tx.limitAt(this.options.pixelRatio,1,this.options.maxDPI),this.options.fakeZoom=null!==(n=this.options.fakeZoom)&&void 0!==n?n:1,this.events={},this.links=e.links,this.thumbSize=128,this.pendingZoom=!0,this.currentPageNumber=this.options.openPage||this.startPage,this.hashNavigationEnabled=!0===this.options.hashNavigationEnabled,this.pendingZoom=!0,this.zoomValue=1,this.pageScaling=p.PAGE_SCALE.MANUAL,this.isRTL=e.readDirection===p.READ_DIRECTION.RTL,this.jumpStep=1,this.resizeRequestStatus=tE.OFF,this.refreshRequestStatus=tE.OFF,this.refreshRequestCount=0,this.resizeRequestCount=0,this.fullscreenSupported=tx.hasFullscreenEnabled(),this.thumbRequestCount=0,this.isExternalReady=null===(o=this.options.isExternalReady)||void 0===o||o,this.init(),!0===this.options.autoLightBoxFullscreen&&!0===this.options.isLightBox&&this.switchFullscreen(),this.executeCallback("onCreate"),this.target=this}return e=[{key:"init",value:function(){var e=this.options;if(this.initDOM(),this.initResourcesLocation(),this.initInfo(),(null==e.source||0===e.source.length)&&null==e.pdfParameters){this.updateInfo("ERROR: Set a Valid Document Source.",p.INFO_TYPE.ERROR),this.container.removeClass("df-loading").addClass("df-error");return}if(tx.isIEUnsupported){this.updateInfo("Your browser (Internet Explorer) is out of date! <br><a href='https://browsehappy.com/'>Upgrade to a new browser.</a>","df-old-browser"),this.container.removeClass("df-loading").addClass("df-error");return}this.commentPopup=tS('<div class="df-comment-popup">').appendTo(this.container),this.viewer=new this.viewerType(e,this),this.sideMenu=new ty({parentElement:this.container},this),this.provider=new p.providers[e.providerType](e,this),this.state="loading",this.checkRequestQueue()}},{key:"initDOM",value:function(){this.element.addClass("df-app").removeClass("df-container df-loading"),this.container=tS("<div>").appendTo(this.element),this.container.addClass("df-container df-loading df-init"+(!0===this.options.controlsFloating?" df-float":" df-float-off")+" df-controls-"+this.options.controlsPosition+("transparent"===this.options.backgroundColor?" df-transparent":"")+(!0===this.isRTL?" df-rtl":"")+(!0===tx.isIOS||!0===tx.isIPad?" df-ios":"")),this._offsetParent=this.container[0].offsetParent,this.backGround=tS("<div class='df-bg'>").appendTo(this.container).css({backgroundColor:this.options.backgroundColor,backgroundImage:this.options.backgroundImage?"url('"+this.options.backgroundImage+"')":""}),this.viewerContainer=tS("<div>").appendTo(this.container),this.viewerContainer.addClass("df-viewer-container")}},{key:"initResourcesLocation",value:function(){var e=this.options;if(void 0!==window[p.locationVar]){if(e.pdfjsSrc=window[p.locationVar]+"js/libs/pdf.min.js",e.threejsSrc=window[p.locationVar]+"js/libs/three.min.js",e.pdfjsWorkerSrc=window[p.locationVar]+"js/libs/pdf.worker.min.js",e.soundFile=window[p.locationVar]+e.soundFile,e.imagesLocation=window[p.locationVar]+e.imagesLocation,e.imageResourcesPath=window[p.locationVar]+e.imageResourcesPath,e.cMapUrl=window[p.locationVar]+e.cMapUrl,void 0!==e.pdfVersion){var t="";"latest"==e.pdfVersion||"beta"==e.pdfVersion?t="latest":"stable"==e.pdfVersion&&(t="stable"),("latest"==e.pdfVersion||"default"==e.pdfVersion)&&(Array.prototype.at,void 0===Array.prototype.at&&(t="stable",console.log("Proper Support for Latest version PDF.js 3.7 not available. Switching to PDF.js 2.5!"))),"default"!==t&&""!==t&&(e.pdfjsSrc=window[p.locationVar]+"js/libs/pdfjs/"+t+"/pdf.min.js",e.pdfjsWorkerSrc=window[p.locationVar]+"js/libs/pdfjs/"+t+"/pdf.worker.min.js"),"stable"===t&&(this.options.fakeZoom=1)}}else console.warn("DEARVIEWER locationVar not found!");this.executeCallback("onInitResourcesLocation")}},{key:"initEvents",value:function(){var e=this.container[0];window.addEventListener("resize",this.events.resize=this.resetResizeRequest.bind(this),!1),e.addEventListener("mousemove",this.events.mousemove=this.mouseMove.bind(this),!1),e.addEventListener("mousedown",this.events.mousedown=this.mouseDown.bind(this),!1),window.addEventListener("mouseup",this.events.mouseup=this.mouseUp.bind(this),!1),e.addEventListener("touchmove",this.events.touchmove=this.mouseMove.bind(this),!1),e.addEventListener("touchstart",this.events.touchstart=this.mouseDown.bind(this),!1),window.addEventListener("touchend",this.events.touchend=this.mouseUp.bind(this),!1)}},{key:"mouseMove",value:function(e){e.touches&&e.touches.length>1&&e.preventDefault(),!0===this.viewer.acceptAppMouseEvents&&this.viewer.mouseMove(e)}},{key:"mouseDown",value:function(e){this.userHasInteracted=!0,!0===this.viewer.acceptAppMouseEvents&&0===tS(e.srcElement).closest(".df-sidemenu").length&&this.viewer.mouseDown(e)}},{key:"mouseUp",value:function(e){this.viewer&&!0===this.viewer.acceptAppMouseEvents&&this.viewer.mouseUp(e)}},{key:"softDispose",value:function(){this.softDisposed=!0,this.provider.dispose(),this.viewer.dispose()}},{key:"softInit",value:function(){this.viewer=new this.viewerType(this.options,this),this.provider=new p.providers[this.options.providerType](this.options,this),this.softDisposed=!1}},{key:"dispose",value:function(){var e,t,i,n,o,s=this.container[0];clearInterval(this.autoPlayTimer),this.autoPlayTimer=null,this.autoPlayFunction=null,this.provider=tx.disposeObject(this.provider),this.contentProvider=null,this.target=null,this.viewer=tx.disposeObject(this.viewer),this.sideMenu=tx.disposeObject(this.sideMenu),this.ui=tx.disposeObject(this.ui),this.thumblist=tx.disposeObject(this.thumblist),this.outlineViewer=tx.disposeObject(this.outlineViewer),this.events&&(window.removeEventListener("resize",this.events.resize,!1),s.removeEventListener("mousemove",this.events.mousemove,!1),s.removeEventListener("mousedown",this.events.mousedown,!1),window.removeEventListener("mouseup",this.events.mouseup,!1),s.removeEventListener("touchmove",this.events.touchmove,!1),s.removeEventListener("touchstart",this.events.touchstart,!1),window.removeEventListener("touchend",this.events.touchend,!1)),this.events=null,this.options=null,this.element.removeClass("df-app"),this.viewerType=null,this.checkRequestQueue=null,null===(e=this.info)||void 0===e||e.remove(),this.info=null,null===(t=this.loadingIcon)||void 0===t||t.remove(),this.loadingIcon=null,null===(i=this.backGround)||void 0===i||i.remove(),this.backGround=null,null===(n=this.outlineContainer)||void 0===n||n.remove(),this.outlineContainer=null,null===(o=this.commentPopup)||void 0===o||o.remove(),this.commentPopup=null,this.viewerContainer.off(),this.viewerContainer.remove(),this.viewerContainer=null,this.container.off(),this.container.remove(),this.container=null,this.element.off(),this.element.data("df-app",null),this.element=null,this._offsetParent=null,this.dimensions=null}},{key:"resetResizeRequest",value:function(){this.resizeRequestStatus=tE.COUNT,this.resizeRequestCount=0,this.container.addClass("df-pendingresize"),this.pendingResize=!0}},{key:"initInfo",value:function(){this.info=tS("<div>",{class:"df-loading-info"}),this.container.append(this.info),this.info.html(this.options.text.loading+"..."),this.loadingIcon=tS("<div>",{class:"df-loading-icon"}).appendTo(this.container)}},{key:"updateInfo",value:function(e,t){tx.log(e),void 0!==this.info&&this.info.html(e)}},{key:"_documentLoaded",value:function(){tx.log("Document Loaded"),this.isDocumentReady=!0,this.contentProvider=this.provider,this.executeCallback("onDocumentLoad"),this.endPage=this.pageCount=this.provider.pageCount,this.currentPageNumber=this.getValidPage(this.currentPageNumber)}},{key:"_viewerPrepared",value:function(){tx.log("Viewer Prepared"),this.isViewerPrepared=!0,this.executeCallback("onViewerLoad")}},{key:"requestFinalize",value:function(){!0===this.isDocumentReady&&!0===this.isViewerPrepared&&!0===this.isExternalReady&&!0!==this.finalizeRequested&&(this.finalizeRequested=!0,this.finalize())}},{key:"finalizeComponents",value:function(){this.ui=new tf({},this),this.ui.init(),this.calculateLayout(),this.viewer.init()}},{key:"finalize",value:function(){this.resize(),this.ui.update(),this.initEvents(),!0==this.options.isLightBox&&this.analytics({eventAction:this.options.analyticsViewerOpen,options:this.options}),this.container.removeClass("df-loading df-init"),this.viewer.onReady(),this.analytics({eventAction:this.options.analyticsViewerReady,options:this.options}),this.executeCallback("onReady"),!0===this.options.dataElement.hasClass("df-hash-focused")&&(tx.focusHash(this.options.dataElement),this.options.dataElement.removeClass("df-hash-focused")),!0===this.hashNavigationEnabled&&this.getURLHash(),tx.log("App Finalized")}},{key:"initOutline",value:function(){var e=tS("<div>").addClass("df-outline-container df-sidemenu");e.append('<div class="df-sidemenu-title">'+this.options.text.outlineTitle+"</div>");var t=tS("<div>").addClass("df-wrapper");e.append(t),this.sideMenu.element.append(e),this.outlineContainer=e,this.outlineViewer=new tb({container:t[0],linkService:this.provider.linkService,outlineItemClass:"df-outline-item",outlineToggleClass:"df-outline-toggle",outlineToggleHiddenClass:"df-outlines-hidden"}),this.outlineViewer.render({outline:this.provider.outline})}},{key:"initThumbs",value:function(){var e=this;e.thumblist=new tw({app:e,addFn:function(e){},scrollFn:function(){e.thumbRequestStatus=tE.ON},itemHeight:e.thumbSize,itemWidth:tx.limitAt(Math.floor(e.dimensions.defaultPage.ratio*e.thumbSize),32,180),totalRows:e.pageCount}),e.thumblist.lastScrolled=Date.now(),e.thumbRequestStatus=tE.ON;var t=tS("<div>").addClass("df-thumb-container df-sidemenu");t.append('<div class="df-sidemenu-title">'+this.options.text.thumbTitle+"</div>"),t.append(tS(e.thumblist.container).addClass("df-wrapper")),e.thumbContainer=t,e.sideMenu.element.append(t),e.container.on("click",".df-thumb-container .df-thumb",function(t){t.stopPropagation();var i=tS(this).attr("id").replace("df-thumb","");e.gotoPage(parseInt(i,10))})}},{key:"initSearch",value:function(){var e=this,t=tS("<div>").addClass("df-search-container df-sidemenu");t.append('<div class="df-sidemenu-title">'+this.options.text.searchTitle+"</div>"),e.searchForm=tS('<div class="df-search-form">').appendTo(t),e.searchBox=tS('<input type="text" class="df-search-text" placeholder="'+this.options.text.searchPlaceHolder+'">').on("keyup",function(t){13===t.keyCode&&e.search()}).appendTo(e.searchForm),e.searchButton=tS('<div class="df-ui-btn df-search-btn df-icon-search">').on("click",function(t){e.search()}).appendTo(e.searchForm),e.clearButton=tS('<a class="df-search-clear">'+this.options.text.searchClear+"</a>").on("click",function(t){e.clearSearch()}).appendTo(e.searchForm),e.searchInfo=tS('<div class="df-search-info">').appendTo(t),e.searchResults=tS('<div class="df-wrapper df-search-results">').appendTo(t),e.searchContainer=t,e.sideMenu.element.append(t),e.container.on("click",".df-search-result",function(t){t.stopPropagation();var i=tS(this).data("df-page");e.gotoPage(parseInt(i,10))})}},{key:"search",value:function(e){void 0==e&&(e=this.searchBox.val()),this.provider.search(e.trim())}},{key:"clearSearch",value:function(){this.searchBox.val(""),this.searchInfo.html(""),this.provider.clearSearch()}},{key:"updateSearchInfo",value:function(e){tx.log(e),void 0!==this.searchInfo&&this.searchInfo.html(e)}},{key:"checkRequestQueue",value:function(){var e=this;if(e.checkRequestQueue&&requestAnimationFrame(function(){e&&e.checkRequestQueue&&e.checkRequestQueue()}),!e.softDisposed){if("ready"!=e.state){"loading"===e.state&&!0===this.isDocumentReady&&!0===this.isViewerPrepared&&!0===this.isExternalReady&&(e.state="finalizing",this.finalizeComponents()),"finalizing"===e.state&&(e.state="ready",e.finalize());return}e.container&&e.container[0]&&e._offsetParent!==e.container[0].offsetParent&&(e._offsetParent=e.container[0].offsetParent,null!==e._offsetParent&&(e.resize(),e.resizeRequestStatus=tE.OFF),tx.log("Visibility Resize Detected")),(null!==e._offsetParent||e.isFullscreen)&&(TWEEN.getAll().length>0&&(TWEEN.update(),e.renderRequestStatus=tE.ON),e.resizeRequestStatus===tE.ON?(e.resizeRequestStatus=tE.OFF,e.resize()):e.resizeRequestStatus===tE.COUNT&&(e.resizeRequestCount++,e.resizeRequestCount>10&&(e.resizeRequestCount=0,e.resizeRequestStatus=tE.ON)),e.refreshRequestStatus===tE.ON?(e.refreshRequestStatus=tE.OFF,e.pendingResize=!1,e.viewer.refresh(),e.container.removeClass("df-pendingresize")):e.refreshRequestStatus===tE.COUNT&&(e.refreshRequestCount++,e.refreshRequestCount>3&&(e.refreshRequestCount=0,e.refreshRequestStatus=tE.ON)),e.textureRequestStatus===tE.ON&&e.processTextureRequest(),e.thumbRequestStatus===tE.ON?e.processThumbRequest():e.thumbRequestStatus===tE.COUNT&&(e.thumbRequestCount++,e.thumbRequestCount>3&&(e.thumbRequestCount=0,e.thumbRequestStatus=tE.ON)),e.renderRequestStatus===tE.ON&&(e.viewer.render(),e.renderRequestStatus=tE.OFF),e.provider.checkRequestQueue(),e.viewer.checkRequestQueue())}}},{key:"processTextureRequest",value:function(){var e,t,i=this.viewer,n=this.provider,o=i.getVisiblePages().main,s=0,a=this.zoomValue>1;if(i.isAnimating()&&!0!==DEARFLIP.defaults.instantTextureProcess)this.textureRequestStatus=tE.ON;else{tx.log("Texture Request Working");for(var r=0;r<o.length;r++){s=0;var l=o[r];if(l>0&&l<=this.pageCount){if(e=a?i.zoomViewer.getPageByNumber(l):i.getPageByNumber(l)){t=i.getTextureSize({pageNumber:l});var h={pageNumber:l,textureTarget:a?p.TEXTURE_TARGET.ZOOM:p.TEXTURE_TARGET.VIEWER};e.changeTexture(l,Math.floor(t.height))&&(n.processPage(h),s++,this.viewer.getAnnotationElement(l,!0)),!0===this.options.progressiveZoom&&this.zoomValue>1.1*i.pureMaxZoom&&this.viewer.zoomViewer.startZoomUpdateRequest()}if(s>0)break}}0===s&&(this.textureRequestStatus=tE.OFF)}return s}},{key:"applyTexture",value:function(e,t){var i=void 0!==e.toDataURL;if(t.textureTarget===p.TEXTURE_TARGET.THUMB){if(t.height=e.height,t.width=e.width,i){var n=e.toDataURL("image/png");this.provider.setCache(t.pageNumber,n,this.thumbSize),t.texture=n}else t.texture=e.src;this.thumblist.setPage(t)}else t.texture=i?e:e.src,!0===this.viewer.setPage(t)&&(this.provider.processAnnotations(t.pageNumber,this.viewer.getAnnotationElement(t.pageNumber,!0)),this.provider.processTextContent(t.pageNumber,this.viewer.getTextElement(t.pageNumber,!0)))}},{key:"processThumbRequest",value:function(){null!==this.thumblist&&void 0!==this.thumblist&&this.thumblist.processThumbRequest()}},{key:"refreshRequestStart",value:function(){this.refreshRequestStatus=tE.COUNT,this.refreshRequestCount=0}},{key:"renderRequestStart",value:function(){this.renderRequestStatus=tE.ON}},{key:"resizeRequestStart",value:function(){this.resizeRequestStatus=tE.ON}},{key:"zoom",value:function(e){this.pendingZoom=!0,this.zoomDelta=e,this.resize()}},{key:"resetZoom",value:function(){1!==this.zoomValue&&(this.zoomValue=1.001,this.zoom(-1))}},{key:"calculateLayout",value:function(){var e,t,i=this.isSideMenuOpen=this.container.hasClass("df-sidemenu-open"),n=this.dimensions,o=this.dimensions.padding,s=tS(window).height();n.offset={top:0,left:this.options.sideMenuOverlay||!i||this.isRTL?0:220,right:!this.options.sideMenuOverlay&&i&&this.isRTL?220:0,bottom:0,width:!this.options.sideMenuOverlay&&i?220:0},this.viewerContainer.css({left:n.offset.left,right:n.offset.right});var a=n.controlsHeight=this.container.find(".df-ui").height();if(o.top=this.options.paddingTop+(this.options.controlsPosition===p.CONTROLS_POSITION.TOP?a:0),o.left=this.options.paddingLeft,o.right=this.options.paddingRight,o.bottom=this.options.paddingBottom+(this.options.controlsPosition===p.CONTROLS_POSITION.BOTTOM?a:0),o.height=o.top+o.bottom,o.width=o.left+o.right,o.heightDiff=o.top-o.bottom,o.widthDiff=o.left-o.right,n.isFullSize=!0===this.isFullscreen,n.isFixedHeight=n.isFullSize||!n.isAutoHeight,n.containerWidth=n.isFullSize?tS(window).width():this.element.width(),this.container.toggleClass("df-xs",n.containerWidth<400).toggleClass("df-xss",n.containerWidth<320),n.maxHeight=s-(n.containerWidth>600&&null!==(t=tS(null!==(e=this.options.headerElementSelector)&&void 0!==e?e:"#wpadminbar").height())&&void 0!==t?t:0),n.isFixedHeight){if(n.isFullSize)n.maxHeight=s;else{this.element.height(this.options.height);var r=this.element.height();n.maxHeight=Math.min(r,n.maxHeight)}}n.width,n.stage.innerWidth=this.viewer._getInnerWidth();var l=n.stage.innerHeight=this.viewer._getInnerHeight(),h=this.viewer._getOuterHeight(l+n.padding.height);n.containerHeight=n.isFullSize?s:h,this.element.height(n.containerHeight);var u=this.element.height();n.isFullSize||u==n.containerHeight||(n.containerHeight=u,n.stage.innerHeight=u-n.padding.height,n.stage.height=u),n.origin={x:(o.widthDiff+n.containerWidth-n.offset.left-n.offset.right)/2,y:(o.heightDiff+n.containerHeight)/2},this.viewer.determinePageMode()}},{key:"resize",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];tx.log("Resize Request Initiated"),this.calculateLayout(),this.viewer.handleZoom(),this.viewer.resize(),!1!==e&&(this.pendingZoom?(this.viewer.refresh(),tx.log("Pending Zoom updated")):this.refreshRequestStart(),this.ui.update(),this.renderRequestStatus=tE.ON,this.zoomChanged=!1,this.pendingZoom=!1,this.executeCallback("afterResize"))}},{key:"hasOutline",value:function(){if(this.provider.outline.length>0)return!0}},{key:"switchFullscreen",value:function(){var e,t,i=this,n=i.container[0];if(i.container.toggleClass("df-fullscreen",!0!==i.isFullscreen),(null==i?void 0:null===(t=i.ui)||void 0===t?void 0:null===(e=t.controls)||void 0===e?void 0:e.fullscreen)&&i.ui.controls.fullScreen.toggleClass(i.options.icons["fullscreen-off"],!0!==i.isFullscreen),!0!==i.isFullscreen){var o=null;n.requestFullscreen?o=n.requestFullscreen():n.msRequestFullscreen?o=n.msRequestFullscreen():n.mozRequestFullScreen?o=n.mozRequestFullScreen():n.webkitRequestFullscreen&&(o=n.webkitRequestFullscreen()),o&&o.then&&o.then(function(){i.refreshRequestStatus,tE.ON,i.resize()}),i.isFullscreen=!0}else i.isFullscreen=!1,document.exitFullscreen?document.fullscreenElement&&document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen(),tx.hasFullscreenEnabled()||i.container[0].scrollIntoView();tx.hasFullscreenEnabled()||(i.resizeRequestStatus=tE.ON)}},{key:"next",value:function(){this.jumpBy(this.jumpStep)}},{key:"prev",value:function(){this.jumpBy(-this.jumpStep)}},{key:"jumpBy",value:function(e){var t=this.currentPageNumber+e;t=tx.limitAt(t,this.startPage,this.endPage),!0!=this.anyFirstPageChanged&&(this.analytics({eventAction:this.options.analyticsFirstPageChange,options:this.options}),this.anyFirstPageChanged=!0),this.gotoPage(t),this.ui.update()}},{key:"openRight",value:function(){this.isRTL?this.prev():this.next()}},{key:"openLeft",value:function(){this.isRTL?this.next():this.prev()}},{key:"start",value:function(){this.gotoPage(this.startPage)}},{key:"end",value:function(){this.gotoPage(this.endPage)}},{key:"gotoPage",value:function(e){e=this.getValidPage(parseInt(e,10)),null!==this.viewer&&!1!==this.viewer.validatePageChange(e)&&(this.executeCallback("beforePageChanged"),this.requestDestRefKey=void 0,this.container.removeClass("df-fetch-pdf"),this.oldPageNumber=this.currentPageNumber,this.currentPageNumber=e,this.thumbRequestStatus=tE.ON,this.viewer.gotoPageCallBack&&this.viewer.gotoPageCallBack(),this.ui.update(),!0==this.autoPlay&&this.setAutoPlay(this.autoPlay),!0===this.hashNavigationEnabled&&this.getURLHash(),this.executeCallback("onPageChanged"))}},{key:"gotoPageLabel",value:function(e){this.gotoPage(this.provider.getPageNumberForLabel(e.toString().trim()))}},{key:"getCurrentLabel",value:function(){return this.provider.getLabelforPage(this.currentPageNumber)}},{key:"autoPlayFunction",value:function(){this&&this.autoPlay&&(tx.limitAt(this.currentPageNumber+this.jumpStep,this.startPage,this.endPage)!==this.currentPageNumber?this.next():this.setAutoPlay(!1))}},{key:"setAutoPlay",value:function(e){if(this.options.autoPlay){var t=(e=!0==e)?this.options.text.pause:this.options.text.play;this.ui.controls.play.toggleClass(this.options.icons.pause,e),this.ui.controls.play.html("<span>"+t+"</span>"),this.ui.controls.play.attr("title",t),clearInterval(this.autoPlayTimer),e&&(this.autoPlayTimer=setInterval(this.autoPlayFunction.bind(this),this.options.autoPlayDuration)),this.autoPlay=e}}},{key:"isValidPage",value:function(e){return this.provider._isValidPage(e)}},{key:"getValidPage",value:function(e){return isNaN(e)?e=this.currentPageNumber:e<1?e=1:e>this.pageCount&&(e=this.pageCount),e}},{key:"getURLHash",value:function(){if(null!=this.options.id){var e=tx.getSharePrefix(this.options.sharePrefix)+(null!=this.options.slug?this.options.slug:this.options.id)+"/";null!=this.currentPageNumber&&(e+=this.currentPageNumber+"/"),history.replaceState(void 0,void 0,"#"+e)}return window.location.href}},{key:"executeCallback",value:function(e){}},{key:"analytics",value:function(e){}}],function(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,e),t}();p.prepareOptions=function(e){e.element instanceof tS||(e.element=tS(e.element));var t=e.element;null==e.dataElement&&(e.dataElement=t);var i=e.dataElement,n=p.utils.getOptions(i),o=tS.extend(!0,{},p.defaults,e,n);o=tx.fallbackOptions(o),tx.log(o);var s=tS.extend(!0,{},p._defaults,o);return tx.isMobile&&"function"==typeof p.viewers[s.mobileViewerType]&&(s.viewerType=s.mobileViewerType),"function"!=typeof p.viewers[s.viewerType]?(console.warn("Invalid Viewer Type! "+s.viewerType+" | Using default Viewer!"),s.viewerType=p.viewers.default):s.viewerType=p.viewers[s.viewerType],s=tx.finalizeOptions(tx.sanitizeOptions(s))},p.Application=function(e){var t=p.prepareOptions(e),i=new tC(t);return e.element.data("df-app",i),null!=t.id&&!0!==t.isLightBox&&(window[t.id.toString()]=i),i},void 0!==window.jQuery&&!1==p.fakejQuery&&tS.fn.extend({dearviewer_options:function(e){return null==e&&(e={}),e.element=tS(this),new p.prepareOptions(e)},dearviewer:function(e){return null==e&&(e={}),e.element=tS(this),new p.Application(e)}});var tT=p.jQuery,tk=window.DFLIP=window.DEARFLIP=p;tk.defaults.viewerType="flipbook",tk.slug="dflip",tk.locationVar="dFlipLocation",tk.locationFile="dflip",tk.PAGE_MODE={SINGLE:1,DOUBLE:2,AUTO:null},tk.SINGLE_PAGE_MODE={ZOOM:1,BOOKLET:2,AUTO:null},tk.CONTROLSPOSITION={HIDDEN:"hide",TOP:"top",BOTTOM:"bottom"},tk.DIRECTION={LTR:1,RTL:2},tk.PAGE_SIZE={AUTO:0,SINGLE:1,DOUBLEINTERNAL:2},tk.parseFallBack=function(){tT(".df-posts").addClass("dflip-books"),tT(".dflip-books").addClass("df-posts"),tT("._df_button, ._df_thumb, ._df_book").each(function(){var e=tT(this);"true"!==e.data("df-parsed")&&(e.addClass("df-element"),e.hasClass("_df_book")||(e.hasClass("_df_thumb")?(e.attr("data-df-lightbox","thumb"),void 0!==e.attr("thumb")&&e.data("df-thumb",e.attr("thumb"))):e.attr("data-df-lightbox","button")))})},tk.parseBooks=function(){tk.parseFallBack(),tk.parseElements()};var tO=function(e){return null!=e.source&&(Array===e.source.constructor||Array.isArray(e.source)||e.source instanceof Array)&&(e.providerType="image"),null!=e.cover3DType&&(!0==e.cover3DType||"true"==e.cover3DType?e.cover3DType=tk.FLIPBOOK_COVER_TYPE.BASIC:(!1==e.cover3DType||"false"==e.cover3DType)&&(e.cover3DType=tk.FLIPBOOK_COVER_TYPE.NONE)),void 0!==e.pageSize&&("1"===e.pageSize||1===e.pageSize||e.pageSize===tk.FLIPBOOK_PAGE_SIZE.SINGLE?e.pageSize=tk.FLIPBOOK_PAGE_SIZE.SINGLE:"2"===e.pageSize||2===e.pageSize||e.pageSize===tk.FLIPBOOK_PAGE_SIZE.DOUBLE_INTERNAL?e.pageSize=tk.FLIPBOOK_PAGE_SIZE.DOUBLE_INTERNAL:e.pageSize===tk.FLIPBOOK_PAGE_SIZE.DOUBLE_COVER_BACK||(e.pageSize=tk.FLIPBOOK_PAGE_SIZE.AUTO)),void 0!==e.pageMode&&("1"===e.pageMode||1===e.pageMode||e.pageMode===tk.FLIPBOOK_PAGE_MODE.SINGLE?e.pageMode=tk.FLIPBOOK_PAGE_MODE.SINGLE:"2"===e.pageMode||2===e.pageMode||e.pageMode===tk.FLIPBOOK_PAGE_MODE.DOUBLE?e.pageMode=tk.FLIPBOOK_PAGE_MODE.DOUBLE:e.pageMode=tk.FLIPBOOK_PAGE_MODE.AUTO),void 0!==e.singlePageMode&&("1"===e.singlePageMode||1===e.singlePageMode||e.singlePageMode===tk.FLIPBOOK_SINGLE_PAGE_MODE.ZOOM?e.singlePageMode=tk.FLIPBOOK_SINGLE_PAGE_MODE.ZOOM:"2"===e.singlePageMode||2===e.singlePageMode||e.singlePageMode===tk.FLIPBOOK_SINGLE_PAGE_MODE.BOOKLET?e.singlePageMode=tk.FLIPBOOK_SINGLE_PAGE_MODE.BOOKLET:e.singlePageMode=tk.FLIPBOOK_SINGLE_PAGE_MODE.AUTO),void 0!==e.controlsPosition&&"hide"===e.controlsPosition&&(e.controlsPosition=tk.CONTROLS_POSITION.HIDDEN),void 0!==e.overwritePDFOutline&&(e.overwritePDFOutline=m.isTrue(e.overwritePDFOutline)),void 0!==e.webgl&&(e.is3D=e.webgl=e.webgl,delete e.webgl),void 0!==e.webglShadow&&(e.has3DShadow=m.isTrue(e.webglShadow),delete e.webglShadow),void 0!==e.scrollWheel&&(m.isTrue(e.scrollWheel)&&(e.mouseScrollAction=tk.MOUSE_SCROLL_ACTIONS.ZOOM),delete e.scrollWheel),void 0!==e.stiffness&&delete e.stiffness,void 0!==e.soundEnable&&(e.enableSound=m.isTrue(e.soundEnable),delete e.soundEnable),void 0!==e.enableDownload&&(e.showDownloadControl=m.isTrue(e.enableDownload),delete e.enableDownload),void 0!==e.autoEnableOutline&&(e.autoOpenOutline=m.isTrue(e.autoEnableOutline),delete e.autoEnableOutline),void 0!==e.autoEnableThumbnail&&(e.autoOpenThumbnail=m.isTrue(e.autoEnableThumbnail),delete e.autoEnableThumbnail),void 0!==e.direction&&("2"===e.direction||2===e.direction||e.direction===tk.READ_DIRECTION.RTL?e.readDirection=tk.READ_DIRECTION.RTL:e.readDirection=tk.READ_DIRECTION.LTR,delete e.direction),void 0!==e.hard&&(e.flipbookHardPages=e.hard,"hard"===e.flipbookHardPages&&(e.flipbookHardPages="all"),delete e.hard),void 0!==e.forceFit&&delete e.forceFit,m.sanitizeOptions(e)};tT.fn.extend({flipBook:function(e,t){return null==t&&(t={}),t.source=e,t.element=tT(this),new p.Application(t)}}),tT(document).ready(function(){var e=tT("body");tk.executeCallback("beforeDearFlipInit"),void 0!==window.dFlipWPGlobal&&tT.extend(!0,tk.defaults,tO(window.dFlipWPGlobal)),tk.initUtils(),tk.initControls(),e.on("click",".df-element[data-df-lightbox],.df-element[data-lightbox]",function(e){var t=tT(this);e.preventDefault(),e.stopPropagation(),tk.openLightBox(t)}),tk.checkBrowserURLforDefaults(),tk.parseCSSElements(),tk.parseFallBack(),m.detectHash(),tk.parseNormalElements(),tk.executeCallback("afterDearFlipInit")}),m.finalizeOptions=function(e){return tO(e)},tk.executeCallback("onDearFlipLoad")}()}();
;(function($){
'use strict';
$.fn.fitVids=function(options){
var settings={
customSelector: null,
ignore: null
};
if(!document.getElementById('fit-vids-style')){
var head=document.head||document.getElementsByTagName('head')[0];
var css='.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}';
var div=document.createElement("div");
div.innerHTML='<p>x</p><style id="fit-vids-style">' + css + '</style>';
head.appendChild(div.childNodes[1]);
}
if(options){
$.extend(settings, options);
}
return this.each(function(){
var selectors=[
'iframe[src*="player.vimeo.com"]',
'iframe[src*="youtube.com"]',
'iframe[src*="youtube-nocookie.com"]',
'iframe[src*="kickstarter.com"][src*="video.html"]',
'object',
'embed'
];
if(settings.customSelector){
selectors.push(settings.customSelector);
}
var ignoreList='.fitvidsignore';
if(settings.ignore){
ignoreList=ignoreList + ', ' + settings.ignore;
}
var $allVideos=$(this).find(selectors.join(','));
$allVideos=$allVideos.not('object object');
$allVideos=$allVideos.not(ignoreList);
$allVideos.each(function(){
var $this=$(this);
if($this.parents(ignoreList).length > 0){
return;
}
if(this.tagName.toLowerCase()==='embed'&&$this.parent('object').length||$this.parent('.fluid-width-video-wrapper').length){ return; }
if((!$this.css('height')&&!$this.css('width'))&&(isNaN($this.attr('height'))||isNaN($this.attr('width')))){
$this.attr('height', 9);
$this.attr('width', 16);
}
var height=(this.tagName.toLowerCase()==='object'||($this.attr('height')&&!isNaN(parseInt($this.attr('height'), 10)))) ? parseInt($this.attr('height'), 10):$this.height(),
width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10):$this.width(),
aspectRatio=height / width;
if(!$this.attr('name')){
var videoName='fitvid' + $.fn.fitVids._count;
$this.attr('name', videoName);
$.fn.fitVids._count++;
}
$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+'%');
$this.removeAttr('height').removeAttr('width');
});
});
};
$.fn.fitVids._count=0;
})(window.jQuery||window.Zepto);
window.addComment=function(v){var I,C,h,E=v.document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=v.MutationObserver||v.WebKitMutationObserver||v.MozMutationObserver,r="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){d(),e&&new e(o).observe(E.body,{childList:!0,subtree:!0})}function d(e){if(r&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){I.addEventListener("touchstart",l),I.addEventListener("click",l);function t(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode&&"a"!==E.activeElement.tagName.toLowerCase())return C.removeEventListener("keydown",t),e.preventDefault(),C.submit.click(),!1}C&&C.addEventListener("keydown",t);for(var n,d=function(e){var t=b.commentReplyClass;e&&e.childNodes||(e=E);e=E.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t);return e}(e),o=0,i=d.length;o<i;o++)(n=d[o]).addEventListener("touchstart",a),n.addEventListener("click",a)}}function l(e){var t,n,d=g(b.temporaryFormId);d&&h&&(g(b.parentIdFieldId).value="0",t=d.textContent,d.parentNode.replaceChild(h,d),this.style.display="none",n=(d=(d=g(b.commentReplyTitleId))&&d.firstChild)&&d.nextSibling,d&&d.nodeType===Node.TEXT_NODE&&t&&(n&&"A"===n.nodeName&&n.id!==b.cancelReplyId&&(n.style.display=""),d.textContent=t),e.preventDefault())}function a(e){var t=g(b.commentReplyTitleId),t=t&&t.firstChild.textContent,n=this,d=m(n,"belowelement"),o=m(n,"commentid"),i=m(n,"respondelement"),r=m(n,"postid"),n=m(n,"replyto")||t;d&&o&&i&&r&&!1===v.addComment.moveForm(d,o,i,r,n)&&e.preventDefault()}function o(e){for(var t=e.length;t--;)if(e[t].addedNodes.length)return void d()}function m(e,t){return n?e.dataset[t]:e.getAttribute("data-"+t)}function g(e){return E.getElementById(e)}return r&&"loading"!==E.readyState?t():r&&v.addEventListener("DOMContentLoaded",t,!1),{init:d,moveForm:function(e,t,n,d,o){var i,r,l,a,m,c,s,e=g(e),n=(h=g(n),g(b.parentIdFieldId)),y=g(b.postIdFieldId),p=g(b.commentReplyTitleId),u=(p=p&&p.firstChild)&&p.nextSibling;if(e&&h&&n){void 0===o&&(o=p&&p.textContent),a=h,m=b.temporaryFormId,c=g(m),s=(s=g(b.commentReplyTitleId))?s.firstChild.textContent:"",c||((c=E.createElement("div")).id=m,c.style.display="none",c.textContent=s,a.parentNode.insertBefore(c,a)),d&&y&&(y.value=d),n.value=t,I.style.display="",e.parentNode.insertBefore(h,e.nextSibling),p&&p.nodeType===Node.TEXT_NODE&&(u&&"A"===u.nodeName&&u.id!==b.cancelReplyId&&(u.style.display="none"),p.textContent=o),I.onclick=function(){return!1};try{for(var f=0;f<C.elements.length;f++)if(i=C.elements[f],r=!1,"getComputedStyle"in v?l=v.getComputedStyle(i):E.documentElement.currentStyle&&(l=i.currentStyle),(i.offsetWidth<=0&&i.offsetHeight<=0||"hidden"===l.visibility)&&(r=!0),"hidden"!==i.type&&!i.disabled&&!r){i.focus();break}}catch(e){}return!1}}}}(window);
(function(e, t, n){
typeof define=="function"&&define.amd
? define(["jquery"], function(r){
return n(r, e, t), r.mobile;
})
: n(e.jQuery, e, t);
})(this, document, function(e, t, n, r){
(function(e, t, n, r){
function T(e){
while (e&&typeof e.originalEvent!="undefined") e=e.originalEvent;
return e;
}
function N(t, n){
var i=t.type,
s,
o,
a,
l,
c,
h,
p,
d,
v;
t=e.Event(t);
t.type=n;
s=t.originalEvent;
o=[];
i.search(/^(mouse|click)/) > -1&&(o=f);
if(s) for (p=o.length, l; p;) (l=o[--p]), (t[l]=s[l]);
i.search(/mouse(down|up)|click/) > -1&&!t.which&&(t.which=1);
if(i.search(/^touch/)!==-1){
a=T(s);
i=a.touches;
c=a.changedTouches;
h=i&&i.length ? i[0]:c&&c.length ? c[0]:r;
if(h) for (d=0, v=u.length; d < v; d++) (l=u[d]), (t[l]=h[l]);
}
return t;
}
function P(t, n, r){
var i;
if((r&&r[t])||(!r&&k(n.target, t)))
(i=N(n, t)), e(n.target).trigger(i);
return i;
}
function B(t){
var n=T(t).touches,
r,
i,
o;
n&&n.length===1 &&
((r=t.target),
(i=C(r)),
i.hasVirtualBinding &&
((E=w++),
e.data(r, s, E),
D(),
M(),
(d = !1),
(o=T(t).touches[0]),
(h=o.pageX),
(p=o.pageY),
P("vmouseover", t, i),
P("vmousedown", t, i)));
}
function j(e){
if(g) return;
d||P("vmousecancel", e, C(e.target));
d = !0;
_();
}
function F(t){
if(g) return;
var n=T(t).touches[0],
r=d,
i=e.vmouse.moveDistanceThreshold,
s=C(t.target);
d =
d||Math.abs(n.pageX - h) > i||Math.abs(n.pageY - p) > i;
d&&!r&&P("vmousecancel", t, s);
P("vmousemove", t, s);
_();
}
function I(e){
if(g) return;
A();
var t=C(e.target),
n,
r;
P("vmouseup", e, t);
d ||
((n=P("vclick", e, t)),
n &&
n.isDefaultPrevented() &&
((r=T(e).changedTouches[0]),
v.push({ touchID: E, x: r.clientX, y: r.clientY }),
(m = !0)));
P("vmouseout", e, t);
d = !1;
_();
}
function U(t){
var n=t.substr(1);
return {
setup: function(){
q(this)||e.data(this, i, {});
var r=e.data(this, i);
r[t] = !0;
l[t]=(l[t]||0) + 1;
l[t]===1&&b.on(n, H);
e(this).on(n, R);
y &&
((l.touchstart=(l.touchstart||0) + 1),
l.touchstart===1 &&
b
.on("touchstart", B)
.on("touchend", I)
.on("touchmove", F)
.on("scroll", j));
},
teardown: function(){
--l[t];
l[t]||b.off(n, H);
y &&
(--l.touchstart,
l.touchstart ||
b
.off("touchstart", B)
.off("touchmove", F)
.off("touchend", I)
.off("scroll", j));
var r=e(this),
s=e.data(this, i);
s&&(s[t] = !1);
r.off(n, R);
q(this)||r.removeData(i);
}};}
var i="virtualMouseBindings",
s="virtualTouchID",
o="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "
),
u="clientX clientY pageX pageY screenX screenY".split(" "),
a=e.event.mouseHooks ? e.event.mouseHooks.props:[],
f=[],
l={},
c=0,
h=0,
p=0,
d = !1,
v=[],
m = !1,
g = !1,
y="addEventListener" in n,
b=e(n),
w=1,
E=0,
S,
x;
e.vmouse={
moveDistanceThreshold: 10,
clickDistanceThreshold: 10,
resetTimerDuration: 1500
};
for (x=0; x < o.length; x++) e.event.special[o[x]]=U(o[x]);
y &&
n.addEventListener("click",
function(t){
var n=v.length,
r=t.target,
i,
o,
u,
a,
f,
l;
if(n){
i=t.clientX;
o=t.clientY;
S=e.vmouse.clickDistanceThreshold;
u=r;
while (u){
for (a=0; a < n; a++){
f=v[a];
l=0;
if((u===r &&
Math.abs(f.x - i) < S &&
Math.abs(f.y - o) < S) ||
e.data(u, s)===f.touchID
){
t.preventDefault();
t.stopPropagation();
return;
}}
u=u.parentNode;
}}
},
!0
);
})(e, t, n),
function(e){
e.mobile={};}(e),
function(e, t){
var r={ touch: "ontouchend" in n };
e.mobile.support=e.mobile.support||{};
e.extend(e.support, r);
e.extend(e.mobile.support, r);
}(e),
function(e, t, r){
function l(t, n, i, s){
var o=i.type;
i.type=n;
s ? e.event.trigger(i, r, t):e.event.dispatch.call(t, i);
i.type=o;
}
var i=e(n),
s=e.mobile.support.touch,
o="touchmove scroll",
u=s ? "touchstart":"mousedown",
a=s ? "touchend":"mouseup",
f=s ? "touchmove":"mousemove";
e.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "
),
function(t, n){
e.fn[n]=function(e){
return e ? this.on(n, e):this.trigger(n);
};
e.attrFn&&(e.attrFn[n] = !0);
}
);
e.event.special.swipe={
scrollSupressionThreshold: 30,
durationThreshold: 1e3,
horizontalDistanceThreshold: 30,
verticalDistanceThreshold: 30,
getLocation: function(e){
var n=t.pageXOffset,
r=t.pageYOffset,
i=e.clientX,
s=e.clientY;
if((e.pageY===0&&Math.floor(s) > Math.floor(e.pageY)) ||
(e.pageX===0&&Math.floor(i) > Math.floor(e.pageX))
)
(i -=n), (s -=r);
else if(s < e.pageY - r||i < e.pageX - n)
(i=e.pageX - n), (s=e.pageY - r);
return { x: i, y: s };},
start: function(t){
var n=t.originalEvent.touches ? t.originalEvent.touches[0]:t,
r=e.event.special.swipe.getLocation(n);
return {
time: new Date().getTime(),
coords: [r.x, r.y],
origin: e(t.target)
};},
stop: function(t){
var n=t.originalEvent.touches ? t.originalEvent.touches[0]:t,
r=e.event.special.swipe.getLocation(n);
return { time: new Date().getTime(), coords: [r.x, r.y] };},
handleSwipe: function(t, n, r, i){
if(n.time - t.time < e.event.special.swipe.durationThreshold &&
Math.abs(t.coords[0] - n.coords[0]) >
e.event.special.swipe.horizontalDistanceThreshold &&
Math.abs(t.coords[1] - n.coords[1]) <
e.event.special.swipe.verticalDistanceThreshold
){
var s=t.coords[0] > n.coords[0] ? "swipeleft":"swiperight";
return (
l(r, "swipe", e.Event("swipe", { target: i, swipestart: t, swipestop: n }), !0),
l(r, s, e.Event(s, { target: i, swipestart: t, swipestop: n }), !0),
!0
);
}
return !1;
},
eventInProgress: !1,
setup: function(){
var t,
n=this,
r=e(n),
s={};
(t=e.data(this, "mobile-events")),
t||((t={ length: 0 }), e.data(this, "mobile-events", t)),
t.length++,
(t.swipe=s),
(s.start=function(t){
if(e.event.special.swipe.eventInProgress) return;
e.event.special.swipe.eventInProgress = !0;
var r,
o=e.event.special.swipe.start(t),
u=t.target,
l = !1;
(s.move=function(t){
if(!o||t.isDefaultPrevented()) return;
(r=e.event.special.swipe.stop(t)),
l ||
(l=e.event.special.swipe.handleSwipe(o, r, n, u)),
l&&(e.event.special.swipe.eventInProgress = !1),
Math.abs(o.coords[0] - r.coords[0]) >
e.event.special.swipe.scrollSupressionThreshold &&
t.preventDefault();
}),
(s.stop=function(){
l = !0;
e.event.special.swipe.eventInProgress = !1;
i.off(f, s.move);
s.move=null;
});
i.on(f, s.move).one(a, s.stop);
}),
r.on(u, s.start);
},
teardown: function(){
var t, n;
(t=e.data(this, "mobile-events")),
t&&((n=t.swipe), delete t.swipe, t.length--, t.length===0&&e.removeData(this, "mobile-events")),
n &&
(n.start&&e(this).off(u, n.start),
n.move&&i.off(f, n.move),
n.stop&&i.off(a, n.stop));
}};
e.each({ swipeleft: "swipe.left", swiperight: "swipe.right" },
function(t, n){
e.event.special[t]={
setup: function(){
e(this).on(n, e.noop);
},
teardown: function(){
e(this).off(n);
}};}
);
}(e, this);
});
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(window.jQuery||window.Zepto)}(function(c){function e(){}function d(e,t){m.ev.on(x+e+I,t)}function p(e,t,n,o){var i=document.createElement("div");return i.className="mfp-"+e,n&&(i.innerHTML=n),o?t&&t.appendChild(i):(i=c(i),t&&i.appendTo(t)),i}function u(e,t){m.ev.triggerHandler(x+e,t),m.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),m.st.callbacks[e])&&m.st.callbacks[e].apply(m,Array.isArray(t)?t:[t])}function f(e){return e===A&&m.currTemplate.closeBtn||(m.currTemplate.closeBtn=c(m.st.closeMarkup.replace("%title%",m.st.tClose)),A=e),m.currTemplate.closeBtn}function r(){c.magnificPopup.instance||((m=new e).init(),c.magnificPopup.instance=m)}function a(){y&&(v.after(y.addClass(l)).detach(),y=null)}function i(){n&&c(document.body).removeClass(n)}function t(){i(),m.req&&m.req.abort()}var m,o,g,s,h,A,l,v,y,n,w="Close",F="BeforeClose",C="MarkupParse",b="Open",j="Change",x="mfp",I="."+x,T="mfp-ready",N="mfp-removing",k="mfp-prevent-close",P=!!window.jQuery,_=c(window),S=(c.magnificPopup={instance:null,proto:e.prototype={constructor:e,init:function(){var e=navigator.appVersion;m.isLowIE=m.isIE8=document.all&&!document.addEventListener,m.isAndroid=/android/gi.test(e),m.isIOS=/iphone|ipad|ipod/gi.test(e),m.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),m.probablyMobile=m.isAndroid||m.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),g=c(document),m.popupsCache={}},open:function(e){if(!1===e.isObj){m.items=e.items.toArray(),m.index=0;for(var t,n=e.items,o=0;o<n.length;o++)if((t=(t=n[o]).parsed?t.el[0]:t)===e.el[0]){m.index=o;break}}else m.items=Array.isArray(e.items)?e.items:[e.items],m.index=e.index||0;if(!m.isOpen){m.types=[],h="",e.mainEl&&e.mainEl.length?m.ev=e.mainEl.eq(0):m.ev=g,e.key?(m.popupsCache[e.key]||(m.popupsCache[e.key]={}),m.currTemplate=m.popupsCache[e.key]):m.currTemplate={},m.st=c.extend(!0,{},c.magnificPopup.defaults,e),m.fixedContentPos="auto"===m.st.fixedContentPos?!m.probablyMobile:m.st.fixedContentPos,m.st.modal&&(m.st.closeOnContentClick=!1,m.st.closeOnBgClick=!1,m.st.showCloseBtn=!1,m.st.enableEscapeKey=!1),m.bgOverlay||(m.bgOverlay=p("bg").on("click"+I,function(){m.close()}),m.wrap=p("wrap").attr("tabindex",-1).on("click"+I,function(e){m._checkIfClose(e.target)&&m.close()}),m.container=p("container",m.wrap)),m.contentContainer=p("content"),m.st.preloader&&(m.preloader=p("preloader",m.container,m.st.tLoading));var i=c.magnificPopup.modules;for(o=0;o<i.length;o++){var r=(r=i[o]).charAt(0).toUpperCase()+r.slice(1);m["init"+r].call(m)}u("BeforeOpen"),m.st.showCloseBtn&&(m.st.closeBtnInside?(d(C,function(e,t,n,o){n.close_replaceWith=f(o.type)}),h+=" mfp-close-btn-in"):m.wrap.append(f())),m.st.alignTop&&(h+=" mfp-align-top"),m.fixedContentPos?m.wrap.css({overflow:m.st.overflowY,overflowX:"hidden",overflowY:m.st.overflowY}):m.wrap.css({top:_.scrollTop(),position:"absolute"}),!1!==m.st.fixedBgPos&&("auto"!==m.st.fixedBgPos||m.fixedContentPos)||m.bgOverlay.css({height:g.height(),position:"absolute"}),m.st.enableEscapeKey&&g.on("keyup"+I,function(e){27===e.keyCode&&m.close()}),_.on("resize"+I,function(){m.updateSize()}),m.st.closeOnContentClick||(h+=" mfp-auto-cursor"),h&&m.wrap.addClass(h);var a=m.wH=_.height(),s={},l=(m.fixedContentPos&&m._hasScrollBar(a)&&(l=m._getScrollbarSize())&&(s.marginRight=l),m.fixedContentPos&&(m.isIE7?c("body, html").css("overflow","hidden"):s.overflow="hidden"),m.st.mainClass);return m.isIE7&&(l+=" mfp-ie7"),l&&m._addClassToMFP(l),m.updateItemHTML(),u("BuildControls"),c("html").css(s),m.bgOverlay.add(m.wrap).prependTo(m.st.prependTo||c(document.body)),m._lastFocusedEl=document.activeElement,setTimeout(function(){m.content?(m._addClassToMFP(T),m._setFocus()):m.bgOverlay.addClass(T),g.on("focusin"+I,m._onFocusIn)},16),m.isOpen=!0,m.updateSize(a),u(b),e}m.updateItemHTML()},close:function(){m.isOpen&&(u(F),m.isOpen=!1,m.st.removalDelay&&!m.isLowIE&&m.supportsTransition?(m._addClassToMFP(N),setTimeout(function(){m._close()},m.st.removalDelay)):m._close())},_close:function(){u(w);var e=N+" "+T+" ";m.bgOverlay.detach(),m.wrap.detach(),m.container.empty(),m.st.mainClass&&(e+=m.st.mainClass+" "),m._removeClassFromMFP(e),m.fixedContentPos&&(e={marginRight:""},m.isIE7?c("body, html").css("overflow",""):e.overflow="",c("html").css(e)),g.off("keyup.mfp focusin"+I),m.ev.off(I),m.wrap.attr("class","mfp-wrap").removeAttr("style"),m.bgOverlay.attr("class","mfp-bg"),m.container.attr("class","mfp-container"),!m.st.showCloseBtn||m.st.closeBtnInside&&!0!==m.currTemplate[m.currItem.type]||m.currTemplate.closeBtn&&m.currTemplate.closeBtn.detach(),m.st.autoFocusLast&&m._lastFocusedEl&&c(m._lastFocusedEl).trigger("focus"),m.currItem=null,m.content=null,m.currTemplate=null,m.prevHeight=0,u("AfterClose")},updateSize:function(e){var t;m.isIOS?(t=document.documentElement.clientWidth/window.innerWidth,t=window.innerHeight*t,m.wrap.css("height",t),m.wH=t):m.wH=e||_.height(),m.fixedContentPos||m.wrap.css("height",m.wH),u("Resize")},updateItemHTML:function(){var e=m.items[m.index],t=(m.contentContainer.detach(),m.content&&m.content.detach(),(e=e.parsed?e:m.parseEl(m.index)).type),n=(u("BeforeChange",[m.currItem?m.currItem.type:"",t]),m.currItem=e,m.currTemplate[t]||(n=!!m.st[t]&&m.st[t].markup,u("FirstMarkupParse",n),m.currTemplate[t]=!n||c(n)),s&&s!==e.type&&m.container.removeClass("mfp-"+s+"-holder"),m["get"+t.charAt(0).toUpperCase()+t.slice(1)](e,m.currTemplate[t]));m.appendContent(n,t),e.preloaded=!0,u(j,e),s=e.type,m.container.prepend(m.contentContainer),u("AfterChange")},appendContent:function(e,t){(m.content=e)?m.st.showCloseBtn&&m.st.closeBtnInside&&!0===m.currTemplate[t]?m.content.find(".mfp-close").length||m.content.append(f()):m.content=e:m.content="",u("BeforeAppend"),m.container.addClass("mfp-"+t+"-holder"),m.contentContainer.append(m.content)},parseEl:function(e){var t,n=m.items[e];if((n=n.tagName?{el:c(n)}:(t=n.type,{data:n,src:n.src})).el){for(var o=m.types,i=0;i<o.length;i++)if(n.el.hasClass("mfp-"+o[i])){t=o[i];break}n.src=n.el.attr("data-mfp-src"),n.src||(n.src=n.el.attr("href"))}return n.type=t||m.st.type||"inline",n.index=e,n.parsed=!0,m.items[e]=n,u("ElementParse",n),m.items[e]},addGroup:function(t,n){function e(e){e.mfpEl=this,m._openClick(e,t,n)}var o="click.magnificPopup";(n=n||{}).mainEl=t,n.items?(n.isObj=!0,t.off(o).on(o,e)):(n.isObj=!1,n.delegate?t.off(o).on(o,n.delegate,e):(n.items=t).off(o).on(o,e))},_openClick:function(e,t,n){var o=(void 0!==n.midClick?n:c.magnificPopup.defaults).midClick;if(o||!(2===e.which||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey)){o=(void 0!==n.disableOn?n:c.magnificPopup.defaults).disableOn;if(o)if("function"==typeof o){if(!o.call(m))return!0}else if(_.width()<o)return!0;e.type&&(e.preventDefault(),m.isOpen)&&e.stopPropagation(),n.el=c(e.mfpEl),n.delegate&&(n.items=t.find(n.delegate)),m.open(n)}},updateStatus:function(e,t){var n;m.preloader&&(o!==e&&m.container.removeClass("mfp-s-"+o),n={status:e,text:t=t||"loading"!==e?t:m.st.tLoading},u("UpdateStatus",n),e=n.status,t=n.text,m.st.allowHTMLInStatusIndicator?m.preloader.html(t):m.preloader.text(t),m.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),m.container.addClass("mfp-s-"+e),o=e)},_checkIfClose:function(e){if(!c(e).closest("."+k).length){var t=m.st.closeOnContentClick,n=m.st.closeOnBgClick;if(t&&n)return!0;if(!m.content||c(e).closest(".mfp-close").length||m.preloader&&e===m.preloader[0])return!0;if(e===m.content[0]||c.contains(m.content[0],e)){if(t)return!0}else if(n&&c.contains(document,e))return!0;return!1}},_addClassToMFP:function(e){m.bgOverlay.addClass(e),m.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),m.wrap.removeClass(e)},_hasScrollBar:function(e){return(m.isIE7?g.height():document.body.scrollHeight)>(e||_.height())},_setFocus:function(){(m.st.focus?m.content.find(m.st.focus).eq(0):m.wrap).trigger("focus")},_onFocusIn:function(e){if(e.target!==m.wrap[0]&&!c.contains(m.wrap[0],e.target))return m._setFocus(),!1},_parseMarkup:function(i,e,t){var r;t.data&&(e=c.extend(t.data,e)),u(C,[i,e,t]),c.each(e,function(e,t){if(void 0===t||!1===t)return!0;var n,o;1<(r=e.split("_")).length?0<(n=i.find(I+"-"+r[0])).length&&("replaceWith"===(o=r[1])?n[0]!==t[0]&&n.replaceWith(t):"img"===o?n.is("img")?n.attr("src",t):n.replaceWith(c("<img>").attr("src",t).attr("class",n.attr("class"))):n.attr(r[1],t)):m.st.allowHTMLInTemplate?i.find(I+"-"+e).html(t):i.find(I+"-"+e).text(t)})},_getScrollbarSize:function(){var e;return void 0===m.scrollbarSize&&((e=document.createElement("div")).style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),m.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),m.scrollbarSize}},modules:[],open:function(e,t){return r(),(e=e?c.extend(!0,{},e):{}).isObj=!0,e.index=t||0,this.instance.open(e)},close:function(){return c.magnificPopup.instance&&c.magnificPopup.instance.close()},registerModule:function(e,t){t.options&&(c.magnificPopup.defaults[e]=t.options),c.extend(this.proto,t.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0,allowHTMLInStatusIndicator:!1,allowHTMLInTemplate:!1}},c.fn.magnificPopup=function(e){r();var t,n,o,i=c(this);return"string"==typeof e?"open"===e?(t=P?i.data("magnificPopup"):i[0].magnificPopup,n=parseInt(arguments[1],10)||0,o=t.items?t.items[n]:(o=i,(o=t.delegate?o.find(t.delegate):o).eq(n)),m._openClick({mfpEl:o},i,t)):m.isOpen&&m[e].apply(m,Array.prototype.slice.call(arguments,1)):(e=c.extend(!0,{},e),P?i.data("magnificPopup",e):i[0].magnificPopup=e,m.addGroup(i,e)),i},"inline"),E=(c.magnificPopup.registerModule(S,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){m.types.push(S),d(w+"."+S,function(){a()})},getInline:function(e,t){var n,o,i;return a(),e.src?(n=m.st.inline,(o=c(e.src)).length?((i=o[0].parentNode)&&i.tagName&&(v||(l=n.hiddenClass,v=p(l),l="mfp-"+l),y=o.after(v).detach().removeClass(l)),m.updateStatus("ready")):(m.updateStatus("error",n.tNotFound),o=c("<div>")),e.inlineElement=o):(m.updateStatus("ready"),m._parseMarkup(t,{},e),t)}}}),"ajax");c.magnificPopup.registerModule(E,{options:{settings:null,cursor:"mfp-ajax-cur",tError:"The content could not be loaded."},proto:{initAjax:function(){m.types.push(E),n=m.st.ajax.cursor,d(w+"."+E,t),d("BeforeChange."+E,t)},getAjax:function(o){n&&c(document.body).addClass(n),m.updateStatus("loading");var e=c.extend({url:o.src,success:function(e,t,n){e={data:e,xhr:n};u("ParseAjax",e),m.appendContent(c(e.data),E),o.finished=!0,i(),m._setFocus(),setTimeout(function(){m.wrap.addClass(T)},16),m.updateStatus("ready"),u("AjaxContentAdded")},error:function(){i(),o.finished=o.loadError=!0,m.updateStatus("error",m.st.ajax.tError.replace("%url%",o.src))}},m.st.ajax.settings);return m.req=c.ajax(e),""}}});var z;c.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:"The image could not be loaded."},proto:{initImage:function(){var e=m.st.image,t=".image";m.types.push("image"),d(b+t,function(){"image"===m.currItem.type&&e.cursor&&c(document.body).addClass(e.cursor)}),d(w+t,function(){e.cursor&&c(document.body).removeClass(e.cursor),_.off("resize"+I)}),d("Resize"+t,m.resizeImage),m.isLowIE&&d("AfterChange",m.resizeImage)},resizeImage:function(){var e,t=m.currItem;t&&t.img&&m.st.image.verticalFit&&(e=0,m.isLowIE&&(e=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",m.wH-e))},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,z&&clearInterval(z),e.isCheckingImgSize=!1,u("ImageHasSize",e),e.imgHidden)&&(m.content&&m.content.removeClass("mfp-loading"),e.imgHidden=!1)},findImageSize:function(t){function n(e){z&&clearInterval(z),z=setInterval(function(){0<i.naturalWidth?m._onImageHasSize(t):(200<o&&clearInterval(z),3===++o?n(10):40===o?n(50):100===o&&n(500))},e)}var o=0,i=t.img[0];n(1)},getImage:function(e,t){function n(){e&&(e.img.off(".mfploader"),e===m.currItem&&(m._onImageHasSize(e),m.updateStatus("error",a.tError.replace("%url%",e.src))),e.hasSize=!0,e.loaded=!0,e.loadError=!0)}function o(){e&&(e.img[0].complete?(e.img.off(".mfploader"),e===m.currItem&&(m._onImageHasSize(e),m.updateStatus("ready")),e.hasSize=!0,e.loaded=!0,u("ImageLoadComplete")):++r<200?setTimeout(o,100):n())}var i,r=0,a=m.st.image,s=t.find(".mfp-img");return s.length&&((i=document.createElement("img")).className="mfp-img",e.el&&e.el.find("img").length&&(i.alt=e.el.find("img").attr("alt")),e.img=c(i).on("load.mfploader",o).on("error.mfploader",n),i.src=e.src,s.is("img")&&(e.img=e.img.clone()),0<(i=e.img[0]).naturalWidth?e.hasSize=!0:i.width||(e.hasSize=!1)),m._parseMarkup(t,{title:function(e){if(e.data&&void 0!==e.data.title)return e.data.title;var t=m.st.image.titleSrc;if(t){if("function"==typeof t)return t.call(m,e);if(e.el)return e.el.attr(t)||""}return""}(e),img_replaceWith:e.img},e),m.resizeImage(),e.hasSize?(z&&clearInterval(z),e.loadError?(t.addClass("mfp-loading"),m.updateStatus("error",a.tError.replace("%url%",e.src))):(t.removeClass("mfp-loading"),m.updateStatus("ready"))):(m.updateStatus("loading"),e.loading=!0,e.hasSize||(e.imgHidden=!0,t.addClass("mfp-loading"),m.findImageSize(e))),t}}});function O(e){var t;m.currTemplate[L]&&(t=m.currTemplate[L].find("iframe")).length&&(e||(t[0].src="//about:blank"),m.isIE8)&&t.css("display",e?"block":"none")}function M(e){var t=m.items.length;return t-1<e?e-t:e<0?t+e:e}function D(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)}c.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,t,n,o,i,r,a=m.st.zoom,s=".zoom";a.enabled&&m.supportsTransition&&(t=a.duration,n=function(e){var e=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),t="all "+a.duration/1e3+"s "+a.easing,n={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return n["-webkit-"+o]=n["-moz-"+o]=n["-o-"+o]=n[o]=t,e.css(n),e},o=function(){m.content.css("visibility","visible")},d("BuildControls"+s,function(){m._allowZoom()&&(clearTimeout(i),m.content.css("visibility","hidden"),(e=m._getItemToZoom())?((r=n(e)).css(m._getOffset()),m.wrap.append(r),i=setTimeout(function(){r.css(m._getOffset(!0)),i=setTimeout(function(){o(),setTimeout(function(){r.remove(),e=r=null,u("ZoomAnimationEnded")},16)},t)},16)):o())}),d(F+s,function(){if(m._allowZoom()){if(clearTimeout(i),m.st.removalDelay=t,!e){if(!(e=m._getItemToZoom()))return;r=n(e)}r.css(m._getOffset(!0)),m.wrap.append(r),m.content.css("visibility","hidden"),setTimeout(function(){r.css(m._getOffset())},16)}}),d(w+s,function(){m._allowZoom()&&(o(),r&&r.remove(),e=null)}))},_allowZoom:function(){return"image"===m.currItem.type},_getItemToZoom:function(){return!!m.currItem.hasSize&&m.currItem.img},_getOffset:function(e){var e=e?m.currItem.img:m.st.zoom.opener(m.currItem.el||m.currItem),t=e.offset(),n=parseInt(e.css("padding-top"),10),o=parseInt(e.css("padding-bottom"),10),e=(t.top-=c(window).scrollTop()-n,{width:e.width(),height:(P?e.innerHeight():e[0].offsetHeight)-o-n});return(B=void 0===B?void 0!==document.createElement("p").style.MozTransform:B)?e["-moz-transform"]=e.transform="translate("+t.left+"px,"+t.top+"px)":(e.left=t.left,e.top=t.top),e}}});var B,L="iframe",H=(c.magnificPopup.registerModule(L,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){m.types.push(L),d("BeforeChange",function(e,t,n){t!==n&&(t===L?O():n===L&&O(!0))}),d(w+"."+L,function(){O()})},getIframe:function(e,t){var n=e.src,o=m.st.iframe,i=(c.each(o.patterns,function(){if(-1<n.indexOf(this.index))return this.id&&(n="string"==typeof this.id?n.substr(n.lastIndexOf(this.id)+this.id.length,n.length):this.id.call(this,n)),n=this.src.replace("%id%",n),!1}),{});return o.srcAction&&(i[o.srcAction]=n),m._parseMarkup(t,i,e),m.updateStatus("ready"),t}}}),c.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%",langDir:null,loop:!0},proto:{initGallery:function(){var r=m.st.gallery,e=".mfp-gallery";if(m.direction=!0,!r||!r.enabled)return!1;r.langDir||(r.langDir=document.dir||"ltr"),h+=" mfp-gallery",d(b+e,function(){r.navigateByImgClick&&m.wrap.on("click"+e,".mfp-img",function(){if(1<m.items.length)return m.next(),!1}),g.on("keydown"+e,function(e){37===e.keyCode?"rtl"===r.langDir?m.next():m.prev():39===e.keyCode&&("rtl"===r.langDir?m.prev():m.next())}),m.updateGalleryButtons()}),d("UpdateStatus"+e,function(){m.updateGalleryButtons()}),d("UpdateStatus"+e,function(e,t){t.text&&(t.text=D(t.text,m.currItem.index,m.items.length))}),d(C+e,function(e,t,n,o){var i=m.items.length;n.counter=1<i?D(r.tCounter,o.index,i):""}),d("BuildControls"+e,function(){var e,t,n,o,i;1<m.items.length&&r.arrows&&!m.arrowLeft&&(t="rtl"===r.langDir?(o=r.tNext,e=r.tPrev,i="next","prev"):(o=r.tPrev,e=r.tNext,i="prev","next"),n=r.arrowMarkup,o=m.arrowLeft=c(n.replace(/%title%/gi,o).replace(/%action%/gi,i).replace(/%dir%/gi,"left")).addClass(k),i=m.arrowRight=c(n.replace(/%title%/gi,e).replace(/%action%/gi,t).replace(/%dir%/gi,"right")).addClass(k),"rtl"===r.langDir?(m.arrowNext=o,m.arrowPrev=i):(m.arrowNext=i,m.arrowPrev=o),o.on("click",function(){"rtl"===r.langDir?m.next():m.prev()}),i.on("click",function(){"rtl"===r.langDir?m.prev():m.next()}),m.container.append(o.add(i)))}),d(j+e,function(){m._preloadTimeout&&clearTimeout(m._preloadTimeout),m._preloadTimeout=setTimeout(function(){m.preloadNearbyImages(),m._preloadTimeout=null},16)}),d(w+e,function(){g.off(e),m.wrap.off("click"+e),m.arrowRight=m.arrowLeft=null})},next:function(){var e=M(m.index+1);if(!m.st.gallery.loop&&0===e)return!1;m.direction=!0,m.index=e,m.updateItemHTML()},prev:function(){var e=m.index-1;if(!m.st.gallery.loop&&e<0)return!1;m.direction=!1,m.index=M(e),m.updateItemHTML()},goTo:function(e){m.direction=e>=m.index,m.index=e,m.updateItemHTML()},preloadNearbyImages:function(){for(var e=m.st.gallery.preload,t=Math.min(e[0],m.items.length),n=Math.min(e[1],m.items.length),o=1;o<=(m.direction?n:t);o++)m._preloadItem(m.index+o);for(o=1;o<=(m.direction?t:n);o++)m._preloadItem(m.index-o)},_preloadItem:function(e){var t;e=M(e),m.items[e].preloaded||((t=m.items[e]).parsed||(t=m.parseEl(e)),u("LazyLoad",t),"image"===t.type&&(t.img=c('<img class="mfp-img" />').on("load.mfploader",function(){t.hasSize=!0}).on("error.mfploader",function(){t.hasSize=!0,t.loadError=!0,u("LazyLoadError",t)}).attr("src",t.src)),t.preloaded=!0)},updateGalleryButtons:function(){m.st.gallery.loop||"object"!=typeof m.arrowPrev||null===m.arrowPrev||(0===m.index?m.arrowPrev.hide():m.arrowPrev.show(),m.index===m.items.length-1?m.arrowNext.hide():m.arrowNext.show())}}}),"retina");c.magnificPopup.registerModule(H,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){var n,o;1<window.devicePixelRatio&&(n=m.st.retina,o=n.ratio,1<(o=isNaN(o)?o():o))&&(d("ImageHasSize."+H,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/o,width:"100%"})}),d("ElementParse."+H,function(e,t){t.src=n.replaceSrc(t,o)}))}}}),r()});
(function(root, factory){
if(typeof exports==='object'){
module.exports=factory(require('jquery'));
}
else if(typeof define==='function'&&define.amd){
define(['jquery'], factory);
}else{
factory(root.jQuery);
}}(this, function($){
var CanvasRenderer=function(el, options){
var cachedBackground;
var canvas=document.createElement('canvas');
el.appendChild(canvas);
if(typeof(G_vmlCanvasManager)!=='undefined'){
G_vmlCanvasManager.initElement(canvas);
}
var ctx=canvas.getContext('2d');
canvas.width=canvas.height=options.size;
var scaleBy=1;
if(window.devicePixelRatio > 1){
scaleBy=window.devicePixelRatio;
canvas.style.width=canvas.style.height=[options.size, 'px'].join('');
canvas.width=canvas.height=options.size * scaleBy;
ctx.scale(scaleBy, scaleBy);
}
ctx.translate(options.size / 2, options.size / 2);
ctx.rotate((-1 / 2 + options.rotate / 180) * Math.PI);
var radius=(options.size - options.lineWidth) / 2;
if(options.scaleColor&&options.scaleLength){
radius -=options.scaleLength + 2;
}
Date.now=Date.now||function(){
return +(new Date());
};
var drawCircle=function(color, lineWidth, percent, alpha){
percent=Math.min(Math.max(-1, percent||0), 1);
var isNegative=percent <=0 ? true:false;
ctx.beginPath();
ctx.arc(0, 0, radius, 0, Math.PI * 2 * percent, isNegative);
ctx.strokeStyle=color;
ctx.globalAlpha=alpha;
ctx.lineWidth=lineWidth;
ctx.stroke();
};
var drawScale=function(){
var offset;
var length;
ctx.lineWidth=1;
ctx.fillStyle=options.scaleColor;
ctx.save();
for (var i=24; i > 0; --i){
if(i % 6===0){
length=options.scaleLength;
offset=0;
}else{
length=options.scaleLength * 0.6;
offset=options.scaleLength - length;
}
ctx.fillRect(-options.size/2 + offset, 0, length, 1);
ctx.rotate(Math.PI / 12);
}
ctx.restore();
};
var reqAnimationFrame=(function(){
return  window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
function(callback){
window.setTimeout(callback, 1000 / 60);
};}());
var drawBackground=function(){
if(options.scaleColor) drawScale();
if(options.trackColor) drawCircle(options.trackColor, options.lineWidth, 1, options.trackAlpha);
};
this.getCanvas=function(){
return canvas;
};
this.getCtx=function(){
return ctx;
};
this.clear=function(){
ctx.clearRect(options.size / -2, options.size / -2, options.size, options.size);
};
this.draw=function(percent){
if(!!options.scaleColor||!!options.trackColor){
if(ctx.getImageData&&ctx.putImageData){
if(!cachedBackground){
drawBackground();
cachedBackground=ctx.getImageData(0, 0, options.size * scaleBy, options.size * scaleBy);
}else{
ctx.putImageData(cachedBackground, 0, 0);
}}else{
this.clear();
drawBackground();
}}else{
this.clear();
}
ctx.lineCap=options.lineCap;
var color;
if(typeof(options.barColor)==='function'){
color=options.barColor(percent);
}else{
color=options.barColor;
}
drawCircle(color, options.lineWidth, percent / 100, options.barAlpha);
}.bind(this);
this.animate=function(from, to){
var startTime=Date.now();
options.onStart(from, to);
var animation=function(){
var process=Math.min(Date.now() - startTime, options.animate.duration);
var currentValue=options.easing(this, process, from, to - from, options.animate.duration);
this.draw(currentValue);
options.onStep(from, to, currentValue);
if(process >=options.animate.duration){
options.onStop(from, to);
}else{
reqAnimationFrame(animation);
}}.bind(this);
reqAnimationFrame(animation);
}.bind(this);
};
var EasyPieChart=function(el, opts){
var defaultOptions={
barColor: '#ef1e25',
barAlpha: 1.0,
trackColor: '#f9f9f9',
trackAlpha: 1.0,
scaleColor: '#dfe0e0',
scaleLength: 5,
lineCap: 'round',
lineWidth: 3,
size: 110,
rotate: 0,
render: true,
animate: {
duration: 1000,
enabled: true
},
easing: function (x, t, b, c, d){ // more can be found here: http://gsgd.co.uk/sandbox/jquery/easing/
t=t / (d/2);
if(t < 1){
return c / 2 * t * t + b;
}
return -c/2 * ((--t)*(t-2) - 1) + b;
},
onStart: function(from, to){
return;
},
onStep: function(from, to, currentValue){
return;
},
onStop: function(from, to){
return;
}};
if(typeof(CanvasRenderer)!=='undefined'){
defaultOptions.renderer=CanvasRenderer;
}else if(typeof(SVGRenderer)!=='undefined'){
defaultOptions.renderer=SVGRenderer;
}else{
throw new Error('Please load either the SVG- or the CanvasRenderer');
}
var options={};
var currentValue=0;
var init=function(){
this.el=el;
this.options=options;
for (var i in defaultOptions){
if(defaultOptions.hasOwnProperty(i)){
options[i]=opts&&typeof(opts[i])!=='undefined' ? opts[i]:defaultOptions[i];
if(typeof(options[i])==='function'){
options[i]=options[i].bind(this);
}}
}
if(typeof(options.easing)==='string'&&typeof(jQuery)!=='undefined'&&'function'===typeof jQuery.easing[options.easing]){
options.easing=jQuery.easing[options.easing];
}else{
options.easing=defaultOptions.easing;
}
if(typeof(options.animate)==='number'){
options.animate={
duration: options.animate,
enabled: true
};}
if(typeof(options.animate)==='boolean'&&!options.animate){
options.animate={
duration: 1000,
enabled: options.animate
};}
this.renderer=new options.renderer(el, options);
this.renderer.draw(currentValue);
if(el.dataset&&el.dataset.percent){
this.update(parseFloat(el.dataset.percent));
}else if(el.getAttribute&&el.getAttribute('data-percent')){
this.update(parseFloat(el.getAttribute('data-percent')));
}}.bind(this);
this.update=function(newValue){
newValue=parseFloat(newValue);
if(options.animate.enabled){
this.renderer.animate(currentValue, newValue);
}else{
this.renderer.draw(newValue);
}
currentValue=newValue;
return this;
}.bind(this);
this.disableAnimation=function(){
options.animate.enabled=false;
return this;
};
this.enableAnimation=function(){
options.animate.enabled=true;
return this;
};
init();
};
$.fn.easyPieChart=function(options){
return this.each(function(){
var instanceOptions;
if(!$.data(this, 'easyPieChart')){
instanceOptions=$.extend({}, options, $(this).data());
$.data(this, 'easyPieChart', new EasyPieChart(this, instanceOptions));
}});
};}));
!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.salvattore=t()}(this,function(){
window.matchMedia||(window.matchMedia=function(){"use strict";var e=window.styleMedia||window.media;if(!e){var t=document.createElement("style"),n=document.getElementsByTagName("script")[0],r=null;t.type="text/css",t.id="matchmediajs-test",n.parentNode.insertBefore(t,n),r="getComputedStyle"in window&&window.getComputedStyle(t,null)||t.currentStyle,e={matchMedium:function(e){var n="@media "+e+"{ #matchmediajs-test { width: 1px; }}";return t.styleSheet?t.styleSheet.cssText=n:t.textContent=n,"1px"===r.width}}}return function(t){return{matches:e.matchMedium(t||"all"),media:t||"all"}}}()),
function(){"use strict";if(window.matchMedia&&window.matchMedia("all").addListener)return!1;var e=window.matchMedia,t=e("only all").matches,n=!1,r=0,a=[],i=function(){clearTimeout(r),r=setTimeout(function(){for(var t=0,n=a.length;n>t;t++){var r=a[t].mql,i=a[t].listeners||[],o=e(r.media).matches;if(o!==r.matches){r.matches=o;for(var c=0,l=i.length;l>c;c++)i[c].call(window,r)}}},30)};window.matchMedia=function(r){var o=e(r),c=[],l=0;return o.addListener=function(e){t&&(n||(n=!0,window.addEventListener("resize",i,!0)),0===l&&(l=a.push({mql:o,listeners:c})),c.push(e))},o.removeListener=function(e){for(var t=0,n=c.length;n>t;t++)c[t]===e&&c.splice(t,1)},o}}(),function(){"use strict";for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[t[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[n]+"CancelAnimationFrame"]||window[t[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t){var n=(new Date).getTime(),r=Math.max(0,16-(n-e)),a=window.setTimeout(function(){t(n+r)},r);return e=n+r,a}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}(),"function"!=typeof window.CustomEvent&&!function(){"use strict";function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}();var e=function(e,t){"use strict";var n={},r=[],a=[],i=[],o=function(e,t,n){e.dataset?e.dataset[t]=n:e.setAttribute("data-"+t,n)};return n.obtainGridSettings=function(t){var n=e.getComputedStyle(t,":before"),r=n.getPropertyValue("content").slice(1,-1),a=r.match(/^\s*(\d+)(?:\s?\.(.+))?\s*$/),i=1,o=[];return a?(i=a[1],o=a[2],o=o?o.split("."):["column"]):(a=r.match(/^\s*\.(.+)\s+(\d+)\s*$/),a&&(o=a[1],i=a[2],i&&(i=i.split(".")))),{numberOfColumns:i,columnClasses:o}},n.addColumns=function(e,r){for(var a,i=n.obtainGridSettings(e),c=i.numberOfColumns,l=i.columnClasses,s=new Array(+c),u=t.createDocumentFragment(),d=c;0!==d--;)a="[data-columns] > *:nth-child("+c+"n-"+d+")",s.push(r.querySelectorAll(a));s.forEach(function(e){var n=t.createElement("div"),r=t.createDocumentFragment();n.className=l.join(" "),Array.prototype.forEach.call(e,function(e){r.appendChild(e)}),n.appendChild(r),u.appendChild(n)}),e.appendChild(u),o(e,"columns",c)},n.removeColumns=function(n){var r=t.createRange();r.selectNodeContents(n);var a=Array.prototype.filter.call(r.extractContents().childNodes,function(t){return t instanceof e.HTMLElement}),i=a.length,c=a[0].childNodes.length,l=new Array(c*i);Array.prototype.forEach.call(a,function(e,t){Array.prototype.forEach.call(e.children,function(e,n){l[n*i+t]=e})});var s=t.createElement("div");return o(s,"columns",0),l.filter(function(e){return!!e}).forEach(function(e){s.appendChild(e)}),s},n.recreateColumns=function(t){e.requestAnimationFrame(function(){n.addColumns(t,n.removeColumns(t));var e=new CustomEvent("columnsChange");t.dispatchEvent(e)})},n.mediaQueryChange=function(e){e.matches&&Array.prototype.forEach.call(r,n.recreateColumns)},n.getCSSRules=function(e){var t;try{t=e.sheet.cssRules||e.sheet.rules}catch(n){return[]}return t||[]},n.getStylesheets=function(){return Array.prototype.concat.call(Array.prototype.slice.call(t.querySelectorAll("style[type='text/css']")),Array.prototype.slice.call(t.querySelectorAll("link[rel='stylesheet']")))},n.mediaRuleHasColumnsSelector=function(e){var t,n;try{t=e.length}catch(r){t=0}for(;t--;)if(n=e[t],n.selectorText&&n.selectorText.match(/\[data-columns\](.*)::?before$/))return!0;return!1},n.scanMediaQueries=function(){var t=[];if(e.matchMedia){n.getStylesheets().forEach(function(e){Array.prototype.forEach.call(n.getCSSRules(e),function(e){e.media&&e.cssRules&&n.mediaRuleHasColumnsSelector(e.cssRules)&&t.push(e)})});var r=a.filter(function(e){return-1===t.indexOf(e)});i.filter(function(e){return-1!==r.indexOf(e.rule)}).forEach(function(e){e.mql.removeListener(n.mediaQueryChange)}),i=i.filter(function(e){return-1===r.indexOf(e.rule)}),t.filter(function(e){return-1==a.indexOf(e)}).forEach(function(t){var r=e.matchMedia(t.media.mediaText);r.addListener(n.mediaQueryChange),i.push({rule:t,mql:r})}),a.length=0,a=t}},n.rescanMediaQueries=function(){n.scanMediaQueries(),Array.prototype.forEach.call(r,n.recreateColumns)},n.nextElementColumnIndex=function(e,t){var n,r,a,i=e.children,o=i.length,c=0,l=0;for(a=0;o>a;a++)n=i[a],r=n.children.length+(t[a].children||t[a].childNodes).length,0===c&&(c=r),c>r&&(l=a,c=r);return l},n.createFragmentsList=function(e){for(var n=new Array(e),r=0;r!==e;)n[r]=t.createDocumentFragment(),r++;return n},n.appendElements=function(e,t){var r=e.children,a=r.length,i=n.createFragmentsList(a);Array.prototype.forEach.call(t,function(t){var r=n.nextElementColumnIndex(e,i);i[r].appendChild(t)}),Array.prototype.forEach.call(r,function(e,t){e.appendChild(i[t])})},n.prependElements=function(e,r){var a=e.children,i=a.length,o=n.createFragmentsList(i),c=i-1;r.forEach(function(e){var t=o[c];t.insertBefore(e,t.firstChild),0===c?c=i-1:c--}),Array.prototype.forEach.call(a,function(e,t){e.insertBefore(o[t],e.firstChild)});for(var l=t.createDocumentFragment(),s=r.length%i;0!==s--;)l.appendChild(e.lastChild);e.insertBefore(l,e.firstChild)},n.registerGrid=function(a){if("none"!==e.getComputedStyle(a).display){ if(jQuery(a).children('.column').length > 0){ return; } var i=t.createRange();i.selectNodeContents(a);var c=t.createElement("div");c.appendChild(i.extractContents()),o(c,"columns",0),n.addColumns(a,c),r.push(a)}},n.init=function(){var e=t.createElement("style");e.innerHTML="[data-columns]::before{visibility:hidden;position:absolute;font-size:1px;}",t.head.appendChild(e);var r=t.querySelectorAll("[data-columns]");Array.prototype.forEach.call(r,n.registerGrid),n.scanMediaQueries()},n.init(),{appendElements:n.appendElements,prependElements:n.prependElements,registerGrid:n.registerGrid,recreateColumns:n.recreateColumns,rescanMediaQueries:n.rescanMediaQueries,append_elements:n.appendElements,prepend_elements:n.prependElements,register_grid:n.registerGrid,recreate_columns:n.recreateColumns,rescan_media_queries:n.rescanMediaQueries}}(window,window.document);return e});
!function(n){var t={};function r(e){if(t[e])return t[e].exports;var o=t[e]={i:e,l:!1,exports:{}};return n[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=n,r.c=t,r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:e})},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.p="/",r(r.s=11)}([function(n,t){},function(n,t){},,,,,,,,,,function(n,t,r){r(1),r(0),n.exports=r(12)},function(n,t){jQuery(function(n){})}]);
!function(e){var t={};function r(i){if(t[i])return t[i].exports;var o=t[i]={i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=212)}({18:function(e,t){},2:function(e,t,r){"use strict";function i(e){"@babel/helpers - typeof";return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,a(i.key),i)}}function a(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,i;return t=e,i=[{key:"getResponsiveValues",value:function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n={desktop:i,tablet:i,phone:i};return n.desktop=e.getAnyValue(t,r,"desktop",i,o),e.isResponsiveEnabled(t,r)&&(n.tablet=e.getAnyValue(t,r,"tablet",i,o),n.phone=e.getAnyValue(t,r,"phone",i,o)),n}},{key:"getHoverValue",value:function(t,r){var i="";return e.isHoverEnabled(t,r)&&t[r+"__hover"]&&(i=t[r+"__hover"]),i}},{key:"getMarginPaddingCss",value:function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"margin",o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(arguments.length>4&&void 0!==arguments[4]&&arguments[4]){var n=e.getHoverValue(t,r);return e.processMarginPaddingStyle(n,i,o)}var a=window.ET_Builder.API.Utils._,l=e.getResponsiveValues(t,r),d={};return a.isEmpty(l)||(d.desktop=e.processMarginPaddingStyle(l.desktop,i,o),d.tablet=e.processMarginPaddingStyle(l.tablet,i,o),d.phone=e.processMarginPaddingStyle(l.phone,i,o)),d}},{key:"processMarginPaddingStyle",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"margin",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o="",n=t.split("|"),a=window.ET_Builder.API.Utils._;if(!a.isEmpty(n)){var l="";n=n.map(a.trim);a.forEach(["top","right","bottom","left"],function(t,o){if(n[o]&&""!==n[o]){var a=i?" !important":"";l+=r+"-"+t+":"+e.processMarginPaddingValue(n[o],r)+a+";"}}),o+=a.trimEnd(l)}return o}},{key:"processMarginPaddingValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e=window.ET_Builder.API.Utils._.trim(e);var r=parseFloat(e),i=e.replace(r,""),o="";return""!==t&&-1!=={margin:["auto","inherit","initial","unset"],padding:["inherit","initial","unset"]}[t].indexOf(e)?o=e:(""===i&&(i="px"),o=r+i),o}},{key:"getGradient",value:function(e){var t=window.ET_Builder.API.Utils._,r={gradientType:"linear",direction:"180deg",radialDirection:"center",startColor:"#2b87da",endColor:"#29c4a9",startPosition:"0%",endPosition:"100%"};if(window.ETBuilderBackend.builderVersion>="4.16.0"&&(r.stops="#2b87da 0%|#29c4a9 100%"),t.forEach(e,function(e,i){""===e||t.isUndefined(e)||(r[i]=e)}),window.ETBuilderBackend.builderVersion>="4.16.0"){var i=r.stops;i=i.replace(/\|/g,", ");var o="linear",n=r.direction;switch(r.gradientType){case"conic":o="conic",n="from "+r.direction;break;case"elliptical":o="radial",n="ellipse at "+r.radialDirection;break;case"radial":case"circular":o="radial",n="circle at "+r.radialDirection;break;case"linear":default:o="linear",n=r.direction}return o+"-gradient("+n+", "+i+")"}var a="linear"===r.gradientType||""===r.gradientType?r.direction:"circle at "+r.radialDirection;return r.gradientType+"-gradient("+a+", "+r.startColor+" "+r.startPosition+", "+r.endColor+" "+r.endPosition+")"}},{key:"get",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=window.ET_Builder.API.Utils._,n=t+("desktop"!==r?"_"+r:"");return o.isUndefined(e[n])||""===e[n]?i:e[n]}},{key:"getDefaultValue",value:function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if("desktop"===i)return o;var n=e.get(t,r,"desktop",o);if("tablet"===i)return n;var a=e.get(t,r,"tablet",n);return"phone"===i?a:o}},{key:"getAnyValue",value:function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=e.get(t,r,i,""),l=e.getDefaultValue(t,r,i,o);return n?""!==a?a:l:a===l?"":a}},{key:"getInheritedValue",value:function(e,t,r,i){var n,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",l=window.ET_Builder.API.Utils._,d=a,_=(o(n={},i+"_color",i+"_enable_color"),o(n,i+"_use_color_gradient",i+"_enable_use_color_gradient"),o(n,i+"_image",i+"_enable_image"),n),s={desktop:[""],hover:["__hover",""],tablet:["_tablet",""],phone:["_phone","_tablet",""]};if(""===(l.isUndefined(_[t])?"":_[t])||l.isUndefined(s[r]))return d;d="";var p=!0,c=!1,u=void 0;try{for(var f,g=s[r].values()[Symbol.iterator]();!(p=(f=g.next()).done);p=!0){var m=f.value;if(i+"_color"===t||i+"_image"===t){var v=t.replace(i+"_",""),w=l.isUndefined(e[i+"_enable_"+v+m])?"":e[i+"_enable_"+v+m],h=l.isUndefined(e[i+"_"+v+m])?"":e[i+"_"+v+m],b="off"!==w;if(""!==h&&b){d=h;break}if(!b){d="";break}}else if(i+"_use_color_gradient"===t){d="off";var y=o({},i+"_use_color_gradient",{value:i+"_use_color_gradient"+m,start:i+"_color_gradient_start"+m,end:i+"_color_gradient_end"+m,stops:i+"_color_gradient_stops"+m}),k=l.isUndefined(y[t].value)?"":y[t].value,V=l.isUndefined(y[t].start)?"":y[t].start,E=l.isUndefined(y[t].end)?"":y[t].end,A=l.isUndefined(y[t].stops)?"":y[t].stops,P=l.isUndefined(e[k])?"off":e[k],U=l.isUndefined(e[V])?"#2b87da":e[V],T=l.isUndefined(e[E])?"#29c4a9":e[E],B="off"!==P;if((""!==(l.isUndefined(e[A])?"#2b87da 0%|#29c4a9 100%":e[A])||""!==U||""!==T)&&B){d="on";break}if(!B){d="off";break}}}}catch(e){c=!0,u=e}finally{try{p||null==g.return||g.return()}finally{if(c)throw u}}return d}},{key:"getHoverRawValue",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return window.ET_Builder.API.Utils._.isUndefined(e[t+"__hover"])?r:e[t+"__hover"]}},{key:"isHoverEnabled",value:function(e,t){var r=window.ET_Builder.API.Utils._;return!(r.isEmpty(e[t+"__hover_enabled"])||!r.isString(e[t+"__hover_enabled"]))&&!!e[t+"__hover_enabled"].startsWith("on")}},{key:"isResponsiveEnabled",value:function(e,t){var r=window.ET_Builder.API.Utils._;return!(r.isEmpty(e[t+"_last_edited"])||!r.isString(e[t+"_last_edited"]))&&!!e[t+"_last_edited"].startsWith("on")}},{key:"generateBackgroundCss",value:function(t,r,i){var o=window.ET_Builder.API.Utils._,n=i.normal,a={};o.forEach(n,function(i,n){var a=i;o.isArray(i)&&(a=i.join(","));var l=n,d="",_="",s="",p={desktop:!1,tablet:!1,phone:!1},c=!0,u=!1,f=void 0;try{for(var g,m=["desktop","tablet","phone"].values()[Symbol.iterator]();!(c=(g=m.next()).done);c=!0){var v=g.value,w="",h="",b="",y=!1,k=!1,V=!1,E=!1,A=!1,P=[],U="off",T="desktop"===v;if(T||e.isResponsiveEnabled(r,l+"_color")){var B=e.getInheritedValue(r,l+"_use_color_gradient",v,l);if("on"===B){U=e.getAnyValue(r,l+"_color_gradient_overlays_image",v,"",!0);var I={startColor:e.getAnyValue(r,l+"_color_gradient_start",v,"",!0),endColor:e.getAnyValue(r,l+"_color_gradient_end",v,"",!0),gradientType:e.getAnyValue(r,l+"_color_gradient_type",v,"",!0),direction:e.getAnyValue(r,l+"_color_gradient_direction",v,"",!0),radialDirection:e.getAnyValue(r,l+"_color_gradient_direction_radial",v,"",!0),startPosition:e.getAnyValue(r,l+"_color_gradient_start_position",v,"",!0),endPosition:e.getAnyValue(r,l+"_color_gradient_end_position",v,"",!0),stops:e.getAnyValue(r,l+"_color_gradient_stops",v,"",!0)},R=e.getGradient(I);y=!0,P.push(R)}else"off"===B&&(E=!0);var S=e.getInheritedValue(r,l+"_image",v,l),H=""!==S;if(p[v]=H,H){k=!0;var x=!0;T||(x="tablet"===v?p.desktop:p.tablet);var j=e.getAnyValue(r,l+"_size",v,"",!x);""!==j&&(w+="background-size: "+j+";");var C=e.getAnyValue(r,l+"_position",v,"",!x);""!==C&&(w+="background-position: "+C.replace("_"," ")+";");var D=e.getAnyValue(r,l+"_repeat",v,"",!x);""!==D&&(w+="background-repeat: "+D+";");var z=e.getAnyValue(r,l+"_blend",v,"",!x),M=e.getAnyValue(r,l+"_blend",v,"",!0);""!==M&&(""!==z&&(w+="background-blend-mode: "+z+";"),y&&k&&"normal"!==M&&(V=!0,w+="background-color: initial;",h="initial"),s=z),P.push("url("+S+")")}else""===S&&(""!==s&&(w+="background-blend-mode: normal;",s=""),A=!0);if(o.isEmpty(P)?!T&&E&&A&&(b="initial",w+="background-image: initial !important;"):("on"!==U&&(P=P.reverse()),d!==(b=P.join(", "))&&(w+="background-image: "+b+" !important;")),d=b,!V){var O="off"!==e.getInheritedValue(r,l+"_enable_color",v,l)||T?"":"initial";""!==e.getInheritedValue(r,l+"_color",v,l)&&(O=e.getInheritedValue(r,l+"_color",v,l)),h=O,""!==O&&_!==O&&(w+="background-color: "+O+";")}_=h,""!==w&&t.push([{selector:"".concat(a),declaration:"".concat(w),device:"".concat(v)}])}}}catch(e){u=!0,f=e}finally{try{c||null==m.return||m.return()}finally{if(u)throw f}}}),i.hover?a=i.hover:(a=i.normal,o.forEach(a,function(e,t){o.isArray(e)?(o.forEach(e,function(t,r){e[r]=t+":hover"}),a[t]=e):a[t]=e+":hover"})),o.forEach(a,function(i,n){var a=i;o.isArray(i)&&(a=i.join(","));var l=n,d=e.getAnyValue(r,l+"_color_gradient_overlays_image","desktop","off",!0),_={startColor:e.getAnyValue(r,l+"_color_gradient_start","desktop","",!0),endColor:e.getAnyValue(r,l+"_color_gradient_end","desktop","",!0),gradientType:e.getAnyValue(r,l+"_color_gradient_type","desktop","",!0),linearDirection:e.getAnyValue(r,l+"_color_gradient_direction","desktop","",!0),radialDirection:e.getAnyValue(r,l+"_color_gradient_direction_radial","desktop","",!0),startPosition:e.getAnyValue(r,l+"_color_gradient_start_position","desktop","",!0),endPosition:e.getAnyValue(r,l+"_color_gradient_end_position","desktop","",!0),stops:e.getAnyValue(r,l+"_color_gradient_stops","desktop","",!0)};if(e.isHoverEnabled(r,l+"_color")){var s=[],p="",c=!1,u=!1,f=!1,g=!1,m=!1,v="off",w=e.getInheritedValue(r,l+"_use_color_gradient","hover",l);if("on"===w){var h=_.gradientType,b=_.linearDirection,y=_.radialDirection,k=_.startColor,V=_.endColor,E=_.startPosition,A=_.endPosition,P=_.stops,U=e.getHoverRawValue(r,l+"_color_gradient_type",h),T=e.getHoverRawValue(r,l+"_color_gradient_direction",b),B=e.getHoverRawValue(r,l+"_color_gradient_direction_radial",y),I=e.getHoverRawValue(r,l+"_color_gradient_start",k),R=e.getHoverRawValue(r,l+"_color_gradient_end",V),S=e.getHoverRawValue(r,l+"_color_gradient_start_position",E),H=e.getHoverRawValue(r,l+"_color_gradient_end_position",A),x=e.getHoverRawValue(r,l+"_color_gradient_stops",P),j={startColor:""!==I?I:k,endColor:""!==R?R:V,gradientType:""!==U?U:h,direction:""!==T?T:b,radialDirection:""!==B?B:y,startPosition:""!==S?S:E,endPosition:""!==H?H:A,stops:""!==x?x:P};v=e.getHoverRawValue(r,l+"_color_gradient_overlays_image",d);var C=e.getGradient(j);c=!0,s.push(C)}else"off"===w&&(g=!0);var D=e.getInheritedValue(r,l+"_image","hover",l);if(""!==D&&null!==D){u=!0;var z=e.getHoverRawValue(r,l+"_size"),M=o.isUndefined(r[l+"_size"])?"":r[l+"_size"],O=z===M;o.isEmpty(z)&&!o.isEmpty(M)&&(z=M),o.isEmpty(z)||O||(p+="background-size: "+z+";");var N=e.getHoverRawValue(r,l+"_position"),G=o.isUndefined(r[l+"_position"])?"":r[l+"_position"],F=N===G;o.isEmpty(N)&&!o.isEmpty(G)&&(N=G),o.isEmpty(N)||F||(p+="background-position: "+N.replace("_"," ")+";");var Q=e.getHoverRawValue(r,l+"_repeat"),W=o.isUndefined(r[l+"_repeat"])?"":r[l+"_repeat"],L=Q===W;o.isEmpty(Q)&&!o.isEmpty(W)&&(Q=W),o.isEmpty(Q)||L||(p+="background-repeat: "+Q+";");var q=e.getHoverRawValue(r,l+"_blend"),J=o.isUndefined(r[l+"_blend"])?"":r[l+"_blend"],K=q===J;o.isEmpty(q)&&!o.isEmpty(J)&&(q=J),o.isEmpty(q)||(K||(p+="background-blend-mode: "+q+";"),c&&u&&"normal"!==q&&(f=!0,p+="background-color: initial !important;")),s.push("url("+D+")")}else""===D&&(m=!0);if(o.isEmpty(s)?g&&m&&(p+="background-image: initial !important;"):("on"!==v&&(s=s.reverse()),p+="background-image: "+s.join(", ")+" !important;"),!f){var X=e.getInheritedValue(r,l+"_color","hover",l);""!==(X=""!==X?X:"transparent")&&(p+="background-color: "+X+" !important; ")}""!==p&&t.push([{selector:"".concat(a),declaration:"".concat(p),device:"".concat("hover")}])}})}}],(r=null)&&n(t.prototype,r),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=l},212:function(e,t,r){r(213),r(214),r(215),r(216),r(217),r(218),r(219),r(220),r(221),r(222),r(223),r(224),r(225),r(226),r(227),r(18),r(228),r(229),r(230),e.exports=r(2)},213:function(e,t){},214:function(e,t){},215:function(e,t){},216:function(e,t){},217:function(e,t){},218:function(e,t){},219:function(e,t){},220:function(e,t){},221:function(e,t){},222:function(e,t){},223:function(e,t){},224:function(e,t){},225:function(e,t){},226:function(e,t){},227:function(e,t){},228:function(e,t){},229:function(e,t){jQuery(document).ready(function(e){e("body").find(".dipl_team_member_skills").length>0&&e("body").on("blur",".dipl_team_member_skills",function(){var t=[];e(".dipl_team_member_skills").each(function(){e(this).val()&&t.push(e(this).val())}),e("#dipl_team_member_skills").val(t)}),e("body").find(".dipl_team_member_skills_value").length>0&&e("body").on("blur",".dipl_team_member_skills_value",function(){var t=[];e(".dipl_team_member_skills_value").each(function(){e(this).val()&&t.push(e(this).val())}),e("#dipl_team_member_skills_value").val(t)}),e("body").on("click",".dipl_repeator_meta_field_add_row",function(){var t='<div class="dipl_repeator_meta_field_row">';t+='<div class="dipl_repeator_meta_field">',t+='<input type="text" class="dipl_team_member_skills" placeholder="Skill" />',t+='<input type="number" class="dipl_team_member_skills_value" placeholder="Skill Value Between 0 to 100" step="1" min="0" max="100"/>',t+="</div>",t+='<p class="dipl_repeator_meta_field_row_controls">',t+='<span class="dipl_repeator_meta_field_add_row_control dipl_repeator_meta_field_remove_row">-</span>',t+='<span class="dipl_repeator_meta_field_add_row_control dipl_repeator_meta_field_add_row">+</span>',t+="</p>",t+="</div>",e(this).closest(".dipl_repeator_meta_field_row").find(".dipl_repeator_meta_field_remove_row").length<1&&e(this).closest(".dipl_repeator_meta_field_row").find(".dipl_repeator_meta_field_row_controls").prepend('<span class="dipl_repeator_meta_field_add_row_control dipl_repeator_meta_field_remove_row">-</span>'),e(this).closest(".dipl_repeator_meta_field_row").after(t),e(this).closest(".dipl_repeator_meta_field_row").find(".dipl_repeator_meta_field_row_controls .dipl_repeator_meta_field_add_row").remove()}),e("body").on("click",".dipl_repeator_meta_field_remove_row",function(){if(2===e(this).parents(".dipl_repeator_meta_fields").find(".dipl_repeator_meta_field_row").length){e(this).closest(".dipl_repeator_meta_field_row").prev(".dipl_repeator_meta_field_row").length>0?(e(this).closest(".dipl_repeator_meta_field_row").prev(".dipl_repeator_meta_field_row").find(".dipl_repeator_meta_field_row_controls .dipl_repeator_meta_field_remove_row").remove(),e(this).closest(".dipl_repeator_meta_field_row").prev(".dipl_repeator_meta_field_row").find(".dipl_repeator_meta_field_row_controls").append('<span class="dipl_repeator_meta_field_add_row_control dipl_repeator_meta_field_add_row">+</span>')):e(this).closest(".dipl_repeator_meta_field_row").next(".dipl_repeator_meta_field_row").find(".dipl_repeator_meta_field_row_controls .dipl_repeator_meta_field_remove_row").remove()}else{0===e(this).closest(".dipl_repeator_meta_field_row").nextAll(".dipl_repeator_meta_field_row").length&&e(this).closest(".dipl_repeator_meta_field_row").prev(".dipl_repeator_meta_field_row").find(".dipl_repeator_meta_field_row_controls").append('<span class="dipl_repeator_meta_field_add_row_control dipl_repeator_meta_field_add_row">+</span>')}e(this).closest(".dipl_repeator_meta_field_row").remove(),e(".dipl_team_member_skills").trigger("blur"),e(".dipl_team_member_skills_value").trigger("blur")})})},230:function(e,t){jQuery(document).ready(function(e){(e("body").find(".dipl_twitter_embedded_tweet").length>0||e("body").find(".dipl_twitter_timeline").length>0||e("body").find(".dipl_twitter_follow_button").length>0||e("body").find(".dipl_twitter_tweet_button").length>0)&&(window.twttr=function(e,t,r){var i,o=e.getElementsByTagName(t)[0],n=window.twttr||{};if(!e.getElementById(r))return(i=e.createElement(t)).id=r,i.src="https://platform.twitter.com/widgets.js",o.parentNode.insertBefore(i,o),n._e=[],n.ready=function(e){n._e.push(e)},n}(document,"script","twitter-wjs")),e("body").find(".dipl_twitter_embedded_tweet").each(function(){var t=e(this).find(".dipl_twitter_embedded_tweet_wrapper"),r=e(this).find(".dipl_tweet"),i=r.data("id"),o=r.data("theme"),n=r.data("width"),a=r.data("cards"),l=r.data("conversation"),d=r.data("dnt");window.twttr.ready(function(e){e.widgets.createTweet(i,t[0],{theme:o,width:n,cards:a,conversation:l,dnt:d}).then(function(e){r.remove()})})}),e("body").find(".dipl_twitter_timeline").each(function(){var t=e(this).find(".dipl_twitter_embedded_timeline"),r=t.find(".dipl_twitter_embed_timeline"),i=r.data("name"),o=r.data("theme"),n=r.data("width"),a=r.data("height"),l=r.data("chrome"),d=r.data("show-replies"),_=r.data("tweet-limit"),s=r.data("aria-polite"),p=r.data("source"),c=r.data("dnt");window.twttr.ready(function(e){e.widgets.createTimeline({sourceType:p,screenName:i},t[0],{height:a,width:n,chrome:l,showReplies:d,tweetLimit:_,theme:o,ariaPolite:s,dnt:c}).then(function(e){r.remove()})})}),e("body").find(".dipl_twitter_follow_button").each(function(){var t=e(this).find(".dipl_twitter_embedded_follow_button"),r=t.find(".dipl_twitter_embed_follow_button"),i=r.data("name"),o=r.data("show-screen-name"),n=r.data("show-count"),a=r.data("size"),l=r.data("dnt");window.twttr.ready(function(e){e.widgets.createFollowButton(i,t[0],{showScreenName:o,showCount:n,size:a,dnt:l}).then(function(e){r.remove()})})}),e("body").find(".dipl_twitter_tweet_button").each(function(){var t=e(this).find(".dipl_twitter_embedded_tweet_button"),r=t.find(".dipl_twitter_embed_tweet_button"),i=r.data("text"),o=r.data("url"),n=r.data("hashtags"),a=r.data("via"),l=r.data("related"),d=r.data("size"),_=r.data("dnt");window.twttr.ready(function(e){e.widgets.createShareButton(o,t[0],{text:i,hashtags:n,via:a,related:l,size:d,dnt:_}).then(function(e){r.remove()})})}),e("body").find(".dipl-unfold-button").length>0&&e(".dipl-unfold-button").on("click",".et_pb_button",function(t){t.preventDefault();var r=e(this),i=r.attr("href").replace("#","");return r.parents("."+i+"__dipl-unfold_wrap").css("cssText","max-height: none !important;"),r.parent().remove(),!1})})}});
(function($){
$(function(){
var user_agent=navigator.userAgent;
var is_opera_edge;
var browser=user_agent.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))/i)||[];
var browser_name='';
var browser_class='';
if(/trident/i.test(browser[0]) ){
browser_name='ie';
}else if(browser[0]==='Chrome'){
is_opera_edge=user_agent.match(/\b(OPR|Edge)/);
if(is_opera_edge!==null){
browser_name=is_opera_edge[0].replace('OPR', 'opera');
}}
if(''===browser_name){
if('standalone' in window.navigator&&!window.navigator.standalone){
browser_name='uiwebview';
}else{
browser_name=browser[0]&&''!==browser[0] ? browser[0]:navigator.appName;
}}
browser_name=browser_name.toLowerCase();
switch(browser_name){
case 'msie' :
browser_class='ie';
break;
case 'firefox' :
browser_class='gecko';
break;
default :
browser_class=browser_name;
break;
}
if(user_agent.match(/iPhone/)){
browser_class +=' iphone';
}
$('body').addClass(browser_class);
});
})(jQuery);