@daiyu-5577/buildsystem 1.0.0

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.
Files changed (50) hide show
  1. package/README.md +485 -0
  2. package/dist/artifact.js +59 -0
  3. package/dist/artifact.js.map +1 -0
  4. package/dist/cli.js +25 -0
  5. package/dist/cli.js.map +1 -0
  6. package/dist/commands/build.js +39 -0
  7. package/dist/commands/build.js.map +1 -0
  8. package/dist/commands/server.js +28 -0
  9. package/dist/commands/server.js.map +1 -0
  10. package/dist/config.js +42 -0
  11. package/dist/config.js.map +1 -0
  12. package/dist/cron.js +163 -0
  13. package/dist/cron.js.map +1 -0
  14. package/dist/crypto.js +40 -0
  15. package/dist/crypto.js.map +1 -0
  16. package/dist/custError.js +10 -0
  17. package/dist/custError.js.map +1 -0
  18. package/dist/database/index.js +64 -0
  19. package/dist/database/index.js.map +1 -0
  20. package/dist/database/types.js +8 -0
  21. package/dist/database/types.js.map +1 -0
  22. package/dist/fsHelpers.js +93 -0
  23. package/dist/fsHelpers.js.map +1 -0
  24. package/dist/git.js +67 -0
  25. package/dist/git.js.map +1 -0
  26. package/dist/logger.js +80 -0
  27. package/dist/logger.js.map +1 -0
  28. package/dist/notifier.js +66 -0
  29. package/dist/notifier.js.map +1 -0
  30. package/dist/pm.js +21 -0
  31. package/dist/pm.js.map +1 -0
  32. package/dist/queue.js +273 -0
  33. package/dist/queue.js.map +1 -0
  34. package/dist/server/index.js +189 -0
  35. package/dist/server/index.js.map +1 -0
  36. package/dist/server/routes.js +395 -0
  37. package/dist/server/routes.js.map +1 -0
  38. package/dist/server/websocket.js +230 -0
  39. package/dist/server/websocket.js.map +1 -0
  40. package/dist/static/web/assets/index-BzSDdMyu.js +304 -0
  41. package/dist/static/web/assets/index-DptBjpyJ.css +1 -0
  42. package/dist/static/web/index.html +13 -0
  43. package/dist/types.js +33 -0
  44. package/dist/types.js.map +1 -0
  45. package/dist/utils.js +66 -0
  46. package/dist/utils.js.map +1 -0
  47. package/dist/web/assets/index-Ds-OtVY9.js +76 -0
  48. package/dist/web/assets/index-F5jE8yX9.css +1 -0
  49. package/dist/web/index.html +13 -0
  50. package/package.json +61 -0
