UNPKG

my-awesome-react-digital-clock

Version:

A digital clock for React apps

51 lines (48 loc) 29.4 kB
(function(oe,Q){typeof exports=="object"&&typeof module<"u"?Q(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],Q):(oe=typeof globalThis<"u"?globalThis:oe||self,Q(oe.MyAwesomeReactDigitalClock={},oe.require$$0))})(this,function(oe,Q){"use strict";function tr(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Se={exports:{}},ge={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Me;function nr(){if(Me)return ge;Me=1;var r=Symbol.for("react.transitional.element"),m=Symbol.for("react.fragment");function d(f,E,u){var T=null;if(u!==void 0&&(T=""+u),E.key!==void 0&&(T=""+E.key),"key"in E){u={};for(var l in E)l!=="key"&&(u[l]=E[l])}else u=E;return E=u.ref,{$$typeof:r,type:f,key:T,ref:E!==void 0?E:null,props:u}}return ge.Fragment=m,ge.jsx=d,ge.jsxs=d,ge}var Te={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ne;function or(){return Ne||(Ne=1,process.env.NODE_ENV!=="production"&&function(){function r(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case J:return"Fragment";case a:return"Portal";case ve:return"Profiler";case de:return"StrictMode";case ue:return"Suspense";case ce:return"SuspenseList"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case ye:return(e.displayName||"Context")+".Provider";case pe:return(e._context.displayName||"Context")+".Consumer";case re:var i=e.render;return e=e.displayName,e||(e=i.displayName||i.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G:return i=e.displayName||null,i!==null?i:r(e.type)||"Memo";case fe:i=e._payload,e=e._init;try{return r(e(i))}catch{}}return null}function m(e){return""+e}function d(e){try{m(e);var i=!1}catch{i=!0}if(i){i=console;var s=i.error,O=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s.call(i,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O),m(e)}}function f(){}function E(){if(c===0){h=console.log,p=console.info,b=console.warn,S=console.error,R=console.group,_=console.groupCollapsed,U=console.groupEnd;var e={configurable:!0,enumerable:!0,value:f,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}c++}function u(){if(c--,c===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:o({},e,{value:h}),info:o({},e,{value:p}),warn:o({},e,{value:b}),error:o({},e,{value:S}),group:o({},e,{value:R}),groupCollapsed:o({},e,{value:_}),groupEnd:o({},e,{value:U})})}0>c&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function T(e){if(n===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);n=i&&i[1]||"",V=-1<s.stack.indexOf(` at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return` `+n+e+V}function l(e,i){if(!e||te)return"";var s=Ee.get(e);if(s!==void 0)return s;te=!0,s=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var O=null;O=B.H,B.H=null,E();try{var z={DetermineComponentFrameRoot:function(){try{if(i){var ne=function(){throw Error()};if(Object.defineProperty(ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ne,[])}catch(K){var Re=K}Reflect.construct(e,[],ne)}else{try{ne.call()}catch(K){Re=K}e.call(ne.prototype)}}else{try{throw Error()}catch(K){Re=K}(ne=e())&&typeof ne.catch=="function"&&ne.catch(function(){})}}catch(K){if(K&&Re&&typeof K.stack=="string")return[K.stack,Re.stack]}return[null,null]}};z.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var N=Object.getOwnPropertyDescriptor(z.DetermineComponentFrameRoot,"name");N&&N.configurable&&Object.defineProperty(z.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=z.DetermineComponentFrameRoot(),Z=y[0],be=y[1];if(Z&&be){var F=Z.split(` `),le=be.split(` `);for(y=N=0;N<F.length&&!F[N].includes("DetermineComponentFrameRoot");)N++;for(;y<le.length&&!le[y].includes("DetermineComponentFrameRoot");)y++;if(N===F.length||y===le.length)for(N=F.length-1,y=le.length-1;1<=N&&0<=y&&F[N]!==le[y];)y--;for(;1<=N&&0<=y;N--,y--)if(F[N]!==le[y]){if(N!==1||y!==1)do if(N--,y--,0>y||F[N]!==le[y]){var he=` `+F[N].replace(" at new "," at ");return e.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",e.displayName)),typeof e=="function"&&Ee.set(e,he),he}while(1<=N&&0<=y);break}}}finally{te=!1,B.H=O,u(),Error.prepareStackTrace=s}return F=(F=e?e.displayName||e.name:"")?T(F):"",typeof e=="function"&&Ee.set(e,F),F}function A(e){if(e==null)return"";if(typeof e=="function"){var i=e.prototype;return l(e,!(!i||!i.isReactComponent))}if(typeof e=="string")return T(e);switch(e){case ue:return T("Suspense");case ce:return T("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case re:return e=l(e.render,!1),e;case G:return A(e.type);case fe:i=e._payload,e=e._init;try{return A(e(i))}catch{}}return""}function C(){var e=B.A;return e===null?null:e.getOwner()}function x(e){if(t.call(e,"key")){var i=Object.getOwnPropertyDescriptor(e,"key").get;if(i&&i.isReactWarning)return!1}return e.key!==void 0}function j(e,i){function s(){Ke||(Ke=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",i))}s.isReactWarning=!0,Object.defineProperty(e,"key",{get:s,configurable:!0})}function Y(){var e=r(this.type);return Qe[e]||(Qe[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function I(e,i,s,O,z,N){return s=N.ref,e={$$typeof:$,type:e,key:i,props:N,_owner:z},(s!==void 0?s:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:Y}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function D(e,i,s,O,z,N){if(typeof e=="string"||typeof e=="function"||e===J||e===ve||e===de||e===ue||e===ce||e===H||typeof e=="object"&&e!==null&&(e.$$typeof===fe||e.$$typeof===G||e.$$typeof===ye||e.$$typeof===pe||e.$$typeof===re||e.$$typeof===g||e.getModuleId!==void 0)){var y=i.children;if(y!==void 0)if(O)if(v(y)){for(O=0;O<y.length;O++)M(y[O],e);Object.freeze&&Object.freeze(y)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else M(y,e)}else y="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(y+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?O="null":v(e)?O="array":e!==void 0&&e.$$typeof===$?(O="<"+(r(e.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):O=typeof e,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",O,y);if(t.call(i,"key")){y=r(e);var Z=Object.keys(i).filter(function(F){return F!=="key"});O=0<Z.length?"{key: someKey, "+Z.join(": ..., ")+": ...}":"{key: someKey}",er[y+O]||(Z=0<Z.length?"{"+Z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,O,y,Z,y),er[y+O]=!0)}if(y=null,s!==void 0&&(d(s),y=""+s),x(i)&&(d(i.key),y=""+i.key),"key"in i){s={};for(var be in i)be!=="key"&&(s[be]=i[be])}else s=i;return y&&j(s,typeof e=="function"?e.displayName||e.name||"Unknown":e),I(e,y,N,z,C(),s)}function M(e,i){if(typeof e=="object"&&e&&e.$$typeof!==mr){if(v(e))for(var s=0;s<e.length;s++){var O=e[s];W(O)&&L(O,i)}else if(W(e))e._store&&(e._store.validated=1);else if(e===null||typeof e!="object"?s=null:(s=X&&e[X]||e["@@iterator"],s=typeof s=="function"?s:null),typeof s=="function"&&s!==e.entries&&(s=s.call(e),s!==e))for(;!(e=s.next()).done;)W(e.value)&&L(e.value,i)}}function W(e){return typeof e=="object"&&e!==null&&e.$$typeof===$}function L(e,i){if(e._store&&!e._store.validated&&e.key==null&&(e._store.validated=1,i=se(i),!rr[i])){rr[i]=!0;var s="";e&&e._owner!=null&&e._owner!==C()&&(s=null,typeof e._owner.tag=="number"?s=r(e._owner.type):typeof e._owner.name=="string"&&(s=e._owner.name),s=" It was passed a child from "+s+".");var O=B.getCurrentStack;B.getCurrentStack=function(){var z=A(e.type);return O&&(z+=O()||""),z},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',i,s),B.getCurrentStack=O}}function se(e){var i="",s=C();return s&&(s=r(s.type))&&(i=` Check the render method of \``+s+"`."),i||(e=r(e))&&(i=` Check the top-level render call using <`+e+">."),i}var q=Q,$=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),J=Symbol.for("react.fragment"),de=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),pe=Symbol.for("react.consumer"),ye=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),H=Symbol.for("react.offscreen"),X=Symbol.iterator,me=Symbol.for("react.client.reference"),B=q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,t=Object.prototype.hasOwnProperty,o=Object.assign,g=Symbol.for("react.client.reference"),v=Array.isArray,c=0,h,p,b,S,R,_,U;f.__reactDisabledLog=!0;var n,V,te=!1,Ee=new(typeof WeakMap=="function"?WeakMap:Map),mr=Symbol.for("react.client.reference"),Ke,Qe={},er={},rr={};Te.Fragment=J,Te.jsx=function(e,i,s,O,z){return D(e,i,s,!1,O,z)},Te.jsxs=function(e,i,s,O,z){return D(e,i,s,!0,O,z)}}()),Te}var $e;function ar(){return $e||($e=1,process.env.NODE_ENV==="production"?Se.exports=nr():Se.exports=or()),Se.exports}var k=ar(),_e={exports:{}},xe={exports:{}},P={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ye;function ir(){if(Ye)return P;Ye=1;var r=typeof Symbol=="function"&&Symbol.for,m=r?Symbol.for("react.element"):60103,d=r?Symbol.for("react.portal"):60106,f=r?Symbol.for("react.fragment"):60107,E=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,T=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,A=r?Symbol.for("react.async_mode"):60111,C=r?Symbol.for("react.concurrent_mode"):60111,x=r?Symbol.for("react.forward_ref"):60112,j=r?Symbol.for("react.suspense"):60113,Y=r?Symbol.for("react.suspense_list"):60120,I=r?Symbol.for("react.memo"):60115,D=r?Symbol.for("react.lazy"):60116,M=r?Symbol.for("react.block"):60121,W=r?Symbol.for("react.fundamental"):60117,L=r?Symbol.for("react.responder"):60118,se=r?Symbol.for("react.scope"):60119;function q(a){if(typeof a=="object"&&a!==null){var J=a.$$typeof;switch(J){case m:switch(a=a.type,a){case A:case C:case f:case u:case E:case j:return a;default:switch(a=a&&a.$$typeof,a){case l:case x:case D:case I:case T:return a;default:return J}}case d:return J}}}function $(a){return q(a)===C}return P.AsyncMode=A,P.ConcurrentMode=C,P.ContextConsumer=l,P.ContextProvider=T,P.Element=m,P.ForwardRef=x,P.Fragment=f,P.Lazy=D,P.Memo=I,P.Portal=d,P.Profiler=u,P.StrictMode=E,P.Suspense=j,P.isAsyncMode=function(a){return $(a)||q(a)===A},P.isConcurrentMode=$,P.isContextConsumer=function(a){return q(a)===l},P.isContextProvider=function(a){return q(a)===T},P.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===m},P.isForwardRef=function(a){return q(a)===x},P.isFragment=function(a){return q(a)===f},P.isLazy=function(a){return q(a)===D},P.isMemo=function(a){return q(a)===I},P.isPortal=function(a){return q(a)===d},P.isProfiler=function(a){return q(a)===u},P.isStrictMode=function(a){return q(a)===E},P.isSuspense=function(a){return q(a)===j},P.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===f||a===C||a===u||a===E||a===j||a===Y||typeof a=="object"&&a!==null&&(a.$$typeof===D||a.$$typeof===I||a.$$typeof===T||a.$$typeof===l||a.$$typeof===x||a.$$typeof===W||a.$$typeof===L||a.$$typeof===se||a.$$typeof===M)},P.typeOf=q,P}var w={};/** @license React v16.13.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ie;function sr(){return Ie||(Ie=1,process.env.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,m=r?Symbol.for("react.element"):60103,d=r?Symbol.for("react.portal"):60106,f=r?Symbol.for("react.fragment"):60107,E=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,T=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,A=r?Symbol.for("react.async_mode"):60111,C=r?Symbol.for("react.concurrent_mode"):60111,x=r?Symbol.for("react.forward_ref"):60112,j=r?Symbol.for("react.suspense"):60113,Y=r?Symbol.for("react.suspense_list"):60120,I=r?Symbol.for("react.memo"):60115,D=r?Symbol.for("react.lazy"):60116,M=r?Symbol.for("react.block"):60121,W=r?Symbol.for("react.fundamental"):60117,L=r?Symbol.for("react.responder"):60118,se=r?Symbol.for("react.scope"):60119;function q(n){return typeof n=="string"||typeof n=="function"||n===f||n===C||n===u||n===E||n===j||n===Y||typeof n=="object"&&n!==null&&(n.$$typeof===D||n.$$typeof===I||n.$$typeof===T||n.$$typeof===l||n.$$typeof===x||n.$$typeof===W||n.$$typeof===L||n.$$typeof===se||n.$$typeof===M)}function $(n){if(typeof n=="object"&&n!==null){var V=n.$$typeof;switch(V){case m:var te=n.type;switch(te){case A:case C:case f:case u:case E:case j:return te;default:var Ee=te&&te.$$typeof;switch(Ee){case l:case x:case D:case I:case T:return Ee;default:return V}}case d:return V}}}var a=A,J=C,de=l,ve=T,pe=m,ye=x,re=f,ue=D,ce=I,G=d,fe=u,H=E,X=j,me=!1;function B(n){return me||(me=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),t(n)||$(n)===A}function t(n){return $(n)===C}function o(n){return $(n)===l}function g(n){return $(n)===T}function v(n){return typeof n=="object"&&n!==null&&n.$$typeof===m}function c(n){return $(n)===x}function h(n){return $(n)===f}function p(n){return $(n)===D}function b(n){return $(n)===I}function S(n){return $(n)===d}function R(n){return $(n)===u}function _(n){return $(n)===E}function U(n){return $(n)===j}w.AsyncMode=a,w.ConcurrentMode=J,w.ContextConsumer=de,w.ContextProvider=ve,w.Element=pe,w.ForwardRef=ye,w.Fragment=re,w.Lazy=ue,w.Memo=ce,w.Portal=G,w.Profiler=fe,w.StrictMode=H,w.Suspense=X,w.isAsyncMode=B,w.isConcurrentMode=t,w.isContextConsumer=o,w.isContextProvider=g,w.isElement=v,w.isForwardRef=c,w.isFragment=h,w.isLazy=p,w.isMemo=b,w.isPortal=S,w.isProfiler=R,w.isStrictMode=_,w.isSuspense=U,w.isValidElementType=q,w.typeOf=$}()),w}var We;function qe(){return We||(We=1,process.env.NODE_ENV==="production"?xe.exports=ir():xe.exports=sr()),xe.exports}/* object-assign (c) Sindre Sorhus @license MIT */var Oe,Ue;function ur(){if(Ue)return Oe;Ue=1;var r=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;function f(u){if(u==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}function E(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de",Object.getOwnPropertyNames(u)[0]==="5")return!1;for(var T={},l=0;l<10;l++)T["_"+String.fromCharCode(l)]=l;var A=Object.getOwnPropertyNames(T).map(function(x){return T[x]});if(A.join("")!=="0123456789")return!1;var C={};return"abcdefghijklmnopqrst".split("").forEach(function(x){C[x]=x}),Object.keys(Object.assign({},C)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Oe=E()?Object.assign:function(u,T){for(var l,A=f(u),C,x=1;x<arguments.length;x++){l=Object(arguments[x]);for(var j in l)m.call(l,j)&&(A[j]=l[j]);if(r){C=r(l);for(var Y=0;Y<C.length;Y++)d.call(l,C[Y])&&(A[C[Y]]=l[C[Y]])}}return A},Oe}var Pe,De;function we(){if(De)return Pe;De=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Pe=r,Pe}var Ce,ze;function Le(){return ze||(ze=1,Ce=Function.call.bind(Object.prototype.hasOwnProperty)),Ce}var je,Fe;function cr(){if(Fe)return je;Fe=1;var r=function(){};if(process.env.NODE_ENV!=="production"){var m=we(),d={},f=Le();r=function(u){var T="Warning: "+u;typeof console<"u"&&console.error(T);try{throw new Error(T)}catch{}}}function E(u,T,l,A,C){if(process.env.NODE_ENV!=="production"){for(var x in u)if(f(u,x)){var j;try{if(typeof u[x]!="function"){var Y=Error((A||"React class")+": "+l+" type `"+x+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[x]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Y.name="Invariant Violation",Y}j=u[x](T,x,A,l,null,m)}catch(D){j=D}if(j&&!(j instanceof Error)&&r((A||"React class")+": type specification of "+l+" `"+x+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof j+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),j instanceof Error&&!(j.message in d)){d[j.message]=!0;var I=C?C():"";r("Failed "+l+" type: "+j.message+(I??""))}}}}return E.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(d={})},je=E,je}var Ae,Ve;function fr(){if(Ve)return Ae;Ve=1;var r=qe(),m=ur(),d=we(),f=Le(),E=cr(),u=function(){};process.env.NODE_ENV!=="production"&&(u=function(l){var A="Warning: "+l;typeof console<"u"&&console.error(A);try{throw new Error(A)}catch{}});function T(){return null}return Ae=function(l,A){var C=typeof Symbol=="function"&&Symbol.iterator,x="@@iterator";function j(t){var o=t&&(C&&t[C]||t[x]);if(typeof o=="function")return o}var Y="<<anonymous>>",I={array:L("array"),bigint:L("bigint"),bool:L("boolean"),func:L("function"),number:L("number"),object:L("object"),string:L("string"),symbol:L("symbol"),any:se(),arrayOf:q,element:$(),elementType:a(),instanceOf:J,node:ye(),objectOf:ve,oneOf:de,oneOfType:pe,shape:ue,exact:ce};function D(t,o){return t===o?t!==0||1/t===1/o:t!==t&&o!==o}function M(t,o){this.message=t,this.data=o&&typeof o=="object"?o:{},this.stack=""}M.prototype=Error.prototype;function W(t){if(process.env.NODE_ENV!=="production")var o={},g=0;function v(h,p,b,S,R,_,U){if(S=S||Y,_=_||b,U!==d){if(A){var n=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw n.name="Invariant Violation",n}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var V=S+":"+b;!o[V]&&g<3&&(u("You are manually calling a React.PropTypes validation function for the `"+_+"` prop on `"+S+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),o[V]=!0,g++)}}return p[b]==null?h?p[b]===null?new M("The "+R+" `"+_+"` is marked as required "+("in `"+S+"`, but its value is `null`.")):new M("The "+R+" `"+_+"` is marked as required in "+("`"+S+"`, but its value is `undefined`.")):null:t(p,b,S,R,_)}var c=v.bind(null,!1);return c.isRequired=v.bind(null,!0),c}function L(t){function o(g,v,c,h,p,b){var S=g[v],R=H(S);if(R!==t){var _=X(S);return new M("Invalid "+h+" `"+p+"` of type "+("`"+_+"` supplied to `"+c+"`, expected ")+("`"+t+"`."),{expectedType:t})}return null}return W(o)}function se(){return W(T)}function q(t){function o(g,v,c,h,p){if(typeof t!="function")return new M("Property `"+p+"` of component `"+c+"` has invalid PropType notation inside arrayOf.");var b=g[v];if(!Array.isArray(b)){var S=H(b);return new M("Invalid "+h+" `"+p+"` of type "+("`"+S+"` supplied to `"+c+"`, expected an array."))}for(var R=0;R<b.length;R++){var _=t(b,R,c,h,p+"["+R+"]",d);if(_ instanceof Error)return _}return null}return W(o)}function $(){function t(o,g,v,c,h){var p=o[g];if(!l(p)){var b=H(p);return new M("Invalid "+c+" `"+h+"` of type "+("`"+b+"` supplied to `"+v+"`, expected a single ReactElement."))}return null}return W(t)}function a(){function t(o,g,v,c,h){var p=o[g];if(!r.isValidElementType(p)){var b=H(p);return new M("Invalid "+c+" `"+h+"` of type "+("`"+b+"` supplied to `"+v+"`, expected a single ReactElement type."))}return null}return W(t)}function J(t){function o(g,v,c,h,p){if(!(g[v]instanceof t)){var b=t.name||Y,S=B(g[v]);return new M("Invalid "+h+" `"+p+"` of type "+("`"+S+"` supplied to `"+c+"`, expected ")+("instance of `"+b+"`."))}return null}return W(o)}function de(t){if(!Array.isArray(t))return process.env.NODE_ENV!=="production"&&(arguments.length>1?u("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):u("Invalid argument supplied to oneOf, expected an array.")),T;function o(g,v,c,h,p){for(var b=g[v],S=0;S<t.length;S++)if(D(b,t[S]))return null;var R=JSON.stringify(t,function(U,n){var V=X(n);return V==="symbol"?String(n):n});return new M("Invalid "+h+" `"+p+"` of value `"+String(b)+"` "+("supplied to `"+c+"`, expected one of "+R+"."))}return W(o)}function ve(t){function o(g,v,c,h,p){if(typeof t!="function")return new M("Property `"+p+"` of component `"+c+"` has invalid PropType notation inside objectOf.");var b=g[v],S=H(b);if(S!=="object")return new M("Invalid "+h+" `"+p+"` of type "+("`"+S+"` supplied to `"+c+"`, expected an object."));for(var R in b)if(f(b,R)){var _=t(b,R,c,h,p+"."+R,d);if(_ instanceof Error)return _}return null}return W(o)}function pe(t){if(!Array.isArray(t))return process.env.NODE_ENV!=="production"&&u("Invalid argument supplied to oneOfType, expected an instance of array."),T;for(var o=0;o<t.length;o++){var g=t[o];if(typeof g!="function")return u("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+me(g)+" at index "+o+"."),T}function v(c,h,p,b,S){for(var R=[],_=0;_<t.length;_++){var U=t[_],n=U(c,h,p,b,S,d);if(n==null)return null;n.data&&f(n.data,"expectedType")&&R.push(n.data.expectedType)}var V=R.length>0?", expected one of type ["+R.join(", ")+"]":"";return new M("Invalid "+b+" `"+S+"` supplied to "+("`"+p+"`"+V+"."))}return W(v)}function ye(){function t(o,g,v,c,h){return G(o[g])?null:new M("Invalid "+c+" `"+h+"` supplied to "+("`"+v+"`, expected a ReactNode."))}return W(t)}function re(t,o,g,v,c){return new M((t||"React class")+": "+o+" type `"+g+"."+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+c+"`.")}function ue(t){function o(g,v,c,h,p){var b=g[v],S=H(b);if(S!=="object")return new M("Invalid "+h+" `"+p+"` of type `"+S+"` "+("supplied to `"+c+"`, expected `object`."));for(var R in t){var _=t[R];if(typeof _!="function")return re(c,h,p,R,X(_));var U=_(b,R,c,h,p+"."+R,d);if(U)return U}return null}return W(o)}function ce(t){function o(g,v,c,h,p){var b=g[v],S=H(b);if(S!=="object")return new M("Invalid "+h+" `"+p+"` of type `"+S+"` "+("supplied to `"+c+"`, expected `object`."));var R=m({},g[v],t);for(var _ in R){var U=t[_];if(f(t,_)&&typeof U!="function")return re(c,h,p,_,X(U));if(!U)return new M("Invalid "+h+" `"+p+"` key `"+_+"` supplied to `"+c+"`.\nBad object: "+JSON.stringify(g[v],null," ")+` Valid keys: `+JSON.stringify(Object.keys(t),null," "));var n=U(b,_,c,h,p+"."+_,d);if(n)return n}return null}return W(o)}function G(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(G);if(t===null||l(t))return!0;var o=j(t);if(o){var g=o.call(t),v;if(o!==t.entries){for(;!(v=g.next()).done;)if(!G(v.value))return!1}else for(;!(v=g.next()).done;){var c=v.value;if(c&&!G(c[1]))return!1}}else return!1;return!0;default:return!1}}function fe(t,o){return t==="symbol"?!0:o?o["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&o instanceof Symbol:!1}function H(t){var o=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":fe(o,t)?"symbol":o}function X(t){if(typeof t>"u"||t===null)return""+t;var o=H(t);if(o==="object"){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return o}function me(t){var o=X(t);switch(o){case"array":case"object":return"an "+o;case"boolean":case"date":case"regexp":return"a "+o;default:return o}}function B(t){return!t.constructor||!t.constructor.name?Y:t.constructor.name}return I.checkPropTypes=E,I.resetWarningCache=E.resetWarningCache,I.PropTypes=I,I},Ae}var ke,He;function lr(){if(He)return ke;He=1;var r=we();function m(){}function d(){}return d.resetWarningCache=m,ke=function(){function f(T,l,A,C,x,j){if(j!==r){var Y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw Y.name="Invariant Violation",Y}}f.isRequired=f;function E(){return f}var u={array:f,bigint:f,bool:f,func:f,number:f,object:f,string:f,symbol:f,any:f,arrayOf:E,element:f,elementType:f,instanceOf:E,node:f,objectOf:E,oneOf:E,oneOfType:E,shape:E,exact:E,checkPropTypes:d,resetWarningCache:m};return u.PropTypes=u,u},ke}var Je;function dr(){if(Je)return _e.exports;if(Je=1,process.env.NODE_ENV!=="production"){var r=qe(),m=!0;_e.exports=fr()(r.isElement,m)}else _e.exports=lr()();return _e.exports}var vr=dr();const ee=tr(vr),Be=({amPm:r})=>{const m=r==="AM";return k.jsxs("div",{className:"ampm",children:[k.jsx("span",{className:m?"active":"",children:"AM"}),k.jsx("span",{className:m?"":"active",children:"PM"})]})};Be.propTypes={amPm:ee.string};const pr=["SUN","MON","TUE","WED","THU","FRI","SAT"],Ge=({today:r})=>k.jsx("div",{className:"weekdays",children:pr.map((m,d)=>k.jsx("span",{className:d===r?"active":"",children:m},d))});Ge.propTypes={day:ee.number};const ae={0:[!0,!0,!0,!0,!0,!0,!1],1:[!1,!1,!0,!0,!1,!1,!1],2:[!0,!1,!0,!1,!0,!0,!0],3:[!0,!1,!0,!0,!1,!0,!0],4:[!1,!0,!0,!0,!1,!1,!0],5:[!0,!0,!1,!0,!1,!0,!0],6:[!0,!0,!1,!0,!0,!0,!0],7:[!0,!1,!0,!0,!1,!1,!1],8:[!0,!0,!0,!0,!0,!0,!0],9:[!0,!0,!0,!0,!1,!0,!0]},ie=({number:r=0})=>k.jsxs("div",{className:"digital-number",children:[k.jsx("span",{className:`top horizontal ${ae[r][0]?"on":"off"}`}),k.jsx("span",{className:`top left vertical ${ae[r][1]?"on":"off"}`}),k.jsx("span",{className:`top right vertical ${ae[r][2]?"on":"off"}`}),k.jsx("span",{className:`bottom right vertical ${ae[r][3]?"on":"off"}`}),k.jsx("span",{className:`bottom left vertical ${ae[r][4]?"on":"off"}`}),k.jsx("span",{className:`bottom horizontal ${ae[r][5]?"on":"off"}`}),k.jsx("span",{className:`mid horizontal ${ae[r][6]?"on":"off"}`})]});ie.propTypes={number:ee.number};const Xe=({hours:r,minutes:m,seconds:d,color:f})=>k.jsxs("div",{className:`digital-time ${f}`,children:[k.jsx(ie,{number:+r[0]}),k.jsx(ie,{number:+r[1]}),k.jsx("span",{className:"colon",children:":"}),k.jsx(ie,{number:+m[0]}),k.jsx(ie,{number:+m[1]}),k.jsx("span",{className:"colon",children:":"}),k.jsx(ie,{number:+d[0]}),k.jsx(ie,{number:+d[1]})]});Xe.propTypes={hours:ee.string,minutes:ee.string,seconds:ee.string,color:ee.oneOf(["light","dark"])};function yr(){const[r,m]=Q.useState(new Date),d=Q.useRef(null);return Q.useEffect(()=>(d.current=setInterval(()=>{m(new Date)},1e3),()=>clearInterval(d.current)),[]),r}const Ze=({color:r="light"})=>{const m=yr(),d=(m.getHours()%12).toString().padStart(2,"0"),f=m.getMinutes().toString().padStart(2,"0"),E=m.getSeconds().toString().padStart(2,"0"),u=m.getDay(),T=m.getHours()>=12?"PM":"AM";return k.jsxs("div",{className:`digital-clock ${r}`,style:{height:"100px",width:"300px"},children:[k.jsx(Ge,{today:u}),k.jsx(Xe,{hours:d,minutes:f,seconds:E,color:r}),k.jsx(Be,{amPm:T})]})};Ze.propTypes={color:ee.oneOf(["light","dark"])},oe.DigitalClock=Ze,Object.defineProperty(oe,Symbol.toStringTag,{value:"Module"})});