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