!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("preact/compat"));else if("function"==typeof define&&define.amd)define(["preact/compat"],t);else{var a="object"==typeof exports?t(require("preact/compat")):t(e.PreactCompat);for(var r in a)("object"==typeof exports?exports:e)[r]=a[r]}}(Depicter,(e=>(()=>{"use strict";var t={314:t=>{t.exports=e}},a={};function r(e){var o=a[e];if(void 0!==o)return o.exports;var n=a[e]={exports:{}};return t[e](n,n.exports,r),n.exports}r.d=(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{r.r(o),r.d(o,{dpcCountdown:()=>l});var e=r(314);const t=Date.now()+1368e5+186e4+29e3,a=(e,t)=>t?e.toString().padStart(2,"0"):e.toString(),n=({children:e,flash:t,line:a,className:r})=>Depicter.h("div",{className:`dpc-separator ${t?"dpc-flash":""} ${r||""}`},a?Depicter.h("span",{className:"dpc-line-separator"}):e),s=({separator:r=":",flashSeparator:o=!1,showDays:s=!0,demoMode:c=!1,leadingZeros:p=!0,addSeparator:l=!0,lineSeparator:i=!1,dateTime:d})=>{const[u,m]=(0,e.useState)((new Date).getTime());(0,e.useEffect)((()=>{const e=setInterval((()=>{m((new Date).getTime())}),1e3);return()=>{clearInterval(e)}}),[]);const{days:h,hours:f,minutes:b,seconds:D}=((e,a,r,o)=>{let n=e.getTime()-a;n<0&&(n=o?t-a:0);let s=Math.floor(n/864e5),c=Math.floor(n%864e5/36e5);return r||(c+=24*s,s=0),{days:s,hours:c,minutes:Math.floor(n%36e5/6e4),seconds:Math.floor(n%6e4/1e3)}})(new Date(`${d}Z`),u,s,c);return Depicter.h("div",{className:"dpc-countdown-timer dpc-countdown-row"},s&&Depicter.h(Depicter.f,null,Depicter.h("span",{className:"dpc-countdown-segment"},a(h,p)),l&&Depicter.h(n,{flash:o,line:i},r)),Depicter.h("span",{className:"dpc-countdown-segment"},a(f,p)),l&&Depicter.h(n,{flash:o,line:i},r),Depicter.h("span",{className:"dpc-countdown-segment"},a(b,p)),l&&Depicter.h(n,{flash:o,line:i},r),Depicter.h("span",{className:"dpc-countdown-segment"},a(D,p)))};function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},c.apply(this,arguments)}const p=["dLabel","hLabel","mLabel","sLabel"],l={component:e=>{const{className:t,labels:a=!0,dLabel:r="Days",hLabel:o="Hours",mLabel:l="Minutes",sLabel:i="Seconds",showDays:d=!0,labelsPosition:u="below",renderLabel:m,...h}=e,f=[r,o,l,i];return Depicter.h("div",{className:`${t} dpc-countdown`},Depicter.h(s,c({},h,{showDays:d})),a&&Depicter.h("div",{className:`dpc-countdown-labels dpc-countdown-row dpc-labels-${u}`},f.map(((e,t)=>d||0!==t?Depicter.h(Depicter.f,null,m?.(e,p[t],"dpc-label")||Depicter.h("div",{key:p[t],className:"dpc-label"},e),!1!==h.addSeparator&&t!==f.length-1&&Depicter.h(n,{key:`${p[t]}-sep`,className:"dpc-countdown-timer",line:h.lineSeparator},h.separator||":")):null))))},async:!1}})(),o})()));