@gamelearn/arcade-components 3.37.71 → 3.37.72

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.
@@ -78,7 +78,7 @@ Valid keys: `+JSON.stringify(Object.keys(Q),null," "));var _t=St(pt,ht,st,ot,dt
78
78
  `);for(U=j=0;j<Ot.length&&!Ot[j].includes("DetermineComponentFrameRoot");)j++;for(;U<Ut.length&&!Ut[U].includes("DetermineComponentFrameRoot");)U++;if(j===Ot.length||U===Ut.length)for(j=Ot.length-1,U=Ut.length-1;1<=j&&0<=U&&Ot[j]!==Ut[U];)U--;for(;1<=j&&0<=U;j--,U--)if(Ot[j]!==Ut[U]){if(j!==1||U!==1)do if(j--,U--,0>U||Ot[j]!==Ut[U]){var Wt=`
79
79
  `+Ot[j].replace(" at new "," at ");return h.displayName&&Wt.includes("<anonymous>")&&(Wt=Wt.replace("<anonymous>",h.displayName)),Wt}while(1<=j&&0<=U);break}}}finally{Dm=!1,Error.prepareStackTrace=w}return(w=h?h.displayName||h.name:"")?Z(w):""}function $(h,p){switch(h.tag){case 26:case 27:case 5:return Z(h.type);case 16:return Z("Lazy");case 13:return h.child!==p&&p!==null?Z("Suspense Fallback"):Z("Suspense");case 19:return Z("SuspenseList");case 0:case 15:return X(h.type,!1);case 11:return X(h.type.render,!1);case 1:return X(h.type,!0);case 31:return Z("Activity");default:return""}}function nt(h){try{var p="",w=null;do p+=$(h,w),w=h,h=h.return;while(h);return p}catch(j){return`
80
80
  Error generating stack: `+j.message+`
81
- `+j.stack}}function Q(h,p){if(typeof h=="object"&&h!==null){var w=e4.get(h);return w!==void 0?w:(p={value:h,source:p,stack:nt(p)},e4.set(h,p),p)}return{value:h,source:p,stack:nt(p)}}function tt(h,p){zd[zf++]=Ct,zd[zf++]=Wi,Wi=h,Ct=p}function rt(h,p,w){Or[Nr++]=Ss,Or[Nr++]=Sl,Or[Nr++]=Ru,Ru=h;var j=Ss;h=Sl;var U=32-ks(j)-1;j&=~(1<<U),w+=1;var V=32-ks(p)+U;if(30<V){var at=U-U%5;V=(j&(1<<at)-1).toString(32),j>>=at,U-=at,Ss=1<<32-ks(p)+U|w<<U|j,Sl=V+h}else Ss=1<<V|w<<U|j,Sl=h}function ut(h){h.return!==null&&(tt(h,1),rt(h,1,0))}function st(h){for(;h===Wi;)Wi=zd[--zf],zd[zf]=null,Ct=zd[--zf],zd[zf]=null;for(;h===Ru;)Ru=Or[--Nr],Or[Nr]=null,Sl=Or[--Nr],Or[Nr]=null,Ss=Or[--Nr],Or[Nr]=null}function ot(h,p){Or[Nr++]=Ss,Or[Nr++]=Sl,Or[Nr++]=Ru,Ss=p.id,Sl=p.overflow,Ru=h}function dt(h,p){S(_c,p),S(Mm,h),S(ka,null),h=VD(p),v(ka),S(ka,h)}function pt(){v(ka),v(Mm),v(_c)}function it(h){h.memoizedState!==null&&S(T1,h);var p=ka.current,w=h3(p,h.type);p!==w&&(S(Mm,h),S(ka,w))}function lt(h){Mm.current===h&&(v(ka),v(Mm)),T1.current===h&&(v(T1),Dr?vc._currentValue=bs:vc._currentValue2=bs)}function ht(h){var p=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw wt(Q(p,h)),mx}function St(h,p){if(!ja)throw Error(i(175));Df(h.stateNode,h.type,h.memoizedProps,p,h)||ht(h,!0)}function _t(h){for(ca=h.return;ca;)switch(ca.tag){case 5:case 31:case 13:Lr=!1;return;case 27:case 3:Lr=!0;return;default:ca=ca.return}}function bt(h){if(!ja||h!==ca)return!1;if(!en)return _t(h),en=!0,!1;var p=h.tag;if(Qi?p!==3&&p!==27&&(p!==5||X3(h.type)&&!bm(h.type,h.memoizedProps))&&ci&&ht(h):p!==3&&(p!==5||X3(h.type)&&!bm(h.type,h.memoizedProps))&&ci&&ht(h),_t(h),p===13){if(!ja)throw Error(i(316));if(h=h.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(i(317));ci=U3(h)}else if(p===31){if(h=h.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(i(317));ci=I3(h)}else ci=Qi&&p===27?j3(h.type,ci):ca?rx(h.stateNode):null;return!0}function yt(){ja&&(ci=ca=null,en=!1)}function Tt(){var h=wu;return h!==null&&(Gs===null?Gs=h:Gs.push.apply(Gs,h),wu=null),h}function wt(h){wu===null?wu=[h]:wu.push(h)}function It(h,p,w){Dr?(S(xl,p._currentValue),p._currentValue=w):(S(xl,p._currentValue2),p._currentValue2=w)}function Ft(h){var p=xl.current;Dr?h._currentValue=p:h._currentValue2=p,v(xl)}function $t(h,p,w){for(;h!==null;){var j=h.alternate;if((h.childLanes&p)!==p?(h.childLanes|=p,j!==null&&(j.childLanes|=p)):j!==null&&(j.childLanes&p)!==p&&(j.childLanes|=p),h===w)break;h=h.return}}function Jt(h,p,w,j){var U=h.child;for(U!==null&&(U.return=h);U!==null;){var V=U.dependencies;if(V!==null){var at=U.child;V=V.firstContext;t:for(;V!==null;){var ft=V;V=U;for(var Ot=0;Ot<p.length;Ot++)if(ft.context===p[Ot]){V.lanes|=w,ft=V.alternate,ft!==null&&(ft.lanes|=w),$t(V.return,w,h),j||(at=null);break t}V=ft.next}}else if(U.tag===18){if(at=U.return,at===null)throw Error(i(341));at.lanes|=w,V=at.alternate,V!==null&&(V.lanes|=w),$t(at,w,h),at=null}else at=U.child;if(at!==null)at.return=U;else for(at=U;at!==null;){if(at===h){at=null;break}if(U=at.sibling,U!==null){U.return=at.return,at=U;break}at=at.return}U=at}}function we(h,p,w,j){h=null;for(var U=p,V=!1;U!==null;){if(!V){if(U.flags&524288)V=!0;else if(U.flags&262144)break}if(U.tag===10){var at=U.alternate;if(at===null)throw Error(i(387));if(at=at.memoizedProps,at!==null){var ft=U.type;Ba(U.pendingProps.value,at.value)||(h!==null?h.push(ft):h=[ft])}}else if(U===T1.current){if(at=U.alternate,at===null)throw Error(i(387));at.memoizedState.memoizedState!==U.memoizedState.memoizedState&&(h!==null?h.push(vc):h=[vc])}U=U.return}h!==null&&Jt(p,h,w,j),p.flags|=262144}function ze(h){for(h=h.firstContext;h!==null;){var p=h.context;if(!Ba(Dr?p._currentValue:p._currentValue2,h.memoizedValue))return!0;h=h.next}return!1}function Se(h){xs=h,di=null,h=h.dependencies,h!==null&&(h.firstContext=null)}function Te(h){return Mn(xs,h)}function pn(h,p){return xs===null&&Se(h),Mn(h,p)}function Mn(h,p){var w=Dr?p._currentValue:p._currentValue2;if(p={context:p,memoizedValue:w,next:null},di===null){if(h===null)throw Error(i(308));di=p,h.dependencies={lanes:0,firstContext:p},h.flags|=524288}else di=di.next=p;return w}function zt(){return{controller:new El,data:new Map,refCount:0}}function te(h){h.refCount--,h.refCount===0&&ts(i8,function(){h.controller.abort()})}function pe(){}function Lt(h){h!==Us&&h.next===null&&(Us===null?zi=Us=h:Us=Us.next=h),Bf=!0,gx||(gx=!0,ue())}function Yt(h,p){if(!Bd&&Bf){Bd=!0;do for(var w=!1,j=zi;j!==null;){if(!p)if(h!==0){var U=j.pendingLanes;if(U===0)var V=0;else{var at=j.suspendedLanes,ft=j.pingedLanes;V=(1<<31-ks(42|h)+1)-1,V&=U&~(at&~ft),V=V&201326741?V&201326741|1:V?V|2:0}V!==0&&(w=!0,ie(j,V))}else V=on,V=T(j,j===Vn?V:0,j.cancelPendingCommit!==null||j.timeoutHandle!==xu),!(V&3)||A(j,V)||(w=!0,ie(j,V));j=j.next}while(w);Bd=!1}}function ee(){Be()}function Be(){Bf=gx=!1;var h=0;bo!==0&&ex()&&(h=bo);for(var p=Dn(),w=null,j=zi;j!==null;){var U=j.next,V=Ke(j,p);V===0?(j.next=null,w===null?zi=U:w.next=U,U===null&&(Us=w)):(w=j,(h!==0||V&3)&&(Bf=!0)),j=U}jn!==0&&jn!==5||Yt(h,!1),bo!==0&&(bo=0)}function Ke(h,p){for(var w=h.suspendedLanes,j=h.pingedLanes,U=h.expirationTimes,V=h.pendingLanes&-62914561;0<V;){var at=31-ks(V),ft=1<<at,Ot=U[at];Ot===-1?(!(ft&w)||ft&j)&&(U[at]=E(ft,p)):Ot<=p&&(h.expiredLanes|=ft),V&=~ft}if(p=Vn,w=on,w=T(h,h===p?w:0,h.cancelPendingCommit!==null||h.timeoutHandle!==xu),j=h.callbackNode,w===0||h===p&&(Pn===2||Pn===9)||h.cancelPendingCommit!==null)return j!==null&&j!==null&&Je(j),h.callbackNode=null,h.callbackPriority=0;if(!(w&3)||A(h,w)){if(p=w&-w,p===h.callbackPriority)return p;switch(j!==null&&Je(j),F(w)){case 2:case 8:w=Au;break;case 32:w=Cu;break;case 268435456:w=Pf;break;default:w=Cu}return j=Gt.bind(null,h),w=S1(w,j),h.callbackPriority=p,h.callbackNode=w,p}return j!==null&&j!==null&&Je(j),h.callbackPriority=2,h.callbackNode=null,2}function Gt(h,p){if(jn!==0&&jn!==5)return h.callbackNode=null,h.callbackPriority=0,null;var w=h.callbackNode;if(Pi()&&h.callbackNode!==w)return null;var j=on;return j=T(h,h===Vn?j:0,h.cancelPendingCommit!==null||h.timeoutHandle!==xu),j===0?null:(z2(h,j,p),Ke(h,Dn()),h.callbackNode!=null&&h.callbackNode===w?Gt.bind(null,h):null)}function ie(h,p){if(Pi())return null;z2(h,p,!0)}function ue(){b3?_l(function(){nn&6?S1(t4,ee):Be()}):S1(t4,ee)}function wn(){if(bo===0){var h=kf;h===0&&(h=Rm,Rm<<=1,!(Rm&261888)&&(Rm=256)),bo=h}return bo}function re(h,p){if(Om===null){var w=Om=[];vx=0,kf=wn(),Ff={status:"pending",value:void 0,then:function(j){w.push(j)}}}return vx++,p.then(me,me),p}function me(){if(--vx===0&&Om!==null){Ff!==null&&(Ff.status="fulfilled");var h=Om;Om=null,kf=0,Ff=null;for(var p=0;p<h.length;p++)(0,h[p])()}}function On(h,p){var w=[],j={status:"pending",value:null,reason:null,then:function(U){w.push(U)}};return h.then(function(){j.status="fulfilled",j.value=p;for(var U=0;U<w.length;U++)(0,w[U])(p)},function(U){for(j.status="rejected",j.reason=U,U=0;U<w.length;U++)(0,w[U])(void 0)}),j}function Nn(){var h=bc.current;return h!==null?h:Vn.pooledCache}function la(h,p){p===null?S(bc,bc.current):S(bc,p.pool)}function kt(){var h=Nn();return h===null?null:{parent:Dr?_i._currentValue:_i._currentValue2,pool:h}}function Qt(h,p){if(Ba(h,p))return!0;if(typeof h!="object"||h===null||typeof p!="object"||p===null)return!1;var w=Object.keys(h),j=Object.keys(p);if(w.length!==j.length)return!1;for(j=0;j<w.length;j++){var U=w[j];if(!px.call(p,U)||!Ba(h[U],p[U]))return!1}return!0}function de(h){return h=h.status,h==="fulfilled"||h==="rejected"}function ye(h,p,w){switch(w=h[w],w===void 0?h.push(p):w!==p&&(p.then(pe,pe),p=w),p.status){case"fulfilled":return p.value;case"rejected":throw h=p.reason,jt(h),h;default:if(typeof p.status=="string")p.then(pe,pe);else{if(h=Vn,h!==null&&100<h.shellSuspendCounter)throw Error(i(482));h=p,h.status="pending",h.then(function(j){if(p.status==="pending"){var U=p;U.status="fulfilled",U.value=j}},function(j){if(p.status==="pending"){var U=p;U.status="rejected",U.reason=j}})}switch(p.status){case"fulfilled":return p.value;case"rejected":throw h=p.reason,jt(h),h}throw Pr=p,If}}function Xe(h){try{var p=h._init;return p(h._payload)}catch(w){throw w!==null&&typeof w=="object"&&typeof w.then=="function"?(Pr=w,If):w}}function Bn(){if(Pr===null)throw Error(i(459));var h=Pr;return Pr=null,h}function jt(h){if(h===If||h===R1)throw Error(i(483))}function qt(h){var p=Nm;return Nm+=1,jr===null&&(jr=[]),ye(jr,h,p)}function se(h,p){p=p.props.ref,h.ref=p!==void 0?p:null}function Oe(h,p){throw p.$$typeof===a1?Error(i(525)):(h=Object.prototype.toString.call(p),Error(i(31,h==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":h)))}function fe(h){function p(At,Et){if(h){var Dt=At.deletions;Dt===null?(At.deletions=[Et],At.flags|=16):Dt.push(Et)}}function w(At,Et){if(!h)return null;for(;Et!==null;)p(At,Et),Et=Et.sibling;return null}function j(At){for(var Et=new Map;At!==null;)At.key!==null?Et.set(At.key,At):Et.set(At.index,At),At=At.sibling;return Et}function U(At,Et){return At=ml(At,Et),At.index=0,At.sibling=null,At}function V(At,Et,Dt){return At.index=Dt,h?(Dt=At.alternate,Dt!==null?(Dt=Dt.index,Dt<Et?(At.flags|=67108866,Et):Dt):(At.flags|=67108866,Et)):(At.flags|=1048576,Et)}function at(At){return h&&At.alternate===null&&(At.flags|=67108866),At}function ft(At,Et,Dt,Kt){return Et===null||Et.tag!==6?(Et=pm(Dt,At.mode,Kt),Et.return=At,Et):(Et=U(Et,Dt),Et.return=At,Et)}function Ot(At,Et,Dt,Kt){var xe=Dt.type;return xe===Cd?Wt(At,Et,Dt.props.children,Kt,Dt.key):Et!==null&&(Et.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===mc&&Xe(xe)===Et.type)?(Et=U(Et,Dt.props),se(Et,Dt),Et.return=At,Et):(Et=fm(Dt.type,Dt.key,Dt.props,null,At.mode,Kt),se(Et,Dt),Et.return=At,Et)}function Ut(At,Et,Dt,Kt){return Et===null||Et.tag!==4||Et.stateNode.containerInfo!==Dt.containerInfo||Et.stateNode.implementation!==Dt.implementation?(Et=e1(Dt,At.mode,Kt),Et.return=At,Et):(Et=U(Et,Dt.children||[]),Et.return=At,Et)}function Wt(At,Et,Dt,Kt,xe){return Et===null||Et.tag!==7?(Et=bu(Dt,At.mode,Kt,xe),Et.return=At,Et):(Et=U(Et,Dt),Et.return=At,Et)}function Xt(At,Et,Dt){if(typeof Et=="string"&&Et!==""||typeof Et=="number"||typeof Et=="bigint")return Et=pm(""+Et,At.mode,Dt),Et.return=At,Et;if(typeof Et=="object"&&Et!==null){switch(Et.$$typeof){case gm:return Dt=fm(Et.type,Et.key,Et.props,null,At.mode,Dt),se(Dt,Et),Dt.return=At,Dt;case pc:return Et=e1(Et,At.mode,Dt),Et.return=At,Et;case mc:return Et=Xe(Et),Xt(At,Et,Dt)}if(gc(Et)||f(Et))return Et=bu(Et,At.mode,Dt,null),Et.return=At,Et;if(typeof Et.then=="function")return Xt(At,qt(Et),Dt);if(Et.$$typeof===Su)return Xt(At,pn(At,Et),Dt);Oe(At,Et)}return null}function ne(At,Et,Dt,Kt){var xe=Et!==null?Et.key:null;if(typeof Dt=="string"&&Dt!==""||typeof Dt=="number"||typeof Dt=="bigint")return xe!==null?null:ft(At,Et,""+Dt,Kt);if(typeof Dt=="object"&&Dt!==null){switch(Dt.$$typeof){case gm:return Dt.key===xe?Ot(At,Et,Dt,Kt):null;case pc:return Dt.key===xe?Ut(At,Et,Dt,Kt):null;case mc:return Dt=Xe(Dt),ne(At,Et,Dt,Kt)}if(gc(Dt)||f(Dt))return xe!==null?null:Wt(At,Et,Dt,Kt,null);if(typeof Dt.then=="function")return ne(At,Et,qt(Dt),Kt);if(Dt.$$typeof===Su)return ne(At,Et,pn(At,Dt),Kt);Oe(At,Dt)}return null}function Ae(At,Et,Dt,Kt,xe){if(typeof Kt=="string"&&Kt!==""||typeof Kt=="number"||typeof Kt=="bigint")return At=At.get(Dt)||null,ft(Et,At,""+Kt,xe);if(typeof Kt=="object"&&Kt!==null){switch(Kt.$$typeof){case gm:return At=At.get(Kt.key===null?Dt:Kt.key)||null,Ot(Et,At,Kt,xe);case pc:return At=At.get(Kt.key===null?Dt:Kt.key)||null,Ut(Et,At,Kt,xe);case mc:return Kt=Xe(Kt),Ae(At,Et,Dt,Kt,xe)}if(gc(Kt)||f(Kt))return At=At.get(Dt)||null,Wt(Et,At,Kt,xe,null);if(typeof Kt.then=="function")return Ae(At,Et,Dt,qt(Kt),xe);if(Kt.$$typeof===Su)return Ae(At,Et,Dt,pn(Et,Kt),xe);Oe(Et,Kt)}return null}function hi(At,Et,Dt,Kt){for(var xe=null,bi=null,De=Et,Tn=Et=0,ln=null;De!==null&&Tn<Dt.length;Tn++){De.index>Tn?(ln=De,De=null):ln=De.sibling;var mn=ne(At,De,Dt[Tn],Kt);if(mn===null){De===null&&(De=ln);break}h&&De&&mn.alternate===null&&p(At,De),Et=V(mn,Et,Tn),bi===null?xe=mn:bi.sibling=mn,bi=mn,De=ln}if(Tn===Dt.length)return w(At,De),en&&tt(At,Tn),xe;if(De===null){for(;Tn<Dt.length;Tn++)De=Xt(At,Dt[Tn],Kt),De!==null&&(Et=V(De,Et,Tn),bi===null?xe=De:bi.sibling=De,bi=De);return en&&tt(At,Tn),xe}for(De=j(De);Tn<Dt.length;Tn++)ln=Ae(De,At,Tn,Dt[Tn],Kt),ln!==null&&(h&&ln.alternate!==null&&De.delete(ln.key===null?Tn:ln.key),Et=V(ln,Et,Tn),bi===null?xe=ln:bi.sibling=ln,bi=ln);return h&&De.forEach(function(Nu){return p(At,Nu)}),en&&tt(At,Tn),xe}function da(At,Et,Dt,Kt){if(Dt==null)throw Error(i(151));for(var xe=null,bi=null,De=Et,Tn=Et=0,ln=null,mn=Dt.next();De!==null&&!mn.done;Tn++,mn=Dt.next()){De.index>Tn?(ln=De,De=null):ln=De.sibling;var Nu=ne(At,De,mn.value,Kt);if(Nu===null){De===null&&(De=ln);break}h&&De&&Nu.alternate===null&&p(At,De),Et=V(Nu,Et,Tn),bi===null?xe=Nu:bi.sibling=Nu,bi=Nu,De=ln}if(mn.done)return w(At,De),en&&tt(At,Tn),xe;if(De===null){for(;!mn.done;Tn++,mn=Dt.next())mn=Xt(At,mn.value,Kt),mn!==null&&(Et=V(mn,Et,Tn),bi===null?xe=mn:bi.sibling=mn,bi=mn);return en&&tt(At,Tn),xe}for(De=j(De);!mn.done;Tn++,mn=Dt.next())mn=Ae(De,At,Tn,mn.value,Kt),mn!==null&&(h&&mn.alternate!==null&&De.delete(mn.key===null?Tn:mn.key),Et=V(mn,Et,Tn),bi===null?xe=mn:bi.sibling=mn,bi=mn);return h&&De.forEach(function(km){return p(At,km)}),en&&tt(At,Tn),xe}function Hd(At,Et,Dt,Kt){if(typeof Dt=="object"&&Dt!==null&&Dt.type===Cd&&Dt.key===null&&(Dt=Dt.props.children),typeof Dt=="object"&&Dt!==null){switch(Dt.$$typeof){case gm:t:{for(var xe=Dt.key;Et!==null;){if(Et.key===xe){if(xe=Dt.type,xe===Cd){if(Et.tag===7){w(At,Et.sibling),Kt=U(Et,Dt.props.children),Kt.return=At,At=Kt;break t}}else if(Et.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===mc&&Xe(xe)===Et.type){w(At,Et.sibling),Kt=U(Et,Dt.props),se(Kt,Dt),Kt.return=At,At=Kt;break t}w(At,Et);break}else p(At,Et);Et=Et.sibling}Dt.type===Cd?(Kt=bu(Dt.props.children,At.mode,Kt,Dt.key),Kt.return=At,At=Kt):(Kt=fm(Dt.type,Dt.key,Dt.props,null,At.mode,Kt),se(Kt,Dt),Kt.return=At,At=Kt)}return at(At);case pc:t:{for(xe=Dt.key;Et!==null;){if(Et.key===xe)if(Et.tag===4&&Et.stateNode.containerInfo===Dt.containerInfo&&Et.stateNode.implementation===Dt.implementation){w(At,Et.sibling),Kt=U(Et,Dt.children||[]),Kt.return=At,At=Kt;break t}else{w(At,Et);break}else p(At,Et);Et=Et.sibling}Kt=e1(Dt,At.mode,Kt),Kt.return=At,At=Kt}return at(At);case mc:return Dt=Xe(Dt),Hd(At,Et,Dt,Kt)}if(gc(Dt))return hi(At,Et,Dt,Kt);if(f(Dt)){if(xe=f(Dt),typeof xe!="function")throw Error(i(150));return Dt=xe.call(Dt),da(At,Et,Dt,Kt)}if(typeof Dt.then=="function")return Hd(At,Et,qt(Dt),Kt);if(Dt.$$typeof===Su)return Hd(At,Et,pn(At,Dt),Kt);Oe(At,Dt)}return typeof Dt=="string"&&Dt!==""||typeof Dt=="number"||typeof Dt=="bigint"?(Dt=""+Dt,Et!==null&&Et.tag===6?(w(At,Et.sibling),Kt=U(Et,Dt),Kt.return=At,At=Kt):(w(At,Et),Kt=pm(Dt,At.mode,Kt),Kt.return=At,At=Kt),at(At)):w(At,Et)}return function(At,Et,Dt,Kt){try{Nm=0;var xe=Hd(At,Et,Dt,Kt);return jr=null,xe}catch(De){if(De===If||De===R1)throw De;var bi=e(29,De,null,At.mode);return bi.lanes=Kt,bi.return=At,bi}finally{}}}function Ce(){for(var h=So,p=yx=So=0;p<h;){var w=zr[p];zr[p++]=null;var j=zr[p];zr[p++]=null;var U=zr[p];zr[p++]=null;var V=zr[p];if(zr[p++]=null,j!==null&&U!==null){var at=j.pending;at===null?U.next=U:(U.next=at.next,at.next=U),j.pending=U}V!==0&&ou(w,U,V)}}function Gn(h,p,w,j){zr[So++]=h,zr[So++]=p,zr[So++]=w,zr[So++]=j,yx|=j,h.lanes|=j,h=h.alternate,h!==null&&(h.lanes|=j)}function Xa(h,p,w,j){return Gn(h,p,w,j),nl(h)}function el(h,p){return Gn(h,null,null,p),nl(h)}function ou(h,p,w){h.lanes|=w;var j=h.alternate;j!==null&&(j.lanes|=w);for(var U=!1,V=h.return;V!==null;)V.childLanes|=w,j=V.alternate,j!==null&&(j.childLanes|=w),V.tag===22&&(h=V.stateNode,h===null||h._visibility&1||(U=!0)),h=V,V=V.return;return h.tag===3?(V=h.stateNode,U&&p!==null&&(U=31-ks(w),h=V.hiddenUpdates,j=h[U],j===null?h[U]=[p]:j.push(p),p.lane=w|536870912),V):null}function nl(h){if(50<Kf)throw Kf=0,Y1=null,Error(i(185));for(var p=h.return;p!==null;)h=p,p=h.return;return h.tag===3?h.stateNode:null}function gd(h){h.updateQueue={baseState:h.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function il(h,p){h=h.updateQueue,p.updateQueue===h&&(p.updateQueue={baseState:h.baseState,firstBaseUpdate:h.firstBaseUpdate,lastBaseUpdate:h.lastBaseUpdate,shared:h.shared,callbacks:null})}function qa(h){return{lane:h,tag:0,payload:null,callback:null,next:null}}function al(h,p,w){var j=h.updateQueue;if(j===null)return null;if(j=j.shared,nn&2){var U=j.pending;return U===null?p.next=p:(p.next=U.next,U.next=p),j.pending=p,p=nl(h),ou(h,null,w),p}return Gn(h,j,p,w),nl(h)}function P0(h,p,w){if(p=p.updateQueue,p!==null&&(p=p.shared,(w&4194048)!==0)){var j=p.lanes;j&=h.pendingLanes,w|=j,p.lanes=w,B(h,w)}}function d2(h,p){var w=h.updateQueue,j=h.alternate;if(j!==null&&(j=j.updateQueue,w===j)){var U=null,V=null;if(w=w.firstBaseUpdate,w!==null){do{var at={lane:w.lane,tag:w.tag,payload:w.payload,callback:null,next:null};V===null?U=V=at:V=V.next=at,w=w.next}while(w!==null);V===null?U=V=p:V=V.next=p}else U=V=p;w={baseState:j.baseState,firstBaseUpdate:U,lastBaseUpdate:V,shared:j.shared,callbacks:j.callbacks},h.updateQueue=w;return}h=w.lastBaseUpdate,h===null?w.firstBaseUpdate=p:h.next=p,w.lastBaseUpdate=p}function lf(){if(_x){var h=Ff;if(h!==null)throw h}}function vd(h,p,w,j){_x=!1;var U=h.updateQueue;Sc=!1;var V=U.firstBaseUpdate,at=U.lastBaseUpdate,ft=U.shared.pending;if(ft!==null){U.shared.pending=null;var Ot=ft,Ut=Ot.next;Ot.next=null,at===null?V=Ut:at.next=Ut,at=Ot;var Wt=h.alternate;Wt!==null&&(Wt=Wt.updateQueue,ft=Wt.lastBaseUpdate,ft!==at&&(ft===null?Wt.firstBaseUpdate=Ut:ft.next=Ut,Wt.lastBaseUpdate=Ot))}if(V!==null){var Xt=U.baseState;at=0,Wt=Ut=Ot=null,ft=V;do{var ne=ft.lane&-536870913,Ae=ne!==ft.lane;if(Ae?(on&ne)===ne:(j&ne)===ne){ne!==0&&ne===kf&&(_x=!0),Wt!==null&&(Wt=Wt.next={lane:0,tag:ft.tag,payload:ft.payload,callback:null,next:null});t:{var hi=h,da=ft;ne=p;var Hd=w;switch(da.tag){case 1:if(hi=da.payload,typeof hi=="function"){Xt=hi.call(Hd,Xt,ne);break t}Xt=hi;break t;case 3:hi.flags=hi.flags&-65537|128;case 0:if(hi=da.payload,ne=typeof hi=="function"?hi.call(Hd,Xt,ne):hi,ne==null)break t;Xt=rr({},Xt,ne);break t;case 2:Sc=!0}}ne=ft.callback,ne!==null&&(h.flags|=64,Ae&&(h.flags|=8192),Ae=U.callbacks,Ae===null?U.callbacks=[ne]:Ae.push(ne))}else Ae={lane:ne,tag:ft.tag,payload:ft.payload,callback:ft.callback,next:null},Wt===null?(Ut=Wt=Ae,Ot=Xt):Wt=Wt.next=Ae,at|=ne;if(ft=ft.next,ft===null){if(ft=U.shared.pending,ft===null)break;Ae=ft,ft=Ae.next,Ae.next=null,U.lastBaseUpdate=Ae,U.shared.pending=null}}while(!0);Wt===null&&(Ot=Xt),U.baseState=Ot,U.firstBaseUpdate=Ut,U.lastBaseUpdate=Wt,V===null&&(U.shared.lanes=0),Tc|=at,h.lanes=at,h.memoizedState=Xt}}function h2(h,p){if(typeof h!="function")throw Error(i(191,h));h.call(p)}function qC(h,p){var w=h.callbacks;if(w!==null)for(h.callbacks=null,h=0;h<w.length;h++)h2(w[h],p)}function oe(h,p){h=Mu,S(D1,h),S(Tl,p),Mu=h|p.baseLanes}function j0(){S(D1,Mu),S(Tl,Tl.current)}function lu(){Mu=D1.current,v(Tl),v(D1)}function uu(h){var p=h.alternate;S(Bi,Bi.current&1),S(lr,h),Br===null&&(p===null||Tl.current!==null||p.memoizedState!==null)&&(Br=h)}function uf(h){S(Bi,Bi.current),S(lr,h),Br===null&&(Br=h)}function sl(h){h.tag===22?(S(Bi,Bi.current),S(lr,h),Br===null&&(Br=h)):cu()}function cu(){S(Bi,Bi.current),S(lr,lr.current)}function Ls(h){v(lr),Br===h&&(Br=null),v(Bi)}function du(h){for(var p=h;p!==null;){if(p.tag===13){var w=p.memoizedState;if(w!==null&&(w=w.dehydrated,w===null||Tm(w)||Am(w)))return p}else if(p.tag===19&&(p.memoizedProps.revealOrder==="forwards"||p.memoizedProps.revealOrder==="backwards"||p.memoizedProps.revealOrder==="unstable_legacy-backwards"||p.memoizedProps.revealOrder==="together")){if(p.flags&128)return p}else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===h)break;for(;p.sibling===null;){if(p.return===null||p.return===h)return null;p=p.return}p.sibling.return=p.return,p=p.sibling}return null}function yi(){throw Error(i(321))}function hu(h,p){if(p===null)return!1;for(var w=0;w<p.length&&w<h.length;w++)if(!Ba(h[w],p[w]))return!1;return!0}function z0(h,p,w,j,U,V){return Du=V,Fe=p,p.memoizedState=null,p.updateQueue=null,p.lanes=0,be.H=h===null||h.memoizedState===null?i4:bx,Fd=!1,V=w(j,U),Fd=!1,Uf&&(V=py(p,w,j,U)),cf(h),V}function cf(h){be.H=Lm;var p=Fn!==null&&Fn.next!==null;if(Du=0,Zi=Fn=Fe=null,M1=!1,Hf=0,Gf=null,p)throw Error(i(300));h===null||Ji||(h=h.dependencies,h!==null&&ze(h)&&(Ji=!0))}function py(h,p,w,j){Fe=h;var U=0;do{if(Uf&&(Gf=null),Hf=0,Uf=!1,25<=U)throw Error(i(301));if(U+=1,Zi=Fn=null,h.updateQueue!=null){var V=h.updateQueue;V.lastEffect=null,V.events=null,V.stores=null,V.memoCache!=null&&(V.memoCache.index=0)}be.H=a4,V=p(w,j)}while(Uf);return V}function my(){var h=be.H,p=h.useState()[0];return p=typeof p.then=="function"?ao(p):p,h=h.useState()[0],(Fn!==null?Fn.memoizedState:null)!==h&&(Fe.flags|=1024),p}function rl(){var h=O1!==0;return O1=0,h}function io(h,p,w){p.updateQueue=h.updateQueue,p.flags&=-2053,h.lanes&=~w}function B0(h){if(M1){for(h=h.memoizedState;h!==null;){var p=h.queue;p!==null&&(p.pending=null),h=h.next}M1=!1}Du=0,Zi=Fn=Fe=null,Uf=!1,Hf=O1=0,Gf=null}function Na(){var h={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zi===null?Fe.memoizedState=Zi=h:Zi=Zi.next=h,Zi}function qn(){if(Fn===null){var h=Fe.alternate;h=h!==null?h.memoizedState:null}else h=Fn.next;var p=Zi===null?Fe.memoizedState:Zi.next;if(p!==null)Zi=p,Fn=h;else{if(h===null)throw Fe.alternate===null?Error(i(467)):Error(i(310));Fn=h,h={memoizedState:Fn.memoizedState,baseState:Fn.baseState,baseQueue:Fn.baseQueue,queue:Fn.queue,next:null},Zi===null?Fe.memoizedState=Zi=h:Zi=Zi.next=h}return Zi}function yd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ao(h){var p=Hf;return Hf+=1,Gf===null&&(Gf=[]),h=ye(Gf,h,p),p=Fe,(Zi===null?p.memoizedState:Zi.next)===null&&(p=p.alternate,be.H=p===null||p.memoizedState===null?i4:bx),h}function kn(h){if(h!==null&&typeof h=="object"){if(typeof h.then=="function")return ao(h);if(h.$$typeof===Su)return Te(h)}throw Error(i(438,String(h)))}function df(h){var p=null,w=Fe.updateQueue;if(w!==null&&(p=w.memoCache),p==null){var j=Fe.alternate;j!==null&&(j=j.updateQueue,j!==null&&(j=j.memoCache,j!=null&&(p={data:j.data.map(function(U){return U.slice()}),index:0})))}if(p==null&&(p={data:[],index:0}),w===null&&(w=yd(),Fe.updateQueue=w),w.memoCache=p,w=p.data[p.index],w===void 0)for(w=p.data[p.index]=Array(h),j=0;j<h;j++)w[j]=gl;return p.index++,w}function ol(h,p){return typeof p=="function"?p(h):p}function hf(h){var p=qn();return fu(p,Fn,h)}function fu(h,p,w){var j=h.queue;if(j===null)throw Error(i(311));j.lastRenderedReducer=w;var U=h.baseQueue,V=j.pending;if(V!==null){if(U!==null){var at=U.next;U.next=V.next,V.next=at}p.baseQueue=U=V,j.pending=null}if(V=h.baseState,U===null)h.memoizedState=V;else{p=U.next;var ft=at=null,Ot=null,Ut=p,Wt=!1;do{var Xt=Ut.lane&-536870913;if(Xt!==Ut.lane?(on&Xt)===Xt:(Du&Xt)===Xt){var ne=Ut.revertLane;if(ne===0)Ot!==null&&(Ot=Ot.next={lane:0,revertLane:0,gesture:null,action:Ut.action,hasEagerState:Ut.hasEagerState,eagerState:Ut.eagerState,next:null}),Xt===kf&&(Wt=!0);else if((Du&ne)===ne){Ut=Ut.next,ne===kf&&(Wt=!0);continue}else Xt={lane:0,revertLane:Ut.revertLane,gesture:null,action:Ut.action,hasEagerState:Ut.hasEagerState,eagerState:Ut.eagerState,next:null},Ot===null?(ft=Ot=Xt,at=V):Ot=Ot.next=Xt,Fe.lanes|=ne,Tc|=ne;Xt=Ut.action,Fd&&w(V,Xt),V=Ut.hasEagerState?Ut.eagerState:w(V,Xt)}else ne={lane:Xt,revertLane:Ut.revertLane,gesture:Ut.gesture,action:Ut.action,hasEagerState:Ut.hasEagerState,eagerState:Ut.eagerState,next:null},Ot===null?(ft=Ot=ne,at=V):Ot=Ot.next=ne,Fe.lanes|=Xt,Tc|=Xt;Ut=Ut.next}while(Ut!==null&&Ut!==p);if(Ot===null?at=V:Ot.next=ft,!Ba(V,h.memoizedState)&&(Ji=!0,Wt&&(w=Ff,w!==null)))throw w;h.memoizedState=V,h.baseState=at,h.baseQueue=Ot,j.lastRenderedState=V}return U===null&&(j.lanes=0),[h.memoizedState,j.dispatch]}function _d(h){var p=qn(),w=p.queue;if(w===null)throw Error(i(311));w.lastRenderedReducer=h;var j=w.dispatch,U=w.pending,V=p.memoizedState;if(U!==null){w.pending=null;var at=U=U.next;do V=h(V,at.action),at=at.next;while(at!==U);Ba(V,p.memoizedState)||(Ji=!0),p.memoizedState=V,p.baseQueue===null&&(p.baseState=V),w.lastRenderedState=V}return[V,j]}function so(h,p,w){var j=Fe,U=qn(),V=en;if(V){if(w===void 0)throw Error(i(407));w=w()}else w=p();var at=!Ba((Fn||U).memoizedState,w);if(at&&(U.memoizedState=w,Ji=!0),U=U.queue,vy(k0.bind(null,j,U,h),[h]),U.getSnapshot!==p||at||Zi!==null&&Zi.memoizedState.tag&1){if(j.flags|=2048,gs(9,{destroy:void 0},ll.bind(null,j,U,w,p),null),Vn===null)throw Error(i(349));V||Du&127||QC(j,p,w)}return w}function QC(h,p,w){h.flags|=16384,h={getSnapshot:p,value:w},p=Fe.updateQueue,p===null?(p=yd(),Fe.updateQueue=p,p.stores=[h]):(w=p.stores,w===null?p.stores=[h]:w.push(h))}function ll(h,p,w,j){p.value=w,p.getSnapshot=j,ff(p)&&F0(h)}function k0(h,p,w){return w(function(){ff(p)&&F0(h)})}function ff(h){var p=h.getSnapshot;h=h.value;try{var w=p();return!Ba(h,w)}catch{return!0}}function F0(h){var p=el(h,2);p!==null&&ys(p,h,2)}function ms(h){var p=Na();if(typeof h=="function"){var w=h;if(h=w(),Fd){H(!0);try{w()}finally{H(!1)}}}return p.memoizedState=p.baseState=h,p.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ol,lastRenderedState:h},p}function Ps(h,p,w,j){return h.baseState=w,fu(h,Fn,typeof j=="function"?j:ol)}function ul(h,p,w,j,U){if(oc(h))throw Error(i(485));if(h=p.action,h!==null){var V={payload:U,action:h,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(at){V.listeners.push(at)}};be.T!==null?w(!0):V.isTransition=!1,j(V),w=p.pending,w===null?(V.next=p.pending=V,ro(p,V)):(V.next=w.next,p.pending=w.next=V)}}function ro(h,p){var w=p.action,j=p.payload,U=h.state;if(p.isTransition){var V=be.T,at={};be.T=at;try{var ft=w(U,j),Ot=be.S;Ot!==null&&Ot(at,ft),oo(h,p,ft)}catch(Ut){I0(h,p,Ut)}finally{V!==null&&at.types!==null&&(V.types=at.types),be.T=V}}else try{V=w(U,j),oo(h,p,V)}catch(Ut){I0(h,p,Ut)}}function oo(h,p,w){w!==null&&typeof w=="object"&&typeof w.then=="function"?w.then(function(j){lo(h,p,j)},function(j){return I0(h,p,j)}):lo(h,p,w)}function lo(h,p,w){p.status="fulfilled",p.value=w,gy(p),h.state=w,p=h.pending,p!==null&&(w=p.next,w===p?h.pending=null:(w=w.next,p.next=w,ro(h,w)))}function I0(h,p,w){var j=h.pending;if(h.pending=null,j!==null){j=j.next;do p.status="rejected",p.reason=w,gy(p),p=p.next;while(p!==j)}h.action=null}function gy(h){h=h.listeners;for(var p=0;p<h.length;p++)(0,h[p])()}function f2(h,p){return p}function uo(h,p){if(en){var w=Vn.formState;if(w!==null){t:{var j=Fe;if(en){if(ci){var U=L3(ci,Lr);if(U){ci=rx(U),j=P3(U);break t}}ht(j)}j=!1}j&&(p=w[0])}}w=Na(),w.memoizedState=w.baseState=p,j={pending:null,lanes:0,dispatch:null,lastRenderedReducer:f2,lastRenderedState:p},w.queue=j,w=Ey.bind(null,Fe,j),j.dispatch=w,j=ms(!1);var V=mf.bind(null,Fe,!1,j.queue);return j=Na(),U={state:p,dispatch:null,action:h,pending:null},j.queue=U,w=ul.bind(null,Fe,U,V,w),U.dispatch=w,j.memoizedState=h,[p,w,!1]}function p2(h){var p=qn();return co(p,Fn,h)}function co(h,p,w){if(p=fu(h,p,f2)[0],h=hf(ol)[0],typeof p=="object"&&p!==null&&typeof p.then=="function")try{var j=ao(p)}catch(at){throw at===If?R1:at}else j=p;p=qn();var U=p.queue,V=U.dispatch;return w!==p.memoizedState&&(Fe.flags|=2048,gs(9,{destroy:void 0},U0.bind(null,U,w),null)),[j,V,h]}function U0(h,p){h.action=p}function H0(h){var p=qn(),w=Fn;if(w!==null)return co(p,w,h);qn(),p=p.memoizedState,w=qn();var j=w.queue.dispatch;return w.memoizedState=h,[p,j,!1]}function gs(h,p,w,j){return h={tag:h,create:w,deps:j,inst:p,next:null},p=Fe.updateQueue,p===null&&(p=yd(),Fe.updateQueue=p),w=p.lastEffect,w===null?p.lastEffect=h.next=h:(j=w.next,w.next=h,h.next=j,p.lastEffect=h),h}function bd(){return qn().memoizedState}function G0(h,p,w,j){var U=Na();Fe.flags|=h,U.memoizedState=gs(1|p,{destroy:void 0},w,j===void 0?null:j)}function pf(h,p,w,j){var U=qn();j=j===void 0?null:j;var V=U.memoizedState.inst;Fn!==null&&j!==null&&hu(j,Fn.memoizedState.deps)?U.memoizedState=gs(p,V,w,j):(Fe.flags|=h,U.memoizedState=gs(1|p,V,w,j))}function m2(h,p){G0(8390656,8,h,p)}function vy(h,p){pf(2048,8,h,p)}function WC(h){Fe.flags|=4;var p=Fe.updateQueue;if(p===null)p=yd(),Fe.updateQueue=p,p.events=[h];else{var w=p.events;w===null?p.events=[h]:w.push(h)}}function yy(h){var p=qn().memoizedState;return WC({ref:p,nextImpl:h}),function(){if(nn&2)throw Error(i(440));return p.impl.apply(void 0,arguments)}}function g2(h,p){return pf(4,2,h,p)}function _y(h,p){return pf(4,4,h,p)}function ZC(h,p){if(typeof p=="function"){h=h();var w=p(h);return function(){typeof w=="function"?w():p(null)}}if(p!=null)return h=h(),p.current=h,function(){p.current=null}}function v2(h,p,w){w=w!=null?w.concat([h]):null,pf(4,4,ZC.bind(null,p,h),w)}function y2(){}function by(h,p){var w=qn();p=p===void 0?null:p;var j=w.memoizedState;return p!==null&&hu(p,j[1])?j[0]:(w.memoizedState=[h,p],h)}function V0(h,p){var w=qn();p=p===void 0?null:p;var j=w.memoizedState;if(p!==null&&hu(p,j[1]))return j[0];if(j=h(),Fd){H(!0);try{h()}finally{H(!1)}}return w.memoizedState=[j,p],j}function Sy(h,p,w){return w===void 0||Du&1073741824&&!(on&261930)?h.memoizedState=p:(h.memoizedState=w,h=lm(),Fe.lanes|=h,Tc|=h,w)}function Y0(h,p,w,j){return Ba(w,p)?w:Tl.current!==null?(h=Sy(h,w,j),Ba(h,p)||(Ji=!0),h):!(Du&42)||Du&1073741824&&!(on&261930)?(Ji=!0,h.memoizedState=w):(h=lm(),Fe.lanes|=h,Tc|=h,p)}function _2(h,p,w,j,U){var V=yl();ua(V!==0&&8>V?V:8);var at=be.T,ft={};be.T=ft,mf(h,!1,p,w);try{var Ot=U(),Ut=be.S;if(Ut!==null&&Ut(ft,Ot),Ot!==null&&typeof Ot=="object"&&typeof Ot.then=="function"){var Wt=On(Ot,j);rc(h,p,Wt,Bs(h))}else rc(h,p,j,Bs(h))}catch(Xt){rc(h,p,{then:function(){},status:"rejected",reason:Xt},Bs())}finally{ua(V),at!==null&&ft.types!==null&&(at.types=ft.types),be.T=at}}function b2(h){var p=h.memoizedState;if(p!==null)return p;p={memoizedState:bs,baseState:bs,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ol,lastRenderedState:bs},next:null};var w={};return p.next={memoizedState:w,baseState:w,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ol,lastRenderedState:w},next:null},h.memoizedState=p,h=h.alternate,h!==null&&(h.memoizedState=p),p}function xy(){return Te(vc)}function pu(){return qn().memoizedState}function S2(){return qn().memoizedState}function JC(h){for(var p=h.return;p!==null;){switch(p.tag){case 24:case 3:var w=Bs();h=qa(w);var j=al(p,h,w);j!==null&&(ys(j,p,w),P0(j,p,w)),p={cache:zt()},h.payload=p;return}p=p.return}}function La(h,p,w){var j=Bs();w={lane:j,revertLane:0,gesture:null,action:w,hasEagerState:!1,eagerState:null,next:null},oc(h)?x2(p,w):(w=Xa(h,p,w,j),w!==null&&(ys(w,h,j),K0(w,p,j)))}function Ey(h,p,w){var j=Bs();rc(h,p,w,j)}function rc(h,p,w,j){var U={lane:j,revertLane:0,gesture:null,action:w,hasEagerState:!1,eagerState:null,next:null};if(oc(h))x2(p,U);else{var V=h.alternate;if(h.lanes===0&&(V===null||V.lanes===0)&&(V=p.lastRenderedReducer,V!==null))try{var at=p.lastRenderedState,ft=V(at,w);if(U.hasEagerState=!0,U.eagerState=ft,Ba(ft,at))return Gn(h,p,U,0),Vn===null&&Ce(),!1}catch{}finally{}if(w=Xa(h,p,U,j),w!==null)return ys(w,h,j),K0(w,p,j),!0}return!1}function mf(h,p,w,j){if(j={lane:2,revertLane:wn(),gesture:null,action:j,hasEagerState:!1,eagerState:null,next:null},oc(h)){if(p)throw Error(i(479))}else p=Xa(h,w,j,2),p!==null&&ys(p,h,2)}function oc(h){var p=h.alternate;return h===Fe||p!==null&&p===Fe}function x2(h,p){Uf=M1=!0;var w=h.pending;w===null?p.next=p:(p.next=w.next,w.next=p),h.pending=p}function K0(h,p,w){if(w&4194048){var j=p.lanes;j&=h.pendingLanes,w|=j,p.lanes=w,B(h,w)}}function Ty(h,p,w,j){p=h.memoizedState,w=w(j,p),w=w==null?p:rr({},p,w),h.memoizedState=w,h.lanes===0&&(h.updateQueue.baseState=w)}function X0(h,p,w,j,U,V,at){return h=h.stateNode,typeof h.shouldComponentUpdate=="function"?h.shouldComponentUpdate(j,V,at):p.prototype&&p.prototype.isPureReactComponent?!Qt(w,j)||!Qt(U,V):!0}function E2(h,p,w,j){h=p.state,typeof p.componentWillReceiveProps=="function"&&p.componentWillReceiveProps(w,j),typeof p.UNSAFE_componentWillReceiveProps=="function"&&p.UNSAFE_componentWillReceiveProps(w,j),p.state!==h&&N1.enqueueReplaceState(p,p.state,null)}function cl(h,p){var w=p;if("ref"in p){w={};for(var j in p)j!=="ref"&&(w[j]=p[j])}if(h=h.defaultProps){w===p&&(w=rr({},w));for(var U in h)w[U]===void 0&&(w[U]=h[U])}return w}function q0(h,p){try{var w=h.onUncaughtError;w(p.value,{componentStack:p.stack})}catch(j){setTimeout(function(){throw j})}}function T2(h,p,w){try{var j=h.onCaughtError;j(w.value,{componentStack:w.stack,errorBoundary:p.tag===1?p.stateNode:null})}catch(U){setTimeout(function(){throw U})}}function gf(h,p,w){return w=qa(w),w.tag=3,w.payload={element:null},w.callback=function(){q0(h,p)},w}function Q0(h){return h=qa(h),h.tag=3,h}function Ay(h,p,w,j){var U=w.type.getDerivedStateFromError;if(typeof U=="function"){var V=j.value;h.payload=function(){return U(V)},h.callback=function(){T2(p,w,j)}}var at=w.stateNode;at!==null&&typeof at.componentDidCatch=="function"&&(h.callback=function(){T2(p,w,j),typeof U!="function"&&(Ac===null?Ac=new Set([this]):Ac.add(this));var ft=j.stack;this.componentDidCatch(j.value,{componentStack:ft!==null?ft:""})})}function Qa(h,p,w,j,U){if(w.flags|=32768,j!==null&&typeof j=="object"&&typeof j.then=="function"){if(p=w.alternate,p!==null&&we(p,w,U,!0),w=lr.current,w!==null){switch(w.tag){case 31:case 13:return Br===null?Tf():w.alternate===null&&Ei===0&&(Ei=3),w.flags&=-257,w.flags|=65536,w.lanes=U,j===w1?w.flags|=16384:(p=w.updateQueue,p===null?w.updateQueue=new Set([j]):p.add(j),Zy(h,j,U)),!1;case 22:return w.flags|=65536,j===w1?w.flags|=16384:(p=w.updateQueue,p===null?(p={transitions:null,markerInstances:null,retryQueue:new Set([j])},w.updateQueue=p):(w=p.retryQueue,w===null?p.retryQueue=new Set([j]):w.add(j)),Zy(h,j,U)),!1}throw Error(i(435,w.tag))}return Zy(h,j,U),Tf(),!1}if(en)return p=lr.current,p!==null?(!(p.flags&65536)&&(p.flags|=256),p.flags|=65536,p.lanes=U,j!==mx&&(h=Error(i(422),{cause:j}),wt(Q(h,w)))):(j!==mx&&(p=Error(i(423),{cause:j}),wt(Q(p,w))),h=h.current.alternate,h.flags|=65536,U&=-U,h.lanes|=U,j=Q(j,w),U=gf(h.stateNode,j,U),d2(h,U),Ei!==4&&(Ei=2)),!1;var V=Error(i(520),{cause:j});if(V=Q(V,w),zm===null?zm=[V]:zm.push(V),Ei!==4&&(Ei=2),p===null)return!0;j=Q(j,w),w=p;do{switch(w.tag){case 3:return w.flags|=65536,h=U&-U,w.lanes|=h,h=gf(w.stateNode,j,h),d2(w,h),!1;case 1:if(p=w.type,V=w.stateNode,(w.flags&128)===0&&(typeof p.getDerivedStateFromError=="function"||V!==null&&typeof V.componentDidCatch=="function"&&(Ac===null||!Ac.has(V))))return w.flags|=65536,U&=-U,w.lanes|=U,U=Q0(U),Ay(U,h,w,j),d2(w,U),!1}w=w.return}while(w!==null);return!1}function _a(h,p,w,j){p.child=h===null?n4(p,null,w,j):kd(p,h.child,w,j)}function W0(h,p,w,j,U){w=w.render;var V=p.ref;if("ref"in j){var at={};for(var ft in j)ft!=="ref"&&(at[ft]=j[ft])}else at=j;return Se(p),j=z0(h,p,w,at,V,U),ft=rl(),h!==null&&!Ji?(io(h,p,U),js(h,p,U)):(en&&ft&&ut(p),p.flags|=1,_a(h,p,j,U),p.child)}function Cy(h,p,w,j,U){if(h===null){var V=w.type;return typeof V=="function"&&!hm(V)&&V.defaultProps===void 0&&w.compare===null?(p.tag=15,p.type=V,Ry(h,p,V,j,U)):(h=fm(w.type,null,j,p,p.mode,U),h.ref=p.ref,h.return=p,p.child=h)}if(V=h.child,!_f(h,U)){var at=V.memoizedProps;if(w=w.compare,w=w!==null?w:Qt,w(at,j)&&h.ref===p.ref)return js(h,p,U)}return p.flags|=1,h=ml(V,j),h.ref=p.ref,h.return=p,p.child=h}function Ry(h,p,w,j,U){if(h!==null){var V=h.memoizedProps;if(Qt(V,j)&&h.ref===p.ref)if(Ji=!1,p.pendingProps=j=V,_f(h,U))h.flags&131072&&(Ji=!0);else return p.lanes=h.lanes,js(h,p,U)}return A2(h,p,w,j,U)}function mu(h,p,w,j){var U=j.children,V=h!==null?h.memoizedState:null;if(h===null&&p.stateNode===null&&(p.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),j.mode==="hidden"){if(p.flags&128){if(V=V!==null?V.baseLanes|w:w,h!==null){for(j=p.child=h.child,U=0;j!==null;)U=U|j.lanes|j.childLanes,j=j.sibling;j=U&~V}else j=0,p.child=null;return vf(h,p,V,w,j)}if(w&536870912)p.memoizedState={baseLanes:0,cachePool:null},h!==null&&la(p,V!==null?V.cachePool:null),V!==null?oe(p,V):j0(),sl(p);else return j=p.lanes=536870912,vf(h,p,V!==null?V.baseLanes|w:w,w,j)}else V!==null?(la(p,V.cachePool),oe(p,V),cu(),p.memoizedState=null):(h!==null&&la(p,null),j0(),cu());return _a(h,p,U,w),p.child}function Ar(h,p){return h!==null&&h.tag===22||p.stateNode!==null||(p.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.sibling}function vf(h,p,w,j,U){var V=Nn();return V=V===null?null:{parent:Dr?_i._currentValue:_i._currentValue2,pool:V},p.memoizedState={baseLanes:w,cachePool:V},h!==null&&la(p,null),j0(),sl(p),h!==null&&we(h,p,j,!0),p.childLanes=U,null}function Sd(h,p){return p=ho({mode:p.mode,children:p.children},h.mode),p.ref=h.ref,h.child=p,p.return=h,p}function yf(h,p,w){return kd(p,h.child,null,w),h=Sd(p,p.pendingProps),h.flags|=2,Ls(p),p.memoizedState=null,h}function Z0(h,p,w){var j=p.pendingProps,U=(p.flags&128)!==0;if(p.flags&=-129,h===null){if(en){if(j.mode==="hidden")return h=Sd(p,j),p.lanes=536870912,Ar(null,h);if(uf(p),(h=ci)?(h=k3(h,Lr),h!==null&&(p.memoizedState={dehydrated:h,treeContext:Ru!==null?{id:Ss,overflow:Sl}:null,retryLane:536870912,hydrationErrors:null},w=t1(h),w.return=p,p.child=w,ca=p,ci=null)):h=null,h===null)throw ht(p);return p.lanes=536870912,null}return Sd(p,j)}var V=h.memoizedState;if(V!==null){var at=V.dehydrated;if(uf(p),U)if(p.flags&256)p.flags&=-257,p=yf(h,p,w);else if(p.memoizedState!==null)p.child=h.child,p.flags|=128,p=null;else throw Error(i(558));else if(Ji||we(h,p,w,!1),U=(w&h.childLanes)!==0,Ji||U){if(j=Vn,j!==null&&(at=L(j,w),at!==0&&at!==V.retryLane))throw V.retryLane=at,el(h,at),ys(j,h,at),L1;Tf(),p=yf(h,p,w)}else h=V.treeContext,ja&&(ci=ox(at),ca=p,en=!0,wu=null,Lr=!1,h!==null&&ot(p,h)),p=Sd(p,j),p.flags|=4096;return p}return h=ml(h.child,{mode:j.mode,children:j.children}),h.ref=p.ref,p.child=h,h.return=p,h}function J0(h,p){var w=p.ref;if(w===null)h!==null&&h.ref!==null&&(p.flags|=4194816);else{if(typeof w!="function"&&typeof w!="object")throw Error(i(284));(h===null||h.ref!==w)&&(p.flags|=4194816)}}function A2(h,p,w,j,U){return Se(p),w=z0(h,p,w,j,void 0,U),j=rl(),h!==null&&!Ji?(io(h,p,U),js(h,p,U)):(en&&j&&ut(p),p.flags|=1,_a(h,p,w,U),p.child)}function C2(h,p,w,j,U,V){return Se(p),p.updateQueue=null,w=py(p,j,w,U),cf(h),j=rl(),h!==null&&!Ji?(io(h,p,V),js(h,p,V)):(en&&j&&ut(p),p.flags|=1,_a(h,p,w,V),p.child)}function R2(h,p,w,j,U){if(Se(p),p.stateNode===null){var V=Pd,at=w.contextType;typeof at=="object"&&at!==null&&(V=Te(at)),V=new w(j,V),p.memoizedState=V.state!==null&&V.state!==void 0?V.state:null,V.updater=N1,p.stateNode=V,V._reactInternals=p,V=p.stateNode,V.props=j,V.state=p.memoizedState,V.refs={},gd(p),at=w.contextType,V.context=typeof at=="object"&&at!==null?Te(at):Pd,V.state=p.memoizedState,at=w.getDerivedStateFromProps,typeof at=="function"&&(Ty(p,w,at,j),V.state=p.memoizedState),typeof w.getDerivedStateFromProps=="function"||typeof V.getSnapshotBeforeUpdate=="function"||typeof V.UNSAFE_componentWillMount!="function"&&typeof V.componentWillMount!="function"||(at=V.state,typeof V.componentWillMount=="function"&&V.componentWillMount(),typeof V.UNSAFE_componentWillMount=="function"&&V.UNSAFE_componentWillMount(),at!==V.state&&N1.enqueueReplaceState(V,V.state,null),vd(p,j,V,U),lf(),V.state=p.memoizedState),typeof V.componentDidMount=="function"&&(p.flags|=4194308),j=!0}else if(h===null){V=p.stateNode;var ft=p.memoizedProps,Ot=cl(w,ft);V.props=Ot;var Ut=V.context,Wt=w.contextType;at=Pd,typeof Wt=="object"&&Wt!==null&&(at=Te(Wt));var Xt=w.getDerivedStateFromProps;Wt=typeof Xt=="function"||typeof V.getSnapshotBeforeUpdate=="function",ft=p.pendingProps!==ft,Wt||typeof V.UNSAFE_componentWillReceiveProps!="function"&&typeof V.componentWillReceiveProps!="function"||(ft||Ut!==at)&&E2(p,V,j,at),Sc=!1;var ne=p.memoizedState;V.state=ne,vd(p,j,V,U),lf(),Ut=p.memoizedState,ft||ne!==Ut||Sc?(typeof Xt=="function"&&(Ty(p,w,Xt,j),Ut=p.memoizedState),(Ot=Sc||X0(p,w,Ot,j,ne,Ut,at))?(Wt||typeof V.UNSAFE_componentWillMount!="function"&&typeof V.componentWillMount!="function"||(typeof V.componentWillMount=="function"&&V.componentWillMount(),typeof V.UNSAFE_componentWillMount=="function"&&V.UNSAFE_componentWillMount()),typeof V.componentDidMount=="function"&&(p.flags|=4194308)):(typeof V.componentDidMount=="function"&&(p.flags|=4194308),p.memoizedProps=j,p.memoizedState=Ut),V.props=j,V.state=Ut,V.context=at,j=Ot):(typeof V.componentDidMount=="function"&&(p.flags|=4194308),j=!1)}else{V=p.stateNode,il(h,p),at=p.memoizedProps,Wt=cl(w,at),V.props=Wt,Xt=p.pendingProps,ne=V.context,Ut=w.contextType,Ot=Pd,typeof Ut=="object"&&Ut!==null&&(Ot=Te(Ut)),ft=w.getDerivedStateFromProps,(Ut=typeof ft=="function"||typeof V.getSnapshotBeforeUpdate=="function")||typeof V.UNSAFE_componentWillReceiveProps!="function"&&typeof V.componentWillReceiveProps!="function"||(at!==Xt||ne!==Ot)&&E2(p,V,j,Ot),Sc=!1,ne=p.memoizedState,V.state=ne,vd(p,j,V,U),lf();var Ae=p.memoizedState;at!==Xt||ne!==Ae||Sc||h!==null&&h.dependencies!==null&&ze(h.dependencies)?(typeof ft=="function"&&(Ty(p,w,ft,j),Ae=p.memoizedState),(Wt=Sc||X0(p,w,Wt,j,ne,Ae,Ot)||h!==null&&h.dependencies!==null&&ze(h.dependencies))?(Ut||typeof V.UNSAFE_componentWillUpdate!="function"&&typeof V.componentWillUpdate!="function"||(typeof V.componentWillUpdate=="function"&&V.componentWillUpdate(j,Ae,Ot),typeof V.UNSAFE_componentWillUpdate=="function"&&V.UNSAFE_componentWillUpdate(j,Ae,Ot)),typeof V.componentDidUpdate=="function"&&(p.flags|=4),typeof V.getSnapshotBeforeUpdate=="function"&&(p.flags|=1024)):(typeof V.componentDidUpdate!="function"||at===h.memoizedProps&&ne===h.memoizedState||(p.flags|=4),typeof V.getSnapshotBeforeUpdate!="function"||at===h.memoizedProps&&ne===h.memoizedState||(p.flags|=1024),p.memoizedProps=j,p.memoizedState=Ae),V.props=j,V.state=Ae,V.context=Ot,j=Wt):(typeof V.componentDidUpdate!="function"||at===h.memoizedProps&&ne===h.memoizedState||(p.flags|=4),typeof V.getSnapshotBeforeUpdate!="function"||at===h.memoizedProps&&ne===h.memoizedState||(p.flags|=1024),j=!1)}return V=j,J0(h,p),j=(p.flags&128)!==0,V||j?(V=p.stateNode,w=j&&typeof w.getDerivedStateFromError!="function"?null:V.render(),p.flags|=1,h!==null&&j?(p.child=kd(p,h.child,null,U),p.child=kd(p,null,w,U)):_a(h,p,w,U),p.memoizedState=V.state,h=p.child):h=js(h,p,U),h}function wy(h,p,w,j){return yt(),p.flags|=256,_a(h,p,w,j),p.child}function $0(h){return{baseLanes:h,cachePool:kt()}}function dl(h,p,w){return h=h!==null?h.childLanes&~w:0,p&&(h|=cr),h}function Dy(h,p,w){var j=p.pendingProps,U=!1,V=(p.flags&128)!==0,at;if((at=V)||(at=h!==null&&h.memoizedState===null?!1:(Bi.current&2)!==0),at&&(U=!0,p.flags&=-129),at=(p.flags&32)!==0,p.flags&=-33,h===null){if(en){if(U?uu(p):cu(),(h=ci)?(h=ZD(h,Lr),h!==null&&(p.memoizedState={dehydrated:h,treeContext:Ru!==null?{id:Ss,overflow:Sl}:null,retryLane:536870912,hydrationErrors:null},w=t1(h),w.return=p,p.child=w,ca=p,ci=null)):h=null,h===null)throw ht(p);return Am(h)?p.lanes=32:p.lanes=536870912,null}var ft=j.children;return j=j.fallback,U?(cu(),U=p.mode,ft=ho({mode:"hidden",children:ft},U),j=bu(j,U,w,null),ft.return=p,j.return=p,ft.sibling=j,p.child=ft,j=p.child,j.memoizedState=$0(w),j.childLanes=dl(h,at,w),p.memoizedState=P1,Ar(null,j)):(uu(p),My(p,ft))}var Ot=h.memoizedState;if(Ot!==null&&(ft=Ot.dehydrated,ft!==null)){if(V)p.flags&256?(uu(p),p.flags&=-257,p=vs(h,p,w)):p.memoizedState!==null?(cu(),p.child=h.child,p.flags|=128,p=null):(cu(),ft=j.fallback,U=p.mode,j=ho({mode:"visible",children:j.children},U),ft=bu(ft,U,w,null),ft.flags|=2,j.return=p,ft.return=p,j.sibling=ft,p.child=j,kd(p,h.child,null,w),j=p.child,j.memoizedState=$0(w),j.childLanes=dl(h,at,w),p.memoizedState=P1,p=Ar(null,j));else if(uu(p),Am(ft))at=Od(ft).digest,j=Error(i(419)),j.stack="",j.digest=at,wt({value:j,source:null,stack:null}),p=vs(h,p,w);else if(Ji||we(h,p,w,!1),at=(w&h.childLanes)!==0,Ji||at){if(at=Vn,at!==null&&(j=L(at,w),j!==0&&j!==Ot.retryLane))throw Ot.retryLane=j,el(h,j),ys(at,h,j),L1;Tm(ft)||Tf(),p=vs(h,p,w)}else Tm(ft)?(p.flags|=192,p.child=h.child,p=null):(h=Ot.treeContext,ja&&(ci=z3(ft),ca=p,en=!0,wu=null,Lr=!1,h!==null&&ot(p,h)),p=My(p,j.children),p.flags|=4096);return p}return U?(cu(),ft=j.fallback,U=p.mode,Ot=h.child,V=Ot.sibling,j=ml(Ot,{mode:"hidden",children:j.children}),j.subtreeFlags=Ot.subtreeFlags&65011712,V!==null?ft=ml(V,ft):(ft=bu(ft,U,w,null),ft.flags|=2),ft.return=p,j.return=p,j.sibling=ft,p.child=j,Ar(null,j),j=p.child,ft=h.child.memoizedState,ft===null?ft=$0(w):(U=ft.cachePool,U!==null?(Ot=Dr?_i._currentValue:_i._currentValue2,U=U.parent!==Ot?{parent:Ot,pool:Ot}:U):U=kt(),ft={baseLanes:ft.baseLanes|w,cachePool:U}),j.memoizedState=ft,j.childLanes=dl(h,at,w),p.memoizedState=P1,Ar(h.child,j)):(uu(p),w=h.child,h=w.sibling,w=ml(w,{mode:"visible",children:j.children}),w.return=p,w.sibling=null,h!==null&&(at=p.deletions,at===null?(p.deletions=[h],p.flags|=16):at.push(h)),p.child=w,p.memoizedState=null,w)}function My(h,p){return p=ho({mode:"visible",children:p},h.mode),p.return=h,h.child=p}function ho(h,p){return h=e(22,h,null,p),h.lanes=0,h}function vs(h,p,w){return kd(p,h.child,null,w),h=My(p,p.pendingProps.children),h.flags|=2,p.memoizedState=null,h}function tm(h,p,w){h.lanes|=p;var j=h.alternate;j!==null&&(j.lanes|=p),$t(h.return,p,w)}function ke(h,p,w,j,U,V){var at=h.memoizedState;at===null?h.memoizedState={isBackwards:p,rendering:null,renderingStartTime:0,last:j,tail:w,tailMode:U,treeForkCount:V}:(at.isBackwards=p,at.rendering=null,at.renderingStartTime=0,at.last=j,at.tail=w,at.tailMode=U,at.treeForkCount=V)}function Ht(h,p,w){var j=p.pendingProps,U=j.revealOrder,V=j.tail;j=j.children;var at=Bi.current,ft=(at&2)!==0;if(ft?(at=at&1|2,p.flags|=128):at&=1,S(Bi,at),_a(h,p,j,w),j=en?Ct:0,!ft&&h!==null&&h.flags&128)t:for(h=p.child;h!==null;){if(h.tag===13)h.memoizedState!==null&&tm(h,w,p);else if(h.tag===19)tm(h,w,p);else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===p)break t;for(;h.sibling===null;){if(h.return===null||h.return===p)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}switch(U){case"forwards":for(w=p.child,U=null;w!==null;)h=w.alternate,h!==null&&du(h)===null&&(U=w),w=w.sibling;w=U,w===null?(U=p.child,p.child=null):(U=w.sibling,w.sibling=null),ke(p,!1,U,w,V,j);break;case"backwards":case"unstable_legacy-backwards":for(w=null,U=p.child,p.child=null;U!==null;){if(h=U.alternate,h!==null&&du(h)===null){p.child=U;break}h=U.sibling,U.sibling=w,w=U,U=h}ke(p,!0,w,null,V,j);break;case"together":ke(p,!1,null,null,void 0,j);break;default:p.memoizedState=null}return p.child}function js(h,p,w){if(h!==null&&(p.dependencies=h.dependencies),Tc|=p.lanes,!(w&p.childLanes))if(h!==null){if(we(h,p,w,!1),(w&p.childLanes)===0)return null}else return null;if(h!==null&&p.child!==h.child)throw Error(i(153));if(p.child!==null){for(h=p.child,w=ml(h,h.pendingProps),p.child=w,w.return=p;h.sibling!==null;)h=h.sibling,w=w.sibling=ml(h,h.pendingProps),w.return=p;w.sibling=null}return p.child}function _f(h,p){return h.lanes&p?!0:(h=h.dependencies,!!(h!==null&&ze(h)))}function xi(h,p,w){switch(p.tag){case 3:dt(p,p.stateNode.containerInfo),It(p,_i,h.memoizedState.cache),yt();break;case 27:case 5:it(p);break;case 4:dt(p,p.stateNode.containerInfo);break;case 10:It(p,p.type,p.memoizedProps.value);break;case 31:if(p.memoizedState!==null)return p.flags|=128,uf(p),null;break;case 13:var j=p.memoizedState;if(j!==null)return j.dehydrated!==null?(uu(p),p.flags|=128,null):w&p.child.childLanes?Dy(h,p,w):(uu(p),h=js(h,p,w),h!==null?h.sibling:null);uu(p);break;case 19:var U=(h.flags&128)!==0;if(j=(w&p.childLanes)!==0,j||(we(h,p,w,!1),j=(w&p.childLanes)!==0),U){if(j)return Ht(h,p,w);p.flags|=128}if(U=p.memoizedState,U!==null&&(U.rendering=null,U.tail=null,U.lastEffect=null),S(Bi,Bi.current),j)break;return null;case 22:return p.lanes=0,mu(h,p,w,p.pendingProps);case 24:It(p,_i,h.memoizedState.cache)}return js(h,p,w)}function Oy(h,p,w){if(h!==null)if(h.memoizedProps!==p.pendingProps)Ji=!0;else{if(!_f(h,w)&&!(p.flags&128))return Ji=!1,xi(h,p,w);Ji=!!(h.flags&131072)}else Ji=!1,en&&p.flags&1048576&&rt(p,Ct,p.index);switch(p.lanes=0,p.tag){case 16:t:{var j=p.pendingProps;if(h=Xe(p.elementType),p.type=h,typeof h=="function")hm(h)?(j=cl(h,j),p.tag=1,p=R2(null,p,h,j,w)):(p.tag=0,p=A2(null,p,h,j,w));else{if(h!=null){var U=h.$$typeof;if(U===Cf){p.tag=11,p=W0(null,p,h,j,w);break t}else if(U===Q2){p.tag=14,p=Cy(null,p,h,j,w);break t}}throw p=m(h)||h,Error(i(306,p,""))}}return p;case 0:return A2(h,p,p.type,p.pendingProps,w);case 1:return j=p.type,U=cl(j,p.pendingProps),R2(h,p,j,U,w);case 3:t:{if(dt(p,p.stateNode.containerInfo),h===null)throw Error(i(387));var V=p.pendingProps;U=p.memoizedState,j=U.element,il(h,p),vd(p,V,null,w);var at=p.memoizedState;if(V=at.cache,It(p,_i,V),V!==U.cache&&Jt(p,[_i],w,!0),lf(),V=at.element,ja&&U.isDehydrated)if(U={element:V,isDehydrated:!1,cache:at.cache},p.updateQueue.baseState=U,p.memoizedState=U,p.flags&256){p=wy(h,p,V,w);break t}else if(V!==j){j=Q(Error(i(424)),p),wt(j),p=wy(h,p,V,w);break t}else for(ja&&(ci=f1(p.stateNode.containerInfo),ca=p,en=!0,wu=null,Lr=!0),w=n4(p,null,V,w),p.child=w;w;)w.flags=w.flags&-3|4096,w=w.sibling;else{if(yt(),V===j){p=js(h,p,w);break t}_a(h,p,V,w)}p=p.child}return p;case 26:if(Mr)return J0(h,p),h===null?(w=Of(p.type,null,p.pendingProps,null))?p.memoizedState=w:en||(p.stateNode=W3(p.type,p.pendingProps,_c.current,p)):p.memoizedState=Of(p.type,h.memoizedProps,p.pendingProps,h.memoizedState),null;case 27:if(Qi)return it(p),h===null&&Qi&&en&&(j=p.stateNode=y1(p.type,p.pendingProps,_c.current,ka.current,!1),ca=p,Lr=!0,ci=QD(p.type,j,ci)),_a(h,p,p.pendingProps.children,w),J0(h,p),h===null&&(p.flags|=4194304),p.child;case 5:return h===null&&en&&(t8(p.type,p.pendingProps,ka.current),(U=j=ci)&&(j=WD(j,p.type,p.pendingProps,Lr),j!==null?(p.stateNode=j,ca=p,ci=h1(j),Lr=!1,U=!0):U=!1),U||ht(p)),it(p),U=p.type,V=p.pendingProps,at=h!==null?h.memoizedProps:null,j=V.children,bm(U,V)?j=null:at!==null&&bm(U,at)&&(p.flags|=32),p.memoizedState!==null&&(U=z0(h,p,my,null,null,w),Dr?vc._currentValue=U:vc._currentValue2=U),J0(h,p),_a(h,p,j,w),p.child;case 6:return h===null&&en&&(cx(p.pendingProps,ka.current),(h=w=ci)&&(w=B3(w,p.pendingProps,Lr),w!==null?(p.stateNode=w,ca=p,ci=null,h=!0):h=!1),h||ht(p)),null;case 13:return Dy(h,p,w);case 4:return dt(p,p.stateNode.containerInfo),j=p.pendingProps,h===null?p.child=kd(p,null,j,w):_a(h,p,j,w),p.child;case 11:return W0(h,p,p.type,p.pendingProps,w);case 7:return _a(h,p,p.pendingProps,w),p.child;case 8:return _a(h,p,p.pendingProps.children,w),p.child;case 12:return _a(h,p,p.pendingProps.children,w),p.child;case 10:return j=p.pendingProps,It(p,p.type,j.value),_a(h,p,j.children,w),p.child;case 9:return U=p.type._context,j=p.pendingProps.children,Se(p),U=Te(U),j=j(U),p.flags|=1,_a(h,p,j,w),p.child;case 14:return Cy(h,p,p.type,p.pendingProps,w);case 15:return Ry(h,p,p.type,p.pendingProps,w);case 19:return Ht(h,p,w);case 31:return Z0(h,p,w);case 22:return mu(h,p,w,p.pendingProps);case 24:return Se(p),j=Te(_i),h===null?(U=Nn(),U===null&&(U=Vn,V=zt(),U.pooledCache=V,V.refCount++,V!==null&&(U.pooledCacheLanes|=w),U=V),p.memoizedState={parent:j,cache:U},gd(p),It(p,_i,U)):(h.lanes&w&&(il(h,p),vd(p,null,null,w),lf()),U=h.memoizedState,V=p.memoizedState,U.parent!==j?(U={parent:j,cache:j},p.memoizedState=U,p.lanes===0&&(p.memoizedState=p.updateQueue.baseState=U),It(p,_i,j)):(j=V.cache,It(p,_i,j),j!==U.cache&&Jt(p,[_i],w,!0))),_a(h,p,p.pendingProps.children,w),p.child;case 29:throw p.pendingProps}throw Error(i(156,p.tag))}function sr(h){h.flags|=4}function em(h){vo&&(h.flags|=8)}function Ny(h,p){if(h!==null&&h.child===p.child)return!1;if(p.flags&16)return!0;for(h=p.child;h!==null;){if(h.flags&8218||h.subtreeFlags&8218)return!0;h=h.sibling}return!1}function w2(h,p,w,j){if(Ja)for(w=p.child;w!==null;){if(w.tag===5||w.tag===6)o1(h,w.stateNode);else if(!(w.tag===4||Qi&&w.tag===27)&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===p)break;for(;w.sibling===null;){if(w.return===null||w.return===p)return;w=w.return}w.sibling.return=w.return,w=w.sibling}else if(vo)for(var U=p.child;U!==null;){if(U.tag===5){var V=U.stateNode;w&&j&&(V=Eu(V,U.type,U.memoizedProps)),o1(h,V)}else if(U.tag===6)V=U.stateNode,w&&j&&(V=Em(V,U.memoizedProps)),o1(h,V);else if(U.tag!==4){if(U.tag===22&&U.memoizedState!==null)V=U.child,V!==null&&(V.return=U),w2(h,U,!0,!0);else if(U.child!==null){U.child.return=U,U=U.child;continue}}if(U===p)break;for(;U.sibling===null;){if(U.return===null||U.return===p)return;U=U.return}U.sibling.return=U.return,U=U.sibling}}function Ly(h,p,w,j){var U=!1;if(vo)for(var V=p.child;V!==null;){if(V.tag===5){var at=V.stateNode;w&&j&&(at=Eu(at,V.type,V.memoizedProps)),sx(h,at)}else if(V.tag===6)at=V.stateNode,w&&j&&(at=Em(at,V.memoizedProps)),sx(h,at);else if(V.tag!==4){if(V.tag===22&&V.memoizedState!==null)U=V.child,U!==null&&(U.return=V),Ly(h,V,!0,!0),U=!0;else if(V.child!==null){V.child.return=V,V=V.child;continue}}if(V===p)break;for(;V.sibling===null;){if(V.return===null||V.return===p)return U;V=V.return}V.sibling.return=V.return,V=V.sibling}return U}function Py(h,p){if(vo&&Ny(h,p)){h=p.stateNode;var w=h.containerInfo,j=ui();Ly(j,p,!1,!1),h.pendingChildren=j,sr(p),O3(w,j)}}function nm(h,p,w,j){if(Ja)h.memoizedProps!==j&&sr(p);else if(vo){var U=h.stateNode,V=h.memoizedProps;if((h=Ny(h,p))||V!==j){var at=ka.current;V=M3(U,w,V,j,!h,null),V===U?p.stateNode=U:(em(p),f3(V,w,j,at)&&sr(p),p.stateNode=V,h&&w2(V,p,!1,!1))}else p.stateNode=U}}function Pa(h,p,w,j,U){if(h.mode&32&&(w===null?v3(p,j):XD(p,w,j))){if(h.flags|=16777216,(U&335544128)===U||Rf(p,j))if(za(h.stateNode,p,j))h.flags|=8192;else if(r3())h.flags|=8192;else throw Pr=w1,C1}else h.flags&=-16777217}function Cn(h,p){if(e8(p)){if(h.flags|=16777216,!v1(p))if(r3())h.flags|=8192;else throw Pr=w1,C1}else h.flags&=-16777217}function xd(h,p){p!==null&&(h.flags|=4),h.flags&16384&&(p=h.tag!==22?C():536870912,h.lanes|=p,Vf|=p)}function gu(h,p){if(!en)switch(h.tailMode){case"hidden":p=h.tail;for(var w=null;p!==null;)p.alternate!==null&&(w=p),p=p.sibling;w===null?h.tail=null:w.sibling=null;break;case"collapsed":w=h.tail;for(var j=null;w!==null;)w.alternate!==null&&(j=w),w=w.sibling;j===null?p||h.tail===null?h.tail=null:h.tail.sibling=null:j.sibling=null}}function En(h){var p=h.alternate!==null&&h.alternate.child===h.child,w=0,j=0;if(p)for(var U=h.child;U!==null;)w|=U.lanes|U.childLanes,j|=U.subtreeFlags&65011712,j|=U.flags&65011712,U.return=h,U=U.sibling;else for(U=h.child;U!==null;)w|=U.lanes|U.childLanes,j|=U.subtreeFlags,j|=U.flags,U.return=h,U=U.sibling;return h.subtreeFlags|=j,h.childLanes=w,p}function Ed(h,p,w){var j=p.pendingProps;switch(st(p),p.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return En(p),null;case 1:return En(p),null;case 3:return w=p.stateNode,j=null,h!==null&&(j=h.memoizedState.cache),p.memoizedState.cache!==j&&(p.flags|=2048),Ft(_i),pt(),w.pendingContext&&(w.context=w.pendingContext,w.pendingContext=null),(h===null||h.child===null)&&(bt(p)?sr(p):h===null||h.memoizedState.isDehydrated&&!(p.flags&256)||(p.flags|=1024,Tt())),Py(h,p),En(p),null;case 26:if(Mr){var U=p.type,V=p.memoizedState;return h===null?(sr(p),V!==null?(En(p),Cn(p,V)):(En(p),Pa(p,U,null,j,w))):V?V!==h.memoizedState?(sr(p),En(p),Cn(p,V)):(En(p),p.flags&=-16777217):(V=h.memoizedProps,Ja?V!==j&&sr(p):nm(h,p,U,j),En(p),Pa(p,U,V,j,w)),null}case 27:if(Qi){if(lt(p),w=_c.current,U=p.type,h!==null&&p.stateNode!=null)Ja?h.memoizedProps!==j&&sr(p):nm(h,p,U,j);else{if(!j){if(p.stateNode===null)throw Error(i(166));return En(p),null}h=ka.current,bt(p)?St(p,h):(h=y1(U,j,w,h,!0),p.stateNode=h,sr(p))}return En(p),null}case 5:if(lt(p),U=p.type,h!==null&&p.stateNode!=null)nm(h,p,U,j);else{if(!j){if(p.stateNode===null)throw Error(i(166));return En(p),null}if(V=ka.current,bt(p))St(p,V),V3(p.stateNode,U,j,V)&&(p.flags|=64);else{var at=vl(U,j,_c.current,V,p);em(p),w2(at,p,!1,!1),p.stateNode=at,f3(at,U,j,V)&&sr(p)}}return En(p),Pa(p,p.type,h===null?null:h.memoizedProps,p.pendingProps,w),null;case 6:if(h&&p.stateNode!=null)w=h.memoizedProps,Ja?w!==j&&sr(p):vo&&(w!==j?(h=_c.current,w=ka.current,em(p),p.stateNode=l1(j,h,w,p)):p.stateNode=h.stateNode);else{if(typeof j!="string"&&p.stateNode===null)throw Error(i(166));if(h=_c.current,w=ka.current,bt(p)){if(!ja)throw Error(i(176));if(h=p.stateNode,w=p.memoizedProps,j=null,U=ca,U!==null)switch(U.tag){case 27:case 5:j=U.memoizedProps}p1(h,w,p,j)||ht(p,!0)}else em(p),p.stateNode=l1(j,h,w,p)}return En(p),null;case 31:if(w=p.memoizedState,h===null||h.memoizedState!==null){if(j=bt(p),w!==null){if(h===null){if(!j)throw Error(i(318));if(!ja)throw Error(i(556));if(h=p.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(i(557));F3(h,p)}else yt(),!(p.flags&128)&&(p.memoizedState=null),p.flags|=4;En(p),h=!1}else w=Tt(),h!==null&&h.memoizedState!==null&&(h.memoizedState.hydrationErrors=w),h=!0;if(!h)return p.flags&256?(Ls(p),p):(Ls(p),null);if(p.flags&128)throw Error(i(558))}return En(p),null;case 13:if(j=p.memoizedState,h===null||h.memoizedState!==null&&h.memoizedState.dehydrated!==null){if(U=bt(p),j!==null&&j.dehydrated!==null){if(h===null){if(!U)throw Error(i(318));if(!ja)throw Error(i(344));if(U=p.memoizedState,U=U!==null?U.dehydrated:null,!U)throw Error(i(317));lx(U,p)}else yt(),!(p.flags&128)&&(p.memoizedState=null),p.flags|=4;En(p),U=!1}else U=Tt(),h!==null&&h.memoizedState!==null&&(h.memoizedState.hydrationErrors=U),U=!0;if(!U)return p.flags&256?(Ls(p),p):(Ls(p),null)}return Ls(p),p.flags&128?(p.lanes=w,p):(w=j!==null,h=h!==null&&h.memoizedState!==null,w&&(j=p.child,U=null,j.alternate!==null&&j.alternate.memoizedState!==null&&j.alternate.memoizedState.cachePool!==null&&(U=j.alternate.memoizedState.cachePool.pool),V=null,j.memoizedState!==null&&j.memoizedState.cachePool!==null&&(V=j.memoizedState.cachePool.pool),V!==U&&(j.flags|=2048)),w!==h&&w&&(p.child.flags|=8192),xd(p,p.updateQueue),En(p),null);case 4:return pt(),Py(h,p),h===null&&KD(p.stateNode.containerInfo),En(p),null;case 10:return Ft(p.type),En(p),null;case 19:if(v(Bi),j=p.memoizedState,j===null)return En(p),null;if(U=(p.flags&128)!==0,V=j.rendering,V===null)if(U)gu(j,!1);else{if(Ei!==0||h!==null&&h.flags&128)for(h=p.child;h!==null;){if(V=du(h),V!==null){for(p.flags|=128,gu(j,!1),h=V.updateQueue,p.updateQueue=h,xd(p,h),p.subtreeFlags=0,h=w,w=p.child;w!==null;)V2(w,h),w=w.sibling;return S(Bi,Bi.current&1|2),en&&tt(p,j.treeForkCount),p.child}h=h.sibling}j.tail!==null&&Dn()>Yf&&(p.flags|=128,U=!0,gu(j,!1),p.lanes=4194304)}else{if(!U)if(h=du(V),h!==null){if(p.flags|=128,U=!0,h=h.updateQueue,p.updateQueue=h,xd(p,h),gu(j,!0),j.tail===null&&j.tailMode==="hidden"&&!V.alternate&&!en)return En(p),null}else 2*Dn()-j.renderingStartTime>Yf&&w!==536870912&&(p.flags|=128,U=!0,gu(j,!1),p.lanes=4194304);j.isBackwards?(V.sibling=p.child,p.child=V):(h=j.last,h!==null?h.sibling=V:p.child=V,j.last=V)}return j.tail!==null?(h=j.tail,j.rendering=h,j.tail=h.sibling,j.renderingStartTime=Dn(),h.sibling=null,w=Bi.current,S(Bi,U?w&1|2:w&1),en&&tt(p,j.treeForkCount),h):(En(p),null);case 22:case 23:return Ls(p),lu(),j=p.memoizedState!==null,h!==null?h.memoizedState!==null!==j&&(p.flags|=8192):j&&(p.flags|=8192),j?w&536870912&&!(p.flags&128)&&(En(p),p.subtreeFlags&6&&(p.flags|=8192)):En(p),w=p.updateQueue,w!==null&&xd(p,w.retryQueue),w=null,h!==null&&h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(w=h.memoizedState.cachePool.pool),j=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(j=p.memoizedState.cachePool.pool),j!==w&&(p.flags|=2048),h!==null&&v(bc),null;case 24:return w=null,h!==null&&(w=h.memoizedState.cache),p.memoizedState.cache!==w&&(p.flags|=2048),Ft(_i),En(p),null;case 25:return null;case 30:return null}throw Error(i(156,p.tag))}function fo(h,p){switch(st(p),p.tag){case 1:return h=p.flags,h&65536?(p.flags=h&-65537|128,p):null;case 3:return Ft(_i),pt(),h=p.flags,h&65536&&!(h&128)?(p.flags=h&-65537|128,p):null;case 26:case 27:case 5:return lt(p),null;case 31:if(p.memoizedState!==null){if(Ls(p),p.alternate===null)throw Error(i(340));yt()}return h=p.flags,h&65536?(p.flags=h&-65537|128,p):null;case 13:if(Ls(p),h=p.memoizedState,h!==null&&h.dehydrated!==null){if(p.alternate===null)throw Error(i(340));yt()}return h=p.flags,h&65536?(p.flags=h&-65537|128,p):null;case 19:return v(Bi),null;case 4:return pt(),null;case 10:return Ft(p.type),null;case 22:case 23:return Ls(p),lu(),h!==null&&v(bc),h=p.flags,h&65536?(p.flags=h&-65537|128,p):null;case 24:return Ft(_i),null;case 25:return null;default:return null}}function jy(h,p){switch(st(p),p.tag){case 3:Ft(_i),pt();break;case 26:case 27:case 5:lt(p);break;case 4:pt();break;case 31:p.memoizedState!==null&&Ls(p);break;case 13:Ls(p);break;case 19:v(Bi);break;case 10:Ft(p.type);break;case 22:case 23:Ls(p),lu(),h!==null&&v(bc);break;case 24:Ft(_i)}}function hl(h,p){try{var w=p.updateQueue,j=w!==null?w.lastEffect:null;if(j!==null){var U=j.next;w=U;do{if((w.tag&h)===h){j=void 0;var V=w.create,at=w.inst;j=V(),at.destroy=j}w=w.next}while(w!==U)}}catch(ft){yn(p,p.return,ft)}}function fl(h,p,w){try{var j=p.updateQueue,U=j!==null?j.lastEffect:null;if(U!==null){var V=U.next;j=V;do{if((j.tag&h)===h){var at=j.inst,ft=at.destroy;if(ft!==void 0){at.destroy=void 0,U=p;var Ot=w,Ut=ft;try{Ut()}catch(Wt){yn(U,Ot,Wt)}}}j=j.next}while(j!==V)}}catch(Wt){yn(p,p.return,Wt)}}function bf(h){var p=h.updateQueue;if(p!==null){var w=h.stateNode;try{qC(p,w)}catch(j){yn(h,h.return,j)}}}function zy(h,p,w){w.props=cl(h.type,h.memoizedProps),w.state=h.memoizedState;try{w.componentWillUnmount()}catch(j){yn(h,p,j)}}function lc(h,p){try{var w=h.ref;if(w!==null){switch(h.tag){case 26:case 27:case 5:var j=ym(h.stateNode);break;case 30:j=h.stateNode;break;default:j=h.stateNode}typeof w=="function"?h.refCleanup=w(j):w.current=j}}catch(U){yn(h,p,U)}}function po(h,p){var w=h.ref,j=h.refCleanup;if(w!==null)if(typeof j=="function")try{j()}catch(U){yn(h,p,U)}finally{h.refCleanup=null,h=h.alternate,h!=null&&(h.refCleanup=null)}else if(typeof w=="function")try{w(null)}catch(U){yn(h,p,U)}else w.current=null}function D2(h){var p=h.type,w=h.memoizedProps,j=h.stateNode;try{A3(j,p,w,h)}catch(U){yn(h,h.return,U)}}function By(h,p,w){try{u1(h.stateNode,h.type,w,p,h)}catch(j){yn(h,h.return,j)}}function M2(h){return h.tag===5||h.tag===3||(Mr?h.tag===26:!1)||(Qi?h.tag===27&&Ld(h.type):!1)||h.tag===4}function ky(h){t:for(;;){for(;h.sibling===null;){if(h.return===null||M2(h.return))return null;h=h.return}for(h.sibling.return=h.return,h=h.sibling;h.tag!==5&&h.tag!==6&&h.tag!==18;){if(Qi&&h.tag===27&&Ld(h.type)||h.flags&2||h.child===null||h.tag===4)continue t;h.child.return=h,h=h.child}if(!(h.flags&2))return h.stateNode}}function im(h,p,w){var j=h.tag;if(j===5||j===6)h=h.stateNode,p?R3(w,h,p):T3(w,h);else if(j!==4&&(Qi&&j===27&&Ld(h.type)&&(w=h.stateNode,p=null),h=h.child,h!==null))for(im(h,p,w),h=h.sibling;h!==null;)im(h,p,w),h=h.sibling}function Sf(h,p,w){var j=h.tag;if(j===5||j===6)h=h.stateNode,p?C3(w,h,p):E3(w,h);else if(j!==4&&(Qi&&j===27&&Ld(h.type)&&(w=h.stateNode),h=h.child,h!==null))for(Sf(h,p,w),h=h.sibling;h!==null;)Sf(h,p,w),h=h.sibling}function Fy(h,p,w){h=h.containerInfo;try{N3(h,w)}catch(j){yn(p,p.return,j)}}function O2(h){var p=h.stateNode,w=h.memoizedProps;try{_1(h.type,w,p,h)}catch(j){yn(h,h.return,j)}}function $C(h,p){for(YD(h.containerInfo),ba=p;ba!==null;)if(h=ba,p=h.child,(h.subtreeFlags&1028)!==0&&p!==null)p.return=h,ba=p;else for(;ba!==null;){h=ba;var w=h.alternate;switch(p=h.flags,h.tag){case 0:if(p&4&&(p=h.updateQueue,p=p!==null?p.events:null,p!==null))for(var j=0;j<p.length;j++){var U=p[j];U.ref.impl=U.nextImpl}break;case 11:case 15:break;case 1:if(p&1024&&w!==null){p=void 0,j=h,U=w.memoizedProps,w=w.memoizedState;var V=j.stateNode;try{var at=cl(j.type,U);p=V.getSnapshotBeforeUpdate(at,w),V.__reactInternalSnapshotBeforeUpdate=p}catch(ft){yn(j,j.return,ft)}}break;case 3:p&1024&&Ja&&or(h.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(p&1024)throw Error(i(163))}if(p=h.sibling,p!==null){p.return=h.return,ba=p;break}ba=h.return}}function N2(h,p,w){var j=w.flags;switch(w.tag){case 0:case 11:case 15:Rr(h,w),j&4&&hl(5,w);break;case 1:if(Rr(h,w),j&4)if(h=w.stateNode,p===null)try{h.componentDidMount()}catch(at){yn(w,w.return,at)}else{var U=cl(w.type,p.memoizedProps);p=p.memoizedState;try{h.componentDidUpdate(U,p,h.__reactInternalSnapshotBeforeUpdate)}catch(at){yn(w,w.return,at)}}j&64&&bf(w),j&512&&lc(w,w.return);break;case 3:if(Rr(h,w),j&64&&(j=w.updateQueue,j!==null)){if(h=null,w.child!==null)switch(w.child.tag){case 27:case 5:h=ym(w.child.stateNode);break;case 1:h=w.child.stateNode}try{qC(j,h)}catch(at){yn(w,w.return,at)}}break;case 27:Qi&&p===null&&j&4&&O2(w);case 26:case 5:if(Rr(h,w),p===null){if(j&4)D2(w);else if(j&64){h=w.type,p=w.memoizedProps,U=w.stateNode;try{H3(U,h,p,w)}catch(at){yn(w,w.return,at)}}}j&512&&lc(w,w.return);break;case 12:Rr(h,w);break;case 31:Rr(h,w),j&4&&L2(h,w);break;case 13:Rr(h,w),j&4&&Uy(h,w),j&64&&(j=w.memoizedState,j!==null&&(j=j.dehydrated,j!==null&&(w=Jy.bind(null,w),wf(j,w))));break;case 22:if(j=w.memoizedState!==null||Al,!j){p=p!==null&&p.memoizedState!==null||ki,U=Al;var V=ki;Al=j,(ki=p)&&!V?mo(h,w,(w.subtreeFlags&8772)!==0):Rr(h,w),Al=U,ki=V}break;case 30:break;default:Rr(h,w)}}function t3(h){var p=h.alternate;p!==null&&(h.alternate=null,t3(p)),h.child=null,h.deletions=null,h.sibling=null,h.tag===5&&(p=h.stateNode,p!==null&&g3(p)),h.stateNode=null,h.return=null,h.dependencies=null,h.memoizedProps=null,h.memoizedState=null,h.pendingProps=null,h.stateNode=null,h.updateQueue=null}function Cr(h,p,w){for(w=w.child;w!==null;)Iy(h,p,w),w=w.sibling}function Iy(h,p,w){if(ji&&typeof ji.onCommitFiberUnmount=="function")try{ji.onCommitFiberUnmount(jd,w)}catch{}switch(w.tag){case 26:if(Mr){ki||po(w,p),Cr(h,p,w),w.memoizedState?Q3(w.memoizedState):w.stateNode&&hx(w.stateNode);break}case 27:if(Qi){ki||po(w,p);var j=$i,U=Hs;Ld(w.type)&&($i=w.stateNode,Hs=!1),Cr(h,p,w),yc(w.stateNode),$i=j,Hs=U;break}case 5:ki||po(w,p);case 6:if(Ja){if(j=$i,U=Hs,$i=null,Cr(h,p,w),$i=j,Hs=U,$i!==null)if(Hs)try{ax($i,w.stateNode)}catch(V){yn(w,p,V)}else try{ix($i,w.stateNode)}catch(V){yn(w,p,V)}}else Cr(h,p,w);break;case 18:Ja&&$i!==null&&(Hs?ux($i,w.stateNode):_n($i,w.stateNode));break;case 4:Ja?(j=$i,U=Hs,$i=w.stateNode.containerInfo,Hs=!0,Cr(h,p,w),$i=j,Hs=U):(vo&&Fy(w.stateNode,w,ui()),Cr(h,p,w));break;case 0:case 11:case 14:case 15:fl(2,w,p),ki||fl(4,w,p),Cr(h,p,w);break;case 1:ki||(po(w,p),j=w.stateNode,typeof j.componentWillUnmount=="function"&&zy(w,p,j)),Cr(h,p,w);break;case 21:Cr(h,p,w);break;case 22:ki=(j=ki)||w.memoizedState!==null,Cr(h,p,w),ki=j;break;default:Cr(h,p,w)}}function L2(h,p){if(ja&&p.memoizedState===null&&(h=p.alternate,h!==null&&(h=h.memoizedState,h!==null))){h=h.dehydrated;try{G3(h)}catch(w){yn(p,p.return,w)}}}function Uy(h,p){if(ja&&p.memoizedState===null&&(h=p.alternate,h!==null&&(h=h.memoizedState,h!==null&&(h=h.dehydrated,h!==null))))try{Mf(h)}catch(w){yn(p,p.return,w)}}function e3(h){switch(h.tag){case 31:case 13:case 19:var p=h.stateNode;return p===null&&(p=h.stateNode=new j1),p;case 22:return h=h.stateNode,p=h._retryCache,p===null&&(p=h._retryCache=new j1),p;default:throw Error(i(435,h.tag))}}function am(h,p){var w=e3(h);p.forEach(function(j){if(!w.has(j)){w.add(j);var U=c3.bind(null,h,j);j.then(U,U)}})}function Li(h,p){var w=p.deletions;if(w!==null)for(var j=0;j<w.length;j++){var U=w[j],V=h,at=p;if(Ja){var ft=at;t:for(;ft!==null;){switch(ft.tag){case 27:if(Qi){if(Ld(ft.type)){$i=ft.stateNode,Hs=!1;break t}break}case 5:$i=ft.stateNode,Hs=!1;break t;case 3:case 4:$i=ft.stateNode.containerInfo,Hs=!0;break t}ft=ft.return}if($i===null)throw Error(i(160));Iy(V,at,U),$i=null,Hs=!1}else Iy(V,at,U);V=U.alternate,V!==null&&(V.return=null),U.return=null}if(p.subtreeFlags&13886)for(p=p.child;p!==null;)sm(p,h),p=p.sibling}function sm(h,p){var w=h.alternate,j=h.flags;switch(h.tag){case 0:case 11:case 14:case 15:Li(p,h),Wa(h),j&4&&(fl(3,h,h.return),hl(3,h),fl(5,h,h.return));break;case 1:Li(p,h),Wa(h),j&512&&(ki||w===null||po(w,w.return)),j&64&&Al&&(h=h.updateQueue,h!==null&&(j=h.callbacks,j!==null&&(w=h.shared.hiddenCallbacks,h.shared.hiddenCallbacks=w===null?j:w.concat(j))));break;case 26:if(Mr){var U=xo;if(Li(p,h),Wa(h),j&512&&(ki||w===null||po(w,w.return)),j&4){j=w!==null?w.memoizedState:null;var V=h.memoizedState;w===null?V===null?h.stateNode===null?h.stateNode=Nd(U,h.type,h.memoizedProps,h):g1(U,h.type,h.stateNode):h.stateNode=q3(U,V,h.memoizedProps):j!==V?(j===null?w.stateNode!==null&&hx(w.stateNode):Q3(j),V===null?g1(U,h.type,h.stateNode):q3(U,V,h.memoizedProps)):V===null&&h.stateNode!==null&&By(h,h.memoizedProps,w.memoizedProps)}break}case 27:if(Qi){Li(p,h),Wa(h),j&512&&(ki||w===null||po(w,w.return)),w!==null&&j&4&&By(h,h.memoizedProps,w.memoizedProps);break}case 5:if(Li(p,h),Wa(h),j&512&&(ki||w===null||po(w,w.return)),Ja){if(h.flags&32){U=h.stateNode;try{c1(U)}catch(Xt){yn(h,h.return,Xt)}}j&4&&h.stateNode!=null&&(U=h.memoizedProps,By(h,U,w!==null?w.memoizedProps:U)),j&1024&&(Pm=!0)}else vo&&h.alternate!==null&&(h.alternate.stateNode=h.stateNode);break;case 6:if(Li(p,h),Wa(h),j&4&&Ja){if(h.stateNode===null)throw Error(i(162));j=h.memoizedProps,w=w!==null?w.memoizedProps:j,U=h.stateNode;try{xm(U,w,j)}catch(Xt){yn(h,h.return,Xt)}}break;case 3:if(Mr?(Z3(),U=xo,xo=m1(p.containerInfo),Li(p,h),xo=U):Li(p,h),Wa(h),j&4){if(Ja&&ja&&w!==null&&w.memoizedState.isDehydrated)try{JD(p.containerInfo)}catch(Xt){yn(h,h.return,Xt)}if(vo){j=p.containerInfo,w=p.pendingChildren;try{N3(j,w)}catch(Xt){yn(h,h.return,Xt)}}}Pm&&(Pm=!1,n3(h));break;case 4:Mr?(w=xo,xo=m1(h.stateNode.containerInfo),Li(p,h),Wa(h),xo=w):(Li(p,h),Wa(h)),j&4&&vo&&Fy(h.stateNode,h,h.stateNode.pendingChildren);break;case 12:Li(p,h),Wa(h);break;case 31:Li(p,h),Wa(h),j&4&&(j=h.updateQueue,j!==null&&(h.updateQueue=null,am(h,j)));break;case 13:Li(p,h),Wa(h),h.child.flags&8192&&h.memoizedState!==null!=(w!==null&&w.memoizedState!==null)&&(Bm=Dn()),j&4&&(j=h.updateQueue,j!==null&&(h.updateQueue=null,am(h,j)));break;case 22:U=h.memoizedState!==null;var at=w!==null&&w.memoizedState!==null,ft=Al,Ot=ki;if(Al=ft||U,ki=Ot||at,Li(p,h),ki=Ot,Al=ft,Wa(h),j&8192&&(p=h.stateNode,p._visibility=U?p._visibility&-2:p._visibility|1,U&&(w===null||at||Al||ki||wr(h)),Ja)){t:if(w=null,Ja)for(p=h;;){if(p.tag===5||Mr&&p.tag===26){if(w===null){at=w=p;try{V=at.stateNode,U?w3(V):qD(at.stateNode,at.memoizedProps)}catch(Xt){yn(at,at.return,Xt)}}}else if(p.tag===6){if(w===null){at=p;try{var Ut=at.stateNode;U?d1(Ut):D3(Ut,at.memoizedProps)}catch(Xt){yn(at,at.return,Xt)}}}else if(p.tag===18){if(w===null){at=p;try{var Wt=at.stateNode;U?$D(Wt):K3(at.stateNode)}catch(Xt){yn(at,at.return,Xt)}}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===h)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===h)break t;for(;p.sibling===null;){if(p.return===null||p.return===h)break t;w===p&&(w=null),p=p.return}w===p&&(w=null),p.sibling.return=p.return,p=p.sibling}}j&4&&(j=h.updateQueue,j!==null&&(w=j.retryQueue,w!==null&&(j.retryQueue=null,am(h,w))));break;case 19:Li(p,h),Wa(h),j&4&&(j=h.updateQueue,j!==null&&(h.updateQueue=null,am(h,j)));break;case 30:break;case 21:break;default:Li(p,h),Wa(h)}}function Wa(h){var p=h.flags;if(p&2){try{for(var w,j=h.return;j!==null;){if(M2(j)){w=j;break}j=j.return}if(Ja){if(w==null)throw Error(i(160));switch(w.tag){case 27:if(Qi){var U=w.stateNode,V=ky(h);Sf(h,V,U);break}case 5:var at=w.stateNode;w.flags&32&&(c1(at),w.flags&=-33);var ft=ky(h);Sf(h,ft,at);break;case 3:case 4:var Ot=w.stateNode.containerInfo,Ut=ky(h);im(h,Ut,Ot);break;default:throw Error(i(161))}}}catch(Wt){yn(h,h.return,Wt)}h.flags&=-3}p&4096&&(h.flags&=-4097)}function n3(h){if(h.subtreeFlags&1024)for(h=h.child;h!==null;){var p=h;n3(p),p.tag===5&&p.flags&1024&&wd(p.stateNode),h=h.sibling}}function Rr(h,p){if(p.subtreeFlags&8772)for(p=p.child;p!==null;)N2(h,p.alternate,p),p=p.sibling}function wr(h){for(h=h.child;h!==null;){var p=h;switch(p.tag){case 0:case 11:case 14:case 15:fl(4,p,p.return),wr(p);break;case 1:po(p,p.return);var w=p.stateNode;typeof w.componentWillUnmount=="function"&&zy(p,p.return,w),wr(p);break;case 27:Qi&&yc(p.stateNode);case 26:case 5:po(p,p.return),wr(p);break;case 22:p.memoizedState===null&&wr(p);break;case 30:wr(p);break;default:wr(p)}h=h.sibling}}function mo(h,p,w){for(w=w&&(p.subtreeFlags&8772)!==0,p=p.child;p!==null;){var j=p.alternate,U=h,V=p,at=V.flags;switch(V.tag){case 0:case 11:case 15:mo(U,V,w),hl(4,V);break;case 1:if(mo(U,V,w),j=V,U=j.stateNode,typeof U.componentDidMount=="function")try{U.componentDidMount()}catch(Ut){yn(j,j.return,Ut)}if(j=V,U=j.updateQueue,U!==null){var ft=j.stateNode;try{var Ot=U.shared.hiddenCallbacks;if(Ot!==null)for(U.shared.hiddenCallbacks=null,U=0;U<Ot.length;U++)h2(Ot[U],ft)}catch(Ut){yn(j,j.return,Ut)}}w&&at&64&&bf(V),lc(V,V.return);break;case 27:Qi&&O2(V);case 26:case 5:mo(U,V,w),w&&j===null&&at&4&&D2(V),lc(V,V.return);break;case 12:mo(U,V,w);break;case 31:mo(U,V,w),w&&at&4&&L2(U,V);break;case 13:mo(U,V,w),w&&at&4&&Uy(U,V);break;case 22:V.memoizedState===null&&mo(U,V,w),lc(V,V.return);break;case 30:break;default:mo(U,V,w)}p=p.sibling}}function vu(h,p){var w=null;h!==null&&h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(w=h.memoizedState.cachePool.pool),h=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(h=p.memoizedState.cachePool.pool),h!==w&&(h!=null&&h.refCount++,w!=null&&te(w))}function Za(h,p){h=null,p.alternate!==null&&(h=p.alternate.memoizedState.cache),p=p.memoizedState.cache,p!==h&&(p.refCount++,h!=null&&te(h))}function zs(h,p,w,j){if(p.subtreeFlags&10256)for(p=p.child;p!==null;)i3(h,p,w,j),p=p.sibling}function i3(h,p,w,j){var U=p.flags;switch(p.tag){case 0:case 11:case 15:zs(h,p,w,j),U&2048&&hl(9,p);break;case 1:zs(h,p,w,j);break;case 3:zs(h,p,w,j),U&2048&&(h=null,p.alternate!==null&&(h=p.alternate.memoizedState.cache),p=p.memoizedState.cache,p!==h&&(p.refCount++,h!=null&&te(h)));break;case 12:if(U&2048){zs(h,p,w,j),h=p.stateNode;try{var V=p.memoizedProps,at=V.id,ft=V.onPostCommit;typeof ft=="function"&&ft(at,p.alternate===null?"mount":"update",h.passiveEffectDuration,-0)}catch(Ot){yn(p,p.return,Ot)}}else zs(h,p,w,j);break;case 31:zs(h,p,w,j);break;case 13:zs(h,p,w,j);break;case 23:break;case 22:V=p.stateNode,at=p.alternate,p.memoizedState!==null?V._visibility&2?zs(h,p,w,j):cc(h,p):V._visibility&2?zs(h,p,w,j):(V._visibility|=2,uc(h,p,w,j,(p.subtreeFlags&10256)!==0||!1)),U&2048&&vu(at,p);break;case 24:zs(h,p,w,j),U&2048&&Za(p.alternate,p);break;default:zs(h,p,w,j)}}function uc(h,p,w,j,U){for(U=U&&((p.subtreeFlags&10256)!==0||!1),p=p.child;p!==null;){var V=h,at=p,ft=w,Ot=j,Ut=at.flags;switch(at.tag){case 0:case 11:case 15:uc(V,at,ft,Ot,U),hl(8,at);break;case 23:break;case 22:var Wt=at.stateNode;at.memoizedState!==null?Wt._visibility&2?uc(V,at,ft,Ot,U):cc(V,at):(Wt._visibility|=2,uc(V,at,ft,Ot,U)),U&&Ut&2048&&vu(at.alternate,at);break;case 24:uc(V,at,ft,Ot,U),U&&Ut&2048&&Za(at.alternate,at);break;default:uc(V,at,ft,Ot,U)}p=p.sibling}}function cc(h,p){if(p.subtreeFlags&10256)for(p=p.child;p!==null;){var w=h,j=p,U=j.flags;switch(j.tag){case 22:cc(w,j),U&2048&&vu(j.alternate,j);break;case 24:cc(w,j),U&2048&&Za(j.alternate,j);break;default:cc(w,j)}p=p.sibling}}function yu(h,p,w){if(h.subtreeFlags&xc)for(h=h.child;h!==null;)P2(h,p,w),h=h.sibling}function P2(h,p,w){switch(h.tag){case 26:if(yu(h,p,w),h.flags&xc)if(h.memoizedState!==null)Tu(w,xo,h.memoizedState,h.memoizedProps);else{var j=h.stateNode,U=h.type;h=h.memoizedProps,((p&335544128)===p||Rf(U,h))&&$a(w,j,U,h)}break;case 5:yu(h,p,w),h.flags&xc&&(j=h.stateNode,U=h.type,h=h.memoizedProps,((p&335544128)===p||Rf(U,h))&&$a(w,j,U,h));break;case 3:case 4:Mr?(j=xo,xo=m1(h.stateNode.containerInfo),yu(h,p,w),xo=j):yu(h,p,w);break;case 22:h.memoizedState===null&&(j=h.alternate,j!==null&&j.memoizedState!==null?(j=xc,xc=16777216,yu(h,p,w),xc=j):yu(h,p,w));break;default:yu(h,p,w)}}function Hy(h){var p=h.alternate;if(p!==null&&(h=p.child,h!==null)){p.child=null;do p=h.sibling,h.sibling=null,h=p;while(h!==null)}}function dc(h){var p=h.deletions;if(h.flags&16){if(p!==null)for(var w=0;w<p.length;w++){var j=p[w];ba=j,Vy(j,h)}Hy(h)}if(h.subtreeFlags&10256)for(h=h.child;h!==null;)Gy(h),h=h.sibling}function Gy(h){switch(h.tag){case 0:case 11:case 15:dc(h),h.flags&2048&&fl(9,h,h.return);break;case 3:dc(h);break;case 12:dc(h);break;case 22:var p=h.stateNode;h.memoizedState!==null&&p._visibility&2&&(h.return===null||h.return.tag!==13)?(p._visibility&=-3,Td(h)):dc(h);break;default:dc(h)}}function Td(h){var p=h.deletions;if(h.flags&16){if(p!==null)for(var w=0;w<p.length;w++){var j=p[w];ba=j,Vy(j,h)}Hy(h)}for(h=h.child;h!==null;){switch(p=h,p.tag){case 0:case 11:case 15:fl(8,p,p.return),Td(p);break;case 22:w=p.stateNode,w._visibility&2&&(w._visibility&=-3,Td(p));break;default:Td(p)}h=h.sibling}}function Vy(h,p){for(;ba!==null;){var w=ba;switch(w.tag){case 0:case 11:case 15:fl(8,w,p);break;case 23:case 22:if(w.memoizedState!==null&&w.memoizedState.cachePool!==null){var j=w.memoizedState.cachePool.pool;j!=null&&j.refCount++}break;case 24:te(w.memoizedState.cache)}if(j=w.child,j!==null)j.return=w,ba=j;else t:for(w=h;ba!==null;){j=ba;var U=j.sibling,V=j.return;if(t3(j),j===w){ba=null;break t}if(U!==null){U.return=V,ba=U;break t}ba=V}}}function xf(h){var p=m3(h);if(p!=null){if(typeof p.memoizedProps["data-testname"]!="string")throw Error(i(364));return p}if(h=nx(h),h===null)throw Error(i(362));return h.stateNode.current}function rm(h,p){var w=h.tag;switch(p.$$typeof){case z1:if(h.type===p.value)return!0;break;case B1:t:{for(p=p.value,h=[h,0],w=0;w<h.length;){var j=h[w++],U=j.tag,V=h[w++],at=p[V];if(U!==5&&U!==26&&U!==27||!bl(j)){for(;at!=null&&rm(j,at);)V++,at=p[V];if(V===p.length){p=!0;break t}else for(j=j.child;j!==null;)h.push(j,V),j=j.sibling}}p=!1}return p;case k1:if((w===5||w===26||w===27)&&x3(h.stateNode,p.value))return!0;break;case I1:if((w===5||w===6||w===26||w===27)&&(h=S3(h),h!==null&&0<=h.indexOf(p.value)))return!0;break;case F1:if((w===5||w===26||w===27)&&(h=h.memoizedProps["data-testname"],typeof h=="string"&&h.toLowerCase()===p.value.toLowerCase()))return!0;break;default:throw Error(i(365))}return!1}function Yy(h){switch(h.$$typeof){case z1:return"<"+(m(h.value)||"Unknown")+">";case B1:return":has("+(Yy(h)||"")+")";case k1:return'[role="'+h.value+'"]';case I1:return'"'+h.value+'"';case F1:return'[data-testname="'+h.value+'"]';default:throw Error(i(365))}}function j2(h,p){var w=[];h=[h,0];for(var j=0;j<h.length;){var U=h[j++],V=U.tag,at=h[j++],ft=p[at];if(V!==5&&V!==26&&V!==27||!bl(U)){for(;ft!=null&&rm(U,ft);)at++,ft=p[at];if(at===p.length)w.push(U);else for(U=U.child;U!==null;)h.push(U,at),U=U.sibling}}return w}function om(h,p){if(!Dd)throw Error(i(363));h=xf(h),h=j2(h,p),p=[],h=Array.from(h);for(var w=0;w<h.length;){var j=h[w++],U=j.tag;if(U===5||U===26||U===27)bl(j)||p.push(j.stateNode);else for(j=j.child;j!==null;)h.push(j),j=j.sibling}return p}function Bs(){return nn&2&&on!==0?on&-on:be.T!==null?wn():yo()}function lm(){if(cr===0)if(!(on&536870912)||en){var h=wm;wm<<=1,!(wm&3932160)&&(wm=262144),cr=h}else cr=536870912;return h=lr.current,h!==null&&(h.flags|=32),cr}function ys(h,p,w){(h===Vn&&(Pn===2||Pn===9)||h.cancelPendingCommit!==null)&&(fc(h,0),_u(h,on,cr,!1)),N(h,w),(!(nn&2)||h!==Vn)&&(h===Vn&&(!(nn&2)&&(Ud|=w),Ei===4&&_u(h,on,cr,!1)),Lt(h))}function z2(h,p,w){if(nn&6)throw Error(i(327));var j=!w&&(p&127)===0&&(p&h.expiredLanes)===0||A(h,p),U=j?l3(h,p):Af(h,p,!0),V=j;do{if(U===0){Id&&!j&&_u(h,p,0,!1);break}else{if(w=h.current.alternate,V&&!a3(w)){U=Af(h,p,!1),V=!1;continue}if(U===2){if(V=p,h.errorRecoveryDisabledLanes&V)var at=0;else at=h.pendingLanes&-536870913,at=at!==0?at:at&536870912?536870912:0;if(at!==0){p=at;t:{var ft=h;U=zm;var Ot=ja&&ft.current.memoizedState.isDehydrated;if(Ot&&(fc(ft,at).flags|=256),at=Af(ft,at,!1),at!==2){if(Sx&&!Ot){ft.errorRecoveryDisabledLanes|=V,Ud|=V,U=4;break t}V=Gs,Gs=U,V!==null&&(Gs===null?Gs=V:Gs.push.apply(Gs,V))}U=at}if(V=!1,U!==2)continue}}if(U===1){fc(h,0),_u(h,p,0,!0);break}t:{switch(j=h,V=U,V){case 0:case 1:throw Error(i(345));case 4:if((p&4194048)!==p)break;case 6:_u(j,p,cr,!Ec);break t;case 2:Gs=null;break;case 3:case 5:break;default:throw Error(i(329))}if((p&62914560)===p&&(U=Bm+300-Dn(),10<U)){if(_u(j,p,cr,!Ec),T(j,0,!0)!==0)break t;Cl=p,j.timeoutHandle=p3(Ky.bind(null,j,w,Gs,H1,U1,p,cr,Ud,Vf,Ec,V,"Throttled",-0,0),U);break t}Ky(j,w,Gs,H1,U1,p,cr,Ud,Vf,Ec,V,null,-0,0)}}break}while(!0);Lt(h)}function Ky(h,p,w,j,U,V,at,ft,Ot,Ut,Wt,Xt,ne,Ae){if(h.timeoutHandle=xu,Xt=p.subtreeFlags,Xt&8192||(Xt&16785408)===16785408){Xt=y3(),P2(p,V,Xt);var hi=(V&62914560)===V?Bm-Dn():(V&4194048)===V?Ex-Dn():0;if(hi=_3(Xt,hi),hi!==null){Cl=V,h.cancelPendingCommit=hi(I2.bind(null,h,p,V,w,j,U,at,ft,Ot,Wt,Xt,null,ne,Ae)),_u(h,V,at,!Ut);return}}I2(h,p,V,w,j,U,at,ft,Ot)}function a3(h){for(var p=h;;){var w=p.tag;if((w===0||w===11||w===15)&&p.flags&16384&&(w=p.updateQueue,w!==null&&(w=w.stores,w!==null)))for(var j=0;j<w.length;j++){var U=w[j],V=U.getSnapshot;U=U.value;try{if(!Ba(V(),U))return!1}catch{return!1}}if(w=p.child,p.subtreeFlags&16384&&w!==null)w.return=p,p=w;else{if(p===h)break;for(;p.sibling===null;){if(p.return===null||p.return===h)return!0;p=p.return}p.sibling.return=p.return,p=p.sibling}}return!0}function _u(h,p,w,j){p&=~xx,p&=~Ud,h.suspendedLanes|=p,h.pingedLanes&=~p,j&&(h.warmLanes|=p),j=h.expirationTimes;for(var U=p;0<U;){var V=31-ks(U),at=1<<V;j[V]=-1,U&=~at}w!==0&&O(h,w,p)}function hc(){return nn&6?!0:(Yt(0,!1),!1)}function um(){if(an!==null){if(Pn===0)var h=an.return;else h=an,di=xs=null,B0(h),jr=null,Nm=0,h=an;for(;h!==null;)jy(h.alternate,h),h=h.return;an=null}}function fc(h,p){var w=h.timeoutHandle;w!==xu&&(h.timeoutHandle=xu,tx(w)),w=h.cancelPendingCommit,w!==null&&(h.cancelPendingCommit=null,w()),Cl=0,um(),Vn=h,an=w=ml(h.current,null),on=p,Pn=0,ur=null,Ec=!1,Id=A(h,p),Sx=!1,Vf=cr=xx=Ud=Tc=Ei=0,Gs=zm=null,U1=!1,p&8&&(p|=p&32);var j=h.entangledLanes;if(j!==0)for(h=h.entanglements,j&=p;0<j;){var U=31-ks(j),V=1<<U;p|=h[U],j&=~V}return Mu=p,Ce(),w}function s3(h,p){Fe=null,be.H=Lm,p===If||p===R1?(p=Bn(),Pn=3):p===C1?(p=Bn(),Pn=4):Pn=p===L1?8:p!==null&&typeof p=="object"&&typeof p.then=="function"?6:1,ur=p,an===null&&(Ei=1,q0(h,Q(p,h.current)))}function r3(){var h=lr.current;return h===null?!0:(on&4194048)===on?Br===null:(on&62914560)===on||on&536870912?h===Br:!1}function B2(){var h=be.H;return be.H=Lm,h===null?Lm:h}function Ef(){var h=be.A;return be.A=s8,h}function Tf(){Ei=4,Ec||(on&4194048)!==on&&lr.current!==null||(Id=!0),!(Tc&134217727)&&!(Ud&134217727)||Vn===null||_u(Vn,on,cr,!1)}function Af(h,p,w){var j=nn;nn|=2;var U=B2(),V=Ef();(Vn!==h||on!==p)&&(H1=null,fc(h,p)),p=!1;var at=Ei;t:do try{if(Pn!==0&&an!==null){var ft=an,Ot=ur;switch(Pn){case 8:um(),at=6;break t;case 3:case 2:case 9:case 6:lr.current===null&&(p=!0);var Ut=Pn;if(Pn=0,ur=null,Ad(h,ft,Ot,Ut),w&&Id){at=0;break t}break;default:Ut=Pn,Pn=0,ur=null,Ad(h,ft,Ot,Ut)}}o3(),at=Ei;break}catch(Wt){s3(h,Wt)}while(!0);return p&&h.shellSuspendCounter++,di=xs=null,nn=j,be.H=U,be.A=V,an===null&&(Vn=null,on=0,Ce()),at}function o3(){for(;an!==null;)Xy(an)}function l3(h,p){var w=nn;nn|=2;var j=B2(),U=Ef();Vn!==h||on!==p?(H1=null,Yf=Dn()+500,fc(h,p)):Id=A(h,p);t:do try{if(Pn!==0&&an!==null){p=an;var V=ur;e:switch(Pn){case 1:Pn=0,ur=null,Ad(h,p,V,1);break;case 2:case 9:if(de(V)){Pn=0,ur=null,F2(p);break}p=function(){Pn!==2&&Pn!==9||Vn!==h||(Pn=7),Lt(h)},V.then(p,p);break t;case 3:Pn=7;break t;case 4:Pn=5;break t;case 7:de(V)?(Pn=0,ur=null,F2(p)):(Pn=0,ur=null,Ad(h,p,V,7));break;case 5:var at=null;switch(an.tag){case 26:at=an.memoizedState;case 5:case 27:var ft=an,Ot=ft.type,Ut=ft.pendingProps;if(at?v1(at):za(ft.stateNode,Ot,Ut)){Pn=0,ur=null;var Wt=ft.sibling;if(Wt!==null)an=Wt;else{var Xt=ft.return;Xt!==null?(an=Xt,pl(Xt)):an=null}break e}}Pn=0,ur=null,Ad(h,p,V,5);break;case 6:Pn=0,ur=null,Ad(h,p,V,6);break;case 8:um(),Ei=6;break t;default:throw Error(i(462))}}k2();break}catch(ne){s3(h,ne)}while(!0);return di=xs=null,be.H=j,be.A=U,nn=w,an!==null?0:(Vn=null,on=0,Ce(),Ei)}function k2(){for(;an!==null&&!n8();)Xy(an)}function Xy(h){var p=Oy(h.alternate,h,Mu);h.memoizedProps=h.pendingProps,p===null?pl(h):an=p}function F2(h){var p=h,w=p.alternate;switch(p.tag){case 15:case 0:p=C2(w,p,p.pendingProps,p.type,void 0,on);break;case 11:p=C2(w,p,p.pendingProps,p.type.render,p.ref,on);break;case 5:B0(p);default:jy(w,p),p=an=V2(p,Mu),p=Oy(w,p,Mu)}h.memoizedProps=h.pendingProps,p===null?pl(h):an=p}function Ad(h,p,w,j){di=xs=null,B0(p),jr=null,Nm=0;var U=p.return;try{if(Qa(h,U,p,w,on)){Ei=1,q0(h,Q(w,h.current)),an=null;return}}catch(V){if(U!==null)throw an=U,V;Ei=1,q0(h,Q(w,h.current)),an=null;return}p.flags&32768?(en||j===1?h=!0:Id||on&536870912?h=!1:(Ec=h=!0,(j===2||j===9||j===3||j===6)&&(j=lr.current,j!==null&&j.tag===13&&(j.flags|=16384))),cm(p,h)):pl(p)}function pl(h){var p=h;do{if(p.flags&32768){cm(p,Ec);return}h=p.return;var w=Ed(p.alternate,p,Mu);if(w!==null){an=w;return}if(p=p.sibling,p!==null){an=p;return}an=p=h}while(p!==null);Ei===0&&(Ei=5)}function cm(h,p){do{var w=fo(h.alternate,h);if(w!==null){w.flags&=32767,an=w;return}if(w=h.return,w!==null&&(w.flags|=32768,w.subtreeFlags=0,w.deletions=null),!p&&(h=h.sibling,h!==null)){an=h;return}an=h=w}while(h!==null);Ei=6,an=null}function I2(h,p,w,j,U,V,at,ft,Ot){h.cancelPendingCommit=null;do Pi();while(jn!==0);if(nn&6)throw Error(i(327));if(p!==null){if(p===h.current)throw Error(i(177));if(V=p.lanes|p.childLanes,V|=yx,M(h,w,V,at,ft,Ot),h===Vn&&(an=Vn=null,on=0),Cc=p,Ou=h,Cl=w,G1=V,V1=U,s4=j,p.subtreeFlags&10256||p.flags&10256?(h.callbackNode=null,h.callbackPriority=0,HD(Cu,function(){return U2(),null})):(h.callbackNode=null,h.callbackPriority=0),j=(p.flags&13878)!==0,p.subtreeFlags&13878||j){j=be.T,be.T=null,U=yl(),ua(2),at=nn,nn|=4;try{$C(h,p,w)}finally{nn=at,ua(U),be.T=j}}jn=1,qy(),Qy(),Wy()}}function qy(){if(jn===1){jn=0;var h=Ou,p=Cc,w=(p.flags&13878)!==0;if(p.subtreeFlags&13878||w){w=be.T,be.T=null;var j=yl();ua(2);var U=nn;nn|=4;try{sm(p,h),_m(h.containerInfo)}finally{nn=U,ua(j),be.T=w}}h.current=p,jn=2}}function Qy(){if(jn===2){jn=0;var h=Ou,p=Cc,w=(p.flags&8772)!==0;if(p.subtreeFlags&8772||w){w=be.T,be.T=null;var j=yl();ua(2);var U=nn;nn|=4;try{N2(h,p.alternate,p)}finally{nn=U,ua(j),be.T=w}}jn=3}}function Wy(){if(jn===4||jn===3){jn=0,Fs();var h=Ou,p=Cc,w=Cl,j=s4;p.subtreeFlags&10256||p.flags&10256?jn=5:(jn=0,Cc=Ou=null,u3(h,h.pendingLanes));var U=h.pendingLanes;if(U===0&&(Ac=null),F(w),p=p.stateNode,ji&&typeof ji.onCommitFiberRoot=="function")try{ji.onCommitFiberRoot(jd,p,void 0,(p.current.flags&128)===128)}catch{}if(j!==null){p=be.T,U=yl(),ua(2),be.T=null;try{for(var V=h.onRecoverableError,at=0;at<j.length;at++){var ft=j[at];V(ft.value,{componentStack:ft.stack})}}finally{be.T=p,ua(U)}}Cl&3&&Pi(),Lt(h),U=h.pendingLanes,w&261930&&U&42?h===Y1?Kf++:(Kf=0,Y1=h):Kf=0,ja&&Y3(),Yt(0,!1)}}function u3(h,p){(h.pooledCacheLanes&=p)===0&&(p=h.pooledCache,p!=null&&(h.pooledCache=null,te(p)))}function Pi(){return qy(),Qy(),Wy(),U2()}function U2(){if(jn!==5)return!1;var h=Ou,p=G1;G1=0;var w=F(Cl),j=32>w?32:w;w=be.T;var U=yl();try{ua(j),be.T=null,j=V1,V1=null;var V=Ou,at=Cl;if(jn=0,Cc=Ou=null,Cl=0,nn&6)throw Error(i(331));var ft=nn;if(nn|=4,Gy(V.current),i3(V,V.current,at,j),nn=ft,Yt(0,!1),ji&&typeof ji.onPostCommitFiberRoot=="function")try{ji.onPostCommitFiberRoot(jd,V)}catch{}return!0}finally{ua(U),be.T=w,u3(h,p)}}function H2(h,p,w){p=Q(w,p),p=gf(h.stateNode,p,2),h=al(h,p,2),h!==null&&(N(h,2),Lt(h))}function yn(h,p,w){if(h.tag===3)H2(h,h,w);else for(;p!==null;){if(p.tag===3){H2(p,h,w);break}else if(p.tag===1){var j=p.stateNode;if(typeof p.type.getDerivedStateFromError=="function"||typeof j.componentDidCatch=="function"&&(Ac===null||!Ac.has(j))){h=Q(w,h),w=Q0(2),j=al(p,w,2),j!==null&&(Ay(w,j,p,h),N(j,2),Lt(j));break}}p=p.return}}function Zy(h,p,w){var j=h.pingCache;if(j===null){j=h.pingCache=new r8;var U=new Set;j.set(p,U)}else U=j.get(p),U===void 0&&(U=new Set,j.set(p,U));U.has(w)||(Sx=!0,U.add(w),h=dm.bind(null,h,p,w),p.then(h,h))}function dm(h,p,w){var j=h.pingCache;j!==null&&j.delete(p),h.pingedLanes|=h.suspendedLanes&w,h.warmLanes&=~w,Vn===h&&(on&w)===w&&(Ei===4||Ei===3&&(on&62914560)===on&&300>Dn()-Bm?!(nn&2)&&fc(h,0):xx|=w,Vf===on&&(Vf=0)),Lt(h)}function G2(h,p){p===0&&(p=C()),h=el(h,p),h!==null&&(N(h,p),Lt(h))}function Jy(h){var p=h.memoizedState,w=0;p!==null&&(w=p.retryLane),G2(h,w)}function c3(h,p){var w=0;switch(h.tag){case 31:case 13:var j=h.stateNode,U=h.memoizedState;U!==null&&(w=U.retryLane);break;case 19:j=h.stateNode;break;case 22:j=h.stateNode._retryCache;break;default:throw Error(i(314))}j!==null&&j.delete(p),G2(h,w)}function HD(h,p){return S1(h,p)}function $y(h,p,w,j){this.tag=h,this.key=w,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=j,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hm(h){return h=h.prototype,!(!h||!h.isReactComponent)}function ml(h,p){var w=h.alternate;return w===null?(w=e(h.tag,p,h.key,h.mode),w.elementType=h.elementType,w.type=h.type,w.stateNode=h.stateNode,w.alternate=h,h.alternate=w):(w.pendingProps=p,w.type=h.type,w.flags=0,w.subtreeFlags=0,w.deletions=null),w.flags=h.flags&65011712,w.childLanes=h.childLanes,w.lanes=h.lanes,w.child=h.child,w.memoizedProps=h.memoizedProps,w.memoizedState=h.memoizedState,w.updateQueue=h.updateQueue,p=h.dependencies,w.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},w.sibling=h.sibling,w.index=h.index,w.ref=h.ref,w.refCleanup=h.refCleanup,w}function V2(h,p){h.flags&=65011714;var w=h.alternate;return w===null?(h.childLanes=0,h.lanes=p,h.child=null,h.subtreeFlags=0,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=w.childLanes,h.lanes=w.lanes,h.child=w.child,h.subtreeFlags=0,h.deletions=null,h.memoizedProps=w.memoizedProps,h.memoizedState=w.memoizedState,h.updateQueue=w.updateQueue,h.type=w.type,p=w.dependencies,h.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext}),h}function fm(h,p,w,j,U,V){var at=0;if(j=h,typeof h=="function")hm(h)&&(at=1);else if(typeof h=="string")at=Mr&&Qi?dx(h,w,ka.current)?26:b1(h)?27:5:Mr?dx(h,w,ka.current)?26:5:Qi&&b1(h)?27:5;else t:switch(h){case r1:return h=e(31,w,p,U),h.elementType=r1,h.lanes=V,h;case Cd:return bu(w.children,U,V,p);case q2:at=8,U|=24;break;case vm:return h=e(12,w,p,U|2),h.elementType=vm,h.lanes=V,h;case Rd:return h=e(13,w,p,U),h.elementType=Rd,h.lanes=V,h;case Ln:return h=e(19,w,p,U),h.elementType=Ln,h.lanes=V,h;default:if(typeof h=="object"&&h!==null)switch(h.$$typeof){case Su:at=10;break t;case s1:at=9;break t;case Cf:at=11;break t;case Q2:at=14;break t;case mc:at=16,j=null;break t}at=29,w=Error(i(130,h===null?"null":typeof h,"")),j=null}return p=e(at,w,p,U),p.elementType=h,p.type=j,p.lanes=V,p}function bu(h,p,w,j){return h=e(7,h,j,p),h.lanes=w,h}function pm(h,p,w){return h=e(6,h,null,p),h.lanes=w,h}function t1(h){var p=e(18,null,null,0);return p.stateNode=h,p}function e1(h,p,w){return p=e(4,h.children!==null?h.children:[],h.key,p),p.lanes=w,p.stateNode={containerInfo:h.containerInfo,pendingChildren:null,implementation:h.implementation},p}function Y2(h,p,w,j,U,V,at,ft,Ot){this.tag=1,this.containerInfo=h,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=xu,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=R(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=R(0),this.hiddenUpdates=R(null),this.identifierPrefix=j,this.onUncaughtError=U,this.onCaughtError=V,this.onRecoverableError=at,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Ot,this.incompleteTransitions=new Map}function mm(h,p,w,j,U,V,at,ft,Ot,Ut,Wt,Xt){return h=new Y2(h,p,w,at,Ot,Ut,Wt,Xt,ft),p=1,V===!0&&(p|=24),V=e(3,null,null,p),h.current=V,V.stateNode=h,p=zt(),p.refCount++,h.pooledCache=p,p.refCount++,V.memoizedState={element:j,isDehydrated:w,cache:p},gd(V),h}function n1(h){return h?(h=Pd,h):Pd}function K2(h){var p=h._reactInternals;if(p===void 0)throw typeof h.render=="function"?Error(i(188)):(h=Object.keys(h).join(","),Error(i(268,h)));return h=l(p),h=h!==null?c(h):null,h===null?null:ym(h.stateNode)}function i1(h,p,w,j,U,V){U=n1(U),j.context===null?j.context=U:j.pendingContext=U,j=qa(p),j.payload={element:w},V=V===void 0?null:V,V!==null&&(j.callback=V),w=al(h,j,p),w!==null&&(ys(w,h,p),P0(w,h,p))}function X2(h,p){if(h=h.memoizedState,h!==null&&h.dehydrated!==null){var w=h.retryLane;h.retryLane=w!==0&&w<p?w:p}}function go(h,p){X2(h,p),(h=h.alternate)&&X2(h,p)}var Ze={},GD=G,_s=Y9(),rr=Object.assign,a1=Symbol.for("react.element"),gm=Symbol.for("react.transitional.element"),pc=Symbol.for("react.portal"),Cd=Symbol.for("react.fragment"),q2=Symbol.for("react.strict_mode"),vm=Symbol.for("react.profiler"),s1=Symbol.for("react.consumer"),Su=Symbol.for("react.context"),Cf=Symbol.for("react.forward_ref"),Rd=Symbol.for("react.suspense"),Ln=Symbol.for("react.suspense_list"),Q2=Symbol.for("react.memo"),mc=Symbol.for("react.lazy"),r1=Symbol.for("react.activity"),gl=Symbol.for("react.memo_cache_sentinel"),W2=Symbol.iterator,Z2=Symbol.for("react.client.reference"),gc=Array.isArray,be=GD.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,d3=t.rendererVersion,J2=t.rendererPackageName,$2=t.extraDevToolsConfig,ym=t.getPublicInstance,VD=t.getRootHostContext,h3=t.getChildHostContext,YD=t.prepareForCommit,_m=t.resetAfterCommit,vl=t.createInstance;t.cloneMutableInstance;var o1=t.appendInitialChild,f3=t.finalizeInitialChildren,bm=t.shouldSetTextContent,l1=t.createTextInstance;t.cloneMutableTextInstance;var p3=t.scheduleTimeout,tx=t.cancelTimeout,xu=t.noTimeout,Dr=t.isPrimaryRenderer;t.warnsIfNotActing;var Ja=t.supportsMutation,vo=t.supportsPersistence,ja=t.supportsHydration,m3=t.getInstanceFromNode;t.beforeActiveInstanceBlur;var KD=t.preparePortalMount;t.prepareScopeUpdate,t.getInstanceFromScope;var ua=t.setCurrentUpdatePriority,yl=t.getCurrentUpdatePriority,yo=t.resolveUpdatePriority;t.trackSchedulerEvent,t.resolveEventType,t.resolveEventTimeStamp;var ex=t.shouldAttemptEagerTransition,g3=t.detachDeletedInstance;t.requestPostPaintCallback;var v3=t.maySuspendCommit,XD=t.maySuspendCommitOnUpdate,Rf=t.maySuspendCommitInSyncRender,za=t.preloadInstance,y3=t.startSuspendingCommit,$a=t.suspendInstance;t.suspendOnActiveViewTransition;var _3=t.waitForCommitToBeReady;t.getSuspendedCommitReason;var bs=t.NotPendingTransition,vc=t.HostTransitionContext,wd=t.resetFormInstance;t.bindToConsole;var b3=t.supportsMicrotasks,_l=t.scheduleMicrotask,Dd=t.supportsTestSelectors,nx=t.findFiberRoot,_o=t.getBoundingRect,S3=t.getTextContent,bl=t.isHiddenSubtree,x3=t.matchAccessibilityRole,Sm=t.setFocusIfFocusable,Md=t.setupIntersectionObserver,E3=t.appendChild,T3=t.appendChildToContainer,xm=t.commitTextUpdate,A3=t.commitMount,u1=t.commitUpdate,C3=t.insertBefore,R3=t.insertInContainerBefore,ix=t.removeChild,ax=t.removeChildFromContainer,c1=t.resetTextContent,w3=t.hideInstance,d1=t.hideTextInstance,qD=t.unhideInstance,D3=t.unhideTextInstance;t.cancelViewTransitionName,t.cancelRootViewTransitionName,t.restoreRootViewTransitionName,t.cloneRootViewTransitionContainer,t.removeRootViewTransitionClone,t.measureClonedInstance,t.hasInstanceChanged,t.hasInstanceAffectedParent,t.startViewTransition,t.startGestureTransition,t.stopViewTransition,t.getCurrentGestureOffset,t.createViewTransitionInstance;var or=t.clearContainer;t.createFragmentInstance,t.updateFragmentInstanceFiber,t.commitNewChildToFragmentInstance,t.deleteChildFromFragmentInstance;var M3=t.cloneInstance,ui=t.createContainerChildSet,sx=t.appendChildToContainerChildSet,O3=t.finalizeContainerChildren,N3=t.replaceContainerChildren,Eu=t.cloneHiddenInstance,Em=t.cloneHiddenTextInstance,Tm=t.isSuspenseInstancePending,Am=t.isSuspenseInstanceFallback,Od=t.getSuspenseInstanceFallbackErrorDetails,wf=t.registerSuspenseInstanceRetry,L3=t.canHydrateFormStateMarker,P3=t.isFormStateMarkerMatching,rx=t.getNextHydratableSibling,j3=t.getNextHydratableSiblingAfterSingleton,h1=t.getFirstHydratableChild,f1=t.getFirstHydratableChildWithinContainer,ox=t.getFirstHydratableChildWithinActivityInstance,z3=t.getFirstHydratableChildWithinSuspenseInstance,QD=t.getFirstHydratableChildWithinSingleton,WD=t.canHydrateInstance,B3=t.canHydrateTextInstance,k3=t.canHydrateActivityInstance,ZD=t.canHydrateSuspenseInstance,Df=t.hydrateInstance,p1=t.hydrateTextInstance,F3=t.hydrateActivityInstance,lx=t.hydrateSuspenseInstance,I3=t.getNextHydratableInstanceAfterActivityInstance,U3=t.getNextHydratableInstanceAfterSuspenseInstance,H3=t.commitHydratedInstance,JD=t.commitHydratedContainer,G3=t.commitHydratedActivityInstance,Mf=t.commitHydratedSuspenseInstance,V3=t.finalizeHydratedChildren,Y3=t.flushHydrationEvents;t.clearActivityBoundary;var _n=t.clearSuspenseBoundary;t.clearActivityBoundaryFromContainer;var ux=t.clearSuspenseBoundaryFromContainer,$D=t.hideDehydratedBoundary,K3=t.unhideDehydratedBoundary,X3=t.shouldDeleteUnhydratedTailInstances;t.diffHydratedPropsForDevWarnings,t.diffHydratedTextForDevWarnings,t.describeHydratableInstanceForDevWarnings;var t8=t.validateHydratableInstance,cx=t.validateHydratableTextInstance,Mr=t.supportsResources,dx=t.isHostHoistableType,m1=t.getHoistableRoot,Of=t.getResource,q3=t.acquireResource,Q3=t.releaseResource,Nd=t.hydrateHoistable,g1=t.mountHoistable,hx=t.unmountHoistable,W3=t.createHoistableInstance,Z3=t.prepareToCommitHoistables,e8=t.mayResourceSuspendCommit,v1=t.preloadResource,Tu=t.suspendResource,Qi=t.supportsSingletons,y1=t.resolveSingletonInstance,_1=t.acquireSingletonInstance,yc=t.releaseSingletonInstance,b1=t.isHostSingletonType,Ld=t.isSingletonScope,Cm=[],Nf=-1,Pd={},ks=Math.clz32?Math.clz32:y,J3=Math.log,$3=Math.LN2,Rm=256,wm=262144,Lf=4194304,S1=_s.unstable_scheduleCallback,Je=_s.unstable_cancelCallback,n8=_s.unstable_shouldYield,Fs=_s.unstable_requestPaint,Dn=_s.unstable_now,t4=_s.unstable_ImmediatePriority,Au=_s.unstable_UserBlockingPriority,Cu=_s.unstable_NormalPriority,Pf=_s.unstable_IdlePriority,x1=_s.log,fx=_s.unstable_setDisableYieldValue,jd=null,ji=null,Ba=typeof Object.is=="function"?Object.is:W,E1=typeof reportError=="function"?reportError:function(h){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var p=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof h=="object"&&h!==null&&typeof h.message=="string"?String(h.message):String(h),error:h});if(!window.dispatchEvent(p))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",h);return}console.error(h)},px=Object.prototype.hasOwnProperty,jf,Is,Dm=!1,e4=new WeakMap,zd=[],zf=0,Wi=null,Ct=0,Or=[],Nr=0,Ru=null,Ss=1,Sl="",ka=_(null),Mm=_(null),_c=_(null),T1=_(null),ca=null,ci=null,en=!1,wu=null,Lr=!1,mx=Error(i(519)),xl=_(null),xs=null,di=null,El=typeof AbortController<"u"?AbortController:function(){var h=[],p=this.signal={aborted:!1,addEventListener:function(w,j){h.push(j)}};this.abort=function(){p.aborted=!0,h.forEach(function(w){return w()})}},ts=_s.unstable_scheduleCallback,i8=_s.unstable_NormalPriority,_i={$$typeof:Su,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0},zi=null,Us=null,gx=!1,Bf=!1,Bd=!1,bo=0,Om=null,vx=0,kf=0,Ff=null,A1=be.S;be.S=function(h,p){Ex=Dn(),typeof p=="object"&&p!==null&&typeof p.then=="function"&&re(h,p),A1!==null&&A1(h,p)};var bc=_(null),If=Error(i(460)),C1=Error(i(474)),R1=Error(i(542)),w1={then:function(){}},Pr=null,jr=null,Nm=0,kd=fe(!0),n4=fe(!1),zr=[],So=0,yx=0,Sc=!1,_x=!1,Tl=_(null),D1=_(0),lr=_(null),Br=null,Bi=_(0),Du=0,Fe=null,Fn=null,Zi=null,M1=!1,Uf=!1,Fd=!1,O1=0,Hf=0,Gf=null,a8=0,Lm={readContext:Te,use:kn,useCallback:yi,useContext:yi,useEffect:yi,useImperativeHandle:yi,useLayoutEffect:yi,useInsertionEffect:yi,useMemo:yi,useReducer:yi,useRef:yi,useState:yi,useDebugValue:yi,useDeferredValue:yi,useTransition:yi,useSyncExternalStore:yi,useId:yi,useHostTransitionStatus:yi,useFormState:yi,useActionState:yi,useOptimistic:yi,useMemoCache:yi,useCacheRefresh:yi};Lm.useEffectEvent=yi;var i4={readContext:Te,use:kn,useCallback:function(h,p){return Na().memoizedState=[h,p===void 0?null:p],h},useContext:Te,useEffect:m2,useImperativeHandle:function(h,p,w){w=w!=null?w.concat([h]):null,G0(4194308,4,ZC.bind(null,p,h),w)},useLayoutEffect:function(h,p){return G0(4194308,4,h,p)},useInsertionEffect:function(h,p){G0(4,2,h,p)},useMemo:function(h,p){var w=Na();p=p===void 0?null:p;var j=h();if(Fd){H(!0);try{h()}finally{H(!1)}}return w.memoizedState=[j,p],j},useReducer:function(h,p,w){var j=Na();if(w!==void 0){var U=w(p);if(Fd){H(!0);try{w(p)}finally{H(!1)}}}else U=p;return j.memoizedState=j.baseState=U,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:h,lastRenderedState:U},j.queue=h,h=h.dispatch=La.bind(null,Fe,h),[j.memoizedState,h]},useRef:function(h){var p=Na();return h={current:h},p.memoizedState=h},useState:function(h){h=ms(h);var p=h.queue,w=Ey.bind(null,Fe,p);return p.dispatch=w,[h.memoizedState,w]},useDebugValue:y2,useDeferredValue:function(h,p){var w=Na();return Sy(w,h,p)},useTransition:function(){var h=ms(!1);return h=_2.bind(null,Fe,h.queue,!0,!1),Na().memoizedState=h,[!1,h]},useSyncExternalStore:function(h,p,w){var j=Fe,U=Na();if(en){if(w===void 0)throw Error(i(407));w=w()}else{if(w=p(),Vn===null)throw Error(i(349));on&127||QC(j,p,w)}U.memoizedState=w;var V={value:w,getSnapshot:p};return U.queue=V,m2(k0.bind(null,j,V,h),[h]),j.flags|=2048,gs(9,{destroy:void 0},ll.bind(null,j,V,w,p),null),w},useId:function(){var h=Na(),p=Vn.identifierPrefix;if(en){var w=Sl,j=Ss;w=(j&~(1<<32-ks(j)-1)).toString(32)+w,p="_"+p+"R_"+w,w=O1++,0<w&&(p+="H"+w.toString(32)),p+="_"}else w=a8++,p="_"+p+"r_"+w.toString(32)+"_";return h.memoizedState=p},useHostTransitionStatus:xy,useFormState:uo,useActionState:uo,useOptimistic:function(h){var p=Na();p.memoizedState=p.baseState=h;var w={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return p.queue=w,p=mf.bind(null,Fe,!0,w),w.dispatch=p,[h,p]},useMemoCache:df,useCacheRefresh:function(){return Na().memoizedState=JC.bind(null,Fe)},useEffectEvent:function(h){var p=Na(),w={impl:h};return p.memoizedState=w,function(){if(nn&2)throw Error(i(440));return w.impl.apply(void 0,arguments)}}},bx={readContext:Te,use:kn,useCallback:by,useContext:Te,useEffect:vy,useImperativeHandle:v2,useInsertionEffect:g2,useLayoutEffect:_y,useMemo:V0,useReducer:hf,useRef:bd,useState:function(){return hf(ol)},useDebugValue:y2,useDeferredValue:function(h,p){var w=qn();return Y0(w,Fn.memoizedState,h,p)},useTransition:function(){var h=hf(ol)[0],p=qn().memoizedState;return[typeof h=="boolean"?h:ao(h),p]},useSyncExternalStore:so,useId:pu,useHostTransitionStatus:xy,useFormState:p2,useActionState:p2,useOptimistic:function(h,p){var w=qn();return Ps(w,Fn,h,p)},useMemoCache:df,useCacheRefresh:S2};bx.useEffectEvent=yy;var a4={readContext:Te,use:kn,useCallback:by,useContext:Te,useEffect:vy,useImperativeHandle:v2,useInsertionEffect:g2,useLayoutEffect:_y,useMemo:V0,useReducer:_d,useRef:bd,useState:function(){return _d(ol)},useDebugValue:y2,useDeferredValue:function(h,p){var w=qn();return Fn===null?Sy(w,h,p):Y0(w,Fn.memoizedState,h,p)},useTransition:function(){var h=_d(ol)[0],p=qn().memoizedState;return[typeof h=="boolean"?h:ao(h),p]},useSyncExternalStore:so,useId:pu,useHostTransitionStatus:xy,useFormState:H0,useActionState:H0,useOptimistic:function(h,p){var w=qn();return Fn!==null?Ps(w,Fn,h,p):(w.baseState=h,[h,w.queue.dispatch])},useMemoCache:df,useCacheRefresh:S2};a4.useEffectEvent=yy;var N1={enqueueSetState:function(h,p,w){h=h._reactInternals;var j=Bs(),U=qa(j);U.payload=p,w!=null&&(U.callback=w),p=al(h,U,j),p!==null&&(ys(p,h,j),P0(p,h,j))},enqueueReplaceState:function(h,p,w){h=h._reactInternals;var j=Bs(),U=qa(j);U.tag=1,U.payload=p,w!=null&&(U.callback=w),p=al(h,U,j),p!==null&&(ys(p,h,j),P0(p,h,j))},enqueueForceUpdate:function(h,p){h=h._reactInternals;var w=Bs(),j=qa(w);j.tag=2,p!=null&&(j.callback=p),p=al(h,j,w),p!==null&&(ys(p,h,w),P0(p,h,w))}},L1=Error(i(461)),Ji=!1,P1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Al=!1,ki=!1,Pm=!1,j1=typeof WeakSet=="function"?WeakSet:Set,ba=null,$i=null,Hs=!1,xo=null,xc=8192,s8={getCacheForType:function(h){var p=Te(_i),w=p.data.get(h);return w===void 0&&(w=h(),p.data.set(h,w)),w},cacheSignal:function(){return Te(_i).controller.signal}},z1=0,B1=1,k1=2,F1=3,I1=4;if(typeof Symbol=="function"&&Symbol.for){var jm=Symbol.for;z1=jm("selector.component"),B1=jm("selector.has_pseudo_class"),k1=jm("selector.role"),F1=jm("selector.test_id"),I1=jm("selector.text")}var r8=typeof WeakMap=="function"?WeakMap:Map,nn=0,Vn=null,an=null,on=0,Pn=0,ur=null,Ec=!1,Id=!1,Sx=!1,Mu=0,Ei=0,Tc=0,Ud=0,xx=0,cr=0,Vf=0,zm=null,Gs=null,U1=!1,Bm=0,Ex=0,Yf=1/0,H1=null,Ac=null,jn=0,Ou=null,Cc=null,Cl=0,G1=0,V1=null,s4=null,Kf=0,Y1=null;return Ze.attemptContinuousHydration=function(h){if(h.tag===13||h.tag===31){var p=el(h,67108864);p!==null&&ys(p,h,67108864),go(h,67108864)}},Ze.attemptHydrationAtCurrentPriority=function(h){if(h.tag===13||h.tag===31){var p=Bs();p=I(p);var w=el(h,p);w!==null&&ys(w,h,p),go(h,p)}},Ze.attemptSynchronousHydration=function(h){switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var p=x(h.pendingLanes);if(p!==0){for(h.pendingLanes|=2,h.entangledLanes|=2;p;){var w=1<<31-ks(p);h.entanglements[1]|=w,p&=~w}Lt(h),!(nn&6)&&(Yf=Dn()+500,Yt(0,!1))}}break;case 31:case 13:p=el(h,2),p!==null&&ys(p,h,2),hc(),go(h,2)}},Ze.batchedUpdates=function(h,p){return h(p)},Ze.createComponentSelector=function(h){return{$$typeof:z1,value:h}},Ze.createContainer=function(h,p,w,j,U,V,at,ft,Ot,Ut){return mm(h,p,!1,null,w,j,V,null,at,ft,Ot,Ut)},Ze.createHasPseudoClassSelector=function(h){return{$$typeof:B1,value:h}},Ze.createHydrationContainer=function(h,p,w,j,U,V,at,ft,Ot,Ut,Wt,Xt,ne,Ae){return h=mm(w,j,!0,h,U,V,ft,Ae,Ot,Ut,Wt,Xt),h.context=n1(null),w=h.current,j=Bs(),j=I(j),U=qa(j),U.callback=p??null,al(w,U,j),p=j,h.current.lanes=p,N(h,p),Lt(h),h},Ze.createPortal=function(h,p,w){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:pc,key:j==null?null:""+j,children:h,containerInfo:p,implementation:w}},Ze.createRoleSelector=function(h){return{$$typeof:k1,value:h}},Ze.createTestNameSelector=function(h){return{$$typeof:F1,value:h}},Ze.createTextSelector=function(h){return{$$typeof:I1,value:h}},Ze.defaultOnCaughtError=function(h){console.error(h)},Ze.defaultOnRecoverableError=function(h){E1(h)},Ze.defaultOnUncaughtError=function(h){E1(h)},Ze.deferredUpdates=function(h){var p=be.T,w=yl();try{return ua(32),be.T=null,h()}finally{ua(w),be.T=p}},Ze.discreteUpdates=function(h,p,w,j,U){var V=be.T,at=yl();try{return ua(2),be.T=null,h(p,w,j,U)}finally{ua(at),be.T=V,nn===0&&(Yf=Dn()+500)}},Ze.findAllNodes=om,Ze.findBoundingRects=function(h,p){if(!Dd)throw Error(i(363));p=om(h,p),h=[];for(var w=0;w<p.length;w++)h.push(_o(p[w]));for(p=h.length-1;0<p;p--){w=h[p];for(var j=w.x,U=j+w.width,V=w.y,at=V+w.height,ft=p-1;0<=ft;ft--)if(p!==ft){var Ot=h[ft],Ut=Ot.x,Wt=Ut+Ot.width,Xt=Ot.y,ne=Xt+Ot.height;if(j>=Ut&&V>=Xt&&U<=Wt&&at<=ne){h.splice(p,1);break}else if(j!==Ut||w.width!==Ot.width||ne<V||Xt>at){if(!(V!==Xt||w.height!==Ot.height||Wt<j||Ut>U)){Ut>j&&(Ot.width+=Ut-j,Ot.x=j),Wt<U&&(Ot.width=U-Ut),h.splice(p,1);break}}else{Xt>V&&(Ot.height+=Xt-V,Ot.y=V),ne<at&&(Ot.height=at-Xt),h.splice(p,1);break}}}return h},Ze.findHostInstance=K2,Ze.findHostInstanceWithNoPortals=function(h){return h=l(h),h=h!==null?d(h):null,h===null?null:ym(h.stateNode)},Ze.findHostInstanceWithWarning=function(h){return K2(h)},Ze.flushPassiveEffects=Pi,Ze.flushSyncFromReconciler=function(h){var p=nn;nn|=1;var w=be.T,j=yl();try{if(ua(2),be.T=null,h)return h()}finally{ua(j),be.T=w,nn=p,!(nn&6)&&Yt(0,!1)}},Ze.flushSyncWork=hc,Ze.focusWithin=function(h,p){if(!Dd)throw Error(i(363));for(h=xf(h),p=j2(h,p),p=Array.from(p),h=0;h<p.length;){var w=p[h++],j=w.tag;if(!bl(w)){if((j===5||j===26||j===27)&&Sm(w.stateNode))return!0;for(w=w.child;w!==null;)p.push(w),w=w.sibling}}return!1},Ze.getFindAllNodesFailureDescription=function(h,p){if(!Dd)throw Error(i(363));var w=0,j=[];h=[xf(h),0];for(var U=0;U<h.length;){var V=h[U++],at=V.tag,ft=h[U++],Ot=p[ft];if((at!==5&&at!==26&&at!==27||!bl(V))&&(rm(V,Ot)&&(j.push(Yy(Ot)),ft++,ft>w&&(w=ft)),ft<p.length))for(V=V.child;V!==null;)h.push(V,ft),V=V.sibling}if(w<p.length){for(h=[];w<p.length;w++)h.push(Yy(p[w]));return`findAllNodes was able to match part of the selector:
81
+ `+j.stack}}function Q(h,p){if(typeof h=="object"&&h!==null){var w=e4.get(h);return w!==void 0?w:(p={value:h,source:p,stack:nt(p)},e4.set(h,p),p)}return{value:h,source:p,stack:nt(p)}}function tt(h,p){zd[zf++]=Ct,zd[zf++]=Wi,Wi=h,Ct=p}function rt(h,p,w){Or[Nr++]=Ss,Or[Nr++]=Sl,Or[Nr++]=Ru,Ru=h;var j=Ss;h=Sl;var U=32-ks(j)-1;j&=~(1<<U),w+=1;var V=32-ks(p)+U;if(30<V){var at=U-U%5;V=(j&(1<<at)-1).toString(32),j>>=at,U-=at,Ss=1<<32-ks(p)+U|w<<U|j,Sl=V+h}else Ss=1<<V|w<<U|j,Sl=h}function ut(h){h.return!==null&&(tt(h,1),rt(h,1,0))}function st(h){for(;h===Wi;)Wi=zd[--zf],zd[zf]=null,Ct=zd[--zf],zd[zf]=null;for(;h===Ru;)Ru=Or[--Nr],Or[Nr]=null,Sl=Or[--Nr],Or[Nr]=null,Ss=Or[--Nr],Or[Nr]=null}function ot(h,p){Or[Nr++]=Ss,Or[Nr++]=Sl,Or[Nr++]=Ru,Ss=p.id,Sl=p.overflow,Ru=h}function dt(h,p){S(_c,p),S(Mm,h),S(ka,null),h=VD(p),v(ka),S(ka,h)}function pt(){v(ka),v(Mm),v(_c)}function it(h){h.memoizedState!==null&&S(T1,h);var p=ka.current,w=h3(p,h.type);p!==w&&(S(Mm,h),S(ka,w))}function lt(h){Mm.current===h&&(v(ka),v(Mm)),T1.current===h&&(v(T1),Dr?vc._currentValue=bs:vc._currentValue2=bs)}function ht(h){var p=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw wt(Q(p,h)),mx}function St(h,p){if(!ja)throw Error(i(175));Df(h.stateNode,h.type,h.memoizedProps,p,h)||ht(h,!0)}function _t(h){for(ca=h.return;ca;)switch(ca.tag){case 5:case 31:case 13:Lr=!1;return;case 27:case 3:Lr=!0;return;default:ca=ca.return}}function bt(h){if(!ja||h!==ca)return!1;if(!en)return _t(h),en=!0,!1;var p=h.tag;if(Qi?p!==3&&p!==27&&(p!==5||X3(h.type)&&!bm(h.type,h.memoizedProps))&&ci&&ht(h):p!==3&&(p!==5||X3(h.type)&&!bm(h.type,h.memoizedProps))&&ci&&ht(h),_t(h),p===13){if(!ja)throw Error(i(316));if(h=h.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(i(317));ci=U3(h)}else if(p===31){if(h=h.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(i(317));ci=I3(h)}else ci=Qi&&p===27?j3(h.type,ci):ca?rx(h.stateNode):null;return!0}function yt(){ja&&(ci=ca=null,en=!1)}function Tt(){var h=wu;return h!==null&&(Gs===null?Gs=h:Gs.push.apply(Gs,h),wu=null),h}function wt(h){wu===null?wu=[h]:wu.push(h)}function It(h,p,w){Dr?(S(xl,p._currentValue),p._currentValue=w):(S(xl,p._currentValue2),p._currentValue2=w)}function Ft(h){var p=xl.current;Dr?h._currentValue=p:h._currentValue2=p,v(xl)}function $t(h,p,w){for(;h!==null;){var j=h.alternate;if((h.childLanes&p)!==p?(h.childLanes|=p,j!==null&&(j.childLanes|=p)):j!==null&&(j.childLanes&p)!==p&&(j.childLanes|=p),h===w)break;h=h.return}}function Jt(h,p,w,j){var U=h.child;for(U!==null&&(U.return=h);U!==null;){var V=U.dependencies;if(V!==null){var at=U.child;V=V.firstContext;t:for(;V!==null;){var ft=V;V=U;for(var Ot=0;Ot<p.length;Ot++)if(ft.context===p[Ot]){V.lanes|=w,ft=V.alternate,ft!==null&&(ft.lanes|=w),$t(V.return,w,h),j||(at=null);break t}V=ft.next}}else if(U.tag===18){if(at=U.return,at===null)throw Error(i(341));at.lanes|=w,V=at.alternate,V!==null&&(V.lanes|=w),$t(at,w,h),at=null}else at=U.child;if(at!==null)at.return=U;else for(at=U;at!==null;){if(at===h){at=null;break}if(U=at.sibling,U!==null){U.return=at.return,at=U;break}at=at.return}U=at}}function we(h,p,w,j){h=null;for(var U=p,V=!1;U!==null;){if(!V){if(U.flags&524288)V=!0;else if(U.flags&262144)break}if(U.tag===10){var at=U.alternate;if(at===null)throw Error(i(387));if(at=at.memoizedProps,at!==null){var ft=U.type;Ba(U.pendingProps.value,at.value)||(h!==null?h.push(ft):h=[ft])}}else if(U===T1.current){if(at=U.alternate,at===null)throw Error(i(387));at.memoizedState.memoizedState!==U.memoizedState.memoizedState&&(h!==null?h.push(vc):h=[vc])}U=U.return}h!==null&&Jt(p,h,w,j),p.flags|=262144}function ze(h){for(h=h.firstContext;h!==null;){var p=h.context;if(!Ba(Dr?p._currentValue:p._currentValue2,h.memoizedValue))return!0;h=h.next}return!1}function Se(h){xs=h,di=null,h=h.dependencies,h!==null&&(h.firstContext=null)}function Te(h){return Mn(xs,h)}function pn(h,p){return xs===null&&Se(h),Mn(h,p)}function Mn(h,p){var w=Dr?p._currentValue:p._currentValue2;if(p={context:p,memoizedValue:w,next:null},di===null){if(h===null)throw Error(i(308));di=p,h.dependencies={lanes:0,firstContext:p},h.flags|=524288}else di=di.next=p;return w}function zt(){return{controller:new El,data:new Map,refCount:0}}function te(h){h.refCount--,h.refCount===0&&ts(i8,function(){h.controller.abort()})}function pe(){}function Lt(h){h!==Us&&h.next===null&&(Us===null?zi=Us=h:Us=Us.next=h),Bf=!0,gx||(gx=!0,ue())}function Yt(h,p){if(!Bd&&Bf){Bd=!0;do for(var w=!1,j=zi;j!==null;){if(!p)if(h!==0){var U=j.pendingLanes;if(U===0)var V=0;else{var at=j.suspendedLanes,ft=j.pingedLanes;V=(1<<31-ks(42|h)+1)-1,V&=U&~(at&~ft),V=V&201326741?V&201326741|1:V?V|2:0}V!==0&&(w=!0,ie(j,V))}else V=on,V=T(j,j===Vn?V:0,j.cancelPendingCommit!==null||j.timeoutHandle!==xu),!(V&3)||A(j,V)||(w=!0,ie(j,V));j=j.next}while(w);Bd=!1}}function ee(){Be()}function Be(){Bf=gx=!1;var h=0;bo!==0&&ex()&&(h=bo);for(var p=Dn(),w=null,j=zi;j!==null;){var U=j.next,V=Ke(j,p);V===0?(j.next=null,w===null?zi=U:w.next=U,U===null&&(Us=w)):(w=j,(h!==0||V&3)&&(Bf=!0)),j=U}jn!==0&&jn!==5||Yt(h,!1),bo!==0&&(bo=0)}function Ke(h,p){for(var w=h.suspendedLanes,j=h.pingedLanes,U=h.expirationTimes,V=h.pendingLanes&-62914561;0<V;){var at=31-ks(V),ft=1<<at,Ot=U[at];Ot===-1?(!(ft&w)||ft&j)&&(U[at]=E(ft,p)):Ot<=p&&(h.expiredLanes|=ft),V&=~ft}if(p=Vn,w=on,w=T(h,h===p?w:0,h.cancelPendingCommit!==null||h.timeoutHandle!==xu),j=h.callbackNode,w===0||h===p&&(Pn===2||Pn===9)||h.cancelPendingCommit!==null)return j!==null&&j!==null&&Je(j),h.callbackNode=null,h.callbackPriority=0;if(!(w&3)||A(h,w)){if(p=w&-w,p===h.callbackPriority)return p;switch(j!==null&&Je(j),F(w)){case 2:case 8:w=Au;break;case 32:w=Cu;break;case 268435456:w=Pf;break;default:w=Cu}return j=Gt.bind(null,h),w=S1(w,j),h.callbackPriority=p,h.callbackNode=w,p}return j!==null&&j!==null&&Je(j),h.callbackPriority=2,h.callbackNode=null,2}function Gt(h,p){if(jn!==0&&jn!==5)return h.callbackNode=null,h.callbackPriority=0,null;var w=h.callbackNode;if(Pi()&&h.callbackNode!==w)return null;var j=on;return j=T(h,h===Vn?j:0,h.cancelPendingCommit!==null||h.timeoutHandle!==xu),j===0?null:(z2(h,j,p),Ke(h,Dn()),h.callbackNode!=null&&h.callbackNode===w?Gt.bind(null,h):null)}function ie(h,p){if(Pi())return null;z2(h,p,!0)}function ue(){b3?_l(function(){nn&6?S1(t4,ee):Be()}):S1(t4,ee)}function wn(){if(bo===0){var h=kf;h===0&&(h=Rm,Rm<<=1,!(Rm&261888)&&(Rm=256)),bo=h}return bo}function re(h,p){if(Om===null){var w=Om=[];vx=0,kf=wn(),Ff={status:"pending",value:void 0,then:function(j){w.push(j)}}}return vx++,p.then(me,me),p}function me(){if(--vx===0&&Om!==null){Ff!==null&&(Ff.status="fulfilled");var h=Om;Om=null,kf=0,Ff=null;for(var p=0;p<h.length;p++)(0,h[p])()}}function On(h,p){var w=[],j={status:"pending",value:null,reason:null,then:function(U){w.push(U)}};return h.then(function(){j.status="fulfilled",j.value=p;for(var U=0;U<w.length;U++)(0,w[U])(p)},function(U){for(j.status="rejected",j.reason=U,U=0;U<w.length;U++)(0,w[U])(void 0)}),j}function Nn(){var h=bc.current;return h!==null?h:Vn.pooledCache}function la(h,p){p===null?S(bc,bc.current):S(bc,p.pool)}function Bt(){var h=Nn();return h===null?null:{parent:Dr?_i._currentValue:_i._currentValue2,pool:h}}function Qt(h,p){if(Ba(h,p))return!0;if(typeof h!="object"||h===null||typeof p!="object"||p===null)return!1;var w=Object.keys(h),j=Object.keys(p);if(w.length!==j.length)return!1;for(j=0;j<w.length;j++){var U=w[j];if(!px.call(p,U)||!Ba(h[U],p[U]))return!1}return!0}function de(h){return h=h.status,h==="fulfilled"||h==="rejected"}function ye(h,p,w){switch(w=h[w],w===void 0?h.push(p):w!==p&&(p.then(pe,pe),p=w),p.status){case"fulfilled":return p.value;case"rejected":throw h=p.reason,jt(h),h;default:if(typeof p.status=="string")p.then(pe,pe);else{if(h=Vn,h!==null&&100<h.shellSuspendCounter)throw Error(i(482));h=p,h.status="pending",h.then(function(j){if(p.status==="pending"){var U=p;U.status="fulfilled",U.value=j}},function(j){if(p.status==="pending"){var U=p;U.status="rejected",U.reason=j}})}switch(p.status){case"fulfilled":return p.value;case"rejected":throw h=p.reason,jt(h),h}throw Pr=p,If}}function Xe(h){try{var p=h._init;return p(h._payload)}catch(w){throw w!==null&&typeof w=="object"&&typeof w.then=="function"?(Pr=w,If):w}}function Bn(){if(Pr===null)throw Error(i(459));var h=Pr;return Pr=null,h}function jt(h){if(h===If||h===R1)throw Error(i(483))}function qt(h){var p=Nm;return Nm+=1,jr===null&&(jr=[]),ye(jr,h,p)}function se(h,p){p=p.props.ref,h.ref=p!==void 0?p:null}function Oe(h,p){throw p.$$typeof===a1?Error(i(525)):(h=Object.prototype.toString.call(p),Error(i(31,h==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":h)))}function fe(h){function p(At,Et){if(h){var Dt=At.deletions;Dt===null?(At.deletions=[Et],At.flags|=16):Dt.push(Et)}}function w(At,Et){if(!h)return null;for(;Et!==null;)p(At,Et),Et=Et.sibling;return null}function j(At){for(var Et=new Map;At!==null;)At.key!==null?Et.set(At.key,At):Et.set(At.index,At),At=At.sibling;return Et}function U(At,Et){return At=ml(At,Et),At.index=0,At.sibling=null,At}function V(At,Et,Dt){return At.index=Dt,h?(Dt=At.alternate,Dt!==null?(Dt=Dt.index,Dt<Et?(At.flags|=67108866,Et):Dt):(At.flags|=67108866,Et)):(At.flags|=1048576,Et)}function at(At){return h&&At.alternate===null&&(At.flags|=67108866),At}function ft(At,Et,Dt,Kt){return Et===null||Et.tag!==6?(Et=pm(Dt,At.mode,Kt),Et.return=At,Et):(Et=U(Et,Dt),Et.return=At,Et)}function Ot(At,Et,Dt,Kt){var xe=Dt.type;return xe===Cd?Wt(At,Et,Dt.props.children,Kt,Dt.key):Et!==null&&(Et.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===mc&&Xe(xe)===Et.type)?(Et=U(Et,Dt.props),se(Et,Dt),Et.return=At,Et):(Et=fm(Dt.type,Dt.key,Dt.props,null,At.mode,Kt),se(Et,Dt),Et.return=At,Et)}function Ut(At,Et,Dt,Kt){return Et===null||Et.tag!==4||Et.stateNode.containerInfo!==Dt.containerInfo||Et.stateNode.implementation!==Dt.implementation?(Et=e1(Dt,At.mode,Kt),Et.return=At,Et):(Et=U(Et,Dt.children||[]),Et.return=At,Et)}function Wt(At,Et,Dt,Kt,xe){return Et===null||Et.tag!==7?(Et=bu(Dt,At.mode,Kt,xe),Et.return=At,Et):(Et=U(Et,Dt),Et.return=At,Et)}function Xt(At,Et,Dt){if(typeof Et=="string"&&Et!==""||typeof Et=="number"||typeof Et=="bigint")return Et=pm(""+Et,At.mode,Dt),Et.return=At,Et;if(typeof Et=="object"&&Et!==null){switch(Et.$$typeof){case gm:return Dt=fm(Et.type,Et.key,Et.props,null,At.mode,Dt),se(Dt,Et),Dt.return=At,Dt;case pc:return Et=e1(Et,At.mode,Dt),Et.return=At,Et;case mc:return Et=Xe(Et),Xt(At,Et,Dt)}if(gc(Et)||f(Et))return Et=bu(Et,At.mode,Dt,null),Et.return=At,Et;if(typeof Et.then=="function")return Xt(At,qt(Et),Dt);if(Et.$$typeof===Su)return Xt(At,pn(At,Et),Dt);Oe(At,Et)}return null}function ne(At,Et,Dt,Kt){var xe=Et!==null?Et.key:null;if(typeof Dt=="string"&&Dt!==""||typeof Dt=="number"||typeof Dt=="bigint")return xe!==null?null:ft(At,Et,""+Dt,Kt);if(typeof Dt=="object"&&Dt!==null){switch(Dt.$$typeof){case gm:return Dt.key===xe?Ot(At,Et,Dt,Kt):null;case pc:return Dt.key===xe?Ut(At,Et,Dt,Kt):null;case mc:return Dt=Xe(Dt),ne(At,Et,Dt,Kt)}if(gc(Dt)||f(Dt))return xe!==null?null:Wt(At,Et,Dt,Kt,null);if(typeof Dt.then=="function")return ne(At,Et,qt(Dt),Kt);if(Dt.$$typeof===Su)return ne(At,Et,pn(At,Dt),Kt);Oe(At,Dt)}return null}function Ae(At,Et,Dt,Kt,xe){if(typeof Kt=="string"&&Kt!==""||typeof Kt=="number"||typeof Kt=="bigint")return At=At.get(Dt)||null,ft(Et,At,""+Kt,xe);if(typeof Kt=="object"&&Kt!==null){switch(Kt.$$typeof){case gm:return At=At.get(Kt.key===null?Dt:Kt.key)||null,Ot(Et,At,Kt,xe);case pc:return At=At.get(Kt.key===null?Dt:Kt.key)||null,Ut(Et,At,Kt,xe);case mc:return Kt=Xe(Kt),Ae(At,Et,Dt,Kt,xe)}if(gc(Kt)||f(Kt))return At=At.get(Dt)||null,Wt(Et,At,Kt,xe,null);if(typeof Kt.then=="function")return Ae(At,Et,Dt,qt(Kt),xe);if(Kt.$$typeof===Su)return Ae(At,Et,Dt,pn(Et,Kt),xe);Oe(Et,Kt)}return null}function hi(At,Et,Dt,Kt){for(var xe=null,bi=null,De=Et,Tn=Et=0,ln=null;De!==null&&Tn<Dt.length;Tn++){De.index>Tn?(ln=De,De=null):ln=De.sibling;var mn=ne(At,De,Dt[Tn],Kt);if(mn===null){De===null&&(De=ln);break}h&&De&&mn.alternate===null&&p(At,De),Et=V(mn,Et,Tn),bi===null?xe=mn:bi.sibling=mn,bi=mn,De=ln}if(Tn===Dt.length)return w(At,De),en&&tt(At,Tn),xe;if(De===null){for(;Tn<Dt.length;Tn++)De=Xt(At,Dt[Tn],Kt),De!==null&&(Et=V(De,Et,Tn),bi===null?xe=De:bi.sibling=De,bi=De);return en&&tt(At,Tn),xe}for(De=j(De);Tn<Dt.length;Tn++)ln=Ae(De,At,Tn,Dt[Tn],Kt),ln!==null&&(h&&ln.alternate!==null&&De.delete(ln.key===null?Tn:ln.key),Et=V(ln,Et,Tn),bi===null?xe=ln:bi.sibling=ln,bi=ln);return h&&De.forEach(function(Nu){return p(At,Nu)}),en&&tt(At,Tn),xe}function da(At,Et,Dt,Kt){if(Dt==null)throw Error(i(151));for(var xe=null,bi=null,De=Et,Tn=Et=0,ln=null,mn=Dt.next();De!==null&&!mn.done;Tn++,mn=Dt.next()){De.index>Tn?(ln=De,De=null):ln=De.sibling;var Nu=ne(At,De,mn.value,Kt);if(Nu===null){De===null&&(De=ln);break}h&&De&&Nu.alternate===null&&p(At,De),Et=V(Nu,Et,Tn),bi===null?xe=Nu:bi.sibling=Nu,bi=Nu,De=ln}if(mn.done)return w(At,De),en&&tt(At,Tn),xe;if(De===null){for(;!mn.done;Tn++,mn=Dt.next())mn=Xt(At,mn.value,Kt),mn!==null&&(Et=V(mn,Et,Tn),bi===null?xe=mn:bi.sibling=mn,bi=mn);return en&&tt(At,Tn),xe}for(De=j(De);!mn.done;Tn++,mn=Dt.next())mn=Ae(De,At,Tn,mn.value,Kt),mn!==null&&(h&&mn.alternate!==null&&De.delete(mn.key===null?Tn:mn.key),Et=V(mn,Et,Tn),bi===null?xe=mn:bi.sibling=mn,bi=mn);return h&&De.forEach(function(km){return p(At,km)}),en&&tt(At,Tn),xe}function Hd(At,Et,Dt,Kt){if(typeof Dt=="object"&&Dt!==null&&Dt.type===Cd&&Dt.key===null&&(Dt=Dt.props.children),typeof Dt=="object"&&Dt!==null){switch(Dt.$$typeof){case gm:t:{for(var xe=Dt.key;Et!==null;){if(Et.key===xe){if(xe=Dt.type,xe===Cd){if(Et.tag===7){w(At,Et.sibling),Kt=U(Et,Dt.props.children),Kt.return=At,At=Kt;break t}}else if(Et.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===mc&&Xe(xe)===Et.type){w(At,Et.sibling),Kt=U(Et,Dt.props),se(Kt,Dt),Kt.return=At,At=Kt;break t}w(At,Et);break}else p(At,Et);Et=Et.sibling}Dt.type===Cd?(Kt=bu(Dt.props.children,At.mode,Kt,Dt.key),Kt.return=At,At=Kt):(Kt=fm(Dt.type,Dt.key,Dt.props,null,At.mode,Kt),se(Kt,Dt),Kt.return=At,At=Kt)}return at(At);case pc:t:{for(xe=Dt.key;Et!==null;){if(Et.key===xe)if(Et.tag===4&&Et.stateNode.containerInfo===Dt.containerInfo&&Et.stateNode.implementation===Dt.implementation){w(At,Et.sibling),Kt=U(Et,Dt.children||[]),Kt.return=At,At=Kt;break t}else{w(At,Et);break}else p(At,Et);Et=Et.sibling}Kt=e1(Dt,At.mode,Kt),Kt.return=At,At=Kt}return at(At);case mc:return Dt=Xe(Dt),Hd(At,Et,Dt,Kt)}if(gc(Dt))return hi(At,Et,Dt,Kt);if(f(Dt)){if(xe=f(Dt),typeof xe!="function")throw Error(i(150));return Dt=xe.call(Dt),da(At,Et,Dt,Kt)}if(typeof Dt.then=="function")return Hd(At,Et,qt(Dt),Kt);if(Dt.$$typeof===Su)return Hd(At,Et,pn(At,Dt),Kt);Oe(At,Dt)}return typeof Dt=="string"&&Dt!==""||typeof Dt=="number"||typeof Dt=="bigint"?(Dt=""+Dt,Et!==null&&Et.tag===6?(w(At,Et.sibling),Kt=U(Et,Dt),Kt.return=At,At=Kt):(w(At,Et),Kt=pm(Dt,At.mode,Kt),Kt.return=At,At=Kt),at(At)):w(At,Et)}return function(At,Et,Dt,Kt){try{Nm=0;var xe=Hd(At,Et,Dt,Kt);return jr=null,xe}catch(De){if(De===If||De===R1)throw De;var bi=e(29,De,null,At.mode);return bi.lanes=Kt,bi.return=At,bi}finally{}}}function Ce(){for(var h=So,p=yx=So=0;p<h;){var w=zr[p];zr[p++]=null;var j=zr[p];zr[p++]=null;var U=zr[p];zr[p++]=null;var V=zr[p];if(zr[p++]=null,j!==null&&U!==null){var at=j.pending;at===null?U.next=U:(U.next=at.next,at.next=U),j.pending=U}V!==0&&ou(w,U,V)}}function Gn(h,p,w,j){zr[So++]=h,zr[So++]=p,zr[So++]=w,zr[So++]=j,yx|=j,h.lanes|=j,h=h.alternate,h!==null&&(h.lanes|=j)}function Xa(h,p,w,j){return Gn(h,p,w,j),nl(h)}function el(h,p){return Gn(h,null,null,p),nl(h)}function ou(h,p,w){h.lanes|=w;var j=h.alternate;j!==null&&(j.lanes|=w);for(var U=!1,V=h.return;V!==null;)V.childLanes|=w,j=V.alternate,j!==null&&(j.childLanes|=w),V.tag===22&&(h=V.stateNode,h===null||h._visibility&1||(U=!0)),h=V,V=V.return;return h.tag===3?(V=h.stateNode,U&&p!==null&&(U=31-ks(w),h=V.hiddenUpdates,j=h[U],j===null?h[U]=[p]:j.push(p),p.lane=w|536870912),V):null}function nl(h){if(50<Kf)throw Kf=0,Y1=null,Error(i(185));for(var p=h.return;p!==null;)h=p,p=h.return;return h.tag===3?h.stateNode:null}function gd(h){h.updateQueue={baseState:h.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function il(h,p){h=h.updateQueue,p.updateQueue===h&&(p.updateQueue={baseState:h.baseState,firstBaseUpdate:h.firstBaseUpdate,lastBaseUpdate:h.lastBaseUpdate,shared:h.shared,callbacks:null})}function qa(h){return{lane:h,tag:0,payload:null,callback:null,next:null}}function al(h,p,w){var j=h.updateQueue;if(j===null)return null;if(j=j.shared,nn&2){var U=j.pending;return U===null?p.next=p:(p.next=U.next,U.next=p),j.pending=p,p=nl(h),ou(h,null,w),p}return Gn(h,j,p,w),nl(h)}function P0(h,p,w){if(p=p.updateQueue,p!==null&&(p=p.shared,(w&4194048)!==0)){var j=p.lanes;j&=h.pendingLanes,w|=j,p.lanes=w,B(h,w)}}function d2(h,p){var w=h.updateQueue,j=h.alternate;if(j!==null&&(j=j.updateQueue,w===j)){var U=null,V=null;if(w=w.firstBaseUpdate,w!==null){do{var at={lane:w.lane,tag:w.tag,payload:w.payload,callback:null,next:null};V===null?U=V=at:V=V.next=at,w=w.next}while(w!==null);V===null?U=V=p:V=V.next=p}else U=V=p;w={baseState:j.baseState,firstBaseUpdate:U,lastBaseUpdate:V,shared:j.shared,callbacks:j.callbacks},h.updateQueue=w;return}h=w.lastBaseUpdate,h===null?w.firstBaseUpdate=p:h.next=p,w.lastBaseUpdate=p}function lf(){if(_x){var h=Ff;if(h!==null)throw h}}function vd(h,p,w,j){_x=!1;var U=h.updateQueue;Sc=!1;var V=U.firstBaseUpdate,at=U.lastBaseUpdate,ft=U.shared.pending;if(ft!==null){U.shared.pending=null;var Ot=ft,Ut=Ot.next;Ot.next=null,at===null?V=Ut:at.next=Ut,at=Ot;var Wt=h.alternate;Wt!==null&&(Wt=Wt.updateQueue,ft=Wt.lastBaseUpdate,ft!==at&&(ft===null?Wt.firstBaseUpdate=Ut:ft.next=Ut,Wt.lastBaseUpdate=Ot))}if(V!==null){var Xt=U.baseState;at=0,Wt=Ut=Ot=null,ft=V;do{var ne=ft.lane&-536870913,Ae=ne!==ft.lane;if(Ae?(on&ne)===ne:(j&ne)===ne){ne!==0&&ne===kf&&(_x=!0),Wt!==null&&(Wt=Wt.next={lane:0,tag:ft.tag,payload:ft.payload,callback:null,next:null});t:{var hi=h,da=ft;ne=p;var Hd=w;switch(da.tag){case 1:if(hi=da.payload,typeof hi=="function"){Xt=hi.call(Hd,Xt,ne);break t}Xt=hi;break t;case 3:hi.flags=hi.flags&-65537|128;case 0:if(hi=da.payload,ne=typeof hi=="function"?hi.call(Hd,Xt,ne):hi,ne==null)break t;Xt=rr({},Xt,ne);break t;case 2:Sc=!0}}ne=ft.callback,ne!==null&&(h.flags|=64,Ae&&(h.flags|=8192),Ae=U.callbacks,Ae===null?U.callbacks=[ne]:Ae.push(ne))}else Ae={lane:ne,tag:ft.tag,payload:ft.payload,callback:ft.callback,next:null},Wt===null?(Ut=Wt=Ae,Ot=Xt):Wt=Wt.next=Ae,at|=ne;if(ft=ft.next,ft===null){if(ft=U.shared.pending,ft===null)break;Ae=ft,ft=Ae.next,Ae.next=null,U.lastBaseUpdate=Ae,U.shared.pending=null}}while(!0);Wt===null&&(Ot=Xt),U.baseState=Ot,U.firstBaseUpdate=Ut,U.lastBaseUpdate=Wt,V===null&&(U.shared.lanes=0),Tc|=at,h.lanes=at,h.memoizedState=Xt}}function h2(h,p){if(typeof h!="function")throw Error(i(191,h));h.call(p)}function qC(h,p){var w=h.callbacks;if(w!==null)for(h.callbacks=null,h=0;h<w.length;h++)h2(w[h],p)}function oe(h,p){h=Mu,S(D1,h),S(Tl,p),Mu=h|p.baseLanes}function j0(){S(D1,Mu),S(Tl,Tl.current)}function lu(){Mu=D1.current,v(Tl),v(D1)}function uu(h){var p=h.alternate;S(Bi,Bi.current&1),S(lr,h),Br===null&&(p===null||Tl.current!==null||p.memoizedState!==null)&&(Br=h)}function uf(h){S(Bi,Bi.current),S(lr,h),Br===null&&(Br=h)}function sl(h){h.tag===22?(S(Bi,Bi.current),S(lr,h),Br===null&&(Br=h)):cu()}function cu(){S(Bi,Bi.current),S(lr,lr.current)}function Ls(h){v(lr),Br===h&&(Br=null),v(Bi)}function du(h){for(var p=h;p!==null;){if(p.tag===13){var w=p.memoizedState;if(w!==null&&(w=w.dehydrated,w===null||Tm(w)||Am(w)))return p}else if(p.tag===19&&(p.memoizedProps.revealOrder==="forwards"||p.memoizedProps.revealOrder==="backwards"||p.memoizedProps.revealOrder==="unstable_legacy-backwards"||p.memoizedProps.revealOrder==="together")){if(p.flags&128)return p}else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===h)break;for(;p.sibling===null;){if(p.return===null||p.return===h)return null;p=p.return}p.sibling.return=p.return,p=p.sibling}return null}function yi(){throw Error(i(321))}function hu(h,p){if(p===null)return!1;for(var w=0;w<p.length&&w<h.length;w++)if(!Ba(h[w],p[w]))return!1;return!0}function z0(h,p,w,j,U,V){return Du=V,Fe=p,p.memoizedState=null,p.updateQueue=null,p.lanes=0,be.H=h===null||h.memoizedState===null?i4:bx,Fd=!1,V=w(j,U),Fd=!1,Uf&&(V=py(p,w,j,U)),cf(h),V}function cf(h){be.H=Lm;var p=Fn!==null&&Fn.next!==null;if(Du=0,Zi=Fn=Fe=null,M1=!1,Hf=0,Gf=null,p)throw Error(i(300));h===null||Ji||(h=h.dependencies,h!==null&&ze(h)&&(Ji=!0))}function py(h,p,w,j){Fe=h;var U=0;do{if(Uf&&(Gf=null),Hf=0,Uf=!1,25<=U)throw Error(i(301));if(U+=1,Zi=Fn=null,h.updateQueue!=null){var V=h.updateQueue;V.lastEffect=null,V.events=null,V.stores=null,V.memoCache!=null&&(V.memoCache.index=0)}be.H=a4,V=p(w,j)}while(Uf);return V}function my(){var h=be.H,p=h.useState()[0];return p=typeof p.then=="function"?ao(p):p,h=h.useState()[0],(Fn!==null?Fn.memoizedState:null)!==h&&(Fe.flags|=1024),p}function rl(){var h=O1!==0;return O1=0,h}function io(h,p,w){p.updateQueue=h.updateQueue,p.flags&=-2053,h.lanes&=~w}function B0(h){if(M1){for(h=h.memoizedState;h!==null;){var p=h.queue;p!==null&&(p.pending=null),h=h.next}M1=!1}Du=0,Zi=Fn=Fe=null,Uf=!1,Hf=O1=0,Gf=null}function Na(){var h={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zi===null?Fe.memoizedState=Zi=h:Zi=Zi.next=h,Zi}function qn(){if(Fn===null){var h=Fe.alternate;h=h!==null?h.memoizedState:null}else h=Fn.next;var p=Zi===null?Fe.memoizedState:Zi.next;if(p!==null)Zi=p,Fn=h;else{if(h===null)throw Fe.alternate===null?Error(i(467)):Error(i(310));Fn=h,h={memoizedState:Fn.memoizedState,baseState:Fn.baseState,baseQueue:Fn.baseQueue,queue:Fn.queue,next:null},Zi===null?Fe.memoizedState=Zi=h:Zi=Zi.next=h}return Zi}function yd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ao(h){var p=Hf;return Hf+=1,Gf===null&&(Gf=[]),h=ye(Gf,h,p),p=Fe,(Zi===null?p.memoizedState:Zi.next)===null&&(p=p.alternate,be.H=p===null||p.memoizedState===null?i4:bx),h}function kn(h){if(h!==null&&typeof h=="object"){if(typeof h.then=="function")return ao(h);if(h.$$typeof===Su)return Te(h)}throw Error(i(438,String(h)))}function df(h){var p=null,w=Fe.updateQueue;if(w!==null&&(p=w.memoCache),p==null){var j=Fe.alternate;j!==null&&(j=j.updateQueue,j!==null&&(j=j.memoCache,j!=null&&(p={data:j.data.map(function(U){return U.slice()}),index:0})))}if(p==null&&(p={data:[],index:0}),w===null&&(w=yd(),Fe.updateQueue=w),w.memoCache=p,w=p.data[p.index],w===void 0)for(w=p.data[p.index]=Array(h),j=0;j<h;j++)w[j]=gl;return p.index++,w}function ol(h,p){return typeof p=="function"?p(h):p}function hf(h){var p=qn();return fu(p,Fn,h)}function fu(h,p,w){var j=h.queue;if(j===null)throw Error(i(311));j.lastRenderedReducer=w;var U=h.baseQueue,V=j.pending;if(V!==null){if(U!==null){var at=U.next;U.next=V.next,V.next=at}p.baseQueue=U=V,j.pending=null}if(V=h.baseState,U===null)h.memoizedState=V;else{p=U.next;var ft=at=null,Ot=null,Ut=p,Wt=!1;do{var Xt=Ut.lane&-536870913;if(Xt!==Ut.lane?(on&Xt)===Xt:(Du&Xt)===Xt){var ne=Ut.revertLane;if(ne===0)Ot!==null&&(Ot=Ot.next={lane:0,revertLane:0,gesture:null,action:Ut.action,hasEagerState:Ut.hasEagerState,eagerState:Ut.eagerState,next:null}),Xt===kf&&(Wt=!0);else if((Du&ne)===ne){Ut=Ut.next,ne===kf&&(Wt=!0);continue}else Xt={lane:0,revertLane:Ut.revertLane,gesture:null,action:Ut.action,hasEagerState:Ut.hasEagerState,eagerState:Ut.eagerState,next:null},Ot===null?(ft=Ot=Xt,at=V):Ot=Ot.next=Xt,Fe.lanes|=ne,Tc|=ne;Xt=Ut.action,Fd&&w(V,Xt),V=Ut.hasEagerState?Ut.eagerState:w(V,Xt)}else ne={lane:Xt,revertLane:Ut.revertLane,gesture:Ut.gesture,action:Ut.action,hasEagerState:Ut.hasEagerState,eagerState:Ut.eagerState,next:null},Ot===null?(ft=Ot=ne,at=V):Ot=Ot.next=ne,Fe.lanes|=Xt,Tc|=Xt;Ut=Ut.next}while(Ut!==null&&Ut!==p);if(Ot===null?at=V:Ot.next=ft,!Ba(V,h.memoizedState)&&(Ji=!0,Wt&&(w=Ff,w!==null)))throw w;h.memoizedState=V,h.baseState=at,h.baseQueue=Ot,j.lastRenderedState=V}return U===null&&(j.lanes=0),[h.memoizedState,j.dispatch]}function _d(h){var p=qn(),w=p.queue;if(w===null)throw Error(i(311));w.lastRenderedReducer=h;var j=w.dispatch,U=w.pending,V=p.memoizedState;if(U!==null){w.pending=null;var at=U=U.next;do V=h(V,at.action),at=at.next;while(at!==U);Ba(V,p.memoizedState)||(Ji=!0),p.memoizedState=V,p.baseQueue===null&&(p.baseState=V),w.lastRenderedState=V}return[V,j]}function so(h,p,w){var j=Fe,U=qn(),V=en;if(V){if(w===void 0)throw Error(i(407));w=w()}else w=p();var at=!Ba((Fn||U).memoizedState,w);if(at&&(U.memoizedState=w,Ji=!0),U=U.queue,vy(k0.bind(null,j,U,h),[h]),U.getSnapshot!==p||at||Zi!==null&&Zi.memoizedState.tag&1){if(j.flags|=2048,gs(9,{destroy:void 0},ll.bind(null,j,U,w,p),null),Vn===null)throw Error(i(349));V||Du&127||QC(j,p,w)}return w}function QC(h,p,w){h.flags|=16384,h={getSnapshot:p,value:w},p=Fe.updateQueue,p===null?(p=yd(),Fe.updateQueue=p,p.stores=[h]):(w=p.stores,w===null?p.stores=[h]:w.push(h))}function ll(h,p,w,j){p.value=w,p.getSnapshot=j,ff(p)&&F0(h)}function k0(h,p,w){return w(function(){ff(p)&&F0(h)})}function ff(h){var p=h.getSnapshot;h=h.value;try{var w=p();return!Ba(h,w)}catch{return!0}}function F0(h){var p=el(h,2);p!==null&&ys(p,h,2)}function ms(h){var p=Na();if(typeof h=="function"){var w=h;if(h=w(),Fd){H(!0);try{w()}finally{H(!1)}}}return p.memoizedState=p.baseState=h,p.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ol,lastRenderedState:h},p}function Ps(h,p,w,j){return h.baseState=w,fu(h,Fn,typeof j=="function"?j:ol)}function ul(h,p,w,j,U){if(oc(h))throw Error(i(485));if(h=p.action,h!==null){var V={payload:U,action:h,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(at){V.listeners.push(at)}};be.T!==null?w(!0):V.isTransition=!1,j(V),w=p.pending,w===null?(V.next=p.pending=V,ro(p,V)):(V.next=w.next,p.pending=w.next=V)}}function ro(h,p){var w=p.action,j=p.payload,U=h.state;if(p.isTransition){var V=be.T,at={};be.T=at;try{var ft=w(U,j),Ot=be.S;Ot!==null&&Ot(at,ft),oo(h,p,ft)}catch(Ut){I0(h,p,Ut)}finally{V!==null&&at.types!==null&&(V.types=at.types),be.T=V}}else try{V=w(U,j),oo(h,p,V)}catch(Ut){I0(h,p,Ut)}}function oo(h,p,w){w!==null&&typeof w=="object"&&typeof w.then=="function"?w.then(function(j){lo(h,p,j)},function(j){return I0(h,p,j)}):lo(h,p,w)}function lo(h,p,w){p.status="fulfilled",p.value=w,gy(p),h.state=w,p=h.pending,p!==null&&(w=p.next,w===p?h.pending=null:(w=w.next,p.next=w,ro(h,w)))}function I0(h,p,w){var j=h.pending;if(h.pending=null,j!==null){j=j.next;do p.status="rejected",p.reason=w,gy(p),p=p.next;while(p!==j)}h.action=null}function gy(h){h=h.listeners;for(var p=0;p<h.length;p++)(0,h[p])()}function f2(h,p){return p}function uo(h,p){if(en){var w=Vn.formState;if(w!==null){t:{var j=Fe;if(en){if(ci){var U=L3(ci,Lr);if(U){ci=rx(U),j=P3(U);break t}}ht(j)}j=!1}j&&(p=w[0])}}w=Na(),w.memoizedState=w.baseState=p,j={pending:null,lanes:0,dispatch:null,lastRenderedReducer:f2,lastRenderedState:p},w.queue=j,w=Ey.bind(null,Fe,j),j.dispatch=w,j=ms(!1);var V=mf.bind(null,Fe,!1,j.queue);return j=Na(),U={state:p,dispatch:null,action:h,pending:null},j.queue=U,w=ul.bind(null,Fe,U,V,w),U.dispatch=w,j.memoizedState=h,[p,w,!1]}function p2(h){var p=qn();return co(p,Fn,h)}function co(h,p,w){if(p=fu(h,p,f2)[0],h=hf(ol)[0],typeof p=="object"&&p!==null&&typeof p.then=="function")try{var j=ao(p)}catch(at){throw at===If?R1:at}else j=p;p=qn();var U=p.queue,V=U.dispatch;return w!==p.memoizedState&&(Fe.flags|=2048,gs(9,{destroy:void 0},U0.bind(null,U,w),null)),[j,V,h]}function U0(h,p){h.action=p}function H0(h){var p=qn(),w=Fn;if(w!==null)return co(p,w,h);qn(),p=p.memoizedState,w=qn();var j=w.queue.dispatch;return w.memoizedState=h,[p,j,!1]}function gs(h,p,w,j){return h={tag:h,create:w,deps:j,inst:p,next:null},p=Fe.updateQueue,p===null&&(p=yd(),Fe.updateQueue=p),w=p.lastEffect,w===null?p.lastEffect=h.next=h:(j=w.next,w.next=h,h.next=j,p.lastEffect=h),h}function bd(){return qn().memoizedState}function G0(h,p,w,j){var U=Na();Fe.flags|=h,U.memoizedState=gs(1|p,{destroy:void 0},w,j===void 0?null:j)}function pf(h,p,w,j){var U=qn();j=j===void 0?null:j;var V=U.memoizedState.inst;Fn!==null&&j!==null&&hu(j,Fn.memoizedState.deps)?U.memoizedState=gs(p,V,w,j):(Fe.flags|=h,U.memoizedState=gs(1|p,V,w,j))}function m2(h,p){G0(8390656,8,h,p)}function vy(h,p){pf(2048,8,h,p)}function WC(h){Fe.flags|=4;var p=Fe.updateQueue;if(p===null)p=yd(),Fe.updateQueue=p,p.events=[h];else{var w=p.events;w===null?p.events=[h]:w.push(h)}}function yy(h){var p=qn().memoizedState;return WC({ref:p,nextImpl:h}),function(){if(nn&2)throw Error(i(440));return p.impl.apply(void 0,arguments)}}function g2(h,p){return pf(4,2,h,p)}function _y(h,p){return pf(4,4,h,p)}function ZC(h,p){if(typeof p=="function"){h=h();var w=p(h);return function(){typeof w=="function"?w():p(null)}}if(p!=null)return h=h(),p.current=h,function(){p.current=null}}function v2(h,p,w){w=w!=null?w.concat([h]):null,pf(4,4,ZC.bind(null,p,h),w)}function y2(){}function by(h,p){var w=qn();p=p===void 0?null:p;var j=w.memoizedState;return p!==null&&hu(p,j[1])?j[0]:(w.memoizedState=[h,p],h)}function V0(h,p){var w=qn();p=p===void 0?null:p;var j=w.memoizedState;if(p!==null&&hu(p,j[1]))return j[0];if(j=h(),Fd){H(!0);try{h()}finally{H(!1)}}return w.memoizedState=[j,p],j}function Sy(h,p,w){return w===void 0||Du&1073741824&&!(on&261930)?h.memoizedState=p:(h.memoizedState=w,h=lm(),Fe.lanes|=h,Tc|=h,w)}function Y0(h,p,w,j){return Ba(w,p)?w:Tl.current!==null?(h=Sy(h,w,j),Ba(h,p)||(Ji=!0),h):!(Du&42)||Du&1073741824&&!(on&261930)?(Ji=!0,h.memoizedState=w):(h=lm(),Fe.lanes|=h,Tc|=h,p)}function _2(h,p,w,j,U){var V=yl();ua(V!==0&&8>V?V:8);var at=be.T,ft={};be.T=ft,mf(h,!1,p,w);try{var Ot=U(),Ut=be.S;if(Ut!==null&&Ut(ft,Ot),Ot!==null&&typeof Ot=="object"&&typeof Ot.then=="function"){var Wt=On(Ot,j);rc(h,p,Wt,Bs(h))}else rc(h,p,j,Bs(h))}catch(Xt){rc(h,p,{then:function(){},status:"rejected",reason:Xt},Bs())}finally{ua(V),at!==null&&ft.types!==null&&(at.types=ft.types),be.T=at}}function b2(h){var p=h.memoizedState;if(p!==null)return p;p={memoizedState:bs,baseState:bs,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ol,lastRenderedState:bs},next:null};var w={};return p.next={memoizedState:w,baseState:w,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ol,lastRenderedState:w},next:null},h.memoizedState=p,h=h.alternate,h!==null&&(h.memoizedState=p),p}function xy(){return Te(vc)}function pu(){return qn().memoizedState}function S2(){return qn().memoizedState}function JC(h){for(var p=h.return;p!==null;){switch(p.tag){case 24:case 3:var w=Bs();h=qa(w);var j=al(p,h,w);j!==null&&(ys(j,p,w),P0(j,p,w)),p={cache:zt()},h.payload=p;return}p=p.return}}function La(h,p,w){var j=Bs();w={lane:j,revertLane:0,gesture:null,action:w,hasEagerState:!1,eagerState:null,next:null},oc(h)?x2(p,w):(w=Xa(h,p,w,j),w!==null&&(ys(w,h,j),K0(w,p,j)))}function Ey(h,p,w){var j=Bs();rc(h,p,w,j)}function rc(h,p,w,j){var U={lane:j,revertLane:0,gesture:null,action:w,hasEagerState:!1,eagerState:null,next:null};if(oc(h))x2(p,U);else{var V=h.alternate;if(h.lanes===0&&(V===null||V.lanes===0)&&(V=p.lastRenderedReducer,V!==null))try{var at=p.lastRenderedState,ft=V(at,w);if(U.hasEagerState=!0,U.eagerState=ft,Ba(ft,at))return Gn(h,p,U,0),Vn===null&&Ce(),!1}catch{}finally{}if(w=Xa(h,p,U,j),w!==null)return ys(w,h,j),K0(w,p,j),!0}return!1}function mf(h,p,w,j){if(j={lane:2,revertLane:wn(),gesture:null,action:j,hasEagerState:!1,eagerState:null,next:null},oc(h)){if(p)throw Error(i(479))}else p=Xa(h,w,j,2),p!==null&&ys(p,h,2)}function oc(h){var p=h.alternate;return h===Fe||p!==null&&p===Fe}function x2(h,p){Uf=M1=!0;var w=h.pending;w===null?p.next=p:(p.next=w.next,w.next=p),h.pending=p}function K0(h,p,w){if(w&4194048){var j=p.lanes;j&=h.pendingLanes,w|=j,p.lanes=w,B(h,w)}}function Ty(h,p,w,j){p=h.memoizedState,w=w(j,p),w=w==null?p:rr({},p,w),h.memoizedState=w,h.lanes===0&&(h.updateQueue.baseState=w)}function X0(h,p,w,j,U,V,at){return h=h.stateNode,typeof h.shouldComponentUpdate=="function"?h.shouldComponentUpdate(j,V,at):p.prototype&&p.prototype.isPureReactComponent?!Qt(w,j)||!Qt(U,V):!0}function E2(h,p,w,j){h=p.state,typeof p.componentWillReceiveProps=="function"&&p.componentWillReceiveProps(w,j),typeof p.UNSAFE_componentWillReceiveProps=="function"&&p.UNSAFE_componentWillReceiveProps(w,j),p.state!==h&&N1.enqueueReplaceState(p,p.state,null)}function cl(h,p){var w=p;if("ref"in p){w={};for(var j in p)j!=="ref"&&(w[j]=p[j])}if(h=h.defaultProps){w===p&&(w=rr({},w));for(var U in h)w[U]===void 0&&(w[U]=h[U])}return w}function q0(h,p){try{var w=h.onUncaughtError;w(p.value,{componentStack:p.stack})}catch(j){setTimeout(function(){throw j})}}function T2(h,p,w){try{var j=h.onCaughtError;j(w.value,{componentStack:w.stack,errorBoundary:p.tag===1?p.stateNode:null})}catch(U){setTimeout(function(){throw U})}}function gf(h,p,w){return w=qa(w),w.tag=3,w.payload={element:null},w.callback=function(){q0(h,p)},w}function Q0(h){return h=qa(h),h.tag=3,h}function Ay(h,p,w,j){var U=w.type.getDerivedStateFromError;if(typeof U=="function"){var V=j.value;h.payload=function(){return U(V)},h.callback=function(){T2(p,w,j)}}var at=w.stateNode;at!==null&&typeof at.componentDidCatch=="function"&&(h.callback=function(){T2(p,w,j),typeof U!="function"&&(Ac===null?Ac=new Set([this]):Ac.add(this));var ft=j.stack;this.componentDidCatch(j.value,{componentStack:ft!==null?ft:""})})}function Qa(h,p,w,j,U){if(w.flags|=32768,j!==null&&typeof j=="object"&&typeof j.then=="function"){if(p=w.alternate,p!==null&&we(p,w,U,!0),w=lr.current,w!==null){switch(w.tag){case 31:case 13:return Br===null?Tf():w.alternate===null&&Ei===0&&(Ei=3),w.flags&=-257,w.flags|=65536,w.lanes=U,j===w1?w.flags|=16384:(p=w.updateQueue,p===null?w.updateQueue=new Set([j]):p.add(j),Zy(h,j,U)),!1;case 22:return w.flags|=65536,j===w1?w.flags|=16384:(p=w.updateQueue,p===null?(p={transitions:null,markerInstances:null,retryQueue:new Set([j])},w.updateQueue=p):(w=p.retryQueue,w===null?p.retryQueue=new Set([j]):w.add(j)),Zy(h,j,U)),!1}throw Error(i(435,w.tag))}return Zy(h,j,U),Tf(),!1}if(en)return p=lr.current,p!==null?(!(p.flags&65536)&&(p.flags|=256),p.flags|=65536,p.lanes=U,j!==mx&&(h=Error(i(422),{cause:j}),wt(Q(h,w)))):(j!==mx&&(p=Error(i(423),{cause:j}),wt(Q(p,w))),h=h.current.alternate,h.flags|=65536,U&=-U,h.lanes|=U,j=Q(j,w),U=gf(h.stateNode,j,U),d2(h,U),Ei!==4&&(Ei=2)),!1;var V=Error(i(520),{cause:j});if(V=Q(V,w),zm===null?zm=[V]:zm.push(V),Ei!==4&&(Ei=2),p===null)return!0;j=Q(j,w),w=p;do{switch(w.tag){case 3:return w.flags|=65536,h=U&-U,w.lanes|=h,h=gf(w.stateNode,j,h),d2(w,h),!1;case 1:if(p=w.type,V=w.stateNode,(w.flags&128)===0&&(typeof p.getDerivedStateFromError=="function"||V!==null&&typeof V.componentDidCatch=="function"&&(Ac===null||!Ac.has(V))))return w.flags|=65536,U&=-U,w.lanes|=U,U=Q0(U),Ay(U,h,w,j),d2(w,U),!1}w=w.return}while(w!==null);return!1}function _a(h,p,w,j){p.child=h===null?n4(p,null,w,j):kd(p,h.child,w,j)}function W0(h,p,w,j,U){w=w.render;var V=p.ref;if("ref"in j){var at={};for(var ft in j)ft!=="ref"&&(at[ft]=j[ft])}else at=j;return Se(p),j=z0(h,p,w,at,V,U),ft=rl(),h!==null&&!Ji?(io(h,p,U),js(h,p,U)):(en&&ft&&ut(p),p.flags|=1,_a(h,p,j,U),p.child)}function Cy(h,p,w,j,U){if(h===null){var V=w.type;return typeof V=="function"&&!hm(V)&&V.defaultProps===void 0&&w.compare===null?(p.tag=15,p.type=V,Ry(h,p,V,j,U)):(h=fm(w.type,null,j,p,p.mode,U),h.ref=p.ref,h.return=p,p.child=h)}if(V=h.child,!_f(h,U)){var at=V.memoizedProps;if(w=w.compare,w=w!==null?w:Qt,w(at,j)&&h.ref===p.ref)return js(h,p,U)}return p.flags|=1,h=ml(V,j),h.ref=p.ref,h.return=p,p.child=h}function Ry(h,p,w,j,U){if(h!==null){var V=h.memoizedProps;if(Qt(V,j)&&h.ref===p.ref)if(Ji=!1,p.pendingProps=j=V,_f(h,U))h.flags&131072&&(Ji=!0);else return p.lanes=h.lanes,js(h,p,U)}return A2(h,p,w,j,U)}function mu(h,p,w,j){var U=j.children,V=h!==null?h.memoizedState:null;if(h===null&&p.stateNode===null&&(p.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),j.mode==="hidden"){if(p.flags&128){if(V=V!==null?V.baseLanes|w:w,h!==null){for(j=p.child=h.child,U=0;j!==null;)U=U|j.lanes|j.childLanes,j=j.sibling;j=U&~V}else j=0,p.child=null;return vf(h,p,V,w,j)}if(w&536870912)p.memoizedState={baseLanes:0,cachePool:null},h!==null&&la(p,V!==null?V.cachePool:null),V!==null?oe(p,V):j0(),sl(p);else return j=p.lanes=536870912,vf(h,p,V!==null?V.baseLanes|w:w,w,j)}else V!==null?(la(p,V.cachePool),oe(p,V),cu(),p.memoizedState=null):(h!==null&&la(p,null),j0(),cu());return _a(h,p,U,w),p.child}function Ar(h,p){return h!==null&&h.tag===22||p.stateNode!==null||(p.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.sibling}function vf(h,p,w,j,U){var V=Nn();return V=V===null?null:{parent:Dr?_i._currentValue:_i._currentValue2,pool:V},p.memoizedState={baseLanes:w,cachePool:V},h!==null&&la(p,null),j0(),sl(p),h!==null&&we(h,p,j,!0),p.childLanes=U,null}function Sd(h,p){return p=ho({mode:p.mode,children:p.children},h.mode),p.ref=h.ref,h.child=p,p.return=h,p}function yf(h,p,w){return kd(p,h.child,null,w),h=Sd(p,p.pendingProps),h.flags|=2,Ls(p),p.memoizedState=null,h}function Z0(h,p,w){var j=p.pendingProps,U=(p.flags&128)!==0;if(p.flags&=-129,h===null){if(en){if(j.mode==="hidden")return h=Sd(p,j),p.lanes=536870912,Ar(null,h);if(uf(p),(h=ci)?(h=k3(h,Lr),h!==null&&(p.memoizedState={dehydrated:h,treeContext:Ru!==null?{id:Ss,overflow:Sl}:null,retryLane:536870912,hydrationErrors:null},w=t1(h),w.return=p,p.child=w,ca=p,ci=null)):h=null,h===null)throw ht(p);return p.lanes=536870912,null}return Sd(p,j)}var V=h.memoizedState;if(V!==null){var at=V.dehydrated;if(uf(p),U)if(p.flags&256)p.flags&=-257,p=yf(h,p,w);else if(p.memoizedState!==null)p.child=h.child,p.flags|=128,p=null;else throw Error(i(558));else if(Ji||we(h,p,w,!1),U=(w&h.childLanes)!==0,Ji||U){if(j=Vn,j!==null&&(at=L(j,w),at!==0&&at!==V.retryLane))throw V.retryLane=at,el(h,at),ys(j,h,at),L1;Tf(),p=yf(h,p,w)}else h=V.treeContext,ja&&(ci=ox(at),ca=p,en=!0,wu=null,Lr=!1,h!==null&&ot(p,h)),p=Sd(p,j),p.flags|=4096;return p}return h=ml(h.child,{mode:j.mode,children:j.children}),h.ref=p.ref,p.child=h,h.return=p,h}function J0(h,p){var w=p.ref;if(w===null)h!==null&&h.ref!==null&&(p.flags|=4194816);else{if(typeof w!="function"&&typeof w!="object")throw Error(i(284));(h===null||h.ref!==w)&&(p.flags|=4194816)}}function A2(h,p,w,j,U){return Se(p),w=z0(h,p,w,j,void 0,U),j=rl(),h!==null&&!Ji?(io(h,p,U),js(h,p,U)):(en&&j&&ut(p),p.flags|=1,_a(h,p,w,U),p.child)}function C2(h,p,w,j,U,V){return Se(p),p.updateQueue=null,w=py(p,j,w,U),cf(h),j=rl(),h!==null&&!Ji?(io(h,p,V),js(h,p,V)):(en&&j&&ut(p),p.flags|=1,_a(h,p,w,V),p.child)}function R2(h,p,w,j,U){if(Se(p),p.stateNode===null){var V=Pd,at=w.contextType;typeof at=="object"&&at!==null&&(V=Te(at)),V=new w(j,V),p.memoizedState=V.state!==null&&V.state!==void 0?V.state:null,V.updater=N1,p.stateNode=V,V._reactInternals=p,V=p.stateNode,V.props=j,V.state=p.memoizedState,V.refs={},gd(p),at=w.contextType,V.context=typeof at=="object"&&at!==null?Te(at):Pd,V.state=p.memoizedState,at=w.getDerivedStateFromProps,typeof at=="function"&&(Ty(p,w,at,j),V.state=p.memoizedState),typeof w.getDerivedStateFromProps=="function"||typeof V.getSnapshotBeforeUpdate=="function"||typeof V.UNSAFE_componentWillMount!="function"&&typeof V.componentWillMount!="function"||(at=V.state,typeof V.componentWillMount=="function"&&V.componentWillMount(),typeof V.UNSAFE_componentWillMount=="function"&&V.UNSAFE_componentWillMount(),at!==V.state&&N1.enqueueReplaceState(V,V.state,null),vd(p,j,V,U),lf(),V.state=p.memoizedState),typeof V.componentDidMount=="function"&&(p.flags|=4194308),j=!0}else if(h===null){V=p.stateNode;var ft=p.memoizedProps,Ot=cl(w,ft);V.props=Ot;var Ut=V.context,Wt=w.contextType;at=Pd,typeof Wt=="object"&&Wt!==null&&(at=Te(Wt));var Xt=w.getDerivedStateFromProps;Wt=typeof Xt=="function"||typeof V.getSnapshotBeforeUpdate=="function",ft=p.pendingProps!==ft,Wt||typeof V.UNSAFE_componentWillReceiveProps!="function"&&typeof V.componentWillReceiveProps!="function"||(ft||Ut!==at)&&E2(p,V,j,at),Sc=!1;var ne=p.memoizedState;V.state=ne,vd(p,j,V,U),lf(),Ut=p.memoizedState,ft||ne!==Ut||Sc?(typeof Xt=="function"&&(Ty(p,w,Xt,j),Ut=p.memoizedState),(Ot=Sc||X0(p,w,Ot,j,ne,Ut,at))?(Wt||typeof V.UNSAFE_componentWillMount!="function"&&typeof V.componentWillMount!="function"||(typeof V.componentWillMount=="function"&&V.componentWillMount(),typeof V.UNSAFE_componentWillMount=="function"&&V.UNSAFE_componentWillMount()),typeof V.componentDidMount=="function"&&(p.flags|=4194308)):(typeof V.componentDidMount=="function"&&(p.flags|=4194308),p.memoizedProps=j,p.memoizedState=Ut),V.props=j,V.state=Ut,V.context=at,j=Ot):(typeof V.componentDidMount=="function"&&(p.flags|=4194308),j=!1)}else{V=p.stateNode,il(h,p),at=p.memoizedProps,Wt=cl(w,at),V.props=Wt,Xt=p.pendingProps,ne=V.context,Ut=w.contextType,Ot=Pd,typeof Ut=="object"&&Ut!==null&&(Ot=Te(Ut)),ft=w.getDerivedStateFromProps,(Ut=typeof ft=="function"||typeof V.getSnapshotBeforeUpdate=="function")||typeof V.UNSAFE_componentWillReceiveProps!="function"&&typeof V.componentWillReceiveProps!="function"||(at!==Xt||ne!==Ot)&&E2(p,V,j,Ot),Sc=!1,ne=p.memoizedState,V.state=ne,vd(p,j,V,U),lf();var Ae=p.memoizedState;at!==Xt||ne!==Ae||Sc||h!==null&&h.dependencies!==null&&ze(h.dependencies)?(typeof ft=="function"&&(Ty(p,w,ft,j),Ae=p.memoizedState),(Wt=Sc||X0(p,w,Wt,j,ne,Ae,Ot)||h!==null&&h.dependencies!==null&&ze(h.dependencies))?(Ut||typeof V.UNSAFE_componentWillUpdate!="function"&&typeof V.componentWillUpdate!="function"||(typeof V.componentWillUpdate=="function"&&V.componentWillUpdate(j,Ae,Ot),typeof V.UNSAFE_componentWillUpdate=="function"&&V.UNSAFE_componentWillUpdate(j,Ae,Ot)),typeof V.componentDidUpdate=="function"&&(p.flags|=4),typeof V.getSnapshotBeforeUpdate=="function"&&(p.flags|=1024)):(typeof V.componentDidUpdate!="function"||at===h.memoizedProps&&ne===h.memoizedState||(p.flags|=4),typeof V.getSnapshotBeforeUpdate!="function"||at===h.memoizedProps&&ne===h.memoizedState||(p.flags|=1024),p.memoizedProps=j,p.memoizedState=Ae),V.props=j,V.state=Ae,V.context=Ot,j=Wt):(typeof V.componentDidUpdate!="function"||at===h.memoizedProps&&ne===h.memoizedState||(p.flags|=4),typeof V.getSnapshotBeforeUpdate!="function"||at===h.memoizedProps&&ne===h.memoizedState||(p.flags|=1024),j=!1)}return V=j,J0(h,p),j=(p.flags&128)!==0,V||j?(V=p.stateNode,w=j&&typeof w.getDerivedStateFromError!="function"?null:V.render(),p.flags|=1,h!==null&&j?(p.child=kd(p,h.child,null,U),p.child=kd(p,null,w,U)):_a(h,p,w,U),p.memoizedState=V.state,h=p.child):h=js(h,p,U),h}function wy(h,p,w,j){return yt(),p.flags|=256,_a(h,p,w,j),p.child}function $0(h){return{baseLanes:h,cachePool:Bt()}}function dl(h,p,w){return h=h!==null?h.childLanes&~w:0,p&&(h|=cr),h}function Dy(h,p,w){var j=p.pendingProps,U=!1,V=(p.flags&128)!==0,at;if((at=V)||(at=h!==null&&h.memoizedState===null?!1:(Bi.current&2)!==0),at&&(U=!0,p.flags&=-129),at=(p.flags&32)!==0,p.flags&=-33,h===null){if(en){if(U?uu(p):cu(),(h=ci)?(h=ZD(h,Lr),h!==null&&(p.memoizedState={dehydrated:h,treeContext:Ru!==null?{id:Ss,overflow:Sl}:null,retryLane:536870912,hydrationErrors:null},w=t1(h),w.return=p,p.child=w,ca=p,ci=null)):h=null,h===null)throw ht(p);return Am(h)?p.lanes=32:p.lanes=536870912,null}var ft=j.children;return j=j.fallback,U?(cu(),U=p.mode,ft=ho({mode:"hidden",children:ft},U),j=bu(j,U,w,null),ft.return=p,j.return=p,ft.sibling=j,p.child=ft,j=p.child,j.memoizedState=$0(w),j.childLanes=dl(h,at,w),p.memoizedState=P1,Ar(null,j)):(uu(p),My(p,ft))}var Ot=h.memoizedState;if(Ot!==null&&(ft=Ot.dehydrated,ft!==null)){if(V)p.flags&256?(uu(p),p.flags&=-257,p=vs(h,p,w)):p.memoizedState!==null?(cu(),p.child=h.child,p.flags|=128,p=null):(cu(),ft=j.fallback,U=p.mode,j=ho({mode:"visible",children:j.children},U),ft=bu(ft,U,w,null),ft.flags|=2,j.return=p,ft.return=p,j.sibling=ft,p.child=j,kd(p,h.child,null,w),j=p.child,j.memoizedState=$0(w),j.childLanes=dl(h,at,w),p.memoizedState=P1,p=Ar(null,j));else if(uu(p),Am(ft))at=Od(ft).digest,j=Error(i(419)),j.stack="",j.digest=at,wt({value:j,source:null,stack:null}),p=vs(h,p,w);else if(Ji||we(h,p,w,!1),at=(w&h.childLanes)!==0,Ji||at){if(at=Vn,at!==null&&(j=L(at,w),j!==0&&j!==Ot.retryLane))throw Ot.retryLane=j,el(h,j),ys(at,h,j),L1;Tm(ft)||Tf(),p=vs(h,p,w)}else Tm(ft)?(p.flags|=192,p.child=h.child,p=null):(h=Ot.treeContext,ja&&(ci=z3(ft),ca=p,en=!0,wu=null,Lr=!1,h!==null&&ot(p,h)),p=My(p,j.children),p.flags|=4096);return p}return U?(cu(),ft=j.fallback,U=p.mode,Ot=h.child,V=Ot.sibling,j=ml(Ot,{mode:"hidden",children:j.children}),j.subtreeFlags=Ot.subtreeFlags&65011712,V!==null?ft=ml(V,ft):(ft=bu(ft,U,w,null),ft.flags|=2),ft.return=p,j.return=p,j.sibling=ft,p.child=j,Ar(null,j),j=p.child,ft=h.child.memoizedState,ft===null?ft=$0(w):(U=ft.cachePool,U!==null?(Ot=Dr?_i._currentValue:_i._currentValue2,U=U.parent!==Ot?{parent:Ot,pool:Ot}:U):U=Bt(),ft={baseLanes:ft.baseLanes|w,cachePool:U}),j.memoizedState=ft,j.childLanes=dl(h,at,w),p.memoizedState=P1,Ar(h.child,j)):(uu(p),w=h.child,h=w.sibling,w=ml(w,{mode:"visible",children:j.children}),w.return=p,w.sibling=null,h!==null&&(at=p.deletions,at===null?(p.deletions=[h],p.flags|=16):at.push(h)),p.child=w,p.memoizedState=null,w)}function My(h,p){return p=ho({mode:"visible",children:p},h.mode),p.return=h,h.child=p}function ho(h,p){return h=e(22,h,null,p),h.lanes=0,h}function vs(h,p,w){return kd(p,h.child,null,w),h=My(p,p.pendingProps.children),h.flags|=2,p.memoizedState=null,h}function tm(h,p,w){h.lanes|=p;var j=h.alternate;j!==null&&(j.lanes|=p),$t(h.return,p,w)}function ke(h,p,w,j,U,V){var at=h.memoizedState;at===null?h.memoizedState={isBackwards:p,rendering:null,renderingStartTime:0,last:j,tail:w,tailMode:U,treeForkCount:V}:(at.isBackwards=p,at.rendering=null,at.renderingStartTime=0,at.last=j,at.tail=w,at.tailMode=U,at.treeForkCount=V)}function Ht(h,p,w){var j=p.pendingProps,U=j.revealOrder,V=j.tail;j=j.children;var at=Bi.current,ft=(at&2)!==0;if(ft?(at=at&1|2,p.flags|=128):at&=1,S(Bi,at),_a(h,p,j,w),j=en?Ct:0,!ft&&h!==null&&h.flags&128)t:for(h=p.child;h!==null;){if(h.tag===13)h.memoizedState!==null&&tm(h,w,p);else if(h.tag===19)tm(h,w,p);else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===p)break t;for(;h.sibling===null;){if(h.return===null||h.return===p)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}switch(U){case"forwards":for(w=p.child,U=null;w!==null;)h=w.alternate,h!==null&&du(h)===null&&(U=w),w=w.sibling;w=U,w===null?(U=p.child,p.child=null):(U=w.sibling,w.sibling=null),ke(p,!1,U,w,V,j);break;case"backwards":case"unstable_legacy-backwards":for(w=null,U=p.child,p.child=null;U!==null;){if(h=U.alternate,h!==null&&du(h)===null){p.child=U;break}h=U.sibling,U.sibling=w,w=U,U=h}ke(p,!0,w,null,V,j);break;case"together":ke(p,!1,null,null,void 0,j);break;default:p.memoizedState=null}return p.child}function js(h,p,w){if(h!==null&&(p.dependencies=h.dependencies),Tc|=p.lanes,!(w&p.childLanes))if(h!==null){if(we(h,p,w,!1),(w&p.childLanes)===0)return null}else return null;if(h!==null&&p.child!==h.child)throw Error(i(153));if(p.child!==null){for(h=p.child,w=ml(h,h.pendingProps),p.child=w,w.return=p;h.sibling!==null;)h=h.sibling,w=w.sibling=ml(h,h.pendingProps),w.return=p;w.sibling=null}return p.child}function _f(h,p){return h.lanes&p?!0:(h=h.dependencies,!!(h!==null&&ze(h)))}function xi(h,p,w){switch(p.tag){case 3:dt(p,p.stateNode.containerInfo),It(p,_i,h.memoizedState.cache),yt();break;case 27:case 5:it(p);break;case 4:dt(p,p.stateNode.containerInfo);break;case 10:It(p,p.type,p.memoizedProps.value);break;case 31:if(p.memoizedState!==null)return p.flags|=128,uf(p),null;break;case 13:var j=p.memoizedState;if(j!==null)return j.dehydrated!==null?(uu(p),p.flags|=128,null):w&p.child.childLanes?Dy(h,p,w):(uu(p),h=js(h,p,w),h!==null?h.sibling:null);uu(p);break;case 19:var U=(h.flags&128)!==0;if(j=(w&p.childLanes)!==0,j||(we(h,p,w,!1),j=(w&p.childLanes)!==0),U){if(j)return Ht(h,p,w);p.flags|=128}if(U=p.memoizedState,U!==null&&(U.rendering=null,U.tail=null,U.lastEffect=null),S(Bi,Bi.current),j)break;return null;case 22:return p.lanes=0,mu(h,p,w,p.pendingProps);case 24:It(p,_i,h.memoizedState.cache)}return js(h,p,w)}function Oy(h,p,w){if(h!==null)if(h.memoizedProps!==p.pendingProps)Ji=!0;else{if(!_f(h,w)&&!(p.flags&128))return Ji=!1,xi(h,p,w);Ji=!!(h.flags&131072)}else Ji=!1,en&&p.flags&1048576&&rt(p,Ct,p.index);switch(p.lanes=0,p.tag){case 16:t:{var j=p.pendingProps;if(h=Xe(p.elementType),p.type=h,typeof h=="function")hm(h)?(j=cl(h,j),p.tag=1,p=R2(null,p,h,j,w)):(p.tag=0,p=A2(null,p,h,j,w));else{if(h!=null){var U=h.$$typeof;if(U===Cf){p.tag=11,p=W0(null,p,h,j,w);break t}else if(U===Q2){p.tag=14,p=Cy(null,p,h,j,w);break t}}throw p=m(h)||h,Error(i(306,p,""))}}return p;case 0:return A2(h,p,p.type,p.pendingProps,w);case 1:return j=p.type,U=cl(j,p.pendingProps),R2(h,p,j,U,w);case 3:t:{if(dt(p,p.stateNode.containerInfo),h===null)throw Error(i(387));var V=p.pendingProps;U=p.memoizedState,j=U.element,il(h,p),vd(p,V,null,w);var at=p.memoizedState;if(V=at.cache,It(p,_i,V),V!==U.cache&&Jt(p,[_i],w,!0),lf(),V=at.element,ja&&U.isDehydrated)if(U={element:V,isDehydrated:!1,cache:at.cache},p.updateQueue.baseState=U,p.memoizedState=U,p.flags&256){p=wy(h,p,V,w);break t}else if(V!==j){j=Q(Error(i(424)),p),wt(j),p=wy(h,p,V,w);break t}else for(ja&&(ci=f1(p.stateNode.containerInfo),ca=p,en=!0,wu=null,Lr=!0),w=n4(p,null,V,w),p.child=w;w;)w.flags=w.flags&-3|4096,w=w.sibling;else{if(yt(),V===j){p=js(h,p,w);break t}_a(h,p,V,w)}p=p.child}return p;case 26:if(Mr)return J0(h,p),h===null?(w=Of(p.type,null,p.pendingProps,null))?p.memoizedState=w:en||(p.stateNode=W3(p.type,p.pendingProps,_c.current,p)):p.memoizedState=Of(p.type,h.memoizedProps,p.pendingProps,h.memoizedState),null;case 27:if(Qi)return it(p),h===null&&Qi&&en&&(j=p.stateNode=y1(p.type,p.pendingProps,_c.current,ka.current,!1),ca=p,Lr=!0,ci=QD(p.type,j,ci)),_a(h,p,p.pendingProps.children,w),J0(h,p),h===null&&(p.flags|=4194304),p.child;case 5:return h===null&&en&&(t8(p.type,p.pendingProps,ka.current),(U=j=ci)&&(j=WD(j,p.type,p.pendingProps,Lr),j!==null?(p.stateNode=j,ca=p,ci=h1(j),Lr=!1,U=!0):U=!1),U||ht(p)),it(p),U=p.type,V=p.pendingProps,at=h!==null?h.memoizedProps:null,j=V.children,bm(U,V)?j=null:at!==null&&bm(U,at)&&(p.flags|=32),p.memoizedState!==null&&(U=z0(h,p,my,null,null,w),Dr?vc._currentValue=U:vc._currentValue2=U),J0(h,p),_a(h,p,j,w),p.child;case 6:return h===null&&en&&(cx(p.pendingProps,ka.current),(h=w=ci)&&(w=B3(w,p.pendingProps,Lr),w!==null?(p.stateNode=w,ca=p,ci=null,h=!0):h=!1),h||ht(p)),null;case 13:return Dy(h,p,w);case 4:return dt(p,p.stateNode.containerInfo),j=p.pendingProps,h===null?p.child=kd(p,null,j,w):_a(h,p,j,w),p.child;case 11:return W0(h,p,p.type,p.pendingProps,w);case 7:return _a(h,p,p.pendingProps,w),p.child;case 8:return _a(h,p,p.pendingProps.children,w),p.child;case 12:return _a(h,p,p.pendingProps.children,w),p.child;case 10:return j=p.pendingProps,It(p,p.type,j.value),_a(h,p,j.children,w),p.child;case 9:return U=p.type._context,j=p.pendingProps.children,Se(p),U=Te(U),j=j(U),p.flags|=1,_a(h,p,j,w),p.child;case 14:return Cy(h,p,p.type,p.pendingProps,w);case 15:return Ry(h,p,p.type,p.pendingProps,w);case 19:return Ht(h,p,w);case 31:return Z0(h,p,w);case 22:return mu(h,p,w,p.pendingProps);case 24:return Se(p),j=Te(_i),h===null?(U=Nn(),U===null&&(U=Vn,V=zt(),U.pooledCache=V,V.refCount++,V!==null&&(U.pooledCacheLanes|=w),U=V),p.memoizedState={parent:j,cache:U},gd(p),It(p,_i,U)):(h.lanes&w&&(il(h,p),vd(p,null,null,w),lf()),U=h.memoizedState,V=p.memoizedState,U.parent!==j?(U={parent:j,cache:j},p.memoizedState=U,p.lanes===0&&(p.memoizedState=p.updateQueue.baseState=U),It(p,_i,j)):(j=V.cache,It(p,_i,j),j!==U.cache&&Jt(p,[_i],w,!0))),_a(h,p,p.pendingProps.children,w),p.child;case 29:throw p.pendingProps}throw Error(i(156,p.tag))}function sr(h){h.flags|=4}function em(h){vo&&(h.flags|=8)}function Ny(h,p){if(h!==null&&h.child===p.child)return!1;if(p.flags&16)return!0;for(h=p.child;h!==null;){if(h.flags&8218||h.subtreeFlags&8218)return!0;h=h.sibling}return!1}function w2(h,p,w,j){if(Ja)for(w=p.child;w!==null;){if(w.tag===5||w.tag===6)o1(h,w.stateNode);else if(!(w.tag===4||Qi&&w.tag===27)&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===p)break;for(;w.sibling===null;){if(w.return===null||w.return===p)return;w=w.return}w.sibling.return=w.return,w=w.sibling}else if(vo)for(var U=p.child;U!==null;){if(U.tag===5){var V=U.stateNode;w&&j&&(V=Eu(V,U.type,U.memoizedProps)),o1(h,V)}else if(U.tag===6)V=U.stateNode,w&&j&&(V=Em(V,U.memoizedProps)),o1(h,V);else if(U.tag!==4){if(U.tag===22&&U.memoizedState!==null)V=U.child,V!==null&&(V.return=U),w2(h,U,!0,!0);else if(U.child!==null){U.child.return=U,U=U.child;continue}}if(U===p)break;for(;U.sibling===null;){if(U.return===null||U.return===p)return;U=U.return}U.sibling.return=U.return,U=U.sibling}}function Ly(h,p,w,j){var U=!1;if(vo)for(var V=p.child;V!==null;){if(V.tag===5){var at=V.stateNode;w&&j&&(at=Eu(at,V.type,V.memoizedProps)),sx(h,at)}else if(V.tag===6)at=V.stateNode,w&&j&&(at=Em(at,V.memoizedProps)),sx(h,at);else if(V.tag!==4){if(V.tag===22&&V.memoizedState!==null)U=V.child,U!==null&&(U.return=V),Ly(h,V,!0,!0),U=!0;else if(V.child!==null){V.child.return=V,V=V.child;continue}}if(V===p)break;for(;V.sibling===null;){if(V.return===null||V.return===p)return U;V=V.return}V.sibling.return=V.return,V=V.sibling}return U}function Py(h,p){if(vo&&Ny(h,p)){h=p.stateNode;var w=h.containerInfo,j=ui();Ly(j,p,!1,!1),h.pendingChildren=j,sr(p),O3(w,j)}}function nm(h,p,w,j){if(Ja)h.memoizedProps!==j&&sr(p);else if(vo){var U=h.stateNode,V=h.memoizedProps;if((h=Ny(h,p))||V!==j){var at=ka.current;V=M3(U,w,V,j,!h,null),V===U?p.stateNode=U:(em(p),f3(V,w,j,at)&&sr(p),p.stateNode=V,h&&w2(V,p,!1,!1))}else p.stateNode=U}}function Pa(h,p,w,j,U){if(h.mode&32&&(w===null?v3(p,j):XD(p,w,j))){if(h.flags|=16777216,(U&335544128)===U||Rf(p,j))if(za(h.stateNode,p,j))h.flags|=8192;else if(r3())h.flags|=8192;else throw Pr=w1,C1}else h.flags&=-16777217}function Cn(h,p){if(e8(p)){if(h.flags|=16777216,!v1(p))if(r3())h.flags|=8192;else throw Pr=w1,C1}else h.flags&=-16777217}function xd(h,p){p!==null&&(h.flags|=4),h.flags&16384&&(p=h.tag!==22?C():536870912,h.lanes|=p,Vf|=p)}function gu(h,p){if(!en)switch(h.tailMode){case"hidden":p=h.tail;for(var w=null;p!==null;)p.alternate!==null&&(w=p),p=p.sibling;w===null?h.tail=null:w.sibling=null;break;case"collapsed":w=h.tail;for(var j=null;w!==null;)w.alternate!==null&&(j=w),w=w.sibling;j===null?p||h.tail===null?h.tail=null:h.tail.sibling=null:j.sibling=null}}function En(h){var p=h.alternate!==null&&h.alternate.child===h.child,w=0,j=0;if(p)for(var U=h.child;U!==null;)w|=U.lanes|U.childLanes,j|=U.subtreeFlags&65011712,j|=U.flags&65011712,U.return=h,U=U.sibling;else for(U=h.child;U!==null;)w|=U.lanes|U.childLanes,j|=U.subtreeFlags,j|=U.flags,U.return=h,U=U.sibling;return h.subtreeFlags|=j,h.childLanes=w,p}function Ed(h,p,w){var j=p.pendingProps;switch(st(p),p.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return En(p),null;case 1:return En(p),null;case 3:return w=p.stateNode,j=null,h!==null&&(j=h.memoizedState.cache),p.memoizedState.cache!==j&&(p.flags|=2048),Ft(_i),pt(),w.pendingContext&&(w.context=w.pendingContext,w.pendingContext=null),(h===null||h.child===null)&&(bt(p)?sr(p):h===null||h.memoizedState.isDehydrated&&!(p.flags&256)||(p.flags|=1024,Tt())),Py(h,p),En(p),null;case 26:if(Mr){var U=p.type,V=p.memoizedState;return h===null?(sr(p),V!==null?(En(p),Cn(p,V)):(En(p),Pa(p,U,null,j,w))):V?V!==h.memoizedState?(sr(p),En(p),Cn(p,V)):(En(p),p.flags&=-16777217):(V=h.memoizedProps,Ja?V!==j&&sr(p):nm(h,p,U,j),En(p),Pa(p,U,V,j,w)),null}case 27:if(Qi){if(lt(p),w=_c.current,U=p.type,h!==null&&p.stateNode!=null)Ja?h.memoizedProps!==j&&sr(p):nm(h,p,U,j);else{if(!j){if(p.stateNode===null)throw Error(i(166));return En(p),null}h=ka.current,bt(p)?St(p,h):(h=y1(U,j,w,h,!0),p.stateNode=h,sr(p))}return En(p),null}case 5:if(lt(p),U=p.type,h!==null&&p.stateNode!=null)nm(h,p,U,j);else{if(!j){if(p.stateNode===null)throw Error(i(166));return En(p),null}if(V=ka.current,bt(p))St(p,V),V3(p.stateNode,U,j,V)&&(p.flags|=64);else{var at=vl(U,j,_c.current,V,p);em(p),w2(at,p,!1,!1),p.stateNode=at,f3(at,U,j,V)&&sr(p)}}return En(p),Pa(p,p.type,h===null?null:h.memoizedProps,p.pendingProps,w),null;case 6:if(h&&p.stateNode!=null)w=h.memoizedProps,Ja?w!==j&&sr(p):vo&&(w!==j?(h=_c.current,w=ka.current,em(p),p.stateNode=l1(j,h,w,p)):p.stateNode=h.stateNode);else{if(typeof j!="string"&&p.stateNode===null)throw Error(i(166));if(h=_c.current,w=ka.current,bt(p)){if(!ja)throw Error(i(176));if(h=p.stateNode,w=p.memoizedProps,j=null,U=ca,U!==null)switch(U.tag){case 27:case 5:j=U.memoizedProps}p1(h,w,p,j)||ht(p,!0)}else em(p),p.stateNode=l1(j,h,w,p)}return En(p),null;case 31:if(w=p.memoizedState,h===null||h.memoizedState!==null){if(j=bt(p),w!==null){if(h===null){if(!j)throw Error(i(318));if(!ja)throw Error(i(556));if(h=p.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(i(557));F3(h,p)}else yt(),!(p.flags&128)&&(p.memoizedState=null),p.flags|=4;En(p),h=!1}else w=Tt(),h!==null&&h.memoizedState!==null&&(h.memoizedState.hydrationErrors=w),h=!0;if(!h)return p.flags&256?(Ls(p),p):(Ls(p),null);if(p.flags&128)throw Error(i(558))}return En(p),null;case 13:if(j=p.memoizedState,h===null||h.memoizedState!==null&&h.memoizedState.dehydrated!==null){if(U=bt(p),j!==null&&j.dehydrated!==null){if(h===null){if(!U)throw Error(i(318));if(!ja)throw Error(i(344));if(U=p.memoizedState,U=U!==null?U.dehydrated:null,!U)throw Error(i(317));lx(U,p)}else yt(),!(p.flags&128)&&(p.memoizedState=null),p.flags|=4;En(p),U=!1}else U=Tt(),h!==null&&h.memoizedState!==null&&(h.memoizedState.hydrationErrors=U),U=!0;if(!U)return p.flags&256?(Ls(p),p):(Ls(p),null)}return Ls(p),p.flags&128?(p.lanes=w,p):(w=j!==null,h=h!==null&&h.memoizedState!==null,w&&(j=p.child,U=null,j.alternate!==null&&j.alternate.memoizedState!==null&&j.alternate.memoizedState.cachePool!==null&&(U=j.alternate.memoizedState.cachePool.pool),V=null,j.memoizedState!==null&&j.memoizedState.cachePool!==null&&(V=j.memoizedState.cachePool.pool),V!==U&&(j.flags|=2048)),w!==h&&w&&(p.child.flags|=8192),xd(p,p.updateQueue),En(p),null);case 4:return pt(),Py(h,p),h===null&&KD(p.stateNode.containerInfo),En(p),null;case 10:return Ft(p.type),En(p),null;case 19:if(v(Bi),j=p.memoizedState,j===null)return En(p),null;if(U=(p.flags&128)!==0,V=j.rendering,V===null)if(U)gu(j,!1);else{if(Ei!==0||h!==null&&h.flags&128)for(h=p.child;h!==null;){if(V=du(h),V!==null){for(p.flags|=128,gu(j,!1),h=V.updateQueue,p.updateQueue=h,xd(p,h),p.subtreeFlags=0,h=w,w=p.child;w!==null;)V2(w,h),w=w.sibling;return S(Bi,Bi.current&1|2),en&&tt(p,j.treeForkCount),p.child}h=h.sibling}j.tail!==null&&Dn()>Yf&&(p.flags|=128,U=!0,gu(j,!1),p.lanes=4194304)}else{if(!U)if(h=du(V),h!==null){if(p.flags|=128,U=!0,h=h.updateQueue,p.updateQueue=h,xd(p,h),gu(j,!0),j.tail===null&&j.tailMode==="hidden"&&!V.alternate&&!en)return En(p),null}else 2*Dn()-j.renderingStartTime>Yf&&w!==536870912&&(p.flags|=128,U=!0,gu(j,!1),p.lanes=4194304);j.isBackwards?(V.sibling=p.child,p.child=V):(h=j.last,h!==null?h.sibling=V:p.child=V,j.last=V)}return j.tail!==null?(h=j.tail,j.rendering=h,j.tail=h.sibling,j.renderingStartTime=Dn(),h.sibling=null,w=Bi.current,S(Bi,U?w&1|2:w&1),en&&tt(p,j.treeForkCount),h):(En(p),null);case 22:case 23:return Ls(p),lu(),j=p.memoizedState!==null,h!==null?h.memoizedState!==null!==j&&(p.flags|=8192):j&&(p.flags|=8192),j?w&536870912&&!(p.flags&128)&&(En(p),p.subtreeFlags&6&&(p.flags|=8192)):En(p),w=p.updateQueue,w!==null&&xd(p,w.retryQueue),w=null,h!==null&&h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(w=h.memoizedState.cachePool.pool),j=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(j=p.memoizedState.cachePool.pool),j!==w&&(p.flags|=2048),h!==null&&v(bc),null;case 24:return w=null,h!==null&&(w=h.memoizedState.cache),p.memoizedState.cache!==w&&(p.flags|=2048),Ft(_i),En(p),null;case 25:return null;case 30:return null}throw Error(i(156,p.tag))}function fo(h,p){switch(st(p),p.tag){case 1:return h=p.flags,h&65536?(p.flags=h&-65537|128,p):null;case 3:return Ft(_i),pt(),h=p.flags,h&65536&&!(h&128)?(p.flags=h&-65537|128,p):null;case 26:case 27:case 5:return lt(p),null;case 31:if(p.memoizedState!==null){if(Ls(p),p.alternate===null)throw Error(i(340));yt()}return h=p.flags,h&65536?(p.flags=h&-65537|128,p):null;case 13:if(Ls(p),h=p.memoizedState,h!==null&&h.dehydrated!==null){if(p.alternate===null)throw Error(i(340));yt()}return h=p.flags,h&65536?(p.flags=h&-65537|128,p):null;case 19:return v(Bi),null;case 4:return pt(),null;case 10:return Ft(p.type),null;case 22:case 23:return Ls(p),lu(),h!==null&&v(bc),h=p.flags,h&65536?(p.flags=h&-65537|128,p):null;case 24:return Ft(_i),null;case 25:return null;default:return null}}function jy(h,p){switch(st(p),p.tag){case 3:Ft(_i),pt();break;case 26:case 27:case 5:lt(p);break;case 4:pt();break;case 31:p.memoizedState!==null&&Ls(p);break;case 13:Ls(p);break;case 19:v(Bi);break;case 10:Ft(p.type);break;case 22:case 23:Ls(p),lu(),h!==null&&v(bc);break;case 24:Ft(_i)}}function hl(h,p){try{var w=p.updateQueue,j=w!==null?w.lastEffect:null;if(j!==null){var U=j.next;w=U;do{if((w.tag&h)===h){j=void 0;var V=w.create,at=w.inst;j=V(),at.destroy=j}w=w.next}while(w!==U)}}catch(ft){yn(p,p.return,ft)}}function fl(h,p,w){try{var j=p.updateQueue,U=j!==null?j.lastEffect:null;if(U!==null){var V=U.next;j=V;do{if((j.tag&h)===h){var at=j.inst,ft=at.destroy;if(ft!==void 0){at.destroy=void 0,U=p;var Ot=w,Ut=ft;try{Ut()}catch(Wt){yn(U,Ot,Wt)}}}j=j.next}while(j!==V)}}catch(Wt){yn(p,p.return,Wt)}}function bf(h){var p=h.updateQueue;if(p!==null){var w=h.stateNode;try{qC(p,w)}catch(j){yn(h,h.return,j)}}}function zy(h,p,w){w.props=cl(h.type,h.memoizedProps),w.state=h.memoizedState;try{w.componentWillUnmount()}catch(j){yn(h,p,j)}}function lc(h,p){try{var w=h.ref;if(w!==null){switch(h.tag){case 26:case 27:case 5:var j=ym(h.stateNode);break;case 30:j=h.stateNode;break;default:j=h.stateNode}typeof w=="function"?h.refCleanup=w(j):w.current=j}}catch(U){yn(h,p,U)}}function po(h,p){var w=h.ref,j=h.refCleanup;if(w!==null)if(typeof j=="function")try{j()}catch(U){yn(h,p,U)}finally{h.refCleanup=null,h=h.alternate,h!=null&&(h.refCleanup=null)}else if(typeof w=="function")try{w(null)}catch(U){yn(h,p,U)}else w.current=null}function D2(h){var p=h.type,w=h.memoizedProps,j=h.stateNode;try{A3(j,p,w,h)}catch(U){yn(h,h.return,U)}}function By(h,p,w){try{u1(h.stateNode,h.type,w,p,h)}catch(j){yn(h,h.return,j)}}function M2(h){return h.tag===5||h.tag===3||(Mr?h.tag===26:!1)||(Qi?h.tag===27&&Ld(h.type):!1)||h.tag===4}function ky(h){t:for(;;){for(;h.sibling===null;){if(h.return===null||M2(h.return))return null;h=h.return}for(h.sibling.return=h.return,h=h.sibling;h.tag!==5&&h.tag!==6&&h.tag!==18;){if(Qi&&h.tag===27&&Ld(h.type)||h.flags&2||h.child===null||h.tag===4)continue t;h.child.return=h,h=h.child}if(!(h.flags&2))return h.stateNode}}function im(h,p,w){var j=h.tag;if(j===5||j===6)h=h.stateNode,p?R3(w,h,p):T3(w,h);else if(j!==4&&(Qi&&j===27&&Ld(h.type)&&(w=h.stateNode,p=null),h=h.child,h!==null))for(im(h,p,w),h=h.sibling;h!==null;)im(h,p,w),h=h.sibling}function Sf(h,p,w){var j=h.tag;if(j===5||j===6)h=h.stateNode,p?C3(w,h,p):E3(w,h);else if(j!==4&&(Qi&&j===27&&Ld(h.type)&&(w=h.stateNode),h=h.child,h!==null))for(Sf(h,p,w),h=h.sibling;h!==null;)Sf(h,p,w),h=h.sibling}function Fy(h,p,w){h=h.containerInfo;try{N3(h,w)}catch(j){yn(p,p.return,j)}}function O2(h){var p=h.stateNode,w=h.memoizedProps;try{_1(h.type,w,p,h)}catch(j){yn(h,h.return,j)}}function $C(h,p){for(YD(h.containerInfo),ba=p;ba!==null;)if(h=ba,p=h.child,(h.subtreeFlags&1028)!==0&&p!==null)p.return=h,ba=p;else for(;ba!==null;){h=ba;var w=h.alternate;switch(p=h.flags,h.tag){case 0:if(p&4&&(p=h.updateQueue,p=p!==null?p.events:null,p!==null))for(var j=0;j<p.length;j++){var U=p[j];U.ref.impl=U.nextImpl}break;case 11:case 15:break;case 1:if(p&1024&&w!==null){p=void 0,j=h,U=w.memoizedProps,w=w.memoizedState;var V=j.stateNode;try{var at=cl(j.type,U);p=V.getSnapshotBeforeUpdate(at,w),V.__reactInternalSnapshotBeforeUpdate=p}catch(ft){yn(j,j.return,ft)}}break;case 3:p&1024&&Ja&&or(h.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(p&1024)throw Error(i(163))}if(p=h.sibling,p!==null){p.return=h.return,ba=p;break}ba=h.return}}function N2(h,p,w){var j=w.flags;switch(w.tag){case 0:case 11:case 15:Rr(h,w),j&4&&hl(5,w);break;case 1:if(Rr(h,w),j&4)if(h=w.stateNode,p===null)try{h.componentDidMount()}catch(at){yn(w,w.return,at)}else{var U=cl(w.type,p.memoizedProps);p=p.memoizedState;try{h.componentDidUpdate(U,p,h.__reactInternalSnapshotBeforeUpdate)}catch(at){yn(w,w.return,at)}}j&64&&bf(w),j&512&&lc(w,w.return);break;case 3:if(Rr(h,w),j&64&&(j=w.updateQueue,j!==null)){if(h=null,w.child!==null)switch(w.child.tag){case 27:case 5:h=ym(w.child.stateNode);break;case 1:h=w.child.stateNode}try{qC(j,h)}catch(at){yn(w,w.return,at)}}break;case 27:Qi&&p===null&&j&4&&O2(w);case 26:case 5:if(Rr(h,w),p===null){if(j&4)D2(w);else if(j&64){h=w.type,p=w.memoizedProps,U=w.stateNode;try{H3(U,h,p,w)}catch(at){yn(w,w.return,at)}}}j&512&&lc(w,w.return);break;case 12:Rr(h,w);break;case 31:Rr(h,w),j&4&&L2(h,w);break;case 13:Rr(h,w),j&4&&Uy(h,w),j&64&&(j=w.memoizedState,j!==null&&(j=j.dehydrated,j!==null&&(w=Jy.bind(null,w),wf(j,w))));break;case 22:if(j=w.memoizedState!==null||Al,!j){p=p!==null&&p.memoizedState!==null||ki,U=Al;var V=ki;Al=j,(ki=p)&&!V?mo(h,w,(w.subtreeFlags&8772)!==0):Rr(h,w),Al=U,ki=V}break;case 30:break;default:Rr(h,w)}}function t3(h){var p=h.alternate;p!==null&&(h.alternate=null,t3(p)),h.child=null,h.deletions=null,h.sibling=null,h.tag===5&&(p=h.stateNode,p!==null&&g3(p)),h.stateNode=null,h.return=null,h.dependencies=null,h.memoizedProps=null,h.memoizedState=null,h.pendingProps=null,h.stateNode=null,h.updateQueue=null}function Cr(h,p,w){for(w=w.child;w!==null;)Iy(h,p,w),w=w.sibling}function Iy(h,p,w){if(ji&&typeof ji.onCommitFiberUnmount=="function")try{ji.onCommitFiberUnmount(jd,w)}catch{}switch(w.tag){case 26:if(Mr){ki||po(w,p),Cr(h,p,w),w.memoizedState?Q3(w.memoizedState):w.stateNode&&hx(w.stateNode);break}case 27:if(Qi){ki||po(w,p);var j=$i,U=Hs;Ld(w.type)&&($i=w.stateNode,Hs=!1),Cr(h,p,w),yc(w.stateNode),$i=j,Hs=U;break}case 5:ki||po(w,p);case 6:if(Ja){if(j=$i,U=Hs,$i=null,Cr(h,p,w),$i=j,Hs=U,$i!==null)if(Hs)try{ax($i,w.stateNode)}catch(V){yn(w,p,V)}else try{ix($i,w.stateNode)}catch(V){yn(w,p,V)}}else Cr(h,p,w);break;case 18:Ja&&$i!==null&&(Hs?ux($i,w.stateNode):_n($i,w.stateNode));break;case 4:Ja?(j=$i,U=Hs,$i=w.stateNode.containerInfo,Hs=!0,Cr(h,p,w),$i=j,Hs=U):(vo&&Fy(w.stateNode,w,ui()),Cr(h,p,w));break;case 0:case 11:case 14:case 15:fl(2,w,p),ki||fl(4,w,p),Cr(h,p,w);break;case 1:ki||(po(w,p),j=w.stateNode,typeof j.componentWillUnmount=="function"&&zy(w,p,j)),Cr(h,p,w);break;case 21:Cr(h,p,w);break;case 22:ki=(j=ki)||w.memoizedState!==null,Cr(h,p,w),ki=j;break;default:Cr(h,p,w)}}function L2(h,p){if(ja&&p.memoizedState===null&&(h=p.alternate,h!==null&&(h=h.memoizedState,h!==null))){h=h.dehydrated;try{G3(h)}catch(w){yn(p,p.return,w)}}}function Uy(h,p){if(ja&&p.memoizedState===null&&(h=p.alternate,h!==null&&(h=h.memoizedState,h!==null&&(h=h.dehydrated,h!==null))))try{Mf(h)}catch(w){yn(p,p.return,w)}}function e3(h){switch(h.tag){case 31:case 13:case 19:var p=h.stateNode;return p===null&&(p=h.stateNode=new j1),p;case 22:return h=h.stateNode,p=h._retryCache,p===null&&(p=h._retryCache=new j1),p;default:throw Error(i(435,h.tag))}}function am(h,p){var w=e3(h);p.forEach(function(j){if(!w.has(j)){w.add(j);var U=c3.bind(null,h,j);j.then(U,U)}})}function Li(h,p){var w=p.deletions;if(w!==null)for(var j=0;j<w.length;j++){var U=w[j],V=h,at=p;if(Ja){var ft=at;t:for(;ft!==null;){switch(ft.tag){case 27:if(Qi){if(Ld(ft.type)){$i=ft.stateNode,Hs=!1;break t}break}case 5:$i=ft.stateNode,Hs=!1;break t;case 3:case 4:$i=ft.stateNode.containerInfo,Hs=!0;break t}ft=ft.return}if($i===null)throw Error(i(160));Iy(V,at,U),$i=null,Hs=!1}else Iy(V,at,U);V=U.alternate,V!==null&&(V.return=null),U.return=null}if(p.subtreeFlags&13886)for(p=p.child;p!==null;)sm(p,h),p=p.sibling}function sm(h,p){var w=h.alternate,j=h.flags;switch(h.tag){case 0:case 11:case 14:case 15:Li(p,h),Wa(h),j&4&&(fl(3,h,h.return),hl(3,h),fl(5,h,h.return));break;case 1:Li(p,h),Wa(h),j&512&&(ki||w===null||po(w,w.return)),j&64&&Al&&(h=h.updateQueue,h!==null&&(j=h.callbacks,j!==null&&(w=h.shared.hiddenCallbacks,h.shared.hiddenCallbacks=w===null?j:w.concat(j))));break;case 26:if(Mr){var U=xo;if(Li(p,h),Wa(h),j&512&&(ki||w===null||po(w,w.return)),j&4){j=w!==null?w.memoizedState:null;var V=h.memoizedState;w===null?V===null?h.stateNode===null?h.stateNode=Nd(U,h.type,h.memoizedProps,h):g1(U,h.type,h.stateNode):h.stateNode=q3(U,V,h.memoizedProps):j!==V?(j===null?w.stateNode!==null&&hx(w.stateNode):Q3(j),V===null?g1(U,h.type,h.stateNode):q3(U,V,h.memoizedProps)):V===null&&h.stateNode!==null&&By(h,h.memoizedProps,w.memoizedProps)}break}case 27:if(Qi){Li(p,h),Wa(h),j&512&&(ki||w===null||po(w,w.return)),w!==null&&j&4&&By(h,h.memoizedProps,w.memoizedProps);break}case 5:if(Li(p,h),Wa(h),j&512&&(ki||w===null||po(w,w.return)),Ja){if(h.flags&32){U=h.stateNode;try{c1(U)}catch(Xt){yn(h,h.return,Xt)}}j&4&&h.stateNode!=null&&(U=h.memoizedProps,By(h,U,w!==null?w.memoizedProps:U)),j&1024&&(Pm=!0)}else vo&&h.alternate!==null&&(h.alternate.stateNode=h.stateNode);break;case 6:if(Li(p,h),Wa(h),j&4&&Ja){if(h.stateNode===null)throw Error(i(162));j=h.memoizedProps,w=w!==null?w.memoizedProps:j,U=h.stateNode;try{xm(U,w,j)}catch(Xt){yn(h,h.return,Xt)}}break;case 3:if(Mr?(Z3(),U=xo,xo=m1(p.containerInfo),Li(p,h),xo=U):Li(p,h),Wa(h),j&4){if(Ja&&ja&&w!==null&&w.memoizedState.isDehydrated)try{JD(p.containerInfo)}catch(Xt){yn(h,h.return,Xt)}if(vo){j=p.containerInfo,w=p.pendingChildren;try{N3(j,w)}catch(Xt){yn(h,h.return,Xt)}}}Pm&&(Pm=!1,n3(h));break;case 4:Mr?(w=xo,xo=m1(h.stateNode.containerInfo),Li(p,h),Wa(h),xo=w):(Li(p,h),Wa(h)),j&4&&vo&&Fy(h.stateNode,h,h.stateNode.pendingChildren);break;case 12:Li(p,h),Wa(h);break;case 31:Li(p,h),Wa(h),j&4&&(j=h.updateQueue,j!==null&&(h.updateQueue=null,am(h,j)));break;case 13:Li(p,h),Wa(h),h.child.flags&8192&&h.memoizedState!==null!=(w!==null&&w.memoizedState!==null)&&(Bm=Dn()),j&4&&(j=h.updateQueue,j!==null&&(h.updateQueue=null,am(h,j)));break;case 22:U=h.memoizedState!==null;var at=w!==null&&w.memoizedState!==null,ft=Al,Ot=ki;if(Al=ft||U,ki=Ot||at,Li(p,h),ki=Ot,Al=ft,Wa(h),j&8192&&(p=h.stateNode,p._visibility=U?p._visibility&-2:p._visibility|1,U&&(w===null||at||Al||ki||wr(h)),Ja)){t:if(w=null,Ja)for(p=h;;){if(p.tag===5||Mr&&p.tag===26){if(w===null){at=w=p;try{V=at.stateNode,U?w3(V):qD(at.stateNode,at.memoizedProps)}catch(Xt){yn(at,at.return,Xt)}}}else if(p.tag===6){if(w===null){at=p;try{var Ut=at.stateNode;U?d1(Ut):D3(Ut,at.memoizedProps)}catch(Xt){yn(at,at.return,Xt)}}}else if(p.tag===18){if(w===null){at=p;try{var Wt=at.stateNode;U?$D(Wt):K3(at.stateNode)}catch(Xt){yn(at,at.return,Xt)}}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===h)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===h)break t;for(;p.sibling===null;){if(p.return===null||p.return===h)break t;w===p&&(w=null),p=p.return}w===p&&(w=null),p.sibling.return=p.return,p=p.sibling}}j&4&&(j=h.updateQueue,j!==null&&(w=j.retryQueue,w!==null&&(j.retryQueue=null,am(h,w))));break;case 19:Li(p,h),Wa(h),j&4&&(j=h.updateQueue,j!==null&&(h.updateQueue=null,am(h,j)));break;case 30:break;case 21:break;default:Li(p,h),Wa(h)}}function Wa(h){var p=h.flags;if(p&2){try{for(var w,j=h.return;j!==null;){if(M2(j)){w=j;break}j=j.return}if(Ja){if(w==null)throw Error(i(160));switch(w.tag){case 27:if(Qi){var U=w.stateNode,V=ky(h);Sf(h,V,U);break}case 5:var at=w.stateNode;w.flags&32&&(c1(at),w.flags&=-33);var ft=ky(h);Sf(h,ft,at);break;case 3:case 4:var Ot=w.stateNode.containerInfo,Ut=ky(h);im(h,Ut,Ot);break;default:throw Error(i(161))}}}catch(Wt){yn(h,h.return,Wt)}h.flags&=-3}p&4096&&(h.flags&=-4097)}function n3(h){if(h.subtreeFlags&1024)for(h=h.child;h!==null;){var p=h;n3(p),p.tag===5&&p.flags&1024&&wd(p.stateNode),h=h.sibling}}function Rr(h,p){if(p.subtreeFlags&8772)for(p=p.child;p!==null;)N2(h,p.alternate,p),p=p.sibling}function wr(h){for(h=h.child;h!==null;){var p=h;switch(p.tag){case 0:case 11:case 14:case 15:fl(4,p,p.return),wr(p);break;case 1:po(p,p.return);var w=p.stateNode;typeof w.componentWillUnmount=="function"&&zy(p,p.return,w),wr(p);break;case 27:Qi&&yc(p.stateNode);case 26:case 5:po(p,p.return),wr(p);break;case 22:p.memoizedState===null&&wr(p);break;case 30:wr(p);break;default:wr(p)}h=h.sibling}}function mo(h,p,w){for(w=w&&(p.subtreeFlags&8772)!==0,p=p.child;p!==null;){var j=p.alternate,U=h,V=p,at=V.flags;switch(V.tag){case 0:case 11:case 15:mo(U,V,w),hl(4,V);break;case 1:if(mo(U,V,w),j=V,U=j.stateNode,typeof U.componentDidMount=="function")try{U.componentDidMount()}catch(Ut){yn(j,j.return,Ut)}if(j=V,U=j.updateQueue,U!==null){var ft=j.stateNode;try{var Ot=U.shared.hiddenCallbacks;if(Ot!==null)for(U.shared.hiddenCallbacks=null,U=0;U<Ot.length;U++)h2(Ot[U],ft)}catch(Ut){yn(j,j.return,Ut)}}w&&at&64&&bf(V),lc(V,V.return);break;case 27:Qi&&O2(V);case 26:case 5:mo(U,V,w),w&&j===null&&at&4&&D2(V),lc(V,V.return);break;case 12:mo(U,V,w);break;case 31:mo(U,V,w),w&&at&4&&L2(U,V);break;case 13:mo(U,V,w),w&&at&4&&Uy(U,V);break;case 22:V.memoizedState===null&&mo(U,V,w),lc(V,V.return);break;case 30:break;default:mo(U,V,w)}p=p.sibling}}function vu(h,p){var w=null;h!==null&&h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(w=h.memoizedState.cachePool.pool),h=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(h=p.memoizedState.cachePool.pool),h!==w&&(h!=null&&h.refCount++,w!=null&&te(w))}function Za(h,p){h=null,p.alternate!==null&&(h=p.alternate.memoizedState.cache),p=p.memoizedState.cache,p!==h&&(p.refCount++,h!=null&&te(h))}function zs(h,p,w,j){if(p.subtreeFlags&10256)for(p=p.child;p!==null;)i3(h,p,w,j),p=p.sibling}function i3(h,p,w,j){var U=p.flags;switch(p.tag){case 0:case 11:case 15:zs(h,p,w,j),U&2048&&hl(9,p);break;case 1:zs(h,p,w,j);break;case 3:zs(h,p,w,j),U&2048&&(h=null,p.alternate!==null&&(h=p.alternate.memoizedState.cache),p=p.memoizedState.cache,p!==h&&(p.refCount++,h!=null&&te(h)));break;case 12:if(U&2048){zs(h,p,w,j),h=p.stateNode;try{var V=p.memoizedProps,at=V.id,ft=V.onPostCommit;typeof ft=="function"&&ft(at,p.alternate===null?"mount":"update",h.passiveEffectDuration,-0)}catch(Ot){yn(p,p.return,Ot)}}else zs(h,p,w,j);break;case 31:zs(h,p,w,j);break;case 13:zs(h,p,w,j);break;case 23:break;case 22:V=p.stateNode,at=p.alternate,p.memoizedState!==null?V._visibility&2?zs(h,p,w,j):cc(h,p):V._visibility&2?zs(h,p,w,j):(V._visibility|=2,uc(h,p,w,j,(p.subtreeFlags&10256)!==0||!1)),U&2048&&vu(at,p);break;case 24:zs(h,p,w,j),U&2048&&Za(p.alternate,p);break;default:zs(h,p,w,j)}}function uc(h,p,w,j,U){for(U=U&&((p.subtreeFlags&10256)!==0||!1),p=p.child;p!==null;){var V=h,at=p,ft=w,Ot=j,Ut=at.flags;switch(at.tag){case 0:case 11:case 15:uc(V,at,ft,Ot,U),hl(8,at);break;case 23:break;case 22:var Wt=at.stateNode;at.memoizedState!==null?Wt._visibility&2?uc(V,at,ft,Ot,U):cc(V,at):(Wt._visibility|=2,uc(V,at,ft,Ot,U)),U&&Ut&2048&&vu(at.alternate,at);break;case 24:uc(V,at,ft,Ot,U),U&&Ut&2048&&Za(at.alternate,at);break;default:uc(V,at,ft,Ot,U)}p=p.sibling}}function cc(h,p){if(p.subtreeFlags&10256)for(p=p.child;p!==null;){var w=h,j=p,U=j.flags;switch(j.tag){case 22:cc(w,j),U&2048&&vu(j.alternate,j);break;case 24:cc(w,j),U&2048&&Za(j.alternate,j);break;default:cc(w,j)}p=p.sibling}}function yu(h,p,w){if(h.subtreeFlags&xc)for(h=h.child;h!==null;)P2(h,p,w),h=h.sibling}function P2(h,p,w){switch(h.tag){case 26:if(yu(h,p,w),h.flags&xc)if(h.memoizedState!==null)Tu(w,xo,h.memoizedState,h.memoizedProps);else{var j=h.stateNode,U=h.type;h=h.memoizedProps,((p&335544128)===p||Rf(U,h))&&$a(w,j,U,h)}break;case 5:yu(h,p,w),h.flags&xc&&(j=h.stateNode,U=h.type,h=h.memoizedProps,((p&335544128)===p||Rf(U,h))&&$a(w,j,U,h));break;case 3:case 4:Mr?(j=xo,xo=m1(h.stateNode.containerInfo),yu(h,p,w),xo=j):yu(h,p,w);break;case 22:h.memoizedState===null&&(j=h.alternate,j!==null&&j.memoizedState!==null?(j=xc,xc=16777216,yu(h,p,w),xc=j):yu(h,p,w));break;default:yu(h,p,w)}}function Hy(h){var p=h.alternate;if(p!==null&&(h=p.child,h!==null)){p.child=null;do p=h.sibling,h.sibling=null,h=p;while(h!==null)}}function dc(h){var p=h.deletions;if(h.flags&16){if(p!==null)for(var w=0;w<p.length;w++){var j=p[w];ba=j,Vy(j,h)}Hy(h)}if(h.subtreeFlags&10256)for(h=h.child;h!==null;)Gy(h),h=h.sibling}function Gy(h){switch(h.tag){case 0:case 11:case 15:dc(h),h.flags&2048&&fl(9,h,h.return);break;case 3:dc(h);break;case 12:dc(h);break;case 22:var p=h.stateNode;h.memoizedState!==null&&p._visibility&2&&(h.return===null||h.return.tag!==13)?(p._visibility&=-3,Td(h)):dc(h);break;default:dc(h)}}function Td(h){var p=h.deletions;if(h.flags&16){if(p!==null)for(var w=0;w<p.length;w++){var j=p[w];ba=j,Vy(j,h)}Hy(h)}for(h=h.child;h!==null;){switch(p=h,p.tag){case 0:case 11:case 15:fl(8,p,p.return),Td(p);break;case 22:w=p.stateNode,w._visibility&2&&(w._visibility&=-3,Td(p));break;default:Td(p)}h=h.sibling}}function Vy(h,p){for(;ba!==null;){var w=ba;switch(w.tag){case 0:case 11:case 15:fl(8,w,p);break;case 23:case 22:if(w.memoizedState!==null&&w.memoizedState.cachePool!==null){var j=w.memoizedState.cachePool.pool;j!=null&&j.refCount++}break;case 24:te(w.memoizedState.cache)}if(j=w.child,j!==null)j.return=w,ba=j;else t:for(w=h;ba!==null;){j=ba;var U=j.sibling,V=j.return;if(t3(j),j===w){ba=null;break t}if(U!==null){U.return=V,ba=U;break t}ba=V}}}function xf(h){var p=m3(h);if(p!=null){if(typeof p.memoizedProps["data-testname"]!="string")throw Error(i(364));return p}if(h=nx(h),h===null)throw Error(i(362));return h.stateNode.current}function rm(h,p){var w=h.tag;switch(p.$$typeof){case z1:if(h.type===p.value)return!0;break;case B1:t:{for(p=p.value,h=[h,0],w=0;w<h.length;){var j=h[w++],U=j.tag,V=h[w++],at=p[V];if(U!==5&&U!==26&&U!==27||!bl(j)){for(;at!=null&&rm(j,at);)V++,at=p[V];if(V===p.length){p=!0;break t}else for(j=j.child;j!==null;)h.push(j,V),j=j.sibling}}p=!1}return p;case k1:if((w===5||w===26||w===27)&&x3(h.stateNode,p.value))return!0;break;case I1:if((w===5||w===6||w===26||w===27)&&(h=S3(h),h!==null&&0<=h.indexOf(p.value)))return!0;break;case F1:if((w===5||w===26||w===27)&&(h=h.memoizedProps["data-testname"],typeof h=="string"&&h.toLowerCase()===p.value.toLowerCase()))return!0;break;default:throw Error(i(365))}return!1}function Yy(h){switch(h.$$typeof){case z1:return"<"+(m(h.value)||"Unknown")+">";case B1:return":has("+(Yy(h)||"")+")";case k1:return'[role="'+h.value+'"]';case I1:return'"'+h.value+'"';case F1:return'[data-testname="'+h.value+'"]';default:throw Error(i(365))}}function j2(h,p){var w=[];h=[h,0];for(var j=0;j<h.length;){var U=h[j++],V=U.tag,at=h[j++],ft=p[at];if(V!==5&&V!==26&&V!==27||!bl(U)){for(;ft!=null&&rm(U,ft);)at++,ft=p[at];if(at===p.length)w.push(U);else for(U=U.child;U!==null;)h.push(U,at),U=U.sibling}}return w}function om(h,p){if(!Dd)throw Error(i(363));h=xf(h),h=j2(h,p),p=[],h=Array.from(h);for(var w=0;w<h.length;){var j=h[w++],U=j.tag;if(U===5||U===26||U===27)bl(j)||p.push(j.stateNode);else for(j=j.child;j!==null;)h.push(j),j=j.sibling}return p}function Bs(){return nn&2&&on!==0?on&-on:be.T!==null?wn():yo()}function lm(){if(cr===0)if(!(on&536870912)||en){var h=wm;wm<<=1,!(wm&3932160)&&(wm=262144),cr=h}else cr=536870912;return h=lr.current,h!==null&&(h.flags|=32),cr}function ys(h,p,w){(h===Vn&&(Pn===2||Pn===9)||h.cancelPendingCommit!==null)&&(fc(h,0),_u(h,on,cr,!1)),N(h,w),(!(nn&2)||h!==Vn)&&(h===Vn&&(!(nn&2)&&(Ud|=w),Ei===4&&_u(h,on,cr,!1)),Lt(h))}function z2(h,p,w){if(nn&6)throw Error(i(327));var j=!w&&(p&127)===0&&(p&h.expiredLanes)===0||A(h,p),U=j?l3(h,p):Af(h,p,!0),V=j;do{if(U===0){Id&&!j&&_u(h,p,0,!1);break}else{if(w=h.current.alternate,V&&!a3(w)){U=Af(h,p,!1),V=!1;continue}if(U===2){if(V=p,h.errorRecoveryDisabledLanes&V)var at=0;else at=h.pendingLanes&-536870913,at=at!==0?at:at&536870912?536870912:0;if(at!==0){p=at;t:{var ft=h;U=zm;var Ot=ja&&ft.current.memoizedState.isDehydrated;if(Ot&&(fc(ft,at).flags|=256),at=Af(ft,at,!1),at!==2){if(Sx&&!Ot){ft.errorRecoveryDisabledLanes|=V,Ud|=V,U=4;break t}V=Gs,Gs=U,V!==null&&(Gs===null?Gs=V:Gs.push.apply(Gs,V))}U=at}if(V=!1,U!==2)continue}}if(U===1){fc(h,0),_u(h,p,0,!0);break}t:{switch(j=h,V=U,V){case 0:case 1:throw Error(i(345));case 4:if((p&4194048)!==p)break;case 6:_u(j,p,cr,!Ec);break t;case 2:Gs=null;break;case 3:case 5:break;default:throw Error(i(329))}if((p&62914560)===p&&(U=Bm+300-Dn(),10<U)){if(_u(j,p,cr,!Ec),T(j,0,!0)!==0)break t;Cl=p,j.timeoutHandle=p3(Ky.bind(null,j,w,Gs,H1,U1,p,cr,Ud,Vf,Ec,V,"Throttled",-0,0),U);break t}Ky(j,w,Gs,H1,U1,p,cr,Ud,Vf,Ec,V,null,-0,0)}}break}while(!0);Lt(h)}function Ky(h,p,w,j,U,V,at,ft,Ot,Ut,Wt,Xt,ne,Ae){if(h.timeoutHandle=xu,Xt=p.subtreeFlags,Xt&8192||(Xt&16785408)===16785408){Xt=y3(),P2(p,V,Xt);var hi=(V&62914560)===V?Bm-Dn():(V&4194048)===V?Ex-Dn():0;if(hi=_3(Xt,hi),hi!==null){Cl=V,h.cancelPendingCommit=hi(I2.bind(null,h,p,V,w,j,U,at,ft,Ot,Wt,Xt,null,ne,Ae)),_u(h,V,at,!Ut);return}}I2(h,p,V,w,j,U,at,ft,Ot)}function a3(h){for(var p=h;;){var w=p.tag;if((w===0||w===11||w===15)&&p.flags&16384&&(w=p.updateQueue,w!==null&&(w=w.stores,w!==null)))for(var j=0;j<w.length;j++){var U=w[j],V=U.getSnapshot;U=U.value;try{if(!Ba(V(),U))return!1}catch{return!1}}if(w=p.child,p.subtreeFlags&16384&&w!==null)w.return=p,p=w;else{if(p===h)break;for(;p.sibling===null;){if(p.return===null||p.return===h)return!0;p=p.return}p.sibling.return=p.return,p=p.sibling}}return!0}function _u(h,p,w,j){p&=~xx,p&=~Ud,h.suspendedLanes|=p,h.pingedLanes&=~p,j&&(h.warmLanes|=p),j=h.expirationTimes;for(var U=p;0<U;){var V=31-ks(U),at=1<<V;j[V]=-1,U&=~at}w!==0&&O(h,w,p)}function hc(){return nn&6?!0:(Yt(0,!1),!1)}function um(){if(an!==null){if(Pn===0)var h=an.return;else h=an,di=xs=null,B0(h),jr=null,Nm=0,h=an;for(;h!==null;)jy(h.alternate,h),h=h.return;an=null}}function fc(h,p){var w=h.timeoutHandle;w!==xu&&(h.timeoutHandle=xu,tx(w)),w=h.cancelPendingCommit,w!==null&&(h.cancelPendingCommit=null,w()),Cl=0,um(),Vn=h,an=w=ml(h.current,null),on=p,Pn=0,ur=null,Ec=!1,Id=A(h,p),Sx=!1,Vf=cr=xx=Ud=Tc=Ei=0,Gs=zm=null,U1=!1,p&8&&(p|=p&32);var j=h.entangledLanes;if(j!==0)for(h=h.entanglements,j&=p;0<j;){var U=31-ks(j),V=1<<U;p|=h[U],j&=~V}return Mu=p,Ce(),w}function s3(h,p){Fe=null,be.H=Lm,p===If||p===R1?(p=Bn(),Pn=3):p===C1?(p=Bn(),Pn=4):Pn=p===L1?8:p!==null&&typeof p=="object"&&typeof p.then=="function"?6:1,ur=p,an===null&&(Ei=1,q0(h,Q(p,h.current)))}function r3(){var h=lr.current;return h===null?!0:(on&4194048)===on?Br===null:(on&62914560)===on||on&536870912?h===Br:!1}function B2(){var h=be.H;return be.H=Lm,h===null?Lm:h}function Ef(){var h=be.A;return be.A=s8,h}function Tf(){Ei=4,Ec||(on&4194048)!==on&&lr.current!==null||(Id=!0),!(Tc&134217727)&&!(Ud&134217727)||Vn===null||_u(Vn,on,cr,!1)}function Af(h,p,w){var j=nn;nn|=2;var U=B2(),V=Ef();(Vn!==h||on!==p)&&(H1=null,fc(h,p)),p=!1;var at=Ei;t:do try{if(Pn!==0&&an!==null){var ft=an,Ot=ur;switch(Pn){case 8:um(),at=6;break t;case 3:case 2:case 9:case 6:lr.current===null&&(p=!0);var Ut=Pn;if(Pn=0,ur=null,Ad(h,ft,Ot,Ut),w&&Id){at=0;break t}break;default:Ut=Pn,Pn=0,ur=null,Ad(h,ft,Ot,Ut)}}o3(),at=Ei;break}catch(Wt){s3(h,Wt)}while(!0);return p&&h.shellSuspendCounter++,di=xs=null,nn=j,be.H=U,be.A=V,an===null&&(Vn=null,on=0,Ce()),at}function o3(){for(;an!==null;)Xy(an)}function l3(h,p){var w=nn;nn|=2;var j=B2(),U=Ef();Vn!==h||on!==p?(H1=null,Yf=Dn()+500,fc(h,p)):Id=A(h,p);t:do try{if(Pn!==0&&an!==null){p=an;var V=ur;e:switch(Pn){case 1:Pn=0,ur=null,Ad(h,p,V,1);break;case 2:case 9:if(de(V)){Pn=0,ur=null,F2(p);break}p=function(){Pn!==2&&Pn!==9||Vn!==h||(Pn=7),Lt(h)},V.then(p,p);break t;case 3:Pn=7;break t;case 4:Pn=5;break t;case 7:de(V)?(Pn=0,ur=null,F2(p)):(Pn=0,ur=null,Ad(h,p,V,7));break;case 5:var at=null;switch(an.tag){case 26:at=an.memoizedState;case 5:case 27:var ft=an,Ot=ft.type,Ut=ft.pendingProps;if(at?v1(at):za(ft.stateNode,Ot,Ut)){Pn=0,ur=null;var Wt=ft.sibling;if(Wt!==null)an=Wt;else{var Xt=ft.return;Xt!==null?(an=Xt,pl(Xt)):an=null}break e}}Pn=0,ur=null,Ad(h,p,V,5);break;case 6:Pn=0,ur=null,Ad(h,p,V,6);break;case 8:um(),Ei=6;break t;default:throw Error(i(462))}}k2();break}catch(ne){s3(h,ne)}while(!0);return di=xs=null,be.H=j,be.A=U,nn=w,an!==null?0:(Vn=null,on=0,Ce(),Ei)}function k2(){for(;an!==null&&!n8();)Xy(an)}function Xy(h){var p=Oy(h.alternate,h,Mu);h.memoizedProps=h.pendingProps,p===null?pl(h):an=p}function F2(h){var p=h,w=p.alternate;switch(p.tag){case 15:case 0:p=C2(w,p,p.pendingProps,p.type,void 0,on);break;case 11:p=C2(w,p,p.pendingProps,p.type.render,p.ref,on);break;case 5:B0(p);default:jy(w,p),p=an=V2(p,Mu),p=Oy(w,p,Mu)}h.memoizedProps=h.pendingProps,p===null?pl(h):an=p}function Ad(h,p,w,j){di=xs=null,B0(p),jr=null,Nm=0;var U=p.return;try{if(Qa(h,U,p,w,on)){Ei=1,q0(h,Q(w,h.current)),an=null;return}}catch(V){if(U!==null)throw an=U,V;Ei=1,q0(h,Q(w,h.current)),an=null;return}p.flags&32768?(en||j===1?h=!0:Id||on&536870912?h=!1:(Ec=h=!0,(j===2||j===9||j===3||j===6)&&(j=lr.current,j!==null&&j.tag===13&&(j.flags|=16384))),cm(p,h)):pl(p)}function pl(h){var p=h;do{if(p.flags&32768){cm(p,Ec);return}h=p.return;var w=Ed(p.alternate,p,Mu);if(w!==null){an=w;return}if(p=p.sibling,p!==null){an=p;return}an=p=h}while(p!==null);Ei===0&&(Ei=5)}function cm(h,p){do{var w=fo(h.alternate,h);if(w!==null){w.flags&=32767,an=w;return}if(w=h.return,w!==null&&(w.flags|=32768,w.subtreeFlags=0,w.deletions=null),!p&&(h=h.sibling,h!==null)){an=h;return}an=h=w}while(h!==null);Ei=6,an=null}function I2(h,p,w,j,U,V,at,ft,Ot){h.cancelPendingCommit=null;do Pi();while(jn!==0);if(nn&6)throw Error(i(327));if(p!==null){if(p===h.current)throw Error(i(177));if(V=p.lanes|p.childLanes,V|=yx,M(h,w,V,at,ft,Ot),h===Vn&&(an=Vn=null,on=0),Cc=p,Ou=h,Cl=w,G1=V,V1=U,s4=j,p.subtreeFlags&10256||p.flags&10256?(h.callbackNode=null,h.callbackPriority=0,HD(Cu,function(){return U2(),null})):(h.callbackNode=null,h.callbackPriority=0),j=(p.flags&13878)!==0,p.subtreeFlags&13878||j){j=be.T,be.T=null,U=yl(),ua(2),at=nn,nn|=4;try{$C(h,p,w)}finally{nn=at,ua(U),be.T=j}}jn=1,qy(),Qy(),Wy()}}function qy(){if(jn===1){jn=0;var h=Ou,p=Cc,w=(p.flags&13878)!==0;if(p.subtreeFlags&13878||w){w=be.T,be.T=null;var j=yl();ua(2);var U=nn;nn|=4;try{sm(p,h),_m(h.containerInfo)}finally{nn=U,ua(j),be.T=w}}h.current=p,jn=2}}function Qy(){if(jn===2){jn=0;var h=Ou,p=Cc,w=(p.flags&8772)!==0;if(p.subtreeFlags&8772||w){w=be.T,be.T=null;var j=yl();ua(2);var U=nn;nn|=4;try{N2(h,p.alternate,p)}finally{nn=U,ua(j),be.T=w}}jn=3}}function Wy(){if(jn===4||jn===3){jn=0,Fs();var h=Ou,p=Cc,w=Cl,j=s4;p.subtreeFlags&10256||p.flags&10256?jn=5:(jn=0,Cc=Ou=null,u3(h,h.pendingLanes));var U=h.pendingLanes;if(U===0&&(Ac=null),F(w),p=p.stateNode,ji&&typeof ji.onCommitFiberRoot=="function")try{ji.onCommitFiberRoot(jd,p,void 0,(p.current.flags&128)===128)}catch{}if(j!==null){p=be.T,U=yl(),ua(2),be.T=null;try{for(var V=h.onRecoverableError,at=0;at<j.length;at++){var ft=j[at];V(ft.value,{componentStack:ft.stack})}}finally{be.T=p,ua(U)}}Cl&3&&Pi(),Lt(h),U=h.pendingLanes,w&261930&&U&42?h===Y1?Kf++:(Kf=0,Y1=h):Kf=0,ja&&Y3(),Yt(0,!1)}}function u3(h,p){(h.pooledCacheLanes&=p)===0&&(p=h.pooledCache,p!=null&&(h.pooledCache=null,te(p)))}function Pi(){return qy(),Qy(),Wy(),U2()}function U2(){if(jn!==5)return!1;var h=Ou,p=G1;G1=0;var w=F(Cl),j=32>w?32:w;w=be.T;var U=yl();try{ua(j),be.T=null,j=V1,V1=null;var V=Ou,at=Cl;if(jn=0,Cc=Ou=null,Cl=0,nn&6)throw Error(i(331));var ft=nn;if(nn|=4,Gy(V.current),i3(V,V.current,at,j),nn=ft,Yt(0,!1),ji&&typeof ji.onPostCommitFiberRoot=="function")try{ji.onPostCommitFiberRoot(jd,V)}catch{}return!0}finally{ua(U),be.T=w,u3(h,p)}}function H2(h,p,w){p=Q(w,p),p=gf(h.stateNode,p,2),h=al(h,p,2),h!==null&&(N(h,2),Lt(h))}function yn(h,p,w){if(h.tag===3)H2(h,h,w);else for(;p!==null;){if(p.tag===3){H2(p,h,w);break}else if(p.tag===1){var j=p.stateNode;if(typeof p.type.getDerivedStateFromError=="function"||typeof j.componentDidCatch=="function"&&(Ac===null||!Ac.has(j))){h=Q(w,h),w=Q0(2),j=al(p,w,2),j!==null&&(Ay(w,j,p,h),N(j,2),Lt(j));break}}p=p.return}}function Zy(h,p,w){var j=h.pingCache;if(j===null){j=h.pingCache=new r8;var U=new Set;j.set(p,U)}else U=j.get(p),U===void 0&&(U=new Set,j.set(p,U));U.has(w)||(Sx=!0,U.add(w),h=dm.bind(null,h,p,w),p.then(h,h))}function dm(h,p,w){var j=h.pingCache;j!==null&&j.delete(p),h.pingedLanes|=h.suspendedLanes&w,h.warmLanes&=~w,Vn===h&&(on&w)===w&&(Ei===4||Ei===3&&(on&62914560)===on&&300>Dn()-Bm?!(nn&2)&&fc(h,0):xx|=w,Vf===on&&(Vf=0)),Lt(h)}function G2(h,p){p===0&&(p=C()),h=el(h,p),h!==null&&(N(h,p),Lt(h))}function Jy(h){var p=h.memoizedState,w=0;p!==null&&(w=p.retryLane),G2(h,w)}function c3(h,p){var w=0;switch(h.tag){case 31:case 13:var j=h.stateNode,U=h.memoizedState;U!==null&&(w=U.retryLane);break;case 19:j=h.stateNode;break;case 22:j=h.stateNode._retryCache;break;default:throw Error(i(314))}j!==null&&j.delete(p),G2(h,w)}function HD(h,p){return S1(h,p)}function $y(h,p,w,j){this.tag=h,this.key=w,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=j,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hm(h){return h=h.prototype,!(!h||!h.isReactComponent)}function ml(h,p){var w=h.alternate;return w===null?(w=e(h.tag,p,h.key,h.mode),w.elementType=h.elementType,w.type=h.type,w.stateNode=h.stateNode,w.alternate=h,h.alternate=w):(w.pendingProps=p,w.type=h.type,w.flags=0,w.subtreeFlags=0,w.deletions=null),w.flags=h.flags&65011712,w.childLanes=h.childLanes,w.lanes=h.lanes,w.child=h.child,w.memoizedProps=h.memoizedProps,w.memoizedState=h.memoizedState,w.updateQueue=h.updateQueue,p=h.dependencies,w.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},w.sibling=h.sibling,w.index=h.index,w.ref=h.ref,w.refCleanup=h.refCleanup,w}function V2(h,p){h.flags&=65011714;var w=h.alternate;return w===null?(h.childLanes=0,h.lanes=p,h.child=null,h.subtreeFlags=0,h.memoizedProps=null,h.memoizedState=null,h.updateQueue=null,h.dependencies=null,h.stateNode=null):(h.childLanes=w.childLanes,h.lanes=w.lanes,h.child=w.child,h.subtreeFlags=0,h.deletions=null,h.memoizedProps=w.memoizedProps,h.memoizedState=w.memoizedState,h.updateQueue=w.updateQueue,h.type=w.type,p=w.dependencies,h.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext}),h}function fm(h,p,w,j,U,V){var at=0;if(j=h,typeof h=="function")hm(h)&&(at=1);else if(typeof h=="string")at=Mr&&Qi?dx(h,w,ka.current)?26:b1(h)?27:5:Mr?dx(h,w,ka.current)?26:5:Qi&&b1(h)?27:5;else t:switch(h){case r1:return h=e(31,w,p,U),h.elementType=r1,h.lanes=V,h;case Cd:return bu(w.children,U,V,p);case q2:at=8,U|=24;break;case vm:return h=e(12,w,p,U|2),h.elementType=vm,h.lanes=V,h;case Rd:return h=e(13,w,p,U),h.elementType=Rd,h.lanes=V,h;case Ln:return h=e(19,w,p,U),h.elementType=Ln,h.lanes=V,h;default:if(typeof h=="object"&&h!==null)switch(h.$$typeof){case Su:at=10;break t;case s1:at=9;break t;case Cf:at=11;break t;case Q2:at=14;break t;case mc:at=16,j=null;break t}at=29,w=Error(i(130,h===null?"null":typeof h,"")),j=null}return p=e(at,w,p,U),p.elementType=h,p.type=j,p.lanes=V,p}function bu(h,p,w,j){return h=e(7,h,j,p),h.lanes=w,h}function pm(h,p,w){return h=e(6,h,null,p),h.lanes=w,h}function t1(h){var p=e(18,null,null,0);return p.stateNode=h,p}function e1(h,p,w){return p=e(4,h.children!==null?h.children:[],h.key,p),p.lanes=w,p.stateNode={containerInfo:h.containerInfo,pendingChildren:null,implementation:h.implementation},p}function Y2(h,p,w,j,U,V,at,ft,Ot){this.tag=1,this.containerInfo=h,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=xu,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=R(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=R(0),this.hiddenUpdates=R(null),this.identifierPrefix=j,this.onUncaughtError=U,this.onCaughtError=V,this.onRecoverableError=at,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Ot,this.incompleteTransitions=new Map}function mm(h,p,w,j,U,V,at,ft,Ot,Ut,Wt,Xt){return h=new Y2(h,p,w,at,Ot,Ut,Wt,Xt,ft),p=1,V===!0&&(p|=24),V=e(3,null,null,p),h.current=V,V.stateNode=h,p=zt(),p.refCount++,h.pooledCache=p,p.refCount++,V.memoizedState={element:j,isDehydrated:w,cache:p},gd(V),h}function n1(h){return h?(h=Pd,h):Pd}function K2(h){var p=h._reactInternals;if(p===void 0)throw typeof h.render=="function"?Error(i(188)):(h=Object.keys(h).join(","),Error(i(268,h)));return h=l(p),h=h!==null?c(h):null,h===null?null:ym(h.stateNode)}function i1(h,p,w,j,U,V){U=n1(U),j.context===null?j.context=U:j.pendingContext=U,j=qa(p),j.payload={element:w},V=V===void 0?null:V,V!==null&&(j.callback=V),w=al(h,j,p),w!==null&&(ys(w,h,p),P0(w,h,p))}function X2(h,p){if(h=h.memoizedState,h!==null&&h.dehydrated!==null){var w=h.retryLane;h.retryLane=w!==0&&w<p?w:p}}function go(h,p){X2(h,p),(h=h.alternate)&&X2(h,p)}var Ze={},GD=G,_s=Y9(),rr=Object.assign,a1=Symbol.for("react.element"),gm=Symbol.for("react.transitional.element"),pc=Symbol.for("react.portal"),Cd=Symbol.for("react.fragment"),q2=Symbol.for("react.strict_mode"),vm=Symbol.for("react.profiler"),s1=Symbol.for("react.consumer"),Su=Symbol.for("react.context"),Cf=Symbol.for("react.forward_ref"),Rd=Symbol.for("react.suspense"),Ln=Symbol.for("react.suspense_list"),Q2=Symbol.for("react.memo"),mc=Symbol.for("react.lazy"),r1=Symbol.for("react.activity"),gl=Symbol.for("react.memo_cache_sentinel"),W2=Symbol.iterator,Z2=Symbol.for("react.client.reference"),gc=Array.isArray,be=GD.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,d3=t.rendererVersion,J2=t.rendererPackageName,$2=t.extraDevToolsConfig,ym=t.getPublicInstance,VD=t.getRootHostContext,h3=t.getChildHostContext,YD=t.prepareForCommit,_m=t.resetAfterCommit,vl=t.createInstance;t.cloneMutableInstance;var o1=t.appendInitialChild,f3=t.finalizeInitialChildren,bm=t.shouldSetTextContent,l1=t.createTextInstance;t.cloneMutableTextInstance;var p3=t.scheduleTimeout,tx=t.cancelTimeout,xu=t.noTimeout,Dr=t.isPrimaryRenderer;t.warnsIfNotActing;var Ja=t.supportsMutation,vo=t.supportsPersistence,ja=t.supportsHydration,m3=t.getInstanceFromNode;t.beforeActiveInstanceBlur;var KD=t.preparePortalMount;t.prepareScopeUpdate,t.getInstanceFromScope;var ua=t.setCurrentUpdatePriority,yl=t.getCurrentUpdatePriority,yo=t.resolveUpdatePriority;t.trackSchedulerEvent,t.resolveEventType,t.resolveEventTimeStamp;var ex=t.shouldAttemptEagerTransition,g3=t.detachDeletedInstance;t.requestPostPaintCallback;var v3=t.maySuspendCommit,XD=t.maySuspendCommitOnUpdate,Rf=t.maySuspendCommitInSyncRender,za=t.preloadInstance,y3=t.startSuspendingCommit,$a=t.suspendInstance;t.suspendOnActiveViewTransition;var _3=t.waitForCommitToBeReady;t.getSuspendedCommitReason;var bs=t.NotPendingTransition,vc=t.HostTransitionContext,wd=t.resetFormInstance;t.bindToConsole;var b3=t.supportsMicrotasks,_l=t.scheduleMicrotask,Dd=t.supportsTestSelectors,nx=t.findFiberRoot,_o=t.getBoundingRect,S3=t.getTextContent,bl=t.isHiddenSubtree,x3=t.matchAccessibilityRole,Sm=t.setFocusIfFocusable,Md=t.setupIntersectionObserver,E3=t.appendChild,T3=t.appendChildToContainer,xm=t.commitTextUpdate,A3=t.commitMount,u1=t.commitUpdate,C3=t.insertBefore,R3=t.insertInContainerBefore,ix=t.removeChild,ax=t.removeChildFromContainer,c1=t.resetTextContent,w3=t.hideInstance,d1=t.hideTextInstance,qD=t.unhideInstance,D3=t.unhideTextInstance;t.cancelViewTransitionName,t.cancelRootViewTransitionName,t.restoreRootViewTransitionName,t.cloneRootViewTransitionContainer,t.removeRootViewTransitionClone,t.measureClonedInstance,t.hasInstanceChanged,t.hasInstanceAffectedParent,t.startViewTransition,t.startGestureTransition,t.stopViewTransition,t.getCurrentGestureOffset,t.createViewTransitionInstance;var or=t.clearContainer;t.createFragmentInstance,t.updateFragmentInstanceFiber,t.commitNewChildToFragmentInstance,t.deleteChildFromFragmentInstance;var M3=t.cloneInstance,ui=t.createContainerChildSet,sx=t.appendChildToContainerChildSet,O3=t.finalizeContainerChildren,N3=t.replaceContainerChildren,Eu=t.cloneHiddenInstance,Em=t.cloneHiddenTextInstance,Tm=t.isSuspenseInstancePending,Am=t.isSuspenseInstanceFallback,Od=t.getSuspenseInstanceFallbackErrorDetails,wf=t.registerSuspenseInstanceRetry,L3=t.canHydrateFormStateMarker,P3=t.isFormStateMarkerMatching,rx=t.getNextHydratableSibling,j3=t.getNextHydratableSiblingAfterSingleton,h1=t.getFirstHydratableChild,f1=t.getFirstHydratableChildWithinContainer,ox=t.getFirstHydratableChildWithinActivityInstance,z3=t.getFirstHydratableChildWithinSuspenseInstance,QD=t.getFirstHydratableChildWithinSingleton,WD=t.canHydrateInstance,B3=t.canHydrateTextInstance,k3=t.canHydrateActivityInstance,ZD=t.canHydrateSuspenseInstance,Df=t.hydrateInstance,p1=t.hydrateTextInstance,F3=t.hydrateActivityInstance,lx=t.hydrateSuspenseInstance,I3=t.getNextHydratableInstanceAfterActivityInstance,U3=t.getNextHydratableInstanceAfterSuspenseInstance,H3=t.commitHydratedInstance,JD=t.commitHydratedContainer,G3=t.commitHydratedActivityInstance,Mf=t.commitHydratedSuspenseInstance,V3=t.finalizeHydratedChildren,Y3=t.flushHydrationEvents;t.clearActivityBoundary;var _n=t.clearSuspenseBoundary;t.clearActivityBoundaryFromContainer;var ux=t.clearSuspenseBoundaryFromContainer,$D=t.hideDehydratedBoundary,K3=t.unhideDehydratedBoundary,X3=t.shouldDeleteUnhydratedTailInstances;t.diffHydratedPropsForDevWarnings,t.diffHydratedTextForDevWarnings,t.describeHydratableInstanceForDevWarnings;var t8=t.validateHydratableInstance,cx=t.validateHydratableTextInstance,Mr=t.supportsResources,dx=t.isHostHoistableType,m1=t.getHoistableRoot,Of=t.getResource,q3=t.acquireResource,Q3=t.releaseResource,Nd=t.hydrateHoistable,g1=t.mountHoistable,hx=t.unmountHoistable,W3=t.createHoistableInstance,Z3=t.prepareToCommitHoistables,e8=t.mayResourceSuspendCommit,v1=t.preloadResource,Tu=t.suspendResource,Qi=t.supportsSingletons,y1=t.resolveSingletonInstance,_1=t.acquireSingletonInstance,yc=t.releaseSingletonInstance,b1=t.isHostSingletonType,Ld=t.isSingletonScope,Cm=[],Nf=-1,Pd={},ks=Math.clz32?Math.clz32:y,J3=Math.log,$3=Math.LN2,Rm=256,wm=262144,Lf=4194304,S1=_s.unstable_scheduleCallback,Je=_s.unstable_cancelCallback,n8=_s.unstable_shouldYield,Fs=_s.unstable_requestPaint,Dn=_s.unstable_now,t4=_s.unstable_ImmediatePriority,Au=_s.unstable_UserBlockingPriority,Cu=_s.unstable_NormalPriority,Pf=_s.unstable_IdlePriority,x1=_s.log,fx=_s.unstable_setDisableYieldValue,jd=null,ji=null,Ba=typeof Object.is=="function"?Object.is:W,E1=typeof reportError=="function"?reportError:function(h){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var p=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof h=="object"&&h!==null&&typeof h.message=="string"?String(h.message):String(h),error:h});if(!window.dispatchEvent(p))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",h);return}console.error(h)},px=Object.prototype.hasOwnProperty,jf,Is,Dm=!1,e4=new WeakMap,zd=[],zf=0,Wi=null,Ct=0,Or=[],Nr=0,Ru=null,Ss=1,Sl="",ka=_(null),Mm=_(null),_c=_(null),T1=_(null),ca=null,ci=null,en=!1,wu=null,Lr=!1,mx=Error(i(519)),xl=_(null),xs=null,di=null,El=typeof AbortController<"u"?AbortController:function(){var h=[],p=this.signal={aborted:!1,addEventListener:function(w,j){h.push(j)}};this.abort=function(){p.aborted=!0,h.forEach(function(w){return w()})}},ts=_s.unstable_scheduleCallback,i8=_s.unstable_NormalPriority,_i={$$typeof:Su,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0},zi=null,Us=null,gx=!1,Bf=!1,Bd=!1,bo=0,Om=null,vx=0,kf=0,Ff=null,A1=be.S;be.S=function(h,p){Ex=Dn(),typeof p=="object"&&p!==null&&typeof p.then=="function"&&re(h,p),A1!==null&&A1(h,p)};var bc=_(null),If=Error(i(460)),C1=Error(i(474)),R1=Error(i(542)),w1={then:function(){}},Pr=null,jr=null,Nm=0,kd=fe(!0),n4=fe(!1),zr=[],So=0,yx=0,Sc=!1,_x=!1,Tl=_(null),D1=_(0),lr=_(null),Br=null,Bi=_(0),Du=0,Fe=null,Fn=null,Zi=null,M1=!1,Uf=!1,Fd=!1,O1=0,Hf=0,Gf=null,a8=0,Lm={readContext:Te,use:kn,useCallback:yi,useContext:yi,useEffect:yi,useImperativeHandle:yi,useLayoutEffect:yi,useInsertionEffect:yi,useMemo:yi,useReducer:yi,useRef:yi,useState:yi,useDebugValue:yi,useDeferredValue:yi,useTransition:yi,useSyncExternalStore:yi,useId:yi,useHostTransitionStatus:yi,useFormState:yi,useActionState:yi,useOptimistic:yi,useMemoCache:yi,useCacheRefresh:yi};Lm.useEffectEvent=yi;var i4={readContext:Te,use:kn,useCallback:function(h,p){return Na().memoizedState=[h,p===void 0?null:p],h},useContext:Te,useEffect:m2,useImperativeHandle:function(h,p,w){w=w!=null?w.concat([h]):null,G0(4194308,4,ZC.bind(null,p,h),w)},useLayoutEffect:function(h,p){return G0(4194308,4,h,p)},useInsertionEffect:function(h,p){G0(4,2,h,p)},useMemo:function(h,p){var w=Na();p=p===void 0?null:p;var j=h();if(Fd){H(!0);try{h()}finally{H(!1)}}return w.memoizedState=[j,p],j},useReducer:function(h,p,w){var j=Na();if(w!==void 0){var U=w(p);if(Fd){H(!0);try{w(p)}finally{H(!1)}}}else U=p;return j.memoizedState=j.baseState=U,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:h,lastRenderedState:U},j.queue=h,h=h.dispatch=La.bind(null,Fe,h),[j.memoizedState,h]},useRef:function(h){var p=Na();return h={current:h},p.memoizedState=h},useState:function(h){h=ms(h);var p=h.queue,w=Ey.bind(null,Fe,p);return p.dispatch=w,[h.memoizedState,w]},useDebugValue:y2,useDeferredValue:function(h,p){var w=Na();return Sy(w,h,p)},useTransition:function(){var h=ms(!1);return h=_2.bind(null,Fe,h.queue,!0,!1),Na().memoizedState=h,[!1,h]},useSyncExternalStore:function(h,p,w){var j=Fe,U=Na();if(en){if(w===void 0)throw Error(i(407));w=w()}else{if(w=p(),Vn===null)throw Error(i(349));on&127||QC(j,p,w)}U.memoizedState=w;var V={value:w,getSnapshot:p};return U.queue=V,m2(k0.bind(null,j,V,h),[h]),j.flags|=2048,gs(9,{destroy:void 0},ll.bind(null,j,V,w,p),null),w},useId:function(){var h=Na(),p=Vn.identifierPrefix;if(en){var w=Sl,j=Ss;w=(j&~(1<<32-ks(j)-1)).toString(32)+w,p="_"+p+"R_"+w,w=O1++,0<w&&(p+="H"+w.toString(32)),p+="_"}else w=a8++,p="_"+p+"r_"+w.toString(32)+"_";return h.memoizedState=p},useHostTransitionStatus:xy,useFormState:uo,useActionState:uo,useOptimistic:function(h){var p=Na();p.memoizedState=p.baseState=h;var w={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return p.queue=w,p=mf.bind(null,Fe,!0,w),w.dispatch=p,[h,p]},useMemoCache:df,useCacheRefresh:function(){return Na().memoizedState=JC.bind(null,Fe)},useEffectEvent:function(h){var p=Na(),w={impl:h};return p.memoizedState=w,function(){if(nn&2)throw Error(i(440));return w.impl.apply(void 0,arguments)}}},bx={readContext:Te,use:kn,useCallback:by,useContext:Te,useEffect:vy,useImperativeHandle:v2,useInsertionEffect:g2,useLayoutEffect:_y,useMemo:V0,useReducer:hf,useRef:bd,useState:function(){return hf(ol)},useDebugValue:y2,useDeferredValue:function(h,p){var w=qn();return Y0(w,Fn.memoizedState,h,p)},useTransition:function(){var h=hf(ol)[0],p=qn().memoizedState;return[typeof h=="boolean"?h:ao(h),p]},useSyncExternalStore:so,useId:pu,useHostTransitionStatus:xy,useFormState:p2,useActionState:p2,useOptimistic:function(h,p){var w=qn();return Ps(w,Fn,h,p)},useMemoCache:df,useCacheRefresh:S2};bx.useEffectEvent=yy;var a4={readContext:Te,use:kn,useCallback:by,useContext:Te,useEffect:vy,useImperativeHandle:v2,useInsertionEffect:g2,useLayoutEffect:_y,useMemo:V0,useReducer:_d,useRef:bd,useState:function(){return _d(ol)},useDebugValue:y2,useDeferredValue:function(h,p){var w=qn();return Fn===null?Sy(w,h,p):Y0(w,Fn.memoizedState,h,p)},useTransition:function(){var h=_d(ol)[0],p=qn().memoizedState;return[typeof h=="boolean"?h:ao(h),p]},useSyncExternalStore:so,useId:pu,useHostTransitionStatus:xy,useFormState:H0,useActionState:H0,useOptimistic:function(h,p){var w=qn();return Fn!==null?Ps(w,Fn,h,p):(w.baseState=h,[h,w.queue.dispatch])},useMemoCache:df,useCacheRefresh:S2};a4.useEffectEvent=yy;var N1={enqueueSetState:function(h,p,w){h=h._reactInternals;var j=Bs(),U=qa(j);U.payload=p,w!=null&&(U.callback=w),p=al(h,U,j),p!==null&&(ys(p,h,j),P0(p,h,j))},enqueueReplaceState:function(h,p,w){h=h._reactInternals;var j=Bs(),U=qa(j);U.tag=1,U.payload=p,w!=null&&(U.callback=w),p=al(h,U,j),p!==null&&(ys(p,h,j),P0(p,h,j))},enqueueForceUpdate:function(h,p){h=h._reactInternals;var w=Bs(),j=qa(w);j.tag=2,p!=null&&(j.callback=p),p=al(h,j,w),p!==null&&(ys(p,h,w),P0(p,h,w))}},L1=Error(i(461)),Ji=!1,P1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Al=!1,ki=!1,Pm=!1,j1=typeof WeakSet=="function"?WeakSet:Set,ba=null,$i=null,Hs=!1,xo=null,xc=8192,s8={getCacheForType:function(h){var p=Te(_i),w=p.data.get(h);return w===void 0&&(w=h(),p.data.set(h,w)),w},cacheSignal:function(){return Te(_i).controller.signal}},z1=0,B1=1,k1=2,F1=3,I1=4;if(typeof Symbol=="function"&&Symbol.for){var jm=Symbol.for;z1=jm("selector.component"),B1=jm("selector.has_pseudo_class"),k1=jm("selector.role"),F1=jm("selector.test_id"),I1=jm("selector.text")}var r8=typeof WeakMap=="function"?WeakMap:Map,nn=0,Vn=null,an=null,on=0,Pn=0,ur=null,Ec=!1,Id=!1,Sx=!1,Mu=0,Ei=0,Tc=0,Ud=0,xx=0,cr=0,Vf=0,zm=null,Gs=null,U1=!1,Bm=0,Ex=0,Yf=1/0,H1=null,Ac=null,jn=0,Ou=null,Cc=null,Cl=0,G1=0,V1=null,s4=null,Kf=0,Y1=null;return Ze.attemptContinuousHydration=function(h){if(h.tag===13||h.tag===31){var p=el(h,67108864);p!==null&&ys(p,h,67108864),go(h,67108864)}},Ze.attemptHydrationAtCurrentPriority=function(h){if(h.tag===13||h.tag===31){var p=Bs();p=I(p);var w=el(h,p);w!==null&&ys(w,h,p),go(h,p)}},Ze.attemptSynchronousHydration=function(h){switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var p=x(h.pendingLanes);if(p!==0){for(h.pendingLanes|=2,h.entangledLanes|=2;p;){var w=1<<31-ks(p);h.entanglements[1]|=w,p&=~w}Lt(h),!(nn&6)&&(Yf=Dn()+500,Yt(0,!1))}}break;case 31:case 13:p=el(h,2),p!==null&&ys(p,h,2),hc(),go(h,2)}},Ze.batchedUpdates=function(h,p){return h(p)},Ze.createComponentSelector=function(h){return{$$typeof:z1,value:h}},Ze.createContainer=function(h,p,w,j,U,V,at,ft,Ot,Ut){return mm(h,p,!1,null,w,j,V,null,at,ft,Ot,Ut)},Ze.createHasPseudoClassSelector=function(h){return{$$typeof:B1,value:h}},Ze.createHydrationContainer=function(h,p,w,j,U,V,at,ft,Ot,Ut,Wt,Xt,ne,Ae){return h=mm(w,j,!0,h,U,V,ft,Ae,Ot,Ut,Wt,Xt),h.context=n1(null),w=h.current,j=Bs(),j=I(j),U=qa(j),U.callback=p??null,al(w,U,j),p=j,h.current.lanes=p,N(h,p),Lt(h),h},Ze.createPortal=function(h,p,w){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:pc,key:j==null?null:""+j,children:h,containerInfo:p,implementation:w}},Ze.createRoleSelector=function(h){return{$$typeof:k1,value:h}},Ze.createTestNameSelector=function(h){return{$$typeof:F1,value:h}},Ze.createTextSelector=function(h){return{$$typeof:I1,value:h}},Ze.defaultOnCaughtError=function(h){console.error(h)},Ze.defaultOnRecoverableError=function(h){E1(h)},Ze.defaultOnUncaughtError=function(h){E1(h)},Ze.deferredUpdates=function(h){var p=be.T,w=yl();try{return ua(32),be.T=null,h()}finally{ua(w),be.T=p}},Ze.discreteUpdates=function(h,p,w,j,U){var V=be.T,at=yl();try{return ua(2),be.T=null,h(p,w,j,U)}finally{ua(at),be.T=V,nn===0&&(Yf=Dn()+500)}},Ze.findAllNodes=om,Ze.findBoundingRects=function(h,p){if(!Dd)throw Error(i(363));p=om(h,p),h=[];for(var w=0;w<p.length;w++)h.push(_o(p[w]));for(p=h.length-1;0<p;p--){w=h[p];for(var j=w.x,U=j+w.width,V=w.y,at=V+w.height,ft=p-1;0<=ft;ft--)if(p!==ft){var Ot=h[ft],Ut=Ot.x,Wt=Ut+Ot.width,Xt=Ot.y,ne=Xt+Ot.height;if(j>=Ut&&V>=Xt&&U<=Wt&&at<=ne){h.splice(p,1);break}else if(j!==Ut||w.width!==Ot.width||ne<V||Xt>at){if(!(V!==Xt||w.height!==Ot.height||Wt<j||Ut>U)){Ut>j&&(Ot.width+=Ut-j,Ot.x=j),Wt<U&&(Ot.width=U-Ut),h.splice(p,1);break}}else{Xt>V&&(Ot.height+=Xt-V,Ot.y=V),ne<at&&(Ot.height=at-Xt),h.splice(p,1);break}}}return h},Ze.findHostInstance=K2,Ze.findHostInstanceWithNoPortals=function(h){return h=l(h),h=h!==null?d(h):null,h===null?null:ym(h.stateNode)},Ze.findHostInstanceWithWarning=function(h){return K2(h)},Ze.flushPassiveEffects=Pi,Ze.flushSyncFromReconciler=function(h){var p=nn;nn|=1;var w=be.T,j=yl();try{if(ua(2),be.T=null,h)return h()}finally{ua(j),be.T=w,nn=p,!(nn&6)&&Yt(0,!1)}},Ze.flushSyncWork=hc,Ze.focusWithin=function(h,p){if(!Dd)throw Error(i(363));for(h=xf(h),p=j2(h,p),p=Array.from(p),h=0;h<p.length;){var w=p[h++],j=w.tag;if(!bl(w)){if((j===5||j===26||j===27)&&Sm(w.stateNode))return!0;for(w=w.child;w!==null;)p.push(w),w=w.sibling}}return!1},Ze.getFindAllNodesFailureDescription=function(h,p){if(!Dd)throw Error(i(363));var w=0,j=[];h=[xf(h),0];for(var U=0;U<h.length;){var V=h[U++],at=V.tag,ft=h[U++],Ot=p[ft];if((at!==5&&at!==26&&at!==27||!bl(V))&&(rm(V,Ot)&&(j.push(Yy(Ot)),ft++,ft>w&&(w=ft)),ft<p.length))for(V=V.child;V!==null;)h.push(V,ft),V=V.sibling}if(w<p.length){for(h=[];w<p.length;w++)h.push(Yy(p[w]));return`findAllNodes was able to match part of the selector:
82
82
  `+(j.join(" > ")+`
83
83
 
84
84
  No matching component was found for:
@@ -90,19 +90,19 @@ No matching component was found for:
90
90
  *
91
91
  * This source code is licensed under the MIT license found in the
92
92
  * LICENSE file in the root directory of this source tree.
93
- */var Zj;function SZ(){return Zj||(Zj=1,function(u){process.env.NODE_ENV!=="production"&&(u.exports=function(t){function e(a,r){for(a=a.memoizedState;a!==null&&0<r;)a=a.next,r--;return a}function n(a,r,g,D){if(g>=r.length)return D;var z=r[g],k=Wi(a)?a.slice():Dn({},a);return k[z]=n(a[z],r,g+1,D),k}function i(a,r,g){if(r.length!==g.length)console.warn("copyWithRename() expects paths of the same length");else{for(var D=0;D<g.length-1;D++)if(r[D]!==g[D]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return s(a,r,g,0)}}function s(a,r,g,D){var z=r[D],k=Wi(a)?a.slice():Dn({},a);return D+1===r.length?(k[g[D]]=k[z],Wi(k)?k.splice(z,1):delete k[z]):k[z]=s(a[z],r,g,D+1),k}function o(a,r,g){var D=r[g],z=Wi(a)?a.slice():Dn({},a);return g+1===r.length?(Wi(z)?z.splice(D,1):delete z[D],z):(z[D]=o(a[D],r,g+1),z)}function l(){return!1}function c(){return null}function d(a,r,g,D){return new e8(a,r,g,D)}function f(a,r){a.context===hi&&($3(r,a,null,null),Em())}function m(a,r){if(zl!==null){var g=r.staleFamilies;r=r.updatedFamilies,Mf(),Z3(a.current,r,g),Em()}}function _(a){zl=a}function v(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function S(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function y(){}function x(){}function T(a){var r=[];return a.forEach(function(g){r.push(g)}),r.sort().join(", ")}function A(a){var r=a,g=a;if(a.alternate)for(;r.return;)r=r.return;else{a=r;do r=a,r.flags&4098&&(g=r.return),a=r.return;while(a)}return r.tag===3?g:null}function E(a){if(A(a)!==a)throw Error("Unable to find node on an unmounted component.")}function C(a){var r=a.alternate;if(!r){if(r=A(a),r===null)throw Error("Unable to find node on an unmounted component.");return r!==a?null:a}for(var g=a,D=r;;){var z=g.return;if(z===null)break;var k=z.alternate;if(k===null){if(D=z.return,D!==null){g=D;continue}break}if(z.child===k.child){for(k=z.child;k;){if(k===g)return E(z),a;if(k===D)return E(z),r;k=k.sibling}throw Error("Unable to find node on an unmounted component.")}if(g.return!==D.return)g=z,D=k;else{for(var Y=!1,J=z.child;J;){if(J===g){Y=!0,g=z,D=k;break}if(J===D){Y=!0,D=z,g=k;break}J=J.sibling}if(!Y){for(J=k.child;J;){if(J===g){Y=!0,g=k,D=z;break}if(J===D){Y=!0,D=k,g=z;break}J=J.sibling}if(!Y)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(g.alternate!==D)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(g.tag!==3)throw Error("Unable to find node on an unmounted component.");return g.stateNode.current===g?a:r}function R(a){return a=C(a),a!==null?N(a):null}function N(a){var r=a.tag;if(r===5||r===26||r===27||r===6)return a;for(a=a.child;a!==null;){if(r=N(a),r!==null)return r;a=a.sibling}return null}function M(a){var r=a.tag;if(r===5||r===26||r===27||r===6)return a;for(a=a.child;a!==null;){if(a.tag!==4&&(r=M(a),r!==null))return r;a=a.sibling}return null}function O(a){return a===null||typeof a!="object"?null:(a=zd&&a[zd]||a["@@iterator"],typeof a=="function"?a:null)}function B(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===zf?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case Pf:return"Fragment";case fx:return"Profiler";case x1:return"StrictMode";case E1:return"Suspense";case px:return"SuspenseList";case Dm:return"Activity"}if(typeof a=="object")switch(typeof a.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),a.$$typeof){case Cu:return"Portal";case ji:return a.displayName||"Context";case jd:return(a._context.displayName||"Context")+".Consumer";case Ba:var r=a.render;return a=a.displayName,a||(a=r.displayName||r.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case jf:return r=a.displayName||null,r!==null?r:B(a.type)||"Memo";case Is:r=a._payload,a=a._init;try{return B(a(r))}catch{}}return null}function L(a){var r=a.type;switch(a.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(r._context.displayName||"Context")+".Consumer";case 10:return r.displayName||"Context";case 18:return"DehydratedFragment";case 11:return a=r.render,a=a.displayName||a.name||"",r.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(r);case 8:return r===x1?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;break;case 29:if(r=a._debugInfo,r!=null){for(var g=r.length-1;0<=g;g--)if(typeof r[g].name=="string")return r[g].name}if(a.return!==null)return L(a.return)}return null}function I(a){return{current:a}}function F(a,r){0>Ae?console.error("Unexpected pop."):(r!==ne[Ae]&&console.error("Unexpected Fiber popped."),a.current=Xt[Ae],Xt[Ae]=null,ne[Ae]=null,Ae--)}function H(a,r,g){Ae++,Xt[Ae]=a.current,ne[Ae]=g,a.current=r}function W(a){return a>>>=0,a===0?32:31-(Hd(a)/At|0)|0}function Z(a){var r=a&42;if(r!==0)return r;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),a}}function X(a,r,g){var D=a.pendingLanes;if(D===0)return 0;var z=0,k=a.suspendedLanes,Y=a.pingedLanes;a=a.warmLanes;var J=D&134217727;return J!==0?(D=J&~k,D!==0?z=Z(D):(Y&=J,Y!==0?z=Z(Y):g||(g=J&~a,g!==0&&(z=Z(g))))):(J=D&~k,J!==0?z=Z(J):Y!==0?z=Z(Y):g||(g=D&~a,g!==0&&(z=Z(g)))),z===0?0:r!==0&&r!==z&&!(r&k)&&(k=z&-z,g=r&-r,k>=g||k===32&&(g&4194048)!==0)?r:z}function $(a,r){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&r)===0}function nt(a,r){switch(a){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Q(){var a=Kt;return Kt<<=1,!(Kt&62914560)&&(Kt=4194304),a}function tt(a){for(var r=[],g=0;31>g;g++)r.push(a);return r}function rt(a,r){a.pendingLanes|=r,r!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function ut(a,r,g,D,z,k){var Y=a.pendingLanes;a.pendingLanes=g,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=g,a.entangledLanes&=g,a.errorRecoveryDisabledLanes&=g,a.shellSuspendCounter=0;var J=a.entanglements,ct=a.expirationTimes,vt=a.hiddenUpdates;for(g=Y&~g;0<g;){var Mt=31-da(g),Nt=1<<Mt;J[Mt]=0,ct[Mt]=-1;var Bt=vt[Mt];if(Bt!==null)for(vt[Mt]=null,Mt=0;Mt<Bt.length;Mt++){var _e=Bt[Mt];_e!==null&&(_e.lane&=-536870913)}g&=~Nt}D!==0&&st(a,D,0),k!==0&&z===0&&a.tag!==0&&(a.suspendedLanes|=k&~(Y&~r))}function st(a,r,g){a.pendingLanes|=r,a.suspendedLanes&=~r;var D=31-da(r);a.entangledLanes|=r,a.entanglements[D]=a.entanglements[D]|1073741824|g&261930}function ot(a,r){var g=a.entangledLanes|=r;for(a=a.entanglements;g;){var D=31-da(g),z=1<<D;z&r|a[D]&r&&(a[D]|=r),g&=~z}}function dt(a,r){var g=r&-r;return g=g&42?1:pt(g),g&(a.suspendedLanes|r)?0:g}function pt(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function it(a,r,g){if(wc)for(a=a.pendingUpdatersLaneMap;0<g;){var D=31-da(g),z=1<<D;a[D].add(r),g&=~z}}function lt(a,r){if(wc)for(var g=a.pendingUpdatersLaneMap,D=a.memoizedUpdaters;0<r;){var z=31-da(r);a=1<<z,z=g[z],0<z.size&&(z.forEach(function(k){var Y=k.alternate;Y!==null&&D.has(Y)||D.add(k)}),z.clear()),r&=~a}}function ht(a){return a&=-a,2<a?8<a?a&134217727?32:268435456:8:2}function St(a){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var r=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(r.isDisabled)return!0;if(!r.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{K1=r.inject(a),Vs=r}catch(g){console.error("React instrumentation encountered an error: %o.",g)}return!!r.checkDCE}function _t(a){if(typeof ZU=="function"&&JU(a),Vs&&typeof Vs.setStrictMode=="function")try{Vs.setStrictMode(K1,a)}catch(r){Rc||(Rc=!0,console.error("React instrumentation encountered an error: %o",r))}}function bt(a,r){return a===r&&(a!==0||1/a===1/r)||a!==a&&r!==r}function yt(a){for(var r=0,g=0;g<a.length;g++){var D=a[g];if(typeof D=="object"&&D!==null)if(Wi(D)&&D.length===2&&typeof D[0]=="string"){if(r!==0&&r!==3)return 1;r=3}else return 1;else{if(typeof D=="function"||typeof D=="string"&&50<D.length||r!==0&&r!==2)return 1;r=2}}return r}function Tt(a,r,g,D){for(var z in a)o8.call(a,z)&&z[0]!=="_"&&wt(z,a[z],r,g,D)}function wt(a,r,g,D,z){switch(typeof r){case"object":if(r===null){r="null";break}else{if(r.$$typeof===Au){var k=B(r.type)||"…",Y=r.key;r=r.props;var J=Object.keys(r),ct=J.length;if(Y==null&&ct===0){r="<"+k+" />";break}if(3>D||ct===1&&J[0]==="children"&&Y==null){r="<"+k+" … />";break}g.push([z+"  ".repeat(D)+a,"<"+k]),Y!==null&&wt("key",Y,g,D+1,z),a=!1;for(var vt in r)vt==="children"?r.children!=null&&(!Wi(r.children)||0<r.children.length)&&(a=!0):o8.call(r,vt)&&vt[0]!=="_"&&wt(vt,r[vt],g,D+1,z);g.push(["",a?">…</"+k+">":"/>"]);return}if(k=Object.prototype.toString.call(r),k=k.slice(8,k.length-1),k==="Array"){if(vt=yt(r),vt===2||vt===0){r=JSON.stringify(r);break}else if(vt===3){for(g.push([z+"  ".repeat(D)+a,""]),a=0;a<r.length;a++)k=r[a],wt(k[0],k[1],g,D+1,z);return}}if(k==="Promise"){if(r.status==="fulfilled"){if(k=g.length,wt(a,r.value,g,D,z),g.length>k){g=g[k],g[1]="Promise<"+(g[1]||"Object")+">";return}}else if(r.status==="rejected"&&(k=g.length,wt(a,r.reason,g,D,z),g.length>k)){g=g[k],g[1]="Rejected Promise<"+g[1]+">";return}g.push(["  ".repeat(D)+a,"Promise"]);return}k==="Object"&&(vt=Object.getPrototypeOf(r))&&typeof vt.constructor=="function"&&(k=vt.constructor.name),g.push([z+"  ".repeat(D)+a,k==="Object"?3>D?"":"…":k]),3>D&&Tt(r,g,D+1,z);return}case"function":r=r.name===""?"() => {}":r.name+"() {}";break;case"string":r=r==="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects."?"…":JSON.stringify(r);break;case"undefined":r="undefined";break;case"boolean":r=r?"true":"false";break;default:r=String(r)}g.push([z+"  ".repeat(D)+a,r])}function It(a,r,g,D){var z=!0;for(Y in a)Y in r||(g.push(["– "+"  ".repeat(D)+Y,"…"]),z=!1);for(var k in r)if(k in a){var Y=a[k],J=r[k];if(Y!==J){if(D===0&&k==="children")z="  ".repeat(D)+k,g.push(["– "+z,"…"],["+ "+z,"…"]);else{if(!(3<=D)){if(typeof Y=="object"&&typeof J=="object"&&Y!==null&&J!==null&&Y.$$typeof===J.$$typeof)if(J.$$typeof===Au){if(Y.type===J.type&&Y.key===J.key){Y=B(J.type)||"…",z="  ".repeat(D)+k,Y="<"+Y+" … />",g.push(["– "+z,Y],["+ "+z,Y]),z=!1;continue}}else{var ct=Object.prototype.toString.call(Y),vt=Object.prototype.toString.call(J);if(ct===vt&&(vt==="[object Object]"||vt==="[object Array]")){ct=["  "+"  ".repeat(D)+k,vt==="[object Array]"?"Array":""],g.push(ct),vt=g.length,It(Y,J,g,D+1)?vt===g.length&&(ct[1]="Referentially unequal but deeply equal objects. Consider memoization."):z=!1;continue}}else if(typeof Y=="function"&&typeof J=="function"&&Y.name===J.name&&Y.length===J.length&&(ct=Function.prototype.toString.call(Y),vt=Function.prototype.toString.call(J),ct===vt)){Y=J.name===""?"() => {}":J.name+"() {}",g.push(["  "+"  ".repeat(D)+k,Y+" Referentially unequal function closure. Consider memoization."]);continue}}wt(k,Y,g,D,"– "),wt(k,J,g,D,"+ ")}z=!1}}else g.push(["+ "+"  ".repeat(D)+k,"…"]),z=!1;return z}function Ft(a){hn=a&63?"Blocking":a&64?"Gesture":a&4194176?"Transition":a&62914560?"Suspense":a&2080374784?"Idle":"Other"}function $t(a,r,g,D){fi&&(qf.start=r,qf.end=g,Gd.color="warning",Gd.tooltipText=D,Gd.properties=null,(a=a._debugTask)?a.run(performance.measure.bind(performance,D,qf)):performance.measure(D,qf))}function Jt(a,r,g){$t(a,r,g,"Reconnect")}function we(a,r,g,D,z){var k=L(a);if(k!==null&&fi){var Y=a.alternate,J=a.actualDuration;if(Y===null||Y.child!==a.child)for(var ct=a.child;ct!==null;ct=ct.sibling)J-=ct.actualDuration;D=.5>J?D?"tertiary-light":"primary-light":10>J?D?"tertiary":"primary":100>J?D?"tertiary-dark":"primary-dark":"error";var vt=a.memoizedProps;J=a._debugTask,vt!==null&&Y!==null&&Y.memoizedProps!==vt?(ct=[eH],vt=It(Y.memoizedProps,vt,ct,0),1<ct.length&&(vt&&!Xf&&!(Y.lanes&z)&&100<a.actualDuration?(Xf=!0,ct[0]=nH,Gd.color="warning",Gd.tooltipText="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner."):(Gd.color=D,Gd.tooltipText=k),Gd.properties=ct,qf.start=r,qf.end=g,J!=null?J.run(performance.measure.bind(performance,"​"+k,qf)):performance.measure("​"+k,qf))):J!=null?J.run(console.timeStamp.bind(console,k,r,g,"Components ⚛",void 0,D)):console.timeStamp(k,r,g,"Components ⚛",void 0,D)}}function ze(a,r,g,D){if(fi){var z=L(a);if(z!==null){for(var k=null,Y=[],J=0;J<D.length;J++){var ct=D[J];k==null&&ct.source!==null&&(k=ct.source._debugTask),ct=ct.value,Y.push(["Error",typeof ct=="object"&&ct!==null&&typeof ct.message=="string"?String(ct.message):String(ct)])}a.key!==null&&wt("key",a.key,Y,0,""),a.memoizedProps!==null&&Tt(a.memoizedProps,Y,0,""),k==null&&(k=a._debugTask),a={start:r,end:g,detail:{devtools:{color:"error",track:"Components ⚛",tooltipText:a.tag===13?"Hydration failed":"Error boundary caught an error",properties:Y}}},k?k.run(performance.measure.bind(performance,"​"+z,a)):performance.measure("​"+z,a)}}}function Se(a,r,g,D,z){if(z!==null){if(fi){var k=L(a);if(k!==null){D=[];for(var Y=0;Y<z.length;Y++){var J=z[Y].value;D.push(["Error",typeof J=="object"&&J!==null&&typeof J.message=="string"?String(J.message):String(J)])}a.key!==null&&wt("key",a.key,D,0,""),a.memoizedProps!==null&&Tt(a.memoizedProps,D,0,""),r={start:r,end:g,detail:{devtools:{color:"error",track:"Components ⚛",tooltipText:"A lifecycle or effect errored",properties:D}}},(a=a._debugTask)?a.run(performance.measure.bind(performance,"​"+k,r)):performance.measure("​"+k,r)}}}else k=L(a),k!==null&&fi&&(z=1>D?"secondary-light":100>D?"secondary":500>D?"secondary-dark":"error",(a=a._debugTask)?a.run(console.timeStamp.bind(console,k,r,g,"Components ⚛",void 0,z)):console.timeStamp(k,r,g,"Components ⚛",void 0,z))}function Te(a,r,g,D){if(fi&&!(r<=a)){var z=(g&738197653)===g?"tertiary-dark":"primary-dark";g=(g&536870912)===g?"Prepared":(g&201326741)===g?"Hydrated":"Render",D?D.run(console.timeStamp.bind(console,g,a,r,hn,"Scheduler ⚛",z)):console.timeStamp(g,a,r,hn,"Scheduler ⚛",z)}}function pn(a,r,g,D){!fi||r<=a||(g=(g&738197653)===g?"tertiary-dark":"primary-dark",D?D.run(console.timeStamp.bind(console,"Prewarm",a,r,hn,"Scheduler ⚛",g)):console.timeStamp("Prewarm",a,r,hn,"Scheduler ⚛",g))}function Mn(a,r,g,D){!fi||r<=a||(g=(g&738197653)===g?"tertiary-dark":"primary-dark",D?D.run(console.timeStamp.bind(console,"Suspended",a,r,hn,"Scheduler ⚛",g)):console.timeStamp("Suspended",a,r,hn,"Scheduler ⚛",g))}function zt(a,r,g,D,z,k){if(fi&&!(r<=a)){g=[];for(var Y=0;Y<D.length;Y++){var J=D[Y].value;g.push(["Recoverable Error",typeof J=="object"&&J!==null&&typeof J.message=="string"?String(J.message):String(J)])}a={start:a,end:r,detail:{devtools:{color:"primary-dark",track:hn,trackGroup:"Scheduler ⚛",tooltipText:z?"Hydration Failed":"Recovered after Error",properties:g}}},k?k.run(performance.measure.bind(performance,"Recovered",a)):performance.measure("Recovered",a)}}function te(a,r,g,D){!fi||r<=a||(D?D.run(console.timeStamp.bind(console,"Errored",a,r,hn,"Scheduler ⚛","error")):console.timeStamp("Errored",a,r,hn,"Scheduler ⚛","error"))}function pe(a,r,g,D){!fi||r<=a||(D?D.run(console.timeStamp.bind(console,g,a,r,hn,"Scheduler ⚛","secondary-light")):console.timeStamp(g,a,r,hn,"Scheduler ⚛","secondary-light"))}function Lt(a,r,g,D,z){if(fi&&!(r<=a)){for(var k=[],Y=0;Y<g.length;Y++){var J=g[Y].value;k.push(["Error",typeof J=="object"&&J!==null&&typeof J.message=="string"?String(J.message):String(J)])}a={start:a,end:r,detail:{devtools:{color:"error",track:hn,trackGroup:"Scheduler ⚛",tooltipText:D?"Remaining Effects Errored":"Commit Errored",properties:k}}},z?z.run(performance.measure.bind(performance,"Errored",a)):performance.measure("Errored",a)}}function Yt(){}function ee(){if(Tx===0){S7=console.log,x7=console.info,E7=console.warn,T7=console.error,A7=console.group,C7=console.groupCollapsed,R7=console.groupEnd;var a={configurable:!0,enumerable:!0,value:Yt,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}Tx++}function Be(){if(Tx--,Tx===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Dn({},a,{value:S7}),info:Dn({},a,{value:x7}),warn:Dn({},a,{value:E7}),error:Dn({},a,{value:T7}),group:Dn({},a,{value:A7}),groupCollapsed:Dn({},a,{value:C7}),groupEnd:Dn({},a,{value:R7})})}0>Tx&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Ke(a){var r=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,a=a.stack,Error.prepareStackTrace=r,a.startsWith(`Error: react-stack-top-frame
93
+ */var Zj;function SZ(){return Zj||(Zj=1,function(u){process.env.NODE_ENV!=="production"&&(u.exports=function(t){function e(a,r){for(a=a.memoizedState;a!==null&&0<r;)a=a.next,r--;return a}function n(a,r,g,D){if(g>=r.length)return D;var z=r[g],k=Wi(a)?a.slice():Dn({},a);return k[z]=n(a[z],r,g+1,D),k}function i(a,r,g){if(r.length!==g.length)console.warn("copyWithRename() expects paths of the same length");else{for(var D=0;D<g.length-1;D++)if(r[D]!==g[D]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return s(a,r,g,0)}}function s(a,r,g,D){var z=r[D],k=Wi(a)?a.slice():Dn({},a);return D+1===r.length?(k[g[D]]=k[z],Wi(k)?k.splice(z,1):delete k[z]):k[z]=s(a[z],r,g,D+1),k}function o(a,r,g){var D=r[g],z=Wi(a)?a.slice():Dn({},a);return g+1===r.length?(Wi(z)?z.splice(D,1):delete z[D],z):(z[D]=o(a[D],r,g+1),z)}function l(){return!1}function c(){return null}function d(a,r,g,D){return new e8(a,r,g,D)}function f(a,r){a.context===hi&&($3(r,a,null,null),Em())}function m(a,r){if(zl!==null){var g=r.staleFamilies;r=r.updatedFamilies,Mf(),Z3(a.current,r,g),Em()}}function _(a){zl=a}function v(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function S(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function y(){}function x(){}function T(a){var r=[];return a.forEach(function(g){r.push(g)}),r.sort().join(", ")}function A(a){var r=a,g=a;if(a.alternate)for(;r.return;)r=r.return;else{a=r;do r=a,r.flags&4098&&(g=r.return),a=r.return;while(a)}return r.tag===3?g:null}function E(a){if(A(a)!==a)throw Error("Unable to find node on an unmounted component.")}function C(a){var r=a.alternate;if(!r){if(r=A(a),r===null)throw Error("Unable to find node on an unmounted component.");return r!==a?null:a}for(var g=a,D=r;;){var z=g.return;if(z===null)break;var k=z.alternate;if(k===null){if(D=z.return,D!==null){g=D;continue}break}if(z.child===k.child){for(k=z.child;k;){if(k===g)return E(z),a;if(k===D)return E(z),r;k=k.sibling}throw Error("Unable to find node on an unmounted component.")}if(g.return!==D.return)g=z,D=k;else{for(var Y=!1,J=z.child;J;){if(J===g){Y=!0,g=z,D=k;break}if(J===D){Y=!0,D=z,g=k;break}J=J.sibling}if(!Y){for(J=k.child;J;){if(J===g){Y=!0,g=k,D=z;break}if(J===D){Y=!0,D=k,g=z;break}J=J.sibling}if(!Y)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(g.alternate!==D)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(g.tag!==3)throw Error("Unable to find node on an unmounted component.");return g.stateNode.current===g?a:r}function R(a){return a=C(a),a!==null?N(a):null}function N(a){var r=a.tag;if(r===5||r===26||r===27||r===6)return a;for(a=a.child;a!==null;){if(r=N(a),r!==null)return r;a=a.sibling}return null}function M(a){var r=a.tag;if(r===5||r===26||r===27||r===6)return a;for(a=a.child;a!==null;){if(a.tag!==4&&(r=M(a),r!==null))return r;a=a.sibling}return null}function O(a){return a===null||typeof a!="object"?null:(a=zd&&a[zd]||a["@@iterator"],typeof a=="function"?a:null)}function B(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===zf?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case Pf:return"Fragment";case fx:return"Profiler";case x1:return"StrictMode";case E1:return"Suspense";case px:return"SuspenseList";case Dm:return"Activity"}if(typeof a=="object")switch(typeof a.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),a.$$typeof){case Cu:return"Portal";case ji:return a.displayName||"Context";case jd:return(a._context.displayName||"Context")+".Consumer";case Ba:var r=a.render;return a=a.displayName,a||(a=r.displayName||r.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case jf:return r=a.displayName||null,r!==null?r:B(a.type)||"Memo";case Is:r=a._payload,a=a._init;try{return B(a(r))}catch{}}return null}function L(a){var r=a.type;switch(a.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(r._context.displayName||"Context")+".Consumer";case 10:return r.displayName||"Context";case 18:return"DehydratedFragment";case 11:return a=r.render,a=a.displayName||a.name||"",r.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(r);case 8:return r===x1?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;break;case 29:if(r=a._debugInfo,r!=null){for(var g=r.length-1;0<=g;g--)if(typeof r[g].name=="string")return r[g].name}if(a.return!==null)return L(a.return)}return null}function I(a){return{current:a}}function F(a,r){0>Ae?console.error("Unexpected pop."):(r!==ne[Ae]&&console.error("Unexpected Fiber popped."),a.current=Xt[Ae],Xt[Ae]=null,ne[Ae]=null,Ae--)}function H(a,r,g){Ae++,Xt[Ae]=a.current,ne[Ae]=g,a.current=r}function W(a){return a>>>=0,a===0?32:31-(Hd(a)/At|0)|0}function Z(a){var r=a&42;if(r!==0)return r;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),a}}function X(a,r,g){var D=a.pendingLanes;if(D===0)return 0;var z=0,k=a.suspendedLanes,Y=a.pingedLanes;a=a.warmLanes;var J=D&134217727;return J!==0?(D=J&~k,D!==0?z=Z(D):(Y&=J,Y!==0?z=Z(Y):g||(g=J&~a,g!==0&&(z=Z(g))))):(J=D&~k,J!==0?z=Z(J):Y!==0?z=Z(Y):g||(g=D&~a,g!==0&&(z=Z(g)))),z===0?0:r!==0&&r!==z&&!(r&k)&&(k=z&-z,g=r&-r,k>=g||k===32&&(g&4194048)!==0)?r:z}function $(a,r){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&r)===0}function nt(a,r){switch(a){case 1:case 2:case 4:case 8:case 64:return r+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Q(){var a=Kt;return Kt<<=1,!(Kt&62914560)&&(Kt=4194304),a}function tt(a){for(var r=[],g=0;31>g;g++)r.push(a);return r}function rt(a,r){a.pendingLanes|=r,r!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function ut(a,r,g,D,z,k){var Y=a.pendingLanes;a.pendingLanes=g,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=g,a.entangledLanes&=g,a.errorRecoveryDisabledLanes&=g,a.shellSuspendCounter=0;var J=a.entanglements,ct=a.expirationTimes,vt=a.hiddenUpdates;for(g=Y&~g;0<g;){var Mt=31-da(g),Nt=1<<Mt;J[Mt]=0,ct[Mt]=-1;var kt=vt[Mt];if(kt!==null)for(vt[Mt]=null,Mt=0;Mt<kt.length;Mt++){var _e=kt[Mt];_e!==null&&(_e.lane&=-536870913)}g&=~Nt}D!==0&&st(a,D,0),k!==0&&z===0&&a.tag!==0&&(a.suspendedLanes|=k&~(Y&~r))}function st(a,r,g){a.pendingLanes|=r,a.suspendedLanes&=~r;var D=31-da(r);a.entangledLanes|=r,a.entanglements[D]=a.entanglements[D]|1073741824|g&261930}function ot(a,r){var g=a.entangledLanes|=r;for(a=a.entanglements;g;){var D=31-da(g),z=1<<D;z&r|a[D]&r&&(a[D]|=r),g&=~z}}function dt(a,r){var g=r&-r;return g=g&42?1:pt(g),g&(a.suspendedLanes|r)?0:g}function pt(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function it(a,r,g){if(wc)for(a=a.pendingUpdatersLaneMap;0<g;){var D=31-da(g),z=1<<D;a[D].add(r),g&=~z}}function lt(a,r){if(wc)for(var g=a.pendingUpdatersLaneMap,D=a.memoizedUpdaters;0<r;){var z=31-da(r);a=1<<z,z=g[z],0<z.size&&(z.forEach(function(k){var Y=k.alternate;Y!==null&&D.has(Y)||D.add(k)}),z.clear()),r&=~a}}function ht(a){return a&=-a,2<a?8<a?a&134217727?32:268435456:8:2}function St(a){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var r=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(r.isDisabled)return!0;if(!r.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{K1=r.inject(a),Vs=r}catch(g){console.error("React instrumentation encountered an error: %o.",g)}return!!r.checkDCE}function _t(a){if(typeof ZU=="function"&&JU(a),Vs&&typeof Vs.setStrictMode=="function")try{Vs.setStrictMode(K1,a)}catch(r){Rc||(Rc=!0,console.error("React instrumentation encountered an error: %o",r))}}function bt(a,r){return a===r&&(a!==0||1/a===1/r)||a!==a&&r!==r}function yt(a){for(var r=0,g=0;g<a.length;g++){var D=a[g];if(typeof D=="object"&&D!==null)if(Wi(D)&&D.length===2&&typeof D[0]=="string"){if(r!==0&&r!==3)return 1;r=3}else return 1;else{if(typeof D=="function"||typeof D=="string"&&50<D.length||r!==0&&r!==2)return 1;r=2}}return r}function Tt(a,r,g,D){for(var z in a)o8.call(a,z)&&z[0]!=="_"&&wt(z,a[z],r,g,D)}function wt(a,r,g,D,z){switch(typeof r){case"object":if(r===null){r="null";break}else{if(r.$$typeof===Au){var k=B(r.type)||"…",Y=r.key;r=r.props;var J=Object.keys(r),ct=J.length;if(Y==null&&ct===0){r="<"+k+" />";break}if(3>D||ct===1&&J[0]==="children"&&Y==null){r="<"+k+" … />";break}g.push([z+"  ".repeat(D)+a,"<"+k]),Y!==null&&wt("key",Y,g,D+1,z),a=!1;for(var vt in r)vt==="children"?r.children!=null&&(!Wi(r.children)||0<r.children.length)&&(a=!0):o8.call(r,vt)&&vt[0]!=="_"&&wt(vt,r[vt],g,D+1,z);g.push(["",a?">…</"+k+">":"/>"]);return}if(k=Object.prototype.toString.call(r),k=k.slice(8,k.length-1),k==="Array"){if(vt=yt(r),vt===2||vt===0){r=JSON.stringify(r);break}else if(vt===3){for(g.push([z+"  ".repeat(D)+a,""]),a=0;a<r.length;a++)k=r[a],wt(k[0],k[1],g,D+1,z);return}}if(k==="Promise"){if(r.status==="fulfilled"){if(k=g.length,wt(a,r.value,g,D,z),g.length>k){g=g[k],g[1]="Promise<"+(g[1]||"Object")+">";return}}else if(r.status==="rejected"&&(k=g.length,wt(a,r.reason,g,D,z),g.length>k)){g=g[k],g[1]="Rejected Promise<"+g[1]+">";return}g.push(["  ".repeat(D)+a,"Promise"]);return}k==="Object"&&(vt=Object.getPrototypeOf(r))&&typeof vt.constructor=="function"&&(k=vt.constructor.name),g.push([z+"  ".repeat(D)+a,k==="Object"?3>D?"":"…":k]),3>D&&Tt(r,g,D+1,z);return}case"function":r=r.name===""?"() => {}":r.name+"() {}";break;case"string":r=r==="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects."?"…":JSON.stringify(r);break;case"undefined":r="undefined";break;case"boolean":r=r?"true":"false";break;default:r=String(r)}g.push([z+"  ".repeat(D)+a,r])}function It(a,r,g,D){var z=!0;for(Y in a)Y in r||(g.push(["– "+"  ".repeat(D)+Y,"…"]),z=!1);for(var k in r)if(k in a){var Y=a[k],J=r[k];if(Y!==J){if(D===0&&k==="children")z="  ".repeat(D)+k,g.push(["– "+z,"…"],["+ "+z,"…"]);else{if(!(3<=D)){if(typeof Y=="object"&&typeof J=="object"&&Y!==null&&J!==null&&Y.$$typeof===J.$$typeof)if(J.$$typeof===Au){if(Y.type===J.type&&Y.key===J.key){Y=B(J.type)||"…",z="  ".repeat(D)+k,Y="<"+Y+" … />",g.push(["– "+z,Y],["+ "+z,Y]),z=!1;continue}}else{var ct=Object.prototype.toString.call(Y),vt=Object.prototype.toString.call(J);if(ct===vt&&(vt==="[object Object]"||vt==="[object Array]")){ct=["  "+"  ".repeat(D)+k,vt==="[object Array]"?"Array":""],g.push(ct),vt=g.length,It(Y,J,g,D+1)?vt===g.length&&(ct[1]="Referentially unequal but deeply equal objects. Consider memoization."):z=!1;continue}}else if(typeof Y=="function"&&typeof J=="function"&&Y.name===J.name&&Y.length===J.length&&(ct=Function.prototype.toString.call(Y),vt=Function.prototype.toString.call(J),ct===vt)){Y=J.name===""?"() => {}":J.name+"() {}",g.push(["  "+"  ".repeat(D)+k,Y+" Referentially unequal function closure. Consider memoization."]);continue}}wt(k,Y,g,D,"– "),wt(k,J,g,D,"+ ")}z=!1}}else g.push(["+ "+"  ".repeat(D)+k,"…"]),z=!1;return z}function Ft(a){hn=a&63?"Blocking":a&64?"Gesture":a&4194176?"Transition":a&62914560?"Suspense":a&2080374784?"Idle":"Other"}function $t(a,r,g,D){fi&&(qf.start=r,qf.end=g,Gd.color="warning",Gd.tooltipText=D,Gd.properties=null,(a=a._debugTask)?a.run(performance.measure.bind(performance,D,qf)):performance.measure(D,qf))}function Jt(a,r,g){$t(a,r,g,"Reconnect")}function we(a,r,g,D,z){var k=L(a);if(k!==null&&fi){var Y=a.alternate,J=a.actualDuration;if(Y===null||Y.child!==a.child)for(var ct=a.child;ct!==null;ct=ct.sibling)J-=ct.actualDuration;D=.5>J?D?"tertiary-light":"primary-light":10>J?D?"tertiary":"primary":100>J?D?"tertiary-dark":"primary-dark":"error";var vt=a.memoizedProps;J=a._debugTask,vt!==null&&Y!==null&&Y.memoizedProps!==vt?(ct=[eH],vt=It(Y.memoizedProps,vt,ct,0),1<ct.length&&(vt&&!Xf&&!(Y.lanes&z)&&100<a.actualDuration?(Xf=!0,ct[0]=nH,Gd.color="warning",Gd.tooltipText="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner."):(Gd.color=D,Gd.tooltipText=k),Gd.properties=ct,qf.start=r,qf.end=g,J!=null?J.run(performance.measure.bind(performance,"​"+k,qf)):performance.measure("​"+k,qf))):J!=null?J.run(console.timeStamp.bind(console,k,r,g,"Components ⚛",void 0,D)):console.timeStamp(k,r,g,"Components ⚛",void 0,D)}}function ze(a,r,g,D){if(fi){var z=L(a);if(z!==null){for(var k=null,Y=[],J=0;J<D.length;J++){var ct=D[J];k==null&&ct.source!==null&&(k=ct.source._debugTask),ct=ct.value,Y.push(["Error",typeof ct=="object"&&ct!==null&&typeof ct.message=="string"?String(ct.message):String(ct)])}a.key!==null&&wt("key",a.key,Y,0,""),a.memoizedProps!==null&&Tt(a.memoizedProps,Y,0,""),k==null&&(k=a._debugTask),a={start:r,end:g,detail:{devtools:{color:"error",track:"Components ⚛",tooltipText:a.tag===13?"Hydration failed":"Error boundary caught an error",properties:Y}}},k?k.run(performance.measure.bind(performance,"​"+z,a)):performance.measure("​"+z,a)}}}function Se(a,r,g,D,z){if(z!==null){if(fi){var k=L(a);if(k!==null){D=[];for(var Y=0;Y<z.length;Y++){var J=z[Y].value;D.push(["Error",typeof J=="object"&&J!==null&&typeof J.message=="string"?String(J.message):String(J)])}a.key!==null&&wt("key",a.key,D,0,""),a.memoizedProps!==null&&Tt(a.memoizedProps,D,0,""),r={start:r,end:g,detail:{devtools:{color:"error",track:"Components ⚛",tooltipText:"A lifecycle or effect errored",properties:D}}},(a=a._debugTask)?a.run(performance.measure.bind(performance,"​"+k,r)):performance.measure("​"+k,r)}}}else k=L(a),k!==null&&fi&&(z=1>D?"secondary-light":100>D?"secondary":500>D?"secondary-dark":"error",(a=a._debugTask)?a.run(console.timeStamp.bind(console,k,r,g,"Components ⚛",void 0,z)):console.timeStamp(k,r,g,"Components ⚛",void 0,z))}function Te(a,r,g,D){if(fi&&!(r<=a)){var z=(g&738197653)===g?"tertiary-dark":"primary-dark";g=(g&536870912)===g?"Prepared":(g&201326741)===g?"Hydrated":"Render",D?D.run(console.timeStamp.bind(console,g,a,r,hn,"Scheduler ⚛",z)):console.timeStamp(g,a,r,hn,"Scheduler ⚛",z)}}function pn(a,r,g,D){!fi||r<=a||(g=(g&738197653)===g?"tertiary-dark":"primary-dark",D?D.run(console.timeStamp.bind(console,"Prewarm",a,r,hn,"Scheduler ⚛",g)):console.timeStamp("Prewarm",a,r,hn,"Scheduler ⚛",g))}function Mn(a,r,g,D){!fi||r<=a||(g=(g&738197653)===g?"tertiary-dark":"primary-dark",D?D.run(console.timeStamp.bind(console,"Suspended",a,r,hn,"Scheduler ⚛",g)):console.timeStamp("Suspended",a,r,hn,"Scheduler ⚛",g))}function zt(a,r,g,D,z,k){if(fi&&!(r<=a)){g=[];for(var Y=0;Y<D.length;Y++){var J=D[Y].value;g.push(["Recoverable Error",typeof J=="object"&&J!==null&&typeof J.message=="string"?String(J.message):String(J)])}a={start:a,end:r,detail:{devtools:{color:"primary-dark",track:hn,trackGroup:"Scheduler ⚛",tooltipText:z?"Hydration Failed":"Recovered after Error",properties:g}}},k?k.run(performance.measure.bind(performance,"Recovered",a)):performance.measure("Recovered",a)}}function te(a,r,g,D){!fi||r<=a||(D?D.run(console.timeStamp.bind(console,"Errored",a,r,hn,"Scheduler ⚛","error")):console.timeStamp("Errored",a,r,hn,"Scheduler ⚛","error"))}function pe(a,r,g,D){!fi||r<=a||(D?D.run(console.timeStamp.bind(console,g,a,r,hn,"Scheduler ⚛","secondary-light")):console.timeStamp(g,a,r,hn,"Scheduler ⚛","secondary-light"))}function Lt(a,r,g,D,z){if(fi&&!(r<=a)){for(var k=[],Y=0;Y<g.length;Y++){var J=g[Y].value;k.push(["Error",typeof J=="object"&&J!==null&&typeof J.message=="string"?String(J.message):String(J)])}a={start:a,end:r,detail:{devtools:{color:"error",track:hn,trackGroup:"Scheduler ⚛",tooltipText:D?"Remaining Effects Errored":"Commit Errored",properties:k}}},z?z.run(performance.measure.bind(performance,"Errored",a)):performance.measure("Errored",a)}}function Yt(){}function ee(){if(Tx===0){S7=console.log,x7=console.info,E7=console.warn,T7=console.error,A7=console.group,C7=console.groupCollapsed,R7=console.groupEnd;var a={configurable:!0,enumerable:!0,value:Yt,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}Tx++}function Be(){if(Tx--,Tx===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Dn({},a,{value:S7}),info:Dn({},a,{value:x7}),warn:Dn({},a,{value:E7}),error:Dn({},a,{value:T7}),group:Dn({},a,{value:A7}),groupCollapsed:Dn({},a,{value:C7}),groupEnd:Dn({},a,{value:R7})})}0>Tx&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Ke(a){var r=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,a=a.stack,Error.prepareStackTrace=r,a.startsWith(`Error: react-stack-top-frame
94
94
  `)&&(a=a.slice(29)),r=a.indexOf(`
95
95
  `),r!==-1&&(a=a.slice(r+1)),r=a.indexOf("react_stack_bottom_frame"),r!==-1&&(r=a.lastIndexOf(`
96
96
  `,r)),r!==-1)a=a.slice(0,r);else return"";return a}function Gt(a){if(l8===void 0)try{throw Error()}catch(g){var r=g.stack.trim().match(/\n( *(at )?)/);l8=r&&r[1]||"",w7=-1<g.stack.indexOf(`
97
97
  at`)?" (<anonymous>)":-1<g.stack.indexOf("@")?"@unknown:0:0":""}return`
98
- `+l8+a+w7}function ie(a,r){if(!a||u8)return"";var g=c8.get(a);if(g!==void 0)return g;u8=!0,g=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var D=null;D=Ct.H,Ct.H=null,ee();try{var z={DetermineComponentFrameRoot:function(){try{if(r){var Bt=function(){throw Error()};if(Object.defineProperty(Bt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Bt,[])}catch(Pe){var _e=Pe}Reflect.construct(a,[],Bt)}else{try{Bt.call()}catch(Pe){_e=Pe}a.call(Bt.prototype)}}else{try{throw Error()}catch(Pe){_e=Pe}(Bt=a())&&typeof Bt.catch=="function"&&Bt.catch(function(){})}}catch(Pe){if(Pe&&_e&&typeof Pe.stack=="string")return[Pe.stack,_e.stack]}return[null,null]}};z.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var k=Object.getOwnPropertyDescriptor(z.DetermineComponentFrameRoot,"name");k&&k.configurable&&Object.defineProperty(z.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var Y=z.DetermineComponentFrameRoot(),J=Y[0],ct=Y[1];if(J&&ct){var vt=J.split(`
98
+ `+l8+a+w7}function ie(a,r){if(!a||u8)return"";var g=c8.get(a);if(g!==void 0)return g;u8=!0,g=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var D=null;D=Ct.H,Ct.H=null,ee();try{var z={DetermineComponentFrameRoot:function(){try{if(r){var kt=function(){throw Error()};if(Object.defineProperty(kt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(kt,[])}catch(Pe){var _e=Pe}Reflect.construct(a,[],kt)}else{try{kt.call()}catch(Pe){_e=Pe}a.call(kt.prototype)}}else{try{throw Error()}catch(Pe){_e=Pe}(kt=a())&&typeof kt.catch=="function"&&kt.catch(function(){})}}catch(Pe){if(Pe&&_e&&typeof Pe.stack=="string")return[Pe.stack,_e.stack]}return[null,null]}};z.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var k=Object.getOwnPropertyDescriptor(z.DetermineComponentFrameRoot,"name");k&&k.configurable&&Object.defineProperty(z.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var Y=z.DetermineComponentFrameRoot(),J=Y[0],ct=Y[1];if(J&&ct){var vt=J.split(`
99
99
  `),Mt=ct.split(`
100
100
  `);for(Y=k=0;k<vt.length&&!vt[k].includes("DetermineComponentFrameRoot");)k++;for(;Y<Mt.length&&!Mt[Y].includes("DetermineComponentFrameRoot");)Y++;if(k===vt.length||Y===Mt.length)for(k=vt.length-1,Y=Mt.length-1;1<=k&&0<=Y&&vt[k]!==Mt[Y];)Y--;for(;1<=k&&0<=Y;k--,Y--)if(vt[k]!==Mt[Y]){if(k!==1||Y!==1)do if(k--,Y--,0>Y||vt[k]!==Mt[Y]){var Nt=`
101
101
  `+vt[k].replace(" at new "," at ");return a.displayName&&Nt.includes("<anonymous>")&&(Nt=Nt.replace("<anonymous>",a.displayName)),typeof a=="function"&&c8.set(a,Nt),Nt}while(1<=k&&0<=Y);break}}}finally{u8=!1,Ct.H=D,Be(),Error.prepareStackTrace=g}return vt=(vt=a?a.displayName||a.name:"")?Gt(vt):"",typeof a=="function"&&c8.set(a,vt),vt}function ue(a,r){switch(a.tag){case 26:case 27:case 5:return Gt(a.type);case 16:return Gt("Lazy");case 13:return a.child!==r&&r!==null?Gt("Suspense Fallback"):Gt("Suspense");case 19:return Gt("SuspenseList");case 0:case 15:return ie(a.type,!1);case 11:return ie(a.type.render,!1);case 1:return ie(a.type,!0);case 31:return Gt("Activity");default:return""}}function wn(a){try{var r="",g=null;do{r+=ue(a,g);var D=a._debugInfo;if(D)for(var z=D.length-1;0<=z;z--){var k=D[z];if(typeof k.name=="string"){var Y=r;t:{var J=k.name,ct=k.env,vt=k.debugLocation;if(vt!=null){var Mt=Ke(vt),Nt=Mt.lastIndexOf(`
102
- `),Bt=Nt===-1?Mt:Mt.slice(Nt+1);if(Bt.indexOf(J)!==-1){var _e=`
103
- `+Bt;break t}}_e=Gt(J+(ct?" ["+ct+"]":""))}r=Y+_e}}g=a,a=a.return}while(a);return r}catch(Pe){return`
102
+ `),kt=Nt===-1?Mt:Mt.slice(Nt+1);if(kt.indexOf(J)!==-1){var _e=`
103
+ `+kt;break t}}_e=Gt(J+(ct?" ["+ct+"]":""))}r=Y+_e}}g=a,a=a.return}while(a);return r}catch(Pe){return`
104
104
  Error generating stack: `+Pe.message+`
105
- `+Pe.stack}}function re(a){return(a=a?a.displayName||a.name:"")?Gt(a):""}function me(a,r){if(typeof a=="object"&&a!==null){var g=d8.get(a);return g!==void 0?g:(r={value:a,source:r,stack:wn(r)},d8.set(a,r),r)}return{value:a,source:r,stack:wn(r)}}function On(a,r){ye(),X1[q1++]=Ax,X1[q1++]=r4,r4=a,Ax=r}function Nn(a,r,g){ye(),Rl[wl++]=Vd,Rl[wl++]=Yd,Rl[wl++]=Fm,Fm=a;var D=Vd;a=Yd;var z=32-da(D)-1;D&=~(1<<z),g+=1;var k=32-da(r)+z;if(30<k){var Y=z-z%5;k=(D&(1<<Y)-1).toString(32),D>>=Y,z-=Y,Vd=1<<32-da(r)+z|g<<z|D,Yd=k+a}else Vd=1<<k|g<<z|D,Yd=a}function la(a){ye(),a.return!==null&&(On(a,1),Nn(a,1,0))}function kt(a){for(;a===r4;)r4=X1[--q1],X1[q1]=null,Ax=X1[--q1],X1[q1]=null;for(;a===Fm;)Fm=Rl[--wl],Rl[wl]=null,Yd=Rl[--wl],Rl[wl]=null,Vd=Rl[--wl],Rl[wl]=null}function Qt(){return ye(),Fm!==null?{id:Vd,overflow:Yd}:null}function de(a,r){ye(),Rl[wl++]=Vd,Rl[wl++]=Yd,Rl[wl++]=Fm,Vd=r.id,Yd=r.overflow,Fm=a}function ye(){un||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Xe(a){return a===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),a}function Bn(a,r){H(Wf,r,a),H(Cx,a,a),H(Qf,null,a),r=Sl(r),F(Qf,a),H(Qf,r,a)}function jt(a){F(Qf,a),F(Cx,a),F(Wf,a)}function qt(){return Xe(Qf.current)}function se(a){a.memoizedState!==null&&H(o4,a,a);var r=Xe(Qf.current),g=ka(r,a.type);r!==g&&(H(Cx,a,a),H(Qf,g,a))}function Oe(a){Cx.current===a&&(F(Qf,a),F(Cx,a)),o4.current===a&&(F(o4,a),xs?jr._currentValue=Pr:jr._currentValue2=Pr)}function fe(a,r){return a.serverProps===void 0&&a.serverTail.length===0&&a.children.length===1&&3<a.distanceFromLeaf&&a.distanceFromLeaf>15-r?fe(a.children[0],r):a}function Ce(a){return" "+" ".repeat(a)}function Gn(a){return"+ "+" ".repeat(a)}function Xa(a){return"- "+" ".repeat(a)}function el(a){switch(a.tag){case 26:case 27:case 5:return a.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return a=a.type,a.displayName||a.name||null;case 11:return a=a.type.render,a.displayName||a.name||null;case 1:return a=a.type,a.displayName||a.name||null;default:return null}}function ou(a,r){return D7.test(a)?(a=JSON.stringify(a),a.length>r-2?8>r?'{"..."}':"{"+a.slice(0,r-7)+'..."}':"{"+a+"}"):a.length>r?5>r?'{"..."}':a.slice(0,r-3)+"...":a}function nl(a,r,g){var D=120-2*g;if(r===null)return Gn(g)+ou(a,D)+`
105
+ `+Pe.stack}}function re(a){return(a=a?a.displayName||a.name:"")?Gt(a):""}function me(a,r){if(typeof a=="object"&&a!==null){var g=d8.get(a);return g!==void 0?g:(r={value:a,source:r,stack:wn(r)},d8.set(a,r),r)}return{value:a,source:r,stack:wn(r)}}function On(a,r){ye(),X1[q1++]=Ax,X1[q1++]=r4,r4=a,Ax=r}function Nn(a,r,g){ye(),Rl[wl++]=Vd,Rl[wl++]=Yd,Rl[wl++]=Fm,Fm=a;var D=Vd;a=Yd;var z=32-da(D)-1;D&=~(1<<z),g+=1;var k=32-da(r)+z;if(30<k){var Y=z-z%5;k=(D&(1<<Y)-1).toString(32),D>>=Y,z-=Y,Vd=1<<32-da(r)+z|g<<z|D,Yd=k+a}else Vd=1<<k|g<<z|D,Yd=a}function la(a){ye(),a.return!==null&&(On(a,1),Nn(a,1,0))}function Bt(a){for(;a===r4;)r4=X1[--q1],X1[q1]=null,Ax=X1[--q1],X1[q1]=null;for(;a===Fm;)Fm=Rl[--wl],Rl[wl]=null,Yd=Rl[--wl],Rl[wl]=null,Vd=Rl[--wl],Rl[wl]=null}function Qt(){return ye(),Fm!==null?{id:Vd,overflow:Yd}:null}function de(a,r){ye(),Rl[wl++]=Vd,Rl[wl++]=Yd,Rl[wl++]=Fm,Vd=r.id,Yd=r.overflow,Fm=a}function ye(){un||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Xe(a){return a===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),a}function Bn(a,r){H(Wf,r,a),H(Cx,a,a),H(Qf,null,a),r=Sl(r),F(Qf,a),H(Qf,r,a)}function jt(a){F(Qf,a),F(Cx,a),F(Wf,a)}function qt(){return Xe(Qf.current)}function se(a){a.memoizedState!==null&&H(o4,a,a);var r=Xe(Qf.current),g=ka(r,a.type);r!==g&&(H(Cx,a,a),H(Qf,g,a))}function Oe(a){Cx.current===a&&(F(Qf,a),F(Cx,a)),o4.current===a&&(F(o4,a),xs?jr._currentValue=Pr:jr._currentValue2=Pr)}function fe(a,r){return a.serverProps===void 0&&a.serverTail.length===0&&a.children.length===1&&3<a.distanceFromLeaf&&a.distanceFromLeaf>15-r?fe(a.children[0],r):a}function Ce(a){return" "+" ".repeat(a)}function Gn(a){return"+ "+" ".repeat(a)}function Xa(a){return"- "+" ".repeat(a)}function el(a){switch(a.tag){case 26:case 27:case 5:return a.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return a=a.type,a.displayName||a.name||null;case 11:return a=a.type.render,a.displayName||a.name||null;case 1:return a=a.type,a.displayName||a.name||null;default:return null}}function ou(a,r){return D7.test(a)?(a=JSON.stringify(a),a.length>r-2?8>r?'{"..."}':"{"+a.slice(0,r-7)+'..."}':"{"+a+"}"):a.length>r?5>r?'{"..."}':a.slice(0,r-3)+"...":a}function nl(a,r,g){var D=120-2*g;if(r===null)return Gn(g)+ou(a,D)+`
106
106
  `;if(typeof r=="string"){for(var z=0;z<r.length&&z<a.length&&r.charCodeAt(z)===a.charCodeAt(z);z++);return z>D-8&&10<z&&(a="..."+a.slice(z-8),r="..."+r.slice(z-8)),Gn(g)+ou(a,D)+`
107
107
  `+Xa(g)+ou(r,D)+`
108
108
  `}return Ce(g)+ou(a,D)+`
@@ -121,7 +121,7 @@ Error generating stack: `+Pe.message+`
121
121
  `:(z+=Gn(D+1)+Y+"="+Mt+`
122
122
  `,z+=Xa(D+1)+Y+"="+J+`
123
123
  `)}else z+=Ce(D+1)+Y+"="+qa(r[Y],J)+`
124
- `}k.forEach(function(Nt){if(Nt!=="children"){var Bt=120-2*(D+1)-Nt.length-1;z+=Xa(D+1)+Nt+"="+qa(g[Nt],Bt)+`
124
+ `}k.forEach(function(Nt){if(Nt!=="children"){var kt=120-2*(D+1)-Nt.length-1;z+=Xa(D+1)+Nt+"="+qa(g[Nt],kt)+`
125
125
  `}}),z=z===""?Ce(D)+"<"+a+`>
126
126
  `:Ce(D)+"<"+a+`
127
127
  `+z+Ce(D)+`>
@@ -164,9 +164,9 @@ It can also happen if the client has a browser extension installed which messes
164
164
  root.render(%s)`,r,r,r):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
165
165
  <%s>{%s}</%s>`,r,r,g,r,g))}function X0(a,r){var g=Ey();g!==null?g.run(Ty.bind(null,a,r)):Ty(a,r)}function E2(a,r){var g=L(a)||"Component";Z7[g]||(Z7[g]=!0,r=String(r),a.tag===3?console.error(`Symbols are not valid as a React child.
166
166
  root.render(%s)`,r):console.error(`Symbols are not valid as a React child.
167
- <%s>%s</%s>`,g,r,g))}function cl(a,r){var g=Ey();g!==null?g.run(E2.bind(null,a,r)):E2(a,r)}function q0(a){function r(mt,gt){if(a){var xt=mt.deletions;xt===null?(mt.deletions=[gt],mt.flags|=16):xt.push(gt)}}function g(mt,gt){if(!a)return null;for(;gt!==null;)r(mt,gt),gt=gt.sibling;return null}function D(mt){for(var gt=new Map;mt!==null;)mt.key!==null?gt.set(mt.key,mt):gt.set(mt.index,mt),mt=mt.sibling;return gt}function z(mt,gt){return mt=Tu(mt,gt),mt.index=0,mt.sibling=null,mt}function k(mt,gt,xt){return mt.index=xt,a?(xt=mt.alternate,xt!==null?(xt=xt.index,xt<gt?(mt.flags|=67108866,gt):xt):(mt.flags|=67108866,gt)):(mt.flags|=1048576,gt)}function Y(mt){return a&&mt.alternate===null&&(mt.flags|=67108866),mt}function J(mt,gt,xt,Pt){return gt===null||gt.tag!==6?(gt=b1(xt,mt.mode,Pt),gt.return=mt,gt._debugOwner=mt,gt._debugTask=mt._debugTask,gt._debugInfo=qe,gt):(gt=z(gt,xt),gt.return=mt,gt._debugInfo=qe,gt)}function ct(mt,gt,xt,Pt){var ae=xt.type;return ae===Pf?(gt=Mt(mt,gt,xt.props.children,Pt,xt.key),rc(xt,gt,mt),gt):gt!==null&&(gt.elementType===ae||hx(gt,xt)||typeof ae=="object"&&ae!==null&&ae.$$typeof===Is&&pu(ae)===gt.type)?(gt=z(gt,xt.props),oc(gt,xt),gt.return=mt,gt._debugOwner=xt._owner,gt._debugInfo=qe,gt):(gt=_1(xt,mt.mode,Pt),oc(gt,xt),gt.return=mt,gt._debugInfo=qe,gt)}function vt(mt,gt,xt,Pt){return gt===null||gt.tag!==4||gt.stateNode.containerInfo!==xt.containerInfo||gt.stateNode.implementation!==xt.implementation?(gt=Cm(xt,mt.mode,Pt),gt.return=mt,gt._debugInfo=qe,gt):(gt=z(gt,xt.children||[]),gt.return=mt,gt._debugInfo=qe,gt)}function Mt(mt,gt,xt,Pt,ae){return gt===null||gt.tag!==7?(gt=yc(xt,mt.mode,Pt,ae),gt.return=mt,gt._debugOwner=mt,gt._debugTask=mt._debugTask,gt._debugInfo=qe,gt):(gt=z(gt,xt),gt.return=mt,gt._debugInfo=qe,gt)}function Nt(mt,gt,xt){if(typeof gt=="string"&&gt!==""||typeof gt=="number"||typeof gt=="bigint")return gt=b1(""+gt,mt.mode,xt),gt.return=mt,gt._debugOwner=mt,gt._debugTask=mt._debugTask,gt._debugInfo=qe,gt;if(typeof gt=="object"&&gt!==null){switch(gt.$$typeof){case Au:return xt=_1(gt,mt.mode,xt),oc(xt,gt),xt.return=mt,mt=La(gt._debugInfo),xt._debugInfo=qe,qe=mt,xt;case Cu:return gt=Cm(gt,mt.mode,xt),gt.return=mt,gt._debugInfo=qe,gt;case Is:var Pt=La(gt._debugInfo);return gt=pu(gt),mt=Nt(mt,gt,xt),qe=Pt,mt}if(Wi(gt)||O(gt))return xt=yc(gt,mt.mode,xt,null),xt.return=mt,xt._debugOwner=mt,xt._debugTask=mt._debugTask,mt=La(gt._debugInfo),xt._debugInfo=qe,qe=mt,xt;if(typeof gt.then=="function")return Pt=La(gt._debugInfo),mt=Nt(mt,mf(gt),xt),qe=Pt,mt;if(gt.$$typeof===ji)return Nt(mt,df(mt,gt),xt);K0(mt,gt)}return typeof gt=="function"&&X0(mt,gt),typeof gt=="symbol"&&cl(mt,gt),null}function Bt(mt,gt,xt,Pt){var ae=gt!==null?gt.key:null;if(typeof xt=="string"&&xt!==""||typeof xt=="number"||typeof xt=="bigint")return ae!==null?null:J(mt,gt,""+xt,Pt);if(typeof xt=="object"&&xt!==null){switch(xt.$$typeof){case Au:return xt.key===ae?(ae=La(xt._debugInfo),mt=ct(mt,gt,xt,Pt),qe=ae,mt):null;case Cu:return xt.key===ae?vt(mt,gt,xt,Pt):null;case Is:return ae=La(xt._debugInfo),xt=pu(xt),mt=Bt(mt,gt,xt,Pt),qe=ae,mt}if(Wi(xt)||O(xt))return ae!==null?null:(ae=La(xt._debugInfo),mt=Mt(mt,gt,xt,Pt,null),qe=ae,mt);if(typeof xt.then=="function")return ae=La(xt._debugInfo),mt=Bt(mt,gt,mf(xt),Pt),qe=ae,mt;if(xt.$$typeof===ji)return Bt(mt,gt,df(mt,xt),Pt);K0(mt,xt)}return typeof xt=="function"&&X0(mt,xt),typeof xt=="symbol"&&cl(mt,xt),null}function _e(mt,gt,xt,Pt,ae){if(typeof Pt=="string"&&Pt!==""||typeof Pt=="number"||typeof Pt=="bigint")return mt=mt.get(xt)||null,J(gt,mt,""+Pt,ae);if(typeof Pt=="object"&&Pt!==null){switch(Pt.$$typeof){case Au:return xt=mt.get(Pt.key===null?xt:Pt.key)||null,mt=La(Pt._debugInfo),gt=ct(gt,xt,Pt,ae),qe=mt,gt;case Cu:return mt=mt.get(Pt.key===null?xt:Pt.key)||null,vt(gt,mt,Pt,ae);case Is:var bn=La(Pt._debugInfo);return Pt=pu(Pt),gt=_e(mt,gt,xt,Pt,ae),qe=bn,gt}if(Wi(Pt)||O(Pt))return xt=mt.get(xt)||null,mt=La(Pt._debugInfo),gt=Mt(gt,xt,Pt,ae,null),qe=mt,gt;if(typeof Pt.then=="function")return bn=La(Pt._debugInfo),gt=_e(mt,gt,xt,mf(Pt),ae),qe=bn,gt;if(Pt.$$typeof===ji)return _e(mt,gt,xt,df(gt,Pt),ae);K0(gt,Pt)}return typeof Pt=="function"&&X0(gt,Pt),typeof Pt=="symbol"&&cl(gt,Pt),null}function Pe(mt,gt,xt,Pt){if(typeof xt!="object"||xt===null)return Pt;switch(xt.$$typeof){case Au:case Cu:x(mt,gt,xt);var ae=xt.key;if(typeof ae!="string")break;if(Pt===null){Pt=new Set,Pt.add(ae);break}if(!Pt.has(ae)){Pt.add(ae);break}oe(gt,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",ae)});break;case Is:xt=pu(xt),Pe(mt,gt,xt,Pt)}return Pt}function Yn(mt,gt,xt,Pt){for(var ae=null,bn=null,Le=null,Ie=gt,Ge=gt=0,pi=null;Ie!==null&&Ge<xt.length;Ge++){Ie.index>Ge?(pi=Ie,Ie=null):pi=Ie.sibling;var fa=Bt(mt,Ie,xt[Ge],Pt);if(fa===null){Ie===null&&(Ie=pi);break}ae=Pe(mt,fa,xt[Ge],ae),a&&Ie&&fa.alternate===null&&r(mt,Ie),gt=k(fa,gt,Ge),Le===null?bn=fa:Le.sibling=fa,Le=fa,Ie=pi}if(Ge===xt.length)return g(mt,Ie),un&&On(mt,Ge),bn;if(Ie===null){for(;Ge<xt.length;Ge++)Ie=Nt(mt,xt[Ge],Pt),Ie!==null&&(ae=Pe(mt,Ie,xt[Ge],ae),gt=k(Ie,gt,Ge),Le===null?bn=Ie:Le.sibling=Ie,Le=Ie);return un&&On(mt,Ge),bn}for(Ie=D(Ie);Ge<xt.length;Ge++)pi=_e(Ie,mt,Ge,xt[Ge],Pt),pi!==null&&(ae=Pe(mt,pi,xt[Ge],ae),a&&pi.alternate!==null&&Ie.delete(pi.key===null?Ge:pi.key),gt=k(pi,gt,Ge),Le===null?bn=pi:Le.sibling=pi,Le=pi);return a&&Ie.forEach(function(ih){return r(mt,ih)}),un&&On(mt,Ge),bn}function g_(mt,gt,xt,Pt){if(xt==null)throw Error("An iterable object provided no iterator.");for(var ae=null,bn=null,Le=gt,Ie=gt=0,Ge=null,pi=null,fa=xt.next();Le!==null&&!fa.done;Ie++,fa=xt.next()){Le.index>Ie?(Ge=Le,Le=null):Ge=Le.sibling;var ih=Bt(mt,Le,fa.value,Pt);if(ih===null){Le===null&&(Le=Ge);break}pi=Pe(mt,ih,fa.value,pi),a&&Le&&ih.alternate===null&&r(mt,Le),gt=k(ih,gt,Ie),bn===null?ae=ih:bn.sibling=ih,bn=ih,Le=Ge}if(fa.done)return g(mt,Le),un&&On(mt,Ie),ae;if(Le===null){for(;!fa.done;Ie++,fa=xt.next())Le=Nt(mt,fa.value,Pt),Le!==null&&(pi=Pe(mt,Le,fa.value,pi),gt=k(Le,gt,Ie),bn===null?ae=Le:bn.sibling=Le,bn=Le);return un&&On(mt,Ie),ae}for(Le=D(Le);!fa.done;Ie++,fa=xt.next())Ge=_e(Le,mt,Ie,fa.value,Pt),Ge!==null&&(pi=Pe(mt,Ge,fa.value,pi),a&&Ge.alternate!==null&&Le.delete(Ge.key===null?Ie:Ge.key),gt=k(Ge,gt,Ie),bn===null?ae=Ge:bn.sibling=Ge,bn=Ge);return a&&Le.forEach(function(vH){return r(mt,vH)}),un&&On(mt,Ie),ae}function ku(mt,gt,xt,Pt){if(typeof xt=="object"&&xt!==null&&xt.type===Pf&&xt.key===null&&(rc(xt,null,mt),xt=xt.props.children),typeof xt=="object"&&xt!==null){switch(xt.$$typeof){case Au:var ae=La(xt._debugInfo);t:{for(var bn=xt.key;gt!==null;){if(gt.key===bn){if(bn=xt.type,bn===Pf){if(gt.tag===7){g(mt,gt.sibling),Pt=z(gt,xt.props.children),Pt.return=mt,Pt._debugOwner=xt._owner,Pt._debugInfo=qe,rc(xt,Pt,mt),mt=Pt;break t}}else if(gt.elementType===bn||hx(gt,xt)||typeof bn=="object"&&bn!==null&&bn.$$typeof===Is&&pu(bn)===gt.type){g(mt,gt.sibling),Pt=z(gt,xt.props),oc(Pt,xt),Pt.return=mt,Pt._debugOwner=xt._owner,Pt._debugInfo=qe,mt=Pt;break t}g(mt,gt);break}else r(mt,gt);gt=gt.sibling}xt.type===Pf?(Pt=yc(xt.props.children,mt.mode,Pt,xt.key),Pt.return=mt,Pt._debugOwner=mt,Pt._debugTask=mt._debugTask,Pt._debugInfo=qe,rc(xt,Pt,mt),mt=Pt):(Pt=_1(xt,mt.mode,Pt),oc(Pt,xt),Pt.return=mt,Pt._debugInfo=qe,mt=Pt)}return mt=Y(mt),qe=ae,mt;case Cu:t:{for(ae=xt,xt=ae.key;gt!==null;){if(gt.key===xt)if(gt.tag===4&&gt.stateNode.containerInfo===ae.containerInfo&&gt.stateNode.implementation===ae.implementation){g(mt,gt.sibling),Pt=z(gt,ae.children||[]),Pt.return=mt,mt=Pt;break t}else{g(mt,gt);break}else r(mt,gt);gt=gt.sibling}Pt=Cm(ae,mt.mode,Pt),Pt.return=mt,mt=Pt}return Y(mt);case Is:return ae=La(xt._debugInfo),xt=pu(xt),mt=ku(mt,gt,xt,Pt),qe=ae,mt}if(Wi(xt))return ae=La(xt._debugInfo),mt=Yn(mt,gt,xt,Pt),qe=ae,mt;if(O(xt)){if(ae=La(xt._debugInfo),bn=O(xt),typeof bn!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Le=bn.call(xt);return Le===xt?(mt.tag!==0||Object.prototype.toString.call(mt.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Le)!=="[object Generator]")&&(q7||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),q7=!0):xt.entries!==bn||C8||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),C8=!0),mt=g_(mt,gt,Le,Pt),qe=ae,mt}if(typeof xt.then=="function")return ae=La(xt._debugInfo),mt=ku(mt,gt,mf(xt),Pt),qe=ae,mt;if(xt.$$typeof===ji)return ku(mt,gt,df(mt,xt),Pt);K0(mt,xt)}return typeof xt=="string"&&xt!==""||typeof xt=="number"||typeof xt=="bigint"?(ae=""+xt,gt!==null&&gt.tag===6?(g(mt,gt.sibling),Pt=z(gt,ae),Pt.return=mt,mt=Pt):(g(mt,gt),Pt=b1(ae,mt.mode,Pt),Pt.return=mt,Pt._debugOwner=mt,Pt._debugTask=mt._debugTask,Pt._debugInfo=qe,mt=Pt),Y(mt)):(typeof xt=="function"&&X0(mt,xt),typeof xt=="symbol"&&cl(mt,xt),g(mt,gt))}return function(mt,gt,xt,Pt){var ae=qe;qe=null;try{Fx=0;var bn=ku(mt,gt,xt,Pt);return e_=null,bn}catch(pi){if(pi===t_||pi===_4)throw pi;var Le=d(29,pi,null,mt.mode);Le.lanes=Pt,Le.return=mt;var Ie=Le._debugInfo=qe;if(Le._debugOwner=mt._debugOwner,Le._debugTask=mt._debugTask,Ie!=null){for(var Ge=Ie.length-1;0<=Ge;Ge--)if(typeof Ie[Ge].stack=="string"){Le._debugOwner=Ie[Ge],Le._debugTask=Ie[Ge].debugTask;break}}return Le}finally{qe=ae}}}function T2(a,r){var g=Wi(a);return a=!g&&typeof O(a)=="function",g||a?(g=g?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",g,r,g),!1):!0}function gf(){for(var a=n_,r=R8=n_=0;r<a;){var g=Ol[r];Ol[r++]=null;var D=Ol[r];Ol[r++]=null;var z=Ol[r];Ol[r++]=null;var k=Ol[r];if(Ol[r++]=null,D!==null&&z!==null){var Y=D.pending;Y===null?z.next=z:(z.next=Y.next,Y.next=z),D.pending=z}k!==0&&_a(g,z,k)}}function Q0(a,r,g,D){Ol[n_++]=a,Ol[n_++]=r,Ol[n_++]=g,Ol[n_++]=D,R8|=D,a.lanes|=D,a=a.alternate,a!==null&&(a.lanes|=D)}function Ay(a,r,g,D){return Q0(a,r,g,D),W0(a)}function Qa(a,r){return Q0(a,null,null,r),W0(a)}function _a(a,r,g){a.lanes|=g;var D=a.alternate;D!==null&&(D.lanes|=g);for(var z=!1,k=a.return;k!==null;)k.childLanes|=g,D=k.alternate,D!==null&&(D.childLanes|=g),k.tag===22&&(a=k.stateNode,a===null||a._visibility&Ix||(z=!0)),a=k,k=k.return;return a.tag===3?(k=a.stateNode,z&&r!==null&&(z=31-da(g),a=k.hiddenUpdates,D=a[z],D===null?a[z]=[r]:D.push(r),r.lane=g|536870912),k):null}function W0(a){if(Jx>pH)throw eg=Jx=0,$x=Q8=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");eg>mH&&(eg=0,$x=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),a.alternate===null&&a.flags&4098&&m1(a);for(var r=a,g=r.return;g!==null;)r.alternate===null&&r.flags&4098&&m1(a),r=g,g=r.return;return r.tag===3?r.stateNode:null}function Cy(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ry(a,r){a=a.updateQueue,r.updateQueue===a&&(r.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function mu(a){return{lane:a,tag:$7,payload:null,callback:null,next:null}}function Ar(a,r,g){var D=a.updateQueue;if(D===null)return null;if(D=D.shared,D8===D&&!nL){var z=L(a);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
167
+ <%s>%s</%s>`,g,r,g))}function cl(a,r){var g=Ey();g!==null?g.run(E2.bind(null,a,r)):E2(a,r)}function q0(a){function r(mt,gt){if(a){var xt=mt.deletions;xt===null?(mt.deletions=[gt],mt.flags|=16):xt.push(gt)}}function g(mt,gt){if(!a)return null;for(;gt!==null;)r(mt,gt),gt=gt.sibling;return null}function D(mt){for(var gt=new Map;mt!==null;)mt.key!==null?gt.set(mt.key,mt):gt.set(mt.index,mt),mt=mt.sibling;return gt}function z(mt,gt){return mt=Tu(mt,gt),mt.index=0,mt.sibling=null,mt}function k(mt,gt,xt){return mt.index=xt,a?(xt=mt.alternate,xt!==null?(xt=xt.index,xt<gt?(mt.flags|=67108866,gt):xt):(mt.flags|=67108866,gt)):(mt.flags|=1048576,gt)}function Y(mt){return a&&mt.alternate===null&&(mt.flags|=67108866),mt}function J(mt,gt,xt,Pt){return gt===null||gt.tag!==6?(gt=b1(xt,mt.mode,Pt),gt.return=mt,gt._debugOwner=mt,gt._debugTask=mt._debugTask,gt._debugInfo=qe,gt):(gt=z(gt,xt),gt.return=mt,gt._debugInfo=qe,gt)}function ct(mt,gt,xt,Pt){var ae=xt.type;return ae===Pf?(gt=Mt(mt,gt,xt.props.children,Pt,xt.key),rc(xt,gt,mt),gt):gt!==null&&(gt.elementType===ae||hx(gt,xt)||typeof ae=="object"&&ae!==null&&ae.$$typeof===Is&&pu(ae)===gt.type)?(gt=z(gt,xt.props),oc(gt,xt),gt.return=mt,gt._debugOwner=xt._owner,gt._debugInfo=qe,gt):(gt=_1(xt,mt.mode,Pt),oc(gt,xt),gt.return=mt,gt._debugInfo=qe,gt)}function vt(mt,gt,xt,Pt){return gt===null||gt.tag!==4||gt.stateNode.containerInfo!==xt.containerInfo||gt.stateNode.implementation!==xt.implementation?(gt=Cm(xt,mt.mode,Pt),gt.return=mt,gt._debugInfo=qe,gt):(gt=z(gt,xt.children||[]),gt.return=mt,gt._debugInfo=qe,gt)}function Mt(mt,gt,xt,Pt,ae){return gt===null||gt.tag!==7?(gt=yc(xt,mt.mode,Pt,ae),gt.return=mt,gt._debugOwner=mt,gt._debugTask=mt._debugTask,gt._debugInfo=qe,gt):(gt=z(gt,xt),gt.return=mt,gt._debugInfo=qe,gt)}function Nt(mt,gt,xt){if(typeof gt=="string"&&gt!==""||typeof gt=="number"||typeof gt=="bigint")return gt=b1(""+gt,mt.mode,xt),gt.return=mt,gt._debugOwner=mt,gt._debugTask=mt._debugTask,gt._debugInfo=qe,gt;if(typeof gt=="object"&&gt!==null){switch(gt.$$typeof){case Au:return xt=_1(gt,mt.mode,xt),oc(xt,gt),xt.return=mt,mt=La(gt._debugInfo),xt._debugInfo=qe,qe=mt,xt;case Cu:return gt=Cm(gt,mt.mode,xt),gt.return=mt,gt._debugInfo=qe,gt;case Is:var Pt=La(gt._debugInfo);return gt=pu(gt),mt=Nt(mt,gt,xt),qe=Pt,mt}if(Wi(gt)||O(gt))return xt=yc(gt,mt.mode,xt,null),xt.return=mt,xt._debugOwner=mt,xt._debugTask=mt._debugTask,mt=La(gt._debugInfo),xt._debugInfo=qe,qe=mt,xt;if(typeof gt.then=="function")return Pt=La(gt._debugInfo),mt=Nt(mt,mf(gt),xt),qe=Pt,mt;if(gt.$$typeof===ji)return Nt(mt,df(mt,gt),xt);K0(mt,gt)}return typeof gt=="function"&&X0(mt,gt),typeof gt=="symbol"&&cl(mt,gt),null}function kt(mt,gt,xt,Pt){var ae=gt!==null?gt.key:null;if(typeof xt=="string"&&xt!==""||typeof xt=="number"||typeof xt=="bigint")return ae!==null?null:J(mt,gt,""+xt,Pt);if(typeof xt=="object"&&xt!==null){switch(xt.$$typeof){case Au:return xt.key===ae?(ae=La(xt._debugInfo),mt=ct(mt,gt,xt,Pt),qe=ae,mt):null;case Cu:return xt.key===ae?vt(mt,gt,xt,Pt):null;case Is:return ae=La(xt._debugInfo),xt=pu(xt),mt=kt(mt,gt,xt,Pt),qe=ae,mt}if(Wi(xt)||O(xt))return ae!==null?null:(ae=La(xt._debugInfo),mt=Mt(mt,gt,xt,Pt,null),qe=ae,mt);if(typeof xt.then=="function")return ae=La(xt._debugInfo),mt=kt(mt,gt,mf(xt),Pt),qe=ae,mt;if(xt.$$typeof===ji)return kt(mt,gt,df(mt,xt),Pt);K0(mt,xt)}return typeof xt=="function"&&X0(mt,xt),typeof xt=="symbol"&&cl(mt,xt),null}function _e(mt,gt,xt,Pt,ae){if(typeof Pt=="string"&&Pt!==""||typeof Pt=="number"||typeof Pt=="bigint")return mt=mt.get(xt)||null,J(gt,mt,""+Pt,ae);if(typeof Pt=="object"&&Pt!==null){switch(Pt.$$typeof){case Au:return xt=mt.get(Pt.key===null?xt:Pt.key)||null,mt=La(Pt._debugInfo),gt=ct(gt,xt,Pt,ae),qe=mt,gt;case Cu:return mt=mt.get(Pt.key===null?xt:Pt.key)||null,vt(gt,mt,Pt,ae);case Is:var bn=La(Pt._debugInfo);return Pt=pu(Pt),gt=_e(mt,gt,xt,Pt,ae),qe=bn,gt}if(Wi(Pt)||O(Pt))return xt=mt.get(xt)||null,mt=La(Pt._debugInfo),gt=Mt(gt,xt,Pt,ae,null),qe=mt,gt;if(typeof Pt.then=="function")return bn=La(Pt._debugInfo),gt=_e(mt,gt,xt,mf(Pt),ae),qe=bn,gt;if(Pt.$$typeof===ji)return _e(mt,gt,xt,df(gt,Pt),ae);K0(gt,Pt)}return typeof Pt=="function"&&X0(gt,Pt),typeof Pt=="symbol"&&cl(gt,Pt),null}function Pe(mt,gt,xt,Pt){if(typeof xt!="object"||xt===null)return Pt;switch(xt.$$typeof){case Au:case Cu:x(mt,gt,xt);var ae=xt.key;if(typeof ae!="string")break;if(Pt===null){Pt=new Set,Pt.add(ae);break}if(!Pt.has(ae)){Pt.add(ae);break}oe(gt,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",ae)});break;case Is:xt=pu(xt),Pe(mt,gt,xt,Pt)}return Pt}function Yn(mt,gt,xt,Pt){for(var ae=null,bn=null,Le=null,Ie=gt,Ge=gt=0,pi=null;Ie!==null&&Ge<xt.length;Ge++){Ie.index>Ge?(pi=Ie,Ie=null):pi=Ie.sibling;var fa=kt(mt,Ie,xt[Ge],Pt);if(fa===null){Ie===null&&(Ie=pi);break}ae=Pe(mt,fa,xt[Ge],ae),a&&Ie&&fa.alternate===null&&r(mt,Ie),gt=k(fa,gt,Ge),Le===null?bn=fa:Le.sibling=fa,Le=fa,Ie=pi}if(Ge===xt.length)return g(mt,Ie),un&&On(mt,Ge),bn;if(Ie===null){for(;Ge<xt.length;Ge++)Ie=Nt(mt,xt[Ge],Pt),Ie!==null&&(ae=Pe(mt,Ie,xt[Ge],ae),gt=k(Ie,gt,Ge),Le===null?bn=Ie:Le.sibling=Ie,Le=Ie);return un&&On(mt,Ge),bn}for(Ie=D(Ie);Ge<xt.length;Ge++)pi=_e(Ie,mt,Ge,xt[Ge],Pt),pi!==null&&(ae=Pe(mt,pi,xt[Ge],ae),a&&pi.alternate!==null&&Ie.delete(pi.key===null?Ge:pi.key),gt=k(pi,gt,Ge),Le===null?bn=pi:Le.sibling=pi,Le=pi);return a&&Ie.forEach(function(ih){return r(mt,ih)}),un&&On(mt,Ge),bn}function g_(mt,gt,xt,Pt){if(xt==null)throw Error("An iterable object provided no iterator.");for(var ae=null,bn=null,Le=gt,Ie=gt=0,Ge=null,pi=null,fa=xt.next();Le!==null&&!fa.done;Ie++,fa=xt.next()){Le.index>Ie?(Ge=Le,Le=null):Ge=Le.sibling;var ih=kt(mt,Le,fa.value,Pt);if(ih===null){Le===null&&(Le=Ge);break}pi=Pe(mt,ih,fa.value,pi),a&&Le&&ih.alternate===null&&r(mt,Le),gt=k(ih,gt,Ie),bn===null?ae=ih:bn.sibling=ih,bn=ih,Le=Ge}if(fa.done)return g(mt,Le),un&&On(mt,Ie),ae;if(Le===null){for(;!fa.done;Ie++,fa=xt.next())Le=Nt(mt,fa.value,Pt),Le!==null&&(pi=Pe(mt,Le,fa.value,pi),gt=k(Le,gt,Ie),bn===null?ae=Le:bn.sibling=Le,bn=Le);return un&&On(mt,Ie),ae}for(Le=D(Le);!fa.done;Ie++,fa=xt.next())Ge=_e(Le,mt,Ie,fa.value,Pt),Ge!==null&&(pi=Pe(mt,Ge,fa.value,pi),a&&Ge.alternate!==null&&Le.delete(Ge.key===null?Ie:Ge.key),gt=k(Ge,gt,Ie),bn===null?ae=Ge:bn.sibling=Ge,bn=Ge);return a&&Le.forEach(function(vH){return r(mt,vH)}),un&&On(mt,Ie),ae}function ku(mt,gt,xt,Pt){if(typeof xt=="object"&&xt!==null&&xt.type===Pf&&xt.key===null&&(rc(xt,null,mt),xt=xt.props.children),typeof xt=="object"&&xt!==null){switch(xt.$$typeof){case Au:var ae=La(xt._debugInfo);t:{for(var bn=xt.key;gt!==null;){if(gt.key===bn){if(bn=xt.type,bn===Pf){if(gt.tag===7){g(mt,gt.sibling),Pt=z(gt,xt.props.children),Pt.return=mt,Pt._debugOwner=xt._owner,Pt._debugInfo=qe,rc(xt,Pt,mt),mt=Pt;break t}}else if(gt.elementType===bn||hx(gt,xt)||typeof bn=="object"&&bn!==null&&bn.$$typeof===Is&&pu(bn)===gt.type){g(mt,gt.sibling),Pt=z(gt,xt.props),oc(Pt,xt),Pt.return=mt,Pt._debugOwner=xt._owner,Pt._debugInfo=qe,mt=Pt;break t}g(mt,gt);break}else r(mt,gt);gt=gt.sibling}xt.type===Pf?(Pt=yc(xt.props.children,mt.mode,Pt,xt.key),Pt.return=mt,Pt._debugOwner=mt,Pt._debugTask=mt._debugTask,Pt._debugInfo=qe,rc(xt,Pt,mt),mt=Pt):(Pt=_1(xt,mt.mode,Pt),oc(Pt,xt),Pt.return=mt,Pt._debugInfo=qe,mt=Pt)}return mt=Y(mt),qe=ae,mt;case Cu:t:{for(ae=xt,xt=ae.key;gt!==null;){if(gt.key===xt)if(gt.tag===4&&gt.stateNode.containerInfo===ae.containerInfo&&gt.stateNode.implementation===ae.implementation){g(mt,gt.sibling),Pt=z(gt,ae.children||[]),Pt.return=mt,mt=Pt;break t}else{g(mt,gt);break}else r(mt,gt);gt=gt.sibling}Pt=Cm(ae,mt.mode,Pt),Pt.return=mt,mt=Pt}return Y(mt);case Is:return ae=La(xt._debugInfo),xt=pu(xt),mt=ku(mt,gt,xt,Pt),qe=ae,mt}if(Wi(xt))return ae=La(xt._debugInfo),mt=Yn(mt,gt,xt,Pt),qe=ae,mt;if(O(xt)){if(ae=La(xt._debugInfo),bn=O(xt),typeof bn!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Le=bn.call(xt);return Le===xt?(mt.tag!==0||Object.prototype.toString.call(mt.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Le)!=="[object Generator]")&&(q7||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),q7=!0):xt.entries!==bn||C8||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),C8=!0),mt=g_(mt,gt,Le,Pt),qe=ae,mt}if(typeof xt.then=="function")return ae=La(xt._debugInfo),mt=ku(mt,gt,mf(xt),Pt),qe=ae,mt;if(xt.$$typeof===ji)return ku(mt,gt,df(mt,xt),Pt);K0(mt,xt)}return typeof xt=="string"&&xt!==""||typeof xt=="number"||typeof xt=="bigint"?(ae=""+xt,gt!==null&&gt.tag===6?(g(mt,gt.sibling),Pt=z(gt,ae),Pt.return=mt,mt=Pt):(g(mt,gt),Pt=b1(ae,mt.mode,Pt),Pt.return=mt,Pt._debugOwner=mt,Pt._debugTask=mt._debugTask,Pt._debugInfo=qe,mt=Pt),Y(mt)):(typeof xt=="function"&&X0(mt,xt),typeof xt=="symbol"&&cl(mt,xt),g(mt,gt))}return function(mt,gt,xt,Pt){var ae=qe;qe=null;try{Fx=0;var bn=ku(mt,gt,xt,Pt);return e_=null,bn}catch(pi){if(pi===t_||pi===_4)throw pi;var Le=d(29,pi,null,mt.mode);Le.lanes=Pt,Le.return=mt;var Ie=Le._debugInfo=qe;if(Le._debugOwner=mt._debugOwner,Le._debugTask=mt._debugTask,Ie!=null){for(var Ge=Ie.length-1;0<=Ge;Ge--)if(typeof Ie[Ge].stack=="string"){Le._debugOwner=Ie[Ge],Le._debugTask=Ie[Ge].debugTask;break}}return Le}finally{qe=ae}}}function T2(a,r){var g=Wi(a);return a=!g&&typeof O(a)=="function",g||a?(g=g?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",g,r,g),!1):!0}function gf(){for(var a=n_,r=R8=n_=0;r<a;){var g=Ol[r];Ol[r++]=null;var D=Ol[r];Ol[r++]=null;var z=Ol[r];Ol[r++]=null;var k=Ol[r];if(Ol[r++]=null,D!==null&&z!==null){var Y=D.pending;Y===null?z.next=z:(z.next=Y.next,Y.next=z),D.pending=z}k!==0&&_a(g,z,k)}}function Q0(a,r,g,D){Ol[n_++]=a,Ol[n_++]=r,Ol[n_++]=g,Ol[n_++]=D,R8|=D,a.lanes|=D,a=a.alternate,a!==null&&(a.lanes|=D)}function Ay(a,r,g,D){return Q0(a,r,g,D),W0(a)}function Qa(a,r){return Q0(a,null,null,r),W0(a)}function _a(a,r,g){a.lanes|=g;var D=a.alternate;D!==null&&(D.lanes|=g);for(var z=!1,k=a.return;k!==null;)k.childLanes|=g,D=k.alternate,D!==null&&(D.childLanes|=g),k.tag===22&&(a=k.stateNode,a===null||a._visibility&Ix||(z=!0)),a=k,k=k.return;return a.tag===3?(k=a.stateNode,z&&r!==null&&(z=31-da(g),a=k.hiddenUpdates,D=a[z],D===null?a[z]=[r]:D.push(r),r.lane=g|536870912),k):null}function W0(a){if(Jx>pH)throw eg=Jx=0,$x=Q8=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");eg>mH&&(eg=0,$x=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),a.alternate===null&&a.flags&4098&&m1(a);for(var r=a,g=r.return;g!==null;)r.alternate===null&&r.flags&4098&&m1(a),r=g,g=r.return;return r.tag===3?r.stateNode:null}function Cy(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ry(a,r){a=a.updateQueue,r.updateQueue===a&&(r.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function mu(a){return{lane:a,tag:$7,payload:null,callback:null,next:null}}function Ar(a,r,g){var D=a.updateQueue;if(D===null)return null;if(D=D.shared,D8===D&&!nL){var z=L(a);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
168
168
 
169
- Please update the following component: %s`,z),nL=!0}return(cn&is)!==ns?(z=D.pending,z===null?r.next=r:(r.next=z.next,z.next=r),D.pending=r,r=W0(a),_a(a,null,g),r):(Q0(a,D,r,g),W0(a))}function vf(a,r,g){if(r=r.updateQueue,r!==null&&(r=r.shared,(g&4194048)!==0)){var D=r.lanes;D&=a.pendingLanes,g|=D,r.lanes=g,ot(a,g)}}function Sd(a,r){var g=a.updateQueue,D=a.alternate;if(D!==null&&(D=D.updateQueue,g===D)){var z=null,k=null;if(g=g.firstBaseUpdate,g!==null){do{var Y={lane:g.lane,tag:g.tag,payload:g.payload,callback:null,next:null};k===null?z=k=Y:k=k.next=Y,g=g.next}while(g!==null);k===null?z=k=r:k=k.next=r}else z=k=r;g={baseState:D.baseState,firstBaseUpdate:z,lastBaseUpdate:k,shared:D.shared,callbacks:D.callbacks},a.updateQueue=g;return}a=g.lastBaseUpdate,a===null?g.firstBaseUpdate=r:a.next=r,g.lastBaseUpdate=r}function yf(){if(M8){var a=$1;if(a!==null)throw a}}function Z0(a,r,g,D){M8=!1;var z=a.updateQueue;np=!1,D8=z.shared;var k=z.firstBaseUpdate,Y=z.lastBaseUpdate,J=z.shared.pending;if(J!==null){z.shared.pending=null;var ct=J,vt=ct.next;ct.next=null,Y===null?k=vt:Y.next=vt,Y=ct;var Mt=a.alternate;Mt!==null&&(Mt=Mt.updateQueue,J=Mt.lastBaseUpdate,J!==Y&&(J===null?Mt.firstBaseUpdate=vt:J.next=vt,Mt.lastBaseUpdate=ct))}if(k!==null){var Nt=z.baseState;Y=0,Mt=vt=ct=null,J=k;do{var Bt=J.lane&-536870913,_e=Bt!==J.lane;if(_e?(Qe&Bt)===Bt:(D&Bt)===Bt){Bt!==0&&Bt===Ym&&(M8=!0),Mt!==null&&(Mt=Mt.next={lane:0,tag:J.tag,payload:J.payload,callback:null,next:null});t:{Bt=a;var Pe=J,Yn=r,g_=g;switch(Pe.tag){case tL:if(Pe=Pe.payload,typeof Pe=="function"){W1=!0;var ku=Pe.call(g_,Nt,Yn);if(Bt.mode&8){_t(!0);try{Pe.call(g_,Nt,Yn)}finally{_t(!1)}}W1=!1,Nt=ku;break t}Nt=Pe;break t;case w8:Bt.flags=Bt.flags&-65537|128;case $7:if(ku=Pe.payload,typeof ku=="function"){if(W1=!0,Pe=ku.call(g_,Nt,Yn),Bt.mode&8){_t(!0);try{ku.call(g_,Nt,Yn)}finally{_t(!1)}}W1=!1}else Pe=ku;if(Pe==null)break t;Nt=Dn({},Nt,Pe);break t;case eL:np=!0}}Bt=J.callback,Bt!==null&&(a.flags|=64,_e&&(a.flags|=8192),_e=z.callbacks,_e===null?z.callbacks=[Bt]:_e.push(Bt))}else _e={lane:Bt,tag:J.tag,payload:J.payload,callback:J.callback,next:null},Mt===null?(vt=Mt=_e,ct=Nt):Mt=Mt.next=_e,Y|=Bt;if(J=J.next,J===null){if(J=z.shared.pending,J===null)break;_e=J,J=_e.next,_e.next=null,z.lastBaseUpdate=_e,z.shared.pending=null}}while(!0);Mt===null&&(ct=Nt),z.baseState=ct,z.firstBaseUpdate=vt,z.lastBaseUpdate=Mt,k===null&&(z.shared.lanes=0),sp|=Y,a.lanes=Y,a.memoizedState=Nt}D8=null}function J0(a,r){if(typeof a!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+a);a.call(r)}function A2(a,r){var g=a.shared.hiddenCallbacks;if(g!==null)for(a.shared.hiddenCallbacks=null,a=0;a<g.length;a++)J0(g[a],r)}function C2(a,r){var g=a.callbacks;if(g!==null)for(a.callbacks=null,a=0;a<g.length;a++)J0(g[a],r)}function R2(a,r){var g=Lc;H(S4,g,a),H(i_,r,a),Lc=g|r.baseLanes}function wy(a){H(S4,Lc,a),H(i_,i_.current,a)}function $0(a){Lc=S4.current,F(i_,a),F(S4,a)}function dl(a){var r=a.alternate;H(ha,ha.current&a_,a),H(To,a,a),Nl===null&&(r===null||i_.current!==null||r.memoizedState!==null)&&(Nl=a)}function Dy(a){H(ha,ha.current,a),H(To,a,a),Nl===null&&(Nl=a)}function My(a){a.tag===22?(H(ha,ha.current,a),H(To,a,a),Nl===null&&(Nl=a)):ho(a)}function ho(a){H(ha,ha.current,a),H(To,To.current,a)}function vs(a){F(To,a),Nl===a&&(Nl=null),F(ha,a)}function tm(a){for(var r=a;r!==null;){if(r.tag===13){var g=r.memoizedState;if(g!==null&&(g=g.dehydrated,g===null||Pm(g)||j1(g)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if(r.flags&128)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break;for(;r.sibling===null;){if(r.return===null||r.return===a)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function ke(){var a=Rt;Pl===null?Pl=[a]:Pl.push(a)}function Ht(){var a=Rt;if(Pl!==null&&(th++,Pl[th]!==a)){var r=L(Ne);if(!iL.has(r)&&(iL.add(r),Pl!==null)){for(var g="",D=0;D<=th;D++){var z=Pl[D],k=D===th?a:z;for(z=D+1+". "+z;30>z.length;)z+=" ";z+=k+`
169
+ Please update the following component: %s`,z),nL=!0}return(cn&is)!==ns?(z=D.pending,z===null?r.next=r:(r.next=z.next,z.next=r),D.pending=r,r=W0(a),_a(a,null,g),r):(Q0(a,D,r,g),W0(a))}function vf(a,r,g){if(r=r.updateQueue,r!==null&&(r=r.shared,(g&4194048)!==0)){var D=r.lanes;D&=a.pendingLanes,g|=D,r.lanes=g,ot(a,g)}}function Sd(a,r){var g=a.updateQueue,D=a.alternate;if(D!==null&&(D=D.updateQueue,g===D)){var z=null,k=null;if(g=g.firstBaseUpdate,g!==null){do{var Y={lane:g.lane,tag:g.tag,payload:g.payload,callback:null,next:null};k===null?z=k=Y:k=k.next=Y,g=g.next}while(g!==null);k===null?z=k=r:k=k.next=r}else z=k=r;g={baseState:D.baseState,firstBaseUpdate:z,lastBaseUpdate:k,shared:D.shared,callbacks:D.callbacks},a.updateQueue=g;return}a=g.lastBaseUpdate,a===null?g.firstBaseUpdate=r:a.next=r,g.lastBaseUpdate=r}function yf(){if(M8){var a=$1;if(a!==null)throw a}}function Z0(a,r,g,D){M8=!1;var z=a.updateQueue;np=!1,D8=z.shared;var k=z.firstBaseUpdate,Y=z.lastBaseUpdate,J=z.shared.pending;if(J!==null){z.shared.pending=null;var ct=J,vt=ct.next;ct.next=null,Y===null?k=vt:Y.next=vt,Y=ct;var Mt=a.alternate;Mt!==null&&(Mt=Mt.updateQueue,J=Mt.lastBaseUpdate,J!==Y&&(J===null?Mt.firstBaseUpdate=vt:J.next=vt,Mt.lastBaseUpdate=ct))}if(k!==null){var Nt=z.baseState;Y=0,Mt=vt=ct=null,J=k;do{var kt=J.lane&-536870913,_e=kt!==J.lane;if(_e?(Qe&kt)===kt:(D&kt)===kt){kt!==0&&kt===Ym&&(M8=!0),Mt!==null&&(Mt=Mt.next={lane:0,tag:J.tag,payload:J.payload,callback:null,next:null});t:{kt=a;var Pe=J,Yn=r,g_=g;switch(Pe.tag){case tL:if(Pe=Pe.payload,typeof Pe=="function"){W1=!0;var ku=Pe.call(g_,Nt,Yn);if(kt.mode&8){_t(!0);try{Pe.call(g_,Nt,Yn)}finally{_t(!1)}}W1=!1,Nt=ku;break t}Nt=Pe;break t;case w8:kt.flags=kt.flags&-65537|128;case $7:if(ku=Pe.payload,typeof ku=="function"){if(W1=!0,Pe=ku.call(g_,Nt,Yn),kt.mode&8){_t(!0);try{ku.call(g_,Nt,Yn)}finally{_t(!1)}}W1=!1}else Pe=ku;if(Pe==null)break t;Nt=Dn({},Nt,Pe);break t;case eL:np=!0}}kt=J.callback,kt!==null&&(a.flags|=64,_e&&(a.flags|=8192),_e=z.callbacks,_e===null?z.callbacks=[kt]:_e.push(kt))}else _e={lane:kt,tag:J.tag,payload:J.payload,callback:J.callback,next:null},Mt===null?(vt=Mt=_e,ct=Nt):Mt=Mt.next=_e,Y|=kt;if(J=J.next,J===null){if(J=z.shared.pending,J===null)break;_e=J,J=_e.next,_e.next=null,z.lastBaseUpdate=_e,z.shared.pending=null}}while(!0);Mt===null&&(ct=Nt),z.baseState=ct,z.firstBaseUpdate=vt,z.lastBaseUpdate=Mt,k===null&&(z.shared.lanes=0),sp|=Y,a.lanes=Y,a.memoizedState=Nt}D8=null}function J0(a,r){if(typeof a!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+a);a.call(r)}function A2(a,r){var g=a.shared.hiddenCallbacks;if(g!==null)for(a.shared.hiddenCallbacks=null,a=0;a<g.length;a++)J0(g[a],r)}function C2(a,r){var g=a.callbacks;if(g!==null)for(a.callbacks=null,a=0;a<g.length;a++)J0(g[a],r)}function R2(a,r){var g=Lc;H(S4,g,a),H(i_,r,a),Lc=g|r.baseLanes}function wy(a){H(S4,Lc,a),H(i_,i_.current,a)}function $0(a){Lc=S4.current,F(i_,a),F(S4,a)}function dl(a){var r=a.alternate;H(ha,ha.current&a_,a),H(To,a,a),Nl===null&&(r===null||i_.current!==null||r.memoizedState!==null)&&(Nl=a)}function Dy(a){H(ha,ha.current,a),H(To,a,a),Nl===null&&(Nl=a)}function My(a){a.tag===22?(H(ha,ha.current,a),H(To,a,a),Nl===null&&(Nl=a)):ho(a)}function ho(a){H(ha,ha.current,a),H(To,To.current,a)}function vs(a){F(To,a),Nl===a&&(Nl=null),F(ha,a)}function tm(a){for(var r=a;r!==null;){if(r.tag===13){var g=r.memoizedState;if(g!==null&&(g=g.dehydrated,g===null||Pm(g)||j1(g)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if(r.flags&128)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break;for(;r.sibling===null;){if(r.return===null||r.return===a)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function ke(){var a=Rt;Pl===null?Pl=[a]:Pl.push(a)}function Ht(){var a=Rt;if(Pl!==null&&(th++,Pl[th]!==a)){var r=L(Ne);if(!iL.has(r)&&(iL.add(r),Pl!==null)){for(var g="",D=0;D<=th;D++){var z=Pl[D],k=D===th?a:z;for(z=D+1+". "+z;30>z.length;)z+=" ";z+=k+`
170
170
  `,g+=z}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
171
171
 
172
172
  Previous render Next render
@@ -179,7 +179,7 @@ Please update the following component: %s`,z),nL=!0}return(cn&is)!==ns?(z=D.pend
179
179
  See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Oy(a,r){if(Gx)return!1;if(r===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Rt),!1;a.length!==r.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
180
180
 
181
181
  Previous: %s
182
- Incoming: %s`,Rt,"["+r.join(", ")+"]","["+a.join(", ")+"]");for(var g=0;g<r.length&&g<a.length;g++)if(!dr(a[g],r[g]))return!1;return!0}function sr(a,r,g,D,z,k){Jd=k,Ne=r,Pl=a!==null?a._debugHookTypes:null,th=-1,Gx=a!==null&&a.type!==r.type,(Object.prototype.toString.call(g)==="[object AsyncFunction]"||Object.prototype.toString.call(g)==="[object AsyncGeneratorFunction]")&&(k=L(Ne),O8.has(k)||(O8.add(k),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",k===null?"An unknown Component":"<"+k+">"))),r.memoizedState=null,r.updateQueue=null,r.lanes=0,Ct.H=a!==null&&a.memoizedState!==null?L8:Pl!==null?rL:N8,Wm=k=(r.mode&8)!==Me;var Y=E8(g,D,z);if(Wm=!1,r_&&(Y=Ny(r,g,D,z)),k){_t(!0);try{Y=Ny(r,g,D,z)}finally{_t(!1)}}return em(a,r),Y}function em(a,r){r._debugHookTypes=Pl,r.dependencies===null?$d!==null&&(r.dependencies={lanes:0,firstContext:null,_debugThenableState:$d}):r.dependencies._debugThenableState=$d,Ct.H=Vx;var g=Qn!==null&&Qn.next!==null;if(Jd=0,Pl=Rt=xa=Qn=Ne=null,th=-1,a!==null&&(a.flags&65011712)!==(r.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),E4=!1,Hx=0,$d=null,g)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");a===null||Ea||(a=a.dependencies,a!==null&&yd(a)&&(Ea=!0)),kx?(kx=!1,a=!0):a=!1,a&&(r=L(r)||"Unknown",aL.has(r)||O8.has(r)||(aL.add(r),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Ny(a,r,g,D){Ne=a;var z=0;do{if(r_&&($d=null),Hx=0,r_=!1,z>=dH)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(z+=1,Gx=!1,xa=Qn=null,a.updateQueue!=null){var k=a.updateQueue;k.lastEffect=null,k.events=null,k.stores=null,k.memoCache!=null&&(k.memoCache.index=0)}th=-1,Ct.H=oL,k=E8(r,g,D)}while(r_);return k}function w2(){var a=Ct.H,r=a.useState()[0];return r=typeof r.then=="function"?gu(r):r,a=a.useState()[0],(Qn!==null?Qn.memoizedState:null)!==a&&(Ne.flags|=1024),r}function Ly(){var a=T4!==0;return T4=0,a}function Py(a,r,g){r.updateQueue=a.updateQueue,r.flags=(r.mode&16)!==Me?r.flags&-402655237:r.flags&-2053,a.lanes&=~g}function nm(a){if(E4){for(a=a.memoizedState;a!==null;){var r=a.queue;r!==null&&(r.pending=null),a=a.next}E4=!1}Jd=0,Pl=xa=Qn=Ne=null,th=-1,Rt=null,r_=!1,Hx=T4=0,$d=null}function Pa(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xa===null?Ne.memoizedState=xa=a:xa=xa.next=a,xa}function Cn(){if(Qn===null){var a=Ne.alternate;a=a!==null?a.memoizedState:null}else a=Qn.next;var r=xa===null?Ne.memoizedState:xa.next;if(r!==null)xa=r,Qn=a;else{if(a===null)throw Ne.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Qn=a,a={memoizedState:Qn.memoizedState,baseState:Qn.baseState,baseQueue:Qn.baseQueue,queue:Qn.queue,next:null},xa===null?Ne.memoizedState=xa=a:xa=xa.next=a}return xa}function xd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gu(a){var r=Hx;return Hx+=1,$d===null&&($d=_2()),a=xy($d,a,r),r=Ne,(xa===null?r.memoizedState:xa.next)===null&&(r=r.alternate,Ct.H=r!==null&&r.memoizedState!==null?L8:N8),a}function En(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return gu(a);if(a.$$typeof===ji)return kn(a)}throw Error("An unsupported type was passed to use(): "+String(a))}function Ed(a){var r=null,g=Ne.updateQueue;if(g!==null&&(r=g.memoCache),r==null){var D=Ne.alternate;D!==null&&(D=D.updateQueue,D!==null&&(D=D.memoCache,D!=null&&(r={data:D.data.map(function(z){return z.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),g===null&&(g=xd(),Ne.updateQueue=g),g.memoCache=r,g=r.data[r.index],g===void 0||Gx)for(g=r.data[r.index]=Array(a),D=0;D<a;D++)g[D]=e4;else g.length!==a&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",g.length,a);return r.index++,g}function fo(a,r){return typeof r=="function"?r(a):r}function jy(a,r,g){var D=Pa();if(g!==void 0){var z=g(r);if(Wm){_t(!0);try{g(r)}finally{_t(!1)}}}else z=r;return D.memoizedState=D.baseState=z,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:z},D.queue=a,a=a.dispatch=r3.bind(null,Ne,a),[D.memoizedState,a]}function hl(a){var r=Cn();return fl(r,Qn,a)}function fl(a,r,g){var D=a.queue;if(D===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");D.lastRenderedReducer=g;var z=a.baseQueue,k=D.pending;if(k!==null){if(z!==null){var Y=z.next;z.next=k.next,k.next=Y}r.baseQueue!==z&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),r.baseQueue=z=k,D.pending=null}if(k=a.baseState,z===null)a.memoizedState=k;else{r=z.next;var J=Y=null,ct=null,vt=r,Mt=!1;do{var Nt=vt.lane&-536870913;if(Nt!==vt.lane?(Qe&Nt)===Nt:(Jd&Nt)===Nt){var Bt=vt.revertLane;if(Bt===0)ct!==null&&(ct=ct.next={lane:0,revertLane:0,gesture:null,action:vt.action,hasEagerState:vt.hasEagerState,eagerState:vt.eagerState,next:null}),Nt===Ym&&(Mt=!0);else if((Jd&Bt)===Bt){vt=vt.next,Bt===Ym&&(Mt=!0);continue}else Nt={lane:0,revertLane:vt.revertLane,gesture:null,action:vt.action,hasEagerState:vt.hasEagerState,eagerState:vt.eagerState,next:null},ct===null?(J=ct=Nt,Y=k):ct=ct.next=Nt,Ne.lanes|=Bt,sp|=Bt;Nt=vt.action,Wm&&g(k,Nt),k=vt.hasEagerState?vt.eagerState:g(k,Nt)}else Bt={lane:Nt,revertLane:vt.revertLane,gesture:vt.gesture,action:vt.action,hasEagerState:vt.hasEagerState,eagerState:vt.eagerState,next:null},ct===null?(J=ct=Bt,Y=k):ct=ct.next=Bt,Ne.lanes|=Nt,sp|=Nt;vt=vt.next}while(vt!==null&&vt!==r);if(ct===null?Y=k:ct.next=J,!dr(k,a.memoizedState)&&(Ea=!0,Mt&&(g=$1,g!==null)))throw g;a.memoizedState=k,a.baseState=Y,a.baseQueue=ct,D.lastRenderedState=k}return z===null&&(D.lanes=0),[a.memoizedState,D.dispatch]}function bf(a){var r=Cn(),g=r.queue;if(g===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");g.lastRenderedReducer=a;var D=g.dispatch,z=g.pending,k=r.memoizedState;if(z!==null){g.pending=null;var Y=z=z.next;do k=a(k,Y.action),Y=Y.next;while(Y!==z);dr(k,r.memoizedState)||(Ea=!0),r.memoizedState=k,r.baseQueue===null&&(r.baseState=k),g.lastRenderedState=k}return[k,D]}function zy(a,r,g){var D=Ne,z=Pa();if(un){if(g===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var k=g();s_||k===g()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),s_=!0)}else{if(k=r(),s_||(g=r(),dr(k,g)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),s_=!0)),Wn===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Qe&127||po(D,r,k)}return z.memoizedState=k,g={value:k,getSnapshot:r},z.queue=g,zs(By.bind(null,D,g,a),[a]),D.flags|=2048,wr(Ll|pr,{destroy:void 0},D2.bind(null,D,g,k,r),null),k}function lc(a,r,g){var D=Ne,z=Cn(),k=un;if(k){if(g===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");g=g()}else if(g=r(),!s_){var Y=r();dr(g,Y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),s_=!0)}(Y=!dr((Qn||z).memoizedState,g))&&(z.memoizedState=g,Ea=!0),z=z.queue;var J=By.bind(null,D,z,a);if(Za(2048,pr,J,[a]),z.getSnapshot!==r||Y||xa!==null&&xa.memoizedState.tag&Ll){if(D.flags|=2048,wr(Ll|pr,{destroy:void 0},D2.bind(null,D,z,g,r),null),Wn===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");k||Jd&127||po(D,r,g)}return g}function po(a,r,g){a.flags|=16384,a={getSnapshot:r,value:g},r=Ne.updateQueue,r===null?(r=xd(),Ne.updateQueue=r,r.stores=[a]):(g=r.stores,g===null?r.stores=[a]:g.push(a))}function D2(a,r,g,D){r.value=g,r.getSnapshot=D,M2(r)&&ky(a)}function By(a,r,g){return g(function(){M2(r)&&(so(2,"updateSyncExternalStore()",a),ky(a))})}function M2(a){var r=a.getSnapshot;a=a.value;try{var g=r();return!dr(a,g)}catch{return!0}}function ky(a){var r=Qa(a,2);r!==null&&ui(r,a,2)}function im(a){var r=Pa();if(typeof a=="function"){var g=a;if(a=g(),Wm){_t(!0);try{g()}finally{_t(!1)}}}return r.memoizedState=r.baseState=a,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:a},r}function Sf(a){a=im(a);var r=a.queue,g=B2.bind(null,Ne,r);return r.dispatch=g,[a.memoizedState,g]}function Fy(a){var r=Pa();r.memoizedState=r.baseState=a;var g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=g,r=Tf.bind(null,Ne,!0,g),g.dispatch=r,[a,r]}function O2(a,r){var g=Cn();return $C(g,Qn,a,r)}function $C(a,r,g,D){return a.baseState=g,fl(a,Qn,typeof D=="function"?D:fo)}function N2(a,r){var g=Cn();return Qn!==null?$C(g,Qn,a,r):(g.baseState=a,[a,g.queue.dispatch])}function t3(a,r,g,D,z){if(Af(a))throw Error("Cannot update form state while rendering.");if(a=r.action,a!==null){var k={payload:z,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(Y){k.listeners.push(Y)}};Ct.T!==null?g(!0):k.isTransition=!1,D(k),g=r.pending,g===null?(k.next=r.pending=k,Cr(r,k)):(k.next=g.next,r.pending=g.next=k)}}function Cr(a,r){var g=r.action,D=r.payload,z=a.state;if(r.isTransition){var k=Ct.T,Y={};Y._updatedFibers=new Set,Ct.T=Y;try{var J=g(z,D),ct=Ct.S;ct!==null&&ct(Y,J),Iy(a,r,J)}catch(vt){Uy(a,r,vt)}finally{k!==null&&Y.types!==null&&(k.types!==null&&k.types!==Y.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),k.types=Y.types),Ct.T=k,k===null&&Y._updatedFibers&&(a=Y._updatedFibers.size,Y._updatedFibers.clear(),10<a&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{Y=g(z,D),Iy(a,r,Y)}catch(vt){Uy(a,r,vt)}}function Iy(a,r,g){g!==null&&typeof g=="object"&&typeof g.then=="function"?(Ct.asyncTransitions++,g.then(lm,lm),g.then(function(D){L2(a,r,D)},function(D){return Uy(a,r,D)}),r.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):L2(a,r,g)}function L2(a,r,g){r.status="fulfilled",r.value=g,e3(r),a.state=g,r=a.pending,r!==null&&(g=r.next,g===r?a.pending=null:(g=g.next,r.next=g,Cr(a,g)))}function Uy(a,r,g){var D=a.pending;if(a.pending=null,D!==null){D=D.next;do r.status="rejected",r.reason=g,e3(r),r=r.next;while(r!==D)}a.action=null}function e3(a){a=a.listeners;for(var r=0;r<a.length;r++)(0,a[r])()}function am(a,r){return r}function Li(a,r){if(un){var g=Wn.formState;if(g!==null){t:{var D=Ne;if(un){if(Ti){var z=Hs(Ti,Dl);if(z){Ti=xc(z),D=xo(z);break t}}sl(D)}D=!1}D&&(r=g[0])}}g=Pa(),g.memoizedState=g.baseState=r,D={pending:null,lanes:0,dispatch:null,lastRenderedReducer:am,lastRenderedState:r},g.queue=D,g=B2.bind(null,Ne,D),D.dispatch=g,D=im(!1);var k=Tf.bind(null,Ne,!1,D.queue);return D=Pa(),z={state:r,dispatch:null,action:a,pending:null},D.queue=z,g=t3.bind(null,Ne,z,k,g),z.dispatch=g,D.memoizedState=a,[r,g,!1]}function sm(a){var r=Cn();return Wa(r,Qn,a)}function Wa(a,r,g){if(r=fl(a,r,am)[0],a=hl(fo)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var D=gu(r)}catch(Y){throw Y===t_?_4:Y}else D=r;r=Cn();var z=r.queue,k=z.dispatch;return g!==r.memoizedState&&(Ne.flags|=2048,wr(Ll|pr,{destroy:void 0},n3.bind(null,z,g),null)),[D,k,a]}function n3(a,r){a.action=r}function Rr(a){var r=Cn(),g=Qn;if(g!==null)return Wa(r,g,a);Cn(),r=r.memoizedState,g=Cn();var D=g.queue.dispatch;return g.memoizedState=a,[r,D,!1]}function wr(a,r,g,D){return a={tag:a,create:g,deps:D,inst:r,next:null},r=Ne.updateQueue,r===null&&(r=xd(),Ne.updateQueue=r),g=r.lastEffect,g===null?r.lastEffect=a.next=a:(D=g.next,g.next=a,a.next=D,r.lastEffect=a),a}function mo(a){var r=Pa();return a={current:a},r.memoizedState=a}function vu(a,r,g,D){var z=Pa();Ne.flags|=a,z.memoizedState=wr(Ll|r,{destroy:void 0},g,D===void 0?null:D)}function Za(a,r,g,D){var z=Cn();D=D===void 0?null:D;var k=z.memoizedState.inst;Qn!==null&&D!==null&&Oy(D,Qn.memoizedState.deps)?z.memoizedState=wr(r,k,g,D):(Ne.flags|=a,z.memoizedState=wr(Ll|r,k,g,D))}function zs(a,r){(Ne.mode&16)!==Me?vu(276826112,pr,a,r):vu(8390656,pr,a,r)}function i3(a){Ne.flags|=4;var r=Ne.updateQueue;if(r===null)r=xd(),Ne.updateQueue=r,r.events=[a];else{var g=r.events;g===null?r.events=[a]:g.push(a)}}function uc(a){var r=Pa(),g={impl:a};return r.memoizedState=g,function(){if((cn&is)!==ns)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return g.impl.apply(void 0,arguments)}}function cc(a){var r=Cn().memoizedState;return i3({ref:r,nextImpl:a}),function(){if((cn&is)!==ns)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return r.impl.apply(void 0,arguments)}}function yu(a,r){var g=4194308;return(Ne.mode&16)!==Me&&(g|=134217728),vu(g,Ao,a,r)}function P2(a,r){if(typeof r=="function"){a=a();var g=r(a);return function(){typeof g=="function"?g():r(null)}}if(r!=null)return r.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(r).join(", ")+"}"),a=a(),r.current=a,function(){r.current=null}}function Hy(a,r,g){typeof r!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",r!==null?typeof r:"null"),g=g!=null?g.concat([a]):null;var D=4194308;(Ne.mode&16)!==Me&&(D|=134217728),vu(D,Ao,P2.bind(null,r,a),g)}function dc(a,r,g){typeof r!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",r!==null?typeof r:"null"),g=g!=null?g.concat([a]):null,Za(4,Ao,P2.bind(null,r,a),g)}function Gy(a,r){return Pa().memoizedState=[a,r===void 0?null:r],a}function Td(a,r){var g=Cn();r=r===void 0?null:r;var D=g.memoizedState;return r!==null&&Oy(r,D[1])?D[0]:(g.memoizedState=[a,r],a)}function Vy(a,r){var g=Pa();r=r===void 0?null:r;var D=a();if(Wm){_t(!0);try{a()}finally{_t(!1)}}return g.memoizedState=[D,r],D}function xf(a,r){var g=Cn();r=r===void 0?null:r;var D=g.memoizedState;if(r!==null&&Oy(r,D[1]))return D[0];if(D=a(),Wm){_t(!0);try{a()}finally{_t(!1)}}return g.memoizedState=[D,r],D}function rm(a,r){var g=Pa();return om(g,a,r)}function Yy(a,r){var g=Cn();return Bs(g,Qn.memoizedState,a,r)}function j2(a,r){var g=Cn();return Qn===null?om(g,a,r):Bs(g,Qn.memoizedState,a,r)}function om(a,r,g){return g===void 0||Jd&1073741824&&!(Qe&261930)?a.memoizedState=r:(a.memoizedState=g,a=M3(),Ne.lanes|=a,sp|=a,g)}function Bs(a,r,g,D){return dr(g,r)?g:i_.current!==null?(a=om(a,g,D),dr(a,r)||(Ea=!0),a):!(Jd&42)||Jd&1073741824&&!(Qe&261930)?(Ea=!0,a.memoizedState=g):(a=M3(),Ne.lanes|=a,sp|=a,r)}function lm(){Ct.asyncTransitions--}function ys(a,r,g,D,z){var k=Us();zi(k!==0&&8>k?k:8);var Y=Ct.T,J={};J._updatedFibers=new Set,Ct.T=J,Tf(a,!1,r,g);try{var ct=z(),vt=Ct.S;if(vt!==null&&vt(J,ct),ct!==null&&typeof ct=="object"&&typeof ct.then=="function"){Ct.asyncTransitions++,ct.then(lm,lm);var Mt=y2(ct,D);Ef(a,r,Mt,or(a))}else Ef(a,r,D,or(a))}catch(Nt){Ef(a,r,{then:function(){},status:"rejected",reason:Nt},or(a))}finally{zi(k),Y!==null&&J.types!==null&&(Y.types!==null&&Y.types!==J.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),Y.types=J.types),Ct.T=Y,Y===null&&J._updatedFibers&&(a=J._updatedFibers.size,J._updatedFibers.clear(),10<a&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function z2(a){var r=a.memoizedState;if(r!==null)return r;r={memoizedState:Pr,baseState:Pr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:Pr},next:null};var g={};return r.next={memoizedState:g,baseState:g,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:g},next:null},a.memoizedState=r,a=a.alternate,a!==null&&(a.memoizedState=r),r}function Ky(){var a=im(!1);return a=ys.bind(null,Ne,a.queue,!0,!1),Pa().memoizedState=a,[!1,a]}function a3(){var a=hl(fo)[0],r=Cn().memoizedState;return[typeof a=="boolean"?a:gu(a),r]}function _u(){var a=bf(fo)[0],r=Cn().memoizedState;return[typeof a=="boolean"?a:gu(a),r]}function hc(){return kn(jr)}function um(){var a=Pa(),r=Wn.identifierPrefix;if(un){var g=Yd,D=Vd;g=(D&~(1<<32-da(D)-1)).toString(32)+g,r="_"+r+"R_"+g,g=T4++,0<g&&(r+="H"+g.toString(32)),r+="_"}else g=cH++,r="_"+r+"r_"+g.toString(32)+"_";return a.memoizedState=r}function fc(){return Pa().memoizedState=s3.bind(null,Ne)}function s3(a,r){for(var g=a.return;g!==null;){switch(g.tag){case 24:case 3:var D=or(g),z=mu(D),k=Ar(g,z,D);k!==null&&(so(D,"refresh()",a),ui(k,g,D),vf(k,g,D)),a=hf(),r!=null&&k!==null&&console.error("The seed argument is not enabled outside experimental channels."),z.payload={cache:a};return}g=g.return}}function r3(a,r,g){var D=arguments;typeof D[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),D=or(a);var z={lane:D,revertLane:0,gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null};Af(a)?o3(r,z):(z=Ay(a,r,z,D),z!==null&&(so(D,"dispatch()",a),ui(z,a,D),l3(z,r,D)))}function B2(a,r,g){var D=arguments;typeof D[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),D=or(a),Ef(a,r,g,D)&&so(D,"setState()",a)}function Ef(a,r,g,D){var z={lane:D,revertLane:0,gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null};if(Af(a))o3(r,z);else{var k=a.alternate;if(a.lanes===0&&(k===null||k.lanes===0)&&(k=r.lastRenderedReducer,k!==null)){var Y=Ct.H;Ct.H=Pu;try{var J=r.lastRenderedState,ct=k(J,g);if(z.hasEagerState=!0,z.eagerState=ct,dr(ct,J))return Q0(a,r,z,0),Wn===null&&gf(),!1}catch{}finally{Ct.H=Y}}if(g=Ay(a,r,z,D),g!==null)return ui(g,a,D),l3(g,r,D),!0}return!1}function Tf(a,r,g,D){if(Ct.T===null&&Ym===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),D={lane:2,revertLane:_y(),gesture:null,action:D,hasEagerState:!1,eagerState:null,next:null},Af(a)){if(r)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else r=Ay(a,g,D,2),r!==null&&(so(2,"setOptimistic()",a),ui(r,a,2))}function Af(a){var r=a.alternate;return a===Ne||r!==null&&r===Ne}function o3(a,r){r_=E4=!0;var g=a.pending;g===null?r.next=r:(r.next=g.next,g.next=r),a.pending=r}function l3(a,r,g){if(g&4194048){var D=r.lanes;D&=a.pendingLanes,g|=D,r.lanes=g,ot(a,g)}}function k2(a){if(a!==null&&typeof a!="function"){var r=String(a);yL.has(r)||(yL.add(r),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a))}}function Xy(a,r,g,D){var z=a.memoizedState,k=g(D,z);if(a.mode&8){_t(!0);try{k=g(D,z)}finally{_t(!1)}}k===void 0&&(r=B(r)||"Component",pL.has(r)||(pL.add(r),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",r))),z=k==null?z:Dn({},z,k),a.memoizedState=z,a.lanes===0&&(a.updateQueue.baseState=z)}function F2(a,r,g,D,z,k,Y){var J=a.stateNode;if(typeof J.shouldComponentUpdate=="function"){if(g=J.shouldComponentUpdate(D,k,Y),a.mode&8){_t(!0);try{g=J.shouldComponentUpdate(D,k,Y)}finally{_t(!1)}}return g===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",B(r)||"Component"),g}return r.prototype&&r.prototype.isPureReactComponent?!Y0(g,D)||!Y0(z,k):!0}function Ad(a,r,g,D){var z=r.state;typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(g,D),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(g,D),r.state!==z&&(a=L(a)||"Component",uL.has(a)||(uL.add(a),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",a)),P8.enqueueReplaceState(r,r.state,null))}function pl(a,r){var g=r;if("ref"in r){g={};for(var D in r)D!=="ref"&&(g[D]=r[D])}if(a=a.defaultProps){g===r&&(g=Dn({},g));for(var z in a)g[z]===void 0&&(g[z]=a[z])}return g}function cm(a,r){try{o_=r.source?L(r.source):null,j8=null;var g=r.value;if(Ct.actQueue!==null)Ct.thrownErrors.push(g);else{var D=a.onUncaughtError;D(g,{componentStack:r.stack})}}catch(z){setTimeout(function(){throw z})}}function I2(a,r,g){try{o_=g.source?L(g.source):null,j8=L(r);var D=a.onCaughtError;D(g.value,{componentStack:g.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(z){setTimeout(function(){throw z})}}function qy(a,r,g){return g=mu(g),g.tag=w8,g.payload={element:null},g.callback=function(){oe(r.source,cm,a,r)},g}function Qy(a){return a=mu(a),a.tag=w8,a}function Wy(a,r,g,D){var z=g.type.getDerivedStateFromError;if(typeof z=="function"){var k=D.value;a.payload=function(){return z(k)},a.callback=function(){W3(g),oe(D.source,I2,r,g,D)}}var Y=g.stateNode;Y!==null&&typeof Y.componentDidCatch=="function"&&(a.callback=function(){W3(g),oe(D.source,I2,r,g,D),typeof z!="function"&&(op===null?op=new Set([this]):op.add(this)),rH(this,D),typeof z=="function"||!(g.lanes&2)&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",L(g)||"Unknown")})}function u3(a,r,g,D,z){if(g.flags|=32768,wc&&Of(a,z),D!==null&&typeof D=="object"&&typeof D.then=="function"){if(r=g.alternate,r!==null&&qn(r,g,z,!0),un&&(Mc=!0),g=To.current,g!==null){switch(g.tag){case 31:case 13:return Nl===null?f1():g.alternate===null&&Ci===nh&&(Ci=L4),g.flags&=-257,g.flags|=65536,g.lanes=z,D===b4?g.flags|=16384:(r=g.updateQueue,r===null?g.updateQueue=new Set([D]):r.add(D),ux(a,D,z)),!1;case 22:return g.flags|=65536,D===b4?g.flags|=16384:(r=g.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([D])},g.updateQueue=r):(g=r.retryQueue,g===null?r.retryQueue=new Set([D]):g.add(D)),ux(a,D,z)),!1}throw Error("Unexpected Suspense handler tag ("+g.tag+"). This is a bug in React.")}return ux(a,D,z),f1(),!1}if(un)return Mc=!0,r=To.current,r!==null?(!(r.flags&65536)&&(r.flags|=256),r.flags|=65536,r.lanes=z,D!==h8&&cf(me(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:D}),g))):(D!==h8&&cf(me(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:D}),g)),a=a.current.alternate,a.flags|=65536,z&=-z,a.lanes|=z,D=me(D,g),z=qy(a.stateNode,D,z),Sd(a,z),Ci!==ip&&(Ci=Zm)),!1;var k=me(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:D}),g);if(Qx===null?Qx=[k]:Qx.push(k),Ci!==ip&&(Ci=Zm),r===null)return!0;D=me(D,g),g=r;do{switch(g.tag){case 3:return g.flags|=65536,a=z&-z,g.lanes|=a,a=qy(g.stateNode,D,a),Sd(g,a),!1;case 1:if(r=g.type,k=g.stateNode,(g.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||k!==null&&typeof k.componentDidCatch=="function"&&(op===null||!op.has(k))))return g.flags|=65536,z&=-z,g.lanes|=z,z=Qy(z),Wy(z,a,g,D),Sd(g,z),!1}g=g.return}while(g!==null);return!1}function Pi(a,r,g,D){r.child=a===null?J7(r,null,g,D):Qm(r,a.child,g,D)}function U2(a,r,g,D,z){g=g.render;var k=r.ref;if("ref"in D){var Y={};for(var J in D)J!=="ref"&&(Y[J]=D[J])}else Y=D;return ao(r),D=sr(a,r,g,Y,k,z),J=Ly(),a!==null&&!Ea?(Py(a,r,z),go(a,r,z)):(un&&J&&la(r),r.flags|=1,Pi(a,r,D,z),r.child)}function H2(a,r,g,D,z){if(a===null){var k=g.type;return typeof k=="function"&&!v1(k)&&k.defaultProps===void 0&&g.compare===null?(g=Nd(k),r.tag=15,r.type=g,bu(r,k),yn(a,r,g,D,z)):(a=y1(g.type,null,D,r,r.mode,z),a.ref=r.ref,a.return=r,r.child=a)}if(k=a.child,!Ze(a,z)){var Y=k.memoizedProps;if(g=g.compare,g=g!==null?g:Y0,g(Y,D)&&a.ref===r.ref)return go(a,r,z)}return r.flags|=1,a=Tu(k,D),a.ref=r.ref,a.return=r,r.child=a}function yn(a,r,g,D,z){if(a!==null){var k=a.memoizedProps;if(Y0(k,D)&&a.ref===r.ref&&r.type===a.type)if(Ea=!1,r.pendingProps=D=k,Ze(a,z))a.flags&131072&&(Ea=!0);else return r.lanes=a.lanes,go(a,r,z)}return hm(a,r,g,D,z)}function Zy(a,r,g,D){var z=D.children,k=a!==null?a.memoizedState:null;if(a===null&&r.stateNode===null&&(r.stateNode={_visibility:Ix,_pendingMarkers:null,_retryCache:null,_transitions:null}),D.mode==="hidden"){if(r.flags&128){if(k=k!==null?k.baseLanes|g:g,a!==null){for(D=r.child=a.child,z=0;D!==null;)z=z|D.lanes|D.childLanes,D=D.sibling;D=z&~k}else D=0,r.child=null;return G2(a,r,k,g,D)}if(g&536870912)r.memoizedState={baseLanes:0,cachePool:null},a!==null&&V0(r,k!==null?k.cachePool:null),k!==null?R2(r,k):wy(r),My(r);else return D=r.lanes=536870912,G2(a,r,k!==null?k.baseLanes|g:g,g,D)}else k!==null?(V0(r,k.cachePool),R2(r,k),ho(r),r.memoizedState=null):(a!==null&&V0(r,null),wy(r),ho(r));return Pi(a,r,z,g),r.child}function dm(a,r){return a!==null&&a.tag===22||r.stateNode!==null||(r.stateNode={_visibility:Ix,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function G2(a,r,g,D,z){var k=by();return k=k===null?null:{parent:xs?Fi._currentValue:Fi._currentValue2,pool:k},r.memoizedState={baseLanes:g,cachePool:k},a!==null&&V0(r,null),wy(r),My(r),a!==null&&qn(a,r,D,!0),r.childLanes=z,null}function Jy(a,r){var g=r.hidden;return g!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
182
+ Incoming: %s`,Rt,"["+r.join(", ")+"]","["+a.join(", ")+"]");for(var g=0;g<r.length&&g<a.length;g++)if(!dr(a[g],r[g]))return!1;return!0}function sr(a,r,g,D,z,k){Jd=k,Ne=r,Pl=a!==null?a._debugHookTypes:null,th=-1,Gx=a!==null&&a.type!==r.type,(Object.prototype.toString.call(g)==="[object AsyncFunction]"||Object.prototype.toString.call(g)==="[object AsyncGeneratorFunction]")&&(k=L(Ne),O8.has(k)||(O8.add(k),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",k===null?"An unknown Component":"<"+k+">"))),r.memoizedState=null,r.updateQueue=null,r.lanes=0,Ct.H=a!==null&&a.memoizedState!==null?L8:Pl!==null?rL:N8,Wm=k=(r.mode&8)!==Me;var Y=E8(g,D,z);if(Wm=!1,r_&&(Y=Ny(r,g,D,z)),k){_t(!0);try{Y=Ny(r,g,D,z)}finally{_t(!1)}}return em(a,r),Y}function em(a,r){r._debugHookTypes=Pl,r.dependencies===null?$d!==null&&(r.dependencies={lanes:0,firstContext:null,_debugThenableState:$d}):r.dependencies._debugThenableState=$d,Ct.H=Vx;var g=Qn!==null&&Qn.next!==null;if(Jd=0,Pl=Rt=xa=Qn=Ne=null,th=-1,a!==null&&(a.flags&65011712)!==(r.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),E4=!1,Hx=0,$d=null,g)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");a===null||Ea||(a=a.dependencies,a!==null&&yd(a)&&(Ea=!0)),kx?(kx=!1,a=!0):a=!1,a&&(r=L(r)||"Unknown",aL.has(r)||O8.has(r)||(aL.add(r),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Ny(a,r,g,D){Ne=a;var z=0;do{if(r_&&($d=null),Hx=0,r_=!1,z>=dH)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(z+=1,Gx=!1,xa=Qn=null,a.updateQueue!=null){var k=a.updateQueue;k.lastEffect=null,k.events=null,k.stores=null,k.memoCache!=null&&(k.memoCache.index=0)}th=-1,Ct.H=oL,k=E8(r,g,D)}while(r_);return k}function w2(){var a=Ct.H,r=a.useState()[0];return r=typeof r.then=="function"?gu(r):r,a=a.useState()[0],(Qn!==null?Qn.memoizedState:null)!==a&&(Ne.flags|=1024),r}function Ly(){var a=T4!==0;return T4=0,a}function Py(a,r,g){r.updateQueue=a.updateQueue,r.flags=(r.mode&16)!==Me?r.flags&-402655237:r.flags&-2053,a.lanes&=~g}function nm(a){if(E4){for(a=a.memoizedState;a!==null;){var r=a.queue;r!==null&&(r.pending=null),a=a.next}E4=!1}Jd=0,Pl=xa=Qn=Ne=null,th=-1,Rt=null,r_=!1,Hx=T4=0,$d=null}function Pa(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xa===null?Ne.memoizedState=xa=a:xa=xa.next=a,xa}function Cn(){if(Qn===null){var a=Ne.alternate;a=a!==null?a.memoizedState:null}else a=Qn.next;var r=xa===null?Ne.memoizedState:xa.next;if(r!==null)xa=r,Qn=a;else{if(a===null)throw Ne.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Qn=a,a={memoizedState:Qn.memoizedState,baseState:Qn.baseState,baseQueue:Qn.baseQueue,queue:Qn.queue,next:null},xa===null?Ne.memoizedState=xa=a:xa=xa.next=a}return xa}function xd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gu(a){var r=Hx;return Hx+=1,$d===null&&($d=_2()),a=xy($d,a,r),r=Ne,(xa===null?r.memoizedState:xa.next)===null&&(r=r.alternate,Ct.H=r!==null&&r.memoizedState!==null?L8:N8),a}function En(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return gu(a);if(a.$$typeof===ji)return kn(a)}throw Error("An unsupported type was passed to use(): "+String(a))}function Ed(a){var r=null,g=Ne.updateQueue;if(g!==null&&(r=g.memoCache),r==null){var D=Ne.alternate;D!==null&&(D=D.updateQueue,D!==null&&(D=D.memoCache,D!=null&&(r={data:D.data.map(function(z){return z.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),g===null&&(g=xd(),Ne.updateQueue=g),g.memoCache=r,g=r.data[r.index],g===void 0||Gx)for(g=r.data[r.index]=Array(a),D=0;D<a;D++)g[D]=e4;else g.length!==a&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",g.length,a);return r.index++,g}function fo(a,r){return typeof r=="function"?r(a):r}function jy(a,r,g){var D=Pa();if(g!==void 0){var z=g(r);if(Wm){_t(!0);try{g(r)}finally{_t(!1)}}}else z=r;return D.memoizedState=D.baseState=z,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:z},D.queue=a,a=a.dispatch=r3.bind(null,Ne,a),[D.memoizedState,a]}function hl(a){var r=Cn();return fl(r,Qn,a)}function fl(a,r,g){var D=a.queue;if(D===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");D.lastRenderedReducer=g;var z=a.baseQueue,k=D.pending;if(k!==null){if(z!==null){var Y=z.next;z.next=k.next,k.next=Y}r.baseQueue!==z&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),r.baseQueue=z=k,D.pending=null}if(k=a.baseState,z===null)a.memoizedState=k;else{r=z.next;var J=Y=null,ct=null,vt=r,Mt=!1;do{var Nt=vt.lane&-536870913;if(Nt!==vt.lane?(Qe&Nt)===Nt:(Jd&Nt)===Nt){var kt=vt.revertLane;if(kt===0)ct!==null&&(ct=ct.next={lane:0,revertLane:0,gesture:null,action:vt.action,hasEagerState:vt.hasEagerState,eagerState:vt.eagerState,next:null}),Nt===Ym&&(Mt=!0);else if((Jd&kt)===kt){vt=vt.next,kt===Ym&&(Mt=!0);continue}else Nt={lane:0,revertLane:vt.revertLane,gesture:null,action:vt.action,hasEagerState:vt.hasEagerState,eagerState:vt.eagerState,next:null},ct===null?(J=ct=Nt,Y=k):ct=ct.next=Nt,Ne.lanes|=kt,sp|=kt;Nt=vt.action,Wm&&g(k,Nt),k=vt.hasEagerState?vt.eagerState:g(k,Nt)}else kt={lane:Nt,revertLane:vt.revertLane,gesture:vt.gesture,action:vt.action,hasEagerState:vt.hasEagerState,eagerState:vt.eagerState,next:null},ct===null?(J=ct=kt,Y=k):ct=ct.next=kt,Ne.lanes|=Nt,sp|=Nt;vt=vt.next}while(vt!==null&&vt!==r);if(ct===null?Y=k:ct.next=J,!dr(k,a.memoizedState)&&(Ea=!0,Mt&&(g=$1,g!==null)))throw g;a.memoizedState=k,a.baseState=Y,a.baseQueue=ct,D.lastRenderedState=k}return z===null&&(D.lanes=0),[a.memoizedState,D.dispatch]}function bf(a){var r=Cn(),g=r.queue;if(g===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");g.lastRenderedReducer=a;var D=g.dispatch,z=g.pending,k=r.memoizedState;if(z!==null){g.pending=null;var Y=z=z.next;do k=a(k,Y.action),Y=Y.next;while(Y!==z);dr(k,r.memoizedState)||(Ea=!0),r.memoizedState=k,r.baseQueue===null&&(r.baseState=k),g.lastRenderedState=k}return[k,D]}function zy(a,r,g){var D=Ne,z=Pa();if(un){if(g===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var k=g();s_||k===g()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),s_=!0)}else{if(k=r(),s_||(g=r(),dr(k,g)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),s_=!0)),Wn===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Qe&127||po(D,r,k)}return z.memoizedState=k,g={value:k,getSnapshot:r},z.queue=g,zs(By.bind(null,D,g,a),[a]),D.flags|=2048,wr(Ll|pr,{destroy:void 0},D2.bind(null,D,g,k,r),null),k}function lc(a,r,g){var D=Ne,z=Cn(),k=un;if(k){if(g===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");g=g()}else if(g=r(),!s_){var Y=r();dr(g,Y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),s_=!0)}(Y=!dr((Qn||z).memoizedState,g))&&(z.memoizedState=g,Ea=!0),z=z.queue;var J=By.bind(null,D,z,a);if(Za(2048,pr,J,[a]),z.getSnapshot!==r||Y||xa!==null&&xa.memoizedState.tag&Ll){if(D.flags|=2048,wr(Ll|pr,{destroy:void 0},D2.bind(null,D,z,g,r),null),Wn===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");k||Jd&127||po(D,r,g)}return g}function po(a,r,g){a.flags|=16384,a={getSnapshot:r,value:g},r=Ne.updateQueue,r===null?(r=xd(),Ne.updateQueue=r,r.stores=[a]):(g=r.stores,g===null?r.stores=[a]:g.push(a))}function D2(a,r,g,D){r.value=g,r.getSnapshot=D,M2(r)&&ky(a)}function By(a,r,g){return g(function(){M2(r)&&(so(2,"updateSyncExternalStore()",a),ky(a))})}function M2(a){var r=a.getSnapshot;a=a.value;try{var g=r();return!dr(a,g)}catch{return!0}}function ky(a){var r=Qa(a,2);r!==null&&ui(r,a,2)}function im(a){var r=Pa();if(typeof a=="function"){var g=a;if(a=g(),Wm){_t(!0);try{g()}finally{_t(!1)}}}return r.memoizedState=r.baseState=a,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:a},r}function Sf(a){a=im(a);var r=a.queue,g=B2.bind(null,Ne,r);return r.dispatch=g,[a.memoizedState,g]}function Fy(a){var r=Pa();r.memoizedState=r.baseState=a;var g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=g,r=Tf.bind(null,Ne,!0,g),g.dispatch=r,[a,r]}function O2(a,r){var g=Cn();return $C(g,Qn,a,r)}function $C(a,r,g,D){return a.baseState=g,fl(a,Qn,typeof D=="function"?D:fo)}function N2(a,r){var g=Cn();return Qn!==null?$C(g,Qn,a,r):(g.baseState=a,[a,g.queue.dispatch])}function t3(a,r,g,D,z){if(Af(a))throw Error("Cannot update form state while rendering.");if(a=r.action,a!==null){var k={payload:z,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(Y){k.listeners.push(Y)}};Ct.T!==null?g(!0):k.isTransition=!1,D(k),g=r.pending,g===null?(k.next=r.pending=k,Cr(r,k)):(k.next=g.next,r.pending=g.next=k)}}function Cr(a,r){var g=r.action,D=r.payload,z=a.state;if(r.isTransition){var k=Ct.T,Y={};Y._updatedFibers=new Set,Ct.T=Y;try{var J=g(z,D),ct=Ct.S;ct!==null&&ct(Y,J),Iy(a,r,J)}catch(vt){Uy(a,r,vt)}finally{k!==null&&Y.types!==null&&(k.types!==null&&k.types!==Y.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),k.types=Y.types),Ct.T=k,k===null&&Y._updatedFibers&&(a=Y._updatedFibers.size,Y._updatedFibers.clear(),10<a&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{Y=g(z,D),Iy(a,r,Y)}catch(vt){Uy(a,r,vt)}}function Iy(a,r,g){g!==null&&typeof g=="object"&&typeof g.then=="function"?(Ct.asyncTransitions++,g.then(lm,lm),g.then(function(D){L2(a,r,D)},function(D){return Uy(a,r,D)}),r.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):L2(a,r,g)}function L2(a,r,g){r.status="fulfilled",r.value=g,e3(r),a.state=g,r=a.pending,r!==null&&(g=r.next,g===r?a.pending=null:(g=g.next,r.next=g,Cr(a,g)))}function Uy(a,r,g){var D=a.pending;if(a.pending=null,D!==null){D=D.next;do r.status="rejected",r.reason=g,e3(r),r=r.next;while(r!==D)}a.action=null}function e3(a){a=a.listeners;for(var r=0;r<a.length;r++)(0,a[r])()}function am(a,r){return r}function Li(a,r){if(un){var g=Wn.formState;if(g!==null){t:{var D=Ne;if(un){if(Ti){var z=Hs(Ti,Dl);if(z){Ti=xc(z),D=xo(z);break t}}sl(D)}D=!1}D&&(r=g[0])}}g=Pa(),g.memoizedState=g.baseState=r,D={pending:null,lanes:0,dispatch:null,lastRenderedReducer:am,lastRenderedState:r},g.queue=D,g=B2.bind(null,Ne,D),D.dispatch=g,D=im(!1);var k=Tf.bind(null,Ne,!1,D.queue);return D=Pa(),z={state:r,dispatch:null,action:a,pending:null},D.queue=z,g=t3.bind(null,Ne,z,k,g),z.dispatch=g,D.memoizedState=a,[r,g,!1]}function sm(a){var r=Cn();return Wa(r,Qn,a)}function Wa(a,r,g){if(r=fl(a,r,am)[0],a=hl(fo)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var D=gu(r)}catch(Y){throw Y===t_?_4:Y}else D=r;r=Cn();var z=r.queue,k=z.dispatch;return g!==r.memoizedState&&(Ne.flags|=2048,wr(Ll|pr,{destroy:void 0},n3.bind(null,z,g),null)),[D,k,a]}function n3(a,r){a.action=r}function Rr(a){var r=Cn(),g=Qn;if(g!==null)return Wa(r,g,a);Cn(),r=r.memoizedState,g=Cn();var D=g.queue.dispatch;return g.memoizedState=a,[r,D,!1]}function wr(a,r,g,D){return a={tag:a,create:g,deps:D,inst:r,next:null},r=Ne.updateQueue,r===null&&(r=xd(),Ne.updateQueue=r),g=r.lastEffect,g===null?r.lastEffect=a.next=a:(D=g.next,g.next=a,a.next=D,r.lastEffect=a),a}function mo(a){var r=Pa();return a={current:a},r.memoizedState=a}function vu(a,r,g,D){var z=Pa();Ne.flags|=a,z.memoizedState=wr(Ll|r,{destroy:void 0},g,D===void 0?null:D)}function Za(a,r,g,D){var z=Cn();D=D===void 0?null:D;var k=z.memoizedState.inst;Qn!==null&&D!==null&&Oy(D,Qn.memoizedState.deps)?z.memoizedState=wr(r,k,g,D):(Ne.flags|=a,z.memoizedState=wr(Ll|r,k,g,D))}function zs(a,r){(Ne.mode&16)!==Me?vu(276826112,pr,a,r):vu(8390656,pr,a,r)}function i3(a){Ne.flags|=4;var r=Ne.updateQueue;if(r===null)r=xd(),Ne.updateQueue=r,r.events=[a];else{var g=r.events;g===null?r.events=[a]:g.push(a)}}function uc(a){var r=Pa(),g={impl:a};return r.memoizedState=g,function(){if((cn&is)!==ns)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return g.impl.apply(void 0,arguments)}}function cc(a){var r=Cn().memoizedState;return i3({ref:r,nextImpl:a}),function(){if((cn&is)!==ns)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return r.impl.apply(void 0,arguments)}}function yu(a,r){var g=4194308;return(Ne.mode&16)!==Me&&(g|=134217728),vu(g,Ao,a,r)}function P2(a,r){if(typeof r=="function"){a=a();var g=r(a);return function(){typeof g=="function"?g():r(null)}}if(r!=null)return r.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(r).join(", ")+"}"),a=a(),r.current=a,function(){r.current=null}}function Hy(a,r,g){typeof r!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",r!==null?typeof r:"null"),g=g!=null?g.concat([a]):null;var D=4194308;(Ne.mode&16)!==Me&&(D|=134217728),vu(D,Ao,P2.bind(null,r,a),g)}function dc(a,r,g){typeof r!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",r!==null?typeof r:"null"),g=g!=null?g.concat([a]):null,Za(4,Ao,P2.bind(null,r,a),g)}function Gy(a,r){return Pa().memoizedState=[a,r===void 0?null:r],a}function Td(a,r){var g=Cn();r=r===void 0?null:r;var D=g.memoizedState;return r!==null&&Oy(r,D[1])?D[0]:(g.memoizedState=[a,r],a)}function Vy(a,r){var g=Pa();r=r===void 0?null:r;var D=a();if(Wm){_t(!0);try{a()}finally{_t(!1)}}return g.memoizedState=[D,r],D}function xf(a,r){var g=Cn();r=r===void 0?null:r;var D=g.memoizedState;if(r!==null&&Oy(r,D[1]))return D[0];if(D=a(),Wm){_t(!0);try{a()}finally{_t(!1)}}return g.memoizedState=[D,r],D}function rm(a,r){var g=Pa();return om(g,a,r)}function Yy(a,r){var g=Cn();return Bs(g,Qn.memoizedState,a,r)}function j2(a,r){var g=Cn();return Qn===null?om(g,a,r):Bs(g,Qn.memoizedState,a,r)}function om(a,r,g){return g===void 0||Jd&1073741824&&!(Qe&261930)?a.memoizedState=r:(a.memoizedState=g,a=M3(),Ne.lanes|=a,sp|=a,g)}function Bs(a,r,g,D){return dr(g,r)?g:i_.current!==null?(a=om(a,g,D),dr(a,r)||(Ea=!0),a):!(Jd&42)||Jd&1073741824&&!(Qe&261930)?(Ea=!0,a.memoizedState=g):(a=M3(),Ne.lanes|=a,sp|=a,r)}function lm(){Ct.asyncTransitions--}function ys(a,r,g,D,z){var k=Us();zi(k!==0&&8>k?k:8);var Y=Ct.T,J={};J._updatedFibers=new Set,Ct.T=J,Tf(a,!1,r,g);try{var ct=z(),vt=Ct.S;if(vt!==null&&vt(J,ct),ct!==null&&typeof ct=="object"&&typeof ct.then=="function"){Ct.asyncTransitions++,ct.then(lm,lm);var Mt=y2(ct,D);Ef(a,r,Mt,or(a))}else Ef(a,r,D,or(a))}catch(Nt){Ef(a,r,{then:function(){},status:"rejected",reason:Nt},or(a))}finally{zi(k),Y!==null&&J.types!==null&&(Y.types!==null&&Y.types!==J.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),Y.types=J.types),Ct.T=Y,Y===null&&J._updatedFibers&&(a=J._updatedFibers.size,J._updatedFibers.clear(),10<a&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function z2(a){var r=a.memoizedState;if(r!==null)return r;r={memoizedState:Pr,baseState:Pr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:Pr},next:null};var g={};return r.next={memoizedState:g,baseState:g,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fo,lastRenderedState:g},next:null},a.memoizedState=r,a=a.alternate,a!==null&&(a.memoizedState=r),r}function Ky(){var a=im(!1);return a=ys.bind(null,Ne,a.queue,!0,!1),Pa().memoizedState=a,[!1,a]}function a3(){var a=hl(fo)[0],r=Cn().memoizedState;return[typeof a=="boolean"?a:gu(a),r]}function _u(){var a=bf(fo)[0],r=Cn().memoizedState;return[typeof a=="boolean"?a:gu(a),r]}function hc(){return kn(jr)}function um(){var a=Pa(),r=Wn.identifierPrefix;if(un){var g=Yd,D=Vd;g=(D&~(1<<32-da(D)-1)).toString(32)+g,r="_"+r+"R_"+g,g=T4++,0<g&&(r+="H"+g.toString(32)),r+="_"}else g=cH++,r="_"+r+"r_"+g.toString(32)+"_";return a.memoizedState=r}function fc(){return Pa().memoizedState=s3.bind(null,Ne)}function s3(a,r){for(var g=a.return;g!==null;){switch(g.tag){case 24:case 3:var D=or(g),z=mu(D),k=Ar(g,z,D);k!==null&&(so(D,"refresh()",a),ui(k,g,D),vf(k,g,D)),a=hf(),r!=null&&k!==null&&console.error("The seed argument is not enabled outside experimental channels."),z.payload={cache:a};return}g=g.return}}function r3(a,r,g){var D=arguments;typeof D[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),D=or(a);var z={lane:D,revertLane:0,gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null};Af(a)?o3(r,z):(z=Ay(a,r,z,D),z!==null&&(so(D,"dispatch()",a),ui(z,a,D),l3(z,r,D)))}function B2(a,r,g){var D=arguments;typeof D[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),D=or(a),Ef(a,r,g,D)&&so(D,"setState()",a)}function Ef(a,r,g,D){var z={lane:D,revertLane:0,gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null};if(Af(a))o3(r,z);else{var k=a.alternate;if(a.lanes===0&&(k===null||k.lanes===0)&&(k=r.lastRenderedReducer,k!==null)){var Y=Ct.H;Ct.H=Pu;try{var J=r.lastRenderedState,ct=k(J,g);if(z.hasEagerState=!0,z.eagerState=ct,dr(ct,J))return Q0(a,r,z,0),Wn===null&&gf(),!1}catch{}finally{Ct.H=Y}}if(g=Ay(a,r,z,D),g!==null)return ui(g,a,D),l3(g,r,D),!0}return!1}function Tf(a,r,g,D){if(Ct.T===null&&Ym===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),D={lane:2,revertLane:_y(),gesture:null,action:D,hasEagerState:!1,eagerState:null,next:null},Af(a)){if(r)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else r=Ay(a,g,D,2),r!==null&&(so(2,"setOptimistic()",a),ui(r,a,2))}function Af(a){var r=a.alternate;return a===Ne||r!==null&&r===Ne}function o3(a,r){r_=E4=!0;var g=a.pending;g===null?r.next=r:(r.next=g.next,g.next=r),a.pending=r}function l3(a,r,g){if(g&4194048){var D=r.lanes;D&=a.pendingLanes,g|=D,r.lanes=g,ot(a,g)}}function k2(a){if(a!==null&&typeof a!="function"){var r=String(a);yL.has(r)||(yL.add(r),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a))}}function Xy(a,r,g,D){var z=a.memoizedState,k=g(D,z);if(a.mode&8){_t(!0);try{k=g(D,z)}finally{_t(!1)}}k===void 0&&(r=B(r)||"Component",pL.has(r)||(pL.add(r),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",r))),z=k==null?z:Dn({},z,k),a.memoizedState=z,a.lanes===0&&(a.updateQueue.baseState=z)}function F2(a,r,g,D,z,k,Y){var J=a.stateNode;if(typeof J.shouldComponentUpdate=="function"){if(g=J.shouldComponentUpdate(D,k,Y),a.mode&8){_t(!0);try{g=J.shouldComponentUpdate(D,k,Y)}finally{_t(!1)}}return g===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",B(r)||"Component"),g}return r.prototype&&r.prototype.isPureReactComponent?!Y0(g,D)||!Y0(z,k):!0}function Ad(a,r,g,D){var z=r.state;typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(g,D),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(g,D),r.state!==z&&(a=L(a)||"Component",uL.has(a)||(uL.add(a),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",a)),P8.enqueueReplaceState(r,r.state,null))}function pl(a,r){var g=r;if("ref"in r){g={};for(var D in r)D!=="ref"&&(g[D]=r[D])}if(a=a.defaultProps){g===r&&(g=Dn({},g));for(var z in a)g[z]===void 0&&(g[z]=a[z])}return g}function cm(a,r){try{o_=r.source?L(r.source):null,j8=null;var g=r.value;if(Ct.actQueue!==null)Ct.thrownErrors.push(g);else{var D=a.onUncaughtError;D(g,{componentStack:r.stack})}}catch(z){setTimeout(function(){throw z})}}function I2(a,r,g){try{o_=g.source?L(g.source):null,j8=L(r);var D=a.onCaughtError;D(g.value,{componentStack:g.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(z){setTimeout(function(){throw z})}}function qy(a,r,g){return g=mu(g),g.tag=w8,g.payload={element:null},g.callback=function(){oe(r.source,cm,a,r)},g}function Qy(a){return a=mu(a),a.tag=w8,a}function Wy(a,r,g,D){var z=g.type.getDerivedStateFromError;if(typeof z=="function"){var k=D.value;a.payload=function(){return z(k)},a.callback=function(){W3(g),oe(D.source,I2,r,g,D)}}var Y=g.stateNode;Y!==null&&typeof Y.componentDidCatch=="function"&&(a.callback=function(){W3(g),oe(D.source,I2,r,g,D),typeof z!="function"&&(op===null?op=new Set([this]):op.add(this)),rH(this,D),typeof z=="function"||!(g.lanes&2)&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",L(g)||"Unknown")})}function u3(a,r,g,D,z){if(g.flags|=32768,wc&&Of(a,z),D!==null&&typeof D=="object"&&typeof D.then=="function"){if(r=g.alternate,r!==null&&qn(r,g,z,!0),un&&(Mc=!0),g=To.current,g!==null){switch(g.tag){case 31:case 13:return Nl===null?f1():g.alternate===null&&Ci===nh&&(Ci=L4),g.flags&=-257,g.flags|=65536,g.lanes=z,D===b4?g.flags|=16384:(r=g.updateQueue,r===null?g.updateQueue=new Set([D]):r.add(D),ux(a,D,z)),!1;case 22:return g.flags|=65536,D===b4?g.flags|=16384:(r=g.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([D])},g.updateQueue=r):(g=r.retryQueue,g===null?r.retryQueue=new Set([D]):g.add(D)),ux(a,D,z)),!1}throw Error("Unexpected Suspense handler tag ("+g.tag+"). This is a bug in React.")}return ux(a,D,z),f1(),!1}if(un)return Mc=!0,r=To.current,r!==null?(!(r.flags&65536)&&(r.flags|=256),r.flags|=65536,r.lanes=z,D!==h8&&cf(me(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:D}),g))):(D!==h8&&cf(me(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:D}),g)),a=a.current.alternate,a.flags|=65536,z&=-z,a.lanes|=z,D=me(D,g),z=qy(a.stateNode,D,z),Sd(a,z),Ci!==ip&&(Ci=Zm)),!1;var k=me(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:D}),g);if(Qx===null?Qx=[k]:Qx.push(k),Ci!==ip&&(Ci=Zm),r===null)return!0;D=me(D,g),g=r;do{switch(g.tag){case 3:return g.flags|=65536,a=z&-z,g.lanes|=a,a=qy(g.stateNode,D,a),Sd(g,a),!1;case 1:if(r=g.type,k=g.stateNode,(g.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||k!==null&&typeof k.componentDidCatch=="function"&&(op===null||!op.has(k))))return g.flags|=65536,z&=-z,g.lanes|=z,z=Qy(z),Wy(z,a,g,D),Sd(g,z),!1}g=g.return}while(g!==null);return!1}function Pi(a,r,g,D){r.child=a===null?J7(r,null,g,D):Qm(r,a.child,g,D)}function U2(a,r,g,D,z){g=g.render;var k=r.ref;if("ref"in D){var Y={};for(var J in D)J!=="ref"&&(Y[J]=D[J])}else Y=D;return ao(r),D=sr(a,r,g,Y,k,z),J=Ly(),a!==null&&!Ea?(Py(a,r,z),go(a,r,z)):(un&&J&&la(r),r.flags|=1,Pi(a,r,D,z),r.child)}function H2(a,r,g,D,z){if(a===null){var k=g.type;return typeof k=="function"&&!v1(k)&&k.defaultProps===void 0&&g.compare===null?(g=Nd(k),r.tag=15,r.type=g,bu(r,k),yn(a,r,g,D,z)):(a=y1(g.type,null,D,r,r.mode,z),a.ref=r.ref,a.return=r,r.child=a)}if(k=a.child,!Ze(a,z)){var Y=k.memoizedProps;if(g=g.compare,g=g!==null?g:Y0,g(Y,D)&&a.ref===r.ref)return go(a,r,z)}return r.flags|=1,a=Tu(k,D),a.ref=r.ref,a.return=r,r.child=a}function yn(a,r,g,D,z){if(a!==null){var k=a.memoizedProps;if(Y0(k,D)&&a.ref===r.ref&&r.type===a.type)if(Ea=!1,r.pendingProps=D=k,Ze(a,z))a.flags&131072&&(Ea=!0);else return r.lanes=a.lanes,go(a,r,z)}return hm(a,r,g,D,z)}function Zy(a,r,g,D){var z=D.children,k=a!==null?a.memoizedState:null;if(a===null&&r.stateNode===null&&(r.stateNode={_visibility:Ix,_pendingMarkers:null,_retryCache:null,_transitions:null}),D.mode==="hidden"){if(r.flags&128){if(k=k!==null?k.baseLanes|g:g,a!==null){for(D=r.child=a.child,z=0;D!==null;)z=z|D.lanes|D.childLanes,D=D.sibling;D=z&~k}else D=0,r.child=null;return G2(a,r,k,g,D)}if(g&536870912)r.memoizedState={baseLanes:0,cachePool:null},a!==null&&V0(r,k!==null?k.cachePool:null),k!==null?R2(r,k):wy(r),My(r);else return D=r.lanes=536870912,G2(a,r,k!==null?k.baseLanes|g:g,g,D)}else k!==null?(V0(r,k.cachePool),R2(r,k),ho(r),r.memoizedState=null):(a!==null&&V0(r,null),wy(r),ho(r));return Pi(a,r,z,g),r.child}function dm(a,r){return a!==null&&a.tag===22||r.stateNode!==null||(r.stateNode={_visibility:Ix,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function G2(a,r,g,D,z){var k=by();return k=k===null?null:{parent:xs?Fi._currentValue:Fi._currentValue2,pool:k},r.memoizedState={baseLanes:g,cachePool:k},a!==null&&V0(r,null),wy(r),My(r),a!==null&&qn(a,r,D,!0),r.childLanes=z,null}function Jy(a,r){var g=r.hidden;return g!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
183
183
  - <Activity %s>
184
184
  + <Activity %s>`,g===!0?"hidden":g===!1?"hidden={false}":"hidden={...}",g?'mode="hidden"':'mode="visible"'),r=mm({mode:r.mode,children:r.children},a.mode),r.ref=a.ref,a.child=r,r.return=a,r}function c3(a,r,g){return Qm(r,a.child,null,g),a=Jy(r,r.pendingProps),a.flags|=2,vs(r),r.memoizedState=null,a}function HD(a,r,g){var D=r.pendingProps,z=(r.flags&128)!==0;if(r.flags&=-129,a===null){if(un){if(D.mode==="hidden")return a=Jy(r,D),r.lanes=536870912,dm(null,a);if(Dy(r),(a=Ti)?(g=nn(a,Dl),g!==null&&(D={dehydrated:g,treeContext:Qt(),retryLane:536870912,hydrationErrors:null},r.memoizedState=D,D=Ld(g),D.return=r,r.child=D,Es=r,Ti=null)):g=null,g===null)throw uf(r,a),sl(r);return r.lanes=536870912,null}return Jy(r,D)}var k=a.memoizedState;if(k!==null){var Y=k.dehydrated;if(Dy(r),z)if(r.flags&256)r.flags&=-257,r=c3(a,r,g);else if(r.memoizedState!==null)r.child=a.child,r.flags|=128,r=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(uu(),g&536870912&&h1(r),Ea||qn(a,r,g,!1),z=(g&a.childLanes)!==0,Ea||z){if(D=Wn,D!==null&&(Y=dt(D,g),Y!==0&&Y!==k.retryLane))throw k.retryLane=Y,Qa(a,Y),ui(D,a,Y),z8;f1(),r=c3(a,r,g)}else a=k.treeContext,ts&&(Ti=k1(Y),Es=r,un=!0,Zf=null,Mc=!1,Eo=null,Dl=!1,a!==null&&de(r,a)),r=Jy(r,D),r.flags|=4096;return r}return k=a.child,D={mode:D.mode,children:D.children},g&536870912&&g&a.lanes&&h1(r),a=Tu(k,D),a.ref=r.ref,r.child=a,a.return=r,a}function $y(a,r){var g=r.ref;if(g===null)a!==null&&a.ref!==null&&(r.flags|=4194816);else{if(typeof g!="function"&&typeof g!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(a===null||a.ref!==g)&&(r.flags|=4194816)}}function hm(a,r,g,D,z){if(g.prototype&&typeof g.prototype.render=="function"){var k=B(g)||"Unknown";_L[k]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",k,k),_L[k]=!0)}return r.mode&8&&Lu.recordLegacyContextWarning(r,null),a===null&&(bu(r,r.type),g.contextTypes&&(k=B(g)||"Unknown",SL[k]||(SL[k]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",k)))),ao(r),g=sr(a,r,g,D,void 0,z),D=Ly(),a!==null&&!Ea?(Py(a,r,z),go(a,r,z)):(un&&D&&la(r),r.flags|=1,Pi(a,r,g,z),r.child)}function ml(a,r,g,D,z,k){return ao(r),th=-1,Gx=a!==null&&a.type!==r.type,r.updateQueue=null,g=Ny(r,D,g,z),em(a,r),D=Ly(),a!==null&&!Ea?(Py(a,r,k),go(a,r,k)):(un&&D&&la(r),r.flags|=1,Pi(a,r,g,k),r.child)}function V2(a,r,g,D,z){switch(c(r)){case!1:var k=r.stateNode,Y=new r.type(r.memoizedProps,k.context).state;k.updater.enqueueSetState(k,Y,null);break;case!0:r.flags|=128,r.flags|=65536,k=Error("Simulated error coming from DevTools");var J=z&-z;if(r.lanes|=J,Y=Wn,Y===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");J=Qy(J),Wy(J,Y,r,me(k,r)),Sd(r,J)}if(ao(r),r.stateNode===null){if(Y=hi,k=g.contextType,"contextType"in g&&k!==null&&(k===void 0||k.$$typeof!==ji)&&!vL.has(g)&&(vL.add(g),J=k===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof k!="object"?" However, it is set to a "+typeof k+".":k.$$typeof===jd?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(k).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",B(g)||"Component",J)),typeof k=="object"&&k!==null&&(Y=kn(k)),k=new g(D,Y),r.mode&8){_t(!0);try{k=new g(D,Y)}finally{_t(!1)}}if(Y=r.memoizedState=k.state!==null&&k.state!==void 0?k.state:null,k.updater=P8,r.stateNode=k,k._reactInternals=r,k._reactInternalInstance=lL,typeof g.getDerivedStateFromProps=="function"&&Y===null&&(Y=B(g)||"Component",cL.has(Y)||(cL.add(Y),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",Y,k.state===null?"null":"undefined",Y))),typeof g.getDerivedStateFromProps=="function"||typeof k.getSnapshotBeforeUpdate=="function"){var ct=J=Y=null;if(typeof k.componentWillMount=="function"&&k.componentWillMount.__suppressDeprecationWarning!==!0?Y="componentWillMount":typeof k.UNSAFE_componentWillMount=="function"&&(Y="UNSAFE_componentWillMount"),typeof k.componentWillReceiveProps=="function"&&k.componentWillReceiveProps.__suppressDeprecationWarning!==!0?J="componentWillReceiveProps":typeof k.UNSAFE_componentWillReceiveProps=="function"&&(J="UNSAFE_componentWillReceiveProps"),typeof k.componentWillUpdate=="function"&&k.componentWillUpdate.__suppressDeprecationWarning!==!0?ct="componentWillUpdate":typeof k.UNSAFE_componentWillUpdate=="function"&&(ct="UNSAFE_componentWillUpdate"),Y!==null||J!==null||ct!==null){k=B(g)||"Component";var vt=typeof g.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";hL.has(k)||(hL.add(k),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
185
185
 
@@ -189,8 +189,8 @@ The above lifecycles should be removed. Learn more about this warning here:
189
189
  https://react.dev/link/unsafe-component-lifecycles`,k,vt,Y!==null?`
190
190
  `+Y:"",J!==null?`
191
191
  `+J:"",ct!==null?`
192
- `+ct:""))}}k=r.stateNode,Y=B(g)||"Component",k.render||(g.prototype&&typeof g.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",Y):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",Y)),!k.getInitialState||k.getInitialState.isReactClassApproved||k.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",Y),k.getDefaultProps&&!k.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",Y),k.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",Y),g.childContextTypes&&!gL.has(g)&&(gL.add(g),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",Y)),g.contextTypes&&!mL.has(g)&&(mL.add(g),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",Y)),typeof k.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",Y),g.prototype&&g.prototype.isPureReactComponent&&typeof k.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",B(g)||"A pure component"),typeof k.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",Y),typeof k.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",Y),typeof k.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",Y),typeof k.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",Y),J=k.props!==D,k.props!==void 0&&J&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",Y),k.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",Y,Y),typeof k.getSnapshotBeforeUpdate!="function"||typeof k.componentDidUpdate=="function"||dL.has(g)||(dL.add(g),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",B(g))),typeof k.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",Y),typeof k.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",Y),typeof g.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",Y),(J=k.state)&&(typeof J!="object"||Wi(J))&&console.error("%s.state: must be set to an object or null",Y),typeof k.getChildContext=="function"&&typeof g.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",Y),k=r.stateNode,k.props=D,k.state=r.memoizedState,k.refs={},Cy(r),Y=g.contextType,k.context=typeof Y=="object"&&Y!==null?kn(Y):hi,k.state===D&&(Y=B(g)||"Component",fL.has(Y)||(fL.add(Y),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",Y))),r.mode&8&&Lu.recordLegacyContextWarning(r,k),Lu.recordUnsafeLifecycleWarnings(r,k),k.state=r.memoizedState,Y=g.getDerivedStateFromProps,typeof Y=="function"&&(Xy(r,g,Y,D),k.state=r.memoizedState),typeof g.getDerivedStateFromProps=="function"||typeof k.getSnapshotBeforeUpdate=="function"||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(Y=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),Y!==k.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",L(r)||"Component"),P8.enqueueReplaceState(k,k.state,null)),Z0(r,D,k,z),yf(),k.state=r.memoizedState),typeof k.componentDidMount=="function"&&(r.flags|=4194308),(r.mode&16)!==Me&&(r.flags|=134217728),k=!0}else if(a===null){k=r.stateNode;var Mt=r.memoizedProps;J=pl(g,Mt),k.props=J;var Nt=k.context;ct=g.contextType,Y=hi,typeof ct=="object"&&ct!==null&&(Y=kn(ct)),vt=g.getDerivedStateFromProps,ct=typeof vt=="function"||typeof k.getSnapshotBeforeUpdate=="function",Mt=r.pendingProps!==Mt,ct||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(Mt||Nt!==Y)&&Ad(r,k,D,Y),np=!1;var Bt=r.memoizedState;k.state=Bt,Z0(r,D,k,z),yf(),Nt=r.memoizedState,Mt||Bt!==Nt||np?(typeof vt=="function"&&(Xy(r,g,vt,D),Nt=r.memoizedState),(J=np||F2(r,g,J,D,Bt,Nt,Y))?(ct||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(r.flags|=4194308),(r.mode&16)!==Me&&(r.flags|=134217728)):(typeof k.componentDidMount=="function"&&(r.flags|=4194308),(r.mode&16)!==Me&&(r.flags|=134217728),r.memoizedProps=D,r.memoizedState=Nt),k.props=D,k.state=Nt,k.context=Y,k=J):(typeof k.componentDidMount=="function"&&(r.flags|=4194308),(r.mode&16)!==Me&&(r.flags|=134217728),k=!1)}else{k=r.stateNode,Ry(a,r),Y=r.memoizedProps,ct=pl(g,Y),k.props=ct,vt=r.pendingProps,Bt=k.context,Nt=g.contextType,J=hi,typeof Nt=="object"&&Nt!==null&&(J=kn(Nt)),Mt=g.getDerivedStateFromProps,(Nt=typeof Mt=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(Y!==vt||Bt!==J)&&Ad(r,k,D,J),np=!1,Bt=r.memoizedState,k.state=Bt,Z0(r,D,k,z),yf();var _e=r.memoizedState;Y!==vt||Bt!==_e||np||a!==null&&a.dependencies!==null&&yd(a.dependencies)?(typeof Mt=="function"&&(Xy(r,g,Mt,D),_e=r.memoizedState),(ct=np||F2(r,g,ct,D,Bt,_e,J)||a!==null&&a.dependencies!==null&&yd(a.dependencies))?(Nt||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(D,_e,J),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(D,_e,J)),typeof k.componentDidUpdate=="function"&&(r.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof k.componentDidUpdate!="function"||Y===a.memoizedProps&&Bt===a.memoizedState||(r.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||Y===a.memoizedProps&&Bt===a.memoizedState||(r.flags|=1024),r.memoizedProps=D,r.memoizedState=_e),k.props=D,k.state=_e,k.context=J,k=ct):(typeof k.componentDidUpdate!="function"||Y===a.memoizedProps&&Bt===a.memoizedState||(r.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||Y===a.memoizedProps&&Bt===a.memoizedState||(r.flags|=1024),k=!1)}if(J=k,$y(a,r),Y=(r.flags&128)!==0,J||Y){if(J=r.stateNode,j0(r),Y&&typeof g.getDerivedStateFromError!="function")g=null,hr=-1;else if(g=k7(J),r.mode&8){_t(!0);try{k7(J)}finally{_t(!1)}}r.flags|=1,a!==null&&Y?(r.child=Qm(r,a.child,null,z),r.child=Qm(r,null,g,z)):Pi(a,r,g,z),r.memoizedState=J.state,a=r.child}else a=go(a,r,z);return z=r.stateNode,k&&z.props!==D&&(l_||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",L(r)||"a component"),l_=!0),a}function fm(a,r,g,D){return hu(),r.flags|=256,Pi(a,r,g,D),r.child}function bu(a,r){r&&r.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
193
- %s.childContextTypes = ...`,r.displayName||r.name||"Component"),typeof r.getDerivedStateFromProps=="function"&&(a=B(r)||"Unknown",xL[a]||(console.error("%s: Function components do not support getDerivedStateFromProps.",a),xL[a]=!0)),typeof r.contextType=="object"&&r.contextType!==null&&(r=B(r)||"Unknown",bL[r]||(console.error("%s: Function components do not support contextType.",r),bL[r]=!0))}function pm(a){return{baseLanes:a,cachePool:Sy()}}function t1(a,r,g){return a=a!==null?a.childLanes&~g:0,r&&(a|=Ir),a}function e1(a,r,g){var D=r.pendingProps;l(r)&&(r.flags|=128);var z=!1,k=(r.flags&128)!==0,Y;if((Y=k)||(Y=a!==null&&a.memoizedState===null?!1:(ha.current&Ux)!==0),Y&&(z=!0,r.flags&=-129),Y=(r.flags&32)!==0,r.flags&=-33,a===null){if(un){if(z?dl(r):ho(r),(a=Ti)?(g=Vn(a,Dl),g!==null&&(Y={dehydrated:g,treeContext:Qt(),retryLane:536870912,hydrationErrors:null},r.memoizedState=Y,Y=Ld(g),Y.return=r,r.child=Y,Es=r,Ti=null)):g=null,g===null)throw uf(r,a),sl(r);return j1(g)?r.lanes=32:r.lanes=536870912,null}var J=D.children;return D=D.fallback,z?(ho(r),z=r.mode,J=mm({mode:"hidden",children:J},z),D=yc(D,z,g,null),J.return=r,D.return=r,J.sibling=D,r.child=J,D=r.child,D.memoizedState=pm(g),D.childLanes=t1(a,Y,g),r.memoizedState=B8,dm(null,D)):(dl(r),Y2(r,J))}var ct=a.memoizedState;if(ct!==null&&(J=ct.dehydrated,J!==null)){if(k)r.flags&256?(dl(r),r.flags&=-257,r=n1(a,r,g)):r.memoizedState!==null?(ho(r),r.child=a.child,r.flags|=128,r=null):(ho(r),J=D.fallback,z=r.mode,D=mm({mode:"visible",children:D.children},z),J=yc(J,z,g,null),J.flags|=2,D.return=r,J.return=r,D.sibling=J,r.child=D,Qm(r,a.child,null,g),D=r.child,D.memoizedState=pm(g),D.childLanes=t1(a,Y,g),r.memoizedState=B8,r=dm(null,D));else if(dl(r),uu(),g&536870912&&h1(r),j1(J))z=ba(J),Y=z.digest,J=z.message,D=z.stack,z=z.componentStack,J=Error(J||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),J.stack=D||"",J.digest=Y,Y=z===void 0?null:z,D={value:J,source:null,stack:Y},typeof Y=="string"&&d8.set(J,D),cf(D),r=n1(a,r,g);else if(Ea||qn(a,r,g,!1),Y=(g&a.childLanes)!==0,Ea||Y){if(Y=Wn,Y!==null&&(D=dt(Y,g),D!==0&&D!==ct.retryLane))throw ct.retryLane=D,Qa(a,D),ui(Y,a,D),z8;Pm(J)||f1(),r=n1(a,r,g)}else Pm(J)?(r.flags|=192,r.child=a.child,r=null):(a=ct.treeContext,ts&&(Ti=F1(J),Es=r,un=!0,Zf=null,Mc=!1,Eo=null,Dl=!1,a!==null&&de(r,a)),r=Y2(r,D.children),r.flags|=4096);return r}return z?(ho(r),J=D.fallback,z=r.mode,ct=a.child,k=ct.sibling,D=Tu(ct,{mode:"hidden",children:D.children}),D.subtreeFlags=ct.subtreeFlags&65011712,k!==null?J=Tu(k,J):(J=yc(J,z,g,null),J.flags|=2),J.return=r,D.return=r,D.sibling=J,r.child=D,dm(null,D),D=r.child,J=a.child.memoizedState,J===null?J=pm(g):(z=J.cachePool,z!==null?(ct=xs?Fi._currentValue:Fi._currentValue2,z=z.parent!==ct?{parent:ct,pool:ct}:z):z=Sy(),J={baseLanes:J.baseLanes|g,cachePool:z}),D.memoizedState=J,D.childLanes=t1(a,Y,g),r.memoizedState=B8,dm(a.child,D)):(ct!==null&&(g&62914560)===g&&g&a.lanes&&h1(r),dl(r),g=a.child,a=g.sibling,g=Tu(g,{mode:"visible",children:D.children}),g.return=r,g.sibling=null,a!==null&&(Y=r.deletions,Y===null?(r.deletions=[a],r.flags|=16):Y.push(a)),r.child=g,r.memoizedState=null,g)}function Y2(a,r){return r=mm({mode:"visible",children:r},a.mode),r.return=a,a.child=r}function mm(a,r){return a=d(22,a,null,r),a.lanes=0,a}function n1(a,r,g){return Qm(r,a.child,null,g),a=Y2(r,r.pendingProps.children),a.flags|=2,r.memoizedState=null,a}function K2(a,r,g){a.lanes|=r;var D=a.alternate;D!==null&&(D.lanes|=r),B0(a.return,r,g)}function i1(a,r,g,D,z,k){var Y=a.memoizedState;Y===null?a.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:D,tail:g,tailMode:z,treeForkCount:k}:(Y.isBackwards=r,Y.rendering=null,Y.renderingStartTime=0,Y.last=D,Y.tail=g,Y.tailMode=z,Y.treeForkCount=k)}function X2(a,r,g){var D=r.pendingProps,z=D.revealOrder,k=D.tail,Y=D.children,J=ha.current;if((D=(J&Ux)!==0)?(J=J&a_|Ux,r.flags|=128):J&=a_,H(ha,J,r),J=z??"null",z!=="forwards"&&z!=="unstable_legacy-backwards"&&z!=="together"&&z!=="independent"&&!EL[J])if(EL[J]=!0,z==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(z==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof z=="string")switch(z.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',z,z.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',z,z.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',z)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',z);J=k??"null",C4[J]||(k==null?(z==="forwards"||z==="backwards"||z==="unstable_legacy-backwards")&&(C4[J]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):k!=="visible"&&k!=="collapsed"&&k!=="hidden"?(C4[J]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',k)):z!=="forwards"&&z!=="backwards"&&z!=="unstable_legacy-backwards"&&(C4[J]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',k)));t:if((z==="forwards"||z==="backwards"||z==="unstable_legacy-backwards")&&Y!==void 0&&Y!==null&&Y!==!1)if(Wi(Y)){for(J=0;J<Y.length;J++)if(!T2(Y[J],J))break t}else if(J=O(Y),typeof J=="function"){if(J=J.call(Y))for(var ct=J.next(),vt=0;!ct.done;ct=J.next()){if(!T2(ct.value,vt))break t;vt++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',z);if(Pi(a,r,Y,g),un?(ye(),Y=Ax):Y=0,!D&&a!==null&&a.flags&128)t:for(a=r.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&K2(a,g,r);else if(a.tag===19)K2(a,g,r);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break t;for(;a.sibling===null;){if(a.return===null||a.return===r)break t;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(z){case"forwards":for(g=r.child,z=null;g!==null;)a=g.alternate,a!==null&&tm(a)===null&&(z=g),g=g.sibling;g=z,g===null?(z=r.child,r.child=null):(z=g.sibling,g.sibling=null),i1(r,!1,z,g,k,Y);break;case"backwards":case"unstable_legacy-backwards":for(g=null,z=r.child,r.child=null;z!==null;){if(a=z.alternate,a!==null&&tm(a)===null){r.child=z;break}a=z.sibling,z.sibling=g,g=z,z=a}i1(r,!0,g,null,k,Y);break;case"together":i1(r,!1,null,null,void 0,Y);break;default:r.memoizedState=null}return r.child}function go(a,r,g){if(a!==null&&(r.dependencies=a.dependencies),hr=-1,sp|=r.lanes,!(g&r.childLanes))if(a!==null){if(qn(a,r,g,!1),(g&r.childLanes)===0)return null}else return null;if(a!==null&&r.child!==a.child)throw Error("Resuming work not yet implemented.");if(r.child!==null){for(a=r.child,g=Tu(a,a.pendingProps),r.child=g,g.return=r;a.sibling!==null;)a=a.sibling,g=g.sibling=Tu(a,a.pendingProps),g.return=r;g.sibling=null}return r.child}function Ze(a,r){return a.lanes&r?!0:(a=a.dependencies,!!(a!==null&&yd(a)))}function GD(a,r,g){switch(r.tag){case 3:Bn(r,r.stateNode.containerInfo),rl(r,Fi,a.memoizedState.cache),hu();break;case 27:case 5:se(r);break;case 4:Bn(r,r.stateNode.containerInfo);break;case 10:rl(r,r.type,r.memoizedProps.value);break;case 12:g&r.childLanes&&(r.flags|=4),r.flags|=2048;var D=r.stateNode;D.effectDuration=-0,D.passiveEffectDuration=-0;break;case 31:if(r.memoizedState!==null)return r.flags|=128,Dy(r),null;break;case 13:if(D=r.memoizedState,D!==null)return D.dehydrated!==null?(dl(r),r.flags|=128,null):g&r.child.childLanes?e1(a,r,g):(dl(r),a=go(a,r,g),a!==null?a.sibling:null);dl(r);break;case 19:var z=(a.flags&128)!==0;if(D=(g&r.childLanes)!==0,D||(qn(a,r,g,!1),D=(g&r.childLanes)!==0),z){if(D)return X2(a,r,g);r.flags|=128}if(z=r.memoizedState,z!==null&&(z.rendering=null,z.tail=null,z.lastEffect=null),H(ha,ha.current,r),D)break;return null;case 22:return r.lanes=0,Zy(a,r,g,r.pendingProps);case 24:rl(r,Fi,a.memoizedState.cache)}return go(a,r,g)}function _s(a,r,g){if(r._debugNeedsRemount&&a!==null){g=y1(r.type,r.key,r.pendingProps,r._debugOwner||null,r.mode,r.lanes),g._debugStack=r._debugStack,g._debugTask=r._debugTask;var D=r.return;if(D===null)throw Error("Cannot swap the root fiber.");if(a.alternate=null,r.alternate=null,g.index=r.index,g.sibling=r.sibling,g.return=r.return,g.ref=r.ref,g._debugInfo=r._debugInfo,r===D.child)D.child=g;else{var z=D.child;if(z===null)throw Error("Expected parent to have a child.");for(;z.sibling!==r;)if(z=z.sibling,z===null)throw Error("Expected to find the previous sibling.");z.sibling=g}return r=D.deletions,r===null?(D.deletions=[a],D.flags|=16):r.push(a),g.flags|=2,g}if(a!==null)if(a.memoizedProps!==r.pendingProps||r.type!==a.type)Ea=!0;else{if(!Ze(a,g)&&!(r.flags&128))return Ea=!1,GD(a,r,g);Ea=!!(a.flags&131072)}else Ea=!1,(D=un)&&(ye(),D=(r.flags&1048576)!==0),D&&(D=r.index,ye(),Nn(r,Ax,D));switch(r.lanes=0,r.tag){case 16:t:if(D=r.pendingProps,a=pu(r.elementType),r.type=a,typeof a=="function")v1(a)?(D=pl(a,D),r.tag=1,r.type=a=Nd(a),r=V2(null,r,a,D,g)):(r.tag=0,bu(r,a),r.type=a=Nd(a),r=hm(null,r,a,D,g));else{if(a!=null){if(z=a.$$typeof,z===Ba){r.tag=11,r.type=a=g1(a),r=U2(null,r,a,D,g);break t}else if(z===jf){r.tag=14,r=H2(null,r,a,D,g);break t}}throw r="",a!==null&&typeof a=="object"&&a.$$typeof===Is&&(r=" Did you wrap a component in React.lazy() more than once?"),a=B(a)||a,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+r)}return r;case 0:return hm(a,r,r.type,r.pendingProps,g);case 1:return D=r.type,z=pl(D,r.pendingProps),V2(a,r,D,z,g);case 3:t:{if(Bn(r,r.stateNode.containerInfo),a===null)throw Error("Should have a current fiber. This is a bug in React.");var k=r.pendingProps;z=r.memoizedState,D=z.element,Ry(a,r),Z0(r,k,null,g);var Y=r.memoizedState;if(k=Y.cache,rl(r,Fi,k),k!==z.cache&&Na(r,[Fi],g,!0),yf(),k=Y.element,ts&&z.isDehydrated)if(z={element:k,isDehydrated:!1,cache:Y.cache},r.updateQueue.baseState=z,r.memoizedState=z,r.flags&256){r=fm(a,r,k,g);break t}else if(k!==D){D=me(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),r),cf(D),r=fm(a,r,k,g);break t}else for(ts&&(Ti=B1(r.stateNode.containerInfo),Es=r,un=!0,Zf=null,Mc=!1,Eo=null,Dl=!0),a=J7(r,null,k,g),r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(hu(),k===D){r=go(a,r,g);break t}Pi(a,r,k,g)}r=r.child}return r;case 26:if(jn)return $y(a,r),a===null?(a=Cl(r.type,null,r.pendingProps,null))?r.memoizedState=a:un||(r.stateNode=h(r.type,r.pendingProps,Xe(Wf.current),r)):r.memoizedState=Cl(r.type,a.memoizedProps,r.pendingProps,a.memoizedState),null;case 27:if(V)return se(r),a===null&&V&&un&&(z=Xe(Wf.current),D=qt(),z=r.stateNode=at(r.type,r.pendingProps,z,D,!1),Mc||(D=Bm(z,r.type,r.pendingProps,D),D!==null&&(lu(r,0).serverProps=D)),Es=r,Dl=!0,Ti=I1(r.type,z,Ti)),Pi(a,r,r.pendingProps.children,g),$y(a,r),a===null&&(r.flags|=4194304),r.child;case 5:return a===null&&un&&(k=qt(),D=H1(r.type,r.pendingProps,k),z=Ti,(Y=!z)||(Y=jm(z,r.type,r.pendingProps,Dl),Y!==null?(r.stateNode=Y,Mc||(k=Bm(Y,r.type,r.pendingProps,k),k!==null&&(lu(r,0).serverProps=k)),Es=r,Ti=z1(Y),Dl=!1,k=!0):k=!1,Y=!k),Y&&(D&&uf(r,z),sl(r))),se(r),z=r.type,k=r.pendingProps,Y=a!==null?a.memoizedProps:null,D=k.children,en(z,k)?D=null:Y!==null&&en(z,Y)&&(r.flags|=32),r.memoizedState!==null&&(z=sr(a,r,w2,null,null,g),xs?jr._currentValue=z:jr._currentValue2=z),$y(a,r),Pi(a,r,D,g),r.child;case 6:return a===null&&un&&(a=r.pendingProps,g=qt(),a=Ac(a,g),g=Ti,(D=!g)||(D=r8(g,r.pendingProps,Dl),D!==null?(r.stateNode=D,Es=r,Ti=null,D=!0):D=!1,D=!D),D&&(a&&uf(r,g),sl(r))),null;case 13:return e1(a,r,g);case 4:return Bn(r,r.stateNode.containerInfo),D=r.pendingProps,a===null?r.child=Qm(r,null,D,g):Pi(a,r,D,g),r.child;case 11:return U2(a,r,r.type,r.pendingProps,g);case 7:return Pi(a,r,r.pendingProps,g),r.child;case 8:return Pi(a,r,r.pendingProps.children,g),r.child;case 12:return r.flags|=4,r.flags|=2048,D=r.stateNode,D.effectDuration=-0,D.passiveEffectDuration=-0,Pi(a,r,r.pendingProps.children,g),r.child;case 10:return D=r.type,z=r.pendingProps,k=z.value,"value"in z||TL||(TL=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),rl(r,D,k),Pi(a,r,z.children,g),r.child;case 9:return z=r.type._context,D=r.pendingProps.children,typeof D!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),ao(r),z=kn(z),D=E8(D,z,void 0),r.flags|=1,Pi(a,r,D,g),r.child;case 14:return H2(a,r,r.type,r.pendingProps,g);case 15:return yn(a,r,r.type,r.pendingProps,g);case 19:return X2(a,r,g);case 31:return HD(a,r,g);case 22:return Zy(a,r,g,r.pendingProps);case 24:return ao(r),D=kn(Fi),a===null?(z=by(),z===null&&(z=Wn,k=hf(),z.pooledCache=k,fu(k),k!==null&&(z.pooledCacheLanes|=g),z=k),r.memoizedState={parent:D,cache:z},Cy(r),rl(r,Fi,z)):(a.lanes&g&&(Ry(a,r),Z0(r,null,null,g),yf()),z=a.memoizedState,k=r.memoizedState,z.parent!==D?(z={parent:D,cache:D},r.memoizedState=z,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=z),rl(r,Fi,D)):(D=k.cache,rl(r,Fi,D),D!==z.cache&&Na(r,[Fi],g,!0))),Pi(a,r,r.pendingProps.children,g),r.child;case 29:throw r.pendingProps}throw Error("Unknown unit of work tag ("+r.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function rr(a){a.flags|=4}function a1(a){El&&(a.flags|=8)}function gm(a,r){if(a!==null&&a.child===r.child)return!1;if(r.flags&16)return!0;for(a=r.child;a!==null;){if(a.flags&8218||a.subtreeFlags&8218)return!0;a=a.sibling}return!1}function pc(a,r,g,D){if(di)for(g=r.child;g!==null;){if(g.tag===5||g.tag===6)ca(a,g.stateNode);else if(!(g.tag===4||V&&g.tag===27)&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===r)break;for(;g.sibling===null;){if(g.return===null||g.return===r)return;g=g.return}g.sibling.return=g.return,g=g.sibling}else if(El)for(var z=r.child;z!==null;){if(z.tag===5){var k=z.stateNode;g&&D&&(k=Al(k,z.type,z.memoizedProps)),ca(a,k)}else if(z.tag===6)k=z.stateNode,g&&D&&(k=ki(k,z.memoizedProps)),ca(a,k);else if(z.tag!==4){if(z.tag===22&&z.memoizedState!==null)k=z.child,k!==null&&(k.return=z),pc(a,z,!0,!0);else if(z.child!==null){z.child.return=z,z=z.child;continue}}if(z===r)break;for(;z.sibling===null;){if(z.return===null||z.return===r)return;z=z.return}z.sibling.return=z.return,z=z.sibling}}function Cd(a,r,g,D){var z=!1;if(El)for(var k=r.child;k!==null;){if(k.tag===5){var Y=k.stateNode;g&&D&&(Y=Al(Y,k.type,k.memoizedProps)),L1(a,Y)}else if(k.tag===6)Y=k.stateNode,g&&D&&(Y=ki(Y,k.memoizedProps)),L1(a,Y);else if(k.tag!==4){if(k.tag===22&&k.memoizedState!==null)z=k.child,z!==null&&(z.return=k),Cd(a,k,!0,!0),z=!0;else if(k.child!==null){k.child.return=k,k=k.child;continue}}if(k===r)break;for(;k.sibling===null;){if(k.return===null||k.return===r)return z;k=k.return}k.sibling.return=k.return,k=k.sibling}return z}function q2(a,r){if(El&&gm(a,r)){a=r.stateNode;var g=a.containerInfo,D=N1();Cd(D,r,!1,!1),a.pendingChildren=D,rr(r),Ji(g,D)}}function vm(a,r,g,D){if(di)a.memoizedProps!==D&&rr(r);else if(El){var z=a.stateNode,k=a.memoizedProps;if((a=gm(a,r))||k!==D){var Y=qt();k=a4(z,g,k,D,!a,null),k===z?r.stateNode=z:(a1(r),ci(k,g,D,Y)&&rr(r),r.stateNode=k,a&&pc(k,r,!1,!1))}else r.stateNode=z}}function s1(a,r,g,D,z){if((a.mode&32)!==Me&&(g===null?kf(r,D):Ff(r,g,D))){if(a.flags|=16777216,(z&335544128)===z||A1(r,D))if(bc(a.stateNode,r,D))a.flags|=8192;else if(P3())a.flags|=8192;else throw qm=b4,A8}else a.flags&=-16777217}function Su(a,r){if(w(r)){if(a.flags|=16777216,!j(r))if(P3())a.flags|=8192;else throw qm=b4,A8}else a.flags&=-16777217}function Cf(a,r){r!==null&&(a.flags|=4),a.flags&16384&&(r=a.tag!==22?Q():536870912,a.lanes|=r,tg|=r)}function Rd(a,r){if(!un)switch(a.tailMode){case"hidden":r=a.tail;for(var g=null;r!==null;)r.alternate!==null&&(g=r),r=r.sibling;g===null?a.tail=null:g.sibling=null;break;case"collapsed":g=a.tail;for(var D=null;g!==null;)g.alternate!==null&&(D=g),g=g.sibling;D===null?r||a.tail===null?a.tail=null:a.tail.sibling=null:D.sibling=null}}function Ln(a){var r=a.alternate!==null&&a.alternate.child===a.child,g=0,D=0;if(r)if((a.mode&2)!==Me){for(var z=a.selfBaseDuration,k=a.child;k!==null;)g|=k.lanes|k.childLanes,D|=k.subtreeFlags&65011712,D|=k.flags&65011712,z+=k.treeBaseDuration,k=k.sibling;a.treeBaseDuration=z}else for(z=a.child;z!==null;)g|=z.lanes|z.childLanes,D|=z.subtreeFlags&65011712,D|=z.flags&65011712,z.return=a,z=z.sibling;else if((a.mode&2)!==Me){z=a.actualDuration,k=a.selfBaseDuration;for(var Y=a.child;Y!==null;)g|=Y.lanes|Y.childLanes,D|=Y.subtreeFlags,D|=Y.flags,z+=Y.actualDuration,k+=Y.treeBaseDuration,Y=Y.sibling;a.actualDuration=z,a.treeBaseDuration=k}else for(z=a.child;z!==null;)g|=z.lanes|z.childLanes,D|=z.subtreeFlags,D|=z.flags,z.return=a,z=z.sibling;return a.subtreeFlags|=D,a.childLanes=g,r}function Q2(a,r,g){var D=r.pendingProps;switch(kt(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ln(r),null;case 1:return Ln(r),null;case 3:return g=r.stateNode,D=null,a!==null&&(D=a.memoizedState.cache),r.memoizedState.cache!==D&&(r.flags|=2048),io(Fi,r),jt(r),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(a===null||a.child===null)&&(du(r)?(py(),rr(r)):a===null||a.memoizedState.isDehydrated&&!(r.flags&256)||(r.flags|=1024,z0())),q2(a,r),Ln(r),null;case 26:if(jn){var z=r.type,k=r.memoizedState;return a===null?(rr(r),k!==null?(Ln(r),Su(r,k)):(Ln(r),s1(r,z,null,D,g))):k?k!==a.memoizedState?(rr(r),Ln(r),Su(r,k)):(Ln(r),r.flags&=-16777217):(k=a.memoizedProps,di?k!==D&&rr(r):vm(a,r,z,D),Ln(r),s1(r,z,k,D,g)),null}case 27:if(V){if(Oe(r),g=Xe(Wf.current),z=r.type,a!==null&&r.stateNode!=null)di?a.memoizedProps!==D&&rr(r):vm(a,r,z,D);else{if(!D){if(r.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ln(r),null}a=qt(),du(r)?cu(r,a):(a=at(z,D,g,a,!0),r.stateNode=a,rr(r))}return Ln(r),null}case 5:if(Oe(r),z=r.type,a!==null&&r.stateNode!=null)vm(a,r,z,D);else{if(!D){if(r.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ln(r),null}if(k=qt(),du(r))cu(r,k),Ud(r.stateNode,z,D,k)&&(r.flags|=64);else{var Y=Xe(Wf.current);Y=T1(z,D,Y,k,r),a1(r),pc(Y,r,!1,!1),r.stateNode=Y,ci(Y,z,D,k)&&rr(r)}}return Ln(r),s1(r,r.type,a===null?null:a.memoizedProps,r.pendingProps,g),null;case 6:if(a&&r.stateNode!=null)g=a.memoizedProps,di?g!==D&&rr(r):El&&(g!==D?(a=Xe(Wf.current),g=qt(),a1(r),r.stateNode=wu(D,a,g,r)):r.stateNode=a.stateNode);else{if(typeof D!="string"&&r.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(a=Xe(Wf.current),g=qt(),du(r)){if(!ts)throw Error("Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");if(a=r.stateNode,g=r.memoizedProps,z=!Mc,D=null,k=Es,k!==null)switch(k.tag){case 3:z&&(z=Ex(a,g,D),z!==null&&(lu(r,0).serverProps=z));break;case 27:case 5:D=k.memoizedProps,z&&(z=Ex(a,g,D),z!==null&&(lu(r,0).serverProps=z))}on(a,g,r,D)||sl(r,!0)}else a1(r),r.stateNode=wu(D,a,g,r)}return Ln(r),null;case 31:if(g=r.memoizedState,a===null||a.memoizedState!==null){if(D=du(r),g!==null){if(a===null){if(!D)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(!ts)throw Error("Expected prepareToHydrateHostActivityInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");if(a=r.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");Pn(a,r),Ln(r),(r.mode&2)!==Me&&g!==null&&(a=r.child,a!==null&&(r.treeBaseDuration-=a.treeBaseDuration))}else py(),hu(),!(r.flags&128)&&(g=r.memoizedState=null),r.flags|=4,Ln(r),(r.mode&2)!==Me&&g!==null&&(a=r.child,a!==null&&(r.treeBaseDuration-=a.treeBaseDuration));a=!1}else g=z0(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=g),a=!0;if(!a)return r.flags&256?(vs(r),r):(vs(r),null);if(r.flags&128)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Ln(r),null;case 13:if(D=r.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(z=D,k=du(r),z!==null&&z.dehydrated!==null){if(a===null){if(!k)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(!ts)throw Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");if(k=r.memoizedState,k=k!==null?k.dehydrated:null,!k)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");ur(k,r),Ln(r),(r.mode&2)!==Me&&z!==null&&(z=r.child,z!==null&&(r.treeBaseDuration-=z.treeBaseDuration))}else py(),hu(),!(r.flags&128)&&(z=r.memoizedState=null),r.flags|=4,Ln(r),(r.mode&2)!==Me&&z!==null&&(z=r.child,z!==null&&(r.treeBaseDuration-=z.treeBaseDuration));z=!1}else z=z0(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=z),z=!0;if(!z)return r.flags&256?(vs(r),r):(vs(r),null)}return vs(r),r.flags&128?(r.lanes=g,(r.mode&2)!==Me&&U0(r),r):(g=D!==null,a=a!==null&&a.memoizedState!==null,g&&(D=r.child,z=null,D.alternate!==null&&D.alternate.memoizedState!==null&&D.alternate.memoizedState.cachePool!==null&&(z=D.alternate.memoizedState.cachePool.pool),k=null,D.memoizedState!==null&&D.memoizedState.cachePool!==null&&(k=D.memoizedState.cachePool.pool),k!==z&&(D.flags|=2048)),g!==a&&g&&(r.child.flags|=8192),Cf(r,r.updateQueue),Ln(r),(r.mode&2)!==Me&&g&&(a=r.child,a!==null&&(r.treeBaseDuration-=a.treeBaseDuration)),null);case 4:return jt(r),q2(a,r),a===null&&_i(r.stateNode.containerInfo),Ln(r),null;case 10:return io(r.type,r),Ln(r),null;case 19:if(F(ha,r),D=r.memoizedState,D===null)return Ln(r),null;if(z=(r.flags&128)!==0,k=D.rendering,k===null)if(z)Rd(D,!1);else{if(Ci!==nh||a!==null&&a.flags&128)for(a=r.child;a!==null;){if(k=tm(a),k!==null){for(r.flags|=128,Rd(D,!1),a=k.updateQueue,r.updateQueue=a,Cf(r,a),r.subtreeFlags=0,a=g,g=r.child;g!==null;)Qi(g,a),g=g.sibling;return H(ha,ha.current&a_|Ux,r),un&&On(r,D.treeForkCount),r.child}a=a.sibling}D.tail!==null&&ln()>Wx&&(r.flags|=128,z=!0,Rd(D,!1),r.lanes=4194304)}else{if(!z)if(a=tm(k),a!==null){if(r.flags|=128,z=!0,a=a.updateQueue,r.updateQueue=a,Cf(r,a),Rd(D,!0),D.tail===null&&D.tailMode==="hidden"&&!k.alternate&&!un)return Ln(r),null}else 2*ln()-D.renderingStartTime>Wx&&g!==536870912&&(r.flags|=128,z=!0,Rd(D,!1),r.lanes=4194304);D.isBackwards?(k.sibling=r.child,r.child=k):(a=D.last,a!==null?a.sibling=k:r.child=k,D.last=k)}return D.tail!==null?(a=D.tail,D.rendering=a,D.tail=a.sibling,D.renderingStartTime=ln(),a.sibling=null,g=ha.current,g=z?g&a_|Ux:g&a_,H(ha,g,r),un&&On(r,D.treeForkCount),a):(Ln(r),null);case 22:case 23:return vs(r),$0(r),D=r.memoizedState!==null,a!==null?a.memoizedState!==null!==D&&(r.flags|=8192):D&&(r.flags|=8192),D?g&536870912&&!(r.flags&128)&&(Ln(r),r.subtreeFlags&6&&(r.flags|=8192)):Ln(r),g=r.updateQueue,g!==null&&Cf(r,g.retryQueue),g=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(g=a.memoizedState.cachePool.pool),D=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(D=r.memoizedState.cachePool.pool),D!==g&&(r.flags|=2048),a!==null&&F(Km,r),null;case 24:return g=null,a!==null&&(g=a.memoizedState.cache),r.memoizedState.cache!==g&&(r.flags|=2048),io(Fi,r),Ln(r),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+r.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function mc(a,r){switch(kt(r),r.tag){case 1:return a=r.flags,a&65536?(r.flags=a&-65537|128,(r.mode&2)!==Me&&U0(r),r):null;case 3:return io(Fi,r),jt(r),a=r.flags,a&65536&&!(a&128)?(r.flags=a&-65537|128,r):null;case 26:case 27:case 5:return Oe(r),null;case 31:if(r.memoizedState!==null){if(vs(r),r.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");hu()}return a=r.flags,a&65536?(r.flags=a&-65537|128,(r.mode&2)!==Me&&U0(r),r):null;case 13:if(vs(r),a=r.memoizedState,a!==null&&a.dehydrated!==null){if(r.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");hu()}return a=r.flags,a&65536?(r.flags=a&-65537|128,(r.mode&2)!==Me&&U0(r),r):null;case 19:return F(ha,r),null;case 4:return jt(r),null;case 10:return io(r.type,r),null;case 22:case 23:return vs(r),$0(r),a!==null&&F(Km,r),a=r.flags,a&65536?(r.flags=a&-65537|128,(r.mode&2)!==Me&&U0(r),r):null;case 24:return io(Fi,r),null;case 25:return null;default:return null}}function r1(a,r){switch(kt(r),r.tag){case 3:io(Fi,r),jt(r);break;case 26:case 27:case 5:Oe(r);break;case 4:jt(r);break;case 31:r.memoizedState!==null&&vs(r);break;case 13:vs(r);break;case 19:F(ha,r);break;case 10:io(r.type,r);break;case 22:case 23:vs(r),$0(r),a!==null&&F(Km,r);break;case 24:io(Fi,r)}}function gl(a){return(a.mode&2)!==Me}function W2(a,r){gl(a)?(co(),gc(r,a),uo()):gc(r,a)}function Z2(a,r,g){gl(a)?(co(),be(g,a,r),uo()):be(g,a,r)}function gc(a,r){try{var g=r.updateQueue,D=g!==null?g.lastEffect:null;if(D!==null){var z=D.next;g=z;do{if((g.tag&a)===a&&(D=void 0,(a&fr)!==x4&&(p_=!0),D=oe(r,oH,g),(a&fr)!==x4&&(p_=!1),D!==void 0&&typeof D!="function")){var k=void 0;k=g.tag&Ao?"useLayoutEffect":g.tag&fr?"useInsertionEffect":"useEffect";var Y=void 0;Y=D===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof D.then=="function"?`
192
+ `+ct:""))}}k=r.stateNode,Y=B(g)||"Component",k.render||(g.prototype&&typeof g.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",Y):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",Y)),!k.getInitialState||k.getInitialState.isReactClassApproved||k.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",Y),k.getDefaultProps&&!k.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",Y),k.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",Y),g.childContextTypes&&!gL.has(g)&&(gL.add(g),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",Y)),g.contextTypes&&!mL.has(g)&&(mL.add(g),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",Y)),typeof k.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",Y),g.prototype&&g.prototype.isPureReactComponent&&typeof k.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",B(g)||"A pure component"),typeof k.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",Y),typeof k.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",Y),typeof k.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",Y),typeof k.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",Y),J=k.props!==D,k.props!==void 0&&J&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",Y),k.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",Y,Y),typeof k.getSnapshotBeforeUpdate!="function"||typeof k.componentDidUpdate=="function"||dL.has(g)||(dL.add(g),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",B(g))),typeof k.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",Y),typeof k.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",Y),typeof g.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",Y),(J=k.state)&&(typeof J!="object"||Wi(J))&&console.error("%s.state: must be set to an object or null",Y),typeof k.getChildContext=="function"&&typeof g.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",Y),k=r.stateNode,k.props=D,k.state=r.memoizedState,k.refs={},Cy(r),Y=g.contextType,k.context=typeof Y=="object"&&Y!==null?kn(Y):hi,k.state===D&&(Y=B(g)||"Component",fL.has(Y)||(fL.add(Y),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",Y))),r.mode&8&&Lu.recordLegacyContextWarning(r,k),Lu.recordUnsafeLifecycleWarnings(r,k),k.state=r.memoizedState,Y=g.getDerivedStateFromProps,typeof Y=="function"&&(Xy(r,g,Y,D),k.state=r.memoizedState),typeof g.getDerivedStateFromProps=="function"||typeof k.getSnapshotBeforeUpdate=="function"||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(Y=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),Y!==k.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",L(r)||"Component"),P8.enqueueReplaceState(k,k.state,null)),Z0(r,D,k,z),yf(),k.state=r.memoizedState),typeof k.componentDidMount=="function"&&(r.flags|=4194308),(r.mode&16)!==Me&&(r.flags|=134217728),k=!0}else if(a===null){k=r.stateNode;var Mt=r.memoizedProps;J=pl(g,Mt),k.props=J;var Nt=k.context;ct=g.contextType,Y=hi,typeof ct=="object"&&ct!==null&&(Y=kn(ct)),vt=g.getDerivedStateFromProps,ct=typeof vt=="function"||typeof k.getSnapshotBeforeUpdate=="function",Mt=r.pendingProps!==Mt,ct||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(Mt||Nt!==Y)&&Ad(r,k,D,Y),np=!1;var kt=r.memoizedState;k.state=kt,Z0(r,D,k,z),yf(),Nt=r.memoizedState,Mt||kt!==Nt||np?(typeof vt=="function"&&(Xy(r,g,vt,D),Nt=r.memoizedState),(J=np||F2(r,g,J,D,kt,Nt,Y))?(ct||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(r.flags|=4194308),(r.mode&16)!==Me&&(r.flags|=134217728)):(typeof k.componentDidMount=="function"&&(r.flags|=4194308),(r.mode&16)!==Me&&(r.flags|=134217728),r.memoizedProps=D,r.memoizedState=Nt),k.props=D,k.state=Nt,k.context=Y,k=J):(typeof k.componentDidMount=="function"&&(r.flags|=4194308),(r.mode&16)!==Me&&(r.flags|=134217728),k=!1)}else{k=r.stateNode,Ry(a,r),Y=r.memoizedProps,ct=pl(g,Y),k.props=ct,vt=r.pendingProps,kt=k.context,Nt=g.contextType,J=hi,typeof Nt=="object"&&Nt!==null&&(J=kn(Nt)),Mt=g.getDerivedStateFromProps,(Nt=typeof Mt=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(Y!==vt||kt!==J)&&Ad(r,k,D,J),np=!1,kt=r.memoizedState,k.state=kt,Z0(r,D,k,z),yf();var _e=r.memoizedState;Y!==vt||kt!==_e||np||a!==null&&a.dependencies!==null&&yd(a.dependencies)?(typeof Mt=="function"&&(Xy(r,g,Mt,D),_e=r.memoizedState),(ct=np||F2(r,g,ct,D,kt,_e,J)||a!==null&&a.dependencies!==null&&yd(a.dependencies))?(Nt||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(D,_e,J),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(D,_e,J)),typeof k.componentDidUpdate=="function"&&(r.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof k.componentDidUpdate!="function"||Y===a.memoizedProps&&kt===a.memoizedState||(r.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||Y===a.memoizedProps&&kt===a.memoizedState||(r.flags|=1024),r.memoizedProps=D,r.memoizedState=_e),k.props=D,k.state=_e,k.context=J,k=ct):(typeof k.componentDidUpdate!="function"||Y===a.memoizedProps&&kt===a.memoizedState||(r.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||Y===a.memoizedProps&&kt===a.memoizedState||(r.flags|=1024),k=!1)}if(J=k,$y(a,r),Y=(r.flags&128)!==0,J||Y){if(J=r.stateNode,j0(r),Y&&typeof g.getDerivedStateFromError!="function")g=null,hr=-1;else if(g=k7(J),r.mode&8){_t(!0);try{k7(J)}finally{_t(!1)}}r.flags|=1,a!==null&&Y?(r.child=Qm(r,a.child,null,z),r.child=Qm(r,null,g,z)):Pi(a,r,g,z),r.memoizedState=J.state,a=r.child}else a=go(a,r,z);return z=r.stateNode,k&&z.props!==D&&(l_||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",L(r)||"a component"),l_=!0),a}function fm(a,r,g,D){return hu(),r.flags|=256,Pi(a,r,g,D),r.child}function bu(a,r){r&&r.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
193
+ %s.childContextTypes = ...`,r.displayName||r.name||"Component"),typeof r.getDerivedStateFromProps=="function"&&(a=B(r)||"Unknown",xL[a]||(console.error("%s: Function components do not support getDerivedStateFromProps.",a),xL[a]=!0)),typeof r.contextType=="object"&&r.contextType!==null&&(r=B(r)||"Unknown",bL[r]||(console.error("%s: Function components do not support contextType.",r),bL[r]=!0))}function pm(a){return{baseLanes:a,cachePool:Sy()}}function t1(a,r,g){return a=a!==null?a.childLanes&~g:0,r&&(a|=Ir),a}function e1(a,r,g){var D=r.pendingProps;l(r)&&(r.flags|=128);var z=!1,k=(r.flags&128)!==0,Y;if((Y=k)||(Y=a!==null&&a.memoizedState===null?!1:(ha.current&Ux)!==0),Y&&(z=!0,r.flags&=-129),Y=(r.flags&32)!==0,r.flags&=-33,a===null){if(un){if(z?dl(r):ho(r),(a=Ti)?(g=Vn(a,Dl),g!==null&&(Y={dehydrated:g,treeContext:Qt(),retryLane:536870912,hydrationErrors:null},r.memoizedState=Y,Y=Ld(g),Y.return=r,r.child=Y,Es=r,Ti=null)):g=null,g===null)throw uf(r,a),sl(r);return j1(g)?r.lanes=32:r.lanes=536870912,null}var J=D.children;return D=D.fallback,z?(ho(r),z=r.mode,J=mm({mode:"hidden",children:J},z),D=yc(D,z,g,null),J.return=r,D.return=r,J.sibling=D,r.child=J,D=r.child,D.memoizedState=pm(g),D.childLanes=t1(a,Y,g),r.memoizedState=B8,dm(null,D)):(dl(r),Y2(r,J))}var ct=a.memoizedState;if(ct!==null&&(J=ct.dehydrated,J!==null)){if(k)r.flags&256?(dl(r),r.flags&=-257,r=n1(a,r,g)):r.memoizedState!==null?(ho(r),r.child=a.child,r.flags|=128,r=null):(ho(r),J=D.fallback,z=r.mode,D=mm({mode:"visible",children:D.children},z),J=yc(J,z,g,null),J.flags|=2,D.return=r,J.return=r,D.sibling=J,r.child=D,Qm(r,a.child,null,g),D=r.child,D.memoizedState=pm(g),D.childLanes=t1(a,Y,g),r.memoizedState=B8,r=dm(null,D));else if(dl(r),uu(),g&536870912&&h1(r),j1(J))z=ba(J),Y=z.digest,J=z.message,D=z.stack,z=z.componentStack,J=Error(J||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),J.stack=D||"",J.digest=Y,Y=z===void 0?null:z,D={value:J,source:null,stack:Y},typeof Y=="string"&&d8.set(J,D),cf(D),r=n1(a,r,g);else if(Ea||qn(a,r,g,!1),Y=(g&a.childLanes)!==0,Ea||Y){if(Y=Wn,Y!==null&&(D=dt(Y,g),D!==0&&D!==ct.retryLane))throw ct.retryLane=D,Qa(a,D),ui(Y,a,D),z8;Pm(J)||f1(),r=n1(a,r,g)}else Pm(J)?(r.flags|=192,r.child=a.child,r=null):(a=ct.treeContext,ts&&(Ti=F1(J),Es=r,un=!0,Zf=null,Mc=!1,Eo=null,Dl=!1,a!==null&&de(r,a)),r=Y2(r,D.children),r.flags|=4096);return r}return z?(ho(r),J=D.fallback,z=r.mode,ct=a.child,k=ct.sibling,D=Tu(ct,{mode:"hidden",children:D.children}),D.subtreeFlags=ct.subtreeFlags&65011712,k!==null?J=Tu(k,J):(J=yc(J,z,g,null),J.flags|=2),J.return=r,D.return=r,D.sibling=J,r.child=D,dm(null,D),D=r.child,J=a.child.memoizedState,J===null?J=pm(g):(z=J.cachePool,z!==null?(ct=xs?Fi._currentValue:Fi._currentValue2,z=z.parent!==ct?{parent:ct,pool:ct}:z):z=Sy(),J={baseLanes:J.baseLanes|g,cachePool:z}),D.memoizedState=J,D.childLanes=t1(a,Y,g),r.memoizedState=B8,dm(a.child,D)):(ct!==null&&(g&62914560)===g&&g&a.lanes&&h1(r),dl(r),g=a.child,a=g.sibling,g=Tu(g,{mode:"visible",children:D.children}),g.return=r,g.sibling=null,a!==null&&(Y=r.deletions,Y===null?(r.deletions=[a],r.flags|=16):Y.push(a)),r.child=g,r.memoizedState=null,g)}function Y2(a,r){return r=mm({mode:"visible",children:r},a.mode),r.return=a,a.child=r}function mm(a,r){return a=d(22,a,null,r),a.lanes=0,a}function n1(a,r,g){return Qm(r,a.child,null,g),a=Y2(r,r.pendingProps.children),a.flags|=2,r.memoizedState=null,a}function K2(a,r,g){a.lanes|=r;var D=a.alternate;D!==null&&(D.lanes|=r),B0(a.return,r,g)}function i1(a,r,g,D,z,k){var Y=a.memoizedState;Y===null?a.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:D,tail:g,tailMode:z,treeForkCount:k}:(Y.isBackwards=r,Y.rendering=null,Y.renderingStartTime=0,Y.last=D,Y.tail=g,Y.tailMode=z,Y.treeForkCount=k)}function X2(a,r,g){var D=r.pendingProps,z=D.revealOrder,k=D.tail,Y=D.children,J=ha.current;if((D=(J&Ux)!==0)?(J=J&a_|Ux,r.flags|=128):J&=a_,H(ha,J,r),J=z??"null",z!=="forwards"&&z!=="unstable_legacy-backwards"&&z!=="together"&&z!=="independent"&&!EL[J])if(EL[J]=!0,z==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(z==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof z=="string")switch(z.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',z,z.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',z,z.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',z)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',z);J=k??"null",C4[J]||(k==null?(z==="forwards"||z==="backwards"||z==="unstable_legacy-backwards")&&(C4[J]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):k!=="visible"&&k!=="collapsed"&&k!=="hidden"?(C4[J]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',k)):z!=="forwards"&&z!=="backwards"&&z!=="unstable_legacy-backwards"&&(C4[J]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',k)));t:if((z==="forwards"||z==="backwards"||z==="unstable_legacy-backwards")&&Y!==void 0&&Y!==null&&Y!==!1)if(Wi(Y)){for(J=0;J<Y.length;J++)if(!T2(Y[J],J))break t}else if(J=O(Y),typeof J=="function"){if(J=J.call(Y))for(var ct=J.next(),vt=0;!ct.done;ct=J.next()){if(!T2(ct.value,vt))break t;vt++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',z);if(Pi(a,r,Y,g),un?(ye(),Y=Ax):Y=0,!D&&a!==null&&a.flags&128)t:for(a=r.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&K2(a,g,r);else if(a.tag===19)K2(a,g,r);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break t;for(;a.sibling===null;){if(a.return===null||a.return===r)break t;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(z){case"forwards":for(g=r.child,z=null;g!==null;)a=g.alternate,a!==null&&tm(a)===null&&(z=g),g=g.sibling;g=z,g===null?(z=r.child,r.child=null):(z=g.sibling,g.sibling=null),i1(r,!1,z,g,k,Y);break;case"backwards":case"unstable_legacy-backwards":for(g=null,z=r.child,r.child=null;z!==null;){if(a=z.alternate,a!==null&&tm(a)===null){r.child=z;break}a=z.sibling,z.sibling=g,g=z,z=a}i1(r,!0,g,null,k,Y);break;case"together":i1(r,!1,null,null,void 0,Y);break;default:r.memoizedState=null}return r.child}function go(a,r,g){if(a!==null&&(r.dependencies=a.dependencies),hr=-1,sp|=r.lanes,!(g&r.childLanes))if(a!==null){if(qn(a,r,g,!1),(g&r.childLanes)===0)return null}else return null;if(a!==null&&r.child!==a.child)throw Error("Resuming work not yet implemented.");if(r.child!==null){for(a=r.child,g=Tu(a,a.pendingProps),r.child=g,g.return=r;a.sibling!==null;)a=a.sibling,g=g.sibling=Tu(a,a.pendingProps),g.return=r;g.sibling=null}return r.child}function Ze(a,r){return a.lanes&r?!0:(a=a.dependencies,!!(a!==null&&yd(a)))}function GD(a,r,g){switch(r.tag){case 3:Bn(r,r.stateNode.containerInfo),rl(r,Fi,a.memoizedState.cache),hu();break;case 27:case 5:se(r);break;case 4:Bn(r,r.stateNode.containerInfo);break;case 10:rl(r,r.type,r.memoizedProps.value);break;case 12:g&r.childLanes&&(r.flags|=4),r.flags|=2048;var D=r.stateNode;D.effectDuration=-0,D.passiveEffectDuration=-0;break;case 31:if(r.memoizedState!==null)return r.flags|=128,Dy(r),null;break;case 13:if(D=r.memoizedState,D!==null)return D.dehydrated!==null?(dl(r),r.flags|=128,null):g&r.child.childLanes?e1(a,r,g):(dl(r),a=go(a,r,g),a!==null?a.sibling:null);dl(r);break;case 19:var z=(a.flags&128)!==0;if(D=(g&r.childLanes)!==0,D||(qn(a,r,g,!1),D=(g&r.childLanes)!==0),z){if(D)return X2(a,r,g);r.flags|=128}if(z=r.memoizedState,z!==null&&(z.rendering=null,z.tail=null,z.lastEffect=null),H(ha,ha.current,r),D)break;return null;case 22:return r.lanes=0,Zy(a,r,g,r.pendingProps);case 24:rl(r,Fi,a.memoizedState.cache)}return go(a,r,g)}function _s(a,r,g){if(r._debugNeedsRemount&&a!==null){g=y1(r.type,r.key,r.pendingProps,r._debugOwner||null,r.mode,r.lanes),g._debugStack=r._debugStack,g._debugTask=r._debugTask;var D=r.return;if(D===null)throw Error("Cannot swap the root fiber.");if(a.alternate=null,r.alternate=null,g.index=r.index,g.sibling=r.sibling,g.return=r.return,g.ref=r.ref,g._debugInfo=r._debugInfo,r===D.child)D.child=g;else{var z=D.child;if(z===null)throw Error("Expected parent to have a child.");for(;z.sibling!==r;)if(z=z.sibling,z===null)throw Error("Expected to find the previous sibling.");z.sibling=g}return r=D.deletions,r===null?(D.deletions=[a],D.flags|=16):r.push(a),g.flags|=2,g}if(a!==null)if(a.memoizedProps!==r.pendingProps||r.type!==a.type)Ea=!0;else{if(!Ze(a,g)&&!(r.flags&128))return Ea=!1,GD(a,r,g);Ea=!!(a.flags&131072)}else Ea=!1,(D=un)&&(ye(),D=(r.flags&1048576)!==0),D&&(D=r.index,ye(),Nn(r,Ax,D));switch(r.lanes=0,r.tag){case 16:t:if(D=r.pendingProps,a=pu(r.elementType),r.type=a,typeof a=="function")v1(a)?(D=pl(a,D),r.tag=1,r.type=a=Nd(a),r=V2(null,r,a,D,g)):(r.tag=0,bu(r,a),r.type=a=Nd(a),r=hm(null,r,a,D,g));else{if(a!=null){if(z=a.$$typeof,z===Ba){r.tag=11,r.type=a=g1(a),r=U2(null,r,a,D,g);break t}else if(z===jf){r.tag=14,r=H2(null,r,a,D,g);break t}}throw r="",a!==null&&typeof a=="object"&&a.$$typeof===Is&&(r=" Did you wrap a component in React.lazy() more than once?"),a=B(a)||a,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+r)}return r;case 0:return hm(a,r,r.type,r.pendingProps,g);case 1:return D=r.type,z=pl(D,r.pendingProps),V2(a,r,D,z,g);case 3:t:{if(Bn(r,r.stateNode.containerInfo),a===null)throw Error("Should have a current fiber. This is a bug in React.");var k=r.pendingProps;z=r.memoizedState,D=z.element,Ry(a,r),Z0(r,k,null,g);var Y=r.memoizedState;if(k=Y.cache,rl(r,Fi,k),k!==z.cache&&Na(r,[Fi],g,!0),yf(),k=Y.element,ts&&z.isDehydrated)if(z={element:k,isDehydrated:!1,cache:Y.cache},r.updateQueue.baseState=z,r.memoizedState=z,r.flags&256){r=fm(a,r,k,g);break t}else if(k!==D){D=me(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),r),cf(D),r=fm(a,r,k,g);break t}else for(ts&&(Ti=B1(r.stateNode.containerInfo),Es=r,un=!0,Zf=null,Mc=!1,Eo=null,Dl=!0),a=J7(r,null,k,g),r.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(hu(),k===D){r=go(a,r,g);break t}Pi(a,r,k,g)}r=r.child}return r;case 26:if(jn)return $y(a,r),a===null?(a=Cl(r.type,null,r.pendingProps,null))?r.memoizedState=a:un||(r.stateNode=h(r.type,r.pendingProps,Xe(Wf.current),r)):r.memoizedState=Cl(r.type,a.memoizedProps,r.pendingProps,a.memoizedState),null;case 27:if(V)return se(r),a===null&&V&&un&&(z=Xe(Wf.current),D=qt(),z=r.stateNode=at(r.type,r.pendingProps,z,D,!1),Mc||(D=Bm(z,r.type,r.pendingProps,D),D!==null&&(lu(r,0).serverProps=D)),Es=r,Dl=!0,Ti=I1(r.type,z,Ti)),Pi(a,r,r.pendingProps.children,g),$y(a,r),a===null&&(r.flags|=4194304),r.child;case 5:return a===null&&un&&(k=qt(),D=H1(r.type,r.pendingProps,k),z=Ti,(Y=!z)||(Y=jm(z,r.type,r.pendingProps,Dl),Y!==null?(r.stateNode=Y,Mc||(k=Bm(Y,r.type,r.pendingProps,k),k!==null&&(lu(r,0).serverProps=k)),Es=r,Ti=z1(Y),Dl=!1,k=!0):k=!1,Y=!k),Y&&(D&&uf(r,z),sl(r))),se(r),z=r.type,k=r.pendingProps,Y=a!==null?a.memoizedProps:null,D=k.children,en(z,k)?D=null:Y!==null&&en(z,Y)&&(r.flags|=32),r.memoizedState!==null&&(z=sr(a,r,w2,null,null,g),xs?jr._currentValue=z:jr._currentValue2=z),$y(a,r),Pi(a,r,D,g),r.child;case 6:return a===null&&un&&(a=r.pendingProps,g=qt(),a=Ac(a,g),g=Ti,(D=!g)||(D=r8(g,r.pendingProps,Dl),D!==null?(r.stateNode=D,Es=r,Ti=null,D=!0):D=!1,D=!D),D&&(a&&uf(r,g),sl(r))),null;case 13:return e1(a,r,g);case 4:return Bn(r,r.stateNode.containerInfo),D=r.pendingProps,a===null?r.child=Qm(r,null,D,g):Pi(a,r,D,g),r.child;case 11:return U2(a,r,r.type,r.pendingProps,g);case 7:return Pi(a,r,r.pendingProps,g),r.child;case 8:return Pi(a,r,r.pendingProps.children,g),r.child;case 12:return r.flags|=4,r.flags|=2048,D=r.stateNode,D.effectDuration=-0,D.passiveEffectDuration=-0,Pi(a,r,r.pendingProps.children,g),r.child;case 10:return D=r.type,z=r.pendingProps,k=z.value,"value"in z||TL||(TL=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),rl(r,D,k),Pi(a,r,z.children,g),r.child;case 9:return z=r.type._context,D=r.pendingProps.children,typeof D!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),ao(r),z=kn(z),D=E8(D,z,void 0),r.flags|=1,Pi(a,r,D,g),r.child;case 14:return H2(a,r,r.type,r.pendingProps,g);case 15:return yn(a,r,r.type,r.pendingProps,g);case 19:return X2(a,r,g);case 31:return HD(a,r,g);case 22:return Zy(a,r,g,r.pendingProps);case 24:return ao(r),D=kn(Fi),a===null?(z=by(),z===null&&(z=Wn,k=hf(),z.pooledCache=k,fu(k),k!==null&&(z.pooledCacheLanes|=g),z=k),r.memoizedState={parent:D,cache:z},Cy(r),rl(r,Fi,z)):(a.lanes&g&&(Ry(a,r),Z0(r,null,null,g),yf()),z=a.memoizedState,k=r.memoizedState,z.parent!==D?(z={parent:D,cache:D},r.memoizedState=z,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=z),rl(r,Fi,D)):(D=k.cache,rl(r,Fi,D),D!==z.cache&&Na(r,[Fi],g,!0))),Pi(a,r,r.pendingProps.children,g),r.child;case 29:throw r.pendingProps}throw Error("Unknown unit of work tag ("+r.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function rr(a){a.flags|=4}function a1(a){El&&(a.flags|=8)}function gm(a,r){if(a!==null&&a.child===r.child)return!1;if(r.flags&16)return!0;for(a=r.child;a!==null;){if(a.flags&8218||a.subtreeFlags&8218)return!0;a=a.sibling}return!1}function pc(a,r,g,D){if(di)for(g=r.child;g!==null;){if(g.tag===5||g.tag===6)ca(a,g.stateNode);else if(!(g.tag===4||V&&g.tag===27)&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===r)break;for(;g.sibling===null;){if(g.return===null||g.return===r)return;g=g.return}g.sibling.return=g.return,g=g.sibling}else if(El)for(var z=r.child;z!==null;){if(z.tag===5){var k=z.stateNode;g&&D&&(k=Al(k,z.type,z.memoizedProps)),ca(a,k)}else if(z.tag===6)k=z.stateNode,g&&D&&(k=ki(k,z.memoizedProps)),ca(a,k);else if(z.tag!==4){if(z.tag===22&&z.memoizedState!==null)k=z.child,k!==null&&(k.return=z),pc(a,z,!0,!0);else if(z.child!==null){z.child.return=z,z=z.child;continue}}if(z===r)break;for(;z.sibling===null;){if(z.return===null||z.return===r)return;z=z.return}z.sibling.return=z.return,z=z.sibling}}function Cd(a,r,g,D){var z=!1;if(El)for(var k=r.child;k!==null;){if(k.tag===5){var Y=k.stateNode;g&&D&&(Y=Al(Y,k.type,k.memoizedProps)),L1(a,Y)}else if(k.tag===6)Y=k.stateNode,g&&D&&(Y=ki(Y,k.memoizedProps)),L1(a,Y);else if(k.tag!==4){if(k.tag===22&&k.memoizedState!==null)z=k.child,z!==null&&(z.return=k),Cd(a,k,!0,!0),z=!0;else if(k.child!==null){k.child.return=k,k=k.child;continue}}if(k===r)break;for(;k.sibling===null;){if(k.return===null||k.return===r)return z;k=k.return}k.sibling.return=k.return,k=k.sibling}return z}function q2(a,r){if(El&&gm(a,r)){a=r.stateNode;var g=a.containerInfo,D=N1();Cd(D,r,!1,!1),a.pendingChildren=D,rr(r),Ji(g,D)}}function vm(a,r,g,D){if(di)a.memoizedProps!==D&&rr(r);else if(El){var z=a.stateNode,k=a.memoizedProps;if((a=gm(a,r))||k!==D){var Y=qt();k=a4(z,g,k,D,!a,null),k===z?r.stateNode=z:(a1(r),ci(k,g,D,Y)&&rr(r),r.stateNode=k,a&&pc(k,r,!1,!1))}else r.stateNode=z}}function s1(a,r,g,D,z){if((a.mode&32)!==Me&&(g===null?kf(r,D):Ff(r,g,D))){if(a.flags|=16777216,(z&335544128)===z||A1(r,D))if(bc(a.stateNode,r,D))a.flags|=8192;else if(P3())a.flags|=8192;else throw qm=b4,A8}else a.flags&=-16777217}function Su(a,r){if(w(r)){if(a.flags|=16777216,!j(r))if(P3())a.flags|=8192;else throw qm=b4,A8}else a.flags&=-16777217}function Cf(a,r){r!==null&&(a.flags|=4),a.flags&16384&&(r=a.tag!==22?Q():536870912,a.lanes|=r,tg|=r)}function Rd(a,r){if(!un)switch(a.tailMode){case"hidden":r=a.tail;for(var g=null;r!==null;)r.alternate!==null&&(g=r),r=r.sibling;g===null?a.tail=null:g.sibling=null;break;case"collapsed":g=a.tail;for(var D=null;g!==null;)g.alternate!==null&&(D=g),g=g.sibling;D===null?r||a.tail===null?a.tail=null:a.tail.sibling=null:D.sibling=null}}function Ln(a){var r=a.alternate!==null&&a.alternate.child===a.child,g=0,D=0;if(r)if((a.mode&2)!==Me){for(var z=a.selfBaseDuration,k=a.child;k!==null;)g|=k.lanes|k.childLanes,D|=k.subtreeFlags&65011712,D|=k.flags&65011712,z+=k.treeBaseDuration,k=k.sibling;a.treeBaseDuration=z}else for(z=a.child;z!==null;)g|=z.lanes|z.childLanes,D|=z.subtreeFlags&65011712,D|=z.flags&65011712,z.return=a,z=z.sibling;else if((a.mode&2)!==Me){z=a.actualDuration,k=a.selfBaseDuration;for(var Y=a.child;Y!==null;)g|=Y.lanes|Y.childLanes,D|=Y.subtreeFlags,D|=Y.flags,z+=Y.actualDuration,k+=Y.treeBaseDuration,Y=Y.sibling;a.actualDuration=z,a.treeBaseDuration=k}else for(z=a.child;z!==null;)g|=z.lanes|z.childLanes,D|=z.subtreeFlags,D|=z.flags,z.return=a,z=z.sibling;return a.subtreeFlags|=D,a.childLanes=g,r}function Q2(a,r,g){var D=r.pendingProps;switch(Bt(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ln(r),null;case 1:return Ln(r),null;case 3:return g=r.stateNode,D=null,a!==null&&(D=a.memoizedState.cache),r.memoizedState.cache!==D&&(r.flags|=2048),io(Fi,r),jt(r),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(a===null||a.child===null)&&(du(r)?(py(),rr(r)):a===null||a.memoizedState.isDehydrated&&!(r.flags&256)||(r.flags|=1024,z0())),q2(a,r),Ln(r),null;case 26:if(jn){var z=r.type,k=r.memoizedState;return a===null?(rr(r),k!==null?(Ln(r),Su(r,k)):(Ln(r),s1(r,z,null,D,g))):k?k!==a.memoizedState?(rr(r),Ln(r),Su(r,k)):(Ln(r),r.flags&=-16777217):(k=a.memoizedProps,di?k!==D&&rr(r):vm(a,r,z,D),Ln(r),s1(r,z,k,D,g)),null}case 27:if(V){if(Oe(r),g=Xe(Wf.current),z=r.type,a!==null&&r.stateNode!=null)di?a.memoizedProps!==D&&rr(r):vm(a,r,z,D);else{if(!D){if(r.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ln(r),null}a=qt(),du(r)?cu(r,a):(a=at(z,D,g,a,!0),r.stateNode=a,rr(r))}return Ln(r),null}case 5:if(Oe(r),z=r.type,a!==null&&r.stateNode!=null)vm(a,r,z,D);else{if(!D){if(r.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ln(r),null}if(k=qt(),du(r))cu(r,k),Ud(r.stateNode,z,D,k)&&(r.flags|=64);else{var Y=Xe(Wf.current);Y=T1(z,D,Y,k,r),a1(r),pc(Y,r,!1,!1),r.stateNode=Y,ci(Y,z,D,k)&&rr(r)}}return Ln(r),s1(r,r.type,a===null?null:a.memoizedProps,r.pendingProps,g),null;case 6:if(a&&r.stateNode!=null)g=a.memoizedProps,di?g!==D&&rr(r):El&&(g!==D?(a=Xe(Wf.current),g=qt(),a1(r),r.stateNode=wu(D,a,g,r)):r.stateNode=a.stateNode);else{if(typeof D!="string"&&r.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(a=Xe(Wf.current),g=qt(),du(r)){if(!ts)throw Error("Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");if(a=r.stateNode,g=r.memoizedProps,z=!Mc,D=null,k=Es,k!==null)switch(k.tag){case 3:z&&(z=Ex(a,g,D),z!==null&&(lu(r,0).serverProps=z));break;case 27:case 5:D=k.memoizedProps,z&&(z=Ex(a,g,D),z!==null&&(lu(r,0).serverProps=z))}on(a,g,r,D)||sl(r,!0)}else a1(r),r.stateNode=wu(D,a,g,r)}return Ln(r),null;case 31:if(g=r.memoizedState,a===null||a.memoizedState!==null){if(D=du(r),g!==null){if(a===null){if(!D)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(!ts)throw Error("Expected prepareToHydrateHostActivityInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");if(a=r.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");Pn(a,r),Ln(r),(r.mode&2)!==Me&&g!==null&&(a=r.child,a!==null&&(r.treeBaseDuration-=a.treeBaseDuration))}else py(),hu(),!(r.flags&128)&&(g=r.memoizedState=null),r.flags|=4,Ln(r),(r.mode&2)!==Me&&g!==null&&(a=r.child,a!==null&&(r.treeBaseDuration-=a.treeBaseDuration));a=!1}else g=z0(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=g),a=!0;if(!a)return r.flags&256?(vs(r),r):(vs(r),null);if(r.flags&128)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Ln(r),null;case 13:if(D=r.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(z=D,k=du(r),z!==null&&z.dehydrated!==null){if(a===null){if(!k)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(!ts)throw Error("Expected prepareToHydrateHostSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.");if(k=r.memoizedState,k=k!==null?k.dehydrated:null,!k)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");ur(k,r),Ln(r),(r.mode&2)!==Me&&z!==null&&(z=r.child,z!==null&&(r.treeBaseDuration-=z.treeBaseDuration))}else py(),hu(),!(r.flags&128)&&(z=r.memoizedState=null),r.flags|=4,Ln(r),(r.mode&2)!==Me&&z!==null&&(z=r.child,z!==null&&(r.treeBaseDuration-=z.treeBaseDuration));z=!1}else z=z0(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=z),z=!0;if(!z)return r.flags&256?(vs(r),r):(vs(r),null)}return vs(r),r.flags&128?(r.lanes=g,(r.mode&2)!==Me&&U0(r),r):(g=D!==null,a=a!==null&&a.memoizedState!==null,g&&(D=r.child,z=null,D.alternate!==null&&D.alternate.memoizedState!==null&&D.alternate.memoizedState.cachePool!==null&&(z=D.alternate.memoizedState.cachePool.pool),k=null,D.memoizedState!==null&&D.memoizedState.cachePool!==null&&(k=D.memoizedState.cachePool.pool),k!==z&&(D.flags|=2048)),g!==a&&g&&(r.child.flags|=8192),Cf(r,r.updateQueue),Ln(r),(r.mode&2)!==Me&&g&&(a=r.child,a!==null&&(r.treeBaseDuration-=a.treeBaseDuration)),null);case 4:return jt(r),q2(a,r),a===null&&_i(r.stateNode.containerInfo),Ln(r),null;case 10:return io(r.type,r),Ln(r),null;case 19:if(F(ha,r),D=r.memoizedState,D===null)return Ln(r),null;if(z=(r.flags&128)!==0,k=D.rendering,k===null)if(z)Rd(D,!1);else{if(Ci!==nh||a!==null&&a.flags&128)for(a=r.child;a!==null;){if(k=tm(a),k!==null){for(r.flags|=128,Rd(D,!1),a=k.updateQueue,r.updateQueue=a,Cf(r,a),r.subtreeFlags=0,a=g,g=r.child;g!==null;)Qi(g,a),g=g.sibling;return H(ha,ha.current&a_|Ux,r),un&&On(r,D.treeForkCount),r.child}a=a.sibling}D.tail!==null&&ln()>Wx&&(r.flags|=128,z=!0,Rd(D,!1),r.lanes=4194304)}else{if(!z)if(a=tm(k),a!==null){if(r.flags|=128,z=!0,a=a.updateQueue,r.updateQueue=a,Cf(r,a),Rd(D,!0),D.tail===null&&D.tailMode==="hidden"&&!k.alternate&&!un)return Ln(r),null}else 2*ln()-D.renderingStartTime>Wx&&g!==536870912&&(r.flags|=128,z=!0,Rd(D,!1),r.lanes=4194304);D.isBackwards?(k.sibling=r.child,r.child=k):(a=D.last,a!==null?a.sibling=k:r.child=k,D.last=k)}return D.tail!==null?(a=D.tail,D.rendering=a,D.tail=a.sibling,D.renderingStartTime=ln(),a.sibling=null,g=ha.current,g=z?g&a_|Ux:g&a_,H(ha,g,r),un&&On(r,D.treeForkCount),a):(Ln(r),null);case 22:case 23:return vs(r),$0(r),D=r.memoizedState!==null,a!==null?a.memoizedState!==null!==D&&(r.flags|=8192):D&&(r.flags|=8192),D?g&536870912&&!(r.flags&128)&&(Ln(r),r.subtreeFlags&6&&(r.flags|=8192)):Ln(r),g=r.updateQueue,g!==null&&Cf(r,g.retryQueue),g=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(g=a.memoizedState.cachePool.pool),D=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(D=r.memoizedState.cachePool.pool),D!==g&&(r.flags|=2048),a!==null&&F(Km,r),null;case 24:return g=null,a!==null&&(g=a.memoizedState.cache),r.memoizedState.cache!==g&&(r.flags|=2048),io(Fi,r),Ln(r),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+r.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function mc(a,r){switch(Bt(r),r.tag){case 1:return a=r.flags,a&65536?(r.flags=a&-65537|128,(r.mode&2)!==Me&&U0(r),r):null;case 3:return io(Fi,r),jt(r),a=r.flags,a&65536&&!(a&128)?(r.flags=a&-65537|128,r):null;case 26:case 27:case 5:return Oe(r),null;case 31:if(r.memoizedState!==null){if(vs(r),r.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");hu()}return a=r.flags,a&65536?(r.flags=a&-65537|128,(r.mode&2)!==Me&&U0(r),r):null;case 13:if(vs(r),a=r.memoizedState,a!==null&&a.dehydrated!==null){if(r.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");hu()}return a=r.flags,a&65536?(r.flags=a&-65537|128,(r.mode&2)!==Me&&U0(r),r):null;case 19:return F(ha,r),null;case 4:return jt(r),null;case 10:return io(r.type,r),null;case 22:case 23:return vs(r),$0(r),a!==null&&F(Km,r),a=r.flags,a&65536?(r.flags=a&-65537|128,(r.mode&2)!==Me&&U0(r),r):null;case 24:return io(Fi,r),null;case 25:return null;default:return null}}function r1(a,r){switch(Bt(r),r.tag){case 3:io(Fi,r),jt(r);break;case 26:case 27:case 5:Oe(r);break;case 4:jt(r);break;case 31:r.memoizedState!==null&&vs(r);break;case 13:vs(r);break;case 19:F(ha,r);break;case 10:io(r.type,r);break;case 22:case 23:vs(r),$0(r),a!==null&&F(Km,r);break;case 24:io(Fi,r)}}function gl(a){return(a.mode&2)!==Me}function W2(a,r){gl(a)?(co(),gc(r,a),uo()):gc(r,a)}function Z2(a,r,g){gl(a)?(co(),be(g,a,r),uo()):be(g,a,r)}function gc(a,r){try{var g=r.updateQueue,D=g!==null?g.lastEffect:null;if(D!==null){var z=D.next;g=z;do{if((g.tag&a)===a&&(D=void 0,(a&fr)!==x4&&(p_=!0),D=oe(r,oH,g),(a&fr)!==x4&&(p_=!1),D!==void 0&&typeof D!="function")){var k=void 0;k=g.tag&Ao?"useLayoutEffect":g.tag&fr?"useInsertionEffect":"useEffect";var Y=void 0;Y=D===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof D.then=="function"?`
194
194
 
195
195
  It looks like you wrote `+k+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
196
196
 
@@ -203,7 +203,7 @@ It looks like you wrote `+k+`(async () => ...) or returned a Promise. Instead, w
203
203
  fetchData();
204
204
  }, [someId]); // Or [] if effect doesn't need props or state
205
205
 
206
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+D,oe(r,function(J,ct){console.error("%s must not return anything besides a function, which is used for clean-up.%s",J,ct)},k,Y)}g=g.next}while(g!==z)}}catch(J){_n(r,r.return,J)}}function be(a,r,g){try{var D=r.updateQueue,z=D!==null?D.lastEffect:null;if(z!==null){var k=z.next;D=k;do{if((D.tag&a)===a){var Y=D.inst,J=Y.destroy;J!==void 0&&(Y.destroy=void 0,(a&fr)!==x4&&(p_=!0),z=r,oe(z,lH,z,g,J),(a&fr)!==x4&&(p_=!1))}D=D.next}while(D!==k)}}catch(ct){_n(r,r.return,ct)}}function d3(a,r){gl(a)?(co(),gc(r,a),uo()):gc(r,a)}function J2(a,r,g){gl(a)?(co(),be(g,a,r),uo()):be(g,a,r)}function $2(a){var r=a.updateQueue;if(r!==null){var g=a.stateNode;a.type.defaultProps||"ref"in a.memoizedProps||l_||(g.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",L(a)||"instance"),g.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",L(a)||"instance"));try{oe(a,C2,r,g)}catch(D){_n(a,a.return,D)}}}function ym(a,r,g){return a.getSnapshotBeforeUpdate(r,g)}function VD(a,r){var g=r.memoizedProps,D=r.memoizedState;r=a.stateNode,a.type.defaultProps||"ref"in a.memoizedProps||l_||(r.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",L(a)||"instance"),r.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",L(a)||"instance"));try{var z=pl(a.type,g),k=oe(a,ym,r,z,D);g=AL,k!==void 0||g.has(a.type)||(g.add(a.type),oe(a,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",L(a))})),r.__reactInternalSnapshotBeforeUpdate=k}catch(Y){_n(a,a.return,Y)}}function h3(a,r,g){g.props=pl(a.type,a.memoizedProps),g.state=a.memoizedState,gl(a)?(co(),oe(a,V7,a,r,g),uo()):oe(a,V7,a,r,g)}function YD(a){var r=a.ref;if(r!==null){switch(a.tag){case 26:case 27:case 5:var g=Ss(a.stateNode);break;case 30:g=a.stateNode;break;default:g=a.stateNode}if(typeof r=="function")if(gl(a))try{co(),a.refCleanup=r(g)}finally{uo()}else a.refCleanup=r(g);else typeof r=="string"?console.error("String refs are no longer supported."):r.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",L(a)),r.current=g}}function _m(a,r){try{oe(a,YD,a)}catch(g){_n(a,r,g)}}function vl(a,r){var g=a.ref,D=a.refCleanup;if(g!==null)if(typeof D=="function")try{if(gl(a))try{co(),oe(a,D)}finally{uo(a)}else oe(a,D)}catch(z){_n(a,r,z)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof g=="function")try{if(gl(a))try{co(),oe(a,g,null)}finally{uo(a)}else oe(a,g,null)}catch(z){_n(a,r,z)}else g.current=null}function o1(a,r,g,D){var z=a.memoizedProps,k=z.id,Y=z.onCommit;z=z.onRender,r=r===null?"mount":"update",p4&&(r="nested-update"),typeof z=="function"&&z(k,r,a.actualDuration,a.treeBaseDuration,a.actualStartTime,g),typeof Y=="function"&&Y(k,r,D,g)}function f3(a,r,g,D){var z=a.memoizedProps;a=z.id,z=z.onPostCommit,r=r===null?"mount":"update",p4&&(r="nested-update"),typeof z=="function"&&z(a,r,D,g)}function bm(a){var r=a.type,g=a.memoizedProps,D=a.stateNode;try{oe(a,Fn,D,r,g,a)}catch(z){_n(a,a.return,z)}}function l1(a,r,g){try{oe(a,Zi,a.stateNode,a.type,g,r,a)}catch(D){_n(a,a.return,D)}}function p3(a){return a.tag===5||a.tag===3||(jn?a.tag===26:!1)||(V?a.tag===27&&Wt(a.type):!1)||a.tag===4}function tx(a){t:for(;;){for(;a.sibling===null;){if(a.return===null||p3(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(V&&a.tag===27&&Wt(a.type)||a.flags&2||a.child===null||a.tag===4)continue t;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function xu(a,r,g){var D=a.tag;if(D===5||D===6)a=a.stateNode,r?Uf(g,a,r):Du(g,a);else if(D!==4&&(V&&D===27&&Wt(a.type)&&(g=a.stateNode,r=null),a=a.child,a!==null))for(xu(a,r,g),a=a.sibling;a!==null;)xu(a,r,g),a=a.sibling}function Dr(a,r,g){var D=a.tag;if(D===5||D===6)a=a.stateNode,r?M1(g,a,r):Bi(g,a);else if(D!==4&&(V&&D===27&&Wt(a.type)&&(g=a.stateNode),a=a.child,a!==null))for(Dr(a,r,g),a=a.sibling;a!==null;)Dr(a,r,g),a=a.sibling}function Ja(a){for(var r,g=a.return;g!==null;){if(p3(g)){r=g;break}g=g.return}if(di){if(r==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(r.tag){case 27:if(V){r=r.stateNode,g=tx(a),Dr(a,g,r);break}case 5:g=r.stateNode,r.flags&32&&(Hf(g),r.flags&=-33),r=tx(a),Dr(a,r,g);break;case 3:case 4:r=r.stateNode.containerInfo,g=tx(a),xu(a,g,r);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}}function vo(a,r,g){a=a.containerInfo;try{oe(r,P1,a,g)}catch(D){_n(r,r.return,D)}}function ja(a){var r=a.stateNode,g=a.memoizedProps;try{oe(a,ft,a.type,g,r,a)}catch(D){_n(a,a.return,D)}}function m3(a,r){return r.tag===31?(r=r.memoizedState,a.memoizedState!==null&&r===null):r.tag===13?(a=a.memoizedState,r=r.memoizedState,a!==null&&a.dehydrated!==null&&(r===null||r.dehydrated===null)):r.tag===3?a.memoizedState.isDehydrated&&(r.flags&256)===0:!1}function KD(a,r){for(Mm(a.containerInfo),es=r;es!==null;)if(a=es,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,es=r;else for(;es!==null;){r=a=es;var g=r.alternate,D=r.flags;switch(r.tag){case 0:if(D&4&&(r=r.updateQueue,r=r!==null?r.events:null,r!==null))for(g=0;g<r.length;g++)D=r[g],D.ref.impl=D.nextImpl;break;case 11:case 15:break;case 1:D&1024&&g!==null&&VD(r,g);break;case 3:D&1024&&di&&bx(r.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(D&1024)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(r=a.sibling,r!==null){r.return=a.return,es=r;break}es=a.return}}function ua(a,r,g){var D=ms(),z=ul(),k=oo(),Y=lo(),J=g.flags;switch(g.tag){case 0:case 11:case 15:bs(a,g),J&4&&W2(g,Ao|Ll);break;case 1:if(bs(a,g),J&4)if(a=g.stateNode,r===null)g.type.defaultProps||"ref"in g.memoizedProps||l_||(a.props!==g.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",L(g)||"instance"),a.state!==g.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",L(g)||"instance")),gl(g)?(co(),oe(g,T8,g,a),uo()):oe(g,T8,g,a);else{var ct=pl(g.type,r.memoizedProps);r=r.memoizedState,g.type.defaultProps||"ref"in g.memoizedProps||l_||(a.props!==g.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",L(g)||"instance"),a.state!==g.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",L(g)||"instance")),gl(g)?(co(),oe(g,U7,g,a,ct,r,a.__reactInternalSnapshotBeforeUpdate),uo()):oe(g,U7,g,a,ct,r,a.__reactInternalSnapshotBeforeUpdate)}J&64&&$2(g),J&512&&_m(g,g.return);break;case 3:if(r=ll(),bs(a,g),J&64&&(J=g.updateQueue,J!==null)){if(ct=null,g.child!==null)switch(g.child.tag){case 27:case 5:ct=Ss(g.child.stateNode);break;case 1:ct=g.child.stateNode}try{oe(g,C2,J,ct)}catch(Mt){_n(g,g.return,Mt)}}a.effectDuration+=k0(r);break;case 27:V&&r===null&&J&4&&ja(g);case 26:case 5:if(bs(a,g),r===null){if(J&4)bm(g);else if(J&64){a=g.type,r=g.memoizedProps,ct=g.stateNode;try{oe(g,Sx,ct,a,r,g)}catch(Mt){_n(g,g.return,Mt)}}}J&512&&_m(g,g.return);break;case 12:if(J&4){J=ll(),bs(a,g),a=g.stateNode,a.effectDuration+=ff(J);try{oe(g,o1,g,r,Jf,a.effectDuration)}catch(Mt){_n(g,g.return,Mt)}}else bs(a,g);break;case 31:bs(a,g),J&4&&g3(a,g);break;case 13:bs(a,g),J&4&&v3(a,g),J&64&&(a=g.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(J=X3.bind(null,g),$i(a,J))));break;case 22:if(J=g.memoizedState!==null||eh,!J){r=r!==null&&r.memoizedState!==null||Ta,ct=eh;var vt=Ta;eh=J,(Ta=r)&&!vt?(_l(a,g,(g.subtreeFlags&8772)!==0),(g.mode&2)!==Me&&0<=Ee&&0<=Re&&.05<Re-Ee&&Jt(g,Ee,Re)):bs(a,g),eh=ct,Ta=vt}break;case 30:break;default:bs(a,g)}(g.mode&2)!==Me&&0<=Ee&&0<=Re&&((Ii||.05<Ai)&&Se(g,Ee,Re,Ai,Si),g.alternate===null&&g.return!==null&&g.return.alternate!==null&&.05<Re-Ee&&(m3(g.return.alternate,g.return)||$t(g,Ee,Re,"Mount"))),Ps(D),ro(z),Si=k,Ii=Y}function yl(a){var r=a.alternate;r!==null&&(a.alternate=null,yl(r)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(r=a.stateNode,r!==null&&vx(r)),a.stateNode=null,a._debugOwner=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function yo(a,r,g){for(g=g.child;g!==null;)ex(a,r,g),g=g.sibling}function ex(a,r,g){if(Vs&&typeof Vs.onCommitFiberUnmount=="function")try{Vs.onCommitFiberUnmount(K1,g)}catch(vt){Rc||(Rc=!0,console.error("React instrumentation encountered an error: %o",vt))}var D=ms(),z=ul(),k=oo(),Y=lo();switch(g.tag){case 26:if(jn){Ta||vl(g,r),yo(a,r,g),g.memoizedState?V1(g.memoizedState):g.stateNode&&Y1(g.stateNode);break}case 27:if(V){Ta||vl(g,r);var J=Aa,ct=kr;Wt(g.type)&&(Aa=g.stateNode,kr=!1),yo(a,r,g),oe(g,Ot,g.stateNode),Aa=J,kr=ct;break}case 5:Ta||vl(g,r);case 6:if(di){if(J=Aa,ct=kr,Aa=null,yo(a,r,g),Aa=J,kr=ct,Aa!==null)if(kr)try{oe(g,O1,Aa,g.stateNode)}catch(vt){_n(g,r,vt)}else try{oe(g,Fd,Aa,g.stateNode)}catch(vt){_n(g,r,vt)}}else yo(a,r,g);break;case 18:di&&Aa!==null&&(kr?Vf(Aa,g.stateNode):cr(Aa,g.stateNode));break;case 4:di?(J=Aa,ct=kr,Aa=g.stateNode.containerInfo,kr=!0,yo(a,r,g),Aa=J,kr=ct):(El&&vo(g.stateNode,g,N1()),yo(a,r,g));break;case 0:case 11:case 14:case 15:be(fr,g,r),Ta||Z2(g,r,Ao),yo(a,r,g);break;case 1:Ta||(vl(g,r),J=g.stateNode,typeof J.componentWillUnmount=="function"&&h3(g,r,J)),yo(a,r,g);break;case 21:yo(a,r,g);break;case 22:Ta=(J=Ta)||g.memoizedState!==null,yo(a,r,g),Ta=J;break;default:yo(a,r,g)}(g.mode&2)!==Me&&0<=Ee&&0<=Re&&(Ii||.05<Ai)&&Se(g,Ee,Re,Ai,Si),Ps(D),ro(z),Si=k,Ii=Y}function g3(a,r){if(ts&&r.memoizedState===null&&(a=r.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{oe(r,Ei,a)}catch(g){_n(r,r.return,g)}}}function v3(a,r){if(ts&&r.memoizedState===null&&(a=r.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{oe(r,Tc,a)}catch(g){_n(r,r.return,g)}}function XD(a){switch(a.tag){case 31:case 13:case 19:var r=a.stateNode;return r===null&&(r=a.stateNode=new CL),r;case 22:return a=a.stateNode,r=a._retryCache,r===null&&(r=a._retryCache=new CL),r;default:throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}}function Rf(a,r){var g=XD(a);r.forEach(function(D){if(!g.has(D)){if(g.add(D),wc)if(u_!==null&&c_!==null)Of(c_,u_);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var z=t8.bind(null,a,D);D.then(z,z)}})}function za(a,r){var g=r.deletions;if(g!==null)for(var D=0;D<g.length;D++){var z=a,k=r,Y=g[D],J=ms();if(di){var ct=k;t:for(;ct!==null;){switch(ct.tag){case 27:if(V){if(Wt(ct.type)){Aa=ct.stateNode,kr=!1;break t}break}case 5:Aa=ct.stateNode,kr=!1;break t;case 3:case 4:Aa=ct.stateNode.containerInfo,kr=!0;break t}ct=ct.return}if(Aa===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");ex(z,k,Y),Aa=null,kr=!1}else ex(z,k,Y);(Y.mode&2)!==Me&&0<=Ee&&0<=Re&&.05<Re-Ee&&$t(Y,Ee,Re,"Unmount"),Ps(J),z=Y,k=z.alternate,k!==null&&(k.return=null),z.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)y3(r,a),r=r.sibling}function y3(a,r){var g=ms(),D=ul(),z=oo(),k=lo(),Y=a.alternate,J=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:za(r,a),$a(a),J&4&&(be(fr|Ll,a,a.return),gc(fr|Ll,a),Z2(a,a.return,Ao|Ll));break;case 1:za(r,a),$a(a),J&512&&(Ta||Y===null||vl(Y,Y.return)),J&64&&eh&&(J=a.updateQueue,J!==null&&(Y=J.callbacks,Y!==null&&(r=J.shared.hiddenCallbacks,J.shared.hiddenCallbacks=r===null?Y:r.concat(Y))));break;case 26:if(jn){var ct=ju;za(r,a),$a(a),J&512&&(Ta||Y===null||vl(Y,Y.return)),J&4&&(J=Y!==null?Y.memoizedState:null,r=a.memoizedState,Y===null?r===null?a.stateNode===null?a.stateNode=s4(ct,a.type,a.memoizedProps,a):Kf(ct,a.type,a.stateNode):a.stateNode=G1(ct,r,a.memoizedProps):J!==r?(J===null?Y.stateNode!==null&&Y1(Y.stateNode):V1(J),r===null?Kf(ct,a.type,a.stateNode):G1(ct,r,a.memoizedProps)):r===null&&a.stateNode!==null&&l1(a,a.memoizedProps,Y.memoizedProps));break}case 27:if(V){za(r,a),$a(a),J&512&&(Ta||Y===null||vl(Y,Y.return)),Y!==null&&J&4&&l1(a,a.memoizedProps,Y.memoizedProps);break}case 5:if(za(r,a),$a(a),J&512&&(Ta||Y===null||vl(Y,Y.return)),di){if(a.flags&32){r=a.stateNode;try{oe(a,Hf,r)}catch(Yn){_n(a,a.return,Yn)}}J&4&&a.stateNode!=null&&(r=a.memoizedProps,l1(a,r,Y!==null?Y.memoizedProps:r)),J&1024&&(k8=!0,a.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."))}else El&&a.alternate!==null&&(a.alternate.stateNode=a.stateNode);break;case 6:if(za(r,a),$a(a),J&4&&di){if(a.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");J=a.memoizedProps,Y=Y!==null?Y.memoizedProps:J,r=a.stateNode;try{oe(a,Fe,r,Y,J)}catch(Yn){_n(a,a.return,Yn)}}break;case 3:if(ct=ll(),jn){p();var vt=ju;ju=Cc(r.containerInfo),za(r,a),ju=vt}else za(r,a);if($a(a),J&4){if(di&&ts&&Y!==null&&Y.memoizedState.isDehydrated)try{oe(a,Mu,r.containerInfo)}catch(Yn){_n(a,a.return,Yn)}if(El){J=r.containerInfo,Y=r.pendingChildren;try{oe(a,P1,J,Y)}catch(Yn){_n(a,a.return,Yn)}}}k8&&(k8=!1,_3(a)),r.effectDuration+=k0(ct);break;case 4:jn?(Y=ju,ju=Cc(a.stateNode.containerInfo),za(r,a),$a(a),ju=Y):(za(r,a),$a(a)),J&4&&El&&vo(a.stateNode,a,a.stateNode.pendingChildren);break;case 12:J=ll(),za(r,a),$a(a),a.stateNode.effectDuration+=ff(J);break;case 31:za(r,a),$a(a),J&4&&(J=a.updateQueue,J!==null&&(a.updateQueue=null,Rf(a,J)));break;case 13:za(r,a),$a(a),a.child.flags&8192&&a.memoizedState!==null!=(Y!==null&&Y.memoizedState!==null)&&(k4=ln()),J&4&&(J=a.updateQueue,J!==null&&(a.updateQueue=null,Rf(a,J)));break;case 22:ct=a.memoizedState!==null;var Mt=Y!==null&&Y.memoizedState!==null,Nt=eh,Bt=Ta;if(eh=Nt||ct,Ta=Bt||Mt,za(r,a),Ta=Bt,eh=Nt,Mt&&!ct&&!Nt&&!Bt&&(a.mode&2)!==Me&&0<=Ee&&0<=Re&&.05<Re-Ee&&Jt(a,Ee,Re),$a(a),J&8192&&(r=a.stateNode,r._visibility=ct?r._visibility&~Ix:r._visibility|Ix,!ct||Y===null||Mt||eh||Ta||(wd(a),(a.mode&2)!==Me&&0<=Ee&&0<=Re&&.05<Re-Ee&&$t(a,Ee,Re,"Disconnect")),di)){t:if(Y=null,di)for(r=a;;){if(r.tag===5||jn&&r.tag===26){if(Y===null){Mt=Y=r;try{vt=Mt.stateNode,ct?oe(Mt,Gf,vt):oe(Mt,Lm,Mt.stateNode,Mt.memoizedProps)}catch(Yn){_n(Mt,Mt.return,Yn)}}}else if(r.tag===6){if(Y===null){Mt=r;try{var _e=Mt.stateNode;ct?oe(Mt,a8,_e):oe(Mt,i4,_e,Mt.memoizedProps)}catch(Yn){_n(Mt,Mt.return,Yn)}}}else if(r.tag===18){if(Y===null){Mt=r;try{var Pe=Mt.stateNode;ct?oe(Mt,zm,Pe):oe(Mt,Gs,Mt.stateNode)}catch(Yn){_n(Mt,Mt.return,Yn)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===a)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break t;for(;r.sibling===null;){if(r.return===null||r.return===a)break t;Y===r&&(Y=null),r=r.return}Y===r&&(Y=null),r.sibling.return=r.return,r=r.sibling}}J&4&&(J=a.updateQueue,J!==null&&(Y=J.retryQueue,Y!==null&&(J.retryQueue=null,Rf(a,Y))));break;case 19:za(r,a),$a(a),J&4&&(J=a.updateQueue,J!==null&&(a.updateQueue=null,Rf(a,J)));break;case 30:break;case 21:break;default:za(r,a),$a(a)}(a.mode&2)!==Me&&0<=Ee&&0<=Re&&((Ii||.05<Ai)&&Se(a,Ee,Re,Ai,Si),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<Re-Ee&&(m3(a.return.alternate,a.return)||$t(a,Ee,Re,"Mount"))),Ps(g),ro(D),Si=z,Ii=k}function $a(a){var r=a.flags;if(r&2){try{oe(a,Ja,a)}catch(g){_n(a,a.return,g)}a.flags&=-3}r&4096&&(a.flags&=-4097)}function _3(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var r=a;_3(r),r.tag===5&&r.flags&1024&&Nm(r.stateNode),a=a.sibling}}function bs(a,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)ua(a,r.alternate,r),r=r.sibling}function vc(a){var r=ms(),g=ul(),D=oo(),z=lo();switch(a.tag){case 0:case 11:case 14:case 15:Z2(a,a.return,Ao),wd(a);break;case 1:vl(a,a.return);var k=a.stateNode;typeof k.componentWillUnmount=="function"&&h3(a,a.return,k),wd(a);break;case 27:V&&oe(a,Ot,a.stateNode);case 26:case 5:vl(a,a.return),wd(a);break;case 22:a.memoizedState===null&&wd(a);break;case 30:wd(a);break;default:wd(a)}(a.mode&2)!==Me&&0<=Ee&&0<=Re&&(Ii||.05<Ai)&&Se(a,Ee,Re,Ai,Si),Ps(r),ro(g),Si=D,Ii=z}function wd(a){for(a=a.child;a!==null;)vc(a),a=a.sibling}function b3(a,r,g,D){var z=ms(),k=ul(),Y=oo(),J=lo(),ct=g.flags;switch(g.tag){case 0:case 11:case 15:_l(a,g,D),W2(g,Ao);break;case 1:if(_l(a,g,D),r=g.stateNode,typeof r.componentDidMount=="function"&&oe(g,T8,g,r),r=g.updateQueue,r!==null){a=g.stateNode;try{oe(g,A2,r,a)}catch(vt){_n(g,g.return,vt)}}D&&ct&64&&$2(g),_m(g,g.return);break;case 27:V&&ja(g);case 26:case 5:_l(a,g,D),D&&r===null&&ct&4&&bm(g),_m(g,g.return);break;case 12:if(D&&ct&4){ct=ll(),_l(a,g,D),D=g.stateNode,D.effectDuration+=ff(ct);try{oe(g,o1,g,r,Jf,D.effectDuration)}catch(vt){_n(g,g.return,vt)}}else _l(a,g,D);break;case 31:_l(a,g,D),D&&ct&4&&g3(a,g);break;case 13:_l(a,g,D),D&&ct&4&&v3(a,g);break;case 22:g.memoizedState===null&&_l(a,g,D),_m(g,g.return);break;case 30:break;default:_l(a,g,D)}(g.mode&2)!==Me&&0<=Ee&&0<=Re&&(Ii||.05<Ai)&&Se(g,Ee,Re,Ai,Si),Ps(z),ro(k),Si=Y,Ii=J}function _l(a,r,g){for(g=g&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;)b3(a,r.alternate,r,g),r=r.sibling}function Dd(a,r){var g=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(g=a.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==g&&(a!=null&&fu(a),g!=null&&_d(g))}function nx(a,r){a=null,r.alternate!==null&&(a=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==a&&(fu(r),a!=null&&_d(a))}function _o(a,r,g,D,z){if(r.subtreeFlags&10256||r.actualDuration!==0&&(r.alternate===null||r.alternate.child!==r.child))for(r=r.child;r!==null;){var k=r.sibling;S3(a,r,g,D,k!==null?k.actualStartTime:z),r=k}}function S3(a,r,g,D,z){var k=ms(),Y=ul(),J=oo(),ct=lo(),vt=Xf,Mt=r.flags;switch(r.tag){case 0:case 11:case 15:(r.mode&2)!==Me&&0<r.actualStartTime&&r.flags&1&&we(r,r.actualStartTime,z,Fa,g),_o(a,r,g,D,z),Mt&2048&&d3(r,pr|Ll);break;case 1:(r.mode&2)!==Me&&0<r.actualStartTime&&(r.flags&128?ze(r,r.actualStartTime,z,[]):r.flags&1&&we(r,r.actualStartTime,z,Fa,g)),_o(a,r,g,D,z);break;case 3:var Nt=ll(),Bt=Fa;Fa=r.alternate!==null&&r.alternate.memoizedState.isDehydrated&&(r.flags&256)===0,_o(a,r,g,D,z),Fa=Bt,Mt&2048&&(g=null,r.alternate!==null&&(g=r.alternate.memoizedState.cache),D=r.memoizedState.cache,D!==g&&(fu(D),g!=null&&_d(g))),a.passiveEffectDuration+=k0(Nt);break;case 12:if(Mt&2048){Mt=ll(),_o(a,r,g,D,z),a=r.stateNode,a.passiveEffectDuration+=ff(Mt);try{oe(r,f3,r,r.alternate,Jf,a.passiveEffectDuration)}catch(_e){_n(r,r.return,_e)}}else _o(a,r,g,D,z);break;case 31:Mt=Fa,Nt=r.alternate!==null?r.alternate.memoizedState:null,Bt=r.memoizedState,Nt!==null&&Bt===null?(Bt=r.deletions,Bt!==null&&0<Bt.length&&Bt[0].tag===18?(Fa=!1,Nt=Nt.hydrationErrors,Nt!==null&&ze(r,r.actualStartTime,z,Nt)):Fa=!0):Fa=!1,_o(a,r,g,D,z),Fa=Mt;break;case 13:Mt=Fa,Nt=r.alternate!==null?r.alternate.memoizedState:null,Bt=r.memoizedState,Nt===null||Nt.dehydrated===null||Bt!==null&&Bt.dehydrated!==null?Fa=!1:(Bt=r.deletions,Bt!==null&&0<Bt.length&&Bt[0].tag===18?(Fa=!1,Nt=Nt.hydrationErrors,Nt!==null&&ze(r,r.actualStartTime,z,Nt)):Fa=!0),_o(a,r,g,D,z),Fa=Mt;break;case 23:break;case 22:Bt=r.stateNode,Nt=r.alternate,r.memoizedState!==null?Bt._visibility&Zd?_o(a,r,g,D,z):Sm(a,r,g,D,z):Bt._visibility&Zd?_o(a,r,g,D,z):(Bt._visibility|=Zd,bl(a,r,g,D,(r.subtreeFlags&10256)!==0||r.actualDuration!==0&&(r.alternate===null||r.alternate.child!==r.child),z),(r.mode&2)===Me||Fa||(a=r.actualStartTime,0<=a&&.05<z-a&&Jt(r,a,z),0<=Ee&&0<=Re&&.05<Re-Ee&&Jt(r,Ee,Re))),Mt&2048&&Dd(Nt,r);break;case 24:_o(a,r,g,D,z),Mt&2048&&nx(r.alternate,r);break;default:_o(a,r,g,D,z)}(r.mode&2)!==Me&&((a=!Fa&&r.alternate===null&&r.return!==null&&r.return.alternate!==null)&&(g=r.actualStartTime,0<=g&&.05<z-g&&$t(r,g,z,"Mount")),0<=Ee&&0<=Re&&((Ii||.05<Ai)&&Se(r,Ee,Re,Ai,Si),a&&.05<Re-Ee&&$t(r,Ee,Re,"Mount"))),Ps(k),ro(Y),Si=J,Ii=ct,Xf=vt}function bl(a,r,g,D,z,k){for(z=z&&((r.subtreeFlags&10256)!==0||r.actualDuration!==0&&(r.alternate===null||r.alternate.child!==r.child)),r=r.child;r!==null;){var Y=r.sibling;x3(a,r,g,D,z,Y!==null?Y.actualStartTime:k),r=Y}}function x3(a,r,g,D,z,k){var Y=ms(),J=ul(),ct=oo(),vt=lo(),Mt=Xf;z&&(r.mode&2)!==Me&&0<r.actualStartTime&&r.flags&1&&we(r,r.actualStartTime,k,Fa,g);var Nt=r.flags;switch(r.tag){case 0:case 11:case 15:bl(a,r,g,D,z,k),d3(r,pr);break;case 23:break;case 22:var Bt=r.stateNode;r.memoizedState!==null?Bt._visibility&Zd?bl(a,r,g,D,z,k):Sm(a,r,g,D,k):(Bt._visibility|=Zd,bl(a,r,g,D,z,k)),z&&Nt&2048&&Dd(r.alternate,r);break;case 24:bl(a,r,g,D,z,k),z&&Nt&2048&&nx(r.alternate,r);break;default:bl(a,r,g,D,z,k)}(r.mode&2)!==Me&&0<=Ee&&0<=Re&&(Ii||.05<Ai)&&Se(r,Ee,Re,Ai,Si),Ps(Y),ro(J),Si=ct,Ii=vt,Xf=Mt}function Sm(a,r,g,D,z){if(r.subtreeFlags&10256||r.actualDuration!==0&&(r.alternate===null||r.alternate.child!==r.child))for(var k=r.child;k!==null;){r=k.sibling;var Y=a,J=g,ct=D,vt=r!==null?r.actualStartTime:z,Mt=Xf;(k.mode&2)!==Me&&0<k.actualStartTime&&k.flags&1&&we(k,k.actualStartTime,vt,Fa,J);var Nt=k.flags;switch(k.tag){case 22:Sm(Y,k,J,ct,vt),Nt&2048&&Dd(k.alternate,k);break;case 24:Sm(Y,k,J,ct,vt),Nt&2048&&nx(k.alternate,k);break;default:Sm(Y,k,J,ct,vt)}Xf=Mt,k=r}}function Md(a,r,g){if(a.subtreeFlags&d_)for(a=a.child;a!==null;)E3(a,r,g),a=a.sibling}function E3(a,r,g){switch(a.tag){case 26:if(Md(a,r,g),a.flags&d_)if(a.memoizedState!==null)U(g,ju,a.memoizedState,a.memoizedProps);else{var D=a.stateNode,z=a.type;a=a.memoizedProps,((r&335544128)===r||A1(z,a))&&C1(g,D,z,a)}break;case 5:Md(a,r,g),a.flags&d_&&(D=a.stateNode,z=a.type,a=a.memoizedProps,((r&335544128)===r||A1(z,a))&&C1(g,D,z,a));break;case 3:case 4:jn?(D=ju,ju=Cc(a.stateNode.containerInfo),Md(a,r,g),ju=D):Md(a,r,g);break;case 22:a.memoizedState===null&&(D=a.alternate,D!==null&&D.memoizedState!==null?(D=d_,d_=16777216,Md(a,r,g),d_=D):Md(a,r,g));break;default:Md(a,r,g)}}function T3(a){var r=a.alternate;if(r!==null&&(a=r.child,a!==null)){r.child=null;do r=a.sibling,a.sibling=null,a=r;while(a!==null)}}function xm(a){var r=a.deletions;if(a.flags&16){if(r!==null)for(var g=0;g<r.length;g++){var D=r[g],z=ms();es=D,R3(D,a),(D.mode&2)!==Me&&0<=Ee&&0<=Re&&.05<Re-Ee&&$t(D,Ee,Re,"Unmount"),Ps(z)}T3(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)A3(a),a=a.sibling}function A3(a){var r=ms(),g=ul(),D=oo(),z=lo();switch(a.tag){case 0:case 11:case 15:xm(a),a.flags&2048&&J2(a,a.return,pr|Ll);break;case 3:var k=ll();xm(a),a.stateNode.passiveEffectDuration+=k0(k);break;case 12:k=ll(),xm(a),a.stateNode.passiveEffectDuration+=ff(k);break;case 22:k=a.stateNode,a.memoizedState!==null&&k._visibility&Zd&&(a.return===null||a.return.tag!==13)?(k._visibility&=~Zd,u1(a),(a.mode&2)!==Me&&0<=Ee&&0<=Re&&.05<Re-Ee&&$t(a,Ee,Re,"Disconnect")):xm(a);break;default:xm(a)}(a.mode&2)!==Me&&0<=Ee&&0<=Re&&(Ii||.05<Ai)&&Se(a,Ee,Re,Ai,Si),Ps(r),ro(g),Ii=z,Si=D}function u1(a){var r=a.deletions;if(a.flags&16){if(r!==null)for(var g=0;g<r.length;g++){var D=r[g],z=ms();es=D,R3(D,a),(D.mode&2)!==Me&&0<=Ee&&0<=Re&&.05<Re-Ee&&$t(D,Ee,Re,"Unmount"),Ps(z)}T3(a)}for(a=a.child;a!==null;)C3(a),a=a.sibling}function C3(a){var r=ms(),g=ul(),D=oo(),z=lo();switch(a.tag){case 0:case 11:case 15:J2(a,a.return,pr),u1(a);break;case 22:var k=a.stateNode;k._visibility&Zd&&(k._visibility&=~Zd,u1(a));break;default:u1(a)}(a.mode&2)!==Me&&0<=Ee&&0<=Re&&(Ii||.05<Ai)&&Se(a,Ee,Re,Ai,Si),Ps(r),ro(g),Ii=z,Si=D}function R3(a,r){for(;es!==null;){var g=es,D=g,z=r,k=ms(),Y=ul(),J=oo(),ct=lo();switch(D.tag){case 0:case 11:case 15:J2(D,z,pr);break;case 23:case 22:D.memoizedState!==null&&D.memoizedState.cachePool!==null&&(z=D.memoizedState.cachePool.pool,z!=null&&fu(z));break;case 24:_d(D.memoizedState.cache)}if((D.mode&2)!==Me&&0<=Ee&&0<=Re&&(Ii||.05<Ai)&&Se(D,Ee,Re,Ai,Si),Ps(k),ro(Y),Ii=ct,Si=J,D=g.child,D!==null)D.return=g,es=D;else t:for(g=a;es!==null;){if(D=es,k=D.sibling,Y=D.return,yl(D),D===g){es=null;break t}if(k!==null){k.return=Y,es=k;break t}es=Y}}}function ix(a){var r=i8(a);if(r!=null){if(typeof r.memoizedProps["data-testname"]!="string")throw Error("Invalid host root specified. Should be either a React container or a node with a testname attribute.");return r}if(a=yx(a),a===null)throw Error("Could not find React container within specified host subtree.");return a.stateNode.current}function ax(a,r){var g=a.tag;switch(r.$$typeof){case R4:if(a.type===r.value)return!0;break;case w4:t:{for(r=r.value,a=[a,0],g=0;g<a.length;){var D=a[g++],z=D.tag,k=a[g++],Y=r[k];if(z!==5&&z!==26&&z!==27||!Tl(D)){for(;Y!=null&&ax(D,Y);)k++,Y=r[k];if(k===r.length){r=!0;break t}else for(D=D.child;D!==null;)a.push(D,k),D=D.sibling}}r=!1}return r;case D4:if((g===5||g===26||g===27)&&D1(a.stateNode,r.value))return!0;break;case O4:if((g===5||g===6||g===26||g===27)&&(a=_x(a),a!==null&&0<=a.indexOf(r.value)))return!0;break;case M4:if((g===5||g===26||g===27)&&(a=a.memoizedProps["data-testname"],typeof a=="string"&&a.toLowerCase()===r.value.toLowerCase()))return!0;break;default:throw Error("Invalid selector type specified.")}return!1}function c1(a){switch(a.$$typeof){case R4:return"<"+(B(a.value)||"Unknown")+">";case w4:return":has("+(c1(a)||"")+")";case D4:return'[role="'+a.value+'"]';case O4:return'"'+a.value+'"';case M4:return'[data-testname="'+a.value+'"]';default:throw Error("Invalid selector type specified.")}}function w3(a,r){var g=[];a=[a,0];for(var D=0;D<a.length;){var z=a[D++],k=z.tag,Y=a[D++],J=r[Y];if(k!==5&&k!==26&&k!==27||!Tl(z)){for(;J!=null&&ax(z,J);)Y++,J=r[Y];if(Y===r.length)g.push(z);else for(z=z.child;z!==null;)a.push(z,Y),z=z.sibling}}return g}function d1(a,r){if(!So)throw Error("Test selector API is not supported by this renderer.");a=ix(a),a=w3(a,r),r=[],a=Array.from(a);for(var g=0;g<a.length;){var D=a[g++],z=D.tag;if(z===5||z===26||z===27)Tl(D)||r.push(D.stateNode);else for(D=D.child;D!==null;)a.push(D),D=D.sibling}return r}function qD(){So&&N4.forEach(function(a){return a()})}function D3(){var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return a||Ct.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),a}function or(a){if((cn&is)!==ns&&Qe!==0)return Qe&-Qe;var r=Ct.T;return r!==null?(r._updatedFibers||(r._updatedFibers=new Set),r._updatedFibers.add(a),_y()):gx()}function M3(){if(Ir===0)if(!(Qe&536870912)||un){var a=Dt;Dt<<=1,!(Dt&3932160)&&(Dt=262144),Ir=a}else Ir=536870912;return a=To.current,a!==null&&(a.flags|=32),Ir}function ui(a,r,g){if(p_&&console.error("useInsertionEffect must not schedule updates."),W8&&(U4=!0),(a===Wn&&(In===Jm||In===$m)||a.cancelPendingCommit!==null)&&(wf(a,0),Eu(a,Qe,Ir,!1)),rt(a,g),(cn&is)!==ns&&a===Wn){if(Dc)switch(r.tag){case 0:case 11:case 15:a=$e&&L($e)||"Unknown",IL.has(a)||(IL.add(a),r=L(r)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",r,a,a));break;case 1:FL||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),FL=!0)}}else wc&&it(a,r,g),Q3(r),a===Wn&&((cn&is)===ns&&(rp|=g),Ci===ip&&Eu(a,Qe,Ir,!1)),gs(a)}function sx(a,r,g){if((cn&(is|jl))!==ns)throw Error("Should not already be working.");if(Qe!==0&&$e!==null){var D=$e,z=ln();switch(L7){case Xx:case Jm:var k=Mx;fi&&((D=D._debugTask)?D.run(console.timeStamp.bind(console,"Suspended",k,z,"Components ⚛",void 0,"primary-light")):console.timeStamp("Suspended",k,z,"Components ⚛",void 0,"primary-light"));break;case $m:k=Mx,fi&&((D=D._debugTask)?D.run(console.timeStamp.bind(console,"Action",k,z,"Components ⚛",void 0,"primary-light")):console.timeStamp("Action",k,z,"Components ⚛",void 0,"primary-light"));break;default:fi&&(D=z-Mx,3>D||console.timeStamp("Blocked",Mx,z,"Components ⚛",void 0,5>D?"primary-light":10>D?"primary":100>D?"primary-dark":"error"))}}k=(g=!g&&(r&127)===0&&(r&a.expiredLanes)===0||$(a,r))?QD(a,r):ox(a,r,!0);var Y=g;do{if(k===nh){h_&&!g&&Eu(a,r,0,!1),r=In,Mx=Sa(),L7=r;break}else{if(D=ln(),z=a.current.alternate,Y&&!N3(z)){Ft(r),z=Ys,k=D,!fi||k<=z||(ta?ta.run(console.timeStamp.bind(console,"Teared Render",z,k,hn,"Scheduler ⚛","error")):console.timeStamp("Teared Render",z,k,hn,"Scheduler ⚛","error")),Od(r,D),k=ox(a,r,!1),Y=!1;continue}if(k===Zm){if(Y=r,a.errorRecoveryDisabledLanes&Y)var J=0;else J=a.pendingLanes&-536870913,J=J!==0?J:J&536870912?536870912:0;if(J!==0){Ft(r),te(Ys,D,r,ta),Od(r,D),r=J;t:{D=a,k=Y,Y=Qx;var ct=ts&&D.current.memoizedState.isDehydrated;if(ct&&(wf(D,J).flags|=256),J=ox(D,J,!1),J!==Zm){if(U8&&!ct){D.errorRecoveryDisabledLanes|=k,rp|=k,k=ip;break t}D=mr,mr=Y,D!==null&&(mr===null?mr=D:mr.push.apply(mr,D))}k=J}if(Y=!1,k!==Zm)continue;D=ln()}}if(k===Kx){Ft(r),te(Ys,D,r,ta),Od(r,D),wf(a,0),Eu(a,r,0,!0);break}t:{switch(g=a,k){case nh:case Kx:throw Error("Root did not complete. This is a bug in React.");case ip:if((r&4194048)!==r)break;case P4:Ft(r),pn(Ys,D,r,ta),Od(r,D),z=r,z&127?h4=D:z&4194048&&(f4=D),Eu(g,r,Ir,!ap);break t;case Zm:mr=null;break;case L4:case RL:break;default:throw Error("Unknown root exit status.")}if(Ct.actQueue!==null)lx(g,z,r,mr,Zx,B4,Ir,rp,tg,k,null,null,Ys,D);else{if((r&62914560)===r&&(Y=k4+ML-ln(),10<Y)){if(Eu(g,r,Ir,!ap),X(g,0,!0)!==0)break t;zu=r,g.timeoutHandle=Lr(O3.bind(null,g,z,mr,Zx,B4,r,Ir,rp,tg,ap,k,"Throttled",Ys,D),Y);break t}O3(g,z,mr,Zx,B4,r,Ir,rp,tg,ap,k,null,Ys,D)}}}break}while(!0);gs(a)}function O3(a,r,g,D,z,k,Y,J,ct,vt,Mt,Nt,Bt,_e){a.timeoutHandle=xl;var Pe=r.subtreeFlags,Yn=null;if((Pe&8192||(Pe&16785408)===16785408)&&(Yn=If(),E3(r,k,Yn),Pe=(k&62914560)===k?k4-ln():(k&4194048)===k?DL-ln():0,Pe=R1(Yn,Pe),Pe!==null)){zu=k,a.cancelPendingCommit=Pe(lx.bind(null,a,r,k,g,D,z,Y,J,ct,Mt,Yn,w1(Yn,a.containerInfo),Bt,_e)),Eu(a,k,Y,!vt);return}lx(a,r,k,g,D,z,Y,J,ct,Mt,Yn,Nt,Bt,_e)}function N3(a){for(var r=a;;){var g=r.tag;if((g===0||g===11||g===15)&&r.flags&16384&&(g=r.updateQueue,g!==null&&(g=g.stores,g!==null)))for(var D=0;D<g.length;D++){var z=g[D],k=z.getSnapshot;z=z.value;try{if(!dr(k(),z))return!1}catch{return!1}}if(g=r.child,r.subtreeFlags&16384&&g!==null)g.return=r,r=g;else{if(r===a)break;for(;r.sibling===null;){if(r.return===null||r.return===a)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Eu(a,r,g,D){r&=~H8,r&=~rp,a.suspendedLanes|=r,a.pingedLanes&=~r,D&&(a.warmLanes|=r),D=a.expirationTimes;for(var z=r;0<z;){var k=31-da(z),Y=1<<k;D[k]=-1,z&=~Y}g!==0&&st(a,g,r)}function Em(){return(cn&(is|jl))===ns?(bd(0,!1),!1):!0}function Tm(){return(cn&(is|jl))!==ns}function Am(){if($e!==null){if(In===Fr)var a=$e.return;else a=$e,my(),nm(a),e_=null,Fx=0,a=$e;for(;a!==null;)r1(a.alternate,a),a=a.return;$e=null}}function Od(a,r){a&127&&(Um=r),a&4194048&&(Qd=r)}function wf(a,r){fi&&(console.timeStamp("Blocking Track",.003,.003,"Blocking","Scheduler ⚛","primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition","Scheduler ⚛","primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense","Scheduler ⚛","primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle","Scheduler ⚛","primary-light"));var g=Ys;if(Ys=Sa(),Qe!==0&&0<g){if(Ft(Qe),Ci===L4||Ci===ip)pn(g,Ys,r,ta);else{var D=Ys,z=ta;if(fi&&!(D<=g)){var k=(r&738197653)===r?"tertiary-dark":"primary-dark",Y=(r&536870912)===r?"Prewarm":(r&201326741)===r?"Interrupted Hydration":"Interrupted Render";z?z.run(console.timeStamp.bind(console,Y,g,D,hn,"Scheduler ⚛",k)):console.timeStamp(Y,g,D,hn,"Scheduler ⚛",k)}}Od(Qe,Ys)}if(g=ta,ta=null,r&127){ta=Rx,z=0<=Oc&&Oc<Um?Um:Oc,D=0<=Hm&&Hm<Um?Um:Hm,k=0<=D?D:0<=z?z:Ys,0<=h4&&(Ft(2),Mn(h4,k,r,g)),g=z;var J=D,ct=wx,vt=0<Z1,Mt=$f===1,Nt=$f===2;if(z=Ys,D=Rx,k=m8,Y=g8,fi){if(hn="Blocking",0<g?g>z&&(g=z):g=z,0<J?J>g&&(J=g):J=g,ct!==null&&g>J){var Bt=vt?"secondary-light":"warning";D?D.run(console.timeStamp.bind(console,vt?"Consecutive":"Event: "+ct,J,g,hn,"Scheduler ⚛",Bt)):console.timeStamp(vt?"Consecutive":"Event: "+ct,J,g,hn,"Scheduler ⚛",Bt)}z>g&&(J=Mt?"error":(r&738197653)===r?"tertiary-light":"primary-light",Mt=Nt?"Promise Resolved":Mt?"Cascading Update":5<z-g?"Update Blocked":"Update",Nt=[],Y!=null&&Nt.push(["Component name",Y]),k!=null&&Nt.push(["Method name",k]),g={start:g,end:z,detail:{devtools:{properties:Nt,track:hn,trackGroup:"Scheduler ⚛",color:J}}},D?D.run(performance.measure.bind(performance,Mt,g)):performance.measure(Mt,g))}Oc=-1.1,$f=0,g8=m8=null,h4=-1.1,Z1=Hm,Hm=-1.1,Um=Sa()}if(r&4194048&&(ta=Dx,z=0<=Wd&&Wd<Qd?Qd:Wd,g=0<=Ml&&Ml<Qd?Qd:Ml,D=0<=tp&&tp<Qd?Qd:tp,k=0<=D?D:0<=g?g:Ys,0<=f4&&(Ft(256),Mn(f4,k,r,ta)),Nt=D,J=Gm,ct=0<ep,vt=v8===2,k=Ys,D=Dx,Y=M7,Mt=O7,fi&&(hn="Transition",0<g?g>k&&(g=k):g=k,0<z?z>g&&(z=g):z=g,0<Nt?Nt>z&&(Nt=z):Nt=z,z>Nt&&J!==null&&(Bt=ct?"secondary-light":"warning",D?D.run(console.timeStamp.bind(console,ct?"Consecutive":"Event: "+J,Nt,z,hn,"Scheduler ⚛",Bt)):console.timeStamp(ct?"Consecutive":"Event: "+J,Nt,z,hn,"Scheduler ⚛",Bt)),g>z&&(D?D.run(console.timeStamp.bind(console,"Action",z,g,hn,"Scheduler ⚛","primary-dark")):console.timeStamp("Action",z,g,hn,"Scheduler ⚛","primary-dark")),k>g&&(z=vt?"Promise Resolved":5<k-g?"Update Blocked":"Update",Nt=[],Mt!=null&&Nt.push(["Component name",Mt]),Y!=null&&Nt.push(["Method name",Y]),g={start:g,end:k,detail:{devtools:{properties:Nt,track:hn,trackGroup:"Scheduler ⚛",color:"primary-light"}}},D?D.run(performance.measure.bind(performance,z,g)):performance.measure(z,g))),Ml=Wd=-1.1,v8=0,f4=-1.1,ep=tp,tp=-1.1,Qd=Sa()),g=a.timeoutHandle,g!==xl&&(a.timeoutHandle=xl,mx(g)),g=a.cancelPendingCommit,g!==null&&(a.cancelPendingCommit=null,g()),zu=0,Am(),Wn=a,$e=g=Tu(a.current,null),Qe=r,In=Fr,Co=null,ap=!1,h_=$(a,r),U8=!1,Ci=nh,tg=Ir=H8=rp=sp=0,mr=Qx=null,B4=!1,r&8&&(r|=r&32),D=a.entangledLanes,D!==0)for(a=a.entanglements,D&=r;0<D;)z=31-da(D),k=1<<z,r|=a[z],D&=~k;return Lc=r,gf(),a=_7(),1e3<a-y7&&(Ct.recentlyCreatedOwnerStacks=0,y7=a),Lu.discardPendingWarnings(),g}function L3(a,r){Ne=null,Ct.H=Vx,Ct.getCurrentStack=null,Dc=!1,Kd=null,r===t_||r===_4?(r=S2(),In=Xx):r===A8?(r=S2(),In=wL):In=r===z8?I8:r!==null&&typeof r=="object"&&typeof r.then=="function"?qx:j4,Co=r;var g=$e;g===null?(Ci=Kx,cm(a,me(r,a.current))):g.mode&2&&gy(g)}function P3(){var a=To.current;return a===null?!0:(Qe&4194048)===Qe?Nl===null:(Qe&62914560)===Qe||Qe&536870912?a===Nl:!1}function rx(){var a=Ct.H;return Ct.H=Vx,a===null?Vx:a}function j3(){var a=Ct.A;return Ct.A=hH,a}function h1(a){ta===null&&(ta=a._debugTask==null?null:a._debugTask)}function f1(){Ci=ip,ap||(Qe&4194048)!==Qe&&To.current!==null||(h_=!0),!(sp&134217727)&&!(rp&134217727)||Wn===null||Eu(Wn,Qe,Ir,!1)}function ox(a,r,g){var D=cn;cn|=is;var z=rx(),k=j3();if(Wn!==a||Qe!==r){if(wc){var Y=a.memoizedUpdaters;0<Y.size&&(Of(a,Qe),Y.clear()),lt(a,r)}Zx=null,wf(a,r)}r=!1,Y=Ci;t:do try{if(In!==Fr&&$e!==null){var J=$e,ct=Co;switch(In){case I8:Am(),Y=P4;break t;case Xx:case Jm:case $m:case qx:To.current===null&&(r=!0);var vt=In;if(In=Fr,Co=null,Df(a,J,ct,vt),g&&h_){Y=nh;break t}break;default:vt=In,In=Fr,Co=null,Df(a,J,ct,vt)}}z3(),Y=Ci;break}catch(Mt){L3(a,Mt)}while(!0);return r&&a.shellSuspendCounter++,my(),cn=D,Ct.H=z,Ct.A=k,$e===null&&(Wn=null,Qe=0,gf()),Y}function z3(){for(;$e!==null;)B3($e)}function QD(a,r){var g=cn;cn|=is;var D=rx(),z=j3();if(Wn!==a||Qe!==r){if(wc){var k=a.memoizedUpdaters;0<k.size&&(Of(a,Qe),k.clear()),lt(a,r)}Zx=null,Wx=ln()+G8,wf(a,r)}else h_=$(a,r);t:do try{if(In!==Fr&&$e!==null)e:switch(r=$e,k=Co,In){case j4:In=Fr,Co=null,Df(a,r,k,j4);break;case Jm:case $m:if(b2(k)){In=Fr,Co=null,k3(r);break}r=function(){In!==Jm&&In!==$m||Wn!==a||(In=z4),gs(a)},k.then(r,r);break t;case Xx:In=z4;break t;case wL:In=F8;break t;case z4:b2(k)?(In=Fr,Co=null,k3(r)):(In=Fr,Co=null,Df(a,r,k,z4));break;case F8:var Y=null;switch($e.tag){case 26:Y=$e.memoizedState;case 5:case 27:var J=$e,ct=J.type,vt=J.pendingProps;if(Y?j(Y):bc(J.stateNode,ct,vt)){In=Fr,Co=null;var Mt=J.sibling;if(Mt!==null)$e=Mt;else{var Nt=J.return;Nt!==null?($e=Nt,p1(Nt)):$e=null}break e}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}In=Fr,Co=null,Df(a,r,k,F8);break;case qx:In=Fr,Co=null,Df(a,r,k,qx);break;case I8:Am(),Ci=P4;break t;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Ct.actQueue!==null?z3():WD();break}catch(Bt){L3(a,Bt)}while(!0);return my(),Ct.H=D,Ct.A=z,cn=g,$e!==null?nh:(Wn=null,Qe=0,gf(),Ci)}function WD(){for(;$e!==null&&!De();)B3($e)}function B3(a){var r=a.alternate;(a.mode&2)!==Me?(I0(a),r=oe(a,_s,r,a,Lc),gy(a)):r=oe(a,_s,r,a,Lc),a.memoizedProps=a.pendingProps,r===null?p1(a):$e=r}function k3(a){var r=oe(a,ZD,a);a.memoizedProps=a.pendingProps,r===null?p1(a):$e=r}function ZD(a){var r=a.alternate,g=(a.mode&2)!==Me;switch(g&&I0(a),a.tag){case 15:case 0:r=ml(r,a,a.pendingProps,a.type,void 0,Qe);break;case 11:r=ml(r,a,a.pendingProps,a.type.render,a.ref,Qe);break;case 5:nm(a);default:r1(r,a),a=$e=Qi(a,Lc),r=_s(r,a,Lc)}return g&&gy(a),r}function Df(a,r,g,D){my(),nm(r),e_=null,Fx=0;var z=r.return;try{if(u3(a,z,r,g,Qe)){Ci=Kx,cm(a,me(g,a.current)),$e=null;return}}catch(k){if(z!==null)throw $e=z,k;Ci=Kx,cm(a,me(g,a.current)),$e=null;return}r.flags&32768?(un||D===j4?a=!0:h_||Qe&536870912?a=!1:(ap=a=!0,(D===Jm||D===$m||D===Xx||D===qx)&&(D=To.current,D!==null&&D.tag===13&&(D.flags|=16384))),F3(r,a)):p1(r)}function p1(a){var r=a;do{if(r.flags&32768){F3(r,ap);return}var g=r.alternate;if(a=r.return,I0(r),g=oe(r,Q2,g,r,Lc),(r.mode&2)!==Me&&f2(r),g!==null){$e=g;return}if(r=r.sibling,r!==null){$e=r;return}$e=r=a}while(r!==null);Ci===nh&&(Ci=RL)}function F3(a,r){do{var g=mc(a.alternate,a);if(g!==null){g.flags&=32767,$e=g;return}if((a.mode&2)!==Me){f2(a),g=a.actualDuration;for(var D=a.child;D!==null;)g+=D.actualDuration,D=D.sibling;a.actualDuration=g}if(g=a.return,g!==null&&(g.flags|=32768,g.subtreeFlags=0,g.deletions=null),!r&&(a=a.sibling,a!==null)){$e=a;return}$e=a=g}while(a!==null);Ci=P4,$e=null}function lx(a,r,g,D,z,k,Y,J,ct,vt,Mt,Nt,Bt,_e){a.cancelPendingCommit=null;do Mf();while(Ca!==lp);if(Lu.flushLegacyContextWarning(),Lu.flushPendingUnsafeLifecycleWarnings(),(cn&(is|jl))!==ns)throw Error("Should not already be working.");if(Ft(g),vt===Zm?te(Bt,_e,g,ta):D!==null?zt(Bt,_e,g,D,r!==null&&r.alternate!==null&&r.alternate.memoizedState.isDehydrated&&(r.flags&256)!==0,ta):Te(Bt,_e,g,ta),r!==null){if(g===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),r===a.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(k=r.lanes|r.childLanes,k|=R8,ut(a,g,k,Y,J,ct),a===Wn&&($e=Wn=null,Qe=0),f_=r,up=a,zu=g,K8=k,q8=z,zL=D,X8=_e,BL=Nt,Bu=F4,kL=null,r.actualDuration!==0||r.subtreeFlags&10256||r.flags&10256?(a.callbackNode=null,a.callbackPriority=0,q3(km,function(){return Bf(),Bu===F4&&(Bu=Y8),V3(),null})):(a.callbackNode=null,a.callbackPriority=0),qd=null,Jf=Sa(),Nt!==null&&pe(_e,Jf,Nt,ta),D=(r.flags&13878)!==0,r.subtreeFlags&13878||D){D=Ct.T,Ct.T=null,z=Us(),zi(2),Y=cn,cn|=jl;try{KD(a,r,g)}finally{cn=Y,zi(z),Ct.T=D}}Ca=NL,I3(),U3(),H3()}}function I3(){if(Ca===NL){Ca=lp;var a=up,r=f_,g=zu,D=(r.flags&13878)!==0;if(r.subtreeFlags&13878||D){D=Ct.T,Ct.T=null;var z=Us();zi(2);var k=cn;cn|=jl;try{u_=g,c_=a,F0(),y3(r,a),c_=u_=null,_c(a.containerInfo)}finally{cn=k,zi(z),Ct.T=D}}a.current=r,Ca=LL}}function U3(){if(Ca===LL){Ca=lp;var a=kL;if(a!==null){Jf=Sa();var r=Xd,g=Jf;!fi||g<=r||console.timeStamp(a,r,g,hn,"Scheduler ⚛","secondary-light")}a=up,r=f_,g=zu;var D=(r.flags&8772)!==0;if(r.subtreeFlags&8772||D){D=Ct.T,Ct.T=null;var z=Us();zi(2);var k=cn;cn|=jl;try{u_=g,c_=a,F0(),ua(a,r.alternate,r),c_=u_=null}finally{cn=k,zi(z),Ct.T=D}}a=X8,r=BL,Xd=Sa(),a=r===null?a:Jf,r=Xd,g=Bu===V8,D=ta,qd!==null?Lt(a,r,qd,!1,D):!fi||r<=a||(D?D.run(console.timeStamp.bind(console,g?"Commit Interrupted View Transition":"Commit",a,r,hn,"Scheduler ⚛",g?"error":"secondary-dark")):console.timeStamp(g?"Commit Interrupted View Transition":"Commit",a,r,hn,"Scheduler ⚛",g?"error":"secondary-dark")),Ca=PL}}function H3(){if(Ca===jL||Ca===PL){if(Ca===jL){var a=Xd;Xd=Sa();var r=Xd,g=Bu===V8;!fi||r<=a||console.timeStamp(g?"Interrupted View Transition":"Starting Animation",a,r,hn,"Scheduler ⚛",g?" error":"secondary-light"),Bu!==V8&&(Bu=OL)}Ca=lp,Tn(),a=up;var D=f_;r=zu,g=zL;var z=D.actualDuration!==0||(D.subtreeFlags&10256)!==0||(D.flags&10256)!==0;z?Ca=I4:(Ca=lp,f_=up=null,G3(a,a.pendingLanes),eg=0,$x=null);var k=a.pendingLanes;if(k===0&&(op=null),z||dx(a),k=ht(r),D=D.stateNode,Vs&&typeof Vs.onCommitFiberRoot=="function")try{var Y=(D.current.flags&128)===128;switch(k){case 2:var J=mn;break;case 8:J=Nu;break;case 32:J=km;break;case 268435456:J=v7;break;default:J=km}Vs.onCommitFiberRoot(K1,D,J,Y)}catch(Nt){Rc||(Rc=!0,console.error("React instrumentation encountered an error: %o",Nt))}if(wc&&a.memoizedUpdaters.clear(),qD(),g!==null){Y=Ct.T,J=Us(),zi(2),Ct.T=null;try{var ct=a.onRecoverableError;for(D=0;D<g.length;D++){var vt=g[D],Mt=JD(vt.stack);oe(vt.source,ct,vt.value,Mt)}}finally{Ct.T=Y,zi(J)}}zu&3&&Mf(),gs(a),k=a.pendingLanes,r&261930&&k&42?(m4=!0,a===Q8?Jx++:(Jx=0,Q8=a)):Jx=0,z||Od(r,Xd),ts&&xx(),bd(0,!1)}}function JD(a){return a={componentStack:a},Object.defineProperty(a,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),a}function G3(a,r){(a.pooledCacheLanes&=r)===0&&(r=a.pooledCache,r!=null&&(a.pooledCache=null,_d(r)))}function Mf(){return I3(),U3(),H3(),V3()}function V3(){if(Ca!==I4)return!1;var a=up,r=K8;K8=0;var g=ht(zu),D=32>g?32:g;g=Ct.T;var z=Us();try{zi(D),Ct.T=null;var k=q8;q8=null,D=up;var Y=zu;if(Ca=lp,f_=up=null,zu=0,(cn&(is|jl))!==ns)throw Error("Cannot flush passive effects while already rendering.");Ft(Y),W8=!0,U4=!1;var J=0;if(qd=null,J=ln(),Bu===OL){var ct=Xd,vt=J;!fi||vt<=ct||(N7?N7.run(console.timeStamp.bind(console,"Animating",ct,vt,hn,"Scheduler ⚛","secondary-dark")):console.timeStamp("Animating",ct,vt,hn,"Scheduler ⚛","secondary-dark"))}else{ct=Xd,vt=J;var Mt=Bu===Y8;!fi||vt<=ct||(ta?ta.run(console.timeStamp.bind(console,Mt?"Waiting for Paint":"Waiting",ct,vt,hn,"Scheduler ⚛","secondary-light")):console.timeStamp(Mt?"Waiting for Paint":"Waiting",ct,vt,hn,"Scheduler ⚛","secondary-light"))}ct=cn,cn|=jl;var Nt=D.current;F0(),A3(Nt);var Bt=D.current;Nt=X8,F0(),S3(D,Bt,Y,k,Nt),dx(D),cn=ct;var _e=ln();if(Bt=J,Nt=ta,qd!==null?Lt(Bt,_e,qd,!0,Nt):!fi||_e<=Bt||(Nt?Nt.run(console.timeStamp.bind(console,"Remaining Effects",Bt,_e,hn,"Scheduler ⚛","secondary-dark")):console.timeStamp("Remaining Effects",Bt,_e,hn,"Scheduler ⚛","secondary-dark")),Od(Y,_e),bd(0,!1),U4?D===$x?eg++:(eg=0,$x=D):eg=0,U4=W8=!1,Vs&&typeof Vs.onPostCommitFiberRoot=="function")try{Vs.onPostCommitFiberRoot(K1,D)}catch(Yn){Rc||(Rc=!0,console.error("React instrumentation encountered an error: %o",Yn))}var Pe=D.current.stateNode;return Pe.effectDuration=0,Pe.passiveEffectDuration=0,!0}finally{zi(z),Ct.T=g,G3(a,r)}}function Y3(a,r,g){r=me(g,r),p2(r),r=qy(a.stateNode,r,2),a=Ar(a,r,2),a!==null&&(rt(a,2),gs(a))}function _n(a,r,g){if(p_=!1,a.tag===3)Y3(a,a,g);else{for(;r!==null;){if(r.tag===3){Y3(r,a,g);return}if(r.tag===1){var D=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof D.componentDidCatch=="function"&&(op===null||!op.has(D))){a=me(g,a),p2(a),g=Qy(2),D=Ar(r,g,2),D!==null&&(Wy(g,D,r,a),rt(D,2),gs(D));return}}r=r.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
206
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+D,oe(r,function(J,ct){console.error("%s must not return anything besides a function, which is used for clean-up.%s",J,ct)},k,Y)}g=g.next}while(g!==z)}}catch(J){_n(r,r.return,J)}}function be(a,r,g){try{var D=r.updateQueue,z=D!==null?D.lastEffect:null;if(z!==null){var k=z.next;D=k;do{if((D.tag&a)===a){var Y=D.inst,J=Y.destroy;J!==void 0&&(Y.destroy=void 0,(a&fr)!==x4&&(p_=!0),z=r,oe(z,lH,z,g,J),(a&fr)!==x4&&(p_=!1))}D=D.next}while(D!==k)}}catch(ct){_n(r,r.return,ct)}}function d3(a,r){gl(a)?(co(),gc(r,a),uo()):gc(r,a)}function J2(a,r,g){gl(a)?(co(),be(g,a,r),uo()):be(g,a,r)}function $2(a){var r=a.updateQueue;if(r!==null){var g=a.stateNode;a.type.defaultProps||"ref"in a.memoizedProps||l_||(g.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",L(a)||"instance"),g.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",L(a)||"instance"));try{oe(a,C2,r,g)}catch(D){_n(a,a.return,D)}}}function ym(a,r,g){return a.getSnapshotBeforeUpdate(r,g)}function VD(a,r){var g=r.memoizedProps,D=r.memoizedState;r=a.stateNode,a.type.defaultProps||"ref"in a.memoizedProps||l_||(r.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",L(a)||"instance"),r.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",L(a)||"instance"));try{var z=pl(a.type,g),k=oe(a,ym,r,z,D);g=AL,k!==void 0||g.has(a.type)||(g.add(a.type),oe(a,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",L(a))})),r.__reactInternalSnapshotBeforeUpdate=k}catch(Y){_n(a,a.return,Y)}}function h3(a,r,g){g.props=pl(a.type,a.memoizedProps),g.state=a.memoizedState,gl(a)?(co(),oe(a,V7,a,r,g),uo()):oe(a,V7,a,r,g)}function YD(a){var r=a.ref;if(r!==null){switch(a.tag){case 26:case 27:case 5:var g=Ss(a.stateNode);break;case 30:g=a.stateNode;break;default:g=a.stateNode}if(typeof r=="function")if(gl(a))try{co(),a.refCleanup=r(g)}finally{uo()}else a.refCleanup=r(g);else typeof r=="string"?console.error("String refs are no longer supported."):r.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",L(a)),r.current=g}}function _m(a,r){try{oe(a,YD,a)}catch(g){_n(a,r,g)}}function vl(a,r){var g=a.ref,D=a.refCleanup;if(g!==null)if(typeof D=="function")try{if(gl(a))try{co(),oe(a,D)}finally{uo(a)}else oe(a,D)}catch(z){_n(a,r,z)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof g=="function")try{if(gl(a))try{co(),oe(a,g,null)}finally{uo(a)}else oe(a,g,null)}catch(z){_n(a,r,z)}else g.current=null}function o1(a,r,g,D){var z=a.memoizedProps,k=z.id,Y=z.onCommit;z=z.onRender,r=r===null?"mount":"update",p4&&(r="nested-update"),typeof z=="function"&&z(k,r,a.actualDuration,a.treeBaseDuration,a.actualStartTime,g),typeof Y=="function"&&Y(k,r,D,g)}function f3(a,r,g,D){var z=a.memoizedProps;a=z.id,z=z.onPostCommit,r=r===null?"mount":"update",p4&&(r="nested-update"),typeof z=="function"&&z(a,r,D,g)}function bm(a){var r=a.type,g=a.memoizedProps,D=a.stateNode;try{oe(a,Fn,D,r,g,a)}catch(z){_n(a,a.return,z)}}function l1(a,r,g){try{oe(a,Zi,a.stateNode,a.type,g,r,a)}catch(D){_n(a,a.return,D)}}function p3(a){return a.tag===5||a.tag===3||(jn?a.tag===26:!1)||(V?a.tag===27&&Wt(a.type):!1)||a.tag===4}function tx(a){t:for(;;){for(;a.sibling===null;){if(a.return===null||p3(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(V&&a.tag===27&&Wt(a.type)||a.flags&2||a.child===null||a.tag===4)continue t;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function xu(a,r,g){var D=a.tag;if(D===5||D===6)a=a.stateNode,r?Uf(g,a,r):Du(g,a);else if(D!==4&&(V&&D===27&&Wt(a.type)&&(g=a.stateNode,r=null),a=a.child,a!==null))for(xu(a,r,g),a=a.sibling;a!==null;)xu(a,r,g),a=a.sibling}function Dr(a,r,g){var D=a.tag;if(D===5||D===6)a=a.stateNode,r?M1(g,a,r):Bi(g,a);else if(D!==4&&(V&&D===27&&Wt(a.type)&&(g=a.stateNode),a=a.child,a!==null))for(Dr(a,r,g),a=a.sibling;a!==null;)Dr(a,r,g),a=a.sibling}function Ja(a){for(var r,g=a.return;g!==null;){if(p3(g)){r=g;break}g=g.return}if(di){if(r==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(r.tag){case 27:if(V){r=r.stateNode,g=tx(a),Dr(a,g,r);break}case 5:g=r.stateNode,r.flags&32&&(Hf(g),r.flags&=-33),r=tx(a),Dr(a,r,g);break;case 3:case 4:r=r.stateNode.containerInfo,g=tx(a),xu(a,g,r);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}}function vo(a,r,g){a=a.containerInfo;try{oe(r,P1,a,g)}catch(D){_n(r,r.return,D)}}function ja(a){var r=a.stateNode,g=a.memoizedProps;try{oe(a,ft,a.type,g,r,a)}catch(D){_n(a,a.return,D)}}function m3(a,r){return r.tag===31?(r=r.memoizedState,a.memoizedState!==null&&r===null):r.tag===13?(a=a.memoizedState,r=r.memoizedState,a!==null&&a.dehydrated!==null&&(r===null||r.dehydrated===null)):r.tag===3?a.memoizedState.isDehydrated&&(r.flags&256)===0:!1}function KD(a,r){for(Mm(a.containerInfo),es=r;es!==null;)if(a=es,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,es=r;else for(;es!==null;){r=a=es;var g=r.alternate,D=r.flags;switch(r.tag){case 0:if(D&4&&(r=r.updateQueue,r=r!==null?r.events:null,r!==null))for(g=0;g<r.length;g++)D=r[g],D.ref.impl=D.nextImpl;break;case 11:case 15:break;case 1:D&1024&&g!==null&&VD(r,g);break;case 3:D&1024&&di&&bx(r.stateNode.containerInfo);break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(D&1024)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(r=a.sibling,r!==null){r.return=a.return,es=r;break}es=a.return}}function ua(a,r,g){var D=ms(),z=ul(),k=oo(),Y=lo(),J=g.flags;switch(g.tag){case 0:case 11:case 15:bs(a,g),J&4&&W2(g,Ao|Ll);break;case 1:if(bs(a,g),J&4)if(a=g.stateNode,r===null)g.type.defaultProps||"ref"in g.memoizedProps||l_||(a.props!==g.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",L(g)||"instance"),a.state!==g.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",L(g)||"instance")),gl(g)?(co(),oe(g,T8,g,a),uo()):oe(g,T8,g,a);else{var ct=pl(g.type,r.memoizedProps);r=r.memoizedState,g.type.defaultProps||"ref"in g.memoizedProps||l_||(a.props!==g.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",L(g)||"instance"),a.state!==g.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",L(g)||"instance")),gl(g)?(co(),oe(g,U7,g,a,ct,r,a.__reactInternalSnapshotBeforeUpdate),uo()):oe(g,U7,g,a,ct,r,a.__reactInternalSnapshotBeforeUpdate)}J&64&&$2(g),J&512&&_m(g,g.return);break;case 3:if(r=ll(),bs(a,g),J&64&&(J=g.updateQueue,J!==null)){if(ct=null,g.child!==null)switch(g.child.tag){case 27:case 5:ct=Ss(g.child.stateNode);break;case 1:ct=g.child.stateNode}try{oe(g,C2,J,ct)}catch(Mt){_n(g,g.return,Mt)}}a.effectDuration+=k0(r);break;case 27:V&&r===null&&J&4&&ja(g);case 26:case 5:if(bs(a,g),r===null){if(J&4)bm(g);else if(J&64){a=g.type,r=g.memoizedProps,ct=g.stateNode;try{oe(g,Sx,ct,a,r,g)}catch(Mt){_n(g,g.return,Mt)}}}J&512&&_m(g,g.return);break;case 12:if(J&4){J=ll(),bs(a,g),a=g.stateNode,a.effectDuration+=ff(J);try{oe(g,o1,g,r,Jf,a.effectDuration)}catch(Mt){_n(g,g.return,Mt)}}else bs(a,g);break;case 31:bs(a,g),J&4&&g3(a,g);break;case 13:bs(a,g),J&4&&v3(a,g),J&64&&(a=g.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(J=X3.bind(null,g),$i(a,J))));break;case 22:if(J=g.memoizedState!==null||eh,!J){r=r!==null&&r.memoizedState!==null||Ta,ct=eh;var vt=Ta;eh=J,(Ta=r)&&!vt?(_l(a,g,(g.subtreeFlags&8772)!==0),(g.mode&2)!==Me&&0<=Ee&&0<=Re&&.05<Re-Ee&&Jt(g,Ee,Re)):bs(a,g),eh=ct,Ta=vt}break;case 30:break;default:bs(a,g)}(g.mode&2)!==Me&&0<=Ee&&0<=Re&&((Ii||.05<Ai)&&Se(g,Ee,Re,Ai,Si),g.alternate===null&&g.return!==null&&g.return.alternate!==null&&.05<Re-Ee&&(m3(g.return.alternate,g.return)||$t(g,Ee,Re,"Mount"))),Ps(D),ro(z),Si=k,Ii=Y}function yl(a){var r=a.alternate;r!==null&&(a.alternate=null,yl(r)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(r=a.stateNode,r!==null&&vx(r)),a.stateNode=null,a._debugOwner=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function yo(a,r,g){for(g=g.child;g!==null;)ex(a,r,g),g=g.sibling}function ex(a,r,g){if(Vs&&typeof Vs.onCommitFiberUnmount=="function")try{Vs.onCommitFiberUnmount(K1,g)}catch(vt){Rc||(Rc=!0,console.error("React instrumentation encountered an error: %o",vt))}var D=ms(),z=ul(),k=oo(),Y=lo();switch(g.tag){case 26:if(jn){Ta||vl(g,r),yo(a,r,g),g.memoizedState?V1(g.memoizedState):g.stateNode&&Y1(g.stateNode);break}case 27:if(V){Ta||vl(g,r);var J=Aa,ct=kr;Wt(g.type)&&(Aa=g.stateNode,kr=!1),yo(a,r,g),oe(g,Ot,g.stateNode),Aa=J,kr=ct;break}case 5:Ta||vl(g,r);case 6:if(di){if(J=Aa,ct=kr,Aa=null,yo(a,r,g),Aa=J,kr=ct,Aa!==null)if(kr)try{oe(g,O1,Aa,g.stateNode)}catch(vt){_n(g,r,vt)}else try{oe(g,Fd,Aa,g.stateNode)}catch(vt){_n(g,r,vt)}}else yo(a,r,g);break;case 18:di&&Aa!==null&&(kr?Vf(Aa,g.stateNode):cr(Aa,g.stateNode));break;case 4:di?(J=Aa,ct=kr,Aa=g.stateNode.containerInfo,kr=!0,yo(a,r,g),Aa=J,kr=ct):(El&&vo(g.stateNode,g,N1()),yo(a,r,g));break;case 0:case 11:case 14:case 15:be(fr,g,r),Ta||Z2(g,r,Ao),yo(a,r,g);break;case 1:Ta||(vl(g,r),J=g.stateNode,typeof J.componentWillUnmount=="function"&&h3(g,r,J)),yo(a,r,g);break;case 21:yo(a,r,g);break;case 22:Ta=(J=Ta)||g.memoizedState!==null,yo(a,r,g),Ta=J;break;default:yo(a,r,g)}(g.mode&2)!==Me&&0<=Ee&&0<=Re&&(Ii||.05<Ai)&&Se(g,Ee,Re,Ai,Si),Ps(D),ro(z),Si=k,Ii=Y}function g3(a,r){if(ts&&r.memoizedState===null&&(a=r.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{oe(r,Ei,a)}catch(g){_n(r,r.return,g)}}}function v3(a,r){if(ts&&r.memoizedState===null&&(a=r.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{oe(r,Tc,a)}catch(g){_n(r,r.return,g)}}function XD(a){switch(a.tag){case 31:case 13:case 19:var r=a.stateNode;return r===null&&(r=a.stateNode=new CL),r;case 22:return a=a.stateNode,r=a._retryCache,r===null&&(r=a._retryCache=new CL),r;default:throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}}function Rf(a,r){var g=XD(a);r.forEach(function(D){if(!g.has(D)){if(g.add(D),wc)if(u_!==null&&c_!==null)Of(c_,u_);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var z=t8.bind(null,a,D);D.then(z,z)}})}function za(a,r){var g=r.deletions;if(g!==null)for(var D=0;D<g.length;D++){var z=a,k=r,Y=g[D],J=ms();if(di){var ct=k;t:for(;ct!==null;){switch(ct.tag){case 27:if(V){if(Wt(ct.type)){Aa=ct.stateNode,kr=!1;break t}break}case 5:Aa=ct.stateNode,kr=!1;break t;case 3:case 4:Aa=ct.stateNode.containerInfo,kr=!0;break t}ct=ct.return}if(Aa===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");ex(z,k,Y),Aa=null,kr=!1}else ex(z,k,Y);(Y.mode&2)!==Me&&0<=Ee&&0<=Re&&.05<Re-Ee&&$t(Y,Ee,Re,"Unmount"),Ps(J),z=Y,k=z.alternate,k!==null&&(k.return=null),z.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)y3(r,a),r=r.sibling}function y3(a,r){var g=ms(),D=ul(),z=oo(),k=lo(),Y=a.alternate,J=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:za(r,a),$a(a),J&4&&(be(fr|Ll,a,a.return),gc(fr|Ll,a),Z2(a,a.return,Ao|Ll));break;case 1:za(r,a),$a(a),J&512&&(Ta||Y===null||vl(Y,Y.return)),J&64&&eh&&(J=a.updateQueue,J!==null&&(Y=J.callbacks,Y!==null&&(r=J.shared.hiddenCallbacks,J.shared.hiddenCallbacks=r===null?Y:r.concat(Y))));break;case 26:if(jn){var ct=ju;za(r,a),$a(a),J&512&&(Ta||Y===null||vl(Y,Y.return)),J&4&&(J=Y!==null?Y.memoizedState:null,r=a.memoizedState,Y===null?r===null?a.stateNode===null?a.stateNode=s4(ct,a.type,a.memoizedProps,a):Kf(ct,a.type,a.stateNode):a.stateNode=G1(ct,r,a.memoizedProps):J!==r?(J===null?Y.stateNode!==null&&Y1(Y.stateNode):V1(J),r===null?Kf(ct,a.type,a.stateNode):G1(ct,r,a.memoizedProps)):r===null&&a.stateNode!==null&&l1(a,a.memoizedProps,Y.memoizedProps));break}case 27:if(V){za(r,a),$a(a),J&512&&(Ta||Y===null||vl(Y,Y.return)),Y!==null&&J&4&&l1(a,a.memoizedProps,Y.memoizedProps);break}case 5:if(za(r,a),$a(a),J&512&&(Ta||Y===null||vl(Y,Y.return)),di){if(a.flags&32){r=a.stateNode;try{oe(a,Hf,r)}catch(Yn){_n(a,a.return,Yn)}}J&4&&a.stateNode!=null&&(r=a.memoizedProps,l1(a,r,Y!==null?Y.memoizedProps:r)),J&1024&&(k8=!0,a.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."))}else El&&a.alternate!==null&&(a.alternate.stateNode=a.stateNode);break;case 6:if(za(r,a),$a(a),J&4&&di){if(a.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");J=a.memoizedProps,Y=Y!==null?Y.memoizedProps:J,r=a.stateNode;try{oe(a,Fe,r,Y,J)}catch(Yn){_n(a,a.return,Yn)}}break;case 3:if(ct=ll(),jn){p();var vt=ju;ju=Cc(r.containerInfo),za(r,a),ju=vt}else za(r,a);if($a(a),J&4){if(di&&ts&&Y!==null&&Y.memoizedState.isDehydrated)try{oe(a,Mu,r.containerInfo)}catch(Yn){_n(a,a.return,Yn)}if(El){J=r.containerInfo,Y=r.pendingChildren;try{oe(a,P1,J,Y)}catch(Yn){_n(a,a.return,Yn)}}}k8&&(k8=!1,_3(a)),r.effectDuration+=k0(ct);break;case 4:jn?(Y=ju,ju=Cc(a.stateNode.containerInfo),za(r,a),$a(a),ju=Y):(za(r,a),$a(a)),J&4&&El&&vo(a.stateNode,a,a.stateNode.pendingChildren);break;case 12:J=ll(),za(r,a),$a(a),a.stateNode.effectDuration+=ff(J);break;case 31:za(r,a),$a(a),J&4&&(J=a.updateQueue,J!==null&&(a.updateQueue=null,Rf(a,J)));break;case 13:za(r,a),$a(a),a.child.flags&8192&&a.memoizedState!==null!=(Y!==null&&Y.memoizedState!==null)&&(k4=ln()),J&4&&(J=a.updateQueue,J!==null&&(a.updateQueue=null,Rf(a,J)));break;case 22:ct=a.memoizedState!==null;var Mt=Y!==null&&Y.memoizedState!==null,Nt=eh,kt=Ta;if(eh=Nt||ct,Ta=kt||Mt,za(r,a),Ta=kt,eh=Nt,Mt&&!ct&&!Nt&&!kt&&(a.mode&2)!==Me&&0<=Ee&&0<=Re&&.05<Re-Ee&&Jt(a,Ee,Re),$a(a),J&8192&&(r=a.stateNode,r._visibility=ct?r._visibility&~Ix:r._visibility|Ix,!ct||Y===null||Mt||eh||Ta||(wd(a),(a.mode&2)!==Me&&0<=Ee&&0<=Re&&.05<Re-Ee&&$t(a,Ee,Re,"Disconnect")),di)){t:if(Y=null,di)for(r=a;;){if(r.tag===5||jn&&r.tag===26){if(Y===null){Mt=Y=r;try{vt=Mt.stateNode,ct?oe(Mt,Gf,vt):oe(Mt,Lm,Mt.stateNode,Mt.memoizedProps)}catch(Yn){_n(Mt,Mt.return,Yn)}}}else if(r.tag===6){if(Y===null){Mt=r;try{var _e=Mt.stateNode;ct?oe(Mt,a8,_e):oe(Mt,i4,_e,Mt.memoizedProps)}catch(Yn){_n(Mt,Mt.return,Yn)}}}else if(r.tag===18){if(Y===null){Mt=r;try{var Pe=Mt.stateNode;ct?oe(Mt,zm,Pe):oe(Mt,Gs,Mt.stateNode)}catch(Yn){_n(Mt,Mt.return,Yn)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===a)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break t;for(;r.sibling===null;){if(r.return===null||r.return===a)break t;Y===r&&(Y=null),r=r.return}Y===r&&(Y=null),r.sibling.return=r.return,r=r.sibling}}J&4&&(J=a.updateQueue,J!==null&&(Y=J.retryQueue,Y!==null&&(J.retryQueue=null,Rf(a,Y))));break;case 19:za(r,a),$a(a),J&4&&(J=a.updateQueue,J!==null&&(a.updateQueue=null,Rf(a,J)));break;case 30:break;case 21:break;default:za(r,a),$a(a)}(a.mode&2)!==Me&&0<=Ee&&0<=Re&&((Ii||.05<Ai)&&Se(a,Ee,Re,Ai,Si),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<Re-Ee&&(m3(a.return.alternate,a.return)||$t(a,Ee,Re,"Mount"))),Ps(g),ro(D),Si=z,Ii=k}function $a(a){var r=a.flags;if(r&2){try{oe(a,Ja,a)}catch(g){_n(a,a.return,g)}a.flags&=-3}r&4096&&(a.flags&=-4097)}function _3(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var r=a;_3(r),r.tag===5&&r.flags&1024&&Nm(r.stateNode),a=a.sibling}}function bs(a,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)ua(a,r.alternate,r),r=r.sibling}function vc(a){var r=ms(),g=ul(),D=oo(),z=lo();switch(a.tag){case 0:case 11:case 14:case 15:Z2(a,a.return,Ao),wd(a);break;case 1:vl(a,a.return);var k=a.stateNode;typeof k.componentWillUnmount=="function"&&h3(a,a.return,k),wd(a);break;case 27:V&&oe(a,Ot,a.stateNode);case 26:case 5:vl(a,a.return),wd(a);break;case 22:a.memoizedState===null&&wd(a);break;case 30:wd(a);break;default:wd(a)}(a.mode&2)!==Me&&0<=Ee&&0<=Re&&(Ii||.05<Ai)&&Se(a,Ee,Re,Ai,Si),Ps(r),ro(g),Si=D,Ii=z}function wd(a){for(a=a.child;a!==null;)vc(a),a=a.sibling}function b3(a,r,g,D){var z=ms(),k=ul(),Y=oo(),J=lo(),ct=g.flags;switch(g.tag){case 0:case 11:case 15:_l(a,g,D),W2(g,Ao);break;case 1:if(_l(a,g,D),r=g.stateNode,typeof r.componentDidMount=="function"&&oe(g,T8,g,r),r=g.updateQueue,r!==null){a=g.stateNode;try{oe(g,A2,r,a)}catch(vt){_n(g,g.return,vt)}}D&&ct&64&&$2(g),_m(g,g.return);break;case 27:V&&ja(g);case 26:case 5:_l(a,g,D),D&&r===null&&ct&4&&bm(g),_m(g,g.return);break;case 12:if(D&&ct&4){ct=ll(),_l(a,g,D),D=g.stateNode,D.effectDuration+=ff(ct);try{oe(g,o1,g,r,Jf,D.effectDuration)}catch(vt){_n(g,g.return,vt)}}else _l(a,g,D);break;case 31:_l(a,g,D),D&&ct&4&&g3(a,g);break;case 13:_l(a,g,D),D&&ct&4&&v3(a,g);break;case 22:g.memoizedState===null&&_l(a,g,D),_m(g,g.return);break;case 30:break;default:_l(a,g,D)}(g.mode&2)!==Me&&0<=Ee&&0<=Re&&(Ii||.05<Ai)&&Se(g,Ee,Re,Ai,Si),Ps(z),ro(k),Si=Y,Ii=J}function _l(a,r,g){for(g=g&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;)b3(a,r.alternate,r,g),r=r.sibling}function Dd(a,r){var g=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(g=a.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==g&&(a!=null&&fu(a),g!=null&&_d(g))}function nx(a,r){a=null,r.alternate!==null&&(a=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==a&&(fu(r),a!=null&&_d(a))}function _o(a,r,g,D,z){if(r.subtreeFlags&10256||r.actualDuration!==0&&(r.alternate===null||r.alternate.child!==r.child))for(r=r.child;r!==null;){var k=r.sibling;S3(a,r,g,D,k!==null?k.actualStartTime:z),r=k}}function S3(a,r,g,D,z){var k=ms(),Y=ul(),J=oo(),ct=lo(),vt=Xf,Mt=r.flags;switch(r.tag){case 0:case 11:case 15:(r.mode&2)!==Me&&0<r.actualStartTime&&r.flags&1&&we(r,r.actualStartTime,z,Fa,g),_o(a,r,g,D,z),Mt&2048&&d3(r,pr|Ll);break;case 1:(r.mode&2)!==Me&&0<r.actualStartTime&&(r.flags&128?ze(r,r.actualStartTime,z,[]):r.flags&1&&we(r,r.actualStartTime,z,Fa,g)),_o(a,r,g,D,z);break;case 3:var Nt=ll(),kt=Fa;Fa=r.alternate!==null&&r.alternate.memoizedState.isDehydrated&&(r.flags&256)===0,_o(a,r,g,D,z),Fa=kt,Mt&2048&&(g=null,r.alternate!==null&&(g=r.alternate.memoizedState.cache),D=r.memoizedState.cache,D!==g&&(fu(D),g!=null&&_d(g))),a.passiveEffectDuration+=k0(Nt);break;case 12:if(Mt&2048){Mt=ll(),_o(a,r,g,D,z),a=r.stateNode,a.passiveEffectDuration+=ff(Mt);try{oe(r,f3,r,r.alternate,Jf,a.passiveEffectDuration)}catch(_e){_n(r,r.return,_e)}}else _o(a,r,g,D,z);break;case 31:Mt=Fa,Nt=r.alternate!==null?r.alternate.memoizedState:null,kt=r.memoizedState,Nt!==null&&kt===null?(kt=r.deletions,kt!==null&&0<kt.length&&kt[0].tag===18?(Fa=!1,Nt=Nt.hydrationErrors,Nt!==null&&ze(r,r.actualStartTime,z,Nt)):Fa=!0):Fa=!1,_o(a,r,g,D,z),Fa=Mt;break;case 13:Mt=Fa,Nt=r.alternate!==null?r.alternate.memoizedState:null,kt=r.memoizedState,Nt===null||Nt.dehydrated===null||kt!==null&&kt.dehydrated!==null?Fa=!1:(kt=r.deletions,kt!==null&&0<kt.length&&kt[0].tag===18?(Fa=!1,Nt=Nt.hydrationErrors,Nt!==null&&ze(r,r.actualStartTime,z,Nt)):Fa=!0),_o(a,r,g,D,z),Fa=Mt;break;case 23:break;case 22:kt=r.stateNode,Nt=r.alternate,r.memoizedState!==null?kt._visibility&Zd?_o(a,r,g,D,z):Sm(a,r,g,D,z):kt._visibility&Zd?_o(a,r,g,D,z):(kt._visibility|=Zd,bl(a,r,g,D,(r.subtreeFlags&10256)!==0||r.actualDuration!==0&&(r.alternate===null||r.alternate.child!==r.child),z),(r.mode&2)===Me||Fa||(a=r.actualStartTime,0<=a&&.05<z-a&&Jt(r,a,z),0<=Ee&&0<=Re&&.05<Re-Ee&&Jt(r,Ee,Re))),Mt&2048&&Dd(Nt,r);break;case 24:_o(a,r,g,D,z),Mt&2048&&nx(r.alternate,r);break;default:_o(a,r,g,D,z)}(r.mode&2)!==Me&&((a=!Fa&&r.alternate===null&&r.return!==null&&r.return.alternate!==null)&&(g=r.actualStartTime,0<=g&&.05<z-g&&$t(r,g,z,"Mount")),0<=Ee&&0<=Re&&((Ii||.05<Ai)&&Se(r,Ee,Re,Ai,Si),a&&.05<Re-Ee&&$t(r,Ee,Re,"Mount"))),Ps(k),ro(Y),Si=J,Ii=ct,Xf=vt}function bl(a,r,g,D,z,k){for(z=z&&((r.subtreeFlags&10256)!==0||r.actualDuration!==0&&(r.alternate===null||r.alternate.child!==r.child)),r=r.child;r!==null;){var Y=r.sibling;x3(a,r,g,D,z,Y!==null?Y.actualStartTime:k),r=Y}}function x3(a,r,g,D,z,k){var Y=ms(),J=ul(),ct=oo(),vt=lo(),Mt=Xf;z&&(r.mode&2)!==Me&&0<r.actualStartTime&&r.flags&1&&we(r,r.actualStartTime,k,Fa,g);var Nt=r.flags;switch(r.tag){case 0:case 11:case 15:bl(a,r,g,D,z,k),d3(r,pr);break;case 23:break;case 22:var kt=r.stateNode;r.memoizedState!==null?kt._visibility&Zd?bl(a,r,g,D,z,k):Sm(a,r,g,D,k):(kt._visibility|=Zd,bl(a,r,g,D,z,k)),z&&Nt&2048&&Dd(r.alternate,r);break;case 24:bl(a,r,g,D,z,k),z&&Nt&2048&&nx(r.alternate,r);break;default:bl(a,r,g,D,z,k)}(r.mode&2)!==Me&&0<=Ee&&0<=Re&&(Ii||.05<Ai)&&Se(r,Ee,Re,Ai,Si),Ps(Y),ro(J),Si=ct,Ii=vt,Xf=Mt}function Sm(a,r,g,D,z){if(r.subtreeFlags&10256||r.actualDuration!==0&&(r.alternate===null||r.alternate.child!==r.child))for(var k=r.child;k!==null;){r=k.sibling;var Y=a,J=g,ct=D,vt=r!==null?r.actualStartTime:z,Mt=Xf;(k.mode&2)!==Me&&0<k.actualStartTime&&k.flags&1&&we(k,k.actualStartTime,vt,Fa,J);var Nt=k.flags;switch(k.tag){case 22:Sm(Y,k,J,ct,vt),Nt&2048&&Dd(k.alternate,k);break;case 24:Sm(Y,k,J,ct,vt),Nt&2048&&nx(k.alternate,k);break;default:Sm(Y,k,J,ct,vt)}Xf=Mt,k=r}}function Md(a,r,g){if(a.subtreeFlags&d_)for(a=a.child;a!==null;)E3(a,r,g),a=a.sibling}function E3(a,r,g){switch(a.tag){case 26:if(Md(a,r,g),a.flags&d_)if(a.memoizedState!==null)U(g,ju,a.memoizedState,a.memoizedProps);else{var D=a.stateNode,z=a.type;a=a.memoizedProps,((r&335544128)===r||A1(z,a))&&C1(g,D,z,a)}break;case 5:Md(a,r,g),a.flags&d_&&(D=a.stateNode,z=a.type,a=a.memoizedProps,((r&335544128)===r||A1(z,a))&&C1(g,D,z,a));break;case 3:case 4:jn?(D=ju,ju=Cc(a.stateNode.containerInfo),Md(a,r,g),ju=D):Md(a,r,g);break;case 22:a.memoizedState===null&&(D=a.alternate,D!==null&&D.memoizedState!==null?(D=d_,d_=16777216,Md(a,r,g),d_=D):Md(a,r,g));break;default:Md(a,r,g)}}function T3(a){var r=a.alternate;if(r!==null&&(a=r.child,a!==null)){r.child=null;do r=a.sibling,a.sibling=null,a=r;while(a!==null)}}function xm(a){var r=a.deletions;if(a.flags&16){if(r!==null)for(var g=0;g<r.length;g++){var D=r[g],z=ms();es=D,R3(D,a),(D.mode&2)!==Me&&0<=Ee&&0<=Re&&.05<Re-Ee&&$t(D,Ee,Re,"Unmount"),Ps(z)}T3(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)A3(a),a=a.sibling}function A3(a){var r=ms(),g=ul(),D=oo(),z=lo();switch(a.tag){case 0:case 11:case 15:xm(a),a.flags&2048&&J2(a,a.return,pr|Ll);break;case 3:var k=ll();xm(a),a.stateNode.passiveEffectDuration+=k0(k);break;case 12:k=ll(),xm(a),a.stateNode.passiveEffectDuration+=ff(k);break;case 22:k=a.stateNode,a.memoizedState!==null&&k._visibility&Zd&&(a.return===null||a.return.tag!==13)?(k._visibility&=~Zd,u1(a),(a.mode&2)!==Me&&0<=Ee&&0<=Re&&.05<Re-Ee&&$t(a,Ee,Re,"Disconnect")):xm(a);break;default:xm(a)}(a.mode&2)!==Me&&0<=Ee&&0<=Re&&(Ii||.05<Ai)&&Se(a,Ee,Re,Ai,Si),Ps(r),ro(g),Ii=z,Si=D}function u1(a){var r=a.deletions;if(a.flags&16){if(r!==null)for(var g=0;g<r.length;g++){var D=r[g],z=ms();es=D,R3(D,a),(D.mode&2)!==Me&&0<=Ee&&0<=Re&&.05<Re-Ee&&$t(D,Ee,Re,"Unmount"),Ps(z)}T3(a)}for(a=a.child;a!==null;)C3(a),a=a.sibling}function C3(a){var r=ms(),g=ul(),D=oo(),z=lo();switch(a.tag){case 0:case 11:case 15:J2(a,a.return,pr),u1(a);break;case 22:var k=a.stateNode;k._visibility&Zd&&(k._visibility&=~Zd,u1(a));break;default:u1(a)}(a.mode&2)!==Me&&0<=Ee&&0<=Re&&(Ii||.05<Ai)&&Se(a,Ee,Re,Ai,Si),Ps(r),ro(g),Ii=z,Si=D}function R3(a,r){for(;es!==null;){var g=es,D=g,z=r,k=ms(),Y=ul(),J=oo(),ct=lo();switch(D.tag){case 0:case 11:case 15:J2(D,z,pr);break;case 23:case 22:D.memoizedState!==null&&D.memoizedState.cachePool!==null&&(z=D.memoizedState.cachePool.pool,z!=null&&fu(z));break;case 24:_d(D.memoizedState.cache)}if((D.mode&2)!==Me&&0<=Ee&&0<=Re&&(Ii||.05<Ai)&&Se(D,Ee,Re,Ai,Si),Ps(k),ro(Y),Ii=ct,Si=J,D=g.child,D!==null)D.return=g,es=D;else t:for(g=a;es!==null;){if(D=es,k=D.sibling,Y=D.return,yl(D),D===g){es=null;break t}if(k!==null){k.return=Y,es=k;break t}es=Y}}}function ix(a){var r=i8(a);if(r!=null){if(typeof r.memoizedProps["data-testname"]!="string")throw Error("Invalid host root specified. Should be either a React container or a node with a testname attribute.");return r}if(a=yx(a),a===null)throw Error("Could not find React container within specified host subtree.");return a.stateNode.current}function ax(a,r){var g=a.tag;switch(r.$$typeof){case R4:if(a.type===r.value)return!0;break;case w4:t:{for(r=r.value,a=[a,0],g=0;g<a.length;){var D=a[g++],z=D.tag,k=a[g++],Y=r[k];if(z!==5&&z!==26&&z!==27||!Tl(D)){for(;Y!=null&&ax(D,Y);)k++,Y=r[k];if(k===r.length){r=!0;break t}else for(D=D.child;D!==null;)a.push(D,k),D=D.sibling}}r=!1}return r;case D4:if((g===5||g===26||g===27)&&D1(a.stateNode,r.value))return!0;break;case O4:if((g===5||g===6||g===26||g===27)&&(a=_x(a),a!==null&&0<=a.indexOf(r.value)))return!0;break;case M4:if((g===5||g===26||g===27)&&(a=a.memoizedProps["data-testname"],typeof a=="string"&&a.toLowerCase()===r.value.toLowerCase()))return!0;break;default:throw Error("Invalid selector type specified.")}return!1}function c1(a){switch(a.$$typeof){case R4:return"<"+(B(a.value)||"Unknown")+">";case w4:return":has("+(c1(a)||"")+")";case D4:return'[role="'+a.value+'"]';case O4:return'"'+a.value+'"';case M4:return'[data-testname="'+a.value+'"]';default:throw Error("Invalid selector type specified.")}}function w3(a,r){var g=[];a=[a,0];for(var D=0;D<a.length;){var z=a[D++],k=z.tag,Y=a[D++],J=r[Y];if(k!==5&&k!==26&&k!==27||!Tl(z)){for(;J!=null&&ax(z,J);)Y++,J=r[Y];if(Y===r.length)g.push(z);else for(z=z.child;z!==null;)a.push(z,Y),z=z.sibling}}return g}function d1(a,r){if(!So)throw Error("Test selector API is not supported by this renderer.");a=ix(a),a=w3(a,r),r=[],a=Array.from(a);for(var g=0;g<a.length;){var D=a[g++],z=D.tag;if(z===5||z===26||z===27)Tl(D)||r.push(D.stateNode);else for(D=D.child;D!==null;)a.push(D),D=D.sibling}return r}function qD(){So&&N4.forEach(function(a){return a()})}function D3(){var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return a||Ct.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),a}function or(a){if((cn&is)!==ns&&Qe!==0)return Qe&-Qe;var r=Ct.T;return r!==null?(r._updatedFibers||(r._updatedFibers=new Set),r._updatedFibers.add(a),_y()):gx()}function M3(){if(Ir===0)if(!(Qe&536870912)||un){var a=Dt;Dt<<=1,!(Dt&3932160)&&(Dt=262144),Ir=a}else Ir=536870912;return a=To.current,a!==null&&(a.flags|=32),Ir}function ui(a,r,g){if(p_&&console.error("useInsertionEffect must not schedule updates."),W8&&(U4=!0),(a===Wn&&(In===Jm||In===$m)||a.cancelPendingCommit!==null)&&(wf(a,0),Eu(a,Qe,Ir,!1)),rt(a,g),(cn&is)!==ns&&a===Wn){if(Dc)switch(r.tag){case 0:case 11:case 15:a=$e&&L($e)||"Unknown",IL.has(a)||(IL.add(a),r=L(r)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",r,a,a));break;case 1:FL||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),FL=!0)}}else wc&&it(a,r,g),Q3(r),a===Wn&&((cn&is)===ns&&(rp|=g),Ci===ip&&Eu(a,Qe,Ir,!1)),gs(a)}function sx(a,r,g){if((cn&(is|jl))!==ns)throw Error("Should not already be working.");if(Qe!==0&&$e!==null){var D=$e,z=ln();switch(L7){case Xx:case Jm:var k=Mx;fi&&((D=D._debugTask)?D.run(console.timeStamp.bind(console,"Suspended",k,z,"Components ⚛",void 0,"primary-light")):console.timeStamp("Suspended",k,z,"Components ⚛",void 0,"primary-light"));break;case $m:k=Mx,fi&&((D=D._debugTask)?D.run(console.timeStamp.bind(console,"Action",k,z,"Components ⚛",void 0,"primary-light")):console.timeStamp("Action",k,z,"Components ⚛",void 0,"primary-light"));break;default:fi&&(D=z-Mx,3>D||console.timeStamp("Blocked",Mx,z,"Components ⚛",void 0,5>D?"primary-light":10>D?"primary":100>D?"primary-dark":"error"))}}k=(g=!g&&(r&127)===0&&(r&a.expiredLanes)===0||$(a,r))?QD(a,r):ox(a,r,!0);var Y=g;do{if(k===nh){h_&&!g&&Eu(a,r,0,!1),r=In,Mx=Sa(),L7=r;break}else{if(D=ln(),z=a.current.alternate,Y&&!N3(z)){Ft(r),z=Ys,k=D,!fi||k<=z||(ta?ta.run(console.timeStamp.bind(console,"Teared Render",z,k,hn,"Scheduler ⚛","error")):console.timeStamp("Teared Render",z,k,hn,"Scheduler ⚛","error")),Od(r,D),k=ox(a,r,!1),Y=!1;continue}if(k===Zm){if(Y=r,a.errorRecoveryDisabledLanes&Y)var J=0;else J=a.pendingLanes&-536870913,J=J!==0?J:J&536870912?536870912:0;if(J!==0){Ft(r),te(Ys,D,r,ta),Od(r,D),r=J;t:{D=a,k=Y,Y=Qx;var ct=ts&&D.current.memoizedState.isDehydrated;if(ct&&(wf(D,J).flags|=256),J=ox(D,J,!1),J!==Zm){if(U8&&!ct){D.errorRecoveryDisabledLanes|=k,rp|=k,k=ip;break t}D=mr,mr=Y,D!==null&&(mr===null?mr=D:mr.push.apply(mr,D))}k=J}if(Y=!1,k!==Zm)continue;D=ln()}}if(k===Kx){Ft(r),te(Ys,D,r,ta),Od(r,D),wf(a,0),Eu(a,r,0,!0);break}t:{switch(g=a,k){case nh:case Kx:throw Error("Root did not complete. This is a bug in React.");case ip:if((r&4194048)!==r)break;case P4:Ft(r),pn(Ys,D,r,ta),Od(r,D),z=r,z&127?h4=D:z&4194048&&(f4=D),Eu(g,r,Ir,!ap);break t;case Zm:mr=null;break;case L4:case RL:break;default:throw Error("Unknown root exit status.")}if(Ct.actQueue!==null)lx(g,z,r,mr,Zx,B4,Ir,rp,tg,k,null,null,Ys,D);else{if((r&62914560)===r&&(Y=k4+ML-ln(),10<Y)){if(Eu(g,r,Ir,!ap),X(g,0,!0)!==0)break t;zu=r,g.timeoutHandle=Lr(O3.bind(null,g,z,mr,Zx,B4,r,Ir,rp,tg,ap,k,"Throttled",Ys,D),Y);break t}O3(g,z,mr,Zx,B4,r,Ir,rp,tg,ap,k,null,Ys,D)}}}break}while(!0);gs(a)}function O3(a,r,g,D,z,k,Y,J,ct,vt,Mt,Nt,kt,_e){a.timeoutHandle=xl;var Pe=r.subtreeFlags,Yn=null;if((Pe&8192||(Pe&16785408)===16785408)&&(Yn=If(),E3(r,k,Yn),Pe=(k&62914560)===k?k4-ln():(k&4194048)===k?DL-ln():0,Pe=R1(Yn,Pe),Pe!==null)){zu=k,a.cancelPendingCommit=Pe(lx.bind(null,a,r,k,g,D,z,Y,J,ct,Mt,Yn,w1(Yn,a.containerInfo),kt,_e)),Eu(a,k,Y,!vt);return}lx(a,r,k,g,D,z,Y,J,ct,Mt,Yn,Nt,kt,_e)}function N3(a){for(var r=a;;){var g=r.tag;if((g===0||g===11||g===15)&&r.flags&16384&&(g=r.updateQueue,g!==null&&(g=g.stores,g!==null)))for(var D=0;D<g.length;D++){var z=g[D],k=z.getSnapshot;z=z.value;try{if(!dr(k(),z))return!1}catch{return!1}}if(g=r.child,r.subtreeFlags&16384&&g!==null)g.return=r,r=g;else{if(r===a)break;for(;r.sibling===null;){if(r.return===null||r.return===a)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Eu(a,r,g,D){r&=~H8,r&=~rp,a.suspendedLanes|=r,a.pingedLanes&=~r,D&&(a.warmLanes|=r),D=a.expirationTimes;for(var z=r;0<z;){var k=31-da(z),Y=1<<k;D[k]=-1,z&=~Y}g!==0&&st(a,g,r)}function Em(){return(cn&(is|jl))===ns?(bd(0,!1),!1):!0}function Tm(){return(cn&(is|jl))!==ns}function Am(){if($e!==null){if(In===Fr)var a=$e.return;else a=$e,my(),nm(a),e_=null,Fx=0,a=$e;for(;a!==null;)r1(a.alternate,a),a=a.return;$e=null}}function Od(a,r){a&127&&(Um=r),a&4194048&&(Qd=r)}function wf(a,r){fi&&(console.timeStamp("Blocking Track",.003,.003,"Blocking","Scheduler ⚛","primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition","Scheduler ⚛","primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense","Scheduler ⚛","primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle","Scheduler ⚛","primary-light"));var g=Ys;if(Ys=Sa(),Qe!==0&&0<g){if(Ft(Qe),Ci===L4||Ci===ip)pn(g,Ys,r,ta);else{var D=Ys,z=ta;if(fi&&!(D<=g)){var k=(r&738197653)===r?"tertiary-dark":"primary-dark",Y=(r&536870912)===r?"Prewarm":(r&201326741)===r?"Interrupted Hydration":"Interrupted Render";z?z.run(console.timeStamp.bind(console,Y,g,D,hn,"Scheduler ⚛",k)):console.timeStamp(Y,g,D,hn,"Scheduler ⚛",k)}}Od(Qe,Ys)}if(g=ta,ta=null,r&127){ta=Rx,z=0<=Oc&&Oc<Um?Um:Oc,D=0<=Hm&&Hm<Um?Um:Hm,k=0<=D?D:0<=z?z:Ys,0<=h4&&(Ft(2),Mn(h4,k,r,g)),g=z;var J=D,ct=wx,vt=0<Z1,Mt=$f===1,Nt=$f===2;if(z=Ys,D=Rx,k=m8,Y=g8,fi){if(hn="Blocking",0<g?g>z&&(g=z):g=z,0<J?J>g&&(J=g):J=g,ct!==null&&g>J){var kt=vt?"secondary-light":"warning";D?D.run(console.timeStamp.bind(console,vt?"Consecutive":"Event: "+ct,J,g,hn,"Scheduler ⚛",kt)):console.timeStamp(vt?"Consecutive":"Event: "+ct,J,g,hn,"Scheduler ⚛",kt)}z>g&&(J=Mt?"error":(r&738197653)===r?"tertiary-light":"primary-light",Mt=Nt?"Promise Resolved":Mt?"Cascading Update":5<z-g?"Update Blocked":"Update",Nt=[],Y!=null&&Nt.push(["Component name",Y]),k!=null&&Nt.push(["Method name",k]),g={start:g,end:z,detail:{devtools:{properties:Nt,track:hn,trackGroup:"Scheduler ⚛",color:J}}},D?D.run(performance.measure.bind(performance,Mt,g)):performance.measure(Mt,g))}Oc=-1.1,$f=0,g8=m8=null,h4=-1.1,Z1=Hm,Hm=-1.1,Um=Sa()}if(r&4194048&&(ta=Dx,z=0<=Wd&&Wd<Qd?Qd:Wd,g=0<=Ml&&Ml<Qd?Qd:Ml,D=0<=tp&&tp<Qd?Qd:tp,k=0<=D?D:0<=g?g:Ys,0<=f4&&(Ft(256),Mn(f4,k,r,ta)),Nt=D,J=Gm,ct=0<ep,vt=v8===2,k=Ys,D=Dx,Y=M7,Mt=O7,fi&&(hn="Transition",0<g?g>k&&(g=k):g=k,0<z?z>g&&(z=g):z=g,0<Nt?Nt>z&&(Nt=z):Nt=z,z>Nt&&J!==null&&(kt=ct?"secondary-light":"warning",D?D.run(console.timeStamp.bind(console,ct?"Consecutive":"Event: "+J,Nt,z,hn,"Scheduler ⚛",kt)):console.timeStamp(ct?"Consecutive":"Event: "+J,Nt,z,hn,"Scheduler ⚛",kt)),g>z&&(D?D.run(console.timeStamp.bind(console,"Action",z,g,hn,"Scheduler ⚛","primary-dark")):console.timeStamp("Action",z,g,hn,"Scheduler ⚛","primary-dark")),k>g&&(z=vt?"Promise Resolved":5<k-g?"Update Blocked":"Update",Nt=[],Mt!=null&&Nt.push(["Component name",Mt]),Y!=null&&Nt.push(["Method name",Y]),g={start:g,end:k,detail:{devtools:{properties:Nt,track:hn,trackGroup:"Scheduler ⚛",color:"primary-light"}}},D?D.run(performance.measure.bind(performance,z,g)):performance.measure(z,g))),Ml=Wd=-1.1,v8=0,f4=-1.1,ep=tp,tp=-1.1,Qd=Sa()),g=a.timeoutHandle,g!==xl&&(a.timeoutHandle=xl,mx(g)),g=a.cancelPendingCommit,g!==null&&(a.cancelPendingCommit=null,g()),zu=0,Am(),Wn=a,$e=g=Tu(a.current,null),Qe=r,In=Fr,Co=null,ap=!1,h_=$(a,r),U8=!1,Ci=nh,tg=Ir=H8=rp=sp=0,mr=Qx=null,B4=!1,r&8&&(r|=r&32),D=a.entangledLanes,D!==0)for(a=a.entanglements,D&=r;0<D;)z=31-da(D),k=1<<z,r|=a[z],D&=~k;return Lc=r,gf(),a=_7(),1e3<a-y7&&(Ct.recentlyCreatedOwnerStacks=0,y7=a),Lu.discardPendingWarnings(),g}function L3(a,r){Ne=null,Ct.H=Vx,Ct.getCurrentStack=null,Dc=!1,Kd=null,r===t_||r===_4?(r=S2(),In=Xx):r===A8?(r=S2(),In=wL):In=r===z8?I8:r!==null&&typeof r=="object"&&typeof r.then=="function"?qx:j4,Co=r;var g=$e;g===null?(Ci=Kx,cm(a,me(r,a.current))):g.mode&2&&gy(g)}function P3(){var a=To.current;return a===null?!0:(Qe&4194048)===Qe?Nl===null:(Qe&62914560)===Qe||Qe&536870912?a===Nl:!1}function rx(){var a=Ct.H;return Ct.H=Vx,a===null?Vx:a}function j3(){var a=Ct.A;return Ct.A=hH,a}function h1(a){ta===null&&(ta=a._debugTask==null?null:a._debugTask)}function f1(){Ci=ip,ap||(Qe&4194048)!==Qe&&To.current!==null||(h_=!0),!(sp&134217727)&&!(rp&134217727)||Wn===null||Eu(Wn,Qe,Ir,!1)}function ox(a,r,g){var D=cn;cn|=is;var z=rx(),k=j3();if(Wn!==a||Qe!==r){if(wc){var Y=a.memoizedUpdaters;0<Y.size&&(Of(a,Qe),Y.clear()),lt(a,r)}Zx=null,wf(a,r)}r=!1,Y=Ci;t:do try{if(In!==Fr&&$e!==null){var J=$e,ct=Co;switch(In){case I8:Am(),Y=P4;break t;case Xx:case Jm:case $m:case qx:To.current===null&&(r=!0);var vt=In;if(In=Fr,Co=null,Df(a,J,ct,vt),g&&h_){Y=nh;break t}break;default:vt=In,In=Fr,Co=null,Df(a,J,ct,vt)}}z3(),Y=Ci;break}catch(Mt){L3(a,Mt)}while(!0);return r&&a.shellSuspendCounter++,my(),cn=D,Ct.H=z,Ct.A=k,$e===null&&(Wn=null,Qe=0,gf()),Y}function z3(){for(;$e!==null;)B3($e)}function QD(a,r){var g=cn;cn|=is;var D=rx(),z=j3();if(Wn!==a||Qe!==r){if(wc){var k=a.memoizedUpdaters;0<k.size&&(Of(a,Qe),k.clear()),lt(a,r)}Zx=null,Wx=ln()+G8,wf(a,r)}else h_=$(a,r);t:do try{if(In!==Fr&&$e!==null)e:switch(r=$e,k=Co,In){case j4:In=Fr,Co=null,Df(a,r,k,j4);break;case Jm:case $m:if(b2(k)){In=Fr,Co=null,k3(r);break}r=function(){In!==Jm&&In!==$m||Wn!==a||(In=z4),gs(a)},k.then(r,r);break t;case Xx:In=z4;break t;case wL:In=F8;break t;case z4:b2(k)?(In=Fr,Co=null,k3(r)):(In=Fr,Co=null,Df(a,r,k,z4));break;case F8:var Y=null;switch($e.tag){case 26:Y=$e.memoizedState;case 5:case 27:var J=$e,ct=J.type,vt=J.pendingProps;if(Y?j(Y):bc(J.stateNode,ct,vt)){In=Fr,Co=null;var Mt=J.sibling;if(Mt!==null)$e=Mt;else{var Nt=J.return;Nt!==null?($e=Nt,p1(Nt)):$e=null}break e}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}In=Fr,Co=null,Df(a,r,k,F8);break;case qx:In=Fr,Co=null,Df(a,r,k,qx);break;case I8:Am(),Ci=P4;break t;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Ct.actQueue!==null?z3():WD();break}catch(kt){L3(a,kt)}while(!0);return my(),Ct.H=D,Ct.A=z,cn=g,$e!==null?nh:(Wn=null,Qe=0,gf(),Ci)}function WD(){for(;$e!==null&&!De();)B3($e)}function B3(a){var r=a.alternate;(a.mode&2)!==Me?(I0(a),r=oe(a,_s,r,a,Lc),gy(a)):r=oe(a,_s,r,a,Lc),a.memoizedProps=a.pendingProps,r===null?p1(a):$e=r}function k3(a){var r=oe(a,ZD,a);a.memoizedProps=a.pendingProps,r===null?p1(a):$e=r}function ZD(a){var r=a.alternate,g=(a.mode&2)!==Me;switch(g&&I0(a),a.tag){case 15:case 0:r=ml(r,a,a.pendingProps,a.type,void 0,Qe);break;case 11:r=ml(r,a,a.pendingProps,a.type.render,a.ref,Qe);break;case 5:nm(a);default:r1(r,a),a=$e=Qi(a,Lc),r=_s(r,a,Lc)}return g&&gy(a),r}function Df(a,r,g,D){my(),nm(r),e_=null,Fx=0;var z=r.return;try{if(u3(a,z,r,g,Qe)){Ci=Kx,cm(a,me(g,a.current)),$e=null;return}}catch(k){if(z!==null)throw $e=z,k;Ci=Kx,cm(a,me(g,a.current)),$e=null;return}r.flags&32768?(un||D===j4?a=!0:h_||Qe&536870912?a=!1:(ap=a=!0,(D===Jm||D===$m||D===Xx||D===qx)&&(D=To.current,D!==null&&D.tag===13&&(D.flags|=16384))),F3(r,a)):p1(r)}function p1(a){var r=a;do{if(r.flags&32768){F3(r,ap);return}var g=r.alternate;if(a=r.return,I0(r),g=oe(r,Q2,g,r,Lc),(r.mode&2)!==Me&&f2(r),g!==null){$e=g;return}if(r=r.sibling,r!==null){$e=r;return}$e=r=a}while(r!==null);Ci===nh&&(Ci=RL)}function F3(a,r){do{var g=mc(a.alternate,a);if(g!==null){g.flags&=32767,$e=g;return}if((a.mode&2)!==Me){f2(a),g=a.actualDuration;for(var D=a.child;D!==null;)g+=D.actualDuration,D=D.sibling;a.actualDuration=g}if(g=a.return,g!==null&&(g.flags|=32768,g.subtreeFlags=0,g.deletions=null),!r&&(a=a.sibling,a!==null)){$e=a;return}$e=a=g}while(a!==null);Ci=P4,$e=null}function lx(a,r,g,D,z,k,Y,J,ct,vt,Mt,Nt,kt,_e){a.cancelPendingCommit=null;do Mf();while(Ca!==lp);if(Lu.flushLegacyContextWarning(),Lu.flushPendingUnsafeLifecycleWarnings(),(cn&(is|jl))!==ns)throw Error("Should not already be working.");if(Ft(g),vt===Zm?te(kt,_e,g,ta):D!==null?zt(kt,_e,g,D,r!==null&&r.alternate!==null&&r.alternate.memoizedState.isDehydrated&&(r.flags&256)!==0,ta):Te(kt,_e,g,ta),r!==null){if(g===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),r===a.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(k=r.lanes|r.childLanes,k|=R8,ut(a,g,k,Y,J,ct),a===Wn&&($e=Wn=null,Qe=0),f_=r,up=a,zu=g,K8=k,q8=z,zL=D,X8=_e,BL=Nt,Bu=F4,kL=null,r.actualDuration!==0||r.subtreeFlags&10256||r.flags&10256?(a.callbackNode=null,a.callbackPriority=0,q3(km,function(){return Bf(),Bu===F4&&(Bu=Y8),V3(),null})):(a.callbackNode=null,a.callbackPriority=0),qd=null,Jf=Sa(),Nt!==null&&pe(_e,Jf,Nt,ta),D=(r.flags&13878)!==0,r.subtreeFlags&13878||D){D=Ct.T,Ct.T=null,z=Us(),zi(2),Y=cn,cn|=jl;try{KD(a,r,g)}finally{cn=Y,zi(z),Ct.T=D}}Ca=NL,I3(),U3(),H3()}}function I3(){if(Ca===NL){Ca=lp;var a=up,r=f_,g=zu,D=(r.flags&13878)!==0;if(r.subtreeFlags&13878||D){D=Ct.T,Ct.T=null;var z=Us();zi(2);var k=cn;cn|=jl;try{u_=g,c_=a,F0(),y3(r,a),c_=u_=null,_c(a.containerInfo)}finally{cn=k,zi(z),Ct.T=D}}a.current=r,Ca=LL}}function U3(){if(Ca===LL){Ca=lp;var a=kL;if(a!==null){Jf=Sa();var r=Xd,g=Jf;!fi||g<=r||console.timeStamp(a,r,g,hn,"Scheduler ⚛","secondary-light")}a=up,r=f_,g=zu;var D=(r.flags&8772)!==0;if(r.subtreeFlags&8772||D){D=Ct.T,Ct.T=null;var z=Us();zi(2);var k=cn;cn|=jl;try{u_=g,c_=a,F0(),ua(a,r.alternate,r),c_=u_=null}finally{cn=k,zi(z),Ct.T=D}}a=X8,r=BL,Xd=Sa(),a=r===null?a:Jf,r=Xd,g=Bu===V8,D=ta,qd!==null?Lt(a,r,qd,!1,D):!fi||r<=a||(D?D.run(console.timeStamp.bind(console,g?"Commit Interrupted View Transition":"Commit",a,r,hn,"Scheduler ⚛",g?"error":"secondary-dark")):console.timeStamp(g?"Commit Interrupted View Transition":"Commit",a,r,hn,"Scheduler ⚛",g?"error":"secondary-dark")),Ca=PL}}function H3(){if(Ca===jL||Ca===PL){if(Ca===jL){var a=Xd;Xd=Sa();var r=Xd,g=Bu===V8;!fi||r<=a||console.timeStamp(g?"Interrupted View Transition":"Starting Animation",a,r,hn,"Scheduler ⚛",g?" error":"secondary-light"),Bu!==V8&&(Bu=OL)}Ca=lp,Tn(),a=up;var D=f_;r=zu,g=zL;var z=D.actualDuration!==0||(D.subtreeFlags&10256)!==0||(D.flags&10256)!==0;z?Ca=I4:(Ca=lp,f_=up=null,G3(a,a.pendingLanes),eg=0,$x=null);var k=a.pendingLanes;if(k===0&&(op=null),z||dx(a),k=ht(r),D=D.stateNode,Vs&&typeof Vs.onCommitFiberRoot=="function")try{var Y=(D.current.flags&128)===128;switch(k){case 2:var J=mn;break;case 8:J=Nu;break;case 32:J=km;break;case 268435456:J=v7;break;default:J=km}Vs.onCommitFiberRoot(K1,D,J,Y)}catch(Nt){Rc||(Rc=!0,console.error("React instrumentation encountered an error: %o",Nt))}if(wc&&a.memoizedUpdaters.clear(),qD(),g!==null){Y=Ct.T,J=Us(),zi(2),Ct.T=null;try{var ct=a.onRecoverableError;for(D=0;D<g.length;D++){var vt=g[D],Mt=JD(vt.stack);oe(vt.source,ct,vt.value,Mt)}}finally{Ct.T=Y,zi(J)}}zu&3&&Mf(),gs(a),k=a.pendingLanes,r&261930&&k&42?(m4=!0,a===Q8?Jx++:(Jx=0,Q8=a)):Jx=0,z||Od(r,Xd),ts&&xx(),bd(0,!1)}}function JD(a){return a={componentStack:a},Object.defineProperty(a,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),a}function G3(a,r){(a.pooledCacheLanes&=r)===0&&(r=a.pooledCache,r!=null&&(a.pooledCache=null,_d(r)))}function Mf(){return I3(),U3(),H3(),V3()}function V3(){if(Ca!==I4)return!1;var a=up,r=K8;K8=0;var g=ht(zu),D=32>g?32:g;g=Ct.T;var z=Us();try{zi(D),Ct.T=null;var k=q8;q8=null,D=up;var Y=zu;if(Ca=lp,f_=up=null,zu=0,(cn&(is|jl))!==ns)throw Error("Cannot flush passive effects while already rendering.");Ft(Y),W8=!0,U4=!1;var J=0;if(qd=null,J=ln(),Bu===OL){var ct=Xd,vt=J;!fi||vt<=ct||(N7?N7.run(console.timeStamp.bind(console,"Animating",ct,vt,hn,"Scheduler ⚛","secondary-dark")):console.timeStamp("Animating",ct,vt,hn,"Scheduler ⚛","secondary-dark"))}else{ct=Xd,vt=J;var Mt=Bu===Y8;!fi||vt<=ct||(ta?ta.run(console.timeStamp.bind(console,Mt?"Waiting for Paint":"Waiting",ct,vt,hn,"Scheduler ⚛","secondary-light")):console.timeStamp(Mt?"Waiting for Paint":"Waiting",ct,vt,hn,"Scheduler ⚛","secondary-light"))}ct=cn,cn|=jl;var Nt=D.current;F0(),A3(Nt);var kt=D.current;Nt=X8,F0(),S3(D,kt,Y,k,Nt),dx(D),cn=ct;var _e=ln();if(kt=J,Nt=ta,qd!==null?Lt(kt,_e,qd,!0,Nt):!fi||_e<=kt||(Nt?Nt.run(console.timeStamp.bind(console,"Remaining Effects",kt,_e,hn,"Scheduler ⚛","secondary-dark")):console.timeStamp("Remaining Effects",kt,_e,hn,"Scheduler ⚛","secondary-dark")),Od(Y,_e),bd(0,!1),U4?D===$x?eg++:(eg=0,$x=D):eg=0,U4=W8=!1,Vs&&typeof Vs.onPostCommitFiberRoot=="function")try{Vs.onPostCommitFiberRoot(K1,D)}catch(Yn){Rc||(Rc=!0,console.error("React instrumentation encountered an error: %o",Yn))}var Pe=D.current.stateNode;return Pe.effectDuration=0,Pe.passiveEffectDuration=0,!0}finally{zi(z),Ct.T=g,G3(a,r)}}function Y3(a,r,g){r=me(g,r),p2(r),r=qy(a.stateNode,r,2),a=Ar(a,r,2),a!==null&&(rt(a,2),gs(a))}function _n(a,r,g){if(p_=!1,a.tag===3)Y3(a,a,g);else{for(;r!==null;){if(r.tag===3){Y3(r,a,g);return}if(r.tag===1){var D=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof D.componentDidCatch=="function"&&(op===null||!op.has(D))){a=me(g,a),p2(a),g=Qy(2),D=Ar(r,g,2),D!==null&&(Wy(g,D,r,a),rt(D,2),gs(D));return}}r=r.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
207
207
 
208
208
  Error message:
209
209
 
@@ -268,7 +268,7 @@ Learn more about this warning here: https://react.dev/link/legacy-context`,D)})}
268
268
 
269
269
  Check the render method of \``+z+"`."),k||D&&(k=`
270
270
 
271
- Check the top-level render call using <`+D+">.");var Y="";g!=null&&a!==g&&(D=null,typeof g.tag=="number"?D=L(g):typeof g.name=="string"&&(D=g.name),D&&(Y=" It was passed a child from "+D+".")),oe(r,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',k,Y)})}}};var Qm=q0(!0),J7=q0(!1),Ix=1,Zd=2,Ol=[],n_=0,R8=0,$7=0,tL=1,eL=2,w8=3,np=!1,nL=!1,D8=null,M8=!1,i_=I(null),S4=I(0),To=I(null),Nl=null,a_=1,Ux=2,ha=I(0),x4=0,Ll=1,fr=2,Ao=4,pr=8,s_,iL=new Set,aL=new Set,O8=new Set,sL=new Set,Jd=0,Ne=null,Qn=null,xa=null,E4=!1,r_=!1,Wm=!1,T4=0,Hx=0,$d=null,cH=0,dH=25,Rt=null,Pl=null,th=-1,Gx=!1,Vx={readContext:kn,use:En,useCallback:xi,useContext:xi,useEffect:xi,useImperativeHandle:xi,useLayoutEffect:xi,useInsertionEffect:xi,useMemo:xi,useReducer:xi,useRef:xi,useState:xi,useDebugValue:xi,useDeferredValue:xi,useTransition:xi,useSyncExternalStore:xi,useId:xi,useHostTransitionStatus:xi,useFormState:xi,useActionState:xi,useOptimistic:xi,useMemoCache:xi,useCacheRefresh:xi};Vx.useEffectEvent=xi;var N8=null,rL=null,L8=null,oL=null,Nc=null,Pu=null,A4=null;N8={readContext:function(a){return kn(a)},use:En,useCallback:function(a,r){return Rt="useCallback",ke(),js(r),Gy(a,r)},useContext:function(a){return Rt="useContext",ke(),kn(a)},useEffect:function(a,r){return Rt="useEffect",ke(),js(r),zs(a,r)},useImperativeHandle:function(a,r,g){return Rt="useImperativeHandle",ke(),js(g),Hy(a,r,g)},useInsertionEffect:function(a,r){Rt="useInsertionEffect",ke(),js(r),vu(4,fr,a,r)},useLayoutEffect:function(a,r){return Rt="useLayoutEffect",ke(),js(r),yu(a,r)},useMemo:function(a,r){Rt="useMemo",ke(),js(r);var g=Ct.H;Ct.H=Nc;try{return Vy(a,r)}finally{Ct.H=g}},useReducer:function(a,r,g){Rt="useReducer",ke();var D=Ct.H;Ct.H=Nc;try{return jy(a,r,g)}finally{Ct.H=D}},useRef:function(a){return Rt="useRef",ke(),mo(a)},useState:function(a){Rt="useState",ke();var r=Ct.H;Ct.H=Nc;try{return Sf(a)}finally{Ct.H=r}},useDebugValue:function(){Rt="useDebugValue",ke()},useDeferredValue:function(a,r){return Rt="useDeferredValue",ke(),rm(a,r)},useTransition:function(){return Rt="useTransition",ke(),Ky()},useSyncExternalStore:function(a,r,g){return Rt="useSyncExternalStore",ke(),zy(a,r,g)},useId:function(){return Rt="useId",ke(),um()},useFormState:function(a,r){return Rt="useFormState",ke(),_f(),Li(a,r)},useActionState:function(a,r){return Rt="useActionState",ke(),Li(a,r)},useOptimistic:function(a){return Rt="useOptimistic",ke(),Fy(a)},useHostTransitionStatus:hc,useMemoCache:Ed,useCacheRefresh:function(){return Rt="useCacheRefresh",ke(),fc()},useEffectEvent:function(a){return Rt="useEffectEvent",ke(),uc(a)}},rL={readContext:function(a){return kn(a)},use:En,useCallback:function(a,r){return Rt="useCallback",Ht(),Gy(a,r)},useContext:function(a){return Rt="useContext",Ht(),kn(a)},useEffect:function(a,r){return Rt="useEffect",Ht(),zs(a,r)},useImperativeHandle:function(a,r,g){return Rt="useImperativeHandle",Ht(),Hy(a,r,g)},useInsertionEffect:function(a,r){Rt="useInsertionEffect",Ht(),vu(4,fr,a,r)},useLayoutEffect:function(a,r){return Rt="useLayoutEffect",Ht(),yu(a,r)},useMemo:function(a,r){Rt="useMemo",Ht();var g=Ct.H;Ct.H=Nc;try{return Vy(a,r)}finally{Ct.H=g}},useReducer:function(a,r,g){Rt="useReducer",Ht();var D=Ct.H;Ct.H=Nc;try{return jy(a,r,g)}finally{Ct.H=D}},useRef:function(a){return Rt="useRef",Ht(),mo(a)},useState:function(a){Rt="useState",Ht();var r=Ct.H;Ct.H=Nc;try{return Sf(a)}finally{Ct.H=r}},useDebugValue:function(){Rt="useDebugValue",Ht()},useDeferredValue:function(a,r){return Rt="useDeferredValue",Ht(),rm(a,r)},useTransition:function(){return Rt="useTransition",Ht(),Ky()},useSyncExternalStore:function(a,r,g){return Rt="useSyncExternalStore",Ht(),zy(a,r,g)},useId:function(){return Rt="useId",Ht(),um()},useActionState:function(a,r){return Rt="useActionState",Ht(),Li(a,r)},useFormState:function(a,r){return Rt="useFormState",Ht(),_f(),Li(a,r)},useOptimistic:function(a){return Rt="useOptimistic",Ht(),Fy(a)},useHostTransitionStatus:hc,useMemoCache:Ed,useCacheRefresh:function(){return Rt="useCacheRefresh",Ht(),fc()},useEffectEvent:function(a){return Rt="useEffectEvent",Ht(),uc(a)}},L8={readContext:function(a){return kn(a)},use:En,useCallback:function(a,r){return Rt="useCallback",Ht(),Td(a,r)},useContext:function(a){return Rt="useContext",Ht(),kn(a)},useEffect:function(a,r){Rt="useEffect",Ht(),Za(2048,pr,a,r)},useImperativeHandle:function(a,r,g){return Rt="useImperativeHandle",Ht(),dc(a,r,g)},useInsertionEffect:function(a,r){return Rt="useInsertionEffect",Ht(),Za(4,fr,a,r)},useLayoutEffect:function(a,r){return Rt="useLayoutEffect",Ht(),Za(4,Ao,a,r)},useMemo:function(a,r){Rt="useMemo",Ht();var g=Ct.H;Ct.H=Pu;try{return xf(a,r)}finally{Ct.H=g}},useReducer:function(a,r,g){Rt="useReducer",Ht();var D=Ct.H;Ct.H=Pu;try{return hl(a,r,g)}finally{Ct.H=D}},useRef:function(){return Rt="useRef",Ht(),Cn().memoizedState},useState:function(){Rt="useState",Ht();var a=Ct.H;Ct.H=Pu;try{return hl(fo)}finally{Ct.H=a}},useDebugValue:function(){Rt="useDebugValue",Ht()},useDeferredValue:function(a,r){return Rt="useDeferredValue",Ht(),Yy(a,r)},useTransition:function(){return Rt="useTransition",Ht(),a3()},useSyncExternalStore:function(a,r,g){return Rt="useSyncExternalStore",Ht(),lc(a,r,g)},useId:function(){return Rt="useId",Ht(),Cn().memoizedState},useFormState:function(a){return Rt="useFormState",Ht(),_f(),sm(a)},useActionState:function(a){return Rt="useActionState",Ht(),sm(a)},useOptimistic:function(a,r){return Rt="useOptimistic",Ht(),O2(a,r)},useHostTransitionStatus:hc,useMemoCache:Ed,useCacheRefresh:function(){return Rt="useCacheRefresh",Ht(),Cn().memoizedState},useEffectEvent:function(a){return Rt="useEffectEvent",Ht(),cc(a)}},oL={readContext:function(a){return kn(a)},use:En,useCallback:function(a,r){return Rt="useCallback",Ht(),Td(a,r)},useContext:function(a){return Rt="useContext",Ht(),kn(a)},useEffect:function(a,r){Rt="useEffect",Ht(),Za(2048,pr,a,r)},useImperativeHandle:function(a,r,g){return Rt="useImperativeHandle",Ht(),dc(a,r,g)},useInsertionEffect:function(a,r){return Rt="useInsertionEffect",Ht(),Za(4,fr,a,r)},useLayoutEffect:function(a,r){return Rt="useLayoutEffect",Ht(),Za(4,Ao,a,r)},useMemo:function(a,r){Rt="useMemo",Ht();var g=Ct.H;Ct.H=A4;try{return xf(a,r)}finally{Ct.H=g}},useReducer:function(a,r,g){Rt="useReducer",Ht();var D=Ct.H;Ct.H=A4;try{return bf(a,r,g)}finally{Ct.H=D}},useRef:function(){return Rt="useRef",Ht(),Cn().memoizedState},useState:function(){Rt="useState",Ht();var a=Ct.H;Ct.H=A4;try{return bf(fo)}finally{Ct.H=a}},useDebugValue:function(){Rt="useDebugValue",Ht()},useDeferredValue:function(a,r){return Rt="useDeferredValue",Ht(),j2(a,r)},useTransition:function(){return Rt="useTransition",Ht(),_u()},useSyncExternalStore:function(a,r,g){return Rt="useSyncExternalStore",Ht(),lc(a,r,g)},useId:function(){return Rt="useId",Ht(),Cn().memoizedState},useFormState:function(a){return Rt="useFormState",Ht(),_f(),Rr(a)},useActionState:function(a){return Rt="useActionState",Ht(),Rr(a)},useOptimistic:function(a,r){return Rt="useOptimistic",Ht(),N2(a,r)},useHostTransitionStatus:hc,useMemoCache:Ed,useCacheRefresh:function(){return Rt="useCacheRefresh",Ht(),Cn().memoizedState},useEffectEvent:function(a){return Rt="useEffectEvent",Ht(),cc(a)}},Nc={readContext:function(a){return S(),kn(a)},use:function(a){return v(),En(a)},useCallback:function(a,r){return Rt="useCallback",v(),ke(),Gy(a,r)},useContext:function(a){return Rt="useContext",v(),ke(),kn(a)},useEffect:function(a,r){return Rt="useEffect",v(),ke(),zs(a,r)},useImperativeHandle:function(a,r,g){return Rt="useImperativeHandle",v(),ke(),Hy(a,r,g)},useInsertionEffect:function(a,r){Rt="useInsertionEffect",v(),ke(),vu(4,fr,a,r)},useLayoutEffect:function(a,r){return Rt="useLayoutEffect",v(),ke(),yu(a,r)},useMemo:function(a,r){Rt="useMemo",v(),ke();var g=Ct.H;Ct.H=Nc;try{return Vy(a,r)}finally{Ct.H=g}},useReducer:function(a,r,g){Rt="useReducer",v(),ke();var D=Ct.H;Ct.H=Nc;try{return jy(a,r,g)}finally{Ct.H=D}},useRef:function(a){return Rt="useRef",v(),ke(),mo(a)},useState:function(a){Rt="useState",v(),ke();var r=Ct.H;Ct.H=Nc;try{return Sf(a)}finally{Ct.H=r}},useDebugValue:function(){Rt="useDebugValue",v(),ke()},useDeferredValue:function(a,r){return Rt="useDeferredValue",v(),ke(),rm(a,r)},useTransition:function(){return Rt="useTransition",v(),ke(),Ky()},useSyncExternalStore:function(a,r,g){return Rt="useSyncExternalStore",v(),ke(),zy(a,r,g)},useId:function(){return Rt="useId",v(),ke(),um()},useFormState:function(a,r){return Rt="useFormState",v(),ke(),Li(a,r)},useActionState:function(a,r){return Rt="useActionState",v(),ke(),Li(a,r)},useOptimistic:function(a){return Rt="useOptimistic",v(),ke(),Fy(a)},useMemoCache:function(a){return v(),Ed(a)},useHostTransitionStatus:hc,useCacheRefresh:function(){return Rt="useCacheRefresh",ke(),fc()},useEffectEvent:function(a){return Rt="useEffectEvent",v(),ke(),uc(a)}},Pu={readContext:function(a){return S(),kn(a)},use:function(a){return v(),En(a)},useCallback:function(a,r){return Rt="useCallback",v(),Ht(),Td(a,r)},useContext:function(a){return Rt="useContext",v(),Ht(),kn(a)},useEffect:function(a,r){Rt="useEffect",v(),Ht(),Za(2048,pr,a,r)},useImperativeHandle:function(a,r,g){return Rt="useImperativeHandle",v(),Ht(),dc(a,r,g)},useInsertionEffect:function(a,r){return Rt="useInsertionEffect",v(),Ht(),Za(4,fr,a,r)},useLayoutEffect:function(a,r){return Rt="useLayoutEffect",v(),Ht(),Za(4,Ao,a,r)},useMemo:function(a,r){Rt="useMemo",v(),Ht();var g=Ct.H;Ct.H=Pu;try{return xf(a,r)}finally{Ct.H=g}},useReducer:function(a,r,g){Rt="useReducer",v(),Ht();var D=Ct.H;Ct.H=Pu;try{return hl(a,r,g)}finally{Ct.H=D}},useRef:function(){return Rt="useRef",v(),Ht(),Cn().memoizedState},useState:function(){Rt="useState",v(),Ht();var a=Ct.H;Ct.H=Pu;try{return hl(fo)}finally{Ct.H=a}},useDebugValue:function(){Rt="useDebugValue",v(),Ht()},useDeferredValue:function(a,r){return Rt="useDeferredValue",v(),Ht(),Yy(a,r)},useTransition:function(){return Rt="useTransition",v(),Ht(),a3()},useSyncExternalStore:function(a,r,g){return Rt="useSyncExternalStore",v(),Ht(),lc(a,r,g)},useId:function(){return Rt="useId",v(),Ht(),Cn().memoizedState},useFormState:function(a){return Rt="useFormState",v(),Ht(),sm(a)},useActionState:function(a){return Rt="useActionState",v(),Ht(),sm(a)},useOptimistic:function(a,r){return Rt="useOptimistic",v(),Ht(),O2(a,r)},useMemoCache:function(a){return v(),Ed(a)},useHostTransitionStatus:hc,useCacheRefresh:function(){return Rt="useCacheRefresh",Ht(),Cn().memoizedState},useEffectEvent:function(a){return Rt="useEffectEvent",v(),Ht(),cc(a)}},A4={readContext:function(a){return S(),kn(a)},use:function(a){return v(),En(a)},useCallback:function(a,r){return Rt="useCallback",v(),Ht(),Td(a,r)},useContext:function(a){return Rt="useContext",v(),Ht(),kn(a)},useEffect:function(a,r){Rt="useEffect",v(),Ht(),Za(2048,pr,a,r)},useImperativeHandle:function(a,r,g){return Rt="useImperativeHandle",v(),Ht(),dc(a,r,g)},useInsertionEffect:function(a,r){return Rt="useInsertionEffect",v(),Ht(),Za(4,fr,a,r)},useLayoutEffect:function(a,r){return Rt="useLayoutEffect",v(),Ht(),Za(4,Ao,a,r)},useMemo:function(a,r){Rt="useMemo",v(),Ht();var g=Ct.H;Ct.H=Pu;try{return xf(a,r)}finally{Ct.H=g}},useReducer:function(a,r,g){Rt="useReducer",v(),Ht();var D=Ct.H;Ct.H=Pu;try{return bf(a,r,g)}finally{Ct.H=D}},useRef:function(){return Rt="useRef",v(),Ht(),Cn().memoizedState},useState:function(){Rt="useState",v(),Ht();var a=Ct.H;Ct.H=Pu;try{return bf(fo)}finally{Ct.H=a}},useDebugValue:function(){Rt="useDebugValue",v(),Ht()},useDeferredValue:function(a,r){return Rt="useDeferredValue",v(),Ht(),j2(a,r)},useTransition:function(){return Rt="useTransition",v(),Ht(),_u()},useSyncExternalStore:function(a,r,g){return Rt="useSyncExternalStore",v(),Ht(),lc(a,r,g)},useId:function(){return Rt="useId",v(),Ht(),Cn().memoizedState},useFormState:function(a){return Rt="useFormState",v(),Ht(),Rr(a)},useActionState:function(a){return Rt="useActionState",v(),Ht(),Rr(a)},useOptimistic:function(a,r){return Rt="useOptimistic",v(),Ht(),N2(a,r)},useMemoCache:function(a){return v(),Ed(a)},useHostTransitionStatus:hc,useCacheRefresh:function(){return Rt="useCacheRefresh",Ht(),Cn().memoizedState},useEffectEvent:function(a){return Rt="useEffectEvent",v(),Ht(),cc(a)}};var lL={},uL=new Set,cL=new Set,dL=new Set,hL=new Set,fL=new Set,pL=new Set,mL=new Set,gL=new Set,vL=new Set,yL=new Set;Object.freeze(lL);var P8={enqueueSetState:function(a,r,g){a=a._reactInternals;var D=or(a),z=mu(D);z.payload=r,g!=null&&(k2(g),z.callback=g),r=Ar(a,z,D),r!==null&&(so(D,"this.setState()",a),ui(r,a,D),vf(r,a,D))},enqueueReplaceState:function(a,r,g){a=a._reactInternals;var D=or(a),z=mu(D);z.tag=tL,z.payload=r,g!=null&&(k2(g),z.callback=g),r=Ar(a,z,D),r!==null&&(so(D,"this.replaceState()",a),ui(r,a,D),vf(r,a,D))},enqueueForceUpdate:function(a,r){a=a._reactInternals;var g=or(a),D=mu(g);D.tag=eL,r!=null&&(k2(r),D.callback=r),r=Ar(a,D,g),r!==null&&(so(g,"this.forceUpdate()",a),ui(r,a,g),vf(r,a,g))}},o_=null,j8=null,z8=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Ea=!1,_L={},bL={},SL={},xL={},l_=!1,EL={},C4={},B8={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},TL=!1,AL=null;AL=new Set;var eh=!1,Ta=!1,k8=!1,CL=typeof WeakSet=="function"?WeakSet:Set,es=null,u_=null,c_=null,Aa=null,kr=!1,ju=null,Fa=!1,d_=8192,hH={getCacheForType:function(a){var r=kn(Fi),g=r.data.get(a);return g===void 0&&(g=a(),r.data.set(a,g)),g},cacheSignal:function(){return kn(Fi).controller.signal},getOwner:function(){return Kd}},R4=0,w4=1,D4=2,M4=3,O4=4;if(typeof Symbol=="function"&&Symbol.for){var Yx=Symbol.for;R4=Yx("selector.component"),w4=Yx("selector.has_pseudo_class"),D4=Yx("selector.role"),M4=Yx("selector.test_id"),O4=Yx("selector.text")}var N4=[],fH=typeof WeakMap=="function"?WeakMap:Map,ns=0,is=2,jl=4,nh=0,Kx=1,Zm=2,L4=3,ip=4,P4=6,RL=5,cn=ns,Wn=null,$e=null,Qe=0,Fr=0,j4=1,Jm=2,Xx=3,wL=4,F8=5,qx=6,z4=7,I8=8,$m=9,In=Fr,Co=null,ap=!1,h_=!1,U8=!1,Lc=0,Ci=nh,sp=0,rp=0,H8=0,Ir=0,tg=0,Qx=null,mr=null,B4=!1,k4=0,DL=0,ML=300,Wx=1/0,G8=500,Zx=null,ta=null,op=null,F4=0,V8=1,Y8=2,OL=3,lp=0,NL=1,LL=2,PL=3,jL=4,I4=5,Ca=0,up=null,f_=null,zu=0,K8=0,X8=-0,q8=null,zL=null,BL=null,Bu=F4,kL=null,pH=50,Jx=0,Q8=null,W8=!1,U4=!1,mH=50,eg=0,$x=null,p_=!1,H4=null,FL=!1,IL=new Set,gH={},zl=null,m_=null,UL=!1;try{var HL=Object.preventExtensions({})}catch{UL=!0}var GL=!1,VL={},YL=null,KL=null,XL=null,qL=null,QL=null,WL=null,ZL=null,JL=null,$L=null,tP=null;return YL=function(a,r,g,D){r=e(a,r),r!==null&&(g=n(r.memoizedState,g,0,D),r.memoizedState=g,r.baseState=g,a.memoizedProps=Dn({},a.memoizedProps),g=Qa(a,2),g!==null&&ui(g,a,2))},KL=function(a,r,g){r=e(a,r),r!==null&&(g=o(r.memoizedState,g,0),r.memoizedState=g,r.baseState=g,a.memoizedProps=Dn({},a.memoizedProps),g=Qa(a,2),g!==null&&ui(g,a,2))},XL=function(a,r,g,D){r=e(a,r),r!==null&&(g=i(r.memoizedState,g,D),r.memoizedState=g,r.baseState=g,a.memoizedProps=Dn({},a.memoizedProps),g=Qa(a,2),g!==null&&ui(g,a,2))},qL=function(a,r,g){a.pendingProps=n(a.memoizedProps,r,0,g),a.alternate&&(a.alternate.pendingProps=a.pendingProps),r=Qa(a,2),r!==null&&ui(r,a,2)},QL=function(a,r){a.pendingProps=o(a.memoizedProps,r,0),a.alternate&&(a.alternate.pendingProps=a.pendingProps),r=Qa(a,2),r!==null&&ui(r,a,2)},WL=function(a,r,g){a.pendingProps=i(a.memoizedProps,r,g),a.alternate&&(a.alternate.pendingProps=a.pendingProps),r=Qa(a,2),r!==null&&ui(r,a,2)},ZL=function(a){var r=Qa(a,2);r!==null&&ui(r,a,2)},JL=function(a){var r=Q(),g=Qa(a,r);g!==null&&ui(g,a,r)},$L=function(a){c=a},tP=function(a){l=a},Je.attemptContinuousHydration=function(a){if(a.tag===13||a.tag===31){var r=Qa(a,67108864);r!==null&&ui(r,a,67108864),Lf(a,67108864)}},Je.attemptHydrationAtCurrentPriority=function(a){if(a.tag===13||a.tag===31){var r=or(a);r=pt(r);var g=Qa(a,r);g!==null&&ui(g,a,r),Lf(a,r)}},Je.attemptSynchronousHydration=function(a){switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var r=Z(a.pendingLanes);if(r!==0){for(a.pendingLanes|=2,a.entangledLanes|=2;r;){var g=1<<31-da(r);a.entanglements[1]|=g,r&=~g}gs(a),(cn&(is|jl))===ns&&(Wx=ln()+G8,bd(0,!1))}}break;case 31:case 13:r=Qa(a,2),r!==null&&ui(r,a,2),Em(),Lf(a,2)}},Je.batchedUpdates=function(a,r){return a(r)},Je.createComponentSelector=function(a){return{$$typeof:R4,value:a}},Je.createContainer=function(a,r,g,D,z,k,Y,J,ct,vt){return Pd(a,r,!1,null,g,D,k,null,Y,J,ct,vt)},Je.createHasPseudoClassSelector=function(a){return{$$typeof:w4,value:a}},Je.createHydrationContainer=function(a,r,g,D,z,k,Y,J,ct,vt,Mt,Nt,Bt,_e){return a=Pd(g,D,!0,a,z,k,J,_e,ct,vt,Mt,Nt),a.context=J3(null),g=a.current,D=or(g),D=pt(D),z=mu(D),z.callback=r??null,Ar(g,z,D),so(D,"hydrateRoot()",null),r=D,a.current.lanes=r,rt(a,r),gs(a),a},Je.createPortal=function(a,r,g){var D=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{ks(D);var z=!1}catch{z=!0}return z&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&D[Symbol.toStringTag]||D.constructor.name||"Object"),ks(D)),{$$typeof:Cu,key:D==null?null:""+D,children:a,containerInfo:r,implementation:g}},Je.createRoleSelector=function(a){return{$$typeof:D4,value:a}},Je.createTestNameSelector=function(a){return{$$typeof:M4,value:a}},Je.createTextSelector=function(a){return{$$typeof:O4,value:a}},Je.defaultOnCaughtError=function(a){var r=o_?"The above error occurred in the <"+o_+"> component.":"The above error occurred in one of your React components.",g="React will try to recreate this component tree from scratch using the error boundary you provided, "+((j8||"Anonymous")+".");typeof a=="object"&&a!==null&&typeof a.environmentName=="string"?kd("error",[`%o
271
+ Check the top-level render call using <`+D+">.");var Y="";g!=null&&a!==g&&(D=null,typeof g.tag=="number"?D=L(g):typeof g.name=="string"&&(D=g.name),D&&(Y=" It was passed a child from "+D+".")),oe(r,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',k,Y)})}}};var Qm=q0(!0),J7=q0(!1),Ix=1,Zd=2,Ol=[],n_=0,R8=0,$7=0,tL=1,eL=2,w8=3,np=!1,nL=!1,D8=null,M8=!1,i_=I(null),S4=I(0),To=I(null),Nl=null,a_=1,Ux=2,ha=I(0),x4=0,Ll=1,fr=2,Ao=4,pr=8,s_,iL=new Set,aL=new Set,O8=new Set,sL=new Set,Jd=0,Ne=null,Qn=null,xa=null,E4=!1,r_=!1,Wm=!1,T4=0,Hx=0,$d=null,cH=0,dH=25,Rt=null,Pl=null,th=-1,Gx=!1,Vx={readContext:kn,use:En,useCallback:xi,useContext:xi,useEffect:xi,useImperativeHandle:xi,useLayoutEffect:xi,useInsertionEffect:xi,useMemo:xi,useReducer:xi,useRef:xi,useState:xi,useDebugValue:xi,useDeferredValue:xi,useTransition:xi,useSyncExternalStore:xi,useId:xi,useHostTransitionStatus:xi,useFormState:xi,useActionState:xi,useOptimistic:xi,useMemoCache:xi,useCacheRefresh:xi};Vx.useEffectEvent=xi;var N8=null,rL=null,L8=null,oL=null,Nc=null,Pu=null,A4=null;N8={readContext:function(a){return kn(a)},use:En,useCallback:function(a,r){return Rt="useCallback",ke(),js(r),Gy(a,r)},useContext:function(a){return Rt="useContext",ke(),kn(a)},useEffect:function(a,r){return Rt="useEffect",ke(),js(r),zs(a,r)},useImperativeHandle:function(a,r,g){return Rt="useImperativeHandle",ke(),js(g),Hy(a,r,g)},useInsertionEffect:function(a,r){Rt="useInsertionEffect",ke(),js(r),vu(4,fr,a,r)},useLayoutEffect:function(a,r){return Rt="useLayoutEffect",ke(),js(r),yu(a,r)},useMemo:function(a,r){Rt="useMemo",ke(),js(r);var g=Ct.H;Ct.H=Nc;try{return Vy(a,r)}finally{Ct.H=g}},useReducer:function(a,r,g){Rt="useReducer",ke();var D=Ct.H;Ct.H=Nc;try{return jy(a,r,g)}finally{Ct.H=D}},useRef:function(a){return Rt="useRef",ke(),mo(a)},useState:function(a){Rt="useState",ke();var r=Ct.H;Ct.H=Nc;try{return Sf(a)}finally{Ct.H=r}},useDebugValue:function(){Rt="useDebugValue",ke()},useDeferredValue:function(a,r){return Rt="useDeferredValue",ke(),rm(a,r)},useTransition:function(){return Rt="useTransition",ke(),Ky()},useSyncExternalStore:function(a,r,g){return Rt="useSyncExternalStore",ke(),zy(a,r,g)},useId:function(){return Rt="useId",ke(),um()},useFormState:function(a,r){return Rt="useFormState",ke(),_f(),Li(a,r)},useActionState:function(a,r){return Rt="useActionState",ke(),Li(a,r)},useOptimistic:function(a){return Rt="useOptimistic",ke(),Fy(a)},useHostTransitionStatus:hc,useMemoCache:Ed,useCacheRefresh:function(){return Rt="useCacheRefresh",ke(),fc()},useEffectEvent:function(a){return Rt="useEffectEvent",ke(),uc(a)}},rL={readContext:function(a){return kn(a)},use:En,useCallback:function(a,r){return Rt="useCallback",Ht(),Gy(a,r)},useContext:function(a){return Rt="useContext",Ht(),kn(a)},useEffect:function(a,r){return Rt="useEffect",Ht(),zs(a,r)},useImperativeHandle:function(a,r,g){return Rt="useImperativeHandle",Ht(),Hy(a,r,g)},useInsertionEffect:function(a,r){Rt="useInsertionEffect",Ht(),vu(4,fr,a,r)},useLayoutEffect:function(a,r){return Rt="useLayoutEffect",Ht(),yu(a,r)},useMemo:function(a,r){Rt="useMemo",Ht();var g=Ct.H;Ct.H=Nc;try{return Vy(a,r)}finally{Ct.H=g}},useReducer:function(a,r,g){Rt="useReducer",Ht();var D=Ct.H;Ct.H=Nc;try{return jy(a,r,g)}finally{Ct.H=D}},useRef:function(a){return Rt="useRef",Ht(),mo(a)},useState:function(a){Rt="useState",Ht();var r=Ct.H;Ct.H=Nc;try{return Sf(a)}finally{Ct.H=r}},useDebugValue:function(){Rt="useDebugValue",Ht()},useDeferredValue:function(a,r){return Rt="useDeferredValue",Ht(),rm(a,r)},useTransition:function(){return Rt="useTransition",Ht(),Ky()},useSyncExternalStore:function(a,r,g){return Rt="useSyncExternalStore",Ht(),zy(a,r,g)},useId:function(){return Rt="useId",Ht(),um()},useActionState:function(a,r){return Rt="useActionState",Ht(),Li(a,r)},useFormState:function(a,r){return Rt="useFormState",Ht(),_f(),Li(a,r)},useOptimistic:function(a){return Rt="useOptimistic",Ht(),Fy(a)},useHostTransitionStatus:hc,useMemoCache:Ed,useCacheRefresh:function(){return Rt="useCacheRefresh",Ht(),fc()},useEffectEvent:function(a){return Rt="useEffectEvent",Ht(),uc(a)}},L8={readContext:function(a){return kn(a)},use:En,useCallback:function(a,r){return Rt="useCallback",Ht(),Td(a,r)},useContext:function(a){return Rt="useContext",Ht(),kn(a)},useEffect:function(a,r){Rt="useEffect",Ht(),Za(2048,pr,a,r)},useImperativeHandle:function(a,r,g){return Rt="useImperativeHandle",Ht(),dc(a,r,g)},useInsertionEffect:function(a,r){return Rt="useInsertionEffect",Ht(),Za(4,fr,a,r)},useLayoutEffect:function(a,r){return Rt="useLayoutEffect",Ht(),Za(4,Ao,a,r)},useMemo:function(a,r){Rt="useMemo",Ht();var g=Ct.H;Ct.H=Pu;try{return xf(a,r)}finally{Ct.H=g}},useReducer:function(a,r,g){Rt="useReducer",Ht();var D=Ct.H;Ct.H=Pu;try{return hl(a,r,g)}finally{Ct.H=D}},useRef:function(){return Rt="useRef",Ht(),Cn().memoizedState},useState:function(){Rt="useState",Ht();var a=Ct.H;Ct.H=Pu;try{return hl(fo)}finally{Ct.H=a}},useDebugValue:function(){Rt="useDebugValue",Ht()},useDeferredValue:function(a,r){return Rt="useDeferredValue",Ht(),Yy(a,r)},useTransition:function(){return Rt="useTransition",Ht(),a3()},useSyncExternalStore:function(a,r,g){return Rt="useSyncExternalStore",Ht(),lc(a,r,g)},useId:function(){return Rt="useId",Ht(),Cn().memoizedState},useFormState:function(a){return Rt="useFormState",Ht(),_f(),sm(a)},useActionState:function(a){return Rt="useActionState",Ht(),sm(a)},useOptimistic:function(a,r){return Rt="useOptimistic",Ht(),O2(a,r)},useHostTransitionStatus:hc,useMemoCache:Ed,useCacheRefresh:function(){return Rt="useCacheRefresh",Ht(),Cn().memoizedState},useEffectEvent:function(a){return Rt="useEffectEvent",Ht(),cc(a)}},oL={readContext:function(a){return kn(a)},use:En,useCallback:function(a,r){return Rt="useCallback",Ht(),Td(a,r)},useContext:function(a){return Rt="useContext",Ht(),kn(a)},useEffect:function(a,r){Rt="useEffect",Ht(),Za(2048,pr,a,r)},useImperativeHandle:function(a,r,g){return Rt="useImperativeHandle",Ht(),dc(a,r,g)},useInsertionEffect:function(a,r){return Rt="useInsertionEffect",Ht(),Za(4,fr,a,r)},useLayoutEffect:function(a,r){return Rt="useLayoutEffect",Ht(),Za(4,Ao,a,r)},useMemo:function(a,r){Rt="useMemo",Ht();var g=Ct.H;Ct.H=A4;try{return xf(a,r)}finally{Ct.H=g}},useReducer:function(a,r,g){Rt="useReducer",Ht();var D=Ct.H;Ct.H=A4;try{return bf(a,r,g)}finally{Ct.H=D}},useRef:function(){return Rt="useRef",Ht(),Cn().memoizedState},useState:function(){Rt="useState",Ht();var a=Ct.H;Ct.H=A4;try{return bf(fo)}finally{Ct.H=a}},useDebugValue:function(){Rt="useDebugValue",Ht()},useDeferredValue:function(a,r){return Rt="useDeferredValue",Ht(),j2(a,r)},useTransition:function(){return Rt="useTransition",Ht(),_u()},useSyncExternalStore:function(a,r,g){return Rt="useSyncExternalStore",Ht(),lc(a,r,g)},useId:function(){return Rt="useId",Ht(),Cn().memoizedState},useFormState:function(a){return Rt="useFormState",Ht(),_f(),Rr(a)},useActionState:function(a){return Rt="useActionState",Ht(),Rr(a)},useOptimistic:function(a,r){return Rt="useOptimistic",Ht(),N2(a,r)},useHostTransitionStatus:hc,useMemoCache:Ed,useCacheRefresh:function(){return Rt="useCacheRefresh",Ht(),Cn().memoizedState},useEffectEvent:function(a){return Rt="useEffectEvent",Ht(),cc(a)}},Nc={readContext:function(a){return S(),kn(a)},use:function(a){return v(),En(a)},useCallback:function(a,r){return Rt="useCallback",v(),ke(),Gy(a,r)},useContext:function(a){return Rt="useContext",v(),ke(),kn(a)},useEffect:function(a,r){return Rt="useEffect",v(),ke(),zs(a,r)},useImperativeHandle:function(a,r,g){return Rt="useImperativeHandle",v(),ke(),Hy(a,r,g)},useInsertionEffect:function(a,r){Rt="useInsertionEffect",v(),ke(),vu(4,fr,a,r)},useLayoutEffect:function(a,r){return Rt="useLayoutEffect",v(),ke(),yu(a,r)},useMemo:function(a,r){Rt="useMemo",v(),ke();var g=Ct.H;Ct.H=Nc;try{return Vy(a,r)}finally{Ct.H=g}},useReducer:function(a,r,g){Rt="useReducer",v(),ke();var D=Ct.H;Ct.H=Nc;try{return jy(a,r,g)}finally{Ct.H=D}},useRef:function(a){return Rt="useRef",v(),ke(),mo(a)},useState:function(a){Rt="useState",v(),ke();var r=Ct.H;Ct.H=Nc;try{return Sf(a)}finally{Ct.H=r}},useDebugValue:function(){Rt="useDebugValue",v(),ke()},useDeferredValue:function(a,r){return Rt="useDeferredValue",v(),ke(),rm(a,r)},useTransition:function(){return Rt="useTransition",v(),ke(),Ky()},useSyncExternalStore:function(a,r,g){return Rt="useSyncExternalStore",v(),ke(),zy(a,r,g)},useId:function(){return Rt="useId",v(),ke(),um()},useFormState:function(a,r){return Rt="useFormState",v(),ke(),Li(a,r)},useActionState:function(a,r){return Rt="useActionState",v(),ke(),Li(a,r)},useOptimistic:function(a){return Rt="useOptimistic",v(),ke(),Fy(a)},useMemoCache:function(a){return v(),Ed(a)},useHostTransitionStatus:hc,useCacheRefresh:function(){return Rt="useCacheRefresh",ke(),fc()},useEffectEvent:function(a){return Rt="useEffectEvent",v(),ke(),uc(a)}},Pu={readContext:function(a){return S(),kn(a)},use:function(a){return v(),En(a)},useCallback:function(a,r){return Rt="useCallback",v(),Ht(),Td(a,r)},useContext:function(a){return Rt="useContext",v(),Ht(),kn(a)},useEffect:function(a,r){Rt="useEffect",v(),Ht(),Za(2048,pr,a,r)},useImperativeHandle:function(a,r,g){return Rt="useImperativeHandle",v(),Ht(),dc(a,r,g)},useInsertionEffect:function(a,r){return Rt="useInsertionEffect",v(),Ht(),Za(4,fr,a,r)},useLayoutEffect:function(a,r){return Rt="useLayoutEffect",v(),Ht(),Za(4,Ao,a,r)},useMemo:function(a,r){Rt="useMemo",v(),Ht();var g=Ct.H;Ct.H=Pu;try{return xf(a,r)}finally{Ct.H=g}},useReducer:function(a,r,g){Rt="useReducer",v(),Ht();var D=Ct.H;Ct.H=Pu;try{return hl(a,r,g)}finally{Ct.H=D}},useRef:function(){return Rt="useRef",v(),Ht(),Cn().memoizedState},useState:function(){Rt="useState",v(),Ht();var a=Ct.H;Ct.H=Pu;try{return hl(fo)}finally{Ct.H=a}},useDebugValue:function(){Rt="useDebugValue",v(),Ht()},useDeferredValue:function(a,r){return Rt="useDeferredValue",v(),Ht(),Yy(a,r)},useTransition:function(){return Rt="useTransition",v(),Ht(),a3()},useSyncExternalStore:function(a,r,g){return Rt="useSyncExternalStore",v(),Ht(),lc(a,r,g)},useId:function(){return Rt="useId",v(),Ht(),Cn().memoizedState},useFormState:function(a){return Rt="useFormState",v(),Ht(),sm(a)},useActionState:function(a){return Rt="useActionState",v(),Ht(),sm(a)},useOptimistic:function(a,r){return Rt="useOptimistic",v(),Ht(),O2(a,r)},useMemoCache:function(a){return v(),Ed(a)},useHostTransitionStatus:hc,useCacheRefresh:function(){return Rt="useCacheRefresh",Ht(),Cn().memoizedState},useEffectEvent:function(a){return Rt="useEffectEvent",v(),Ht(),cc(a)}},A4={readContext:function(a){return S(),kn(a)},use:function(a){return v(),En(a)},useCallback:function(a,r){return Rt="useCallback",v(),Ht(),Td(a,r)},useContext:function(a){return Rt="useContext",v(),Ht(),kn(a)},useEffect:function(a,r){Rt="useEffect",v(),Ht(),Za(2048,pr,a,r)},useImperativeHandle:function(a,r,g){return Rt="useImperativeHandle",v(),Ht(),dc(a,r,g)},useInsertionEffect:function(a,r){return Rt="useInsertionEffect",v(),Ht(),Za(4,fr,a,r)},useLayoutEffect:function(a,r){return Rt="useLayoutEffect",v(),Ht(),Za(4,Ao,a,r)},useMemo:function(a,r){Rt="useMemo",v(),Ht();var g=Ct.H;Ct.H=Pu;try{return xf(a,r)}finally{Ct.H=g}},useReducer:function(a,r,g){Rt="useReducer",v(),Ht();var D=Ct.H;Ct.H=Pu;try{return bf(a,r,g)}finally{Ct.H=D}},useRef:function(){return Rt="useRef",v(),Ht(),Cn().memoizedState},useState:function(){Rt="useState",v(),Ht();var a=Ct.H;Ct.H=Pu;try{return bf(fo)}finally{Ct.H=a}},useDebugValue:function(){Rt="useDebugValue",v(),Ht()},useDeferredValue:function(a,r){return Rt="useDeferredValue",v(),Ht(),j2(a,r)},useTransition:function(){return Rt="useTransition",v(),Ht(),_u()},useSyncExternalStore:function(a,r,g){return Rt="useSyncExternalStore",v(),Ht(),lc(a,r,g)},useId:function(){return Rt="useId",v(),Ht(),Cn().memoizedState},useFormState:function(a){return Rt="useFormState",v(),Ht(),Rr(a)},useActionState:function(a){return Rt="useActionState",v(),Ht(),Rr(a)},useOptimistic:function(a,r){return Rt="useOptimistic",v(),Ht(),N2(a,r)},useMemoCache:function(a){return v(),Ed(a)},useHostTransitionStatus:hc,useCacheRefresh:function(){return Rt="useCacheRefresh",Ht(),Cn().memoizedState},useEffectEvent:function(a){return Rt="useEffectEvent",v(),Ht(),cc(a)}};var lL={},uL=new Set,cL=new Set,dL=new Set,hL=new Set,fL=new Set,pL=new Set,mL=new Set,gL=new Set,vL=new Set,yL=new Set;Object.freeze(lL);var P8={enqueueSetState:function(a,r,g){a=a._reactInternals;var D=or(a),z=mu(D);z.payload=r,g!=null&&(k2(g),z.callback=g),r=Ar(a,z,D),r!==null&&(so(D,"this.setState()",a),ui(r,a,D),vf(r,a,D))},enqueueReplaceState:function(a,r,g){a=a._reactInternals;var D=or(a),z=mu(D);z.tag=tL,z.payload=r,g!=null&&(k2(g),z.callback=g),r=Ar(a,z,D),r!==null&&(so(D,"this.replaceState()",a),ui(r,a,D),vf(r,a,D))},enqueueForceUpdate:function(a,r){a=a._reactInternals;var g=or(a),D=mu(g);D.tag=eL,r!=null&&(k2(r),D.callback=r),r=Ar(a,D,g),r!==null&&(so(g,"this.forceUpdate()",a),ui(r,a,g),vf(r,a,g))}},o_=null,j8=null,z8=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Ea=!1,_L={},bL={},SL={},xL={},l_=!1,EL={},C4={},B8={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},TL=!1,AL=null;AL=new Set;var eh=!1,Ta=!1,k8=!1,CL=typeof WeakSet=="function"?WeakSet:Set,es=null,u_=null,c_=null,Aa=null,kr=!1,ju=null,Fa=!1,d_=8192,hH={getCacheForType:function(a){var r=kn(Fi),g=r.data.get(a);return g===void 0&&(g=a(),r.data.set(a,g)),g},cacheSignal:function(){return kn(Fi).controller.signal},getOwner:function(){return Kd}},R4=0,w4=1,D4=2,M4=3,O4=4;if(typeof Symbol=="function"&&Symbol.for){var Yx=Symbol.for;R4=Yx("selector.component"),w4=Yx("selector.has_pseudo_class"),D4=Yx("selector.role"),M4=Yx("selector.test_id"),O4=Yx("selector.text")}var N4=[],fH=typeof WeakMap=="function"?WeakMap:Map,ns=0,is=2,jl=4,nh=0,Kx=1,Zm=2,L4=3,ip=4,P4=6,RL=5,cn=ns,Wn=null,$e=null,Qe=0,Fr=0,j4=1,Jm=2,Xx=3,wL=4,F8=5,qx=6,z4=7,I8=8,$m=9,In=Fr,Co=null,ap=!1,h_=!1,U8=!1,Lc=0,Ci=nh,sp=0,rp=0,H8=0,Ir=0,tg=0,Qx=null,mr=null,B4=!1,k4=0,DL=0,ML=300,Wx=1/0,G8=500,Zx=null,ta=null,op=null,F4=0,V8=1,Y8=2,OL=3,lp=0,NL=1,LL=2,PL=3,jL=4,I4=5,Ca=0,up=null,f_=null,zu=0,K8=0,X8=-0,q8=null,zL=null,BL=null,Bu=F4,kL=null,pH=50,Jx=0,Q8=null,W8=!1,U4=!1,mH=50,eg=0,$x=null,p_=!1,H4=null,FL=!1,IL=new Set,gH={},zl=null,m_=null,UL=!1;try{var HL=Object.preventExtensions({})}catch{UL=!0}var GL=!1,VL={},YL=null,KL=null,XL=null,qL=null,QL=null,WL=null,ZL=null,JL=null,$L=null,tP=null;return YL=function(a,r,g,D){r=e(a,r),r!==null&&(g=n(r.memoizedState,g,0,D),r.memoizedState=g,r.baseState=g,a.memoizedProps=Dn({},a.memoizedProps),g=Qa(a,2),g!==null&&ui(g,a,2))},KL=function(a,r,g){r=e(a,r),r!==null&&(g=o(r.memoizedState,g,0),r.memoizedState=g,r.baseState=g,a.memoizedProps=Dn({},a.memoizedProps),g=Qa(a,2),g!==null&&ui(g,a,2))},XL=function(a,r,g,D){r=e(a,r),r!==null&&(g=i(r.memoizedState,g,D),r.memoizedState=g,r.baseState=g,a.memoizedProps=Dn({},a.memoizedProps),g=Qa(a,2),g!==null&&ui(g,a,2))},qL=function(a,r,g){a.pendingProps=n(a.memoizedProps,r,0,g),a.alternate&&(a.alternate.pendingProps=a.pendingProps),r=Qa(a,2),r!==null&&ui(r,a,2)},QL=function(a,r){a.pendingProps=o(a.memoizedProps,r,0),a.alternate&&(a.alternate.pendingProps=a.pendingProps),r=Qa(a,2),r!==null&&ui(r,a,2)},WL=function(a,r,g){a.pendingProps=i(a.memoizedProps,r,g),a.alternate&&(a.alternate.pendingProps=a.pendingProps),r=Qa(a,2),r!==null&&ui(r,a,2)},ZL=function(a){var r=Qa(a,2);r!==null&&ui(r,a,2)},JL=function(a){var r=Q(),g=Qa(a,r);g!==null&&ui(g,a,r)},$L=function(a){c=a},tP=function(a){l=a},Je.attemptContinuousHydration=function(a){if(a.tag===13||a.tag===31){var r=Qa(a,67108864);r!==null&&ui(r,a,67108864),Lf(a,67108864)}},Je.attemptHydrationAtCurrentPriority=function(a){if(a.tag===13||a.tag===31){var r=or(a);r=pt(r);var g=Qa(a,r);g!==null&&ui(g,a,r),Lf(a,r)}},Je.attemptSynchronousHydration=function(a){switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var r=Z(a.pendingLanes);if(r!==0){for(a.pendingLanes|=2,a.entangledLanes|=2;r;){var g=1<<31-da(r);a.entanglements[1]|=g,r&=~g}gs(a),(cn&(is|jl))===ns&&(Wx=ln()+G8,bd(0,!1))}}break;case 31:case 13:r=Qa(a,2),r!==null&&ui(r,a,2),Em(),Lf(a,2)}},Je.batchedUpdates=function(a,r){return a(r)},Je.createComponentSelector=function(a){return{$$typeof:R4,value:a}},Je.createContainer=function(a,r,g,D,z,k,Y,J,ct,vt){return Pd(a,r,!1,null,g,D,k,null,Y,J,ct,vt)},Je.createHasPseudoClassSelector=function(a){return{$$typeof:w4,value:a}},Je.createHydrationContainer=function(a,r,g,D,z,k,Y,J,ct,vt,Mt,Nt,kt,_e){return a=Pd(g,D,!0,a,z,k,J,_e,ct,vt,Mt,Nt),a.context=J3(null),g=a.current,D=or(g),D=pt(D),z=mu(D),z.callback=r??null,Ar(g,z,D),so(D,"hydrateRoot()",null),r=D,a.current.lanes=r,rt(a,r),gs(a),a},Je.createPortal=function(a,r,g){var D=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{ks(D);var z=!1}catch{z=!0}return z&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&D[Symbol.toStringTag]||D.constructor.name||"Object"),ks(D)),{$$typeof:Cu,key:D==null?null:""+D,children:a,containerInfo:r,implementation:g}},Je.createRoleSelector=function(a){return{$$typeof:D4,value:a}},Je.createTestNameSelector=function(a){return{$$typeof:M4,value:a}},Je.createTextSelector=function(a){return{$$typeof:O4,value:a}},Je.defaultOnCaughtError=function(a){var r=o_?"The above error occurred in the <"+o_+"> component.":"The above error occurred in one of your React components.",g="React will try to recreate this component tree from scratch using the error boundary you provided, "+((j8||"Anonymous")+".");typeof a=="object"&&a!==null&&typeof a.environmentName=="string"?kd("error",[`%o
272
272
 
273
273
  %s
274
274
 
@@ -282,7 +282,7 @@ Check the top-level render call using <`+D+">.");var Y="";g!=null&&a!==g&&(D=nul
282
282
 
283
283
  %s
284
284
  `,o_?"An error occurred in the <"+o_+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
285
- Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)},Je.deferredUpdates=function(a){var r=Ct.T,g=Us();try{return zi(32),Ct.T=null,a()}finally{zi(g),Ct.T=r}},Je.discreteUpdates=function(a,r,g,D,z){var k=Ct.T,Y=Us();try{return zi(2),Ct.T=null,a(r,g,D,z)}finally{zi(Y),Ct.T=k,cn===ns&&(Wx=ln()+G8)}},Je.findAllNodes=d1,Je.findBoundingRects=function(a,r){if(!So)throw Error("Test selector API is not supported by this renderer.");r=d1(a,r),a=[];for(var g=0;g<r.length;g++)a.push(Sc(r[g]));for(r=a.length-1;0<r;r--){g=a[r];for(var D=g.x,z=D+g.width,k=g.y,Y=k+g.height,J=r-1;0<=J;J--)if(r!==J){var ct=a[J],vt=ct.x,Mt=vt+ct.width,Nt=ct.y,Bt=Nt+ct.height;if(D>=vt&&k>=Nt&&z<=Mt&&Y<=Bt){a.splice(r,1);break}else if(D!==vt||g.width!==ct.width||Bt<k||Nt>Y){if(!(k!==Nt||g.height!==ct.height||Mt<D||vt>z)){vt>D&&(ct.width+=vt-D,ct.x=D),Mt<z&&(ct.width=z-vt),a.splice(r,1);break}}else{Nt>k&&(ct.height+=Nt-k,ct.y=k),Bt<Y&&(ct.height=Y-Nt),a.splice(r,1);break}}}return a},Je.findHostInstance=function(a){var r=a._reactInternals;if(r===void 0)throw typeof a.render=="function"?Error("Unable to find node on an unmounted component."):(a=Object.keys(a).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+a));return a=R(r),a===null?null:Ss(a.stateNode)},Je.findHostInstanceWithNoPortals=function(a){return a=C(a),a=a!==null?M(a):null,a===null?null:Ss(a.stateNode)},Je.findHostInstanceWithWarning=function(a,r){var g=a._reactInternals;if(g===void 0)throw typeof a.render=="function"?Error("Unable to find node on an unmounted component."):(a=Object.keys(a).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+a));if(a=R(g),a===null)return null;if(a.mode&8){var D=L(g)||"Component";VL[D]||(VL[D]=!0,oe(a,function(){g.mode&8?console.error("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://react.dev/link/strict-mode-find-node",r,r,D):console.error("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://react.dev/link/strict-mode-find-node",r,r,D)}))}return Ss(a.stateNode)},Je.flushPassiveEffects=Mf,Je.flushSyncFromReconciler=function(a){var r=cn;cn|=1;var g=Ct.T,D=Us();try{if(zi(2),Ct.T=null,a)return a()}finally{zi(D),Ct.T=g,cn=r,(cn&(is|jl))===ns&&bd(0,!1)}},Je.flushSyncWork=Em,Je.focusWithin=function(a,r){if(!So)throw Error("Test selector API is not supported by this renderer.");for(a=ix(a),r=w3(a,r),r=Array.from(r),a=0;a<r.length;){var g=r[a++],D=g.tag;if(!Tl(g)){if((D===5||D===26||D===27)&&lr(g.stateNode))return!0;for(g=g.child;g!==null;)r.push(g),g=g.sibling}}return!1},Je.getFindAllNodesFailureDescription=function(a,r){if(!So)throw Error("Test selector API is not supported by this renderer.");var g=0,D=[];a=[ix(a),0];for(var z=0;z<a.length;){var k=a[z++],Y=k.tag,J=a[z++],ct=r[J];if((Y!==5&&Y!==26&&Y!==27||!Tl(k))&&(ax(k,ct)&&(D.push(c1(ct)),J++,J>g&&(g=J)),J<r.length))for(k=k.child;k!==null;)a.push(k,J),k=k.sibling}if(g<r.length){for(a=[];g<r.length;g++)a.push(c1(r[g]));return`findAllNodes was able to match part of the selector:
285
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)},Je.deferredUpdates=function(a){var r=Ct.T,g=Us();try{return zi(32),Ct.T=null,a()}finally{zi(g),Ct.T=r}},Je.discreteUpdates=function(a,r,g,D,z){var k=Ct.T,Y=Us();try{return zi(2),Ct.T=null,a(r,g,D,z)}finally{zi(Y),Ct.T=k,cn===ns&&(Wx=ln()+G8)}},Je.findAllNodes=d1,Je.findBoundingRects=function(a,r){if(!So)throw Error("Test selector API is not supported by this renderer.");r=d1(a,r),a=[];for(var g=0;g<r.length;g++)a.push(Sc(r[g]));for(r=a.length-1;0<r;r--){g=a[r];for(var D=g.x,z=D+g.width,k=g.y,Y=k+g.height,J=r-1;0<=J;J--)if(r!==J){var ct=a[J],vt=ct.x,Mt=vt+ct.width,Nt=ct.y,kt=Nt+ct.height;if(D>=vt&&k>=Nt&&z<=Mt&&Y<=kt){a.splice(r,1);break}else if(D!==vt||g.width!==ct.width||kt<k||Nt>Y){if(!(k!==Nt||g.height!==ct.height||Mt<D||vt>z)){vt>D&&(ct.width+=vt-D,ct.x=D),Mt<z&&(ct.width=z-vt),a.splice(r,1);break}}else{Nt>k&&(ct.height+=Nt-k,ct.y=k),kt<Y&&(ct.height=Y-Nt),a.splice(r,1);break}}}return a},Je.findHostInstance=function(a){var r=a._reactInternals;if(r===void 0)throw typeof a.render=="function"?Error("Unable to find node on an unmounted component."):(a=Object.keys(a).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+a));return a=R(r),a===null?null:Ss(a.stateNode)},Je.findHostInstanceWithNoPortals=function(a){return a=C(a),a=a!==null?M(a):null,a===null?null:Ss(a.stateNode)},Je.findHostInstanceWithWarning=function(a,r){var g=a._reactInternals;if(g===void 0)throw typeof a.render=="function"?Error("Unable to find node on an unmounted component."):(a=Object.keys(a).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+a));if(a=R(g),a===null)return null;if(a.mode&8){var D=L(g)||"Component";VL[D]||(VL[D]=!0,oe(a,function(){g.mode&8?console.error("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://react.dev/link/strict-mode-find-node",r,r,D):console.error("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://react.dev/link/strict-mode-find-node",r,r,D)}))}return Ss(a.stateNode)},Je.flushPassiveEffects=Mf,Je.flushSyncFromReconciler=function(a){var r=cn;cn|=1;var g=Ct.T,D=Us();try{if(zi(2),Ct.T=null,a)return a()}finally{zi(D),Ct.T=g,cn=r,(cn&(is|jl))===ns&&bd(0,!1)}},Je.flushSyncWork=Em,Je.focusWithin=function(a,r){if(!So)throw Error("Test selector API is not supported by this renderer.");for(a=ix(a),r=w3(a,r),r=Array.from(r),a=0;a<r.length;){var g=r[a++],D=g.tag;if(!Tl(g)){if((D===5||D===26||D===27)&&lr(g.stateNode))return!0;for(g=g.child;g!==null;)r.push(g),g=g.sibling}}return!1},Je.getFindAllNodesFailureDescription=function(a,r){if(!So)throw Error("Test selector API is not supported by this renderer.");var g=0,D=[];a=[ix(a),0];for(var z=0;z<a.length;){var k=a[z++],Y=k.tag,J=a[z++],ct=r[J];if((Y!==5&&Y!==26&&Y!==27||!Tl(k))&&(ax(k,ct)&&(D.push(c1(ct)),J++,J>g&&(g=J)),J<r.length))for(k=k.child;k!==null;)a.push(k,J),k=k.sibling}if(g<r.length){for(a=[];g<r.length;g++)a.push(c1(r[g]));return`findAllNodes was able to match part of the selector:
286
286
  `+(D.join(" > ")+`
287
287
 
288
288
  No matching component was found for:
@@ -309,7 +309,7 @@ For more info see: https://github.com/konvajs/react-konva/issues/256
309
309
  `,RZ=`ReactKonva: You are using "zIndex" attribute for a Konva node.
310
310
  react-konva may get confused with ordering. Just define correct order of elements in your render function of a component.
311
311
  For more info see: https://github.com/konvajs/react-konva/issues/194
312
- `,wZ={};function kD(u,t,e=wZ){if(!ez&&"zIndex"in t&&(console.warn(RZ),ez=!0),!nz&&t.draggable){var n=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;n&&!i&&(console.warn(CZ),nz=!0)}for(var s in e)if(!tz[s]){var o=s.slice(0,2)==="on",l=e[s]!==t[s];if(o&&l){var c=s.substr(2).toLowerCase();c.substr(0,7)==="content"&&(c="content"+c.substr(7,1).toUpperCase()+c.substr(8)),u.off(c,e[s])}var d=!t.hasOwnProperty(s);d&&u.setAttr(s,void 0)}var f=t._useStrictMode,m={},_=!1;const v={};for(var s in t)if(!tz[s]){var o=s.slice(0,2)==="on",S=e[s]!==t[s];if(o&&S){var c=s.substr(2).toLowerCase();c.substr(0,7)==="content"&&(c="content"+c.substr(7,1).toUpperCase()+c.substr(8)),t[s]&&(v[c]=t[s])}!o&&(t[s]!==e[s]||f&&t[s]!==u.getAttr(s))&&(_=!0,m[s]=t[s])}_&&(u.setAttrs(m),N0(u));for(var c in v)u.off(c+R5),u.on(c+R5,v[c])}function N0(u){if(!sn.Konva.autoDrawEnabled){var t=u.getLayer()||u.getStage();t&&t.batchDraw()}}var DM=Y9();const bI={},DZ={};C5.Node.prototype._applyProps=kD;let SI=BD.DefaultEventPriority;function MZ(u,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}u.add(t),N0(u)}function OZ(u,t,e){let n=C5[u];n||(console.error(`Konva has no node with the type ${u}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${u}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),n=C5.Group);const i={},s={};for(var o in t)if(o!=="ref"){var l=o.slice(0,2)==="on";l?s[o]=t[o]:i[o]=t[o]}const c=new n(i);return kD(c,s),c}function NZ(u,t,e){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${u}"`)}function LZ(u,t,e){return!1}function PZ(u){return u}function jZ(){return null}function zZ(){return null}function BZ(u,t,e,n){return DZ}function kZ(){}function FZ(u){}function IZ(u,t){return!1}function UZ(){return bI}function HZ(){return bI}const GZ=setTimeout,VZ=clearTimeout,YZ=!0,KZ=u=>{u()},XZ=-1;function qZ(u,t){return!1}const QZ=!1,WZ=!1,ZZ=!0,JZ=!1,$Z=!1;function tJ(u,t){t.parent===u?t.moveToTop():u.add(t),N0(u)}function eJ(u,t){t.parent===u?t.moveToTop():u.add(t),N0(u)}function xI(u,t,e){t._remove(),u.add(t),t.setZIndex(e.getZIndex()),N0(u)}function nJ(u,t,e){xI(u,t,e)}function iJ(u,t){t.destroy(),t.off(R5),N0(u)}function aJ(u,t){t.destroy(),t.off(R5),N0(u)}function sJ(u,t,e){console.error(`Text components are not yet supported in ReactKonva. You text is: "${e}"`)}function rJ(u,t,e){}function oJ(u,t,e,n){kD(u,n,e)}function lJ(u){u.hide(),N0(u)}function uJ(u){}function cJ(u,t){(t.visible==null||t.visible)&&u.show()}function dJ(u,t){}function hJ(u){}function fJ(){}function pJ(){return null}function mJ(){}function gJ(){}function vJ(){return BD.DefaultEventPriority}function yJ(){}function _J(){return null}function bJ(u){SI=u}function SJ(){return SI}function xJ(){return BD.DiscreteEventPriority}function EJ(){return!1}function TJ(){}function AJ(){return null}function CJ(){return-1.1}function RJ(){}function wJ(){return!1}function DJ(){return!0}function MJ(){}function OJ(){}function NJ(){return null}const LJ=null,PJ=G.createContext(null);function jJ(){}const zJ=Object.freeze(Object.defineProperty({__proto__:null,HostTransitionContext:PJ,NotPendingTransition:LJ,afterActiveInstanceBlur:gJ,appendChild:tJ,appendChildToContainer:eJ,appendInitialChild:MZ,beforeActiveInstanceBlur:mJ,cancelTimeout:VZ,clearContainer:hJ,commitMount:rJ,commitTextUpdate:sJ,commitUpdate:oJ,createInstance:OZ,createTextInstance:NZ,detachDeletedInstance:fJ,finalizeInitialChildren:LZ,getChildHostContext:HZ,getCurrentEventPriority:vJ,getCurrentUpdatePriority:SJ,getInstanceFromNode:pJ,getInstanceFromScope:_J,getPublicInstance:PZ,getRootHostContext:UZ,hideInstance:lJ,hideTextInstance:uJ,idlePriority:DM.unstable_IdlePriority,insertBefore:xI,insertInContainerBefore:nJ,isPrimaryRenderer:QZ,maySuspendCommit:wJ,noTimeout:XZ,now:DM.unstable_now,preloadInstance:DJ,prepareForCommit:jZ,preparePortalMount:zZ,prepareScopeUpdate:yJ,prepareUpdate:BZ,removeChild:iJ,removeChildFromContainer:aJ,requestPostPaintCallback:RJ,resetAfterCommit:kZ,resetFormInstance:jJ,resetTextContent:FZ,resolveEventTimeStamp:CJ,resolveEventType:AJ,resolveUpdatePriority:xJ,run:DM.unstable_runWithPriority,scheduleMicrotask:KZ,scheduleTimeout:GZ,setCurrentUpdatePriority:bJ,shouldAttemptEagerTransition:EJ,shouldDeprioritizeSubtree:IZ,shouldSetTextContent:qZ,startSuspendingCommit:MJ,supportsHydration:$Z,supportsMicrotasks:YZ,supportsMutation:ZZ,supportsPersistence:JZ,suspendInstance:OJ,trackSchedulerEvent:TJ,unhideInstance:cJ,unhideTextInstance:dJ,waitForCommitToBeReady:NJ,warnsIfNotActing:WZ},Symbol.toStringTag,{value:"Module"}));function EI(u,t,e){if(!u)return;if(e(u)===!0)return u;let n=t?u.return:u.child;for(;n;){const i=EI(n,t,e);if(i)return i;n=t?null:n.sibling}}function TI(u){try{return Object.defineProperties(u,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return u}}const K9=TI(eu.createContext(null));class AI extends eu.Component{render(){return eu.createElement(K9.Provider,{value:this._reactInternals},this.props.children)}}function BJ(){const u=eu.useContext(K9);if(u===null)throw new Error("its-fine: useFiber must be called within a <FiberProvider />!");const t=eu.useId();return eu.useMemo(()=>{for(const e of[u,u==null?void 0:u.alternate]){if(!e)continue;const n=EI(e,!1,i=>{let s=i.memoizedState;for(;s;){if(s.memoizedState===t)return!0;s=s.next}});if(n)return n}},[u,t])}const kJ=Symbol.for("react.context"),FJ=u=>u!==null&&typeof u=="object"&&"$$typeof"in u&&u.$$typeof===kJ;function IJ(){const u=BJ(),[t]=eu.useState(()=>new Map);t.clear();let e=u;for(;e;){const n=e.type;FJ(n)&&n!==K9&&!t.has(n)&&t.set(n,eu.use(TI(n))),e=e.return}return t}function CI(){const u=IJ();return eu.useMemo(()=>Array.from(u.keys()).reduce((t,e)=>n=>eu.createElement(t,null,eu.createElement(e.Provider,{...n,value:u.get(e)})),t=>eu.createElement(AI,{...t})),[u])}if(G.version.indexOf("19")===-1)throw new Error("react-konva version 19 is only compatible with React 19. Make sure to have the last version of react-konva and react or downgrade react-konva to version 18.");function UJ(u){const t=G.useRef({});return G.useLayoutEffect(()=>{t.current=u}),G.useLayoutEffect(()=>()=>{t.current={}},[]),t.current}const HJ=()=>{const u=G.useRef(0);return G.useMemo(()=>{u.current++},[]),u.current>1},GJ=u=>{const t=G.useRef(null),e=G.useRef(null),n=G.useRef(null),i=UJ(u),s=CI(),o=G.useRef(null),l=f=>{const{forwardedRef:m}=u;m&&(typeof m=="function"?m(f):m.current=f)},c=HJ(),d=()=>{var f;l(null),lE.updateContainer(null,n.current,null),(f=e.current)==null||f.destroy(),e.current=null};return G.useLayoutEffect(()=>(o.current&&(clearTimeout(o.current),o.current=null),e.current?l(e.current):(e.current=new C5.Stage({width:u.width,height:u.height,container:t.current}),l(e.current),n.current=lE.createContainer(e.current,BD.ConcurrentRoot,null,!1,null,"",console.error,console.error,console.error,null),lE.updateContainer(G.createElement(s,{},u.children),n.current,null,()=>{})),()=>{c?o.current=setTimeout(d,0):d()}),[]),G.useLayoutEffect(()=>{l(e.current),kD(e.current,u,i),lE.flushSyncFromReconciler(()=>{lE.updateContainer(G.createElement(s,{},u.children),n.current,null)})}),G.createElement("div",{ref:t,id:u.id,accessKey:u.accessKey,className:u.className,role:u.role,style:u.style,tabIndex:u.tabIndex,title:u.title})},NN="Layer",P_="Group",VJ="Rect",RI="Line",wI="Image",YJ="Text",lE=EZ(zJ),DI=G.forwardRef((u,t)=>G.createElement(AI,{},G.createElement(GJ,{...u,forwardedRef:t})));var KJ=function(u,t){var e={};for(var n in u)Object.prototype.hasOwnProperty.call(u,n)&&t.indexOf(n)<0&&(e[n]=u[n]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(u);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(u,n[i])&&(e[n[i]]=u[n[i]]);return e};const XJ=u=>{const t=window.getComputedStyle(u).position;return!(t==="absolute"||t==="relative")};function qJ(u=()=>{}){const t=G.useRef(u);return t.current=u,G.useCallback((...e)=>t.current.apply(null,e),[])}const MI=({children:u,groupProps:t,divProps:e,transform:n,transformFunc:i,parentNodeFunc:s})=>{const o=CI(),l=G.useRef(null),[c]=G.useState(()=>document.createElement("div")),d=G.useMemo(()=>bH.createRoot(c),[c]),f=n??!0,m=qJ(()=>{if(f&&l.current){let x=l.current.getAbsoluteTransform().decompose();i&&(x=i(x)),c.style.position="absolute",c.style.zIndex="10",c.style.top="0px",c.style.left="0px",c.style.transform=`translate(${x.x}px, ${x.y}px) rotate(${x.rotation}deg) scaleX(${x.scaleX}) scaleY(${x.scaleY})`,c.style.transformOrigin="top left"}else c.style.position="",c.style.zIndex="",c.style.top="",c.style.left="",c.style.transform="",c.style.transformOrigin="";const _=e||{},{style:v}=_,S=KJ(_,["style"]);Object.assign(c.style,v),Object.assign(c,S)});return G.useLayoutEffect(()=>{var _;const v=l.current;if(!v)return;const S=s?s({stage:v.getStage()}):(_=v.getStage())===null||_===void 0?void 0:_.container();if(S)return S.appendChild(c),f&&XJ(S)&&(S.style.position="relative"),v.on("absoluteTransformChange",m),m(),()=>{var y;v.off("absoluteTransformChange",m),(y=c.parentNode)===null||y===void 0||y.removeChild(c)}},[f,s]),G.useLayoutEffect(()=>{m()},[e,i]),G.useLayoutEffect(()=>{queueMicrotask(()=>{SH.flushSync(()=>{d.render(G.createElement(o,null,u))})})}),G.useLayoutEffect(()=>()=>{setTimeout(()=>{d.unmount()})},[]),G.createElement(P_,Object.assign({ref:l},t))};function gR({area:u,finished:t=!1,isClicked:e=!1,isBad:n=!1,hasHighlights:i=!1,completed:s=!1,onClick:o=()=>{},onClickOutside:l=()=>{}}){const c=G.useRef(),[d,f]=G.useState(),m=n?"rgba(255, 99, 77, 0.32)":"rgba(75, 215, 169, 0.32)",_=n?"#ff634d":"#4bd7a9",v=oF(),S=()=>{var E,C,R;i&&!s&&!e&&((E=c.current)==null||E.setAttr("fill","rgba(130, 134, 142, 0.4)"),(C=c.current)==null||C.setAttr("stroke","rgba(255, 255, 255, 0.3)"),(R=c.current)==null||R.to({duration:.25,opacity:1}))},y=()=>{var E;i&&!s&&!e&&((E=c.current)==null||E.to({duration:.25,opacity:0}))};G.useEffect(()=>{var E,C,R;s&&!t&&(n?(R=c.current)==null||R.to({duration:.25,opacity:0}):((E=c.current)==null||E.to({duration:.25,opacity:1}),(C=c.current)==null||C.globalCompositeOperation("destination-out")))},[s,t,n]);const x=()=>{var E,C;s||(n?l(u):o(u),(E=c.current)==null||E.setAttr("fill",m),(C=c.current)==null||C.setAttr("stroke",_))},T=u.scaleX?u.scaleX:1,A=u.scaleY?u.scaleY:1;return G.useLayoutEffect(()=>{const E=c.current.getStage();E.on("stage-loaded",()=>{const C=c.current.getClientRect({relativeTo:c.current.getParent()});f({x:C.x+C.width/2,y:C.y+C.height/2}),E.batchDraw()})},[u]),P.jsxs(P.Fragment,{children:[d?P.jsx(MI,{transform:!0,groupProps:{id:"projection",...d},divProps:{style:{pointerEvents:"none"}},children:P.jsx("div",{style:{width:"50px",height:"50px",pointerEvents:"none"},id:u.id})}):null,P.jsx(RI,{name:u.id,ref:c,onFocus:()=>S(),onMouseOver:()=>S(),onMouseLeave:y,onClick:()=>x(),onTap:()=>x(),x:u.x,y:u.y,scale:{x:T,y:A},skew:{x:u.skewX,y:u.skewY},rotation:u.rotation,points:u.points,shape:"poly",fill:t?"":m,stroke:t||e?_:"",strokeWidth:v?10:4,opacity:t||e?1:0,closed:!0})]})}const QJ=()=>{const[u,t]=G.useState([0,0]);return G.useLayoutEffect(()=>{function e(){const n=document.querySelector("#root");t([n.clientWidth,n.clientHeight])}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),u};function WJ({areas:u,badAreas:t,imageUrl:e,completed:n=!1,onClick:i=()=>{},onClickOutside:s=()=>{},hasHighlights:o=!1,clickedZones:l}){const c=G.useRef(),d=G.useRef(),f=G.useRef(),m=G.useRef(),_=G.useRef(),v=G.useRef(),S=G.useRef(),[y,x]=G.useState(new window.Image),[T,A]=QJ(),E=t.find(N=>N.id==="AllArea")||!1,C=t.filter(N=>N.id!=="AllArea");G.useEffect(()=>{S.current&&d.current&&n&&(S.current.to({duration:.25,opacity:.5}),d.current.setAttr("visible",!0))},[n]);const R=N=>{E&&!N.target.attrs.shape&&s(E)};return G.useEffect(()=>{y.src=e,y.addEventListener("load",()=>{if(c.current){const N={x:T/2,y:A/2,width:y.width,height:y.height,offsetX:y.width/2,offsetY:y.height/2,scale:{x:Math.min(T/y.width,A/y.height),y:Math.min(T/y.width,A/y.height)}};m.current&&m.current.setAttrs(N),_.current&&_.current.setAttrs(N),d.current&&d.current.setAttrs(N),f.current&&f.current.setAttrs(N),v.current&&v.current.setAttrs(N),c.current.batchDraw(),x(y),c.current.fire("stage-loaded")}})},[y,A,e,T]),P.jsxs(DI,{ref:c,width:T,height:A,onClick:R,onTouchEnd:R,children:[P.jsx(NN,{children:P.jsx(wI,{ref:v,image:y})}),P.jsxs(NN,{children:[P.jsx(VJ,{ref:S,width:T,height:A,fill:"black",opacity:0}),P.jsx(P_,{ref:_,children:C.map((N,M)=>P.jsx(gR,{hasHighlights:o,completed:n,onClick:i,onClickOutside:s,area:N,isBad:!0},N.name+"_"+M))}),P.jsx(P_,{ref:m,children:u.map((N,M)=>P.jsx(gR,{hasHighlights:o,completed:n,onClick:i,onClickOutside:s,area:N,isClicked:l.some(O=>O.index===N.index)},N.name+"_"+M))}),P.jsx(P_,{ref:f,visible:!1,children:C.map((N,M)=>P.jsx(gR,{hasHighlights:o,completed:n,onClick:i,onClickOutside:s,area:N,isBad:!0,finished:!0},N.name+"_"+M))}),P.jsx(P_,{ref:d,visible:!1,children:u.map((N,M)=>P.jsx(gR,{hasHighlights:o,completed:n,onClick:i,onClickOutside:s,area:N,finished:!0},N.name+"_"+M))})]})]})}function ZJ({retry:u,translate:t,onInit:e}){return P.jsx("div",{className:"timer-dialog",children:P.jsxs("div",{className:"timer-dialog__container",children:[P.jsx("div",{className:"timer-dialog__title",children:t("storylines.misc.ready")}),P.jsx("button",{type:"button",className:"gat--btn gat--btn__primary",onClick:e,children:P.jsx("span",{children:t(u?"storylines.misc.start":"storylines.misc.retry")})})]})})}function JJ({time:u}){const t=Math.floor(u/60),e=u%60;return P.jsx("div",{className:`count-down count-down--in-puzzle-frame ${u<10?"count-down--finalseconds":""}`,children:P.jsxs("div",{children:[t<10?`0${t}`:t," : ",e<10?`0${Math.floor(e)}`:Math.floor(e)]})})}const $J="https://min.gamelearn.io/css-resources/gamelearn/resources/puzzle-login-low.png";function t$(){return P.jsx("div",{className:"puzzle--image__preview",children:P.jsx("img",{alt:"img",src:"https://min.gamelearn.io/css-resources/gamelearn/resources/image-click.jpg"})})}function X9({soundActions:u,emitEvent:t,getEvent:e=()=>{},handleClick:n=()=>{},disableExit:i,setResolveAction:s,info:o={instructions:"",resolve:{},solution:{},hint:{},title:""},image:l,areas:c,badAreas:d=[],hasClickOrder:f=!1,timer:m,hasClickOnce:_=!1,hasHighlights:v=!1,hasImageReview:S=!1,defaultCompleted:y=!1,className:x="puzzle--image__click",emitFinish:T,emitResolve:A,translateFromParent:E,specificFeedbacks:C,slideNumber:R,emitResetPuzzle:N,firstTryForFrame:M,puzzlesAutoCompleted:O,emitOpenPopupCounterInfo:B,pause:L,keyboardControl:I,hideContinue:F=!1,emitAreaClick:H=()=>{}}){var ie,ue,wn;const[W,Z]=G.useState([]),[X,$]=G.useState(!1),[nt,Q]=G.useState(!1),[tt,rt]=G.useState({show:!1,success:!1,text:"",rewards:[]}),ut=G.useRef(!1),[st,ot]=G.useState(!0),[dt,pt]=G.useState(!1),it=G.useRef(null),lt=G.useRef(null),ht=G.useRef(null),St=G.useRef(null),_t=G.useRef(null),bt=G.useRef(null),yt=G.useRef(null),Tt=G.useRef(null),wt=G.useRef(null),[It,Ft]=G.useState(m),$t=re=>E?E(re):e({type:"translate",payload:re}),[Jt]=u,{solution:we}=o,ze=((ie=l==null?void 0:l.img)==null?void 0:ie.url)||$J,Se=c.map((re,me)=>({index:me,shape:"poly",...re})),Te=d.map((re,me)=>({index:me,shape:"poly",...re})),pn=G.useCallback(()=>{if(!st){const re=setInterval(()=>{Ft(me=>me>1?me-1:0)},1e3);wt.current=re}},[st]),Mn=G.useCallback((re,me)=>{T?T(re,me):t({type:"addPoints",payload:re})},[t,T]);G.useEffect(()=>{X&&i(!0)},[X,i]),G.useEffect(()=>{$(y)},[y]);const zt=G.useCallback(()=>{clearInterval(ht.current)},[]),te=G.useCallback(()=>{clearInterval(wt.current)},[]),pe=G.useCallback(re=>{_t.current=Date.now(),St.current?(yt.current=St.current-_t.current,zt()):(yt.current=_t.current-(_t.current-re*1e3),zt())},[zt]),Lt=G.useCallback(()=>{rt(()=>{var re,me;return{show:!0,success:!1,text:(re=o==null?void 0:o.timerFeedback)!=null&&re.desc?o.timerFeedback.desc:"",rewards:(me=o==null?void 0:o.timerFeedback)==null?void 0:me.rewards}}),pt(!0),te(),zt()},[te,zt,(ue=o.timerFeedback)==null?void 0:ue.desc,(wn=o.timerFeedback)==null?void 0:wn.rewards]),Yt=G.useCallback(()=>{clearInterval(ht.current),ht.current=setInterval(()=>{lt.current=Date.now(),lt.current>St.current&&Lt()},250)},[Lt]);G.useEffect(()=>{var re;if((c.length===W.length||_&&W.length>0)&&!X){$(!0);const me=W[W.length-1],On=C==null?void 0:C.correctFeedbacks.find(Nn=>Nn.id===me.id);(!((re=C==null?void 0:C.correctFeedbacks)!=null&&re.length)||C!=null&&C.correctFeedbacks.some(Nn=>!Nn.desc)||_)&&(rt(Nn=>({...Nn,show:!0,success:!0,text:On?On.desc:o.solution.right.desc,rewards:On?On.rewards:o.solution.right.rewards})),m&&(te(),pe()))}},[W,c.length,C,_,X,o.solution.right,pe,m,te]),G.useEffect(()=>{s(re=>{m&&(te(),ot(!1),tt.show?rt(me=>({...me,show:!1,success:!1,text:"",rewards:[]})):zt()),$(!0),Q(!0),setTimeout(()=>{A?A(re):re()},4e3)})},[s,A,Jt,m,tt.show,zt,te]),G.useEffect(()=>{nt&&i(!0)},[nt,i]);const ee=(re,me=!1)=>{var On,Nn;if(!X){const{rewards:la,desc:kt}=we.wrong;let Qt=kt,de=la;const ye=(On=C==null?void 0:C.wrongFeedbacks)==null?void 0:On.find(Xe=>Xe.id===re.id);ye&&(Qt=ye.desc,de=ye.rewards),f&&(Z([]),me&&(Nn=o==null?void 0:o.orderFeedback)!=null&&Nn.desc&&(Qt=o.orderFeedback.desc,de=o.orderFeedback.rewards)),m&&(te(),pe()),rt(Xe=>({...Xe,show:!0,success:!1,text:Qt,rewards:de})),Jt("fail")}},Be=G.useCallback(()=>{bt.current=Date.now();const re=bt.current+yt.current;lt.current=null,St.current=re,(m||dt)&&(tt.success?c.length===W.length||_&&W.length>0?te():(Ft(yt.current*.001),pn(),Yt()):(Z([]),ot(!0),N())),Mn(tt.rewards,tt.success),Jt("click-ui"),rt(me=>({...me,show:!1,success:!1,text:"",rewards:[]}))},[m,dt,Mn,tt.rewards,tt.success,Jt,c.length,W.length,_,N,te,pn,Yt]),Ke=re=>{var me,On;if(!W.some(Nn=>Nn.index===re.index)&&!tt.show&&!X){Jt("click-ui");let Nn=we.right.desc,{rewards:la}=we.right;const kt=[...W,re];if(f&&re.index===W.length||!f){if(m&&pe(It),n(),(me=C==null?void 0:C.correctFeedbacks)!=null&&me.length){const Qt=(On=C.correctFeedbacks)==null?void 0:On.find(de=>de.id===re.id);Qt&&(Nn=Qt.desc,la=Qt.rewards),!Nn&&c.length>kt.length&&!_?Mn(la,!0):Nn&&!_&&(rt(de=>({...de,show:!0,success:!0,text:Nn,rewards:la})),m&&te())}Z(kt)}else ee(re,!0)}},Gt=G.useCallback(()=>{te(),Ft(m),pn(),!ut.current&&M&&B(),ot(!1),it.current=Date.now(),St.current=it.current+m*1e3,Yt()},[te,m,pn,M,Yt,B]);return G.useEffect(()=>{m&&R>0&&!Tt.current&&(M&&Object.keys(O).length&&O[R-1]?(ot(!0),Tt.current=!0):ot(!1))},[y,M,O,R,m]),G.useEffect(()=>{m&&It===0&&Lt()},[It,Lt,m]),G.useEffect(()=>{m&&(L?(te(),pe()):pn())},[te,Yt,L,pe,pn,m]),P.jsxs("div",{className:x,children:[tt.show?P.jsx(fd,{playSound:Jt,text:tt.text,success:tt.success,translate:$t,hasTimeout:!tt.text,delay:m?1e3:2e3,functionOnClose:Be,timeExpired:dt,keyboardControl:I}):null,P.jsx(WJ,{completed:X,imageUrl:ze,areas:_&&W.length?[W[0]]:Se,badAreas:Te,clickedZones:W,onClick:Ke,onClickOutside:ee,hasHighlights:v,emitEvent:t}),S?P.jsx(t$,{}):null,m&&st?P.jsx(ZJ,{retry:M||O[R-1],translate:$t,onInit:Gt}):null,m?P.jsx(JJ,{time:It}):null]})}function e$(u){const t=(e,n)=>{n?(u.emitEvent({type:"addPoints",complex:!0,finish:!0,payload:e}),u.emitEvent({type:"passPuzzle"})):(u.emitEvent({type:"addPoints",payload:e,finish:!1}),u.emitEvent({type:"failPuzzle"}))};return P.jsx(X9,{...u,emitFinish:t,name:"image-click-puzzle"})}const OI="#44d7ab",n$="#FFB34B",q9="#FF634D",i$=(u,t)=>Math.max(Math.abs(u[0]-t[0]),Math.abs(u[1]-t[1])),NI=(u,t,e,n)=>{const i=[],s=u;for(const o of t.toLowerCase()){const l=Math.floor(Math.random()*e),c=Math.floor(Math.random()*n);s[l][c].value=o,i.push({char:o,position:[l,c]})}return[s,i]},LI=(u,t,e,n)=>{const i=u;for(let s=0;s<t;s+=1)for(let o=0;o<e;o+=1)switch(n.reduce((c,d)=>{const f=[s,o],m=i$(d.position,f);return m<c?m:c},9999)){case 0:i[s][o].hiddenColor=OI;break;case 1:i[s][o].hiddenColor=n$;break;case 2:i[s][o].hiddenColor=q9;break}return i},a$=(u,t,e)=>{const n=e;for(let i=0;i<u;i+=1)for(let s=0;s<t;s+=1)n[i][s].color="",n[i][s].hiddenColor=q9;return n},s$=(u,t,e,n)=>{const i=a$(e,n,u),[s,o]=NI(i,t,e,n);return LI(s,e,n,o)},r$=(u,t)=>t.split("").filter(e=>!u.includes(e)).join(""),o$=(u,t,e)=>{const n=[];for(let i=0;i<u;i+=1){const s=[];for(let o=0;o<t;o+=1){const l={color:"",hiddenColor:q9,value:e[Math.floor(Math.random()*e.length)]};s.push(l)}n.push(s)}return n},l$=({numberOfColumns:u,numberOfRows:t,password:e})=>{const n=je()?"٠١٢٣٤٥٦٧٨٩شزذيثبلاهتنمورخحضقسفعدصطغظ":"0123456789abcdefghijklmnopqrstuvwxyz",i=r$(e,n),s=o$(t,u,i),[o,l]=NI(s,e,t,u);return LI(o,t,u,l)};function PI({item:u,rowIndex:t,columnIndex:e,setCursorPosition:n=()=>{},cursorPosition:i}){const s=Math.abs(t-i[0])<3&&Math.abs(e-i[1])<3;return P.jsx("span",{className:"puzzle--cracker__item",style:{backgroundColor:`${s?u.hiddenColor:u.color}`,flexGrow:1,textAlign:"center"},onMouseOver:()=>{n([t,e])},onFocus:()=>{n([t,e])},children:u.value})}PI.propTypes={item:Zt.shape({color:Zt.string,hiddenColor:Zt.string,value:Zt.string}).isRequired,rowIndex:Zt.number.isRequired,columnIndex:Zt.number.isRequired,cursorPosition:Zt.arrayOf(Zt.number).isRequired,setCursorPosition:Zt.func};function jI({row:u=[],rowIndex:t,setCursorPosition:e,cursorPosition:n}){return u.length?P.jsx("div",{className:"puzzle--cracker",children:u.map((i,s)=>P.jsx(PI,{item:i,rowIndex:t,columnIndex:s,setCursorPosition:e,cursorPosition:n},s))}):null}jI.propTypes={row:Zt.arrayOf(Zt.shape({})),rowIndex:Zt.number.isRequired,setCursorPosition:Zt.func.isRequired,cursorPosition:Zt.arrayOf(Zt.number).isRequired};function u$({grid:u,cursorPosition:t,setCursorPosition:e=()=>{}}){return P.jsx("div",{className:"puzzle--cracker__canvas",children:u.map((n,i)=>P.jsx(jI,{row:n,rowIndex:i,cursorPosition:t,setCursorPosition:e},i))})}const c$={slow:2,fast:5,fastest:10},d$={easy:{visibleRows:"auto",visibleColumns:40,totalRows:25},medium:{visibleRows:"auto",visibleColumns:40,totalRows:40},hard:{visibleRows:"auto",visibleColumns:40,totalRows:80}};function h$({emitEvent:u,soundActions:t,info:e={},velocity:n="slow",password:i,disableExit:s,difficulty:o="easy",setResolveAction:l,getEvent:c,context:d={}}){const[f]=t,m=ot=>c({type:"translate",payload:ot}),_=G.useRef(),v=G.useRef(),{solution:S}=e,[y,x]=G.useState(i.toLowerCase()),[T,A]=G.useState(),[E,C]=G.useState(Array(i.toLowerCase().length).fill("")),[R,N]=G.useState(!1),[M,O]=G.useState([0,0]),B=m("puzzle.cracker.crackedPassword"),L=e.solution.right.desc&&e.solution.right.desc!==""?e.solution.right.desc:"",I=m("puzzle.cracker.congratulations"),[F,H]=G.useState([[]]),{visibleRows:W,visibleColumns:Z}=d$[o];let X=W==="auto"?Math.ceil(window.innerHeight*.025):W;X=X>=20?X:20,G.useEffect(()=>{R&&s(!0)},[R,s]),G.useEffect(()=>{l(ot=>{f("score"),N(!0),setTimeout(()=>{u({type:"hidePuzzleButtons",payload:!1}),ot()},0)})},[l,f]);const $=()=>{f("click-ui");const{rewards:ot}=S.right;u({type:"addPoints",complex:!0,finish:!0,payload:ot}),u({type:"passPuzzle"})},nt=()=>i.toLowerCase().split("").map((dt,pt)=>({char:dt,index:pt,used:!1})),Q=ot=>ot.filter(dt=>dt.used===!1).map(dt=>dt.char).join(""),tt=ot=>{if(ot[0].length>0&&!R){const dt=[...ot];return dt.push(dt.shift()),dt}return ot};let rt=0;const ut=ot=>{if(v.current!==void 0){const dt=ot-v.current;rt+=dt,rt>1e3/c$[n]&&(H(tt),rt=0)}v.current=ot,_.current=requestAnimationFrame(ut)};G.useEffect(()=>{x(i.toLowerCase());const ot=l$({numberOfColumns:Z,numberOfRows:X,password:i.toLowerCase()});return H(ot),A(nt()),_.current=requestAnimationFrame(ut),()=>cancelAnimationFrame(_.current)},[]);const st=()=>{if(F.length<=1)return;const[ot,dt]=M,pt=F[ot][dt];if(pt.hiddenColor===OI){const it=T.filter(lt=>lt.char===pt.value.toLowerCase()&&lt.used===!1)[0];if(it){const{index:lt}=it;f("score");const ht=T;ht[lt].used=!0,A(ht);const St=[...E];St[lt]=pt.value;const _t=Q(ht);x(_t);const bt=s$(F,_t,X,Z);H(bt),C(St)}}y<=0&&(f("score"),N(!0))};return G.useEffect(()=>{R||st()},[M]),P.jsxs("div",{className:"puzzle--cracker__container",children:[P.jsxs("div",{className:"puzzle--cracker__header",children:[P.jsx("span",{className:"title",children:"Dcoder.exe"}),P.jsx("div",{className:"puzzle--pieces",children:E.map((ot,dt)=>P.jsx("span",{className:"puzzle--pieces__item",children:ot&&P.jsx("span",{className:"character success-transition-animation","data-testid":`solution${dt}`,children:ot})},`${ot+dt}`))})]}),P.jsx(u$,{grid:R?[[]]:F,cursorPosition:M,setCursorPosition:O}),R&&B&&I&&P.jsxs(P.Fragment,{children:[P.jsxs(QE,{avgTypingDelay:110,cursor:{hideWhenDone:!0},className:"puzzle--cracker__result",children:[P.jsx(QE.Delay,{ms:300}),P.jsxs("span",{children:[`${B} ${i.toLowerCase()}`," "]}),P.jsxs("span",{children:[I," "]}),L!==""&&P.jsx("span",{children:L})]}),P.jsx("div",{className:"position--absolute bottom center",children:P.jsx("button",{type:"button",className:"gat--btn gat--btn__primary gat--btn__cracker",onClick:$,children:m("screens.continue")})})]})]})}const f$=/[\u0600-\u06FF]/,iz=(u,t)=>{let e=!1;return t==="or"&&(e=u===""||u===" "||u===","||u==="."||u==="/"),t==="and"&&(e=u&&u!==" "&&u!==","&&u!=="."&&u!==""&&u!=="/"),e},p$=(u,t)=>u.char>t.char?1:u.char<t.char?-1:0,m$=u=>{const t={anyArabic:!1,anyNumber:!1,anyWestern:!1};for(let e=0;e<u.length;e+=1){const n=u[e].charCodeAt(0);n>=65&&n<=90?t.anyWestern=!0:n>=48&&n<=57?t.anyNumber=!0:f$.test(u[e])&&(t.anyArabic=!0)}return t},g$=u=>{const t="شزذيثبلاهتنمورخحضثقسفعدصطغظ",e="ABCDEFGHIJKLMNOPQRSTUVWXYZ",n="0123456789";let i="";return u.anyWestern&&(i+=e),u.anyNumber&&(i+=n),u.anyArabic&&(i+=t),i.charAt(Math.floor(Math.random()*i.length))},v$=26,y$=8,az=({answer:u,flickerPosition:t,show:e=!1,showCorrectSolution:n})=>{const i=[];let s=0;return u.forEach(o=>{i[s]||(i[s]=[]),i[s]=[...i[s],o],o.char===" "&&(s+=1),n||(o.positionInitial=o.index)}),i.map((o,l)=>P.jsx("div",{dir:"auto",className:"puzzle--hanged__word","data-testid":`result-${l}`,children:e?o.map((c,d)=>P.jsx("span",{className:"puzzle--hanged__letter active",children:c},`${c+d}`)):o.filter(({char:c})=>c!==" ").map(({char:c,fixed:d},f)=>P.jsx("span",{className:`puzzle--hanged__letter ${d?"":"active"} ${o[f].positionInitial===t?"fakeFocus":""}`,children:c},`${c+f}`))},`${o+l}`))},_$="https://min.gamelearn.io/css-resources/gamelearn/resources/partenon.jpg";function b$({soundActions:u,emitEvent:t,getEvent:e,disableExit:n,question:i="",image:s={},info:o={description:"",instructions:"",resolve:{},solution:{},hintBought:{}},answer:l="",hintUsed:c,setResolveAction:d,setHintAction:f,keyboardControl:m,hintBought:_=!1}){var bt;const[v]=u,S=((bt=s.img)==null?void 0:bt.url)||_$,[y,x]=G.useState(0),[T,A]=G.useState(!1),[E,C]=G.useState([]),[R,N]=G.useState(!1),[M,O]=G.useState([]),[B,L]=G.useState(""),[I,F]=G.useState(!1),[H,W]=G.useState([]),[Z,X]=G.useState(!1),$=l.toUpperCase().split(""),nt=$.filter(yt=>iz(yt,"and")),Q=yt=>e({type:"translate",payload:yt}),tt=G.useCallback(()=>{const yt=nt.map(It=>({char:It}));let Tt=[];const wt=m$(nt);for(;Tt.length<y$;){const It=g$(wt);Tt=[...Tt,{char:It}]}return[...yt,...Tt]},[nt]),rt=l.toUpperCase().split("").map((yt,Tt)=>iz(yt,"or")?{index:Tt,letter:yt,char:yt,fixed:!0}:{index:Tt,letter:yt,char:""}),ut=G.useCallback(()=>{let yt=tt();for(;yt.length>v$;){const Tt=Math.trunc(Math.random()*(yt.length-1))+1,wt=yt[Tt],It=rt.find((Ft,$t)=>wt.char===Ft.letter&&!rt[$t].fixed);It&&(yt.splice(Tt,1),rt[It.index]={...It,char:It.letter,fixed:!0})}c&&(yt=[],rt.forEach(({letter:Tt})=>{Tt!==" "&&yt.push({char:Tt})})),O(rt),C(yt)},[rt,c,tt]),st=(yt,Tt)=>E.map((It,Ft)=>Ft===Tt?{...It,deleted:!0}:{...It}),ot=(yt,Tt,wt)=>{const It=Tt.map(($t,Jt)=>wt.find(ze=>ze.poolIndex===Jt)?{char:$t.char}:$t);C(It),O(yt);const Ft=yt.find($t=>$t.char==="");x(Ft.index)},dt=(yt,Tt)=>{v("click-ui");let wt=!1;const It=M.map(Jt=>!Jt.char&&!wt?(wt=!0,{...Jt,char:yt,poolIndex:Tt}):Jt),Ft=st(yt,Tt),$t=It.filter(Jt=>Jt.char).length;C(Ft),O(It),pt(),$t===M.length&&St(It,Ft)},pt=()=>{var yt;if(T){const Tt=M.find(wt=>wt.index!==y&&wt.letter!==" "&&wt.char===""&&wt.poolIndex===!1);Tt&&x(Tt.index)}else{const Tt=M.find(wt=>wt.char==="");x(Tt.index+1),((yt=M[Tt.index+1])==null?void 0:yt.letter)===" "&&x(Tt.index+2)}},it=()=>{v("click-ui");const yt=M.map((Tt,wt)=>M[M.length-1-wt]).find(Tt=>Tt.char&&!Tt.fixed);if(yt){const Tt=M.map(Ft=>Ft.index===yt.index?{...yt,char:""}:Ft);let wt=!1;const It=E.map((Ft,$t)=>$t===yt.poolIndex&&(Ft.deleted||!wt)?(wt=!0,{char:Ft.char}):Ft);C(It),O(Tt),x(yt.index)}},lt=()=>{n(!0),L("");const yt=[...H,...o.solution.right.rewards];v("score"),t({type:"hidePuzzleButtons",payload:!1}),t({type:"addPoints",complex:!0,finish:!0,payload:yt}),t({type:"passPuzzle"})},ht=()=>{v("fail"),t({type:"hidePuzzleButtons",payload:!1}),W([...H,...o.solution.wrong.rewards]),L(""),F(!1),t({type:"failPuzzle"}),A(!0)},St=(yt,Tt)=>{let wt=[];F(!0);const It=yt.map(($t,Jt)=>$[Jt]===$t.char?{...$t,fixed:!0}:(wt=[...wt,$t],{...$t,poolIndex:!1,char:""})),Ft=It.filter($t=>$t.fixed).length;t({type:"hidePuzzleButtons",payload:!0}),Ft===$.length?(L("success"),o.solution.right.desc===""&&setTimeout(()=>{lt()},2e3)):(L("failed"),ot(It,Tt,wt),o.solution.wrong.desc===""&&setTimeout(()=>{ht()},2e3))},_t=()=>{if(B==="success")lt();else{ht();const yt=M.find(Tt=>Tt.char==="");x(yt.index)}};return G.useEffect(()=>{R||(N(!0),ut()),d(yt=>{X(!0),setTimeout(()=>{t({type:"hidePuzzleButtons",payload:!1}),yt()},2e3)}),f(yt=>{const Tt=[];rt.forEach(({letter:wt})=>{wt!==" "&&Tt.push({char:wt})}),C(Tt),yt()})},[ut,R,l,d,t,H,o.resolve.rewards,rt,f]),P.jsxs("div",{className:"puzzle--hanged",style:{backgroundImage:`url("${S}")`},children:[B?P.jsx(fd,{playSound:v,text:o.solution[B==="success"?"right":"wrong"].desc,success:B==="success",translate:Q,functionOnClose:_t,keyboardControl:m}):null,P.jsx("div",{className:"puzzle--hanged__content",children:P.jsxs("div",{className:"puzzle--hanged__controls",children:[P.jsx("div",{dir:"auto",className:"puzzle--hanged__header",children:i}),P.jsx("div",{dir:"auto",className:`puzzle--hanged__solution ${B}`,"data-testid":`${B}`,children:Z?P.jsx(P.Fragment,{children:P.jsx(az,{showCorrectSolution:Z,answer:l.split(""),show:!0})}):P.jsx(az,{showCorrectSolution:Z,flickerPosition:y,answer:M})}),P.jsxs("div",{className:"puzzle--hanged__keyboard",children:[E.sort((yt,Tt)=>p$(yt,Tt)).map((yt,Tt)=>P.jsx("button",{"data-testid":`key-${yt.char}`,type:"button",onClick:()=>{!yt.deleted&&!B&&!I&&(dt(yt.char,Tt),v("click-ui"))},className:`puzzle--hanged__keyboard--item ${yt.deleted||I?"disabled":""}`,children:yt.char},`${yt+Tt}`)),P.jsx("button",{onClick:I?null:()=>it(),type:"button",disabled:I?"disabled":null,"aria-label":Q("puzzles.hanged-puzzle.deleteButton"),className:`puzzle--hanged__keyboard--item delete ${I?"disabled":""}`,children:P.jsx("span",{className:"icon-delete-keyboard"})})]})]})})]})}function S$({list:u,description:t,nodeId:e,setInfo:n,emitEvent:i,getEvent:s,disableExit:o,setResolveAction:l,soundActions:c,setSelected:d,selected:f,pause:m,loadPuzzleStatus:_,index:v,setIndex:S,slidesCompleted:y,setSlidesCompleted:x,keyboardControl:T,totalCorrects:A}){const E=G.useRef([]),C=G.useRef(0),R=G.useRef(0),N=`chained-image-click-puzzle_${v}_${e}`,[M]=c,O=Q=>{E.current=[...E.current,...Q]},B=G.useCallback(Q=>{M("score"),i({type:"hidePuzzleButtons",payload:!1}),i({type:"addPoints",complex:!0,finish:!0,payload:[...E.current,...Q]}),i({type:"passPuzzle"})},[M,i]),[L,I]=G.useState(!1),F=u[v],{info:H,specificFeedbacks:W}=F;H.description=t,G.useEffect(()=>{C.current=0,R.current=0,I(!1)},[v]);const Z=G.useCallback((Q,tt=!1)=>{var ut;let rt={...y};if(tt){if((ut=W==null?void 0:W.correctFeedbacks)!=null&&ut.length&&!F.hasClickOnce){const st=W.correctFeedbacks.length;L&&st?(C.current>0?d(f+(st-C.current)):d(f+st),C.current=st):C.current+=1}else{let st=f;R.current&&(st-=R.current),C.current=F.areas.length,d(st+C.current)}C.current===F.areas.length&&(v+1>=u.length?B(Q):S(v+1),rt={...rt,[v]:!0},x(rt)),O(Q)}else i({type:"addPoints",payload:Q,finish:!1}),i({type:"failPuzzle"}),F.hasClickOrder&&(d(f-C.current),C.current===0&&Object.entries(y).length===0?d(0):C.current=0),Object.entries(y).length===0&&F.hasClickOrder&&!f&&d(0)},[y,W,F.hasClickOnce,F.areas.length,F.hasClickOrder,L,d,f,v,u.length,x,B,S,i]),X=()=>{for(let Q=0;Q<E.current.length;Q=Q+1)if(E.current[Q].points>0)return!0;return!1},$=()=>{I(!0),v>=u.length-1&&d(A),M("score"),v+1>=u.length&&X()?(H.resolve.rewards.forEach(Q=>{E.current.forEach(tt=>{tt.id===Q.id&&(Q.points=Q.points+tt.points)})}),i({type:"puzzleAction",action:"resolve",payload:{element:N,rewards:H.resolve.rewards,finish:!0}})):i({type:"puzzleAction",action:"resolve",payload:{element:N,rewards:H.resolve.rewards,finish:v+1>=u.length}})};G.useEffect(()=>{n({...H,hintId:N})},[H,N,n]),G.useEffect(()=>{_&&v!==u.length-1&&Z([],!0)},[v,u.length,_,Z]);const nt=()=>{const Q=F.hasClickOnce?F.areas.length:1;R.current+=Q,d(f+Q)};return P.jsx(X9,{...F,puzzle:{name:N,component:"chained-image-click-puzzle"},specificFeedbacks:W,emitFinish:Z,emitError:O,emitResolve:$,isLast:v+1===u.length,defaultCompleted:y[v]||!!_,hideContinue:v+1!==u.length,handleClick:nt,emitEvent:i,getEvent:s,disableExit:o,soundActions:c,setResolveAction:l,pause:m,keyboardControl:T},v)}function x$(u){const{setInfo:t,emitEvent:e,nodeId:n,list:i,description:s,soundActions:o,showFrames:l,disableExit:c,setResolveAction:d,pause:f,keyboardControl:m,getEvent:_}=u,[v,S]=G.useState(0),[y,x]=G.useState(0),[T,A]=G.useState({}),E=`chained-image-click-puzzle_${y}_${n}`,C=G.useMemo(()=>_({type:"loadObjectStatus",payload:E}),[_,E]),R=i.reduce((M,O)=>M+O.areas.length,0),N={list:i,description:s,nodeId:n,disableExit:c,setResolveAction:d,emitEvent:e,soundActions:o,setInfo:t,setSelected:S,selected:v,index:y,setIndex:x,slidesCompleted:T,setSlidesCompleted:A,loadPuzzleStatus:C,pause:f,keyboardControl:m,totalCorrects:R};return P.jsxs("div",{className:"puzzle--image__click",children:[l?P.jsxs("div",{className:"puzzle-image__info",children:[P.jsx("span",{className:"info-circle"}),P.jsxs("span",{children:[v," / ",R]})]}):null,P.jsx(S$,{...N})]})}function E$({list:u,index:t,puzzlesCompiledRef:e,framesCompleted:n,handleFinish:i,accRewards:s,setRewards:o,setIndex:l,setFramesCompleted:c,loadPuzzleStatus:d,soundActions:f,setResolveAction:m,disableExit:_,description:v,translateFromParent:S,setInfo:y,emitEvent:x,nodeId:T,setSelected:A,selected:E,emitResetPuzzle:C,firstTryForFrame:R,setPuzzlesAutoCompleted:N,puzzlesAutoCompleted:M,emitOpenPopupCounterInfo:O,resetValues:B,setResetValues:L,pause:I,keyboardControl:F,totalCorrects:H,getEvent:W}){var ht;const[Z]=f,[X,$]=G.useState(!1),nt=u[t],{info:Q,specificFeedbacks:tt}=nt;Q.description=v;const rt=G.useRef(0),ut=G.useRef(0),st=`frame-image-click-puzzle_${t}_${T}`;G.useEffect(()=>{e.current+=1},[e]),G.useEffect(()=>{y({...Q,hintId:st})},[y,Q,st]),G.useEffect(()=>{B&&(ut.current=0,rt.current=0,A(0),L(!1))},[B,L,A]),G.useEffect(()=>{ut.current=0,rt.current=0,$(!1)},[t]);const ot=G.useCallback((St,_t=!1)=>{var yt;let bt={...n};if(_t){if((yt=tt==null?void 0:tt.correctFeedbacks)!=null&&yt.length&&!nt.hasClickOnce){const Tt=tt.correctFeedbacks.length;X&&Tt?(ut.current>0?A(E+(Tt-ut.current)):A(E+Tt),ut.current=Tt):ut.current+=1}else{let Tt=E;rt.current&&(Tt-=rt.current),ut.current=nt.areas.length,M[0]&&Object.entries(n).length===0?A(ut.current):A(Tt+ut.current)}ut.current===nt.areas.length&&(t+1>=u.length&&i(St),bt={...bt,[t]:!0},c(bt),l(t+1>u.length-1?0:t+1)),o(St)}else x({type:"addPoints",payload:St,finish:!1}),x({type:"failPuzzle"}),nt.hasClickOrder&&(A(E-ut.current),ut.current=0)},[n,(ht=tt==null?void 0:tt.correctFeedbacks)==null?void 0:ht.length,nt.hasClickOnce,nt.areas.length,nt.hasClickOrder,o,X,A,E,M,t,u.length,c,l,i,x]),dt=G.useCallback(()=>{for(let St=0;St<s.current.length;St=St+1)if(s.current[St].points>0)return!0;return!1},[s]),pt=G.useCallback(()=>{$(!0),t>=u.length-1&&A(H),Z("score"),x({type:"hidePuzzleButtons",payload:!1}),N(St=>({...St,[t]:!0})),t+1>=u.length&&dt()?(Q.resolve.rewards.forEach(St=>{s.current.forEach(_t=>{_t.id===St.id&&(St.points=St.points+_t.points)})}),x({type:"puzzleAction",action:"resolve",payload:{element:st,rewards:Q.resolve.rewards,finish:!0}})):x({type:"puzzleAction",action:"resolve",payload:{element:st,rewards:Q.resolve.rewards,finish:t+1>=u.length}})},[t,u.length,Z,x,N,dt,A,H,Q.resolve.rewards,st,s]),it=G.useCallback(()=>{c({}),ut.current=0,rt.current=0,C()},[C,c]);G.useEffect(()=>{d&&t!==u.length-1&&ot([],!0)},[n,t,u.length,d,ot]);const lt=()=>{const St=nt.hasClickOnce?nt.areas.length:1;rt.current+=St,A(E+St)};return P.jsx(X9,{...nt,className:"puzzle-frame__canvas",puzzle:{name:"",component:"frame-click-puzzle"},specificFeedbacks:tt,emitFinish:ot,emitResolve:pt,hideContinue:!0,disableInfo:e.current>1,defaultCompleted:n[t]||!!d,soundActions:f,setResolveAction:m,disableExit:_,translateFromParent:S,emitEvent:x,getEvent:W,slideNumber:t,handleClick:lt,emitResetPuzzle:it,firstTryForFrame:R,puzzlesAutoCompleted:M,emitOpenPopupCounterInfo:O,pause:I,keyboardControl:F},t)}function T$({getEvent:u}){const t=e=>u({type:"translate",payload:e});return P.jsx("div",{dir:"auto",className:"puzzle-frame__info--tooltip",children:t("puzzles.counterTooltip")})}function A$({current:u,total:t,tooltip:e,getEvent:n}){return P.jsxs(P.Fragment,{children:[e?P.jsx(T$,{getEvent:n}):null,P.jsxs("div",{className:"puzzle-frame__info--frames",children:[P.jsx("span",{className:"info-circle"}),P.jsxs("span",{children:[u," / ",t]})]})]})}function C$({emitEvent:u,nodeId:t=0,list:e,description:n="",showFrames:i=!1,soundActions:s,disableExit:o,setResolveAction:l,setInfo:c,getEvent:d,pause:f,keyboardControl:m,context:_={}}){const[v,S]=G.useState({}),y=G.useRef([]),[x,T]=G.useState(0),[A,E]=G.useState({}),[C,R]=G.useState(0),N=G.useRef(0),[M,O]=G.useState(!0),[B,L]=G.useState(!0),[I,F]=G.useState(!1),H=e.reduce((st,ot)=>st+ot.areas.length,0),W=st=>{y.current=[...y.current,...st]},Z=`frame-image-click-puzzle_${x}_${t}`,X=G.useMemo(()=>d({type:"loadObjectStatus",payload:Z}),[d,Z]),$=G.useCallback(st=>{u({type:"addPoints",complex:!0,finish:!0,payload:[...y.current,...st]}),u({type:"passPuzzle"})},[u]),nt=G.useCallback(()=>{L(!1),y.current=[],R(0),T(0),E({}),O(!0),F(!0)},[]),Q=st=>d({type:"translate",payload:st}),tt=()=>{O(!0)},ut={firstTryForFrame:B,list:e,description:n,index:x,puzzlesCompiledRef:N,framesCompleted:A,handleFinish:$,setRewards:W,accRewards:y,setSelected:R,selected:C,setIndex:T,setFramesCompleted:E,loadPuzzleStatus:X,soundActions:s,setResolveAction:l,disableExit:o,translateFromParent:Q,setInfo:c,emitEvent:u,nodeId:t,emitResetPuzzle:nt,resetValues:I,setResetValues:F,setPuzzlesAutoCompleted:S,puzzlesAutoCompleted:v,emitOpenPopupCounterInfo:()=>{x===0&&O(!1)},pause:f,keyboardControl:m,totalCorrects:H,getEvent:d};return P.jsxs("div",{className:"puzzle-frame",children:[P.jsx(E$,{...ut}),P.jsxs("div",{className:"puzzle-frame__content",children:[P.jsx("div",{className:"puzzle-frame__controls",children:P.jsx("div",{className:"puzzle-frame__progress",children:P.jsx("div",{"data-testid":"puzzle-frame-progress",style:{width:`${C/H*100}%`},className:"puzzle-frame__progress--handle"})})}),i?P.jsx("button",{"data-testid":"puzzle-frame-counter-button",disabled:M,"aria-hidden":M,type:"button",className:"puzzle-frame__info",onClick:tt,children:P.jsx(A$,{current:C,total:H,tooltip:!M,getEvent:d})}):null]})]})}function nu({action:u=()=>{},className:t=""}){return P.jsx("div",{role:"button",tabIndex:0,"aria-label":`${u} edit button`,onKeyUp:()=>{},className:`puzzle--webBuilder__edit ${t}`,onClick:u,children:P.jsx("span",{className:"icon-fb-edit"})})}const Jv="https://min.gamelearn.io/css-resources/gamelearn/resources/",S0=[{name:"webbuilder.imageOptions.image1",src:"Amor.jpg"},{name:"webbuilder.imageOptions.image2",src:"Bancorp.svg"},{name:"webbuilder.imageOptions.image3",src:"Amanda.jpg"},{name:"webbuilder.imageOptions.image4",src:"keyboard.jpg"},{name:"webbuilder.imageOptions.image5",src:"Melanie.jpg"},{name:"webbuilder.imageOptions.image6",src:"Sharon.jpg"},{name:"webbuilder.imageOptions.image7",src:"Bankex.svg"},{name:"webbuilder.imageOptions.image8",src:"Futbol.jpg"},{name:"webbuilder.imageOptions.image9",src:"GBL.svg"},{name:"webbuilder.imageOptions.image10",src:"Fooder.jpg"},{name:"webbuilder.imageOptions.image11",src:"Corporate.jpg"},{name:"webbuilder.imageOptions.image12",src:"Bank of Zamunda.svg"},{name:"webbuilder.imageOptions.image13",src:"mindfullness.jpg"},{name:"webbuilder.imageOptions.image14",src:"Nature.jpg"},{name:"webbuilder.imageOptions.image15",src:"Shopper.jpg"},{name:"webbuilder.imageOptions.image16",src:"Lab.jpg"}],R$=["#c66a46","#3c9dc0","#6236ff","#21254f"],w$=["#39b7b9","#25a1d4","#f5a623","#080269"],LN=[{title:"webbuilder.bank.titleOptions.title1.text",desc:"webbuilder.bank.titleOptions.title1.description"},{title:"webbuilder.bank.titleOptions.title2.text",desc:"webbuilder.bank.titleOptions.title2.description"},{title:"webbuilder.bank.titleOptions.title3.text",desc:"webbuilder.bank.titleOptions.title3.description"},{title:"webbuilder.bank.titleOptions.title4.text",desc:"webbuilder.bank.titleOptions.title4.description"},{title:"webbuilder.bank.titleOptions.title5.text",desc:"webbuilder.bank.titleOptions.title5.description"}],vR={backgroundImage:S0[10].src,backgroundLogo:S0[11].src,backgroundColor:"#21254f",btnColor:"#25a1d4"},D$={header:{color:vR.backgroundColor,logo:vR.backgroundLogo},body:{bankTitle:LN[0].title,bankDesc:LN[0].desc,bgImage:vR.backgroundImage,btnColor:vR.btnColor}};function zI({showingReference:u=!1,usingTemplate:t={},openPopup:e=()=>{},onSave:n=()=>{},header:i={},translate:s}){return P.jsxs(P.Fragment,{children:[u?P.jsx("div",{className:"bank--edit__logo",children:P.jsx("img",{src:Jv+t.header.logo,alt:"",title:""})}):P.jsxs("div",{className:"bank--edit__logo",children:[i.logo?P.jsx("img",{src:Jv+i.logo,alt:"",title:""}):P.jsxs("span",{children:[P.jsx("b",{children:s("webbuilder.bank.header.title")}),P.jsx("b",{children:s("webbuilder.bank.header.logo")})]}),P.jsx(nu,{action:()=>e("PopupImageComponent",{text:"Documents",images:S0,onSave:o=>n({logo:o})})})]}),P.jsxs("div",{className:"flex align-center",children:[P.jsxs("ul",{className:"bank--navigation",children:[P.jsx("li",{className:"bank-navigation__item",children:s("webbuilder.bank.header.account")}),P.jsx("li",{className:"bank-navigation__item",children:s("webbuilder.bank.header.invest")}),P.jsx("li",{className:"bank-navigation__item",children:s("webbuilder.bank.header.loans")}),P.jsx("li",{className:"bank-navigation__item",children:s("webbuilder.bank.header.mortgage")})]}),u?null:P.jsx(nu,{action:()=>e("PopupColorComponent",{colors:R$,onSave:o=>n({color:o})})})]})]})}zI.propTypes={showingReference:Zt.bool,usingTemplate:Zt.shape({}),openPopup:Zt.func,onSave:Zt.func,header:Zt.shape({})};function M$({showingReference:u=!1,usingTemplate:t={},header:e={},translate:n}){const i=u?t.header.userImage:e.userImage,s=u?t.header.username:e.username;return P.jsxs(P.Fragment,{children:[P.jsx("span",{className:"facebook--header__logo",children:P.jsx("span",{className:"icon-fb-logo"})}),P.jsxs("span",{className:"facebook--header__user",children:[P.jsx("span",{className:"facebook--header__user--circle",style:{backgroundImage:`url(${Jv+i})`}}),P.jsx("span",{className:"facebook--header__user--text",children:n(s||"webbuilder.facebook.header.userName")})]})]})}function BI({isFacebook:u=!1,header:t={},showingReference:e=!1,usingTemplate:n={},...i}){const s={isFacebook:u,header:t,showingReference:e,usingTemplate:n,...i},o=e?n.header.color:t.color;return P.jsx("div",{className:`puzzle--webBuilder__header ${u?"":"bank"}`,style:u?{}:{backgroundColor:`${o}`},children:P.jsx("div",{className:`${u?"facebook":"bank"}--header`,children:u?P.jsx(M$,{...s}):P.jsx(zI,{...s})})})}BI.propTypes={isFacebook:Zt.bool,showingReference:Zt.bool,usingTemplate:Zt.shape({}),header:Zt.shape({})};const sz={backgroundImage:S0[12].src,backgroundUser:S0[5].src},kI=["webbuilder.userOptions.user1","webbuilder.userOptions.user2","webbuilder.userOptions.user3"],FI=["webbuilder.workOptions.work1","webbuilder.workOptions.work2","webbuilder.workOptions.work3"],II=["webbuilder.studiesOptions.study1","webbuilder.studiesOptions.study2","webbuilder.studiesOptions.study3"],UI=["webbuilder.mailOptions.mail1","webbuilder.mailOptions.mail2","webbuilder.mailOptions.mail3"],HI=["webbuilder.homeOptions.home1","webbuilder.homeOptions.home2","webbuilder.homeOptions.home3"],O$={header:{username:kI[1],userImage:sz.backgroundUser,bgImage:sz.backgroundImage},body:{work:FI[2],home:HI[1],studies:II[0],mail:UI[0]}};function GI({showingReference:u=!1,usingTemplate:t={},header:e={},onSave:n=()=>{},translate:i,openPopup:s=()=>{}}){const o=u?t.header.userImage:e.userImage,l=u?t.header.username:e.username,c=u?t.header.bgImage:e.bgImage;return P.jsxs("div",{className:"puzzle--webBuilder__front",style:{backgroundImage:`url(${Jv+c})`},children:[P.jsxs("div",{className:"facebook--user",children:[P.jsx("span",{className:"facebook--user__circle",style:{backgroundImage:`url(${Jv+o})`},children:u?null:P.jsx(nu,{action:()=>{s("PopupImageComponent",{images:S0,onSave:d=>n({userImage:d})})}})}),P.jsx("span",{className:"facebook--user__text",children:i(l||"webbuilder.facebook.header.userName")}),u?null:P.jsx(nu,{action:()=>{s("PopupTextComponent",{options:kI,onSave:d=>n({username:d})})}})]}),u?null:P.jsx(nu,{className:"position--absolute right top",action:()=>{s("PopupImageComponent",{images:S0,onSave:d=>n({bgImage:d})})}})]})}GI.propTypes={showingReference:Zt.bool,usingTemplate:Zt.shape({}),openPopup:Zt.func,onSave:Zt.func,header:Zt.shape({})};function N$({showingReference:u=!1,usingTemplate:t={},body:e={},onSave:n=()=>{},openPopup:i=()=>{},translate:s}){const o=u?t.body.work:e.work,l=u?t.body.studies:e.studies,c=u?t.body.home:e.home,d=u?t.body.mail:e.mail;return P.jsxs(P.Fragment,{children:[P.jsxs("ul",{className:"facebook--sidebar",dir:"auto",children:[P.jsxs("li",{className:`facebook--sidebar__item ${o||u?"selected":""}`,children:[P.jsxs("div",{className:"flex align-center",children:[P.jsx("span",{className:"icon-fb-work"}),P.jsx("span",{className:"text",children:s(o||"webbuilder.facebook.body.work")})]}),u?null:P.jsx(nu,{action:()=>{i("PopupTextComponent",{options:FI,onSave:f=>n({work:f})})}})]}),P.jsxs("li",{className:`facebook--sidebar__item ${l||u?"selected":""}`,children:[P.jsxs("div",{className:"flex align-center",children:[P.jsx("span",{className:"icon-fb-education"}),P.jsx("span",{className:"text",children:s(l||"webbuilder.facebook.body.studies")})]}),u?null:P.jsx(nu,{action:()=>{i("PopupTextComponent",{options:II,onSave:f=>n({studies:f})})}})]}),P.jsxs("li",{className:`facebook--sidebar__item ${c||u?"selected":""}`,children:[P.jsxs("div",{className:"flex align-center",children:[P.jsx("span",{className:"icon-fb-home"}),P.jsx("span",{className:"text",children:s(c||"webbuilder.facebook.body.home")})]}),u?null:P.jsx(nu,{action:()=>{i("PopupTextComponent",{options:HI,onSave:f=>n({home:f})})}})]})]}),P.jsxs("div",{className:"facebook--board",children:[P.jsx("div",{className:"facebook--mail__label",children:"E-mail"}),P.jsxs("div",{className:`facebook--mail__box ${d||u?"active":""}`,children:[P.jsxs("div",{className:"flex align-center",children:[P.jsx("span",{className:"icon-fb-mail"}),P.jsx("span",{className:"text",children:s(d||"webbuilder.facebook.body.email")})]}),u?null:P.jsx(nu,{action:()=>{i("PopupTextComponent",{options:UI,onSave:f=>n({mail:f})})}})]}),P.jsxs("div",{className:"facebook--tabs",children:[P.jsxs("div",{className:"facebook--tabs__item",children:[P.jsx("span",{className:"icon-fb-edit"}),s("webbuilder.facebook.body.editPost")]}),P.jsxs("div",{className:"facebook--tabs__item",children:[P.jsx("span",{className:"icon-fb-photo"}),s("webbuilder.facebook.body.editPhoto")]}),P.jsxs("div",{className:"facebook--tabs__item",children:[P.jsx("span",{className:"icon-fb-video"}),s("webbuilder.facebook.body.liveVideo")]}),P.jsxs("div",{className:"facebook--tabs__item",children:[P.jsx("span",{className:"icon-fb-events"}),s("webbuilder.facebook.body.facebookEvent")]})]}),P.jsxs("div",{className:"facebook--thinking",children:[P.jsxs("div",{className:"facebook--textarea",children:[P.jsx("div",{className:"facebook--textarea__circle"}),P.jsx("div",{className:"facebook--textarea__placeholder",children:s("webbuilder.facebook.body.think")})]}),P.jsxs("div",{className:"facebook--chips",children:[P.jsx("span",{className:"facebook--chips__item",children:s("webbuilder.facebook.body.photo")}),P.jsx("span",{className:"facebook--chips__item",children:s("webbuilder.facebook.body.label")}),P.jsx("span",{className:"facebook--chips__item",children:s("webbuilder.facebook.body.feeling")})]})]})]})]})}function L$({showingReference:u,usingTemplate:t,body:e,onSave:n,openPopup:i,translate:s}){const o=u?t.body.bgImage:e.bgImage,l=u?t.body.btnColor:e.btnColor,c=s(u?t.body.bankTitle:"webbuilder.bank.body.image.title"),d=s(u?t.body.bankDesc:"webbuilder.bank.body.image.description");return P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"bank--image__front",style:{backgroundImage:`url(${Jv+o})`},children:P.jsxs("div",{className:"bank--image__text",children:[P.jsx("span",{className:"title",children:e.bankTitle&&!u?s(e.bankTitle):c}),P.jsx("span",{children:e.bankDesc&&!u?s(e.bankDesc):d}),u?null:P.jsx(nu,{action:()=>{i("PopupTextComponent",{options:LN,onSave:f=>n({bankTitle:f.title,bankDesc:f.desc})})}}),u?null:P.jsx(nu,{className:"position--absolute top right",action:()=>{i("PopupImageComponent",{images:S0,onSave:f=>n({bgImage:f})})}})]})}),P.jsx("div",{dir:"auto",className:"bank--sidebar",children:P.jsxs("div",{className:"bank--form",children:[P.jsx("div",{className:"bank--form__title",children:s("webbuilder.bank.body.password.title")}),P.jsxs("div",{className:"bank--form__group",children:[P.jsx("div",{className:"bank--form__label",children:s("webbuilder.bank.body.password.current")}),P.jsx("input",{disabled:!0,className:"bank--form__input",type:"password",placeholder:"********"}),P.jsx("span",{className:"icon-circle-check"})]}),P.jsxs("div",{className:"bank--form__group",children:[P.jsx("div",{className:"bank--form__label",children:s("webbuilder.bank.body.password.new")}),P.jsx("input",{disabled:!0,className:"bank--form__input",type:"password",placeholder:"********"}),P.jsx("span",{className:"icon-circle-check"})]}),P.jsxs("div",{className:"bank--form__group",children:[P.jsx("div",{className:"bank--form__label",children:s("webbuilder.bank.body.password.confirm")}),P.jsx("input",{disabled:!0,className:"bank--form__input",type:"password",placeholder:"********"}),P.jsx("span",{className:"icon-circle-check"})]}),P.jsxs("div",{className:"bank--form__buttons",children:[P.jsx("button",{type:"button",className:"bank--form__btn",style:{backgroundColor:`${l}`},children:s("webbuilder.save")}),u?null:P.jsx(nu,{action:()=>{i("PopupColorComponent",{colors:w$,onSave:f=>n({btnColor:f})})}})]})]})})]})}function VI({isFacebook:u=!1,...t}){const e={isFacebook:u,...t};return P.jsx("div",{className:`puzzle--webBuilder__body ${u?"":"bank"}`,children:u?P.jsx(N$,{...e}):P.jsx(L$,{...e})})}VI.propTypes={isFacebook:Zt.bool};function P$({translate:u,backActive:t,action:e}){return P.jsx("div",{className:"puzzle--webBuilder__topbar--buttons",children:P.jsx("button",{type:"button",className:"puzzle--webBuilder__topbar--buttons__item",onClick:e,children:u(`webbuilder.${t?"return":"showReference"}`)})})}function j$({backActive:u,displayButton:t,clickAction:e,translate:n}){return P.jsxs("div",{className:"puzzle--webBuilder__topbar",children:[t?P.jsx(P$,{backActive:u,action:e,translate:n}):null,P.jsx("div",{className:"puzzle--webBuilder__title",children:"web builder 3.0"})]})}function rz({onNext:u=()=>{},success:t=!1,showButton:e=!0,translate:n}){const i=n(t?"webbuilder.feedback.successTitle":"webbuilder.feedback.failTitle"),s=n(t?"webbuilder.feedback.success":"webbuilder.feedback.fail");return P.jsxs("div",{dir:"auto",className:`puzzle--webBuilder__feedback bottom ${t?"success":"failed"}`,style:t?{zIndex:"11"}:{},children:[P.jsxs("div",{children:[P.jsx("div",{className:"title",children:i}),P.jsx("div",{className:"description",children:s})]}),e?P.jsx("button",{type:"button",className:`gat--btn gat--btn__secondary ${t?"green":"red"}`,onClick:u,style:{marginRight:"64px"},children:n("webbuilder.continue")}):null]})}function z$({onPublish:u=()=>{},translate:t}){return P.jsx("div",{role:"button",tabIndex:0,onKeyUp:()=>{},"aria-label":"publish",className:"position--absolute bottom center",onClick:u,children:P.jsxs("div",{className:"gat--btn gat--btn__primary",children:[P.jsx("span",{className:"icon-download-cloud"}),t("webbuilder.publish")]})})}function YI({colors:u={},onSave:t=()=>{},closingAction:e=()=>{},translate:n,soundActions:i}){const[s]=i,[o,l]=G.useState(),c=o===null;return P.jsx("div",{className:"popup--layer",children:P.jsxs("div",{className:"popup",children:[P.jsx("div",{className:"popup--info",children:P.jsx("span",{className:"popup--info__item",children:P.jsxs("div",{className:"puzzle--webBuilder__colors",children:[P.jsx("div",{className:"puzzle--webBuilder__colors--title",children:P.jsx("span",{children:n("webbuilder.colorSelect.title")})}),P.jsx("div",{className:"puzzle--webBuilder__colors--items",children:u.map(d=>P.jsx("div",{className:`puzzle--webBuilder__color--select ${o===d?"selected":""}`,style:{borderColor:`${d}`},onClick:()=>l(d),children:P.jsx("span",{style:{backgroundColor:`${d}`}})},d+Date.now()))})]})})}),P.jsxs("div",{className:"popup--buttons",children:[P.jsx("button",{type:"button",className:"gat--btn gat--btn__secondary",onClick:e,children:P.jsx("span",{children:n("webbuilder.cancel")})}),P.jsx("button",{type:"button",className:`gat--btn gat--btn__primary ${c?"disabled":""}`,onClick:c?null:()=>{s("click-ui"),t(o)},children:n("webbuilder.save")})]})]})})}YI.propTypes={closingAction:Zt.func,onSave:Zt.func,colors:Zt.arrayOf(Zt.string)};function B$({images:u=[],onSave:t=()=>{},closingAction:e=()=>{},translate:n,soundActions:i}){const[s]=i,[o,l]=G.useState(),c=!o;return P.jsx("div",{className:"folder-popup",children:P.jsxs("div",{className:"folder-popup__content",children:[P.jsxs("div",{className:"folder-popup__header",children:[P.jsx("div",{}),P.jsxs("div",{className:"folder-popup__title",children:[P.jsx("span",{className:"folder-popup__icon-header icon-fb-search"}),P.jsx("span",{children:n("webbuilder.imageSelect.title")})]}),P.jsx("button",{onClick:e,className:"folder-popup__close",type:"button",children:P.jsx("span",{className:"icon-close-fit"})})]}),P.jsxs("div",{className:"folder-popup__body",children:[P.jsx("div",{className:"folder-popup__scroll",children:P.jsx("ul",{className:"folder-popup__list",children:u.map(d=>P.jsxs("li",{className:"folder-item-file",children:[P.jsx("div",{className:"folder-item-file__imagewrap",onClick:()=>l(d),onKeyUp:()=>{},role:"button",tabIndex:0,children:P.jsx("img",{alt:d.src,src:Jv+d.src})}),P.jsx("div",{className:"folder-item-file__title",title:d.src,children:d.src})]},d.src+Date.now()))})}),P.jsxs("div",{className:"folder-popup__buttons",children:[P.jsx("button",{type:"button",className:"gat--btn gat--btn__secondary",onClick:e,children:n("webbuilder.cancel")}),P.jsx("button",{type:"button",className:`gat--btn gat--btn__primary ${c?"disabled":""}`,onClick:c?null:()=>{s("click-ui"),t(o.src)},children:n("webbuilder.open")})]})]})]})})}function k$({item:u,translate:t}){return u instanceof Object?t(u.title.toString()):P.jsx("span",{children:t(u||"webbuilder.textSelect.title")})}function F$({closingAction:u,onSave:t,options:e,translate:n,soundActions:i}){const[s]=i,[o,l]=G.useState(""),c=o==="",[d,f]=G.useState(!1),m=d?"puzzle--webBuilder__select--item open":"puzzle--webBuilder__select--item",_=()=>{f(!d)};return P.jsx("div",{className:"popup--layer",children:P.jsxs("div",{className:"popup",children:[P.jsx("div",{className:"popup--info",children:P.jsx("span",{className:"popup--info__item",children:P.jsxs("div",{className:"puzzle--webBuilder__select",children:[P.jsx("div",{className:"puzzle--webBuilder__select--label",children:P.jsx("div",{dir:"auto",children:n("webbuilder.textSelect.title")})}),P.jsxs("div",{dir:"auto",className:m,onClick:()=>_(),role:"presentation",children:[P.jsx(k$,{item:o,translate:n}),P.jsx("span",{className:"icon-down-arrow"}),P.jsx("div",{className:"puzzle--webBuilder__dropdown",children:e.map(v=>v instanceof Object?P.jsxs("span",{role:"button",tabIndex:0,onKeyUp:()=>{},className:"puzzle--webBuilder__dropdown--option",onClick:()=>{l(v)},children:[P.jsx("span",{children:n(v.title)}),P.jsx("span",{className:"subtitle",children:n(v.desc)})]},v.title):P.jsx("span",{role:"button",tabIndex:0,onKeyUp:()=>{},className:"puzzle--webBuilder__dropdown--option",onClick:()=>{l(v)},children:n(v)},v))})]})]})})}),P.jsxs("div",{className:"popup--buttons",children:[P.jsx("button",{type:"button",className:"gat--btn gat--btn__secondary",onClick:u,children:n("webbuilder.cancel")}),P.jsx("button",{type:"button",className:`gat--btn gat--btn__primary ${c?"disabled":""}`,disabled:c,onClick:()=>{s("click-ui"),t(o)},children:n("webbuilder.save")})]})]})})}const I$=Object.freeze(Object.defineProperty({__proto__:null,PopupColorComponent:YI,PopupImageComponent:B$,PopupTextComponent:F$},Symbol.toStringTag,{value:"Module"})),U$={username:null,logo:null,userImage:null,bgImage:null,color:""},H$={bankTitle:null,color:"",btnColor:"",work:null,home:null,mail:null,studies:null,bgImage:null};function G$({type:u,close:t,translate:e,soundActions:n,...i}){const s=I$[u];return s?P.jsx(s,{type:u,...i.props,closingAction:t,translate:e,soundActions:n}):null}function V$({feed:u,resolved:t,translate:e,onNext:n}){return u==="success"?P.jsx(rz,{success:!0,showButton:!t,onNext:n,translate:e}):u==="failed"?P.jsx(rz,{onNext:n,translate:e}):null}function Y$({type:u,info:t,emitEvent:e,getEvent:n,setResolveAction:i,soundActions:s,disableExit:o,keyboardControl:l}){const[c,d]=G.useState(!1),[f,m]=G.useState(!1),[_,v]=G.useState(!1),[S,y]=G.useState(!1),[x,T]=G.useState(!1),[A,E]=G.useState(null),C=u==="facebook",R=C?O$:D$,[N,M]=G.useState({type:"",props:{}}),[O,B]=G.useState(U$),[L,I]=G.useState(H$),[F]=s,H=dt=>n({type:"translate",payload:dt}),W=()=>{M({type:"",props:{}})},Z=(dt,pt={})=>{M({type:dt,props:pt})},X=()=>{if(t.solution){const{rewards:dt}=t.solution.right,{rewards:pt}=t.solution.wrong;F(_?"fail":"score"),e({type:"addPoints",complex:!0,finish:!0,payload:_?pt:dt}),e({type:"passPuzzle"})}},$=l({disabled:A!=="success",forward:X,escape:X});G.useEffect(()=>$(),[$]);const nt=(dt,pt)=>{const it=Object.keys(dt),lt={existing:0,equal:0};return it.forEach(ht=>{pt[ht]!==null&&pt[ht]!==""&&(lt.existing+=1),dt[ht]===pt[ht]&&(lt.equal+=1)}),lt},Q=(dt,pt)=>{const it=Object.keys(R.header).length,lt=Object.keys(R.body).length,ht=nt(R.header,dt),St=nt(R.body,pt),_t=St.existing+ht.existing===it+lt,bt=St.equal+ht.equal===it+lt;return{exist:_t,equal:bt}},tt=()=>{F("click-ui");const{exist:dt,equal:pt}=Q(O,L);e({type:"hidePuzzleButtons",payload:!0}),dt&&!pt?(x&&T(!1),E("failed"),v(!0),e({type:"failPuzzle"})):dt&&pt&&(x&&(o(!1),T(!1)),y(!0),E("success"))},rt=dt=>{if(Object.keys(dt).length>0){const pt={...O,...dt};B(pt),W();const{exist:it}=Q(pt,L);T(!!it)}},ut=dt=>{if(Object.keys(dt).length>0){const pt={...L,...dt};I(pt),W();const{exist:it}=Q(O,pt);T(!!it)}};G.useEffect(()=>{i(dt=>{m(!0),E("success"),d(!1),setTimeout(()=>{E(""),dt()},4e3)}),o(!0)},[i,o,t.resolve.rewards,e]);const st={showingReference:c||f,isFacebook:C,openPopup:Z,usingTemplate:R,translate:H},ot=()=>{A==="failed"?(E(null),e({type:"hidePuzzleButtons",payload:!1})):A==="success"&&X()};return P.jsxs(P.Fragment,{children:[P.jsx(G$,{type:N.type,...N,close:W,soundActions:s,translate:H}),P.jsxs("div",{className:"puzzle--webBuilder",children:[P.jsx(j$,{backActive:c,displayButton:!f&&!S,translate:H,clickAction:()=>{F("click-ui"),d(!c)}}),P.jsx(BI,{...st,header:O,onSave:rt}),C?P.jsx(GI,{...st,header:O,onSave:rt}):null,P.jsx(VI,{...st,body:L,onSave:ut})]}),!x&&!c?P.jsx(V$,{feed:A,onNext:ot,resolved:f,translate:H}):null,x&&!c?P.jsx(z$,{onPublish:tt,translate:H}):null]})}function K$({img:u}){const e=(u||{}).url;return P.jsx("img",{src:e,alt:""})}function X$({text:u,hasImage:t}){return u?P.jsx("div",{className:`card-selector-item__textbox ${t?"":"card-selector-item__textbox--noimage"}`,children:P.jsx("div",{className:"card-selector-item__text",children:Oi(u)})}):null}function q$({order:u}){return u?P.jsx("div",{className:"card-selector-item__order",children:P.jsx("div",{children:u})}):null}function Q$({order:u}){return P.jsxs("div",{className:"card-selector-item__feedback card-selector-item__feedback--success ",children:[P.jsx(q$,{order:u}),P.jsx("div",{className:"card-selector-item__feedbackicon",children:P.jsx("div",{className:"icon-check-circle-black"})})]})}function W$(){return P.jsx("div",{className:"card-selector-item__feedback card-selector-item__feedback--error",children:P.jsx("div",{className:"card-selector-item__feedbackicon",children:P.jsx("div",{className:"icon-error-circle-black"})})})}function Z$({flipped:u,correct:t,order:e,wrongOrder:n,isEmpty:i}){return!i&&u&&t&&!n?P.jsx(Q$,{order:e}):!i&&u?P.jsx(W$,{}):null}function KI({card:u={},handleClick:t=()=>{},flipped:e=!1,cardIndex:n=0,wrongOrder:i=!1,documentsDict:s={}}){const o=()=>!(u.img||u.text),l=()=>!!(e&&!u.correct||!e);return P.jsxs("button",{"data-testid":`card-${n}`,type:"button",order:u.order,onClick:()=>{!o()&&l()&&t(n)},className:["unset-button card-selector-item",o()&&"card-selector-item--empty",(u.textWithBackground||u.textWithBackground===void 0)&&"card-selector-item--text-with-background",u.verticalAlignmentText&&`card-selector-item--with-text-at-${u.verticalAlignmentText}`].filter(Boolean).join(" "),"aria-label":u.text?u.text:null,children:[u.img&&P.jsx(K$,{img:u.img}),u.text&&P.jsx(X$,{text:u.text,hasImage:!!u.img}),P.jsx(Z$,{isEmpty:o(),flipped:e,wrongOrder:i,order:u.order,correct:u.correct})]})}KI.propTypes={wrongOrder:Zt.bool,handleClick:Zt.func,cardIndex:Zt.number,flipped:Zt.bool,documentsDict:Zt.shape({}),card:Zt.shape({correct:Zt.bool,order:Zt.number,text:Zt.string,imgId:Zt.string,status:Zt.string})};function J$({cards:u=[],currentOrder:t=1,setCurrentOrder:e=()=>{},handleError:n=()=>{},feedbackIsShown:i=!1,resolvePuzzle:s=!1,soundActions:o,onFinish:l=()=>{},handleSuccess:c=()=>{},resolveWithAnyCard:d=!1,documentsDict:f={}}){const[m,_]=G.useState(Array(u.length).fill(!1)),[v,S]=G.useState(Array(u.length).fill(!1)),[y,x]=G.useState(0),[T,A]=G.useState(!1),[E]=o,C=u.filter(F=>F.correct===!0).length,R=u.filter(F=>F.order).length>0,N=G.useCallback(()=>{_(Array(u.length).fill(!1)),S(Array(u.length).fill(!1)),x(0),e(1)},[u.length,e]),M=()=>{setTimeout(()=>{N()},1e3)};function O(F,H=F){const W=Array.from(m);W[F]=H,_(W)}const B=G.useCallback(()=>{const F=[];u.forEach((H,W)=>{H.correct===!0&&F.push(W)}),_(F)},[u]);G.useEffect(()=>{s&&B()},[B,s]),G.useEffect(()=>{(d&&y||y===C&&C>0)&&(l(),A(!0),x(0))},[y,l,C,d]);const L=F=>{O(F),c(u[F].id||null),x(y+1)},I=F=>{var H,W;if(!T&&!i)if(E("click-ui"),u[F].correct&&!R)L(F);else if(R){if(u[F].order===t)e(t+1),L(F);else if(O(F),u[F].order!==t){const Z=Array.from(v);Z[F]=F,S(Z),n(((H=u[F])==null?void 0:H.id)||null,u[F].correct),M()}}else n(((W=u[F])==null?void 0:W.id)||null),O(F),setTimeout(()=>{O(F,!1)},1e3)};return P.jsx("div",{className:`cards-selector__content cards-selector__content-${u.length}`,children:u&&u.map((F,H)=>P.jsx(KI,{setCurrentOrder:e,card:F,handleClick:()=>I(H),flipped:m.includes(H),wrongOrder:v.includes(H),cardIndex:H},`cardPuzzle ${u.indexOf(F)}`))})}function $$({emitEvent:u,getEvent:t,info:e={},cards:n=[],resolveWithAnyCard:i=!1,specificFeedbacks:s,disableExit:o,setResolveAction:l,soundActions:c,backgroundImage:d={url:""},nodeId:f,keyboardControl:m,hideBackgroundImageTheme:_=!1}){var ot,dt;const[v,S]=G.useState(!1),[y,x]=G.useState(1),[T,A]=G.useState(!1),[E,C]=G.useState(!1),[R,N]=G.useState(!1),[M,O]=G.useState([]),[B,L]=G.useState(!1),[I,F]=G.useState(""),[H]=c,W=pt=>t({type:"translate",payload:pt}),Z=`cards-selector-puzzle_${f}`,X=G.useCallback(pt=>{A(!1),N(!1),u({type:"hidePuzzleButtons",payload:!1}),u({type:"addPoints",complex:!0,finish:!0,payload:pt}),u({type:"passPuzzle"})},[u]),$=G.useCallback(()=>{var ht,St;u({type:"hidePuzzleButtons",payload:!0}),A(!0);const{rewards:pt}=((ht=e==null?void 0:e.solution)==null?void 0:ht.right)||{},it=((St=s==null?void 0:s.correctFeedbacks)==null?void 0:St.map(_t=>_t.rewards).flat())||[],lt=[...M,...pt,...it];H("score"),X(lt)},[M,X,u,(ot=e==null?void 0:e.solution)==null?void 0:ot.right,H,s==null?void 0:s.correctFeedbacks]),nt=()=>{S(!0),e.solution.right.desc&&!(s!=null&&s.specificCorrectFeedbacks)&&F(e.solution.right.desc),N(!0)},Q=()=>{T||v?$():(A(!1),o(!1),N(!1),u({type:"hidePuzzleButtons",payload:!1})),F("")},tt=pt=>{if(C(!0),s!=null&&s.specificCorrectFeedbacks){const it=s.correctFeedbacks.find(lt=>lt.id===pt);it!=null&&it.desc&&(F(it.desc),N(!0))}H("score"),u({type:"hidePuzzleButtons",payload:!0})},rt=(pt,it=!1)=>{var lt,ht;if(C(!1),it)F((lt=e.orderFeedback)==null?void 0:lt.desc),N(!0),O([...M,...((ht=e.orderFeedback)==null?void 0:ht.rewards)||[]]);else if(s!=null&&s.specificWrongFeedbacks){const St=s.wrongFeedbacks.find(_t=>_t.id===pt);St!=null&&St.desc?(F(St.desc),N(!0)):(N(!0),setTimeout(()=>{Q(),u({type:"hidePuzzleButtons",payload:!1})},2e3)),O([...M,...(St==null?void 0:St.rewards)||[]])}else e.solution.wrong.desc?(F(e.solution.wrong.desc),N(!0)):(N(!0),setTimeout(()=>{Q(),u({type:"hidePuzzleButtons",payload:!1})},3e3));o(!0),!(s!=null&&s.specificWrongFeedbacks)&&!it&&O([...M,...e.solution.wrong.rewards]),H("fail"),u({type:"hidePuzzleButtons",payload:!0}),u({type:"failPuzzle"})};G.useEffect(()=>{v&&o(!0)},[o,v]),G.useEffect(()=>{l(()=>{var it;u({type:"hidePuzzleButtons",payload:!0}),L(!0);const pt=[...M,...((it=e==null?void 0:e.resolve)==null?void 0:it.rewards)||{}];setTimeout(()=>{A(!1),N(!1),u({type:"hidePuzzleButtons",payload:!1}),u({type:"puzzleAction",action:"resolve",payload:{element:Z,rewards:pt,finish:!0}})},2e3)})},[l,o,M,(dt=e==null?void 0:e.resolve)==null?void 0:dt.rewards,u,Z]);const ut=G.useMemo(()=>{let pt="";return pt="cards-selector",d!=null&&d.url&&(pt+=" cards-selector--with-custom-bg"),_&&(pt+=" disable-background-image"),pt},[d==null?void 0:d.url,_]),st={backgroundImage:d!=null&&d.url?`url('${d.url}')`:""};return P.jsxs(P.Fragment,{children:[P.jsx("div",{className:ut,style:st,children:P.jsx(J$,{setCurrentOrder:x,currentOrder:y,cards:n,onFinish:nt,resolveWithAnyCard:i,handleError:rt,feedbackIsShown:R,resolvePuzzle:B,soundActions:c,handleSuccess:tt})}),R&&P.jsx(fd,{success:T||E,text:I,hasTimeout:!I,translate:W,functionOnClose:Q,keyboardControl:m})]})}function ttt(){return P.jsx("span",{className:"fakecursor",children:"|"})}function ett({delay:u=0,index:t,length:e,textToPrint:n="",setDoneTyping:i=()=>{},nextParagraphType:s="",isWriting:o=()=>{}}){const[l,c]=G.useState(!0),[d,f]=G.useState(""),[m,_]=G.useState(!1);G.useEffect(()=>{_(t===e-1)},[t,e]);const v=T=>{if(!T||!T.length)return"";const A=T.replace(/<script.*?>.*?<\/script>/gim,""),E=document.createElement("DIV");return E.innerHTML=A,E.textContent||E.innerText||""};G.useEffect(()=>{const T=()=>{const E=n.trim().split(" ");return A(E,E.length-1).join(" ")},A=(E,C)=>{if(C<0)return[""];const R=[...E];if(v(E[C]).length!==0){const N=E[C];return R[C]=`<span class="lastWord" >${N}</span>`,R}return A(E,C-1)};s==="election"?f(T()):setTimeout(()=>{f(n)},200)},[s,n]);const S=()=>{i(!0),c(!1)},y=n.split("<p>");y.shift();const x=y.length>1;return l&&n!==""&&d!==""?P.jsx("span",{className:`writer-inline ${x?"multiple":""} ${m?"Typist":""}`,"data-testid":`result-${t}`,children:P.jsx(QE,{startDelay:300,avgTypingDelay:u,stdTypingDelay:10,onCharacterTyped:o,onTypingDone:S,cursor:{hideWhenDone:!0,hideWhenDoneDelay:200},blink:!0,children:Oi(n)})}):P.jsxs("span",{className:`writer-inline ${x?"multiple":""} ${m?"Typist":""}`,"data-testid":`result-${t}`,children:[Oi(d),s==="election"&&m&&P.jsx(ttt,{})]})}function ntt({option:u={},decisionInspected:t,setCurrentDecisionSelected:e=()=>{},index:n=0,setCurrentDecisionInspected:i=()=>{},soundActions:s}){const[o]=s,l=_=>_.previewText!==""?Oi(_.previewText):Oi(_.fullText),c=_=>_.previewText!==""?t===n?"icon-eye inspected":"icon-eye":"",d=()=>{o("click-ui"),e(n)},f=_=>{_.keyCode===13&&m(_)},m=_=>{_.preventDefault(),_.stopPropagation(),t===n?(_.target.style.background="",i("")):i(n)};return P.jsxs("div",{className:"single-election",children:[P.jsxs("button",{className:"single-election__cta",type:"button",onClick:()=>d(),children:[P.jsx("div",{className:"single-election__btn",children:P.jsx("span",{children:l(u)})}),P.jsx("div",{onClick:m,onKeyDown:f,className:c(u),"aria-label":"Inspect",role:"button",tabIndex:0})]}),t===n&&P.jsx("div",{className:"single-election__complete",children:P.jsx("div",{children:Oi(u.fullText)})})]})}function itt({decisionInspected:u,opt:t,index:e,setCurrentDecisionSelected:n,setCurrentDecisionInspected:i,soundActions:s}){return t&&t.fullText&&t.fullText!==""?P.jsx(ntt,{decisionInspected:u,setCurrentDecisionSelected:n,setCurrentDecisionInspected:i,option:t,soundActions:s,index:e}):null}function att({textWithOpts:u=[],setCurrentDecisionSelected:t=()=>{},printed:e=()=>{},soundActions:n}){const[i,s]=G.useState("");return G.useEffect(()=>{e()},[e]),P.jsx("div",{className:`elections-box pos${i+1}-${u.filter(o=>!!o.fullText).length}`,children:u&&u.map((o,l)=>P.jsx(itt,{opt:o,soundActions:n,index:l,setCurrentDecisionSelected:t,setCurrentDecisionInspected:s,decisionInspected:i},l))})}function stt({decision:u={}}){const{title:t,body:e}=u.feedback;return P.jsx("div",{children:e!==""&&P.jsxs("div",{className:"writer-feedback-decision-item",children:[t&&P.jsxs("div",{dir:"auto",className:"writer-feedback-decision-item__title",children:[t," "]}),e&&P.jsxs("div",{dir:"auto",className:"writer-feedback-decision-item__message",children:[u.correct?P.jsx("span",{className:"icon-check-circle-black color--success"}):P.jsx("span",{className:"icon-error-circle-black color--error"}),P.jsx("span",{children:e})]})]})})}function rtt({getEvent:u,closingAction:t=()=>{},feedbackIsDone:e=()=>{},decisionsList:n=[],texts:i=[],retryAction:s=()=>{},retry:o=!1,skip:l=!1,checkCorrect:c=()=>{},rewardsStack:d,setFailed:f,soundActions:m,emitEvent:_=()=>{},nodeId:v="0"}){const[S]=m,y=T=>u({type:"translate",payload:T}),x=()=>{S("click-ui"),t(),f(),e()};return P.jsxs("div",{className:`writer-feedback ${d.length?"":"start"}`,children:[P.jsx("div",{className:"writer-feedback__title",children:y("puzzles.feedback")}),P.jsx("div",{className:"writer-feedback__decisions",children:n.map(T=>i[T.currenTextParagraph].electionTexts[T.index].feedback.body?P.jsx(stt,{decision:i[T.currenTextParagraph].electionTexts[T.index]},T.index):null)}),P.jsxs("div",{className:"writer-feedback__btns",children:[l&&P.jsx("button",{type:"button",className:"gat--btn gat--btn__secondary writer-feedback__btn-mobile",onClick:()=>{x()},children:y("puzzles.skip")}),o&&P.jsx("button",{type:"button",className:"gat--btn gat--btn__primary writer-feedback__btn-mobile",onClick:()=>{c()?x():(S("click-ui"),s())},children:y(c()?"puzzles.continue":"puzzles.retry")}),!o&&P.jsx("button",{type:"button",className:"gat--btn gat--btn__primary writer-feedback__btn-mobile",onClick:()=>x(),children:y("puzzles.continue")})]})]})}function ott({textToPrint:u="",correct:t=""}){const e=u.split("<p>");e.shift();const n=e.length>1;return P.jsx("span",{className:`writer-inline ${n?"multiple":""} ${t}`,children:Oi(u)})}function ltt({emitEvent:u=()=>{},getEvent:t,styles:e="",nodeId:n="0",retry:i=!1,skip:s=!1,type:o="",info:l={},setResolveAction:c,documentTitle:d="",documentTitle_labelId:f,texts:m=[],soundActions:_,backgroundImage:v,hideBackgroundImageTheme:S=!1}){const y=Lt=>t({type:"translate",payload:Lt}),x=G.useRef(),[T,A]=G.useState(!1),[E,C]=G.useState(!1),[R,N]=G.useState(0),[M,O]=G.useState({[`text_${R}`]:{...m[R],id:`text_${R}`,correct:""}}),[B,L]=G.useState(!1),[I,F]=G.useState([]),[H,W]=G.useState(!1),[Z,X]=G.useState(!1),[$,nt]=G.useState(!1),[Q,tt]=G.useState(!0),[rt,ut]=G.useState([]),[st,ot]=G.useState(!0),[dt]=_,pt=G.useRef({}),it=Lt=>{let Yt;return Lt.electionTexts.forEach((ee,Be)=>{ee.correct&&(Yt=Be)}),Yt},lt=G.useCallback(Lt=>I.filter(ee=>ee.currenTextParagraph===Lt)[0].fullText_labelId,[I]),ht=G.useCallback(()=>m.map((Lt,Yt)=>{if(Lt.type==="fixed")return Lt.fullText_labelId??Lt.fullText;if(Lt.type==="election"){const ee=it(Lt);return ee>=0?Lt.electionTexts[ee].fullText_labelId:lt(Yt)}return""}),[lt,m]),St=12,_t=()=>{if(I){const Lt=I.length;let Yt=0;for(let ee=0;ee<Lt;ee+=1)I[ee].isCorrect==="none"&&(Yt+=1);return Yt===Lt}return!0},bt=G.useCallback(()=>{if(I){const Lt=I.length;let Yt=0;for(let ee=0;ee<Lt;ee+=1)I[ee].isCorrect==="green"&&(Yt+=1);return Yt===Lt}return!0},[I]),yt=()=>!!(I&&I.length),Tt=()=>I.find(Lt=>{const{feedback:Yt}=m[Lt.currenTextParagraph].electionTexts[Lt.index];return Yt.body!==""}),wt=G.useCallback(()=>{const Lt=ht();u({type:"finishMedia",payload:{name:f,text:Lt,documentType:o,type:"text"}})},[ht,f,u,o]),It=G.useCallback(Lt=>{const Yt=bt();dt(E?"fail":Yt?"score":"fail"),u({type:"addPoints",complex:!0,finish:!0,payload:Lt||rt,onFinish:o!=="view"?wt:null}),u({type:"passPuzzle"})},[bt,u,E,wt,dt,rt,o]);G.useEffect(()=>{T&&ot(!1),c(()=>{It(l.resolve.rewards)})},[u,It,T,wt,l.resolve.rewards,c,o]);const Ft=()=>{A(!1),N(0),F([]),ut([]),C(!1),nt(!1),L(!1),X(!1),W(!1),O({text_0:{...m[0],id:"text_0",correct:""}}),tt(!0),u({type:"addPoints",complex:!0,finish:!1,payload:rt}),u({type:"failPuzzle"})},$t=()=>{yt()?_t()&&(W(!0),It()):(W(!0),nt(!0),It()),H?(tt(!1),$&&!Z?X(!0):(Z||!$&&!Z)&&(!$&&!Z&&i?bt()?It():Ft():It())):(W(!0),Tt()&&nt(!0))},Jt=()=>{const Lt=m[R].electionTexts.filter(ee=>ee.correct).length,Yt=m[R].electionTexts;return Lt===0||Lt===Yt},we=Lt=>{const Yt=m[R].electionTexts[Lt],ee=Yt.feedback.rewards;ee&&ee[0]&&ee[0].points&&(pt.current[`t${R}_e${Lt}`]||(Yt.correct&&(pt.current[`t${R}_e${Lt}`]=!0),ut([...rt,...ee])));const Be=()=>Jt()?"none":Yt.correct?"green":"red",Ke={currenTextParagraph:R,fullText:Yt.fullText,index:Lt,isCorrect:Be()};O({...M,[`text_${R}`]:{type:"fixed",fullText:Yt.fullText,correct:Ke.isCorrect}}),F([...I,Ke])},ze=()=>{x.current.scrollTop=x.current.scrollHeight+100},Se=()=>{if(x.current.querySelector(".wrapfixed").offsetHeight>x.current.offsetHeight){const Lt=x.current.querySelector(".wrapfixed").offsetHeight;x.current.scrollTo({top:Lt,behavior:"smooth"})}},Te=(Lt,Yt,ee)=>{const Be=Lt.fullText,Ke=m[ee+1]?m[ee+1].type:"",Gt=M[`text_${ee+1}`]&&M[`text_${ee+1}`].type?M[`text_${ee+1}`].type:Ke;return P.jsx(ett,{length:Yt,doneTyping:B,index:ee,delay:St,setDoneTyping:L,nextParagraphType:Gt,isWriting:Se,textToPrint:Be},ee.toString())},pn=(Lt,Yt)=>{const ee=Lt.fullText;return P.jsx(ott,{textToPrint:ee,correct:Lt.correct},Yt)},Mn=Lt=>P.jsx(att,{soundActions:_,textWithOpts:Lt.electionTexts,setCurrentDecisionSelected:we,printed:ze,disableExit:st},Lt.electionTexts),zt=(Lt,Yt,ee)=>Lt.type==="fixed"?Te(Lt,Yt,ee):Mn(Lt);G.useEffect(()=>{B===!0&&(()=>{m[R+1]?(O({...M,[`text_${R+1}`]:{...m[R+1],id:`text_${R+1}`,correct:""}}),N(R+1),L(!1)):A(!0)})()},[B,R,M,m]);const te=G.useMemo(()=>{let Lt=`writer-puzzle writer-puzzle--${e}`;return S&&(Lt+=" disable-background-image"),Lt},[S,e]),pe={backgroundImage:v!=null&&v.url?`url('${v.url}')`:""};return P.jsx(P.Fragment,{children:P.jsx("div",{className:te,style:pe,children:P.jsxs("div",{className:"writer-puzzle__overlay",children:[Z&&P.jsx(rtt,{getEvent:t,texts:m,setFailed:()=>C(!0),decisionsList:I,closingAction:$t,retry:i,skip:s,checkCorrect:bt,retryAction:Ft,rewardsStack:rt,nodeId:n,soundActions:_}),!Z&&P.jsxs("div",{className:"writer-puzzle__container",children:[P.jsx("div",{dir:"auto",className:"writer-puzzle__title",children:d!==""&&d}),P.jsx("div",{className:"writer-puzzle__body",dir:je()?"rtl":"auto",children:P.jsxs("div",{className:"writer-puzzle__scroll",tabIndex:0,style:{overflowX:"hidden",padding:"0 0 20px 0",height:"95%"},ref:x,children:[P.jsx("div",{className:"wrapfixed",children:Q&&!H&&Object.values(M).map((Lt,Yt)=>zt(Lt,Object.values(M).length-1,Yt))}),H&&Object.values(M).map((Lt,Yt)=>pn(Lt,Yt))]})}),T&&P.jsx("div",{className:"writer-puzzle__footer",children:P.jsx("button",{type:"button",className:"gat--btn gat--btn__primary",onClick:$t,children:y("screens.continue")})})]})]})})})}function XI({document:u,name:t,isWallpaper:e}){const n=(u==null?void 0:u.url)||null;return P.jsx("div",{className:`puzzle--terminal__image ${e?"puzzle--terminal__image--wallpaper":""}`,children:n?P.jsx("img",{src:n,alt:t||""}):null})}const utt={image:"image-icon",video:"video-icon",embedded_video:"video-icon",pdf:"pdf-icon",terminal:"console-icon",cracker:"cracker-icon",folder:"folder-icon",world:"world-icon"};function ctt({file:u,solution:t,showContinue:e,info:n,resolvePuzzle:i,backFile:s,translate:o,soundActions:l,keyboardControl:c}){var A;const{fileId:d}=u,f=((A=u.document)==null?void 0:A.url)||"",[m]=l,_={image:{component:XI,props:{...u,url:f,soundActions:l}},video:{component:_5,props:{...u,url:f,endVideo:i,soundActions:l,translate:o}},embedded_video:{component:_5,props:{...u,url:f,soundActions:l}},pdf:{component:y5,props:{...u,url:f,translate:o,soundActions:l,emitNumberOfPages:()=>{},endPdf:()=>{},keyboardControl:c}},application:{component:y5,props:{...u,url:f,translate:o,soundActions:l,emitNumberOfPages:()=>{},keyboardControl:c,endPdf:()=>{}}}};if(!_[u.type])return null;const v=_[u.type].component,S=_[u.type].props,x=u.name.replace(/.jpg|.png|.pdf|.mp4/gi,""),T=t.fileId;return P.jsx(P.Fragment,{children:P.jsxs("div",{className:"puzzle--terminal__visor",children:[P.jsx(fd,{playSound:m,shortText:!0,success:d===T,text:d===T?n.solution.right.desc:n.solution.wrong.desc,functionOnClose:d===T?i:s,additionalStyle:utt[u.type],secondText:x,translate:o,puzzleHeaderClass:"puzzle--terminal__visor--message",keyboardControl:c}),P.jsx("div",{className:"puzzle--terminal__visor--body",children:P.jsx(v,{...S})}),P.jsx("div",{className:"puzzle--terminal__button",children:d===T&&e?P.jsx("button",{className:"gat--btn gat--btn__primary green",type:"button",onClick:i,children:o("screens.continue")}):null})]})})}const qI={image:"image-icon",video:"video-icon",embedded_video:"video-icon",pdf:"pdf-icon",terminal:"console-icon",cracker:"cracker-icon",folder:"folder-icon",application:"pdf-icon",world:"world-icon"};function MM({item:u,selectItem:t}){const e=u.name;return P.jsx("li",{className:"puzzle--terminal__folder__list--item",children:P.jsxs("button",{type:"button",title:e,className:`unset-button puzzle--terminal__item id-${u.id}`,onClick:()=>u.fixed?null:t(u),children:[P.jsx("span",{className:`puzzle--terminal__icon ${qI[u.type]}`}),P.jsx("span",{children:e})]})})}function dtt({initFile:u,backFile:t,file:e,closeFolder:n,selectItem:i}){return P.jsx(P.Fragment,{children:e.id==="init"?P.jsx("ul",{className:"puzzle--terminal__folder__list desktop",children:e.children.map((s,o)=>P.jsx(MM,{selectItem:i,item:s},`${`${o}${s.id}`}`))}):P.jsxs(P.Fragment,{children:[P.jsx("ul",{className:"puzzle--terminal__folder__list desktop",children:u.children.map((s,o)=>P.jsx(MM,{selectItem:i,item:s},`${o+s.id}`))}),P.jsxs("div",{className:"puzzle--terminal__folder",children:[P.jsxs("div",{className:"puzzle--terminal__folder--head",children:[P.jsx("span",{role:"button",onKeyUp:()=>{},"aria-label":"back file",tabIndex:0,onClick:()=>t(),className:"puzzle--terminal__folder--back",children:P.jsx("span",{className:"icon-back"})}),P.jsx("span",{className:`puzzle--terminal__folder--head__icon ${qI[e.type]}`}),P.jsx("span",{className:"text",children:e.name}),P.jsx("span",{role:"button",tabIndex:0,"aria-label":"close folder",onKeyUp:()=>{},onClick:()=>n(),className:"puzzle--terminal__folder--close",children:P.jsx("span",{className:"icon-close"})})]}),P.jsx("div",{className:"puzzle--terminal__folder--body",children:P.jsx("ul",{className:"puzzle--terminal__folder__list",children:e.children.map((s,o)=>P.jsx(MM,{selectItem:i,item:s},`${o+s.id}`))})})]})]})})}const htt="https://min.gamelearn.io/css-resources/gamelearn/resources/cosmos-bg-min.jpg",ftt=[{fileId:"ids1",type:"world",fixed:!0,name:"Web builder 3.0"},{fileId:"ids2",type:"cracker",fixed:!0,name:"Decoder.exe"},{fileId:"ids3",type:"terminal",fixed:!0,name:"terminal"}];function ptt({emitEvent:u,getEvent:t,items:e,backgroundImage:n,solution:i,info:s,disableExit:o,soundActions:l,setResolveAction:c,nodeId:d,keyboardControl:f}){const[m,_]=G.useState({}),[v]=G.useState(!1),[S,y]=G.useState([]),x=G.useRef([]),[T]=l,A=L=>t({type:"translate",payload:L}),E=`terminal-puzzle_${d}`,C=G.useMemo(()=>({name:"init",children:[...ftt,...e],id:"init"}),[e]),R=G.useCallback(L=>{T("click-ui"),_(L),y([...S,L]),L.type!=="folder"&&(u({type:"hidePuzzleButtons",payload:!0}),o(!0))},[S,o,u,T]);G.useEffect(()=>{_(C),y([C])},[C]),G.useEffect(()=>{c(()=>{x.current=[...x.current,...s.resolve.rewards];const L=x.current.map(I=>{var $;const{name:F,points:H,type:W,id:Z}=I,X={name:F,points:H,type:W,id:Z};return($=I==null?void 0:I.document)!=null&&$.resourceId&&(X.id=I.document.resourceId),X});u({type:"hidePuzzleButtons",payload:!1}),u({type:"puzzleAction",action:"resolve",payload:{element:E,rewards:L,finish:!0}})})},[c,s.resolve.rewards,u,E]);const N=()=>{x.current=[...x.current,...s.solution.wrong.rewards];const L=S.length-1,I=S.filter((F,H)=>L>H);_(S[L-1]),y(I),o(!1),u({type:"hidePuzzleButtons",payload:!1})},M=()=>{T("click-ui");const L=S[0];_(L),y([L])},O=()=>{x.current=[...x.current,...s.solution.right.rewards];const L=x.current.map(I=>{var $;const{name:F,points:H,type:W,id:Z}=I,X={name:F,points:H,type:W,id:Z};return($=I==null?void 0:I.document)!=null&&$.resourceId&&(X.id=I.document.resourceId),X});u({type:"hidePuzzleButtons",payload:!1}),T("score"),u({type:"addPoints",complex:!0,finish:!0,payload:L}),u({type:"passPuzzle"})},B=(n==null?void 0:n.url)||htt;return P.jsx("div",{className:"puzzle--terminal",children:m.children?P.jsxs(P.Fragment,{children:[P.jsx(XI,{isWallpaper:!0,document:{url:B}}),P.jsx(dtt,{backFile:N,initFile:C,selectItem:R,breadcrumb:S,closeFolder:M,file:m,translate:A})]}):P.jsx(ctt,{soundActions:l,backFile:N,resolvePuzzle:O,info:s,showContinue:!v,solution:i,file:m,translate:A,keyboardControl:f})})}function mtt({area:u,image:t,resolveObject:e,info:n,hasHighlights:i,getEvent:s,consume:o,disableExit:l,emitEvent:c,soundActions:d,keyboardControl:f}){const{solution:m}=n,_=G.useRef(),v=G.useRef(),S=G.useRef(),y=G.useRef(),x=G.useRef({}),[T,A]=G.useState(""),[E,C]=G.useState(!1),[R,N]=G.useState(),[M]=G.useState(new window.Image),O=G.useRef([]),[B]=d,L=st=>s({type:"translate",payload:st});G.useEffect(()=>{l(T!=="")},[T,l]);const I=(st,ot)=>(st.x+st.width>ot.x&&st.x+st.width<=ot.x+ot.width||ot.x+ot.width>st.x&&ot.x+ot.width<=st.x+st.width)&&(st.y+st.height>ot.y&&st.y+st.height<=ot.y+ot.height||ot.y+ot.height>st.y&&ot.y+ot.height<=st.y+st.height),F=()=>{_&&i&&(_.current.to({duration:.25,opacity:.75}),v.current.to({duration:.25,opacity:.4}))},H=()=>{_&&i&&(_.current.to({duration:.25,opacity:0}),v.current.to({duration:.25,opacity:0}))},W=G.useCallback(st=>{let ot=!1;if(st){const dt=S.current;dt.setPointersPositions(st);const pt=dt.getPointerPosition(),it=_.current.getClientRect({relativeTo:dt});ot=I({...pt,width:1,height:1},it)}return ot},[]),Z=G.useCallback(st=>st&&e.uid===JSON.parse(st).uid,[e.uid]),X=G.useCallback(()=>{A(""),c({type:"hidePuzzleButtons",payload:!1}),c({type:"addPoints",complex:!0,finish:!0,payload:O.current}),c({type:"passPuzzle"}),o&&c({type:"consumeItem",payload:{uid:e.uid,targetId:e.uid,name:e.name}})},[o,c,e.name,e.uid]),$=G.useCallback(()=>{A("success"),c({type:"hidePuzzleButtons",payload:!0}),O.current=[...O.current,...m.right.rewards],n.solution.right.desc===""?setTimeout(()=>{X()},2e3):X()},[c,X,n.solution.right.desc,m.right.rewards]),nt=G.useCallback(()=>{A(""),c({type:"hidePuzzleButtons",payload:!1}),c({type:"failPuzzle"}),O.current=[...O.current,...m.wrong.rewards]},[c,m.wrong.rewards]),Q=G.useCallback(st=>{const ot=st.dataTransfer.getData("item");S.current.setPointersPositions(st);const dt=W(st);c({type:"hidePuzzleButtons",payload:!0}),dt&&Z(ot)?(A("success"),n.solution.right.desc===""&&$()):(A("failed"),n.solution.wrong.desc===""&&setTimeout(()=>{nt()},2e3))},[W,Z,c,$,nt,n.solution.right.desc,n.solution.wrong.desc]),tt=()=>{T==="success"?$():nt()};G.useEffect(()=>{const st=t.img.url||"";M.src=st,M.onload=()=>{y.current&&(x.current={x:y.current.clientWidth/2,y:y.current.clientHeight/2,width:M.width,height:M.height,offsetX:M.width/2,offsetY:M.height/2,scale:{x:Math.min(y.current.clientWidth/M.width,y.current.clientHeight/M.height),y:Math.min(y.current.clientWidth/M.width,y.current.clientHeight/M.height)}},C(!0))}},[M,t.img.url]);const rt=st=>{st!==null&&(_.current=st)},ut=st=>{if(st!==null&&(v.current=st,_.current)){const{x:ot,y:dt,width:pt,height:it}=_.current.getClientRect();st.setAttr("x",ot),st.setAttr("y",dt),st.setAttr("height",it),st.setAttr("width",pt)}};return G.useLayoutEffect(()=>{if(_.current&&E){const st=_.current.getClientRect({relativeTo:_.current.getParent()});N({x:st.x+st.width/2,y:st.y+st.height/2})}},[E]),P.jsxs("div",{className:"puzzle--drag__mask100",onDrop:Q,onDragOver:st=>{st.preventDefault()},children:[P.jsx("div",{className:"puzzle--drag__mask",children:P.jsx("div",{ref:y,"data-testid":"mask_canvas",className:"puzzle--drag__mask--canvas",children:E?P.jsx(DI,{ref:S,width:y.current.clientWidth,height:y.current.clientHeight,children:P.jsxs(NN,{children:[P.jsx(wI,{image:M,...x.current}),P.jsxs(P_,{...x.current,children:[R?P.jsx(MI,{transform:!0,groupProps:{id:"projection",...R},divProps:{style:{pointerEvents:"none"}},children:P.jsx("div",{style:{width:"50px",height:"50px",pointerEvents:"none"},id:"object-area-projection"})}):null,P.jsx(RI,{onMouseEnter:F,onMouseLeave:H,ref:rt,...u,shape:"poly",fill:"#262a31d9",stroke:"white",strokeWidth:1,opacity:0,dash:[3,2],closed:!0,draggable:!1})]}),P.jsx(YJ,{onMouseEnter:F,onMouseLeave:H,ref:ut,text:L("puzzle.drag.dropzone"),fontSize:12,align:"center",verticalAlign:"middle",fill:"#ffffff",opacity:0})]})}):null})}),T!==""?P.jsx(fd,{text:n.solution[T==="success"?"right":"wrong"].desc,success:T==="success",translate:L,playSound:B,functionOnClose:tt,keyboardControl:f}):null]})}const gtt=["A","B","C","D","E","F","G","H","I","J"];function vtt({disabled:u,answered:t,question:e,updateForm:n,result:i,correctQuestions:s,translate:o}){const[l,c]=G.useState(!1),d=e.answers.filter(y=>y.text),f=y=>{let x=!1;return i[e.id].find(T=>T.id===y)&&(x=!0),x},m=y=>{let x="";return l?(t&&f(y.id)&&(x="selected"),u&&f(y.id)&&s.includes(y.id)&&(x="success"),u&&f(y.id)&&!s.includes(y.id)&&(x="failed")):(t&&y.id===i[e.id][0].id&&(x="selected"),u&&y.id===i[e.id][0].id&&(x=i[e.id][0].isCorrect?"success":"failed")),x},_=y=>{const x=m(y);return x==="selected"?"icon-check-circle-black color--selected":x==="success"?"icon-check-circle-black color--success":x==="failed"?"icon-error-circle-black color--error":""},v=e.answers.filter(y=>y.isCorrect),S=y=>u&&y.feedback&&(m(y)==="failed"||m(y)==="success")&&(l&&f(y.id)||y.id===i[e.id][0].id);return G.useEffect(()=>{v.length===1?c(!1):c(!0)},[v.length,l,e.answers]),P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"test--questions__item",children:P.jsx("span",{children:e.text})}),l&&!u?P.jsx("div",{className:"test--questions__intertitle test--questions__intertitle--multiresponse",children:o("tests.chooseMoreOneAnswer")}):null,d.map((y,x)=>P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:"test--response__fakeinput",children:[l?P.jsx("input",{checked:t&&f(y.id),disabled:u&&!f(y.id),readOnly:u,type:"checkbox",id:y.id,onChange:()=>u?null:n(y,e.id,x,"isCheckbox",y.id)}):P.jsx(P.Fragment,{children:P.jsx("input",{checked:t&&y.id===i[e.id][0].id,disabled:u&&!m(y),type:"radio",name:"name",id:y.id,onChange:()=>u?null:n(y,e.id,x,"isRadio")})}),P.jsxs("label",{htmlFor:y.id,className:`test--response__item ${m(y)}`,children:[P.jsx("div",{className:"test--response__index",children:gtt[x]}),P.jsx("div",{className:"test--response__text",children:P.jsx("span",{children:y.text})}),P.jsx("div",{className:`test--response__icon ${_(y)}`})]})]},y.text),S(y)&&P.jsxs("div",{className:"test--feedback",children:[P.jsx("div",{children:P.jsx("b",{children:P.jsx("span",{children:P.jsx("span",{children:o("test.feedback")})})})}),P.jsx("span",{children:y.feedback})]})]}))]})}const oz=["A","B","C","D","E","F","G","H","I","J"];function ytt({selectedAnswers:u,correctQuestions:t,question:e,translate:n}){const i=l=>t.includes(l),s=(l,c)=>l.index<c.index?-1:l.index>c.index?1:0,o=u.sort(s);return P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"test--questions__item",children:P.jsx("span",{children:e})}),o.map(l=>P.jsxs("div",{className:"test--response__itemwrap",children:[P.jsxs("div",{className:`test--response__item ${i(l.id)?"success":"failed"}`,children:[P.jsx("div",{className:"test--response__index",children:oz[l.index]}),P.jsx("div",{className:"test--response__text",children:P.jsx("span",{children:l.text})}),P.jsx("div",{className:`test--response__icon ${i(l.id)?"icon-check-circle-black color--success":"icon-error-circle-black color--error"}`})]}),P.jsxs("div",{className:"test--feedback",children:[P.jsx("div",{children:P.jsx("b",{children:P.jsxs("span",{children:[n("test.feedback")," ",u.length>1?oz[l.index]:""]})})}),P.jsx("span",{children:l.feedback})]})]},l.text))]})}function _tt({questions:u,setTime:t,saveInterval:e,result:n,setTries:i,tries:s,time:o,showResults:l,answered:c,answerPage:d,updateForm:f,disabled:m,translate:_,soundActions:v,paused:S,view:y,correctQuestions:x,feedbacksOnlyWhenReview:T}){const A=document.querySelector(".test--container"),[E,C]=G.useState(0),[R,N]=G.useState(),M=u[E].id,[O]=v;G.useEffect(()=>{if(o>=0&&!m&&!S){const X=setInterval(()=>{R||t($=>$-1)},1e3);return e(X),()=>{clearInterval(X)}}},[m,R,S,e,t,o]);const B=()=>{A.scrollTo(0,0),O("click-ui"),c&&(n[M][0].feedback&&!m&&!T?N(!0):(d(!1),C(E+1)))},L=()=>{O("click-ui"),C(E-1)},I=()=>{A.scrollTo(0,0),u[E+1]?(N(!1),d(!1),C(E+1)):l()},F=()=>{A.scrollTo(0,0),i(s+1),n[M][0].feedback&&!m&&!T?N(!0):l()},H=Math.floor(o/60),W=o%60;G.useEffect(()=>{if(y==="review"){const X=n[`q${E}`][0].id,$=document.querySelector(`#${X}`);A.scrollTo(0,$.offsetTop)}},[E,A,n,y]);const Z=()=>{if(c){const X=x[u[E].id.substring(1)].answers,$=n[M],nt=$.find(tt=>tt.isCorrect===!1);let Q=0;return $.forEach(tt=>{X.includes(tt.id)&&(Q+=1)}),!nt&&Q===X.length}return!1};return P.jsxs(P.Fragment,{children:[y==="review"||R?P.jsx("div",{"data-testid":"feedbackWrapper",className:`test-feedback-header ${Z()?"success":"failed"}`,children:P.jsxs("h2",{children:[P.jsx("span",{className:`${Z()?"icon-correct-thumb":"icon-incorrect-thumb"}`}),P.jsx("span",{className:"test-feedback-header__title",children:Z()?_("tests.resolvedQuestion"):_("tests.notResolvedQuestion")})]})}):null,P.jsxs("div",{className:"test--questions",children:[P.jsx("div",{className:"test--questions__container",children:R?P.jsx(ytt,{selectedAnswers:n[M],correctQuestions:x[u[E].id.substring(1)].answers,question:u[E].text,translate:_}):P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:"test--questions__intertitle",children:[P.jsx("div",{children:je()?P.jsxs(P.Fragment,{children:[E+1,"/",u.length," ",P.jsx("span",{children:_("tests.question")})]}):P.jsxs(P.Fragment,{children:[P.jsx("span",{children:_("tests.question")})," ",E+1,"/",u.length]})}),y!=="review"&&o>=0?P.jsx("div",{dir:"ltr",className:`count-down ${o<10?"count-down--finalseconds":""}`,children:P.jsxs("div",{id:"test-time",children:[H<10?`0${H}`:H," : ",W<10?`0${W}`:W]})}):null]}),P.jsx(vtt,{result:n,disabled:m,answered:c,updateForm:f,question:u[E],correctQuestions:m?x[u[E].id.substring(1)].answers:[],translate:_},u[E].id)]})}),P.jsxs("div",{className:`test--buttons ${y==="review"?"reviewmode":"next"}`,children:[y==="review"?P.jsx("button",{disabled:E===0,id:"back-button",onClick:()=>L(),type:"button",className:`gat--btn__navigation ${E===0?"disabled":""}`,"aria-label":je()?_("survey.next"):_("survey.previous"),children:P.jsx("span",{className:je()?"icon-next":"icon-back"})}):null,!R&&u[E+1]?P.jsx("button",{disabled:!c,id:"next-button","data-testid":"nextButton",onClick:()=>B(),type:"button",className:`gat--btn__navigation ${c?"":"disabled"}`,"aria-label":je()?_("survey.previous"):_("survey.next"),children:P.jsx("span",{className:je()?"icon-back":"icon-next"})}):null,R?P.jsx("button",{id:"next-button","data-testid":"nextFeedbackButton",onClick:()=>I(),type:"button",className:"gat--btn__navigation",children:P.jsx("span",{className:je()?"icon-back":"icon-next"})}):null,!R&&u[E].id.substring(1)===(u.length-1).toString()?P.jsx("button",{disabled:!c,id:"continue-button","data-testid":"continueButton",onClick:()=>{O("click-ui"),c&&F()},type:"button",className:`gat--btn__navigation ${c?"":"disabled"}`,"aria-label":je()?_("survey.previous"):_("survey.next"),children:P.jsx("span",{className:je()?"icon-back":"icon-next"})}):null]})]})]})}function btt({result:u,time:t,mandatory:e,correctQuestions:n,isFirst:i,reviewTest:s,finishTest:o,restartTest:l,timeOver:c,timeOverText:d,getEvent:f,minimumPercentage:m}){const _=G.useRef(),[v,S]=G.useState(0),[y,x]=G.useState(),[T,A]=G.useState([]),[E,C]=G.useState([]),[R,N]=G.useState(),M=G.useCallback(()=>{const Q=[];return n.forEach(tt=>Q.push(tt.answers)),Q},[n]),O=G.useCallback(()=>{const Q=[];return Object.values(u).forEach(tt=>{if(tt.length>1){const rt=tt.find(st=>st.isCorrect===!1),ut=[];rt?Q.push([]):(tt.forEach(st=>{st.isCorrect&&ut.push(st.id)}),Q.push(ut))}else tt[0].isCorrect?Q.push([tt[0].id]):tt[0].isCorrect===!1&&Q.push("")}),Q},[u]),B=G.useCallback(()=>{let Q=0;if(E.length>0)return T.forEach((tt,rt)=>{tt.length>1?tt.every(ut=>{var st;return(st=E[rt])==null?void 0:st.includes(ut)})&&(Q+=1):tt.length===1&&E[rt]&&tt[0]===E[rt][0]&&(Q+=1)}),Q},[T,E]);G.useEffect(()=>{R===void 0&&(A(M),C(O),N(B))},[M,O,B,R]);const L=n.length,I=B()===L,F=R<m,H=R>=m,W=!e||H,Z=Math.trunc(v/L*100),X=(Q,tt)=>f({type:"translate",payload:Q,values:tt}),$={"--chart-color":"var(--color-error)"};G.useEffect(()=>{if(v<R){const Q=setInterval(()=>{S(tt=>tt+1)},100);return x(Q),()=>{clearInterval(Q)}}},[R,v]),G.useEffect(()=>{v>=R&&clearInterval(y)},[R,y,v]);const nt=()=>{_.current=!0,o()};return P.jsxs("div",{"data-testid":"resultsWrapper",className:`test--results ${F||c?"test--results--failed":""}`,children:[i&&I?P.jsxs("div",{"data-testid":"fireworks",className:"fireworks",children:[P.jsx("div",{className:"before"}),P.jsx("div",{className:"after"})]}):null,!c&&F?P.jsx("div",{className:"test--results__title",children:P.jsx("span",{children:X("tests.NotFinishedSuccessfully")})}):null,!c&&H||I?P.jsx("div",{className:"test--results__title",children:P.jsx("span",{children:X("tests.finishedSuccessfully")})}):null,c?P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"test--results__title",children:P.jsx("span",{children:d})}),P.jsx("div",{className:"test--results__time",id:"results-time",children:P.jsx("span",{children:X("tests.time",t)})})]}):null,P.jsxs("div",{className:`chart center chart${Z}`,children:[P.jsxs("div",{className:"chart-slice",children:[P.jsx("div",{className:"chart-bar",style:F||c?$:{}}),P.jsx("div",{className:"chart-fill",style:F||c?$:{}})]}),P.jsxs("span",{className:"chart-value",children:[P.jsxs("div",{className:"test--results__chart",children:[P.jsx("span",{"data-testid":"correctPoints",children:v}),P.jsxs("span",{"data-testid":"totalCorrectAnswers",children:["/",L]})]}),P.jsx("div",{className:"test--results__chart--label",children:P.jsx("span",{children:X("tests.success")})})]})]}),P.jsxs("div",{className:"test--results__minimum",children:[P.jsx("div",{className:"icon-bell"}),P.jsx("div",{children:X("tests.minimumQuestionsMessage",{minimumPercentage:m})})]}),P.jsxs("div",{className:"test--results__buttons",children:[c?null:P.jsx("button",{className:"gat--btn gat--btn__secondary",id:"review-button",onClick:()=>s(),type:"button",children:P.jsx("span",{children:X("tests.review")})}),W?null:P.jsx("button",{className:"gat--btn gat--btn__primary","data-testid":"restartButton",id:"restart-button",onClick:()=>l(),type:"button",children:P.jsx("span",{children:X("tests.restart")})}),W?P.jsx("button",{disabled:_.current===!0,className:`gat--btn gat--btn__primary ${_.current===!0&&"disabled"}`,"data-testid":"finishButton",id:"finish-button",onClick:()=>nt(),type:"button",children:P.jsx("span",{children:X("tests.continue")})}):null]})]})}function Stt({test:u,countdown:t={},emitEvent:e,getEvent:n,soundActions:i,audio:s,required:o,pause:l,minimumPercentage:c=100,feedbacksOnlyWhenReview:d}){const{questions:f}=u,[m,_]=G.useState({}),[v,S]=G.useState(),[y,x]=G.useState(0),[T,A]=G.useState([]),[E,C]=G.useState(t.time),[R,N]=G.useState(!1),[M,O]=G.useState("test"),[B,L]=G.useState(!0),[I,F]=G.useState({}),[H,W]=G.useState({}),[Z,X]=G.useState(!1),$=o||u.required||!1,nt=G.useRef({}),[Q,tt]=G.useState(),[rt,ut]=i,st=(ht,St,_t,bt,yt)=>{const Tt={...ht,index:_t};if(y>0&&(Tt.rewards=Tt.rewards.filter(It=>!H[ht.id]||It.points<0)),m[St]){const It=m[St].find(Ft=>Ft.id===yt);if(It){if(It.id===ht.id){const Ft=m[St].find(Jt=>Jt.id===yt),$t=m[St].indexOf(Ft);if(m[St].splice($t,1),m[St].length===0){N(!1);return}}}else m[St].push(Tt)}else m[St]=[Tt];let wt;bt==="isRadio"?wt={...m,[St]:[Tt]}:wt={...m},_(wt),F(wt),W({...H,[ht.id]:{...ht}}),N(!0)};G.useEffect(()=>{s!=null&&s.url&&rt(s.url,"tts")},[rt,s]);const ot=f.map(ht=>{const St=ht.answers.filter(bt=>bt.isCorrect),_t=[];return St.forEach(bt=>{_t.push(bt.id)}),{question:ht.id,answers:_t}});G.useEffect(()=>{T.length===0&&A(ot)},[T.length,ot]),G.useEffect(()=>{if(c){const ht=Math.ceil(f.length*c/100);tt(ht)}},[f.length,c]),G.useEffect(()=>{E===0&&(clearInterval(v),N(!1),X(!0),O("results"),ut("tts"))},[v,ut,E]);const dt=()=>{clearInterval(v),N(!1),O("results");const ht={...I};F(ht),ut("tts")},pt=()=>{const ht={correctQuestions:T.length,result:m,status:"resolved"};Object.keys(m).forEach(_t=>{m[_t].forEach(bt=>{nt.current[bt.id]&&(bt.rewards=[])})}),e({type:"saveTest",payload:ht})},it=()=>{const ht=()=>{F({}),W({}),O("test"),_({}),C(t.time),X(!1),s!=null&&s.url&&rt(s.url,"tts")},St=Object.values(m);St.forEach(bt=>{bt.forEach(yt=>{yt.isCorrect&&(nt.current[yt.id]?yt.rewards=[]:nt.current[yt.id]=!0)})});let _t=St.reduce((bt,yt)=>{const Tt=[];return yt.forEach(wt=>{Tt.push(wt.rewards)}),[...bt,...Tt.flat()]},[]);Z&&t.rewards&&(_t=[..._t,...t.rewards]),e({type:"addPoints",payload:_t,complex:!0,finish:!1,onFinish:ht()}),e({type:"failTest"})},lt=(ht,St)=>n({type:"translate",payload:ht,values:St});return P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"test--container__overlay"}),P.jsx("div",{"data-testid":"wrapperTest",className:"test--container",dir:"auto",children:M!=="results"?P.jsx(_tt,{result:m,time:E,setTries:x,tries:y,answerPage:N,setTime:C,paused:l,saveInterval:S,disabled:M!=="test",answered:R||M!=="test",questions:f,updateForm:st,showResults:dt,translate:lt,soundActions:i,view:M,correctQuestions:T,feedbacksOnlyWhenReview:d}):P.jsx(btt,{reviewTest:()=>{L(!1),O("review")},isFirst:B,finishTest:pt,time:E,mandatory:$,restartTest:it,result:m,correctQuestions:T,timeOver:Z,timeOverText:t.text,emitEvent:e,getEvent:n,soundActions:i,minimumPercentage:Q})})]})}const lz=["yes","no"],xtt=["A","B"];function Ett({setSurveyData:u,survey:t,id:e,translate:n}){const i=s=>{u({...t,[e]:s})};return P.jsx("div",{className:"survey--page__item",children:lz.map((s,o)=>P.jsxs("button",{"data-testid":`applicablebox-${lz[o]}`,type:"button",onClick:()=>i(s),className:`unset-button survey--response__item ${t[e]===s?"selected":""}`,children:[P.jsx("div",{className:"survey--response__index",children:xtt[o]}),P.jsx("div",{className:"survey--response__text",children:n(`survey.${s}`)})]},s))})}const Ttt=[0,1,2,3,4,5,6,7,8,9,10];function Att({setSurveyData:u,survey:t,id:e,translate:n}){const i=s=>{u({...t,[e]:s})};return P.jsxs("div",{className:"survey--page__item","aria-label":"opinion box",children:[P.jsx("div",{className:"survey--points",children:Ttt.map(s=>P.jsx("button",{type:"button",onClick:()=>i(s),className:`unset-button survey--points__item survey--points__item--colorized ${t[e]===s?"selected":""}`,children:s},s))}),P.jsxs("div",{className:"survey--points__labels",children:[P.jsx("span",{children:n("survey.bad")}),P.jsx("span",{children:n("survey.excellent")})]})]})}function uz({setSurveyData:u,survey:t,id:e,literalLabel:n}){const i=s=>{u({...t,[e]:s})};return P.jsx("div",{className:"survey--page__item",children:P.jsx("textarea",{ref:s=>{s&&s.focus()},className:"survey--textarea",id:n,value:t[e],onChange:s=>i(s.target.value)})})}const Ctt={applicable:"",opinion:"",comments:"",suggestions:""},zc=[{component:Ett,id:"applicable"},{component:Att,id:"opinion"},{component:uz,id:"comments"},{component:uz,id:"suggestions"}];function Rtt({emitEvent:u,getEvent:t,soundActions:e}){const[n,i]=G.useState(Ctt),[s,o]=G.useState(0),[l,c]=G.useState(!1),[d]=e,f=(v,S)=>t({type:"translate",payload:v,values:S}),m=(v=!1)=>{if(d("click-ui"),!v&&s+1>=zc.length)c(!0);else{v&&c(!1);const S=v?s-1:s+1;o(S)}},_=zc[s].component;return P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"survey--container__overlay"}),P.jsx("div",{className:"survey--container",dir:"auto",children:P.jsxs("div",{className:"survey--questions",children:[P.jsxs("div",{className:"survey--questions__container",children:[P.jsxs("div",{className:"survey--questions__intertitle",children:[P.jsx("div",{children:P.jsx("span",{children:f("survey.numQuestion",{init:s+1,page:zc.length})})}),P.jsx("div",{children:f("auto-evaluation.allQuestionsMandatory")})]}),P.jsx("label",{className:"survey--questions__item","data-testid":`survey.question${s+1}`,htmlFor:f(`survey.question${s+1}`,{ordinal:s+1}),children:f(`survey.question${s+1}`,{ordinal:s+1})}),P.jsx(_,{setSurveyData:i,id:zc[s].id,survey:n,translate:f,literalLabel:f(`survey.question${s+1}`,{ordinal:s+1})})]}),P.jsxs("div",{className:"test--buttons next",children:[P.jsx("button",{"data-testid":"backButton",id:"survey-button-back",type:"button",disabled:s===0,onClick:()=>m(!0),className:`gat--btn__navigation ${s===0?"disabled":""}`,"aria-label":je()?f("survey.next"):f("survey.previous"),children:P.jsx("span",{className:je()?"icon-next":"icon-back"})}),!l&&s===zc.length-1?P.jsx("button",{"data-testid":"survey.finish",id:"survey-button",type:"button",disabled:!n[zc[s].id],onClick:()=>{d("click-ui"),u({type:"saveSurvey",payload:n})},className:`gat--btn gat--btn__primary ${n[zc[s].id]?"":"disabled"} not-transition`,children:f("survey.finish")}):null,!l&&s!==zc.length-1?P.jsx("button",{"data-testid":"nextButton",id:"survey-button",type:"button",disabled:!n[zc[s].id],onClick:()=>m(!1),className:`gat--btn__navigation ${n[zc[s].id]?"":"disabled"}`,"aria-label":je()?f("survey.previous"):f("survey.next"),children:P.jsx("span",{className:je()?"icon-back":"icon-next"})}):null]})]})})]})}function wtt({onFinish:u,translate:t}){return G.useEffect(()=>{let e;return u&&(e=setTimeout(()=>{u()},2e3)),()=>{e&&clearTimeout(e)}},[u]),P.jsx("div",{"data-testid":"endScreen",className:"auto-evaluation__endscreen","aria-label":"auto evaluation endscreen",children:P.jsxs("div",{className:"auto-evaluation__finishband","aria-label":"auto evaluation finishband",children:[P.jsx("span",{className:"icon-check-laptop auto-evaluation__iconendscreen","aria-label":"icon-check",role:"img"}),P.jsx("span",{className:"auto-evaluation__thanks","aria-label":"auto evaluation thanks",role:"contentinfo",children:t("auto-evaluation.thanks")})]})})}function Dtt({onNext:u,description:t,translate:e}){return P.jsxs("div",{className:"auto-evaluation__startscreen",role:"alertdialog","aria-modal":"true","aria-label":"ae start screen",children:[P.jsx("span",{className:"icon-happy-laptop auto-evaluation__starticon","aria-label":"icon laptop",role:"img"}),P.jsx("div",{className:"auto-evaluation__starttext","aria-label":"desciption",children:P.jsx("span",{children:t})}),P.jsx("button",{"data-testid":"auto-start-button",type:"button",className:"gat--btn gat--btn__primary auto-evaluation__button auto-evaluation__button--start",onClick:u,children:P.jsx("span",{children:e("auto-evaluation.start")})})]})}function Mtt({description:u,questions:t,type:e,emitEvent:n,getEvent:i,soundActions:s}){var R,N,M;const[o,l]=G.useState(null),[c,d]=G.useState("start"),[f,m]=G.useState(!1),[_,v]=G.useState(0),[S,y]=G.useState({current:{questions:[],type:e}}),[x]=s,T=O=>i({type:"translate",payload:O}),A=O=>{O.code==="Enter"&&O.target.blur()},E=()=>{x("click-ui"),n({type:"saveSurveyPrePos",payload:S.current})};G.useEffect(()=>{!t.length&&c==="questions"&&d("end")},[t,c]);const C=(O,B=!1)=>{var I;const L=O!==null?O:(I=S.current.questions.find(F=>F.id===t[_].id))==null?void 0:I.answer;if(x("click-ui"),B)v(_-1),m(!1);else{const F=S.current.questions.findIndex(W=>W.id===t[_].id),H=[...S.current.questions];F>-1?H.splice(F,1,{id:t[_].id,answer:L}):H.push({id:t[_].id,answer:L}),y({...S,current:{...S.current,questions:H}}),_===t.length-1?m(!0):(v(_+1),m(!1))}};return P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"test--container__overlay","aria-label":"test container overlay"}),P.jsxs("div",{className:"test--container",dir:"auto","aria-label":"test container",children:[c==="start"&&P.jsx(Dtt,{description:u,onNext:()=>{d("questions"),x("click-ui")},translate:T}),c==="questions"&&P.jsxs("div",{"data-testid":"survey--questions",className:"survey--questions","aria-label":"survey questions",children:[P.jsxs("div",{className:"survey--questions__container","aria-label":"survey questions container",children:[P.jsxs("div",{className:"survey--questions__intertitle",children:[P.jsx("div",{children:P.jsxs("span",{children:[T("auto-evaluation.question")," ",_+1," ",T("storylines.misc.of")," ",t.length]})}),P.jsx("div",{children:T("auto-evaluation.allQuestionsMandatory")})]}),P.jsxs("div",{children:[P.jsx("div",{className:"survey--questions__item","aria-label":"survey questions item",children:(R=t[_])==null?void 0:R.text}),P.jsx("div",{className:"survey--page__item","aria-label":"survey page item",children:P.jsx("div",{className:"survey--points","aria-label":"survey points",children:Array(11).fill(0).map((O,B)=>{var L;return P.jsx("button",{"data-testid":`button-option-${0+B}`,type:"button",onTouchStart:()=>{l(B)},onTouchEnd:()=>{l(null)},onKeyUp:I=>{A(I)},onClick:()=>{C(B,!1)},className:`survey--points__item survey--points__item--simple ${((L=S.current.questions[_])==null?void 0:L.answer)===B||o===B?"selected":""}`,children:B},`${0+B}`)})})})]},`${t[_]}`)]}),P.jsxs("div",{className:"test--buttons next","aria-label":"test buttons",children:[P.jsx("button",{"data-testid":"back-button",type:"button",disabled:_===0,onClick:()=>C(null,!0),"aria-label":je()?T("survey.next"):T("survey.previous"),className:`gat--btn__navigation ${_===0?"disabled":""}`,children:P.jsx("span",{className:je()?"icon-next":"icon-back","aria-label":"icon button"})}),f?P.jsx("button",{"data-testid":"finish-button",type:"button",onClick:()=>{d("end"),x("click-ui")},className:`gat--btn gat--btn__primary auto-evaluation__button not-transition
312
+ `,wZ={};function kD(u,t,e=wZ){if(!ez&&"zIndex"in t&&(console.warn(RZ),ez=!0),!nz&&t.draggable){var n=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;n&&!i&&(console.warn(CZ),nz=!0)}for(var s in e)if(!tz[s]){var o=s.slice(0,2)==="on",l=e[s]!==t[s];if(o&&l){var c=s.substr(2).toLowerCase();c.substr(0,7)==="content"&&(c="content"+c.substr(7,1).toUpperCase()+c.substr(8)),u.off(c,e[s])}var d=!t.hasOwnProperty(s);d&&u.setAttr(s,void 0)}var f=t._useStrictMode,m={},_=!1;const v={};for(var s in t)if(!tz[s]){var o=s.slice(0,2)==="on",S=e[s]!==t[s];if(o&&S){var c=s.substr(2).toLowerCase();c.substr(0,7)==="content"&&(c="content"+c.substr(7,1).toUpperCase()+c.substr(8)),t[s]&&(v[c]=t[s])}!o&&(t[s]!==e[s]||f&&t[s]!==u.getAttr(s))&&(_=!0,m[s]=t[s])}_&&(u.setAttrs(m),N0(u));for(var c in v)u.off(c+R5),u.on(c+R5,v[c])}function N0(u){if(!sn.Konva.autoDrawEnabled){var t=u.getLayer()||u.getStage();t&&t.batchDraw()}}var DM=Y9();const bI={},DZ={};C5.Node.prototype._applyProps=kD;let SI=BD.DefaultEventPriority;function MZ(u,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}u.add(t),N0(u)}function OZ(u,t,e){let n=C5[u];n||(console.error(`Konva has no node with the type ${u}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${u}" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html`),n=C5.Group);const i={},s={};for(var o in t)if(o!=="ref"){var l=o.slice(0,2)==="on";l?s[o]=t[o]:i[o]=t[o]}const c=new n(i);return kD(c,s),c}function NZ(u,t,e){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${u}"`)}function LZ(u,t,e){return!1}function PZ(u){return u}function jZ(){return null}function zZ(){return null}function BZ(u,t,e,n){return DZ}function kZ(){}function FZ(u){}function IZ(u,t){return!1}function UZ(){return bI}function HZ(){return bI}const GZ=setTimeout,VZ=clearTimeout,YZ=!0,KZ=u=>{u()},XZ=-1;function qZ(u,t){return!1}const QZ=!1,WZ=!1,ZZ=!0,JZ=!1,$Z=!1;function tJ(u,t){t.parent===u?t.moveToTop():u.add(t),N0(u)}function eJ(u,t){t.parent===u?t.moveToTop():u.add(t),N0(u)}function xI(u,t,e){t._remove(),u.add(t),t.setZIndex(e.getZIndex()),N0(u)}function nJ(u,t,e){xI(u,t,e)}function iJ(u,t){t.destroy(),t.off(R5),N0(u)}function aJ(u,t){t.destroy(),t.off(R5),N0(u)}function sJ(u,t,e){console.error(`Text components are not yet supported in ReactKonva. You text is: "${e}"`)}function rJ(u,t,e){}function oJ(u,t,e,n){kD(u,n,e)}function lJ(u){u.hide(),N0(u)}function uJ(u){}function cJ(u,t){(t.visible==null||t.visible)&&u.show()}function dJ(u,t){}function hJ(u){}function fJ(){}function pJ(){return null}function mJ(){}function gJ(){}function vJ(){return BD.DefaultEventPriority}function yJ(){}function _J(){return null}function bJ(u){SI=u}function SJ(){return SI}function xJ(){return BD.DiscreteEventPriority}function EJ(){return!1}function TJ(){}function AJ(){return null}function CJ(){return-1.1}function RJ(){}function wJ(){return!1}function DJ(){return!0}function MJ(){}function OJ(){}function NJ(){return null}const LJ=null,PJ=G.createContext(null);function jJ(){}const zJ=Object.freeze(Object.defineProperty({__proto__:null,HostTransitionContext:PJ,NotPendingTransition:LJ,afterActiveInstanceBlur:gJ,appendChild:tJ,appendChildToContainer:eJ,appendInitialChild:MZ,beforeActiveInstanceBlur:mJ,cancelTimeout:VZ,clearContainer:hJ,commitMount:rJ,commitTextUpdate:sJ,commitUpdate:oJ,createInstance:OZ,createTextInstance:NZ,detachDeletedInstance:fJ,finalizeInitialChildren:LZ,getChildHostContext:HZ,getCurrentEventPriority:vJ,getCurrentUpdatePriority:SJ,getInstanceFromNode:pJ,getInstanceFromScope:_J,getPublicInstance:PZ,getRootHostContext:UZ,hideInstance:lJ,hideTextInstance:uJ,idlePriority:DM.unstable_IdlePriority,insertBefore:xI,insertInContainerBefore:nJ,isPrimaryRenderer:QZ,maySuspendCommit:wJ,noTimeout:XZ,now:DM.unstable_now,preloadInstance:DJ,prepareForCommit:jZ,preparePortalMount:zZ,prepareScopeUpdate:yJ,prepareUpdate:BZ,removeChild:iJ,removeChildFromContainer:aJ,requestPostPaintCallback:RJ,resetAfterCommit:kZ,resetFormInstance:jJ,resetTextContent:FZ,resolveEventTimeStamp:CJ,resolveEventType:AJ,resolveUpdatePriority:xJ,run:DM.unstable_runWithPriority,scheduleMicrotask:KZ,scheduleTimeout:GZ,setCurrentUpdatePriority:bJ,shouldAttemptEagerTransition:EJ,shouldDeprioritizeSubtree:IZ,shouldSetTextContent:qZ,startSuspendingCommit:MJ,supportsHydration:$Z,supportsMicrotasks:YZ,supportsMutation:ZZ,supportsPersistence:JZ,suspendInstance:OJ,trackSchedulerEvent:TJ,unhideInstance:cJ,unhideTextInstance:dJ,waitForCommitToBeReady:NJ,warnsIfNotActing:WZ},Symbol.toStringTag,{value:"Module"}));function EI(u,t,e){if(!u)return;if(e(u)===!0)return u;let n=t?u.return:u.child;for(;n;){const i=EI(n,t,e);if(i)return i;n=t?null:n.sibling}}function TI(u){try{return Object.defineProperties(u,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return u}}const K9=TI(eu.createContext(null));class AI extends eu.Component{render(){return eu.createElement(K9.Provider,{value:this._reactInternals},this.props.children)}}function BJ(){const u=eu.useContext(K9);if(u===null)throw new Error("its-fine: useFiber must be called within a <FiberProvider />!");const t=eu.useId();return eu.useMemo(()=>{for(const e of[u,u==null?void 0:u.alternate]){if(!e)continue;const n=EI(e,!1,i=>{let s=i.memoizedState;for(;s;){if(s.memoizedState===t)return!0;s=s.next}});if(n)return n}},[u,t])}const kJ=Symbol.for("react.context"),FJ=u=>u!==null&&typeof u=="object"&&"$$typeof"in u&&u.$$typeof===kJ;function IJ(){const u=BJ(),[t]=eu.useState(()=>new Map);t.clear();let e=u;for(;e;){const n=e.type;FJ(n)&&n!==K9&&!t.has(n)&&t.set(n,eu.use(TI(n))),e=e.return}return t}function CI(){const u=IJ();return eu.useMemo(()=>Array.from(u.keys()).reduce((t,e)=>n=>eu.createElement(t,null,eu.createElement(e.Provider,{...n,value:u.get(e)})),t=>eu.createElement(AI,{...t})),[u])}if(G.version.indexOf("19")===-1)throw new Error("react-konva version 19 is only compatible with React 19. Make sure to have the last version of react-konva and react or downgrade react-konva to version 18.");function UJ(u){const t=G.useRef({});return G.useLayoutEffect(()=>{t.current=u}),G.useLayoutEffect(()=>()=>{t.current={}},[]),t.current}const HJ=()=>{const u=G.useRef(0);return G.useMemo(()=>{u.current++},[]),u.current>1},GJ=u=>{const t=G.useRef(null),e=G.useRef(null),n=G.useRef(null),i=UJ(u),s=CI(),o=G.useRef(null),l=f=>{const{forwardedRef:m}=u;m&&(typeof m=="function"?m(f):m.current=f)},c=HJ(),d=()=>{var f;l(null),lE.updateContainer(null,n.current,null),(f=e.current)==null||f.destroy(),e.current=null};return G.useLayoutEffect(()=>(o.current&&(clearTimeout(o.current),o.current=null),e.current?l(e.current):(e.current=new C5.Stage({width:u.width,height:u.height,container:t.current}),l(e.current),n.current=lE.createContainer(e.current,BD.ConcurrentRoot,null,!1,null,"",console.error,console.error,console.error,null),lE.updateContainer(G.createElement(s,{},u.children),n.current,null,()=>{})),()=>{c?o.current=setTimeout(d,0):d()}),[]),G.useLayoutEffect(()=>{l(e.current),kD(e.current,u,i),lE.flushSyncFromReconciler(()=>{lE.updateContainer(G.createElement(s,{},u.children),n.current,null)})}),G.createElement("div",{ref:t,id:u.id,accessKey:u.accessKey,className:u.className,role:u.role,style:u.style,tabIndex:u.tabIndex,title:u.title})},NN="Layer",P_="Group",VJ="Rect",RI="Line",wI="Image",YJ="Text",lE=EZ(zJ),DI=G.forwardRef((u,t)=>G.createElement(AI,{},G.createElement(GJ,{...u,forwardedRef:t})));var KJ=function(u,t){var e={};for(var n in u)Object.prototype.hasOwnProperty.call(u,n)&&t.indexOf(n)<0&&(e[n]=u[n]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(u);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(u,n[i])&&(e[n[i]]=u[n[i]]);return e};const XJ=u=>{const t=window.getComputedStyle(u).position;return!(t==="absolute"||t==="relative")};function qJ(u=()=>{}){const t=G.useRef(u);return t.current=u,G.useCallback((...e)=>t.current.apply(null,e),[])}const MI=({children:u,groupProps:t,divProps:e,transform:n,transformFunc:i,parentNodeFunc:s})=>{const o=CI(),l=G.useRef(null),[c]=G.useState(()=>document.createElement("div")),d=G.useMemo(()=>bH.createRoot(c),[c]),f=n??!0,m=qJ(()=>{if(f&&l.current){let x=l.current.getAbsoluteTransform().decompose();i&&(x=i(x)),c.style.position="absolute",c.style.zIndex="10",c.style.top="0px",c.style.left="0px",c.style.transform=`translate(${x.x}px, ${x.y}px) rotate(${x.rotation}deg) scaleX(${x.scaleX}) scaleY(${x.scaleY})`,c.style.transformOrigin="top left"}else c.style.position="",c.style.zIndex="",c.style.top="",c.style.left="",c.style.transform="",c.style.transformOrigin="";const _=e||{},{style:v}=_,S=KJ(_,["style"]);Object.assign(c.style,v),Object.assign(c,S)});return G.useLayoutEffect(()=>{var _;const v=l.current;if(!v)return;const S=s?s({stage:v.getStage()}):(_=v.getStage())===null||_===void 0?void 0:_.container();if(S)return S.appendChild(c),f&&XJ(S)&&(S.style.position="relative"),v.on("absoluteTransformChange",m),m(),()=>{var y;v.off("absoluteTransformChange",m),(y=c.parentNode)===null||y===void 0||y.removeChild(c)}},[f,s]),G.useLayoutEffect(()=>{m()},[e,i]),G.useLayoutEffect(()=>{queueMicrotask(()=>{SH.flushSync(()=>{d.render(G.createElement(o,null,u))})})}),G.useLayoutEffect(()=>()=>{setTimeout(()=>{d.unmount()})},[]),G.createElement(P_,Object.assign({ref:l},t))};function gR({area:u,finished:t=!1,isClicked:e=!1,isBad:n=!1,hasHighlights:i=!1,completed:s=!1,onClick:o=()=>{},onClickOutside:l=()=>{}}){const c=G.useRef(),[d,f]=G.useState(),m=n?"rgba(255, 99, 77, 0.32)":"rgba(75, 215, 169, 0.32)",_=n?"#ff634d":"#4bd7a9",v=oF(),S=()=>{var E,C,R;i&&!s&&!e&&((E=c.current)==null||E.setAttr("fill","rgba(130, 134, 142, 0.4)"),(C=c.current)==null||C.setAttr("stroke","rgba(255, 255, 255, 0.3)"),(R=c.current)==null||R.to({duration:.25,opacity:1}))},y=()=>{var E;i&&!s&&!e&&((E=c.current)==null||E.to({duration:.25,opacity:0}))};G.useEffect(()=>{var E,C,R;s&&!t&&(n?(R=c.current)==null||R.to({duration:.25,opacity:0}):((E=c.current)==null||E.to({duration:.25,opacity:1}),(C=c.current)==null||C.globalCompositeOperation("destination-out")))},[s,t,n]);const x=()=>{var E,C;s||(n?l(u):o(u),(E=c.current)==null||E.setAttr("fill",m),(C=c.current)==null||C.setAttr("stroke",_))},T=u.scaleX?u.scaleX:1,A=u.scaleY?u.scaleY:1;return G.useLayoutEffect(()=>{const E=c.current.getStage();E.on("stage-loaded",()=>{const C=c.current.getClientRect({relativeTo:c.current.getParent()});f({x:C.x+C.width/2,y:C.y+C.height/2}),E.batchDraw()})},[u]),P.jsxs(P.Fragment,{children:[d?P.jsx(MI,{transform:!0,groupProps:{id:"projection",...d},divProps:{style:{pointerEvents:"none"}},children:P.jsx("div",{style:{width:"50px",height:"50px",pointerEvents:"none"},id:u.id})}):null,P.jsx(RI,{name:u.id,ref:c,onFocus:()=>S(),onMouseOver:()=>S(),onMouseLeave:y,onClick:()=>x(),onTap:()=>x(),x:u.x,y:u.y,scale:{x:T,y:A},skew:{x:u.skewX,y:u.skewY},rotation:u.rotation,points:u.points,shape:"poly",fill:t?"":m,stroke:t||e?_:"",strokeWidth:v?10:4,opacity:t||e?1:0,closed:!0})]})}const QJ=()=>{const[u,t]=G.useState([0,0]);return G.useLayoutEffect(()=>{function e(){const n=document.querySelector("#root");t([n.clientWidth,n.clientHeight])}return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]),u};function WJ({areas:u,badAreas:t,imageUrl:e,completed:n=!1,onClick:i=()=>{},onClickOutside:s=()=>{},hasHighlights:o=!1,clickedZones:l}){const c=G.useRef(),d=G.useRef(),f=G.useRef(),m=G.useRef(),_=G.useRef(),v=G.useRef(),S=G.useRef(),[y,x]=G.useState(new window.Image),[T,A]=QJ(),E=t.find(N=>N.id==="AllArea")||!1,C=t.filter(N=>N.id!=="AllArea");G.useEffect(()=>{S.current&&d.current&&n&&(S.current.to({duration:.25,opacity:.5}),d.current.setAttr("visible",!0))},[n]);const R=N=>{E&&!N.target.attrs.shape&&s(E)};return G.useEffect(()=>{y.src=e,y.addEventListener("load",()=>{if(c.current){const N={x:T/2,y:A/2,width:y.width,height:y.height,offsetX:y.width/2,offsetY:y.height/2,scale:{x:Math.min(T/y.width,A/y.height),y:Math.min(T/y.width,A/y.height)}};m.current&&m.current.setAttrs(N),_.current&&_.current.setAttrs(N),d.current&&d.current.setAttrs(N),f.current&&f.current.setAttrs(N),v.current&&v.current.setAttrs(N),c.current.batchDraw(),x(y),c.current.fire("stage-loaded")}})},[y,A,e,T]),P.jsxs(DI,{ref:c,width:T,height:A,onClick:R,onTouchEnd:R,children:[P.jsx(NN,{children:P.jsx(wI,{ref:v,image:y})}),P.jsxs(NN,{children:[P.jsx(VJ,{ref:S,width:T,height:A,fill:"black",opacity:0}),P.jsx(P_,{ref:_,children:C.map((N,M)=>P.jsx(gR,{hasHighlights:o,completed:n,onClick:i,onClickOutside:s,area:N,isBad:!0},N.name+"_"+M))}),P.jsx(P_,{ref:m,children:u.map((N,M)=>P.jsx(gR,{hasHighlights:o,completed:n,onClick:i,onClickOutside:s,area:N,isClicked:l.some(O=>O.index===N.index)},N.name+"_"+M))}),P.jsx(P_,{ref:f,visible:!1,children:C.map((N,M)=>P.jsx(gR,{hasHighlights:o,completed:n,onClick:i,onClickOutside:s,area:N,isBad:!0,finished:!0},N.name+"_"+M))}),P.jsx(P_,{ref:d,visible:!1,children:u.map((N,M)=>P.jsx(gR,{hasHighlights:o,completed:n,onClick:i,onClickOutside:s,area:N,finished:!0},N.name+"_"+M))})]})]})}function ZJ({retry:u,translate:t,onInit:e}){return P.jsx("div",{className:"timer-dialog",children:P.jsxs("div",{className:"timer-dialog__container",children:[P.jsx("div",{className:"timer-dialog__title",children:t("storylines.misc.ready")}),P.jsx("button",{type:"button",className:"gat--btn gat--btn__primary",onClick:e,children:P.jsx("span",{children:t(u?"storylines.misc.start":"storylines.misc.retry")})})]})})}function JJ({time:u}){const t=Math.floor(u/60),e=u%60;return P.jsx("div",{className:`count-down count-down--in-puzzle-frame ${u<10?"count-down--finalseconds":""}`,children:P.jsxs("div",{children:[t<10?`0${t}`:t," : ",e<10?`0${Math.floor(e)}`:Math.floor(e)]})})}const $J="https://min.gamelearn.io/css-resources/gamelearn/resources/puzzle-login-low.png";function t$(){return P.jsx("div",{className:"puzzle--image__preview",children:P.jsx("img",{alt:"img",src:"https://min.gamelearn.io/css-resources/gamelearn/resources/image-click.jpg"})})}function X9({soundActions:u,emitEvent:t,getEvent:e=()=>{},handleClick:n=()=>{},disableExit:i,setResolveAction:s,info:o={instructions:"",resolve:{},solution:{},hint:{},title:""},image:l,areas:c,badAreas:d=[],hasClickOrder:f=!1,timer:m,hasClickOnce:_=!1,hasHighlights:v=!1,hasImageReview:S=!1,defaultCompleted:y=!1,className:x="puzzle--image__click",emitFinish:T,emitResolve:A,translateFromParent:E,specificFeedbacks:C,slideNumber:R,emitResetPuzzle:N,firstTryForFrame:M,puzzlesAutoCompleted:O,emitOpenPopupCounterInfo:B,pause:L,keyboardControl:I,hideContinue:F=!1,emitAreaClick:H=()=>{}}){var ie,ue,wn;const[W,Z]=G.useState([]),[X,$]=G.useState(!1),[nt,Q]=G.useState(!1),[tt,rt]=G.useState({show:!1,success:!1,text:"",rewards:[]}),ut=G.useRef(!1),[st,ot]=G.useState(!0),[dt,pt]=G.useState(!1),it=G.useRef(null),lt=G.useRef(null),ht=G.useRef(null),St=G.useRef(null),_t=G.useRef(null),bt=G.useRef(null),yt=G.useRef(null),Tt=G.useRef(null),wt=G.useRef(null),[It,Ft]=G.useState(m),$t=re=>E?E(re):e({type:"translate",payload:re}),[Jt]=u,{solution:we}=o,ze=((ie=l==null?void 0:l.img)==null?void 0:ie.url)||$J,Se=c.map((re,me)=>({index:me,shape:"poly",...re})),Te=d.map((re,me)=>({index:me,shape:"poly",...re})),pn=G.useCallback(()=>{if(!st){const re=setInterval(()=>{Ft(me=>me>1?me-1:0)},1e3);wt.current=re}},[st]),Mn=G.useCallback((re,me)=>{T?T(re,me):t({type:"addPoints",payload:re})},[t,T]);G.useEffect(()=>{X&&i(!0)},[X,i]),G.useEffect(()=>{$(y)},[y]);const zt=G.useCallback(()=>{clearInterval(ht.current)},[]),te=G.useCallback(()=>{clearInterval(wt.current)},[]),pe=G.useCallback(re=>{_t.current=Date.now(),St.current?(yt.current=St.current-_t.current,zt()):(yt.current=_t.current-(_t.current-re*1e3),zt())},[zt]),Lt=G.useCallback(()=>{rt(()=>{var re,me;return{show:!0,success:!1,text:(re=o==null?void 0:o.timerFeedback)!=null&&re.desc?o.timerFeedback.desc:"",rewards:(me=o==null?void 0:o.timerFeedback)==null?void 0:me.rewards}}),pt(!0),te(),zt()},[te,zt,(ue=o.timerFeedback)==null?void 0:ue.desc,(wn=o.timerFeedback)==null?void 0:wn.rewards]),Yt=G.useCallback(()=>{clearInterval(ht.current),ht.current=setInterval(()=>{lt.current=Date.now(),lt.current>St.current&&Lt()},250)},[Lt]);G.useEffect(()=>{var re;if((c.length===W.length||_&&W.length>0)&&!X){$(!0);const me=W[W.length-1],On=C==null?void 0:C.correctFeedbacks.find(Nn=>Nn.id===me.id);(!((re=C==null?void 0:C.correctFeedbacks)!=null&&re.length)||C!=null&&C.correctFeedbacks.some(Nn=>!Nn.desc)||_)&&(rt(Nn=>({...Nn,show:!0,success:!0,text:On?On.desc:o.solution.right.desc,rewards:On?On.rewards:o.solution.right.rewards})),m&&(te(),pe()))}},[W,c.length,C,_,X,o.solution.right,pe,m,te]),G.useEffect(()=>{s(re=>{m&&(te(),ot(!1),tt.show?rt(me=>({...me,show:!1,success:!1,text:"",rewards:[]})):zt()),$(!0),Q(!0),setTimeout(()=>{A?A(re):re()},4e3)})},[s,A,Jt,m,tt.show,zt,te]),G.useEffect(()=>{nt&&i(!0)},[nt,i]);const ee=(re,me=!1)=>{var On,Nn;if(!X){const{rewards:la,desc:Bt}=we.wrong;let Qt=Bt,de=la;const ye=(On=C==null?void 0:C.wrongFeedbacks)==null?void 0:On.find(Xe=>Xe.id===re.id);ye&&(Qt=ye.desc,de=ye.rewards),f&&(Z([]),me&&(Nn=o==null?void 0:o.orderFeedback)!=null&&Nn.desc&&(Qt=o.orderFeedback.desc,de=o.orderFeedback.rewards)),m&&(te(),pe()),rt(Xe=>({...Xe,show:!0,success:!1,text:Qt,rewards:de})),Jt("fail")}},Be=G.useCallback(()=>{bt.current=Date.now();const re=bt.current+yt.current;lt.current=null,St.current=re,(m||dt)&&(tt.success?c.length===W.length||_&&W.length>0?te():(Ft(yt.current*.001),pn(),Yt()):(Z([]),ot(!0),N())),Mn(tt.rewards,tt.success),Jt("click-ui"),rt(me=>({...me,show:!1,success:!1,text:"",rewards:[]}))},[m,dt,Mn,tt.rewards,tt.success,Jt,c.length,W.length,_,N,te,pn,Yt]),Ke=re=>{var me,On;if(!W.some(Nn=>Nn.index===re.index)&&!tt.show&&!X){Jt("click-ui");let Nn=we.right.desc,{rewards:la}=we.right;const Bt=[...W,re];if(f&&re.index===W.length||!f){if(m&&pe(It),n(),(me=C==null?void 0:C.correctFeedbacks)!=null&&me.length){const Qt=(On=C.correctFeedbacks)==null?void 0:On.find(de=>de.id===re.id);Qt&&(Nn=Qt.desc,la=Qt.rewards),!Nn&&c.length>Bt.length&&!_?Mn(la,!0):Nn&&!_&&(rt(de=>({...de,show:!0,success:!0,text:Nn,rewards:la})),m&&te())}Z(Bt)}else ee(re,!0)}},Gt=G.useCallback(()=>{te(),Ft(m),pn(),!ut.current&&M&&B(),ot(!1),it.current=Date.now(),St.current=it.current+m*1e3,Yt()},[te,m,pn,M,Yt,B]);return G.useEffect(()=>{m&&R>0&&!Tt.current&&(M&&Object.keys(O).length&&O[R-1]?(ot(!0),Tt.current=!0):ot(!1))},[y,M,O,R,m]),G.useEffect(()=>{m&&It===0&&Lt()},[It,Lt,m]),G.useEffect(()=>{m&&(L?(te(),pe()):pn())},[te,Yt,L,pe,pn,m]),P.jsxs("div",{className:x,children:[tt.show?P.jsx(fd,{playSound:Jt,text:tt.text,success:tt.success,translate:$t,hasTimeout:!tt.text,delay:m?1e3:2e3,functionOnClose:Be,timeExpired:dt,keyboardControl:I}):null,P.jsx(WJ,{completed:X,imageUrl:ze,areas:_&&W.length?[W[0]]:Se,badAreas:Te,clickedZones:W,onClick:Ke,onClickOutside:ee,hasHighlights:v,emitEvent:t}),S?P.jsx(t$,{}):null,m&&st?P.jsx(ZJ,{retry:M||O[R-1],translate:$t,onInit:Gt}):null,m?P.jsx(JJ,{time:It}):null]})}function e$(u){const t=(e,n)=>{n?(u.emitEvent({type:"addPoints",complex:!0,finish:!0,payload:e}),u.emitEvent({type:"passPuzzle"})):(u.emitEvent({type:"addPoints",payload:e,finish:!1}),u.emitEvent({type:"failPuzzle"}))};return P.jsx(X9,{...u,emitFinish:t,name:"image-click-puzzle"})}const OI="#44d7ab",n$="#FFB34B",q9="#FF634D",i$=(u,t)=>Math.max(Math.abs(u[0]-t[0]),Math.abs(u[1]-t[1])),NI=(u,t,e,n)=>{const i=[],s=u;for(const o of t.toLowerCase()){const l=Math.floor(Math.random()*e),c=Math.floor(Math.random()*n);s[l][c].value=o,i.push({char:o,position:[l,c]})}return[s,i]},LI=(u,t,e,n)=>{const i=u;for(let s=0;s<t;s+=1)for(let o=0;o<e;o+=1)switch(n.reduce((c,d)=>{const f=[s,o],m=i$(d.position,f);return m<c?m:c},9999)){case 0:i[s][o].hiddenColor=OI;break;case 1:i[s][o].hiddenColor=n$;break;case 2:i[s][o].hiddenColor=q9;break}return i},a$=(u,t,e)=>{const n=e;for(let i=0;i<u;i+=1)for(let s=0;s<t;s+=1)n[i][s].color="",n[i][s].hiddenColor=q9;return n},s$=(u,t,e,n)=>{const i=a$(e,n,u),[s,o]=NI(i,t,e,n);return LI(s,e,n,o)},r$=(u,t)=>t.split("").filter(e=>!u.includes(e)).join(""),o$=(u,t,e)=>{const n=[];for(let i=0;i<u;i+=1){const s=[];for(let o=0;o<t;o+=1){const l={color:"",hiddenColor:q9,value:e[Math.floor(Math.random()*e.length)]};s.push(l)}n.push(s)}return n},l$=({numberOfColumns:u,numberOfRows:t,password:e})=>{const n=je()?"٠١٢٣٤٥٦٧٨٩شزذيثبلاهتنمورخحضقسفعدصطغظ":"0123456789abcdefghijklmnopqrstuvwxyz",i=r$(e,n),s=o$(t,u,i),[o,l]=NI(s,e,t,u);return LI(o,t,u,l)};function PI({item:u,rowIndex:t,columnIndex:e,setCursorPosition:n=()=>{},cursorPosition:i}){const s=Math.abs(t-i[0])<3&&Math.abs(e-i[1])<3;return P.jsx("span",{className:"puzzle--cracker__item",style:{backgroundColor:`${s?u.hiddenColor:u.color}`,flexGrow:1,textAlign:"center"},onMouseOver:()=>{n([t,e])},onFocus:()=>{n([t,e])},children:u.value})}PI.propTypes={item:Zt.shape({color:Zt.string,hiddenColor:Zt.string,value:Zt.string}).isRequired,rowIndex:Zt.number.isRequired,columnIndex:Zt.number.isRequired,cursorPosition:Zt.arrayOf(Zt.number).isRequired,setCursorPosition:Zt.func};function jI({row:u=[],rowIndex:t,setCursorPosition:e,cursorPosition:n}){return u.length?P.jsx("div",{className:"puzzle--cracker",children:u.map((i,s)=>P.jsx(PI,{item:i,rowIndex:t,columnIndex:s,setCursorPosition:e,cursorPosition:n},s))}):null}jI.propTypes={row:Zt.arrayOf(Zt.shape({})),rowIndex:Zt.number.isRequired,setCursorPosition:Zt.func.isRequired,cursorPosition:Zt.arrayOf(Zt.number).isRequired};function u$({grid:u,cursorPosition:t,setCursorPosition:e=()=>{}}){return P.jsx("div",{className:"puzzle--cracker__canvas",children:u.map((n,i)=>P.jsx(jI,{row:n,rowIndex:i,cursorPosition:t,setCursorPosition:e},i))})}const c$={slow:2,fast:5,fastest:10},d$={easy:{visibleRows:"auto",visibleColumns:40,totalRows:25},medium:{visibleRows:"auto",visibleColumns:40,totalRows:40},hard:{visibleRows:"auto",visibleColumns:40,totalRows:80}};function h$({emitEvent:u,soundActions:t,info:e={},velocity:n="slow",password:i,disableExit:s,difficulty:o="easy",setResolveAction:l,getEvent:c,context:d={}}){const[f]=t,m=ot=>c({type:"translate",payload:ot}),_=G.useRef(),v=G.useRef(),{solution:S}=e,[y,x]=G.useState(i.toLowerCase()),[T,A]=G.useState(),[E,C]=G.useState(Array(i.toLowerCase().length).fill("")),[R,N]=G.useState(!1),[M,O]=G.useState([0,0]),B=m("puzzle.cracker.crackedPassword"),L=e.solution.right.desc&&e.solution.right.desc!==""?e.solution.right.desc:"",I=m("puzzle.cracker.congratulations"),[F,H]=G.useState([[]]),{visibleRows:W,visibleColumns:Z}=d$[o];let X=W==="auto"?Math.ceil(window.innerHeight*.025):W;X=X>=20?X:20,G.useEffect(()=>{R&&s(!0)},[R,s]),G.useEffect(()=>{l(ot=>{f("score"),N(!0),setTimeout(()=>{u({type:"hidePuzzleButtons",payload:!1}),ot()},0)})},[l,f]);const $=()=>{f("click-ui");const{rewards:ot}=S.right;u({type:"addPoints",complex:!0,finish:!0,payload:ot}),u({type:"passPuzzle"})},nt=()=>i.toLowerCase().split("").map((dt,pt)=>({char:dt,index:pt,used:!1})),Q=ot=>ot.filter(dt=>dt.used===!1).map(dt=>dt.char).join(""),tt=ot=>{if(ot[0].length>0&&!R){const dt=[...ot];return dt.push(dt.shift()),dt}return ot};let rt=0;const ut=ot=>{if(v.current!==void 0){const dt=ot-v.current;rt+=dt,rt>1e3/c$[n]&&(H(tt),rt=0)}v.current=ot,_.current=requestAnimationFrame(ut)};G.useEffect(()=>{x(i.toLowerCase());const ot=l$({numberOfColumns:Z,numberOfRows:X,password:i.toLowerCase()});return H(ot),A(nt()),_.current=requestAnimationFrame(ut),()=>cancelAnimationFrame(_.current)},[]);const st=()=>{if(F.length<=1)return;const[ot,dt]=M,pt=F[ot][dt];if(pt.hiddenColor===OI){const it=T.filter(lt=>lt.char===pt.value.toLowerCase()&&lt.used===!1)[0];if(it){const{index:lt}=it;f("score");const ht=T;ht[lt].used=!0,A(ht);const St=[...E];St[lt]=pt.value;const _t=Q(ht);x(_t);const bt=s$(F,_t,X,Z);H(bt),C(St)}}y<=0&&(f("score"),N(!0))};return G.useEffect(()=>{R||st()},[M]),P.jsxs("div",{className:"puzzle--cracker__container",children:[P.jsxs("div",{className:"puzzle--cracker__header",children:[P.jsx("span",{className:"title",children:"Dcoder.exe"}),P.jsx("div",{className:"puzzle--pieces",children:E.map((ot,dt)=>P.jsx("span",{className:"puzzle--pieces__item",children:ot&&P.jsx("span",{className:"character success-transition-animation","data-testid":`solution${dt}`,children:ot})},`${ot+dt}`))})]}),P.jsx(u$,{grid:R?[[]]:F,cursorPosition:M,setCursorPosition:O}),R&&B&&I&&P.jsxs(P.Fragment,{children:[P.jsxs(QE,{avgTypingDelay:110,cursor:{hideWhenDone:!0},className:"puzzle--cracker__result",children:[P.jsx(QE.Delay,{ms:300}),P.jsxs("span",{children:[`${B} ${i.toLowerCase()}`," "]}),P.jsxs("span",{children:[I," "]}),L!==""&&P.jsx("span",{children:L})]}),P.jsx("div",{className:"position--absolute bottom center",children:P.jsx("button",{type:"button",className:"gat--btn gat--btn__primary gat--btn__cracker",onClick:$,children:m("screens.continue")})})]})]})}const f$=/[\u0600-\u06FF]/,iz=(u,t)=>{let e=!1;return t==="or"&&(e=u===""||u===" "||u===","||u==="."||u==="/"),t==="and"&&(e=u&&u!==" "&&u!==","&&u!=="."&&u!==""&&u!=="/"),e},p$=(u,t)=>u.char>t.char?1:u.char<t.char?-1:0,m$=u=>{const t={anyArabic:!1,anyNumber:!1,anyWestern:!1};for(let e=0;e<u.length;e+=1){const n=u[e].charCodeAt(0);n>=65&&n<=90?t.anyWestern=!0:n>=48&&n<=57?t.anyNumber=!0:f$.test(u[e])&&(t.anyArabic=!0)}return t},g$=u=>{const t="شزذيثبلاهتنمورخحضثقسفعدصطغظ",e="ABCDEFGHIJKLMNOPQRSTUVWXYZ",n="0123456789";let i="";return u.anyWestern&&(i+=e),u.anyNumber&&(i+=n),u.anyArabic&&(i+=t),i.charAt(Math.floor(Math.random()*i.length))},v$=26,y$=8,az=({answer:u,flickerPosition:t,show:e=!1,showCorrectSolution:n})=>{const i=[];let s=0;return u.forEach(o=>{i[s]||(i[s]=[]),i[s]=[...i[s],o],o.char===" "&&(s+=1),n||(o.positionInitial=o.index)}),i.map((o,l)=>P.jsx("div",{dir:"auto",className:"puzzle--hanged__word","data-testid":`result-${l}`,children:e?o.map((c,d)=>P.jsx("span",{className:"puzzle--hanged__letter active",children:c},`${c+d}`)):o.filter(({char:c})=>c!==" ").map(({char:c,fixed:d},f)=>P.jsx("span",{className:`puzzle--hanged__letter ${d?"":"active"} ${o[f].positionInitial===t?"fakeFocus":""}`,children:c},`${c+f}`))},`${o+l}`))},_$="https://min.gamelearn.io/css-resources/gamelearn/resources/partenon.jpg";function b$({soundActions:u,emitEvent:t,getEvent:e,disableExit:n,question:i="",image:s={},info:o={description:"",instructions:"",resolve:{},solution:{},hintBought:{}},answer:l="",hintUsed:c,setResolveAction:d,setHintAction:f,keyboardControl:m,hintBought:_=!1}){var bt;const[v]=u,S=((bt=s.img)==null?void 0:bt.url)||_$,[y,x]=G.useState(0),[T,A]=G.useState(!1),[E,C]=G.useState([]),[R,N]=G.useState(!1),[M,O]=G.useState([]),[B,L]=G.useState(""),[I,F]=G.useState(!1),[H,W]=G.useState([]),[Z,X]=G.useState(!1),$=l.toUpperCase().split(""),nt=$.filter(yt=>iz(yt,"and")),Q=yt=>e({type:"translate",payload:yt}),tt=G.useCallback(()=>{const yt=nt.map(It=>({char:It}));let Tt=[];const wt=m$(nt);for(;Tt.length<y$;){const It=g$(wt);Tt=[...Tt,{char:It}]}return[...yt,...Tt]},[nt]),rt=l.toUpperCase().split("").map((yt,Tt)=>iz(yt,"or")?{index:Tt,letter:yt,char:yt,fixed:!0}:{index:Tt,letter:yt,char:""}),ut=G.useCallback(()=>{let yt=tt();for(;yt.length>v$;){const Tt=Math.trunc(Math.random()*(yt.length-1))+1,wt=yt[Tt],It=rt.find((Ft,$t)=>wt.char===Ft.letter&&!rt[$t].fixed);It&&(yt.splice(Tt,1),rt[It.index]={...It,char:It.letter,fixed:!0})}c&&(yt=[],rt.forEach(({letter:Tt})=>{Tt!==" "&&yt.push({char:Tt})})),O(rt),C(yt)},[rt,c,tt]),st=(yt,Tt)=>E.map((It,Ft)=>Ft===Tt?{...It,deleted:!0}:{...It}),ot=(yt,Tt,wt)=>{const It=Tt.map(($t,Jt)=>wt.find(ze=>ze.poolIndex===Jt)?{char:$t.char}:$t);C(It),O(yt);const Ft=yt.find($t=>$t.char==="");x(Ft.index)},dt=(yt,Tt)=>{v("click-ui");let wt=!1;const It=M.map(Jt=>!Jt.char&&!wt?(wt=!0,{...Jt,char:yt,poolIndex:Tt}):Jt),Ft=st(yt,Tt),$t=It.filter(Jt=>Jt.char).length;C(Ft),O(It),pt(),$t===M.length&&St(It,Ft)},pt=()=>{var yt;if(T){const Tt=M.find(wt=>wt.index!==y&&wt.letter!==" "&&wt.char===""&&wt.poolIndex===!1);Tt&&x(Tt.index)}else{const Tt=M.find(wt=>wt.char==="");x(Tt.index+1),((yt=M[Tt.index+1])==null?void 0:yt.letter)===" "&&x(Tt.index+2)}},it=()=>{v("click-ui");const yt=M.map((Tt,wt)=>M[M.length-1-wt]).find(Tt=>Tt.char&&!Tt.fixed);if(yt){const Tt=M.map(Ft=>Ft.index===yt.index?{...yt,char:""}:Ft);let wt=!1;const It=E.map((Ft,$t)=>$t===yt.poolIndex&&(Ft.deleted||!wt)?(wt=!0,{char:Ft.char}):Ft);C(It),O(Tt),x(yt.index)}},lt=()=>{n(!0),L("");const yt=[...H,...o.solution.right.rewards];v("score"),t({type:"hidePuzzleButtons",payload:!1}),t({type:"addPoints",complex:!0,finish:!0,payload:yt}),t({type:"passPuzzle"})},ht=()=>{v("fail"),t({type:"hidePuzzleButtons",payload:!1}),W([...H,...o.solution.wrong.rewards]),L(""),F(!1),t({type:"failPuzzle"}),A(!0)},St=(yt,Tt)=>{let wt=[];F(!0);const It=yt.map(($t,Jt)=>$[Jt]===$t.char?{...$t,fixed:!0}:(wt=[...wt,$t],{...$t,poolIndex:!1,char:""})),Ft=It.filter($t=>$t.fixed).length;t({type:"hidePuzzleButtons",payload:!0}),Ft===$.length?(L("success"),o.solution.right.desc===""&&setTimeout(()=>{lt()},2e3)):(L("failed"),ot(It,Tt,wt),o.solution.wrong.desc===""&&setTimeout(()=>{ht()},2e3))},_t=()=>{if(B==="success")lt();else{ht();const yt=M.find(Tt=>Tt.char==="");x(yt.index)}};return G.useEffect(()=>{R||(N(!0),ut()),d(yt=>{X(!0),setTimeout(()=>{t({type:"hidePuzzleButtons",payload:!1}),yt()},2e3)}),f(yt=>{const Tt=[];rt.forEach(({letter:wt})=>{wt!==" "&&Tt.push({char:wt})}),C(Tt),yt()})},[ut,R,l,d,t,H,o.resolve.rewards,rt,f]),P.jsxs("div",{className:"puzzle--hanged",style:{backgroundImage:`url("${S}")`},children:[B?P.jsx(fd,{playSound:v,text:o.solution[B==="success"?"right":"wrong"].desc,success:B==="success",translate:Q,functionOnClose:_t,keyboardControl:m}):null,P.jsx("div",{className:"puzzle--hanged__content",children:P.jsxs("div",{className:"puzzle--hanged__controls",children:[P.jsx("div",{dir:"auto",className:"puzzle--hanged__header",children:i}),P.jsx("div",{dir:"auto",className:`puzzle--hanged__solution ${B}`,"data-testid":`${B}`,children:Z?P.jsx(P.Fragment,{children:P.jsx(az,{showCorrectSolution:Z,answer:l.split(""),show:!0})}):P.jsx(az,{showCorrectSolution:Z,flickerPosition:y,answer:M})}),P.jsxs("div",{className:"puzzle--hanged__keyboard",children:[E.sort((yt,Tt)=>p$(yt,Tt)).map((yt,Tt)=>P.jsx("button",{"data-testid":`key-${yt.char}`,type:"button",onClick:()=>{!yt.deleted&&!B&&!I&&(dt(yt.char,Tt),v("click-ui"))},className:`puzzle--hanged__keyboard--item ${yt.deleted||I?"disabled":""}`,children:yt.char},`${yt+Tt}`)),P.jsx("button",{onClick:I?null:()=>it(),type:"button",disabled:I?"disabled":null,"aria-label":Q("puzzles.hanged-puzzle.deleteButton"),className:`puzzle--hanged__keyboard--item delete ${I?"disabled":""}`,children:P.jsx("span",{className:"icon-delete-keyboard"})})]})]})})]})}function S$({list:u,description:t,nodeId:e,setInfo:n,emitEvent:i,getEvent:s,disableExit:o,setResolveAction:l,soundActions:c,setSelected:d,selected:f,pause:m,loadPuzzleStatus:_,index:v,setIndex:S,slidesCompleted:y,setSlidesCompleted:x,keyboardControl:T,totalCorrects:A}){const E=G.useRef([]),C=G.useRef(0),R=G.useRef(0),N=`chained-image-click-puzzle_${v}_${e}`,[M]=c,O=Q=>{E.current=[...E.current,...Q]},B=G.useCallback(Q=>{M("score"),i({type:"hidePuzzleButtons",payload:!1}),i({type:"addPoints",complex:!0,finish:!0,payload:[...E.current,...Q]}),i({type:"passPuzzle"})},[M,i]),[L,I]=G.useState(!1),F=u[v],{info:H,specificFeedbacks:W}=F;H.description=t,G.useEffect(()=>{C.current=0,R.current=0,I(!1)},[v]);const Z=G.useCallback((Q,tt=!1)=>{var ut;let rt={...y};if(tt){if((ut=W==null?void 0:W.correctFeedbacks)!=null&&ut.length&&!F.hasClickOnce){const st=W.correctFeedbacks.length;L&&st?(C.current>0?d(f+(st-C.current)):d(f+st),C.current=st):C.current+=1}else{let st=f;R.current&&(st-=R.current),C.current=F.areas.length,d(st+C.current)}C.current===F.areas.length&&(v+1>=u.length?B(Q):S(v+1),rt={...rt,[v]:!0},x(rt)),O(Q)}else i({type:"addPoints",payload:Q,finish:!1}),i({type:"failPuzzle"}),F.hasClickOrder&&(d(f-C.current),C.current===0&&Object.entries(y).length===0?d(0):C.current=0),Object.entries(y).length===0&&F.hasClickOrder&&!f&&d(0)},[y,W,F.hasClickOnce,F.areas.length,F.hasClickOrder,L,d,f,v,u.length,x,B,S,i]),X=()=>{for(let Q=0;Q<E.current.length;Q=Q+1)if(E.current[Q].points>0)return!0;return!1},$=()=>{I(!0),v>=u.length-1&&d(A),M("score"),v+1>=u.length&&X()?(H.resolve.rewards.forEach(Q=>{E.current.forEach(tt=>{tt.id===Q.id&&(Q.points=Q.points+tt.points)})}),i({type:"puzzleAction",action:"resolve",payload:{element:N,rewards:H.resolve.rewards,finish:!0}})):i({type:"puzzleAction",action:"resolve",payload:{element:N,rewards:H.resolve.rewards,finish:v+1>=u.length}})};G.useEffect(()=>{n({...H,hintId:N})},[H,N,n]),G.useEffect(()=>{_&&v!==u.length-1&&Z([],!0)},[v,u.length,_,Z]);const nt=()=>{const Q=F.hasClickOnce?F.areas.length:1;R.current+=Q,d(f+Q)};return P.jsx(X9,{...F,puzzle:{name:N,component:"chained-image-click-puzzle"},specificFeedbacks:W,emitFinish:Z,emitError:O,emitResolve:$,isLast:v+1===u.length,defaultCompleted:y[v]||!!_,hideContinue:v+1!==u.length,handleClick:nt,emitEvent:i,getEvent:s,disableExit:o,soundActions:c,setResolveAction:l,pause:m,keyboardControl:T},v)}function x$(u){const{setInfo:t,emitEvent:e,nodeId:n,list:i,description:s,soundActions:o,showFrames:l,disableExit:c,setResolveAction:d,pause:f,keyboardControl:m,getEvent:_}=u,[v,S]=G.useState(0),[y,x]=G.useState(0),[T,A]=G.useState({}),E=`chained-image-click-puzzle_${y}_${n}`,C=G.useMemo(()=>_({type:"loadObjectStatus",payload:E}),[_,E]),R=i.reduce((M,O)=>M+O.areas.length,0),N={list:i,description:s,nodeId:n,disableExit:c,setResolveAction:d,emitEvent:e,soundActions:o,setInfo:t,setSelected:S,selected:v,index:y,setIndex:x,slidesCompleted:T,setSlidesCompleted:A,loadPuzzleStatus:C,pause:f,keyboardControl:m,totalCorrects:R};return P.jsxs("div",{className:"puzzle--image__click",children:[l?P.jsxs("div",{className:"puzzle-image__info",children:[P.jsx("span",{className:"info-circle"}),P.jsxs("span",{children:[v," / ",R]})]}):null,P.jsx(S$,{...N})]})}function E$({list:u,index:t,puzzlesCompiledRef:e,framesCompleted:n,handleFinish:i,accRewards:s,setRewards:o,setIndex:l,setFramesCompleted:c,loadPuzzleStatus:d,soundActions:f,setResolveAction:m,disableExit:_,description:v,translateFromParent:S,setInfo:y,emitEvent:x,nodeId:T,setSelected:A,selected:E,emitResetPuzzle:C,firstTryForFrame:R,setPuzzlesAutoCompleted:N,puzzlesAutoCompleted:M,emitOpenPopupCounterInfo:O,resetValues:B,setResetValues:L,pause:I,keyboardControl:F,totalCorrects:H,getEvent:W}){var ht;const[Z]=f,[X,$]=G.useState(!1),nt=u[t],{info:Q,specificFeedbacks:tt}=nt;Q.description=v;const rt=G.useRef(0),ut=G.useRef(0),st=`frame-image-click-puzzle_${t}_${T}`;G.useEffect(()=>{e.current+=1},[e]),G.useEffect(()=>{y({...Q,hintId:st})},[y,Q,st]),G.useEffect(()=>{B&&(ut.current=0,rt.current=0,A(0),L(!1))},[B,L,A]),G.useEffect(()=>{ut.current=0,rt.current=0,$(!1)},[t]);const ot=G.useCallback((St,_t=!1)=>{var yt;let bt={...n};if(_t){if((yt=tt==null?void 0:tt.correctFeedbacks)!=null&&yt.length&&!nt.hasClickOnce){const Tt=tt.correctFeedbacks.length;X&&Tt?(ut.current>0?A(E+(Tt-ut.current)):A(E+Tt),ut.current=Tt):ut.current+=1}else{let Tt=E;rt.current&&(Tt-=rt.current),ut.current=nt.areas.length,M[0]&&Object.entries(n).length===0?A(ut.current):A(Tt+ut.current)}ut.current===nt.areas.length&&(t+1>=u.length&&i(St),bt={...bt,[t]:!0},c(bt),l(t+1>u.length-1?0:t+1)),o(St)}else x({type:"addPoints",payload:St,finish:!1}),x({type:"failPuzzle"}),nt.hasClickOrder&&(A(E-ut.current),ut.current=0)},[n,(ht=tt==null?void 0:tt.correctFeedbacks)==null?void 0:ht.length,nt.hasClickOnce,nt.areas.length,nt.hasClickOrder,o,X,A,E,M,t,u.length,c,l,i,x]),dt=G.useCallback(()=>{for(let St=0;St<s.current.length;St=St+1)if(s.current[St].points>0)return!0;return!1},[s]),pt=G.useCallback(()=>{$(!0),t>=u.length-1&&A(H),Z("score"),x({type:"hidePuzzleButtons",payload:!1}),N(St=>({...St,[t]:!0})),t+1>=u.length&&dt()?(Q.resolve.rewards.forEach(St=>{s.current.forEach(_t=>{_t.id===St.id&&(St.points=St.points+_t.points)})}),x({type:"puzzleAction",action:"resolve",payload:{element:st,rewards:Q.resolve.rewards,finish:!0}})):x({type:"puzzleAction",action:"resolve",payload:{element:st,rewards:Q.resolve.rewards,finish:t+1>=u.length}})},[t,u.length,Z,x,N,dt,A,H,Q.resolve.rewards,st,s]),it=G.useCallback(()=>{c({}),ut.current=0,rt.current=0,C()},[C,c]);G.useEffect(()=>{d&&t!==u.length-1&&ot([],!0)},[n,t,u.length,d,ot]);const lt=()=>{const St=nt.hasClickOnce?nt.areas.length:1;rt.current+=St,A(E+St)};return P.jsx(X9,{...nt,className:"puzzle-frame__canvas",puzzle:{name:"",component:"frame-click-puzzle"},specificFeedbacks:tt,emitFinish:ot,emitResolve:pt,hideContinue:!0,disableInfo:e.current>1,defaultCompleted:n[t]||!!d,soundActions:f,setResolveAction:m,disableExit:_,translateFromParent:S,emitEvent:x,getEvent:W,slideNumber:t,handleClick:lt,emitResetPuzzle:it,firstTryForFrame:R,puzzlesAutoCompleted:M,emitOpenPopupCounterInfo:O,pause:I,keyboardControl:F},t)}function T$({getEvent:u}){const t=e=>u({type:"translate",payload:e});return P.jsx("div",{dir:"auto",className:"puzzle-frame__info--tooltip",children:t("puzzles.counterTooltip")})}function A$({current:u,total:t,tooltip:e,getEvent:n}){return P.jsxs(P.Fragment,{children:[e?P.jsx(T$,{getEvent:n}):null,P.jsxs("div",{className:"puzzle-frame__info--frames",children:[P.jsx("span",{className:"info-circle"}),P.jsxs("span",{children:[u," / ",t]})]})]})}function C$({emitEvent:u,nodeId:t=0,list:e,description:n="",showFrames:i=!1,soundActions:s,disableExit:o,setResolveAction:l,setInfo:c,getEvent:d,pause:f,keyboardControl:m,context:_={}}){const[v,S]=G.useState({}),y=G.useRef([]),[x,T]=G.useState(0),[A,E]=G.useState({}),[C,R]=G.useState(0),N=G.useRef(0),[M,O]=G.useState(!0),[B,L]=G.useState(!0),[I,F]=G.useState(!1),H=e.reduce((st,ot)=>st+ot.areas.length,0),W=st=>{y.current=[...y.current,...st]},Z=`frame-image-click-puzzle_${x}_${t}`,X=G.useMemo(()=>d({type:"loadObjectStatus",payload:Z}),[d,Z]),$=G.useCallback(st=>{u({type:"addPoints",complex:!0,finish:!0,payload:[...y.current,...st]}),u({type:"passPuzzle"})},[u]),nt=G.useCallback(()=>{L(!1),y.current=[],R(0),T(0),E({}),O(!0),F(!0)},[]),Q=st=>d({type:"translate",payload:st}),tt=()=>{O(!0)},ut={firstTryForFrame:B,list:e,description:n,index:x,puzzlesCompiledRef:N,framesCompleted:A,handleFinish:$,setRewards:W,accRewards:y,setSelected:R,selected:C,setIndex:T,setFramesCompleted:E,loadPuzzleStatus:X,soundActions:s,setResolveAction:l,disableExit:o,translateFromParent:Q,setInfo:c,emitEvent:u,nodeId:t,emitResetPuzzle:nt,resetValues:I,setResetValues:F,setPuzzlesAutoCompleted:S,puzzlesAutoCompleted:v,emitOpenPopupCounterInfo:()=>{x===0&&O(!1)},pause:f,keyboardControl:m,totalCorrects:H,getEvent:d};return P.jsxs("div",{className:"puzzle-frame",children:[P.jsx(E$,{...ut}),P.jsxs("div",{className:"puzzle-frame__content",children:[P.jsx("div",{className:"puzzle-frame__controls",children:P.jsx("div",{className:"puzzle-frame__progress",children:P.jsx("div",{"data-testid":"puzzle-frame-progress",style:{width:`${C/H*100}%`},className:"puzzle-frame__progress--handle"})})}),i?P.jsx("button",{"data-testid":"puzzle-frame-counter-button",disabled:M,"aria-hidden":M,type:"button",className:"puzzle-frame__info",onClick:tt,children:P.jsx(A$,{current:C,total:H,tooltip:!M,getEvent:d})}):null]})]})}function nu({action:u=()=>{},className:t=""}){return P.jsx("div",{role:"button",tabIndex:0,"aria-label":`${u} edit button`,onKeyUp:()=>{},className:`puzzle--webBuilder__edit ${t}`,onClick:u,children:P.jsx("span",{className:"icon-fb-edit"})})}const Jv="https://min.gamelearn.io/css-resources/gamelearn/resources/",S0=[{name:"webbuilder.imageOptions.image1",src:"Amor.jpg"},{name:"webbuilder.imageOptions.image2",src:"Bancorp.svg"},{name:"webbuilder.imageOptions.image3",src:"Amanda.jpg"},{name:"webbuilder.imageOptions.image4",src:"keyboard.jpg"},{name:"webbuilder.imageOptions.image5",src:"Melanie.jpg"},{name:"webbuilder.imageOptions.image6",src:"Sharon.jpg"},{name:"webbuilder.imageOptions.image7",src:"Bankex.svg"},{name:"webbuilder.imageOptions.image8",src:"Futbol.jpg"},{name:"webbuilder.imageOptions.image9",src:"GBL.svg"},{name:"webbuilder.imageOptions.image10",src:"Fooder.jpg"},{name:"webbuilder.imageOptions.image11",src:"Corporate.jpg"},{name:"webbuilder.imageOptions.image12",src:"Bank of Zamunda.svg"},{name:"webbuilder.imageOptions.image13",src:"mindfullness.jpg"},{name:"webbuilder.imageOptions.image14",src:"Nature.jpg"},{name:"webbuilder.imageOptions.image15",src:"Shopper.jpg"},{name:"webbuilder.imageOptions.image16",src:"Lab.jpg"}],R$=["#c66a46","#3c9dc0","#6236ff","#21254f"],w$=["#39b7b9","#25a1d4","#f5a623","#080269"],LN=[{title:"webbuilder.bank.titleOptions.title1.text",desc:"webbuilder.bank.titleOptions.title1.description"},{title:"webbuilder.bank.titleOptions.title2.text",desc:"webbuilder.bank.titleOptions.title2.description"},{title:"webbuilder.bank.titleOptions.title3.text",desc:"webbuilder.bank.titleOptions.title3.description"},{title:"webbuilder.bank.titleOptions.title4.text",desc:"webbuilder.bank.titleOptions.title4.description"},{title:"webbuilder.bank.titleOptions.title5.text",desc:"webbuilder.bank.titleOptions.title5.description"}],vR={backgroundImage:S0[10].src,backgroundLogo:S0[11].src,backgroundColor:"#21254f",btnColor:"#25a1d4"},D$={header:{color:vR.backgroundColor,logo:vR.backgroundLogo},body:{bankTitle:LN[0].title,bankDesc:LN[0].desc,bgImage:vR.backgroundImage,btnColor:vR.btnColor}};function zI({showingReference:u=!1,usingTemplate:t={},openPopup:e=()=>{},onSave:n=()=>{},header:i={},translate:s}){return P.jsxs(P.Fragment,{children:[u?P.jsx("div",{className:"bank--edit__logo",children:P.jsx("img",{src:Jv+t.header.logo,alt:"",title:""})}):P.jsxs("div",{className:"bank--edit__logo",children:[i.logo?P.jsx("img",{src:Jv+i.logo,alt:"",title:""}):P.jsxs("span",{children:[P.jsx("b",{children:s("webbuilder.bank.header.title")}),P.jsx("b",{children:s("webbuilder.bank.header.logo")})]}),P.jsx(nu,{action:()=>e("PopupImageComponent",{text:"Documents",images:S0,onSave:o=>n({logo:o})})})]}),P.jsxs("div",{className:"flex align-center",children:[P.jsxs("ul",{className:"bank--navigation",children:[P.jsx("li",{className:"bank-navigation__item",children:s("webbuilder.bank.header.account")}),P.jsx("li",{className:"bank-navigation__item",children:s("webbuilder.bank.header.invest")}),P.jsx("li",{className:"bank-navigation__item",children:s("webbuilder.bank.header.loans")}),P.jsx("li",{className:"bank-navigation__item",children:s("webbuilder.bank.header.mortgage")})]}),u?null:P.jsx(nu,{action:()=>e("PopupColorComponent",{colors:R$,onSave:o=>n({color:o})})})]})]})}zI.propTypes={showingReference:Zt.bool,usingTemplate:Zt.shape({}),openPopup:Zt.func,onSave:Zt.func,header:Zt.shape({})};function M$({showingReference:u=!1,usingTemplate:t={},header:e={},translate:n}){const i=u?t.header.userImage:e.userImage,s=u?t.header.username:e.username;return P.jsxs(P.Fragment,{children:[P.jsx("span",{className:"facebook--header__logo",children:P.jsx("span",{className:"icon-fb-logo"})}),P.jsxs("span",{className:"facebook--header__user",children:[P.jsx("span",{className:"facebook--header__user--circle",style:{backgroundImage:`url(${Jv+i})`}}),P.jsx("span",{className:"facebook--header__user--text",children:n(s||"webbuilder.facebook.header.userName")})]})]})}function BI({isFacebook:u=!1,header:t={},showingReference:e=!1,usingTemplate:n={},...i}){const s={isFacebook:u,header:t,showingReference:e,usingTemplate:n,...i},o=e?n.header.color:t.color;return P.jsx("div",{className:`puzzle--webBuilder__header ${u?"":"bank"}`,style:u?{}:{backgroundColor:`${o}`},children:P.jsx("div",{className:`${u?"facebook":"bank"}--header`,children:u?P.jsx(M$,{...s}):P.jsx(zI,{...s})})})}BI.propTypes={isFacebook:Zt.bool,showingReference:Zt.bool,usingTemplate:Zt.shape({}),header:Zt.shape({})};const sz={backgroundImage:S0[12].src,backgroundUser:S0[5].src},kI=["webbuilder.userOptions.user1","webbuilder.userOptions.user2","webbuilder.userOptions.user3"],FI=["webbuilder.workOptions.work1","webbuilder.workOptions.work2","webbuilder.workOptions.work3"],II=["webbuilder.studiesOptions.study1","webbuilder.studiesOptions.study2","webbuilder.studiesOptions.study3"],UI=["webbuilder.mailOptions.mail1","webbuilder.mailOptions.mail2","webbuilder.mailOptions.mail3"],HI=["webbuilder.homeOptions.home1","webbuilder.homeOptions.home2","webbuilder.homeOptions.home3"],O$={header:{username:kI[1],userImage:sz.backgroundUser,bgImage:sz.backgroundImage},body:{work:FI[2],home:HI[1],studies:II[0],mail:UI[0]}};function GI({showingReference:u=!1,usingTemplate:t={},header:e={},onSave:n=()=>{},translate:i,openPopup:s=()=>{}}){const o=u?t.header.userImage:e.userImage,l=u?t.header.username:e.username,c=u?t.header.bgImage:e.bgImage;return P.jsxs("div",{className:"puzzle--webBuilder__front",style:{backgroundImage:`url(${Jv+c})`},children:[P.jsxs("div",{className:"facebook--user",children:[P.jsx("span",{className:"facebook--user__circle",style:{backgroundImage:`url(${Jv+o})`},children:u?null:P.jsx(nu,{action:()=>{s("PopupImageComponent",{images:S0,onSave:d=>n({userImage:d})})}})}),P.jsx("span",{className:"facebook--user__text",children:i(l||"webbuilder.facebook.header.userName")}),u?null:P.jsx(nu,{action:()=>{s("PopupTextComponent",{options:kI,onSave:d=>n({username:d})})}})]}),u?null:P.jsx(nu,{className:"position--absolute right top",action:()=>{s("PopupImageComponent",{images:S0,onSave:d=>n({bgImage:d})})}})]})}GI.propTypes={showingReference:Zt.bool,usingTemplate:Zt.shape({}),openPopup:Zt.func,onSave:Zt.func,header:Zt.shape({})};function N$({showingReference:u=!1,usingTemplate:t={},body:e={},onSave:n=()=>{},openPopup:i=()=>{},translate:s}){const o=u?t.body.work:e.work,l=u?t.body.studies:e.studies,c=u?t.body.home:e.home,d=u?t.body.mail:e.mail;return P.jsxs(P.Fragment,{children:[P.jsxs("ul",{className:"facebook--sidebar",dir:"auto",children:[P.jsxs("li",{className:`facebook--sidebar__item ${o||u?"selected":""}`,children:[P.jsxs("div",{className:"flex align-center",children:[P.jsx("span",{className:"icon-fb-work"}),P.jsx("span",{className:"text",children:s(o||"webbuilder.facebook.body.work")})]}),u?null:P.jsx(nu,{action:()=>{i("PopupTextComponent",{options:FI,onSave:f=>n({work:f})})}})]}),P.jsxs("li",{className:`facebook--sidebar__item ${l||u?"selected":""}`,children:[P.jsxs("div",{className:"flex align-center",children:[P.jsx("span",{className:"icon-fb-education"}),P.jsx("span",{className:"text",children:s(l||"webbuilder.facebook.body.studies")})]}),u?null:P.jsx(nu,{action:()=>{i("PopupTextComponent",{options:II,onSave:f=>n({studies:f})})}})]}),P.jsxs("li",{className:`facebook--sidebar__item ${c||u?"selected":""}`,children:[P.jsxs("div",{className:"flex align-center",children:[P.jsx("span",{className:"icon-fb-home"}),P.jsx("span",{className:"text",children:s(c||"webbuilder.facebook.body.home")})]}),u?null:P.jsx(nu,{action:()=>{i("PopupTextComponent",{options:HI,onSave:f=>n({home:f})})}})]})]}),P.jsxs("div",{className:"facebook--board",children:[P.jsx("div",{className:"facebook--mail__label",children:"E-mail"}),P.jsxs("div",{className:`facebook--mail__box ${d||u?"active":""}`,children:[P.jsxs("div",{className:"flex align-center",children:[P.jsx("span",{className:"icon-fb-mail"}),P.jsx("span",{className:"text",children:s(d||"webbuilder.facebook.body.email")})]}),u?null:P.jsx(nu,{action:()=>{i("PopupTextComponent",{options:UI,onSave:f=>n({mail:f})})}})]}),P.jsxs("div",{className:"facebook--tabs",children:[P.jsxs("div",{className:"facebook--tabs__item",children:[P.jsx("span",{className:"icon-fb-edit"}),s("webbuilder.facebook.body.editPost")]}),P.jsxs("div",{className:"facebook--tabs__item",children:[P.jsx("span",{className:"icon-fb-photo"}),s("webbuilder.facebook.body.editPhoto")]}),P.jsxs("div",{className:"facebook--tabs__item",children:[P.jsx("span",{className:"icon-fb-video"}),s("webbuilder.facebook.body.liveVideo")]}),P.jsxs("div",{className:"facebook--tabs__item",children:[P.jsx("span",{className:"icon-fb-events"}),s("webbuilder.facebook.body.facebookEvent")]})]}),P.jsxs("div",{className:"facebook--thinking",children:[P.jsxs("div",{className:"facebook--textarea",children:[P.jsx("div",{className:"facebook--textarea__circle"}),P.jsx("div",{className:"facebook--textarea__placeholder",children:s("webbuilder.facebook.body.think")})]}),P.jsxs("div",{className:"facebook--chips",children:[P.jsx("span",{className:"facebook--chips__item",children:s("webbuilder.facebook.body.photo")}),P.jsx("span",{className:"facebook--chips__item",children:s("webbuilder.facebook.body.label")}),P.jsx("span",{className:"facebook--chips__item",children:s("webbuilder.facebook.body.feeling")})]})]})]})]})}function L$({showingReference:u,usingTemplate:t,body:e,onSave:n,openPopup:i,translate:s}){const o=u?t.body.bgImage:e.bgImage,l=u?t.body.btnColor:e.btnColor,c=s(u?t.body.bankTitle:"webbuilder.bank.body.image.title"),d=s(u?t.body.bankDesc:"webbuilder.bank.body.image.description");return P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"bank--image__front",style:{backgroundImage:`url(${Jv+o})`},children:P.jsxs("div",{className:"bank--image__text",children:[P.jsx("span",{className:"title",children:e.bankTitle&&!u?s(e.bankTitle):c}),P.jsx("span",{children:e.bankDesc&&!u?s(e.bankDesc):d}),u?null:P.jsx(nu,{action:()=>{i("PopupTextComponent",{options:LN,onSave:f=>n({bankTitle:f.title,bankDesc:f.desc})})}}),u?null:P.jsx(nu,{className:"position--absolute top right",action:()=>{i("PopupImageComponent",{images:S0,onSave:f=>n({bgImage:f})})}})]})}),P.jsx("div",{dir:"auto",className:"bank--sidebar",children:P.jsxs("div",{className:"bank--form",children:[P.jsx("div",{className:"bank--form__title",children:s("webbuilder.bank.body.password.title")}),P.jsxs("div",{className:"bank--form__group",children:[P.jsx("div",{className:"bank--form__label",children:s("webbuilder.bank.body.password.current")}),P.jsx("input",{disabled:!0,className:"bank--form__input",type:"password",placeholder:"********"}),P.jsx("span",{className:"icon-circle-check"})]}),P.jsxs("div",{className:"bank--form__group",children:[P.jsx("div",{className:"bank--form__label",children:s("webbuilder.bank.body.password.new")}),P.jsx("input",{disabled:!0,className:"bank--form__input",type:"password",placeholder:"********"}),P.jsx("span",{className:"icon-circle-check"})]}),P.jsxs("div",{className:"bank--form__group",children:[P.jsx("div",{className:"bank--form__label",children:s("webbuilder.bank.body.password.confirm")}),P.jsx("input",{disabled:!0,className:"bank--form__input",type:"password",placeholder:"********"}),P.jsx("span",{className:"icon-circle-check"})]}),P.jsxs("div",{className:"bank--form__buttons",children:[P.jsx("button",{type:"button",className:"bank--form__btn",style:{backgroundColor:`${l}`},children:s("webbuilder.save")}),u?null:P.jsx(nu,{action:()=>{i("PopupColorComponent",{colors:w$,onSave:f=>n({btnColor:f})})}})]})]})})]})}function VI({isFacebook:u=!1,...t}){const e={isFacebook:u,...t};return P.jsx("div",{className:`puzzle--webBuilder__body ${u?"":"bank"}`,children:u?P.jsx(N$,{...e}):P.jsx(L$,{...e})})}VI.propTypes={isFacebook:Zt.bool};function P$({translate:u,backActive:t,action:e}){return P.jsx("div",{className:"puzzle--webBuilder__topbar--buttons",children:P.jsx("button",{type:"button",className:"puzzle--webBuilder__topbar--buttons__item",onClick:e,children:u(`webbuilder.${t?"return":"showReference"}`)})})}function j$({backActive:u,displayButton:t,clickAction:e,translate:n}){return P.jsxs("div",{className:"puzzle--webBuilder__topbar",children:[t?P.jsx(P$,{backActive:u,action:e,translate:n}):null,P.jsx("div",{className:"puzzle--webBuilder__title",children:"web builder 3.0"})]})}function rz({onNext:u=()=>{},success:t=!1,showButton:e=!0,translate:n}){const i=n(t?"webbuilder.feedback.successTitle":"webbuilder.feedback.failTitle"),s=n(t?"webbuilder.feedback.success":"webbuilder.feedback.fail");return P.jsxs("div",{dir:"auto",className:`puzzle--webBuilder__feedback bottom ${t?"success":"failed"}`,style:t?{zIndex:"11"}:{},children:[P.jsxs("div",{children:[P.jsx("div",{className:"title",children:i}),P.jsx("div",{className:"description",children:s})]}),e?P.jsx("button",{type:"button",className:`gat--btn gat--btn__secondary ${t?"green":"red"}`,onClick:u,style:{marginRight:"64px"},children:n("webbuilder.continue")}):null]})}function z$({onPublish:u=()=>{},translate:t}){return P.jsx("div",{role:"button",tabIndex:0,onKeyUp:()=>{},"aria-label":"publish",className:"position--absolute bottom center",onClick:u,children:P.jsxs("div",{className:"gat--btn gat--btn__primary",children:[P.jsx("span",{className:"icon-download-cloud"}),t("webbuilder.publish")]})})}function YI({colors:u={},onSave:t=()=>{},closingAction:e=()=>{},translate:n,soundActions:i}){const[s]=i,[o,l]=G.useState(),c=o===null;return P.jsx("div",{className:"popup--layer",children:P.jsxs("div",{className:"popup",children:[P.jsx("div",{className:"popup--info",children:P.jsx("span",{className:"popup--info__item",children:P.jsxs("div",{className:"puzzle--webBuilder__colors",children:[P.jsx("div",{className:"puzzle--webBuilder__colors--title",children:P.jsx("span",{children:n("webbuilder.colorSelect.title")})}),P.jsx("div",{className:"puzzle--webBuilder__colors--items",children:u.map(d=>P.jsx("div",{className:`puzzle--webBuilder__color--select ${o===d?"selected":""}`,style:{borderColor:`${d}`},onClick:()=>l(d),children:P.jsx("span",{style:{backgroundColor:`${d}`}})},d+Date.now()))})]})})}),P.jsxs("div",{className:"popup--buttons",children:[P.jsx("button",{type:"button",className:"gat--btn gat--btn__secondary",onClick:e,children:P.jsx("span",{children:n("webbuilder.cancel")})}),P.jsx("button",{type:"button",className:`gat--btn gat--btn__primary ${c?"disabled":""}`,onClick:c?null:()=>{s("click-ui"),t(o)},children:n("webbuilder.save")})]})]})})}YI.propTypes={closingAction:Zt.func,onSave:Zt.func,colors:Zt.arrayOf(Zt.string)};function B$({images:u=[],onSave:t=()=>{},closingAction:e=()=>{},translate:n,soundActions:i}){const[s]=i,[o,l]=G.useState(),c=!o;return P.jsx("div",{className:"folder-popup",children:P.jsxs("div",{className:"folder-popup__content",children:[P.jsxs("div",{className:"folder-popup__header",children:[P.jsx("div",{}),P.jsxs("div",{className:"folder-popup__title",children:[P.jsx("span",{className:"folder-popup__icon-header icon-fb-search"}),P.jsx("span",{children:n("webbuilder.imageSelect.title")})]}),P.jsx("button",{onClick:e,className:"folder-popup__close",type:"button",children:P.jsx("span",{className:"icon-close-fit"})})]}),P.jsxs("div",{className:"folder-popup__body",children:[P.jsx("div",{className:"folder-popup__scroll",children:P.jsx("ul",{className:"folder-popup__list",children:u.map(d=>P.jsxs("li",{className:"folder-item-file",children:[P.jsx("div",{className:"folder-item-file__imagewrap",onClick:()=>l(d),onKeyUp:()=>{},role:"button",tabIndex:0,children:P.jsx("img",{alt:d.src,src:Jv+d.src})}),P.jsx("div",{className:"folder-item-file__title",title:d.src,children:d.src})]},d.src+Date.now()))})}),P.jsxs("div",{className:"folder-popup__buttons",children:[P.jsx("button",{type:"button",className:"gat--btn gat--btn__secondary",onClick:e,children:n("webbuilder.cancel")}),P.jsx("button",{type:"button",className:`gat--btn gat--btn__primary ${c?"disabled":""}`,onClick:c?null:()=>{s("click-ui"),t(o.src)},children:n("webbuilder.open")})]})]})]})})}function k$({item:u,translate:t}){return u instanceof Object?t(u.title.toString()):P.jsx("span",{children:t(u||"webbuilder.textSelect.title")})}function F$({closingAction:u,onSave:t,options:e,translate:n,soundActions:i}){const[s]=i,[o,l]=G.useState(""),c=o==="",[d,f]=G.useState(!1),m=d?"puzzle--webBuilder__select--item open":"puzzle--webBuilder__select--item",_=()=>{f(!d)};return P.jsx("div",{className:"popup--layer",children:P.jsxs("div",{className:"popup",children:[P.jsx("div",{className:"popup--info",children:P.jsx("span",{className:"popup--info__item",children:P.jsxs("div",{className:"puzzle--webBuilder__select",children:[P.jsx("div",{className:"puzzle--webBuilder__select--label",children:P.jsx("div",{dir:"auto",children:n("webbuilder.textSelect.title")})}),P.jsxs("div",{dir:"auto",className:m,onClick:()=>_(),role:"presentation",children:[P.jsx(k$,{item:o,translate:n}),P.jsx("span",{className:"icon-down-arrow"}),P.jsx("div",{className:"puzzle--webBuilder__dropdown",children:e.map(v=>v instanceof Object?P.jsxs("span",{role:"button",tabIndex:0,onKeyUp:()=>{},className:"puzzle--webBuilder__dropdown--option",onClick:()=>{l(v)},children:[P.jsx("span",{children:n(v.title)}),P.jsx("span",{className:"subtitle",children:n(v.desc)})]},v.title):P.jsx("span",{role:"button",tabIndex:0,onKeyUp:()=>{},className:"puzzle--webBuilder__dropdown--option",onClick:()=>{l(v)},children:n(v)},v))})]})]})})}),P.jsxs("div",{className:"popup--buttons",children:[P.jsx("button",{type:"button",className:"gat--btn gat--btn__secondary",onClick:u,children:n("webbuilder.cancel")}),P.jsx("button",{type:"button",className:`gat--btn gat--btn__primary ${c?"disabled":""}`,disabled:c,onClick:()=>{s("click-ui"),t(o)},children:n("webbuilder.save")})]})]})})}const I$=Object.freeze(Object.defineProperty({__proto__:null,PopupColorComponent:YI,PopupImageComponent:B$,PopupTextComponent:F$},Symbol.toStringTag,{value:"Module"})),U$={username:null,logo:null,userImage:null,bgImage:null,color:""},H$={bankTitle:null,color:"",btnColor:"",work:null,home:null,mail:null,studies:null,bgImage:null};function G$({type:u,close:t,translate:e,soundActions:n,...i}){const s=I$[u];return s?P.jsx(s,{type:u,...i.props,closingAction:t,translate:e,soundActions:n}):null}function V$({feed:u,resolved:t,translate:e,onNext:n}){return u==="success"?P.jsx(rz,{success:!0,showButton:!t,onNext:n,translate:e}):u==="failed"?P.jsx(rz,{onNext:n,translate:e}):null}function Y$({type:u,info:t,emitEvent:e,getEvent:n,setResolveAction:i,soundActions:s,disableExit:o,keyboardControl:l}){const[c,d]=G.useState(!1),[f,m]=G.useState(!1),[_,v]=G.useState(!1),[S,y]=G.useState(!1),[x,T]=G.useState(!1),[A,E]=G.useState(null),C=u==="facebook",R=C?O$:D$,[N,M]=G.useState({type:"",props:{}}),[O,B]=G.useState(U$),[L,I]=G.useState(H$),[F]=s,H=dt=>n({type:"translate",payload:dt}),W=()=>{M({type:"",props:{}})},Z=(dt,pt={})=>{M({type:dt,props:pt})},X=()=>{if(t.solution){const{rewards:dt}=t.solution.right,{rewards:pt}=t.solution.wrong;F(_?"fail":"score"),e({type:"addPoints",complex:!0,finish:!0,payload:_?pt:dt}),e({type:"passPuzzle"})}},$=l({disabled:A!=="success",forward:X,escape:X});G.useEffect(()=>$(),[$]);const nt=(dt,pt)=>{const it=Object.keys(dt),lt={existing:0,equal:0};return it.forEach(ht=>{pt[ht]!==null&&pt[ht]!==""&&(lt.existing+=1),dt[ht]===pt[ht]&&(lt.equal+=1)}),lt},Q=(dt,pt)=>{const it=Object.keys(R.header).length,lt=Object.keys(R.body).length,ht=nt(R.header,dt),St=nt(R.body,pt),_t=St.existing+ht.existing===it+lt,bt=St.equal+ht.equal===it+lt;return{exist:_t,equal:bt}},tt=()=>{F("click-ui");const{exist:dt,equal:pt}=Q(O,L);e({type:"hidePuzzleButtons",payload:!0}),dt&&!pt?(x&&T(!1),E("failed"),v(!0),e({type:"failPuzzle"})):dt&&pt&&(x&&(o(!1),T(!1)),y(!0),E("success"))},rt=dt=>{if(Object.keys(dt).length>0){const pt={...O,...dt};B(pt),W();const{exist:it}=Q(pt,L);T(!!it)}},ut=dt=>{if(Object.keys(dt).length>0){const pt={...L,...dt};I(pt),W();const{exist:it}=Q(O,pt);T(!!it)}};G.useEffect(()=>{i(dt=>{m(!0),E("success"),d(!1),setTimeout(()=>{E(""),dt()},4e3)}),o(!0)},[i,o,t.resolve.rewards,e]);const st={showingReference:c||f,isFacebook:C,openPopup:Z,usingTemplate:R,translate:H},ot=()=>{A==="failed"?(E(null),e({type:"hidePuzzleButtons",payload:!1})):A==="success"&&X()};return P.jsxs(P.Fragment,{children:[P.jsx(G$,{type:N.type,...N,close:W,soundActions:s,translate:H}),P.jsxs("div",{className:"puzzle--webBuilder",children:[P.jsx(j$,{backActive:c,displayButton:!f&&!S,translate:H,clickAction:()=>{F("click-ui"),d(!c)}}),P.jsx(BI,{...st,header:O,onSave:rt}),C?P.jsx(GI,{...st,header:O,onSave:rt}):null,P.jsx(VI,{...st,body:L,onSave:ut})]}),!x&&!c?P.jsx(V$,{feed:A,onNext:ot,resolved:f,translate:H}):null,x&&!c?P.jsx(z$,{onPublish:tt,translate:H}):null]})}function K$({img:u}){const e=(u||{}).url;return P.jsx("img",{src:e,alt:""})}function X$({text:u,hasImage:t}){return u?P.jsx("div",{className:`card-selector-item__textbox ${t?"":"card-selector-item__textbox--noimage"}`,children:P.jsx("div",{className:"card-selector-item__text",children:Oi(u)})}):null}function q$({order:u}){return u?P.jsx("div",{className:"card-selector-item__order",children:P.jsx("div",{children:u})}):null}function Q$({order:u}){return P.jsxs("div",{className:"card-selector-item__feedback card-selector-item__feedback--success ",children:[P.jsx(q$,{order:u}),P.jsx("div",{className:"card-selector-item__feedbackicon",children:P.jsx("div",{className:"icon-check-circle-black"})})]})}function W$(){return P.jsx("div",{className:"card-selector-item__feedback card-selector-item__feedback--error",children:P.jsx("div",{className:"card-selector-item__feedbackicon",children:P.jsx("div",{className:"icon-error-circle-black"})})})}function Z$({flipped:u,correct:t,order:e,wrongOrder:n,isEmpty:i}){return!i&&u&&t&&!n?P.jsx(Q$,{order:e}):!i&&u?P.jsx(W$,{}):null}function KI({card:u={},handleClick:t=()=>{},flipped:e=!1,cardIndex:n=0,wrongOrder:i=!1,documentsDict:s={}}){const o=()=>!(u.img||u.text),l=()=>!!(e&&!u.correct||!e);return P.jsxs("button",{"data-testid":`card-${n}`,type:"button",order:u.order,onClick:()=>{!o()&&l()&&t(n)},className:["unset-button card-selector-item",o()&&"card-selector-item--empty",(u.textWithBackground||u.textWithBackground===void 0)&&"card-selector-item--text-with-background",u.verticalAlignmentText&&`card-selector-item--with-text-at-${u.verticalAlignmentText}`].filter(Boolean).join(" "),"aria-label":u.text?u.text:null,children:[u.img&&P.jsx(K$,{img:u.img}),u.text&&P.jsx(X$,{text:u.text,hasImage:!!u.img}),P.jsx(Z$,{isEmpty:o(),flipped:e,wrongOrder:i,order:u.order,correct:u.correct})]})}KI.propTypes={wrongOrder:Zt.bool,handleClick:Zt.func,cardIndex:Zt.number,flipped:Zt.bool,documentsDict:Zt.shape({}),card:Zt.shape({correct:Zt.bool,order:Zt.number,text:Zt.string,imgId:Zt.string,status:Zt.string})};function J$({cards:u=[],currentOrder:t=1,setCurrentOrder:e=()=>{},handleError:n=()=>{},feedbackIsShown:i=!1,resolvePuzzle:s=!1,soundActions:o,onFinish:l=()=>{},handleSuccess:c=()=>{},resolveWithAnyCard:d=!1,documentsDict:f={}}){const[m,_]=G.useState(Array(u.length).fill(!1)),[v,S]=G.useState(Array(u.length).fill(!1)),[y,x]=G.useState(0),[T,A]=G.useState(!1),[E]=o,C=u.filter(F=>F.correct===!0).length,R=u.filter(F=>F.order).length>0,N=G.useCallback(()=>{_(Array(u.length).fill(!1)),S(Array(u.length).fill(!1)),x(0),e(1)},[u.length,e]),M=()=>{setTimeout(()=>{N()},1e3)};function O(F,H=F){const W=Array.from(m);W[F]=H,_(W)}const B=G.useCallback(()=>{const F=[];u.forEach((H,W)=>{H.correct===!0&&F.push(W)}),_(F)},[u]);G.useEffect(()=>{s&&B()},[B,s]),G.useEffect(()=>{(d&&y||y===C&&C>0)&&(l(),A(!0),x(0))},[y,l,C,d]);const L=F=>{O(F),c(u[F].id||null),x(y+1)},I=F=>{var H,W;if(!T&&!i)if(E("click-ui"),u[F].correct&&!R)L(F);else if(R){if(u[F].order===t)e(t+1),L(F);else if(O(F),u[F].order!==t){const Z=Array.from(v);Z[F]=F,S(Z),n(((H=u[F])==null?void 0:H.id)||null,u[F].correct),M()}}else n(((W=u[F])==null?void 0:W.id)||null),O(F),setTimeout(()=>{O(F,!1)},1e3)};return P.jsx("div",{className:`cards-selector__content cards-selector__content-${u.length}`,children:u&&u.map((F,H)=>P.jsx(KI,{setCurrentOrder:e,card:F,handleClick:()=>I(H),flipped:m.includes(H),wrongOrder:v.includes(H),cardIndex:H},`cardPuzzle ${u.indexOf(F)}`))})}function $$({emitEvent:u,getEvent:t,info:e={},cards:n=[],resolveWithAnyCard:i=!1,specificFeedbacks:s,disableExit:o,setResolveAction:l,soundActions:c,backgroundImage:d={url:""},nodeId:f,keyboardControl:m,hideBackgroundImageTheme:_=!1}){var ot,dt;const[v,S]=G.useState(!1),[y,x]=G.useState(1),[T,A]=G.useState(!1),[E,C]=G.useState(!1),[R,N]=G.useState(!1),[M,O]=G.useState([]),[B,L]=G.useState(!1),[I,F]=G.useState(""),[H]=c,W=pt=>t({type:"translate",payload:pt}),Z=`cards-selector-puzzle_${f}`,X=G.useCallback(pt=>{A(!1),N(!1),u({type:"hidePuzzleButtons",payload:!1}),u({type:"addPoints",complex:!0,finish:!0,payload:pt}),u({type:"passPuzzle"})},[u]),$=G.useCallback(()=>{var ht,St;u({type:"hidePuzzleButtons",payload:!0}),A(!0);const{rewards:pt}=((ht=e==null?void 0:e.solution)==null?void 0:ht.right)||{},it=((St=s==null?void 0:s.correctFeedbacks)==null?void 0:St.map(_t=>_t.rewards).flat())||[],lt=[...M,...pt,...it];H("score"),X(lt)},[M,X,u,(ot=e==null?void 0:e.solution)==null?void 0:ot.right,H,s==null?void 0:s.correctFeedbacks]),nt=()=>{S(!0),e.solution.right.desc&&!(s!=null&&s.specificCorrectFeedbacks)&&F(e.solution.right.desc),N(!0)},Q=()=>{T||v?$():(A(!1),o(!1),N(!1),u({type:"hidePuzzleButtons",payload:!1})),F("")},tt=pt=>{if(C(!0),s!=null&&s.specificCorrectFeedbacks){const it=s.correctFeedbacks.find(lt=>lt.id===pt);it!=null&&it.desc&&(F(it.desc),N(!0))}H("score"),u({type:"hidePuzzleButtons",payload:!0})},rt=(pt,it=!1)=>{var lt,ht;if(C(!1),it)F((lt=e.orderFeedback)==null?void 0:lt.desc),N(!0),O([...M,...((ht=e.orderFeedback)==null?void 0:ht.rewards)||[]]);else if(s!=null&&s.specificWrongFeedbacks){const St=s.wrongFeedbacks.find(_t=>_t.id===pt);St!=null&&St.desc?(F(St.desc),N(!0)):(N(!0),setTimeout(()=>{Q(),u({type:"hidePuzzleButtons",payload:!1})},2e3)),O([...M,...(St==null?void 0:St.rewards)||[]])}else e.solution.wrong.desc?(F(e.solution.wrong.desc),N(!0)):(N(!0),setTimeout(()=>{Q(),u({type:"hidePuzzleButtons",payload:!1})},3e3));o(!0),!(s!=null&&s.specificWrongFeedbacks)&&!it&&O([...M,...e.solution.wrong.rewards]),H("fail"),u({type:"hidePuzzleButtons",payload:!0}),u({type:"failPuzzle"})};G.useEffect(()=>{v&&o(!0)},[o,v]),G.useEffect(()=>{l(()=>{var it;u({type:"hidePuzzleButtons",payload:!0}),L(!0);const pt=[...M,...((it=e==null?void 0:e.resolve)==null?void 0:it.rewards)||{}];setTimeout(()=>{A(!1),N(!1),u({type:"hidePuzzleButtons",payload:!1}),u({type:"puzzleAction",action:"resolve",payload:{element:Z,rewards:pt,finish:!0}})},2e3)})},[l,o,M,(dt=e==null?void 0:e.resolve)==null?void 0:dt.rewards,u,Z]);const ut=G.useMemo(()=>{let pt="";return pt="cards-selector",d!=null&&d.url&&(pt+=" cards-selector--with-custom-bg"),_&&(pt+=" disable-background-image"),pt},[d==null?void 0:d.url,_]),st={backgroundImage:d!=null&&d.url?`url('${d.url}')`:""};return P.jsxs(P.Fragment,{children:[P.jsx("div",{className:ut,style:st,children:P.jsx(J$,{setCurrentOrder:x,currentOrder:y,cards:n,onFinish:nt,resolveWithAnyCard:i,handleError:rt,feedbackIsShown:R,resolvePuzzle:B,soundActions:c,handleSuccess:tt})}),R&&P.jsx(fd,{success:T||E,text:I,hasTimeout:!I,translate:W,functionOnClose:Q,keyboardControl:m})]})}function ttt(){return P.jsx("span",{className:"fakecursor",children:"|"})}function ett({delay:u=0,index:t,length:e,textToPrint:n="",setDoneTyping:i=()=>{},nextParagraphType:s="",isWriting:o=()=>{}}){const[l,c]=G.useState(!0),[d,f]=G.useState(""),[m,_]=G.useState(!1);G.useEffect(()=>{_(t===e-1)},[t,e]);const v=T=>{if(!T||!T.length)return"";const A=T.replace(/<script.*?>.*?<\/script>/gim,""),E=document.createElement("DIV");return E.innerHTML=A,E.textContent||E.innerText||""};G.useEffect(()=>{const T=()=>{const E=n.trim().split(" ");return A(E,E.length-1).join(" ")},A=(E,C)=>{if(C<0)return[""];const R=[...E];if(v(E[C]).length!==0){const N=E[C];return R[C]=`<span class="lastWord" >${N}</span>`,R}return A(E,C-1)};s==="election"?f(T()):setTimeout(()=>{f(n)},200)},[s,n]);const S=()=>{i(!0),c(!1)},y=n.split("<p>");y.shift();const x=y.length>1;return l&&n!==""&&d!==""?P.jsx("span",{className:`writer-inline ${x?"multiple":""} ${m?"Typist":""}`,"data-testid":`result-${t}`,children:P.jsx(QE,{startDelay:300,avgTypingDelay:u,stdTypingDelay:10,onCharacterTyped:o,onTypingDone:S,cursor:{hideWhenDone:!0,hideWhenDoneDelay:200},blink:!0,children:Oi(n)})}):P.jsxs("span",{className:`writer-inline ${x?"multiple":""} ${m?"Typist":""}`,"data-testid":`result-${t}`,children:[Oi(d),s==="election"&&m&&P.jsx(ttt,{})]})}function ntt({option:u={},decisionInspected:t,setCurrentDecisionSelected:e=()=>{},index:n=0,setCurrentDecisionInspected:i=()=>{},soundActions:s}){const[o]=s,l=_=>_.previewText!==""?Oi(_.previewText):Oi(_.fullText),c=_=>_.previewText!==""?t===n?"icon-eye inspected":"icon-eye":"",d=()=>{o("click-ui"),e(n)},f=_=>{_.keyCode===13&&m(_)},m=_=>{_.preventDefault(),_.stopPropagation(),t===n?(_.target.style.background="",i("")):i(n)};return P.jsxs("div",{className:"single-election",children:[P.jsxs("button",{className:"single-election__cta",type:"button",onClick:()=>d(),children:[P.jsx("div",{className:"single-election__btn",children:P.jsx("span",{children:l(u)})}),P.jsx("div",{onClick:m,onKeyDown:f,className:c(u),"aria-label":"Inspect",role:"button",tabIndex:0})]}),t===n&&P.jsx("div",{className:"single-election__complete",children:P.jsx("div",{children:Oi(u.fullText)})})]})}function itt({decisionInspected:u,opt:t,index:e,setCurrentDecisionSelected:n,setCurrentDecisionInspected:i,soundActions:s}){return t&&t.fullText&&t.fullText!==""?P.jsx(ntt,{decisionInspected:u,setCurrentDecisionSelected:n,setCurrentDecisionInspected:i,option:t,soundActions:s,index:e}):null}function att({textWithOpts:u=[],setCurrentDecisionSelected:t=()=>{},printed:e=()=>{},soundActions:n}){const[i,s]=G.useState("");return G.useEffect(()=>{e()},[e]),P.jsx("div",{className:`elections-box pos${i+1}-${u.filter(o=>!!o.fullText).length}`,children:u&&u.map((o,l)=>P.jsx(itt,{opt:o,soundActions:n,index:l,setCurrentDecisionSelected:t,setCurrentDecisionInspected:s,decisionInspected:i},l))})}function stt({decision:u={}}){const{title:t,body:e}=u.feedback;return P.jsx("div",{children:e!==""&&P.jsxs("div",{className:"writer-feedback-decision-item",children:[t&&P.jsxs("div",{dir:"auto",className:"writer-feedback-decision-item__title",children:[t," "]}),e&&P.jsxs("div",{dir:"auto",className:"writer-feedback-decision-item__message",children:[u.correct?P.jsx("span",{className:"icon-check-circle-black color--success"}):P.jsx("span",{className:"icon-error-circle-black color--error"}),P.jsx("span",{children:e})]})]})})}function rtt({getEvent:u,closingAction:t=()=>{},feedbackIsDone:e=()=>{},decisionsList:n=[],texts:i=[],retryAction:s=()=>{},retry:o=!1,skip:l=!1,checkCorrect:c=()=>{},rewardsStack:d,setFailed:f,soundActions:m,emitEvent:_=()=>{},nodeId:v="0"}){const[S]=m,y=T=>u({type:"translate",payload:T}),x=()=>{S("click-ui"),t(),f(),e()};return P.jsxs("div",{className:`writer-feedback ${d.length?"":"start"}`,children:[P.jsx("div",{className:"writer-feedback__title",children:y("puzzles.feedback")}),P.jsx("div",{className:"writer-feedback__decisions",children:n.map(T=>i[T.currenTextParagraph].electionTexts[T.index].feedback.body?P.jsx(stt,{decision:i[T.currenTextParagraph].electionTexts[T.index]},T.index):null)}),P.jsxs("div",{className:"writer-feedback__btns",children:[l&&P.jsx("button",{type:"button",className:"gat--btn gat--btn__secondary writer-feedback__btn-mobile",onClick:()=>{x()},children:y("puzzles.skip")}),o&&P.jsx("button",{type:"button",className:"gat--btn gat--btn__primary writer-feedback__btn-mobile",onClick:()=>{c()?x():(S("click-ui"),s())},children:y(c()?"puzzles.continue":"puzzles.retry")}),!o&&P.jsx("button",{type:"button",className:"gat--btn gat--btn__primary writer-feedback__btn-mobile",onClick:()=>x(),children:y("puzzles.continue")})]})]})}function ott({textToPrint:u="",correct:t=""}){const e=u.split("<p>");e.shift();const n=e.length>1;return P.jsx("span",{className:`writer-inline ${n?"multiple":""} ${t}`,children:Oi(u)})}function ltt({emitEvent:u=()=>{},getEvent:t,styles:e="",nodeId:n="0",retry:i=!1,skip:s=!1,type:o="",info:l={},setResolveAction:c,documentTitle:d="",documentTitle_labelId:f,texts:m=[],soundActions:_,backgroundImage:v,hideBackgroundImageTheme:S=!1}){const y=Lt=>t({type:"translate",payload:Lt}),x=G.useRef(),[T,A]=G.useState(!1),[E,C]=G.useState(!1),[R,N]=G.useState(0),[M,O]=G.useState({[`text_${R}`]:{...m[R],id:`text_${R}`,correct:""}}),[B,L]=G.useState(!1),[I,F]=G.useState([]),[H,W]=G.useState(!1),[Z,X]=G.useState(!1),[$,nt]=G.useState(!1),[Q,tt]=G.useState(!0),[rt,ut]=G.useState([]),[st,ot]=G.useState(!0),[dt]=_,pt=G.useRef({}),it=Lt=>{let Yt;return Lt.electionTexts.forEach((ee,Be)=>{ee.correct&&(Yt=Be)}),Yt},lt=G.useCallback(Lt=>I.filter(ee=>ee.currenTextParagraph===Lt)[0].fullText_labelId,[I]),ht=G.useCallback(()=>m.map((Lt,Yt)=>{if(Lt.type==="fixed")return Lt.fullText_labelId??Lt.fullText;if(Lt.type==="election"){const ee=it(Lt);return ee>=0?Lt.electionTexts[ee].fullText_labelId:lt(Yt)}return""}),[lt,m]),St=12,_t=()=>{if(I){const Lt=I.length;let Yt=0;for(let ee=0;ee<Lt;ee+=1)I[ee].isCorrect==="none"&&(Yt+=1);return Yt===Lt}return!0},bt=G.useCallback(()=>{if(I){const Lt=I.length;let Yt=0;for(let ee=0;ee<Lt;ee+=1)I[ee].isCorrect==="green"&&(Yt+=1);return Yt===Lt}return!0},[I]),yt=()=>!!(I&&I.length),Tt=()=>I.find(Lt=>{const{feedback:Yt}=m[Lt.currenTextParagraph].electionTexts[Lt.index];return Yt.body!==""}),wt=G.useCallback(()=>{const Lt=ht();u({type:"finishMedia",payload:{name:f,text:Lt,documentType:o,type:"text"}})},[ht,f,u,o]),It=G.useCallback(Lt=>{const Yt=bt();dt(E?"fail":Yt?"score":"fail"),u({type:"addPoints",complex:!0,finish:!0,payload:Lt||rt,onFinish:o!=="view"?wt:null}),u({type:"passPuzzle"})},[bt,u,E,wt,dt,rt,o]);G.useEffect(()=>{T&&ot(!1),c(()=>{It(l.resolve.rewards)})},[u,It,T,wt,l.resolve.rewards,c,o]);const Ft=()=>{A(!1),N(0),F([]),ut([]),C(!1),nt(!1),L(!1),X(!1),W(!1),O({text_0:{...m[0],id:"text_0",correct:""}}),tt(!0),u({type:"addPoints",complex:!0,finish:!1,payload:rt}),u({type:"failPuzzle"})},$t=()=>{yt()?_t()&&(W(!0),It()):(W(!0),nt(!0),It()),H?(tt(!1),$&&!Z?X(!0):(Z||!$&&!Z)&&(!$&&!Z&&i?bt()?It():Ft():It())):(W(!0),Tt()&&nt(!0))},Jt=()=>{const Lt=m[R].electionTexts.filter(ee=>ee.correct).length,Yt=m[R].electionTexts;return Lt===0||Lt===Yt},we=Lt=>{const Yt=m[R].electionTexts[Lt],ee=Yt.feedback.rewards;ee&&ee[0]&&ee[0].points&&(pt.current[`t${R}_e${Lt}`]||(Yt.correct&&(pt.current[`t${R}_e${Lt}`]=!0),ut([...rt,...ee])));const Be=()=>Jt()?"none":Yt.correct?"green":"red",Ke={currenTextParagraph:R,fullText:Yt.fullText,index:Lt,isCorrect:Be()};O({...M,[`text_${R}`]:{type:"fixed",fullText:Yt.fullText,correct:Ke.isCorrect}}),F([...I,Ke])},ze=()=>{x.current.scrollTop=x.current.scrollHeight+100},Se=()=>{if(x.current.querySelector(".wrapfixed").offsetHeight>x.current.offsetHeight){const Lt=x.current.querySelector(".wrapfixed").offsetHeight;x.current.scrollTo({top:Lt,behavior:"smooth"})}},Te=(Lt,Yt,ee)=>{const Be=Lt.fullText,Ke=m[ee+1]?m[ee+1].type:"",Gt=M[`text_${ee+1}`]&&M[`text_${ee+1}`].type?M[`text_${ee+1}`].type:Ke;return P.jsx(ett,{length:Yt,doneTyping:B,index:ee,delay:St,setDoneTyping:L,nextParagraphType:Gt,isWriting:Se,textToPrint:Be},ee.toString())},pn=(Lt,Yt)=>{const ee=Lt.fullText;return P.jsx(ott,{textToPrint:ee,correct:Lt.correct},Yt)},Mn=Lt=>P.jsx(att,{soundActions:_,textWithOpts:Lt.electionTexts,setCurrentDecisionSelected:we,printed:ze,disableExit:st},Lt.electionTexts),zt=(Lt,Yt,ee)=>Lt.type==="fixed"?Te(Lt,Yt,ee):Mn(Lt);G.useEffect(()=>{B===!0&&(()=>{m[R+1]?(O({...M,[`text_${R+1}`]:{...m[R+1],id:`text_${R+1}`,correct:""}}),N(R+1),L(!1)):A(!0)})()},[B,R,M,m]);const te=G.useMemo(()=>{let Lt=`writer-puzzle writer-puzzle--${e}`;return S&&(Lt+=" disable-background-image"),Lt},[S,e]),pe={backgroundImage:v!=null&&v.url?`url('${v.url}')`:""};return P.jsx(P.Fragment,{children:P.jsx("div",{className:te,style:pe,children:P.jsxs("div",{className:"writer-puzzle__overlay",children:[Z&&P.jsx(rtt,{getEvent:t,texts:m,setFailed:()=>C(!0),decisionsList:I,closingAction:$t,retry:i,skip:s,checkCorrect:bt,retryAction:Ft,rewardsStack:rt,nodeId:n,soundActions:_}),!Z&&P.jsxs("div",{className:"writer-puzzle__container",children:[P.jsx("div",{dir:"auto",className:"writer-puzzle__title",children:d!==""&&d}),P.jsx("div",{className:"writer-puzzle__body",dir:je()?"rtl":"auto",children:P.jsxs("div",{className:"writer-puzzle__scroll",tabIndex:0,style:{overflowX:"hidden",padding:"0 0 20px 0",height:"95%"},ref:x,children:[P.jsx("div",{className:"wrapfixed",children:Q&&!H&&Object.values(M).map((Lt,Yt)=>zt(Lt,Object.values(M).length-1,Yt))}),H&&Object.values(M).map((Lt,Yt)=>pn(Lt,Yt))]})}),T&&P.jsx("div",{className:"writer-puzzle__footer",children:P.jsx("button",{type:"button",className:"gat--btn gat--btn__primary",onClick:$t,children:y("screens.continue")})})]})]})})})}function XI({document:u,name:t,isWallpaper:e}){const n=(u==null?void 0:u.url)||null;return P.jsx("div",{className:`puzzle--terminal__image ${e?"puzzle--terminal__image--wallpaper":""}`,children:n?P.jsx("img",{src:n,alt:t||""}):null})}const utt={image:"image-icon",video:"video-icon",embedded_video:"video-icon",pdf:"pdf-icon",terminal:"console-icon",cracker:"cracker-icon",folder:"folder-icon",world:"world-icon"};function ctt({file:u,solution:t,showContinue:e,info:n,resolvePuzzle:i,backFile:s,translate:o,soundActions:l,keyboardControl:c}){var A;const{fileId:d}=u,f=((A=u.document)==null?void 0:A.url)||"",[m]=l,_={image:{component:XI,props:{...u,url:f,soundActions:l}},video:{component:_5,props:{...u,url:f,endVideo:i,soundActions:l,translate:o}},embedded_video:{component:_5,props:{...u,url:f,soundActions:l}},pdf:{component:y5,props:{...u,url:f,translate:o,soundActions:l,emitNumberOfPages:()=>{},endPdf:()=>{},keyboardControl:c}},application:{component:y5,props:{...u,url:f,translate:o,soundActions:l,emitNumberOfPages:()=>{},keyboardControl:c,endPdf:()=>{}}}};if(!_[u.type])return null;const v=_[u.type].component,S=_[u.type].props,x=u.name.replace(/.jpg|.png|.pdf|.mp4/gi,""),T=t.fileId;return P.jsx(P.Fragment,{children:P.jsxs("div",{className:"puzzle--terminal__visor",children:[P.jsx(fd,{playSound:m,shortText:!0,success:d===T,text:d===T?n.solution.right.desc:n.solution.wrong.desc,functionOnClose:d===T?i:s,additionalStyle:utt[u.type],secondText:x,translate:o,puzzleHeaderClass:"puzzle--terminal__visor--message",keyboardControl:c}),P.jsx("div",{className:"puzzle--terminal__visor--body",children:P.jsx(v,{...S})}),P.jsx("div",{className:"puzzle--terminal__button",children:d===T&&e?P.jsx("button",{className:"gat--btn gat--btn__primary green",type:"button",onClick:i,children:o("screens.continue")}):null})]})})}const qI={image:"image-icon",video:"video-icon",embedded_video:"video-icon",pdf:"pdf-icon",terminal:"console-icon",cracker:"cracker-icon",folder:"folder-icon",application:"pdf-icon",world:"world-icon"};function MM({item:u,selectItem:t}){const e=u.name;return P.jsx("li",{className:"puzzle--terminal__folder__list--item",children:P.jsxs("button",{type:"button",title:e,className:`unset-button puzzle--terminal__item id-${u.id}`,onClick:()=>u.fixed?null:t(u),children:[P.jsx("span",{className:`puzzle--terminal__icon ${qI[u.type]}`}),P.jsx("span",{children:e})]})})}function dtt({initFile:u,backFile:t,file:e,closeFolder:n,selectItem:i}){return P.jsx(P.Fragment,{children:e.id==="init"?P.jsx("ul",{className:"puzzle--terminal__folder__list desktop",children:e.children.map((s,o)=>P.jsx(MM,{selectItem:i,item:s},`${`${o}${s.id}`}`))}):P.jsxs(P.Fragment,{children:[P.jsx("ul",{className:"puzzle--terminal__folder__list desktop",children:u.children.map((s,o)=>P.jsx(MM,{selectItem:i,item:s},`${o+s.id}`))}),P.jsxs("div",{className:"puzzle--terminal__folder",children:[P.jsxs("div",{className:"puzzle--terminal__folder--head",children:[P.jsx("span",{role:"button",onKeyUp:()=>{},"aria-label":"back file",tabIndex:0,onClick:()=>t(),className:"puzzle--terminal__folder--back",children:P.jsx("span",{className:"icon-back"})}),P.jsx("span",{className:`puzzle--terminal__folder--head__icon ${qI[e.type]}`}),P.jsx("span",{className:"text",children:e.name}),P.jsx("span",{role:"button",tabIndex:0,"aria-label":"close folder",onKeyUp:()=>{},onClick:()=>n(),className:"puzzle--terminal__folder--close",children:P.jsx("span",{className:"icon-close"})})]}),P.jsx("div",{className:"puzzle--terminal__folder--body",children:P.jsx("ul",{className:"puzzle--terminal__folder__list",children:e.children.map((s,o)=>P.jsx(MM,{selectItem:i,item:s},`${o+s.id}`))})})]})]})})}const htt="https://min.gamelearn.io/css-resources/gamelearn/resources/cosmos-bg-min.jpg",ftt=[{fileId:"ids1",type:"world",fixed:!0,name:"Web builder 3.0"},{fileId:"ids2",type:"cracker",fixed:!0,name:"Decoder.exe"},{fileId:"ids3",type:"terminal",fixed:!0,name:"terminal"}];function ptt({emitEvent:u,getEvent:t,items:e,backgroundImage:n,solution:i,info:s,disableExit:o,soundActions:l,setResolveAction:c,nodeId:d,keyboardControl:f}){const[m,_]=G.useState({}),[v]=G.useState(!1),[S,y]=G.useState([]),x=G.useRef([]),[T]=l,A=L=>t({type:"translate",payload:L}),E=`terminal-puzzle_${d}`,C=G.useMemo(()=>({name:"init",children:[...ftt,...e],id:"init"}),[e]),R=G.useCallback(L=>{T("click-ui"),_(L),y([...S,L]),L.type!=="folder"&&(u({type:"hidePuzzleButtons",payload:!0}),o(!0))},[S,o,u,T]);G.useEffect(()=>{_(C),y([C])},[C]),G.useEffect(()=>{c(()=>{x.current=[...x.current,...s.resolve.rewards];const L=x.current.map(I=>{var $;const{name:F,points:H,type:W,id:Z}=I,X={name:F,points:H,type:W,id:Z};return($=I==null?void 0:I.document)!=null&&$.resourceId&&(X.id=I.document.resourceId),X});u({type:"hidePuzzleButtons",payload:!1}),u({type:"puzzleAction",action:"resolve",payload:{element:E,rewards:L,finish:!0}})})},[c,s.resolve.rewards,u,E]);const N=()=>{x.current=[...x.current,...s.solution.wrong.rewards];const L=S.length-1,I=S.filter((F,H)=>L>H);_(S[L-1]),y(I),o(!1),u({type:"hidePuzzleButtons",payload:!1})},M=()=>{T("click-ui");const L=S[0];_(L),y([L])},O=()=>{x.current=[...x.current,...s.solution.right.rewards];const L=x.current.map(I=>{var $;const{name:F,points:H,type:W,id:Z}=I,X={name:F,points:H,type:W,id:Z};return($=I==null?void 0:I.document)!=null&&$.resourceId&&(X.id=I.document.resourceId),X});u({type:"hidePuzzleButtons",payload:!1}),T("score"),u({type:"addPoints",complex:!0,finish:!0,payload:L}),u({type:"passPuzzle"})},B=(n==null?void 0:n.url)||htt;return P.jsx("div",{className:"puzzle--terminal",children:m.children?P.jsxs(P.Fragment,{children:[P.jsx(XI,{isWallpaper:!0,document:{url:B}}),P.jsx(dtt,{backFile:N,initFile:C,selectItem:R,breadcrumb:S,closeFolder:M,file:m,translate:A})]}):P.jsx(ctt,{soundActions:l,backFile:N,resolvePuzzle:O,info:s,showContinue:!v,solution:i,file:m,translate:A,keyboardControl:f})})}function mtt({area:u,image:t,resolveObject:e,info:n,hasHighlights:i,getEvent:s,consume:o,disableExit:l,emitEvent:c,soundActions:d,keyboardControl:f}){const{solution:m}=n,_=G.useRef(),v=G.useRef(),S=G.useRef(),y=G.useRef(),x=G.useRef({}),[T,A]=G.useState(""),[E,C]=G.useState(!1),[R,N]=G.useState(),[M]=G.useState(new window.Image),O=G.useRef([]),[B]=d,L=st=>s({type:"translate",payload:st});G.useEffect(()=>{l(T!=="")},[T,l]);const I=(st,ot)=>(st.x+st.width>ot.x&&st.x+st.width<=ot.x+ot.width||ot.x+ot.width>st.x&&ot.x+ot.width<=st.x+st.width)&&(st.y+st.height>ot.y&&st.y+st.height<=ot.y+ot.height||ot.y+ot.height>st.y&&ot.y+ot.height<=st.y+st.height),F=()=>{_&&i&&(_.current.to({duration:.25,opacity:.75}),v.current.to({duration:.25,opacity:.4}))},H=()=>{_&&i&&(_.current.to({duration:.25,opacity:0}),v.current.to({duration:.25,opacity:0}))},W=G.useCallback(st=>{let ot=!1;if(st){const dt=S.current;dt.setPointersPositions(st);const pt=dt.getPointerPosition(),it=_.current.getClientRect({relativeTo:dt});ot=I({...pt,width:1,height:1},it)}return ot},[]),Z=G.useCallback(st=>st&&e.uid===JSON.parse(st).uid,[e.uid]),X=G.useCallback(()=>{A(""),c({type:"hidePuzzleButtons",payload:!1}),c({type:"addPoints",complex:!0,finish:!0,payload:O.current}),c({type:"passPuzzle"}),o&&c({type:"consumeItem",payload:{uid:e.uid,targetId:e.uid,name:e.name}})},[o,c,e.name,e.uid]),$=G.useCallback(()=>{A("success"),c({type:"hidePuzzleButtons",payload:!0}),O.current=[...O.current,...m.right.rewards],n.solution.right.desc===""?setTimeout(()=>{X()},2e3):X()},[c,X,n.solution.right.desc,m.right.rewards]),nt=G.useCallback(()=>{A(""),c({type:"hidePuzzleButtons",payload:!1}),c({type:"failPuzzle"}),O.current=[...O.current,...m.wrong.rewards]},[c,m.wrong.rewards]),Q=G.useCallback(st=>{const ot=st.dataTransfer.getData("item");S.current.setPointersPositions(st);const dt=W(st);c({type:"hidePuzzleButtons",payload:!0}),dt&&Z(ot)?(A("success"),n.solution.right.desc===""&&$()):(A("failed"),n.solution.wrong.desc===""&&setTimeout(()=>{nt()},2e3))},[W,Z,c,$,nt,n.solution.right.desc,n.solution.wrong.desc]),tt=()=>{T==="success"?$():nt()};G.useEffect(()=>{const st=t.img.url||"";M.src=st,M.onload=()=>{y.current&&(x.current={x:y.current.clientWidth/2,y:y.current.clientHeight/2,width:M.width,height:M.height,offsetX:M.width/2,offsetY:M.height/2,scale:{x:Math.min(y.current.clientWidth/M.width,y.current.clientHeight/M.height),y:Math.min(y.current.clientWidth/M.width,y.current.clientHeight/M.height)}},C(!0))}},[M,t.img.url]);const rt=st=>{st!==null&&(_.current=st)},ut=st=>{if(st!==null&&(v.current=st,_.current)){const{x:ot,y:dt,width:pt,height:it}=_.current.getClientRect();st.setAttr("x",ot),st.setAttr("y",dt),st.setAttr("height",it),st.setAttr("width",pt)}};return G.useLayoutEffect(()=>{if(_.current&&E){const st=_.current.getClientRect({relativeTo:_.current.getParent()});N({x:st.x+st.width/2,y:st.y+st.height/2})}},[E]),P.jsxs("div",{className:"puzzle--drag__mask100",onDrop:Q,onDragOver:st=>{st.preventDefault()},children:[P.jsx("div",{className:"puzzle--drag__mask",children:P.jsx("div",{ref:y,"data-testid":"mask_canvas",className:"puzzle--drag__mask--canvas",children:E?P.jsx(DI,{ref:S,width:y.current.clientWidth,height:y.current.clientHeight,children:P.jsxs(NN,{children:[P.jsx(wI,{image:M,...x.current}),P.jsxs(P_,{...x.current,children:[R?P.jsx(MI,{transform:!0,groupProps:{id:"projection",...R},divProps:{style:{pointerEvents:"none"}},children:P.jsx("div",{style:{width:"50px",height:"50px",pointerEvents:"none"},id:"object-area-projection"})}):null,P.jsx(RI,{onMouseEnter:F,onMouseLeave:H,ref:rt,...u,shape:"poly",fill:"#262a31d9",stroke:"white",strokeWidth:1,opacity:0,dash:[3,2],closed:!0,draggable:!1})]}),P.jsx(YJ,{onMouseEnter:F,onMouseLeave:H,ref:ut,text:L("puzzle.drag.dropzone"),fontSize:12,align:"center",verticalAlign:"middle",fill:"#ffffff",opacity:0})]})}):null})}),T!==""?P.jsx(fd,{text:n.solution[T==="success"?"right":"wrong"].desc,success:T==="success",translate:L,playSound:B,functionOnClose:tt,keyboardControl:f}):null]})}const gtt=["A","B","C","D","E","F","G","H","I","J"];function vtt({disabled:u,answered:t,question:e,updateForm:n,result:i,correctQuestions:s,translate:o}){const[l,c]=G.useState(!1),d=e.answers.filter(y=>y.text),f=y=>{let x=!1;return i[e.id].find(T=>T.id===y)&&(x=!0),x},m=y=>{let x="";return l?(t&&f(y.id)&&(x="selected"),u&&f(y.id)&&s.includes(y.id)&&(x="success"),u&&f(y.id)&&!s.includes(y.id)&&(x="failed")):(t&&y.id===i[e.id][0].id&&(x="selected"),u&&y.id===i[e.id][0].id&&(x=i[e.id][0].isCorrect?"success":"failed")),x},_=y=>{const x=m(y);return x==="selected"?"icon-check-circle-black color--selected":x==="success"?"icon-check-circle-black color--success":x==="failed"?"icon-error-circle-black color--error":""},v=e.answers.filter(y=>y.isCorrect),S=y=>u&&y.feedback&&(m(y)==="failed"||m(y)==="success")&&(l&&f(y.id)||y.id===i[e.id][0].id);return G.useEffect(()=>{v.length===1?c(!1):c(!0)},[v.length,l,e.answers]),P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"test--questions__item",children:P.jsx("span",{children:e.text})}),l&&!u?P.jsx("div",{className:"test--questions__intertitle test--questions__intertitle--multiresponse",children:o("tests.chooseMoreOneAnswer")}):null,d.map((y,x)=>P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:"test--response__fakeinput",children:[l?P.jsx("input",{checked:t&&f(y.id),disabled:u&&!f(y.id),readOnly:u,type:"checkbox",id:y.id,onChange:()=>u?null:n(y,e.id,x,"isCheckbox",y.id)}):P.jsx(P.Fragment,{children:P.jsx("input",{checked:t&&y.id===i[e.id][0].id,disabled:u&&!m(y),type:"radio",name:"name",id:y.id,onChange:()=>u?null:n(y,e.id,x,"isRadio")})}),P.jsxs("label",{htmlFor:y.id,className:`test--response__item ${m(y)}`,children:[P.jsx("div",{className:"test--response__index",children:gtt[x]}),P.jsx("div",{className:"test--response__text",children:P.jsx("span",{children:y.text})}),P.jsx("div",{className:`test--response__icon ${_(y)}`})]})]},y.text),S(y)&&P.jsxs("div",{className:"test--feedback",children:[P.jsx("div",{children:P.jsx("b",{children:P.jsx("span",{children:P.jsx("span",{children:o("test.feedback")})})})}),P.jsx("span",{children:y.feedback})]})]}))]})}const oz=["A","B","C","D","E","F","G","H","I","J"];function ytt({selectedAnswers:u,correctQuestions:t,question:e,translate:n}){const i=l=>t.includes(l),s=(l,c)=>l.index<c.index?-1:l.index>c.index?1:0,o=u.sort(s);return P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"test--questions__item",children:P.jsx("span",{children:e})}),o.map(l=>P.jsxs("div",{className:"test--response__itemwrap",children:[P.jsxs("div",{className:`test--response__item ${i(l.id)?"success":"failed"}`,children:[P.jsx("div",{className:"test--response__index",children:oz[l.index]}),P.jsx("div",{className:"test--response__text",children:P.jsx("span",{children:l.text})}),P.jsx("div",{className:`test--response__icon ${i(l.id)?"icon-check-circle-black color--success":"icon-error-circle-black color--error"}`})]}),P.jsxs("div",{className:"test--feedback",children:[P.jsx("div",{children:P.jsx("b",{children:P.jsxs("span",{children:[n("test.feedback")," ",u.length>1?oz[l.index]:""]})})}),P.jsx("span",{children:l.feedback})]})]},l.text))]})}function _tt({questions:u,setTime:t,saveInterval:e,result:n,setTries:i,tries:s,time:o,showResults:l,answered:c,answerPage:d,updateForm:f,disabled:m,translate:_,soundActions:v,paused:S,view:y,correctQuestions:x,feedbacksOnlyWhenReview:T}){const A=document.querySelector(".test--container"),[E,C]=G.useState(0),[R,N]=G.useState(),M=u[E].id,[O]=v;G.useEffect(()=>{if(o>=0&&!m&&!S){const X=setInterval(()=>{R||t($=>$-1)},1e3);return e(X),()=>{clearInterval(X)}}},[m,R,S,e,t,o]);const B=()=>{A.scrollTo(0,0),O("click-ui"),c&&(n[M][0].feedback&&!m&&!T?N(!0):(d(!1),C(E+1)))},L=()=>{O("click-ui"),C(E-1)},I=()=>{A.scrollTo(0,0),u[E+1]?(N(!1),d(!1),C(E+1)):l()},F=()=>{A.scrollTo(0,0),i(s+1),n[M][0].feedback&&!m&&!T?N(!0):l()},H=Math.floor(o/60),W=o%60;G.useEffect(()=>{if(y==="review"){const X=n[`q${E}`][0].id,$=document.querySelector(`#${X}`);A.scrollTo(0,$.offsetTop)}},[E,A,n,y]);const Z=()=>{if(c){const X=x[u[E].id.substring(1)].answers,$=n[M],nt=$.find(tt=>tt.isCorrect===!1);let Q=0;return $.forEach(tt=>{X.includes(tt.id)&&(Q+=1)}),!nt&&Q===X.length}return!1};return P.jsxs(P.Fragment,{children:[y==="review"||R?P.jsx("div",{"data-testid":"feedbackWrapper",className:`test-feedback-header ${Z()?"success":"failed"}`,children:P.jsxs("h2",{children:[P.jsx("span",{className:`${Z()?"icon-correct-thumb":"icon-incorrect-thumb"}`}),P.jsx("span",{className:"test-feedback-header__title",children:Z()?_("tests.resolvedQuestion"):_("tests.notResolvedQuestion")})]})}):null,P.jsxs("div",{className:"test--questions",children:[P.jsx("div",{className:"test--questions__container",children:R?P.jsx(ytt,{selectedAnswers:n[M],correctQuestions:x[u[E].id.substring(1)].answers,question:u[E].text,translate:_}):P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:"test--questions__intertitle",children:[P.jsx("div",{children:je()?P.jsxs(P.Fragment,{children:[E+1,"/",u.length," ",P.jsx("span",{children:_("tests.question")})]}):P.jsxs(P.Fragment,{children:[P.jsx("span",{children:_("tests.question")})," ",E+1,"/",u.length]})}),y!=="review"&&o>=0?P.jsx("div",{dir:"ltr",className:`count-down ${o<10?"count-down--finalseconds":""}`,children:P.jsxs("div",{id:"test-time",children:[H<10?`0${H}`:H," : ",W<10?`0${W}`:W]})}):null]}),P.jsx(vtt,{result:n,disabled:m,answered:c,updateForm:f,question:u[E],correctQuestions:m?x[u[E].id.substring(1)].answers:[],translate:_},u[E].id)]})}),P.jsxs("div",{className:`test--buttons ${y==="review"?"reviewmode":"next"}`,children:[y==="review"?P.jsx("button",{disabled:E===0,id:"back-button",onClick:()=>L(),type:"button",className:`gat--btn__navigation ${E===0?"disabled":""}`,"aria-label":je()?_("survey.next"):_("survey.previous"),children:P.jsx("span",{className:je()?"icon-next":"icon-back"})}):null,!R&&u[E+1]?P.jsx("button",{disabled:!c,id:"next-button","data-testid":"nextButton",onClick:()=>B(),type:"button",className:`gat--btn__navigation ${c?"":"disabled"}`,"aria-label":je()?_("survey.previous"):_("survey.next"),children:P.jsx("span",{className:je()?"icon-back":"icon-next"})}):null,R?P.jsx("button",{id:"next-button","data-testid":"nextFeedbackButton",onClick:()=>I(),type:"button",className:"gat--btn__navigation",children:P.jsx("span",{className:je()?"icon-back":"icon-next"})}):null,!R&&u[E].id.substring(1)===(u.length-1).toString()?P.jsx("button",{disabled:!c,id:"continue-button","data-testid":"continueButton",onClick:()=>{O("click-ui"),c&&F()},type:"button",className:`gat--btn__navigation ${c?"":"disabled"}`,"aria-label":je()?_("survey.previous"):_("survey.next"),children:P.jsx("span",{className:je()?"icon-back":"icon-next"})}):null]})]})]})}function btt({result:u,time:t,mandatory:e,correctQuestions:n,isFirst:i,reviewTest:s,finishTest:o,restartTest:l,timeOver:c,timeOverText:d,getEvent:f,minimumPercentage:m}){const _=G.useRef(),[v,S]=G.useState(0),[y,x]=G.useState(),[T,A]=G.useState([]),[E,C]=G.useState([]),[R,N]=G.useState(),M=G.useCallback(()=>{const Q=[];return n.forEach(tt=>Q.push(tt.answers)),Q},[n]),O=G.useCallback(()=>{const Q=[];return Object.values(u).forEach(tt=>{if(tt.length>1){const rt=tt.find(st=>st.isCorrect===!1),ut=[];rt?Q.push([]):(tt.forEach(st=>{st.isCorrect&&ut.push(st.id)}),Q.push(ut))}else tt[0].isCorrect?Q.push([tt[0].id]):tt[0].isCorrect===!1&&Q.push("")}),Q},[u]),B=G.useCallback(()=>{let Q=0;if(E.length>0)return T.forEach((tt,rt)=>{tt.length>1?tt.every(ut=>{var st;return(st=E[rt])==null?void 0:st.includes(ut)})&&(Q+=1):tt.length===1&&E[rt]&&tt[0]===E[rt][0]&&(Q+=1)}),Q},[T,E]);G.useEffect(()=>{R===void 0&&(A(M),C(O),N(B))},[M,O,B,R]);const L=n.length,I=B()===L,F=R<m,H=R>=m,W=!e||H,Z=Math.trunc(v/L*100),X=(Q,tt)=>f({type:"translate",payload:Q,values:tt}),$={"--chart-color":"var(--color-error)"};G.useEffect(()=>{if(v<R){const Q=setInterval(()=>{S(tt=>tt+1)},100);return x(Q),()=>{clearInterval(Q)}}},[R,v]),G.useEffect(()=>{v>=R&&clearInterval(y)},[R,y,v]);const nt=()=>{_.current=!0,o()};return P.jsxs("div",{"data-testid":"resultsWrapper",className:`test--results ${F||c?"test--results--failed":""}`,children:[i&&I?P.jsxs("div",{"data-testid":"fireworks",className:"fireworks",children:[P.jsx("div",{className:"before"}),P.jsx("div",{className:"after"})]}):null,!c&&F?P.jsx("div",{className:"test--results__title",children:P.jsx("span",{children:X("tests.NotFinishedSuccessfully")})}):null,!c&&H||I?P.jsx("div",{className:"test--results__title",children:P.jsx("span",{children:X("tests.finishedSuccessfully")})}):null,c?P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"test--results__title",children:P.jsx("span",{children:d})}),P.jsx("div",{className:"test--results__time",id:"results-time",children:P.jsx("span",{children:X("tests.time",t)})})]}):null,P.jsxs("div",{className:`chart center chart${Z}`,children:[P.jsxs("div",{className:"chart-slice",children:[P.jsx("div",{className:"chart-bar",style:F||c?$:{}}),P.jsx("div",{className:"chart-fill",style:F||c?$:{}})]}),P.jsxs("span",{className:"chart-value",children:[P.jsxs("div",{className:"test--results__chart",children:[P.jsx("span",{"data-testid":"correctPoints",children:v}),P.jsxs("span",{"data-testid":"totalCorrectAnswers",children:["/",L]})]}),P.jsx("div",{className:"test--results__chart--label",children:P.jsx("span",{children:X("tests.success")})})]})]}),P.jsxs("div",{className:"test--results__minimum",children:[P.jsx("div",{className:"icon-bell"}),P.jsx("div",{children:X("tests.minimumQuestionsMessage",{minimumPercentage:m})})]}),P.jsxs("div",{className:"test--results__buttons",children:[c?null:P.jsx("button",{className:"gat--btn gat--btn__secondary",id:"review-button",onClick:()=>s(),type:"button",children:P.jsx("span",{children:X("tests.review")})}),W?null:P.jsx("button",{className:"gat--btn gat--btn__primary","data-testid":"restartButton",id:"restart-button",onClick:()=>l(),type:"button",children:P.jsx("span",{children:X("tests.restart")})}),W?P.jsx("button",{disabled:_.current===!0,className:`gat--btn gat--btn__primary ${_.current===!0&&"disabled"}`,"data-testid":"finishButton",id:"finish-button",onClick:()=>nt(),type:"button",children:P.jsx("span",{children:X("tests.continue")})}):null]})]})}function Stt({test:u,countdown:t={},emitEvent:e,getEvent:n,soundActions:i,audio:s,required:o,pause:l,minimumPercentage:c=100,feedbacksOnlyWhenReview:d}){const{questions:f}=u,[m,_]=G.useState({}),[v,S]=G.useState(),[y,x]=G.useState(0),[T,A]=G.useState([]),[E,C]=G.useState(t.time),[R,N]=G.useState(!1),[M,O]=G.useState("test"),[B,L]=G.useState(!0),[I,F]=G.useState({}),[H,W]=G.useState({}),[Z,X]=G.useState(!1),$=o||u.required||!1,nt=G.useRef({}),[Q,tt]=G.useState(),[rt,ut]=i,st=(ht,St,_t,bt,yt)=>{const Tt={...ht,index:_t};if(y>0&&(Tt.rewards=Tt.rewards.filter(It=>!H[ht.id]||It.points<0)),m[St]){const It=m[St].find(Ft=>Ft.id===yt);if(It){if(It.id===ht.id){const Ft=m[St].find(Jt=>Jt.id===yt),$t=m[St].indexOf(Ft);if(m[St].splice($t,1),m[St].length===0){N(!1);return}}}else m[St].push(Tt)}else m[St]=[Tt];let wt;bt==="isRadio"?wt={...m,[St]:[Tt]}:wt={...m},_(wt),F(wt),W({...H,[ht.id]:{...ht}}),N(!0)};G.useEffect(()=>{s!=null&&s.url&&rt(s.url,"tts")},[rt,s]);const ot=f.map(ht=>{const St=ht.answers.filter(bt=>bt.isCorrect),_t=[];return St.forEach(bt=>{_t.push(bt.id)}),{question:ht.id,answers:_t}});G.useEffect(()=>{T.length===0&&A(ot)},[T.length,ot]),G.useEffect(()=>{if(c){const ht=Math.ceil(f.length*c/100);tt(ht)}},[f.length,c]),G.useEffect(()=>{E===0&&(clearInterval(v),N(!1),X(!0),O("results"),ut("tts"))},[v,ut,E]);const dt=()=>{clearInterval(v),N(!1),O("results");const ht={...I};F(ht),ut("tts")},pt=()=>{const ht={correctQuestions:T.length,result:m,status:"resolved"};Object.keys(m).forEach(_t=>{m[_t].forEach(bt=>{nt.current[bt.id]&&(bt.rewards=[])})}),e({type:"saveTest",payload:ht})},it=()=>{const ht=()=>{F({}),W({}),O("test"),_({}),C(t.time),X(!1),s!=null&&s.url&&rt(s.url,"tts")},St=Object.values(m);St.forEach(bt=>{bt.forEach(yt=>{yt.isCorrect&&(nt.current[yt.id]?yt.rewards=[]:nt.current[yt.id]=!0)})});let _t=St.reduce((bt,yt)=>{const Tt=[];return yt.forEach(wt=>{Tt.push(wt.rewards)}),[...bt,...Tt.flat()]},[]);Z&&t.rewards&&(_t=[..._t,...t.rewards]),e({type:"addPoints",payload:_t,complex:!0,finish:!1,onFinish:ht()}),e({type:"failTest"})},lt=(ht,St)=>n({type:"translate",payload:ht,values:St});return P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"test--container__overlay"}),P.jsx("div",{"data-testid":"wrapperTest",className:"test--container",dir:"auto",children:M!=="results"?P.jsx(_tt,{result:m,time:E,setTries:x,tries:y,answerPage:N,setTime:C,paused:l,saveInterval:S,disabled:M!=="test",answered:R||M!=="test",questions:f,updateForm:st,showResults:dt,translate:lt,soundActions:i,view:M,correctQuestions:T,feedbacksOnlyWhenReview:d}):P.jsx(btt,{reviewTest:()=>{L(!1),O("review")},isFirst:B,finishTest:pt,time:E,mandatory:$,restartTest:it,result:m,correctQuestions:T,timeOver:Z,timeOverText:t.text,emitEvent:e,getEvent:n,soundActions:i,minimumPercentage:Q})})]})}const lz=["yes","no"],xtt=["A","B"];function Ett({setSurveyData:u,survey:t,id:e,translate:n}){const i=s=>{u({...t,[e]:s})};return P.jsx("div",{className:"survey--page__item",children:lz.map((s,o)=>P.jsxs("button",{"data-testid":`applicablebox-${lz[o]}`,type:"button",onClick:()=>i(s),className:`unset-button survey--response__item ${t[e]===s?"selected":""}`,children:[P.jsx("div",{className:"survey--response__index",children:xtt[o]}),P.jsx("div",{className:"survey--response__text",children:n(`survey.${s}`)})]},s))})}const Ttt=[0,1,2,3,4,5,6,7,8,9,10];function Att({setSurveyData:u,survey:t,id:e,translate:n}){const i=s=>{u({...t,[e]:s})};return P.jsxs("div",{className:"survey--page__item","aria-label":"opinion box",children:[P.jsx("div",{className:"survey--points",children:Ttt.map(s=>P.jsx("button",{type:"button",onClick:()=>i(s),className:`unset-button survey--points__item survey--points__item--colorized ${t[e]===s?"selected":""}`,children:s},s))}),P.jsxs("div",{className:"survey--points__labels",children:[P.jsx("span",{children:n("survey.bad")}),P.jsx("span",{children:n("survey.excellent")})]})]})}function uz({setSurveyData:u,survey:t,id:e,literalLabel:n}){const i=s=>{u({...t,[e]:s})};return P.jsx("div",{className:"survey--page__item",children:P.jsx("textarea",{ref:s=>{s&&s.focus()},className:"survey--textarea",id:n,value:t[e],onChange:s=>i(s.target.value)})})}const Ctt={applicable:"",opinion:"",comments:"",suggestions:""},zc=[{component:Ett,id:"applicable"},{component:Att,id:"opinion"},{component:uz,id:"comments"},{component:uz,id:"suggestions"}];function Rtt({emitEvent:u,getEvent:t,soundActions:e}){const[n,i]=G.useState(Ctt),[s,o]=G.useState(0),[l,c]=G.useState(!1),[d]=e,f=(v,S)=>t({type:"translate",payload:v,values:S}),m=(v=!1)=>{if(d("click-ui"),!v&&s+1>=zc.length)c(!0);else{v&&c(!1);const S=v?s-1:s+1;o(S)}},_=zc[s].component;return P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"survey--container__overlay"}),P.jsx("div",{className:"survey--container",dir:"auto",children:P.jsxs("div",{className:"survey--questions",children:[P.jsxs("div",{className:"survey--questions__container",children:[P.jsxs("div",{className:"survey--questions__intertitle",children:[P.jsx("div",{children:P.jsx("span",{children:f("survey.numQuestion",{init:s+1,page:zc.length})})}),P.jsx("div",{children:f("auto-evaluation.allQuestionsMandatory")})]}),P.jsx("label",{className:"survey--questions__item","data-testid":`survey.question${s+1}`,htmlFor:f(`survey.question${s+1}`,{ordinal:s+1}),children:f(`survey.question${s+1}`,{ordinal:s+1})}),P.jsx(_,{setSurveyData:i,id:zc[s].id,survey:n,translate:f,literalLabel:f(`survey.question${s+1}`,{ordinal:s+1})})]}),P.jsxs("div",{className:"test--buttons next",children:[P.jsx("button",{"data-testid":"backButton",id:"survey-button-back",type:"button",disabled:s===0,onClick:()=>m(!0),className:`gat--btn__navigation ${s===0?"disabled":""}`,"aria-label":je()?f("survey.next"):f("survey.previous"),children:P.jsx("span",{className:je()?"icon-next":"icon-back"})}),!l&&s===zc.length-1?P.jsx("button",{"data-testid":"survey.finish",id:"survey-button",type:"button",disabled:!n[zc[s].id],onClick:()=>{d("click-ui"),u({type:"saveSurvey",payload:n})},className:`gat--btn gat--btn__primary ${n[zc[s].id]?"":"disabled"} not-transition`,children:f("survey.finish")}):null,!l&&s!==zc.length-1?P.jsx("button",{"data-testid":"nextButton",id:"survey-button",type:"button",disabled:!n[zc[s].id],onClick:()=>m(!1),className:`gat--btn__navigation ${n[zc[s].id]?"":"disabled"}`,"aria-label":je()?f("survey.previous"):f("survey.next"),children:P.jsx("span",{className:je()?"icon-back":"icon-next"})}):null]})]})})]})}function wtt({onFinish:u,translate:t}){return G.useEffect(()=>{let e;return u&&(e=setTimeout(()=>{u()},2e3)),()=>{e&&clearTimeout(e)}},[u]),P.jsx("div",{"data-testid":"endScreen",className:"auto-evaluation__endscreen","aria-label":"auto evaluation endscreen",children:P.jsxs("div",{className:"auto-evaluation__finishband","aria-label":"auto evaluation finishband",children:[P.jsx("span",{className:"icon-check-laptop auto-evaluation__iconendscreen","aria-label":"icon-check",role:"img"}),P.jsx("span",{className:"auto-evaluation__thanks","aria-label":"auto evaluation thanks",role:"contentinfo",children:t("auto-evaluation.thanks")})]})})}function Dtt({onNext:u,description:t,translate:e}){return P.jsxs("div",{className:"auto-evaluation__startscreen",role:"alertdialog","aria-modal":"true","aria-label":"ae start screen",children:[P.jsx("span",{className:"icon-happy-laptop auto-evaluation__starticon","aria-label":"icon laptop",role:"img"}),P.jsx("div",{className:"auto-evaluation__starttext","aria-label":"desciption",children:P.jsx("span",{children:t})}),P.jsx("button",{"data-testid":"auto-start-button",type:"button",className:"gat--btn gat--btn__primary auto-evaluation__button auto-evaluation__button--start",onClick:u,children:P.jsx("span",{children:e("auto-evaluation.start")})})]})}function Mtt({description:u,questions:t,type:e,emitEvent:n,getEvent:i,soundActions:s}){var R,N,M;const[o,l]=G.useState(null),[c,d]=G.useState("start"),[f,m]=G.useState(!1),[_,v]=G.useState(0),[S,y]=G.useState({current:{questions:[],type:e}}),[x]=s,T=O=>i({type:"translate",payload:O}),A=O=>{O.code==="Enter"&&O.target.blur()},E=()=>{x("click-ui"),n({type:"saveSurveyPrePos",payload:S.current})};G.useEffect(()=>{!t.length&&c==="questions"&&d("end")},[t,c]);const C=(O,B=!1)=>{var I;const L=O!==null?O:(I=S.current.questions.find(F=>F.id===t[_].id))==null?void 0:I.answer;if(x("click-ui"),B)v(_-1),m(!1);else{const F=S.current.questions.findIndex(W=>W.id===t[_].id),H=[...S.current.questions];F>-1?H.splice(F,1,{id:t[_].id,answer:L}):H.push({id:t[_].id,answer:L}),y({...S,current:{...S.current,questions:H}}),_===t.length-1?m(!0):(v(_+1),m(!1))}};return P.jsxs(P.Fragment,{children:[P.jsx("div",{className:"test--container__overlay","aria-label":"test container overlay"}),P.jsxs("div",{className:"test--container",dir:"auto","aria-label":"test container",children:[c==="start"&&P.jsx(Dtt,{description:u,onNext:()=>{d("questions"),x("click-ui")},translate:T}),c==="questions"&&P.jsxs("div",{"data-testid":"survey--questions",className:"survey--questions","aria-label":"survey questions",children:[P.jsxs("div",{className:"survey--questions__container","aria-label":"survey questions container",children:[P.jsxs("div",{className:"survey--questions__intertitle",children:[P.jsx("div",{children:P.jsxs("span",{children:[T("auto-evaluation.question")," ",_+1," ",T("storylines.misc.of")," ",t.length]})}),P.jsx("div",{children:T("auto-evaluation.allQuestionsMandatory")})]}),P.jsxs("div",{children:[P.jsx("div",{className:"survey--questions__item","aria-label":"survey questions item",children:(R=t[_])==null?void 0:R.text}),P.jsx("div",{className:"survey--page__item","aria-label":"survey page item",children:P.jsx("div",{className:"survey--points","aria-label":"survey points",children:Array(11).fill(0).map((O,B)=>{var L;return P.jsx("button",{"data-testid":`button-option-${0+B}`,type:"button",onTouchStart:()=>{l(B)},onTouchEnd:()=>{l(null)},onKeyUp:I=>{A(I)},onClick:()=>{C(B,!1)},className:`survey--points__item survey--points__item--simple ${((L=S.current.questions[_])==null?void 0:L.answer)===B||o===B?"selected":""}`,children:B},`${0+B}`)})})})]},`${t[_]}`)]}),P.jsxs("div",{className:"test--buttons next","aria-label":"test buttons",children:[P.jsx("button",{"data-testid":"back-button",type:"button",disabled:_===0,onClick:()=>C(null,!0),"aria-label":je()?T("survey.next"):T("survey.previous"),className:`gat--btn__navigation ${_===0?"disabled":""}`,children:P.jsx("span",{className:je()?"icon-next":"icon-back","aria-label":"icon button"})}),f?P.jsx("button",{"data-testid":"finish-button",type:"button",onClick:()=>{d("end"),x("click-ui")},className:`gat--btn gat--btn__primary auto-evaluation__button not-transition
313
313
  `,children:P.jsx("span",{children:T("auto-evaluation.end")})}):P.jsx("button",{"data-testid":"forward-button",type:"button",onClick:()=>C(null,!1),disabled:((N=S.current.questions[_])==null?void 0:N.answer)===void 0,"aria-label":je()?T("survey.previous"):T("survey.next"),className:`gat--btn__navigation ${((M=S.current.questions[_])==null?void 0:M.answer)===void 0?"disabled":""}`,children:P.jsx("span",{className:je()?"icon-back":"icon-next"})})]})]}),c==="end"&&P.jsx(wtt,{onFinish:E,translate:T})]})]})}function Ott({img:u,name:t,viewed:e,emitEvent:n,getEvent:i,soundActions:s,keyboardControl:o}){const[l]=s,c=_=>i({type:"translate",payload:_}),d=()=>{l("click-ui"),n({type:"savePattern",payload:{imgId:u.resourceId,name:t,viewed:!0,url:m,type:"pattern"}})},f=o({disabled:e,forward:d,escape:d});if(G.useEffect(()=>f(),[f]),!u)return null;const m=u.url;return P.jsx("div",{className:e?"notes--results":"readings--container pattern-wrap--overlay",children:P.jsx("div",{className:e?"notes--results__text":"pattern-wrap",children:e?P.jsx("div",{children:m&&P.jsx("img",{src:m,alt:"pattern"})}):P.jsxs("div",{className:"pattern",children:[P.jsxs("div",{className:"pattern__header",children:[P.jsx("div",{className:"pattern__title",children:c("phone.pattern")}),P.jsx("button",{type:"button","aria-label":c("storylines.misc.closePiece"),className:"pattern__close gat--btn__round gat--btn__close",onClick:()=>d(),children:P.jsx("span",{className:"icon-close"})})]}),P.jsx("figure",{className:"pattern__figure",children:m&&P.jsx("img",{src:m,alt:"pattern"})})]})})})}const PN=(u,t=0,e,n,i)=>{var s,o;if((s=u.props)!=null&&s.children){const l=u.type,{children:c,...d}=u.props;if(u.props["data-text-id"]){if(d.dir="auto",d.onClick=f=>n(f,d["data-text-id"]||-1),e!=null&&e.hasHighlights){const f=[...e.correctTexts,...e.wrongTexts];for(let m=0;m<f.length;m+=1)d["data-text-id"]===f[m].id&&(d.className="text-click__hover-correct")}}else e!=null&&e.allWrong&&!u.props["data-text-id"]&&(d.onClick=f=>n(f,"allWrong"));return Array.isArray(c)?P.jsx(l,{...d,children:c.map((f,m)=>PN(f,m,e,n))},`${u.type}_${t}`):P.jsx(l,{...d,children:PN(c,t,e,n)},`${u.type}_${t}`)}return((o=u.props)==null?void 0:o.children)!==null?u.split(" ").filter(l=>l!=="").map(l=>P.jsx("span",{dir:"auto",children:l},l)):null};function Ntt({emitEvent:u,getEvent:t,showFrames:e,styles:n,list:i,soundActions:s,description:o,setInfo:l,setResolveAction:c,keyboardControl:d,backgroundImage:f,hideBackgroundImageTheme:m=!1,nodeId:_}){const v=`textclick-puzzle_${_}`,[S,y]=G.useState({result:null,show:!1,text:"",timeout:!1}),[x]=s,[T,A]=G.useState(0),[E,C]=G.useState(0),[R,N]=G.useState(0),M=G.useRef(0),O=G.useRef([]),[B,L]=G.useState(0),[I,F]=G.useState(),H=G.useCallback(it=>t({type:"translate",payload:it}),[t]),W=G.useRef(null),Z=G.useCallback(()=>M.current===i[T].correctTexts.length||i[T].hasClickOnce&&M.current>=1,[T,i]),X=G.useCallback((it,lt)=>{it&&u({type:"hidePuzzleButtons",payload:!0}),y(ht=>({...ht,show:it,...lt}))},[u]),$=G.useCallback(()=>{if(Z())if(y(it=>({...it,result:!1})),M.current=0,R===E){const it=O.current.reduce((lt,ht)=>{const St=lt.findIndex(_t=>_t.id===ht.id);return St>=0?lt[St].points+=ht.points:lt.push({...ht}),lt},[]);u({type:"addPoints",complex:!0,finish:!0,payload:it}),u({type:"passPuzzle"})}else W.current=null,A(T+1),L(0),F(!0),setTimeout(()=>{F(!1)},1200)},[Z,R,E,u,T]),nt=G.useCallback(()=>{u({type:"hidePuzzleButtons",payload:!1}),$(),y(lt=>({...lt,show:!1,text:""}));const it=document.querySelectorAll(".text-click__failed");it.length>0&&it.forEach(lt=>lt.classList.remove("text-click__failed"))},[u,$]),Q=G.useCallback((it,lt)=>{var ht,St;it.forEach(_t=>_t.classList.add("text-click__success")),N(R+1),M.current+=1,x("score"),(ht=i[T].info.solution.right)!=null&&ht.desc?Z()&&(O.current=[...O.current,...i[T].info.solution.right.rewards],X(!0,{result:!0,text:i[T].info.solution.right.desc,timeout:!1})):i[T].info.solution.right.desc===""&&(lt!=null&&lt.desc)?(O.current=((St=lt==null?void 0:lt.rewards)==null?void 0:St.length)>0?[...O.current,...(lt==null?void 0:lt.rewards)||{}]:[...O.current],X(!0,{result:!0,text:lt.desc,timeout:!1})):i[T].specificFeedbacks.specificCorrectFeedbacks?(O.current=[...O.current,...(lt==null?void 0:lt.rewards)||{}],Z()&&X(!0,{result:!0,timeout:!0})):Z()&&(O.current=[...O.current,...i[T].info.solution.right.rewards],X(!0,{result:!0,timeout:!0}))},[R,x,i,T,Z,X]),tt=G.useCallback((it,lt)=>{var ht;it.forEach(St=>St.classList.add("text-click__failed")),x("fail"),u({type:"failPuzzle"}),i[T].info.solution.wrong.desc!==""?(O.current=[...O.current,...i[T].info.solution.wrong.rewards],X(!0,{result:!1,text:i[T].info.solution.wrong.desc,timeout:!1})):i[T].info.solution.wrong.desc===""&&(lt!=null&&lt.desc)?(O.current=(ht=lt==null?void 0:lt.rewards)!=null&&ht.length?[...O.current,...(lt==null?void 0:lt.rewards)||{}]:[...O.current],X(!0,{result:!1,text:lt.desc,timeout:!1})):i[T].specificFeedbacks.specificWrongFeedbacks?(O.current=[...O.current,...(lt==null?void 0:lt.rewards)||{}],X(!0,{result:!1,timeout:!0})):(O.current=[...O.current,...i[T].info.solution.wrong.rewards],X(!0,{result:!1,timeout:!0}))},[x,u,i,T,X]),rt=G.useCallback((it,lt)=>{var wt,It,Ft,$t;it.stopPropagation();const ht=document.querySelectorAll(`[data-text-id="${lt}"]`),St=document.querySelectorAll("[data-text-id]"),_t=i[T].correctTexts.find(Jt=>Jt.id===lt),bt=i[T].wrongTexts.find(Jt=>Jt.id===lt),yt=(It=(wt=i[T])==null?void 0:wt.specificFeedbacks)==null?void 0:It.correctFeedbacks.find(Jt=>Jt.id===lt),Tt=($t=(Ft=i[T])==null?void 0:Ft.specificFeedbacks)==null?void 0:$t.wrongFeedbacks.find(Jt=>Jt.id===lt);x("click-ui"),i[T].hasClickOrder?i[T].correctTexts[B].id===lt?(L(B+1),Q(ht,yt)):i[T].correctTexts.find(Jt=>Jt.id===lt)&&i[T].correctTexts[B].id!==lt?(St.forEach(Jt=>Jt.classList.remove("text-click__success")),L(0),N(0),M.current=0,X(!0,{result:!1,text:i[T].info.orderFeedback.desc||H("puzzles.incorrectOrder"),timeout:!1}),A(0)):tt(ht,Tt):(_t==null?void 0:_t.id)===lt?Q(ht,yt):((bt==null?void 0:bt.id)===lt||lt==="allWrong")&&tt(ht,Tt)},[i,T,x,B,Q,X,H,tt]),ut=G.useCallback(it=>PN(it,0,i[T],rt),[T,i,rt]),st=G.useCallback(()=>{let it=0;for(let lt=0;lt<i.length;lt+=1)if(i[lt].hasClickOnce)it+=1,C(it);else for(let ht=0;ht<i[lt].correctTexts.length;ht+=1)it+=1,C(it)},[i]);G.useEffect(()=>{var it;if(i!=null&&i[T]&&l({...i[T].info,description:o}),(it=i[T])!=null&&it.text){const lt=Oi(i[T].text);W.current=ut(lt),st()}else W.current=""},[T,o,st,i,ut,l]);const ot=()=>{for(let it=0;it<O.current.length;it=it+1)if(O.current[it].points>0)return!0;return!1};G.useEffect(()=>{c(()=>{u({type:"hidePuzzleButtons",payload:!0});const it=document.querySelectorAll(".text-click [data-text-id]"),lt=i[T].correctTexts.map(St=>St.id);it.forEach(St=>{lt.includes(St.getAttribute("data-text-id"))&&St.classList.add("text-click__success")});const ht=i[T].info.resolve.rewards;T+1<i.length?(setTimeout(()=>{u({type:"puzzleAction",action:"addPoints",payload:{element:v,rewards:ht,finish:!1,payload:ht}});let St=0;i.forEach((_t,bt)=>{bt<=T&&(St+=_t.correctTexts.length)}),N(St),W.current=null,M.current=0,F(!0),A(T+1)},2e3),setTimeout(()=>{F(!1),u({type:"hidePuzzleButtons",payload:!1})},3200)):T+1>=i.length&&ot()?setTimeout(()=>{ht.forEach(St=>{O.current.forEach(_t=>{_t.id===St.id&&(St.points=St.points+_t.points)})}),u({type:"puzzleAction",action:"resolve",payload:{element:v,rewards:ht,finish:!0}})},2e3):setTimeout(()=>{u({type:"puzzleAction",action:"resolve",payload:{element:v,rewards:ht,finish:T+1>=i.length}})},2e3)})},[c,u,i,T,v]);const dt=G.useMemo(()=>{let it=`text-click text-click--${n}`;return m&&(it+=" disable-background-image"),it},[m,n]),pt={pointerEvents:S.show?"none":null,backgroundImage:f!=null&&f.url?`url('${f.url}')`:""};return P.jsxs(P.Fragment,{children:[P.jsxs("div",{"data-testid":"wrapperDiv",className:dt,style:pt,children:[P.jsx("div",{className:"text-click__overlay",children:P.jsx("div",{className:`text-click__container ${I?"slideInLeft":""} `,children:P.jsx("div",{className:"text-click__body",children:P.jsx("div",{className:"text-click__scroll",dir:je()?"rtl":"auto",children:W.current})})})}),e&&P.jsxs("div",{className:"text-click__paginator",children:[P.jsx("div",{className:"text-click__icon-check-circle-black",children:P.jsx("span",{className:"icon-check-circle-black"})}),P.jsxs("span",{"data-testid":"slideCounter",className:"text-click__slide",children:[R," / ",E]})]})]}),S.show&&P.jsx(fd,{playSound:x,success:S.result,text:S.text,translate:H,functionOnClose:nt,hasTimeout:S.timeout,keyboardControl:d})]})}function dh(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}function QI(u,t){u.prototype=Object.create(t.prototype),u.prototype.constructor=u,u.__proto__=t}/*!
314
314
  * GSAP 3.12.4
315
315
  * https://gsap.com
@@ -329,7 +329,7 @@ For more info see: https://github.com/konvajs/react-konva/issues/194
329
329
  */var vz,f0,Y_,l7,gg,yz,u7,Ret=function(){return typeof window<"u"},nf={},dg=180/Math.PI,K_=Math.PI/180,x_=Math.atan2,_z=1e8,c7=/([A-Z])/g,wet=/(left|right|width|margin|padding|x)/i,Det=/[\s,\(]\S/,cd={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},KN=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Met=function(t,e){return e.set(e.t,e.p,t===1?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},Oet=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},Net=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},BU=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},kU=function(t,e){return e.set(e.t,e.p,t!==1?e.b:e.e,e)},Let=function(t,e,n){return t.style[e]=n},Pet=function(t,e,n){return t.style.setProperty(e,n)},jet=function(t,e,n){return t._gsap[e]=n},zet=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},Bet=function(t,e,n,i,s){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(s,o)},ket=function(t,e,n,i,s){var o=t._gsap;o[e]=n,o.renderTransform(s,o)},Yi="transform",eo=Yi+"Origin",Fet=function u(t,e){var n=this,i=this.target,s=i.style,o=i._gsap;if(t in nf&&s){if(this.tfm=this.tfm||{},t!=="transform")t=cd[t]||t,~t.indexOf(",")?t.split(",").forEach(function(l){return n.tfm[l]=ph(i,l)}):this.tfm[t]=o.x?o[t]:ph(i,t),t===eo&&(this.tfm.zOrigin=o.zOrigin);else return cd.transform.split(",").forEach(function(l){return u.call(n,l,e)});if(this.props.indexOf(Yi)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(eo,e,"")),t=Yi}(s||e)&&this.props.push(t,e,s[t])},FU=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Iet=function(){var t=this.props,e=this.target,n=e.style,i=e._gsap,s,o;for(s=0;s<t.length;s+=3)t[s+1]?e[t[s]]=t[s+2]:t[s+2]?n[t[s]]=t[s+2]:n.removeProperty(t[s].substr(0,2)==="--"?t[s]:t[s].replace(c7,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)i[o]=this.tfm[o];i.svg&&(i.renderTransform(),e.setAttribute("data-svg-origin",this.svgo||"")),s=u7(),(!s||!s.isStart)&&!n[Yi]&&(FU(n),i.zOrigin&&n[eo]&&(n[eo]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},IU=function(t,e){var n={target:t,props:[],revert:Iet,save:Fet};return t._gsap||no.core.getCache(t),e&&e.split(",").forEach(function(i){return n.save(i)}),n},UU,XN=function(t,e){var n=f0.createElementNS?f0.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):f0.createElement(t);return n&&n.style?n:f0.createElement(t)},dd=function u(t,e,n){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(c7,"-$1").toLowerCase())||i.getPropertyValue(e)||!n&&u(t,n2(e)||e,1)||""},bz="O,Moz,ms,Ms,Webkit".split(","),n2=function(t,e,n){var i=e||gg,s=i.style,o=5;if(t in s&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(bz[o]+t in s););return o<0?null:(o===3?"ms":o>=0?bz[o]:"")+t},qN=function(){Ret()&&window.document&&(vz=window,f0=vz.document,Y_=f0.documentElement,gg=XN("div")||{style:{}},XN("div"),Yi=n2(Yi),eo=Yi+"Origin",gg.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",UU=!!n2("perspective"),u7=no.core.reverting,l7=1)},kM=function u(t){var e=XN("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,i=this.nextSibling,s=this.style.cssText,o;if(Y_.appendChild(e),e.appendChild(this),this.style.display="block",t)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=u}catch{}else this._gsapBBox&&(o=this._gsapBBox());return n&&(i?n.insertBefore(this,i):n.appendChild(this)),Y_.removeChild(e),this.style.cssText=s,o},Sz=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},HU=function(t){var e;try{e=t.getBBox()}catch{e=kM.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===kM||(e=kM.call(t,!0)),e&&!e.width&&!e.x&&!e.y?{x:+Sz(t,["x","cx","x1"])||0,y:+Sz(t,["y","cy","y1"])||0,width:0,height:0}:e},GU=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&HU(t))},ty=function(t,e){if(e){var n=t.style,i;e in nf&&e!==eo&&(e=Yi),n.removeProperty?(i=e.substr(0,2),(i==="ms"||e.substr(0,6)==="webkit")&&(e="-"+e),n.removeProperty(i==="--"?e:e.replace(c7,"-$1").toLowerCase())):n.removeAttribute(e)}},p0=function(t,e,n,i,s,o){var l=new to(t._pt,e,n,0,1,o?kU:BU);return t._pt=l,l.b=i,l.e=s,t._props.push(n),l},xz={deg:1,rad:1,turn:1},Uet={grid:1,flex:1},E0=function u(t,e,n,i){var s=parseFloat(n)||0,o=(n+"").trim().substr((s+"").length)||"px",l=gg.style,c=wet.test(e),d=t.tagName.toLowerCase()==="svg",f=(d?"client":"offset")+(c?"Width":"Height"),m=100,_=i==="px",v=i==="%",S,y,x,T;if(i===o||!s||xz[i]||xz[o])return s;if(o!=="px"&&!_&&(s=u(t,e,n,"px")),T=t.getCTM&&GU(t),(v||o==="%")&&(nf[e]||~e.indexOf("adius")))return S=T?t.getBBox()[c?"width":"height"]:t[f],va(v?s/S*m:s/100*S);if(l[c?"width":"height"]=m+(_?o:i),y=~e.indexOf("adius")||i==="em"&&t.appendChild&&!d?t:t.parentNode,T&&(y=(t.ownerSVGElement||{}).parentNode),(!y||y===f0||!y.appendChild)&&(y=f0.body),x=y._gsap,x&&v&&x.width&&c&&x.time===Wo.time&&!x.uncache)return va(s/x.width*m);if(v&&(e==="height"||e==="width")){var A=t.style[e];t.style[e]=m+i,S=t[f],A?t.style[e]=A:ty(t,e)}else(v||o==="%")&&!Uet[dd(y,"display")]&&(l.position=dd(t,"position")),y===t&&(l.position="static"),y.appendChild(gg),S=gg[f],y.removeChild(gg),l.position="absolute";return c&&v&&(x=Yv(y),x.time=Wo.time,x.width=y[f]),va(_?S*s/m:S&&s?m/S*s:0)},ph=function(t,e,n,i){var s;return l7||qN(),e in cd&&e!=="transform"&&(e=cd[e],~e.indexOf(",")&&(e=e.split(",")[0])),nf[e]&&e!=="transform"?(s=aT(t,i),s=e!=="transformOrigin"?s[e]:s.svg?s.origin:P5(dd(t,eo))+" "+s.zOrigin+"px"):(s=t.style[e],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=L5[e]&&L5[e](t,e,n)||dd(t,e)||sU(t,e)||(e==="opacity"?1:0))),n&&!~(s+"").trim().indexOf(" ")?E0(t,e,s,n)+n:s},Het=function(t,e,n,i){if(!n||n==="none"){var s=n2(e,t,1),o=s&&dd(t,s,1);o&&o!==n?(e=s,n=o):e==="borderColor"&&(n=dd(t,"borderTopColor"))}var l=new to(this._pt,t.style,e,0,1,PU),c=0,d=0,f,m,_,v,S,y,x,T,A,E,C,R;if(l.b=n,l.e=i,n+="",i+="",i==="auto"&&(y=t.style[e],t.style[e]=i,i=dd(t,e)||i,y?t.style[e]=y:ty(t,e)),f=[n,i],TU(f),n=f[0],i=f[1],_=n.match(j_)||[],R=i.match(j_)||[],R.length){for(;m=j_.exec(i);)x=m[0],A=i.substring(c,m.index),S?S=(S+1)%5:(A.substr(-5)==="rgba("||A.substr(-5)==="hsla(")&&(S=1),x!==(y=_[d++]||"")&&(v=parseFloat(y)||0,C=y.substr((v+"").length),x.charAt(1)==="="&&(x=V_(v,x)+C),T=parseFloat(x),E=x.substr((T+"").length),c=j_.lastIndex-E.length,E||(E=E||Jo.units[e]||C,c===i.length&&(i+=E,l.e+=E)),C!==E&&(v=E0(t,e,y,E)||0),l._pt={_next:l._pt,p:A||d===1?A:",",s:v,c:T-v,m:S&&S<4||e==="zIndex"?Math.round:0});l.c=c<i.length?i.substring(c,i.length):""}else l.r=e==="display"&&i==="none"?kU:BU;return $I.test(i)&&(l.e=0),this._pt=l,l},Ez={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Get=function(t){var e=t.split(" "),n=e[0],i=e[1]||"50%";return(n==="top"||n==="bottom"||i==="left"||i==="right")&&(t=n,n=i,i=t),e[0]=Ez[n]||n,e[1]=Ez[i]||i,e.join(" ")},Vet=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n=e.t,i=n.style,s=e.u,o=n._gsap,l,c,d;if(s==="all"||s===!0)i.cssText="",c=1;else for(s=s.split(","),d=s.length;--d>-1;)l=s[d],nf[l]&&(c=1,l=l==="transformOrigin"?eo:Yi),ty(n,l);c&&(ty(n,Yi),o&&(o.svg&&n.removeAttribute("transform"),aT(n,1),o.uncache=1,FU(i)))}},L5={clearProps:function(t,e,n,i,s){if(s.data!=="isFromStart"){var o=t._pt=new to(t._pt,e,n,0,0,Vet);return o.u=i,o.pr=-10,o.tween=s,t._props.push(n),1}}},iT=[1,0,0,1,0,0],VU={},YU=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},Tz=function(t){var e=dd(t,Yi);return YU(e)?iT:e.substr(7).match(JI).map(va)},d7=function(t,e){var n=t._gsap||Yv(t),i=t.style,s=Tz(t),o,l,c,d;return n.svg&&t.getAttribute("transform")?(c=t.transform.baseVal.consolidate().matrix,s=[c.a,c.b,c.c,c.d,c.e,c.f],s.join(",")==="1,0,0,1,0,0"?iT:s):(s===iT&&!t.offsetParent&&t!==Y_&&!n.svg&&(c=i.display,i.display="block",o=t.parentNode,(!o||!t.offsetParent)&&(d=1,l=t.nextElementSibling,Y_.appendChild(t)),s=Tz(t),c?i.display=c:ty(t,"display"),d&&(l?o.insertBefore(t,l):o?o.appendChild(t):Y_.removeChild(t))),e&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},QN=function(t,e,n,i,s,o){var l=t._gsap,c=s||d7(t,!0),d=l.xOrigin||0,f=l.yOrigin||0,m=l.xOffset||0,_=l.yOffset||0,v=c[0],S=c[1],y=c[2],x=c[3],T=c[4],A=c[5],E=e.split(" "),C=parseFloat(E[0])||0,R=parseFloat(E[1])||0,N,M,O,B;n?c!==iT&&(M=v*x-S*y)&&(O=C*(x/M)+R*(-y/M)+(y*A-x*T)/M,B=C*(-S/M)+R*(v/M)-(v*A-S*T)/M,C=O,R=B):(N=HU(t),C=N.x+(~E[0].indexOf("%")?C/100*N.width:C),R=N.y+(~(E[1]||E[0]).indexOf("%")?R/100*N.height:R)),i||i!==!1&&l.smooth?(T=C-d,A=R-f,l.xOffset=m+(T*v+A*y)-T,l.yOffset=_+(T*S+A*x)-A):l.xOffset=l.yOffset=0,l.xOrigin=C,l.yOrigin=R,l.smooth=!!i,l.origin=e,l.originIsAbsolute=!!n,t.style[eo]="0px 0px",o&&(p0(o,l,"xOrigin",d,C),p0(o,l,"yOrigin",f,R),p0(o,l,"xOffset",m,l.xOffset),p0(o,l,"yOffset",_,l.yOffset)),t.setAttribute("data-svg-origin",C+" "+R)},aT=function(t,e){var n=t._gsap||new wU(t);if("x"in n&&!e&&!n.uncache)return n;var i=t.style,s=n.scaleX<0,o="px",l="deg",c=getComputedStyle(t),d=dd(t,eo)||"0",f,m,_,v,S,y,x,T,A,E,C,R,N,M,O,B,L,I,F,H,W,Z,X,$,nt,Q,tt,rt,ut,st,ot,dt;return f=m=_=y=x=T=A=E=C=0,v=S=1,n.svg=!!(t.getCTM&&GU(t)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(i[Yi]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[Yi]!=="none"?c[Yi]:"")),i.scale=i.rotate=i.translate="none"),M=d7(t,n.svg),n.svg&&(n.uncache?(nt=t.getBBox(),d=n.xOrigin-nt.x+"px "+(n.yOrigin-nt.y)+"px",$=""):$=!e&&t.getAttribute("data-svg-origin"),QN(t,$||d,!!$||n.originIsAbsolute,n.smooth!==!1,M)),R=n.xOrigin||0,N=n.yOrigin||0,M!==iT&&(I=M[0],F=M[1],H=M[2],W=M[3],f=Z=M[4],m=X=M[5],M.length===6?(v=Math.sqrt(I*I+F*F),S=Math.sqrt(W*W+H*H),y=I||F?x_(F,I)*dg:0,A=H||W?x_(H,W)*dg+y:0,A&&(S*=Math.abs(Math.cos(A*K_))),n.svg&&(f-=R-(R*I+N*H),m-=N-(R*F+N*W))):(dt=M[6],st=M[7],tt=M[8],rt=M[9],ut=M[10],ot=M[11],f=M[12],m=M[13],_=M[14],O=x_(dt,ut),x=O*dg,O&&(B=Math.cos(-O),L=Math.sin(-O),$=Z*B+tt*L,nt=X*B+rt*L,Q=dt*B+ut*L,tt=Z*-L+tt*B,rt=X*-L+rt*B,ut=dt*-L+ut*B,ot=st*-L+ot*B,Z=$,X=nt,dt=Q),O=x_(-H,ut),T=O*dg,O&&(B=Math.cos(-O),L=Math.sin(-O),$=I*B-tt*L,nt=F*B-rt*L,Q=H*B-ut*L,ot=W*L+ot*B,I=$,F=nt,H=Q),O=x_(F,I),y=O*dg,O&&(B=Math.cos(O),L=Math.sin(O),$=I*B+F*L,nt=Z*B+X*L,F=F*B-I*L,X=X*B-Z*L,I=$,Z=nt),x&&Math.abs(x)+Math.abs(y)>359.9&&(x=y=0,T=180-T),v=va(Math.sqrt(I*I+F*F+H*H)),S=va(Math.sqrt(X*X+dt*dt)),O=x_(Z,X),A=Math.abs(O)>2e-4?O*dg:0,C=ot?1/(ot<0?-ot:ot):0),n.svg&&($=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!YU(dd(t,Yi)),$&&t.setAttribute("transform",$))),Math.abs(A)>90&&Math.abs(A)<270&&(s?(v*=-1,A+=y<=0?180:-180,y+=y<=0?180:-180):(S*=-1,A+=A<=0?180:-180)),e=e||n.uncache,n.x=f-((n.xPercent=f&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-f)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+o,n.y=m-((n.yPercent=m&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-m)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+o,n.z=_+o,n.scaleX=va(v),n.scaleY=va(S),n.rotation=va(y)+l,n.rotationX=va(x)+l,n.rotationY=va(T)+l,n.skewX=A+l,n.skewY=E+l,n.transformPerspective=C+o,(n.zOrigin=parseFloat(d.split(" ")[2])||!e&&n.zOrigin||0)&&(i[eo]=P5(d)),n.xOffset=n.yOffset=0,n.force3D=Jo.force3D,n.renderTransform=n.svg?Ket:UU?KU:Yet,n.uncache=0,n},P5=function(t){return(t=t.split(" "))[0]+" "+t[1]},FM=function(t,e,n){var i=er(e);return va(parseFloat(e)+parseFloat(E0(t,"x",n+"px",i)))+i},Yet=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,KU(t,e)},sg="0deg",uE="0px",rg=") ",KU=function(t,e){var n=e||this,i=n.xPercent,s=n.yPercent,o=n.x,l=n.y,c=n.z,d=n.rotation,f=n.rotationY,m=n.rotationX,_=n.skewX,v=n.skewY,S=n.scaleX,y=n.scaleY,x=n.transformPerspective,T=n.force3D,A=n.target,E=n.zOrigin,C="",R=T==="auto"&&t&&t!==1||T===!0;if(E&&(m!==sg||f!==sg)){var N=parseFloat(f)*K_,M=Math.sin(N),O=Math.cos(N),B;N=parseFloat(m)*K_,B=Math.cos(N),o=FM(A,o,M*B*-E),l=FM(A,l,-Math.sin(N)*-E),c=FM(A,c,O*B*-E+E)}x!==uE&&(C+="perspective("+x+rg),(i||s)&&(C+="translate("+i+"%, "+s+"%) "),(R||o!==uE||l!==uE||c!==uE)&&(C+=c!==uE||R?"translate3d("+o+", "+l+", "+c+") ":"translate("+o+", "+l+rg),d!==sg&&(C+="rotate("+d+rg),f!==sg&&(C+="rotateY("+f+rg),m!==sg&&(C+="rotateX("+m+rg),(_!==sg||v!==sg)&&(C+="skew("+_+", "+v+rg),(S!==1||y!==1)&&(C+="scale("+S+", "+y+rg),A.style[Yi]=C||"translate(0, 0)"},Ket=function(t,e){var n=e||this,i=n.xPercent,s=n.yPercent,o=n.x,l=n.y,c=n.rotation,d=n.skewX,f=n.skewY,m=n.scaleX,_=n.scaleY,v=n.target,S=n.xOrigin,y=n.yOrigin,x=n.xOffset,T=n.yOffset,A=n.forceCSS,E=parseFloat(o),C=parseFloat(l),R,N,M,O,B;c=parseFloat(c),d=parseFloat(d),f=parseFloat(f),f&&(f=parseFloat(f),d+=f,c+=f),c||d?(c*=K_,d*=K_,R=Math.cos(c)*m,N=Math.sin(c)*m,M=Math.sin(c-d)*-_,O=Math.cos(c-d)*_,d&&(f*=K_,B=Math.tan(d-f),B=Math.sqrt(1+B*B),M*=B,O*=B,f&&(B=Math.tan(f),B=Math.sqrt(1+B*B),R*=B,N*=B)),R=va(R),N=va(N),M=va(M),O=va(O)):(R=m,O=_,N=M=0),(E&&!~(o+"").indexOf("px")||C&&!~(l+"").indexOf("px"))&&(E=E0(v,"x",o,"px"),C=E0(v,"y",l,"px")),(S||y||x||T)&&(E=va(E+S-(S*R+y*M)+x),C=va(C+y-(S*N+y*O)+T)),(i||s)&&(B=v.getBBox(),E=va(E+i/100*B.width),C=va(C+s/100*B.height)),B="matrix("+R+","+N+","+M+","+O+","+E+","+C+")",v.setAttribute("transform",B),A&&(v.style[Yi]=B)},Xet=function(t,e,n,i,s){var o=360,l=ps(s),c=parseFloat(s)*(l&&~s.indexOf("rad")?dg:1),d=c-i,f=i+d+"deg",m,_;return l&&(m=s.split("_")[1],m==="short"&&(d%=o,d!==d%(o/2)&&(d+=d<0?o:-o)),m==="cw"&&d<0?d=(d+o*_z)%o-~~(d/o)*o:m==="ccw"&&d>0&&(d=(d-o*_z)%o-~~(d/o)*o)),t._pt=_=new to(t._pt,e,n,i,d,Met),_.e=f,_.u="deg",t._props.push(n),_},Az=function(t,e){for(var n in e)t[n]=e[n];return t},qet=function(t,e,n){var i=Az({},n._gsap),s="perspective,force3D,transformOrigin,svgOrigin",o=n.style,l,c,d,f,m,_,v,S;i.svg?(d=n.getAttribute("transform"),n.setAttribute("transform",""),o[Yi]=e,l=aT(n,1),ty(n,Yi),n.setAttribute("transform",d)):(d=getComputedStyle(n)[Yi],o[Yi]=e,l=aT(n,1),o[Yi]=d);for(c in nf)d=i[c],f=l[c],d!==f&&s.indexOf(c)<0&&(v=er(d),S=er(f),m=v!==S?E0(n,c,d,S):parseFloat(d),_=parseFloat(f),t._pt=new to(t._pt,l,c,m,_-m,KN),t._pt.u=S||0,t._props.push(c));Az(l,i)};$r("padding,margin,Width,Radius",function(u,t){var e="Top",n="Right",i="Bottom",s="Left",o=(t<3?[e,n,i,s]:[e+s,e+n,i+n,i+s]).map(function(l){return t<2?u+l:"border"+l+u});L5[t>1?"border"+u:u]=function(l,c,d,f,m){var _,v;if(arguments.length<4)return _=o.map(function(S){return ph(l,S,d)}),v=_.join(" "),v.split(_[0]).length===5?_[0]:v;_=(f+"").split(" "),v={},o.forEach(function(S,y){return v[S]=_[y]=_[y]||_[(y-1)/2|0]}),l.init(c,v,m)}});var XU={name:"css",register:qN,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,i,s){var o=this._props,l=t.style,c=n.vars.startAt,d,f,m,_,v,S,y,x,T,A,E,C,R,N,M,O;l7||qN(),this.styles=this.styles||IU(t),O=this.styles.props,this.tween=n;for(y in e)if(y!=="autoRound"&&(f=e[y],!(qo[y]&&DU(y,e,n,i,t,s)))){if(v=typeof f,S=L5[y],v==="function"&&(f=f.call(n,i,t,s),v=typeof f),v==="string"&&~f.indexOf("random(")&&(f=tT(f)),S)S(this,t,y,f,n)&&(M=1);else if(y.substr(0,2)==="--")d=(getComputedStyle(t).getPropertyValue(y)+"").trim(),f+="",g0.lastIndex=0,g0.test(d)||(x=er(d),T=er(f)),T?x!==T&&(d=E0(t,y,d,T)+T):x&&(f+=x),this.add(l,"setProperty",d,f,i,s,0,0,y),o.push(y),O.push(y,0,l[y]);else if(v!=="undefined"){if(c&&y in c?(d=typeof c[y]=="function"?c[y].call(n,i,t,s):c[y],ps(d)&&~d.indexOf("random(")&&(d=tT(d)),er(d+"")||d==="auto"||(d+=Jo.units[y]||er(ph(t,y))||""),(d+"").charAt(1)==="="&&(d=ph(t,y))):d=ph(t,y),_=parseFloat(d),A=v==="string"&&f.charAt(1)==="="&&f.substr(0,2),A&&(f=f.substr(2)),m=parseFloat(f),y in cd&&(y==="autoAlpha"&&(_===1&&ph(t,"visibility")==="hidden"&&m&&(_=0),O.push("visibility",0,l.visibility),p0(this,l,"visibility",_?"inherit":"hidden",m?"inherit":"hidden",!m)),y!=="scale"&&y!=="transform"&&(y=cd[y],~y.indexOf(",")&&(y=y.split(",")[0]))),E=y in nf,E){if(this.styles.save(y),C||(R=t._gsap,R.renderTransform&&!e.parseTransform||aT(t,e.parseTransform),N=e.smoothOrigin!==!1&&R.smooth,C=this._pt=new to(this._pt,l,Yi,0,1,R.renderTransform,R,0,-1),C.dep=1),y==="scale")this._pt=new to(this._pt,R,"scaleY",R.scaleY,(A?V_(R.scaleY,A+m):m)-R.scaleY||0,KN),this._pt.u=0,o.push("scaleY",y),y+="X";else if(y==="transformOrigin"){O.push(eo,0,l[eo]),f=Get(f),R.svg?QN(t,f,0,N,0,this):(T=parseFloat(f.split(" ")[2])||0,T!==R.zOrigin&&p0(this,R,"zOrigin",R.zOrigin,T),p0(this,l,y,P5(d),P5(f)));continue}else if(y==="svgOrigin"){QN(t,f,1,N,0,this);continue}else if(y in VU){Xet(this,R,y,_,A?V_(_,A+f):f);continue}else if(y==="smoothOrigin"){p0(this,R,"smooth",R.smooth,f);continue}else if(y==="force3D"){R[y]=f;continue}else if(y==="transform"){qet(this,f,t);continue}}else y in l||(y=n2(y)||y);if(E||(m||m===0)&&(_||_===0)&&!Det.test(f)&&y in l)x=(d+"").substr((_+"").length),m||(m=0),T=er(f)||(y in Jo.units?Jo.units[y]:x),x!==T&&(_=E0(t,y,d,T)),this._pt=new to(this._pt,E?R:l,y,_,(A?V_(_,A+m):m)-_,!E&&(T==="px"||y==="zIndex")&&e.autoRound!==!1?Net:KN),this._pt.u=T||0,x!==T&&T!=="%"&&(this._pt.b=d,this._pt.r=Oet);else if(y in l)Het.call(this,t,y,d,A?A+f:f);else if(y in t)this.add(t,y,d||t[y],A?A+f:f,i,s);else if(y!=="parseTransform"){$9(y,f);continue}E||(y in l?O.push(y,0,l[y]):O.push(y,1,d||t[y])),o.push(y)}}M&&jU(this)},render:function(t,e){if(e.tween._time||!u7())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:ph,aliases:cd,getSetter:function(t,e,n){var i=cd[e];return i&&i.indexOf(",")<0&&(e=i),e in nf&&e!==eo&&(t._gsap.x||ph(t,"x"))?n&&yz===n?e==="scale"?zet:jet:(yz=n||{})&&(e==="scale"?Bet:ket):t.style&&!W9(t.style[e])?Let:~e.indexOf("-")?Pet:r7(t,e)},core:{_removeProperty:ty,_getMatrix:d7}};no.utils.checkPrefix=n2;no.core.getStyleSaver=IU;(function(u,t,e,n){var i=$r(u+","+t+","+e,function(s){nf[s]=1});$r(t,function(s){Jo.units[s]="deg",VU[s]=1}),cd[i[13]]=u+","+t,$r(n,function(s){var o=s.split(":");cd[o[1]]=i[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");$r("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(u){Jo.units[u]="px"});no.registerPlugin(XU);var qU=no.registerPlugin(XU)||no;qU.core.Tween;function Qet({message:u,translate:t},e){const[n,i]=G.useState(!1),s=()=>{const o=u.avatar,l=o.lastIndexOf("/");return o.includes("/object/")?o.slice(0,l).concat("/mini-thumbnail.png"):o.includes("/character/")?o.slice(0,l).concat("/mini-face.png"):o};return G.useLayoutEffect(()=>{n||i(!0)},[n]),P.jsxs("div",{dir:"auto",ref:e,className:`
330
330
  speech-bubble
331
331
  ${u.thinkful?"speech-bubble--italic":""}
332
- `,children:[P.jsxs("div",{className:`speech-bubble__header ${u.thinkful?"speech-bubble__header--thinking":""}`,children:[u.thinkful?P.jsx("div",{className:"thinking-icon-wrap",children:P.jsx("div",{className:"icon-bubble-thinkful-black"})}):null,u.avatar?P.jsx("div",{className:"speech-bubble__avatar",children:P.jsx("img",{src:s(),alt:u.name})}):null,u.voiceOver?P.jsx("div",{className:"speech-bubble__avatar",children:P.jsx("div",{className:"icon-narrator"})}):null,P.jsxs("div",{className:"speech-bubble__name",children:[P.jsx("span",{children:u.name}),u.thinkful?P.jsxs("span",{children:["[ ",t("emotion.thinking")," ]"]}):null]})]}),u.text?P.jsx("div",{className:"speech-bubble__text",children:Oi(u.text)}):null]})}const Wet=G.forwardRef(Qet);function Zet({currentMessage:u,translate:t}){const e=document.querySelector(".screens--container");return P.jsx("group",{children:P.jsx(su.HtmlPro,{wrapperClass:"htmlpro-wrap-100-h",onOcclude:()=>null,zIndexRange:[5,5],portal:e?{current:e}:void 0,style:{width:"100%",height:"100%",position:"static"},calculatePosition:()=>[0,0],children:P.jsx(Wet,{translate:t,message:u})})})}const gr={},IM=new Oz.GLTFLoader,UM=.25;function Jet(u){const t=v0.useThree(f=>f.scene),e=G.useMemo(()=>{var m;const f={};for(const _ of u)if(_.slots)for(const v of _.slots){if(!v.uid)continue;const S=(m=v.character)==null?void 0:m.resource.animations;S&&(f[v.uid]||(f[v.uid]=Object.keys(S).reduce((y,x)=>(y[x]=S[x].url,y),{})))}return f},[u]),n=G.useMemo(()=>{const f=new Set;for(const m of u)if(m.slots)for(const _ of m.slots)_.uid&&f.add(_.uid);return Array.from(f)},[u]),i=async(f,m)=>{if(f&&!gr[f]){const{animations:_}=await IM.loadAsync(f);_[0].name=m,gr[f]=_[0]}},s=async f=>{const m=e[f],_=m.talking,v=m["talking-short"];await Promise.all([i(v,"talking-short"),i(_,"talking")])},o=()=>{n.forEach(f=>{d(f,"idle")})},l=()=>{n.forEach(f=>{const m=t.getObjectByProperty("uid",f);m&&(delete m.userData._active,d(f,"idle"))})},c=async(f,m,_=!1,v=!1)=>{const S=N_(f,t);if(gr[f]||(gr[f]={}),!S)return new Promise(x=>x(!1));const y=S.userData.animator;if(m){const x=e[f],T=x["talking-short"]||x.talking;let A=gr[T],E=m,C=gr[m];if(!C){const{animations:R}=await IM.loadAsync(m);C=gr[m]=R[0]}if(_&&T!==m&&(A?(C=SR(A,C),E+="_talking"):s(f).then(()=>{A=gr[T],C=SR(A,C),E+="_talking"})),!S.userData._active||S.userData._active!==E){S.userData._active=E;const R=y.register(E,C,S);return new Promise(N=>{v&&y.setTime(0),y.mix(E,UM).then(M=>N(M?R:!1))})}}return new Promise(x=>x(!1))},d=async(f,m)=>{const _=N_(f,t);if(gr[f]||(gr[f]={}),!_)return new Promise(S=>S(!1));const v=_.userData.animator;if(m==="idle")return v.mix("idle",UM),v.getAction("idle");{const S=e[f],y=m.split("_")[0],x=S[y],T=m.includes("talking");if(x){const A=`${x}${T?"_talking":""}`;let E=gr[A];if(!E){let C=gr[x];if(!C){const{animations:R}=await IM.loadAsync(x);C=gr[x]=R[0],C.name=y}if(E=C.clone(),T&&m!=="talking"){const R=S["talking-short"]||S.talking,N=gr[R];N&&(E=SR(N,C))}gr[A]=E}if(!_.userData._active||_.userData._active!==m){_.userData._active=m;const C=v.register(m,E,_);return new Promise(R=>{v.mix(m,UM).then(N=>R(N?C:!1))})}}}return new Promise(S=>S(!1))};return{startAnimation:d,startAnimationUrl:c,preloadTalking:s,resetActives:o,unmountActives:l}}const Cz=75,_R=1400,$et=2,WN=new Oa.Raycaster,og=new Oa.Object3D,tnt=70;WN.firstHitOnly=!0;function ent({keyboardControl:u,emitEvent:t,getEvent:e,lines:n,actors:i,edges:s,soundActions:o,zoomInActor:l,autoPlay:c,autoEnd:d,pause:f,progress:m}){var Bn;const _=n.length-1<=(m==null?void 0:m.line)?n.length-1:(m==null?void 0:m.line)||0,[v,S]=G.useState(_),[y,x]=G.useState(!!c),[T,A]=G.useState(!1),[E,C]=G.useState(!1),R=v0.useThree(jt=>jt.scene),N=v0.useThree(jt=>jt.camera),{start:M,stop:O}=Aw(),B=G.useRef([]),L=G.useMemo(()=>N.clone(),[]),I=G.useRef({pos:[0,0,0],child:null}),F=n[v],H=n[v-1],W=G.useRef(!1),Z=!!s,{voiceOver:X,decision:$}=F||{},nt=G.useRef({}),Q=(Bn=F==null?void 0:F.slots)==null?void 0:Bn.find(jt=>jt.talking),tt=G.useRef(!1),{startAnimation:rt,startAnimationUrl:ut,resetActives:st,preloadTalking:ot,unmountActives:dt}=Jet(n),pt=G.useRef(),it=Object.keys((F==null?void 0:F.audio)||{}).length,lt=Object.keys((F==null?void 0:F.voice)||{}).length,ht=X||(F==null?void 0:F.type)==="conversationalNarration",St=$||(F==null?void 0:F.type)==="conversationalDecision",_t=(F==null?void 0:F.type)==="conversationalCamera",bt=y&&!St&&!_t,[yt,Tt]=G.useState({text:"",name:"",inScene:!1,thinkful:!1,voiceOver:!1,avatar:"",show:!1}),wt=G.useMemo(()=>n.reduce((jt,qt)=>(qt.slots&&qt.slots.filter(Oe=>Oe.uid).forEach(Oe=>{jt.includes(Oe.uid)||jt.push(Oe.uid)}),jt),[]),[n]),It=G.useCallback(jt=>e({type:"translate",payload:jt}),[e]),[Ft,$t]=G.useState([]),Jt=G.useMemo(()=>Ft[Ft.length-1],[Ft]),we=G.useCallback(()=>{const jt=s.find(se=>se.fromId===Jt)||s.find(se=>se.toId===Jt),qt=n.find(se=>se.id===(jt==null?void 0:jt.fromId));return!Jt&&(m==null?void 0:m.line)>=0?{decision:!0}:qt},[s,n,Jt]),ze=G.useCallback(()=>{if(Z){const jt=n.filter(qt=>!s.find(se=>se.toId===qt.id));if(jt.length){const qt=jt[0],se=n.indexOf(qt);if(se>=0)return se}}return-1},[Z,n,s]),Se=G.useCallback(()=>{if(Z){const qt=we();return qt==null?void 0:qt.decision}const jt=n[v-1]?n[v-1]:{};return v>0&&(jt==null?void 0:jt.decision)},[F,Z,n,Jt,s]),Te=G.useCallback(()=>{if(Z){const qt=we();return(qt==null?void 0:qt.type)==="conversationalCamera"}const jt=n[v-1]?n[v-1]:{};return v>0&&(jt==null?void 0:jt.type)==="conversationalCamera"},[F,Z,n,Jt,s]),pn=G.useCallback(jt=>{var se,Oe;const qt=i.find(fe=>(fe==null?void 0:fe.uid)===(jt==null?void 0:jt.uid)?fe:"");return((Oe=(se=jt==null?void 0:jt.character)==null?void 0:se.resource)==null?void 0:Oe.url)||(qt==null?void 0:qt.completeUrl)||""},[i]),Mn=(jt=()=>{})=>{if(tt.current)tt.current&&(tt.current=!1);else{N.updateProjectionMatrix(),N.updateMatrixWorld(!0);const qt=I.current.child?I.current.pos:L.position.toArray();if(og.position.fromArray(qt),I.current.parent){og.quaternion.equals(N.quaternion)||og.applyQuaternion(N.quaternion);const se=I.current.isLeft?-1:1,Oe=$et*se;og.translateX(-10*se+Oe),og.translateY(-2),og.translateZ(30)}qU.to(N.position,{duration:.9,ease:"power3.easeInOut",onStart:()=>{tt.current=!0},onUpdate:()=>{B.current.length&&B.current.forEach(se=>{const{object:Oe}=se;Oe.material.visible=!0})},onComplete:()=>{jt(),WN.set(N.getWorldPosition(new Oa.Vector3(0,0,0)),N.getWorldDirection(new Oa.Vector3));const se=WN.intersectObjects(R.children,!0);B.current=se.filter(Oe=>Oe.distance<10),B.current.length&&B.current.forEach(Oe=>{const{object:fe}=Oe;fe.material.side=0}),tt.current=!1,W.current&&t({type:"success"}),I.current.child||N.copy(L)},...og.position})}},zt=G.useCallback(()=>{I.current.child=null,I.current.parent=null,l&&Mn()},[l]),te=(jt,qt,se,Oe=!1)=>{const fe=qt.includes("seated");if(se){const Ce=AH.includes(se.animationId);Ce&&qt.includes("talking")&&(pt.current=jt),ut(jt,se.url,qt.includes("talking"),Ce).then(Gn=>{if(Gn&&Ce)if(W.current)rt(jt,"idle");else{const Xa=pt.current===jt?"neutral_talking":"neutral";rt(jt,Xa)}})}else{const Ce=Oe&&!fe?`${qt}-seated`:qt;rt(jt,Ce)}},pe=()=>{if(!(Q!=null&&Q.uid)||!(Q!=null&&Q.emotion)||W.current)return;const{emotion:jt,uid:qt,animation:se}=Q,Oe=N_(qt,R);if(Oe){const{isSeated:fe}=Oe;ot(qt).then(()=>{te(qt,fe&&!jt.includes("seated")?`${jt}-seated_talking`:`${jt}_talking`,se,fe)}).catch(Ce=>{console.error(Ce)})}},Lt=()=>{if(!(Q!=null&&Q.uid)||W.current)return;const{emotion:jt,uid:qt,animation:se}=Q,Oe=N_(qt,R);if(Oe){delete Oe.userData._active;const{isSeated:fe}=Oe;if(pt.current===qt)te(qt,"neutral",null,fe),pt.current=null;else{const Ce=jt.includes("talking");te(qt,Ce?"neutral":jt,Ce?null:se,fe)}}},Yt=G.useCallback(()=>{W.current=!0,Tt({show:!1}),zt(),st(),l||t({type:"success"})},[N,t,zt,l]);G.useEffect(()=>()=>{nt.current={},dt()},[]);const ee=jt=>{Tt({show:!1}),S(jt),t({type:"notifyProgress",payload:{line:jt}})},Be=G.useCallback((jt=!0)=>{const qt=jt?["fromId","toId"]:["toId","fromId"],se=s.filter(Ce=>Ce[qt[0]]===F.id),Oe=se.length===1?se[0]:se.find(Ce=>Ce[qt[1]]===Jt);if(!(Oe!=null&&Oe[qt[0]])){Yt();return}jt||$t(Ft.slice(0,Ft.length-1));const fe=n.findIndex(Ce=>Ce.id===Oe[qt[1]]);fe>=0?ee(fe):Yt()},[F==null?void 0:F.id,t,s,Yt,n]),Ke=G.useCallback((jt,qt)=>{const se=[3,2,1][jt.id],fe=s.filter(Gn=>Gn.fromId===(F==null?void 0:F.id)).find(Gn=>parseInt(Gn.fromPointIndex)===se),Ce=n.findIndex(Gn=>Gn.id===(fe==null?void 0:fe.toId));Ce>=0?(fe==null?void 0:fe.fromId)===(fe==null?void 0:fe.toId)?qt():ee(Ce):Yt()},[F==null?void 0:F.id,s,Yt,n]),Gt=G.useCallback(()=>{if(nt.current={...Q},C(!1),Lt(),Z)Be(!1);else if(!Se()){const jt=v-1;Tt({show:!1}),S(jt),t({type:"notifyProgress",payload:{line:jt}})}},[Be,t,Z,H,v,Q]),ie=G.useCallback(jt=>{if(Z){if(jt){const qt=[3,2,1][jt.id],Oe=s.filter(fe=>fe.fromId===F.id).find(fe=>parseInt(fe.fromPointIndex)===qt);if(Oe){const fe=n.findIndex(Ce=>Ce.id===Oe.toId);fe>=0&&t({type:"notifyProgress",payload:{line:fe}})}else t({type:"saveNode"})}}else if(v<n.length-1){const qt=v+1;t({type:"notifyProgress",payload:{line:qt}})}else t({type:"saveNode"})},[s,v,n,t,F==null?void 0:F.id,Z]),ue=G.useCallback((jt,qt)=>{if(nt.current={...Q},C(!1),Lt(),Z)$t([...Ft,F.id]),jt?Ke(jt,qt):Be();else if(v<n.length-1){const se=v+1;ee(se)}else(d||St||_t)&&Yt()},[t,F==null?void 0:F.id,Z,St,_t,v,n.length,Ke,Be,Yt,Q]),wn=()=>{x(!1),Gt()},re=()=>Z?F&&F.type!=="conversationalDecision"&&!s.find(jt=>jt.fromId===F.id):v===n.length-1,me=()=>{re()?Yt():(x(!1),ue())};G.useEffect(()=>{if(Z&&!T){const jt=m==null?void 0:m.line;if(jt>=0){A(!0),S(jt);return}const qt=ze();qt>=0&&(A(!0),S(qt))}},[s,Z,n,T,ze]);const On=jt=>{if(nt.current.uid===jt.uid||I.current.parent===jt)return;const qt=new Oa.Object3D,se=jt.getObjectByName("Head_M");se.updateMatrixWorld(!0),qt.applyMatrix4(se.matrixWorld),qt.applyQuaternion(N.quaternion);const Oe=l?2.5:2,fe=l?1.2:1.5;qt.translateY(Oe),qt.translateX(fe);const Ce=new Oa.Vector3;Ce.setFromMatrixPosition(se.matrixWorld);const Xa=Ce.project(N).x<0;I.current={pos:qt.position.toArray(),child:se,parent:jt,isLeft:Xa}},Nn=jt=>{t({type:"resetZIndexUIContainer",payload:jt})};G.useEffect(()=>{var jt;if(ht)zt(),Tt({text:F==null?void 0:F.text,name:(F==null?void 0:F.alias)||(F==null?void 0:F.name)||`[ ${It("storylines.misc.voiceOver")} ]`,inScene:!1,voiceOver:!0,thinkful:!1,top:!1,avatar:pn(Q),show:!0});else if(!W.current&&!St&&!_t){const qt=F==null?void 0:F.slots.filter(fe=>fe.uid&&!fe.talking),se=[...qt.map(fe=>fe.uid)||[],Q==null?void 0:Q.uid];if(wt.filter(fe=>!se.includes(fe)).forEach(fe=>{rt(fe,"idle")}),qt.forEach(fe=>{const Ce=N_(fe.uid,R);if(Ce){const{isSeated:Gn}=Ce;te(fe.uid,fe.emotion,fe.animation,Gn)}}),Q){const fe=N_(Q.uid,R),Ce=i.find(Gn=>Gn.uid===Q.uid);fe&&!W.current?setTimeout(()=>{var Gn,Xa;if(Q.uid===fe.uid){On(fe);const{isSeated:el,userData:ou}=fe,{emotion:nl,animation:gd}=Q;!((Gn=ou._active)!=null&&Gn.includes("talking"))&&!((Xa=ou._active)!=null&&Xa.includes(nl))&&te(Q.uid,nl,gd,el);const il=()=>{var qa;Tt({text:Q.text,name:Q.alias||((qa=Q.character)==null?void 0:qa.name),inScene:!0,thinkful:Q.emotion.includes("think"),avatar:pn(Q),show:!0})};l?(tt.current=!1,Mn(il)):il()}},150):(zt(),Tt({text:Q.text,name:Q.alias||((jt=Q.character)==null?void 0:jt.name)||(Ce==null?void 0:Ce.name),left:!1,top:Q.text.length>tnt,inScene:!1,thinkful:Q.emotion.includes("think"),avatar:pn(Q),show:!0}))}else zt(),Tt({show:!0})}},[i,F,l,R,It,pn,zt,St,ht,wt]);const la=Gw(yt==null?void 0:yt.text),[kt,Qt]=ay({audioType:F==null?void 0:F.audioType,volume:F==null?void 0:F.audioVolume,voice:F==null?void 0:F.voice,started:yt.show,text:la,audio:F==null?void 0:F.audio,soundActions:o,getEvent:e,pauseTTS:f,onStart:()=>{var jt;(jt=Q==null?void 0:Q.emotion)!=null&&jt.includes("think")||pe()},onError:()=>{C(!0)},onFinish:()=>{Lt(),bt&&!f&&ue()}});G.useEffect(()=>(Qt(),()=>{Qt()}),[v,Qt]),G.useEffect(()=>{var jt;if(((F==null?void 0:F.audioType)==="none"||E)&&(yt!=null&&yt.show)&&!(Q!=null&&Q.emotion.includes("think"))){pe();const qt=Cz*(((jt=yt==null?void 0:yt.text)==null?void 0:jt.length)||0);setTimeout(()=>{Lt()},qt<_R?_R:qt)}},[E,F==null?void 0:F.audioType,Lt,pe,Q==null?void 0:Q.emotion,yt]),G.useEffect(()=>{var jt;if(bt&&yt.show&&((F==null?void 0:F.audioType)==="none"||E)&&!f){const qt=Cz*(((jt=yt==null?void 0:yt.text)==null?void 0:jt.length)||0);(!re()||re()&&d)&&M(ue,qt<_R?_R:qt)}return()=>{O()}},[yt,ue,M,d,O,F==null?void 0:F.audioType,bt,it,lt,E]);const de=G.useMemo(()=>ze()>=0&&Ft.length===0&&Z||!Z&&v===0||Se()||Te(),[v,Se,Te,ze,Ft]),ye=u({disabled:St||!yt.show,repeat:!1,forward:me,rewind:de?null:wn});G.useEffect(()=>ye(),[ye]);const Xe=document.querySelector(".screens--container");if(_t)return P.jsx(g9,{...F,emitEvent:t,success:!1,onFinish:ue},`change-camera-${v}`);if(St){const jt=F.id?n.filter(se=>se.decision).findIndex(se=>se.id===F.id)+1:n.filter(se=>se.decision).findIndex(se=>se===F)+1,qt={...F.payload,decisionNumber:jt,inheritProps:{slots:[],disableBackground:!0},required:!Z,branched:Z,onAddPoints:ie,onFinish:ue,emitEvent:t,getEvent:e,pause:f,soundActions:o,keyboardControl:u};return P.jsx(yN,{onMount:()=>{zt(),Nn(!0)},onUnMount:()=>{tt.current=!1,Nn(!1)},children:P.jsx(M9,{inScene:!0,...qt})})}return P.jsxs(P.Fragment,{children:[yt.text?P.jsx(Zet,{translate:It,currentMessage:yt}):null,P.jsx(su.HtmlPro,{wrapperClass:"htmlpro-wrap-100-h",style:{width:"100%",height:"100%",position:"static"},portal:Xe?{current:Xe}:void 0,zIndexRange:[6,6],onOcclude:()=>{},calculatePosition:()=>[0,0],children:P.jsxs("div",{dir:je()?"rtl":"ltr",className:"dialog-component-controls",children:[P.jsx("button",{type:"button",onClick:wn,disabled:de||!yt.show,className:`gat--btn__round ${de||!yt.show?"disabled":""}`,"aria-label":je()?It("storylines.misc.forward"):It("storylines.misc.rewind"),children:P.jsx("span",{className:je()?"icon-next":"icon-back"})}),P.jsx("button",{type:"button",onClick:me,disabled:!yt.show,className:`gat--btn__round
332
+ `,children:[P.jsxs("div",{className:`speech-bubble__header ${u.thinkful?"speech-bubble__header--thinking":""}`,children:[u.thinkful?P.jsx("div",{className:"thinking-icon-wrap",children:P.jsx("div",{className:"icon-bubble-thinkful-black"})}):null,u.avatar?P.jsx("div",{className:"speech-bubble__avatar",children:P.jsx("img",{src:s(),alt:u.name})}):null,u.voiceOver?P.jsx("div",{className:"speech-bubble__avatar",children:P.jsx("div",{className:"icon-narrator"})}):null,P.jsxs("div",{className:"speech-bubble__name",children:[P.jsx("span",{children:u.name}),u.thinkful?P.jsxs("span",{children:["[ ",t("emotion.thinking")," ]"]}):null]})]}),u.text?P.jsx("div",{className:"speech-bubble__text",children:Oi(u.text)}):null]})}const Wet=G.forwardRef(Qet);function Zet({currentMessage:u,translate:t}){const e=document.querySelector(".screens--container");return P.jsx("group",{children:P.jsx(su.HtmlPro,{wrapperClass:"htmlpro-wrap-100-h",onOcclude:()=>null,zIndexRange:[5,5],portal:e?{current:e}:void 0,style:{width:"100%",height:"100%",position:"static"},calculatePosition:()=>[0,0],children:P.jsx(Wet,{translate:t,message:u})})})}const gr={},IM=new Oz.GLTFLoader,UM=.25;function Jet(u){const t=v0.useThree(f=>f.scene),e=G.useMemo(()=>{var m;const f={};for(const _ of u)if(_.slots)for(const v of _.slots){if(!v.uid)continue;const S=(m=v.character)==null?void 0:m.resource.animations;S&&(f[v.uid]||(f[v.uid]=Object.keys(S).reduce((y,x)=>(y[x]=S[x].url,y),{})))}return f},[u]),n=G.useMemo(()=>{const f=new Set;for(const m of u)if(m.slots)for(const _ of m.slots)_.uid&&f.add(_.uid);return Array.from(f)},[u]),i=async(f,m)=>{if(f&&!gr[f]){const{animations:_}=await IM.loadAsync(f);_[0].name=m,gr[f]=_[0]}},s=async f=>{const m=e[f],_=m.talking,v=m["talking-short"];await Promise.all([i(v,"talking-short"),i(_,"talking")])},o=()=>{n.forEach(f=>{d(f,"idle")})},l=()=>{n.forEach(f=>{const m=t.getObjectByProperty("uid",f);m&&(delete m.userData._active,d(f,"idle"))})},c=async(f,m,_=!1,v=!1)=>{const S=N_(f,t);if(gr[f]||(gr[f]={}),!S)return new Promise(x=>x(!1));const y=S.userData.animator;if(m){const x=e[f],T=x["talking-short"]||x.talking;let A=gr[T],E=m,C=gr[m];if(!C){const{animations:R}=await IM.loadAsync(m);C=gr[m]=R[0]}if(_&&T!==m&&(A?(C=SR(A,C),E+="_talking"):s(f).then(()=>{A=gr[T],C=SR(A,C),E+="_talking"})),!S.userData._active||S.userData._active!==E){S.userData._active=E;const R=y.register(E,C,S);return new Promise(N=>{v&&y.setTime(0),y.mix(E,UM).then(M=>N(M?R:!1))})}}return new Promise(x=>x(!1))},d=async(f,m)=>{const _=N_(f,t);if(gr[f]||(gr[f]={}),!_)return new Promise(S=>S(!1));const v=_.userData.animator;if(m==="idle")return v.mix("idle",UM),v.getAction("idle");{const S=e[f],y=m.split("_")[0],x=S[y],T=m.includes("talking");if(x){const A=`${x}${T?"_talking":""}`;let E=gr[A];if(!E){let C=gr[x];if(!C){const{animations:R}=await IM.loadAsync(x);C=gr[x]=R[0],C.name=y}if(E=C.clone(),T&&m!=="talking"){const R=S["talking-short"]||S.talking,N=gr[R];N&&(E=SR(N,C))}gr[A]=E}if(!_.userData._active||_.userData._active!==m){_.userData._active=m;const C=v.register(m,E,_);return new Promise(R=>{v.mix(m,UM).then(N=>R(N?C:!1))})}}}return new Promise(S=>S(!1))};return{startAnimation:d,startAnimationUrl:c,preloadTalking:s,resetActives:o,unmountActives:l}}const Cz=75,_R=1400,$et=2,WN=new Oa.Raycaster,og=new Oa.Object3D,tnt=70;WN.firstHitOnly=!0;function ent({keyboardControl:u,emitEvent:t,getEvent:e,lines:n,actors:i,edges:s,soundActions:o,zoomInActor:l,autoPlay:c,autoEnd:d,pause:f,progress:m}){var Bn;const _=n.length-1<=(m==null?void 0:m.line)?n.length-1:(m==null?void 0:m.line)||0,[v,S]=G.useState(_),[y,x]=G.useState(!!c),[T,A]=G.useState(!1),[E,C]=G.useState(!1),R=v0.useThree(jt=>jt.scene),N=v0.useThree(jt=>jt.camera),{start:M,stop:O}=Aw(),B=G.useRef([]),L=G.useMemo(()=>N.clone(),[]),I=G.useRef({pos:[0,0,0],child:null}),F=n[v],H=n[v-1],W=G.useRef(!1),Z=!!s,{voiceOver:X,decision:$}=F||{},nt=G.useRef({}),Q=(Bn=F==null?void 0:F.slots)==null?void 0:Bn.find(jt=>jt.talking),tt=G.useRef(!1),{startAnimation:rt,startAnimationUrl:ut,resetActives:st,preloadTalking:ot,unmountActives:dt}=Jet(n),pt=G.useRef(),it=Object.keys((F==null?void 0:F.audio)||{}).length,lt=Object.keys((F==null?void 0:F.voice)||{}).length,ht=X||(F==null?void 0:F.type)==="conversationalNarration",St=$||(F==null?void 0:F.type)==="conversationalDecision",_t=(F==null?void 0:F.type)==="conversationalCamera",bt=y&&!St&&!_t,[yt,Tt]=G.useState({text:"",name:"",inScene:!1,thinkful:!1,voiceOver:!1,avatar:"",show:!1}),wt=G.useMemo(()=>n.reduce((jt,qt)=>(qt.slots&&qt.slots.filter(Oe=>Oe.uid).forEach(Oe=>{jt.includes(Oe.uid)||jt.push(Oe.uid)}),jt),[]),[n]),It=G.useCallback(jt=>e({type:"translate",payload:jt}),[e]),[Ft,$t]=G.useState([]),Jt=G.useMemo(()=>Ft[Ft.length-1],[Ft]),we=G.useCallback(()=>{const jt=s.find(se=>se.fromId===Jt)||s.find(se=>se.toId===Jt),qt=n.find(se=>se.id===(jt==null?void 0:jt.fromId));return!Jt&&(m==null?void 0:m.line)>=0?{decision:!0}:qt},[s,n,Jt]),ze=G.useCallback(()=>{if(Z){const jt=n.filter(qt=>!s.find(se=>se.toId===qt.id));if(jt.length){const qt=jt[0],se=n.indexOf(qt);if(se>=0)return se}}return-1},[Z,n,s]),Se=G.useCallback(()=>{if(Z){const qt=we();return qt==null?void 0:qt.decision}const jt=n[v-1]?n[v-1]:{};return v>0&&(jt==null?void 0:jt.decision)},[F,Z,n,Jt,s]),Te=G.useCallback(()=>{if(Z){const qt=we();return(qt==null?void 0:qt.type)==="conversationalCamera"}const jt=n[v-1]?n[v-1]:{};return v>0&&(jt==null?void 0:jt.type)==="conversationalCamera"},[F,Z,n,Jt,s]),pn=G.useCallback(jt=>{var se,Oe;const qt=i.find(fe=>(fe==null?void 0:fe.uid)===(jt==null?void 0:jt.uid)?fe:"");return((Oe=(se=jt==null?void 0:jt.character)==null?void 0:se.resource)==null?void 0:Oe.url)||(qt==null?void 0:qt.completeUrl)||""},[i]),Mn=(jt=()=>{})=>{if(tt.current)tt.current&&(tt.current=!1);else{N.updateProjectionMatrix(),N.updateMatrixWorld(!0);const qt=I.current.child?I.current.pos:L.position.toArray();if(og.position.fromArray(qt),I.current.parent){og.quaternion.equals(N.quaternion)||og.applyQuaternion(N.quaternion);const se=I.current.isLeft?-1:1,Oe=$et*se;og.translateX(-10*se+Oe),og.translateY(-2),og.translateZ(30)}qU.to(N.position,{duration:.9,ease:"power3.easeInOut",onStart:()=>{tt.current=!0},onUpdate:()=>{B.current.length&&B.current.forEach(se=>{const{object:Oe}=se;Oe.material.visible=!0})},onComplete:()=>{jt(),WN.set(N.getWorldPosition(new Oa.Vector3(0,0,0)),N.getWorldDirection(new Oa.Vector3));const se=WN.intersectObjects(R.children,!0);B.current=se.filter(Oe=>Oe.distance<10),B.current.length&&B.current.forEach(Oe=>{const{object:fe}=Oe;fe.material.side=0}),tt.current=!1,W.current&&t({type:"success"}),I.current.child||N.copy(L)},...og.position})}},zt=G.useCallback(()=>{I.current.child=null,I.current.parent=null,l&&Mn()},[l]),te=(jt,qt,se,Oe=!1)=>{const fe=qt.includes("seated");if(se){const Ce=AH.includes(se.animationId);Ce&&qt.includes("talking")&&(pt.current=jt),ut(jt,se.url,qt.includes("talking"),Ce).then(Gn=>{if(Gn&&Ce)if(W.current)rt(jt,"idle");else{const Xa=pt.current===jt?"neutral_talking":"neutral";rt(jt,Xa)}})}else{const Ce=Oe&&!fe?`${qt}-seated`:qt;rt(jt,Ce)}},pe=()=>{if(!(Q!=null&&Q.uid)||!(Q!=null&&Q.emotion)||W.current)return;const{emotion:jt,uid:qt,animation:se}=Q,Oe=N_(qt,R);if(Oe){const{isSeated:fe}=Oe;ot(qt).then(()=>{te(qt,fe&&!jt.includes("seated")?`${jt}-seated_talking`:`${jt}_talking`,se,fe)}).catch(Ce=>{console.error(Ce)})}},Lt=()=>{if(!(Q!=null&&Q.uid)||W.current)return;const{emotion:jt,uid:qt,animation:se}=Q,Oe=N_(qt,R);if(Oe){delete Oe.userData._active;const{isSeated:fe}=Oe;if(pt.current===qt)te(qt,"neutral",null,fe),pt.current=null;else{const Ce=jt.includes("talking");te(qt,Ce?"neutral":jt,Ce?null:se,fe)}}},Yt=G.useCallback(()=>{W.current=!0,Tt({show:!1}),zt(),st(),l||t({type:"success"})},[N,t,zt,l]);G.useEffect(()=>()=>{nt.current={},dt()},[]);const ee=jt=>{Tt({show:!1}),S(jt),t({type:"notifyProgress",payload:{line:jt}})},Be=G.useCallback((jt=!0)=>{const qt=jt?["fromId","toId"]:["toId","fromId"],se=s.filter(Ce=>Ce[qt[0]]===F.id),Oe=se.length===1?se[0]:se.find(Ce=>Ce[qt[1]]===Jt);if(!(Oe!=null&&Oe[qt[0]])){Yt();return}jt||$t(Ft.slice(0,Ft.length-1));const fe=n.findIndex(Ce=>Ce.id===Oe[qt[1]]);fe>=0?ee(fe):Yt()},[F==null?void 0:F.id,t,s,Yt,n]),Ke=G.useCallback((jt,qt)=>{const se=[3,2,1][jt.id],fe=s.filter(Gn=>Gn.fromId===(F==null?void 0:F.id)).find(Gn=>parseInt(Gn.fromPointIndex)===se),Ce=n.findIndex(Gn=>Gn.id===(fe==null?void 0:fe.toId));Ce>=0?(fe==null?void 0:fe.fromId)===(fe==null?void 0:fe.toId)?qt():ee(Ce):Yt()},[F==null?void 0:F.id,s,Yt,n]),Gt=G.useCallback(()=>{if(nt.current={...Q},C(!1),Lt(),Z)Be(!1);else if(!Se()){const jt=v-1;Tt({show:!1}),S(jt),t({type:"notifyProgress",payload:{line:jt}})}},[Be,t,Z,H,v,Q]),ie=G.useCallback(jt=>{if(Z){if(jt){const qt=[3,2,1][jt.id],Oe=s.filter(fe=>fe.fromId===F.id).find(fe=>parseInt(fe.fromPointIndex)===qt);if(Oe){const fe=n.findIndex(Ce=>Ce.id===Oe.toId);fe>=0&&t({type:"notifyProgress",payload:{line:fe}})}else t({type:"saveNode"})}}else if(v<n.length-1){const qt=v+1;t({type:"notifyProgress",payload:{line:qt}})}else t({type:"saveNode"})},[s,v,n,t,F==null?void 0:F.id,Z]),ue=G.useCallback((jt,qt)=>{if(nt.current={...Q},C(!1),Lt(),Z)$t([...Ft,F.id]),jt?Ke(jt,qt):Be();else if(v<n.length-1){const se=v+1;ee(se)}else(d||St||_t)&&Yt()},[t,F==null?void 0:F.id,Z,St,_t,v,n.length,Ke,Be,Yt,Q]),wn=()=>{x(!1),Gt()},re=()=>Z?F&&F.type!=="conversationalDecision"&&!s.find(jt=>jt.fromId===F.id):v===n.length-1,me=()=>{re()?Yt():(x(!1),ue())};G.useEffect(()=>{if(Z&&!T){const jt=m==null?void 0:m.line;if(jt>=0){A(!0),S(jt);return}const qt=ze();qt>=0&&(A(!0),S(qt))}},[s,Z,n,T,ze]);const On=jt=>{if(nt.current.uid===jt.uid||I.current.parent===jt)return;const qt=new Oa.Object3D,se=jt.getObjectByName("Head_M");se.updateMatrixWorld(!0),qt.applyMatrix4(se.matrixWorld),qt.applyQuaternion(N.quaternion);const Oe=l?2.5:2,fe=l?1.2:1.5;qt.translateY(Oe),qt.translateX(fe);const Ce=new Oa.Vector3;Ce.setFromMatrixPosition(se.matrixWorld);const Xa=Ce.project(N).x<0;I.current={pos:qt.position.toArray(),child:se,parent:jt,isLeft:Xa}},Nn=jt=>{t({type:"resetZIndexUIContainer",payload:jt})};G.useEffect(()=>{var jt;if(ht)zt(),Tt({text:F==null?void 0:F.text,name:(F==null?void 0:F.alias)||(F==null?void 0:F.name)||`[ ${It("storylines.misc.voiceOver")} ]`,inScene:!1,voiceOver:!0,thinkful:!1,top:!1,avatar:pn(Q),show:!0});else if(!W.current&&!St&&!_t){const qt=F==null?void 0:F.slots.filter(fe=>fe.uid&&!fe.talking),se=[...qt.map(fe=>fe.uid)||[],Q==null?void 0:Q.uid];if(wt.filter(fe=>!se.includes(fe)).forEach(fe=>{rt(fe,"idle")}),qt.forEach(fe=>{const Ce=N_(fe.uid,R);if(Ce){const{isSeated:Gn}=Ce;te(fe.uid,fe.emotion,fe.animation,Gn)}}),Q){const fe=N_(Q.uid,R),Ce=i.find(Gn=>Gn.uid===Q.uid);fe&&!W.current?setTimeout(()=>{var Gn,Xa;if(Q.uid===fe.uid){On(fe);const{isSeated:el,userData:ou}=fe,{emotion:nl,animation:gd}=Q;!((Gn=ou._active)!=null&&Gn.includes("talking"))&&!((Xa=ou._active)!=null&&Xa.includes(nl))&&te(Q.uid,nl,gd,el);const il=()=>{var qa;Tt({text:Q.text,name:Q.alias||((qa=Q.character)==null?void 0:qa.name),inScene:!0,thinkful:Q.emotion.includes("think"),avatar:pn(Q),show:!0})};l?(tt.current=!1,Mn(il)):il()}},150):(zt(),Tt({text:Q.text,name:Q.alias||((jt=Q.character)==null?void 0:jt.name)||(Ce==null?void 0:Ce.name),left:!1,top:Q.text.length>tnt,inScene:!1,thinkful:Q.emotion.includes("think"),avatar:pn(Q),show:!0}))}else zt(),Tt({show:!0})}},[i,F,l,R,It,pn,zt,St,ht,wt]);const la=Gw(yt==null?void 0:yt.text),[Bt,Qt]=ay({audioType:F==null?void 0:F.audioType,volume:F==null?void 0:F.audioVolume,voice:F==null?void 0:F.voice,started:yt.show,text:la,audio:F==null?void 0:F.audio,soundActions:o,getEvent:e,pauseTTS:f,onStart:()=>{var jt;(jt=Q==null?void 0:Q.emotion)!=null&&jt.includes("think")||pe()},onError:()=>{C(!0)},onFinish:()=>{Lt(),bt&&!f&&ue()}});G.useEffect(()=>(Qt(),()=>{Qt()}),[v,Qt]),G.useEffect(()=>{var jt;if(((F==null?void 0:F.audioType)==="none"||E)&&(yt!=null&&yt.show)&&!(Q!=null&&Q.emotion.includes("think"))){pe();const qt=Cz*(((jt=yt==null?void 0:yt.text)==null?void 0:jt.length)||0);setTimeout(()=>{Lt()},qt<_R?_R:qt)}},[E,F==null?void 0:F.audioType,Lt,pe,Q==null?void 0:Q.emotion,yt]),G.useEffect(()=>{var jt;if(bt&&yt.show&&((F==null?void 0:F.audioType)==="none"||E)&&!f){const qt=Cz*(((jt=yt==null?void 0:yt.text)==null?void 0:jt.length)||0);(!re()||re()&&d)&&M(ue,qt<_R?_R:qt)}return()=>{O()}},[yt,ue,M,d,O,F==null?void 0:F.audioType,bt,it,lt,E]);const de=G.useMemo(()=>ze()>=0&&Ft.length===0&&Z||!Z&&v===0||Se()||Te(),[v,Se,Te,ze,Ft]),ye=u({disabled:St||!yt.show,repeat:!1,forward:me,rewind:de?null:wn});G.useEffect(()=>ye(),[ye]);const Xe=document.querySelector(".screens--container");if(_t)return P.jsx(g9,{...F,emitEvent:t,success:!1,onFinish:ue},`change-camera-${v}`);if(St){const jt=F.id?n.filter(se=>se.decision).findIndex(se=>se.id===F.id)+1:n.filter(se=>se.decision).findIndex(se=>se===F)+1,qt={...F.payload,decisionNumber:jt,inheritProps:{slots:[],disableBackground:!0},required:!Z,branched:Z,onAddPoints:ie,onFinish:ue,emitEvent:t,getEvent:e,pause:f,soundActions:o,keyboardControl:u};return P.jsx(yN,{onMount:()=>{zt(),Nn(!0)},onUnMount:()=>{tt.current=!1,Nn(!1)},children:P.jsx(M9,{inScene:!0,...qt})})}return P.jsxs(P.Fragment,{children:[yt.text?P.jsx(Zet,{translate:It,currentMessage:yt}):null,P.jsx(su.HtmlPro,{wrapperClass:"htmlpro-wrap-100-h",style:{width:"100%",height:"100%",position:"static"},portal:Xe?{current:Xe}:void 0,zIndexRange:[6,6],onOcclude:()=>{},calculatePosition:()=>[0,0],children:P.jsxs("div",{dir:je()?"rtl":"ltr",className:"dialog-component-controls",children:[P.jsx("button",{type:"button",onClick:wn,disabled:de||!yt.show,className:`gat--btn__round ${de||!yt.show?"disabled":""}`,"aria-label":je()?It("storylines.misc.forward"):It("storylines.misc.rewind"),children:P.jsx("span",{className:je()?"icon-next":"icon-back"})}),P.jsx("button",{type:"button",onClick:me,disabled:!yt.show,className:`gat--btn__round
333
333
  ${yt.show?"":"disabled"}
334
- ${y&&re()?"glowing-animation":""}`,"aria-label":je()?It("storylines.misc.rewind"):It("storylines.misc.forward"),children:P.jsx("span",{className:je()?"icon-back":"icon-next"})})]})})]})}const nnt=su.ProgressManager.request("AssetLoader").cache,int=new su.AssetLoader(void 0,nnt);function ant({animation:u,loopTimes:t,onAnimationFinish:e,onAnimationSave:n,resource:i,makeDefault:s}){const[o,l]=G.useState(!1),c=v0.useThree(f=>f.scene),d=G.useRef(0);return G.useEffect(()=>{l(!1)},[i.uid,u==null?void 0:u.url]),G.useEffect(()=>{if(!o){const f=c.getObjectByProperty("uid",i.uid);if(f&&u&&u.url&&f.skeletonId===(u==null?void 0:u.skeletonId))if(s)n({uid:i.uid,animation:u==null?void 0:u.id,index:f.index}),e();else{const m=f.userData.animator,_=()=>{const v=m.getAction(u.url);v.setLoop(Oa.LoopRepeat,1/0),v.reset();function S(){d.current+=1,d.current>=t&&y()}function y(){m.mix("idle"),e(),m.removeEventListener("loop",S)}m.mix(u==null?void 0:u.url).then(x=>{x&&(d.current=1,d.current>=t?y():m.addEventListener("loop",S))}),l(!0)};m.getAction(u==null?void 0:u.url)?(m.setTime(0),_()):int.load(u==null?void 0:u.url,v=>{m.register(u==null?void 0:u.url,v.animations[0]),m.setTime(0),_()},void 0,v=>{console.error(`Asset loader failed with: ${u.url}`,v),e()})}else e()}},[c,u==null?void 0:u.url,t,o,i.uid,s,u,i,e,n]),null}function snt({animations:u=[],enableInteraction:t,emitEvent:e}){const n=u.length,i=G.useRef(0),s=()=>{i.current+=1,i.current>=n&&t&&e({type:"success"})},o=l=>{e({type:"saveAnimation",payload:l})};return G.useEffect(()=>{i.current=0},[u]),G.useEffect(()=>{t||e({type:"success"})},[e,t]),u.map(({animation:l,...c},d)=>{var f;return P.jsx(ant,{animation:l,...c,onAnimationFinish:s,onAnimationSave:o},(l==null?void 0:l.id)||((f=c.resource)==null?void 0:f.uid)||d)})}function rnt({text:u,error:t,handleClick:e}){return P.jsxs("div",{"data-testid":`${t?" pill--error":"pill--ok"}`,className:`email-pill ${t?" email-pill--error":""}`,children:[P.jsx("div",{children:u}),P.jsx("div",{className:"email-pill__delete",children:P.jsx("button",{type:"button",onClick:e,className:"icon-close unset-button","aria-label":"icon click"})})]})}function ont({handleContinue:u,handleCancel:t,translate:e,text:n}){const[i,s]=G.useState([]),[o,l]=G.useState(0),[c,d]=G.useState(0),f=G.useRef(null),m=(y,x,T)=>{y.stopPropagation(),s(i.filter(A=>A!==i[T])),x.error&&l(o-1),x.isRepeat&&d(c-1)},_=()=>{f.current&&f.current.focus()},v=()=>{[" ",",",";","."].includes(f.current.value)&&(f.current.value="")},S=y=>{const x=f.current.value,T=["Space","Comma","Period","Enter"],A=["Space","Comma","Enter","Tab"];x===""&&(T.includes(y.code)||y.keyCode==="186"||y.key==="Enter"||y.key===" ")?y.preventDefault():f.current.value.length>1&&(A.includes(y.code)||y.type==="blur")&&(y.preventDefault(),/[A-Za-z0-9._%+-]{3,}@[A-Za-z0-9_+-]{2,}([.]{1}[a-zA-Z]{2,}|[.]{1}[a-zA-Z]{2,}[.]{1}[a-zA-Z]{2,})/.test(x)?i.find(C=>C.text===x)?(d(c+1),s([...i,{text:x,error:!0,isRepeat:!0}])):s([...i,{text:x}]):(s([...i,{text:x,error:!0}]),l(o+1)),f.current.value="")};return P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:"referrals-piece__body",children:[P.jsx("div",{className:"referrals-piece__title",children:e("puzzles.referrals.inviter.titleStep1")}),P.jsx("div",{className:"referrals-piece__subtitle",children:n}),P.jsxs("div",{className:"referrals-piece__form",children:[P.jsxs("div",{className:"referrals-piece__instructions",children:[P.jsx("div",{dir:"auto",children:e("puzzles.referrals.inviter.instructions")}),P.jsx("div",{dir:"auto",children:e("puzzles.referrals.inviter.limit")})]}),P.jsx("div",{className:"referrals-piece__faketextarea",onKeyUp:()=>{},role:"button",tabIndex:"-1",onClick:_,"aria-labelledby":"list of emails",children:P.jsxs("div",{className:"referrals-piece__scrollarea",id:"list of emails",children:[i&&i.map((y,x)=>P.jsx(rnt,{text:y.text,error:y.error,handleClick:T=>m(T,y,x),emailPillIndex:x},`${i.indexOf(y)}`)),i.length<=9?P.jsxs(P.Fragment,{children:[P.jsx("input",{id:"email",ref:f,className:"referrals-piece__inputemail",onChange:v,onKeyDown:S,onBlur:S,type:"email",autoComplete:"off"}),P.jsx("label",{className:"referrals-piece__emaillabel",htmlFor:"email",children:P.jsx("span",{children:e("puzzles.referrals.inviter.skipButton")})})]}):null]})}),P.jsxs("div",{dir:je()?"rtl":"auto",className:"referrals-piece__footervalidation",children:[P.jsxs("div",{className:"referrals-piece__errormessage",children:[P.jsx("div",{children:c>0?e("puzzles.referrals.inviter.errorEmailRepeat"):null}),P.jsx("div",{children:o>0?e("puzzles.referrals.inviter.errorMessage"):null})]}),P.jsxs("div",{className:"referrals-piece__counter","data-testid":"pillcounter",children:[i.length,"/10"]})]})]})]}),P.jsxs("div",{className:"referrals-piece__buttons",children:[P.jsx("button",{"data-testid":"cancelButton",className:"gat--btn gat--btn__secondary",type:"button",onClick:t,children:e("puzzles.referrals.inviter.skipButton")}),P.jsx("button",{className:`gat--btn gat--btn__primary ${c>0||o>0||i.length===0?" disabled":""}`,type:"button",disabled:o>0||i.length===0,onClick:()=>u(i),children:e("puzzles.referrals.inviter.inviteButton")})]})]})}function lnt({handleFinish:u,translate:t,valid:e,invalid:n}){const[i,s]=G.useState(!1),o=()=>{s(!i)},l=e.current===1?"invitationSend":"invitationsSend",c=n===1?"invitationNotSend":"invitationsNotSend";return P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:"referrals-piece__body",dir:"auto",children:[P.jsx("div",{className:"referrals-piece__title",children:t("puzzles.referrals.inviter.titleStep2")}),P.jsxs("ul",{className:"referrals-piece__feedback",children:[e.current!==0&&P.jsxs("li",{children:[P.jsx("div",{className:"referrals-piece__feedbackicon icon-check-circle-black color--success"}),P.jsxs("div",{children:[P.jsx("strong",{children:e.current})," ",t(`puzzles.referrals.inviter.${l}`)]})]}),!!n.current&&P.jsxs("li",{children:[P.jsx("div",{className:"referrals-piece__feedbackicon icon-error-circle-black color--error"}),P.jsxs("div",{children:[P.jsx("strong",{children:n.current})," ",t(`puzzles.referrals.inviter.${c}`)]}),P.jsx("button",{className:"un-button",type:"button",onClick:o,children:t("puzzles.referrals.inviter.whyFail")})]})]}),i?P.jsxs("ul",{className:"referrals-piece__failsreasons",children:[P.jsx("li",{children:t("puzzles.referrals.inviter.failReasons1")}),P.jsx("li",{children:t("puzzles.referrals.inviter.failReasons2")}),P.jsx("li",{children:t("puzzles.referrals.inviter.failReasons3")})]}):null]}),P.jsx("div",{className:"referrals-piece__buttons",children:P.jsx("button",{className:"gat--btn gat--btn__primary",type:"button",onClick:u,children:t("puzzles.referrals.inviter.continueButton")})})]})}function unt({emitEvent:u,getEvent:t,text:e,rewards:n,referrals:i}){const s=v=>t({type:"translate",payload:v}),[o,l]=G.useState("step1"),c=G.useRef(0),d=G.useRef(0),f=async v=>{const S=v.map(x=>x.text),y=await u({type:"sendReferrals",payload:S});c.current=y&&y.data?y.data.valid.length:0,d.current=S.length-c.current,l("step2")};if(!i)return u({type:"success"}),null;const m=()=>{u({type:"success"})},_=()=>{if(c.current){const v=n.map(S=>(S.points*=c.current,S));u({type:"addPoints",complex:!0,finish:!0,payload:v})}else u({type:"success"})};return P.jsx("div",{className:"referrals-piece",children:P.jsxs("div",{className:"referrals-piece__center",children:[o==="step1"&&P.jsx(ont,{translate:s,handleContinue:f,handleCancel:m,text:e}),o==="step2"&&P.jsx(lnt,{translate:s,handleFinish:_,valid:c,invalid:d})]})})}function cnt({onPass:u}){return G.useEffect(()=>{const t=setTimeout(u,0);return()=>clearTimeout(t)},[u]),null}function dnt({itemResolver:u,consume:t,hasComplexNotResolvers:e,hasComplexResolvers:n,resolverObjects:i,feedback:s,emitEvent:o,getEvent:l,soundActions:c,keyboardControl:d,noEvaluation:f}){const[m]=c,[_,v]=G.useState(!1),[S,y]=G.useState(!1),[x,T]=G.useState(!1),A=M=>l({type:"translate",payload:M}),E=G.useCallback(()=>{o({type:"addPoints",complex:!0,finish:_.success,onFinish:()=>{_.success?o({type:"success"}):o({type:"closeScreen"})},payload:_.rewards})},[o,_]),C=G.useCallback(()=>{if(i.find(O=>O===u.uid)){let O;n?(O=s.resolvers.rights.find(B=>B.uidObject===u.uid),O||(O=s.resolvers.rights[0])):O=s.resolvers.rights[0],t&&o({type:"consumeItem",payload:{uid:u.uid,targetId:u.uid,name:u.name}}),v({...O,success:!0})}else{let O;e?(O=s.notResolvers.wrongs.find(B=>B.uidObject===u.uid),O||(O=s.notResolvers.wrongs[0])):O=s.notResolvers.wrongs[0],v({...O,success:!1})}},[i,u,n,t,s,o,e]),R=G.useCallback(()=>{if(i.find(O=>O===(u==null?void 0:u.uid))){let O;n?O=[...s.resolvers.rights.find(I=>I.uidObject===(u==null?void 0:u.uid)).rewards.filter(I=>I.type==="var")]:O=[...s.resolvers.rights[0].rewards.filter(L=>L.type==="var")],t&&o({type:"consumeItem",payload:{uid:u==null?void 0:u.uid,targetId:u==null?void 0:u.uid,name:u==null?void 0:u.name}}),T({varsPoints:[...O],success:!0})}else{let O;e?O=[...s.notResolvers.wrongs.find(I=>I.uidObject===(u==null?void 0:u.uid)).rewards.filter(I=>I.type==="var")]:O=[...s.notResolvers.wrongs[0].rewards.filter(L=>L.type==="var")],T({varsPoints:[...O],success:!1})}},[t,o,s.notResolvers.wrongs,s.resolvers.rights,e,n,u==null?void 0:u.name,u==null?void 0:u.uid,i]),N=G.useCallback(()=>{o({type:"addPoints",complex:!0,finish:x==null?void 0:x.success,onFinish:()=>{x!=null&&x.success?o({type:"success"}):o({type:"closeScreen"})},payload:x!=null&&x.varsPoints?x==null?void 0:x.varsPoints:[]}),y(!1)},[o,x==null?void 0:x.success,x==null?void 0:x.varsPoints]);return G.useEffect(()=>{u?f?R():C():o({type:"closeScreen"})},[C,R,o,u,f]),G.useEffect(()=>{x&&(x!=null&&x.success?y(!0):o({type:"closeScreen"}))},[o,x]),S?P.jsx(cnt,{onPass:N}):_?P.jsx(fd,{text:_.desc,success:_.success,playSound:m,hasTimeout:!_.desc,delay:2e3,translate:A,keyboardControl:d,functionOnClose:E}):null}function Rz({item:u,viewMode:t}){var e,n;return P.jsxs(P.Fragment,{children:[t==="text"&&P.jsx("div",{className:"match-item-text",children:Oi(u==null?void 0:u.content)}),t==="card"&&P.jsx("div",{className:"match-item-image",children:P.jsxs("figure",{children:[((e=u==null?void 0:u.img)==null?void 0:e.url)&&P.jsx("img",{src:(n=u==null?void 0:u.img)==null?void 0:n.url,alt:u==null?void 0:u.imgName}),(u==null?void 0:u.content)&&P.jsx("figcaption",{children:Oi(u==null?void 0:u.content)})]})})]})}function QU({translate:u,onClose:t,buttonLabel:e}){return P.jsx("div",{className:"timer-dialog",children:P.jsxs("div",{className:"timer-dialog__container",children:[P.jsx("div",{className:"timer-dialog__title",children:u("storylines.misc.ready")}),P.jsx("button",{type:"button",className:"gat--btn gat--btn__primary",onClick:t,children:P.jsx("span",{children:u(`${e}`)})})]})})}function WU({initialSeconds:u=10,isPaused:t,shouldStart:e,shouldReset:n,onTimeOver:i}){const[s,o]=G.useState(u),[l,c]=G.useState(!1),d=G.useRef();G.useEffect(()=>{n&&(o(u),c(!1))},[n,u]),G.useEffect(()=>{t&&c(!1)},[t]),G.useEffect(()=>{e&&c(!0)},[e]),G.useEffect(()=>(l&&s>0?d.current=setInterval(()=>{o(m=>m-1),s===1&&i()},1e3):s===0&&(clearInterval(d.current),c(!1)),()=>clearInterval(d.current)),[l,i,s]);const f=m=>{const _=Math.floor(m/60),v=m%60,S=String(_).padStart(2,"0"),y=String(v).padStart(2,"0");return`${S}:${y}`};return P.jsx("div",{className:`count-down ${s<10&&"count-down--finalseconds"}`,children:P.jsx("div",{children:f(s)})})}function hnt({emitEvent:u,soundActions:t=[()=>{},()=>{}],getEvent:e,info:n,specificFeedbacks:i,setResolveAction:s,nodeId:o,viewMode:l,title:c,sources:d,destinations:f,correctPairings:m,timer:_=0,keyboardControl:v,backgroundImage:S}){const y=zt=>e({type:"translate",payload:zt}),x=`match-puzzle_${o}`,[T,A]=G.useState([]),[E,C]=G.useState(null),[R,N]=G.useState(!1),[M,O]=G.useState(!1),[B,L]=G.useState(""),[I,F]=G.useState(!1),[H,W]=G.useState([]),[Z]=t;ay({soundActions:t});const X=zt=>{Z("click-ui");const te=Ke=>Ke==null?void 0:Ke.startsWith("source-item"),pe=Ke=>Ke==null?void 0:Ke.startsWith("destination-item");if(zt.id===E){C(null);return}const Lt=te(zt.id),Yt=te(E),ee=pe(zt.id),Be=pe(E);if(Lt&&Be||ee&&Yt){Q(zt);return}C(zt.id)},$=zt=>{let te;return zt.startsWith("destination-item")?te={[E]:zt}:te={[zt]:E},m.some(pe=>{const Lt=JSON.stringify(pe),Yt=JSON.stringify(te);return Lt===Yt})},nt=(zt,te)=>{const pe=new Map(zt.map(Lt=>[Lt.id,{...Lt}]));return te.forEach(Lt=>{pe.has(Lt.id)?pe.get(Lt.id).points+=Lt.points:pe.set(Lt.id,{...Lt})}),Array.from(pe.values())},Q=zt=>{var te,pe;if(Z("click-ui"),$(zt.id)){const Lt=zt.id.startsWith("source-item")?zt.id:E,Yt=zt.id.startsWith("destination-item")?zt.id:E,ee=[...T,{[Lt]:Yt}];if(A(ee),i.specificCorrectFeedbacks){const Be=i==null?void 0:i.correctFeedbacks.find(ie=>ie.id===`${Lt}-${Yt}`),Ke=nt(H,Be.rewards);W([...Ke]),tt(ee)&&(we(),F(!0)),Be.desc&&(L(Be==null?void 0:Be.desc),O(!0),N(!0),we());const Gt=tt(ee);!Be.desc&&Gt&&rt(Ke)}else if(tt(ee)&&(we(),F(!0)),tt(ee)){O(!0),n.solution.right.desc&&(we(),L(n.solution.right.desc)),N(!0),F(!0);const Ke=nt(H,n.solution.right.rewards);W([...Ke]),n.solution.right.desc===""&&setTimeout(()=>{rt(Ke)},3e3)}C(null)}else if(document.querySelector(`#${zt.id}`).classList.add("match-button--error"),document.querySelector(`#${E}`).classList.add("match-button--error"),setTimeout(()=>{document.querySelector(`#${zt.id}`).classList.remove("match-button--error"),document.querySelector(`#${E}`).classList.remove("match-button--error"),C(null)},1e3),i.specificWrongFeedbacks){const Lt=zt.id.startsWith("destination-item")?zt.id:E,Yt=i==null?void 0:i.wrongFeedbacks.find(Be=>Be.id===Lt),ee=nt(H,Yt.rewards);W([...ee]),Yt!=null&&Yt.desc&&(L(Yt.desc),O(!1),N(!0),we())}else{const Lt=nt(H,n.solution.wrong.rewards);W([...Lt]),(pe=(te=n.solution)==null?void 0:te.wrong)!=null&&pe.desc&&(L(n.solution.wrong.desc),N(!0),we())}},tt=zt=>{if(m.length!==zt.length)return!1;const te=new Set(m.map(Lt=>JSON.stringify(Lt))),pe=new Set(zt.map(Lt=>JSON.stringify(Lt)));for(const Lt of pe)if(!te.has(Lt))return!1;return!0},rt=zt=>{Z("score");const te=zt?[...zt]:[...H];u({type:"addPoints",complex:!0,finish:!0,payload:te}),u({type:"passPuzzle"})},ut=()=>{N(!1),O(!1),L(""),St&&(Se(),it(!0)),!St&&!I&&ze(),I&&rt()},st=G.useMemo(()=>Object.assign({},...T),[T]),ot=(zt,te)=>st[zt]===te;G.useEffect(()=>{s(()=>{Z("score"),we(),O(!0),L(n.solution.right.desc);const zt=[...H,...n.resolve.rewards],te=[...m];A(te),setTimeout(()=>{O(!1),N(!1),u({type:"hidePuzzleButtons",payload:!1}),u({type:"puzzleAction",action:"resolve",payload:{element:x,rewards:zt,finish:!0}})},5e3)})},[H,m,u,n.resolve.rewards,n.solution.right.desc,Z,x,s]);const dt=(zt,te)=>T.findIndex(pe=>{const Lt=Object.keys(pe)[0],Yt=Object.values(pe)[0];return Lt===zt&&Yt===te}),[pt,it]=G.useState(!0),[lt,ht]=G.useState("storylines.misc.start"),[St,_t]=G.useState(!1),bt=()=>{ht("storylines.misc.retry"),it(!1),_t(!1),ze()},[yt,Tt]=G.useState(!1),[wt,It]=G.useState(!1),[Ft,$t]=G.useState(!1),Jt=()=>{let zt=nt(H,n.timerFeedback.rewards);if(i.specificCorrectFeedbacks){const te=new Map(zt.map(pe=>[pe.id,{...pe}]));T.forEach(pe=>{const Lt=Object.keys(pe)[0],Yt=pe[Lt],ee=i.correctFeedbacks.find(Be=>Be.id===`${Lt}-${Yt}`);ee!=null&&ee.rewards&&ee.rewards.forEach(Be=>{if(te.has(Be.id)){const Ke=te.get(Be.id);Ke.points-=Be.points,te.set(Be.id,Ke)}})}),zt=Array.from(te.values())}W(zt),A([]),_t(!0),L(n.timerFeedback.desc),N(!0)},we=()=>{Tt(!0),It(!1),$t(!1)},ze=()=>{Tt(!1),It(!0),$t(!1)},Se=()=>{Tt(!1),It(!1),$t(!0)},Te=G.useCallback(()=>{const zt=document.querySelector('button[id^="source-item"]'),te=document.querySelector('button[id^="destination-item"]'),pe=zt.getBoundingClientRect().right,Yt=te.getBoundingClientRect().left+6-pe;d.items.forEach((ee,Be)=>{if(ee.matchDestinationId!==void 0&&ee.matchDestinationId!==null){const Ke=document.querySelector(`#${ee.id}`),Gt=document.querySelector(`#${ee.matchDestinationId}`),ie=Ke.getBoundingClientRect().top,ue=Gt.getBoundingClientRect().top,wn=ue>ie,re=Math.abs(ue-ie),me=Math.sqrt(Yt*Yt+re*re),On=Ke.querySelector(".match-line__hipotenuse");On.style.setProperty("width",`${me}px`);const Nn=Math.atan(re/Yt),la=wn?Nn*(180/Math.PI):-Nn*(180/Math.PI);On.style.setProperty("transform",`rotate(${la}deg)`)}})},[d.items]);G.useEffect(()=>(Te(),window.addEventListener("resize",Te),()=>{window.removeEventListener("resize",Te)}),[Te]);const pn=G.useMemo(()=>{let zt="";return zt="match ",S!=null&&S.url&&(zt+="match--with-custom-bg"),zt},[S==null?void 0:S.url]),Mn={backgroundImage:S!=null&&S.url?`url('${S.url}')`:""};return P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:pn,style:Mn,children:[(c||_>0)&&P.jsxs("header",{className:"match__header",children:[P.jsx("div",{}),c&&P.jsx("div",{className:"match__title","data-testid":"match__title",children:Oi(c)}),_>0&&P.jsx(WU,{initialSeconds:_,isPaused:yt,shouldStart:wt,shouldReset:Ft,onTimeOver:Jt})]}),P.jsx("div",{className:"match__columns",children:P.jsxs("div",{className:"match__columns-scroll",children:[P.jsxs("div",{className:"match__column-wrap",children:[d.title&&P.jsx("div",{className:"match__subtitle",children:Oi(d.title)}),P.jsx("div",{className:"match__column",children:d.items.map(zt=>P.jsxs("button",{id:zt.id,"data-testid":zt.id,className:["unset-button match-button",E===zt.id&&"match-button--marked",ot(zt.id,zt.matchDestinationId)&&"match-button--success",dt(zt.id,zt.matchDestinationId)+1&&"match-button--matched"].filter(Boolean).join(" "),style:{"--matched-color":`var(--matched-color-${dt(zt.id,zt.matchDestinationId)+1})`},disabled:ot(zt.id,zt.matchDestinationId),type:"button",onClick:()=>X(zt),children:[P.jsx(Rz,{item:zt,viewMode:l}),P.jsx("div",{className:"icon-check-circle-black color--success"}),P.jsx("div",{className:"icon-error-circle-black color--error"}),P.jsx("div",{className:"match-line__hipotenuse"})]},zt.id))})]}),P.jsxs("div",{className:"match__column-wrap",children:[f.title&&P.jsx("div",{className:"match__subtitle",children:Oi(f.title)}),P.jsx("div",{className:"match__column",children:f.items.map(zt=>P.jsxs("button",{id:zt.id,"data-testid":zt.id,className:["unset-button match-button",E===zt.id&&"match-button--marked",ot(zt.matchSourceId,zt.id)&&"match-button--success",dt(zt.matchSourceId,zt.id)+1&&"match-button--matched"].filter(Boolean).join(" "),style:{"--matched-color":`var(--matched-color-${dt(zt.matchSourceId,zt.id)+1})`},disabled:ot(zt.matchSourceId,zt.id),type:"button",onClick:()=>X(zt),children:[P.jsx(Rz,{item:zt,viewMode:l}),P.jsx("div",{className:"icon-check-circle-black color--success"}),P.jsx("div",{className:"icon-error-circle-black color--error"})]},zt.id))})]})]})})]}),_>0&&pt&&P.jsx(QU,{buttonLabel:lt,translate:y,onClose:bt}),R&&P.jsx(fd,{success:M,text:B,hasTimeout:!B,translate:y,timeExpired:St,functionOnClose:ut,keyboardControl:v})]})}function fnt({emitEvent:u,soundActions:t=[()=>{},()=>{}],getEvent:e,info:n,specificFeedbacks:i,setResolveAction:s,nodeId:o,destinationAreas:l,draggableItems:c,noDraggableItems:d,background:f,showDestinationAreas:m,timer:_,viewMode:v,keyboardControl:S}){var Nn,la;const y=kt=>e({type:"translate",payload:kt}),x=`sort-puzzle_${o}`,[T,A]=G.useState(!1),[E,C]=G.useState(!1),[R,N]=G.useState(""),[M,O]=G.useState(!1),[B,L]=G.useState([]),[I]=t;ay({soundActions:t});const F=G.useRef({}),H=G.useRef({}),[W,Z]=G.useState(!0),[X,$]=G.useState("storylines.misc.start"),[nt,Q]=G.useState(!1),[tt,rt]=G.useState(!1),[ut,st]=G.useState(!1),[ot,dt]=G.useState(!1),pt=()=>{const kt=i.specificCorrectFeedbacks?[]:B,Qt=we(kt,n.timerFeedback.rewards);v==="matchMode"&&Tt.current.forEach(de=>{de.acceptedItems=[]}),L(Qt),Q(!0),Te(n.timerFeedback.desc,!1)},it=G.useCallback(()=>{rt(!0),st(!1),dt(!1)},[]),lt=()=>{rt(!1),st(!0),dt(!1)},ht=()=>{rt(!1),st(!1),dt(!0)},St=()=>{$("storylines.misc.retry"),Z(!1),Q(!1),lt()},_t=(kt,Qt)=>{const de=Bn=>Bn.current.flatMap(qt=>{const se=qt.acceptedItems;return se||[]}).sort(),ye=de(kt),Xe=de(Qt);return ye.length!==Xe.length?!1:ye.join(",")===Xe.join(",")},bt=G.useRef(0),yt=G.useRef([]),Tt=G.useRef([]);G.useEffect(()=>{v==="matchMode"&&!bt.current&&l.forEach(kt=>{bt.current+=1,yt.current.push({id:kt.id,acceptedItems:kt.acceptedItems}),Tt.current.push({id:kt.id,acceptedItems:[]})})},[l,v]);const wt=G.useRef(null),It=G.useRef(null),Ft=G.useCallback(()=>{const kt=wt.current.clientHeight,Qt=It.current.clientHeight;It.current.style.transform=`scale(${kt/Qt})`},[]);G.useEffect(()=>(Ft(),window.addEventListener("resize",Ft),()=>{window.removeEventListener("resize",Ft)}),[Ft]);const $t=G.useRef([]),Jt=G.useCallback(()=>{$t.current=Object.values(H.current).filter(Boolean).map(kt=>{const Qt=kt.getBoundingClientRect();return{id:kt.id,top:Qt.top,left:Qt.left,right:Qt.right,bottom:Qt.bottom}})},[]);G.useEffect(()=>(Jt(),window.addEventListener("resize",Jt),()=>{window.removeEventListener("resize",Jt)}),[Jt]);const we=(kt,Qt)=>{const de=new Map(kt.map(ye=>[ye.id,{...ye}]));return Qt.forEach(ye=>{de.has(ye.id)?de.get(ye.id).points+=ye.points:de.set(ye.id,{...ye})}),Array.from(de.values())},ze=G.useCallback(kt=>{I("score");const Qt=kt?[...kt]:[...B];u({type:"addPoints",complex:!0,finish:!0,payload:Qt}),u({type:"passPuzzle"})},[B,u,I]),Se=G.useCallback(()=>{N(""),C(!1),A(!1),u({type:"hidePuzzleButtons",payload:!1})},[u]),Te=G.useCallback((kt,Qt=!1)=>{kt&&N(kt),Qt&&C(!0),A(!0),u({type:"hidePuzzleButtons",payload:!0}),it()},[u,it]),pn=G.useCallback(()=>{n.solution.right.desc&&(it(),N(n.solution.right.desc));const kt=we(B,n.solution.right.rewards);L([...kt]),Te(null,!0),n.solution.right.desc===""&&setTimeout(()=>{Se(),ze(kt)},3e3)},[B,n.solution.right.desc,n.solution.right.rewards,it,Se,Te,ze]),Mn=G.useCallback((kt,Qt)=>{const de=i==null?void 0:i.correctFeedbacks.find(Xe=>Xe.id===kt.id),ye=we(B,de.rewards);L([...ye]),de.desc&&Te(de.desc,!0),!de.desc&&Qt&&(Te(null,!0),setTimeout(()=>{Se(),ze(ye)},3e3))},[B,Se,Te,ze,i==null?void 0:i.correctFeedbacks]),zt=G.useCallback(()=>{var Qt;const kt=we(B,n.solution.wrong.rewards);L([...kt]),n.solution.wrong.desc&&Te((Qt=n.solution.wrong)==null?void 0:Qt.desc,!1)},[B,n.solution.wrong.desc,n.solution.wrong.rewards,Te]),te=(kt,Qt)=>{setTimeout(()=>{Qt.classList.remove("sort-draggable-item--error"),Qt.classList.add("sort-draggable-item--resetting"),Qt.style.setProperty("transform",kt.transform),setTimeout(()=>Qt.classList.remove("sort-draggable-item--resetting"),1e3)},1e3)},pe=kt=>{if(kt==="none")return{x:0,y:0};const de=kt.replace("matrix(","").replace("matrix3d(","").replace(")","").split(", ");return de.length===6?{x:parseFloat(de[4]),y:parseFloat(de[5])}:de.length===16?{x:parseFloat(de[12]),y:parseFloat(de[13])}:{x:0,y:0}},Lt=G.useRef(),Yt=G.useRef(),ee=G.useRef(),Be=G.useRef(),Ke=(kt,Qt)=>{Lt.current=Qt;const de=kt.currentTarget;de.classList.add("sort-draggable-item--dragging");const ye=kt.touches?kt.touches[0].clientX:kt.clientX,Xe=kt.touches?kt.touches[0].clientY:kt.clientY;Yt.current=ye,ee.current=Xe;const Bn=window.getComputedStyle(de).getPropertyValue("transform");Be.current=pe(Bn)},Gt=G.useCallback((kt,Qt)=>{if(Lt.current&&Lt.current===Qt){const de=wt.current.clientHeight/It.current.clientHeight,ye=F.current[Qt],Xe=ye.getBoundingClientRect(),jt=ye.parentElement.getBoundingClientRect(),qt=(kt.touches?kt.touches[0].clientX:kt.clientX)-Yt.current,se=(kt.touches?kt.touches[0].clientY:kt.clientY)-ee.current,Oe=(jt.width-Xe.width)/de,fe=(jt.height-Xe.height)/de,Ce=Math.min(Math.max(Be.current.x+qt/de,0),Oe),Gn=Math.min(Math.max(Be.current.y+se/de,0),fe);ye.style.transform=`translate(${Ce}px, ${Gn}px)`}},[]),ie=(kt,Qt)=>{const ye=F.current[kt].getBoundingClientRect(),Xe=$t.current.find(jt=>jt.id===Qt&&!(ye.left>=jt.right||ye.right<=jt.left||ye.top>=jt.bottom||ye.bottom<=jt.top)),Bn=$t.current.find(jt=>jt.id!==Qt&&!(ye.left>=jt.right||ye.right<=jt.left||ye.top>=jt.bottom||ye.bottom<=jt.top));return Xe?"correctArea":Bn?"incorrectArea":"neutral"},ue=G.useCallback(kt=>{if(Lt.current&&Lt.current===kt){I("click-ui");const Qt=F.current[kt],de=c.find(ye=>kt===ye.id);if(Yt.current=null,ee.current=null,Qt.classList.remove("sort-draggable-item--dragging"),Lt.current=null,v!=="resolveMode"){const ye=ie(kt,de.destination.id);if(ye==="correctArea"){if(v==="anyItemResolver"&&(I("score"),it(),Qt.classList.add("sort-draggable-item--success"),i.specificCorrectFeedbacks?(O(!0),Mn(de,!0)):pn()),v==="matchMode")if(I("score"),Qt.classList.add("sort-draggable-item--success"),Tt.current.find(Bn=>Bn.id===de.destination.id).acceptedItems.push(de.id),i.specificCorrectFeedbacks){const Bn=_t(Tt,yt);Bn&&O(!0),Mn(de,Bn)}else _t(Tt,yt)&&pn()}else if(ye==="incorrectArea"&&(v==="anyItemResolver"||v==="matchMode")){if(I("fail"),Qt.classList.add("sort-draggable-item--error"),i.specificWrongFeedbacks){const Xe=i==null?void 0:i.wrongFeedbacks.find(jt=>jt.id===de.id),Bn=we(B,Xe.rewards);L([...Bn]),Xe.desc&&Te(Xe.desc,!1)}else zt();te(de,Qt)}}}},[B,c,pn,zt,Mn,it,I,Te,i.specificCorrectFeedbacks,i.specificWrongFeedbacks,i==null?void 0:i.wrongFeedbacks,v]),wn=()=>{let kt=!1;it(),c.forEach(Qt=>{const de=F.current[Qt.id];if(Qt.destination.id)ie(Qt.id,Qt.destination.id)!=="correctArea"?(kt=!0,de.classList.add("sort-draggable-item--error"),te(Qt,de)):de.classList.add("sort-draggable-item--success");else{const ye=de.getBoundingClientRect();$t.current.find(Bn=>!(ye.left>=Bn.right||ye.right<=Bn.left||ye.top>=Bn.bottom||ye.bottom<=Bn.top))&&(kt=!0,de.classList.add("sort-draggable-item--error"),te(Qt,de))}}),kt?(I("fail"),zt()):(I("score"),O(!0),pn())},re=()=>{c.forEach(kt=>{const Qt=F.current[kt.id];Qt.classList.remove("sort-draggable-item--error"),Qt.classList.remove("sort-draggable-item--success"),Qt.classList.add("sort-draggable-item--resetting"),Qt.style.setProperty("transform",kt.transform),setTimeout(()=>Qt.classList.remove("sort-draggable-item--resetting"),1e3)})},me=()=>{Se(),nt&&(ht(),re(),Z(!0)),!nt&&!M&&lt(),M&&ze()};G.useEffect(()=>{s(()=>{I("score"),it(),C(!0),N(n.solution.right.desc);const kt=[...B,...n.resolve.rewards];Se(),u({type:"puzzleAction",action:"resolve",payload:{element:x,rewards:kt,finish:!0}})})},[B,u,n.resolve.rewards,n.solution.right.desc,it,I,x,Se,s]),G.useEffect(()=>{if(!wt.current||!It.current)return;const kt=de=>Gt(de,Lt.current),Qt=()=>ue(Lt.current);return document.addEventListener("mousemove",kt),document.addEventListener("mouseup",Qt),document.addEventListener("touchmove",kt,{passive:!1}),document.addEventListener("touchend",Qt),()=>{document.removeEventListener("mousemove",kt),document.removeEventListener("mouseup",Qt),document.removeEventListener("touchmove",kt),document.removeEventListener("touchend",Qt)}},[ue,Gt]);const On={backgroundImage:(Nn=f==null?void 0:f.img)!=null&&Nn.url?`url('${(la=f==null?void 0:f.img)==null?void 0:la.url}')`:""};return P.jsxs("div",{ref:wt,className:"sort-wrapper",children:[P.jsxs("div",{ref:It,className:"sort-puzzle",style:On,children:[d.map(kt=>P.jsxs("div",{id:`${kt.id}`,className:"sort-no-draggable-item",style:{"--height":`${kt.heightInPercentage}%`,"--width":`${kt.widthInPercentage}%`,"--transform":`${kt.transform}`,"--backgroundColor":`${kt.backgroundColor}`},children:[kt.imgId&&P.jsx("img",{src:kt.img.url,alt:kt.img.name}),kt.text&&Oi(kt.text)]},kt.id)),l.map(kt=>P.jsx("div",{ref:Qt=>{H.current[kt.id]=Qt},id:kt.id,className:`sort-destination-area ${m?"sort-destination-area--revelable":""}`,style:{"--height":`${kt.heightInPercentage}%`,"--width":`${kt.widthInPercentage}%`,"--transform":`${kt.transform}`}},kt.id)),c.map(kt=>P.jsxs("div",{ref:Qt=>{F.current[kt.id]=Qt},id:`${kt.id}`,className:"sort-draggable-item",onMouseDown:Qt=>Ke(Qt,kt.id),onTouchStart:Qt=>Ke(Qt,kt.id),style:{"--height":`${kt.heightInPercentage}%`,"--width":`${kt.widthInPercentage}%`,"--transform":`${kt.transform}`,"--backgroundColor":`${kt.backgroundColor}`},children:[kt.imgId&&P.jsx("img",{src:kt.img.url,alt:kt.img.name}),kt.text&&Oi(kt.text)]},kt.id))]}),v==="resolveMode"&&P.jsx("button",{type:"button",onClick:()=>{wn()},className:"gat--btn gat--btn__primary sort-resolve-button",children:P.jsx("span",{children:y("storylines.misc.check")})}),_>0&&W&&P.jsx(QU,{buttonLabel:X,translate:y,onClose:St}),T&&P.jsx(fd,{success:E,text:R,hasTimeout:!R,translate:y,timeExpired:nt,functionOnClose:me,keyboardControl:S}),_>0&&P.jsx("div",{className:"sort-timer",children:P.jsx(WU,{initialSeconds:_,isPaused:tt,shouldStart:ut,shouldReset:ot,onTimeOver:pt})})]})}exports.AnimationComponent=snt;exports.AutoEvaluationComponent=Mtt;exports.CardsSelectorPuzzleComponent=$$;exports.CartelComponent=dX;exports.ChainedImageClickPuzzleComponent=x$;exports.ChangeCamera=g9;exports.ComicComponent=uX;exports.ConversationalComponent=sX;exports.ConversationalProComponent=aX;exports.CrackerPuzzleComponent=h$;exports.DecisionComponent=M9;exports.DialogComponent=ent;exports.DragItemPuzzleComponent=mtt;exports.DragToSceneComponent=dnt;exports.FrameImageClickComponent=C$;exports.HackerPuzzleComponent=gX;exports.HangedPuzzleComponent=b$;exports.ImageClickPuzzleComponent=e$;exports.ImageComponent=$K;exports.InventoryItem=DH;exports.KeyboardPuzzleComponent=_X;exports.LecturesComponent=UK;exports.LoginPuzzleComponent=yX;exports.MatchPuzzleComponent=hnt;exports.NoticeComponent=EH;exports.PatternComponent=Ott;exports.PdfComponent=gY;exports.PdfVisor=y5;exports.ReferralComponent=unt;exports.SortPuzzleComponent=fnt;exports.SurveyComponent=Rtt;exports.TerminalPuzzleComponent=ptt;exports.TestComponent=Stt;exports.TextClickPuzzleComponent=Ntt;exports.UrlComponent=vY;exports.VideoComponent=NY;exports.VideoVisor=_5;exports.WebBuilderPuzzleComponent=Y$;exports.WriterPuzzleComponent=ltt;
334
+ ${y&&re()?"glowing-animation":""}`,"aria-label":je()?It("storylines.misc.rewind"):It("storylines.misc.forward"),children:P.jsx("span",{className:je()?"icon-back":"icon-next"})})]})})]})}const nnt=su.ProgressManager.request("AssetLoader").cache,int=new su.AssetLoader(void 0,nnt);function ant({animation:u,loopTimes:t,onAnimationFinish:e,onAnimationSave:n,resource:i,makeDefault:s}){const[o,l]=G.useState(!1),c=v0.useThree(f=>f.scene),d=G.useRef(0);return G.useEffect(()=>{l(!1)},[i.uid,u==null?void 0:u.url]),G.useEffect(()=>{if(!o){const f=c.getObjectByProperty("uid",i.uid);if(f&&u&&u.url&&f.skeletonId===(u==null?void 0:u.skeletonId))if(s)n({uid:i.uid,animation:u==null?void 0:u.id,index:f.index}),e();else{const m=f.userData.animator,_=()=>{const v=m.getAction(u.url);v.setLoop(Oa.LoopRepeat,1/0),v.reset();function S(){d.current+=1,d.current>=t&&y()}function y(){m.mix("idle"),e(),m.removeEventListener("loop",S)}m.mix(u==null?void 0:u.url).then(x=>{x&&(d.current=1,d.current>=t?y():m.addEventListener("loop",S))}),l(!0)};m.getAction(u==null?void 0:u.url)?(m.setTime(0),_()):int.load(u==null?void 0:u.url,v=>{m.register(u==null?void 0:u.url,v.animations[0]),m.setTime(0),_()},void 0,v=>{console.error(`Asset loader failed with: ${u.url}`,v),e()})}else e()}},[c,u==null?void 0:u.url,t,o,i.uid,s,u,i,e,n]),null}function snt({animations:u=[],enableInteraction:t,emitEvent:e}){const n=u.length,i=G.useRef(0),s=()=>{i.current+=1,i.current>=n&&t&&e({type:"success"})},o=l=>{e({type:"saveAnimation",payload:l})};return G.useEffect(()=>{i.current=0},[u]),G.useEffect(()=>{t||e({type:"success"})},[e,t]),u.map(({animation:l,...c},d)=>{var f;return P.jsx(ant,{animation:l,...c,onAnimationFinish:s,onAnimationSave:o},(l==null?void 0:l.id)||((f=c.resource)==null?void 0:f.uid)||d)})}function rnt({text:u,error:t,handleClick:e}){return P.jsxs("div",{"data-testid":`${t?" pill--error":"pill--ok"}`,className:`email-pill ${t?" email-pill--error":""}`,children:[P.jsx("div",{children:u}),P.jsx("div",{className:"email-pill__delete",children:P.jsx("button",{type:"button",onClick:e,className:"icon-close unset-button","aria-label":"icon click"})})]})}function ont({handleContinue:u,handleCancel:t,translate:e,text:n}){const[i,s]=G.useState([]),[o,l]=G.useState(0),[c,d]=G.useState(0),f=G.useRef(null),m=(y,x,T)=>{y.stopPropagation(),s(i.filter(A=>A!==i[T])),x.error&&l(o-1),x.isRepeat&&d(c-1)},_=()=>{f.current&&f.current.focus()},v=()=>{[" ",",",";","."].includes(f.current.value)&&(f.current.value="")},S=y=>{const x=f.current.value,T=["Space","Comma","Period","Enter"],A=["Space","Comma","Enter","Tab"];x===""&&(T.includes(y.code)||y.keyCode==="186"||y.key==="Enter"||y.key===" ")?y.preventDefault():f.current.value.length>1&&(A.includes(y.code)||y.type==="blur")&&(y.preventDefault(),/[A-Za-z0-9._%+-]{3,}@[A-Za-z0-9_+-]{2,}([.]{1}[a-zA-Z]{2,}|[.]{1}[a-zA-Z]{2,}[.]{1}[a-zA-Z]{2,})/.test(x)?i.find(C=>C.text===x)?(d(c+1),s([...i,{text:x,error:!0,isRepeat:!0}])):s([...i,{text:x}]):(s([...i,{text:x,error:!0}]),l(o+1)),f.current.value="")};return P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:"referrals-piece__body",children:[P.jsx("div",{className:"referrals-piece__title",children:e("puzzles.referrals.inviter.titleStep1")}),P.jsx("div",{className:"referrals-piece__subtitle",children:n}),P.jsxs("div",{className:"referrals-piece__form",children:[P.jsxs("div",{className:"referrals-piece__instructions",children:[P.jsx("div",{dir:"auto",children:e("puzzles.referrals.inviter.instructions")}),P.jsx("div",{dir:"auto",children:e("puzzles.referrals.inviter.limit")})]}),P.jsx("div",{className:"referrals-piece__faketextarea",onKeyUp:()=>{},role:"button",tabIndex:"-1",onClick:_,"aria-labelledby":"list of emails",children:P.jsxs("div",{className:"referrals-piece__scrollarea",id:"list of emails",children:[i&&i.map((y,x)=>P.jsx(rnt,{text:y.text,error:y.error,handleClick:T=>m(T,y,x),emailPillIndex:x},`${i.indexOf(y)}`)),i.length<=9?P.jsxs(P.Fragment,{children:[P.jsx("input",{id:"email",ref:f,className:"referrals-piece__inputemail",onChange:v,onKeyDown:S,onBlur:S,type:"email",autoComplete:"off"}),P.jsx("label",{className:"referrals-piece__emaillabel",htmlFor:"email",children:P.jsx("span",{children:e("puzzles.referrals.inviter.skipButton")})})]}):null]})}),P.jsxs("div",{dir:je()?"rtl":"auto",className:"referrals-piece__footervalidation",children:[P.jsxs("div",{className:"referrals-piece__errormessage",children:[P.jsx("div",{children:c>0?e("puzzles.referrals.inviter.errorEmailRepeat"):null}),P.jsx("div",{children:o>0?e("puzzles.referrals.inviter.errorMessage"):null})]}),P.jsxs("div",{className:"referrals-piece__counter","data-testid":"pillcounter",children:[i.length,"/10"]})]})]})]}),P.jsxs("div",{className:"referrals-piece__buttons",children:[P.jsx("button",{"data-testid":"cancelButton",className:"gat--btn gat--btn__secondary",type:"button",onClick:t,children:e("puzzles.referrals.inviter.skipButton")}),P.jsx("button",{className:`gat--btn gat--btn__primary ${c>0||o>0||i.length===0?" disabled":""}`,type:"button",disabled:o>0||i.length===0,onClick:()=>u(i),children:e("puzzles.referrals.inviter.inviteButton")})]})]})}function lnt({handleFinish:u,translate:t,valid:e,invalid:n}){const[i,s]=G.useState(!1),o=()=>{s(!i)},l=e.current===1?"invitationSend":"invitationsSend",c=n===1?"invitationNotSend":"invitationsNotSend";return P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:"referrals-piece__body",dir:"auto",children:[P.jsx("div",{className:"referrals-piece__title",children:t("puzzles.referrals.inviter.titleStep2")}),P.jsxs("ul",{className:"referrals-piece__feedback",children:[e.current!==0&&P.jsxs("li",{children:[P.jsx("div",{className:"referrals-piece__feedbackicon icon-check-circle-black color--success"}),P.jsxs("div",{children:[P.jsx("strong",{children:e.current})," ",t(`puzzles.referrals.inviter.${l}`)]})]}),!!n.current&&P.jsxs("li",{children:[P.jsx("div",{className:"referrals-piece__feedbackicon icon-error-circle-black color--error"}),P.jsxs("div",{children:[P.jsx("strong",{children:n.current})," ",t(`puzzles.referrals.inviter.${c}`)]}),P.jsx("button",{className:"un-button",type:"button",onClick:o,children:t("puzzles.referrals.inviter.whyFail")})]})]}),i?P.jsxs("ul",{className:"referrals-piece__failsreasons",children:[P.jsx("li",{children:t("puzzles.referrals.inviter.failReasons1")}),P.jsx("li",{children:t("puzzles.referrals.inviter.failReasons2")}),P.jsx("li",{children:t("puzzles.referrals.inviter.failReasons3")})]}):null]}),P.jsx("div",{className:"referrals-piece__buttons",children:P.jsx("button",{className:"gat--btn gat--btn__primary",type:"button",onClick:u,children:t("puzzles.referrals.inviter.continueButton")})})]})}function unt({emitEvent:u,getEvent:t,text:e,rewards:n,referrals:i}){const s=v=>t({type:"translate",payload:v}),[o,l]=G.useState("step1"),c=G.useRef(0),d=G.useRef(0),f=async v=>{const S=v.map(x=>x.text),y=await u({type:"sendReferrals",payload:S});c.current=y&&y.data?y.data.valid.length:0,d.current=S.length-c.current,l("step2")};if(!i)return u({type:"success"}),null;const m=()=>{u({type:"success"})},_=()=>{if(c.current){const v=n.map(S=>(S.points*=c.current,S));u({type:"addPoints",complex:!0,finish:!0,payload:v})}else u({type:"success"})};return P.jsx("div",{className:"referrals-piece",children:P.jsxs("div",{className:"referrals-piece__center",children:[o==="step1"&&P.jsx(ont,{translate:s,handleContinue:f,handleCancel:m,text:e}),o==="step2"&&P.jsx(lnt,{translate:s,handleFinish:_,valid:c,invalid:d})]})})}function cnt({onPass:u}){return G.useEffect(()=>{const t=setTimeout(u,0);return()=>clearTimeout(t)},[u]),null}function dnt({itemResolver:u,consume:t,hasComplexNotResolvers:e,hasComplexResolvers:n,resolverObjects:i,feedback:s,emitEvent:o,getEvent:l,soundActions:c,keyboardControl:d,noEvaluation:f}){const[m]=c,[_,v]=G.useState(!1),[S,y]=G.useState(!1),[x,T]=G.useState(!1),A=M=>l({type:"translate",payload:M}),E=G.useCallback(()=>{o({type:"addPoints",complex:!0,finish:_.success,onFinish:()=>{_.success?o({type:"success"}):o({type:"closeScreen"})},payload:_.rewards})},[o,_]),C=G.useCallback(()=>{if(i.find(O=>O===u.uid)){let O;n?(O=s.resolvers.rights.find(B=>B.uidObject===u.uid),O||(O=s.resolvers.rights[0])):O=s.resolvers.rights[0],t&&o({type:"consumeItem",payload:{uid:u.uid,targetId:u.uid,name:u.name}}),v({...O,success:!0})}else{let O;e?(O=s.notResolvers.wrongs.find(B=>B.uidObject===u.uid),O||(O=s.notResolvers.wrongs[0])):O=s.notResolvers.wrongs[0],v({...O,success:!1})}},[i,u,n,t,s,o,e]),R=G.useCallback(()=>{if(i.find(O=>O===(u==null?void 0:u.uid))){let O;n?O=[...s.resolvers.rights.find(I=>I.uidObject===(u==null?void 0:u.uid)).rewards.filter(I=>I.type==="var")]:O=[...s.resolvers.rights[0].rewards.filter(L=>L.type==="var")],t&&o({type:"consumeItem",payload:{uid:u==null?void 0:u.uid,targetId:u==null?void 0:u.uid,name:u==null?void 0:u.name}}),T({varsPoints:[...O],success:!0})}else{let O;e?O=[...s.notResolvers.wrongs.find(I=>I.uidObject===(u==null?void 0:u.uid)).rewards.filter(I=>I.type==="var")]:O=[...s.notResolvers.wrongs[0].rewards.filter(L=>L.type==="var")],T({varsPoints:[...O],success:!1})}},[t,o,s.notResolvers.wrongs,s.resolvers.rights,e,n,u==null?void 0:u.name,u==null?void 0:u.uid,i]),N=G.useCallback(()=>{o({type:"addPoints",complex:!0,finish:x==null?void 0:x.success,onFinish:()=>{x!=null&&x.success?o({type:"success"}):o({type:"closeScreen"})},payload:x!=null&&x.varsPoints?x==null?void 0:x.varsPoints:[]}),y(!1)},[o,x==null?void 0:x.success,x==null?void 0:x.varsPoints]);return G.useEffect(()=>{u?f?R():C():o({type:"closeScreen"})},[C,R,o,u,f]),G.useEffect(()=>{x&&(x!=null&&x.success?y(!0):o({type:"closeScreen"}))},[o,x]),S?P.jsx(cnt,{onPass:N}):_?P.jsx(fd,{text:_.desc,success:_.success,playSound:m,hasTimeout:!_.desc,delay:2e3,translate:A,keyboardControl:d,functionOnClose:E}):null}function Rz({item:u,viewMode:t}){var e,n;return P.jsxs(P.Fragment,{children:[t==="text"&&P.jsx("div",{className:"match-item-text",children:Oi(u==null?void 0:u.content)}),t==="card"&&P.jsx("div",{className:"match-item-image",children:P.jsxs("figure",{children:[((e=u==null?void 0:u.img)==null?void 0:e.url)&&P.jsx("img",{src:(n=u==null?void 0:u.img)==null?void 0:n.url,alt:u==null?void 0:u.imgName}),(u==null?void 0:u.content)&&P.jsx("figcaption",{children:Oi(u==null?void 0:u.content)})]})})]})}function QU({translate:u,onClose:t,buttonLabel:e}){return P.jsx("div",{className:"timer-dialog",children:P.jsxs("div",{className:"timer-dialog__container",children:[P.jsx("div",{className:"timer-dialog__title",children:u("storylines.misc.ready")}),P.jsx("button",{type:"button",className:"gat--btn gat--btn__primary",onClick:t,children:P.jsx("span",{children:u(`${e}`)})})]})})}function WU({initialSeconds:u=10,isPaused:t,shouldStart:e,shouldReset:n,onTimeOver:i}){const[s,o]=G.useState(u),[l,c]=G.useState(!1),d=G.useRef();G.useEffect(()=>{n&&(o(u),c(!1))},[n,u]),G.useEffect(()=>{t&&c(!1)},[t]),G.useEffect(()=>{e&&c(!0)},[e]),G.useEffect(()=>(l&&s>0?d.current=setInterval(()=>{o(m=>m-1),s===1&&i()},1e3):s===0&&(clearInterval(d.current),c(!1)),()=>clearInterval(d.current)),[l,i,s]);const f=m=>{const _=Math.floor(m/60),v=m%60,S=String(_).padStart(2,"0"),y=String(v).padStart(2,"0");return`${S}:${y}`};return P.jsx("div",{className:`count-down ${s<10&&"count-down--finalseconds"}`,children:P.jsx("div",{children:f(s)})})}function hnt({emitEvent:u,soundActions:t=[()=>{},()=>{}],getEvent:e,info:n,specificFeedbacks:i,setResolveAction:s,nodeId:o,viewMode:l,title:c,sources:d,destinations:f,correctPairings:m,timer:_=0,keyboardControl:v,backgroundImage:S}){const y=zt=>e({type:"translate",payload:zt}),x=`match-puzzle_${o}`,[T,A]=G.useState([]),[E,C]=G.useState(null),[R,N]=G.useState(!1),[M,O]=G.useState(!1),[B,L]=G.useState(""),[I,F]=G.useState(!1),[H,W]=G.useState([]),[Z]=t;ay({soundActions:t});const X=zt=>{Z("click-ui");const te=Ke=>Ke==null?void 0:Ke.startsWith("source-item"),pe=Ke=>Ke==null?void 0:Ke.startsWith("destination-item");if(zt.id===E){C(null);return}const Lt=te(zt.id),Yt=te(E),ee=pe(zt.id),Be=pe(E);if(Lt&&Be||ee&&Yt){Q(zt);return}C(zt.id)},$=zt=>{let te;return zt.startsWith("destination-item")?te={[E]:zt}:te={[zt]:E},m.some(pe=>{const Lt=JSON.stringify(pe),Yt=JSON.stringify(te);return Lt===Yt})},nt=(zt,te)=>{const pe=new Map(zt.map(Lt=>[Lt.id,{...Lt}]));return te.forEach(Lt=>{pe.has(Lt.id)?pe.get(Lt.id).points+=Lt.points:pe.set(Lt.id,{...Lt})}),Array.from(pe.values())},Q=zt=>{var te,pe;if(Z("click-ui"),$(zt.id)){const Lt=zt.id.startsWith("source-item")?zt.id:E,Yt=zt.id.startsWith("destination-item")?zt.id:E,ee=[...T,{[Lt]:Yt}];if(A(ee),i.specificCorrectFeedbacks){const Be=i==null?void 0:i.correctFeedbacks.find(ie=>ie.id===`${Lt}-${Yt}`),Ke=nt(H,Be.rewards);W([...Ke]),tt(ee)&&(we(),F(!0)),Be.desc&&(L(Be==null?void 0:Be.desc),O(!0),N(!0),we());const Gt=tt(ee);!Be.desc&&Gt&&rt(Ke)}else if(tt(ee)&&(we(),F(!0)),tt(ee)){O(!0),n.solution.right.desc&&(we(),L(n.solution.right.desc)),N(!0),F(!0);const Ke=nt(H,n.solution.right.rewards);W([...Ke]),n.solution.right.desc===""&&setTimeout(()=>{rt(Ke)},3e3)}C(null)}else if(document.querySelector(`#${zt.id}`).classList.add("match-button--error"),document.querySelector(`#${E}`).classList.add("match-button--error"),setTimeout(()=>{document.querySelector(`#${zt.id}`).classList.remove("match-button--error"),document.querySelector(`#${E}`).classList.remove("match-button--error"),C(null)},1e3),i.specificWrongFeedbacks){const Lt=zt.id.startsWith("destination-item")?zt.id:E,Yt=i==null?void 0:i.wrongFeedbacks.find(Be=>Be.id===Lt),ee=nt(H,Yt.rewards);W([...ee]),Yt!=null&&Yt.desc&&(L(Yt.desc),O(!1),N(!0),we())}else{const Lt=nt(H,n.solution.wrong.rewards);W([...Lt]),(pe=(te=n.solution)==null?void 0:te.wrong)!=null&&pe.desc&&(L(n.solution.wrong.desc),N(!0),we())}},tt=zt=>{if(m.length!==zt.length)return!1;const te=new Set(m.map(Lt=>JSON.stringify(Lt))),pe=new Set(zt.map(Lt=>JSON.stringify(Lt)));for(const Lt of pe)if(!te.has(Lt))return!1;return!0},rt=zt=>{Z("score");const te=zt?[...zt]:[...H];u({type:"addPoints",complex:!0,finish:!0,payload:te}),u({type:"passPuzzle"})},ut=()=>{N(!1),O(!1),L(""),St&&(Se(),it(!0)),!St&&!I&&ze(),I&&rt()},st=G.useMemo(()=>Object.assign({},...T),[T]),ot=(zt,te)=>st[zt]===te;G.useEffect(()=>{s(()=>{Z("score"),we(),O(!0),L(n.solution.right.desc);const zt=[...H,...n.resolve.rewards],te=[...m];A(te),setTimeout(()=>{O(!1),N(!1),u({type:"hidePuzzleButtons",payload:!1}),u({type:"puzzleAction",action:"resolve",payload:{element:x,rewards:zt,finish:!0}})},5e3)})},[H,m,u,n.resolve.rewards,n.solution.right.desc,Z,x,s]);const dt=(zt,te)=>T.findIndex(pe=>{const Lt=Object.keys(pe)[0],Yt=Object.values(pe)[0];return Lt===zt&&Yt===te}),[pt,it]=G.useState(!0),[lt,ht]=G.useState("storylines.misc.start"),[St,_t]=G.useState(!1),bt=()=>{ht("storylines.misc.retry"),it(!1),_t(!1),ze()},[yt,Tt]=G.useState(!1),[wt,It]=G.useState(!1),[Ft,$t]=G.useState(!1),Jt=()=>{let zt=nt(H,n.timerFeedback.rewards);if(i.specificCorrectFeedbacks){const te=new Map(zt.map(pe=>[pe.id,{...pe}]));T.forEach(pe=>{const Lt=Object.keys(pe)[0],Yt=pe[Lt],ee=i.correctFeedbacks.find(Be=>Be.id===`${Lt}-${Yt}`);ee!=null&&ee.rewards&&ee.rewards.forEach(Be=>{if(te.has(Be.id)){const Ke=te.get(Be.id);Ke.points-=Be.points,te.set(Be.id,Ke)}})}),zt=Array.from(te.values())}W(zt),A([]),_t(!0),L(n.timerFeedback.desc),N(!0)},we=()=>{Tt(!0),It(!1),$t(!1)},ze=()=>{Tt(!1),It(!0),$t(!1)},Se=()=>{Tt(!1),It(!1),$t(!0)},Te=G.useCallback(()=>{const zt=document.querySelector('button[id^="source-item"]'),te=document.querySelector('button[id^="destination-item"]'),pe=zt.getBoundingClientRect().right,Yt=te.getBoundingClientRect().left+6-pe;d.items.forEach((ee,Be)=>{if(ee.matchDestinationId!==void 0&&ee.matchDestinationId!==null){const Ke=document.querySelector(`#${ee.id}`),Gt=document.querySelector(`#${ee.matchDestinationId}`),ie=Ke.getBoundingClientRect().top,ue=Gt.getBoundingClientRect().top,wn=ue>ie,re=Math.abs(ue-ie),me=Math.sqrt(Yt*Yt+re*re),On=Ke.querySelector(".match-line__hipotenuse");On.style.setProperty("width",`${me}px`);const Nn=Math.atan(re/Yt),la=wn?Nn*(180/Math.PI):-Nn*(180/Math.PI);On.style.setProperty("transform",`rotate(${la}deg)`)}})},[d.items]);G.useEffect(()=>(Te(),window.addEventListener("resize",Te),()=>{window.removeEventListener("resize",Te)}),[Te]);const pn=G.useMemo(()=>{let zt="";return zt="match ",S!=null&&S.url&&(zt+="match--with-custom-bg"),zt},[S==null?void 0:S.url]),Mn={backgroundImage:S!=null&&S.url?`url('${S.url}')`:""};return P.jsxs(P.Fragment,{children:[P.jsxs("div",{className:pn,style:Mn,children:[(c||_>0)&&P.jsxs("header",{className:"match__header",children:[P.jsx("div",{}),c&&P.jsx("div",{className:"match__title","data-testid":"match__title",children:Oi(c)}),_>0&&P.jsx(WU,{initialSeconds:_,isPaused:yt,shouldStart:wt,shouldReset:Ft,onTimeOver:Jt})]}),P.jsx("div",{className:"match__columns",children:P.jsxs("div",{className:"match__columns-scroll",children:[P.jsxs("div",{className:"match__column-wrap",children:[d.title&&P.jsx("div",{className:"match__subtitle",children:Oi(d.title)}),P.jsx("div",{className:"match__column",children:d.items.map(zt=>P.jsxs("button",{id:zt.id,"data-testid":zt.id,className:["unset-button match-button",E===zt.id&&"match-button--marked",ot(zt.id,zt.matchDestinationId)&&"match-button--success",dt(zt.id,zt.matchDestinationId)+1&&"match-button--matched"].filter(Boolean).join(" "),style:{"--matched-color":`var(--matched-color-${dt(zt.id,zt.matchDestinationId)+1})`},disabled:ot(zt.id,zt.matchDestinationId),type:"button",onClick:()=>X(zt),children:[P.jsx(Rz,{item:zt,viewMode:l}),P.jsx("div",{className:"icon-check-circle-black color--success"}),P.jsx("div",{className:"icon-error-circle-black color--error"}),P.jsx("div",{className:"match-line__hipotenuse"})]},zt.id))})]}),P.jsxs("div",{className:"match__column-wrap",children:[f.title&&P.jsx("div",{className:"match__subtitle",children:Oi(f.title)}),P.jsx("div",{className:"match__column",children:f.items.map(zt=>P.jsxs("button",{id:zt.id,"data-testid":zt.id,className:["unset-button match-button",E===zt.id&&"match-button--marked",ot(zt.matchSourceId,zt.id)&&"match-button--success",dt(zt.matchSourceId,zt.id)+1&&"match-button--matched"].filter(Boolean).join(" "),style:{"--matched-color":`var(--matched-color-${dt(zt.matchSourceId,zt.id)+1})`},disabled:ot(zt.matchSourceId,zt.id),type:"button",onClick:()=>X(zt),children:[P.jsx(Rz,{item:zt,viewMode:l}),P.jsx("div",{className:"icon-check-circle-black color--success"}),P.jsx("div",{className:"icon-error-circle-black color--error"})]},zt.id))})]})]})})]}),_>0&&pt&&P.jsx(QU,{buttonLabel:lt,translate:y,onClose:bt}),R&&P.jsx(fd,{success:M,text:B,hasTimeout:!B,translate:y,timeExpired:St,functionOnClose:ut,keyboardControl:v})]})}function fnt({emitEvent:u,soundActions:t=[()=>{},()=>{}],getEvent:e,info:n,specificFeedbacks:i,setResolveAction:s,nodeId:o,destinationAreas:l,draggableItems:c,noDraggableItems:d,background:f,showDestinationAreas:m,timer:_,viewMode:v,keyboardControl:S}){var Nn,la;const y=Bt=>e({type:"translate",payload:Bt}),x=`sort-puzzle_${o}`,[T,A]=G.useState(!1),[E,C]=G.useState(!1),[R,N]=G.useState(""),[M,O]=G.useState(!1),[B,L]=G.useState([]),[I]=t;ay({soundActions:t});const F=G.useRef({}),H=G.useRef({}),[W,Z]=G.useState(!0),[X,$]=G.useState("storylines.misc.start"),[nt,Q]=G.useState(!1),[tt,rt]=G.useState(!1),[ut,st]=G.useState(!1),[ot,dt]=G.useState(!1),pt=()=>{const Bt=i.specificCorrectFeedbacks?[]:B,Qt=we(Bt,n.timerFeedback.rewards);v==="matchMode"&&Tt.current.forEach(de=>{de.acceptedItems=[]}),L(Qt),Q(!0),Te(n.timerFeedback.desc,!1)},it=G.useCallback(()=>{rt(!0),st(!1),dt(!1)},[]),lt=()=>{rt(!1),st(!0),dt(!1)},ht=()=>{rt(!1),st(!1),dt(!0)},St=()=>{$("storylines.misc.retry"),Z(!1),Q(!1),lt()},_t=(Bt,Qt)=>{const de=Bn=>Bn.current.flatMap(qt=>{const se=qt.acceptedItems;return se||[]}).sort(),ye=de(Bt),Xe=de(Qt);return ye.length!==Xe.length?!1:ye.join(",")===Xe.join(",")},bt=G.useRef(0),yt=G.useRef([]),Tt=G.useRef([]);G.useEffect(()=>{v==="matchMode"&&!bt.current&&l.forEach(Bt=>{bt.current+=1,yt.current.push({id:Bt.id,acceptedItems:Bt.acceptedItems}),Tt.current.push({id:Bt.id,acceptedItems:[]})})},[l,v]);const wt=G.useRef(null),It=G.useRef(null),Ft=G.useCallback(()=>{const Bt=wt.current.clientHeight,Qt=It.current.clientHeight;It.current.style.transform=`scale(${Bt/Qt})`},[]);G.useEffect(()=>(Ft(),window.addEventListener("resize",Ft),()=>{window.removeEventListener("resize",Ft)}),[Ft]);const $t=G.useRef([]),Jt=G.useCallback(()=>{$t.current=Object.values(H.current).filter(Boolean).map(Bt=>{const Qt=Bt.getBoundingClientRect();return{id:Bt.id,top:Qt.top,left:Qt.left,right:Qt.right,bottom:Qt.bottom}})},[]);G.useEffect(()=>(Jt(),window.addEventListener("resize",Jt),()=>{window.removeEventListener("resize",Jt)}),[Jt]);const we=(Bt,Qt)=>{const de=new Map(Bt.map(ye=>[ye.id,{...ye}]));return Qt.forEach(ye=>{de.has(ye.id)?de.get(ye.id).points+=ye.points:de.set(ye.id,{...ye})}),Array.from(de.values())},ze=G.useCallback(Bt=>{I("score");const Qt=Bt?[...Bt]:[...B];u({type:"addPoints",complex:!0,finish:!0,payload:Qt}),u({type:"passPuzzle"})},[B,u,I]),Se=G.useCallback(()=>{N(""),C(!1),A(!1),u({type:"hidePuzzleButtons",payload:!1})},[u]),Te=G.useCallback((Bt,Qt=!1)=>{Bt&&N(Bt),Qt&&C(!0),A(!0),u({type:"hidePuzzleButtons",payload:!0}),it()},[u,it]),pn=G.useCallback(()=>{n.solution.right.desc&&(it(),N(n.solution.right.desc));const Bt=we(B,n.solution.right.rewards);L([...Bt]),Te(null,!0),n.solution.right.desc===""&&setTimeout(()=>{Se(),ze(Bt)},3e3)},[B,n.solution.right.desc,n.solution.right.rewards,it,Se,Te,ze]),Mn=G.useCallback((Bt,Qt)=>{const de=i==null?void 0:i.correctFeedbacks.find(Xe=>Xe.id===Bt.id),ye=we(B,de.rewards);L([...ye]),de.desc&&Te(de.desc,!0),!de.desc&&Qt&&(Te(null,!0),setTimeout(()=>{Se(),ze(ye)},3e3))},[B,Se,Te,ze,i==null?void 0:i.correctFeedbacks]),zt=G.useCallback(()=>{var Qt;const Bt=we(B,n.solution.wrong.rewards);L([...Bt]),n.solution.wrong.desc&&Te((Qt=n.solution.wrong)==null?void 0:Qt.desc,!1)},[B,n.solution.wrong.desc,n.solution.wrong.rewards,Te]),te=(Bt,Qt)=>{setTimeout(()=>{Qt.classList.remove("sort-draggable-item--error"),Qt.classList.add("sort-draggable-item--resetting"),Qt.style.setProperty("transform",Bt.transform),setTimeout(()=>Qt.classList.remove("sort-draggable-item--resetting"),1e3)},1e3)},pe=Bt=>{if(Bt==="none")return{x:0,y:0};const de=Bt.replace("matrix(","").replace("matrix3d(","").replace(")","").split(", ");return de.length===6?{x:parseFloat(de[4]),y:parseFloat(de[5])}:de.length===16?{x:parseFloat(de[12]),y:parseFloat(de[13])}:{x:0,y:0}},Lt=G.useRef(),Yt=G.useRef(),ee=G.useRef(),Be=G.useRef(),Ke=(Bt,Qt)=>{Lt.current=Qt;const de=Bt.currentTarget;de.classList.add("sort-draggable-item--dragging");const ye=Bt.touches?Bt.touches[0].clientX:Bt.clientX,Xe=Bt.touches?Bt.touches[0].clientY:Bt.clientY;Yt.current=ye,ee.current=Xe;const Bn=window.getComputedStyle(de).getPropertyValue("transform");Be.current=pe(Bn)},Gt=G.useCallback((Bt,Qt)=>{if(Lt.current&&Lt.current===Qt){const de=wt.current.clientHeight/It.current.clientHeight,ye=F.current[Qt],Xe=ye.getBoundingClientRect(),jt=ye.parentElement.getBoundingClientRect(),qt=(Bt.touches?Bt.touches[0].clientX:Bt.clientX)-Yt.current,se=(Bt.touches?Bt.touches[0].clientY:Bt.clientY)-ee.current,Oe=(jt.width-Xe.width)/de,fe=(jt.height-Xe.height)/de,Ce=Math.min(Math.max(Be.current.x+qt/de,0),Oe),Gn=Math.min(Math.max(Be.current.y+se/de,0),fe);ye.style.transform=`translate(${Ce}px, ${Gn}px)`}},[]),ie=(Bt,Qt)=>{const ye=F.current[Bt].getBoundingClientRect(),Xe=$t.current.find(jt=>jt.id===Qt&&!(ye.left>=jt.right||ye.right<=jt.left||ye.top>=jt.bottom||ye.bottom<=jt.top)),Bn=$t.current.find(jt=>jt.id!==Qt&&!(ye.left>=jt.right||ye.right<=jt.left||ye.top>=jt.bottom||ye.bottom<=jt.top));return Xe?"correctArea":Bn?"incorrectArea":"neutral"},ue=G.useCallback(Bt=>{if(Lt.current&&Lt.current===Bt){I("click-ui");const Qt=F.current[Bt],de=c.find(ye=>Bt===ye.id);if(Yt.current=null,ee.current=null,Qt.classList.remove("sort-draggable-item--dragging"),Lt.current=null,v!=="resolveMode"){const ye=ie(Bt,de.destination.id);if(ye==="correctArea"){if(v==="anyItemResolver"&&(I("score"),it(),Qt.classList.add("sort-draggable-item--success"),i.specificCorrectFeedbacks?(O(!0),Mn(de,!0)):pn()),v==="matchMode")if(I("score"),Qt.classList.add("sort-draggable-item--success"),Tt.current.find(Bn=>Bn.id===de.destination.id).acceptedItems.push(de.id),i.specificCorrectFeedbacks){const Bn=_t(Tt,yt);Bn&&O(!0),Mn(de,Bn)}else _t(Tt,yt)&&pn()}else if(ye==="incorrectArea"&&(v==="anyItemResolver"||v==="matchMode")){if(I("fail"),Qt.classList.add("sort-draggable-item--error"),i.specificWrongFeedbacks){const Xe=i==null?void 0:i.wrongFeedbacks.find(jt=>jt.id===de.id),Bn=we(B,Xe.rewards);L([...Bn]),Xe.desc&&Te(Xe.desc,!1)}else zt();te(de,Qt)}}}},[B,c,pn,zt,Mn,it,I,Te,i.specificCorrectFeedbacks,i.specificWrongFeedbacks,i==null?void 0:i.wrongFeedbacks,v]),wn=()=>{let Bt=!1;it(),c.forEach(Qt=>{const de=F.current[Qt.id];if(Qt.destination.id)ie(Qt.id,Qt.destination.id)!=="correctArea"?(Bt=!0,de.classList.add("sort-draggable-item--error"),te(Qt,de)):de.classList.add("sort-draggable-item--success");else{const ye=de.getBoundingClientRect();$t.current.find(Bn=>!(ye.left>=Bn.right||ye.right<=Bn.left||ye.top>=Bn.bottom||ye.bottom<=Bn.top))&&(Bt=!0,de.classList.add("sort-draggable-item--error"),te(Qt,de))}}),Bt?(I("fail"),zt()):(I("score"),O(!0),pn())},re=()=>{c.forEach(Bt=>{const Qt=F.current[Bt.id];Qt.classList.remove("sort-draggable-item--error"),Qt.classList.remove("sort-draggable-item--success"),Qt.classList.add("sort-draggable-item--resetting"),Qt.style.setProperty("transform",Bt.transform),setTimeout(()=>Qt.classList.remove("sort-draggable-item--resetting"),1e3)})},me=()=>{Se(),nt&&(ht(),re(),Z(!0)),!nt&&!M&&lt(),M&&ze()};G.useEffect(()=>{s(()=>{I("score"),it(),C(!0),N(n.solution.right.desc);const Bt=[...B,...n.resolve.rewards];Se(),u({type:"puzzleAction",action:"resolve",payload:{element:x,rewards:Bt,finish:!0}})})},[B,u,n.resolve.rewards,n.solution.right.desc,it,I,x,Se,s]),G.useEffect(()=>{if(!wt.current||!It.current)return;const Bt=de=>Gt(de,Lt.current),Qt=()=>ue(Lt.current);return document.addEventListener("mousemove",Bt),document.addEventListener("mouseup",Qt),document.addEventListener("touchmove",Bt,{passive:!1}),document.addEventListener("touchend",Qt),()=>{document.removeEventListener("mousemove",Bt),document.removeEventListener("mouseup",Qt),document.removeEventListener("touchmove",Bt),document.removeEventListener("touchend",Qt)}},[ue,Gt]);const On={backgroundImage:(Nn=f==null?void 0:f.img)!=null&&Nn.url?`url('${(la=f==null?void 0:f.img)==null?void 0:la.url}')`:""};return P.jsxs("div",{ref:wt,className:"sort-wrapper",children:[P.jsxs("div",{ref:It,className:"sort-puzzle",style:On,children:[d.map(Bt=>P.jsxs("div",{id:`${Bt.id}`,className:"sort-no-draggable-item",style:{"--height":`${Bt.heightInPercentage}%`,"--width":`${Bt.widthInPercentage}%`,"--transform":`${Bt.transform}`,"--backgroundColor":`${Bt.backgroundColor}`,borderRadius:`${Bt.borderRadius}`},children:[Bt.imgId&&P.jsx("img",{src:Bt.img.url,alt:Bt.img.name}),Bt.text&&Oi(Bt.text)]},Bt.id)),l.map(Bt=>P.jsx("div",{ref:Qt=>{H.current[Bt.id]=Qt},id:Bt.id,className:`sort-destination-area ${m?"sort-destination-area--revelable":""}`,style:{"--height":`${Bt.heightInPercentage}%`,"--width":`${Bt.widthInPercentage}%`,"--transform":`${Bt.transform}`}},Bt.id)),c.map(Bt=>P.jsxs("div",{ref:Qt=>{F.current[Bt.id]=Qt},id:`${Bt.id}`,className:"sort-draggable-item",onMouseDown:Qt=>Ke(Qt,Bt.id),onTouchStart:Qt=>Ke(Qt,Bt.id),style:{"--height":`${Bt.heightInPercentage}%`,"--width":`${Bt.widthInPercentage}%`,"--transform":`${Bt.transform}`,"--backgroundColor":`${Bt.backgroundColor}`,borderRadius:`${Bt.borderRadius}`},children:[Bt.imgId&&P.jsx("img",{src:Bt.img.url,alt:Bt.img.name}),Bt.text&&Oi(Bt.text)]},Bt.id))]}),v==="resolveMode"&&P.jsx("button",{type:"button",onClick:()=>{wn()},className:"gat--btn gat--btn__primary sort-resolve-button",children:P.jsx("span",{children:y("storylines.misc.check")})}),_>0&&W&&P.jsx(QU,{buttonLabel:X,translate:y,onClose:St}),T&&P.jsx(fd,{success:E,text:R,hasTimeout:!R,translate:y,timeExpired:nt,functionOnClose:me,keyboardControl:S}),_>0&&P.jsx("div",{className:"sort-timer",children:P.jsx(WU,{initialSeconds:_,isPaused:tt,shouldStart:ut,shouldReset:ot,onTimeOver:pt})})]})}exports.AnimationComponent=snt;exports.AutoEvaluationComponent=Mtt;exports.CardsSelectorPuzzleComponent=$$;exports.CartelComponent=dX;exports.ChainedImageClickPuzzleComponent=x$;exports.ChangeCamera=g9;exports.ComicComponent=uX;exports.ConversationalComponent=sX;exports.ConversationalProComponent=aX;exports.CrackerPuzzleComponent=h$;exports.DecisionComponent=M9;exports.DialogComponent=ent;exports.DragItemPuzzleComponent=mtt;exports.DragToSceneComponent=dnt;exports.FrameImageClickComponent=C$;exports.HackerPuzzleComponent=gX;exports.HangedPuzzleComponent=b$;exports.ImageClickPuzzleComponent=e$;exports.ImageComponent=$K;exports.InventoryItem=DH;exports.KeyboardPuzzleComponent=_X;exports.LecturesComponent=UK;exports.LoginPuzzleComponent=yX;exports.MatchPuzzleComponent=hnt;exports.NoticeComponent=EH;exports.PatternComponent=Ott;exports.PdfComponent=gY;exports.PdfVisor=y5;exports.ReferralComponent=unt;exports.SortPuzzleComponent=fnt;exports.SurveyComponent=Rtt;exports.TerminalPuzzleComponent=ptt;exports.TestComponent=Stt;exports.TextClickPuzzleComponent=Ntt;exports.UrlComponent=vY;exports.VideoComponent=NY;exports.VideoVisor=_5;exports.WebBuilderPuzzleComponent=Y$;exports.WriterPuzzleComponent=ltt;
335
335
  //# sourceMappingURL=arcade-components.cjs.map