@dao42/d42paas-front 0.7.23 → 0.7.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DaoPaaS.es.js +4 -3
- package/dist/DaoPaaS.umd.js +2 -2
- package/dist/editor.d.ts +1 -1
- package/package.json +1 -1
package/dist/DaoPaaS.es.js
CHANGED
|
@@ -9053,7 +9053,7 @@ class sockerIO {
|
|
|
9053
9053
|
return lookup((obj.debug ? "" : SOCKET_INSTANCE) || obj.ioPath, {
|
|
9054
9054
|
transports: ["websocket"],
|
|
9055
9055
|
auth: __spreadProps(__spreadValues({}, obj), {
|
|
9056
|
-
paasDomain: obj.
|
|
9056
|
+
paasDomain: obj.paasDomain ? obj.paasDomain : "develop.1024paas.com",
|
|
9057
9057
|
uuid: obj.userId
|
|
9058
9058
|
})
|
|
9059
9059
|
});
|
|
@@ -44643,10 +44643,11 @@ class DaoPaaS {
|
|
|
44643
44643
|
playgroundId: this.playgroundId,
|
|
44644
44644
|
userId: this.userId,
|
|
44645
44645
|
username: this.username,
|
|
44646
|
-
tenantId: this.tenantId
|
|
44646
|
+
tenantId: this.tenantId,
|
|
44647
|
+
paasDomain: this.paasDomain ? this.paasDomain : "develop.1024paas.com"
|
|
44647
44648
|
};
|
|
44648
44649
|
try {
|
|
44649
|
-
const response = await fetch(`https://${
|
|
44650
|
+
const response = await fetch(`https://${args.paasDomain}/jssdk/ticket`, {
|
|
44650
44651
|
method: "POST",
|
|
44651
44652
|
headers: {
|
|
44652
44653
|
"Content-Type": "application/json"
|
package/dist/DaoPaaS.umd.js
CHANGED
|
@@ -31,7 +31,7 @@ object-assign
|
|
|
31
31
|
Error generating stack: `+o.message+`
|
|
32
32
|
`+o.stack}return{value:n,source:e,stack:r}}function W6(n,e){try{console.error(e.value)}catch(t){setTimeout(function(){throw t})}}var kNe=typeof WeakMap=="function"?WeakMap:Map;function qte(n,e,t){t=Hp(-1,t),t.tag=3,t.payload={element:null};var i=e.value;return t.callback=function(){VR||(VR=!0,Z6=i),W6(n,e)},t}function Kte(n,e,t){t=Hp(-1,t),t.tag=3;var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var r=e.value;t.payload=function(){return W6(n,e),i(r)}}var o=n.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){typeof i!="function"&&(uh===null?uh=new Set([this]):uh.add(this),W6(n,e));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),t}var ENe=typeof WeakSet=="function"?WeakSet:Set;function Gte(n){var e=n.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(t){Gp(n,t)}else e.current=null}function LNe(n,e){switch(e.tag){case 0:case 11:case 15:case 22:return;case 1:if(e.flags&256&&n!==null){var t=n.memoizedProps,i=n.memoizedState;n=e.stateNode,e=n.getSnapshotBeforeUpdate(e.elementType===e.type?t:nd(e.type,t),i),n.__reactInternalSnapshotBeforeUpdate=e}return;case 3:e.flags&256&&u6(e.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(xt(163))}function TNe(n,e,t){switch(t.tag){case 0:case 11:case 15:case 22:if(e=t.updateQueue,e=e!==null?e.lastEffect:null,e!==null){n=e=e.next;do{if((n.tag&3)==3){var i=n.create;n.destroy=i()}n=n.next}while(n!==e)}if(e=t.updateQueue,e=e!==null?e.lastEffect:null,e!==null){n=e=e.next;do{var r=n;i=r.next,r=r.tag,(r&4)!=0&&(r&1)!=0&&(cne(t,n),MNe(t,n)),n=i}while(n!==e)}return;case 1:n=t.stateNode,t.flags&4&&(e===null?n.componentDidMount():(i=t.elementType===t.type?e.memoizedProps:nd(t.type,e.memoizedProps),n.componentDidUpdate(i,e.memoizedState,n.__reactInternalSnapshotBeforeUpdate))),e=t.updateQueue,e!==null&&ute(t,e,n);return;case 3:if(e=t.updateQueue,e!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ute(t,e,n)}return;case 5:n=t.stateNode,e===null&&t.flags&4&&jee(t.type,t.memoizedProps)&&n.focus();return;case 6:return;case 4:return;case 12:return;case 13:t.memoizedState===null&&(t=t.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&see(t))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(xt(163))}function Yte(n,e){for(var t=n;;){if(t.tag===5){var i=t.stateNode;if(e)i=i.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{i=t.stateNode;var r=t.memoizedProps.style;r=r!=null&&r.hasOwnProperty("display")?r.display:null,i.style.display=zJ("display",r)}}else if(t.tag===6)t.stateNode.nodeValue=e?"":t.memoizedProps;else if((t.tag!==23&&t.tag!==24||t.memoizedState===null||t===n)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break;for(;t.sibling===null;){if(t.return===null||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}}function Zte(n,e){if(rv&&typeof rv.onCommitFiberUnmount=="function")try{rv.onCommitFiberUnmount(f6,e)}catch{}switch(e.tag){case 0:case 11:case 14:case 15:case 22:if(n=e.updateQueue,n!==null&&(n=n.lastEffect,n!==null)){var t=n=n.next;do{var i=t,r=i.destroy;if(i=i.tag,r!==void 0)if((i&4)!=0)cne(e,t);else{i=e;try{r()}catch(o){Gp(i,o)}}t=t.next}while(t!==n)}break;case 1:if(Gte(e),n=e.stateNode,typeof n.componentWillUnmount=="function")try{n.props=e.memoizedProps,n.state=e.memoizedState,n.componentWillUnmount()}catch(o){Gp(e,o)}break;case 5:Gte(e);break;case 4:ene(n,e)}}function Xte(n){n.alternate=null,n.child=null,n.dependencies=null,n.firstEffect=null,n.lastEffect=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.return=null,n.updateQueue=null}function Qte(n){return n.tag===5||n.tag===3||n.tag===4}function Jte(n){e:{for(var e=n.return;e!==null;){if(Qte(e))break e;e=e.return}throw Error(xt(160))}var t=e;switch(e=t.stateNode,t.tag){case 5:var i=!1;break;case 3:e=e.containerInfo,i=!0;break;case 4:e=e.containerInfo,i=!0;break;default:throw Error(xt(161))}t.flags&16&&(bx(e,""),t.flags&=-17);e:t:for(t=n;;){for(;t.sibling===null;){if(t.return===null||Qte(t.return)){t=null;break e}t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2)){t=t.stateNode;break e}}i?H6(n,t,e):V6(n,t,e)}function H6(n,e,t){var i=n.tag,r=i===5||i===6;if(r)n=r?n.stateNode:n.stateNode.instance,e?t.nodeType===8?t.parentNode.insertBefore(n,e):t.insertBefore(n,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(n,t)):(e=t,e.appendChild(n)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=mR));else if(i!==4&&(n=n.child,n!==null))for(H6(n,e,t),n=n.sibling;n!==null;)H6(n,e,t),n=n.sibling}function V6(n,e,t){var i=n.tag,r=i===5||i===6;if(r)n=r?n.stateNode:n.stateNode.instance,e?t.insertBefore(n,e):t.appendChild(n);else if(i!==4&&(n=n.child,n!==null))for(V6(n,e,t),n=n.sibling;n!==null;)V6(n,e,t),n=n.sibling}function ene(n,e){for(var t=e,i=!1,r,o;;){if(!i){i=t.return;e:for(;;){if(i===null)throw Error(xt(160));switch(r=i.stateNode,i.tag){case 5:o=!1;break e;case 3:r=r.containerInfo,o=!0;break e;case 4:r=r.containerInfo,o=!0;break e}i=i.return}i=!0}if(t.tag===5||t.tag===6){e:for(var s=n,a=t,l=a;;)if(Zte(s,l),l.child!==null&&l.tag!==4)l.child.return=l,l=l.child;else{if(l===a)break e;for(;l.sibling===null;){if(l.return===null||l.return===a)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(s=r,a=t.stateNode,s.nodeType===8?s.parentNode.removeChild(a):s.removeChild(a)):r.removeChild(t.stateNode)}else if(t.tag===4){if(t.child!==null){r=t.stateNode.containerInfo,o=!0,t.child.return=t,t=t.child;continue}}else if(Zte(n,t),t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return;t=t.return,t.tag===4&&(i=!1)}t.sibling.return=t.return,t=t.sibling}}function z6(n,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:var t=e.updateQueue;if(t=t!==null?t.lastEffect:null,t!==null){var i=t=t.next;do(i.tag&3)==3&&(n=i.destroy,i.destroy=void 0,n!==void 0&&n()),i=i.next;while(i!==t)}return;case 1:return;case 5:if(t=e.stateNode,t!=null){i=e.memoizedProps;var r=n!==null?n.memoizedProps:i;n=e.type;var o=e.updateQueue;if(e.updateQueue=null,o!==null){for(t[vR]=i,n==="input"&&i.type==="radio"&&i.name!=null&&MJ(t,i),I8(n,r),e=I8(n,i),r=0;r<o.length;r+=2){var s=o[r],a=o[r+1];s==="style"?UJ(t,a):s==="dangerouslySetInnerHTML"?VJ(t,a):s==="children"?bx(t,a):d8(t,s,a,e)}switch(n){case"input":S8(t,i);break;case"textarea":$J(t,i);break;case"select":n=t._wrapperState.wasMultiple,t._wrapperState.wasMultiple=!!i.multiple,o=i.value,o!=null?S1(t,!!i.multiple,o,!1):n!==!!i.multiple&&(i.defaultValue!=null?S1(t,!!i.multiple,i.defaultValue,!0):S1(t,!!i.multiple,i.multiple?[]:"",!1))}}}return;case 6:if(e.stateNode===null)throw Error(xt(162));e.stateNode.nodeValue=e.memoizedProps;return;case 3:t=e.stateNode,t.hydrate&&(t.hydrate=!1,see(t.containerInfo));return;case 12:return;case 13:e.memoizedState!==null&&(G6=va(),Yte(e.child,!0)),tne(e);return;case 19:tne(e);return;case 17:return;case 23:case 24:Yte(e,e.memoizedState!==null);return}throw Error(xt(163))}function tne(n){var e=n.updateQueue;if(e!==null){n.updateQueue=null;var t=n.stateNode;t===null&&(t=n.stateNode=new ENe),e.forEach(function(i){var r=$Ne.bind(null,n,i);t.has(i)||(t.add(i),i.then(r,r))})}}function DNe(n,e){return n!==null&&(n=n.memoizedState,n===null||n.dehydrated!==null)?(e=e.memoizedState,e!==null&&e.dehydrated===null):!1}var INe=Math.ceil,WR=Q_.ReactCurrentDispatcher,U6=Q_.ReactCurrentOwner,wn=0,Ka=null,ds=null,ya=0,cv=0,j6=Bp(0),Ys=0,HR=null,z1=0,Jx=0,U1=0,q6=0,K6=null,G6=0,Y6=1/0;function j1(){Y6=va()+500}var jt=null,VR=!1,Z6=null,uh=null,Up=!1,ek=null,tk=90,X6=[],Q6=[],Zf=null,nk=0,J6=null,zR=-1,Xf=0,UR=0,ik=null,jR=!1;function pc(){return(wn&48)!=0?va():zR!==-1?zR:zR=va()}function jp(n){if(n=n.mode,(n&2)==0)return 1;if((n&4)==0)return B1()===99?1:2;if(Xf===0&&(Xf=z1),_Ne.transition!==0){UR!==0&&(UR=K6!==null?K6.pendingLanes:0),n=Xf;var e=4186112&~UR;return e&=-e,e===0&&(n=4186112&~n,e=n&-n,e===0&&(e=8192)),e}return n=B1(),(wn&4)!=0&&n===98?n=aR(12,Xf):(n=y2e(n),n=aR(n,Xf)),n}function qp(n,e,t){if(50<nk)throw nk=0,J6=null,Error(xt(185));if(n=qR(n,e),n===null)return null;lR(n,e,t),n===Ka&&(U1|=e,Ys===4&&q1(n,ya));var i=B1();e===1?(wn&8)!=0&&(wn&48)==0?eB(n):(uu(n,t),wn===0&&(j1(),sh())):((wn&4)==0||i!==98&&i!==99||(Zf===null?Zf=new Set([n]):Zf.add(n)),uu(n,t)),K6=n}function qR(n,e){n.lanes|=e;var t=n.alternate;for(t!==null&&(t.lanes|=e),t=n,n=n.return;n!==null;)n.childLanes|=e,t=n.alternate,t!==null&&(t.childLanes|=e),t=n,n=n.return;return t.tag===3?t.stateNode:null}function uu(n,e){for(var t=n.callbackNode,i=n.suspendedLanes,r=n.pingedLanes,o=n.expirationTimes,s=n.pendingLanes;0<s;){var a=31-Pp(s),l=1<<a,c=o[a];if(c===-1){if((l&i)==0||(l&r)!=0){c=e,L1(l);var u=gr;o[a]=10<=u?c+250:6<=u?c+5e3:-1}}else c<=e&&(n.expiredLanes|=l);s&=~l}if(i=Dx(n,n===Ka?ya:0),e=gr,i===0)t!==null&&(t!==_6&&p6(t),n.callbackNode=null,n.callbackPriority=0);else{if(t!==null){if(n.callbackPriority===e)return;t!==_6&&p6(t)}e===15?(t=eB.bind(null,n),Kf===null?(Kf=[t],SR=g6(wR,ste)):Kf.push(t),t=_6):e===14?t=Wx(99,eB.bind(null,n)):(t=C2e(e),t=Wx(t,nne.bind(null,n))),n.callbackPriority=e,n.callbackNode=t}}function nne(n){if(zR=-1,UR=Xf=0,(wn&48)!=0)throw Error(xt(327));var e=n.callbackNode;if(Kp()&&n.callbackNode!==e)return null;var t=Dx(n,n===Ka?ya:0);if(t===0)return null;var i=t,r=wn;wn|=16;var o=sne();(Ka!==n||ya!==i)&&(j1(),K1(n,i));do try{ANe();break}catch(a){one(n,a)}while(1);if(b6(),WR.current=o,wn=r,ds!==null?i=0:(Ka=null,ya=0,i=Ys),(z1&U1)!=0)K1(n,0);else if(i!==0){if(i===2&&(wn|=64,n.hydrate&&(n.hydrate=!1,u6(n.containerInfo)),t=fee(n),t!==0&&(i=rk(n,t))),i===1)throw e=HR,K1(n,0),q1(n,t),uu(n,va()),e;switch(n.finishedWork=n.current.alternate,n.finishedLanes=t,i){case 0:case 1:throw Error(xt(345));case 2:uv(n);break;case 3:if(q1(n,t),(t&62914560)===t&&(i=G6+500-va(),10<i)){if(Dx(n,0)!==0)break;if(r=n.suspendedLanes,(r&t)!==t){pc(),n.pingedLanes|=n.suspendedLanes&r;break}n.timeoutHandle=qee(uv.bind(null,n),i);break}uv(n);break;case 4:if(q1(n,t),(t&4186112)===t)break;for(i=n.eventTimes,r=-1;0<t;){var s=31-Pp(t);o=1<<s,s=i[s],s>r&&(r=s),t&=~o}if(t=r,t=va()-t,t=(120>t?120:480>t?480:1080>t?1080:1920>t?1920:3e3>t?3e3:4320>t?4320:1960*INe(t/1960))-t,10<t){n.timeoutHandle=qee(uv.bind(null,n),t);break}uv(n);break;case 5:uv(n);break;default:throw Error(xt(329))}}return uu(n,va()),n.callbackNode===e?nne.bind(null,n):null}function q1(n,e){for(e&=~q6,e&=~U1,n.suspendedLanes|=e,n.pingedLanes&=~e,n=n.expirationTimes;0<e;){var t=31-Pp(e),i=1<<t;n[t]=-1,e&=~i}}function eB(n){if((wn&48)!=0)throw Error(xt(327));if(Kp(),n===Ka&&(n.expiredLanes&ya)!=0){var e=ya,t=rk(n,e);(z1&U1)!=0&&(e=Dx(n,e),t=rk(n,e))}else e=Dx(n,0),t=rk(n,e);if(n.tag!==0&&t===2&&(wn|=64,n.hydrate&&(n.hydrate=!1,u6(n.containerInfo)),e=fee(n),e!==0&&(t=rk(n,e))),t===1)throw t=HR,K1(n,0),q1(n,e),uu(n,va()),t;return n.finishedWork=n.current.alternate,n.finishedLanes=e,uv(n),uu(n,va()),null}function RNe(){if(Zf!==null){var n=Zf;Zf=null,n.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,uu(e,va())})}sh()}function ine(n,e){var t=wn;wn|=1;try{return n(e)}finally{wn=t,wn===0&&(j1(),sh())}}function rne(n,e){var t=wn;wn&=-2,wn|=8;try{return n(e)}finally{wn=t,wn===0&&(j1(),sh())}}function KR(n,e){ro(j6,cv),cv|=e,z1|=e}function tB(){cv=j6.current,Er(j6)}function K1(n,e){n.finishedWork=null,n.finishedLanes=0;var t=n.timeoutHandle;if(t!==-1&&(n.timeoutHandle=-1,dNe(t)),ds!==null)for(t=ds.return;t!==null;){var i=t;switch(i.tag){case 1:i=i.type.childContextTypes,i!=null&&yR();break;case 3:H1(),Er(Dl),Er(_a),L6();break;case 5:x6(i);break;case 4:H1();break;case 13:Er(oo);break;case 19:Er(oo);break;case 10:y6(i);break;case 23:case 24:tB()}t=t.return}Ka=n,ds=Yp(n.current,null),ya=cv=z1=e,Ys=0,HR=null,q6=U1=Jx=0}function one(n,e){do{var t=ds;try{if(b6(),qx.current=BR,OR){for(var i=Eo.memoizedState;i!==null;){var r=i.queue;r!==null&&(r.pending=null),i=i.next}OR=!1}if(Kx=0,Gs=ba=Eo=null,Gx=!1,U6.current=null,t===null||t.return===null){Ys=1,HR=e,ds=null;break}e:{var o=n,s=t.return,a=t,l=e;if(e=ya,a.flags|=2048,a.firstEffect=a.lastEffect=null,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l;if((a.mode&2)==0){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.lanes=u.lanes):(a.updateQueue=null,a.memoizedState=null)}var d=(oo.current&1)!=0,h=s;do{var f;if(f=h.tag===13){var g=h.memoizedState;if(g!==null)f=g.dehydrated!==null;else{var p=h.memoizedProps;f=p.fallback===void 0?!1:p.unstable_avoidThisFallback!==!0?!0:!d}}if(f){var m=h.updateQueue;if(m===null){var _=new Set;_.add(c),h.updateQueue=_}else m.add(c);if((h.mode&2)==0){if(h.flags|=64,a.flags|=16384,a.flags&=-2981,a.tag===1)if(a.alternate===null)a.tag=17;else{var v=Hp(-1,1);v.tag=2,Vp(a,v)}a.lanes|=1;break e}l=void 0,a=e;var y=o.pingCache;if(y===null?(y=o.pingCache=new kNe,l=new Set,y.set(c,l)):(l=y.get(c),l===void 0&&(l=new Set,y.set(c,l))),!l.has(a)){l.add(a);var b=BNe.bind(null,o,c,a);c.then(b,b)}h.flags|=4096,h.lanes=e;break e}h=h.return}while(h!==null);l=Error((w1(a.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
33
33
|
|
|
34
|
-
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Ys!==5&&(Ys=2),l=$6(l,a),h=s;do{switch(h.tag){case 3:o=l,h.flags|=4096,e&=-e,h.lanes|=e;var w=qte(h,o,e);cte(h,w);break e;case 1:o=l;var S=h.type,x=h.stateNode;if((h.flags&64)==0&&(typeof S.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(uh===null||!uh.has(x)))){h.flags|=4096,e&=-e,h.lanes|=e;var E=Kte(h,o,e);cte(h,E);break e}}h=h.return}while(h!==null)}lne(t)}catch(T){e=T,ds===t&&t!==null&&(ds=t=t.return);continue}break}while(1)}function sne(){var n=WR.current;return WR.current=BR,n===null?BR:n}function rk(n,e){var t=wn;wn|=16;var i=sne();Ka===n&&ya===e||K1(n,e);do try{NNe();break}catch(r){one(n,r)}while(1);if(b6(),wn=t,WR.current=i,ds!==null)throw Error(xt(261));return Ka=null,ya=0,Ys}function NNe(){for(;ds!==null;)ane(ds)}function ANe(){for(;ds!==null&&!gNe();)ane(ds)}function ane(n){var e=dne(n.alternate,n,cv);n.memoizedProps=n.pendingProps,e===null?lne(n):ds=e,U6.current=null}function lne(n){var e=n;do{var t=e.alternate;if(n=e.return,(e.flags&2048)==0){if(t=SNe(t,e,cv),t!==null){ds=t;return}if(t=e,t.tag!==24&&t.tag!==23||t.memoizedState===null||(cv&1073741824)!=0||(t.mode&4)==0){for(var i=0,r=t.child;r!==null;)i|=r.lanes|r.childLanes,r=r.sibling;t.childLanes=i}n!==null&&(n.flags&2048)==0&&(n.firstEffect===null&&(n.firstEffect=e.firstEffect),e.lastEffect!==null&&(n.lastEffect!==null&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.flags&&(n.lastEffect!==null?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(t=xNe(e),t!==null){t.flags&=2047,ds=t;return}n!==null&&(n.firstEffect=n.lastEffect=null,n.flags|=2048)}if(e=e.sibling,e!==null){ds=e;return}ds=e=n}while(e!==null);Ys===0&&(Ys=5)}function uv(n){var e=B1();return ov(99,ONe.bind(null,n,e)),null}function ONe(n,e){do Kp();while(ek!==null);if((wn&48)!=0)throw Error(xt(327));var t=n.finishedWork;if(t===null)return null;if(n.finishedWork=null,n.finishedLanes=0,t===n.current)throw Error(xt(177));n.callbackNode=null;var i=t.lanes|t.childLanes,r=i,o=n.pendingLanes&~r;n.pendingLanes=r,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=r,n.mutableReadLanes&=r,n.entangledLanes&=r,r=n.entanglements;for(var s=n.eventTimes,a=n.expirationTimes;0<o;){var l=31-Pp(o),c=1<<l;r[l]=0,s[l]=-1,a[l]=-1,o&=~c}if(Zf!==null&&(i&24)==0&&Zf.has(n)&&Zf.delete(n),n===Ka&&(ds=Ka=null,ya=0),1<t.flags?t.lastEffect!==null?(t.lastEffect.nextEffect=t,i=t.firstEffect):i=t:i=t.firstEffect,i!==null){if(r=wn,wn|=32,U6.current=null,a6=cR,s=Aee(),i6(s)){if("selectionStart"in s)a={start:s.selectionStart,end:s.selectionEnd};else e:if(a=(a=s.ownerDocument)&&a.defaultView||window,(c=a.getSelection&&a.getSelection())&&c.rangeCount!==0){a=c.anchorNode,o=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{a.nodeType,l.nodeType}catch{a=null;break e}var u=0,d=-1,h=-1,f=0,g=0,p=s,m=null;t:for(;;){for(var _;p!==a||o!==0&&p.nodeType!==3||(d=u+o),p!==l||c!==0&&p.nodeType!==3||(h=u+c),p.nodeType===3&&(u+=p.nodeValue.length),(_=p.firstChild)!==null;)m=p,p=_;for(;;){if(p===s)break t;if(m===a&&++f===o&&(d=u),m===l&&++g===c&&(h=u),(_=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=_}a=d===-1||h===-1?null:{start:d,end:h}}else a=null;a=a||{start:0,end:0}}else a=null;l6={focusedElem:s,selectionRange:a},cR=!1,ik=null,jR=!1,jt=i;do try{PNe()}catch(T){if(jt===null)throw Error(xt(330));Gp(jt,T),jt=jt.nextEffect}while(jt!==null);ik=null,jt=i;do try{for(s=n;jt!==null;){var v=jt.flags;if(v&16&&bx(jt.stateNode,""),v&128){var y=jt.alternate;if(y!==null){var b=y.ref;b!==null&&(typeof b=="function"?b(null):b.current=null)}}switch(v&1038){case 2:Jte(jt),jt.flags&=-3;break;case 6:Jte(jt),jt.flags&=-3,z6(jt.alternate,jt);break;case 1024:jt.flags&=-1025;break;case 1028:jt.flags&=-1025,z6(jt.alternate,jt);break;case 4:z6(jt.alternate,jt);break;case 8:a=jt,ene(s,a);var w=a.alternate;Xte(a),w!==null&&Xte(w)}jt=jt.nextEffect}}catch(T){if(jt===null)throw Error(xt(330));Gp(jt,T),jt=jt.nextEffect}while(jt!==null);if(b=l6,y=Aee(),v=b.focusedElem,s=b.selectionRange,y!==v&&v&&v.ownerDocument&&Nee(v.ownerDocument.documentElement,v)){for(s!==null&&i6(v)&&(y=s.start,b=s.end,b===void 0&&(b=y),"selectionStart"in v?(v.selectionStart=y,v.selectionEnd=Math.min(b,v.value.length)):(b=(y=v.ownerDocument||document)&&y.defaultView||window,b.getSelection&&(b=b.getSelection(),a=v.textContent.length,w=Math.min(s.start,a),s=s.end===void 0?w:Math.min(s.end,a),!b.extend&&w>s&&(a=s,s=w,w=a),a=Ree(v,w),o=Ree(v,s),a&&o&&(b.rangeCount!==1||b.anchorNode!==a.node||b.anchorOffset!==a.offset||b.focusNode!==o.node||b.focusOffset!==o.offset)&&(y=y.createRange(),y.setStart(a.node,a.offset),b.removeAllRanges(),w>s?(b.addRange(y),b.extend(o.node,o.offset)):(y.setEnd(o.node,o.offset),b.addRange(y)))))),y=[],b=v;b=b.parentNode;)b.nodeType===1&&y.push({element:b,left:b.scrollLeft,top:b.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<y.length;v++)b=y[v],b.element.scrollLeft=b.left,b.element.scrollTop=b.top}cR=!!a6,l6=a6=null,n.current=t,jt=i;do try{for(v=n;jt!==null;){var S=jt.flags;if(S&36&&TNe(v,jt.alternate,jt),S&128){y=void 0;var x=jt.ref;if(x!==null){var E=jt.stateNode;switch(jt.tag){case 5:y=E;break;default:y=E}typeof x=="function"?x(y):x.current=y}}jt=jt.nextEffect}}catch(T){if(jt===null)throw Error(xt(330));Gp(jt,T),jt=jt.nextEffect}while(jt!==null);jt=null,mNe(),wn=r}else n.current=t;if(Up)Up=!1,ek=n,tk=e;else for(jt=i;jt!==null;)e=jt.nextEffect,jt.nextEffect=null,jt.flags&8&&(S=jt,S.sibling=null,S.stateNode=null),jt=e;if(i=n.pendingLanes,i===0&&(uh=null),i===1?n===J6?nk++:(nk=0,J6=n):nk=0,t=t.stateNode,rv&&typeof rv.onCommitFiberRoot=="function")try{rv.onCommitFiberRoot(f6,t,void 0,(t.current.flags&64)==64)}catch{}if(uu(n,va()),VR)throw VR=!1,n=Z6,Z6=null,n;return(wn&8)!=0||sh(),null}function PNe(){for(;jt!==null;){var n=jt.alternate;jR||ik===null||((jt.flags&8)!=0?JJ(jt,ik)&&(jR=!0):jt.tag===13&&DNe(n,jt)&&JJ(jt,ik)&&(jR=!0));var e=jt.flags;(e&256)!=0&&LNe(n,jt),(e&512)==0||Up||(Up=!0,Wx(97,function(){return Kp(),null})),jt=jt.nextEffect}}function Kp(){if(tk!==90){var n=97<tk?97:tk;return tk=90,ov(n,FNe)}return!1}function MNe(n,e){X6.push(e,n),Up||(Up=!0,Wx(97,function(){return Kp(),null}))}function cne(n,e){Q6.push(e,n),Up||(Up=!0,Wx(97,function(){return Kp(),null}))}function FNe(){if(ek===null)return!1;var n=ek;if(ek=null,(wn&48)!=0)throw Error(xt(331));var e=wn;wn|=32;var t=Q6;Q6=[];for(var i=0;i<t.length;i+=2){var r=t[i],o=t[i+1],s=r.destroy;if(r.destroy=void 0,typeof s=="function")try{s()}catch(l){if(o===null)throw Error(xt(330));Gp(o,l)}}for(t=X6,X6=[],i=0;i<t.length;i+=2){r=t[i],o=t[i+1];try{var a=r.create;r.destroy=a()}catch(l){if(o===null)throw Error(xt(330));Gp(o,l)}}for(a=n.current.firstEffect;a!==null;)n=a.nextEffect,a.nextEffect=null,a.flags&8&&(a.sibling=null,a.stateNode=null),a=n;return wn=e,sh(),!0}function une(n,e,t){e=$6(t,e),e=qte(n,e,1),Vp(n,e),e=pc(),n=qR(n,1),n!==null&&(lR(n,1,e),uu(n,e))}function Gp(n,e){if(n.tag===3)une(n,n,e);else for(var t=n.return;t!==null;){if(t.tag===3){une(t,n,e);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(uh===null||!uh.has(i))){n=$6(e,n);var r=Kte(t,n,1);if(Vp(t,r),r=pc(),t=qR(t,1),t!==null)lR(t,1,r),uu(t,r);else if(typeof i.componentDidCatch=="function"&&(uh===null||!uh.has(i)))try{i.componentDidCatch(e,n)}catch{}break}}t=t.return}}function BNe(n,e,t){var i=n.pingCache;i!==null&&i.delete(e),e=pc(),n.pingedLanes|=n.suspendedLanes&t,Ka===n&&(ya&t)===t&&(Ys===4||Ys===3&&(ya&62914560)===ya&&500>va()-G6?K1(n,0):q6|=t),uu(n,e)}function $Ne(n,e){var t=n.stateNode;t!==null&&t.delete(e),e=0,e===0&&(e=n.mode,(e&2)==0?e=1:(e&4)==0?e=B1()===99?1:2:(Xf===0&&(Xf=z1),e=T1(62914560&~Xf),e===0&&(e=4194304))),t=pc(),n=qR(n,e),n!==null&&(lR(n,e,t),uu(n,t))}var dne;dne=function(n,e,t){var i=e.lanes;if(n!==null)if(n.memoizedProps!==e.pendingProps||Dl.current)id=!0;else if((t&i)!=0)id=(n.flags&16384)!=0;else{switch(id=!1,e.tag){case 3:Mte(e),E6();break;case 5:_te(e);break;case 1:Il(e.type)&&CR(e);break;case 4:S6(e,e.stateNode.containerInfo);break;case 10:i=e.memoizedProps.value;var r=e.type._context;ro(xR,r._currentValue),r._currentValue=i;break;case 13:if(e.memoizedState!==null)return(t&e.child.childLanes)!=0?Fte(n,e,t):(ro(oo,oo.current&1),e=Yf(n,e,t),e!==null?e.sibling:null);ro(oo,oo.current&1);break;case 19:if(i=(t&e.childLanes)!=0,(n.flags&64)!=0){if(i)return Vte(n,e,t);e.flags|=64}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),ro(oo,oo.current),i)break;return null;case 23:case 24:return e.lanes=0,O6(n,e,t)}return Yf(n,e,t)}else id=!1;switch(e.lanes=0,e.tag){case 2:if(i=e.type,n!==null&&(n.alternate=null,e.alternate=null,e.flags|=2),n=e.pendingProps,r=F1(e,_a.current),W1(e,t),r=D6(null,e,i,n,r,t),e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,Il(i)){var o=!0;CR(e)}else o=!1;e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,C6(e);var s=i.getDerivedStateFromProps;typeof s=="function"&&LR(e,i,s,n),r.updater=TR,e.stateNode=r,r._reactInternals=e,w6(e,i,n,t),e=M6(null,e,i,!0,o,t)}else e.tag=0,Nl(null,e,r,t),e=e.child;return e;case 16:r=e.elementType;e:{switch(n!==null&&(n.alternate=null,e.alternate=null,e.flags|=2),n=e.pendingProps,o=r._init,r=o(r._payload),e.type=r,o=e.tag=HNe(r),n=nd(r,n),o){case 0:e=P6(null,e,r,n,t);break e;case 1:e=Pte(null,e,r,n,t);break e;case 11:e=Rte(null,e,r,n,t);break e;case 14:e=Nte(null,e,r,nd(r.type,n),i,t);break e}throw Error(xt(306,r,""))}return e;case 0:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:nd(i,r),P6(n,e,i,r,t);case 1:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:nd(i,r),Pte(n,e,i,r,t);case 3:if(Mte(e),i=e.updateQueue,n===null||i===null)throw Error(xt(282));if(i=e.pendingProps,r=e.memoizedState,r=r!==null?r.element:null,lte(n,e),Hx(e,i,null,t),i=e.memoizedState.element,i===r)E6(),e=Yf(n,e,t);else{if(r=e.stateNode,(o=r.hydrate)&&(zp=A1(e.stateNode.containerInfo.firstChild),Gf=e,o=lh=!0),o){if(n=r.mutableSourceEagerHydrationData,n!=null)for(r=0;r<n.length;r+=2)o=n[r],o._workInProgressVersionPrimary=n[r+1],V1.push(o);for(t=mte(e,null,i,t),e.child=t;t;)t.flags=t.flags&-3|1024,t=t.sibling}else Nl(n,e,i,t),E6();e=e.child}return e;case 5:return _te(e),n===null&&k6(e),i=e.type,r=e.pendingProps,o=n!==null?n.memoizedProps:null,s=r.children,c6(i,r)?s=null:o!==null&&c6(i,o)&&(e.flags|=16),Ote(n,e),Nl(n,e,s,t),e.child;case 6:return n===null&&k6(e),null;case 13:return Fte(n,e,t);case 4:return S6(e,e.stateNode.containerInfo),i=e.pendingProps,n===null?e.child=RR(e,null,i,t):Nl(n,e,i,t),e.child;case 11:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:nd(i,r),Rte(n,e,i,r,t);case 7:return Nl(n,e,e.pendingProps,t),e.child;case 8:return Nl(n,e,e.pendingProps.children,t),e.child;case 12:return Nl(n,e,e.pendingProps.children,t),e.child;case 10:e:{i=e.type._context,r=e.pendingProps,s=e.memoizedProps,o=r.value;var a=e.type._context;if(ro(xR,a._currentValue),a._currentValue=o,s!==null)if(a=s.value,o=au(a,o)?0:(typeof i._calculateChangedBits=="function"?i._calculateChangedBits(a,o):1073741823)|0,o===0){if(s.children===r.children&&!Dl.current){e=Yf(n,e,t);break e}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var l=a.dependencies;if(l!==null){s=a.child;for(var c=l.firstContext;c!==null;){if(c.context===i&&(c.observedBits&o)!=0){a.tag===1&&(c=Hp(-1,t&-t),c.tag=2,Vp(a,c)),a.lanes|=t,c=a.alternate,c!==null&&(c.lanes|=t),ate(a.return,t),l.lanes|=t;break}c=c.next}}else s=a.tag===10&&a.type===e.type?null:a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}Nl(n,e,r.children,t),e=e.child}return e;case 9:return r=e.type,o=e.pendingProps,i=o.children,W1(e,t),r=lu(r,o.unstable_observedBits),i=i(r),e.flags|=1,Nl(n,e,i,t),e.child;case 14:return r=e.type,o=nd(r,e.pendingProps),o=nd(r.type,o),Nte(n,e,r,o,i,t);case 15:return Ate(n,e,e.type,e.pendingProps,i,t);case 17:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:nd(i,r),n!==null&&(n.alternate=null,e.alternate=null,e.flags|=2),e.tag=1,Il(i)?(n=!0,CR(e)):n=!1,W1(e,t),fte(e,i,r),w6(e,i,r,t),M6(null,e,i,!0,n,t);case 19:return Vte(n,e,t);case 23:return O6(n,e,t);case 24:return O6(n,e,t)}throw Error(xt(156,e.tag))};function WNe(n,e,t,i){this.tag=n,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function du(n,e,t,i){return new WNe(n,e,t,i)}function nB(n){return n=n.prototype,!(!n||!n.isReactComponent)}function HNe(n){if(typeof n=="function")return nB(n)?1:0;if(n!=null){if(n=n.$$typeof,n===YI)return 11;if(n===XI)return 14}return 2}function Yp(n,e){var t=n.alternate;return t===null?(t=du(n.tag,e,n.key,n.mode),t.elementType=n.elementType,t.type=n.type,t.stateNode=n.stateNode,t.alternate=n,n.alternate=t):(t.pendingProps=e,t.type=n.type,t.flags=0,t.nextEffect=null,t.firstEffect=null,t.lastEffect=null),t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=n.sibling,t.index=n.index,t.ref=n.ref,t}function GR(n,e,t,i,r,o){var s=2;if(i=n,typeof n=="function")nB(n)&&(s=1);else if(typeof n=="string")s=5;else e:switch(n){case Ip:return G1(t.children,r,o,e);case RJ:s=8,r|=16;break;case h8:s=8,r|=1;break;case px:return n=du(12,t,e,r|8),n.elementType=px,n.type=px,n.lanes=o,n;case mx:return n=du(13,t,e,r),n.type=mx,n.elementType=mx,n.lanes=o,n;case ZI:return n=du(19,t,e,r),n.elementType=ZI,n.lanes=o,n;case v8:return iB(t,r,o,e);case b8:return n=du(24,t,e,r),n.elementType=b8,n.lanes=o,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case f8:s=10;break e;case g8:s=9;break e;case YI:s=11;break e;case XI:s=14;break e;case p8:s=16,i=null;break e;case m8:s=22;break e}throw Error(xt(130,n==null?n:typeof n,""))}return e=du(s,t,e,r),e.elementType=n,e.type=i,e.lanes=o,e}function G1(n,e,t,i){return n=du(7,n,i,e),n.lanes=t,n}function iB(n,e,t,i){return n=du(23,n,i,e),n.elementType=v8,n.lanes=t,n}function rB(n,e,t){return n=du(6,n,null,e),n.lanes=t,n}function oB(n,e,t){return e=du(4,n.children!==null?n.children:[],n.key,e),e.lanes=t,e.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},e}function VNe(n,e,t){this.tag=e,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=t,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=j8(0),this.expirationTimes=j8(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=j8(0),this.mutableSourceEagerHydrationData=null}function zNe(n,e,t){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:J_,key:i==null?null:""+i,children:n,containerInfo:e,implementation:t}}function YR(n,e,t,i){var r=e.current,o=pc(),s=jp(r);e:if(t){t=t._reactInternals;t:{if(tv(t)!==t||t.tag!==1)throw Error(xt(170));var a=t;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(Il(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(a!==null);throw Error(xt(171))}if(t.tag===1){var l=t.type;if(Il(l)){t=Xee(t,l,a);break e}}t=a}else t=$p;return e.context===null?e.context=t:e.pendingContext=t,e=Hp(o,s),e.payload={element:n},i=i===void 0?null:i,i!==null&&(e.callback=i),Vp(r,e),qp(r,s,o),s}function sB(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function hne(n,e){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var t=n.retryLane;n.retryLane=t!==0&&t<e?t:e}}function aB(n,e){hne(n,e),(n=n.alternate)&&hne(n,e)}function UNe(){return null}function lB(n,e,t){var i=t!=null&&t.hydrationOptions!=null&&t.hydrationOptions.mutableSources||null;if(t=new VNe(n,e,t!=null&&t.hydrate===!0),e=du(3,null,null,e===2?7:e===1?3:0),t.current=e,e.stateNode=t,C6(e),n[O1]=t.current,Wee(n.nodeType===8?n.parentNode:n),i)for(n=0;n<i.length;n++){e=i[n];var r=e._getVersion;r=r(e._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[e,r]:t.mutableSourceEagerHydrationData.push(e,r)}this._internalRoot=t}lB.prototype.render=function(n){YR(n,this._internalRoot,null,null)},lB.prototype.unmount=function(){var n=this._internalRoot,e=n.containerInfo;YR(null,n,null,function(){e[O1]=null})};function ok(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function jNe(n,e){if(e||(e=n?n.nodeType===9?n.documentElement:n.firstChild:null,e=!(!e||e.nodeType!==1||!e.hasAttribute("data-reactroot"))),!e)for(var t;t=n.lastChild;)n.removeChild(t);return new lB(n,0,e?{hydrate:!0}:void 0)}function ZR(n,e,t,i,r){var o=t._reactRootContainer;if(o){var s=o._internalRoot;if(typeof r=="function"){var a=r;r=function(){var c=sB(s);a.call(c)}}YR(e,s,n,r)}else{if(o=t._reactRootContainer=jNe(t,i),s=o._internalRoot,typeof r=="function"){var l=r;r=function(){var c=sB(s);l.call(c)}}rne(function(){YR(e,s,n,r)})}return sB(s)}eee=function(n){if(n.tag===13){var e=pc();qp(n,4,e),aB(n,4)}},$8=function(n){if(n.tag===13){var e=pc();qp(n,67108864,e),aB(n,67108864)}},tee=function(n){if(n.tag===13){var e=pc(),t=jp(n);qp(n,t,e),aB(n,t)}},nee=function(n,e){return e()},N8=function(n,e,t){switch(e){case"input":if(S8(n,t),e=t.name,t.type==="radio"&&e!=null){for(t=n;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<t.length;e++){var i=t[e];if(i!==n&&i.form===n.form){var r=bR(i);if(!r)throw Error(xt(90));OJ(i),S8(i,r)}}}break;case"textarea":$J(n,t);break;case"select":e=t.value,e!=null&&S1(n,!!t.multiple,e,!1)}},A8=ine,GJ=function(n,e,t,i,r){var o=wn;wn|=4;try{return ov(98,n.bind(null,e,t,i,r))}finally{wn=o,wn===0&&(j1(),sh())}},O8=function(){(wn&49)==0&&(RNe(),Kp())},YJ=function(n,e){var t=wn;wn|=2;try{return n(e)}finally{wn=t,wn===0&&(j1(),sh())}};function fne(n,e){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ok(e))throw Error(xt(200));return zNe(n,e,null,t)}var qNe={Events:[$x,P1,bR,qJ,KJ,Kp,{current:!1}]},sk={findFiberByHostInstance:nv,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},KNe={bundleType:sk.bundleType,version:sk.version,rendererPackageName:sk.rendererPackageName,rendererConfig:sk.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q_.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=QJ(n),n===null?null:n.stateNode},findFiberByHostInstance:sk.findFiberByHostInstance||UNe,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var XR=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!XR.isDisabled&&XR.supportsFiber)try{f6=XR.inject(KNe),rv=XR}catch{}}su.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qNe,su.createPortal=fne,su.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var e=n._reactInternals;if(e===void 0)throw typeof n.render=="function"?Error(xt(188)):Error(xt(268,Object.keys(n)));return n=QJ(e),n=n===null?null:n.stateNode,n},su.flushSync=function(n,e){var t=wn;if((t&48)!=0)return n(e);wn|=1;try{if(n)return ov(99,n.bind(null,e))}finally{wn=t,sh()}},su.hydrate=function(n,e,t){if(!ok(e))throw Error(xt(200));return ZR(null,n,e,!0,t)},su.render=function(n,e,t){if(!ok(e))throw Error(xt(200));return ZR(null,n,e,!1,t)},su.unmountComponentAtNode=function(n){if(!ok(n))throw Error(xt(40));return n._reactRootContainer?(rne(function(){ZR(null,null,n,!1,function(){n._reactRootContainer=null,n[O1]=null})}),!0):!1},su.unstable_batchedUpdates=ine,su.unstable_createPortal=function(n,e){return fne(n,e,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},su.unstable_renderSubtreeIntoContainer=function(n,e,t,i){if(!ok(t))throw Error(xt(200));if(n==null||n._reactInternals===void 0)throw Error(xt(38));return ZR(n,e,t,!1,i)},su.version="17.0.2";function gne(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gne)}catch(n){console.error(n)}}gne(),Tl.exports=su;var cB=Tl.exports,GNe=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,YNe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],uB=function(e){var t=e,i=e.indexOf("["),r=e.indexOf("]");i!=-1&&r!=-1&&(e=e.substring(0,i)+e.substring(i,r).replace(/:/g,";")+e.substring(r,e.length));for(var o=GNe.exec(e||""),s={},a=14;a--;)s[YNe[a]]=o[a]||"";return i!=-1&&r!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=ZNe(s,s.path),s.queryKey=XNe(s,s.query),s};function ZNe(n,e){var t=/\/{2,9}/g,i=e.replace(t,"/").split("/");return(e.substr(0,1)=="/"||e.length===0)&&i.splice(0,1),e.substr(e.length-1,1)=="/"&&i.splice(i.length-1,1),i}function XNe(n,e){var t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,r,o){r&&(t[r]=o)}),t}function QNe(n,e="",t){let i=n;t=t||typeof location!="undefined"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t!="undefined"?n=t.protocol+"//"+n:n="https://"+n),i=uB(n)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const o=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+o+":"+i.port+e,i.href=i.protocol+"://"+o+(t&&t.port===i.port?"":":"+i.port),i}var dB={exports:{}};try{dB.exports=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch{dB.exports=!1}var JNe=dB.exports,Zp=(()=>typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")())();function pne(n){const e=n.xdomain;try{if(typeof XMLHttpRequest!="undefined"&&(!e||JNe))return new XMLHttpRequest}catch{}if(!e)try{return new Zp[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function mne(n,...e){return e.reduce((t,i)=>(n.hasOwnProperty(i)&&(t[i]=n[i]),t),{})}const eAe=setTimeout,tAe=clearTimeout;function QR(n,e){e.useNativeTimers?(n.setTimeoutFn=eAe.bind(Zp),n.clearTimeoutFn=tAe.bind(Zp)):(n.setTimeoutFn=setTimeout.bind(Zp),n.clearTimeoutFn=clearTimeout.bind(Zp))}var Y1=Ga;function Ga(n){if(n)return nAe(n)}function nAe(n){for(var e in Ga.prototype)n[e]=Ga.prototype[e];return n}Ga.prototype.on=Ga.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this},Ga.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this},Ga.prototype.off=Ga.prototype.removeListener=Ga.prototype.removeAllListeners=Ga.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var i,r=0;r<t.length;r++)if(i=t[r],i===e||i.fn===e){t.splice(r,1);break}return t.length===0&&delete this._callbacks["$"+n],this},Ga.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+n],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(t){t=t.slice(0);for(var i=0,r=t.length;i<r;++i)t[i].apply(this,e)}return this},Ga.prototype.emitReserved=Ga.prototype.emit,Ga.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},Ga.prototype.hasListeners=function(n){return!!this.listeners(n).length};const dh=Object.create(null);dh.open="0",dh.close="1",dh.ping="2",dh.pong="3",dh.message="4",dh.upgrade="5",dh.noop="6";const JR=Object.create(null);Object.keys(dh).forEach(n=>{JR[dh[n]]=n});const iAe={type:"error",data:"parser error"},rAe=typeof Blob=="function"||typeof Blob!="undefined"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",oAe=typeof ArrayBuffer=="function",sAe=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,_ne=({type:n,data:e},t,i)=>rAe&&e instanceof Blob?t?i(e):vne(e,i):oAe&&(e instanceof ArrayBuffer||sAe(e))?t?i(e):vne(new Blob([e]),i):i(dh[n]+(e||"")),vne=(n,e)=>{const t=new FileReader;return t.onload=function(){const i=t.result.split(",")[1];e("b"+i)},t.readAsDataURL(n)};for(var bne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ak=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),e2=0;e2<bne.length;e2++)ak[bne.charCodeAt(e2)]=e2;var aAe=function(n){var e=n.length*.75,t=n.length,i,r=0,o,s,a,l;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);var c=new ArrayBuffer(e),u=new Uint8Array(c);for(i=0;i<t;i+=4)o=ak[n.charCodeAt(i)],s=ak[n.charCodeAt(i+1)],a=ak[n.charCodeAt(i+2)],l=ak[n.charCodeAt(i+3)],u[r++]=o<<2|s>>4,u[r++]=(s&15)<<4|a>>2,u[r++]=(a&3)<<6|l&63;return c};const lAe=typeof ArrayBuffer=="function",yne=(n,e)=>{if(typeof n!="string")return{type:"message",data:Cne(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:cAe(n.substring(1),e)}:JR[t]?n.length>1?{type:JR[t],data:n.substring(1)}:{type:JR[t]}:iAe},cAe=(n,e)=>{if(lAe){const t=aAe(n);return Cne(t,e)}else return{base64:!0,data:n}},Cne=(n,e)=>{switch(e){case"blob":return n instanceof ArrayBuffer?new Blob([n]):n;case"arraybuffer":default:return n}},wne=String.fromCharCode(30),uAe=(n,e)=>{const t=n.length,i=new Array(t);let r=0;n.forEach((o,s)=>{_ne(o,!1,a=>{i[s]=a,++r===t&&e(i.join(wne))})})},dAe=(n,e)=>{const t=n.split(wne),i=[];for(let r=0;r<t.length;r++){const o=yne(t[r],e);if(i.push(o),o.type==="error")break}return i},Sne=4;class xne extends Y1{constructor(e){super();this.writable=!1,QR(this,e),this.opts=e,this.query=e.query,this.readyState="",this.socket=e.socket}onError(e,t){const i=new Error(e);return i.type="TransportError",i.description=t,super.emit("error",i),this}open(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emit("open")}onData(e){const t=yne(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emit("packet",e)}onClose(){this.readyState="closed",super.emit("close")}}var kne="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t2=64,Ene={},Lne=0,Xp=0,Tne;function hB(n){var e="";do e=kne[n%t2]+e,n=Math.floor(n/t2);while(n>0);return e}function hAe(n){var e=0;for(Xp=0;Xp<n.length;Xp++)e=e*t2+Ene[n.charAt(Xp)];return e}function fB(){var n=hB(+new Date);return n!==Tne?(Lne=0,Tne=n):n+"."+hB(Lne++)}for(;Xp<t2;Xp++)Ene[kne[Xp]]=Xp;fB.encode=hB,fB.decode=hAe;var Dne=fB,lk={};lk.encode=function(n){var e="";for(var t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e},lk.decode=function(n){for(var e={},t=n.split("&"),i=0,r=t.length;i<r;i++){var o=t[i].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e};class fAe extends xne{constructor(){super(...arguments);this.polling=!1}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let i=0;this.polling&&(i++,this.once("pollComplete",function(){--i||t()})),this.writable||(i++,this.once("drain",function(){--i||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emit("poll")}onData(e){const t=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose(),!1;this.onPacket(i)};dAe(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,uAe(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emit("drain")})})}uri(){let e=this.query||{};const t=this.opts.secure?"https":"http";let i="";this.opts.timestampRequests!==!1&&(e[this.opts.timestampParam]=Dne()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.opts.port&&(t==="https"&&Number(this.opts.port)!==443||t==="http"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port);const r=lk.encode(e),o=this.opts.hostname.indexOf(":")!==-1;return t+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(r.length?"?"+r:"")}}function gAe(){}const pAe=function(){return new pne({xdomain:!1}).responseType!=null}();class mAe extends fAe{constructor(e){super(e);if(typeof location!="undefined"){const i=location.protocol==="https:";let r=location.port;r||(r=i?"443":"80"),this.xd=typeof location!="undefined"&&e.hostname!==location.hostname||r!==e.port,this.xs=e.secure!==i}const t=e&&e.forceBase64;this.supportsBinary=pAe&&!t}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new hh(this.uri(),e)}doWrite(e,t){const i=this.request({method:"POST",data:e});i.on("success",t),i.on("error",r=>{this.onError("xhr post error",r)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",t=>{this.onError("xhr poll error",t)}),this.pollXhr=e}}class hh extends Y1{constructor(e,t){super();QR(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.async=t.async!==!1,this.data=t.data!==void 0?t.data:null,this.create()}create(){const e=mne(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const t=this.xhr=new pne(e);try{t.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&t.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{t.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in t&&(t.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(t.timeout=this.opts.requestTimeout),t.onreadystatechange=()=>{t.readyState===4&&(t.status===200||t.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof t.status=="number"?t.status:0)},0))},t.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document!="undefined"&&(this.index=hh.requestsCount++,hh.requests[this.index]=this)}onSuccess(){this.emit("success"),this.cleanup()}onData(e){this.emit("data",e),this.onSuccess()}onError(e){this.emit("error",e),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr=="undefined"||this.xhr===null)){if(this.xhr.onreadystatechange=gAe,e)try{this.xhr.abort()}catch{}typeof document!="undefined"&&delete hh.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&this.onData(e)}abort(){this.cleanup()}}if(hh.requestsCount=0,hh.requests={},typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",Ine);else if(typeof addEventListener=="function"){const n="onpagehide"in Zp?"pagehide":"unload";addEventListener(n,Ine,!1)}}function Ine(){for(let n in hh.requests)hh.requests.hasOwnProperty(n)&&hh.requests[n].abort()}const _Ae=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0))(),ck=Zp.WebSocket||Zp.MozWebSocket,Rne=!0,vAe="arraybuffer",Nne=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class gB extends xne{constructor(e){super(e);this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,i=Nne?{}:mne(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=Rne&&!Nne?t?new ck(e,t):new ck(e):new ck(e,t,i)}catch(r){return this.emit("error",r)}this.ws.binaryType=this.socket.binaryType||vAe,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=this.onClose.bind(this),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const i=e[t],r=t===e.length-1;_ne(i,this.supportsBinary,o=>{const s={};try{Rne&&this.ws.send(o)}catch{}r&&_Ae(()=>{this.writable=!0,this.emit("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws!="undefined"&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const t=this.opts.secure?"wss":"ws";let i="";this.opts.port&&(t==="wss"&&Number(this.opts.port)!==443||t==="ws"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=Dne()),this.supportsBinary||(e.b64=1);const r=lk.encode(e),o=this.opts.hostname.indexOf(":")!==-1;return t+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(r.length?"?"+r:"")}check(){return!!ck&&!("__initialize"in ck&&this.name===gB.prototype.name)}}const bAe={websocket:gB,polling:mAe};class Qf extends Y1{constructor(e,t={}){super();e&&typeof e=="object"&&(t=e,e=null),e?(e=uB(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=uB(t.host).host),QR(this,t),this.secure=t.secure!=null?t.secure:typeof location!="undefined"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=t.port||(typeof location!="undefined"&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},t),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=lk.decode(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&addEventListener("beforeunload",()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},!1),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close")},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=yAe(this.opts.query);t.EIO=Sne,t.transport=e,this.id&&(t.sid=this.id);const i=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new bAe[e](i)}open(){let e;if(this.opts.rememberUpgrade&&Qf.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",()=>{this.onClose("transport close")})}probe(e){let t=this.createTransport(e),i=!1;Qf.priorWebsocketSuccess=!1;const r=()=>{i||(t.send([{type:"ping",data:"probe"}]),t.once("packet",d=>{if(!i)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Qf.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const h=new Error("probe error");h.transport=t.name,this.emitReserved("upgradeError",h)}}))};function o(){i||(i=!0,u(),t.close(),t=null)}const s=d=>{const h=new Error("probe error: "+d);h.transport=t.name,o(),this.emitReserved("upgradeError",h)};function a(){s("transport closed")}function l(){s("socket closed")}function c(d){t&&d.name!==t.name&&o()}const u=()=>{t.removeListener("open",r),t.removeListener("error",s),t.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};t.once("open",r),t.once("error",s),t.once("close",a),this.once("close",l),this.once("upgrading",c),t.open()}onOpen(){if(this.readyState="open",Qf.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emitReserved("flush"))}write(e,t,i){return this.sendPacket("message",e,t,i),this}send(e,t,i){return this.sendPacket("message",e,t,i),this}sendPacket(e,t,i,r){if(typeof t=="function"&&(r=t,t=void 0),typeof i=="function"&&(r=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const o={type:e,data:t,options:i};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},i=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():e()}):this.upgrading?i():e()),this}onError(e){Qf.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let i=0;const r=e.length;for(;i<r;i++)~this.transports.indexOf(e[i])&&t.push(e[i]);return t}}Qf.protocol=Sne;function yAe(n){const e={};for(let t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}Qf.protocol;const CAe=typeof ArrayBuffer=="function",wAe=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Ane=Object.prototype.toString,SAe=typeof Blob=="function"||typeof Blob!="undefined"&&Ane.call(Blob)==="[object BlobConstructor]",xAe=typeof File=="function"||typeof File!="undefined"&&Ane.call(File)==="[object FileConstructor]";function pB(n){return CAe&&(n instanceof ArrayBuffer||wAe(n))||SAe&&n instanceof Blob||xAe&&n instanceof File}function n2(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,i=n.length;t<i;t++)if(n2(n[t]))return!0;return!1}if(pB(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return n2(n.toJSON(),!0);for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&n2(n[t]))return!0;return!1}function kAe(n){const e=[],t=n.data,i=n;return i.data=mB(t,e),i.attachments=e.length,{packet:i,buffers:e}}function mB(n,e){if(!n)return n;if(pB(n)){const t={_placeholder:!0,num:e.length};return e.push(n),t}else if(Array.isArray(n)){const t=new Array(n.length);for(let i=0;i<n.length;i++)t[i]=mB(n[i],e);return t}else if(typeof n=="object"&&!(n instanceof Date)){const t={};for(const i in n)n.hasOwnProperty(i)&&(t[i]=mB(n[i],e));return t}return n}function EAe(n,e){return n.data=_B(n.data,e),n.attachments=void 0,n}function _B(n,e){if(!n)return n;if(n&&n._placeholder)return e[n.num];if(Array.isArray(n))for(let t=0;t<n.length;t++)n[t]=_B(n[t],e);else if(typeof n=="object")for(const t in n)n.hasOwnProperty(t)&&(n[t]=_B(n[t],e));return n}const LAe=5;var di;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(di||(di={}));class TAe{encode(e){return(e.type===di.EVENT||e.type===di.ACK)&&n2(e)?(e.type=e.type===di.EVENT?di.BINARY_EVENT:di.BINARY_ACK,this.encodeAsBinary(e)):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===di.BINARY_EVENT||e.type===di.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data)),t}encodeAsBinary(e){const t=kAe(e),i=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(i),r}}class vB extends Y1{constructor(){super()}add(e){let t;if(typeof e=="string")t=this.decodeString(e),t.type===di.BINARY_EVENT||t.type===di.BINARY_ACK?(this.reconstructor=new IAe(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t);else if(pB(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const i={type:Number(e.charAt(0))};if(di[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===di.BINARY_EVENT||i.type===di.BINARY_ACK){const o=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const s=e.substring(o,t);if(s!=Number(s)||e.charAt(t)!=="-")throw new Error("Illegal attachments");i.attachments=Number(s)}if(e.charAt(t+1)==="/"){const o=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););i.nsp=e.substring(o,t)}else i.nsp="/";const r=e.charAt(t+1);if(r!==""&&Number(r)==r){const o=t+1;for(;++t;){const s=e.charAt(t);if(s==null||Number(s)!=s){--t;break}if(t===e.length)break}i.id=Number(e.substring(o,t+1))}if(e.charAt(++t)){const o=DAe(e.substr(t));if(vB.isPayloadValid(i.type,o))i.data=o;else throw new Error("invalid payload")}return i}static isPayloadValid(e,t){switch(e){case di.CONNECT:return typeof t=="object";case di.DISCONNECT:return t===void 0;case di.CONNECT_ERROR:return typeof t=="string"||typeof t=="object";case di.EVENT:case di.BINARY_EVENT:return Array.isArray(t)&&t.length>0;case di.ACK:case di.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}function DAe(n){try{return JSON.parse(n)}catch{return!1}}class IAe{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=EAe(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}var RAe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",protocol:LAe,get PacketType(){return di},Encoder:TAe,Decoder:vB});function rd(n,e,t){return n.on(e,t),function(){n.off(e,t)}}const NAe=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class One extends Y1{constructor(e,t,i){super();this.connected=!1,this.disconnected=!0,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,i&&i.auth&&(this.auth=i.auth),this.io._autoConnect&&this.open()}subEvents(){if(this.subs)return;const e=this.io;this.subs=[rd(e,"open",this.onopen.bind(this)),rd(e,"packet",this.onpacket.bind(this)),rd(e,"error",this.onerror.bind(this)),rd(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(NAe.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const i={type:di.EVENT,data:t};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const s=this.ids++,a=t.pop();this._registerAckCallback(s,a),i.id=s}const r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!r||!this.connected)||(this.connected?this.packet(i):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,t){const i=this.flags.timeout;if(i===void 0){this.acks[e]=t;return}const r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let o=0;o<this.sendBuffer.length;o++)this.sendBuffer[o].id===e&&this.sendBuffer.splice(o,1);t.call(this,new Error("operation has timed out"))},i);this.acks[e]=(...o)=>{this.io.clearTimeoutFn(r),t.apply(this,[null,...o])}}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this.packet({type:di.CONNECT,data:e})}):this.packet({type:di.CONNECT,data:this.auth})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e){this.connected=!1,this.disconnected=!0,delete this.id,this.emitReserved("disconnect",e)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case di.CONNECT:if(e.data&&e.data.sid){const r=e.data.sid;this.onconnect(r)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case di.EVENT:this.onevent(e);break;case di.BINARY_EVENT:this.onevent(e);break;case di.ACK:this.onack(e);break;case di.BINARY_ACK:this.onack(e);break;case di.DISCONNECT:this.ondisconnect();break;case di.CONNECT_ERROR:this.destroy();const i=new Error(e.data.message);i.data=e.data.data,this.emitReserved("connect_error",i);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const i of t)i.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let i=!1;return function(...r){i||(i=!0,t.packet({type:di.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e){this.id=e,this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>this.packet(e)),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:di.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let i=0;i<t.length;i++)if(e===t[i])return t.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}}var AAe=Z1;function Z1(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}Z1.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=(Math.floor(e*10)&1)==0?n-t:n+t}return Math.min(n,this.max)|0},Z1.prototype.reset=function(){this.attempts=0},Z1.prototype.setMin=function(n){this.ms=n},Z1.prototype.setMax=function(n){this.max=n},Z1.prototype.setJitter=function(n){this.jitter=n};class bB extends Y1{constructor(e,t){var i;super();this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,QR(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((i=t.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new AAe({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||RAe;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Qf(this.uri,this.opts);const t=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const r=rd(t,"open",function(){i.onopen(),e&&e()}),o=rd(t,"error",s=>{i.cleanup(),i._readyState="closed",this.emitReserved("error",s),e?e(s):i.maybeReconnectOnOpen()});if(this._timeout!==!1){const s=this._timeout;s===0&&r();const a=this.setTimeoutFn(()=>{r(),t.close(),t.emit("error",new Error("timeout"))},s);this.opts.autoUnref&&a.unref(),this.subs.push(function(){clearTimeout(a)})}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(rd(e,"ping",this.onping.bind(this)),rd(e,"data",this.ondata.bind(this)),rd(e,"error",this.onerror.bind(this)),rd(e,"close",this.onclose.bind(this)),rd(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){this.decoder.add(e)}ondecoded(e){this.emitReserved("packet",e)}onerror(e){this.emitReserved("error",e)}socket(e,t){let i=this.nsps[e];return i||(i=new One(this,e,t),this.nsps[e]=i),i}_destroy(e){const t=Object.keys(this.nsps);for(const i of t)if(this.nsps[i].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let i=0;i<t.length;i++)this.engine.write(t[i],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(r=>{r?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",r)):e.onreconnect()}))},t);this.opts.autoUnref&&i.unref(),this.subs.push(function(){clearTimeout(i)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const uk={};function i2(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=QNe(n,e.path||"/socket.io"),i=t.source,r=t.id,o=t.path,s=uk[r]&&o in uk[r].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||s;let l;return a?l=new bB(i,e):(uk[r]||(uk[r]=new bB(i,e)),l=uk[r]),t.query&&!e.query&&(e.query=t.queryKey),l.socket(t.path,e)}Object.assign(i2,{Manager:bB,Socket:One,io:i2,connect:i2});function OAe(n){let e;const t=new Set,i=(c,u)=>{const d=typeof c=="function"?c(e):c;if(d!==e){const h=e;e=u?d:Object.assign({},e,d),t.forEach(f=>f(e,h))}},r=()=>e,o=(c,u=r,d=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let h=u(e);function f(){const g=u(e);if(!d(h,g)){const p=h;c(h=g,p)}}return t.add(f),()=>t.delete(f)},l={setState:i,getState:r,subscribe:(c,u,d)=>u||d?o(c,u,d):(t.add(c),()=>t.delete(c)),destroy:()=>t.clear()};return e=n(i,r,l),l}const Pne=typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?P.exports.useEffect:P.exports.useLayoutEffect;function Al(n){const e=typeof n=="function"?OAe(n):n,t=(i=e.getState,r=Object.is)=>{const[,o]=P.exports.useReducer(m=>m+1,0),s=e.getState(),a=P.exports.useRef(s),l=P.exports.useRef(i),c=P.exports.useRef(r),u=P.exports.useRef(!1),d=P.exports.useRef();d.current===void 0&&(d.current=i(s));let h,f=!1;(a.current!==s||l.current!==i||c.current!==r||u.current)&&(h=i(s),f=!r(d.current,h)),Pne(()=>{f&&(d.current=h),a.current=s,l.current=i,c.current=r,u.current=!1});const g=P.exports.useRef(s);Pne(()=>{const m=()=>{try{const v=e.getState(),y=l.current(v);c.current(d.current,y)||(a.current=v,d.current=y,o())}catch{u.current=!0,o()}},_=e.subscribe(m);return e.getState()!==g.current&&m(),_},[]);const p=f?h:d.current;return P.exports.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const i=[t,e];return{next(){const r=i.length<=0;return{value:i.shift(),done:r}}}},t}const PAe="",Lo=Al(n=>({socket:void 0,setSocket:e=>n(()=>({socket:e}))}));class MAe{constructor(e){return i2((e.debug?"":PAe)||e.ioPath,{transports:["websocket"],auth:st(Te({},e),{paasDomain:e.passDomain?e.passDomain:"develop.1024paas.com",uuid:e.userId})})}}const FAe=(n,e)=>e.some(t=>n instanceof t);let Mne,Fne;function BAe(){return Mne||(Mne=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function $Ae(){return Fne||(Fne=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Bne=new WeakMap,yB=new WeakMap,$ne=new WeakMap,CB=new WeakMap,wB=new WeakMap;function WAe(n){const e=new Promise((t,i)=>{const r=()=>{n.removeEventListener("success",o),n.removeEventListener("error",s)},o=()=>{t(Qp(n.result)),r()},s=()=>{i(n.error),r()};n.addEventListener("success",o),n.addEventListener("error",s)});return e.then(t=>{t instanceof IDBCursor&&Bne.set(t,n)}).catch(()=>{}),wB.set(e,n),e}function HAe(n){if(yB.has(n))return;const e=new Promise((t,i)=>{const r=()=>{n.removeEventListener("complete",o),n.removeEventListener("error",s),n.removeEventListener("abort",s)},o=()=>{t(),r()},s=()=>{i(n.error||new DOMException("AbortError","AbortError")),r()};n.addEventListener("complete",o),n.addEventListener("error",s),n.addEventListener("abort",s)});yB.set(n,e)}let SB={get(n,e,t){if(n instanceof IDBTransaction){if(e==="done")return yB.get(n);if(e==="objectStoreNames")return n.objectStoreNames||$ne.get(n);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return Qp(n[e])},set(n,e,t){return n[e]=t,!0},has(n,e){return n instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in n}};function VAe(n){SB=n(SB)}function zAe(n){return n===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const i=n.call(xB(this),e,...t);return $ne.set(i,e.sort?e.sort():[e]),Qp(i)}:$Ae().includes(n)?function(...e){return n.apply(xB(this),e),Qp(Bne.get(this))}:function(...e){return Qp(n.apply(xB(this),e))}}function UAe(n){return typeof n=="function"?zAe(n):(n instanceof IDBTransaction&&HAe(n),FAe(n,BAe())?new Proxy(n,SB):n)}function Qp(n){if(n instanceof IDBRequest)return WAe(n);if(CB.has(n))return CB.get(n);const e=UAe(n);return e!==n&&(CB.set(n,e),wB.set(e,n)),e}const xB=n=>wB.get(n);function jAe(n,e,{blocked:t,upgrade:i,blocking:r,terminated:o}={}){const s=indexedDB.open(n,e),a=Qp(s);return i&&s.addEventListener("upgradeneeded",l=>{i(Qp(s.result),l.oldVersion,l.newVersion,Qp(s.transaction))}),t&&s.addEventListener("blocked",()=>t()),a.then(l=>{o&&l.addEventListener("close",()=>o()),r&&l.addEventListener("versionchange",()=>r())}).catch(()=>{}),a}const qAe=["get","getKey","getAll","getAllKeys","count"],KAe=["put","add","delete","clear"],kB=new Map;function Wne(n,e){if(!(n instanceof IDBDatabase&&!(e in n)&&typeof e=="string"))return;if(kB.get(e))return kB.get(e);const t=e.replace(/FromIndex$/,""),i=e!==t,r=KAe.includes(t);if(!(t in(i?IDBIndex:IDBObjectStore).prototype)||!(r||qAe.includes(t)))return;const o=async function(s,...a){const l=this.transaction(s,r?"readwrite":"readonly");let c=l.store;return i&&(c=c.index(a.shift())),(await Promise.all([c[t](...a),r&&l.done]))[0]};return kB.set(e,o),o}VAe(n=>st(Te({},n),{get:(e,t,i)=>Wne(e,t)||n.get(e,t,i),has:(e,t)=>!!Wne(e,t)||n.has(e,t)}));var r2,GAe=new Uint8Array(16);function YAe(){if(!r2&&(r2=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!r2))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r2(GAe)}var ZAe=/^(?:[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 XAe(n){return typeof n=="string"&&ZAe.test(n)}for(var Zs=[],EB=0;EB<256;++EB)Zs.push((EB+256).toString(16).substr(1));function QAe(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(Zs[n[e+0]]+Zs[n[e+1]]+Zs[n[e+2]]+Zs[n[e+3]]+"-"+Zs[n[e+4]]+Zs[n[e+5]]+"-"+Zs[n[e+6]]+Zs[n[e+7]]+"-"+Zs[n[e+8]]+Zs[n[e+9]]+"-"+Zs[n[e+10]]+Zs[n[e+11]]+Zs[n[e+12]]+Zs[n[e+13]]+Zs[n[e+14]]+Zs[n[e+15]]).toLowerCase();if(!XAe(t))throw TypeError("Stringified UUID is invalid");return t}function LB(n,e,t){n=n||{};var i=n.random||(n.rng||YAe)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){t=t||0;for(var r=0;r<16;++r)e[t+r]=i[r];return e}return QAe(i)}var Ya={exports:{}};/**
|
|
34
|
+
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Ys!==5&&(Ys=2),l=$6(l,a),h=s;do{switch(h.tag){case 3:o=l,h.flags|=4096,e&=-e,h.lanes|=e;var w=qte(h,o,e);cte(h,w);break e;case 1:o=l;var S=h.type,x=h.stateNode;if((h.flags&64)==0&&(typeof S.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(uh===null||!uh.has(x)))){h.flags|=4096,e&=-e,h.lanes|=e;var E=Kte(h,o,e);cte(h,E);break e}}h=h.return}while(h!==null)}lne(t)}catch(T){e=T,ds===t&&t!==null&&(ds=t=t.return);continue}break}while(1)}function sne(){var n=WR.current;return WR.current=BR,n===null?BR:n}function rk(n,e){var t=wn;wn|=16;var i=sne();Ka===n&&ya===e||K1(n,e);do try{NNe();break}catch(r){one(n,r)}while(1);if(b6(),wn=t,WR.current=i,ds!==null)throw Error(xt(261));return Ka=null,ya=0,Ys}function NNe(){for(;ds!==null;)ane(ds)}function ANe(){for(;ds!==null&&!gNe();)ane(ds)}function ane(n){var e=dne(n.alternate,n,cv);n.memoizedProps=n.pendingProps,e===null?lne(n):ds=e,U6.current=null}function lne(n){var e=n;do{var t=e.alternate;if(n=e.return,(e.flags&2048)==0){if(t=SNe(t,e,cv),t!==null){ds=t;return}if(t=e,t.tag!==24&&t.tag!==23||t.memoizedState===null||(cv&1073741824)!=0||(t.mode&4)==0){for(var i=0,r=t.child;r!==null;)i|=r.lanes|r.childLanes,r=r.sibling;t.childLanes=i}n!==null&&(n.flags&2048)==0&&(n.firstEffect===null&&(n.firstEffect=e.firstEffect),e.lastEffect!==null&&(n.lastEffect!==null&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.flags&&(n.lastEffect!==null?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(t=xNe(e),t!==null){t.flags&=2047,ds=t;return}n!==null&&(n.firstEffect=n.lastEffect=null,n.flags|=2048)}if(e=e.sibling,e!==null){ds=e;return}ds=e=n}while(e!==null);Ys===0&&(Ys=5)}function uv(n){var e=B1();return ov(99,ONe.bind(null,n,e)),null}function ONe(n,e){do Kp();while(ek!==null);if((wn&48)!=0)throw Error(xt(327));var t=n.finishedWork;if(t===null)return null;if(n.finishedWork=null,n.finishedLanes=0,t===n.current)throw Error(xt(177));n.callbackNode=null;var i=t.lanes|t.childLanes,r=i,o=n.pendingLanes&~r;n.pendingLanes=r,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=r,n.mutableReadLanes&=r,n.entangledLanes&=r,r=n.entanglements;for(var s=n.eventTimes,a=n.expirationTimes;0<o;){var l=31-Pp(o),c=1<<l;r[l]=0,s[l]=-1,a[l]=-1,o&=~c}if(Zf!==null&&(i&24)==0&&Zf.has(n)&&Zf.delete(n),n===Ka&&(ds=Ka=null,ya=0),1<t.flags?t.lastEffect!==null?(t.lastEffect.nextEffect=t,i=t.firstEffect):i=t:i=t.firstEffect,i!==null){if(r=wn,wn|=32,U6.current=null,a6=cR,s=Aee(),i6(s)){if("selectionStart"in s)a={start:s.selectionStart,end:s.selectionEnd};else e:if(a=(a=s.ownerDocument)&&a.defaultView||window,(c=a.getSelection&&a.getSelection())&&c.rangeCount!==0){a=c.anchorNode,o=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{a.nodeType,l.nodeType}catch{a=null;break e}var u=0,d=-1,h=-1,f=0,g=0,p=s,m=null;t:for(;;){for(var _;p!==a||o!==0&&p.nodeType!==3||(d=u+o),p!==l||c!==0&&p.nodeType!==3||(h=u+c),p.nodeType===3&&(u+=p.nodeValue.length),(_=p.firstChild)!==null;)m=p,p=_;for(;;){if(p===s)break t;if(m===a&&++f===o&&(d=u),m===l&&++g===c&&(h=u),(_=p.nextSibling)!==null)break;p=m,m=p.parentNode}p=_}a=d===-1||h===-1?null:{start:d,end:h}}else a=null;a=a||{start:0,end:0}}else a=null;l6={focusedElem:s,selectionRange:a},cR=!1,ik=null,jR=!1,jt=i;do try{PNe()}catch(T){if(jt===null)throw Error(xt(330));Gp(jt,T),jt=jt.nextEffect}while(jt!==null);ik=null,jt=i;do try{for(s=n;jt!==null;){var v=jt.flags;if(v&16&&bx(jt.stateNode,""),v&128){var y=jt.alternate;if(y!==null){var b=y.ref;b!==null&&(typeof b=="function"?b(null):b.current=null)}}switch(v&1038){case 2:Jte(jt),jt.flags&=-3;break;case 6:Jte(jt),jt.flags&=-3,z6(jt.alternate,jt);break;case 1024:jt.flags&=-1025;break;case 1028:jt.flags&=-1025,z6(jt.alternate,jt);break;case 4:z6(jt.alternate,jt);break;case 8:a=jt,ene(s,a);var w=a.alternate;Xte(a),w!==null&&Xte(w)}jt=jt.nextEffect}}catch(T){if(jt===null)throw Error(xt(330));Gp(jt,T),jt=jt.nextEffect}while(jt!==null);if(b=l6,y=Aee(),v=b.focusedElem,s=b.selectionRange,y!==v&&v&&v.ownerDocument&&Nee(v.ownerDocument.documentElement,v)){for(s!==null&&i6(v)&&(y=s.start,b=s.end,b===void 0&&(b=y),"selectionStart"in v?(v.selectionStart=y,v.selectionEnd=Math.min(b,v.value.length)):(b=(y=v.ownerDocument||document)&&y.defaultView||window,b.getSelection&&(b=b.getSelection(),a=v.textContent.length,w=Math.min(s.start,a),s=s.end===void 0?w:Math.min(s.end,a),!b.extend&&w>s&&(a=s,s=w,w=a),a=Ree(v,w),o=Ree(v,s),a&&o&&(b.rangeCount!==1||b.anchorNode!==a.node||b.anchorOffset!==a.offset||b.focusNode!==o.node||b.focusOffset!==o.offset)&&(y=y.createRange(),y.setStart(a.node,a.offset),b.removeAllRanges(),w>s?(b.addRange(y),b.extend(o.node,o.offset)):(y.setEnd(o.node,o.offset),b.addRange(y)))))),y=[],b=v;b=b.parentNode;)b.nodeType===1&&y.push({element:b,left:b.scrollLeft,top:b.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<y.length;v++)b=y[v],b.element.scrollLeft=b.left,b.element.scrollTop=b.top}cR=!!a6,l6=a6=null,n.current=t,jt=i;do try{for(v=n;jt!==null;){var S=jt.flags;if(S&36&&TNe(v,jt.alternate,jt),S&128){y=void 0;var x=jt.ref;if(x!==null){var E=jt.stateNode;switch(jt.tag){case 5:y=E;break;default:y=E}typeof x=="function"?x(y):x.current=y}}jt=jt.nextEffect}}catch(T){if(jt===null)throw Error(xt(330));Gp(jt,T),jt=jt.nextEffect}while(jt!==null);jt=null,mNe(),wn=r}else n.current=t;if(Up)Up=!1,ek=n,tk=e;else for(jt=i;jt!==null;)e=jt.nextEffect,jt.nextEffect=null,jt.flags&8&&(S=jt,S.sibling=null,S.stateNode=null),jt=e;if(i=n.pendingLanes,i===0&&(uh=null),i===1?n===J6?nk++:(nk=0,J6=n):nk=0,t=t.stateNode,rv&&typeof rv.onCommitFiberRoot=="function")try{rv.onCommitFiberRoot(f6,t,void 0,(t.current.flags&64)==64)}catch{}if(uu(n,va()),VR)throw VR=!1,n=Z6,Z6=null,n;return(wn&8)!=0||sh(),null}function PNe(){for(;jt!==null;){var n=jt.alternate;jR||ik===null||((jt.flags&8)!=0?JJ(jt,ik)&&(jR=!0):jt.tag===13&&DNe(n,jt)&&JJ(jt,ik)&&(jR=!0));var e=jt.flags;(e&256)!=0&&LNe(n,jt),(e&512)==0||Up||(Up=!0,Wx(97,function(){return Kp(),null})),jt=jt.nextEffect}}function Kp(){if(tk!==90){var n=97<tk?97:tk;return tk=90,ov(n,FNe)}return!1}function MNe(n,e){X6.push(e,n),Up||(Up=!0,Wx(97,function(){return Kp(),null}))}function cne(n,e){Q6.push(e,n),Up||(Up=!0,Wx(97,function(){return Kp(),null}))}function FNe(){if(ek===null)return!1;var n=ek;if(ek=null,(wn&48)!=0)throw Error(xt(331));var e=wn;wn|=32;var t=Q6;Q6=[];for(var i=0;i<t.length;i+=2){var r=t[i],o=t[i+1],s=r.destroy;if(r.destroy=void 0,typeof s=="function")try{s()}catch(l){if(o===null)throw Error(xt(330));Gp(o,l)}}for(t=X6,X6=[],i=0;i<t.length;i+=2){r=t[i],o=t[i+1];try{var a=r.create;r.destroy=a()}catch(l){if(o===null)throw Error(xt(330));Gp(o,l)}}for(a=n.current.firstEffect;a!==null;)n=a.nextEffect,a.nextEffect=null,a.flags&8&&(a.sibling=null,a.stateNode=null),a=n;return wn=e,sh(),!0}function une(n,e,t){e=$6(t,e),e=qte(n,e,1),Vp(n,e),e=pc(),n=qR(n,1),n!==null&&(lR(n,1,e),uu(n,e))}function Gp(n,e){if(n.tag===3)une(n,n,e);else for(var t=n.return;t!==null;){if(t.tag===3){une(t,n,e);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(uh===null||!uh.has(i))){n=$6(e,n);var r=Kte(t,n,1);if(Vp(t,r),r=pc(),t=qR(t,1),t!==null)lR(t,1,r),uu(t,r);else if(typeof i.componentDidCatch=="function"&&(uh===null||!uh.has(i)))try{i.componentDidCatch(e,n)}catch{}break}}t=t.return}}function BNe(n,e,t){var i=n.pingCache;i!==null&&i.delete(e),e=pc(),n.pingedLanes|=n.suspendedLanes&t,Ka===n&&(ya&t)===t&&(Ys===4||Ys===3&&(ya&62914560)===ya&&500>va()-G6?K1(n,0):q6|=t),uu(n,e)}function $Ne(n,e){var t=n.stateNode;t!==null&&t.delete(e),e=0,e===0&&(e=n.mode,(e&2)==0?e=1:(e&4)==0?e=B1()===99?1:2:(Xf===0&&(Xf=z1),e=T1(62914560&~Xf),e===0&&(e=4194304))),t=pc(),n=qR(n,e),n!==null&&(lR(n,e,t),uu(n,t))}var dne;dne=function(n,e,t){var i=e.lanes;if(n!==null)if(n.memoizedProps!==e.pendingProps||Dl.current)id=!0;else if((t&i)!=0)id=(n.flags&16384)!=0;else{switch(id=!1,e.tag){case 3:Mte(e),E6();break;case 5:_te(e);break;case 1:Il(e.type)&&CR(e);break;case 4:S6(e,e.stateNode.containerInfo);break;case 10:i=e.memoizedProps.value;var r=e.type._context;ro(xR,r._currentValue),r._currentValue=i;break;case 13:if(e.memoizedState!==null)return(t&e.child.childLanes)!=0?Fte(n,e,t):(ro(oo,oo.current&1),e=Yf(n,e,t),e!==null?e.sibling:null);ro(oo,oo.current&1);break;case 19:if(i=(t&e.childLanes)!=0,(n.flags&64)!=0){if(i)return Vte(n,e,t);e.flags|=64}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),ro(oo,oo.current),i)break;return null;case 23:case 24:return e.lanes=0,O6(n,e,t)}return Yf(n,e,t)}else id=!1;switch(e.lanes=0,e.tag){case 2:if(i=e.type,n!==null&&(n.alternate=null,e.alternate=null,e.flags|=2),n=e.pendingProps,r=F1(e,_a.current),W1(e,t),r=D6(null,e,i,n,r,t),e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,Il(i)){var o=!0;CR(e)}else o=!1;e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,C6(e);var s=i.getDerivedStateFromProps;typeof s=="function"&&LR(e,i,s,n),r.updater=TR,e.stateNode=r,r._reactInternals=e,w6(e,i,n,t),e=M6(null,e,i,!0,o,t)}else e.tag=0,Nl(null,e,r,t),e=e.child;return e;case 16:r=e.elementType;e:{switch(n!==null&&(n.alternate=null,e.alternate=null,e.flags|=2),n=e.pendingProps,o=r._init,r=o(r._payload),e.type=r,o=e.tag=HNe(r),n=nd(r,n),o){case 0:e=P6(null,e,r,n,t);break e;case 1:e=Pte(null,e,r,n,t);break e;case 11:e=Rte(null,e,r,n,t);break e;case 14:e=Nte(null,e,r,nd(r.type,n),i,t);break e}throw Error(xt(306,r,""))}return e;case 0:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:nd(i,r),P6(n,e,i,r,t);case 1:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:nd(i,r),Pte(n,e,i,r,t);case 3:if(Mte(e),i=e.updateQueue,n===null||i===null)throw Error(xt(282));if(i=e.pendingProps,r=e.memoizedState,r=r!==null?r.element:null,lte(n,e),Hx(e,i,null,t),i=e.memoizedState.element,i===r)E6(),e=Yf(n,e,t);else{if(r=e.stateNode,(o=r.hydrate)&&(zp=A1(e.stateNode.containerInfo.firstChild),Gf=e,o=lh=!0),o){if(n=r.mutableSourceEagerHydrationData,n!=null)for(r=0;r<n.length;r+=2)o=n[r],o._workInProgressVersionPrimary=n[r+1],V1.push(o);for(t=mte(e,null,i,t),e.child=t;t;)t.flags=t.flags&-3|1024,t=t.sibling}else Nl(n,e,i,t),E6();e=e.child}return e;case 5:return _te(e),n===null&&k6(e),i=e.type,r=e.pendingProps,o=n!==null?n.memoizedProps:null,s=r.children,c6(i,r)?s=null:o!==null&&c6(i,o)&&(e.flags|=16),Ote(n,e),Nl(n,e,s,t),e.child;case 6:return n===null&&k6(e),null;case 13:return Fte(n,e,t);case 4:return S6(e,e.stateNode.containerInfo),i=e.pendingProps,n===null?e.child=RR(e,null,i,t):Nl(n,e,i,t),e.child;case 11:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:nd(i,r),Rte(n,e,i,r,t);case 7:return Nl(n,e,e.pendingProps,t),e.child;case 8:return Nl(n,e,e.pendingProps.children,t),e.child;case 12:return Nl(n,e,e.pendingProps.children,t),e.child;case 10:e:{i=e.type._context,r=e.pendingProps,s=e.memoizedProps,o=r.value;var a=e.type._context;if(ro(xR,a._currentValue),a._currentValue=o,s!==null)if(a=s.value,o=au(a,o)?0:(typeof i._calculateChangedBits=="function"?i._calculateChangedBits(a,o):1073741823)|0,o===0){if(s.children===r.children&&!Dl.current){e=Yf(n,e,t);break e}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var l=a.dependencies;if(l!==null){s=a.child;for(var c=l.firstContext;c!==null;){if(c.context===i&&(c.observedBits&o)!=0){a.tag===1&&(c=Hp(-1,t&-t),c.tag=2,Vp(a,c)),a.lanes|=t,c=a.alternate,c!==null&&(c.lanes|=t),ate(a.return,t),l.lanes|=t;break}c=c.next}}else s=a.tag===10&&a.type===e.type?null:a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}Nl(n,e,r.children,t),e=e.child}return e;case 9:return r=e.type,o=e.pendingProps,i=o.children,W1(e,t),r=lu(r,o.unstable_observedBits),i=i(r),e.flags|=1,Nl(n,e,i,t),e.child;case 14:return r=e.type,o=nd(r,e.pendingProps),o=nd(r.type,o),Nte(n,e,r,o,i,t);case 15:return Ate(n,e,e.type,e.pendingProps,i,t);case 17:return i=e.type,r=e.pendingProps,r=e.elementType===i?r:nd(i,r),n!==null&&(n.alternate=null,e.alternate=null,e.flags|=2),e.tag=1,Il(i)?(n=!0,CR(e)):n=!1,W1(e,t),fte(e,i,r),w6(e,i,r,t),M6(null,e,i,!0,n,t);case 19:return Vte(n,e,t);case 23:return O6(n,e,t);case 24:return O6(n,e,t)}throw Error(xt(156,e.tag))};function WNe(n,e,t,i){this.tag=n,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function du(n,e,t,i){return new WNe(n,e,t,i)}function nB(n){return n=n.prototype,!(!n||!n.isReactComponent)}function HNe(n){if(typeof n=="function")return nB(n)?1:0;if(n!=null){if(n=n.$$typeof,n===YI)return 11;if(n===XI)return 14}return 2}function Yp(n,e){var t=n.alternate;return t===null?(t=du(n.tag,e,n.key,n.mode),t.elementType=n.elementType,t.type=n.type,t.stateNode=n.stateNode,t.alternate=n,n.alternate=t):(t.pendingProps=e,t.type=n.type,t.flags=0,t.nextEffect=null,t.firstEffect=null,t.lastEffect=null),t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=n.sibling,t.index=n.index,t.ref=n.ref,t}function GR(n,e,t,i,r,o){var s=2;if(i=n,typeof n=="function")nB(n)&&(s=1);else if(typeof n=="string")s=5;else e:switch(n){case Ip:return G1(t.children,r,o,e);case RJ:s=8,r|=16;break;case h8:s=8,r|=1;break;case px:return n=du(12,t,e,r|8),n.elementType=px,n.type=px,n.lanes=o,n;case mx:return n=du(13,t,e,r),n.type=mx,n.elementType=mx,n.lanes=o,n;case ZI:return n=du(19,t,e,r),n.elementType=ZI,n.lanes=o,n;case v8:return iB(t,r,o,e);case b8:return n=du(24,t,e,r),n.elementType=b8,n.lanes=o,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case f8:s=10;break e;case g8:s=9;break e;case YI:s=11;break e;case XI:s=14;break e;case p8:s=16,i=null;break e;case m8:s=22;break e}throw Error(xt(130,n==null?n:typeof n,""))}return e=du(s,t,e,r),e.elementType=n,e.type=i,e.lanes=o,e}function G1(n,e,t,i){return n=du(7,n,i,e),n.lanes=t,n}function iB(n,e,t,i){return n=du(23,n,i,e),n.elementType=v8,n.lanes=t,n}function rB(n,e,t){return n=du(6,n,null,e),n.lanes=t,n}function oB(n,e,t){return e=du(4,n.children!==null?n.children:[],n.key,e),e.lanes=t,e.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},e}function VNe(n,e,t){this.tag=e,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=t,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=j8(0),this.expirationTimes=j8(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=j8(0),this.mutableSourceEagerHydrationData=null}function zNe(n,e,t){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:J_,key:i==null?null:""+i,children:n,containerInfo:e,implementation:t}}function YR(n,e,t,i){var r=e.current,o=pc(),s=jp(r);e:if(t){t=t._reactInternals;t:{if(tv(t)!==t||t.tag!==1)throw Error(xt(170));var a=t;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(Il(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(a!==null);throw Error(xt(171))}if(t.tag===1){var l=t.type;if(Il(l)){t=Xee(t,l,a);break e}}t=a}else t=$p;return e.context===null?e.context=t:e.pendingContext=t,e=Hp(o,s),e.payload={element:n},i=i===void 0?null:i,i!==null&&(e.callback=i),Vp(r,e),qp(r,s,o),s}function sB(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function hne(n,e){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var t=n.retryLane;n.retryLane=t!==0&&t<e?t:e}}function aB(n,e){hne(n,e),(n=n.alternate)&&hne(n,e)}function UNe(){return null}function lB(n,e,t){var i=t!=null&&t.hydrationOptions!=null&&t.hydrationOptions.mutableSources||null;if(t=new VNe(n,e,t!=null&&t.hydrate===!0),e=du(3,null,null,e===2?7:e===1?3:0),t.current=e,e.stateNode=t,C6(e),n[O1]=t.current,Wee(n.nodeType===8?n.parentNode:n),i)for(n=0;n<i.length;n++){e=i[n];var r=e._getVersion;r=r(e._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[e,r]:t.mutableSourceEagerHydrationData.push(e,r)}this._internalRoot=t}lB.prototype.render=function(n){YR(n,this._internalRoot,null,null)},lB.prototype.unmount=function(){var n=this._internalRoot,e=n.containerInfo;YR(null,n,null,function(){e[O1]=null})};function ok(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function jNe(n,e){if(e||(e=n?n.nodeType===9?n.documentElement:n.firstChild:null,e=!(!e||e.nodeType!==1||!e.hasAttribute("data-reactroot"))),!e)for(var t;t=n.lastChild;)n.removeChild(t);return new lB(n,0,e?{hydrate:!0}:void 0)}function ZR(n,e,t,i,r){var o=t._reactRootContainer;if(o){var s=o._internalRoot;if(typeof r=="function"){var a=r;r=function(){var c=sB(s);a.call(c)}}YR(e,s,n,r)}else{if(o=t._reactRootContainer=jNe(t,i),s=o._internalRoot,typeof r=="function"){var l=r;r=function(){var c=sB(s);l.call(c)}}rne(function(){YR(e,s,n,r)})}return sB(s)}eee=function(n){if(n.tag===13){var e=pc();qp(n,4,e),aB(n,4)}},$8=function(n){if(n.tag===13){var e=pc();qp(n,67108864,e),aB(n,67108864)}},tee=function(n){if(n.tag===13){var e=pc(),t=jp(n);qp(n,t,e),aB(n,t)}},nee=function(n,e){return e()},N8=function(n,e,t){switch(e){case"input":if(S8(n,t),e=t.name,t.type==="radio"&&e!=null){for(t=n;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<t.length;e++){var i=t[e];if(i!==n&&i.form===n.form){var r=bR(i);if(!r)throw Error(xt(90));OJ(i),S8(i,r)}}}break;case"textarea":$J(n,t);break;case"select":e=t.value,e!=null&&S1(n,!!t.multiple,e,!1)}},A8=ine,GJ=function(n,e,t,i,r){var o=wn;wn|=4;try{return ov(98,n.bind(null,e,t,i,r))}finally{wn=o,wn===0&&(j1(),sh())}},O8=function(){(wn&49)==0&&(RNe(),Kp())},YJ=function(n,e){var t=wn;wn|=2;try{return n(e)}finally{wn=t,wn===0&&(j1(),sh())}};function fne(n,e){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ok(e))throw Error(xt(200));return zNe(n,e,null,t)}var qNe={Events:[$x,P1,bR,qJ,KJ,Kp,{current:!1}]},sk={findFiberByHostInstance:nv,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},KNe={bundleType:sk.bundleType,version:sk.version,rendererPackageName:sk.rendererPackageName,rendererConfig:sk.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q_.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=QJ(n),n===null?null:n.stateNode},findFiberByHostInstance:sk.findFiberByHostInstance||UNe,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var XR=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!XR.isDisabled&&XR.supportsFiber)try{f6=XR.inject(KNe),rv=XR}catch{}}su.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qNe,su.createPortal=fne,su.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var e=n._reactInternals;if(e===void 0)throw typeof n.render=="function"?Error(xt(188)):Error(xt(268,Object.keys(n)));return n=QJ(e),n=n===null?null:n.stateNode,n},su.flushSync=function(n,e){var t=wn;if((t&48)!=0)return n(e);wn|=1;try{if(n)return ov(99,n.bind(null,e))}finally{wn=t,sh()}},su.hydrate=function(n,e,t){if(!ok(e))throw Error(xt(200));return ZR(null,n,e,!0,t)},su.render=function(n,e,t){if(!ok(e))throw Error(xt(200));return ZR(null,n,e,!1,t)},su.unmountComponentAtNode=function(n){if(!ok(n))throw Error(xt(40));return n._reactRootContainer?(rne(function(){ZR(null,null,n,!1,function(){n._reactRootContainer=null,n[O1]=null})}),!0):!1},su.unstable_batchedUpdates=ine,su.unstable_createPortal=function(n,e){return fne(n,e,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},su.unstable_renderSubtreeIntoContainer=function(n,e,t,i){if(!ok(t))throw Error(xt(200));if(n==null||n._reactInternals===void 0)throw Error(xt(38));return ZR(n,e,t,!1,i)},su.version="17.0.2";function gne(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(gne)}catch(n){console.error(n)}}gne(),Tl.exports=su;var cB=Tl.exports,GNe=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,YNe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],uB=function(e){var t=e,i=e.indexOf("["),r=e.indexOf("]");i!=-1&&r!=-1&&(e=e.substring(0,i)+e.substring(i,r).replace(/:/g,";")+e.substring(r,e.length));for(var o=GNe.exec(e||""),s={},a=14;a--;)s[YNe[a]]=o[a]||"";return i!=-1&&r!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=ZNe(s,s.path),s.queryKey=XNe(s,s.query),s};function ZNe(n,e){var t=/\/{2,9}/g,i=e.replace(t,"/").split("/");return(e.substr(0,1)=="/"||e.length===0)&&i.splice(0,1),e.substr(e.length-1,1)=="/"&&i.splice(i.length-1,1),i}function XNe(n,e){var t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(i,r,o){r&&(t[r]=o)}),t}function QNe(n,e="",t){let i=n;t=t||typeof location!="undefined"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t!="undefined"?n=t.protocol+"//"+n:n="https://"+n),i=uB(n)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const o=i.host.indexOf(":")!==-1?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+o+":"+i.port+e,i.href=i.protocol+"://"+o+(t&&t.port===i.port?"":":"+i.port),i}var dB={exports:{}};try{dB.exports=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch{dB.exports=!1}var JNe=dB.exports,Zp=(()=>typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")())();function pne(n){const e=n.xdomain;try{if(typeof XMLHttpRequest!="undefined"&&(!e||JNe))return new XMLHttpRequest}catch{}if(!e)try{return new Zp[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function mne(n,...e){return e.reduce((t,i)=>(n.hasOwnProperty(i)&&(t[i]=n[i]),t),{})}const eAe=setTimeout,tAe=clearTimeout;function QR(n,e){e.useNativeTimers?(n.setTimeoutFn=eAe.bind(Zp),n.clearTimeoutFn=tAe.bind(Zp)):(n.setTimeoutFn=setTimeout.bind(Zp),n.clearTimeoutFn=clearTimeout.bind(Zp))}var Y1=Ga;function Ga(n){if(n)return nAe(n)}function nAe(n){for(var e in Ga.prototype)n[e]=Ga.prototype[e];return n}Ga.prototype.on=Ga.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this},Ga.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this},Ga.prototype.off=Ga.prototype.removeListener=Ga.prototype.removeAllListeners=Ga.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var i,r=0;r<t.length;r++)if(i=t[r],i===e||i.fn===e){t.splice(r,1);break}return t.length===0&&delete this._callbacks["$"+n],this},Ga.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+n],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(t){t=t.slice(0);for(var i=0,r=t.length;i<r;++i)t[i].apply(this,e)}return this},Ga.prototype.emitReserved=Ga.prototype.emit,Ga.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},Ga.prototype.hasListeners=function(n){return!!this.listeners(n).length};const dh=Object.create(null);dh.open="0",dh.close="1",dh.ping="2",dh.pong="3",dh.message="4",dh.upgrade="5",dh.noop="6";const JR=Object.create(null);Object.keys(dh).forEach(n=>{JR[dh[n]]=n});const iAe={type:"error",data:"parser error"},rAe=typeof Blob=="function"||typeof Blob!="undefined"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",oAe=typeof ArrayBuffer=="function",sAe=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,_ne=({type:n,data:e},t,i)=>rAe&&e instanceof Blob?t?i(e):vne(e,i):oAe&&(e instanceof ArrayBuffer||sAe(e))?t?i(e):vne(new Blob([e]),i):i(dh[n]+(e||"")),vne=(n,e)=>{const t=new FileReader;return t.onload=function(){const i=t.result.split(",")[1];e("b"+i)},t.readAsDataURL(n)};for(var bne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ak=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),e2=0;e2<bne.length;e2++)ak[bne.charCodeAt(e2)]=e2;var aAe=function(n){var e=n.length*.75,t=n.length,i,r=0,o,s,a,l;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);var c=new ArrayBuffer(e),u=new Uint8Array(c);for(i=0;i<t;i+=4)o=ak[n.charCodeAt(i)],s=ak[n.charCodeAt(i+1)],a=ak[n.charCodeAt(i+2)],l=ak[n.charCodeAt(i+3)],u[r++]=o<<2|s>>4,u[r++]=(s&15)<<4|a>>2,u[r++]=(a&3)<<6|l&63;return c};const lAe=typeof ArrayBuffer=="function",yne=(n,e)=>{if(typeof n!="string")return{type:"message",data:Cne(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:cAe(n.substring(1),e)}:JR[t]?n.length>1?{type:JR[t],data:n.substring(1)}:{type:JR[t]}:iAe},cAe=(n,e)=>{if(lAe){const t=aAe(n);return Cne(t,e)}else return{base64:!0,data:n}},Cne=(n,e)=>{switch(e){case"blob":return n instanceof ArrayBuffer?new Blob([n]):n;case"arraybuffer":default:return n}},wne=String.fromCharCode(30),uAe=(n,e)=>{const t=n.length,i=new Array(t);let r=0;n.forEach((o,s)=>{_ne(o,!1,a=>{i[s]=a,++r===t&&e(i.join(wne))})})},dAe=(n,e)=>{const t=n.split(wne),i=[];for(let r=0;r<t.length;r++){const o=yne(t[r],e);if(i.push(o),o.type==="error")break}return i},Sne=4;class xne extends Y1{constructor(e){super();this.writable=!1,QR(this,e),this.opts=e,this.query=e.query,this.readyState="",this.socket=e.socket}onError(e,t){const i=new Error(e);return i.type="TransportError",i.description=t,super.emit("error",i),this}open(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emit("open")}onData(e){const t=yne(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emit("packet",e)}onClose(){this.readyState="closed",super.emit("close")}}var kne="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t2=64,Ene={},Lne=0,Xp=0,Tne;function hB(n){var e="";do e=kne[n%t2]+e,n=Math.floor(n/t2);while(n>0);return e}function hAe(n){var e=0;for(Xp=0;Xp<n.length;Xp++)e=e*t2+Ene[n.charAt(Xp)];return e}function fB(){var n=hB(+new Date);return n!==Tne?(Lne=0,Tne=n):n+"."+hB(Lne++)}for(;Xp<t2;Xp++)Ene[kne[Xp]]=Xp;fB.encode=hB,fB.decode=hAe;var Dne=fB,lk={};lk.encode=function(n){var e="";for(var t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e},lk.decode=function(n){for(var e={},t=n.split("&"),i=0,r=t.length;i<r;i++){var o=t[i].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e};class fAe extends xne{constructor(){super(...arguments);this.polling=!1}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let i=0;this.polling&&(i++,this.once("pollComplete",function(){--i||t()})),this.writable||(i++,this.once("drain",function(){--i||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emit("poll")}onData(e){const t=i=>{if(this.readyState==="opening"&&i.type==="open"&&this.onOpen(),i.type==="close")return this.onClose(),!1;this.onPacket(i)};dAe(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,uAe(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emit("drain")})})}uri(){let e=this.query||{};const t=this.opts.secure?"https":"http";let i="";this.opts.timestampRequests!==!1&&(e[this.opts.timestampParam]=Dne()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.opts.port&&(t==="https"&&Number(this.opts.port)!==443||t==="http"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port);const r=lk.encode(e),o=this.opts.hostname.indexOf(":")!==-1;return t+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(r.length?"?"+r:"")}}function gAe(){}const pAe=function(){return new pne({xdomain:!1}).responseType!=null}();class mAe extends fAe{constructor(e){super(e);if(typeof location!="undefined"){const i=location.protocol==="https:";let r=location.port;r||(r=i?"443":"80"),this.xd=typeof location!="undefined"&&e.hostname!==location.hostname||r!==e.port,this.xs=e.secure!==i}const t=e&&e.forceBase64;this.supportsBinary=pAe&&!t}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new hh(this.uri(),e)}doWrite(e,t){const i=this.request({method:"POST",data:e});i.on("success",t),i.on("error",r=>{this.onError("xhr post error",r)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",t=>{this.onError("xhr poll error",t)}),this.pollXhr=e}}class hh extends Y1{constructor(e,t){super();QR(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.async=t.async!==!1,this.data=t.data!==void 0?t.data:null,this.create()}create(){const e=mne(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const t=this.xhr=new pne(e);try{t.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&t.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{t.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in t&&(t.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(t.timeout=this.opts.requestTimeout),t.onreadystatechange=()=>{t.readyState===4&&(t.status===200||t.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof t.status=="number"?t.status:0)},0))},t.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document!="undefined"&&(this.index=hh.requestsCount++,hh.requests[this.index]=this)}onSuccess(){this.emit("success"),this.cleanup()}onData(e){this.emit("data",e),this.onSuccess()}onError(e){this.emit("error",e),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr=="undefined"||this.xhr===null)){if(this.xhr.onreadystatechange=gAe,e)try{this.xhr.abort()}catch{}typeof document!="undefined"&&delete hh.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&this.onData(e)}abort(){this.cleanup()}}if(hh.requestsCount=0,hh.requests={},typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",Ine);else if(typeof addEventListener=="function"){const n="onpagehide"in Zp?"pagehide":"unload";addEventListener(n,Ine,!1)}}function Ine(){for(let n in hh.requests)hh.requests.hasOwnProperty(n)&&hh.requests[n].abort()}const _Ae=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0))(),ck=Zp.WebSocket||Zp.MozWebSocket,Rne=!0,vAe="arraybuffer",Nne=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class gB extends xne{constructor(e){super(e);this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,i=Nne?{}:mne(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(i.headers=this.opts.extraHeaders);try{this.ws=Rne&&!Nne?t?new ck(e,t):new ck(e):new ck(e,t,i)}catch(r){return this.emit("error",r)}this.ws.binaryType=this.socket.binaryType||vAe,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=this.onClose.bind(this),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const i=e[t],r=t===e.length-1;_ne(i,this.supportsBinary,o=>{const s={};try{Rne&&this.ws.send(o)}catch{}r&&_Ae(()=>{this.writable=!0,this.emit("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws!="undefined"&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const t=this.opts.secure?"wss":"ws";let i="";this.opts.port&&(t==="wss"&&Number(this.opts.port)!==443||t==="ws"&&Number(this.opts.port)!==80)&&(i=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=Dne()),this.supportsBinary||(e.b64=1);const r=lk.encode(e),o=this.opts.hostname.indexOf(":")!==-1;return t+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+i+this.opts.path+(r.length?"?"+r:"")}check(){return!!ck&&!("__initialize"in ck&&this.name===gB.prototype.name)}}const bAe={websocket:gB,polling:mAe};class Qf extends Y1{constructor(e,t={}){super();e&&typeof e=="object"&&(t=e,e=null),e?(e=uB(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=uB(t.host).host),QR(this,t),this.secure=t.secure!=null?t.secure:typeof location!="undefined"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=t.port||(typeof location!="undefined"&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},t),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=lk.decode(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&addEventListener("beforeunload",()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},!1),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close")},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=yAe(this.opts.query);t.EIO=Sne,t.transport=e,this.id&&(t.sid=this.id);const i=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new bAe[e](i)}open(){let e;if(this.opts.rememberUpgrade&&Qf.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",()=>{this.onClose("transport close")})}probe(e){let t=this.createTransport(e),i=!1;Qf.priorWebsocketSuccess=!1;const r=()=>{i||(t.send([{type:"ping",data:"probe"}]),t.once("packet",d=>{if(!i)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Qf.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{i||this.readyState!=="closed"&&(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const h=new Error("probe error");h.transport=t.name,this.emitReserved("upgradeError",h)}}))};function o(){i||(i=!0,u(),t.close(),t=null)}const s=d=>{const h=new Error("probe error: "+d);h.transport=t.name,o(),this.emitReserved("upgradeError",h)};function a(){s("transport closed")}function l(){s("socket closed")}function c(d){t&&d.name!==t.name&&o()}const u=()=>{t.removeListener("open",r),t.removeListener("error",s),t.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};t.once("open",r),t.once("error",s),t.once("close",a),this.once("close",l),this.once("upgrading",c),t.open()}onOpen(){if(this.readyState="open",Qf.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emitReserved("flush"))}write(e,t,i){return this.sendPacket("message",e,t,i),this}send(e,t,i){return this.sendPacket("message",e,t,i),this}sendPacket(e,t,i,r){if(typeof t=="function"&&(r=t,t=void 0),typeof i=="function"&&(r=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;const o={type:e,data:t,options:i};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},i=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():e()}):this.upgrading?i():e()),this}onError(e){Qf.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let i=0;const r=e.length;for(;i<r;i++)~this.transports.indexOf(e[i])&&t.push(e[i]);return t}}Qf.protocol=Sne;function yAe(n){const e={};for(let t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}Qf.protocol;const CAe=typeof ArrayBuffer=="function",wAe=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Ane=Object.prototype.toString,SAe=typeof Blob=="function"||typeof Blob!="undefined"&&Ane.call(Blob)==="[object BlobConstructor]",xAe=typeof File=="function"||typeof File!="undefined"&&Ane.call(File)==="[object FileConstructor]";function pB(n){return CAe&&(n instanceof ArrayBuffer||wAe(n))||SAe&&n instanceof Blob||xAe&&n instanceof File}function n2(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,i=n.length;t<i;t++)if(n2(n[t]))return!0;return!1}if(pB(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return n2(n.toJSON(),!0);for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&n2(n[t]))return!0;return!1}function kAe(n){const e=[],t=n.data,i=n;return i.data=mB(t,e),i.attachments=e.length,{packet:i,buffers:e}}function mB(n,e){if(!n)return n;if(pB(n)){const t={_placeholder:!0,num:e.length};return e.push(n),t}else if(Array.isArray(n)){const t=new Array(n.length);for(let i=0;i<n.length;i++)t[i]=mB(n[i],e);return t}else if(typeof n=="object"&&!(n instanceof Date)){const t={};for(const i in n)n.hasOwnProperty(i)&&(t[i]=mB(n[i],e));return t}return n}function EAe(n,e){return n.data=_B(n.data,e),n.attachments=void 0,n}function _B(n,e){if(!n)return n;if(n&&n._placeholder)return e[n.num];if(Array.isArray(n))for(let t=0;t<n.length;t++)n[t]=_B(n[t],e);else if(typeof n=="object")for(const t in n)n.hasOwnProperty(t)&&(n[t]=_B(n[t],e));return n}const LAe=5;var di;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(di||(di={}));class TAe{encode(e){return(e.type===di.EVENT||e.type===di.ACK)&&n2(e)?(e.type=e.type===di.EVENT?di.BINARY_EVENT:di.BINARY_ACK,this.encodeAsBinary(e)):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===di.BINARY_EVENT||e.type===di.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data)),t}encodeAsBinary(e){const t=kAe(e),i=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(i),r}}class vB extends Y1{constructor(){super()}add(e){let t;if(typeof e=="string")t=this.decodeString(e),t.type===di.BINARY_EVENT||t.type===di.BINARY_ACK?(this.reconstructor=new IAe(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t);else if(pB(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const i={type:Number(e.charAt(0))};if(di[i.type]===void 0)throw new Error("unknown packet type "+i.type);if(i.type===di.BINARY_EVENT||i.type===di.BINARY_ACK){const o=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const s=e.substring(o,t);if(s!=Number(s)||e.charAt(t)!=="-")throw new Error("Illegal attachments");i.attachments=Number(s)}if(e.charAt(t+1)==="/"){const o=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););i.nsp=e.substring(o,t)}else i.nsp="/";const r=e.charAt(t+1);if(r!==""&&Number(r)==r){const o=t+1;for(;++t;){const s=e.charAt(t);if(s==null||Number(s)!=s){--t;break}if(t===e.length)break}i.id=Number(e.substring(o,t+1))}if(e.charAt(++t)){const o=DAe(e.substr(t));if(vB.isPayloadValid(i.type,o))i.data=o;else throw new Error("invalid payload")}return i}static isPayloadValid(e,t){switch(e){case di.CONNECT:return typeof t=="object";case di.DISCONNECT:return t===void 0;case di.CONNECT_ERROR:return typeof t=="string"||typeof t=="object";case di.EVENT:case di.BINARY_EVENT:return Array.isArray(t)&&t.length>0;case di.ACK:case di.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}function DAe(n){try{return JSON.parse(n)}catch{return!1}}class IAe{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=EAe(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}var RAe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",protocol:LAe,get PacketType(){return di},Encoder:TAe,Decoder:vB});function rd(n,e,t){return n.on(e,t),function(){n.off(e,t)}}const NAe=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class One extends Y1{constructor(e,t,i){super();this.connected=!1,this.disconnected=!0,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,i&&i.auth&&(this.auth=i.auth),this.io._autoConnect&&this.open()}subEvents(){if(this.subs)return;const e=this.io;this.subs=[rd(e,"open",this.onopen.bind(this)),rd(e,"packet",this.onpacket.bind(this)),rd(e,"error",this.onerror.bind(this)),rd(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(NAe.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const i={type:di.EVENT,data:t};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const s=this.ids++,a=t.pop();this._registerAckCallback(s,a),i.id=s}const r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!r||!this.connected)||(this.connected?this.packet(i):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,t){const i=this.flags.timeout;if(i===void 0){this.acks[e]=t;return}const r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let o=0;o<this.sendBuffer.length;o++)this.sendBuffer[o].id===e&&this.sendBuffer.splice(o,1);t.call(this,new Error("operation has timed out"))},i);this.acks[e]=(...o)=>{this.io.clearTimeoutFn(r),t.apply(this,[null,...o])}}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this.packet({type:di.CONNECT,data:e})}):this.packet({type:di.CONNECT,data:this.auth})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e){this.connected=!1,this.disconnected=!0,delete this.id,this.emitReserved("disconnect",e)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case di.CONNECT:if(e.data&&e.data.sid){const r=e.data.sid;this.onconnect(r)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case di.EVENT:this.onevent(e);break;case di.BINARY_EVENT:this.onevent(e);break;case di.ACK:this.onack(e);break;case di.BINARY_ACK:this.onack(e);break;case di.DISCONNECT:this.ondisconnect();break;case di.CONNECT_ERROR:this.destroy();const i=new Error(e.data.message);i.data=e.data.data,this.emitReserved("connect_error",i);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const i of t)i.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let i=!1;return function(...r){i||(i=!0,t.packet({type:di.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e){this.id=e,this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>this.packet(e)),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:di.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let i=0;i<t.length;i++)if(e===t[i])return t.splice(i,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}}var AAe=Z1;function Z1(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}Z1.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=(Math.floor(e*10)&1)==0?n-t:n+t}return Math.min(n,this.max)|0},Z1.prototype.reset=function(){this.attempts=0},Z1.prototype.setMin=function(n){this.ms=n},Z1.prototype.setMax=function(n){this.max=n},Z1.prototype.setJitter=function(n){this.jitter=n};class bB extends Y1{constructor(e,t){var i;super();this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,QR(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((i=t.randomizationFactor)!==null&&i!==void 0?i:.5),this.backoff=new AAe({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||RAe;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Qf(this.uri,this.opts);const t=this.engine,i=this;this._readyState="opening",this.skipReconnect=!1;const r=rd(t,"open",function(){i.onopen(),e&&e()}),o=rd(t,"error",s=>{i.cleanup(),i._readyState="closed",this.emitReserved("error",s),e?e(s):i.maybeReconnectOnOpen()});if(this._timeout!==!1){const s=this._timeout;s===0&&r();const a=this.setTimeoutFn(()=>{r(),t.close(),t.emit("error",new Error("timeout"))},s);this.opts.autoUnref&&a.unref(),this.subs.push(function(){clearTimeout(a)})}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(rd(e,"ping",this.onping.bind(this)),rd(e,"data",this.ondata.bind(this)),rd(e,"error",this.onerror.bind(this)),rd(e,"close",this.onclose.bind(this)),rd(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){this.decoder.add(e)}ondecoded(e){this.emitReserved("packet",e)}onerror(e){this.emitReserved("error",e)}socket(e,t){let i=this.nsps[e];return i||(i=new One(this,e,t),this.nsps[e]=i),i}_destroy(e){const t=Object.keys(this.nsps);for(const i of t)if(this.nsps[i].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let i=0;i<t.length;i++)this.engine.write(t[i],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const i=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(r=>{r?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",r)):e.onreconnect()}))},t);this.opts.autoUnref&&i.unref(),this.subs.push(function(){clearTimeout(i)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const uk={};function i2(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=QNe(n,e.path||"/socket.io"),i=t.source,r=t.id,o=t.path,s=uk[r]&&o in uk[r].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||s;let l;return a?l=new bB(i,e):(uk[r]||(uk[r]=new bB(i,e)),l=uk[r]),t.query&&!e.query&&(e.query=t.queryKey),l.socket(t.path,e)}Object.assign(i2,{Manager:bB,Socket:One,io:i2,connect:i2});function OAe(n){let e;const t=new Set,i=(c,u)=>{const d=typeof c=="function"?c(e):c;if(d!==e){const h=e;e=u?d:Object.assign({},e,d),t.forEach(f=>f(e,h))}},r=()=>e,o=(c,u=r,d=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let h=u(e);function f(){const g=u(e);if(!d(h,g)){const p=h;c(h=g,p)}}return t.add(f),()=>t.delete(f)},l={setState:i,getState:r,subscribe:(c,u,d)=>u||d?o(c,u,d):(t.add(c),()=>t.delete(c)),destroy:()=>t.clear()};return e=n(i,r,l),l}const Pne=typeof window=="undefined"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?P.exports.useEffect:P.exports.useLayoutEffect;function Al(n){const e=typeof n=="function"?OAe(n):n,t=(i=e.getState,r=Object.is)=>{const[,o]=P.exports.useReducer(m=>m+1,0),s=e.getState(),a=P.exports.useRef(s),l=P.exports.useRef(i),c=P.exports.useRef(r),u=P.exports.useRef(!1),d=P.exports.useRef();d.current===void 0&&(d.current=i(s));let h,f=!1;(a.current!==s||l.current!==i||c.current!==r||u.current)&&(h=i(s),f=!r(d.current,h)),Pne(()=>{f&&(d.current=h),a.current=s,l.current=i,c.current=r,u.current=!1});const g=P.exports.useRef(s);Pne(()=>{const m=()=>{try{const v=e.getState(),y=l.current(v);c.current(d.current,y)||(a.current=v,d.current=y,o())}catch{u.current=!0,o()}},_=e.subscribe(m);return e.getState()!==g.current&&m(),_},[]);const p=f?h:d.current;return P.exports.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const i=[t,e];return{next(){const r=i.length<=0;return{value:i.shift(),done:r}}}},t}const PAe="",Lo=Al(n=>({socket:void 0,setSocket:e=>n(()=>({socket:e}))}));class MAe{constructor(e){return i2((e.debug?"":PAe)||e.ioPath,{transports:["websocket"],auth:st(Te({},e),{paasDomain:e.paasDomain?e.paasDomain:"develop.1024paas.com",uuid:e.userId})})}}const FAe=(n,e)=>e.some(t=>n instanceof t);let Mne,Fne;function BAe(){return Mne||(Mne=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function $Ae(){return Fne||(Fne=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Bne=new WeakMap,yB=new WeakMap,$ne=new WeakMap,CB=new WeakMap,wB=new WeakMap;function WAe(n){const e=new Promise((t,i)=>{const r=()=>{n.removeEventListener("success",o),n.removeEventListener("error",s)},o=()=>{t(Qp(n.result)),r()},s=()=>{i(n.error),r()};n.addEventListener("success",o),n.addEventListener("error",s)});return e.then(t=>{t instanceof IDBCursor&&Bne.set(t,n)}).catch(()=>{}),wB.set(e,n),e}function HAe(n){if(yB.has(n))return;const e=new Promise((t,i)=>{const r=()=>{n.removeEventListener("complete",o),n.removeEventListener("error",s),n.removeEventListener("abort",s)},o=()=>{t(),r()},s=()=>{i(n.error||new DOMException("AbortError","AbortError")),r()};n.addEventListener("complete",o),n.addEventListener("error",s),n.addEventListener("abort",s)});yB.set(n,e)}let SB={get(n,e,t){if(n instanceof IDBTransaction){if(e==="done")return yB.get(n);if(e==="objectStoreNames")return n.objectStoreNames||$ne.get(n);if(e==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return Qp(n[e])},set(n,e,t){return n[e]=t,!0},has(n,e){return n instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in n}};function VAe(n){SB=n(SB)}function zAe(n){return n===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...t){const i=n.call(xB(this),e,...t);return $ne.set(i,e.sort?e.sort():[e]),Qp(i)}:$Ae().includes(n)?function(...e){return n.apply(xB(this),e),Qp(Bne.get(this))}:function(...e){return Qp(n.apply(xB(this),e))}}function UAe(n){return typeof n=="function"?zAe(n):(n instanceof IDBTransaction&&HAe(n),FAe(n,BAe())?new Proxy(n,SB):n)}function Qp(n){if(n instanceof IDBRequest)return WAe(n);if(CB.has(n))return CB.get(n);const e=UAe(n);return e!==n&&(CB.set(n,e),wB.set(e,n)),e}const xB=n=>wB.get(n);function jAe(n,e,{blocked:t,upgrade:i,blocking:r,terminated:o}={}){const s=indexedDB.open(n,e),a=Qp(s);return i&&s.addEventListener("upgradeneeded",l=>{i(Qp(s.result),l.oldVersion,l.newVersion,Qp(s.transaction))}),t&&s.addEventListener("blocked",()=>t()),a.then(l=>{o&&l.addEventListener("close",()=>o()),r&&l.addEventListener("versionchange",()=>r())}).catch(()=>{}),a}const qAe=["get","getKey","getAll","getAllKeys","count"],KAe=["put","add","delete","clear"],kB=new Map;function Wne(n,e){if(!(n instanceof IDBDatabase&&!(e in n)&&typeof e=="string"))return;if(kB.get(e))return kB.get(e);const t=e.replace(/FromIndex$/,""),i=e!==t,r=KAe.includes(t);if(!(t in(i?IDBIndex:IDBObjectStore).prototype)||!(r||qAe.includes(t)))return;const o=async function(s,...a){const l=this.transaction(s,r?"readwrite":"readonly");let c=l.store;return i&&(c=c.index(a.shift())),(await Promise.all([c[t](...a),r&&l.done]))[0]};return kB.set(e,o),o}VAe(n=>st(Te({},n),{get:(e,t,i)=>Wne(e,t)||n.get(e,t,i),has:(e,t)=>!!Wne(e,t)||n.has(e,t)}));var r2,GAe=new Uint8Array(16);function YAe(){if(!r2&&(r2=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!r2))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r2(GAe)}var ZAe=/^(?:[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 XAe(n){return typeof n=="string"&&ZAe.test(n)}for(var Zs=[],EB=0;EB<256;++EB)Zs.push((EB+256).toString(16).substr(1));function QAe(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(Zs[n[e+0]]+Zs[n[e+1]]+Zs[n[e+2]]+Zs[n[e+3]]+"-"+Zs[n[e+4]]+Zs[n[e+5]]+"-"+Zs[n[e+6]]+Zs[n[e+7]]+"-"+Zs[n[e+8]]+Zs[n[e+9]]+"-"+Zs[n[e+10]]+Zs[n[e+11]]+Zs[n[e+12]]+Zs[n[e+13]]+Zs[n[e+14]]+Zs[n[e+15]]).toLowerCase();if(!XAe(t))throw TypeError("Stringified UUID is invalid");return t}function LB(n,e,t){n=n||{};var i=n.random||(n.rng||YAe)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){t=t||0;for(var r=0;r<16;++r)e[t+r]=i[r];return e}return QAe(i)}var Ya={exports:{}};/**
|
|
35
35
|
* @license
|
|
36
36
|
* Lodash <https://lodash.com/>
|
|
37
37
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
@@ -871,7 +871,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
871
871
|
</div>
|
|
872
872
|
</div>
|
|
873
873
|
`}get _selectedIndex(){return this._selected?this._actionMatches.indexOf(this._selected):-1}_actionSelected(e){var t;if(this.dispatchEvent(new CustomEvent("selected",{detail:{search:this._search,action:e},bubbles:!0,composed:!0})),!!e){if(e.children&&((t=e.children)===null||t===void 0?void 0:t.length)>0&&(this._currentRoot=e.id,this._search=""),this._headerRef.value.setSearch(""),this._headerRef.value.focusSearch(),e.handler){const i=e.handler(e);(i==null?void 0:i.keepOpen)||this.close()}this._bump=!0}}async _handleInput(e){this._search=e.detail.search,await this.updateComplete,this.dispatchEvent(new CustomEvent("change",{detail:{search:this._search,actions:this._actionMatches},bubbles:!0,composed:!0}))}_overlayClick(e){var t;((t=e.target)===null||t===void 0?void 0:t.classList.contains("modal"))&&this.close()}};Xr.styles=[ist],Do([Ho({type:String})],Xr.prototype,"placeholder",void 0),Do([Ho({type:Boolean})],Xr.prototype,"disableHotkeys",void 0),Do([Ho({type:Boolean})],Xr.prototype,"hideBreadcrumbs",void 0),Do([Ho()],Xr.prototype,"openHotkey",void 0),Do([Ho()],Xr.prototype,"navigationUpHotkey",void 0),Do([Ho()],Xr.prototype,"navigationDownHotkey",void 0),Do([Ho()],Xr.prototype,"closeHotkey",void 0),Do([Ho()],Xr.prototype,"goBackHotkey",void 0),Do([Ho()],Xr.prototype,"selectHotkey",void 0),Do([Ho({type:Boolean})],Xr.prototype,"hotKeysJoinedView",void 0),Do([Ho({type:Boolean})],Xr.prototype,"noAutoLoadMdIcons",void 0),Do([Ho({type:Array,hasChanged(){return!0}})],Xr.prototype,"data",void 0),Do([hm()],Xr.prototype,"visible",void 0),Do([hm()],Xr.prototype,"_bump",void 0),Do([hm()],Xr.prototype,"_actionMatches",void 0),Do([hm()],Xr.prototype,"_search",void 0),Do([hm()],Xr.prototype,"_currentRoot",void 0),Do([hm()],Xr.prototype,"_flatData",void 0),Do([hm()],Xr.prototype,"breadcrumbs",null),Do([hm()],Xr.prototype,"_selected",void 0),Xr=Do([qN("ninja-keys")],Xr);const rst=()=>{var n,e;localStorage.clear(),indexedDB.deleteDatabase("daopaas").onsuccess=()=>{},(e=(n=Lo.getState())==null?void 0:n.socket)==null||e.emit("clearCache")},ost=()=>{var n,e;localStorage.clear(),indexedDB.deleteDatabase("daopaas").onsuccess=()=>{},(e=(n=Lo.getState())==null?void 0:n.socket)==null||e.emit("adminClearCache")},Zhe=Al(n=>({showGUI:!1,setShowGUI:e=>n(()=>({showGUI:e}))}));var XN;(function(n){n.editor="\u7F16\u8F91\u5668",n.file="\u6587\u4EF6",n.terminal="\u7EC8\u7AEF",n.console="\u8FD0\u884C\u6846",n.media="\u5F71\u97F3"})(XN||(XN={}));var Xhe={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Qhe=Se.createContext&&Se.createContext(Xhe),fm=globalThis&&globalThis.__assign||function(){return fm=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},fm.apply(this,arguments)},sst=globalThis&&globalThis.__rest||function(n,e){var t={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&e.indexOf(i)<0&&(t[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(t[i[r]]=n[i[r]]);return t};function Jhe(n){return n&&n.map(function(e,t){return Se.createElement(e.tag,fm({key:t},e.attr),Jhe(e.child))})}function ast(n){return function(e){return Se.createElement(lst,fm({attr:fm({},n.attr)},e),Jhe(n.child))}}function lst(n){var e=function(t){var i=n.attr,r=n.size,o=n.title,s=sst(n,["attr","size","title"]),a=r||t.size||"1em",l;return t.className&&(l=t.className),n.className&&(l=(l?l+" ":"")+n.className),Se.createElement("svg",fm({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,s,{className:l,style:fm(fm({color:n.color||t.color},t.style),n.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&Se.createElement("title",null,o),n.children)};return Qhe!==void 0?Se.createElement(Qhe.Consumer,null,function(t){return e(t)}):e(Xhe)}function cst(n){return ast({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 5.9a2.1 2.1 0 110 4.2 2.1 2.1 0 010-4.2m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"}}]})(n)}const ust=({drawerOpen:n,setDrawerOpen:e,replayList:t,option:i})=>{const[r,o]=P.exports.useState("");return P.exports.useEffect(()=>{},[t]),ht(Ik,{size:"lg",placement:"right",open:n,onClose:()=>e(!1),children:[ht(Ik.Header,{children:[ne(Ik.Title,{children:i?i.title?i.title:"":"\u56DE\u653E\u5217\u8868"}),ne(Ik.Actions,{children:ht(hle,{children:[ne(hle.Addon,{children:ne(cst,{size:"1.5em"})}),ne(TZe,{onChange:s=>{o(s)}})]})})]}),ne(Ik.Body,{children:t?ne("div",{children:ne("ul",{role:"list",className:"marker:text-sky-400 list-disc pl-5 space-y-3 text-gray-400",children:r?t.filter(s=>Xs.getState().userList.find(a=>a.uuid===s.userInfo.uuid).username.indexOf(r)>=0).map((s,a)=>{var l,c;return ht("li",{className:"hover:ring-sky-500 cursor-pointer",onClick:()=>{e(!1),o$({userId:s.userInfo.uuid,timestamp:s.timestamp})},children:[XN[s.event],ne("span",{className:"mx-4",style:{color:(l=Xs.getState().userList.find(u=>u.uuid===s.userInfo.uuid))==null?void 0:l.color},children:(c=Xs.getState().userList.find(u=>u.uuid===s.userInfo.uuid))==null?void 0:c.username}),ht("span",{children:["\u3010",t$(Number(s.timestamp)).format("YYYY-DD-MM hh:mm:ss"),"\u3011"]})]},a)}):t.map((s,a)=>{var l,c;return ht("li",{className:"hover:ring-sky-500 cursor-pointer",onClick:()=>{e(!1),o$({userId:s.userInfo.uuid,timestamp:s.timestamp})},children:[XN[s.event],ne("span",{className:"mx-4",style:{color:(l=Xs.getState().userList.find(u=>u.uuid===s.userInfo.uuid))==null?void 0:l.color},children:(c=Xs.getState().userList.find(u=>u.uuid===s.userInfo.uuid))==null?void 0:c.username}),ht("span",{children:["\u3010",t$(Number(s.timestamp)).format("YYYY-DD-MM hh:mm:ss"),"\u3011"]})]},a)})})}):ne(xYe.Paragraph,{style:{marginTop:30}})})]})},dst=()=>{const n=P.exports.useRef(null),e=[{id:"replay",title:"\u56DE\u653E",hotkey:"r",mdIcon:"alarm",handler:()=>{l()}},{id:"active",title:"\u6FC0\u6D3B\u5BB9\u5668",hotkey:"a",mdIcon:"input",handler:()=>{var c,u;(u=(c=Lo.getState())==null?void 0:c.socket)==null||u.emit("active")}},{id:"disable editor",title:"\u7981\u7528/\u542F\u7528 \u7F16\u8F91\u5668",hotkey:"ed",mdIcon:"edit",handler:()=>{Bt.getState().setGlobalData({disableEditor:!Bt.getState().globalData.disableEditor})}},{id:"disable markdown",title:"\u7981\u7528/\u542F\u7528 Markdown",hotkey:"ed",mdIcon:"swap_horiz",handler:()=>{Bt.getState().setGlobalData({disableEditor:!Bt.getState().globalData.showMarkdown});const c=document.querySelector(".markdown-layout"),u=window.getComputedStyle(document.querySelector(".markdown-layout"));c.style.display=(u==null?void 0:u.display)==="none"?"block":"none"}},{id:"clearCache",title:"\u6E05\u9664\u7F13\u5B58",hotkey:"c",mdIcon:"autorenew",handler:()=>{rst()}},{id:"admClearCache",title:"\u6E05\u9664\u7F13\u5B58\u3010ADMIN_ONLY\u3011",hotkey:"k",mdIcon:"admin_panel_settings",handler:()=>{prompt("\u8BF7\u8F93\u5165\u5BC6\u7801")==="kuangsa183"&&ost()}},{id:"GUI",title:"GUI",hotkey:"g",mdIcon:"build_circle",handler:()=>{const{showGUI:c,setShowGUI:u}=Zhe.getState();u(!c)}},{id:"DOC",title:"\u6587\u6863",mdIcon:"desktop_windows",children:[{id:"tsdoc",title:"TS\u6587\u6863",hotkey:"t",mdIcon:"highlight",handler:()=>{window.open("https://develop.1024paas.com/tsdoc")}},{id:"storybook",title:"Storybook",hotkey:"s",mdIcon:"description",handler:()=>{window.open("https://develop.1024paas.com/storybook")}}]}],[t,i]=P.exports.useState(!1),[r,o]=P.exports.useState(null),[s,a]=P.exports.useState(e);P.exports.useEffect(()=>{console.log("leva init"),n.current&&(n.current.data=s)},[]),P.exports.useEffect(()=>{t||n.current.close()},[t]);const l=async c=>{o(await zne()),i(!0)};return ht(MKe,{theme:"dark",children:[ne("ninja-keys",{ref:n,className:"dark"}),ne(ust,{drawerOpen:t,setDrawerOpen:i,replayList:r})]})},hst=()=>{const{socket:n}=Lo.getState(),e=Zhe(i=>i.showGUI),t=(i,r)=>{const o=new Set(Ty.getState().ignoreReplayers);r?o.add(i):o.delete(i),Ty.getState().setIgnoreReplayer(Array.from(o))};return xot({syncCursor:{label:"\u5149\u6807\u540C\u6B65",value:Bt.getState().globalData.syncCursor,onChange:i=>{Bt.getState().setGlobalData({syncCursor:i}),n==null||n.emit("globalData",{syncCursor:i})},transient:!1},\u5C4F\u853D\u7EC4\u4EF6:rhe({Editor:{value:!1,onChange:i=>{t("editor",i)},transient:!1},Terminal:{value:!1,onChange:i=>{t("terminal",i)},transient:!1},File:{value:!1,onChange:i=>{console.log(i),t("file",i)},transient:!1}})}),ht(lo,{children:[ne(uhe,{hidden:!e}),ne(kot,{}),ne(dst,{})]})},fst=am(async()=>(await Promise.resolve().then(function(){return Wat})).FileTree),gst=am(async()=>(await Promise.resolve().then(function(){return oEe})).Editor),pst=am(async()=>(await Promise.resolve().then(function(){return YFt})).default),mst=am(async()=>(await Promise.resolve().then(function(){return QFt})).default),_st=am(async()=>(await Promise.resolve().then(function(){return JFt})).default),vst=am(async()=>await Promise.resolve().then(function(){return D3t}));window.MonacoEnvironment={getWorkerUrl(n,e){return e==="json"?"/assets/json.worker.bundle.js":e==="css"?"/assets/css.worker.bundle.js":e==="html"?"/assets/html.worker.bundle.js":e==="typescript"||e==="javascript"?"/assets/ts.worker.bundle.js":`data:text/javascript;charset=utf-8,${encodeURIComponent(`
|
|
874
|
-
importScripts('https://develop.1024paas.com/assets/editor.worker.43309ac9.js');`)}`}};class bst{constructor({debug:e,mode:t,ticket:i,playgroundId:r,userId:o,tenantId:s,username:a,components:l,serviceWorkerOrigin:c,paasDomain:u,onMessage:d,onError:h}){Pi(this,"shellDOM");Pi(this,"editorDOM");Pi(this,"pageDOM");Pi(this,"storeProps");Pi(this,"ticket");Pi(this,"userId");Pi(this,"tenantId");Pi(this,"username");Pi(this,"debug");Pi(this,"userInfo",{});Pi(this,"paasDomain");Pi(this,"components");Pi(this,"mode");Pi(this,"playgroundId");Pi(this,"serviceWorkerOrigin");Pi(this,"onMessage");this.mode=t,this.ticket=i,this.playgroundId=r,this.userId=o,this.tenantId=s,this.username=a||"",this.debug=e||!1,this.paasDomain=u,this.components=l,this.onMessage=d,this.serviceWorkerOrigin=c,sessionStorage.setItem("playgroundId",r),this.init(),this.on=this.on.bind(this),this.trigger=this.trigger.bind(this)}get otstore(){return Bt.getState()}get socketIO(){return Lo.getState().socket}get playgroundStatus(){return this.otstore.playgroundStatus}get dockerStatus(){return this.otstore.dockerStatus}get ignoreReplayers(){return Ty.getState().ignoreReplayers}get userList(){return Xs.getState().userList}async init(){if(this.mode==="tsdoc")return;const{setSocket:e}=Lo.getState(),t=document.createElement("div");t.className="init-class",document.body.appendChild(t);const{setUserInfo:i,userInfo:r}=sd.getState(),o={ticket:this.ticket,playgroundId:this.playgroundId,userId:this.userId,username:this.username,tenantId:this.tenantId};try{const a=await(await fetch(`https://${
|
|
874
|
+
importScripts('https://develop.1024paas.com/assets/editor.worker.43309ac9.js');`)}`}};class bst{constructor({debug:e,mode:t,ticket:i,playgroundId:r,userId:o,tenantId:s,username:a,components:l,serviceWorkerOrigin:c,paasDomain:u,onMessage:d,onError:h}){Pi(this,"shellDOM");Pi(this,"editorDOM");Pi(this,"pageDOM");Pi(this,"storeProps");Pi(this,"ticket");Pi(this,"userId");Pi(this,"tenantId");Pi(this,"username");Pi(this,"debug");Pi(this,"userInfo",{});Pi(this,"paasDomain");Pi(this,"components");Pi(this,"mode");Pi(this,"playgroundId");Pi(this,"serviceWorkerOrigin");Pi(this,"onMessage");this.mode=t,this.ticket=i,this.playgroundId=r,this.userId=o,this.tenantId=s,this.username=a||"",this.debug=e||!1,this.paasDomain=u,this.components=l,this.onMessage=d,this.serviceWorkerOrigin=c,sessionStorage.setItem("playgroundId",r),this.init(),this.on=this.on.bind(this),this.trigger=this.trigger.bind(this)}get otstore(){return Bt.getState()}get socketIO(){return Lo.getState().socket}get playgroundStatus(){return this.otstore.playgroundStatus}get dockerStatus(){return this.otstore.dockerStatus}get ignoreReplayers(){return Ty.getState().ignoreReplayers}get userList(){return Xs.getState().userList}async init(){if(this.mode==="tsdoc")return;const{setSocket:e}=Lo.getState(),t=document.createElement("div");t.className="init-class",document.body.appendChild(t);const{setUserInfo:i,userInfo:r}=sd.getState(),o={ticket:this.ticket,playgroundId:this.playgroundId,userId:this.userId,username:this.username,tenantId:this.tenantId,paasDomain:this.paasDomain?this.paasDomain:"develop.1024paas.com"};try{const a=await(await fetch(`https://${o.paasDomain}/jssdk/ticket`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ticket:this.ticket})})).json();e(new MAe(st(Te({},o),{debug:this.debug,ioPath:`wss://${a.data}`})))}catch(s){throw console.log(s),s}if(!o.userId)throw"\u7F3A\u5C11userId";if(!o.playgroundId)throw"\u7F3A\u5C11playgroundId";if(!o.ticket)throw"\u7F3A\u5C11ticket";i(st(Te({},r),{uuid:o.userId,userId:o.userId})),HZe(st(Te(Te({},this.userInfo),o),{io:Lo.getState().socket,callback:()=>{this.components&&this.mapRender(this.components)}})),this.components&&this.mapRender(this.components),window.onerror=s=>{/dError/.test(s)&&xv.message({type:"error",content:s.replace("Uncaught dError:",""),placement:"bottomEnd"})},Tl.exports.render(ne(hst,{}),document.querySelector(".init-class")),qne.subscribe(s=>s.dockerStatus,this.trigger)}trigger(e,t){this.on(t)}clearIDB(e){indexedDB.deleteDatabase("daopaas").onsuccess=()=>{e&&e()}}followUser(e,t){const{switchShadowUser:i}=Jf.getState();i(e),t&&t()}unFollowUser(e,t){const{switchShadowUser:i}=Jf.getState();i({}),t&&t()}replay(e){o$({userId:e.userInfo.uuid,timestamp:e.timestamp})}setIgnoreReplayers(e){Ty.getState().setIgnoreReplayer(e)}activePlayground(){var e;(e=Lo.getState().socket)==null||e.emit("active")}runPlayground(){var e;(e=Lo.getState().socket)==null||e.emit("run")}stopPlayground(){var e;(e=Lo.getState().socket)==null||e.emit("stop")}onUploadFile(e){var t;(t=Lo.getState().socket)==null||t.emit("upload",e)}switchLspServer(e){this.otstore.setGlobalData({useLsp:!this.otstore.globalData.useLsp})}record(e){const{socket:t}=Lo.getState();if(e==="undefined"){this.otstore.setGlobalData({isRecording:!!e}),t==null||t.emit("globalData",{isRecording:!!e});return}this.otstore.setGlobalData({isRecording:!!e}),t==null||t.emit("globalData",{isRecording:!!e})}on(e){this.onMessage&&this.onMessage(e)}mapRender(e){e==null||e.forEach(({container:t,props:i,item:r},o)=>{switch(r){case"Page":this.Page({container:t,props:i});break;case"Tree":this.Tree({container:t,props:i});break;case"Editor":this.Editor({container:t,props:st(Te({},i),{serviceWorkerOrigin:this.serviceWorkerOrigin})});break;case"Console":this.Console({container:t,props:i});break;case"Browser":this.Browser({container:t,props:i});break;case"Shell":this.Shell({container:t,props:i});break}})}Page({container:e,props:t}){this.storeProps=t,this.pageDOM=e?jy(e):this.pageDOM,Tl.exports.render(ne(P.exports.Suspense,{fallback:ne(Ey,{}),children:ne(vst,{})}),this.pageDOM)}Editor({container:e,props:t}){this.editorDOM=e?jy(e):this.editorDOM,Tl.exports.render(ne(P.exports.Suspense,{fallback:ne(Ey,{}),children:ne(gst,st(Te({},t),{serviceWorkerOrigin:this.serviceWorkerOrigin}))}),this.editorDOM)}Shell({container:e,props:t}){this.editorDOM=e?jy(e):this.editorDOM,Tl.exports.render(ne(P.exports.Suspense,{fallback:ne(Ey,{}),children:ne(_st,Te({},t))}),this.editorDOM)}Tree({container:e,props:t}){this.editorDOM=e?jy(e):this.editorDOM,Tl.exports.render(ne(P.exports.Suspense,{fallback:ne(Ey,{}),children:ne(fst,Te({},t))}),this.editorDOM)}Console({container:e,props:t}){this.editorDOM=e?jy(e):this.editorDOM,Tl.exports.render(ne(P.exports.Suspense,{fallback:ne(Ey,{}),children:ne(pst,Te({},t))}),this.editorDOM)}Browser({container:e,props:t}){this.editorDOM=e?jy(e):this.editorDOM,Tl.exports.render(ne(P.exports.Suspense,{fallback:ne(Ey,{}),children:ne(mst,Te({},t))}),this.editorDOM)}}function jy(n){return/HTMLDivElement|HTMLElement/.test(Object.prototype.toString.call(n))?n:document.querySelector(n)}var Wl=globalThis&&globalThis.__assign||function(){return Wl=Object.assign||function(n){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},Wl.apply(this,arguments)},gm=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return n.filter(function(t){return!!t}).join(" ")},yst=function(n){var e=Wl({renderItemTitle:function(t){var i=t.title,r=t.context,o=t.info;if(!o.isSearching||!r.isSearchMatching)return Se.createElement(Se.Fragment,null,i);var s=i.toLowerCase().indexOf(o.search.toLowerCase());return Se.createElement(Se.Fragment,null,s>0&&Se.createElement("span",null,i.slice(0,s)),Se.createElement("span",{className:"rct-tree-item-search-highlight"},i.slice(s,s+o.search.length)),s+o.search.length<i.length&&Se.createElement("span",null,i.slice(s+o.search.length,i.length)))},renderItemArrow:function(t){var i=t.item,r=t.context;return Se.createElement("div",Wl({className:gm(i.hasChildren&&"rct-tree-item-arrow-hasChildren","rct-tree-item-arrow")},r.arrowProps),i.hasChildren&&(r.isExpanded?Se.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 16 16",enableBackground:"new 0 0 16 16",xmlSpace:"preserve"},Se.createElement("g",null,Se.createElement("g",null,Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:`M12,5c-0.28,0-0.53,0.11-0.71,0.29L8,8.59L4.71,5.29C4.53,5.11,4.28,5,4,5
|
|
875
875
|
C3.45,5,3,5.45,3,6c0,0.28,0.11,0.53,0.29,0.71l4,4C7.47,10.89,7.72,11,8,11s0.53-0.11,0.71-0.29l4-4C12.89,6.53,13,6.28,13,6
|
|
876
876
|
C13,5.45,12.55,5,12,5z`,className:"rct-tree-item-arrow-path"})))):Se.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 16 16",enableBackground:"new 0 0 16 16",xmlSpace:"preserve"},Se.createElement("g",null,Se.createElement("g",null,Se.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:`M10.71,7.29l-4-4C6.53,3.11,6.28,3,6,3C5.45,3,5,3.45,5,4
|
|
877
877
|
c0,0.28,0.11,0.53,0.29,0.71L8.59,8l-3.29,3.29C5.11,11.47,5,11.72,5,12c0,0.55,0.45,1,1,1c0.28,0,0.53-0.11,0.71-0.29l4-4
|
package/dist/editor.d.ts
CHANGED