Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@netless/app-countdown

Package Overview
Dependencies
Maintainers
12
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netless/app-countdown - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

1

dist/Clock/index.d.ts

@@ -1,2 +0,1 @@

import "./style.scss";
import type { FunctionalComponent } from "preact";

@@ -3,0 +2,0 @@ export declare enum TimeAdjustment {

18

dist/main.iife.js

@@ -1,7 +0,11 @@

var NetlessAppCountdown=function(K){"use strict";var A,a,oe,D,ne,re,U={},_e=[],ze=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function C(e,t){for(var o in t)e[o]=t[o];return e}function ie(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,o){var n,i,r,l={};for(r in t)r=="key"?n=t[r]:r=="ref"?i=t[r]:l[r]=t[r];if(arguments.length>2&&(l.children=arguments.length>3?A.call(arguments,2):o),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)l[r]===void 0&&(l[r]=e.defaultProps[r]);return W(e,l,n,i,null)}function W(e,t,o,n,i){var r={type:e,props:t,key:o,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++oe:i};return i==null&&a.vnode!=null&&a.vnode(r),r}function O(e){return e.children}function M(e,t){this.props=e,this.context=t}function N(e,t){if(t==null)return e.__?N(e.__,e.__.__k.indexOf(e)+1):null;for(var o;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null)return o.__e;return typeof e.type=="function"?N(e):null}function le(e){var t,o;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null){e.__e=e.__c.base=o.__e;break}return le(e)}}function ce(e){(!e.__d&&(e.__d=!0)&&D.push(e)&&!T.__r++||re!==a.debounceRendering)&&((re=a.debounceRendering)||ne)(T)}function T(){for(var e;T.__r=D.length;)e=D.sort(function(t,o){return t.__v.__b-o.__v.__b}),D=[],e.some(function(t){var o,n,i,r,l,u;t.__d&&(l=(r=(o=t).__v).__e,(u=o.__P)&&(n=[],(i=C({},r)).__v=r.__v+1,Q(u,r,i,o.__n,u.ownerSVGElement!==void 0,r.__h!=null?[l]:null,n,l==null?N(r):l,r.__h),he(n,r),r.__e!=l&&le(r)))})}function se(e,t,o,n,i,r,l,u,f,d){var _,h,s,c,p,k,b,m=n&&n.__k||_e,y=m.length;for(o.__k=[],_=0;_<t.length;_++)if((c=o.__k[_]=(c=t[_])==null||typeof c=="boolean"?null:typeof c=="string"||typeof c=="number"||typeof c=="bigint"?W(null,c,null,null,c):Array.isArray(c)?W(O,{children:c},null,null,null):c.__b>0?W(c.type,c.props,c.key,null,c.__v):c)!=null){if(c.__=o,c.__b=o.__b+1,(s=m[_])===null||s&&c.key==s.key&&c.type===s.type)m[_]=void 0;else for(h=0;h<y;h++){if((s=m[h])&&c.key==s.key&&c.type===s.type){m[h]=void 0;break}s=null}Q(e,c,s=s||U,i,r,l,u,f,d),p=c.__e,(h=c.ref)&&s.ref!=h&&(b||(b=[]),s.ref&&b.push(s.ref,null,c),b.push(h,c.__c||p,c)),p!=null?(k==null&&(k=p),typeof c.type=="function"&&c.__k===s.__k?c.__d=f=ae(c,f,e):f=ue(e,c,s,m,p,f),typeof o.type=="function"&&(o.__d=f)):f&&s.__e==f&&f.parentNode!=e&&(f=N(s))}for(o.__e=k,_=y;_--;)m[_]!=null&&(typeof o.type=="function"&&m[_].__e!=null&&m[_].__e==o.__d&&(o.__d=N(n,_+1)),be(m[_],m[_]));if(b)for(_=0;_<b.length;_++)ve(b[_],b[++_],b[++_])}function ae(e,t,o){for(var n,i=e.__k,r=0;i&&r<i.length;r++)(n=i[r])&&(n.__=e,t=typeof n.type=="function"?ae(n,t,o):ue(o,n,n,i,n.__e,t));return t}function F(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(o){F(o,t)}):t.push(e)),t}function ue(e,t,o,n,i,r){var l,u,f;if(t.__d!==void 0)l=t.__d,t.__d=void 0;else if(o==null||i!=r||i.parentNode==null)e:if(r==null||r.parentNode!==e)e.appendChild(i),l=null;else{for(u=r,f=0;(u=u.nextSibling)&&f<n.length;f+=2)if(u==i)break e;e.insertBefore(i,r),l=r}return l!==void 0?l:i.nextSibling}function Ve(e,t,o,n,i){var r;for(r in o)r==="children"||r==="key"||r in t||I(e,r,null,o[r],n);for(r in t)i&&typeof t[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||o[r]===t[r]||I(e,r,t[r],o[r],n)}function fe(e,t,o){t[0]==="-"?e.setProperty(t,o):e[t]=o==null?"":typeof o!="number"||ze.test(t)?o:o+"px"}function I(e,t,o,n,i){var r;e:if(t==="style")if(typeof o=="string")e.style.cssText=o;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)o&&t in o||fe(e.style,t,"");if(o)for(t in o)n&&o[t]===n[t]||fe(e.style,t,o[t])}else if(t[0]==="o"&&t[1]==="n")r=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=o,o?n||e.addEventListener(t,r?pe:de,r):e.removeEventListener(t,r?pe:de,r);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=o==null?"":o;break e}catch{}typeof o=="function"||(o!=null&&(o!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,o):e.removeAttribute(t))}}function de(e){this.l[e.type+!1](a.event?a.event(e):e)}function pe(e){this.l[e.type+!0](a.event?a.event(e):e)}function Q(e,t,o,n,i,r,l,u,f){var d,_,h,s,c,p,k,b,m,y,w,g=t.type;if(t.constructor!==void 0)return null;o.__h!=null&&(f=o.__h,u=t.__e=o.__e,t.__h=null,r=[u]),(d=a.__b)&&d(t);try{e:if(typeof g=="function"){if(b=t.props,m=(d=g.contextType)&&n[d.__c],y=d?m?m.props.value:d.__:n,o.__c?k=(_=t.__c=o.__c).__=_.__E:("prototype"in g&&g.prototype.render?t.__c=_=new g(b,y):(t.__c=_=new M(b,y),_.constructor=g,_.render=Be),m&&m.sub(_),_.props=b,_.state||(_.state={}),_.context=y,_.__n=n,h=_.__d=!0,_.__h=[]),_.__s==null&&(_.__s=_.state),g.getDerivedStateFromProps!=null&&(_.__s==_.state&&(_.__s=C({},_.__s)),C(_.__s,g.getDerivedStateFromProps(b,_.__s))),s=_.props,c=_.state,h)g.getDerivedStateFromProps==null&&_.componentWillMount!=null&&_.componentWillMount(),_.componentDidMount!=null&&_.__h.push(_.componentDidMount);else{if(g.getDerivedStateFromProps==null&&b!==s&&_.componentWillReceiveProps!=null&&_.componentWillReceiveProps(b,y),!_.__e&&_.shouldComponentUpdate!=null&&_.shouldComponentUpdate(b,_.__s,y)===!1||t.__v===o.__v){_.props=b,_.state=_.__s,t.__v!==o.__v&&(_.__d=!1),_.__v=t,t.__e=o.__e,t.__k=o.__k,t.__k.forEach(function(S){S&&(S.__=t)}),_.__h.length&&l.push(_);break e}_.componentWillUpdate!=null&&_.componentWillUpdate(b,_.__s,y),_.componentDidUpdate!=null&&_.__h.push(function(){_.componentDidUpdate(s,c,p)})}_.context=y,_.props=b,_.state=_.__s,(d=a.__r)&&d(t),_.__d=!1,_.__v=t,_.__P=e,d=_.render(_.props,_.state,_.context),_.state=_.__s,_.getChildContext!=null&&(n=C(C({},n),_.getChildContext())),h||_.getSnapshotBeforeUpdate==null||(p=_.getSnapshotBeforeUpdate(s,c)),w=d!=null&&d.type===O&&d.key==null?d.props.children:d,se(e,Array.isArray(w)?w:[w],t,o,n,i,r,l,u,f),_.base=t.__e,t.__h=null,_.__h.length&&l.push(_),k&&(_.__E=_.__=null),_.__e=!1}else r==null&&t.__v===o.__v?(t.__k=o.__k,t.__e=o.__e):t.__e=qe(o.__e,t,o,n,i,r,l,f);(d=a.diffed)&&d(t)}catch(S){t.__v=null,(f||r!=null)&&(t.__e=u,t.__h=!!f,r[r.indexOf(u)]=null),a.__e(S,t,o)}}function he(e,t){a.__c&&a.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(n){n.call(o)})}catch(n){a.__e(n,o.__v)}})}function qe(e,t,o,n,i,r,l,u){var f,d,_,h=o.props,s=t.props,c=t.type,p=0;if(c==="svg"&&(i=!0),r!=null){for(;p<r.length;p++)if((f=r[p])&&"setAttribute"in f==!!c&&(c?f.localName===c:f.nodeType===3)){e=f,r[p]=null;break}}if(e==null){if(c===null)return document.createTextNode(s);e=i?document.createElementNS("http://www.w3.org/2000/svg",c):document.createElement(c,s.is&&s),r=null,u=!1}if(c===null)h===s||u&&e.data===s||(e.data=s);else{if(r=r&&A.call(e.childNodes),d=(h=o.props||U).dangerouslySetInnerHTML,_=s.dangerouslySetInnerHTML,!u){if(r!=null)for(h={},p=0;p<e.attributes.length;p++)h[e.attributes[p].name]=e.attributes[p].value;(_||d)&&(_&&(d&&_.__html==d.__html||_.__html===e.innerHTML)||(e.innerHTML=_&&_.__html||""))}if(Ve(e,s,h,i,u),_)t.__k=[];else if(p=t.props.children,se(e,Array.isArray(p)?p:[p],t,o,n,i&&c!=="foreignObject",r,l,r?r[0]:o.__k&&N(o,0),u),r!=null)for(p=r.length;p--;)r[p]!=null&&ie(r[p]);u||("value"in s&&(p=s.value)!==void 0&&(p!==e.value||c==="progress"&&!p||c==="option"&&p!==h.value)&&I(e,"value",p,h.value,!1),"checked"in s&&(p=s.checked)!==void 0&&p!==e.checked&&I(e,"checked",p,h.checked,!1))}return e}function ve(e,t,o){try{typeof e=="function"?e(t):e.current=t}catch(n){a.__e(n,o)}}function be(e,t,o){var n,i;if(a.unmount&&a.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||ve(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(r){a.__e(r,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&be(n[i],t,typeof e.type!="function");o||e.__e==null||ie(e.__e),e.__e=e.__d=void 0}function Be(e,t,o){return this.constructor(e,o)}function me(e,t,o){var n,i,r;a.__&&a.__(e,t),i=(n=typeof o=="function")?null:o&&o.__k||t.__k,r=[],Q(t,e=(!n&&o||t).__k=v(O,null,[e]),i||U,U,t.ownerSVGElement!==void 0,!n&&o?[o]:i?null:t.firstChild?A.call(t.childNodes):null,r,!n&&o?o:i?i.__e:t.firstChild,n),he(r,e)}A=_e.slice,a={__e:function(e,t,o,n){for(var i,r,l;t=t.__;)if((i=t.__c)&&!i.__)try{if((r=i.constructor)&&r.getDerivedStateFromError!=null&&(i.setState(r.getDerivedStateFromError(e)),l=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),l=i.__d),l)return i.__E=i}catch(u){e=u}throw e}},oe=0,M.prototype.setState=function(e,t){var o;o=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=C({},this.state),typeof e=="function"&&(e=e(C({},o),this.props)),e&&C(o,e),e!=null&&this.__v&&(t&&this.__h.push(t),ce(this))},M.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ce(this))},M.prototype.render=O,D=[],ne=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,T.__r=0;const Ge=`.time-cell{display:flex;flex-flow:column nowrap;align-items:center;font-family:sans-serif;font-weight:700}.time-cell.disabled .time-cell-up:before,.time-cell.disabled .time-cell-down:after{border-top-color:#0000000d;border-bottom-color:#0000000d}.time-cell-up:before,.time-cell-down:after{content:"";display:block;width:0;height:0;margin:0 0 4px;border-top:0;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:12px solid #151515;transition:border-color .4s;cursor:pointer}.time-cell-down:after{margin:4px 0 0;border-top:12px solid #151515;border-bottom:0}.rotor{position:relative;width:36px;height:64px;border-radius:4px;font-size:48px;text-align:center;perspective:200px}.rotor-top,.rotor-bottom{overflow:hidden;position:absolute;width:36px;height:32px}.rotor-leaf{z-index:1;position:absolute;width:36px;height:64px;transform-style:preserve-3d;transition:transform 0s}.rotor-leaf.flipped{transform:rotateX(-180deg);transition:all .5s ease-in-out}.rotor-leaf-front,.rotor-leaf-rear{overflow:hidden;position:absolute;width:36px;height:32px;margin:0;transform:rotateX(0);backface-visibility:hidden;-webkit-backface-visibility:hidden}.rotor-leaf-front{line-height:64px;border-radius:4px 4px 0 0}.rotor-leaf-rear{line-height:0px;border-radius:0 0 4px 4px;transform:rotateX(-180deg)}.rotor-top{line-height:64px;border-radius:4px 4px 0 0}.rotor-bottom{bottom:0;line-height:0px;border-radius:0 0 4px 4px}.rotor:after{content:"";z-index:2;position:absolute;bottom:0px;left:0px;width:36px;height:32px;border-radius:0 0 4px 4px}.rotor,.rotor-top,.rotor-leaf-front{color:#fff;background-color:#151515}.rotor-bottom,.rotor-leaf-rear{color:#efefef;background-color:#202020}.rotor:after{border-top:solid 1px #151515}.telebox-color-scheme-dark .time-cell.disabled .time-cell-up:before,.telebox-color-scheme-dark .time-cell.disabled .time-cell-down:after{border-top-color:#ffffff14;border-bottom-color:#ffffff14}.telebox-color-scheme-dark .time-cell-up:before,.telebox-color-scheme-dark .time-cell-down:after{border-top-color:#d9d9df;border-bottom-color:#d9d9df}.telebox-color-scheme-dark .rotor,.telebox-color-scheme-dark .rotor-top,.telebox-color-scheme-dark .rotor-leaf-front{color:#383838;background-color:#efeff5}.telebox-color-scheme-dark .rotor-bottom,.telebox-color-scheme-dark .rotor-leaf-rear{color:#333;background-color:#eeecec}.telebox-color-scheme-dark .rotor:after{border-top:solid 1px #efeff5}.countdown-clock{display:flex;padding:5px}.countdown-clock>*{padding:0 5px}.countdown-clock-divider{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:0 1px}.countdown-clock-divider:before,.countdown-clock-divider:after{content:"";display:block;width:8px;height:8px;margin:6px 0;background-color:#000;border-radius:50%}.netless-app-countdown{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;transition:background-color .4s}.netless-app-countdown-shrink{display:inline-block;transition:background-color .4s}.netless-app-countdown-btns{width:100%;margin-top:10px;display:flex;flex-wrap:nowrap}.netless-app-countdown-btns>button{flex:1;display:block;margin:0 10px 0 0;padding:5px 10px;text-align:center;border:0;border-radius:4px;color:#fff;background-color:#3380ff;transition:background-color .4s,color .4s;cursor:pointer}.netless-app-countdown-btns>button:last-of-type{margin:0}.netless-app-countdown-btns>button:disabled{color:#00000040;background:#f5f5f5;cursor:not-allowed}.telebox-color-scheme-dark .netless-app-countdown-btns>button:disabled{color:#ffffff4d;background:rgba(255,255,255,.08)}
`;var L,x,ye,z=0,ge=[],ke=a.__b,we=a.__r,xe=a.diffed,Se=a.__c,Me=a.unmount;function Y(e,t){a.__h&&a.__h(x,e,z||t),z=0;var o=x.__H||(x.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({}),o.__[e]}function H(e){return z=1,Xe(Oe,e)}function Xe(e,t,o){var n=Y(L++,2);return n.t=e,n.__c||(n.__=[o?o(t):Oe(void 0,t),function(i){var r=n.t(n.__[0],i);n.__[0]!==r&&(n.__=[r,n.__[1]],n.__c.setState({}))}],n.__c=x),n.__}function E(e,t){var o=Y(L++,3);!a.__s&&Pe(o.__H,t)&&(o.__=e,o.__H=t,x.__H.__h.push(o))}function $e(e,t){var o=Y(L++,7);return Pe(o.__H,t)&&(o.__=e(),o.__H=t,o.__h=e),o.__}function R(e,t){return z=8,$e(function(){return e},t)}function Ze(){for(var e;e=ge.shift();)if(e.__P)try{e.__H.__h.forEach(V),e.__H.__h.forEach(j),e.__H.__h=[]}catch(t){e.__H.__h=[],a.__e(t,e.__v)}}a.__b=function(e){x=null,ke&&ke(e)},a.__r=function(e){we&&we(e),L=0;var t=(x=e.__c).__H;t&&(t.__h.forEach(V),t.__h.forEach(j),t.__h=[])},a.diffed=function(e){xe&&xe(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(ge.push(t)!==1&&ye===a.requestAnimationFrame||((ye=a.requestAnimationFrame)||function(o){var n,i=function(){clearTimeout(r),Ce&&cancelAnimationFrame(n),setTimeout(o)},r=setTimeout(i,100);Ce&&(n=requestAnimationFrame(i))})(Ze)),x=null},a.__c=function(e,t){t.some(function(o){try{o.__h.forEach(V),o.__h=o.__h.filter(function(n){return!n.__||j(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],a.__e(n,o.__v)}}),Se&&Se(e,t)},a.unmount=function(e){Me&&Me(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{V(n)}catch(i){t=i}}),t&&a.__e(t,o.__v))};var Ce=typeof requestAnimationFrame=="function";function V(e){var t=x,o=e.__c;typeof o=="function"&&(e.__c=void 0,o()),x=t}function j(e){var t=x;e.__c=e.__(),x=t}function Pe(e,t){return!e||e.length!==t.length||t.some(function(o,n){return o!==e[n]})}function Oe(e,t){return typeof t=="function"?t(e):t}function Je(e,t){for(var o in t)e[o]=t[o];return e}function ee(e,t){for(var o in e)if(o!=="__source"&&!(o in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function He(e){this.props=e}function q(e,t){function o(i){var r=this.props.ref,l=r==i.ref;return!l&&r&&(r.call?r(null):r.current=null),t?!t(this.props,i)||!l:ee(this.props,i)}function n(i){return this.shouldComponentUpdate=o,v(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(He.prototype=new M).isPureReactComponent=!0,He.prototype.shouldComponentUpdate=function(e,t){return ee(this.props,e)||ee(this.state,t)};var Ne=a.__b;a.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ne&&Ne(e)};var Ke=a.__e;a.__e=function(e,t,o,n){if(e.then){for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return t.__e==null&&(t.__e=o.__e,t.__k=o.__k),i.__c(e,t)}Ke(e,t,o,n)};var Ee=a.unmount;function te(){this.__u=0,this.t=null,this.__b=null}function Re(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function B(){this.u=null,this.o=null}a.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Ee&&Ee(e)},(te.prototype=new M).__c=function(e,t){var o=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var i=Re(n.__v),r=!1,l=function(){r||(r=!0,o.__R=null,i?i(u):u())};o.__R=l;var u=function(){if(!--n.__u){if(n.state.__e){var d=n.state.__e;n.__v.__k[0]=function h(s,c,p){return s&&(s.__v=null,s.__k=s.__k&&s.__k.map(function(k){return h(k,c,p)}),s.__c&&s.__c.__P===c&&(s.__e&&p.insertBefore(s.__e,s.__d),s.__c.__e=!0,s.__c.__P=p)),s}(d,d.__c.__P,d.__c.__O)}var _;for(n.setState({__e:n.__b=null});_=n.t.pop();)_.forceUpdate()}},f=t.__h===!0;n.__u++||f||n.setState({__e:n.__b=n.__v.__k[0]}),e.then(l,l)},te.prototype.componentWillUnmount=function(){this.t=[]},te.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=function r(l,u,f){return l&&(l.__c&&l.__c.__H&&(l.__c.__H.__.forEach(function(d){typeof d.__c=="function"&&d.__c()}),l.__c.__H=null),(l=Je({},l)).__c!=null&&(l.__c.__P===f&&(l.__c.__P=u),l.__c=null),l.__k=l.__k&&l.__k.map(function(d){return r(d,u,f)})),l}(this.__b,o,n.__O=n.__P)}this.__b=null}var i=t.__e&&v(O,null,e.fallback);return i&&(i.__h=null),[v(O,null,t.__e?null:e.children),i]};var De=function(e,t,o){if(++o[1]===o[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(o=e.u;o;){for(;o.length>3;)o.pop()();if(o[1]<o[0])break;e.u=o=o[2]}};(B.prototype=new M).__e=function(e){var t=this,o=Re(t.__v),n=t.o.get(e);return n[0]++,function(i){var r=function(){t.props.revealOrder?(n.push(i),De(t,e,n)):i()};o?o(r):r()}},B.prototype.render=function(e){this.u=null,this.o=new Map;var t=F(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var o=t.length;o--;)this.o.set(t[o],this.u=[1,0,this.u]);return e.children},B.prototype.componentDidUpdate=B.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,o){De(e,o,t)})};var Qe=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ye=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,je=typeof document<"u",et=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};M.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(M.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ae=a.event;function tt(){}function ot(){return this.cancelBubble}function nt(){return this.defaultPrevented}a.event=function(e){return Ae&&(e=Ae(e)),e.persist=tt,e.isPropagationStopped=ot,e.isDefaultPrevented=nt,e.nativeEvent=e};var Ue={configurable:!0,get:function(){return this.class}},We=a.vnode;a.vnode=function(e){var t=e.type,o=e.props,n=o;if(typeof t=="string"){var i=t.indexOf("-")===-1;for(var r in n={},o){var l=o[r];je&&r==="children"&&t==="noscript"||r==="value"&&"defaultValue"in o&&l==null||(r==="defaultValue"&&"value"in o&&o.value==null?r="value":r==="download"&&l===!0?l="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!et(o.type)?r="oninput":/^onfocus$/i.test(r)?r="onfocusin":/^onblur$/i.test(r)?r="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(r)?r=r.toLowerCase():i&&Ye.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():l===null&&(l=void 0),n[r]=l)}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=F(o.children).forEach(function(u){u.props.selected=n.value.indexOf(u.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=F(o.children).forEach(function(u){u.props.selected=n.multiple?n.defaultValue.indexOf(u.props.value)!=-1:n.defaultValue==u.props.value})),e.props=n,o.class!=o.className&&(Ue.enumerable="className"in o,o.className!=null&&(n.class=o.className),Object.defineProperty(n,"className",Ue))}e.$$typeof=Qe,We&&We(e)};var Te=a.__r;a.__r=function(e){Te&&Te(e),e.__c};const ct="";var Fe={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function o(){for(var n=[],i=0;i<arguments.length;i++){var r=arguments[i];if(!!r){var l=typeof r;if(l==="string"||l==="number")n.push(r);else if(Array.isArray(r)){if(r.length){var u=o.apply(null,r);u&&n.push(u)}}else if(l==="object")if(r.toString===Object.prototype.toString)for(var f in r)t.call(r,f)&&r[f]&&n.push(f);else n.push(r.toString())}}return n.join(" ")}e.exports?(o.default=o,e.exports=o):window.classNames=o})()})(Fe);const Ie=Fe.exports,G=q(({digit:e,disabled:t,onUp:o,onDown:n})=>{const[i,r]=H(0),[l,u]=H(!1);return E(()=>{if(t){u(!0);const f=window.setTimeout(()=>{u(!1),r(e)},500);return()=>window.clearTimeout(f)}else r(e)},[e]),v("div",{class:Ie("time-cell",{disabled:t})},v("div",{class:"time-cell-up",onClick:t?void 0:o}),v("div",{class:"rotor"},v("div",{class:Ie("rotor-leaf",{flipped:l})},v("figure",{class:"rotor-leaf-rear"},e),v("figure",{class:"rotor-leaf-front"},i)),v("div",{class:"rotor-top"},e),v("div",{class:"rotor-bottom"},i)),v("div",{class:"time-cell-down",onClick:t?void 0:n}))});var $=(e=>(e[e.AddTenMinutes=0]="AddTenMinutes",e[e.ReduceTenMinutes=1]="ReduceTenMinutes",e[e.AddOneMinute=2]="AddOneMinute",e[e.ReduceOneMinute=3]="ReduceOneMinute",e[e.AddTenSeconds=4]="AddTenSeconds",e[e.ReduceTenSeconds=5]="ReduceTenSeconds",e[e.AddOneSecond=6]="AddOneSecond",e[e.ReduceOneSecond=7]="ReduceOneSecond",e))($||{});function Le(e){return $e(()=>(e=e%61,[Math.floor(e/10),e%10]),[e])}function P(e,t){return R(()=>e(t),[e])}const rt=q(({minutes:e,seconds:t,disabled:o,onAdjustTime:n})=>{const i=Le(e),r=Le(t),l=P(n,0),u=P(n,1),f=P(n,2),d=P(n,3),_=P(n,4),h=P(n,5),s=P(n,6),c=P(n,7);return v("div",{className:"countdown-clock"},v(G,{disabled:o,digit:i[0],onUp:l,onDown:u}),v(G,{digit:i[1],disabled:o,onUp:f,onDown:d}),v("div",{class:"countdown-clock-divider"}),v(G,{disabled:o,digit:r[0],onUp:_,onDown:h}),v(G,{digit:r[1],disabled:o,onUp:s,onDown:c}))}),_t=q(({readonly:e,countdownSecs:t,startTime:o,paused:n,onAdjustTime:i,onStart:r,onPause:l,onResume:u,onReset:f})=>{const[d,_]=H(0),h=o>0&&d>=o,s=t-(h?d-o:0),c=Math.floor(s/60),p=s-c*60;return E(()=>{let k=NaN;if(t>0&&o>0&&!n){const b=()=>{_(Math.floor(Date.now()/1e3)),k=window.requestAnimationFrame(b)};return b(),()=>window.cancelAnimationFrame(k)}else window.cancelAnimationFrame(k)},[o,n,t]),E(()=>{o>0&&d-o>=t&&f()},[d,o,t,f]),v("div",{class:"netless-app-countdown"},v("div",{class:"netless-app-countdown-shrink"},v(rt,{minutes:c,seconds:p,disabled:e||h,onAdjustTime:i}),v("div",{class:"netless-app-countdown-btns"},n?v(O,null,v("button",{onClick:f,disabled:e},"Reset"),v("button",{onClick:u,disabled:e},"Resume")):h?v("button",{onClick:l,disabled:e},"Pause"):v("button",{onClick:r,disabled:e||s<=0},"Start"))))}),it=q(({context:e,storage:t})=>{const[o,n]=H(()=>e.isWritable),[i,r]=H(t.state.countdownSecs),[l,u]=H(t.state.startTime),[f,d]=H(t.state.paused),_=l>0,h=R(()=>{e.isWritable&&(d(!1),u(Math.floor(Date.now()/1e3)))},[e]),s=R(()=>{e.isWritable&&d(!0)},[e]),c=R(()=>{e.isWritable&&d(!1)},[e]),p=R(()=>{e.isWritable&&(d(!1),r(0),u(0))},[e]),k=R(b=>{_||r(m=>{if(!e.isWritable)return m;const y=Math.floor(m/60),w=m-y*60,g=Math.floor(y/10),S=y%10,X=Math.floor(w/10),Z=w%10;switch(b){case $.AddTenMinutes:{const J=S+w===0?7:6;return((g+1)%J*10+S)*60+w}case $.ReduceTenMinutes:{const J=S+w===0?7:6;return((g+J-1)%J*10+S)*60+w}case $.AddOneMinute:return(Math.min(5,g)*10+(S+1)%10)*60+w;case $.ReduceOneMinute:return(Math.min(5,g)*10+(S+10-1)%10)*60+w;case $.AddTenSeconds:return y*60+((X+1)%6*10+Z);case $.ReduceTenSeconds:return y*60+((X+6-1)%6*10+Z);case $.AddOneSecond:return y*60+(Math.min(5,X)*10+(Z+1)%10);case $.ReduceOneSecond:return y*60+(Math.min(5,X)*10+(Z+10-1)%10);default:return m}})},[_,e]);return E(()=>(n(e.isWritable),e.emitter.on("writableChange",n),()=>e.emitter.off("writableChange",n)),[e]),E(()=>{const b=m=>{m.countdownSecs&&r(t.state.countdownSecs),m.paused&&d(t.state.paused),m.startTime&&u(t.state.startTime)};return t.on("stateChanged",b)},[t]),E(()=>{e.isWritable&&t.setState({countdownSecs:i,paused:f,startTime:l})},[i,f,l,e]),v(_t,{readonly:!o,countdownSecs:i,startTime:l,paused:f,onAdjustTime:k,onStart:h,onPause:s,onResume:c,onReset:p})}),lt={kind:"Countdown",config:{minwidth:208,minheight:216},setup(e){const t=e.box;t.mountStyles(Ge);const o=e.createStorage("state",{countdownSecs:0,startTime:0,paused:!1});me(v(it,{context:e,storage:o}),t.$content),e.emitter.on("destroy",()=>{me(null,t.$content)})}};return K.default=lt,Object.defineProperties(K,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),K}({});
//# sourceMappingURL=main.iife.js.map
"use strict";var NetlessAppCountdown=(()=>{var Qe=Object.create;var V=Object.defineProperty;var et=Object.getOwnPropertyDescriptor;var tt=Object.getOwnPropertyNames;var nt=Object.getPrototypeOf,ot=Object.prototype.hasOwnProperty;var le=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),rt=(e,t)=>{for(var n in t)V(e,n,{get:t[n],enumerable:!0})},se=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of tt(t))!ot.call(e,i)&&i!==n&&V(e,i,{get:()=>t[i],enumerable:!(o=et(t,i))||o.enumerable});return e};var ae=(e,t,n)=>(n=e!=null?Qe(nt(e)):{},se(t||!e||!e.__esModule?V(n,"default",{value:e,enumerable:!0}):n,e)),it=e=>se(V({},"__esModule",{value:!0}),e);var Ee=le(()=>{var ft=`.time-cell{display:flex;flex-flow:column nowrap;align-items:center;font-family:sans-serif;font-weight:700}.time-cell.disabled .time-cell-up:before,.time-cell.disabled .time-cell-down:after{border-top-color:#0000000d;border-bottom-color:#0000000d}.time-cell-up:before,.time-cell-down:after{content:"";display:block;width:0;height:0;margin:0 0 4px;border-top:0;border-left:12px solid rgba(0,0,0,0);border-right:12px solid rgba(0,0,0,0);border-bottom:12px solid #151515;transition:border-color .4s;cursor:pointer}.time-cell-down:after{margin:4px 0 0;border-top:12px solid #151515;border-bottom:0}.rotor{position:relative;width:36px;height:64px;border-radius:4px;font-size:48px;text-align:center;perspective:200px}.rotor-top,.rotor-bottom{overflow:hidden;position:absolute;width:36px;height:32px}.rotor-leaf{z-index:1;position:absolute;width:36px;height:64px;transform-style:preserve-3d;transition:transform 0s}.rotor-leaf.flipped{transform:rotateX(-180deg);transition:all .5s ease-in-out}.rotor-leaf-front,.rotor-leaf-rear{overflow:hidden;position:absolute;width:36px;height:32px;margin:0;transform:rotateX(0);backface-visibility:hidden;-webkit-backface-visibility:hidden}.rotor-leaf-front{line-height:64px;border-radius:4px 4px 0 0}.rotor-leaf-rear{line-height:0px;border-radius:0 0 4px 4px;transform:rotateX(-180deg)}.rotor-top{line-height:64px;border-radius:4px 4px 0 0}.rotor-bottom{bottom:0;line-height:0px;border-radius:0 0 4px 4px}.rotor:after{content:"";z-index:2;position:absolute;bottom:0;left:0;width:36px;height:32px;border-radius:0 0 4px 4px}.rotor,.rotor-top,.rotor-leaf-front{color:#fff;background-color:#151515}.rotor-bottom,.rotor-leaf-rear{color:#efefef;background-color:#202020}.rotor:after{border-top:solid 1px #151515}.telebox-color-scheme-dark .time-cell.disabled .time-cell-up:before,.telebox-color-scheme-dark .time-cell.disabled .time-cell-down:after{border-top-color:#ffffff14;border-bottom-color:#ffffff14}.telebox-color-scheme-dark .time-cell-up:before,.telebox-color-scheme-dark .time-cell-down:after{border-top-color:#d9d9df;border-bottom-color:#d9d9df}.telebox-color-scheme-dark .rotor,.telebox-color-scheme-dark .rotor-top,.telebox-color-scheme-dark .rotor-leaf-front{color:#383838;background-color:#efeff5}.telebox-color-scheme-dark .rotor-bottom,.telebox-color-scheme-dark .rotor-leaf-rear{color:#333;background-color:#eeecec}.telebox-color-scheme-dark .rotor:after{border-top:solid 1px #efeff5}.countdown-clock{display:flex;padding:5px}.countdown-clock>*{padding:0 5px}.countdown-clock-divider{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:0 1px}.countdown-clock-divider:before,.countdown-clock-divider:after{content:"";display:block;width:8px;height:8px;margin:6px 0;background-color:#000;border-radius:50%}.netless-app-countdown{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;transition:background-color .4s}.netless-app-countdown-shrink{display:inline-block;transition:background-color .4s}.netless-app-countdown-btns{width:100%;margin-top:10px;display:flex;flex-wrap:nowrap}.netless-app-countdown-btns>button{flex:1;display:block;margin:0 10px 0 0;padding:5px 10px;text-align:center;border:0;border-radius:4px;color:#fff;background-color:#3380ff;transition:background-color .4s,color .4s;cursor:pointer}.netless-app-countdown-btns>button:last-of-type{margin:0}.netless-app-countdown-btns>button:disabled{color:#00000040;background:#f5f5f5;cursor:not-allowed}.telebox-color-scheme-dark .netless-app-countdown-btns>button:disabled{color:#ffffff4d;background:rgba(255,255,255,.08)}
`,Se=document.createElement("style");Se.appendChild(document.createTextNode(ft));document.head.appendChild(Se)});var Ge=le((Jt,Q)=>{(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var n=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var r=typeof i;if(r==="string"||r==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var s=t.apply(null,i);s&&n.push(s)}}else if(r==="object")if(i.toString===Object.prototype.toString)for(var u in i)e.call(i,u)&&i[u]&&n.push(u);else n.push(i.toString())}}return n.join(" ")}typeof Q<"u"&&Q.exports?(t.default=t,Q.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t})()});var Nt={};rt(Nt,{default:()=>Mt});var q,c,pe,lt,F,me,_e,st,B={},he=[],at=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function N(e,t){for(var n in t)e[n]=t[n];return e}function ve(e){var t=e.parentNode;t&&t.removeChild(e)}function U(e,t,n){var o,i,r,s={};for(r in t)r=="key"?o=t[r]:r=="ref"?i=t[r]:s[r]=t[r];if(arguments.length>2&&(s.children=arguments.length>3?q.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)s[r]===void 0&&(s[r]=e.defaultProps[r]);return $(e,s,o,i,null)}function $(e,t,n,o,i){var r={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++pe};return i==null&&c.vnode!=null&&c.vnode(r),r}function C(e){return e.children}function w(e,t){this.props=e,this.context=t}function D(e,t){if(t==null)return e.__?D(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?D(e):null}function be(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return be(e)}}function ce(e){(!e.__d&&(e.__d=!0)&&F.push(e)&&!z.__r++||_e!==c.debounceRendering)&&((_e=c.debounceRendering)||me)(z)}function z(){for(var e;z.__r=F.length;)e=F.sort(function(t,n){return t.__v.__b-n.__v.__b}),F=[],e.some(function(t){var n,o,i,r,s,u;t.__d&&(s=(r=(n=t).__v).__e,(u=n.__P)&&(o=[],(i=N({},r)).__v=r.__v+1,ee(u,r,i,n.__n,u.ownerSVGElement!==void 0,r.__h!=null?[s]:null,o,s??D(r),r.__h),xe(o,r),r.__e!=s&&be(r)))})}function ye(e,t,n,o,i,r,s,u,f,p){var l,h,_,a,d,k,b,v=o&&o.__k||he,y=v.length;for(n.__k=[],l=0;l<t.length;l++)if((a=n.__k[l]=(a=t[l])==null||typeof a=="boolean"?null:typeof a=="string"||typeof a=="number"||typeof a=="bigint"?$(null,a,null,null,a):Array.isArray(a)?$(C,{children:a},null,null,null):a.__b>0?$(a.type,a.props,a.key,null,a.__v):a)!=null){if(a.__=n,a.__b=n.__b+1,(_=v[l])===null||_&&a.key==_.key&&a.type===_.type)v[l]=void 0;else for(h=0;h<y;h++){if((_=v[h])&&a.key==_.key&&a.type===_.type){v[h]=void 0;break}_=null}ee(e,a,_=_||B,i,r,s,u,f,p),d=a.__e,(h=a.ref)&&_.ref!=h&&(b||(b=[]),_.ref&&b.push(_.ref,null,a),b.push(h,a.__c||d,a)),d!=null?(k==null&&(k=d),typeof a.type=="function"&&a.__k===_.__k?a.__d=f=ge(a,f,e):f=ke(e,a,_,v,d,f),typeof n.type=="function"&&(n.__d=f)):f&&_.__e==f&&f.parentNode!=e&&(f=D(_))}for(n.__e=k,l=y;l--;)v[l]!=null&&(typeof n.type=="function"&&v[l].__e!=null&&v[l].__e==n.__d&&(n.__d=D(o,l+1)),Ce(v[l],v[l]));if(b)for(l=0;l<b.length;l++)we(b[l],b[++l],b[++l])}function ge(e,t,n){for(var o,i=e.__k,r=0;i&&r<i.length;r++)(o=i[r])&&(o.__=e,t=typeof o.type=="function"?ge(o,t,n):ke(n,o,o,i,o.__e,t));return t}function H(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){H(n,t)}):t.push(e)),t}function ke(e,t,n,o,i,r){var s,u,f;if(t.__d!==void 0)s=t.__d,t.__d=void 0;else if(n==null||i!=r||i.parentNode==null)e:if(r==null||r.parentNode!==e)e.appendChild(i),s=null;else{for(u=r,f=0;(u=u.nextSibling)&&f<o.length;f+=2)if(u==i)break e;e.insertBefore(i,r),s=r}return s!==void 0?s:i.nextSibling}function _t(e,t,n,o,i){var r;for(r in n)r==="children"||r==="key"||r in t||j(e,r,null,n[r],o);for(r in t)i&&typeof t[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||n[r]===t[r]||j(e,r,t[r],n[r],o)}function ue(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||at.test(t)?n:n+"px"}function j(e,t,n,o,i){var r;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||ue(e.style,t,"");if(n)for(t in n)o&&n[t]===o[t]||ue(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")r=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?o||e.addEventListener(t,r?de:fe,r):e.removeEventListener(t,r?de:fe,r);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,n):e.removeAttribute(t))}}function fe(e){this.l[e.type+!1](c.event?c.event(e):e)}function de(e){this.l[e.type+!0](c.event?c.event(e):e)}function ee(e,t,n,o,i,r,s,u,f){var p,l,h,_,a,d,k,b,v,y,P,g=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(f=n.__h,u=t.__e=n.__e,t.__h=null,r=[u]),(p=c.__b)&&p(t);try{e:if(typeof g=="function"){if(b=t.props,v=(p=g.contextType)&&o[p.__c],y=p?v?v.props.value:p.__:o,n.__c?k=(l=t.__c=n.__c).__=l.__E:("prototype"in g&&g.prototype.render?t.__c=l=new g(b,y):(t.__c=l=new w(b,y),l.constructor=g,l.render=ut),v&&v.sub(l),l.props=b,l.state||(l.state={}),l.context=y,l.__n=o,h=l.__d=!0,l.__h=[]),l.__s==null&&(l.__s=l.state),g.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=N({},l.__s)),N(l.__s,g.getDerivedStateFromProps(b,l.__s))),_=l.props,a=l.state,h)g.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(g.getDerivedStateFromProps==null&&b!==_&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(b,y),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(b,l.__s,y)===!1||t.__v===n.__v){l.props=b,l.state=l.__s,t.__v!==n.__v&&(l.__d=!1),l.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(R){R&&(R.__=t)}),l.__h.length&&s.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(b,l.__s,y),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(_,a,d)})}l.context=y,l.props=b,l.state=l.__s,(p=c.__r)&&p(t),l.__d=!1,l.__v=t,l.__P=e,p=l.render(l.props,l.state,l.context),l.state=l.__s,l.getChildContext!=null&&(o=N(N({},o),l.getChildContext())),h||l.getSnapshotBeforeUpdate==null||(d=l.getSnapshotBeforeUpdate(_,a)),P=p!=null&&p.type===C&&p.key==null?p.props.children:p,ye(e,Array.isArray(P)?P:[P],t,n,o,i,r,s,u,f),l.base=t.__e,t.__h=null,l.__h.length&&s.push(l),k&&(l.__E=l.__=null),l.__e=!1}else r==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=ct(n.__e,t,n,o,i,r,s,f);(p=c.diffed)&&p(t)}catch(R){t.__v=null,(f||r!=null)&&(t.__e=u,t.__h=!!f,r[r.indexOf(u)]=null),c.__e(R,t,n)}}function xe(e,t){c.__c&&c.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(o){o.call(n)})}catch(o){c.__e(o,n.__v)}})}function ct(e,t,n,o,i,r,s,u){var f,p,l,h=n.props,_=t.props,a=t.type,d=0;if(a==="svg"&&(i=!0),r!=null){for(;d<r.length;d++)if((f=r[d])&&"setAttribute"in f==!!a&&(a?f.localName===a:f.nodeType===3)){e=f,r[d]=null;break}}if(e==null){if(a===null)return document.createTextNode(_);e=i?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a,_.is&&_),r=null,u=!1}if(a===null)h===_||u&&e.data===_||(e.data=_);else{if(r=r&&q.call(e.childNodes),p=(h=n.props||B).dangerouslySetInnerHTML,l=_.dangerouslySetInnerHTML,!u){if(r!=null)for(h={},d=0;d<e.attributes.length;d++)h[e.attributes[d].name]=e.attributes[d].value;(l||p)&&(l&&(p&&l.__html==p.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(_t(e,_,h,i,u),l)t.__k=[];else if(d=t.props.children,ye(e,Array.isArray(d)?d:[d],t,n,o,i&&a!=="foreignObject",r,s,r?r[0]:n.__k&&D(n,0),u),r!=null)for(d=r.length;d--;)r[d]!=null&&ve(r[d]);u||("value"in _&&(d=_.value)!==void 0&&(d!==e.value||a==="progress"&&!d||a==="option"&&d!==h.value)&&j(e,"value",d,h.value,!1),"checked"in _&&(d=_.checked)!==void 0&&d!==e.checked&&j(e,"checked",d,h.checked,!1))}return e}function we(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(o){c.__e(o,n)}}function Ce(e,t,n){var o,i;if(c.unmount&&c.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||we(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){c.__e(r,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&Ce(o[i],t,typeof e.type!="function");n||e.__e==null||ve(e.__e),e.__e=e.__d=void 0}function ut(e,t,n){return this.constructor(e,n)}function G(e,t,n){var o,i,r;c.__&&c.__(e,t),i=(o=typeof n=="function")?null:n&&n.__k||t.__k,r=[],ee(t,e=(!o&&n||t).__k=U(C,null,[e]),i||B,B,t.ownerSVGElement!==void 0,!o&&n?[n]:i?null:t.firstChild?q.call(t.childNodes):null,r,!o&&n?n:i?i.__e:t.firstChild,o),xe(r,e)}q=he.slice,c={__e:function(e,t,n,o){for(var i,r,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((r=i.constructor)&&r.getDerivedStateFromError!=null&&(i.setState(r.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,o||{}),s=i.__d),s)return i.__E=i}catch(u){e=u}throw e}},pe=0,lt=function(e){return e!=null&&e.constructor===void 0},w.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=N({},this.state),typeof e=="function"&&(e=e(N({},n),this.props)),e&&N(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),ce(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ce(this))},w.prototype.render=C,F=[],me=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,z.__r=0,st=0;var Ke=ae(Ee());var Z,x,Pe,Y=0,De=[],Re=c.__b,Ae=c.__r,Me=c.diffed,Ne=c.__c,Te=c.unmount;function ne(e,t){c.__h&&c.__h(x,e,Y||t),Y=0;var n=x.__H||(x.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function S(e){return Y=1,Ue(He,e)}function Ue(e,t,n){var o=ne(Z++,2);return o.t=e,o.__c||(o.__=[n?n(t):He(void 0,t),function(i){var r=o.t(o.__[0],i);o.__[0]!==r&&(o.__=[r,o.__[1]],o.__c.setState({}))}],o.__c=x),o.__}function A(e,t){var n=ne(Z++,3);!c.__s&&Fe(n.__H,t)&&(n.__=e,n.__H=t,x.__H.__h.push(n))}function J(e,t){var n=ne(Z++,7);return Fe(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function M(e,t){return Y=8,J(function(){return e},t)}function dt(){for(var e;e=De.shift();)if(e.__P)try{e.__H.__h.forEach(X),e.__H.__h.forEach(te),e.__H.__h=[]}catch(t){e.__H.__h=[],c.__e(t,e.__v)}}c.__b=function(e){x=null,Re&&Re(e)},c.__r=function(e){Ae&&Ae(e),Z=0;var t=(x=e.__c).__H;t&&(t.__h.forEach(X),t.__h.forEach(te),t.__h=[])},c.diffed=function(e){Me&&Me(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(De.push(t)!==1&&Pe===c.requestAnimationFrame||((Pe=c.requestAnimationFrame)||function(n){var o,i=function(){clearTimeout(r),Oe&&cancelAnimationFrame(o),setTimeout(n)},r=setTimeout(i,100);Oe&&(o=requestAnimationFrame(i))})(dt)),x=null},c.__c=function(e,t){t.some(function(n){try{n.__h.forEach(X),n.__h=n.__h.filter(function(o){return!o.__||te(o)})}catch(o){t.some(function(i){i.__h&&(i.__h=[])}),t=[],c.__e(o,n.__v)}}),Ne&&Ne(e,t)},c.unmount=function(e){Te&&Te(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(o){try{X(o)}catch(i){t=i}}),t&&c.__e(t,n.__v))};var Oe=typeof requestAnimationFrame=="function";function X(e){var t=x,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),x=t}function te(e){var t=x;e.__c=e.__(),x=t}function Fe(e,t){return!e||e.length!==t.length||t.some(function(n,o){return n!==e[o]})}function He(e,t){return typeof t=="function"?t(e):t}function ht(e,t){for(var n in t)e[n]=t[n];return e}function re(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var o in t)if(o!=="__source"&&e[o]!==t[o])return!0;return!1}function We(e){this.props=e}function T(e,t){function n(i){var r=this.props.ref,s=r==i.ref;return!s&&r&&(r.call?r(null):r.current=null),t?!t(this.props,i)||!s:re(this.props,i)}function o(i){return this.shouldComponentUpdate=n,U(e,i)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(We.prototype=new w).isPureReactComponent=!0,We.prototype.shouldComponentUpdate=function(e,t){return re(this.props,e)||re(this.state,t)};var Le=c.__b;c.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Le&&Le(e)};var Gt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var vt=c.__e;c.__e=function(e,t,n,o){if(e.then){for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}vt(e,t,n,o)};var Ie=c.unmount;function oe(){this.__u=0,this.t=null,this.__b=null}function qe(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function K(){this.u=null,this.o=null}c.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Ie&&Ie(e)},(oe.prototype=new w).__c=function(e,t){var n=t.__c,o=this;o.t==null&&(o.t=[]),o.t.push(n);var i=qe(o.__v),r=!1,s=function(){r||(r=!0,n.__R=null,i?i(u):u())};n.__R=s;var u=function(){if(!--o.__u){if(o.state.__e){var p=o.state.__e;o.__v.__k[0]=function h(_,a,d){return _&&(_.__v=null,_.__k=_.__k&&_.__k.map(function(k){return h(k,a,d)}),_.__c&&_.__c.__P===a&&(_.__e&&d.insertBefore(_.__e,_.__d),_.__c.__e=!0,_.__c.__P=d)),_}(p,p.__c.__P,p.__c.__O)}var l;for(o.setState({__e:o.__b=null});l=o.t.pop();)l.forceUpdate()}},f=t.__h===!0;o.__u++||f||o.setState({__e:o.__b=o.__v.__k[0]}),e.then(s,s)},oe.prototype.componentWillUnmount=function(){this.t=[]},oe.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=function r(s,u,f){return s&&(s.__c&&s.__c.__H&&(s.__c.__H.__.forEach(function(p){typeof p.__c=="function"&&p.__c()}),s.__c.__H=null),(s=ht({},s)).__c!=null&&(s.__c.__P===f&&(s.__c.__P=u),s.__c=null),s.__k=s.__k&&s.__k.map(function(p){return r(p,u,f)})),s}(this.__b,n,o.__O=o.__P)}this.__b=null}var i=t.__e&&U(C,null,e.fallback);return i&&(i.__h=null),[U(C,null,t.__e?null:e.children),i]};var Ve=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(K.prototype=new w).__e=function(e){var t=this,n=qe(t.__v),o=t.o.get(e);return o[0]++,function(i){var r=function(){t.props.revealOrder?(o.push(i),Ve(t,e,o)):i()};n?n(r):r()}},K.prototype.render=function(e){this.u=null,this.o=new Map;var t=H(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},K.prototype.componentDidUpdate=K.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Ve(e,n,t)})};var bt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,yt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,gt=typeof document<"u",kt=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(w.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var $e=c.event;function xt(){}function wt(){return this.cancelBubble}function Ct(){return this.defaultPrevented}c.event=function(e){return $e&&(e=$e(e)),e.persist=xt,e.isPropagationStopped=wt,e.isDefaultPrevented=Ct,e.nativeEvent=e};var St,Be={configurable:!0,get:function(){return this.class}},ze=c.vnode;c.vnode=function(e){var t=e.type,n=e.props,o=n;if(typeof t=="string"){var i=t.indexOf("-")===-1;for(var r in o={},n){var s=n[r];gt&&r==="children"&&t==="noscript"||r==="value"&&"defaultValue"in n&&s==null||(r==="defaultValue"&&"value"in n&&n.value==null?r="value":r==="download"&&s===!0?s="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!kt(n.type)?r="oninput":/^onfocus$/i.test(r)?r="onfocusin":/^onblur$/i.test(r)?r="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(r)?r=r.toLowerCase():i&&yt.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():s===null&&(s=void 0),o[r]=s)}t=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=H(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),t=="select"&&o.defaultValue!=null&&(o.value=H(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),e.props=o,n.class!=n.className&&(Be.enumerable="className"in n,n.className!=null&&(o.class=n.className),Object.defineProperty(o,"className",Be))}e.$$typeof=bt,ze&&ze(e)};var je=c.__r;c.__r=function(e){je&&je(e),St=e.__c};var ie=ae(Ge());var Et=0;function m(e,t,n,o,i){var r,s,u={};for(s in t)s=="ref"?r=t[s]:u[s]=t[s];var f={type:e,props:u,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Et,__source:i,__self:o};if(typeof e=="function"&&(r=e.defaultProps))for(s in r)u[s]===void 0&&(u[s]=r[s]);return c.vnode&&c.vnode(f),f}var W=T(({digit:e,disabled:t,onUp:n,onDown:o})=>{let[i,r]=S(0),[s,u]=S(!1);return A(()=>{if(t){u(!0);let f=window.setTimeout(()=>{u(!1),r(e)},500);return()=>window.clearTimeout(f)}else r(e)},[e]),m("div",{class:(0,ie.default)("time-cell",{disabled:t}),children:[m("div",{class:"time-cell-up",onClick:t?void 0:n}),m("div",{class:"rotor",children:[m("div",{class:(0,ie.default)("rotor-leaf",{flipped:s}),children:[m("figure",{class:"rotor-leaf-rear",children:e}),m("figure",{class:"rotor-leaf-front",children:i})]}),m("div",{class:"rotor-top",children:e}),m("div",{class:"rotor-bottom",children:i})]}),m("div",{class:"time-cell-down",onClick:t?void 0:o})]})});function Xe(e){return J(()=>(e=e%61,[Math.floor(e/10),e%10]),[e])}function O(e,t){return M(()=>e(t),[e])}var Ye=T(({minutes:e,seconds:t,disabled:n,onAdjustTime:o})=>{let i=Xe(e),r=Xe(t),s=O(o,0),u=O(o,1),f=O(o,2),p=O(o,3),l=O(o,4),h=O(o,5),_=O(o,6),a=O(o,7);return m("div",{className:"countdown-clock",children:[m(W,{disabled:n,digit:i[0],onUp:s,onDown:u}),m(W,{digit:i[1],disabled:n,onUp:f,onDown:p}),m("div",{class:"countdown-clock-divider"}),m(W,{disabled:n,digit:r[0],onUp:l,onDown:h}),m(W,{digit:r[1],disabled:n,onUp:_,onDown:a})]})});var Ze=T(({readonly:e,countdownSecs:t,startTime:n,paused:o,onAdjustTime:i,onStart:r,onPause:s,onResume:u,onReset:f})=>{let[p,l]=S(0),h=n>0&&p>=n,_=t-(h?p-n:0),a=Math.floor(_/60),d=_-a*60;return A(()=>{let k=NaN;if(t>0&&n>0&&!o){let b=()=>{l(Math.floor(Date.now()/1e3)),k=window.requestAnimationFrame(b)};return b(),()=>window.cancelAnimationFrame(k)}else window.cancelAnimationFrame(k)},[n,o,t]),A(()=>{n>0&&p-n>=t&&f()},[p,n,t,f]),m("div",{class:"netless-app-countdown",children:m("div",{class:"netless-app-countdown-shrink",children:[m(Ye,{minutes:a,seconds:d,disabled:e||h,onAdjustTime:i}),m("div",{class:"netless-app-countdown-btns",children:o?m(C,{children:[m("button",{onClick:f,disabled:e,children:"Reset"}),m("button",{onClick:u,disabled:e,children:"Resume"})]}):h?m("button",{onClick:s,disabled:e,children:"Pause"}):m("button",{onClick:r,disabled:e||_<=0,children:"Start"})})]})})});var Je=T(({context:e,storage:t})=>{let[n,o]=S(()=>e.isWritable),[i,r]=S(t.state.countdownSecs),[s,u]=S(t.state.startTime),[f,p]=S(t.state.paused);A(()=>(o(e.isWritable),e.emitter.on("writableChange",o),()=>e.emitter.off("writableChange",o)),[e]),A(()=>{let b=v=>{v.countdownSecs&&r(t.state.countdownSecs),v.paused&&p(t.state.paused),v.startTime&&u(t.state.startTime)};return t.on("stateChanged",b)},[t]);let l=s>0,h=M(()=>{e.isWritable&&t.setState({paused:!1,startTime:Math.floor(Date.now()/1e3)})},[e,t]),_=M(()=>{e.isWritable&&t.setState({paused:!0})},[e,t]),a=M(()=>{e.isWritable&&t.setState({paused:!1})},[e,t]),d=M(()=>{e.isWritable&&t.setState({paused:!1,countdownSecs:0,startTime:0})},[e]),k=M(b=>{if(!l&&e.isWritable){let v=Math.floor(i/60),y=i-v*60,P=Math.floor(v/10),g=v%10,R=Math.floor(y/10),L=y%10,E;switch(b){case 0:{let I=g+y===0?7:6;E=((P+1)%I*10+g)*60+y;break}case 1:{let I=g+y===0?7:6;E=((P+I-1)%I*10+g)*60+y;break}case 2:{E=(Math.min(5,P)*10+(g+1)%10)*60+y;break}case 3:{E=(Math.min(5,P)*10+(g+10-1)%10)*60+y;break}case 4:{E=v*60+((R+1)%6*10+L);break}case 5:{E=v*60+((R+6-1)%6*10+L);break}case 6:{E=v*60+(Math.min(5,R)*10+(L+1)%10);break}case 7:{E=v*60+(Math.min(5,R)*10+(L+10-1)%10);break}default:{E=i;break}}t.setState({countdownSecs:E})}},[l,e]);return m(Ze,{readonly:!n,countdownSecs:i,startTime:s,paused:f,onAdjustTime:k,onStart:h,onPause:_,onResume:a,onReset:d})});var Pt=208,Rt=216,At={kind:"Countdown",config:{minwidth:Pt,minheight:Rt},setup(e){let t=e.box;t.mountStyles(Ke.default);let n=e.createStorage("state",{countdownSecs:0,startTime:0,paused:!1});G(m(Je,{context:e,storage:n}),t.$content),e.emitter.on("destroy",()=>{G(null,t.$content)})}},Mt=At;return it(Nt);})();
/*! Bundled license information:
classnames/index.js:
(*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*)
*/

@@ -1,7 +0,7 @@

"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var X,u,Se,D,Me,te,z={},$e=[],Ie=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function P(e,t){for(var o in t)e[o]=t[o];return e}function Ce(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,o){var n,i,r,l={};for(r in t)r=="key"?n=t[r]:r=="ref"?i=t[r]:l[r]=t[r];if(arguments.length>2&&(l.children=arguments.length>3?X.call(arguments,2):o),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)l[r]===void 0&&(l[r]=e.defaultProps[r]);return L(e,l,n,i,null)}function L(e,t,o,n,i){var r={type:e,props:t,key:o,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++Se:i};return i==null&&u.vnode!=null&&u.vnode(r),r}function H(e){return e.children}function $(e,t){this.props=e,this.context=t}function R(e,t){if(t==null)return e.__?R(e.__,e.__.__k.indexOf(e)+1):null;for(var o;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null)return o.__e;return typeof e.type=="function"?R(e):null}function Pe(e){var t,o;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null){e.__e=e.__c.base=o.__e;break}return Pe(e)}}function oe(e){(!e.__d&&(e.__d=!0)&&D.push(e)&&!V.__r++||te!==u.debounceRendering)&&((te=u.debounceRendering)||Me)(V)}function V(){for(var e;V.__r=D.length;)e=D.sort(function(t,o){return t.__v.__b-o.__v.__b}),D=[],e.some(function(t){var o,n,i,r,l,a;t.__d&&(l=(r=(o=t).__v).__e,(a=o.__P)&&(n=[],(i=P({},r)).__v=r.__v+1,j(a,r,i,o.__n,a.ownerSVGElement!==void 0,r.__h!=null?[l]:null,n,l==null?R(r):l,r.__h),Ee(n,r),r.__e!=l&&Pe(r)))})}function Oe(e,t,o,n,i,r,l,a,f,d){var _,h,s,c,p,k,b,m=n&&n.__k||$e,y=m.length;for(o.__k=[],_=0;_<t.length;_++)if((c=o.__k[_]=(c=t[_])==null||typeof c=="boolean"?null:typeof c=="string"||typeof c=="number"||typeof c=="bigint"?L(null,c,null,null,c):Array.isArray(c)?L(H,{children:c},null,null,null):c.__b>0?L(c.type,c.props,c.key,null,c.__v):c)!=null){if(c.__=o,c.__b=o.__b+1,(s=m[_])===null||s&&c.key==s.key&&c.type===s.type)m[_]=void 0;else for(h=0;h<y;h++){if((s=m[h])&&c.key==s.key&&c.type===s.type){m[h]=void 0;break}s=null}j(e,c,s=s||z,i,r,l,a,f,d),p=c.__e,(h=c.ref)&&s.ref!=h&&(b||(b=[]),s.ref&&b.push(s.ref,null,c),b.push(h,c.__c||p,c)),p!=null?(k==null&&(k=p),typeof c.type=="function"&&c.__k===s.__k?c.__d=f=He(c,f,e):f=Ne(e,c,s,m,p,f),typeof o.type=="function"&&(o.__d=f)):f&&s.__e==f&&f.parentNode!=e&&(f=R(s))}for(o.__e=k,_=y;_--;)m[_]!=null&&(typeof o.type=="function"&&m[_].__e!=null&&m[_].__e==o.__d&&(o.__d=R(n,_+1)),De(m[_],m[_]));if(b)for(_=0;_<b.length;_++)Re(b[_],b[++_],b[++_])}function He(e,t,o){for(var n,i=e.__k,r=0;i&&r<i.length;r++)(n=i[r])&&(n.__=e,t=typeof n.type=="function"?He(n,t,o):Ne(o,n,n,i,n.__e,t));return t}function q(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(o){q(o,t)}):t.push(e)),t}function Ne(e,t,o,n,i,r){var l,a,f;if(t.__d!==void 0)l=t.__d,t.__d=void 0;else if(o==null||i!=r||i.parentNode==null)e:if(r==null||r.parentNode!==e)e.appendChild(i),l=null;else{for(a=r,f=0;(a=a.nextSibling)&&f<n.length;f+=2)if(a==i)break e;e.insertBefore(i,r),l=r}return l!==void 0?l:i.nextSibling}function ze(e,t,o,n,i){var r;for(r in o)r==="children"||r==="key"||r in t||B(e,r,null,o[r],n);for(r in t)i&&typeof t[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||o[r]===t[r]||B(e,r,t[r],o[r],n)}function ne(e,t,o){t[0]==="-"?e.setProperty(t,o):e[t]=o==null?"":typeof o!="number"||Ie.test(t)?o:o+"px"}function B(e,t,o,n,i){var r;e:if(t==="style")if(typeof o=="string")e.style.cssText=o;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)o&&t in o||ne(e.style,t,"");if(o)for(t in o)n&&o[t]===n[t]||ne(e.style,t,o[t])}else if(t[0]==="o"&&t[1]==="n")r=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=o,o?n||e.addEventListener(t,r?_e:re,r):e.removeEventListener(t,r?_e:re,r);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=o==null?"":o;break e}catch{}typeof o=="function"||(o!=null&&(o!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,o):e.removeAttribute(t))}}function re(e){this.l[e.type+!1](u.event?u.event(e):e)}function _e(e){this.l[e.type+!0](u.event?u.event(e):e)}function j(e,t,o,n,i,r,l,a,f){var d,_,h,s,c,p,k,b,m,y,w,g=t.type;if(t.constructor!==void 0)return null;o.__h!=null&&(f=o.__h,a=t.__e=o.__e,t.__h=null,r=[a]),(d=u.__b)&&d(t);try{e:if(typeof g=="function"){if(b=t.props,m=(d=g.contextType)&&n[d.__c],y=d?m?m.props.value:d.__:n,o.__c?k=(_=t.__c=o.__c).__=_.__E:("prototype"in g&&g.prototype.render?t.__c=_=new g(b,y):(t.__c=_=new $(b,y),_.constructor=g,_.render=qe),m&&m.sub(_),_.props=b,_.state||(_.state={}),_.context=y,_.__n=n,h=_.__d=!0,_.__h=[]),_.__s==null&&(_.__s=_.state),g.getDerivedStateFromProps!=null&&(_.__s==_.state&&(_.__s=P({},_.__s)),P(_.__s,g.getDerivedStateFromProps(b,_.__s))),s=_.props,c=_.state,h)g.getDerivedStateFromProps==null&&_.componentWillMount!=null&&_.componentWillMount(),_.componentDidMount!=null&&_.__h.push(_.componentDidMount);else{if(g.getDerivedStateFromProps==null&&b!==s&&_.componentWillReceiveProps!=null&&_.componentWillReceiveProps(b,y),!_.__e&&_.shouldComponentUpdate!=null&&_.shouldComponentUpdate(b,_.__s,y)===!1||t.__v===o.__v){_.props=b,_.state=_.__s,t.__v!==o.__v&&(_.__d=!1),_.__v=t,t.__e=o.__e,t.__k=o.__k,t.__k.forEach(function(S){S&&(S.__=t)}),_.__h.length&&l.push(_);break e}_.componentWillUpdate!=null&&_.componentWillUpdate(b,_.__s,y),_.componentDidUpdate!=null&&_.__h.push(function(){_.componentDidUpdate(s,c,p)})}_.context=y,_.props=b,_.state=_.__s,(d=u.__r)&&d(t),_.__d=!1,_.__v=t,_.__P=e,d=_.render(_.props,_.state,_.context),_.state=_.__s,_.getChildContext!=null&&(n=P(P({},n),_.getChildContext())),h||_.getSnapshotBeforeUpdate==null||(p=_.getSnapshotBeforeUpdate(s,c)),w=d!=null&&d.type===H&&d.key==null?d.props.children:d,Oe(e,Array.isArray(w)?w:[w],t,o,n,i,r,l,a,f),_.base=t.__e,t.__h=null,_.__h.length&&l.push(_),k&&(_.__E=_.__=null),_.__e=!1}else r==null&&t.__v===o.__v?(t.__k=o.__k,t.__e=o.__e):t.__e=Ve(o.__e,t,o,n,i,r,l,f);(d=u.diffed)&&d(t)}catch(S){t.__v=null,(f||r!=null)&&(t.__e=a,t.__h=!!f,r[r.indexOf(a)]=null),u.__e(S,t,o)}}function Ee(e,t){u.__c&&u.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(n){n.call(o)})}catch(n){u.__e(n,o.__v)}})}function Ve(e,t,o,n,i,r,l,a){var f,d,_,h=o.props,s=t.props,c=t.type,p=0;if(c==="svg"&&(i=!0),r!=null){for(;p<r.length;p++)if((f=r[p])&&"setAttribute"in f==!!c&&(c?f.localName===c:f.nodeType===3)){e=f,r[p]=null;break}}if(e==null){if(c===null)return document.createTextNode(s);e=i?document.createElementNS("http://www.w3.org/2000/svg",c):document.createElement(c,s.is&&s),r=null,a=!1}if(c===null)h===s||a&&e.data===s||(e.data=s);else{if(r=r&&X.call(e.childNodes),d=(h=o.props||z).dangerouslySetInnerHTML,_=s.dangerouslySetInnerHTML,!a){if(r!=null)for(h={},p=0;p<e.attributes.length;p++)h[e.attributes[p].name]=e.attributes[p].value;(_||d)&&(_&&(d&&_.__html==d.__html||_.__html===e.innerHTML)||(e.innerHTML=_&&_.__html||""))}if(ze(e,s,h,i,a),_)t.__k=[];else if(p=t.props.children,Oe(e,Array.isArray(p)?p:[p],t,o,n,i&&c!=="foreignObject",r,l,r?r[0]:o.__k&&R(o,0),a),r!=null)for(p=r.length;p--;)r[p]!=null&&Ce(r[p]);a||("value"in s&&(p=s.value)!==void 0&&(p!==e.value||c==="progress"&&!p||c==="option"&&p!==h.value)&&B(e,"value",p,h.value,!1),"checked"in s&&(p=s.checked)!==void 0&&p!==e.checked&&B(e,"checked",p,h.checked,!1))}return e}function Re(e,t,o){try{typeof e=="function"?e(t):e.current=t}catch(n){u.__e(n,o)}}function De(e,t,o){var n,i;if(u.unmount&&u.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Re(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(r){u.__e(r,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&De(n[i],t,typeof e.type!="function");o||e.__e==null||Ce(e.__e),e.__e=e.__d=void 0}function qe(e,t,o){return this.constructor(e,o)}function ie(e,t,o){var n,i,r;u.__&&u.__(e,t),i=(n=typeof o=="function")?null:o&&o.__k||t.__k,r=[],j(t,e=(!n&&o||t).__k=v(H,null,[e]),i||z,z,t.ownerSVGElement!==void 0,!n&&o?[o]:i?null:t.firstChild?X.call(t.childNodes):null,r,!n&&o?o:i?i.__e:t.firstChild,n),Ee(r,e)}X=$e.slice,u={__e:function(e,t,o,n){for(var i,r,l;t=t.__;)if((i=t.__c)&&!i.__)try{if((r=i.constructor)&&r.getDerivedStateFromError!=null&&(i.setState(r.getDerivedStateFromError(e)),l=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),l=i.__d),l)return i.__E=i}catch(a){e=a}throw e}},Se=0,$.prototype.setState=function(e,t){var o;o=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=P({},this.state),typeof e=="function"&&(e=e(P({},o),this.props)),e&&P(o,e),e!=null&&this.__v&&(t&&this.__h.push(t),oe(this))},$.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),oe(this))},$.prototype.render=H,D=[],Me=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,V.__r=0;const Be=`.time-cell{display:flex;flex-flow:column nowrap;align-items:center;font-family:sans-serif;font-weight:700}.time-cell.disabled .time-cell-up:before,.time-cell.disabled .time-cell-down:after{border-top-color:#0000000d;border-bottom-color:#0000000d}.time-cell-up:before,.time-cell-down:after{content:"";display:block;width:0;height:0;margin:0 0 4px;border-top:0;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:12px solid #151515;transition:border-color .4s;cursor:pointer}.time-cell-down:after{margin:4px 0 0;border-top:12px solid #151515;border-bottom:0}.rotor{position:relative;width:36px;height:64px;border-radius:4px;font-size:48px;text-align:center;perspective:200px}.rotor-top,.rotor-bottom{overflow:hidden;position:absolute;width:36px;height:32px}.rotor-leaf{z-index:1;position:absolute;width:36px;height:64px;transform-style:preserve-3d;transition:transform 0s}.rotor-leaf.flipped{transform:rotateX(-180deg);transition:all .5s ease-in-out}.rotor-leaf-front,.rotor-leaf-rear{overflow:hidden;position:absolute;width:36px;height:32px;margin:0;transform:rotateX(0);backface-visibility:hidden;-webkit-backface-visibility:hidden}.rotor-leaf-front{line-height:64px;border-radius:4px 4px 0 0}.rotor-leaf-rear{line-height:0px;border-radius:0 0 4px 4px;transform:rotateX(-180deg)}.rotor-top{line-height:64px;border-radius:4px 4px 0 0}.rotor-bottom{bottom:0;line-height:0px;border-radius:0 0 4px 4px}.rotor:after{content:"";z-index:2;position:absolute;bottom:0px;left:0px;width:36px;height:32px;border-radius:0 0 4px 4px}.rotor,.rotor-top,.rotor-leaf-front{color:#fff;background-color:#151515}.rotor-bottom,.rotor-leaf-rear{color:#efefef;background-color:#202020}.rotor:after{border-top:solid 1px #151515}.telebox-color-scheme-dark .time-cell.disabled .time-cell-up:before,.telebox-color-scheme-dark .time-cell.disabled .time-cell-down:after{border-top-color:#ffffff14;border-bottom-color:#ffffff14}.telebox-color-scheme-dark .time-cell-up:before,.telebox-color-scheme-dark .time-cell-down:after{border-top-color:#d9d9df;border-bottom-color:#d9d9df}.telebox-color-scheme-dark .rotor,.telebox-color-scheme-dark .rotor-top,.telebox-color-scheme-dark .rotor-leaf-front{color:#383838;background-color:#efeff5}.telebox-color-scheme-dark .rotor-bottom,.telebox-color-scheme-dark .rotor-leaf-rear{color:#333;background-color:#eeecec}.telebox-color-scheme-dark .rotor:after{border-top:solid 1px #efeff5}.countdown-clock{display:flex;padding:5px}.countdown-clock>*{padding:0 5px}.countdown-clock-divider{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:0 1px}.countdown-clock-divider:before,.countdown-clock-divider:after{content:"";display:block;width:8px;height:8px;margin:6px 0;background-color:#000;border-radius:50%}.netless-app-countdown{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;transition:background-color .4s}.netless-app-countdown-shrink{display:inline-block;transition:background-color .4s}.netless-app-countdown-btns{width:100%;margin-top:10px;display:flex;flex-wrap:nowrap}.netless-app-countdown-btns>button{flex:1;display:block;margin:0 10px 0 0;padding:5px 10px;text-align:center;border:0;border-radius:4px;color:#fff;background-color:#3380ff;transition:background-color .4s,color .4s;cursor:pointer}.netless-app-countdown-btns>button:last-of-type{margin:0}.netless-app-countdown-btns>button:disabled{color:#00000040;background:#f5f5f5;cursor:not-allowed}.telebox-color-scheme-dark .netless-app-countdown-btns>button:disabled{color:#ffffff4d;background:rgba(255,255,255,.08)}
`;var Z,x,le,G=0,Ue=[],ce=u.__b,se=u.__r,ae=u.diffed,ue=u.__c,fe=u.unmount;function ee(e,t){u.__h&&u.__h(x,e,G||t),G=0;var o=x.__H||(x.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({}),o.__[e]}function O(e){return G=1,Ge(Fe,e)}function Ge(e,t,o){var n=ee(Z++,2);return n.t=e,n.__c||(n.__=[o?o(t):Fe(void 0,t),function(i){var r=n.t(n.__[0],i);n.__[0]!==r&&(n.__=[r,n.__[1]],n.__c.setState({}))}],n.__c=x),n.__}function E(e,t){var o=ee(Z++,3);!u.__s&&We(o.__H,t)&&(o.__=e,o.__H=t,x.__H.__h.push(o))}function Ae(e,t){var o=ee(Z++,7);return We(o.__H,t)&&(o.__=e(),o.__H=t,o.__h=e),o.__}function N(e,t){return G=8,Ae(function(){return e},t)}function Xe(){for(var e;e=Ue.shift();)if(e.__P)try{e.__H.__h.forEach(I),e.__H.__h.forEach(Q),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__b=function(e){x=null,ce&&ce(e)},u.__r=function(e){se&&se(e),Z=0;var t=(x=e.__c).__H;t&&(t.__h.forEach(I),t.__h.forEach(Q),t.__h=[])},u.diffed=function(e){ae&&ae(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(Ue.push(t)!==1&&le===u.requestAnimationFrame||((le=u.requestAnimationFrame)||function(o){var n,i=function(){clearTimeout(r),de&&cancelAnimationFrame(n),setTimeout(o)},r=setTimeout(i,100);de&&(n=requestAnimationFrame(i))})(Xe)),x=null},u.__c=function(e,t){t.some(function(o){try{o.__h.forEach(I),o.__h=o.__h.filter(function(n){return!n.__||Q(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],u.__e(n,o.__v)}}),ue&&ue(e,t)},u.unmount=function(e){fe&&fe(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{I(n)}catch(i){t=i}}),t&&u.__e(t,o.__v))};var de=typeof requestAnimationFrame=="function";function I(e){var t=x,o=e.__c;typeof o=="function"&&(e.__c=void 0,o()),x=t}function Q(e){var t=x;e.__c=e.__(),x=t}function We(e,t){return!e||e.length!==t.length||t.some(function(o,n){return o!==e[n]})}function Fe(e,t){return typeof t=="function"?t(e):t}function Ze(e,t){for(var o in t)e[o]=t[o];return e}function Y(e,t){for(var o in e)if(o!=="__source"&&!(o in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function pe(e){this.props=e}function J(e,t){function o(i){var r=this.props.ref,l=r==i.ref;return!l&&r&&(r.call?r(null):r.current=null),t?!t(this.props,i)||!l:Y(this.props,i)}function n(i){return this.shouldComponentUpdate=o,v(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(pe.prototype=new $).isPureReactComponent=!0,pe.prototype.shouldComponentUpdate=function(e,t){return Y(this.props,e)||Y(this.state,t)};var he=u.__b;u.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),he&&he(e)};var Je=u.__e;u.__e=function(e,t,o,n){if(e.then){for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return t.__e==null&&(t.__e=o.__e,t.__k=o.__k),i.__c(e,t)}Je(e,t,o,n)};var ve=u.unmount;function K(){this.__u=0,this.t=null,this.__b=null}function Te(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function F(){this.u=null,this.o=null}u.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),ve&&ve(e)},(K.prototype=new $).__c=function(e,t){var o=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var i=Te(n.__v),r=!1,l=function(){r||(r=!0,o.__R=null,i?i(a):a())};o.__R=l;var a=function(){if(!--n.__u){if(n.state.__e){var d=n.state.__e;n.__v.__k[0]=function h(s,c,p){return s&&(s.__v=null,s.__k=s.__k&&s.__k.map(function(k){return h(k,c,p)}),s.__c&&s.__c.__P===c&&(s.__e&&p.insertBefore(s.__e,s.__d),s.__c.__e=!0,s.__c.__P=p)),s}(d,d.__c.__P,d.__c.__O)}var _;for(n.setState({__e:n.__b=null});_=n.t.pop();)_.forceUpdate()}},f=t.__h===!0;n.__u++||f||n.setState({__e:n.__b=n.__v.__k[0]}),e.then(l,l)},K.prototype.componentWillUnmount=function(){this.t=[]},K.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=function r(l,a,f){return l&&(l.__c&&l.__c.__H&&(l.__c.__H.__.forEach(function(d){typeof d.__c=="function"&&d.__c()}),l.__c.__H=null),(l=Ze({},l)).__c!=null&&(l.__c.__P===f&&(l.__c.__P=a),l.__c=null),l.__k=l.__k&&l.__k.map(function(d){return r(d,a,f)})),l}(this.__b,o,n.__O=n.__P)}this.__b=null}var i=t.__e&&v(H,null,e.fallback);return i&&(i.__h=null),[v(H,null,t.__e?null:e.children),i]};var be=function(e,t,o){if(++o[1]===o[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(o=e.u;o;){for(;o.length>3;)o.pop()();if(o[1]<o[0])break;e.u=o=o[2]}};(F.prototype=new $).__e=function(e){var t=this,o=Te(t.__v),n=t.o.get(e);return n[0]++,function(i){var r=function(){t.props.revealOrder?(n.push(i),be(t,e,n)):i()};o?o(r):r()}},F.prototype.render=function(e){this.u=null,this.o=new Map;var t=q(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var o=t.length;o--;)this.o.set(t[o],this.u=[1,0,this.u]);return e.children},F.prototype.componentDidUpdate=F.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,o){be(e,o,t)})};var Ke=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Qe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ye=typeof document<"u",je=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};$.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty($.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var me=u.event;function et(){}function tt(){return this.cancelBubble}function ot(){return this.defaultPrevented}u.event=function(e){return me&&(e=me(e)),e.persist=et,e.isPropagationStopped=tt,e.isDefaultPrevented=ot,e.nativeEvent=e};var ye={configurable:!0,get:function(){return this.class}},ge=u.vnode;u.vnode=function(e){var t=e.type,o=e.props,n=o;if(typeof t=="string"){var i=t.indexOf("-")===-1;for(var r in n={},o){var l=o[r];Ye&&r==="children"&&t==="noscript"||r==="value"&&"defaultValue"in o&&l==null||(r==="defaultValue"&&"value"in o&&o.value==null?r="value":r==="download"&&l===!0?l="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!je(o.type)?r="oninput":/^onfocus$/i.test(r)?r="onfocusin":/^onblur$/i.test(r)?r="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(r)?r=r.toLowerCase():i&&Qe.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():l===null&&(l=void 0),n[r]=l)}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=q(o.children).forEach(function(a){a.props.selected=n.value.indexOf(a.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=q(o.children).forEach(function(a){a.props.selected=n.multiple?n.defaultValue.indexOf(a.props.value)!=-1:n.defaultValue==a.props.value})),e.props=n,o.class!=o.className&&(ye.enumerable="className"in o,o.className!=null&&(n.class=o.className),Object.defineProperty(n,"className",ye))}e.$$typeof=Ke,ge&&ge(e)};var ke=u.__r;u.__r=function(e){ke&&ke(e),e.__c};var Le={exports:{}};/*!
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Z,u,$e,D,Ce,oe,z={},Pe=[],ze=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function O(e,t){for(var n in t)e[n]=t[n];return e}function Oe(e){var t=e.parentNode;t&&t.removeChild(e)}function V(e,t,n){var o,l,r,i={};for(r in t)r=="key"?o=t[r]:r=="ref"?l=t[r]:i[r]=t[r];if(arguments.length>2&&(i.children=arguments.length>3?Z.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)i[r]===void 0&&(i[r]=e.defaultProps[r]);return L(e,i,o,l,null)}function L(e,t,n,o,l){var r={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:l??++$e};return l==null&&u.vnode!=null&&u.vnode(r),r}function E(e){return e.children}function C(e,t){this.props=e,this.context=t}function R(e,t){if(t==null)return e.__?R(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?R(e):null}function He(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return He(e)}}function re(e){(!e.__d&&(e.__d=!0)&&D.push(e)&&!q.__r++||oe!==u.debounceRendering)&&((oe=u.debounceRendering)||Ce)(q)}function q(){for(var e;q.__r=D.length;)e=D.sort(function(t,n){return t.__v.__b-n.__v.__b}),D=[],e.some(function(t){var n,o,l,r,i,a;t.__d&&(i=(r=(n=t).__v).__e,(a=n.__P)&&(o=[],(l=O({},r)).__v=r.__v+1,te(a,r,l,n.__n,a.ownerSVGElement!==void 0,r.__h!=null?[i]:null,o,i??R(r),r.__h),De(o,r),r.__e!=i&&He(r)))})}function Ee(e,t,n,o,l,r,i,a,f,p){var _,h,s,c,d,g,b,v=o&&o.__k||Pe,y=v.length;for(n.__k=[],_=0;_<t.length;_++)if((c=n.__k[_]=(c=t[_])==null||typeof c=="boolean"?null:typeof c=="string"||typeof c=="number"||typeof c=="bigint"?L(null,c,null,null,c):Array.isArray(c)?L(E,{children:c},null,null,null):c.__b>0?L(c.type,c.props,c.key,null,c.__v):c)!=null){if(c.__=n,c.__b=n.__b+1,(s=v[_])===null||s&&c.key==s.key&&c.type===s.type)v[_]=void 0;else for(h=0;h<y;h++){if((s=v[h])&&c.key==s.key&&c.type===s.type){v[h]=void 0;break}s=null}te(e,c,s=s||z,l,r,i,a,f,p),d=c.__e,(h=c.ref)&&s.ref!=h&&(b||(b=[]),s.ref&&b.push(s.ref,null,c),b.push(h,c.__c||d,c)),d!=null?(g==null&&(g=d),typeof c.type=="function"&&c.__k===s.__k?c.__d=f=Ne(c,f,e):f=Re(e,c,s,v,d,f),typeof n.type=="function"&&(n.__d=f)):f&&s.__e==f&&f.parentNode!=e&&(f=R(s))}for(n.__e=g,_=y;_--;)v[_]!=null&&(typeof n.type=="function"&&v[_].__e!=null&&v[_].__e==n.__d&&(n.__d=R(o,_+1)),Ae(v[_],v[_]));if(b)for(_=0;_<b.length;_++)Ue(b[_],b[++_],b[++_])}function Ne(e,t,n){for(var o,l=e.__k,r=0;l&&r<l.length;r++)(o=l[r])&&(o.__=e,t=typeof o.type=="function"?Ne(o,t,n):Re(n,o,o,l,o.__e,t));return t}function B(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){B(n,t)}):t.push(e)),t}function Re(e,t,n,o,l,r){var i,a,f;if(t.__d!==void 0)i=t.__d,t.__d=void 0;else if(n==null||l!=r||l.parentNode==null)e:if(r==null||r.parentNode!==e)e.appendChild(l),i=null;else{for(a=r,f=0;(a=a.nextSibling)&&f<o.length;f+=2)if(a==l)break e;e.insertBefore(l,r),i=r}return i!==void 0?i:l.nextSibling}function Ve(e,t,n,o,l){var r;for(r in n)r==="children"||r==="key"||r in t||G(e,r,null,n[r],o);for(r in t)l&&typeof t[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||n[r]===t[r]||G(e,r,t[r],n[r],o)}function _e(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||ze.test(t)?n:n+"px"}function G(e,t,n,o,l){var r;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)n&&t in n||_e(e.style,t,"");if(n)for(t in n)o&&n[t]===o[t]||_e(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")r=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?o||e.addEventListener(t,r?ie:le,r):e.removeEventListener(t,r?ie:le,r);else if(t!=="dangerouslySetInnerHTML"){if(l)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,n):e.removeAttribute(t))}}function le(e){this.l[e.type+!1](u.event?u.event(e):e)}function ie(e){this.l[e.type+!0](u.event?u.event(e):e)}function te(e,t,n,o,l,r,i,a,f){var p,_,h,s,c,d,g,b,v,y,S,k=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(f=n.__h,a=t.__e=n.__e,t.__h=null,r=[a]),(p=u.__b)&&p(t);try{e:if(typeof k=="function"){if(b=t.props,v=(p=k.contextType)&&o[p.__c],y=p?v?v.props.value:p.__:o,n.__c?g=(_=t.__c=n.__c).__=_.__E:("prototype"in k&&k.prototype.render?t.__c=_=new k(b,y):(t.__c=_=new C(b,y),_.constructor=k,_.render=Be),v&&v.sub(_),_.props=b,_.state||(_.state={}),_.context=y,_.__n=o,h=_.__d=!0,_.__h=[]),_.__s==null&&(_.__s=_.state),k.getDerivedStateFromProps!=null&&(_.__s==_.state&&(_.__s=O({},_.__s)),O(_.__s,k.getDerivedStateFromProps(b,_.__s))),s=_.props,c=_.state,h)k.getDerivedStateFromProps==null&&_.componentWillMount!=null&&_.componentWillMount(),_.componentDidMount!=null&&_.__h.push(_.componentDidMount);else{if(k.getDerivedStateFromProps==null&&b!==s&&_.componentWillReceiveProps!=null&&_.componentWillReceiveProps(b,y),!_.__e&&_.shouldComponentUpdate!=null&&_.shouldComponentUpdate(b,_.__s,y)===!1||t.__v===n.__v){_.props=b,_.state=_.__s,t.__v!==n.__v&&(_.__d=!1),_.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(M){M&&(M.__=t)}),_.__h.length&&i.push(_);break e}_.componentWillUpdate!=null&&_.componentWillUpdate(b,_.__s,y),_.componentDidUpdate!=null&&_.__h.push(function(){_.componentDidUpdate(s,c,d)})}_.context=y,_.props=b,_.state=_.__s,(p=u.__r)&&p(t),_.__d=!1,_.__v=t,_.__P=e,p=_.render(_.props,_.state,_.context),_.state=_.__s,_.getChildContext!=null&&(o=O(O({},o),_.getChildContext())),h||_.getSnapshotBeforeUpdate==null||(d=_.getSnapshotBeforeUpdate(s,c)),S=p!=null&&p.type===E&&p.key==null?p.props.children:p,Ee(e,Array.isArray(S)?S:[S],t,n,o,l,r,i,a,f),_.base=t.__e,t.__h=null,_.__h.length&&i.push(_),g&&(_.__E=_.__=null),_.__e=!1}else r==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=qe(n.__e,t,n,o,l,r,i,f);(p=u.diffed)&&p(t)}catch(M){t.__v=null,(f||r!=null)&&(t.__e=a,t.__h=!!f,r[r.indexOf(a)]=null),u.__e(M,t,n)}}function De(e,t){u.__c&&u.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(o){o.call(n)})}catch(o){u.__e(o,n.__v)}})}function qe(e,t,n,o,l,r,i,a){var f,p,_,h=n.props,s=t.props,c=t.type,d=0;if(c==="svg"&&(l=!0),r!=null){for(;d<r.length;d++)if((f=r[d])&&"setAttribute"in f==!!c&&(c?f.localName===c:f.nodeType===3)){e=f,r[d]=null;break}}if(e==null){if(c===null)return document.createTextNode(s);e=l?document.createElementNS("http://www.w3.org/2000/svg",c):document.createElement(c,s.is&&s),r=null,a=!1}if(c===null)h===s||a&&e.data===s||(e.data=s);else{if(r=r&&Z.call(e.childNodes),p=(h=n.props||z).dangerouslySetInnerHTML,_=s.dangerouslySetInnerHTML,!a){if(r!=null)for(h={},d=0;d<e.attributes.length;d++)h[e.attributes[d].name]=e.attributes[d].value;(_||p)&&(_&&(p&&_.__html==p.__html||_.__html===e.innerHTML)||(e.innerHTML=_&&_.__html||""))}if(Ve(e,s,h,l,a),_)t.__k=[];else if(d=t.props.children,Ee(e,Array.isArray(d)?d:[d],t,n,o,l&&c!=="foreignObject",r,i,r?r[0]:n.__k&&R(n,0),a),r!=null)for(d=r.length;d--;)r[d]!=null&&Oe(r[d]);a||("value"in s&&(d=s.value)!==void 0&&(d!==e.value||c==="progress"&&!d||c==="option"&&d!==h.value)&&G(e,"value",d,h.value,!1),"checked"in s&&(d=s.checked)!==void 0&&d!==e.checked&&G(e,"checked",d,h.checked,!1))}return e}function Ue(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(o){u.__e(o,n)}}function Ae(e,t,n){var o,l;if(u.unmount&&u.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||Ue(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){u.__e(r,t)}o.base=o.__P=null}if(o=e.__k)for(l=0;l<o.length;l++)o[l]&&Ae(o[l],t,typeof e.type!="function");n||e.__e==null||Oe(e.__e),e.__e=e.__d=void 0}function Be(e,t,n){return this.constructor(e,n)}function ce(e,t,n){var o,l,r;u.__&&u.__(e,t),l=(o=typeof n=="function")?null:n&&n.__k||t.__k,r=[],te(t,e=(!o&&n||t).__k=V(E,null,[e]),l||z,z,t.ownerSVGElement!==void 0,!o&&n?[n]:l?null:t.firstChild?Z.call(t.childNodes):null,r,!o&&n?n:l?l.__e:t.firstChild,o),De(r,e)}Z=Pe.slice,u={__e:function(e,t,n,o){for(var l,r,i;t=t.__;)if((l=t.__c)&&!l.__)try{if((r=l.constructor)&&r.getDerivedStateFromError!=null&&(l.setState(r.getDerivedStateFromError(e)),i=l.__d),l.componentDidCatch!=null&&(l.componentDidCatch(e,o||{}),i=l.__d),i)return l.__E=l}catch(a){e=a}throw e}},$e=0,C.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=O({},this.state),typeof e=="function"&&(e=e(O({},n),this.props)),e&&O(n,e),e!=null&&this.__v&&(t&&this.__h.push(t),re(this))},C.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),re(this))},C.prototype.render=E,D=[],Ce=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,q.__r=0;var Ge=0;function m(e,t,n,o,l){var r,i,a={};for(i in t)i=="ref"?r=t[i]:a[i]=t[i];var f={type:e,props:a,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Ge,__source:l,__self:o};if(typeof e=="function"&&(r=e.defaultProps))for(i in r)a[i]===void 0&&(a[i]=r[i]);return u.vnode&&u.vnode(f),f}const Xe=`.time-cell{display:flex;flex-flow:column nowrap;align-items:center;font-family:sans-serif;font-weight:700}.time-cell.disabled .time-cell-up:before,.time-cell.disabled .time-cell-down:after{border-top-color:#0000000d;border-bottom-color:#0000000d}.time-cell-up:before,.time-cell-down:after{content:"";display:block;width:0;height:0;margin:0 0 4px;border-top:0;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:12px solid #151515;transition:border-color .4s;cursor:pointer}.time-cell-down:after{margin:4px 0 0;border-top:12px solid #151515;border-bottom:0}.rotor{position:relative;width:36px;height:64px;border-radius:4px;font-size:48px;text-align:center;perspective:200px}.rotor-top,.rotor-bottom{overflow:hidden;position:absolute;width:36px;height:32px}.rotor-leaf{z-index:1;position:absolute;width:36px;height:64px;transform-style:preserve-3d;transition:transform 0s}.rotor-leaf.flipped{transform:rotateX(-180deg);transition:all .5s ease-in-out}.rotor-leaf-front,.rotor-leaf-rear{overflow:hidden;position:absolute;width:36px;height:32px;margin:0;transform:rotateX(0);backface-visibility:hidden;-webkit-backface-visibility:hidden}.rotor-leaf-front{line-height:64px;border-radius:4px 4px 0 0}.rotor-leaf-rear{line-height:0px;border-radius:0 0 4px 4px;transform:rotateX(-180deg)}.rotor-top{line-height:64px;border-radius:4px 4px 0 0}.rotor-bottom{bottom:0;line-height:0px;border-radius:0 0 4px 4px}.rotor:after{content:"";z-index:2;position:absolute;bottom:0px;left:0px;width:36px;height:32px;border-radius:0 0 4px 4px}.rotor,.rotor-top,.rotor-leaf-front{color:#fff;background-color:#151515}.rotor-bottom,.rotor-leaf-rear{color:#efefef;background-color:#202020}.rotor:after{border-top:solid 1px #151515}.telebox-color-scheme-dark .time-cell.disabled .time-cell-up:before,.telebox-color-scheme-dark .time-cell.disabled .time-cell-down:after{border-top-color:#ffffff14;border-bottom-color:#ffffff14}.telebox-color-scheme-dark .time-cell-up:before,.telebox-color-scheme-dark .time-cell-down:after{border-top-color:#d9d9df;border-bottom-color:#d9d9df}.telebox-color-scheme-dark .rotor,.telebox-color-scheme-dark .rotor-top,.telebox-color-scheme-dark .rotor-leaf-front{color:#383838;background-color:#efeff5}.telebox-color-scheme-dark .rotor-bottom,.telebox-color-scheme-dark .rotor-leaf-rear{color:#333;background-color:#eeecec}.telebox-color-scheme-dark .rotor:after{border-top:solid 1px #efeff5}.countdown-clock{display:flex;padding:5px}.countdown-clock>*{padding:0 5px}.countdown-clock-divider{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:0 1px}.countdown-clock-divider:before,.countdown-clock-divider:after{content:"";display:block;width:8px;height:8px;margin:6px 0;background-color:#000;border-radius:50%}.netless-app-countdown{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;transition:background-color .4s}.netless-app-countdown-shrink{display:inline-block;transition:background-color .4s}.netless-app-countdown-btns{width:100%;margin-top:10px;display:flex;flex-wrap:nowrap}.netless-app-countdown-btns>button{flex:1;display:block;margin:0 10px 0 0;padding:5px 10px;text-align:center;border:0;border-radius:4px;color:#fff;background-color:#3380ff;transition:background-color .4s,color .4s;cursor:pointer}.netless-app-countdown-btns>button:last-of-type{margin:0}.netless-app-countdown-btns>button:disabled{color:#00000040;background:#f5f5f5;cursor:not-allowed}.telebox-color-scheme-dark .netless-app-countdown-btns>button:disabled{color:#ffffff4d;background:rgba(255,255,255,.08)}
`;var J,w,se,X=0,We=[],ae=u.__b,ue=u.__r,fe=u.diffed,de=u.__c,pe=u.unmount;function ne(e,t){u.__h&&u.__h(w,e,X||t),X=0;var n=w.__H||(w.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function H(e){return X=1,Ze(Le,e)}function Ze(e,t,n){var o=ne(J++,2);return o.t=e,o.__c||(o.__=[n?n(t):Le(void 0,t),function(l){var r=o.t(o.__[0],l);o.__[0]!==r&&(o.__=[r,o.__[1]],o.__c.setState({}))}],o.__c=w),o.__}function U(e,t){var n=ne(J++,3);!u.__s&&Fe(n.__H,t)&&(n.__=e,n.__H=t,w.__H.__h.push(n))}function Te(e,t){var n=ne(J++,7);return Fe(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function N(e,t){return X=8,Te(function(){return e},t)}function Je(){for(var e;e=We.shift();)if(e.__P)try{e.__H.__h.forEach(I),e.__H.__h.forEach(Y),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__b=function(e){w=null,ae&&ae(e)},u.__r=function(e){ue&&ue(e),J=0;var t=(w=e.__c).__H;t&&(t.__h.forEach(I),t.__h.forEach(Y),t.__h=[])},u.diffed=function(e){fe&&fe(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(We.push(t)!==1&&se===u.requestAnimationFrame||((se=u.requestAnimationFrame)||function(n){var o,l=function(){clearTimeout(r),he&&cancelAnimationFrame(o),setTimeout(n)},r=setTimeout(l,100);he&&(o=requestAnimationFrame(l))})(Je)),w=null},u.__c=function(e,t){t.some(function(n){try{n.__h.forEach(I),n.__h=n.__h.filter(function(o){return!o.__||Y(o)})}catch(o){t.some(function(l){l.__h&&(l.__h=[])}),t=[],u.__e(o,n.__v)}}),de&&de(e,t)},u.unmount=function(e){pe&&pe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(o){try{I(o)}catch(l){t=l}}),t&&u.__e(t,n.__v))};var he=typeof requestAnimationFrame=="function";function I(e){var t=w,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),w=t}function Y(e){var t=w;e.__c=e.__(),w=t}function Fe(e,t){return!e||e.length!==t.length||t.some(function(n,o){return n!==e[o]})}function Le(e,t){return typeof t=="function"?t(e):t}function Ke(e,t){for(var n in t)e[n]=t[n];return e}function j(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var o in t)if(o!=="__source"&&e[o]!==t[o])return!0;return!1}function ve(e){this.props=e}function K(e,t){function n(l){var r=this.props.ref,i=r==l.ref;return!i&&r&&(r.call?r(null):r.current=null),t?!t(this.props,l)||!i:j(this.props,l)}function o(l){return this.shouldComponentUpdate=n,V(e,l)}return o.displayName="Memo("+(e.displayName||e.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(ve.prototype=new C).isPureReactComponent=!0,ve.prototype.shouldComponentUpdate=function(e,t){return j(this.props,e)||j(this.state,t)};var be=u.__b;u.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),be&&be(e)};var Qe=u.__e;u.__e=function(e,t,n,o){if(e.then){for(var l,r=t;r=r.__;)if((l=r.__c)&&l.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),l.__c(e,t)}Qe(e,t,n,o)};var me=u.unmount;function Q(){this.__u=0,this.t=null,this.__b=null}function Ie(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function T(){this.u=null,this.o=null}u.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),me&&me(e)},(Q.prototype=new C).__c=function(e,t){var n=t.__c,o=this;o.t==null&&(o.t=[]),o.t.push(n);var l=Ie(o.__v),r=!1,i=function(){r||(r=!0,n.__R=null,l?l(a):a())};n.__R=i;var a=function(){if(!--o.__u){if(o.state.__e){var p=o.state.__e;o.__v.__k[0]=function h(s,c,d){return s&&(s.__v=null,s.__k=s.__k&&s.__k.map(function(g){return h(g,c,d)}),s.__c&&s.__c.__P===c&&(s.__e&&d.insertBefore(s.__e,s.__d),s.__c.__e=!0,s.__c.__P=d)),s}(p,p.__c.__P,p.__c.__O)}var _;for(o.setState({__e:o.__b=null});_=o.t.pop();)_.forceUpdate()}},f=t.__h===!0;o.__u++||f||o.setState({__e:o.__b=o.__v.__k[0]}),e.then(i,i)},Q.prototype.componentWillUnmount=function(){this.t=[]},Q.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=function r(i,a,f){return i&&(i.__c&&i.__c.__H&&(i.__c.__H.__.forEach(function(p){typeof p.__c=="function"&&p.__c()}),i.__c.__H=null),(i=Ke({},i)).__c!=null&&(i.__c.__P===f&&(i.__c.__P=a),i.__c=null),i.__k=i.__k&&i.__k.map(function(p){return r(p,a,f)})),i}(this.__b,n,o.__O=o.__P)}this.__b=null}var l=t.__e&&V(E,null,e.fallback);return l&&(l.__h=null),[V(E,null,t.__e?null:e.children),l]};var ye=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(T.prototype=new C).__e=function(e){var t=this,n=Ie(t.__v),o=t.o.get(e);return o[0]++,function(l){var r=function(){t.props.revealOrder?(o.push(l),ye(t,e,o)):l()};n?n(r):r()}},T.prototype.render=function(e){this.u=null,this.o=new Map;var t=B(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},T.prototype.componentDidUpdate=T.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){ye(e,n,t)})};var Ye=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,je=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,et=typeof document<"u",tt=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};C.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(C.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ke=u.event;function nt(){}function ot(){return this.cancelBubble}function rt(){return this.defaultPrevented}u.event=function(e){return ke&&(e=ke(e)),e.persist=nt,e.isPropagationStopped=ot,e.isDefaultPrevented=rt,e.nativeEvent=e};var ge={configurable:!0,get:function(){return this.class}},we=u.vnode;u.vnode=function(e){var t=e.type,n=e.props,o=n;if(typeof t=="string"){var l=t.indexOf("-")===-1;for(var r in o={},n){var i=n[r];et&&r==="children"&&t==="noscript"||r==="value"&&"defaultValue"in n&&i==null||(r==="defaultValue"&&"value"in n&&n.value==null?r="value":r==="download"&&i===!0?i="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!tt(n.type)?r="oninput":/^onfocus$/i.test(r)?r="onfocusin":/^onblur$/i.test(r)?r="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(r)?r=r.toLowerCase():l&&je.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():i===null&&(i=void 0),o[r]=i)}t=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=B(n.children).forEach(function(a){a.props.selected=o.value.indexOf(a.props.value)!=-1})),t=="select"&&o.defaultValue!=null&&(o.value=B(n.children).forEach(function(a){a.props.selected=o.multiple?o.defaultValue.indexOf(a.props.value)!=-1:o.defaultValue==a.props.value})),e.props=o,n.class!=n.className&&(ge.enumerable="className"in n,n.className!=null&&(o.class=n.className),Object.defineProperty(o,"className",ge))}e.$$typeof=Ye,we&&we(e)};var xe=u.__r;u.__r=function(e){xe&&xe(e),e.__c};var ee={},_t={get exports(){return ee},set exports(e){ee=e}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function o(){for(var n=[],i=0;i<arguments.length;i++){var r=arguments[i];if(!!r){var l=typeof r;if(l==="string"||l==="number")n.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&n.push(a)}}else if(l==="object")if(r.toString===Object.prototype.toString)for(var f in r)t.call(r,f)&&r[f]&&n.push(f);else n.push(r.toString())}}return n.join(" ")}e.exports?(o.default=o,e.exports=o):window.classNames=o})()})(Le);const we=Le.exports,T=J(({digit:e,disabled:t,onUp:o,onDown:n})=>{const[i,r]=O(0),[l,a]=O(!1);return E(()=>{if(t){a(!0);const f=window.setTimeout(()=>{a(!1),r(e)},500);return()=>window.clearTimeout(f)}else r(e)},[e]),v("div",{class:we("time-cell",{disabled:t})},v("div",{class:"time-cell-up",onClick:t?void 0:o}),v("div",{class:"rotor"},v("div",{class:we("rotor-leaf",{flipped:l})},v("figure",{class:"rotor-leaf-rear"},e),v("figure",{class:"rotor-leaf-front"},i)),v("div",{class:"rotor-top"},e),v("div",{class:"rotor-bottom"},i)),v("div",{class:"time-cell-down",onClick:t?void 0:n}))});var M=(e=>(e[e.AddTenMinutes=0]="AddTenMinutes",e[e.ReduceTenMinutes=1]="ReduceTenMinutes",e[e.AddOneMinute=2]="AddOneMinute",e[e.ReduceOneMinute=3]="ReduceOneMinute",e[e.AddTenSeconds=4]="AddTenSeconds",e[e.ReduceTenSeconds=5]="ReduceTenSeconds",e[e.AddOneSecond=6]="AddOneSecond",e[e.ReduceOneSecond=7]="ReduceOneSecond",e))(M||{});function xe(e){return Ae(()=>(e=e%61,[Math.floor(e/10),e%10]),[e])}function C(e,t){return N(()=>e(t),[e])}const nt=J(({minutes:e,seconds:t,disabled:o,onAdjustTime:n})=>{const i=xe(e),r=xe(t),l=C(n,0),a=C(n,1),f=C(n,2),d=C(n,3),_=C(n,4),h=C(n,5),s=C(n,6),c=C(n,7);return v("div",{className:"countdown-clock"},v(T,{disabled:o,digit:i[0],onUp:l,onDown:a}),v(T,{digit:i[1],disabled:o,onUp:f,onDown:d}),v("div",{class:"countdown-clock-divider"}),v(T,{disabled:o,digit:r[0],onUp:_,onDown:h}),v(T,{digit:r[1],disabled:o,onUp:s,onDown:c}))}),rt=J(({readonly:e,countdownSecs:t,startTime:o,paused:n,onAdjustTime:i,onStart:r,onPause:l,onResume:a,onReset:f})=>{const[d,_]=O(0),h=o>0&&d>=o,s=t-(h?d-o:0),c=Math.floor(s/60),p=s-c*60;return E(()=>{let k=NaN;if(t>0&&o>0&&!n){const b=()=>{_(Math.floor(Date.now()/1e3)),k=window.requestAnimationFrame(b)};return b(),()=>window.cancelAnimationFrame(k)}else window.cancelAnimationFrame(k)},[o,n,t]),E(()=>{o>0&&d-o>=t&&f()},[d,o,t,f]),v("div",{class:"netless-app-countdown"},v("div",{class:"netless-app-countdown-shrink"},v(nt,{minutes:c,seconds:p,disabled:e||h,onAdjustTime:i}),v("div",{class:"netless-app-countdown-btns"},n?v(H,null,v("button",{onClick:f,disabled:e},"Reset"),v("button",{onClick:a,disabled:e},"Resume")):h?v("button",{onClick:l,disabled:e},"Pause"):v("button",{onClick:r,disabled:e||s<=0},"Start"))))}),_t=J(({context:e,storage:t})=>{const[o,n]=O(()=>e.isWritable),[i,r]=O(t.state.countdownSecs),[l,a]=O(t.state.startTime),[f,d]=O(t.state.paused),_=l>0,h=N(()=>{e.isWritable&&(d(!1),a(Math.floor(Date.now()/1e3)))},[e]),s=N(()=>{e.isWritable&&d(!0)},[e]),c=N(()=>{e.isWritable&&d(!1)},[e]),p=N(()=>{e.isWritable&&(d(!1),r(0),a(0))},[e]),k=N(b=>{_||r(m=>{if(!e.isWritable)return m;const y=Math.floor(m/60),w=m-y*60,g=Math.floor(y/10),S=y%10,U=Math.floor(w/10),A=w%10;switch(b){case M.AddTenMinutes:{const W=S+w===0?7:6;return((g+1)%W*10+S)*60+w}case M.ReduceTenMinutes:{const W=S+w===0?7:6;return((g+W-1)%W*10+S)*60+w}case M.AddOneMinute:return(Math.min(5,g)*10+(S+1)%10)*60+w;case M.ReduceOneMinute:return(Math.min(5,g)*10+(S+10-1)%10)*60+w;case M.AddTenSeconds:return y*60+((U+1)%6*10+A);case M.ReduceTenSeconds:return y*60+((U+6-1)%6*10+A);case M.AddOneSecond:return y*60+(Math.min(5,U)*10+(A+1)%10);case M.ReduceOneSecond:return y*60+(Math.min(5,U)*10+(A+10-1)%10);default:return m}})},[_,e]);return E(()=>(n(e.isWritable),e.emitter.on("writableChange",n),()=>e.emitter.off("writableChange",n)),[e]),E(()=>{const b=m=>{m.countdownSecs&&r(t.state.countdownSecs),m.paused&&d(t.state.paused),m.startTime&&a(t.state.startTime)};return t.on("stateChanged",b)},[t]),E(()=>{e.isWritable&&t.setState({countdownSecs:i,paused:f,startTime:l})},[i,f,l,e]),v(rt,{readonly:!o,countdownSecs:i,startTime:l,paused:f,onAdjustTime:k,onStart:h,onPause:s,onResume:c,onReset:p})}),it=208,lt=216,ct={kind:"Countdown",config:{minwidth:it,minheight:lt},setup(e){const t=e.box;t.mountStyles(Be);const o=e.createStorage("state",{countdownSecs:0,startTime:0,paused:!1});ie(v(_t,{context:e,storage:o}),t.$content),e.emitter.on("destroy",()=>{ie(null,t.$content)})}};exports.default=ct;
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o=[],l=0;l<arguments.length;l++){var r=arguments[l];if(r){var i=typeof r;if(i==="string"||i==="number")o.push(r);else if(Array.isArray(r)){if(r.length){var a=n.apply(null,r);a&&o.push(a)}}else if(i==="object")if(r.toString===Object.prototype.toString)for(var f in r)t.call(r,f)&&r[f]&&o.push(f);else o.push(r.toString())}}return o.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(_t);const Se=ee,F=K(({digit:e,disabled:t,onUp:n,onDown:o})=>{const[l,r]=H(0),[i,a]=H(!1);return U(()=>{if(t){a(!0);const f=window.setTimeout(()=>{a(!1),r(e)},500);return()=>window.clearTimeout(f)}else r(e)},[e]),m("div",{class:Se("time-cell",{disabled:t}),children:[m("div",{class:"time-cell-up",onClick:t?void 0:n}),m("div",{class:"rotor",children:[m("div",{class:Se("rotor-leaf",{flipped:i}),children:[m("figure",{class:"rotor-leaf-rear",children:e}),m("figure",{class:"rotor-leaf-front",children:l})]}),m("div",{class:"rotor-top",children:e}),m("div",{class:"rotor-bottom",children:l})]}),m("div",{class:"time-cell-down",onClick:t?void 0:o})]})});var $=(e=>(e[e.AddTenMinutes=0]="AddTenMinutes",e[e.ReduceTenMinutes=1]="ReduceTenMinutes",e[e.AddOneMinute=2]="AddOneMinute",e[e.ReduceOneMinute=3]="ReduceOneMinute",e[e.AddTenSeconds=4]="AddTenSeconds",e[e.ReduceTenSeconds=5]="ReduceTenSeconds",e[e.AddOneSecond=6]="AddOneSecond",e[e.ReduceOneSecond=7]="ReduceOneSecond",e))($||{});function Me(e){return Te(()=>(e=e%61,[Math.floor(e/10),e%10]),[e])}function P(e,t){return N(()=>e(t),[e])}const lt=K(({minutes:e,seconds:t,disabled:n,onAdjustTime:o})=>{const l=Me(e),r=Me(t),i=P(o,0),a=P(o,1),f=P(o,2),p=P(o,3),_=P(o,4),h=P(o,5),s=P(o,6),c=P(o,7);return m("div",{className:"countdown-clock",children:[m(F,{disabled:n,digit:l[0],onUp:i,onDown:a}),m(F,{digit:l[1],disabled:n,onUp:f,onDown:p}),m("div",{class:"countdown-clock-divider"}),m(F,{disabled:n,digit:r[0],onUp:_,onDown:h}),m(F,{digit:r[1],disabled:n,onUp:s,onDown:c})]})}),it=K(({readonly:e,countdownSecs:t,startTime:n,paused:o,onAdjustTime:l,onStart:r,onPause:i,onResume:a,onReset:f})=>{const[p,_]=H(0),h=n>0&&p>=n,s=t-(h?p-n:0),c=Math.floor(s/60),d=s-c*60;return U(()=>{let g=NaN;if(t>0&&n>0&&!o){const b=()=>{_(Math.floor(Date.now()/1e3)),g=window.requestAnimationFrame(b)};return b(),()=>window.cancelAnimationFrame(g)}else window.cancelAnimationFrame(g)},[n,o,t]),U(()=>{n>0&&p-n>=t&&f()},[p,n,t,f]),m("div",{class:"netless-app-countdown",children:m("div",{class:"netless-app-countdown-shrink",children:[m(lt,{minutes:c,seconds:d,disabled:e||h,onAdjustTime:l}),m("div",{class:"netless-app-countdown-btns",children:o?m(E,{children:[m("button",{onClick:f,disabled:e,children:"Reset"}),m("button",{onClick:a,disabled:e,children:"Resume"})]}):h?m("button",{onClick:i,disabled:e,children:"Pause"}):m("button",{onClick:r,disabled:e||s<=0,children:"Start"})})]})})}),ct=K(({context:e,storage:t})=>{const[n,o]=H(()=>e.isWritable),[l,r]=H(t.state.countdownSecs),[i,a]=H(t.state.startTime),[f,p]=H(t.state.paused);U(()=>(o(e.isWritable),e.emitter.on("writableChange",o),()=>e.emitter.off("writableChange",o)),[e]),U(()=>{const b=v=>{v.countdownSecs&&r(t.state.countdownSecs),v.paused&&p(t.state.paused),v.startTime&&a(t.state.startTime)};return t.on("stateChanged",b)},[t]);const _=i>0,h=N(()=>{e.isWritable&&t.setState({paused:!1,startTime:Math.floor(Date.now()/1e3)})},[e,t]),s=N(()=>{e.isWritable&&t.setState({paused:!0})},[e,t]),c=N(()=>{e.isWritable&&t.setState({paused:!1})},[e,t]),d=N(()=>{e.isWritable&&t.setState({paused:!1,countdownSecs:0,startTime:0})},[e]),g=N(b=>{if(!_&&e.isWritable){const v=Math.floor(l/60),y=l-v*60,S=Math.floor(v/10),k=v%10,M=Math.floor(y/10),A=y%10;let x;switch(b){case $.AddTenMinutes:{const W=k+y===0?7:6;x=((S+1)%W*10+k)*60+y;break}case $.ReduceTenMinutes:{const W=k+y===0?7:6;x=((S+W-1)%W*10+k)*60+y;break}case $.AddOneMinute:{x=(Math.min(5,S)*10+(k+1)%10)*60+y;break}case $.ReduceOneMinute:{x=(Math.min(5,S)*10+(k+10-1)%10)*60+y;break}case $.AddTenSeconds:{x=v*60+((M+1)%6*10+A);break}case $.ReduceTenSeconds:{x=v*60+((M+6-1)%6*10+A);break}case $.AddOneSecond:{x=v*60+(Math.min(5,M)*10+(A+1)%10);break}case $.ReduceOneSecond:{x=v*60+(Math.min(5,M)*10+(A+10-1)%10);break}default:{x=l;break}}t.setState({countdownSecs:x})}},[_,e]);return m(it,{readonly:!n,countdownSecs:l,startTime:i,paused:f,onAdjustTime:g,onStart:h,onPause:s,onResume:c,onReset:d})}),st=208,at=216,ut={kind:"Countdown",config:{minwidth:st,minheight:at},setup(e){const t=e.box;t.mountStyles(Xe);const n=e.createStorage("state",{countdownSecs:0,startTime:0,paused:!1});ce(m(ct,{context:e,storage:n}),t.$content),e.emitter.on("destroy",()=>{ce(null,t.$content)})}};exports.default=ut;
//# sourceMappingURL=main.js.map
{
"name": "@netless/app-countdown",
"version": "0.0.4",
"version": "0.0.5",
"main": "dist/main.js",

@@ -5,0 +5,0 @@ "module": "dist/main.mjs",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc