/* eslint-disable */ /* * @pqina/flip v1.8.4 - A Beautifully Animated Flip Clock * Copyright (c) 2024 PQINA - https://pqina.nl/flip/ */ !function(){"use strict";function l(t){return"function"==typeof t||"[object Function]"===e.call(t)}function s(t){return t=function(t){t=Number(t);return isNaN(t)?0:0!==t&&isFinite(t)?(0>>0,r=arguments[1]>>0,i=r<0?Math.max(n+r,0):Math.min(r,n),r=arguments[2],r=void 0===r?n:r>>0,o=r<0?Math.max(n+r,0):Math.min(r,n);i>>0,r=arguments[1],i=0;i!==n;i++)if(t.call(r,this[i],i,e))return this[i]}}),Array.from||(Array.from=(e=Object.prototype.toString,n=Math.pow(2,53)-1,function(t){var e=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n,r=1e.length)for(;r.definitions.length>e.length;)r.definitions.pop().presenter.destroy();e.forEach(function(t,e){var n=r.definitions[e];n||(n=r.definitions[e]=xt(r.definition),r.update=i(n),n.presenter.appendTo(r.root,"right"===r.align?"first":"last"))}),e.forEach(function(t,e){return r.update(r.definitions[e],t)}),r.views=e,at(r)}function at(n){var r=!1;return n.views.forEach(function(t,e){n.definitions[e].presenter.draw()&&(r=!0)}),r}function ut(t,e){return t=document.createElement(t),e&&(t.className=e),t}function lt(n,r,i){var t=new MutationObserver(function(e){r.forEach(function(t){e.filter(function(t){return r.includes(t.attributeName)}).length&&i(n.getAttribute(t))})});return t.observe(n,{attributes:!0}),t}function st(t){return t instanceof HTMLElement}function y(t,e,n){var r=3window.scrollY+window.innerHeight)}function ft(t){return t.trim()}function w(t,e){var n=e.toString();return C[n]||(C[n]={}),C[n][t]||(C[n][t]=e(t)),C[n][t]}function dt(t){return t.match(/[a-z]+(?:\(.*?\))?\s?(?:origin\(.*?\))?\s?(?:[a-z]+\(.*?\))?[ .a-z-0-9]*/g).map(ht)}function ht(t){var t=t.match(/([a-z]+(?:\(.*?\))?)\s?(?:origin\((.*?)\))?\s?([a-z]+(?:\(.*?\))?)?\s?(?:([.0-9ms]+)?\s?(?:(ease-[a-z-]+))?\s?([.0-9ms]+)?)?/),e=Ae(t[1]),n=pn,r=pn,i=pn,o=pn,a=pn;return t.slice(2).filter(function(t){return void 0!==t}).forEach(function(t){Qt.test(t)?void 0===r?r=D(t):o=D(t):/ /.test(t)?n=t:/^ease-[a-z-]+$/.test(t)?i=t:/^[a-z]+/.test(t)&&(a=Ae(t))}),a&&(i=r=pn),{name:e.name,parameters:e.parameters,duration:r,ease:i,delay:o,origin:n,resolver:a}}function pt(t){var e=t.match(/follow-gradient|horizontal-gradient|vertical-gradient/)[0];return{type:e,colors:t.substring(e.length).match(/(?:transparent|rgb\(.*?\)|hsl\(.*?\)|hsla\(.*?\)|rgba\(.*?\)|[a-z]+|#[abcdefABCDEF\d]+)\s?(?:[\d]{1,3}%?)?/g).map(mt)}}function mt(t){var e=t.match(ne);return{offset:e?parseFloat(e[1])/100:null,value:ie(t.replace(ne,""))}}function vt(t){return"string"!=typeof t?t:t.match(/([-.\d]+(?:%|ms|s|deg|cm|em|ch|ex|q|in|mm|pc|pt|px|vh|vw|vmin|vmax)?)|[%#A-Za-z0-9,.()]+/g)}function gt(t){var e,n,r=(t=t.split(":").map(ft))[0].trim().split("-").map(function(t,e){return 0"===r[i+1]?(l=!0,o.trim().length&&(a.push([o.trim()]),o=""),t+=2):","===c?(l&&o.trim().length&&(a.push([o.trim()]),o="",l=!1),a=St(a,n),o=Ot(n,o)):o+=c,t++}return(l&&o.trim().length||!l&&o.trim().length&&!a.length)&&(a.push([o.trim()]),o=""),St(a,n),Ot(n,o),t}function xt(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]="root"===e?t[e].cloneNode():"children"===e?null===t[e]?null:t[e].map(xt):"repeat"===e?null===t[e]?null:xt(t[e]):t[e]);return n.presenter=null,n}function Rt(t){return Array.from(t).map(function(t){var e,n=k(be,{root:t});for(e in t.dataset)t.dataset.hasOwnProperty(e)&&void 0!==n[e]&&(n[e]=t.dataset[e]);return n.repeat?(n.repeat=Rt(t.children).pop(),Array.from(t.children).forEach(function(t){t.parentNode.removeChild(t)})):t.children.length&&(n.children=Rt(t.children)),n})}function Lt(t){return t.map(function(e){return"string"==typeof(e=k(be,e)).root?e.root=document.createElement(e.root):e.root=document.createElement("span"),e.transform&&(e.root.dataset.transform=e.transform),e.className&&(e.root.className=e.className),e.overlay&&(e.root.dataset.overlay=e.overlay),e.view?(e.root.dataset.view=e.view,e.style&&(e.root.dataset.style=e.style),e.repeat=null):(e.layout&&(e.root.dataset.layout=e.layout),e.repeat?(e.root.dataset.repeat=!0,e.repeat=Lt(e.children).pop()):e.children&&(e.children=Lt(e.children),e.children.forEach(function(t){e.root.appendChild(t.root)}))),e})}function Ft(o){function a(e,t){e.transform(t,function(t){e.presenter.update(t)},o),n||(n=!0,r())}var n=!1,r=function t(){o.baseDefinition.presenter.draw(),requestAnimationFrame(t)};return function t(e){var n,r,i;return e.presenter=(r=t,i=void 0,(n=e).repeat?i=ve(n.root,n.repeat,r):"string"==typeof n.view?i=ge(n.view,n.root,n.style):we(n)&&(i=me(n.root,n.children,r)),i),e.transform=zt(e.transform,o),a}(o.baseDefinition)}function Ut(i){for(var t=arguments.length,o=Array(1=t.destination||t.origin>=t.destination&&t.position<=t.destination)&&(e(),t.velocity=0,t.position=t.destination)})}},ce=function(e){var n=1=t.destination||t.origin>=t.destination&&t.position<=t.destination)&&(e(),t.velocity=0,t.position=t.destination)})}},fe=function(e){var r=1=p.Week-i.idle)return i.wait=!0,i;i.dist=t}else{i.time=z(v(r),i.day);t=He(i.time,e);if(t.wait)return i;i.time=v(G(r,i.time)&&t.date?t.date:t.from);t=i.time-r;t<0&&i.time.setDate(i.time.getDate()+7),i.dist=t}return i.date=v(i.time),i}function He(t,e){var n,e=e.match(/((?:[\d]+\s)?(?:hours|hour|minutes|minute|seconds|second))|((?:from|till)\s[\d]+(?::[\d]+)?(?::[\d]+)?)|(wait\s[\d]+\s[a-z]+)/g).reduce(function(t,e){return/from/.test(e)?t.from=L(t.from,e.split(" ")[1]):/till/.test(e)?t.till=L(t.till,e.split(" ")[1]):/wait/.test(e)?t.idle=R(e.substring(5)):/hours|hour|minutes|minute|seconds|second/.test(e)&&(t.interval=R(e)),t},{idle:null,interval:null,date:null,dist:null,wait:!1,from:L(v(t),"0"),till:L(v(t),"23:59:59:999")});return t=e.till||e.interval>e.till-e.from||(n=t-e.from,n=e.interval-n%e.interval,null!==e.idle&&n>=e.interval-e.idle?e.wait=!0:(e.dist=n,e.date=new Date(t.getTime()+e.dist))),e}function $e(t,e){!0===t?K(function(t){e(t.getTime()-Q().getTime())}):"string"==typeof t?setTimeout(function(){e(h(t).getTime()-Q().getTime())},0):setTimeout(function(){e(0)},0)}function Xe(t){return E({complete:!1,offset:null,value:null,timer:null,onload:function(){},onupdate:function(t){}},t)}function Ze(){var n=0=p.Day-a.idle?a.wait=!0:(a.dist=o,a.date=v(a.time)),a):/hours|hour|minutes|minute|seconds|second/.test(e)?He(t,e):null},sn={format:["d","h","m","s"],cascade:!0,server:null,interval:1e3},cn=(t(s.TRANSFORM,{ascii:function(){return function(t,e){return e((t+"").charCodeAt(0))}},char:function(t){var n=1(""+t).length?"left"===r?(""+n+t).slice(-n.length):(""+t+n).substring(0,n.length):t)}},number:function(){var r=0