getgloss 0.15.2 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +1 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/server/daemon.js +1 -1
- package/dist/server/daemon.js.map +1 -1
- package/dist/web/assets/index-CiMXryiH.css +1 -0
- package/dist/web/assets/index-FSUM_0PX.js +327 -0
- package/dist/web/assets/syntax-YwTpDWMQ.js +13 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/index-4L36Eve7.js +0 -322
- package/dist/web/assets/index-C6nlzK2s.css +0 -1
- package/dist/web/assets/syntax-DoK-tYR7.js +0 -13
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))r(h);new MutationObserver(h=>{for(const m of h)if(m.type==="childList")for(const S of m.addedNodes)S.tagName==="LINK"&&S.rel==="modulepreload"&&r(S)}).observe(document,{childList:!0,subtree:!0});function f(h){const m={};return h.integrity&&(m.integrity=h.integrity),h.referrerPolicy&&(m.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?m.credentials="include":h.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function r(h){if(h.ep)return;h.ep=!0;const m=f(h);fetch(h.href,m)}})();function Q3(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Oo={exports:{}},Di={};/**
|
|
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 ad;function Z3(){if(ad)return Di;ad=1;var a=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function f(r,h,m){var S=null;if(m!==void 0&&(S=""+m),h.key!==void 0&&(S=""+h.key),"key"in h){m={};for(var T in h)T!=="key"&&(m[T]=h[T])}else m=h;return h=m.ref,{$$typeof:a,type:r,key:S,ref:h!==void 0?h:null,props:m}}return Di.Fragment=u,Di.jsx=f,Di.jsxs=f,Di}var id;function K3(){return id||(id=1,Oo.exports=Z3()),Oo.exports}var s=K3(),Ho={exports:{}},xe={};/**
|
|
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 cd;function $3(){if(cd)return xe;cd=1;var a=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),S=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),k=Symbol.iterator;function U(v){return v===null||typeof v!="object"?null:(v=k&&v[k]||v["@@iterator"],typeof v=="function"?v:null)}var Y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},re=Object.assign,ve={};function Z(v,C,X){this.props=v,this.context=C,this.refs=ve,this.updater=X||Y}Z.prototype.isReactComponent={},Z.prototype.setState=function(v,C){if(typeof v!="object"&&typeof v!="function"&&v!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,v,C,"setState")},Z.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function he(){}he.prototype=Z.prototype;function me(v,C,X){this.props=v,this.context=C,this.refs=ve,this.updater=X||Y}var $=me.prototype=new he;$.constructor=me,re($,Z.prototype),$.isPureReactComponent=!0;var be=Array.isArray;function Ne(){}var ee={H:null,A:null,T:null,S:null},se=Object.prototype.hasOwnProperty;function je(v,C,X){var F=X.ref;return{$$typeof:a,type:v,key:C,ref:F!==void 0?F:null,props:X}}function Re(v,C){return je(v.type,C,v.props)}function pe(v){return typeof v=="object"&&v!==null&&v.$$typeof===a}function q(v){var C={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(X){return C[X]})}var ue=/\/+/g;function W(v,C){return typeof v=="object"&&v!==null&&v.key!=null?q(""+v.key):C.toString(36)}function fe(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(Ne,Ne):(v.status="pending",v.then(function(C){v.status==="pending"&&(v.status="fulfilled",v.value=C)},function(C){v.status==="pending"&&(v.status="rejected",v.reason=C)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function g(v,C,X,F,G){var V=typeof v;(V==="undefined"||V==="boolean")&&(v=null);var K=!1;if(v===null)K=!0;else switch(V){case"bigint":case"string":case"number":K=!0;break;case"object":switch(v.$$typeof){case a:case u:K=!0;break;case N:return K=v._init,g(K(v._payload),C,X,F,G)}}if(K)return G=G(v),K=F===""?"."+W(v,0):F,be(G)?(X="",K!=null&&(X=K.replace(ue,"$&/")+"/"),g(G,C,X,"",function(it){return it})):G!=null&&(pe(G)&&(G=Re(G,X+(G.key==null||v&&v.key===G.key?"":(""+G.key).replace(ue,"$&/")+"/")+K)),C.push(G)),1;K=0;var ze=F===""?".":F+":";if(be(v))for(var Ae=0;Ae<v.length;Ae++)F=v[Ae],V=ze+W(F,Ae),K+=g(F,C,X,V,G);else if(Ae=U(v),typeof Ae=="function")for(v=Ae.call(v),Ae=0;!(F=v.next()).done;)F=F.value,V=ze+W(F,Ae++),K+=g(F,C,X,V,G);else if(V==="object"){if(typeof v.then=="function")return g(fe(v),C,X,F,G);throw C=String(v),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}return K}function O(v,C,X){if(v==null)return v;var F=[],G=0;return g(v,F,"","",function(V){return C.call(X,V,G++)}),F}function Q(v){if(v._status===-1){var C=v._result;C=C(),C.then(function(X){(v._status===0||v._status===-1)&&(v._status=1,v._result=X)},function(X){(v._status===0||v._status===-1)&&(v._status=2,v._result=X)}),v._status===-1&&(v._status=0,v._result=C)}if(v._status===1)return v._result.default;throw v._result}var te=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var C=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(C))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)},ye={map:O,forEach:function(v,C,X){O(v,function(){C.apply(this,arguments)},X)},count:function(v){var C=0;return O(v,function(){C++}),C},toArray:function(v){return O(v,function(C){return C})||[]},only:function(v){if(!pe(v))throw Error("React.Children.only expected to receive a single React element child.");return v}};return xe.Activity=D,xe.Children=ye,xe.Component=Z,xe.Fragment=f,xe.Profiler=h,xe.PureComponent=me,xe.StrictMode=r,xe.Suspense=E,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ee,xe.__COMPILER_RUNTIME={__proto__:null,c:function(v){return ee.H.useMemoCache(v)}},xe.cache=function(v){return function(){return v.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(v,C,X){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var F=re({},v.props),G=v.key;if(C!=null)for(V in C.key!==void 0&&(G=""+C.key),C)!se.call(C,V)||V==="key"||V==="__self"||V==="__source"||V==="ref"&&C.ref===void 0||(F[V]=C[V]);var V=arguments.length-2;if(V===1)F.children=X;else if(1<V){for(var K=Array(V),ze=0;ze<V;ze++)K[ze]=arguments[ze+2];F.children=K}return je(v.type,G,F)},xe.createContext=function(v){return v={$$typeof:S,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:m,_context:v},v},xe.createElement=function(v,C,X){var F,G={},V=null;if(C!=null)for(F in C.key!==void 0&&(V=""+C.key),C)se.call(C,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(G[F]=C[F]);var K=arguments.length-2;if(K===1)G.children=X;else if(1<K){for(var ze=Array(K),Ae=0;Ae<K;Ae++)ze[Ae]=arguments[Ae+2];G.children=ze}if(v&&v.defaultProps)for(F in K=v.defaultProps,K)G[F]===void 0&&(G[F]=K[F]);return je(v,V,G)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(v){return{$$typeof:T,render:v}},xe.isValidElement=pe,xe.lazy=function(v){return{$$typeof:N,_payload:{_status:-1,_result:v},_init:Q}},xe.memo=function(v,C){return{$$typeof:y,type:v,compare:C===void 0?null:C}},xe.startTransition=function(v){var C=ee.T,X={};ee.T=X;try{var F=v(),G=ee.S;G!==null&&G(X,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(Ne,te)}catch(V){te(V)}finally{C!==null&&X.types!==null&&(C.types=X.types),ee.T=C}},xe.unstable_useCacheRefresh=function(){return ee.H.useCacheRefresh()},xe.use=function(v){return ee.H.use(v)},xe.useActionState=function(v,C,X){return ee.H.useActionState(v,C,X)},xe.useCallback=function(v,C){return ee.H.useCallback(v,C)},xe.useContext=function(v){return ee.H.useContext(v)},xe.useDebugValue=function(){},xe.useDeferredValue=function(v,C){return ee.H.useDeferredValue(v,C)},xe.useEffect=function(v,C){return ee.H.useEffect(v,C)},xe.useEffectEvent=function(v){return ee.H.useEffectEvent(v)},xe.useId=function(){return ee.H.useId()},xe.useImperativeHandle=function(v,C,X){return ee.H.useImperativeHandle(v,C,X)},xe.useInsertionEffect=function(v,C){return ee.H.useInsertionEffect(v,C)},xe.useLayoutEffect=function(v,C){return ee.H.useLayoutEffect(v,C)},xe.useMemo=function(v,C){return ee.H.useMemo(v,C)},xe.useOptimistic=function(v,C){return ee.H.useOptimistic(v,C)},xe.useReducer=function(v,C,X){return ee.H.useReducer(v,C,X)},xe.useRef=function(v){return ee.H.useRef(v)},xe.useState=function(v){return ee.H.useState(v)},xe.useSyncExternalStore=function(v,C,X){return ee.H.useSyncExternalStore(v,C,X)},xe.useTransition=function(){return ee.H.useTransition()},xe.version="19.2.6",xe}var sd;function tr(){return sd||(sd=1,Ho.exports=$3()),Ho.exports}var j=tr();const Hi=Q3(j);var ko={exports:{}},Li={},Uo={exports:{}},Bo={};/**
|
|
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 ud;function J3(){return ud||(ud=1,(function(a){function u(g,O){var Q=g.length;g.push(O);e:for(;0<Q;){var te=Q-1>>>1,ye=g[te];if(0<h(ye,O))g[te]=O,g[Q]=ye,Q=te;else break e}}function f(g){return g.length===0?null:g[0]}function r(g){if(g.length===0)return null;var O=g[0],Q=g.pop();if(Q!==O){g[0]=Q;e:for(var te=0,ye=g.length,v=ye>>>1;te<v;){var C=2*(te+1)-1,X=g[C],F=C+1,G=g[F];if(0>h(X,Q))F<ye&&0>h(G,X)?(g[te]=G,g[F]=Q,te=F):(g[te]=X,g[C]=Q,te=C);else if(F<ye&&0>h(G,Q))g[te]=G,g[F]=Q,te=F;else break e}}return O}function h(g,O){var Q=g.sortIndex-O.sortIndex;return Q!==0?Q:g.id-O.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;a.unstable_now=function(){return m.now()}}else{var S=Date,T=S.now();a.unstable_now=function(){return S.now()-T}}var E=[],y=[],N=1,D=null,k=3,U=!1,Y=!1,re=!1,ve=!1,Z=typeof setTimeout=="function"?setTimeout:null,he=typeof clearTimeout=="function"?clearTimeout:null,me=typeof setImmediate<"u"?setImmediate:null;function $(g){for(var O=f(y);O!==null;){if(O.callback===null)r(y);else if(O.startTime<=g)r(y),O.sortIndex=O.expirationTime,u(E,O);else break;O=f(y)}}function be(g){if(re=!1,$(g),!Y)if(f(E)!==null)Y=!0,Ne||(Ne=!0,q());else{var O=f(y);O!==null&&fe(be,O.startTime-g)}}var Ne=!1,ee=-1,se=5,je=-1;function Re(){return ve?!0:!(a.unstable_now()-je<se)}function pe(){if(ve=!1,Ne){var g=a.unstable_now();je=g;var O=!0;try{e:{Y=!1,re&&(re=!1,he(ee),ee=-1),U=!0;var Q=k;try{t:{for($(g),D=f(E);D!==null&&!(D.expirationTime>g&&Re());){var te=D.callback;if(typeof te=="function"){D.callback=null,k=D.priorityLevel;var ye=te(D.expirationTime<=g);if(g=a.unstable_now(),typeof ye=="function"){D.callback=ye,$(g),O=!0;break t}D===f(E)&&r(E),$(g)}else r(E);D=f(E)}if(D!==null)O=!0;else{var v=f(y);v!==null&&fe(be,v.startTime-g),O=!1}}break e}finally{D=null,k=Q,U=!1}O=void 0}}finally{O?q():Ne=!1}}}var q;if(typeof me=="function")q=function(){me(pe)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,W=ue.port2;ue.port1.onmessage=pe,q=function(){W.postMessage(null)}}else q=function(){Z(pe,0)};function fe(g,O){ee=Z(function(){g(a.unstable_now())},O)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(g){g.callback=null},a.unstable_forceFrameRate=function(g){0>g||125<g?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<g?Math.floor(1e3/g):5},a.unstable_getCurrentPriorityLevel=function(){return k},a.unstable_next=function(g){switch(k){case 1:case 2:case 3:var O=3;break;default:O=k}var Q=k;k=O;try{return g()}finally{k=Q}},a.unstable_requestPaint=function(){ve=!0},a.unstable_runWithPriority=function(g,O){switch(g){case 1:case 2:case 3:case 4:case 5:break;default:g=3}var Q=k;k=g;try{return O()}finally{k=Q}},a.unstable_scheduleCallback=function(g,O,Q){var te=a.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?te+Q:te):Q=te,g){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=Q+ye,g={id:N++,callback:O,priorityLevel:g,startTime:Q,expirationTime:ye,sortIndex:-1},Q>te?(g.sortIndex=Q,u(y,g),f(E)===null&&g===f(y)&&(re?(he(ee),ee=-1):re=!0,fe(be,Q-te))):(g.sortIndex=ye,u(E,g),Y||U||(Y=!0,Ne||(Ne=!0,q()))),g},a.unstable_shouldYield=Re,a.unstable_wrapCallback=function(g){var O=k;return function(){var Q=k;k=O;try{return g.apply(this,arguments)}finally{k=Q}}}})(Bo)),Bo}var od;function F3(){return od||(od=1,Uo.exports=J3()),Uo.exports}var qo={exports:{}},Rt={};/**
|
|
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 rd;function W3(){if(rd)return Rt;rd=1;var a=tr();function u(E){var y="https://react.dev/errors/"+E;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)y+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+E+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var r={d:{f,r:function(){throw Error(u(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},h=Symbol.for("react.portal");function m(E,y,N){var D=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:D==null?null:""+D,children:E,containerInfo:y,implementation:N}}var S=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function T(E,y){if(E==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return Rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Rt.createPortal=function(E,y){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(u(299));return m(E,y,null,N)},Rt.flushSync=function(E){var y=S.T,N=r.p;try{if(S.T=null,r.p=2,E)return E()}finally{S.T=y,r.p=N,r.d.f()}},Rt.preconnect=function(E,y){typeof E=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(E,y))},Rt.prefetchDNS=function(E){typeof E=="string"&&r.d.D(E)},Rt.preinit=function(E,y){if(typeof E=="string"&&y&&typeof y.as=="string"){var N=y.as,D=T(N,y.crossOrigin),k=typeof y.integrity=="string"?y.integrity:void 0,U=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;N==="style"?r.d.S(E,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:D,integrity:k,fetchPriority:U}):N==="script"&&r.d.X(E,{crossOrigin:D,integrity:k,fetchPriority:U,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Rt.preinitModule=function(E,y){if(typeof E=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var N=T(y.as,y.crossOrigin);r.d.M(E,{crossOrigin:N,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(E)},Rt.preload=function(E,y){if(typeof E=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var N=y.as,D=T(N,y.crossOrigin);r.d.L(E,N,{crossOrigin:D,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},Rt.preloadModule=function(E,y){if(typeof E=="string")if(y){var N=T(y.as,y.crossOrigin);r.d.m(E,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:N,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(E)},Rt.requestFormReset=function(E){r.d.r(E)},Rt.unstable_batchedUpdates=function(E,y){return E(y)},Rt.useFormState=function(E,y,N){return S.H.useFormState(E,y,N)},Rt.useFormStatus=function(){return S.H.useHostTransitionStatus()},Rt.version="19.2.6",Rt}var fd;function Kd(){if(fd)return qo.exports;fd=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(u){console.error(u)}}return a(),qo.exports=W3(),qo.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 dd;function I3(){if(dd)return Li;dd=1;var a=F3(),u=tr(),f=Kd();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function S(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 T(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 E(e){if(m(e)!==e)throw Error(r(188))}function y(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,l=t;;){var i=n.return;if(i===null)break;var c=i.alternate;if(c===null){if(l=i.return,l!==null){n=l;continue}break}if(i.child===c.child){for(c=i.child;c;){if(c===n)return E(i),e;if(c===l)return E(i),t;c=c.sibling}throw Error(r(188))}if(n.return!==l.return)n=i,l=c;else{for(var o=!1,d=i.child;d;){if(d===n){o=!0,n=i,l=c;break}if(d===l){o=!0,l=i,n=c;break}d=d.sibling}if(!o){for(d=c.child;d;){if(d===n){o=!0,n=c,l=i;break}if(d===l){o=!0,l=c,n=i;break}d=d.sibling}if(!o)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function N(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=N(e),t!==null)return t;e=e.sibling}return null}var D=Object.assign,k=Symbol.for("react.element"),U=Symbol.for("react.transitional.element"),Y=Symbol.for("react.portal"),re=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),he=Symbol.for("react.consumer"),me=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),be=Symbol.for("react.suspense"),Ne=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),je=Symbol.for("react.activity"),Re=Symbol.for("react.memo_cache_sentinel"),pe=Symbol.iterator;function q(e){return e===null||typeof e!="object"?null:(e=pe&&e[pe]||e["@@iterator"],typeof e=="function"?e:null)}var ue=Symbol.for("react.client.reference");function W(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case re:return"Fragment";case Z:return"Profiler";case ve:return"StrictMode";case be:return"Suspense";case Ne:return"SuspenseList";case je:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Y:return"Portal";case me:return e.displayName||"Context";case he:return(e._context.displayName||"Context")+".Consumer";case $:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ee:return t=e.displayName||null,t!==null?t:W(e.type)||"Memo";case se:t=e._payload,e=e._init;try{return W(e(t))}catch{}}return null}var fe=Array.isArray,g=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},te=[],ye=-1;function v(e){return{current:e}}function C(e){0>ye||(e.current=te[ye],te[ye]=null,ye--)}function X(e,t){ye++,te[ye]=e.current,e.current=t}var F=v(null),G=v(null),V=v(null),K=v(null);function ze(e,t){switch(X(V,t),X(G,e),X(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Tf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Tf(t),e=Mf(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}C(F),X(F,e)}function Ae(){C(F),C(G),C(V)}function it(e){e.memoizedState!==null&&X(K,e);var t=F.current,n=Mf(t,e.type);t!==n&&(X(G,e),X(F,n))}function ft(e){G.current===e&&(C(F),C(G)),K.current===e&&(C(K),Ai._currentValue=Q)}var tt,Mt;function ct(e){if(tt===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);tt=t&&t[1]||"",Mt=-1<n.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+tt+e+Mt}var Dt=!1;function Te(e,t){if(!e||Dt)return"";Dt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(A){var M=A}Reflect.construct(e,[],H)}else{try{H.call()}catch(A){M=A}e.call(H.prototype)}}else{try{throw Error()}catch(A){M=A}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(A){if(A&&M&&typeof A.stack=="string")return[A.stack,M.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),o=c[0],d=c[1];if(o&&d){var p=o.split(`
|
|
44
|
+
`),z=d.split(`
|
|
45
|
+
`);for(i=l=0;l<p.length&&!p[l].includes("DetermineComponentFrameRoot");)l++;for(;i<z.length&&!z[i].includes("DetermineComponentFrameRoot");)i++;if(l===p.length||i===z.length)for(l=p.length-1,i=z.length-1;1<=l&&0<=i&&p[l]!==z[i];)i--;for(;1<=l&&0<=i;l--,i--)if(p[l]!==z[i]){if(l!==1||i!==1)do if(l--,i--,0>i||p[l]!==z[i]){var R=`
|
|
46
|
+
`+p[l].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),R}while(1<=l&&0<=i);break}}}finally{Dt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ct(n):""}function st(e,t){switch(e.tag){case 26:case 27:case 5:return ct(e.type);case 16:return ct("Lazy");case 13:return e.child!==t&&t!==null?ct("Suspense Fallback"):ct("Suspense");case 19:return ct("SuspenseList");case 0:case 15:return Te(e.type,!1);case 11:return Te(e.type.render,!1);case 1:return Te(e.type,!0);case 31:return ct("Activity");default:return""}}function on(e){try{var t="",n=null;do t+=st(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}var yn=Object.prototype.hasOwnProperty,bt=a.unstable_scheduleCallback,B=a.unstable_cancelCallback,ie=a.unstable_shouldYield,Me=a.unstable_requestPaint,ne=a.unstable_now,oe=a.unstable_getCurrentPriorityLevel,dt=a.unstable_ImmediatePriority,ut=a.unstable_UserBlockingPriority,nt=a.unstable_NormalPriority,Jt=a.unstable_LowPriority,rn=a.unstable_IdlePriority,Nn=a.log,Fn=a.unstable_setDisableYieldValue,Ft=null,ht=null;function At(e){if(typeof Nn=="function"&&Fn(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(Ft,e)}catch{}}var Ee=Math.clz32?Math.clz32:Wt,Ct=Math.log,Wn=Math.LN2;function Wt(e){return e>>>=0,e===0?32:31-(Ct(e)/Wn|0)|0}var Cl=256,zn=262144,Tn=4194304;function Mn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function In(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var i=0,c=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var d=l&134217727;return d!==0?(l=d&~c,l!==0?i=Mn(l):(o&=d,o!==0?i=Mn(o):n||(n=d&~e,n!==0&&(i=Mn(n))))):(d=l&~c,d!==0?i=Mn(d):o!==0?i=Mn(o):n||(n=l&~e,n!==0&&(i=Mn(n)))),i===0?0:t!==0&&t!==i&&(t&c)===0&&(c=i&-i,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:i}function An(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Yi(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 Xi(){var e=Tn;return Tn<<=1,(Tn&62914560)===0&&(Tn=4194304),e}function Ba(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _l(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function qa(e,t,n,l,i,c){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var d=e.entanglements,p=e.expirationTimes,z=e.hiddenUpdates;for(n=o&~n;0<n;){var R=31-Ee(n),H=1<<R;d[R]=0,p[R]=-1;var M=z[R];if(M!==null)for(z[R]=null,R=0;R<M.length;R++){var A=M[R];A!==null&&(A.lane&=-536870913)}n&=~H}l!==0&&Qi(e,l,0),c!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=c&~(o&~t))}function Qi(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Ee(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function na(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-Ee(n),i=1<<l;i&t|e[l]&t&&(e[l]|=t),n&=~i}}function Rl(e,t){var n=t&-t;return n=(n&42)!==0?1:Ga(n),(n&(e.suspendedLanes|t))!==0?0:n}function Ga(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 la(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Zi(){var e=O.p;return e!==0?e:(e=window.event,e===void 0?32:Wf(e.type))}function Va(e,t){var n=O.p;try{return O.p=e,t()}finally{O.p=n}}var fn=Math.random().toString(36).slice(2),xt="__reactFiber$"+fn,_t="__reactProps$"+fn,Pn="__reactContainer$"+fn,Ya="__reactEvents$"+fn,ws="__reactListeners$"+fn,Ns="__reactHandles$"+fn,Ki="__reactResources$"+fn,el="__reactMarker$"+fn;function Xa(e){delete e[xt],delete e[_t],delete e[Ya],delete e[ws],delete e[Ns]}function tl(e){var t=e[xt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Pn]||n[xt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Of(e);e!==null;){if(n=e[xt])return n;e=Of(e)}return t}e=n,n=e.parentNode}return null}function nl(e){if(e=e[xt]||e[Pn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Dl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function ll(e){var t=e[Ki];return t||(t=e[Ki]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function mt(e){e[el]=!0}var $i=new Set,Ji={};function Cn(e,t){al(e,t),al(e+"Capture",t)}function al(e,t){for(Ji[e]=t,e=0;e<t.length;e++)$i.add(t[e])}var Fi=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]*$"),Wi={},Ii={};function zs(e){return yn.call(Ii,e)?!0:yn.call(Wi,e)?!1:Fi.test(e)?Ii[e]=!0:(Wi[e]=!0,!1)}function _(e,t,n){if(zs(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function J(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function le(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Be(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ts(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,c.call(this,o)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qa(e){if(!e._valueTracker){var t=gn(e)?"checked":"value";e._valueTracker=Ts(e,t,""+e[t])}}function br(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=gn(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Pi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var B2=/[\n"\\]/g;function It(e){return e.replace(B2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ms(e,t,n,l,i,c,o,d){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Be(t)):e.value!==""+Be(t)&&(e.value=""+Be(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?As(e,o,Be(t)):n!=null?As(e,o,Be(n)):l!=null&&e.removeAttribute("value"),i==null&&c!=null&&(e.defaultChecked=!!c),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Be(d):e.removeAttribute("name")}function xr(e,t,n,l,i,c,o,d){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Qa(e);return}n=n!=null?""+Be(n):"",t=t!=null?""+Be(t):n,d||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=d?e.checked:!!l,e.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Qa(e)}function As(e,t,n){t==="number"&&Pi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function aa(e,t,n,l){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Be(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Sr(e,t,n){if(t!=null&&(t=""+Be(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Be(n):""}function jr(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(r(92));if(fe(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Be(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),Qa(e)}function ia(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var q2=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 Er(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||q2.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function wr(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in t)l=t[i],t.hasOwnProperty(i)&&n[i]!==l&&Er(e,i,l)}else for(var c in t)t.hasOwnProperty(c)&&Er(e,c,t[c])}function Cs(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 G2=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),V2=/^[\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 ec(e){return V2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function _n(){}var _s=null;function Rs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ca=null,sa=null;function Nr(e){var t=nl(e);if(t&&(e=t.stateNode)){var n=e[_t]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ms(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+It(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var i=l[_t]||null;if(!i)throw Error(r(90));Ms(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&br(l)}break e;case"textarea":Sr(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&aa(e,!!n.multiple,t,!1)}}}var Ds=!1;function zr(e,t,n){if(Ds)return e(t,n);Ds=!0;try{var l=e(t);return l}finally{if(Ds=!1,(ca!==null||sa!==null)&&(Gc(),ca&&(t=ca,e=sa,sa=ca=null,Nr(t),e)))for(t=0;t<e.length;t++)Nr(e[t])}}function Za(e,t){var n=e.stateNode;if(n===null)return null;var l=n[_t]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var Rn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ls=!1;if(Rn)try{var Ka={};Object.defineProperty(Ka,"passive",{get:function(){Ls=!0}}),window.addEventListener("test",Ka,Ka),window.removeEventListener("test",Ka,Ka)}catch{Ls=!1}var il=null,Os=null,tc=null;function Tr(){if(tc)return tc;var e,t=Os,n=t.length,l,i="value"in il?il.value:il.textContent,c=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(l=1;l<=o&&t[n-l]===i[c-l];l++);return tc=i.slice(e,1<l?1-l:void 0)}function nc(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 lc(){return!0}function Mr(){return!1}function Ot(e){function t(n,l,i,c,o){this._reactName=n,this._targetInst=i,this.type=l,this.nativeEvent=c,this.target=o,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(n=e[d],this[d]=n?n(c):c[d]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?lc:Mr,this.isPropagationStopped=Mr,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=lc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=lc)},persist:function(){},isPersistent:lc}),t}var Ll={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ac=Ot(Ll),$a=D({},Ll,{view:0,detail:0}),Y2=Ot($a),Hs,ks,Ja,ic=D({},$a,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bs,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!==Ja&&(Ja&&e.type==="mousemove"?(Hs=e.screenX-Ja.screenX,ks=e.screenY-Ja.screenY):ks=Hs=0,Ja=e),Hs)},movementY:function(e){return"movementY"in e?e.movementY:ks}}),Ar=Ot(ic),X2=D({},ic,{dataTransfer:0}),Q2=Ot(X2),Z2=D({},$a,{relatedTarget:0}),Us=Ot(Z2),K2=D({},Ll,{animationName:0,elapsedTime:0,pseudoElement:0}),$2=Ot(K2),J2=D({},Ll,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),F2=Ot(J2),W2=D({},Ll,{data:0}),Cr=Ot(W2),I2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},P2={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"},e4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function t4(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=e4[e])?!!t[e]:!1}function Bs(){return t4}var n4=D({},$a,{key:function(e){if(e.key){var t=I2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?P2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bs,charCode:function(e){return e.type==="keypress"?nc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),l4=Ot(n4),a4=D({},ic,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_r=Ot(a4),i4=D({},$a,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bs}),c4=Ot(i4),s4=D({},Ll,{propertyName:0,elapsedTime:0,pseudoElement:0}),u4=Ot(s4),o4=D({},ic,{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}),r4=Ot(o4),f4=D({},Ll,{newState:0,oldState:0}),d4=Ot(f4),h4=[9,13,27,32],qs=Rn&&"CompositionEvent"in window,Fa=null;Rn&&"documentMode"in document&&(Fa=document.documentMode);var m4=Rn&&"TextEvent"in window&&!Fa,Rr=Rn&&(!qs||Fa&&8<Fa&&11>=Fa),Dr=" ",Lr=!1;function Or(e,t){switch(e){case"keyup":return h4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ua=!1;function p4(e,t){switch(e){case"compositionend":return Hr(t);case"keypress":return t.which!==32?null:(Lr=!0,Dr);case"textInput":return e=t.data,e===Dr&&Lr?null:e;default:return null}}function y4(e,t){if(ua)return e==="compositionend"||!qs&&Or(e,t)?(e=Tr(),tc=Os=il=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 Rr&&t.locale!=="ko"?null:t.data;default:return null}}var g4={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 kr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!g4[e.type]:t==="textarea"}function Ur(e,t,n,l){ca?sa?sa.push(l):sa=[l]:ca=l,t=$c(t,"onChange"),0<t.length&&(n=new ac("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Wa=null,Ia=null;function v4(e){Sf(e,0)}function cc(e){var t=Dl(e);if(br(t))return e}function Br(e,t){if(e==="change")return t}var qr=!1;if(Rn){var Gs;if(Rn){var Vs="oninput"in document;if(!Vs){var Gr=document.createElement("div");Gr.setAttribute("oninput","return;"),Vs=typeof Gr.oninput=="function"}Gs=Vs}else Gs=!1;qr=Gs&&(!document.documentMode||9<document.documentMode)}function Vr(){Wa&&(Wa.detachEvent("onpropertychange",Yr),Ia=Wa=null)}function Yr(e){if(e.propertyName==="value"&&cc(Ia)){var t=[];Ur(t,Ia,e,Rs(e)),zr(v4,t)}}function b4(e,t,n){e==="focusin"?(Vr(),Wa=t,Ia=n,Wa.attachEvent("onpropertychange",Yr)):e==="focusout"&&Vr()}function x4(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cc(Ia)}function S4(e,t){if(e==="click")return cc(t)}function j4(e,t){if(e==="input"||e==="change")return cc(t)}function E4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gt=typeof Object.is=="function"?Object.is:E4;function Pa(e,t){if(Gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var i=n[l];if(!yn.call(t,i)||!Gt(e[i],t[i]))return!1}return!0}function Xr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qr(e,t){var n=Xr(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xr(n)}}function Zr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Pi(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Pi(e.document)}return t}function Ys(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 w4=Rn&&"documentMode"in document&&11>=document.documentMode,oa=null,Xs=null,ei=null,Qs=!1;function $r(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qs||oa==null||oa!==Pi(l)||(l=oa,"selectionStart"in l&&Ys(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ei&&Pa(ei,l)||(ei=l,l=$c(Xs,"onSelect"),0<l.length&&(t=new ac("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=oa)))}function Ol(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ra={animationend:Ol("Animation","AnimationEnd"),animationiteration:Ol("Animation","AnimationIteration"),animationstart:Ol("Animation","AnimationStart"),transitionrun:Ol("Transition","TransitionRun"),transitionstart:Ol("Transition","TransitionStart"),transitioncancel:Ol("Transition","TransitionCancel"),transitionend:Ol("Transition","TransitionEnd")},Zs={},Jr={};Rn&&(Jr=document.createElement("div").style,"AnimationEvent"in window||(delete ra.animationend.animation,delete ra.animationiteration.animation,delete ra.animationstart.animation),"TransitionEvent"in window||delete ra.transitionend.transition);function Hl(e){if(Zs[e])return Zs[e];if(!ra[e])return e;var t=ra[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Jr)return Zs[e]=t[n];return e}var Fr=Hl("animationend"),Wr=Hl("animationiteration"),Ir=Hl("animationstart"),N4=Hl("transitionrun"),z4=Hl("transitionstart"),T4=Hl("transitioncancel"),Pr=Hl("transitionend"),e1=new Map,Ks="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ks.push("scrollEnd");function dn(e,t){e1.set(e,t),Cn(t,[e])}var sc=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)},Pt=[],fa=0,$s=0;function uc(){for(var e=fa,t=$s=fa=0;t<e;){var n=Pt[t];Pt[t++]=null;var l=Pt[t];Pt[t++]=null;var i=Pt[t];Pt[t++]=null;var c=Pt[t];if(Pt[t++]=null,l!==null&&i!==null){var o=l.pending;o===null?i.next=i:(i.next=o.next,o.next=i),l.pending=i}c!==0&&t1(n,i,c)}}function oc(e,t,n,l){Pt[fa++]=e,Pt[fa++]=t,Pt[fa++]=n,Pt[fa++]=l,$s|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Js(e,t,n,l){return oc(e,t,n,l),rc(e)}function kl(e,t){return oc(e,null,null,t),rc(e)}function t1(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var i=!1,c=e.return;c!==null;)c.childLanes|=n,l=c.alternate,l!==null&&(l.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(i=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,i&&t!==null&&(i=31-Ee(n),e=c.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=n|536870912),c):null}function rc(e){if(50<ji)throw ji=0,ao=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var da={};function M4(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vt(e,t,n,l){return new M4(e,t,n,l)}function Fs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dn(e,t){var n=e.alternate;return n===null?(n=Vt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function n1(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function fc(e,t,n,l,i,c){var o=0;if(l=e,typeof e=="function")Fs(e)&&(o=1);else if(typeof e=="string")o=D3(e,n,F.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case je:return e=Vt(31,n,t,i),e.elementType=je,e.lanes=c,e;case re:return Ul(n.children,i,c,t);case ve:o=8,i|=24;break;case Z:return e=Vt(12,n,t,i|2),e.elementType=Z,e.lanes=c,e;case be:return e=Vt(13,n,t,i),e.elementType=be,e.lanes=c,e;case Ne:return e=Vt(19,n,t,i),e.elementType=Ne,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case me:o=10;break e;case he:o=9;break e;case $:o=11;break e;case ee:o=14;break e;case se:o=16,l=null;break e}o=29,n=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=Vt(o,n,t,i),t.elementType=e,t.type=l,t.lanes=c,t}function Ul(e,t,n,l){return e=Vt(7,e,l,t),e.lanes=n,e}function Ws(e,t,n){return e=Vt(6,e,null,t),e.lanes=n,e}function l1(e){var t=Vt(18,null,null,0);return t.stateNode=e,t}function Is(e,t,n){return t=Vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var a1=new WeakMap;function en(e,t){if(typeof e=="object"&&e!==null){var n=a1.get(e);return n!==void 0?n:(t={value:e,source:t,stack:on(t)},a1.set(e,t),t)}return{value:e,source:t,stack:on(t)}}var ha=[],ma=0,dc=null,ti=0,tn=[],nn=0,cl=null,vn=1,bn="";function Ln(e,t){ha[ma++]=ti,ha[ma++]=dc,dc=e,ti=t}function i1(e,t,n){tn[nn++]=vn,tn[nn++]=bn,tn[nn++]=cl,cl=e;var l=vn;e=bn;var i=32-Ee(l)-1;l&=~(1<<i),n+=1;var c=32-Ee(t)+i;if(30<c){var o=i-i%5;c=(l&(1<<o)-1).toString(32),l>>=o,i-=o,vn=1<<32-Ee(t)+i|n<<i|l,bn=c+e}else vn=1<<c|n<<i|l,bn=e}function Ps(e){e.return!==null&&(Ln(e,1),i1(e,1,0))}function eu(e){for(;e===dc;)dc=ha[--ma],ha[ma]=null,ti=ha[--ma],ha[ma]=null;for(;e===cl;)cl=tn[--nn],tn[nn]=null,bn=tn[--nn],tn[nn]=null,vn=tn[--nn],tn[nn]=null}function c1(e,t){tn[nn++]=vn,tn[nn++]=bn,tn[nn++]=cl,vn=t.id,bn=t.overflow,cl=e}var Et=null,Fe=null,Oe=!1,sl=null,ln=!1,tu=Error(r(519));function ul(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ni(en(t,e)),tu}function s1(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[xt]=e,t[_t]=l,n){case"dialog":_e("cancel",t),_e("close",t);break;case"iframe":case"object":case"embed":_e("load",t);break;case"video":case"audio":for(n=0;n<wi.length;n++)_e(wi[n],t);break;case"source":_e("error",t);break;case"img":case"image":case"link":_e("error",t),_e("load",t);break;case"details":_e("toggle",t);break;case"input":_e("invalid",t),xr(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":_e("invalid",t);break;case"textarea":_e("invalid",t),jr(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||Nf(t.textContent,n)?(l.popover!=null&&(_e("beforetoggle",t),_e("toggle",t)),l.onScroll!=null&&_e("scroll",t),l.onScrollEnd!=null&&_e("scrollend",t),l.onClick!=null&&(t.onclick=_n),t=!0):t=!1,t||ul(e,!0)}function u1(e){for(Et=e.return;Et;)switch(Et.tag){case 5:case 31:case 13:ln=!1;return;case 27:case 3:ln=!0;return;default:Et=Et.return}}function pa(e){if(e!==Et)return!1;if(!Oe)return u1(e),Oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||xo(e.type,e.memoizedProps)),n=!n),n&&Fe&&ul(e),u1(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Fe=Lf(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Fe=Lf(e)}else t===27?(t=Fe,jl(e.type)?(e=No,No=null,Fe=e):Fe=t):Fe=Et?cn(e.stateNode.nextSibling):null;return!0}function Bl(){Fe=Et=null,Oe=!1}function nu(){var e=sl;return e!==null&&(Bt===null?Bt=e:Bt.push.apply(Bt,e),sl=null),e}function ni(e){sl===null?sl=[e]:sl.push(e)}var lu=v(null),ql=null,On=null;function ol(e,t,n){X(lu,t._currentValue),t._currentValue=n}function Hn(e){e._currentValue=lu.current,C(lu)}function au(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function iu(e,t,n,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var c=i.dependencies;if(c!==null){var o=i.child;c=c.firstContext;e:for(;c!==null;){var d=c;c=i;for(var p=0;p<t.length;p++)if(d.context===t[p]){c.lanes|=n,d=c.alternate,d!==null&&(d.lanes|=n),au(c.return,n,e),l||(o=null);break e}c=d.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(r(341));o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),au(o,n,e),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function ya(e,t,n,l){e=null;for(var i=t,c=!1;i!==null;){if(!c){if((i.flags&524288)!==0)c=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(r(387));if(o=o.memoizedProps,o!==null){var d=i.type;Gt(i.pendingProps.value,o.value)||(e!==null?e.push(d):e=[d])}}else if(i===K.current){if(o=i.alternate,o===null)throw Error(r(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Ai):e=[Ai])}i=i.return}e!==null&&iu(t,e,n,l),t.flags|=262144}function hc(e){for(e=e.firstContext;e!==null;){if(!Gt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Gl(e){ql=e,On=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function wt(e){return o1(ql,e)}function mc(e,t){return ql===null&&Gl(e),o1(e,t)}function o1(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},On===null){if(e===null)throw Error(r(308));On=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else On=On.next=t;return n}var A4=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},C4=a.unstable_scheduleCallback,_4=a.unstable_NormalPriority,pt={$$typeof:me,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cu(){return{controller:new A4,data:new Map,refCount:0}}function li(e){e.refCount--,e.refCount===0&&C4(_4,function(){e.controller.abort()})}var ai=null,su=0,ga=0,va=null;function R4(e,t){if(ai===null){var n=ai=[];su=0,ga=ro(),va={status:"pending",value:void 0,then:function(l){n.push(l)}}}return su++,t.then(r1,r1),t}function r1(){if(--su===0&&ai!==null){va!==null&&(va.status="fulfilled");var e=ai;ai=null,ga=0,va=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function D4(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),l}var f1=g.S;g.S=function(e,t){$0=ne(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&R4(e,t),f1!==null&&f1(e,t)};var Vl=v(null);function uu(){var e=Vl.current;return e!==null?e:Je.pooledCache}function pc(e,t){t===null?X(Vl,Vl.current):X(Vl,t.pool)}function d1(){var e=uu();return e===null?null:{parent:pt._currentValue,pool:e}}var ba=Error(r(460)),ou=Error(r(474)),yc=Error(r(542)),gc={then:function(){}};function h1(e){return e=e.status,e==="fulfilled"||e==="rejected"}function m1(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(_n,_n),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,y1(e),e;default:if(typeof t.status=="string")t.then(_n,_n);else{if(e=Je,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,y1(e),e}throw Xl=t,ba}}function Yl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Xl=n,ba):n}}var Xl=null;function p1(){if(Xl===null)throw Error(r(459));var e=Xl;return Xl=null,e}function y1(e){if(e===ba||e===yc)throw Error(r(483))}var xa=null,ii=0;function vc(e){var t=ii;return ii+=1,xa===null&&(xa=[]),m1(xa,e,t)}function ci(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function bc(e,t){throw t.$$typeof===k?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function g1(e){function t(x,b){if(e){var w=x.deletions;w===null?(x.deletions=[b],x.flags|=16):w.push(b)}}function n(x,b){if(!e)return null;for(;b!==null;)t(x,b),b=b.sibling;return null}function l(x){for(var b=new Map;x!==null;)x.key!==null?b.set(x.key,x):b.set(x.index,x),x=x.sibling;return b}function i(x,b){return x=Dn(x,b),x.index=0,x.sibling=null,x}function c(x,b,w){return x.index=w,e?(w=x.alternate,w!==null?(w=w.index,w<b?(x.flags|=67108866,b):w):(x.flags|=67108866,b)):(x.flags|=1048576,b)}function o(x){return e&&x.alternate===null&&(x.flags|=67108866),x}function d(x,b,w,L){return b===null||b.tag!==6?(b=Ws(w,x.mode,L),b.return=x,b):(b=i(b,w),b.return=x,b)}function p(x,b,w,L){var ce=w.type;return ce===re?R(x,b,w.props.children,L,w.key):b!==null&&(b.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===se&&Yl(ce)===b.type)?(b=i(b,w.props),ci(b,w),b.return=x,b):(b=fc(w.type,w.key,w.props,null,x.mode,L),ci(b,w),b.return=x,b)}function z(x,b,w,L){return b===null||b.tag!==4||b.stateNode.containerInfo!==w.containerInfo||b.stateNode.implementation!==w.implementation?(b=Is(w,x.mode,L),b.return=x,b):(b=i(b,w.children||[]),b.return=x,b)}function R(x,b,w,L,ce){return b===null||b.tag!==7?(b=Ul(w,x.mode,L,ce),b.return=x,b):(b=i(b,w),b.return=x,b)}function H(x,b,w){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=Ws(""+b,x.mode,w),b.return=x,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case U:return w=fc(b.type,b.key,b.props,null,x.mode,w),ci(w,b),w.return=x,w;case Y:return b=Is(b,x.mode,w),b.return=x,b;case se:return b=Yl(b),H(x,b,w)}if(fe(b)||q(b))return b=Ul(b,x.mode,w,null),b.return=x,b;if(typeof b.then=="function")return H(x,vc(b),w);if(b.$$typeof===me)return H(x,mc(x,b),w);bc(x,b)}return null}function M(x,b,w,L){var ce=b!==null?b.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return ce!==null?null:d(x,b,""+w,L);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case U:return w.key===ce?p(x,b,w,L):null;case Y:return w.key===ce?z(x,b,w,L):null;case se:return w=Yl(w),M(x,b,w,L)}if(fe(w)||q(w))return ce!==null?null:R(x,b,w,L,null);if(typeof w.then=="function")return M(x,b,vc(w),L);if(w.$$typeof===me)return M(x,b,mc(x,w),L);bc(x,w)}return null}function A(x,b,w,L,ce){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return x=x.get(w)||null,d(b,x,""+L,ce);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case U:return x=x.get(L.key===null?w:L.key)||null,p(b,x,L,ce);case Y:return x=x.get(L.key===null?w:L.key)||null,z(b,x,L,ce);case se:return L=Yl(L),A(x,b,w,L,ce)}if(fe(L)||q(L))return x=x.get(w)||null,R(b,x,L,ce,null);if(typeof L.then=="function")return A(x,b,w,vc(L),ce);if(L.$$typeof===me)return A(x,b,w,mc(b,L),ce);bc(b,L)}return null}function I(x,b,w,L){for(var ce=null,qe=null,ae=b,we=b=0,Le=null;ae!==null&&we<w.length;we++){ae.index>we?(Le=ae,ae=null):Le=ae.sibling;var Ge=M(x,ae,w[we],L);if(Ge===null){ae===null&&(ae=Le);break}e&&ae&&Ge.alternate===null&&t(x,ae),b=c(Ge,b,we),qe===null?ce=Ge:qe.sibling=Ge,qe=Ge,ae=Le}if(we===w.length)return n(x,ae),Oe&&Ln(x,we),ce;if(ae===null){for(;we<w.length;we++)ae=H(x,w[we],L),ae!==null&&(b=c(ae,b,we),qe===null?ce=ae:qe.sibling=ae,qe=ae);return Oe&&Ln(x,we),ce}for(ae=l(ae);we<w.length;we++)Le=A(ae,x,we,w[we],L),Le!==null&&(e&&Le.alternate!==null&&ae.delete(Le.key===null?we:Le.key),b=c(Le,b,we),qe===null?ce=Le:qe.sibling=Le,qe=Le);return e&&ae.forEach(function(Tl){return t(x,Tl)}),Oe&&Ln(x,we),ce}function de(x,b,w,L){if(w==null)throw Error(r(151));for(var ce=null,qe=null,ae=b,we=b=0,Le=null,Ge=w.next();ae!==null&&!Ge.done;we++,Ge=w.next()){ae.index>we?(Le=ae,ae=null):Le=ae.sibling;var Tl=M(x,ae,Ge.value,L);if(Tl===null){ae===null&&(ae=Le);break}e&&ae&&Tl.alternate===null&&t(x,ae),b=c(Tl,b,we),qe===null?ce=Tl:qe.sibling=Tl,qe=Tl,ae=Le}if(Ge.done)return n(x,ae),Oe&&Ln(x,we),ce;if(ae===null){for(;!Ge.done;we++,Ge=w.next())Ge=H(x,Ge.value,L),Ge!==null&&(b=c(Ge,b,we),qe===null?ce=Ge:qe.sibling=Ge,qe=Ge);return Oe&&Ln(x,we),ce}for(ae=l(ae);!Ge.done;we++,Ge=w.next())Ge=A(ae,x,we,Ge.value,L),Ge!==null&&(e&&Ge.alternate!==null&&ae.delete(Ge.key===null?we:Ge.key),b=c(Ge,b,we),qe===null?ce=Ge:qe.sibling=Ge,qe=Ge);return e&&ae.forEach(function(X3){return t(x,X3)}),Oe&&Ln(x,we),ce}function $e(x,b,w,L){if(typeof w=="object"&&w!==null&&w.type===re&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case U:e:{for(var ce=w.key;b!==null;){if(b.key===ce){if(ce=w.type,ce===re){if(b.tag===7){n(x,b.sibling),L=i(b,w.props.children),L.return=x,x=L;break e}}else if(b.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===se&&Yl(ce)===b.type){n(x,b.sibling),L=i(b,w.props),ci(L,w),L.return=x,x=L;break e}n(x,b);break}else t(x,b);b=b.sibling}w.type===re?(L=Ul(w.props.children,x.mode,L,w.key),L.return=x,x=L):(L=fc(w.type,w.key,w.props,null,x.mode,L),ci(L,w),L.return=x,x=L)}return o(x);case Y:e:{for(ce=w.key;b!==null;){if(b.key===ce)if(b.tag===4&&b.stateNode.containerInfo===w.containerInfo&&b.stateNode.implementation===w.implementation){n(x,b.sibling),L=i(b,w.children||[]),L.return=x,x=L;break e}else{n(x,b);break}else t(x,b);b=b.sibling}L=Is(w,x.mode,L),L.return=x,x=L}return o(x);case se:return w=Yl(w),$e(x,b,w,L)}if(fe(w))return I(x,b,w,L);if(q(w)){if(ce=q(w),typeof ce!="function")throw Error(r(150));return w=ce.call(w),de(x,b,w,L)}if(typeof w.then=="function")return $e(x,b,vc(w),L);if(w.$$typeof===me)return $e(x,b,mc(x,w),L);bc(x,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(w=""+w,b!==null&&b.tag===6?(n(x,b.sibling),L=i(b,w),L.return=x,x=L):(n(x,b),L=Ws(w,x.mode,L),L.return=x,x=L),o(x)):n(x,b)}return function(x,b,w,L){try{ii=0;var ce=$e(x,b,w,L);return xa=null,ce}catch(ae){if(ae===ba||ae===yc)throw ae;var qe=Vt(29,ae,null,x.mode);return qe.lanes=L,qe.return=x,qe}finally{}}}var Ql=g1(!0),v1=g1(!1),rl=!1;function ru(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fu(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 fl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function dl(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ye&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=rc(e),t1(e,null,n),t}return oc(e,l,t,n),rc(e)}function si(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,na(e,n)}}function du(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var i=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?i=c=o:c=c.next=o,n=n.next}while(n!==null);c===null?i=c=t:c=c.next=t}else i=c=t;n={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var hu=!1;function ui(){if(hu){var e=va;if(e!==null)throw e}}function oi(e,t,n,l){hu=!1;var i=e.updateQueue;rl=!1;var c=i.firstBaseUpdate,o=i.lastBaseUpdate,d=i.shared.pending;if(d!==null){i.shared.pending=null;var p=d,z=p.next;p.next=null,o===null?c=z:o.next=z,o=p;var R=e.alternate;R!==null&&(R=R.updateQueue,d=R.lastBaseUpdate,d!==o&&(d===null?R.firstBaseUpdate=z:d.next=z,R.lastBaseUpdate=p))}if(c!==null){var H=i.baseState;o=0,R=z=p=null,d=c;do{var M=d.lane&-536870913,A=M!==d.lane;if(A?(De&M)===M:(l&M)===M){M!==0&&M===ga&&(hu=!0),R!==null&&(R=R.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var I=e,de=d;M=t;var $e=n;switch(de.tag){case 1:if(I=de.payload,typeof I=="function"){H=I.call($e,H,M);break e}H=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=de.payload,M=typeof I=="function"?I.call($e,H,M):I,M==null)break e;H=D({},H,M);break e;case 2:rl=!0}}M=d.callback,M!==null&&(e.flags|=64,A&&(e.flags|=8192),A=i.callbacks,A===null?i.callbacks=[M]:A.push(M))}else A={lane:M,tag:d.tag,payload:d.payload,callback:d.callback,next:null},R===null?(z=R=A,p=H):R=R.next=A,o|=M;if(d=d.next,d===null){if(d=i.shared.pending,d===null)break;A=d,d=A.next,A.next=null,i.lastBaseUpdate=A,i.shared.pending=null}}while(!0);R===null&&(p=H),i.baseState=p,i.firstBaseUpdate=z,i.lastBaseUpdate=R,c===null&&(i.shared.lanes=0),gl|=o,e.lanes=o,e.memoizedState=H}}function b1(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function x1(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)b1(n[e],t)}var Sa=v(null),xc=v(0);function S1(e,t){e=Qn,X(xc,e),X(Sa,t),Qn=e|t.baseLanes}function mu(){X(xc,Qn),X(Sa,Sa.current)}function pu(){Qn=xc.current,C(Sa),C(xc)}var Yt=v(null),an=null;function hl(e){var t=e.alternate;X(ot,ot.current&1),X(Yt,e),an===null&&(t===null||Sa.current!==null||t.memoizedState!==null)&&(an=e)}function yu(e){X(ot,ot.current),X(Yt,e),an===null&&(an=e)}function j1(e){e.tag===22?(X(ot,ot.current),X(Yt,e),an===null&&(an=e)):ml()}function ml(){X(ot,ot.current),X(Yt,Yt.current)}function Xt(e){C(Yt),an===e&&(an=null),C(ot)}var ot=v(0);function Sc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Eo(n)||wo(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var kn=0,Se=null,Ze=null,yt=null,jc=!1,ja=!1,Zl=!1,Ec=0,ri=0,Ea=null,L4=0;function lt(){throw Error(r(321))}function gu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gt(e[n],t[n]))return!1;return!0}function vu(e,t,n,l,i,c){return kn=c,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,g.H=e===null||e.memoizedState===null?i0:Du,Zl=!1,c=n(l,i),Zl=!1,ja&&(c=w1(t,n,l,i)),E1(e),c}function E1(e){g.H=hi;var t=Ze!==null&&Ze.next!==null;if(kn=0,yt=Ze=Se=null,jc=!1,ri=0,Ea=null,t)throw Error(r(300));e===null||gt||(e=e.dependencies,e!==null&&hc(e)&&(gt=!0))}function w1(e,t,n,l){Se=e;var i=0;do{if(ja&&(Ea=null),ri=0,ja=!1,25<=i)throw Error(r(301));if(i+=1,yt=Ze=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}g.H=c0,c=t(n,l)}while(ja);return c}function O4(){var e=g.H,t=e.useState()[0];return t=typeof t.then=="function"?fi(t):t,e=e.useState()[0],(Ze!==null?Ze.memoizedState:null)!==e&&(Se.flags|=1024),t}function bu(){var e=Ec!==0;return Ec=0,e}function xu(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Su(e){if(jc){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}jc=!1}kn=0,yt=Ze=Se=null,ja=!1,ri=Ec=0,Ea=null}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yt===null?Se.memoizedState=yt=e:yt=yt.next=e,yt}function rt(){if(Ze===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Ze.next;var t=yt===null?Se.memoizedState:yt.next;if(t!==null)yt=t,Ze=e;else{if(e===null)throw Se.alternate===null?Error(r(467)):Error(r(310));Ze=e,e={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},yt===null?Se.memoizedState=yt=e:yt=yt.next=e}return yt}function wc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fi(e){var t=ri;return ri+=1,Ea===null&&(Ea=[]),e=m1(Ea,e,t),t=Se,(yt===null?t.memoizedState:yt.next)===null&&(t=t.alternate,g.H=t===null||t.memoizedState===null?i0:Du),e}function Nc(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return fi(e);if(e.$$typeof===me)return wt(e)}throw Error(r(438,String(e)))}function ju(e){var t=null,n=Se.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Se.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=wc(),Se.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=Re;return t.index++,n}function Un(e,t){return typeof t=="function"?t(e):t}function zc(e){var t=rt();return Eu(t,Ze,e)}function Eu(e,t,n){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var i=e.baseQueue,c=l.pending;if(c!==null){if(i!==null){var o=i.next;i.next=c.next,c.next=o}t.baseQueue=i=c,l.pending=null}if(c=e.baseState,i===null)e.memoizedState=c;else{t=i.next;var d=o=null,p=null,z=t,R=!1;do{var H=z.lane&-536870913;if(H!==z.lane?(De&H)===H:(kn&H)===H){var M=z.revertLane;if(M===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),H===ga&&(R=!0);else if((kn&M)===M){z=z.next,M===ga&&(R=!0);continue}else H={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},p===null?(d=p=H,o=c):p=p.next=H,Se.lanes|=M,gl|=M;H=z.action,Zl&&n(c,H),c=z.hasEagerState?z.eagerState:n(c,H)}else M={lane:H,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},p===null?(d=p=M,o=c):p=p.next=M,Se.lanes|=H,gl|=H;z=z.next}while(z!==null&&z!==t);if(p===null?o=c:p.next=d,!Gt(c,e.memoizedState)&&(gt=!0,R&&(n=va,n!==null)))throw n;e.memoizedState=c,e.baseState=o,e.baseQueue=p,l.lastRenderedState=c}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function wu(e){var t=rt(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var l=n.dispatch,i=n.pending,c=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do c=e(c,o.action),o=o.next;while(o!==i);Gt(c,t.memoizedState)||(gt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,l]}function N1(e,t,n){var l=Se,i=rt(),c=Oe;if(c){if(n===void 0)throw Error(r(407));n=n()}else n=t();var o=!Gt((Ze||i).memoizedState,n);if(o&&(i.memoizedState=n,gt=!0),i=i.queue,Tu(M1.bind(null,l,i,e),[e]),i.getSnapshot!==t||o||yt!==null&&yt.memoizedState.tag&1){if(l.flags|=2048,wa(9,{destroy:void 0},T1.bind(null,l,i,n,t),null),Je===null)throw Error(r(349));c||(kn&127)!==0||z1(l,t,n)}return n}function z1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t=wc(),Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function T1(e,t,n,l){t.value=n,t.getSnapshot=l,A1(t)&&C1(e)}function M1(e,t,n){return n(function(){A1(t)&&C1(e)})}function A1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gt(e,n)}catch{return!0}}function C1(e){var t=kl(e,2);t!==null&&qt(t,e,2)}function Nu(e){var t=Lt();if(typeof e=="function"){var n=e;if(e=n(),Zl){At(!0);try{n()}finally{At(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:e},t}function _1(e,t,n,l){return e.baseState=n,Eu(e,Ze,typeof l=="function"?l:Un)}function H4(e,t,n,l,i){if(Ac(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){c.listeners.push(o)}};g.T!==null?n(!0):c.isTransition=!1,l(c),n=t.pending,n===null?(c.next=t.pending=c,R1(t,c)):(c.next=n.next,t.pending=n.next=c)}}function R1(e,t){var n=t.action,l=t.payload,i=e.state;if(t.isTransition){var c=g.T,o={};g.T=o;try{var d=n(i,l),p=g.S;p!==null&&p(o,d),D1(e,t,d)}catch(z){zu(e,t,z)}finally{c!==null&&o.types!==null&&(c.types=o.types),g.T=c}}else try{c=n(i,l),D1(e,t,c)}catch(z){zu(e,t,z)}}function D1(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){L1(e,t,l)},function(l){return zu(e,t,l)}):L1(e,t,n)}function L1(e,t,n){t.status="fulfilled",t.value=n,O1(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,R1(e,n)))}function zu(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,O1(t),t=t.next;while(t!==l)}e.action=null}function O1(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function H1(e,t){return t}function k1(e,t){if(Oe){var n=Je.formState;if(n!==null){e:{var l=Se;if(Oe){if(Fe){t:{for(var i=Fe,c=ln;i.nodeType!==8;){if(!c){i=null;break t}if(i=cn(i.nextSibling),i===null){i=null;break t}}c=i.data,i=c==="F!"||c==="F"?i:null}if(i){Fe=cn(i.nextSibling),l=i.data==="F!";break e}}ul(l)}l=!1}l&&(t=n[0])}}return n=Lt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:H1,lastRenderedState:t},n.queue=l,n=n0.bind(null,Se,l),l.dispatch=n,l=Nu(!1),c=Ru.bind(null,Se,!1,l.queue),l=Lt(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,n=H4.bind(null,Se,i,c,n),i.dispatch=n,l.memoizedState=e,[t,n,!1]}function U1(e){var t=rt();return B1(t,Ze,e)}function B1(e,t,n){if(t=Eu(e,t,H1)[0],e=zc(Un)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=fi(t)}catch(o){throw o===ba?yc:o}else l=t;t=rt();var i=t.queue,c=i.dispatch;return n!==t.memoizedState&&(Se.flags|=2048,wa(9,{destroy:void 0},k4.bind(null,i,n),null)),[l,c,e]}function k4(e,t){e.action=t}function q1(e){var t=rt(),n=Ze;if(n!==null)return B1(t,n,e);rt(),t=t.memoizedState,n=rt();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function wa(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=Se.updateQueue,t===null&&(t=wc(),Se.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function G1(){return rt().memoizedState}function Tc(e,t,n,l){var i=Lt();Se.flags|=e,i.memoizedState=wa(1|t,{destroy:void 0},n,l===void 0?null:l)}function Mc(e,t,n,l){var i=rt();l=l===void 0?null:l;var c=i.memoizedState.inst;Ze!==null&&l!==null&&gu(l,Ze.memoizedState.deps)?i.memoizedState=wa(t,c,n,l):(Se.flags|=e,i.memoizedState=wa(1|t,c,n,l))}function V1(e,t){Tc(8390656,8,e,t)}function Tu(e,t){Mc(2048,8,e,t)}function U4(e){Se.flags|=4;var t=Se.updateQueue;if(t===null)t=wc(),Se.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Y1(e){var t=rt().memoizedState;return U4({ref:t,nextImpl:e}),function(){if((Ye&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function X1(e,t){return Mc(4,2,e,t)}function Q1(e,t){return Mc(4,4,e,t)}function Z1(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function K1(e,t,n){n=n!=null?n.concat([e]):null,Mc(4,4,Z1.bind(null,t,e),n)}function Mu(){}function $1(e,t){var n=rt();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&gu(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function J1(e,t){var n=rt();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&gu(t,l[1]))return l[0];if(l=e(),Zl){At(!0);try{e()}finally{At(!1)}}return n.memoizedState=[l,t],l}function Au(e,t,n){return n===void 0||(kn&1073741824)!==0&&(De&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=F0(),Se.lanes|=e,gl|=e,n)}function F1(e,t,n,l){return Gt(n,t)?n:Sa.current!==null?(e=Au(e,n,l),Gt(e,t)||(gt=!0),e):(kn&42)===0||(kn&1073741824)!==0&&(De&261930)===0?(gt=!0,e.memoizedState=n):(e=F0(),Se.lanes|=e,gl|=e,t)}function W1(e,t,n,l,i){var c=O.p;O.p=c!==0&&8>c?c:8;var o=g.T,d={};g.T=d,Ru(e,!1,t,n);try{var p=i(),z=g.S;if(z!==null&&z(d,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var R=D4(p,l);di(e,t,R,Kt(e))}else di(e,t,l,Kt(e))}catch(H){di(e,t,{then:function(){},status:"rejected",reason:H},Kt())}finally{O.p=c,o!==null&&d.types!==null&&(o.types=d.types),g.T=o}}function B4(){}function Cu(e,t,n,l){if(e.tag!==5)throw Error(r(476));var i=I1(e).queue;W1(e,i,t,Q,n===null?B4:function(){return P1(e),n(l)})}function I1(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:Q},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Un,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function P1(e){var t=I1(e);t.next===null&&(t=e.alternate.memoizedState),di(e,t.next.queue,{},Kt())}function _u(){return wt(Ai)}function e0(){return rt().memoizedState}function t0(){return rt().memoizedState}function q4(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Kt();e=fl(n);var l=dl(t,e,n);l!==null&&(qt(l,t,n),si(l,t,n)),t={cache:cu()},e.payload=t;return}t=t.return}}function G4(e,t,n){var l=Kt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ac(e)?l0(t,n):(n=Js(e,t,n,l),n!==null&&(qt(n,e,l),a0(n,t,l)))}function n0(e,t,n){var l=Kt();di(e,t,n,l)}function di(e,t,n,l){var i={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ac(e))l0(t,i);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var o=t.lastRenderedState,d=c(o,n);if(i.hasEagerState=!0,i.eagerState=d,Gt(d,o))return oc(e,t,i,0),Je===null&&uc(),!1}catch{}finally{}if(n=Js(e,t,i,l),n!==null)return qt(n,e,l),a0(n,t,l),!0}return!1}function Ru(e,t,n,l){if(l={lane:2,revertLane:ro(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ac(e)){if(t)throw Error(r(479))}else t=Js(e,n,l,2),t!==null&&qt(t,e,2)}function Ac(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function l0(e,t){ja=jc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function a0(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,na(e,n)}}var hi={readContext:wt,use:Nc,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useLayoutEffect:lt,useInsertionEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useSyncExternalStore:lt,useId:lt,useHostTransitionStatus:lt,useFormState:lt,useActionState:lt,useOptimistic:lt,useMemoCache:lt,useCacheRefresh:lt};hi.useEffectEvent=lt;var i0={readContext:wt,use:Nc,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:V1,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Tc(4194308,4,Z1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Tc(4194308,4,e,t)},useInsertionEffect:function(e,t){Tc(4,2,e,t)},useMemo:function(e,t){var n=Lt();t=t===void 0?null:t;var l=e();if(Zl){At(!0);try{e()}finally{At(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=Lt();if(n!==void 0){var i=n(t);if(Zl){At(!0);try{n(t)}finally{At(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=G4.bind(null,Se,e),[l.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:function(e){e=Nu(e);var t=e.queue,n=n0.bind(null,Se,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Mu,useDeferredValue:function(e,t){var n=Lt();return Au(n,e,t)},useTransition:function(){var e=Nu(!1);return e=W1.bind(null,Se,e.queue,!0,!1),Lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Se,i=Lt();if(Oe){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Je===null)throw Error(r(349));(De&127)!==0||z1(l,t,n)}i.memoizedState=n;var c={value:n,getSnapshot:t};return i.queue=c,V1(M1.bind(null,l,c,e),[e]),l.flags|=2048,wa(9,{destroy:void 0},T1.bind(null,l,c,n,t),null),n},useId:function(){var e=Lt(),t=Je.identifierPrefix;if(Oe){var n=bn,l=vn;n=(l&~(1<<32-Ee(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Ec++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=L4++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:_u,useFormState:k1,useActionState:k1,useOptimistic:function(e){var t=Lt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ru.bind(null,Se,!0,n),n.dispatch=t,[e,t]},useMemoCache:ju,useCacheRefresh:function(){return Lt().memoizedState=q4.bind(null,Se)},useEffectEvent:function(e){var t=Lt(),n={impl:e};return t.memoizedState=n,function(){if((Ye&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Du={readContext:wt,use:Nc,useCallback:$1,useContext:wt,useEffect:Tu,useImperativeHandle:K1,useInsertionEffect:X1,useLayoutEffect:Q1,useMemo:J1,useReducer:zc,useRef:G1,useState:function(){return zc(Un)},useDebugValue:Mu,useDeferredValue:function(e,t){var n=rt();return F1(n,Ze.memoizedState,e,t)},useTransition:function(){var e=zc(Un)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:fi(e),t]},useSyncExternalStore:N1,useId:e0,useHostTransitionStatus:_u,useFormState:U1,useActionState:U1,useOptimistic:function(e,t){var n=rt();return _1(n,Ze,e,t)},useMemoCache:ju,useCacheRefresh:t0};Du.useEffectEvent=Y1;var c0={readContext:wt,use:Nc,useCallback:$1,useContext:wt,useEffect:Tu,useImperativeHandle:K1,useInsertionEffect:X1,useLayoutEffect:Q1,useMemo:J1,useReducer:wu,useRef:G1,useState:function(){return wu(Un)},useDebugValue:Mu,useDeferredValue:function(e,t){var n=rt();return Ze===null?Au(n,e,t):F1(n,Ze.memoizedState,e,t)},useTransition:function(){var e=wu(Un)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:fi(e),t]},useSyncExternalStore:N1,useId:e0,useHostTransitionStatus:_u,useFormState:q1,useActionState:q1,useOptimistic:function(e,t){var n=rt();return Ze!==null?_1(n,Ze,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ju,useCacheRefresh:t0};c0.useEffectEvent=Y1;function Lu(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ou={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Kt(),i=fl(l);i.payload=t,n!=null&&(i.callback=n),t=dl(e,i,l),t!==null&&(qt(t,e,l),si(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Kt(),i=fl(l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=dl(e,i,l),t!==null&&(qt(t,e,l),si(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Kt(),l=fl(n);l.tag=2,t!=null&&(l.callback=t),t=dl(e,l,n),t!==null&&(qt(t,e,n),si(t,e,n))}};function s0(e,t,n,l,i,c,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,o):t.prototype&&t.prototype.isPureReactComponent?!Pa(n,l)||!Pa(i,c):!0}function u0(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Ou.enqueueReplaceState(t,t.state,null)}function Kl(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=D({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function o0(e){sc(e)}function r0(e){console.error(e)}function f0(e){sc(e)}function Cc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function d0(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Hu(e,t,n){return n=fl(n),n.tag=3,n.payload={element:null},n.callback=function(){Cc(e,t)},n}function h0(e){return e=fl(e),e.tag=3,e}function m0(e,t,n,l){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var c=l.value;e.payload=function(){return i(c)},e.callback=function(){d0(t,n,l)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){d0(t,n,l),typeof i!="function"&&(vl===null?vl=new Set([this]):vl.add(this));var d=l.stack;this.componentDidCatch(l.value,{componentStack:d!==null?d:""})})}function V4(e,t,n,l,i){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&ya(t,n,i,!0),n=Yt.current,n!==null){switch(n.tag){case 31:case 13:return an===null?Vc():n.alternate===null&&at===0&&(at=3),n.flags&=-257,n.flags|=65536,n.lanes=i,l===gc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),so(e,l,i)),!1;case 22:return n.flags|=65536,l===gc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),so(e,l,i)),!1}throw Error(r(435,n.tag))}return so(e,l,i),Vc(),!1}if(Oe)return t=Yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==tu&&(e=Error(r(422),{cause:l}),ni(en(e,n)))):(l!==tu&&(t=Error(r(423),{cause:l}),ni(en(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=en(l,n),i=Hu(e.stateNode,l,i),du(e,i),at!==4&&(at=2)),!1;var c=Error(r(520),{cause:l});if(c=en(c,n),Si===null?Si=[c]:Si.push(c),at!==4&&(at=2),t===null)return!0;l=en(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Hu(n.stateNode,l,e),du(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(vl===null||!vl.has(c))))return n.flags|=65536,i&=-i,n.lanes|=i,i=h0(i),m0(i,e,n,l),du(n,i),!1}n=n.return}while(n!==null);return!1}var ku=Error(r(461)),gt=!1;function Nt(e,t,n,l){t.child=e===null?v1(t,null,n,l):Ql(t,e.child,n,l)}function p0(e,t,n,l,i){n=n.render;var c=t.ref;if("ref"in l){var o={};for(var d in l)d!=="ref"&&(o[d]=l[d])}else o=l;return Gl(t),l=vu(e,t,n,o,c,i),d=bu(),e!==null&&!gt?(xu(e,t,i),Bn(e,t,i)):(Oe&&d&&Ps(t),t.flags|=1,Nt(e,t,l,i),t.child)}function y0(e,t,n,l,i){if(e===null){var c=n.type;return typeof c=="function"&&!Fs(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,g0(e,t,c,l,i)):(e=fc(n.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Qu(e,i)){var o=c.memoizedProps;if(n=n.compare,n=n!==null?n:Pa,n(o,l)&&e.ref===t.ref)return Bn(e,t,i)}return t.flags|=1,e=Dn(c,l),e.ref=t.ref,e.return=t,t.child=e}function g0(e,t,n,l,i){if(e!==null){var c=e.memoizedProps;if(Pa(c,l)&&e.ref===t.ref)if(gt=!1,t.pendingProps=l=c,Qu(e,i))(e.flags&131072)!==0&&(gt=!0);else return t.lanes=e.lanes,Bn(e,t,i)}return Uu(e,t,n,l,i)}function v0(e,t,n,l){var i=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(l=t.child=e.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~c}else l=0,t.child=null;return b0(e,t,c,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&pc(t,c!==null?c.cachePool:null),c!==null?S1(t,c):mu(),j1(t);else return l=t.lanes=536870912,b0(e,t,c!==null?c.baseLanes|n:n,n,l)}else c!==null?(pc(t,c.cachePool),S1(t,c),ml(),t.memoizedState=null):(e!==null&&pc(t,null),mu(),ml());return Nt(e,t,i,n),t.child}function mi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function b0(e,t,n,l,i){var c=uu();return c=c===null?null:{parent:pt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&pc(t,null),mu(),j1(t),e!==null&&ya(e,t,l,!0),t.childLanes=i,null}function _c(e,t){return t=Dc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function x0(e,t,n){return Ql(t,e.child,null,n),e=_c(t,t.pendingProps),e.flags|=2,Xt(t),t.memoizedState=null,e}function Y4(e,t,n){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(l.mode==="hidden")return e=_c(t,l),t.lanes=536870912,mi(null,e);if(yu(t),(e=Fe)?(e=Df(e,ln),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:cl!==null?{id:vn,overflow:bn}:null,retryLane:536870912,hydrationErrors:null},n=l1(e),n.return=t,t.child=n,Et=t,Fe=null)):e=null,e===null)throw ul(t);return t.lanes=536870912,null}return _c(t,l)}var c=e.memoizedState;if(c!==null){var o=c.dehydrated;if(yu(t),i)if(t.flags&256)t.flags&=-257,t=x0(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(gt||ya(e,t,n,!1),i=(n&e.childLanes)!==0,gt||i){if(l=Je,l!==null&&(o=Rl(l,n),o!==0&&o!==c.retryLane))throw c.retryLane=o,kl(e,o),qt(l,e,o),ku;Vc(),t=x0(e,t,n)}else e=c.treeContext,Fe=cn(o.nextSibling),Et=t,Oe=!0,sl=null,ln=!1,e!==null&&c1(t,e),t=_c(t,l),t.flags|=4096;return t}return e=Dn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Rc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Uu(e,t,n,l,i){return Gl(t),n=vu(e,t,n,l,void 0,i),l=bu(),e!==null&&!gt?(xu(e,t,i),Bn(e,t,i)):(Oe&&l&&Ps(t),t.flags|=1,Nt(e,t,n,i),t.child)}function S0(e,t,n,l,i,c){return Gl(t),t.updateQueue=null,n=w1(t,l,n,i),E1(e),l=bu(),e!==null&&!gt?(xu(e,t,c),Bn(e,t,c)):(Oe&&l&&Ps(t),t.flags|=1,Nt(e,t,n,c),t.child)}function j0(e,t,n,l,i){if(Gl(t),t.stateNode===null){var c=da,o=n.contextType;typeof o=="object"&&o!==null&&(c=wt(o)),c=new n(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Ou,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},ru(t),o=n.contextType,c.context=typeof o=="object"&&o!==null?wt(o):da,c.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(Lu(t,n,o,l),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(o=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),o!==c.state&&Ou.enqueueReplaceState(c,c.state,null),oi(t,l,c,i),ui(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var d=t.memoizedProps,p=Kl(n,d);c.props=p;var z=c.context,R=n.contextType;o=da,typeof R=="object"&&R!==null&&(o=wt(R));var H=n.getDerivedStateFromProps;R=typeof H=="function"||typeof c.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,R||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d||z!==o)&&u0(t,c,l,o),rl=!1;var M=t.memoizedState;c.state=M,oi(t,l,c,i),ui(),z=t.memoizedState,d||M!==z||rl?(typeof H=="function"&&(Lu(t,n,H,l),z=t.memoizedState),(p=rl||s0(t,n,p,l,M,z,o))?(R||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=z),c.props=l,c.state=z,c.context=o,l=p):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,fu(e,t),o=t.memoizedProps,R=Kl(n,o),c.props=R,H=t.pendingProps,M=c.context,z=n.contextType,p=da,typeof z=="object"&&z!==null&&(p=wt(z)),d=n.getDerivedStateFromProps,(z=typeof d=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(o!==H||M!==p)&&u0(t,c,l,p),rl=!1,M=t.memoizedState,c.state=M,oi(t,l,c,i),ui();var A=t.memoizedState;o!==H||M!==A||rl||e!==null&&e.dependencies!==null&&hc(e.dependencies)?(typeof d=="function"&&(Lu(t,n,d,l),A=t.memoizedState),(R=rl||s0(t,n,R,l,M,A,p)||e!==null&&e.dependencies!==null&&hc(e.dependencies))?(z||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,A,p),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,A,p)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=A),c.props=l,c.state=A,c.context=p,l=R):(typeof c.componentDidUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,Rc(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=Ql(t,e.child,null,i),t.child=Ql(t,null,n,i)):Nt(e,t,n,i),t.memoizedState=c.state,e=t.child):e=Bn(e,t,i),e}function E0(e,t,n,l){return Bl(),t.flags|=256,Nt(e,t,n,l),t.child}var Bu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function qu(e){return{baseLanes:e,cachePool:d1()}}function Gu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zt),e}function w0(e,t,n){var l=t.pendingProps,i=!1,c=(t.flags&128)!==0,o;if((o=c)||(o=e!==null&&e.memoizedState===null?!1:(ot.current&2)!==0),o&&(i=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(i?hl(t):ml(),(e=Fe)?(e=Df(e,ln),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:cl!==null?{id:vn,overflow:bn}:null,retryLane:536870912,hydrationErrors:null},n=l1(e),n.return=t,t.child=n,Et=t,Fe=null)):e=null,e===null)throw ul(t);return wo(e)?t.lanes=32:t.lanes=536870912,null}var d=l.children;return l=l.fallback,i?(ml(),i=t.mode,d=Dc({mode:"hidden",children:d},i),l=Ul(l,i,n,null),d.return=t,l.return=t,d.sibling=l,t.child=d,l=t.child,l.memoizedState=qu(n),l.childLanes=Gu(e,o,n),t.memoizedState=Bu,mi(null,l)):(hl(t),Vu(t,d))}var p=e.memoizedState;if(p!==null&&(d=p.dehydrated,d!==null)){if(c)t.flags&256?(hl(t),t.flags&=-257,t=Yu(e,t,n)):t.memoizedState!==null?(ml(),t.child=e.child,t.flags|=128,t=null):(ml(),d=l.fallback,i=t.mode,l=Dc({mode:"visible",children:l.children},i),d=Ul(d,i,n,null),d.flags|=2,l.return=t,d.return=t,l.sibling=d,t.child=l,Ql(t,e.child,null,n),l=t.child,l.memoizedState=qu(n),l.childLanes=Gu(e,o,n),t.memoizedState=Bu,t=mi(null,l));else if(hl(t),wo(d)){if(o=d.nextSibling&&d.nextSibling.dataset,o)var z=o.dgst;o=z,l=Error(r(419)),l.stack="",l.digest=o,ni({value:l,source:null,stack:null}),t=Yu(e,t,n)}else if(gt||ya(e,t,n,!1),o=(n&e.childLanes)!==0,gt||o){if(o=Je,o!==null&&(l=Rl(o,n),l!==0&&l!==p.retryLane))throw p.retryLane=l,kl(e,l),qt(o,e,l),ku;Eo(d)||Vc(),t=Yu(e,t,n)}else Eo(d)?(t.flags|=192,t.child=e.child,t=null):(e=p.treeContext,Fe=cn(d.nextSibling),Et=t,Oe=!0,sl=null,ln=!1,e!==null&&c1(t,e),t=Vu(t,l.children),t.flags|=4096);return t}return i?(ml(),d=l.fallback,i=t.mode,p=e.child,z=p.sibling,l=Dn(p,{mode:"hidden",children:l.children}),l.subtreeFlags=p.subtreeFlags&65011712,z!==null?d=Dn(z,d):(d=Ul(d,i,n,null),d.flags|=2),d.return=t,l.return=t,l.sibling=d,t.child=l,mi(null,l),l=t.child,d=e.child.memoizedState,d===null?d=qu(n):(i=d.cachePool,i!==null?(p=pt._currentValue,i=i.parent!==p?{parent:p,pool:p}:i):i=d1(),d={baseLanes:d.baseLanes|n,cachePool:i}),l.memoizedState=d,l.childLanes=Gu(e,o,n),t.memoizedState=Bu,mi(e.child,l)):(hl(t),n=e.child,e=n.sibling,n=Dn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Vu(e,t){return t=Dc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Dc(e,t){return e=Vt(22,e,null,t),e.lanes=0,e}function Yu(e,t,n){return Ql(t,e.child,null,n),e=Vu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function N0(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),au(e.return,t,n)}function Xu(e,t,n,l,i,c){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:i,treeForkCount:c}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=n,o.tailMode=i,o.treeForkCount=c)}function z0(e,t,n){var l=t.pendingProps,i=l.revealOrder,c=l.tail;l=l.children;var o=ot.current,d=(o&2)!==0;if(d?(o=o&1|2,t.flags|=128):o&=1,X(ot,o),Nt(e,t,l,n),l=Oe?ti:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&N0(e,n,t);else if(e.tag===19)N0(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Sc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Xu(t,!1,i,n,c,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Sc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Xu(t,!0,n,null,c,l);break;case"together":Xu(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Bn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),gl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ya(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Dn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Dn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Qu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&hc(e)))}function X4(e,t,n){switch(t.tag){case 3:ze(t,t.stateNode.containerInfo),ol(t,pt,e.memoizedState.cache),Bl();break;case 27:case 5:it(t);break;case 4:ze(t,t.stateNode.containerInfo);break;case 10:ol(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,yu(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(hl(t),t.flags|=128,null):(n&t.child.childLanes)!==0?w0(e,t,n):(hl(t),e=Bn(e,t,n),e!==null?e.sibling:null);hl(t);break;case 19:var i=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(ya(e,t,n,!1),l=(n&t.childLanes)!==0),i){if(l)return z0(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),X(ot,ot.current),l)break;return null;case 22:return t.lanes=0,v0(e,t,n,t.pendingProps);case 24:ol(t,pt,e.memoizedState.cache)}return Bn(e,t,n)}function T0(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)gt=!0;else{if(!Qu(e,n)&&(t.flags&128)===0)return gt=!1,X4(e,t,n);gt=(e.flags&131072)!==0}else gt=!1,Oe&&(t.flags&1048576)!==0&&i1(t,ti,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Yl(t.elementType),t.type=e,typeof e=="function")Fs(e)?(l=Kl(e,l),t.tag=1,t=j0(null,t,e,l,n)):(t.tag=0,t=Uu(null,t,e,l,n));else{if(e!=null){var i=e.$$typeof;if(i===$){t.tag=11,t=p0(null,t,e,l,n);break e}else if(i===ee){t.tag=14,t=y0(null,t,e,l,n);break e}}throw t=W(e)||e,Error(r(306,t,""))}}return t;case 0:return Uu(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,i=Kl(l,t.pendingProps),j0(e,t,l,i,n);case 3:e:{if(ze(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var c=t.memoizedState;i=c.element,fu(e,t),oi(t,l,null,n);var o=t.memoizedState;if(l=o.cache,ol(t,pt,l),l!==c.cache&&iu(t,[pt],n,!0),ui(),l=o.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=E0(e,t,l,n);break e}else if(l!==i){i=en(Error(r(424)),t),ni(i),t=E0(e,t,l,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Fe=cn(e.firstChild),Et=t,Oe=!0,sl=null,ln=!0,n=v1(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Bl(),l===i){t=Bn(e,t,n);break e}Nt(e,t,l,n)}t=t.child}return t;case 26:return Rc(e,t),e===null?(n=Bf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Oe||(n=t.type,e=t.pendingProps,l=Jc(V.current).createElement(n),l[xt]=t,l[_t]=e,zt(l,n,e),mt(l),t.stateNode=l):t.memoizedState=Bf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return it(t),e===null&&Oe&&(l=t.stateNode=Hf(t.type,t.pendingProps,V.current),Et=t,ln=!0,i=Fe,jl(t.type)?(No=i,Fe=cn(l.firstChild)):Fe=i),Nt(e,t,t.pendingProps.children,n),Rc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((i=l=Fe)&&(l=x3(l,t.type,t.pendingProps,ln),l!==null?(t.stateNode=l,Et=t,Fe=cn(l.firstChild),ln=!1,i=!0):i=!1),i||ul(t)),it(t),i=t.type,c=t.pendingProps,o=e!==null?e.memoizedProps:null,l=c.children,xo(i,c)?l=null:o!==null&&xo(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=vu(e,t,O4,null,null,n),Ai._currentValue=i),Rc(e,t),Nt(e,t,l,n),t.child;case 6:return e===null&&Oe&&((e=n=Fe)&&(n=S3(n,t.pendingProps,ln),n!==null?(t.stateNode=n,Et=t,Fe=null,e=!0):e=!1),e||ul(t)),null;case 13:return w0(e,t,n);case 4:return ze(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ql(t,null,l,n):Nt(e,t,l,n),t.child;case 11:return p0(e,t,t.type,t.pendingProps,n);case 7:return Nt(e,t,t.pendingProps,n),t.child;case 8:return Nt(e,t,t.pendingProps.children,n),t.child;case 12:return Nt(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,ol(t,t.type,l.value),Nt(e,t,l.children,n),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,Gl(t),i=wt(i),l=l(i),t.flags|=1,Nt(e,t,l,n),t.child;case 14:return y0(e,t,t.type,t.pendingProps,n);case 15:return g0(e,t,t.type,t.pendingProps,n);case 19:return z0(e,t,n);case 31:return Y4(e,t,n);case 22:return v0(e,t,n,t.pendingProps);case 24:return Gl(t),l=wt(pt),e===null?(i=uu(),i===null&&(i=Je,c=cu(),i.pooledCache=c,c.refCount++,c!==null&&(i.pooledCacheLanes|=n),i=c),t.memoizedState={parent:l,cache:i},ru(t),ol(t,pt,i)):((e.lanes&n)!==0&&(fu(e,t),oi(t,null,null,n),ui()),i=e.memoizedState,c=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),ol(t,pt,l)):(l=c.cache,ol(t,pt,l),l!==i.cache&&iu(t,[pt],n,!0))),Nt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function qn(e){e.flags|=4}function Zu(e,t,n,l,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(ef())e.flags|=8192;else throw Xl=gc,ou}else e.flags&=-16777217}function M0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Xf(t))if(ef())e.flags|=8192;else throw Xl=gc,ou}function Lc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Xi():536870912,e.lanes|=t,Ma|=t)}function pi(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function Q4(e,t,n){var l=t.pendingProps;switch(eu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return We(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Hn(pt),Ae(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(pa(t)?qn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,nu())),We(t),null;case 26:var i=t.type,c=t.memoizedState;return e===null?(qn(t),c!==null?(We(t),M0(t,c)):(We(t),Zu(t,i,null,l,n))):c?c!==e.memoizedState?(qn(t),We(t),M0(t,c)):(We(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&qn(t),We(t),Zu(t,i,e,l,n)),null;case 27:if(ft(t),n=V.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&qn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return We(t),null}e=F.current,pa(t)?s1(t):(e=Hf(i,l,n),t.stateNode=e,qn(t))}return We(t),null;case 5:if(ft(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&qn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return We(t),null}if(c=F.current,pa(t))s1(t);else{var o=Jc(V.current);switch(c){case 1:c=o.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:c=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":c=o.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":c=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":c=o.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?o.createElement(i,{is:l.is}):o.createElement(i)}}c[xt]=t,c[_t]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)c.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=c;e:switch(zt(c,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&qn(t)}}return We(t),Zu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&qn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=V.current,pa(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,i=Et,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[xt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Nf(e.nodeValue,n)),e||ul(t,!0)}else e=Jc(e).createTextNode(l),e[xt]=t,t.stateNode=e}return We(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=pa(t),n!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[xt]=t}else Bl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),e=!1}else n=nu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Xt(t),t):(Xt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return We(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=pa(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(r(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));i[xt]=t}else Bl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),i=!1}else i=nu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Xt(t),t):(Xt(t),null)}return Xt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==i&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Lc(t,t.updateQueue),We(t),null);case 4:return Ae(),e===null&&po(t.stateNode.containerInfo),We(t),null;case 10:return Hn(t.type),We(t),null;case 19:if(C(ot),l=t.memoizedState,l===null)return We(t),null;if(i=(t.flags&128)!==0,c=l.rendering,c===null)if(i)pi(l,!1);else{if(at!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Sc(e),c!==null){for(t.flags|=128,pi(l,!1),e=c.updateQueue,t.updateQueue=e,Lc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)n1(n,e),n=n.sibling;return X(ot,ot.current&1|2),Oe&&Ln(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&ne()>Bc&&(t.flags|=128,i=!0,pi(l,!1),t.lanes=4194304)}else{if(!i)if(e=Sc(c),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Lc(t,e),pi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!Oe)return We(t),null}else 2*ne()-l.renderingStartTime>Bc&&n!==536870912&&(t.flags|=128,i=!0,pi(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=ne(),e.sibling=null,n=ot.current,X(ot,i?n&1|2:n&1),Oe&&Ln(t,l.treeForkCount),e):(We(t),null);case 22:case 23:return Xt(t),pu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),n=t.updateQueue,n!==null&&Lc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&C(Vl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Hn(pt),We(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Z4(e,t){switch(eu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hn(pt),Ae(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ft(t),null;case 31:if(t.memoizedState!==null){if(Xt(t),t.alternate===null)throw Error(r(340));Bl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Bl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return C(ot),null;case 4:return Ae(),null;case 10:return Hn(t.type),null;case 22:case 23:return Xt(t),pu(),e!==null&&C(Vl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Hn(pt),null;case 25:return null;default:return null}}function A0(e,t){switch(eu(t),t.tag){case 3:Hn(pt),Ae();break;case 26:case 27:case 5:ft(t);break;case 4:Ae();break;case 31:t.memoizedState!==null&&Xt(t);break;case 13:Xt(t);break;case 19:C(ot);break;case 10:Hn(t.type);break;case 22:case 23:Xt(t),pu(),e!==null&&C(Vl);break;case 24:Hn(pt)}}function yi(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var i=l.next;n=i;do{if((n.tag&e)===e){l=void 0;var c=n.create,o=n.inst;l=c(),o.destroy=l}n=n.next}while(n!==i)}}catch(d){Qe(t,t.return,d)}}function pl(e,t,n){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var c=i.next;l=c;do{if((l.tag&e)===e){var o=l.inst,d=o.destroy;if(d!==void 0){o.destroy=void 0,i=t;var p=n,z=d;try{z()}catch(R){Qe(i,p,R)}}}l=l.next}while(l!==c)}}catch(R){Qe(t,t.return,R)}}function C0(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{x1(t,n)}catch(l){Qe(e,e.return,l)}}}function _0(e,t,n){n.props=Kl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Qe(e,t,l)}}function gi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(i){Qe(e,t,i)}}function xn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(i){Qe(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Qe(e,t,i)}else n.current=null}function R0(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(i){Qe(e,e.return,i)}}function Ku(e,t,n){try{var l=e.stateNode;m3(l,e.type,n,t),l[_t]=t}catch(i){Qe(e,e.return,i)}}function D0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&jl(e.type)||e.tag===4}function $u(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||D0(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&&jl(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 Ju(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_n));else if(l!==4&&(l===27&&jl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ju(e,t,n),e=e.sibling;e!==null;)Ju(e,t,n),e=e.sibling}function Oc(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&jl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Oc(e,t,n),e=e.sibling;e!==null;)Oc(e,t,n),e=e.sibling}function L0(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);zt(t,l,n),t[xt]=e,t[_t]=n}catch(c){Qe(e,e.return,c)}}var Gn=!1,vt=!1,Fu=!1,O0=typeof WeakSet=="function"?WeakSet:Set,jt=null;function K4(e,t){if(e=e.containerInfo,vo=ns,e=Kr(e),Ys(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var i=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var o=0,d=-1,p=-1,z=0,R=0,H=e,M=null;t:for(;;){for(var A;H!==n||i!==0&&H.nodeType!==3||(d=o+i),H!==c||l!==0&&H.nodeType!==3||(p=o+l),H.nodeType===3&&(o+=H.nodeValue.length),(A=H.firstChild)!==null;)M=H,H=A;for(;;){if(H===e)break t;if(M===n&&++z===i&&(d=o),M===c&&++R===l&&(p=o),(A=H.nextSibling)!==null)break;H=M,M=H.parentNode}H=A}n=d===-1||p===-1?null:{start:d,end:p}}else n=null}n=n||{start:0,end:0}}else n=null;for(bo={focusedElem:e,selectionRange:n},ns=!1,jt=t;jt!==null;)if(t=jt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,jt=e;else for(;jt!==null;){switch(t=jt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,i=c.memoizedProps,c=c.memoizedState,l=n.stateNode;try{var I=Kl(n.type,i);e=l.getSnapshotBeforeUpdate(I,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(de){Qe(n,n.return,de)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)jo(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":jo(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,jt=e;break}jt=t.return}}function H0(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Yn(e,n),l&4&&yi(5,n);break;case 1:if(Yn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(o){Qe(n,n.return,o)}else{var i=Kl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Qe(n,n.return,o)}}l&64&&C0(n),l&512&&gi(n,n.return);break;case 3:if(Yn(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{x1(e,t)}catch(o){Qe(n,n.return,o)}}break;case 27:t===null&&l&4&&L0(n);case 26:case 5:Yn(e,n),t===null&&l&4&&R0(n),l&512&&gi(n,n.return);break;case 12:Yn(e,n);break;case 31:Yn(e,n),l&4&&B0(e,n);break;case 13:Yn(e,n),l&4&&q0(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=n3.bind(null,n),j3(e,n))));break;case 22:if(l=n.memoizedState!==null||Gn,!l){t=t!==null&&t.memoizedState!==null||vt,i=Gn;var c=vt;Gn=l,(vt=t)&&!c?Xn(e,n,(n.subtreeFlags&8772)!==0):Yn(e,n),Gn=i,vt=c}break;case 30:break;default:Yn(e,n)}}function k0(e){var t=e.alternate;t!==null&&(e.alternate=null,k0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Xa(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 Ie=null,Ht=!1;function Vn(e,t,n){for(n=n.child;n!==null;)U0(e,t,n),n=n.sibling}function U0(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(Ft,n)}catch{}switch(n.tag){case 26:vt||xn(n,t),Vn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:vt||xn(n,t);var l=Ie,i=Ht;jl(n.type)&&(Ie=n.stateNode,Ht=!1),Vn(e,t,n),zi(n.stateNode),Ie=l,Ht=i;break;case 5:vt||xn(n,t);case 6:if(l=Ie,i=Ht,Ie=null,Vn(e,t,n),Ie=l,Ht=i,Ie!==null)if(Ht)try{(Ie.nodeType===9?Ie.body:Ie.nodeName==="HTML"?Ie.ownerDocument.body:Ie).removeChild(n.stateNode)}catch(c){Qe(n,t,c)}else try{Ie.removeChild(n.stateNode)}catch(c){Qe(n,t,c)}break;case 18:Ie!==null&&(Ht?(e=Ie,_f(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ha(e)):_f(Ie,n.stateNode));break;case 4:l=Ie,i=Ht,Ie=n.stateNode.containerInfo,Ht=!0,Vn(e,t,n),Ie=l,Ht=i;break;case 0:case 11:case 14:case 15:pl(2,n,t),vt||pl(4,n,t),Vn(e,t,n);break;case 1:vt||(xn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&_0(n,t,l)),Vn(e,t,n);break;case 21:Vn(e,t,n);break;case 22:vt=(l=vt)||n.memoizedState!==null,Vn(e,t,n),vt=l;break;default:Vn(e,t,n)}}function B0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ha(e)}catch(n){Qe(t,t.return,n)}}}function q0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ha(e)}catch(n){Qe(t,t.return,n)}}function $4(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new O0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new O0),t;default:throw Error(r(435,e.tag))}}function Hc(e,t){var n=$4(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var i=l3.bind(null,e,l);l.then(i,i)}})}function kt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var i=n[l],c=e,o=t,d=o;e:for(;d!==null;){switch(d.tag){case 27:if(jl(d.type)){Ie=d.stateNode,Ht=!1;break e}break;case 5:Ie=d.stateNode,Ht=!1;break e;case 3:case 4:Ie=d.stateNode.containerInfo,Ht=!0;break e}d=d.return}if(Ie===null)throw Error(r(160));U0(c,o,i),Ie=null,Ht=!1,c=i.alternate,c!==null&&(c.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)G0(t,e),t=t.sibling}var hn=null;function G0(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:kt(t,e),Ut(e),l&4&&(pl(3,e,e.return),yi(3,e),pl(5,e,e.return));break;case 1:kt(t,e),Ut(e),l&512&&(vt||n===null||xn(n,n.return)),l&64&&Gn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var i=hn;if(kt(t,e),Ut(e),l&512&&(vt||n===null||xn(n,n.return)),l&4){var c=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(l){case"title":c=i.getElementsByTagName("title")[0],(!c||c[el]||c[xt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=i.createElement(l),i.head.insertBefore(c,i.querySelector("head > title"))),zt(c,l,n),c[xt]=e,mt(c),l=c;break e;case"link":var o=Vf("link","href",i).get(l+(n.href||""));if(o){for(var d=0;d<o.length;d++)if(c=o[d],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(d,1);break t}}c=i.createElement(l),zt(c,l,n),i.head.appendChild(c);break;case"meta":if(o=Vf("meta","content",i).get(l+(n.content||""))){for(d=0;d<o.length;d++)if(c=o[d],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(d,1);break t}}c=i.createElement(l),zt(c,l,n),i.head.appendChild(c);break;default:throw Error(r(468,l))}c[xt]=e,mt(c),l=c}e.stateNode=l}else Yf(i,e.type,e.stateNode);else e.stateNode=Gf(i,l,e.memoizedProps);else c!==l?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,l===null?Yf(i,e.type,e.stateNode):Gf(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Ku(e,e.memoizedProps,n.memoizedProps)}break;case 27:kt(t,e),Ut(e),l&512&&(vt||n===null||xn(n,n.return)),n!==null&&l&4&&Ku(e,e.memoizedProps,n.memoizedProps);break;case 5:if(kt(t,e),Ut(e),l&512&&(vt||n===null||xn(n,n.return)),e.flags&32){i=e.stateNode;try{ia(i,"")}catch(I){Qe(e,e.return,I)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,Ku(e,i,n!==null?n.memoizedProps:i)),l&1024&&(Fu=!0);break;case 6:if(kt(t,e),Ut(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(I){Qe(e,e.return,I)}}break;case 3:if(Ic=null,i=hn,hn=Fc(t.containerInfo),kt(t,e),hn=i,Ut(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Ha(t.containerInfo)}catch(I){Qe(e,e.return,I)}Fu&&(Fu=!1,V0(e));break;case 4:l=hn,hn=Fc(e.stateNode.containerInfo),kt(t,e),Ut(e),hn=l;break;case 12:kt(t,e),Ut(e);break;case 31:kt(t,e),Ut(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Hc(e,l)));break;case 13:kt(t,e),Ut(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Uc=ne()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Hc(e,l)));break;case 22:i=e.memoizedState!==null;var p=n!==null&&n.memoizedState!==null,z=Gn,R=vt;if(Gn=z||i,vt=R||p,kt(t,e),vt=R,Gn=z,Ut(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||p||Gn||vt||$l(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){p=n=t;try{if(c=p.stateNode,i)o=c.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{d=p.stateNode;var H=p.memoizedProps.style,M=H!=null&&H.hasOwnProperty("display")?H.display:null;d.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(I){Qe(p,p.return,I)}}}else if(t.tag===6){if(n===null){p=t;try{p.stateNode.nodeValue=i?"":p.memoizedProps}catch(I){Qe(p,p.return,I)}}}else if(t.tag===18){if(n===null){p=t;try{var A=p.stateNode;i?Rf(A,!0):Rf(p.stateNode,!1)}catch(I){Qe(p,p.return,I)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Hc(e,n))));break;case 19:kt(t,e),Ut(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Hc(e,l)));break;case 30:break;case 21:break;default:kt(t,e),Ut(e)}}function Ut(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(D0(l)){n=l;break}l=l.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var i=n.stateNode,c=$u(e);Oc(e,c,i);break;case 5:var o=n.stateNode;n.flags&32&&(ia(o,""),n.flags&=-33);var d=$u(e);Oc(e,d,o);break;case 3:case 4:var p=n.stateNode.containerInfo,z=$u(e);Ju(e,z,p);break;default:throw Error(r(161))}}catch(R){Qe(e,e.return,R)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function V0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;V0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Yn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)H0(e,t.alternate,t),t=t.sibling}function $l(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:pl(4,t,t.return),$l(t);break;case 1:xn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&_0(t,t.return,n),$l(t);break;case 27:zi(t.stateNode);case 26:case 5:xn(t,t.return),$l(t);break;case 22:t.memoizedState===null&&$l(t);break;case 30:$l(t);break;default:$l(t)}e=e.sibling}}function Xn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,c=t,o=c.flags;switch(c.tag){case 0:case 11:case 15:Xn(i,c,n),yi(4,c);break;case 1:if(Xn(i,c,n),l=c,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(z){Qe(l,l.return,z)}if(l=c,i=l.updateQueue,i!==null){var d=l.stateNode;try{var p=i.shared.hiddenCallbacks;if(p!==null)for(i.shared.hiddenCallbacks=null,i=0;i<p.length;i++)b1(p[i],d)}catch(z){Qe(l,l.return,z)}}n&&o&64&&C0(c),gi(c,c.return);break;case 27:L0(c);case 26:case 5:Xn(i,c,n),n&&l===null&&o&4&&R0(c),gi(c,c.return);break;case 12:Xn(i,c,n);break;case 31:Xn(i,c,n),n&&o&4&&B0(i,c);break;case 13:Xn(i,c,n),n&&o&4&&q0(i,c);break;case 22:c.memoizedState===null&&Xn(i,c,n),gi(c,c.return);break;case 30:break;default:Xn(i,c,n)}t=t.sibling}}function Wu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&li(n))}function Iu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&li(e))}function mn(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Y0(e,t,n,l),t=t.sibling}function Y0(e,t,n,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:mn(e,t,n,l),i&2048&&yi(9,t);break;case 1:mn(e,t,n,l);break;case 3:mn(e,t,n,l),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&li(e)));break;case 12:if(i&2048){mn(e,t,n,l),e=t.stateNode;try{var c=t.memoizedProps,o=c.id,d=c.onPostCommit;typeof d=="function"&&d(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(p){Qe(t,t.return,p)}}else mn(e,t,n,l);break;case 31:mn(e,t,n,l);break;case 13:mn(e,t,n,l);break;case 23:break;case 22:c=t.stateNode,o=t.alternate,t.memoizedState!==null?c._visibility&2?mn(e,t,n,l):vi(e,t):c._visibility&2?mn(e,t,n,l):(c._visibility|=2,Na(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Wu(o,t);break;case 24:mn(e,t,n,l),i&2048&&Iu(t.alternate,t);break;default:mn(e,t,n,l)}}function Na(e,t,n,l,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,o=t,d=n,p=l,z=o.flags;switch(o.tag){case 0:case 11:case 15:Na(c,o,d,p,i),yi(8,o);break;case 23:break;case 22:var R=o.stateNode;o.memoizedState!==null?R._visibility&2?Na(c,o,d,p,i):vi(c,o):(R._visibility|=2,Na(c,o,d,p,i)),i&&z&2048&&Wu(o.alternate,o);break;case 24:Na(c,o,d,p,i),i&&z&2048&&Iu(o.alternate,o);break;default:Na(c,o,d,p,i)}t=t.sibling}}function vi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,i=l.flags;switch(l.tag){case 22:vi(n,l),i&2048&&Wu(l.alternate,l);break;case 24:vi(n,l),i&2048&&Iu(l.alternate,l);break;default:vi(n,l)}t=t.sibling}}var bi=8192;function za(e,t,n){if(e.subtreeFlags&bi)for(e=e.child;e!==null;)X0(e,t,n),e=e.sibling}function X0(e,t,n){switch(e.tag){case 26:za(e,t,n),e.flags&bi&&e.memoizedState!==null&&L3(n,hn,e.memoizedState,e.memoizedProps);break;case 5:za(e,t,n);break;case 3:case 4:var l=hn;hn=Fc(e.stateNode.containerInfo),za(e,t,n),hn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=bi,bi=16777216,za(e,t,n),bi=l):za(e,t,n));break;default:za(e,t,n)}}function Q0(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 xi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];jt=l,K0(l,e)}Q0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Z0(e),e=e.sibling}function Z0(e){switch(e.tag){case 0:case 11:case 15:xi(e),e.flags&2048&&pl(9,e,e.return);break;case 3:xi(e);break;case 12:xi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,kc(e)):xi(e);break;default:xi(e)}}function kc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];jt=l,K0(l,e)}Q0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:pl(8,t,t.return),kc(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,kc(t));break;default:kc(t)}e=e.sibling}}function K0(e,t){for(;jt!==null;){var n=jt;switch(n.tag){case 0:case 11:case 15:pl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:li(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,jt=l;else e:for(n=e;jt!==null;){l=jt;var i=l.sibling,c=l.return;if(k0(l),l===n){jt=null;break e}if(i!==null){i.return=c,jt=i;break e}jt=c}}}var J4={getCacheForType:function(e){var t=wt(pt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return wt(pt).controller.signal}},F4=typeof WeakMap=="function"?WeakMap:Map,Ye=0,Je=null,Ce=null,De=0,Xe=0,Qt=null,yl=!1,Ta=!1,Pu=!1,Qn=0,at=0,gl=0,Jl=0,eo=0,Zt=0,Ma=0,Si=null,Bt=null,to=!1,Uc=0,$0=0,Bc=1/0,qc=null,vl=null,St=0,bl=null,Aa=null,Zn=0,no=0,lo=null,J0=null,ji=0,ao=null;function Kt(){return(Ye&2)!==0&&De!==0?De&-De:g.T!==null?ro():Zi()}function F0(){if(Zt===0)if((De&536870912)===0||Oe){var e=zn;zn<<=1,(zn&3932160)===0&&(zn=262144),Zt=e}else Zt=536870912;return e=Yt.current,e!==null&&(e.flags|=32),Zt}function qt(e,t,n){(e===Je&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)&&(Ca(e,0),xl(e,De,Zt,!1)),_l(e,n),((Ye&2)===0||e!==Je)&&(e===Je&&((Ye&2)===0&&(Jl|=n),at===4&&xl(e,De,Zt,!1)),Sn(e))}function W0(e,t,n){if((Ye&6)!==0)throw Error(r(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||An(e,t),i=l?P4(e,t):co(e,t,!0),c=l;do{if(i===0){Ta&&!l&&xl(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!W4(n)){i=co(e,t,!1),c=!1;continue}if(i===2){if(c=t,e.errorRecoveryDisabledLanes&c)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var d=e;i=Si;var p=d.current.memoizedState.isDehydrated;if(p&&(Ca(d,o).flags|=256),o=co(d,o,!1),o!==2){if(Pu&&!p){d.errorRecoveryDisabledLanes|=c,Jl|=c,i=4;break e}c=Bt,Bt=i,c!==null&&(Bt===null?Bt=c:Bt.push.apply(Bt,c))}i=o}if(c=!1,i!==2)continue}}if(i===1){Ca(e,0),xl(e,t,0,!0);break}e:{switch(l=e,c=i,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:xl(l,t,Zt,!yl);break e;case 2:Bt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(i=Uc+300-ne(),10<i)){if(xl(l,t,Zt,!yl),In(l,0,!0)!==0)break e;Zn=t,l.timeoutHandle=Af(I0.bind(null,l,n,Bt,qc,to,t,Zt,Jl,Ma,yl,c,"Throttled",-0,0),i);break e}I0(l,n,Bt,qc,to,t,Zt,Jl,Ma,yl,c,null,-0,0)}}break}while(!0);Sn(e)}function I0(e,t,n,l,i,c,o,d,p,z,R,H,M,A){if(e.timeoutHandle=-1,H=t.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_n},X0(t,c,H);var I=(c&62914560)===c?Uc-ne():(c&4194048)===c?$0-ne():0;if(I=O3(H,I),I!==null){Zn=c,e.cancelPendingCommit=I(sf.bind(null,e,t,c,n,l,i,o,d,p,R,H,null,M,A)),xl(e,c,o,!z);return}}sf(e,t,c,n,l,i,o,d,p)}function W4(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var i=n[l],c=i.getSnapshot;i=i.value;try{if(!Gt(c(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xl(e,t,n,l){t&=~eo,t&=~Jl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var c=31-Ee(i),o=1<<c;l[c]=-1,i&=~o}n!==0&&Qi(e,n,t)}function Gc(){return(Ye&6)===0?(Ei(0),!1):!0}function io(){if(Ce!==null){if(Xe===0)var e=Ce.return;else e=Ce,On=ql=null,Su(e),xa=null,ii=0,e=Ce;for(;e!==null;)A0(e.alternate,e),e=e.return;Ce=null}}function Ca(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,g3(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Zn=0,io(),Je=e,Ce=n=Dn(e.current,null),De=t,Xe=0,Qt=null,yl=!1,Ta=An(e,t),Pu=!1,Ma=Zt=eo=Jl=gl=at=0,Bt=Si=null,to=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var i=31-Ee(l),c=1<<i;t|=e[i],l&=~c}return Qn=t,uc(),n}function P0(e,t){Se=null,g.H=hi,t===ba||t===yc?(t=p1(),Xe=3):t===ou?(t=p1(),Xe=4):Xe=t===ku?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qt=t,Ce===null&&(at=1,Cc(e,en(t,e.current)))}function ef(){var e=Yt.current;return e===null?!0:(De&4194048)===De?an===null:(De&62914560)===De||(De&536870912)!==0?e===an:!1}function tf(){var e=g.H;return g.H=hi,e===null?hi:e}function nf(){var e=g.A;return g.A=J4,e}function Vc(){at=4,yl||(De&4194048)!==De&&Yt.current!==null||(Ta=!0),(gl&134217727)===0&&(Jl&134217727)===0||Je===null||xl(Je,De,Zt,!1)}function co(e,t,n){var l=Ye;Ye|=2;var i=tf(),c=nf();(Je!==e||De!==t)&&(qc=null,Ca(e,t)),t=!1;var o=at;e:do try{if(Xe!==0&&Ce!==null){var d=Ce,p=Qt;switch(Xe){case 8:io(),o=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(t=!0);var z=Xe;if(Xe=0,Qt=null,_a(e,d,p,z),n&&Ta){o=0;break e}break;default:z=Xe,Xe=0,Qt=null,_a(e,d,p,z)}}I4(),o=at;break}catch(R){P0(e,R)}while(!0);return t&&e.shellSuspendCounter++,On=ql=null,Ye=l,g.H=i,g.A=c,Ce===null&&(Je=null,De=0,uc()),o}function I4(){for(;Ce!==null;)lf(Ce)}function P4(e,t){var n=Ye;Ye|=2;var l=tf(),i=nf();Je!==e||De!==t?(qc=null,Bc=ne()+500,Ca(e,t)):Ta=An(e,t);e:do try{if(Xe!==0&&Ce!==null){t=Ce;var c=Qt;t:switch(Xe){case 1:Xe=0,Qt=null,_a(e,t,c,1);break;case 2:case 9:if(h1(c)){Xe=0,Qt=null,af(t);break}t=function(){Xe!==2&&Xe!==9||Je!==e||(Xe=7),Sn(e)},c.then(t,t);break e;case 3:Xe=7;break e;case 4:Xe=5;break e;case 7:h1(c)?(Xe=0,Qt=null,af(t)):(Xe=0,Qt=null,_a(e,t,c,7));break;case 5:var o=null;switch(Ce.tag){case 26:o=Ce.memoizedState;case 5:case 27:var d=Ce;if(o?Xf(o):d.stateNode.complete){Xe=0,Qt=null;var p=d.sibling;if(p!==null)Ce=p;else{var z=d.return;z!==null?(Ce=z,Yc(z)):Ce=null}break t}}Xe=0,Qt=null,_a(e,t,c,5);break;case 6:Xe=0,Qt=null,_a(e,t,c,6);break;case 8:io(),at=6;break e;default:throw Error(r(462))}}e3();break}catch(R){P0(e,R)}while(!0);return On=ql=null,g.H=l,g.A=i,Ye=n,Ce!==null?0:(Je=null,De=0,uc(),at)}function e3(){for(;Ce!==null&&!ie();)lf(Ce)}function lf(e){var t=T0(e.alternate,e,Qn);e.memoizedProps=e.pendingProps,t===null?Yc(e):Ce=t}function af(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=S0(n,t,t.pendingProps,t.type,void 0,De);break;case 11:t=S0(n,t,t.pendingProps,t.type.render,t.ref,De);break;case 5:Su(t);default:A0(n,t),t=Ce=n1(t,Qn),t=T0(n,t,Qn)}e.memoizedProps=e.pendingProps,t===null?Yc(e):Ce=t}function _a(e,t,n,l){On=ql=null,Su(t),xa=null,ii=0;var i=t.return;try{if(V4(e,i,t,n,De)){at=1,Cc(e,en(n,e.current)),Ce=null;return}}catch(c){if(i!==null)throw Ce=i,c;at=1,Cc(e,en(n,e.current)),Ce=null;return}t.flags&32768?(Oe||l===1?e=!0:Ta||(De&536870912)!==0?e=!1:(yl=e=!0,(l===2||l===9||l===3||l===6)&&(l=Yt.current,l!==null&&l.tag===13&&(l.flags|=16384))),cf(t,e)):Yc(t)}function Yc(e){var t=e;do{if((t.flags&32768)!==0){cf(t,yl);return}e=t.return;var n=Q4(t.alternate,t,Qn);if(n!==null){Ce=n;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);at===0&&(at=5)}function cf(e,t){do{var n=Z4(e.alternate,e);if(n!==null){n.flags&=32767,Ce=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ce=e;return}Ce=e=n}while(e!==null);at=6,Ce=null}function sf(e,t,n,l,i,c,o,d,p){e.cancelPendingCommit=null;do Xc();while(St!==0);if((Ye&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=$s,qa(e,n,c,o,d,p),e===Je&&(Ce=Je=null,De=0),Aa=t,bl=e,Zn=n,no=c,lo=i,J0=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,a3(nt,function(){return df(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=g.T,g.T=null,i=O.p,O.p=2,o=Ye,Ye|=4;try{K4(e,t,n)}finally{Ye=o,O.p=i,g.T=l}}St=1,uf(),of(),rf()}}function uf(){if(St===1){St=0;var e=bl,t=Aa,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=g.T,g.T=null;var l=O.p;O.p=2;var i=Ye;Ye|=4;try{G0(t,e);var c=bo,o=Kr(e.containerInfo),d=c.focusedElem,p=c.selectionRange;if(o!==d&&d&&d.ownerDocument&&Zr(d.ownerDocument.documentElement,d)){if(p!==null&&Ys(d)){var z=p.start,R=p.end;if(R===void 0&&(R=z),"selectionStart"in d)d.selectionStart=z,d.selectionEnd=Math.min(R,d.value.length);else{var H=d.ownerDocument||document,M=H&&H.defaultView||window;if(M.getSelection){var A=M.getSelection(),I=d.textContent.length,de=Math.min(p.start,I),$e=p.end===void 0?de:Math.min(p.end,I);!A.extend&&de>$e&&(o=$e,$e=de,de=o);var x=Qr(d,de),b=Qr(d,$e);if(x&&b&&(A.rangeCount!==1||A.anchorNode!==x.node||A.anchorOffset!==x.offset||A.focusNode!==b.node||A.focusOffset!==b.offset)){var w=H.createRange();w.setStart(x.node,x.offset),A.removeAllRanges(),de>$e?(A.addRange(w),A.extend(b.node,b.offset)):(w.setEnd(b.node,b.offset),A.addRange(w))}}}}for(H=[],A=d;A=A.parentNode;)A.nodeType===1&&H.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<H.length;d++){var L=H[d];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}ns=!!vo,bo=vo=null}finally{Ye=i,O.p=l,g.T=n}}e.current=t,St=2}}function of(){if(St===2){St=0;var e=bl,t=Aa,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=g.T,g.T=null;var l=O.p;O.p=2;var i=Ye;Ye|=4;try{H0(e,t.alternate,t)}finally{Ye=i,O.p=l,g.T=n}}St=3}}function rf(){if(St===4||St===3){St=0,Me();var e=bl,t=Aa,n=Zn,l=J0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?St=5:(St=0,Aa=bl=null,ff(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(vl=null),la(n),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(Ft,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=g.T,i=O.p,O.p=2,g.T=null;try{for(var c=e.onRecoverableError,o=0;o<l.length;o++){var d=l[o];c(d.value,{componentStack:d.stack})}}finally{g.T=t,O.p=i}}(Zn&3)!==0&&Xc(),Sn(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===ao?ji++:(ji=0,ao=e):ji=0,Ei(0)}}function ff(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,li(t)))}function Xc(){return uf(),of(),rf(),df()}function df(){if(St!==5)return!1;var e=bl,t=no;no=0;var n=la(Zn),l=g.T,i=O.p;try{O.p=32>n?32:n,g.T=null,n=lo,lo=null;var c=bl,o=Zn;if(St=0,Aa=bl=null,Zn=0,(Ye&6)!==0)throw Error(r(331));var d=Ye;if(Ye|=4,Z0(c.current),Y0(c,c.current,o,n),Ye=d,Ei(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(Ft,c)}catch{}return!0}finally{O.p=i,g.T=l,ff(e,t)}}function hf(e,t,n){t=en(n,t),t=Hu(e.stateNode,t,2),e=dl(e,t,2),e!==null&&(_l(e,2),Sn(e))}function Qe(e,t,n){if(e.tag===3)hf(e,e,n);else for(;t!==null;){if(t.tag===3){hf(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(vl===null||!vl.has(l))){e=en(n,e),n=h0(2),l=dl(t,n,2),l!==null&&(m0(n,l,t,e),_l(l,2),Sn(l));break}}t=t.return}}function so(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new F4;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(n)||(Pu=!0,i.add(n),e=t3.bind(null,e,t,n),t.then(e,e))}function t3(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Je===e&&(De&n)===n&&(at===4||at===3&&(De&62914560)===De&&300>ne()-Uc?(Ye&2)===0&&Ca(e,0):eo|=n,Ma===De&&(Ma=0)),Sn(e)}function mf(e,t){t===0&&(t=Xi()),e=kl(e,t),e!==null&&(_l(e,t),Sn(e))}function n3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),mf(e,n)}function l3(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),mf(e,n)}function a3(e,t){return bt(e,t)}var Qc=null,Ra=null,uo=!1,Zc=!1,oo=!1,Sl=0;function Sn(e){e!==Ra&&e.next===null&&(Ra===null?Qc=Ra=e:Ra=Ra.next=e),Zc=!0,uo||(uo=!0,c3())}function Ei(e,t){if(!oo&&Zc){oo=!0;do for(var n=!1,l=Qc;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var c=0;else{var o=l.suspendedLanes,d=l.pingedLanes;c=(1<<31-Ee(42|e)+1)-1,c&=i&~(o&~d),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,vf(l,c))}else c=De,c=In(l,l===Je?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||An(l,c)||(n=!0,vf(l,c));l=l.next}while(n);oo=!1}}function i3(){pf()}function pf(){Zc=uo=!1;var e=0;Sl!==0&&y3()&&(e=Sl);for(var t=ne(),n=null,l=Qc;l!==null;){var i=l.next,c=yf(l,t);c===0?(l.next=null,n===null?Qc=i:n.next=i,i===null&&(Ra=n)):(n=l,(e!==0||(c&3)!==0)&&(Zc=!0)),l=i}St!==0&&St!==5||Ei(e),Sl!==0&&(Sl=0)}function yf(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var o=31-Ee(c),d=1<<o,p=i[o];p===-1?((d&n)===0||(d&l)!==0)&&(i[o]=Yi(d,t)):p<=t&&(e.expiredLanes|=d),c&=~d}if(t=Je,n=De,n=In(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&B(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||An(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&B(l),la(n)){case 2:case 8:n=ut;break;case 32:n=nt;break;case 268435456:n=rn;break;default:n=nt}return l=gf.bind(null,e),n=bt(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&B(l),e.callbackPriority=2,e.callbackNode=null,2}function gf(e,t){if(St!==0&&St!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Xc()&&e.callbackNode!==n)return null;var l=De;return l=In(e,e===Je?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(W0(e,l,t),yf(e,ne()),e.callbackNode!=null&&e.callbackNode===n?gf.bind(null,e):null)}function vf(e,t){if(Xc())return null;W0(e,t,!0)}function c3(){v3(function(){(Ye&6)!==0?bt(dt,i3):pf()})}function ro(){if(Sl===0){var e=ga;e===0&&(e=Cl,Cl<<=1,(Cl&261888)===0&&(Cl=256)),Sl=e}return Sl}function bf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ec(""+e)}function xf(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function s3(e,t,n,l,i){if(t==="submit"&&n&&n.stateNode===i){var c=bf((i[_t]||null).action),o=l.submitter;o&&(t=(t=o[_t]||null)?bf(t.formAction):o.getAttribute("formAction"),t!==null&&(c=t,o=null));var d=new ac("action","action",null,l,i);e.push({event:d,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Sl!==0){var p=o?xf(i,o):new FormData(i);Cu(n,{pending:!0,data:p,method:i.method,action:c},null,p)}}else typeof c=="function"&&(d.preventDefault(),p=o?xf(i,o):new FormData(i),Cu(n,{pending:!0,data:p,method:i.method,action:c},c,p))},currentTarget:i}]})}}for(var fo=0;fo<Ks.length;fo++){var ho=Ks[fo],u3=ho.toLowerCase(),o3=ho[0].toUpperCase()+ho.slice(1);dn(u3,"on"+o3)}dn(Fr,"onAnimationEnd"),dn(Wr,"onAnimationIteration"),dn(Ir,"onAnimationStart"),dn("dblclick","onDoubleClick"),dn("focusin","onFocus"),dn("focusout","onBlur"),dn(N4,"onTransitionRun"),dn(z4,"onTransitionStart"),dn(T4,"onTransitionCancel"),dn(Pr,"onTransitionEnd"),al("onMouseEnter",["mouseout","mouseover"]),al("onMouseLeave",["mouseout","mouseover"]),al("onPointerEnter",["pointerout","pointerover"]),al("onPointerLeave",["pointerout","pointerover"]),Cn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Cn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Cn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Cn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Cn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Cn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wi="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(" "),r3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wi));function Sf(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],i=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var o=l.length-1;0<=o;o--){var d=l[o],p=d.instance,z=d.currentTarget;if(d=d.listener,p!==c&&i.isPropagationStopped())break e;c=d,i.currentTarget=z;try{c(i)}catch(R){sc(R)}i.currentTarget=null,c=p}else for(o=0;o<l.length;o++){if(d=l[o],p=d.instance,z=d.currentTarget,d=d.listener,p!==c&&i.isPropagationStopped())break e;c=d,i.currentTarget=z;try{c(i)}catch(R){sc(R)}i.currentTarget=null,c=p}}}}function _e(e,t){var n=t[Ya];n===void 0&&(n=t[Ya]=new Set);var l=e+"__bubble";n.has(l)||(jf(t,e,2,!1),n.add(l))}function mo(e,t,n){var l=0;t&&(l|=4),jf(n,e,l,t)}var Kc="_reactListening"+Math.random().toString(36).slice(2);function po(e){if(!e[Kc]){e[Kc]=!0,$i.forEach(function(n){n!=="selectionchange"&&(r3.has(n)||mo(n,!1,e),mo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kc]||(t[Kc]=!0,mo("selectionchange",!1,t))}}function jf(e,t,n,l){switch(Wf(t)){case 2:var i=U3;break;case 8:i=B3;break;default:i=Co}n=i.bind(null,t,n,e),i=void 0,!Ls||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function yo(e,t,n,l,i){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var d=l.stateNode.containerInfo;if(d===i)break;if(o===4)for(o=l.return;o!==null;){var p=o.tag;if((p===3||p===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;d!==null;){if(o=tl(d),o===null)return;if(p=o.tag,p===5||p===6||p===26||p===27){l=c=o;continue e}d=d.parentNode}}l=l.return}zr(function(){var z=c,R=Rs(n),H=[];e:{var M=e1.get(e);if(M!==void 0){var A=ac,I=e;switch(e){case"keypress":if(nc(n)===0)break e;case"keydown":case"keyup":A=l4;break;case"focusin":I="focus",A=Us;break;case"focusout":I="blur",A=Us;break;case"beforeblur":case"afterblur":A=Us;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=Ar;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Q2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=c4;break;case Fr:case Wr:case Ir:A=$2;break;case Pr:A=u4;break;case"scroll":case"scrollend":A=Y2;break;case"wheel":A=r4;break;case"copy":case"cut":case"paste":A=F2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=_r;break;case"toggle":case"beforetoggle":A=d4}var de=(t&4)!==0,$e=!de&&(e==="scroll"||e==="scrollend"),x=de?M!==null?M+"Capture":null:M;de=[];for(var b=z,w;b!==null;){var L=b;if(w=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||w===null||x===null||(L=Za(b,x),L!=null&&de.push(Ni(b,L,w))),$e)break;b=b.return}0<de.length&&(M=new A(M,I,null,n,R),H.push({event:M,listeners:de}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",M&&n!==_s&&(I=n.relatedTarget||n.fromElement)&&(tl(I)||I[Pn]))break e;if((A||M)&&(M=R.window===R?R:(M=R.ownerDocument)?M.defaultView||M.parentWindow:window,A?(I=n.relatedTarget||n.toElement,A=z,I=I?tl(I):null,I!==null&&($e=m(I),de=I.tag,I!==$e||de!==5&&de!==27&&de!==6)&&(I=null)):(A=null,I=z),A!==I)){if(de=Ar,L="onMouseLeave",x="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(de=_r,L="onPointerLeave",x="onPointerEnter",b="pointer"),$e=A==null?M:Dl(A),w=I==null?M:Dl(I),M=new de(L,b+"leave",A,n,R),M.target=$e,M.relatedTarget=w,L=null,tl(R)===z&&(de=new de(x,b+"enter",I,n,R),de.target=w,de.relatedTarget=$e,L=de),$e=L,A&&I)t:{for(de=f3,x=A,b=I,w=0,L=x;L;L=de(L))w++;L=0;for(var ce=b;ce;ce=de(ce))L++;for(;0<w-L;)x=de(x),w--;for(;0<L-w;)b=de(b),L--;for(;w--;){if(x===b||b!==null&&x===b.alternate){de=x;break t}x=de(x),b=de(b)}de=null}else de=null;A!==null&&Ef(H,M,A,de,!1),I!==null&&$e!==null&&Ef(H,$e,I,de,!0)}}e:{if(M=z?Dl(z):window,A=M.nodeName&&M.nodeName.toLowerCase(),A==="select"||A==="input"&&M.type==="file")var qe=Br;else if(kr(M))if(qr)qe=j4;else{qe=x4;var ae=b4}else A=M.nodeName,!A||A.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?z&&Cs(z.elementType)&&(qe=Br):qe=S4;if(qe&&(qe=qe(e,z))){Ur(H,qe,n,R);break e}ae&&ae(e,M,z),e==="focusout"&&z&&M.type==="number"&&z.memoizedProps.value!=null&&As(M,"number",M.value)}switch(ae=z?Dl(z):window,e){case"focusin":(kr(ae)||ae.contentEditable==="true")&&(oa=ae,Xs=z,ei=null);break;case"focusout":ei=Xs=oa=null;break;case"mousedown":Qs=!0;break;case"contextmenu":case"mouseup":case"dragend":Qs=!1,$r(H,n,R);break;case"selectionchange":if(w4)break;case"keydown":case"keyup":$r(H,n,R)}var we;if(qs)e:{switch(e){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else ua?Or(e,n)&&(Le="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Le="onCompositionStart");Le&&(Rr&&n.locale!=="ko"&&(ua||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&ua&&(we=Tr()):(il=R,Os="value"in il?il.value:il.textContent,ua=!0)),ae=$c(z,Le),0<ae.length&&(Le=new Cr(Le,e,null,n,R),H.push({event:Le,listeners:ae}),we?Le.data=we:(we=Hr(n),we!==null&&(Le.data=we)))),(we=m4?p4(e,n):y4(e,n))&&(Le=$c(z,"onBeforeInput"),0<Le.length&&(ae=new Cr("onBeforeInput","beforeinput",null,n,R),H.push({event:ae,listeners:Le}),ae.data=we)),s3(H,e,z,n,R)}Sf(H,t)})}function Ni(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $c(e,t){for(var n=t+"Capture",l=[];e!==null;){var i=e,c=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||c===null||(i=Za(e,n),i!=null&&l.unshift(Ni(e,i,c)),i=Za(e,t),i!=null&&l.push(Ni(e,i,c))),e.tag===3)return l;e=e.return}return[]}function f3(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ef(e,t,n,l,i){for(var c=t._reactName,o=[];n!==null&&n!==l;){var d=n,p=d.alternate,z=d.stateNode;if(d=d.tag,p!==null&&p===l)break;d!==5&&d!==26&&d!==27||z===null||(p=z,i?(z=Za(n,c),z!=null&&o.unshift(Ni(n,z,p))):i||(z=Za(n,c),z!=null&&o.push(Ni(n,z,p)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var d3=/\r\n?/g,h3=/\u0000|\uFFFD/g;function wf(e){return(typeof e=="string"?e:""+e).replace(d3,`
|
|
49
|
+
`).replace(h3,"")}function Nf(e,t){return t=wf(t),wf(e)===t}function Ke(e,t,n,l,i,c){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||ia(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&ia(e,""+l);break;case"className":J(e,"class",l);break;case"tabIndex":J(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":J(e,n,l);break;case"style":wr(e,l,c);break;case"data":if(t!=="object"){J(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=ec(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&Ke(e,t,"name",i.name,i,null),Ke(e,t,"formEncType",i.formEncType,i,null),Ke(e,t,"formMethod",i.formMethod,i,null),Ke(e,t,"formTarget",i.formTarget,i,null)):(Ke(e,t,"encType",i.encType,i,null),Ke(e,t,"method",i.method,i,null),Ke(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=ec(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=_n);break;case"onScroll":l!=null&&_e("scroll",e);break;case"onScrollEnd":l!=null&&_e("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=ec(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":_e("beforetoggle",e),_e("toggle",e),_(e,"popover",l);break;case"xlinkActuate":le(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":le(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":le(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":le(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":le(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":le(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":le(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":le(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":le(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":_(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=G2.get(n)||n,_(e,n,l))}}function go(e,t,n,l,i,c){switch(n){case"style":wr(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof l=="string"?ia(e,l):(typeof l=="number"||typeof l=="bigint")&&ia(e,""+l);break;case"onScroll":l!=null&&_e("scroll",e);break;case"onScrollEnd":l!=null&&_e("scrollend",e);break;case"onClick":l!=null&&(e.onclick=_n);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ji.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),c=e[_t]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,i),typeof l=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,i);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):_(e,n,l)}}}function zt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",e),_e("load",e);var l=!1,i=!1,c;for(c in n)if(n.hasOwnProperty(c)){var o=n[c];if(o!=null)switch(c){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ke(e,t,c,o,n,null)}}i&&Ke(e,t,"srcSet",n.srcSet,n,null),l&&Ke(e,t,"src",n.src,n,null);return;case"input":_e("invalid",e);var d=c=o=i=null,p=null,z=null;for(l in n)if(n.hasOwnProperty(l)){var R=n[l];if(R!=null)switch(l){case"name":i=R;break;case"type":o=R;break;case"checked":p=R;break;case"defaultChecked":z=R;break;case"value":c=R;break;case"defaultValue":d=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(137,t));break;default:Ke(e,t,l,R,n,null)}}xr(e,c,d,p,z,o,i,!1);return;case"select":_e("invalid",e),l=o=c=null;for(i in n)if(n.hasOwnProperty(i)&&(d=n[i],d!=null))switch(i){case"value":c=d;break;case"defaultValue":o=d;break;case"multiple":l=d;default:Ke(e,t,i,d,n,null)}t=c,n=o,e.multiple=!!l,t!=null?aa(e,!!l,t,!1):n!=null&&aa(e,!!l,n,!0);return;case"textarea":_e("invalid",e),c=i=l=null;for(o in n)if(n.hasOwnProperty(o)&&(d=n[o],d!=null))switch(o){case"value":l=d;break;case"defaultValue":i=d;break;case"children":c=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:Ke(e,t,o,d,n,null)}jr(e,l,i,c);return;case"option":for(p in n)if(n.hasOwnProperty(p)&&(l=n[p],l!=null))switch(p){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ke(e,t,p,l,n,null)}return;case"dialog":_e("beforetoggle",e),_e("toggle",e),_e("cancel",e),_e("close",e);break;case"iframe":case"object":_e("load",e);break;case"video":case"audio":for(l=0;l<wi.length;l++)_e(wi[l],e);break;case"image":_e("error",e),_e("load",e);break;case"details":_e("toggle",e);break;case"embed":case"source":case"link":_e("error",e),_e("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(z in n)if(n.hasOwnProperty(z)&&(l=n[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ke(e,t,z,l,n,null)}return;default:if(Cs(t)){for(R in n)n.hasOwnProperty(R)&&(l=n[R],l!==void 0&&go(e,t,R,l,n,void 0));return}}for(d in n)n.hasOwnProperty(d)&&(l=n[d],l!=null&&Ke(e,t,d,l,n,null))}function m3(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,c=null,o=null,d=null,p=null,z=null,R=null;for(A in n){var H=n[A];if(n.hasOwnProperty(A)&&H!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":p=H;default:l.hasOwnProperty(A)||Ke(e,t,A,null,l,H)}}for(var M in l){var A=l[M];if(H=n[M],l.hasOwnProperty(M)&&(A!=null||H!=null))switch(M){case"type":c=A;break;case"name":i=A;break;case"checked":z=A;break;case"defaultChecked":R=A;break;case"value":o=A;break;case"defaultValue":d=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(137,t));break;default:A!==H&&Ke(e,t,M,A,l,H)}}Ms(e,o,d,p,z,R,c,i);return;case"select":A=o=d=M=null;for(c in n)if(p=n[c],n.hasOwnProperty(c)&&p!=null)switch(c){case"value":break;case"multiple":A=p;default:l.hasOwnProperty(c)||Ke(e,t,c,null,l,p)}for(i in l)if(c=l[i],p=n[i],l.hasOwnProperty(i)&&(c!=null||p!=null))switch(i){case"value":M=c;break;case"defaultValue":d=c;break;case"multiple":o=c;default:c!==p&&Ke(e,t,i,c,l,p)}t=d,n=o,l=A,M!=null?aa(e,!!n,M,!1):!!l!=!!n&&(t!=null?aa(e,!!n,t,!0):aa(e,!!n,n?[]:"",!1));return;case"textarea":A=M=null;for(d in n)if(i=n[d],n.hasOwnProperty(d)&&i!=null&&!l.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Ke(e,t,d,null,l,i)}for(o in l)if(i=l[o],c=n[o],l.hasOwnProperty(o)&&(i!=null||c!=null))switch(o){case"value":M=i;break;case"defaultValue":A=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(r(91));break;default:i!==c&&Ke(e,t,o,i,l,c)}Sr(e,M,A);return;case"option":for(var I in n)if(M=n[I],n.hasOwnProperty(I)&&M!=null&&!l.hasOwnProperty(I))switch(I){case"selected":e.selected=!1;break;default:Ke(e,t,I,null,l,M)}for(p in l)if(M=l[p],A=n[p],l.hasOwnProperty(p)&&M!==A&&(M!=null||A!=null))switch(p){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:Ke(e,t,p,M,l,A)}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 de in n)M=n[de],n.hasOwnProperty(de)&&M!=null&&!l.hasOwnProperty(de)&&Ke(e,t,de,null,l,M);for(z in l)if(M=l[z],A=n[z],l.hasOwnProperty(z)&&M!==A&&(M!=null||A!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,t));break;default:Ke(e,t,z,M,l,A)}return;default:if(Cs(t)){for(var $e in n)M=n[$e],n.hasOwnProperty($e)&&M!==void 0&&!l.hasOwnProperty($e)&&go(e,t,$e,void 0,l,M);for(R in l)M=l[R],A=n[R],!l.hasOwnProperty(R)||M===A||M===void 0&&A===void 0||go(e,t,R,M,l,A);return}}for(var x in n)M=n[x],n.hasOwnProperty(x)&&M!=null&&!l.hasOwnProperty(x)&&Ke(e,t,x,null,l,M);for(H in l)M=l[H],A=n[H],!l.hasOwnProperty(H)||M===A||M==null&&A==null||Ke(e,t,H,M,l,A)}function zf(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function p3(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var i=n[l],c=i.transferSize,o=i.initiatorType,d=i.duration;if(c&&d&&zf(o)){for(o=0,d=i.responseEnd,l+=1;l<n.length;l++){var p=n[l],z=p.startTime;if(z>d)break;var R=p.transferSize,H=p.initiatorType;R&&zf(H)&&(p=p.responseEnd,o+=R*(p<d?1:(d-z)/(p-z)))}if(--l,t+=8*(c+o)/(i.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 vo=null,bo=null;function Jc(e){return e.nodeType===9?e:e.ownerDocument}function Tf(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 Mf(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 xo(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 So=null;function y3(){var e=window.event;return e&&e.type==="popstate"?e===So?!1:(So=e,!0):(So=null,!1)}var Af=typeof setTimeout=="function"?setTimeout:void 0,g3=typeof clearTimeout=="function"?clearTimeout:void 0,Cf=typeof Promise=="function"?Promise:void 0,v3=typeof queueMicrotask=="function"?queueMicrotask:typeof Cf<"u"?function(e){return Cf.resolve(null).then(e).catch(b3)}:Af;function b3(e){setTimeout(function(){throw e})}function jl(e){return e==="head"}function _f(e,t){var n=t,l=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(i),Ha(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")zi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,zi(n);for(var c=n.firstChild;c;){var o=c.nextSibling,d=c.nodeName;c[el]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=o}}else n==="body"&&zi(e.ownerDocument.body);n=i}while(n);Ha(t)}function Rf(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function jo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":jo(n),Xa(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function x3(e,t,n,l){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[el])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=cn(e.nextSibling),e===null)break}return null}function S3(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=cn(e.nextSibling),e===null))return null;return e}function Df(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=cn(e.nextSibling),e===null))return null;return e}function Eo(e){return e.data==="$?"||e.data==="$~"}function wo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function j3(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function cn(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 No=null;function Lf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return cn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Of(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Hf(e,t,n){switch(t=Jc(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function zi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Xa(e)}var sn=new Map,kf=new Set;function Fc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Kn=O.d;O.d={f:E3,r:w3,D:N3,C:z3,L:T3,m:M3,X:C3,S:A3,M:_3};function E3(){var e=Kn.f(),t=Gc();return e||t}function w3(e){var t=nl(e);t!==null&&t.tag===5&&t.type==="form"?P1(t):Kn.r(e)}var Da=typeof document>"u"?null:document;function Uf(e,t,n){var l=Da;if(l&&typeof t=="string"&&t){var i=It(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),kf.has(i)||(kf.add(i),e={rel:e,crossOrigin:n,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),zt(t,"link",e),mt(t),l.head.appendChild(t)))}}function N3(e){Kn.D(e),Uf("dns-prefetch",e,null)}function z3(e,t){Kn.C(e,t),Uf("preconnect",e,t)}function T3(e,t,n){Kn.L(e,t,n);var l=Da;if(l&&e&&t){var i='link[rel="preload"][as="'+It(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+It(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+It(n.imageSizes)+'"]')):i+='[href="'+It(e)+'"]';var c=i;switch(t){case"style":c=La(e);break;case"script":c=Oa(e)}sn.has(c)||(e=D({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),sn.set(c,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(Ti(c))||t==="script"&&l.querySelector(Mi(c))||(t=l.createElement("link"),zt(t,"link",e),mt(t),l.head.appendChild(t)))}}function M3(e,t){Kn.m(e,t);var n=Da;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+It(l)+'"][href="'+It(e)+'"]',c=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Oa(e)}if(!sn.has(c)&&(e=D({rel:"modulepreload",href:e},t),sn.set(c,e),n.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Mi(c)))return}l=n.createElement("link"),zt(l,"link",e),mt(l),n.head.appendChild(l)}}}function A3(e,t,n){Kn.S(e,t,n);var l=Da;if(l&&e){var i=ll(l).hoistableStyles,c=La(e);t=t||"default";var o=i.get(c);if(!o){var d={loading:0,preload:null};if(o=l.querySelector(Ti(c)))d.loading=5;else{e=D({rel:"stylesheet",href:e,"data-precedence":t},n),(n=sn.get(c))&&zo(e,n);var p=o=l.createElement("link");mt(p),zt(p,"link",e),p._p=new Promise(function(z,R){p.onload=z,p.onerror=R}),p.addEventListener("load",function(){d.loading|=1}),p.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Wc(o,t,l)}o={type:"stylesheet",instance:o,count:1,state:d},i.set(c,o)}}}function C3(e,t){Kn.X(e,t);var n=Da;if(n&&e){var l=ll(n).hoistableScripts,i=Oa(e),c=l.get(i);c||(c=n.querySelector(Mi(i)),c||(e=D({src:e,async:!0},t),(t=sn.get(i))&&To(e,t),c=n.createElement("script"),mt(c),zt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(i,c))}}function _3(e,t){Kn.M(e,t);var n=Da;if(n&&e){var l=ll(n).hoistableScripts,i=Oa(e),c=l.get(i);c||(c=n.querySelector(Mi(i)),c||(e=D({src:e,async:!0,type:"module"},t),(t=sn.get(i))&&To(e,t),c=n.createElement("script"),mt(c),zt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(i,c))}}function Bf(e,t,n,l){var i=(i=V.current)?Fc(i):null;if(!i)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=La(n.href),n=ll(i).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=La(n.href);var c=ll(i).hoistableStyles,o=c.get(e);if(o||(i=i.ownerDocument||i,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,o),(c=i.querySelector(Ti(e)))&&!c._p&&(o.instance=c,o.state.loading=5),sn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},sn.set(e,n),c||R3(i,e,n,o.state))),t&&l===null)throw Error(r(528,""));return o}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Oa(n),n=ll(i).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function La(e){return'href="'+It(e)+'"'}function Ti(e){return'link[rel="stylesheet"]['+e+"]"}function qf(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function R3(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),zt(t,"link",n),mt(t),e.head.appendChild(t))}function Oa(e){return'[src="'+It(e)+'"]'}function Mi(e){return"script[async]"+e}function Gf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+It(n.href)+'"]');if(l)return t.instance=l,mt(l),l;var i=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),mt(l),zt(l,"style",i),Wc(l,n.precedence,e),t.instance=l;case"stylesheet":i=La(n.href);var c=e.querySelector(Ti(i));if(c)return t.state.loading|=4,t.instance=c,mt(c),c;l=qf(n),(i=sn.get(i))&&zo(l,i),c=(e.ownerDocument||e).createElement("link"),mt(c);var o=c;return o._p=new Promise(function(d,p){o.onload=d,o.onerror=p}),zt(c,"link",l),t.state.loading|=4,Wc(c,n.precedence,e),t.instance=c;case"script":return c=Oa(n.src),(i=e.querySelector(Mi(c)))?(t.instance=i,mt(i),i):(l=n,(i=sn.get(c))&&(l=D({},n),To(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),mt(i),zt(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Wc(l,n.precedence,e));return t.instance}function Wc(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,c=i,o=0;o<l.length;o++){var d=l[o];if(d.dataset.precedence===t)c=d;else if(c!==i)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function zo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function To(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ic=null;function Vf(e,t,n){if(Ic===null){var l=new Map,i=Ic=new Map;i.set(n,l)}else i=Ic,l=i.get(n),l||(l=new Map,i.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var c=n[i];if(!(c[el]||c[xt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var o=c.getAttribute(t)||"";o=e+o;var d=l.get(o);d?d.push(c):l.set(o,[c])}}return l}function Yf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function D3(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Xf(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function L3(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=La(l.href),c=t.querySelector(Ti(i));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Pc.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,mt(c);return}c=t.ownerDocument||t,l=qf(l),(i=sn.get(i))&&zo(l,i),c=c.createElement("link"),mt(c);var o=c;o._p=new Promise(function(d,p){o.onload=d,o.onerror=p}),zt(c,"link",l),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Pc.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Mo=0;function O3(e,t){return e.stylesheets&&e.count===0&&ts(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&ts(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Mo===0&&(Mo=62500*p3());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ts(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Mo?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function Pc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ts(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var es=null;function ts(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,es=new Map,t.forEach(H3,e),es=null,Pc.call(e))}function H3(e,t){if(!(t.state.loading&4)){var n=es.get(e);if(n)var l=n.get(null);else{n=new Map,es.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<i.length;c++){var o=i[c];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(n.set(o.dataset.precedence,o),l=o)}l&&n.set(null,l)}i=t.instance,o=i.getAttribute("data-precedence"),c=n.get(o)||l,c===l&&n.set(null,i),n.set(o,i),this.count++,l=Pc.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),c?c.parentNode.insertBefore(i,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Ai={$$typeof:me,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function k3(e,t,n,l,i,c,o,d,p){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=Ba(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ba(0),this.hiddenUpdates=Ba(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=c,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function Qf(e,t,n,l,i,c,o,d,p,z,R,H){return e=new k3(e,t,n,o,p,z,R,H,d),t=1,c===!0&&(t|=24),c=Vt(3,null,null,t),e.current=c,c.stateNode=e,t=cu(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:n,cache:t},ru(c),e}function Zf(e){return e?(e=da,e):da}function Kf(e,t,n,l,i,c){i=Zf(i),l.context===null?l.context=i:l.pendingContext=i,l=fl(t),l.payload={element:n},c=c===void 0?null:c,c!==null&&(l.callback=c),n=dl(e,l,t),n!==null&&(qt(n,e,t),si(n,e,t))}function $f(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ao(e,t){$f(e,t),(e=e.alternate)&&$f(e,t)}function Jf(e){if(e.tag===13||e.tag===31){var t=kl(e,67108864);t!==null&&qt(t,e,67108864),Ao(e,67108864)}}function Ff(e){if(e.tag===13||e.tag===31){var t=Kt();t=Ga(t);var n=kl(e,t);n!==null&&qt(n,e,t),Ao(e,t)}}var ns=!0;function U3(e,t,n,l){var i=g.T;g.T=null;var c=O.p;try{O.p=2,Co(e,t,n,l)}finally{O.p=c,g.T=i}}function B3(e,t,n,l){var i=g.T;g.T=null;var c=O.p;try{O.p=8,Co(e,t,n,l)}finally{O.p=c,g.T=i}}function Co(e,t,n,l){if(ns){var i=_o(l);if(i===null)yo(e,t,l,ls,n),If(e,l);else if(G3(i,e,t,n,l))l.stopPropagation();else if(If(e,l),t&4&&-1<q3.indexOf(e)){for(;i!==null;){var c=nl(i);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var o=Mn(c.pendingLanes);if(o!==0){var d=c;for(d.pendingLanes|=2,d.entangledLanes|=2;o;){var p=1<<31-Ee(o);d.entanglements[1]|=p,o&=~p}Sn(c),(Ye&6)===0&&(Bc=ne()+500,Ei(0))}}break;case 31:case 13:d=kl(c,2),d!==null&&qt(d,c,2),Gc(),Ao(c,2)}if(c=_o(l),c===null&&yo(e,t,l,ls,n),c===i)break;i=c}i!==null&&l.stopPropagation()}else yo(e,t,l,null,n)}}function _o(e){return e=Rs(e),Ro(e)}var ls=null;function Ro(e){if(ls=null,e=tl(e),e!==null){var t=m(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=S(t),e!==null)return e;e=null}else if(n===31){if(e=T(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ls=e,null}function Wf(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(oe()){case dt:return 2;case ut:return 8;case nt:case Jt:return 32;case rn:return 268435456;default:return 32}default:return 32}}var Do=!1,El=null,wl=null,Nl=null,Ci=new Map,_i=new Map,zl=[],q3="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 If(e,t){switch(e){case"focusin":case"focusout":El=null;break;case"dragenter":case"dragleave":wl=null;break;case"mouseover":case"mouseout":Nl=null;break;case"pointerover":case"pointerout":Ci.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_i.delete(t.pointerId)}}function Ri(e,t,n,l,i,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:c,targetContainers:[i]},t!==null&&(t=nl(t),t!==null&&Jf(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function G3(e,t,n,l,i){switch(t){case"focusin":return El=Ri(El,e,t,n,l,i),!0;case"dragenter":return wl=Ri(wl,e,t,n,l,i),!0;case"mouseover":return Nl=Ri(Nl,e,t,n,l,i),!0;case"pointerover":var c=i.pointerId;return Ci.set(c,Ri(Ci.get(c)||null,e,t,n,l,i)),!0;case"gotpointercapture":return c=i.pointerId,_i.set(c,Ri(_i.get(c)||null,e,t,n,l,i)),!0}return!1}function Pf(e){var t=tl(e.target);if(t!==null){var n=m(t);if(n!==null){if(t=n.tag,t===13){if(t=S(n),t!==null){e.blockedOn=t,Va(e.priority,function(){Ff(n)});return}}else if(t===31){if(t=T(n),t!==null){e.blockedOn=t,Va(e.priority,function(){Ff(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function as(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=_o(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);_s=l,n.target.dispatchEvent(l),_s=null}else return t=nl(n),t!==null&&Jf(t),e.blockedOn=n,!1;t.shift()}return!0}function ed(e,t,n){as(e)&&n.delete(t)}function V3(){Do=!1,El!==null&&as(El)&&(El=null),wl!==null&&as(wl)&&(wl=null),Nl!==null&&as(Nl)&&(Nl=null),Ci.forEach(ed),_i.forEach(ed)}function is(e,t){e.blockedOn===t&&(e.blockedOn=null,Do||(Do=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,V3)))}var cs=null;function td(e){cs!==e&&(cs=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){cs===e&&(cs=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if(Ro(l||n)===null)continue;break}var c=nl(n);c!==null&&(e.splice(t,3),t-=3,Cu(c,{pending:!0,data:i,method:n.method,action:l},l,i))}}))}function Ha(e){function t(p){return is(p,e)}El!==null&&is(El,e),wl!==null&&is(wl,e),Nl!==null&&is(Nl,e),Ci.forEach(t),_i.forEach(t);for(var n=0;n<zl.length;n++){var l=zl[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<zl.length&&(n=zl[0],n.blockedOn===null);)Pf(n),n.blockedOn===null&&zl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var i=n[l],c=n[l+1],o=i[_t]||null;if(typeof c=="function")o||td(n);else if(o){var d=null;if(c&&c.hasAttribute("formAction")){if(i=c,o=c[_t]||null)d=o.formAction;else if(Ro(i)!==null)continue}else d=o.action;typeof d=="function"?n[l+1]=d:(n.splice(l,3),l-=3),td(n)}}}function nd(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(o){return i=o})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Lo(e){this._internalRoot=e}ss.prototype.render=Lo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,l=Kt();Kf(n,l,e,t,null,null)},ss.prototype.unmount=Lo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Kf(e.current,2,null,e,null,null),Gc(),t[Pn]=null}};function ss(e){this._internalRoot=e}ss.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zi();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zl.length&&t!==0&&t<zl[n].priority;n++);zl.splice(n,0,e),n===0&&Pf(e)}};var ld=u.version;if(ld!=="19.2.6")throw Error(r(527,ld,"19.2.6"));O.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=y(t),e=e!==null?N(e):null,e=e===null?null:e.stateNode,e};var Y3={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:g,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var us=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!us.isDisabled&&us.supportsFiber)try{Ft=us.inject(Y3),ht=us}catch{}}return Li.createRoot=function(e,t){if(!h(e))throw Error(r(299));var n=!1,l="",i=o0,c=r0,o=f0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Qf(e,1,!1,null,null,n,l,null,i,c,o,nd),e[Pn]=t.current,po(e),new Lo(t)},Li.hydrateRoot=function(e,t,n){if(!h(e))throw Error(r(299));var l=!1,i="",c=o0,o=r0,d=f0,p=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(d=n.onRecoverableError),n.formState!==void 0&&(p=n.formState)),t=Qf(e,1,!0,t,n??null,l,i,p,c,o,d,nd),t.context=Zf(null),n=t.current,l=Kt(),l=Ga(l),i=fl(l),i.callback=null,dl(n,i,l),n=l,t.current.lanes=n,_l(t,n),Sn(t),e[Pn]=t.current,po(e),new ss(t)},Li.version="19.2.6",Li}var hd;function P3(){if(hd)return ko.exports;hd=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(u){console.error(u)}}return a(),ko.exports=I3(),ko.exports}var eh=P3();/**
|
|
50
|
+
* @license lucide-react v1.16.0 - 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 $d=(...a)=>a.filter((u,f,r)=>!!u&&u.trim()!==""&&r.indexOf(u)===f).join(" ").trim();/**
|
|
55
|
+
* @license lucide-react v1.16.0 - 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
|
+
*/const th=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
60
|
+
* @license lucide-react v1.16.0 - 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 nh=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(u,f,r)=>r?r.toUpperCase():f.toLowerCase());/**
|
|
65
|
+
* @license lucide-react v1.16.0 - 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 md=a=>{const u=nh(a);return u.charAt(0).toUpperCase()+u.slice(1)};/**
|
|
70
|
+
* @license lucide-react v1.16.0 - 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
|
+
*/var Go={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"};/**
|
|
75
|
+
* @license lucide-react v1.16.0 - 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 lh=a=>{for(const u in a)if(u.startsWith("aria-")||u==="role"||u==="title")return!0;return!1},ah=j.createContext({}),ih=()=>j.useContext(ah),ch=j.forwardRef(({color:a,size:u,strokeWidth:f,absoluteStrokeWidth:r,className:h="",children:m,iconNode:S,...T},E)=>{const{size:y=24,strokeWidth:N=2,absoluteStrokeWidth:D=!1,color:k="currentColor",className:U=""}=ih()??{},Y=r??D?Number(f??N)*24/Number(u??y):f??N;return j.createElement("svg",{ref:E,...Go,width:u??y??Go.width,height:u??y??Go.height,stroke:a??k,strokeWidth:Y,className:$d("lucide",U,h),...!m&&!lh(T)&&{"aria-hidden":"true"},...T},[...S.map(([re,ve])=>j.createElement(re,ve)),...Array.isArray(m)?m:[m]])});/**
|
|
80
|
+
* @license lucide-react v1.16.0 - 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 ge=(a,u)=>{const f=j.forwardRef(({className:r,...h},m)=>j.createElement(ch,{ref:m,iconNode:u,className:$d(`lucide-${th(md(a))}`,`lucide-${a}`,r),...h}));return f.displayName=md(a),f};/**
|
|
85
|
+
* @license lucide-react v1.16.0 - 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 sh=[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]],uh=ge("app-window",sh);/**
|
|
90
|
+
* @license lucide-react v1.16.0 - 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 oh=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Jd=ge("arrow-right",oh);/**
|
|
95
|
+
* @license lucide-react v1.16.0 - 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 rh=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],jn=ge("check",rh);/**
|
|
100
|
+
* @license lucide-react v1.16.0 - 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 fh=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ta=ge("chevron-down",fh);/**
|
|
105
|
+
* @license lucide-react v1.16.0 - 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 dh=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Fd=ge("chevron-right",dh);/**
|
|
110
|
+
* @license lucide-react v1.16.0 - 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 hh=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],mh=ge("chevron-up",hh);/**
|
|
115
|
+
* @license lucide-react v1.16.0 - 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 ph=[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]],yh=ge("chevrons-down",ph);/**
|
|
120
|
+
* @license lucide-react v1.16.0 - 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 gh=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],vh=ge("chevrons-up-down",gh);/**
|
|
125
|
+
* @license lucide-react v1.16.0 - 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 bh=[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]],xh=ge("chevrons-up",bh);/**
|
|
130
|
+
* @license lucide-react v1.16.0 - 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 Sh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],jh=ge("circle-alert",Sh);/**
|
|
135
|
+
* @license lucide-react v1.16.0 - 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 Eh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],nr=ge("circle-check",Eh);/**
|
|
140
|
+
* @license lucide-react v1.16.0 - 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 wh=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],Nh=ge("clipboard",wh);/**
|
|
145
|
+
* @license lucide-react v1.16.0 - 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 zh=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],Ml=ge("code-xml",zh);/**
|
|
150
|
+
* @license lucide-react v1.16.0 - 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 Th=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],Mh=ge("columns-2",Th);/**
|
|
155
|
+
* @license lucide-react v1.16.0 - 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 Ah=[["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"}]],Ch=ge("copy",Ah);/**
|
|
160
|
+
* @license lucide-react v1.16.0 - 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 _h=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Rh=ge("ellipsis",_h);/**
|
|
165
|
+
* @license lucide-react v1.16.0 - 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 Dh=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Lh=ge("external-link",Dh);/**
|
|
170
|
+
* @license lucide-react v1.16.0 - 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 Oh=[["path",{d:"M14 22h4a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v6",key:"14cnrg"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M5 14a1 1 0 0 0-1 1v2a1 1 0 0 1-1 1 1 1 0 0 1 1 1v2a1 1 0 0 0 1 1",key:"sr0ebq"}],["path",{d:"M9 22a1 1 0 0 0 1-1v-2a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-2a1 1 0 0 0-1-1",key:"w793db"}]],Hh=ge("file-braces-corner",Oh);/**
|
|
175
|
+
* @license lucide-react v1.16.0 - 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 kh=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],lr=ge("file-code-corner",kh);/**
|
|
180
|
+
* @license lucide-react v1.16.0 - 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 Uh=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]],Bh=ge("file-search",Uh);/**
|
|
185
|
+
* @license lucide-react v1.16.0 - 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 qh=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Wd=ge("file-text",qh);/**
|
|
190
|
+
* @license lucide-react v1.16.0 - 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 Gh=[["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"}]],Id=ge("folder-open",Gh);/**
|
|
195
|
+
* @license lucide-react v1.16.0 - 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 Vh=[["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"}]],Yh=ge("folder",Vh);/**
|
|
200
|
+
* @license lucide-react v1.16.0 - 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 Xh=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],ms=ge("git-branch",Xh);/**
|
|
205
|
+
* @license lucide-react v1.16.0 - 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 Qh=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],Zh=ge("git-commit-horizontal",Qh);/**
|
|
210
|
+
* @license lucide-react v1.16.0 - 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 Kh=[["circle",{cx:"12",cy:"9",r:"1",key:"124mty"}],["circle",{cx:"19",cy:"9",r:"1",key:"1ruzo2"}],["circle",{cx:"5",cy:"9",r:"1",key:"1a8b28"}],["circle",{cx:"12",cy:"15",r:"1",key:"1e56xg"}],["circle",{cx:"19",cy:"15",r:"1",key:"1a92ep"}],["circle",{cx:"5",cy:"15",r:"1",key:"5r1jwy"}]],$h=ge("grip-horizontal",Kh);/**
|
|
215
|
+
* @license lucide-react v1.16.0 - 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 Jh=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ar=ge("loader-circle",Jh);/**
|
|
220
|
+
* @license lucide-react v1.16.0 - 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 Fh=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]],Wh=ge("message-square-plus",Fh);/**
|
|
225
|
+
* @license lucide-react v1.16.0 - 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 Ih=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Pl=ge("message-square",Ih);/**
|
|
230
|
+
* @license lucide-react v1.16.0 - 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 Ph=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],em=ge("monitor",Ph);/**
|
|
235
|
+
* @license lucide-react v1.16.0 - 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 tm=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],nm=ge("moon",tm);/**
|
|
240
|
+
* @license lucide-react v1.16.0 - 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 lm=[["path",{d:"m18 8 4 4-4 4",key:"1ak13k"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}]],am=ge("move-horizontal",lm);/**
|
|
245
|
+
* @license lucide-react v1.16.0 - 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 im=[["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"}]],cm=ge("panel-left-close",im);/**
|
|
250
|
+
* @license lucide-react v1.16.0 - 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 sm=[["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"}]],um=ge("panel-left-open",sm);/**
|
|
255
|
+
* @license lucide-react v1.16.0 - 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 om=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Pd=ge("pencil",om);/**
|
|
260
|
+
* @license lucide-react v1.16.0 - 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 rm=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],fm=ge("play",rm);/**
|
|
265
|
+
* @license lucide-react v1.16.0 - 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 dm=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],e2=ge("plus",dm);/**
|
|
270
|
+
* @license lucide-react v1.16.0 - 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 hm=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],mm=ge("search",hm);/**
|
|
275
|
+
* @license lucide-react v1.16.0 - 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 pm=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],ym=ge("send",pm);/**
|
|
280
|
+
* @license lucide-react v1.16.0 - 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 gm=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],vm=ge("sliders-horizontal",gm);/**
|
|
285
|
+
* @license lucide-react v1.16.0 - 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 bm=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],xm=ge("square-terminal",bm);/**
|
|
290
|
+
* @license lucide-react v1.16.0 - 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 Sm=[["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"}]],jm=ge("sun",Sm);/**
|
|
295
|
+
* @license lucide-react v1.16.0 - ISC
|
|
296
|
+
*
|
|
297
|
+
* This source code is licensed under the ISC license.
|
|
298
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
299
|
+
*/const Em=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Wo=ge("terminal",Em);/**
|
|
300
|
+
* @license lucide-react v1.16.0 - ISC
|
|
301
|
+
*
|
|
302
|
+
* This source code is licensed under the ISC license.
|
|
303
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
304
|
+
*/const wm=[["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M3 12h14.5a1 1 0 0 1 0 7H13",key:"18xa6z"}],["path",{d:"M3 19h6",key:"1ygdsz"}],["path",{d:"M3 5h18",key:"1u36vt"}]],t2=ge("text-wrap",wm);/**
|
|
305
|
+
* @license lucide-react v1.16.0 - ISC
|
|
306
|
+
*
|
|
307
|
+
* This source code is licensed under the ISC license.
|
|
308
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
309
|
+
*/const Nm=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],ds=ge("trash-2",Nm);/**
|
|
310
|
+
* @license lucide-react v1.16.0 - ISC
|
|
311
|
+
*
|
|
312
|
+
* This source code is licensed under the ISC license.
|
|
313
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
314
|
+
*/const zm=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Vi=ge("x",zm);function Ui(a){return a.kind===void 0||a.kind==="line"}function Bi(a,u={}){const f=Math.min(a.startLine,a.endLine),r=Math.max(a.startLine,a.endLine);if(f===r)return`${a.side}${f}`;const h=u.repeatSideOnEnd===!1?"":a.side;return`${a.side}${f}-${h}${r}`}function Tm(a,u=[]){const f=(a==null?void 0:a.comments)??[],r=new Set(u.map(m=>m.commentId)),h=f.filter(m=>r.has(m.id)).length;return{total:f.length,resolved:h,open:f.length-h}}function ir(a){var u;return Tm(a.feedback,((u=a.resolution)==null?void 0:u.comments)??[])}const Mm="brew install iamrajjoshi/tap/gloss",Am="npm install -g getgloss",Cm="gloss open --json",Vo="npx getgloss open --json",pd="npx skills add iamrajjoshi/gloss --skill gloss -g -a claude-code",_m={side:"R",startLine:45,endLine:45},Rm=[{id:"seed-human-review",side:"R",startLine:45,endLine:45,body:"Apply the review feedback before resolving the thread so the agent cannot skip the human pass.",createdAt:"2026-05-23T00:00:00.000Z"}],yd=[{key:"open-review",oldLine:38,newLine:38,side:"R",tone:"neutral",code:"const review = await gloss.open({ base: 'HEAD' });"},{key:"add-reviewer",oldLine:39,newLine:39,side:"R",tone:"neutral",hiddenUntilExpanded:!0,code:"review.addReviewer('human');"},{key:"blocking-mode",oldLine:40,newLine:40,side:"R",tone:"neutral",hiddenUntilExpanded:!0,code:"review.setMode('blocking');"},{key:"wait-feedback",oldLine:41,newLine:41,side:"R",tone:"neutral",hiddenUntilExpanded:!0,code:"const feedback = await review.waitForFeedback();"},{key:"filter-comments",oldLine:42,newLine:42,side:"R",tone:"neutral",code:"const comments = feedback.comments.filter((comment) => comment.actionable);"},{key:"skip-review",oldLine:43,side:"L",tone:"remove",code:"agent.resumeWithoutReview();"},{key:"skip-status",oldLine:44,side:"L",tone:"remove",code:"agent.postStatus('review skipped');"},{key:"guard-comments",newLine:45,side:"R",tone:"add",code:"if (comments.length > 0) {"},{key:"apply-feedback",newLine:46,side:"R",tone:"add",code:" await agent.applyFeedback(comments);"},{key:"resolve-threads",newLine:47,side:"R",tone:"add",code:" await review.resolveThreads(comments);"},{key:"run-checks",newLine:48,side:"R",tone:"add",code:" await agent.runChecks(['pnpm check', 'pnpm test']);"},{key:"close-guard",newLine:49,side:"R",tone:"add",code:"}"},{key:"write-markdown",newLine:50,side:"R",tone:"add",code:"await review.writeFeedbackMarkdown();"},{key:"attach-validation",newLine:51,side:"R",tone:"add",code:"await review.attachValidation('pnpm test');"},{key:"resume-reviewed",newLine:52,side:"R",tone:"add",code:"await agent.resume({ reviewed: true });"},{key:"summary",oldLine:45,newLine:53,side:"R",tone:"neutral",code:"return review.summary();"}];function Dm(a){return a.startLine===a.endLine?`Comment on line ${Bi(a)}`:`Comment on range ${Bi(a)}`}function Lm(a,u){const f=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`;return{...u,id:f,body:a,createdAt:new Date().toISOString()}}function Io({value:a,label:u}){const[f,r]=j.useState(!1);return s.jsxs("button",{className:"marketing-copy",type:"button",onClick:async()=>{await navigator.clipboard.writeText(a),r(!0),window.setTimeout(()=>r(!1),1400)},children:[f?s.jsx(jn,{size:15}):s.jsx(Nh,{size:15}),s.jsx("span",{children:f?"Copied":u})]})}function os({command:a}){return s.jsxs("div",{className:"command-line",children:[s.jsx("span",{children:"$"}),s.jsx("code",{children:a}),s.jsx(Io,{value:a,label:"Copy"})]})}function Om(){const[a,u]=j.useState(!0),[f,r]=j.useState(_m),[h,m]=j.useState(!1),[S,T]=j.useState(null),[E,y]=j.useState(""),[N,D]=j.useState(Rm),[k,U]=j.useState("idle"),Y=k==="submitted",re=N.find(q=>q.id===S),ve=Dm(f),Z=E.trim(),he=`${N.length} review comment${N.length===1?"":"s"}`,me=Y?[{marker:"✓",text:"review.submitted received"},{marker:"→",text:"reading ~/.gloss/reviews/01KS5/feedback.json"},{marker:"→",text:`applying ${he}`},{marker:"→",text:"running pnpm check"}]:[{marker:"$",text:"gloss open --json"},{marker:"→",text:"captured 4 files, +128 -31"},{marker:"→",text:"waiting for review.submitted"}],$=a?yd:yd.filter(q=>!q.hiddenUntilExpanded),be=j.useMemo(()=>JSON.stringify({reviewId:"01KS5...",comments:N.map(q=>({filePath:"src/web/routes/Home.tsx",side:q.side,startLine:q.startLine,endLine:q.endLine,body:q.body}))},null,2),[N]),Ne=(q,ue)=>f.side===q&&f.startLine===ue&&f.endLine===ue,ee=q=>{r(q),T(null),y(""),m(!0),U("idle")},se=q=>{r({side:q.side,startLine:q.startLine,endLine:q.endLine}),T(q.id),y(q.body),m(!0),U("idle")},je=()=>{Z&&(D(q=>S?q.map(ue=>ue.id===S?{...ue,body:Z}:ue):[...q,Lm(Z,f)]),y(""),T(null),m(!1),U("idle"))},Re=q=>{D(ue=>ue.filter(W=>W.id!==q)),S===q&&(T(null),y(""),m(!1)),U("idle")},pe=(q,ue)=>N.filter(W=>W.side===q&&Math.max(W.startLine,W.endLine)===ue&&Math.min(W.startLine,W.endLine)===ue);return s.jsxs("section",{className:"hero-scene","aria-label":"Simulated Gloss code review",children:[s.jsxs("div",{className:"scene-topbar",children:[s.jsxs("div",{className:"scene-brand",children:[s.jsx("img",{className:"brand-mark",src:"/logo.svg",alt:"","aria-hidden":"true"}),s.jsx("span",{children:"Gloss review"})]}),s.jsxs("div",{className:"scene-meta",children:[s.jsx(ms,{size:14}),s.jsx("span",{children:"raj--gloss--static-site"})]})]}),s.jsxs("div",{className:"scene-shell",children:[s.jsxs("div",{className:"scene-terminal",children:[s.jsxs("div",{className:"terminal-header",children:[s.jsx(Wo,{size:14}),s.jsx("span",{children:"agent terminal"})]}),s.jsx("div",{className:"terminal-lines",children:me.map(q=>s.jsxs("p",{children:[s.jsx("span",{children:q.marker})," ",q.text]},q.text))})]}),s.jsxs("div",{className:"scene-review",children:[s.jsxs("button",{className:"scene-file-header",type:"button",children:[s.jsx(ta,{size:16}),s.jsx(Ml,{size:15}),s.jsx("span",{children:"src/web/routes/Home.tsx"}),s.jsx("b",{className:"scene-add",children:"+74"}),s.jsx("b",{className:"scene-del",children:"-6"})]}),s.jsx("button",{className:"scene-hidden",type:"button",onClick:()=>u(q=>!q),children:a?"Hide unchanged context":"194 unmodified lines"}),s.jsx("div",{className:"scene-hunk",children:"@@ -38,11 +38,20 @@ export function Home()"}),$.map(q=>{const ue=q.side==="L"?q.oldLine:q.newLine;if(ue==null)return null;const W=Ne(q.side,ue),fe=Y&&(q.key==="skip-review"||q.key==="skip-status"),g=Y&&["apply-feedback","resolve-threads","run-checks"].includes(q.key);return s.jsxs("div",{children:[s.jsxs("button",{className:`scene-row ${q.tone} ${q.hiddenUntilExpanded?"dimmed":""} ${W?"selected":""} ${fe?"agent-dimmed":""} ${g?"agent-applied":""}`,type:"button","aria-pressed":W,onClick:()=>ee({side:q.side,startLine:ue,endLine:ue}),children:[s.jsx("span",{children:q.oldLine??""}),s.jsx("span",{children:q.newLine??""}),s.jsx("code",{children:q.code||" "})]}),Y&&q.key==="apply-feedback"?s.jsxs("div",{className:"scene-applied-status",children:[s.jsx(jn,{size:13}),s.jsx("span",{children:"applied by agent"})]}):null,s.jsx(Hm,{comments:pe(q.side,ue),onOpen:se,onRemove:Re}),h&&f.side===q.side&&f.endLine===ue?s.jsxs("div",{className:"scene-composer",children:[s.jsxs("div",{className:"scene-composer-title",children:[s.jsx("strong",{children:re?"Review comment":"New local comment"}),s.jsx("span",{children:ve})]}),s.jsx("textarea",{"aria-label":ve,placeholder:"Request change",value:E,onChange:O=>y(O.target.value)}),s.jsxs("div",{className:"scene-composer-actions",children:[s.jsx("button",{className:"scene-secondary-action",type:"button",onClick:()=>{y(""),T(null),m(!1)},children:"Cancel"}),s.jsx("button",{type:"button",disabled:!Z,onClick:je,children:re?"Update":"Comment"})]})]}):null]},q.key)})]}),s.jsx("div",{className:"scene-feedback",children:Y?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"feedback-title",children:[s.jsx(Wo,{size:15}),s.jsx("span",{children:"agent is updating"})]}),s.jsxs("div",{className:"agent-update-card",children:[s.jsx("code",{children:"~/.gloss/reviews/01KS5/feedback.json"}),s.jsx("ul",{children:["Read feedback","Resolved comment","Validated"].map(q=>s.jsxs("li",{children:[s.jsx(jn,{size:13}),s.jsx("span",{children:q})]},q))})]})]}):s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"feedback-title",children:[s.jsx(Hh,{size:15}),s.jsx("span",{children:"~/.gloss/reviews/01KS5/feedback.json"})]}),s.jsx("pre",{children:be})]})})]}),s.jsxs("div",{className:"scene-submit",children:[s.jsx("span",{children:N.length===0?"No local comments yet":Y?"Sent to agent":`${N.length} local comment${N.length===1?"":"s"} ready`}),s.jsxs("button",{type:"button",disabled:N.length===0,onClick:()=>U("submitted"),children:[Y?s.jsx(jn,{size:14}):s.jsx(fm,{size:14}),Y?"Sent to agent":"Submit review"]})]})]})}function Hm({comments:a,onOpen:u,onRemove:f}){return a.map(r=>s.jsxs("div",{className:"scene-inline-comment",children:[s.jsxs("button",{className:"scene-inline-comment-body",type:"button",onClick:()=>u(r),children:[s.jsx(Pl,{size:14}),s.jsx("span",{children:r.body})]}),s.jsx("button",{className:"scene-inline-comment-remove",type:"button",title:`Remove comment on ${r.side}${r.startLine}`,onClick:()=>f(r.id),children:s.jsx(ds,{size:13})})]},r.id))}function Oi({step:a,title:u,body:f}){return s.jsxs("div",{className:"workflow-step",children:[s.jsx("span",{children:a}),s.jsxs("div",{children:[s.jsx("h3",{children:u}),s.jsx("p",{children:f})]})]})}function km(){return s.jsxs("section",{className:"marketing-band demo-video-band",id:"demo",children:[s.jsxs("div",{className:"demo-video-header",children:[s.jsxs("div",{className:"section-heading",children:[s.jsx("p",{children:"Demo"}),s.jsx("h2",{children:"Watch the local review loop run for real."})]}),s.jsx("p",{className:"demo-video-caption",children:"A real pass through the loop: open a local diff, leave review comments, hand them back to the agent."})]}),s.jsx("div",{className:"demo-video-frame",children:s.jsxs("video",{"aria-label":"Gloss product walkthrough showing local diff review comments sent back to an agent",controls:!0,poster:"/gloss-demo-poster.jpg",preload:"metadata",children:[s.jsx("source",{src:"/gloss-demo.mp4",type:"video/mp4"}),s.jsx("track",{default:!0,kind:"captions",label:"English",src:"/gloss-demo-captions.vtt",srcLang:"en"}),"Your browser does not support the video tag."]})})]})}function Um(){return s.jsxs("main",{className:"marketing-page",children:[s.jsxs("section",{className:"marketing-hero",children:[s.jsxs("div",{className:"hero-copy",children:[s.jsxs("div",{className:"hero-copy-main",children:[s.jsx("div",{className:"hero-logo",children:s.jsx("img",{className:"brand-mark",src:"/logo-mark.svg",alt:"Gloss logo"})}),s.jsx("h1",{children:"Gloss"}),s.jsx("p",{className:"hero-subtitle",children:"Review agent-written diffs in your browser."}),s.jsxs("p",{className:"hero-body",children:["Gloss opens your working-tree diff in a local browser, then writes"," ",s.jsx("code",{children:"feedback.json"})," for your agent and ",s.jsx("code",{children:"feedback.md"})," for humans."]}),s.jsxs("div",{className:"hero-actions",children:[s.jsxs("a",{className:"hero-primary",href:"#install",children:["Install with Homebrew",s.jsx(Jd,{size:17})]}),s.jsx("a",{className:"hero-secondary",href:"/setup/",children:"Agent setup"})]})]}),s.jsxs("aside",{className:"hero-quickstart","aria-label":"Quick start command",children:[s.jsx("span",{children:"Run without setup"}),s.jsx("code",{children:Vo}),s.jsx(Io,{value:Vo,label:"Copy command"})]})]}),s.jsx(Om,{})]}),s.jsx(km,{}),s.jsxs("section",{className:"marketing-band install-band",id:"install",children:[s.jsxs("div",{className:"section-heading",children:[s.jsx("p",{children:"Install"}),s.jsx("h2",{children:"Start the review loop in one command."})]}),s.jsxs("div",{className:"install-grid",children:[s.jsx(os,{command:Mm}),s.jsx(os,{command:Am}),s.jsx(os,{command:Cm}),s.jsx(os,{command:Vo})]}),s.jsxs("div",{className:"agent-prompt",children:[s.jsxs("div",{className:"agent-prompt-label",children:[s.jsx(Wo,{size:18}),s.jsx("span",{children:"Packaged skill"})]}),s.jsx("p",{children:"Install the bundled agent skill so Claude Code knows when to open Gloss and how to use the feedback."}),s.jsx("div",{className:"agent-prompt-links",children:s.jsx("a",{href:"/setup/",children:"Agent setup"})}),s.jsxs("div",{className:"agent-skill-command",children:[s.jsx("code",{children:pd}),s.jsx(Io,{value:pd,label:"Copy install"})]})]})]}),s.jsxs("section",{className:"marketing-band workflow-band",id:"workflow",children:[s.jsx("div",{className:"section-heading",children:s.jsx("p",{children:"How it works"})}),s.jsxs("div",{className:"workflow-story",children:[s.jsx(Oi,{step:"01",title:"Open a review",body:"The agent runs `gloss open --json`."}),s.jsx(Oi,{step:"02",title:"Wait",body:"Gloss blocks while you review the diff."}),s.jsx(Oi,{step:"03",title:"Receive feedback",body:"The agent reads `feedbackPath`."}),s.jsx(Oi,{step:"04",title:"Fix and validate",body:"The agent applies comments and runs checks."}),s.jsx(Oi,{step:"05",title:"Resolve",body:"The agent runs `gloss resolve`."})]})]}),s.jsxs("section",{className:"marketing-band contract-band",id:"contract",children:[s.jsxs("div",{className:"section-heading",children:[s.jsx("p",{children:"Output"}),s.jsx("h2",{children:"What the agent reads."})]}),s.jsxs("div",{className:"contract-layout",children:[s.jsx("pre",{children:`~/.gloss/reviews/<reviewId>/feedback.json
|
|
315
|
+
~/.gloss/reviews/<reviewId>/feedback.md
|
|
316
|
+
~/.gloss/reviews/<reviewId>/resolved.json`}),s.jsx("div",{className:"contract-copy",children:s.jsxs("p",{children:[s.jsx("code",{children:"feedback.json"})," is the machine-readable handoff; ",s.jsx("code",{children:"feedback.md"})," ","is the human-readable copy; ",s.jsx("code",{children:"resolved.json"})," tracks comment and review resolution progress."]})})]})]}),s.jsx("footer",{className:"marketing-footer",children:s.jsxs("a",{href:"https://github.com/iamrajjoshi/gloss",target:"_blank",rel:"noreferrer",children:[s.jsx(ms,{size:16}),s.jsx("span",{children:"GitHub"})]})})]})}var qi=Kd();const Bm=["lockfiles","snapshots","generated","vendored"],n2=[{id:"lockfiles",label:"Lockfiles"},{id:"snapshots",label:"Snapshots"},{id:"generated",label:"Generated"},{id:"vendored",label:"Vendored"}],qm=new Set(["package-lock.json","pnpm-lock.yaml","yarn.lock","Cargo.lock","Gemfile.lock","Pipfile.lock","poetry.lock","uv.lock","go.sum","composer.lock","mix.lock","flake.lock","deno.lock","Podfile.lock"]),Gm=["@generated","Code generated","DO NOT EDIT","automatically generated"];function l2(a){const u=new Set,f=[a.path,a.oldPath].filter(r=>!!r);return f.some(Qm)&&u.add("lockfiles"),f.some(Zm)&&u.add("snapshots"),(f.some(Km)||Jm(a))&&u.add("generated"),f.some($m)&&u.add("vendored"),u}function Vm(a,u){if(u.size===0)return!1;const f=l2(a);for(const r of u)if(f.has(r))return!0;return!1}function Ym(a,u){if(u.size===0)return{files:a,hidden:[]};const f=[],r=[];for(const h of a)(Vm(h,u)?r:f).push(h);return{files:f,hidden:r}}function Xm(a){if(!Array.isArray(a))return new Set;const u=new Set(Bm);return new Set(a.filter(f=>u.has(String(f))))}function Qm(a){const u=cr(a);return qm.has(u)||/^bun\.lock/.test(u)}function Zm(a){const u=xs(a),f=cr(u);return u.split("/").includes("__snapshots__")||/\.snap(?:\.|$)/.test(f)||/\.snapshot(?:\.|$)/.test(f)}function Km(a){const u=xs(a),f=cr(u),r=u.split("/");return r.includes("__generated__")||r.includes("generated")||/\.generated\./.test(f)||/\.gen\./.test(f)||/\.pb\./.test(f)}function $m(a){const u=xs(a).split("/");return u.includes("vendor")||u.includes("vendors")||u.includes("third_party")||u.includes("third-party")||u.includes("external")||u.includes("node_modules")||u.includes("bower_components")||u.includes("Pods")||u.includes("Carthage")||Wm(u,[".yarn","cache"])}function Jm(a){for(const u of a.hunks)for(const f of u.lines)if(Fm(f.content))return!0;return!1}function Fm(a){const u=a.trim(),f=u.toLowerCase();return/^(\/\/|#|\/\*|\*|<!--|;|--)/.test(u)?Gm.some(r=>f.includes(r.toLowerCase())):!1}function Wm(a,u){return a.some((f,r)=>u.every((h,m)=>a[r+m]===h))}function xs(a){return a.replace(/\\/g,"/")}function cr(a){return xs(a).split("/").pop()??a}function a2(a,u,f="",r=""){return a.localeCompare(u,void 0,{sensitivity:"base"})||a.localeCompare(u)||f.localeCompare(r,void 0,{sensitivity:"base"})||f.localeCompare(r)}function Im(a,u){return a2(a.path,u.path,a.oldPath??"",u.oldPath??"")}function Pm(a){return a.toSorted(Im)}const e5={mode:"all"};function t5(a=e5,u=[]){if(a.mode==="all")return"All commits";if(a.mode==="single"){const h=u.find(m=>m.commit.sha===a.sha);return h?`${h.commit.shortSha} ${h.commit.subject}`:`Commit ${Yo(a.sha)}`}const f=u.findIndex(h=>h.commit.sha===a.fromSha),r=u.findIndex(h=>h.commit.sha===a.toSha);return f>=0&&r>=f?`${r-f+1} commits · ${u[f].commit.shortSha} to ${u[r].commit.shortSha}`:`Commit range ${Yo(a.fromSha)} to ${Yo(a.toSha)}`}function Yo(a){return a.slice(0,7)}function gd(a){var f;const u=(f=a.meta.branch??a.diff.branch)==null?void 0:f.trim();return u||n5(a.diff)}function n5(a){switch(a.scope.mode){case"branch":return"Branch diff";case"explicit":return`Diff against ${a.scope.requestedBase??a.base.ref}`;case"working":return"Working changes"}}function l5(a){return a==="submitted"||a==="resolved"}const a5=["L","R"],i5=["pending","submitted","cancelled","resolved"],c5=["context","add","delete"],s5=["working","branch","explicit"],u5=["working-tree-clean","missing-branch-base"],o5=500,r5=240,f5=["import","same-file","repo-search","module"],d5=["all","single","range"],h5=["partial","resolved"],m5=["human","agent","system"],p5=["claimed","working","blocked","completed","failed"],y5=["review-resolved","comment-resolved","comment-reopened","turn-created"],g5=["default","vscode","vscode-insiders","vscodium","cursor","sublime","zed","windsurf","webstorm","intellij","pycharm","goland","phpstorm","rubymine","clion","datagrip","android-studio","fleet","neovide","macvim","emacs","lapce","textmate","bbedit","coteditor","nova","textedit","xcode","terminal","iterm2","ghostty","folder"];function v5(a,u,f){const r=JSON.parse(a);return i2(r,u,f)}function i2(a,u,f){if(!u(a))throw new Error(`Invalid ${f}`);return a}function b5(a){return Ve(a)&&P(a.reviewId)&&Pe(a.turnId)&&Al(a.turnIndex)&&P(a.url)&&et(a.files)&&Al(a.comments)&&Pe(a.feedbackPath)&&Pe(a.markdownPath)&&Pe(a.artifactDir)}function x5(a){return Ve(a)&&a.ok===!0&&P(a.path)}function S5(a){return Ve(a)&&$t(a.targets,V5)}function j5(a){return Ve(a)&&P(a.filePath)&&P(a.content)}function E5(a){return Ve(a)&&P(a.fromSha)&&P(a.toSha)&&js(a.stats)&&P(a.rawDiff)&&$t(a.files,sr)}function w5(a){return Ve(a)&&P(a.filePath)&&ea(a.oldStart)&&ea(a.newStart)&&$t(a.lines,f2)}function N5(a){return Ve(a)&&P(a.symbol)&&P(a.targetSymbol)&&P(a.filePath)&&ea(a.startLine)&&ea(a.line)&&K5(a.column)&&wn(a.language)&&P(a.content)&&pn(a.truncated)&&ea(a.totalLines)&&pn(a.hasMoreAbove)&&pn(a.hasMoreBelow)&&q5(a.matchReason)}function z5(a){return Ve(a)&&P(a.filePath)&&ea(a.startLine)&&ea(a.totalLines)&&P(a.content)&&pn(a.truncated)&&pn(a.hasMoreAbove)&&pn(a.hasMoreBelow)}function T5(a){return Ve(a)&&A5(a.meta)&&$t(a.turns,_5)&&c2(a.diff)&&En(a.feedback,s2)&&En(a.resolution,u2)&&En(a.events,u=>$t(u,o2))}function M5(a){return Ve(a)&&P(a.id)&&P(a.cwd)&&Ss(a.base)&&wn(a.branch)&&ur(a.status)&&P(a.createdAt)&&Pe(a.submittedAt)&&Pe(a.resolvedAt)&&Pe(a.artifactDir)&&Pe(a.activeTurnId)&&En(a.turns,u=>$t(u,C5))&&Pe(a.feedbackPath)&&Pe(a.markdownPath)}function A5(a){return M5(a)&&P(a.artifactDir)}function c2(a){return Ve(a)&&Ss(a.base)&&wn(a.branch)&&P(a.cwd)&&R5(a.scope)&&js(a.stats)&&P(a.rawDiff)&&$t(a.files,sr)&&En(a.commitDiffs,u=>$t(u,O5))&&P(a.capturedAt)}function s2(a){return Ve(a)&&a.version===1&&P(a.reviewId)&&Pe(a.turnId)&&Al(a.turnIndex)&&P(a.timestamp)&&Ss(a.base)&&wn(a.branch)&&En(a.reviewScope,H5)&&$t(a.comments,U5)}function u2(a){return Ve(a)&&P(a.reviewId)&&Pe(a.turnId)&&Al(a.turnIndex)&&h2(a.status)&&wn(a.summary)&&wn(a.resolvedAt)&&$t(a.comments,B5)}function o2(a){if(!Ve(a)||!P(a.reviewId)||!P(a.type)||!Z5(a))return!1;switch(a.type){case"review.opened":case"review.cancelled":return!0;case"review.turn.created":return P(a.turnId)&&et(a.turnIndex)&&pn(a.reused);case"review.submitted":return Pe(a.turnId)&&Al(a.turnIndex)&&Ve(a.counts)&&et(a.counts.files)&&et(a.counts.comments);case"review.updated":return Pe(a.turnId)&&Al(a.turnIndex)&&Y5(a.reason)&&ur(a.status)&&h2(a.resolutionStatus)&&d2(a.counts);case"agent.claimed":return P(a.turnId)&&et(a.turnIndex)&&a.status==="claimed"&&Pe(a.message);case"agent.note":return Pe(a.turnId)&&Al(a.turnIndex)&&En(a.status,Q5)&&P(a.message);default:return!1}}function r2(a){return Ve(a)&&P(a.id)&&et(a.index)&&ur(a.status)&&P(a.createdAt)&&Pe(a.submittedAt)&&Pe(a.resolvedAt)&&P(a.artifactDir)&&P(a.diffPath)&&Pe(a.feedbackPath)&&Pe(a.markdownPath)&&Pe(a.resolvedPath)}function C5(a){return!Ve(a)||!r2(a)?!1:P(a.capturedAt)&&js(a.stats)&&d2(a.comments)}function _5(a){return!Ve(a)||!r2(a)?!1:c2(a.diff)&&En(a.feedback,s2)&&En(a.resolution,u2)}function R5(a){return Ve(a)&&un(a.mode,s5)&&wn(a.requestedBase)&&Ss(a.base)&&D5(a.comparison)&&(a.fallbackReason===null||un(a.fallbackReason,u5))}function D5(a){return Ve(a)&&P(a.ref)&&wn(a.sha)}function Ss(a){return Ve(a)&&P(a.ref)&&P(a.sha)}function js(a){return Ve(a)&&et(a.files)&&et(a.additions)&&et(a.deletions)}function L5(a){return Ve(a)&&P(a.sha)&&P(a.shortSha)&&P(a.subject)&&P(a.authorName)&&P(a.authorEmail)&&P(a.authoredAt)&&P(a.committedAt)}function O5(a){return Ve(a)&&L5(a.commit)&&js(a.stats)&&P(a.rawDiff)&&$t(a.files,sr)}function H5(a){if(!Ve(a)||!un(a.mode,d5))return!1;switch(a.mode){case"all":return!0;case"single":return P(a.sha);case"range":return P(a.fromSha)&&P(a.toSha)}}function sr(a){return Ve(a)&&P(a.path)&&wn(a.oldPath)&&et(a.additions)&&et(a.deletions)&&pn(a.isBinary)&&pn(a.isDeleted)&&pn(a.isNew)&&pn(a.isRenamed)&&wn(a.language)&&$t(a.hunks,k5)}function k5(a){return Ve(a)&&et(a.oldStart)&&et(a.oldLines)&&et(a.newStart)&&et(a.newLines)&&P(a.header)&&$t(a.lines,f2)}function f2(a){return Ve(a)&&un(a.type,c5)&&vd(a.oldLine)&&vd(a.newLine)&&P(a.content)}function U5(a){return Ve(a)?a.kind==="general"?P(a.id)&&P(a.body)&&P(a.createdAt):P(a.id)&&(a.kind===void 0||a.kind==="line")&&P(a.filePath)&&et(a.startLine)&&et(a.endLine)&&un(a.side,a5)&&P(a.body)&&P(a.originalSnippet)&&P(a.createdAt):!1}function B5(a){return Ve(a)&&P(a.commentId)&&a.status==="resolved"&&Pe(a.summary)&&P(a.resolvedAt)}function d2(a){return Ve(a)&&et(a.total)&&et(a.resolved)&&et(a.open)}function ur(a){return un(a,i5)}function h2(a){return un(a,h5)}function q5(a){return un(a,f5)}function G5(a){return un(a,g5)}function V5(a){return Ve(a)&&G5(a.target)&&P(a.label)}function Y5(a){return un(a,y5)}function X5(a){return un(a,m5)}function Q5(a){return un(a,p5)}function Z5(a){return Pe(a.id)&&Al(a.seq)&&Pe(a.createdAt)&&En(a.actor,X5)}function Ve(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function $t(a,u){return Array.isArray(a)&&a.every(u)}function En(a,u){return a===void 0||u(a)}function P(a){return typeof a=="string"}function Pe(a){return a===void 0||P(a)}function wn(a){return a===null||P(a)}function et(a){return typeof a=="number"&&Number.isFinite(a)}function ea(a){return et(a)&&Number.isInteger(a)&&a>0}function K5(a){return et(a)&&Number.isInteger(a)&&a>=0}function Al(a){return a===void 0||et(a)}function vd(a){return a===null||et(a)}function pn(a){return typeof a=="boolean"}function un(a,u){return typeof a=="string"&&u.includes(a)}async function Jn(a,u,f){if(!a.ok)throw new Error(await $5(a));const r=await a.json();return i2(r,u,f)}async function $5(a){const u=await a.text();return J5(u)??`${a.status}: ${u||a.statusText}`}function J5(a){try{const u=JSON.parse(a);if(typeof u=="object"&&u!==null&&!Array.isArray(u)&&typeof u.error=="string")return u.error}catch{}return null}async function bd(a){return Jn(await fetch(`/api/reviews/${a}`),T5,"review response")}async function F5(a,u,f){const r={comments:u,reviewScope:f};return Jn(await fetch(`/api/reviews/${a}/submit`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(r)}),b5,"submit review response")}async function xd(a,u,f,r={}){const h={filePath:u,turnId:f,...r};return Jn(await fetch(`/api/reviews/${a}/files/open`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(h)}),x5,"open file response")}async function W5(){return Jn(await fetch("/api/open-targets"),S5,"open targets response")}async function Sd(a,u,f,r={}){const h={filePath:u,turnId:f,...r};return Jn(await fetch(`/api/reviews/${a}/files/content`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(h)}),j5,"file content response")}async function I5(a,u,f,r){const h={fromSha:u,toSha:f,turnId:r};return Jn(await fetch(`/api/reviews/${a}/commits/range`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(h)}),E5,"commit range diff response")}async function P5({filePath:a,lineCount:u,newStart:f,oldPath:r,oldStart:h,reviewId:m,source:S,turnId:T}){const E={filePath:a,oldPath:r,turnId:T,source:S,oldStart:h,newStart:f,lineCount:u};return Jn(await fetch(`/api/reviews/${m}/files/context`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(E)}),w5,"diff context response")}async function e6({column:a,filePath:u,line:f,oldPath:r,reviewId:h,side:m,source:S,symbol:T,turnId:E}){const y={filePath:u,oldPath:r,turnId:E,source:S,side:m,line:f,column:a,symbol:T};return Jn(await fetch(`/api/reviews/${h}/source-peek`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(y)}),N5,"source peek response")}async function t6({filePath:a,lineCount:u,reviewId:f,side:r,source:h,startLine:m,turnId:S}){const T={filePath:a,turnId:S,source:h,side:r,startLine:m,lineCount:u};return Jn(await fetch(`/api/reviews/${f}/source-peek/range`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(T)}),z5,"source peek range response")}const n6="modulepreload",l6=function(a){return"/"+a},jd={},m2=function(u,f,r){let h=Promise.resolve();if(f&&f.length>0){let S=function(y){return Promise.all(y.map(N=>Promise.resolve(N).then(D=>({status:"fulfilled",value:D}),D=>({status:"rejected",reason:D}))))};document.getElementsByTagName("link");const T=document.querySelector("meta[property=csp-nonce]"),E=(T==null?void 0:T.nonce)||(T==null?void 0:T.getAttribute("nonce"));h=S(f.map(y=>{if(y=l6(y),y in jd)return;jd[y]=!0;const N=y.endsWith(".css"),D=N?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${D}`))return;const k=document.createElement("link");if(k.rel=N?"stylesheet":n6,N||(k.as="script"),k.crossOrigin="",k.href=y,E&&k.setAttribute("nonce",E),document.head.appendChild(k),N)return new Promise((U,Y)=>{k.addEventListener("load",U),k.addEventListener("error",()=>Y(new Error(`Unable to preload CSS for ${y}`)))})}))}function m(S){const T=new Event("vite:preloadError",{cancelable:!0});if(T.payload=S,window.dispatchEvent(T),!T.defaultPrevented)throw S}return h.then(S=>{for(const T of S||[])T.status==="rejected"&&m(T.reason);return u().catch(m)})};function a6(a){return a.type==="delete"?"L":"R"}function $n(a,u){return`${a}:${u}`}function ps(a){return p2(a)&&!a.shiftKey}function i6(a){return p2(a)&&a.shiftKey===!0}function p2(a){var u;return a.key==="Enter"&&a.metaKey===!0&&a.ctrlKey!==!0&&a.altKey!==!0&&a.repeat!==!0&&a.defaultPrevented!==!0&&a.isComposing!==!0&&((u=a.nativeEvent)==null?void 0:u.isComposing)!==!0}const y2="0123456789ABCDEFGHJKMNPQRSTVWXYZ",ys=32,c6=16,g2=10,Ed=0xffffffffffff;var Fl;(function(a){a.Base32IncorrectEncoding="B32_ENC_INVALID",a.DecodeTimeInvalidCharacter="DEC_TIME_CHAR",a.DecodeTimeValueMalformed="DEC_TIME_MALFORMED",a.EncodeTimeNegative="ENC_TIME_NEG",a.EncodeTimeSizeExceeded="ENC_TIME_SIZE_EXCEED",a.EncodeTimeValueMalformed="ENC_TIME_MALFORMED",a.PRNGDetectFailure="PRNG_DETECT",a.ULIDInvalid="ULID_INVALID",a.Unexpected="UNEXPECTED",a.UUIDInvalid="UUID_INVALID"})(Fl||(Fl={}));class ki extends Error{constructor(u,f){super(`${f} (${u})`),this.name="ULIDError",this.code=u}}function s6(a){const u=Math.floor(a()*ys)%ys;return y2.charAt(u)}function u6(a){const u=o6(),f=u&&(u.crypto||u.msCrypto)||null;if(typeof(f==null?void 0:f.getRandomValues)=="function")return()=>{const r=new Uint8Array(1);return f.getRandomValues(r),r[0]/256};if(typeof(f==null?void 0:f.randomBytes)=="function")return()=>f.randomBytes(1).readUInt8()/256;throw new ki(Fl.PRNGDetectFailure,"Failed to find a reliable PRNG")}function o6(){return d6()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function r6(a,u){let f="";for(;a>0;a--)f=s6(u)+f;return f}function f6(a,u=g2){if(isNaN(a))throw new ki(Fl.EncodeTimeValueMalformed,`Time must be a number: ${a}`);if(a>Ed)throw new ki(Fl.EncodeTimeSizeExceeded,`Cannot encode a time larger than ${Ed}: ${a}`);if(a<0)throw new ki(Fl.EncodeTimeNegative,`Time must be positive: ${a}`);if(Number.isInteger(a)===!1)throw new ki(Fl.EncodeTimeValueMalformed,`Time must be an integer: ${a}`);let f,r="";for(let h=u;h>0;h--)f=a%ys,r=y2.charAt(f)+r,a=(a-f)/ys;return r}function d6(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function wd(a,u){const f=u6(),r=Date.now();return f6(r,g2)+r6(c6,f)}const Nd=a=>{let u;const f=new Set,r=(y,N)=>{const D=typeof y=="function"?y(u):y;if(!Object.is(D,u)){const k=u;u=N??(typeof D!="object"||D===null)?D:Object.assign({},u,D),f.forEach(U=>U(u,k))}},h=()=>u,T={setState:r,getState:h,getInitialState:()=>E,subscribe:y=>(f.add(y),()=>f.delete(y))},E=u=a(r,h,T);return T},h6=(a=>a?Nd(a):Nd),m6=a=>a;function p6(a,u=m6){const f=Hi.useSyncExternalStore(a.subscribe,Hi.useCallback(()=>u(a.getState()),[a,u]),Hi.useCallback(()=>u(a.getInitialState()),[a,u]));return Hi.useDebugValue(f),f}const zd=a=>{const u=h6(a),f=r=>p6(u,r);return Object.assign(f,u),f},y6=(a=>a?zd(a):zd),Tt=y6((a,u)=>({comments:[],resolution:null,draft:null,setDraft:f=>a({draft:f}),hydrateComments:f=>a({comments:f,resolution:null,draft:null}),hydrateReview:(f,r=null)=>a({comments:f,resolution:r,draft:null}),addComment:f=>{const r=u().draft;!r||f.trim().length===0||a(h=>({comments:[...h.comments,{kind:"line",id:wd(),filePath:r.filePath,side:r.side,startLine:Math.min(r.startLine,r.endLine),endLine:Math.max(r.startLine,r.endLine),body:f.trim(),originalSnippet:r.originalSnippet,createdAt:new Date().toISOString()}],draft:null}))},addGeneralComment:f=>{const r=f.trim();r.length!==0&&a(h=>({comments:[...h.comments,{kind:"general",id:wd(),body:r,createdAt:new Date().toISOString()}]}))},updateComment:(f,r)=>{const h=r.trim();h.length!==0&&a(m=>({comments:m.comments.map(S=>S.id===f?{...S,body:h}:S)}))},removeComment:f=>a(r=>({comments:r.comments.filter(h=>h.id!==f)})),reset:()=>a({comments:[],resolution:null,draft:null})})),v2="gloss:theme-preference",g6="(prefers-color-scheme: dark)",v6=new Set(["system","light","dark"]),b2=j.createContext(null);function b6(a){return!!(a&&v6.has(a))}function x6(a=x2()){if(!a)return"system";try{const u=a.getItem(v2);return b6(u)?u:"system"}catch{return"system"}}function S6(a,u=x2()){if(u)try{u.setItem(v2,a)}catch{}}function Po(a){return a?"dark":"light"}function j6(a,u){return a==="system"?u:a}function E6(a,u=z6()){u&&(u.dataset.theme=a)}function w6({children:a}){const[u,f]=j.useState(()=>x6()),[r,h]=j.useState(()=>N6()),m=j6(u,r);j.useEffect(()=>{const E=S2();if(!E)return;const y=N=>{h(Po(N.matches))};return h(Po(E.matches)),typeof E.addEventListener=="function"?(E.addEventListener("change",y),()=>E.removeEventListener("change",y)):(E.addListener(y),()=>E.removeListener(y))},[]),j.useEffect(()=>{E6(m)},[m]);const S=j.useCallback(E=>{S6(E),f(E)},[]),T=j.useMemo(()=>({preference:u,resolvedTheme:m,setPreference:S}),[u,m,S]);return s.jsx(b2.Provider,{value:T,children:a})}function or(){const a=j.useContext(b2);if(!a)throw new Error("useTheme must be used within ThemeProvider");return a}function N6(a=S2()){return Po(!!(a!=null&&a.matches))}function x2(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function S2(){try{return typeof window>"u"||typeof window.matchMedia!="function"?null:window.matchMedia(g6)}catch{return null}}function z6(){return typeof document>"u"?null:document.documentElement}function T6({body:a,tone:u,onBodyChange:f}){const r=Tt(N=>N.draft),h=Tt(N=>N.setDraft),m=Tt(N=>N.addComment),S=j.useRef(null);if(j.useEffect(()=>{var N;r&&((N=S.current)==null||N.focus({preventScroll:!0}))},[r]),!r)return null;const T=r.startLine===r.endLine?`Comment on line ${Bi(r)}`:`Comment on range ${Bi(r)}`,E=()=>{f(""),h(null)},y=()=>{m(a),f("")};return s.jsx("div",{className:`draft-comment-shell tone-${u}`,children:s.jsxs("div",{className:"draft-comment-card",children:[s.jsxs("div",{className:"draft-comment-title",children:[s.jsxs("span",{className:"draft-comment-heading",children:[s.jsx("span",{className:"draft-comment-icon","aria-hidden":"true",children:s.jsx(Wh,{size:15})}),s.jsx("span",{children:"Local comment"})]}),s.jsx("span",{className:"draft-comment-label",children:T})]}),s.jsx("textarea",{"aria-label":T,placeholder:"Request change",ref:S,value:a,onChange:N=>f(N.target.value),onKeyDown:N=>{ps(N)&&(N.preventDefault(),y())}}),s.jsxs("div",{className:"draft-comment-actions",children:[s.jsx("button",{className:"secondary-button",type:"button",onClick:E,children:"Cancel"}),s.jsx("button",{"aria-keyshortcuts":"Meta+Enter",className:"primary-button",title:"Comment (Command+Enter)",type:"button",onClick:y,children:"Comment"})]})]})})}const j2=10;function M6(a,u){const f=u.oldStart-a.oldStart,r=f+u.lineCount-1,h=f>0,m=r<a.lineCount-1;return h&&m?"all":h?"down":m||a.beforeHunkIndex===0?"up":"all"}function A6(a,u){return u.lineCount<=j2?[M6(a,u)]:u.oldStart-a.oldStart>0||a.beforeHunkIndex>0?["up","all","down"]:["up","all"]}function rr(a){const u=[];let f=0,r=0;return a.hunks.forEach((h,m)=>{const S=h.oldStart>f+1?h.oldStart-f-1:0,T=h.newStart>r+1?h.newStart-r-1:0,E=Math.min(S,T);if(E>0){const y=f+1,N=r+1;u.push({id:`${a.path}:${y}:${N}:${E}`,beforeHunkIndex:m,filePath:a.path,oldPath:a.oldPath,oldStart:y,newStart:N,lineCount:E})}f=h.oldStart+h.oldLines-1,r=h.newStart+h.newLines-1}),u}function C6(a,u){const f=Es(a,u),r=E2(a,f),h=fr(a,u);if(r.length===0)return h.length>0?[{type:"lines",lines:h}]:[];const m=r[0]??0,S=r.at(-1)??a.lineCount-1,T=h.filter(y=>{const N=gs(a,y);return N!=null&&N<m}),E=h.filter(y=>{const N=gs(a,y);return N!=null&&N>S});return[...T.length>0?[{type:"lines",lines:T}]:[],{type:"hidden",oldStart:a.oldStart+m,newStart:a.newStart+m,lineCount:S-m+1},...E.length>0?[{type:"lines",lines:E}]:[]]}function _6(a,u,f,r=j2){const h=Es(a,u),m=E2(a,h);if(m.length===0)return null;let S,T;if(f==="all")S=m[0]??0,T=m.at(-1)??a.lineCount-1,T=Math.min(T,S+o5-1);else if(f==="down"){for(S=m[0]??0,T=S;T+1<a.lineCount&&!h.has(T+1);)T+=1;T=Math.min(T,S+r-1)}else{for(T=m.at(-1)??a.lineCount-1,S=T;S-1>=0&&!h.has(S-1);)S-=1;S=Math.max(S,T-r+1)}return{oldStart:a.oldStart+S,newStart:a.newStart+S,lineCount:T-S+1}}function R6(a,u,f){const r=Es(a,u);for(const h of f){const m=gs(a,h);m!=null&&r.set(m,h)}return{lines:Array.from(r.entries()).toSorted(([h],[m])=>h-m).map(([,h])=>h),loading:!1,error:null}}function fr(a,u){return Array.from(Es(a,u).entries()).toSorted(([f],[r])=>f-r).map(([,f])=>f)}function D6(a,u){const f=new Map(rr(a).map(r=>[r.beforeHunkIndex,r]));return a.hunks.flatMap((r,h)=>{const m=f.get(h);return[...m?fr(m,u[m.id]):[],...r.lines]})}function L6(a,u){const f=new Map(rr(a).map(h=>[h.beforeHunkIndex,h])),r=a.hunks.map((h,m)=>{const S=f.get(m),T=S?fr(S,u[S.id]):[];return T.length>0?{...h,lines:[...T,...h.lines]}:h});return{...a,hunks:r}}function E2(a,u){const f=[];for(let r=0;r<a.lineCount;r+=1)u.has(r)||f.push(r);return f}function Es(a,u){const f=new Map;if(!a||!u)return f;for(const r of u.lines){const h=gs(a,r);h!=null&&f.set(h,r)}return f}function gs(a,u){const f=u.oldLine==null?null:u.oldLine-a.oldStart;if(f!=null&&f>=0&&f<a.lineCount)return f;const r=u.newLine==null?null:u.newLine-a.newStart;return r!=null&&r>=0&&r<a.lineCount?r:null}const dr=50,hr=25,mr=75,Td=5;function Gi(a){return Number.isFinite(a)?Math.min(mr,Math.max(hr,a)):dr}function O6(a,u,f,r=dr){return!Number.isFinite(a)||!Number.isFinite(u)||!Number.isFinite(f)||f<=0?Gi(r):Gi((a-u)/f*100)}function H6(a,u){return u==="ArrowLeft"?Gi(a-Td):u==="ArrowRight"?Gi(a+Td):u==="Home"?hr:u==="End"?mr:null}function k6(a,u){return!a&&u>0}function pr(a){return`gloss-file-${encodeURIComponent(a)}`}function U6(a,u){const f=a.header.trim();return f.length>0&&u.some(h=>h.type==="context"&&h.oldLine!=null&&h.oldLine<a.oldStart&&h.content.trim()===f)?null:f||`@@ -${a.oldStart},${a.oldLines} +${a.newStart},${a.newLines} @@`}function Ua(a,u){return u==="L"?a.oldLine:a.newLine}function w2(a){return a.type==="add"?"+":a.type==="delete"?"-":" "}function B6(a,u,f,r,h){const m=h==="split"?a.filter(N=>Ua(N,u)!=null):a,S=m.findIndex(N=>Ua(N,u)===f),T=m.findIndex(N=>Ua(N,u)===r);if(S<0||T<0)return"";const E=m.slice(Math.min(S,T),Math.max(S,T)+1),y=new Set(E.map(N=>N.type)).size>1;return E.map(N=>y?`${w2(N)}${N.content}`:N.content).join(`
|
|
317
|
+
`)}function q6(a,u){const f=new Map;if(u==="unified")return a.forEach((m,S)=>{m.oldLine!=null&&f.set($n("L",m.oldLine),S),m.newLine!=null&&f.set($n("R",m.newLine),S)}),f;let r=0,h=0;for(const m of a)m.oldLine!=null&&(f.set($n("L",m.oldLine),r),r+=1),m.newLine!=null&&(f.set($n("R",m.newLine),h),h+=1);return f}function G6(a){const u=[];let f=[],r=[];const h=()=>{const m=Math.max(f.length,r.length);for(let S=0;S<m;S+=1)u.push({left:f[S]??null,right:r[S]??null});f=[],r=[]};for(const m of a)m.type==="context"?(h(),u.push({left:m,right:m})):m.type==="delete"?f.push(m):r.push(m);return h(),u}const He='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>',ke='</title><path d="',Ue='"/></svg>',V6={title:"Android Studio",slug:"androidstudio",get svg(){return He+"Android Studio"+ke+this.path+Ue},path:"M19.2693 10.3368c-.3321 0-.6026.2705-.6026.6031v9.8324h-1.7379l-3.3355-6.9396c.476-.5387.6797-1.286.5243-2.0009a2.2862 2.2862 0 0 0-1.2893-1.6248v-.8124c.0121-.2871-.1426-.5787-.4043-.7407-.1391-.0825-.2884-.1234-.4402-.1234a.8478.8478 0 0 0-.4318.1182c-.2701.1671-.4248.4587-.4123.7662l-.0003.721c-1.0149.3668-1.6619 1.4153-1.4867 2.5197a2.282 2.282 0 0 0 .5916 1.2103l-3.2096 6.9064H4.0928c-1.0949-.007-1.9797-.8948-1.9832-1.9896V5.016c-.0055 1.1024.8836 2.0006 1.9859 2.0062a2.024 2.024 0 0 0 .1326-.0037h14.7453s2.5343-.2189 2.8619 1.5392c-.2491.0287-.4449.2321-.4449.4889 0 .7115-.5791 1.2901-1.3028 1.2901h-.8183zM17.222 22.5366c.2347.4837.0329 1.066-.4507 1.3007-.1296.0629-.2666.0895-.4018.0927a.9738.9738 0 0 1-.3194-.0455c-.024-.0078-.046-.0209-.0694-.0305a.9701.9701 0 0 1-.2277-.1321c-.0247-.0192-.0495-.038-.0724-.0598-.0825-.0783-.1574-.1672-.21-.2757l-1.2554-2.6143-1.5585-3.2452a.7725.7725 0 0 0-.6995-.4443h-.0024a.792.792 0 0 0-.7083.4443l-1.5109 3.2452-1.2321 2.6464a.9722.9722 0 0 1-.7985.5795c-.0626.0053-.1238-.0024-.185-.0087-.0344-.0036-.069-.0053-.1025-.0124-.0489-.0103-.0954-.0278-.142-.0452-.0301-.0113-.0613-.0197-.0901-.0339-.0496-.0244-.0948-.0565-.1397-.0889-.0217-.0156-.0457-.0275-.0662-.045a.9862.9862 0 0 1-.1695-.1844.9788.9788 0 0 1-.0708-.9852l.8469-1.8223 3.2676-7.0314a1.7964 1.7964 0 0 1-.7072-1.1637c-.1555-.9799.5129-1.9003 1.4928-2.0559V9.3946a.3542.3542 0 0 1 .1674-.3155.3468.3468 0 0 1 .3541 0 .354.354 0 0 1 .1674.3155v1.159l.0129.0064a1.8028 1.8028 0 0 1 1.2878 1.378 1.7835 1.7835 0 0 1-.6439 1.7836l3.3889 7.0507.8481 1.7643zM12.9841 12.306c.0042-.6081-.4854-1.1044-1.0935-1.1085a1.1204 1.1204 0 0 0-.7856.3219 1.101 1.101 0 0 0-.323.7716c-.0042.6081.4854 1.1044 1.0935 1.1085h.0077c.6046 0 1.0967-.488 1.1009-1.0935zm-1.027 5.2768c-.1119.0005-.2121.0632-.2571.1553l-1.4127 3.0342h3.3733l-1.4564-3.0328a.274.274 0 0 0-.2471-.1567zm8.1432-6.7459l-.0129-.0001h-.8177a.103.103 0 0 0-.103.103v12.9103a.103.103 0 0 0 .0966.103h.8435c.9861-.0035 1.7836-.804 1.7836-1.79V9.0468c0 .9887-.8014 1.7901-1.7901 1.7901zM2.6098 5.0161v.019c.0039.816.6719 1.483 1.4874 1.4869a12.061 12.061 0 0 1 .1309-.0034h1.1286c.1972-1.315.7607-2.525 1.638-3.4859H4.0993c-.9266.0031-1.6971.6401-1.9191 1.4975.2417.0355.4296.235.4296.4859zm6.3381-2.8977L7.9112.3284a.219.219 0 0 1 0-.2189A.2384.2384 0 0 1 8.098 0a.219.219 0 0 1 .1867.1094l1.0496 1.8158a6.4907 6.4907 0 0 1 5.3186 0L15.696.1094a.2189.2189 0 0 1 .3734.2189l-1.0302 1.79c1.6671.9125 2.7974 2.5439 3.0975 4.4018l-12.286-.0014c.3004-1.8572 1.4305-3.488 3.0972-4.4003zm5.3774 2.6202a.515.515 0 0 0 .5271.5028.515.515 0 0 0 .5151-.5151.5213.5213 0 0 0-.8885-.367.5151.5151 0 0 0-.1537.3793zm-5.7178-.0067a.5151.5151 0 0 0 .5207.5095.5086.5086 0 0 0 .367-.1481.5215.5215 0 1 0-.734-.7341.515.515 0 0 0-.1537.3727z",source:"https://developer.android.com/studio",hex:"3DDC84"},Y6={title:"CLion",slug:"clion",get svg(){return He+"CLion"+ke+this.path+Ue},path:"M0 0v24h24V0H0zm7.041 3a5.049 5.049 0 0 1 .219 0c1.86 0 3 .6 3.9 1.56L9.78 6.18C9 5.46 8.22 5.04 7.26 5.04c-1.68 0-2.88 1.38-2.88 3.12 0 1.68 1.2 3.12 2.88 3.12 1.14 0 1.86-.48 2.64-1.14l1.38 1.38c-1.02 1.08-2.16 1.8-4.08 1.8a5.1 5.1 0 0 1-5.1-5.16A5.049 5.049 0 0 1 7.04 3zm5.738.12H15v8.1h4.32v1.86h-6.54V3.12zM2.28 19.5h9V21h-9v-1.5Z",source:"https://www.jetbrains.com/company/brand/logos/",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand/"},X6={title:"CSS",slug:"css",get svg(){return He+"CSS"+ke+this.path+Ue},path:"M0 0v20.16A3.84 3.84 0 0 0 3.84 24h16.32A3.84 3.84 0 0 0 24 20.16V3.84A3.84 3.84 0 0 0 20.16 0Zm14.256 13.08c1.56 0 2.28 1.08 2.304 2.64h-1.608c.024-.288-.048-.6-.144-.84-.096-.192-.288-.264-.552-.264-.456 0-.696.264-.696.84-.024.576.288.888.768 1.08.72.288 1.608.744 1.92 1.296q.432.648.432 1.656c0 1.608-.912 2.592-2.496 2.592-1.656 0-2.4-1.032-2.424-2.688h1.68c0 .792.264 1.176.792 1.176.264 0 .456-.072.552-.24.192-.312.24-1.176-.048-1.512-.312-.408-.912-.6-1.32-.816q-.828-.396-1.224-.936c-.24-.36-.36-.888-.36-1.536 0-1.44.936-2.472 2.424-2.448m5.4 0c1.584 0 2.304 1.08 2.328 2.64h-1.608c0-.288-.048-.6-.168-.84-.096-.192-.264-.264-.528-.264-.48 0-.72.264-.72.84s.288.888.792 1.08c.696.288 1.608.744 1.92 1.296.264.432.408.984.408 1.656.024 1.608-.888 2.592-2.472 2.592-1.68 0-2.424-1.056-2.448-2.688h1.68c0 .744.264 1.176.792 1.176.264 0 .456-.072.552-.24.216-.312.264-1.176-.048-1.512-.288-.408-.888-.6-1.32-.816-.552-.264-.96-.576-1.2-.936s-.36-.888-.36-1.536c-.024-1.44.912-2.472 2.4-2.448m-11.031.018c.711-.006 1.419.198 1.839.63.432.432.672 1.128.648 1.992H9.336c.024-.456-.096-.792-.432-.96-.312-.144-.768-.048-.888.24-.12.264-.192.576-.168.864v3.504c0 .744.264 1.128.768 1.128a.65.65 0 0 0 .552-.264c.168-.24.192-.552.168-.84h1.776c.096 1.632-.984 2.712-2.568 2.688-1.536 0-2.496-.864-2.472-2.472v-4.032c0-.816.24-1.44.696-1.848.432-.408 1.146-.624 1.857-.63",source:"https://github.com/CSS-Next/logo.css/blob/bacc20878227204b283c68a6b935f8279e06b0cd/css.svg",hex:"663399",guidelines:"https://github.com/CSS-Next/logo.css"},Q6={title:"Cursor",slug:"cursor",get svg(){return He+"Cursor"+ke+this.path+Ue},path:"M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23",source:"https://cursor.com/brand",hex:"000000"},Z6={title:"DataGrip",slug:"datagrip",get svg(){return He+"DataGrip"+ke+this.path+Ue},path:"M0 0v24h24V0Zm17.1797 2.9477a5.452 5.452 0 0 1 3.9047 1.364L19.7078 5.972a3.672 3.672 0 0 0-2.596-1.0086c-1.6 0-2.8555 1.408-2.8555 3.096v.0282c0 1.816 1.2517 3.1523 3.0117 3.1523a3.492 3.492 0 0 0 2.064-.5921V9.2234h-2.2V7.336h4.3157v4.3157a6.436 6.436 0 0 1-4.2438 1.5757c-3.096 0-5.2242-2.1797-5.2242-5.1117v-.0281a5.1 5.1 0 0 1 5.2-5.1398zm-14.7438.1718h3.8758c3.12 0 5.2805 2.1439 5.2805 4.9399v.028c0 2.8-2.1605 4.968-5.2805 4.968H2.436Zm4.075 1.9688a2.852 2.852 0 0 0-.1992.003H4.6203v6h1.6914A2.832 2.832 0 0 0 9.304 8.1235v-.036a2.852 2.852 0 0 0-2.793-2.9991Zm-4.303 14.407h9v1.5h-9z",source:"https://www.jetbrains.com/company/brand/logos/",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand/"},K6={title:"Ghostty",slug:"ghostty",get svg(){return He+"Ghostty"+ke+this.path+Ue},path:"M12 0C6.7 0 2.4 4.3 2.4 9.6v11.146c0 1.772 1.45 3.267 3.222 3.254a3.18 3.18 0 0 0 1.955-.686 1.96 1.96 0 0 1 2.444 0 3.18 3.18 0 0 0 1.976.686c.75 0 1.436-.257 1.98-.686.715-.563 1.71-.587 2.419-.018.59.476 1.355.743 2.182.699 1.705-.094 3.022-1.537 3.022-3.244V9.601C21.6 4.3 17.302 0 12 0M6.069 6.562a1 1 0 0 1 .46.131l3.578 2.065v.002a.974.974 0 0 1 0 1.687L6.53 12.512a.975.975 0 0 1-.976-1.687L7.67 9.602 5.553 8.38a.975.975 0 0 1 .515-1.818m7.438 2.063h4.7a.975.975 0 1 1 0 1.95h-4.7a.975.975 0 0 1 0-1.95",source:"https://github.com/ghostty-org/website/blob/7093f052a2f35e0247fcb828ede644ed74a749a0/public/ghostty-logo.svg",hex:"3551F3"},$6={title:"GNU Bash",slug:"gnubash",get svg(){return He+"GNU Bash"+ke+this.path+Ue},path:"M21.038,4.9l-7.577-4.498C13.009,0.134,12.505,0,12,0c-0.505,0-1.009,0.134-1.462,0.403L2.961,4.9 C2.057,5.437,1.5,6.429,1.5,7.503v8.995c0,1.073,0.557,2.066,1.462,2.603l7.577,4.497C10.991,23.866,11.495,24,12,24 c0.505,0,1.009-0.134,1.461-0.402l7.577-4.497c0.904-0.537,1.462-1.529,1.462-2.603V7.503C22.5,6.429,21.943,5.437,21.038,4.9z M15.17,18.946l0.013,0.646c0.001,0.078-0.05,0.167-0.111,0.198l-0.383,0.22c-0.061,0.031-0.111-0.007-0.112-0.085L14.57,19.29 c-0.328,0.136-0.66,0.169-0.872,0.084c-0.04-0.016-0.057-0.075-0.041-0.142l0.139-0.584c0.011-0.046,0.036-0.092,0.069-0.121 c0.012-0.011,0.024-0.02,0.036-0.026c0.022-0.011,0.043-0.014,0.062-0.006c0.229,0.077,0.521,0.041,0.802-0.101 c0.357-0.181,0.596-0.545,0.592-0.907c-0.003-0.328-0.181-0.465-0.613-0.468c-0.55,0.001-1.064-0.107-1.072-0.917 c-0.007-0.667,0.34-1.361,0.889-1.8l-0.007-0.652c-0.001-0.08,0.048-0.168,0.111-0.2l0.37-0.236 c0.061-0.031,0.111,0.007,0.112,0.087l0.006,0.653c0.273-0.109,0.511-0.138,0.726-0.088c0.047,0.012,0.067,0.076,0.048,0.151 l-0.144,0.578c-0.011,0.044-0.036,0.088-0.065,0.116c-0.012,0.012-0.025,0.021-0.038,0.028c-0.019,0.01-0.038,0.013-0.057,0.009 c-0.098-0.022-0.332-0.073-0.699,0.113c-0.385,0.195-0.52,0.53-0.517,0.778c0.003,0.297,0.155,0.387,0.681,0.396 c0.7,0.012,1.003,0.318,1.01,1.023C16.105,17.747,15.736,18.491,15.17,18.946z M19.143,17.859c0,0.06-0.008,0.116-0.058,0.145 l-1.916,1.164c-0.05,0.029-0.09,0.004-0.09-0.056v-0.494c0-0.06,0.037-0.093,0.087-0.122l1.887-1.129 c0.05-0.029,0.09-0.004,0.09,0.056V17.859z M20.459,6.797l-7.168,4.427c-0.894,0.523-1.553,1.109-1.553,2.187v8.833 c0,0.645,0.26,1.063,0.66,1.184c-0.131,0.023-0.264,0.039-0.398,0.039c-0.42,0-0.833-0.114-1.197-0.33L3.226,18.64 c-0.741-0.44-1.201-1.261-1.201-2.142V7.503c0-0.881,0.46-1.702,1.201-2.142l7.577-4.498c0.363-0.216,0.777-0.33,1.197-0.33 c0.419,0,0.833,0.114,1.197,0.33l7.577,4.498c0.624,0.371,1.046,1.013,1.164,1.732C21.686,6.557,21.12,6.411,20.459,6.797z",source:"https://github.com/odb/official-bash-logo/tree/61eff022f2dad3c7468f5deb4f06652d15f2c143",hex:"4EAA25",guidelines:"https://github.com/odb/official-bash-logo",license:{type:"MIT",url:"https://spdx.org/licenses/MIT"}},J6={title:"GNU Emacs",slug:"gnuemacs",get svg(){return He+"GNU Emacs"+ke+this.path+Ue},path:"M12,24C5.448,24,0.118,18.617,0.118,12S5.448,0,12,0c6.552,0,11.882,5.383,11.882,12S18.552,24,12,24z M12,0.661 C5.813,0.661,0.779,5.748,0.779,12S5.813,23.339,12,23.339c6.187,0,11.221-5.086,11.221-11.339S18.187,0.661,12,0.661z M8.03,20.197 c0,0,0.978,0.069,2.236-0.042c0.51-0.045,2.444-0.235,3.891-0.552c0,0,1.764-0.377,2.707-0.725c0.987-0.364,1.524-0.673,1.766-1.11 c-0.011-0.09,0.074-0.408-0.381-0.599c-1.164-0.488-2.514-0.4-5.185-0.457c-2.962-0.102-3.948-0.598-4.472-0.997 c-0.503-0.405-0.25-1.526,1.907-2.513c1.086-0.526,5.345-1.496,5.345-1.496c-1.434-0.709-4.109-1.955-4.659-2.224 c-0.482-0.236-1.254-0.591-1.421-1.021c-0.19-0.413,0.448-0.768,0.804-0.87c1.147-0.331,2.766-0.536,4.24-0.56 c0.741-0.012,0.861-0.059,0.861-0.059c1.022-0.17,1.695-0.869,1.414-1.976c-0.252-1.13-1.579-1.795-2.84-1.565 c-1.188,0.217-4.05,1.048-4.05,1.048c3.539-0.031,4.131,0.028,4.395,0.398c0.156,0.218-0.071,0.518-1.015,0.672 c-1.027,0.168-3.163,0.37-3.163,0.37c-2.049,0.122-3.492,0.13-3.925,1.046C6.202,7.564,6.787,8.094,7.043,8.425 c1.082,1.204,2.646,1.853,3.652,2.331c0.379,0.18,1.49,0.52,1.49,0.52c-3.265-0.18-5.619,0.823-7.001,1.977 c-1.562,1.445-0.871,3.168,2.33,4.228c1.891,0.626,2.828,0.921,5.648,0.667c1.661-0.09,1.923-0.036,1.939,0.1 c0.023,0.192-1.845,0.669-2.355,0.816C11.448,19.438,8.047,20.193,8.03,20.197z",source:"https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/images/icons/hicolor/scalable/apps/emacs.svg",hex:"7F5AB6",license:{type:"GPL-2.0-or-later",url:"https://spdx.org/licenses/GPL-2.0-or-later"}},F6={title:"Go",slug:"go",get svg(){return He+"Go"+ke+this.path+Ue},path:"M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z",source:"https://blog.golang.org/go-brand",hex:"00ADD8",guidelines:"https://blog.golang.org/go-brand"},W6={title:"GoLand",slug:"goland",get svg(){return He+"GoLand"+ke+this.path+Ue},path:"M0 0v24h24V0Zm6.764 3a5.448 5.448 0 0 1 3.892 1.356L9.284 6.012A3.652 3.652 0 0 0 6.696 5c-1.6 0-2.844 1.4-2.844 3.08v.028c0 1.812 1.244 3.14 3 3.14a3.468 3.468 0 0 0 2.048-.596V9.228H6.708v-1.88H11v4.296a6.428 6.428 0 0 1-4.228 1.572c-3.076 0-5.196-2.164-5.196-5.092v-.028A5.08 5.08 0 0 1 6.764 3Zm10.432 0c3.052 0 5.244 2.276 5.244 5.088v.028a5.116 5.116 0 0 1-5.272 5.12c-3.056-.02-5.248-2.296-5.248-5.112v-.028A5.116 5.116 0 0 1 17.196 3Zm-.028 2A2.96 2.96 0 0 0 14.2 8.068v.028a3.008 3.008 0 0 0 3 3.112 2.96 2.96 0 0 0 2.964-3.084v-.028A3.004 3.004 0 0 0 17.168 5ZM2.252 19.5h9V21h-9z",source:"https://www.jetbrains.com/company/brand/#logos-and-icons-jetbrains-logos",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand/#brand-guidelines"},I6={title:"HTML5",slug:"html5",get svg(){return He+"HTML5"+ke+this.path+Ue},path:"M1.5 0h21l-1.91 21.563L11.977 24l-8.564-2.438L1.5 0zm7.031 9.75l-.232-2.718 10.059.003.23-2.622L5.412 4.41l.698 8.01h9.126l-.326 3.426-2.91.804-2.955-.81-.188-2.11H6.248l.33 4.171L12 19.351l5.379-1.443.744-8.157H8.531z",source:"https://www.w3.org/html/logo/",hex:"E34F26"},P6={title:"IntelliJ IDEA",slug:"intellijidea",get svg(){return He+"IntelliJ IDEA"+ke+this.path+Ue},path:"M0 0v24h24V0zm3.723 3.111h5v1.834h-1.39v6.277h1.39v1.834h-5v-1.834h1.444V4.945H3.723zm11.055 0H17v6.5c0 .612-.055 1.111-.222 1.556-.167.444-.39.777-.723 1.11-.277.279-.666.557-1.11.668a3.933 3.933 0 0 1-1.445.278c-.778 0-1.444-.167-1.944-.445a4.81 4.81 0 0 1-1.279-1.056l1.39-1.555c.277.334.555.555.833.722.277.167.611.278.945.278.389 0 .721-.111 1-.389.221-.278.333-.667.333-1.278zM2.222 19.5h9V21h-9z",source:"https://www.jetbrains.com/idea/",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand/"},e8={title:"iTerm2",slug:"iterm2",get svg(){return He+"iTerm2"+ke+this.path+Ue},path:"M24 5.359v13.282A5.36 5.36 0 0 1 18.641 24H5.359A5.36 5.36 0 0 1 0 18.641V5.359A5.36 5.36 0 0 1 5.359 0h13.282A5.36 5.36 0 0 1 24 5.359m-.932-.233A4.196 4.196 0 0 0 18.874.932H5.126A4.196 4.196 0 0 0 .932 5.126v13.748a4.196 4.196 0 0 0 4.194 4.194h13.748a4.196 4.196 0 0 0 4.194-4.194zm-.816.233v13.282a3.613 3.613 0 0 1-3.611 3.611H5.359a3.613 3.613 0 0 1-3.611-3.611V5.359a3.613 3.613 0 0 1 3.611-3.611h13.282a3.613 3.613 0 0 1 3.611 3.611M8.854 4.194v6.495h.962V4.194zM5.483 9.493v1.085h.597V9.48q.283-.037.508-.133.373-.165.575-.448.208-.284.208-.649a.9.9 0 0 0-.171-.568 1.4 1.4 0 0 0-.426-.388 3 3 0 0 0-.544-.261 32 32 0 0 0-.545-.209 1.8 1.8 0 0 1-.426-.216q-.164-.12-.164-.284 0-.223.179-.351.18-.126.485-.127.344 0 .575.105.239.105.5.298l.433-.5a2.3 2.3 0 0 0-.605-.433 1.6 1.6 0 0 0-.582-.159v-.968h-.597v.978a2 2 0 0 0-.477.127 1.2 1.2 0 0 0-.545.411q-.194.268-.194.634 0 .335.164.56.164.224.418.38a4 4 0 0 0 .552.262q.291.104.545.209.261.104.425.238a.39.39 0 0 1 .165.321q0 .225-.187.359-.18.134-.537.134-.381 0-.717-.134a4.4 4.4 0 0 1-.649-.351l-.388.589q.209.173.477.306.276.135.575.217.191.046.373.064",source:"https://github.com/gnachman/iTerm2/blob/6a857f3f5872eb1465ddc0dd83412015991e79ae/images/AppIcon/iTermIcon.sketch",hex:"000000"},t8={title:"JavaScript",slug:"javascript",get svg(){return He+"JavaScript"+ke+this.path+Ue},path:"M0 0h24v24H0V0zm22.034 18.276c-.175-1.095-.888-2.015-3.003-2.873-.736-.345-1.554-.585-1.797-1.14-.091-.33-.105-.51-.046-.705.15-.646.915-.84 1.515-.66.39.12.75.42.976.9 1.034-.676 1.034-.676 1.755-1.125-.27-.42-.404-.601-.586-.78-.63-.705-1.469-1.065-2.834-1.034l-.705.089c-.676.165-1.32.525-1.71 1.005-1.14 1.291-.811 3.541.569 4.471 1.365 1.02 3.361 1.244 3.616 2.205.24 1.17-.87 1.545-1.966 1.41-.811-.18-1.26-.586-1.755-1.336l-1.83 1.051c.21.48.45.689.81 1.109 1.74 1.756 6.09 1.666 6.871-1.004.029-.09.24-.705.074-1.65l.046.067zm-8.983-7.245h-2.248c0 1.938-.009 3.864-.009 5.805 0 1.232.063 2.363-.138 2.711-.33.689-1.18.601-1.566.48-.396-.196-.597-.466-.83-.855-.063-.105-.11-.196-.127-.196l-1.825 1.125c.305.63.75 1.172 1.324 1.517.855.51 2.004.675 3.207.405.783-.226 1.458-.691 1.811-1.411.51-.93.402-2.07.397-3.346.012-2.054 0-4.109 0-6.179l.004-.056z",source:"https://github.com/voodootikigod/logo.js/blob/1544bdeed6d618a6cfe4f0650d04ab8d9cfa76d9/js.svg",hex:"F7DF1E",license:{type:"MIT",url:"https://spdx.org/licenses/MIT"}},n8={title:"JSON",slug:"json",get svg(){return He+"JSON"+ke+this.path+Ue},path:"M12.043 23.968c.479-.004.953-.029 1.426-.094a11.805 11.805 0 003.146-.863 12.404 12.404 0 003.793-2.542 11.977 11.977 0 002.44-3.427 11.794 11.794 0 001.02-3.476c.149-1.16.135-2.346-.045-3.499a11.96 11.96 0 00-.793-2.788 11.197 11.197 0 00-.854-1.617c-1.168-1.837-2.861-3.314-4.81-4.3a12.835 12.835 0 00-2.172-.87h-.005c.119.063.24.132.345.201.12.074.239.146.351.225a8.93 8.93 0 011.559 1.33c1.063 1.145 1.797 2.548 2.218 4.041.284.982.434 1.998.495 3.017.044.743.044 1.491-.047 2.229-.149 1.27-.554 2.51-1.228 3.596a7.475 7.475 0 01-1.903 2.084c-1.244.928-2.877 1.482-4.436 1.114a3.916 3.916 0 01-.748-.258 4.692 4.692 0 01-.779-.45 6.08 6.08 0 01-1.244-1.105 6.507 6.507 0 01-1.049-1.747 7.366 7.366 0 01-.494-2.54c-.03-1.273.225-2.553.854-3.67a6.43 6.43 0 011.663-1.918c.225-.178.464-.333.704-.479l.016-.007a5.121 5.121 0 00-1.441-.12 4.963 4.963 0 00-1.228.24c-.359.12-.704.27-1.019.45a6.146 6.146 0 00-.733.494c-.211.18-.42.36-.615.555-1.123 1.153-1.768 2.682-2.022 4.256-.15.973-.15 1.96-.091 2.95.105 1.395.391 2.787.945 4.062a8.518 8.518 0 001.348 2.173 8.14 8.14 0 003.132 2.23 7.934 7.934 0 002.113.54c.074.015.149.015.209.015zm-2.934-.398a4.102 4.102 0 01-.45-.228 8.5 8.5 0 01-2.038-1.534c-1.094-1.137-1.827-2.566-2.247-4.08a15.184 15.184 0 01-.495-3.172 12.14 12.14 0 01.046-2.082c.135-1.257.495-2.501 1.124-3.58a6.889 6.889 0 011.783-2.053 6.23 6.23 0 011.633-.9 5.363 5.363 0 013.522-.045c.029 0 .029 0 .045.03.015.015.045.015.06.03.045.016.104.045.165.074.239.12.479.271.704.42a6.294 6.294 0 012.097 2.502c.42.914.615 1.934.631 2.938.014 1.079-.18 2.157-.645 3.146a6.42 6.42 0 01-2.638 2.832c.09.03.18.045.271.075.225.044.449.074.688.074 1.468.045 2.892-.66 3.94-1.647.195-.18.375-.375.54-.585.225-.27.435-.54.614-.823.239-.375.435-.75.614-1.154a8.112 8.112 0 00.509-1.664c.196-1.004.211-2.022.149-3.026-.135-2.022-.673-4.045-1.842-5.724a9.054 9.054 0 00-.555-.719 9.868 9.868 0 00-1.063-1.034 8.477 8.477 0 00-1.363-.915 9.927 9.927 0 00-1.692-.598l-.3-.06c-.209-.03-.42-.044-.634-.06a8.453 8.453 0 00-1.015.016c-.704.045-1.412.16-2.112.337C5.799 1.227 2.863 3.566 1.3 6.67A11.834 11.834 0 00.238 9.801a11.81 11.81 0 00-.104 3.775c.12 1.02.374 2.023.778 2.977.227.57.511 1.124.825 1.648 1.094 1.783 2.683 3.236 4.51 4.24.688.39 1.408.69 2.157.944.226.074.45.15.689.21z",source:"https://commons.wikimedia.org/wiki/File:JSON_vector_logo.svg",hex:"000000"},l8={title:"Lapce",slug:"lapce",get svg(){return He+"Lapce"+ke+this.path+Ue},path:"M3.802 1.267 1.608 0v24L8 20.31v-2.535L3.802 20.2Zm4.208 13.9V6.231L18.003 12l-7.798 4.503v2.533L22.392 12 5.806 2.424V16.44Zm5.598-3.231L10.205 9.97v3.93Z",source:"https://github.com/lapce/lapce/blob/95c4cf2d87083e348c0b621d0be0ea17f79ed703/extra/images/logo.svg",hex:"3B82F6"},a8={title:"Markdown",slug:"markdown",get svg(){return He+"Markdown"+ke+this.path+Ue},path:"M22.27 19.385H1.73A1.73 1.73 0 010 17.655V6.345a1.73 1.73 0 011.73-1.73h20.54A1.73 1.73 0 0124 6.345v11.308a1.73 1.73 0 01-1.73 1.731zM5.769 15.923v-4.5l2.308 2.885 2.307-2.885v4.5h2.308V8.078h-2.308l-2.307 2.885-2.308-2.885H3.46v7.847zM21.232 12h-2.309V8.077h-2.307V12h-2.308l3.461 4.039z",source:"https://github.com/dcurtis/markdown-mark/tree/360a3657fef7f6ad0b303296a95ad52985caa0d3",hex:"000000",guidelines:"https://github.com/dcurtis/markdown-mark",license:{type:"CC0-1.0",url:"https://spdx.org/licenses/CC0-1.0"}},i8={title:"Neovim",slug:"neovim",get svg(){return He+"Neovim"+ke+this.path+Ue},path:"M2.214 4.954v13.615L7.655 24V10.314L3.312 3.845 2.214 4.954zm4.999 17.98l-4.557-4.548V5.136l.59-.596 3.967 5.908v12.485zm14.573-4.457l-.862.937-4.24-6.376V0l5.068 5.092.034 13.385zM7.431.001l12.998 19.835-3.637 3.637L3.787 3.683 7.43 0z",source:"https://neovim.io",hex:"57A143",license:{type:"CC-BY-SA-3.0",url:"https://spdx.org/licenses/CC-BY-SA-3.0"}},c8={title:"PhpStorm",slug:"phpstorm",get svg(){return He+"PhpStorm"+ke+this.path+Ue},path:"M7.833 6.611v-.055c0-1-.667-1.5-1.778-1.5H4.389v3.056h1.722c1.111-.001 1.722-.668 1.722-1.501zM0 0v24h24V0H0zm2.167 3.111h4.056c2.389 0 3.833 1.389 3.833 3.445v.055c0 2.333-1.778 3.5-4.056 3.5H4.333v3H2.167v-10zM11.278 21h-9v-1.5h9V21zM18.5 10.222c0 2-1.5 3.111-3.667 3.111-1.5-.056-3-.611-4.222-1.667l1.278-1.556c.89.722 1.833 1.222 3 1.222.889 0 1.444-.333 1.444-.944v-.056c0-.555-.333-.833-2-1.277C12.333 8.555 11 8 11 6v-.056c0-1.833 1.444-3 3.5-3 1.444 0 2.723.444 3.723 1.278l-1.167 1.667c-.889-.611-1.777-1-2.611-1-.833 0-1.278.389-1.278.889v.056c0 .667.445.889 2.167 1.333 2 .556 3.167 1.278 3.167 3v.055z",source:"https://www.jetbrains.com/company/brand/logos/",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand/"},s8={title:"PyCharm",slug:"pycharm",get svg(){return He+"PyCharm"+ke+this.path+Ue},path:"M7.833 6.666v-.055c0-1-.667-1.5-1.778-1.5H4.389v3.055h1.723c1.111 0 1.721-.666 1.721-1.5zM0 0v24h24V0H0zm2.223 3.167h4c2.389 0 3.833 1.389 3.833 3.445v.055c0 2.278-1.778 3.5-4.001 3.5H4.389v2.945H2.223V3.167zM11.277 21h-9v-1.5h9V21zm4.779-7.777c-2.944.055-5.111-2.223-5.111-5.057C10.944 5.333 13.056 3 16.111 3c1.889 0 3 .611 3.944 1.556l-1.389 1.61c-.778-.722-1.556-1.111-2.556-1.111-1.658 0-2.873 1.375-2.887 3.084.014 1.709 1.174 3.083 2.887 3.083 1.111 0 1.833-.445 2.61-1.167l1.39 1.389c-.999 1.112-2.166 1.779-4.054 1.779z",source:"https://www.jetbrains.com/company/brand/logos/",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand/"},u8={title:"Python",slug:"python",get svg(){return He+"Python"+ke+this.path+Ue},path:"M14.25.18l.9.2.73.26.59.3.45.32.34.34.25.34.16.33.1.3.04.26.02.2-.01.13V8.5l-.05.63-.13.55-.21.46-.26.38-.3.31-.33.25-.35.19-.35.14-.33.1-.3.07-.26.04-.21.02H8.77l-.69.05-.59.14-.5.22-.41.27-.33.32-.27.35-.2.36-.15.37-.1.35-.07.32-.04.27-.02.21v3.06H3.17l-.21-.03-.28-.07-.32-.12-.35-.18-.36-.26-.36-.36-.35-.46-.32-.59-.28-.73-.21-.88-.14-1.05-.05-1.23.06-1.22.16-1.04.24-.87.32-.71.36-.57.4-.44.42-.33.42-.24.4-.16.36-.1.32-.05.24-.01h.16l.06.01h8.16v-.83H6.18l-.01-2.75-.02-.37.05-.34.11-.31.17-.28.25-.26.31-.23.38-.2.44-.18.51-.15.58-.12.64-.1.71-.06.77-.04.84-.02 1.27.05zm-6.3 1.98l-.23.33-.08.41.08.41.23.34.33.22.41.09.41-.09.33-.22.23-.34.08-.41-.08-.41-.23-.33-.33-.22-.41-.09-.41.09zm13.09 3.95l.28.06.32.12.35.18.36.27.36.35.35.47.32.59.28.73.21.88.14 1.04.05 1.23-.06 1.23-.16 1.04-.24.86-.32.71-.36.57-.4.45-.42.33-.42.24-.4.16-.36.09-.32.05-.24.02-.16-.01h-8.22v.82h5.84l.01 2.76.02.36-.05.34-.11.31-.17.29-.25.25-.31.24-.38.2-.44.17-.51.15-.58.13-.64.09-.71.07-.77.04-.84.01-1.27-.04-1.07-.14-.9-.2-.73-.25-.59-.3-.45-.33-.34-.34-.25-.34-.16-.33-.1-.3-.04-.25-.02-.2.01-.13v-5.34l.05-.64.13-.54.21-.46.26-.38.3-.32.33-.24.35-.2.35-.14.33-.1.3-.06.26-.04.21-.02.13-.01h5.84l.69-.05.59-.14.5-.21.41-.28.33-.32.27-.35.2-.36.15-.36.1-.35.07-.32.04-.28.02-.21V6.07h2.09l.14.01zm-6.47 14.25l-.23.33-.08.41.08.41.23.33.33.23.41.08.41-.08.33-.23.23-.33.08-.41-.08-.41-.23-.33-.33-.23-.41-.08-.41.08z",source:"https://www.python.org/community/logos/",hex:"3776AB",guidelines:"https://www.python.org/community/logos/"},Md={title:"React",slug:"react",get svg(){return He+"React"+ke+this.path+Ue},path:"M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z",source:"https://github.com/facebook/create-react-app/blob/282c03f9525fdf8061ffa1ec50dce89296d916bd/test/fixtures/relative-paths/src/logo.svg",hex:"61DAFB"},o8={title:"Ruby",slug:"ruby",get svg(){return He+"Ruby"+ke+this.path+Ue},path:"M20.156.083c3.033.525 3.893 2.598 3.829 4.77L24 4.822 22.635 22.71 4.89 23.926h.016C3.433 23.864.15 23.729 0 19.139l1.645-3 2.819 6.586.503 1.172 2.805-9.144-.03.007.016-.03 9.255 2.956-1.396-5.431-.99-3.9 8.82-.569-.615-.51L16.5 2.114 20.159.073l-.003.01zM0 19.089zM5.13 5.073c3.561-3.533 8.157-5.621 9.922-3.84 1.762 1.777-.105 6.105-3.673 9.636-3.563 3.532-8.103 5.734-9.864 3.957-1.766-1.777.045-6.217 3.612-9.75l.003-.003z",source:"https://www.ruby-lang.org/en/about/logo/",hex:"CC342D",license:{type:"CC-BY-SA-2.5",url:"https://spdx.org/licenses/CC-BY-SA-2.5"}},r8={title:"RubyMine",slug:"rubymine",get svg(){return He+"RubyMine"+ke+this.path+Ue},path:"M0 0v24h24V0Zm3.056 3H6.92q.945 0 1.665.347t1.106.977c.262.42.392.902.392 1.46q0 .835-.399 1.478a2.6 2.6 0 0 1-1.125.99 2 2 0 0 1-.297.103q-.066.02-.13.04L10.276 12H8.264l-1.94-3.4H4.811V12H3.056Zm8.51 0h2.444l1.851 5.907.154.773.136-.773L17.937 3h2.482v9h-1.736V5.578l.026-.47L16.613 12H15.34l-2.07-6.846.026.424V12h-1.73ZM4.812 4.459V7.14h1.993q.444-.001.771-.161.335-.167.515-.47c.12-.205.18-.439.18-.713q0-.411-.18-.707a1.17 1.17 0 0 0-.515-.462 1.7 1.7 0 0 0-.77-.168ZM2.996 19.2h9.6V21h-9.6z",source:"https://www.jetbrains.com/company/brand/logos",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand"},f8={title:"Rust",slug:"rust",get svg(){return He+"Rust"+ke+this.path+Ue},path:"M23.8346 11.7033l-1.0073-.6236a13.7268 13.7268 0 00-.0283-.2936l.8656-.8069a.3483.3483 0 00-.1154-.578l-1.1066-.414a8.4958 8.4958 0 00-.087-.2856l.6904-.9587a.3462.3462 0 00-.2257-.5446l-1.1663-.1894a9.3574 9.3574 0 00-.1407-.2622l.49-1.0761a.3437.3437 0 00-.0274-.3361.3486.3486 0 00-.3006-.154l-1.1845.0416a6.7444 6.7444 0 00-.1873-.2268l.2723-1.153a.3472.3472 0 00-.417-.4172l-1.1532.2724a14.0183 14.0183 0 00-.2278-.1873l.0415-1.1845a.3442.3442 0 00-.49-.328l-1.076.491c-.0872-.0476-.1742-.0952-.2623-.1407l-.1903-1.1673A.3483.3483 0 0016.256.955l-.9597.6905a8.4867 8.4867 0 00-.2855-.086l-.414-1.1066a.3483.3483 0 00-.5781-.1154l-.8069.8666a9.2936 9.2936 0 00-.2936-.0284L12.2946.1683a.3462.3462 0 00-.5892 0l-.6236 1.0073a13.7383 13.7383 0 00-.2936.0284L9.9803.3374a.3462.3462 0 00-.578.1154l-.4141 1.1065c-.0962.0274-.1903.0567-.2855.086L7.744.955a.3483.3483 0 00-.5447.2258L7.009 2.348a9.3574 9.3574 0 00-.2622.1407l-1.0762-.491a.3462.3462 0 00-.49.328l.0416 1.1845a7.9826 7.9826 0 00-.2278.1873L3.8413 3.425a.3472.3472 0 00-.4171.4171l.2713 1.1531c-.0628.075-.1255.1509-.1863.2268l-1.1845-.0415a.3462.3462 0 00-.328.49l.491 1.0761a9.167 9.167 0 00-.1407.2622l-1.1662.1894a.3483.3483 0 00-.2258.5446l.6904.9587a13.303 13.303 0 00-.087.2855l-1.1065.414a.3483.3483 0 00-.1155.5781l.8656.807a9.2936 9.2936 0 00-.0283.2935l-1.0073.6236a.3442.3442 0 000 .5892l1.0073.6236c.008.0982.0182.1964.0283.2936l-.8656.8079a.3462.3462 0 00.1155.578l1.1065.4141c.0273.0962.0567.1914.087.2855l-.6904.9587a.3452.3452 0 00.2268.5447l1.1662.1893c.0456.088.0922.1751.1408.2622l-.491 1.0762a.3462.3462 0 00.328.49l1.1834-.0415c.0618.0769.1235.1528.1873.2277l-.2713 1.1541a.3462.3462 0 00.4171.4161l1.153-.2713c.075.0638.151.1255.2279.1863l-.0415 1.1845a.3442.3442 0 00.49.327l1.0761-.49c.087.0486.1741.0951.2622.1407l.1903 1.1662a.3483.3483 0 00.5447.2268l.9587-.6904a9.299 9.299 0 00.2855.087l.414 1.1066a.3452.3452 0 00.5781.1154l.8079-.8656c.0972.0111.1954.0203.2936.0294l.6236 1.0073a.3472.3472 0 00.5892 0l.6236-1.0073c.0982-.0091.1964-.0183.2936-.0294l.8069.8656a.3483.3483 0 00.578-.1154l.4141-1.1066a8.4626 8.4626 0 00.2855-.087l.9587.6904a.3452.3452 0 00.5447-.2268l.1903-1.1662c.088-.0456.1751-.0931.2622-.1407l1.0762.49a.3472.3472 0 00.49-.327l-.0415-1.1845a6.7267 6.7267 0 00.2267-.1863l1.1531.2713a.3472.3472 0 00.4171-.416l-.2713-1.1542c.0628-.0749.1255-.1508.1863-.2278l1.1845.0415a.3442.3442 0 00.328-.49l-.49-1.076c.0475-.0872.0951-.1742.1407-.2623l1.1662-.1893a.3483.3483 0 00.2258-.5447l-.6904-.9587.087-.2855 1.1066-.414a.3462.3462 0 00.1154-.5781l-.8656-.8079c.0101-.0972.0202-.1954.0283-.2936l1.0073-.6236a.3442.3442 0 000-.5892zm-6.7413 8.3551a.7138.7138 0 01.2986-1.396.714.714 0 11-.2997 1.396zm-.3422-2.3142a.649.649 0 00-.7715.5l-.3573 1.6685c-1.1035.501-2.3285.7795-3.6193.7795a8.7368 8.7368 0 01-3.6951-.814l-.3574-1.6684a.648.648 0 00-.7714-.499l-1.473.3158a8.7216 8.7216 0 01-.7613-.898h7.1676c.081 0 .1356-.0141.1356-.088v-2.536c0-.074-.0536-.0881-.1356-.0881h-2.0966v-1.6077h2.2677c.2065 0 1.1065.0587 1.394 1.2088.0901.3533.2875 1.5044.4232 1.8729.1346.413.6833 1.2381 1.2685 1.2381h3.5716a.7492.7492 0 00.1296-.0131 8.7874 8.7874 0 01-.8119.9526zM6.8369 20.024a.714.714 0 11-.2997-1.396.714.714 0 01.2997 1.396zM4.1177 8.9972a.7137.7137 0 11-1.304.5791.7137.7137 0 011.304-.579zm-.8352 1.9813l1.5347-.6824a.65.65 0 00.33-.8585l-.3158-.7147h1.2432v5.6025H3.5669a8.7753 8.7753 0 01-.2834-3.348zm6.7343-.5437V8.7836h2.9601c.153 0 1.0792.1772 1.0792.8697 0 .575-.7107.7815-1.2948.7815zm10.7574 1.4862c0 .2187-.008.4363-.0243.651h-.9c-.09 0-.1265.0586-.1265.1477v.413c0 .973-.5487 1.1846-1.0296 1.2382-.4576.0517-.9648-.1913-1.0275-.4717-.2704-1.5186-.7198-1.8436-1.4305-2.4034.8817-.5599 1.799-1.386 1.799-2.4915 0-1.1936-.819-1.9458-1.3769-2.3153-.7825-.5163-1.6491-.6195-1.883-.6195H5.4682a8.7651 8.7651 0 014.907-2.7699l1.0974 1.151a.648.648 0 00.9182.0213l1.227-1.1743a8.7753 8.7753 0 016.0044 4.2762l-.8403 1.8982a.652.652 0 00.33.8585l1.6178.7188c.0283.2875.0425.577.0425.8717zm-9.3006-9.5993a.7128.7128 0 11.984 1.0316.7137.7137 0 01-.984-1.0316zm8.3389 6.71a.7107.7107 0 01.9395-.3625.7137.7137 0 11-.9405.3635z",source:"https://www.rust-lang.org",hex:"000000",guidelines:"https://www.rust-lang.org/policies/media-guide",license:{type:"CC-BY-SA-4.0",url:"https://spdx.org/licenses/CC-BY-SA-4.0"}},d8={title:"Sublime Text",slug:"sublimetext",get svg(){return He+"Sublime Text"+ke+this.path+Ue},path:"M20.953.004a.397.397 0 0 0-.18.017L3.225 5.585c-.175.055-.323.214-.402.398a.42.42 0 0 0-.06.22v5.726a.42.42 0 0 0 .06.22c.079.183.227.341.402.397l7.454 2.364-7.454 2.363c-.255.08-.463.374-.463.655v5.688c0 .282.208.444.463.363l17.55-5.565c.237-.075.426-.336.452-.6.003-.022.013-.04.013-.065V12.06c0-.281-.208-.575-.463-.656L13.4 9.065l7.375-2.339c.255-.08.462-.375.462-.656V.384c0-.211-.117-.355-.283-.38z",source:"https://www.sublimetext.com",hex:"FF9800"},h8={title:"Swift",slug:"swift",get svg(){return He+"Swift"+ke+this.path+Ue},path:"M7.508 0c-.287 0-.573 0-.86.002-.241.002-.483.003-.724.01-.132.003-.263.009-.395.015A9.154 9.154 0 0 0 4.348.15 5.492 5.492 0 0 0 2.85.645 5.04 5.04 0 0 0 .645 2.848c-.245.48-.4.972-.495 1.5-.093.52-.122 1.05-.136 1.576a35.2 35.2 0 0 0-.012.724C0 6.935 0 7.221 0 7.508v8.984c0 .287 0 .575.002.862.002.24.005.481.012.722.014.526.043 1.057.136 1.576.095.528.25 1.02.495 1.5a5.03 5.03 0 0 0 2.205 2.203c.48.244.97.4 1.498.495.52.093 1.05.124 1.576.138.241.007.483.009.724.01.287.002.573.002.86.002h8.984c.287 0 .573 0 .86-.002.241-.001.483-.003.724-.01a10.523 10.523 0 0 0 1.578-.138 5.322 5.322 0 0 0 1.498-.495 5.035 5.035 0 0 0 2.203-2.203c.245-.48.4-.972.495-1.5.093-.52.124-1.05.138-1.576.007-.241.009-.481.01-.722.002-.287.002-.575.002-.862V7.508c0-.287 0-.573-.002-.86a33.662 33.662 0 0 0-.01-.724 10.5 10.5 0 0 0-.138-1.576 5.328 5.328 0 0 0-.495-1.5A5.039 5.039 0 0 0 21.152.645 5.32 5.32 0 0 0 19.654.15a10.493 10.493 0 0 0-1.578-.138 34.98 34.98 0 0 0-.722-.01C17.067 0 16.779 0 16.492 0H7.508zm6.035 3.41c4.114 2.47 6.545 7.162 5.549 11.131-.024.093-.05.181-.076.272l.002.001c2.062 2.538 1.5 5.258 1.236 4.745-1.072-2.086-3.066-1.568-4.088-1.043a6.803 6.803 0 0 1-.281.158l-.02.012-.002.002c-2.115 1.123-4.957 1.205-7.812-.022a12.568 12.568 0 0 1-5.64-4.838c.649.48 1.35.902 2.097 1.252 3.019 1.414 6.051 1.311 8.197-.002C9.651 12.73 7.101 9.67 5.146 7.191a10.628 10.628 0 0 1-1.005-1.384c2.34 2.142 6.038 4.83 7.365 5.576C8.69 8.408 6.208 4.743 6.324 4.86c4.436 4.47 8.528 6.996 8.528 6.996.154.085.27.154.36.213.085-.215.16-.437.224-.668.708-2.588-.09-5.548-1.893-7.992z",source:"https://developer.apple.com/swift/resources/",hex:"F05138",guidelines:"https://developer.apple.com/swift/resources/"},m8={title:"TypeScript",slug:"typescript",get svg(){return He+"TypeScript"+ke+this.path+Ue},path:"M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z",source:"https://www.typescriptlang.org/branding",hex:"3178C6",guidelines:"https://www.typescriptlang.org/branding"},p8={title:"Vim",slug:"vim",get svg(){return He+"Vim"+ke+this.path+Ue},path:"M24 11.986h-.027l-4.318-4.318 4.303-4.414V1.461l-.649-.648h-8.198l-.66.605v1.045L12.015.027V0L12 .014 11.986 0v.027l-1.29 1.291-.538-.539H2.035l-.638.692v1.885l.616.616h.72v5.31L.027 11.987H0L.014 12 0 12.014h.027l2.706 2.706v6.467l.907.523h2.322l1.857-1.904 4.166 4.166V24l.015-.014.014.014v-.028l2.51-2.509h.485c.111 0 .211-.07.25-.179l.146-.426c.028-.084.012-.172-.037-.239l1.462-1.462-.612 1.962c-.043.141.036.289.177.332.025.008.052.012.078.012h1.824c.106-.001.201-.064.243-.163l.165-.394c.025-.065.024-.138-.004-.203-.027-.065-.08-.116-.146-.142-.029-.012-.062-.019-.097-.02h-.075l.84-2.644h1.232l-1.016 3.221c-.043.141.036.289.176.332.025.008.052.012.079.012h2.002c.11 0 .207-.066.248-.17l.164-.428c.051-.138-.021-.29-.158-.341-.029-.011-.06-.017-.091-.017h-.145l1.131-3.673c.027-.082.012-.173-.039-.24l-.375-.504-.003-.005c-.051-.064-.127-.102-.209-.102h-1.436c-.071 0-.141.03-.19.081l-.4.439h-.624l-.042-.046 4.445-4.445H24L23.986 12l.014-.014zM9.838 21.139l1.579-4.509h-.501l.297-.304h1.659l-1.563 4.555h.623l-.079.258H9.838zm3.695-7.516l.15.151-.269.922-.225.226h-.969l-.181-.181.311-.871.288-.247h.895zM5.59 20.829H3.877l-.262-.15V3.091H2.379l-.1-.1V1.815l.143-.154h7.371l.213.214v1.108l-.142.173H8.785v8.688l8.807-8.688h-2.086l-.175-.188V1.805l.121-.111h7.49l.132.133v1.07L12.979 13.25h-.373c-.015-.001-.028 0-.042.001l-.02.003c-.045.01-.086.03-.119.06l-.343.295-.004.003c-.033.031-.059.069-.073.111l-.296.83-6.119 6.276zm14.768-3.952l.474-.519h1.334l.309.415-1.265 4.107h.493l-.08.209H19.84l1.124-3.564h-2.015l-1.077 3.391h.424l-.073.174h-1.605l1.107-3.548h-2.096l-1.062 3.339h.436l-.072.209H13.27l1.514-4.46H14.198l.091-.271h1.65l.519.537h.906l.491-.554h1.061l.489.535h.953z",source:"https://commons.wikimedia.org/wiki/File:Vimlogo.svg",hex:"019733"},y8={title:"VSCodium",slug:"vscodium",get svg(){return He+"VSCodium"+ke+this.path+Ue},path:"M11.583.54a1.467 1.467 0 0 0-.441 2.032c2.426 3.758 2.999 6.592 2.75 9.075-1.004 4.756-3.187 5.721-5.094 5.721-1.863 0-1.364-3.065.036-3.962.836-.522 1.906-.861 2.728-.861.814 0 1.474-.658 1.474-1.47 0-.812-.66-1.47-1.474-1.47-.96 0-1.901.202-2.78.545.18-.847.246-1.762.014-2.735-.352-1.477-1.367-2.889-3.128-4.257a1.476 1.476 0 0 0-2.069.256c-.5.64-.384 1.564.259 2.063 1.435 1.114 1.908 1.939 2.07 2.618.162.679.032 1.407-.293 2.408-.416 1.349-.9 2.553-1.11 3.708-.105.568-.114 1.187-.14 1.68-1.034-1.006-1.438-2.336-1.438-4.279 0-.811-.66-1.47-1.474-1.47-.814.001-1.473.659-1.473 1.47 0 2.654.776 5.179 2.855 6.863 1.883 1.793 6.67 1.13 6.67 4.01 0 .812 1.19 1.208 2.004 1.208.834 0 1.885-.558 1.885-1.208 0-3.267 3.443-5.253 9.11-5.244A1.472 1.472 0 0 0 24 15.773 1.472 1.472 0 0 0 22.53 14.3c-.388 0-.765.013-1.138.035.634-1.49.915-3.13.857-4.903a1.473 1.473 0 0 0-1.522-1.42 1.472 1.472 0 0 0-1.425 1.517c.076 2.32-.01 4.393-1.74 5.485-.49.31-1.062.58-1.604.58.42-1.145.738-2.353.869-3.655.083-.83.091-1.818-.003-2.585-.148-1.188-.325-2.535.126-3.55.405-.874 1.313-1.24 2.645-1.24.814 0 1.473-.659 1.473-1.47 0-.811-.659-1.47-1.473-1.47-1.98 0-3.481 1.042-4.332 2.3-.445-.95-.987-1.929-1.642-2.943a1.474 1.474 0 0 0-2.037-.44z",source:"https://github.com/VSCodium/vscodium.github.io/blob/ed028c57f10e6432ec55dfc34d4db1a83fba941d/img/codium_cnl.svg",hex:"2F80ED"},g8={title:"WebStorm",slug:"webstorm",get svg(){return He+"WebStorm"+ke+this.path+Ue},path:"M0 0v24h24V0H0zm17.889 2.889c1.444 0 2.667.444 3.667 1.278l-1.111 1.667c-.889-.611-1.722-1-2.556-1s-1.278.389-1.278.889v.056c0 .667.444.889 2.111 1.333 2 .556 3.111 1.278 3.111 3v.056c0 2-1.5 3.111-3.611 3.111-1.5-.056-3-.611-4.167-1.667l1.278-1.556c.889.722 1.833 1.222 2.944 1.222.889 0 1.389-.333 1.389-.944v-.056c0-.556-.333-.833-2-1.278-2-.5-3.222-1.056-3.222-3.056v-.056c0-1.833 1.444-3 3.444-3zm-16.111.222h2.278l1.5 5.778 1.722-5.778h1.667l1.667 5.778 1.5-5.778h2.333l-2.833 9.944H9.723L8.112 7.277l-1.667 5.778H4.612L1.779 3.111zm.5 16.389h9V21h-9v-1.5z",source:"https://www.jetbrains.com/company/brand/logos",hex:"000000",guidelines:"https://www.jetbrains.com/company/brand"},v8={title:"Windsurf",slug:"windsurf",get svg(){return He+"Windsurf"+ke+this.path+Ue},path:"M23.55 5.067c-1.2038-.002-2.1806.973-2.1806 2.1765v4.8676c0 .972-.8035 1.7594-1.7597 1.7594-.568 0-1.1352-.286-1.4718-.7659l-4.9713-7.1003c-.4125-.5896-1.0837-.941-1.8103-.941-1.1334 0-2.1533.9635-2.1533 2.153v4.8957c0 .972-.7969 1.7594-1.7596 1.7594-.57 0-1.1363-.286-1.4728-.7658L.4076 5.1598C.2822 4.9798 0 5.0688 0 5.2882v4.2452c0 .2147.0656.4228.1884.599l5.4748 7.8183c.3234.462.8006.8052 1.3509.9298 1.3771.313 2.6446-.747 2.6446-2.0977v-4.893c0-.972.7875-1.7593 1.7596-1.7593h.003a1.798 1.798 0 0 1 1.4718.7658l4.9723 7.0994c.4135.5905 1.05.941 1.8093.941 1.1587 0 2.1515-.9645 2.1515-2.153v-4.8948c0-.972.7875-1.7594 1.7596-1.7594h.194a.22.22 0 0 0 .2204-.2202v-4.622a.22.22 0 0 0-.2203-.2203Z",source:"https://windsurf.com/brand",hex:"0B100F",guidelines:"https://windsurf.com/brand"},b8={title:"Xcode",slug:"xcode",get svg(){return He+"Xcode"+ke+this.path+Ue},path:"M19.06 5.3327c.4517-.1936.7744-.2581 1.097-.1936.5163.1291.7744.5163.968.7098.1936.3872.9034.7744 1.2261.8389.2581.0645.7098-.6453 1.0325-1.2906.3227-.5808.5163-1.3552.4517-1.5488-.0645-.1936-.968-.5808-1.1616-.5808-.1291 0-.3872.1291-.8389.0645-.4517-.0645-.9034-.5808-1.1616-.968-.4517-.6453-1.097-1.0325-1.6778-1.3552-.6453-.3227-1.3552-.5163-2.065-.6453-1.0325-.2581-2.065-.4517-3.0975-.3227-.5808.0645-1.2906.1291-1.8069.3227-.0645 0-.1936.1936-.0645.1936s.5808.0645.5808.0645-.5807.1292-.5807.2583c0 .1291.0645.1291.1291.1291.0645 0 1.4842-.0645 2.065 0 .6453.1291 1.3552.4517 1.8069 1.2261.7744 1.4197.4517 2.7749.2581 3.2266-.968 2.1295-8.6472 15.2294-9.0344 16.1328-.3873.9034-.5163 1.4842.5807 2.065s1.6778.3227 2.0005-.0645c.3872-.5163 7.0339-17.1654 9.2925-18.2624zm-3.6138 8.7117h1.5488c1.0325 0 1.2261.5163 1.2261.7098.0645.5163-.1936 1.1616-1.2261 1.1616h-.968l.7744 1.2906c.4517.7744.2581 1.1616 0 1.4197-.3872.3872-1.2261.3872-1.6778-.4517l-.9034-1.5488c-.6453 1.4197-1.2906 2.9684-2.065 4.7753h4.0009c1.9359 0 3.5492-1.6133 3.5492-3.5492V6.5588c-.0645-.1291-.1936-.0645-.2581 0-.3872.4517-1.4842 2.0004-4.001 7.4856zm-9.8087 8.0019h-.3227c-2.3231 0-4.1945-1.8714-4.1945-4.1945V7.0105c0-2.3231 1.8714-4.1945 4.1945-4.1945h9.3571c-.1936-.1936-.968-.5163-1.7423-.4517-.3227 0-.968.1291-1.3552-.1291-.3872-.3227-.3227-.5163-.9034-.5163H4.9277c-2.6458 0-4.7753 2.1295-4.7753 4.7753v11.7447c0 2.6458 2.1295 4.7753 4.4527 4.7108.6452 0 .8388-.5162 1.0324-.9034zM20.4152 6.9459v10.9058c0 2.3231-1.8714 4.1945-4.1945 4.1945H11.897s-.3872 1.0325.8389 1.0325h3.8719c2.6458 0 4.7753-2.1295 4.7753-4.7753V8.8173c.0646-.9034-.7098-1.4842-.9679-1.8714zm-18.5851.0646v10.8413c0 1.9359 1.6133 3.5492 3.5492 3.5492h.5808c0-.0645.7744-1.4197 2.4522-4.2591.1936-.3872.4517-.7744.7098-1.2261H4.4114c-.5808 0-.9034-.3872-.968-.7098-.1291-.5163.1936-1.1616.9034-1.1616h2.3877l3.033-5.2916s-.7098-1.2906-.9034-1.6133c-.2582-.4517-.1291-.9034.129-1.1615.3872-.3872 1.0325-.5808 1.6778.4517l.2581.3872.2581-.3872c.5808-.8389.968-.7744 1.2906-.7098.5163.1291.8389.7098.3872 1.6133L8.864 14.0444h1.3552c.4517-.7744.9034-1.5488 1.3552-2.3877-.0645-.3227-.1291-.7098-.0645-1.0325.0645-.5163.3227-.968.6453-1.3552l.3872.6453c1.2261-2.1295 2.1295-3.9364 2.3877-4.6463.1291-.3872.3227-1.1616.1291-1.8069H5.3794c-2.0005.0001-3.5493 1.6134-3.5493 3.5494zM4.605 17.7872c0-.0645.7744-1.4197.7744-1.4197 1.2261-.3227 1.8069.4517 1.8714.5163 0 0-.8389 1.4842-1.097 1.7423s-.5808.3227-.9034.2581c-.5164-.129-.839-.6453-.6454-1.097z",source:"https://developer.apple.com/develop",hex:"147EFB"},x8={title:"YAML",slug:"yaml",get svg(){return He+"YAML"+ke+this.path+Ue},path:"m0 .97 4.111 6.453v4.09h2.638v-4.09L11.053.969H8.214L5.58 5.125 2.965.969Zm12.093.024-4.47 10.544h2.114l.97-2.345h4.775l.804 2.345h2.26L14.255.994Zm1.133 2.225 1.463 3.87h-3.096zm3.06 9.475v10.29H24v-2.199h-5.454v-8.091zm-12.175.002v10.335h2.217v-7.129l2.32 4.792h1.746l2.4-4.96v7.295h2.127V12.696h-2.904L9.44 17.37l-2.455-4.674Z",source:"https://commons.wikimedia.org/wiki/File:Official_YAML_Logo.svg",hex:"CB171E"},S8={title:"Zed Industries",slug:"zedindustries",get svg(){return He+"Zed Industries"+ke+this.path+Ue},path:"M2.25 1.5a.75.75 0 0 0-.75.75v16.5H0V2.25A2.25 2.25 0 0 1 2.25 0h20.095c1.002 0 1.504 1.212.795 1.92L10.764 14.298h3.486V12.75h1.5v1.922a1.125 1.125 0 0 1-1.125 1.125H9.264l-2.578 2.578h11.689V9h1.5v9.375a1.5 1.5 0 0 1-1.5 1.5H5.185L2.562 22.5H21.75a.75.75 0 0 0 .75-.75V5.25H24v16.5A2.25 2.25 0 0 1 21.75 24H1.655C.653 24 .151 22.788.86 22.08L13.19 9.75H9.75v1.5h-1.5V9.375A1.125 1.125 0 0 1 9.375 8.25h5.314l2.625-2.625H5.625V15h-1.5V5.625a1.5 1.5 0 0 1 1.5-1.5h13.19L21.438 1.5z",source:"https://github.com/zed-industries/zed/blob/ccc939124fa2f366b3029926447fd0a0c46a85c7/assets/icons/logo_96.svg",hex:"084CCF"},j8=[{label:"Default app",target:"default"},{label:"Open in folder",target:"folder"}],Ad=190,Cd=172,rs=8,E8={"android-studio":{icon:V6,kind:"simple"},bbedit:{Icon:Ml,kind:"lucide"},clion:{icon:Y6,kind:"simple"},coteditor:{Icon:Ml,kind:"lucide"},cursor:{icon:Q6,kind:"simple"},datagrip:{icon:Z6,kind:"simple"},default:{Icon:uh,kind:"lucide"},emacs:{icon:J6,kind:"simple"},fleet:{Icon:Ml,kind:"lucide"},folder:{Icon:Id,kind:"lucide"},ghostty:{icon:K6,kind:"simple"},goland:{icon:W6,kind:"simple"},intellij:{icon:P6,kind:"simple"},iterm2:{icon:e8,kind:"simple"},lapce:{icon:l8,kind:"simple"},macvim:{icon:p8,kind:"simple"},neovide:{icon:i8,kind:"simple"},nova:{Icon:Ml,kind:"lucide"},phpstorm:{icon:c8,kind:"simple"},pycharm:{icon:s8,kind:"simple"},rubymine:{icon:r8,kind:"simple"},sublime:{icon:d8,kind:"simple"},terminal:{Icon:xm,kind:"lucide"},textedit:{Icon:Wd,kind:"lucide"},textmate:{Icon:Ml,kind:"lucide"},vscodium:{icon:y8,kind:"simple"},vscode:{Icon:Ml,kind:"lucide"},"vscode-insiders":{Icon:Ml,kind:"lucide"},webstorm:{icon:g8,kind:"simple"},windsurf:{icon:v8,kind:"simple"},xcode:{icon:b8,kind:"simple"},zed:{icon:S8,kind:"simple"}};function N2({fileContent:a,filePath:u,openTargets:f,wordWrap:r,onActionMessage:h,onCopyFileContents:m,onOpenFile:S,onWordWrapChange:T}){const[E,y]=j.useState(!1),[N,D]=j.useState(!1),[k,U]=j.useState(null),[Y,re]=j.useState(null),ve=j.useRef(null),Z=j.useRef(null),he=j.useRef(null),me=j.useRef(null),$=j.useRef(null),be=j.useMemo(()=>f.length>0?f:j8,[f]),Ne=a!==void 0||m!==void 0,ee=j.useCallback(()=>{y(!1),D(!1)},[]),se=j.useCallback(()=>{E&&U(fs(ve.current,Ad)),N&&re(fs(me.current,Cd))},[E,N]);j.useEffect(()=>{if(!(!E&&!N))return se(),window.addEventListener("resize",se),window.addEventListener("scroll",se,!0),()=>{window.removeEventListener("resize",se),window.removeEventListener("scroll",se,!0)}},[E,N,se]),j.useEffect(()=>{if(!E&&!N)return;const W=g=>{var Q,te,ye;const O=g.target;!((Q=he.current)!=null&&Q.contains(O))&&!((te=Z.current)!=null&&te.contains(O))&&!((ye=$.current)!=null&&ye.contains(O))&&ee()},fe=g=>{g.key==="Escape"&&ee()};return window.addEventListener("pointerdown",W),window.addEventListener("keydown",fe),()=>{window.removeEventListener("pointerdown",W),window.removeEventListener("keydown",fe)}},[E,ee,N]);const je=async(W,fe)=>{ee();try{await navigator.clipboard.writeText(W),h==null||h(`${fe} copied`)}catch(g){h==null||h(`Could not copy ${fe.toLowerCase()}: ${Xo(g)}`)}},Re=async()=>{ee();try{const W=a??await(m==null?void 0:m());if(W===void 0)return;await navigator.clipboard.writeText(W),h==null||h("File contents copied")}catch(W){h==null||h(`Could not copy file contents: ${Xo(W)}`)}},pe=async(W,fe)=>{ee(),h==null||h(`Opening in ${fe}`);try{await S(W),h==null||h(`Opened in ${fe}`)}catch(g){h==null||h(`Could not open in ${fe}: ${Xo(g)}`)}},q=E&&k?qi.createPortal(s.jsxs("div",{className:"file-actions-popover actions",ref:Z,role:"menu",style:k,children:[s.jsxs("button",{role:"menuitem",type:"button",onClick:()=>je(u,"Path"),children:[s.jsx(Ch,{size:16}),s.jsx("span",{children:"Copy path"})]}),Ne?s.jsxs("button",{role:"menuitem",type:"button",onClick:Re,children:[s.jsx(Wd,{size:16}),s.jsx("span",{children:"Copy file contents"})]}):null,T?s.jsxs("button",{"aria-checked":!!r,role:"menuitemcheckbox",type:"button",onClick:()=>{T(!r),ee()},children:[s.jsx(t2,{size:16}),s.jsxs("span",{children:[r?"Disable":"Enable"," word wrap"]})]}):null]}),document.body):null,ue=N&&Y?qi.createPortal(s.jsx("div",{className:"file-actions-popover open",ref:$,role:"menu",style:Y,children:be.map((W,fe)=>s.jsxs("button",{className:fe===be.length-1?"separated":"",role:"menuitem",type:"button",onClick:()=>pe(W.target,W.label),children:[s.jsx(w8,{option:W}),s.jsx("span",{children:W.label})]},W.target))}),document.body):null;return s.jsxs("div",{className:"file-actions-menu",ref:he,children:[s.jsxs("div",{className:"file-actions-menu-group",children:[s.jsx("button",{"aria-expanded":E,"aria-haspopup":"menu","aria-label":"File actions",className:"icon-button file-actions-menu-trigger",ref:ve,type:"button",onClick:()=>{U(fs(ve.current,Ad)),y(W=>!W),D(!1)},children:s.jsx(Rh,{size:17})}),q]}),s.jsxs("div",{className:"file-actions-menu-group",children:[s.jsxs("button",{"aria-expanded":N,"aria-haspopup":"menu",className:"file-actions-open-button",ref:me,type:"button",onClick:()=>{re(fs(me.current,Cd)),D(W=>!W),y(!1)},children:[s.jsx(Lh,{size:16}),s.jsx("span",{children:"Open"}),s.jsx(ta,{size:15})]}),ue]})]})}function fs(a,u){if(!a)return null;const f=a.getBoundingClientRect(),r=Math.max(rs,window.innerWidth-f.right),h=Math.max(rs,window.innerWidth-u-rs);return{right:Math.min(r,h),top:f.bottom+rs}}function w8({option:a}){const u=E8[a.target];return u.kind==="simple"?s.jsx("svg",{"aria-hidden":"true",className:"file-actions-brand-icon",focusable:"false",role:"img",style:{color:N8(u.icon)},viewBox:"0 0 24 24",children:s.jsx("path",{d:u.icon.path})}):s.jsx(u.Icon,{"aria-hidden":"true",className:"file-actions-target-icon",size:16})}function N8(a){return a.hex==="000000"?"var(--ide-fg-muted)":`#${a.hex}`}function Xo(a){return a instanceof Error?a.message:String(a)}const z8={bash:$6,css:X6,go:F6,html:I6,js:t8,json:n8,jsx:Md,markdown:a8,python:u8,ruby:o8,rust:f8,swift:h8,ts:m8,tsx:Md,yaml:x8};function T8(a,u=!1){if(!a||u)return null;const f=z8[a];return f?{icon:f,color:A8(f.hex)}:null}function M8({isBinary:a=!1,language:u}){const f=T8(u,a);return f?s.jsx("span",{"aria-hidden":"true",className:"file-language-icon",style:{color:f.color},title:`${f.icon.title} file`,children:s.jsx("svg",{"aria-hidden":"true",className:"file-language-icon-svg",fill:"currentColor",viewBox:"0 0 24 24",children:s.jsx("path",{d:f.icon.path})})}):s.jsx("span",{"aria-hidden":"true",className:"file-language-icon",title:"File",children:s.jsx(lr,{size:17})})}function A8(a){const u=a.trim().replace(/^#/,"");if(!/^[\dA-Fa-f]{6}$/.test(u))return"currentColor";const f=Number.parseInt(u.slice(0,2),16),r=Number.parseInt(u.slice(2,4),16),h=Number.parseInt(u.slice(4,6),16),m=(.2126*f+.7152*r+.0722*h)/255;return m<.15||m>.9?"currentColor":`#${u}`}function C8({file:a,collapsed:u,viewed:f,onToggle:r,onCopyFileContents:h,onViewedChange:m,onOpenFile:S,openTargets:T}){return s.jsxs("div",{className:"file-header",children:[s.jsxs("button",{className:"file-header-toggle",type:"button",onClick:r,children:[u?s.jsx(Fd,{size:18}):s.jsx(ta,{size:18}),s.jsx(M8,{isBinary:a.isBinary,language:a.language}),s.jsx("span",{className:"file-path",children:a.path}),a.oldPath&&a.oldPath!==a.path?s.jsxs("span",{className:"rename-path",children:["from ",a.oldPath]}):null]}),s.jsxs("span",{className:"stat add",children:["+",a.additions]}),s.jsxs("span",{className:"stat del",children:["-",a.deletions]}),s.jsxs("label",{className:"viewed-toggle",children:[s.jsx("input",{type:"checkbox",checked:f,onChange:E=>m(E.currentTarget.checked)}),s.jsx("span",{children:"Viewed"})]}),s.jsx(N2,{filePath:a.path,openTargets:T,onCopyFileContents:h,onOpenFile:async E=>S(E)})]})}const _8=[];function R8({activeFilePath:a=null,contextSource:u,emptyState:f=null,files:r,record:h,diff:m=h.diff,readOnly:S=!1,reviewId:T,turnId:E,viewMode:y="unified",wrapLines:N=!1,viewedFiles:D=new Set,onViewedChange:k=()=>{},openTargets:U=_8,selectedSourcePeek:Y=null,onCopyFileContents:re,onOpenFile:ve=()=>{},onSourcePeek:Z=()=>{},hiddenFiles:he=new Map,onRevealHiddenFile:me=()=>{}}){const[$,be]=j.useState(new Set),[Ne,ee]=j.useState(dr),se=j.useRef(a),je=j.useRef(null),Re=Tt(g=>g.draft),pe=Tt(g=>g.setDraft),q=r??m.files,ue=g=>{var te;const O=Gi(g),Q=(te=je.current)==null?void 0:te.style;return Q==null||Q.setProperty("--diff-split-position",`${O}%`),Q==null||Q.setProperty("--diff-split-left-track",`${O}fr`),Q==null||Q.setProperty("--diff-split-right-track",`${100-O}fr`),O},W=g=>{ee(ue(g))};if(a!==se.current&&(se.current=a,a&&$.has(a))){const g=new Set($);g.delete(a),be(g)}const fe=(g,O)=>{O&&((Re==null?void 0:Re.filePath)===g&&pe(null),be(Q=>{const te=new Set(Q);return te.add(g),te})),k(g,O)};return s.jsx("section",{className:"diff-stack",ref:je,style:{"--diff-split-position":`${Ne}%`,"--diff-split-left-track":`${Ne}fr`,"--diff-split-right-track":`${100-Ne}fr`},children:q.length===0?f??s.jsx(O8,{record:h}):q.map(g=>{const O=$.has(g.path),Q=he.get(g.path)??null;return s.jsxs("article",{className:`file-card ${a===g.path?"active":""}`,id:pr(g.path),children:[s.jsx(C8,{file:g,openTargets:U,collapsed:O,viewed:D.has(g.path),onToggle:()=>{!O&&(Re==null?void 0:Re.filePath)===g.path&&pe(null),be(te=>{const ye=new Set(te);return ye.has(g.path)?ye.delete(g.path):ye.add(g.path),ye})},onCopyFileContents:re?()=>re(g.path):void 0,onViewedChange:te=>fe(g.path,te),onOpenFile:te=>ve(g.path,te)}),O?null:Q?s.jsx(D8,{info:Q,onReveal:()=>me(g.path)}):s.jsx(H8,{contextSource:u,file:g,readOnly:S,reviewId:T,selectedSourcePeek:Y,splitPanePercentage:Ne,turnId:E,viewMode:y,wrapLines:N,onSplitPaneChange:W,onSplitPanePreview:ue,onSourcePeek:Z},`${g.oldPath??""}:${g.path}:${Q8(T,E,u)}`)]},`${g.oldPath??g.path}:${g.path}`)})})}function D8({info:a,onReveal:u}){const f=L8(a.presetLabels);return s.jsxs("div",{className:"hidden-diff-placeholder",children:[s.jsxs("div",{className:"hidden-diff-skeleton","aria-hidden":"true",children:[s.jsx("span",{}),s.jsx("span",{}),s.jsx("span",{}),s.jsx("span",{}),s.jsx("span",{})]}),s.jsxs("div",{className:"hidden-diff-message",children:[s.jsx("button",{className:"hidden-diff-load",type:"button",onClick:u,children:"Load diff"}),s.jsxs("p",{children:[f," are not rendered by default."]})]})]})}function L8(a){return a.length===0?"Files matching selected presets":a.length===1?a[0]:a.length===2?`${a[0]} and ${Qo(a[1])}`:`${a.slice(0,-1).map((u,f)=>f===0?u:Qo(u)).join(", ")}, and ${Qo(a[a.length-1])}`}function Qo(a){return`${a.charAt(0).toLowerCase()}${a.slice(1)}`}function O8({record:a}){const u=a.diff.scope;return u.mode==="branch"?s.jsxs("div",{className:"empty-diff",children:[s.jsx("h2",{children:"No branch changes"}),s.jsxs("p",{children:["Working tree is clean, and ",u.comparison.ref," matches ",u.base.ref,"."]})]}):u.fallbackReason==="missing-branch-base"?s.jsxs("div",{className:"empty-diff",children:[s.jsx("h2",{children:"No changes to review"}),s.jsx("p",{children:"Working tree is clean and no upstream or default branch ref was found."})]}):u.mode==="explicit"?s.jsxs("div",{className:"empty-diff",children:[s.jsxs("h2",{children:["No changes against ",u.base.ref]}),s.jsx("p",{children:"The captured diff for this explicit base is empty."})]}):s.jsxs("div",{className:"empty-diff",children:[s.jsx("h2",{children:"No working changes"}),s.jsx("p",{children:"Working tree is clean."})]})}function H8({contextSource:a,file:u,readOnly:f,reviewId:r,selectedSourcePeek:h,splitPanePercentage:m,turnId:S,viewMode:T,wrapLines:E,onSplitPaneChange:y,onSplitPanePreview:N,onSourcePeek:D}){const k=Tt(B=>B.comments),U=Tt(B=>B.resolution),Y=Tt(B=>B.draft),re=Tt(B=>B.setDraft),ve=Tt(B=>B.updateComment),{resolvedTheme:Z}=or(),[he,me]=j.useState(null),[$,be]=j.useState(null),[Ne,ee]=j.useState(""),[se,je]=j.useState(null),[Re,pe]=j.useState(null),[q,ue]=j.useState({}),W=j.useRef(null),fe=j.useRef(null),g=j.useRef(null),O=j.useMemo(()=>rr(u),[u]),Q=j.useMemo(()=>new Map(O.map(B=>[B.beforeHunkIndex,B])),[O]),te=j.useMemo(()=>L6(u,q),[q,u]),ye=(Re==null?void 0:Re.file)===te&&Re.theme===Z?Re.lines:null,v=j.useMemo(()=>D6(u,q),[q,u]),C=j.useMemo(()=>q6(v,T),[T,v]),X=j.useMemo(()=>new Map(((U==null?void 0:U.comments)??[]).map(B=>[B.commentId,B])),[U]),F=k.filter(B=>Ui(B)&&B.filePath===u.path),G=(se==null?void 0:se.id)??null,V=he&&$&&he.filePath===u.path&&he.side===$.side?Dd(C,he.side,he.line,$.line):null,K=Y&&Y.filePath===u.path?Dd(C,Y.side,Y.startLine,Y.endLine):null,ze=B=>{const{start:ie,end:Me}=B,ne=Math.min(ie.line,Me.line),oe=Math.max(ie.line,Me.line),dt=B6(v,ie.side,ne,oe,T)||ie.snippet;ee(""),re({filePath:u.path,side:ie.side,startLine:ne,endLine:oe,originalSnippet:dt})},Ae=()=>{!se||se.body.trim().length===0||(ve(se.id,se.body),je(null))};j.useEffect(()=>()=>{var B;return(B=fe.current)==null?void 0:B.call(fe)},[]),j.useEffect(()=>{var B;G&&((B=g.current)==null||B.focus({preventScroll:!0}))},[G]);const it=B=>{var ne;if(B.dataset.filePath!==u.path)return null;const ie=B.dataset.side,Me=Number(B.dataset.line);return ie!=="L"&&ie!=="R"||!Number.isFinite(Me)?null:{filePath:u.path,side:ie,line:Me,snippet:((ne=B.querySelector("code"))==null?void 0:ne.textContent)??""}},ft=B=>{const ie=it(B);ie&&ct(ie)},tt=(B,ie)=>{var dt;if(ie.button!==0)return;ie.preventDefault(),(dt=fe.current)==null||dt.call(fe),W.current={start:B,end:B},me(B),be(B);const Me=ut=>{var Jt;const nt=(Jt=document.elementFromPoint(ut.clientX,ut.clientY))==null?void 0:Jt.closest(".diff-row");nt&&ft(nt)},ne=ut=>{Me(ut);const nt=W.current;nt&&ze(nt),Dt()},oe=()=>Dt();window.addEventListener("mousemove",Me),window.addEventListener("mouseup",ne),window.addEventListener("blur",oe),fe.current=()=>{window.removeEventListener("mousemove",Me),window.removeEventListener("mouseup",ne),window.removeEventListener("blur",oe),fe.current=null}},Mt=(B,ie)=>{var Me;ie.key!=="Enter"&&ie.key!==" "||ie.repeat||ie.defaultPrevented||ie.nativeEvent.isComposing||(ie.preventDefault(),(Me=fe.current)==null||Me.call(fe),W.current=null,me(null),be(null),ze({start:B,end:B}))},ct=B=>{const ie=W.current;(ie==null?void 0:ie.start.filePath)===u.path&&ie.start.side===B.side&&(W.current={...ie,end:B},be(B))},Dt=()=>{var B;(B=fe.current)==null||B.call(fe),W.current=null,me(null),be(null)},Te=async(B,ie)=>{if(!r||!a)return;const Me=_6(B,q[B.id],ie);if(Me){ue(ne=>{var oe;return{...ne,[B.id]:{lines:((oe=ne[B.id])==null?void 0:oe.lines)??[],loading:!0,error:null}}});try{const ne=await P5({reviewId:r,filePath:B.filePath,oldPath:B.oldPath,turnId:S,source:a,...Me});ue(oe=>({...oe,[B.id]:R6(B,oe[B.id],ne.lines)}))}catch(ne){ue(oe=>{var dt;return{...oe,[B.id]:{lines:((dt=oe[B.id])==null?void 0:dt.lines)??[],loading:!1,error:ne instanceof Error?ne.message:String(ne)}}})}}};j.useEffect(()=>{let B=!1;return m2(async()=>{const{highlightDiffFile:ie}=await import("./syntax-YwTpDWMQ.js");return{highlightDiffFile:ie}},[]).then(({highlightDiffFile:ie})=>ie(te,Z)).then(ie=>{B||pe({file:te,lines:ie,theme:Z})}).catch(()=>{B||pe({file:te,lines:null,theme:Z})}),()=>{B=!0}},[te,Z]);const st=(B,ie,Me)=>{const ne=Me??a6(B),oe=Ua(B,ne);if(oe==null)return null;const dt={filePath:u.path,side:ne,line:oe,snippet:B.content},ut=C.get($n(ne,oe)),nt=(T==="unified"||(he==null?void 0:he.side)===ne)&&ut!=null&&V&&Ld(ut,V)?{index:ut,range:V}:null,Jt=Y&&(!Me||Y.side===ne)?Ua(B,Y.side):null,rn=T==="unified"?ut:Y&&Jt!=null?C.get($n(Y.side,Jt)):null,Nn=rn!=null&&K&&Ld(rn,K)?{index:rn,range:K}:null,Fn=nt??Nn,Ft=Fn!=null?X8(Fn.index,Fn.range.start,Fn.range.end):"",ht=Y&&Y.filePath===u.path&&Jt===Y.endLine,At=F.filter(Ee=>Me&&Ee.side!==ne?!1:Ua(B,Ee.side)===Math.max(Ee.startLine,Ee.endLine));return s.jsxs("div",{className:Me?"split-diff-cell":void 0,children:[Me?s.jsx("span",{className:"sr-only",children:ne==="L"?"Old version":"New version"}):null,s.jsxs("div",{className:`diff-row ${B.type} ${f?"read-only":""} ${Ft} ${ht?"range-continues":""}`,"data-file-path":u.path,"data-line":oe,"data-side":ne,children:[Ft?s.jsx("span",{className:"selection-rail","aria-hidden":"true"}):null,s.jsxs("div",{className:"diff-gutter",children:[Me?s.jsx("span",{className:`line-number ${ne==="L"?"old":"new"}`,children:oe}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"line-number old",children:B.oldLine??""}),s.jsx("span",{className:"line-number new",children:B.newLine??""})]}),s.jsx("span",{className:"marker",children:w2(B)}),f?null:s.jsx("button",{"aria-label":`Comment on ${u.path}${Me?` ${ne==="L"?"old":"new"}`:""} line ${oe}`,className:"comment-handle",type:"button",onMouseDown:Ee=>tt(dt,Ee),onKeyDown:Ee=>Mt(dt,Ee),children:s.jsx(e2,{size:16,strokeWidth:2.4})})]}),s.jsx(G8,{content:B.content,selectedSourcePeek:h&&h.filePath===u.path&&h.oldPath===u.oldPath&&h.side===ne&&h.line===oe?h:null,tokens:(ye==null?void 0:ye.get($n(ne,oe)))??null,onSourcePeek:(Ee,Ct)=>D({column:Ct,filePath:u.path,line:oe,oldPath:u.oldPath,side:ne,symbol:Ee})})]}),At.map(Ee=>{const Ct=X.get(Ee.id),Wn=(se==null?void 0:se.id)===Ee.id;return s.jsxs("div",{className:`inline-comment ${Ct?"resolved":"open"} ${Wn?"editing":""}`,"data-comment-id":Ee.id,children:[Ct?s.jsx(nr,{size:14}):s.jsx(Pl,{size:14}),s.jsxs("div",{className:"inline-comment-content",children:[f?s.jsx("span",{className:"inline-comment-status",children:Ct?"Resolved":"Open · Needs fix"}):null,Wn?s.jsxs("form",{className:"inline-comment-edit-form",onSubmit:Wt=>{Wt.preventDefault(),Ae()},children:[s.jsx("textarea",{"aria-label":"Edit comment",ref:g,value:se.body,onChange:Wt=>je({id:Ee.id,body:Wt.target.value}),onKeyDown:Wt=>{Wt.key==="Escape"?(Wt.preventDefault(),je(null)):ps(Wt)&&(Wt.preventDefault(),Ae())}}),s.jsxs("div",{className:"inline-comment-edit-actions",children:[s.jsx("button",{className:"secondary-button",type:"button",onClick:()=>je(null),children:"Cancel"}),s.jsxs("button",{className:"primary-button",type:"submit",disabled:se.body.trim().length===0,children:[s.jsx(jn,{size:14}),"Save"]})]})]}):s.jsx("span",{className:"inline-comment-body",children:Ee.body}),Ct!=null&&Ct.summary?s.jsx("span",{className:"inline-comment-summary",children:Ct.summary}):null]}),!f&&!Wn?s.jsx("button",{"aria-label":"Edit comment",className:"inline-comment-edit-button",title:"Edit comment",type:"button",onClick:()=>je({id:Ee.id,body:Ee.body}),children:s.jsx(Pd,{size:13})}):null]},Ee.id)}),ht&&!f?s.jsx(T6,{body:Ne,tone:B.type,onBodyChange:ee}):null]},`${ie}:${B.type}:${B.oldLine??"x"}:${B.newLine??"x"}:${B.content}`)},on=(B,ie)=>{if(T==="unified")return B.map(oe=>st(oe,ie));const Me=G6(B);if(Me.length===0)return null;const ne={gridRow:`1 / span ${Me.length}`};return s.jsxs("div",{className:"split-diff-block",children:[s.jsx("div",{className:"split-diff-pane split-diff-pane-left",style:ne,children:Me.map((oe,dt)=>{var nt;const ut=`${ie}:left:${dt}:${((nt=oe.left)==null?void 0:nt.oldLine)??"x"}`;return oe.left?st(oe.left,ut,"L"):s.jsx("div",{className:"split-diff-cell split-diff-empty",children:s.jsx("span",{className:"sr-only",children:"Old version, no line"})},ut)})}),s.jsx("div",{className:"split-diff-pane split-diff-pane-right",style:ne,children:Me.map((oe,dt)=>{var nt;const ut=`${ie}:right:${dt}:${((nt=oe.right)==null?void 0:nt.newLine)??"x"}`;return oe.right?st(oe.right,ut,"R"):s.jsx("div",{className:"split-diff-cell split-diff-empty",children:s.jsx("span",{className:"sr-only",children:"New version, no line"})},ut)})})]},`${ie}:split`)},yn=B=>C6(B,q[B.id]).map((ie,Me)=>{var ne,oe;return ie.type==="lines"?on(ie.lines,`context:${B.id}:${Me}`):s.jsx(U8,{canExpand:!!(r&&a),directions:A6(B,ie),error:((ne=q[B.id])==null?void 0:ne.error)??null,loading:((oe=q[B.id])==null?void 0:oe.loading)??!1,segment:ie,onExpand:dt=>{Te(B,dt)}},`hidden:${B.id}:${ie.oldStart}:${ie.newStart}:${ie.lineCount}`)}),bt=T==="split"&&k6(u.isBinary,u.hunks.length);return s.jsx("section",{"aria-label":`${u.path} diff`,className:`diff-scroller ${T==="split"?"split-mode":""} ${E?"wrap-lines":""}`,children:s.jsxs("div",{className:`diff-table ${bt?"split-view":""} ${he?"selecting":""}`,children:[bt?s.jsx(k8,{percentage:m,onChange:y,onPreview:N}):null,u.isBinary?s.jsx("div",{className:"binary-note",children:"Binary file changed"}):null,u.hunks.map((B,ie)=>{var oe;const Me=Q.get(ie),ne=U6(B,((oe=te.hunks[ie])==null?void 0:oe.lines)??B.lines);return s.jsxs("div",{className:"hunk",children:[Me?yn(Me):null,ne?s.jsx("div",{className:"hunk-header",children:ne}):null,on(B.lines,`hunk:${ie}`)]},`${B.oldStart}:${B.newStart}`)})]})},E?"wrapped":"unwrapped")}function k8({percentage:a,onChange:u,onPreview:f}){const r=j.useRef(null);j.useEffect(()=>()=>{var m;return(m=r.current)==null?void 0:m.call(r)},[]);const h=m=>{var ve;if(m.button!==0)return;const S=m.currentTarget.closest(".diff-table");if(!S)return;m.preventDefault(),m.stopPropagation(),(ve=r.current)==null||ve.call(r);const T=m.currentTarget,E=S.getBoundingClientRect(),y=m.pointerId;let N=a,D=!1;const k=Z=>{Z.pointerId===y&&(Z.preventDefault(),D=!0,N=O6(Z.clientX,E.left,E.width,N),T.setAttribute("aria-valuenow",String(Math.round(N))),T.setAttribute("aria-valuetext",_d(N)),f(N))},U=()=>{window.removeEventListener("pointermove",k),window.removeEventListener("pointerup",Y),window.removeEventListener("pointercancel",re),window.removeEventListener("blur",re),document.body.classList.remove("split-diff-resizing"),delete T.dataset.resizing,r.current=null},Y=Z=>{Z.pointerId===y&&(D&&k(Z),U(),u(N))},re=()=>{U(),u(N)};T.dataset.resizing="true",document.body.classList.add("split-diff-resizing"),r.current=U,window.addEventListener("pointermove",k),window.addEventListener("pointerup",Y),window.addEventListener("pointercancel",re),window.addEventListener("blur",re,{once:!0})};return s.jsx("hr",{"aria-label":"Resize old and new diff panes","aria-orientation":"vertical","aria-valuemax":mr,"aria-valuemin":hr,"aria-valuenow":Math.round(a),"aria-valuetext":_d(a),className:"split-diff-resize-handle",tabIndex:0,title:"Resize old and new diff panes",onKeyDown:m=>{const S=H6(a,m.key);S!=null&&(m.preventDefault(),u(S))},onPointerDown:h})}function _d(a){const u=Math.round(a);return`${u}% old, ${100-u}% new`}function U8({canExpand:a,directions:u,error:f,loading:r,segment:h,onExpand:m}){const S=!a||!!r;return s.jsxs("div",{className:"hidden-lines",children:[s.jsxs("div",{className:"hidden-lines-main",children:[s.jsx("span",{className:"hidden-lines-count",children:r?s.jsxs(s.Fragment,{children:[s.jsx(ar,{className:"spin",size:14}),"Loading context"]}):`${h.lineCount} unmodified ${h.lineCount===1?"line":"lines"}`}),s.jsx("div",{className:"hidden-lines-actions",children:u.map(T=>{const E=B8(T);return s.jsx("button",{"aria-label":E,className:"hidden-lines-action",disabled:S,title:E,type:"button",onClick:()=>m(T),children:s.jsx(q8,{direction:T,directions:u})},T)})})]}),f?s.jsx("div",{className:"hidden-lines-error",children:f}):null]})}function B8(a){return a==="up"?"Expand hidden context upward":a==="down"?"Expand hidden context downward":"Expand more hidden context"}function q8({direction:a,directions:u}){return a==="up"?s.jsx(mh,{size:15}):a==="down"?s.jsx(ta,{size:15}):u.length===2&&u[0]==="up"?s.jsx(xh,{size:15}):u.length===2&&u[0]==="down"?s.jsx(yh,{size:15}):s.jsx(vh,{size:15})}function G8({content:a,selectedSourcePeek:u,tokens:f,onSourcePeek:r}){return!f||f.length===0?s.jsx("code",{children:s.jsx(Rd,{offsetBase:0,selectedSourcePeek:u,text:a||" ",onSourcePeek:r})}):s.jsx("code",{children:f.map(h=>{const m=Y8(h);return s.jsx("span",{style:m,children:s.jsx(Rd,{offsetBase:h.offset,selectedSourcePeek:u,style:m,text:h.content,onSourcePeek:r})},`${h.offset}:${h.content}`)})})}const Zo=/[A-Za-z_$][\w$]*/g,V8=new Set(["as","async","await","break","case","catch","class","const","continue","default","delete","do","else","enum","export","extends","false","finally","for","from","function","if","implements","import","in","instanceof","interface","let","new","null","of","return","static","super","switch","this","throw","true","try","type","typeof","undefined","var","void","while","with","yield"]);function Rd({offsetBase:a,selectedSourcePeek:u,style:f,text:r,onSourcePeek:h}){const m=[];let S=0;Zo.lastIndex=0;let T=Zo.exec(r);for(;T!==null;){const E=T[0],y=T.index;if(y>S&&m.push(r.slice(S,y)),V8.has(E))m.push(E);else{const N=a+y,D=(u==null?void 0:u.column)===N&&u.symbol===E;m.push(s.jsx("button",{"aria-current":D?"location":void 0,className:`source-symbol ${D?"selected":""}`,"data-source-symbol":E,style:f,tabIndex:-1,title:"Command-click or Control-click to peek source",type:"button",onClick:k=>{!k.metaKey&&!k.ctrlKey||(k.preventDefault(),k.stopPropagation(),h(E,N))},onMouseDown:k=>{(k.metaKey||k.ctrlKey)&&k.preventDefault()},onContextMenu:k=>{!k.metaKey&&!k.ctrlKey||(k.preventDefault(),k.stopPropagation(),h(E,N))},onKeyDown:k=>{k.key!=="Enter"&&k.key!==" "||(k.preventDefault(),k.stopPropagation(),h(E,N))},children:E},`${a}:${y}:${E}`))}S=y+E.length,T=Zo.exec(r)}return S<r.length&&m.push(r.slice(S)),s.jsx(s.Fragment,{children:m.length>0?m:r})}function Y8(a){const u={};a.color&&(u.color=a.color),a.fontStyle&&(a.fontStyle&1)!==0&&(u.fontStyle="italic"),a.fontStyle&&(a.fontStyle&2)!==0&&(u.fontWeight=700);const f=[];return a.fontStyle&&(a.fontStyle&4)!==0&&f.push("underline"),a.fontStyle&&(a.fontStyle&8)!==0&&f.push("line-through"),f.length>0&&(u.textDecorationLine=f.join(" ")),u}function X8(a,u,f){return u===f?"range-selected range-single":a===u?"range-selected range-start":a===f?"range-selected range-end":"range-selected range-middle"}function Q8(a,u,f){return!a||!f?"":f.mode==="turn"?`${a}:${u??""}:turn`:f.mode==="commit"?`${a}:${u??""}:commit:${f.sha}`:`${a}:${u??""}:range:${f.fromSha}:${f.toSha}`}function Dd(a,u,f,r){const h=a.get($n(u,f)),m=a.get($n(u,r));return h==null||m==null?null:{start:Math.min(h,m),end:Math.max(h,m)}}function Ld(a,u){return!!(u&&a>=u.start&&a<=u.end)}const hs="__gloss_no_extension__";function Z8(a){const u=[a.name];let f=a;for(;f.children.length===1&&f.children[0].type==="directory";)f=f.children[0],u.push(f.name);return{name:u.join("/"),node:f}}function K8(a){const u=new Map;for(const f of a){const r=z2(f.path),h=u.get(r);h?h.count+=1:u.set(r,{id:r,label:r===hs?"No extension":r,count:1})}return Array.from(u.values()).sort((f,r)=>f.id===hs?1:r.id===hs?-1:f.label.localeCompare(r.label,void 0,{sensitivity:"base"}))}function $8(a,u,f){const r=u.trim().toLowerCase();return f.size===0?[]:a.filter(h=>{const m=f.has(z2(h.path)),S=r.length===0||h.path.toLowerCase().includes(r);return m&&S})}function J8(a){const u={type:"directory",id:"root",name:"",path:"",children:[]},f=new Map;for(const r of a){const h=r.path.split("/").filter(Boolean);let m=u;for(const[S,T]of h.entries()){const E=S===h.length-1,y=h.slice(0,S+1).join("/");E?m.children.push({type:"file",id:`file:${r.path}`,name:T,path:r.path,file:r}):m=F8(m,T,y,f)}}return T2(u),u}function F8(a,u,f,r){let h=r.get(a);h||(h=new Map,r.set(a,h));const m=h.get(u);if(m)return m;const S={type:"directory",id:`dir:${f}`,name:u,path:f,children:[]};return a.children.push(S),h.set(u,S),S}function z2(a){const u=a.split("/").pop()??a,f=u.lastIndexOf(".");return f<=0||f===u.length-1?hs:u.slice(f).toLowerCase()}function T2(a){a.children.sort((u,f)=>u.type!==f.type?u.type==="directory"?-1:1:a2(u.name,f.name));for(const u of a.children)u.type==="directory"&&T2(u)}function Od({activeFilePath:a,extensionBuckets:u,files:f,filteredFiles:r,hiddenBoringFileCount:h,hiddenBoringPresets:m,onCollapse:S,onClearExtensions:T,onFileSelect:E,onSearchChange:y,onSelectAllExtensions:N,onShowAllBoringFiles:D,onToggleBoringPreset:k,onToggleExtension:U,searchQuery:Y,selectedExtensionIds:re}){const[ve,Z]=j.useState(!1),[he,me]=j.useState(new Set),$=j.useRef(null),be=j.useMemo(()=>J8(r),[r]),Ne=j.useMemo(()=>{const pe=I8(be);for(const q of he)pe.delete(q);return pe},[he,be]),se=re.size!==u.length,je=m.size>0;j.useEffect(()=>{if(!ve)return;const pe=ue=>{var W;(W=$.current)!=null&&W.contains(ue.target)||Z(!1)},q=ue=>{ue.key==="Escape"&&Z(!1)};return window.addEventListener("pointerdown",pe),window.addEventListener("keydown",q),()=>{window.removeEventListener("pointerdown",pe),window.removeEventListener("keydown",q)}},[ve]);const Re=pe=>{me(q=>{const ue=new Set(q);return Ne.has(pe)?ue.add(pe):ue.delete(pe),ue})};return s.jsxs("section",{className:"file-tree-panel","aria-label":"Changed files",children:[s.jsxs("div",{className:"file-tree-header",children:[s.jsx("span",{children:"Changed files"}),S?s.jsx("button",{"aria-label":"Collapse file tree",className:"file-tree-icon-button",title:"Collapse file tree",type:"button",onClick:S,children:s.jsx(cm,{size:15})}):null]}),s.jsxs("div",{className:"file-tree-controls",children:[s.jsxs("label",{className:"file-tree-search",children:[s.jsx(mm,{size:18}),s.jsx("span",{className:"sr-only",children:"Filter files"}),s.jsx("input",{type:"search",value:Y,placeholder:"Filter files...",onChange:pe=>y(pe.target.value)}),Y?s.jsx("button",{"aria-label":"Clear file search",className:"file-tree-clear",type:"button",onClick:()=>y(""),children:s.jsx(Vi,{size:14})}):null]}),s.jsxs("div",{className:"file-tree-filter-shell",ref:$,children:[s.jsx("button",{"aria-label":"Filter files","aria-expanded":ve,className:`file-tree-filter-button ${se||je?"active":""}`,title:"Filter files",type:"button",onClick:()=>Z(pe=>!pe),children:s.jsx(vm,{size:17})}),ve?s.jsx(W8,{buckets:u,hiddenBoringFileCount:h,hiddenBoringPresets:m,selectedExtensionIds:re,onClear:T,onSelectAll:N,onShowAllBoringFiles:D,onToggleBoringPreset:k,onToggle:U}):null]})]}),s.jsxs("div",{className:"file-tree-summary",children:[s.jsxs("span",{children:[r.length," of ",f.length," ",f.length===1?"file":"files"]}),h>0?s.jsxs("span",{children:[h," hidden ",h===1?"diff":"diffs"]}):null]}),r.length===0?s.jsx("div",{className:"file-tree-empty",children:f.length===0?"No files changed":"No files match"}):s.jsx("div",{className:"file-tree-list",children:be.children.map(pe=>s.jsx(M2,{activeFilePath:a,expandedDirectoryIds:Ne,node:pe,depth:0,onFileSelect:E,onToggleDirectory:Re},pe.id))})]})}function W8({buckets:a,hiddenBoringFileCount:u,hiddenBoringPresets:f,onClear:r,onSelectAll:h,onShowAllBoringFiles:m,onToggleBoringPreset:S,onToggle:T,selectedExtensionIds:E}){return s.jsxs("div",{className:"extension-popover",role:"menu","aria-label":"File extensions",children:[s.jsxs("div",{className:"extension-popover-header",children:[s.jsx("span",{children:"File extensions"}),s.jsxs("div",{className:"extension-popover-actions",children:[s.jsx("button",{type:"button",onClick:h,children:"All"}),s.jsx("button",{type:"button",onClick:r,children:"None"})]})]}),s.jsx("div",{className:"extension-options",children:a.map(y=>{const N=E.has(y.id);return s.jsxs("button",{"aria-checked":N,className:"extension-option",role:"menuitemcheckbox",type:"button",onClick:()=>T(y.id),children:[s.jsx("span",{className:"extension-check",children:N?s.jsx(jn,{size:16}):null}),s.jsx("span",{className:"extension-label",children:y.label}),s.jsx("span",{className:"extension-count",children:y.count})]},y.id)})}),s.jsxs("div",{className:"extension-popover-section",children:[s.jsxs("div",{className:"extension-popover-header",children:[s.jsx("span",{children:"Hide boring files"}),s.jsx("div",{className:"extension-popover-actions",children:s.jsx("button",{type:"button",onClick:m,children:"Show all"})})]}),s.jsx("div",{className:"extension-options",children:n2.map(y=>{const N=f.has(y.id);return s.jsxs("button",{"aria-checked":N,className:"extension-option",role:"menuitemcheckbox",type:"button",onClick:()=>S(y.id),children:[s.jsx("span",{className:`extension-check ${N?"checked":""}`,children:N?s.jsx(jn,{size:13}):null}),s.jsx("span",{children:y.label})]},y.id)})}),u>0?s.jsxs("div",{className:"extension-popover-note",children:[u," ",u===1?"diff":"diffs"," hidden by presets"]}):null]})]})}function M2({activeFilePath:a,depth:u,expandedDirectoryIds:f,node:r,onFileSelect:h,onToggleDirectory:m}){const S={paddingLeft:8+u*14};if(r.type==="directory"){const T=Z8(r),E=f.has(T.node.id);return s.jsxs("div",{children:[s.jsxs("button",{"aria-expanded":E,className:"file-tree-row directory",style:S,title:T.node.path,type:"button",onClick:()=>m(T.node.id),children:[E?s.jsx(ta,{size:16}):s.jsx(Fd,{size:16}),E?s.jsx(Id,{size:17}):s.jsx(Yh,{size:17}),s.jsx("span",{className:"file-tree-name",children:T.name})]}),E?s.jsx("div",{children:T.node.children.map(y=>s.jsx(M2,{activeFilePath:a,expandedDirectoryIds:f,node:y,depth:u+1,onFileSelect:h,onToggleDirectory:m},y.id))}):null]})}return s.jsx("div",{children:s.jsxs("button",{className:`file-tree-row file ${a===r.path?"active":""}`,style:S,title:r.path,type:"button",onClick:()=>h(r.path),children:[s.jsx("span",{className:"file-tree-spacer"}),s.jsx(lr,{size:16}),s.jsx("span",{className:"file-tree-name",children:r.name}),s.jsxs("span",{className:"file-tree-stats",children:[s.jsxs("span",{className:"stat add",children:["+",r.file.additions]}),s.jsxs("span",{className:"stat del",children:["-",r.file.deletions]})]})]})})}function I8(a){const u=new Set,f=r=>{for(const h of r.children)h.type==="directory"&&(u.add(h.id),f(h))};return f(a),u}function Hd(a){return{response:a,content:a.content,startLine:a.startLine,totalLines:a.totalLines,truncated:a.truncated,hasMoreAbove:a.hasMoreAbove,hasMoreBelow:a.hasMoreBelow}}function P8(a,u,f=r5){if(u==="above"){if(!a.hasMoreAbove)return null;const m=Math.max(1,a.startLine-f),S=a.startLine-m;return S>0?{startLine:m,lineCount:S}:null}if(!a.hasMoreBelow)return null;const r=A2(a)+1,h=Math.min(f,a.totalLines-r+1);return h>0?{startLine:r,lineCount:h}:null}function e7(a,u){var N,D;const f=new Map;for(const[k,U]of vs(a.content).entries())f.set(a.startLine+k,U);for(const[k,U]of vs(u.content).entries())f.set(u.startLine+k,U);const r=Array.from(f.entries()).toSorted(([k],[U])=>k-U);if(r.length===0)return a;const h=((N=r[0])==null?void 0:N[0])??a.startLine,m=((D=r.at(-1))==null?void 0:D[0])??A2(a),S=Math.max(a.totalLines,u.totalLines),T=h>1&&(a.hasMoreAbove||u.hasMoreAbove),E=m<S&&(a.hasMoreBelow||u.hasMoreBelow),y=a.truncated&&!a.hasMoreAbove&&!a.hasMoreBelow||u.truncated&&!u.hasMoreAbove&&!u.hasMoreBelow;return{response:a.response,content:r.map(([,k])=>k).join(`
|
|
318
|
+
`),startLine:h,totalLines:S,truncated:y||T||E,hasMoreAbove:T,hasMoreBelow:E}}function A2(a){return a.startLine+vs(a.content).length-1}function vs(a){const u=a.replace(/\r\n/g,`
|
|
319
|
+
`).split(`
|
|
320
|
+
`);return u.at(-1)===""&&u.pop(),u.length>0?u:[""]}const t7=16,bs=360,er=280,kd=360,C2={above:!1,below:!1};function Ud(){return{...C2}}function n7({openTargets:a,onCopyFileContents:u,onLoadRange:f,onOpenFile:r,state:h,onClose:m}){const{resolvedTheme:S}=or(),T=j.useRef(null),E=j.useRef(null),y=j.useRef(null),N=j.useRef(null),D=j.useRef(null),k=j.useRef(null),U=h.status==="ready"?h.response:null,Y=h.status==="error"?s7(h.message,h.symbol):null,re=j.useRef(C2),ve=j.useRef({above:0,below:0}),Z=j.useRef(U),[he,me]=j.useState(null),[$,be]=j.useState(()=>U?Hd(U):null),Ne=j.useRef(U),[ee,se]=j.useState(Ud),[je,Re]=j.useState(null),[pe,q]=j.useState(!1),[ue,W]=j.useState(null);if(U!==Ne.current){const G=Ud();Ne.current=U,Z.current=U,ve.current={above:ve.current.above+1,below:ve.current.below+1},re.current=G,be(U?Hd(U):null),Re(null),se(G),W(null)}const fe=j.useMemo(()=>$?vs($.content):[],[$]),g=$&&U&&(he==null?void 0:he.content)===$.content&&he.language===U.language&&he.theme===S?he.lines:null,O=$?c7($,ee,je):null,Q=j.useCallback(G=>{D.current=G,N.current===null&&(N.current=window.requestAnimationFrame(()=>{N.current=null;const V=D.current,K=T.current;!V||!K||(K.style.top=`${Math.round(V.top)}px`,K.style.left=`${Math.round(V.left)}px`,K.style.right="auto",K.style.bottom="auto",K.style.width=`${Math.round(V.width)}px`,K.style.height=`${Math.round(V.height)}px`,K.style.transform="")}))},[]),te=j.useCallback(()=>{var G;(G=k.current)==null||G.call(k),k.current=null,document.body.classList.remove("source-peek-interacting"),document.body.style.cursor="",document.body.style.userSelect=""},[]),ye=j.useCallback((G,V)=>{const K={...re.current,[G]:V};re.current=K,se(K)},[]);j.useEffect(()=>{const G=V=>{V.key==="Escape"&&m()};return window.addEventListener("keydown",G),()=>window.removeEventListener("keydown",G)},[m]),j.useEffect(()=>{if(!ue)return;const G=window.setTimeout(()=>W(null),2200);return()=>window.clearTimeout(G)},[ue]),j.useEffect(()=>{const G=T.current;if(!G)return;const V=K=>{if(K.defaultPrevented)return;const ze=K.target;if(!(ze instanceof Node)||!G.contains(ze))return;K.preventDefault(),K.stopPropagation();const Ae=E.current;if(!Ae)return;const it=u7(K,Ae);Ae.scrollTop+=it.y,Ae.scrollLeft+=it.x};return G.addEventListener("wheel",V,{passive:!1}),()=>G.removeEventListener("wheel",V)},[]),j.useEffect(()=>{if(!U||!$)return;let G=!1;return m2(async()=>{const{highlightSourceContent:V}=await import("./syntax-YwTpDWMQ.js");return{highlightSourceContent:V}},[]).then(({highlightSourceContent:V})=>V($.content,U.language,S)).then(V=>{G||me({lines:V,content:$.content,language:U.language,theme:S})}).catch(()=>{G||me({lines:null,content:$.content,language:U.language,theme:S})}),()=>{G=!0}},[$,U,S]),j.useEffect(()=>{U&&window.requestAnimationFrame(()=>{var G;(G=y.current)==null||G.scrollIntoView({block:"center"})})},[U]),j.useEffect(()=>{const G=()=>{const V=T.current;V&&Q(Wl(Ko(V)))};return window.requestAnimationFrame(()=>Q(l7())),window.addEventListener("resize",G),()=>{window.removeEventListener("resize",G)}},[Q]),j.useEffect(()=>()=>{te(),N.current!==null&&window.cancelAnimationFrame(N.current)},[te]);const v=G=>{if(G.button!==0||G.target.closest("button"))return;G.preventDefault(),te();const V=T.current;if(!V)return;const K=Wl(Ko(V)),ze=G.clientX,Ae=G.clientY;D.current=K,document.body.classList.add("source-peek-interacting"),document.body.style.cursor="grabbing",document.body.style.userSelect="none",V.classList.add("dragging");const it=Mt=>{const ct=Wl({...K,left:K.left+Mt.clientX-ze,top:K.top+Mt.clientY-Ae});V.style.transform=`translate3d(${Math.round(ct.left-K.left)}px, ${Math.round(ct.top-K.top)}px, 0)`,D.current=ct},ft=()=>{const Mt=D.current??K;V.classList.remove("dragging"),Q(Mt),te()},tt=()=>{window.removeEventListener("pointermove",it),window.removeEventListener("pointerup",ft),V.classList.remove("dragging")};k.current=tt,window.addEventListener("pointermove",it),window.addEventListener("pointerup",ft,{once:!0})},C=G=>V=>{if(V.button!==0)return;V.preventDefault(),V.stopPropagation(),te();const K=T.current;if(!K)return;const ze=Wl(Ko(K)),Ae=V.clientX,it=V.clientY,ft=i7(G);D.current=ze,document.body.classList.add("source-peek-interacting"),document.body.style.cursor=ft,document.body.style.userSelect="none";const tt=Dt=>{const Te=Dt.clientX-Ae,st=Dt.clientY-it;Q(a7(ze,G,Te,st))},Mt=()=>te(),ct=()=>{window.removeEventListener("pointermove",tt),window.removeEventListener("pointerup",Mt)};k.current=ct,window.addEventListener("pointermove",tt),window.addEventListener("pointerup",Mt,{once:!0})},X=j.useCallback(async G=>{var it;if(!U||!$||re.current[G])return;const V=P8($,G);if(!V)return;const K=ve.current[G]+1;ve.current={...ve.current,[G]:K};const ze=()=>Z.current===U&&ve.current[G]===K,Ae=G==="above"?((it=E.current)==null?void 0:it.scrollHeight)??null:null;if(ze()){ye(G,!0),Re(null);try{const ft=await f(U.filePath,V.startLine,V.lineCount);ze()&&(be(tt=>(tt==null?void 0:tt.response)===U?e7(tt,ft):tt),G==="above"&&Ae!==null&&window.requestAnimationFrame(()=>{const tt=E.current;tt&&(tt.scrollTop+=tt.scrollHeight-Ae)}))}catch(ft){ze()&&Re(ft instanceof Error?ft.message:String(ft))}finally{ze()&&ye(G,!1)}}},[$,f,U,ye]),F=j.useCallback(G=>{const V=G.currentTarget,K=V.scrollHeight-V.scrollTop-V.clientHeight;V.scrollTop<=kd&&X("above"),K<=kd&&X("below")},[X]);return s.jsxs("aside",{"aria-label":"Source peek",className:"source-peek-panel",ref:T,children:[s.jsx("button",{"aria-label":"Resize source peek horizontally",className:"source-peek-resize-handle left",type:"button",onPointerDown:C({left:!0})}),s.jsx("button",{"aria-label":"Resize source peek vertically",className:"source-peek-resize-handle bottom",type:"button",onPointerDown:C({bottom:!0})}),s.jsx("button",{"aria-label":"Resize source peek",className:"source-peek-resize-handle bottom-left",type:"button",onPointerDown:C({bottom:!0,left:!0})}),s.jsx("button",{"aria-label":"Resize source peek",className:"source-peek-resize-handle bottom-right",type:"button",onPointerDown:C({bottom:!0,right:!0})}),s.jsxs("header",{className:"source-peek-header",onPointerDown:v,children:[s.jsxs("div",{className:"source-peek-title",children:[s.jsx(Bh,{size:17}),s.jsx("span",{children:"Source peek"})]}),s.jsx($h,{className:"source-peek-drag-indicator",size:16,"aria-hidden":"true"}),s.jsxs("div",{className:"source-peek-toolbar",children:[U?s.jsx(N2,{filePath:U.filePath,openTargets:a,wordWrap:pe,onActionMessage:W,onCopyFileContents:()=>u(U.filePath),onOpenFile:G=>r(U.filePath,G),onWordWrapChange:q}):null,s.jsx("button",{"aria-label":"Close source peek",className:"icon-button source-peek-close",type:"button",onClick:m,children:s.jsx(Vi,{size:17})})]})]}),h.status==="loading"?s.jsxs("div",{className:"source-peek-status",children:[s.jsx(ar,{className:"spin",size:18}),s.jsxs("span",{children:["Resolving ",h.symbol]})]}):null,h.status==="error"?s.jsx("div",{className:"source-peek-status error",children:s.jsxs("div",{className:"source-peek-error-card",children:[s.jsx(jh,{size:18}),s.jsxs("div",{className:"source-peek-error-copy",children:[s.jsx("strong",{children:Y==null?void 0:Y.title}),s.jsx("p",{children:Y==null?void 0:Y.message}),Y!=null&&Y.hint?s.jsx("span",{children:Y.hint}):null]})]})}):null,U?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"source-peek-meta",children:[s.jsx("span",{className:"source-peek-symbol",children:U.targetSymbol}),s.jsxs("span",{className:"source-peek-path",title:`${U.filePath}:${U.line}`,children:[U.filePath,":",U.line]}),ue?s.jsx("span",{className:"source-peek-action-message",children:ue}):null]}),O?s.jsx("div",{className:"source-peek-truncated",children:O}):null,s.jsx("section",{className:`source-peek-code ${pe?"wrap-lines":""}`,"aria-label":U.filePath,ref:E,onScroll:F,children:fe.map((G,V)=>{const K=(($==null?void 0:$.startLine)??U.startLine)+V,ze=K===U.line;return s.jsxs("div",{className:`source-peek-row ${ze?"target":""}`,ref:ze?y:null,children:[s.jsx("span",{className:"source-peek-line-number",children:K}),s.jsx("code",{children:f7(G||" ",(g==null?void 0:g[V])??null)})]},K)})})]}):null]})}function Ko(a){const u=a.getBoundingClientRect();return{height:u.height,left:u.left,top:u.top,width:u.width}}function Wl(a){const u=gr();if(window.innerWidth<=980)return{height:window.innerHeight-u*2,left:u,top:u,width:window.innerWidth-u*2};const f=Math.max(bs,window.innerWidth-u*2),r=Math.max(er,window.innerHeight-u*2),h=Il(a.width,bs,f),m=Il(a.height,er,r);return{height:m,left:Il(a.left,u,window.innerWidth-h-u),top:Il(a.top,u,window.innerHeight-m-u),width:h}}function l7(){const a=gr();if(window.innerWidth<=980)return Wl({height:window.innerHeight-a*2,left:a,top:a,width:window.innerWidth-a*2});const u=Math.max(a,Math.round(window.innerWidth/3)),f=window.innerWidth-u-a,r=window.innerHeight-a*2;return Wl({height:r,left:u,top:a,width:f})}function a7(a,u,f,r){const h=gr();let m=a.left,S=a.width,T=a.height;if(u.left){const E=a.left+a.width,y=h,N=E-bs;m=Il(a.left+f,y,N),S=E-m}return u.right&&(S=Il(a.width+f,bs,window.innerWidth-a.left-h)),u.bottom&&(T=Il(a.height+r,er,window.innerHeight-a.top-h)),Wl({height:T,left:m,top:a.top,width:S})}function i7(a){return a.bottom&&a.left?"nesw-resize":a.bottom&&a.right?"nwse-resize":a.bottom?"row-resize":"col-resize"}function c7(a,u,f){return f?`Could not load more source: ${yr(f)}`:u.above&&u.below?"Loading more source lines above and below.":u.above?"Loading more source lines above.":u.below?"Loading more source lines below.":a.hasMoreAbove||a.hasMoreBelow?"Large source file - more lines load as you scroll.":a.truncated?"Source preview was shortened for a very long line.":null}function s7(a,u){const f=yr(a);return/no definition found/i.test(f)?{hint:"This can happen for Node built-ins, package exports, or symbols outside the repo.",message:`Gloss could not find a project definition for ${u}.`,title:"No definition found"}:{hint:null,message:f,title:"Source peek unavailable"}}function yr(a){const u=a.replace(/^\d+:\s*/,"").trim();try{const f=JSON.parse(u);if(typeof f=="object"&&f!==null&&!Array.isArray(f)&&typeof f.error=="string")return yr(f.error)}catch{}return u.replace(/^source peek unavailable:\s*/i,"").trim()}function gr(){return window.innerWidth<=720?8:t7}function Il(a,u,f){return Math.min(f,Math.max(u,a))}function u7(a,u){const f=o7(a,u);return{x:a.deltaX*f,y:a.deltaY*f}}function o7(a,u){return a.deltaMode===WheelEvent.DOM_DELTA_LINE?r7(u):a.deltaMode===WheelEvent.DOM_DELTA_PAGE?u.clientHeight||window.innerHeight:1}function r7(a){const u=Number.parseFloat(window.getComputedStyle(a).lineHeight);return Number.isFinite(u)?u:24}function f7(a,u){return!u||u.length===0?a:u.map(f=>s.jsx("span",{style:d7(f),children:f.content},`${f.offset}:${f.content}`))}function d7(a){const u={};a.color&&(u.color=a.color),a.fontStyle&&(a.fontStyle&1)!==0&&(u.fontStyle="italic"),a.fontStyle&&(a.fontStyle&2)!==0&&(u.fontWeight=700);const f=[];return a.fontStyle&&(a.fontStyle&4)!==0&&f.push("underline"),a.fontStyle&&(a.fontStyle&8)!==0&&f.push("line-through"),f.length>0&&(u.textDecorationLine=f.join(" ")),u}function Bd(a){return a instanceof Error?a.message:String(a)}function h7({reviewId:a,reviewScope:u,onLineCommentSelect:f,onSubmitted:r}){const h=Tt(g=>g.comments),m=Tt(g=>g.addGeneralComment),S=Tt(g=>g.removeComment),T=Tt(g=>g.updateComment),[E,y]=j.useState(""),[N,D]=j.useState(null),[k,U]=j.useState(null),[Y,re]=j.useState("idle"),[ve,Z]=j.useState(null),he=j.useRef(null),me=j.useRef(null),$=j.useRef(!1),be=Y!=="submitting"&&Y!=="done",Ne=E.trim(),ee=h.filter(Ui),se=h.filter(g=>!Ui(g)),je=N===null?null:se.find(g=>g.id===N)??null,Re=k!==null,pe=ee.length>0,q=j.useCallback(()=>{D(null),U(null)},[]),ue=()=>{Ne&&(m(Ne),y(""))},W=()=>{!je||!(k!=null&&k.trim())||(T(je.id,k),U(null))},fe=j.useCallback(async()=>{if(!(!be||$.current)){$.current=!0,re("submitting"),Z(null);try{await F5(a,h,u),re("done"),Z("Submitted");try{await(r==null?void 0:r())}catch(g){Z(`Submitted, but refresh failed: ${Bd(g)}`)}}catch(g){$.current=!1,re("error"),Z(Bd(g))}}},[be,h,r,a,u]);return j.useEffect(()=>{const g=O=>{i6(O)&&(O.preventDefault(),fe())};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[fe]),j.useEffect(()=>{N!==null&&je===null&&D(null)},[je,N]),j.useEffect(()=>{var O,Q;if(je===null)return;const g=te=>{te.key==="Escape"&&(te.preventDefault(),Re?U(null):q())};return Re?(O=me.current)==null||O.focus():(Q=he.current)==null||Q.focus(),window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[q,Re,je]),s.jsxs(s.Fragment,{children:[s.jsxs("aside",{className:"submit-bar",children:[s.jsxs("div",{className:"feedback-panel",children:[pe?s.jsxs("div",{className:"inline-feedback-row",children:[s.jsxs("span",{className:"feedback-row-label inline-feedback-label",children:[s.jsx(Pl,{size:14}),"Inline feedback",s.jsx("span",{className:"feedback-row-count",children:ee.length})]}),s.jsx("div",{className:"comment-list",children:ee.map(g=>{const O=qd(g);return s.jsxs("div",{className:`comment-chip ${O.tone}`,title:O.title,children:[s.jsxs("button",{className:"comment-chip-target",type:"button",title:`Jump to ${O.title}`,onClick:()=>f==null?void 0:f(g),children:[s.jsx("span",{className:"comment-chip-kind",children:O.kind}),s.jsx("span",{className:"comment-chip-text",children:O.text})]}),s.jsx("button",{className:"icon-button",type:"button",title:"Remove comment",onClick:()=>S(g.id),children:s.jsx(ds,{size:14})})]},g.id)})})]}):null,se.length>0?s.jsxs("div",{className:"general-feedback-summary-row",children:[s.jsxs("span",{className:"feedback-row-label general-feedback-label",children:[s.jsx(Pl,{size:14}),"General feedback",s.jsx("span",{className:"feedback-row-count general-feedback-count",children:se.length})]}),s.jsx("div",{className:"general-feedback-list",children:se.map(g=>{const O=qd(g);return s.jsxs("div",{className:`comment-chip ${O.tone}`,title:O.title,children:[s.jsxs("button",{className:"comment-chip-target",type:"button",title:"View general feedback",onClick:()=>D(g.id),children:[s.jsx("span",{className:"comment-chip-kind",children:O.kind}),s.jsx("span",{className:"comment-chip-text",children:O.text})]}),s.jsx("button",{className:"icon-button",type:"button",title:"Remove comment",onClick:()=>S(g.id),children:s.jsx(ds,{size:14})})]},g.id)})})]}):null,s.jsx("div",{className:"general-feedback-row",children:s.jsx("form",{className:"general-comment-form",onSubmit:g=>{g.preventDefault(),ue()},children:s.jsxs("div",{className:"general-comment-compose",children:[s.jsx(Pl,{className:"general-comment-compose-icon",size:15}),s.jsx("textarea",{"aria-label":"General feedback",placeholder:"General feedback",rows:1,value:E,onChange:g=>y(g.target.value),onKeyDown:g=>{ps(g)&&(g.preventDefault(),ue())}}),s.jsxs("button",{"aria-keyshortcuts":"Meta+Enter",className:"general-comment-add",type:"submit",disabled:!Ne,title:"Add general feedback (Command+Enter)",children:[s.jsx(e2,{size:14}),s.jsx("span",{children:"Add"})]})]})})})]}),s.jsxs("div",{className:"submit-actions",children:[ve?s.jsx("span",{className:`submit-message ${Y}`,children:ve}):null,s.jsxs("button",{"aria-keyshortcuts":"Meta+Shift+Enter",className:"primary-button",type:"button",disabled:!be,title:"Submit review (Command+Shift+Enter)",onClick:fe,children:[Y==="done"?s.jsx(jn,{size:16}):s.jsx(ym,{size:16}),"Submit ",h.length]})]})]}),je?qi.createPortal(s.jsx("div",{className:"general-feedback-dialog-backdrop",children:s.jsxs("dialog",{"aria-labelledby":"general-feedback-dialog-title","aria-modal":"true",className:"general-feedback-dialog",ref:he,open:!0,tabIndex:-1,children:[s.jsxs("header",{className:"general-feedback-dialog-header",children:[s.jsx("h2",{id:"general-feedback-dialog-title",children:k===null?"General feedback":"Edit general feedback"}),s.jsx("button",{"aria-label":"Close general feedback",className:"icon-button general-feedback-dialog-close",type:"button",onClick:q,children:s.jsx(Vi,{size:18})})]}),s.jsx("div",{className:"general-feedback-dialog-body",children:k===null?s.jsx("p",{className:"general-feedback-dialog-text",children:je.body}):s.jsx("textarea",{"aria-label":"Edit general feedback",className:"general-feedback-dialog-editor",ref:me,value:k,onChange:g=>U(g.target.value),onKeyDown:g=>{ps(g)&&(g.preventDefault(),W())}})}),s.jsx("footer",{className:"general-feedback-dialog-footer",children:k===null?s.jsxs(s.Fragment,{children:[s.jsxs("button",{className:"secondary-button",type:"button",onClick:()=>{S(je.id),q()},children:[s.jsx(ds,{size:14}),"Delete"]}),s.jsxs("button",{className:"secondary-button",type:"button",onClick:()=>U(je.body),children:[s.jsx(Pd,{size:14}),"Edit"]}),s.jsx("button",{className:"primary-button",type:"button",onClick:q,children:"Close"})]}):s.jsxs(s.Fragment,{children:[s.jsx("button",{className:"secondary-button",type:"button",onClick:()=>U(null),children:"Cancel"}),s.jsxs("button",{className:"primary-button",type:"button",disabled:k.trim().length===0,onClick:W,children:[s.jsx(jn,{size:14}),"Save"]})]})})]})}),document.body):null]})}function qd(a){if(!Ui(a))return{kind:"General",text:a.body,title:a.body,tone:"general"};const u=`${a.filePath}:${Bi(a,{repeatSideOnEnd:!1})}`;return{kind:"Line",text:u,title:u,tone:"line"}}const _2="gloss:diff-view-mode";function m7(a=R2()){if(!a)return"unified";try{const u=a.getItem(_2);return y7(u)?u:"unified"}catch{return"unified"}}function p7(a,u=R2()){if(u)try{u.setItem(_2,a)}catch{}}function y7(a){return a==="unified"||a==="split"}function R2(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}const g7="gloss:viewed-files:";function D2(a){return`${g7}${a}`}function $o(a,u=L2()){if(!u)return new Set;const f=u.getItem(D2(a));if(!f)return new Set;try{const r=JSON.parse(f);return new Set(Array.isArray(r)?r.filter(h=>typeof h=="string"):[])}catch{return new Set}}function v7(a,u,f=L2()){if(!f)return;const r=D2(a);if(u.size===0){f.removeItem(r);return}f.setItem(r,JSON.stringify(Array.from(u).toSorted()))}function L2(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function b7(a){return a.type==="review.turn.created"||a.type==="review.submitted"||a.type==="review.updated"}function x7(a,u,f){return a.reviewId!==u||!a.selectedExtensionIds?new Set(f):new Set(f.filter(r=>{var h;return(h=a.selectedExtensionIds)==null?void 0:h.has(r)}))}function S7(a,u){const f=new Map(((u==null?void 0:u.comments)??[]).map(r=>[r.commentId,r]));return((a==null?void 0:a.comments)??[]).filter(r=>!Ui(r)).map(r=>{const h=f.get(r.id)??null;return{comment:r,resolvedComment:h,status:h?"resolved":"open",summary:(h==null?void 0:h.summary)??null}})}function j7(a,u){return{icon:(a==null?void 0:a.trim())===u.trim()?"branch":null}}function E7(a,u){const f=(a==null?void 0:a.trim())??"",r=f||"detached";return r===u.trim()?null:{label:r,title:f||"Detached HEAD"}}function O2(a){return a.length>1}const w7=300,N7=560,z7=360,T7={files:[],stats:{files:0,additions:0,deletions:0}},M7=[],A7=[],C7={agentStatus:null,latestAgentMessage:null,latestAgentTimestamp:null,latestReviewEvent:null,progress:null},Jo=[{label:"Default app",target:"default"},{label:"Open in folder",target:"folder"}],Gd=["lockfiles"],H2="gloss:hidden-boring-file-presets:v2",_7=new Map(n2.map(a=>[a.id,a.label])),k2={diff:null,error:null,loading:!1},R7=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),D7=new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}),Fo=[["year",3600*24*365],["month",3600*24*30],["week",3600*24*7],["day",3600*24],["hour",3600],["minute",60],["second",1]],L7=[{icon:em,label:"Match system theme",value:"system"},{icon:jm,label:"Use light theme",value:"light"},{icon:nm,label:"Use dark theme",value:"dark"}];function O7({reviewId:a}){return s.jsx(G7,{reviewId:a},a)}function H7(){const{preference:a,setPreference:u}=or();return s.jsxs("fieldset",{className:"theme-toggle",children:[s.jsx("legend",{className:"sr-only",children:"Theme"}),L7.map(f=>{const r=f.icon;return s.jsx("button",{"aria-label":f.label,"aria-pressed":a===f.value,className:"theme-toggle-option",title:f.label,type:"button",onClick:()=>u(f.value),children:s.jsx(r,{size:15})},f.value)})]})}function k7(){try{const a=window.localStorage.getItem(H2);return a===null?new Set(Gd):Xm(JSON.parse(a))}catch{return new Set(Gd)}}function Vd(a){try{window.localStorage.setItem(H2,JSON.stringify(Array.from(a)))}catch{}}function U7(a,u){const f=l2(a);return{presetLabels:Array.from(u).filter(h=>f.has(h)).map(h=>_7.get(h)??h)}}function Yd(a){const u=document.getElementById(pr(a));u&&u.scrollIntoView({behavior:"smooth",block:"start"})}function B7(a){const u=document.getElementById(pr(a.filePath));if(!u)return!1;const f=Math.max(a.startLine,a.endLine),r=Array.from(u.querySelectorAll(".inline-comment")).find(E=>E.dataset.commentId===a.id),h=Array.from(u.querySelectorAll(".diff-row")).find(E=>E.dataset.side===a.side&&Number(E.dataset.line)===f),m=r??h;if(!m)return!1;const S=m.getBoundingClientRect(),T=S.top+window.scrollY-window.innerHeight/2+S.height/2;return window.scrollTo({behavior:"auto",top:Math.max(T,0)}),q7(m),!0}function q7(a){a.classList.remove("jump-target"),a.getBoundingClientRect(),a.classList.add("jump-target"),window.setTimeout(()=>a.classList.remove("jump-target"),1400)}function G7({reviewId:a}){const[u,f]=j.useState(null),[r,h]=j.useState(null),[m,S]=j.useState(()=>m7()),[T,E]=j.useState(!1),[y,N]=j.useState(null),[D,k]=j.useState(!0),[U,Y]=j.useState(!1),[re,ve]=j.useState(z7),[Z,he]=j.useState({reviewId:null,searchQuery:"",selectedExtensionIds:null}),[me,$]=j.useState(()=>k7()),[be,Ne]=j.useState(new Set),[ee,se]=j.useState(null),[je,Re]=j.useState({mode:"all"}),[pe,q]=j.useReducer(e9,k2),[ue,W]=j.useState(null),[fe,g]=j.useState(null),[O,Q]=j.useState(Jo),[te,ye]=j.useState(()=>({storageKey:a,files:$o(a)})),[v,C]=j.useState(null),[X,F]=j.useState([]),[G,V]=j.useState("connecting"),K=j.useRef(0),ze=j.useRef(0),Ae=j.useRef(null),it=j.useRef(null),ft=Tt(_=>_.reset),tt=Tt(_=>_.hydrateReview),Mt=Tt(_=>_.setDraft),ct=(u==null?void 0:u.turns[u.turns.length-1])??null,Dt=(ct==null?void 0:ct.id)??null,Te=u&&ct?u.turns.find(_=>_.id===ee)??ct:null,st=u&&Te?V7(u,Te):null,on=st?gd(st):null,yn=(Te==null?void 0:Te.diff.commitDiffs)??A7,bt=j.useMemo(()=>P7(je,yn),[yn,je]),B=Te&&bt.mode==="single"?yn.find(_=>_.commit.sha===bt.sha)??null:null,ie=Te&&bt.mode==="range"?pe.diff??T7:null,Me=Te?ie??B??Te.diff:null,ne=j.useMemo(()=>Me?{...Me,files:Pm(Me.files)}:null,[Me]),oe=(ne==null?void 0:ne.files)??M7,ut=j.useMemo(()=>Ym(oe,me),[me,oe]).hidden,nt=j.useMemo(()=>new Map(ut.filter(_=>!be.has(_.path)).map(_=>[_.path,U7(_,me)])),[ut,me,be]),Jt=j.useMemo(()=>K8(oe),[oe]),rn=j.useMemo(()=>Jt.map(_=>_.id),[Jt]),Nn=(u==null?void 0:u.meta.id)??null,Fn=!!(Nn&&Z.reviewId===Nn),Ft=j.useMemo(()=>Nn?x7(Z,Nn,rn):new Set(rn),[rn,Z,Nn]),ht=Fn?Z.searchQuery:"",At=j.useMemo(()=>$8(oe,ht,Ft),[oe,ht,Ft]),Ee=Te?`${a}:${Te.id}`:a;let Ct=te.files;te.storageKey!==Ee&&(Ct=$o(Ee),ye({storageKey:Ee,files:Ct}));const Wn=y&&At.some(_=>_.path===y)?y:null,Wt=j.useMemo(()=>st?X7(X,st):C7,[X,st]),Cl=!!(!r&&u&&Te&&st&&ne&&on),zn=j.useCallback(_=>{f(_),_.events&&(F(_.events),ze.current=Math.max(0,..._.events.map(J=>J.seq??0))),document.title=gd(_)},[]),Tn=j.useCallback(()=>{K.current+=1,g(null),W(null)},[]),Mn=()=>{const _=m==="unified"?"split":"unified";p7(_),S(_)},In=j.useCallback(()=>{Re({mode:"all"}),q({type:"idle"}),Tn(),Mt(null)},[Tn,Mt]),An=j.useCallback(async()=>{var le;const _=await bd(a),J=((le=_.turns[_.turns.length-1])==null?void 0:le.id)??null;ee===null&&Dt&&J!==Dt&&In(),zn(_)},[a,ee,Dt,In,zn]),Yi=j.useCallback(_=>{_.seq&&_.seq>ze.current&&(ze.current=_.seq),F(J=>Y7(J,_))},[]);if(j.useEffect(()=>{let _=!1;return ft(),ze.current=0,F([]),V("connecting"),bd(a).then(J=>{_||zn(J)}).catch(J=>{_||h(J instanceof Error?J.message:String(J))}),()=>{_=!0}},[a,ft,zn]),j.useEffect(()=>{let _=!1;return W5().then(({targets:J})=>{_||Q(J.length>0?J:Jo)}).catch(()=>{_||Q(Jo)}),()=>{_=!0}},[]),j.useEffect(()=>{var _;Te&&tt(((_=Te.feedback)==null?void 0:_.comments)??[],Te.resolution??null)},[tt,Te]),j.useEffect(()=>{if(!Te||bt.mode!=="range")return;let _=!1;return q({type:"loading"}),I5(a,bt.fromSha,bt.toSha,Te.id).then(J=>{_||q({type:"loaded",diff:J})}).catch(J=>{_||q({error:J instanceof Error?J.message:String(J),type:"failed"})}),()=>{_=!0}},[bt,Te,a]),j.useEffect(()=>{if(!Cl)return;const _=Ae.current,J=it.current;if(!_||!J)return;const le=()=>{_.style.setProperty("--review-sticky-top",`${J.offsetHeight}px`)};le();const Be=new ResizeObserver(le);return Be.observe(J),()=>Be.disconnect()},[Cl]),j.useEffect(()=>{const _=new EventSource(`/api/reviews/${a}/events?after=${ze.current}`);return V("connecting"),_.onopen=()=>{V("connected")},_.onmessage=J=>{const le=v5(J.data,o2,"review event");Yi(le),b7(le)&&An().catch(Be=>{h(Be instanceof Error?Be.message:String(Be))})},_.onerror=()=>{V("disconnected")},()=>{_.close()}},[a,An,Yi]),r)return s.jsx("main",{className:"empty-shell",children:s.jsxs("section",{className:"empty-panel",children:[s.jsx("h1",{children:"Review unavailable"}),s.jsx("p",{children:r})]})});if(!u||!Te||!st||!ne||!on)return s.jsx("main",{className:"empty-shell",children:s.jsxs("section",{className:"empty-panel",children:[s.jsx(ar,{className:"spin",size:24}),s.jsx("p",{children:"Loading review"})]})});const Xi=Te.diff.scope,Ba=ne.stats,_l=j7(st.meta.branch,on),qa=E7(st.meta.branch,on),Qi=i9(bt),na=c9(bt),Rl=Te.id!==Dt||l5(Te.status),Ga=O2(u.turns),la=bt.mode==="range"?pe.error:null,Zi=bt.mode==="range"&&pe.loading,Va=S7(st.feedback,st.resolution),fn=oe.filter(_=>Ct.has(_.path)).length,xt=oe.length===0?0:Math.round(fn/oe.length*100),_t=_=>{he(J=>({reviewId:u.meta.id,searchQuery:_,selectedExtensionIds:J.reviewId===u.meta.id?J.selectedExtensionIds:null}))},Pn=_=>{he(J=>{const le=J.reviewId===u.meta.id&&J.selectedExtensionIds?new Set(J.selectedExtensionIds):new Set(rn);return le.has(_)?le.delete(_):le.add(_),{reviewId:u.meta.id,searchQuery:J.reviewId===u.meta.id?J.searchQuery:"",selectedExtensionIds:le}})},Ya=()=>{he(_=>({reviewId:u.meta.id,searchQuery:_.reviewId===u.meta.id?_.searchQuery:"",selectedExtensionIds:null}))},ws=()=>{he(_=>({reviewId:u.meta.id,searchQuery:_.reviewId===u.meta.id?_.searchQuery:"",selectedExtensionIds:new Set}))},Ns=_=>{$(J=>{const le=new Set(J);return le.has(_)?le.delete(_):le.add(_),Vd(le),le})},Ki=()=>{const _=new Set;Vd(_),$(_)},el=_=>{Ne(J=>{const le=new Set(J);return le.add(_),le})},Xa=_=>{N(_.filePath),Y(!1),At.some(Be=>Be.path===_.filePath)||he({reviewId:u.meta.id,searchQuery:"",selectedExtensionIds:null}),nt.has(_.filePath)&&el(_.filePath);let J=0;const le=()=>{if(!B7(_)){if(J<8){J+=1,window.requestAnimationFrame(le);return}Yd(_.filePath)}};window.requestAnimationFrame(le)},tl=_=>{N(_),Y(!1),window.requestAnimationFrame(()=>{window.setTimeout(()=>Yd(_),0)})},nl=_=>{_.preventDefault();const J=_.clientX,le=re,Be=Ts=>{const Qa=le+Ts.clientX-J;ve(Math.min(N7,Math.max(w7,Qa)))},gn=()=>{window.removeEventListener("pointermove",Be),window.removeEventListener("pointerup",gn)};window.addEventListener("pointermove",Be),window.addEventListener("pointerup",gn,{once:!0})},Dl=(_,J)=>{ye(le=>{const Be=le.storageKey===Ee?le.files:$o(Ee),gn=new Set(Be);return J?gn.add(_):gn.delete(_),v7(Ee,gn),{storageKey:Ee,files:gn}})},ll=async(_,J)=>{C(null);try{await xd(a,_,Te.id,{target:J})}catch(le){const Be=le instanceof Error?le.message:String(le);throw C(Be),new Error(Be)}},mt=async(_,J)=>{C(null);try{await xd(a,_,Te.id,{scope:"repo",target:J})}catch(le){const Be=le instanceof Error?le.message:String(le);throw C(Be),new Error(Be)}},$i=async _=>{C(null);try{return(await Sd(a,_,Te.id)).content}catch(J){const le=J instanceof Error?J.message:String(J);throw C(le),new Error(le)}},Ji=async _=>{C(null);try{return(await Sd(a,_,Te.id,{scope:"repo"})).content}catch(J){const le=J instanceof Error?J.message:String(J);throw C(le),new Error(le)}},Cn=async _=>{const J=K.current+1;K.current=J,g(_),W({status:"loading",symbol:_.symbol});try{const le=await e6({reviewId:a,turnId:Te.id,source:na,..._});K.current===J&&W({status:"ready",response:le})}catch(le){K.current===J&&W({message:le instanceof Error?le.message:String(le),status:"error",symbol:_.symbol})}},al=async(_,J,le)=>{if(!fe)throw new Error("source peek selection is no longer available");return t6({reviewId:a,turnId:Te.id,source:na,side:fe.side,filePath:_,startLine:J,lineCount:le})},Fi={activeFilePath:Wn,extensionBuckets:Jt,files:oe,filteredFiles:At,hiddenBoringFileCount:nt.size,hiddenBoringPresets:me,searchQuery:ht,selectedExtensionIds:Ft,onClearExtensions:ws,onFileSelect:tl,onSearchChange:_t,onSelectAllExtensions:Ya,onShowAllBoringFiles:Ki,onToggleBoringPreset:Ns,onToggleExtension:Pn},Wi=s.jsx(Od,{...Fi,onCollapse:()=>k(!0)}),Ii=s.jsx(Od,{...Fi}),zs=ne.files.length===0?null:s.jsxs("div",{className:"empty-diff filtered-empty",children:[s.jsx("h2",{children:"No matching files"}),s.jsx("p",{children:"Adjust the file search or extension filters to show changed files."})]});return s.jsx("main",{className:"review-shell",ref:Ae,children:s.jsxs("div",{className:"review-split",children:[s.jsxs("div",{className:"review-main-pane",children:[s.jsxs("header",{className:"topbar",ref:it,children:[s.jsxs("div",{className:"topbar-header",children:[s.jsxs("div",{className:"topbar-title",children:[s.jsx("img",{className:"brand-mark",src:"/logo.svg",alt:""}),s.jsxs("div",{className:"review-heading",children:[s.jsx("p",{className:"product-name",children:"Gloss"}),s.jsxs("h1",{children:[_l.icon==="branch"?s.jsx(ms,{className:"review-title-icon",size:18}):null,s.jsx("span",{className:"review-title-text",children:on})]})]})]}),s.jsxs("div",{className:"topbar-actions",children:[s.jsx(t9,{commitDiffs:yn,value:bt,onChange:_=>{Re(_),_.mode!=="range"&&q({type:"idle"}),Tn(),Mt(null)}}),s.jsxs("div",{className:"viewed-progress",title:"Viewed files",children:[s.jsx("span",{"aria-hidden":"true",className:"viewed-progress-ring",style:{"--viewed-progress":`${xt}%`}}),fn," / ",oe.length," viewed"]}),s.jsx("button",{"aria-label":"Open file tree",className:"icon-button file-tree-mobile-toggle",title:"Open file tree",type:"button",onClick:()=>Y(!0),children:s.jsx(lr,{size:16})}),s.jsx("button",{"aria-label":"Side-by-side diff view","aria-pressed":m==="split",className:"icon-button diff-view-toggle",title:"Side-by-side diff view",type:"button",onClick:Mn,children:s.jsx(Mh,{size:16})}),s.jsx("button",{"aria-label":T?"Unwrap lines":"Wrap lines","aria-pressed":T,className:"icon-button wrap-toggle",title:T?"Unwrap lines":"Wrap lines",type:"button",onClick:()=>E(_=>!_),children:T?s.jsx(am,{size:16}):s.jsx(t2,{size:16})}),s.jsx(H7,{}),qa?s.jsxs("div",{className:"branch-pill",title:qa.title,children:[s.jsx(ms,{size:16}),s.jsx("span",{children:qa.label})]}):null]})]}),s.jsx(F7,{scope:Xi,selectedTurn:Te,stats:Ba,turns:u.turns,onSelectTurn:_=>{_!==Te.id&&In(),se(_===Dt?null:_)}}),G==="disconnected"?s.jsx("div",{className:"event-connection-banner",children:"Reconnecting to live review updates"}):null,s.jsx(Q7,{state:Wt})]}),v?s.jsx("div",{className:"open-file-message error",children:v}):null,la?s.jsx("div",{className:"open-file-message error",children:la}):null,Zi?s.jsx("div",{className:"range-loading",children:"Loading range diff"}):null,s.jsxs("div",{className:`review-body ${D?"file-tree-collapsed":""}`,style:{"--file-tree-width":`${re}px`},children:[s.jsx("aside",{className:`review-sidebar ${D?"collapsed":""}`,children:D?s.jsxs("button",{"aria-label":"Expand file tree",className:"file-tree-rail",title:"Expand file tree",type:"button",onClick:()=>k(!1),children:[s.jsx(um,{size:17}),s.jsx("span",{children:"Files"}),s.jsx("span",{children:At.length})]}):s.jsxs(s.Fragment,{children:[Wi,s.jsx("button",{"aria-label":"Resize file tree",className:"file-tree-resize-handle",title:"Resize file tree",type:"button",onPointerDown:nl})]})}),s.jsxs("section",{className:"review-diff-column",children:[Rl&&!Ga?s.jsx(r9,{record:st}):null,Rl&&Va.length>0?s.jsx(o9,{items:Va}):null,s.jsx(R8,{activeFilePath:Wn,contextSource:na,diff:ne,emptyState:zs,files:At,hiddenFiles:nt,record:st,readOnly:Rl,reviewId:a,selectedSourcePeek:fe,turnId:Te.id,viewMode:m,viewedFiles:Ct,wrapLines:T,openTargets:O,onCopyFileContents:$i,onOpenFile:ll,onRevealHiddenFile:el,onSourcePeek:Cn,onViewedChange:Dl})]})]}),U?s.jsx("dialog",{className:"file-tree-drawer-backdrop","aria-label":"Files",open:!0,children:s.jsxs("aside",{className:"file-tree-drawer",children:[s.jsxs("div",{className:"file-tree-drawer-header",children:[s.jsx("span",{children:"Changed files"}),s.jsx("button",{"aria-label":"Close file tree",className:"icon-button",type:"button",onClick:()=>Y(!1),children:s.jsx(Vi,{size:16})})]}),Ii]})}):null,Rl?null:s.jsx(h7,{reviewId:a,reviewScope:Qi,onLineCommentSelect:Xa,onSubmitted:An})]}),ue?qi.createPortal(s.jsx(n7,{openTargets:O,state:ue,onCopyFileContents:Ji,onLoadRange:al,onOpenFile:mt,onClose:Tn}),document.body):null]})})}function V7(a,u){return{...a,meta:{...a.meta,activeTurnId:u.id,status:u.status,submittedAt:u.submittedAt,resolvedAt:u.resolvedAt,feedbackPath:u.feedbackPath,markdownPath:u.markdownPath},diff:u.diff,...u.feedback?{feedback:u.feedback}:{feedback:void 0},...u.resolution?{resolution:u.resolution}:{resolution:void 0}}}function Y7(a,u){const f=Xd(u),r=a.findIndex(m=>Xd(m)===f);return(r>=0?a.map((m,S)=>S===r?u:m):[...a,u]).toSorted(Z7)}function X7(a,u){const r=a.filter(S=>S.type==="agent.claimed"||S.type==="agent.note").at(-1)??null,h=[...a].reverse().find(S=>S.type.startsWith("review.")&&S.type!=="review.opened")??null,m=ir(u);return{agentStatus:K7(r),latestAgentMessage:$7(r),latestAgentTimestamp:(r==null?void 0:r.createdAt)??null,latestReviewEvent:h,progress:m.total>0?`${m.resolved} of ${m.total} comments resolved`:null}}function Q7({state:a}){return!a.agentStatus&&!a.latestReviewEvent&&!a.progress?null:s.jsxs("section",{className:"review-session-panel",children:[s.jsxs("div",{className:"review-session-item",children:[s.jsx("span",{className:"review-session-label",children:"Review"}),s.jsx("span",{className:"review-session-value",children:J7(a.latestReviewEvent)??"Open"})]}),a.progress?s.jsxs("div",{className:"review-session-item",children:[s.jsx("span",{className:"review-session-label",children:"Progress"}),s.jsx("span",{className:"review-session-value",children:a.progress})]}):null,a.agentStatus?s.jsxs("div",{className:"review-session-item agent",children:[s.jsx("span",{className:"review-session-label",children:"Agent"}),s.jsx("span",{className:"review-session-value",children:a.agentStatus}),a.latestAgentTimestamp?s.jsx("time",{dateTime:a.latestAgentTimestamp,children:vr(a.latestAgentTimestamp)}):null]}):null,a.latestAgentMessage?s.jsx("p",{className:"review-session-message",children:a.latestAgentMessage}):null]})}function Xd(a){return a.seq!==void 0?`seq:${a.seq}`:a.id?`id:${a.id}`:`${a.type}:${a.reviewId}:${a.createdAt??""}:${JSON.stringify(a)}`}function Z7(a,u){const f=a.seq??0,r=u.seq??0;return f!==r?f-r:(a.createdAt??"").localeCompare(u.createdAt??"")}function K7(a){return a?a.type==="agent.claimed"?"Claimed":a.type==="agent.note"&&a.status?a.status.charAt(0).toUpperCase()+a.status.slice(1):"Updated":null}function $7(a){return a?a.type==="agent.claimed"?a.message??null:a.type==="agent.note"?a.message:null:null}function J7(a){return a?a.type==="review.turn.created"?`Turn ${a.turnIndex} opened`:a.type==="review.submitted"?`Submitted · ${a.counts.comments} comments`:a.type==="review.updated"?a.status==="resolved"?"Resolved":"Submitted":a.type==="review.cancelled"?"Cancelled":null:null}function F7({scope:a,selectedTurn:u,stats:f,turns:r,onSelectTurn:h}){return s.jsxs("div",{className:"review-context-bar",children:[s.jsxs("div",{className:"review-context-range",title:`${Zd("Base",a.base.ref,a.base.sha)} to ${Zd("Compare",a.comparison.ref,a.comparison.sha)}`,children:[s.jsx("span",{className:"review-context-ref",children:Qd(a.base.ref,a.base.sha)}),s.jsx(Jd,{className:"review-context-arrow",size:14}),s.jsx("span",{className:"review-context-ref",children:Qd(a.comparison.ref,a.comparison.sha)})]}),s.jsx("span",{className:"review-context-divider","aria-hidden":"true"}),s.jsxs("div",{className:"review-context-stats",title:"Changed files",children:[s.jsxs("span",{children:[f.files," ",f.files===1?"file":"files"]}),s.jsxs("span",{className:"summary-add",children:["+",f.additions]}),s.jsxs("span",{className:"summary-del",children:["-",f.deletions]})]}),s.jsx(W7,{selectedTurn:u,turns:r,onSelect:h})]})}function W7({selectedTurn:a,turns:u,onSelect:f}){var E;const[r,h]=j.useState(!1),m=j.useRef(null);if(j.useEffect(()=>{if(!r)return;const y=D=>{var k;(k=m.current)!=null&&k.contains(D.target)||h(!1)},N=D=>{D.key==="Escape"&&h(!1)};return window.addEventListener("pointerdown",y),window.addEventListener("keydown",N),()=>{window.removeEventListener("pointerdown",y),window.removeEventListener("keydown",N)}},[r]),!O2(u))return null;const S=(E=u[u.length-1])==null?void 0:E.id,T=[...u].reverse();return s.jsxs("div",{className:"turn-selector",ref:m,children:[s.jsxs("button",{"aria-expanded":r,"aria-haspopup":"menu",className:"turn-selector-trigger",type:"button",onClick:()=>h(y=>!y),children:[s.jsxs("span",{children:["Turn ",a.index," of ",u.length]}),s.jsx("span",{className:`turn-selector-status ${a.status}`,children:a.status}),s.jsx(ta,{size:14})]}),r?s.jsx("div",{className:"turn-menu",role:"menu","aria-label":"Review turns",children:T.map(y=>{var re;const N=ir(y),D=y.id===a.id,k=y.id===S,U=(re=y.feedback)!=null&&re.reviewScope?t5(y.feedback.reviewScope,y.diff.commitDiffs??[]):null,Y=I7(y);return s.jsxs("button",{"aria-checked":D,className:`turn-menu-item ${D?"selected":""}`,role:"menuitemradio",type:"button",onClick:()=>{f(y.id),h(!1)},children:[s.jsxs("span",{className:"turn-menu-title",children:["Turn ",y.index,k?s.jsx("span",{className:"turn-menu-latest",children:"Latest"}):null]}),s.jsxs("span",{className:`turn-menu-meta ${y.status}`,children:[y.status,N.total>0?` · ${N.open} open / ${N.total}`:" · no comments"]}),Y?s.jsx("time",{className:"turn-menu-time",dateTime:Y,children:vr(Y)}):null,U?s.jsxs("span",{className:"turn-menu-scope",children:["Scope: ",U]}):null]},y.id)})}):null]})}function Qd(a,u){return u?`${a} ${u.slice(0,7)}`:a}function Zd(a,u,f){return`${a} ${u}${f?` (${f})`:""}`}function I7(a){var u;return a.status==="resolved"?a.resolvedAt??((u=a.resolution)==null?void 0:u.resolvedAt)??null:a.status==="submitted"?a.submittedAt??null:null}function P7(a,u){if(a.mode==="all")return a;if(a.mode==="single")return u.some(h=>h.commit.sha===a.sha)?a:{mode:"all"};const f=u.findIndex(h=>h.commit.sha===a.fromSha),r=u.findIndex(h=>h.commit.sha===a.toSha);return f>=0&&r>=f?a:{mode:"all"}}function e9(a,u){switch(u.type){case"idle":return k2;case"loading":return{diff:null,error:null,loading:!0};case"loaded":return{diff:u.diff,error:null,loading:!1};case"failed":return{diff:null,error:u.error,loading:!1}}}function t9({commitDiffs:a,value:u,onChange:f}){const[r,h]=j.useState(!1),[m,S]=j.useState("all"),[T,E]=j.useState(new Set),y=j.useRef(null),N=j.useRef(null),D=j.useMemo(()=>a.map(Z=>({sha:Z.commit.sha,shortSha:Z.commit.shortSha,subject:Z.commit.subject,authorName:Z.commit.authorName,committedAt:Z.commit.committedAt,fileCount:Z.files.length})),[a]);if(j.useEffect(()=>{if(!r)return;N.current=document.activeElement instanceof HTMLElement?document.activeElement:null;const Z=["button:not(:disabled)","input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)","a[href]",'[tabindex]:not([tabindex="-1"])'].join(","),he=()=>{var $;return Array.from((($=y.current)==null?void 0:$.querySelectorAll(Z))??[]).filter(be=>be.offsetParent!==null)};window.requestAnimationFrame(()=>{var $;($=he()[0]??y.current)==null||$.focus()});const me=$=>{var se;if($.key==="Escape"&&h(!1),$.key!=="Tab")return;const be=he();if(be.length===0){$.preventDefault(),(se=y.current)==null||se.focus();return}const Ne=be[0],ee=be[be.length-1];$.shiftKey&&document.activeElement===Ne?($.preventDefault(),ee.focus()):!$.shiftKey&&document.activeElement===ee&&($.preventDefault(),Ne.focus())};return window.addEventListener("keydown",me),()=>{var $;window.removeEventListener("keydown",me),($=N.current)==null||$.focus(),N.current=null}},[r]),D.length===0)return null;const k=()=>{const Z=n9(u,D);S(u.mode==="all"||Z.size===0?"all":"selected"),E(Z),h(!0)},U=U2(T,D),Y=U.length>0?{from:D[U[0]],to:D[U[U.length-1]],count:U[U.length-1]-U[0]+1}:null,re=m==="all"?`${D.length} ${D.length===1?"commit":"commits"}`:Y?Y.from.sha===Y.to.sha?Y.from.shortSha:`${Y.count} commits · ${Y.from.shortSha} to ${Y.to.shortSha}`:"No commits selected",ve=m==="all"||U.length>0;return s.jsxs("div",{className:"commit-selector",children:[s.jsxs("button",{"aria-expanded":r,className:"commit-picker-trigger",type:"button",onClick:k,children:[s.jsx(Zh,{size:16}),s.jsx("span",{className:"commit-picker-trigger-text",children:s9(u,D)}),s.jsx(ta,{size:16})]}),r?qi.createPortal(s.jsx("div",{className:"commit-picker-backdrop",children:s.jsxs("dialog",{"aria-labelledby":"commit-picker-title","aria-modal":"true",className:"commit-picker-dialog",ref:y,open:!0,tabIndex:-1,children:[s.jsxs("header",{className:"commit-picker-header",children:[s.jsx("h2",{id:"commit-picker-title",children:"Select commits to view"}),s.jsx("button",{"aria-label":"Close commit picker",className:"icon-button commit-picker-close",type:"button",onClick:()=>h(!1),children:s.jsx(Vi,{size:20})})]}),s.jsxs("div",{className:"commit-picker-body",children:[s.jsxs("label",{className:`commit-picker-all ${m==="all"?"selected":""}`,children:[s.jsx("input",{checked:m==="all",className:"commit-picker-checkbox",type:"checkbox",onChange:()=>{S("all"),E(new Set)}}),s.jsxs("span",{className:"commit-picker-all-copy",children:[s.jsx("span",{children:"All commits"}),s.jsxs("span",{children:[D.length," ",D.length===1?"commit":"commits"]})]})]}),s.jsx("div",{className:"commit-picker-section-label",children:"Select a range of commits"}),s.jsx("div",{className:"commit-picker-list",children:D.map(Z=>{const he=m==="selected"&&T.has(Z.sha);return s.jsxs("label",{className:`commit-picker-row ${he?"selected":""}`,children:[s.jsx("input",{checked:he,className:"commit-picker-checkbox",type:"checkbox",onChange:()=>{S("selected"),E(me=>l9(me,Z.sha,D))}}),s.jsxs("span",{className:"commit-picker-row-copy",children:[s.jsx("span",{className:"commit-picker-subject",children:Z.subject}),s.jsxs("span",{className:"commit-picker-meta",children:[Z.authorName," committed ",u9(Z.committedAt)," ","· ",Z.fileCount," ",Z.fileCount===1?"file":"files"]})]}),s.jsx("span",{className:"commit-picker-sha",children:Z.shortSha})]},Z.sha)})})]}),s.jsxs("footer",{className:"commit-picker-footer",children:[s.jsx("span",{className:"commit-picker-summary",children:re}),s.jsx("button",{className:"secondary-button",type:"button",onClick:()=>h(!1),children:"Cancel"}),s.jsxs("button",{className:"primary-button",disabled:!ve,type:"button",onClick:()=>{if(m==="all"){f({mode:"all"}),h(!1);return}const Z=a9(U,D);Z&&(f(Z),h(!1))},children:[s.jsx(jn,{size:16}),"Save"]})]})]})}),document.body):null]})}function n9(a,u){if(a.mode==="all")return new Set;if(a.mode==="single")return u.some(h=>h.sha===a.sha)?new Set([a.sha]):new Set;const f=u.findIndex(h=>h.sha===a.fromSha),r=u.findIndex(h=>h.sha===a.toSha);return f<0||r<f?new Set:ka(f,r,u)}function U2(a,u){const f=[];for(const[r,h]of u.entries())a.has(h.sha)&&f.push(r);return f}function l9(a,u,f){const r=f.findIndex(y=>y.sha===u);if(r<0)return a;const h=U2(a,f);if(!a.has(u)){const y=h.length>0?Math.min(h[0],r):r,N=h.length>0?Math.max(h[h.length-1],r):r;return ka(y,N,f)}if(h.length<=1)return new Set;const m=h[0],S=h[h.length-1];if(r<=m)return ka(m+1,S,f);if(r>=S)return ka(m,S-1,f);const T=r-m,E=S-r;return T>=E?ka(m,r-1,f):ka(r+1,S,f)}function ka(a,u,f){return a<0||u<a?new Set:new Set(f.slice(a,u+1).map(r=>r.sha))}function a9(a,u){if(a.length===0)return null;const f=a[0],r=a[a.length-1];return f===r?{mode:"single",sha:u[f].sha}:{mode:"range",fromSha:u[f].sha,toSha:u[r].sha}}function i9(a){return a.mode==="all"?{mode:"all"}:a.mode==="single"?{mode:"single",sha:a.sha}:{mode:"range",fromSha:a.fromSha,toSha:a.toSha}}function c9(a){return a.mode==="all"?{mode:"turn"}:a.mode==="single"?{mode:"commit",sha:a.sha}:{mode:"range",fromSha:a.fromSha,toSha:a.toSha}}function s9(a,u){if(a.mode==="all")return"All commits";if(a.mode==="single"){const m=u.find(S=>S.sha===a.sha);return m?`${m.shortSha} ${m.subject}`:"One commit"}const f=u.findIndex(m=>m.sha===a.fromSha),r=u.findIndex(m=>m.sha===a.toSha);return f<0||r<f?"Commit range":`${r-f+1} commits · ${u[f].shortSha} to ${u[r].shortSha}`}function u9(a){const u=new Date(a);if(Number.isNaN(u.getTime()))return"recently";const f=Math.round((u.getTime()-Date.now())/1e3),[r,h]=Fo.find(([,m])=>Math.abs(f)>=m)??Fo[Fo.length-1];return R7.format(Math.round(f/h),r)}function o9({items:a}){return s.jsxs("section",{className:"submitted-general-feedback","aria-labelledby":"submitted-general-title",children:[s.jsxs("header",{className:"submitted-general-feedback-header",children:[s.jsxs("div",{className:"submitted-general-feedback-title",children:[s.jsx(Pl,{size:16}),s.jsx("h2",{id:"submitted-general-title",children:"General feedback"})]}),s.jsx("span",{className:"submitted-general-feedback-count",children:a.length})]}),s.jsx("div",{className:"submitted-general-feedback-list",children:a.map(u=>s.jsxs("article",{className:`submitted-general-feedback-card ${u.status}`,children:[s.jsx("div",{className:"submitted-general-feedback-icon",children:u.status==="resolved"?s.jsx(nr,{size:15}):s.jsx(Pl,{size:15})}),s.jsxs("div",{className:"submitted-general-feedback-content",children:[s.jsx("div",{className:"submitted-general-feedback-meta",children:u.status==="resolved"?"Resolved":"Open · Needs fix"}),s.jsx("p",{className:"submitted-general-feedback-body",children:u.comment.body}),u.summary?s.jsx("p",{className:"submitted-general-feedback-summary",children:u.summary}):null]})]},u.comment.id))})]})}function r9({record:a}){var r;const u=f9(a);if(!u)return null;const f=a.meta.status==="resolved"?a.meta.resolvedAt??((r=a.resolution)==null?void 0:r.resolvedAt):a.meta.submittedAt;return s.jsxs("section",{className:`review-state-banner ${a.meta.status}`,children:[s.jsxs("div",{className:"review-state-title",children:[s.jsx(nr,{size:16}),s.jsx("span",{children:u.title})]}),s.jsx("p",{children:u.body}),f?s.jsx("time",{dateTime:f,children:vr(f)}):null]})}function f9(a){const u=a.meta.status,f=ir(a),r=f.total>0?`${f.resolved} of ${f.total} comments resolved`:null;return u==="submitted"?{title:f.resolved>0&&r?`Submitted · ${r}`:"Submitted",body:f.resolved>0?"Feedback is being handled.":"Feedback has been submitted."}:u==="resolved"?{title:r?`Resolved · ${r}`:"Resolved",body:"This feedback turn is resolved."}:null}function vr(a){return D7.format(new Date(a))}const d9="npx skills add iamrajjoshi/gloss --skill gloss -g -a claude-code",h9=`1. Run gloss open --json from the repo root unless the user names a base ref.
|
|
321
|
+
2. Wait for the browser review to be submitted.
|
|
322
|
+
3. Read feedbackPath from the JSON output.
|
|
323
|
+
4. Address general comments first, then file comments in file and line order.
|
|
324
|
+
5. Validate the fix with the narrowest relevant checks.
|
|
325
|
+
6. Optionally mark individual comments handled:
|
|
326
|
+
gloss resolve <reviewId> --comment <commentId> --summary "<what changed>"
|
|
327
|
+
7. Run gloss resolve <reviewId> --summary "<what changed>", then summarize what changed.`;function m9(){return s.jsxs("main",{className:"setup-page",children:[s.jsxs("nav",{className:"setup-nav","aria-label":"Gloss setup",children:[s.jsxs("a",{className:"marketing-wordmark",href:"/",children:[s.jsx("img",{className:"brand-mark",src:"/logo.svg",alt:"","aria-hidden":"true"}),"Gloss"]}),s.jsx("a",{href:"/setup.md",children:"Raw setup.md"})]}),s.jsxs("header",{className:"setup-header",children:[s.jsx("h1",{children:"Set up Gloss for agent reviews."}),s.jsx("p",{children:"Install the CLI, then add the Gloss instruction block to the file your coding agent already reads."})]}),s.jsxs("section",{className:"setup-section",children:[s.jsx("h2",{children:"Install"}),s.jsx("pre",{children:"brew install iamrajjoshi/tap/gloss"}),s.jsx("pre",{children:"npm install -g getgloss"}),s.jsx("pre",{children:"gloss help"})]}),s.jsxs("section",{className:"setup-section",children:[s.jsx("h2",{children:"Agent Instruction"}),s.jsx("p",{children:"Give a new agent chat this instruction:"}),s.jsx("pre",{children:"Install Gloss with Homebrew or npm. Then read https://getgloss.dev/setup.md."})]}),s.jsxs("section",{className:"setup-section",children:[s.jsx("h2",{children:"Claude Code Skill"}),s.jsxs("p",{children:["Gloss ships a packaged skill at ",s.jsx("code",{children:"skill/SKILL.md"}),". Install it when you want Claude Code to know when and how to use Gloss."]}),s.jsx("pre",{children:d9}),s.jsx("p",{children:"The skill pairs the CLI with the browser app:"}),s.jsx("pre",{children:h9})]}),s.jsxs("section",{className:"setup-section",children:[s.jsx("h2",{children:"Persistent Instructions"}),s.jsx("p",{children:"Add the canonical Gloss block to the instruction file your agent actually loads."}),s.jsx("pre",{children:"curl -fsSL https://getgloss.dev/prompt.md >> /absolute/path/to/AGENTS.md"}),s.jsxs("ul",{children:[s.jsxs("li",{children:["Codex usually reads ",s.jsx("code",{children:"${CODEX_HOME:-$HOME/.codex}/AGENTS.md"}),"."]}),s.jsxs("li",{children:["Claude Code usually reads ",s.jsx("code",{children:"$HOME/.claude/CLAUDE.md"}),"."]}),s.jsxs("li",{children:["Project-local agents often read ",s.jsx("code",{children:"AGENTS.md"})," from the repo root."]})]})]}),s.jsxs("section",{className:"setup-section",children:[s.jsx("h2",{children:"Use"}),s.jsx("pre",{children:"gloss open --json"}),s.jsxs("p",{children:["Leave the command running. Gloss exits after the browser review is submitted and writes feedback under ",s.jsx("code",{children:"~/.gloss/reviews/<reviewId>/"}),"."]}),s.jsxs("p",{children:["In the browser review, ",s.jsx("code",{children:"Command+Enter"})," saves the active draft comment and"," ",s.jsx("code",{children:"Command+Shift+Enter"})," submits already-saved comments."]}),s.jsx("p",{children:"Gloss hides lockfiles by default in the browser review. Use browser-only filters to also hide snapshots, generated code, and vendored code while reviewing."}),s.jsx("p",{children:"Start a fresh session with the same command for follow-up diffs."})]}),s.jsx("section",{className:"setup-note",children:s.jsxs("p",{children:["Agents should read ",s.jsx("a",{href:"/setup.md",children:"/setup.md"}),". This page is the browser-friendly version."]})})]})}function p9(){if(window.location.pathname==="/setup"||window.location.pathname==="/setup/")return s.jsx(m9,{});const a=/^\/review\/([^/]+)/.exec(window.location.pathname);return a?s.jsx(O7,{reviewId:a[1]}):s.jsx(Um,{})}eh.createRoot(document.getElementById("root")).render(s.jsx(Hi.StrictMode,{children:s.jsx(w6,{children:s.jsx(p9,{})})}));export{$n as d};
|