chat2diff 0.0.0-stage → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/LICENSE +22 -0
- package/README.md +90 -3
- package/SECURITY.md +24 -0
- package/dist/cli.js +3212 -0
- package/dist/public/assets/index-Byzis5-R.js +301 -0
- package/dist/public/assets/index-DDFM2mYO.css +1 -0
- package/dist/public/index.html +14 -0
- package/package.json +82 -3
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))o(p);new MutationObserver(p=>{for(const m of p)if(m.type==="childList")for(const C of m.addedNodes)C.tagName==="LINK"&&C.rel==="modulepreload"&&o(C)}).observe(document,{childList:!0,subtree:!0});function f(p){const m={};return p.integrity&&(m.integrity=p.integrity),p.referrerPolicy&&(m.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?m.credentials="include":p.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function o(p){if(p.ep)return;p.ep=!0;const m=f(p);fetch(p.href,m)}})();function gy(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Dr={exports:{}},hu={};/**
|
|
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 Eh;function by(){if(Eh)return hu;Eh=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function f(o,p,m){var C=null;if(m!==void 0&&(C=""+m),p.key!==void 0&&(C=""+p.key),"key"in p){m={};for(var U in p)U!=="key"&&(m[U]=p[U])}else m=p;return p=m.ref,{$$typeof:s,type:o,key:C,ref:p!==void 0?p:null,props:m}}return hu.Fragment=r,hu.jsx=f,hu.jsxs=f,hu}var _h;function Sy(){return _h||(_h=1,Dr.exports=by()),Dr.exports}var c=Sy(),Rr={exports:{}},ue={};/**
|
|
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 Ch;function Ny(){if(Ch)return ue;Ch=1;var s=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),C=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),D=Symbol.for("react.view_transition"),X=Symbol.iterator;function L(y){return y===null||typeof y!="object"?null:(y=X&&y[X]||y["@@iterator"],typeof y=="function"?y:null)}var ee={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,be={};function k(y,H,Z){this.props=y,this.context=H,this.refs=be,this.updater=Z||ee}k.prototype.isReactComponent={},k.prototype.setState=function(y,H){if(typeof y!="object"&&typeof y!="function"&&y!=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,y,H,"setState")},k.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function P(){}P.prototype=k.prototype;function O(y,H,Z){this.props=y,this.context=H,this.refs=be,this.updater=Z||ee}var te=O.prototype=new P;te.constructor=O,I(te,k.prototype),te.isPureReactComponent=!0;var pe=Array.isArray;function J(){}var ie={H:null,A:null,T:null,S:null},Ce=Object.prototype.hasOwnProperty;function Ue(y,H,Z){var $=Z.ref;return{$$typeof:s,type:y,key:H,ref:$!==void 0?$:null,props:Z}}function Te(y,H){return Ue(y.type,H,y.props)}function B(y){return typeof y=="object"&&y!==null&&y.$$typeof===s}function le(y){var H={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(Z){return H[Z]})}var we=/\/+/g;function se(y,H){return typeof y=="object"&&y!==null&&y.key!=null?le(""+y.key):H.toString(36)}function z(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(J,J):(y.status="pending",y.then(function(H){y.status==="pending"&&(y.status="fulfilled",y.value=H)},function(H){y.status==="pending"&&(y.status="rejected",y.reason=H)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function K(y,H,Z,$,ve){var oe=typeof y;(oe==="undefined"||oe==="boolean")&&(y=null);var q=!1;if(y===null)q=!0;else switch(oe){case"bigint":case"string":case"number":q=!0;break;case"object":switch(y.$$typeof){case s:case r:q=!0;break;case _:return q=y._init,K(q(y._payload),H,Z,$,ve)}}if(q)return ve=ve(y),q=$===""?"."+se(y,0):$,pe(ve)?(Z="",q!=null&&(Z=q.replace(we,"$&/")+"/"),K(ve,H,Z,"",function(ye){return ye})):ve!=null&&(B(ve)&&(ve=Te(ve,Z+(ve.key==null||y&&y.key===ve.key?"":(""+ve.key).replace(we,"$&/")+"/")+q)),H.push(ve)),1;q=0;var G=$===""?".":$+":";if(pe(y))for(var M=0;M<y.length;M++)$=y[M],oe=G+se($,M),q+=K($,H,Z,oe,ve);else if(M=L(y),typeof M=="function")for(y=M.call(y),M=0;!($=y.next()).done;)$=$.value,oe=G+se($,M++),q+=K($,H,Z,oe,ve);else if(oe==="object"){if(typeof y.then=="function")return K(z(y),H,Z,$,ve);throw H=String(y),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return q}function F(y,H,Z){if(y==null)return y;var $=[],ve=0;return K(y,$,"","",function(oe){return H.call(Z,oe,ve++)}),$}function re(y){if(y._status===-1){var H=y._result,Z=H();Z.then(function($){(y._status===0||y._status===-1)&&(y._status=1,y._result=$,Z.status===void 0&&(Z.status="fulfilled",Z.value=$))},function($){(y._status===0||y._status===-1)&&(y._status=2,y._result=$,Z.status===void 0&&(Z.status="rejected",Z.reason=$))}),y._status===-1&&(y._status=0,y._result=Z)}if(y._status===1)return y._result.default;throw y._result}var ne=typeof reportError=="function"?reportError:function(y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",y);return}console.error(y)};function Ve(y){var H=ie.T,Z={};Z.types=H!==null?H.types:null,ie.T=Z;try{var $=y(),ve=ie.S;ve!==null&&ve(Z,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(J,ne)}catch(oe){ne(oe)}finally{H!==null&&Z.types!==null&&(H.types=Z.types),ie.T=H}}function We(y){var H=ie.T;if(H!==null){var Z=H.types;Z===null?H.types=[y]:Z.indexOf(y)===-1&&Z.push(y)}else Ve(We.bind(null,y))}var Qt={map:F,forEach:function(y,H,Z){F(y,function(){H.apply(this,arguments)},Z)},count:function(y){var H=0;return F(y,function(){H++}),H},toArray:function(y){return F(y,function(H){return H})||[]},only:function(y){if(!B(y))throw Error("React.Children.only expected to receive a single React element child.");return y}};return ue.Activity=x,ue.Children=Qt,ue.Component=k,ue.Fragment=f,ue.Profiler=p,ue.PureComponent=O,ue.StrictMode=o,ue.Suspense=R,ue.ViewTransition=D,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ie,ue.__COMPILER_RUNTIME={__proto__:null,c:function(y){return ie.H.useMemoCache(y)}},ue.addTransitionType=We,ue.cache=function(y){return function(){return y.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(y,H,Z){if(y==null)throw Error("The argument must be a React element, but you passed "+y+".");var $=I({},y.props),ve=y.key;if(H!=null)for(oe in H.key!==void 0&&(ve=""+H.key),H)!Ce.call(H,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&H.ref===void 0||($[oe]=H[oe]);var oe=arguments.length-2;if(oe===1)$.children=Z;else if(1<oe){for(var q=Array(oe),G=0;G<oe;G++)q[G]=arguments[G+2];$.children=q}return Ue(y.type,ve,$)},ue.createContext=function(y){return y={$$typeof:C,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:m,_context:y},y},ue.createElement=function(y,H,Z){var $,ve={},oe=null;if(H!=null)for($ in H.key!==void 0&&(oe=""+H.key),H)Ce.call(H,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(ve[$]=H[$]);var q=arguments.length-2;if(q===1)ve.children=Z;else if(1<q){for(var G=Array(q),M=0;M<q;M++)G[M]=arguments[M+2];ve.children=G}if(y&&y.defaultProps)for($ in q=y.defaultProps,q)ve[$]===void 0&&(ve[$]=q[$]);return Ue(y,oe,ve)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(y){return{$$typeof:U,render:y}},ue.isValidElement=B,ue.lazy=function(y){return{$$typeof:_,_payload:{_status:-1,_result:y},_init:re}},ue.memo=function(y,H){return{$$typeof:E,type:y,compare:H===void 0?null:H}},ue.startTransition=Ve,ue.unstable_useCacheRefresh=function(){return ie.H.useCacheRefresh()},ue.use=function(y){return ie.H.use(y)},ue.useActionState=function(y,H,Z){return ie.H.useActionState(y,H,Z)},ue.useCallback=function(y,H){return ie.H.useCallback(y,H)},ue.useContext=function(y){return ie.H.useContext(y)},ue.useDebugValue=function(){},ue.useDeferredValue=function(y,H){return ie.H.useDeferredValue(y,H)},ue.useEffect=function(y,H){return ie.H.useEffect(y,H)},ue.useEffectEvent=function(y){return ie.H.useEffectEvent(y)},ue.useId=function(){return ie.H.useId()},ue.useImperativeHandle=function(y,H,Z){return ie.H.useImperativeHandle(y,H,Z)},ue.useInsertionEffect=function(y,H){return ie.H.useInsertionEffect(y,H)},ue.useLayoutEffect=function(y,H){return ie.H.useLayoutEffect(y,H)},ue.useMemo=function(y,H){return ie.H.useMemo(y,H)},ue.useOptimistic=function(y,H){return ie.H.useOptimistic(y,H)},ue.useReducer=function(y,H,Z){return ie.H.useReducer(y,H,Z)},ue.useRef=function(y){return ie.H.useRef(y)},ue.useState=function(y){return ie.H.useState(y)},ue.useSyncExternalStore=function(y,H,Z){return ie.H.useSyncExternalStore(y,H,Z)},ue.useTransition=function(){return ie.H.useTransition()},ue.version="19.3.1",ue}var jh;function $r(){return jh||(jh=1,Rr.exports=Ny()),Rr.exports}var he=$r();const Ur=gy(he);var Hr={exports:{}},mu={},qr={exports:{}},Br={};/**
|
|
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 Ah;function Ty(){return Ah||(Ah=1,(function(s){function r(z,K){var F=z.length;z.push(K);e:for(;0<F;){var re=F-1>>>1,ne=z[re];if(0<p(ne,K))z[re]=K,z[F]=ne,F=re;else break e}}function f(z){return z.length===0?null:z[0]}function o(z){if(z.length===0)return null;var K=z[0],F=z.pop();if(F!==K){z[0]=F;e:for(var re=0,ne=z.length,Ve=ne>>>1;re<Ve;){var We=2*(re+1)-1,Qt=z[We],y=We+1,H=z[y];if(0>p(Qt,F))y<ne&&0>p(H,Qt)?(z[re]=H,z[y]=F,re=y):(z[re]=Qt,z[We]=F,re=We);else if(y<ne&&0>p(H,F))z[re]=H,z[y]=F,re=y;else break e}}return K}function p(z,K){var F=z.sortIndex-K.sortIndex;return F!==0?F:z.id-K.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;s.unstable_now=function(){return m.now()}}else{var C=Date,U=C.now();s.unstable_now=function(){return C.now()-U}}var R=[],E=[],_=1,x=null,D=3,X=!1,L=!1,ee=!1,I=!1,be=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;function O(z){for(var K=f(E);K!==null;){if(K.callback===null)o(E);else if(K.startTime<=z)o(E),K.sortIndex=K.expirationTime,r(R,K);else break;K=f(E)}}function te(z){if(ee=!1,O(z),!L)if(f(R)!==null)L=!0,pe||(pe=!0,B());else{var K=f(E);K!==null&&se(te,K.startTime-z)}}var pe=!1,J=-1,ie=5,Ce=-1;function Ue(){return I?!0:!(s.unstable_now()-Ce<ie)}function Te(){if(I=!1,pe){var z=s.unstable_now();Ce=z;var K=!0;try{e:{L=!1,ee&&(ee=!1,k(J),J=-1),X=!0;var F=D;try{t:{for(O(z),x=f(R);x!==null&&!(x.expirationTime>z&&Ue());){var re=x.callback;if(typeof re=="function"){x.callback=null,D=x.priorityLevel;var ne=re(x.expirationTime<=z);if(z=s.unstable_now(),typeof ne=="function"){x.callback=ne,O(z),K=!0;break t}x===f(R)&&o(R),O(z)}else o(R);x=f(R)}if(x!==null)K=!0;else{var Ve=f(E);Ve!==null&&se(te,Ve.startTime-z),K=!1}}break e}finally{x=null,D=F,X=!1}K=void 0}}finally{K?B():pe=!1}}}var B;if(typeof P=="function")B=function(){P(Te)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,we=le.port2;le.port1.onmessage=Te,B=function(){we.postMessage(null)}}else B=function(){be(Te,0)};function se(z,K){J=be(function(){z(s.unstable_now())},K)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(z){z.callback=null},s.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ie=0<z?Math.floor(1e3/z):5},s.unstable_getCurrentPriorityLevel=function(){return D},s.unstable_next=function(z){switch(D){case 1:case 2:case 3:var K=3;break;default:K=D}var F=D;D=K;try{return z()}finally{D=F}},s.unstable_requestPaint=function(){I=!0},s.unstable_runWithPriority=function(z,K){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var F=D;D=z;try{return K()}finally{D=F}},s.unstable_scheduleCallback=function(z,K,F){var re=s.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?re+F:re):F=re,z){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=F+ne,z={id:_++,callback:K,priorityLevel:z,startTime:F,expirationTime:ne,sortIndex:-1},F>re?(z.sortIndex=F,r(E,z),f(R)===null&&z===f(E)&&(ee?(k(J),J=-1):ee=!0,se(te,F-re))):(z.sortIndex=ne,r(R,z),L||X||(L=!0,pe||(pe=!0,B()))),z},s.unstable_shouldYield=Ue,s.unstable_wrapCallback=function(z){var K=D;return function(){var F=D;D=K;try{return z.apply(this,arguments)}finally{D=F}}}})(Br)),Br}var zh;function wy(){return zh||(zh=1,qr.exports=Ty()),qr.exports}var Yr={exports:{}},ot={};/**
|
|
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 Oh;function Ey(){if(Oh)return ot;Oh=1;var s=$r();function r(_){var x="https://react.dev/errors/"+_;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var D=2;D<arguments.length;D++)x+="&args[]="+encodeURIComponent(arguments[D])}return"Minified React error #"+_+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var o={d:{f,r:function(){throw Error(r(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},p=Symbol.for("react.portal"),m=Symbol.for("react.recoverable"),C=Symbol.for("react.optimistic_key");function U(_,x,D){var X=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:p,key:X==null?null:X===C?C:""+X,children:_,containerInfo:x,implementation:D}}var R=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function E(_,x){if(_==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ot.browser=function(_){return{$$typeof:m,_reason:_}},ot.createPortal=function(_,x){var D=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(r(299));return U(_,x,null,D)},ot.flushSync=function(_){var x=R.T,D=o.p;try{if(R.T=null,o.p=2,_)return _()}finally{R.T=x,o.p=D,o.d.f()}},ot.preconnect=function(_,x){typeof _=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,o.d.C(_,x))},ot.prefetchDNS=function(_){typeof _=="string"&&o.d.D(_)},ot.preinit=function(_,x){if(typeof _=="string"&&x&&typeof x.as=="string"){var D=x.as,X=E(D,x.crossOrigin),L=typeof x.integrity=="string"?x.integrity:void 0,ee=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;D==="style"?o.d.S(_,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:X,integrity:L,fetchPriority:ee}):D==="script"&&o.d.X(_,{crossOrigin:X,integrity:L,fetchPriority:ee,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},ot.preinitModule=function(_,x){if(typeof _=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var D=E(x.as,x.crossOrigin);o.d.M(_,{crossOrigin:D,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0})}}else x==null&&o.d.M(_)},ot.preload=function(_,x){if(typeof _=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var D=x.as,X=E(D,x.crossOrigin);o.d.L(_,D,{crossOrigin:X,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},ot.preloadModule=function(_,x){if(typeof _=="string")if(x){var D=E(x.as,x.crossOrigin);o.d.m(_,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:D,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0})}else o.d.m(_)},ot.requestFormReset=function(_){o.d.r(_)},ot.unstable_batchedUpdates=function(_,x){return _(x)},ot.useFormState=function(_,x,D){return R.H.useFormState(_,x,D)},ot.useFormStatus=function(){return R.H.useHostTransitionStatus()},ot.version="19.3.1",ot}var Mh;function _y(){if(Mh)return Yr.exports;Mh=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Yr.exports=Ey(),Yr.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 Dh;function Cy(){if(Dh)return mu;Dh=1;var s=wy(),r=$r(),f=_y();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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 p(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){for(var t=e,l=t;l&&!l.alternate;)t=l,(t.flags&4098)!==0&&(e=t.return),l=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function C(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 U(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 R(e){if(m(e)!==e)throw Error(o(188))}function E(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return R(n),e;if(u===a)return R(n),t;u=u.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=u;else{for(var i=!1,d=n.child;d;){if(d===l){i=!0,l=n,a=u;break}if(d===a){i=!0,a=n,l=u;break}d=d.sibling}if(!i){for(d=u.child;d;){if(d===l){i=!0,l=u,a=n;break}if(d===a){i=!0,a=u,l=n;break}d=d.sibling}if(!i)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function _(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=_(e),t!==null)return t;e=e.sibling}return null}function x(e,t,l,a,n,u){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&l(e,a,n,u)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&x(e.child,t,l,a,n,u))return!0;e=e.sibling}return!1}function D(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function X(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function L(e){var t=[null,null],l=D(e);return l===null||ee(t,e,l.child,{foundSelf:!1}),t}function ee(e,t,l,a){for(;l!==null;){if(l===t)a.foundSelf=!0;else if(l.tag===5||l.tag===27||l.tag===6){if(a.foundSelf)return e[1]=l,!0;e[0]=l}else if((l.tag!==22||l.memoizedState===null)&&ee(e,t,l.child,a))return!0;l=l.sibling}return!1}function I(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(o(559))}}var be=null,k=null;function P(e,t,l){return e===l?!0:e===t?(be=e,!0):!1}function O(e,t,l){return e===l?(k=e,!1):e===t?(k!==null&&(be=e),!0):!1}function te(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function pe(e,t,l){for(var a=0,n=e;n;n=l(n))a++;n=0;for(var u=t;u;u=l(u))n++;for(;0<a-n;)e=l(e),a--;for(;0<n-a;)t=l(t),n--;for(;a--;){if(e===t||t!==null&&e===t.alternate)return e;e=l(e),t=l(t)}return null}var J=Object.assign,ie=Symbol.for("react.element"),Ce=Symbol.for("react.transitional.element"),Ue=Symbol.for("react.portal"),Te=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),le=Symbol.for("react.profiler"),we=Symbol.for("react.consumer"),se=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),Ve=Symbol.for("react.activity"),We=Symbol.for("react.legacy_hidden"),Qt=Symbol.for("react.memo_cache_sentinel"),y=Symbol.for("react.view_transition"),H=Symbol.for("react.recoverable"),Z=Symbol.iterator;function $(e){return e===null||typeof e!="object"?null:(e=Z&&e[Z]||e["@@iterator"],typeof e=="function"?e:null)}var ve=Symbol.for("react.client.reference");function oe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ve?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Te:return"Fragment";case le:return"Profiler";case B:return"StrictMode";case K:return"Suspense";case F:return"SuspenseList";case Ve:return"Activity";case y:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case Ue:return"Portal";case se:return e.displayName||"Context";case we:return(e._context.displayName||"Context")+".Consumer";case z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case re:return t=e.displayName||null,t!==null?t:oe(e.type)||"Memo";case ne:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}var q=Array.isArray,G=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye={pending:!1,data:null,method:null,action:null},ft=[],Xe=-1;function ht(e){return{current:e}}function $e(e){0>Xe||(e.current=ft[Xe],ft[Xe]=null,Xe--)}function ze(e,t){Xe++,ft[Xe]=e.current,e.current=t}var Ie=ht(null),gn=ht(null),Cl=ht(null),xu=ht(null);function gu(e,t){switch(ze(Cl,t),ze(gn,e),ze(Ie,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?R0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=R0(t),e=U0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$e(Ie),ze(Ie,e)}function _a(){$e(Ie),$e(gn),$e(Cl)}function Ii(e){var t=e.memoizedState;t!==null&&(mn._currentValue=t.memoizedState,ze(xu,e)),t=Ie.current;var l=U0(t,e.type);t!==l&&(ze(gn,e),ze(Ie,l))}function bu(e){gn.current===e&&($e(Ie),$e(gn)),xu.current===e&&($e(xu),mn._currentValue=ye)}var ec,Ir;function jl(e){if(ec===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);ec=t&&t[1]||"",Ir=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+ec+e+Ir}var tc=!1;function lc(e,t){if(!e||tc)return"";tc=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var A=function(){throw Error()};if(Object.defineProperty(A.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(A,[])}catch(Y){var g=Y}Reflect.construct(e,[],A)}else{try{A.call()}catch(Y){g=Y}A=!1;try{var T=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),A=!0,new e}finally{A&&(T!==void 0?Object.defineProperty(e.prototype,"props",T):delete e.prototype.props)}}}else{try{throw Error()}catch(Y){g=Y}(A=e())&&typeof A.catch=="function"&&A.catch(function(){})}}catch(Y){if(Y&&g&&typeof Y.stack=="string")return[Y.stack,g.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),i=u[0],d=u[1];if(i&&d){var h=i.split(`
|
|
44
|
+
`),S=d.split(`
|
|
45
|
+
`);for(n=a=0;a<h.length&&!h[a].includes("DetermineComponentFrameRoot");)a++;for(;n<S.length&&!S[n].includes("DetermineComponentFrameRoot");)n++;if(a===h.length||n===S.length)for(a=h.length-1,n=S.length-1;1<=a&&0<=n&&h[a]!==S[n];)n--;for(;1<=a&&0<=n;a--,n--)if(h[a]!==S[n]){if(a!==1||n!==1)do if(a--,n--,0>n||h[a]!==S[n]){var w=`
|
|
46
|
+
`+h[a].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),w}while(1<=a&&0<=n);break}}}finally{tc=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?jl(l):""}function Tm(e,t){switch(e.tag){case 26:case 27:case 5:return jl(e.type);case 16:return jl("Lazy");case 13:return e.child!==t&&t!==null?jl("Suspense Fallback"):jl("Suspense");case 19:return jl("SuspenseList");case 0:case 15:return lc(e.type,!1);case 11:return lc(e.type.render,!1);case 1:return lc(e.type,!0);case 31:return jl("Activity");case 30:return jl("ViewTransition");default:return""}}function eo(e){try{var t="",l=null;do t+=Tm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var ac=Object.prototype.hasOwnProperty,nc=s.unstable_scheduleCallback,uc=s.unstable_cancelCallback,wm=s.unstable_shouldYield,Em=s.unstable_requestPaint,wt=s.unstable_now,_m=s.unstable_getCurrentPriorityLevel,to=s.unstable_ImmediatePriority,lo=s.unstable_UserBlockingPriority,Su=s.unstable_NormalPriority,Cm=s.unstable_LowPriority,ao=s.unstable_IdlePriority,jm=s.log,Am=s.unstable_setDisableYieldValue,bn=null,Et=null;function Al(e){if(typeof jm=="function"&&Am(e),Et&&typeof Et.setStrictMode=="function")try{Et.setStrictMode(bn,e)}catch{}}var _t=Math.clz32?Math.clz32:Mm,zm=Math.log,Om=Math.LN2;function Mm(e){return e>>>=0,e===0?32:31-(zm(e)/Om|0)|0}var Nu=256,Tu=262144,wu=4194304;function aa(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&-e;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 Eu(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~u,a!==0?n=aa(a):(i&=d,i!==0?n=aa(i):l||(l=d&~e,l!==0&&(n=aa(l))))):(d=a&~u,d!==0?n=aa(d):i!==0?n=aa(i):l||(l=a&~e,l!==0&&(n=aa(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function Sn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function no(e,t){(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var a=31-_t(l),n=1<<a;t|=e[a],l&=~n}return t}function Dm(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 uo(){var e=wu;return wu<<=1,(wu&62914560)===0&&(wu=4194304),e}function ic(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Nn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Rm(e,t,l,a,n,u){var i=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,h=e.expirationTimes,S=e.hiddenUpdates;for(l=i&~l;0<l;){var w=31-_t(l),A=1<<w;d[w]=0,h[w]=-1;var g=S[w];if(g!==null)for(S[w]=null,w=0;w<g.length;w++){var T=g[w];T!==null&&(T.lane&=-536870913)}l&=~A}a!==0&&io(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(i&~t))}function io(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-_t(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function co(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-_t(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function so(e,t){var l=t&-t;return l=(l&42)!==0?1:cc(l),(l&(e.suspendedLanes|t))!==0?0:l}function cc(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 sc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ro(){var e=M.p;return e!==0?e:(e=window.event,e===void 0?32:xh(e.type))}function oo(e,t){var l=M.p;try{return M.p=e,t()}finally{M.p=l}}var dl=Math.random().toString(36).slice(2),nt="__reactFiber$"+dl,xt="__reactProps$"+dl,Ca="__reactContainer$"+dl,fo="__reactEvents$"+dl,Um="__reactListeners$"+dl,Hm="__reactHandles$"+dl,ho="__reactResources$"+dl,Tn="__reactMarker$"+dl,_u="__reactLoad$"+dl;function Cu(e){delete e[nt],delete e[xt],delete e[Um],delete e[Hm]}function na(e){var t;if(t=e[nt])return t;for(var l=e.parentNode;l;){if(t=l[Ca]||l[nt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=W0(e);e!==null;){if(l=e[nt])return l;e=W0(e)}return t}e=l,l=e.parentNode}return null}function ja(e){if(e=e[nt]||e[Ca]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function wn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Aa(e){var t=e[ho];return t||(t=e[ho]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[Tn]=!0}function mo(e){e[_u]=void 0}var po=new Set,vo={};function ua(e,t){za(e,t),za(e+"Capture",t)}function za(e,t){for(vo[e]=t,e=0;e<t.length;e++)po.add(t[e])}var qm=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]*$"),yo={},xo={};function Bm(e){return ac.call(xo,e)?!0:ac.call(yo,e)?!1:qm.test(e)?xo[e]=!0:(yo[e]=!0,!1)}var _e=!1;function go(){var e=_e;return _e=!1,e}function ju(e,t,l){if(Bm(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,l)}}function Au(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,l)}}function hl(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,a)}}function Ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ym(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){l=""+i,u.call(this,i)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(i){l=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function rc(e){if(!e._valueTracker){var t=bo(e)?"checked":"value";e._valueTracker=Ym(e,t,""+e[t])}}function So(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=bo(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}var Gm=/[\n"\\]/g;function Ut(e){return e.replace(Gm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function oc(e,t,l,a,n,u,i,d){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ct(t)):e.value!==""+Ct(t)&&(e.value=""+Ct(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?i==="number"&&e.value==t?fc(e,Ct(e.value)):fc(e,Ct(t)):l!=null?fc(e,Ct(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Ct(d):e.removeAttribute("name")}function No(e,t,l,a,n,u,i,d){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){rc(e);return}l=l!=null?""+Ct(l):"",t=t!=null?""+Ct(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),rc(e)}function fc(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function Oa(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Ct(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function To(e,t,l){if(t!=null&&(t=""+Ct(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ct(l):""}function wo(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(q(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Ct(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),rc(e)}function Ma(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Lm=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 Eo(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Lm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function _o(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="",_e=!0);for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&(Eo(e,n,a),_e=!0)}else for(var u in t)t.hasOwnProperty(u)&&Eo(e,u,t[u])}function dc(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 km=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"],["maskType","mask-type"],["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"]]),Vm=/^[\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 zu(e){return Vm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function It(){}var hc=null;function mc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Da=null,Ra=null;function Co(e){var t=ja(e);if(t&&(e=t.stateNode)){var l=e[xt]||null;e:switch(e=t.stateNode,t.type){case"input":if(oc(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Ut(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[xt]||null;if(!n)throw Error(o(90));oc(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&So(a)}break e;case"textarea":To(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Oa(e,!!l.multiple,t,!1)}}}var pc=!1;function jo(e,t,l){if(pc)return e(t,l);pc=!0;try{var a=e(t);return a}finally{if(pc=!1,(Da!==null||Ra!==null)&&(zi(),Da&&(t=Da,e=Ra,Ra=Da=null,Co(t),e)))for(t=0;t<e.length;t++)Co(e[t])}}function En(e,t){var l=e.stateNode;if(l===null)return null;var a=l[xt]||null;if(a===null)return null;l=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var ml=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vc=!1;if(ml)try{var _n={};Object.defineProperty(_n,"passive",{get:function(){vc=!0}}),window.addEventListener("test",_n,_n),window.removeEventListener("test",_n,_n)}catch{vc=!1}var zl=null,yc=null,Ou=null;function Ao(){if(Ou)return Ou;var e,t=yc,l=t.length,a,n="value"in zl?zl.value:zl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var i=l-e;for(a=1;a<=i&&t[l-a]===n[u-a];a++);return Ou=n.slice(e,1<a?1-a:void 0)}function Mu(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 Du(){return!0}function zo(){return!1}function mt(e){function t(l,a,n,u,i){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(u):u[d]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Du:zo,this.isPropagationStopped=zo,this}return J(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Du)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Du)},persist:function(){},isPersistent:Du}),t}var Ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ru=mt(Ol),Cn=J({},Ol,{view:0,detail:0}),Xm=mt(Cn),xc,gc,jn,Uu=J({},Cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sc,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!==jn&&(jn&&e.type==="mousemove"?(xc=e.screenX-jn.screenX,gc=e.screenY-jn.screenY):gc=xc=0,jn=e),xc)},movementY:function(e){return"movementY"in e?e.movementY:gc}}),Oo=mt(Uu),Qm=J({},Uu,{dataTransfer:0}),Zm=mt(Qm),Jm=J({},Cn,{relatedTarget:0}),bc=mt(Jm),Km=J({},Ol,{animationName:0,elapsedTime:0,pseudoElement:0}),Fm=mt(Km),$m=J({},Ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Pm=mt($m),Wm=J({},Ol,{data:0}),Mo=mt(Wm),Im={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ep={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"},tp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=tp[e])?!!t[e]:!1}function Sc(){return lp}var ap=J({},Cn,{key:function(e){if(e.key){var t=Im[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Mu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ep[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sc,charCode:function(e){return e.type==="keypress"?Mu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Mu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),np=mt(ap),up=J({},Uu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Do=mt(up),ip=J({},Ol,{submitter:0}),cp=mt(ip),sp=J({},Cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sc}),rp=mt(sp),op=J({},Ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),fp=mt(op),dp=J({},Uu,{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}),hp=mt(dp),mp=J({},Ol,{newState:0,oldState:0,source:0}),pp=mt(mp),vp=[9,13,27,32],Nc=ml&&"CompositionEvent"in window,An=null;ml&&"documentMode"in document&&(An=document.documentMode);var yp=ml&&"TextEvent"in window&&!An,Ro=ml&&(!Nc||An&&8<An&&11>=An),Uo=" ",Ho=!1;function qo(e,t){switch(e){case"keyup":return vp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ua=!1;function xp(e,t){switch(e){case"compositionend":return Bo(t);case"keypress":return t.which!==32?null:(Ho=!0,Uo);case"textInput":return e=t.data,e===Uo&&Ho?null:e;default:return null}}function gp(e,t){if(Ua)return e==="compositionend"||!Nc&&qo(e,t)?(e=Ao(),Ou=yc=zl=null,Ua=!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 Ro&&t.locale!=="ko"?null:t.data;default:return null}}var bp={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 Yo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!bp[e.type]:t==="textarea"}function Go(e,t,l,a){Da?Ra?Ra.push(a):Ra=[a]:Da=a,t=Hi(t,"onChange"),0<t.length&&(l=new Ru("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var zn=null,On=null;function Sp(e){j0(e,0)}function Hu(e){var t=wn(e);if(So(t))return e}function Lo(e,t){if(e==="change")return t}var ko=!1;if(ml){var Tc;if(ml){var wc="oninput"in document;if(!wc){var Vo=document.createElement("div");Vo.setAttribute("oninput","return;"),wc=typeof Vo.oninput=="function"}Tc=wc}else Tc=!1;ko=Tc&&(!document.documentMode||9<document.documentMode)}function Xo(){zn&&(zn.detachEvent("onpropertychange",Qo),On=zn=null)}function Qo(e){if(e.propertyName==="value"&&Hu(On)){var t=[];Go(t,On,e,mc(e)),jo(Sp,t)}}function Np(e,t,l){e==="focusin"?(Xo(),zn=t,On=l,zn.attachEvent("onpropertychange",Qo)):e==="focusout"&&Xo()}function Tp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hu(On)}function wp(e,t){if(e==="click")return Hu(t)}function Ep(e,t){if(e==="input"||e==="change")return Hu(t)}function _p(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:_p;function Mn(e,t){if(jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!ac.call(t,n)||!jt(e[n],t[n]))return!1}return!0}function Ec(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Zo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jo(e,t){var l=Zo(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Zo(l)}}function Ko(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ko(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ec(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Ec(e.document)}return t}function _c(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 Cp=ml&&"documentMode"in document&&11>=document.documentMode,Ha=null,Cc=null,Dn=null,jc=!1;function $o(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;jc||Ha==null||Ha!==Ec(a)||(a=Ha,"selectionStart"in a&&_c(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Dn&&Mn(Dn,a)||(Dn=a,a=Hi(Cc,"onSelect"),0<a.length&&(t=new Ru("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Ha)))}function ia(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var qa={animationend:ia("Animation","AnimationEnd"),animationiteration:ia("Animation","AnimationIteration"),animationstart:ia("Animation","AnimationStart"),transitionrun:ia("Transition","TransitionRun"),transitionstart:ia("Transition","TransitionStart"),transitioncancel:ia("Transition","TransitionCancel"),transitionend:ia("Transition","TransitionEnd")},Ac={},Po={};ml&&(Po=document.createElement("div").style,"AnimationEvent"in window||(delete qa.animationend.animation,delete qa.animationiteration.animation,delete qa.animationstart.animation),"TransitionEvent"in window||delete qa.transitionend.transition);function ca(e){if(Ac[e])return Ac[e];if(!qa[e])return e;var t=qa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Po)return Ac[e]=t[l];return e}var Wo=ca("animationend"),Io=ca("animationiteration"),ef=ca("animationstart"),jp=ca("transitionrun"),Ap=ca("transitionstart"),zp=ca("transitioncancel"),tf=ca("transitionend"),lf=new Map,zc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");zc.push("scrollEnd");function Zt(e,t){lf.set(e,t),ua(t,[e])}var Op=0;function pl(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=$t.identifierPrefix;var l=Op++;return e="_"+e+"t_"+l.toString(32)+"_",t.autoName=e}function af(e){if(e==null||typeof e=="string")return e;var t=null,l=an;if(l!==null)for(var a=0;a<l.length;a++){var n=e[l[a]];if(n!=null){if(n==="none")return"none";t=t==null?n:t+(" "+n)}}return t??e.default}function vl(e,t){return e=af(e),t=af(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var qu=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)},Ht=[],Ba=0,Oc=0;function Bu(){for(var e=Ba,t=Oc=Ba=0;t<e;){var l=Ht[t];Ht[t++]=null;var a=Ht[t];Ht[t++]=null;var n=Ht[t];Ht[t++]=null;var u=Ht[t];if(Ht[t++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&nf(l,n,u)}}function Yu(e,t,l,a){Ht[Ba++]=e,Ht[Ba++]=t,Ht[Ba++]=l,Ht[Ba++]=a,Oc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Mc(e,t,l,a){return Yu(e,t,l,a),Gu(e)}function sa(e,t){return Yu(e,null,null,t),Gu(e)}function nf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-_t(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function Gu(e){if(50<tu)throw tu=0,Ai=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ya={};function Mp(e,t,l,a){this.tag=e,this.key=l,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gt(e,t,l,a){return new Mp(e,t,l,a)}function Dc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yl(e,t){var l=e.alternate;return l===null?(l=gt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&1206910976,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function uf(e,t){e.flags&=1206910978;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Lu(e,t,l,a,n,u){var i=0;if(a=e,typeof a=="function")Dc(a)&&(i=1);else if(typeof a=="string")i=iy(e,l,Ie.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(a){case Ve:return e=gt(31,l,t,n),e.elementType=Ve,e.lanes=u,e;case Te:return ra(l.children,n,u,t);case B:i=8,n|=24;break;case le:return e=gt(12,l,t,n|2),e.elementType=le,e.lanes=u,e;case K:return e=gt(13,l,t,n),e.elementType=K,e.lanes=u,e;case F:return e=gt(19,l,t,n),e.elementType=F,e.lanes=u,e;case We:case y:return e=n|32,e=gt(30,l,t,e),e.elementType=y,e.lanes=u,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case se:i=10;break e;case we:i=9;break e;case z:i=11;break e;case re:i=14;break e;case ne:i=16,a=null;break e}i=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=gt(i,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function ra(e,t,l,a){return e=gt(7,e,a,t),e.lanes=l,e}function Rc(e,t,l){return e=gt(6,e,null,t),e.lanes=l,e}function cf(e){var t=gt(18,null,null,0);return t.stateNode=e,t}function Uc(e,t,l){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var sf=new WeakMap;function qt(e,t){if(typeof e=="object"&&e!==null){var l=sf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:eo(t)},sf.set(e,t),t)}return{value:e,source:t,stack:eo(t)}}var Ga=[],La=0,ku=null,Rn=0,Bt=[],Yt=0,Ml=null,el=1,tl="";function xl(e,t){Ga[La++]=Rn,Ga[La++]=ku,ku=e,Rn=t}function rf(e,t,l){Bt[Yt++]=el,Bt[Yt++]=tl,Bt[Yt++]=Ml,Ml=e;var a=el;e=tl;var n=32-_t(a)-1;a&=~(1<<n),l+=1;var u=32-_t(t)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,el=1<<32-_t(t)+n|l<<n|a,tl=u+e}else el=1<<u|l<<n|a,tl=e}function Vu(e){e.return!==null&&(xl(e,1),rf(e,1,0))}function Hc(e){for(;e===ku;)ku=Ga[--La],Ga[La]=null,Rn=Ga[--La],Ga[La]=null;for(;e===Ml;)Ml=Bt[--Yt],Bt[Yt]=null,tl=Bt[--Yt],Bt[Yt]=null,el=Bt[--Yt],Bt[Yt]=null}function of(e,t){Bt[Yt++]=el,Bt[Yt++]=tl,Bt[Yt++]=Ml,el=t.id,tl=t.overflow,Ml=e}var tt=null,qe=null,me=!1,Dl=null,Gt=!1,qc=Error(o(519));function Rl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Un(qt(t,e)),qc}function ff(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[nt]=e,t[xt]=a,l){case"dialog":ge("cancel",t),ge("close",t);break;case"iframe":case"object":case"embed":ge("load",t);break;case"video":case"audio":for(l=0;l<au.length;l++)ge(au[l],t);break;case"source":ge("error",t);break;case"img":case"image":case"link":ge("error",t),ge("load",t);break;case"details":ge("toggle",t);break;case"input":ge("invalid",t),No(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ge("invalid",t);break;case"textarea":ge("invalid",t),wo(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||M0(t.textContent,l)?(a.popover!=null&&(ge("beforetoggle",t),ge("toggle",t)),a.onScroll!=null&&ge("scroll",t),a.onScrollEnd!=null&&ge("scrollend",t),a.onClick!=null&&(t.onclick=It),t=!0):t=!1,t||Rl(e,!0)}function Xu(e){for(tt=e.return;tt;)switch(tt.tag){case 5:case 31:case 13:Gt=!1;return;case 27:case 3:Gt=!0;return;default:tt=tt.return}}function ka(e){if(e!==tt)return!1;if(!me)return Xu(e),me=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||hr(e.type,e.memoizedProps)),l=!l),l&&qe&&Rl(e),Xu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));qe=P0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));qe=P0(e)}else t===27?(t=qe,$l(e.type)?(e=Nr,Nr=null,qe=e):qe=t):qe=tt?kt(e.stateNode.nextSibling):null;return!0}function oa(){qe=tt=null,me=!1}function Bc(){var e=Dl;return e!==null&&(Nt===null?Nt=e:Nt.push.apply(Nt,e),Dl=null),e}function Un(e){Dl===null?Dl=[e]:Dl.push(e)}var Yc=ht(null),fa=null,gl=null;function Ul(e,t,l){ze(Yc,t._currentValue),t._currentValue=l}function bl(e){e._currentValue=Yc.current,$e(Yc)}function Qu(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Gc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;e:for(;u!==null;){var d=u;u=n;for(var h=0;h<t.length;h++)if(d.context===t[h]){u.lanes|=l,d=u.alternate,d!==null&&(d.lanes|=l),Qu(u.return,l,e),a||(i=null);break e}u=d.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(o(341));i.lanes|=l,u=i.alternate,u!==null&&(u.lanes|=l),Qu(i,l,e),i=null}else n.tag===13&&n.memoizedState!==null&&n.memoizedState.dehydrated===null?(n.lanes|=l,i=n.alternate,i!==null&&(i.lanes|=l),Qu(n.return,l,e),i=n.child,i=i!==null?i.sibling:null):i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===e){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function da(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(o(387));if(i=i.memoizedProps,i!==null){var d=n.type;jt(n.pendingProps.value,i.value)||(e!==null?e.push(d):e=[d])}}else if(n===xu.current){if(i=n.alternate,i===null)throw Error(o(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(mn):e=[mn])}n=n.return}return e!==null&&Gc(t,e,l,a),t.flags|=262144,e!==null}function Zu(e){for(e=e.firstContext;e!==null;){if(!jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ha(e){fa=e,gl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ut(e){return df(fa,e)}function Ju(e,t){return fa===null&&ha(e),df(e,t)}function df(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},gl===null){if(e===null)throw Error(o(308));gl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else gl=gl.next=t;return l}var Dp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Rp=s.unstable_scheduleCallback,Up=s.unstable_NormalPriority,Ze={$$typeof:se,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Lc(){return{controller:new Dp,data:new Map,refCount:0}}function Hn(e){e.refCount--,e.refCount===0&&Rp(Up,function(){e.controller.abort()})}function hf(e,t){if((e.pendingLanes&4194048)!==0){var l=e.transitionTypes;for(l===null&&(l=e.transitionTypes=[]),e=0;e<t.length;e++){var a=t[e];l.indexOf(a)===-1&&l.push(a)}}}var qn=null;function Hp(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Bn=null,kc=0,ma=0,Va=null;function qp(e,t){if(Bn===null){var l=Bn=[];kc=0,ma=nr(),Va={status:"pending",value:void 0,then:function(a){l.push(a)}}}return kc++,t.then(mf,mf),t}function mf(){if(--kc===0&&(qn=null,Bn!==null)){Va!==null&&(Va.status="fulfilled");var e=Bn;Bn=null,ma=0,Va=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Bp(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var pf=G.S;G.S=function(e,t){if(c0=wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&qp(e,t),qn!==null)for(var l=sn;l!==null;)hf(l,qn),l=l.next;if(l=e.types,l!==null){for(var a=sn;a!==null;)hf(a,l),a=a.next;if(ma!==0){a=qn,a===null&&(a=qn=[]);for(var n=0;n<l.length;n++){var u=l[n];a.indexOf(u)===-1&&a.push(u)}}}pf!==null&&pf(e,t)};var pa=ht(null);function Vc(){var e=pa.current;return e!==null?e:He.pooledCache}function Ku(e,t){t===null?ze(pa,pa.current):ze(pa,t.pool)}function vf(){var e=Vc();return e===null?null:{parent:Ze._currentValue,pool:e}}var Xa=Error(o(460)),Xc=Error(o(474)),Fu=Error(o(542)),$u={then:function(){}};function yf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function xf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(It,It),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bf(e),e===void 0&&!("reason"in t)?Error(o(600)):e;default:if(typeof t.status=="string")t.then(It,It);else{if(e=He,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bf(e),e}throw ya=t,Xa}}function va(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ya=l,Xa):l}}var ya=null;function gf(){if(ya===null)throw Error(o(459));var e=ya;return ya=null,e}function bf(e){if(e===Xa||e===Fu)throw Error(o(483))}var Qa=null,Yn=0;function Pu(e){var t=Yn;return Yn+=1,Qa===null&&(Qa=[]),xf(Qa,e,t)}function Hl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Wu(e,t){throw t.$$typeof===ie?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Sf(e){function t(b,v){if(e){var N=b.deletions;N===null?(b.deletions=[v],b.flags|=16):N.push(v)}}function l(b,v){if(!e)return null;for(;v!==null;)t(b,v),v=v.sibling;return null}function a(b){for(var v=new Map;b!==null;)b.key===null?v.set(b.index,b):v.set(b.key,b),b=b.sibling;return v}function n(b,v){return b=yl(b,v),b.index=0,b.sibling=null,b}function u(b,v,N){return b.index=N,e?(N=b.alternate,N!==null?(N=N.index,N<v?(b.flags|=2,v):N):(b.flags|=134217730,v)):(b.flags|=1048576,v)}function i(b){return e&&b.alternate===null&&(b.flags|=134217730),b}function d(b,v,N,j){return v===null||v.tag!==6?(v=Rc(N,b.mode,j),v.return=b,v):(v=n(v,N),v.return=b,v)}function h(b,v,N,j){var V=N.type;return V===Te?(b=w(b,v,N.props.children,j,N.key),Hl(b,N),b):v!==null&&(v.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===ne&&va(V)===v.type)?(v=n(v,N.props),Hl(v,N),v.return=b,v):(v=Lu(N.type,N.key,N.props,null,b.mode,j),Hl(v,N),v.return=b,v)}function S(b,v,N,j){return v===null||v.tag!==4||v.stateNode.containerInfo!==N.containerInfo||v.stateNode.implementation!==N.implementation?(v=Uc(N,b.mode,j),v.return=b,v):(v=n(v,N.children||[]),v.return=b,v)}function w(b,v,N,j,V){return v===null||v.tag!==7?(v=ra(N,b.mode,j,V),v.return=b,v):(v=n(v,N),v.return=b,v)}function A(b,v,N){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Rc(""+v,b.mode,N),v.return=b,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Ce:return N=Lu(v.type,v.key,v.props,null,b.mode,N),Hl(N,v),N.return=b,N;case Ue:return v=Uc(v,b.mode,N),v.return=b,v;case ne:return v=va(v),A(b,v,N)}if(q(v)||$(v))return v=ra(v,b.mode,N,null),v.return=b,v;if(typeof v.then=="function")return A(b,Pu(v),N);if(v.$$typeof===se)return A(b,Ju(b,v),N);Wu(b,v)}return null}function g(b,v,N,j){var V=v!==null?v.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return V!==null?null:d(b,v,""+N,j);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case Ce:return N.key===V?h(b,v,N,j):null;case Ue:return N.key===V?S(b,v,N,j):null;case ne:return N=va(N),g(b,v,N,j)}if(q(N)||$(N))return V!==null?null:w(b,v,N,j,null);if(typeof N.then=="function")return g(b,v,Pu(N),j);if(N.$$typeof===se)return g(b,v,Ju(b,N),j);Wu(b,N)}return null}function T(b,v,N,j,V){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return b=b.get(N)||null,d(v,b,""+j,V);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Ce:return b=b.get(j.key===null?N:j.key)||null,h(v,b,j,V);case Ue:return b=b.get(j.key===null?N:j.key)||null,S(v,b,j,V);case ne:return j=va(j),T(b,v,N,j,V)}if(q(j)||$(j))return b=b.get(N)||null,w(v,b,j,V,null);if(typeof j.then=="function")return T(b,v,N,Pu(j),V);if(j.$$typeof===se)return T(b,v,N,Ju(v,j),V);Wu(v,j)}return null}function Y(b,v,N,j){for(var V=null,Ne=null,W=v,ae=v=0,Fe=null;W!==null&&ae<N.length;ae++){W.index>ae?(Fe=W,W=null):Fe=W.sibling;var Ee=g(b,W,N[ae],j);if(Ee===null){W===null&&(W=Fe);break}e&&W&&Ee.alternate===null&&t(b,W),v=u(Ee,v,ae),Ne===null?V=Ee:Ne.sibling=Ee,Ne=Ee,W=Fe}if(ae===N.length)return l(b,W),me&&xl(b,ae),V;if(W===null){for(;ae<N.length;ae++)W=A(b,N[ae],j),W!==null&&(v=u(W,v,ae),Ne===null?V=W:Ne.sibling=W,Ne=W);return me&&xl(b,ae),V}for(W=a(W);ae<N.length;ae++)Fe=T(W,b,ae,N[ae],j),Fe!==null&&(e&&(Ee=Fe.alternate,Ee!==null&&W.delete(Ee.key===null?ae:Ee.key)),v=u(Fe,v,ae),Ne===null?V=Fe:Ne.sibling=Fe,Ne=Fe);return e&&W.forEach(function(ta){return t(b,ta)}),me&&xl(b,ae),V}function Q(b,v,N,j){if(N==null)throw Error(o(151));for(var V=null,Ne=null,W=v,ae=v=0,Fe=null,Ee=N.next();W!==null&&!Ee.done;ae++,Ee=N.next()){W.index>ae?(Fe=W,W=null):Fe=W.sibling;var ta=g(b,W,Ee.value,j);if(ta===null){W===null&&(W=Fe);break}e&&W&&ta.alternate===null&&t(b,W),v=u(ta,v,ae),Ne===null?V=ta:Ne.sibling=ta,Ne=ta,W=Fe}if(Ee.done)return l(b,W),me&&xl(b,ae),V;if(W===null){for(;!Ee.done;ae++,Ee=N.next())Ee=A(b,Ee.value,j),Ee!==null&&(v=u(Ee,v,ae),Ne===null?V=Ee:Ne.sibling=Ee,Ne=Ee);return me&&xl(b,ae),V}for(W=a(W);!Ee.done;ae++,Ee=N.next())Ee=T(W,b,ae,Ee.value,j),Ee!==null&&(e&&(Fe=Ee.alternate,Fe!==null&&W.delete(Fe.key===null?ae:Fe.key)),v=u(Ee,v,ae),Ne===null?V=Ee:Ne.sibling=Ee,Ne=Ee);return e&&W.forEach(function(xy){return t(b,xy)}),me&&xl(b,ae),V}function de(b,v,N,j){if(typeof N=="object"&&N!==null&&N.type===Te&&N.key===null&&N.props.ref===void 0&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case Ce:e:{for(var V=N.key;v!==null;){if(v.key===V){if(V=N.type,V===Te){if(v.tag===7){l(b,v.sibling),j=n(v,N.props.children),Hl(j,N),j.return=b,b=j;break e}}else if(v.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===ne&&va(V)===v.type){l(b,v.sibling),j=n(v,N.props),Hl(j,N),j.return=b,b=j;break e}l(b,v);break}else t(b,v);v=v.sibling}N.type===Te?(j=ra(N.props.children,b.mode,j,N.key),Hl(j,N),j.return=b,b=j):(j=Lu(N.type,N.key,N.props,null,b.mode,j),Hl(j,N),j.return=b,b=j)}return i(b);case Ue:e:{for(V=N.key;v!==null;){if(v.key===V)if(v.tag===4&&v.stateNode.containerInfo===N.containerInfo&&v.stateNode.implementation===N.implementation){l(b,v.sibling),j=n(v,N.children||[]),j.return=b,b=j;break e}else{l(b,v);break}else t(b,v);v=v.sibling}j=Uc(N,b.mode,j),j.return=b,b=j}return i(b);case ne:return N=va(N),de(b,v,N,j)}if(q(N))return Y(b,v,N,j);if($(N)){if(V=$(N),typeof V!="function")throw Error(o(150));return N=V.call(N),Q(b,v,N,j)}if(typeof N.then=="function")return de(b,v,Pu(N),j);if(N.$$typeof===se)return de(b,v,Ju(b,N),j);Wu(b,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,v!==null&&v.tag===6?(l(b,v.sibling),j=n(v,N),j.return=b,b=j):(l(b,v),j=Rc(N,b.mode,j),j.return=b,b=j),i(b)):l(b,v)}return function(b,v,N,j){try{Yn=0;var V=de(b,v,N,j);return Qa=null,V}catch(W){if(W===Xa||W===Fu)throw W;var Ne=gt(29,W,null,b.mode);return Ne.lanes=j,Ne.return=b,Ne}finally{}}}var xa=Sf(!0),Nf=Sf(!1),ql=!1;function Qc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Zc(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 Bl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Yl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(je&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Gu(e),nf(e,null,l),t}return Yu(e,a,t,l),Gu(e)}function Gn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,co(e,l)}}function Jc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var i={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Kc=!1;function Ln(){if(Kc){var e=Va;if(e!==null)throw e}}function kn(e,t,l,a){Kc=!1;var n=e.updateQueue;ql=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var h=d,S=h.next;h.next=null,i===null?u=S:i.next=S,i=h;var w=e.alternate;w!==null&&(w=w.updateQueue,d=w.lastBaseUpdate,d!==i&&(d===null?w.firstBaseUpdate=S:d.next=S,w.lastBaseUpdate=h))}if(u!==null){var A=n.baseState;i=0,w=S=h=null,d=u;do{var g=d.lane&-536870913,T=g!==d.lane;if(T?(Se&g)===g:(a&g)===g){g!==0&&g===ma&&(Kc=!0),w!==null&&(w=w.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var Y=e,Q=d;g=t;var de=l;switch(Q.tag){case 1:if(Y=Q.payload,typeof Y=="function"){A=Y.call(de,A,g);break e}A=Y;break e;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=Q.payload,g=typeof Y=="function"?Y.call(de,A,g):Y,g==null)break e;A=J({},A,g);break e;case 2:ql=!0}}g=d.callback,g!==null&&(e.flags|=64,T&&(e.flags|=8192),T=n.callbacks,T===null?n.callbacks=[g]:T.push(g))}else T={lane:g,tag:d.tag,payload:d.payload,callback:d.callback,next:null},w===null?(S=w=T,h=A):w=w.next=T,i|=g;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;T=d,d=T.next,T.next=null,n.lastBaseUpdate=T,n.shared.pending=null}}while(!0);w===null&&(h=A),n.baseState=h,n.firstBaseUpdate=S,n.lastBaseUpdate=w,u===null&&(n.shared.lanes=0),Zl|=i,e.lanes=i,e.memoizedState=A}}function Tf(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function wf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Tf(l[e],t)}var Gl=ht(null),Iu=ht(0);function Ef(e,t){e=El,ze(Iu,e),ze(Gl,t),El=e|t.baseLanes}function Fc(){ze(Iu,El),ze(Gl,Gl.current)}function $c(){El=Iu.current,$e(Gl),$e(Iu)}var it=ht(null),dt=null;function Ll(e){var t=e.alternate;ze(ct,ct.current&1),ze(it,e),dt===null&&(t===null||Gl.current!==null||t.memoizedState!==null)&&(dt=e)}function Pc(e){ze(ct,ct.current),ze(it,e),dt===null&&(dt=e)}function _f(e){e.tag===22?(ze(ct,ct.current),ze(it,e),dt===null&&(dt=e)):kl()}function kl(){ze(ct,ct.current),ze(it,it.current)}function At(e){$e(it),dt===e&&(dt=null),$e(ct)}var ct=ht(0);function Vn(e,t){ze(it,it.current),ze(ct,t)}function Wc(e){$e(ct),$e(it),dt===e&&(dt=null)}function ei(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||br(l)||Sr(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){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 Sl=0,fe=null,Re=null,Je=null,ti=!1,Za=!1,ga=!1,li=0,Xn=0,Ja=null,Yp=0;function Le(){throw Error(o(321))}function Ic(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!jt(e[l],t[l]))return!1;return!0}function es(e,t,l,a,n,u){return Sl=u,fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e===null||e.memoizedState===null?rd:od,ga=!1,u=l(a,n),ga=!1,Za&&(u=jf(t,l,a,n)),Cf(e),u}function Cf(e){G.H=ri;var t=Re!==null&&Re.next!==null;if(Sl=0,Je=Re=fe=null,ti=!1,Xn=0,Ja=null,t)throw Error(o(300));e===null||Ke||(e=e.dependencies,e!==null&&Zu(e)&&(Ke=!0))}function jf(e,t,l,a){fe=e;var n=0;do{if(Za&&(Ja=null),Xn=0,Za=!1,25<=n)throw Error(o(301));if(n+=1,Je=Re=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}G.H=Jp,u=t(l,a)}while(Za);return u}function Gp(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?Qn(t):t,e=e.useState()[0],(Re!==null?Re.memoizedState:null)!==e&&(fe.flags|=1024),t}function ts(){var e=li!==0;return li=0,e}function ls(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function as(e){if(ti){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ti=!1}Sl=0,Je=Re=fe=null,Za=!1,Xn=li=0,Ja=null}function pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?fe.memoizedState=Je=e:Je=Je.next=e,Je}function Qe(){if(Re===null){var e=fe.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Je===null?fe.memoizedState:Je.next;if(t!==null)Je=t,Re=e;else{if(e===null)throw fe.alternate===null?Error(o(467)):Error(o(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},Je===null?fe.memoizedState=Je=e:Je=Je.next=e}return Je}function ai(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Qn(e){var t=Xn;return Xn+=1,Ja===null&&(Ja=[]),e=xf(Ja,e,t),t=fe,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,G.H=t===null||t.memoizedState===null?rd:od),e}function ni(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Qn(e);if(e.$$typeof===H)return;if(e.$$typeof===se)return ut(e)}throw Error(o(438,String(e)))}function ns(e){var t=null,l=fe.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=fe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=ai(),fe.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Qt;return t.index++,l}function Nl(e,t){return typeof t=="function"?t(e):t}function ui(e){var t=Qe();return us(t,Re,e)}function us(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var d=i=null,h=null,S=t,w=!1;do{var A=S.lane&-536870913;if(A!==S.lane?(Se&A)===A:(Sl&A)===A){var g=S.revertLane;if(g===0)h!==null&&(h=h.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),A===ma&&(w=!0);else if((Sl&g)===g){S=S.next,g===ma&&(w=!0);continue}else A={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},h===null?(d=h=A,i=u):h=h.next=A,fe.lanes|=g,Zl|=g;A=S.action,ga&&l(u,A),u=S.hasEagerState?S.eagerState:l(u,A)}else g={lane:A,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},h===null?(d=h=g,i=u):h=h.next=g,fe.lanes|=A,Zl|=A;S=S.next}while(S!==null&&S!==t);if(h===null?i=u:h.next=d,!jt(u,e.memoizedState)&&(Ke=!0,w&&(l=Va,l!==null)))throw l;e.memoizedState=u,e.baseState=i,e.baseQueue=h,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function is(e){var t=Qe(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var i=n=n.next;do u=e(u,i.action),i=i.next;while(i!==n);jt(u,t.memoizedState)||(Ke=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Af(e,t,l){var a=fe,n=Qe(),u=me;if(u){if(l===void 0)throw Error(o(407));l=l()}else l=t();var i=!jt((Re||n).memoizedState,l);if(i&&(n.memoizedState=l,Ke=!0),n=n.queue,rs(Mf.bind(null,a,n,e),[e]),e=n.getSnapshot!==t||i||Je!==null&&(Je.memoizedState.tag&1)!==0,Ka(e?9:8,{destroy:void 0},Of.bind(null,a,n,l,t),null),e){if(a.flags|=2048,He===null)throw Error(o(349));u||(Sl&127)!==0||zf(a,t,l)}return l}function zf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=fe.updateQueue,t===null?(t=ai(),fe.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Of(e,t,l,a){t.value=l,t.getSnapshot=a,Df(t)&&Rf(e)}function Mf(e,t,l){return l(function(){Df(t)&&Rf(e)})}function Df(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!jt(e,l)}catch{return!0}}function Rf(e){var t=sa(e,2);t!==null&&Tt(t,e,2)}function cs(e){var t=pt();if(typeof e=="function"){var l=e;if(e=l(),ga){Al(!0);try{l()}finally{Al(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nl,lastRenderedState:e},t}function Uf(e,t,l,a){return e.baseState=l,us(e,Re,typeof a=="function"?a:Nl)}function Lp(e,t,l,a,n){if(si(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};G.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Hf(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Hf(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=G.T,i={};i.types=u!==null?u.types:null,G.T=i;try{var d=l(n,a),h=G.S;h!==null&&h(i,d),qf(e,t,d)}catch(S){ss(e,t,S)}finally{u!==null&&i.types!==null&&(u.types=i.types),G.T=u}}else try{u=l(n,a),qf(e,t,u)}catch(S){ss(e,t,S)}}function qf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Bf(e,t,a)},function(a){return ss(e,t,a)}):Bf(e,t,l)}function Bf(e,t,l){t.status="fulfilled",t.value=l,Yf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Hf(e,l)))}function ss(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Yf(t),t=t.next;while(t!==a)}e.action=null}function Yf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Gf(e,t){return t}function Lf(e,t){if(me){var l=He.formState;if(l!==null){e:{var a=fe;if(me){if(qe){t:{for(var n=qe,u=Gt;n.nodeType!==8;){if(!u){n=null;break t}if(n=kt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){qe=kt(n.nextSibling),a=n.data==="F!";break e}}Rl(a)}a=!1}a&&(t=l[0])}}return l=pt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gf,lastRenderedState:t},l.queue=a,l=id.bind(null,fe,a),a.dispatch=l,a=cs(!1),u=ms.bind(null,fe,!1,a.queue),a=pt(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Lp.bind(null,fe,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function kf(e){var t=Qe();return Vf(t,Re,e)}function Vf(e,t,l){if(t=us(e,t,Gf)[0],e=ui(Nl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Qn(t)}catch(i){throw i===Xa?Fu:i}else a=t;t=Qe();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(fe.flags|=2048,Ka(9,{destroy:void 0},kp.bind(null,n,l),null)),[a,u,e]}function kp(e,t){e.action=t}function Xf(e){var t=Qe(),l=Re;if(l!==null)return Vf(t,l,e);Qe(),t=t.memoizedState,l=Qe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Ka(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=fe.updateQueue,t===null&&(t=ai(),fe.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Qf(){return Qe().memoizedState}function ii(e,t,l,a){var n=pt();fe.flags|=e,n.memoizedState=Ka(1|t,{destroy:void 0},l,a===void 0?null:a)}function ci(e,t,l,a){var n=Qe();a=a===void 0?null:a;var u=n.memoizedState.inst;Re!==null&&a!==null&&Ic(a,Re.memoizedState.deps)?n.memoizedState=Ka(t,u,l,a):(fe.flags|=e,n.memoizedState=Ka(1|t,u,l,a))}function Zf(e,t){ii(8390656,8,e,t)}function rs(e,t){ci(2048,8,e,t)}function Vp(e){fe.flags|=4;var t=fe.updateQueue;if(t===null)t=ai(),fe.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Jf(e){var t=Qe().memoizedState;return Vp({ref:t,nextImpl:e}),function(){if((je&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Kf(e,t){return ci(4,2,e,t)}function Ff(e,t){return ci(4,4,e,t)}function $f(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Pf(e,t,l){l=l!=null?l.concat([e]):null,ci(4,4,$f.bind(null,t,e),l)}function os(){}function Wf(e,t){var l=Qe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Ic(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function If(e,t){var l=Qe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Ic(t,a[1]))return a[0];if(a=e(),ga){Al(!0);try{e()}finally{Al(!1)}}return l.memoizedState=[a,t],a}function fs(e,t,l){return l===void 0||(Sl&1073741824)!==0&&(Se&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=r0(),fe.lanes|=e,Zl|=e,l)}function ed(e,t,l,a){return jt(l,t)?l:Gl.current!==null?(e=fs(e,l,a),jt(e,t)||(Ke=!0),e):(Sl&106)===0||(Sl&1073741824)!==0&&(Se&261930)===0?(Ke=!0,e.memoizedState=l):(e=r0(),fe.lanes|=e,Zl|=e,t)}function td(e,t,l,a,n){var u=M.p;M.p=u!==0&&8>u?u:8;var i=G.T,d={};d.types=i!==null?i.types:null,G.T=d,ms(e,!1,t,l);try{var h=n(),S=G.S;if(S!==null&&S(d,h),h!==null&&typeof h=="object"&&typeof h.then=="function"){var w=Bp(h,a);Zn(e,t,w,Dt(e))}else Zn(e,t,a,Dt(e))}catch(A){Zn(e,t,{then:function(){},status:"rejected",reason:A},Dt())}finally{M.p=u,i!==null&&d.types!==null&&(i.types=d.types),G.T=i}}function Xp(){}function ds(e,t,l,a){if(e.tag!==5)throw Error(o(476));var n=ld(e).queue;td(e,n,t,ye,l===null?Xp:function(){return ad(e),l(a)})}function ld(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ye,baseState:ye,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nl,lastRenderedState:ye},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ad(e){var t=ld(e);t.next===null&&(t=e.alternate.memoizedState),Zn(e,t.next.queue,{},Dt())}function hs(){return ut(mn)}function nd(){return Qe().memoizedState}function ud(){return Qe().memoizedState}function Qp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Dt();e=Bl(l);var a=Yl(t,e,l);a!==null&&(Tt(a,t,l),Gn(a,t,l)),t={cache:Lc()},e.payload=t;return}t=t.return}}function Zp(e,t,l){var a=Dt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},si(e)?cd(t,l):(l=Mc(e,t,l,a),l!==null&&(Tt(l,e,a),sd(l,t,a)))}function id(e,t,l){var a=Dt();Zn(e,t,l,a)}function Zn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(si(e))cd(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var i=t.lastRenderedState,d=u(i,l);if(n.hasEagerState=!0,n.eagerState=d,jt(d,i))return Yu(e,t,n,0),He===null&&Bu(),!1}catch{}finally{}if(l=Mc(e,t,n,a),l!==null)return Tt(l,e,a),sd(l,t,a),!0}return!1}function ms(e,t,l,a){if(a={lane:2,revertLane:nr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},si(e)){if(t)throw Error(o(479))}else t=Mc(e,l,a,2),t!==null&&Tt(t,e,2)}function si(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function cd(e,t){Za=ti=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function sd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,co(e,l)}}var ri={readContext:ut,use:ni,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useLayoutEffect:Le,useInsertionEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useSyncExternalStore:Le,useId:Le,useHostTransitionStatus:Le,useFormState:Le,useActionState:Le,useOptimistic:Le,useMemoCache:Le,useCacheRefresh:Le,useEffectEvent:Le},rd={readContext:ut,use:ni,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:ut,useEffect:Zf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ii(4194308,4,$f.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ii(4194308,4,e,t)},useInsertionEffect:function(e,t){ii(4,2,e,t)},useMemo:function(e,t){var l=pt();t=t===void 0?null:t;var a=e();if(ga){Al(!0);try{e()}finally{Al(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=pt();if(l!==void 0){var n=l(t);if(ga){Al(!0);try{l(t)}finally{Al(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Zp.bind(null,fe,e),[a.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:function(e){e=cs(e);var t=e.queue,l=id.bind(null,fe,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:os,useDeferredValue:function(e,t){var l=pt();return fs(l,e,t)},useTransition:function(){var e=cs(!1);return e=td.bind(null,fe,e.queue,!0,!1),pt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=fe,n=pt();if(me){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),He===null)throw Error(o(349));(Se&127)!==0||zf(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,Zf(Mf.bind(null,a,u,e),[e]),a.flags|=2048,Ka(9,{destroy:void 0},Of.bind(null,a,u,l,t),null),l},useId:function(){var e=pt(),t=He.identifierPrefix;if(me){var l=tl,a=el;l=(a&~(1<<32-_t(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=li++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Yp++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:hs,useFormState:Lf,useActionState:Lf,useOptimistic:function(e){var t=pt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=ms.bind(null,fe,!0,l),l.dispatch=t,[e,t]},useMemoCache:ns,useCacheRefresh:function(){return pt().memoizedState=Qp.bind(null,fe)},useEffectEvent:function(e){var t=pt(),l={impl:e};return t.memoizedState=l,function(){if((je&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},od={readContext:ut,use:ni,useCallback:Wf,useContext:ut,useEffect:rs,useImperativeHandle:Pf,useInsertionEffect:Kf,useLayoutEffect:Ff,useMemo:If,useReducer:ui,useRef:Qf,useState:function(){return ui(Nl)},useDebugValue:os,useDeferredValue:function(e,t){var l=Qe();return ed(l,Re.memoizedState,e,t)},useTransition:function(){var e=ui(Nl)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:Qn(e),t]},useSyncExternalStore:Af,useId:nd,useHostTransitionStatus:hs,useFormState:kf,useActionState:kf,useOptimistic:function(e,t){var l=Qe();return Uf(l,Re,e,t)},useMemoCache:ns,useCacheRefresh:ud,useEffectEvent:Jf},Jp={readContext:ut,use:ni,useCallback:Wf,useContext:ut,useEffect:rs,useImperativeHandle:Pf,useInsertionEffect:Kf,useLayoutEffect:Ff,useMemo:If,useReducer:is,useRef:Qf,useState:function(){return is(Nl)},useDebugValue:os,useDeferredValue:function(e,t){var l=Qe();return Re===null?fs(l,e,t):ed(l,Re.memoizedState,e,t)},useTransition:function(){var e=is(Nl)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:Qn(e),t]},useSyncExternalStore:Af,useId:nd,useHostTransitionStatus:hs,useFormState:Xf,useActionState:Xf,useOptimistic:function(e,t){var l=Qe();return Re!==null?Uf(l,Re,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:ns,useCacheRefresh:ud,useEffectEvent:Jf};function ps(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:J({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var vs={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Dt(),n=Bl(a);n.payload=t,l!=null&&(n.callback=l),t=Yl(e,n,a),t!==null&&(Tt(t,e,a),Gn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Dt(),n=Bl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Yl(e,n,a),t!==null&&(Tt(t,e,a),Gn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Dt(),a=Bl(l);a.tag=2,t!=null&&(a.callback=t),t=Yl(e,a,l),t!==null&&(Tt(t,e,l),Gn(t,e,l))}};function fd(e,t,l,a,n,u,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,i):t.prototype&&t.prototype.isPureReactComponent?!Mn(l,a)||!Mn(n,u):!0}function dd(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&vs.enqueueReplaceState(t,t.state,null)}function ba(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=J({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function hd(e){qu(e)}function md(e){console.error(e)}function pd(e){qu(e)}function oi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function vd(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function ys(e,t,l){return l=Bl(l),l.tag=3,l.payload={element:null},l.callback=function(){oi(e,t)},l}function yd(e){return e=Bl(e),e.tag=3,e}function xd(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){vd(t,l,a)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){vd(t,l,a),typeof n!="function"&&(Jl===null?Jl=new Set([this]):Jl.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function Kp(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&da(t,l,n,!0),l=it.current,l!==null){switch(l.tag){case 31:case 13:case 19:return dt===null?Oi():l.alternate===null&&ke===0&&(ke=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===$u?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),tr(e,a,n)),!1;case 22:return l.flags|=65536,a===$u?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),tr(e,a,n)),!1}throw Error(o(435,l.tag))}return tr(e,a,n),Oi(),!1}if(me)return t=it.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==qc&&(e=Error(o(422),{cause:a}),Un(qt(e,l)))):(a!==qc&&(t=Error(o(423),{cause:a}),Un(qt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=qt(a,l),n=ys(e.stateNode,a,n),Jc(e,n),ke!==4&&(ke=2)),!1;var u=Error(o(520),{cause:a});if(u=qt(u,l),eu===null?eu=[u]:eu.push(u),ke!==4&&(ke=2),t===null)return!0;a=qt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=ys(l.stateNode,a,e),Jc(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Jl===null||!Jl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=yd(n),xd(n,e,l,a),Jc(l,n),!1;break;case 22:if(l.memoizedState!==null)return l.flags|=65536,!1}l=l.return}while(l!==null);return!1}var xs=Error(o(461)),Ke=!1;function Pe(e,t,l,a){t.child=e===null?Nf(t,null,l,a):xa(t,e.child,l,a)}function gd(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var i={};for(var d in a)d!=="ref"&&(i[d]=a[d])}else i=a;return ha(t),a=es(e,t,l,i,u,n),d=ts(),e!==null&&!Ke?(ls(e,t,n),Tl(e,t,n)):(me&&d&&Vu(t),t.flags|=1,Pe(e,t,a,n),t.child)}function bd(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Dc(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Sd(e,t,u,a,n)):(e=Lu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!_s(e,n)){var i=u.memoizedProps;if(l=l.compare,l=l!==null?l:Mn,l(i,a)&&e.ref===t.ref)return Tl(e,t,n)}return t.flags|=1,e=yl(u,a),e.ref=t.ref,e.return=t,t.child=e}function Sd(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(Mn(u,a)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=a=u,_s(e,n))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,Tl(e,t,n)}return gs(e,t,l,a,n)}function Nd(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return Td(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ku(t,u!==null?u.cachePool:null),u!==null?Ef(t,u):Fc(),_f(t);else return a=t.lanes=536870912,Td(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(Ku(t,u.cachePool),Ef(t,u),kl(),t.memoizedState=null):(e!==null&&Ku(t,null),Fc(),kl());return Pe(e,t,n,l),t.child}function Jn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Td(e,t,l,a,n){var u=Vc();return u=u===null?null:{parent:Ze._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&Ku(t,null),Fc(),_f(t),e!==null&&da(e,t,a,!0),t.childLanes=n,null}function fi(e,t){return t=di({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function wd(e,t,l){return xa(t,e.child,null,l),e=fi(t,t.pendingProps),e.flags|=2,At(t),t.memoizedState=null,e}function Fp(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(me){if(a.mode==="hidden")return e=fi(t,a),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Jn(null,e);if(Pc(t),(e=qe)?(e=$0(e,Gt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ml!==null?{id:el,overflow:tl}:null,retryLane:536870912,hydrationErrors:null},l=cf(e),l.return=t,t.child=l,tt=t,qe=null)):e=null,e===null)throw Rl(t);return t.lanes=536870912,null}return fi(t,a)}var u=e.memoizedState;if(u!==null){var i=u.dehydrated;if(Pc(t),n)if(t.flags&256)t.flags&=-257,t=wd(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Ke||da(e,t,l,!1),n=(l&e.childLanes)!==0,Ke||n){if(Gl.current===null){if(a=He,a!==null&&(i=so(a,l),i!==0&&i!==u.retryLane))throw u.retryLane=i,sa(e,i),Tt(a,e,i),xs;Oi()}t=wd(e,t,l)}else e=u.treeContext,qe=kt(i.nextSibling),tt=t,me=!0,Dl=null,Gt=!1,e!==null&&of(t,e),t=fi(t,a),t.flags|=134221824;return t}return e=yl(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Fa(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function gs(e,t,l,a,n){return ha(t),l=es(e,t,l,a,void 0,n),a=ts(),e!==null&&!Ke?(ls(e,t,n),Tl(e,t,n)):(me&&a&&Vu(t),t.flags|=1,Pe(e,t,l,n),t.child)}function Ed(e,t,l,a,n,u){return ha(t),t.updateQueue=null,l=jf(t,a,l,n),Cf(e),a=ts(),e!==null&&!Ke?(ls(e,t,u),Tl(e,t,u)):(me&&a&&Vu(t),t.flags|=1,Pe(e,t,l,u),t.child)}function _d(e,t,l,a,n){if(ha(t),t.stateNode===null){var u=Ya,i=l.contextType;typeof i=="object"&&i!==null&&(u=ut(i)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=vs,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},Qc(t),i=l.contextType,u.context=typeof i=="object"&&i!==null?ut(i):Ya,u.state=t.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&(ps(t,l,i,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&vs.enqueueReplaceState(u,u.state,null),kn(t,a,u,n),Ln(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var d=t.memoizedProps,h=ba(l,d);u.props=h;var S=u.context,w=l.contextType;i=Ya,typeof w=="object"&&w!==null&&(i=ut(w));var A=l.getDerivedStateFromProps;w=typeof A=="function"||typeof u.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,w||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d||S!==i)&&dd(t,u,a,i),ql=!1;var g=t.memoizedState;u.state=g,kn(t,a,u,n),Ln(),S=t.memoizedState,d||g!==S||ql?(typeof A=="function"&&(ps(t,l,A,a),S=t.memoizedState),(h=ql||fd(t,l,h,a,g,S,i))?(w||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=S),u.props=a,u.state=S,u.context=i,a=h):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Zc(e,t),i=t.memoizedProps,w=ba(l,i),u.props=w,A=t.pendingProps,g=u.context,S=l.contextType,h=Ya,typeof S=="object"&&S!==null&&(h=ut(S)),d=l.getDerivedStateFromProps,(S=typeof d=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==A||g!==h)&&dd(t,u,a,h),ql=!1,g=t.memoizedState,u.state=g,kn(t,a,u,n),Ln();var T=t.memoizedState;i!==A||g!==T||ql||e!==null&&e.dependencies!==null&&Zu(e.dependencies)?(typeof d=="function"&&(ps(t,l,d,a),T=t.memoizedState),(w=ql||fd(t,l,w,a,g,T,h)||e!==null&&e.dependencies!==null&&Zu(e.dependencies))?(S||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,T,h),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,T,h)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=T),u.props=a,u.state=T,u.context=h,a=w):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Fa(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=xa(t,e.child,null,n),t.child=xa(t,null,l,n)):Pe(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Tl(e,t,n),e}function Cd(e,t,l,a){return oa(),t.flags|=256,Pe(e,t,l,a),t.child}var bs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ss(e){return{baseLanes:e,cachePool:vf()}}function Ns(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Mt),e}function jd(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,i;if((i=u)||(i=e!==null&&e.memoizedState===null?!1:(ct.current&2)!==0),i&&(n=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(me){if(n?Ll(t):kl(),(e=qe)?(e=$0(e,Gt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ml!==null?{id:el,overflow:tl}:null,retryLane:536870912,hydrationErrors:null},l=cf(e),l.return=t,t.child=l,tt=t,qe=null)):e=null,e===null)throw Rl(t);return Sr(e)?t.lanes=32:t.lanes=536870912,null}return u=a.children,a=a.fallback,n?(kl(),n=t.mode,u=di({mode:"hidden",children:u},n),a=ra(a,n,l,null),u.return=t,a.return=t,u.sibling=a,t.child=u,a=t.child,a.memoizedState=Ss(l),a.childLanes=Ns(e,i,l),t.memoizedState=bs,Jn(null,a)):(Ll(t),Ts(t,u))}var d=e.memoizedState;if(d!==null){var h=d.dehydrated;if(h!==null)return $p(e,t,u,i,a,h,d,l)}return n?(kl(),n=a.fallback,u=t.mode,d=e.child,h=d.sibling,a=yl(d,{mode:"hidden",children:a.children}),a.subtreeFlags=d.subtreeFlags&1206910976,h!==null?n=yl(h,n):(n=ra(n,u,l,null),n.flags|=2),n.return=t,a.return=t,a.sibling=n,t.child=a,Jn(null,a),a=t.child,n=e.child.memoizedState,n===null?n=Ss(l):(u=n.cachePool,u!==null?(d=Ze._currentValue,u=u.parent!==d?{parent:d,pool:d}:u):u=vf(),n={baseLanes:n.baseLanes|l,cachePool:u}),a.memoizedState=n,a.childLanes=Ns(e,i,l),t.memoizedState=bs,Jn(e.child,a)):(Ll(t),l=e.child,e=l.sibling,l=yl(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=l,t.memoizedState=null,l)}function Ts(e,t){return t=di({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function di(e,t){return e=gt(22,e,null,t),e.lanes=0,e}function hi(e,t,l){return xa(t,e.child,null,l),e=Ts(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $p(e,t,l,a,n,u,i,d){if(l)return t.flags&256?(Ll(t),t.flags&=-257,hi(e,t,d)):t.memoizedState!==null?(kl(),t.child=e.child,t.flags|=128,null):(kl(),u=n.fallback,i=t.mode,n=di({mode:"visible",children:n.children},i),u=ra(u,i,d,null),u.flags|=2,n.return=t,u.return=t,n.sibling=u,t.child=n,xa(t,e.child,null,d),n=t.child,n.memoizedState=Ss(d),n.childLanes=Ns(e,a,d),t.memoizedState=bs,Jn(null,n));if(Ll(t),Sr(u)){if(a=u.nextSibling&&u.nextSibling.dataset,a)var h=a.dgst;return a=h,a!==""&&(n=Error(o(419)),n.stack="",n.digest=a,Un({value:n,source:null,stack:null})),hi(e,t,d)}if(Ke||da(e,t,d,!1),a=(d&e.childLanes)!==0,Ke||a){if(Gl.current!==null)return hi(e,t,d);if(a=He,a!==null&&(n=so(a,d),n!==0&&n!==i.retryLane))throw i.retryLane=n,sa(e,n),Tt(a,e,n),xs;return br(u)||Oi(),hi(e,t,d)}return br(u)?(t.flags|=192,t.child=e.child,null):(e=i.treeContext,qe=kt(u.nextSibling),tt=t,me=!0,Dl=null,Gt=!1,e!==null&&of(t,e),t=Ts(t,n.children),t.flags|=134221824,t)}function Ad(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Qu(e.return,t,l)}function zd(e){for(var t=null;e!==null;){var l=e.alternate;l!==null&&ei(l)===null&&(t=e),e=e.sibling}return t}function mi(e,t,l,a,n,u){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=l,i.tailMode=n,i.treeForkCount=u)}function ws(e){var t=e.child;for(e.child=null;t!==null;){var l=t.sibling;t.sibling=e.child,e.child=t,t=l}}function Es(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=ct.current;if(t.flags&128)return Vn(t,i),null;var d=(i&2)!==0;if(d?(i=i&1|2,t.flags|=128):i&=1,Vn(t,i),n==="backwards"&&e!==null?(ws(e),Pe(e,t,a,l),ws(e)):Pe(e,t,a,l),a=me?Rn:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ad(e,l,t);else if(e.tag===19)Ad(e,l,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(n){case"backwards":l=zd(t.child),l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null,ws(t)),mi(t,!0,n,null,u,a);break;case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&ei(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}mi(t,!0,l,null,u,a);break;case"together":mi(t,!1,null,null,void 0,a);break;case"independent":t.memoizedState=null;break;default:l=zd(t.child),l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),mi(t,!1,n,l,u,a)}return t.child}function Od(e,t,l){var a=t.pendingProps;return Ul(t,t.type,a.value),Pe(e,t,a.children,l),t.child}function Tl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Zl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(da(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=yl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=yl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function _s(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Zu(e)))}function Pp(e,t,l){switch(t.tag){case 3:gu(t,t.stateNode.containerInfo),Ul(t,Ze,e.memoizedState.cache),oa();break;case 27:case 5:Ii(t);break;case 4:gu(t,t.stateNode.containerInfo);break;case 10:Ul(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Pc(t),null;break;case 13:var a=t.memoizedState;if(a!==null){if(a.dehydrated!==null)return Ll(t),t.flags|=128,null;a=da(e,t,l,!1);var n=t.child.childLanes;return a||(l&n)!==0?jd(e,t,l):(Ll(t),e=Tl(e,t,l),e!==null?e.sibling:null)}Ll(t);break;case 19:if(t.flags&128)return Es(e,t,l);if(n=(e.flags&128)!==0,a=(l&t.childLanes)!==0,a||(da(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Es(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Vn(t,ct.current),a)break;return null;case 22:return t.lanes=0,Nd(e,t,l,t.pendingProps);case 24:Ul(t,Ze,e.memoizedState.cache)}return Tl(e,t,l)}function Md(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!_s(e,l)&&(t.flags&128)===0)return Ke=!1,Pp(e,t,l);Ke=(e.flags&131072)!==0}else Ke=!1,me&&(t.flags&1048576)!==0&&rf(t,Rn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=va(t.elementType),t.type=e,typeof e=="function")Dc(e)?(a=ba(e,a),t.tag=1,t=_d(null,t,e,a,l)):(t.tag=0,t=gs(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===z){t.tag=11,t=gd(null,t,e,a,l);break e}else if(n===re){t.tag=14,t=bd(null,t,e,a,l);break e}else if(n===se){t.tag=10,t.type=e,t=Od(null,t,l);break e}}throw t=oe(e)||e,Error(o(306,t,""))}}return t;case 0:return gs(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=ba(a,t.pendingProps),_d(e,t,a,n,l);case 3:e:{if(gu(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,Zc(e,t),kn(t,a,null,l);var i=t.memoizedState;if(a=i.cache,Ul(t,Ze,a),a!==u.cache&&Gc(t,[Ze],l,!0),Ln(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Cd(e,t,a,l);break e}else if(a!==n){n=qt(Error(o(424)),t),Un(n),t=Cd(e,t,a,l);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(qe=kt(e.firstChild),tt=t,me=!0,Dl=null,Gt=!0,l=Nf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|134221824,l=l.sibling}else{if(oa(),a===n){t=Tl(e,t,l);break e}Pe(e,t,a,l)}t=t.child}return t;case 26:return Fa(e,t),e===null?(l=ah(t.type,null,t.pendingProps,null))?t.memoizedState=l:me||(t.stateNode=H0(t.type,t.pendingProps,Cl.current,t)):t.memoizedState=ah(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ii(t),e===null&&me&&(a=t.stateNode=I0(t.type,t.pendingProps,Cl.current),tt=t,Gt=!0,n=qe,$l(t.type)?(Nr=n,qe=kt(a.firstChild)):qe=n),Pe(e,t,t.pendingProps.children,l),Fa(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&me&&((n=a=qe)&&(a=Qv(a,t.type,t.pendingProps,Gt),a!==null?(t.stateNode=a,tt=t,qe=kt(a.firstChild),Gt=!1,n=!0):n=!1),n||Rl(t)),Ii(t),n=t.type,u=t.pendingProps,i=e!==null?e.memoizedProps:null,a=u.children,hr(n,u)?a=null:i!==null&&hr(n,i)&&(t.flags|=32),t.memoizedState!==null&&(n=es(e,t,Gp,null,null,l),mn._currentValue=n),Fa(e,t),Pe(e,t,a,l),t.child;case 6:return e===null&&me&&((e=l=qe)&&(l=Zv(l,t.pendingProps,Gt),l!==null?(t.stateNode=l,tt=t,qe=null,e=!0):e=!1),e||Rl(t)),null;case 13:return jd(e,t,l);case 4:return gu(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=xa(t,null,a,l):Pe(e,t,a,l),t.child;case 11:return gd(e,t,t.type,t.pendingProps,l);case 7:return a=t.pendingProps,Fa(e,t),Pe(e,t,a,l),t.child;case 8:return Pe(e,t,t.pendingProps.children,l),t.child;case 12:return Pe(e,t,t.pendingProps.children,l),t.child;case 10:return Od(e,t,l);case 9:return n=t.type._context,a=t.pendingProps.children,ha(t),n=ut(n),a=a(n),t.flags|=1,Pe(e,t,a,l),t.child;case 14:return bd(e,t,t.type,t.pendingProps,l);case 15:return Sd(e,t,t.type,t.pendingProps,l);case 19:return Es(e,t,l);case 31:return Fp(e,t,l);case 22:return Nd(e,t,l,t.pendingProps);case 24:return ha(t),a=ut(Ze),e===null?(n=Vc(),n===null&&(n=He,u=Lc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},Qc(t),Ul(t,Ze,n)):((e.lanes&l)!==0&&(Zc(e,t),kn(t,null,null,l),Ln()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Ul(t,Ze,a)):(a=u.cache,Ul(t,Ze,a),a!==n.cache&&Gc(t,[Ze],l,!0))),Pe(e,t,t.pendingProps.children,l),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),a=t.pendingProps,a.name!=null&&a.name!=="auto"?t.flags|=e===null?18882560:18874368:me&&Vu(t),e!==null&&e.memoizedProps.name!==a.name?t.flags|=4194816:Fa(e,t),Pe(e,t,a.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function wl(e){e.flags|=4}function Cs(e,t,l,a,n){var u;if((u=(e.mode&32)!==0)&&(u=l===null?ch(t,a):ch(t,a)&&(a.src!==l.src||a.srcSet!==l.srcSet)),u){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(h0())e.flags|=8192;else throw ya=$u,Xc}else e.flags&=-16777217}function Dd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!sh(t))if(h0())e.flags|=8192;else throw ya=$u,Xc}function pi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?uo():536870912,e.lanes|=t,en|=t)}function Kn(e,t){if(!me)switch(e.tailMode){case"visible":break;case"collapsed":for(var l=e.tail,a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null;break;default:for(t=e.tail,l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&1206910976,a|=n.flags&1206910976,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Wp(e,t,l){var a=t.pendingProps;switch(Hc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return Be(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),bl(Ze),_a(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ka(t)?wl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Bc())),Be(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(wl(t),u!==null?(Be(t),Dd(t,u)):(Be(t),Cs(t,n,null,a,l))):u?u!==e.memoizedState?(wl(t),Be(t),Dd(t,u)):(Be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&wl(t),Be(t),Cs(t,n,e,a,l)),null;case 27:if(bu(t),l=Cl.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&wl(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Be(t),t.subtreeFlags&=-33554433,null}e=Ie.current,ka(t)?ff(t):(e=I0(n,a,l),t.stateNode=e,wl(t))}return Be(t),t.subtreeFlags&=-33554433,null;case 5:if(bu(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&wl(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Be(t),t.subtreeFlags&=-33554433,null}if(u=Ie.current,ka(t))ff(t);else{var i=uu(Cl.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[nt]=t,u[xt]=a;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=u;e:switch(rt(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&wl(t)}}return Be(t),t.subtreeFlags&=-33554433,Cs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&wl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=Cl.current,ka(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=tt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[nt]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||M0(e.nodeValue,l)),e||Rl(t,!0)}else e=uu(e).createTextNode(a),e[nt]=t,t.stateNode=e}return Be(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ka(t),l!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[nt]=t}else oa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else l=Bc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(At(t),t):(At(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Be(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ka(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[nt]=t}else oa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),n=!1}else n=Bc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(At(t),t):(At(t),null)}return At(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),pi(t,t.updateQueue),Be(t),null);case 4:return _a(),e===null&&sr(t.stateNode.containerInfo),t.flags|=67108864,Be(t),null;case 10:return bl(t.type),Be(t),null;case 19:if(Wc(t),a=t.memoizedState,a===null)return Be(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)Kn(a,!1);else{if(ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=ei(e),u!==null){for(t.flags|=128,Kn(a,!1),e=u.updateQueue,t.updateQueue=e,pi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)uf(l,e),l=l.sibling;return Vn(t,ct.current&1|2),me&&xl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&wt()>Ci&&(t.flags|=128,n=!0,Kn(a,!1),t.lanes=4194304)}else{if(!n)if(e=ei(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,pi(t,e),Kn(a,!0),a.tail===null&&a.tailMode!=="collapsed"&&a.tailMode!=="visible"&&!u.alternate&&!me)return Be(t),null}else 2*wt()-a.renderingStartTime>Ci&&l!==536870912&&(t.flags|=128,n=!0,Kn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}if(a.tail!==null){e=a.tail;e:{for(l=e;l!==null;){if(l.alternate!==null){l=!1;break e}l=l.sibling}l=!0}return a.rendering=e,a.tail=e.sibling,a.renderingStartTime=wt(),e.sibling=null,u=ct.current,u=n?u&1|2:u&1,a.tailMode==="visible"||a.tailMode==="collapsed"||!l||me?Vn(t,u):(l=u,ze(it,t),ze(ct,l),dt===null&&(dt=t)),me&&xl(t,a.treeForkCount),e}return Be(t),null;case 22:case 23:return At(t),$c(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),l=t.updateQueue,l!==null&&pi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&$e(pa),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),bl(Ze),Be(t),null;case 25:return null;case 30:return t.flags|=33554432,Be(t),null}throw Error(o(156,t.tag))}function Ip(e,t){switch(Hc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bl(Ze),_a(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return bu(t),null;case 31:if(t.memoizedState!==null){if(At(t),t.alternate===null)throw Error(o(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(At(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));oa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Wc(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return _a(),null;case 10:return bl(t.type),null;case 22:case 23:return At(t),$c(),e!==null&&$e(pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return bl(Ze),null;case 25:return null;default:return null}}function Rd(e,t){switch(Hc(t),t.tag){case 3:bl(Ze),_a();break;case 26:case 27:case 5:bu(t);break;case 4:_a();break;case 31:t.memoizedState!==null&&At(t);break;case 13:At(t);break;case 19:Wc(t);break;case 10:bl(t.type);break;case 22:case 23:At(t),$c(),e!==null&&$e(pa);break;case 24:bl(Ze)}}function Fn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,i=l.inst;a=u(),i.destroy=a}l=l.next}while(l!==n)}}catch(d){Me(t,t.return,d)}}function Vl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var i=a.inst,d=i.destroy;if(d!==void 0){i.destroy=void 0,n=t;var h=l,S=d;try{S()}catch(w){Me(n,h,w)}}}a=a.next}while(a!==u)}}catch(w){Me(t,t.return,w)}}function Ud(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{wf(t,l)}catch(a){Me(e,e.return,a)}}}function Hd(e,t,l){l.props=ba(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function ll(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:var n=e.stateNode,u=pl(e.memoizedProps,n);(n.ref===null||n.ref.name!==u)&&(n.ref=V0(u)),a=n.ref;break;case 7:if(e.stateNode===null){var i=new Rt(e);x(e.child,!1,Vv,i,void 0,void 0),e.stateNode=i}a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(d){Me(e,t,d)}}function st(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Me(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Me(e,t,n)}else l.current=null}function vi(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var l=0;l<t.length;l++)F0(e.stateNode,t[l])}function qd(e){for(var t=e.return;t!==null&&(As(t)&&F0(e.stateNode,t.stateNode),!js(t));)t=t.return}function $n(e){for(var t=e.return;t!==null&&(As(t)&&Xv(e.stateNode,t.stateNode),!js(t));)t=t.return}function js(e){return e.tag===5||e.tag===3||e.tag===27}function As(e){return e&&e.tag===7&&e.stateNode!==null}function zs(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Me(e,e.return,n)}}function Os(e,t,l){try{var a=e.stateNode;Ev(a,e.type,l,t),a[xt]=t}catch(n){Me(e,e.return,n)}}function Bd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$l(e.type)||e.tag===4}function Ms(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Bd(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&&$l(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 Ds(e,t,l,a){var n=e.tag;if(n===5||n===6)n=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(n),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=It)),vi(e,a),_e=!0;else if(n!==4&&(n===27&&(vi(e,a),a=null,$l(e.type)&&(l=e.stateNode,t=null)),e=e.child,e!==null))for(Ds(e,t,l,a),e=e.sibling;e!==null;)Ds(e,t,l,a),e=e.sibling}function yi(e,t,l,a){var n=e.tag;if(n===5||n===6)n=e.stateNode,t?l.insertBefore(n,t):l.appendChild(n),vi(e,a),_e=!0;else if(n!==4&&(n===27&&(vi(e,a),a=null,$l(e.type)&&(l=e.stateNode)),e=e.child,e!==null))for(yi(e,t,l,a),e=e.sibling;e!==null;)yi(e,t,l,a),e=e.sibling}function Yd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);rt(t,a,l),t[nt]=e,t[xt]=l}catch(u){Me(e,e.return,u)}}var xi=!1,zt=null;function Gd(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(xi=!0)}var al=null;function Ld(){var e=al;return al=null,e}var bt=0;function $a(e,t,l,a,n){return bt=0,kd(e.child,t,l,a,n)}function kd(e,t,l,a,n){for(var u=!1;e!==null;){if(e.tag===5){var i=e.stateNode;if(a!==null){var d=vr(i);a.push(d),d.view&&(u=!0)}else u||vr(i).view&&(u=!0);xi=!0,L0(i,bt===0?t:t+"_"+bt,l),bt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&n||kd(e.child,t,l,a,n)&&(u=!0));e=e.sibling}return u}function nl(e,t){for(;e!==null;)e.tag===5?k0(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||nl(e.child,t)),e=e.sibling}function gi(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(gi(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(o(544));var l=t.name;t=vl(t.default,t.share),t!=="none"&&($a(e,l,t,null,!1)||nl(e.child,!1))}e=e.sibling}}function Rs(e,t){if(e.tag===30){var l=e.stateNode,a=e.memoizedProps,n=pl(a,l),u=vl(a.default,l.paired?a.share:a.enter);u!=="none"?$a(e,n,u,null,!1)?(gi(e),l.paired||t||nn(e,a.onEnter)):nl(e.child,!1):gi(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Rs(e,t),e=e.sibling;else gi(e)}function Us(e){if(zt!==null&&zt.size!==0){var t=zt;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var l=e.memoizedProps,a=l.name;if(a!=null&&a!=="auto"){var n=t.get(a);if(n!==void 0){var u=vl(l.default,l.share);if(u!=="none"&&($a(e,a,u,null,!1)?(u=e.stateNode,n.paired=u,u.paired=n,nn(e,l.onShare)):nl(e.child,!1)),t.delete(a),t.size===0)break}}}Us(e)}e=e.sibling}}}function Hs(e){if(e.tag===30){var t=e.memoizedProps,l=pl(t,e.stateNode),a=zt!==null?zt.get(l):void 0,n=vl(t.default,a!==void 0?t.share:t.exit);n!=="none"&&($a(e,l,n,null,!1)?a!==void 0?(n=e.stateNode,a.paired=n,n.paired=a,zt.delete(l),nn(e,t.onShare)):nn(e,t.onExit):nl(e.child,!1)),zt!==null&&Us(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Hs(e),e=e.sibling;else zt!==null&&Us(e)}function Vd(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,l=pl(t,e.stateNode);t=vl(t.default,t.update),e.flags&=-5,t!=="none"&&$a(e,l,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&Vd(e);e=e.sibling}}function qs(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,nl(e.child,!1))}qs(e)}e=e.sibling}}function bi(e){if(e.tag===30)e.stateNode.paired=null,nl(e.child,!1),qs(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)bi(e),e=e.sibling;else qs(e)}function Xd(e){for(e=e.child;e!==null;)e.tag===30?nl(e.child,!1):(e.subtreeFlags&33554432)!==0&&Xd(e),e=e.sibling}function Bs(e,t,l,a,n,u,i){for(var d=!1;t!==null;){if(t.tag===5){var h=t.stateNode;if(u!==null&&bt<u.length){var S=u[bt],w=vr(h);(S.view||w.view)&&(d=!0);var A;if(A=(e.flags&4)===0)if(w.clip)A=!0;else{A=S.rect;var g=w.rect;A=A.y!==g.y||A.x!==g.x||A.height!==g.height||A.width!==g.width}A&&(e.flags|=4),w.abs?w=!S.abs:(S=S.rect,w=w.rect,w=S.height!==w.height||S.width!==w.width),w&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&L0(h,bt===0?l:l+"_"+bt,n),d&&(e.flags&4)!==0||(al===null&&(al=[]),al.push(h,bt===0?a:a+"_"+bt,t.memoizedProps)),bt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&i?e.flags|=t.flags&32:Bs(e,t.child,l,a,n,u,i)&&(d=!0));t=t.sibling}return d}function Qd(e,t){for(e=e.child;e!==null;){if(e.tag===30){var l=e.memoizedProps,a=e.stateNode,n=pl(l,a),u=vl(l.default,l.update),i;i=e.memoizedState,e.memoizedState=null,a=e;var d=e.child;bt=0,n=Bs(a,d,n,n,u,i,!1),(e.flags&4)!==0&&n&&nn(e,l.onUpdate)}else(e.subtreeFlags&33554432)!==0&&Qd(e);e=e.sibling}}var lt=!1,Ae=!1,ul=!1,Ys=!1,Zd=typeof WeakSet=="function"?WeakSet:Set,at=null,il=!1,Pn=!1,Si=!1,Gs=!1;function ev(e,t,l){if(e=e.containerInfo,fr=pn,e=Fo(e),_c(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var u=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var d=0,h=-1,S=-1,w=0,A=0,g=e,T=null;t:for(;;){for(var Y;g!==a||u!==0&&g.nodeType!==3||(h=d+u),g!==i||n!==0&&g.nodeType!==3||(S=d+n),g.nodeType===3&&(d+=g.nodeValue.length),(Y=g.firstChild)!==null;)T=g,g=Y;for(;;){if(g===e)break t;if(T===a&&++w===u&&(h=d),T===i&&++A===n&&(S=d),(Y=g.nextSibling)!==null)break;g=T,T=g.parentNode}g=Y}a=h===-1||S===-1?null:{start:h,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(dr={focusedElem:e,selectionRange:a},pn=!1,l=(l&335544064)===l,at=t,t=l?9270:1024;at!==null;){if(e=at,l&&(a=e.deletions,a!==null))for(u=0;u<a.length;u++)l&&Hs(a[u]);if(e.alternate===null&&(e.flags&2)!==0)l&&Gd(e),Ni(l);else{if(e.tag===22){if(a=e.alternate,e.memoizedState!==null){a!==null&&a.memoizedState===null&&l&&Hs(a),Ni(l);continue}else if(a!==null&&a.memoizedState!==null){l&&Gd(e),Ni(l);continue}}a=e.child,(e.subtreeFlags&t)!==0&&a!==null?(a.return=e,at=a):(l&&Vd(e),Ni(l))}}zt=null}function Ni(e){for(;at!==null;){var t=at,l=e,a=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((n&1024)!==0&&a!==null){l=void 0,n=a.memoizedProps,a=a.memoizedState;var u=t.stateNode;try{var i=ba(t.type,n);l=u.getSnapshotBeforeUpdate(i,a),u.__reactInternalSnapshotBeforeUpdate=l}catch(d){Me(t,t.return,d)}}break;case 3:if((n&1024)!==0){if(a=t.stateNode.containerInfo,l=a.nodeType,l===9)gr(a);else if(l===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":gr(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:l&&a!==null&&(l=pl(a.memoizedProps,a.stateNode),n=t.memoizedProps,n=vl(n.default,n.update),n!=="none"&&$a(a,l,n,a.memoizedState=[],!0));break;default:if((n&1024)!==0)throw Error(o(163))}if(a=t.sibling,a!==null){a.return=t.return,at=a;break}at=t.return}}function Jd(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:cl(e,l),a&4&&Fn(5,l);break;case 1:if(cl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(i){Me(l,l.return,i)}else{var n=ba(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){Me(l,l.return,i)}}a&64&&Ud(l),a&512&&ll(l,l.return);break;case 3:if(cl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{wf(e,t)}catch(i){Me(l,l.return,i)}}break;case 27:t===null&&a&4&&Yd(l);case 26:case 5:cl(e,l),t===null&&a&4&&zs(l),a&512&&ll(l,l.return);break;case 12:cl(e,l);break;case 31:cl(e,l),a&4&&Pd(e,l);break;case 13:cl(e,l),a&4&&Wd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=dv.bind(null,l),Jv(e,l))));break;case 22:if(a=l.memoizedState!==null||lt,!a){var u=t!==null&&t.memoizedState!==null||Ae;t=lt,n=Ae,lt=a,(Ae=u)&&!n?(a=2,(l.subtreeFlags&8772)!==0&&(a|=1),Ft(e,l,a)):cl(e,l),lt=t,Ae=n}break;case 30:cl(e,l),a&512&&ll(l,l.return);break;case 7:a&512&&ll(l,l.return);default:cl(e,l)}}function Ls(e,t){for(e=e.child;e!==null;)Kd(e,t),e=e.sibling}function Kd(e,t){switch(e.tag){case 5:case 26:try{var l=e.stateNode;if(t){var a=l.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}else{var n=e.stateNode,u=e.memoizedProps.style,i=u!=null&&u.hasOwnProperty("display")?u.display:null;n.style.display=i==null||typeof i=="boolean"?"":(""+i).trim()}}catch(h){Me(e,e.return,h)}ks(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,_e=!0}catch(h){Me(e,e.return,h)}break;case 18:try{var d=e.stateNode;t?G0(d,!0):G0(e.stateNode,!1)}catch(h){Me(e,e.return,h)}break;case 22:case 23:e.memoizedState===null&&Ls(e,t);break;default:Ls(e,t)}}function ks(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var l=e,a=t;switch(l.tag){case 4:Kd(l,a);break e;case 22:l.memoizedState===null&&ks(l,a);break e;default:ks(l,a)}}e=e.sibling}}function Fd(e){var t=e.alternate;t!==null&&(e.alternate=null,Fd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Cu(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 Ye=null,St=!1;function Jt(e,t,l){for(l=l.child;l!==null;)$d(e,t,l),l=l.sibling}function $d(e,t,l){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(bn,l)}catch{}switch(l.tag){case 26:Ae||st(l,t),Jt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&!Ae&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ae||st(l,t),$n(l);var a=Ye,n=St;$l(l.type)&&(Ye=l.stateNode,St=!1),Jt(e,t,l),eh(l.stateNode,l.type,l.memoizedProps),Ye=a,St=n;break;case 5:Ae||st(l,t),$n(l);case 6:if(l.tag===6&&$n(l),a=Ye,n=St,Ye=null,Jt(e,t,l),Ye=a,St=n,Ye!==null)if(St)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(l.stateNode),_e=!0}catch(u){Me(l,t,u)}else try{Ye.removeChild(l.stateNode),_e=!0}catch(u){Me(l,t,u)}break;case 18:Ye!==null&&(St?(e=Ye,Y0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),vn(e)):Y0(Ye,l.stateNode));break;case 4:a=Ye,n=St,Ye=l.stateNode.containerInfo,St=!0,Jt(e,t,l),Ye=a,St=n;break;case 0:case 11:case 14:case 15:Vl(2,l,t),Ae||Vl(4,l,t),Jt(e,t,l);break;case 1:Ae||(st(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Hd(l,t,a)),Jt(e,t,l);break;case 21:Jt(e,t,l);break;case 22:Ae=(a=Ae)||l.memoizedState!==null,Jt(e,t,l),Ae=a;break;case 30:st(l,t),Jt(e,t,l);break;case 7:Ae||st(l,t),Jt(e,t,l);break;default:Jt(e,t,l)}}function Pd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{vn(e)}catch(l){Me(t,t.return,l)}}}function Wd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{vn(e)}catch(l){Me(t,t.return,l)}}function tv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Zd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Zd),t;default:throw Error(o(435,e.tag))}}function Ti(e,t){var l=tv(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=hv.bind(null,e,a);a.then(n,n)}})}function vt(e,t,l){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var u=a[n],i=e,d=t,h=d;e:for(;h!==null;){switch(h.tag){case 27:if($l(h.type)){Ye=h.stateNode,St=!1;break e}break;case 5:Ye=h.stateNode,St=!1;break e;case 3:case 4:Ye=h.stateNode.containerInfo,St=!0;break e}h=h.return}if(Ye===null)throw Error(o(160));$d(i,d,u),Ye=null,St=!1,i=u.alternate,i!==null&&(i.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Id(t,e,l),t=t.sibling}var Kt=null;function Id(e,t,l){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(n&4&&(a=e.updateQueue,a=a!==null?a.events:null,a!==null))for(var u=0;u<a.length;u++){var i=a[u];i.ref.impl=i.nextImpl}vt(t,e,l),yt(e),n&4&&(Vl(3,e,e.return),Fn(3,e),Vl(5,e,e.return));break;case 1:vt(t,e,l),yt(e),n&512&&(Ae||a===null||st(a,a.return)),n&64&<&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?t:l.concat(t))));break;case 26:if(u=Kt,vt(t,e,l),yt(e),n&512&&(Ae||a===null||st(a,a.return)),n&4)if(n=a!==null?a.memoizedState:null,l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null)if(lt)e.stateNode=H0(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,l=e.memoizedProps,n=u.ownerDocument||u;t:switch(t){case"title":a=n.getElementsByTagName("title")[0],(!a||a[Tn]||a[nt]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=n.createElement(t),n.head.insertBefore(a,n.querySelector("head > title"))),rt(a,t,l),a[nt]=e,et(a),t=a;break e;case"link":if(u=ih("link","href",n).get(t+(l.href||""))){for(i=0;i<u.length;i++)if(a=u[i],a.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&a.getAttribute("rel")===(l.rel==null?null:l.rel)&&a.getAttribute("title")===(l.title==null?null:l.title)&&a.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(i,1);break t}}a=n.createElement(t),rt(a,t,l),n.head.appendChild(a);break;case"meta":if(u=ih("meta","content",n).get(t+(l.content||""))){for(i=0;i<u.length;i++)if(a=u[i],a.getAttribute("content")===(l.content==null?null:""+l.content)&&a.getAttribute("name")===(l.name==null?null:l.name)&&a.getAttribute("property")===(l.property==null?null:l.property)&&a.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&a.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(i,1);break t}}a=n.createElement(t),rt(a,t,l),n.head.appendChild(a);break;default:throw Error(o(468,t))}a[nt]=e,et(a),t=a}e.stateNode=t}else lt||_r(u,e.type,e.stateNode);else e.stateNode=uh(u,l,e.memoizedProps);else n!==l?(n===null?(t=a.stateNode,t===null||Ae||t.parentNode.removeChild(t)):n.count--,l===null?lt||_r(u,e.type,e.stateNode):uh(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Os(e,e.memoizedProps,a.memoizedProps);break;case 27:vt(t,e,l),yt(e),n&512&&(Ae||a===null||st(a,a.return)),a!==null&&n&4&&Os(e,e.memoizedProps,a.memoizedProps);break;case 5:if(u=ul,ul=!1,vt(t,e,l),ul=u,yt(e),n&512&&(Ae||a===null||st(a,a.return)),e.flags&32){t=e.stateNode;try{Ma(t,""),_e=!0}catch(w){Me(e,e.return,w)}}n&4&&e.stateNode!=null&&(t=e.memoizedProps,Os(e,t,a!==null?a.memoizedProps:t)),n&1024&&(Ys=!0);break;case 6:if(vt(t,e,l),yt(e),n&4){if(e.stateNode===null)throw Error(o(162));t=e.memoizedProps,l=e.stateNode;try{l.nodeValue=t,_e=!0}catch(w){Me(e,e.return,w)}}break;case 3:if(_e=!1,Bi=null,u=Kt,Kt=iu(t.containerInfo),vt(t,e,l),Kt=u,yt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{vn(t.containerInfo)}catch(w){Me(e,e.return,w)}Ys&&(Ys=!1,e0(e)),_e=!1;break;case 4:n=ul,ul=lt,a=go(),u=Kt,Kt=iu(e.stateNode.containerInfo),vt(t,e,l),yt(e),Kt=u,_e&&Pn&&(Si=!0),_e=a,ul=n;break;case 12:vt(t,e,l),yt(e);break;case 31:vt(t,e,l),yt(e),n&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ti(e,t)));break;case 13:vt(t,e,l),yt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(_i=wt()),n&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ti(e,t)));break;case 22:u=e.memoizedState!==null,i=a!==null&&a.memoizedState!==null;var d=lt,h=Ae,S=ul;lt=d||u,ul=S||u,Ae=h||i,vt(t,e,l),Ae=h,ul=S,lt=d,yt(e),n&8192&&(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,!u||a===null||i||lt||Ae||(t=i||Ae,l=lt,a=Ae,lt=u||lt,Ae=t,Xl(e,2),lt=l,Ae=a),!u&&ul||Ls(e,u)),n&4&&(t=e.updateQueue,t!==null&&(l=t.retryQueue,l!==null&&(t.retryQueue=null,Ti(e,l))));break;case 19:vt(t,e,l),yt(e),n&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ti(e,t)));break;case 30:n&512&&(Ae||a===null||st(a,a.return)),n=go(),u=Pn,i=(l&335544064)===l,d=e.memoizedProps,Pn=i&&vl(d.default,d.update)!=="none",vt(t,e,l),yt(e),i&&a!==null&&_e&&(e.flags|=4),Pn=u,_e=n;break;case 21:break;case 7:n&512&&(Ae||a===null||st(a,a.return)),a&&a.stateNode!==null&&(a.stateNode._fragmentFiber=e);default:vt(t,e,l),yt(e)}}function yt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Bd(a)){l=a;break}a=a.return}a=null;for(var n=e.return;n!==null;){if(As(n)){var u=n.stateNode;a===null?a=[u]:a.push(u)}if(js(n))break;n=n.return}var i=a;if(l==null)throw Error(o(160));switch(l.tag){case 27:var d=l.stateNode,h=Ms(e);yi(e,h,d,i);break;case 5:var S=l.stateNode;l.flags&32&&(Ma(S,""),l.flags&=-33);var w=Ms(e);yi(e,w,S,i);break;case 3:case 4:var A=l.stateNode.containerInfo,g=Ms(e);Ds(e,g,A,i);break;default:throw Error(o(161))}}catch(T){Me(e,e.return,T)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function e0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;e0(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,pn=!0,t.reset(),pn=!1),e=e.sibling}}function Pa(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)t0(t,e),t=t.sibling;else Qd(t)}function t0(e,t){var l=e.alternate;if(l===null)Rs(e,!1);else switch(e.tag){case 3:if(Gs=il=!1,Ld(),Pa(t,e),!il&&!Si){if(e=al,e!==null)for(var a=0;a<e.length;a+=3){l=e[a];var n=e[a+1];k0(l,e[a+2]),l=l.ownerDocument.documentElement,l!==null&&l.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+n+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Gs=!0}al=null;break;case 5:Pa(t,e);break;case 4:a=il,il=!1,Pa(t,e),il&&(Si=!0),il=a;break;case 22:e.memoizedState===null&&(l.memoizedState!==null?Rs(e,!1):Pa(t,e));break;case 30:a=il,n=Ld(),il=!1,Pa(t,e),il&&(e.flags|=4);var u=e.memoizedProps,i=e.stateNode;t=pl(u,i),i=pl(l.memoizedProps,i);var d=vl(u.default,u.update);d==="none"?t=!1:(u=l.memoizedState,l.memoizedState=null,l=e.child,bt=0,t=Bs(e,l,t,i,d,u,!0),bt!==(u===null?0:u.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(nn(e,e.memoizedProps.onUpdate),al=n):n!==null&&(n.push.apply(n,al),al=n),il=(e.flags&32)!==0?!0:a;break;default:Pa(t,e)}}function cl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Jd(e,t.alternate,t),t=t.sibling}function Xl(e,t){for(e=e.child;e!==null;){var l=e,a=t;switch(l.tag){case 0:case 11:case 14:case 15:Vl(4,l,l.return),Xl(l,a);break;case 1:st(l,l.return);var n=l.stateNode;typeof n.componentWillUnmount=="function"&&Hd(l,l.return,n),Xl(l,a);break;case 27:(a&2)!==0&&eh(l.stateNode,l.type,l.memoizedProps);case 5:st(l,l.return),l.tag!==5&&l.tag!==27||$n(l),Xl(l,a);break;case 6:$n(l);break;case 26:st(l,l.return),n=l.stateNode,l.memoizedState!==null||n===null||Ae||n.parentNode.removeChild(n),Xl(l,a);break;case 22:l.memoizedState===null&&Xl(l,a);break;case 30:st(l,l.return),Xl(l,a);break;case 7:st(l,l.return);default:Xl(l,a)}e=e.sibling}}function Ft(e,t,l){for(l=(t.subtreeFlags&8772)!==0?l:l&-2,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,i=u.flags,d=(l&1)!==0;switch(u.tag){case 0:case 11:case 15:Ft(n,u,l),Fn(4,u);break;case 1:if(Ft(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(w){Me(a,a.return,w)}if(a=u,n=a.updateQueue,n!==null){var h=a.stateNode;try{var S=n.shared.hiddenCallbacks;if(S!==null)for(n.shared.hiddenCallbacks=null,n=0;n<S.length;n++)Tf(S[n],h)}catch(w){Me(a,a.return,w)}}d&&i&64&&Ud(u),ll(u,u.return);break;case 27:(l&2)!==0&&Yd(u);case 5:u.tag!==5&&u.tag!==27||qd(u),Ft(n,u,l),d&&a===null&&i&4&&zs(u),ll(u,u.return);break;case 6:qd(u);break;case 26:h=u.stateNode,u.memoizedState!==null||h===null||lt||_r(iu(h.ownerDocument),u.type,h),Ft(n,u,l),d&&a===null&&i&4&&zs(u),ll(u,u.return);break;case 12:Ft(n,u,l);break;case 31:Ft(n,u,l),d&&i&4&&Pd(n,u);break;case 13:Ft(n,u,l),d&&i&4&&Wd(n,u);break;case 22:u.memoizedState===null&&Ft(n,u,l),ll(u,u.return);break;case 30:Ft(n,u,l),ll(u,u.return);break;case 7:ll(u,u.return);default:Ft(n,u,l)}t=t.sibling}}function Vs(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Hn(l))}function Xs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Hn(e))}function Lt(e,t,l,a){var n=(l&335544064)===l;if(t.subtreeFlags&(n?10262:10256))for(t=t.child;t!==null;)l0(e,t,l,a),t=t.sibling;else n&&Xd(t)}function l0(e,t,l,a){var n=(l&335544064)===l;n&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&bi(t);var u=t.flags;switch(t.tag){case 0:case 11:case 15:Lt(e,t,l,a),u&2048&&Fn(9,t);break;case 1:Lt(e,t,l,a);break;case 3:Lt(e,t,l,a),n&&Gs&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),u&2048&&(u=null,t.alternate!==null&&(u=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==u&&(t.refCount++,u!=null&&Hn(u)));break;case 12:if(u&2048){Lt(e,t,l,a),u=t.stateNode;try{var i=t.memoizedProps,d=i.id,h=i.onPostCommit;typeof h=="function"&&h(d,t.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(S){Me(t,t.return,S)}}else Lt(e,t,l,a);break;case 31:Lt(e,t,l,a);break;case 13:Lt(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,d=t.alternate,t.memoizedState!==null?(n&&d!==null&&d.memoizedState===null&&bi(d),i._visibility&2?Lt(e,t,l,a):Wn(e,t)):(n&&d!==null&&d.memoizedState!==null&&bi(t),i._visibility&2?Lt(e,t,l,a):(i._visibility|=2,Wa(e,t,l,a,(t.subtreeFlags&10256)!==0||!1))),u&2048&&Vs(d,t);break;case 24:Lt(e,t,l,a),u&2048&&Xs(t.alternate,t);break;case 30:n&&(u=t.alternate,u!==null&&(nl(u.child,!0),nl(t.child,!0))),Lt(e,t,l,a);break;default:Lt(e,t,l,a)}}function Wa(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,i=t,d=l,h=a,S=i.flags;switch(i.tag){case 0:case 11:case 15:Wa(u,i,d,h,n),Fn(8,i);break;case 23:break;case 22:var w=i.stateNode;i.memoizedState!==null?w._visibility&2?Wa(u,i,d,h,n):Wn(u,i):(w._visibility|=2,Wa(u,i,d,h,n)),n&&S&2048&&Vs(i.alternate,i);break;case 24:Wa(u,i,d,h,n),n&&S&2048&&Xs(i.alternate,i);break;default:Wa(u,i,d,h,n)}t=t.sibling}}function Wn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:Wn(l,a),n&2048&&Vs(a.alternate,a);break;case 24:Wn(l,a),n&2048&&Xs(a.alternate,a);break;default:Wn(l,a)}t=t.sibling}}var Sa=8192;function Na(e,t,l){if(e.subtreeFlags&Sa)for(e=e.child;e!==null;)a0(e,t,l),e=e.sibling}function a0(e,t,l){switch(e.tag){case 26:Na(e,t,l),e.flags&Sa&&(e.memoizedState!==null?cy(l,Kt,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&oh(l,e)));break;case 5:Na(e,t,l),e.flags&Sa&&(e=e.stateNode,(t&335544128)===t&&oh(l,e));break;case 3:case 4:var a=Kt;Kt=iu(e.stateNode.containerInfo),Na(e,t,l),Kt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Sa,Sa=16777216,Na(e,t,l),Sa=a):Na(e,t,l));break;case 30:if((e.flags&Sa)!==0&&(a=e.memoizedProps.name,a!=null&&a!=="auto")){var n=e.stateNode;n.paired=null,zt===null&&(zt=new Map),zt.set(a,n)}Na(e,t,l);break;default:Na(e,t,l)}}function n0(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 In(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];at=a,i0(a,e)}n0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)u0(e),e=e.sibling}function u0(e){switch(e.tag){case 0:case 11:case 15:In(e),e.flags&2048&&Vl(9,e,e.return);break;case 3:In(e);break;case 12:In(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,wi(e)):In(e);break;default:In(e)}}function wi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];at=a,i0(a,e)}n0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Vl(8,t,t.return),wi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,wi(t));break;default:wi(t)}e=e.sibling}}function i0(e,t){for(;at!==null;){var l=at;switch(l.tag){case 0:case 11:case 15:Vl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Hn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,at=a;else e:for(l=e;at!==null;){a=at;var n=a.sibling,u=a.return;if(Fd(a),a===l){at=null;break e}if(n!==null){n.return=u,at=n;break e}at=u}}}var lv={getCacheForType:function(e){var t=ut(Ze),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return ut(Ze).controller.signal}},av=typeof WeakMap=="function"?WeakMap:Map,je=0,He=null,xe=null,Se=0,Oe=0,Ot=null,Ql=!1,Ia=!1,Qs=!1,El=0,ke=0,Zl=0,Ta=0,Ei=0,Mt=0,en=0,eu=null,Nt=null,Zs=!1,_i=0,c0=0,Ci=1/0,ji=null,Jl=null,Ge=0,$t=null,wa=null,sl=0,Js=0,Ks=null,s0=null,tn=null,ln=null,an=null,tu=0,Ai=null;function Dt(){return(je&2)!==0&&Se!==0?Se&-Se:G.T!==null?nr():ro()}function r0(){if(Mt===0)if((Se&536870912)===0||me){var e=Tu;Tu<<=1,(Tu&3932160)===0&&(Tu=262144),Mt=e}else Mt=536870912;return e=it.current,e!==null&&(e.flags|=32),Mt}function nn(e,t){if(t!=null){var l=e.stateNode,a=l.ref;a===null&&(a=l.ref=V0(pl(e.memoizedProps,l))),ln===null&&(ln=[]),ln.push(t.bind(null,a))}}function Tt(e,t,l){(e===He&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(un(e,0),Kl(e,Se,Mt,!1)),Nn(e,l),((je&2)===0||e!==He)&&(e===He&&((je&2)===0&&(Ta|=l),ke===4&&Kl(e,Se,Mt,!1)),rl(e))}function o0(e,t,l){if((je&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Sn(e,t),n=a?iv(e,t):$s(e,t,!0),u=a;do{if(n===0){Ia&&!a&&Kl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!nv(l)){n=$s(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var d=e;n=eu;var h=d.current.memoizedState.isDehydrated;if(h&&(un(d,i).flags|=256),i=$s(d,i,!1),i!==2&&i!==6){if(Qs&&!h){d.errorRecoveryDisabledLanes|=u,Ta|=u,n=4;break e}u=Nt,Nt=n,u!==null&&(Nt===null?Nt=u:Nt.push.apply(Nt,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){un(e,0),Kl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Kl(a,t,Mt,!Ql);break e;case 2:Nt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=_i+300-wt(),10<n)){if(Kl(a,t,Mt,!Ql),Eu(a,0,!0)!==0)break e;sl=t,a.timeoutHandle=pr(f0.bind(null,a,l,Nt,ji,Zs,t,Mt,Ta,en,Ql,u,"Throttled",-0,0),n);break e}f0(a,l,Nt,ji,Zs,t,Mt,Ta,en,Ql,u,null,-0,0)}}break}while(!0);rl(e)}function f0(e,t,l,a,n,u,i,d,h,S,w,A,g,T){e.timeoutHandle=-1;var Y=t.subtreeFlags,Q=(u&335544064)===u;if(A=null,(Q||Y&8192||(Y&16785408)===16785408)&&(A={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:It},zt=null,a0(t,u,A),Q&&(Y=A,Q=e.containerInfo,Q=(Q.nodeType===9?Q:Q.ownerDocument).__reactViewTransition,Q!=null&&(Y.count++,Y.waitingForViewTransition=!0,Y=ru.bind(Y),Q.finished.then(Y,Y))),Y=(u&62914560)===u?_i-wt():(u&4194048)===u?c0-wt():0,Y=sy(A,Y),Y!==null)){sl=u,e.cancelPendingCommit=Y(g0.bind(null,e,t,u,l,a,n,i,d,h,S,w,A,null,g,T)),Kl(e,u,i,!S);return}g0(e,t,u,l,a,n,i,d,h,S,w,A)}function nv(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!jt(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 Kl(e,t,l,a){t=no(e,t),t&=~Ei,t&=~Ta,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-_t(n),i=1<<u;a[u]=-1,n&=~i}l!==0&&io(e,l,t)}function zi(){return(je&6)===0?(lu(0),!1):!0}function Fs(){if(xe!==null){if(Oe===0)var e=xe.return;else e=xe,gl=fa=null,as(e),Qa=null,Yn=0,e=xe;for(;e!==null;)Rd(e.alternate,e),e=e.return;xe=null}}function un(e,t){var l=e.timeoutHandle;return l!==-1&&(e.timeoutHandle=-1,jv(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),sl=0,Fs(),He=e,xe=l=yl(e.current,null),Se=t,Oe=0,Ot=null,Ql=!1,Ia=Sn(e,t),Qs=!1,en=Mt=Ei=Ta=Zl=ke=0,Nt=eu=null,Zs=!1,El=no(e,t),Bu(),l}function d0(e,t){fe=null,G.H=ri,t===Xa||t===Fu?(t=gf(),Oe=3):t===Xc?(t=gf(),Oe=4):Oe=t===xs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ot=t,xe===null&&(ke=1,oi(e,qt(t,e.current)))}function h0(){var e=it.current;return e===null?!0:(Se&4194048)===Se?dt===null:(Se&62914560)===Se||(Se&536870912)!==0?e===dt:!1}function m0(){var e=G.H;return G.H=ri,e===null?ri:e}function p0(){var e=G.A;return G.A=lv,e}function Oi(){ke=4,Ql||(Se&4194048)!==Se&&it.current!==null||(Ia=!0),(Zl&134217727)===0&&(Ta&134217727)===0||He===null||Kl(He,Se,Mt,!1)}function $s(e,t,l){var a=je;je|=2;var n=m0(),u=p0();(He!==e||Se!==t)&&(ji=null,un(e,t)),t=!1;var i=ke;e:do try{if(Oe!==0&&xe!==null){var d=xe,h=Ot;switch(Oe){case 8:Fs(),i=6;break e;case 3:case 2:case 9:case 6:it.current===null&&(t=!0);var S=Oe;if(Oe=0,Ot=null,cn(e,d,h,S),l&&Ia){i=0;break e}break;default:S=Oe,Oe=0,Ot=null,cn(e,d,h,S)}}uv(),i=ke;break}catch(w){d0(e,w)}while(!0);return t&&e.shellSuspendCounter++,gl=fa=null,je=a,G.H=n,G.A=u,xe===null&&(He=null,Se=0,Bu()),i}function uv(){for(;xe!==null;)v0(xe)}function iv(e,t){var l=je;je|=2;var a=m0(),n=p0();He!==e||Se!==t?(ji=null,Ci=wt()+500,un(e,t)):Ia=Sn(e,t);e:do try{if(Oe!==0&&xe!==null){t=xe;var u=Ot;t:switch(Oe){case 1:Oe=0,Ot=null,cn(e,t,u,1);break;case 2:case 9:if(yf(u)){Oe=0,Ot=null,y0(t);break}t=function(){Oe!==2&&Oe!==9||He!==e||(Oe=7),rl(e)},u.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:yf(u)?(Oe=0,Ot=null,y0(t)):(Oe=0,Ot=null,cn(e,t,u,7));break;case 5:var i=null;switch(xe.tag){case 26:i=xe.memoizedState;case 5:case 27:var d=xe;if(i?sh(i):d.stateNode.complete){Oe=0,Ot=null;var h=d.sibling;if(h!==null)xe=h;else{var S=d.return;S!==null?(xe=S,Mi(S)):xe=null}break t}}Oe=0,Ot=null,cn(e,t,u,5);break;case 6:Oe=0,Ot=null,cn(e,t,u,6);break;case 8:Fs(),ke=6;break e;default:throw Error(o(462))}}cv();break}catch(w){d0(e,w)}while(!0);return gl=fa=null,G.H=a,G.A=n,je=l,xe!==null?0:(He=null,Se=0,Bu(),ke)}function cv(){for(;xe!==null&&!wm();)v0(xe)}function v0(e){var t=Md(e.alternate,e,El);e.memoizedProps=e.pendingProps,t===null?Mi(e):xe=t}function y0(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Ed(l,t,t.pendingProps,t.type,void 0,Se);break;case 11:t=Ed(l,t,t.pendingProps,t.type.render,t.ref,Se);break;case 5:as(t);var a=t;a===tt&&(me?(Xu(a),a.tag===5&&a.stateNode!=null&&(qe=a.stateNode)):(Xu(a),me=!0));default:Rd(l,t),t=xe=uf(t,El),t=Md(l,t,El)}e.memoizedProps=e.pendingProps,t===null?Mi(e):xe=t}function cn(e,t,l,a){gl=fa=null,as(t),Qa=null,Yn=0;var n=t.return;try{if(Kp(e,n,t,l,Se)){ke=1,oi(e,qt(l,e.current)),xe=null;return}}catch(u){if(n!==null)throw xe=n,u;ke=1,oi(e,qt(l,e.current)),xe=null;return}t.flags&32768?(me||a===1?e=!0:Ia||(Se&536870912)!==0?e=!1:(Ql=e=!0,(a===2||a===9||a===3||a===6)&&(a=it.current,a!==null&&a.tag===13&&(a.flags|=16384))),x0(t,e)):Mi(t)}function Mi(e){var t=e;do{if((t.flags&32768)!==0){x0(t,Ql);return}e=t.return;var l=Wp(t.alternate,t,El);if(l!==null){xe=l;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);ke===0&&(ke=5)}function x0(e,t){do{var l=Ip(e.alternate,e);if(l!==null){l.flags&=32767,xe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=l}while(e!==null);ke=6,xe=null}function g0(e,t,l,a,n,u,i,d,h,S,w,A){e.cancelPendingCommit=null;do Di();while(Ge!==0);if((je&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));e===He&&(xe=He=null,Se=0),wa=t,$t=e,sl=l,Ks=n,s0=a,sv(e,t,l,i,d,h,A)}}function sv(e,t,l,a,n,u,i){var d=t.lanes|t.childLanes;if(Js=d,d|=Oc,Rm(e,l,d,a,n,u),ln=null,(l&335544064)===l?(an=Hp(e),a=10262):(an=null,a=10256),(t.subtreeFlags&a)!==0||(t.flags&a)!==0?(e.callbackNode=null,e.callbackPriority=0,mv(Su,function(){return er(),null})):(e.callbackNode=null,e.callbackPriority=0),xi=!1,a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=G.T,G.T=null,n=M.p,M.p=2,u=je,je|=4;try{ev(e,t,l)}finally{je=u,M.p=n,G.T=a}}Ge=1,xi?tn=Rv(i,e.containerInfo,an,Ps,Ws,ov,Is,er,rv):(Ps(),Ws(),Is())}function rv(e){if(Ge!==0){var t=$t.onRecoverableError;t(e,{componentStack:null})}}function ov(){Ge===3&&(Ge=0,t0(wa,$t),Ge=4)}function Ps(){if(Ge===1){Ge=0;var e=$t,t=wa,l=sl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=G.T,G.T=null;var n=M.p;M.p=2;var u=je;je|=4;try{Pn=Si=!1,Id(t,e,l),l=dr;var i=Fo(e.containerInfo),d=l.focusedElem,h=l.selectionRange;if(i!==d&&d&&d.ownerDocument&&Ko(d.ownerDocument.documentElement,d)){if(h!==null&&_c(d)){var S=h.start,w=h.end;if(w===void 0&&(w=S),"selectionStart"in d)d.selectionStart=S,d.selectionEnd=Math.min(w,d.value.length);else{var A=d.ownerDocument||document,g=A&&A.defaultView||window;if(g.getSelection){var T=g.getSelection(),Y=d.textContent.length,Q=Math.min(h.start,Y),de=h.end===void 0?Q:Math.min(h.end,Y);!T.extend&&Q>de&&(i=de,de=Q,Q=i);var b=Jo(d,Q),v=Jo(d,de);if(b&&v&&(T.rangeCount!==1||T.anchorNode!==b.node||T.anchorOffset!==b.offset||T.focusNode!==v.node||T.focusOffset!==v.offset)){var N=A.createRange();N.setStart(b.node,b.offset),T.removeAllRanges(),Q>de?(T.addRange(N),T.extend(v.node,v.offset)):(N.setEnd(v.node,v.offset),T.addRange(N))}}}}for(A=[],T=d;T=T.parentNode;)T.nodeType===1&&A.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<A.length;d++){var j=A[d];j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}pn=!!fr,dr=fr=null}finally{je=u,M.p=n,G.T=a}}e.current=t,Ge=2}}function Ws(){if(Ge===2){Ge=0;var e=$t,t=wa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=G.T,G.T=null;var a=M.p;M.p=2;var n=je;je|=4;try{Jd(e,t.alternate,t)}finally{je=n,M.p=a,G.T=l}}Ge=3}}function Is(){if(Ge===4||Ge===3){Ge=0;var e=tn;tn=null,Em();var t=$t,l=wa,a=sl,n=s0,u=(a&335544064)===a?10262:10256;if((l.subtreeFlags&u)!==0||(l.flags&u)!==0?Ge=5:(Ge=0,wa=$t=null,b0(t,t.pendingLanes)),u=t.pendingLanes,u===0&&(Jl=null),sc(a),l=l.stateNode,Et&&typeof Et.onCommitFiberRoot=="function")try{Et.onCommitFiberRoot(bn,l,void 0,(l.current.flags&128)===128)}catch{}if(n!==null){l=G.T,u=M.p,M.p=2,G.T=null;try{for(var i=t.onRecoverableError,d=0;d<n.length;d++){var h=n[d];i(h.value,{componentStack:h.stack})}}finally{G.T=l,M.p=u}}if(n=ln,i=an,an=null,n!==null&&(ln=null,i===null&&(i=[]),e!==null))for(h=0;h<n.length;h++)l=(0,n[h])(i),l!==void 0&&e.finished.finally(l);(sl&3)!==0&&Di(),rl(t),u=t.pendingLanes,(a&261930)!==0&&(u&42)!==0?t===Ai?tu++:(tu=0,Ai=t):(tu=0,Ai=null),lu(0)}}function b0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Hn(t)))}function Di(){return tn!==null&&(tn.skipTransition(),tn=null),Ps(),Ws(),Is(),er()}function er(){if(Ge!==5)return!1;var e=$t,t=Js;Js=0;var l=sc(sl),a=G.T,n=M.p;try{M.p=32>l?32:l,G.T=null,l=Ks,Ks=null;var u=$t,i=sl;if(Ge=0,wa=$t=null,sl=0,(je&6)!==0)throw Error(o(331));var d=je;if(je|=4,u0(u.current),l0(u,u.current,i,l),je=d,lu(0,!1),Et&&typeof Et.onPostCommitFiberRoot=="function")try{Et.onPostCommitFiberRoot(bn,u)}catch{}return!0}finally{M.p=n,G.T=a,b0(e,t)}}function S0(e,t,l){t=qt(l,t),t=ys(e.stateNode,t,2),e=Yl(e,t,2),e!==null&&(Nn(e,2),rl(e))}function Me(e,t,l){if(e.tag===3)S0(e,e,l);else for(;t!==null;){if(t.tag===3){S0(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Jl===null||!Jl.has(a))){e=qt(l,e),l=yd(2),a=Yl(t,l,2),a!==null&&(xd(l,a,t,e),Nn(a,2),rl(a));break}}t=t.return}}function tr(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new av;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Qs=!0,n.add(l),e=fv.bind(null,e,t,l),t.then(e,e))}function fv(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,He===e&&(Se&l)===l&&((ke===4||ke===3&&(Se&62914560)===Se&&300>wt()-_i)&&(je&2)===0?un(e,0):Ei|=l,en===Se&&(en=0)),rl(e)}function N0(e,t){t===0&&(t=uo()),e=sa(e,t),e!==null&&(Nn(e,t),rl(e))}function dv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),N0(e,l)}function hv(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),N0(e,l)}function mv(e,t){return nc(e,t)}var sn=null,rn=null,lr=!1,Ri=!1,ar=!1,Fl=0;function rl(e){e!==rn&&e.next===null&&(rn===null?sn=rn=e:rn=rn.next=e),Ri=!0,lr||(lr=!0,vv())}function lu(e,t){if(!ar&&Ri){ar=!0;do for(var l=!1,a=sn;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,d=a.pingedLanes;u=(1<<31-_t(42|e)+1)-1,u&=n&~(i&~d),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,_0(a,u))}else u=Se,u=Eu(a,a===He?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Sn(a,u)||(l=!0,_0(a,u));a=a.next}while(l);ar=!1}}function pv(){T0()}function T0(){Ri=lr=!1;var e=0;Fl!==0&&Cv()&&(e=Fl);for(var t=wt(),l=null,a=sn;a!==null;){var n=a.next,u=w0(a,t);u===0?(a.next=null,l===null?sn=n:l.next=n,n===null&&(rn=l)):(l=a,(e!==0||(u&3)!==0)&&(Ri=!0)),a=n}Ge!==0&&Ge!==5||lu(e),Fl!==0&&(Fl=0)}function w0(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var i=31-_t(u),d=1<<i,h=n[i];h===-1?((d&l)===0||(d&a)!==0)&&(n[i]=Dm(d,t)):h<=t&&(e.expiredLanes|=d),u&=~d}if(t=He,l=Se,l=Eu(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&uc(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Sn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&uc(a),sc(l)){case 2:case 8:l=lo;break;case 32:l=Su;break;case 268435456:l=ao;break;default:l=Su}return a=E0.bind(null,e),l=nc(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&uc(a),e.callbackPriority=2,e.callbackNode=null,2}function E0(e,t){if(Ge!==0&&Ge!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Di()&&e.callbackNode!==l)return null;var a=Se;return a=Eu(e,e===He?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(o0(e,a,t),w0(e,wt()),e.callbackNode!=null&&e.callbackNode===l?E0.bind(null,e):null)}function _0(e,t){if(Di())return null;o0(e,t,!0)}function vv(){Av(function(){(je&6)!==0?nc(to,pv):T0()})}function nr(){if(Fl===0){var e=ma;e===0&&(e=Nu,Nu<<=1,(Nu&261888)===0&&(Nu=256)),Fl=e}return Fl}function C0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:zu(e)}function yv(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=C0((n[xt]||null).action),i=a.submitter;i&&(t=(t=i[xt]||null)?C0(t.formAction):i.getAttribute("formAction"),t!==null&&(u=t,i=null));var d=new Ru("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Fl!==0){var h=new FormData(n,i);ds(l,{pending:!0,data:h,method:n.method,action:u},null,h)}}else typeof u=="function"&&(d.preventDefault(),h=new FormData(n,i),ds(l,{pending:!0,data:h,method:n.method,action:u},u,h))},currentTarget:n}]})}}for(var ur=0;ur<zc.length;ur++){var ir=zc[ur],xv=ir.toLowerCase(),gv=ir[0].toUpperCase()+ir.slice(1);Zt(xv,"on"+gv)}Zt(Wo,"onAnimationEnd"),Zt(Io,"onAnimationIteration"),Zt(ef,"onAnimationStart"),Zt("dblclick","onDoubleClick"),Zt("focusin","onFocus"),Zt("focusout","onBlur"),Zt(jp,"onTransitionRun"),Zt(Ap,"onTransitionStart"),Zt(zp,"onTransitionCancel"),Zt(tf,"onTransitionEnd"),za("onMouseEnter",["mouseout","mouseover"]),za("onMouseLeave",["mouseout","mouseover"]),za("onPointerEnter",["pointerout","pointerover"]),za("onPointerLeave",["pointerout","pointerover"]),ua("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ua("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ua("onBeforeInput",["compositionend","keypress","textInput","paste"]),ua("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ua("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ua("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var au="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(au));function j0(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var i=a.length-1;0<=i;i--){var d=a[i],h=d.instance,S=d.currentTarget;if(d=d.listener,h!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=S;try{u(n)}catch(w){qu(w)}n.currentTarget=null,u=h}else for(i=0;i<a.length;i++){if(d=a[i],h=d.instance,S=d.currentTarget,d=d.listener,h!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=S;try{u(n)}catch(w){qu(w)}n.currentTarget=null,u=h}}}}function ge(e,t){var l=t[fo];l===void 0&&(l=t[fo]=new Set);var a=e+"__bubble";l.has(a)||(A0(t,e,2,!1),l.add(a))}function cr(e,t,l){var a=0;t&&(a|=4),A0(l,e,a,t)}var Ui="_reactListening"+Math.random().toString(36).slice(2);function sr(e){if(!e[Ui]){e[Ui]=!0,po.forEach(function(l){l!=="selectionchange"&&(bv.has(l)||cr(l,!1,e),cr(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ui]||(t[Ui]=!0,cr("selectionchange",!1,t))}}function A0(e,t,l,a){switch(xh(t)){case 2:var n=dy;break;case 8:n=hy;break;default:n=jr}l=n.bind(null,t,l,e),n=void 0,!vc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function rr(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var d=a.stateNode.containerInfo;if(d===n)break;if(i===4)for(i=a.return;i!==null;){var h=i.tag;if((h===3||h===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;d!==null;){if(i=na(d),i===null)return;if(h=i.tag,h===5||h===6||h===26||h===27){a=u=i;continue e}d=d.parentNode}}a=a.return}jo(function(){var S=u,w=mc(l),A=[];e:{var g=lf.get(e);if(g!==void 0){var T=Ru,Y=e;switch(e){case"keypress":if(Mu(l)===0)break e;case"keydown":case"keyup":T=np;break;case"focusin":Y="focus",T=bc;break;case"focusout":Y="blur",T=bc;break;case"beforeblur":case"afterblur":T=bc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":T=Oo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=Zm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=rp;break;case Wo:case Io:case ef:T=Fm;break;case tf:T=fp;break;case"scroll":case"scrollend":T=Xm;break;case"wheel":T=hp;break;case"copy":case"cut":case"paste":T=Pm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=Do;break;case"submit":T=cp;break;case"toggle":case"beforetoggle":T=pp}var Q=(t&4)!==0,de=!Q&&(e==="scroll"||e==="scrollend"),b=Q?g!==null?g+"Capture":null:g;Q=[];for(var v=S,N;v!==null;){var j=v;if(N=j.stateNode,j=j.tag,j!==5&&j!==26&&j!==27||N===null||b===null||(j=En(v,b),j!=null&&Q.push(nu(v,j,N))),de)break;v=v.return}0<Q.length&&(g=new T(g,Y,null,l,w),A.push({event:g,listeners:Q}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",T&&l!==hc&&(Y=l.relatedTarget||l.fromElement)&&(na(Y)||Y[Ca]))break e;(g||T)&&(Y=w.window===w?w:(T=w.ownerDocument)?T.defaultView||T.parentWindow:window,g?(T=l.relatedTarget||l.toElement,g=S,T=T?na(T):null,T!==null&&(de=m(T),Q=T.tag,T!==de||Q!==5&&Q!==27&&Q!==6)&&(T=null)):(g=null,T=S),g!==T&&(Q=Oo,j="onMouseLeave",b="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(Q=Do,j="onPointerLeave",b="onPointerEnter",v="pointer"),de=g==null?Y:wn(g),N=T==null?Y:wn(T),Y=new Q(j,v+"leave",g,l,w),Y.target=de,Y.relatedTarget=N,j=null,na(w)===S&&(Q=new Q(b,v+"enter",T,l,w),Q.target=N,Q.relatedTarget=de,j=Q),de=j,Q=g&&T?pe(g,T,Sv):null,g!==null&&z0(A,Y,g,Q,!1),T!==null&&de!==null&&z0(A,de,T,Q,!0)))}e:{if(g=S?wn(S):window,T=g.nodeName&&g.nodeName.toLowerCase(),T==="select"||T==="input"&&g.type==="file")var V=Lo;else if(Yo(g))if(ko)V=Ep;else{V=Tp;var Ne=Np}else T=g.nodeName,!T||T.toLowerCase()!=="input"||g.type!=="checkbox"&&g.type!=="radio"?S&&dc(S.elementType)&&(V=Lo):V=wp;if(V&&(V=V(e,S))){Go(A,V,l,w);break e}Ne&&Ne(e,g,S)}switch(Ne=S?wn(S):window,e){case"focusin":(Yo(Ne)||Ne.contentEditable==="true")&&(Ha=Ne,Cc=S,Dn=null);break;case"focusout":Dn=Cc=Ha=null;break;case"mousedown":jc=!0;break;case"contextmenu":case"mouseup":case"dragend":jc=!1,$o(A,l,w);break;case"selectionchange":if(Cp)break;case"keydown":case"keyup":$o(A,l,w)}var W;if(Nc)e:{switch(e){case"compositionstart":var ae="onCompositionStart";break e;case"compositionend":ae="onCompositionEnd";break e;case"compositionupdate":ae="onCompositionUpdate";break e}ae=void 0}else Ua?qo(e,l)&&(ae="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ae="onCompositionStart");ae&&(Ro&&l.locale!=="ko"&&(Ua||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&Ua&&(W=Ao()):(zl=w,yc="value"in zl?zl.value:zl.textContent,Ua=!0)),Ne=Hi(S,ae),0<Ne.length&&(ae=new Mo(ae,e,null,l,w),A.push({event:ae,listeners:Ne}),W?ae.data=W:(W=Bo(l),W!==null&&(ae.data=W)))),(W=yp?xp(e,l):gp(e,l))&&(ae=Hi(S,"onBeforeInput"),0<ae.length&&(Ne=new Mo("onBeforeInput","beforeinput",null,l,w),A.push({event:Ne,listeners:ae}),Ne.data=W)),yv(A,e,S,l,w)}j0(A,t)})}function nu(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Hi(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=En(e,l),n!=null&&a.unshift(nu(e,n,u)),n=En(e,t),n!=null&&a.push(nu(e,n,u))),e.tag===3)return a;e=e.return}return[]}function Sv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function z0(e,t,l,a,n){for(var u=t._reactName,i=[];l!==null&&l!==a;){var d=l,h=d.alternate,S=d.stateNode;if(d=d.tag,h!==null&&h===a)break;d!==5&&d!==26&&d!==27||S===null||(h=S,n?(S=En(l,u),S!=null&&i.unshift(nu(l,S,h))):n||(S=En(l,u),S!=null&&i.push(nu(l,S,h)))),l=l.return}i.length!==0&&e.push({event:t,listeners:i})}var Nv=/\r\n?/g,Tv=/\u0000|\uFFFD/g;function O0(e){return(typeof e=="string"?e:""+e).replace(Nv,`
|
|
49
|
+
`).replace(Tv,"")}function M0(e,t){return t=O0(t),O0(e)===t}function De(e,t,l,a,n,u){switch(l){case"children":if(typeof a=="string")t==="body"||t==="textarea"&&a===""||Ma(e,a);else if(typeof a=="number"||typeof a=="bigint")t!=="body"&&Ma(e,""+a);else return;break;case"className":Au(e,"class",a);break;case"tabIndex":Au(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Au(e,l,a);break;case"style":_o(e,a,u);return;case"data":if(t!=="object"){Au(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=zu(a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&De(e,t,"name",n.name,n,null),De(e,t,"formEncType",n.formEncType,n,null),De(e,t,"formMethod",n.formMethod,n,null),De(e,t,"formTarget",n.formTarget,n,null)):(De(e,t,"encType",n.encType,n,null),De(e,t,"method",n.method,n,null),De(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=zu(a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=It);return;case"onScroll":a!=null&&ge("scroll",e);return;case"onScrollEnd":a!=null&&ge("scrollend",e);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));(u!=null?u.__html:void 0)!==l&&(e.innerHTML=l)}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=zu(a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":ge("beforetoggle",e),ge("toggle",e),ju(e,"popover",a);break;case"xlinkActuate":hl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":hl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":hl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":hl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":hl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":hl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":hl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":hl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":hl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ju(e,"is",a);break;case"innerText":case"textContent":return;default:if(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")l=km.get(l)||l,ju(e,l,a);else return}_e=!0}function or(e,t,l,a,n,u){switch(l){case"style":_o(e,a,u);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));(u!=null?u.__html:void 0)!==l&&(e.innerHTML=l)}}break;case"children":if(typeof a=="string")Ma(e,a);else if(typeof a=="number"||typeof a=="bigint")Ma(e,""+a);else return;break;case"onScroll":a!=null&&ge("scroll",e);return;case"onScrollEnd":a!=null&&ge("scrollend",e);return;case"onClick":a!=null&&(e.onclick=It);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!vo.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),u=l.slice(2,n?l.length-7:void 0),t=e[xt]||null,t=t!=null?t[l]:null,typeof t=="function"&&e.removeEventListener(u,t,n),typeof a=="function")){typeof t!="function"&&t!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(u,a,n);break e}_e=!0,l in e?e[l]=a:a===!0?e.setAttribute(l,""):ju(e,l,a)}return}_e=!0}function rt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ge("error",e),ge("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:De(e,t,u,i,l,null)}}n&&De(e,t,"srcSet",l.srcSet,l,null),a&&De(e,t,"src",l.src,l,null);return;case"input":ge("invalid",e);var d=u=i=n=null,h=null,S=null;for(a in l)if(l.hasOwnProperty(a)){var w=l[a];if(w!=null)switch(a){case"name":n=w;break;case"type":i=w;break;case"checked":h=w;break;case"defaultChecked":S=w;break;case"value":u=w;break;case"defaultValue":d=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(o(137,t));break;default:De(e,t,a,w,l,null)}}No(e,u,d,h,S,i,n,!1);return;case"select":ge("invalid",e),a=i=u=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":u=d;break;case"defaultValue":i=d;break;case"multiple":a=d;default:De(e,t,n,d,l,null)}t=u,l=i,e.multiple=!!a,t!=null?Oa(e,!!a,t,!1):l!=null&&Oa(e,!!a,l,!0);return;case"textarea":ge("invalid",e),u=n=a=null;for(i in l)if(l.hasOwnProperty(i)&&(d=l[i],d!=null))switch(i){case"value":a=d;break;case"defaultValue":n=d;break;case"children":u=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:De(e,t,i,d,l,null)}wo(e,a,n,u);return;case"option":for(h in l)if(l.hasOwnProperty(h)&&(a=l[h],a!=null))switch(h){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:De(e,t,h,a,l,null)}return;case"dialog":ge("beforetoggle",e),ge("toggle",e),ge("cancel",e),ge("close",e);break;case"iframe":case"object":ge("load",e);break;case"video":case"audio":for(a=0;a<au.length;a++)ge(au[a],e);break;case"image":ge("error",e),ge("load",e);break;case"details":ge("toggle",e);break;case"embed":case"source":case"link":ge("error",e),ge("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(S in l)if(l.hasOwnProperty(S)&&(a=l[S],a!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:De(e,t,S,a,l,null)}return;default:if(dc(t)){for(w in l)l.hasOwnProperty(w)&&(a=l[w],a!==void 0&&or(e,t,w,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&De(e,t,d,a,l,null))}var wv={};function Ev(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,i=null,d=null,h=null,S=null,w=null;for(T in l){var A=l[T];if(l.hasOwnProperty(T)&&A!=null)switch(T){case"checked":break;case"value":break;case"defaultValue":h=A;default:a.hasOwnProperty(T)||De(e,t,T,null,a,A)}}for(var g in a){var T=a[g];if(A=l[g],a.hasOwnProperty(g)&&(T!=null||A!=null))switch(g){case"type":T!==A&&(_e=!0),u=T;break;case"name":T!==A&&(_e=!0),n=T;break;case"checked":T!==A&&(_e=!0),S=T;break;case"defaultChecked":T!==A&&(_e=!0),w=T;break;case"value":T!==A&&(_e=!0),i=T;break;case"defaultValue":T!==A&&(_e=!0),d=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(o(137,t));break;default:T!==A&&De(e,t,g,T,a,A)}}oc(e,i,d,h,S,w,u,n);return;case"select":T=i=d=g=null;for(u in l)if(h=l[u],l.hasOwnProperty(u)&&h!=null)switch(u){case"value":break;case"multiple":T=h;default:a.hasOwnProperty(u)||De(e,t,u,null,a,h)}for(n in a)if(u=a[n],h=l[n],a.hasOwnProperty(n)&&(u!=null||h!=null))switch(n){case"value":u!==h&&(_e=!0),g=u;break;case"defaultValue":u!==h&&(_e=!0),d=u;break;case"multiple":u!==h&&(_e=!0),i=u;default:u!==h&&De(e,t,n,u,a,h)}t=d,l=i,a=T,g!=null?Oa(e,!!l,g,!1):!!a!=!!l&&(t!=null?Oa(e,!!l,t,!0):Oa(e,!!l,l?[]:"",!1));return;case"textarea":T=g=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:De(e,t,d,null,a,n)}for(i in a)if(n=a[i],u=l[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":n!==u&&(_e=!0),g=n;break;case"defaultValue":n!==u&&(_e=!0),T=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==u&&De(e,t,i,n,a,u)}To(e,g,T);return;case"option":for(var Y in l)if(g=l[Y],l.hasOwnProperty(Y)&&g!=null&&!a.hasOwnProperty(Y))switch(Y){case"selected":e.selected=!1;break;default:De(e,t,Y,null,a,g)}for(h in a)if(g=a[h],T=l[h],a.hasOwnProperty(h)&&g!==T&&(g!=null||T!=null))switch(h){case"selected":g!==T&&(_e=!0),e.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:De(e,t,h,g,a,T)}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 Q in l)g=l[Q],l.hasOwnProperty(Q)&&g!=null&&!a.hasOwnProperty(Q)&&De(e,t,Q,null,a,g);for(S in a)if(g=a[S],T=l[S],a.hasOwnProperty(S)&&g!==T&&(g!=null||T!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(o(137,t));break;default:De(e,t,S,g,a,T)}return;default:if(dc(t)){for(var de in l)g=l[de],l.hasOwnProperty(de)&&g!==void 0&&!a.hasOwnProperty(de)&&or(e,t,de,void 0,a,g);for(w in a)g=a[w],T=l[w],!a.hasOwnProperty(w)||g===T||g===void 0&&T===void 0||or(e,t,w,g,a,T);return}}for(var b in l)g=l[b],l.hasOwnProperty(b)&&g!=null&&!a.hasOwnProperty(b)&&De(e,t,b,null,a,g);for(A in a)g=a[A],T=l[A],!a.hasOwnProperty(A)||g===T||g==null&&T==null||De(e,t,A,g,a,T)}function D0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _v(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,i=n.initiatorType,d=n.duration;if(u&&d&&D0(i)){for(i=0,d=n.responseEnd,a+=1;a<l.length;a++){var h=l[a],S=h.startTime;if(S>d)break;var w=h.transferSize,A=h.initiatorType;w&&D0(A)&&(h=h.responseEnd,i+=w*(h<d?1:(d-S)/(h-S)))}if(--a,t+=8*(u+i)/(n.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 fr=null,dr=null;function uu(e){return e.nodeType===9?e:e.ownerDocument}function R0(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 U0(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 H0(e,t,l,a){return l=uu(l).createElement(e),l[nt]=a,l[xt]=t,rt(l,e,t),et(l),l}function hr(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 mr=null;function Cv(){var e=window.event;return e&&e.type==="popstate"?e===mr?!1:(mr=e,!0):(mr=null,!1)}var pr=typeof setTimeout=="function"?setTimeout:void 0,jv=typeof clearTimeout=="function"?clearTimeout:void 0,q0=typeof Promise=="function"?Promise:void 0,B0=typeof requestAnimationFrame=="function"?requestAnimationFrame:pr,Av=typeof queueMicrotask=="function"?queueMicrotask:typeof q0<"u"?function(e){return q0.resolve(null).then(e).catch(zv)}:pr;function zv(e){setTimeout(function(){throw e})}function $l(e){return e==="head"}function Y0(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),vn(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Tr(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Tr(l);for(var u=l.firstChild;u;){var i=u.nextSibling,d=u.nodeName;u[Tn]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&Tr(e.ownerDocument.body);l=n}while(l);vn(t)}function G0(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function L0(e,t,l){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,l!=null&&(e.style.viewTransitionClass=l),l=getComputedStyle(e),l.display==="inline"){if(t=e.getClientRects(),t.length===1)var a=1;else for(var n=a=0;n<t.length;n++){var u=t[n];0<u.width&&0<u.height&&a++}a===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+l.paddingTop,e.marginBottom="-"+l.paddingBottom)}}function k0(e,t){e=e.style,t=t.style;var l=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=l==null||typeof l=="boolean"?"":(""+l).trim(),l=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=l==null||typeof l=="boolean"?"":(""+l).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(l=t.display,e.display=l==null||typeof l=="boolean"?"":l,l=t.margin,l!=null?e.margin=l:(l=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=l==null||typeof l=="boolean"?"":l,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Ov(e,t,l){return l=l.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=l.innerHeight&&e.left<=l.innerWidth}}function vr(e){var t=e.getBoundingClientRect(),l=getComputedStyle(e);return Ov(t,l,e)}function Mv(e){return e.documentElement.clientHeight}function Dv(e){this.addEventListener("load",e),this.addEventListener("error",e)}function Rv(e,t,l,a,n,u,i,d,h){var S=t.nodeType===9?t:t.ownerDocument;try{var w=S.startViewTransition({update:function(){var g=S.defaultView,T=g.navigation&&g.navigation.transition,Y=S.fonts.status;a();var Q=[];if(Y==="loaded"&&(Mv(S),S.fonts.status==="loading"&&Q.push(S.fonts.ready)),Y=Q.length,e!==null)for(var de=e.suspenseyImages,b=0,v=0;v<de.length;v++){var N=de[v];if(!N.complete){var j=N.getBoundingClientRect();if(0<j.bottom&&0<j.right&&j.top<g.innerHeight&&j.left<g.innerWidth){if(b+=rh(N),b>Yi){Q.length=Y;break}N=new Promise(Dv.bind(N)),Q.push(N)}}}if(0<Q.length)return g=Promise.race([Promise.all(Q),new Promise(function(V){return setTimeout(V,500)})]).then(n,n),(T?Promise.allSettled([T.finished,g]):g).then(u,u);if(n(),T)return T.finished.then(u,u);u()},types:l});S.__reactViewTransition=w;var A=[];return w.ready.then(function(){for(var g=S.documentElement.getAnimations({subtree:!0}),T=0;T<g.length;T++){var Y=g[T],Q=Y.effect,de=Q.pseudoElement;if(de!=null&&de.startsWith("::view-transition")){A.push(Y),Y=Q.getKeyframes();for(var b=de=void 0,v=!0,N=0;N<Y.length;N++){var j=Y[N],V=j.width;if(de===void 0)de=V;else if(de!==V){v=!1;break}if(V=j.height,b===void 0)b=V;else if(b!==V){v=!1;break}delete j.width,delete j.height,j.transform==="none"&&delete j.transform}v&&de!==void 0&&b!==void 0&&(Q.setKeyframes(Y),v=getComputedStyle(Q.target,Q.pseudoElement),v.width!==de||v.height!==b)&&(v=Y[0],v.width=de,v.height=b,v=Y[Y.length-1],v.width=de,v.height=b,Q.setKeyframes(Y))}}i()},function(g){S.__reactViewTransition===w&&(S.__reactViewTransition=null);try{if(typeof g=="object"&&g!==null)switch(g.name){case"InvalidStateError":(g.message==="View transition was skipped because document visibility state is hidden."||g.message==="Skipping view transition because document visibility state has become hidden."||g.message==="Skipping view transition because viewport size changed."||g.message==="Transition was aborted because of invalid state")&&(g=null)}g!==null&&h(g)}finally{a(),n(),i()}}),w.finished.finally(function(){for(var g=0;g<A.length;g++)A[g].cancel();S.__reactViewTransition===w&&(S.__reactViewTransition=null),d()}),w}catch{return a(),n(),i(),null}}function Ea(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}Ea.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:J({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Ea.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,l=e.getAnimations({subtree:!0}),a=[],n=0;n<l.length;n++){var u=l[n].effect;u!==null&&u.target===e&&u.pseudoElement===t&&a.push(l[n])}return a},Ea.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function V0(e){return{name:e,group:new Ea("group",e),imagePair:new Ea("image-pair",e),old:new Ea("old",e),new:new Ea("new",e)}}function Rt(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Rt.prototype.addEventListener=function(e,t,l){var a=null,n=null;if(!(l!=null&&typeof l!="boolean"&&(a=l.signal||null,a!==null&&a.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var u=this._eventListeners;if(Q0(u,e,t,l)===-1){var i=this,d=t;l!=null&&typeof l!="boolean"&&l.once===!0&&(d=function(h){i.removeEventListener(e,t,l),typeof t=="function"?t.call(this,h):t.handleEvent(h)}),a!==null&&(n=i.removeEventListener.bind(i,e,t,l),a.addEventListener("abort",n,{once:!0}),n=a.removeEventListener.bind(a,"abort",n)),a=on(l),u.push({type:e,listener:t,optionsOrUseCapture:l,attachedListener:d,cleanup:n}),x(this._fragmentFiber.child,!1,Uv,e,d,a)}this._eventListeners=u}};function Uv(e,t,l,a){return I(e).addEventListener(t,l,a),!1}Rt.prototype.removeEventListener=function(e,t,l){var a=this._eventListeners;if(a!==null&&(t=Q0(a,e,t,l),t!==-1)){var n=a[t];l=n.attachedListener;var u=n.cleanup;n=on(n.optionsOrUseCapture),x(this._fragmentFiber.child,!1,Hv,e,l,n),a.splice(t,1),u!==null&&u()}};function Hv(e,t,l,a){return I(e).removeEventListener(t,l,a),!1}function on(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function X0(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Q0(e,t,l,a){if(e.length===0)return-1;a=X0(a);for(var n=0;n<e.length;n++){var u=e[n];if(u.type===t&&u.listener===l&&X0(u.optionsOrUseCapture)===a)return n}return-1}Rt.prototype.dispatchEvent=function(e){var t=D(this._fragmentFiber);if(t===null)return!0;t=I(t);var l=this._eventListeners;if(l!==null&&0<l.length||!e.bubbles){var a=t.nodeType===9?t.createComment(""):document.createTextNode("");if(l)for(var n=0;n<l.length;n++){var u=l[n];a.addEventListener(u.type,u.attachedListener,on(u.optionsOrUseCapture))}if(t.appendChild(a),e=a.dispatchEvent(e),l)for(n=0;n<l.length;n++)u=l[n],a.removeEventListener(u.type,u.attachedListener,on(u.optionsOrUseCapture));return t.removeChild(a),e}return t.dispatchEvent(e)},Rt.prototype.focus=function(e){x(this._fragmentFiber.child,!0,Z0,e,void 0,void 0)};function Z0(e,t){return e.tag===6?!1:(e=I(e),Kv(e,t))}Rt.prototype.focusLast=function(e){var t=[];x(this._fragmentFiber.child,!0,yr,t,void 0,void 0);for(var l=t.length-1;0<=l&&!Z0(t[l],e);l--);};function yr(e,t){return t.push(e),!1}Rt.prototype.blur=function(){var e=D(this._fragmentFiber);e!==null&&(e=I(e),e=uu(e).activeElement,e!==null&&x(this._fragmentFiber.child,!1,qv,e,void 0,void 0))};function qv(e,t){return e.tag===6?!1:(e=I(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Rt.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),x(this._fragmentFiber.child,!1,Bv,e,void 0,void 0)};function Bv(e,t){return e.tag===6||(e=I(e),t.observe(e)),!1}Rt.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),x(this._fragmentFiber.child,!1,Yv,e,void 0,void 0);for(var l=t=0;l<Pt.length;l++){var a=Pt[l];a.fragmentInstance===this&&a.observer===e?e.unobserve(a.instance):Pt[t++]=a}Pt.length=t}};function Yv(e,t){return e.tag===6||(e=I(e),t.unobserve(e)),!1}var Pt=[],xr=!1;function Gv(e,t,l){Pt.push({fragmentInstance:e,observer:t,instance:l}),xr||(xr=!0,Fv(function(){xr=!1;var a=Pt;Pt=[];for(var n=0;n<a.length;n++){var u=a[n];u.observer.unobserve(u.instance)}}))}Rt.prototype.getClientRects=function(){var e=[];return x(this._fragmentFiber.child,!1,Lv,e,void 0,void 0),e};function Lv(e,t){if(e.tag===6){e=e.stateNode;var l=e.ownerDocument.createRange();l.selectNodeContents(e),t.push.apply(t,l.getClientRects())}else e=I(e),t.push.apply(t,e.getClientRects());return!1}Rt.prototype.getRootNode=function(e){var t=D(this._fragmentFiber);return t===null?this:I(t).getRootNode(e)},Rt.prototype.compareDocumentPosition=function(e){var t=D(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var l=[];x(this._fragmentFiber.child,!1,yr,l,void 0,void 0);var a=I(t);if(l.length===0){if(l=a,X(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(l=t)}t=this._fragmentFiber;var n=a=l.compareDocumentPosition(e);return l===e?n=Node.DOCUMENT_POSITION_CONTAINS:a&Node.DOCUMENT_POSITION_CONTAINED_BY&&(l=L(t)[1],l===null?n=Node.DOCUMENT_POSITION_PRECEDING:(e=I(l).compareDocumentPosition(e),n=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),n|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=I(l[0]),n=I(l[l.length-1]);var u=X(this._fragmentFiber)?t.parentElement:a;if(u==null)return Node.DOCUMENT_POSITION_DISCONNECTED;a=u.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,u=u.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY;var i=t.compareDocumentPosition(e),d=n.compareDocumentPosition(e),h=i&Node.DOCUMENT_POSITION_CONTAINED_BY||d&Node.DOCUMENT_POSITION_CONTAINED_BY;return d=a&&u&&i&Node.DOCUMENT_POSITION_FOLLOWING&&d&Node.DOCUMENT_POSITION_PRECEDING,t=a&&t===e||u&&n===e||h||d?Node.DOCUMENT_POSITION_CONTAINED_BY:!a&&t===e||!u&&n===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:i,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||kv(t,this._fragmentFiber,l[0],l[l.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function kv(e,t,l,a,n){var u=na(n);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(l=!!u)e:{for(;u!==null;){if(u.tag===7&&(u===t||u.alternate===t)){l=!0;break e}u=u.return}l=!1}return l}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(u===null)return u=n.ownerDocument,n===u||n===u.documentElement||n===u.body;e:{for(u=t,t=D(t);u!==null;){if(!(u.tag!==5&&u.tag!==3&&u.tag!==27||u!==t&&u.alternate!==t)){u=!0;break e}u=u.return}u=!1}return u}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!u)&&!(t=u===l)&&(t=pe(l,u,te),t===null?t=!1:(x(t,!0,P,u,l),u=be,be=null,t=u!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!u)&&!(t=u===a)&&(t=pe(a,u,te),t===null?t=!1:(x(t,!0,O,u,a),u=be,k=be=null,t=u!==null)),t):!1}function J0(e,t){var l=e.ownerDocument.createRange();l.selectNodeContents(e),e=l.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Rt.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(o(566));var t=[];x(this._fragmentFiber.child,!1,yr,t,void 0,void 0);var l=e!==!1;if(t.length===0){var a=L(this._fragmentFiber);if(a=l?a[1]||a[0]||D(this._fragmentFiber):a[0]||a[1],a===null)return;if(a.tag===6){e=I(a),J0(e,l);return}if(a=I(a),a.nodeType!==9){if(a.nodeType===11){l="host"in a?a.host:null,l!==null&&l.scrollIntoView(e);return}a.scrollIntoView(e)}}for(a=l?t.length-1:0;a!==(l?-1:t.length);){var n=t[a];n.tag===6?(n=I(n),J0(n,l)):I(n).scrollIntoView(e),a+=l?-1:1}};function Vv(e,t){return e=I(e),K0(e,t),!1}function K0(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function F0(e,t){var l=t._eventListeners;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a];e.addEventListener(n.type,n.attachedListener,on(n.optionsOrUseCapture))}e.nodeType!==3&&(l=t._observers,l!==null&&l.forEach(function(u){for(var i=0,d=0;d<Pt.length;d++){var h=Pt[d];(h.fragmentInstance!==t||h.observer!==u||h.instance!==e)&&(Pt[i++]=h)}Pt.length=i,u.observe(e)}),K0(e,t))}function Xv(e,t){var l=t._eventListeners;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a];e.removeEventListener(n.type,n.attachedListener,on(n.optionsOrUseCapture))}e.nodeType!==3&&(l=t._observers,l!==null&&l.forEach(function(u){typeof u.rootMargin=="string"?Gv(t,u,e):u.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function gr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":gr(l),Cu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Qv(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Tn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=kt(e.nextSibling),e===null)break}return null}function Zv(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=kt(e.nextSibling),e===null))return null;return e}function $0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=kt(e.nextSibling),e===null))return null;return e}function br(e){return e.data==="$?"||e.data==="$~"}function Sr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Jv(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function kt(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 Nr=null;function P0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return kt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function W0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Kv(e,t){function l(){a=!0}if(e.ownerDocument.activeElement===e)return!0;var a=!1;try{e.ownerDocument.addEventListener("focus",l,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",l,!0)}return a}function Fv(e){B0(function(){B0(function(t){return e(t)})})}function I0(e,t,l){switch(t=uu(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function eh(e,t,l){for(var a in l){var n=l[a];l.hasOwnProperty(a)&&n!=null&&De(e,t,a,null,wv,n)}l.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===It&&(e.onclick=null),Cu(e)}function Tr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Cu(e)}var Vt=new Map,th=new Set;function iu(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var _l=M.d;M.d={f:$v,r:Pv,D:Wv,C:Iv,L:ey,m:ty,X:ay,S:ly,M:ny};function $v(){var e=_l.f(),t=zi();return e||t}function Pv(e){var t=ja(e);t!==null&&t.tag===5&&t.type==="form"?ad(t):_l.r(e)}var fn=typeof document>"u"?null:document;function lh(e,t,l){var a=fn;if(a&&typeof t=="string"&&t){var n=Ut(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),th.has(n)||(th.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),rt(t,"link",e),et(t),a.head.appendChild(t)))}}function Wv(e){_l.D(e),lh("dns-prefetch",e,null)}function Iv(e,t){_l.C(e,t),lh("preconnect",e,t)}function ey(e,t,l){_l.L(e,t,l);var a=fn;if(a&&e&&t){var n='link[rel="preload"][as="'+Ut(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Ut(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Ut(l.imageSizes)+'"]')):n+='[href="'+Ut(e)+'"]';var u=n;switch(t){case"style":u=dn(e);break;case"script":u=hn(e)}if(!(Vt.has(u)||(e=J({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Vt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(cu(u))||t==="script"&&a.querySelector(su(u))))){var i=a.createElement("link");rt(i,"link",e),t==="style"&&(i[_u]=!0,i.onload=i.onerror=function(){mo(i)}),et(i),a.head.appendChild(i)}}}function ty(e,t){_l.m(e,t);var l=fn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Ut(a)+'"][href="'+Ut(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=hn(e)}if(!Vt.has(u)&&(e=J({rel:"modulepreload",href:e},t),Vt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(su(u)))return}a=l.createElement("link"),rt(a,"link",e),et(a),l.head.appendChild(a)}}}function ly(e,t,l){_l.S(e,t,l);var a=fn;if(a&&e){var n=Aa(a).hoistableStyles,u=dn(e);t=t||"default";var i=n.get(u);if(!i){var d={loading:0,preload:null};if(i=a.querySelector(cu(u)))d.loading=5;else{e=J({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Vt.get(u))&&wr(e,l);var h=i=a.createElement("link");et(h),rt(h,"link",e),h._p=new Promise(function(S,w){h.onload=S,h.onerror=w}),h.addEventListener("load",function(){d.loading|=1}),h.addEventListener("error",function(){d.loading|=2}),d.loading|=4,qi(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:d},n.set(u,i)}}}function ay(e,t){_l.X(e,t);var l=fn;if(l&&e){var a=Aa(l).hoistableScripts,n=hn(e),u=a.get(n);u||(u=l.querySelector(su(n)),u||(e=J({src:e,async:!0},t),(t=Vt.get(n))&&Er(e,t),u=l.createElement("script"),et(u),rt(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function ny(e,t){_l.M(e,t);var l=fn;if(l&&e){var a=Aa(l).hoistableScripts,n=hn(e),u=a.get(n);u||(u=l.querySelector(su(n)),u||(e=J({src:e,async:!0,type:"module"},t),(t=Vt.get(n))&&Er(e,t),u=l.createElement("script"),et(u),rt(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function ah(e,t,l,a){var n=(n=Cl.current)?iu(n):null;if(!n)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=dn(l.href),t=Aa(n).hoistableStyles,a=t.get(l),a||(a={type:"style",instance:null,count:0,state:null},t.set(l,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=dn(l.href);var u=Aa(n).hoistableStyles,i=u.get(e);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,i),(u=n.querySelector(cu(e)))?u._p||(i.instance=u,i.state.loading=5):(u=Vt.get(e),u||(u={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Vt.set(e,u)),uy(n,e,u,i.state))),t&&a===null)throw Error(o(528,""));return i}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(l=hn(l),t=Aa(n).hoistableScripts,a=t.get(l),a||(a={type:"script",instance:null,count:0,state:null},t.set(l,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function dn(e){return'href="'+Ut(e)+'"'}function cu(e){return'link[rel="stylesheet"]['+e+"]"}function nh(e){return J({},e,{"data-precedence":e.precedence,precedence:null})}function uy(e,t,l,a){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[_u]!==!0){a.loading=1;return}}else t=e.createElement("link"),t[_u]=!0,t.onload=t.onerror=mo.bind(null,t),rt(t,"link",l),et(t),e.head.appendChild(t);a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2})}function hn(e){return'[src="'+Ut(e)+'"]'}function su(e){return"script[async]"+e}function uh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Ut(l.href)+'"]');if(a)return t.instance=a,et(a),a;var n=J({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),et(a),rt(a,"style",n),qi(a,l.precedence,e),t.instance=a;case"stylesheet":n=dn(l.href);var u=e.querySelector(cu(n));if(u)return t.state.loading|=4,t.instance=u,et(u),u;a=nh(l),(n=Vt.get(n))&&wr(a,n),u=(e.ownerDocument||e).createElement("link"),et(u);var i=u;return i._p=new Promise(function(d,h){i.onload=d,i.onerror=h}),rt(u,"link",a),t.state.loading|=4,qi(u,l.precedence,e),t.instance=u;case"script":return u=hn(l.src),(n=e.querySelector(su(u)))?(t.instance=n,et(n),n):(a=l,(n=Vt.get(u))&&(a=J({},l),Er(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),et(n),rt(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,qi(a,l.precedence,e));return t.instance}function qi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var d=a[i];if(d.dataset.precedence===t)u=d;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function wr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Er(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Bi=null;function ih(e,t,l){if(Bi===null){var a=new Map,n=Bi=new Map;n.set(l,a)}else n=Bi,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Tn]||u[nt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(t)||"";i=e+i;var d=a.get(i);d?d.push(u):a.set(i,[u])}}return a}function _r(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function iy(e,t,l){if(l===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 ch(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function sh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function rh(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function oh(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=rh(t),e.suspenseyImages.push(t)),e=ry.bind(e),t.decode().then(e,e))}function cy(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=dn(a.href),u=t.querySelector(cu(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ru.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,et(u);return}u=t.ownerDocument||t,a=nh(a),(n=Vt.get(n))&&wr(a,n),u=u.createElement("link"),et(u);var i=u;i._p=new Promise(function(d,h){i.onload=d,i.onerror=h}),rt(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=ru.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Yi=0;function sy(e,t){return e.stylesheets&&e.count===0&&Li(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Li(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Yi===0&&(Yi=62500*_v());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Li(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Yi?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function fh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Li(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ru(){this.count--,fh(this)}function ry(){this.imgCount--,fh(this)}var Gi=null;function Li(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Gi=new Map,t.forEach(oy,e),Gi=null,ru.call(e))}function oy(e,t){if(!(t.state.loading&4)){var l=Gi.get(e);if(l)var a=l.get(null);else{l=new Map,Gi.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(l.set(i.dataset.precedence,i),a=i)}a&&l.set(null,a)}n=t.instance,i=n.getAttribute("data-precedence"),u=l.get(i)||a,u===a&&l.set(null,n),l.set(i,n),this.count++,a=ru.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var mn={$$typeof:se,Provider:null,Consumer:null,_currentValue:ye,_currentValue2:ye,_threadCount:0};function fy(e,t,l,a,n,u,i,d,h){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=ic(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ic(0),this.hiddenUpdates=ic(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=h,this.transitionTypes=null,this.incompleteTransitions=new Map}function dh(e,t,l,a,n,u,i,d,h,S,w,A){return e=new fy(e,t,l,i,h,S,w,A,d),t=1,u===!0&&(t|=24),u=gt(3,null,null,t),e.current=u,u.stateNode=e,t=Lc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},Qc(u),e}function hh(e){return e?(e=Ya,e):Ya}function mh(e,t,l,a,n,u){n=hh(n),a.context===null?a.context=n:a.pendingContext=n,a=Bl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=Yl(e,a,t),l!==null&&(Tt(l,e,t),Gn(l,e,t))}function ph(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Cr(e,t){ph(e,t),(e=e.alternate)&&ph(e,t)}function vh(e){if(e.tag===13||e.tag===31){var t=sa(e,67108864);t!==null&&Tt(t,e,67108864),Cr(e,67108864)}}function yh(e){if(e.tag===13||e.tag===31){var t=Dt();t=cc(t);var l=sa(e,t);l!==null&&Tt(l,e,t),Cr(e,t)}}var pn=!0;function dy(e,t,l,a){var n=G.T;G.T=null;var u=M.p;try{M.p=2,jr(e,t,l,a)}finally{M.p=u,G.T=n}}function hy(e,t,l,a){var n=G.T;G.T=null;var u=M.p;try{M.p=8,jr(e,t,l,a)}finally{M.p=u,G.T=n}}function jr(e,t,l,a){if(pn){var n=Ar(a);if(n===null)rr(e,t,a,ki,l),gh(e,a);else if(py(n,e,t,l,a))a.stopPropagation();else if(gh(e,a),t&4&&-1<my.indexOf(e)){for(;n!==null;){var u=ja(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=aa(u.pendingLanes);if(i!==0){var d=u;for(d.pendingLanes|=2,d.entangledLanes|=2;i;){var h=1<<31-_t(i);d.entanglements[1]|=h,i&=~h}rl(u),(je&6)===0&&(Ci=wt()+500,lu(0))}}break;case 31:case 13:d=sa(u,2),d!==null&&Tt(d,u,2),zi(),Cr(u,2)}if(u=Ar(a),u===null&&rr(e,t,a,ki,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else rr(e,t,a,null,l)}}function Ar(e){return e=mc(e),zr(e)}var ki=null;function zr(e){if(ki=null,e=na(e),e!==null){var t=m(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=C(t),e!==null)return e;e=null}else if(l===31){if(e=U(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ki=e,null}function xh(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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(_m()){case to:return 2;case lo:return 8;case Su:case Cm:return 32;case ao:return 268435456;default:return 32}default:return 32}}var Or=!1,Pl=null,Wl=null,Il=null,ou=new Map,fu=new Map,ea=[],my="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 gh(e,t){switch(e){case"focusin":case"focusout":Pl=null;break;case"dragenter":case"dragleave":Wl=null;break;case"mouseover":case"mouseout":Il=null;break;case"pointerover":case"pointerout":ou.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":fu.delete(t.pointerId)}}function du(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=ja(t),t!==null&&vh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function py(e,t,l,a,n){switch(t){case"focusin":return Pl=du(Pl,e,t,l,a,n),!0;case"dragenter":return Wl=du(Wl,e,t,l,a,n),!0;case"mouseover":return Il=du(Il,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return ou.set(u,du(ou.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,fu.set(u,du(fu.get(u)||null,e,t,l,a,n)),!0}return!1}function bh(e){var t=na(e.target);if(t!==null){var l=m(t);if(l!==null){if(t=l.tag,t===13){if(t=C(l),t!==null){e.blockedOn=t,oo(e.priority,function(){yh(l)});return}}else if(t===31){if(t=U(l),t!==null){e.blockedOn=t,oo(e.priority,function(){yh(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Ar(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);hc=a,l.target.dispatchEvent(a),hc=null}else return t=ja(l),t!==null&&vh(t),e.blockedOn=l,!1;t.shift()}return!0}function Sh(e,t,l){Vi(e)&&l.delete(t)}function vy(){Or=!1,Pl!==null&&Vi(Pl)&&(Pl=null),Wl!==null&&Vi(Wl)&&(Wl=null),Il!==null&&Vi(Il)&&(Il=null),ou.forEach(Sh),fu.forEach(Sh)}function Xi(e,t){e.blockedOn===t&&(e.blockedOn=null,Or||(Or=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,vy)))}var Qi=null;function Nh(e){Qi!==e&&(Qi=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Qi===e&&(Qi=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(zr(a||l)===null)continue;break}var u=ja(l);u!==null&&(e.splice(t,3),t-=3,ds(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function vn(e){function t(h){return Xi(h,e)}Pl!==null&&Xi(Pl,e),Wl!==null&&Xi(Wl,e),Il!==null&&Xi(Il,e),ou.forEach(t),fu.forEach(t);for(var l=0;l<ea.length;l++){var a=ea[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ea.length&&(l=ea[0],l.blockedOn===null);)bh(l),l.blockedOn===null&&ea.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],i=n[xt]||null;if(typeof u=="function")i||Nh(l);else if(i){var d=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[xt]||null)d=i.formAction;else if(zr(n)!==null)continue}else d=i.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),Nh(l)}}}function Th(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Mr(e){this._internalRoot=e}Zi.prototype.render=Mr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=Dt();mh(l,a,e,t,null,null)},Zi.prototype.unmount=Mr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mh(e.current,2,null,e,null,null),zi(),t[Ca]=null}};function Zi(e){this._internalRoot=e}Zi.prototype.unstable_scheduleHydration=function(e){if(e){var t=ro();e={blockedOn:null,target:e,priority:t};for(var l=0;l<ea.length&&t!==0&&t<ea[l].priority;l++);ea.splice(l,0,e),l===0&&bh(e)}};var wh=r.version;if(wh!=="19.3.1")throw Error(o(527,wh,"19.3.1"));M.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=E(t),e=e!==null?_(e):null,e=e===null?null:e.stateNode,e};var yy={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ji=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ji.isDisabled&&Ji.supportsFiber)try{bn=Ji.inject(yy),Et=Ji}catch{}}return mu.createRoot=function(e,t){if(!p(e))throw Error(o(299));var l=!1,a="",n=hd,u=md,i=pd;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=dh(e,1,!1,null,null,l,a,null,n,u,i,Th),e[Ca]=t.current,sr(e),new Mr(t)},mu.hydrateRoot=function(e,t,l){if(!p(e))throw Error(o(299));var a=!1,n="",u=hd,i=md,d=pd,h=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(h=l.formState)),t=dh(e,1,!0,t,l??null,a,n,h,u,i,d,Th),t.context=hh(null),l=t.current,a=Dt(),a=cc(a),n=Bl(a),n.callback=null,Yl(l,n,a),l=a,t.current.lanes=l,Nn(t,l),rl(t),e[Ca]=t.current,sr(e),new Zi(t)},mu.version="19.3.1",mu}var Rh;function jy(){if(Rh)return Hr.exports;Rh=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),Hr.exports=Cy(),Hr.exports}var Ay=jy();/**
|
|
50
|
+
* @license lucide-react v0.471.2 - ISC
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the ISC license.
|
|
53
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/const zy=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ih=(...s)=>s.filter((r,f,o)=>!!r&&r.trim()!==""&&o.indexOf(r)===f).join(" ").trim();/**
|
|
55
|
+
* @license lucide-react v0.471.2 - ISC
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the ISC license.
|
|
58
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/var Oy={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
60
|
+
* @license lucide-react v0.471.2 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/const My=he.forwardRef(({color:s="currentColor",size:r=24,strokeWidth:f=2,absoluteStrokeWidth:o,className:p="",children:m,iconNode:C,...U},R)=>he.createElement("svg",{ref:R,...Oy,width:r,height:r,stroke:s,strokeWidth:o?Number(f)*24/Number(r):f,className:Ih("lucide",p),...U},[...C.map(([E,_])=>he.createElement(E,_)),...Array.isArray(m)?m:[m]]));/**
|
|
65
|
+
* @license lucide-react v0.471.2 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const ce=(s,r)=>{const f=he.forwardRef(({className:o,...p},m)=>he.createElement(My,{ref:m,iconNode:r,className:Ih(`lucide-${zy(s)}`,o),...p}));return f.displayName=`${s}`,f};/**
|
|
70
|
+
* @license lucide-react v0.471.2 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/const Dy=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],em=ce("ArrowRight",Dy);/**
|
|
75
|
+
* @license lucide-react v0.471.2 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const Ry=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Uy=ce("ArrowUp",Ry);/**
|
|
80
|
+
* @license lucide-react v0.471.2 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/const Hy=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Wt=ce("Check",Hy);/**
|
|
85
|
+
* @license lucide-react v0.471.2 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/const qy=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],By=ce("ChevronDown",qy);/**
|
|
90
|
+
* @license lucide-react v0.471.2 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const Yy=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Gy=ce("ChevronLeft",Yy);/**
|
|
95
|
+
* @license lucide-react v0.471.2 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const Ly=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],tm=ce("ChevronRight",Ly);/**
|
|
100
|
+
* @license lucide-react v0.471.2 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const ky=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Vy=ce("ChevronsUpDown",ky);/**
|
|
105
|
+
* @license lucide-react v0.471.2 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/const Xy=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Pr=ce("CircleCheck",Xy);/**
|
|
110
|
+
* @license lucide-react v0.471.2 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/const Qy=[["path",{d:"M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z",key:"1pp7kr"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10",key:"2ik1ml"}],["path",{d:"m17 10 4 4-4 4",key:"vp2hj1"}]],Zy=ce("ClipboardPaste",Qy);/**
|
|
115
|
+
* @license lucide-react v0.471.2 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const Jy=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Ky=ce("Clock",Jy);/**
|
|
120
|
+
* @license lucide-react v0.471.2 - ISC
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the ISC license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/const Fy=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],$y=ce("Columns2",Fy);/**
|
|
125
|
+
* @license lucide-react v0.471.2 - ISC
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the ISC license.
|
|
128
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
+
*/const Py=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],lm=ce("Copy",Py);/**
|
|
130
|
+
* @license lucide-react v0.471.2 - ISC
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the ISC license.
|
|
133
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/const Wy=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],Iy=ce("Download",Wy);/**
|
|
135
|
+
* @license lucide-react v0.471.2 - ISC
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the ISC license.
|
|
138
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/const e1=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],am=ce("EyeOff",e1);/**
|
|
140
|
+
* @license lucide-react v0.471.2 - ISC
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the ISC license.
|
|
143
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
+
*/const t1=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],nm=ce("Eye",t1);/**
|
|
145
|
+
* @license lucide-react v0.471.2 - ISC
|
|
146
|
+
*
|
|
147
|
+
* This source code is licensed under the ISC license.
|
|
148
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
+
*/const l1=[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]],a1=ce("FileCode2",l1);/**
|
|
150
|
+
* @license lucide-react v0.471.2 - ISC
|
|
151
|
+
*
|
|
152
|
+
* This source code is licensed under the ISC license.
|
|
153
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
+
*/const n1=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],u1=ce("FileDiff",n1);/**
|
|
155
|
+
* @license lucide-react v0.471.2 - ISC
|
|
156
|
+
*
|
|
157
|
+
* This source code is licensed under the ISC license.
|
|
158
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
+
*/const i1=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],c1=ce("FileText",i1);/**
|
|
160
|
+
* @license lucide-react v0.471.2 - ISC
|
|
161
|
+
*
|
|
162
|
+
* This source code is licensed under the ISC license.
|
|
163
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
+
*/const s1=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]],Gr=ce("FileUp",s1);/**
|
|
165
|
+
* @license lucide-react v0.471.2 - ISC
|
|
166
|
+
*
|
|
167
|
+
* This source code is licensed under the ISC license.
|
|
168
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
+
*/const r1=[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],um=ce("FolderGit2",r1);/**
|
|
170
|
+
* @license lucide-react v0.471.2 - ISC
|
|
171
|
+
*
|
|
172
|
+
* This source code is licensed under the ISC license.
|
|
173
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
+
*/const o1=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],im=ce("FolderOpen",o1);/**
|
|
175
|
+
* @license lucide-react v0.471.2 - ISC
|
|
176
|
+
*
|
|
177
|
+
* This source code is licensed under the ISC license.
|
|
178
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
+
*/const f1=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],cm=ce("Folder",f1);/**
|
|
180
|
+
* @license lucide-react v0.471.2 - ISC
|
|
181
|
+
*
|
|
182
|
+
* This source code is licensed under the ISC license.
|
|
183
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
+
*/const d1=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],h1=ce("GitBranch",d1);/**
|
|
185
|
+
* @license lucide-react v0.471.2 - ISC
|
|
186
|
+
*
|
|
187
|
+
* This source code is licensed under the ISC license.
|
|
188
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
+
*/const m1=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],p1=ce("Layers",m1);/**
|
|
190
|
+
* @license lucide-react v0.471.2 - ISC
|
|
191
|
+
*
|
|
192
|
+
* This source code is licensed under the ISC license.
|
|
193
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
+
*/const v1=[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]],y1=ce("Maximize2",v1);/**
|
|
195
|
+
* @license lucide-react v0.471.2 - ISC
|
|
196
|
+
*
|
|
197
|
+
* This source code is licensed under the ISC license.
|
|
198
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
199
|
+
*/const x1=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M9 10h6",key:"9gxzsh"}]],g1=ce("MessageSquarePlus",x1);/**
|
|
200
|
+
* @license lucide-react v0.471.2 - ISC
|
|
201
|
+
*
|
|
202
|
+
* This source code is licensed under the ISC license.
|
|
203
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
204
|
+
*/const b1=[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]],sm=ce("Minimize2",b1);/**
|
|
205
|
+
* @license lucide-react v0.471.2 - ISC
|
|
206
|
+
*
|
|
207
|
+
* This source code is licensed under the ISC license.
|
|
208
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
+
*/const S1=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],N1=ce("Moon",S1);/**
|
|
210
|
+
* @license lucide-react v0.471.2 - ISC
|
|
211
|
+
*
|
|
212
|
+
* This source code is licensed under the ISC license.
|
|
213
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
214
|
+
*/const T1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],w1=ce("PanelLeftClose",T1);/**
|
|
215
|
+
* @license lucide-react v0.471.2 - ISC
|
|
216
|
+
*
|
|
217
|
+
* This source code is licensed under the ISC license.
|
|
218
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
219
|
+
*/const E1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],_1=ce("PanelLeftOpen",E1);/**
|
|
220
|
+
* @license lucide-react v0.471.2 - ISC
|
|
221
|
+
*
|
|
222
|
+
* This source code is licensed under the ISC license.
|
|
223
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
224
|
+
*/const C1=[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]],j1=ce("Radio",C1);/**
|
|
225
|
+
* @license lucide-react v0.471.2 - ISC
|
|
226
|
+
*
|
|
227
|
+
* This source code is licensed under the ISC license.
|
|
228
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
+
*/const A1=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],rm=ce("RefreshCw",A1);/**
|
|
230
|
+
* @license lucide-react v0.471.2 - ISC
|
|
231
|
+
*
|
|
232
|
+
* This source code is licensed under the ISC license.
|
|
233
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
234
|
+
*/const z1=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Wr=ce("RotateCcw",z1);/**
|
|
235
|
+
* @license lucide-react v0.471.2 - ISC
|
|
236
|
+
*
|
|
237
|
+
* This source code is licensed under the ISC license.
|
|
238
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
239
|
+
*/const O1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]],M1=ce("Rows2",O1);/**
|
|
240
|
+
* @license lucide-react v0.471.2 - ISC
|
|
241
|
+
*
|
|
242
|
+
* This source code is licensed under the ISC license.
|
|
243
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
244
|
+
*/const D1=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],R1=ce("Search",D1);/**
|
|
245
|
+
* @license lucide-react v0.471.2 - ISC
|
|
246
|
+
*
|
|
247
|
+
* This source code is licensed under the ISC license.
|
|
248
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
249
|
+
*/const U1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],H1=ce("ShieldAlert",U1);/**
|
|
250
|
+
* @license lucide-react v0.471.2 - ISC
|
|
251
|
+
*
|
|
252
|
+
* This source code is licensed under the ISC license.
|
|
253
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
254
|
+
*/const q1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],B1=ce("ShieldCheck",q1);/**
|
|
255
|
+
* @license lucide-react v0.471.2 - ISC
|
|
256
|
+
*
|
|
257
|
+
* This source code is licensed under the ISC license.
|
|
258
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
259
|
+
*/const Y1=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],G1=ce("Shield",Y1);/**
|
|
260
|
+
* @license lucide-react v0.471.2 - ISC
|
|
261
|
+
*
|
|
262
|
+
* This source code is licensed under the ISC license.
|
|
263
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
264
|
+
*/const L1=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],k1=ce("Sparkles",L1);/**
|
|
265
|
+
* @license lucide-react v0.471.2 - ISC
|
|
266
|
+
*
|
|
267
|
+
* This source code is licensed under the ISC license.
|
|
268
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
269
|
+
*/const V1=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],X1=ce("Sun",V1);/**
|
|
270
|
+
* @license lucide-react v0.471.2 - ISC
|
|
271
|
+
*
|
|
272
|
+
* This source code is licensed under the ISC license.
|
|
273
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
274
|
+
*/const Q1=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Z1=ce("Trash2",Q1);/**
|
|
275
|
+
* @license lucide-react v0.471.2 - ISC
|
|
276
|
+
*
|
|
277
|
+
* This source code is licensed under the ISC license.
|
|
278
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
279
|
+
*/const J1=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Xr=ce("TriangleAlert",J1);/**
|
|
280
|
+
* @license lucide-react v0.471.2 - ISC
|
|
281
|
+
*
|
|
282
|
+
* This source code is licensed under the ISC license.
|
|
283
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
284
|
+
*/const K1=[["line",{x1:"3",x2:"21",y1:"6",y2:"6",key:"4m8b97"}],["path",{d:"M3 12h15a3 3 0 1 1 0 6h-4",key:"1cl7v7"}],["polyline",{points:"16 16 14 18 16 20",key:"1jznyi"}],["line",{x1:"3",x2:"10",y1:"18",y2:"18",key:"1h33wv"}]],F1=ce("WrapText",K1);/**
|
|
285
|
+
* @license lucide-react v0.471.2 - ISC
|
|
286
|
+
*
|
|
287
|
+
* This source code is licensed under the ISC license.
|
|
288
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
289
|
+
*/const $1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],yu=ce("X",$1);/**
|
|
290
|
+
* @license lucide-react v0.471.2 - ISC
|
|
291
|
+
*
|
|
292
|
+
* This source code is licensed under the ISC license.
|
|
293
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
294
|
+
*/const P1=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],W1=ce("Zap",P1),Uh=s=>{let r;const f=new Set,o=(E,_)=>{const x=typeof E=="function"?E(r):E;if(!Object.is(x,r)){const D=r;r=_??(typeof x!="object"||x===null)?x:Object.assign({},r,x),f.forEach(X=>X(r,D))}},p=()=>r,U={setState:o,getState:p,getInitialState:()=>R,subscribe:E=>(f.add(E),()=>f.delete(E))},R=r=s(o,p,U);return U},I1=(s=>s?Uh(s):Uh),ex=s=>s;function tx(s,r=ex){const f=Ur.useSyncExternalStore(s.subscribe,Ur.useCallback(()=>r(s.getState()),[s,r]),()=>r(s.getInitialState()));return Ur.useDebugValue(f),f}const Hh=s=>{const r=I1(s),f=o=>tx(r,o);return Object.assign(f,r),f},lx=(s=>s?Hh(s):Hh);function fl(){}fl.prototype={diff:function(r,f){var o,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},m=p.callback;typeof p=="function"&&(m=p,p={});var C=this;function U(O){return O=C.postProcess(O,p),m?(setTimeout(function(){m(O)},0),!0):O}r=this.castInput(r,p),f=this.castInput(f,p),r=this.removeEmpty(this.tokenize(r,p)),f=this.removeEmpty(this.tokenize(f,p));var R=f.length,E=r.length,_=1,x=R+E;p.maxEditLength!=null&&(x=Math.min(x,p.maxEditLength));var D=(o=p.timeout)!==null&&o!==void 0?o:1/0,X=Date.now()+D,L=[{oldPos:-1,lastComponent:void 0}],ee=this.extractCommon(L[0],f,r,0,p);if(L[0].oldPos+1>=E&&ee+1>=R)return U(qh(C,L[0].lastComponent,f,r,C.useLongestToken));var I=-1/0,be=1/0;function k(){for(var O=Math.max(I,-_);O<=Math.min(be,_);O+=2){var te=void 0,pe=L[O-1],J=L[O+1];pe&&(L[O-1]=void 0);var ie=!1;if(J){var Ce=J.oldPos-O;ie=J&&0<=Ce&&Ce<R}var Ue=pe&&pe.oldPos+1<E;if(!ie&&!Ue){L[O]=void 0;continue}if(!Ue||ie&&pe.oldPos<J.oldPos?te=C.addToPath(J,!0,!1,0,p):te=C.addToPath(pe,!1,!0,1,p),ee=C.extractCommon(te,f,r,O,p),te.oldPos+1>=E&&ee+1>=R)return U(qh(C,te.lastComponent,f,r,C.useLongestToken));L[O]=te,te.oldPos+1>=E&&(be=Math.min(be,O-1)),ee+1>=R&&(I=Math.max(I,O+1))}_++}if(m)(function O(){setTimeout(function(){if(_>x||Date.now()>X)return m();k()||O()},0)})();else for(;_<=x&&Date.now()<=X;){var P=k();if(P)return P}},addToPath:function(r,f,o,p,m){var C=r.lastComponent;return C&&!m.oneChangePerToken&&C.added===f&&C.removed===o?{oldPos:r.oldPos+p,lastComponent:{count:C.count+1,added:f,removed:o,previousComponent:C.previousComponent}}:{oldPos:r.oldPos+p,lastComponent:{count:1,added:f,removed:o,previousComponent:C}}},extractCommon:function(r,f,o,p,m){for(var C=f.length,U=o.length,R=r.oldPos,E=R-p,_=0;E+1<C&&R+1<U&&this.equals(o[R+1],f[E+1],m);)E++,R++,_++,m.oneChangePerToken&&(r.lastComponent={count:1,previousComponent:r.lastComponent,added:!1,removed:!1});return _&&!m.oneChangePerToken&&(r.lastComponent={count:_,previousComponent:r.lastComponent,added:!1,removed:!1}),r.oldPos=R,E},equals:function(r,f,o){return o.comparator?o.comparator(r,f):r===f||o.ignoreCase&&r.toLowerCase()===f.toLowerCase()},removeEmpty:function(r){for(var f=[],o=0;o<r.length;o++)r[o]&&f.push(r[o]);return f},castInput:function(r){return r},tokenize:function(r){return Array.from(r)},join:function(r){return r.join("")},postProcess:function(r){return r}};function qh(s,r,f,o,p){for(var m=[],C;r;)m.push(r),C=r.previousComponent,delete r.previousComponent,r=C;m.reverse();for(var U=0,R=m.length,E=0,_=0;U<R;U++){var x=m[U];if(x.removed)x.value=s.join(o.slice(_,_+x.count)),_+=x.count;else{if(!x.added&&p){var D=f.slice(E,E+x.count);D=D.map(function(X,L){var ee=o[_+L];return ee.length>X.length?ee:X}),x.value=s.join(D)}else x.value=s.join(f.slice(E,E+x.count));E+=x.count,x.added||(_+=x.count)}}return m}function Bh(s,r){var f;for(f=0;f<s.length&&f<r.length;f++)if(s[f]!=r[f])return s.slice(0,f);return s.slice(0,f)}function Yh(s,r){var f;if(!s||!r||s[s.length-1]!=r[r.length-1])return"";for(f=0;f<s.length&&f<r.length;f++)if(s[s.length-(f+1)]!=r[r.length-(f+1)])return s.slice(-f);return s.slice(-f)}function Qr(s,r,f){if(s.slice(0,r.length)!=r)throw Error("string ".concat(JSON.stringify(s)," doesn't start with prefix ").concat(JSON.stringify(r),"; this is a bug"));return f+s.slice(r.length)}function Zr(s,r,f){if(!r)return s+f;if(s.slice(-r.length)!=r)throw Error("string ".concat(JSON.stringify(s)," doesn't end with suffix ").concat(JSON.stringify(r),"; this is a bug"));return s.slice(0,-r.length)+f}function pu(s,r){return Qr(s,r,"")}function Ki(s,r){return Zr(s,r,"")}function Gh(s,r){return r.slice(0,ax(s,r))}function ax(s,r){var f=0;s.length>r.length&&(f=s.length-r.length);var o=r.length;s.length<r.length&&(o=s.length);var p=Array(o),m=0;p[0]=0;for(var C=1;C<o;C++){for(r[C]==r[m]?p[C]=p[m]:p[C]=m;m>0&&r[C]!=r[m];)m=p[m];r[C]==r[m]&&m++}m=0;for(var U=f;U<s.length;U++){for(;m>0&&s[U]!=r[m];)m=p[m];s[U]==r[m]&&m++}return m}var $i="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",nx=new RegExp("[".concat($i,"]+|\\s+|[^").concat($i,"]"),"ug"),Pi=new fl;Pi.equals=function(s,r,f){return f.ignoreCase&&(s=s.toLowerCase(),r=r.toLowerCase()),s.trim()===r.trim()};Pi.tokenize=function(s){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f;if(r.intlSegmenter){if(r.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');f=Array.from(r.intlSegmenter.segment(s),function(m){return m.segment})}else f=s.match(nx)||[];var o=[],p=null;return f.forEach(function(m){/\s/.test(m)?p==null?o.push(m):o.push(o.pop()+m):/\s/.test(p)?o[o.length-1]==p?o.push(o.pop()+m):o.push(p+m):o.push(m),p=m}),o};Pi.join=function(s){return s.map(function(r,f){return f==0?r:r.replace(/^\s+/,"")}).join("")};Pi.postProcess=function(s,r){if(!s||r.oneChangePerToken)return s;var f=null,o=null,p=null;return s.forEach(function(m){m.added?o=m:m.removed?p=m:((o||p)&&Lh(f,p,o,m),f=m,o=null,p=null)}),(o||p)&&Lh(f,p,o,null),s};function Lh(s,r,f,o){if(r&&f){var p=r.value.match(/^\s*/)[0],m=r.value.match(/\s*$/)[0],C=f.value.match(/^\s*/)[0],U=f.value.match(/\s*$/)[0];if(s){var R=Bh(p,C);s.value=Zr(s.value,C,R),r.value=pu(r.value,R),f.value=pu(f.value,R)}if(o){var E=Yh(m,U);o.value=Qr(o.value,U,E),r.value=Ki(r.value,E),f.value=Ki(f.value,E)}}else if(f)s&&(f.value=f.value.replace(/^\s*/,"")),o&&(o.value=o.value.replace(/^\s*/,""));else if(s&&o){var _=o.value.match(/^\s*/)[0],x=r.value.match(/^\s*/)[0],D=r.value.match(/\s*$/)[0],X=Bh(_,x);r.value=pu(r.value,X);var L=Yh(pu(_,X),D);r.value=Ki(r.value,L),o.value=Qr(o.value,_,L),s.value=Zr(s.value,_,_.slice(0,_.length-L.length))}else if(o){var ee=o.value.match(/^\s*/)[0],I=r.value.match(/\s*$/)[0],be=Gh(I,ee);r.value=Ki(r.value,be)}else if(s){var k=s.value.match(/\s*$/)[0],P=r.value.match(/^\s*/)[0],O=Gh(k,P);r.value=pu(r.value,O)}}var om=new fl;om.tokenize=function(s){var r=new RegExp("(\\r?\\n)|[".concat($i,"]+|[^\\S\\n\\r]+|[^").concat($i,"]"),"ug");return s.match(r)||[]};function ux(s,r,f){return om.diff(s,r,f)}var Wi=new fl;Wi.tokenize=function(s,r){r.stripTrailingCr&&(s=s.replace(/\r\n/g,`
|
|
295
|
+
`));var f=[],o=s.split(/(\n|\r\n)/);o[o.length-1]||o.pop();for(var p=0;p<o.length;p++){var m=o[p];p%2&&!r.newlineIsToken?f[f.length-1]+=m:f.push(m)}return f};Wi.equals=function(s,r,f){return f.ignoreWhitespace?((!f.newlineIsToken||!s.includes(`
|
|
296
|
+
`))&&(s=s.trim()),(!f.newlineIsToken||!r.includes(`
|
|
297
|
+
`))&&(r=r.trim())):f.ignoreNewlineAtEof&&!f.newlineIsToken&&(s.endsWith(`
|
|
298
|
+
`)&&(s=s.slice(0,-1)),r.endsWith(`
|
|
299
|
+
`)&&(r=r.slice(0,-1))),fl.prototype.equals.call(this,s,r,f)};function fm(s,r,f){return Wi.diff(s,r,f)}var ix=new fl;ix.tokenize=function(s){return s.split(/(\S.+?[.!?])(?=\s+|$)/)};var cx=new fl;cx.tokenize=function(s){return s.split(/([{}:;,]|\s+)/)};function Jr(s){"@babel/helpers - typeof";return Jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Jr(s)}var vu=new fl;vu.useLongestToken=!0;vu.tokenize=Wi.tokenize;vu.castInput=function(s,r){var f=r.undefinedReplacement,o=r.stringifyReplacer,p=o===void 0?function(m,C){return typeof C>"u"?f:C}:o;return typeof s=="string"?s:JSON.stringify(Kr(s,null,null,p),p," ")};vu.equals=function(s,r,f){return fl.prototype.equals.call(vu,s.replace(/,([\r\n])/g,"$1"),r.replace(/,([\r\n])/g,"$1"),f)};function Kr(s,r,f,o,p){r=r||[],f=f||[],o&&(s=o(p,s));var m;for(m=0;m<r.length;m+=1)if(r[m]===s)return f[m];var C;if(Object.prototype.toString.call(s)==="[object Array]"){for(r.push(s),C=new Array(s.length),f.push(C),m=0;m<s.length;m+=1)C[m]=Kr(s[m],r,f,o,p);return r.pop(),f.pop(),C}if(s&&s.toJSON&&(s=s.toJSON()),Jr(s)==="object"&&s!==null){r.push(s),C={},f.push(C);var U=[],R;for(R in s)Object.prototype.hasOwnProperty.call(s,R)&&U.push(R);for(U.sort(),m=0;m<U.length;m+=1)R=U[m],C[R]=Kr(s[R],r,f,o,R);r.pop(),f.pop()}else C=s;return C}var Fr=new fl;Fr.tokenize=function(s){return s.slice()};Fr.join=Fr.removeEmpty=function(s){return s};const sx="1.3.1",Lr={chatgpt:128e3,claude:2e5,gemini:1e6},kh={bug_fix:{label:"Fix a Bug",shortDesc:"Find the root cause and repair broken behavior",instruction:"Identify the root cause of the bug described below and make the cleanest minimal fix without breaking existing functionality."},add_feature:{label:"Add a Feature",shortDesc:"Build new functionality matching the existing code style",instruction:"Implement the requested feature cleanly, matching the project architecture, naming conventions, and coding patterns."},improve_code:{label:"Improve Code",shortDesc:"Refactor for clarity, speed, or better structure",instruction:"Refactor and improve the selected code for readability, maintainability, and performance while preserving external behavior."},review_code:{label:"Review Only",shortDesc:"Spot bugs, security risks, or edge cases",instruction:"Review the selected code carefully for bugs, edge cases, and security issues. Only include code edits if fixing clear defects."}};function rx(s){const r=f=>s<=f*.6?"great":s<=f*.88?"tight":"too_large";return{chatgpt:r(Lr.chatgpt),claude:r(Lr.claude),gemini:r(Lr.gemini)}}const Vh="chat2diff_session_token";function ox(){const s=window.location.hash;if(s.startsWith("#token=")){const f=decodeURIComponent(s.slice(7));return sessionStorage.setItem(Vh,f),window.history.replaceState({},"",window.location.pathname+window.location.search),f}const r=sessionStorage.getItem(Vh);return r||""}const dm=ox();async function ol(s,r){const f=await fetch(s,{...r,headers:{"Content-Type":"application/json","X-Chat2Diff-Token":dm,...(r==null?void 0:r.headers)??{}}}),o=await f.json().catch(()=>({}));if(!f.ok||o.data===void 0)throw new Error(o.message||`Request failed (${f.status})`);return o.data}const Xt={getWorkspace:()=>ol("/api/v1/workspace"),listDirectories:s=>ol(`/api/v1/filesystem/list${s?`?dir=${encodeURIComponent(s)}`:""}`),openWorkspace:s=>ol("/api/v1/workspace/open",{method:"POST",body:JSON.stringify({repoPath:s})}),getFileTree:(s=!1)=>ol(`/api/v1/files/tree${s?"?includeGitignored=true":""}`),packContext:s=>ol("/api/v1/pack",{method:"POST",body:JSON.stringify(s)}),parsePatch:(s,r=!1)=>ol("/api/v1/patch/parse",{method:"POST",body:JSON.stringify({rawText:s,includeGitignored:r})}),applyPatch:(s,r,f)=>ol("/api/v1/patch/apply",{method:"POST",body:JSON.stringify({parseId:s,selectedFilePaths:r,customContents:f})}),getHistory:()=>ol("/api/v1/history"),undoSnapshot:s=>ol(`/api/v1/history/${encodeURIComponent(s)}/undo`,{method:"POST"}),toggleWatcher:s=>ol("/api/v1/watcher/toggle",{method:"POST",body:JSON.stringify({enabled:s})})};function fx(s,r){let f=null,o=!1,p=1e3,m=null;const C=()=>{if(o)return;const R=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws?token=${encodeURIComponent(dm)}`;f=new WebSocket(R),f.onopen=()=>{p=1e3,r(!0)},f.onmessage=E=>{try{s(JSON.parse(String(E.data)))}catch{}},f.onclose=()=>{r(!1),o||(m=window.setTimeout(C,p),p=Math.min(p*1.5,6e3))},f.onerror=()=>{f==null||f.close()}};return C(),()=>{o=!0,m&&window.clearTimeout(m),f==null||f.close()}}function dx(s,r){const f=new Blob([r],{type:"text/plain;charset=utf-8"}),o=URL.createObjectURL(f),p=document.createElement("a");p.href=o,p.download=s,document.body.appendChild(p),p.click(),document.body.removeChild(p),URL.revokeObjectURL(o)}function Fi(s){const r=[];for(const f of s)f.type==="file"?r.push(f):f.children&&r.push(...Fi(f.children));return r}function hm(s){return`chat2diff_selection::${s.toLowerCase()}`}function hx(s){if(typeof window>"u"||!s)return[];try{const r=localStorage.getItem(hm(s));if(!r)return[];const f=JSON.parse(r);return Array.isArray(f)?f.filter(o=>typeof o=="string"):[]}catch{return[]}}function yn(s,r){if(!(typeof window>"u"||!s))try{localStorage.setItem(hm(s),JSON.stringify(Array.from(r)))}catch{}}const mm="chat2diff_patch_format",pm="chat2diff_redact_secrets",vm="chat2diff_auto_jump_review",ym="chat2diff_file_bundle_style",xm="chat2diff_include_gitignored";function Xh(){if(typeof window>"u")return null;const s=localStorage.getItem(mm);return s==="unified_diff"||s==="search_replace"?s:null}function mx(){if(typeof window>"u")return!0;const s=localStorage.getItem(pm);return s===null?!0:s==="true"}function px(){if(typeof window>"u")return!0;const s=localStorage.getItem(vm);return s===null?!0:s==="true"}function vx(){return typeof window>"u"?"all_in_one":localStorage.getItem(ym)==="separate_prompt"?"separate_prompt":"all_in_one"}function yx(){return typeof window>"u"?!1:localStorage.getItem(xm)==="true"}function Qh(s,r){const f=fm(s,r);let o=0,p=0;for(const m of f){const C=m.count??0;m.added&&(o+=C),m.removed&&(p+=C)}return{additions:o,deletions:p}}function xn(s,r,f,o){if(!s&&r.size===0&&f.size===0&&o.size===0)return null;const p=Array.from(r),m=Array.from(f).filter(E=>!r.has(E)),C=Array.from(o).filter(E=>!r.has(E)&&!f.has(E)),U=s?s.files.filter(E=>E.status==="ready"&&!r.has(E.filePath)&&!f.has(E.filePath)&&!o.has(E.filePath)).map(E=>E.filePath):[],R=s?s.files.filter(E=>E.status==="failed"||E.status==="blocked").map(E=>({filePath:E.filePath,reason:E.errorReason??"Could not apply cleanly"})):[];return{appliedFiles:p,partiallyAppliedFiles:m,notAppliedFiles:U,failedFiles:R,undoneFiles:C}}const gm=typeof window<"u"&&(localStorage.getItem("chat2diff_theme")==="dark"||!localStorage.getItem("chat2diff_theme")&&window.matchMedia("(prefers-color-scheme: dark)").matches);typeof document<"u"&&document.documentElement.classList.toggle("dark",gm);const la=lx((s,r)=>({activeStep:"prepare",repoPickerOpen:!1,historyDrawerOpen:!1,darkMode:gm,autoJumpToReview:px(),filePanelCollapsed:!1,socketConnected:!1,toasts:[],repoPath:"",repoName:"Loading...",isGitRepo:!1,gitBranch:null,clipboardWatchEnabled:!0,clipboardAvailable:!0,recentRepos:[],fileTree:[],totalFiles:0,skippedSecretsCount:0,skippedBinaryCount:0,gitignoredCount:0,includeGitignored:yx(),changedPaths:[],selectedPaths:new Set,searchQuery:"",isLoadingTree:!1,chatMode:"new_chat",followUpAttachMode:"smart",includeSelectedInFollowUp:!1,turnSync:null,preset:"bug_fix",taskDescription:"",errorLog:"",patchFormatPreference:Xh()??"search_replace",fileBundleStyle:vx(),redactSecrets:mx(),lastPackResult:null,isPacking:!1,rawPasteInput:"",activeParse:null,checkedApplyPaths:new Set,appliedFilePaths:new Set,partiallyAppliedFilePaths:new Set,undoneFilePaths:new Set,appliedFileSnapshots:{},selectedPreviewFile:null,hasUnreadPatch:!1,isParsing:!1,isApplying:!1,snapshots:[],setStep:f=>s(o=>({activeStep:f,hasUnreadPatch:f==="review"?!1:o.hasUnreadPatch})),setRepoPickerOpen:f=>s({repoPickerOpen:f}),setHistoryDrawerOpen:f=>{s({historyDrawerOpen:f}),f&&r().refreshHistory()},toggleDarkMode:()=>s(f=>{const o=!f.darkMode;return document.documentElement.classList.toggle("dark",o),localStorage.setItem("chat2diff_theme",o?"dark":"light"),{darkMode:o}}),toggleAutoJumpToReview:()=>s(f=>{const o=!f.autoJumpToReview;return typeof window<"u"&&localStorage.setItem(vm,String(o)),{autoJumpToReview:o}}),setFilePanelCollapsed:f=>s({filePanelCollapsed:f}),setSocketConnected:f=>s({socketConnected:f}),pushToast:(f,o,p,m)=>{const C=`${Date.now()}_${Math.random().toString(36).slice(2,6)}`;s(U=>({toasts:[...U.toasts.slice(-3),{id:C,tone:f,text:o,undoSnapshotId:p,actionLabel:m==null?void 0:m.label,actionStep:m==null?void 0:m.step}]})),window.setTimeout(()=>{s(U=>({toasts:U.toasts.filter(R=>R.id!==C)}))},p||m?9e3:4500)},dismissToast:f=>s(o=>({toasts:o.toasts.filter(p=>p.id!==f)})),bootstrap:async()=>{try{const f=await Xt.getWorkspace(),o=Xh();s({repoPath:f.repoPath,repoName:f.repoName,isGitRepo:f.isGitRepo,gitBranch:f.gitBranch,clipboardWatchEnabled:f.clipboardWatchEnabled,clipboardAvailable:f.clipboardAvailable,patchFormatPreference:o??f.defaultPatchFormat??r().patchFormatPreference,recentRepos:f.recentRepos}),await Promise.all([r().refreshTree(),r().refreshHistory()])}catch(f){r().pushToast("error",f instanceof Error?f.message:"Failed to connect to server.")}},refreshTree:async(f=!1)=>{f||s({isLoadingTree:!0});try{const o=await Xt.getFileTree(r().includeGitignored),p=new Set(Fi(o.tree).map(R=>R.path)),m=r().selectedPaths,C=m.size>0?Array.from(m):hx(r().repoPath),U=new Set(C.filter(R=>p.has(R)));s({fileTree:o.tree,totalFiles:o.totalFiles,skippedSecretsCount:o.skippedSecretsCount,skippedBinaryCount:o.skippedBinaryCount,gitignoredCount:o.gitignoredCount??0,changedPaths:o.changedPaths??[],selectedPaths:U,isLoadingTree:!1}),yn(r().repoPath,U)}catch(o){s({isLoadingTree:!1}),r().pushToast("error",o instanceof Error?o.message:"Could not scan project files.")}},refreshHistory:async()=>{try{const{snapshots:f}=await Xt.getHistory();s({snapshots:f})}catch{}},switchRepo:async f=>{try{await Xt.openWorkspace(f),s({repoPickerOpen:!1,selectedPaths:new Set,activeParse:null,checkedApplyPaths:new Set,appliedFilePaths:new Set,partiallyAppliedFilePaths:new Set,undoneFilePaths:new Set,appliedFileSnapshots:{},selectedPreviewFile:null,lastPackResult:null,chatMode:"new_chat",turnSync:null,activeStep:"prepare"}),await r().bootstrap(),r().pushToast("success",`Opened project: ${r().repoName}`)}catch(o){r().pushToast("error",o instanceof Error?o.message:"Could not switch project.")}},toggleWatcher:async()=>{const f=!r().clipboardWatchEnabled;try{const o=await Xt.toggleWatcher(f);s({clipboardWatchEnabled:o.enabled,clipboardAvailable:o.available})}catch(o){r().pushToast("error",o instanceof Error?o.message:"Could not toggle watcher.")}},setWatcherStatus:(f,o)=>s({clipboardWatchEnabled:f,clipboardAvailable:o}),setSearchQuery:f=>s({searchQuery:f}),toggleNodeSelection:f=>{const o=new Set(r().selectedPaths);if(f.type==="file")o.has(f.path)?o.delete(f.path):o.add(f.path);else{const p=Fi(f.children??[]),m=p.length>0&&p.every(C=>o.has(C.path));for(const C of p)m?o.delete(C.path):o.add(C.path)}s({selectedPaths:o}),yn(r().repoPath,o)},selectAllFiles:()=>{const f=Fi(r().fileTree).map(p=>p.path),o=new Set(f);s({selectedPaths:o}),yn(r().repoPath,o)},selectChangedFiles:()=>{const f=r().changedPaths;if(f.length===0){r().pushToast("info","No uncommitted Git changes found.");return}const o=new Set(f);s({selectedPaths:o}),yn(r().repoPath,o),r().pushToast("info",`Selected ${f.length} changed file(s).`)},toggleIncludeGitignored:async()=>{const f=!r().includeGitignored;typeof window<"u"&&localStorage.setItem(xm,String(f)),s({includeGitignored:f}),await r().refreshTree()},removePathsFromSelection:f=>{const o=new Set(r().selectedPaths);for(const p of f)o.delete(p);s({selectedPaths:o}),yn(r().repoPath,o)},clearSelection:()=>{s({selectedPaths:new Set}),yn(r().repoPath,new Set)},setChatMode:f=>s({chatMode:f}),setFollowUpAttachMode:f=>s({followUpAttachMode:f,includeSelectedInFollowUp:f==="all"}),setIncludeSelectedInFollowUp:f=>s({includeSelectedInFollowUp:f,followUpAttachMode:f?"all":"smart"}),startNewChat:()=>s({chatMode:"new_chat",followUpAttachMode:"smart",turnSync:null,includeSelectedInFollowUp:!1,lastPackResult:null}),startFollowUpFromReview:()=>{const f=r(),o=xn(f.activeParse,f.appliedFilePaths,f.partiallyAppliedFilePaths,f.undoneFilePaths);s({activeStep:"prepare",chatMode:"follow_up",followUpAttachMode:"smart",includeSelectedInFollowUp:!1,turnSync:o,taskDescription:"",errorLog:"",lastPackResult:null})},clearTurnSync:()=>s({turnSync:null}),setPreset:f=>s({preset:f}),setTaskDescription:f=>s({taskDescription:f}),setErrorLog:f=>s({errorLog:f}),setPatchFormat:f=>{typeof window<"u"&&localStorage.setItem(mm,f),s({patchFormatPreference:f})},setFileBundleStyle:f=>{typeof window<"u"&&localStorage.setItem(ym,f),s({fileBundleStyle:f})},setRedactSecrets:f=>{typeof window<"u"&&localStorage.setItem(pm,String(f)),s({redactSecrets:f})},packContext:async(f,o)=>{const p=r();if(p.chatMode==="new_chat"&&p.selectedPaths.size===0)return p.pushToast("error","Pick at least one file on the left first."),null;if(!p.taskDescription.trim())return p.pushToast("error","Describe what you want the AI to do first."),null;s({isPacking:!0});try{const m=await Xt.packContext({selectedPaths:Array.from(p.selectedPaths),preset:p.preset,taskDescription:p.taskDescription,errorLog:p.errorLog,patchFormatPreference:p.patchFormatPreference,redactSecrets:p.redactSecrets,mode:f,chatMode:p.chatMode,turnSync:p.chatMode==="follow_up"?p.turnSync:null,includeSelectedInFollowUp:p.includeSelectedInFollowUp,followUpAttachMode:p.chatMode==="follow_up"?p.followUpAttachMode:void 0,fileBundleStyle:(o==null?void 0:o.fileBundleStyle)??p.fileBundleStyle,copyFileToClipboard:o==null?void 0:o.copyFileToClipboard});return s({lastPackResult:m,isPacking:!1}),m}catch(m){return s({isPacking:!1}),p.pushToast("error",m instanceof Error?m.message:"Failed to prepare prompt."),null}},setRawPasteInput:f=>s({rawPasteInput:f}),receiveIncomingParse:(f,o)=>{var x;const p=f.files.filter(D=>D.status==="ready").map(D=>D.filePath),m=((x=f.files[0])==null?void 0:x.filePath)??null,{activeStep:C,autoJumpToReview:U}=r(),R=C==="review",E=o&&U&&!R,_=xn(f,new Set,new Set,new Set);s({activeParse:f,checkedApplyPaths:new Set(p),appliedFilePaths:new Set,partiallyAppliedFilePaths:new Set,undoneFilePaths:new Set,appliedFileSnapshots:{},selectedPreviewFile:m,turnSync:_,activeStep:E?"review":C,hasUnreadPatch:o&&!R&&!E}),o&&r().pushToast("info",E?`Loaded AI changes for ${f.summary.totalFiles} file(s) from clipboard.`:`Detected AI changes for ${f.summary.totalFiles} file(s).`,void 0,!R&&!E?{label:"Review Now",step:"review"}:void 0)},parseRawText:async f=>{const o=f.trim();if(!o){r().pushToast("error","Paste the AI reply first.");return}s({isParsing:!0});try{const p=await Xt.parsePatch(o,r().includeGitignored);s({isParsing:!1,activeStep:"review",rawPasteInput:o}),r().receiveIncomingParse(p,!1)}catch(p){s({isParsing:!1}),r().pushToast("error",p instanceof Error?p.message:"Could not parse AI reply.")}},parseManualPaste:async()=>{await r().parseRawText(r().rawPasteInput)},toggleApplyFile:f=>{const o=new Set(r().checkedApplyPaths);o.has(f)?o.delete(f):o.add(f),s({checkedApplyPaths:o})},setAllReadyApply:f=>{const o=r().activeParse;if(!o)return;if(!f){s({checkedApplyPaths:new Set});return}const p=r().appliedFilePaths;s({checkedApplyPaths:new Set(o.files.filter(m=>m.status==="ready"&&!p.has(m.filePath)).map(m=>m.filePath))})},setSelectedPreviewFile:f=>s({selectedPreviewFile:f}),clearActiveParse:()=>s({activeParse:null,checkedApplyPaths:new Set,appliedFilePaths:new Set,partiallyAppliedFilePaths:new Set,undoneFilePaths:new Set,appliedFileSnapshots:{},selectedPreviewFile:null}),applyCheckedFiles:async f=>{const{activeParse:o,checkedApplyPaths:p,appliedFilePaths:m,partiallyAppliedFilePaths:C,undoneFilePaths:U,appliedFileSnapshots:R}=r(),E=Array.from(p).filter(_=>!m.has(_));if(!(!o||E.length===0)){s({isApplying:!0});try{const _=await Xt.applyPatch(o.parseId,E,f),x=new Set(_.appliedFiles),D=new Set(m),X=new Set(C),L=new Set(U),ee={...R},I=new Set(p),be=o.files.map(P=>{if(!x.has(P.filePath))return P;I.delete(P.filePath),L.delete(P.filePath);const O=f==null?void 0:f[P.filePath];if(O!==void 0&&O!==P.proposedContent){X.add(P.filePath);const te=Qh(O,P.proposedContent);return{...P,originalContent:O,...te}}return D.add(P.filePath),X.delete(P.filePath),ee[P.filePath]=_.snapshotId,P}),k={...o,files:be};s({isApplying:!1,activeParse:k,appliedFilePaths:D,partiallyAppliedFilePaths:X,undoneFilePaths:L,appliedFileSnapshots:ee,checkedApplyPaths:I,turnSync:xn(k,D,X,L)}),await Promise.all([r().refreshTree(!0),r().refreshHistory()]),r().pushToast("success",`Applied changes to ${_.appliedFiles.length} file(s).`,_.snapshotId)}catch(_){s({isApplying:!1}),r().pushToast("error",_ instanceof Error?_.message:"Failed to apply changes.")}}},applySingleFile:async(f,o)=>{const{activeParse:p,appliedFilePaths:m}=r();if(!p||m.has(f))return;const C=p.files.find(U=>U.filePath===f);if(!(!C||C.status!=="ready")){if(o!==void 0&&o!==C.proposedContent){await r().applyPartialFileContent(f,o);return}s({isApplying:!0});try{const U=await Xt.applyPatch(p.parseId,[f]),R=new Set(r().appliedFilePaths);R.add(f);const E=new Set(r().partiallyAppliedFilePaths);E.delete(f);const _=new Set(r().undoneFilePaths);_.delete(f);const x=new Set(r().checkedApplyPaths);x.delete(f);const D={...r().appliedFileSnapshots,[f]:U.snapshotId};s({isApplying:!1,appliedFilePaths:R,partiallyAppliedFilePaths:E,undoneFilePaths:_,appliedFileSnapshots:D,checkedApplyPaths:x,turnSync:xn(p,R,E,_)}),await Promise.all([r().refreshTree(!0),r().refreshHistory()]),r().pushToast("success",`Applied ${f}.`,U.snapshotId)}catch(U){s({isApplying:!1}),r().pushToast("error",U instanceof Error?U.message:"Failed to apply file.")}}},applyPartialFileContent:async(f,o)=>{const{activeParse:p}=r();if(!p)return;const m=p.files.find(C=>C.filePath===f);if(!(!m||m.status!=="ready")){s({isApplying:!0});try{const C=await Xt.applyPatch(p.parseId,[f],{[f]:o}),U=o===m.proposedContent,R=U?{additions:0,deletions:0}:Qh(o,m.proposedContent),E=new Set(r().appliedFilePaths),_=new Set(r().partiallyAppliedFilePaths),x=new Set(r().undoneFilePaths),D=new Set(r().checkedApplyPaths),X={...r().appliedFileSnapshots};x.delete(f),U?(E.add(f),_.delete(f),D.delete(f),X[f]=C.snapshotId):_.add(f);const L=p.files.map(I=>I.filePath===f?{...I,originalContent:o,...R}:I),ee={...p,files:L};s({isApplying:!1,activeParse:ee,appliedFilePaths:E,partiallyAppliedFilePaths:_,undoneFilePaths:x,appliedFileSnapshots:X,checkedApplyPaths:D,turnSync:xn(ee,E,_,x)}),await Promise.all([r().refreshTree(!0),r().refreshHistory()]),r().pushToast("success",U?`Applied all changes to ${f}.`:`Applied change block to ${f}.`,C.snapshotId)}catch(C){s({isApplying:!1}),r().pushToast("error",C instanceof Error?C.message:"Failed to apply change.")}}},undoSnapshotById:async f=>{try{const o=await Xt.undoSnapshot(f),p=new Set([...o.restoredFiles,...o.removedCreatedFiles]),m=new Set(r().appliedFilePaths),C=new Set(r().partiallyAppliedFilePaths),U=new Set(r().undoneFilePaths),R={...r().appliedFileSnapshots};for(const _ of p)m.delete(_),C.delete(_),U.add(_),delete R[_];s({appliedFilePaths:m,partiallyAppliedFilePaths:C,undoneFilePaths:U,appliedFileSnapshots:R,turnSync:xn(r().activeParse,m,C,U)});const E=p.size;await Promise.all([r().refreshTree(!0),r().refreshHistory()]),r().pushToast("success",`Restored ${E} file(s) to their previous state.`)}catch(o){r().pushToast("error",o instanceof Error?o.message:"Could not undo snapshot.")}}}));function xx(){const{historyDrawerOpen:s,setHistoryDrawerOpen:r,snapshots:f,undoSnapshotById:o}=la();return s?c.jsx("div",{className:"fixed inset-0 z-50 flex justify-end bg-black/40 backdrop-blur-xs",children:c.jsxs("div",{className:"w-full max-w-md bg-[var(--bg-surface)] h-full shadow-2xl border-l border-[var(--border-default)] flex flex-col",children:[c.jsxs("div",{className:"p-4 border-b border-[var(--border-default)] flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("h2",{className:"text-sm font-semibold",children:"Applied Changes History"}),c.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"Every apply creates a local backup so you can undo safely."})]}),c.jsx("button",{type:"button",onClick:()=>r(!1),className:"p-1.5 rounded-lg hover:bg-[var(--bg-subtle)] cursor-pointer",children:c.jsx(yu,{className:"h-4 w-4"})})]}),c.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-3",children:f.length===0?c.jsx("div",{className:"text-center py-12 text-sm text-[var(--text-muted)]",children:"No changes applied in this project yet."}):f.map(p=>c.jsxs("div",{className:"p-3.5 rounded-xl border border-[var(--border-default)] bg-[var(--bg-canvas)] space-y-2.5",children:[c.jsxs("div",{className:"flex items-start justify-between gap-2",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-sm font-medium",children:p.summary}),c.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:new Date(p.appliedAt).toLocaleString()})]}),p.reverted?c.jsx("span",{className:"text-xs px-2 py-0.5 rounded-full bg-[var(--bg-subtle)] text-[var(--text-muted)]",children:"Undone"}):c.jsxs("button",{type:"button",onClick:()=>void o(p.snapshotId),className:"flex items-center gap-1 px-2.5 py-1 rounded-lg text-xs font-medium border border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-300 hover:bg-amber-500/20 cursor-pointer",children:[c.jsx(Wr,{className:"h-3 w-3"}),"Undo"]})]}),c.jsx("ul",{className:"space-y-1 text-xs font-mono text-[var(--text-secondary)]",children:p.files.map(m=>c.jsxs("li",{className:"truncate",children:[c.jsxs("span",{className:"uppercase text-[10px] mr-1.5 text-[var(--text-muted)]",children:["[",m.action,"]"]}),m.filePath]},m.filePath))})]},p.snapshotId))})]})}):null}function gx(){const{repoPickerOpen:s,setRepoPickerOpen:r,repoPath:f,recentRepos:o,switchRepo:p}=la(),[m,C]=he.useState(null),[U,R]=he.useState(""),[E,_]=he.useState(!1),[x,D]=he.useState(null),X=async L=>{_(!0),D(null);try{const ee=await Xt.listDirectories(L);C(ee),R(ee.currentPath)}catch(ee){D(ee instanceof Error?ee.message:"Unable to open folder.")}finally{_(!1)}};return he.useEffect(()=>{s&&X(f||void 0)},[s,f]),s?c.jsx("div",{className:"fixed inset-0 z-50 bg-black/50 backdrop-blur-xs flex items-center justify-center p-4",children:c.jsxs("div",{className:"bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-2xl w-full max-w-xl max-h-[85vh] flex flex-col shadow-2xl overflow-hidden",children:[c.jsxs("div",{className:"px-5 py-4 border-b border-[var(--border-default)] flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("h2",{className:"text-base font-semibold",children:"Choose Project Folder"}),c.jsx("p",{className:"text-xs text-[var(--text-muted)] mt-0.5",children:"Pick any local folder on your computer to work on with Chat2Diff."})]}),c.jsx("button",{type:"button",onClick:()=>r(!1),className:"p-1.5 rounded-lg hover:bg-[var(--bg-subtle)] cursor-pointer",children:c.jsx(yu,{className:"h-4 w-4"})})]}),c.jsxs("div",{className:"p-4 space-y-4 overflow-y-auto flex-1",children:[o.length>0&&c.jsxs("div",{children:[c.jsx("p",{className:"text-xs font-medium text-[var(--text-muted)] mb-2",children:"Recent Projects"}),c.jsx("div",{className:"flex flex-wrap gap-2",children:o.slice(0,6).map(L=>c.jsx("button",{type:"button",onClick:()=>void p(L.path),className:`px-3 py-1.5 rounded-lg text-xs border transition cursor-pointer ${L.path.toLowerCase()===f.toLowerCase()?"border-blue-500 bg-blue-500/10 text-blue-600 dark:text-blue-400 font-medium":"border-[var(--border-default)] hover:bg-[var(--bg-subtle)]"}`,title:L.path,children:L.name},L.path))})]}),c.jsxs("form",{onSubmit:L=>{L.preventDefault(),X(U)},className:"flex gap-2",children:[c.jsx("input",{type:"text",value:U,onChange:L=>R(L.target.value),placeholder:"Paste or type a folder path...",className:"flex-1 px-3 py-2 text-xs font-mono rounded-lg border border-[var(--border-default)] bg-[var(--bg-canvas)] focus:outline-none focus:ring-2 focus:ring-blue-500"}),c.jsx("button",{type:"submit",className:"px-3 py-2 rounded-lg text-xs font-medium border border-[var(--border-default)] hover:bg-[var(--bg-subtle)] cursor-pointer",children:"Go"})]}),x&&c.jsx("div",{className:"text-xs text-red-600 dark:text-red-400 bg-red-500/10 px-3 py-2 rounded-lg",children:x}),c.jsxs("div",{className:"border border-[var(--border-default)] rounded-lg overflow-hidden",children:[c.jsxs("div",{className:"px-3 py-2 bg-[var(--bg-subtle)] border-b border-[var(--border-default)] flex items-center justify-between gap-2",children:[c.jsx("span",{className:"text-xs font-mono truncate text-[var(--text-secondary)]",children:(m==null?void 0:m.currentPath)??"..."}),(m==null?void 0:m.parentPath)&&c.jsxs("button",{type:"button",onClick:()=>void X(m.parentPath),className:"flex items-center gap-1 text-xs px-2 py-1 rounded border border-[var(--border-default)] bg-[var(--bg-surface)] hover:bg-[var(--bg-canvas)] shrink-0 cursor-pointer",children:[c.jsx(Uy,{className:"h-3 w-3"}),"Up"]})]}),c.jsx("div",{className:"max-h-64 overflow-y-auto divide-y divide-[var(--border-default)]",children:E?c.jsx("div",{className:"p-4 text-xs text-[var(--text-muted)]",children:"Loading folders..."}):m&&m.entries.length>0?m.entries.map(L=>c.jsxs("div",{className:"px-3 py-2 flex items-center justify-between hover:bg-[var(--bg-subtle)] transition",children:[c.jsxs("button",{type:"button",onClick:()=>void X(L.path),className:"flex items-center gap-2 text-sm text-left flex-1 min-w-0 cursor-pointer",children:[L.isGitRepo?c.jsx(um,{className:"h-4 w-4 text-blue-500 shrink-0"}):c.jsx(cm,{className:"h-4 w-4 text-[var(--text-muted)] shrink-0"}),c.jsx("span",{className:"truncate",children:L.name})]}),c.jsx("button",{type:"button",onClick:()=>void p(L.path),className:"ml-2 px-2.5 py-1 rounded text-xs font-medium text-blue-600 dark:text-blue-400 hover:bg-blue-500/10 cursor-pointer",children:"Open"})]},L.path)):c.jsx("div",{className:"p-4 text-xs text-[var(--text-muted)]",children:"No subfolders here."})})]})]}),c.jsxs("div",{className:"px-5 py-3 border-t border-[var(--border-default)] bg-[var(--bg-subtle)] flex items-center justify-between",children:[c.jsxs("span",{className:"text-xs text-[var(--text-muted)] truncate max-w-md",children:["Current folder: ",m==null?void 0:m.currentPath]}),c.jsxs("button",{type:"button",disabled:!m,onClick:()=>m&&void p(m.currentPath),className:"flex items-center gap-1.5 px-4 py-2 rounded-lg text-xs font-medium bg-blue-600 hover:bg-blue-700 text-white disabled:opacity-50 cursor-pointer",children:[c.jsx(Wt,{className:"h-3.5 w-3.5"}),"Use This Folder"]})]})]})}):null}function bm(s){return s.type==="file"?[s.path]:(s.children??[]).flatMap(bm)}function Sm(s){const r=[];for(const f of s)f.type==="directory"&&(r.push(f.path),f.children&&r.push(...Sm(f.children)));return r}function Nm(s,r){if(!r.trim())return s;const f=r.toLowerCase(),o=[];for(const p of s)if(p.type==="file")p.path.toLowerCase().includes(f)&&o.push(p);else{const m=Nm(p.children??[],f);(m.length>0||p.path.toLowerCase().includes(f))&&o.push({...p,children:m.length>0?m:p.children})}return o}function bx({state:s,onChange:r}){const f=he.useRef(null);return he.useEffect(()=>{f.current&&(f.current.indeterminate=s==="indeterminate")},[s]),c.jsx("input",{ref:f,type:"checkbox",checked:s==="checked",onChange:r,className:"h-4 w-4 rounded border-[var(--border-default)] accent-blue-600 cursor-pointer shrink-0"})}function kr({level:s}){return s==="great"?c.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs font-medium bg-emerald-500/10 text-emerald-600 dark:text-emerald-400",children:"Fits easily"}):s==="tight"?c.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs font-medium bg-amber-500/10 text-amber-600 dark:text-amber-400",children:"Tight fit"}):c.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs font-medium bg-red-500/10 text-red-600 dark:text-red-400",children:"Too large"})}function Sx(){const{fileTree:s,totalFiles:r,skippedSecretsCount:f,skippedBinaryCount:o,gitignoredCount:p,includeGitignored:m,changedPaths:C,selectedPaths:U,searchQuery:R,isLoadingTree:E,setSearchQuery:_,toggleNodeSelection:x,selectAllFiles:D,selectChangedFiles:X,toggleIncludeGitignored:L,removePathsFromSelection:ee,clearSelection:I,refreshTree:be,setFilePanelCollapsed:k}=la(),[P,O]=he.useState(new Set);he.useEffect(()=>{s.length!==0&&O(B=>{if(B.size>0)return B;const le=s.filter(we=>we.type==="directory").slice(0,6).map(we=>we.path);return new Set(le)})},[s]);const te=he.useMemo(()=>Nm(s,R),[s,R]),pe=he.useMemo(()=>{const B=new Map,le=we=>{for(const se of we)se.type==="file"?B.set(se.path,se.estimatedTokens):se.children&&le(se.children)};return le(s),B},[s]),J=he.useMemo(()=>{let B=0;for(const le of U)B+=pe.get(le)??0;return B},[U,pe]),ie=he.useMemo(()=>rx(J),[J]),Ce=he.useMemo(()=>{const B=new Map;for(const le of U){const we=le.lastIndexOf("/"),se=we===-1?"(root)":le.slice(0,we),z=B.get(se)??[];z.push(le),B.set(se,z)}return Array.from(B.entries()).sort((le,we)=>we[1].length-le[1].length)},[U]),Ue=B=>{O(le=>{const we=new Set(le);return we.has(B)?we.delete(B):we.add(B),we})},Te=(B,le)=>{const we=bm(B),se=we.filter(F=>U.has(F)).length,z=se===0?"unchecked":se===we.length?"checked":"indeterminate",K=R.trim().length>0||P.has(B.path);return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 py-1.5 px-2 rounded-lg hover:bg-[var(--bg-subtle)] transition text-sm",style:{paddingLeft:`${le*18+8}px`},children:[B.type==="directory"?c.jsx("button",{type:"button",onClick:()=>Ue(B.path),className:"p-0.5 text-[var(--text-muted)] hover:text-[var(--text-primary)] cursor-pointer",children:K?c.jsx(By,{className:"h-4 w-4"}):c.jsx(tm,{className:"h-4 w-4"})}):c.jsx("span",{className:"w-5 shrink-0"}),c.jsx(bx,{state:z,onChange:()=>x(B)}),B.type==="directory"?c.jsxs("button",{type:"button",onClick:()=>Ue(B.path),className:"flex items-center gap-2 flex-1 min-w-0 text-left cursor-pointer",children:[c.jsx(cm,{className:`h-4 w-4 shrink-0 ${B.gitignored?"text-amber-500":"text-blue-500"}`}),c.jsx("span",{className:"font-medium truncate",children:B.name}),B.gitignored&&c.jsx("span",{className:"text-[10px] px-1.5 py-0.2 rounded bg-amber-500/10 text-amber-700 dark:text-amber-300 border border-amber-500/20 shrink-0",children:"ignored"}),c.jsxs("span",{className:"text-xs text-[var(--text-muted)] shrink-0",children:[B.fileCount," ",B.fileCount===1?"file":"files"]})]}):c.jsxs("button",{type:"button",onClick:()=>x(B),className:"flex items-center justify-between gap-2 flex-1 min-w-0 text-left cursor-pointer",children:[c.jsxs("span",{className:"flex items-center gap-2 min-w-0",children:[c.jsx(a1,{className:`h-4 w-4 shrink-0 ${B.gitignored?"text-amber-500":"text-[var(--text-muted)]"}`}),c.jsx("span",{className:"truncate",children:B.name}),B.gitignored&&c.jsx("span",{className:"text-[10px] px-1.5 py-0.2 rounded bg-amber-500/10 text-amber-700 dark:text-amber-300 border border-amber-500/20 shrink-0",children:"ignored"})]}),c.jsxs("span",{className:"text-xs text-[var(--text-muted)] font-mono shrink-0",children:["~",B.estimatedTokens.toLocaleString()," tok"]})]})]}),B.type==="directory"&&K&&B.children&&c.jsx("div",{children:B.children.map(F=>Te(F,le+1))})]},B.path)};return c.jsxs("div",{className:"rounded-xl border border-[var(--border-default)] bg-[var(--bg-surface)] overflow-hidden flex flex-col flex-1 min-h-[420px] lg:max-h-[calc(100vh-148px)]",children:[c.jsxs("div",{className:"p-3.5 border-b border-[var(--border-default)] space-y-2.5 shrink-0",children:[c.jsxs("div",{className:"flex items-center justify-between gap-2",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx("h2",{className:"font-semibold text-sm",children:"Project Files"}),c.jsxs("p",{className:"text-[11px] text-[var(--text-muted)]",children:[U.size," of ",r," selected (~",J.toLocaleString()," tok)"]})]}),c.jsx("button",{type:"button",onClick:()=>k(!0),title:"Hide file tree for more writing space",className:"hidden lg:inline-flex p-1.5 rounded-lg border border-[var(--border-default)] hover:bg-[var(--bg-subtle)] text-[var(--text-muted)] hover:text-[var(--text-primary)] cursor-pointer",children:c.jsx(w1,{className:"h-3.5 w-3.5"})})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[c.jsxs("button",{type:"button",onClick:D,className:"text-[11px] px-2 py-1 rounded-md border border-[var(--border-default)] hover:bg-[var(--bg-subtle)] cursor-pointer",children:["All (",r,")"]}),C.length>0&&c.jsxs("button",{type:"button",onClick:X,title:"Select only uncommitted Git changes",className:"inline-flex items-center gap-1 text-[11px] px-2 py-1 rounded-md border border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300 hover:bg-blue-500/20 cursor-pointer",children:[c.jsx(h1,{className:"h-3 w-3"}),c.jsxs("span",{children:["Changed (",C.length,")"]})]}),c.jsx("button",{type:"button",onClick:I,className:"text-[11px] px-2 py-1 rounded-md border border-[var(--border-default)] hover:bg-[var(--bg-subtle)] cursor-pointer",children:"Clear"}),c.jsxs("button",{type:"button",onClick:()=>void L(),"aria-pressed":m,title:"Show files and folders ignored by .gitignore (node_modules, .git, build outputs, secrets, and binaries stay hidden)",className:`inline-flex items-center gap-1 text-[11px] px-2 py-1 rounded-md border transition cursor-pointer ${m?"border-amber-500/40 bg-amber-500/15 text-amber-700 dark:text-amber-300 hover:bg-amber-500/25":"border-[var(--border-default)] text-[var(--text-secondary)] hover:bg-[var(--bg-subtle)]"}`,children:[m?c.jsx(nm,{className:"h-3 w-3"}):c.jsx(am,{className:"h-3 w-3"}),c.jsx("span",{children:"Show .gitignore"}),m&&p>0&&c.jsxs("span",{className:"opacity-80",children:["(",p,")"]})]}),c.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[c.jsx("button",{type:"button",onClick:()=>O(new Set(Sm(s))),title:"Expand all folders",className:"p-1 rounded-md border border-[var(--border-default)] hover:bg-[var(--bg-subtle)] cursor-pointer",children:c.jsx(Vy,{className:"h-3.5 w-3.5"})}),c.jsx("button",{type:"button",onClick:()=>O(new Set),title:"Collapse all folders",className:"p-1 rounded-md border border-[var(--border-default)] hover:bg-[var(--bg-subtle)] cursor-pointer",children:c.jsx(sm,{className:"h-3.5 w-3.5"})}),c.jsx("button",{type:"button",onClick:()=>void be(),title:"Refresh files from disk",className:"p-1 rounded-md border border-[var(--border-default)] hover:bg-[var(--bg-subtle)] cursor-pointer",children:c.jsx(rm,{className:`h-3.5 w-3.5 ${E?"animate-spin":""}`})})]})]}),c.jsxs("div",{className:"relative",children:[c.jsx(R1,{className:"h-3.5 w-3.5 text-[var(--text-muted)] absolute left-2.5 top-1/2 -translate-y-1/2"}),c.jsx("input",{type:"text",value:R,onChange:B=>_(B.target.value),placeholder:"Filter folders or files...",className:"w-full pl-8 pr-3 py-1.5 text-xs rounded-lg border border-[var(--border-default)] bg-[var(--bg-canvas)] focus:outline-none focus:ring-2 focus:ring-blue-500"})]})]}),c.jsx("div",{className:"p-2 overflow-y-auto flex-1 min-h-0",children:E?c.jsx("div",{className:"p-5 text-xs text-[var(--text-muted)]",children:"Scanning project files..."}):te.length===0?c.jsx("div",{className:"p-6 text-center text-xs text-[var(--text-muted)]",children:"No matching code files found."}):te.map(B=>Te(B,0))}),c.jsxs("div",{className:"p-3 border-t border-[var(--border-default)] bg-[var(--bg-subtle)]/50 space-y-2.5 shrink-0",children:[Ce.length>0&&c.jsx("div",{className:"flex flex-wrap gap-1 max-h-16 overflow-y-auto",children:Ce.map(([B,le])=>c.jsxs("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded bg-[var(--bg-surface)] border border-[var(--border-default)] text-[11px] font-mono",children:[c.jsx("span",{className:"truncate max-w-[130px]",children:B}),c.jsxs("span",{className:"text-[var(--text-muted)]",children:["(",le.length,")"]}),c.jsx("button",{type:"button",onClick:()=>ee(le),className:"text-[var(--text-muted)] hover:text-red-500 cursor-pointer",title:`Remove ${B}`,children:c.jsx(yu,{className:"h-3 w-3"})})]},B))}),c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-1.5 text-[11px]",children:[c.jsxs("span",{className:"text-[var(--text-muted)]",children:["ChatGPT: ",c.jsx(kr,{level:ie.chatgpt})]}),c.jsxs("span",{className:"text-[var(--text-muted)]",children:["Claude: ",c.jsx(kr,{level:ie.claude})]}),c.jsxs("span",{className:"text-[var(--text-muted)]",children:["Gemini: ",c.jsx(kr,{level:ie.gemini})]})]}),c.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] text-[var(--text-muted)]",children:[c.jsx(B1,{className:"h-3.5 w-3.5 text-emerald-600 dark:text-emerald-400 shrink-0"}),c.jsx("span",{className:"truncate",children:m?`Auto-hidden: ${f} secret(s), ${o} binary/large · Showing ${p} .gitignore`:`Auto-hidden: .gitignore, ${f} secret(s), ${o} binary/large`})]})]})]})}function Nx(){const{fileTree:s,selectedPaths:r,filePanelCollapsed:f,chatMode:o,followUpAttachMode:p,turnSync:m,preset:C,taskDescription:U,errorLog:R,patchFormatPreference:E,fileBundleStyle:_,redactSecrets:x,lastPackResult:D,isPacking:X,setFilePanelCollapsed:L,setChatMode:ee,setFollowUpAttachMode:I,startNewChat:be,clearTurnSync:k,setPreset:P,setTaskDescription:O,setErrorLog:te,setPatchFormat:pe,setFileBundleStyle:J,setRedactSecrets:ie,packContext:Ce,setStep:Ue,pushToast:Te}=la(),[B,le]=he.useState(null),[we,se]=he.useState(!1),[z,K]=he.useState(!1);he.useEffect(()=>{se(!1)},[U,R,C,o,p,E,r]);const F=he.useMemo(()=>{let q=0;const G=M=>{for(const ye of M)ye.type==="file"?r.has(ye.path)&&(q+=ye.estimatedTokens):ye.children&&G(ye.children)};return G(s),q},[s,r]),re=o==="follow_up",ne=_==="separate_prompt",Ve=re&&p==="none",We=!Ve&&(re?p==="all"&&(F>18e3||r.size>15):F>18e3||r.size>15),Qt=async()=>{const q=await Ce("inline_copy");if(!q)return;await navigator.clipboard.writeText(q.promptText),le("inline");const G=re?q.stats.attachedFiles.length>0?` (${q.stats.attachedFiles.length} updated/failed file(s) included)`:" (short follow-up, 0 files re-uploaded)":"";Te("success",`Copied prompt!${G} Paste into your AI chat.`),window.setTimeout(()=>le(null),3e3)},y=async()=>{const q=await Ce("file_attachment",{copyFileToClipboard:!0,fileBundleStyle:_});if(q){if(!q.contextFileContent){await navigator.clipboard.writeText(q.promptText),le("inline"),Te("success","All files already in sync (0 attached) — copied the short follow-up prompt!"),window.setTimeout(()=>le(null),3e3);return}q.fileCopiedToClipboard?(le("file"),ne?(se(!0),Te("success",`1. Copied ${q.contextFileName} (${q.stats.attachedFiles.length} file(s))! Paste (Ctrl+V) in AI chat, then click "2. Copy Prompt Text".`)):Te("success",`Copied ${q.contextFileName} (${q.stats.attachedFiles.length} file(s))! Press Ctrl+V in AI chat and send "go".`),window.setTimeout(()=>le(null),3500)):(q.cachedFilePath&&await navigator.clipboard.writeText(q.cachedFilePath).catch(()=>{}),Te("error",q.fileClipboardError??"Could not copy file object to clipboard. Cached path copied — use Copy Path or Save .txt."))}},H=async()=>{const q=we&&D&&D.fileBundleStyle==="separate_prompt"?D:await Ce("file_attachment",{copyFileToClipboard:!1,fileBundleStyle:"separate_prompt"});q&&(await navigator.clipboard.writeText(q.promptText),le("separate_prompt"),Te("success","2. Copied readable prompt text! Paste it alongside your attached file."),window.setTimeout(()=>le(null),3e3))},Z=async()=>{const q=await Ce("file_attachment",{copyFileToClipboard:!1,fileBundleStyle:_});q&&(q.cachedFilePath?(await navigator.clipboard.writeText(q.cachedFilePath),le("path"),Te("success",`Copied single cache file path: ${q.cachedFilePath}`),window.setTimeout(()=>le(null),3e3)):(await navigator.clipboard.writeText(q.promptText),le("inline"),Te("info","All files already in sync (0 attached) — copied short prompt instead."),window.setTimeout(()=>le(null),3e3)))},$=async()=>{const q=await Ce("file_attachment",{copyFileToClipboard:!1,fileBundleStyle:_});q&&(q.contextFileContent?(dx(q.contextFileName,q.contextFileContent),le("download"),ne?(await navigator.clipboard.writeText(q.promptText),se(!0),Te("success",`Saved ${q.contextFileName} & copied the prompt text to your clipboard!`)):Te("success",`Saved ${q.contextFileName}! Upload it to your AI chat and send "go".`)):(await navigator.clipboard.writeText(q.promptText),le("inline"),Te("success","All files already in sync (0 attached) — copied the short follow-up prompt!")),window.setTimeout(()=>le(null),3500))},ve=!!(m&&(m.appliedFiles.length>0||m.partiallyAppliedFiles.length>0||m.notAppliedFiles.length>0||m.failedFiles.length>0||m.undoneFiles.length>0)),oe=!X&&!!U.trim()&&(re||r.size>0);return c.jsxs("div",{className:"rounded-xl border border-[var(--border-default)] bg-[var(--bg-surface)] p-4 sm:p-5 flex flex-col gap-4 flex-1",children:[c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 pb-3 border-b border-[var(--border-default)]",children:[c.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[f&&c.jsxs("button",{type:"button",onClick:()=>L(!1),title:"Show project file picker",className:"inline-flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg border border-[var(--border-default)] bg-[var(--bg-subtle)] hover:border-blue-500/40 text-xs font-medium cursor-pointer",children:[c.jsx(_1,{className:"h-3.5 w-3.5"}),c.jsxs("span",{children:["Files (",r.size,")"]})]}),c.jsxs("div",{children:[c.jsx("h2",{className:"font-semibold text-sm sm:text-base",children:"Describe Your Task & Send"}),c.jsx("p",{className:"text-[11px] text-[var(--text-muted)]",children:re?"Follow-up turn: confirms applied/skipped files so the AI stays in sync without re-uploading everything.":`New chat: packages ${r.size} selected file(s) (~${F.toLocaleString()} tokens).`})]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("div",{className:"inline-flex rounded-lg border border-[var(--border-default)] bg-[var(--bg-canvas)] p-0.5",role:"group","aria-label":"Conversation mode",children:[c.jsxs("button",{type:"button",onClick:()=>be(),className:`inline-flex items-center gap-1 px-2.5 py-1 rounded-md text-xs font-medium transition cursor-pointer ${re?"text-[var(--text-secondary)] hover:text-[var(--text-primary)]":"bg-blue-600 text-white shadow-xs"}`,title:"Send full selected files to start a fresh AI conversation",children:[c.jsx(g1,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"New Chat"})]}),c.jsxs("button",{type:"button",onClick:()=>ee("follow_up"),className:`inline-flex items-center gap-1 px-2.5 py-1 rounded-md text-xs font-medium transition cursor-pointer ${re?"bg-blue-600 text-white shadow-xs":"text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,title:"Continue in the same AI chat without re-uploading unchanged files",children:[c.jsx(rm,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Same Chat (Follow-Up)"})]})]}),(U.trim()||R.trim())&&c.jsx("button",{type:"button",onClick:()=>{O(""),te("")},className:"p-1.5 rounded-lg border border-[var(--border-default)] text-[var(--text-muted)] hover:text-red-500 cursor-pointer",title:"Clear task and error fields",children:c.jsx(Z1,{className:"h-3.5 w-3.5"})})]})]}),re&&c.jsxs("div",{className:"p-3 rounded-xl border border-blue-500/30 bg-blue-500/8 space-y-2",children:[c.jsxs("div",{className:"flex items-start justify-between gap-2",children:[c.jsxs("div",{className:"space-y-1 text-xs",children:[c.jsxs("div",{className:"font-semibold text-blue-700 dark:text-blue-300 flex items-center gap-1.5",children:[c.jsx(Pr,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Grounded Follow-Up Sync"})]}),ve&&m?c.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 text-[11px]",children:[m.appliedFiles.length>0&&c.jsxs("span",{className:"px-2 py-0.5 rounded-full bg-emerald-500/15 text-emerald-700 dark:text-emerald-300 font-medium",children:["✓ ",m.appliedFiles.length," applied"]}),m.partiallyAppliedFiles.length>0&&c.jsxs("span",{className:"px-2 py-0.5 rounded-full bg-blue-500/15 text-blue-700 dark:text-blue-300 font-medium",children:["◐ ",m.partiallyAppliedFiles.length," partial (source attached)"]}),m.notAppliedFiles.length>0&&c.jsxs("span",{className:"px-2 py-0.5 rounded-full bg-[var(--bg-subtle)] text-[var(--text-secondary)] font-medium",children:["⏭ ",m.notAppliedFiles.length," skipped"]}),m.failedFiles.length>0&&c.jsxs("span",{className:"px-2 py-0.5 rounded-full bg-amber-500/15 text-amber-700 dark:text-amber-300 font-medium",children:["⚠ ",m.failedFiles.length," failed (source attached)"]}),m.undoneFiles.length>0&&c.jsxs("span",{className:"px-2 py-0.5 rounded-full bg-red-500/15 text-red-700 dark:text-red-300 font-medium",children:["↺ ",m.undoneFiles.length," undone (source attached)"]})]}):c.jsx("p",{className:"text-[11px] text-[var(--text-secondary)]",children:"Only newly selected or externally edited files will be attached — unchanged files already in your chat are skipped."})]}),ve&&c.jsx("button",{type:"button",onClick:k,className:"p-1 text-[var(--text-muted)] hover:text-[var(--text-primary)] cursor-pointer",title:"Clear previous turn status",children:c.jsx(yu,{className:"h-3.5 w-3.5"})})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2 pt-1",children:[c.jsx("span",{className:"text-[11px] font-medium text-[var(--text-secondary)]",children:"Files to include:"}),c.jsxs("div",{className:"inline-flex rounded-lg border border-[var(--border-default)] bg-[var(--bg-surface)] p-0.5",role:"group","aria-label":"Follow-up file attachment mode",children:[c.jsx("button",{type:"button",onClick:()=>I("smart"),title:"Attach only changed, partial, failed, or undone files",className:`px-2 py-0.5 rounded-md text-[11px] font-medium transition cursor-pointer ${p==="smart"?"bg-blue-600 text-white":"text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,children:"Auto Delta"}),c.jsx("button",{type:"button",onClick:()=>I("none"),title:"Attach 0 files — send only the short follow-up prompt",className:`px-2 py-0.5 rounded-md text-[11px] font-medium transition cursor-pointer ${p==="none"?"bg-blue-600 text-white":"text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,children:"Text Only (0 files)"}),c.jsxs("button",{type:"button",onClick:()=>I("all"),title:"Attach all currently selected files",className:`px-2 py-0.5 rounded-md text-[11px] font-medium transition cursor-pointer ${p==="all"?"bg-blue-600 text-white":"text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,children:["All Selected (",r.size,")"]})]})]})]}),c.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-2",children:Object.keys(kh).map(q=>{const G=kh[q],M=C===q;return c.jsxs("button",{type:"button",onClick:()=>P(q),className:`p-2 rounded-lg border text-left transition cursor-pointer ${M?"border-blue-600 bg-blue-500/10 text-blue-700 dark:text-blue-300":"border-[var(--border-default)] hover:bg-[var(--bg-subtle)]"}`,children:[c.jsx("div",{className:"text-xs font-semibold",children:G.label}),c.jsx("div",{className:"text-[11px] text-[var(--text-muted)] mt-0.5 line-clamp-1",children:G.shortDesc})]},q)})}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-semibold text-[var(--text-secondary)] mb-1",children:re?"What should the AI do next?":"What do you want the AI to do?"}),c.jsx("textarea",{rows:5,value:U,onChange:q=>O(q.target.value),placeholder:re?"Example: That worked! Now add keyboard navigation and fix the error shown below...":"Example: Fix the login button alignment on mobile screens and add a loading spinner while signing in...",className:"w-full p-3 text-sm rounded-lg border border-[var(--border-default)] bg-[var(--bg-canvas)] focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),c.jsxs("div",{children:[c.jsxs("label",{className:"block text-xs font-semibold text-[var(--text-secondary)] mb-1",children:["Paste any error, log, or compiler output"," ",c.jsx("span",{className:"font-normal text-[var(--text-muted)]",children:"(optional)"})]}),c.jsx("textarea",{rows:3,value:R,onChange:q=>te(q.target.value),placeholder:"Paste compiler errors, stack traces, runtime logs, or build output from any language...",className:"w-full p-2.5 text-xs font-mono rounded-lg border border-[var(--border-default)] bg-[var(--bg-canvas)] focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),c.jsxs("div",{className:"pt-2 border-t border-[var(--border-default)] flex flex-col sm:flex-row sm:items-center justify-between gap-2.5",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsx("span",{className:"text-xs font-medium text-[var(--text-secondary)]",children:"AI Reply Format:"}),c.jsxs("div",{className:"inline-flex rounded-lg border border-[var(--border-default)] bg-[var(--bg-canvas)] p-0.5",role:"group","aria-label":"AI reply format",children:[c.jsx("button",{type:"button",onClick:()=>pe("search_replace"),title:"Best accuracy across ChatGPT, Gemini, Claude, and DeepSeek",className:`px-2.5 py-1 rounded-md text-xs font-medium transition cursor-pointer ${E==="search_replace"?"bg-blue-600 text-white shadow-xs":"text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,children:"Search & Replace"}),c.jsx("button",{type:"button",onClick:()=>pe("unified_diff"),title:"Compact unified git diff format",className:`px-2.5 py-1 rounded-md text-xs font-medium transition cursor-pointer ${E==="unified_diff"?"bg-blue-600 text-white shadow-xs":"text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,children:"Unified Git Diff"})]})]}),c.jsxs("label",{className:"inline-flex items-center gap-2 px-2.5 py-1.5 rounded-lg border border-[var(--border-default)] bg-[var(--bg-canvas)] text-xs cursor-pointer select-none self-start sm:self-auto",children:[c.jsx(G1,{className:"h-3.5 w-3.5 text-emerald-600 dark:text-emerald-400 shrink-0"}),c.jsx("span",{children:"Hide API keys"}),c.jsx("input",{type:"checkbox",checked:x,onChange:q=>ie(q.target.checked),className:"h-3.5 w-3.5 accent-blue-600 cursor-pointer"})]})]}),c.jsxs("div",{className:"space-y-2.5 pt-1",children:[c.jsxs("button",{type:"button",disabled:!oe,onClick:()=>void Qt(),className:`w-full py-2.5 px-4 rounded-lg disabled:opacity-40 font-medium text-sm flex items-center justify-center gap-2 transition cursor-pointer ${We?"border border-[var(--border-default)] bg-[var(--bg-subtle)] hover:border-blue-500/50":"bg-blue-600 hover:bg-blue-700 text-white"}`,children:[B==="inline"?c.jsx(Wt,{className:"h-4 w-4"}):c.jsx(lm,{className:"h-4 w-4"}),c.jsx("span",{children:B==="inline"?"Copied! Paste into your AI chat":re?"Copy Grounded Follow-Up Prompt":"Copy Prompt & Code (Text)"}),!We&&B!=="inline"&&c.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-white/20",children:"Best"})]}),c.jsxs("div",{className:`p-3 rounded-xl border space-y-2.5 ${We?"border-blue-500/40 bg-blue-500/5":"border-[var(--border-default)] bg-[var(--bg-canvas)]/70"}`,children:[c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[c.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-medium text-[var(--text-secondary)]",children:[c.jsx(Gr,{className:"h-3.5 w-3.5 text-blue-600 dark:text-blue-400"}),c.jsx("span",{children:"Attach as File"}),c.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-emerald-500/15 text-emerald-700 dark:text-emerald-300 font-medium",children:"0 Downloads bloat"}),We&&c.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-blue-600 text-white font-medium",children:"Recommended"})]}),c.jsxs("div",{className:"inline-flex rounded-lg border border-[var(--border-default)] bg-[var(--bg-surface)] p-0.5",role:"group","aria-label":"File attachment style",children:[c.jsx("button",{type:"button",onClick:()=>{J("all_in_one"),se(!1)},title:"Fastest: puts your task prompt + code together inside 1 file. Paste with Ctrl+V and type 'go'.",className:`px-2 py-0.5 rounded-md text-[11px] font-medium transition cursor-pointer ${ne?"text-[var(--text-secondary)] hover:text-[var(--text-primary)]":"bg-blue-600 text-white"}`,children:"1-Paste Magic"}),c.jsx("button",{type:"button",onClick:()=>{J("separate_prompt"),se(!1)},title:"Cleanest chat history: Step 1 copies the code file, Step 2 copies your readable prompt.",className:`px-2 py-0.5 rounded-md text-[11px] font-medium transition cursor-pointer ${ne?"bg-blue-600 text-white":"text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,children:"Separate File + Prompt"})]})]}),ne?c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:[c.jsxs("button",{type:"button",disabled:!oe||Ve,onClick:()=>void y(),title:Ve?"0 files attached in Text Only mode":"Step 1: Overwrites 1 cached code file and copies it to your clipboard for Ctrl+V",className:`py-2 px-3 rounded-lg disabled:opacity-40 font-medium text-xs flex items-center justify-center gap-1.5 transition cursor-pointer ${We&&!we?"bg-blue-600 hover:bg-blue-700 text-white":"border border-[var(--border-default)] bg-[var(--bg-surface)] hover:border-blue-500/50"}`,children:[B==="file"?c.jsx(Wt,{className:"h-3.5 w-3.5 text-emerald-500"}):c.jsx(Gr,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:B==="file"?"1. File Copied! (Ctrl+V)":"1. Copy Code File (Ctrl+V)"})]}),c.jsxs("button",{type:"button",disabled:!oe,onClick:()=>void H(),title:"Step 2: Copies your readable task prompt so you can paste it alongside the attached file",className:`py-2 px-3 rounded-lg disabled:opacity-40 font-medium text-xs flex items-center justify-center gap-1.5 transition cursor-pointer ${we?"bg-blue-600 hover:bg-blue-700 text-white shadow-xs":"border border-[var(--border-default)] bg-[var(--bg-surface)] hover:border-blue-500/50"}`,children:[B==="separate_prompt"?c.jsx(Wt,{className:"h-3.5 w-3.5"}):c.jsx(c1,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:B==="separate_prompt"?"2. Prompt Copied!":"2. Copy Prompt Text"})]})]}):c.jsxs("button",{type:"button",disabled:!oe||Ve,onClick:()=>void y(),title:Ve?"0 files attached in Text Only mode — use Copy Grounded Follow-Up Prompt above":"Overwrites 1 cached file containing both prompt + code and copies it to your clipboard for Ctrl+V",className:`w-full py-2 px-3.5 rounded-lg disabled:opacity-40 font-medium text-xs sm:text-sm flex items-center justify-center gap-2 transition cursor-pointer ${We?"bg-blue-600 hover:bg-blue-700 text-white":"border border-[var(--border-default)] bg-[var(--bg-surface)] hover:border-blue-500/50"}`,children:[B==="file"?c.jsx(Wt,{className:"h-4 w-4 text-emerald-500"}):c.jsx(Gr,{className:"h-4 w-4"}),c.jsx("span",{children:B==="file"?'File Copied! Press Ctrl+V in AI chat & send "go"':"Copy All-in-One File (Ctrl+V)"})]}),c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 text-[11px] text-[var(--text-muted)]",children:[c.jsx("span",{children:ne?"Step 1: Ctrl+V to attach file. Step 2: Ctrl+V to paste readable prompt.":'Press Ctrl+V in your AI chat to attach, then type "go" and hit Enter.'}),c.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[c.jsxs("button",{type:"button",disabled:!oe||Ve,onClick:()=>void Z(),title:"Copy the path of the single overwritten cache file for any Upload dialog",className:"inline-flex items-center gap-1 hover:text-[var(--text-primary)] disabled:opacity-40 cursor-pointer",children:[B==="path"?c.jsx(Wt,{className:"h-3 w-3 text-emerald-500"}):c.jsx(im,{className:"h-3 w-3"}),c.jsx("span",{children:B==="path"?"Path Copied":"Copy Path"})]}),c.jsx("span",{className:"opacity-40",children:"·"}),c.jsxs("button",{type:"button",disabled:!oe||Ve,onClick:()=>void $(),title:"Fallback: download a .txt copy to your Downloads folder (e.g. to share to mobile)",className:"inline-flex items-center gap-1 hover:text-[var(--text-primary)] disabled:opacity-40 cursor-pointer",children:[B==="download"?c.jsx(Wt,{className:"h-3 w-3 text-emerald-500"}):c.jsx(Iy,{className:"h-3 w-3"}),c.jsx("span",{children:B==="download"?"Saved":"Save .txt"})]})]})]})]})]}),D&&D.warnings.length>0&&c.jsxs("div",{className:"p-3 rounded-lg border border-amber-500/30 bg-amber-500/10 space-y-1",children:[c.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-semibold text-amber-700 dark:text-amber-300",children:[c.jsx(Xr,{className:"h-4 w-4"}),c.jsx("span",{children:"Secret Guard Notice"})]}),D.warnings.map((q,G)=>c.jsxs("p",{className:"text-xs text-amber-800 dark:text-amber-200",children:[q.filePath,": ",q.reason]},G))]}),c.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 pt-1 mt-auto text-xs",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[D&&c.jsxs("button",{type:"button",onClick:()=>K(q=>!q),className:"inline-flex items-center gap-1.5 text-[var(--text-secondary)] hover:text-[var(--text-primary)] cursor-pointer",children:[z?c.jsx(am,{className:"h-3.5 w-3.5"}):c.jsx(nm,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:z?"Hide preview":`Preview prompt (~${D.stats.estimatedTokens.toLocaleString()} tok)`})]}),c.jsx("span",{className:"text-[11px] text-[var(--text-muted)] hidden sm:inline",children:"Copy the AI reply or press Ctrl+V anywhere to review."})]}),c.jsxs("button",{type:"button",onClick:()=>Ue("review"),className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg border border-blue-500/40 text-blue-600 dark:text-blue-400 hover:bg-blue-500/10 font-medium cursor-pointer",children:[c.jsx("span",{children:"Go to Review"}),c.jsx(em,{className:"h-3.5 w-3.5"})]})]}),z&&D&&c.jsx("pre",{className:"p-3 rounded-lg border border-[var(--border-default)] bg-[var(--bg-canvas)] text-[11px] font-mono max-h-52 overflow-auto whitespace-pre-wrap",children:D.promptText})]})}const Zh="chat2diff_diff_view_mode",Jh="chat2diff_diff_wrap_lines",Kh="chat2diff_diff_full_file",Fh=3,$h=500;function Tx(s){return s?(s.endsWith(`
|
|
300
|
+
`)?s.slice(0,-1):s).split(`
|
|
301
|
+
`):[]}function Ph(s,r){const f=fm(s,r),o=[];let p=1,m=1;for(const E of f){const _=Tx(E.value);if(!E.added&&!E.removed){const x=_.map(D=>({type:"ctx",oldNum:p++,newNum:m++,text:D}));o.push({kind:"context",raw:E.value,rows:x})}else{const x=_.map(X=>E.added?{type:"add",oldNum:null,newNum:m++,text:X}:{type:"del",oldNum:p++,newNum:null,text:X}),D=o[o.length-1];D&&D.kind==="hunk"?(E.removed&&(D.oldRaw+=E.value),E.added&&(D.newRaw+=E.value),D.rows.push(...x)):o.push({kind:"hunk",oldRaw:E.removed?E.value:"",newRaw:E.added?E.value:"",rows:x})}}const C=[];for(let E=0;E<o.length;E++){const _=o[E],x=C[C.length-1],D=o[E+1];if(_.kind==="context"&&_.rows.length<=2&&x&&x.kind==="hunk"&&D&&D.kind==="hunk"){x.oldRaw+=_.raw+D.oldRaw,x.newRaw+=_.raw+D.newRaw,x.rows.push(..._.rows,...D.rows),E++;continue}C.push(_)}let U=0,R=0;return C.map(E=>{var I,be;if(E.kind==="context")return{kind:"context",id:R++,raw:E.raw,rows:E.rows};const _=((I=E.rows.find(k=>k.oldNum!==null))==null?void 0:I.oldNum)??1,x=((be=E.rows.find(k=>k.newNum!==null))==null?void 0:be.newNum)??1;let D=0,X=0,L=0,ee=0;for(const k of E.rows)k.type==="add"?(D++,ee++):k.type==="del"?(X++,L++):(L++,ee++);return{kind:"hunk",id:U++,oldRaw:E.oldRaw,newRaw:E.newRaw,oldStart:_,oldCount:L,newStart:x,newCount:ee,additions:D,deletions:X,unifiedRows:E.rows,splitRows:wx(E.rows)}})}function Vr(s,r){return s.map(f=>f.kind==="context"?f.raw:r.has(f.id)?f.newRaw:f.oldRaw).join("")}function wx(s){const r=[];let f=0;for(;f<s.length;){const o=s[f];if(o.type==="ctx")r.push({leftType:"ctx",rightType:"ctx",oldNum:o.oldNum,newNum:o.newNum,leftText:o.text,rightText:o.text,isModifiedPair:!1}),f++;else if(o.type==="del"){const p=[];for(;f<s.length&&s[f].type==="del";)p.push(s[f]),f++;const m=[];for(;f<s.length&&s[f].type==="add";)m.push(s[f]),f++;const C=Math.max(p.length,m.length);for(let U=0;U<C;U++){const R=p[U],E=m[U];r.push({leftType:R?"del":"empty",rightType:E?"add":"empty",oldNum:R?R.oldNum:null,newNum:E?E.newNum:null,leftText:R?R.text:"",rightText:E?E.text:"",isModifiedPair:!!(R&&E)})}}else r.push({leftType:"empty",rightType:"add",oldNum:null,newNum:o.newNum,leftText:"",rightText:o.text,isModifiedPair:!1}),f++}return r}function Wh({oldText:s,newText:r,side:f}){const o=s.length>$h||r.length>$h,p=he.useMemo(()=>o?null:ux(s,r),[s,r,o]);return p?c.jsx(c.Fragment,{children:p.map((m,C)=>!m.added&&!m.removed?c.jsx("span",{children:m.value},C):f==="left"&&m.removed?c.jsx("span",{className:"bg-red-500/35 dark:bg-red-500/40 rounded-[2px] px-0.5 font-semibold text-red-950 dark:text-red-100",children:m.value},C):f==="right"&&m.added?c.jsx("span",{className:"bg-emerald-500/35 dark:bg-emerald-500/40 rounded-[2px] px-0.5 font-semibold text-emerald-950 dark:text-emerald-100",children:m.value},C):null)}):c.jsx(c.Fragment,{children:f==="left"?s:r})}function Ex({file:s,segments:r,isApplied:f,viewMode:o,wrapLines:p,showFullFile:m,skippedHunks:C,isApplying:U,onToggleHunk:R,onApplySingleHunk:E}){const[_,x]=he.useState(new Set);he.useEffect(()=>{x(new Set)},[s.filePath,s.originalContent,m,o]);const D=O=>{x(te=>new Set(te).add(O))},X=r.filter(O=>O.kind==="hunk").length,L=!f&&s.action==="modify"&&X>0;if(s.status==="failed"||s.status==="blocked")return c.jsxs("div",{className:"p-8 text-center space-y-2",children:[c.jsx("div",{className:"inline-flex p-3 rounded-full bg-red-500/10 text-red-600 dark:text-red-400",children:c.jsx(H1,{className:"h-6 w-6"})}),c.jsx("h3",{className:"font-semibold text-sm",children:"Cannot apply this file"}),c.jsx("p",{className:"text-xs text-[var(--text-muted)] max-w-md mx-auto",children:s.errorReason??"An error occurred while validating this diff."})]});const ee=p?"whitespace-pre-wrap [overflow-wrap:anywhere]":"whitespace-pre",I=(O,te,pe=!1)=>c.jsxs("div",{className:`flex leading-5 ${pe?"opacity-45":""} ${O.type==="add"?"bg-emerald-500/15 text-emerald-950 dark:text-emerald-200":O.type==="del"?"bg-red-500/15 text-red-950 dark:text-red-200":"text-[var(--text-secondary)]"}`,children:[c.jsx("span",{className:"w-11 text-right pr-2 py-0.5 text-[11px] text-[var(--text-muted)] bg-[var(--bg-subtle)]/40 border-r border-[var(--border-default)]/50 select-none shrink-0",children:O.oldNum??""}),c.jsx("span",{className:"w-11 text-right pr-2 py-0.5 text-[11px] text-[var(--text-muted)] bg-[var(--bg-subtle)]/40 border-r border-[var(--border-default)]/50 select-none shrink-0",children:O.newNum??""}),c.jsx("span",{className:"w-5 text-center py-0.5 select-none shrink-0 font-bold",children:O.type==="add"?"+":O.type==="del"?"-":" "}),c.jsx("span",{className:`flex-1 min-w-0 pr-3 py-0.5 ${ee}`,children:O.text})]},te),be=(O,te,pe=!1)=>c.jsxs("div",{className:`grid grid-cols-2 divide-x divide-[var(--border-default)] leading-5 ${pe?"opacity-45":""}`,children:[c.jsxs("div",{className:`flex min-w-0 ${O.leftType==="del"?"bg-red-500/15 text-red-950 dark:text-red-200":O.leftType==="empty"?"bg-[var(--bg-subtle)]/50":"text-[var(--text-secondary)]"}`,children:[c.jsx("span",{className:"w-11 text-right pr-2 py-0.5 text-[11px] text-[var(--text-muted)] bg-[var(--bg-subtle)]/40 border-r border-[var(--border-default)]/50 select-none shrink-0",children:O.oldNum??""}),c.jsx("span",{className:"w-5 text-center py-0.5 select-none shrink-0 font-bold",children:O.leftType==="del"?"-":" "}),c.jsx("span",{className:`flex-1 min-w-0 pr-3 py-0.5 ${ee}`,children:O.isModifiedPair?c.jsx(Wh,{oldText:O.leftText,newText:O.rightText,side:"left"}):O.leftText})]}),c.jsxs("div",{className:`flex min-w-0 ${O.rightType==="add"?"bg-emerald-500/15 text-emerald-950 dark:text-emerald-200":O.rightType==="empty"?"bg-[var(--bg-subtle)]/50":"text-[var(--text-secondary)]"}`,children:[c.jsx("span",{className:"w-11 text-right pr-2 py-0.5 text-[11px] text-[var(--text-muted)] bg-[var(--bg-subtle)]/40 border-r border-[var(--border-default)]/50 select-none shrink-0",children:O.newNum??""}),c.jsx("span",{className:"w-5 text-center py-0.5 select-none shrink-0 font-bold",children:O.rightType==="add"?"+":" "}),c.jsx("span",{className:`flex-1 min-w-0 pr-3 py-0.5 ${ee}`,children:O.isModifiedPair?c.jsx(Wh,{oldText:O.leftText,newText:O.rightText,side:"right"}):O.rightText})]})]},te),k=(O,te)=>{const pe=te===0,J=te===r.length-1,ie=m||X===0||_.has(O.id),Ce=(le,we)=>le.map((se,z)=>o==="unified"?I(se,`${we}-${z}`):be({leftType:"ctx",rightType:"ctx",oldNum:se.oldNum,newNum:se.newNum,leftText:se.text,rightText:se.text,isModifiedPair:!1},`${we}-${z}`));if(ie)return c.jsx("div",{children:Ce(O.rows,`ctx-${O.id}`)},`ctx-${O.id}`);const Ue=pe?[]:O.rows.slice(0,Fh),Te=J?[]:O.rows.slice(Math.max(Ue.length,O.rows.length-Fh)),B=O.rows.length-Ue.length-Te.length;return B<=2?c.jsx("div",{children:Ce(O.rows,`ctx-${O.id}`)},`ctx-${O.id}`):c.jsxs("div",{children:[Ue.length>0&&Ce(Ue,`ctx-top-${O.id}`),c.jsxs("button",{type:"button",onClick:()=>D(O.id),className:"w-full py-1 px-4 text-left text-[11px] font-sans text-blue-600 dark:text-blue-400 bg-blue-500/5 hover:bg-blue-500/10 border-y border-[var(--border-default)]/60 cursor-pointer",children:["⋯ Show ",B," unchanged ",B===1?"line":"lines"]}),Te.length>0&&Ce(Te,`ctx-bot-${O.id}`)]},`ctx-${O.id}`)},P=O=>{const te=C.has(O.id);return c.jsxs("div",{className:"border-y border-[var(--border-default)]/80",children:[c.jsxs("div",{className:"px-3 py-1 bg-blue-500/8 dark:bg-blue-500/10 border-b border-[var(--border-default)]/60 flex flex-wrap items-center justify-between gap-2 font-sans",children:[c.jsxs("div",{className:"flex items-center gap-2 text-[11px]",children:[c.jsxs("span",{className:"font-semibold text-blue-700 dark:text-blue-300",children:["Change ",O.id+1," of ",X]}),c.jsxs("span",{className:"font-mono text-[var(--text-muted)]",children:["@@ -",O.oldStart,",",O.oldCount," +",O.newStart,",",O.newCount," @@"]}),c.jsxs("span",{className:"font-mono",children:[c.jsxs("span",{className:"text-emerald-600 dark:text-emerald-400",children:["+",O.additions]})," ",c.jsxs("span",{className:"text-red-600 dark:text-red-400",children:["-",O.deletions]})]})]}),L&&c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("button",{type:"button",onClick:()=>R(O.id),className:`px-2 py-0.5 rounded text-[11px] font-medium border transition cursor-pointer ${te?"border-[var(--border-default)] bg-[var(--bg-surface)] text-[var(--text-muted)] hover:text-[var(--text-primary)]":"border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300 hover:bg-blue-500/20"}`,title:"Include or skip this change block when applying the file",children:te?"Skipped":"Included"}),c.jsxs("button",{type:"button",disabled:U,onClick:()=>E(O.id),className:"inline-flex items-center gap-1 px-2 py-0.5 rounded text-[11px] font-semibold bg-emerald-600 hover:bg-emerald-700 disabled:opacity-40 text-white transition cursor-pointer",title:"Apply only this change block to disk right now",children:[c.jsx(Wt,{className:"h-3 w-3"}),c.jsx("span",{children:"Apply Change"})]})]})]}),o==="unified"?O.unifiedRows.map((pe,J)=>I(pe,`hu-${O.id}-${J}`,te)):O.splitRows.map((pe,J)=>be(pe,`hs-${O.id}-${J}`,te))]},`hunk-${O.id}`)};return X===0&&f?c.jsxs("div",{className:"p-10 text-center space-y-2",children:[c.jsx("div",{className:"inline-flex p-3 rounded-full bg-emerald-500/10 text-emerald-600 dark:text-emerald-400",children:c.jsx(Pr,{className:"h-6 w-6"})}),c.jsx("h3",{className:"font-semibold text-sm",children:"All changes applied to this file"}),c.jsx("p",{className:"text-xs text-[var(--text-muted)]",children:"You can continue reviewing the remaining files on the left or undo from the header."})]}):c.jsx("div",{className:`font-mono text-xs ${p?"w-full":o==="split"?"min-w-[960px] w-max":"min-w-full w-max"}`,children:r.map((O,te)=>O.kind==="context"?k(O,te):P(O))})}function _x(){const{rawPasteInput:s,activeParse:r,checkedApplyPaths:f,appliedFilePaths:o,appliedFileSnapshots:p,selectedPreviewFile:m,clipboardWatchEnabled:C,isParsing:U,isApplying:R,setRawPasteInput:E,parseManualPaste:_,toggleApplyFile:x,setAllReadyApply:D,setSelectedPreviewFile:X,clearActiveParse:L,applyCheckedFiles:ee,applySingleFile:I,applyPartialFileContent:be,undoSnapshotById:k,startFollowUpFromReview:P,pushToast:O}=la(),[te,pe]=he.useState(()=>typeof window>"u"?"split":localStorage.getItem(Zh)==="unified"?"unified":"split"),[J,ie]=he.useState(()=>{if(typeof window>"u")return!0;const M=localStorage.getItem(Jh);return M===null?!0:M==="true"}),[Ce,Ue]=he.useState(()=>typeof window>"u"?!1:localStorage.getItem(Kh)==="true"),[Te,B]=he.useState({});he.useEffect(()=>{B({})},[r==null?void 0:r.parseId]);const le=M=>{pe(M),localStorage.setItem(Zh,M)},we=()=>{ie(M=>{const ye=!M;return localStorage.setItem(Jh,String(ye)),ye})},se=()=>{Ue(M=>{const ye=!M;return localStorage.setItem(Kh,String(ye)),ye})},z=(r==null?void 0:r.files.find(M=>M.filePath===m))??(r==null?void 0:r.files[0])??null,K=r&&z?r.files.findIndex(M=>M.filePath===z.filePath):-1,F=he.useMemo(()=>!z||z.status!=="ready"?[]:Ph(z.originalContent,z.proposedContent),[z]),re=he.useMemo(()=>new Set(z?Te[z.filePath]??[]:[]),[z,Te]),ne=he.useMemo(()=>F.filter(M=>M.kind==="hunk").map(M=>M.id),[F]),Ve=(M,ye)=>{B(ft=>{const Xe=new Set(ft[M]??[]);return Xe.has(ye)?Xe.delete(ye):Xe.add(ye),{...ft,[M]:Array.from(Xe)}})},We=async M=>{if(!z)return;const ye=Vr(F,new Set([M]));await be(z.filePath,ye),B(ft=>({...ft,[z.filePath]:[]}))},Qt=async()=>{if(!z)return;if(z.action!=="modify"||ne.length===0){await I(z.filePath);return}const M=new Set(ne.filter(ye=>!re.has(ye)));if(M.size===0){O("error","Include at least one change block before applying.");return}if(M.size===ne.length)await I(z.filePath);else{const ye=Vr(F,M);await be(z.filePath,ye),B(ft=>({...ft,[z.filePath]:[]}))}},y=async()=>{if(!r)return;const M={};for(const ye of f){const ft=Te[ye];if(!ft||ft.length===0)continue;const Xe=r.files.find(Ie=>Ie.filePath===ye);if(!Xe||Xe.action!=="modify")continue;const ht=Ph(Xe.originalContent,Xe.proposedContent),$e=new Set(ft),ze=new Set(ht.filter(Ie=>Ie.kind==="hunk").map(Ie=>Ie.id).filter(Ie=>!$e.has(Ie)));ze.size>0&&(M[ye]=Vr(ht,ze))}await ee(Object.keys(M).length>0?M:void 0)},H=async()=>{r!=null&&r.retryPrompt&&(await navigator.clipboard.writeText(r.retryPrompt),O("success","Copied fix prompt for failed file(s). Paste it into your AI chat!"))};if(!r)return c.jsx("div",{className:"p-6 max-w-3xl mx-auto w-full flex-1 flex flex-col justify-center items-center",children:c.jsxs("div",{className:"w-full rounded-2xl border border-[var(--border-default)] bg-[var(--bg-surface)] p-6 space-y-4 shadow-sm text-center",children:[c.jsx("div",{className:"mx-auto w-12 h-12 rounded-full bg-blue-500/10 text-blue-600 dark:text-blue-400 flex items-center justify-center",children:c.jsx(Zy,{className:"h-6 w-6"})}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-base font-semibold",children:"Waiting for AI Changes"}),c.jsx("p",{className:"text-xs text-[var(--text-muted)] mt-1 max-w-md mx-auto",children:C?"Copy the reply from any AI chat — Chat2Diff detects it automatically. You can also press Ctrl+V anywhere or paste below.":"Press Ctrl+V anywhere on this page or paste the AI reply below to preview changes safely."})]}),c.jsx("textarea",{rows:8,value:s,onChange:M=>E(M.target.value),placeholder:"Paste code blocks here (SEARCH/REPLACE blocks or Unified Git Diff)...",className:"w-full p-3 font-mono text-xs rounded-lg border border-[var(--border-default)] bg-[var(--bg-canvas)] focus:outline-none focus:ring-2 focus:ring-blue-500"}),c.jsxs("button",{type:"button",disabled:U||!s.trim(),onClick:()=>void _(),className:"w-full py-2.5 px-4 rounded-lg text-xs font-semibold bg-blue-600 hover:bg-blue-700 disabled:opacity-50 text-white transition cursor-pointer flex items-center justify-center gap-2",children:[c.jsx(u1,{className:"h-4 w-4"}),c.jsx("span",{children:U?"Checking changes...":"Preview Changes"})]})]})});const Z=r.files.filter(M=>M.status==="ready"&&!o.has(M.filePath)),$=r.files.filter(M=>o.has(M.filePath)).length,ve=Z.length>0&&Z.every(M=>f.has(M.filePath)),oe=!!(z&&o.has(z.filePath)),q=ne.filter(M=>!re.has(M)).length,G=z?p[z.filePath]:void 0;return c.jsxs("div",{className:"p-6 max-w-7xl mx-auto w-full flex-1 flex flex-col gap-4",children:[c.jsxs("div",{className:"rounded-xl border border-[var(--border-default)] bg-[var(--bg-surface)] px-4 py-3 flex flex-wrap items-center justify-between gap-3",children:[c.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[c.jsx("span",{className:"font-semibold text-sm",children:"Review Changes"}),c.jsxs("span",{className:"px-2 py-0.5 rounded-full bg-emerald-500/15 text-emerald-700 dark:text-emerald-300 font-medium",children:[Z.length," pending"]}),$>0&&c.jsxs("span",{className:"px-2 py-0.5 rounded-full bg-blue-500/15 text-blue-700 dark:text-blue-300 font-medium",children:[$," applied"]}),r.summary.failedCount>0&&c.jsxs("span",{className:"px-2 py-0.5 rounded-full bg-amber-500/15 text-amber-700 dark:text-amber-300 font-medium",children:[r.summary.failedCount," needs retry"]}),r.summary.blockedCount>0&&c.jsxs("span",{className:"px-2 py-0.5 rounded-full bg-red-500/15 text-red-700 dark:text-red-300 font-medium",children:[r.summary.blockedCount," blocked"]})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsx("button",{type:"button",onClick:L,className:"px-3 py-1.5 rounded-lg text-xs border border-[var(--border-default)] hover:bg-[var(--bg-subtle)] cursor-pointer",children:"Paste Another Reply"}),r.retryPrompt&&c.jsxs("button",{type:"button",onClick:()=>void H(),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-300 hover:bg-amber-500/20 cursor-pointer",children:[c.jsx(lm,{className:"h-3.5 w-3.5"}),c.jsxs("span",{children:["Copy Fix Prompt (",r.summary.failedCount,")"]})]}),c.jsxs("button",{type:"button",onClick:P,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border border-blue-500/40 bg-blue-500/10 text-blue-700 dark:text-blue-300 hover:bg-blue-500/20 cursor-pointer",title:"Send exact applied/skipped/failed status to your next turn in the same AI chat",children:[c.jsx("span",{children:"Continue in Same Chat"}),c.jsx(em,{className:"h-3.5 w-3.5"})]}),c.jsxs("button",{type:"button",disabled:R||f.size===0,onClick:()=>void y(),className:"flex items-center gap-1.5 px-4 py-1.5 rounded-lg text-xs font-semibold bg-emerald-600 hover:bg-emerald-700 disabled:opacity-40 text-white transition cursor-pointer",children:[c.jsx(Wt,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:R?"Applying...":`Apply Selected (${f.size}/${Z.length})`})]})]})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-4 flex-1",children:[c.jsxs("div",{className:"lg:col-span-4 xl:col-span-3 rounded-xl border border-[var(--border-default)] bg-[var(--bg-surface)] flex flex-col overflow-hidden",children:[c.jsxs("div",{className:"px-3.5 py-2.5 border-b border-[var(--border-default)] bg-[var(--bg-subtle)] flex items-center justify-between text-xs",children:[c.jsxs("label",{className:"flex items-center gap-2 font-medium cursor-pointer",children:[c.jsx("input",{type:"checkbox",checked:ve,onChange:M=>D(M.target.checked),disabled:Z.length===0,className:"h-3.5 w-3.5 accent-blue-600"}),c.jsx("span",{children:"Select all pending"})]}),c.jsxs("span",{className:"text-[var(--text-muted)]",children:[r.files.length," files"]})]}),c.jsx("div",{className:"overflow-y-auto flex-1 divide-y divide-[var(--border-default)]",children:r.files.map(M=>{const ye=(z==null?void 0:z.filePath)===M.filePath,ft=f.has(M.filePath),Xe=o.has(M.filePath);return c.jsxs("div",{onClick:()=>X(M.filePath),className:`px-3 py-2.5 flex items-start gap-2.5 cursor-pointer transition ${ye?"bg-blue-500/10":"hover:bg-[var(--bg-subtle)]"}`,children:[c.jsx("input",{type:"checkbox",disabled:M.status!=="ready"||Xe,checked:ft,onClick:ht=>ht.stopPropagation(),onChange:()=>x(M.filePath),className:"mt-0.5 h-3.5 w-3.5 accent-blue-600 shrink-0"}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("div",{className:"text-xs font-mono truncate font-medium",children:M.filePath}),c.jsxs("div",{className:"flex items-center gap-2 mt-1 text-[11px]",children:[c.jsx("span",{className:`px-1.5 py-0.2 rounded capitalize inline-flex items-center gap-1 ${Xe?"bg-blue-500/15 text-blue-700 dark:text-blue-300 font-medium":M.status==="ready"?"bg-emerald-500/15 text-emerald-700 dark:text-emerald-300":"bg-red-500/15 text-red-700 dark:text-red-300"}`,children:Xe?c.jsxs(c.Fragment,{children:[c.jsx(Wt,{className:"h-3 w-3"}),"applied"]}):M.status==="ready"?M.action:M.status}),M.status==="ready"&&!Xe&&c.jsxs("span",{className:"font-mono text-[var(--text-muted)]",children:[c.jsxs("span",{className:"text-emerald-600 dark:text-emerald-400",children:["+",M.additions]})," ",c.jsxs("span",{className:"text-red-600 dark:text-red-400",children:["-",M.deletions]})]}),M.securityWarning&&c.jsx("span",{title:M.securityWarning,className:"inline-flex shrink-0",children:c.jsx(Xr,{className:"h-3.5 w-3.5 text-amber-500"})})]})]})]},M.filePath)})})]}),c.jsx("div",{className:"lg:col-span-8 xl:col-span-9 rounded-xl border border-[var(--border-default)] bg-[var(--bg-surface)] flex flex-col overflow-hidden min-h-[420px]",children:z&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"px-3.5 py-2 border-b border-[var(--border-default)] bg-[var(--bg-subtle)] flex flex-wrap items-center justify-between gap-2",children:[c.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[r.files.length>1&&c.jsxs("div",{className:"inline-flex items-center rounded-lg border border-[var(--border-default)] bg-[var(--bg-surface)] overflow-hidden shrink-0",children:[c.jsx("button",{type:"button",disabled:K<=0,onClick:()=>K>0&&X(r.files[K-1].filePath),className:"p-1 hover:bg-[var(--bg-subtle)] disabled:opacity-35 cursor-pointer",title:"Previous file",children:c.jsx(Gy,{className:"h-3.5 w-3.5"})}),c.jsxs("span",{className:"px-1.5 text-[11px] font-mono text-[var(--text-muted)]",children:[K+1,"/",r.files.length]}),c.jsx("button",{type:"button",disabled:K>=r.files.length-1,onClick:()=>K<r.files.length-1&&X(r.files[K+1].filePath),className:"p-1 hover:bg-[var(--bg-subtle)] disabled:opacity-35 cursor-pointer",title:"Next file",children:c.jsx(tm,{className:"h-3.5 w-3.5"})})]}),c.jsx("span",{className:"text-xs font-mono font-medium truncate",children:z.filePath}),z.repairNote&&c.jsxs("span",{className:"inline-flex items-center gap-1 text-[11px] px-2 py-0.5 rounded-full bg-blue-500/15 text-blue-700 dark:text-blue-300",children:[c.jsx(k1,{className:"h-3 w-3"}),z.repairNote]})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[z.status==="ready"&&!oe&&c.jsxs("button",{type:"button",disabled:R||ne.length>0&&q===0,onClick:()=>void Qt(),className:"inline-flex items-center gap-1 px-2.5 py-1 rounded-lg text-xs font-semibold bg-emerald-600 hover:bg-emerald-700 disabled:opacity-40 text-white transition cursor-pointer",children:[c.jsx(Wt,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:ne.length>0&&q<ne.length?`Apply ${q}/${ne.length} Changes`:"Apply This File"})]}),oe&&c.jsxs("div",{className:"inline-flex items-center gap-1.5",children:[c.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 rounded-lg text-xs font-medium bg-blue-500/15 text-blue-700 dark:text-blue-300",children:[c.jsx(Pr,{className:"h-3.5 w-3.5"}),"Applied"]}),G&&c.jsxs("button",{type:"button",onClick:()=>void k(G),className:"inline-flex items-center gap-1 px-2 py-1 rounded-lg text-xs border border-amber-500/40 bg-amber-500/10 text-amber-700 dark:text-amber-300 hover:bg-amber-500/20 cursor-pointer",children:[c.jsx(Wr,{className:"h-3 w-3"}),c.jsx("span",{children:"Undo"})]})]}),c.jsxs("button",{type:"button",onClick:we,className:`flex items-center gap-1 px-2 py-1 rounded-lg text-xs border cursor-pointer ${J?"border-blue-500/40 bg-blue-500/10 text-blue-700 dark:text-blue-300":"border-[var(--border-default)] bg-[var(--bg-surface)] text-[var(--text-secondary)]"}`,title:"Wrap long lines so code never overflows horizontally",children:[c.jsx(F1,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Wrap"})]}),c.jsxs("button",{type:"button",onClick:se,className:"flex items-center gap-1 px-2.5 py-1 rounded-lg text-xs border border-[var(--border-default)] bg-[var(--bg-surface)] hover:bg-[var(--bg-canvas)] text-[var(--text-secondary)] cursor-pointer",title:"Toggle between focused changes only and full file",children:[Ce?c.jsx(sm,{className:"h-3.5 w-3.5"}):c.jsx(y1,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:Ce?"Changes Only":"Full File"})]}),c.jsxs("div",{className:"flex items-center gap-1 rounded-lg border border-[var(--border-default)] bg-[var(--bg-surface)] p-0.5",children:[c.jsxs("button",{type:"button",onClick:()=>le("split"),className:`flex items-center gap-1 px-2 py-1 rounded text-xs cursor-pointer ${te==="split"?"bg-blue-600 text-white":"text-[var(--text-secondary)]"}`,children:[c.jsx($y,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Side-by-Side"})]}),c.jsxs("button",{type:"button",onClick:()=>le("unified"),className:`flex items-center gap-1 px-2 py-1 rounded text-xs cursor-pointer ${te==="unified"?"bg-blue-600 text-white":"text-[var(--text-secondary)]"}`,children:[c.jsx(M1,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Unified"})]})]})]})]}),z.securityWarning&&c.jsxs("div",{className:"px-4 py-2 bg-amber-500/10 border-b border-amber-500/30 text-xs text-amber-800 dark:text-amber-200 flex items-center gap-2",children:[c.jsx(Xr,{className:"h-4 w-4 shrink-0"}),c.jsx("span",{children:z.securityWarning})]}),c.jsx("div",{className:"flex-1 overflow-auto",children:c.jsx(Ex,{file:z,segments:F,isApplied:oe,viewMode:te,wrapLines:J,showFullFile:Ce,skippedHunks:re,isApplying:R,onToggleHunk:M=>Ve(z.filePath,M),onApplySingleHunk:M=>void We(M)})})]})})]})]})}function Cx(){const{repoName:s,isGitRepo:r,gitBranch:f,clipboardWatchEnabled:o,clipboardAvailable:p,autoJumpToReview:m,darkMode:C,snapshots:U,setRepoPickerOpen:R,setHistoryDrawerOpen:E,toggleWatcher:_,toggleAutoJumpToReview:x,toggleDarkMode:D}=la(),X=U.filter(L=>!L.reverted).length;return c.jsxs("header",{className:"border-b border-[var(--border-default)] bg-[var(--bg-surface)] px-4 py-2.5 flex items-center justify-between shrink-0",children:[c.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2 font-bold text-base tracking-tight text-blue-600 dark:text-blue-400 shrink-0",children:[c.jsx(p1,{className:"h-5 w-5"}),c.jsx("span",{children:"Chat2Diff"}),c.jsxs("span",{className:"text-[11px] font-mono font-medium px-1.5 py-0.5 rounded bg-blue-500/10 text-blue-600 dark:text-blue-400",children:["v",sx]})]}),c.jsx("span",{className:"text-[var(--border-default)]",children:"/"}),c.jsxs("button",{type:"button",onClick:()=>R(!0),className:"flex items-center gap-2 px-2.5 py-1.5 rounded-lg border border-[var(--border-default)] bg-[var(--bg-subtle)] hover:border-blue-500/50 transition text-sm font-medium truncate max-w-[260px] sm:max-w-xs cursor-pointer",title:"Click to switch project folder",children:[r?c.jsx(um,{className:"h-4 w-4 text-blue-600 dark:text-blue-400 shrink-0"}):c.jsx(im,{className:"h-4 w-4 text-amber-600 dark:text-amber-400 shrink-0"}),c.jsx("span",{className:"truncate",children:s}),f&&c.jsx("span",{className:"text-xs px-1.5 py-0.5 rounded bg-blue-500/10 text-blue-600 dark:text-blue-400 font-mono shrink-0",children:f})]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("button",{type:"button",onClick:()=>void _(),disabled:!p,className:`hidden sm:flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-medium border transition cursor-pointer ${o&&p?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-[var(--border-default)] bg-[var(--bg-subtle)] text-[var(--text-muted)]"}`,title:p?"Toggle automatic detection when you copy an AI reply":"Clipboard auto-watch unavailable; paste AI replies in Review & Apply",children:[c.jsx(j1,{className:`h-3.5 w-3.5 ${o?"animate-pulse":""}`}),c.jsx("span",{children:p?o?"Listening for AI Replies":"Auto-Listen Paused":"Manual Paste Mode"})]}),c.jsxs("button",{type:"button",onClick:x,className:`hidden md:flex items-center gap-1.5 px-2.5 py-1.5 rounded-full text-xs font-medium border transition cursor-pointer ${m?"border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300":"border-[var(--border-default)] bg-[var(--bg-subtle)] text-[var(--text-muted)]"}`,title:"Automatically switch to Review & Apply when an AI patch is copied to your clipboard",children:[c.jsx(W1,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:m?"Auto-Review On":"Auto-Review Off"})]}),c.jsxs("button",{type:"button",onClick:()=>E(!0),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium border border-[var(--border-default)] bg-[var(--bg-surface)] hover:bg-[var(--bg-subtle)] transition cursor-pointer",children:[c.jsx(Ky,{className:"h-3.5 w-3.5"}),c.jsx("span",{children:"Undo History"}),X>0&&c.jsx("span",{className:"px-1.5 py-0.2 rounded-full bg-blue-600 text-white text-[11px]",children:X})]}),c.jsx("button",{type:"button",onClick:D,"aria-label":"Toggle color theme",className:"p-2 rounded-lg border border-[var(--border-default)] hover:bg-[var(--bg-subtle)] transition cursor-pointer",children:C?c.jsx(X1,{className:"h-4 w-4"}):c.jsx(N1,{className:"h-4 w-4"})})]})]})}const jx=[{id:"prepare",title:"1. Prepare & Send",shortcut:"Alt+1"},{id:"review",title:"2. Review & Apply",shortcut:"Alt+2"}];function Ax(s){return!s||s.length<15?!1:!!(/(?:<[ \t]*){4,12}[ \t]*SEARCH/i.test(s)&&/(?:>[ \t]*){4,12}[ \t]*REPLACE/i.test(s)||/^--- .+\n\+\+\+ .+/m.test(s)&&s.includes("@@")||/^[ \t]*(?:[#*>\s\-\/\d.]*)(?:CREATE FILE|NEW FILE|DELETE FILE|REMOVE FILE)\*{0,2}\s*:/mi.test(s))}function zx(){const{activeStep:s,repoName:r,socketConnected:f,selectedPaths:o,activeParse:p,appliedFilePaths:m,hasUnreadPatch:C,filePanelCollapsed:U,toasts:R,setStep:E,bootstrap:_,receiveIncomingParse:x,parseRawText:D,setWatcherStatus:X,setSocketConnected:L,dismissToast:ee,undoSnapshotById:I}=la();he.useEffect(()=>(_(),fx(P=>{P.type==="PATCH_DETECTED"?x(P.payload.parseResult,!0):P.type==="WATCHER_STATUS"&&X(P.payload.enabled,P.payload.available)},P=>L(P))),[_,x,X,L]),he.useEffect(()=>{const k=P=>{!P.altKey||P.ctrlKey||P.metaKey||(P.key==="1"?(P.preventDefault(),E("prepare")):P.key==="2"&&(P.preventDefault(),E("review")))};return window.addEventListener("keydown",k),()=>window.removeEventListener("keydown",k)},[E]),he.useEffect(()=>{const k=P=>{var J;const O=P.target;if(O&&(O.tagName==="INPUT"||O.tagName==="TEXTAREA"||O.isContentEditable))return;const te=((J=P.clipboardData)==null?void 0:J.getData("text/plain"))??"";if(!te.trim())return;(la.getState().activeStep==="review"||Ax(te))&&(P.preventDefault(),D(te))};return window.addEventListener("paste",k),()=>window.removeEventListener("paste",k)},[D]);const be=p?p.files.filter(k=>k.status==="ready"&&!m.has(k.filePath)).length:0;return c.jsxs("div",{className:"flex flex-col h-screen w-screen overflow-hidden bg-[var(--bg-canvas)] text-[var(--text-primary)]",children:[c.jsx(Cx,{}),r!=="Loading..."&&!f&&c.jsxs("div",{className:"bg-amber-500/15 border-b border-amber-500/30 px-4 py-1.5 text-center text-xs text-amber-800 dark:text-amber-200 shrink-0",children:["Local Chat2Diff server disconnected — re-run ",c.jsx("code",{className:"font-mono font-semibold",children:"npx chat2diff"})," in your terminal to reconnect."]}),c.jsx("nav",{className:"border-b border-[var(--border-default)] bg-[var(--bg-surface)] px-4 py-2 shrink-0",children:c.jsx("div",{className:"max-w-xl mx-auto grid grid-cols-2 gap-2",children:jx.map(k=>{const P=s===k.id;return c.jsxs("button",{type:"button",onClick:()=>E(k.id),title:`Switch view (${k.shortcut})`,className:`py-2 px-3 rounded-lg text-xs sm:text-sm font-medium flex items-center justify-center gap-2 transition cursor-pointer ${P?"bg-blue-600 text-white shadow-xs":"bg-[var(--bg-subtle)] text-[var(--text-secondary)] hover:text-[var(--text-primary)]"}`,children:[c.jsx("span",{children:k.title}),k.id==="prepare"&&o.size>0&&c.jsxs("span",{className:`text-[11px] px-1.5 py-0.5 rounded-full ${P?"bg-white/20 text-white":"bg-blue-500/15 text-blue-600 dark:text-blue-400"}`,children:[o.size," files"]}),k.id==="review"&&be>0&&c.jsxs("span",{className:`text-[11px] px-1.5 py-0.5 rounded-full ${P?"bg-white/20 text-white":"bg-emerald-500/15 text-emerald-700 dark:text-emerald-300"}`,children:[be," pending"]}),k.id==="review"&&C&&c.jsx("span",{className:"h-2 w-2 rounded-full bg-emerald-400 animate-ping"})]},k.id)})})}),c.jsx("main",{className:"flex-1 min-h-0 overflow-y-auto flex flex-col",children:s==="prepare"?c.jsxs("div",{className:"p-4 sm:p-5 max-w-[1440px] mx-auto w-full flex-1 min-h-0 grid grid-cols-1 lg:grid-cols-12 gap-5",children:[!U&&c.jsx("div",{className:"lg:col-span-5 xl:col-span-4 min-h-0 flex flex-col",children:c.jsx(Sx,{})}),c.jsx("div",{className:`${U?"lg:col-span-12 max-w-4xl mx-auto w-full":"lg:col-span-7 xl:col-span-8"} min-h-0 flex flex-col`,children:c.jsx(Nx,{})})]}):c.jsx(_x,{})}),c.jsx(gx,{}),c.jsx(xx,{}),c.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 max-w-sm",children:R.map(k=>c.jsxs("div",{className:`px-4 py-3 rounded-xl shadow-lg border text-xs flex items-center justify-between gap-3 ${k.tone==="success"?"bg-emerald-600 text-white border-emerald-500":k.tone==="error"?"bg-red-600 text-white border-red-500":"bg-[var(--bg-surface)] text-[var(--text-primary)] border-[var(--border-default)]"}`,children:[c.jsx("span",{children:k.text}),c.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[k.actionLabel&&k.actionStep&&c.jsx("button",{type:"button",onClick:()=>{E(k.actionStep),ee(k.id)},className:"px-2.5 py-1 rounded bg-blue-600 hover:bg-blue-700 text-white font-semibold cursor-pointer",children:k.actionLabel}),k.undoSnapshotId&&c.jsxs("button",{type:"button",onClick:()=>{I(k.undoSnapshotId),ee(k.id)},className:"inline-flex items-center gap-1 px-2 py-1 rounded bg-white/20 hover:bg-white/30 font-semibold cursor-pointer",children:[c.jsx(Wr,{className:"h-3 w-3"}),"Undo"]}),c.jsx("button",{type:"button",onClick:()=>ee(k.id),className:"p-0.5 opacity-80 hover:opacity-100 cursor-pointer",children:c.jsx(yu,{className:"h-3.5 w-3.5"})})]})]},k.id))})]})}Ay.createRoot(document.getElementById("root")).render(c.jsx(he.StrictMode,{children:c.jsx(zx,{})}));
|