github-reporadar 0.8.0 → 0.9.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.
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
(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 d of o)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&r(m)}).observe(document,{childList:!0,subtree:!0});function u(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(o){if(o.ep)return;o.ep=!0;const d=u(o);fetch(o.href,d)}})();function Pv(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Yc={exports:{}},_i={};/**
|
|
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 Lm;function ey(){if(Lm)return _i;Lm=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(r,o,d){var m=null;if(d!==void 0&&(m=""+d),o.key!==void 0&&(m=""+o.key),"key"in o){d={};for(var v in o)v!=="key"&&(d[v]=o[v])}else d=o;return o=d.ref,{$$typeof:a,type:r,key:m,ref:o!==void 0?o:null,props:d}}return _i.Fragment=i,_i.jsx=u,_i.jsxs=u,_i}var Hm;function ty(){return Hm||(Hm=1,Yc.exports=ey()),Yc.exports}var h=ty(),Gc={exports:{}},he={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.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 km;function ny(){if(km)return he;km=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),N=Symbol.iterator;function w(j){return j===null||typeof j!="object"?null:(j=N&&j[N]||j["@@iterator"],typeof j=="function"?j:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function k(j,L,J){this.props=j,this.context=L,this.refs=D,this.updater=J||M}k.prototype.isReactComponent={},k.prototype.setState=function(j,L){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,L,"setState")},k.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function K(){}K.prototype=k.prototype;function z(j,L,J){this.props=j,this.context=L,this.refs=D,this.updater=J||M}var q=z.prototype=new K;q.constructor=z,C(q,k.prototype),q.isPureReactComponent=!0;var X=Array.isArray;function $(){}var V={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function me(j,L,J){var Z=J.ref;return{$$typeof:a,type:j,key:L,ref:Z!==void 0?Z:null,props:J}}function de(j,L){return me(j.type,L,j.props)}function fe(j){return typeof j=="object"&&j!==null&&j.$$typeof===a}function te(j){var L={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(J){return L[J]})}var I=/\/+/g;function ce(j,L){return typeof j=="object"&&j!==null&&j.key!=null?te(""+j.key):L.toString(36)}function ve(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then($,$):(j.status="pending",j.then(function(L){j.status==="pending"&&(j.status="fulfilled",j.value=L)},function(L){j.status==="pending"&&(j.status="rejected",j.reason=L)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function U(j,L,J,Z,ae){var ne=typeof j;(ne==="undefined"||ne==="boolean")&&(j=null);var se=!1;if(j===null)se=!0;else switch(ne){case"bigint":case"string":case"number":se=!0;break;case"object":switch(j.$$typeof){case a:case i:se=!0;break;case b:return se=j._init,U(se(j._payload),L,J,Z,ae)}}if(se)return ae=ae(j),se=Z===""?"."+ce(j,0):Z,X(ae)?(J="",se!=null&&(J=se.replace(I,"$&/")+"/"),U(ae,L,J,"",function(Se){return Se})):ae!=null&&(fe(ae)&&(ae=de(ae,J+(ae.key==null||j&&j.key===ae.key?"":(""+ae.key).replace(I,"$&/")+"/")+se)),L.push(ae)),1;se=0;var Le=Z===""?".":Z+":";if(X(j))for(var ye=0;ye<j.length;ye++)Z=j[ye],ne=Le+ce(Z,ye),se+=U(Z,L,J,ne,ae);else if(ye=w(j),typeof ye=="function")for(j=ye.call(j),ye=0;!(Z=j.next()).done;)Z=Z.value,ne=Le+ce(Z,ye++),se+=U(Z,L,J,ne,ae);else if(ne==="object"){if(typeof j.then=="function")return U(ve(j),L,J,Z,ae);throw L=String(j),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return se}function Q(j,L,J){if(j==null)return j;var Z=[],ae=0;return U(j,Z,"","",function(ne){return L.call(J,ne,ae++)}),Z}function ie(j){if(j._status===-1){var L=j._result;L=L(),L.then(function(J){(j._status===0||j._status===-1)&&(j._status=1,j._result=J)},function(J){(j._status===0||j._status===-1)&&(j._status=2,j._result=J)}),j._status===-1&&(j._status=0,j._result=L)}if(j._status===1)return j._result.default;throw j._result}var oe=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},W={map:Q,forEach:function(j,L,J){Q(j,function(){L.apply(this,arguments)},J)},count:function(j){var L=0;return Q(j,function(){L++}),L},toArray:function(j){return Q(j,function(L){return L})||[]},only:function(j){if(!fe(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return he.Activity=x,he.Children=W,he.Component=k,he.Fragment=u,he.Profiler=o,he.PureComponent=z,he.StrictMode=r,he.Suspense=y,he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,he.__COMPILER_RUNTIME={__proto__:null,c:function(j){return V.H.useMemoCache(j)}},he.cache=function(j){return function(){return j.apply(null,arguments)}},he.cacheSignal=function(){return null},he.cloneElement=function(j,L,J){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var Z=C({},j.props),ae=j.key;if(L!=null)for(ne in L.key!==void 0&&(ae=""+L.key),L)!P.call(L,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&L.ref===void 0||(Z[ne]=L[ne]);var ne=arguments.length-2;if(ne===1)Z.children=J;else if(1<ne){for(var se=Array(ne),Le=0;Le<ne;Le++)se[Le]=arguments[Le+2];Z.children=se}return me(j.type,ae,Z)},he.createContext=function(j){return j={$$typeof:m,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:d,_context:j},j},he.createElement=function(j,L,J){var Z,ae={},ne=null;if(L!=null)for(Z in L.key!==void 0&&(ne=""+L.key),L)P.call(L,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(ae[Z]=L[Z]);var se=arguments.length-2;if(se===1)ae.children=J;else if(1<se){for(var Le=Array(se),ye=0;ye<se;ye++)Le[ye]=arguments[ye+2];ae.children=Le}if(j&&j.defaultProps)for(Z in se=j.defaultProps,se)ae[Z]===void 0&&(ae[Z]=se[Z]);return me(j,ne,ae)},he.createRef=function(){return{current:null}},he.forwardRef=function(j){return{$$typeof:v,render:j}},he.isValidElement=fe,he.lazy=function(j){return{$$typeof:b,_payload:{_status:-1,_result:j},_init:ie}},he.memo=function(j,L){return{$$typeof:g,type:j,compare:L===void 0?null:L}},he.startTransition=function(j){var L=V.T,J={};V.T=J;try{var Z=j(),ae=V.S;ae!==null&&ae(J,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then($,oe)}catch(ne){oe(ne)}finally{L!==null&&J.types!==null&&(L.types=J.types),V.T=L}},he.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},he.use=function(j){return V.H.use(j)},he.useActionState=function(j,L,J){return V.H.useActionState(j,L,J)},he.useCallback=function(j,L){return V.H.useCallback(j,L)},he.useContext=function(j){return V.H.useContext(j)},he.useDebugValue=function(){},he.useDeferredValue=function(j,L){return V.H.useDeferredValue(j,L)},he.useEffect=function(j,L){return V.H.useEffect(j,L)},he.useEffectEvent=function(j){return V.H.useEffectEvent(j)},he.useId=function(){return V.H.useId()},he.useImperativeHandle=function(j,L,J){return V.H.useImperativeHandle(j,L,J)},he.useInsertionEffect=function(j,L){return V.H.useInsertionEffect(j,L)},he.useLayoutEffect=function(j,L){return V.H.useLayoutEffect(j,L)},he.useMemo=function(j,L){return V.H.useMemo(j,L)},he.useOptimistic=function(j,L){return V.H.useOptimistic(j,L)},he.useReducer=function(j,L,J){return V.H.useReducer(j,L,J)},he.useRef=function(j){return V.H.useRef(j)},he.useState=function(j){return V.H.useState(j)},he.useSyncExternalStore=function(j,L,J){return V.H.useSyncExternalStore(j,L,J)},he.useTransition=function(){return V.H.useTransition()},he.version="19.2.7",he}var qm;function wo(){return qm||(qm=1,Gc.exports=ny()),Gc.exports}var S=wo();const Ot=Pv(S);var Xc={exports:{}},Oi={},Vc={exports:{}},Qc={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.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 Ym;function ly(){return Ym||(Ym=1,(function(a){function i(U,Q){var ie=U.length;U.push(Q);e:for(;0<ie;){var oe=ie-1>>>1,W=U[oe];if(0<o(W,Q))U[oe]=Q,U[ie]=W,ie=oe;else break e}}function u(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var Q=U[0],ie=U.pop();if(ie!==Q){U[0]=ie;e:for(var oe=0,W=U.length,j=W>>>1;oe<j;){var L=2*(oe+1)-1,J=U[L],Z=L+1,ae=U[Z];if(0>o(J,ie))Z<W&&0>o(ae,J)?(U[oe]=ae,U[Z]=ie,oe=Z):(U[oe]=J,U[L]=ie,oe=L);else if(Z<W&&0>o(ae,ie))U[oe]=ae,U[Z]=ie,oe=Z;else break e}}return Q}function o(U,Q){var ie=U.sortIndex-Q.sortIndex;return ie!==0?ie:U.id-Q.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var m=Date,v=m.now();a.unstable_now=function(){return m.now()-v}}var y=[],g=[],b=1,x=null,N=3,w=!1,M=!1,C=!1,D=!1,k=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function q(U){for(var Q=u(g);Q!==null;){if(Q.callback===null)r(g);else if(Q.startTime<=U)r(g),Q.sortIndex=Q.expirationTime,i(y,Q);else break;Q=u(g)}}function X(U){if(C=!1,q(U),!M)if(u(y)!==null)M=!0,$||($=!0,te());else{var Q=u(g);Q!==null&&ve(X,Q.startTime-U)}}var $=!1,V=-1,P=5,me=-1;function de(){return D?!0:!(a.unstable_now()-me<P)}function fe(){if(D=!1,$){var U=a.unstable_now();me=U;var Q=!0;try{e:{M=!1,C&&(C=!1,K(V),V=-1),w=!0;var ie=N;try{t:{for(q(U),x=u(y);x!==null&&!(x.expirationTime>U&&de());){var oe=x.callback;if(typeof oe=="function"){x.callback=null,N=x.priorityLevel;var W=oe(x.expirationTime<=U);if(U=a.unstable_now(),typeof W=="function"){x.callback=W,q(U),Q=!0;break t}x===u(y)&&r(y),q(U)}else r(y);x=u(y)}if(x!==null)Q=!0;else{var j=u(g);j!==null&&ve(X,j.startTime-U),Q=!1}}break e}finally{x=null,N=ie,w=!1}Q=void 0}}finally{Q?te():$=!1}}}var te;if(typeof z=="function")te=function(){z(fe)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,ce=I.port2;I.port1.onmessage=fe,te=function(){ce.postMessage(null)}}else te=function(){k(fe,0)};function ve(U,Q){V=k(function(){U(a.unstable_now())},Q)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(U){U.callback=null},a.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<U?Math.floor(1e3/U):5},a.unstable_getCurrentPriorityLevel=function(){return N},a.unstable_next=function(U){switch(N){case 1:case 2:case 3:var Q=3;break;default:Q=N}var ie=N;N=Q;try{return U()}finally{N=ie}},a.unstable_requestPaint=function(){D=!0},a.unstable_runWithPriority=function(U,Q){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var ie=N;N=U;try{return Q()}finally{N=ie}},a.unstable_scheduleCallback=function(U,Q,ie){var oe=a.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?oe+ie:oe):ie=oe,U){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=ie+W,U={id:b++,callback:Q,priorityLevel:U,startTime:ie,expirationTime:W,sortIndex:-1},ie>oe?(U.sortIndex=ie,i(g,U),u(y)===null&&U===u(g)&&(C?(K(V),V=-1):C=!0,ve(X,ie-oe))):(U.sortIndex=W,i(y,U),M||w||(M=!0,$||($=!0,te()))),U},a.unstable_shouldYield=de,a.unstable_wrapCallback=function(U){var Q=N;return function(){var ie=N;N=Q;try{return U.apply(this,arguments)}finally{N=ie}}}})(Qc)),Qc}var Gm;function ay(){return Gm||(Gm=1,Vc.exports=ly()),Vc.exports}var Kc={exports:{}},gt={};/**
|
|
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 Xm;function iy(){if(Xm)return gt;Xm=1;var a=wo();function i(y){var g="https://react.dev/errors/"+y;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+y+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var r={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},o=Symbol.for("react.portal");function d(y,g,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:x==null?null:""+x,children:y,containerInfo:g,implementation:b}}var m=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(y,g){if(y==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,gt.createPortal=function(y,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(i(299));return d(y,g,null,b)},gt.flushSync=function(y){var g=m.T,b=r.p;try{if(m.T=null,r.p=2,y)return y()}finally{m.T=g,r.p=b,r.d.f()}},gt.preconnect=function(y,g){typeof y=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(y,g))},gt.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},gt.preinit=function(y,g){if(typeof y=="string"&&g&&typeof g.as=="string"){var b=g.as,x=v(b,g.crossOrigin),N=typeof g.integrity=="string"?g.integrity:void 0,w=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?r.d.S(y,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:x,integrity:N,fetchPriority:w}):b==="script"&&r.d.X(y,{crossOrigin:x,integrity:N,fetchPriority:w,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},gt.preinitModule=function(y,g){if(typeof y=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=v(g.as,g.crossOrigin);r.d.M(y,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(y)},gt.preload=function(y,g){if(typeof y=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,x=v(b,g.crossOrigin);r.d.L(y,b,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},gt.preloadModule=function(y,g){if(typeof y=="string")if(g){var b=v(g.as,g.crossOrigin);r.d.m(y,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(y)},gt.requestFormReset=function(y){r.d.r(y)},gt.unstable_batchedUpdates=function(y,g){return y(g)},gt.useFormState=function(y,g,b){return m.H.useFormState(y,g,b)},gt.useFormStatus=function(){return m.H.useHostTransitionStatus()},gt.version="19.2.7",gt}var Vm;function Ug(){if(Vm)return Kc.exports;Vm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Kc.exports=iy(),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 Qm;function uy(){if(Qm)return Oi;Qm=1;var a=ay(),i=wo(),u=Ug();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(d(e)!==e)throw Error(r(188))}function g(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,l=t;;){var s=n.return;if(s===null)break;var c=s.alternate;if(c===null){if(l=s.return,l!==null){n=l;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===n)return y(s),e;if(c===l)return y(s),t;c=c.sibling}throw Error(r(188))}if(n.return!==l.return)n=s,l=c;else{for(var f=!1,p=s.child;p;){if(p===n){f=!0,n=s,l=c;break}if(p===l){f=!0,l=s,n=c;break}p=p.sibling}if(!f){for(p=c.child;p;){if(p===n){f=!0,n=c,l=s;break}if(p===l){f=!0,l=c,n=s;break}p=p.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?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,N=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),z=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),me=Symbol.for("react.activity"),de=Symbol.for("react.memo_cache_sentinel"),fe=Symbol.iterator;function te(e){return e===null||typeof e!="object"?null:(e=fe&&e[fe]||e["@@iterator"],typeof e=="function"?e:null)}var I=Symbol.for("react.client.reference");function ce(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===I?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case k:return"Profiler";case D:return"StrictMode";case X:return"Suspense";case $:return"SuspenseList";case me:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case M:return"Portal";case z:return e.displayName||"Context";case K:return(e._context.displayName||"Context")+".Consumer";case q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:ce(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}var ve=Array.isArray,U=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},oe=[],W=-1;function j(e){return{current:e}}function L(e){0>W||(e.current=oe[W],oe[W]=null,W--)}function J(e,t){W++,oe[W]=e.current,e.current=t}var Z=j(null),ae=j(null),ne=j(null),se=j(null);function Le(e,t){switch(J(ne,t),J(ae,e),J(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?um(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=um(t),e=sm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}L(Z),J(Z,e)}function ye(){L(Z),L(ae),L(ne)}function Se(e){e.memoizedState!==null&&J(se,e);var t=Z.current,n=sm(t,e.type);t!==n&&(J(ae,e),J(Z,n))}function Ze(e){ae.current===e&&(L(Z),L(ae)),se.current===e&&(L(se),ji._currentValue=ie)}var _e,nn;function Ie(e){if(_e===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_e=t&&t[1]||"",nn=-1<n.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+_e+e+nn}var F=!1;function Oe(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(B){var R=B}Reflect.construct(e,[],G)}else{try{G.call()}catch(B){R=B}e.call(G.prototype)}}else{try{throw Error()}catch(B){R=B}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(B){if(B&&R&&typeof B.stack=="string")return[B.stack,R.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),f=c[0],p=c[1];if(f&&p){var E=f.split(`
|
|
44
|
+
`),T=p.split(`
|
|
45
|
+
`);for(s=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;s<T.length&&!T[s].includes("DetermineComponentFrameRoot");)s++;if(l===E.length||s===T.length)for(l=E.length-1,s=T.length-1;1<=l&&0<=s&&E[l]!==T[s];)s--;for(;1<=l&&0<=s;l--,s--)if(E[l]!==T[s]){if(l!==1||s!==1)do if(l--,s--,0>s||E[l]!==T[s]){var H=`
|
|
46
|
+
`+E[l].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=l&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ie(n):""}function xt(e,t){switch(e.tag){case 26:case 27:case 5:return Ie(e.type);case 16:return Ie("Lazy");case 13:return e.child!==t&&t!==null?Ie("Suspense Fallback"):Ie("Suspense");case 19:return Ie("SuspenseList");case 0:case 15:return Oe(e.type,!1);case 11:return Oe(e.type.render,!1);case 1:return Oe(e.type,!0);case 31:return Ie("Activity");default:return""}}function yn(e){try{var t="",n=null;do t+=xt(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}var yl=Object.prototype.hasOwnProperty,qt=a.unstable_scheduleCallback,Gn=a.unstable_cancelCallback,kl=a.unstable_shouldYield,Qi=a.unstable_requestPaint,dt=a.unstable_now,_s=a.unstable_getCurrentPriorityLevel,Ki=a.unstable_ImmediatePriority,xn=a.unstable_UserBlockingPriority,ln=a.unstable_NormalPriority,xl=a.unstable_LowPriority,ka=a.unstable_IdlePriority,fn=a.log,Zi=a.unstable_setDisableYieldValue,bl=null,pt=null;function Yt(e){if(typeof fn=="function"&&Zi(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(bl,e)}catch{}}var ht=Math.clz32?Math.clz32:Ts,Os=Math.log,Ji=Math.LN2;function Ts(e){return e>>>=0,e===0?32:31-(Os(e)/Ji|0)|0}var ql=256,Yl=262144,Xe=4194304;function Ve(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function nt(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var s=0,c=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var p=l&134217727;return p!==0?(l=p&~c,l!==0?s=Ve(l):(f&=p,f!==0?s=Ve(f):n||(n=p&~e,n!==0&&(s=Ve(n))))):(p=l&~c,p!==0?s=Ve(p):f!==0?s=Ve(f):n||(n=l&~e,n!==0&&(s=Ve(n)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:s}function bt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function St(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 mt(){var e=Xe;return Xe<<=1,(Xe&62914560)===0&&(Xe=4194304),e}function Et(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Gt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Pe(e,t,n,l,s,c){var f=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var p=e.entanglements,E=e.expirationTimes,T=e.hiddenUpdates;for(n=f&~n;0<n;){var H=31-ht(n),G=1<<H;p[H]=0,E[H]=-1;var R=T[H];if(R!==null)for(T[H]=null,H=0;H<R.length;H++){var B=R[H];B!==null&&(B.lane&=-536870913)}n&=~G}l!==0&&an(e,l,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(f&~t))}function an(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-ht(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Mt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-ht(n),s=1<<l;s&t|e[l]&t&&(e[l]|=t),n&=~s}}function Xt(e,t){var n=t&-t;return n=(n&42)!==0?1:bn(n),(n&(e.suspendedLanes|t))!==0?0:n}function bn(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Sn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function un(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Om(e.type))}function Xn(e,t){var n=Q.p;try{return Q.p=e,t()}finally{Q.p=n}}var Vt=Math.random().toString(36).slice(2),ut="__reactFiber$"+Vt,Nt="__reactProps$"+Vt,Gl="__reactContainer$"+Vt,Ms="__reactEvents$"+Vt,Gp="__reactListeners$"+Vt,Xp="__reactHandles$"+Vt,Ko="__reactResources$"+Vt,qa="__reactMarker$"+Vt;function Rs(e){delete e[ut],delete e[Nt],delete e[Ms],delete e[Gp],delete e[Xp]}function Xl(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gl]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mm(e);e!==null;){if(n=e[ut])return n;e=mm(e)}return t}e=n,n=e.parentNode}return null}function Vl(e){if(e=e[ut]||e[Gl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ya(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Ql(e){var t=e[Ko];return t||(t=e[Ko]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[qa]=!0}var Zo=new Set,Jo={};function Sl(e,t){Kl(e,t),Kl(e+"Capture",t)}function Kl(e,t){for(Jo[e]=t,e=0;e<t.length;e++)Zo.add(t[e])}var Vp=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]*$"),$o={},Wo={};function Qp(e){return yl.call(Wo,e)?!0:yl.call($o,e)?!1:Vp.test(e)?Wo[e]=!0:($o[e]=!0,!1)}function $i(e,t,n){if(Qp(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Wi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function En(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kp(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var s=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(f){n=""+f,c.call(this,f)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zs(e){if(!e._valueTracker){var t=Fo(e)?"checked":"value";e._valueTracker=Kp(e,t,""+e[t])}}function Io(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=Fo(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Fi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Zp=/[\n"\\]/g;function Kt(e){return e.replace(Zp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Us(e,t,n,l,s,c,f,p){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Qt(t)):e.value!==""+Qt(t)&&(e.value=""+Qt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Bs(e,f,Qt(t)):n!=null?Bs(e,f,Qt(n)):l!=null&&e.removeAttribute("value"),s==null&&c!=null&&(e.defaultChecked=!!c),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+Qt(p):e.removeAttribute("name")}function Po(e,t,n,l,s,c,f,p){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){zs(e);return}n=n!=null?""+Qt(n):"",t=t!=null?""+Qt(t):n,p||t===e.value||(e.value=t),e.defaultValue=t}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=p?e.checked:!!l,e.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),zs(e)}function Bs(e,t,n){t==="number"&&Fi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Zl(e,t,n,l){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Qt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,l&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function ef(e,t,n){if(t!=null&&(t=""+Qt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Qt(n):""}function tf(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(r(92));if(ve(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Qt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),zs(e)}function Jl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jp=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 nf(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||Jp.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function lf(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var s in t)l=t[s],t.hasOwnProperty(s)&&n[s]!==l&&nf(e,s,l)}else for(var c in t)t.hasOwnProperty(c)&&nf(e,c,t[c])}function Ls(e){if(e.indexOf("-")===-1)return!1;switch(e){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 $p=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"]]),Wp=/^[\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 Ii(e){return Wp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Nn(){}var Hs=null;function ks(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $l=null,Wl=null;function af(e){var t=Vl(e);if(t&&(e=t.stateNode)){var n=e[Nt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Us(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Kt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var s=l[Nt]||null;if(!s)throw Error(r(90));Us(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Io(l)}break e;case"textarea":ef(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Zl(e,!!n.multiple,t,!1)}}}var qs=!1;function uf(e,t,n){if(qs)return e(t,n);qs=!0;try{var l=e(t);return l}finally{if(qs=!1,($l!==null||Wl!==null)&&(ku(),$l&&(t=$l,e=Wl,Wl=$l=null,af(t),e)))for(t=0;t<e.length;t++)af(e[t])}}function Ga(e,t){var n=e.stateNode;if(n===null)return null;var l=n[Nt]||null;if(l===null)return null;n=l[t];e:switch(t){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)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ys=!1;if(wn)try{var Xa={};Object.defineProperty(Xa,"passive",{get:function(){Ys=!0}}),window.addEventListener("test",Xa,Xa),window.removeEventListener("test",Xa,Xa)}catch{Ys=!1}var Vn=null,Gs=null,Pi=null;function sf(){if(Pi)return Pi;var e,t=Gs,n=t.length,l,s="value"in Vn?Vn.value:Vn.textContent,c=s.length;for(e=0;e<n&&t[e]===s[e];e++);var f=n-e;for(l=1;l<=f&&t[n-l]===s[c-l];l++);return Pi=s.slice(e,1<l?1-l:void 0)}function eu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function tu(){return!0}function rf(){return!1}function wt(e){function t(n,l,s,c,f){this._reactName=n,this._targetInst=s,this.type=l,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(n=e[p],this[p]=n?n(c):c[p]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?tu:rf,this.isPropagationStopped=rf,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=tu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=tu)},persist:function(){},isPersistent:tu}),t}var El={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nu=wt(El),Va=x({},El,{view:0,detail:0}),Fp=wt(Va),Xs,Vs,Qa,lu=x({},Va,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ks,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qa&&(Qa&&e.type==="mousemove"?(Xs=e.screenX-Qa.screenX,Vs=e.screenY-Qa.screenY):Vs=Xs=0,Qa=e),Xs)},movementY:function(e){return"movementY"in e?e.movementY:Vs}}),cf=wt(lu),Ip=x({},lu,{dataTransfer:0}),Pp=wt(Ip),e0=x({},Va,{relatedTarget:0}),Qs=wt(e0),t0=x({},El,{animationName:0,elapsedTime:0,pseudoElement:0}),n0=wt(t0),l0=x({},El,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),a0=wt(l0),i0=x({},El,{data:0}),of=wt(i0),u0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},s0={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"},r0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function c0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=r0[e])?!!t[e]:!1}function Ks(){return c0}var o0=x({},Va,{key:function(e){if(e.key){var t=u0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=eu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?s0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ks,charCode:function(e){return e.type==="keypress"?eu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?eu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),f0=wt(o0),d0=x({},lu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ff=wt(d0),h0=x({},Va,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ks}),m0=wt(h0),g0=x({},El,{propertyName:0,elapsedTime:0,pseudoElement:0}),p0=wt(g0),v0=x({},lu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),y0=wt(v0),x0=x({},El,{newState:0,oldState:0}),b0=wt(x0),S0=[9,13,27,32],Zs=wn&&"CompositionEvent"in window,Ka=null;wn&&"documentMode"in document&&(Ka=document.documentMode);var E0=wn&&"TextEvent"in window&&!Ka,df=wn&&(!Zs||Ka&&8<Ka&&11>=Ka),hf=" ",mf=!1;function gf(e,t){switch(e){case"keyup":return S0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fl=!1;function N0(e,t){switch(e){case"compositionend":return pf(t);case"keypress":return t.which!==32?null:(mf=!0,hf);case"textInput":return e=t.data,e===hf&&mf?null:e;default:return null}}function w0(e,t){if(Fl)return e==="compositionend"||!Zs&&gf(e,t)?(e=sf(),Pi=Gs=Vn=null,Fl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return df&&t.locale!=="ko"?null:t.data;default:return null}}var j0={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 vf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!j0[e.type]:t==="textarea"}function yf(e,t,n,l){$l?Wl?Wl.push(l):Wl=[l]:$l=l,t=Ku(t,"onChange"),0<t.length&&(n=new nu("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Za=null,Ja=null;function A0(e){em(e,0)}function au(e){var t=Ya(e);if(Io(t))return e}function xf(e,t){if(e==="change")return t}var bf=!1;if(wn){var Js;if(wn){var $s="oninput"in document;if(!$s){var Sf=document.createElement("div");Sf.setAttribute("oninput","return;"),$s=typeof Sf.oninput=="function"}Js=$s}else Js=!1;bf=Js&&(!document.documentMode||9<document.documentMode)}function Ef(){Za&&(Za.detachEvent("onpropertychange",Nf),Ja=Za=null)}function Nf(e){if(e.propertyName==="value"&&au(Ja)){var t=[];yf(t,Ja,e,ks(e)),uf(A0,t)}}function D0(e,t,n){e==="focusin"?(Ef(),Za=t,Ja=n,Za.attachEvent("onpropertychange",Nf)):e==="focusout"&&Ef()}function C0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return au(Ja)}function _0(e,t){if(e==="click")return au(t)}function O0(e,t){if(e==="input"||e==="change")return au(t)}function T0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rt=typeof Object.is=="function"?Object.is:T0;function $a(e,t){if(Rt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var s=n[l];if(!yl.call(t,s)||!Rt(e[s],t[s]))return!1}return!0}function wf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jf(e,t){var n=wf(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=wf(n)}}function Af(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Af(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Df(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Fi(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fi(e.document)}return t}function Ws(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var M0=wn&&"documentMode"in document&&11>=document.documentMode,Il=null,Fs=null,Wa=null,Is=!1;function Cf(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Is||Il==null||Il!==Fi(l)||(l=Il,"selectionStart"in l&&Ws(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}),Wa&&$a(Wa,l)||(Wa=l,l=Ku(Fs,"onSelect"),0<l.length&&(t=new nu("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Il)))}function Nl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Pl={animationend:Nl("Animation","AnimationEnd"),animationiteration:Nl("Animation","AnimationIteration"),animationstart:Nl("Animation","AnimationStart"),transitionrun:Nl("Transition","TransitionRun"),transitionstart:Nl("Transition","TransitionStart"),transitioncancel:Nl("Transition","TransitionCancel"),transitionend:Nl("Transition","TransitionEnd")},Ps={},_f={};wn&&(_f=document.createElement("div").style,"AnimationEvent"in window||(delete Pl.animationend.animation,delete Pl.animationiteration.animation,delete Pl.animationstart.animation),"TransitionEvent"in window||delete Pl.transitionend.transition);function wl(e){if(Ps[e])return Ps[e];if(!Pl[e])return e;var t=Pl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in _f)return Ps[e]=t[n];return e}var Of=wl("animationend"),Tf=wl("animationiteration"),Mf=wl("animationstart"),R0=wl("transitionrun"),z0=wl("transitionstart"),U0=wl("transitioncancel"),Rf=wl("transitionend"),zf=new Map,er="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(" ");er.push("scrollEnd");function sn(e,t){zf.set(e,t),Sl(t,[e])}var iu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Zt=[],ea=0,tr=0;function uu(){for(var e=ea,t=tr=ea=0;t<e;){var n=Zt[t];Zt[t++]=null;var l=Zt[t];Zt[t++]=null;var s=Zt[t];Zt[t++]=null;var c=Zt[t];if(Zt[t++]=null,l!==null&&s!==null){var f=l.pending;f===null?s.next=s:(s.next=f.next,f.next=s),l.pending=s}c!==0&&Uf(n,s,c)}}function su(e,t,n,l){Zt[ea++]=e,Zt[ea++]=t,Zt[ea++]=n,Zt[ea++]=l,tr|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function nr(e,t,n,l){return su(e,t,n,l),ru(e)}function jl(e,t){return su(e,null,null,t),ru(e)}function Uf(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var s=!1,c=e.return;c!==null;)c.childLanes|=n,l=c.alternate,l!==null&&(l.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-ht(n),e=c.hiddenUpdates,l=e[s],l===null?e[s]=[t]:l.push(t),t.lane=n|536870912),c):null}function ru(e){if(50<yi)throw yi=0,fc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ta={};function B0(e,t,n,l){this.tag=e,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=t,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 zt(e,t,n,l){return new B0(e,t,n,l)}function lr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jn(e,t){var n=e.alternate;return n===null?(n=zt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Bf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function cu(e,t,n,l,s,c){var f=0;if(l=e,typeof e=="function")lr(e)&&(f=1);else if(typeof e=="string")f=Yv(e,n,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case me:return e=zt(31,n,t,s),e.elementType=me,e.lanes=c,e;case C:return Al(n.children,s,c,t);case D:f=8,s|=24;break;case k:return e=zt(12,n,t,s|2),e.elementType=k,e.lanes=c,e;case X:return e=zt(13,n,t,s),e.elementType=X,e.lanes=c,e;case $:return e=zt(19,n,t,s),e.elementType=$,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case z:f=10;break e;case K:f=9;break e;case q:f=11;break e;case V:f=14;break e;case P:f=16,l=null;break e}f=29,n=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=zt(f,n,t,s),t.elementType=e,t.type=l,t.lanes=c,t}function Al(e,t,n,l){return e=zt(7,e,l,t),e.lanes=n,e}function ar(e,t,n){return e=zt(6,e,null,t),e.lanes=n,e}function Lf(e){var t=zt(18,null,null,0);return t.stateNode=e,t}function ir(e,t,n){return t=zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Hf=new WeakMap;function Jt(e,t){if(typeof e=="object"&&e!==null){var n=Hf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:yn(t)},Hf.set(e,t),t)}return{value:e,source:t,stack:yn(t)}}var na=[],la=0,ou=null,Fa=0,$t=[],Wt=0,Qn=null,dn=1,hn="";function An(e,t){na[la++]=Fa,na[la++]=ou,ou=e,Fa=t}function kf(e,t,n){$t[Wt++]=dn,$t[Wt++]=hn,$t[Wt++]=Qn,Qn=e;var l=dn;e=hn;var s=32-ht(l)-1;l&=~(1<<s),n+=1;var c=32-ht(t)+s;if(30<c){var f=s-s%5;c=(l&(1<<f)-1).toString(32),l>>=f,s-=f,dn=1<<32-ht(t)+s|n<<s|l,hn=c+e}else dn=1<<c|n<<s|l,hn=e}function ur(e){e.return!==null&&(An(e,1),kf(e,1,0))}function sr(e){for(;e===ou;)ou=na[--la],na[la]=null,Fa=na[--la],na[la]=null;for(;e===Qn;)Qn=$t[--Wt],$t[Wt]=null,hn=$t[--Wt],$t[Wt]=null,dn=$t[--Wt],$t[Wt]=null}function qf(e,t){$t[Wt++]=dn,$t[Wt++]=hn,$t[Wt++]=Qn,dn=t.id,hn=t.overflow,Qn=e}var st=null,He=null,we=!1,Kn=null,Ft=!1,rr=Error(r(519));function Zn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ia(Jt(t,e)),rr}function Yf(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[ut]=e,t[Nt]=l,n){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(n=0;n<bi.length;n++)be(bi[n],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),Po(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),tf(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||am(t.textContent,n)?(l.popover!=null&&(be("beforetoggle",t),be("toggle",t)),l.onScroll!=null&&be("scroll",t),l.onScrollEnd!=null&&be("scrollend",t),l.onClick!=null&&(t.onclick=Nn),t=!0):t=!1,t||Zn(e,!0)}function Gf(e){for(st=e.return;st;)switch(st.tag){case 5:case 31:case 13:Ft=!1;return;case 27:case 3:Ft=!0;return;default:st=st.return}}function aa(e){if(e!==st)return!1;if(!we)return Gf(e),we=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Ac(e.type,e.memoizedProps)),n=!n),n&&He&&Zn(e),Gf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=hm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=hm(e)}else t===27?(t=He,sl(e.type)?(e=Tc,Tc=null,He=e):He=t):He=st?Pt(e.stateNode.nextSibling):null;return!0}function Dl(){He=st=null,we=!1}function cr(){var e=Kn;return e!==null&&(Ct===null?Ct=e:Ct.push.apply(Ct,e),Kn=null),e}function Ia(e){Kn===null?Kn=[e]:Kn.push(e)}var or=j(null),Cl=null,Dn=null;function Jn(e,t,n){J(or,t._currentValue),t._currentValue=n}function Cn(e){e._currentValue=or.current,L(or)}function fr(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function dr(e,t,n,l){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var f=s.child;c=c.firstContext;e:for(;c!==null;){var p=c;c=s;for(var E=0;E<t.length;E++)if(p.context===t[E]){c.lanes|=n,p=c.alternate,p!==null&&(p.lanes|=n),fr(c.return,n,e),l||(f=null);break e}c=p.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(r(341));f.lanes|=n,c=f.alternate,c!==null&&(c.lanes|=n),fr(f,n,e),f=null}else f=s.child;if(f!==null)f.return=s;else for(f=s;f!==null;){if(f===e){f=null;break}if(s=f.sibling,s!==null){s.return=f.return,f=s;break}f=f.return}s=f}}function ia(e,t,n,l){e=null;for(var s=t,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var p=s.type;Rt(s.pendingProps.value,f.value)||(e!==null?e.push(p):e=[p])}}else if(s===se.current){if(f=s.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(ji):e=[ji])}s=s.return}e!==null&&dr(t,e,n,l),t.flags|=262144}function fu(e){for(e=e.firstContext;e!==null;){if(!Rt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _l(e){Cl=e,Dn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function rt(e){return Xf(Cl,e)}function du(e,t){return Cl===null&&_l(e),Xf(e,t)}function Xf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Dn===null){if(e===null)throw Error(r(308));Dn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Dn=Dn.next=t;return n}var L0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},H0=a.unstable_scheduleCallback,k0=a.unstable_NormalPriority,Je={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hr(){return{controller:new L0,data:new Map,refCount:0}}function Pa(e){e.refCount--,e.refCount===0&&H0(k0,function(){e.controller.abort()})}var ei=null,mr=0,ua=0,sa=null;function q0(e,t){if(ei===null){var n=ei=[];mr=0,ua=vc(),sa={status:"pending",value:void 0,then:function(l){n.push(l)}}}return mr++,t.then(Vf,Vf),t}function Vf(){if(--mr===0&&ei!==null){sa!==null&&(sa.status="fulfilled");var e=ei;ei=null,ua=0,sa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Y0(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(l.status="rejected",l.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),l}var Qf=U.S;U.S=function(e,t){Ch=dt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&q0(e,t),Qf!==null&&Qf(e,t)};var Ol=j(null);function gr(){var e=Ol.current;return e!==null?e:Be.pooledCache}function hu(e,t){t===null?J(Ol,Ol.current):J(Ol,t.pool)}function Kf(){var e=gr();return e===null?null:{parent:Je._currentValue,pool:e}}var ra=Error(r(460)),pr=Error(r(474)),mu=Error(r(542)),gu={then:function(){}};function Zf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Jf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Nn,Nn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wf(e),e;default:if(typeof t.status=="string")t.then(Nn,Nn);else{if(e=Be,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=l}},function(l){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wf(e),e}throw Ml=t,ra}}function Tl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ml=n,ra):n}}var Ml=null;function $f(){if(Ml===null)throw Error(r(459));var e=Ml;return Ml=null,e}function Wf(e){if(e===ra||e===mu)throw Error(r(483))}var ca=null,ti=0;function pu(e){var t=ti;return ti+=1,ca===null&&(ca=[]),Jf(ca,e,t)}function ni(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function vu(e,t){throw t.$$typeof===N?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ff(e){function t(_,A){if(e){var O=_.deletions;O===null?(_.deletions=[A],_.flags|=16):O.push(A)}}function n(_,A){if(!e)return null;for(;A!==null;)t(_,A),A=A.sibling;return null}function l(_){for(var A=new Map;_!==null;)_.key!==null?A.set(_.key,_):A.set(_.index,_),_=_.sibling;return A}function s(_,A){return _=jn(_,A),_.index=0,_.sibling=null,_}function c(_,A,O){return _.index=O,e?(O=_.alternate,O!==null?(O=O.index,O<A?(_.flags|=67108866,A):O):(_.flags|=67108866,A)):(_.flags|=1048576,A)}function f(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function p(_,A,O,Y){return A===null||A.tag!==6?(A=ar(O,_.mode,Y),A.return=_,A):(A=s(A,O),A.return=_,A)}function E(_,A,O,Y){var ue=O.type;return ue===C?H(_,A,O.props.children,Y,O.key):A!==null&&(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===P&&Tl(ue)===A.type)?(A=s(A,O.props),ni(A,O),A.return=_,A):(A=cu(O.type,O.key,O.props,null,_.mode,Y),ni(A,O),A.return=_,A)}function T(_,A,O,Y){return A===null||A.tag!==4||A.stateNode.containerInfo!==O.containerInfo||A.stateNode.implementation!==O.implementation?(A=ir(O,_.mode,Y),A.return=_,A):(A=s(A,O.children||[]),A.return=_,A)}function H(_,A,O,Y,ue){return A===null||A.tag!==7?(A=Al(O,_.mode,Y,ue),A.return=_,A):(A=s(A,O),A.return=_,A)}function G(_,A,O){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=ar(""+A,_.mode,O),A.return=_,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case w:return O=cu(A.type,A.key,A.props,null,_.mode,O),ni(O,A),O.return=_,O;case M:return A=ir(A,_.mode,O),A.return=_,A;case P:return A=Tl(A),G(_,A,O)}if(ve(A)||te(A))return A=Al(A,_.mode,O,null),A.return=_,A;if(typeof A.then=="function")return G(_,pu(A),O);if(A.$$typeof===z)return G(_,du(_,A),O);vu(_,A)}return null}function R(_,A,O,Y){var ue=A!==null?A.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return ue!==null?null:p(_,A,""+O,Y);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case w:return O.key===ue?E(_,A,O,Y):null;case M:return O.key===ue?T(_,A,O,Y):null;case P:return O=Tl(O),R(_,A,O,Y)}if(ve(O)||te(O))return ue!==null?null:H(_,A,O,Y,null);if(typeof O.then=="function")return R(_,A,pu(O),Y);if(O.$$typeof===z)return R(_,A,du(_,O),Y);vu(_,O)}return null}function B(_,A,O,Y,ue){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return _=_.get(O)||null,p(A,_,""+Y,ue);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case w:return _=_.get(Y.key===null?O:Y.key)||null,E(A,_,Y,ue);case M:return _=_.get(Y.key===null?O:Y.key)||null,T(A,_,Y,ue);case P:return Y=Tl(Y),B(_,A,O,Y,ue)}if(ve(Y)||te(Y))return _=_.get(O)||null,H(A,_,Y,ue,null);if(typeof Y.then=="function")return B(_,A,O,pu(Y),ue);if(Y.$$typeof===z)return B(_,A,O,du(A,Y),ue);vu(A,Y)}return null}function ee(_,A,O,Y){for(var ue=null,Ae=null,le=A,pe=A=0,Ne=null;le!==null&&pe<O.length;pe++){le.index>pe?(Ne=le,le=null):Ne=le.sibling;var De=R(_,le,O[pe],Y);if(De===null){le===null&&(le=Ne);break}e&&le&&De.alternate===null&&t(_,le),A=c(De,A,pe),Ae===null?ue=De:Ae.sibling=De,Ae=De,le=Ne}if(pe===O.length)return n(_,le),we&&An(_,pe),ue;if(le===null){for(;pe<O.length;pe++)le=G(_,O[pe],Y),le!==null&&(A=c(le,A,pe),Ae===null?ue=le:Ae.sibling=le,Ae=le);return we&&An(_,pe),ue}for(le=l(le);pe<O.length;pe++)Ne=B(le,_,pe,O[pe],Y),Ne!==null&&(e&&Ne.alternate!==null&&le.delete(Ne.key===null?pe:Ne.key),A=c(Ne,A,pe),Ae===null?ue=Ne:Ae.sibling=Ne,Ae=Ne);return e&&le.forEach(function(dl){return t(_,dl)}),we&&An(_,pe),ue}function re(_,A,O,Y){if(O==null)throw Error(r(151));for(var ue=null,Ae=null,le=A,pe=A=0,Ne=null,De=O.next();le!==null&&!De.done;pe++,De=O.next()){le.index>pe?(Ne=le,le=null):Ne=le.sibling;var dl=R(_,le,De.value,Y);if(dl===null){le===null&&(le=Ne);break}e&&le&&dl.alternate===null&&t(_,le),A=c(dl,A,pe),Ae===null?ue=dl:Ae.sibling=dl,Ae=dl,le=Ne}if(De.done)return n(_,le),we&&An(_,pe),ue;if(le===null){for(;!De.done;pe++,De=O.next())De=G(_,De.value,Y),De!==null&&(A=c(De,A,pe),Ae===null?ue=De:Ae.sibling=De,Ae=De);return we&&An(_,pe),ue}for(le=l(le);!De.done;pe++,De=O.next())De=B(le,_,pe,De.value,Y),De!==null&&(e&&De.alternate!==null&&le.delete(De.key===null?pe:De.key),A=c(De,A,pe),Ae===null?ue=De:Ae.sibling=De,Ae=De);return e&&le.forEach(function(Iv){return t(_,Iv)}),we&&An(_,pe),ue}function Ue(_,A,O,Y){if(typeof O=="object"&&O!==null&&O.type===C&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case w:e:{for(var ue=O.key;A!==null;){if(A.key===ue){if(ue=O.type,ue===C){if(A.tag===7){n(_,A.sibling),Y=s(A,O.props.children),Y.return=_,_=Y;break e}}else if(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===P&&Tl(ue)===A.type){n(_,A.sibling),Y=s(A,O.props),ni(Y,O),Y.return=_,_=Y;break e}n(_,A);break}else t(_,A);A=A.sibling}O.type===C?(Y=Al(O.props.children,_.mode,Y,O.key),Y.return=_,_=Y):(Y=cu(O.type,O.key,O.props,null,_.mode,Y),ni(Y,O),Y.return=_,_=Y)}return f(_);case M:e:{for(ue=O.key;A!==null;){if(A.key===ue)if(A.tag===4&&A.stateNode.containerInfo===O.containerInfo&&A.stateNode.implementation===O.implementation){n(_,A.sibling),Y=s(A,O.children||[]),Y.return=_,_=Y;break e}else{n(_,A);break}else t(_,A);A=A.sibling}Y=ir(O,_.mode,Y),Y.return=_,_=Y}return f(_);case P:return O=Tl(O),Ue(_,A,O,Y)}if(ve(O))return ee(_,A,O,Y);if(te(O)){if(ue=te(O),typeof ue!="function")throw Error(r(150));return O=ue.call(O),re(_,A,O,Y)}if(typeof O.then=="function")return Ue(_,A,pu(O),Y);if(O.$$typeof===z)return Ue(_,A,du(_,O),Y);vu(_,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,A!==null&&A.tag===6?(n(_,A.sibling),Y=s(A,O),Y.return=_,_=Y):(n(_,A),Y=ar(O,_.mode,Y),Y.return=_,_=Y),f(_)):n(_,A)}return function(_,A,O,Y){try{ti=0;var ue=Ue(_,A,O,Y);return ca=null,ue}catch(le){if(le===ra||le===mu)throw le;var Ae=zt(29,le,null,_.mode);return Ae.lanes=Y,Ae.return=_,Ae}finally{}}}var Rl=Ff(!0),If=Ff(!1),$n=!1;function vr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Wn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fn(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ce&2)!==0){var s=l.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),l.pending=t,t=ru(e),Uf(e,null,n),t}return su(e,l,t,n),ru(e)}function li(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Mt(e,n)}}function xr(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var s=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?s=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?s=c=t:c=c.next=t}else s=c=t;n={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var br=!1;function ai(){if(br){var e=sa;if(e!==null)throw e}}function ii(e,t,n,l){br=!1;var s=e.updateQueue;$n=!1;var c=s.firstBaseUpdate,f=s.lastBaseUpdate,p=s.shared.pending;if(p!==null){s.shared.pending=null;var E=p,T=E.next;E.next=null,f===null?c=T:f.next=T,f=E;var H=e.alternate;H!==null&&(H=H.updateQueue,p=H.lastBaseUpdate,p!==f&&(p===null?H.firstBaseUpdate=T:p.next=T,H.lastBaseUpdate=E))}if(c!==null){var G=s.baseState;f=0,H=T=E=null,p=c;do{var R=p.lane&-536870913,B=R!==p.lane;if(B?(Ee&R)===R:(l&R)===R){R!==0&&R===ua&&(br=!0),H!==null&&(H=H.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var ee=e,re=p;R=t;var Ue=n;switch(re.tag){case 1:if(ee=re.payload,typeof ee=="function"){G=ee.call(Ue,G,R);break e}G=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=re.payload,R=typeof ee=="function"?ee.call(Ue,G,R):ee,R==null)break e;G=x({},G,R);break e;case 2:$n=!0}}R=p.callback,R!==null&&(e.flags|=64,B&&(e.flags|=8192),B=s.callbacks,B===null?s.callbacks=[R]:B.push(R))}else B={lane:R,tag:p.tag,payload:p.payload,callback:p.callback,next:null},H===null?(T=H=B,E=G):H=H.next=B,f|=R;if(p=p.next,p===null){if(p=s.shared.pending,p===null)break;B=p,p=B.next,B.next=null,s.lastBaseUpdate=B,s.shared.pending=null}}while(!0);H===null&&(E=G),s.baseState=E,s.firstBaseUpdate=T,s.lastBaseUpdate=H,c===null&&(s.shared.lanes=0),nl|=f,e.lanes=f,e.memoizedState=G}}function Pf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function ed(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Pf(n[e],t)}var oa=j(null),yu=j(0);function td(e,t){e=Ln,J(yu,e),J(oa,t),Ln=e|t.baseLanes}function Sr(){J(yu,Ln),J(oa,oa.current)}function Er(){Ln=yu.current,L(oa),L(yu)}var Ut=j(null),It=null;function In(e){var t=e.alternate;J(Qe,Qe.current&1),J(Ut,e),It===null&&(t===null||oa.current!==null||t.memoizedState!==null)&&(It=e)}function Nr(e){J(Qe,Qe.current),J(Ut,e),It===null&&(It=e)}function nd(e){e.tag===22?(J(Qe,Qe.current),J(Ut,e),It===null&&(It=e)):Pn()}function Pn(){J(Qe,Qe.current),J(Ut,Ut.current)}function Bt(e){L(Ut),It===e&&(It=null),L(Qe)}var Qe=j(0);function xu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||_c(n)||Oc(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _n=0,ge=null,Re=null,$e=null,bu=!1,fa=!1,zl=!1,Su=0,ui=0,da=null,G0=0;function Ye(){throw Error(r(321))}function wr(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Rt(e[n],t[n]))return!1;return!0}function jr(e,t,n,l,s,c){return _n=c,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?kd:qr,zl=!1,c=n(l,s),zl=!1,fa&&(c=ad(t,n,l,s)),ld(e),c}function ld(e){U.H=ci;var t=Re!==null&&Re.next!==null;if(_n=0,$e=Re=ge=null,bu=!1,ui=0,da=null,t)throw Error(r(300));e===null||We||(e=e.dependencies,e!==null&&fu(e)&&(We=!0))}function ad(e,t,n,l){ge=e;var s=0;do{if(fa&&(da=null),ui=0,fa=!1,25<=s)throw Error(r(301));if(s+=1,$e=Re=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}U.H=qd,c=t(n,l)}while(fa);return c}function X0(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?si(t):t,e=e.useState()[0],(Re!==null?Re.memoizedState:null)!==e&&(ge.flags|=1024),t}function Ar(){var e=Su!==0;return Su=0,e}function Dr(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Cr(e){if(bu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}bu=!1}_n=0,$e=Re=ge=null,fa=!1,ui=Su=0,da=null}function vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?ge.memoizedState=$e=e:$e=$e.next=e,$e}function Ke(){if(Re===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=$e===null?ge.memoizedState:$e.next;if(t!==null)$e=t,Re=e;else{if(e===null)throw ge.alternate===null?Error(r(467)):Error(r(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},$e===null?ge.memoizedState=$e=e:$e=$e.next=e}return $e}function Eu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function si(e){var t=ui;return ui+=1,da===null&&(da=[]),e=Jf(da,e,t),t=ge,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?kd:qr),e}function Nu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return si(e);if(e.$$typeof===z)return rt(e)}throw Error(r(438,String(e)))}function _r(e){var t=null,n=ge.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=ge.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Eu(),ge.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=de;return t.index++,n}function On(e,t){return typeof t=="function"?t(e):t}function wu(e){var t=Ke();return Or(t,Re,e)}function Or(e,t,n){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var s=e.baseQueue,c=l.pending;if(c!==null){if(s!==null){var f=s.next;s.next=c.next,c.next=f}t.baseQueue=s=c,l.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var p=f=null,E=null,T=t,H=!1;do{var G=T.lane&-536870913;if(G!==T.lane?(Ee&G)===G:(_n&G)===G){var R=T.revertLane;if(R===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),G===ua&&(H=!0);else if((_n&R)===R){T=T.next,R===ua&&(H=!0);continue}else G={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},E===null?(p=E=G,f=c):E=E.next=G,ge.lanes|=R,nl|=R;G=T.action,zl&&n(c,G),c=T.hasEagerState?T.eagerState:n(c,G)}else R={lane:G,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},E===null?(p=E=R,f=c):E=E.next=R,ge.lanes|=G,nl|=G;T=T.next}while(T!==null&&T!==t);if(E===null?f=c:E.next=p,!Rt(c,e.memoizedState)&&(We=!0,H&&(n=sa,n!==null)))throw n;e.memoizedState=c,e.baseState=f,e.baseQueue=E,l.lastRenderedState=c}return s===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Tr(e){var t=Ke(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var l=n.dispatch,s=n.pending,c=t.memoizedState;if(s!==null){n.pending=null;var f=s=s.next;do c=e(c,f.action),f=f.next;while(f!==s);Rt(c,t.memoizedState)||(We=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,l]}function id(e,t,n){var l=ge,s=Ke(),c=we;if(c){if(n===void 0)throw Error(r(407));n=n()}else n=t();var f=!Rt((Re||s).memoizedState,n);if(f&&(s.memoizedState=n,We=!0),s=s.queue,zr(rd.bind(null,l,s,e),[e]),s.getSnapshot!==t||f||$e!==null&&$e.memoizedState.tag&1){if(l.flags|=2048,ha(9,{destroy:void 0},sd.bind(null,l,s,n,t),null),Be===null)throw Error(r(349));c||(_n&127)!==0||ud(l,t,n)}return n}function ud(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ge.updateQueue,t===null?(t=Eu(),ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function sd(e,t,n,l){t.value=n,t.getSnapshot=l,cd(t)&&od(e)}function rd(e,t,n){return n(function(){cd(t)&&od(e)})}function cd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Rt(e,n)}catch{return!0}}function od(e){var t=jl(e,2);t!==null&&_t(t,e,2)}function Mr(e){var t=vt();if(typeof e=="function"){var n=e;if(e=n(),zl){Yt(!0);try{n()}finally{Yt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:e},t}function fd(e,t,n,l){return e.baseState=n,Or(e,Re,typeof l=="function"?l:On)}function V0(e,t,n,l,s){if(Du(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};U.T!==null?n(!0):c.isTransition=!1,l(c),n=t.pending,n===null?(c.next=t.pending=c,dd(t,c)):(c.next=n.next,t.pending=n.next=c)}}function dd(e,t){var n=t.action,l=t.payload,s=e.state;if(t.isTransition){var c=U.T,f={};U.T=f;try{var p=n(s,l),E=U.S;E!==null&&E(f,p),hd(e,t,p)}catch(T){Rr(e,t,T)}finally{c!==null&&f.types!==null&&(c.types=f.types),U.T=c}}else try{c=n(s,l),hd(e,t,c)}catch(T){Rr(e,t,T)}}function hd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){md(e,t,l)},function(l){return Rr(e,t,l)}):md(e,t,n)}function md(e,t,n){t.status="fulfilled",t.value=n,gd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,dd(e,n)))}function Rr(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,gd(t),t=t.next;while(t!==l)}e.action=null}function gd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function pd(e,t){return t}function vd(e,t){if(we){var n=Be.formState;if(n!==null){e:{var l=ge;if(we){if(He){t:{for(var s=He,c=Ft;s.nodeType!==8;){if(!c){s=null;break t}if(s=Pt(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){He=Pt(s.nextSibling),l=s.data==="F!";break e}}Zn(l)}l=!1}l&&(t=n[0])}}return n=vt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pd,lastRenderedState:t},n.queue=l,n=Bd.bind(null,ge,l),l.dispatch=n,l=Mr(!1),c=kr.bind(null,ge,!1,l.queue),l=vt(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,n=V0.bind(null,ge,s,c,n),s.dispatch=n,l.memoizedState=e,[t,n,!1]}function yd(e){var t=Ke();return xd(t,Re,e)}function xd(e,t,n){if(t=Or(e,t,pd)[0],e=wu(On)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=si(t)}catch(f){throw f===ra?mu:f}else l=t;t=Ke();var s=t.queue,c=s.dispatch;return n!==t.memoizedState&&(ge.flags|=2048,ha(9,{destroy:void 0},Q0.bind(null,s,n),null)),[l,c,e]}function Q0(e,t){e.action=t}function bd(e){var t=Ke(),n=Re;if(n!==null)return xd(t,n,e);Ke(),t=t.memoizedState,n=Ke();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function ha(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=ge.updateQueue,t===null&&(t=Eu(),ge.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Sd(){return Ke().memoizedState}function ju(e,t,n,l){var s=vt();ge.flags|=e,s.memoizedState=ha(1|t,{destroy:void 0},n,l===void 0?null:l)}function Au(e,t,n,l){var s=Ke();l=l===void 0?null:l;var c=s.memoizedState.inst;Re!==null&&l!==null&&wr(l,Re.memoizedState.deps)?s.memoizedState=ha(t,c,n,l):(ge.flags|=e,s.memoizedState=ha(1|t,c,n,l))}function Ed(e,t){ju(8390656,8,e,t)}function zr(e,t){Au(2048,8,e,t)}function K0(e){ge.flags|=4;var t=ge.updateQueue;if(t===null)t=Eu(),ge.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Nd(e){var t=Ke().memoizedState;return K0({ref:t,nextImpl:e}),function(){if((Ce&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function wd(e,t){return Au(4,2,e,t)}function jd(e,t){return Au(4,4,e,t)}function Ad(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Dd(e,t,n){n=n!=null?n.concat([e]):null,Au(4,4,Ad.bind(null,t,e),n)}function Ur(){}function Cd(e,t){var n=Ke();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&wr(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function _d(e,t){var n=Ke();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&wr(t,l[1]))return l[0];if(l=e(),zl){Yt(!0);try{e()}finally{Yt(!1)}}return n.memoizedState=[l,t],l}function Br(e,t,n){return n===void 0||(_n&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Oh(),ge.lanes|=e,nl|=e,n)}function Od(e,t,n,l){return Rt(n,t)?n:oa.current!==null?(e=Br(e,n,l),Rt(e,t)||(We=!0),e):(_n&42)===0||(_n&1073741824)!==0&&(Ee&261930)===0?(We=!0,e.memoizedState=n):(e=Oh(),ge.lanes|=e,nl|=e,t)}function Td(e,t,n,l,s){var c=Q.p;Q.p=c!==0&&8>c?c:8;var f=U.T,p={};U.T=p,kr(e,!1,t,n);try{var E=s(),T=U.S;if(T!==null&&T(p,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var H=Y0(E,l);ri(e,t,H,kt(e))}else ri(e,t,l,kt(e))}catch(G){ri(e,t,{then:function(){},status:"rejected",reason:G},kt())}finally{Q.p=c,f!==null&&p.types!==null&&(f.types=p.types),U.T=f}}function Z0(){}function Lr(e,t,n,l){if(e.tag!==5)throw Error(r(476));var s=Md(e).queue;Td(e,s,t,ie,n===null?Z0:function(){return Rd(e),n(l)})}function Md(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:ie},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Rd(e){var t=Md(e);t.next===null&&(t=e.alternate.memoizedState),ri(e,t.next.queue,{},kt())}function Hr(){return rt(ji)}function zd(){return Ke().memoizedState}function Ud(){return Ke().memoizedState}function J0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=kt();e=Wn(n);var l=Fn(t,e,n);l!==null&&(_t(l,t,n),li(l,t,n)),t={cache:hr()},e.payload=t;return}t=t.return}}function $0(e,t,n){var l=kt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Du(e)?Ld(t,n):(n=nr(e,t,n,l),n!==null&&(_t(n,e,l),Hd(n,t,l)))}function Bd(e,t,n){var l=kt();ri(e,t,n,l)}function ri(e,t,n,l){var s={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Du(e))Ld(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var f=t.lastRenderedState,p=c(f,n);if(s.hasEagerState=!0,s.eagerState=p,Rt(p,f))return su(e,t,s,0),Be===null&&uu(),!1}catch{}finally{}if(n=nr(e,t,s,l),n!==null)return _t(n,e,l),Hd(n,t,l),!0}return!1}function kr(e,t,n,l){if(l={lane:2,revertLane:vc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Du(e)){if(t)throw Error(r(479))}else t=nr(e,n,l,2),t!==null&&_t(t,e,2)}function Du(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Ld(e,t){fa=bu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hd(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Mt(e,n)}}var ci={readContext:rt,use:Nu,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};ci.useEffectEvent=Ye;var kd={readContext:rt,use:Nu,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:Ed,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ju(4194308,4,Ad.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ju(4194308,4,e,t)},useInsertionEffect:function(e,t){ju(4,2,e,t)},useMemo:function(e,t){var n=vt();t=t===void 0?null:t;var l=e();if(zl){Yt(!0);try{e()}finally{Yt(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=vt();if(n!==void 0){var s=n(t);if(zl){Yt(!0);try{n(t)}finally{Yt(!1)}}}else s=t;return l.memoizedState=l.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},l.queue=e,e=e.dispatch=$0.bind(null,ge,e),[l.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=Mr(e);var t=e.queue,n=Bd.bind(null,ge,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ur,useDeferredValue:function(e,t){var n=vt();return Br(n,e,t)},useTransition:function(){var e=Mr(!1);return e=Td.bind(null,ge,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=ge,s=vt();if(we){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Be===null)throw Error(r(349));(Ee&127)!==0||ud(l,t,n)}s.memoizedState=n;var c={value:n,getSnapshot:t};return s.queue=c,Ed(rd.bind(null,l,c,e),[e]),l.flags|=2048,ha(9,{destroy:void 0},sd.bind(null,l,c,n,t),null),n},useId:function(){var e=vt(),t=Be.identifierPrefix;if(we){var n=hn,l=dn;n=(l&~(1<<32-ht(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Su++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=G0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Hr,useFormState:vd,useActionState:vd,useOptimistic:function(e){var t=vt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=kr.bind(null,ge,!0,n),n.dispatch=t,[e,t]},useMemoCache:_r,useCacheRefresh:function(){return vt().memoizedState=J0.bind(null,ge)},useEffectEvent:function(e){var t=vt(),n={impl:e};return t.memoizedState=n,function(){if((Ce&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},qr={readContext:rt,use:Nu,useCallback:Cd,useContext:rt,useEffect:zr,useImperativeHandle:Dd,useInsertionEffect:wd,useLayoutEffect:jd,useMemo:_d,useReducer:wu,useRef:Sd,useState:function(){return wu(On)},useDebugValue:Ur,useDeferredValue:function(e,t){var n=Ke();return Od(n,Re.memoizedState,e,t)},useTransition:function(){var e=wu(On)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:si(e),t]},useSyncExternalStore:id,useId:zd,useHostTransitionStatus:Hr,useFormState:yd,useActionState:yd,useOptimistic:function(e,t){var n=Ke();return fd(n,Re,e,t)},useMemoCache:_r,useCacheRefresh:Ud};qr.useEffectEvent=Nd;var qd={readContext:rt,use:Nu,useCallback:Cd,useContext:rt,useEffect:zr,useImperativeHandle:Dd,useInsertionEffect:wd,useLayoutEffect:jd,useMemo:_d,useReducer:Tr,useRef:Sd,useState:function(){return Tr(On)},useDebugValue:Ur,useDeferredValue:function(e,t){var n=Ke();return Re===null?Br(n,e,t):Od(n,Re.memoizedState,e,t)},useTransition:function(){var e=Tr(On)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:si(e),t]},useSyncExternalStore:id,useId:zd,useHostTransitionStatus:Hr,useFormState:bd,useActionState:bd,useOptimistic:function(e,t){var n=Ke();return Re!==null?fd(n,Re,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:_r,useCacheRefresh:Ud};qd.useEffectEvent=Nd;function Yr(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:x({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Gr={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=kt(),s=Wn(l);s.payload=t,n!=null&&(s.callback=n),t=Fn(e,s,l),t!==null&&(_t(t,e,l),li(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=kt(),s=Wn(l);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Fn(e,s,l),t!==null&&(_t(t,e,l),li(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=kt(),l=Wn(n);l.tag=2,t!=null&&(l.callback=t),t=Fn(e,l,n),t!==null&&(_t(t,e,n),li(t,e,n))}};function Yd(e,t,n,l,s,c,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,f):t.prototype&&t.prototype.isPureReactComponent?!$a(n,l)||!$a(s,c):!0}function Gd(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Gr.enqueueReplaceState(t,t.state,null)}function Ul(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=x({},n));for(var s in e)n[s]===void 0&&(n[s]=e[s])}return n}function Xd(e){iu(e)}function Vd(e){console.error(e)}function Qd(e){iu(e)}function Cu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Kd(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Xr(e,t,n){return n=Wn(n),n.tag=3,n.payload={element:null},n.callback=function(){Cu(e,t)},n}function Zd(e){return e=Wn(e),e.tag=3,e}function Jd(e,t,n,l){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var c=l.value;e.payload=function(){return s(c)},e.callback=function(){Kd(t,n,l)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Kd(t,n,l),typeof s!="function"&&(ll===null?ll=new Set([this]):ll.add(this));var p=l.stack;this.componentDidCatch(l.value,{componentStack:p!==null?p:""})})}function W0(e,t,n,l,s){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&ia(t,n,s,!0),n=Ut.current,n!==null){switch(n.tag){case 31:case 13:return It===null?qu():n.alternate===null&&Ge===0&&(Ge=3),n.flags&=-257,n.flags|=65536,n.lanes=s,l===gu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),mc(e,l,s)),!1;case 22:return n.flags|=65536,l===gu?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),mc(e,l,s)),!1}throw Error(r(435,n.tag))}return mc(e,l,s),qu(),!1}if(we)return t=Ut.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,l!==rr&&(e=Error(r(422),{cause:l}),Ia(Jt(e,n)))):(l!==rr&&(t=Error(r(423),{cause:l}),Ia(Jt(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,l=Jt(l,n),s=Xr(e.stateNode,l,s),xr(e,s),Ge!==4&&(Ge=2)),!1;var c=Error(r(520),{cause:l});if(c=Jt(c,n),vi===null?vi=[c]:vi.push(c),Ge!==4&&(Ge=2),t===null)return!0;l=Jt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=Xr(n.stateNode,l,e),xr(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ll===null||!ll.has(c))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Zd(s),Jd(s,e,n,l),xr(n,s),!1}n=n.return}while(n!==null);return!1}var Vr=Error(r(461)),We=!1;function ct(e,t,n,l){t.child=e===null?If(t,null,n,l):Rl(t,e.child,n,l)}function $d(e,t,n,l,s){n=n.render;var c=t.ref;if("ref"in l){var f={};for(var p in l)p!=="ref"&&(f[p]=l[p])}else f=l;return _l(t),l=jr(e,t,n,f,c,s),p=Ar(),e!==null&&!We?(Dr(e,t,s),Tn(e,t,s)):(we&&p&&ur(t),t.flags|=1,ct(e,t,l,s),t.child)}function Wd(e,t,n,l,s){if(e===null){var c=n.type;return typeof c=="function"&&!lr(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Fd(e,t,c,l,s)):(e=cu(n.type,null,l,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Ir(e,s)){var f=c.memoizedProps;if(n=n.compare,n=n!==null?n:$a,n(f,l)&&e.ref===t.ref)return Tn(e,t,s)}return t.flags|=1,e=jn(c,l),e.ref=t.ref,e.return=t,t.child=e}function Fd(e,t,n,l,s){if(e!==null){var c=e.memoizedProps;if($a(c,l)&&e.ref===t.ref)if(We=!1,t.pendingProps=l=c,Ir(e,s))(e.flags&131072)!==0&&(We=!0);else return t.lanes=e.lanes,Tn(e,t,s)}return Qr(e,t,n,l,s)}function Id(e,t,n,l){var s=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(l=t.child=e.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~c}else l=0,t.child=null;return Pd(e,t,c,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&hu(t,c!==null?c.cachePool:null),c!==null?td(t,c):Sr(),nd(t);else return l=t.lanes=536870912,Pd(e,t,c!==null?c.baseLanes|n:n,n,l)}else c!==null?(hu(t,c.cachePool),td(t,c),Pn(),t.memoizedState=null):(e!==null&&hu(t,null),Sr(),Pn());return ct(e,t,s,n),t.child}function oi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Pd(e,t,n,l,s){var c=gr();return c=c===null?null:{parent:Je._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&hu(t,null),Sr(),nd(t),e!==null&&ia(e,t,l,!0),t.childLanes=s,null}function _u(e,t){return t=Tu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function eh(e,t,n){return Rl(t,e.child,null,n),e=_u(t,t.pendingProps),e.flags|=2,Bt(t),t.memoizedState=null,e}function F0(e,t,n){var l=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(we){if(l.mode==="hidden")return e=_u(t,l),t.lanes=536870912,oi(null,e);if(Nr(t),(e=He)?(e=dm(e,Ft),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qn!==null?{id:dn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},n=Lf(e),n.return=t,t.child=n,st=t,He=null)):e=null,e===null)throw Zn(t);return t.lanes=536870912,null}return _u(t,l)}var c=e.memoizedState;if(c!==null){var f=c.dehydrated;if(Nr(t),s)if(t.flags&256)t.flags&=-257,t=eh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(We||ia(e,t,n,!1),s=(n&e.childLanes)!==0,We||s){if(l=Be,l!==null&&(f=Xt(l,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,jl(e,f),_t(l,e,f),Vr;qu(),t=eh(e,t,n)}else e=c.treeContext,He=Pt(f.nextSibling),st=t,we=!0,Kn=null,Ft=!1,e!==null&&qf(t,e),t=_u(t,l),t.flags|=4096;return t}return e=jn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ou(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Qr(e,t,n,l,s){return _l(t),n=jr(e,t,n,l,void 0,s),l=Ar(),e!==null&&!We?(Dr(e,t,s),Tn(e,t,s)):(we&&l&&ur(t),t.flags|=1,ct(e,t,n,s),t.child)}function th(e,t,n,l,s,c){return _l(t),t.updateQueue=null,n=ad(t,l,n,s),ld(e),l=Ar(),e!==null&&!We?(Dr(e,t,c),Tn(e,t,c)):(we&&l&&ur(t),t.flags|=1,ct(e,t,n,c),t.child)}function nh(e,t,n,l,s){if(_l(t),t.stateNode===null){var c=ta,f=n.contextType;typeof f=="object"&&f!==null&&(c=rt(f)),c=new n(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Gr,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},vr(t),f=n.contextType,c.context=typeof f=="object"&&f!==null?rt(f):ta,c.state=t.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Yr(t,n,f,l),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(f=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),f!==c.state&&Gr.enqueueReplaceState(c,c.state,null),ii(t,l,c,s),ai(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var p=t.memoizedProps,E=Ul(n,p);c.props=E;var T=c.context,H=n.contextType;f=ta,typeof H=="object"&&H!==null&&(f=rt(H));var G=n.getDerivedStateFromProps;H=typeof G=="function"||typeof c.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,H||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p||T!==f)&&Gd(t,c,l,f),$n=!1;var R=t.memoizedState;c.state=R,ii(t,l,c,s),ai(),T=t.memoizedState,p||R!==T||$n?(typeof G=="function"&&(Yr(t,n,G,l),T=t.memoizedState),(E=$n||Yd(t,n,E,l,R,T,f))?(H||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=T),c.props=l,c.state=T,c.context=f,l=E):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,yr(e,t),f=t.memoizedProps,H=Ul(n,f),c.props=H,G=t.pendingProps,R=c.context,T=n.contextType,E=ta,typeof T=="object"&&T!==null&&(E=rt(T)),p=n.getDerivedStateFromProps,(T=typeof p=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==G||R!==E)&&Gd(t,c,l,E),$n=!1,R=t.memoizedState,c.state=R,ii(t,l,c,s),ai();var B=t.memoizedState;f!==G||R!==B||$n||e!==null&&e.dependencies!==null&&fu(e.dependencies)?(typeof p=="function"&&(Yr(t,n,p,l),B=t.memoizedState),(H=$n||Yd(t,n,H,l,R,B,E)||e!==null&&e.dependencies!==null&&fu(e.dependencies))?(T||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,B,E),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,B,E)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=B),c.props=l,c.state=B,c.context=E,l=H):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,Ou(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=Rl(t,e.child,null,s),t.child=Rl(t,null,n,s)):ct(e,t,n,s),t.memoizedState=c.state,e=t.child):e=Tn(e,t,s),e}function lh(e,t,n,l){return Dl(),t.flags|=256,ct(e,t,n,l),t.child}var Kr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zr(e){return{baseLanes:e,cachePool:Kf()}}function Jr(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Ht),e}function ah(e,t,n){var l=t.pendingProps,s=!1,c=(t.flags&128)!==0,f;if((f=c)||(f=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),f&&(s=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(we){if(s?In(t):Pn(),(e=He)?(e=dm(e,Ft),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qn!==null?{id:dn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},n=Lf(e),n.return=t,t.child=n,st=t,He=null)):e=null,e===null)throw Zn(t);return Oc(e)?t.lanes=32:t.lanes=536870912,null}var p=l.children;return l=l.fallback,s?(Pn(),s=t.mode,p=Tu({mode:"hidden",children:p},s),l=Al(l,s,n,null),p.return=t,l.return=t,p.sibling=l,t.child=p,l=t.child,l.memoizedState=Zr(n),l.childLanes=Jr(e,f,n),t.memoizedState=Kr,oi(null,l)):(In(t),$r(t,p))}var E=e.memoizedState;if(E!==null&&(p=E.dehydrated,p!==null)){if(c)t.flags&256?(In(t),t.flags&=-257,t=Wr(e,t,n)):t.memoizedState!==null?(Pn(),t.child=e.child,t.flags|=128,t=null):(Pn(),p=l.fallback,s=t.mode,l=Tu({mode:"visible",children:l.children},s),p=Al(p,s,n,null),p.flags|=2,l.return=t,p.return=t,l.sibling=p,t.child=l,Rl(t,e.child,null,n),l=t.child,l.memoizedState=Zr(n),l.childLanes=Jr(e,f,n),t.memoizedState=Kr,t=oi(null,l));else if(In(t),Oc(p)){if(f=p.nextSibling&&p.nextSibling.dataset,f)var T=f.dgst;f=T,l=Error(r(419)),l.stack="",l.digest=f,Ia({value:l,source:null,stack:null}),t=Wr(e,t,n)}else if(We||ia(e,t,n,!1),f=(n&e.childLanes)!==0,We||f){if(f=Be,f!==null&&(l=Xt(f,n),l!==0&&l!==E.retryLane))throw E.retryLane=l,jl(e,l),_t(f,e,l),Vr;_c(p)||qu(),t=Wr(e,t,n)}else _c(p)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,He=Pt(p.nextSibling),st=t,we=!0,Kn=null,Ft=!1,e!==null&&qf(t,e),t=$r(t,l.children),t.flags|=4096);return t}return s?(Pn(),p=l.fallback,s=t.mode,E=e.child,T=E.sibling,l=jn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,T!==null?p=jn(T,p):(p=Al(p,s,n,null),p.flags|=2),p.return=t,l.return=t,l.sibling=p,t.child=l,oi(null,l),l=t.child,p=e.child.memoizedState,p===null?p=Zr(n):(s=p.cachePool,s!==null?(E=Je._currentValue,s=s.parent!==E?{parent:E,pool:E}:s):s=Kf(),p={baseLanes:p.baseLanes|n,cachePool:s}),l.memoizedState=p,l.childLanes=Jr(e,f,n),t.memoizedState=Kr,oi(e.child,l)):(In(t),n=e.child,e=n.sibling,n=jn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=n,t.memoizedState=null,n)}function $r(e,t){return t=Tu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Tu(e,t){return e=zt(22,e,null,t),e.lanes=0,e}function Wr(e,t,n){return Rl(t,e.child,null,n),e=$r(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ih(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),fr(e.return,t,n)}function Fr(e,t,n,l,s,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:s,treeForkCount:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=n,f.tailMode=s,f.treeForkCount=c)}function uh(e,t,n){var l=t.pendingProps,s=l.revealOrder,c=l.tail;l=l.children;var f=Qe.current,p=(f&2)!==0;if(p?(f=f&1|2,t.flags|=128):f&=1,J(Qe,f),ct(e,t,l,n),l=we?Fa:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ih(e,n,t);else if(e.tag===19)ih(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&xu(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Fr(t,!1,s,n,c,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&xu(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Fr(t,!0,n,null,c,l);break;case"together":Fr(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),nl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ia(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=jn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ir(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&fu(e)))}function I0(e,t,n){switch(t.tag){case 3:Le(t,t.stateNode.containerInfo),Jn(t,Je,e.memoizedState.cache),Dl();break;case 27:case 5:Se(t);break;case 4:Le(t,t.stateNode.containerInfo);break;case 10:Jn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Nr(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(In(t),t.flags|=128,null):(n&t.child.childLanes)!==0?ah(e,t,n):(In(t),e=Tn(e,t,n),e!==null?e.sibling:null);In(t);break;case 19:var s=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(ia(e,t,n,!1),l=(n&t.childLanes)!==0),s){if(l)return uh(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),J(Qe,Qe.current),l)break;return null;case 22:return t.lanes=0,Id(e,t,n,t.pendingProps);case 24:Jn(t,Je,e.memoizedState.cache)}return Tn(e,t,n)}function sh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)We=!0;else{if(!Ir(e,n)&&(t.flags&128)===0)return We=!1,I0(e,t,n);We=(e.flags&131072)!==0}else We=!1,we&&(t.flags&1048576)!==0&&kf(t,Fa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Tl(t.elementType),t.type=e,typeof e=="function")lr(e)?(l=Ul(e,l),t.tag=1,t=nh(null,t,e,l,n)):(t.tag=0,t=Qr(null,t,e,l,n));else{if(e!=null){var s=e.$$typeof;if(s===q){t.tag=11,t=$d(null,t,e,l,n);break e}else if(s===V){t.tag=14,t=Wd(null,t,e,l,n);break e}}throw t=ce(e)||e,Error(r(306,t,""))}}return t;case 0:return Qr(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,s=Ul(l,t.pendingProps),nh(e,t,l,s,n);case 3:e:{if(Le(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var c=t.memoizedState;s=c.element,yr(e,t),ii(t,l,null,n);var f=t.memoizedState;if(l=f.cache,Jn(t,Je,l),l!==c.cache&&dr(t,[Je],n,!0),ai(),l=f.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=lh(e,t,l,n);break e}else if(l!==s){s=Jt(Error(r(424)),t),Ia(s),t=lh(e,t,l,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(He=Pt(e.firstChild),st=t,we=!0,Kn=null,Ft=!0,n=If(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Dl(),l===s){t=Tn(e,t,n);break e}ct(e,t,l,n)}t=t.child}return t;case 26:return Ou(e,t),e===null?(n=ym(t.type,null,t.pendingProps,null))?t.memoizedState=n:we||(n=t.type,e=t.pendingProps,l=Zu(ne.current).createElement(n),l[ut]=t,l[Nt]=e,ot(l,n,e),lt(l),t.stateNode=l):t.memoizedState=ym(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Se(t),e===null&&we&&(l=t.stateNode=gm(t.type,t.pendingProps,ne.current),st=t,Ft=!0,s=He,sl(t.type)?(Tc=s,He=Pt(l.firstChild)):He=s),ct(e,t,t.pendingProps.children,n),Ou(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&we&&((s=l=He)&&(l=Cv(l,t.type,t.pendingProps,Ft),l!==null?(t.stateNode=l,st=t,He=Pt(l.firstChild),Ft=!1,s=!0):s=!1),s||Zn(t)),Se(t),s=t.type,c=t.pendingProps,f=e!==null?e.memoizedProps:null,l=c.children,Ac(s,c)?l=null:f!==null&&Ac(s,f)&&(t.flags|=32),t.memoizedState!==null&&(s=jr(e,t,X0,null,null,n),ji._currentValue=s),Ou(e,t),ct(e,t,l,n),t.child;case 6:return e===null&&we&&((e=n=He)&&(n=_v(n,t.pendingProps,Ft),n!==null?(t.stateNode=n,st=t,He=null,e=!0):e=!1),e||Zn(t)),null;case 13:return ah(e,t,n);case 4:return Le(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Rl(t,null,l,n):ct(e,t,l,n),t.child;case 11:return $d(e,t,t.type,t.pendingProps,n);case 7:return ct(e,t,t.pendingProps,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Jn(t,t.type,l.value),ct(e,t,l.children,n),t.child;case 9:return s=t.type._context,l=t.pendingProps.children,_l(t),s=rt(s),l=l(s),t.flags|=1,ct(e,t,l,n),t.child;case 14:return Wd(e,t,t.type,t.pendingProps,n);case 15:return Fd(e,t,t.type,t.pendingProps,n);case 19:return uh(e,t,n);case 31:return F0(e,t,n);case 22:return Id(e,t,n,t.pendingProps);case 24:return _l(t),l=rt(Je),e===null?(s=gr(),s===null&&(s=Be,c=hr(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=n),s=c),t.memoizedState={parent:l,cache:s},vr(t),Jn(t,Je,s)):((e.lanes&n)!==0&&(yr(e,t),ii(t,null,null,n),ai()),s=e.memoizedState,c=t.memoizedState,s.parent!==l?(s={parent:l,cache:l},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Jn(t,Je,l)):(l=c.cache,Jn(t,Je,l),l!==s.cache&&dr(t,[Je],n,!0))),ct(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Mn(e){e.flags|=4}function Pr(e,t,n,l,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(zh())e.flags|=8192;else throw Ml=gu,pr}else e.flags&=-16777217}function rh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Nm(t))if(zh())e.flags|=8192;else throw Ml=gu,pr}function Mu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?mt():536870912,e.lanes|=t,va|=t)}function fi(e,t){if(!we)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function P0(e,t,n){var l=t.pendingProps;switch(sr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ke(t),null;case 1:return ke(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Cn(Je),ye(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(aa(t)?Mn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,cr())),ke(t),null;case 26:var s=t.type,c=t.memoizedState;return e===null?(Mn(t),c!==null?(ke(t),rh(t,c)):(ke(t),Pr(t,s,null,l,n))):c?c!==e.memoizedState?(Mn(t),ke(t),rh(t,c)):(ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Mn(t),ke(t),Pr(t,s,e,l,n)),null;case 27:if(Ze(t),n=ne.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Mn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return ke(t),null}e=Z.current,aa(t)?Yf(t):(e=gm(s,l,n),t.stateNode=e,Mn(t))}return ke(t),null;case 5:if(Ze(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Mn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return ke(t),null}if(c=Z.current,aa(t))Yf(t);else{var f=Zu(ne.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":c=f.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?f.createElement(s,{is:l.is}):f.createElement(s)}}c[ut]=t,c[Nt]=l;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)c.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=c;e:switch(ot(c,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Mn(t)}}return ke(t),Pr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Mn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=ne.current,aa(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,s=st,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}e[ut]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||am(e.nodeValue,n)),e||Zn(t,!0)}else e=Zu(e).createTextNode(l),e[ut]=t,t.stateNode=e}return ke(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=aa(t),n!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[ut]=t}else Dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),e=!1}else n=cr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Bt(t),t):(Bt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return ke(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=aa(t),l!==null&&l.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));s[ut]=t}else Dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),s=!1}else s=cr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Bt(t),t):(Bt(t),null)}return Bt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==s&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Mu(t,t.updateQueue),ke(t),null);case 4:return ye(),e===null&&Sc(t.stateNode.containerInfo),ke(t),null;case 10:return Cn(t.type),ke(t),null;case 19:if(L(Qe),l=t.memoizedState,l===null)return ke(t),null;if(s=(t.flags&128)!==0,c=l.rendering,c===null)if(s)fi(l,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=xu(e),c!==null){for(t.flags|=128,fi(l,!1),e=c.updateQueue,t.updateQueue=e,Mu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Bf(n,e),n=n.sibling;return J(Qe,Qe.current&1|2),we&&An(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&dt()>Lu&&(t.flags|=128,s=!0,fi(l,!1),t.lanes=4194304)}else{if(!s)if(e=xu(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Mu(t,e),fi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!we)return ke(t),null}else 2*dt()-l.renderingStartTime>Lu&&n!==536870912&&(t.flags|=128,s=!0,fi(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=dt(),e.sibling=null,n=Qe.current,J(Qe,s?n&1|2:n&1),we&&An(t,l.treeForkCount),e):(ke(t),null);case 22:case 23:return Bt(t),Er(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),n=t.updateQueue,n!==null&&Mu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&L(Ol),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Cn(Je),ke(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function ev(e,t){switch(sr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cn(Je),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ze(t),null;case 31:if(t.memoizedState!==null){if(Bt(t),t.alternate===null)throw Error(r(340));Dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Bt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(Qe),null;case 4:return ye(),null;case 10:return Cn(t.type),null;case 22:case 23:return Bt(t),Er(),e!==null&&L(Ol),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Cn(Je),null;case 25:return null;default:return null}}function ch(e,t){switch(sr(t),t.tag){case 3:Cn(Je),ye();break;case 26:case 27:case 5:Ze(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&Bt(t);break;case 13:Bt(t);break;case 19:L(Qe);break;case 10:Cn(t.type);break;case 22:case 23:Bt(t),Er(),e!==null&&L(Ol);break;case 24:Cn(Je)}}function di(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var s=l.next;n=s;do{if((n.tag&e)===e){l=void 0;var c=n.create,f=n.inst;l=c(),f.destroy=l}n=n.next}while(n!==s)}}catch(p){Me(t,t.return,p)}}function el(e,t,n){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var c=s.next;l=c;do{if((l.tag&e)===e){var f=l.inst,p=f.destroy;if(p!==void 0){f.destroy=void 0,s=t;var E=n,T=p;try{T()}catch(H){Me(s,E,H)}}}l=l.next}while(l!==c)}}catch(H){Me(t,t.return,H)}}function oh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ed(t,n)}catch(l){Me(e,e.return,l)}}}function fh(e,t,n){n.props=Ul(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Me(e,t,l)}}function hi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(s){Me(e,t,s)}}function mn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(s){Me(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Me(e,t,s)}else n.current=null}function dh(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(s){Me(e,e.return,s)}}function ec(e,t,n){try{var l=e.stateNode;Ev(l,e.type,n,t),l[Nt]=t}catch(s){Me(e,e.return,s)}}function hh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sl(e.type)||e.tag===4}function tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nc(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Nn));else if(l!==4&&(l===27&&sl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(nc(e,t,n),e=e.sibling;e!==null;)nc(e,t,n),e=e.sibling}function Ru(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&sl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ru(e,t,n),e=e.sibling;e!==null;)Ru(e,t,n),e=e.sibling}function mh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);ot(t,l,n),t[ut]=e,t[Nt]=n}catch(c){Me(e,e.return,c)}}var Rn=!1,Fe=!1,lc=!1,gh=typeof WeakSet=="function"?WeakSet:Set,at=null;function tv(e,t){if(e=e.containerInfo,wc=es,e=Df(e),Ws(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var s=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var f=0,p=-1,E=-1,T=0,H=0,G=e,R=null;t:for(;;){for(var B;G!==n||s!==0&&G.nodeType!==3||(p=f+s),G!==c||l!==0&&G.nodeType!==3||(E=f+l),G.nodeType===3&&(f+=G.nodeValue.length),(B=G.firstChild)!==null;)R=G,G=B;for(;;){if(G===e)break t;if(R===n&&++T===s&&(p=f),R===c&&++H===l&&(E=f),(B=G.nextSibling)!==null)break;G=R,R=G.parentNode}G=B}n=p===-1||E===-1?null:{start:p,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(jc={focusedElem:e,selectionRange:n},es=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){switch(t=at,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)s=e[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,s=c.memoizedProps,c=c.memoizedState,l=n.stateNode;try{var ee=Ul(n.type,s);e=l.getSnapshotBeforeUpdate(ee,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(re){Me(n,n.return,re)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Cc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Cc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,at=e;break}at=t.return}}function ph(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Un(e,n),l&4&&di(5,n);break;case 1:if(Un(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(f){Me(n,n.return,f)}else{var s=Ul(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Me(n,n.return,f)}}l&64&&oh(n),l&512&&hi(n,n.return);break;case 3:if(Un(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{ed(e,t)}catch(f){Me(n,n.return,f)}}break;case 27:t===null&&l&4&&mh(n);case 26:case 5:Un(e,n),t===null&&l&4&&dh(n),l&512&&hi(n,n.return);break;case 12:Un(e,n);break;case 31:Un(e,n),l&4&&xh(e,n);break;case 13:Un(e,n),l&4&&bh(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ov.bind(null,n),Ov(e,n))));break;case 22:if(l=n.memoizedState!==null||Rn,!l){t=t!==null&&t.memoizedState!==null||Fe,s=Rn;var c=Fe;Rn=l,(Fe=t)&&!c?Bn(e,n,(n.subtreeFlags&8772)!==0):Un(e,n),Rn=s,Fe=c}break;case 30:break;default:Un(e,n)}}function vh(e){var t=e.alternate;t!==null&&(e.alternate=null,vh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Rs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var qe=null,jt=!1;function zn(e,t,n){for(n=n.child;n!==null;)yh(e,t,n),n=n.sibling}function yh(e,t,n){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(bl,n)}catch{}switch(n.tag){case 26:Fe||mn(n,t),zn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Fe||mn(n,t);var l=qe,s=jt;sl(n.type)&&(qe=n.stateNode,jt=!1),zn(e,t,n),Ei(n.stateNode),qe=l,jt=s;break;case 5:Fe||mn(n,t);case 6:if(l=qe,s=jt,qe=null,zn(e,t,n),qe=l,jt=s,qe!==null)if(jt)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(n.stateNode)}catch(c){Me(n,t,c)}else try{qe.removeChild(n.stateNode)}catch(c){Me(n,t,c)}break;case 18:qe!==null&&(jt?(e=qe,om(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ja(e)):om(qe,n.stateNode));break;case 4:l=qe,s=jt,qe=n.stateNode.containerInfo,jt=!0,zn(e,t,n),qe=l,jt=s;break;case 0:case 11:case 14:case 15:el(2,n,t),Fe||el(4,n,t),zn(e,t,n);break;case 1:Fe||(mn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&fh(n,t,l)),zn(e,t,n);break;case 21:zn(e,t,n);break;case 22:Fe=(l=Fe)||n.memoizedState!==null,zn(e,t,n),Fe=l;break;default:zn(e,t,n)}}function xh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ja(e)}catch(n){Me(t,t.return,n)}}}function bh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ja(e)}catch(n){Me(t,t.return,n)}}function nv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new gh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new gh),t;default:throw Error(r(435,e.tag))}}function zu(e,t){var n=nv(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var s=fv.bind(null,e,l);l.then(s,s)}})}function At(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var s=n[l],c=e,f=t,p=f;e:for(;p!==null;){switch(p.tag){case 27:if(sl(p.type)){qe=p.stateNode,jt=!1;break e}break;case 5:qe=p.stateNode,jt=!1;break e;case 3:case 4:qe=p.stateNode.containerInfo,jt=!0;break e}p=p.return}if(qe===null)throw Error(r(160));yh(c,f,s),qe=null,jt=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Sh(t,e),t=t.sibling}var rn=null;function Sh(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:At(t,e),Dt(e),l&4&&(el(3,e,e.return),di(3,e),el(5,e,e.return));break;case 1:At(t,e),Dt(e),l&512&&(Fe||n===null||mn(n,n.return)),l&64&&Rn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var s=rn;if(At(t,e),Dt(e),l&512&&(Fe||n===null||mn(n,n.return)),l&4){var c=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(l){case"title":c=s.getElementsByTagName("title")[0],(!c||c[qa]||c[ut]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(l),s.head.insertBefore(c,s.querySelector("head > title"))),ot(c,l,n),c[ut]=e,lt(c),l=c;break e;case"link":var f=Sm("link","href",s).get(l+(n.href||""));if(f){for(var p=0;p<f.length;p++)if(c=f[p],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(p,1);break t}}c=s.createElement(l),ot(c,l,n),s.head.appendChild(c);break;case"meta":if(f=Sm("meta","content",s).get(l+(n.content||""))){for(p=0;p<f.length;p++)if(c=f[p],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(p,1);break t}}c=s.createElement(l),ot(c,l,n),s.head.appendChild(c);break;default:throw Error(r(468,l))}c[ut]=e,lt(c),l=c}e.stateNode=l}else Em(s,e.type,e.stateNode);else e.stateNode=bm(s,l,e.memoizedProps);else c!==l?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,l===null?Em(s,e.type,e.stateNode):bm(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&ec(e,e.memoizedProps,n.memoizedProps)}break;case 27:At(t,e),Dt(e),l&512&&(Fe||n===null||mn(n,n.return)),n!==null&&l&4&&ec(e,e.memoizedProps,n.memoizedProps);break;case 5:if(At(t,e),Dt(e),l&512&&(Fe||n===null||mn(n,n.return)),e.flags&32){s=e.stateNode;try{Jl(s,"")}catch(ee){Me(e,e.return,ee)}}l&4&&e.stateNode!=null&&(s=e.memoizedProps,ec(e,s,n!==null?n.memoizedProps:s)),l&1024&&(lc=!0);break;case 6:if(At(t,e),Dt(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ee){Me(e,e.return,ee)}}break;case 3:if(Wu=null,s=rn,rn=Ju(t.containerInfo),At(t,e),rn=s,Dt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{ja(t.containerInfo)}catch(ee){Me(e,e.return,ee)}lc&&(lc=!1,Eh(e));break;case 4:l=rn,rn=Ju(e.stateNode.containerInfo),At(t,e),Dt(e),rn=l;break;case 12:At(t,e),Dt(e);break;case 31:At(t,e),Dt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,zu(e,l)));break;case 13:At(t,e),Dt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Bu=dt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,zu(e,l)));break;case 22:s=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,T=Rn,H=Fe;if(Rn=T||s,Fe=H||E,At(t,e),Fe=H,Rn=T,Dt(e),l&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||E||Rn||Fe||Bl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(c=E.stateNode,s)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{p=E.stateNode;var G=E.memoizedProps.style,R=G!=null&&G.hasOwnProperty("display")?G.display:null;p.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(ee){Me(E,E.return,ee)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=s?"":E.memoizedProps}catch(ee){Me(E,E.return,ee)}}}else if(t.tag===18){if(n===null){E=t;try{var B=E.stateNode;s?fm(B,!0):fm(E.stateNode,!1)}catch(ee){Me(E,E.return,ee)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,zu(e,n))));break;case 19:At(t,e),Dt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,zu(e,l)));break;case 30:break;case 21:break;default:At(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(hh(l)){n=l;break}l=l.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var s=n.stateNode,c=tc(e);Ru(e,c,s);break;case 5:var f=n.stateNode;n.flags&32&&(Jl(f,""),n.flags&=-33);var p=tc(e);Ru(e,p,f);break;case 3:case 4:var E=n.stateNode.containerInfo,T=tc(e);nc(e,T,E);break;default:throw Error(r(161))}}catch(H){Me(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Eh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Eh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Un(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ph(e,t.alternate,t),t=t.sibling}function Bl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:el(4,t,t.return),Bl(t);break;case 1:mn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&fh(t,t.return,n),Bl(t);break;case 27:Ei(t.stateNode);case 26:case 5:mn(t,t.return),Bl(t);break;case 22:t.memoizedState===null&&Bl(t);break;case 30:Bl(t);break;default:Bl(t)}e=e.sibling}}function Bn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,s=e,c=t,f=c.flags;switch(c.tag){case 0:case 11:case 15:Bn(s,c,n),di(4,c);break;case 1:if(Bn(s,c,n),l=c,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(T){Me(l,l.return,T)}if(l=c,s=l.updateQueue,s!==null){var p=l.stateNode;try{var E=s.shared.hiddenCallbacks;if(E!==null)for(s.shared.hiddenCallbacks=null,s=0;s<E.length;s++)Pf(E[s],p)}catch(T){Me(l,l.return,T)}}n&&f&64&&oh(c),hi(c,c.return);break;case 27:mh(c);case 26:case 5:Bn(s,c,n),n&&l===null&&f&4&&dh(c),hi(c,c.return);break;case 12:Bn(s,c,n);break;case 31:Bn(s,c,n),n&&f&4&&xh(s,c);break;case 13:Bn(s,c,n),n&&f&4&&bh(s,c);break;case 22:c.memoizedState===null&&Bn(s,c,n),hi(c,c.return);break;case 30:break;default:Bn(s,c,n)}t=t.sibling}}function ac(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Pa(n))}function ic(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pa(e))}function cn(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Nh(e,t,n,l),t=t.sibling}function Nh(e,t,n,l){var s=t.flags;switch(t.tag){case 0:case 11:case 15:cn(e,t,n,l),s&2048&&di(9,t);break;case 1:cn(e,t,n,l);break;case 3:cn(e,t,n,l),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pa(e)));break;case 12:if(s&2048){cn(e,t,n,l),e=t.stateNode;try{var c=t.memoizedProps,f=c.id,p=c.onPostCommit;typeof p=="function"&&p(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Me(t,t.return,E)}}else cn(e,t,n,l);break;case 31:cn(e,t,n,l);break;case 13:cn(e,t,n,l);break;case 23:break;case 22:c=t.stateNode,f=t.alternate,t.memoizedState!==null?c._visibility&2?cn(e,t,n,l):mi(e,t):c._visibility&2?cn(e,t,n,l):(c._visibility|=2,ma(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),s&2048&&ac(f,t);break;case 24:cn(e,t,n,l),s&2048&&ic(t.alternate,t);break;default:cn(e,t,n,l)}}function ma(e,t,n,l,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,f=t,p=n,E=l,T=f.flags;switch(f.tag){case 0:case 11:case 15:ma(c,f,p,E,s),di(8,f);break;case 23:break;case 22:var H=f.stateNode;f.memoizedState!==null?H._visibility&2?ma(c,f,p,E,s):mi(c,f):(H._visibility|=2,ma(c,f,p,E,s)),s&&T&2048&&ac(f.alternate,f);break;case 24:ma(c,f,p,E,s),s&&T&2048&&ic(f.alternate,f);break;default:ma(c,f,p,E,s)}t=t.sibling}}function mi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,s=l.flags;switch(l.tag){case 22:mi(n,l),s&2048&&ac(l.alternate,l);break;case 24:mi(n,l),s&2048&&ic(l.alternate,l);break;default:mi(n,l)}t=t.sibling}}var gi=8192;function ga(e,t,n){if(e.subtreeFlags&gi)for(e=e.child;e!==null;)wh(e,t,n),e=e.sibling}function wh(e,t,n){switch(e.tag){case 26:ga(e,t,n),e.flags&gi&&e.memoizedState!==null&&Gv(n,rn,e.memoizedState,e.memoizedProps);break;case 5:ga(e,t,n);break;case 3:case 4:var l=rn;rn=Ju(e.stateNode.containerInfo),ga(e,t,n),rn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=gi,gi=16777216,ga(e,t,n),gi=l):ga(e,t,n));break;default:ga(e,t,n)}}function jh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function pi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];at=l,Dh(l,e)}jh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ah(e),e=e.sibling}function Ah(e){switch(e.tag){case 0:case 11:case 15:pi(e),e.flags&2048&&el(9,e,e.return);break;case 3:pi(e);break;case 12:pi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Uu(e)):pi(e);break;default:pi(e)}}function Uu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];at=l,Dh(l,e)}jh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:el(8,t,t.return),Uu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Uu(t));break;default:Uu(t)}e=e.sibling}}function Dh(e,t){for(;at!==null;){var n=at;switch(n.tag){case 0:case 11:case 15:el(8,n,t);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:Pa(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,at=l;else e:for(n=e;at!==null;){l=at;var s=l.sibling,c=l.return;if(vh(l),l===n){at=null;break e}if(s!==null){s.return=c,at=s;break e}at=c}}}var lv={getCacheForType:function(e){var t=rt(Je),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return rt(Je).controller.signal}},av=typeof WeakMap=="function"?WeakMap:Map,Ce=0,Be=null,xe=null,Ee=0,Te=0,Lt=null,tl=!1,pa=!1,uc=!1,Ln=0,Ge=0,nl=0,Ll=0,sc=0,Ht=0,va=0,vi=null,Ct=null,rc=!1,Bu=0,Ch=0,Lu=1/0,Hu=null,ll=null,et=0,al=null,ya=null,Hn=0,cc=0,oc=null,_h=null,yi=0,fc=null;function kt(){return(Ce&2)!==0&&Ee!==0?Ee&-Ee:U.T!==null?vc():un()}function Oh(){if(Ht===0)if((Ee&536870912)===0||we){var e=Yl;Yl<<=1,(Yl&3932160)===0&&(Yl=262144),Ht=e}else Ht=536870912;return e=Ut.current,e!==null&&(e.flags|=32),Ht}function _t(e,t,n){(e===Be&&(Te===2||Te===9)||e.cancelPendingCommit!==null)&&(xa(e,0),il(e,Ee,Ht,!1)),Gt(e,n),((Ce&2)===0||e!==Be)&&(e===Be&&((Ce&2)===0&&(Ll|=n),Ge===4&&il(e,Ee,Ht,!1)),gn(e))}function Th(e,t,n){if((Ce&6)!==0)throw Error(r(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||bt(e,t),s=l?sv(e,t):hc(e,t,!0),c=l;do{if(s===0){pa&&!l&&il(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!iv(n)){s=hc(e,t,!1),c=!1;continue}if(s===2){if(c=t,e.errorRecoveryDisabledLanes&c)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var p=e;s=vi;var E=p.current.memoizedState.isDehydrated;if(E&&(xa(p,f).flags|=256),f=hc(p,f,!1),f!==2){if(uc&&!E){p.errorRecoveryDisabledLanes|=c,Ll|=c,s=4;break e}c=Ct,Ct=s,c!==null&&(Ct===null?Ct=c:Ct.push.apply(Ct,c))}s=f}if(c=!1,s!==2)continue}}if(s===1){xa(e,0),il(e,t,0,!0);break}e:{switch(l=e,c=s,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:il(l,t,Ht,!tl);break e;case 2:Ct=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(s=Bu+300-dt(),10<s)){if(il(l,t,Ht,!tl),nt(l,0,!0)!==0)break e;Hn=t,l.timeoutHandle=rm(Mh.bind(null,l,n,Ct,Hu,rc,t,Ht,Ll,va,tl,c,"Throttled",-0,0),s);break e}Mh(l,n,Ct,Hu,rc,t,Ht,Ll,va,tl,c,null,-0,0)}}break}while(!0);gn(e)}function Mh(e,t,n,l,s,c,f,p,E,T,H,G,R,B){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Nn},wh(t,c,G);var ee=(c&62914560)===c?Bu-dt():(c&4194048)===c?Ch-dt():0;if(ee=Xv(G,ee),ee!==null){Hn=c,e.cancelPendingCommit=ee(qh.bind(null,e,t,c,n,l,s,f,p,E,H,G,null,R,B)),il(e,c,f,!T);return}}qh(e,t,c,n,l,s,f,p,E)}function iv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var s=n[l],c=s.getSnapshot;s=s.value;try{if(!Rt(c(),s))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function il(e,t,n,l){t&=~sc,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var s=t;0<s;){var c=31-ht(s),f=1<<c;l[c]=-1,s&=~f}n!==0&&an(e,n,t)}function ku(){return(Ce&6)===0?(xi(0),!1):!0}function dc(){if(xe!==null){if(Te===0)var e=xe.return;else e=xe,Dn=Cl=null,Cr(e),ca=null,ti=0,e=xe;for(;e!==null;)ch(e.alternate,e),e=e.return;xe=null}}function xa(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,jv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Hn=0,dc(),Be=e,xe=n=jn(e.current,null),Ee=t,Te=0,Lt=null,tl=!1,pa=bt(e,t),uc=!1,va=Ht=sc=Ll=nl=Ge=0,Ct=vi=null,rc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var s=31-ht(l),c=1<<s;t|=e[s],l&=~c}return Ln=t,uu(),n}function Rh(e,t){ge=null,U.H=ci,t===ra||t===mu?(t=$f(),Te=3):t===pr?(t=$f(),Te=4):Te=t===Vr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Lt=t,xe===null&&(Ge=1,Cu(e,Jt(t,e.current)))}function zh(){var e=Ut.current;return e===null?!0:(Ee&4194048)===Ee?It===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===It:!1}function Uh(){var e=U.H;return U.H=ci,e===null?ci:e}function Bh(){var e=U.A;return U.A=lv,e}function qu(){Ge=4,tl||(Ee&4194048)!==Ee&&Ut.current!==null||(pa=!0),(nl&134217727)===0&&(Ll&134217727)===0||Be===null||il(Be,Ee,Ht,!1)}function hc(e,t,n){var l=Ce;Ce|=2;var s=Uh(),c=Bh();(Be!==e||Ee!==t)&&(Hu=null,xa(e,t)),t=!1;var f=Ge;e:do try{if(Te!==0&&xe!==null){var p=xe,E=Lt;switch(Te){case 8:dc(),f=6;break e;case 3:case 2:case 9:case 6:Ut.current===null&&(t=!0);var T=Te;if(Te=0,Lt=null,ba(e,p,E,T),n&&pa){f=0;break e}break;default:T=Te,Te=0,Lt=null,ba(e,p,E,T)}}uv(),f=Ge;break}catch(H){Rh(e,H)}while(!0);return t&&e.shellSuspendCounter++,Dn=Cl=null,Ce=l,U.H=s,U.A=c,xe===null&&(Be=null,Ee=0,uu()),f}function uv(){for(;xe!==null;)Lh(xe)}function sv(e,t){var n=Ce;Ce|=2;var l=Uh(),s=Bh();Be!==e||Ee!==t?(Hu=null,Lu=dt()+500,xa(e,t)):pa=bt(e,t);e:do try{if(Te!==0&&xe!==null){t=xe;var c=Lt;t:switch(Te){case 1:Te=0,Lt=null,ba(e,t,c,1);break;case 2:case 9:if(Zf(c)){Te=0,Lt=null,Hh(t);break}t=function(){Te!==2&&Te!==9||Be!==e||(Te=7),gn(e)},c.then(t,t);break e;case 3:Te=7;break e;case 4:Te=5;break e;case 7:Zf(c)?(Te=0,Lt=null,Hh(t)):(Te=0,Lt=null,ba(e,t,c,7));break;case 5:var f=null;switch(xe.tag){case 26:f=xe.memoizedState;case 5:case 27:var p=xe;if(f?Nm(f):p.stateNode.complete){Te=0,Lt=null;var E=p.sibling;if(E!==null)xe=E;else{var T=p.return;T!==null?(xe=T,Yu(T)):xe=null}break t}}Te=0,Lt=null,ba(e,t,c,5);break;case 6:Te=0,Lt=null,ba(e,t,c,6);break;case 8:dc(),Ge=6;break e;default:throw Error(r(462))}}rv();break}catch(H){Rh(e,H)}while(!0);return Dn=Cl=null,U.H=l,U.A=s,Ce=n,xe!==null?0:(Be=null,Ee=0,uu(),Ge)}function rv(){for(;xe!==null&&!kl();)Lh(xe)}function Lh(e){var t=sh(e.alternate,e,Ln);e.memoizedProps=e.pendingProps,t===null?Yu(e):xe=t}function Hh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=th(n,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=th(n,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:Cr(t);default:ch(n,t),t=xe=Bf(t,Ln),t=sh(n,t,Ln)}e.memoizedProps=e.pendingProps,t===null?Yu(e):xe=t}function ba(e,t,n,l){Dn=Cl=null,Cr(t),ca=null,ti=0;var s=t.return;try{if(W0(e,s,t,n,Ee)){Ge=1,Cu(e,Jt(n,e.current)),xe=null;return}}catch(c){if(s!==null)throw xe=s,c;Ge=1,Cu(e,Jt(n,e.current)),xe=null;return}t.flags&32768?(we||l===1?e=!0:pa||(Ee&536870912)!==0?e=!1:(tl=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ut.current,l!==null&&l.tag===13&&(l.flags|=16384))),kh(t,e)):Yu(t)}function Yu(e){var t=e;do{if((t.flags&32768)!==0){kh(t,tl);return}e=t.return;var n=P0(t.alternate,t,Ln);if(n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);Ge===0&&(Ge=5)}function kh(e,t){do{var n=ev(e.alternate,e);if(n!==null){n.flags&=32767,xe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=n}while(e!==null);Ge=6,xe=null}function qh(e,t,n,l,s,c,f,p,E){e.cancelPendingCommit=null;do Gu();while(et!==0);if((Ce&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=tr,Pe(e,n,c,f,p,E),e===Be&&(xe=Be=null,Ee=0),ya=t,al=e,Hn=n,cc=c,oc=s,_h=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,dv(ln,function(){return Qh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=U.T,U.T=null,s=Q.p,Q.p=2,f=Ce,Ce|=4;try{tv(e,t,n)}finally{Ce=f,Q.p=s,U.T=l}}et=1,Yh(),Gh(),Xh()}}function Yh(){if(et===1){et=0;var e=al,t=ya,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=U.T,U.T=null;var l=Q.p;Q.p=2;var s=Ce;Ce|=4;try{Sh(t,e);var c=jc,f=Df(e.containerInfo),p=c.focusedElem,E=c.selectionRange;if(f!==p&&p&&p.ownerDocument&&Af(p.ownerDocument.documentElement,p)){if(E!==null&&Ws(p)){var T=E.start,H=E.end;if(H===void 0&&(H=T),"selectionStart"in p)p.selectionStart=T,p.selectionEnd=Math.min(H,p.value.length);else{var G=p.ownerDocument||document,R=G&&G.defaultView||window;if(R.getSelection){var B=R.getSelection(),ee=p.textContent.length,re=Math.min(E.start,ee),Ue=E.end===void 0?re:Math.min(E.end,ee);!B.extend&&re>Ue&&(f=Ue,Ue=re,re=f);var _=jf(p,re),A=jf(p,Ue);if(_&&A&&(B.rangeCount!==1||B.anchorNode!==_.node||B.anchorOffset!==_.offset||B.focusNode!==A.node||B.focusOffset!==A.offset)){var O=G.createRange();O.setStart(_.node,_.offset),B.removeAllRanges(),re>Ue?(B.addRange(O),B.extend(A.node,A.offset)):(O.setEnd(A.node,A.offset),B.addRange(O))}}}}for(G=[],B=p;B=B.parentNode;)B.nodeType===1&&G.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<G.length;p++){var Y=G[p];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}es=!!wc,jc=wc=null}finally{Ce=s,Q.p=l,U.T=n}}e.current=t,et=2}}function Gh(){if(et===2){et=0;var e=al,t=ya,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=U.T,U.T=null;var l=Q.p;Q.p=2;var s=Ce;Ce|=4;try{ph(e,t.alternate,t)}finally{Ce=s,Q.p=l,U.T=n}}et=3}}function Xh(){if(et===4||et===3){et=0,Qi();var e=al,t=ya,n=Hn,l=_h;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,ya=al=null,Vh(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(ll=null),Sn(n),t=t.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(bl,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=U.T,s=Q.p,Q.p=2,U.T=null;try{for(var c=e.onRecoverableError,f=0;f<l.length;f++){var p=l[f];c(p.value,{componentStack:p.stack})}}finally{U.T=t,Q.p=s}}(Hn&3)!==0&&Gu(),gn(e),s=e.pendingLanes,(n&261930)!==0&&(s&42)!==0?e===fc?yi++:(yi=0,fc=e):yi=0,xi(0)}}function Vh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Pa(t)))}function Gu(){return Yh(),Gh(),Xh(),Qh()}function Qh(){if(et!==5)return!1;var e=al,t=cc;cc=0;var n=Sn(Hn),l=U.T,s=Q.p;try{Q.p=32>n?32:n,U.T=null,n=oc,oc=null;var c=al,f=Hn;if(et=0,ya=al=null,Hn=0,(Ce&6)!==0)throw Error(r(331));var p=Ce;if(Ce|=4,Ah(c.current),Nh(c,c.current,f,n),Ce=p,xi(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(bl,c)}catch{}return!0}finally{Q.p=s,U.T=l,Vh(e,t)}}function Kh(e,t,n){t=Jt(n,t),t=Xr(e.stateNode,t,2),e=Fn(e,t,2),e!==null&&(Gt(e,2),gn(e))}function Me(e,t,n){if(e.tag===3)Kh(e,e,n);else for(;t!==null;){if(t.tag===3){Kh(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ll===null||!ll.has(l))){e=Jt(n,e),n=Zd(2),l=Fn(t,n,2),l!==null&&(Jd(n,l,t,e),Gt(l,2),gn(l));break}}t=t.return}}function mc(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new av;var s=new Set;l.set(t,s)}else s=l.get(t),s===void 0&&(s=new Set,l.set(t,s));s.has(n)||(uc=!0,s.add(n),e=cv.bind(null,e,t,n),t.then(e,e))}function cv(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Be===e&&(Ee&n)===n&&(Ge===4||Ge===3&&(Ee&62914560)===Ee&&300>dt()-Bu?(Ce&2)===0&&xa(e,0):sc|=n,va===Ee&&(va=0)),gn(e)}function Zh(e,t){t===0&&(t=mt()),e=jl(e,t),e!==null&&(Gt(e,t),gn(e))}function ov(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zh(e,n)}function fv(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),Zh(e,n)}function dv(e,t){return qt(e,t)}var Xu=null,Sa=null,gc=!1,Vu=!1,pc=!1,ul=0;function gn(e){e!==Sa&&e.next===null&&(Sa===null?Xu=Sa=e:Sa=Sa.next=e),Vu=!0,gc||(gc=!0,mv())}function xi(e,t){if(!pc&&Vu){pc=!0;do for(var n=!1,l=Xu;l!==null;){if(e!==0){var s=l.pendingLanes;if(s===0)var c=0;else{var f=l.suspendedLanes,p=l.pingedLanes;c=(1<<31-ht(42|e)+1)-1,c&=s&~(f&~p),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Fh(l,c))}else c=Ee,c=nt(l,l===Be?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||bt(l,c)||(n=!0,Fh(l,c));l=l.next}while(n);pc=!1}}function hv(){Jh()}function Jh(){Vu=gc=!1;var e=0;ul!==0&&wv()&&(e=ul);for(var t=dt(),n=null,l=Xu;l!==null;){var s=l.next,c=$h(l,t);c===0?(l.next=null,n===null?Xu=s:n.next=s,s===null&&(Sa=n)):(n=l,(e!==0||(c&3)!==0)&&(Vu=!0)),l=s}et!==0&&et!==5||xi(e),ul!==0&&(ul=0)}function $h(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var f=31-ht(c),p=1<<f,E=s[f];E===-1?((p&n)===0||(p&l)!==0)&&(s[f]=St(p,t)):E<=t&&(e.expiredLanes|=p),c&=~p}if(t=Be,n=Ee,n=nt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Te===2||Te===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Gn(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||bt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Gn(l),Sn(n)){case 2:case 8:n=xn;break;case 32:n=ln;break;case 268435456:n=ka;break;default:n=ln}return l=Wh.bind(null,e),n=qt(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Gn(l),e.callbackPriority=2,e.callbackNode=null,2}function Wh(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Gu()&&e.callbackNode!==n)return null;var l=Ee;return l=nt(e,e===Be?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Th(e,l,t),$h(e,dt()),e.callbackNode!=null&&e.callbackNode===n?Wh.bind(null,e):null)}function Fh(e,t){if(Gu())return null;Th(e,t,!0)}function mv(){Av(function(){(Ce&6)!==0?qt(Ki,hv):Jh()})}function vc(){if(ul===0){var e=ua;e===0&&(e=ql,ql<<=1,(ql&261888)===0&&(ql=256)),ul=e}return ul}function Ih(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ii(""+e)}function Ph(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function gv(e,t,n,l,s){if(t==="submit"&&n&&n.stateNode===s){var c=Ih((s[Nt]||null).action),f=l.submitter;f&&(t=(t=f[Nt]||null)?Ih(t.formAction):f.getAttribute("formAction"),t!==null&&(c=t,f=null));var p=new nu("action","action",null,l,s);e.push({event:p,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ul!==0){var E=f?Ph(s,f):new FormData(s);Lr(n,{pending:!0,data:E,method:s.method,action:c},null,E)}}else typeof c=="function"&&(p.preventDefault(),E=f?Ph(s,f):new FormData(s),Lr(n,{pending:!0,data:E,method:s.method,action:c},c,E))},currentTarget:s}]})}}for(var yc=0;yc<er.length;yc++){var xc=er[yc],pv=xc.toLowerCase(),vv=xc[0].toUpperCase()+xc.slice(1);sn(pv,"on"+vv)}sn(Of,"onAnimationEnd"),sn(Tf,"onAnimationIteration"),sn(Mf,"onAnimationStart"),sn("dblclick","onDoubleClick"),sn("focusin","onFocus"),sn("focusout","onBlur"),sn(R0,"onTransitionRun"),sn(z0,"onTransitionStart"),sn(U0,"onTransitionCancel"),sn(Rf,"onTransitionEnd"),Kl("onMouseEnter",["mouseout","mouseover"]),Kl("onMouseLeave",["mouseout","mouseover"]),Kl("onPointerEnter",["pointerout","pointerover"]),Kl("onPointerLeave",["pointerout","pointerover"]),Sl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Sl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Sl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Sl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Sl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Sl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bi="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(" "),yv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bi));function em(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],s=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var f=l.length-1;0<=f;f--){var p=l[f],E=p.instance,T=p.currentTarget;if(p=p.listener,E!==c&&s.isPropagationStopped())break e;c=p,s.currentTarget=T;try{c(s)}catch(H){iu(H)}s.currentTarget=null,c=E}else for(f=0;f<l.length;f++){if(p=l[f],E=p.instance,T=p.currentTarget,p=p.listener,E!==c&&s.isPropagationStopped())break e;c=p,s.currentTarget=T;try{c(s)}catch(H){iu(H)}s.currentTarget=null,c=E}}}}function be(e,t){var n=t[Ms];n===void 0&&(n=t[Ms]=new Set);var l=e+"__bubble";n.has(l)||(tm(t,e,2,!1),n.add(l))}function bc(e,t,n){var l=0;t&&(l|=4),tm(n,e,l,t)}var Qu="_reactListening"+Math.random().toString(36).slice(2);function Sc(e){if(!e[Qu]){e[Qu]=!0,Zo.forEach(function(n){n!=="selectionchange"&&(yv.has(n)||bc(n,!1,e),bc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qu]||(t[Qu]=!0,bc("selectionchange",!1,t))}}function tm(e,t,n,l){switch(Om(t)){case 2:var s=Kv;break;case 8:s=Zv;break;default:s=Bc}n=s.bind(null,t,n,e),s=void 0,!Ys||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),l?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Ec(e,t,n,l,s){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var p=l.stateNode.containerInfo;if(p===s)break;if(f===4)for(f=l.return;f!==null;){var E=f.tag;if((E===3||E===4)&&f.stateNode.containerInfo===s)return;f=f.return}for(;p!==null;){if(f=Xl(p),f===null)return;if(E=f.tag,E===5||E===6||E===26||E===27){l=c=f;continue e}p=p.parentNode}}l=l.return}uf(function(){var T=c,H=ks(n),G=[];e:{var R=zf.get(e);if(R!==void 0){var B=nu,ee=e;switch(e){case"keypress":if(eu(n)===0)break e;case"keydown":case"keyup":B=f0;break;case"focusin":ee="focus",B=Qs;break;case"focusout":ee="blur",B=Qs;break;case"beforeblur":case"afterblur":B=Qs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=cf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=Pp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=m0;break;case Of:case Tf:case Mf:B=n0;break;case Rf:B=p0;break;case"scroll":case"scrollend":B=Fp;break;case"wheel":B=y0;break;case"copy":case"cut":case"paste":B=a0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=ff;break;case"toggle":case"beforetoggle":B=b0}var re=(t&4)!==0,Ue=!re&&(e==="scroll"||e==="scrollend"),_=re?R!==null?R+"Capture":null:R;re=[];for(var A=T,O;A!==null;){var Y=A;if(O=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||O===null||_===null||(Y=Ga(A,_),Y!=null&&re.push(Si(A,Y,O))),Ue)break;A=A.return}0<re.length&&(R=new B(R,ee,null,n,H),G.push({event:R,listeners:re}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",R&&n!==Hs&&(ee=n.relatedTarget||n.fromElement)&&(Xl(ee)||ee[Gl]))break e;if((B||R)&&(R=H.window===H?H:(R=H.ownerDocument)?R.defaultView||R.parentWindow:window,B?(ee=n.relatedTarget||n.toElement,B=T,ee=ee?Xl(ee):null,ee!==null&&(Ue=d(ee),re=ee.tag,ee!==Ue||re!==5&&re!==27&&re!==6)&&(ee=null)):(B=null,ee=T),B!==ee)){if(re=cf,Y="onMouseLeave",_="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(re=ff,Y="onPointerLeave",_="onPointerEnter",A="pointer"),Ue=B==null?R:Ya(B),O=ee==null?R:Ya(ee),R=new re(Y,A+"leave",B,n,H),R.target=Ue,R.relatedTarget=O,Y=null,Xl(H)===T&&(re=new re(_,A+"enter",ee,n,H),re.target=O,re.relatedTarget=Ue,Y=re),Ue=Y,B&&ee)t:{for(re=xv,_=B,A=ee,O=0,Y=_;Y;Y=re(Y))O++;Y=0;for(var ue=A;ue;ue=re(ue))Y++;for(;0<O-Y;)_=re(_),O--;for(;0<Y-O;)A=re(A),Y--;for(;O--;){if(_===A||A!==null&&_===A.alternate){re=_;break t}_=re(_),A=re(A)}re=null}else re=null;B!==null&&nm(G,R,B,re,!1),ee!==null&&Ue!==null&&nm(G,Ue,ee,re,!0)}}e:{if(R=T?Ya(T):window,B=R.nodeName&&R.nodeName.toLowerCase(),B==="select"||B==="input"&&R.type==="file")var Ae=xf;else if(vf(R))if(bf)Ae=O0;else{Ae=C0;var le=D0}else B=R.nodeName,!B||B.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?T&&Ls(T.elementType)&&(Ae=xf):Ae=_0;if(Ae&&(Ae=Ae(e,T))){yf(G,Ae,n,H);break e}le&&le(e,R,T),e==="focusout"&&T&&R.type==="number"&&T.memoizedProps.value!=null&&Bs(R,"number",R.value)}switch(le=T?Ya(T):window,e){case"focusin":(vf(le)||le.contentEditable==="true")&&(Il=le,Fs=T,Wa=null);break;case"focusout":Wa=Fs=Il=null;break;case"mousedown":Is=!0;break;case"contextmenu":case"mouseup":case"dragend":Is=!1,Cf(G,n,H);break;case"selectionchange":if(M0)break;case"keydown":case"keyup":Cf(G,n,H)}var pe;if(Zs)e:{switch(e){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else Fl?gf(e,n)&&(Ne="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ne="onCompositionStart");Ne&&(df&&n.locale!=="ko"&&(Fl||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&Fl&&(pe=sf()):(Vn=H,Gs="value"in Vn?Vn.value:Vn.textContent,Fl=!0)),le=Ku(T,Ne),0<le.length&&(Ne=new of(Ne,e,null,n,H),G.push({event:Ne,listeners:le}),pe?Ne.data=pe:(pe=pf(n),pe!==null&&(Ne.data=pe)))),(pe=E0?N0(e,n):w0(e,n))&&(Ne=Ku(T,"onBeforeInput"),0<Ne.length&&(le=new of("onBeforeInput","beforeinput",null,n,H),G.push({event:le,listeners:Ne}),le.data=pe)),gv(G,e,T,n,H)}em(G,t)})}function Si(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ku(e,t){for(var n=t+"Capture",l=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=Ga(e,n),s!=null&&l.unshift(Si(e,s,c)),s=Ga(e,t),s!=null&&l.push(Si(e,s,c))),e.tag===3)return l;e=e.return}return[]}function xv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function nm(e,t,n,l,s){for(var c=t._reactName,f=[];n!==null&&n!==l;){var p=n,E=p.alternate,T=p.stateNode;if(p=p.tag,E!==null&&E===l)break;p!==5&&p!==26&&p!==27||T===null||(E=T,s?(T=Ga(n,c),T!=null&&f.unshift(Si(n,T,E))):s||(T=Ga(n,c),T!=null&&f.push(Si(n,T,E)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}var bv=/\r\n?/g,Sv=/\u0000|\uFFFD/g;function lm(e){return(typeof e=="string"?e:""+e).replace(bv,`
|
|
49
|
+
`).replace(Sv,"")}function am(e,t){return t=lm(t),lm(e)===t}function ze(e,t,n,l,s,c){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Jl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Jl(e,""+l);break;case"className":Wi(e,"class",l);break;case"tabIndex":Wi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Wi(e,n,l);break;case"style":lf(e,l,c);break;case"data":if(t!=="object"){Wi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Ii(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.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 c=="function"&&(n==="formAction"?(t!=="input"&&ze(e,t,"name",s.name,s,null),ze(e,t,"formEncType",s.formEncType,s,null),ze(e,t,"formMethod",s.formMethod,s,null),ze(e,t,"formTarget",s.formTarget,s,null)):(ze(e,t,"encType",s.encType,s,null),ze(e,t,"method",s.method,s,null),ze(e,t,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Ii(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=Nn);break;case"onScroll":l!=null&&be("scroll",e);break;case"onScrollEnd":l!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.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"){e.removeAttribute("xlink:href");break}n=Ii(""+l),e.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"?e.setAttribute(n,""+l):e.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"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":be("beforetoggle",e),be("toggle",e),$i(e,"popover",l);break;case"xlinkActuate":En(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":En(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":En(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":En(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":En(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":En(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":En(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":En(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":En(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":$i(e,"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=$p.get(n)||n,$i(e,n,l))}}function Nc(e,t,n,l,s,c){switch(n){case"style":lf(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Jl(e,l):(typeof l=="number"||typeof l=="bigint")&&Jl(e,""+l);break;case"onScroll":l!=null&&be("scroll",e);break;case"onScrollEnd":l!=null&&be("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Nn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Jo.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),c=e[Nt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof l=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,s);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):$i(e,n,l)}}}function ot(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var l=!1,s=!1,c;for(c in n)if(n.hasOwnProperty(c)){var f=n[c];if(f!=null)switch(c){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ze(e,t,c,f,n,null)}}s&&ze(e,t,"srcSet",n.srcSet,n,null),l&&ze(e,t,"src",n.src,n,null);return;case"input":be("invalid",e);var p=c=f=s=null,E=null,T=null;for(l in n)if(n.hasOwnProperty(l)){var H=n[l];if(H!=null)switch(l){case"name":s=H;break;case"type":f=H;break;case"checked":E=H;break;case"defaultChecked":T=H;break;case"value":c=H;break;case"defaultValue":p=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,t));break;default:ze(e,t,l,H,n,null)}}Po(e,c,p,E,T,f,s,!1);return;case"select":be("invalid",e),l=f=c=null;for(s in n)if(n.hasOwnProperty(s)&&(p=n[s],p!=null))switch(s){case"value":c=p;break;case"defaultValue":f=p;break;case"multiple":l=p;default:ze(e,t,s,p,n,null)}t=c,n=f,e.multiple=!!l,t!=null?Zl(e,!!l,t,!1):n!=null&&Zl(e,!!l,n,!0);return;case"textarea":be("invalid",e),c=s=l=null;for(f in n)if(n.hasOwnProperty(f)&&(p=n[f],p!=null))switch(f){case"value":l=p;break;case"defaultValue":s=p;break;case"children":c=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(91));break;default:ze(e,t,f,p,n,null)}tf(e,l,s,c);return;case"option":for(E in n)if(n.hasOwnProperty(E)&&(l=n[E],l!=null))switch(E){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:ze(e,t,E,l,n,null)}return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(l=0;l<bi.length;l++)be(bi[l],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in n)if(n.hasOwnProperty(T)&&(l=n[T],l!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ze(e,t,T,l,n,null)}return;default:if(Ls(t)){for(H in n)n.hasOwnProperty(H)&&(l=n[H],l!==void 0&&Nc(e,t,H,l,n,void 0));return}}for(p in n)n.hasOwnProperty(p)&&(l=n[p],l!=null&&ze(e,t,p,l,n,null))}function Ev(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,c=null,f=null,p=null,E=null,T=null,H=null;for(B in n){var G=n[B];if(n.hasOwnProperty(B)&&G!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":E=G;default:l.hasOwnProperty(B)||ze(e,t,B,null,l,G)}}for(var R in l){var B=l[R];if(G=n[R],l.hasOwnProperty(R)&&(B!=null||G!=null))switch(R){case"type":c=B;break;case"name":s=B;break;case"checked":T=B;break;case"defaultChecked":H=B;break;case"value":f=B;break;case"defaultValue":p=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,t));break;default:B!==G&&ze(e,t,R,B,l,G)}}Us(e,f,p,E,T,H,c,s);return;case"select":B=f=p=R=null;for(c in n)if(E=n[c],n.hasOwnProperty(c)&&E!=null)switch(c){case"value":break;case"multiple":B=E;default:l.hasOwnProperty(c)||ze(e,t,c,null,l,E)}for(s in l)if(c=l[s],E=n[s],l.hasOwnProperty(s)&&(c!=null||E!=null))switch(s){case"value":R=c;break;case"defaultValue":p=c;break;case"multiple":f=c;default:c!==E&&ze(e,t,s,c,l,E)}t=p,n=f,l=B,R!=null?Zl(e,!!n,R,!1):!!l!=!!n&&(t!=null?Zl(e,!!n,t,!0):Zl(e,!!n,n?[]:"",!1));return;case"textarea":B=R=null;for(p in n)if(s=n[p],n.hasOwnProperty(p)&&s!=null&&!l.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:ze(e,t,p,null,l,s)}for(f in l)if(s=l[f],c=n[f],l.hasOwnProperty(f)&&(s!=null||c!=null))switch(f){case"value":R=s;break;case"defaultValue":B=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(r(91));break;default:s!==c&&ze(e,t,f,s,l,c)}ef(e,R,B);return;case"option":for(var ee in n)if(R=n[ee],n.hasOwnProperty(ee)&&R!=null&&!l.hasOwnProperty(ee))switch(ee){case"selected":e.selected=!1;break;default:ze(e,t,ee,null,l,R)}for(E in l)if(R=l[E],B=n[E],l.hasOwnProperty(E)&&R!==B&&(R!=null||B!=null))switch(E){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:ze(e,t,E,R,l,B)}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 re in n)R=n[re],n.hasOwnProperty(re)&&R!=null&&!l.hasOwnProperty(re)&&ze(e,t,re,null,l,R);for(T in l)if(R=l[T],B=n[T],l.hasOwnProperty(T)&&R!==B&&(R!=null||B!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(137,t));break;default:ze(e,t,T,R,l,B)}return;default:if(Ls(t)){for(var Ue in n)R=n[Ue],n.hasOwnProperty(Ue)&&R!==void 0&&!l.hasOwnProperty(Ue)&&Nc(e,t,Ue,void 0,l,R);for(H in l)R=l[H],B=n[H],!l.hasOwnProperty(H)||R===B||R===void 0&&B===void 0||Nc(e,t,H,R,l,B);return}}for(var _ in n)R=n[_],n.hasOwnProperty(_)&&R!=null&&!l.hasOwnProperty(_)&&ze(e,t,_,null,l,R);for(G in l)R=l[G],B=n[G],!l.hasOwnProperty(G)||R===B||R==null&&B==null||ze(e,t,G,R,l,B)}function im(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Nv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var s=n[l],c=s.transferSize,f=s.initiatorType,p=s.duration;if(c&&p&&im(f)){for(f=0,p=s.responseEnd,l+=1;l<n.length;l++){var E=n[l],T=E.startTime;if(T>p)break;var H=E.transferSize,G=E.initiatorType;H&&im(G)&&(E=E.responseEnd,f+=H*(E<p?1:(p-T)/(E-T)))}if(--l,t+=8*(c+f)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var wc=null,jc=null;function Zu(e){return e.nodeType===9?e:e.ownerDocument}function um(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ac(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Dc=null;function wv(){var e=window.event;return e&&e.type==="popstate"?e===Dc?!1:(Dc=e,!0):(Dc=null,!1)}var rm=typeof setTimeout=="function"?setTimeout:void 0,jv=typeof clearTimeout=="function"?clearTimeout:void 0,cm=typeof Promise=="function"?Promise:void 0,Av=typeof queueMicrotask=="function"?queueMicrotask:typeof cm<"u"?function(e){return cm.resolve(null).then(e).catch(Dv)}:rm;function Dv(e){setTimeout(function(){throw e})}function sl(e){return e==="head"}function om(e,t){var n=t,l=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(s),ja(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Ei(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ei(n);for(var c=n.firstChild;c;){var f=c.nextSibling,p=c.nodeName;c[qa]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&Ei(e.ownerDocument.body);n=s}while(n);ja(t)}function fm(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Cc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Cc(n),Rs(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Cv(e,t,n,l){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[qa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Pt(e.nextSibling),e===null)break}return null}function _v(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Pt(e.nextSibling),e===null))return null;return e}function dm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Pt(e.nextSibling),e===null))return null;return e}function _c(e){return e.data==="$?"||e.data==="$~"}function Oc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Ov(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Pt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Tc=null;function hm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Pt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function mm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function gm(e,t,n){switch(t=Zu(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Ei(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Rs(e)}var en=new Map,pm=new Set;function Ju(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var kn=Q.d;Q.d={f:Tv,r:Mv,D:Rv,C:zv,L:Uv,m:Bv,X:Hv,S:Lv,M:kv};function Tv(){var e=kn.f(),t=ku();return e||t}function Mv(e){var t=Vl(e);t!==null&&t.tag===5&&t.type==="form"?Rd(t):kn.r(e)}var Ea=typeof document>"u"?null:document;function vm(e,t,n){var l=Ea;if(l&&typeof t=="string"&&t){var s=Kt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),pm.has(s)||(pm.add(s),e={rel:e,crossOrigin:n,href:t},l.querySelector(s)===null&&(t=l.createElement("link"),ot(t,"link",e),lt(t),l.head.appendChild(t)))}}function Rv(e){kn.D(e),vm("dns-prefetch",e,null)}function zv(e,t){kn.C(e,t),vm("preconnect",e,t)}function Uv(e,t,n){kn.L(e,t,n);var l=Ea;if(l&&e&&t){var s='link[rel="preload"][as="'+Kt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Kt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Kt(n.imageSizes)+'"]')):s+='[href="'+Kt(e)+'"]';var c=s;switch(t){case"style":c=Na(e);break;case"script":c=wa(e)}en.has(c)||(e=x({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),en.set(c,e),l.querySelector(s)!==null||t==="style"&&l.querySelector(Ni(c))||t==="script"&&l.querySelector(wi(c))||(t=l.createElement("link"),ot(t,"link",e),lt(t),l.head.appendChild(t)))}}function Bv(e,t){kn.m(e,t);var n=Ea;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Kt(l)+'"][href="'+Kt(e)+'"]',c=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=wa(e)}if(!en.has(c)&&(e=x({rel:"modulepreload",href:e},t),en.set(c,e),n.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(wi(c)))return}l=n.createElement("link"),ot(l,"link",e),lt(l),n.head.appendChild(l)}}}function Lv(e,t,n){kn.S(e,t,n);var l=Ea;if(l&&e){var s=Ql(l).hoistableStyles,c=Na(e);t=t||"default";var f=s.get(c);if(!f){var p={loading:0,preload:null};if(f=l.querySelector(Ni(c)))p.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},n),(n=en.get(c))&&Mc(e,n);var E=f=l.createElement("link");lt(E),ot(E,"link",e),E._p=new Promise(function(T,H){E.onload=T,E.onerror=H}),E.addEventListener("load",function(){p.loading|=1}),E.addEventListener("error",function(){p.loading|=2}),p.loading|=4,$u(f,t,l)}f={type:"stylesheet",instance:f,count:1,state:p},s.set(c,f)}}}function Hv(e,t){kn.X(e,t);var n=Ea;if(n&&e){var l=Ql(n).hoistableScripts,s=wa(e),c=l.get(s);c||(c=n.querySelector(wi(s)),c||(e=x({src:e,async:!0},t),(t=en.get(s))&&Rc(e,t),c=n.createElement("script"),lt(c),ot(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function kv(e,t){kn.M(e,t);var n=Ea;if(n&&e){var l=Ql(n).hoistableScripts,s=wa(e),c=l.get(s);c||(c=n.querySelector(wi(s)),c||(e=x({src:e,async:!0,type:"module"},t),(t=en.get(s))&&Rc(e,t),c=n.createElement("script"),lt(c),ot(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function ym(e,t,n,l){var s=(s=ne.current)?Ju(s):null;if(!s)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Na(n.href),n=Ql(s).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Na(n.href);var c=Ql(s).hoistableStyles,f=c.get(e);if(f||(s=s.ownerDocument||s,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,f),(c=s.querySelector(Ni(e)))&&!c._p&&(f.instance=c,f.state.loading=5),en.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},en.set(e,n),c||qv(s,e,n,f.state))),t&&l===null)throw Error(r(528,""));return f}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wa(n),n=Ql(s).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Na(e){return'href="'+Kt(e)+'"'}function Ni(e){return'link[rel="stylesheet"]['+e+"]"}function xm(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function qv(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ot(t,"link",n),lt(t),e.head.appendChild(t))}function wa(e){return'[src="'+Kt(e)+'"]'}function wi(e){return"script[async]"+e}function bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Kt(n.href)+'"]');if(l)return t.instance=l,lt(l),l;var s=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),lt(l),ot(l,"style",s),$u(l,n.precedence,e),t.instance=l;case"stylesheet":s=Na(n.href);var c=e.querySelector(Ni(s));if(c)return t.state.loading|=4,t.instance=c,lt(c),c;l=xm(n),(s=en.get(s))&&Mc(l,s),c=(e.ownerDocument||e).createElement("link"),lt(c);var f=c;return f._p=new Promise(function(p,E){f.onload=p,f.onerror=E}),ot(c,"link",l),t.state.loading|=4,$u(c,n.precedence,e),t.instance=c;case"script":return c=wa(n.src),(s=e.querySelector(wi(c)))?(t.instance=s,lt(s),s):(l=n,(s=en.get(c))&&(l=x({},n),Rc(l,s)),e=e.ownerDocument||e,s=e.createElement("script"),lt(s),ot(s,"link",l),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,$u(l,n.precedence,e));return t.instance}function $u(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,c=s,f=0;f<l.length;f++){var p=l[f];if(p.dataset.precedence===t)c=p;else if(c!==s)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Mc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Rc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Wu=null;function Sm(e,t,n){if(Wu===null){var l=new Map,s=Wu=new Map;s.set(n,l)}else s=Wu,l=s.get(n),l||(l=new Map,s.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var c=n[s];if(!(c[qa]||c[ut]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(t)||"";f=e+f;var p=l.get(f);p?p.push(c):l.set(f,[c])}}return l}function Em(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Yv(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Nm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Gv(e,t,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 s=Na(l.href),c=t.querySelector(Ni(s));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Fu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,lt(c);return}c=t.ownerDocument||t,l=xm(l),(s=en.get(s))&&Mc(l,s),c=c.createElement("link"),lt(c);var f=c;f._p=new Promise(function(p,E){f.onload=p,f.onerror=E}),ot(c,"link",l),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Fu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var zc=0;function Xv(e,t){return e.stylesheets&&e.count===0&&Pu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&Pu(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&zc===0&&(zc=62500*Nv());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Pu(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>zc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function Fu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Pu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Iu=null;function Pu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Iu=new Map,t.forEach(Vv,e),Iu=null,Fu.call(e))}function Vv(e,t){if(!(t.state.loading&4)){var n=Iu.get(e);if(n)var l=n.get(null);else{n=new Map,Iu.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var f=s[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),l=f)}l&&n.set(null,l)}s=t.instance,f=s.getAttribute("data-precedence"),c=n.get(f)||l,c===l&&n.set(null,s),n.set(f,s),this.count++,l=Fu.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var ji={$$typeof:z,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function Qv(e,t,n,l,s,c,f,p,E){this.tag=1,this.containerInfo=e,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=Et(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Et(0),this.hiddenUpdates=Et(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function wm(e,t,n,l,s,c,f,p,E,T,H,G){return e=new Qv(e,t,n,f,E,T,H,G,p),t=1,c===!0&&(t|=24),c=zt(3,null,null,t),e.current=c,c.stateNode=e,t=hr(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:n,cache:t},vr(c),e}function jm(e){return e?(e=ta,e):ta}function Am(e,t,n,l,s,c){s=jm(s),l.context===null?l.context=s:l.pendingContext=s,l=Wn(t),l.payload={element:n},c=c===void 0?null:c,c!==null&&(l.callback=c),n=Fn(e,l,t),n!==null&&(_t(n,e,t),li(n,e,t))}function Dm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Uc(e,t){Dm(e,t),(e=e.alternate)&&Dm(e,t)}function Cm(e){if(e.tag===13||e.tag===31){var t=jl(e,67108864);t!==null&&_t(t,e,67108864),Uc(e,67108864)}}function _m(e){if(e.tag===13||e.tag===31){var t=kt();t=bn(t);var n=jl(e,t);n!==null&&_t(n,e,t),Uc(e,t)}}var es=!0;function Kv(e,t,n,l){var s=U.T;U.T=null;var c=Q.p;try{Q.p=2,Bc(e,t,n,l)}finally{Q.p=c,U.T=s}}function Zv(e,t,n,l){var s=U.T;U.T=null;var c=Q.p;try{Q.p=8,Bc(e,t,n,l)}finally{Q.p=c,U.T=s}}function Bc(e,t,n,l){if(es){var s=Lc(l);if(s===null)Ec(e,t,l,ts,n),Tm(e,l);else if($v(s,e,t,n,l))l.stopPropagation();else if(Tm(e,l),t&4&&-1<Jv.indexOf(e)){for(;s!==null;){var c=Vl(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=Ve(c.pendingLanes);if(f!==0){var p=c;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var E=1<<31-ht(f);p.entanglements[1]|=E,f&=~E}gn(c),(Ce&6)===0&&(Lu=dt()+500,xi(0))}}break;case 31:case 13:p=jl(c,2),p!==null&&_t(p,c,2),ku(),Uc(c,2)}if(c=Lc(l),c===null&&Ec(e,t,l,ts,n),c===s)break;s=c}s!==null&&l.stopPropagation()}else Ec(e,t,l,null,n)}}function Lc(e){return e=ks(e),Hc(e)}var ts=null;function Hc(e){if(ts=null,e=Xl(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=m(t),e!==null)return e;e=null}else if(n===31){if(e=v(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ts=e,null}function Om(e){switch(e){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(_s()){case Ki:return 2;case xn:return 8;case ln:case xl:return 32;case ka:return 268435456;default:return 32}default:return 32}}var kc=!1,rl=null,cl=null,ol=null,Ai=new Map,Di=new Map,fl=[],Jv="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 Tm(e,t){switch(e){case"focusin":case"focusout":rl=null;break;case"dragenter":case"dragleave":cl=null;break;case"mouseover":case"mouseout":ol=null;break;case"pointerover":case"pointerout":Ai.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Di.delete(t.pointerId)}}function Ci(e,t,n,l,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:c,targetContainers:[s]},t!==null&&(t=Vl(t),t!==null&&Cm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function $v(e,t,n,l,s){switch(t){case"focusin":return rl=Ci(rl,e,t,n,l,s),!0;case"dragenter":return cl=Ci(cl,e,t,n,l,s),!0;case"mouseover":return ol=Ci(ol,e,t,n,l,s),!0;case"pointerover":var c=s.pointerId;return Ai.set(c,Ci(Ai.get(c)||null,e,t,n,l,s)),!0;case"gotpointercapture":return c=s.pointerId,Di.set(c,Ci(Di.get(c)||null,e,t,n,l,s)),!0}return!1}function Mm(e){var t=Xl(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=m(n),t!==null){e.blockedOn=t,Xn(e.priority,function(){_m(n)});return}}else if(t===31){if(t=v(n),t!==null){e.blockedOn=t,Xn(e.priority,function(){_m(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ns(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Lc(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Hs=l,n.target.dispatchEvent(l),Hs=null}else return t=Vl(n),t!==null&&Cm(t),e.blockedOn=n,!1;t.shift()}return!0}function Rm(e,t,n){ns(e)&&n.delete(t)}function Wv(){kc=!1,rl!==null&&ns(rl)&&(rl=null),cl!==null&&ns(cl)&&(cl=null),ol!==null&&ns(ol)&&(ol=null),Ai.forEach(Rm),Di.forEach(Rm)}function ls(e,t){e.blockedOn===t&&(e.blockedOn=null,kc||(kc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Wv)))}var as=null;function zm(e){as!==e&&(as=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){as===e&&(as=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],s=e[t+2];if(typeof l!="function"){if(Hc(l||n)===null)continue;break}var c=Vl(n);c!==null&&(e.splice(t,3),t-=3,Lr(c,{pending:!0,data:s,method:n.method,action:l},l,s))}}))}function ja(e){function t(E){return ls(E,e)}rl!==null&&ls(rl,e),cl!==null&&ls(cl,e),ol!==null&&ls(ol,e),Ai.forEach(t),Di.forEach(t);for(var n=0;n<fl.length;n++){var l=fl[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<fl.length&&(n=fl[0],n.blockedOn===null);)Mm(n),n.blockedOn===null&&fl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var s=n[l],c=n[l+1],f=s[Nt]||null;if(typeof c=="function")f||zm(n);else if(f){var p=null;if(c&&c.hasAttribute("formAction")){if(s=c,f=c[Nt]||null)p=f.formAction;else if(Hc(s)!==null)continue}else p=f.action;typeof p=="function"?n[l+1]=p:(n.splice(l,3),l-=3),zm(n)}}}function Um(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return s=f})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function qc(e){this._internalRoot=e}is.prototype.render=qc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,l=kt();Am(n,l,e,t,null,null)},is.prototype.unmount=qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Am(e.current,2,null,e,null,null),ku(),t[Gl]=null}};function is(e){this._internalRoot=e}is.prototype.unstable_scheduleHydration=function(e){if(e){var t=un();e={blockedOn:null,target:e,priority:t};for(var n=0;n<fl.length&&t!==0&&t<fl[n].priority;n++);fl.splice(n,0,e),n===0&&Mm(e)}};var Bm=i.version;if(Bm!=="19.2.7")throw Error(r(527,Bm,"19.2.7"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=g(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Fv={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var us=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!us.isDisabled&&us.supportsFiber)try{bl=us.inject(Fv),pt=us}catch{}}return Oi.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,l="",s=Xd,c=Vd,f=Qd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=wm(e,1,!1,null,null,n,l,null,s,c,f,Um),e[Gl]=t.current,Sc(e),new qc(t)},Oi.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var l=!1,s="",c=Xd,f=Vd,p=Qd,E=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(p=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=wm(e,1,!0,t,n??null,l,s,E,c,f,p,Um),t.context=jm(null),n=t.current,l=kt(),l=bn(l),s=Wn(l),s.callback=null,Fn(n,s,l),n=l,t.current.lanes=n,Gt(t,n),gn(t),e[Gl]=t.current,Sc(e),new is(t)},Oi.version="19.2.7",Oi}var Km;function sy(){if(Km)return Xc.exports;Km=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Xc.exports=uy(),Xc.exports}var ry=sy();function cy(a){const i=a.getFullYear(),u=String(a.getMonth()+1).padStart(2,"0"),r=String(a.getDate()).padStart(2,"0");return`${i}-${u}-${r}`}function Bg(a,i){const u=[];for(let r=i-1;r>=0;r--)u.push(cy(new Date(a.getTime()-r*24*60*60*1e3)));return u}function oy(a,i){return Math.max(0,Math.floor((i.getTime()-new Date(a).getTime())/(1440*60*1e3)))}function fy(a,i,u,r){const o=Bg(r,u),d=new Map(o.map((v,y)=>[v,y])),m=new Map;for(const v of i){const y=d.get(v.date);if(y===void 0)continue;let g=m.get(v.repo);g||(g=new Array(u).fill(0),m.set(v.repo,g)),g[y]+=v.commits}return a.map(v=>{const y=m.get(v.nameWithOwner)??new Array(u).fill(0);return{repo:v,totalCommits:y.reduce((g,b)=>g+b,0),daysSincePush:oy(v.pushedAt,r),dailyCommits:y}})}function Zm(a,i){return a==="dashboard"?i():[]}function Zc(a){return a==="dashboard"||a==="coach"}function Jm(a,i){const u=[...a];switch(i){case"active":u.sort((r,o)=>o.totalCommits-r.totalCommits);break;case"recent":u.sort((r,o)=>r.daysSincePush-o.daysSincePush);break;case"stale":u.sort((r,o)=>o.daysSincePush-r.daysSincePush);break}return u}const _a=(a,i)=>a!=null&&a.toLowerCase()===i.toLowerCase();function Lg(a,i,u){if(!u)return{awaitingReview:[],toReview:[]};const r=a.filter(o=>o.type==="pr"&&o.repo===i);return{awaitingReview:r.filter(o=>_a(o.author,u)&&!o.isDraft&&o.reviewDecision!=="APPROVED"),toReview:r.filter(o=>(o.reviewers??[]).some(d=>_a(d,u)))}}const $m=["awaitingReview","draft","toReview","myOpenIssues"];function jo(a,i){var d;const u=new Map;if(!i)return u;const r=new Map;for(const m of a){if(m.type!=="pr"||!_a(m.author,i))continue;const v=r.get(m.repo)??new Set;for(const y of m.linkedIssues??[])v.add(y);r.set(m.repo,v)}const o=(m,v)=>{const y=u.get(m)??{awaitingReview:0,draft:0,toReview:0,myOpenIssues:0};y[v]+=1,u.set(m,y)};for(const m of a)m.type==="pr"?(_a(m.author,i)&&(m.isDraft?o(m.repo,"draft"):m.reviewDecision!=="APPROVED"&&o(m.repo,"awaitingReview")),(m.reviewers??[]).some(v=>_a(v,i))&&o(m.repo,"toReview")):_a(m.author,i)&&!((d=r.get(m.repo))!=null&&d.has(m.number))&&o(m.repo,"myOpenIssues");return u}const Ao={query:"",tagIds:[],bookmarkedOnly:!1,includeHidden:!1,minCommits:0,pushedWithinDays:null,pushedOverDays:null,work:null},dy=[{id:"hot",label:"🔥 活発 × 30日以内",title:"期間内に10コミット以上、かつ最終pushが30日以内",patch:{minCommits:10,pushedWithinDays:30,pushedOverDays:null}},{id:"recent",label:"⚡ 直近7日",title:"最終pushが7日以内",patch:{minCommits:1,pushedWithinDays:7,pushedOverDays:null}},{id:"dormant",label:"💤 30日以上放置",title:"最終pushが30日以上前(忘れているもの)",patch:{minCommits:0,pushedWithinDays:null,pushedOverDays:30}}];function Hg(a,i){return Object.keys(i.patch).every(u=>JSON.stringify(a[u])===JSON.stringify(i.patch[u]))}function hy(a,i){const u=Object.keys(i.patch);if(Hg(a,i)){const r=Object.fromEntries(u.map(o=>[o,Ao[o]]));return{...a,...r}}return{...a,...i.patch}}function my(a,i,u){var m;const r=i.trim().toLowerCase();if(r==="")return!0;const{repo:o}=a;return[o.nameWithOwner,o.description??"",o.primaryLanguage??"",((m=o.lastCommits[0])==null?void 0:m.message)??"",...u].join(`
|
|
50
|
+
`).toLowerCase().includes(r)}function gy(a,i){return(a.tags.byRepo[i]??[]).map(r=>{var o;return((o=a.tags.defs.find(d=>d.id===r))==null?void 0:o.label)??""})}function py(a,i,u,r){const o=i.work&&r?jo(r.issues,r.login):null;return a.filter(d=>{var v;const m=d.repo.nameWithOwner;if(o&&i.work&&!(((v=o.get(m))==null?void 0:v[i.work])??0)||!i.includeHidden&&((u==null?void 0:u.hidden.includes(m))??!1)||i.bookmarkedOnly&&!((u==null?void 0:u.bookmarks.includes(m))??!1)||d.totalCommits<i.minCommits||i.pushedWithinDays!=null&&d.daysSincePush>i.pushedWithinDays||i.pushedOverDays!=null&&d.daysSincePush<i.pushedOverDays)return!1;if(i.tagIds.length>0){const y=(u==null?void 0:u.tags.byRepo[m])??[];if(!i.tagIds.some(g=>y.includes(g)))return!1}if(i.query.trim()!==""){const y=u?gy(u,m):[];if(!my(d,i.query,y))return!1}return!0})}function vy(a){return a.query.trim()!==""||a.tagIds.length>0||a.bookmarkedOnly||a.minCommits>0||a.pushedWithinDays!==null||a.pushedOverDays!==null||a.work!==null}const yy=["single","multi"];function xy(a,i,u){const r=new Set(u==="multi"?a:[]);return a.has(i)?r.delete(i):r.add(i),r}function by(a,i){return new Set(i!=null&&a.has(i)?[i]:[])}const Sy="github-reporadar-snapshot",ps="snapshot",Ey="hosted",Ny=1;function wy(){return new Promise((a,i)=>{const u=indexedDB.open(Sy,Ny);u.onupgradeneeded=()=>{const r=u.result;r.objectStoreNames.contains(ps)||r.createObjectStore(ps)},u.onsuccess=()=>a(u.result),u.onerror=()=>i(u.error??new Error("indexedDB open failed"))})}async function jy(){try{const a=await wy();await new Promise((i,u)=>{const r=a.transaction(ps,"readwrite");r.oncomplete=()=>i(),r.onabort=()=>u(r.error??new Error("indexedDB transaction aborted")),r.objectStore(ps).delete(Ey)}),a.close()}catch{}}let kg=0;const fo=new Set;function Ay(){kg+=1;for(const a of fo)a()}function Dy(a){return fo.add(a),()=>{fo.delete(a)}}function Wm(){return kg}function Yn(){return S.useSyncExternalStore(Dy,Wm,Wm)}function qg(a,i){return"no-local-cache"}async function Cy(){const[a,i,u]=await Promise.all(["repos","activity","meta"].map(async r=>{const o=await fetch(`/data/${r}.json`);if(!o.ok)throw new Error(`/data/${r}.json が読めません (${o.status})`);return o.json()}));return{repos:a,activity:i,meta:u}}function _y(){const[a,i]=S.useState({status:"loading"}),u=Yn();return S.useEffect(()=>{let r=!1;return Cy().then(o=>{r||i({status:"ready",data:o,revalidating:!1})}).catch(o=>{r||i(d=>d.status==="ready"?d:{status:"error",kind:qg(),message:Oy(o)})}),()=>{r=!0}},[u]),a}function Oy(a){return a instanceof Error?a.message:String(a)}function pn(a,i,u){const[r,o]=S.useState(()=>{if(typeof window>"u")return i;const m=window.localStorage.getItem(a);return m===null||u&&!u.includes(m)?i:m}),d=S.useCallback(m=>{o(m),window.localStorage.setItem(a,m)},[a]);return[r,d]}function Ty(a){const[i,u]=S.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(a).matches);return S.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;const r=window.matchMedia(a),o=()=>u(r.matches);return o(),r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[a]),i}const Yg=1,Hl={mode:"always",times:["11:00","15:00","18:30"],fromHour:11,toHour:19,weekdays:[1,2,3,4,5]},My=/^([01]\d|2[0-3]):([0-5]\d)$/;function ds(a){const i=My.exec(a.trim());return i?Number(i[1])*60+Number(i[2]):null}function Do(a){const i=a.map(u=>u.trim()).filter(u=>ds(u)!==null);return[...new Set(i)].sort((u,r)=>ds(u)-ds(r))}const Jc=a=>a.getHours()*60+a.getMinutes();function Ry(a,i){if(a.weekdays.length>0&&!a.weekdays.includes(i.getDay()))return!0;if(a.fromHour===a.toHour)return!1;const u=i.getHours();return u<a.fromHour||u>=a.toHour}function zy(a,i,u){if(Ry(a,i))return!1;if(a.mode==="always")return!0;if(!u)return!1;const r=new Date(u);if(Number.isNaN(r.getTime()))return!1;const o=Do(a.times).map(m=>ds(m));return o.length===0?!1:r.toDateString()===i.toDateString()?o.some(m=>m>Jc(r)&&m<=Jc(i)):o.some(m=>m<=Jc(i))}function Uy(a){const i=a.weekdays.length===0?"毎日":a.weekdays.length===5&&a.weekdays.every(o=>o>=1&&o<=5)?"平日":"選んだ曜日",u=a.fromHour===a.toHour?"終日":`${a.fromHour}時から${a.toHour}時`,r=a.mode==="always"?"届いたとき":Do(a.times).join(" / ");return`${i}の${u}、${r}に知らせます`}function By(a,i){return{meta:{version:Yg,updatedAt:a,deviceId:i},tags:{defs:[],byRepo:{}},bookmarks:[],hidden:[],boards:[],notes:{},log:[],inboxReadAt:null,inboxReadIds:[],wikiChecked:{},coachThreads:[],notify:{...Hl},lastNotifiedAt:null}}const Gg=["github-reporadar_memo_","reporadar_memo_"];function Ly(a,i){const u={...i};let r=0;for(const[o,d]of Object.entries(a)){const m=Gg.find(y=>o.startsWith(y));if(!m)continue;const v=o.slice(m.length);!(v in u)&&d.trim()!==""&&(u[v]=d,r++)}return{notes:u,migrated:r}}function Hy(a){return Gg.some(i=>a.startsWith(i))}function Oa(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function hs(a){return Array.isArray(a)?a.filter(i=>typeof i=="string"):[]}function Fm(a){if(!Oa(a))return{};const i={};for(const[u,r]of Object.entries(a))typeof r=="string"&&(i[u]=r);return i}function ky(a){if(!Oa(a))return{defs:[],byRepo:{}};const i=Array.isArray(a.defs)?a.defs.filter(Oa):[],u={};if(Oa(a.byRepo))for(const[r,o]of Object.entries(a.byRepo))u[r]=hs(o);return{defs:i,byRepo:u}}function qy(a,i,u){if(!Oa(a))return By(i,u);const r=Oa(a.meta)?a.meta:{};return{meta:{version:typeof r.version=="number"?r.version:Yg,updatedAt:typeof r.updatedAt=="string"?r.updatedAt:i,deviceId:typeof r.deviceId=="string"?r.deviceId:u},tags:ky(a.tags),bookmarks:hs(a.bookmarks),hidden:hs(a.hidden),boards:Array.isArray(a.boards)?a.boards:[],notes:Fm(a.notes),log:Array.isArray(a.log)?a.log:[],inboxReadAt:typeof a.inboxReadAt=="string"?a.inboxReadAt:null,inboxReadIds:hs(a.inboxReadIds),wikiChecked:Fm(a.wikiChecked),coachThreads:Array.isArray(a.coachThreads)?a.coachThreads:[],notify:Yy(a.notify),lastNotifiedAt:typeof a.lastNotifiedAt=="string"?a.lastNotifiedAt:null}}function Yy(a){if(!a||typeof a!="object")return{...Hl};const i=a,u=(r,o)=>typeof r=="number"&&Number.isInteger(r)&&r>=0&&r<=24?r:o;return{mode:i.mode==="digest"?"digest":"always",times:Array.isArray(i.times)?Do(i.times.filter(r=>typeof r=="string")):[...Hl.times],fromHour:u(i.fromHour,Hl.fromHour),toHour:u(i.toHour,Hl.toHour),weekdays:Array.isArray(i.weekdays)?[...new Set(i.weekdays.filter(r=>typeof r=="number"&&r>=0&&r<=6))].sort():[...Hl.weekdays]}}const Im="github-reporadar_device_id",Gy=700;function Xy(){if(typeof window>"u")return"ssr";let a=window.localStorage.getItem(Im);return a||(a=typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`dev-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`,window.localStorage.setItem(Im,a)),a}function Vy(){const a={};if(typeof window>"u")return a;const i=window.localStorage;for(let u=0;u<i.length;u++){const r=i.key(u);if(r&&Hy(r)){const o=i.getItem(r);o!==null&&(a[r]=o)}}return a}function Qy(a,i,u){const[r,o]=S.useState(null),[d,m]=S.useState("idle"),[v,y]=S.useState(null),g=S.useRef(null),b=S.useRef(null),x=S.useRef([]),N=S.useRef(!1),w=S.useRef(!1),M=S.useRef(u);M.current=u;const C=S.useCallback(async()=>{var z;if(!(!g.current||N.current||w.current)){w.current=!0,m("saving");try{let q=null;for(;g.current&&g.current!==q&&!N.current;)q=g.current,await a.save(q);m("saved")}catch(q){m("error"),(z=M.current)==null||z.call(M,q)}finally{w.current=!1}}},[a]),D=S.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=null,C())},[C]),k=S.useCallback(()=>{b.current&&clearTimeout(b.current),b.current=setTimeout(()=>{b.current=null,C()},Gy)},[C]);S.useEffect(()=>{let z=!1;return g.current=null,N.current=!1,y(null),m("idle"),(async()=>{const q=Xy();let X=null;try{X=await a.load()}catch(de){z||y(de instanceof Error?de.message:String(de)),N.current=!0}let $=qy(X,i(),q),V=!1;const{notes:P,migrated:me}=Ly(Vy(),$.notes);if(me>0&&($={...$,notes:P},V=!0),x.current.length>0){for(const de of x.current)de($);x.current=[],$.meta={...$.meta,updatedAt:i()},V=!0}z||(g.current=$,o($),V&&!N.current&&C())})(),()=>{z=!0}},[a,i,C]),S.useEffect(()=>{const z=()=>D(),q=()=>{document.visibilityState==="hidden"&&D()};return window.addEventListener("pagehide",z),document.addEventListener("visibilitychange",q),()=>{window.removeEventListener("pagehide",z),document.removeEventListener("visibilitychange",q),D()}},[D]);const K=S.useCallback(z=>{if(g.current===null){x.current.push(z);return}const q=structuredClone(g.current);z(q),q.meta={...q.meta,updatedAt:i()},g.current=q,o(q),N.current||k()},[i,k]);return{data:r,mutate:K,saveStatus:d,loadError:v}}const Ky="github-reporadar",za="userdata",Xg="current",Zy=1;function Pm(){return new Promise((a,i)=>{const u=indexedDB.open(Ky,Zy);u.onupgradeneeded=()=>{const r=u.result;r.objectStoreNames.contains(za)||r.createObjectStore(za)},u.onsuccess=()=>a(u.result),u.onerror=()=>i(u.error??new Error("indexedDB open failed"))})}function Jy(a){return new Promise((i,u)=>{const o=a.transaction(za,"readonly").objectStore(za).get(Xg);o.onsuccess=()=>i(o.result),o.onerror=()=>u(o.error??new Error("indexedDB read failed"))})}function $y(a,i){return new Promise((u,r)=>{const o=a.transaction(za,"readwrite");o.oncomplete=()=>u(),o.onabort=()=>r(o.error??new Error("indexedDB transaction aborted")),o.onerror=()=>r(o.error??new Error("indexedDB transaction failed")),o.objectStore(za).put(i,Xg)})}function Wy(){return{name:"indexeddb",async load(){const a=await Pm();try{return await Jy(a)??null}finally{a.close()}},async save(a){const i=await Pm();try{await $y(i,a)}finally{i.close()}}}}const eg="github-reporadar.json";function Fy(){return typeof window<"u"&&typeof window.showDirectoryPicker=="function"}function $c(a){return{name:"filesystem",async load(){let i;try{i=await a.getFileHandle(eg)}catch(o){if(o instanceof DOMException&&o.name==="NotFoundError")return null;throw o}const r=await(await i.getFile()).text();return r.trim()===""?null:JSON.parse(r)},async save(i){const r=await(await a.getFileHandle(eg,{create:!0})).createWritable();try{await r.write(JSON.stringify(i,null,2))}finally{await r.close()}}}}const Iy="github-reporadar-handles",vl="handles",Co="syncDir",Py=1;function _o(){return new Promise((a,i)=>{const u=indexedDB.open(Iy,Py);u.onupgradeneeded=()=>{const r=u.result;r.objectStoreNames.contains(vl)||r.createObjectStore(vl)},u.onsuccess=()=>a(u.result),u.onerror=()=>i(u.error??new Error("indexedDB open failed"))})}async function ex(a){const i=await _o();try{await new Promise((u,r)=>{const o=i.transaction(vl,"readwrite");o.oncomplete=()=>u(),o.onabort=()=>r(o.error??new Error("save handle aborted")),o.onerror=()=>r(o.error??new Error("save handle failed")),o.objectStore(vl).put(a,Co)})}finally{i.close()}}async function tg(){const a=await _o();try{return await new Promise((u,r)=>{const d=a.transaction(vl,"readonly").objectStore(vl).get(Co);d.onsuccess=()=>u(d.result),d.onerror=()=>r(d.error??new Error("load handle failed"))})??null}finally{a.close()}}async function tx(){const a=await _o();try{await new Promise((i,u)=>{const r=a.transaction(vl,"readwrite");r.oncomplete=()=>i(),r.onabort=()=>u(r.error??new Error("clear handle aborted")),r.onerror=()=>u(r.error??new Error("clear handle failed")),r.objectStore(vl).delete(Co)})}finally{a.close()}}function nx(){const a=S.useMemo(()=>Wy(),[]),[i,u]=S.useState(null),[r,o]=S.useState("indexeddb"),[d,m]=S.useState(null),[v,y]=S.useState(!1),[g,b]=S.useState(null),x=Fy(),N=S.useRef(r);N.current=r;const w=S.useRef(i);w.current=i;const M=S.useMemo(()=>r==="filesystem"&&i?$c(i):a,[r,i,a]);S.useEffect(()=>{let z=!1;return(async()=>{var q;try{const X=await tg();if(!X||z)return;const $=await((q=X.queryPermission)==null?void 0:q.call(X,{mode:"readwrite"}))??"prompt";if(z)return;$==="granted"?(u(X),o("filesystem"),m(X.name)):(m(X.name),y(!0))}catch(X){z||b(X instanceof Error?X.message:String(X))}})(),()=>{z=!0}},[]);const C=S.useCallback(async z=>{var $,V;if(N.current!=="filesystem")return;const q=z instanceof DOMException?z.name:"";let X="granted";try{X=w.current&&await((V=($=w.current).queryPermission)==null?void 0:V.call($,{mode:"readwrite"}))||"prompt"}catch{X="prompt"}q==="NotAllowedError"||X!=="granted"?(y(!0),b("同期フォルダへの書き込み権限が切れました。再接続してください")):b(q==="NotFoundError"?"同期フォルダが見つかりません(削除/移動された可能性)。切断でローカル保存に戻せます":z instanceof Error?z.message:String(z))},[]),D=S.useCallback(async z=>{if(b(null),!window.showDirectoryPicker){b("このブラウザは同期フォルダ(File System Access)に対応していません");return}let q;try{q=await window.showDirectoryPicker({id:"github-reporadar",mode:"readwrite"})}catch(X){if(X instanceof DOMException&&X.name==="AbortError")return;b(X instanceof Error?X.message:String(X));return}try{const X=$c(q);await X.load()==null&&z!=null&&await X.save(z),await ex(q),u(q),o("filesystem"),m(q.name),y(!1)}catch(X){b(X instanceof Error?X.message:String(X))}},[]),k=S.useCallback(async z=>{var $;b(null);const q=await tg();if(!q){y(!1);return}let X="denied";try{X=await(($=q.requestPermission)==null?void 0:$.call(q,{mode:"readwrite"}))??"denied"}catch{X="denied"}if(X!=="granted"){b("フォルダへのアクセスが許可されませんでした");return}if(N.current==="filesystem"&&z!=null){try{await $c(q).save(z)}catch(V){b(V instanceof Error?V.message:String(V));return}y(!1)}else u(q),o("filesystem"),m(q.name),y(!1)},[]),K=S.useCallback(async z=>{if(z!=null)try{await a.save(z)}catch{}await tx(),u(null),o("indexeddb"),m(null),y(!1),b(null)},[a]);return{store:M,kind:r,dirName:d,needsReconnect:v,supported:x,error:g,onSaveError:C,connectFolder:D,reconnect:k,disconnect:K}}const Vg=S.createContext(null);function lx({children:a}){const i=nx(),u=S.useMemo(()=>()=>new Date().toISOString(),[]),r=Qy(i.store,u,i.onSaveError),o={...r,storage:{kind:i.kind,dirName:i.dirName,needsReconnect:i.needsReconnect,supported:i.supported,error:i.error},connectFolder:()=>i.connectFolder(r.data),reconnect:()=>i.reconnect(r.data),disconnect:()=>i.disconnect(r.data)};return h.jsx(Vg.Provider,{value:o,children:a})}function yt(){const a=S.useContext(Vg);if(!a)throw new Error("useUserDataContext must be used within UserDataProvider");return a}function zi({tag:a,dimmed:i,onRemove:u}){const r=i?void 0:{color:a.color,borderColor:`${a.color}66`,backgroundColor:`${a.color}1f`};return h.jsxs("span",{className:`inline-flex items-center gap-1 rounded-md border px-1.5 py-0.5 text-xs ${i?"border-line text-fg-faint":""}`,style:r,children:[h.jsx("span",{className:"h-1.5 w-1.5 shrink-0 rounded-full",style:{backgroundColor:i?"var(--color-fg-faint)":a.color}}),a.label,u&&h.jsx("button",{type:"button",onClick:o=>{o.stopPropagation(),u()},className:"ml-0.5 opacity-70 hover:opacity-100","aria-label":`${a.label} を外す`,children:"×"})]})}const Wc={awaitingReview:{label:"レビュー待ちの自分のPR",title:"自分が出したPRで、ドラフトでなく、まだ承認されていないもの"},draft:{label:"Draftの自分のPR",title:"自分が出したDraft PR"},toReview:{label:"自分がレビューするPR",title:"レビューを頼まれているPR"},myOpenIssues:{label:"手を付けていない自分のissue",title:"自分が作ったopen issueで、自分のopen PRがまだ閉じる予定になっていないもの"}},ax=[{value:0,label:"活動量: 指定なし"},{value:1,label:"1 commit 以上"},{value:5,label:"5 commits 以上"},{value:10,label:"10 commits 以上"},{value:30,label:"30 commits 以上"}],ms=[{key:"any",label:"最終push: 指定なし",within:null,over:null},{key:"w1",label:"1日以内",within:1,over:null},{key:"w7",label:"7日以内",within:7,over:null},{key:"w30",label:"30日以内",within:30,over:null},{key:"w60",label:"60日以内",within:60,over:null},{key:"w90",label:"90日以内",within:90,over:null},{key:"w180",label:"180日以内",within:180,over:null},{key:"o14",label:"14日以上放置",within:null,over:14},{key:"o30",label:"30日以上放置",within:null,over:30},{key:"o90",label:"90日以上放置",within:null,over:90}];function ix(a){var i;return((i=ms.find(u=>u.within===a.pushedWithinDays&&u.over===a.pushedOverDays))==null?void 0:i.key)??"any"}const ng="rounded-md border border-line-strong bg-panel-2 px-2 py-1.5 text-sm text-fg-muted focus:border-emerald-500/50 focus:outline-none";function ux(a){return a.minCommits>0||a.pushedWithinDays!==null||a.pushedOverDays!==null}function sx({filter:a,onChange:i,resultCount:u,workCounts:r}){const{data:o}=yt(),d=(o==null?void 0:o.tags.defs)??[],m=(o==null?void 0:o.hidden.length)??0,[v,y]=S.useState(!1);function g(b){const x=a.tagIds.includes(b);i({...a,tagIds:x?a.tagIds.filter(N=>N!==b):[...a.tagIds,b]})}return h.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-line px-4 py-2.5",children:[h.jsx("input",{value:a.query,onChange:b=>i({...a,query:b.target.value}),placeholder:"キーワード検索(名前・説明・コミット・タグ) ⌘K","data-shortcut":"search","aria-keyshortcuts":"Meta+K Control+K /",onKeyDown:b=>{b.key==="Escape"&&(i({...a,query:""}),b.currentTarget.blur())},className:"min-w-[220px] flex-1 rounded-md border border-line-strong bg-panel-2 px-3 py-1.5 text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}),h.jsx("button",{type:"button",onClick:()=>i({...a,bookmarkedOnly:!a.bookmarkedOnly}),"aria-pressed":a.bookmarkedOnly,className:`rounded-md border px-2.5 py-1.5 text-sm transition-colors ${a.bookmarkedOnly?"border-amber-500/40 text-amber-400":"border-line text-fg-muted hover:text-fg"}`,children:"★ のみ"}),(m>0||a.includeHidden)&&h.jsxs("button",{type:"button",onClick:()=>i({...a,includeHidden:!a.includeHidden}),"aria-pressed":a.includeHidden,title:"「非表示」にしたrepoも一覧に出す",className:`whitespace-nowrap rounded-md border px-2.5 py-1.5 text-sm transition-colors ${a.includeHidden?"border-emerald-500/40 text-emerald-400":"border-line text-fg-muted hover:text-fg"}`,children:["非表示を含める (",m,")"]}),r&&Object.keys(Wc).filter(b=>r[b]>0||a.work===b).map(b=>{const x=a.work===b;return h.jsxs("button",{type:"button",onClick:()=>i({...a,work:x?null:b}),"aria-pressed":x,title:Wc[b].title,className:`whitespace-nowrap rounded-md border px-2.5 py-1.5 text-sm transition-colors ${x?"border-emerald-500/40 text-emerald-400":"border-line text-fg-muted hover:text-fg"}`,children:[Wc[b].label," ",h.jsx("span",{className:"font-mono text-xs",children:r[b]})]},b)}),dy.map(b=>{const x=Hg(a,b);return h.jsx("button",{type:"button",onClick:()=>i(hy(a,b)),"aria-pressed":x,title:b.title,className:`whitespace-nowrap rounded-md border px-2.5 py-1.5 text-sm transition-colors ${x?"border-emerald-500/40 text-emerald-400":"border-line text-fg-muted hover:text-fg"}`,children:b.label},b.id)}),h.jsxs("button",{type:"button",onClick:()=>y(b=>!b),"aria-expanded":v,"aria-controls":"filter-detail",className:`rounded-md border px-2.5 py-1.5 text-sm transition-colors lg:hidden ${ux(a)?"border-emerald-500/40 text-emerald-400":"border-line text-fg-muted hover:text-fg"}`,children:["絞り込み ",v?"▲":"▼"]}),h.jsxs("div",{id:"filter-detail",className:`${v?"flex":"hidden"} w-full flex-wrap items-center gap-2 lg:flex lg:w-auto`,children:[h.jsx("select",{value:a.minCommits,onChange:b=>i({...a,minCommits:Number(b.target.value)}),"aria-label":"活動量で絞り込む",className:ng,children:ax.map(b=>h.jsx("option",{value:b.value,children:b.label},b.value))}),h.jsx("select",{value:ix(a),onChange:b=>{const x=ms.find(N=>N.key===b.target.value)??ms[0];i({...a,pushedWithinDays:x.within,pushedOverDays:x.over})},"aria-label":"最終pushで絞り込む",className:ng,children:ms.map(b=>h.jsx("option",{value:b.key,children:b.label},b.key))})]}),d.length>0&&h.jsx("div",{className:"flex flex-wrap items-center gap-1.5",children:d.map(b=>h.jsx("button",{type:"button",onClick:()=>g(b.id),children:h.jsx(zi,{tag:b,dimmed:!a.tagIds.includes(b.id)})},b.id))}),vy(a)&&h.jsxs("button",{type:"button",onClick:()=>i({...Ao,includeHidden:a.includeHidden}),className:"text-xs text-fg-faint hover:text-fg-muted",children:["クリア(",u,")"]})]})}function qi(a,i){const u=a.indexOf("/");if(u<0)return a;const r=a.slice(0,u),o=a.slice(u+1);return i===null||r.toLowerCase()===i.toLowerCase()?o:a}const rx=["fill-line","fill-emerald-900","fill-emerald-700","fill-emerald-500","fill-emerald-300"];function cx(a,i){return a===0?0:1+Math.min(3,Math.floor(a/i*3))}const qn=11,Aa=3,ss=188,lg=24;function ox(a,i=null){const u=qi(a,i);return u.length<=lg?u:`${u.slice(0,lg-1)}…`}function fx({stats:a,days:i,now:u,maxRows:r=14,ownLogin:o=null}){const d=a.filter(b=>b.totalCommits>0).slice(0,r);if(d.length===0)return h.jsx("p",{className:"py-6 text-center text-sm text-fg-muted",children:"この期間の活動はありません"});const m=Bg(u,i),v=Math.max(...d.flatMap(b=>b.dailyCommits),1),y=i*(qn+Aa),g=d.length*(qn+Aa);return h.jsx("div",{className:"overflow-x-auto",children:h.jsxs("svg",{width:ss+y,height:g+20,role:"img","aria-label":"リポジトリ別の日次コミットヒートマップ",children:[d.map((b,x)=>h.jsxs("g",{children:[h.jsxs("text",{x:ss-10,y:x*(qn+Aa)+qn-1,textAnchor:"end",className:"fill-fg-muted font-mono text-xs",children:[h.jsx("title",{children:b.repo.nameWithOwner}),ox(b.repo.nameWithOwner,o)]}),b.dailyCommits.map((N,w)=>h.jsx("rect",{x:ss+w*(qn+Aa),y:x*(qn+Aa),width:qn,height:qn,rx:2,className:rx[cx(N,v)],children:h.jsx("title",{children:`${b.repo.nameWithOwner} ${m[w]}: ${N} commits`})},w))]},b.repo.nameWithOwner)),m.map((b,x)=>new Date(`${b}T00:00:00Z`).getUTCDay()===1&&i<=90?h.jsx("text",{x:ss+x*(qn+Aa),y:g+14,className:"fill-fg-faint font-mono text-xs",children:b.slice(5)},b):null)]})})}const dx=[7,30,90];function hx({value:a,onChange:i}){return h.jsx("div",{role:"tablist","aria-label":"集計期間",className:"inline-flex rounded-lg border border-line bg-panel-2 p-0.5",children:dx.map(u=>h.jsxs("button",{role:"tab","aria-selected":a===u,onClick:()=>i(u),className:`rounded-md px-3 py-1 font-mono text-sm transition-colors ${a===u?"bg-panel font-medium text-fg shadow-sm":"text-fg-muted hover:text-fg"}`,children:[u,"日"]},u))})}function mx({show:a,onChange:i,canPrivate:u}){return h.jsxs("label",{className:"flex cursor-pointer items-center gap-1.5 whitespace-nowrap text-xs text-fg-muted",children:[h.jsx("input",{type:"checkbox",checked:a,onChange:r=>i(r.target.checked),className:"accent-emerald-500"}),"private を表示"]})}function gx(){return h.jsxs("svg",{width:"26",height:"26",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",className:"shrink-0",children:[h.jsx("circle",{cx:"12",cy:"12",r:"10.5",className:"stroke-emerald-500/25",strokeWidth:"1"}),h.jsx("circle",{cx:"12",cy:"12",r:"6",className:"stroke-emerald-500/20",strokeWidth:"1"}),h.jsx("circle",{cx:"12",cy:"12",r:"1.6",className:"fill-emerald-400"}),h.jsxs("g",{className:"rr-sweep",children:[h.jsx("path",{d:"M12 12 L12 1.5 A10.5 10.5 0 0 1 20.1 5.2 Z",className:"fill-emerald-400/12"}),h.jsx("line",{x1:"12",y1:"12",x2:"12",y2:"1.5",className:"stroke-emerald-400",strokeWidth:"1.3",strokeLinecap:"round"})]})]})}const px=/(^|[\s(\[])#(\d+)\b/g;function vx(a,i){const u=[];let r=0;for(const o of a.matchAll(px)){const d=o.index+o[1].length;d>r&&u.push({kind:"text",text:a.slice(r,d)}),u.push({kind:"ref",text:`#${o[2]}`,href:`${i}/issues/${o[2]}`}),r=d+1+o[2].length}return r<a.length&&u.push({kind:"text",text:a.slice(r)}),u.length>0?u:[{kind:"text",text:a}]}function yx(a){return a==="MERGED"?"text-violet-400":a==="OPEN"?"text-emerald-400":a==="CLOSED"?"text-rose-400":"text-fg-muted"}function xx(a){return a==="MERGED"?"マージ済み":a==="OPEN"?"未解決":a==="CLOSED"?"閉じた":""}function bx(a,i,u){return a.filter(r=>r.repo===i&&r.number===u).sort((r,o)=>r.at<o.at?1:r.at>o.at?-1:0)}let Da=null;async function Sx(){const a=await fetch("/data/issues.json");if(!a.ok)return[];const i=await a.json();return Array.isArray(i)?i:[]}let ag=0;function Oo(){const a=Yn(),[i,u]=S.useState(Da??[]),[r,o]=S.useState(Da===null),[d,m]=S.useState(null);return S.useEffect(()=>{if(a>ag&&(Da=null,ag=a),Da!==null){u(Da);return}let v=!1;return Sx().then(y=>{Da=y,v||(u(y),o(!1))}).catch(y=>{v||(u([]),o(!1),m(qg()))}),()=>{v=!0}},[a]),{items:i,loading:r,error:d}}function Ex(){const a=Yn(),[i,u]=S.useState({});return S.useEffect(()=>{let r=!1;return fetch("/data/refs.json").then(o=>o.ok?o.json():{}).then(o=>{!r&&o&&typeof o=="object"&&!Array.isArray(o)&&u(o)}).catch(()=>{}),()=>{r=!0}},[a]),i}function Nx(){const a=Yn(),[i,u]=S.useState([]);return S.useEffect(()=>{let r=!1;return fetch("/data/slack-links.json").then(o=>o.ok?o.json():[]).then(o=>{!r&&Array.isArray(o)&&u(o)}).catch(()=>{}),()=>{r=!0}},[a]),i}function To(a){return a<=7?"fresh":a<=14?"aging":a<=30?"stale":a<=60?"cold1":a<=90?"cold2":"cold3"}const Mo={fresh:"text-emerald-400",aging:"text-amber-400",stale:"text-rose-400",cold1:"text-slate-300",cold2:"text-slate-400",cold3:"text-fg-faint"},Qg={fresh:"bg-emerald-400",aging:"bg-amber-400",stale:"bg-rose-400",cold1:"bg-slate-300",cold2:"bg-slate-400",cold3:"bg-slate-500"};function Ro(a){return a===0?"today":`${a}日前`}function Es(a,i){const u=a.bookmarks.indexOf(i);u>=0?a.bookmarks.splice(u,1):a.bookmarks.push(i)}function Ns(a,i){return(a==null?void 0:a.bookmarks.includes(i))??!1}function Kg(a,i){const u=a.hidden.indexOf(i);u>=0?a.hidden.splice(u,1):a.hidden.push(i)}function ws(a,i){return(a==null?void 0:a.hidden.includes(i))??!1}function wx(a,i,u,r){const o=u.trim();o===""||a.tags.defs.some(d=>d.id===i)||a.tags.defs.push({id:i,label:o,color:r})}function Fc(a,i,u){const r=a.tags.byRepo[i]??[],o=r.includes(u)?r.filter(d=>d!==u):[...r,u];o.length===0?delete a.tags.byRepo[i]:a.tags.byRepo[i]=o}function zo(a,i){return(a==null?void 0:a.tags.byRepo[i])??[]}const ig="default",jx=[{id:"backlog",name:"Backlog"},{id:"active",name:"Active"},{id:"review",name:"Review"},{id:"done",name:"Done"},{id:"dormant",name:"Dormant"}];function Zg(a,i){return a.boards.length>0?a.boards[0].id:(a.boards.push({id:ig,name:"Projects",columns:jx.map(u=>({id:u.id,name:u.name,cardIds:[]})),cards:[],updatedAt:i}),ig)}function Yi(a,i){return a.boards.find(u=>u.id===i)}function Jg(a,i,u,r){const o=Yi(a,i);if(!o)return;const d=o.columns.find(m=>m.id===u);d&&(o.cards.some(m=>m.id===r.id)||(o.cards.push(r),d.cardIds.push(r.id),o.updatedAt=r.updatedAt))}function Ax(a,i,u,r,o){var v;const d=Yi(a,i);if(!d||d.cards.some(y=>y.repo===u))return!1;const m=(v=d.columns[0])==null?void 0:v.id;return m?(Jg(a,i,m,{id:r,repo:u,title:u.split("/")[1]??u,note:"",updatedAt:o}),!0):!1}function Dx(a,i,u,r,o){const d=Yi(a,i);if(!d)return;const m=d.columns.find(y=>y.id===r);if(!m)return;for(const y of d.columns){const g=y.cardIds.indexOf(u);g>=0&&y.cardIds.splice(g,1)}const v=Math.max(0,Math.min(o,m.cardIds.length));m.cardIds.splice(v,0,u)}function Cx(a,i,u,r){const o=Yi(a,i);if(!o)return;const d=o.cards.find(m=>m.id===u);d&&Object.assign(d,r)}function _x(a,i,u){const r=Yi(a,i);if(r){r.cards=r.cards.filter(o=>o.id!==u);for(const o of r.columns){const d=o.cardIds.indexOf(u);d>=0&&o.cardIds.splice(d,1)}}}function Ox(a){const i=new Map(a.cards.map(r=>[r.id,r])),u={};for(const r of a.columns)u[r.id]=r.cardIds.map(o=>i.get(o)).filter(o=>o!=null);return u}function Tx(a,i){for(const u of a.columns)if(u.cardIds.includes(i))return u.id;return null}function Mx(a,i){let u=Tx(a,i);if(!u&&a.columns.some(d=>d.id===i)&&(u=i),!u)return null;const r=a.columns.find(d=>d.id===u);if(!r)return null;const o=r.cardIds.indexOf(i);return{columnId:u,index:o<0?r.cardIds.length:o}}function $g(a="id"){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`${a}-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`}function Wg({daily:a,width:i=96,height:u=22}){const r=Math.max(...a,1),o=i/a.length;return h.jsx("svg",{width:i,height:u,"aria-hidden":"true",className:"shrink-0",children:a.map((d,m)=>d>0?h.jsx("rect",{x:m*o,y:u-d/r*u,width:Math.max(o-.5,.5),height:d/r*u,rx:.5,className:"fill-emerald-400/85"},m):null)})}const ug=["#34d399","#60a5fa","#fbbf24","#f87171","#a78bfa","#22d3ee","#f472b6","#a3e635"];function Rx(a){return ug[a%ug.length]}function zx(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`tag-${Math.random().toString(36).slice(2)}`}function Ux({repo:a}){const{data:i,mutate:u}=yt(),[r,o]=S.useState(!1),[d,m]=S.useState(""),v=(i==null?void 0:i.tags.defs)??[],y=zo(i,a),g=y.map(x=>v.find(N=>N.id===x)).filter(x=>x!=null);function b(){const x=d.trim();if(x==="")return;const N=zx(),w=Rx(v.length);u(M=>{wx(M,N,x,w),Fc(M,a,N)}),m("")}return h.jsxs("div",{children:[h.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[h.jsx("h3",{className:"font-mono text-xs font-semibold tracking-wider text-fg-faint uppercase",children:"タグ"}),h.jsx("button",{type:"button",onClick:()=>o(x=>!x),className:"text-xs text-fg-muted hover:text-fg",children:r?"閉じる":"+ 編集"})]}),h.jsx("div",{className:"flex flex-wrap gap-1.5",children:g.length>0?g.map(x=>h.jsx(zi,{tag:x,onRemove:()=>u(N=>Fc(N,a,x.id))},x.id)):h.jsx("span",{className:"text-xs text-fg-faint",children:"未設定"})}),r&&h.jsxs("div",{className:"mt-3 rounded-lg border border-line bg-panel-2 p-3",children:[v.length>0&&h.jsx("div",{className:"mb-3 flex flex-wrap gap-1.5",children:v.map(x=>{const N=y.includes(x.id);return h.jsx("button",{type:"button",onClick:()=>u(w=>Fc(w,a,x.id)),children:h.jsx(zi,{tag:x,dimmed:!N})},x.id)})}),h.jsxs("div",{className:"flex gap-2",children:[h.jsx("input",{value:d,onChange:x=>m(x.target.value),onKeyDown:x=>{x.nativeEvent.isComposing||x.key==="Enter"&&(x.preventDefault(),b())},placeholder:"新しいタグ名",className:"min-w-0 flex-1 rounded-md border border-line-strong bg-panel px-2 py-1 text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}),h.jsx("button",{type:"button",onClick:b,className:"shrink-0 rounded-md border border-line-strong px-2.5 py-1 text-sm text-fg-muted hover:border-emerald-500/40 hover:text-fg",children:"追加"})]})]})]})}function Ic({children:a,className:i}){return h.jsx("span",{className:`rounded-md border border-line px-2 py-0.5 font-mono text-xs text-fg-muted ${i??""}`,children:a})}function Fg({stats:a,ownLogin:i=null}){var C;const{repo:u}=a,{data:r,mutate:o}=yt(),d=(r==null?void 0:r.notes[u.nameWithOwner])??"",m=To(a.daysSincePush),v=Ns(r,u.nameWithOwner),y=ws(r,u.nameWithOwner),g=((C=r==null?void 0:r.boards[0])==null?void 0:C.cards.some(D=>D.repo===u.nameWithOwner))??!1,{items:b}=Oo(),x=Ex(),N=Nx(),w=Lg(b,u.nameWithOwner,i);function M(){const D=new Date().toISOString();o(k=>{const K=Zg(k,D);Ax(k,K,u.nameWithOwner,$g("card"),D)})}return h.jsxs("div",{className:"flex flex-col gap-5 p-5",children:[h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-start justify-between gap-3",children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx("h2",{className:"truncate font-mono text-lg font-semibold text-fg",children:qi(u.nameWithOwner,i)}),h.jsx("p",{className:"mt-0.5 truncate font-mono text-xs text-fg-faint",children:u.nameWithOwner})]}),h.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[h.jsx("button",{type:"button",onClick:()=>o(D=>Es(D,u.nameWithOwner)),"aria-pressed":v,"aria-label":v?"Bookmark を外す":"Bookmark に追加",className:`rounded-md border px-2 py-1 text-sm transition-colors ${v?"border-amber-500/40 text-amber-400":"border-line text-fg-faint hover:text-fg-muted"}`,children:v?"★":"☆"}),h.jsx("button",{type:"button",onClick:M,disabled:g,className:`rounded-md border px-2 py-1 text-xs transition-colors ${g?"border-line text-fg-faint":"border-line text-fg-muted hover:border-emerald-500/40 hover:text-fg"}`,title:g?"すでにボードにあります":"この repo をボードの Backlog に追加",children:g?"✓ ボード":"+ ボード"}),h.jsx("button",{type:"button",onClick:()=>o(D=>Kg(D,u.nameWithOwner)),className:`rounded-md border px-2 py-1 text-xs transition-colors ${y?"border-line text-fg-muted hover:border-emerald-500/40 hover:text-fg":"border-line text-fg-muted hover:border-rose-500/40 hover:text-fg"}`,title:y?"一覧に戻す":"このrepoを一覧から外す(フィルターバーの「非表示を含める」で戻せます)",children:y?"再表示":"非表示"}),h.jsx("a",{href:u.url,target:"_blank",rel:"noreferrer",className:"rounded-md border border-line-strong px-2 py-1 font-mono text-xs text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg",children:"GitHub ↗"})]})]}),h.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[u.isPrivate&&h.jsx(Ic,{children:"private"}),u.primaryLanguage&&h.jsx(Ic,{children:u.primaryLanguage}),h.jsx(Ic,{className:Mo[m],children:Ro(a.daysSincePush)})]})]}),h.jsx(Ux,{repo:u.nameWithOwner}),h.jsxs("div",{className:"flex items-end justify-between rounded-lg border border-line bg-panel-2 p-4",children:[h.jsxs("div",{children:[h.jsxs("div",{className:"font-mono text-3xl tabular-nums text-fg",children:[a.totalCommits,h.jsx("span",{className:"text-base text-fg-faint",children:"c"})]}),h.jsxs("div",{className:"mt-0.5 text-xs text-fg-muted",children:["直近",a.dailyCommits.length,"日"]})]}),h.jsx(Wg,{daily:a.dailyCommits,width:168,height:40})]}),(u.openPrCount>0||u.openIssueCount>0)&&h.jsxs("div",{className:"flex gap-2",children:[u.openPrCount>0&&h.jsxs("a",{href:`${u.url}/pulls`,target:"_blank",rel:"noreferrer",className:"flex-1 rounded-lg border border-line-strong bg-panel-2 px-3 py-2 text-sm text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg",children:["Open PR ",h.jsx("span",{className:"font-mono text-fg",children:u.openPrCount})]}),u.openIssueCount>0&&h.jsxs("a",{href:`${u.url}/issues`,target:"_blank",rel:"noreferrer",className:"flex-1 rounded-lg border border-line-strong bg-panel-2 px-3 py-2 text-sm text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg",children:["Open Issue ",h.jsx("span",{className:"font-mono text-fg",children:u.openIssueCount})]})]}),(w.awaitingReview.length>0||w.toReview.length>0)&&h.jsxs("div",{className:"flex flex-col gap-3",children:[w.awaitingReview.length>0&&h.jsx(sg,{title:"レビュー待ちの自分のPR",items:w.awaitingReview,slackLinks:N}),w.toReview.length>0&&h.jsx(sg,{title:"自分がレビューするPR",items:w.toReview,slackLinks:N})]}),h.jsxs("div",{children:[h.jsx("h3",{className:"mb-2 font-mono text-xs font-semibold tracking-wider text-fg-faint uppercase",children:"直近のコミット"}),h.jsx("ul",{className:"space-y-1.5",children:u.lastCommits.length>0?u.lastCommits.map((D,k)=>h.jsxs("li",{className:"flex gap-2.5 text-sm",children:[h.jsx("span",{className:"shrink-0 pt-0.5 font-mono text-xs text-fg-faint",children:D.committedDate.slice(5,10)}),h.jsx("span",{className:"min-w-0 break-words text-fg",children:vx(D.message.split(`
|
|
51
|
+
`)[0],u.url).map((K,z)=>{if(K.kind!=="ref")return h.jsx("span",{children:K.text},z);const q=x[`${u.nameWithOwner}${K.text}`],X=xx(q);return h.jsx("a",{href:K.href,target:"_blank",rel:"noreferrer",title:X?`${K.text} ${X}`:K.text,className:`font-mono hover:underline ${yx(q)}`,children:K.text},z)})})]},k)):h.jsx("li",{className:"text-sm text-fg-muted",children:"コミット履歴なし"})})]}),h.jsxs("div",{children:[h.jsx("h3",{className:"mb-2 font-mono text-xs font-semibold tracking-wider text-fg-faint uppercase",children:"次にやること"}),h.jsx("textarea",{value:d,onChange:D=>{const k=D.target.value;o(K=>{K.notes[u.nameWithOwner]=k})},rows:3,placeholder:"この repo の続きでやることを書いておく",className:"w-full resize-none rounded-lg border border-line-strong bg-panel-2 p-2.5 font-mono text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"})]})]})}function sg({title:a,items:i,slackLinks:u=[]}){return h.jsxs("div",{children:[h.jsx("h3",{className:"mb-2 font-mono text-xs font-semibold tracking-wider text-fg-faint uppercase",children:a}),h.jsx("ul",{className:"space-y-1.5",children:i.map(r=>{const o=bx(u,r.repo,r.number);return h.jsxs("li",{className:"flex items-baseline gap-2 text-sm",children:[h.jsxs("a",{href:r.url,target:"_blank",rel:"noreferrer",className:"shrink-0 font-mono text-xs text-emerald-400 hover:underline",children:["#",r.number]}),h.jsx("span",{className:"min-w-0 truncate text-fg",children:r.title}),r.reviewDecision==="CHANGES_REQUESTED"&&h.jsx("span",{className:"shrink-0 rounded border border-line px-1 font-mono text-xs text-amber-300",children:"要修正"}),o.length>0&&h.jsxs("a",{href:o[0].permalink,target:"_blank",rel:"noreferrer",title:`Slackで${o.length}件の発言。最新は#${o[0].channel}`,className:"shrink-0 rounded border border-line px-1 font-mono text-xs text-fg-muted hover:text-fg",children:["Slack ",o.length]})]},r.number)})})]})}function Bx({stats:a,selected:i,expanded:u,onSelect:r,index:o,menuOpen:d,onContextMenu:m,onMenuButton:v,ownLogin:y}){var K;const{repo:g}=a,{data:b,mutate:x}=yt(),N=To(a.daysSincePush),w=(K=g.lastCommits[0])==null?void 0:K.message.split(`
|
|
52
|
+
`)[0],M=Ns(b,g.nameWithOwner),C=ws(b,g.nameWithOwner),k=zo(b,g.nameWithOwner).map(z=>b==null?void 0:b.tags.defs.find(q=>q.id===z)).filter(z=>z!=null);return h.jsxs("div",{className:"rr-fade-up",style:{animationDelay:`${Math.min(o*18,280)}ms`},children:[h.jsxs("div",{onContextMenu:m,className:`flex items-stretch gap-1 rounded-lg border transition-colors ${i||u?"border-emerald-500/50 bg-emerald-400/[0.06]":"border-line bg-panel hover:bg-white/[0.025]"}`,children:[h.jsxs("button",{onClick:()=>r(g.nameWithOwner),"aria-pressed":i,"aria-expanded":u,className:"grid min-w-0 flex-1 grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-3 rounded-l-lg px-3 py-2.5 text-left",children:[h.jsx("span",{className:`h-2 w-2 shrink-0 rounded-full ${Qg[N]}`,style:a.daysSincePush===0?{boxShadow:"0 0 8px rgba(52,211,153,0.6)"}:void 0}),h.jsxs("div",{className:"min-w-0",children:[h.jsxs("div",{className:"flex items-baseline gap-2",children:[h.jsx("span",{className:"truncate font-mono text-sm font-medium text-fg",children:qi(g.nameWithOwner,y)}),g.isPrivate&&h.jsx("span",{className:"shrink-0 rounded bg-white/5 px-1 font-mono text-xs text-fg-faint",children:"private"}),C&&h.jsx("span",{className:"shrink-0 rounded border border-line px-1 font-mono text-xs text-fg-muted",children:"非表示"}),g.primaryLanguage&&h.jsx("span",{className:"shrink-0 text-xs text-fg-faint",children:g.primaryLanguage})]}),h.jsx("p",{className:"mt-0.5 truncate text-xs text-fg-muted",children:w??g.description??"—"}),k.length>0&&h.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:k.map(z=>h.jsx(zi,{tag:z},z.id))})]}),h.jsxs("div",{className:"flex items-center gap-3 sm:gap-4",children:[h.jsx("div",{className:"hidden sm:block",children:h.jsx(Wg,{daily:a.dailyCommits,width:88,height:22})}),h.jsxs("div",{className:"w-14 text-right",children:[h.jsxs("div",{className:"font-mono text-sm tabular-nums text-fg",children:[a.totalCommits,h.jsx("span",{className:"text-fg-faint",children:"c"})]}),h.jsx("div",{className:`text-xs ${Mo[N]}`,children:Ro(a.daysSincePush)})]}),h.jsxs("div",{className:"hidden w-11 shrink-0 flex-col items-end gap-0.5 font-mono text-xs text-fg-faint sm:flex",children:[g.openPrCount>0&&h.jsxs("span",{children:["PR ",g.openPrCount]}),g.openIssueCount>0&&h.jsxs("span",{children:["I ",g.openIssueCount]})]}),h.jsx("svg",{viewBox:"0 0 12 12",width:"12",height:"12","aria-hidden":"true",className:`shrink-0 text-fg-faint transition-transform lg:hidden ${u?"rotate-180":""}`,children:h.jsx("path",{d:"M2 4.5 6 8.5 10 4.5",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]})]}),h.jsx("button",{type:"button",onClick:()=>x(z=>Es(z,g.nameWithOwner)),"aria-pressed":M,"aria-label":M?"Bookmark を外す":"Bookmark に追加",className:`flex shrink-0 items-center px-2.5 text-lg transition-colors ${M?"text-amber-400":"text-fg-faint hover:text-fg-muted"}`,children:M?"★":"☆"}),h.jsx("button",{type:"button",onClick:v,"aria-label":`${g.nameWithOwner}のメニュー`,"aria-haspopup":"menu","aria-expanded":d,className:"flex shrink-0 items-center rounded-r-lg px-2 text-fg-faint transition-colors hover:text-fg-muted",children:"⋯"})]}),u&&h.jsx("div",{className:"mt-1 rounded-lg border border-line bg-panel-2/60 lg:hidden",children:h.jsx(Fg,{stats:a,ownLogin:y})})]})}var gl=Ug();function Ig(){const[a,i]=S.useState(null),u=S.useCallback(()=>i(null),[]),r=S.useCallback((d,m,v)=>{if(d.shiftKey)return;d.preventDefault();const y=document.activeElement instanceof HTMLElement?document.activeElement:null,g=d.clientX===0&&d.clientY===0?d.currentTarget.getBoundingClientRect():null;i({repo:m,url:v,x:g?g.left+16:d.clientX,y:g?g.bottom:d.clientY,anchor:null,returnFocus:y})},[]),o=S.useCallback((d,m,v)=>{d.stopPropagation();const y=d.currentTarget;i(g=>{if((g==null?void 0:g.anchor)===y)return null;const b=y.getBoundingClientRect();return{repo:m,url:v,x:b.left,y:b.bottom+2,anchor:y,returnFocus:y}})},[]);return{menu:a,openAtPointer:r,toggleFromButton:o,close:u}}const Pc="flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm text-fg-muted transition-colors hover:bg-white/[0.06] hover:text-fg focus:bg-white/[0.06] focus:text-fg focus:outline-none";function Pg({menu:a,onClose:i}){const{data:u,mutate:r}=yt(),o=S.useRef(null),[d,m]=S.useState({x:a.x,y:a.y}),v=Ns(u,a.repo),y=ws(u,a.repo);S.useLayoutEffect(()=>{var D;const w=o.current;if(!w)return;const{width:M,height:C}=w.getBoundingClientRect();m({x:Math.max(4,Math.min(a.x,window.innerWidth-M-4)),y:Math.max(4,Math.min(a.y,window.innerHeight-C-4))}),(D=w.querySelector("button, a"))==null||D.focus({preventScroll:!0})},[a]);function g(){i();const w=a.returnFocus;w!=null&&w.isConnected&&w.focus({preventScroll:!0})}S.useEffect(()=>{function w(M){var D,k;const C=M.target;(D=o.current)!=null&&D.contains(C)||(k=a.anchor)!=null&&k.contains(C)||i()}return document.addEventListener("pointerdown",w),window.addEventListener("scroll",i,!0),()=>{document.removeEventListener("pointerdown",w),window.removeEventListener("scroll",i,!0)}},[a,i]);function b(w){var M,C;if(w.key==="Escape"){w.preventDefault(),g();return}if(w.key==="ArrowDown"||w.key==="ArrowUp"){const D=[...((M=o.current)==null?void 0:M.querySelectorAll('[role="menuitem"]'))??[]],k=D.indexOf(document.activeElement),K=w.key==="ArrowDown"?(k+1)%D.length:(k-1+D.length)%D.length;(C=D[K])==null||C.focus(),w.preventDefault()}}function x(w){var C,D;const M=w.relatedTarget;!M||(C=o.current)!=null&&C.contains(M)||(D=a.anchor)!=null&&D.contains(M)||i()}function N(w){r(w),g()}return gl.createPortal(h.jsxs("div",{ref:o,role:"menu","aria-label":`${a.repo}の操作`,style:{position:"fixed",left:d.x,top:d.y,backdropFilter:"blur(12px)"},className:"z-50 min-w-44 overflow-hidden rounded-lg border border-line bg-panel/85 py-1 shadow-xl",onContextMenu:w=>w.preventDefault(),onKeyDown:b,onBlur:x,children:[h.jsx("div",{"aria-hidden":"true",className:"truncate px-3 py-1 font-mono text-xs text-fg-faint",children:a.repo}),h.jsxs("button",{type:"button",role:"menuitem",className:Pc,onClick:()=>N(w=>Es(w,a.repo)),children:[h.jsx("span",{className:v?"text-amber-400":"",children:v?"★":"☆"}),v?"Bookmarkを外す":"Bookmarkに追加"]}),h.jsxs("button",{type:"button",role:"menuitem",className:Pc,onClick:()=>N(w=>Kg(w,a.repo)),children:[h.jsx("span",{"aria-hidden":"true",children:y?"👁":"⊘"}),y?"一覧に戻す":"一覧から非表示にする"]}),h.jsxs("a",{role:"menuitem",className:Pc,href:a.url,target:"_blank",rel:"noreferrer","aria-label":"GitHubで開く(新しいタブ)",onClick:i,children:[h.jsx("span",{"aria-hidden":"true",children:"↗"}),"GitHubで開く"]})]}),document.body)}const Lx=new Set(["INPUT","TEXTAREA","SELECT"]);function Hx(a){const i=a.metaKey||a.ctrlKey;return i&&!a.altKey&&!a.shiftKey&&a.key.toLowerCase()==="k"||!i&&!a.altKey&&a.key==="/"&&!Lx.has(a.targetTag)?"focus-search":a.key==="Escape"&&a.targetIsSearch?"clear-search":null}function kx(a){const i=a.target instanceof Element?a.target:null;return{key:a.key,metaKey:a.metaKey,ctrlKey:a.ctrlKey,altKey:a.altKey,shiftKey:a.shiftKey,targetTag:(i==null?void 0:i.tagName)??"BODY",targetIsSearch:(i==null?void 0:i.getAttribute("data-shortcut"))==="search"}}function qx(){return document.querySelector('input[data-shortcut="search"]')}function Yx(){const a=Yn(),[i,u]=S.useState([]);return S.useEffect(()=>{let r=!1;return fetch("/data/events.json").then(o=>o.ok?o.json():[]).then(o=>{!r&&Array.isArray(o)&&u(o)}).catch(()=>{}),()=>{r=!0}},[a]),i}function Gx(){const a=Yn(),[i,u]=S.useState([]);return S.useEffect(()=>{let r=!1;return fetch("/data/jira.json").then(o=>o.ok?o.json():[]).then(o=>{!r&&Array.isArray(o)&&u(o)}).catch(()=>{}),()=>{r=!0}},[a]),i}function Xx(){const a=Yn(),[i,u]=S.useState([]);return S.useEffect(()=>{let r=!1;return fetch("/data/confluence.json").then(o=>o.ok?o.json():[]).then(o=>{!r&&Array.isArray(o)&&u(o)}).catch(()=>{}),()=>{r=!0}},[a]),i}function Vx(){const a=Yn(),[i,u]=S.useState([]),[r,o]=S.useState(!0);return S.useEffect(()=>{let d=!1;return fetch("/data/confluence-pages.json").then(m=>m.ok?m.json():[]).then(m=>{d||(Array.isArray(m)&&u(m),o(!1))}).catch(()=>{d||o(!1)}),()=>{d=!0}},[a]),{pages:i,loading:r}}const ep={all:"すべて",watched:"見張り",others:"他人が更新",drift:"要確認"},Qx=Object.keys(ep),Kx="未設定",Ui=a=>a===""?Kx:a;function Zx(a,i){const u=new Map;for(const r of i){const o=u.get(r.pageId)??[];o.push(r),u.set(r.pageId,o)}return[...a].sort((r,o)=>r.lastModified<o.lastModified?1:r.lastModified>o.lastModified?-1:0).map(r=>{const o=u.get(r.id)??[];return{...r,drifts:o,daysBehind:o.reduce((d,m)=>Math.max(d,m.daysBehind),0)}})}const tp=a=>a.some(i=>i.byMe!==void 0),np=a=>a.some(i=>i.watched===!0);function Jx(a){const i=new Map;for(const u of a)i.set(u.pageId,[...i.get(u.pageId)??[],u]);return[...i.values()].map(u=>{const r=[...u].sort((d,m)=>m.daysBehind-d.daysBehind),o=r[0];return{pageId:o.pageId,title:o.title,space:o.space,url:o.url,lastModified:o.lastModified,repos:r.map(d=>d.repo),latestPush:r.reduce((d,m)=>m.pushedAt>d?m.pushedAt:d,r[0].pushedAt),daysBehind:o.daysBehind,mine:o.mine!==!1}})}function lp(a,i){const u=i[a.pageId];return u!==void 0&&a.latestPush<=u}function $x(a,i){return a.filter(u=>!lp(u,i))}function rg(a,i){const u=new Set(i.map(r=>r.pageId));return Object.fromEntries(Object.entries(a).filter(([r])=>u.has(r)))}const ap={recent:"更新が新しい順",behind:"遅れが大きい順"},Wx=Object.keys(ap);function Fx(a,i){const u=(r,o)=>r.title.localeCompare(o.title);return i==="behind"?[...a].sort((r,o)=>o.daysBehind-r.daysBehind||u(r,o)):[...a].sort((r,o)=>r.lastModified<o.lastModified?1:r.lastModified>o.lastModified?-1:u(r,o))}function Ix(a,i){const u=i.space!==null&&a.some(o=>o.space===i.space)?i.space:null,r=i.only==="others"&&!tp(a)||i.only==="watched"&&!np(a);return{space:u,query:i.query,only:r?"all":i.only}}function Px(a,i){const u=i.query.trim().toLowerCase();return a.filter(r=>!(i.space!==null&&r.space!==i.space||i.only==="others"&&r.byMe!==!1||i.only==="watched"&&r.watched!==!0||i.only==="drift"&&r.drifts.length===0||u&&!r.title.toLowerCase().includes(u)&&!Ui(r.space).toLowerCase().includes(u)))}function eb(a){const i=new Map;for(const u of a)i.set(u.space,(i.get(u.space)??0)+1);return[...i].map(([u,r])=>({space:u,count:r})).sort((u,r)=>r.count-u.count||Ui(u.space).localeCompare(Ui(r.space)))}const tb={};function nb({drifts:a}){const{data:i,mutate:u}=yt(),r=(i==null?void 0:i.wikiChecked)??tb,[o,d]=S.useState(!1),[m,v]=S.useState("recent"),[y,g]=S.useState(!1),b=S.useMemo(()=>Jx(a),[a]),x=S.useMemo(()=>$x(b,r),[b,r]),N=S.useMemo(()=>Fx(y?b:x,m),[b,x,y,m]);function w(z){u(q=>{q.wikiChecked={...rg(q.wikiChecked??{},b),[z.pageId]:z.latestPush}})}function M(){u(z=>{const q=rg(z.wikiChecked??{},b);for(const X of x)q[X.pageId]=X.latestPush;z.wikiChecked=q})}const C=S.useRef(null),D=S.useRef(null),[k,K]=S.useState({x:0,y:0});return S.useLayoutEffect(()=>{if(!o||!C.current||!D.current)return;const z=C.current.getBoundingClientRect(),q=D.current.getBoundingClientRect().width;K({x:Math.max(8,Math.min(z.right-q,window.innerWidth-q-8)),y:z.bottom+6})},[o]),S.useEffect(()=>{if(!o)return;function z(X){var V,P;const $=X.target;(V=D.current)!=null&&V.contains($)||(P=C.current)!=null&&P.contains($)||d(!1)}function q(X){X.key==="Escape"&&d(!1)}return document.addEventListener("pointerdown",z),document.addEventListener("keydown",q),()=>{document.removeEventListener("pointerdown",z),document.removeEventListener("keydown",q)}},[o]),b.length===0?null:h.jsxs(h.Fragment,{children:[h.jsxs("button",{ref:C,type:"button",onClick:()=>d(z=>!z),"aria-haspopup":"dialog","aria-expanded":o,"aria-label":`Wiki要確認。${x.length}件`,title:"Confluenceのページを書いたあとに、そのページが指すrepoへpushがあったもの",className:"relative flex items-center gap-1 rounded-md border border-line-strong px-2 py-1 text-xs text-fg-muted transition-colors hover:text-fg",children:["Wiki要確認",h.jsx("span",{className:"rounded bg-amber-400/15 px-1 font-mono text-xs text-amber-300",children:x.length})]}),o&&gl.createPortal(h.jsxs("div",{ref:D,role:"dialog","aria-label":"Wiki要確認",style:{position:"fixed",left:k.x,top:k.y,backdropFilter:"blur(12px)"},className:"z-50 w-[min(30rem,calc(100vw-1rem))] overflow-hidden rounded-lg border border-line bg-panel/85 shadow-xl",children:[h.jsxs("div",{className:"border-b border-line px-3 py-2",children:[h.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[h.jsxs("span",{className:"text-sm text-fg",children:["Wiki要確認 ",h.jsxs("span",{className:"font-mono text-xs text-fg-muted",children:[x.length,"件"]})]}),h.jsxs("div",{className:"flex shrink-0 items-baseline gap-2",children:[h.jsx("div",{className:"flex gap-2",role:"group","aria-label":"並び順",children:Wx.map(z=>h.jsx("button",{type:"button",onClick:()=>v(z),"aria-pressed":m===z,className:`text-xs transition-colors ${m===z?"text-fg":"text-fg-muted hover:text-fg"}`,children:ap[z]},z))}),h.jsx("button",{type:"button",onClick:()=>g(z=>!z),"aria-pressed":y,title:"確認済みも含めて見る",className:`text-xs hover:text-fg ${y?"text-fg":"text-fg-muted"}`,children:"履歴"}),x.length>0&&h.jsx("button",{type:"button",onClick:M,className:"text-xs text-fg-muted hover:text-fg",children:"すべて確認"})]})]}),h.jsx("p",{className:"mt-1 text-xs text-fg-muted",children:"ページを書いたあとに実装が進んだものです。値は実装が正なので、直す先はページのほうです。確認したものは数から減り、そのあと実装が進めばまた出ます"})]}),h.jsxs("ul",{className:"max-h-80 overflow-y-auto",children:[N.length===0&&h.jsx("li",{className:"px-3 py-6 text-center text-sm text-fg-muted",children:"確認していないページはありません"}),N.map(z=>{const q=lp(z,r);return h.jsxs("li",{"data-testid":"drift",className:`flex items-start gap-2 border-b border-line/60 px-3 py-2 last:border-b-0 ${q?"opacity-70":""}`,children:[h.jsxs("a",{href:z.url,target:"_blank",rel:"noreferrer",className:"block min-w-0 flex-1 hover:text-fg",children:[h.jsxs("div",{className:"flex items-baseline gap-2 text-xs",children:[h.jsx("span",{className:"shrink-0 font-mono text-amber-400",children:z.space}),!z.mine&&h.jsx("span",{className:"shrink-0 text-fg-muted",children:"他人のページ"}),h.jsxs("span",{className:"min-w-0 flex-1 truncate text-fg-muted",title:z.repos.join(", "),children:[z.repos[0],z.repos.length>1?` ほか${z.repos.length-1}`:""]}),h.jsxs("span",{className:"shrink-0 font-mono text-fg-faint",children:[z.daysBehind,"日"]})]}),h.jsx("div",{className:"mt-0.5 truncate text-sm text-fg",children:z.title}),h.jsxs("div",{className:"mt-0.5 font-mono text-xs text-fg-faint",children:["ページ ",z.lastModified.slice(0,10)," / push ",z.latestPush.slice(0,10)]})]}),!q&&h.jsx("button",{type:"button",onClick:()=>w(z),"aria-label":`確認した: ${z.title}`,title:"確認した。実装がさらに進めばまた出ます",className:"shrink-0 rounded border border-line-strong px-1.5 text-xs text-fg-muted hover:text-fg",children:"確認"})]},z.pageId)})]})]}),document.body)]})}function lb({drifts:a}){const{pages:i,loading:u}=Vx(),[r,o]=S.useState(""),[d,m]=S.useState(null),[v,y]=S.useState("all"),g=S.useMemo(()=>Zx(i,a),[i,a]),b=S.useMemo(()=>eb(g),[g]),x=S.useMemo(()=>tp(g),[g]),N=S.useMemo(()=>np(g),[g]),w=S.useMemo(()=>Ix(g,{space:d,query:r,only:v}),[g,d,r,v]),M=S.useMemo(()=>Px(g,w),[g,w]);return u?h.jsx("div",{className:"grid h-full place-items-center font-mono text-sm text-fg-muted",children:"読み込み中…"}):g.length===0?h.jsxs("div",{className:"grid h-full place-items-center p-8 text-center text-sm text-fg-muted",children:["表示できるWikiのページがありません。",h.jsx("br",{}),"Atlassianの設定を入れて同期すると出ます。手順はREADMEの「Jira / Confluenceを見る」にあります。"]}):h.jsxs("div",{className:"mx-auto flex h-full max-w-4xl flex-col gap-4 overflow-y-auto p-5",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-2",role:"search",children:[h.jsx("input",{type:"search","aria-label":"Wikiのページをタイトル・スペースで検索",value:r,onChange:C=>o(C.target.value),placeholder:"Wikiのページをタイトル・スペースで検索","data-shortcut":"search",className:"min-w-[240px] flex-1 rounded-md border border-line-strong bg-panel-2 px-3 py-2 text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}),h.jsx("div",{className:"flex overflow-hidden rounded-lg border border-line",children:Qx.filter(C=>(C!=="others"||x)&&(C!=="watched"||N)).map(C=>h.jsx("button",{type:"button",onClick:()=>y(C),"aria-pressed":w.only===C,className:`px-2.5 py-1.5 text-xs transition-colors ${w.only===C?"bg-panel font-medium text-fg":"text-fg-muted hover:text-fg"}`,children:ep[C]},C))})]}),b.length>1&&h.jsx("div",{className:"flex flex-wrap gap-1",role:"group","aria-label":"スペースで絞る",children:b.map(C=>{const D=w.space===C.space;return h.jsxs("button",{type:"button",onClick:()=>m(D?null:C.space),"aria-pressed":D,className:`rounded-md border px-2 py-0.5 font-mono text-xs transition-colors ${D?"border-emerald-500/60 bg-emerald-400/10 font-medium text-emerald-300":"border-line-strong text-fg-muted hover:text-fg"}`,children:[Ui(C.space)," ",h.jsx("span",{className:"text-fg-faint",children:C.count})]},C.space)})}),h.jsxs("p",{className:"font-mono text-xs text-fg-faint",children:[M.length,"件",M.length!==g.length?` / ${g.length}件`:""]}),M.length===0?h.jsx("p",{className:"py-8 text-center text-sm text-fg-muted",children:"条件に合うページがありません"}):h.jsx("ul",{className:"divide-y divide-line/60 rounded-lg border border-line bg-panel",children:M.map(C=>h.jsx("li",{className:"px-4 py-2.5",children:h.jsxs("a",{href:C.url,target:"_blank",rel:"noreferrer",className:"block hover:text-fg",children:[h.jsxs("div",{className:"flex items-baseline gap-2 text-xs",children:[h.jsx("span",{className:"font-mono text-amber-400",children:Ui(C.space)}),C.byMe===!1&&h.jsx("span",{className:"text-fg-muted",children:"他人が更新"}),C.drifts.length>0&&h.jsxs("span",{className:"rounded bg-amber-400/15 px-1 font-mono text-amber-300",title:C.drifts.map(D=>D.repo).join(", "),children:["要確認",C.daysBehind,"日"]}),h.jsx("span",{className:"ml-auto shrink-0 font-mono text-fg-faint",children:C.lastModified.slice(0,10)})]}),h.jsx("div",{className:"mt-0.5 truncate text-sm text-fg",children:C.title})]})},C.id))})]})}const ab=3e4;function ib(){S.useEffect(()=>{let a=null,i=!1;const u=async()=>{try{const o=await fetch("/data/meta.json",{cache:"no-store"});if(!o.ok)return;const d=await o.json();if(!d.lastSyncAt||i)return;a===null?a=d.lastSyncAt:d.lastSyncAt!==a&&(a=d.lastSyncAt,Ay())}catch{}};u();const r=setInterval(u,ab);return()=>{i=!0,clearInterval(r)}},[])}function Uo(a,i){return i.readIds.includes(a.id)?!1:!i.readAt||a.at>i.readAt}function ub(a,i){return a.filter(u=>Uo(u,i))}function sb(a,i,u){const r=new Map(i.map(o=>[o.id,o.at]));return a.filter(o=>{const d=r.get(o);return d===void 0?!1:!u||d>u})}function rb(a){return a.source==="wiki"?`wiki:${a.id.split(":")[1]??a.title}`:a.source==="slack"?a.id:`${a.repo}#${a.number}`}function cb(a){const i=new Map;for(const u of a){const r=rb(u);i.set(r,[...i.get(r)??[],u])}return[...i.values()].map(u=>{const r=[...u].sort((o,d)=>o.at<d.at?1:o.at>d.at?-1:0);return{...r[0],members:r}})}function eo(a,i){return a.members.some(u=>Uo(u,i))}function Ta(a){const i=a.actor??"誰か";switch(a.kind){case"changes_requested":return`${i}が要修正`;case"approved":return`${i}が承認`;case"reviewed":return`${i}がレビューでコメント`;case"commented":return`${i}がコメント`;case"review_update":return`${i}が更新(レビュー中)`;case"wiki_updated":return"Confluenceのページが更新";case"wiki_added":return"Confluenceにページが追加";case"slack_mention":return`${i}があなたに言及`;case"review_requested":return`レビュー依頼(${i}から)`;case"addressed":return"対応済み、再レビュー待ち";case"closed":return"閉じられた(マージかクローズ)"}}function ob(a){return a.source==="slack"?{title:Ta(a),body:`#${a.repo}`}:a.source==="wiki"?{title:`${a.repo} ${Ta(a)}`,body:a.title}:{title:`${a.repo.split("/")[1]??a.repo} #${a.number} ${Ta(a)}`,body:a.title}}function fb(a,i){return a.source==="slack"?`#${a.repo}`:a.source==="wiki"?a.repo:`${i} #${a.number}`}const db={review_requested:"blocking",review_update:"blocking",slack_mention:"blocking",changes_requested:"yours",commented:"yours",reviewed:"yours",approved:"fyi",addressed:"fyi",closed:"fyi",wiki_updated:"fyi",wiki_added:"fyi"},ho=["blocking","yours","fyi"],hb={blocking:"他人を待たせている",yours:"あなたの番",fyi:"知らせ"};function mb(a){if(!a)return!1;const i=a.toLowerCase();return i.endsWith("[bot]")||/^(dependabot|renovate|copilot|github-actions)/.test(i)}function mo(a){const i=db[a.kind]??"fyi";return i==="blocking"&&mb(a.actor)?"fyi":i}function gb(a,i){if(!i)return!1;const u=a.indexOf("/");return u<0?!1:a.slice(0,u).toLowerCase()!==i.toLowerCase()}function cg(a,i){return a.source==="wiki"||a.source==="slack"||gb(a.repo,i)}function pb(a,i=null){return[...a].sort((u,r)=>{const o=ho.indexOf(mo(u))-ho.indexOf(mo(r));if(o!==0)return o;const d=Number(cg(r,i))-Number(cg(u,i));return d!==0?d:u.at<r.at?1:u.at>r.at?-1:0})}function vb(a,i=null){const u=pb(a,i);return ho.map(r=>({group:r,items:u.filter(o=>mo(o)===r)})).filter(r=>r.items.length>0)}function yb(a,i){return a.filter(u=>!i||u.at>i).reduce((u,r)=>u+r.count,0)}function xb(){const a=Yn(),[i,u]=S.useState([]);return S.useEffect(()=>{let r=!1;return fetch("/data/skipped.json").then(o=>o.ok?o.json():[]).then(o=>{!r&&Array.isArray(o)&&u(o)}).catch(()=>{}),()=>{r=!0}},[a]),i}const bb=[];function Sb(){return h.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.4","aria-hidden":"true",children:[h.jsx("path",{d:"M4 6.5a4 4 0 0 1 8 0c0 3 .8 4 1.5 4.5h-11C3.2 10.5 4 9.5 4 6.5Z",strokeLinejoin:"round"}),h.jsx("path",{d:"M6.5 13a1.6 1.6 0 0 0 3 0",strokeLinecap:"round"})]})}function Eb({events:a,login:i=null}){const{data:u,mutate:r}=yt(),o=(u==null?void 0:u.inboxReadAt)??null,d=(u==null?void 0:u.inboxReadIds)??bb,m=S.useMemo(()=>({readAt:o,readIds:d}),[o,d]),v=(u==null?void 0:u.notify)??Hl,[y,g]=S.useState(!1),[b,x]=S.useState(!1),N=yb(xb(),o),w=S.useMemo(()=>cb(a),[a]),M=S.useMemo(()=>w.filter(te=>eo(te,m)),[w,m]),C=b?w:M,[D,k]=S.useState(!1),[K,z]=S.useState(()=>typeof Notification>"u"?"unsupported":Notification.permission),q=S.useRef(null),X=S.useRef(null),[$,V]=S.useState({x:0,y:0}),P=S.useRef(null);S.useEffect(()=>{if(P.current===null){P.current=new Set(a.map(I=>I.id));return}if(K!=="granted")return;const te=a.filter(I=>{var ce;return!((ce=P.current)!=null&&ce.has(I.id))});if(te.length!==0&&zy(v,new Date,(u==null?void 0:u.lastNotifiedAt)??null)){for(const I of te){P.current.add(I.id);const{title:ce,body:ve}=ob(I),U=new Notification(ce,{body:ve,tag:I.id});U.onclick=()=>window.open(I.url,"_blank","noreferrer")}r(I=>{I.lastNotifiedAt=new Date().toISOString()})}},[a,K,v,u==null?void 0:u.lastNotifiedAt,r]),S.useLayoutEffect(()=>{if(!D||!q.current||!X.current)return;const te=q.current.getBoundingClientRect(),I=X.current.getBoundingClientRect().width;V({x:Math.max(8,Math.min(te.right-I,window.innerWidth-I-8)),y:te.bottom+6})},[D]),S.useEffect(()=>{if(!D)return;function te(ce){var U,Q;const ve=ce.target;(U=X.current)!=null&&U.contains(ve)||(Q=q.current)!=null&&Q.contains(ve)||k(!1)}function I(ce){ce.key==="Escape"&&k(!1)}return document.addEventListener("pointerdown",te),document.addEventListener("keydown",I),()=>{document.removeEventListener("pointerdown",te),document.removeEventListener("keydown",I)}},[D]);function me(){var I;const te=(I=a[0])==null?void 0:I.at;te&&r(ce=>{ce.inboxReadAt=te,ce.inboxReadIds=[]})}function de(te){eo(te,m)&&r(I=>{const ce=sb(I.inboxReadIds??[],a,I.inboxReadAt??null),ve=te.members.filter(U=>Uo(U,{readAt:I.inboxReadAt??null,readIds:ce})).map(U=>U.id);I.inboxReadIds=[...ce,...ve.filter(U=>!ce.includes(U))]})}async function fe(){typeof Notification>"u"||z(await Notification.requestPermission())}return h.jsxs(h.Fragment,{children:[h.jsxs("button",{ref:q,type:"button",onClick:()=>k(te=>!te),"aria-haspopup":"dialog","aria-expanded":D,"aria-label":M.length>0?`受信箱。未読${M.length}件`:"受信箱",title:"自分のPRに付いたレビュー、レビュー依頼、対応済みの再レビュー待ちなど",className:"relative flex items-center gap-1 rounded-md border border-line-strong px-2 py-1 text-xs text-fg-muted transition-colors hover:text-fg",children:[h.jsx(Sb,{}),"受信箱",M.length>0&&h.jsx("span",{"data-testid":"inbox-count",className:"rounded bg-rose-400/15 px-1 font-mono text-xs text-rose-300",children:M.length})]}),D&&gl.createPortal(h.jsxs("div",{ref:X,role:"dialog","aria-label":"受信箱",style:{position:"fixed",left:$.x,top:$.y,backdropFilter:"blur(12px)"},className:"z-50 flex max-h-[calc(100vh-5rem)] w-[min(28rem,calc(100vw-1rem))] flex-col overflow-y-auto rounded-lg border border-line bg-panel/85 shadow-xl",children:[h.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-line px-3 py-2",children:[h.jsxs("span",{className:"flex items-baseline gap-2 text-sm text-fg",children:["受信箱",h.jsxs("span",{className:"font-mono text-xs text-fg-muted",children:["未読",M.length]}),N>0&&h.jsxs("span",{title:"変化はあったが、あなたの手は要らないと判断したものです",className:"font-mono text-xs text-fg-faint",children:["見送り",N]})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[K==="default"&&h.jsx("button",{type:"button",onClick:()=>void fe(),className:"text-xs text-fg-muted hover:text-fg",children:"通知を許可"}),h.jsx("button",{type:"button",onClick:()=>g(te=>!te),"aria-expanded":y,className:"text-xs text-fg-muted hover:text-fg",children:"知らせ方"}),h.jsx("button",{type:"button",onClick:()=>x(te=>!te),"aria-pressed":b,title:"読んだものも含めて振り返る",className:`text-xs hover:text-fg ${b?"text-fg":"text-fg-muted"}`,children:"履歴"}),M.length>0&&h.jsx("button",{type:"button",onClick:me,className:"text-xs text-fg-muted hover:text-fg",children:"すべて既読"})]})]}),y&&h.jsx(wb,{value:v,onChange:te=>r(I=>{I.notify=te})}),h.jsxs("ul",{children:[C.length===0&&h.jsx("li",{className:"px-3 py-6 text-center text-sm text-fg-muted",children:a.length>0?"未読はありません。読んだものは「履歴」で見られます":N>0?`あなたの手が要るものはありません。${N}件の変化は知らせずに置きました`:"まだ何も届いていません。`--watch`で開いておくと、同期のたびに自分に起きたことが溜まります"}),vb(C,i).flatMap(te=>[h.jsxs("li",{className:"flex items-baseline gap-2 border-b border-line/60 bg-panel-2/60 px-3 py-1 font-mono text-xs text-fg-faint",children:[h.jsx("span",{children:hb[te.group]}),h.jsx("span",{children:te.items.length})]},`g-${te.group}`),...te.items.map(I=>{const ce=eo(I,m);return h.jsxs("li",{"data-testid":"event",className:`flex items-start gap-2 border-b border-line/60 px-3 py-2 last:border-b-0 ${ce?"":"opacity-70"}`,children:[h.jsxs("a",{href:I.url,target:"_blank",rel:"noreferrer",onClick:()=>de(I),className:"block min-w-0 flex-1 hover:text-fg",children:[h.jsxs("div",{className:"flex items-baseline gap-2 text-xs",children:[h.jsx("span",{className:`min-w-0 max-w-[60%] truncate font-mono ${ce?"text-emerald-400":"text-fg-faint"}`,children:fb(I,qi(I.repo,i))}),h.jsx("span",{className:"min-w-0 flex-1 truncate text-fg-muted",children:Ta(I)}),I.members.length>1&&h.jsxs("span",{className:"shrink-0 font-mono text-fg-faint",children:["ほか",I.members.length-1]}),h.jsx("span",{className:"shrink-0 font-mono text-fg-faint",children:I.at.slice(5,16).replace("T"," ")})]}),I.title!==""&&h.jsx("div",{className:"mt-0.5 truncate text-sm text-fg",children:I.title})]}),ce&&h.jsx("button",{type:"button",onClick:()=>de(I),"aria-label":`既読にする: ${I.title||Ta(I)}`,title:"既読にする",className:"shrink-0 rounded border border-line-strong px-1.5 text-xs text-fg-muted hover:text-fg",children:"既読"})]},I.id)})])]})]}),document.body)]})}const Nb=["日","月","火","水","木","金","土"];function wb({value:a,onChange:i}){const u=o=>i({...a,...o}),r=o=>u({weekdays:a.weekdays.includes(o)?a.weekdays.filter(d=>d!==o):[...a.weekdays,o].sort()});return h.jsxs("div",{className:"border-b border-line px-3 py-2 text-xs",children:[h.jsx("p",{className:"mb-2 text-fg-muted",children:Uy(a)}),h.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[h.jsx("span",{className:"w-14 shrink-0 text-fg-faint",children:"出し方"}),h.jsxs("select",{value:a.mode,onChange:o=>u({mode:o.target.value}),"aria-label":"通知の出し方",className:"rounded border border-line-strong bg-panel-2 px-1 py-0.5 text-xs text-fg",children:[h.jsx("option",{value:"always",children:"届いたとき"}),h.jsx("option",{value:"digest",children:"決まった時刻にまとめて"})]})]}),a.mode==="digest"&&h.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[h.jsx("span",{className:"w-14 shrink-0 text-fg-faint",children:"時刻"}),h.jsx("input",{value:a.times.join(" "),onChange:o=>u({times:o.target.value.split(/[\s,]+/).filter(Boolean)}),"aria-label":"まとめて知らせる時刻",placeholder:"11:00 15:00 18:30",className:"min-w-0 flex-1 rounded border border-line-strong bg-panel-2 px-1 py-0.5 font-mono text-xs text-fg"})]}),h.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[h.jsx("span",{className:"w-14 shrink-0 text-fg-faint",children:"時間帯"}),h.jsx("input",{type:"number",min:0,max:24,value:a.fromHour,onChange:o=>u({fromHour:Number(o.target.value)}),"aria-label":"知らせ始める時刻",className:"w-14 rounded border border-line-strong bg-panel-2 px-1 py-0.5 font-mono text-xs text-fg"}),h.jsx("span",{className:"text-fg-faint",children:"時から"}),h.jsx("input",{type:"number",min:0,max:24,value:a.toHour,onChange:o=>u({toHour:Number(o.target.value)}),"aria-label":"知らせ終える時刻",className:"w-14 rounded border border-line-strong bg-panel-2 px-1 py-0.5 font-mono text-xs text-fg"}),h.jsx("span",{className:"text-fg-faint",children:"時まで"})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:"w-14 shrink-0 text-fg-faint",children:"曜日"}),h.jsx("div",{className:"flex flex-wrap gap-1",children:Nb.map((o,d)=>h.jsx("button",{type:"button",onClick:()=>r(d),"aria-pressed":a.weekdays.includes(d),className:`rounded border px-1.5 py-0.5 text-xs ${a.weekdays.includes(d)?"border-line-strong text-fg":"border-line text-fg-faint"}`,children:o},d))})]})]})}const hl="px-3 py-2 text-left font-mono text-xs font-semibold tracking-wider text-fg-faint uppercase";function jb({stats:a,selectedRepo:i,onSelect:u,ownLogin:r}){const{data:o,mutate:d}=yt(),{menu:m,openAtPointer:v,toggleFromButton:y,close:g}=Ig();return a.length===0?h.jsx("p",{className:"py-10 text-center text-sm text-fg-muted",children:"該当するリポジトリがありません"}):h.jsxs("div",{className:"overflow-x-auto",children:[h.jsxs("table",{className:"w-full border-collapse text-sm",children:[h.jsx("thead",{children:h.jsxs("tr",{className:"border-b border-line",children:[h.jsx("th",{className:hl,"aria-label":"bookmark"}),h.jsx("th",{className:hl,children:"repo"}),h.jsx("th",{className:hl,children:"言語"}),h.jsx("th",{className:hl,children:"タグ"}),h.jsx("th",{className:`${hl} text-right`,children:"commits"}),h.jsx("th",{className:`${hl} text-right`,children:"最終push"}),h.jsx("th",{className:`${hl} text-right`,children:"PR/I"}),h.jsx("th",{className:hl,"aria-label":"menu"})]})}),h.jsx("tbody",{children:a.map(b=>{const x=b.repo.nameWithOwner,N=To(b.daysSincePush),w=Ns(o,x),M=ws(o,x),C=zo(o,x).map(k=>o==null?void 0:o.tags.defs.find(K=>K.id===k)).filter(k=>k!=null),D=i===x;return h.jsxs("tr",{onClick:()=>u(x),onContextMenu:k=>v(k,x,b.repo.url),"aria-current":D?"true":void 0,className:`cursor-pointer border-b border-line/60 ${D?"bg-emerald-400/[0.06]":"hover:bg-white/[0.025]"}`,children:[h.jsx("td",{className:"px-3 py-2",children:h.jsx("button",{type:"button",onClick:k=>{k.stopPropagation(),d(K=>Es(K,x))},"aria-label":w?"Bookmark を外す":"Bookmark に追加",className:w?"text-amber-400":"text-fg-faint hover:text-fg-muted",children:w?"★":"☆"})}),h.jsx("td",{className:"px-3 py-2",children:h.jsxs("button",{type:"button",onClick:k=>{k.stopPropagation(),u(x)},className:"flex items-center gap-2 text-left",children:[h.jsx("span",{className:`h-2 w-2 shrink-0 rounded-full ${Qg[N]}`}),h.jsx("span",{className:"font-mono text-fg",children:qi(x,r)}),b.repo.isPrivate&&h.jsx("span",{className:"rounded bg-white/5 px-1 font-mono text-xs text-fg-faint",children:"private"}),M&&h.jsx("span",{className:"rounded border border-line px-1 font-mono text-xs text-fg-muted",children:"非表示"})]})}),h.jsx("td",{className:"px-3 py-2 text-fg-muted",children:b.repo.primaryLanguage??"—"}),h.jsx("td",{className:"px-3 py-2",children:h.jsx("div",{className:"flex flex-wrap gap-1",children:C.map(k=>h.jsx(zi,{tag:k},k.id))})}),h.jsx("td",{className:"px-3 py-2 text-right font-mono tabular-nums text-fg",children:b.totalCommits}),h.jsx("td",{className:`px-3 py-2 text-right ${Mo[N]}`,children:Ro(b.daysSincePush)}),h.jsx("td",{className:"px-3 py-2 text-right font-mono text-xs text-fg-faint",children:b.repo.openPrCount>0||b.repo.openIssueCount>0?`${b.repo.openPrCount}/${b.repo.openIssueCount}`:"—"}),h.jsx("td",{className:"px-1 py-2 text-right",children:h.jsx("button",{type:"button",onClick:k=>y(k,x,b.repo.url),"aria-label":`${x}のメニュー`,"aria-haspopup":"menu","aria-expanded":(m==null?void 0:m.repo)===x,className:"rounded px-1.5 text-fg-faint hover:text-fg-muted",children:"⋯"})})]},x)})})]}),m&&h.jsx(Pg,{menu:m,onClose:g})]})}function Ab(){const{saveStatus:a,loadError:i}=yt();return i?h.jsx("span",{className:"rounded-md border border-rose-500/40 bg-rose-500/10 px-2 py-0.5 text-xs text-rose-300",title:`ローカル保存が使えません: ${i}`,children:"保存無効"}):a==="error"?h.jsx("span",{className:"rounded-md border border-rose-500/40 bg-rose-500/10 px-2 py-0.5 text-xs text-rose-300",children:"保存に失敗"}):a==="saving"?h.jsx("span",{className:"text-xs text-fg-faint",children:"保存中…"}):a==="saved"?h.jsx("span",{className:"text-xs text-fg-faint",children:"保存済み"}):null}function Db(){const{storage:a,connectFolder:i,reconnect:u,disconnect:r}=yt(),o=a.error?h.jsx("span",{className:"text-xs text-rose-300",title:a.error,children:"⚠ 同期エラー"}):null,d=h.jsx("button",{type:"button",onClick:()=>void r(),className:"text-xs text-fg-faint hover:text-fg-muted",title:"共有をやめて、このブラウザの中だけに保存する(今の内容はこのブラウザへ書き戻す)",children:"共有をやめる"});return a.kind==="filesystem"?a.needsReconnect||a.error?h.jsxs("div",{className:"flex items-center gap-1.5",children:[o,h.jsx("button",{type:"button",onClick:()=>void u(),className:"rounded-md border border-amber-500/40 bg-amber-500/10 px-2 py-0.5 text-xs text-amber-300",title:"フォルダへの書き込み許可が切れた。もう一度許可すると共有が続く",children:"共有を再開"}),d]}):h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsxs("span",{className:"rounded-md border border-emerald-500/30 bg-emerald-500/10 px-2 py-0.5 text-xs text-emerald-300",title:`Bookmark・タグ・メモを「${a.dirName}」に保存している。同じフォルダを選んだ他のPCでも同じ内容が見える`,children:["📁 ",a.dirName,"で共有中"]}),d]}):a.needsReconnect?h.jsxs("button",{type:"button",onClick:()=>void u(),className:"rounded-md border border-amber-500/40 bg-amber-500/10 px-2 py-0.5 text-xs text-amber-300",title:`前回「${a.dirName}」で共有していた。フォルダへの許可をもう一度出すと続きから使える`,children:["⚠ 「",a.dirName,"」の共有を再開"]}):a.supported?h.jsxs("div",{className:"flex items-center gap-1.5",children:[o,h.jsx("button",{type:"button",onClick:()=>void i(),className:"rounded-md border border-line-strong px-2 py-0.5 text-xs text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg",title:"Bookmark・タグ・メモは今このブラウザの中にだけある。OneDrive / iCloud / Dropboxの中のフォルダを選ぶと、そこに保存され、同じフォルダを選んだ他のPCでも同じ内容が見える",children:"☁ メモを他のPCと共有"})]}):h.jsx("span",{className:"text-xs text-fg-faint",title:"Bookmark・タグ・メモはこのブラウザの中にだけ保存される。他のPCと共有するにはChromeかEdgeが要る(フォルダを選ぶ機能が無い)",children:"このブラウザに保存"})}function Cb(){for(var a=arguments.length,i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];return S.useMemo(()=>r=>{i.forEach(o=>o(r))},i)}const js=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ba(a){const i=Object.prototype.toString.call(a);return i==="[object Window]"||i==="[object global]"}function Bo(a){return"nodeType"in a}function Tt(a){var i,u;return a?Ba(a)?a:Bo(a)&&(i=(u=a.ownerDocument)==null?void 0:u.defaultView)!=null?i:window:window}function Lo(a){const{Document:i}=Tt(a);return a instanceof i}function Gi(a){return Ba(a)?!1:a instanceof Tt(a).HTMLElement}function ip(a){return a instanceof Tt(a).SVGElement}function La(a){return a?Ba(a)?a.document:Bo(a)?Lo(a)?a:Gi(a)||ip(a)?a.ownerDocument:document:document:document}const vn=js?S.useLayoutEffect:S.useEffect;function Ho(a){const i=S.useRef(a);return vn(()=>{i.current=a}),S.useCallback(function(){for(var u=arguments.length,r=new Array(u),o=0;o<u;o++)r[o]=arguments[o];return i.current==null?void 0:i.current(...r)},[])}function _b(){const a=S.useRef(null),i=S.useCallback((r,o)=>{a.current=setInterval(r,o)},[]),u=S.useCallback(()=>{a.current!==null&&(clearInterval(a.current),a.current=null)},[]);return[i,u]}function Bi(a,i){i===void 0&&(i=[a]);const u=S.useRef(a);return vn(()=>{u.current!==a&&(u.current=a)},i),u}function Xi(a,i){const u=S.useRef();return S.useMemo(()=>{const r=a(u.current);return u.current=r,r},[...i])}function vs(a){const i=Ho(a),u=S.useRef(null),r=S.useCallback(o=>{o!==u.current&&(i==null||i(o,u.current)),u.current=o},[]);return[u,r]}function go(a){const i=S.useRef();return S.useEffect(()=>{i.current=a},[a]),i.current}let to={};function Vi(a,i){return S.useMemo(()=>{if(i)return i;const u=to[a]==null?0:to[a]+1;return to[a]=u,a+"-"+u},[a,i])}function up(a){return function(i){for(var u=arguments.length,r=new Array(u>1?u-1:0),o=1;o<u;o++)r[o-1]=arguments[o];return r.reduce((d,m)=>{const v=Object.entries(m);for(const[y,g]of v){const b=d[y];b!=null&&(d[y]=b+a*g)}return d},{...i})}}const Ma=up(1),Li=up(-1);function Ob(a){return"clientX"in a&&"clientY"in a}function ko(a){if(!a)return!1;const{KeyboardEvent:i}=Tt(a.target);return i&&a instanceof i}function Tb(a){if(!a)return!1;const{TouchEvent:i}=Tt(a.target);return i&&a instanceof i}function po(a){if(Tb(a)){if(a.touches&&a.touches.length){const{clientX:i,clientY:u}=a.touches[0];return{x:i,y:u}}else if(a.changedTouches&&a.changedTouches.length){const{clientX:i,clientY:u}=a.changedTouches[0];return{x:i,y:u}}}return Ob(a)?{x:a.clientX,y:a.clientY}:null}const Hi=Object.freeze({Translate:{toString(a){if(!a)return;const{x:i,y:u}=a;return"translate3d("+(i?Math.round(i):0)+"px, "+(u?Math.round(u):0)+"px, 0)"}},Scale:{toString(a){if(!a)return;const{scaleX:i,scaleY:u}=a;return"scaleX("+i+") scaleY("+u+")"}},Transform:{toString(a){if(a)return[Hi.Translate.toString(a),Hi.Scale.toString(a)].join(" ")}},Transition:{toString(a){let{property:i,duration:u,easing:r}=a;return i+" "+u+"ms "+r}}}),og="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Mb(a){return a.matches(og)?a:a.querySelector(og)}const Rb={display:"none"};function zb(a){let{id:i,value:u}=a;return Ot.createElement("div",{id:i,style:Rb},u)}function Ub(a){let{id:i,announcement:u,ariaLiveType:r="assertive"}=a;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Ot.createElement("div",{id:i,style:o,role:"status","aria-live":r,"aria-atomic":!0},u)}function Bb(){const[a,i]=S.useState("");return{announce:S.useCallback(r=>{r!=null&&i(r)},[]),announcement:a}}const sp=S.createContext(null);function Lb(a){const i=S.useContext(sp);S.useEffect(()=>{if(!i)throw new Error("useDndMonitor must be used within a children of <DndContext>");return i(a)},[a,i])}function Hb(){const[a]=S.useState(()=>new Set),i=S.useCallback(r=>(a.add(r),()=>a.delete(r)),[a]);return[S.useCallback(r=>{let{type:o,event:d}=r;a.forEach(m=>{var v;return(v=m[o])==null?void 0:v.call(m,d)})},[a]),i]}const kb={draggable:`
|
|
53
|
+
To pick up a draggable item, press the space bar.
|
|
54
|
+
While dragging, use the arrow keys to move the item.
|
|
55
|
+
Press space again to drop the item in its new position, or press escape to cancel.
|
|
56
|
+
`},qb={onDragStart(a){let{active:i}=a;return"Picked up draggable item "+i.id+"."},onDragOver(a){let{active:i,over:u}=a;return u?"Draggable item "+i.id+" was moved over droppable area "+u.id+".":"Draggable item "+i.id+" is no longer over a droppable area."},onDragEnd(a){let{active:i,over:u}=a;return u?"Draggable item "+i.id+" was dropped over droppable area "+u.id:"Draggable item "+i.id+" was dropped."},onDragCancel(a){let{active:i}=a;return"Dragging was cancelled. Draggable item "+i.id+" was dropped."}};function Yb(a){let{announcements:i=qb,container:u,hiddenTextDescribedById:r,screenReaderInstructions:o=kb}=a;const{announce:d,announcement:m}=Bb(),v=Vi("DndLiveRegion"),[y,g]=S.useState(!1);if(S.useEffect(()=>{g(!0)},[]),Lb(S.useMemo(()=>({onDragStart(x){let{active:N}=x;d(i.onDragStart({active:N}))},onDragMove(x){let{active:N,over:w}=x;i.onDragMove&&d(i.onDragMove({active:N,over:w}))},onDragOver(x){let{active:N,over:w}=x;d(i.onDragOver({active:N,over:w}))},onDragEnd(x){let{active:N,over:w}=x;d(i.onDragEnd({active:N,over:w}))},onDragCancel(x){let{active:N,over:w}=x;d(i.onDragCancel({active:N,over:w}))}}),[d,i])),!y)return null;const b=Ot.createElement(Ot.Fragment,null,Ot.createElement(zb,{id:r,value:o.draggable}),Ot.createElement(Ub,{id:v,announcement:m}));return u?gl.createPortal(b,u):b}var tt;(function(a){a.DragStart="dragStart",a.DragMove="dragMove",a.DragEnd="dragEnd",a.DragCancel="dragCancel",a.DragOver="dragOver",a.RegisterDroppable="registerDroppable",a.SetDroppableDisabled="setDroppableDisabled",a.UnregisterDroppable="unregisterDroppable"})(tt||(tt={}));function ys(){}function fg(a,i){return S.useMemo(()=>({sensor:a,options:i??{}}),[a,i])}function Gb(){for(var a=arguments.length,i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];return S.useMemo(()=>[...i].filter(r=>r!=null),[...i])}const on=Object.freeze({x:0,y:0});function Xb(a,i){return Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2))}function Vb(a,i){let{data:{value:u}}=a,{data:{value:r}}=i;return u-r}function Qb(a,i){let{data:{value:u}}=a,{data:{value:r}}=i;return r-u}function dg(a){let{left:i,top:u,height:r,width:o}=a;return[{x:i,y:u},{x:i+o,y:u},{x:i,y:u+r},{x:i+o,y:u+r}]}function rp(a,i){if(!a||a.length===0)return null;const[u]=a;return u[i]}const cp=a=>{let{collisionRect:i,droppableRects:u,droppableContainers:r}=a;const o=dg(i),d=[];for(const m of r){const{id:v}=m,y=u.get(v);if(y){const g=dg(y),b=o.reduce((N,w,M)=>N+Xb(g[M],w),0),x=Number((b/4).toFixed(4));d.push({id:v,data:{droppableContainer:m,value:x}})}}return d.sort(Vb)};function Kb(a,i){const u=Math.max(i.top,a.top),r=Math.max(i.left,a.left),o=Math.min(i.left+i.width,a.left+a.width),d=Math.min(i.top+i.height,a.top+a.height),m=o-r,v=d-u;if(r<o&&u<d){const y=i.width*i.height,g=a.width*a.height,b=m*v,x=b/(y+g-b);return Number(x.toFixed(4))}return 0}const Zb=a=>{let{collisionRect:i,droppableRects:u,droppableContainers:r}=a;const o=[];for(const d of r){const{id:m}=d,v=u.get(m);if(v){const y=Kb(v,i);y>0&&o.push({id:m,data:{droppableContainer:d,value:y}})}}return o.sort(Qb)};function Jb(a,i,u){return{...a,scaleX:i&&u?i.width/u.width:1,scaleY:i&&u?i.height/u.height:1}}function op(a,i){return a&&i?{x:a.left-i.left,y:a.top-i.top}:on}function $b(a){return function(u){for(var r=arguments.length,o=new Array(r>1?r-1:0),d=1;d<r;d++)o[d-1]=arguments[d];return o.reduce((m,v)=>({...m,top:m.top+a*v.y,bottom:m.bottom+a*v.y,left:m.left+a*v.x,right:m.right+a*v.x}),{...u})}}const Wb=$b(1);function Fb(a){if(a.startsWith("matrix3d(")){const i=a.slice(9,-1).split(/, /);return{x:+i[12],y:+i[13],scaleX:+i[0],scaleY:+i[5]}}else if(a.startsWith("matrix(")){const i=a.slice(7,-1).split(/, /);return{x:+i[4],y:+i[5],scaleX:+i[0],scaleY:+i[3]}}return null}function Ib(a,i,u){const r=Fb(i);if(!r)return a;const{scaleX:o,scaleY:d,x:m,y:v}=r,y=a.left-m-(1-o)*parseFloat(u),g=a.top-v-(1-d)*parseFloat(u.slice(u.indexOf(" ")+1)),b=o?a.width/o:a.width,x=d?a.height/d:a.height;return{width:b,height:x,top:g,right:y+b,bottom:g+x,left:y}}const Pb={ignoreTransform:!1};function Ha(a,i){i===void 0&&(i=Pb);let u=a.getBoundingClientRect();if(i.ignoreTransform){const{transform:g,transformOrigin:b}=Tt(a).getComputedStyle(a);g&&(u=Ib(u,g,b))}const{top:r,left:o,width:d,height:m,bottom:v,right:y}=u;return{top:r,left:o,width:d,height:m,bottom:v,right:y}}function hg(a){return Ha(a,{ignoreTransform:!0})}function e1(a){const i=a.innerWidth,u=a.innerHeight;return{top:0,left:0,right:i,bottom:u,width:i,height:u}}function t1(a,i){return i===void 0&&(i=Tt(a).getComputedStyle(a)),i.position==="fixed"}function n1(a,i){i===void 0&&(i=Tt(a).getComputedStyle(a));const u=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const d=i[o];return typeof d=="string"?u.test(d):!1})}function As(a,i){const u=[];function r(o){if(i!=null&&u.length>=i||!o)return u;if(Lo(o)&&o.scrollingElement!=null&&!u.includes(o.scrollingElement))return u.push(o.scrollingElement),u;if(!Gi(o)||ip(o)||u.includes(o))return u;const d=Tt(a).getComputedStyle(o);return o!==a&&n1(o,d)&&u.push(o),t1(o,d)?u:r(o.parentNode)}return a?r(a):u}function fp(a){const[i]=As(a,1);return i??null}function no(a){return!js||!a?null:Ba(a)?a:Bo(a)?Lo(a)||a===La(a).scrollingElement?window:Gi(a)?a:null:null}function dp(a){return Ba(a)?a.scrollX:a.scrollLeft}function hp(a){return Ba(a)?a.scrollY:a.scrollTop}function vo(a){return{x:dp(a),y:hp(a)}}var it;(function(a){a[a.Forward=1]="Forward",a[a.Backward=-1]="Backward"})(it||(it={}));function mp(a){return!js||!a?!1:a===document.scrollingElement}function gp(a){const i={x:0,y:0},u=mp(a)?{height:window.innerHeight,width:window.innerWidth}:{height:a.clientHeight,width:a.clientWidth},r={x:a.scrollWidth-u.width,y:a.scrollHeight-u.height},o=a.scrollTop<=i.y,d=a.scrollLeft<=i.x,m=a.scrollTop>=r.y,v=a.scrollLeft>=r.x;return{isTop:o,isLeft:d,isBottom:m,isRight:v,maxScroll:r,minScroll:i}}const l1={x:.2,y:.2};function a1(a,i,u,r,o){let{top:d,left:m,right:v,bottom:y}=u;r===void 0&&(r=10),o===void 0&&(o=l1);const{isTop:g,isBottom:b,isLeft:x,isRight:N}=gp(a),w={x:0,y:0},M={x:0,y:0},C={height:i.height*o.y,width:i.width*o.x};return!g&&d<=i.top+C.height?(w.y=it.Backward,M.y=r*Math.abs((i.top+C.height-d)/C.height)):!b&&y>=i.bottom-C.height&&(w.y=it.Forward,M.y=r*Math.abs((i.bottom-C.height-y)/C.height)),!N&&v>=i.right-C.width?(w.x=it.Forward,M.x=r*Math.abs((i.right-C.width-v)/C.width)):!x&&m<=i.left+C.width&&(w.x=it.Backward,M.x=r*Math.abs((i.left+C.width-m)/C.width)),{direction:w,speed:M}}function i1(a){if(a===document.scrollingElement){const{innerWidth:d,innerHeight:m}=window;return{top:0,left:0,right:d,bottom:m,width:d,height:m}}const{top:i,left:u,right:r,bottom:o}=a.getBoundingClientRect();return{top:i,left:u,right:r,bottom:o,width:a.clientWidth,height:a.clientHeight}}function pp(a){return a.reduce((i,u)=>Ma(i,vo(u)),on)}function u1(a){return a.reduce((i,u)=>i+dp(u),0)}function s1(a){return a.reduce((i,u)=>i+hp(u),0)}function r1(a,i){if(i===void 0&&(i=Ha),!a)return;const{top:u,left:r,bottom:o,right:d}=i(a);fp(a)&&(o<=0||d<=0||u>=window.innerHeight||r>=window.innerWidth)&&a.scrollIntoView({block:"center",inline:"center"})}const c1=[["x",["left","right"],u1],["y",["top","bottom"],s1]];class qo{constructor(i,u){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=As(u),o=pp(r);this.rect={...i},this.width=i.width,this.height=i.height;for(const[d,m,v]of c1)for(const y of m)Object.defineProperty(this,y,{get:()=>{const g=v(r),b=o[d]-g;return this.rect[y]+b},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Ti{constructor(i){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(u=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...u)})},this.target=i}add(i,u,r){var o;(o=this.target)==null||o.addEventListener(i,u,r),this.listeners.push([i,u,r])}}function o1(a){const{EventTarget:i}=Tt(a);return a instanceof i?a:La(a)}function lo(a,i){const u=Math.abs(a.x),r=Math.abs(a.y);return typeof i=="number"?Math.sqrt(u**2+r**2)>i:"x"in i&&"y"in i?u>i.x&&r>i.y:"x"in i?u>i.x:"y"in i?r>i.y:!1}var tn;(function(a){a.Click="click",a.DragStart="dragstart",a.Keydown="keydown",a.ContextMenu="contextmenu",a.Resize="resize",a.SelectionChange="selectionchange",a.VisibilityChange="visibilitychange"})(tn||(tn={}));function mg(a){a.preventDefault()}function f1(a){a.stopPropagation()}var je;(function(a){a.Space="Space",a.Down="ArrowDown",a.Right="ArrowRight",a.Left="ArrowLeft",a.Up="ArrowUp",a.Esc="Escape",a.Enter="Enter",a.Tab="Tab"})(je||(je={}));const vp={start:[je.Space,je.Enter],cancel:[je.Esc],end:[je.Space,je.Enter,je.Tab]},d1=(a,i)=>{let{currentCoordinates:u}=i;switch(a.code){case je.Right:return{...u,x:u.x+25};case je.Left:return{...u,x:u.x-25};case je.Down:return{...u,y:u.y+25};case je.Up:return{...u,y:u.y-25}}};class Yo{constructor(i){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=i;const{event:{target:u}}=i;this.props=i,this.listeners=new Ti(La(u)),this.windowListeners=new Ti(Tt(u)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(tn.Resize,this.handleCancel),this.windowListeners.add(tn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(tn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:i,onStart:u}=this.props,r=i.node.current;r&&r1(r),u(on)}handleKeyDown(i){if(ko(i)){const{active:u,context:r,options:o}=this.props,{keyboardCodes:d=vp,coordinateGetter:m=d1,scrollBehavior:v="smooth"}=o,{code:y}=i;if(d.end.includes(y)){this.handleEnd(i);return}if(d.cancel.includes(y)){this.handleCancel(i);return}const{collisionRect:g}=r.current,b=g?{x:g.left,y:g.top}:on;this.referenceCoordinates||(this.referenceCoordinates=b);const x=m(i,{active:u,context:r.current,currentCoordinates:b});if(x){const N=Li(x,b),w={x:0,y:0},{scrollableAncestors:M}=r.current;for(const C of M){const D=i.code,{isTop:k,isRight:K,isLeft:z,isBottom:q,maxScroll:X,minScroll:$}=gp(C),V=i1(C),P={x:Math.min(D===je.Right?V.right-V.width/2:V.right,Math.max(D===je.Right?V.left:V.left+V.width/2,x.x)),y:Math.min(D===je.Down?V.bottom-V.height/2:V.bottom,Math.max(D===je.Down?V.top:V.top+V.height/2,x.y))},me=D===je.Right&&!K||D===je.Left&&!z,de=D===je.Down&&!q||D===je.Up&&!k;if(me&&P.x!==x.x){const fe=C.scrollLeft+N.x,te=D===je.Right&&fe<=X.x||D===je.Left&&fe>=$.x;if(te&&!N.y){C.scrollTo({left:fe,behavior:v});return}te?w.x=C.scrollLeft-fe:w.x=D===je.Right?C.scrollLeft-X.x:C.scrollLeft-$.x,w.x&&C.scrollBy({left:-w.x,behavior:v});break}else if(de&&P.y!==x.y){const fe=C.scrollTop+N.y,te=D===je.Down&&fe<=X.y||D===je.Up&&fe>=$.y;if(te&&!N.x){C.scrollTo({top:fe,behavior:v});return}te?w.y=C.scrollTop-fe:w.y=D===je.Down?C.scrollTop-X.y:C.scrollTop-$.y,w.y&&C.scrollBy({top:-w.y,behavior:v});break}}this.handleMove(i,Ma(Li(x,this.referenceCoordinates),w))}}}handleMove(i,u){const{onMove:r}=this.props;i.preventDefault(),r(u)}handleEnd(i){const{onEnd:u}=this.props;i.preventDefault(),this.detach(),u()}handleCancel(i){const{onCancel:u}=this.props;i.preventDefault(),this.detach(),u()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Yo.activators=[{eventName:"onKeyDown",handler:(a,i,u)=>{let{keyboardCodes:r=vp,onActivation:o}=i,{active:d}=u;const{code:m}=a.nativeEvent;if(r.start.includes(m)){const v=d.activatorNode.current;return v&&a.target!==v?!1:(a.preventDefault(),o==null||o({event:a.nativeEvent}),!0)}return!1}}];function gg(a){return!!(a&&"distance"in a)}function pg(a){return!!(a&&"delay"in a)}class Go{constructor(i,u,r){var o;r===void 0&&(r=o1(i.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=i,this.events=u;const{event:d}=i,{target:m}=d;this.props=i,this.events=u,this.document=La(m),this.documentListeners=new Ti(this.document),this.listeners=new Ti(r),this.windowListeners=new Ti(Tt(m)),this.initialCoordinates=(o=po(d))!=null?o:on,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:i,props:{options:{activationConstraint:u,bypassActivationConstraint:r}}}=this;if(this.listeners.add(i.move.name,this.handleMove,{passive:!1}),this.listeners.add(i.end.name,this.handleEnd),i.cancel&&this.listeners.add(i.cancel.name,this.handleCancel),this.windowListeners.add(tn.Resize,this.handleCancel),this.windowListeners.add(tn.DragStart,mg),this.windowListeners.add(tn.VisibilityChange,this.handleCancel),this.windowListeners.add(tn.ContextMenu,mg),this.documentListeners.add(tn.Keydown,this.handleKeydown),u){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(pg(u)){this.timeoutId=setTimeout(this.handleStart,u.delay),this.handlePending(u);return}if(gg(u)){this.handlePending(u);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(i,u){const{active:r,onPending:o}=this.props;o(r,i,this.initialCoordinates,u)}handleStart(){const{initialCoordinates:i}=this,{onStart:u}=this.props;i&&(this.activated=!0,this.documentListeners.add(tn.Click,f1,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(tn.SelectionChange,this.removeTextSelection),u(i))}handleMove(i){var u;const{activated:r,initialCoordinates:o,props:d}=this,{onMove:m,options:{activationConstraint:v}}=d;if(!o)return;const y=(u=po(i))!=null?u:on,g=Li(o,y);if(!r&&v){if(gg(v)){if(v.tolerance!=null&&lo(g,v.tolerance))return this.handleCancel();if(lo(g,v.distance))return this.handleStart()}if(pg(v)&&lo(g,v.tolerance))return this.handleCancel();this.handlePending(v,g);return}i.cancelable&&i.preventDefault(),m(y)}handleEnd(){const{onAbort:i,onEnd:u}=this.props;this.detach(),this.activated||i(this.props.active),u()}handleCancel(){const{onAbort:i,onCancel:u}=this.props;this.detach(),this.activated||i(this.props.active),u()}handleKeydown(i){i.code===je.Esc&&this.handleCancel()}removeTextSelection(){var i;(i=this.document.getSelection())==null||i.removeAllRanges()}}const h1={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Xo extends Go{constructor(i){const{event:u}=i,r=La(u.target);super(i,h1,r)}}Xo.activators=[{eventName:"onPointerDown",handler:(a,i)=>{let{nativeEvent:u}=a,{onActivation:r}=i;return!u.isPrimary||u.button!==0?!1:(r==null||r({event:u}),!0)}}];const m1={move:{name:"mousemove"},end:{name:"mouseup"}};var yo;(function(a){a[a.RightClick=2]="RightClick"})(yo||(yo={}));class g1 extends Go{constructor(i){super(i,m1,La(i.event.target))}}g1.activators=[{eventName:"onMouseDown",handler:(a,i)=>{let{nativeEvent:u}=a,{onActivation:r}=i;return u.button===yo.RightClick?!1:(r==null||r({event:u}),!0)}}];const ao={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class p1 extends Go{constructor(i){super(i,ao)}static setup(){return window.addEventListener(ao.move.name,i,{capture:!1,passive:!1}),function(){window.removeEventListener(ao.move.name,i)};function i(){}}}p1.activators=[{eventName:"onTouchStart",handler:(a,i)=>{let{nativeEvent:u}=a,{onActivation:r}=i;const{touches:o}=u;return o.length>1?!1:(r==null||r({event:u}),!0)}}];var Mi;(function(a){a[a.Pointer=0]="Pointer",a[a.DraggableRect=1]="DraggableRect"})(Mi||(Mi={}));var xs;(function(a){a[a.TreeOrder=0]="TreeOrder",a[a.ReversedTreeOrder=1]="ReversedTreeOrder"})(xs||(xs={}));function v1(a){let{acceleration:i,activator:u=Mi.Pointer,canScroll:r,draggingRect:o,enabled:d,interval:m=5,order:v=xs.TreeOrder,pointerCoordinates:y,scrollableAncestors:g,scrollableAncestorRects:b,delta:x,threshold:N}=a;const w=x1({delta:x,disabled:!d}),[M,C]=_b(),D=S.useRef({x:0,y:0}),k=S.useRef({x:0,y:0}),K=S.useMemo(()=>{switch(u){case Mi.Pointer:return y?{top:y.y,bottom:y.y,left:y.x,right:y.x}:null;case Mi.DraggableRect:return o}},[u,o,y]),z=S.useRef(null),q=S.useCallback(()=>{const $=z.current;if(!$)return;const V=D.current.x*k.current.x,P=D.current.y*k.current.y;$.scrollBy(V,P)},[]),X=S.useMemo(()=>v===xs.TreeOrder?[...g].reverse():g,[v,g]);S.useEffect(()=>{if(!d||!g.length||!K){C();return}for(const $ of X){if((r==null?void 0:r($))===!1)continue;const V=g.indexOf($),P=b[V];if(!P)continue;const{direction:me,speed:de}=a1($,P,K,i,N);for(const fe of["x","y"])w[fe][me[fe]]||(de[fe]=0,me[fe]=0);if(de.x>0||de.y>0){C(),z.current=$,M(q,m),D.current=de,k.current=me;return}}D.current={x:0,y:0},k.current={x:0,y:0},C()},[i,q,r,C,d,m,JSON.stringify(K),JSON.stringify(w),M,g,X,b,JSON.stringify(N)])}const y1={x:{[it.Backward]:!1,[it.Forward]:!1},y:{[it.Backward]:!1,[it.Forward]:!1}};function x1(a){let{delta:i,disabled:u}=a;const r=go(i);return Xi(o=>{if(u||!r||!o)return y1;const d={x:Math.sign(i.x-r.x),y:Math.sign(i.y-r.y)};return{x:{[it.Backward]:o.x[it.Backward]||d.x===-1,[it.Forward]:o.x[it.Forward]||d.x===1},y:{[it.Backward]:o.y[it.Backward]||d.y===-1,[it.Forward]:o.y[it.Forward]||d.y===1}}},[u,i,r])}function b1(a,i){const u=i!=null?a.get(i):void 0,r=u?u.node.current:null;return Xi(o=>{var d;return i==null?null:(d=r??o)!=null?d:null},[r,i])}function S1(a,i){return S.useMemo(()=>a.reduce((u,r)=>{const{sensor:o}=r,d=o.activators.map(m=>({eventName:m.eventName,handler:i(m.handler,r)}));return[...u,...d]},[]),[a,i])}var ki;(function(a){a[a.Always=0]="Always",a[a.BeforeDragging=1]="BeforeDragging",a[a.WhileDragging=2]="WhileDragging"})(ki||(ki={}));var xo;(function(a){a.Optimized="optimized"})(xo||(xo={}));const vg=new Map;function E1(a,i){let{dragging:u,dependencies:r,config:o}=i;const[d,m]=S.useState(null),{frequency:v,measure:y,strategy:g}=o,b=S.useRef(a),x=D(),N=Bi(x),w=S.useCallback(function(k){k===void 0&&(k=[]),!N.current&&m(K=>K===null?k:K.concat(k.filter(z=>!K.includes(z))))},[N]),M=S.useRef(null),C=Xi(k=>{if(x&&!u)return vg;if(!k||k===vg||b.current!==a||d!=null){const K=new Map;for(let z of a){if(!z)continue;if(d&&d.length>0&&!d.includes(z.id)&&z.rect.current){K.set(z.id,z.rect.current);continue}const q=z.node.current,X=q?new qo(y(q),q):null;z.rect.current=X,X&&K.set(z.id,X)}return K}return k},[a,d,u,x,y]);return S.useEffect(()=>{b.current=a},[a]),S.useEffect(()=>{x||w()},[u,x]),S.useEffect(()=>{d&&d.length>0&&m(null)},[JSON.stringify(d)]),S.useEffect(()=>{x||typeof v!="number"||M.current!==null||(M.current=setTimeout(()=>{w(),M.current=null},v))},[v,x,w,...r]),{droppableRects:C,measureDroppableContainers:w,measuringScheduled:d!=null};function D(){switch(g){case ki.Always:return!1;case ki.BeforeDragging:return u;default:return!u}}}function yp(a,i){return Xi(u=>a?u||(typeof i=="function"?i(a):a):null,[i,a])}function N1(a,i){return yp(a,i)}function w1(a){let{callback:i,disabled:u}=a;const r=Ho(i),o=S.useMemo(()=>{if(u||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:d}=window;return new d(r)},[r,u]);return S.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Ds(a){let{callback:i,disabled:u}=a;const r=Ho(i),o=S.useMemo(()=>{if(u||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:d}=window;return new d(r)},[u]);return S.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function j1(a){return new qo(Ha(a),a)}function yg(a,i,u){i===void 0&&(i=j1);const[r,o]=S.useState(null);function d(){o(y=>{if(!a)return null;if(a.isConnected===!1){var g;return(g=y??u)!=null?g:null}const b=i(a);return JSON.stringify(y)===JSON.stringify(b)?y:b})}const m=w1({callback(y){if(a)for(const g of y){const{type:b,target:x}=g;if(b==="childList"&&x instanceof HTMLElement&&x.contains(a)){d();break}}}}),v=Ds({callback:d});return vn(()=>{d(),a?(v==null||v.observe(a),m==null||m.observe(document.body,{childList:!0,subtree:!0})):(v==null||v.disconnect(),m==null||m.disconnect())},[a]),r}function A1(a){const i=yp(a);return op(a,i)}const xg=[];function D1(a){const i=S.useRef(a),u=Xi(r=>a?r&&r!==xg&&a&&i.current&&a.parentNode===i.current.parentNode?r:As(a):xg,[a]);return S.useEffect(()=>{i.current=a},[a]),u}function C1(a){const[i,u]=S.useState(null),r=S.useRef(a),o=S.useCallback(d=>{const m=no(d.target);m&&u(v=>v?(v.set(m,vo(m)),new Map(v)):null)},[]);return S.useEffect(()=>{const d=r.current;if(a!==d){m(d);const v=a.map(y=>{const g=no(y);return g?(g.addEventListener("scroll",o,{passive:!0}),[g,vo(g)]):null}).filter(y=>y!=null);u(v.length?new Map(v):null),r.current=a}return()=>{m(a),m(d)};function m(v){v.forEach(y=>{const g=no(y);g==null||g.removeEventListener("scroll",o)})}},[o,a]),S.useMemo(()=>a.length?i?Array.from(i.values()).reduce((d,m)=>Ma(d,m),on):pp(a):on,[a,i])}function bg(a,i){i===void 0&&(i=[]);const u=S.useRef(null);return S.useEffect(()=>{u.current=null},i),S.useEffect(()=>{const r=a!==on;r&&!u.current&&(u.current=a),!r&&u.current&&(u.current=null)},[a]),u.current?Li(a,u.current):on}function _1(a){S.useEffect(()=>{if(!js)return;const i=a.map(u=>{let{sensor:r}=u;return r.setup==null?void 0:r.setup()});return()=>{for(const u of i)u==null||u()}},a.map(i=>{let{sensor:u}=i;return u}))}function O1(a,i){return S.useMemo(()=>a.reduce((u,r)=>{let{eventName:o,handler:d}=r;return u[o]=m=>{d(m,i)},u},{}),[a,i])}function xp(a){return S.useMemo(()=>a?e1(a):null,[a])}const Sg=[];function T1(a,i){i===void 0&&(i=Ha);const[u]=a,r=xp(u?Tt(u):null),[o,d]=S.useState(Sg);function m(){d(()=>a.length?a.map(y=>mp(y)?r:new qo(i(y),y)):Sg)}const v=Ds({callback:m});return vn(()=>{v==null||v.disconnect(),m(),a.forEach(y=>v==null?void 0:v.observe(y))},[a]),o}function M1(a){if(!a)return null;if(a.children.length>1)return a;const i=a.children[0];return Gi(i)?i:a}function R1(a){let{measure:i}=a;const[u,r]=S.useState(null),o=S.useCallback(g=>{for(const{target:b}of g)if(Gi(b)){r(x=>{const N=i(b);return x?{...x,width:N.width,height:N.height}:N});break}},[i]),d=Ds({callback:o}),m=S.useCallback(g=>{const b=M1(g);d==null||d.disconnect(),b&&(d==null||d.observe(b)),r(b?i(b):null)},[i,d]),[v,y]=vs(m);return S.useMemo(()=>({nodeRef:v,rect:u,setRef:y}),[u,v,y])}const z1=[{sensor:Xo,options:{}},{sensor:Yo,options:{}}],U1={current:{}},gs={draggable:{measure:hg},droppable:{measure:hg,strategy:ki.WhileDragging,frequency:xo.Optimized},dragOverlay:{measure:Ha}};class Ri extends Map{get(i){var u;return i!=null&&(u=super.get(i))!=null?u:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(i=>{let{disabled:u}=i;return!u})}getNodeFor(i){var u,r;return(u=(r=this.get(i))==null?void 0:r.node.current)!=null?u:void 0}}const B1={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ri,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:ys},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:gs,measureDroppableContainers:ys,windowRect:null,measuringScheduled:!1},L1={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:ys,draggableNodes:new Map,over:null,measureDroppableContainers:ys},Cs=S.createContext(L1),bp=S.createContext(B1);function H1(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ri}}}function k1(a,i){switch(i.type){case tt.DragStart:return{...a,draggable:{...a.draggable,initialCoordinates:i.initialCoordinates,active:i.active}};case tt.DragMove:return a.draggable.active==null?a:{...a,draggable:{...a.draggable,translate:{x:i.coordinates.x-a.draggable.initialCoordinates.x,y:i.coordinates.y-a.draggable.initialCoordinates.y}}};case tt.DragEnd:case tt.DragCancel:return{...a,draggable:{...a.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case tt.RegisterDroppable:{const{element:u}=i,{id:r}=u,o=new Ri(a.droppable.containers);return o.set(r,u),{...a,droppable:{...a.droppable,containers:o}}}case tt.SetDroppableDisabled:{const{id:u,key:r,disabled:o}=i,d=a.droppable.containers.get(u);if(!d||r!==d.key)return a;const m=new Ri(a.droppable.containers);return m.set(u,{...d,disabled:o}),{...a,droppable:{...a.droppable,containers:m}}}case tt.UnregisterDroppable:{const{id:u,key:r}=i,o=a.droppable.containers.get(u);if(!o||r!==o.key)return a;const d=new Ri(a.droppable.containers);return d.delete(u),{...a,droppable:{...a.droppable,containers:d}}}default:return a}}function q1(a){let{disabled:i}=a;const{active:u,activatorEvent:r,draggableNodes:o}=S.useContext(Cs),d=go(r),m=go(u==null?void 0:u.id);return S.useEffect(()=>{if(!i&&!r&&d&&m!=null){if(!ko(d)||document.activeElement===d.target)return;const v=o.get(m);if(!v)return;const{activatorNode:y,node:g}=v;if(!y.current&&!g.current)return;requestAnimationFrame(()=>{for(const b of[y.current,g.current]){if(!b)continue;const x=Mb(b);if(x){x.focus();break}}})}},[r,i,o,m,d]),null}function Y1(a,i){let{transform:u,...r}=i;return a!=null&&a.length?a.reduce((o,d)=>d({transform:o,...r}),u):u}function G1(a){return S.useMemo(()=>({draggable:{...gs.draggable,...a==null?void 0:a.draggable},droppable:{...gs.droppable,...a==null?void 0:a.droppable},dragOverlay:{...gs.dragOverlay,...a==null?void 0:a.dragOverlay}}),[a==null?void 0:a.draggable,a==null?void 0:a.droppable,a==null?void 0:a.dragOverlay])}function X1(a){let{activeNode:i,measure:u,initialRect:r,config:o=!0}=a;const d=S.useRef(!1),{x:m,y:v}=typeof o=="boolean"?{x:o,y:o}:o;vn(()=>{if(!m&&!v||!i){d.current=!1;return}if(d.current||!r)return;const g=i==null?void 0:i.node.current;if(!g||g.isConnected===!1)return;const b=u(g),x=op(b,r);if(m||(x.x=0),v||(x.y=0),d.current=!0,Math.abs(x.x)>0||Math.abs(x.y)>0){const N=fp(g);N&&N.scrollBy({top:x.y,left:x.x})}},[i,m,v,r,u])}const Sp=S.createContext({...on,scaleX:1,scaleY:1});var ml;(function(a){a[a.Uninitialized=0]="Uninitialized",a[a.Initializing=1]="Initializing",a[a.Initialized=2]="Initialized"})(ml||(ml={}));const V1=S.memo(function(i){var u,r,o,d;let{id:m,accessibility:v,autoScroll:y=!0,children:g,sensors:b=z1,collisionDetection:x=Zb,measuring:N,modifiers:w,...M}=i;const C=S.useReducer(k1,void 0,H1),[D,k]=C,[K,z]=Hb(),[q,X]=S.useState(ml.Uninitialized),$=q===ml.Initialized,{draggable:{active:V,nodes:P,translate:me},droppable:{containers:de}}=D,fe=V!=null?P.get(V):null,te=S.useRef({initial:null,translated:null}),I=S.useMemo(()=>{var Xe;return V!=null?{id:V,data:(Xe=fe==null?void 0:fe.data)!=null?Xe:U1,rect:te}:null},[V,fe]),ce=S.useRef(null),[ve,U]=S.useState(null),[Q,ie]=S.useState(null),oe=Bi(M,Object.values(M)),W=Vi("DndDescribedBy",m),j=S.useMemo(()=>de.getEnabled(),[de]),L=G1(N),{droppableRects:J,measureDroppableContainers:Z,measuringScheduled:ae}=E1(j,{dragging:$,dependencies:[me.x,me.y],config:L.droppable}),ne=b1(P,V),se=S.useMemo(()=>Q?po(Q):null,[Q]),Le=Yl(),ye=N1(ne,L.draggable.measure);X1({activeNode:V!=null?P.get(V):null,config:Le.layoutShiftCompensation,initialRect:ye,measure:L.draggable.measure});const Se=yg(ne,L.draggable.measure,ye),Ze=yg(ne?ne.parentElement:null),_e=S.useRef({activatorEvent:null,active:null,activeNode:ne,collisionRect:null,collisions:null,droppableRects:J,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:de,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),nn=de.getNodeFor((u=_e.current.over)==null?void 0:u.id),Ie=R1({measure:L.dragOverlay.measure}),F=(r=Ie.nodeRef.current)!=null?r:ne,Oe=$?(o=Ie.rect)!=null?o:Se:null,xt=!!(Ie.nodeRef.current&&Ie.rect),yn=A1(xt?null:Se),yl=xp(F?Tt(F):null),qt=D1($?nn??ne:null),Gn=T1(qt),kl=Y1(w,{transform:{x:me.x-yn.x,y:me.y-yn.y,scaleX:1,scaleY:1},activatorEvent:Q,active:I,activeNodeRect:Se,containerNodeRect:Ze,draggingNodeRect:Oe,over:_e.current.over,overlayNodeRect:Ie.rect,scrollableAncestors:qt,scrollableAncestorRects:Gn,windowRect:yl}),Qi=se?Ma(se,me):null,dt=C1(qt),_s=bg(dt),Ki=bg(dt,[Se]),xn=Ma(kl,_s),ln=Oe?Wb(Oe,kl):null,xl=I&&ln?x({active:I,collisionRect:ln,droppableRects:J,droppableContainers:j,pointerCoordinates:Qi}):null,ka=rp(xl,"id"),[fn,Zi]=S.useState(null),bl=xt?kl:Ma(kl,Ki),pt=Jb(bl,(d=fn==null?void 0:fn.rect)!=null?d:null,Se),Yt=S.useRef(null),ht=S.useCallback((Xe,Ve)=>{let{sensor:nt,options:bt}=Ve;if(ce.current==null)return;const St=P.get(ce.current);if(!St)return;const mt=Xe.nativeEvent,Et=new nt({active:ce.current,activeNode:St,event:mt,options:bt,context:_e,onAbort(Pe){if(!P.get(Pe))return;const{onDragAbort:Mt}=oe.current,Xt={id:Pe};Mt==null||Mt(Xt),K({type:"onDragAbort",event:Xt})},onPending(Pe,an,Mt,Xt){if(!P.get(Pe))return;const{onDragPending:Sn}=oe.current,un={id:Pe,constraint:an,initialCoordinates:Mt,offset:Xt};Sn==null||Sn(un),K({type:"onDragPending",event:un})},onStart(Pe){const an=ce.current;if(an==null)return;const Mt=P.get(an);if(!Mt)return;const{onDragStart:Xt}=oe.current,bn={activatorEvent:mt,active:{id:an,data:Mt.data,rect:te}};gl.unstable_batchedUpdates(()=>{Xt==null||Xt(bn),X(ml.Initializing),k({type:tt.DragStart,initialCoordinates:Pe,active:an}),K({type:"onDragStart",event:bn}),U(Yt.current),ie(mt)})},onMove(Pe){k({type:tt.DragMove,coordinates:Pe})},onEnd:Gt(tt.DragEnd),onCancel:Gt(tt.DragCancel)});Yt.current=Et;function Gt(Pe){return async function(){const{active:Mt,collisions:Xt,over:bn,scrollAdjustedTranslate:Sn}=_e.current;let un=null;if(Mt&&Sn){const{cancelDrop:Xn}=oe.current;un={activatorEvent:mt,active:Mt,collisions:Xt,delta:Sn,over:bn},Pe===tt.DragEnd&&typeof Xn=="function"&&await Promise.resolve(Xn(un))&&(Pe=tt.DragCancel)}ce.current=null,gl.unstable_batchedUpdates(()=>{k({type:Pe}),X(ml.Uninitialized),Zi(null),U(null),ie(null),Yt.current=null;const Xn=Pe===tt.DragEnd?"onDragEnd":"onDragCancel";if(un){const Vt=oe.current[Xn];Vt==null||Vt(un),K({type:Xn,event:un})}})}}},[P]),Os=S.useCallback((Xe,Ve)=>(nt,bt)=>{const St=nt.nativeEvent,mt=P.get(bt);if(ce.current!==null||!mt||St.dndKit||St.defaultPrevented)return;const Et={active:mt};Xe(nt,Ve.options,Et)===!0&&(St.dndKit={capturedBy:Ve.sensor},ce.current=bt,ht(nt,Ve))},[P,ht]),Ji=S1(b,Os);_1(b),vn(()=>{Se&&q===ml.Initializing&&X(ml.Initialized)},[Se,q]),S.useEffect(()=>{const{onDragMove:Xe}=oe.current,{active:Ve,activatorEvent:nt,collisions:bt,over:St}=_e.current;if(!Ve||!nt)return;const mt={active:Ve,activatorEvent:nt,collisions:bt,delta:{x:xn.x,y:xn.y},over:St};gl.unstable_batchedUpdates(()=>{Xe==null||Xe(mt),K({type:"onDragMove",event:mt})})},[xn.x,xn.y]),S.useEffect(()=>{const{active:Xe,activatorEvent:Ve,collisions:nt,droppableContainers:bt,scrollAdjustedTranslate:St}=_e.current;if(!Xe||ce.current==null||!Ve||!St)return;const{onDragOver:mt}=oe.current,Et=bt.get(ka),Gt=Et&&Et.rect.current?{id:Et.id,rect:Et.rect.current,data:Et.data,disabled:Et.disabled}:null,Pe={active:Xe,activatorEvent:Ve,collisions:nt,delta:{x:St.x,y:St.y},over:Gt};gl.unstable_batchedUpdates(()=>{Zi(Gt),mt==null||mt(Pe),K({type:"onDragOver",event:Pe})})},[ka]),vn(()=>{_e.current={activatorEvent:Q,active:I,activeNode:ne,collisionRect:ln,collisions:xl,droppableRects:J,draggableNodes:P,draggingNode:F,draggingNodeRect:Oe,droppableContainers:de,over:fn,scrollableAncestors:qt,scrollAdjustedTranslate:xn},te.current={initial:Oe,translated:ln}},[I,ne,xl,ln,P,F,Oe,J,de,fn,qt,xn]),v1({...Le,delta:me,draggingRect:ln,pointerCoordinates:Qi,scrollableAncestors:qt,scrollableAncestorRects:Gn});const Ts=S.useMemo(()=>({active:I,activeNode:ne,activeNodeRect:Se,activatorEvent:Q,collisions:xl,containerNodeRect:Ze,dragOverlay:Ie,draggableNodes:P,droppableContainers:de,droppableRects:J,over:fn,measureDroppableContainers:Z,scrollableAncestors:qt,scrollableAncestorRects:Gn,measuringConfiguration:L,measuringScheduled:ae,windowRect:yl}),[I,ne,Se,Q,xl,Ze,Ie,P,de,J,fn,Z,qt,Gn,L,ae,yl]),ql=S.useMemo(()=>({activatorEvent:Q,activators:Ji,active:I,activeNodeRect:Se,ariaDescribedById:{draggable:W},dispatch:k,draggableNodes:P,over:fn,measureDroppableContainers:Z}),[Q,Ji,I,Se,k,W,P,fn,Z]);return Ot.createElement(sp.Provider,{value:z},Ot.createElement(Cs.Provider,{value:ql},Ot.createElement(bp.Provider,{value:Ts},Ot.createElement(Sp.Provider,{value:pt},g)),Ot.createElement(q1,{disabled:(v==null?void 0:v.restoreFocus)===!1})),Ot.createElement(Yb,{...v,hiddenTextDescribedById:W}));function Yl(){const Xe=(ve==null?void 0:ve.autoScrollEnabled)===!1,Ve=typeof y=="object"?y.enabled===!1:y===!1,nt=$&&!Xe&&!Ve;return typeof y=="object"?{...y,enabled:nt}:{enabled:nt}}}),Q1=S.createContext(null),Eg="button",K1="Draggable";function Z1(a){let{id:i,data:u,disabled:r=!1,attributes:o}=a;const d=Vi(K1),{activators:m,activatorEvent:v,active:y,activeNodeRect:g,ariaDescribedById:b,draggableNodes:x,over:N}=S.useContext(Cs),{role:w=Eg,roleDescription:M="draggable",tabIndex:C=0}=o??{},D=(y==null?void 0:y.id)===i,k=S.useContext(D?Sp:Q1),[K,z]=vs(),[q,X]=vs(),$=O1(m,i),V=Bi(u);vn(()=>(x.set(i,{id:i,key:d,node:K,activatorNode:q,data:V}),()=>{const me=x.get(i);me&&me.key===d&&x.delete(i)}),[x,i]);const P=S.useMemo(()=>({role:w,tabIndex:C,"aria-disabled":r,"aria-pressed":D&&w===Eg?!0:void 0,"aria-roledescription":M,"aria-describedby":b.draggable}),[r,w,C,D,M,b.draggable]);return{active:y,activatorEvent:v,activeNodeRect:g,attributes:P,isDragging:D,listeners:r?void 0:$,node:K,over:N,setNodeRef:z,setActivatorNodeRef:X,transform:k}}function J1(){return S.useContext(bp)}const $1="Droppable",W1={timeout:25};function Ep(a){let{data:i,disabled:u=!1,id:r,resizeObserverConfig:o}=a;const d=Vi($1),{active:m,dispatch:v,over:y,measureDroppableContainers:g}=S.useContext(Cs),b=S.useRef({disabled:u}),x=S.useRef(!1),N=S.useRef(null),w=S.useRef(null),{disabled:M,updateMeasurementsFor:C,timeout:D}={...W1,...o},k=Bi(C??r),K=S.useCallback(()=>{if(!x.current){x.current=!0;return}w.current!=null&&clearTimeout(w.current),w.current=setTimeout(()=>{g(Array.isArray(k.current)?k.current:[k.current]),w.current=null},D)},[D]),z=Ds({callback:K,disabled:M||!m}),q=S.useCallback((P,me)=>{z&&(me&&(z.unobserve(me),x.current=!1),P&&z.observe(P))},[z]),[X,$]=vs(q),V=Bi(i);return S.useEffect(()=>{!z||!X.current||(z.disconnect(),x.current=!1,z.observe(X.current))},[X,z]),S.useEffect(()=>(v({type:tt.RegisterDroppable,element:{id:r,key:d,disabled:u,node:X,rect:N,data:V}}),()=>v({type:tt.UnregisterDroppable,key:d,id:r})),[r]),S.useEffect(()=>{u!==b.current.disabled&&(v({type:tt.SetDroppableDisabled,id:r,key:d,disabled:u}),b.current.disabled=u)},[r,d,u,v]),{active:m,rect:N,isOver:(y==null?void 0:y.id)===r,node:X,over:y,setNodeRef:$}}function Np(a,i,u){const r=a.slice();return r.splice(u<0?r.length+u:u,0,r.splice(i,1)[0]),r}function F1(a,i){return a.reduce((u,r,o)=>{const d=i.get(r);return d&&(u[o]=d),u},Array(a.length))}function rs(a){return a!==null&&a>=0}function I1(a,i){if(a===i)return!0;if(a.length!==i.length)return!1;for(let u=0;u<a.length;u++)if(a[u]!==i[u])return!1;return!0}function P1(a){return typeof a=="boolean"?{draggable:a,droppable:a}:a}const wp=a=>{let{rects:i,activeIndex:u,overIndex:r,index:o}=a;const d=Np(i,r,u),m=i[o],v=d[o];return!v||!m?null:{x:v.left-m.left,y:v.top-m.top,scaleX:v.width/m.width,scaleY:v.height/m.height}},cs={scaleX:1,scaleY:1},eS=a=>{var i;let{activeIndex:u,activeNodeRect:r,index:o,rects:d,overIndex:m}=a;const v=(i=d[u])!=null?i:r;if(!v)return null;if(o===u){const g=d[m];return g?{x:0,y:u<m?g.top+g.height-(v.top+v.height):g.top-v.top,...cs}:null}const y=tS(d,o,u);return o>u&&o<=m?{x:0,y:-v.height-y,...cs}:o<u&&o>=m?{x:0,y:v.height+y,...cs}:{x:0,y:0,...cs}};function tS(a,i,u){const r=a[i],o=a[i-1],d=a[i+1];return r?u<i?o?r.top-(o.top+o.height):d?d.top-(r.top+r.height):0:d?d.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}const jp="Sortable",Ap=Ot.createContext({activeIndex:-1,containerId:jp,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:wp,disabled:{draggable:!1,droppable:!1}});function nS(a){let{children:i,id:u,items:r,strategy:o=wp,disabled:d=!1}=a;const{active:m,dragOverlay:v,droppableRects:y,over:g,measureDroppableContainers:b}=J1(),x=Vi(jp,u),N=v.rect!==null,w=S.useMemo(()=>r.map($=>typeof $=="object"&&"id"in $?$.id:$),[r]),M=m!=null,C=m?w.indexOf(m.id):-1,D=g?w.indexOf(g.id):-1,k=S.useRef(w),K=!I1(w,k.current),z=D!==-1&&C===-1||K,q=P1(d);vn(()=>{K&&M&&b(w)},[K,w,M,b]),S.useEffect(()=>{k.current=w},[w]);const X=S.useMemo(()=>({activeIndex:C,containerId:x,disabled:q,disableTransforms:z,items:w,overIndex:D,useDragOverlay:N,sortedRects:F1(w,y),strategy:o}),[C,x,q.draggable,q.droppable,z,w,D,y,N,o]);return Ot.createElement(Ap.Provider,{value:X},i)}const lS=a=>{let{id:i,items:u,activeIndex:r,overIndex:o}=a;return Np(u,r,o).indexOf(i)},aS=a=>{let{containerId:i,isSorting:u,wasDragging:r,index:o,items:d,newIndex:m,previousItems:v,previousContainerId:y,transition:g}=a;return!g||!r||v!==d&&o===m?!1:u?!0:m!==o&&i===y},iS={duration:200,easing:"ease"},Dp="transform",uS=Hi.Transition.toString({property:Dp,duration:0,easing:"linear"}),sS={roleDescription:"sortable"};function rS(a){let{disabled:i,index:u,node:r,rect:o}=a;const[d,m]=S.useState(null),v=S.useRef(u);return vn(()=>{if(!i&&u!==v.current&&r.current){const y=o.current;if(y){const g=Ha(r.current,{ignoreTransform:!0}),b={x:y.left-g.left,y:y.top-g.top,scaleX:y.width/g.width,scaleY:y.height/g.height};(b.x||b.y)&&m(b)}}u!==v.current&&(v.current=u)},[i,u,r,o]),S.useEffect(()=>{d&&m(null)},[d]),d}function cS(a){let{animateLayoutChanges:i=aS,attributes:u,disabled:r,data:o,getNewIndex:d=lS,id:m,strategy:v,resizeObserverConfig:y,transition:g=iS}=a;const{items:b,containerId:x,activeIndex:N,disabled:w,disableTransforms:M,sortedRects:C,overIndex:D,useDragOverlay:k,strategy:K}=S.useContext(Ap),z=oS(r,w),q=b.indexOf(m),X=S.useMemo(()=>({sortable:{containerId:x,index:q,items:b},...o}),[x,o,q,b]),$=S.useMemo(()=>b.slice(b.indexOf(m)),[b,m]),{rect:V,node:P,isOver:me,setNodeRef:de}=Ep({id:m,data:X,disabled:z.droppable,resizeObserverConfig:{updateMeasurementsFor:$,...y}}),{active:fe,activatorEvent:te,activeNodeRect:I,attributes:ce,setNodeRef:ve,listeners:U,isDragging:Q,over:ie,setActivatorNodeRef:oe,transform:W}=Z1({id:m,data:X,attributes:{...sS,...u},disabled:z.draggable}),j=Cb(de,ve),L=!!fe,J=L&&!M&&rs(N)&&rs(D),Z=!k&&Q,ae=Z&&J?W:null,se=J?ae??(v??K)({rects:C,activeNodeRect:I,activeIndex:N,overIndex:D,index:q}):null,Le=rs(N)&&rs(D)?d({id:m,items:b,activeIndex:N,overIndex:D}):q,ye=fe==null?void 0:fe.id,Se=S.useRef({activeId:ye,items:b,newIndex:Le,containerId:x}),Ze=b!==Se.current.items,_e=i({active:fe,containerId:x,isDragging:Q,isSorting:L,id:m,index:q,items:b,newIndex:Se.current.newIndex,previousItems:Se.current.items,previousContainerId:Se.current.containerId,transition:g,wasDragging:Se.current.activeId!=null}),nn=rS({disabled:!_e,index:q,node:P,rect:V});return S.useEffect(()=>{L&&Se.current.newIndex!==Le&&(Se.current.newIndex=Le),x!==Se.current.containerId&&(Se.current.containerId=x),b!==Se.current.items&&(Se.current.items=b)},[L,Le,x,b]),S.useEffect(()=>{if(ye===Se.current.activeId)return;if(ye!=null&&Se.current.activeId==null){Se.current.activeId=ye;return}const F=setTimeout(()=>{Se.current.activeId=ye},50);return()=>clearTimeout(F)},[ye]),{active:fe,activeIndex:N,attributes:ce,data:X,rect:V,index:q,newIndex:Le,items:b,isOver:me,isSorting:L,isDragging:Q,listeners:U,node:P,overIndex:D,over:ie,setNodeRef:j,setActivatorNodeRef:oe,setDroppableNodeRef:de,setDraggableNodeRef:ve,transform:nn??se,transition:Ie()};function Ie(){if(nn||Ze&&Se.current.newIndex===q)return uS;if(!(Z&&!ko(te)||!g)&&(L||_e))return Hi.Transition.toString({...g,property:Dp})}}function oS(a,i){var u,r;return typeof a=="boolean"?{draggable:a,droppable:!1}:{draggable:(u=a==null?void 0:a.draggable)!=null?u:i.draggable,droppable:(r=a==null?void 0:a.droppable)!=null?r:i.droppable}}function bs(a){if(!a)return!1;const i=a.data.current;return!!(i&&"sortable"in i&&typeof i.sortable=="object"&&"containerId"in i.sortable&&"items"in i.sortable&&"index"in i.sortable)}const fS=[je.Down,je.Right,je.Up,je.Left],dS=(a,i)=>{let{context:{active:u,collisionRect:r,droppableRects:o,droppableContainers:d,over:m,scrollableAncestors:v}}=i;if(fS.includes(a.code)){if(a.preventDefault(),!u||!r)return;const y=[];d.getEnabled().forEach(x=>{if(!x||x!=null&&x.disabled)return;const N=o.get(x.id);if(N)switch(a.code){case je.Down:r.top<N.top&&y.push(x);break;case je.Up:r.top>N.top&&y.push(x);break;case je.Left:r.left>N.left&&y.push(x);break;case je.Right:r.left<N.left&&y.push(x);break}});const g=cp({collisionRect:r,droppableRects:o,droppableContainers:y});let b=rp(g,"id");if(b===(m==null?void 0:m.id)&&g.length>1&&(b=g[1].id),b!=null){const x=d.get(u.id),N=d.get(b),w=N?o.get(N.id):null,M=N==null?void 0:N.node.current;if(M&&w&&x&&N){const D=As(M).some(($,V)=>v[V]!==$),k=Cp(x,N),K=hS(x,N),z=D||!k?{x:0,y:0}:{x:K?r.width-w.width:0,y:K?r.height-w.height:0},q={x:w.left,y:w.top};return z.x&&z.y?q:Li(q,z)}}}};function Cp(a,i){return!bs(a)||!bs(i)?!1:a.data.current.sortable.containerId===i.data.current.sortable.containerId}function hS(a,i){return!bs(a)||!bs(i)||!Cp(a,i)?!1:a.data.current.sortable.index<i.data.current.sortable.index}function mS({card:a,boardId:i}){const{mutate:u}=yt(),[r,o]=S.useState(!1),[d,m]=S.useState(a.title),{attributes:v,listeners:y,setNodeRef:g,transform:b,transition:x,isDragging:N}=cS({id:a.id}),w={transform:Hi.Transform.toString(b),transition:x,opacity:N?.4:1};function M(){const C=d.trim();C!==""&&C!==a.title?u(D=>Cx(D,i,a.id,{title:C,updatedAt:new Date().toISOString()})):m(a.title),o(!1)}return h.jsxs("div",{ref:g,style:w,className:"group flex items-start gap-1.5 rounded-md border border-line bg-panel p-2",children:[h.jsx("button",{...v,...y,"aria-label":"カードを移動",className:"mt-0.5 cursor-grab touch-none px-0.5 text-fg-faint hover:text-fg-muted active:cursor-grabbing",children:"⠿"}),h.jsx("div",{className:"min-w-0 flex-1",children:a.repo?h.jsx("a",{href:`https://github.com/${a.repo}`,target:"_blank",rel:"noreferrer",className:"block truncate font-mono text-sm text-fg hover:text-emerald-400",title:a.repo,children:a.title}):r?h.jsx("input",{autoFocus:!0,value:d,onChange:C=>m(C.target.value),onBlur:M,onKeyDown:C=>{C.nativeEvent.isComposing||(C.key==="Enter"&&(C.preventDefault(),M()),C.key==="Escape"&&(m(a.title),o(!1)))},className:"w-full rounded border border-line-strong bg-panel-2 px-1 py-0.5 text-sm text-fg focus:border-emerald-500/50 focus:outline-none"}):h.jsx("button",{onClick:()=>o(!0),className:"block w-full truncate text-left text-sm text-fg",children:a.title})}),h.jsx("button",{type:"button",onClick:()=>{window.confirm(`カード「${a.title}」を削除しますか?`)&&u(C=>_x(C,i,a.id))},"aria-label":"カードを削除",className:"shrink-0 text-fg-faint opacity-60 transition-opacity group-hover:opacity-100 hover:text-rose-400",children:"×"})]})}function gS({boardId:a,column:i,cards:u}){const{mutate:r}=yt(),{setNodeRef:o,isOver:d}=Ep({id:i.id}),[m,v]=S.useState(!1),[y,g]=S.useState("");function b(){const x=y.trim();if(x!==""){const N=new Date().toISOString();r(w=>Jg(w,a,i.id,{id:$g("card"),repo:null,title:x,note:"",updatedAt:N}))}g(""),v(!1)}return h.jsxs("div",{className:"flex w-64 shrink-0 flex-col rounded-xl border border-line bg-panel-2/50",children:[h.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[h.jsx("span",{className:"font-mono text-xs font-semibold tracking-wider text-fg-muted uppercase",children:i.name}),h.jsx("span",{className:"font-mono text-xs text-fg-faint",children:u.length})]}),h.jsxs("div",{ref:o,className:`flex min-h-16 flex-1 flex-col gap-1.5 px-2 pb-2 transition-colors ${d?"bg-emerald-400/[0.04]":""}`,children:[h.jsx(nS,{items:u.map(x=>x.id),strategy:eS,children:u.map(x=>h.jsx(mS,{card:x,boardId:a},x.id))}),m?h.jsx("input",{autoFocus:!0,value:y,onChange:x=>g(x.target.value),onBlur:b,onKeyDown:x=>{x.nativeEvent.isComposing||(x.key==="Enter"&&(x.preventDefault(),b()),x.key==="Escape"&&(g(""),v(!1)))},placeholder:"カードのタイトル",className:"rounded-md border border-line-strong bg-panel px-2 py-1.5 text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}):h.jsx("button",{type:"button",onClick:()=>v(!0),className:"rounded-md px-2 py-1 text-left text-xs text-fg-faint hover:text-fg-muted",children:"+ カード"})]})]})}function pS(){const{data:a,mutate:i}=yt(),u=Gb(fg(Xo,{activationConstraint:{distance:4}}),fg(Yo,{coordinateGetter:dS})),r=((a==null?void 0:a.boards.length)??0)>0;S.useEffect(()=>{a&&!r&&i(v=>void Zg(v,new Date().toISOString()))},[a,r,i]);const o=a==null?void 0:a.boards[0];if(!o)return h.jsx("div",{className:"grid h-full place-items-center text-sm text-fg-muted",children:"ボードを準備中…"});const d=Ox(o);function m(v){const{active:y,over:g}=v;if(!g||y.id===g.id)return;const b=String(y.id),x=String(g.id);i(N=>{const w=N.boards.find(C=>C.id===o.id);if(!w)return;const M=Mx(w,x);M&&Dx(N,o.id,b,M.columnId,M.index)})}return h.jsx("div",{className:"h-full overflow-x-auto p-4",children:h.jsx(V1,{sensors:u,collisionDetection:cp,onDragEnd:m,children:h.jsx("div",{className:"flex gap-3",children:o.columns.map(v=>h.jsx(gS,{boardId:o.id,column:v,cards:d[v.id]??[]},v.id))})})})}function _p({kind:a,message:i}){return h.jsx("div",{className:"grid h-full place-items-center p-8",children:h.jsxs("div",{className:"max-w-md text-center",children:[a==="no-local-cache"&&h.jsxs(h.Fragment,{children:[h.jsx("h1",{className:"mb-2 text-lg font-semibold text-fg",children:"キャッシュがありません"}),h.jsxs("p",{className:"text-sm text-fg-muted",children:["先にターミナルで"," ",h.jsx("code",{className:"rounded bg-panel px-1.5 py-0.5 font-mono text-emerald-400",children:"pnpm sync"})," を実行してください。"]})]}),a==="unauthorized"&&h.jsxs(h.Fragment,{children:[h.jsx("h1",{className:"mb-2 text-lg font-semibold text-fg",children:"サインインの有効期限が切れました"}),h.jsx("p",{className:"text-sm text-fg-muted",children:"もう一度 GitHub でサインインすると、続きから利用できます。"}),h.jsx("a",{href:"/api/auth/login",className:"mt-5 inline-flex items-center rounded-lg border border-line-strong bg-panel px-4 py-2 text-sm font-medium text-fg transition-colors hover:border-emerald-500/40",children:"GitHub で再サインイン"})]}),a==="unavailable"&&h.jsxs(h.Fragment,{children:[h.jsx("h1",{className:"mb-2 text-lg font-semibold text-fg",children:"データを取得できませんでした"}),h.jsx("p",{className:"text-sm text-fg-muted",children:"GitHub からの取得に失敗しました。時間をおいて再読み込みしてください。"}),h.jsx("button",{type:"button",onClick:()=>window.location.reload(),className:"mt-5 inline-flex items-center rounded-lg border border-line-strong-strong bg-panel px-4 py-2 text-sm font-medium text-fg transition-colors hover:border-emerald-500/40",children:"再読み込み"})]}),a!=="unauthorized"&&h.jsx("p",{className:"mt-2 font-mono text-xs text-fg-faint",children:i})]})})}const vS="ENTRIES",Op="KEYS",Tp="VALUES",ft="";class io{constructor(i,u){const r=i._tree,o=Array.from(r.keys());this.set=i,this._type=u,this._path=o.length>0?[{node:r,keys:o}]:[]}next(){const i=this.dive();return this.backtrack(),i}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:i,keys:u}=Ca(this._path);if(Ca(u)===ft)return{done:!1,value:this.result()};const r=i.get(Ca(u));return this._path.push({node:r,keys:Array.from(r.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const i=Ca(this._path).keys;i.pop(),!(i.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:i})=>Ca(i)).filter(i=>i!==ft).join("")}value(){return Ca(this._path).node.get(ft)}result(){switch(this._type){case Tp:return this.value();case Op:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const Ca=a=>a[a.length-1],yS=(a,i,u)=>{const r=new Map;if(i===void 0)return r;const o=i.length+1,d=o+u,m=new Uint8Array(d*o).fill(u+1);for(let v=0;v<o;++v)m[v]=v;for(let v=1;v<d;++v)m[v*o]=v;return Mp(a,i,u,r,m,1,o,""),r},Mp=(a,i,u,r,o,d,m,v)=>{const y=d*m;e:for(const g of a.keys())if(g===ft){const b=o[y-1];b<=u&&r.set(v,[a.get(g),b])}else{let b=d;for(let x=0;x<g.length;++x,++b){const N=g[x],w=m*b,M=w-m;let C=o[w];const D=Math.max(0,b-u-1),k=Math.min(m-1,b+u);for(let K=D;K<k;++K){const z=N!==i[K],q=o[M+K]+ +z,X=o[M+K+1]+1,$=o[w+K]+1,V=o[w+K+1]=Math.min(q,X,$);V<C&&(C=V)}if(C>u)continue e}Mp(a.get(g),i,u,r,o,b,m,v+g)}};class pl{constructor(i=new Map,u=""){this._size=void 0,this._tree=i,this._prefix=u}atPrefix(i){if(!i.startsWith(this._prefix))throw new Error("Mismatched prefix");const[u,r]=Ss(this._tree,i.slice(this._prefix.length));if(u===void 0){const[o,d]=Vo(r);for(const m of o.keys())if(m!==ft&&m.startsWith(d)){const v=new Map;return v.set(m.slice(d.length),o.get(m)),new pl(v,i)}}return new pl(u,i)}clear(){this._size=void 0,this._tree.clear()}delete(i){return this._size=void 0,xS(this._tree,i)}entries(){return new io(this,vS)}forEach(i){for(const[u,r]of this)i(u,r,this)}fuzzyGet(i,u){return yS(this._tree,i,u)}get(i){const u=bo(this._tree,i);return u!==void 0?u.get(ft):void 0}has(i){const u=bo(this._tree,i);return u!==void 0&&u.has(ft)}keys(){return new io(this,Op)}set(i,u){if(typeof i!="string")throw new Error("key must be a string");return this._size=void 0,uo(this._tree,i).set(ft,u),this}get size(){if(this._size)return this._size;this._size=0;const i=this.entries();for(;!i.next().done;)this._size+=1;return this._size}update(i,u){if(typeof i!="string")throw new Error("key must be a string");this._size=void 0;const r=uo(this._tree,i);return r.set(ft,u(r.get(ft))),this}fetch(i,u){if(typeof i!="string")throw new Error("key must be a string");this._size=void 0;const r=uo(this._tree,i);let o=r.get(ft);return o===void 0&&r.set(ft,o=u()),o}values(){return new io(this,Tp)}[Symbol.iterator](){return this.entries()}static from(i){const u=new pl;for(const[r,o]of i)u.set(r,o);return u}static fromObject(i){return pl.from(Object.entries(i))}}const Ss=(a,i,u=[])=>{if(i.length===0||a==null)return[a,u];for(const r of a.keys())if(r!==ft&&i.startsWith(r))return u.push([a,r]),Ss(a.get(r),i.slice(r.length),u);return u.push([a,i]),Ss(void 0,"",u)},bo=(a,i)=>{if(i.length===0||a==null)return a;for(const u of a.keys())if(u!==ft&&i.startsWith(u))return bo(a.get(u),i.slice(u.length))},uo=(a,i)=>{const u=i.length;e:for(let r=0;a&&r<u;){for(const d of a.keys())if(d!==ft&&i[r]===d[0]){const m=Math.min(u-r,d.length);let v=1;for(;v<m&&i[r+v]===d[v];)++v;const y=a.get(d);if(v===d.length)a=y;else{const g=new Map;g.set(d.slice(v),y),a.set(i.slice(r,r+v),g),a.delete(d),a=g}r+=v;continue e}const o=new Map;return a.set(i.slice(r),o),o}return a},xS=(a,i)=>{const[u,r]=Ss(a,i);if(u!==void 0){if(u.delete(ft),u.size===0)Rp(r);else if(u.size===1){const[o,d]=u.entries().next().value;zp(r,o,d)}}},Rp=a=>{if(a.length===0)return;const[i,u]=Vo(a);if(i.delete(u),i.size===0)Rp(a.slice(0,-1));else if(i.size===1){const[r,o]=i.entries().next().value;r!==ft&&zp(a.slice(0,-1),r,o)}},zp=(a,i,u)=>{if(a.length===0)return;const[r,o]=Vo(a);r.set(o+i,u),r.delete(o)},Vo=a=>a[a.length-1],Qo="or",Up="and",bS="and_not";class Ra{constructor(i){if((i==null?void 0:i.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');const u=i.autoVacuum==null||i.autoVacuum===!0?co:i.autoVacuum;this._options={...ro,...i,autoVacuum:u,searchOptions:{...Ng,...i.searchOptions||{}},autoSuggestOptions:{...jS,...i.autoSuggestOptions||{}}},this._index=new pl,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=Eo,this.addFields(this._options.fields)}add(i){const{extractField:u,stringifyField:r,tokenize:o,processTerm:d,fields:m,idField:v}=this._options,y=u(i,v);if(y==null)throw new Error(`MiniSearch: document does not have ID field "${v}"`);if(this._idToShortId.has(y))throw new Error(`MiniSearch: duplicate ID ${y}`);const g=this.addDocumentId(y);this.saveStoredFields(g,i);for(const b of m){const x=u(i,b);if(x==null)continue;const N=o(r(x,b),b),w=this._fieldIds[b],M=new Set(N).size;this.addFieldLength(g,w,this._documentCount-1,M);for(const C of N){const D=d(C,b);if(Array.isArray(D))for(const k of D)this.addTerm(w,g,k);else D&&this.addTerm(w,g,D)}}}addAll(i){for(const u of i)this.add(u)}addAllAsync(i,u={}){const{chunkSize:r=10}=u,o={chunk:[],promise:Promise.resolve()},{chunk:d,promise:m}=i.reduce(({chunk:v,promise:y},g,b)=>(v.push(g),(b+1)%r===0?{chunk:[],promise:y.then(()=>new Promise(x=>setTimeout(x,0))).then(()=>this.addAll(v))}:{chunk:v,promise:y}),o);return m.then(()=>this.addAll(d))}remove(i){const{tokenize:u,processTerm:r,extractField:o,stringifyField:d,fields:m,idField:v}=this._options,y=o(i,v);if(y==null)throw new Error(`MiniSearch: document does not have ID field "${v}"`);const g=this._idToShortId.get(y);if(g==null)throw new Error(`MiniSearch: cannot remove document with ID ${y}: it is not in the index`);for(const b of m){const x=o(i,b);if(x==null)continue;const N=u(d(x,b),b),w=this._fieldIds[b],M=new Set(N).size;this.removeFieldLength(g,w,this._documentCount,M);for(const C of N){const D=r(C,b);if(Array.isArray(D))for(const k of D)this.removeTerm(w,g,k);else D&&this.removeTerm(w,g,D)}}this._storedFields.delete(g),this._documentIds.delete(g),this._idToShortId.delete(y),this._fieldLength.delete(g),this._documentCount-=1}removeAll(i){if(i)for(const u of i)this.remove(u);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new pl,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(i){const u=this._idToShortId.get(i);if(u==null)throw new Error(`MiniSearch: cannot discard document with ID ${i}: it is not in the index`);this._idToShortId.delete(i),this._documentIds.delete(u),this._storedFields.delete(u),(this._fieldLength.get(u)||[]).forEach((r,o)=>{this.removeFieldLength(u,o,this._documentCount,r)}),this._fieldLength.delete(u),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:i,minDirtCount:u,batchSize:r,batchWait:o}=this._options.autoVacuum;this.conditionalVacuum({batchSize:r,batchWait:o},{minDirtCount:u,minDirtFactor:i})}discardAll(i){const u=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const r of i)this.discard(r)}finally{this._options.autoVacuum=u}this.maybeAutoVacuum()}replace(i){const{idField:u,extractField:r}=this._options,o=r(i,u);this.discard(o),this.add(i)}vacuum(i={}){return this.conditionalVacuum(i)}conditionalVacuum(i,u){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&u,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const r=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=Eo,this.performVacuuming(i,r)}),this._enqueuedVacuum)):this.vacuumConditionsMet(u)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(i),this._currentVacuum)}async performVacuuming(i,u){const r=this._dirtCount;if(this.vacuumConditionsMet(u)){const o=i.batchSize||So.batchSize,d=i.batchWait||So.batchWait;let m=1;for(const[v,y]of this._index){for(const[g,b]of y)for(const[x]of b)this._documentIds.has(x)||(b.size<=1?y.delete(g):b.delete(x));this._index.get(v).size===0&&this._index.delete(v),m%o===0&&await new Promise(g=>setTimeout(g,d)),m+=1}this._dirtCount-=r}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(i){if(i==null)return!0;let{minDirtCount:u,minDirtFactor:r}=i;return u=u||co.minDirtCount,r=r||co.minDirtFactor,this.dirtCount>=u&&this.dirtFactor>=r}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(i){return this._idToShortId.has(i)}getStoredFields(i){const u=this._idToShortId.get(i);if(u!=null)return this._storedFields.get(u)}search(i,u={}){const{searchOptions:r}=this._options,o={...r,...u},d=this.executeQuery(i,u),m=[];for(const[v,{score:y,terms:g,match:b}]of d){const x=g.length||1,N={id:this._documentIds.get(v),score:y*x,terms:Object.keys(b),queryTerms:g,match:b};Object.assign(N,this._storedFields.get(v)),(o.filter==null||o.filter(N))&&m.push(N)}return i===Ra.wildcard&&o.boostDocument==null||m.sort(jg),m}autoSuggest(i,u={}){u={...this._options.autoSuggestOptions,...u};const r=new Map;for(const{score:d,terms:m}of this.search(i,u)){const v=m.join(" "),y=r.get(v);y!=null?(y.score+=d,y.count+=1):r.set(v,{score:d,terms:m,count:1})}const o=[];for(const[d,{score:m,terms:v,count:y}]of r)o.push({suggestion:d,terms:v,score:m/y});return o.sort(jg),o}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(i,u){if(u==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(i),u)}static async loadJSONAsync(i,u){if(u==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(i),u)}static getDefault(i){if(ro.hasOwnProperty(i))return so(ro,i);throw new Error(`MiniSearch: unknown option "${i}"`)}static loadJS(i,u){const{index:r,documentIds:o,fieldLength:d,storedFields:m,serializationVersion:v}=i,y=this.instantiateMiniSearch(i,u);y._documentIds=os(o),y._fieldLength=os(d),y._storedFields=os(m);for(const[g,b]of y._documentIds)y._idToShortId.set(b,g);for(const[g,b]of r){const x=new Map;for(const N of Object.keys(b)){let w=b[N];v===1&&(w=w.ds),x.set(parseInt(N,10),os(w))}y._index.set(g,x)}return y}static async loadJSAsync(i,u){const{index:r,documentIds:o,fieldLength:d,storedFields:m,serializationVersion:v}=i,y=this.instantiateMiniSearch(i,u);y._documentIds=await fs(o),y._fieldLength=await fs(d),y._storedFields=await fs(m);for(const[b,x]of y._documentIds)y._idToShortId.set(x,b);let g=0;for(const[b,x]of r){const N=new Map;for(const w of Object.keys(x)){let M=x[w];v===1&&(M=M.ds),N.set(parseInt(w,10),await fs(M))}++g%1e3===0&&await Bp(0),y._index.set(b,N)}return y}static instantiateMiniSearch(i,u){const{documentCount:r,nextId:o,fieldIds:d,averageFieldLength:m,dirtCount:v,serializationVersion:y}=i;if(y!==1&&y!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const g=new Ra(u);return g._documentCount=r,g._nextId=o,g._idToShortId=new Map,g._fieldIds=d,g._avgFieldLength=m,g._dirtCount=v||0,g._index=new pl,g}executeQuery(i,u={}){if(i===Ra.wildcard)return this.executeWildcardQuery(u);if(typeof i!="string"){const N={...u,...i,queries:void 0},w=i.queries.map(M=>this.executeQuery(M,N));return this.combineResults(w,N.combineWith)}const{tokenize:r,processTerm:o,searchOptions:d}=this._options,m={tokenize:r,processTerm:o,...d,...u},{tokenize:v,processTerm:y}=m,x=v(i).flatMap(N=>y(N)).filter(N=>!!N).map(wS(m)).map(N=>this.executeQuerySpec(N,m));return this.combineResults(x,m.combineWith)}executeQuerySpec(i,u){const r={...this._options.searchOptions,...u},o=(r.fields||this._options.fields).reduce((C,D)=>({...C,[D]:so(r.boost,D)||1}),{}),{boostDocument:d,weights:m,maxFuzzy:v,bm25:y}=r,{fuzzy:g,prefix:b}={...Ng.weights,...m},x=this._index.get(i.term),N=this.termResults(i.term,i.term,1,i.termBoost,x,o,d,y);let w,M;if(i.prefix&&(w=this._index.atPrefix(i.term)),i.fuzzy){const C=i.fuzzy===!0?.2:i.fuzzy,D=C<1?Math.min(v,Math.round(i.term.length*C)):C;D&&(M=this._index.fuzzyGet(i.term,D))}if(w)for(const[C,D]of w){const k=C.length-i.term.length;if(!k)continue;M==null||M.delete(C);const K=b*C.length/(C.length+.3*k);this.termResults(i.term,C,K,i.termBoost,D,o,d,y,N)}if(M)for(const C of M.keys()){const[D,k]=M.get(C);if(!k)continue;const K=g*C.length/(C.length+k);this.termResults(i.term,C,K,i.termBoost,D,o,d,y,N)}return N}executeWildcardQuery(i){const u=new Map,r={...this._options.searchOptions,...i};for(const[o,d]of this._documentIds){const m=r.boostDocument?r.boostDocument(d,"",this._storedFields.get(o)):1;u.set(o,{score:m,terms:[],match:{}})}return u}combineResults(i,u=Qo){if(i.length===0)return new Map;const r=u.toLowerCase(),o=SS[r];if(!o)throw new Error(`Invalid combination operator: ${u}`);return i.reduce(o)||new Map}toJSON(){const i=[];for(const[u,r]of this._index){const o={};for(const[d,m]of r)o[d]=Object.fromEntries(m);i.push([u,o])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:i,serializationVersion:2}}termResults(i,u,r,o,d,m,v,y,g=new Map){if(d==null)return g;for(const b of Object.keys(m)){const x=m[b],N=this._fieldIds[b],w=d.get(N);if(w==null)continue;let M=w.size;const C=this._avgFieldLength[N];for(const D of w.keys()){if(!this._documentIds.has(D)){this.removeTerm(N,D,u),M-=1;continue}const k=v?v(this._documentIds.get(D),u,this._storedFields.get(D)):1;if(!k)continue;const K=w.get(D),z=this._fieldLength.get(D)[N],q=NS(K,M,this._documentCount,z,C,y),X=r*o*x*k*q,$=g.get(D);if($){$.score+=X,AS($.terms,i);const V=so($.match,u);V?V.push(b):$.match[u]=[b]}else g.set(D,{score:X,terms:[i],match:{[u]:[b]}})}}return g}addTerm(i,u,r){const o=this._index.fetch(r,Ag);let d=o.get(i);if(d==null)d=new Map,d.set(u,1),o.set(i,d);else{const m=d.get(u);d.set(u,(m||0)+1)}}removeTerm(i,u,r){if(!this._index.has(r)){this.warnDocumentChanged(u,i,r);return}const o=this._index.fetch(r,Ag),d=o.get(i);d==null||d.get(u)==null?this.warnDocumentChanged(u,i,r):d.get(u)<=1?d.size<=1?o.delete(i):d.delete(u):d.set(u,d.get(u)-1),this._index.get(r).size===0&&this._index.delete(r)}warnDocumentChanged(i,u,r){for(const o of Object.keys(this._fieldIds))if(this._fieldIds[o]===u){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(i)} has changed before removal: term "${r}" was not present in field "${o}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(i){const u=this._nextId;return this._idToShortId.set(i,u),this._documentIds.set(u,i),this._documentCount+=1,this._nextId+=1,u}addFields(i){for(let u=0;u<i.length;u++)this._fieldIds[i[u]]=u}addFieldLength(i,u,r,o){let d=this._fieldLength.get(i);d==null&&this._fieldLength.set(i,d=[]),d[u]=o;const v=(this._avgFieldLength[u]||0)*r+o;this._avgFieldLength[u]=v/(r+1)}removeFieldLength(i,u,r,o){if(r===1){this._avgFieldLength[u]=0;return}const d=this._avgFieldLength[u]*r-o;this._avgFieldLength[u]=d/(r-1)}saveStoredFields(i,u){const{storeFields:r,extractField:o}=this._options;if(r==null||r.length===0)return;let d=this._storedFields.get(i);d==null&&this._storedFields.set(i,d={});for(const m of r){const v=o(u,m);v!==void 0&&(d[m]=v)}}}Ra.wildcard=Symbol("*");const so=(a,i)=>Object.prototype.hasOwnProperty.call(a,i)?a[i]:void 0,SS={[Qo]:(a,i)=>{for(const u of i.keys()){const r=a.get(u);if(r==null)a.set(u,i.get(u));else{const{score:o,terms:d,match:m}=i.get(u);r.score=r.score+o,r.match=Object.assign(r.match,m),wg(r.terms,d)}}return a},[Up]:(a,i)=>{const u=new Map;for(const r of i.keys()){const o=a.get(r);if(o==null)continue;const{score:d,terms:m,match:v}=i.get(r);wg(o.terms,m),u.set(r,{score:o.score+d,terms:o.terms,match:Object.assign(o.match,v)})}return u},[bS]:(a,i)=>{for(const u of i.keys())a.delete(u);return a}},ES={k:1.2,b:.7,d:.5},NS=(a,i,u,r,o,d)=>{const{k:m,b:v,d:y}=d;return Math.log(1+(u-i+.5)/(i+.5))*(y+a*(m+1)/(a+m*(1-v+v*r/o)))},wS=a=>(i,u,r)=>{const o=typeof a.fuzzy=="function"?a.fuzzy(i,u,r):a.fuzzy||!1,d=typeof a.prefix=="function"?a.prefix(i,u,r):a.prefix===!0,m=typeof a.boostTerm=="function"?a.boostTerm(i,u,r):1;return{term:i,fuzzy:o,prefix:d,termBoost:m}},ro={idField:"id",extractField:(a,i)=>a[i],stringifyField:(a,i)=>a.toString(),tokenize:a=>a.split(DS),processTerm:a=>a.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(a,i)=>{typeof(console==null?void 0:console[a])=="function"&&console[a](i)},autoVacuum:!0},Ng={combineWith:Qo,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:ES},jS={combineWith:Up,prefix:(a,i,u)=>i===u.length-1},So={batchSize:1e3,batchWait:10},Eo={minDirtFactor:.1,minDirtCount:20},co={...So,...Eo},AS=(a,i)=>{a.includes(i)||a.push(i)},wg=(a,i)=>{for(const u of i)a.includes(u)||a.push(u)},jg=({score:a},{score:i})=>i-a,Ag=()=>new Map,os=a=>{const i=new Map;for(const u of Object.keys(a))i.set(parseInt(u,10),a[u]);return i},fs=async a=>{const i=new Map;let u=0;for(const r of Object.keys(a))i.set(parseInt(r,10),a[r]),++u%1e3===0&&await Bp(0);return i},Bp=a=>new Promise(i=>setTimeout(i,a)),DS=/[\n\r\p{Z}\p{P}]+/u,CS={repo:null,state:null,type:null,label:null};function Dg(a){return`${a.repo}#${a.type}#${a.number}`}const Cg=typeof Intl<"u"&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"word"}):null;function _S(a){if(!Cg)return a.split(/[\s\p{P}]+/u).filter(Boolean);const i=[];for(const u of Cg.segment(a))u.isWordLike&&i.push(u.segment);return i}function OS(a,i){return a.filter(u=>(!i.repo||u.repo===i.repo)&&(!i.state||u.state===i.state)&&(!i.type||u.type===i.type)&&(!i.label||u.labels.includes(i.label)))}function TS(a){const i=new Map;for(const u of a)for(const r of u.labels)i.set(r,(i.get(r)??0)+1);return[...i.entries()].map(([u,r])=>({label:u,count:r})).sort((u,r)=>r.count-u.count)}function MS(a){const i=new Ra({fields:["title","labels","repo"],storeFields:[],tokenize:_S});return i.addAll(a.map(u=>({id:Dg(u),title:u.title,labels:u.labels.join(" "),repo:u.repo}))),(u,r)=>{const o=u.trim();let d=a;if(o!==""){const m=new Set(i.search(o,{prefix:!0,fuzzy:.2,combineWith:"AND"}).map(v=>String(v.id)));d=a.filter(v=>m.has(Dg(v)))}return OS(d,r)}}const RS=20;function zS(){const{items:a,loading:i,error:u}=Oo(),[r,o]=S.useState(""),[d,m]=S.useState(CS),v=S.useMemo(()=>MS(a),[a]),y=S.useMemo(()=>v(r,d),[v,r,d]),g=S.useMemo(()=>[...new Set(a.map(x=>x.repo))].sort(),[a]),b=S.useMemo(()=>TS(a).slice(0,RS),[a]);return i?h.jsx("div",{className:"grid h-full place-items-center font-mono text-sm text-fg-muted",children:"読み込み中…"}):u?h.jsx(_p,{kind:u,message:"issue / PR を取得できませんでした"}):a.length===0?h.jsxs("div",{className:"grid h-full place-items-center p-8 text-center text-sm text-fg-muted",children:["open な issue / PR がありません。",h.jsxs(h.Fragment,{children:[h.jsx("br",{}),"ターミナルで ",h.jsx("code",{className:"rounded bg-panel px-1 font-mono text-emerald-400",children:"pnpm sync"})," を実行してください。"]})]}):h.jsxs("div",{className:"mx-auto flex h-full max-w-4xl flex-col gap-4 overflow-y-auto p-5",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-2",role:"search",children:[h.jsx("input",{type:"search","aria-label":"issue / PR をタイトル・ラベル・repo で検索",value:r,onChange:x=>o(x.target.value),placeholder:"issue / PR をタイトル・ラベル・repo で検索","data-shortcut":"search",className:"min-w-[240px] flex-1 rounded-md border border-line-strong bg-panel-2 px-3 py-2 text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}),h.jsx("div",{className:"flex overflow-hidden rounded-md border border-line",children:[null,"issue","pr"].map(x=>h.jsx("button",{onClick:()=>m(N=>({...N,type:x})),"aria-pressed":d.type===x,className:`px-2.5 py-1.5 text-xs transition-colors ${d.type===x?"bg-panel text-fg":"text-fg-muted hover:text-fg"}`,children:x===null?"全て":x==="pr"?"PR":"Issue"},x??"all"))}),h.jsxs("select",{value:d.repo??"","aria-label":"repoで絞る",onChange:x=>m(N=>({...N,repo:x.target.value||null})),className:"rounded-md border border-line-strong bg-panel-2 px-2 py-1.5 text-sm text-fg-muted focus:border-emerald-500/50 focus:outline-none",children:[h.jsx("option",{value:"",children:"全 repo"}),g.map(x=>h.jsx("option",{value:x,children:x.split("/")[1]},x))]})]}),b.length>0&&h.jsx("div",{className:"flex flex-wrap gap-1.5",children:b.map(({label:x,count:N})=>{const w=d.label===x;return h.jsxs("button",{onClick:()=>m(M=>({...M,label:w?null:x})),"aria-pressed":w,className:`rounded-md border px-1.5 py-0.5 text-xs transition-colors ${w?"border-emerald-500/60 bg-emerald-400/10 font-medium text-emerald-300":"border-line text-fg-muted hover:text-fg"}`,children:[w?"✓ ":"",x," ",h.jsx("span",{className:"text-fg-faint",children:N})]},x)})}),h.jsxs("div",{className:"text-xs text-fg-faint",children:[y.length," 件 / 全 ",a.length," 件(open)"]}),h.jsxs("ul",{className:"flex flex-col gap-1.5",children:[y.map(x=>h.jsx("li",{children:h.jsxs("a",{href:x.url,target:"_blank",rel:"noreferrer",className:"flex items-start gap-3 rounded-lg border border-line bg-panel p-3 transition-colors hover:border-emerald-500/40",children:[h.jsx("span",{className:`mt-0.5 shrink-0 rounded px-1.5 py-0.5 font-mono text-xs ${x.type==="pr"?"bg-violet-500/15 text-violet-300":"bg-sky-500/15 text-sky-300"}`,children:x.type==="pr"?"PR":"ISS"}),h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("div",{className:"flex items-baseline gap-2",children:h.jsx("span",{className:"truncate text-sm text-fg",children:x.title})}),h.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-1.5 text-xs text-fg-faint",children:[h.jsxs("span",{className:"font-mono",children:[x.repo.split("/")[1]," #",x.number]}),x.comments>0&&h.jsxs("span",{children:["💬 ",x.comments]}),h.jsx("span",{children:x.updatedAt.slice(0,10)}),x.labels.map(N=>h.jsx("span",{className:"rounded bg-white/5 px-1 text-fg-muted",children:N},N))]})]})]})},`${x.repo}#${x.type}#${x.number}`)),y.length===0&&h.jsx("li",{className:"py-8 text-center text-sm text-fg-muted",children:"該当なし"})]})]})}const Lp=a=>a.split("/")[0].toLowerCase();function US(a){if(a==="personal")return{kind:"personal"};if(a!=null&&a.startsWith("org:")){const i=a.slice(4);if(i)return{kind:"org",name:i}}return{kind:"all"}}function oo(a){return a.kind==="org"?`org:${a.name}`:a.kind}function BS(a,i){if(!i)return[{kind:"all"}];const u=i.toLowerCase(),r=[...new Set(a.map(o=>Lp(o.repo.nameWithOwner)).filter(o=>o!==u))].sort();return r.length===0?[{kind:"all"}]:[{kind:"all"},{kind:"personal"},...r.map(o=>({kind:"org",name:o}))]}function Hp(a,i,u){if(a.kind==="all"||!i)return!0;const r=a.kind==="personal"?i.toLowerCase():a.name.toLowerCase();return Lp(u)===r}function LS(a,i,u,r,o){if(a.kind==="all"||!i)return{stats:u,issues:r,events:o};const d=m=>Hp(a,i,m);return{stats:u.filter(m=>d(m.repo.nameWithOwner)),issues:r.filter(m=>d(m.repo)),events:o.filter(m=>d(m.repo))}}function kp(a){return a.kind==="all"?"全体":a.kind==="personal"?"個人開発":a.name}function HS(a){return a.kind==="all"?"":a.kind==="personal"?"いまは個人開発のリポジトリだけの話をしています。組織の業務は対象外なので、そちらへ話を広げないでください。":`いまは組織${a.name}のリポジトリだけの話をしています。個人開発のリポジトリは対象外なので、そちらへ話を広げないでください。`}const kS=25,qS=40,YS=10,GS=10,_g=["done","closed","完了"];function Ua(a){return(a??"").split(`
|
|
57
|
+
`)[0].trim()}function XS(a){const i=a==null?void 0:a.boards[0];if(!i)return[];const u=new Map(i.cards.map(o=>[o.id,o])),r=[];for(const o of i.columns)if(!(_g.includes(o.id.toLowerCase())||_g.includes(o.name.toLowerCase())))for(const d of o.cardIds){const m=u.get(d);if(!m)continue;const v=m.repo?` (${m.repo})`:"";r.push(`- [${o.name}] ${m.title}${v}`)}return r.slice(0,qS)}function VS(a,i,u,r){const o=new Set((i==null?void 0:i.hidden)??[]),d=a.filter(N=>N.totalCommits>0&&!o.has(N.repo.nameWithOwner)).sort((N,w)=>w.totalCommits-N.totalCommits).slice(0,kS),m=N=>((i==null?void 0:i.tags.byRepo[N])??[]).map(w=>{var M;return(M=i==null?void 0:i.tags.defs.find(C=>C.id===w))==null?void 0:M.label}).filter(Boolean).join("/"),v=d.map(N=>{var k;const w=N.repo,M=m(w.nameWithOwner),C=[`- ${w.nameWithOwner}`,`${N.totalCommits}commits`,`最終push ${N.daysSincePush}日前`,w.primaryLanguage??"言語不明"];w.openPrCount>0&&C.push(`openPR ${w.openPrCount}`),w.openIssueCount>0&&C.push(`openIssue ${w.openIssueCount}`),M&&C.push(`タグ ${M}`);const D=Ua((k=w.lastCommits[0])==null?void 0:k.message);return`${C.join(" / ")}${D?`
|
|
58
|
+
直近: ${D}`:""}`}),y=XS(i),g=Object.entries((i==null?void 0:i.notes)??{}).filter(([,N])=>N.trim()!=="").slice(0,10).map(([N,w])=>`- ${N}: ${Ua(w).slice(0,120)}`),b=r!=null&&r.scope?HS(r.scope):"",x=[...b?[`${b}
|
|
59
|
+
`]:[],`直近${u}日の活動 (${d.length}リポジトリ${r!=null&&r.scope&&r.scope.kind!=="all"?` / ${kp(r.scope)}`:""})`,v.length>0?v.join(`
|
|
60
|
+
`):"- この期間のコミットはありません"];return y.length>0&&x.push(`
|
|
61
|
+
残タスク (ボードの未完了カード)
|
|
62
|
+
${y.join(`
|
|
63
|
+
`)}`),g.length>0&&x.push(`
|
|
64
|
+
メモ
|
|
65
|
+
${g.join(`
|
|
66
|
+
`)}`),r&&x.push(...KS(r,o)),r&&x.push(...WS(r)),r&&x.push(...IS(r,o)),x.join(`
|
|
67
|
+
`)}function QS(a){const i=a.reviewDecision==="CHANGES_REQUESTED"?" [要修正]":"";return`- ${a.repo} #${a.number} ${Ua(a.title)}${i}`}function KS(a,i){const u=[];if(!a.login)return u;const r=a.issues.filter(D=>!i.has(D.repo)),d=[...jo(r,a.login).keys()],m=[],v=[];for(const D of d){const k=Lg(r,D,a.login);m.push(...k.awaitingReview),v.push(...k.toReview)}const y=a.login.toLowerCase(),g=D=>(D.author??"").toLowerCase()===y,b=r.filter(D=>D.type==="pr"&&g(D)&&D.isDraft),x=new Set(r.filter(D=>D.type==="pr"&&g(D)).flatMap(D=>(D.linkedIssues??[]).map(k=>`${D.repo}#${k}`))),N=r.filter(D=>D.type==="issue"&&g(D)&&!x.has(`${D.repo}#${D.number}`)),M=[["レビュー待ちの自分のPR",m],["Draftの自分のPR",b],["自分がレビューするPR",v],["手を付けていない自分のissue",N]].filter(([,D])=>D.length>0).map(([D,k])=>`${D} (${k.length})
|
|
68
|
+
${k.slice(0,YS).map(QS).join(`
|
|
69
|
+
`)}`);M.length>0&&u.push(`
|
|
70
|
+
自分の仕事
|
|
71
|
+
${M.join(`
|
|
72
|
+
`)}`);const C=ub(a.events,{readAt:a.readAt??null,readIds:a.readIds??[]}).filter(D=>!i.has(D.repo)).slice(0,GS);return C.length>0&&u.push(`
|
|
73
|
+
最近起きたこと (受信箱の未読)
|
|
74
|
+
${C.map(D=>`- ${D.at.slice(0,16).replace("T"," ")} ${D.repo} #${D.number} ${Ta(D)}: ${Ua(D.title)}`).join(`
|
|
75
|
+
`)}`),u}const ZS=["あなたは開発者の壁打ち相手です。相手のGitHubの直近の活動と残タスクが与えられます。","目的は、いま注力していることの整理と、次の一手を決める手助けです。","守ること:","- 与えられたデータに無いことを推測で断定しない。分からないことは質問で返す。","- 一度に投げる質問は1つか2つまで。相手が答えやすい具体的な問いにする。","- 助言は実行できる粒度で書く。抽象論とスローガンを避ける。","- 日本語で、平易に、短く答える。日本語と英数字の間に半角スペースを入れない。","- 見出しや強調記法を並べない。箇条書きは必要なときだけ。"].join(`
|
|
76
|
+
`);function JS(a,i){return[{role:"system",content:ZS},{role:"system",content:`以下が相手の現状です。
|
|
77
|
+
|
|
78
|
+
${a}`},...i]}const $S=15;function WS(a){var d;const i=a.jira??[];if(i.length===0||((d=a.scope)==null?void 0:d.kind)==="personal")return[];const u=m=>m==="indeterminate"?0:1,o=[...i].sort((m,v)=>u(m.statusCategory)-u(v.statusCategory)||(m.updatedAt<v.updatedAt?1:-1)).slice(0,$S).map(m=>{const v=m.isMine?"":" [報告者]",y=m.priority&&m.priority!=="Not Decided"?` / ${m.priority}`:"";return`- ${m.key} ${Ua(m.title)}${v} (${m.status}${y} / 更新 ${m.updatedAt.slice(0,10)})`});return[`
|
|
79
|
+
Jiraの未完了 (${i.length})
|
|
80
|
+
${o.join(`
|
|
81
|
+
`)}`]}const FS=10;function IS(a,i){var d;if(((d=a.scope)==null?void 0:d.kind)==="personal")return[];const u=a.scope??{kind:"all"},r=(a.confluence??[]).filter(m=>!i.has(m.repo)&&Hp(u,a.login,m.repo));if(r.length===0)return[];const o=[...r].sort((m,v)=>v.daysBehind-m.daysBehind).slice(0,FS).map(m=>`- ${Ua(m.title)} (${m.space}) — ${m.repo}のpushが${m.daysBehind}日新しい`);return[`
|
|
82
|
+
Confluenceとの齟齬 (${r.length}) ページを書いたあとに実装が進んだもの
|
|
83
|
+
${o.join(`
|
|
84
|
+
`)}`]}const Og=40,PS=30;function Tg(a,i){return{id:a,startedAt:i,updatedAt:i,messages:[]}}function Mg(a,i,u){const r=i.filter(o=>o.content.trim()!=="");return{...a,updatedAt:u,messages:r}}function e2(a){var u;const i=(u=a.messages.find(r=>r.role==="user"))==null?void 0:u.content.split(`
|
|
85
|
+
`)[0].trim();return i?i.length>Og?i.slice(0,Og):i:a.startedAt.slice(0,10)}function No(a,i=PS){return a.filter(u=>u.messages.length>0).sort((u,r)=>u.updatedAt<r.updatedAt?1:u.updatedAt>r.updatedAt?-1:0).slice(0,i)}const t2={user:"あなた",assistant:"壁打ち"};function n2(a){const i=["# 壁打ちのログ",""];for(const u of No(a)){const r=`${u.updatedAt.slice(0,10)} ${u.updatedAt.slice(11,16)}`;i.push(`## ${r} ${e2(u)}`,"");for(const o of u.messages){const d=t2[o.role];d&&i.push(`### ${d}`,"",o.content.trim(),"")}}return i.join(`
|
|
86
|
+
`)}const l2="gpt-5.6-luna",a2="https://api.openai.com/v1/chat/completions";function i2(a){const i=a.replace(/\r\n/g,`
|
|
87
|
+
`).split(`
|
|
88
|
+
|
|
89
|
+
`),u=i.pop()??"";return{events:i.filter(r=>r.trim()!==""),rest:u}}function u2(a){var i,u,r;for(const o of a.split(`
|
|
90
|
+
`)){if(!o.startsWith("data:"))continue;const d=o.slice(5).trim();if(!(d===""||d==="[DONE]"))try{const m=JSON.parse(d),v=(r=(u=(i=m==null?void 0:m.choices)==null?void 0:i[0])==null?void 0:u.delta)==null?void 0:r.content;if(typeof v=="string"&&v!=="")return v}catch{continue}}return null}async function s2(a){var u;const i=await a.text().catch(()=>"");try{const r=JSON.parse(i);if(typeof((u=r==null?void 0:r.error)==null?void 0:u.message)=="string")return r.error.message}catch{}return i.slice(0,300)||`HTTP ${a.status}`}async function r2(a){const i=await fetch(a2,{method:"POST",headers:{"content-type":"application/json",authorization:`Bearer ${a.apiKey}`},body:JSON.stringify({model:a.model,messages:a.messages,stream:!0}),signal:a.signal});if(!i.ok)throw new Error(await s2(i));if(!i.body)throw new Error("応答が空でした");const u=i.body.getReader(),r=new TextDecoder;let o="";const d=m=>{for(const v of m){const y=u2(v);y!==null&&a.onDelta(y)}};for(;;){const{done:m,value:v}=await u.read();if(m)break;o+=r.decode(v,{stream:!0});const{events:y,rest:g}=i2(o);o=g,d(y)}o+=r.decode(),o.trim()!==""&&d([o])}const c2="github-reporadar_openai_key",o2="github-reporadar_openai_model",f2="github-reporadar_coach_scope",d2=["この期間、私は何に注力していた?","手を広げすぎている兆候はある?","次の1週間で最初に片付けるべきものは?","止まっているものを再開する順番を決めたい","今日の作業順を決めたい。レビュー待ちと依頼されたレビューを先に見て","要修正のレビュー指摘にどの順で対応するか、精査を手伝って"];function h2({stats:a,periodDays:i,work:u}){const{data:r,mutate:o}=yt(),[d,m]=pn(c2,""),[v,y]=pn(o2,l2),[g,b]=pn(f2,"all"),x=US(g),N=BS(a,(u==null?void 0:u.login)??null),[w,M]=S.useState(""),C=(r==null?void 0:r.coachThreads)??[],[D,k]=S.useState(()=>`t${Date.now()}`),K=C.find(W=>W.id===D),[z,q]=S.useState(()=>{var W;return((W=C[0])==null?void 0:W.messages)??[]}),[X]=S.useState(()=>{var W;return((W=C[0])==null?void 0:W.id)??null}),[$,V]=S.useState(""),[P,me]=S.useState(!1),[de,fe]=S.useState(null),[te,I]=S.useState(!1),ce=S.useRef(null),ve=S.useMemo(()=>LS(x,(u==null?void 0:u.login)??null,a,(u==null?void 0:u.issues)??[],(u==null?void 0:u.events)??[]),[x,u==null?void 0:u.login,a,u==null?void 0:u.issues,u==null?void 0:u.events]),U=S.useMemo(()=>u?{...u,issues:ve.issues,events:ve.events,scope:x}:void 0,[u,ve.issues,ve.events,x]),Q=S.useMemo(()=>VS(ve.stats,r,i,U),[ve.stats,r,i,U]);function ie(W){const j=new Date().toISOString(),L=X??D;o(Z=>{const ae=(Z.coachThreads??[]).filter(se=>se.id!==L),ne=(Z.coachThreads??[]).find(se=>se.id===L)??Tg(L,j);Z.coachThreads=No([Mg(ne,W,j),...ae])});const J=No([Mg(K??Tg(L,j),W,j),...C.filter(Z=>Z.id!==L)]);fetch("/api/coach-log",{method:"POST",headers:{"content-type":"text/markdown"},body:n2(J)}).catch(()=>{})}async function oe(W){const j=W.trim();if(j===""||P)return;fe(null),V("");const L=[...z,{role:"user",content:j}];q([...L,{role:"assistant",content:""}]),me(!0);const J=new AbortController;ce.current=J;try{await r2({apiKey:d,model:v,messages:JS(Q,L),signal:J.signal,onDelta:Z=>q(ae=>{const ne=[...ae],se=ne[ne.length-1];return ne[ne.length-1]={...se,content:se.content+Z},ne})})}catch(Z){Z instanceof DOMException&&Z.name==="AbortError"||fe(Z instanceof Error?Z.message:String(Z)),q(ae=>ae.filter((ne,se)=>!(se===ae.length-1&&ne.role==="assistant"&&ne.content==="")))}finally{me(!1),ce.current=null,q(Z=>(ie(Z),Z))}}return d===""?h.jsxs("div",{className:"mx-auto max-w-xl p-6",children:[h.jsx("h2",{className:"text-base font-medium text-fg",children:"壁打ちを始める"}),h.jsx("p",{className:"mt-2 text-sm text-fg-muted",children:"OpenAIのAPIキーを入れると使えます。キーはこのブラウザのlocalStorageにだけ置き、送信先はOpenAIのAPIだけです。 サーバーには送りません。"}),h.jsxs("form",{className:"mt-4 flex flex-col gap-3",onSubmit:W=>{W.preventDefault(),w.trim()!==""&&m(w.trim())},children:[h.jsx("input",{type:"password",value:w,onChange:W=>M(W.target.value),placeholder:"sk-...","aria-label":"OpenAIのAPIキー",autoComplete:"off",className:"rounded-md border border-line-strong bg-panel-2 px-3 py-2 font-mono text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}),h.jsx("button",{type:"submit",disabled:w.trim()==="",className:"self-start rounded-md border border-line-strong px-3 py-1.5 text-sm text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg disabled:opacity-40",children:"保存して開始"})]}),h.jsx("p",{className:"mt-4 text-xs text-fg-muted",children:"共有端末では使わないでください。キーは「キーを削除」でいつでも消せます。"})]}):h.jsxs("div",{className:"flex h-full flex-col",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-line px-4 py-2.5",children:[h.jsx("input",{value:v,onChange:W=>y(W.target.value),"aria-label":"モデル",className:"w-48 rounded-md border border-line-strong bg-panel-2 px-2 py-1.5 font-mono text-xs text-fg-muted focus:border-emerald-500/50 focus:outline-none"}),N.length>1&&h.jsx("select",{value:oo(x),onChange:W=>b(W.target.value),"aria-label":"話の範囲",title:"個人開発と組織の課題を混ぜないための切り替え。選んだ範囲のrepoだけを文脈に渡す",className:"rounded-md border border-line-strong bg-panel-2 px-2 py-1.5 text-sm text-fg-muted focus:border-emerald-500/50 focus:outline-none",children:N.map(W=>h.jsx("option",{value:oo(W),children:kp(W)},oo(W)))}),h.jsxs("button",{type:"button",onClick:()=>I(W=>!W),"aria-expanded":te,"aria-controls":"coach-context",className:"rounded-md border border-line-strong px-2.5 py-1.5 text-sm text-fg-muted transition-colors hover:text-fg",children:["送信する内容 (",Q.length,"字) ",te?"▲":"▼"]}),z.length>0&&h.jsx("button",{type:"button",onClick:()=>{q([]),k(`t${Date.now()}`)},className:"rounded-md border border-line-strong px-2.5 py-1.5 text-sm text-fg-muted transition-colors hover:text-fg",children:"会話を消す"}),h.jsx("button",{type:"button",onClick:()=>{m(""),M(""),q([])},className:"ml-auto rounded-md border border-line-strong px-2.5 py-1.5 text-sm text-fg-muted transition-colors hover:border-rose-500/40 hover:text-fg",children:"キーを削除"})]}),h.jsx("pre",{id:"coach-context",hidden:!te,className:"max-h-64 overflow-auto border-b border-line bg-panel-2/60 px-4 py-3 font-mono text-xs whitespace-pre-wrap text-fg-muted",children:Q}),h.jsxs("div",{className:"flex-1 overflow-y-auto px-4 py-4",children:[z.length===0?h.jsxs("div",{className:"mx-auto max-w-2xl",children:[h.jsxs("p",{className:"text-sm text-fg-muted",children:["直近",i,"日の活動と残タスクを渡してあります。質問から始めてください。"]}),h.jsx("div",{className:"mt-3 flex flex-col items-start gap-2",children:d2.map(W=>h.jsx("button",{type:"button",onClick:()=>oe(W),className:"rounded-md border border-line-strong px-3 py-1.5 text-left text-sm text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg",children:W},W))})]}):h.jsx("div",{className:"mx-auto flex max-w-2xl flex-col gap-4",children:z.map((W,j)=>h.jsxs("div",{className:W.role==="user"?"self-end":"self-start",children:[h.jsx("div",{className:"mb-1 font-mono text-xs text-fg-faint",children:W.role==="user"?"あなた":v}),h.jsx("div",{className:`rounded-lg px-3 py-2 text-sm whitespace-pre-wrap ${W.role==="user"?"bg-panel-2 text-fg":"bg-panel text-fg"}`,children:W.content===""&&P?"…":W.content})]},j))}),de&&h.jsx("p",{className:"mx-auto mt-4 max-w-2xl rounded-md border border-rose-500/40 px-3 py-2 text-sm text-rose-300",children:de})]}),h.jsxs("form",{className:"flex items-end gap-2 border-t border-line px-4 py-3",onSubmit:W=>{W.preventDefault(),oe($)},children:[h.jsx("textarea",{value:$,onChange:W=>V(W.target.value),onKeyDown:W=>{W.key==="Enter"&&!W.shiftKey&&!W.nativeEvent.isComposing&&(W.preventDefault(),oe($))},rows:2,placeholder:"質問を書く (Enterで送信、Shift+Enterで改行)","aria-label":"質問",className:"flex-1 resize-none rounded-md border border-line-strong bg-panel-2 px-3 py-2 text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}),P?h.jsx("button",{type:"button",onClick:()=>{var W;return(W=ce.current)==null?void 0:W.abort()},className:"rounded-md border border-line-strong px-3 py-2 text-sm text-fg-muted transition-colors hover:text-fg",children:"停止"}):h.jsx("button",{type:"submit",disabled:$.trim()==="",className:"rounded-md border border-line-strong px-3 py-2 text-sm text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg disabled:opacity-40",children:"送信"})]})]})}function m2(){const[a,i]=S.useState({status:"authed",user:null,configured:!0});return S.useEffect(()=>{},[]),a}async function g2(){await fetch("/api/auth/logout",{method:"POST"}),await jy(),window.location.reload()}const p2=S.createContext(null);function v2(){return S.useContext(p2)}function y2({children:a}){return m2(),h.jsx(h.Fragment,{children:a})}const qp={active:"活動量順",recent:"最終push順",stale:"放置順"},Yp={dashboard:"ダッシュボード",board:"ボード",search:"検索",coach:"壁打ち",wiki:"Wiki"},Rg=Object.keys(Yp).filter(a=>!0),zg=Object.keys(qp),x2=["7","30","90"],b2=["cards","table"];function S2(){ib();const a=_y(),i=v2(),{data:u}=yt(),r=(i==null?void 0:i.canPrivate)??!1,[o,d]=pn("github-reporadar_period","30",x2),[m,v]=pn("github-reporadar_sort","active",zg),[y,g]=pn("github-reporadar_show_private","0",["0","1"]),[b,x]=pn("github-reporadar_view","cards",b2),[N,w]=pn("github-reporadar_heatmap","0",["0","1"]),[M,C]=pn("github-reporadar_mode","dashboard",Rg),[D,k]=S.useState(Ao),[K,z]=S.useState(!1),[q,X]=S.useState(null),[$,V]=pn("github-reporadar_accordion","single",yy),[P,me]=S.useState(()=>new Set),de=Ig(),{items:fe}=Oo(),te=Yx(),I=Gx(),ce=Xx(),ve=a.status==="ready"?a.data.meta.login:null,U=S.useMemo(()=>({issues:fe,login:ve}),[fe,ve]),Q=S.useMemo(()=>{const F=Object.fromEntries($m.map(Oe=>[Oe,0]));for(const Oe of jo(fe,ve).values())for(const xt of $m)F[xt]+=Oe[xt];return F},[fe,ve]),ie=S.useMemo(()=>({login:ve,issues:fe,events:te,readAt:(u==null?void 0:u.inboxReadAt)??null,readIds:(u==null?void 0:u.inboxReadIds)??[],jira:I,confluence:ce}),[ve,fe,te,u==null?void 0:u.inboxReadAt,u==null?void 0:u.inboxReadIds,I,ce]);S.useEffect(()=>{function F(Oe){if(Hx(kx(Oe))!=="focus-search")return;const xt=qx();xt&&(Oe.preventDefault(),xt.focus(),xt.select())}return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[]);const oe=Number(o),W=Ty("(min-width: 1024px)"),j=W?b:"cards";S.useEffect(()=>{if(new URLSearchParams(window.location.search).get("private")!=="granted")return;g("1");const F=new URL(window.location.href);F.searchParams.delete("private"),window.history.replaceState(null,"",`${F.pathname}${F.search}${F.hash}`)},[g]);function L(F){X(F),!W&&me(Oe=>xy(Oe,F,$))}const J=S.useMemo(()=>new Date,[]),Z=S.useMemo(()=>{if(!Zc(M)||a.status!=="ready")return[];const F=y==="1"?a.data.repos:a.data.repos.filter(Oe=>!Oe.isPrivate);return fy(F,a.data.activity,oe,J)},[a,oe,J,y,M]),ae=JSON.stringify((u==null?void 0:u.hidden)??[]),ne=S.useMemo(()=>{const F=new Set(JSON.parse(ae));return F.size===0?Z:Z.filter(Oe=>!F.has(Oe.repo.nameWithOwner))},[Z,ae]),se=D.includeHidden?Z:ne,Le=S.useMemo(()=>JSON.stringify([(u==null?void 0:u.bookmarks)??[],(u==null?void 0:u.hidden)??[],(u==null?void 0:u.tags)??null]),[u]),ye=S.useMemo(()=>Zm(M,()=>Jm(py(se,D,u,U),m)),[se,D,m,Le,M,U]),Se=S.useMemo(()=>N==="1"?Zm(M,()=>Jm(se,"active")):[],[se,M,N]),Ze=Z.find(F=>F.repo.nameWithOwner===q)??ye[0]??null;if(Zc(M)&&a.status==="loading")return h.jsx("div",{className:"grid h-full place-items-center font-mono text-sm text-fg-muted",children:"読み込み中…"});if(Zc(M)&&a.status==="error")return h.jsx(_p,{kind:a.kind,message:a.message});const _e=a.status==="ready"?a.data.meta:null,nn=se.reduce((F,Oe)=>F+Oe.totalCommits,0),Ie=se.filter(F=>F.totalCommits>0).length;return h.jsxs("div",{className:"flex min-h-screen flex-col overflow-x-hidden lg:h-screen lg:overflow-hidden",children:[h.jsx("header",{className:"shrink-0 border-b border-line bg-ink/80 px-4 py-3 backdrop-blur lg:px-5",children:h.jsxs("div",{className:"flex flex-wrap items-center gap-3 lg:flex-nowrap lg:justify-between",children:[h.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[h.jsx(gx,{}),h.jsxs("div",{className:"min-w-0",children:[h.jsxs("h1",{className:"truncate text-lg tracking-tight text-fg",children:[h.jsx("span",{className:"font-normal text-fg-muted",children:"GitHub"})," ",h.jsx("span",{className:"font-semibold",children:"RepoRadar"})]}),h.jsx("p",{className:"truncate font-mono text-xs text-fg-faint",children:_e?h.jsxs(h.Fragment,{children:["@",_e.login,M==="dashboard"&&h.jsxs(h.Fragment,{children:[" ","· 直近",oe,"日 ",h.jsx("span",{className:"text-fg-muted",children:Ie})," repos ·"," ",h.jsx("span",{className:"text-fg-muted",children:nn})," commits"]})," ","· sync ",_e.lastSyncAt.slice(0,16).replace("T"," "),a.status==="ready"&&a.revalidating&&h.jsx("span",{className:"text-emerald-400/70",children:" · 更新中"})]}):h.jsx(h.Fragment,{children:a.status==="loading"?"活動データ読み込み中…":"ローカルデータ"})})]})]}),h.jsx("button",{type:"button",onClick:()=>z(F=>!F),"aria-expanded":K,"aria-controls":"header-controls",className:"shrink-0 rounded-lg border border-line-strong px-3 py-1.5 text-sm text-fg-muted transition-colors hover:text-fg lg:hidden",children:K?"閉じる":"表示設定"}),h.jsx("div",{className:"flex w-full overflow-hidden rounded-lg border border-line lg:w-auto",children:Rg.map(F=>h.jsx("button",{onClick:()=>C(F),"aria-pressed":M===F,className:`flex-1 whitespace-nowrap px-2 py-1.5 text-xs transition-colors sm:px-3 sm:text-sm lg:flex-none lg:py-1 ${M===F?"bg-panel font-medium text-fg":"text-fg-muted hover:text-fg"}`,children:Yp[F]},F))}),h.jsxs("div",{id:"header-controls",className:`${K?"flex":"hidden"} w-full flex-wrap items-center gap-3 lg:flex lg:w-auto lg:flex-nowrap`,children:[h.jsx(nb,{drifts:ce}),h.jsx(Eb,{events:te,login:ve}),h.jsx(Db,{}),h.jsx(Ab,{}),M==="dashboard"&&h.jsxs(h.Fragment,{children:[h.jsx(mx,{show:y==="1",onChange:F=>g(F?"1":"0"),canPrivate:r}),h.jsx(hx,{value:oe,onChange:F=>d(`${F}`)})]}),i&&h.jsxs("div",{className:"flex items-center gap-2 lg:border-l lg:border-line lg:pl-3",children:[h.jsx("img",{src:i.avatarUrl,alt:"",className:"h-6 w-6 shrink-0 rounded-full"}),h.jsx("span",{className:"truncate font-mono text-xs text-fg-muted",children:i.login}),h.jsx("button",{type:"button",onClick:()=>void g2(),className:"whitespace-nowrap text-xs text-fg-faint hover:text-fg-muted",children:"ログアウト"})]})]})]})}),M==="board"?h.jsx("main",{className:"flex-1 lg:min-h-0",children:h.jsx(pS,{})}):M==="search"?h.jsx("main",{className:"flex-1 lg:min-h-0 lg:overflow-hidden",children:h.jsx(zS,{})}):M==="wiki"?h.jsx("main",{className:"flex-1 lg:min-h-0 lg:overflow-hidden",children:h.jsx(lb,{drifts:ce})}):M==="coach"?h.jsx("main",{className:"flex-1 lg:min-h-0 lg:overflow-hidden",children:h.jsx(h2,{stats:ne,periodDays:oe,work:ie})}):h.jsxs("main",{className:"flex-1 lg:grid lg:min-h-0 lg:grid-cols-[minmax(0,1fr)_380px]",children:[h.jsxs("section",{className:"lg:h-full lg:overflow-y-auto",children:[h.jsx("div",{className:"border-b border-line p-4",children:h.jsxs("div",{className:"rounded-xl border border-line bg-panel px-4 py-3",children:[h.jsx("h2",{className:"font-mono text-xs tracking-wider text-fg-faint uppercase",children:h.jsxs("button",{type:"button",onClick:()=>w(N==="1"?"0":"1"),"aria-expanded":N==="1","aria-controls":"heatmap-panel",className:"flex w-full items-center gap-2 text-left transition-colors hover:text-fg-muted",children:[h.jsx("span",{"aria-hidden":"true",children:N==="1"?"▼":"▶"}),"どこで何をしていたか"]})}),h.jsx("div",{id:"heatmap-panel",className:"mt-3",hidden:N!=="1",children:N==="1"&&h.jsx(fx,{stats:Se,days:oe,now:J,ownLogin:(_e==null?void 0:_e.login)??null})})]})}),h.jsxs("div",{className:"sticky top-0 z-10 border-b border-line bg-ink/85 backdrop-blur",children:[h.jsx(sx,{filter:D,onChange:k,resultCount:ye.length,workCounts:Q}),h.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-y-2 px-4 py-2",children:[h.jsxs("span",{className:"font-mono text-xs tracking-wider text-fg-faint uppercase",children:["リポジトリ ",h.jsx("span",{className:"text-fg-muted",children:ye.length})]}),h.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[h.jsxs("div",{className:"flex items-center gap-1 lg:hidden",children:[h.jsx("button",{type:"button",onClick:()=>{V("multi"),me(new Set(ye.map(F=>F.repo.nameWithOwner)))},className:"rounded-md px-2 py-1 text-xs text-fg-muted transition-colors hover:text-fg",children:"全て開く"}),h.jsx("button",{type:"button",onClick:()=>me(new Set),disabled:P.size===0,className:"rounded-md px-2 py-1 text-xs text-fg-muted transition-colors hover:text-fg disabled:opacity-40 disabled:hover:text-fg-muted",children:"全て閉じる"}),h.jsx("button",{type:"button",onClick:()=>{const F=$==="multi"?"single":"multi";V(F),F==="single"&&me(Oe=>by(Oe,q))},"aria-pressed":$==="multi",title:$==="multi"?"複数の repo を開いたままにする":"開くのは 1 件だけにする",className:`rounded-md border px-2 py-1 text-xs transition-colors ${$==="multi"?"border-emerald-500/40 text-emerald-400":"border-line text-fg-muted hover:text-fg"}`,children:$==="multi"?"複数展開":"単一展開"})]}),h.jsx("div",{className:"flex gap-1",children:zg.map(F=>h.jsx("button",{onClick:()=>v(F),className:`rounded-md px-2 py-1 text-xs transition-colors ${m===F?"bg-panel font-medium text-fg":"text-fg-muted hover:text-fg"}`,children:qp[F]},F))}),h.jsx("div",{className:"hidden overflow-hidden rounded-md border border-line lg:flex",children:["cards","table"].map(F=>h.jsx("button",{onClick:()=>x(F),"aria-pressed":b===F,className:`px-2 py-1 text-xs transition-colors ${b===F?"bg-panel text-fg":"text-fg-muted hover:text-fg"}`,children:F==="cards"?"カード":"テーブル"},F))})]})]})]}),j==="cards"?h.jsxs("div",{className:"space-y-1.5 p-4",children:[ye.length>0?ye.map((F,Oe)=>{var xt;return h.jsx(Bx,{stats:F,index:Oe,selected:W&&(Ze==null?void 0:Ze.repo.nameWithOwner)===F.repo.nameWithOwner,expanded:P.has(F.repo.nameWithOwner),onSelect:L,ownLogin:(_e==null?void 0:_e.login)??null,menuOpen:((xt=de.menu)==null?void 0:xt.repo)===F.repo.nameWithOwner,onContextMenu:yn=>de.openAtPointer(yn,F.repo.nameWithOwner,F.repo.url),onMenuButton:yn=>de.toggleFromButton(yn,F.repo.nameWithOwner,F.repo.url)},F.repo.nameWithOwner)}):h.jsx("p",{className:"py-10 text-center text-sm text-fg-muted",children:"該当するリポジトリがありません"}),de.menu&&h.jsx(Pg,{menu:de.menu,onClose:de.close})]}):h.jsx("div",{className:"p-4",children:h.jsx(jb,{stats:ye,selectedRepo:(Ze==null?void 0:Ze.repo.nameWithOwner)??null,onSelect:X,ownLogin:(_e==null?void 0:_e.login)??null})})]}),h.jsx("aside",{className:"hidden border-l border-line bg-panel-2/40 lg:block lg:h-full lg:overflow-y-auto",children:Ze?h.jsx(Fg,{stats:Ze,ownLogin:(_e==null?void 0:_e.login)??null},Ze.repo.nameWithOwner):h.jsxs("div",{className:"grid h-full place-items-center p-8 text-center text-sm text-fg-muted",children:["リポジトリを選択すると",h.jsx("br",{}),"詳細が表示されます"]})})]})]})}function E2(a,i){if(typeof window>"u"||a===i)return 0;const u=window.localStorage,r=[];for(let d=0;d<u.length;d++){const m=u.key(d);m&&m.startsWith(a)&&!m.startsWith(i)&&r.push(m)}let o=0;for(const d of r){const m=i+d.slice(a.length);if(u.getItem(m)===null){const v=u.getItem(d);v!==null&&(u.setItem(m,v),o++)}}return o}E2("reporadar_","github-reporadar_");ry.createRoot(document.getElementById("root")).render(h.jsx(S.StrictMode,{children:h.jsx(y2,{children:h.jsx(lx,{children:h.jsx(S2,{})})})}));
|