42 lines
150 KiB
JavaScript
42 lines
150 KiB
JavaScript
|
|
const xc=function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function t(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerpolicy&&(o.referrerPolicy=l.referrerpolicy),l.crossorigin==="use-credentials"?o.credentials="include":l.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=t(l);fetch(l.href,o)}};xc();function Ec(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var as={exports:{}},ke={},P={exports:{}},T={};/**
|
||
|
|
* @license React
|
||
|
|
* react.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 er=Symbol.for("react.element"),Cc=Symbol.for("react.portal"),_c=Symbol.for("react.fragment"),Nc=Symbol.for("react.strict_mode"),Pc=Symbol.for("react.profiler"),zc=Symbol.for("react.provider"),Lc=Symbol.for("react.context"),Tc=Symbol.for("react.forward_ref"),Rc=Symbol.for("react.suspense"),Mc=Symbol.for("react.memo"),Ic=Symbol.for("react.lazy"),Zi=Symbol.iterator;function Oc(e){return e===null||typeof e!="object"?null:(e=Zi&&e[Zi]||e["@@iterator"],typeof e=="function"?e:null)}var cs={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fs=Object.assign,ds={};function at(e,n,t){this.props=e,this.context=n,this.refs=ds,this.updater=t||cs}at.prototype.isReactComponent={};at.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};at.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ps(){}ps.prototype=at.prototype;function bo(e,n,t){this.props=e,this.context=n,this.refs=ds,this.updater=t||cs}var ei=bo.prototype=new ps;ei.constructor=bo;fs(ei,at.prototype);ei.isPureReactComponent=!0;var Ji=Array.isArray,ms=Object.prototype.hasOwnProperty,ni={current:null},hs={key:!0,ref:!0,__self:!0,__source:!0};function vs(e,n,t){var r,l={},o=null,i=null;if(n!=null)for(r in n.ref!==void 0&&(i=n.ref),n.key!==void 0&&(o=""+n.key),n)ms.call(n,r)&&!hs.hasOwnProperty(r)&&(l[r]=n[r]);var u=arguments.length-2;if(u===1)l.children=t;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];l.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps,u)l[r]===void 0&&(l[r]=u[r]);return{$$typeof:er,type:e,key:o,ref:i,props:l,_owner:ni.current}}function Dc(e,n){return{$$typeof:er,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function ti(e){return typeof e=="object"&&e!==null&&e.$$typeof===er}function Fc(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return n[t]})}var qi=/\/+/g;function Il(e,n){return typeof e=="object"&&e!==null&&e.key!=null?Fc(""+e.key):n.toString(36)}function zr(e,n,t,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case er:case Cc:i=!0}}if(i)return i=e,l=l(i),e=r===""?"."+Il(i,0):r,Ji(l)?(t="",e!=null&&(t=e.replace(qi,"$&/")+"/"),zr(l,n,t,"",function(c){return c})):l!=null&&(ti(l)&&(l=Dc(l,t+(!l.key||i&&i.key===l.key?"":(""+l.key).replace(qi,"$&/")+"/")+e)),n.push(l)),1;if(i=0,r=r===""?".":r+":",Ji(e))for(var u=0;u<e.length;u++){o=e[u];var s=r+Il(o,u);i+=zr(o,n,t,s,l)}else if(s=Oc(e),typeof s=="function")for(e=s.call(e),u=0;!(o=e.next()).done;)o=o.value,s=r+Il(o,u++),i+=zr(o,n,t,s,l);else if(o==="object")throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.");return i}function ur(e,n,t){if(e==null)return e;var r=[],l=0;return zr(e,r,"","",function(o){return n.call(t,o,l++)}),r}function jc(e){if(e._status===-1){var n=e._result;n=n(),n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var ce={current:null},Lr={transition:null},Uc={ReactCurrentDispatcher:ce,ReactCurrentBatchConfig:Lr,ReactCurrentOwner:ni};T.Children={map:ur,forEach:function(e,n,t){ur(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return ur(e,function(){n++}),n},toArray:function(e){return ur(e,function(n){return n})||[]},only:function(e){if(!ti(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};T.Component=at;T.Fragment=_c;T.Profiler=Pc;T.Pure
|
||
|
|
* @license React
|
||
|
|
* scheduler.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.
|
||
|
|
*/(function(e){function n(E,z){var L=E.length;E.push(z);e:for(;0<L;){var Q=L-1>>>1,Z=E[Q];if(0<l(Z,z))E[Q]=z,E[L]=Z,L=Q;else break e}}function t(E){return E.length===0?null:E[0]}function r(E){if(E.length===0)return null;var z=E[0],L=E.pop();if(L!==z){E[0]=L;e:for(var Q=0,Z=E.length,or=Z>>>1;Q<or;){var Sn=2*(Q+1)-1,Ml=E[Sn],kn=Sn+1,ir=E[kn];if(0>l(Ml,L))kn<Z&&0>l(ir,Ml)?(E[Q]=ir,E[kn]=L,Q=kn):(E[Q]=Ml,E[Sn]=L,Q=Sn);else if(kn<Z&&0>l(ir,L))E[Q]=ir,E[kn]=L,Q=kn;else break e}}return z}function l(E,z){var L=E.sortIndex-z.sortIndex;return L!==0?L:E.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,u=i.now();e.unstable_now=function(){return i.now()-u}}var s=[],c=[],p=1,h=null,m=3,y=!1,w=!1,S=!1,I=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function d(E){for(var z=t(c);z!==null;){if(z.callback===null)r(c);else if(z.startTime<=E)r(c),z.sortIndex=z.expirationTime,n(s,z);else break;z=t(c)}}function v(E){if(S=!1,d(E),!w)if(t(s)!==null)w=!0,Tl(k);else{var z=t(c);z!==null&&Rl(v,z.startTime-E)}}function k(E,z){w=!1,S&&(S=!1,f(N),N=-1),y=!0;var L=m;try{for(d(z),h=t(s);h!==null&&(!(h.expirationTime>z)||E&&!Le());){var Q=h.callback;if(typeof Q=="function"){h.callback=null,m=h.priorityLevel;var Z=Q(h.expirationTime<=z);z=e.unstable_now(),typeof Z=="function"?h.callback=Z:h===t(s)&&r(s),d(z)}else r(s);h=t(s)}if(h!==null)var or=!0;else{var Sn=t(c);Sn!==null&&Rl(v,Sn.startTime-z),or=!1}return or}finally{h=null,m=L,y=!1}}var _=!1,C=null,N=-1,$=5,R=-1;function Le(){return!(e.unstable_now()-R<$)}function dt(){if(C!==null){var E=e.unstable_now();R=E;var z=!0;try{z=C(!0,E)}finally{z?pt():(_=!1,C=null)}}else _=!1}var pt;if(typeof a=="function")pt=function(){a(dt)};else if(typeof MessageChannel<"u"){var Gi=new MessageChannel,kc=Gi.port2;Gi.port1.onmessage=dt,pt=function(){kc.postMessage(null)}}else pt=function(){I(dt,0)};function Tl(E){C=E,_||(_=!0,pt())}function Rl(E,z){N=I(function(){E(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(E){E.callback=null},e.unstable_continueExecution=function(){w||y||(w=!0,Tl(k))},e.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<E?Math.floor(1e3/E):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return t(s)},e.unstable_next=function(E){switch(m){case 1:case 2:case 3:var z=3;break;default:z=m}var L=m;m=z;try{return E()}finally{m=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(E,z){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var L=m;m=E;try{return z()}finally{m=L}},e.unstable_scheduleCallback=function(E,z,L){var Q=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?Q+L:Q):L=Q,E){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=L+Z,E={id:p++,callback:z,priorityLevel:E,startTime:L,expirationTime:Z,sortIndex:-1},L>Q?(E.sortIndex=L,n(c,E),t(s)===null&&E===t(c)&&(S?(f(N),N=-1):S=!0,Rl(v,L-Q))):(E.sortIndex=Z,n(s,E),w||y||(w=!0,Tl(k))),E},e.unstable_shouldYield=Le,e.unstable_wrapCallback=function(E){var z=m;return function(){var L=m;m=z;try{return E.apply(this,arguments)}finally{m=L}}}})(gs);(function(e){e.exports=gs})(ys);/**
|
||
|
|
* @license React
|
||
|
|
* react-dom.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 ws=P.exports,Se=ys.exports;function g(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ss=new Set,jt={};function On(e,n){tt(e,n),tt(e+"Capture",n)}function tt(e,n){for(jt[e]=n,e=0;e<n.length;e++)Ss.add(n[e])}var Ye=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),io=Object.prototype.hasOwnProperty,$c=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,bi={},eu={};function Ac(e){return io.call(eu,e)?!0:io.call(bi,e)?!1:$c.test(e)?eu[e]=!0:(bi[e]=!0,!1)}function Vc(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Bc(e,n,t,r){if(n===null||typeof n>"u"||Vc(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function fe(e,n,t,r,l,o,i){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o,this.removeEmptyString=i}var te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){te[e]=new fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];te[n]=new fe(n,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){te[e]=new fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){te[e]=new fe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){te[e]=new fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){te[e]=new fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){te[e]=new fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){te[e]=new fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){te[e]=new fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var ri=/[\-:]([a-z])/g;function li(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-ad
|
||
|
|
`+Ol+e}var Dl=!1;function Fl(e,n){if(!e||Dl)return"";Dl=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(c){var r=c}Reflect.construct(e,[],n)}else{try{n.call()}catch(c){r=c}e.call(n.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var l=c.stack.split(`
|
||
|
|
`),o=r.stack.split(`
|
||
|
|
`),i=l.length-1,u=o.length-1;1<=i&&0<=u&&l[i]!==o[u];)u--;for(;1<=i&&0<=u;i--,u--)if(l[i]!==o[u]){if(i!==1||u!==1)do if(i--,u--,0>u||l[i]!==o[u]){var s=`
|
||
|
|
`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{Dl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?xt(e):""}function Hc(e){switch(e.tag){case 5:return xt(e.type);case 16:return xt("Lazy");case 13:return xt("Suspense");case 19:return xt("SuspenseList");case 0:case 2:case 15:return e=Fl(e.type,!1),e;case 11:return e=Fl(e.type.render,!1),e;case 1:return e=Fl(e.type,!0),e;default:return""}}function co(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Un:return"Fragment";case jn:return"Portal";case uo:return"Profiler";case ii:return"StrictMode";case so:return"Suspense";case ao:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case xs:return(e.displayName||"Context")+".Consumer";case ks:return(e._context.displayName||"Context")+".Provider";case ui:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case si:return n=e.displayName||null,n!==null?n:co(e.type)||"Memo";case be:n=e._payload,e=e._init;try{return co(e(n))}catch{}}return null}function Wc(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return co(n);case 8:return n===ii?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function hn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Cs(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Qc(e){var n=Cs(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,o=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ar(e){e._valueTracker||(e._valueTracker=Qc(e))}function _s(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=Cs(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function Vr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function fo(e,n){var t=n.checked;return H({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function tu(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=hn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Ns(e,n){n=n.checked,n!=null&&oi(e,"checked",n,!1)}function po(e,n){Ns(e,n);var t=hn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?mo(e,n.type,t):n.hasOwnProperty("defaultValue")&&mo(e,n.type,hn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function ru(e,n,t){if(n.hasOwnProperty("valu
|
||
|
|
`).replace(td,"")}function yr(e,n,t){if(n=Nu(n),Nu(e)!==n&&t)throw Error(g(425))}function Gr(){}var zo=null,Lo=null;function To(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Ro=typeof setTimeout=="function"?setTimeout:void 0,rd=typeof clearTimeout=="function"?clearTimeout:void 0,Pu=typeof Promise=="function"?Promise:void 0,ld=typeof queueMicrotask=="function"?queueMicrotask:typeof Pu<"u"?function(e){return Pu.resolve(null).then(e).catch(od)}:Ro;function od(e){setTimeout(function(){throw e})}function Gl(e,n){var t=n,r=0;do{var l=t.nextSibling;if(e.removeChild(t),l&&l.nodeType===8)if(t=l.data,t==="/$"){if(r===0){e.removeChild(l),Bt(n);return}r--}else t!=="$"&&t!=="$?"&&t!=="$!"||r++;t=l}while(t);Bt(n)}function an(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function zu(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var t=e.data;if(t==="$"||t==="$!"||t==="$?"){if(n===0)return e;n--}else t==="/$"&&n++}e=e.previousSibling}return null}var ft=Math.random().toString(36).slice(2),$e="__reactFiber$"+ft,Yt="__reactProps$"+ft,Xe="__reactContainer$"+ft,Mo="__reactEvents$"+ft,id="__reactListeners$"+ft,ud="__reactHandles$"+ft;function Cn(e){var n=e[$e];if(n)return n;for(var t=e.parentNode;t;){if(n=t[Xe]||t[$e]){if(t=n.alternate,n.child!==null||t!==null&&t.child!==null)for(e=zu(e);e!==null;){if(t=e[$e])return t;e=zu(e)}return n}e=t,t=e.parentNode}return null}function rr(e){return e=e[$e]||e[Xe],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Bn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(g(33))}function vl(e){return e[Yt]||null}var Io=[],Hn=-1;function gn(e){return{current:e}}function U(e){0>Hn||(e.current=Io[Hn],Io[Hn]=null,Hn--)}function F(e,n){Hn++,Io[Hn]=e.current,e.current=n}var vn={},ie=gn(vn),me=gn(!1),Ln=vn;function rt(e,n){var t=e.type.contextTypes;if(!t)return vn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in t)l[o]=n[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function he(e){return e=e.childContextTypes,e!=null}function Zr(){U(me),U(ie)}function Lu(e,n,t){if(ie.current!==vn)throw Error(g(168));F(ie,n),F(me,t)}function ma(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(g(108,Wc(e)||"Unknown",l));return H({},t,r)}function Jr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vn,Ln=ie.current,F(ie,e),F(me,me.current),!0}function Tu(e,n,t){var r=e.stateNode;if(!r)throw Error(g(169));t?(e=ma(e,n,Ln),r.__reactInternalMemoizedMergedChildContext=e,U(me),U(ie),F(ie,e)):U(me),F(me,t)}var He=null,yl=!1,Zl=!1;function ha(e){He===null?He=[e]:He.push(e)}function sd(e){yl=!0,ha(e)}function wn(){if(!Zl&&He!==null){Zl=!0;var e=0,n=D;try{var t=He;for(D=1;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}He=null,yl=!1}catch(l){throw He!==null&&(He=He.slice(e+1)),As(ci,wn),l}finally{D=n,Zl=!1}}return null}var Wn=[],Qn=0,qr=null,br=0,Ee=[],Ce=0,Tn=null,We=1,Qe="";function xn(e,n){Wn[Qn++]=br,Wn[Qn++]=qr,qr=e,br=n}function va(e,n,t){Ee[Ce++]=We,Ee[Ce++]=Qe,Ee[Ce++]=Tn,Tn=e;var r=We;e=Qe;var l=32-Oe(r)-1;r&=~(1<<l),t+=1;var o=32-Oe(n)+l;if(30<o){var i=l-l%5;o=(r&(1<<i)-1).toString(32),r>>=i,l-=i,We=1<<32-Oe(n)+l|t<<l|r,Qe=o+e}else We=1<<o|t<<l|r,Qe=e}function wi(e){e.return!==null&&(xn(e,1),va(e,1,0))}function Si(e){for(;e===qr;)qr=Wn[--Qn],Wn[Qn]=null,br=Wn[--Qn],Wn[Qn]=null;for(;e===Tn;)Tn=Ee[--Ce],Ee[Ce]=null,Qe=Ee[--Ce],Ee[Ce]=null,We=Ee[--Ce],Ee[Ce]=null}var we=null,ge=null,A=!1,Ie=null;function ya(e,n){var t=_e(5,null,null,0);t.elementType="DELETED",t.stateNode=n,t.return=e,n=e.deletions,n===null?(e.del
|
||
|
|
Error generating stack: `+o.message+`
|
||
|
|
`+o.stack}return{value:e,source:n,stack:l,digest:null}}function no(e,n,t){return{value:e,source:null,stack:t??null,digest:n??null}}function $o(e,n){try{console.error(n.value)}catch(t){setTimeout(function(){throw t})}}var yd=typeof WeakMap=="function"?WeakMap:Map;function Qa(e,n,t){t=Ke(-1,t),t.tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){ul||(ul=!0,Go=r),$o(e,n)},t}function Ka(e,n,t){t=Ke(-1,t),t.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){$o(e,n)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){$o(e,n),typeof r!="function"&&(fn===null?fn=new Set([this]):fn.add(this));var i=n.stack;this.componentDidCatch(n.value,{componentStack:i!==null?i:""})}),t}function Au(e,n,t){var r=e.pingCache;if(r===null){r=e.pingCache=new yd;var l=new Set;r.set(n,l)}else l=r.get(n),l===void 0&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=Rd.bind(null,e,n,t),n.then(e,e))}function Vu(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function Bu(e,n,t,r,l){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(n=Ke(-1,1),n.tag=2,cn(t,n,1))),t.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var gd=Je.ReactCurrentOwner,pe=!1;function ue(e,n,t,r){n.child=e===null?Ca(n,null,t,r):ot(n,e.child,t,r)}function Hu(e,n,t,r,l){t=t.render;var o=n.ref;return bn(n,l),r=Ri(e,n,t,r,o,l),t=Mi(),e!==null&&!pe?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Ze(e,n,l)):(A&&t&&wi(n),n.flags|=1,ue(e,n,r,l),n.child)}function Wu(e,n,t,r,l){if(e===null){var o=t.type;return typeof o=="function"&&!Bi(o)&&o.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(n.tag=15,n.type=o,Ya(e,n,o,r,l)):(e=$r(t.type,null,r,n,n.mode,l),e.ref=n.ref,e.return=n,n.child=e)}if(o=e.child,(e.lanes&l)===0){var i=o.memoizedProps;if(t=t.compare,t=t!==null?t:Wt,t(i,r)&&e.ref===n.ref)return Ze(e,n,l)}return n.flags|=1,e=pn(o,r),e.ref=n.ref,e.return=n,n.child=e}function Ya(e,n,t,r,l){if(e!==null){var o=e.memoizedProps;if(Wt(o,r)&&e.ref===n.ref)if(pe=!1,n.pendingProps=r=o,(e.lanes&l)!==0)(e.flags&131072)!==0&&(pe=!0);else return n.lanes=e.lanes,Ze(e,n,l)}return Ao(e,n,t,r,l)}function Xa(e,n,t){var r=n.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},F(Xn,ye),ye|=t;else{if((t&1073741824)===0)return e=o!==null?o.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,F(Xn,ye),ye|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:t,F(Xn,ye),ye|=r}else o!==null?(r=o.baseLanes|t,n.memoizedState=null):r=t,F(Xn,ye),ye|=r;return ue(e,n,l,t),n.child}function Ga(e,n){var t=n.ref;(e===null&&t!==null||e!==null&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function Ao(e,n,t,r,l){var o=he(t)?Ln:ie.current;return o=rt(n,o),bn(n,l),t=Ri(e,n,t,r,o,l),r=Mi(),e!==null&&!pe?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Ze(e,n,l)):(A&&r&&wi(n),n.flags|=1,ue(e,n,t,l),n.child)}function Qu(e,n,t,r,l){if(he(t)){var o=!0;Jr(n)}else o=!1;if(bn(n,l),n.stateNode===null)Fr(e,n),xa(n,t,r),Uo(n,t,r,l),r=!0;else if(e===null){var i=n.stateNode,u=n.memoizedProps;i.props=u;var s=i.context,c=t.contextType;typeof c=="object"&&c!==null?c=Pe(c):(c=he(t)?Ln:ie.current,c=rt(n,c));var p=t.getDerivedStateFromProps,h=typeof p=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||s!==c)&&Fu(n,i,r,c),en=!1;var m=n.memoizedState;i.state=m,tl(n,r,i,l),s=n.memoizedState,u!==r||m!==s||me.current||en?(typeof p=="function"&&(jo(n,t,p,r),s=n.memoizedState),(u=en||Du(n,t,u,r,m,s,c))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="functio
|
||
|
|
* @license React
|
||
|
|
* react-jsx-runtime.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 Xd=P.exports,Gd=Symbol.for("react.element"),Zd=Symbol.for("react.fragment"),Jd=Object.prototype.hasOwnProperty,qd=Xd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,bd={key:!0,ref:!0,__self:!0,__source:!0};function gc(e,n,t){var r,l={},o=null,i=null;t!==void 0&&(o=""+t),n.key!==void 0&&(o=""+n.key),n.ref!==void 0&&(i=n.ref);for(r in n)Jd.call(n,r)&&!bd.hasOwnProperty(r)&&(l[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps,n)l[r]===void 0&&(l[r]=n[r]);return{$$typeof:Gd,type:e,key:o,ref:i,props:l,_owner:qd.current}}zl.Fragment=Zd;zl.jsx=gc;zl.jsxs=gc;(function(e){e.exports=zl})(Yi);const O=Yi.exports.jsx,mn=Yi.exports.jsxs;function ep(){const e=P.exports.useContext(Ll),[n,t]=P.exports.useState(null),[r,l]=P.exports.useState(null),{send:o}=Pl({"client:get"(u){t(u)}},[n,e]),i=P.exports.useCallback(()=>{r!==null&&e!==null&&(o("client:rename",{clientId:e,name:r.value}),t(r.value))},[e,n]);return P.exports.useEffect(()=>{e!==null&&r!==null&&o("client:get",e)},[r,e]),O("input",{ref:l,value:n??"",onChange:i})}function ls(){return O("span",{style:{fontWeight:"bold",marginRight:"8px",marginLeft:"8px"},children:"#"})}function np(){const[e,n]=P.exports.useState([]),[t,r]=P.exports.useState({}),{channel:l,setChannel:o}=P.exports.useContext(Xi),i=P.exports.useContext(Ll),{send:u}=Pl({"channels:list"(p){n(p)},"channel:add"(p){n([...e,p])},"message:message"(p){l!==p.channel&&r({...t,[p.channel]:(t[p.channel]??0)+1})}},[e,t]);P.exports.useEffect(()=>{console.log("unreads",t)},[t]),P.exports.useEffect(()=>{e.length===0&&u("channels:list")},[e]),P.exports.useEffect(()=>{e.length!==0&&l===null&&o(e[0].uid)},[l,e]),P.exports.useEffect(()=>{!l||r({...t,[l]:0})},[l]),P.exports.useEffect(()=>{i!==null&&u("client:get",i)},[i]);const s=P.exports.useRef(null),c=P.exports.useCallback(()=>{if(s.current===null)return;const p=s.current.value;s.current.value="",u("channel:add",{name:p})},[]);return mn("div",{style:{height:"100%",background:"#21222c"},children:[O("br",{}),e.map(p=>mn("div",{style:{margin:"8px 0px",color:l===p.uid?"cyan":"inherit",cursor:"pointer"},onClick:()=>{o(p.uid)},children:[O(ls,{}),p.uid in t&&t[p.uid]>0&&mn("span",{style:{paddingRight:"8px"},children:["(",t[p.uid],")"]}),O("span",{style:{fontWeight:(t[p.uid]??0)>0?"bold":"300"},children:p.name}),O("a",{style:{color:"rgba(0, 100, 200, 1)",marginLeft:"8px",fontSize:"10px"},href:"#",onClick:()=>{},children:"Delete"})]},p.uid)),O(ls,{}),O("input",{ref:s,style:{background:"#343746",border:"none",padding:"8px",borderRadius:"8px",outline:"none",color:"white",fontSize:"16px",width:"90px"}}),O("button",{onClick:c,style:{marginLeft:"8px",background:"#bd93f9",border:"none",color:"white",padding:"8px",fontSize:"16px",cursor:"pointer",borderRadius:"8px"},children:"ADD"}),O(ep,{})]})}var _r,tp=new Uint8Array(16);function rp(){if(!_r&&(_r=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!_r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _r(tp)}const lp=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function op(e){return typeof e=="string"&&lp.test(e)}var b=[];for(var oo=0;oo<256;++oo)b.push((oo+256).toString(16).substr(1));function ip(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(b[e[n+0]]+b[e[n+1]]+b[e[n+2]]+b[e[n+3]]+"-"+b[e[n+4]]+b[e[n+5]]+"-"+b[e[n+6]]+b[e[n+7]]+"-"+b[e[n+8]]+b[e[n+9]]+"-"+b[e[n+10]]+b[e[n+11]]+b[e[n+12]]+b[e[n+13]]+b[e[n+14]]+b[e[n+15]]).toLowerCase();if(!op(t))throw TypeError("Stringified UUID is invalid");return t}function up(e,n,t){e=e||{};var r=e.random||(e.rng||rp)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,n){t=t||0;for(var l=0;l<16;++l)n[t+l]=r[l];return n}return ip(r)}function Nr(e){const n=new Date(e);if(!Number.isNaN(n.valueOf()))return n;const t=String(e).match(/\d+/g);if(t==null||t.length<=2)return n;{const[r,l,...o]=t.
|
||
|
|
//# sourceMappingURL=index.4a8e5fa1.js.map
|