@@ -0,0 +1,76 @@
1
+ var tp=Object.defineProperty;var ep=(s,i,c)=>i in s?tp(s,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):s[i]=c;var Ge=(s,i,c)=>ep(s,typeof i!="symbol"?i+"":i,c);function np(s,i){for(var c=0;c<i.length;c++){const r=i[c];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in s)){const m=Object.getOwnPropertyDescriptor(r,o);m&&Object.defineProperty(s,o,m.get?m:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const m of o)if(m.type==="childList")for(const g of m.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&r(g)}).observe(document,{childList:!0,subtree:!0});function c(o){const m={};return o.integrity&&(m.integrity=o.integrity),o.referrerPolicy&&(m.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?m.credentials="include":o.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function r(o){if(o.ep)return;o.ep=!0;const m=c(o);fetch(o.href,m)}})();function ur(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Yc={exports:{}},Xa={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var bd;function lp(){if(bd)return Xa;bd=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(r,o,m){var g=null;if(m!==void 0&&(g=""+m),o.key!==void 0&&(g=""+o.key),"key"in o){m={};for(var E in o)E!=="key"&&(m[E]=o[E])}else m=o;return o=m.ref,{$$typeof:s,type:r,key:g,ref:o!==void 0?o:null,props:m}}return Xa.Fragment=i,Xa.jsx=c,Xa.jsxs=c,Xa}var Sd;function ap(){return Sd||(Sd=1,Yc.exports=lp()),Yc.exports}var d=ap(),Gc={exports:{}},Qa={},Xc={exports:{}},Qc={};/**
10
+ * @license React
11
+ * scheduler.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var _d;function ip(){return _d||(_d=1,(function(s){function i(_,j){var w=_.length;_.push(j);t:for(;0<w;){var k=w-1>>>1,Z=_[k];if(0<o(Z,j))_[k]=j,_[w]=Z,w=k;else break t}}function c(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var j=_[0],w=_.pop();if(w!==j){_[0]=w;t:for(var k=0,Z=_.length,v=Z>>>1;k<v;){var M=2*(k+1)-1,Y=_[M],G=M+1,I=_[G];if(0>o(Y,w))G<Z&&0>o(I,Y)?(_[k]=I,_[G]=w,k=G):(_[k]=Y,_[M]=w,k=M);else if(G<Z&&0>o(I,w))_[k]=I,_[G]=w,k=G;else break t}}return j}function o(_,j){var w=_.sortIndex-j.sortIndex;return w!==0?w:_.id-j.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;s.unstable_now=function(){return m.now()}}else{var g=Date,E=g.now();s.unstable_now=function(){return g.now()-E}}var p=[],S=[],R=1,C=null,X=3,F=!1,U=!1,q=!1,V=!1,et=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,lt=typeof setImmediate<"u"?setImmediate:null;function pt(_){for(var j=c(S);j!==null;){if(j.callback===null)r(S);else if(j.startTime<=_)r(S),j.sortIndex=j.expirationTime,i(p,j);else break;j=c(S)}}function Ct(_){if(q=!1,pt(_),!U)if(c(p)!==null)U=!0,gt||(gt=!0,Ht());else{var j=c(S);j!==null&&Q(Ct,j.startTime-_)}}var gt=!1,at=-1,Gt=5,It=-1;function bt(){return V?!0:!(s.unstable_now()-It<Gt)}function st(){if(V=!1,gt){var _=s.unstable_now();It=_;var j=!0;try{t:{U=!1,q&&(q=!1,$(at),at=-1),F=!0;var w=X;try{e:{for(pt(_),C=c(p);C!==null&&!(C.expirationTime>_&&bt());){var k=C.callback;if(typeof k=="function"){C.callback=null,X=C.priorityLevel;var Z=k(C.expirationTime<=_);if(_=s.unstable_now(),typeof Z=="function"){C.callback=Z,pt(_),j=!0;break e}C===c(p)&&r(p),pt(_)}else r(p);C=c(p)}if(C!==null)j=!0;else{var v=c(S);v!==null&&Q(Ct,v.startTime-_),j=!1}}break t}finally{C=null,X=w,F=!1}j=void 0}}finally{j?Ht():gt=!1}}}var Ht;if(typeof lt=="function")Ht=function(){lt(st)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,P=me.port2;me.port1.onmessage=st,Ht=function(){P.postMessage(null)}}else Ht=function(){et(st,0)};function Q(_,j){at=et(function(){_(s.unstable_now())},j)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(_){_.callback=null},s.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Gt=0<_?Math.floor(1e3/_):5},s.unstable_getCurrentPriorityLevel=function(){return X},s.unstable_next=function(_){switch(X){case 1:case 2:case 3:var j=3;break;default:j=X}var w=X;X=j;try{return _()}finally{X=w}},s.unstable_requestPaint=function(){V=!0},s.unstable_runWithPriority=function(_,j){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var w=X;X=_;try{return j()}finally{X=w}},s.unstable_scheduleCallback=function(_,j,w){var k=s.unstable_now();switch(typeof w=="object"&&w!==null?(w=w.delay,w=typeof w=="number"&&0<w?k+w:k):w=k,_){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=w+Z,_={id:R++,callback:j,priorityLevel:_,startTime:w,expirationTime:Z,sortIndex:-1},w>k?(_.sortIndex=w,i(S,_),c(p)===null&&_===c(S)&&(q?($(at),at=-1):q=!0,Q(Ct,w-k))):(_.sortIndex=Z,i(p,_),U||F||(U=!0,gt||(gt=!0,Ht()))),_},s.unstable_shouldYield=bt,s.unstable_wrapCallback=function(_){var j=X;return function(){var w=X;X=j;try{return _.apply(this,arguments)}finally{X=w}}}})(Qc)),Qc}var Ed;function up(){return Ed||(Ed=1,Xc.exports=ip()),Xc.exports}var Vc={exports:{}},ut={};/**
18
+ * @license React
19
+ * react.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Td;function sp(){if(Td)return ut;Td=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),g=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),X=Symbol.iterator;function F(v){return v===null||typeof v!="object"?null:(v=X&&v[X]||v["@@iterator"],typeof v=="function"?v:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,V={};function et(v,M,Y){this.props=v,this.context=M,this.refs=V,this.updater=Y||U}et.prototype.isReactComponent={},et.prototype.setState=function(v,M){if(typeof v!="object"&&typeof v!="function"&&v!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,v,M,"setState")},et.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function $(){}$.prototype=et.prototype;function lt(v,M,Y){this.props=v,this.context=M,this.refs=V,this.updater=Y||U}var pt=lt.prototype=new $;pt.constructor=lt,q(pt,et.prototype),pt.isPureReactComponent=!0;var Ct=Array.isArray;function gt(){}var at={H:null,A:null,T:null,S:null},Gt=Object.prototype.hasOwnProperty;function It(v,M,Y){var G=Y.ref;return{$$typeof:s,type:v,key:M,ref:G!==void 0?G:null,props:Y}}function bt(v,M){return It(v.type,M,v.props)}function st(v){return typeof v=="object"&&v!==null&&v.$$typeof===s}function Ht(v){var M={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(Y){return M[Y]})}var me=/\/+/g;function P(v,M){return typeof v=="object"&&v!==null&&v.key!=null?Ht(""+v.key):M.toString(36)}function Q(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(gt,gt):(v.status="pending",v.then(function(M){v.status==="pending"&&(v.status="fulfilled",v.value=M)},function(M){v.status==="pending"&&(v.status="rejected",v.reason=M)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function _(v,M,Y,G,I){var it=typeof v;(it==="undefined"||it==="boolean")&&(v=null);var ft=!1;if(v===null)ft=!0;else switch(it){case"bigint":case"string":case"number":ft=!0;break;case"object":switch(v.$$typeof){case s:case i:ft=!0;break;case R:return ft=v._init,_(ft(v._payload),M,Y,G,I)}}if(ft)return I=I(v),ft=G===""?"."+P(v,0):G,Ct(I)?(Y="",ft!=null&&(Y=ft.replace(me,"$&/")+"/"),_(I,M,Y,"",function(K){return K})):I!=null&&(st(I)&&(I=bt(I,Y+(I.key==null||v&&v.key===I.key?"":(""+I.key).replace(me,"$&/")+"/")+ft)),M.push(I)),1;ft=0;var Bt=G===""?".":G+":";if(Ct(v))for(var H=0;H<v.length;H++)G=v[H],it=Bt+P(G,H),ft+=_(G,M,Y,it,I);else if(H=F(v),typeof H=="function")for(v=H.call(v),H=0;!(G=v.next()).done;)G=G.value,it=Bt+P(G,H++),ft+=_(G,M,Y,it,I);else if(it==="object"){if(typeof v.then=="function")return _(Q(v),M,Y,G,I);throw M=String(v),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return ft}function j(v,M,Y){if(v==null)return v;var G=[],I=0;return _(v,G,"","",function(it){return M.call(Y,it,I++)}),G}function w(v){if(v._status===-1){var M=v._result;M=M(),M.then(function(Y){(v._status===0||v._status===-1)&&(v._status=1,v._result=Y)},function(Y){(v._status===0||v._status===-1)&&(v._status=2,v._result=Y)}),v._status===-1&&(v._status=0,v._result=M)}if(v._status===1)return v._result.default;throw v._result}var k=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)},Z={map:j,forEach:function(v,M,Y){j(v,function(){M.apply(this,arguments)},Y)},count:function(v){var M=0;return j(v,function(){M++}),M},toArray:function(v){return j(v,function(M){return M})||[]},only:function(v){if(!st(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};return ut.Activity=C,ut.Children=Z,ut.Component=et,ut.Fragment=c,ut.Profiler=o,ut.PureComponent=lt,ut.StrictMode=r,ut.Suspense=p,ut.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=at,ut.__COMPILER_RUNTIME={__proto__:null,c:function(v){return at.H.useMemoCache(v)}},ut.cache=function(v){return function(){return v.apply(null,arguments)}},ut.cacheSignal=function(){return null},ut.cloneElement=function(v,M,Y){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var G=q({},v.props),I=v.key;if(M!=null)for(it in M.key!==void 0&&(I=""+M.key),M)!Gt.call(M,it)||it==="key"||it==="__self"||it==="__source"||it==="ref"&&M.ref===void 0||(G[it]=M[it]);var it=arguments.length-2;if(it===1)G.children=Y;else if(1<it){for(var ft=Array(it),Bt=0;Bt<it;Bt++)ft[Bt]=arguments[Bt+2];G.children=ft}return It(v.type,I,G)},ut.createContext=function(v){return v={$$typeof:g,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:m,_context:v},v},ut.createElement=function(v,M,Y){var G,I={},it=null;if(M!=null)for(G in M.key!==void 0&&(it=""+M.key),M)Gt.call(M,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(I[G]=M[G]);var ft=arguments.length-2;if(ft===1)I.children=Y;else if(1<ft){for(var Bt=Array(ft),H=0;H<ft;H++)Bt[H]=arguments[H+2];I.children=Bt}if(v&&v.defaultProps)for(G in ft=v.defaultProps,ft)I[G]===void 0&&(I[G]=ft[G]);return It(v,it,I)},ut.createRef=function(){return{current:null}},ut.forwardRef=function(v){return{$$typeof:E,render:v}},ut.isValidElement=st,ut.lazy=function(v){return{$$typeof:R,_payload:{_status:-1,_result:v},_init:w}},ut.memo=function(v,M){return{$$typeof:S,type:v,compare:M===void 0?null:M}},ut.startTransition=function(v){var M=at.T,Y={};at.T=Y;try{var G=v(),I=at.S;I!==null&&I(Y,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(gt,k)}catch(it){k(it)}finally{M!==null&&Y.types!==null&&(M.types=Y.types),at.T=M}},ut.unstable_useCacheRefresh=function(){return at.H.useCacheRefresh()},ut.use=function(v){return at.H.use(v)},ut.useActionState=function(v,M,Y){return at.H.useActionState(v,M,Y)},ut.useCallback=function(v,M){return at.H.useCallback(v,M)},ut.useContext=function(v){return at.H.useContext(v)},ut.useDebugValue=function(){},ut.useDeferredValue=function(v,M){return at.H.useDeferredValue(v,M)},ut.useEffect=function(v,M){return at.H.useEffect(v,M)},ut.useEffectEvent=function(v){return at.H.useEffectEvent(v)},ut.useId=function(){return at.H.useId()},ut.useImperativeHandle=function(v,M,Y){return at.H.useImperativeHandle(v,M,Y)},ut.useInsertionEffect=function(v,M){return at.H.useInsertionEffect(v,M)},ut.useLayoutEffect=function(v,M){return at.H.useLayoutEffect(v,M)},ut.useMemo=function(v,M){return at.H.useMemo(v,M)},ut.useOptimistic=function(v,M){return at.H.useOptimistic(v,M)},ut.useReducer=function(v,M,Y){return at.H.useReducer(v,M,Y)},ut.useRef=function(v){return at.H.useRef(v)},ut.useState=function(v){return at.H.useState(v)},ut.useSyncExternalStore=function(v,M,Y){return at.H.useSyncExternalStore(v,M,Y)},ut.useTransition=function(){return at.H.useTransition()},ut.version="19.2.6",ut}var xd;function sr(){return xd||(xd=1,Vc.exports=sp()),Vc.exports}var kc={exports:{}},ie={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Ad;function cp(){if(Ad)return ie;Ad=1;var s=sr();function i(p){var S="https://react.dev/errors/"+p;if(1<arguments.length){S+="?args[]="+encodeURIComponent(arguments[1]);for(var R=2;R<arguments.length;R++)S+="&args[]="+encodeURIComponent(arguments[R])}return"Minified React error #"+p+"; visit "+S+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var r={d:{f:c,r:function(){throw Error(i(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},o=Symbol.for("react.portal");function m(p,S,R){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:C==null?null:""+C,children:p,containerInfo:S,implementation:R}}var g=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function E(p,S){if(p==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}return ie.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ie.createPortal=function(p,S){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!S||S.nodeType!==1&&S.nodeType!==9&&S.nodeType!==11)throw Error(i(299));return m(p,S,null,R)},ie.flushSync=function(p){var S=g.T,R=r.p;try{if(g.T=null,r.p=2,p)return p()}finally{g.T=S,r.p=R,r.d.f()}},ie.preconnect=function(p,S){typeof p=="string"&&(S?(S=S.crossOrigin,S=typeof S=="string"?S==="use-credentials"?S:"":void 0):S=null,r.d.C(p,S))},ie.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},ie.preinit=function(p,S){if(typeof p=="string"&&S&&typeof S.as=="string"){var R=S.as,C=E(R,S.crossOrigin),X=typeof S.integrity=="string"?S.integrity:void 0,F=typeof S.fetchPriority=="string"?S.fetchPriority:void 0;R==="style"?r.d.S(p,typeof S.precedence=="string"?S.precedence:void 0,{crossOrigin:C,integrity:X,fetchPriority:F}):R==="script"&&r.d.X(p,{crossOrigin:C,integrity:X,fetchPriority:F,nonce:typeof S.nonce=="string"?S.nonce:void 0})}},ie.preinitModule=function(p,S){if(typeof p=="string")if(typeof S=="object"&&S!==null){if(S.as==null||S.as==="script"){var R=E(S.as,S.crossOrigin);r.d.M(p,{crossOrigin:R,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0})}}else S==null&&r.d.M(p)},ie.preload=function(p,S){if(typeof p=="string"&&typeof S=="object"&&S!==null&&typeof S.as=="string"){var R=S.as,C=E(R,S.crossOrigin);r.d.L(p,R,{crossOrigin:C,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,type:typeof S.type=="string"?S.type:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0,referrerPolicy:typeof S.referrerPolicy=="string"?S.referrerPolicy:void 0,imageSrcSet:typeof S.imageSrcSet=="string"?S.imageSrcSet:void 0,imageSizes:typeof S.imageSizes=="string"?S.imageSizes:void 0,media:typeof S.media=="string"?S.media:void 0})}},ie.preloadModule=function(p,S){if(typeof p=="string")if(S){var R=E(S.as,S.crossOrigin);r.d.m(p,{as:typeof S.as=="string"&&S.as!=="script"?S.as:void 0,crossOrigin:R,integrity:typeof S.integrity=="string"?S.integrity:void 0})}else r.d.m(p)},ie.requestFormReset=function(p){r.d.r(p)},ie.unstable_batchedUpdates=function(p,S){return p(S)},ie.useFormState=function(p,S,R){return g.H.useFormState(p,S,R)},ie.useFormStatus=function(){return g.H.useHostTransitionStatus()},ie.version="19.2.6",ie}var Cd;function Id(){if(Cd)return kc.exports;Cd=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),kc.exports=cp(),kc.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var Nd;function rp(){if(Nd)return Qa;Nd=1;var s=up(),i=sr(),c=Id();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function m(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function g(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function E(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(m(t)!==t)throw Error(r(188))}function S(t){var e=t.alternate;if(!e){if(e=m(t),e===null)throw Error(r(188));return e!==t?null:t}for(var n=t,l=e;;){var a=n.return;if(a===null)break;var u=a.alternate;if(u===null){if(l=a.return,l!==null){n=l;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===n)return p(a),t;if(u===l)return p(a),e;u=u.sibling}throw Error(r(188))}if(n.return!==l.return)n=a,l=u;else{for(var f=!1,h=a.child;h;){if(h===n){f=!0,n=a,l=u;break}if(h===l){f=!0,l=a,n=u;break}h=h.sibling}if(!f){for(h=u.child;h;){if(h===n){f=!0,n=u,l=a;break}if(h===l){f=!0,l=u,n=a;break}h=h.sibling}if(!f)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?t:e}function R(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=R(t),e!==null)return e;t=t.sibling}return null}var C=Object.assign,X=Symbol.for("react.element"),F=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),et=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),lt=Symbol.for("react.context"),pt=Symbol.for("react.forward_ref"),Ct=Symbol.for("react.suspense"),gt=Symbol.for("react.suspense_list"),at=Symbol.for("react.memo"),Gt=Symbol.for("react.lazy"),It=Symbol.for("react.activity"),bt=Symbol.for("react.memo_cache_sentinel"),st=Symbol.iterator;function Ht(t){return t===null||typeof t!="object"?null:(t=st&&t[st]||t["@@iterator"],typeof t=="function"?t:null)}var me=Symbol.for("react.client.reference");function P(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===me?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case q:return"Fragment";case et:return"Profiler";case V:return"StrictMode";case Ct:return"Suspense";case gt:return"SuspenseList";case It:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case U:return"Portal";case lt:return t.displayName||"Context";case $:return(t._context.displayName||"Context")+".Consumer";case pt:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case at:return e=t.displayName||null,e!==null?e:P(t.type)||"Memo";case Gt:e=t._payload,t=t._init;try{return P(t(e))}catch{}}return null}var Q=Array.isArray,_=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w={pending:!1,data:null,method:null,action:null},k=[],Z=-1;function v(t){return{current:t}}function M(t){0>Z||(t.current=k[Z],k[Z]=null,Z--)}function Y(t,e){Z++,k[Z]=t.current,t.current=e}var G=v(null),I=v(null),it=v(null),ft=v(null);function Bt(t,e){switch(Y(it,e),Y(I,t),Y(G,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Xh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Xh(e),t=Qh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}M(G),Y(G,t)}function H(){M(G),M(I),M(it)}function K(t){t.memoizedState!==null&&Y(ft,t);var e=G.current,n=Qh(e,t.type);e!==n&&(Y(I,t),Y(G,n))}function Rt(t){I.current===t&&(M(G),M(I)),ft.current===t&&(M(ft),Ha._currentValue=w)}var ae,Qe;function ye(t){if(ae===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);ae=e&&e[1]||"",Qe=-1<n.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+ae+t+Qe}var yn=!1;function xu(t,e){if(!t||yn)return"";yn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(z){var O=z}Reflect.construct(t,[],L)}else{try{L.call()}catch(z){O=z}t.call(L.prototype)}}else{try{throw Error()}catch(z){O=z}(L=t())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(z){if(z&&O&&typeof z.stack=="string")return[z.stack,O.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),f=u[0],h=u[1];if(f&&h){var y=f.split(`
44
+ `),A=h.split(`
45
+ `);for(a=l=0;l<y.length&&!y[l].includes("DetermineComponentFrameRoot");)l++;for(;a<A.length&&!A[a].includes("DetermineComponentFrameRoot");)a++;if(l===y.length||a===A.length)for(l=y.length-1,a=A.length-1;1<=l&&0<=a&&y[l]!==A[a];)a--;for(;1<=l&&0<=a;l--,a--)if(y[l]!==A[a]){if(l!==1||a!==1)do if(l--,a--,0>a||y[l]!==A[a]){var D=`
46
+ `+y[l].replace(" at new "," at ");return t.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",t.displayName)),D}while(1<=l&&0<=a);break}}}finally{yn=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ye(n):""}function Rm(t,e){switch(t.tag){case 26:case 27:case 5:return ye(t.type);case 16:return ye("Lazy");case 13:return t.child!==e&&e!==null?ye("Suspense Fallback"):ye("Suspense");case 19:return ye("SuspenseList");case 0:case 15:return xu(t.type,!1);case 11:return xu(t.type.render,!1);case 1:return xu(t.type,!0);case 31:return ye("Activity");default:return""}}function pr(t){try{var e="",n=null;do e+=Rm(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
47
+ Error generating stack: `+l.message+`
48
+ `+l.stack}}var Au=Object.prototype.hasOwnProperty,Cu=s.unstable_scheduleCallback,Nu=s.unstable_cancelCallback,jm=s.unstable_shouldYield,Dm=s.unstable_requestPaint,ve=s.unstable_now,Um=s.unstable_getCurrentPriorityLevel,gr=s.unstable_ImmediatePriority,br=s.unstable_UserBlockingPriority,Wa=s.unstable_NormalPriority,Bm=s.unstable_LowPriority,Sr=s.unstable_IdlePriority,wm=s.log,Lm=s.unstable_setDisableYieldValue,Wl=null,pe=null;function vn(t){if(typeof wm=="function"&&Lm(t),pe&&typeof pe.setStrictMode=="function")try{pe.setStrictMode(Wl,t)}catch{}}var ge=Math.clz32?Math.clz32:Ym,Hm=Math.log,qm=Math.LN2;function Ym(t){return t>>>=0,t===0?32:31-(Hm(t)/qm|0)|0}var Fa=256,Ia=262144,Pa=4194304;function Qn(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function ti(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var a=0,u=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var h=l&134217727;return h!==0?(l=h&~u,l!==0?a=Qn(l):(f&=h,f!==0?a=Qn(f):n||(n=h&~t,n!==0&&(a=Qn(n))))):(h=l&~u,h!==0?a=Qn(h):f!==0?a=Qn(f):n||(n=l&~t,n!==0&&(a=Qn(n)))),a===0?0:e!==0&&e!==a&&(e&u)===0&&(u=a&-a,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:a}function Fl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Gm(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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-1}}function _r(){var t=Pa;return Pa<<=1,(Pa&62914560)===0&&(Pa=4194304),t}function Ou(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Il(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Xm(t,e,n,l,a,u){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var h=t.entanglements,y=t.expirationTimes,A=t.hiddenUpdates;for(n=f&~n;0<n;){var D=31-ge(n),L=1<<D;h[D]=0,y[D]=-1;var O=A[D];if(O!==null)for(A[D]=null,D=0;D<O.length;D++){var z=O[D];z!==null&&(z.lane&=-536870913)}n&=~L}l!==0&&Er(t,l,0),u!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=u&~(f&~e))}function Er(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-ge(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Tr(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-ge(n),a=1<<l;a&e|t[l]&e&&(t[l]|=e),n&=~a}}function xr(t,e){var n=e&-e;return n=(n&42)!==0?1:zu(n),(n&(t.suspendedLanes|e))!==0?0:n}function zu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Mu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ar(){var t=j.p;return t!==0?t:(t=window.event,t===void 0?32:hd(t.type))}function Cr(t,e){var n=j.p;try{return j.p=t,e()}finally{j.p=n}}var pn=Math.random().toString(36).slice(2),Pt="__reactFiber$"+pn,se="__reactProps$"+pn,rl="__reactContainer$"+pn,Ru="__reactEvents$"+pn,Qm="__reactListeners$"+pn,Vm="__reactHandles$"+pn,Nr="__reactResources$"+pn,Pl="__reactMarker$"+pn;function ju(t){delete t[Pt],delete t[se],delete t[Ru],delete t[Qm],delete t[Vm]}function fl(t){var e=t[Pt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[rl]||n[Pt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Wh(t);t!==null;){if(n=t[Pt])return n;t=Wh(t)}return e}t=n,n=t.parentNode}return null}function ol(t){if(t=t[Pt]||t[rl]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ta(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function hl(t){var e=t[Nr];return e||(e=t[Nr]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function $t(t){t[Pl]=!0}var Or=new Set,zr={};function Vn(t,e){dl(t,e),dl(t+"Capture",e)}function dl(t,e){for(zr[t]=e,t=0;t<e.length;t++)Or.add(e[t])}var km=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Mr={},Rr={};function Zm(t){return Au.call(Rr,t)?!0:Au.call(Mr,t)?!1:km.test(t)?Rr[t]=!0:(Mr[t]=!0,!1)}function ei(t,e,n){if(Zm(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function ni(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function We(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function Ne(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function jr(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Km(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var a=l.get,u=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(f){n=""+f,u.call(this,f)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Du(t){if(!t._valueTracker){var e=jr(t)?"checked":"value";t._valueTracker=Km(t,e,""+t[e])}}function Dr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=jr(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function li(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Jm=/[\n"\\]/g;function Oe(t){return t.replace(Jm,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Uu(t,e,n,l,a,u,f,h){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ne(e)):t.value!==""+Ne(e)&&(t.value=""+Ne(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Bu(t,f,Ne(e)):n!=null?Bu(t,f,Ne(n)):l!=null&&t.removeAttribute("value"),a==null&&u!=null&&(t.defaultChecked=!!u),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.name=""+Ne(h):t.removeAttribute("name")}function Ur(t,e,n,l,a,u,f,h){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Du(t);return}n=n!=null?""+Ne(n):"",e=e!=null?""+Ne(e):n,h||e===t.value||(t.value=e),t.defaultValue=e}l=l??a,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=h?t.checked:!!l,t.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),Du(t)}function Bu(t,e,n){e==="number"&&li(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function ml(t,e,n,l){if(t=t.options,e){e={};for(var a=0;a<n.length;a++)e["$"+n[a]]=!0;for(n=0;n<t.length;n++)a=e.hasOwnProperty("$"+t[n].value),t[n].selected!==a&&(t[n].selected=a),a&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Ne(n),e=null,a=0;a<t.length;a++){if(t[a].value===n){t[a].selected=!0,l&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function Br(t,e,n){if(e!=null&&(e=""+Ne(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Ne(n):""}function wr(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(r(92));if(Q(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Ne(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Du(t)}function yl(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var $m=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Lr(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||$m.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Hr(t,e,n){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var a in e)l=e[a],e.hasOwnProperty(a)&&n[a]!==l&&Lr(t,a,l)}else for(var u in e)e.hasOwnProperty(u)&&Lr(t,u,e[u])}function wu(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Wm=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Fm=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function ai(t){return Fm.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Fe(){}var Lu=null;function Hu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var vl=null,pl=null;function qr(t){var e=ol(t);if(e&&(t=e.stateNode)){var n=t[se]||null;t:switch(t=e.stateNode,e.type){case"input":if(Uu(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Oe(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var a=l[se]||null;if(!a)throw Error(r(90));Uu(l,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&Dr(l)}break t;case"textarea":Br(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&ml(t,!!n.multiple,e,!1)}}}var qu=!1;function Yr(t,e,n){if(qu)return t(e,n);qu=!0;try{var l=t(e);return l}finally{if(qu=!1,(vl!==null||pl!==null)&&(ki(),vl&&(e=vl,t=pl,pl=vl=null,qr(e),t)))for(e=0;e<t.length;e++)qr(t[e])}}function ea(t,e){var n=t.stateNode;if(n===null)return null;var l=n[se]||null;if(l===null)return null;n=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(r(231,e,typeof n));return n}var Ie=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yu=!1;if(Ie)try{var na={};Object.defineProperty(na,"passive",{get:function(){Yu=!0}}),window.addEventListener("test",na,na),window.removeEventListener("test",na,na)}catch{Yu=!1}var gn=null,Gu=null,ii=null;function Gr(){if(ii)return ii;var t,e=Gu,n=e.length,l,a="value"in gn?gn.value:gn.textContent,u=a.length;for(t=0;t<n&&e[t]===a[t];t++);var f=n-t;for(l=1;l<=f&&e[n-l]===a[u-l];l++);return ii=a.slice(t,1<l?1-l:void 0)}function ui(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function si(){return!0}function Xr(){return!1}function ce(t){function e(n,l,a,u,f){this._reactName=n,this._targetInst=a,this.type=l,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var h in t)t.hasOwnProperty(h)&&(n=t[h],this[h]=n?n(u):u[h]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?si:Xr,this.isPropagationStopped=Xr,this}return C(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=si)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=si)},persist:function(){},isPersistent:si}),e}var kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ci=ce(kn),la=C({},kn,{view:0,detail:0}),Im=ce(la),Xu,Qu,aa,ri=C({},la,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ku,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==aa&&(aa&&t.type==="mousemove"?(Xu=t.screenX-aa.screenX,Qu=t.screenY-aa.screenY):Qu=Xu=0,aa=t),Xu)},movementY:function(t){return"movementY"in t?t.movementY:Qu}}),Qr=ce(ri),Pm=C({},ri,{dataTransfer:0}),ty=ce(Pm),ey=C({},la,{relatedTarget:0}),Vu=ce(ey),ny=C({},kn,{animationName:0,elapsedTime:0,pseudoElement:0}),ly=ce(ny),ay=C({},kn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),iy=ce(ay),uy=C({},kn,{data:0}),Vr=ce(uy),sy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cy={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ry={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fy(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=ry[t])?!!e[t]:!1}function ku(){return fy}var oy=C({},la,{key:function(t){if(t.key){var e=sy[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ui(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?cy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ku,charCode:function(t){return t.type==="keypress"?ui(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ui(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),hy=ce(oy),dy=C({},ri,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kr=ce(dy),my=C({},la,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ku}),yy=ce(my),vy=C({},kn,{propertyName:0,elapsedTime:0,pseudoElement:0}),py=ce(vy),gy=C({},ri,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),by=ce(gy),Sy=C({},kn,{newState:0,oldState:0}),_y=ce(Sy),Ey=[9,13,27,32],Zu=Ie&&"CompositionEvent"in window,ia=null;Ie&&"documentMode"in document&&(ia=document.documentMode);var Ty=Ie&&"TextEvent"in window&&!ia,Zr=Ie&&(!Zu||ia&&8<ia&&11>=ia),Kr=" ",Jr=!1;function $r(t,e){switch(t){case"keyup":return Ey.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wr(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var gl=!1;function xy(t,e){switch(t){case"compositionend":return Wr(e);case"keypress":return e.which!==32?null:(Jr=!0,Kr);case"textInput":return t=e.data,t===Kr&&Jr?null:t;default:return null}}function Ay(t,e){if(gl)return t==="compositionend"||!Zu&&$r(t,e)?(t=Gr(),ii=Gu=gn=null,gl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Zr&&e.locale!=="ko"?null:e.data;default:return null}}var Cy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Cy[t.type]:e==="textarea"}function Ir(t,e,n,l){vl?pl?pl.push(l):pl=[l]:vl=l,e=Ii(e,"onChange"),0<e.length&&(n=new ci("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var ua=null,sa=null;function Ny(t){wh(t,0)}function fi(t){var e=ta(t);if(Dr(e))return t}function Pr(t,e){if(t==="change")return e}var tf=!1;if(Ie){var Ku;if(Ie){var Ju="oninput"in document;if(!Ju){var ef=document.createElement("div");ef.setAttribute("oninput","return;"),Ju=typeof ef.oninput=="function"}Ku=Ju}else Ku=!1;tf=Ku&&(!document.documentMode||9<document.documentMode)}function nf(){ua&&(ua.detachEvent("onpropertychange",lf),sa=ua=null)}function lf(t){if(t.propertyName==="value"&&fi(sa)){var e=[];Ir(e,sa,t,Hu(t)),Yr(Ny,e)}}function Oy(t,e,n){t==="focusin"?(nf(),ua=e,sa=n,ua.attachEvent("onpropertychange",lf)):t==="focusout"&&nf()}function zy(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return fi(sa)}function My(t,e){if(t==="click")return fi(e)}function Ry(t,e){if(t==="input"||t==="change")return fi(e)}function jy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var be=typeof Object.is=="function"?Object.is:jy;function ca(t,e){if(be(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var a=n[l];if(!Au.call(e,a)||!be(t[a],e[a]))return!1}return!0}function af(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function uf(t,e){var n=af(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=af(n)}}function sf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?sf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function cf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=li(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=li(t.document)}return e}function $u(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Dy=Ie&&"documentMode"in document&&11>=document.documentMode,bl=null,Wu=null,ra=null,Fu=!1;function rf(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fu||bl==null||bl!==li(l)||(l=bl,"selectionStart"in l&&$u(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ra&&ca(ra,l)||(ra=l,l=Ii(Wu,"onSelect"),0<l.length&&(e=new ci("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=bl)))}function Zn(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Sl={animationend:Zn("Animation","AnimationEnd"),animationiteration:Zn("Animation","AnimationIteration"),animationstart:Zn("Animation","AnimationStart"),transitionrun:Zn("Transition","TransitionRun"),transitionstart:Zn("Transition","TransitionStart"),transitioncancel:Zn("Transition","TransitionCancel"),transitionend:Zn("Transition","TransitionEnd")},Iu={},ff={};Ie&&(ff=document.createElement("div").style,"AnimationEvent"in window||(delete Sl.animationend.animation,delete Sl.animationiteration.animation,delete Sl.animationstart.animation),"TransitionEvent"in window||delete Sl.transitionend.transition);function Kn(t){if(Iu[t])return Iu[t];if(!Sl[t])return t;var e=Sl[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in ff)return Iu[t]=e[n];return t}var of=Kn("animationend"),hf=Kn("animationiteration"),df=Kn("animationstart"),Uy=Kn("transitionrun"),By=Kn("transitionstart"),wy=Kn("transitioncancel"),mf=Kn("transitionend"),yf=new Map,Pu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Pu.push("scrollEnd");function He(t,e){yf.set(t,e),Vn(e,[t])}var oi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},ze=[],_l=0,ts=0;function hi(){for(var t=_l,e=ts=_l=0;e<t;){var n=ze[e];ze[e++]=null;var l=ze[e];ze[e++]=null;var a=ze[e];ze[e++]=null;var u=ze[e];if(ze[e++]=null,l!==null&&a!==null){var f=l.pending;f===null?a.next=a:(a.next=f.next,f.next=a),l.pending=a}u!==0&&vf(n,a,u)}}function di(t,e,n,l){ze[_l++]=t,ze[_l++]=e,ze[_l++]=n,ze[_l++]=l,ts|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function es(t,e,n,l){return di(t,e,n,l),mi(t)}function Jn(t,e){return di(t,null,null,e),mi(t)}function vf(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var a=!1,u=t.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(a=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,a&&e!==null&&(a=31-ge(n),t=u.hiddenUpdates,l=t[a],l===null?t[a]=[e]:l.push(e),e.lane=n|536870912),u):null}function mi(t){if(50<Ra)throw Ra=0,fc=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var El={};function Ly(t,e,n,l){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Se(t,e,n,l){return new Ly(t,e,n,l)}function ns(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Pe(t,e){var n=t.alternate;return n===null?(n=Se(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function pf(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function yi(t,e,n,l,a,u){var f=0;if(l=t,typeof t=="function")ns(t)&&(f=1);else if(typeof t=="string")f=Xv(t,n,G.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case It:return t=Se(31,n,e,a),t.elementType=It,t.lanes=u,t;case q:return $n(n.children,a,u,e);case V:f=8,a|=24;break;case et:return t=Se(12,n,e,a|2),t.elementType=et,t.lanes=u,t;case Ct:return t=Se(13,n,e,a),t.elementType=Ct,t.lanes=u,t;case gt:return t=Se(19,n,e,a),t.elementType=gt,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case lt:f=10;break t;case $:f=9;break t;case pt:f=11;break t;case at:f=14;break t;case Gt:f=16,l=null;break t}f=29,n=Error(r(130,t===null?"null":typeof t,"")),l=null}return e=Se(f,n,e,a),e.elementType=t,e.type=l,e.lanes=u,e}function $n(t,e,n,l){return t=Se(7,t,l,e),t.lanes=n,t}function ls(t,e,n){return t=Se(6,t,null,e),t.lanes=n,t}function gf(t){var e=Se(18,null,null,0);return e.stateNode=t,e}function as(t,e,n){return e=Se(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var bf=new WeakMap;function Me(t,e){if(typeof t=="object"&&t!==null){var n=bf.get(t);return n!==void 0?n:(e={value:t,source:e,stack:pr(e)},bf.set(t,e),e)}return{value:t,source:e,stack:pr(e)}}var Tl=[],xl=0,vi=null,fa=0,Re=[],je=0,bn=null,Ve=1,ke="";function tn(t,e){Tl[xl++]=fa,Tl[xl++]=vi,vi=t,fa=e}function Sf(t,e,n){Re[je++]=Ve,Re[je++]=ke,Re[je++]=bn,bn=t;var l=Ve;t=ke;var a=32-ge(l)-1;l&=~(1<<a),n+=1;var u=32-ge(e)+a;if(30<u){var f=a-a%5;u=(l&(1<<f)-1).toString(32),l>>=f,a-=f,Ve=1<<32-ge(e)+a|n<<a|l,ke=u+t}else Ve=1<<u|n<<a|l,ke=t}function is(t){t.return!==null&&(tn(t,1),Sf(t,1,0))}function us(t){for(;t===vi;)vi=Tl[--xl],Tl[xl]=null,fa=Tl[--xl],Tl[xl]=null;for(;t===bn;)bn=Re[--je],Re[je]=null,ke=Re[--je],Re[je]=null,Ve=Re[--je],Re[je]=null}function _f(t,e){Re[je++]=Ve,Re[je++]=ke,Re[je++]=bn,Ve=e.id,ke=e.overflow,bn=t}var te=null,jt=null,yt=!1,Sn=null,De=!1,ss=Error(r(519));function _n(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw oa(Me(e,t)),ss}function Ef(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[Pt]=t,e[se]=l,n){case"dialog":ht("cancel",e),ht("close",e);break;case"iframe":case"object":case"embed":ht("load",e);break;case"video":case"audio":for(n=0;n<Da.length;n++)ht(Da[n],e);break;case"source":ht("error",e);break;case"img":case"image":case"link":ht("error",e),ht("load",e);break;case"details":ht("toggle",e);break;case"input":ht("invalid",e),Ur(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ht("invalid",e);break;case"textarea":ht("invalid",e),wr(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||Yh(e.textContent,n)?(l.popover!=null&&(ht("beforetoggle",e),ht("toggle",e)),l.onScroll!=null&&ht("scroll",e),l.onScrollEnd!=null&&ht("scrollend",e),l.onClick!=null&&(e.onclick=Fe),e=!0):e=!1,e||_n(t,!0)}function Tf(t){for(te=t.return;te;)switch(te.tag){case 5:case 31:case 13:De=!1;return;case 27:case 3:De=!0;return;default:te=te.return}}function Al(t){if(t!==te)return!1;if(!yt)return Tf(t),yt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Ac(t.type,t.memoizedProps)),n=!n),n&&jt&&_n(t),Tf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));jt=$h(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));jt=$h(t)}else e===27?(e=jt,Bn(t.type)?(t=Mc,Mc=null,jt=t):jt=e):jt=te?Be(t.stateNode.nextSibling):null;return!0}function Wn(){jt=te=null,yt=!1}function cs(){var t=Sn;return t!==null&&(he===null?he=t:he.push.apply(he,t),Sn=null),t}function oa(t){Sn===null?Sn=[t]:Sn.push(t)}var rs=v(null),Fn=null,en=null;function En(t,e,n){Y(rs,e._currentValue),e._currentValue=n}function nn(t){t._currentValue=rs.current,M(rs)}function fs(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function os(t,e,n,l){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){var f=a.child;u=u.firstContext;t:for(;u!==null;){var h=u;u=a;for(var y=0;y<e.length;y++)if(h.context===e[y]){u.lanes|=n,h=u.alternate,h!==null&&(h.lanes|=n),fs(u.return,n,t),l||(f=null);break t}u=h.next}}else if(a.tag===18){if(f=a.return,f===null)throw Error(r(341));f.lanes|=n,u=f.alternate,u!==null&&(u.lanes|=n),fs(f,n,t),f=null}else f=a.child;if(f!==null)f.return=a;else for(f=a;f!==null;){if(f===t){f=null;break}if(a=f.sibling,a!==null){a.return=f.return,f=a;break}f=f.return}a=f}}function Cl(t,e,n,l){t=null;for(var a=e,u=!1;a!==null;){if(!u){if((a.flags&524288)!==0)u=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var f=a.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var h=a.type;be(a.pendingProps.value,f.value)||(t!==null?t.push(h):t=[h])}}else if(a===ft.current){if(f=a.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(Ha):t=[Ha])}a=a.return}t!==null&&os(e,t,n,l),e.flags|=262144}function pi(t){for(t=t.firstContext;t!==null;){if(!be(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function In(t){Fn=t,en=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ee(t){return xf(Fn,t)}function gi(t,e){return Fn===null&&In(t),xf(t,e)}function xf(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},en===null){if(t===null)throw Error(r(308));en=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else en=en.next=e;return n}var Hy=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},qy=s.unstable_scheduleCallback,Yy=s.unstable_NormalPriority,Xt={$$typeof:lt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hs(){return{controller:new Hy,data:new Map,refCount:0}}function ha(t){t.refCount--,t.refCount===0&&qy(Yy,function(){t.controller.abort()})}var da=null,ds=0,Nl=0,Ol=null;function Gy(t,e){if(da===null){var n=da=[];ds=0,Nl=vc(),Ol={status:"pending",value:void 0,then:function(l){n.push(l)}}}return ds++,e.then(Af,Af),e}function Af(){if(--ds===0&&da!==null){Ol!==null&&(Ol.status="fulfilled");var t=da;da=null,Nl=0,Ol=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Xy(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var a=0;a<n.length;a++)(0,n[a])(e)},function(a){for(l.status="rejected",l.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),l}var Cf=_.S;_.S=function(t,e){fh=ve(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Gy(t,e),Cf!==null&&Cf(t,e)};var Pn=v(null);function ms(){var t=Pn.current;return t!==null?t:Mt.pooledCache}function bi(t,e){e===null?Y(Pn,Pn.current):Y(Pn,e.pool)}function Nf(){var t=ms();return t===null?null:{parent:Xt._currentValue,pool:t}}var zl=Error(r(460)),ys=Error(r(474)),Si=Error(r(542)),_i={then:function(){}};function Of(t){return t=t.status,t==="fulfilled"||t==="rejected"}function zf(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Fe,Fe),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Rf(t),t;default:if(typeof e.status=="string")e.then(Fe,Fe);else{if(t=Mt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=l}},function(l){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Rf(t),t}throw el=e,zl}}function tl(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(el=n,zl):n}}var el=null;function Mf(){if(el===null)throw Error(r(459));var t=el;return el=null,t}function Rf(t){if(t===zl||t===Si)throw Error(r(483))}var Ml=null,ma=0;function Ei(t){var e=ma;return ma+=1,Ml===null&&(Ml=[]),zf(Ml,t,e)}function ya(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ti(t,e){throw e.$$typeof===X?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function jf(t){function e(T,b){if(t){var x=T.deletions;x===null?(T.deletions=[b],T.flags|=16):x.push(b)}}function n(T,b){if(!t)return null;for(;b!==null;)e(T,b),b=b.sibling;return null}function l(T){for(var b=new Map;T!==null;)T.key!==null?b.set(T.key,T):b.set(T.index,T),T=T.sibling;return b}function a(T,b){return T=Pe(T,b),T.index=0,T.sibling=null,T}function u(T,b,x){return T.index=x,t?(x=T.alternate,x!==null?(x=x.index,x<b?(T.flags|=67108866,b):x):(T.flags|=67108866,b)):(T.flags|=1048576,b)}function f(T){return t&&T.alternate===null&&(T.flags|=67108866),T}function h(T,b,x,B){return b===null||b.tag!==6?(b=ls(x,T.mode,B),b.return=T,b):(b=a(b,x),b.return=T,b)}function y(T,b,x,B){var tt=x.type;return tt===q?D(T,b,x.props.children,B,x.key):b!==null&&(b.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===Gt&&tl(tt)===b.type)?(b=a(b,x.props),ya(b,x),b.return=T,b):(b=yi(x.type,x.key,x.props,null,T.mode,B),ya(b,x),b.return=T,b)}function A(T,b,x,B){return b===null||b.tag!==4||b.stateNode.containerInfo!==x.containerInfo||b.stateNode.implementation!==x.implementation?(b=as(x,T.mode,B),b.return=T,b):(b=a(b,x.children||[]),b.return=T,b)}function D(T,b,x,B,tt){return b===null||b.tag!==7?(b=$n(x,T.mode,B,tt),b.return=T,b):(b=a(b,x),b.return=T,b)}function L(T,b,x){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=ls(""+b,T.mode,x),b.return=T,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case F:return x=yi(b.type,b.key,b.props,null,T.mode,x),ya(x,b),x.return=T,x;case U:return b=as(b,T.mode,x),b.return=T,b;case Gt:return b=tl(b),L(T,b,x)}if(Q(b)||Ht(b))return b=$n(b,T.mode,x,null),b.return=T,b;if(typeof b.then=="function")return L(T,Ei(b),x);if(b.$$typeof===lt)return L(T,gi(T,b),x);Ti(T,b)}return null}function O(T,b,x,B){var tt=b!==null?b.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return tt!==null?null:h(T,b,""+x,B);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case F:return x.key===tt?y(T,b,x,B):null;case U:return x.key===tt?A(T,b,x,B):null;case Gt:return x=tl(x),O(T,b,x,B)}if(Q(x)||Ht(x))return tt!==null?null:D(T,b,x,B,null);if(typeof x.then=="function")return O(T,b,Ei(x),B);if(x.$$typeof===lt)return O(T,b,gi(T,x),B);Ti(T,x)}return null}function z(T,b,x,B,tt){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return T=T.get(x)||null,h(b,T,""+B,tt);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case F:return T=T.get(B.key===null?x:B.key)||null,y(b,T,B,tt);case U:return T=T.get(B.key===null?x:B.key)||null,A(b,T,B,tt);case Gt:return B=tl(B),z(T,b,x,B,tt)}if(Q(B)||Ht(B))return T=T.get(x)||null,D(b,T,B,tt,null);if(typeof B.then=="function")return z(T,b,x,Ei(B),tt);if(B.$$typeof===lt)return z(T,b,x,gi(b,B),tt);Ti(b,B)}return null}function J(T,b,x,B){for(var tt=null,St=null,W=b,rt=b=0,mt=null;W!==null&&rt<x.length;rt++){W.index>rt?(mt=W,W=null):mt=W.sibling;var _t=O(T,W,x[rt],B);if(_t===null){W===null&&(W=mt);break}t&&W&&_t.alternate===null&&e(T,W),b=u(_t,b,rt),St===null?tt=_t:St.sibling=_t,St=_t,W=mt}if(rt===x.length)return n(T,W),yt&&tn(T,rt),tt;if(W===null){for(;rt<x.length;rt++)W=L(T,x[rt],B),W!==null&&(b=u(W,b,rt),St===null?tt=W:St.sibling=W,St=W);return yt&&tn(T,rt),tt}for(W=l(W);rt<x.length;rt++)mt=z(W,T,rt,x[rt],B),mt!==null&&(t&&mt.alternate!==null&&W.delete(mt.key===null?rt:mt.key),b=u(mt,b,rt),St===null?tt=mt:St.sibling=mt,St=mt);return t&&W.forEach(function(Yn){return e(T,Yn)}),yt&&tn(T,rt),tt}function nt(T,b,x,B){if(x==null)throw Error(r(151));for(var tt=null,St=null,W=b,rt=b=0,mt=null,_t=x.next();W!==null&&!_t.done;rt++,_t=x.next()){W.index>rt?(mt=W,W=null):mt=W.sibling;var Yn=O(T,W,_t.value,B);if(Yn===null){W===null&&(W=mt);break}t&&W&&Yn.alternate===null&&e(T,W),b=u(Yn,b,rt),St===null?tt=Yn:St.sibling=Yn,St=Yn,W=mt}if(_t.done)return n(T,W),yt&&tn(T,rt),tt;if(W===null){for(;!_t.done;rt++,_t=x.next())_t=L(T,_t.value,B),_t!==null&&(b=u(_t,b,rt),St===null?tt=_t:St.sibling=_t,St=_t);return yt&&tn(T,rt),tt}for(W=l(W);!_t.done;rt++,_t=x.next())_t=z(W,T,rt,_t.value,B),_t!==null&&(t&&_t.alternate!==null&&W.delete(_t.key===null?rt:_t.key),b=u(_t,b,rt),St===null?tt=_t:St.sibling=_t,St=_t);return t&&W.forEach(function(Pv){return e(T,Pv)}),yt&&tn(T,rt),tt}function zt(T,b,x,B){if(typeof x=="object"&&x!==null&&x.type===q&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case F:t:{for(var tt=x.key;b!==null;){if(b.key===tt){if(tt=x.type,tt===q){if(b.tag===7){n(T,b.sibling),B=a(b,x.props.children),B.return=T,T=B;break t}}else if(b.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===Gt&&tl(tt)===b.type){n(T,b.sibling),B=a(b,x.props),ya(B,x),B.return=T,T=B;break t}n(T,b);break}else e(T,b);b=b.sibling}x.type===q?(B=$n(x.props.children,T.mode,B,x.key),B.return=T,T=B):(B=yi(x.type,x.key,x.props,null,T.mode,B),ya(B,x),B.return=T,T=B)}return f(T);case U:t:{for(tt=x.key;b!==null;){if(b.key===tt)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){n(T,b.sibling),B=a(b,x.children||[]),B.return=T,T=B;break t}else{n(T,b);break}else e(T,b);b=b.sibling}B=as(x,T.mode,B),B.return=T,T=B}return f(T);case Gt:return x=tl(x),zt(T,b,x,B)}if(Q(x))return J(T,b,x,B);if(Ht(x)){if(tt=Ht(x),typeof tt!="function")throw Error(r(150));return x=tt.call(x),nt(T,b,x,B)}if(typeof x.then=="function")return zt(T,b,Ei(x),B);if(x.$$typeof===lt)return zt(T,b,gi(T,x),B);Ti(T,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,b!==null&&b.tag===6?(n(T,b.sibling),B=a(b,x),B.return=T,T=B):(n(T,b),B=ls(x,T.mode,B),B.return=T,T=B),f(T)):n(T,b)}return function(T,b,x,B){try{ma=0;var tt=zt(T,b,x,B);return Ml=null,tt}catch(W){if(W===zl||W===Si)throw W;var St=Se(29,W,null,T.mode);return St.lanes=B,St.return=T,St}finally{}}}var nl=jf(!0),Df=jf(!1),Tn=!1;function vs(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ps(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function xn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function An(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Et&2)!==0){var a=l.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),l.pending=e,e=mi(t),vf(t,null,n),e}return di(t,l,e,n),mi(t)}function va(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Tr(t,n)}}function gs(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var a=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?a=u=f:u=u.next=f,n=n.next}while(n!==null);u===null?a=u=e:u=u.next=e}else a=u=e;n={baseState:l.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var bs=!1;function pa(){if(bs){var t=Ol;if(t!==null)throw t}}function ga(t,e,n,l){bs=!1;var a=t.updateQueue;Tn=!1;var u=a.firstBaseUpdate,f=a.lastBaseUpdate,h=a.shared.pending;if(h!==null){a.shared.pending=null;var y=h,A=y.next;y.next=null,f===null?u=A:f.next=A,f=y;var D=t.alternate;D!==null&&(D=D.updateQueue,h=D.lastBaseUpdate,h!==f&&(h===null?D.firstBaseUpdate=A:h.next=A,D.lastBaseUpdate=y))}if(u!==null){var L=a.baseState;f=0,D=A=y=null,h=u;do{var O=h.lane&-536870913,z=O!==h.lane;if(z?(dt&O)===O:(l&O)===O){O!==0&&O===Nl&&(bs=!0),D!==null&&(D=D.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});t:{var J=t,nt=h;O=e;var zt=n;switch(nt.tag){case 1:if(J=nt.payload,typeof J=="function"){L=J.call(zt,L,O);break t}L=J;break t;case 3:J.flags=J.flags&-65537|128;case 0:if(J=nt.payload,O=typeof J=="function"?J.call(zt,L,O):J,O==null)break t;L=C({},L,O);break t;case 2:Tn=!0}}O=h.callback,O!==null&&(t.flags|=64,z&&(t.flags|=8192),z=a.callbacks,z===null?a.callbacks=[O]:z.push(O))}else z={lane:O,tag:h.tag,payload:h.payload,callback:h.callback,next:null},D===null?(A=D=z,y=L):D=D.next=z,f|=O;if(h=h.next,h===null){if(h=a.shared.pending,h===null)break;z=h,h=z.next,z.next=null,a.lastBaseUpdate=z,a.shared.pending=null}}while(!0);D===null&&(y=L),a.baseState=y,a.firstBaseUpdate=A,a.lastBaseUpdate=D,u===null&&(a.shared.lanes=0),Mn|=f,t.lanes=f,t.memoizedState=L}}function Uf(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Bf(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Uf(n[t],e)}var Rl=v(null),xi=v(0);function wf(t,e){t=hn,Y(xi,t),Y(Rl,e),hn=t|e.baseLanes}function Ss(){Y(xi,hn),Y(Rl,Rl.current)}function _s(){hn=xi.current,M(Rl),M(xi)}var _e=v(null),Ue=null;function Cn(t){var e=t.alternate;Y(qt,qt.current&1),Y(_e,t),Ue===null&&(e===null||Rl.current!==null||e.memoizedState!==null)&&(Ue=t)}function Es(t){Y(qt,qt.current),Y(_e,t),Ue===null&&(Ue=t)}function Lf(t){t.tag===22?(Y(qt,qt.current),Y(_e,t),Ue===null&&(Ue=t)):Nn()}function Nn(){Y(qt,qt.current),Y(_e,_e.current)}function Ee(t){M(_e),Ue===t&&(Ue=null),M(qt)}var qt=v(0);function Ai(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Oc(n)||zc(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ln=0,ct=null,Nt=null,Qt=null,Ci=!1,jl=!1,ll=!1,Ni=0,ba=0,Dl=null,Qy=0;function wt(){throw Error(r(321))}function Ts(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!be(t[n],e[n]))return!1;return!0}function xs(t,e,n,l,a,u){return ln=u,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,_.H=t===null||t.memoizedState===null?_o:qs,ll=!1,u=n(l,a),ll=!1,jl&&(u=qf(e,n,l,a)),Hf(t),u}function Hf(t){_.H=Ea;var e=Nt!==null&&Nt.next!==null;if(ln=0,Qt=Nt=ct=null,Ci=!1,ba=0,Dl=null,e)throw Error(r(300));t===null||Vt||(t=t.dependencies,t!==null&&pi(t)&&(Vt=!0))}function qf(t,e,n,l){ct=t;var a=0;do{if(jl&&(Dl=null),ba=0,jl=!1,25<=a)throw Error(r(301));if(a+=1,Qt=Nt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}_.H=Eo,u=e(n,l)}while(jl);return u}function Vy(){var t=_.H,e=t.useState()[0];return e=typeof e.then=="function"?Sa(e):e,t=t.useState()[0],(Nt!==null?Nt.memoizedState:null)!==t&&(ct.flags|=1024),e}function As(){var t=Ni!==0;return Ni=0,t}function Cs(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Ns(t){if(Ci){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ci=!1}ln=0,Qt=Nt=ct=null,jl=!1,ba=Ni=0,Dl=null}function ue(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qt===null?ct.memoizedState=Qt=t:Qt=Qt.next=t,Qt}function Yt(){if(Nt===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Nt.next;var e=Qt===null?ct.memoizedState:Qt.next;if(e!==null)Qt=e,Nt=t;else{if(t===null)throw ct.alternate===null?Error(r(467)):Error(r(310));Nt=t,t={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},Qt===null?ct.memoizedState=Qt=t:Qt=Qt.next=t}return Qt}function Oi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sa(t){var e=ba;return ba+=1,Dl===null&&(Dl=[]),t=zf(Dl,t,e),e=ct,(Qt===null?e.memoizedState:Qt.next)===null&&(e=e.alternate,_.H=e===null||e.memoizedState===null?_o:qs),t}function zi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Sa(t);if(t.$$typeof===lt)return ee(t)}throw Error(r(438,String(t)))}function Os(t){var e=null,n=ct.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ct.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Oi(),ct.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=bt;return e.index++,n}function an(t,e){return typeof e=="function"?e(t):e}function Mi(t){var e=Yt();return zs(e,Nt,t)}function zs(t,e,n){var l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var a=t.baseQueue,u=l.pending;if(u!==null){if(a!==null){var f=a.next;a.next=u.next,u.next=f}e.baseQueue=a=u,l.pending=null}if(u=t.baseState,a===null)t.memoizedState=u;else{e=a.next;var h=f=null,y=null,A=e,D=!1;do{var L=A.lane&-536870913;if(L!==A.lane?(dt&L)===L:(ln&L)===L){var O=A.revertLane;if(O===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),L===Nl&&(D=!0);else if((ln&O)===O){A=A.next,O===Nl&&(D=!0);continue}else L={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},y===null?(h=y=L,f=u):y=y.next=L,ct.lanes|=O,Mn|=O;L=A.action,ll&&n(u,L),u=A.hasEagerState?A.eagerState:n(u,L)}else O={lane:L,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},y===null?(h=y=O,f=u):y=y.next=O,ct.lanes|=L,Mn|=L;A=A.next}while(A!==null&&A!==e);if(y===null?f=u:y.next=h,!be(u,t.memoizedState)&&(Vt=!0,D&&(n=Ol,n!==null)))throw n;t.memoizedState=u,t.baseState=f,t.baseQueue=y,l.lastRenderedState=u}return a===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Ms(t){var e=Yt(),n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=t;var l=n.dispatch,a=n.pending,u=e.memoizedState;if(a!==null){n.pending=null;var f=a=a.next;do u=t(u,f.action),f=f.next;while(f!==a);be(u,e.memoizedState)||(Vt=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,l]}function Yf(t,e,n){var l=ct,a=Yt(),u=yt;if(u){if(n===void 0)throw Error(r(407));n=n()}else n=e();var f=!be((Nt||a).memoizedState,n);if(f&&(a.memoizedState=n,Vt=!0),a=a.queue,Ds(Qf.bind(null,l,a,t),[t]),a.getSnapshot!==e||f||Qt!==null&&Qt.memoizedState.tag&1){if(l.flags|=2048,Ul(9,{destroy:void 0},Xf.bind(null,l,a,n,e),null),Mt===null)throw Error(r(349));u||(ln&127)!==0||Gf(l,e,n)}return n}function Gf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=Oi(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Xf(t,e,n,l){e.value=n,e.getSnapshot=l,Vf(e)&&kf(t)}function Qf(t,e,n){return n(function(){Vf(e)&&kf(t)})}function Vf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!be(t,n)}catch{return!0}}function kf(t){var e=Jn(t,2);e!==null&&de(e,t,2)}function Rs(t){var e=ue();if(typeof t=="function"){var n=t;if(t=n(),ll){vn(!0);try{n()}finally{vn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:an,lastRenderedState:t},e}function Zf(t,e,n,l){return t.baseState=n,zs(t,Nt,typeof l=="function"?l:an)}function ky(t,e,n,l,a){if(Di(t))throw Error(r(485));if(t=e.action,t!==null){var u={payload:a,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){u.listeners.push(f)}};_.T!==null?n(!0):u.isTransition=!1,l(u),n=e.pending,n===null?(u.next=e.pending=u,Kf(e,u)):(u.next=n.next,e.pending=n.next=u)}}function Kf(t,e){var n=e.action,l=e.payload,a=t.state;if(e.isTransition){var u=_.T,f={};_.T=f;try{var h=n(a,l),y=_.S;y!==null&&y(f,h),Jf(t,e,h)}catch(A){js(t,e,A)}finally{u!==null&&f.types!==null&&(u.types=f.types),_.T=u}}else try{u=n(a,l),Jf(t,e,u)}catch(A){js(t,e,A)}}function Jf(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){$f(t,e,l)},function(l){return js(t,e,l)}):$f(t,e,n)}function $f(t,e,n){e.status="fulfilled",e.value=n,Wf(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Kf(t,n)))}function js(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,Wf(e),e=e.next;while(e!==l)}t.action=null}function Wf(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Ff(t,e){return e}function If(t,e){if(yt){var n=Mt.formState;if(n!==null){t:{var l=ct;if(yt){if(jt){e:{for(var a=jt,u=De;a.nodeType!==8;){if(!u){a=null;break e}if(a=Be(a.nextSibling),a===null){a=null;break e}}u=a.data,a=u==="F!"||u==="F"?a:null}if(a){jt=Be(a.nextSibling),l=a.data==="F!";break t}}_n(l)}l=!1}l&&(e=n[0])}}return n=ue(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ff,lastRenderedState:e},n.queue=l,n=go.bind(null,ct,l),l.dispatch=n,l=Rs(!1),u=Hs.bind(null,ct,!1,l.queue),l=ue(),a={state:e,dispatch:null,action:t,pending:null},l.queue=a,n=ky.bind(null,ct,a,u,n),a.dispatch=n,l.memoizedState=t,[e,n,!1]}function Pf(t){var e=Yt();return to(e,Nt,t)}function to(t,e,n){if(e=zs(t,e,Ff)[0],t=Mi(an)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Sa(e)}catch(f){throw f===zl?Si:f}else l=e;e=Yt();var a=e.queue,u=a.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,Ul(9,{destroy:void 0},Zy.bind(null,a,n),null)),[l,u,t]}function Zy(t,e){t.action=e}function eo(t){var e=Yt(),n=Nt;if(n!==null)return to(e,n,t);Yt(),e=e.memoizedState,n=Yt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function Ul(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ct.updateQueue,e===null&&(e=Oi(),ct.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function no(){return Yt().memoizedState}function Ri(t,e,n,l){var a=ue();ct.flags|=t,a.memoizedState=Ul(1|e,{destroy:void 0},n,l===void 0?null:l)}function ji(t,e,n,l){var a=Yt();l=l===void 0?null:l;var u=a.memoizedState.inst;Nt!==null&&l!==null&&Ts(l,Nt.memoizedState.deps)?a.memoizedState=Ul(e,u,n,l):(ct.flags|=t,a.memoizedState=Ul(1|e,u,n,l))}function lo(t,e){Ri(8390656,8,t,e)}function Ds(t,e){ji(2048,8,t,e)}function Ky(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=Oi(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function ao(t){var e=Yt().memoizedState;return Ky({ref:e,nextImpl:t}),function(){if((Et&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function io(t,e){return ji(4,2,t,e)}function uo(t,e){return ji(4,4,t,e)}function so(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function co(t,e,n){n=n!=null?n.concat([t]):null,ji(4,4,so.bind(null,e,t),n)}function Us(){}function ro(t,e){var n=Yt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&Ts(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function fo(t,e){var n=Yt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&Ts(e,l[1]))return l[0];if(l=t(),ll){vn(!0);try{t()}finally{vn(!1)}}return n.memoizedState=[l,e],l}function Bs(t,e,n){return n===void 0||(ln&1073741824)!==0&&(dt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=hh(),ct.lanes|=t,Mn|=t,n)}function oo(t,e,n,l){return be(n,e)?n:Rl.current!==null?(t=Bs(t,n,l),be(t,e)||(Vt=!0),t):(ln&42)===0||(ln&1073741824)!==0&&(dt&261930)===0?(Vt=!0,t.memoizedState=n):(t=hh(),ct.lanes|=t,Mn|=t,e)}function ho(t,e,n,l,a){var u=j.p;j.p=u!==0&&8>u?u:8;var f=_.T,h={};_.T=h,Hs(t,!1,e,n);try{var y=a(),A=_.S;if(A!==null&&A(h,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var D=Xy(y,l);_a(t,e,D,Ae(t))}else _a(t,e,l,Ae(t))}catch(L){_a(t,e,{then:function(){},status:"rejected",reason:L},Ae())}finally{j.p=u,f!==null&&h.types!==null&&(f.types=h.types),_.T=f}}function Jy(){}function ws(t,e,n,l){if(t.tag!==5)throw Error(r(476));var a=mo(t).queue;ho(t,a,e,w,n===null?Jy:function(){return yo(t),n(l)})}function mo(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:w,baseState:w,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:an,lastRenderedState:w},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:an,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function yo(t){var e=mo(t);e.next===null&&(e=t.alternate.memoizedState),_a(t,e.next.queue,{},Ae())}function Ls(){return ee(Ha)}function vo(){return Yt().memoizedState}function po(){return Yt().memoizedState}function $y(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ae();t=xn(n);var l=An(e,t,n);l!==null&&(de(l,e,n),va(l,e,n)),e={cache:hs()},t.payload=e;return}e=e.return}}function Wy(t,e,n){var l=Ae();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Di(t)?bo(e,n):(n=es(t,e,n,l),n!==null&&(de(n,t,l),So(n,e,l)))}function go(t,e,n){var l=Ae();_a(t,e,n,l)}function _a(t,e,n,l){var a={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Di(t))bo(e,a);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var f=e.lastRenderedState,h=u(f,n);if(a.hasEagerState=!0,a.eagerState=h,be(h,f))return di(t,e,a,0),Mt===null&&hi(),!1}catch{}finally{}if(n=es(t,e,a,l),n!==null)return de(n,t,l),So(n,e,l),!0}return!1}function Hs(t,e,n,l){if(l={lane:2,revertLane:vc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Di(t)){if(e)throw Error(r(479))}else e=es(t,n,l,2),e!==null&&de(e,t,2)}function Di(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function bo(t,e){jl=Ci=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function So(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Tr(t,n)}}var Ea={readContext:ee,use:zi,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useLayoutEffect:wt,useInsertionEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useSyncExternalStore:wt,useId:wt,useHostTransitionStatus:wt,useFormState:wt,useActionState:wt,useOptimistic:wt,useMemoCache:wt,useCacheRefresh:wt};Ea.useEffectEvent=wt;var _o={readContext:ee,use:zi,useCallback:function(t,e){return ue().memoizedState=[t,e===void 0?null:e],t},useContext:ee,useEffect:lo,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Ri(4194308,4,so.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Ri(4194308,4,t,e)},useInsertionEffect:function(t,e){Ri(4,2,t,e)},useMemo:function(t,e){var n=ue();e=e===void 0?null:e;var l=t();if(ll){vn(!0);try{t()}finally{vn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=ue();if(n!==void 0){var a=n(e);if(ll){vn(!0);try{n(e)}finally{vn(!1)}}}else a=e;return l.memoizedState=l.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},l.queue=t,t=t.dispatch=Wy.bind(null,ct,t),[l.memoizedState,t]},useRef:function(t){var e=ue();return t={current:t},e.memoizedState=t},useState:function(t){t=Rs(t);var e=t.queue,n=go.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Us,useDeferredValue:function(t,e){var n=ue();return Bs(n,t,e)},useTransition:function(){var t=Rs(!1);return t=ho.bind(null,ct,t.queue,!0,!1),ue().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ct,a=ue();if(yt){if(n===void 0)throw Error(r(407));n=n()}else{if(n=e(),Mt===null)throw Error(r(349));(dt&127)!==0||Gf(l,e,n)}a.memoizedState=n;var u={value:n,getSnapshot:e};return a.queue=u,lo(Qf.bind(null,l,u,t),[t]),l.flags|=2048,Ul(9,{destroy:void 0},Xf.bind(null,l,u,n,e),null),n},useId:function(){var t=ue(),e=Mt.identifierPrefix;if(yt){var n=ke,l=Ve;n=(l&~(1<<32-ge(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Ni++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Qy++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Ls,useFormState:If,useActionState:If,useOptimistic:function(t){var e=ue();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Hs.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:Os,useCacheRefresh:function(){return ue().memoizedState=$y.bind(null,ct)},useEffectEvent:function(t){var e=ue(),n={impl:t};return e.memoizedState=n,function(){if((Et&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},qs={readContext:ee,use:zi,useCallback:ro,useContext:ee,useEffect:Ds,useImperativeHandle:co,useInsertionEffect:io,useLayoutEffect:uo,useMemo:fo,useReducer:Mi,useRef:no,useState:function(){return Mi(an)},useDebugValue:Us,useDeferredValue:function(t,e){var n=Yt();return oo(n,Nt.memoizedState,t,e)},useTransition:function(){var t=Mi(an)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Sa(t),e]},useSyncExternalStore:Yf,useId:vo,useHostTransitionStatus:Ls,useFormState:Pf,useActionState:Pf,useOptimistic:function(t,e){var n=Yt();return Zf(n,Nt,t,e)},useMemoCache:Os,useCacheRefresh:po};qs.useEffectEvent=ao;var Eo={readContext:ee,use:zi,useCallback:ro,useContext:ee,useEffect:Ds,useImperativeHandle:co,useInsertionEffect:io,useLayoutEffect:uo,useMemo:fo,useReducer:Ms,useRef:no,useState:function(){return Ms(an)},useDebugValue:Us,useDeferredValue:function(t,e){var n=Yt();return Nt===null?Bs(n,t,e):oo(n,Nt.memoizedState,t,e)},useTransition:function(){var t=Ms(an)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Sa(t),e]},useSyncExternalStore:Yf,useId:vo,useHostTransitionStatus:Ls,useFormState:eo,useActionState:eo,useOptimistic:function(t,e){var n=Yt();return Nt!==null?Zf(n,Nt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Os,useCacheRefresh:po};Eo.useEffectEvent=ao;function Ys(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:C({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Gs={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Ae(),a=xn(l);a.payload=e,n!=null&&(a.callback=n),e=An(t,a,l),e!==null&&(de(e,t,l),va(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Ae(),a=xn(l);a.tag=1,a.payload=e,n!=null&&(a.callback=n),e=An(t,a,l),e!==null&&(de(e,t,l),va(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ae(),l=xn(n);l.tag=2,e!=null&&(l.callback=e),e=An(t,l,n),e!==null&&(de(e,t,n),va(e,t,n))}};function To(t,e,n,l,a,u,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,u,f):e.prototype&&e.prototype.isPureReactComponent?!ca(n,l)||!ca(a,u):!0}function xo(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&Gs.enqueueReplaceState(e,e.state,null)}function al(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=C({},n));for(var a in t)n[a]===void 0&&(n[a]=t[a])}return n}function Ao(t){oi(t)}function Co(t){console.error(t)}function No(t){oi(t)}function Ui(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Oo(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Xs(t,e,n){return n=xn(n),n.tag=3,n.payload={element:null},n.callback=function(){Ui(t,e)},n}function zo(t){return t=xn(t),t.tag=3,t}function Mo(t,e,n,l){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var u=l.value;t.payload=function(){return a(u)},t.callback=function(){Oo(e,n,l)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Oo(e,n,l),typeof a!="function"&&(Rn===null?Rn=new Set([this]):Rn.add(this));var h=l.stack;this.componentDidCatch(l.value,{componentStack:h!==null?h:""})})}function Fy(t,e,n,l,a){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Cl(e,n,a,!0),n=_e.current,n!==null){switch(n.tag){case 31:case 13:return Ue===null?Zi():n.alternate===null&&Lt===0&&(Lt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,l===_i?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),dc(t,l,a)),!1;case 22:return n.flags|=65536,l===_i?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),dc(t,l,a)),!1}throw Error(r(435,n.tag))}return dc(t,l,a),Zi(),!1}if(yt)return e=_e.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,l!==ss&&(t=Error(r(422),{cause:l}),oa(Me(t,n)))):(l!==ss&&(e=Error(r(423),{cause:l}),oa(Me(e,n))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,l=Me(l,n),a=Xs(t.stateNode,l,a),gs(t,a),Lt!==4&&(Lt=2)),!1;var u=Error(r(520),{cause:l});if(u=Me(u,n),Ma===null?Ma=[u]:Ma.push(u),Lt!==4&&(Lt=2),e===null)return!0;l=Me(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=a&-a,n.lanes|=t,t=Xs(n.stateNode,l,t),gs(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Rn===null||!Rn.has(u))))return n.flags|=65536,a&=-a,n.lanes|=a,a=zo(a),Mo(a,t,n,l),gs(n,a),!1}n=n.return}while(n!==null);return!1}var Qs=Error(r(461)),Vt=!1;function ne(t,e,n,l){e.child=t===null?Df(e,null,n,l):nl(e,t.child,n,l)}function Ro(t,e,n,l,a){n=n.render;var u=e.ref;if("ref"in l){var f={};for(var h in l)h!=="ref"&&(f[h]=l[h])}else f=l;return In(e),l=xs(t,e,n,f,u,a),h=As(),t!==null&&!Vt?(Cs(t,e,a),un(t,e,a)):(yt&&h&&is(e),e.flags|=1,ne(t,e,l,a),e.child)}function jo(t,e,n,l,a){if(t===null){var u=n.type;return typeof u=="function"&&!ns(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,Do(t,e,u,l,a)):(t=yi(n.type,null,l,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Fs(t,a)){var f=u.memoizedProps;if(n=n.compare,n=n!==null?n:ca,n(f,l)&&t.ref===e.ref)return un(t,e,a)}return e.flags|=1,t=Pe(u,l),t.ref=e.ref,t.return=e,e.child=t}function Do(t,e,n,l,a){if(t!==null){var u=t.memoizedProps;if(ca(u,l)&&t.ref===e.ref)if(Vt=!1,e.pendingProps=l=u,Fs(t,a))(t.flags&131072)!==0&&(Vt=!0);else return e.lanes=t.lanes,un(t,e,a)}return Vs(t,e,n,l,a)}function Uo(t,e,n,l){var a=l.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,t!==null){for(l=e.child=t.child,a=0;l!==null;)a=a|l.lanes|l.childLanes,l=l.sibling;l=a&~u}else l=0,e.child=null;return Bo(t,e,u,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&bi(e,u!==null?u.cachePool:null),u!==null?wf(e,u):Ss(),Lf(e);else return l=e.lanes=536870912,Bo(t,e,u!==null?u.baseLanes|n:n,n,l)}else u!==null?(bi(e,u.cachePool),wf(e,u),Nn(),e.memoizedState=null):(t!==null&&bi(e,null),Ss(),Nn());return ne(t,e,a,n),e.child}function Ta(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Bo(t,e,n,l,a){var u=ms();return u=u===null?null:{parent:Xt._currentValue,pool:u},e.memoizedState={baseLanes:n,cachePool:u},t!==null&&bi(e,null),Ss(),Lf(e),t!==null&&Cl(t,e,l,!0),e.childLanes=a,null}function Bi(t,e){return e=Li({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function wo(t,e,n){return nl(e,t.child,null,n),t=Bi(e,e.pendingProps),t.flags|=2,Ee(e),e.memoizedState=null,t}function Iy(t,e,n){var l=e.pendingProps,a=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(yt){if(l.mode==="hidden")return t=Bi(e,l),e.lanes=536870912,Ta(null,t);if(Es(e),(t=jt)?(t=Jh(t,De),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:bn!==null?{id:Ve,overflow:ke}:null,retryLane:536870912,hydrationErrors:null},n=gf(t),n.return=e,e.child=n,te=e,jt=null)):t=null,t===null)throw _n(e);return e.lanes=536870912,null}return Bi(e,l)}var u=t.memoizedState;if(u!==null){var f=u.dehydrated;if(Es(e),a)if(e.flags&256)e.flags&=-257,e=wo(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(Vt||Cl(t,e,n,!1),a=(n&t.childLanes)!==0,Vt||a){if(l=Mt,l!==null&&(f=xr(l,n),f!==0&&f!==u.retryLane))throw u.retryLane=f,Jn(t,f),de(l,t,f),Qs;Zi(),e=wo(t,e,n)}else t=u.treeContext,jt=Be(f.nextSibling),te=e,yt=!0,Sn=null,De=!1,t!==null&&_f(e,t),e=Bi(e,l),e.flags|=4096;return e}return t=Pe(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function wi(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Vs(t,e,n,l,a){return In(e),n=xs(t,e,n,l,void 0,a),l=As(),t!==null&&!Vt?(Cs(t,e,a),un(t,e,a)):(yt&&l&&is(e),e.flags|=1,ne(t,e,n,a),e.child)}function Lo(t,e,n,l,a,u){return In(e),e.updateQueue=null,n=qf(e,l,n,a),Hf(t),l=As(),t!==null&&!Vt?(Cs(t,e,u),un(t,e,u)):(yt&&l&&is(e),e.flags|=1,ne(t,e,n,u),e.child)}function Ho(t,e,n,l,a){if(In(e),e.stateNode===null){var u=El,f=n.contextType;typeof f=="object"&&f!==null&&(u=ee(f)),u=new n(l,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Gs,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=l,u.state=e.memoizedState,u.refs={},vs(e),f=n.contextType,u.context=typeof f=="object"&&f!==null?ee(f):El,u.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Ys(e,n,f,l),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(f=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),f!==u.state&&Gs.enqueueReplaceState(u,u.state,null),ga(e,l,u,a),pa(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){u=e.stateNode;var h=e.memoizedProps,y=al(n,h);u.props=y;var A=u.context,D=n.contextType;f=El,typeof D=="object"&&D!==null&&(f=ee(D));var L=n.getDerivedStateFromProps;D=typeof L=="function"||typeof u.getSnapshotBeforeUpdate=="function",h=e.pendingProps!==h,D||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h||A!==f)&&xo(e,u,l,f),Tn=!1;var O=e.memoizedState;u.state=O,ga(e,l,u,a),pa(),A=e.memoizedState,h||O!==A||Tn?(typeof L=="function"&&(Ys(e,n,L,l),A=e.memoizedState),(y=Tn||To(e,n,y,l,O,A,f))?(D||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=A),u.props=l,u.state=A,u.context=f,l=y):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{u=e.stateNode,ps(t,e),f=e.memoizedProps,D=al(n,f),u.props=D,L=e.pendingProps,O=u.context,A=n.contextType,y=El,typeof A=="object"&&A!==null&&(y=ee(A)),h=n.getDerivedStateFromProps,(A=typeof h=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==L||O!==y)&&xo(e,u,l,y),Tn=!1,O=e.memoizedState,u.state=O,ga(e,l,u,a),pa();var z=e.memoizedState;f!==L||O!==z||Tn||t!==null&&t.dependencies!==null&&pi(t.dependencies)?(typeof h=="function"&&(Ys(e,n,h,l),z=e.memoizedState),(D=Tn||To(e,n,D,l,O,z,y)||t!==null&&t.dependencies!==null&&pi(t.dependencies))?(A||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,z,y),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,z,y)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=z),u.props=l,u.state=z,u.context=y,l=D):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),l=!1)}return u=l,wi(t,e),l=(e.flags&128)!==0,u||l?(u=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&l?(e.child=nl(e,t.child,null,a),e.child=nl(e,null,n,a)):ne(t,e,n,a),e.memoizedState=u.state,t=e.child):t=un(t,e,a),t}function qo(t,e,n,l){return Wn(),e.flags|=256,ne(t,e,n,l),e.child}var ks={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zs(t){return{baseLanes:t,cachePool:Nf()}}function Ks(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=xe),t}function Yo(t,e,n){var l=e.pendingProps,a=!1,u=(e.flags&128)!==0,f;if((f=u)||(f=t!==null&&t.memoizedState===null?!1:(qt.current&2)!==0),f&&(a=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(yt){if(a?Cn(e):Nn(),(t=jt)?(t=Jh(t,De),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:bn!==null?{id:Ve,overflow:ke}:null,retryLane:536870912,hydrationErrors:null},n=gf(t),n.return=e,e.child=n,te=e,jt=null)):t=null,t===null)throw _n(e);return zc(t)?e.lanes=32:e.lanes=536870912,null}var h=l.children;return l=l.fallback,a?(Nn(),a=e.mode,h=Li({mode:"hidden",children:h},a),l=$n(l,a,n,null),h.return=e,l.return=e,h.sibling=l,e.child=h,l=e.child,l.memoizedState=Zs(n),l.childLanes=Ks(t,f,n),e.memoizedState=ks,Ta(null,l)):(Cn(e),Js(e,h))}var y=t.memoizedState;if(y!==null&&(h=y.dehydrated,h!==null)){if(u)e.flags&256?(Cn(e),e.flags&=-257,e=$s(t,e,n)):e.memoizedState!==null?(Nn(),e.child=t.child,e.flags|=128,e=null):(Nn(),h=l.fallback,a=e.mode,l=Li({mode:"visible",children:l.children},a),h=$n(h,a,n,null),h.flags|=2,l.return=e,h.return=e,l.sibling=h,e.child=l,nl(e,t.child,null,n),l=e.child,l.memoizedState=Zs(n),l.childLanes=Ks(t,f,n),e.memoizedState=ks,e=Ta(null,l));else if(Cn(e),zc(h)){if(f=h.nextSibling&&h.nextSibling.dataset,f)var A=f.dgst;f=A,l=Error(r(419)),l.stack="",l.digest=f,oa({value:l,source:null,stack:null}),e=$s(t,e,n)}else if(Vt||Cl(t,e,n,!1),f=(n&t.childLanes)!==0,Vt||f){if(f=Mt,f!==null&&(l=xr(f,n),l!==0&&l!==y.retryLane))throw y.retryLane=l,Jn(t,l),de(f,t,l),Qs;Oc(h)||Zi(),e=$s(t,e,n)}else Oc(h)?(e.flags|=192,e.child=t.child,e=null):(t=y.treeContext,jt=Be(h.nextSibling),te=e,yt=!0,Sn=null,De=!1,t!==null&&_f(e,t),e=Js(e,l.children),e.flags|=4096);return e}return a?(Nn(),h=l.fallback,a=e.mode,y=t.child,A=y.sibling,l=Pe(y,{mode:"hidden",children:l.children}),l.subtreeFlags=y.subtreeFlags&65011712,A!==null?h=Pe(A,h):(h=$n(h,a,n,null),h.flags|=2),h.return=e,l.return=e,l.sibling=h,e.child=l,Ta(null,l),l=e.child,h=t.child.memoizedState,h===null?h=Zs(n):(a=h.cachePool,a!==null?(y=Xt._currentValue,a=a.parent!==y?{parent:y,pool:y}:a):a=Nf(),h={baseLanes:h.baseLanes|n,cachePool:a}),l.memoizedState=h,l.childLanes=Ks(t,f,n),e.memoizedState=ks,Ta(t.child,l)):(Cn(e),n=t.child,t=n.sibling,n=Pe(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function Js(t,e){return e=Li({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Li(t,e){return t=Se(22,t,null,e),t.lanes=0,t}function $s(t,e,n){return nl(e,t.child,null,n),t=Js(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Go(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),fs(t.return,e,n)}function Ws(t,e,n,l,a,u){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:a,treeForkCount:u}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=n,f.tailMode=a,f.treeForkCount=u)}function Xo(t,e,n){var l=e.pendingProps,a=l.revealOrder,u=l.tail;l=l.children;var f=qt.current,h=(f&2)!==0;if(h?(f=f&1|2,e.flags|=128):f&=1,Y(qt,f),ne(t,e,l,n),l=yt?fa:0,!h&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Go(t,n,e);else if(t.tag===19)Go(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(a){case"forwards":for(n=e.child,a=null;n!==null;)t=n.alternate,t!==null&&Ai(t)===null&&(a=n),n=n.sibling;n=a,n===null?(a=e.child,e.child=null):(a=n.sibling,n.sibling=null),Ws(e,!1,a,n,u,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&Ai(t)===null){e.child=a;break}t=a.sibling,a.sibling=n,n=a,a=t}Ws(e,!0,n,null,u,l);break;case"together":Ws(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function un(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Mn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Cl(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,n=Pe(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Pe(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Fs(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&pi(t)))}function Py(t,e,n){switch(e.tag){case 3:Bt(e,e.stateNode.containerInfo),En(e,Xt,t.memoizedState.cache),Wn();break;case 27:case 5:K(e);break;case 4:Bt(e,e.stateNode.containerInfo);break;case 10:En(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Es(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Cn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Yo(t,e,n):(Cn(e),t=un(t,e,n),t!==null?t.sibling:null);Cn(e);break;case 19:var a=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Cl(t,e,n,!1),l=(n&e.childLanes)!==0),a){if(l)return Xo(t,e,n);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Y(qt,qt.current),l)break;return null;case 22:return e.lanes=0,Uo(t,e,n,e.pendingProps);case 24:En(e,Xt,t.memoizedState.cache)}return un(t,e,n)}function Qo(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Vt=!0;else{if(!Fs(t,n)&&(e.flags&128)===0)return Vt=!1,Py(t,e,n);Vt=(t.flags&131072)!==0}else Vt=!1,yt&&(e.flags&1048576)!==0&&Sf(e,fa,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=tl(e.elementType),e.type=t,typeof t=="function")ns(t)?(l=al(t,l),e.tag=1,e=Ho(null,e,t,l,n)):(e.tag=0,e=Vs(null,e,t,l,n));else{if(t!=null){var a=t.$$typeof;if(a===pt){e.tag=11,e=Ro(null,e,t,l,n);break t}else if(a===at){e.tag=14,e=jo(null,e,t,l,n);break t}}throw e=P(t)||t,Error(r(306,e,""))}}return e;case 0:return Vs(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,a=al(l,e.pendingProps),Ho(t,e,l,a,n);case 3:t:{if(Bt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));l=e.pendingProps;var u=e.memoizedState;a=u.element,ps(t,e),ga(e,l,null,n);var f=e.memoizedState;if(l=f.cache,En(e,Xt,l),l!==u.cache&&os(e,[Xt],n,!0),pa(),l=f.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=qo(t,e,l,n);break t}else if(l!==a){a=Me(Error(r(424)),e),oa(a),e=qo(t,e,l,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(jt=Be(t.firstChild),te=e,yt=!0,Sn=null,De=!0,n=Df(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Wn(),l===a){e=un(t,e,n);break t}ne(t,e,l,n)}e=e.child}return e;case 26:return wi(t,e),t===null?(n=td(e.type,null,e.pendingProps,null))?e.memoizedState=n:yt||(n=e.type,t=e.pendingProps,l=Pi(it.current).createElement(n),l[Pt]=e,l[se]=t,le(l,n,t),$t(l),e.stateNode=l):e.memoizedState=td(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return K(e),t===null&&yt&&(l=e.stateNode=Fh(e.type,e.pendingProps,it.current),te=e,De=!0,a=jt,Bn(e.type)?(Mc=a,jt=Be(l.firstChild)):jt=a),ne(t,e,e.pendingProps.children,n),wi(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&yt&&((a=l=jt)&&(l=zv(l,e.type,e.pendingProps,De),l!==null?(e.stateNode=l,te=e,jt=Be(l.firstChild),De=!1,a=!0):a=!1),a||_n(e)),K(e),a=e.type,u=e.pendingProps,f=t!==null?t.memoizedProps:null,l=u.children,Ac(a,u)?l=null:f!==null&&Ac(a,f)&&(e.flags|=32),e.memoizedState!==null&&(a=xs(t,e,Vy,null,null,n),Ha._currentValue=a),wi(t,e),ne(t,e,l,n),e.child;case 6:return t===null&&yt&&((t=n=jt)&&(n=Mv(n,e.pendingProps,De),n!==null?(e.stateNode=n,te=e,jt=null,t=!0):t=!1),t||_n(e)),null;case 13:return Yo(t,e,n);case 4:return Bt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=nl(e,null,l,n):ne(t,e,l,n),e.child;case 11:return Ro(t,e,e.type,e.pendingProps,n);case 7:return ne(t,e,e.pendingProps,n),e.child;case 8:return ne(t,e,e.pendingProps.children,n),e.child;case 12:return ne(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,En(e,e.type,l.value),ne(t,e,l.children,n),e.child;case 9:return a=e.type._context,l=e.pendingProps.children,In(e),a=ee(a),l=l(a),e.flags|=1,ne(t,e,l,n),e.child;case 14:return jo(t,e,e.type,e.pendingProps,n);case 15:return Do(t,e,e.type,e.pendingProps,n);case 19:return Xo(t,e,n);case 31:return Iy(t,e,n);case 22:return Uo(t,e,n,e.pendingProps);case 24:return In(e),l=ee(Xt),t===null?(a=ms(),a===null&&(a=Mt,u=hs(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=n),a=u),e.memoizedState={parent:l,cache:a},vs(e),En(e,Xt,a)):((t.lanes&n)!==0&&(ps(t,e),ga(e,null,null,n),pa()),a=t.memoizedState,u=e.memoizedState,a.parent!==l?(a={parent:l,cache:l},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),En(e,Xt,l)):(l=u.cache,En(e,Xt,l),l!==a.cache&&os(e,[Xt],n,!0))),ne(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function sn(t){t.flags|=4}function Is(t,e,n,l,a){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(vh())t.flags|=8192;else throw el=_i,ys}else t.flags&=-16777217}function Vo(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!id(e))if(vh())t.flags|=8192;else throw el=_i,ys}function Hi(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?_r():536870912,t.lanes|=e,Hl|=e)}function xa(t,e){if(!yt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Dt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var a=t.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags&65011712,l|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags,l|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function tv(t,e,n){var l=e.pendingProps;switch(us(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(e),null;case 1:return Dt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),nn(Xt),H(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Al(e)?sn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,cs())),Dt(e),null;case 26:var a=e.type,u=e.memoizedState;return t===null?(sn(e),u!==null?(Dt(e),Vo(e,u)):(Dt(e),Is(e,a,null,l,n))):u?u!==t.memoizedState?(sn(e),Dt(e),Vo(e,u)):(Dt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&sn(e),Dt(e),Is(e,a,t,l,n)),null;case 27:if(Rt(e),n=it.current,a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&sn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Dt(e),null}t=G.current,Al(e)?Ef(e):(t=Fh(a,l,n),e.stateNode=t,sn(e))}return Dt(e),null;case 5:if(Rt(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&sn(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Dt(e),null}if(u=G.current,Al(e))Ef(e);else{var f=Pi(it.current);switch(u){case 1:u=f.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:u=f.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":u=f.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":u=f.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":u=f.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?f.createElement(a,{is:l.is}):f.createElement(a)}}u[Pt]=e,u[se]=l;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)u.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=u;t:switch(le(u,a,l),a){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&sn(e)}}return Dt(e),Is(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&sn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(r(166));if(t=it.current,Al(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,a=te,a!==null)switch(a.tag){case 27:case 5:l=a.memoizedProps}t[Pt]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Yh(t.nodeValue,n)),t||_n(e,!0)}else t=Pi(t).createTextNode(l),t[Pt]=e,e.stateNode=t}return Dt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Al(e),n!==null){if(t===null){if(!l)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[Pt]=e}else Wn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Dt(e),t=!1}else n=cs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Ee(e),e):(Ee(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Dt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=Al(e),l!==null&&l.dehydrated!==null){if(t===null){if(!a)throw Error(r(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));a[Pt]=e}else Wn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Dt(e),a=!1}else a=cs(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(Ee(e),e):(Ee(e),null)}return Ee(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,a=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(a=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==a&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Hi(e,e.updateQueue),Dt(e),null);case 4:return H(),t===null&&Sc(e.stateNode.containerInfo),Dt(e),null;case 10:return nn(e.type),Dt(e),null;case 19:if(M(qt),l=e.memoizedState,l===null)return Dt(e),null;if(a=(e.flags&128)!==0,u=l.rendering,u===null)if(a)xa(l,!1);else{if(Lt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Ai(t),u!==null){for(e.flags|=128,xa(l,!1),t=u.updateQueue,e.updateQueue=t,Hi(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)pf(n,t),n=n.sibling;return Y(qt,qt.current&1|2),yt&&tn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&ve()>Qi&&(e.flags|=128,a=!0,xa(l,!1),e.lanes=4194304)}else{if(!a)if(t=Ai(u),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,Hi(e,t),xa(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!yt)return Dt(e),null}else 2*ve()-l.renderingStartTime>Qi&&n!==536870912&&(e.flags|=128,a=!0,xa(l,!1),e.lanes=4194304);l.isBackwards?(u.sibling=e.child,e.child=u):(t=l.last,t!==null?t.sibling=u:e.child=u,l.last=u)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ve(),t.sibling=null,n=qt.current,Y(qt,a?n&1|2:n&1),yt&&tn(e,l.treeForkCount),t):(Dt(e),null);case 22:case 23:return Ee(e),_s(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(Dt(e),e.subtreeFlags&6&&(e.flags|=8192)):Dt(e),n=e.updateQueue,n!==null&&Hi(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&M(Pn),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),nn(Xt),Dt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function ev(t,e){switch(us(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return nn(Xt),H(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Rt(e),null;case 31:if(e.memoizedState!==null){if(Ee(e),e.alternate===null)throw Error(r(340));Wn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ee(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Wn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return M(qt),null;case 4:return H(),null;case 10:return nn(e.type),null;case 22:case 23:return Ee(e),_s(),t!==null&&M(Pn),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return nn(Xt),null;case 25:return null;default:return null}}function ko(t,e){switch(us(e),e.tag){case 3:nn(Xt),H();break;case 26:case 27:case 5:Rt(e);break;case 4:H();break;case 31:e.memoizedState!==null&&Ee(e);break;case 13:Ee(e);break;case 19:M(qt);break;case 10:nn(e.type);break;case 22:case 23:Ee(e),_s(),t!==null&&M(Pn);break;case 24:nn(Xt)}}function Aa(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var a=l.next;n=a;do{if((n.tag&t)===t){l=void 0;var u=n.create,f=n.inst;l=u(),f.destroy=l}n=n.next}while(n!==a)}}catch(h){At(e,e.return,h)}}function On(t,e,n){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var u=a.next;l=u;do{if((l.tag&t)===t){var f=l.inst,h=f.destroy;if(h!==void 0){f.destroy=void 0,a=e;var y=n,A=h;try{A()}catch(D){At(a,y,D)}}}l=l.next}while(l!==u)}}catch(D){At(e,e.return,D)}}function Zo(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Bf(e,n)}catch(l){At(t,t.return,l)}}}function Ko(t,e,n){n.props=al(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){At(t,e,l)}}function Ca(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(a){At(t,e,a)}}function Ze(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(a){At(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){At(t,e,a)}else n.current=null}function Jo(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(a){At(t,t.return,a)}}function Ps(t,e,n){try{var l=t.stateNode;Tv(l,t.type,n,e),l[se]=e}catch(a){At(t,t.return,a)}}function $o(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Bn(t.type)||t.tag===4}function tc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||$o(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Bn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ec(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Fe));else if(l!==4&&(l===27&&Bn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(ec(t,e,n),t=t.sibling;t!==null;)ec(t,e,n),t=t.sibling}function qi(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&Bn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(qi(t,e,n),t=t.sibling;t!==null;)qi(t,e,n),t=t.sibling}function Wo(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);le(e,l,n),e[Pt]=t,e[se]=n}catch(u){At(t,t.return,u)}}var cn=!1,kt=!1,nc=!1,Fo=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function nv(t,e){if(t=t.containerInfo,Tc=uu,t=cf(t),$u(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var a=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var f=0,h=-1,y=-1,A=0,D=0,L=t,O=null;e:for(;;){for(var z;L!==n||a!==0&&L.nodeType!==3||(h=f+a),L!==u||l!==0&&L.nodeType!==3||(y=f+l),L.nodeType===3&&(f+=L.nodeValue.length),(z=L.firstChild)!==null;)O=L,L=z;for(;;){if(L===t)break e;if(O===n&&++A===a&&(h=f),O===u&&++D===l&&(y=f),(z=L.nextSibling)!==null)break;L=O,O=L.parentNode}L=z}n=h===-1||y===-1?null:{start:h,end:y}}else n=null}n=n||{start:0,end:0}}else n=null;for(xc={focusedElem:t,selectionRange:n},uu=!1,Wt=e;Wt!==null;)if(e=Wt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Wt=t;else for(;Wt!==null;){switch(e=Wt,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)a=t[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,a=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var J=al(n.type,a);t=l.getSnapshotBeforeUpdate(J,u),l.__reactInternalSnapshotBeforeUpdate=t}catch(nt){At(n,n.return,nt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Nc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Nc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,Wt=t;break}Wt=e.return}}function Io(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:fn(t,n),l&4&&Aa(5,n);break;case 1:if(fn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){At(n,n.return,f)}else{var a=al(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){At(n,n.return,f)}}l&64&&Zo(n),l&512&&Ca(n,n.return);break;case 3:if(fn(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Bf(t,e)}catch(f){At(n,n.return,f)}}break;case 27:e===null&&l&4&&Wo(n);case 26:case 5:fn(t,n),e===null&&l&4&&Jo(n),l&512&&Ca(n,n.return);break;case 12:fn(t,n);break;case 31:fn(t,n),l&4&&eh(t,n);break;case 13:fn(t,n),l&4&&nh(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=ov.bind(null,n),Rv(t,n))));break;case 22:if(l=n.memoizedState!==null||cn,!l){e=e!==null&&e.memoizedState!==null||kt,a=cn;var u=kt;cn=l,(kt=e)&&!u?on(t,n,(n.subtreeFlags&8772)!==0):fn(t,n),cn=a,kt=u}break;case 30:break;default:fn(t,n)}}function Po(t){var e=t.alternate;e!==null&&(t.alternate=null,Po(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ju(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ut=null,re=!1;function rn(t,e,n){for(n=n.child;n!==null;)th(t,e,n),n=n.sibling}function th(t,e,n){if(pe&&typeof pe.onCommitFiberUnmount=="function")try{pe.onCommitFiberUnmount(Wl,n)}catch{}switch(n.tag){case 26:kt||Ze(n,e),rn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:kt||Ze(n,e);var l=Ut,a=re;Bn(n.type)&&(Ut=n.stateNode,re=!1),rn(t,e,n),Ba(n.stateNode),Ut=l,re=a;break;case 5:kt||Ze(n,e);case 6:if(l=Ut,a=re,Ut=null,rn(t,e,n),Ut=l,re=a,Ut!==null)if(re)try{(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).removeChild(n.stateNode)}catch(u){At(n,e,u)}else try{Ut.removeChild(n.stateNode)}catch(u){At(n,e,u)}break;case 18:Ut!==null&&(re?(t=Ut,Zh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Zl(t)):Zh(Ut,n.stateNode));break;case 4:l=Ut,a=re,Ut=n.stateNode.containerInfo,re=!0,rn(t,e,n),Ut=l,re=a;break;case 0:case 11:case 14:case 15:On(2,n,e),kt||On(4,n,e),rn(t,e,n);break;case 1:kt||(Ze(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Ko(n,e,l)),rn(t,e,n);break;case 21:rn(t,e,n);break;case 22:kt=(l=kt)||n.memoizedState!==null,rn(t,e,n),kt=l;break;default:rn(t,e,n)}}function eh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Zl(t)}catch(n){At(e,e.return,n)}}}function nh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Zl(t)}catch(n){At(e,e.return,n)}}function lv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Fo),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Fo),e;default:throw Error(r(435,t.tag))}}function Yi(t,e){var n=lv(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var a=hv.bind(null,t,l);l.then(a,a)}})}function fe(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var a=n[l],u=t,f=e,h=f;t:for(;h!==null;){switch(h.tag){case 27:if(Bn(h.type)){Ut=h.stateNode,re=!1;break t}break;case 5:Ut=h.stateNode,re=!1;break t;case 3:case 4:Ut=h.stateNode.containerInfo,re=!0;break t}h=h.return}if(Ut===null)throw Error(r(160));th(u,f,a),Ut=null,re=!1,u=a.alternate,u!==null&&(u.return=null),a.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)lh(e,t),e=e.sibling}var qe=null;function lh(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:fe(e,t),oe(t),l&4&&(On(3,t,t.return),Aa(3,t),On(5,t,t.return));break;case 1:fe(e,t),oe(t),l&512&&(kt||n===null||Ze(n,n.return)),l&64&&cn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var a=qe;if(fe(e,t),oe(t),l&512&&(kt||n===null||Ze(n,n.return)),l&4){var u=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,a=a.ownerDocument||a;e:switch(l){case"title":u=a.getElementsByTagName("title")[0],(!u||u[Pl]||u[Pt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=a.createElement(l),a.head.insertBefore(u,a.querySelector("head > title"))),le(u,l,n),u[Pt]=t,$t(u),l=u;break t;case"link":var f=ld("link","href",a).get(l+(n.href||""));if(f){for(var h=0;h<f.length;h++)if(u=f[h],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(h,1);break e}}u=a.createElement(l),le(u,l,n),a.head.appendChild(u);break;case"meta":if(f=ld("meta","content",a).get(l+(n.content||""))){for(h=0;h<f.length;h++)if(u=f[h],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(h,1);break e}}u=a.createElement(l),le(u,l,n),a.head.appendChild(u);break;default:throw Error(r(468,l))}u[Pt]=t,$t(u),l=u}t.stateNode=l}else ad(a,t.type,t.stateNode);else t.stateNode=nd(a,l,t.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?ad(a,t.type,t.stateNode):nd(a,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Ps(t,t.memoizedProps,n.memoizedProps)}break;case 27:fe(e,t),oe(t),l&512&&(kt||n===null||Ze(n,n.return)),n!==null&&l&4&&Ps(t,t.memoizedProps,n.memoizedProps);break;case 5:if(fe(e,t),oe(t),l&512&&(kt||n===null||Ze(n,n.return)),t.flags&32){a=t.stateNode;try{yl(a,"")}catch(J){At(t,t.return,J)}}l&4&&t.stateNode!=null&&(a=t.memoizedProps,Ps(t,a,n!==null?n.memoizedProps:a)),l&1024&&(nc=!0);break;case 6:if(fe(e,t),oe(t),l&4){if(t.stateNode===null)throw Error(r(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(J){At(t,t.return,J)}}break;case 3:if(nu=null,a=qe,qe=tu(e.containerInfo),fe(e,t),qe=a,oe(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Zl(e.containerInfo)}catch(J){At(t,t.return,J)}nc&&(nc=!1,ah(t));break;case 4:l=qe,qe=tu(t.stateNode.containerInfo),fe(e,t),oe(t),qe=l;break;case 12:fe(e,t),oe(t);break;case 31:fe(e,t),oe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Yi(t,l)));break;case 13:fe(e,t),oe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Xi=ve()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Yi(t,l)));break;case 22:a=t.memoizedState!==null;var y=n!==null&&n.memoizedState!==null,A=cn,D=kt;if(cn=A||a,kt=D||y,fe(e,t),kt=D,cn=A,oe(t),l&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(n===null||y||cn||kt||il(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){y=n=e;try{if(u=y.stateNode,a)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{h=y.stateNode;var L=y.memoizedProps.style,O=L!=null&&L.hasOwnProperty("display")?L.display:null;h.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(J){At(y,y.return,J)}}}else if(e.tag===6){if(n===null){y=e;try{y.stateNode.nodeValue=a?"":y.memoizedProps}catch(J){At(y,y.return,J)}}}else if(e.tag===18){if(n===null){y=e;try{var z=y.stateNode;a?Kh(z,!0):Kh(y.stateNode,!1)}catch(J){At(y,y.return,J)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Yi(t,n))));break;case 19:fe(e,t),oe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Yi(t,l)));break;case 30:break;case 21:break;default:fe(e,t),oe(t)}}function oe(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if($o(l)){n=l;break}l=l.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var a=n.stateNode,u=tc(t);qi(t,u,a);break;case 5:var f=n.stateNode;n.flags&32&&(yl(f,""),n.flags&=-33);var h=tc(t);qi(t,h,f);break;case 3:case 4:var y=n.stateNode.containerInfo,A=tc(t);ec(t,A,y);break;default:throw Error(r(161))}}catch(D){At(t,t.return,D)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function ah(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;ah(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function fn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Io(t,e.alternate,e),e=e.sibling}function il(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:On(4,e,e.return),il(e);break;case 1:Ze(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Ko(e,e.return,n),il(e);break;case 27:Ba(e.stateNode);case 26:case 5:Ze(e,e.return),il(e);break;case 22:e.memoizedState===null&&il(e);break;case 30:il(e);break;default:il(e)}t=t.sibling}}function on(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,a=t,u=e,f=u.flags;switch(u.tag){case 0:case 11:case 15:on(a,u,n),Aa(4,u);break;case 1:if(on(a,u,n),l=u,a=l.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(A){At(l,l.return,A)}if(l=u,a=l.updateQueue,a!==null){var h=l.stateNode;try{var y=a.shared.hiddenCallbacks;if(y!==null)for(a.shared.hiddenCallbacks=null,a=0;a<y.length;a++)Uf(y[a],h)}catch(A){At(l,l.return,A)}}n&&f&64&&Zo(u),Ca(u,u.return);break;case 27:Wo(u);case 26:case 5:on(a,u,n),n&&l===null&&f&4&&Jo(u),Ca(u,u.return);break;case 12:on(a,u,n);break;case 31:on(a,u,n),n&&f&4&&eh(a,u);break;case 13:on(a,u,n),n&&f&4&&nh(a,u);break;case 22:u.memoizedState===null&&on(a,u,n),Ca(u,u.return);break;case 30:break;default:on(a,u,n)}e=e.sibling}}function lc(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&ha(n))}function ac(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ha(t))}function Ye(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ih(t,e,n,l),e=e.sibling}function ih(t,e,n,l){var a=e.flags;switch(e.tag){case 0:case 11:case 15:Ye(t,e,n,l),a&2048&&Aa(9,e);break;case 1:Ye(t,e,n,l);break;case 3:Ye(t,e,n,l),a&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ha(t)));break;case 12:if(a&2048){Ye(t,e,n,l),t=e.stateNode;try{var u=e.memoizedProps,f=u.id,h=u.onPostCommit;typeof h=="function"&&h(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(y){At(e,e.return,y)}}else Ye(t,e,n,l);break;case 31:Ye(t,e,n,l);break;case 13:Ye(t,e,n,l);break;case 23:break;case 22:u=e.stateNode,f=e.alternate,e.memoizedState!==null?u._visibility&2?Ye(t,e,n,l):Na(t,e):u._visibility&2?Ye(t,e,n,l):(u._visibility|=2,Bl(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),a&2048&&lc(f,e);break;case 24:Ye(t,e,n,l),a&2048&&ac(e.alternate,e);break;default:Ye(t,e,n,l)}}function Bl(t,e,n,l,a){for(a=a&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,f=e,h=n,y=l,A=f.flags;switch(f.tag){case 0:case 11:case 15:Bl(u,f,h,y,a),Aa(8,f);break;case 23:break;case 22:var D=f.stateNode;f.memoizedState!==null?D._visibility&2?Bl(u,f,h,y,a):Na(u,f):(D._visibility|=2,Bl(u,f,h,y,a)),a&&A&2048&&lc(f.alternate,f);break;case 24:Bl(u,f,h,y,a),a&&A&2048&&ac(f.alternate,f);break;default:Bl(u,f,h,y,a)}e=e.sibling}}function Na(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,a=l.flags;switch(l.tag){case 22:Na(n,l),a&2048&&lc(l.alternate,l);break;case 24:Na(n,l),a&2048&&ac(l.alternate,l);break;default:Na(n,l)}e=e.sibling}}var Oa=8192;function wl(t,e,n){if(t.subtreeFlags&Oa)for(t=t.child;t!==null;)uh(t,e,n),t=t.sibling}function uh(t,e,n){switch(t.tag){case 26:wl(t,e,n),t.flags&Oa&&t.memoizedState!==null&&Qv(n,qe,t.memoizedState,t.memoizedProps);break;case 5:wl(t,e,n);break;case 3:case 4:var l=qe;qe=tu(t.stateNode.containerInfo),wl(t,e,n),qe=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Oa,Oa=16777216,wl(t,e,n),Oa=l):wl(t,e,n));break;default:wl(t,e,n)}}function sh(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function za(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Wt=l,rh(l,t)}sh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ch(t),t=t.sibling}function ch(t){switch(t.tag){case 0:case 11:case 15:za(t),t.flags&2048&&On(9,t,t.return);break;case 3:za(t);break;case 12:za(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Gi(t)):za(t);break;default:za(t)}}function Gi(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Wt=l,rh(l,t)}sh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:On(8,e,e.return),Gi(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Gi(e));break;default:Gi(e)}t=t.sibling}}function rh(t,e){for(;Wt!==null;){var n=Wt;switch(n.tag){case 0:case 11:case 15:On(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ha(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Wt=l;else t:for(n=t;Wt!==null;){l=Wt;var a=l.sibling,u=l.return;if(Po(l),l===n){Wt=null;break t}if(a!==null){a.return=u,Wt=a;break t}Wt=u}}}var av={getCacheForType:function(t){var e=ee(Xt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ee(Xt).controller.signal}},iv=typeof WeakMap=="function"?WeakMap:Map,Et=0,Mt=null,ot=null,dt=0,xt=0,Te=null,zn=!1,Ll=!1,ic=!1,hn=0,Lt=0,Mn=0,ul=0,uc=0,xe=0,Hl=0,Ma=null,he=null,sc=!1,Xi=0,fh=0,Qi=1/0,Vi=null,Rn=null,Jt=0,jn=null,ql=null,dn=0,cc=0,rc=null,oh=null,Ra=0,fc=null;function Ae(){return(Et&2)!==0&&dt!==0?dt&-dt:_.T!==null?vc():Ar()}function hh(){if(xe===0)if((dt&536870912)===0||yt){var t=Ia;Ia<<=1,(Ia&3932160)===0&&(Ia=262144),xe=t}else xe=536870912;return t=_e.current,t!==null&&(t.flags|=32),xe}function de(t,e,n){(t===Mt&&(xt===2||xt===9)||t.cancelPendingCommit!==null)&&(Yl(t,0),Dn(t,dt,xe,!1)),Il(t,n),((Et&2)===0||t!==Mt)&&(t===Mt&&((Et&2)===0&&(ul|=n),Lt===4&&Dn(t,dt,xe,!1)),Ke(t))}function dh(t,e,n){if((Et&6)!==0)throw Error(r(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Fl(t,e),a=l?cv(t,e):hc(t,e,!0),u=l;do{if(a===0){Ll&&!l&&Dn(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!uv(n)){a=hc(t,e,!1),u=!1;continue}if(a===2){if(u=e,t.errorRecoveryDisabledLanes&u)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var h=t;a=Ma;var y=h.current.memoizedState.isDehydrated;if(y&&(Yl(h,f).flags|=256),f=hc(h,f,!1),f!==2){if(ic&&!y){h.errorRecoveryDisabledLanes|=u,ul|=u,a=4;break t}u=he,he=a,u!==null&&(he===null?he=u:he.push.apply(he,u))}a=f}if(u=!1,a!==2)continue}}if(a===1){Yl(t,0),Dn(t,e,0,!0);break}t:{switch(l=t,u=a,u){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Dn(l,e,xe,!zn);break t;case 2:he=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(a=Xi+300-ve(),10<a)){if(Dn(l,e,xe,!zn),ti(l,0,!0)!==0)break t;dn=e,l.timeoutHandle=Vh(mh.bind(null,l,n,he,Vi,sc,e,xe,ul,Hl,zn,u,"Throttled",-0,0),a);break t}mh(l,n,he,Vi,sc,e,xe,ul,Hl,zn,u,null,-0,0)}}break}while(!0);Ke(t)}function mh(t,e,n,l,a,u,f,h,y,A,D,L,O,z){if(t.timeoutHandle=-1,L=e.subtreeFlags,L&8192||(L&16785408)===16785408){L={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Fe},uh(e,u,L);var J=(u&62914560)===u?Xi-ve():(u&4194048)===u?fh-ve():0;if(J=Vv(L,J),J!==null){dn=u,t.cancelPendingCommit=J(Eh.bind(null,t,e,u,n,l,a,f,h,y,D,L,null,O,z)),Dn(t,u,f,!A);return}}Eh(t,e,u,n,l,a,f,h,y)}function uv(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var a=n[l],u=a.getSnapshot;a=a.value;try{if(!be(u(),a))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Dn(t,e,n,l){e&=~uc,e&=~ul,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var a=e;0<a;){var u=31-ge(a),f=1<<u;l[u]=-1,a&=~f}n!==0&&Er(t,n,e)}function ki(){return(Et&6)===0?(ja(0),!1):!0}function oc(){if(ot!==null){if(xt===0)var t=ot.return;else t=ot,en=Fn=null,Ns(t),Ml=null,ma=0,t=ot;for(;t!==null;)ko(t.alternate,t),t=t.return;ot=null}}function Yl(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Cv(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),dn=0,oc(),Mt=t,ot=n=Pe(t.current,null),dt=e,xt=0,Te=null,zn=!1,Ll=Fl(t,e),ic=!1,Hl=xe=uc=ul=Mn=Lt=0,he=Ma=null,sc=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var a=31-ge(l),u=1<<a;e|=t[a],l&=~u}return hn=e,hi(),n}function yh(t,e){ct=null,_.H=Ea,e===zl||e===Si?(e=Mf(),xt=3):e===ys?(e=Mf(),xt=4):xt=e===Qs?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Te=e,ot===null&&(Lt=1,Ui(t,Me(e,t.current)))}function vh(){var t=_e.current;return t===null?!0:(dt&4194048)===dt?Ue===null:(dt&62914560)===dt||(dt&536870912)!==0?t===Ue:!1}function ph(){var t=_.H;return _.H=Ea,t===null?Ea:t}function gh(){var t=_.A;return _.A=av,t}function Zi(){Lt=4,zn||(dt&4194048)!==dt&&_e.current!==null||(Ll=!0),(Mn&134217727)===0&&(ul&134217727)===0||Mt===null||Dn(Mt,dt,xe,!1)}function hc(t,e,n){var l=Et;Et|=2;var a=ph(),u=gh();(Mt!==t||dt!==e)&&(Vi=null,Yl(t,e)),e=!1;var f=Lt;t:do try{if(xt!==0&&ot!==null){var h=ot,y=Te;switch(xt){case 8:oc(),f=6;break t;case 3:case 2:case 9:case 6:_e.current===null&&(e=!0);var A=xt;if(xt=0,Te=null,Gl(t,h,y,A),n&&Ll){f=0;break t}break;default:A=xt,xt=0,Te=null,Gl(t,h,y,A)}}sv(),f=Lt;break}catch(D){yh(t,D)}while(!0);return e&&t.shellSuspendCounter++,en=Fn=null,Et=l,_.H=a,_.A=u,ot===null&&(Mt=null,dt=0,hi()),f}function sv(){for(;ot!==null;)bh(ot)}function cv(t,e){var n=Et;Et|=2;var l=ph(),a=gh();Mt!==t||dt!==e?(Vi=null,Qi=ve()+500,Yl(t,e)):Ll=Fl(t,e);t:do try{if(xt!==0&&ot!==null){e=ot;var u=Te;e:switch(xt){case 1:xt=0,Te=null,Gl(t,e,u,1);break;case 2:case 9:if(Of(u)){xt=0,Te=null,Sh(e);break}e=function(){xt!==2&&xt!==9||Mt!==t||(xt=7),Ke(t)},u.then(e,e);break t;case 3:xt=7;break t;case 4:xt=5;break t;case 7:Of(u)?(xt=0,Te=null,Sh(e)):(xt=0,Te=null,Gl(t,e,u,7));break;case 5:var f=null;switch(ot.tag){case 26:f=ot.memoizedState;case 5:case 27:var h=ot;if(f?id(f):h.stateNode.complete){xt=0,Te=null;var y=h.sibling;if(y!==null)ot=y;else{var A=h.return;A!==null?(ot=A,Ki(A)):ot=null}break e}}xt=0,Te=null,Gl(t,e,u,5);break;case 6:xt=0,Te=null,Gl(t,e,u,6);break;case 8:oc(),Lt=6;break t;default:throw Error(r(462))}}rv();break}catch(D){yh(t,D)}while(!0);return en=Fn=null,_.H=l,_.A=a,Et=n,ot!==null?0:(Mt=null,dt=0,hi(),Lt)}function rv(){for(;ot!==null&&!jm();)bh(ot)}function bh(t){var e=Qo(t.alternate,t,hn);t.memoizedProps=t.pendingProps,e===null?Ki(t):ot=e}function Sh(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Lo(n,e,e.pendingProps,e.type,void 0,dt);break;case 11:e=Lo(n,e,e.pendingProps,e.type.render,e.ref,dt);break;case 5:Ns(e);default:ko(n,e),e=ot=pf(e,hn),e=Qo(n,e,hn)}t.memoizedProps=t.pendingProps,e===null?Ki(t):ot=e}function Gl(t,e,n,l){en=Fn=null,Ns(e),Ml=null,ma=0;var a=e.return;try{if(Fy(t,a,e,n,dt)){Lt=1,Ui(t,Me(n,t.current)),ot=null;return}}catch(u){if(a!==null)throw ot=a,u;Lt=1,Ui(t,Me(n,t.current)),ot=null;return}e.flags&32768?(yt||l===1?t=!0:Ll||(dt&536870912)!==0?t=!1:(zn=t=!0,(l===2||l===9||l===3||l===6)&&(l=_e.current,l!==null&&l.tag===13&&(l.flags|=16384))),_h(e,t)):Ki(e)}function Ki(t){var e=t;do{if((e.flags&32768)!==0){_h(e,zn);return}t=e.return;var n=tv(e.alternate,e,hn);if(n!==null){ot=n;return}if(e=e.sibling,e!==null){ot=e;return}ot=e=t}while(e!==null);Lt===0&&(Lt=5)}function _h(t,e){do{var n=ev(t.alternate,t);if(n!==null){n.flags&=32767,ot=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ot=t;return}ot=t=n}while(t!==null);Lt=6,ot=null}function Eh(t,e,n,l,a,u,f,h,y){t.cancelPendingCommit=null;do Ji();while(Jt!==0);if((Et&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(u=e.lanes|e.childLanes,u|=ts,Xm(t,n,u,f,h,y),t===Mt&&(ot=Mt=null,dt=0),ql=e,jn=t,dn=n,cc=u,rc=a,oh=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,dv(Wa,function(){return Nh(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=_.T,_.T=null,a=j.p,j.p=2,f=Et,Et|=4;try{nv(t,e,n)}finally{Et=f,j.p=a,_.T=l}}Jt=1,Th(),xh(),Ah()}}function Th(){if(Jt===1){Jt=0;var t=jn,e=ql,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=_.T,_.T=null;var l=j.p;j.p=2;var a=Et;Et|=4;try{lh(e,t);var u=xc,f=cf(t.containerInfo),h=u.focusedElem,y=u.selectionRange;if(f!==h&&h&&h.ownerDocument&&sf(h.ownerDocument.documentElement,h)){if(y!==null&&$u(h)){var A=y.start,D=y.end;if(D===void 0&&(D=A),"selectionStart"in h)h.selectionStart=A,h.selectionEnd=Math.min(D,h.value.length);else{var L=h.ownerDocument||document,O=L&&L.defaultView||window;if(O.getSelection){var z=O.getSelection(),J=h.textContent.length,nt=Math.min(y.start,J),zt=y.end===void 0?nt:Math.min(y.end,J);!z.extend&&nt>zt&&(f=zt,zt=nt,nt=f);var T=uf(h,nt),b=uf(h,zt);if(T&&b&&(z.rangeCount!==1||z.anchorNode!==T.node||z.anchorOffset!==T.offset||z.focusNode!==b.node||z.focusOffset!==b.offset)){var x=L.createRange();x.setStart(T.node,T.offset),z.removeAllRanges(),nt>zt?(z.addRange(x),z.extend(b.node,b.offset)):(x.setEnd(b.node,b.offset),z.addRange(x))}}}}for(L=[],z=h;z=z.parentNode;)z.nodeType===1&&L.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<L.length;h++){var B=L[h];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}uu=!!Tc,xc=Tc=null}finally{Et=a,j.p=l,_.T=n}}t.current=e,Jt=2}}function xh(){if(Jt===2){Jt=0;var t=jn,e=ql,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=_.T,_.T=null;var l=j.p;j.p=2;var a=Et;Et|=4;try{Io(t,e.alternate,e)}finally{Et=a,j.p=l,_.T=n}}Jt=3}}function Ah(){if(Jt===4||Jt===3){Jt=0,Dm();var t=jn,e=ql,n=dn,l=oh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Jt=5:(Jt=0,ql=jn=null,Ch(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(Rn=null),Mu(n),e=e.stateNode,pe&&typeof pe.onCommitFiberRoot=="function")try{pe.onCommitFiberRoot(Wl,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=_.T,a=j.p,j.p=2,_.T=null;try{for(var u=t.onRecoverableError,f=0;f<l.length;f++){var h=l[f];u(h.value,{componentStack:h.stack})}}finally{_.T=e,j.p=a}}(dn&3)!==0&&Ji(),Ke(t),a=t.pendingLanes,(n&261930)!==0&&(a&42)!==0?t===fc?Ra++:(Ra=0,fc=t):Ra=0,ja(0)}}function Ch(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ha(e)))}function Ji(){return Th(),xh(),Ah(),Nh()}function Nh(){if(Jt!==5)return!1;var t=jn,e=cc;cc=0;var n=Mu(dn),l=_.T,a=j.p;try{j.p=32>n?32:n,_.T=null,n=rc,rc=null;var u=jn,f=dn;if(Jt=0,ql=jn=null,dn=0,(Et&6)!==0)throw Error(r(331));var h=Et;if(Et|=4,ch(u.current),ih(u,u.current,f,n),Et=h,ja(0,!1),pe&&typeof pe.onPostCommitFiberRoot=="function")try{pe.onPostCommitFiberRoot(Wl,u)}catch{}return!0}finally{j.p=a,_.T=l,Ch(t,e)}}function Oh(t,e,n){e=Me(n,e),e=Xs(t.stateNode,e,2),t=An(t,e,2),t!==null&&(Il(t,2),Ke(t))}function At(t,e,n){if(t.tag===3)Oh(t,t,n);else for(;e!==null;){if(e.tag===3){Oh(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Rn===null||!Rn.has(l))){t=Me(n,t),n=zo(2),l=An(e,n,2),l!==null&&(Mo(n,l,e,t),Il(l,2),Ke(l));break}}e=e.return}}function dc(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new iv;var a=new Set;l.set(e,a)}else a=l.get(e),a===void 0&&(a=new Set,l.set(e,a));a.has(n)||(ic=!0,a.add(n),t=fv.bind(null,t,e,n),e.then(t,t))}function fv(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Mt===t&&(dt&n)===n&&(Lt===4||Lt===3&&(dt&62914560)===dt&&300>ve()-Xi?(Et&2)===0&&Yl(t,0):uc|=n,Hl===dt&&(Hl=0)),Ke(t)}function zh(t,e){e===0&&(e=_r()),t=Jn(t,e),t!==null&&(Il(t,e),Ke(t))}function ov(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),zh(t,n)}function hv(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,a=t.memoizedState;a!==null&&(n=a.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(e),zh(t,n)}function dv(t,e){return Cu(t,e)}var $i=null,Xl=null,mc=!1,Wi=!1,yc=!1,Un=0;function Ke(t){t!==Xl&&t.next===null&&(Xl===null?$i=Xl=t:Xl=Xl.next=t),Wi=!0,mc||(mc=!0,yv())}function ja(t,e){if(!yc&&Wi){yc=!0;do for(var n=!1,l=$i;l!==null;){if(t!==0){var a=l.pendingLanes;if(a===0)var u=0;else{var f=l.suspendedLanes,h=l.pingedLanes;u=(1<<31-ge(42|t)+1)-1,u&=a&~(f&~h),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Dh(l,u))}else u=dt,u=ti(l,l===Mt?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||Fl(l,u)||(n=!0,Dh(l,u));l=l.next}while(n);yc=!1}}function mv(){Mh()}function Mh(){Wi=mc=!1;var t=0;Un!==0&&Av()&&(t=Un);for(var e=ve(),n=null,l=$i;l!==null;){var a=l.next,u=Rh(l,e);u===0?(l.next=null,n===null?$i=a:n.next=a,a===null&&(Xl=n)):(n=l,(t!==0||(u&3)!==0)&&(Wi=!0)),l=a}Jt!==0&&Jt!==5||ja(t),Un!==0&&(Un=0)}function Rh(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,a=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var f=31-ge(u),h=1<<f,y=a[f];y===-1?((h&n)===0||(h&l)!==0)&&(a[f]=Gm(h,e)):y<=e&&(t.expiredLanes|=h),u&=~h}if(e=Mt,n=dt,n=ti(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(xt===2||xt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Nu(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Fl(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&Nu(l),Mu(n)){case 2:case 8:n=br;break;case 32:n=Wa;break;case 268435456:n=Sr;break;default:n=Wa}return l=jh.bind(null,t),n=Cu(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&Nu(l),t.callbackPriority=2,t.callbackNode=null,2}function jh(t,e){if(Jt!==0&&Jt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Ji()&&t.callbackNode!==n)return null;var l=dt;return l=ti(t,t===Mt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(dh(t,l,e),Rh(t,ve()),t.callbackNode!=null&&t.callbackNode===n?jh.bind(null,t):null)}function Dh(t,e){if(Ji())return null;dh(t,e,!0)}function yv(){Nv(function(){(Et&6)!==0?Cu(gr,mv):Mh()})}function vc(){if(Un===0){var t=Nl;t===0&&(t=Fa,Fa<<=1,(Fa&261888)===0&&(Fa=256)),Un=t}return Un}function Uh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ai(""+t)}function Bh(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function vv(t,e,n,l,a){if(e==="submit"&&n&&n.stateNode===a){var u=Uh((a[se]||null).action),f=l.submitter;f&&(e=(e=f[se]||null)?Uh(e.formAction):f.getAttribute("formAction"),e!==null&&(u=e,f=null));var h=new ci("action","action",null,l,a);t.push({event:h,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Un!==0){var y=f?Bh(a,f):new FormData(a);ws(n,{pending:!0,data:y,method:a.method,action:u},null,y)}}else typeof u=="function"&&(h.preventDefault(),y=f?Bh(a,f):new FormData(a),ws(n,{pending:!0,data:y,method:a.method,action:u},u,y))},currentTarget:a}]})}}for(var pc=0;pc<Pu.length;pc++){var gc=Pu[pc],pv=gc.toLowerCase(),gv=gc[0].toUpperCase()+gc.slice(1);He(pv,"on"+gv)}He(of,"onAnimationEnd"),He(hf,"onAnimationIteration"),He(df,"onAnimationStart"),He("dblclick","onDoubleClick"),He("focusin","onFocus"),He("focusout","onBlur"),He(Uy,"onTransitionRun"),He(By,"onTransitionStart"),He(wy,"onTransitionCancel"),He(mf,"onTransitionEnd"),dl("onMouseEnter",["mouseout","mouseover"]),dl("onMouseLeave",["mouseout","mouseover"]),dl("onPointerEnter",["pointerout","pointerover"]),dl("onPointerLeave",["pointerout","pointerover"]),Vn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Vn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Vn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Vn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Vn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Vn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Da="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Da));function wh(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],a=l.event;l=l.listeners;t:{var u=void 0;if(e)for(var f=l.length-1;0<=f;f--){var h=l[f],y=h.instance,A=h.currentTarget;if(h=h.listener,y!==u&&a.isPropagationStopped())break t;u=h,a.currentTarget=A;try{u(a)}catch(D){oi(D)}a.currentTarget=null,u=y}else for(f=0;f<l.length;f++){if(h=l[f],y=h.instance,A=h.currentTarget,h=h.listener,y!==u&&a.isPropagationStopped())break t;u=h,a.currentTarget=A;try{u(a)}catch(D){oi(D)}a.currentTarget=null,u=y}}}}function ht(t,e){var n=e[Ru];n===void 0&&(n=e[Ru]=new Set);var l=t+"__bubble";n.has(l)||(Lh(e,t,2,!1),n.add(l))}function bc(t,e,n){var l=0;e&&(l|=4),Lh(n,t,l,e)}var Fi="_reactListening"+Math.random().toString(36).slice(2);function Sc(t){if(!t[Fi]){t[Fi]=!0,Or.forEach(function(n){n!=="selectionchange"&&(bv.has(n)||bc(n,!1,t),bc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Fi]||(e[Fi]=!0,bc("selectionchange",!1,e))}}function Lh(t,e,n,l){switch(hd(e)){case 2:var a=Kv;break;case 8:a=Jv;break;default:a=Bc}n=a.bind(null,e,n,t),a=void 0,!Yu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),l?a!==void 0?t.addEventListener(e,n,{capture:!0,passive:a}):t.addEventListener(e,n,!0):a!==void 0?t.addEventListener(e,n,{passive:a}):t.addEventListener(e,n,!1)}function _c(t,e,n,l,a){var u=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var h=l.stateNode.containerInfo;if(h===a)break;if(f===4)for(f=l.return;f!==null;){var y=f.tag;if((y===3||y===4)&&f.stateNode.containerInfo===a)return;f=f.return}for(;h!==null;){if(f=fl(h),f===null)return;if(y=f.tag,y===5||y===6||y===26||y===27){l=u=f;continue t}h=h.parentNode}}l=l.return}Yr(function(){var A=u,D=Hu(n),L=[];t:{var O=yf.get(t);if(O!==void 0){var z=ci,J=t;switch(t){case"keypress":if(ui(n)===0)break t;case"keydown":case"keyup":z=hy;break;case"focusin":J="focus",z=Vu;break;case"focusout":J="blur",z=Vu;break;case"beforeblur":case"afterblur":z=Vu;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=Qr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=ty;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=yy;break;case of:case hf:case df:z=ly;break;case mf:z=py;break;case"scroll":case"scrollend":z=Im;break;case"wheel":z=by;break;case"copy":case"cut":case"paste":z=iy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=kr;break;case"toggle":case"beforetoggle":z=_y}var nt=(e&4)!==0,zt=!nt&&(t==="scroll"||t==="scrollend"),T=nt?O!==null?O+"Capture":null:O;nt=[];for(var b=A,x;b!==null;){var B=b;if(x=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||x===null||T===null||(B=ea(b,T),B!=null&&nt.push(Ua(b,B,x))),zt)break;b=b.return}0<nt.length&&(O=new z(O,J,null,n,D),L.push({event:O,listeners:nt}))}}if((e&7)===0){t:{if(O=t==="mouseover"||t==="pointerover",z=t==="mouseout"||t==="pointerout",O&&n!==Lu&&(J=n.relatedTarget||n.fromElement)&&(fl(J)||J[rl]))break t;if((z||O)&&(O=D.window===D?D:(O=D.ownerDocument)?O.defaultView||O.parentWindow:window,z?(J=n.relatedTarget||n.toElement,z=A,J=J?fl(J):null,J!==null&&(zt=m(J),nt=J.tag,J!==zt||nt!==5&&nt!==27&&nt!==6)&&(J=null)):(z=null,J=A),z!==J)){if(nt=Qr,B="onMouseLeave",T="onMouseEnter",b="mouse",(t==="pointerout"||t==="pointerover")&&(nt=kr,B="onPointerLeave",T="onPointerEnter",b="pointer"),zt=z==null?O:ta(z),x=J==null?O:ta(J),O=new nt(B,b+"leave",z,n,D),O.target=zt,O.relatedTarget=x,B=null,fl(D)===A&&(nt=new nt(T,b+"enter",J,n,D),nt.target=x,nt.relatedTarget=zt,B=nt),zt=B,z&&J)e:{for(nt=Sv,T=z,b=J,x=0,B=T;B;B=nt(B))x++;B=0;for(var tt=b;tt;tt=nt(tt))B++;for(;0<x-B;)T=nt(T),x--;for(;0<B-x;)b=nt(b),B--;for(;x--;){if(T===b||b!==null&&T===b.alternate){nt=T;break e}T=nt(T),b=nt(b)}nt=null}else nt=null;z!==null&&Hh(L,O,z,nt,!1),J!==null&&zt!==null&&Hh(L,zt,J,nt,!0)}}t:{if(O=A?ta(A):window,z=O.nodeName&&O.nodeName.toLowerCase(),z==="select"||z==="input"&&O.type==="file")var St=Pr;else if(Fr(O))if(tf)St=Ry;else{St=zy;var W=Oy}else z=O.nodeName,!z||z.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?A&&wu(A.elementType)&&(St=Pr):St=My;if(St&&(St=St(t,A))){Ir(L,St,n,D);break t}W&&W(t,O,A),t==="focusout"&&A&&O.type==="number"&&A.memoizedProps.value!=null&&Bu(O,"number",O.value)}switch(W=A?ta(A):window,t){case"focusin":(Fr(W)||W.contentEditable==="true")&&(bl=W,Wu=A,ra=null);break;case"focusout":ra=Wu=bl=null;break;case"mousedown":Fu=!0;break;case"contextmenu":case"mouseup":case"dragend":Fu=!1,rf(L,n,D);break;case"selectionchange":if(Dy)break;case"keydown":case"keyup":rf(L,n,D)}var rt;if(Zu)t:{switch(t){case"compositionstart":var mt="onCompositionStart";break t;case"compositionend":mt="onCompositionEnd";break t;case"compositionupdate":mt="onCompositionUpdate";break t}mt=void 0}else gl?$r(t,n)&&(mt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(mt="onCompositionStart");mt&&(Zr&&n.locale!=="ko"&&(gl||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&gl&&(rt=Gr()):(gn=D,Gu="value"in gn?gn.value:gn.textContent,gl=!0)),W=Ii(A,mt),0<W.length&&(mt=new Vr(mt,t,null,n,D),L.push({event:mt,listeners:W}),rt?mt.data=rt:(rt=Wr(n),rt!==null&&(mt.data=rt)))),(rt=Ty?xy(t,n):Ay(t,n))&&(mt=Ii(A,"onBeforeInput"),0<mt.length&&(W=new Vr("onBeforeInput","beforeinput",null,n,D),L.push({event:W,listeners:mt}),W.data=rt)),vv(L,t,A,n,D)}wh(L,e)})}function Ua(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Ii(t,e){for(var n=e+"Capture",l=[];t!==null;){var a=t,u=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||u===null||(a=ea(t,n),a!=null&&l.unshift(Ua(t,a,u)),a=ea(t,e),a!=null&&l.push(Ua(t,a,u))),t.tag===3)return l;t=t.return}return[]}function Sv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Hh(t,e,n,l,a){for(var u=e._reactName,f=[];n!==null&&n!==l;){var h=n,y=h.alternate,A=h.stateNode;if(h=h.tag,y!==null&&y===l)break;h!==5&&h!==26&&h!==27||A===null||(y=A,a?(A=ea(n,u),A!=null&&f.unshift(Ua(n,A,y))):a||(A=ea(n,u),A!=null&&f.push(Ua(n,A,y)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var _v=/\r\n?/g,Ev=/\u0000|\uFFFD/g;function qh(t){return(typeof t=="string"?t:""+t).replace(_v,`
49
+ `).replace(Ev,"")}function Yh(t,e){return e=qh(e),qh(t)===e}function Ot(t,e,n,l,a,u){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||yl(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&yl(t,""+l);break;case"className":ni(t,"class",l);break;case"tabIndex":ni(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ni(t,n,l);break;case"style":Hr(t,l,u);break;case"data":if(e!=="object"){ni(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=ai(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(e!=="input"&&Ot(t,e,"name",a.name,a,null),Ot(t,e,"formEncType",a.formEncType,a,null),Ot(t,e,"formMethod",a.formMethod,a,null),Ot(t,e,"formTarget",a.formTarget,a,null)):(Ot(t,e,"encType",a.encType,a,null),Ot(t,e,"method",a.method,a,null),Ot(t,e,"target",a.target,a,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=ai(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=Fe);break;case"onScroll":l!=null&&ht("scroll",t);break;case"onScrollEnd":l!=null&&ht("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=ai(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":ht("beforetoggle",t),ht("toggle",t),ei(t,"popover",l);break;case"xlinkActuate":We(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":We(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":We(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":We(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":We(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":We(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":We(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":We(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":We(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ei(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Wm.get(n)||n,ei(t,n,l))}}function Ec(t,e,n,l,a,u){switch(n){case"style":Hr(t,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"children":typeof l=="string"?yl(t,l):(typeof l=="number"||typeof l=="bigint")&&yl(t,""+l);break;case"onScroll":l!=null&&ht("scroll",t);break;case"onScrollEnd":l!=null&&ht("scrollend",t);break;case"onClick":l!=null&&(t.onclick=Fe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!zr.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),e=n.slice(2,a?n.length-7:void 0),u=t[se]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,a),typeof l=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,a);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):ei(t,n,l)}}}function le(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ht("error",t),ht("load",t);var l=!1,a=!1,u;for(u in n)if(n.hasOwnProperty(u)){var f=n[u];if(f!=null)switch(u){case"src":l=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ot(t,e,u,f,n,null)}}a&&Ot(t,e,"srcSet",n.srcSet,n,null),l&&Ot(t,e,"src",n.src,n,null);return;case"input":ht("invalid",t);var h=u=f=a=null,y=null,A=null;for(l in n)if(n.hasOwnProperty(l)){var D=n[l];if(D!=null)switch(l){case"name":a=D;break;case"type":f=D;break;case"checked":y=D;break;case"defaultChecked":A=D;break;case"value":u=D;break;case"defaultValue":h=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,e));break;default:Ot(t,e,l,D,n,null)}}Ur(t,u,h,y,A,f,a,!1);return;case"select":ht("invalid",t),l=f=u=null;for(a in n)if(n.hasOwnProperty(a)&&(h=n[a],h!=null))switch(a){case"value":u=h;break;case"defaultValue":f=h;break;case"multiple":l=h;default:Ot(t,e,a,h,n,null)}e=u,n=f,t.multiple=!!l,e!=null?ml(t,!!l,e,!1):n!=null&&ml(t,!!l,n,!0);return;case"textarea":ht("invalid",t),u=a=l=null;for(f in n)if(n.hasOwnProperty(f)&&(h=n[f],h!=null))switch(f){case"value":l=h;break;case"defaultValue":a=h;break;case"children":u=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(r(91));break;default:Ot(t,e,f,h,n,null)}wr(t,l,a,u);return;case"option":for(y in n)if(n.hasOwnProperty(y)&&(l=n[y],l!=null))switch(y){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ot(t,e,y,l,n,null)}return;case"dialog":ht("beforetoggle",t),ht("toggle",t),ht("cancel",t),ht("close",t);break;case"iframe":case"object":ht("load",t);break;case"video":case"audio":for(l=0;l<Da.length;l++)ht(Da[l],t);break;case"image":ht("error",t),ht("load",t);break;case"details":ht("toggle",t);break;case"embed":case"source":case"link":ht("error",t),ht("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in n)if(n.hasOwnProperty(A)&&(l=n[A],l!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ot(t,e,A,l,n,null)}return;default:if(wu(e)){for(D in n)n.hasOwnProperty(D)&&(l=n[D],l!==void 0&&Ec(t,e,D,l,n,void 0));return}}for(h in n)n.hasOwnProperty(h)&&(l=n[h],l!=null&&Ot(t,e,h,l,n,null))}function Tv(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,u=null,f=null,h=null,y=null,A=null,D=null;for(z in n){var L=n[z];if(n.hasOwnProperty(z)&&L!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":y=L;default:l.hasOwnProperty(z)||Ot(t,e,z,null,l,L)}}for(var O in l){var z=l[O];if(L=n[O],l.hasOwnProperty(O)&&(z!=null||L!=null))switch(O){case"type":u=z;break;case"name":a=z;break;case"checked":A=z;break;case"defaultChecked":D=z;break;case"value":f=z;break;case"defaultValue":h=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,e));break;default:z!==L&&Ot(t,e,O,z,l,L)}}Uu(t,f,h,y,A,D,u,a);return;case"select":z=f=h=O=null;for(u in n)if(y=n[u],n.hasOwnProperty(u)&&y!=null)switch(u){case"value":break;case"multiple":z=y;default:l.hasOwnProperty(u)||Ot(t,e,u,null,l,y)}for(a in l)if(u=l[a],y=n[a],l.hasOwnProperty(a)&&(u!=null||y!=null))switch(a){case"value":O=u;break;case"defaultValue":h=u;break;case"multiple":f=u;default:u!==y&&Ot(t,e,a,u,l,y)}e=h,n=f,l=z,O!=null?ml(t,!!n,O,!1):!!l!=!!n&&(e!=null?ml(t,!!n,e,!0):ml(t,!!n,n?[]:"",!1));return;case"textarea":z=O=null;for(h in n)if(a=n[h],n.hasOwnProperty(h)&&a!=null&&!l.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Ot(t,e,h,null,l,a)}for(f in l)if(a=l[f],u=n[f],l.hasOwnProperty(f)&&(a!=null||u!=null))switch(f){case"value":O=a;break;case"defaultValue":z=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(r(91));break;default:a!==u&&Ot(t,e,f,a,l,u)}Br(t,O,z);return;case"option":for(var J in n)if(O=n[J],n.hasOwnProperty(J)&&O!=null&&!l.hasOwnProperty(J))switch(J){case"selected":t.selected=!1;break;default:Ot(t,e,J,null,l,O)}for(y in l)if(O=l[y],z=n[y],l.hasOwnProperty(y)&&O!==z&&(O!=null||z!=null))switch(y){case"selected":t.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:Ot(t,e,y,O,l,z)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var nt in n)O=n[nt],n.hasOwnProperty(nt)&&O!=null&&!l.hasOwnProperty(nt)&&Ot(t,e,nt,null,l,O);for(A in l)if(O=l[A],z=n[A],l.hasOwnProperty(A)&&O!==z&&(O!=null||z!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,e));break;default:Ot(t,e,A,O,l,z)}return;default:if(wu(e)){for(var zt in n)O=n[zt],n.hasOwnProperty(zt)&&O!==void 0&&!l.hasOwnProperty(zt)&&Ec(t,e,zt,void 0,l,O);for(D in l)O=l[D],z=n[D],!l.hasOwnProperty(D)||O===z||O===void 0&&z===void 0||Ec(t,e,D,O,l,z);return}}for(var T in n)O=n[T],n.hasOwnProperty(T)&&O!=null&&!l.hasOwnProperty(T)&&Ot(t,e,T,null,l,O);for(L in l)O=l[L],z=n[L],!l.hasOwnProperty(L)||O===z||O==null&&z==null||Ot(t,e,L,O,l,z)}function Gh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function xv(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var a=n[l],u=a.transferSize,f=a.initiatorType,h=a.duration;if(u&&h&&Gh(f)){for(f=0,h=a.responseEnd,l+=1;l<n.length;l++){var y=n[l],A=y.startTime;if(A>h)break;var D=y.transferSize,L=y.initiatorType;D&&Gh(L)&&(y=y.responseEnd,f+=D*(y<h?1:(h-A)/(y-A)))}if(--l,e+=8*(u+f)/(a.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Tc=null,xc=null;function Pi(t){return t.nodeType===9?t:t.ownerDocument}function Xh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Qh(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Ac(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Cc=null;function Av(){var t=window.event;return t&&t.type==="popstate"?t===Cc?!1:(Cc=t,!0):(Cc=null,!1)}var Vh=typeof setTimeout=="function"?setTimeout:void 0,Cv=typeof clearTimeout=="function"?clearTimeout:void 0,kh=typeof Promise=="function"?Promise:void 0,Nv=typeof queueMicrotask=="function"?queueMicrotask:typeof kh<"u"?function(t){return kh.resolve(null).then(t).catch(Ov)}:Vh;function Ov(t){setTimeout(function(){throw t})}function Bn(t){return t==="head"}function Zh(t,e){var n=e,l=0;do{var a=n.nextSibling;if(t.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(a),Zl(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Ba(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Ba(n);for(var u=n.firstChild;u;){var f=u.nextSibling,h=u.nodeName;u[Pl]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=f}}else n==="body"&&Ba(t.ownerDocument.body);n=a}while(n);Zl(e)}function Kh(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function Nc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Nc(n),ju(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function zv(t,e,n,l){for(;t.nodeType===1;){var a=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Pl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==a.rel||t.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute("title")!==(a.title==null?null:a.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Be(t.nextSibling),t===null)break}return null}function Mv(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Be(t.nextSibling),t===null))return null;return t}function Jh(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Be(t.nextSibling),t===null))return null;return t}function Oc(t){return t.data==="$?"||t.data==="$~"}function zc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Rv(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Be(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Mc=null;function $h(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Be(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Wh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function Fh(t,e,n){switch(e=Pi(n),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Ba(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ju(t)}var we=new Map,Ih=new Set;function tu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var mn=j.d;j.d={f:jv,r:Dv,D:Uv,C:Bv,L:wv,m:Lv,X:qv,S:Hv,M:Yv};function jv(){var t=mn.f(),e=ki();return t||e}function Dv(t){var e=ol(t);e!==null&&e.tag===5&&e.type==="form"?yo(e):mn.r(t)}var Ql=typeof document>"u"?null:document;function Ph(t,e,n){var l=Ql;if(l&&typeof e=="string"&&e){var a=Oe(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Ih.has(a)||(Ih.add(a),t={rel:t,crossOrigin:n,href:e},l.querySelector(a)===null&&(e=l.createElement("link"),le(e,"link",t),$t(e),l.head.appendChild(e)))}}function Uv(t){mn.D(t),Ph("dns-prefetch",t,null)}function Bv(t,e){mn.C(t,e),Ph("preconnect",t,e)}function wv(t,e,n){mn.L(t,e,n);var l=Ql;if(l&&t&&e){var a='link[rel="preload"][as="'+Oe(e)+'"]';e==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Oe(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+Oe(n.imageSizes)+'"]')):a+='[href="'+Oe(t)+'"]';var u=a;switch(e){case"style":u=Vl(t);break;case"script":u=kl(t)}we.has(u)||(t=C({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),we.set(u,t),l.querySelector(a)!==null||e==="style"&&l.querySelector(wa(u))||e==="script"&&l.querySelector(La(u))||(e=l.createElement("link"),le(e,"link",t),$t(e),l.head.appendChild(e)))}}function Lv(t,e){mn.m(t,e);var n=Ql;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+Oe(l)+'"][href="'+Oe(t)+'"]',u=a;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=kl(t)}if(!we.has(u)&&(t=C({rel:"modulepreload",href:t},e),we.set(u,t),n.querySelector(a)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(La(u)))return}l=n.createElement("link"),le(l,"link",t),$t(l),n.head.appendChild(l)}}}function Hv(t,e,n){mn.S(t,e,n);var l=Ql;if(l&&t){var a=hl(l).hoistableStyles,u=Vl(t);e=e||"default";var f=a.get(u);if(!f){var h={loading:0,preload:null};if(f=l.querySelector(wa(u)))h.loading=5;else{t=C({rel:"stylesheet",href:t,"data-precedence":e},n),(n=we.get(u))&&Rc(t,n);var y=f=l.createElement("link");$t(y),le(y,"link",t),y._p=new Promise(function(A,D){y.onload=A,y.onerror=D}),y.addEventListener("load",function(){h.loading|=1}),y.addEventListener("error",function(){h.loading|=2}),h.loading|=4,eu(f,e,l)}f={type:"stylesheet",instance:f,count:1,state:h},a.set(u,f)}}}function qv(t,e){mn.X(t,e);var n=Ql;if(n&&t){var l=hl(n).hoistableScripts,a=kl(t),u=l.get(a);u||(u=n.querySelector(La(a)),u||(t=C({src:t,async:!0},e),(e=we.get(a))&&jc(t,e),u=n.createElement("script"),$t(u),le(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(a,u))}}function Yv(t,e){mn.M(t,e);var n=Ql;if(n&&t){var l=hl(n).hoistableScripts,a=kl(t),u=l.get(a);u||(u=n.querySelector(La(a)),u||(t=C({src:t,async:!0,type:"module"},e),(e=we.get(a))&&jc(t,e),u=n.createElement("script"),$t(u),le(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(a,u))}}function td(t,e,n,l){var a=(a=it.current)?tu(a):null;if(!a)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Vl(n.href),n=hl(a).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Vl(n.href);var u=hl(a).hoistableStyles,f=u.get(t);if(f||(a=a.ownerDocument||a,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,f),(u=a.querySelector(wa(t)))&&!u._p&&(f.instance=u,f.state.loading=5),we.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},we.set(t,n),u||Gv(a,t,n,f.state))),e&&l===null)throw Error(r(528,""));return f}if(e&&l!==null)throw Error(r(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=kl(n),n=hl(a).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function Vl(t){return'href="'+Oe(t)+'"'}function wa(t){return'link[rel="stylesheet"]['+t+"]"}function ed(t){return C({},t,{"data-precedence":t.precedence,precedence:null})}function Gv(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),le(e,"link",n),$t(e),t.head.appendChild(e))}function kl(t){return'[src="'+Oe(t)+'"]'}function La(t){return"script[async]"+t}function nd(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Oe(n.href)+'"]');if(l)return e.instance=l,$t(l),l;var a=C({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),$t(l),le(l,"style",a),eu(l,n.precedence,t),e.instance=l;case"stylesheet":a=Vl(n.href);var u=t.querySelector(wa(a));if(u)return e.state.loading|=4,e.instance=u,$t(u),u;l=ed(n),(a=we.get(a))&&Rc(l,a),u=(t.ownerDocument||t).createElement("link"),$t(u);var f=u;return f._p=new Promise(function(h,y){f.onload=h,f.onerror=y}),le(u,"link",l),e.state.loading|=4,eu(u,n.precedence,t),e.instance=u;case"script":return u=kl(n.src),(a=t.querySelector(La(u)))?(e.instance=a,$t(a),a):(l=n,(a=we.get(u))&&(l=C({},n),jc(l,a)),t=t.ownerDocument||t,a=t.createElement("script"),$t(a),le(a,"link",l),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,eu(l,n.precedence,t));return e.instance}function eu(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=l.length?l[l.length-1]:null,u=a,f=0;f<l.length;f++){var h=l[f];if(h.dataset.precedence===e)u=h;else if(u!==a)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Rc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function jc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var nu=null;function ld(t,e,n){if(nu===null){var l=new Map,a=nu=new Map;a.set(n,l)}else a=nu,l=a.get(n),l||(l=new Map,a.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),a=0;a<n.length;a++){var u=n[a];if(!(u[Pl]||u[Pt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(e)||"";f=t+f;var h=l.get(f);h?h.push(u):l.set(f,[u])}}return l}function ad(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Xv(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function id(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Qv(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var a=Vl(l.href),u=e.querySelector(wa(a));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=lu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,$t(u);return}u=e.ownerDocument||e,l=ed(l),(a=we.get(a))&&Rc(l,a),u=u.createElement("link"),$t(u);var f=u;f._p=new Promise(function(h,y){f.onload=h,f.onerror=y}),le(u,"link",l),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=lu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Dc=0;function Vv(t,e){return t.stylesheets&&t.count===0&&iu(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&iu(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&Dc===0&&(Dc=62500*xv());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&iu(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>Dc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(a)}}:null}function lu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)iu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var au=null;function iu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,au=new Map,e.forEach(kv,t),au=null,lu.call(t))}function kv(t,e){if(!(e.state.loading&4)){var n=au.get(t);if(n)var l=n.get(null);else{n=new Map,au.set(t,n);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<a.length;u++){var f=a[u];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),l=f)}l&&n.set(null,l)}a=e.instance,f=a.getAttribute("data-precedence"),u=n.get(f)||l,u===l&&n.set(null,a),n.set(f,a),this.count++,l=lu.bind(this),a.addEventListener("load",l),a.addEventListener("error",l),u?u.parentNode.insertBefore(a,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var Ha={$$typeof:lt,Provider:null,Consumer:null,_currentValue:w,_currentValue2:w,_threadCount:0};function Zv(t,e,n,l,a,u,f,h,y){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ou(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ou(0),this.hiddenUpdates=Ou(null),this.identifierPrefix=l,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function ud(t,e,n,l,a,u,f,h,y,A,D,L){return t=new Zv(t,e,n,f,y,A,D,L,h),e=1,u===!0&&(e|=24),u=Se(3,null,null,e),t.current=u,u.stateNode=t,e=hs(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:e},vs(u),t}function sd(t){return t?(t=El,t):El}function cd(t,e,n,l,a,u){a=sd(a),l.context===null?l.context=a:l.pendingContext=a,l=xn(e),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=An(t,l,e),n!==null&&(de(n,t,e),va(n,t,e))}function rd(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Uc(t,e){rd(t,e),(t=t.alternate)&&rd(t,e)}function fd(t){if(t.tag===13||t.tag===31){var e=Jn(t,67108864);e!==null&&de(e,t,67108864),Uc(t,67108864)}}function od(t){if(t.tag===13||t.tag===31){var e=Ae();e=zu(e);var n=Jn(t,e);n!==null&&de(n,t,e),Uc(t,e)}}var uu=!0;function Kv(t,e,n,l){var a=_.T;_.T=null;var u=j.p;try{j.p=2,Bc(t,e,n,l)}finally{j.p=u,_.T=a}}function Jv(t,e,n,l){var a=_.T;_.T=null;var u=j.p;try{j.p=8,Bc(t,e,n,l)}finally{j.p=u,_.T=a}}function Bc(t,e,n,l){if(uu){var a=wc(l);if(a===null)_c(t,e,l,su,n),dd(t,l);else if(Wv(a,t,e,n,l))l.stopPropagation();else if(dd(t,l),e&4&&-1<$v.indexOf(t)){for(;a!==null;){var u=ol(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=Qn(u.pendingLanes);if(f!==0){var h=u;for(h.pendingLanes|=2,h.entangledLanes|=2;f;){var y=1<<31-ge(f);h.entanglements[1]|=y,f&=~y}Ke(u),(Et&6)===0&&(Qi=ve()+500,ja(0))}}break;case 31:case 13:h=Jn(u,2),h!==null&&de(h,u,2),ki(),Uc(u,2)}if(u=wc(l),u===null&&_c(t,e,l,su,n),u===a)break;a=u}a!==null&&l.stopPropagation()}else _c(t,e,l,null,n)}}function wc(t){return t=Hu(t),Lc(t)}var su=null;function Lc(t){if(su=null,t=fl(t),t!==null){var e=m(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=g(e),t!==null)return t;t=null}else if(n===31){if(t=E(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return su=t,null}function hd(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Um()){case gr:return 2;case br:return 8;case Wa:case Bm:return 32;case Sr:return 268435456;default:return 32}default:return 32}}var Hc=!1,wn=null,Ln=null,Hn=null,qa=new Map,Ya=new Map,qn=[],$v="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function dd(t,e){switch(t){case"focusin":case"focusout":wn=null;break;case"dragenter":case"dragleave":Ln=null;break;case"mouseover":case"mouseout":Hn=null;break;case"pointerover":case"pointerout":qa.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ya.delete(e.pointerId)}}function Ga(t,e,n,l,a,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[a]},e!==null&&(e=ol(e),e!==null&&fd(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function Wv(t,e,n,l,a){switch(e){case"focusin":return wn=Ga(wn,t,e,n,l,a),!0;case"dragenter":return Ln=Ga(Ln,t,e,n,l,a),!0;case"mouseover":return Hn=Ga(Hn,t,e,n,l,a),!0;case"pointerover":var u=a.pointerId;return qa.set(u,Ga(qa.get(u)||null,t,e,n,l,a)),!0;case"gotpointercapture":return u=a.pointerId,Ya.set(u,Ga(Ya.get(u)||null,t,e,n,l,a)),!0}return!1}function md(t){var e=fl(t.target);if(e!==null){var n=m(e);if(n!==null){if(e=n.tag,e===13){if(e=g(n),e!==null){t.blockedOn=e,Cr(t.priority,function(){od(n)});return}}else if(e===31){if(e=E(n),e!==null){t.blockedOn=e,Cr(t.priority,function(){od(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function cu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=wc(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Lu=l,n.target.dispatchEvent(l),Lu=null}else return e=ol(n),e!==null&&fd(e),t.blockedOn=n,!1;e.shift()}return!0}function yd(t,e,n){cu(t)&&n.delete(e)}function Fv(){Hc=!1,wn!==null&&cu(wn)&&(wn=null),Ln!==null&&cu(Ln)&&(Ln=null),Hn!==null&&cu(Hn)&&(Hn=null),qa.forEach(yd),Ya.forEach(yd)}function ru(t,e){t.blockedOn===e&&(t.blockedOn=null,Hc||(Hc=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Fv)))}var fu=null;function vd(t){fu!==t&&(fu=t,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){fu===t&&(fu=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],a=t[e+2];if(typeof l!="function"){if(Lc(l||n)===null)continue;break}var u=ol(n);u!==null&&(t.splice(e,3),e-=3,ws(u,{pending:!0,data:a,method:n.method,action:l},l,a))}}))}function Zl(t){function e(y){return ru(y,t)}wn!==null&&ru(wn,t),Ln!==null&&ru(Ln,t),Hn!==null&&ru(Hn,t),qa.forEach(e),Ya.forEach(e);for(var n=0;n<qn.length;n++){var l=qn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<qn.length&&(n=qn[0],n.blockedOn===null);)md(n),n.blockedOn===null&&qn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var a=n[l],u=n[l+1],f=a[se]||null;if(typeof u=="function")f||vd(n);else if(f){var h=null;if(u&&u.hasAttribute("formAction")){if(a=u,f=u[se]||null)h=f.formAction;else if(Lc(a)!==null)continue}else h=f.action;typeof h=="function"?n[l+1]=h:(n.splice(l,3),l-=3),vd(n)}}}function pd(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(f){return a=f})},focusReset:"manual",scroll:"manual"})}function e(){a!==null&&(a(),a=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,a=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),a!==null&&(a(),a=null)}}}function qc(t){this._internalRoot=t}ou.prototype.render=qc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var n=e.current,l=Ae();cd(n,l,t,e,null,null)},ou.prototype.unmount=qc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;cd(t.current,2,null,t,null,null),ki(),e[rl]=null}};function ou(t){this._internalRoot=t}ou.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ar();t={blockedOn:null,target:t,priority:e};for(var n=0;n<qn.length&&e!==0&&e<qn[n].priority;n++);qn.splice(n,0,t),n===0&&md(t)}};var gd=i.version;if(gd!=="19.2.6")throw Error(r(527,gd,"19.2.6"));j.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=S(e),t=t!==null?R(t):null,t=t===null?null:t.stateNode,t};var Iv={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hu.isDisabled&&hu.supportsFiber)try{Wl=hu.inject(Iv),pe=hu}catch{}}return Qa.createRoot=function(t,e){if(!o(t))throw Error(r(299));var n=!1,l="",a=Ao,u=Co,f=No;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=ud(t,1,!1,null,null,n,l,null,a,u,f,pd),t[rl]=e.current,Sc(t),new qc(e)},Qa.hydrateRoot=function(t,e,n){if(!o(t))throw Error(r(299));var l=!1,a="",u=Ao,f=Co,h=No,y=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(h=n.onRecoverableError),n.formState!==void 0&&(y=n.formState)),e=ud(t,1,!0,e,n??null,l,a,y,u,f,h,pd),e.context=sd(null),n=e.current,l=Ae(),l=zu(l),a=xn(l),a.callback=null,An(n,a,l),n=l,e.current.lanes=n,Il(e,n),Ke(e),t[rl]=e.current,Sc(t),new ou(e)},Qa.version="19.2.6",Qa}var Od;function fp(){if(Od)return Gc.exports;Od=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),Gc.exports=rp(),Gc.exports}var cr=fp();const op=ur(cr);var N=sr();const hp=ur(N),dp=np({__proto__:null,default:hp},[N]);var Pd=Id();/**
50
+ * @remix-run/router v1.23.2
51
+ *
52
+ * Copyright (c) Remix Software Inc.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE.md file in the root directory of this source tree.
56
+ *
57
+ * @license MIT
58
+ */function Za(){return Za=Object.assign?Object.assign.bind():function(s){for(var i=1;i<arguments.length;i++){var c=arguments[i];for(var r in c)Object.prototype.hasOwnProperty.call(c,r)&&(s[r]=c[r])}return s},Za.apply(this,arguments)}var Gn;(function(s){s.Pop="POP",s.Push="PUSH",s.Replace="REPLACE"})(Gn||(Gn={}));const zd="popstate";function mp(s){s===void 0&&(s={});function i(r,o){let{pathname:m,search:g,hash:E}=r.location;return Fc("",{pathname:m,search:g,hash:E},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function c(r,o){return typeof o=="string"?o:tm(o)}return vp(i,c,null,s)}function Kt(s,i){if(s===!1||s===null||typeof s>"u")throw new Error(i)}function rr(s,i){if(!s){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function yp(){return Math.random().toString(36).substr(2,8)}function Md(s,i){return{usr:s.state,key:s.key,idx:i}}function Fc(s,i,c,r){return c===void 0&&(c=null),Za({pathname:typeof s=="string"?s:s.pathname,search:"",hash:""},typeof i=="string"?Jl(i):i,{state:c,key:i&&i.key||r||yp()})}function tm(s){let{pathname:i="/",search:c="",hash:r=""}=s;return c&&c!=="?"&&(i+=c.charAt(0)==="?"?c:"?"+c),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function Jl(s){let i={};if(s){let c=s.indexOf("#");c>=0&&(i.hash=s.substr(c),s=s.substr(0,c));let r=s.indexOf("?");r>=0&&(i.search=s.substr(r),s=s.substr(0,r)),s&&(i.pathname=s)}return i}function vp(s,i,c,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:m=!1}=r,g=o.history,E=Gn.Pop,p=null,S=R();S==null&&(S=0,g.replaceState(Za({},g.state,{idx:S}),""));function R(){return(g.state||{idx:null}).idx}function C(){E=Gn.Pop;let V=R(),et=V==null?null:V-S;S=V,p&&p({action:E,location:q.location,delta:et})}function X(V,et){E=Gn.Push;let $=Fc(q.location,V,et);S=R()+1;let lt=Md($,S),pt=q.createHref($);try{g.pushState(lt,"",pt)}catch(Ct){if(Ct instanceof DOMException&&Ct.name==="DataCloneError")throw Ct;o.location.assign(pt)}m&&p&&p({action:E,location:q.location,delta:1})}function F(V,et){E=Gn.Replace;let $=Fc(q.location,V,et);S=R();let lt=Md($,S),pt=q.createHref($);g.replaceState(lt,"",pt),m&&p&&p({action:E,location:q.location,delta:0})}function U(V){let et=o.location.origin!=="null"?o.location.origin:o.location.href,$=typeof V=="string"?V:tm(V);return $=$.replace(/ $/,"%20"),Kt(et,"No window.location.(origin|href) available to create URL for href: "+$),new URL($,et)}let q={get action(){return E},get location(){return s(o,g)},listen(V){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(zd,C),p=V,()=>{o.removeEventListener(zd,C),p=null}},createHref(V){return i(o,V)},createURL:U,encodeLocation(V){let et=U(V);return{pathname:et.pathname,search:et.search,hash:et.hash}},push:X,replace:F,go(V){return g.go(V)}};return q}var Rd;(function(s){s.data="data",s.deferred="deferred",s.redirect="redirect",s.error="error"})(Rd||(Rd={}));function pp(s,i,c){return c===void 0&&(c="/"),gp(s,i,c)}function gp(s,i,c,r){let o=typeof i=="string"?Jl(i):i,m=lm(o.pathname||"/",c);if(m==null)return null;let g=em(s);bp(g);let E=null;for(let p=0;E==null&&p<g.length;++p){let S=Rp(m);E=Op(g[p],S)}return E}function em(s,i,c,r){i===void 0&&(i=[]),c===void 0&&(c=[]),r===void 0&&(r="");let o=(m,g,E)=>{let p={relativePath:E===void 0?m.path||"":E,caseSensitive:m.caseSensitive===!0,childrenIndex:g,route:m};p.relativePath.startsWith("/")&&(Kt(p.relativePath.startsWith(r),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(r.length));let S=sl([r,p.relativePath]),R=c.concat(p);m.children&&m.children.length>0&&(Kt(m.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+S+'".')),em(m.children,i,R,S)),!(m.path==null&&!m.index)&&i.push({path:S,score:Cp(S,m.index),routesMeta:R})};return s.forEach((m,g)=>{var E;if(m.path===""||!((E=m.path)!=null&&E.includes("?")))o(m,g);else for(let p of nm(m.path))o(m,g,p)}),i}function nm(s){let i=s.split("/");if(i.length===0)return[];let[c,...r]=i,o=c.endsWith("?"),m=c.replace(/\?$/,"");if(r.length===0)return o?[m,""]:[m];let g=nm(r.join("/")),E=[];return E.push(...g.map(p=>p===""?m:[m,p].join("/"))),o&&E.push(...g),E.map(p=>s.startsWith("/")&&p===""?"/":p)}function bp(s){s.sort((i,c)=>i.score!==c.score?c.score-i.score:Np(i.routesMeta.map(r=>r.childrenIndex),c.routesMeta.map(r=>r.childrenIndex)))}const Sp=/^:[\w-]+$/,_p=3,Ep=2,Tp=1,xp=10,Ap=-2,jd=s=>s==="*";function Cp(s,i){let c=s.split("/"),r=c.length;return c.some(jd)&&(r+=Ap),i&&(r+=Ep),c.filter(o=>!jd(o)).reduce((o,m)=>o+(Sp.test(m)?_p:m===""?Tp:xp),r)}function Np(s,i){return s.length===i.length&&s.slice(0,-1).every((r,o)=>r===i[o])?s[s.length-1]-i[i.length-1]:0}function Op(s,i,c){let{routesMeta:r}=s,o={},m="/",g=[];for(let E=0;E<r.length;++E){let p=r[E],S=E===r.length-1,R=m==="/"?i:i.slice(m.length)||"/",C=zp({path:p.relativePath,caseSensitive:p.caseSensitive,end:S},R),X=p.route;if(!C)return null;Object.assign(o,C.params),g.push({params:o,pathname:sl([m,C.pathname]),pathnameBase:wp(sl([m,C.pathnameBase])),route:X}),C.pathnameBase!=="/"&&(m=sl([m,C.pathnameBase]))}return g}function zp(s,i){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[c,r]=Mp(s.path,s.caseSensitive,s.end),o=i.match(c);if(!o)return null;let m=o[0],g=m.replace(/(.)\/+$/,"$1"),E=o.slice(1);return{params:r.reduce((S,R,C)=>{let{paramName:X,isOptional:F}=R;if(X==="*"){let q=E[C]||"";g=m.slice(0,m.length-q.length).replace(/(.)\/+$/,"$1")}const U=E[C];return F&&!U?S[X]=void 0:S[X]=(U||"").replace(/%2F/g,"/"),S},{}),pathname:m,pathnameBase:g,pattern:s}}function Mp(s,i,c){i===void 0&&(i=!1),c===void 0&&(c=!0),rr(s==="*"||!s.endsWith("*")||s.endsWith("/*"),'Route path "'+s+'" will be treated as if it were '+('"'+s.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+s.replace(/\*$/,"/*")+'".'));let r=[],o="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(g,E,p)=>(r.push({paramName:E,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return s.endsWith("*")?(r.push({paramName:"*"}),o+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?o+="\\/*$":s!==""&&s!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,i?void 0:"i"),r]}function Rp(s){try{return s.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return rr(!1,'The URL path "'+s+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+i+").")),s}}function lm(s,i){if(i==="/")return s;if(!s.toLowerCase().startsWith(i.toLowerCase()))return null;let c=i.endsWith("/")?i.length-1:i.length,r=s.charAt(c);return r&&r!=="/"?null:s.slice(c)||"/"}const jp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dp=s=>jp.test(s);function Up(s,i){i===void 0&&(i="/");let{pathname:c,search:r="",hash:o=""}=typeof s=="string"?Jl(s):s,m;if(c)if(Dp(c))m=c;else{if(c.includes("//")){let g=c;c=c.replace(/\/\/+/g,"/"),rr(!1,"Pathnames cannot have embedded double slashes - normalizing "+(g+" -> "+c))}c.startsWith("/")?m=Dd(c.substring(1),"/"):m=Dd(c,i)}else m=i;return{pathname:m,search:Lp(r),hash:Hp(o)}}function Dd(s,i){let c=i.replace(/\/+$/,"").split("/");return s.split("/").forEach(o=>{o===".."?c.length>1&&c.pop():o!=="."&&c.push(o)}),c.length>1?c.join("/"):"/"}function Zc(s,i,c,r){return"Cannot include a '"+s+"' character in a manually specified "+("`to."+i+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+c+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Bp(s){return s.filter((i,c)=>c===0||i.route.path&&i.route.path.length>0)}function am(s,i){let c=Bp(s);return i?c.map((r,o)=>o===c.length-1?r.pathname:r.pathnameBase):c.map(r=>r.pathnameBase)}function im(s,i,c,r){r===void 0&&(r=!1);let o;typeof s=="string"?o=Jl(s):(o=Za({},s),Kt(!o.pathname||!o.pathname.includes("?"),Zc("?","pathname","search",o)),Kt(!o.pathname||!o.pathname.includes("#"),Zc("#","pathname","hash",o)),Kt(!o.search||!o.search.includes("#"),Zc("#","search","hash",o)));let m=s===""||o.pathname==="",g=m?"/":o.pathname,E;if(g==null)E=c;else{let C=i.length-1;if(!r&&g.startsWith("..")){let X=g.split("/");for(;X[0]==="..";)X.shift(),C-=1;o.pathname=X.join("/")}E=C>=0?i[C]:"/"}let p=Up(o,E),S=g&&g!=="/"&&g.endsWith("/"),R=(m||g===".")&&c.endsWith("/");return!p.pathname.endsWith("/")&&(S||R)&&(p.pathname+="/"),p}const sl=s=>s.join("/").replace(/\/\/+/g,"/"),wp=s=>s.replace(/\/+$/,"").replace(/^\/*/,"/"),Lp=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,Hp=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s;function qp(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}const um=["post","put","patch","delete"];new Set(um);const Yp=["get",...um];new Set(Yp);/**
59
+ * React Router v6.30.3
60
+ *
61
+ * Copyright (c) Remix Software Inc.
62
+ *
63
+ * This source code is licensed under the MIT license found in the
64
+ * LICENSE.md file in the root directory of this source tree.
65
+ *
66
+ * @license MIT
67
+ */function Ka(){return Ka=Object.assign?Object.assign.bind():function(s){for(var i=1;i<arguments.length;i++){var c=arguments[i];for(var r in c)Object.prototype.hasOwnProperty.call(c,r)&&(s[r]=c[r])}return s},Ka.apply(this,arguments)}const fr=N.createContext(null),Gp=N.createContext(null),Ja=N.createContext(null),_u=N.createContext(null),cl=N.createContext({outlet:null,matches:[],isDataRoute:!1}),sm=N.createContext(null);function $a(){return N.useContext(_u)!=null}function or(){return $a()||Kt(!1),N.useContext(_u).location}function cm(s){N.useContext(Ja).static||N.useLayoutEffect(s)}function rm(){let{isDataRoute:s}=N.useContext(cl);return s?tg():Xp()}function Xp(){$a()||Kt(!1);let s=N.useContext(fr),{basename:i,future:c,navigator:r}=N.useContext(Ja),{matches:o}=N.useContext(cl),{pathname:m}=or(),g=JSON.stringify(am(o,c.v7_relativeSplatPath)),E=N.useRef(!1);return cm(()=>{E.current=!0}),N.useCallback(function(S,R){if(R===void 0&&(R={}),!E.current)return;if(typeof S=="number"){r.go(S);return}let C=im(S,JSON.parse(g),m,R.relative==="path");s==null&&i!=="/"&&(C.pathname=C.pathname==="/"?i:sl([i,C.pathname])),(R.replace?r.replace:r.push)(C,R.state,R)},[i,r,g,m,s])}function Qp(s,i){return Vp(s,i)}function Vp(s,i,c,r){$a()||Kt(!1);let{navigator:o}=N.useContext(Ja),{matches:m}=N.useContext(cl),g=m[m.length-1],E=g?g.params:{};g&&g.pathname;let p=g?g.pathnameBase:"/";g&&g.route;let S=or(),R;if(i){var C;let V=typeof i=="string"?Jl(i):i;p==="/"||(C=V.pathname)!=null&&C.startsWith(p)||Kt(!1),R=V}else R=S;let X=R.pathname||"/",F=X;if(p!=="/"){let V=p.replace(/^\//,"").split("/");F="/"+X.replace(/^\//,"").split("/").slice(V.length).join("/")}let U=pp(s,{pathname:F}),q=$p(U&&U.map(V=>Object.assign({},V,{params:Object.assign({},E,V.params),pathname:sl([p,o.encodeLocation?o.encodeLocation(V.pathname).pathname:V.pathname]),pathnameBase:V.pathnameBase==="/"?p:sl([p,o.encodeLocation?o.encodeLocation(V.pathnameBase).pathname:V.pathnameBase])})),m,c,r);return i&&q?N.createElement(_u.Provider,{value:{location:Ka({pathname:"/",search:"",hash:"",state:null,key:"default"},R),navigationType:Gn.Pop}},q):q}function kp(){let s=Pp(),i=qp(s)?s.status+" "+s.statusText:s instanceof Error?s.message:JSON.stringify(s),c=s instanceof Error?s.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},i),c?N.createElement("pre",{style:o},c):null,null)}const Zp=N.createElement(kp,null);class Kp extends N.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,c){return c.location!==i.location||c.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:c.error,location:c.location,revalidation:i.revalidation||c.revalidation}}componentDidCatch(i,c){console.error("React Router caught the following error during render",i,c)}render(){return this.state.error!==void 0?N.createElement(cl.Provider,{value:this.props.routeContext},N.createElement(sm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Jp(s){let{routeContext:i,match:c,children:r}=s,o=N.useContext(fr);return o&&o.static&&o.staticContext&&(c.route.errorElement||c.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=c.route.id),N.createElement(cl.Provider,{value:i},r)}function $p(s,i,c,r){var o;if(i===void 0&&(i=[]),c===void 0&&(c=null),r===void 0&&(r=null),s==null){var m;if(!c)return null;if(c.errors)s=c.matches;else if((m=r)!=null&&m.v7_partialHydration&&i.length===0&&!c.initialized&&c.matches.length>0)s=c.matches;else return null}let g=s,E=(o=c)==null?void 0:o.errors;if(E!=null){let R=g.findIndex(C=>C.route.id&&(E==null?void 0:E[C.route.id])!==void 0);R>=0||Kt(!1),g=g.slice(0,Math.min(g.length,R+1))}let p=!1,S=-1;if(c&&r&&r.v7_partialHydration)for(let R=0;R<g.length;R++){let C=g[R];if((C.route.HydrateFallback||C.route.hydrateFallbackElement)&&(S=R),C.route.id){let{loaderData:X,errors:F}=c,U=C.route.loader&&X[C.route.id]===void 0&&(!F||F[C.route.id]===void 0);if(C.route.lazy||U){p=!0,S>=0?g=g.slice(0,S+1):g=[g[0]];break}}}return g.reduceRight((R,C,X)=>{let F,U=!1,q=null,V=null;c&&(F=E&&C.route.id?E[C.route.id]:void 0,q=C.route.errorElement||Zp,p&&(S<0&&X===0?(eg("route-fallback"),U=!0,V=null):S===X&&(U=!0,V=C.route.hydrateFallbackElement||null)));let et=i.concat(g.slice(0,X+1)),$=()=>{let lt;return F?lt=q:U?lt=V:C.route.Component?lt=N.createElement(C.route.Component,null):C.route.element?lt=C.route.element:lt=R,N.createElement(Jp,{match:C,routeContext:{outlet:R,matches:et,isDataRoute:c!=null},children:lt})};return c&&(C.route.ErrorBoundary||C.route.errorElement||X===0)?N.createElement(Kp,{location:c.location,revalidation:c.revalidation,component:q,error:F,children:$(),routeContext:{outlet:null,matches:et,isDataRoute:!0}}):$()},null)}var fm=(function(s){return s.UseBlocker="useBlocker",s.UseRevalidator="useRevalidator",s.UseNavigateStable="useNavigate",s})(fm||{}),om=(function(s){return s.UseBlocker="useBlocker",s.UseLoaderData="useLoaderData",s.UseActionData="useActionData",s.UseRouteError="useRouteError",s.UseNavigation="useNavigation",s.UseRouteLoaderData="useRouteLoaderData",s.UseMatches="useMatches",s.UseRevalidator="useRevalidator",s.UseNavigateStable="useNavigate",s.UseRouteId="useRouteId",s})(om||{});function Wp(s){let i=N.useContext(fr);return i||Kt(!1),i}function Fp(s){let i=N.useContext(Gp);return i||Kt(!1),i}function Ip(s){let i=N.useContext(cl);return i||Kt(!1),i}function hm(s){let i=Ip(),c=i.matches[i.matches.length-1];return c.route.id||Kt(!1),c.route.id}function Pp(){var s;let i=N.useContext(sm),c=Fp(),r=hm();return i!==void 0?i:(s=c.errors)==null?void 0:s[r]}function tg(){let{router:s}=Wp(fm.UseNavigateStable),i=hm(om.UseNavigateStable),c=N.useRef(!1);return cm(()=>{c.current=!0}),N.useCallback(function(o,m){m===void 0&&(m={}),c.current&&(typeof o=="number"?s.navigate(o):s.navigate(o,Ka({fromRouteId:i},m)))},[s,i])}const Ud={};function eg(s,i,c){Ud[s]||(Ud[s]=!0)}function ng(s,i){s==null||s.v7_startTransition,s==null||s.v7_relativeSplatPath}function dm(s){let{to:i,replace:c,state:r,relative:o}=s;$a()||Kt(!1);let{future:m,static:g}=N.useContext(Ja),{matches:E}=N.useContext(cl),{pathname:p}=or(),S=rm(),R=im(i,am(E,m.v7_relativeSplatPath),p,o==="path"),C=JSON.stringify(R);return N.useEffect(()=>S(JSON.parse(C),{replace:c,state:r,relative:o}),[S,C,o,c,r]),null}function yu(s){Kt(!1)}function lg(s){let{basename:i="/",children:c=null,location:r,navigationType:o=Gn.Pop,navigator:m,static:g=!1,future:E}=s;$a()&&Kt(!1);let p=i.replace(/^\/*/,"/"),S=N.useMemo(()=>({basename:p,navigator:m,static:g,future:Ka({v7_relativeSplatPath:!1},E)}),[p,E,m,g]);typeof r=="string"&&(r=Jl(r));let{pathname:R="/",search:C="",hash:X="",state:F=null,key:U="default"}=r,q=N.useMemo(()=>{let V=lm(R,p);return V==null?null:{location:{pathname:V,search:C,hash:X,state:F,key:U},navigationType:o}},[p,R,C,X,F,U,o]);return q==null?null:N.createElement(Ja.Provider,{value:S},N.createElement(_u.Provider,{children:c,value:q}))}function ag(s){let{children:i,location:c}=s;return Qp(Ic(i),c)}new Promise(()=>{});function Ic(s,i){i===void 0&&(i=[]);let c=[];return N.Children.forEach(s,(r,o)=>{if(!N.isValidElement(r))return;let m=[...i,o];if(r.type===N.Fragment){c.push.apply(c,Ic(r.props.children,m));return}r.type!==yu&&Kt(!1),!r.props.index||!r.props.children||Kt(!1);let g={id:r.props.id||m.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(g.children=Ic(r.props.children,m)),c.push(g)}),c}/**
68
+ * React Router DOM v6.30.3
69
+ *
70
+ * Copyright (c) Remix Software Inc.
71
+ *
72
+ * This source code is licensed under the MIT license found in the
73
+ * LICENSE.md file in the root directory of this source tree.
74
+ *
75
+ * @license MIT
76
+ */const ig="6";try{window.__reactRouterVersion=ig}catch{}const ug="startTransition",Bd=dp[ug];function sg(s){let{basename:i,children:c,future:r,window:o}=s,m=N.useRef();m.current==null&&(m.current=mp({window:o,v5Compat:!0}));let g=m.current,[E,p]=N.useState({action:g.action,location:g.location}),{v7_startTransition:S}=r||{},R=N.useCallback(C=>{S&&Bd?Bd(()=>p(C)):p(C)},[p,S]);return N.useLayoutEffect(()=>g.listen(R),[g,R]),N.useEffect(()=>ng(r),[r]),N.createElement(lg,{basename:i,children:c,location:E.location,navigationType:E.action,navigator:g,future:r})}var wd;(function(s){s.UseScrollRestoration="useScrollRestoration",s.UseSubmit="useSubmit",s.UseSubmitFetcher="useSubmitFetcher",s.UseFetcher="useFetcher",s.useViewTransitionState="useViewTransitionState"})(wd||(wd={}));var Ld;(function(s){s.UseFetcher="useFetcher",s.UseFetchers="useFetchers",s.UseScrollRestoration="useScrollRestoration"})(Ld||(Ld={}));const $e=Object.create(null);$e.open="0";$e.close="1";$e.ping="2";$e.pong="3";$e.message="4";$e.upgrade="5";$e.noop="6";const vu=Object.create(null);Object.keys($e).forEach(s=>{vu[$e[s]]=s});const Pc={type:"error",data:"parser error"},mm=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ym=typeof ArrayBuffer=="function",vm=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s&&s.buffer instanceof ArrayBuffer,hr=({type:s,data:i},c,r)=>mm&&i instanceof Blob?c?r(i):Hd(i,r):ym&&(i instanceof ArrayBuffer||vm(i))?c?r(i):Hd(new Blob([i]),r):r($e[s]+(i||"")),Hd=(s,i)=>{const c=new FileReader;return c.onload=function(){const r=c.result.split(",")[1];i("b"+(r||""))},c.readAsDataURL(s)};function qd(s){return s instanceof Uint8Array?s:s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}let Kc;function cg(s,i){if(mm&&s.data instanceof Blob)return s.data.arrayBuffer().then(qd).then(i);if(ym&&(s.data instanceof ArrayBuffer||vm(s.data)))return i(qd(s.data));hr(s,!1,c=>{Kc||(Kc=new TextEncoder),i(Kc.encode(c))})}const Yd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ka=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let s=0;s<Yd.length;s++)ka[Yd.charCodeAt(s)]=s;const rg=s=>{let i=s.length*.75,c=s.length,r,o=0,m,g,E,p;s[s.length-1]==="="&&(i--,s[s.length-2]==="="&&i--);const S=new ArrayBuffer(i),R=new Uint8Array(S);for(r=0;r<c;r+=4)m=ka[s.charCodeAt(r)],g=ka[s.charCodeAt(r+1)],E=ka[s.charCodeAt(r+2)],p=ka[s.charCodeAt(r+3)],R[o++]=m<<2|g>>4,R[o++]=(g&15)<<4|E>>2,R[o++]=(E&3)<<6|p&63;return S},fg=typeof ArrayBuffer=="function",dr=(s,i)=>{if(typeof s!="string")return{type:"message",data:pm(s,i)};const c=s.charAt(0);return c==="b"?{type:"message",data:og(s.substring(1),i)}:vu[c]?s.length>1?{type:vu[c],data:s.substring(1)}:{type:vu[c]}:Pc},og=(s,i)=>{if(fg){const c=rg(s);return pm(c,i)}else return{base64:!0,data:s}},pm=(s,i)=>{switch(i){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}},gm="",hg=(s,i)=>{const c=s.length,r=new Array(c);let o=0;s.forEach((m,g)=>{hr(m,!1,E=>{r[g]=E,++o===c&&i(r.join(gm))})})},dg=(s,i)=>{const c=s.split(gm),r=[];for(let o=0;o<c.length;o++){const m=dr(c[o],i);if(r.push(m),m.type==="error")break}return r};function mg(){return new TransformStream({transform(s,i){cg(s,c=>{const r=c.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const m=new DataView(o.buffer);m.setUint8(0,126),m.setUint16(1,r)}else{o=new Uint8Array(9);const m=new DataView(o.buffer);m.setUint8(0,127),m.setBigUint64(1,BigInt(r))}s.data&&typeof s.data!="string"&&(o[0]|=128),i.enqueue(o),i.enqueue(c)})}})}let Jc;function du(s){return s.reduce((i,c)=>i+c.length,0)}function mu(s,i){if(s[0].length===i)return s.shift();const c=new Uint8Array(i);let r=0;for(let o=0;o<i;o++)c[o]=s[0][r++],r===s[0].length&&(s.shift(),r=0);return s.length&&r<s[0].length&&(s[0]=s[0].slice(r)),c}function yg(s,i){Jc||(Jc=new TextDecoder);const c=[];let r=0,o=-1,m=!1;return new TransformStream({transform(g,E){for(c.push(g);;){if(r===0){if(du(c)<1)break;const p=mu(c,1);m=(p[0]&128)===128,o=p[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(du(c)<2)break;const p=mu(c,2);o=new DataView(p.buffer,p.byteOffset,p.length).getUint16(0),r=3}else if(r===2){if(du(c)<8)break;const p=mu(c,8),S=new DataView(p.buffer,p.byteOffset,p.length),R=S.getUint32(0);if(R>Math.pow(2,21)-1){E.enqueue(Pc);break}o=R*Math.pow(2,32)+S.getUint32(4),r=3}else{if(du(c)<o)break;const p=mu(c,o);E.enqueue(dr(m?p:Jc.decode(p),i)),r=0}if(o===0||o>s){E.enqueue(Pc);break}}}})}const bm=4;function Zt(s){if(s)return vg(s)}function vg(s){for(var i in Zt.prototype)s[i]=Zt.prototype[i];return s}Zt.prototype.on=Zt.prototype.addEventListener=function(s,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+s]=this._callbacks["$"+s]||[]).push(i),this};Zt.prototype.once=function(s,i){function c(){this.off(s,c),i.apply(this,arguments)}return c.fn=i,this.on(s,c),this};Zt.prototype.off=Zt.prototype.removeListener=Zt.prototype.removeAllListeners=Zt.prototype.removeEventListener=function(s,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var c=this._callbacks["$"+s];if(!c)return this;if(arguments.length==1)return delete this._callbacks["$"+s],this;for(var r,o=0;o<c.length;o++)if(r=c[o],r===i||r.fn===i){c.splice(o,1);break}return c.length===0&&delete this._callbacks["$"+s],this};Zt.prototype.emit=function(s){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),c=this._callbacks["$"+s],r=1;r<arguments.length;r++)i[r-1]=arguments[r];if(c){c=c.slice(0);for(var r=0,o=c.length;r<o;++r)c[r].apply(this,i)}return this};Zt.prototype.emitReserved=Zt.prototype.emit;Zt.prototype.listeners=function(s){return this._callbacks=this._callbacks||{},this._callbacks["$"+s]||[]};Zt.prototype.hasListeners=function(s){return!!this.listeners(s).length};const Eu=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,c)=>c(i,0),Le=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),pg="arraybuffer";function Sm(s,...i){return i.reduce((c,r)=>(s.hasOwnProperty(r)&&(c[r]=s[r]),c),{})}const gg=Le.setTimeout,bg=Le.clearTimeout;function Tu(s,i){i.useNativeTimers?(s.setTimeoutFn=gg.bind(Le),s.clearTimeoutFn=bg.bind(Le)):(s.setTimeoutFn=Le.setTimeout.bind(Le),s.clearTimeoutFn=Le.clearTimeout.bind(Le))}const Sg=1.33;function _g(s){return typeof s=="string"?Eg(s):Math.ceil((s.byteLength||s.size)*Sg)}function Eg(s){let i=0,c=0;for(let r=0,o=s.length;r<o;r++)i=s.charCodeAt(r),i<128?c+=1:i<2048?c+=2:i<55296||i>=57344?c+=3:(r++,c+=4);return c}function _m(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Tg(s){let i="";for(let c in s)s.hasOwnProperty(c)&&(i.length&&(i+="&"),i+=encodeURIComponent(c)+"="+encodeURIComponent(s[c]));return i}function xg(s){let i={},c=s.split("&");for(let r=0,o=c.length;r<o;r++){let m=c[r].split("=");i[decodeURIComponent(m[0])]=decodeURIComponent(m[1])}return i}class Ag extends Error{constructor(i,c,r){super(i),this.description=c,this.context=r,this.type="TransportError"}}class mr extends Zt{constructor(i){super(),this.writable=!1,Tu(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,c,r){return super.emitReserved("error",new Ag(i,c,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const c=dr(i,this.socket.binaryType);this.onPacket(c)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,c={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(c)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const c=Tg(i);return c.length?"?"+c:""}}class Cg extends mr{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const c=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||c()})),this.writable||(r++,this.once("drain",function(){--r||c()}))}else c()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const c=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};dg(i,this.socket.binaryType).forEach(c),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,hg(i,c=>{this.doWrite(c,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",c=this.query||{};return this.opts.timestampRequests!==!1&&(c[this.opts.timestampParam]=_m()),!this.supportsBinary&&!c.sid&&(c.b64=1),this.createUri(i,c)}}let Em=!1;try{Em=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Ng=Em;function Og(){}class zg extends Cg{constructor(i){if(super(i),typeof location<"u"){const c=location.protocol==="https:";let r=location.port;r||(r=c?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||r!==i.port}}doWrite(i,c){const r=this.request({method:"POST",data:i});r.on("success",c),r.on("error",(o,m)=>{this.onError("xhr post error",o,m)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(c,r)=>{this.onError("xhr poll error",c,r)}),this.pollXhr=i}}class Je extends Zt{constructor(i,c,r){super(),this.createRequest=i,Tu(this,r),this._opts=r,this._method=r.method||"GET",this._uri=c,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var i;const c=Sm(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");c.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(c);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=Je.requestsCount++,Je.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Og,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Je.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Je.requestsCount=0;Je.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Gd);else if(typeof addEventListener=="function"){const s="onpagehide"in Le?"pagehide":"unload";addEventListener(s,Gd,!1)}}function Gd(){for(let s in Je.requests)Je.requests.hasOwnProperty(s)&&Je.requests[s].abort()}const Mg=(function(){const s=Tm({xdomain:!1});return s&&s.responseType!==null})();class Rg extends zg{constructor(i){super(i);const c=i&&i.forceBase64;this.supportsBinary=Mg&&!c}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new Je(Tm,this.uri(),i)}}function Tm(s){const i=s.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||Ng))return new XMLHttpRequest}catch{}if(!i)try{return new Le[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const xm=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class jg extends mr{get name(){return"websocket"}doOpen(){const i=this.uri(),c=this.opts.protocols,r=xm?{}:Sm(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,c,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let c=0;c<i.length;c++){const r=i[c],o=c===i.length-1;hr(r,this.supportsBinary,m=>{try{this.doWrite(r,m)}catch{}o&&Eu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",c=this.query||{};return this.opts.timestampRequests&&(c[this.opts.timestampParam]=_m()),this.supportsBinary||(c.b64=1),this.createUri(i,c)}}const $c=Le.WebSocket||Le.MozWebSocket;class Dg extends jg{createSocket(i,c,r){return xm?new $c(i,c,r):c?new $c(i,c):new $c(i)}doWrite(i,c){this.ws.send(c)}}class Ug extends mr{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const c=yg(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=i.readable.pipeThrough(c).getReader(),o=mg();o.readable.pipeTo(i.writable),this._writer=o.writable.getWriter();const m=()=>{r.read().then(({done:E,value:p})=>{E||(this.onPacket(p),m())}).catch(E=>{})};m();const g={type:"open"};this.query.sid&&(g.data=`{"sid":"${this.query.sid}"}`),this._writer.write(g).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let c=0;c<i.length;c++){const r=i[c],o=c===i.length-1;this._writer.write(r).then(()=>{o&&Eu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const Bg={websocket:Dg,webtransport:Ug,polling:Rg},wg=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Lg=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function tr(s){if(s.length>8e3)throw"URI too long";const i=s,c=s.indexOf("["),r=s.indexOf("]");c!=-1&&r!=-1&&(s=s.substring(0,c)+s.substring(c,r).replace(/:/g,";")+s.substring(r,s.length));let o=wg.exec(s||""),m={},g=14;for(;g--;)m[Lg[g]]=o[g]||"";return c!=-1&&r!=-1&&(m.source=i,m.host=m.host.substring(1,m.host.length-1).replace(/;/g,":"),m.authority=m.authority.replace("[","").replace("]","").replace(/;/g,":"),m.ipv6uri=!0),m.pathNames=Hg(m,m.path),m.queryKey=qg(m,m.query),m}function Hg(s,i){const c=/\/{2,9}/g,r=i.replace(c,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&r.splice(0,1),i.slice(-1)=="/"&&r.splice(r.length-1,1),r}function qg(s,i){const c={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,m){o&&(c[o]=m)}),c}const er=typeof addEventListener=="function"&&typeof removeEventListener=="function",pu=[];er&&addEventListener("offline",()=>{pu.forEach(s=>s())},!1);class Xn extends Zt{constructor(i,c){if(super(),this.binaryType=pg,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(c=i,i=null),i){const r=tr(i);c.hostname=r.host,c.secure=r.protocol==="https"||r.protocol==="wss",c.port=r.port,r.query&&(c.query=r.query)}else c.host&&(c.hostname=tr(c.host).host);Tu(this,c),this.secure=c.secure!=null?c.secure:typeof location<"u"&&location.protocol==="https:",c.hostname&&!c.port&&(c.port=this.secure?"443":"80"),this.hostname=c.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=c.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},c.transports.forEach(r=>{const o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},c),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=xg(this.opts.query)),er&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},pu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const c=Object.assign({},this.opts.query);c.EIO=bm,c.transport=i,this.id&&(c.sid=this.id);const r=Object.assign({},this.opts,{query:c,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&Xn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const c=this.createTransport(i);c.open(),this.setTransport(c)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",c=>this._onClose("transport close",c))}onOpen(){this.readyState="open",Xn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const c=new Error("server error");c.code=i.data,this._onError(c);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let c=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(c+=_g(o)),r>0&&c>this._maxPayload)return this.writeBuffer.slice(0,r);c+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,Eu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,c,r){return this._sendPacket("message",i,c,r),this}send(i,c,r){return this._sendPacket("message",i,c,r),this}_sendPacket(i,c,r,o){if(typeof c=="function"&&(o=c,c=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const m={type:i,data:c,options:r};this.emitReserved("packetCreate",m),this.writeBuffer.push(m),o&&this.once("flush",o),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},c=()=>{this.off("upgrade",c),this.off("upgradeError",c),i()},r=()=>{this.once("upgrade",c),this.once("upgradeError",c)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():i()}):this.upgrading?r():i()),this}_onError(i){if(Xn.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,c){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),er&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=pu.indexOf(this._offlineEventListener);r!==-1&&pu.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,c),this.writeBuffer=[],this._prevBufferLen=0}}}Xn.protocol=bm;class Yg extends Xn{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let c=this.createTransport(i),r=!1;Xn.priorWebsocketSuccess=!1;const o=()=>{r||(c.send([{type:"ping",data:"probe"}]),c.once("packet",C=>{if(!r)if(C.type==="pong"&&C.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",c),!c)return;Xn.priorWebsocketSuccess=c.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(R(),this.setTransport(c),c.send([{type:"upgrade"}]),this.emitReserved("upgrade",c),c=null,this.upgrading=!1,this.flush())})}else{const X=new Error("probe error");X.transport=c.name,this.emitReserved("upgradeError",X)}}))};function m(){r||(r=!0,R(),c.close(),c=null)}const g=C=>{const X=new Error("probe error: "+C);X.transport=c.name,m(),this.emitReserved("upgradeError",X)};function E(){g("transport closed")}function p(){g("socket closed")}function S(C){c&&C.name!==c.name&&m()}const R=()=>{c.removeListener("open",o),c.removeListener("error",g),c.removeListener("close",E),this.off("close",p),this.off("upgrading",S)};c.once("open",o),c.once("error",g),c.once("close",E),this.once("close",p),this.once("upgrading",S),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{r||c.open()},200):c.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const c=[];for(let r=0;r<i.length;r++)~this.transports.indexOf(i[r])&&c.push(i[r]);return c}}let Gg=class extends Yg{constructor(i,c={}){const r=typeof i=="object"?i:c;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>Bg[o]).filter(o=>!!o)),super(i,r)}};function Xg(s,i="",c){let r=s;c=c||typeof location<"u"&&location,s==null&&(s=c.protocol+"//"+c.host),typeof s=="string"&&(s.charAt(0)==="/"&&(s.charAt(1)==="/"?s=c.protocol+s:s=c.host+s),/^(https?|wss?):\/\//.test(s)||(typeof c<"u"?s=c.protocol+"//"+s:s="https://"+s),r=tr(s)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const m=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+m+":"+r.port+i,r.href=r.protocol+"://"+m+(c&&c.port===r.port?"":":"+r.port),r}const Qg=typeof ArrayBuffer=="function",Vg=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,Am=Object.prototype.toString,kg=typeof Blob=="function"||typeof Blob<"u"&&Am.call(Blob)==="[object BlobConstructor]",Zg=typeof File=="function"||typeof File<"u"&&Am.call(File)==="[object FileConstructor]";function yr(s){return Qg&&(s instanceof ArrayBuffer||Vg(s))||kg&&s instanceof Blob||Zg&&s instanceof File}function gu(s,i){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let c=0,r=s.length;c<r;c++)if(gu(s[c]))return!0;return!1}if(yr(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return gu(s.toJSON(),!0);for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c)&&gu(s[c]))return!0;return!1}function Kg(s){const i=[],c=s.data,r=s;return r.data=nr(c,i),r.attachments=i.length,{packet:r,buffers:i}}function nr(s,i){if(!s)return s;if(yr(s)){const c={_placeholder:!0,num:i.length};return i.push(s),c}else if(Array.isArray(s)){const c=new Array(s.length);for(let r=0;r<s.length;r++)c[r]=nr(s[r],i);return c}else if(typeof s=="object"&&!(s instanceof Date)){const c={};for(const r in s)Object.prototype.hasOwnProperty.call(s,r)&&(c[r]=nr(s[r],i));return c}return s}function Jg(s,i){return s.data=lr(s.data,i),delete s.attachments,s}function lr(s,i){if(!s)return s;if(s&&s._placeholder===!0){if(typeof s.num=="number"&&s.num>=0&&s.num<i.length)return i[s.num];throw new Error("illegal attachments")}else if(Array.isArray(s))for(let c=0;c<s.length;c++)s[c]=lr(s[c],i);else if(typeof s=="object")for(const c in s)Object.prototype.hasOwnProperty.call(s,c)&&(s[c]=lr(s[c],i));return s}const $g=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var vt;(function(s){s[s.CONNECT=0]="CONNECT",s[s.DISCONNECT=1]="DISCONNECT",s[s.EVENT=2]="EVENT",s[s.ACK=3]="ACK",s[s.CONNECT_ERROR=4]="CONNECT_ERROR",s[s.BINARY_EVENT=5]="BINARY_EVENT",s[s.BINARY_ACK=6]="BINARY_ACK"})(vt||(vt={}));class Wg{constructor(i){this.replacer=i}encode(i){return(i.type===vt.EVENT||i.type===vt.ACK)&&gu(i)?this.encodeAsBinary({type:i.type===vt.EVENT?vt.BINARY_EVENT:vt.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let c=""+i.type;return(i.type===vt.BINARY_EVENT||i.type===vt.BINARY_ACK)&&(c+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(c+=i.nsp+","),i.id!=null&&(c+=i.id),i.data!=null&&(c+=JSON.stringify(i.data,this.replacer)),c}encodeAsBinary(i){const c=Kg(i),r=this.encodeAsString(c.packet),o=c.buffers;return o.unshift(r),o}}class vr extends Zt{constructor(i){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof i=="function"?{reviver:i}:i)}add(i){let c;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");c=this.decodeString(i);const r=c.type===vt.BINARY_EVENT;r||c.type===vt.BINARY_ACK?(c.type=r?vt.EVENT:vt.ACK,this.reconstructor=new Fg(c),c.attachments===0&&super.emitReserved("decoded",c)):super.emitReserved("decoded",c)}else if(yr(i)||i.base64)if(this.reconstructor)c=this.reconstructor.takeBinaryData(i),c&&(this.reconstructor=null,super.emitReserved("decoded",c));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let c=0;const r={type:Number(i.charAt(0))};if(vt[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===vt.BINARY_EVENT||r.type===vt.BINARY_ACK){const m=c+1;for(;i.charAt(++c)!=="-"&&c!=i.length;);const g=i.substring(m,c);if(g!=Number(g)||i.charAt(c)!=="-")throw new Error("Illegal attachments");const E=Number(g);if(!Ig(E)||E<0)throw new Error("Illegal attachments");if(E>this.opts.maxAttachments)throw new Error("too many attachments");r.attachments=E}if(i.charAt(c+1)==="/"){const m=c+1;for(;++c&&!(i.charAt(c)===","||c===i.length););r.nsp=i.substring(m,c)}else r.nsp="/";const o=i.charAt(c+1);if(o!==""&&Number(o)==o){const m=c+1;for(;++c;){const g=i.charAt(c);if(g==null||Number(g)!=g){--c;break}if(c===i.length)break}r.id=Number(i.substring(m,c+1))}if(i.charAt(++c)){const m=this.tryParse(i.substr(c));if(vr.isPayloadValid(r.type,m))r.data=m;else throw new Error("invalid payload")}return r}tryParse(i){try{return JSON.parse(i,this.opts.reviver)}catch{return!1}}static isPayloadValid(i,c){switch(i){case vt.CONNECT:return Xd(c);case vt.DISCONNECT:return c===void 0;case vt.CONNECT_ERROR:return typeof c=="string"||Xd(c);case vt.EVENT:case vt.BINARY_EVENT:return Array.isArray(c)&&(typeof c[0]=="number"||typeof c[0]=="string"&&$g.indexOf(c[0])===-1);case vt.ACK:case vt.BINARY_ACK:return Array.isArray(c)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Fg{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const c=Jg(this.reconPack,this.buffers);return this.finishedReconstruction(),c}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Ig=Number.isInteger||function(s){return typeof s=="number"&&isFinite(s)&&Math.floor(s)===s};function Xd(s){return Object.prototype.toString.call(s)==="[object Object]"}const Pg=Object.freeze(Object.defineProperty({__proto__:null,Decoder:vr,Encoder:Wg,get PacketType(){return vt}},Symbol.toStringTag,{value:"Module"}));function Xe(s,i,c){return s.on(i,c),function(){s.off(i,c)}}const t0=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Cm extends Zt{constructor(i,c,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=c,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[Xe(i,"open",this.onopen.bind(this)),Xe(i,"packet",this.onpacket.bind(this)),Xe(i,"error",this.onerror.bind(this)),Xe(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...c){var r,o,m;if(t0.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(c.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(c),this;const g={type:vt.EVENT,data:c};if(g.options={},g.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const R=this.ids++,C=c.pop();this._registerAckCallback(R,C),g.id=R}const E=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,p=this.connected&&!(!((m=this.io.engine)===null||m===void 0)&&m._hasPingExpired());return this.flags.volatile&&!E||(p?(this.notifyOutgoingListeners(g),this.packet(g)):this.sendBuffer.push(g)),this.flags={},this}_registerAckCallback(i,c){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[i]=c;return}const m=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let E=0;E<this.sendBuffer.length;E++)this.sendBuffer[E].id===i&&this.sendBuffer.splice(E,1);c.call(this,new Error("operation has timed out"))},o),g=(...E)=>{this.io.clearTimeoutFn(m),c.apply(this,E)};g.withError=!0,this.acks[i]=g}emitWithAck(i,...c){return new Promise((r,o)=>{const m=(g,E)=>g?o(g):r(E);m.withError=!0,c.push(m),this.emit(i,...c)})}_addToQueue(i){let c;typeof i[i.length-1]=="function"&&(c=i.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((o,...m)=>(this._queue[0],o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),c&&c(o)):(this._queue.shift(),c&&c(null,...m)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const c=this._queue[0];c.pending&&!i||(c.pending=!0,c.tryCount++,this.flags=c.flags,this.emit.apply(this,c.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:vt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,c){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,c),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(r=>String(r.id)===i)){const r=this.acks[i];delete this.acks[i],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case vt.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case vt.EVENT:case vt.BINARY_EVENT:this.onevent(i);break;case vt.ACK:case vt.BINARY_ACK:this.onack(i);break;case vt.DISCONNECT:this.ondisconnect();break;case vt.CONNECT_ERROR:this.destroy();const r=new Error(i.data.message);r.data=i.data.data,this.emitReserved("connect_error",r);break}}onevent(i){const c=i.data||[];i.id!=null&&c.push(this.ack(i.id)),this.connected?this.emitEvent(c):this.receiveBuffer.push(Object.freeze(c))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const c=this._anyListeners.slice();for(const r of c)r.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const c=this;let r=!1;return function(...o){r||(r=!0,c.packet({type:vt.ACK,id:i,data:o}))}}onack(i){const c=this.acks[i.id];typeof c=="function"&&(delete this.acks[i.id],c.withError&&i.data.unshift(null),c.apply(this,i.data))}onconnect(i,c){this.id=i,this.recovered=c&&this._pid===c,this._pid=c,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:vt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const c=this._anyListeners;for(let r=0;r<c.length;r++)if(i===c[r])return c.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const c=this._anyOutgoingListeners;for(let r=0;r<c.length;r++)if(i===c[r])return c.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const c=this._anyOutgoingListeners.slice();for(const r of c)r.apply(this,i.data)}}}function $l(s){s=s||{},this.ms=s.min||100,this.max=s.max||1e4,this.factor=s.factor||2,this.jitter=s.jitter>0&&s.jitter<=1?s.jitter:0,this.attempts=0}$l.prototype.duration=function(){var s=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),c=Math.floor(i*this.jitter*s);s=(Math.floor(i*10)&1)==0?s-c:s+c}return Math.min(s,this.max)|0};$l.prototype.reset=function(){this.attempts=0};$l.prototype.setMin=function(s){this.ms=s};$l.prototype.setMax=function(s){this.max=s};$l.prototype.setJitter=function(s){this.jitter=s};class ar extends Zt{constructor(i,c){var r;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(c=i,i=void 0),c=c||{},c.path=c.path||"/socket.io",this.opts=c,Tu(this,c),this.reconnection(c.reconnection!==!1),this.reconnectionAttempts(c.reconnectionAttempts||1/0),this.reconnectionDelay(c.reconnectionDelay||1e3),this.reconnectionDelayMax(c.reconnectionDelayMax||5e3),this.randomizationFactor((r=c.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new $l({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(c.timeout==null?2e4:c.timeout),this._readyState="closed",this.uri=i;const o=c.parser||Pg;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=c.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var c;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(c=this.backoff)===null||c===void 0||c.setMin(i),this)}randomizationFactor(i){var c;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(c=this.backoff)===null||c===void 0||c.setJitter(i),this)}reconnectionDelayMax(i){var c;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(c=this.backoff)===null||c===void 0||c.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new Gg(this.uri,this.opts);const c=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Xe(c,"open",function(){r.onopen(),i&&i()}),m=E=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",E),i?i(E):this.maybeReconnectOnOpen()},g=Xe(c,"error",m);if(this._timeout!==!1){const E=this._timeout,p=this.setTimeoutFn(()=>{o(),m(new Error("timeout")),c.close()},E);this.opts.autoUnref&&p.unref(),this.subs.push(()=>{this.clearTimeoutFn(p)})}return this.subs.push(o),this.subs.push(g),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(Xe(i,"ping",this.onping.bind(this)),Xe(i,"data",this.ondata.bind(this)),Xe(i,"error",this.onerror.bind(this)),Xe(i,"close",this.onclose.bind(this)),Xe(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(c){this.onclose("parse error",c)}}ondecoded(i){Eu(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,c){let r=this.nsps[i];return r?this._autoConnect&&!r.active&&r.connect():(r=new Cm(this,i,c),this.nsps[i]=r),r}_destroy(i){const c=Object.keys(this.nsps);for(const r of c)if(this.nsps[r].active)return;this._close()}_packet(i){const c=this.encoder.encode(i);for(let r=0;r<c.length;r++)this.engine.write(c[r],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,c){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,c),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const c=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(o=>{o?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",o)):i.onreconnect()}))},c);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const Va={};function bu(s,i){typeof s=="object"&&(i=s,s=void 0),i=i||{};const c=Xg(s,i.path||"/socket.io"),r=c.source,o=c.id,m=c.path,g=Va[o]&&m in Va[o].nsps,E=i.forceNew||i["force new connection"]||i.multiplex===!1||g;let p;return E?p=new ar(r,i):(Va[o]||(Va[o]=new ar(r,i)),p=Va[o]),c.query&&!i.query&&(i.query=c.queryKey),p.socket(c.path,i)}Object.assign(bu,{Manager:ar,Socket:Cm,io:bu,connect:bu});var Su={exports:{}},e0=Su.exports,Qd;function n0(){return Qd||(Qd=1,(function(s,i){(function(c,r){s.exports=r()})(e0,(function(){var c=1e3,r=6e4,o=36e5,m="millisecond",g="second",E="minute",p="hour",S="day",R="week",C="month",X="quarter",F="year",U="date",q="Invalid Date",V=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,et=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var Q=["th","st","nd","rd"],_=P%100;return"["+P+(Q[(_-20)%10]||Q[_]||Q[0])+"]"}},lt=function(P,Q,_){var j=String(P);return!j||j.length>=Q?P:""+Array(Q+1-j.length).join(_)+P},pt={s:lt,z:function(P){var Q=-P.utcOffset(),_=Math.abs(Q),j=Math.floor(_/60),w=_%60;return(Q<=0?"+":"-")+lt(j,2,"0")+":"+lt(w,2,"0")},m:function P(Q,_){if(Q.date()<_.date())return-P(_,Q);var j=12*(_.year()-Q.year())+(_.month()-Q.month()),w=Q.clone().add(j,C),k=_-w<0,Z=Q.clone().add(j+(k?-1:1),C);return+(-(j+(_-w)/(k?w-Z:Z-w))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:C,y:F,w:R,d:S,D:U,h:p,m:E,s:g,ms:m,Q:X}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},Ct="en",gt={};gt[Ct]=$;var at="$isDayjsObject",Gt=function(P){return P instanceof Ht||!(!P||!P[at])},It=function P(Q,_,j){var w;if(!Q)return Ct;if(typeof Q=="string"){var k=Q.toLowerCase();gt[k]&&(w=k),_&&(gt[k]=_,w=k);var Z=Q.split("-");if(!w&&Z.length>1)return P(Z[0])}else{var v=Q.name;gt[v]=Q,w=v}return!j&&w&&(Ct=w),w||!j&&Ct},bt=function(P,Q){if(Gt(P))return P.clone();var _=typeof Q=="object"?Q:{};return _.date=P,_.args=arguments,new Ht(_)},st=pt;st.l=It,st.i=Gt,st.w=function(P,Q){return bt(P,{locale:Q.$L,utc:Q.$u,x:Q.$x,$offset:Q.$offset})};var Ht=(function(){function P(_){this.$L=It(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[at]=!0}var Q=P.prototype;return Q.parse=function(_){this.$d=(function(j){var w=j.date,k=j.utc;if(w===null)return new Date(NaN);if(st.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var Z=w.match(V);if(Z){var v=Z[2]-1||0,M=(Z[7]||"0").substring(0,3);return k?new Date(Date.UTC(Z[1],v,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,M)):new Date(Z[1],v,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,M)}}return new Date(w)})(_),this.init()},Q.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},Q.$utils=function(){return st},Q.isValid=function(){return this.$d.toString()!==q},Q.isSame=function(_,j){var w=bt(_);return this.startOf(j)<=w&&w<=this.endOf(j)},Q.isAfter=function(_,j){return bt(_)<this.startOf(j)},Q.isBefore=function(_,j){return this.endOf(j)<bt(_)},Q.$g=function(_,j,w){return st.u(_)?this[j]:this.set(w,_)},Q.unix=function(){return Math.floor(this.valueOf()/1e3)},Q.valueOf=function(){return this.$d.getTime()},Q.startOf=function(_,j){var w=this,k=!!st.u(j)||j,Z=st.p(_),v=function(H,K){var Rt=st.w(w.$u?Date.UTC(w.$y,K,H):new Date(w.$y,K,H),w);return k?Rt:Rt.endOf(S)},M=function(H,K){return st.w(w.toDate()[H].apply(w.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(K)),w)},Y=this.$W,G=this.$M,I=this.$D,it="set"+(this.$u?"UTC":"");switch(Z){case F:return k?v(1,0):v(31,11);case C:return k?v(1,G):v(0,G+1);case R:var ft=this.$locale().weekStart||0,Bt=(Y<ft?Y+7:Y)-ft;return v(k?I-Bt:I+(6-Bt),G);case S:case U:return M(it+"Hours",0);case p:return M(it+"Minutes",1);case E:return M(it+"Seconds",2);case g:return M(it+"Milliseconds",3);default:return this.clone()}},Q.endOf=function(_){return this.startOf(_,!1)},Q.$set=function(_,j){var w,k=st.p(_),Z="set"+(this.$u?"UTC":""),v=(w={},w[S]=Z+"Date",w[U]=Z+"Date",w[C]=Z+"Month",w[F]=Z+"FullYear",w[p]=Z+"Hours",w[E]=Z+"Minutes",w[g]=Z+"Seconds",w[m]=Z+"Milliseconds",w)[k],M=k===S?this.$D+(j-this.$W):j;if(k===C||k===F){var Y=this.clone().set(U,1);Y.$d[v](M),Y.init(),this.$d=Y.set(U,Math.min(this.$D,Y.daysInMonth())).$d}else v&&this.$d[v](M);return this.init(),this},Q.set=function(_,j){return this.clone().$set(_,j)},Q.get=function(_){return this[st.p(_)]()},Q.add=function(_,j){var w,k=this;_=Number(_);var Z=st.p(j),v=function(G){var I=bt(k);return st.w(I.date(I.date()+Math.round(G*_)),k)};if(Z===C)return this.set(C,this.$M+_);if(Z===F)return this.set(F,this.$y+_);if(Z===S)return v(1);if(Z===R)return v(7);var M=(w={},w[E]=r,w[p]=o,w[g]=c,w)[Z]||1,Y=this.$d.getTime()+_*M;return st.w(Y,this)},Q.subtract=function(_,j){return this.add(-1*_,j)},Q.format=function(_){var j=this,w=this.$locale();if(!this.isValid())return w.invalidDate||q;var k=_||"YYYY-MM-DDTHH:mm:ssZ",Z=st.z(this),v=this.$H,M=this.$m,Y=this.$M,G=w.weekdays,I=w.months,it=w.meridiem,ft=function(K,Rt,ae,Qe){return K&&(K[Rt]||K(j,k))||ae[Rt].slice(0,Qe)},Bt=function(K){return st.s(v%12||12,K,"0")},H=it||function(K,Rt,ae){var Qe=K<12?"AM":"PM";return ae?Qe.toLowerCase():Qe};return k.replace(et,(function(K,Rt){return Rt||(function(ae){switch(ae){case"YY":return String(j.$y).slice(-2);case"YYYY":return st.s(j.$y,4,"0");case"M":return Y+1;case"MM":return st.s(Y+1,2,"0");case"MMM":return ft(w.monthsShort,Y,I,3);case"MMMM":return ft(I,Y);case"D":return j.$D;case"DD":return st.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return ft(w.weekdaysMin,j.$W,G,2);case"ddd":return ft(w.weekdaysShort,j.$W,G,3);case"dddd":return G[j.$W];case"H":return String(v);case"HH":return st.s(v,2,"0");case"h":return Bt(1);case"hh":return Bt(2);case"a":return H(v,M,!0);case"A":return H(v,M,!1);case"m":return String(M);case"mm":return st.s(M,2,"0");case"s":return String(j.$s);case"ss":return st.s(j.$s,2,"0");case"SSS":return st.s(j.$ms,3,"0");case"Z":return Z}return null})(K)||Z.replace(":","")}))},Q.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Q.diff=function(_,j,w){var k,Z=this,v=st.p(j),M=bt(_),Y=(M.utcOffset()-this.utcOffset())*r,G=this-M,I=function(){return st.m(Z,M)};switch(v){case F:k=I()/12;break;case C:k=I();break;case X:k=I()/3;break;case R:k=(G-Y)/6048e5;break;case S:k=(G-Y)/864e5;break;case p:k=G/o;break;case E:k=G/r;break;case g:k=G/c;break;default:k=G}return w?k:st.a(k)},Q.daysInMonth=function(){return this.endOf(C).$D},Q.$locale=function(){return gt[this.$L]},Q.locale=function(_,j){if(!_)return this.$L;var w=this.clone(),k=It(_,j,!0);return k&&(w.$L=k),w},Q.clone=function(){return st.w(this.$d,this)},Q.toDate=function(){return new Date(this.valueOf())},Q.toJSON=function(){return this.isValid()?this.toISOString():null},Q.toISOString=function(){return this.$d.toISOString()},Q.toString=function(){return this.$d.toUTCString()},P})(),me=Ht.prototype;return bt.prototype=me,[["$ms",m],["$s",g],["$m",E],["$H",p],["$W",S],["$M",C],["$y",F],["$D",U]].forEach((function(P){me[P[1]]=function(Q){return this.$g(Q,P[0],P[1])}})),bt.extend=function(P,Q){return P.$i||(P(Q,Ht,bt),P.$i=!0),bt},bt.locale=It,bt.isDayjs=Gt,bt.unix=function(P){return bt(1e3*P)},bt.en=gt[Ct],bt.Ls=gt,bt.p={},bt}))})(Su)),Su.exports}var l0=n0();const a0=ur(l0);let Nm="/api";Nm="/api";async function Ft(s,i){const c=localStorage.getItem("token"),r={"Content-Type":"application/json",...c?{"user-token":c}:{},...(i==null?void 0:i.headers)||{}},m=await(await fetch(`${Nm}${s}`,{...i,headers:r})).json();return m!=null&&m.success?m:Promise.reject(m)}async function i0(s,i){return Ft("/login",{method:"POST",body:JSON.stringify({username:s,password:i})})}async function u0(s,i,c){return Ft("/register",{method:"POST",body:JSON.stringify({username:s,password:i,inviteCode:c})})}async function s0(s,i=["."],c="",r=void 0){return Ft("/addTask",{method:"POST",body:JSON.stringify({branch:s,packagePaths:i,commit:c,notify:r})})}async function Vd(){return Ft("/getAllPackage")}async function c0(){return Ft("/refreshPackages")}async function r0(){return Ft("/getAllLog")}async function f0(){return Ft("/getAllBackup")}async function kd(s){return Ft("/cancelTask",{method:"POST",body:JSON.stringify({taskId:s})})}async function o0(s){return Ft("/restore",{method:"POST",body:JSON.stringify({fileName:s})})}async function h0(){return Ft("/getAllCommand")}async function d0(){return Ft("/getNoticeList")}async function m0(s,i){return Ft("/manualTriggerNotice",{method:"POST",body:JSON.stringify({httpsOrigin:s,branch:i})})}async function y0(s){return Ft("/getUserInfo")}async function Om(){return Ft("/getAllUsers")}async function v0(s,i){return Ft("/updateUserRole",{method:"POST",body:JSON.stringify({userId:s,newRole:i})})}async function zm(){return Ft("/inviteCodes")}async function p0(){return Ft("/generateInviteCode",{method:"POST"})}async function Zd(){return Ft("/getPendingTasks")}const g0=(s=+Date.now())=>a0(s).format("YYYY-MM-DD HH:mm:ss");function b0(){const s=N.useRef(null),i=N.useRef(""),c=N.useRef(""),r=N.useRef(""),[o,m]=N.useState([]),[g,E]=N.useState([]),[p,S]=N.useState([]),[R,C]=N.useState([]);N.useEffect(()=>{const U=localStorage.getItem("token")||"";i.current=localStorage.getItem("userId")||"";const q=bu({path:"/ws/",auth:{token:U,lastChatId:c.current,lastBuildId:r.current},reconnectionDelayMax:1e4});s.current=q,q.on("connect_error",$=>{$.message==="invalid token"&&(localStorage.removeItem("token"),localStorage.removeItem("userId"),window.location.href="/login")}),q.on("on:msg-getAllChat",$=>{m(lt=>{const pt=new Set(lt.map(at=>at.id)),Ct=$.filter(at=>!pt.has(at.id)),gt=[...lt,...Ct];return gt.length&&(c.current=gt[gt.length-1].id),gt})}),q.on("on:msg-getAllBuild",$=>{E(lt=>{const pt=new Set(lt.map(at=>at.id)),Ct=$.filter(at=>!pt.has(at.id)),gt=[...lt,...Ct];return gt.length&&(r.current=gt[gt.length-1].id),gt})}),q.on("on:msg-chat",$=>{m(lt=>[...lt,$]),c.current=$.id}),q.on("on:msg-build",$=>{E(lt=>{const pt=lt.find(Ct=>Ct.taskId===$.taskId);return pt?(pt.msg=pt.msg+$.msg,pt.task=$.task,[...lt]):[...lt,$]}),r.current=$.id}),q.io.on("reconnect",()=>{q.auth={...q.auth,lastChatId:c.current,lastBuildId:r.current}});const V=()=>{Zd().then($=>C($.list||[])).catch(()=>{})};q.on("on:pending-tasks-update",V),Zd().then($=>C($.list||[])).catch(()=>{}),h0().then($=>S($.list||[])).catch(()=>{});const et=setInterval(V,1e4);return()=>{q.disconnect(),clearInterval(et)}},[]);const X=N.useCallback(U=>{var q;!((q=s.current)!=null&&q.id)||!U||s.current.emit("on:msg-chat",{ctxType:"ctx:txt",msg:U})},[]),F=N.useCallback(U=>{var V;if(!((V=s.current)!=null&&V.id)||!U.length)return;const q=Array.from(U).map(et=>({file:et,name:et.name,size:et.size,type:et.type}));s.current.emit("on:msg-chat",{ctxType:"ctx:imgs",files:q})},[]);return{chatMessages:o,buildMessages:g,commandList:p,pendingTasks:R,sendMessage:X,sendImages:F,userIdRef:i,formatTime:g0}}function Kd(s){const i=N.useRef(null),c=N.useRef(!0),r=(o=!1)=>{i.current&&(c.current||o)&&setTimeout(()=>{var m;(m=i.current)==null||m.scrollTo({top:i.current.scrollHeight,behavior:"smooth"})},50)};return N.useEffect(()=>{const o=i.current;if(!o)return;const m=()=>{c.current=o.scrollHeight-o.offsetHeight-o.scrollTop<80,c.current&&(s==null||s())};return o.addEventListener("scroll",m),()=>o.removeEventListener("scroll",m)},[s]),[i,r,c]}const S0="_modalRoot_1nlw0_1",_0={modalRoot:S0},E0="_modalContainerShow_naiks_21",T0="_modalContainerHide_naiks_24",x0="_closing_naiks_28",Wc={modalContainerShow:E0,modalContainerHide:T0,closing:x0},A0=(s="modal")=>`${s}_${Date.now()}_${Math.random().toString(36).slice(2,8)}`;function C0({modalId:s,children:i,width:c="520px",isClickMaskClose:r=!0,onClose:o,isShow:m,zIndex:g,onHide:E,onRemove:p,getTopId:S}){const R=()=>{o==null||o(),E(s)};return N.useEffect(()=>{const C=X=>{X.key==="Escape"&&S()===s&&R()};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[s]),d.jsx("div",{className:`${_0.modalRoot} ${m?"":Wc.closing}`,style:{zIndex:g},onClick:()=>r&&R(),children:d.jsxs("div",{className:`modal-container ${m?Wc.modalContainerShow:Wc.modalContainerHide}`,style:{width:`min(90vw, ${c})`},onClick:C=>C.stopPropagation(),onAnimationEnd:()=>{m||p(s)},children:[d.jsx("div",{className:"modal-close-bar",children:d.jsx("button",{className:"close-btn",onClick:R,children:"✕"})}),d.jsx("div",{className:"modal-body",children:i})]})})}class N0{constructor(){Ge(this,"setList",null);Ge(this,"getList",null);Ge(this,"count",1);Ge(this,"containerRoot",null);Ge(this,"pendingItems",[])}inject(i,c){var r;this.setList=i,this.getList=c,this.pendingItems.length>0&&((r=this.setList)==null||r.call(this,o=>[...o,...this.pendingItems]),this.pendingItems=[])}show(i,c={}){var E,p;this.ensureContainer();const r=A0(`modal_${this.count++}`),o=((E=this.getList)==null?void 0:E.call(this))||[],m=()=>this.hide(r),g={modalId:r,children:i,width:c.width,isClickMaskClose:c.isClickMaskClose,onClose:c.onClose,isShow:!0,zIndex:1e3+o.length};return this.setList?(p=this.setList)==null||p.call(this,S=>[...S,g]):this.pendingItems.push(g),{modalId:r,close:m}}hide(i){var c;(c=this.setList)==null||c.call(this,r=>r.map(o=>o.modalId===i?{...o,isShow:!1}:o))}hideTop(){var c;const i=((c=this.getList)==null?void 0:c.call(this))||[];i.length!==0&&this.hide(i[i.length-1].modalId)}hideAll(){var i;(i=this.setList)==null||i.call(this,[])}remove(i){var c;(c=this.setList)==null||c.call(this,r=>r.filter(o=>o.modalId!==i))}getTopId(){var c;const i=((c=this.getList)==null?void 0:c.call(this))||[];return i.length>0?i[i.length-1].modalId:void 0}ensureContainer(){if(this.containerRoot)return;const i=document.createElement("div");i.id="__stack_modal_container__",document.body.appendChild(i),this.containerRoot=cr.createRoot(i),this.containerRoot.render(d.jsx(O0,{manager:this}))}}const Ce=new N0;function O0({manager:s}){const[i,c]=N.useState([]);return N.useEffect(()=>{s.inject(c,()=>i)}),N.useEffect(()=>{document.body.style.overflow=i.length>0?"hidden":""},[i.length]),d.jsx(d.Fragment,{children:i.map(r=>d.jsx(C0,{...r,onHide:o=>s.hide(o),onRemove:o=>s.remove(o),getTopId:()=>s.getTopId()},r.modalId))})}function z0({title:s,desc:i,onOk:c,onCancel:r}){return d.jsxs("div",{className:"confirm-wrap",children:[d.jsx("div",{className:"confirm-title",children:s}),i&&d.jsx("div",{className:"confirm-desc",children:i}),d.jsxs("div",{className:"confirm-actions",children:[d.jsx("button",{className:"btn-cancel",onClick:r,children:"取消"}),d.jsx("button",{className:"btn-ok",onClick:c,children:"确认"})]})]})}function Kl(s){const{close:i}=Ce.show(d.jsx(z0,{title:s.title,desc:s.desc,onOk:()=>{var c;(c=s.onOk)==null||c.call(s),i()},onCancel:()=>{var c;(c=s.onCancel)==null||c.call(s),i()}}),{width:"400px",isClickMaskClose:!1})}const M0="_toastShow_sls7c_21",R0="_toastHide_sls7c_24",j0="_toastRoot_sls7c_27",ir={toastShow:M0,toastHide:R0,toastRoot:j0};function D0({item:s,onHide:i,onRemove:c}){return N.useEffect(()=>{const r=setTimeout(()=>i(s.id),2e3);return()=>clearTimeout(r)},[s.id]),d.jsx("div",{className:`toast-item ${s.type==="error"?"toast-error":"toast-success"} ${s.isShow?ir.toastShow:ir.toastHide}`,onAnimationEnd:()=>{s.isShow||c(s.id)},children:s.msg})}class U0{constructor(){Ge(this,"setList",null);Ge(this,"getList",null);Ge(this,"uid",0);Ge(this,"containerRoot",null);Ge(this,"pendingItems",[])}inject(i,c){var r;this.setList=i,this.getList=c,this.pendingItems.length>0&&((r=this.setList)==null||r.call(this,o=>[...o,...this.pendingItems]),this.pendingItems=[])}add(i,c="success"){var m;this.ensureContainer();const o={id:++this.uid,msg:i,type:c,isShow:!0};this.setList?(m=this.setList)==null||m.call(this,g=>[...g,o]):this.pendingItems.push(o)}hide(i){var c;(c=this.setList)==null||c.call(this,r=>r.map(o=>o.id===i?{...o,isShow:!1}:o))}remove(i){var c;(c=this.setList)==null||c.call(this,r=>r.filter(o=>o.id!==i))}ensureContainer(){if(this.containerRoot)return;const i=document.createElement("div");i.id="__toast_container__",document.body.appendChild(i),this.containerRoot=cr.createRoot(i),this.containerRoot.render(d.jsx(B0,{manager:this}))}}const Jd=new U0;function B0({manager:s}){const[i,c]=N.useState([]);return N.useEffect(()=>{s.inject(c,()=>i)}),d.jsx("div",{className:ir.toastRoot,children:d.jsx("div",{className:"toast-container",children:i.map(r=>d.jsx(D0,{item:r,onHide:o=>s.hide(o),onRemove:o=>s.remove(o)},r.id))})})}const Tt={msg:s=>Jd.add(s,"success"),err:s=>Jd.add(s,"error")};function w0({urls:s,initialIndex:i=0}){const[c,r]=N.useState(i),o=s[c],m=L0(o),g=s.length,E=N.useCallback(()=>r(S=>Math.max(0,S-1)),[]),p=N.useCallback(()=>r(S=>Math.min(g-1,S+1)),[g]);return N.useEffect(()=>{const S=R=>{R.key==="ArrowLeft"?E():R.key==="ArrowRight"&&p()};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[E,p]),d.jsxs("div",{className:"preview-wrap",children:[d.jsx("div",{className:"preview-media",children:m?d.jsx("video",{loop:!0,autoPlay:!0,playsInline:!0,src:o,className:"preview-video"},o):d.jsx("img",{src:o,alt:"",className:"preview-img"},o)}),g>1&&d.jsxs(d.Fragment,{children:[d.jsx("button",{className:"preview-arrow preview-prev",onClick:E,disabled:c===0,children:"‹"}),d.jsx("button",{className:"preview-arrow preview-next",onClick:p,disabled:c===g-1,children:"›"}),d.jsxs("div",{className:"preview-indicator",children:[c+1," / ",g]})]})]})}function L0(s){return[".mp4",".avi",".mov",".mkv",".flv",".wmv"].some(i=>s.toLowerCase().endsWith(i))}function H0(s,i=0){s.length&&Ce.show(d.jsx(w0,{urls:s,initialIndex:i}),{width:"90vw",isClickMaskClose:!0})}const q0="_userModal_bfbaq_1",Y0={userModal:q0};function G0({user:s}){const i=s.name.charAt(0).toUpperCase(),c=async()=>{try{await navigator.clipboard.writeText(s.id),Tt.msg("ID 已复制")}catch{const r=document.createElement("textarea");r.value=s.id,document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r),Tt.msg("ID 已复制")}};return d.jsxs("div",{className:Y0.userModal,children:[d.jsx("h3",{children:"用户信息"}),d.jsx("div",{className:"user-avatar-large",children:i}),d.jsxs("div",{className:"user-info",children:[d.jsxs("div",{className:"info-row",children:[d.jsx("span",{className:"label",children:"用户名:"}),d.jsx("span",{className:"value",children:s.name})]}),d.jsxs("div",{className:"info-row",children:[d.jsx("span",{className:"label",children:"用户ID:"}),d.jsxs("span",{className:"value code-id",children:[s.id,d.jsx("button",{className:"copy-icon",onClick:c,title:"复制",children:"📋"})]})]}),d.jsxs("div",{className:"info-row",children:[d.jsx("span",{className:"label",children:"角色:"}),d.jsx("span",{className:`value role-tag ${s.role}`,children:s.role})]})]}),d.jsx("button",{className:"btn-close",onClick:()=>Ce.hideTop(),children:"关闭"})]})}const X0="_select_f48hn_1",Q0={select:X0};function Mm({options:s,value:i="",placeholder:c="请选择",onChange:r,disabled:o=!1}){const[m,g]=N.useState(!1),E=N.useRef(null),p=N.useRef(null),[S,R]=N.useState({}),C=N.useCallback(()=>{var lt;if(!E.current)return;const q=E.current.getBoundingClientRect(),V=window.innerHeight-q.bottom-4,et=((lt=p.current)==null?void 0:lt.offsetHeight)??0,$=et>0&&V<et&&q.top>V;R({position:"fixed",top:$?void 0:q.bottom+4,bottom:$?window.innerHeight-q.top+4:void 0,left:q.left,width:q.width,zIndex:99999})},[]),X=N.useCallback(q=>{q.key==="Escape"&&g(!1)},[]);N.useEffect(()=>{if(m)return C(),window.addEventListener("scroll",C,!0),window.addEventListener("resize",C),window.addEventListener("keydown",X),()=>{window.removeEventListener("scroll",C,!0),window.removeEventListener("resize",C),window.removeEventListener("keydown",X)}},[m,C,X]),N.useEffect(()=>{if(!m)return;const q=V=>{const et=V.target;E.current&&E.current.contains(et)||p.current&&p.current.contains(et)||g(!1)};return document.addEventListener("mousedown",q),()=>document.removeEventListener("mousedown",q)},[m]);const F=s.find(q=>q.value===i),U=F?F.label:c;return d.jsxs("div",{ref:E,className:Q0.select,children:[d.jsxs("button",{className:`select-trigger ${m?"select-trigger-open":""} ${o?"select-trigger-disabled":""}`,onClick:()=>!o&&g(q=>!q),type:"button",disabled:o,children:[d.jsx("span",{className:`select-trigger-text ${F?"":"select-placeholder"}`,children:U}),d.jsx("span",{className:`select-arrow ${m?"select-arrow-open":""}`,children:"‹"})]}),m&&!o&&Pd.createPortal(d.jsx("div",{ref:p,className:"select-dropdown",style:S,children:s.map(q=>d.jsx("div",{className:`select-option ${q.value===i?"select-option-active":""}`,onClick:()=>{r==null||r(q.value),g(!1)},children:q.label},q.value))}),document.body)]})}const V0="_permissionModal_lkmtn_1",k0={permissionModal:V0};function Z0({currentUser:s,initialUsers:i}){const[c,r]=N.useState(i),[o,m]=N.useState(""),[g,E]=N.useState(null),p=N.useRef(new Map);N.useEffect(()=>{r(i)},[i]);const S=o?c.filter(U=>U.id.includes(o)||U.name.includes(o)):c,R=()=>s.role==="super"?[{value:"super",label:"Super"},{value:"admin",label:"Admin"},{value:"user",label:"User"}]:s.role==="admin"?[{value:"admin",label:"Admin"},{value:"user",label:"User"}]:[],C=async(U,q)=>{E(U);try{if((await v0(U,q)).success){Tt.msg("角色更新成功");const et=await Om();et.success&&et.data&&(r(et.data),p.current.clear())}}catch(V){Tt.err((V==null?void 0:V.message)||"角色更新失败")}finally{E(null)}},X=N.useCallback((U,q)=>{p.current.set(U,q),C(U,q)},[]),F=N.useCallback(U=>p.current.get(U.id)??U.role,[]);return d.jsxs("div",{className:k0.permissionModal,children:[d.jsxs("h3",{children:["权限管理",d.jsxs("span",{className:"user-count",children:[c.length," 位用户"]})]}),d.jsx("div",{className:"search-bar",children:d.jsx("input",{type:"text",placeholder:"搜索用户ID或用户名",value:o,onChange:U=>m(U.target.value),autoFocus:!0})}),d.jsxs("div",{className:"user-list",children:[d.jsxs("table",{children:[d.jsx("thead",{children:d.jsxs("tr",{children:[d.jsx("th",{children:"用户名"}),d.jsx("th",{children:"角色"}),d.jsx("th",{style:{width:120},children:"操作"})]})}),d.jsx("tbody",{children:S.map(U=>d.jsxs("tr",{className:U.id===s.id?"is-current":"",children:[d.jsxs("td",{children:[d.jsx("span",{className:"user-name",children:U.name}),d.jsx("span",{className:"user-id",children:U.id})]}),d.jsx("td",{children:d.jsx("span",{className:`role-badge ${F(U)}`,children:F(U)})}),d.jsx("td",{children:d.jsx(Mm,{options:R(),value:F(U),onChange:q=>X(U.id,q),disabled:U.id===s.id||g===U.id})})]},U.id))})]}),S.length===0&&d.jsx("div",{className:"empty",children:"暂无匹配用户"})]}),d.jsx("div",{className:"footer",children:d.jsx("button",{className:"btn-close",onClick:()=>Ce.hideTop(),children:"关闭"})})]})}const K0="_inviteModal_1gxli_1",J0={inviteModal:K0};function $0({inviteCodes:s,onCodesUpdate:i}){const[c,r]=N.useState(s),[o,m]=N.useState(!1),g=N.useRef(null),E=[...c].sort((U,q)=>U.timestamp-q.timestamp),p=E.length>0?E[E.length-1]:null,S=E.slice(0,-1);N.useEffect(()=>{g.current&&(g.current.scrollTop=g.current.scrollHeight)},[c]);const R=U=>{switch(U){case 0:return{text:"未使用",cls:"status-0"};case 1:return{text:"已使用",cls:"status-1"};case 2:return{text:"已过期",cls:"status-2"};default:return{text:"未知",cls:""}}},C=U=>new Date(U).toLocaleString("zh-CN"),X=async U=>{try{await navigator.clipboard.writeText(U),Tt.msg("已复制到剪贴板")}catch{Tt.err("复制失败")}},F=async()=>{if(!o){m(!0);try{if((await p0()).success){Tt.msg("邀请码生成成功");const q=await zm();q.success&&q.data&&(r(q.data),i(q.data))}}catch(U){Tt.err((U==null?void 0:U.message)||"邀请码生成失败")}finally{m(!1)}}};return d.jsxs("div",{className:J0.inviteModal,children:[d.jsx("h3",{children:"邀请码管理"}),c.length===0?d.jsxs("div",{className:"empty-state",children:[d.jsx("div",{className:"deco",children:"🎉"}),d.jsx("p",{children:"暂无邀请码"}),d.jsx("button",{className:"btn-generate",onClick:F,disabled:o,children:o?"生成中...":"生成邀请码"}),d.jsx("span",{className:"tip",children:"点击上方按钮即可生成新的邀请码"})]}):d.jsxs(d.Fragment,{children:[p&&d.jsxs("div",{className:"latest-code",children:[d.jsx("span",{className:"badge",children:"最新"}),d.jsx("span",{className:`status-dot ${R(p.state).cls}`}),d.jsx("span",{className:"status-text",children:R(p.state).text}),d.jsx("span",{className:"code-text",children:p.code}),d.jsx("span",{className:"code-time",children:C(p.timestamp)}),d.jsx("button",{className:"copy-btn",onClick:()=>X(p.code),children:"复制"})]}),S.length>0&&d.jsx("div",{ref:g,className:"code-list",children:S.map(U=>{const q=R(U.state);return d.jsxs("div",{className:"code-item",children:[d.jsx("span",{className:`status-dot ${q.cls}`}),d.jsx("span",{className:"status-text",children:q.text}),d.jsx("span",{className:"code-text",children:U.code}),d.jsx("span",{className:"code-time",children:C(U.timestamp)}),d.jsx("button",{className:"copy-btn",onClick:()=>X(U.code),children:"复制"})]},U.code)})}),d.jsxs("div",{className:"actions",children:[d.jsx("button",{className:"btn-generate",onClick:F,disabled:o,children:o?"生成中...":"生成新的邀请码"}),d.jsx("button",{className:"btn-close",onClick:()=>Ce.hideTop(),children:"关闭"})]})]})]})}const W0="_userAvatar_9xyff_1",$d={userAvatar:W0};function F0({user:s,onUserInfo:i,onPermission:c,onInvite:r,onLogout:o}){const[m,g]=N.useState(!1),E=N.useRef(null),p=N.useRef(null),[S,R]=N.useState({}),C=N.useCallback(()=>{if(!E.current)return;const $=E.current.getBoundingClientRect();R({position:"fixed",top:$.bottom+8,right:window.innerWidth-$.right,zIndex:99999})},[]),X=N.useCallback($=>{$.key==="Escape"&&g(!1)},[]);N.useEffect(()=>{if(m)return C(),window.addEventListener("scroll",C,!0),window.addEventListener("resize",C),window.addEventListener("keydown",X),()=>{window.removeEventListener("scroll",C,!0),window.removeEventListener("resize",C),window.removeEventListener("keydown",X)}},[m,C,X]),N.useEffect(()=>{if(!m)return;const $=lt=>{const pt=lt.target;E.current&&E.current.contains(pt)||p.current&&p.current.contains(pt)||g(!1)};return document.addEventListener("mousedown",$),()=>document.removeEventListener("mousedown",$)},[m]);const F=()=>{g(!1),i()},U=()=>{g(!1),c()},q=()=>{g(!1),r()},V=()=>{g(!1),Kl({title:"确认退出登录吗?",onOk:()=>{o()}})},et=s.name.charAt(0).toUpperCase();return d.jsxs("div",{ref:E,className:$d.userAvatar,children:[d.jsx("div",{className:"avatar",onClick:()=>g($=>!$),children:et}),m&&Pd.createPortal(d.jsx("div",{ref:p,className:$d.userAvatar,style:S,children:d.jsxs("div",{className:"user-dropdown",children:[d.jsx("div",{className:"user-dropdown-item",onClick:F,children:"用户信息"}),(s.role==="admin"||s.role==="super")&&d.jsx("div",{className:"user-dropdown-item",onClick:U,children:"权限管理"}),s.role==="super"&&d.jsx("div",{className:"user-dropdown-item",onClick:q,children:"邀请码"}),d.jsx("div",{className:"user-dropdown-item logout",onClick:V,children:"退出登录"})]})}),document.body)]})}const I0="_home_8h37b_1",P0={home:I0},t1="_buildModal_1mpfv_1",e1={buildModal:t1},n1="_logModal_eochr_1",l1={logModal:n1},a1="_listModal_1td0z_1",i1={listModal:a1};function u1(s){return s.replace(/warn/ig,'<b style="color: #fdcb6e;">Warn</b>').replace(/error/ig,'<b style="color: #e17055;">Error</b>')}function s1(s){return[".mp4",".avi",".mov",".mkv",".flv",".wmv"].some(i=>s.toLowerCase().endsWith(i))}function Wd({count:s,onClick:i}){return s<=0?null:d.jsxs("div",{className:"unread-badge",onClick:i,children:["未读消息 x",s]})}function c1({msg:s,onCancel:i}){const c={1:{text:"构建中...",cls:"status-1"},2:{text:"构建成功",cls:"status-2"},3:{text:"构建失败",cls:"status-3"}},r=c[s.task.status]||c[1];return d.jsxs("div",{className:"build-card",children:[d.jsxs("div",{className:"build-card-header",children:[d.jsxs("div",{children:[d.jsx("span",{className:"name",children:s.name}),d.jsx("span",{className:"sep",children:"-"}),d.jsxs("span",{className:"branch",children:[s.task.branch," 分支"]})]}),d.jsx("div",{className:"time",children:new Date(s.timestamp).toLocaleString("zh-CN")})]}),d.jsxs("div",{className:"build-card-body",children:[d.jsxs("div",{className:"info-row",children:[d.jsxs("div",{children:["分支:",s.task.branch]}),d.jsxs("div",{children:["taskId:",s.taskId]}),d.jsxs("div",{children:["packagePath:",s.task.packagePath]}),s.task.commit&&d.jsxs("div",{children:["commit:",s.task.commit]}),d.jsxs("div",{children:["创建时间:",s.task.time]}),s.task.buildLogPath&&d.jsxs("div",{children:["构建日志:",d.jsx("a",{href:s.task.buildLogPath,target:"_blank",rel:"noreferrer",children:"查看日志"})]})]}),s.task.status===1&&s.task.buildSourceType==="buildServer"&&d.jsx("button",{className:"btn-cancel",onClick:()=>i(s.taskId),children:"取消构建"}),d.jsx("pre",{className:"build-log",dangerouslySetInnerHTML:{__html:u1(s.msg)}}),d.jsx("div",{className:`status-tag ${r.cls}`,children:r.text})]})]})}function r1({msg:s,isSelf:i,onPreview:c}){return d.jsxs("div",{className:`chat-bubble ${i?"self":""}`,children:[d.jsxs("div",{className:"bubble-header",children:[d.jsx("span",{className:`name ${i?"name-self":"name-other"}`,children:s.name||s.id}),d.jsx("span",{className:"time",children:new Date(s.timestamp).toLocaleString("zh-CN")})]}),s.msg&&d.jsx("pre",{className:`bubble-text ${i?"bubble-text-self":"bubble-text-other"}`,children:s.msg}),s.files&&s.files.length>0&&s.ctxType==="ctx:imgs"&&d.jsx("div",{className:"bubble-files",children:s.files.map((r,o)=>s1(r)?d.jsx("video",{loop:!0,muted:!0,autoPlay:!0,playsInline:!0,src:r,onClick:()=>c(s.id,o)},o):d.jsx("img",{src:r,alt:"",onClick:()=>c(s.id,o)},o))})]})}function f1(){const[s,i]=N.useState([]),[c,r]=N.useState("master"),[o,m]=N.useState(new Set),[g,E]=N.useState(""),[p,S]=N.useState(!1);N.useEffect(()=>{Vd().then(U=>i((U.list||[]).sort())).catch(()=>{})},[]);const R=g?s.filter(U=>U.toLowerCase().includes(g.toLowerCase())):s,C=()=>{m(U=>U.size>=s.length?new Set:new Set(s))},X=()=>{if(o.size===0){Tt.err("请选择仓库");return}if(!c){Tt.err("请输入分支名");return}s0(c,Array.from(o)).then(()=>{Ce.hideTop(),Tt.msg("任务添加成功")}).catch(U=>Tt.err((U==null?void 0:U.message)||"任务添加失败"))},F=async()=>{p||Kl({title:"是否确认重新扫描当前目录下的所有可构建项目?",onOk:async()=>{S(!0);try{await c0();const U=await Vd();i((U.list||[]).sort()),Tt.msg("刷新完成")}catch{Tt.err("刷新失败")}finally{S(!1)}}})};return d.jsxs("div",{className:e1.buildModal,children:[d.jsx("h3",{children:"构建项目"}),d.jsx("label",{children:"分支"}),d.jsx("input",{className:"branch-input",value:c,onChange:U=>r(U.target.value.trim()),placeholder:"输入分支名",spellCheck:!1}),d.jsxs("label",{children:["仓库",d.jsxs("span",{className:"select-count",children:["已选 ",o.size,"/",s.length]})]}),d.jsx("input",{className:"pkg-search-input",value:g,onChange:U=>E(U.target.value),placeholder:"搜索仓库名称…",spellCheck:!1}),d.jsxs("div",{className:"header-bar",children:[d.jsx("div",{className:"select-all-btn",onClick:C,children:o.size>=s.length?"取消全部":"全选"}),d.jsx("button",{className:`refresh-pkg-btn ${p?"is-refreshing":""}`,onClick:F,children:p?"刷新中...":"🔄 刷新仓库"})]}),d.jsx("div",{className:"pkg-grid",children:R.map(U=>d.jsx("div",{className:`pkg-item ${o.has(U)?"active":""}`,onClick:()=>{const q=new Set(o);q.has(U)?q.delete(U):q.add(U),m(q)},children:U},U))}),R.length===0&&d.jsx("div",{className:"empty-pkg",children:"无匹配仓库"}),d.jsx("button",{className:"btn-build",onClick:X,children:"开始构建"})]})}function o1(){var o,m,g,E;const[s,i]=N.useState([]),[c,r]=N.useState(0);return N.useEffect(()=>{r0().then(p=>{i(p.tabs||[]),r(0)})},[]),d.jsxs("div",{className:l1.logModal,children:[d.jsx("h3",{children:"Logs"}),d.jsx("div",{className:"tabs",children:s.map((p,S)=>d.jsx("div",{className:`tab-item ${c===S?"active":""}`,onClick:()=>r(S),children:p.title},S))}),d.jsxs("div",{className:"log-list",children:[(m=(o=s[c])==null?void 0:o.list)==null?void 0:m.map((p,S)=>d.jsxs("a",{href:p.path,target:"_blank",rel:"noreferrer",className:"log-item",children:[d.jsx("span",{className:"log-name",children:p.name}),d.jsx("span",{className:"log-link-icon",children:"↗"})]},S)),!((E=(g=s[c])==null?void 0:g.list)!=null&&E.length)&&d.jsx("div",{className:"empty",children:"暂无日志"})]})]})}function Fd({title:s,items:i,renderItem:c}){return d.jsxs("div",{className:i1.listModal,children:[d.jsx("h3",{children:s}),d.jsxs("div",{className:"list-items",children:[i.map((r,o)=>c(r,o)),!i.length&&d.jsx("div",{className:"empty",children:"暂无数据"})]})]})}function h1(){const{chatMessages:s,buildMessages:i,commandList:c,pendingTasks:r,sendMessage:o,sendImages:m,userIdRef:g}=b0(),[E,p]=N.useState(null),[S,R]=N.useState([]),[C,X]=N.useState([]),[F,U]=N.useState(0),[q,V]=N.useState(0),et=N.useRef(new Set),$=N.useRef(new Set);N.useEffect(()=>{y0().then(H=>{H.success&&H.data&&p(H.data)}).catch(H=>{console.error("Failed to load current user:",H)})},[]);const[lt,pt,Ct]=Kd(()=>U(0)),[gt,at,Gt]=Kd(()=>V(0)),It=[...c.map(H=>({value:H.command,label:`${H.command} - ${H.desc}`}))],[bt,st]=N.useState(""),Ht=N.useRef(null);N.useEffect(()=>{if(!s.length)return;const H=s.filter(K=>!$.current.has(K.id));if(H.forEach(K=>$.current.add(K.id)),H.length&&!Ct.current){U(K=>K+H.length);return}pt()},[s]),N.useEffect(()=>{if(!i.length)return;const H=i.filter(K=>!et.current.has(K.taskId));if(H.forEach(K=>et.current.add(K.taskId)),H.length&&!Gt.current){V(K=>K+H.length);return}at()},[i]),N.useEffect(()=>{const H=K=>{K.key==="Enter"&&K.ctrlKey&&me()};return window.addEventListener("keydown",H),()=>window.removeEventListener("keydown",H)},[bt]);const me=N.useCallback(()=>{bt.trim()&&(o(bt),st(""))},[bt,o]),P=N.useCallback(H=>{H&&o(H)},[o]),Q=N.useCallback(H=>{const K=H.target.files;K!=null&&K.length&&(m(K),H.target.value="")},[m]),_=N.useCallback(H=>{Kl({title:"是否确认取消任务?",onOk:()=>{kd(H).then(()=>Tt.msg("任务取消成功")).catch(K=>Tt.err((K==null?void 0:K.message)||"任务取消失败"))}})},[]),j=N.useCallback(H=>{Kl({title:`是否确认从队列中移除任务 ${H}?`,onOk:()=>{kd(H).then(()=>Tt.msg("已移除排队任务")).catch(K=>Tt.err((K==null?void 0:K.message)||"操作失败"))}})},[]),w=N.useCallback(H=>{H&&Kl({title:`是否确认回退 ${H} 的构建产物?回退后本次构建产物将被还原,请谨慎操作!`,onOk:()=>{o0(H).then(()=>Tt.msg("操作成功")).catch(K=>Tt.err((K==null?void 0:K.message)||"操作失败"))}})},[]),k=N.useCallback(H=>{H&&Kl({title:`是否确认通知${H.basename}项目的${H.branch}分支?`,onOk:()=>{m0(H.httpsOrigin,H.branch).then(()=>Tt.msg("操作成功")).catch(K=>Tt.err((K==null?void 0:K.message)||"操作失败"))}})},[]),Z=N.useCallback(()=>{Ce.show(d.jsx(f1,{}))},[]),v=N.useCallback(()=>{Ce.show(d.jsx(o1,{}),{width:"700px"})},[]),M=N.useCallback(()=>{f0().then(H=>{const K=H.list||[];Ce.show(d.jsx(Fd,{title:"版本回退",items:K,renderItem:(Rt,ae)=>d.jsxs("div",{className:"list-item",onClick:()=>w(Rt),children:[d.jsx("span",{className:"folder-icon",children:"📁"}),d.jsx("span",{children:Rt})]},ae)}),{width:"600px"})})},[w]),Y=N.useCallback(()=>{d0().then(H=>{const K=H.list||[];Ce.show(d.jsx(Fd,{title:"Notice Webhook",items:K,renderItem:(Rt,ae)=>d.jsxs("div",{className:"list-item",onClick:()=>k(Rt),children:[d.jsx("span",{className:Rt.branch==="master"?"branch-master":"branch-other",children:Rt.branch}),d.jsx("span",{className:"sep",children:"-"}),d.jsx("span",{children:Rt.basename})]},ae)}),{width:"600px"})})},[k]),G=N.useCallback((H,K)=>{var Qe;const Rt=[];let ae=0;for(const ye of s)if((Qe=ye.files)!=null&&Qe.length&&ye.ctxType==="ctx:imgs")for(let yn=0;yn<ye.files.length;yn++)ye.id===H&&yn===K&&(ae=Rt.length),Rt.push(ye.files[yn]);H0(Rt,ae)},[s]),I=N.useCallback(()=>{E&&Ce.show(d.jsx(G0,{user:E}),{width:"500px"})},[E]),it=N.useCallback(async()=>{if(E)try{const H=await Om();H.success&&H.data&&(R(H.data),Ce.show(d.jsx(Z0,{currentUser:E,initialUsers:H.data}),{width:"800px"}))}catch(H){console.error("Failed to load users:",H)}},[E]),ft=N.useCallback(async()=>{if(E)try{const H=await zm();H.success&&H.data&&(X(H.data),Ce.show(d.jsx($0,{inviteCodes:H.data,onCodesUpdate:X}),{width:"700px"}))}catch(H){console.error("Failed to load invite codes:",H)}},[E]),Bt=N.useCallback(()=>{localStorage.removeItem("token"),localStorage.removeItem("userId"),window.location.href="/login"},[]);return d.jsxs("div",{className:P0.home,children:[d.jsxs("div",{className:"toolbar",children:[d.jsxs("div",{className:"opts",children:[d.jsx("button",{className:"tool-btn",onClick:()=>location.reload(),children:"刷新"}),d.jsx("button",{className:"tool-btn",onClick:Z,children:"构建"}),(E==null?void 0:E.role)==="super"&&d.jsx("button",{className:"tool-btn",style:{background:"var(--info)"},onClick:v,children:"Logs"}),d.jsx("button",{className:"tool-btn",style:{background:"var(--accent)"},onClick:Y,children:"Notice Webhook"}),E&&["super","admin"].includes(E.role)&&d.jsx("button",{className:"tool-btn",style:{background:"var(--warning)",color:"#000"},onClick:M,children:"版本回退"})]}),E&&d.jsx("div",{className:"toolbar-user",children:d.jsx(F0,{user:E,onUserInfo:I,onPermission:it,onInvite:ft,onLogout:Bt})})]}),r.length>0&&d.jsxs("div",{className:"pending-tasks-bar",children:[d.jsxs("div",{className:"pending-label",children:["排队中 (",r.length,"):"]}),d.jsx("div",{className:"pending-scroll",children:r.map(H=>d.jsxs("div",{className:"pending-item",children:[d.jsx("span",{className:"pending-taskid",children:H.taskId}),d.jsx("span",{className:"pending-path",children:H.packagePath}),d.jsx("span",{className:"pending-branch",children:H.branch}),d.jsx("button",{className:"pending-cancel-btn",onClick:()=>j(H.taskId),children:"取消"})]},H.taskId))})]}),d.jsxs("div",{className:"build-panel",children:[d.jsx("div",{className:"panel-title",children:"Build Notice"}),d.jsxs("div",{className:"panel-body",children:[d.jsx(Wd,{count:q,onClick:()=>{V(0),at(!0)}}),d.jsx("div",{ref:gt,className:"scroll-area",children:i.map((H,K)=>d.jsx(c1,{msg:H,onCancel:_},H.taskId+K))})]})]}),d.jsxs("div",{className:"chat-panel",children:[d.jsx("div",{className:"panel-title",children:"Chat Room"}),d.jsxs("div",{className:"panel-body",children:[d.jsx(Wd,{count:F,onClick:()=>{U(0),pt(!0)}}),d.jsx("div",{ref:lt,className:"chat-scroll",children:s.map((H,K)=>d.jsx(r1,{msg:H,isSelf:H.userId===g.current,onPreview:G},H.id+K))})]}),d.jsxs("div",{className:"command-bar",children:[d.jsx(Mm,{options:It,value:"",placeholder:"快捷命令",onChange:H=>{P(H)}}),d.jsx("button",{className:"cmd-btn cmd-build",onClick:Z,children:"选择构建"}),d.jsxs("div",{className:"cmd-btn cmd-img",children:["选择图片",d.jsx("input",{ref:Ht,type:"file",accept:"image/*, video/*",multiple:!0,onChange:Q,className:"file-input-hidden"})]})]}),d.jsxs("div",{className:"input-area",children:[d.jsx("textarea",{value:bt,onChange:H=>st(H.currentTarget.value),placeholder:"输入消息... (Ctrl+Enter 发送)"}),d.jsxs("button",{className:"btn-send",onClick:me,disabled:!bt.trim(),children:["发送",d.jsx("br",{}),"Ctrl+Enter"]})]})]})]})}const d1="_login_qbk6z_1",m1={login:d1};function y1({onSwitch:s}){const[i,c]=N.useState(""),[r,o]=N.useState(""),m=rm(),g=async()=>{var E;if(!i||!r){Tt.err("请输入用户名和密码");return}try{const p=await i0(i,r);p.success&&((E=p.data)!=null&&E.token)?(localStorage.setItem("token",p.data.token),localStorage.setItem("userId",p.data.id),Tt.msg("登录成功"),m("/")):Tt.err(p.message||"登录失败")}catch(p){Tt.err((p==null?void 0:p.message)||"网络错误")}};return d.jsxs("div",{className:"form",children:[d.jsxs("div",{className:"field",children:[d.jsx("label",{children:"用户名"}),d.jsx("input",{value:i,onChange:E=>c(E.target.value.trim()),maxLength:12})]}),d.jsxs("div",{className:"field",children:[d.jsx("label",{children:"密码"}),d.jsx("input",{type:"password",value:r,onChange:E=>o(E.target.value.trim()),maxLength:30,onKeyDown:E=>E.key==="Enter"&&g()})]}),d.jsx("button",{className:"btn-submit",onClick:g,children:"登录"}),d.jsxs("div",{className:"switch-hint",children:["还没有账号?",d.jsx("a",{onClick:s,children:"立即注册"})]})]})}function v1({onSwitch:s}){const[i,c]=N.useState(""),[r,o]=N.useState(""),[m,g]=N.useState(""),[E,p]=N.useState(""),S=async()=>{if(!i||!m||!E||!r){Tt.err("请输入用户名、密码和邀请密码");return}if(m!==E){Tt.err("两次密码不一致");return}try{const R=await u0(i,m,r);R.success?(Tt.msg("注册成功,请登录"),s()):Tt.err(R.message||"注册失败")}catch(R){Tt.err((R==null?void 0:R.message)||"网络错误")}};return d.jsxs("div",{className:"form",children:[d.jsxs("div",{className:"field",children:[d.jsx("label",{children:"用户名"}),d.jsx("input",{value:i,onChange:R=>c(R.target.value.trim()),maxLength:12})]}),d.jsxs("div",{className:"field",children:[d.jsx("label",{children:"密码"}),d.jsx("input",{type:"password",value:m,onChange:R=>g(R.target.value.trim()),maxLength:30})]}),d.jsxs("div",{className:"field",children:[d.jsx("label",{children:"确认密码"}),d.jsx("input",{type:"password",value:E,onChange:R=>p(R.target.value.trim()),maxLength:30,onKeyDown:R=>R.key==="Enter"&&S()})]}),d.jsxs("div",{className:"field",children:[d.jsx("label",{children:"邀请码"}),d.jsx("input",{value:r,onChange:R=>o(R.target.value.trim())})]}),d.jsx("button",{className:"btn-submit",onClick:S,children:"注册"}),d.jsxs("div",{className:"switch-hint",children:["已有账号?",d.jsx("a",{onClick:s,children:"去登录"})]})]})}function p1(){const[s,i]=N.useState("login");return d.jsx("div",{className:m1.login,children:d.jsxs("div",{className:"login-card",children:[d.jsxs("div",{className:"login-logo",children:[d.jsx("div",{className:"icon",children:"B"}),d.jsx("h1",{children:"Build System"}),d.jsx("p",{children:"构建管理系统"})]}),d.jsxs("div",{className:"tab-bar",children:[d.jsx("div",{className:`tab-item ${s==="login"?"active":""}`,onClick:()=>i("login"),children:"登录"}),d.jsx("div",{className:`tab-item ${s==="register"?"active":""}`,onClick:()=>i("register"),children:"注册"})]}),s==="login"?d.jsx(y1,{onSwitch:()=>i("register")}):d.jsx(v1,{onSwitch:()=>i("login")})]})})}function g1({children:s}){return localStorage.getItem("token")?d.jsx(d.Fragment,{children:s}):d.jsx(dm,{to:"/login",replace:!0})}op.createRoot(document.getElementById("root")).render(d.jsx(sg,{basename:"/buildsystem",children:d.jsxs(ag,{children:[d.jsx(yu,{path:"/login",element:d.jsx(p1,{})}),d.jsx(yu,{path:"/",element:d.jsx(g1,{children:d.jsx(h1,{})})}),d.jsx(yu,{path:"*",element:d.jsx(dm,{to:"/",replace:!0})})]})}));