(()=>{"use strict";var t={n:e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window.wp.domReady;function r(){var t=document.querySelectorAll(".eb-cd-wrapper > .eb-cd-inner");if(t)for(var e=function(){var e=t[r],n={textContent:"3e"},a=e.querySelector(".cd-box-day > .eb-cd-digit")||n,o=e.querySelector(".cd-box-hour > .eb-cd-digit")||n,i=e.querySelector(".cd-box-minute > .eb-cd-digit")||n,d=e.querySelector(".cd-box-second > .eb-cd-digit")||n,l=e.getAttribute("blockId"),g=e.getAttribute("data-is-evergreen-time"),u=e.getAttribute("data-evergreen-time-hours"),c=e.getAttribute("data-evergreen-time-minutes"),v=e.getAttribute("data-evergreen-recurring"),S=e.getAttribute("data-evergreen-restart-time"),s=e.getAttribute("data-evergreen-deadline-time"),b=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=Date.now(),n=Math.round((t-r)/1e3),l=n%60,g=Math.floor(n/60)%60,u=Math.floor(n/3600)%24,c=Math.floor(n/86400);if(n<0)return clearInterval(e),a.textContent=String(0).padStart(2,"0"),o.textContent=String(0).padStart(2,"0"),i.textContent=String(0).padStart(2,"0"),void(d.textContent=String(0).padStart(2,"0"));a.textContent=String(c).padStart(2,"0"),o.textContent=String(u).padStart(2,"0"),i.textContent=String(g).padStart(2,"0"),d.textContent=String(l).padStart(2,"0")};if("true"===g){var p=l+"_evergreen_interval",f=l+"_evergreen_time",m=localStorage.getItem(p),I=localStorage.getItem(f),x=3600*parseInt(u||0),w=60*parseInt(c||0),y=parseInt(x+w);if(null!==I&&null!==m&&m==y||(I=Date.now()+1e3*parseInt(y),localStorage.setItem(p,y),localStorage.setItem(f,I)),"false"!==v){var C=36e5*parseFloat(S);parseInt(I)+C<Date.now()&&(I=Date.now()+1e3*parseInt(y),localStorage.setItem(f,I)),s<I&&(I=s)}b(I||0);var h=setInterval(function(){b(I||0,h)},1e3)}if(null==g||"false"==g){var A=parseInt(e.getAttribute("data-deadline-time"));b(A||0);var _=setInterval(function(){b(A||0,_)},1e3)}},r=0;r<t.length;r++)e()}t.n(e)()(function(){r()}),window.ebRunCountDown=r})();