difit 3.0.7 → 3.0.9
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/client/assets/index-TH-zOarE.js +29 -0
- package/dist/client/assets/index-lSHhcKDM.css +1 -0
- package/dist/client/assets/{prism-csharp-Bxkwrybw.js → prism-csharp-5JlCuQ63.js} +1 -1
- package/dist/client/assets/{prism-hcl-B4c-rgZP.js → prism-hcl-DkgRGLsh.js} +1 -1
- package/dist/client/assets/{prism-java-BaWgcwrJ.js → prism-java-DOYF29Lx.js} +1 -1
- package/dist/client/assets/{prism-perl-BIlPfOTw.js → prism-perl-DmKcBdiA.js} +1 -1
- package/dist/client/assets/{prism-php-CCdVrygD.js → prism-php-C9GZ2eMR.js} +1 -1
- package/dist/client/assets/{prism-ruby-Qwd73SkL.js → prism-ruby-C1WcUSv8.js} +1 -1
- package/dist/client/assets/{prism-solidity-BidqoZTv.js → prism-solidity-Bbzna8IW.js} +1 -1
- package/dist/client/index.html +2 -2
- package/package.json +1 -1
- package/dist/client/assets/index-C1vxWJBj.css +0 -1
- package/dist/client/assets/index-D6TcTNFe.js +0 -29
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
function E0(a,r){for(var s=0;s<r.length;s++){const o=r[s];if(typeof o!="string"&&!Array.isArray(o)){for(const c in o)if(c!=="default"&&!(c in a)){const f=Object.getOwnPropertyDescriptor(o,c);f&&Object.defineProperty(a,c,f.get?f:{enumerable:!0,get:()=>o[c]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function s(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(c){if(c.ep)return;c.ep=!0;const f=s(c);fetch(c.href,f)}})();function Im(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Wu={exports:{}},kr={};var Uh;function w0(){if(Uh)return kr;Uh=1;var a=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function s(o,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var p in c)p!=="key"&&(f[p]=c[p])}else f=c;return c=f.ref,{$$typeof:a,type:o,key:d,ref:c!==void 0?c:null,props:f}}return kr.Fragment=r,kr.jsx=s,kr.jsxs=s,kr}var Hh;function N0(){return Hh||(Hh=1,Wu.exports=w0()),Wu.exports}var g=N0(),Pu={exports:{}},Ce={};var Fh;function C0(){if(Fh)return Ce;Fh=1;var a=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),C=Symbol.iterator;function _(j){return j===null||typeof j!="object"?null:(j=C&&j[C]||j["@@iterator"],typeof j=="function"?j:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,T={};function N(j,B,X){this.props=j,this.context=B,this.refs=T,this.updater=X||x}N.prototype.isReactComponent={},N.prototype.setState=function(j,B){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,B,"setState")},N.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function R(){}R.prototype=N.prototype;function D(j,B,X){this.props=j,this.context=B,this.refs=T,this.updater=X||x}var M=D.prototype=new R;M.constructor=D,v(M,N.prototype),M.isPureReactComponent=!0;var F=Array.isArray;function ee(){}var Q={H:null,A:null,T:null,S:null},ce=Object.prototype.hasOwnProperty;function q(j,B,X){var ie=X.ref;return{$$typeof:a,type:j,key:B,ref:ie!==void 0?ie:null,props:X}}function P(j,B){return q(j.type,B,j.props)}function J(j){return typeof j=="object"&&j!==null&&j.$$typeof===a}function K(j){var B={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(X){return B[X]})}var se=/\/+/g;function U(j,B){return typeof j=="object"&&j!==null&&j.key!=null?K(""+j.key):B.toString(36)}function re(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(ee,ee):(j.status="pending",j.then(function(B){j.status==="pending"&&(j.status="fulfilled",j.value=B)},function(B){j.status==="pending"&&(j.status="rejected",j.reason=B)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function E(j,B,X,ie,oe){var fe=typeof j;(fe==="undefined"||fe==="boolean")&&(j=null);var ue=!1;if(j===null)ue=!0;else switch(fe){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(j.$$typeof){case a:case r:ue=!0;break;case S:return ue=j._init,E(ue(j._payload),B,X,ie,oe)}}if(ue)return oe=oe(j),ue=ie===""?"."+U(j,0):ie,F(oe)?(X="",ue!=null&&(X=ue.replace(se,"$&/")+"/"),E(oe,B,X,"",function(ye){return ye})):oe!=null&&(J(oe)&&(oe=P(oe,X+(oe.key==null||j&&j.key===oe.key?"":(""+oe.key).replace(se,"$&/")+"/")+ue)),B.push(oe)),1;ue=0;var ge=ie===""?".":ie+":";if(F(j))for(var de=0;de<j.length;de++)ie=j[de],fe=ge+U(ie,de),ue+=E(ie,B,X,fe,oe);else if(de=_(j),typeof de=="function")for(j=de.call(j),de=0;!(ie=j.next()).done;)ie=ie.value,fe=ge+U(ie,de++),ue+=E(ie,B,X,fe,oe);else if(fe==="object"){if(typeof j.then=="function")return E(re(j),B,X,ie,oe);throw B=String(j),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return ue}function z(j,B,X){if(j==null)return j;var ie=[],oe=0;return E(j,ie,"","",function(fe){return B.call(X,fe,oe++)}),ie}function k(j){if(j._status===-1){var B=j._result;B=B(),B.then(function(X){(j._status===0||j._status===-1)&&(j._status=1,j._result=X)},function(X){(j._status===0||j._status===-1)&&(j._status=2,j._result=X)}),j._status===-1&&(j._status=0,j._result=B)}if(j._status===1)return j._result.default;throw j._result}var I=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},$={map:z,forEach:function(j,B,X){z(j,function(){B.apply(this,arguments)},X)},count:function(j){var B=0;return z(j,function(){B++}),B},toArray:function(j){return z(j,function(B){return B})||[]},only:function(j){if(!J(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return Ce.Activity=y,Ce.Children=$,Ce.Component=N,Ce.Fragment=s,Ce.Profiler=c,Ce.PureComponent=D,Ce.StrictMode=o,Ce.Suspense=b,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(j){return Q.H.useMemoCache(j)}},Ce.cache=function(j){return function(){return j.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(j,B,X){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var ie=v({},j.props),oe=j.key;if(B!=null)for(fe in B.key!==void 0&&(oe=""+B.key),B)!ce.call(B,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&B.ref===void 0||(ie[fe]=B[fe]);var fe=arguments.length-2;if(fe===1)ie.children=X;else if(1<fe){for(var ue=Array(fe),ge=0;ge<fe;ge++)ue[ge]=arguments[ge+2];ie.children=ue}return q(j.type,oe,ie)},Ce.createContext=function(j){return j={$$typeof:d,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:f,_context:j},j},Ce.createElement=function(j,B,X){var ie,oe={},fe=null;if(B!=null)for(ie in B.key!==void 0&&(fe=""+B.key),B)ce.call(B,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(oe[ie]=B[ie]);var ue=arguments.length-2;if(ue===1)oe.children=X;else if(1<ue){for(var ge=Array(ue),de=0;de<ue;de++)ge[de]=arguments[de+2];oe.children=ge}if(j&&j.defaultProps)for(ie in ue=j.defaultProps,ue)oe[ie]===void 0&&(oe[ie]=ue[ie]);return q(j,fe,oe)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(j){return{$$typeof:p,render:j}},Ce.isValidElement=J,Ce.lazy=function(j){return{$$typeof:S,_payload:{_status:-1,_result:j},_init:k}},Ce.memo=function(j,B){return{$$typeof:m,type:j,compare:B===void 0?null:B}},Ce.startTransition=function(j){var B=Q.T,X={};Q.T=X;try{var ie=j(),oe=Q.S;oe!==null&&oe(X,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(ee,I)}catch(fe){I(fe)}finally{B!==null&&X.types!==null&&(B.types=X.types),Q.T=B}},Ce.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},Ce.use=function(j){return Q.H.use(j)},Ce.useActionState=function(j,B,X){return Q.H.useActionState(j,B,X)},Ce.useCallback=function(j,B){return Q.H.useCallback(j,B)},Ce.useContext=function(j){return Q.H.useContext(j)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(j,B){return Q.H.useDeferredValue(j,B)},Ce.useEffect=function(j,B){return Q.H.useEffect(j,B)},Ce.useEffectEvent=function(j){return Q.H.useEffectEvent(j)},Ce.useId=function(){return Q.H.useId()},Ce.useImperativeHandle=function(j,B,X){return Q.H.useImperativeHandle(j,B,X)},Ce.useInsertionEffect=function(j,B){return Q.H.useInsertionEffect(j,B)},Ce.useLayoutEffect=function(j,B){return Q.H.useLayoutEffect(j,B)},Ce.useMemo=function(j,B){return Q.H.useMemo(j,B)},Ce.useOptimistic=function(j,B){return Q.H.useOptimistic(j,B)},Ce.useReducer=function(j,B,X){return Q.H.useReducer(j,B,X)},Ce.useRef=function(j){return Q.H.useRef(j)},Ce.useState=function(j){return Q.H.useState(j)},Ce.useSyncExternalStore=function(j,B,X){return Q.H.useSyncExternalStore(j,B,X)},Ce.useTransition=function(){return Q.H.useTransition()},Ce.version="19.2.3",Ce}var qh;function _c(){return qh||(qh=1,Pu.exports=C0()),Pu.exports}var A=_c();const Vn=Im(A),$m=E0({__proto__:null,default:Vn},[A]);var ec={exports:{}},Dr={},tc={exports:{}},nc={};var Gh;function A0(){return Gh||(Gh=1,(function(a){function r(E,z){var k=E.length;E.push(z);e:for(;0<k;){var I=k-1>>>1,$=E[I];if(0<c($,z))E[I]=z,E[k]=$,k=I;else break e}}function s(E){return E.length===0?null:E[0]}function o(E){if(E.length===0)return null;var z=E[0],k=E.pop();if(k!==z){E[0]=k;e:for(var I=0,$=E.length,j=$>>>1;I<j;){var B=2*(I+1)-1,X=E[B],ie=B+1,oe=E[ie];if(0>c(X,k))ie<$&&0>c(oe,X)?(E[I]=oe,E[ie]=k,I=ie):(E[I]=X,E[B]=k,I=B);else if(ie<$&&0>c(oe,k))E[I]=oe,E[ie]=k,I=ie;else break e}}return z}function c(E,z){var k=E.sortIndex-z.sortIndex;return k!==0?k:E.id-z.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var d=Date,p=d.now();a.unstable_now=function(){return d.now()-p}}var b=[],m=[],S=1,y=null,C=3,_=!1,x=!1,v=!1,T=!1,N=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function M(E){for(var z=s(m);z!==null;){if(z.callback===null)o(m);else if(z.startTime<=E)o(m),z.sortIndex=z.expirationTime,r(b,z);else break;z=s(m)}}function F(E){if(v=!1,M(E),!x)if(s(b)!==null)x=!0,ee||(ee=!0,K());else{var z=s(m);z!==null&&re(F,z.startTime-E)}}var ee=!1,Q=-1,ce=5,q=-1;function P(){return T?!0:!(a.unstable_now()-q<ce)}function J(){if(T=!1,ee){var E=a.unstable_now();q=E;var z=!0;try{e:{x=!1,v&&(v=!1,R(Q),Q=-1),_=!0;var k=C;try{t:{for(M(E),y=s(b);y!==null&&!(y.expirationTime>E&&P());){var I=y.callback;if(typeof I=="function"){y.callback=null,C=y.priorityLevel;var $=I(y.expirationTime<=E);if(E=a.unstable_now(),typeof $=="function"){y.callback=$,M(E),z=!0;break t}y===s(b)&&o(b),M(E)}else o(b);y=s(b)}if(y!==null)z=!0;else{var j=s(m);j!==null&&re(F,j.startTime-E),z=!1}}break e}finally{y=null,C=k,_=!1}z=void 0}}finally{z?K():ee=!1}}}var K;if(typeof D=="function")K=function(){D(J)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,U=se.port2;se.port1.onmessage=J,K=function(){U.postMessage(null)}}else K=function(){N(J,0)};function re(E,z){Q=N(function(){E(a.unstable_now())},z)}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(E){E.callback=null},a.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ce=0<E?Math.floor(1e3/E):5},a.unstable_getCurrentPriorityLevel=function(){return C},a.unstable_next=function(E){switch(C){case 1:case 2:case 3:var z=3;break;default:z=C}var k=C;C=z;try{return E()}finally{C=k}},a.unstable_requestPaint=function(){T=!0},a.unstable_runWithPriority=function(E,z){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var k=C;C=E;try{return z()}finally{C=k}},a.unstable_scheduleCallback=function(E,z,k){var I=a.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?I+k:I):k=I,E){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=k+$,E={id:S++,callback:z,priorityLevel:E,startTime:k,expirationTime:$,sortIndex:-1},k>I?(E.sortIndex=k,r(m,E),s(b)===null&&E===s(m)&&(v?(R(Q),Q=-1):v=!0,re(F,k-I))):(E.sortIndex=$,r(b,E),x||_||(x=!0,ee||(ee=!0,K()))),E},a.unstable_shouldYield=P,a.unstable_wrapCallback=function(E){var z=C;return function(){var k=C;C=z;try{return E.apply(this,arguments)}finally{C=k}}}})(nc)),nc}var Yh;function T0(){return Yh||(Yh=1,tc.exports=A0()),tc.exports}var lc={exports:{}},xt={};var Vh;function R0(){if(Vh)return xt;Vh=1;var a=_c();function r(b){var m="https://react.dev/errors/"+b;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)m+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+b+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(r(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(b,m,S){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:y==null?null:""+y,children:b,containerInfo:m,implementation:S}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(b,m){if(b==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return xt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,xt.createPortal=function(b,m){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(r(299));return f(b,m,null,S)},xt.flushSync=function(b){var m=d.T,S=o.p;try{if(d.T=null,o.p=2,b)return b()}finally{d.T=m,o.p=S,o.d.f()}},xt.preconnect=function(b,m){typeof b=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(b,m))},xt.prefetchDNS=function(b){typeof b=="string"&&o.d.D(b)},xt.preinit=function(b,m){if(typeof b=="string"&&m&&typeof m.as=="string"){var S=m.as,y=p(S,m.crossOrigin),C=typeof m.integrity=="string"?m.integrity:void 0,_=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;S==="style"?o.d.S(b,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:C,fetchPriority:_}):S==="script"&&o.d.X(b,{crossOrigin:y,integrity:C,fetchPriority:_,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},xt.preinitModule=function(b,m){if(typeof b=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var S=p(m.as,m.crossOrigin);o.d.M(b,{crossOrigin:S,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(b)},xt.preload=function(b,m){if(typeof b=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var S=m.as,y=p(S,m.crossOrigin);o.d.L(b,S,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},xt.preloadModule=function(b,m){if(typeof b=="string")if(m){var S=p(m.as,m.crossOrigin);o.d.m(b,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:S,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(b)},xt.requestFormReset=function(b){o.d.r(b)},xt.unstable_batchedUpdates=function(b,m){return b(m)},xt.useFormState=function(b,m,S){return d.H.useFormState(b,m,S)},xt.useFormStatus=function(){return d.H.useHostTransitionStatus()},xt.version="19.2.3",xt}var Xh;function Qm(){if(Xh)return lc.exports;Xh=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(r){console.error(r)}}return a(),lc.exports=R0(),lc.exports}var Zh;function _0(){if(Zh)return Dr;Zh=1;var a=T0(),r=_c(),s=Qm();function o(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 c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(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 d(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 p(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 b(e){if(f(e)!==e)throw Error(o(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,l=t;;){var i=n.return;if(i===null)break;var u=i.alternate;if(u===null){if(l=i.return,l!==null){n=l;continue}break}if(i.child===u.child){for(u=i.child;u;){if(u===n)return b(i),e;if(u===l)return b(i),t;u=u.sibling}throw Error(o(188))}if(n.return!==l.return)n=i,l=u;else{for(var h=!1,w=i.child;w;){if(w===n){h=!0,n=i,l=u;break}if(w===l){h=!0,l=i,n=u;break}w=w.sibling}if(!h){for(w=u.child;w;){if(w===n){h=!0,n=u,l=i;break}if(w===l){h=!0,l=u,n=i;break}w=w.sibling}if(!h)throw Error(o(189))}}if(n.alternate!==l)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,C=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),D=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function K(e){return e===null||typeof e!="object"?null:(e=J&&e[J]||e["@@iterator"],typeof e=="function"?e:null)}var se=Symbol.for("react.client.reference");function U(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case v:return"Fragment";case N:return"Profiler";case T:return"StrictMode";case F:return"Suspense";case ee:return"SuspenseList";case q:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case x:return"Portal";case D:return e.displayName||"Context";case R:return(e._context.displayName||"Context")+".Consumer";case M:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Q:return t=e.displayName||null,t!==null?t:U(e.type)||"Memo";case ce:t=e._payload,e=e._init;try{return U(e(t))}catch{}}return null}var re=Array.isArray,E=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k={pending:!1,data:null,method:null,action:null},I=[],$=-1;function j(e){return{current:e}}function B(e){0>$||(e.current=I[$],I[$]=null,$--)}function X(e,t){$++,I[$]=e.current,e.current=t}var ie=j(null),oe=j(null),fe=j(null),ue=j(null);function ge(e,t){switch(X(fe,t),X(oe,e),X(ie,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?oh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=oh(t),e=sh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(ie),X(ie,e)}function de(){B(ie),B(oe),B(fe)}function ye(e){e.memoizedState!==null&&X(ue,e);var t=ie.current,n=sh(t,e.type);t!==n&&(X(oe,e),X(ie,n))}function Ne(e){oe.current===e&&(B(ie),B(oe)),ue.current===e&&(B(ue),Rr._currentValue=k)}var pe,ke;function xe(e){if(pe===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);pe=t&&t[1]||"",ke=-1<n.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+pe+e+ke}var Ve=!1;function Je(e,t){if(!e||Ve)return"";Ve=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var le=function(){throw Error()};if(Object.defineProperty(le.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(le,[])}catch(Z){var V=Z}Reflect.construct(e,[],le)}else{try{le.call()}catch(Z){V=Z}e.call(le.prototype)}}else{try{throw Error()}catch(Z){V=Z}(le=e())&&typeof le.catch=="function"&&le.catch(function(){})}}catch(Z){if(Z&&V&&typeof Z.stack=="string")return[Z.stack,V.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 u=l.DetermineComponentFrameRoot(),h=u[0],w=u[1];if(h&&w){var O=h.split(`
|
|
4
|
-
`),Y=w.split(`
|
|
5
|
-
`);for(i=l=0;l<O.length&&!O[l].includes("DetermineComponentFrameRoot");)l++;for(;i<Y.length&&!Y[i].includes("DetermineComponentFrameRoot");)i++;if(l===O.length||i===Y.length)for(l=O.length-1,i=Y.length-1;1<=l&&0<=i&&O[l]!==Y[i];)i--;for(;1<=l&&0<=i;l--,i--)if(O[l]!==Y[i]){if(l!==1||i!==1)do if(l--,i--,0>i||O[l]!==Y[i]){var W=`
|
|
6
|
-
`+O[l].replace(" at new "," at ");return e.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",e.displayName)),W}while(1<=l&&0<=i);break}}}finally{Ve=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?xe(n):""}function Me(e,t){switch(e.tag){case 26:case 27:case 5:return xe(e.type);case 16:return xe("Lazy");case 13:return e.child!==t&&t!==null?xe("Suspense Fallback"):xe("Suspense");case 19:return xe("SuspenseList");case 0:case 15:return Je(e.type,!1);case 11:return Je(e.type.render,!1);case 1:return Je(e.type,!0);case 31:return xe("Activity");default:return""}}function Tt(e){try{var t="",n=null;do t+=Me(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
|
|
7
|
-
Error generating stack: `+l.message+`
|
|
8
|
-
`+l.stack}}var ft=Object.prototype.hasOwnProperty,at=a.unstable_scheduleCallback,Rt=a.unstable_cancelCallback,Ht=a.unstable_shouldYield,Ft=a.unstable_requestPaint,$e=a.unstable_now,Cl=a.unstable_getCurrentPriorityLevel,gn=a.unstable_ImmediatePriority,Yr=a.unstable_UserBlockingPriority,Al=a.unstable_NormalPriority,qa=a.unstable_LowPriority,Vr=a.unstable_IdlePriority,Tl=a.log,Xr=a.unstable_setDisableYieldValue,Xn=null,Nt=null;function hn(e){if(typeof Tl=="function"&&Xr(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(Xn,e)}catch{}}var vt=Math.clz32?Math.clz32:Fo,Ho=Math.log,Zr=Math.LN2;function Fo(e){return e>>>=0,e===0?32:31-(Ho(e)/Zr|0)|0}var Kl=256,Jl=262144,ae=4194304;function ve(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function be(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var i=0,u=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var w=l&134217727;return w!==0?(l=w&~u,l!==0?i=ve(l):(h&=w,h!==0?i=ve(h):n||(n=w&~e,n!==0&&(i=ve(n))))):(w=l&~u,w!==0?i=ve(w):h!==0?i=ve(h):n||(n=l&~e,n!==0&&(i=ve(n)))),i===0?0:t!==0&&t!==i&&(t&u)===0&&(u=i&-i,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:i}function we(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function We(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 un(){var e=ae;return ae<<=1,(ae&62914560)===0&&(ae=4194304),e}function Zn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ga(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function cb(e,t,n,l,i,u){var h=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 w=e.entanglements,O=e.expirationTimes,Y=e.hiddenUpdates;for(n=h&~n;0<n;){var W=31-vt(n),le=1<<W;w[W]=0,O[W]=-1;var V=Y[W];if(V!==null)for(Y[W]=null,W=0;W<V.length;W++){var Z=V[W];Z!==null&&(Z.lane&=-536870913)}n&=~le}l!==0&&Gc(e,l,0),u!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=u&~(h&~t))}function Gc(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-vt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Yc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-vt(n),i=1<<l;i&t|e[l]&t&&(e[l]|=t),n&=~i}}function Vc(e,t){var n=t&-t;return n=(n&42)!==0?1:qo(n),(n&(e.suspendedLanes|t))!==0?0:n}function qo(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 Go(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Xc(){var e=z.p;return e!==0?e:(e=window.event,e===void 0?32:Oh(e.type))}function Zc(e,t){var n=z.p;try{return z.p=e,t()}finally{z.p=n}}var In=Math.random().toString(36).slice(2),ht="__reactFiber$"+In,_t="__reactProps$"+In,Wl="__reactContainer$"+In,Yo="__reactEvents$"+In,fb="__reactListeners$"+In,db="__reactHandles$"+In,Ic="__reactResources$"+In,Ya="__reactMarker$"+In;function Vo(e){delete e[ht],delete e[_t],delete e[Yo],delete e[fb],delete e[db]}function Pl(e){var t=e[ht];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Wl]||n[ht]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mh(e);e!==null;){if(n=e[ht])return n;e=mh(e)}return t}e=n,n=e.parentNode}return null}function ea(e){if(e=e[ht]||e[Wl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Va(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function ta(e){var t=e[Ic];return t||(t=e[Ic]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function dt(e){e[Ya]=!0}var $c=new Set,Qc={};function Rl(e,t){na(e,t),na(e+"Capture",t)}function na(e,t){for(Qc[e]=t,e=0;e<t.length;e++)$c.add(t[e])}var gb=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]*$"),Kc={},Jc={};function hb(e){return ft.call(Jc,e)?!0:ft.call(Kc,e)?!1:gb.test(e)?Jc[e]=!0:(Kc[e]=!0,!1)}function Ir(e,t,n){if(hb(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 $r(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function En(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Jt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mb(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,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(h){n=""+h,u.call(this,h)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(h){n=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xo(e){if(!e._valueTracker){var t=Wc(e)?"checked":"value";e._valueTracker=mb(e,t,""+e[t])}}function Pc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=Wc(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Qr(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 pb=/[\n"\\]/g;function Wt(e){return e.replace(pb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Zo(e,t,n,l,i,u,h,w){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Jt(t)):e.value!==""+Jt(t)&&(e.value=""+Jt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Io(e,h,Jt(t)):n!=null?Io(e,h,Jt(n)):l!=null&&e.removeAttribute("value"),i==null&&u!=null&&(e.defaultChecked=!!u),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+Jt(w):e.removeAttribute("name")}function ef(e,t,n,l,i,u,h,w){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Xo(e);return}n=n!=null?""+Jt(n):"",t=t!=null?""+Jt(t):n,w||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=w?e.checked:!!l,e.defaultChecked=!!l,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Xo(e)}function Io(e,t,n){t==="number"&&Qr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function la(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=""+Jt(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 tf(e,t,n){if(t!=null&&(t=""+Jt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Jt(n):""}function nf(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(o(92));if(re(l)){if(1<l.length)throw Error(o(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Jt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),Xo(e)}function aa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bb=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 lf(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||bb.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function af(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(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&&lf(e,i,l)}else for(var u in t)t.hasOwnProperty(u)&&lf(e,u,t[u])}function $o(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 yb=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"]]),vb=/^[\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 Kr(e){return vb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function wn(){}var Qo=null;function Ko(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ra=null,ia=null;function rf(e){var t=ea(e);if(t&&(e=t.stateNode)){var n=e[_t]||null;e:switch(e=t.stateNode,t.type){case"input":if(Zo(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="'+Wt(""+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(o(90));Zo(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&&Pc(l)}break e;case"textarea":tf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&la(e,!!n.multiple,t,!1)}}}var Jo=!1;function of(e,t,n){if(Jo)return e(t,n);Jo=!0;try{var l=e(t);return l}finally{if(Jo=!1,(ra!==null||ia!==null)&&(Bi(),ra&&(t=ra,e=ia,ia=ra=null,rf(t),e)))for(t=0;t<e.length;t++)rf(e[t])}}function Xa(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(o(231,t,typeof n));return n}var Nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wo=!1;if(Nn)try{var Za={};Object.defineProperty(Za,"passive",{get:function(){Wo=!0}}),window.addEventListener("test",Za,Za),window.removeEventListener("test",Za,Za)}catch{Wo=!1}var $n=null,Po=null,Jr=null;function sf(){if(Jr)return Jr;var e,t=Po,n=t.length,l,i="value"in $n?$n.value:$n.textContent,u=i.length;for(e=0;e<n&&t[e]===i[e];e++);var h=n-e;for(l=1;l<=h&&t[n-l]===i[u-l];l++);return Jr=i.slice(e,1<l?1-l:void 0)}function Wr(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 Pr(){return!0}function uf(){return!1}function jt(e){function t(n,l,i,u,h){this._reactName=n,this._targetInst=i,this.type=l,this.nativeEvent=u,this.target=h,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(n=e[w],this[w]=n?n(u):u[w]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Pr:uf,this.isPropagationStopped=uf,this}return y(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=Pr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Pr)},persist:function(){},isPersistent:Pr}),t}var _l={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ei=jt(_l),Ia=y({},_l,{view:0,detail:0}),xb=jt(Ia),es,ts,$a,ti=y({},Ia,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ls,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!==$a&&($a&&e.type==="mousemove"?(es=e.screenX-$a.screenX,ts=e.screenY-$a.screenY):ts=es=0,$a=e),es)},movementY:function(e){return"movementY"in e?e.movementY:ts}}),cf=jt(ti),Sb=y({},ti,{dataTransfer:0}),Eb=jt(Sb),wb=y({},Ia,{relatedTarget:0}),ns=jt(wb),Nb=y({},_l,{animationName:0,elapsedTime:0,pseudoElement:0}),Cb=jt(Nb),Ab=y({},_l,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Tb=jt(Ab),Rb=y({},_l,{data:0}),ff=jt(Rb),_b={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jb={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"},Ob={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ob[e])?!!t[e]:!1}function ls(){return kb}var Db=y({},Ia,{key:function(e){if(e.key){var t=_b[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?jb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ls,charCode:function(e){return e.type==="keypress"?Wr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Mb=jt(Db),zb=y({},ti,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),df=jt(zb),Lb=y({},Ia,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ls}),Bb=jt(Lb),Ub=y({},_l,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hb=jt(Ub),Fb=y({},ti,{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}),qb=jt(Fb),Gb=y({},_l,{newState:0,oldState:0}),Yb=jt(Gb),Vb=[9,13,27,32],as=Nn&&"CompositionEvent"in window,Qa=null;Nn&&"documentMode"in document&&(Qa=document.documentMode);var Xb=Nn&&"TextEvent"in window&&!Qa,gf=Nn&&(!as||Qa&&8<Qa&&11>=Qa),hf=" ",mf=!1;function pf(e,t){switch(e){case"keyup":return Vb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oa=!1;function Zb(e,t){switch(e){case"compositionend":return bf(t);case"keypress":return t.which!==32?null:(mf=!0,hf);case"textInput":return e=t.data,e===hf&&mf?null:e;default:return null}}function Ib(e,t){if(oa)return e==="compositionend"||!as&&pf(e,t)?(e=sf(),Jr=Po=$n=null,oa=!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 gf&&t.locale!=="ko"?null:t.data;default:return null}}var $b={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 yf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$b[e.type]:t==="textarea"}function vf(e,t,n,l){ra?ia?ia.push(l):ia=[l]:ra=l,t=Vi(t,"onChange"),0<t.length&&(n=new ei("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Ka=null,Ja=null;function Qb(e){th(e,0)}function ni(e){var t=Va(e);if(Pc(t))return e}function xf(e,t){if(e==="change")return t}var Sf=!1;if(Nn){var rs;if(Nn){var is="oninput"in document;if(!is){var Ef=document.createElement("div");Ef.setAttribute("oninput","return;"),is=typeof Ef.oninput=="function"}rs=is}else rs=!1;Sf=rs&&(!document.documentMode||9<document.documentMode)}function wf(){Ka&&(Ka.detachEvent("onpropertychange",Nf),Ja=Ka=null)}function Nf(e){if(e.propertyName==="value"&&ni(Ja)){var t=[];vf(t,Ja,e,Ko(e)),of(Qb,t)}}function Kb(e,t,n){e==="focusin"?(wf(),Ka=t,Ja=n,Ka.attachEvent("onpropertychange",Nf)):e==="focusout"&&wf()}function Jb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ni(Ja)}function Wb(e,t){if(e==="click")return ni(t)}function Pb(e,t){if(e==="input"||e==="change")return ni(t)}function ey(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qt=typeof Object.is=="function"?Object.is:ey;function Wa(e,t){if(qt(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(!ft.call(t,i)||!qt(e[i],t[i]))return!1}return!0}function Cf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Af(e,t){var n=Cf(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=Cf(n)}}function Tf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Tf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qr(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=Qr(e.document)}return t}function os(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 ty=Nn&&"documentMode"in document&&11>=document.documentMode,sa=null,ss=null,Pa=null,us=!1;function _f(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;us||sa==null||sa!==Qr(l)||(l=sa,"selectionStart"in l&&os(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}),Pa&&Wa(Pa,l)||(Pa=l,l=Vi(ss,"onSelect"),0<l.length&&(t=new ei("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=sa)))}function jl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ua={animationend:jl("Animation","AnimationEnd"),animationiteration:jl("Animation","AnimationIteration"),animationstart:jl("Animation","AnimationStart"),transitionrun:jl("Transition","TransitionRun"),transitionstart:jl("Transition","TransitionStart"),transitioncancel:jl("Transition","TransitionCancel"),transitionend:jl("Transition","TransitionEnd")},cs={},jf={};Nn&&(jf=document.createElement("div").style,"AnimationEvent"in window||(delete ua.animationend.animation,delete ua.animationiteration.animation,delete ua.animationstart.animation),"TransitionEvent"in window||delete ua.transitionend.transition);function Ol(e){if(cs[e])return cs[e];if(!ua[e])return e;var t=ua[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in jf)return cs[e]=t[n];return e}var Of=Ol("animationend"),kf=Ol("animationiteration"),Df=Ol("animationstart"),ny=Ol("transitionrun"),ly=Ol("transitionstart"),ay=Ol("transitioncancel"),Mf=Ol("transitionend"),zf=new Map,fs="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(" ");fs.push("scrollEnd");function cn(e,t){zf.set(e,t),Rl(t,[e])}var li=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=[],ca=0,ds=0;function ai(){for(var e=ca,t=ds=ca=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 u=Pt[t];if(Pt[t++]=null,l!==null&&i!==null){var h=l.pending;h===null?i.next=i:(i.next=h.next,h.next=i),l.pending=i}u!==0&&Lf(n,i,u)}}function ri(e,t,n,l){Pt[ca++]=e,Pt[ca++]=t,Pt[ca++]=n,Pt[ca++]=l,ds|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function gs(e,t,n,l){return ri(e,t,n,l),ii(e)}function kl(e,t){return ri(e,null,null,t),ii(e)}function Lf(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var i=!1,u=e.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(i=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,i&&t!==null&&(i=31-vt(n),e=u.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=n|536870912),u):null}function ii(e){if(50<Sr)throw Sr=0,Eu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fa={};function ry(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 Gt(e,t,n,l){return new ry(e,t,n,l)}function hs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Cn(e,t){var n=e.alternate;return n===null?(n=Gt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Bf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function oi(e,t,n,l,i,u){var h=0;if(l=e,typeof e=="function")hs(e)&&(h=1);else if(typeof e=="string")h=c0(e,n,ie.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case q:return e=Gt(31,n,t,i),e.elementType=q,e.lanes=u,e;case v:return Dl(n.children,i,u,t);case T:h=8,i|=24;break;case N:return e=Gt(12,n,t,i|2),e.elementType=N,e.lanes=u,e;case F:return e=Gt(13,n,t,i),e.elementType=F,e.lanes=u,e;case ee:return e=Gt(19,n,t,i),e.elementType=ee,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:h=10;break e;case R:h=9;break e;case M:h=11;break e;case Q:h=14;break e;case ce:h=16,l=null;break e}h=29,n=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=Gt(h,n,t,i),t.elementType=e,t.type=l,t.lanes=u,t}function Dl(e,t,n,l){return e=Gt(7,e,l,t),e.lanes=n,e}function ms(e,t,n){return e=Gt(6,e,null,t),e.lanes=n,e}function Uf(e){var t=Gt(18,null,null,0);return t.stateNode=e,t}function ps(e,t,n){return t=Gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Hf=new WeakMap;function en(e,t){if(typeof e=="object"&&e!==null){var n=Hf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Tt(t)},Hf.set(e,t),t)}return{value:e,source:t,stack:Tt(t)}}var da=[],ga=0,si=null,er=0,tn=[],nn=0,Qn=null,mn=1,pn="";function An(e,t){da[ga++]=er,da[ga++]=si,si=e,er=t}function Ff(e,t,n){tn[nn++]=mn,tn[nn++]=pn,tn[nn++]=Qn,Qn=e;var l=mn;e=pn;var i=32-vt(l)-1;l&=~(1<<i),n+=1;var u=32-vt(t)+i;if(30<u){var h=i-i%5;u=(l&(1<<h)-1).toString(32),l>>=h,i-=h,mn=1<<32-vt(t)+i|n<<i|l,pn=u+e}else mn=1<<u|n<<i|l,pn=e}function bs(e){e.return!==null&&(An(e,1),Ff(e,1,0))}function ys(e){for(;e===si;)si=da[--ga],da[ga]=null,er=da[--ga],da[ga]=null;for(;e===Qn;)Qn=tn[--nn],tn[nn]=null,pn=tn[--nn],tn[nn]=null,mn=tn[--nn],tn[nn]=null}function qf(e,t){tn[nn++]=mn,tn[nn++]=pn,tn[nn++]=Qn,mn=t.id,pn=t.overflow,Qn=e}var mt=null,Qe=null,De=!1,Kn=null,ln=!1,vs=Error(o(519));function Jn(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw tr(en(t,e)),vs}function Gf(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[ht]=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<wr.length;n++)_e(wr[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),ef(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),nf(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||rh(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=wn),t=!0):t=!1,t||Jn(e,!0)}function Yf(e){for(mt=e.return;mt;)switch(mt.tag){case 5:case 31:case 13:ln=!1;return;case 27:case 3:ln=!0;return;default:mt=mt.return}}function ha(e){if(e!==mt)return!1;if(!De)return Yf(e),De=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Bu(e.type,e.memoizedProps)),n=!n),n&&Qe&&Jn(e),Yf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Qe=hh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Qe=hh(e)}else t===27?(t=Qe,fl(e.type)?(e=Gu,Gu=null,Qe=e):Qe=t):Qe=mt?rn(e.stateNode.nextSibling):null;return!0}function Ml(){Qe=mt=null,De=!1}function xs(){var e=Kn;return e!==null&&(Mt===null?Mt=e:Mt.push.apply(Mt,e),Kn=null),e}function tr(e){Kn===null?Kn=[e]:Kn.push(e)}var Ss=j(null),zl=null,Tn=null;function Wn(e,t,n){X(Ss,t._currentValue),t._currentValue=n}function Rn(e){e._currentValue=Ss.current,B(Ss)}function Es(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 ws(e,t,n,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var u=i.dependencies;if(u!==null){var h=i.child;u=u.firstContext;e:for(;u!==null;){var w=u;u=i;for(var O=0;O<t.length;O++)if(w.context===t[O]){u.lanes|=n,w=u.alternate,w!==null&&(w.lanes|=n),Es(u.return,n,e),l||(h=null);break e}u=w.next}}else if(i.tag===18){if(h=i.return,h===null)throw Error(o(341));h.lanes|=n,u=h.alternate,u!==null&&(u.lanes|=n),Es(h,n,e),h=null}else h=i.child;if(h!==null)h.return=i;else for(h=i;h!==null;){if(h===e){h=null;break}if(i=h.sibling,i!==null){i.return=h.return,h=i;break}h=h.return}i=h}}function ma(e,t,n,l){e=null;for(var i=t,u=!1;i!==null;){if(!u){if((i.flags&524288)!==0)u=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var h=i.alternate;if(h===null)throw Error(o(387));if(h=h.memoizedProps,h!==null){var w=i.type;qt(i.pendingProps.value,h.value)||(e!==null?e.push(w):e=[w])}}else if(i===ue.current){if(h=i.alternate,h===null)throw Error(o(387));h.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Rr):e=[Rr])}i=i.return}e!==null&&ws(t,e,n,l),t.flags|=262144}function ui(e){for(e=e.firstContext;e!==null;){if(!qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ll(e){zl=e,Tn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return Vf(zl,e)}function ci(e,t){return zl===null&&Ll(e),Vf(e,t)}function Vf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Tn===null){if(e===null)throw Error(o(308));Tn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Tn=Tn.next=t;return n}var iy=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()})}},oy=a.unstable_scheduleCallback,sy=a.unstable_NormalPriority,rt={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ns(){return{controller:new iy,data:new Map,refCount:0}}function nr(e){e.refCount--,e.refCount===0&&oy(sy,function(){e.controller.abort()})}var lr=null,Cs=0,pa=0,ba=null;function uy(e,t){if(lr===null){var n=lr=[];Cs=0,pa=Ru(),ba={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Cs++,t.then(Xf,Xf),t}function Xf(){if(--Cs===0&&lr!==null){ba!==null&&(ba.status="fulfilled");var e=lr;lr=null,pa=0,ba=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function cy(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 Zf=E.S;E.S=function(e,t){_g=$e(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&uy(e,t),Zf!==null&&Zf(e,t)};var Bl=j(null);function As(){var e=Bl.current;return e!==null?e:Xe.pooledCache}function fi(e,t){t===null?X(Bl,Bl.current):X(Bl,t.pool)}function If(){var e=As();return e===null?null:{parent:rt._currentValue,pool:e}}var ya=Error(o(460)),Ts=Error(o(474)),di=Error(o(542)),gi={then:function(){}};function $f(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Qf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(wn,wn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jf(e),e;default:if(typeof t.status=="string")t.then(wn,wn);else{if(e=Xe,e!==null&&100<e.shellSuspendCounter)throw Error(o(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,Jf(e),e}throw Hl=t,ya}}function Ul(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Hl=n,ya):n}}var Hl=null;function Kf(){if(Hl===null)throw Error(o(459));var e=Hl;return Hl=null,e}function Jf(e){if(e===ya||e===di)throw Error(o(483))}var va=null,ar=0;function hi(e){var t=ar;return ar+=1,va===null&&(va=[]),Qf(va,e,t)}function rr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function mi(e,t){throw t.$$typeof===C?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Wf(e){function t(H,L){if(e){var G=H.deletions;G===null?(H.deletions=[L],H.flags|=16):G.push(L)}}function n(H,L){if(!e)return null;for(;L!==null;)t(H,L),L=L.sibling;return null}function l(H){for(var L=new Map;H!==null;)H.key!==null?L.set(H.key,H):L.set(H.index,H),H=H.sibling;return L}function i(H,L){return H=Cn(H,L),H.index=0,H.sibling=null,H}function u(H,L,G){return H.index=G,e?(G=H.alternate,G!==null?(G=G.index,G<L?(H.flags|=67108866,L):G):(H.flags|=67108866,L)):(H.flags|=1048576,L)}function h(H){return e&&H.alternate===null&&(H.flags|=67108866),H}function w(H,L,G,te){return L===null||L.tag!==6?(L=ms(G,H.mode,te),L.return=H,L):(L=i(L,G),L.return=H,L)}function O(H,L,G,te){var Se=G.type;return Se===v?W(H,L,G.props.children,te,G.key):L!==null&&(L.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===ce&&Ul(Se)===L.type)?(L=i(L,G.props),rr(L,G),L.return=H,L):(L=oi(G.type,G.key,G.props,null,H.mode,te),rr(L,G),L.return=H,L)}function Y(H,L,G,te){return L===null||L.tag!==4||L.stateNode.containerInfo!==G.containerInfo||L.stateNode.implementation!==G.implementation?(L=ps(G,H.mode,te),L.return=H,L):(L=i(L,G.children||[]),L.return=H,L)}function W(H,L,G,te,Se){return L===null||L.tag!==7?(L=Dl(G,H.mode,te,Se),L.return=H,L):(L=i(L,G),L.return=H,L)}function le(H,L,G){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=ms(""+L,H.mode,G),L.return=H,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case _:return G=oi(L.type,L.key,L.props,null,H.mode,G),rr(G,L),G.return=H,G;case x:return L=ps(L,H.mode,G),L.return=H,L;case ce:return L=Ul(L),le(H,L,G)}if(re(L)||K(L))return L=Dl(L,H.mode,G,null),L.return=H,L;if(typeof L.then=="function")return le(H,hi(L),G);if(L.$$typeof===D)return le(H,ci(H,L),G);mi(H,L)}return null}function V(H,L,G,te){var Se=L!==null?L.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return Se!==null?null:w(H,L,""+G,te);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case _:return G.key===Se?O(H,L,G,te):null;case x:return G.key===Se?Y(H,L,G,te):null;case ce:return G=Ul(G),V(H,L,G,te)}if(re(G)||K(G))return Se!==null?null:W(H,L,G,te,null);if(typeof G.then=="function")return V(H,L,hi(G),te);if(G.$$typeof===D)return V(H,L,ci(H,G),te);mi(H,G)}return null}function Z(H,L,G,te,Se){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return H=H.get(G)||null,w(L,H,""+te,Se);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case _:return H=H.get(te.key===null?G:te.key)||null,O(L,H,te,Se);case x:return H=H.get(te.key===null?G:te.key)||null,Y(L,H,te,Se);case ce:return te=Ul(te),Z(H,L,G,te,Se)}if(re(te)||K(te))return H=H.get(G)||null,W(L,H,te,Se,null);if(typeof te.then=="function")return Z(H,L,G,hi(te),Se);if(te.$$typeof===D)return Z(H,L,G,ci(L,te),Se);mi(L,te)}return null}function he(H,L,G,te){for(var Se=null,ze=null,me=L,Te=L=0,Oe=null;me!==null&&Te<G.length;Te++){me.index>Te?(Oe=me,me=null):Oe=me.sibling;var Le=V(H,me,G[Te],te);if(Le===null){me===null&&(me=Oe);break}e&&me&&Le.alternate===null&&t(H,me),L=u(Le,L,Te),ze===null?Se=Le:ze.sibling=Le,ze=Le,me=Oe}if(Te===G.length)return n(H,me),De&&An(H,Te),Se;if(me===null){for(;Te<G.length;Te++)me=le(H,G[Te],te),me!==null&&(L=u(me,L,Te),ze===null?Se=me:ze.sibling=me,ze=me);return De&&An(H,Te),Se}for(me=l(me);Te<G.length;Te++)Oe=Z(me,H,Te,G[Te],te),Oe!==null&&(e&&Oe.alternate!==null&&me.delete(Oe.key===null?Te:Oe.key),L=u(Oe,L,Te),ze===null?Se=Oe:ze.sibling=Oe,ze=Oe);return e&&me.forEach(function(pl){return t(H,pl)}),De&&An(H,Te),Se}function Ee(H,L,G,te){if(G==null)throw Error(o(151));for(var Se=null,ze=null,me=L,Te=L=0,Oe=null,Le=G.next();me!==null&&!Le.done;Te++,Le=G.next()){me.index>Te?(Oe=me,me=null):Oe=me.sibling;var pl=V(H,me,Le.value,te);if(pl===null){me===null&&(me=Oe);break}e&&me&&pl.alternate===null&&t(H,me),L=u(pl,L,Te),ze===null?Se=pl:ze.sibling=pl,ze=pl,me=Oe}if(Le.done)return n(H,me),De&&An(H,Te),Se;if(me===null){for(;!Le.done;Te++,Le=G.next())Le=le(H,Le.value,te),Le!==null&&(L=u(Le,L,Te),ze===null?Se=Le:ze.sibling=Le,ze=Le);return De&&An(H,Te),Se}for(me=l(me);!Le.done;Te++,Le=G.next())Le=Z(me,H,Te,Le.value,te),Le!==null&&(e&&Le.alternate!==null&&me.delete(Le.key===null?Te:Le.key),L=u(Le,L,Te),ze===null?Se=Le:ze.sibling=Le,ze=Le);return e&&me.forEach(function(S0){return t(H,S0)}),De&&An(H,Te),Se}function Ge(H,L,G,te){if(typeof G=="object"&&G!==null&&G.type===v&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case _:e:{for(var Se=G.key;L!==null;){if(L.key===Se){if(Se=G.type,Se===v){if(L.tag===7){n(H,L.sibling),te=i(L,G.props.children),te.return=H,H=te;break e}}else if(L.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===ce&&Ul(Se)===L.type){n(H,L.sibling),te=i(L,G.props),rr(te,G),te.return=H,H=te;break e}n(H,L);break}else t(H,L);L=L.sibling}G.type===v?(te=Dl(G.props.children,H.mode,te,G.key),te.return=H,H=te):(te=oi(G.type,G.key,G.props,null,H.mode,te),rr(te,G),te.return=H,H=te)}return h(H);case x:e:{for(Se=G.key;L!==null;){if(L.key===Se)if(L.tag===4&&L.stateNode.containerInfo===G.containerInfo&&L.stateNode.implementation===G.implementation){n(H,L.sibling),te=i(L,G.children||[]),te.return=H,H=te;break e}else{n(H,L);break}else t(H,L);L=L.sibling}te=ps(G,H.mode,te),te.return=H,H=te}return h(H);case ce:return G=Ul(G),Ge(H,L,G,te)}if(re(G))return he(H,L,G,te);if(K(G)){if(Se=K(G),typeof Se!="function")throw Error(o(150));return G=Se.call(G),Ee(H,L,G,te)}if(typeof G.then=="function")return Ge(H,L,hi(G),te);if(G.$$typeof===D)return Ge(H,L,ci(H,G),te);mi(H,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,L!==null&&L.tag===6?(n(H,L.sibling),te=i(L,G),te.return=H,H=te):(n(H,L),te=ms(G,H.mode,te),te.return=H,H=te),h(H)):n(H,L)}return function(H,L,G,te){try{ar=0;var Se=Ge(H,L,G,te);return va=null,Se}catch(me){if(me===ya||me===di)throw me;var ze=Gt(29,me,null,H.mode);return ze.lanes=te,ze.return=H,ze}}}var Fl=Wf(!0),Pf=Wf(!1),Pn=!1;function Rs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _s(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 el(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function tl(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Be&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=ii(e),Lf(e,null,n),t}return ri(e,l,t,n),ii(e)}function ir(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,Yc(e,n)}}function js(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var i=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?i=u=h:u=u.next=h,n=n.next}while(n!==null);u===null?i=u=t:u=u.next=t}else i=u=t;n={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:u,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 Os=!1;function or(){if(Os){var e=ba;if(e!==null)throw e}}function sr(e,t,n,l){Os=!1;var i=e.updateQueue;Pn=!1;var u=i.firstBaseUpdate,h=i.lastBaseUpdate,w=i.shared.pending;if(w!==null){i.shared.pending=null;var O=w,Y=O.next;O.next=null,h===null?u=Y:h.next=Y,h=O;var W=e.alternate;W!==null&&(W=W.updateQueue,w=W.lastBaseUpdate,w!==h&&(w===null?W.firstBaseUpdate=Y:w.next=Y,W.lastBaseUpdate=O))}if(u!==null){var le=i.baseState;h=0,W=Y=O=null,w=u;do{var V=w.lane&-536870913,Z=V!==w.lane;if(Z?(je&V)===V:(l&V)===V){V!==0&&V===pa&&(Os=!0),W!==null&&(W=W.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var he=e,Ee=w;V=t;var Ge=n;switch(Ee.tag){case 1:if(he=Ee.payload,typeof he=="function"){le=he.call(Ge,le,V);break e}le=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=Ee.payload,V=typeof he=="function"?he.call(Ge,le,V):he,V==null)break e;le=y({},le,V);break e;case 2:Pn=!0}}V=w.callback,V!==null&&(e.flags|=64,Z&&(e.flags|=8192),Z=i.callbacks,Z===null?i.callbacks=[V]:Z.push(V))}else Z={lane:V,tag:w.tag,payload:w.payload,callback:w.callback,next:null},W===null?(Y=W=Z,O=le):W=W.next=Z,h|=V;if(w=w.next,w===null){if(w=i.shared.pending,w===null)break;Z=w,w=Z.next,Z.next=null,i.lastBaseUpdate=Z,i.shared.pending=null}}while(!0);W===null&&(O=le),i.baseState=O,i.firstBaseUpdate=Y,i.lastBaseUpdate=W,u===null&&(i.shared.lanes=0),il|=h,e.lanes=h,e.memoizedState=le}}function ed(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function td(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)ed(n[e],t)}var xa=j(null),pi=j(0);function nd(e,t){e=Bn,X(pi,e),X(xa,t),Bn=e|t.baseLanes}function ks(){X(pi,Bn),X(xa,xa.current)}function Ds(){Bn=pi.current,B(xa),B(pi)}var Yt=j(null),an=null;function nl(e){var t=e.alternate;X(nt,nt.current&1),X(Yt,e),an===null&&(t===null||xa.current!==null||t.memoizedState!==null)&&(an=e)}function Ms(e){X(nt,nt.current),X(Yt,e),an===null&&(an=e)}function ld(e){e.tag===22?(X(nt,nt.current),X(Yt,e),an===null&&(an=e)):ll()}function ll(){X(nt,nt.current),X(Yt,Yt.current)}function Vt(e){B(Yt),an===e&&(an=null),B(nt)}var nt=j(0);function bi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Fu(n)||qu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _n=0,Ae=null,Fe=null,it=null,yi=!1,Sa=!1,ql=!1,vi=0,ur=0,Ea=null,fy=0;function et(){throw Error(o(321))}function zs(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qt(e[n],t[n]))return!1;return!0}function Ls(e,t,n,l,i,u){return _n=u,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,E.H=e===null||e.memoizedState===null?Fd:Js,ql=!1,u=n(l,i),ql=!1,Sa&&(u=rd(t,n,l,i)),ad(e),u}function ad(e){E.H=dr;var t=Fe!==null&&Fe.next!==null;if(_n=0,it=Fe=Ae=null,yi=!1,ur=0,Ea=null,t)throw Error(o(300));e===null||ot||(e=e.dependencies,e!==null&&ui(e)&&(ot=!0))}function rd(e,t,n,l){Ae=e;var i=0;do{if(Sa&&(Ea=null),ur=0,Sa=!1,25<=i)throw Error(o(301));if(i+=1,it=Fe=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}E.H=qd,u=t(n,l)}while(Sa);return u}function dy(){var e=E.H,t=e.useState()[0];return t=typeof t.then=="function"?cr(t):t,e=e.useState()[0],(Fe!==null?Fe.memoizedState:null)!==e&&(Ae.flags|=1024),t}function Bs(){var e=vi!==0;return vi=0,e}function Us(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Hs(e){if(yi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}yi=!1}_n=0,it=Fe=Ae=null,Sa=!1,ur=vi=0,Ea=null}function Ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?Ae.memoizedState=it=e:it=it.next=e,it}function lt(){if(Fe===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=Fe.next;var t=it===null?Ae.memoizedState:it.next;if(t!==null)it=t,Fe=e;else{if(e===null)throw Ae.alternate===null?Error(o(467)):Error(o(310));Fe=e,e={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},it===null?Ae.memoizedState=it=e:it=it.next=e}return it}function xi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cr(e){var t=ur;return ur+=1,Ea===null&&(Ea=[]),e=Qf(Ea,e,t),t=Ae,(it===null?t.memoizedState:it.next)===null&&(t=t.alternate,E.H=t===null||t.memoizedState===null?Fd:Js),e}function Si(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return cr(e);if(e.$$typeof===D)return pt(e)}throw Error(o(438,String(e)))}function Fs(e){var t=null,n=Ae.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Ae.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=xi(),Ae.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]=P;return t.index++,n}function jn(e,t){return typeof t=="function"?t(e):t}function Ei(e){var t=lt();return qs(t,Fe,e)}function qs(e,t,n){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=n;var i=e.baseQueue,u=l.pending;if(u!==null){if(i!==null){var h=i.next;i.next=u.next,u.next=h}t.baseQueue=i=u,l.pending=null}if(u=e.baseState,i===null)e.memoizedState=u;else{t=i.next;var w=h=null,O=null,Y=t,W=!1;do{var le=Y.lane&-536870913;if(le!==Y.lane?(je&le)===le:(_n&le)===le){var V=Y.revertLane;if(V===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),le===pa&&(W=!0);else if((_n&V)===V){Y=Y.next,V===pa&&(W=!0);continue}else le={lane:0,revertLane:Y.revertLane,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},O===null?(w=O=le,h=u):O=O.next=le,Ae.lanes|=V,il|=V;le=Y.action,ql&&n(u,le),u=Y.hasEagerState?Y.eagerState:n(u,le)}else V={lane:le,revertLane:Y.revertLane,gesture:Y.gesture,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},O===null?(w=O=V,h=u):O=O.next=V,Ae.lanes|=le,il|=le;Y=Y.next}while(Y!==null&&Y!==t);if(O===null?h=u:O.next=w,!qt(u,e.memoizedState)&&(ot=!0,W&&(n=ba,n!==null)))throw n;e.memoizedState=u,e.baseState=h,e.baseQueue=O,l.lastRenderedState=u}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Gs(e){var t=lt(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var l=n.dispatch,i=n.pending,u=t.memoizedState;if(i!==null){n.pending=null;var h=i=i.next;do u=e(u,h.action),h=h.next;while(h!==i);qt(u,t.memoizedState)||(ot=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,l]}function id(e,t,n){var l=Ae,i=lt(),u=De;if(u){if(n===void 0)throw Error(o(407));n=n()}else n=t();var h=!qt((Fe||i).memoizedState,n);if(h&&(i.memoizedState=n,ot=!0),i=i.queue,Xs(ud.bind(null,l,i,e),[e]),i.getSnapshot!==t||h||it!==null&&it.memoizedState.tag&1){if(l.flags|=2048,wa(9,{destroy:void 0},sd.bind(null,l,i,n,t),null),Xe===null)throw Error(o(349));u||(_n&127)!==0||od(l,t,n)}return n}function od(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ae.updateQueue,t===null?(t=xi(),Ae.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function sd(e,t,n,l){t.value=n,t.getSnapshot=l,cd(t)&&fd(e)}function ud(e,t,n){return n(function(){cd(t)&&fd(e)})}function cd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qt(e,n)}catch{return!0}}function fd(e){var t=kl(e,2);t!==null&&zt(t,e,2)}function Ys(e){var t=Ct();if(typeof e=="function"){var n=e;if(e=n(),ql){hn(!0);try{n()}finally{hn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jn,lastRenderedState:e},t}function dd(e,t,n,l){return e.baseState=n,qs(e,Fe,typeof l=="function"?l:jn)}function gy(e,t,n,l,i){if(Ci(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){u.listeners.push(h)}};E.T!==null?n(!0):u.isTransition=!1,l(u),n=t.pending,n===null?(u.next=t.pending=u,gd(t,u)):(u.next=n.next,t.pending=n.next=u)}}function gd(e,t){var n=t.action,l=t.payload,i=e.state;if(t.isTransition){var u=E.T,h={};E.T=h;try{var w=n(i,l),O=E.S;O!==null&&O(h,w),hd(e,t,w)}catch(Y){Vs(e,t,Y)}finally{u!==null&&h.types!==null&&(u.types=h.types),E.T=u}}else try{u=n(i,l),hd(e,t,u)}catch(Y){Vs(e,t,Y)}}function hd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){md(e,t,l)},function(l){return Vs(e,t,l)}):md(e,t,n)}function md(e,t,n){t.status="fulfilled",t.value=n,pd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,gd(e,n)))}function Vs(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,pd(t),t=t.next;while(t!==l)}e.action=null}function pd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function bd(e,t){return t}function yd(e,t){if(De){var n=Xe.formState;if(n!==null){e:{var l=Ae;if(De){if(Qe){t:{for(var i=Qe,u=ln;i.nodeType!==8;){if(!u){i=null;break t}if(i=rn(i.nextSibling),i===null){i=null;break t}}u=i.data,i=u==="F!"||u==="F"?i:null}if(i){Qe=rn(i.nextSibling),l=i.data==="F!";break e}}Jn(l)}l=!1}l&&(t=n[0])}}return n=Ct(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bd,lastRenderedState:t},n.queue=l,n=Bd.bind(null,Ae,l),l.dispatch=n,l=Ys(!1),u=Ks.bind(null,Ae,!1,l.queue),l=Ct(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,n=gy.bind(null,Ae,i,u,n),i.dispatch=n,l.memoizedState=e,[t,n,!1]}function vd(e){var t=lt();return xd(t,Fe,e)}function xd(e,t,n){if(t=qs(e,t,bd)[0],e=Ei(jn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=cr(t)}catch(h){throw h===ya?di:h}else l=t;t=lt();var i=t.queue,u=i.dispatch;return n!==t.memoizedState&&(Ae.flags|=2048,wa(9,{destroy:void 0},hy.bind(null,i,n),null)),[l,u,e]}function hy(e,t){e.action=t}function Sd(e){var t=lt(),n=Fe;if(n!==null)return xd(t,n,e);lt(),t=t.memoizedState,n=lt();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=Ae.updateQueue,t===null&&(t=xi(),Ae.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 Ed(){return lt().memoizedState}function wi(e,t,n,l){var i=Ct();Ae.flags|=e,i.memoizedState=wa(1|t,{destroy:void 0},n,l===void 0?null:l)}function Ni(e,t,n,l){var i=lt();l=l===void 0?null:l;var u=i.memoizedState.inst;Fe!==null&&l!==null&&zs(l,Fe.memoizedState.deps)?i.memoizedState=wa(t,u,n,l):(Ae.flags|=e,i.memoizedState=wa(1|t,u,n,l))}function wd(e,t){wi(8390656,8,e,t)}function Xs(e,t){Ni(2048,8,e,t)}function my(e){Ae.flags|=4;var t=Ae.updateQueue;if(t===null)t=xi(),Ae.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Nd(e){var t=lt().memoizedState;return my({ref:t,nextImpl:e}),function(){if((Be&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Cd(e,t){return Ni(4,2,e,t)}function Ad(e,t){return Ni(4,4,e,t)}function Td(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 Rd(e,t,n){n=n!=null?n.concat([e]):null,Ni(4,4,Td.bind(null,t,e),n)}function Zs(){}function _d(e,t){var n=lt();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&zs(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function jd(e,t){var n=lt();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&zs(t,l[1]))return l[0];if(l=e(),ql){hn(!0);try{e()}finally{hn(!1)}}return n.memoizedState=[l,t],l}function Is(e,t,n){return n===void 0||(_n&1073741824)!==0&&(je&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Og(),Ae.lanes|=e,il|=e,n)}function Od(e,t,n,l){return qt(n,t)?n:xa.current!==null?(e=Is(e,n,l),qt(e,t)||(ot=!0),e):(_n&42)===0||(_n&1073741824)!==0&&(je&261930)===0?(ot=!0,e.memoizedState=n):(e=Og(),Ae.lanes|=e,il|=e,t)}function kd(e,t,n,l,i){var u=z.p;z.p=u!==0&&8>u?u:8;var h=E.T,w={};E.T=w,Ks(e,!1,t,n);try{var O=i(),Y=E.S;if(Y!==null&&Y(w,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var W=cy(O,l);fr(e,t,W,It(e))}else fr(e,t,l,It(e))}catch(le){fr(e,t,{then:function(){},status:"rejected",reason:le},It())}finally{z.p=u,h!==null&&w.types!==null&&(h.types=w.types),E.T=h}}function py(){}function $s(e,t,n,l){if(e.tag!==5)throw Error(o(476));var i=Dd(e).queue;kd(e,i,t,k,n===null?py:function(){return Md(e),n(l)})}function Dd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:k,baseState:k,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jn,lastRenderedState:k},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Md(e){var t=Dd(e);t.next===null&&(t=e.alternate.memoizedState),fr(e,t.next.queue,{},It())}function Qs(){return pt(Rr)}function zd(){return lt().memoizedState}function Ld(){return lt().memoizedState}function by(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=It();e=el(n);var l=tl(t,e,n);l!==null&&(zt(l,t,n),ir(l,t,n)),t={cache:Ns()},e.payload=t;return}t=t.return}}function yy(e,t,n){var l=It();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ci(e)?Ud(t,n):(n=gs(e,t,n,l),n!==null&&(zt(n,e,l),Hd(n,t,l)))}function Bd(e,t,n){var l=It();fr(e,t,n,l)}function fr(e,t,n,l){var i={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ci(e))Ud(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var h=t.lastRenderedState,w=u(h,n);if(i.hasEagerState=!0,i.eagerState=w,qt(w,h))return ri(e,t,i,0),Xe===null&&ai(),!1}catch{}if(n=gs(e,t,i,l),n!==null)return zt(n,e,l),Hd(n,t,l),!0}return!1}function Ks(e,t,n,l){if(l={lane:2,revertLane:Ru(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ci(e)){if(t)throw Error(o(479))}else t=gs(e,n,l,2),t!==null&&zt(t,e,2)}function Ci(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function Ud(e,t){Sa=yi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hd(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Yc(e,n)}}var dr={readContext:pt,use:Si,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et,useHostTransitionStatus:et,useFormState:et,useActionState:et,useOptimistic:et,useMemoCache:et,useCacheRefresh:et};dr.useEffectEvent=et;var Fd={readContext:pt,use:Si,useCallback:function(e,t){return Ct().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:wd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,wi(4194308,4,Td.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wi(4194308,4,e,t)},useInsertionEffect:function(e,t){wi(4,2,e,t)},useMemo:function(e,t){var n=Ct();t=t===void 0?null:t;var l=e();if(ql){hn(!0);try{e()}finally{hn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=Ct();if(n!==void 0){var i=n(t);if(ql){hn(!0);try{n(t)}finally{hn(!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=yy.bind(null,Ae,e),[l.memoizedState,e]},useRef:function(e){var t=Ct();return e={current:e},t.memoizedState=e},useState:function(e){e=Ys(e);var t=e.queue,n=Bd.bind(null,Ae,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Zs,useDeferredValue:function(e,t){var n=Ct();return Is(n,e,t)},useTransition:function(){var e=Ys(!1);return e=kd.bind(null,Ae,e.queue,!0,!1),Ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Ae,i=Ct();if(De){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Xe===null)throw Error(o(349));(je&127)!==0||od(l,t,n)}i.memoizedState=n;var u={value:n,getSnapshot:t};return i.queue=u,wd(ud.bind(null,l,u,e),[e]),l.flags|=2048,wa(9,{destroy:void 0},sd.bind(null,l,u,n,t),null),n},useId:function(){var e=Ct(),t=Xe.identifierPrefix;if(De){var n=pn,l=mn;n=(l&~(1<<32-vt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=vi++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=fy++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Qs,useFormState:yd,useActionState:yd,useOptimistic:function(e){var t=Ct();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ks.bind(null,Ae,!0,n),n.dispatch=t,[e,t]},useMemoCache:Fs,useCacheRefresh:function(){return Ct().memoizedState=by.bind(null,Ae)},useEffectEvent:function(e){var t=Ct(),n={impl:e};return t.memoizedState=n,function(){if((Be&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Js={readContext:pt,use:Si,useCallback:_d,useContext:pt,useEffect:Xs,useImperativeHandle:Rd,useInsertionEffect:Cd,useLayoutEffect:Ad,useMemo:jd,useReducer:Ei,useRef:Ed,useState:function(){return Ei(jn)},useDebugValue:Zs,useDeferredValue:function(e,t){var n=lt();return Od(n,Fe.memoizedState,e,t)},useTransition:function(){var e=Ei(jn)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:cr(e),t]},useSyncExternalStore:id,useId:zd,useHostTransitionStatus:Qs,useFormState:vd,useActionState:vd,useOptimistic:function(e,t){var n=lt();return dd(n,Fe,e,t)},useMemoCache:Fs,useCacheRefresh:Ld};Js.useEffectEvent=Nd;var qd={readContext:pt,use:Si,useCallback:_d,useContext:pt,useEffect:Xs,useImperativeHandle:Rd,useInsertionEffect:Cd,useLayoutEffect:Ad,useMemo:jd,useReducer:Gs,useRef:Ed,useState:function(){return Gs(jn)},useDebugValue:Zs,useDeferredValue:function(e,t){var n=lt();return Fe===null?Is(n,e,t):Od(n,Fe.memoizedState,e,t)},useTransition:function(){var e=Gs(jn)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:cr(e),t]},useSyncExternalStore:id,useId:zd,useHostTransitionStatus:Qs,useFormState:Sd,useActionState:Sd,useOptimistic:function(e,t){var n=lt();return Fe!==null?dd(n,Fe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Fs,useCacheRefresh:Ld};qd.useEffectEvent=Nd;function Ws(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ps={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=It(),i=el(l);i.payload=t,n!=null&&(i.callback=n),t=tl(e,i,l),t!==null&&(zt(t,e,l),ir(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=It(),i=el(l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=tl(e,i,l),t!==null&&(zt(t,e,l),ir(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=It(),l=el(n);l.tag=2,t!=null&&(l.callback=t),t=tl(e,l,n),t!==null&&(zt(t,e,n),ir(t,e,n))}};function Gd(e,t,n,l,i,u,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,h):t.prototype&&t.prototype.isPureReactComponent?!Wa(n,l)||!Wa(i,u):!0}function Yd(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&&Ps.enqueueReplaceState(t,t.state,null)}function Gl(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=y({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function Vd(e){li(e)}function Xd(e){console.error(e)}function Zd(e){li(e)}function Ai(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Id(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 eu(e,t,n){return n=el(n),n.tag=3,n.payload={element:null},n.callback=function(){Ai(e,t)},n}function $d(e){return e=el(e),e.tag=3,e}function Qd(e,t,n,l){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var u=l.value;e.payload=function(){return i(u)},e.callback=function(){Id(t,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Id(t,n,l),typeof i!="function"&&(ol===null?ol=new Set([this]):ol.add(this));var w=l.stack;this.componentDidCatch(l.value,{componentStack:w!==null?w:""})})}function vy(e,t,n,l,i){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&ma(t,n,i,!0),n=Yt.current,n!==null){switch(n.tag){case 31:case 13:return an===null?Ui():n.alternate===null&&tt===0&&(tt=3),n.flags&=-257,n.flags|=65536,n.lanes=i,l===gi?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Cu(e,l,i)),!1;case 22:return n.flags|=65536,l===gi?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)),Cu(e,l,i)),!1}throw Error(o(435,n.tag))}return Cu(e,l,i),Ui(),!1}if(De)return t=Yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==vs&&(e=Error(o(422),{cause:l}),tr(en(e,n)))):(l!==vs&&(t=Error(o(423),{cause:l}),tr(en(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=en(l,n),i=eu(e.stateNode,l,i),js(e,i),tt!==4&&(tt=2)),!1;var u=Error(o(520),{cause:l});if(u=en(u,n),xr===null?xr=[u]:xr.push(u),tt!==4&&(tt=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=eu(n.stateNode,l,e),js(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ol===null||!ol.has(u))))return n.flags|=65536,i&=-i,n.lanes|=i,i=$d(i),Qd(i,e,n,l),js(n,i),!1}n=n.return}while(n!==null);return!1}var tu=Error(o(461)),ot=!1;function bt(e,t,n,l){t.child=e===null?Pf(t,null,n,l):Fl(t,e.child,n,l)}function Kd(e,t,n,l,i){n=n.render;var u=t.ref;if("ref"in l){var h={};for(var w in l)w!=="ref"&&(h[w]=l[w])}else h=l;return Ll(t),l=Ls(e,t,n,h,u,i),w=Bs(),e!==null&&!ot?(Us(e,t,i),On(e,t,i)):(De&&w&&bs(t),t.flags|=1,bt(e,t,l,i),t.child)}function Jd(e,t,n,l,i){if(e===null){var u=n.type;return typeof u=="function"&&!hs(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,Wd(e,t,u,l,i)):(e=oi(n.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!uu(e,i)){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:Wa,n(h,l)&&e.ref===t.ref)return On(e,t,i)}return t.flags|=1,e=Cn(u,l),e.ref=t.ref,e.return=t,t.child=e}function Wd(e,t,n,l,i){if(e!==null){var u=e.memoizedProps;if(Wa(u,l)&&e.ref===t.ref)if(ot=!1,t.pendingProps=l=u,uu(e,i))(e.flags&131072)!==0&&(ot=!0);else return t.lanes=e.lanes,On(e,t,i)}return nu(e,t,n,l,i)}function Pd(e,t,n,l){var i=l.children,u=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(u=u!==null?u.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&~u}else l=0,t.child=null;return eg(e,t,u,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fi(t,u!==null?u.cachePool:null),u!==null?nd(t,u):ks(),ld(t);else return l=t.lanes=536870912,eg(e,t,u!==null?u.baseLanes|n:n,n,l)}else u!==null?(fi(t,u.cachePool),nd(t,u),ll(),t.memoizedState=null):(e!==null&&fi(t,null),ks(),ll());return bt(e,t,i,n),t.child}function gr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function eg(e,t,n,l,i){var u=As();return u=u===null?null:{parent:rt._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&fi(t,null),ks(),ld(t),e!==null&&ma(e,t,l,!0),t.childLanes=i,null}function Ti(e,t){return t=_i({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function tg(e,t,n){return Fl(t,e.child,null,n),e=Ti(t,t.pendingProps),e.flags|=2,Vt(t),t.memoizedState=null,e}function xy(e,t,n){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(De){if(l.mode==="hidden")return e=Ti(t,l),t.lanes=536870912,gr(null,e);if(Ms(t),(e=Qe)?(e=gh(e,ln),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qn!==null?{id:mn,overflow:pn}:null,retryLane:536870912,hydrationErrors:null},n=Uf(e),n.return=t,t.child=n,mt=t,Qe=null)):e=null,e===null)throw Jn(t);return t.lanes=536870912,null}return Ti(t,l)}var u=e.memoizedState;if(u!==null){var h=u.dehydrated;if(Ms(t),i)if(t.flags&256)t.flags&=-257,t=tg(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(ot||ma(e,t,n,!1),i=(n&e.childLanes)!==0,ot||i){if(l=Xe,l!==null&&(h=Vc(l,n),h!==0&&h!==u.retryLane))throw u.retryLane=h,kl(e,h),zt(l,e,h),tu;Ui(),t=tg(e,t,n)}else e=u.treeContext,Qe=rn(h.nextSibling),mt=t,De=!0,Kn=null,ln=!1,e!==null&&qf(t,e),t=Ti(t,l),t.flags|=4096;return t}return e=Cn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ri(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(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function nu(e,t,n,l,i){return Ll(t),n=Ls(e,t,n,l,void 0,i),l=Bs(),e!==null&&!ot?(Us(e,t,i),On(e,t,i)):(De&&l&&bs(t),t.flags|=1,bt(e,t,n,i),t.child)}function ng(e,t,n,l,i,u){return Ll(t),t.updateQueue=null,n=rd(t,l,n,i),ad(e),l=Bs(),e!==null&&!ot?(Us(e,t,u),On(e,t,u)):(De&&l&&bs(t),t.flags|=1,bt(e,t,n,u),t.child)}function lg(e,t,n,l,i){if(Ll(t),t.stateNode===null){var u=fa,h=n.contextType;typeof h=="object"&&h!==null&&(u=pt(h)),u=new n(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Ps,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},Rs(t),h=n.contextType,u.context=typeof h=="object"&&h!==null?pt(h):fa,u.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Ws(t,n,h,l),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(h=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),h!==u.state&&Ps.enqueueReplaceState(u,u.state,null),sr(t,l,u,i),or(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var w=t.memoizedProps,O=Gl(n,w);u.props=O;var Y=u.context,W=n.contextType;h=fa,typeof W=="object"&&W!==null&&(h=pt(W));var le=n.getDerivedStateFromProps;W=typeof le=="function"||typeof u.getSnapshotBeforeUpdate=="function",w=t.pendingProps!==w,W||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(w||Y!==h)&&Yd(t,u,l,h),Pn=!1;var V=t.memoizedState;u.state=V,sr(t,l,u,i),or(),Y=t.memoizedState,w||V!==Y||Pn?(typeof le=="function"&&(Ws(t,n,le,l),Y=t.memoizedState),(O=Pn||Gd(t,n,O,l,V,Y,h))?(W||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=Y),u.props=l,u.state=Y,u.context=h,l=O):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,_s(e,t),h=t.memoizedProps,W=Gl(n,h),u.props=W,le=t.pendingProps,V=u.context,Y=n.contextType,O=fa,typeof Y=="object"&&Y!==null&&(O=pt(Y)),w=n.getDerivedStateFromProps,(Y=typeof w=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==le||V!==O)&&Yd(t,u,l,O),Pn=!1,V=t.memoizedState,u.state=V,sr(t,l,u,i),or();var Z=t.memoizedState;h!==le||V!==Z||Pn||e!==null&&e.dependencies!==null&&ui(e.dependencies)?(typeof w=="function"&&(Ws(t,n,w,l),Z=t.memoizedState),(W=Pn||Gd(t,n,W,l,V,Z,O)||e!==null&&e.dependencies!==null&&ui(e.dependencies))?(Y||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,Z,O),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,Z,O)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=Z),u.props=l,u.state=Z,u.context=O,l=W):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&V===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&V===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,Ri(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=Fl(t,e.child,null,i),t.child=Fl(t,null,n,i)):bt(e,t,n,i),t.memoizedState=u.state,e=t.child):e=On(e,t,i),e}function ag(e,t,n,l){return Ml(),t.flags|=256,bt(e,t,n,l),t.child}var lu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function au(e){return{baseLanes:e,cachePool:If()}}function ru(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zt),e}function rg(e,t,n){var l=t.pendingProps,i=!1,u=(t.flags&128)!==0,h;if((h=u)||(h=e!==null&&e.memoizedState===null?!1:(nt.current&2)!==0),h&&(i=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(De){if(i?nl(t):ll(),(e=Qe)?(e=gh(e,ln),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qn!==null?{id:mn,overflow:pn}:null,retryLane:536870912,hydrationErrors:null},n=Uf(e),n.return=t,t.child=n,mt=t,Qe=null)):e=null,e===null)throw Jn(t);return qu(e)?t.lanes=32:t.lanes=536870912,null}var w=l.children;return l=l.fallback,i?(ll(),i=t.mode,w=_i({mode:"hidden",children:w},i),l=Dl(l,i,n,null),w.return=t,l.return=t,w.sibling=l,t.child=w,l=t.child,l.memoizedState=au(n),l.childLanes=ru(e,h,n),t.memoizedState=lu,gr(null,l)):(nl(t),iu(t,w))}var O=e.memoizedState;if(O!==null&&(w=O.dehydrated,w!==null)){if(u)t.flags&256?(nl(t),t.flags&=-257,t=ou(e,t,n)):t.memoizedState!==null?(ll(),t.child=e.child,t.flags|=128,t=null):(ll(),w=l.fallback,i=t.mode,l=_i({mode:"visible",children:l.children},i),w=Dl(w,i,n,null),w.flags|=2,l.return=t,w.return=t,l.sibling=w,t.child=l,Fl(t,e.child,null,n),l=t.child,l.memoizedState=au(n),l.childLanes=ru(e,h,n),t.memoizedState=lu,t=gr(null,l));else if(nl(t),qu(w)){if(h=w.nextSibling&&w.nextSibling.dataset,h)var Y=h.dgst;h=Y,l=Error(o(419)),l.stack="",l.digest=h,tr({value:l,source:null,stack:null}),t=ou(e,t,n)}else if(ot||ma(e,t,n,!1),h=(n&e.childLanes)!==0,ot||h){if(h=Xe,h!==null&&(l=Vc(h,n),l!==0&&l!==O.retryLane))throw O.retryLane=l,kl(e,l),zt(h,e,l),tu;Fu(w)||Ui(),t=ou(e,t,n)}else Fu(w)?(t.flags|=192,t.child=e.child,t=null):(e=O.treeContext,Qe=rn(w.nextSibling),mt=t,De=!0,Kn=null,ln=!1,e!==null&&qf(t,e),t=iu(t,l.children),t.flags|=4096);return t}return i?(ll(),w=l.fallback,i=t.mode,O=e.child,Y=O.sibling,l=Cn(O,{mode:"hidden",children:l.children}),l.subtreeFlags=O.subtreeFlags&65011712,Y!==null?w=Cn(Y,w):(w=Dl(w,i,n,null),w.flags|=2),w.return=t,l.return=t,l.sibling=w,t.child=l,gr(null,l),l=t.child,w=e.child.memoizedState,w===null?w=au(n):(i=w.cachePool,i!==null?(O=rt._currentValue,i=i.parent!==O?{parent:O,pool:O}:i):i=If(),w={baseLanes:w.baseLanes|n,cachePool:i}),l.memoizedState=w,l.childLanes=ru(e,h,n),t.memoizedState=lu,gr(e.child,l)):(nl(t),n=e.child,e=n.sibling,n=Cn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function iu(e,t){return t=_i({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _i(e,t){return e=Gt(22,e,null,t),e.lanes=0,e}function ou(e,t,n){return Fl(t,e.child,null,n),e=iu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ig(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Es(e.return,t,n)}function su(e,t,n,l,i,u){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:i,treeForkCount:u}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=n,h.tailMode=i,h.treeForkCount=u)}function og(e,t,n){var l=t.pendingProps,i=l.revealOrder,u=l.tail;l=l.children;var h=nt.current,w=(h&2)!==0;if(w?(h=h&1|2,t.flags|=128):h&=1,X(nt,h),bt(e,t,l,n),l=De?er:0,!w&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ig(e,n,t);else if(e.tag===19)ig(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&&bi(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),su(t,!1,i,n,u,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&&bi(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}su(t,!0,n,null,u,l);break;case"together":su(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function On(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),il|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ma(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=Cn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Cn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function uu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ui(e)))}function Sy(e,t,n){switch(t.tag){case 3:ge(t,t.stateNode.containerInfo),Wn(t,rt,e.memoizedState.cache),Ml();break;case 27:case 5:ye(t);break;case 4:ge(t,t.stateNode.containerInfo);break;case 10:Wn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ms(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(nl(t),t.flags|=128,null):(n&t.child.childLanes)!==0?rg(e,t,n):(nl(t),e=On(e,t,n),e!==null?e.sibling:null);nl(t);break;case 19:var i=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(ma(e,t,n,!1),l=(n&t.childLanes)!==0),i){if(l)return og(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),X(nt,nt.current),l)break;return null;case 22:return t.lanes=0,Pd(e,t,n,t.pendingProps);case 24:Wn(t,rt,e.memoizedState.cache)}return On(e,t,n)}function sg(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ot=!0;else{if(!uu(e,n)&&(t.flags&128)===0)return ot=!1,Sy(e,t,n);ot=(e.flags&131072)!==0}else ot=!1,De&&(t.flags&1048576)!==0&&Ff(t,er,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Ul(t.elementType),t.type=e,typeof e=="function")hs(e)?(l=Gl(e,l),t.tag=1,t=lg(null,t,e,l,n)):(t.tag=0,t=nu(null,t,e,l,n));else{if(e!=null){var i=e.$$typeof;if(i===M){t.tag=11,t=Kd(null,t,e,l,n);break e}else if(i===Q){t.tag=14,t=Jd(null,t,e,l,n);break e}}throw t=U(e)||e,Error(o(306,t,""))}}return t;case 0:return nu(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,i=Gl(l,t.pendingProps),lg(e,t,l,i,n);case 3:e:{if(ge(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var u=t.memoizedState;i=u.element,_s(e,t),sr(t,l,null,n);var h=t.memoizedState;if(l=h.cache,Wn(t,rt,l),l!==u.cache&&ws(t,[rt],n,!0),or(),l=h.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=ag(e,t,l,n);break e}else if(l!==i){i=en(Error(o(424)),t),tr(i),t=ag(e,t,l,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Qe=rn(e.firstChild),mt=t,De=!0,Kn=null,ln=!0,n=Pf(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ml(),l===i){t=On(e,t,n);break e}bt(e,t,l,n)}t=t.child}return t;case 26:return Ri(e,t),e===null?(n=vh(t.type,null,t.pendingProps,null))?t.memoizedState=n:De||(n=t.type,e=t.pendingProps,l=Xi(fe.current).createElement(n),l[ht]=t,l[_t]=e,yt(l,n,e),dt(l),t.stateNode=l):t.memoizedState=vh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ye(t),e===null&&De&&(l=t.stateNode=ph(t.type,t.pendingProps,fe.current),mt=t,ln=!0,i=Qe,fl(t.type)?(Gu=i,Qe=rn(l.firstChild)):Qe=i),bt(e,t,t.pendingProps.children,n),Ri(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&De&&((i=l=Qe)&&(l=Jy(l,t.type,t.pendingProps,ln),l!==null?(t.stateNode=l,mt=t,Qe=rn(l.firstChild),ln=!1,i=!0):i=!1),i||Jn(t)),ye(t),i=t.type,u=t.pendingProps,h=e!==null?e.memoizedProps:null,l=u.children,Bu(i,u)?l=null:h!==null&&Bu(i,h)&&(t.flags|=32),t.memoizedState!==null&&(i=Ls(e,t,dy,null,null,n),Rr._currentValue=i),Ri(e,t),bt(e,t,l,n),t.child;case 6:return e===null&&De&&((e=n=Qe)&&(n=Wy(n,t.pendingProps,ln),n!==null?(t.stateNode=n,mt=t,Qe=null,e=!0):e=!1),e||Jn(t)),null;case 13:return rg(e,t,n);case 4:return ge(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Fl(t,null,l,n):bt(e,t,l,n),t.child;case 11:return Kd(e,t,t.type,t.pendingProps,n);case 7:return bt(e,t,t.pendingProps,n),t.child;case 8:return bt(e,t,t.pendingProps.children,n),t.child;case 12:return bt(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Wn(t,t.type,l.value),bt(e,t,l.children,n),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,Ll(t),i=pt(i),l=l(i),t.flags|=1,bt(e,t,l,n),t.child;case 14:return Jd(e,t,t.type,t.pendingProps,n);case 15:return Wd(e,t,t.type,t.pendingProps,n);case 19:return og(e,t,n);case 31:return xy(e,t,n);case 22:return Pd(e,t,n,t.pendingProps);case 24:return Ll(t),l=pt(rt),e===null?(i=As(),i===null&&(i=Xe,u=Ns(),i.pooledCache=u,u.refCount++,u!==null&&(i.pooledCacheLanes|=n),i=u),t.memoizedState={parent:l,cache:i},Rs(t),Wn(t,rt,i)):((e.lanes&n)!==0&&(_s(e,t),sr(t,null,null,n),or()),i=e.memoizedState,u=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Wn(t,rt,l)):(l=u.cache,Wn(t,rt,l),l!==i.cache&&ws(t,[rt],n,!0))),bt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function kn(e){e.flags|=4}function cu(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(zg())e.flags|=8192;else throw Hl=gi,Ts}else e.flags&=-16777217}function ug(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Nh(t))if(zg())e.flags|=8192;else throw Hl=gi,Ts}function ji(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?un():536870912,e.lanes|=t,Ta|=t)}function hr(e,t){if(!De)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var 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 Ey(e,t,n){var l=t.pendingProps;switch(ys(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return Ke(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Rn(rt),de(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ha(t)?kn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xs())),Ke(t),null;case 26:var i=t.type,u=t.memoizedState;return e===null?(kn(t),u!==null?(Ke(t),ug(t,u)):(Ke(t),cu(t,i,null,l,n))):u?u!==e.memoizedState?(kn(t),Ke(t),ug(t,u)):(Ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&kn(t),Ke(t),cu(t,i,e,l,n)),null;case 27:if(Ne(t),n=fe.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&kn(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Ke(t),null}e=ie.current,ha(t)?Gf(t):(e=ph(i,l,n),t.stateNode=e,kn(t))}return Ke(t),null;case 5:if(Ne(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&kn(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Ke(t),null}if(u=ie.current,ha(t))Gf(t);else{var h=Xi(fe.current);switch(u){case 1:u=h.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:u=h.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":u=h.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":u=h.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":u=h.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?h.createElement(i,{is:l.is}):h.createElement(i)}}u[ht]=t,u[_t]=l;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)u.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=u;e:switch(yt(u,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&&kn(t)}}return Ke(t),cu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&kn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=fe.current,ha(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,i=mt,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[ht]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||rh(e.nodeValue,n)),e||Jn(t,!0)}else e=Xi(e).createTextNode(l),e[ht]=t,t.stateNode=e}return Ke(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=ha(t),n!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[ht]=t}else Ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),e=!1}else n=xs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Vt(t),t):(Vt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ke(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ha(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[ht]=t}else Ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),i=!1}else i=xs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Vt(t),t):(Vt(t),null)}return Vt(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),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==i&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ji(t,t.updateQueue),Ke(t),null);case 4:return de(),e===null&&ku(t.stateNode.containerInfo),Ke(t),null;case 10:return Rn(t.type),Ke(t),null;case 19:if(B(nt),l=t.memoizedState,l===null)return Ke(t),null;if(i=(t.flags&128)!==0,u=l.rendering,u===null)if(i)hr(l,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=bi(e),u!==null){for(t.flags|=128,hr(l,!1),e=u.updateQueue,t.updateQueue=e,ji(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Bf(n,e),n=n.sibling;return X(nt,nt.current&1|2),De&&An(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&$e()>zi&&(t.flags|=128,i=!0,hr(l,!1),t.lanes=4194304)}else{if(!i)if(e=bi(u),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,ji(t,e),hr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!De)return Ke(t),null}else 2*$e()-l.renderingStartTime>zi&&n!==536870912&&(t.flags|=128,i=!0,hr(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=$e(),e.sibling=null,n=nt.current,X(nt,i?n&1|2:n&1),De&&An(t,l.treeForkCount),e):(Ke(t),null);case 22:case 23:return Vt(t),Ds(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),n=t.updateQueue,n!==null&&ji(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&&B(Bl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Rn(rt),Ke(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function wy(e,t){switch(ys(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rn(rt),de(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ne(t),null;case 31:if(t.memoizedState!==null){if(Vt(t),t.alternate===null)throw Error(o(340));Ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Vt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(nt),null;case 4:return de(),null;case 10:return Rn(t.type),null;case 22:case 23:return Vt(t),Ds(),e!==null&&B(Bl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Rn(rt),null;case 25:return null;default:return null}}function cg(e,t){switch(ys(t),t.tag){case 3:Rn(rt),de();break;case 26:case 27:case 5:Ne(t);break;case 4:de();break;case 31:t.memoizedState!==null&&Vt(t);break;case 13:Vt(t);break;case 19:B(nt);break;case 10:Rn(t.type);break;case 22:case 23:Vt(t),Ds(),e!==null&&B(Bl);break;case 24:Rn(rt)}}function mr(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 u=n.create,h=n.inst;l=u(),h.destroy=l}n=n.next}while(n!==i)}}catch(w){He(t,t.return,w)}}function al(e,t,n){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var u=i.next;l=u;do{if((l.tag&e)===e){var h=l.inst,w=h.destroy;if(w!==void 0){h.destroy=void 0,i=t;var O=n,Y=w;try{Y()}catch(W){He(i,O,W)}}}l=l.next}while(l!==u)}}catch(W){He(t,t.return,W)}}function fg(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{td(t,n)}catch(l){He(e,e.return,l)}}}function dg(e,t,n){n.props=Gl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){He(e,t,l)}}function pr(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){He(e,t,i)}}function bn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(i){He(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){He(e,t,i)}else n.current=null}function gg(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){He(e,e.return,i)}}function fu(e,t,n){try{var l=e.stateNode;Xy(l,e.type,n,t),l[_t]=t}catch(i){He(e,e.return,i)}}function hg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&fl(e.type)||e.tag===4}function du(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hg(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&&fl(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 gu(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=wn));else if(l!==4&&(l===27&&fl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(gu(e,t,n),e=e.sibling;e!==null;)gu(e,t,n),e=e.sibling}function Oi(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&&fl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Oi(e,t,n),e=e.sibling;e!==null;)Oi(e,t,n),e=e.sibling}function mg(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);yt(t,l,n),t[ht]=e,t[_t]=n}catch(u){He(e,e.return,u)}}var Dn=!1,st=!1,hu=!1,pg=typeof WeakSet=="function"?WeakSet:Set,gt=null;function Ny(e,t){if(e=e.containerInfo,zu=Wi,e=Rf(e),os(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,u=l.focusNode;l=l.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var h=0,w=-1,O=-1,Y=0,W=0,le=e,V=null;t:for(;;){for(var Z;le!==n||i!==0&&le.nodeType!==3||(w=h+i),le!==u||l!==0&&le.nodeType!==3||(O=h+l),le.nodeType===3&&(h+=le.nodeValue.length),(Z=le.firstChild)!==null;)V=le,le=Z;for(;;){if(le===e)break t;if(V===n&&++Y===i&&(w=h),V===u&&++W===l&&(O=h),(Z=le.nextSibling)!==null)break;le=V,V=le.parentNode}le=Z}n=w===-1||O===-1?null:{start:w,end:O}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lu={focusedElem:e,selectionRange:n},Wi=!1,gt=t;gt!==null;)if(t=gt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,gt=e;else for(;gt!==null;){switch(t=gt,u=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&&u!==null){e=void 0,n=t,i=u.memoizedProps,u=u.memoizedState,l=n.stateNode;try{var he=Gl(n.type,i);e=l.getSnapshotBeforeUpdate(he,u),l.__reactInternalSnapshotBeforeUpdate=e}catch(Ee){He(n,n.return,Ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Hu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Hu(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,gt=e;break}gt=t.return}}function bg(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:zn(e,n),l&4&&mr(5,n);break;case 1:if(zn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){He(n,n.return,h)}else{var i=Gl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){He(n,n.return,h)}}l&64&&fg(n),l&512&&pr(n,n.return);break;case 3:if(zn(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{td(e,t)}catch(h){He(n,n.return,h)}}break;case 27:t===null&&l&4&&mg(n);case 26:case 5:zn(e,n),t===null&&l&4&&gg(n),l&512&&pr(n,n.return);break;case 12:zn(e,n);break;case 31:zn(e,n),l&4&&xg(e,n);break;case 13:zn(e,n),l&4&&Sg(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Dy.bind(null,n),Py(e,n))));break;case 22:if(l=n.memoizedState!==null||Dn,!l){t=t!==null&&t.memoizedState!==null||st,i=Dn;var u=st;Dn=l,(st=t)&&!u?Ln(e,n,(n.subtreeFlags&8772)!==0):zn(e,n),Dn=i,st=u}break;case 30:break;default:zn(e,n)}}function yg(e){var t=e.alternate;t!==null&&(e.alternate=null,yg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Vo(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 Pe=null,Ot=!1;function Mn(e,t,n){for(n=n.child;n!==null;)vg(e,t,n),n=n.sibling}function vg(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Xn,n)}catch{}switch(n.tag){case 26:st||bn(n,t),Mn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:st||bn(n,t);var l=Pe,i=Ot;fl(n.type)&&(Pe=n.stateNode,Ot=!1),Mn(e,t,n),Cr(n.stateNode),Pe=l,Ot=i;break;case 5:st||bn(n,t);case 6:if(l=Pe,i=Ot,Pe=null,Mn(e,t,n),Pe=l,Ot=i,Pe!==null)if(Ot)try{(Pe.nodeType===9?Pe.body:Pe.nodeName==="HTML"?Pe.ownerDocument.body:Pe).removeChild(n.stateNode)}catch(u){He(n,t,u)}else try{Pe.removeChild(n.stateNode)}catch(u){He(n,t,u)}break;case 18:Pe!==null&&(Ot?(e=Pe,fh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),za(e)):fh(Pe,n.stateNode));break;case 4:l=Pe,i=Ot,Pe=n.stateNode.containerInfo,Ot=!0,Mn(e,t,n),Pe=l,Ot=i;break;case 0:case 11:case 14:case 15:al(2,n,t),st||al(4,n,t),Mn(e,t,n);break;case 1:st||(bn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&dg(n,t,l)),Mn(e,t,n);break;case 21:Mn(e,t,n);break;case 22:st=(l=st)||n.memoizedState!==null,Mn(e,t,n),st=l;break;default:Mn(e,t,n)}}function xg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{za(e)}catch(n){He(t,t.return,n)}}}function Sg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{za(e)}catch(n){He(t,t.return,n)}}function Cy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new pg),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new pg),t;default:throw Error(o(435,e.tag))}}function ki(e,t){var n=Cy(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var i=My.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],u=e,h=t,w=h;e:for(;w!==null;){switch(w.tag){case 27:if(fl(w.type)){Pe=w.stateNode,Ot=!1;break e}break;case 5:Pe=w.stateNode,Ot=!1;break e;case 3:case 4:Pe=w.stateNode.containerInfo,Ot=!0;break e}w=w.return}if(Pe===null)throw Error(o(160));vg(u,h,i),Pe=null,Ot=!1,u=i.alternate,u!==null&&(u.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Eg(t,e),t=t.sibling}var fn=null;function Eg(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:kt(t,e),Dt(e),l&4&&(al(3,e,e.return),mr(3,e),al(5,e,e.return));break;case 1:kt(t,e),Dt(e),l&512&&(st||n===null||bn(n,n.return)),l&64&&Dn&&(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=fn;if(kt(t,e),Dt(e),l&512&&(st||n===null||bn(n,n.return)),l&4){var u=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":u=i.getElementsByTagName("title")[0],(!u||u[Ya]||u[ht]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=i.createElement(l),i.head.insertBefore(u,i.querySelector("head > title"))),yt(u,l,n),u[ht]=e,dt(u),l=u;break e;case"link":var h=Eh("link","href",i).get(l+(n.href||""));if(h){for(var w=0;w<h.length;w++)if(u=h[w],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){h.splice(w,1);break t}}u=i.createElement(l),yt(u,l,n),i.head.appendChild(u);break;case"meta":if(h=Eh("meta","content",i).get(l+(n.content||""))){for(w=0;w<h.length;w++)if(u=h[w],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){h.splice(w,1);break t}}u=i.createElement(l),yt(u,l,n),i.head.appendChild(u);break;default:throw Error(o(468,l))}u[ht]=e,dt(u),l=u}e.stateNode=l}else wh(i,e.type,e.stateNode);else e.stateNode=Sh(i,l,e.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?wh(i,e.type,e.stateNode):Sh(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&fu(e,e.memoizedProps,n.memoizedProps)}break;case 27:kt(t,e),Dt(e),l&512&&(st||n===null||bn(n,n.return)),n!==null&&l&4&&fu(e,e.memoizedProps,n.memoizedProps);break;case 5:if(kt(t,e),Dt(e),l&512&&(st||n===null||bn(n,n.return)),e.flags&32){i=e.stateNode;try{aa(i,"")}catch(he){He(e,e.return,he)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,fu(e,i,n!==null?n.memoizedProps:i)),l&1024&&(hu=!0);break;case 6:if(kt(t,e),Dt(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(he){He(e,e.return,he)}}break;case 3:if($i=null,i=fn,fn=Zi(t.containerInfo),kt(t,e),fn=i,Dt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{za(t.containerInfo)}catch(he){He(e,e.return,he)}hu&&(hu=!1,wg(e));break;case 4:l=fn,fn=Zi(e.stateNode.containerInfo),kt(t,e),Dt(e),fn=l;break;case 12:kt(t,e),Dt(e);break;case 31:kt(t,e),Dt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ki(e,l)));break;case 13:kt(t,e),Dt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Mi=$e()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ki(e,l)));break;case 22:i=e.memoizedState!==null;var O=n!==null&&n.memoizedState!==null,Y=Dn,W=st;if(Dn=Y||i,st=W||O,kt(t,e),st=W,Dn=Y,Dt(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||O||Dn||st||Yl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){O=n=t;try{if(u=O.stateNode,i)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{w=O.stateNode;var le=O.memoizedProps.style,V=le!=null&&le.hasOwnProperty("display")?le.display:null;w.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(he){He(O,O.return,he)}}}else if(t.tag===6){if(n===null){O=t;try{O.stateNode.nodeValue=i?"":O.memoizedProps}catch(he){He(O,O.return,he)}}}else if(t.tag===18){if(n===null){O=t;try{var Z=O.stateNode;i?dh(Z,!0):dh(O.stateNode,!1)}catch(he){He(O,O.return,he)}}}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,ki(e,n))));break;case 19:kt(t,e),Dt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ki(e,l)));break;case 30:break;case 21:break;default:kt(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(hg(l)){n=l;break}l=l.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var i=n.stateNode,u=du(e);Oi(e,u,i);break;case 5:var h=n.stateNode;n.flags&32&&(aa(h,""),n.flags&=-33);var w=du(e);Oi(e,w,h);break;case 3:case 4:var O=n.stateNode.containerInfo,Y=du(e);gu(e,Y,O);break;default:throw Error(o(161))}}catch(W){He(e,e.return,W)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;wg(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function zn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bg(e,t.alternate,t),t=t.sibling}function Yl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:al(4,t,t.return),Yl(t);break;case 1:bn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&dg(t,t.return,n),Yl(t);break;case 27:Cr(t.stateNode);case 26:case 5:bn(t,t.return),Yl(t);break;case 22:t.memoizedState===null&&Yl(t);break;case 30:Yl(t);break;default:Yl(t)}e=e.sibling}}function Ln(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,u=t,h=u.flags;switch(u.tag){case 0:case 11:case 15:Ln(i,u,n),mr(4,u);break;case 1:if(Ln(i,u,n),l=u,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(Y){He(l,l.return,Y)}if(l=u,i=l.updateQueue,i!==null){var w=l.stateNode;try{var O=i.shared.hiddenCallbacks;if(O!==null)for(i.shared.hiddenCallbacks=null,i=0;i<O.length;i++)ed(O[i],w)}catch(Y){He(l,l.return,Y)}}n&&h&64&&fg(u),pr(u,u.return);break;case 27:mg(u);case 26:case 5:Ln(i,u,n),n&&l===null&&h&4&&gg(u),pr(u,u.return);break;case 12:Ln(i,u,n);break;case 31:Ln(i,u,n),n&&h&4&&xg(i,u);break;case 13:Ln(i,u,n),n&&h&4&&Sg(i,u);break;case 22:u.memoizedState===null&&Ln(i,u,n),pr(u,u.return);break;case 30:break;default:Ln(i,u,n)}t=t.sibling}}function mu(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&&nr(n))}function pu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&nr(e))}function dn(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ng(e,t,n,l),t=t.sibling}function Ng(e,t,n,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:dn(e,t,n,l),i&2048&&mr(9,t);break;case 1:dn(e,t,n,l);break;case 3:dn(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&&nr(e)));break;case 12:if(i&2048){dn(e,t,n,l),e=t.stateNode;try{var u=t.memoizedProps,h=u.id,w=u.onPostCommit;typeof w=="function"&&w(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(O){He(t,t.return,O)}}else dn(e,t,n,l);break;case 31:dn(e,t,n,l);break;case 13:dn(e,t,n,l);break;case 23:break;case 22:u=t.stateNode,h=t.alternate,t.memoizedState!==null?u._visibility&2?dn(e,t,n,l):br(e,t):u._visibility&2?dn(e,t,n,l):(u._visibility|=2,Na(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),i&2048&&mu(h,t);break;case 24:dn(e,t,n,l),i&2048&&pu(t.alternate,t);break;default:dn(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 u=e,h=t,w=n,O=l,Y=h.flags;switch(h.tag){case 0:case 11:case 15:Na(u,h,w,O,i),mr(8,h);break;case 23:break;case 22:var W=h.stateNode;h.memoizedState!==null?W._visibility&2?Na(u,h,w,O,i):br(u,h):(W._visibility|=2,Na(u,h,w,O,i)),i&&Y&2048&&mu(h.alternate,h);break;case 24:Na(u,h,w,O,i),i&&Y&2048&&pu(h.alternate,h);break;default:Na(u,h,w,O,i)}t=t.sibling}}function br(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:br(n,l),i&2048&&mu(l.alternate,l);break;case 24:br(n,l),i&2048&&pu(l.alternate,l);break;default:br(n,l)}t=t.sibling}}var yr=8192;function Ca(e,t,n){if(e.subtreeFlags&yr)for(e=e.child;e!==null;)Cg(e,t,n),e=e.sibling}function Cg(e,t,n){switch(e.tag){case 26:Ca(e,t,n),e.flags&yr&&e.memoizedState!==null&&f0(n,fn,e.memoizedState,e.memoizedProps);break;case 5:Ca(e,t,n);break;case 3:case 4:var l=fn;fn=Zi(e.stateNode.containerInfo),Ca(e,t,n),fn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=yr,yr=16777216,Ca(e,t,n),yr=l):Ca(e,t,n));break;default:Ca(e,t,n)}}function Ag(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 vr(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];gt=l,Rg(l,e)}Ag(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Tg(e),e=e.sibling}function Tg(e){switch(e.tag){case 0:case 11:case 15:vr(e),e.flags&2048&&al(9,e,e.return);break;case 3:vr(e);break;case 12:vr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Di(e)):vr(e);break;default:vr(e)}}function Di(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];gt=l,Rg(l,e)}Ag(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:al(8,t,t.return),Di(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Di(t));break;default:Di(t)}e=e.sibling}}function Rg(e,t){for(;gt!==null;){var n=gt;switch(n.tag){case 0:case 11:case 15:al(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:nr(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,gt=l;else e:for(n=e;gt!==null;){l=gt;var i=l.sibling,u=l.return;if(yg(l),l===n){gt=null;break e}if(i!==null){i.return=u,gt=i;break e}gt=u}}}var Ay={getCacheForType:function(e){var t=pt(rt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return pt(rt).controller.signal}},Ty=typeof WeakMap=="function"?WeakMap:Map,Be=0,Xe=null,Re=null,je=0,Ue=0,Xt=null,rl=!1,Aa=!1,bu=!1,Bn=0,tt=0,il=0,Vl=0,yu=0,Zt=0,Ta=0,xr=null,Mt=null,vu=!1,Mi=0,_g=0,zi=1/0,Li=null,ol=null,ct=0,sl=null,Ra=null,Un=0,xu=0,Su=null,jg=null,Sr=0,Eu=null;function It(){return(Be&2)!==0&&je!==0?je&-je:E.T!==null?Ru():Xc()}function Og(){if(Zt===0)if((je&536870912)===0||De){var e=Jl;Jl<<=1,(Jl&3932160)===0&&(Jl=262144),Zt=e}else Zt=536870912;return e=Yt.current,e!==null&&(e.flags|=32),Zt}function zt(e,t,n){(e===Xe&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)&&(_a(e,0),ul(e,je,Zt,!1)),Ga(e,n),((Be&2)===0||e!==Xe)&&(e===Xe&&((Be&2)===0&&(Vl|=n),tt===4&&ul(e,je,Zt,!1)),yn(e))}function kg(e,t,n){if((Be&6)!==0)throw Error(o(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||we(e,t),i=l?jy(e,t):Nu(e,t,!0),u=l;do{if(i===0){Aa&&!l&&ul(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!Ry(n)){i=Nu(e,t,!1),u=!1;continue}if(i===2){if(u=t,e.errorRecoveryDisabledLanes&u)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var w=e;i=xr;var O=w.current.memoizedState.isDehydrated;if(O&&(_a(w,h).flags|=256),h=Nu(w,h,!1),h!==2){if(bu&&!O){w.errorRecoveryDisabledLanes|=u,Vl|=u,i=4;break e}u=Mt,Mt=i,u!==null&&(Mt===null?Mt=u:Mt.push.apply(Mt,u))}i=h}if(u=!1,i!==2)continue}}if(i===1){_a(e,0),ul(e,t,0,!0);break}e:{switch(l=e,u=i,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:ul(l,t,Zt,!rl);break e;case 2:Mt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=Mi+300-$e(),10<i)){if(ul(l,t,Zt,!rl),be(l,0,!0)!==0)break e;Un=t,l.timeoutHandle=uh(Dg.bind(null,l,n,Mt,Li,vu,t,Zt,Vl,Ta,rl,u,"Throttled",-0,0),i);break e}Dg(l,n,Mt,Li,vu,t,Zt,Vl,Ta,rl,u,null,-0,0)}}break}while(!0);yn(e)}function Dg(e,t,n,l,i,u,h,w,O,Y,W,le,V,Z){if(e.timeoutHandle=-1,le=t.subtreeFlags,le&8192||(le&16785408)===16785408){le={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:wn},Cg(t,u,le);var he=(u&62914560)===u?Mi-$e():(u&4194048)===u?_g-$e():0;if(he=d0(le,he),he!==null){Un=u,e.cancelPendingCommit=he(qg.bind(null,e,t,u,n,l,i,h,w,O,W,le,null,V,Z)),ul(e,u,h,!Y);return}}qg(e,t,u,n,l,i,h,w,O)}function Ry(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],u=i.getSnapshot;i=i.value;try{if(!qt(u(),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 ul(e,t,n,l){t&=~yu,t&=~Vl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var u=31-vt(i),h=1<<u;l[u]=-1,i&=~h}n!==0&&Gc(e,n,t)}function Bi(){return(Be&6)===0?(Er(0),!1):!0}function wu(){if(Re!==null){if(Ue===0)var e=Re.return;else e=Re,Tn=zl=null,Hs(e),va=null,ar=0,e=Re;for(;e!==null;)cg(e.alternate,e),e=e.return;Re=null}}function _a(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,$y(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Un=0,wu(),Xe=e,Re=n=Cn(e.current,null),je=t,Ue=0,Xt=null,rl=!1,Aa=we(e,t),bu=!1,Ta=Zt=yu=Vl=il=tt=0,Mt=xr=null,vu=!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-vt(l),u=1<<i;t|=e[i],l&=~u}return Bn=t,ai(),n}function Mg(e,t){Ae=null,E.H=dr,t===ya||t===di?(t=Kf(),Ue=3):t===Ts?(t=Kf(),Ue=4):Ue=t===tu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Xt=t,Re===null&&(tt=1,Ai(e,en(t,e.current)))}function zg(){var e=Yt.current;return e===null?!0:(je&4194048)===je?an===null:(je&62914560)===je||(je&536870912)!==0?e===an:!1}function Lg(){var e=E.H;return E.H=dr,e===null?dr:e}function Bg(){var e=E.A;return E.A=Ay,e}function Ui(){tt=4,rl||(je&4194048)!==je&&Yt.current!==null||(Aa=!0),(il&134217727)===0&&(Vl&134217727)===0||Xe===null||ul(Xe,je,Zt,!1)}function Nu(e,t,n){var l=Be;Be|=2;var i=Lg(),u=Bg();(Xe!==e||je!==t)&&(Li=null,_a(e,t)),t=!1;var h=tt;e:do try{if(Ue!==0&&Re!==null){var w=Re,O=Xt;switch(Ue){case 8:wu(),h=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(t=!0);var Y=Ue;if(Ue=0,Xt=null,ja(e,w,O,Y),n&&Aa){h=0;break e}break;default:Y=Ue,Ue=0,Xt=null,ja(e,w,O,Y)}}_y(),h=tt;break}catch(W){Mg(e,W)}while(!0);return t&&e.shellSuspendCounter++,Tn=zl=null,Be=l,E.H=i,E.A=u,Re===null&&(Xe=null,je=0,ai()),h}function _y(){for(;Re!==null;)Ug(Re)}function jy(e,t){var n=Be;Be|=2;var l=Lg(),i=Bg();Xe!==e||je!==t?(Li=null,zi=$e()+500,_a(e,t)):Aa=we(e,t);e:do try{if(Ue!==0&&Re!==null){t=Re;var u=Xt;t:switch(Ue){case 1:Ue=0,Xt=null,ja(e,t,u,1);break;case 2:case 9:if($f(u)){Ue=0,Xt=null,Hg(t);break}t=function(){Ue!==2&&Ue!==9||Xe!==e||(Ue=7),yn(e)},u.then(t,t);break e;case 3:Ue=7;break e;case 4:Ue=5;break e;case 7:$f(u)?(Ue=0,Xt=null,Hg(t)):(Ue=0,Xt=null,ja(e,t,u,7));break;case 5:var h=null;switch(Re.tag){case 26:h=Re.memoizedState;case 5:case 27:var w=Re;if(h?Nh(h):w.stateNode.complete){Ue=0,Xt=null;var O=w.sibling;if(O!==null)Re=O;else{var Y=w.return;Y!==null?(Re=Y,Hi(Y)):Re=null}break t}}Ue=0,Xt=null,ja(e,t,u,5);break;case 6:Ue=0,Xt=null,ja(e,t,u,6);break;case 8:wu(),tt=6;break e;default:throw Error(o(462))}}Oy();break}catch(W){Mg(e,W)}while(!0);return Tn=zl=null,E.H=l,E.A=i,Be=n,Re!==null?0:(Xe=null,je=0,ai(),tt)}function Oy(){for(;Re!==null&&!Ht();)Ug(Re)}function Ug(e){var t=sg(e.alternate,e,Bn);e.memoizedProps=e.pendingProps,t===null?Hi(e):Re=t}function Hg(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=ng(n,t,t.pendingProps,t.type,void 0,je);break;case 11:t=ng(n,t,t.pendingProps,t.type.render,t.ref,je);break;case 5:Hs(t);default:cg(n,t),t=Re=Bf(t,Bn),t=sg(n,t,Bn)}e.memoizedProps=e.pendingProps,t===null?Hi(e):Re=t}function ja(e,t,n,l){Tn=zl=null,Hs(t),va=null,ar=0;var i=t.return;try{if(vy(e,i,t,n,je)){tt=1,Ai(e,en(n,e.current)),Re=null;return}}catch(u){if(i!==null)throw Re=i,u;tt=1,Ai(e,en(n,e.current)),Re=null;return}t.flags&32768?(De||l===1?e=!0:Aa||(je&536870912)!==0?e=!1:(rl=e=!0,(l===2||l===9||l===3||l===6)&&(l=Yt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Fg(t,e)):Hi(t)}function Hi(e){var t=e;do{if((t.flags&32768)!==0){Fg(t,rl);return}e=t.return;var n=Ey(t.alternate,t,Bn);if(n!==null){Re=n;return}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);tt===0&&(tt=5)}function Fg(e,t){do{var n=wy(e.alternate,e);if(n!==null){n.flags&=32767,Re=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Re=e;return}Re=e=n}while(e!==null);tt=6,Re=null}function qg(e,t,n,l,i,u,h,w,O){e.cancelPendingCommit=null;do Fi();while(ct!==0);if((Be&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=ds,cb(e,n,u,h,w,O),e===Xe&&(Re=Xe=null,je=0),Ra=t,sl=e,Un=n,xu=u,Su=i,jg=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,zy(Al,function(){return Zg(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=E.T,E.T=null,i=z.p,z.p=2,h=Be,Be|=4;try{Ny(e,t,n)}finally{Be=h,z.p=i,E.T=l}}ct=1,Gg(),Yg(),Vg()}}function Gg(){if(ct===1){ct=0;var e=sl,t=Ra,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=E.T,E.T=null;var l=z.p;z.p=2;var i=Be;Be|=4;try{Eg(t,e);var u=Lu,h=Rf(e.containerInfo),w=u.focusedElem,O=u.selectionRange;if(h!==w&&w&&w.ownerDocument&&Tf(w.ownerDocument.documentElement,w)){if(O!==null&&os(w)){var Y=O.start,W=O.end;if(W===void 0&&(W=Y),"selectionStart"in w)w.selectionStart=Y,w.selectionEnd=Math.min(W,w.value.length);else{var le=w.ownerDocument||document,V=le&&le.defaultView||window;if(V.getSelection){var Z=V.getSelection(),he=w.textContent.length,Ee=Math.min(O.start,he),Ge=O.end===void 0?Ee:Math.min(O.end,he);!Z.extend&&Ee>Ge&&(h=Ge,Ge=Ee,Ee=h);var H=Af(w,Ee),L=Af(w,Ge);if(H&&L&&(Z.rangeCount!==1||Z.anchorNode!==H.node||Z.anchorOffset!==H.offset||Z.focusNode!==L.node||Z.focusOffset!==L.offset)){var G=le.createRange();G.setStart(H.node,H.offset),Z.removeAllRanges(),Ee>Ge?(Z.addRange(G),Z.extend(L.node,L.offset)):(G.setEnd(L.node,L.offset),Z.addRange(G))}}}}for(le=[],Z=w;Z=Z.parentNode;)Z.nodeType===1&&le.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<le.length;w++){var te=le[w];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}Wi=!!zu,Lu=zu=null}finally{Be=i,z.p=l,E.T=n}}e.current=t,ct=2}}function Yg(){if(ct===2){ct=0;var e=sl,t=Ra,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=E.T,E.T=null;var l=z.p;z.p=2;var i=Be;Be|=4;try{bg(e,t.alternate,t)}finally{Be=i,z.p=l,E.T=n}}ct=3}}function Vg(){if(ct===4||ct===3){ct=0,Ft();var e=sl,t=Ra,n=Un,l=jg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ct=5:(ct=0,Ra=sl=null,Xg(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ol=null),Go(n),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Xn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=E.T,i=z.p,z.p=2,E.T=null;try{for(var u=e.onRecoverableError,h=0;h<l.length;h++){var w=l[h];u(w.value,{componentStack:w.stack})}}finally{E.T=t,z.p=i}}(Un&3)!==0&&Fi(),yn(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===Eu?Sr++:(Sr=0,Eu=e):Sr=0,Er(0)}}function Xg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,nr(t)))}function Fi(){return Gg(),Yg(),Vg(),Zg()}function Zg(){if(ct!==5)return!1;var e=sl,t=xu;xu=0;var n=Go(Un),l=E.T,i=z.p;try{z.p=32>n?32:n,E.T=null,n=Su,Su=null;var u=sl,h=Un;if(ct=0,Ra=sl=null,Un=0,(Be&6)!==0)throw Error(o(331));var w=Be;if(Be|=4,Tg(u.current),Ng(u,u.current,h,n),Be=w,Er(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Xn,u)}catch{}return!0}finally{z.p=i,E.T=l,Xg(e,t)}}function Ig(e,t,n){t=en(n,t),t=eu(e.stateNode,t,2),e=tl(e,t,2),e!==null&&(Ga(e,2),yn(e))}function He(e,t,n){if(e.tag===3)Ig(e,e,n);else for(;t!==null;){if(t.tag===3){Ig(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ol===null||!ol.has(l))){e=en(n,e),n=$d(2),l=tl(t,n,2),l!==null&&(Qd(n,l,t,e),Ga(l,2),yn(l));break}}t=t.return}}function Cu(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new Ty;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)||(bu=!0,i.add(n),e=ky.bind(null,e,t,n),t.then(e,e))}function ky(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Xe===e&&(je&n)===n&&(tt===4||tt===3&&(je&62914560)===je&&300>$e()-Mi?(Be&2)===0&&_a(e,0):yu|=n,Ta===je&&(Ta=0)),yn(e)}function $g(e,t){t===0&&(t=un()),e=kl(e,t),e!==null&&(Ga(e,t),yn(e))}function Dy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$g(e,n)}function My(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(o(314))}l!==null&&l.delete(t),$g(e,n)}function zy(e,t){return at(e,t)}var qi=null,Oa=null,Au=!1,Gi=!1,Tu=!1,cl=0;function yn(e){e!==Oa&&e.next===null&&(Oa===null?qi=Oa=e:Oa=Oa.next=e),Gi=!0,Au||(Au=!0,By())}function Er(e,t){if(!Tu&&Gi){Tu=!0;do for(var n=!1,l=qi;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var u=0;else{var h=l.suspendedLanes,w=l.pingedLanes;u=(1<<31-vt(42|e)+1)-1,u&=i&~(h&~w),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Wg(l,u))}else u=je,u=be(l,l===Xe?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||we(l,u)||(n=!0,Wg(l,u));l=l.next}while(n);Tu=!1}}function Ly(){Qg()}function Qg(){Gi=Au=!1;var e=0;cl!==0&&Iy()&&(e=cl);for(var t=$e(),n=null,l=qi;l!==null;){var i=l.next,u=Kg(l,t);u===0?(l.next=null,n===null?qi=i:n.next=i,i===null&&(Oa=n)):(n=l,(e!==0||(u&3)!==0)&&(Gi=!0)),l=i}ct!==0&&ct!==5||Er(e),cl!==0&&(cl=0)}function Kg(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var h=31-vt(u),w=1<<h,O=i[h];O===-1?((w&n)===0||(w&l)!==0)&&(i[h]=We(w,t)):O<=t&&(e.expiredLanes|=w),u&=~w}if(t=Xe,n=je,n=be(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Rt(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||we(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Rt(l),Go(n)){case 2:case 8:n=Yr;break;case 32:n=Al;break;case 268435456:n=Vr;break;default:n=Al}return l=Jg.bind(null,e),n=at(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Rt(l),e.callbackPriority=2,e.callbackNode=null,2}function Jg(e,t){if(ct!==0&&ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Fi()&&e.callbackNode!==n)return null;var l=je;return l=be(e,e===Xe?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(kg(e,l,t),Kg(e,$e()),e.callbackNode!=null&&e.callbackNode===n?Jg.bind(null,e):null)}function Wg(e,t){if(Fi())return null;kg(e,t,!0)}function By(){Qy(function(){(Be&6)!==0?at(gn,Ly):Qg()})}function Ru(){if(cl===0){var e=pa;e===0&&(e=Kl,Kl<<=1,(Kl&261888)===0&&(Kl=256)),cl=e}return cl}function Pg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Kr(""+e)}function eh(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 Uy(e,t,n,l,i){if(t==="submit"&&n&&n.stateNode===i){var u=Pg((i[_t]||null).action),h=l.submitter;h&&(t=(t=h[_t]||null)?Pg(t.formAction):h.getAttribute("formAction"),t!==null&&(u=t,h=null));var w=new ei("action","action",null,l,i);e.push({event:w,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(cl!==0){var O=h?eh(i,h):new FormData(i);$s(n,{pending:!0,data:O,method:i.method,action:u},null,O)}}else typeof u=="function"&&(w.preventDefault(),O=h?eh(i,h):new FormData(i),$s(n,{pending:!0,data:O,method:i.method,action:u},u,O))},currentTarget:i}]})}}for(var _u=0;_u<fs.length;_u++){var ju=fs[_u],Hy=ju.toLowerCase(),Fy=ju[0].toUpperCase()+ju.slice(1);cn(Hy,"on"+Fy)}cn(Of,"onAnimationEnd"),cn(kf,"onAnimationIteration"),cn(Df,"onAnimationStart"),cn("dblclick","onDoubleClick"),cn("focusin","onFocus"),cn("focusout","onBlur"),cn(ny,"onTransitionRun"),cn(ly,"onTransitionStart"),cn(ay,"onTransitionCancel"),cn(Mf,"onTransitionEnd"),na("onMouseEnter",["mouseout","mouseover"]),na("onMouseLeave",["mouseout","mouseover"]),na("onPointerEnter",["pointerout","pointerover"]),na("onPointerLeave",["pointerout","pointerover"]),Rl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Rl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Rl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Rl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Rl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Rl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wr="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(" "),qy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wr));function th(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 u=void 0;if(t)for(var h=l.length-1;0<=h;h--){var w=l[h],O=w.instance,Y=w.currentTarget;if(w=w.listener,O!==u&&i.isPropagationStopped())break e;u=w,i.currentTarget=Y;try{u(i)}catch(W){li(W)}i.currentTarget=null,u=O}else for(h=0;h<l.length;h++){if(w=l[h],O=w.instance,Y=w.currentTarget,w=w.listener,O!==u&&i.isPropagationStopped())break e;u=w,i.currentTarget=Y;try{u(i)}catch(W){li(W)}i.currentTarget=null,u=O}}}}function _e(e,t){var n=t[Yo];n===void 0&&(n=t[Yo]=new Set);var l=e+"__bubble";n.has(l)||(nh(t,e,2,!1),n.add(l))}function Ou(e,t,n){var l=0;t&&(l|=4),nh(n,e,l,t)}var Yi="_reactListening"+Math.random().toString(36).slice(2);function ku(e){if(!e[Yi]){e[Yi]=!0,$c.forEach(function(n){n!=="selectionchange"&&(qy.has(n)||Ou(n,!1,e),Ou(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yi]||(t[Yi]=!0,Ou("selectionchange",!1,t))}}function nh(e,t,n,l){switch(Oh(t)){case 2:var i=m0;break;case 8:i=p0;break;default:i=Iu}n=i.bind(null,t,n,e),i=void 0,!Wo||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 Du(e,t,n,l,i){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var h=l.tag;if(h===3||h===4){var w=l.stateNode.containerInfo;if(w===i)break;if(h===4)for(h=l.return;h!==null;){var O=h.tag;if((O===3||O===4)&&h.stateNode.containerInfo===i)return;h=h.return}for(;w!==null;){if(h=Pl(w),h===null)return;if(O=h.tag,O===5||O===6||O===26||O===27){l=u=h;continue e}w=w.parentNode}}l=l.return}of(function(){var Y=u,W=Ko(n),le=[];e:{var V=zf.get(e);if(V!==void 0){var Z=ei,he=e;switch(e){case"keypress":if(Wr(n)===0)break e;case"keydown":case"keyup":Z=Mb;break;case"focusin":he="focus",Z=ns;break;case"focusout":he="blur",Z=ns;break;case"beforeblur":case"afterblur":Z=ns;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":Z=cf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=Eb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=Bb;break;case Of:case kf:case Df:Z=Cb;break;case Mf:Z=Hb;break;case"scroll":case"scrollend":Z=xb;break;case"wheel":Z=qb;break;case"copy":case"cut":case"paste":Z=Tb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=df;break;case"toggle":case"beforetoggle":Z=Yb}var Ee=(t&4)!==0,Ge=!Ee&&(e==="scroll"||e==="scrollend"),H=Ee?V!==null?V+"Capture":null:V;Ee=[];for(var L=Y,G;L!==null;){var te=L;if(G=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||G===null||H===null||(te=Xa(L,H),te!=null&&Ee.push(Nr(L,te,G))),Ge)break;L=L.return}0<Ee.length&&(V=new Z(V,he,null,n,W),le.push({event:V,listeners:Ee}))}}if((t&7)===0){e:{if(V=e==="mouseover"||e==="pointerover",Z=e==="mouseout"||e==="pointerout",V&&n!==Qo&&(he=n.relatedTarget||n.fromElement)&&(Pl(he)||he[Wl]))break e;if((Z||V)&&(V=W.window===W?W:(V=W.ownerDocument)?V.defaultView||V.parentWindow:window,Z?(he=n.relatedTarget||n.toElement,Z=Y,he=he?Pl(he):null,he!==null&&(Ge=f(he),Ee=he.tag,he!==Ge||Ee!==5&&Ee!==27&&Ee!==6)&&(he=null)):(Z=null,he=Y),Z!==he)){if(Ee=cf,te="onMouseLeave",H="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(Ee=df,te="onPointerLeave",H="onPointerEnter",L="pointer"),Ge=Z==null?V:Va(Z),G=he==null?V:Va(he),V=new Ee(te,L+"leave",Z,n,W),V.target=Ge,V.relatedTarget=G,te=null,Pl(W)===Y&&(Ee=new Ee(H,L+"enter",he,n,W),Ee.target=G,Ee.relatedTarget=Ge,te=Ee),Ge=te,Z&&he)t:{for(Ee=Gy,H=Z,L=he,G=0,te=H;te;te=Ee(te))G++;te=0;for(var Se=L;Se;Se=Ee(Se))te++;for(;0<G-te;)H=Ee(H),G--;for(;0<te-G;)L=Ee(L),te--;for(;G--;){if(H===L||L!==null&&H===L.alternate){Ee=H;break t}H=Ee(H),L=Ee(L)}Ee=null}else Ee=null;Z!==null&&lh(le,V,Z,Ee,!1),he!==null&&Ge!==null&&lh(le,Ge,he,Ee,!0)}}e:{if(V=Y?Va(Y):window,Z=V.nodeName&&V.nodeName.toLowerCase(),Z==="select"||Z==="input"&&V.type==="file")var ze=xf;else if(yf(V))if(Sf)ze=Pb;else{ze=Jb;var me=Kb}else Z=V.nodeName,!Z||Z.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?Y&&$o(Y.elementType)&&(ze=xf):ze=Wb;if(ze&&(ze=ze(e,Y))){vf(le,ze,n,W);break e}me&&me(e,V,Y),e==="focusout"&&Y&&V.type==="number"&&Y.memoizedProps.value!=null&&Io(V,"number",V.value)}switch(me=Y?Va(Y):window,e){case"focusin":(yf(me)||me.contentEditable==="true")&&(sa=me,ss=Y,Pa=null);break;case"focusout":Pa=ss=sa=null;break;case"mousedown":us=!0;break;case"contextmenu":case"mouseup":case"dragend":us=!1,_f(le,n,W);break;case"selectionchange":if(ty)break;case"keydown":case"keyup":_f(le,n,W)}var Te;if(as)e:{switch(e){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else oa?pf(e,n)&&(Oe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Oe="onCompositionStart");Oe&&(gf&&n.locale!=="ko"&&(oa||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&oa&&(Te=sf()):($n=W,Po="value"in $n?$n.value:$n.textContent,oa=!0)),me=Vi(Y,Oe),0<me.length&&(Oe=new ff(Oe,e,null,n,W),le.push({event:Oe,listeners:me}),Te?Oe.data=Te:(Te=bf(n),Te!==null&&(Oe.data=Te)))),(Te=Xb?Zb(e,n):Ib(e,n))&&(Oe=Vi(Y,"onBeforeInput"),0<Oe.length&&(me=new ff("onBeforeInput","beforeinput",null,n,W),le.push({event:me,listeners:Oe}),me.data=Te)),Uy(le,e,Y,n,W)}th(le,t)})}function Nr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vi(e,t){for(var n=t+"Capture",l=[];e!==null;){var i=e,u=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||u===null||(i=Xa(e,n),i!=null&&l.unshift(Nr(e,i,u)),i=Xa(e,t),i!=null&&l.push(Nr(e,i,u))),e.tag===3)return l;e=e.return}return[]}function Gy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function lh(e,t,n,l,i){for(var u=t._reactName,h=[];n!==null&&n!==l;){var w=n,O=w.alternate,Y=w.stateNode;if(w=w.tag,O!==null&&O===l)break;w!==5&&w!==26&&w!==27||Y===null||(O=Y,i?(Y=Xa(n,u),Y!=null&&h.unshift(Nr(n,Y,O))):i||(Y=Xa(n,u),Y!=null&&h.push(Nr(n,Y,O)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var Yy=/\r\n?/g,Vy=/\u0000|\uFFFD/g;function ah(e){return(typeof e=="string"?e:""+e).replace(Yy,`
|
|
9
|
-
`).replace(Vy,"")}function rh(e,t){return t=ah(t),ah(e)===t}function qe(e,t,n,l,i,u){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||aa(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&aa(e,""+l);break;case"className":$r(e,"class",l);break;case"tabIndex":$r(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":$r(e,n,l);break;case"style":af(e,l,u);break;case"data":if(t!=="object"){$r(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=Kr(""+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 u=="function"&&(n==="formAction"?(t!=="input"&&qe(e,t,"name",i.name,i,null),qe(e,t,"formEncType",i.formEncType,i,null),qe(e,t,"formMethod",i.formMethod,i,null),qe(e,t,"formTarget",i.formTarget,i,null)):(qe(e,t,"encType",i.encType,i,null),qe(e,t,"method",i.method,i,null),qe(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Kr(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=wn);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(o(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(o(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=Kr(""+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),Ir(e,"popover",l);break;case"xlinkActuate":En(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":En(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":En(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":En(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":En(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":En(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":En(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":En(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":En(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ir(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=yb.get(n)||n,Ir(e,n,l))}}function Mu(e,t,n,l,i,u){switch(n){case"style":af(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"children":typeof l=="string"?aa(e,l):(typeof l=="number"||typeof l=="bigint")&&aa(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=wn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qc.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),u=e[_t]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,i),typeof l=="function")){typeof u!="function"&&u!==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,""):Ir(e,n,l)}}}function yt(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,u;for(u in n)if(n.hasOwnProperty(u)){var h=n[u];if(h!=null)switch(u){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:qe(e,t,u,h,n,null)}}i&&qe(e,t,"srcSet",n.srcSet,n,null),l&&qe(e,t,"src",n.src,n,null);return;case"input":_e("invalid",e);var w=u=h=i=null,O=null,Y=null;for(l in n)if(n.hasOwnProperty(l)){var W=n[l];if(W!=null)switch(l){case"name":i=W;break;case"type":h=W;break;case"checked":O=W;break;case"defaultChecked":Y=W;break;case"value":u=W;break;case"defaultValue":w=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(o(137,t));break;default:qe(e,t,l,W,n,null)}}ef(e,u,w,O,Y,h,i,!1);return;case"select":_e("invalid",e),l=h=u=null;for(i in n)if(n.hasOwnProperty(i)&&(w=n[i],w!=null))switch(i){case"value":u=w;break;case"defaultValue":h=w;break;case"multiple":l=w;default:qe(e,t,i,w,n,null)}t=u,n=h,e.multiple=!!l,t!=null?la(e,!!l,t,!1):n!=null&&la(e,!!l,n,!0);return;case"textarea":_e("invalid",e),u=i=l=null;for(h in n)if(n.hasOwnProperty(h)&&(w=n[h],w!=null))switch(h){case"value":l=w;break;case"defaultValue":i=w;break;case"children":u=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(o(91));break;default:qe(e,t,h,w,n,null)}nf(e,l,i,u);return;case"option":for(O in n)n.hasOwnProperty(O)&&(l=n[O],l!=null)&&(O==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":qe(e,t,O,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<wr.length;l++)_e(wr[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(Y in n)if(n.hasOwnProperty(Y)&&(l=n[Y],l!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:qe(e,t,Y,l,n,null)}return;default:if($o(t)){for(W in n)n.hasOwnProperty(W)&&(l=n[W],l!==void 0&&Mu(e,t,W,l,n,void 0));return}}for(w in n)n.hasOwnProperty(w)&&(l=n[w],l!=null&&qe(e,t,w,l,n,null))}function Xy(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,u=null,h=null,w=null,O=null,Y=null,W=null;for(Z in n){var le=n[Z];if(n.hasOwnProperty(Z)&&le!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":O=le;default:l.hasOwnProperty(Z)||qe(e,t,Z,null,l,le)}}for(var V in l){var Z=l[V];if(le=n[V],l.hasOwnProperty(V)&&(Z!=null||le!=null))switch(V){case"type":u=Z;break;case"name":i=Z;break;case"checked":Y=Z;break;case"defaultChecked":W=Z;break;case"value":h=Z;break;case"defaultValue":w=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(o(137,t));break;default:Z!==le&&qe(e,t,V,Z,l,le)}}Zo(e,h,w,O,Y,W,u,i);return;case"select":Z=h=w=V=null;for(u in n)if(O=n[u],n.hasOwnProperty(u)&&O!=null)switch(u){case"value":break;case"multiple":Z=O;default:l.hasOwnProperty(u)||qe(e,t,u,null,l,O)}for(i in l)if(u=l[i],O=n[i],l.hasOwnProperty(i)&&(u!=null||O!=null))switch(i){case"value":V=u;break;case"defaultValue":w=u;break;case"multiple":h=u;default:u!==O&&qe(e,t,i,u,l,O)}t=w,n=h,l=Z,V!=null?la(e,!!n,V,!1):!!l!=!!n&&(t!=null?la(e,!!n,t,!0):la(e,!!n,n?[]:"",!1));return;case"textarea":Z=V=null;for(w in n)if(i=n[w],n.hasOwnProperty(w)&&i!=null&&!l.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:qe(e,t,w,null,l,i)}for(h in l)if(i=l[h],u=n[h],l.hasOwnProperty(h)&&(i!=null||u!=null))switch(h){case"value":V=i;break;case"defaultValue":Z=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==u&&qe(e,t,h,i,l,u)}tf(e,V,Z);return;case"option":for(var he in n)V=n[he],n.hasOwnProperty(he)&&V!=null&&!l.hasOwnProperty(he)&&(he==="selected"?e.selected=!1:qe(e,t,he,null,l,V));for(O in l)V=l[O],Z=n[O],l.hasOwnProperty(O)&&V!==Z&&(V!=null||Z!=null)&&(O==="selected"?e.selected=V&&typeof V!="function"&&typeof V!="symbol":qe(e,t,O,V,l,Z));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ee in n)V=n[Ee],n.hasOwnProperty(Ee)&&V!=null&&!l.hasOwnProperty(Ee)&&qe(e,t,Ee,null,l,V);for(Y in l)if(V=l[Y],Z=n[Y],l.hasOwnProperty(Y)&&V!==Z&&(V!=null||Z!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(o(137,t));break;default:qe(e,t,Y,V,l,Z)}return;default:if($o(t)){for(var Ge in n)V=n[Ge],n.hasOwnProperty(Ge)&&V!==void 0&&!l.hasOwnProperty(Ge)&&Mu(e,t,Ge,void 0,l,V);for(W in l)V=l[W],Z=n[W],!l.hasOwnProperty(W)||V===Z||V===void 0&&Z===void 0||Mu(e,t,W,V,l,Z);return}}for(var H in n)V=n[H],n.hasOwnProperty(H)&&V!=null&&!l.hasOwnProperty(H)&&qe(e,t,H,null,l,V);for(le in l)V=l[le],Z=n[le],!l.hasOwnProperty(le)||V===Z||V==null&&Z==null||qe(e,t,le,V,l,Z)}function ih(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Zy(){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],u=i.transferSize,h=i.initiatorType,w=i.duration;if(u&&w&&ih(h)){for(h=0,w=i.responseEnd,l+=1;l<n.length;l++){var O=n[l],Y=O.startTime;if(Y>w)break;var W=O.transferSize,le=O.initiatorType;W&&ih(le)&&(O=O.responseEnd,h+=W*(O<w?1:(w-Y)/(O-Y)))}if(--l,t+=8*(u+h)/(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 zu=null,Lu=null;function Xi(e){return e.nodeType===9?e:e.ownerDocument}function oh(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 sh(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 Bu(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 Uu=null;function Iy(){var e=window.event;return e&&e.type==="popstate"?e===Uu?!1:(Uu=e,!0):(Uu=null,!1)}var uh=typeof setTimeout=="function"?setTimeout:void 0,$y=typeof clearTimeout=="function"?clearTimeout:void 0,ch=typeof Promise=="function"?Promise:void 0,Qy=typeof queueMicrotask=="function"?queueMicrotask:typeof ch<"u"?function(e){return ch.resolve(null).then(e).catch(Ky)}:uh;function Ky(e){setTimeout(function(){throw e})}function fl(e){return e==="head"}function fh(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),za(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Cr(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Cr(n);for(var u=n.firstChild;u;){var h=u.nextSibling,w=u.nodeName;u[Ya]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=h}}else n==="body"&&Cr(e.ownerDocument.body);n=i}while(n);za(t)}function dh(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 Hu(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":Hu(n),Vo(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Jy(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[Ya])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==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(u=e.getAttribute("src"),(u!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=rn(e.nextSibling),e===null)break}return null}function Wy(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=rn(e.nextSibling),e===null))return null;return e}function gh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=rn(e.nextSibling),e===null))return null;return e}function Fu(e){return e.data==="$?"||e.data==="$~"}function qu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Py(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 rn(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 Gu=null;function hh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return rn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function mh(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 ph(e,t,n){switch(t=Xi(n),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Cr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Vo(e)}var on=new Map,bh=new Set;function Zi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Hn=z.d;z.d={f:e0,r:t0,D:n0,C:l0,L:a0,m:r0,X:o0,S:i0,M:s0};function e0(){var e=Hn.f(),t=Bi();return e||t}function t0(e){var t=ea(e);t!==null&&t.tag===5&&t.type==="form"?Md(t):Hn.r(e)}var ka=typeof document>"u"?null:document;function yh(e,t,n){var l=ka;if(l&&typeof t=="string"&&t){var i=Wt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),bh.has(i)||(bh.add(i),e={rel:e,crossOrigin:n,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),yt(t,"link",e),dt(t),l.head.appendChild(t)))}}function n0(e){Hn.D(e),yh("dns-prefetch",e,null)}function l0(e,t){Hn.C(e,t),yh("preconnect",e,t)}function a0(e,t,n){Hn.L(e,t,n);var l=ka;if(l&&e&&t){var i='link[rel="preload"][as="'+Wt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Wt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Wt(n.imageSizes)+'"]')):i+='[href="'+Wt(e)+'"]';var u=i;switch(t){case"style":u=Da(e);break;case"script":u=Ma(e)}on.has(u)||(e=y({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),on.set(u,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(Ar(u))||t==="script"&&l.querySelector(Tr(u))||(t=l.createElement("link"),yt(t,"link",e),dt(t),l.head.appendChild(t)))}}function r0(e,t){Hn.m(e,t);var n=ka;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Wt(l)+'"][href="'+Wt(e)+'"]',u=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ma(e)}if(!on.has(u)&&(e=y({rel:"modulepreload",href:e},t),on.set(u,e),n.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Tr(u)))return}l=n.createElement("link"),yt(l,"link",e),dt(l),n.head.appendChild(l)}}}function i0(e,t,n){Hn.S(e,t,n);var l=ka;if(l&&e){var i=ta(l).hoistableStyles,u=Da(e);t=t||"default";var h=i.get(u);if(!h){var w={loading:0,preload:null};if(h=l.querySelector(Ar(u)))w.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=on.get(u))&&Yu(e,n);var O=h=l.createElement("link");dt(O),yt(O,"link",e),O._p=new Promise(function(Y,W){O.onload=Y,O.onerror=W}),O.addEventListener("load",function(){w.loading|=1}),O.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Ii(h,t,l)}h={type:"stylesheet",instance:h,count:1,state:w},i.set(u,h)}}}function o0(e,t){Hn.X(e,t);var n=ka;if(n&&e){var l=ta(n).hoistableScripts,i=Ma(e),u=l.get(i);u||(u=n.querySelector(Tr(i)),u||(e=y({src:e,async:!0},t),(t=on.get(i))&&Vu(e,t),u=n.createElement("script"),dt(u),yt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(i,u))}}function s0(e,t){Hn.M(e,t);var n=ka;if(n&&e){var l=ta(n).hoistableScripts,i=Ma(e),u=l.get(i);u||(u=n.querySelector(Tr(i)),u||(e=y({src:e,async:!0,type:"module"},t),(t=on.get(i))&&Vu(e,t),u=n.createElement("script"),dt(u),yt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(i,u))}}function vh(e,t,n,l){var i=(i=fe.current)?Zi(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Da(n.href),n=ta(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=Da(n.href);var u=ta(i).hoistableStyles,h=u.get(e);if(h||(i=i.ownerDocument||i,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,h),(u=i.querySelector(Ar(e)))&&!u._p&&(h.instance=u,h.state.loading=5),on.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},on.set(e,n),u||u0(i,e,n,h.state))),t&&l===null)throw Error(o(528,""));return h}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ma(n),n=ta(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(o(444,e))}}function Da(e){return'href="'+Wt(e)+'"'}function Ar(e){return'link[rel="stylesheet"]['+e+"]"}function xh(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function u0(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}),yt(t,"link",n),dt(t),e.head.appendChild(t))}function Ma(e){return'[src="'+Wt(e)+'"]'}function Tr(e){return"script[async]"+e}function Sh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Wt(n.href)+'"]');if(l)return t.instance=l,dt(l),l;var i=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),dt(l),yt(l,"style",i),Ii(l,n.precedence,e),t.instance=l;case"stylesheet":i=Da(n.href);var u=e.querySelector(Ar(i));if(u)return t.state.loading|=4,t.instance=u,dt(u),u;l=xh(n),(i=on.get(i))&&Yu(l,i),u=(e.ownerDocument||e).createElement("link"),dt(u);var h=u;return h._p=new Promise(function(w,O){h.onload=w,h.onerror=O}),yt(u,"link",l),t.state.loading|=4,Ii(u,n.precedence,e),t.instance=u;case"script":return u=Ma(n.src),(i=e.querySelector(Tr(u)))?(t.instance=i,dt(i),i):(l=n,(i=on.get(u))&&(l=y({},n),Vu(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),dt(i),yt(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Ii(l,n.precedence,e));return t.instance}function Ii(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,u=i,h=0;h<l.length;h++){var w=l[h];if(w.dataset.precedence===t)u=w;else if(u!==i)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Yu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Vu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $i=null;function Eh(e,t,n){if($i===null){var l=new Map,i=$i=new Map;i.set(n,l)}else i=$i,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 u=n[i];if(!(u[Ya]||u[ht]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var h=u.getAttribute(t)||"";h=e+h;var w=l.get(h);w?w.push(u):l.set(h,[u])}}return l}function wh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function c0(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;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 Nh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function f0(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=Da(l.href),u=t.querySelector(Ar(i));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Qi.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,dt(u);return}u=t.ownerDocument||t,l=xh(l),(i=on.get(i))&&Yu(l,i),u=u.createElement("link"),dt(u);var h=u;h._p=new Promise(function(w,O){h.onload=w,h.onerror=O}),yt(u,"link",l),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Qi.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Xu=0;function d0(e,t){return e.stylesheets&&e.count===0&&Ji(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&Ji(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Xu===0&&(Xu=62500*Zy());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ji(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Xu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function Qi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ji(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ki=null;function Ji(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ki=new Map,t.forEach(g0,e),Ki=null,Qi.call(e))}function g0(e,t){if(!(t.state.loading&4)){var n=Ki.get(e);if(n)var l=n.get(null);else{n=new Map,Ki.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<i.length;u++){var h=i[u];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),l=h)}l&&n.set(null,l)}i=t.instance,h=i.getAttribute("data-precedence"),u=n.get(h)||l,u===l&&n.set(null,i),n.set(h,i),this.count++,l=Qi.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),u?u.parentNode.insertBefore(i,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Rr={$$typeof:D,Provider:null,Consumer:null,_currentValue:k,_currentValue2:k,_threadCount:0};function h0(e,t,n,l,i,u,h,w,O){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=Zn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zn(0),this.hiddenUpdates=Zn(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function Ch(e,t,n,l,i,u,h,w,O,Y,W,le){return e=new h0(e,t,n,h,O,Y,W,le,w),t=1,u===!0&&(t|=24),u=Gt(3,null,null,t),e.current=u,u.stateNode=e,t=Ns(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:t},Rs(u),e}function Ah(e){return e?(e=fa,e):fa}function Th(e,t,n,l,i,u){i=Ah(i),l.context===null?l.context=i:l.pendingContext=i,l=el(t),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=tl(e,l,t),n!==null&&(zt(n,e,t),ir(n,e,t))}function Rh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Zu(e,t){Rh(e,t),(e=e.alternate)&&Rh(e,t)}function _h(e){if(e.tag===13||e.tag===31){var t=kl(e,67108864);t!==null&&zt(t,e,67108864),Zu(e,67108864)}}function jh(e){if(e.tag===13||e.tag===31){var t=It();t=qo(t);var n=kl(e,t);n!==null&&zt(n,e,t),Zu(e,t)}}var Wi=!0;function m0(e,t,n,l){var i=E.T;E.T=null;var u=z.p;try{z.p=2,Iu(e,t,n,l)}finally{z.p=u,E.T=i}}function p0(e,t,n,l){var i=E.T;E.T=null;var u=z.p;try{z.p=8,Iu(e,t,n,l)}finally{z.p=u,E.T=i}}function Iu(e,t,n,l){if(Wi){var i=$u(l);if(i===null)Du(e,t,l,Pi,n),kh(e,l);else if(y0(i,e,t,n,l))l.stopPropagation();else if(kh(e,l),t&4&&-1<b0.indexOf(e)){for(;i!==null;){var u=ea(i);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=ve(u.pendingLanes);if(h!==0){var w=u;for(w.pendingLanes|=2,w.entangledLanes|=2;h;){var O=1<<31-vt(h);w.entanglements[1]|=O,h&=~O}yn(u),(Be&6)===0&&(zi=$e()+500,Er(0))}}break;case 31:case 13:w=kl(u,2),w!==null&&zt(w,u,2),Bi(),Zu(u,2)}if(u=$u(l),u===null&&Du(e,t,l,Pi,n),u===i)break;i=u}i!==null&&l.stopPropagation()}else Du(e,t,l,null,n)}}function $u(e){return e=Ko(e),Qu(e)}var Pi=null;function Qu(e){if(Pi=null,e=Pl(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=p(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 Pi=e,null}function Oh(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(Cl()){case gn:return 2;case Yr:return 8;case Al:case qa:return 32;case Vr:return 268435456;default:return 32}default:return 32}}var Ku=!1,dl=null,gl=null,hl=null,_r=new Map,jr=new Map,ml=[],b0="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 kh(e,t){switch(e){case"focusin":case"focusout":dl=null;break;case"dragenter":case"dragleave":gl=null;break;case"mouseover":case"mouseout":hl=null;break;case"pointerover":case"pointerout":_r.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jr.delete(t.pointerId)}}function Or(e,t,n,l,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[i]},t!==null&&(t=ea(t),t!==null&&_h(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function y0(e,t,n,l,i){switch(t){case"focusin":return dl=Or(dl,e,t,n,l,i),!0;case"dragenter":return gl=Or(gl,e,t,n,l,i),!0;case"mouseover":return hl=Or(hl,e,t,n,l,i),!0;case"pointerover":var u=i.pointerId;return _r.set(u,Or(_r.get(u)||null,e,t,n,l,i)),!0;case"gotpointercapture":return u=i.pointerId,jr.set(u,Or(jr.get(u)||null,e,t,n,l,i)),!0}return!1}function Dh(e){var t=Pl(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,Zc(e.priority,function(){jh(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,Zc(e.priority,function(){jh(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 eo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=$u(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Qo=l,n.target.dispatchEvent(l),Qo=null}else return t=ea(n),t!==null&&_h(t),e.blockedOn=n,!1;t.shift()}return!0}function Mh(e,t,n){eo(e)&&n.delete(t)}function v0(){Ku=!1,dl!==null&&eo(dl)&&(dl=null),gl!==null&&eo(gl)&&(gl=null),hl!==null&&eo(hl)&&(hl=null),_r.forEach(Mh),jr.forEach(Mh)}function to(e,t){e.blockedOn===t&&(e.blockedOn=null,Ku||(Ku=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,v0)))}var no=null;function zh(e){no!==e&&(no=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){no===e&&(no=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(Qu(l||n)===null)continue;break}var u=ea(n);u!==null&&(e.splice(t,3),t-=3,$s(u,{pending:!0,data:i,method:n.method,action:l},l,i))}}))}function za(e){function t(O){return to(O,e)}dl!==null&&to(dl,e),gl!==null&&to(gl,e),hl!==null&&to(hl,e),_r.forEach(t),jr.forEach(t);for(var n=0;n<ml.length;n++){var l=ml[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ml.length&&(n=ml[0],n.blockedOn===null);)Dh(n),n.blockedOn===null&&ml.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var i=n[l],u=n[l+1],h=i[_t]||null;if(typeof u=="function")h||zh(n);else if(h){var w=null;if(u&&u.hasAttribute("formAction")){if(i=u,h=u[_t]||null)w=h.formAction;else if(Qu(i)!==null)continue}else w=h.action;typeof w=="function"?n[l+1]=w:(n.splice(l,3),l-=3),zh(n)}}}function Lh(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(h){return i=h})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,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 Ju(e){this._internalRoot=e}lo.prototype.render=Ju.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,l=It();Th(n,l,e,t,null,null)},lo.prototype.unmount=Ju.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Th(e.current,2,null,e,null,null),Bi(),t[Wl]=null}};function lo(e){this._internalRoot=e}lo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ml.length&&t!==0&&t<ml[n].priority;n++);ml.splice(n,0,e),n===0&&Dh(e)}};var Bh=r.version;if(Bh!=="19.2.3")throw Error(o(527,Bh,"19.2.3"));z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=m(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var x0={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:E,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ao=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ao.isDisabled&&ao.supportsFiber)try{Xn=ao.inject(x0),Nt=ao}catch{}}return Dr.createRoot=function(e,t){if(!c(e))throw Error(o(299));var n=!1,l="",i=Vd,u=Xd,h=Zd;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&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Ch(e,1,!1,null,null,n,l,null,i,u,h,Lh),e[Wl]=t.current,ku(e),new Ju(t)},Dr.hydrateRoot=function(e,t,n){if(!c(e))throw Error(o(299));var l=!1,i="",u=Vd,h=Xd,w=Zd,O=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(w=n.onRecoverableError),n.formState!==void 0&&(O=n.formState)),t=Ch(e,1,!0,t,n??null,l,i,O,u,h,w,Lh),t.context=Ah(null),n=t.current,l=It(),l=qo(l),i=el(l),i.callback=null,tl(n,i,l),n=l,t.current.lanes=n,Ga(t,n),yn(t),e[Wl]=t.current,ku(e),new lo(t)},Dr.version="19.2.3",Dr}var Ih;function j0(){if(Ih)return ec.exports;Ih=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(r){console.error(r)}}return a(),ec.exports=_0(),ec.exports}var O0=j0();const k0=Im(O0),Km=["shift","alt","meta","mod","ctrl","control"],D0={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function El(a){return(D0[a.trim()]||a.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function Jm(a){return Km.includes(a)}function ac(a,r=","){return a.toLowerCase().split(r)}function rc(a,r="+",s=">",o=!1,c){let f=[],d=!1;a=a.trim(),a.includes(s)?(d=!0,f=a.toLocaleLowerCase().split(s).map(m=>El(m))):f=a.toLocaleLowerCase().split(r).map(m=>El(m));const p={alt:f.includes("alt"),ctrl:f.includes("ctrl")||f.includes("control"),shift:f.includes("shift"),meta:f.includes("meta"),mod:f.includes("mod"),useKey:o},b=f.filter(m=>!Km.includes(m));return{...p,keys:b,description:c,isSequence:d,hotkey:a}}typeof document<"u"&&(document.addEventListener("keydown",a=>{a.code!==void 0&&Wm([El(a.code)])}),document.addEventListener("keyup",a=>{a.code!==void 0&&Pm([El(a.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{qn.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{qn.clear()},0)}));const qn=new Set;function jc(a){return Array.isArray(a)}function M0(a,r=","){return(jc(a)?a:a.split(r)).every(s=>qn.has(s.trim().toLowerCase()))}function Wm(a){const r=Array.isArray(a)?a:[a];qn.has("meta")&&qn.forEach(s=>!Jm(s)&&qn.delete(s.toLowerCase())),r.forEach(s=>qn.add(s.toLowerCase()))}function Pm(a){const r=Array.isArray(a)?a:[a];a==="meta"?qn.clear():r.forEach(s=>qn.delete(s.toLowerCase()))}function z0(a,r,s){(typeof s=="function"&&s(a,r)||s===!0)&&a.preventDefault()}function L0(a,r,s){return typeof s=="function"?s(a,r):s===!0||s===void 0}const B0=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function U0(a){return ep(a,B0)}function ep(a,r=!1){const{target:s,composed:o}=a;let c,f;return H0(s)&&o?(c=a.composedPath()[0]&&a.composedPath()[0].tagName,f=a.composedPath()[0]&&a.composedPath()[0].role):(c=s&&s.tagName,f=s&&s.role),jc(r)?!!(c&&r&&r.some(d=>d.toLowerCase()===c.toLowerCase()||d===f)):!!(c&&r&&r)}function H0(a){return!!a.tagName&&!a.tagName.startsWith("-")&&a.tagName.includes("-")}function F0(a,r){return a.length===0&&r?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):r?a.some(s=>r.includes(s))||a.includes("*"):!0}const q0=(a,r,s=!1)=>{const{alt:o,meta:c,mod:f,shift:d,ctrl:p,keys:b,useKey:m}=r,{code:S,key:y,ctrlKey:C,metaKey:_,shiftKey:x,altKey:v}=a,T=El(S);if(m&&b?.length===1&&b.includes(y))return!0;if(!b?.includes(T)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(T))return!1;if(!s){if(o!==v&&T!=="alt"||d!==x&&T!=="shift")return!1;if(f){if(!_&&!C)return!1}else if(c!==_&&T!=="meta"&&T!=="os"||p!==C&&T!=="ctrl"&&T!=="control")return!1}return b&&b.length===1&&b.includes(T)?!0:b?M0(b):!b},tp=A.createContext(void 0),G0=()=>A.useContext(tp);function Y0({addHotkey:a,removeHotkey:r,children:s}){return g.jsx(tp.Provider,{value:{addHotkey:a,removeHotkey:r},children:s})}function Oc(a,r){return a&&r&&typeof a=="object"&&typeof r=="object"?Object.keys(a).length===Object.keys(r).length&&Object.keys(a).reduce((s,o)=>s&&Oc(a[o],r[o]),!0):a===r}const np=A.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),Ao=()=>A.useContext(np),V0=({initiallyActiveScopes:a=["*"],children:r})=>{const[s,o]=A.useState(a),[c,f]=A.useState([]),d=A.useCallback(y=>{o(C=>C.includes("*")?[y]:Array.from(new Set([...C,y])))},[]),p=A.useCallback(y=>{o(C=>C.filter(_=>_!==y))},[]),b=A.useCallback(y=>{o(C=>C.includes(y)?C.filter(_=>_!==y):C.includes("*")?[y]:Array.from(new Set([...C,y])))},[]),m=A.useCallback(y=>{f(C=>[...C,y])},[]),S=A.useCallback(y=>{f(C=>C.filter(_=>!Oc(_,y)))},[]);return g.jsx(np.Provider,{value:{activeScopes:s,hotkeys:c,enableScope:d,disableScope:p,toggleScope:b},children:g.jsx(Y0,{addHotkey:m,removeHotkey:S,children:r})})};function X0(a){const r=A.useRef(void 0);return Oc(r.current,a)||(r.current=a),r.current}const $h=a=>{a.stopPropagation(),a.preventDefault(),a.stopImmediatePropagation()},Z0=typeof window<"u"?A.useLayoutEffect:A.useEffect;function Ye(a,r,s,o){const c=A.useRef(null),f=A.useRef(!1),d=Array.isArray(s)?Array.isArray(o)?void 0:o:s,p=jc(a)?a.join(d?.delimiter):a,b=Array.isArray(s)?s:Array.isArray(o)?o:void 0,m=A.useCallback(r,b??[]),S=A.useRef(m);b?S.current=m:S.current=r;const y=X0(d),{activeScopes:C}=Ao(),_=G0();return Z0(()=>{if(y?.enabled===!1||!F0(C,y?.scopes))return;let x=[],v;const T=(M,F=!1)=>{if(!(U0(M)&&!ep(M,y?.enableOnFormTags))){if(c.current!==null){const ee=c.current.getRootNode();if((ee instanceof Document||ee instanceof ShadowRoot)&&ee.activeElement!==c.current&&!c.current.contains(ee.activeElement)){$h(M);return}}M.target?.isContentEditable&&!y?.enableOnContentEditable||ac(p,y?.delimiter).forEach(ee=>{if(ee.includes(y?.splitKey??"+")&&ee.includes(y?.sequenceSplitKey??">")){console.warn(`Hotkey ${ee} contains both ${y?.splitKey??"+"} and ${y?.sequenceSplitKey??">"} which is not supported.`);return}const Q=rc(ee,y?.splitKey,y?.sequenceSplitKey,y?.useKey,y?.description);if(Q.isSequence){v=setTimeout(()=>{x=[]},y?.sequenceTimeoutMs??1e3);const ce=Q.useKey?M.key:El(M.code);if(Jm(ce.toLowerCase()))return;x.push(ce);const q=Q.keys?.[x.length-1];if(ce!==q){x=[],v&&clearTimeout(v);return}x.length===Q.keys?.length&&(S.current(M,Q),v&&clearTimeout(v),x=[])}else if(q0(M,Q,y?.ignoreModifiers)||Q.keys?.includes("*")){if(y?.ignoreEventWhen?.(M)||F&&f.current)return;if(z0(M,Q,y?.preventDefault),!L0(M,Q,y?.enabled)){$h(M);return}S.current(M,Q),F||(f.current=!0)}})}},N=M=>{M.code!==void 0&&(Wm(El(M.code)),(y?.keydown===void 0&&y?.keyup!==!0||y?.keydown)&&T(M))},R=M=>{M.code!==void 0&&(Pm(El(M.code)),f.current=!1,y?.keyup&&T(M,!0))},D=c.current||d?.document||document;return D.addEventListener("keyup",R,d?.eventListenerOptions),D.addEventListener("keydown",N,d?.eventListenerOptions),_&&ac(p,y?.delimiter).forEach(M=>_.addHotkey(rc(M,y?.splitKey,y?.sequenceSplitKey,y?.useKey,y?.description))),()=>{D.removeEventListener("keyup",R,d?.eventListenerOptions),D.removeEventListener("keydown",N,d?.eventListenerOptions),_&&ac(p,y?.delimiter).forEach(M=>_.removeHotkey(rc(M,y?.splitKey,y?.sequenceSplitKey,y?.useKey,y?.description))),x=[],v&&clearTimeout(v)}},[p,y,C]),c}const I0=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$0=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,s,o)=>o?o.toUpperCase():s.toLowerCase()),Qh=a=>{const r=$0(a);return r.charAt(0).toUpperCase()+r.slice(1)},lp=(...a)=>a.filter((r,s,o)=>!!r&&r.trim()!==""&&o.indexOf(r)===s).join(" ").trim(),Q0=a=>{for(const r in a)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};var K0={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"};const J0=A.forwardRef(({color:a="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:c="",children:f,iconNode:d,...p},b)=>A.createElement("svg",{ref:b,...K0,width:r,height:r,stroke:a,strokeWidth:o?Number(s)*24/Number(r):s,className:lp("lucide",c),...!f&&!Q0(p)&&{"aria-hidden":"true"},...p},[...d.map(([m,S])=>A.createElement(m,S)),...Array.isArray(f)?f:[f]]));const Ie=(a,r)=>{const s=A.forwardRef(({className:o,...c},f)=>A.createElement(J0,{ref:f,iconNode:r,className:lp(`lucide-${I0(Qh(a))}`,`lucide-${a}`,o),...c}));return s.displayName=Qh(a),s};const W0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ur=Ie("check",W0);const P0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Fr=Ie("chevron-down",P0);const ev=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ap=Ie("chevron-right",ev);const tv=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],nv=Ie("chevrons-down-up",tv);const lv=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],av=Ie("chevrons-up-down",lv);const rv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],iv=Ie("columns-2",rv);const ov=[["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"}]],rp=Ie("copy",ov);const sv=[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]],uv=Ie("eraser",sv);const cv=[["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:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],ip=Ie("file-diff",cv);const fv=[["path",{d:"M12.659 22H18a2 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 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],op=Ie("file-pen",fv);const dv=[["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:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],sp=Ie("file-plus",dv);const gv=[["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:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]],up=Ie("file-x",gv);const hv=[["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"}]],cp=Ie("folder-open",hv);const mv=[["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"}]],pv=Ie("folder",mv);const bv=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],yv=Ie("keyboard",bv);const vv=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],xv=Ie("list",vv);const Sv=[["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"}]],fp=Ie("message-square",Sv);const Ev=[["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"}]],wv=Ie("panel-left-close",Ev);const Nv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Cv=Ie("panel-left",Nv);const Av=[["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"}]],Tv=Ie("pen",Av);const Rv=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],_v=Ie("refresh-cw",Rv);const jv=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ov=Ie("search",jv);const kv=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],dp=Ie("settings",kv);const Dv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Mv=Ie("square",Dv);const zv=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],Lv=Ie("text-align-start",zv);const Bv=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],kc=Ie("x",Bv);function gp({checked:a,onChange:r,label:s,className:o="",title:c}){const f=p=>{p.stopPropagation(),r(!a)},d=p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),p.stopPropagation(),r(!a))};return g.jsxs("div",{className:`flex items-center gap-2 text-xs text-github-text-primary cursor-pointer ${o}`,title:c,onClick:f,onKeyDown:d,role:"checkbox","aria-checked":a,tabIndex:0,children:[g.jsx("div",{className:`w-4 h-4 rounded border flex items-center justify-center transition-all duration-200 cursor-pointer ${a?"bg-github-accent border-github-accent":"bg-github-bg-tertiary border-github-text-muted hover:border-github-accent/50"}`,children:a&&g.jsx(Ur,{size:10,className:"text-white"})}),s&&g.jsx("span",{className:"select-none",children:s})]})}function Uv({commentsCount:a,isCopiedAll:r,onCopyAll:s,onDeleteAll:o,onViewAll:c}){const[f,d]=A.useState(!1),p=A.useRef(null);A.useEffect(()=>{const y=C=>{p.current&&!p.current.contains(C.target)&&d(!1)};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[]);const b=()=>{s(),d(!1)},m=()=>{o(),d(!1)},S=()=>{c?.(),d(!1)};return g.jsxs("div",{className:"relative",ref:p,children:[g.jsxs("div",{className:"flex",children:[g.jsxs("button",{onClick:b,className:"text-xs px-3 py-1.5 pr-2 rounded-l transition-all whitespace-nowrap flex items-center gap-1.5",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)",borderRight:"none"},onMouseEnter:y=>{y.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",y.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:y=>{y.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",y.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:`Copy all ${a} comments to AI coding agent`,children:[r?g.jsx(Ur,{size:12}):g.jsx(rp,{size:12}),r?"Copied All!":`Copy All Prompt (${a})`]}),g.jsx("button",{onClick:()=>d(!f),className:"text-xs px-2 py-1.5 rounded-r transition-all flex items-center border-l",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",borderTop:"1px solid var(--color-yellow-btn-border)",borderRight:"1px solid var(--color-yellow-btn-border)",borderBottom:"1px solid var(--color-yellow-btn-border)",borderLeft:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:y=>{y.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",y.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:y=>{y.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",y.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:"More options",children:g.jsx(Fr,{size:12,className:`transition-transform duration-200 ${f?"rotate-180":""}`})})]}),f&&g.jsxs("div",{className:"absolute left-0 right-0 bg-github-bg-primary border border-github-border rounded-b z-50 pb-px",style:{borderTop:"none"},children:[c&&g.jsxs("button",{onClick:S,className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 text-github-text-primary hover:bg-github-bg-tertiary transition-colors",disabled:a===0,children:[g.jsx(xv,{size:12}),"View All Comments"]}),g.jsxs("button",{onClick:m,className:"w-full text-left px-3 py-2 text-xs flex items-center gap-2 text-github-text-primary hover:bg-github-bg-tertiary transition-colors",children:[g.jsx(uv,{size:12}),"Cleanup All Prompt"]})]})]})}function Dc({comment:a,onGeneratePrompt:r,onRemoveComment:s,onUpdateComment:o,onClick:c}){const[f,d]=A.useState(!1),[p,b]=A.useState(!1),[m,S]=A.useState(a.body),y=async N=>{N.stopPropagation();try{const R=r(a);await navigator.clipboard.writeText(R),d(!0),setTimeout(()=>d(!1),2e3)}catch(R){console.error("Failed to copy prompt:",R)}},C=N=>{N.stopPropagation(),b(!0),S(a.body)},_=()=>{b(!1),S(a.body)},x=N=>{N?.stopPropagation(),m.trim()!==a.body&&o(a.id,m.trim()),b(!1)},v=N=>{N.stopPropagation(),s(a.id)},T=N=>{N.key==="Enter"&&(N.metaKey||N.ctrlKey)?(N.preventDefault(),x()):N.key==="Escape"&&(N.preventDefault(),_())};return Ye("escape",()=>{p&&_()},{enableOnFormTags:["textarea"],enabled:p},[p]),Ye("mod+enter",()=>{p&&x()},{enableOnFormTags:["textarea"],enabled:p},[p,m,a.body]),g.jsxs("div",{id:`comment-${a.id}`,className:`p-3 bg-github-bg-tertiary border border-yellow-600/50 rounded-md border-l-4 border-l-yellow-400 shadow-sm transition-all ${c?"hover:shadow-md cursor-pointer":""}`,onClick:c,children:[g.jsxs("div",{className:"flex items-center justify-between mb-2 gap-3",children:[g.jsx("div",{className:"flex items-center gap-2 text-xs text-github-text-secondary flex-1 min-w-0",children:g.jsxs("span",{className:"font-mono px-1 py-0.5 rounded overflow-hidden text-ellipsis whitespace-nowrap",style:{backgroundColor:"var(--color-yellow-path-bg)",color:"var(--color-yellow-path-text)"},children:[a.file,":",Array.isArray(a.line)?`${a.line[0]}-${a.line[1]}`:a.line]})}),g.jsx("div",{className:"flex items-center gap-2",children:!p&&g.jsxs(g.Fragment,{children:[g.jsx("button",{onClick:y,className:"text-xs px-2 py-1 rounded transition-all whitespace-nowrap",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:N=>{N.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",N.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:N=>{N.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",N.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:"Copy prompt for AI coding agent",children:f?"Copied!":"Copy Prompt"}),g.jsx("button",{onClick:C,className:"text-xs p-1.5 bg-github-bg-tertiary text-github-text-secondary border border-github-border rounded hover:text-github-text-primary hover:bg-github-bg-primary transition-all",title:"Edit",children:g.jsx(Tv,{size:12})}),g.jsx("button",{onClick:v,className:"text-xs p-1.5 bg-github-bg-tertiary text-green-600 border border-github-border rounded hover:bg-green-500/10 hover:border-green-600 transition-all",title:"Resolve",children:g.jsx(Ur,{size:12})})]})})]}),p?g.jsxs("div",{children:[g.jsx("textarea",{value:m,onChange:N=>S(N.target.value),className:"w-full text-github-text-primary text-sm leading-6 bg-github-bg-secondary border border-github-border rounded px-2 py-1 resize-none focus:outline-none focus:border-blue-600 focus:ring-1 focus:ring-blue-600/30",rows:Math.max(2,m.split(`
|
|
10
|
-
`).length),placeholder:"Edit your comment...",autoFocus:!0,onClick:N=>N.stopPropagation(),onKeyDown:N=>{N.stopPropagation(),T(N)}}),g.jsxs("div",{className:"flex gap-2 justify-end mt-2",children:[g.jsx("button",{type:"button",onClick:_,className:"text-xs px-3 py-1.5 bg-github-bg-tertiary text-github-text-primary border border-github-border rounded hover:opacity-80 transition-all",children:"Cancel"}),g.jsx("button",{type:"button",onClick:x,className:"text-xs px-3 py-1.5 rounded transition-all disabled:opacity-50",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:N=>{N.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",N.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:N=>{N.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",N.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},disabled:!m.trim(),children:"Submit"})]})]}):g.jsx("div",{className:"text-github-text-primary text-sm leading-6 whitespace-pre-wrap",children:a.body})]})}function Hv({isOpen:a,onClose:r,onNavigate:s,comments:o,onRemoveComment:c,onGeneratePrompt:f,onUpdateComment:d}){const[p,b]=A.useState(0),m=A.useRef([]),{enableScope:S,disableScope:y}=Ao(),C=[...o].sort((T,N)=>{const R=T.file.localeCompare(N.file);if(R!==0)return R;const D=Array.isArray(T.line)?T.line[0]:T.line,M=Array.isArray(N.line)?N.line[0]:N.line;return D-M}),_=A.useCallback(T=>{s(T),r()},[s,r]),x=A.useCallback(T=>{confirm(`Delete this comment?
|
|
11
|
-
|
|
12
|
-
"${T.body}"`)&&(c(T.id),p>=C.length-1&&p>0&&b(p-1))},[c,p,C.length]);A.useEffect(()=>(a?(S("comments-list"),y("navigation")):(S("navigation"),y("comments-list"),b(0)),()=>{S("navigation"),y("comments-list")}),[a,S,y]);const v={scopes:"comments-list",enableOnFormTags:!1};return Ye("escape",()=>r(),v,[r]),Ye("j, down",()=>b(T=>Math.min(T+1,C.length-1)),v,[C.length]),Ye("k, up",()=>b(T=>Math.max(T-1,0)),v,[]),Ye("enter",()=>{C[p]&&_(C[p])},v,[p,C,_]),Ye("d",()=>{C[p]&&x(C[p])},v,[p,C,x]),A.useEffect(()=>{m.current[p]&&m.current[p]?.scrollIntoView({behavior:"smooth",block:"nearest"})},[p]),a?g.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[g.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:r}),g.jsxs("div",{className:"relative bg-github-bg-primary border border-github-border rounded-lg shadow-lg max-w-4xl w-full max-h-[80vh] overflow-hidden",children:[g.jsxs("div",{className:"sticky top-0 bg-github-bg-primary border-b border-github-border px-6 py-4",children:[g.jsxs("div",{className:"flex items-center justify-between mb-2",children:[g.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"All Comments"}),g.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close comments list",children:g.jsx(kc,{size:20})})]}),g.jsxs("div",{className:"text-xs text-github-text-secondary",children:[g.jsx("span",{className:"font-mono",children:"j/k"})," or ",g.jsx("span",{className:"font-mono",children:"↑/↓"})," to navigate • ",g.jsx("span",{className:"font-mono",children:"Enter"})," to jump •"," ",g.jsx("span",{className:"font-mono",children:"d"})," to delete • ",g.jsx("span",{className:"font-mono",children:"Esc"})," ","to close"]})]}),g.jsx("div",{className:"overflow-y-auto max-h-[calc(80vh-120px)]",children:g.jsx("div",{className:"p-6",children:C.length===0?g.jsx("p",{className:"text-github-text-secondary text-center",children:"No comments yet"}):g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"space-y-2",children:C.map((T,N)=>g.jsx("div",{ref:R=>{m.current[N]=R},className:`${p===N?"ring-2 ring-blue-500 rounded":""}`,children:g.jsx(Dc,{comment:T,onGeneratePrompt:f,onRemoveComment:c,onUpdateComment:d,onClick:R=>{R.stopPropagation(),b(N),_(T)}})},T.id))}),C.length>0&&g.jsxs("div",{className:"mt-4 pt-4 border-t border-github-border text-xs text-github-text-secondary text-center",children:[p+1," of ",C.length," comments"]})]})})})]})]}):null}function hp(a){return a&&a.split(".").pop()?.toLowerCase()||null}function Fv(a){return a&&a.split("/").pop()||""}const qv=["jpg","jpeg","png","gif","bmp","svg","webp","ico","tiff","tif","avif","heic","heif"];function Gv(a){if(!a)return!1;const r=hp(a);return r?qv.includes(r):!1}class Yv{diff(r,s,o={}){let c;typeof o=="function"?(c=o,o={}):"callback"in o&&(c=o.callback);const f=this.castInput(r,o),d=this.castInput(s,o),p=this.removeEmpty(this.tokenize(f,o)),b=this.removeEmpty(this.tokenize(d,o));return this.diffWithOptionsObj(p,b,o,c)}diffWithOptionsObj(r,s,o,c){var f;const d=R=>{if(R=this.postProcess(R,o),c){setTimeout(function(){c(R)},0);return}else return R},p=s.length,b=r.length;let m=1,S=p+b;o.maxEditLength!=null&&(S=Math.min(S,o.maxEditLength));const y=(f=o.timeout)!==null&&f!==void 0?f:1/0,C=Date.now()+y,_=[{oldPos:-1,lastComponent:void 0}];let x=this.extractCommon(_[0],s,r,0,o);if(_[0].oldPos+1>=b&&x+1>=p)return d(this.buildValues(_[0].lastComponent,s,r));let v=-1/0,T=1/0;const N=()=>{for(let R=Math.max(v,-m);R<=Math.min(T,m);R+=2){let D;const M=_[R-1],F=_[R+1];M&&(_[R-1]=void 0);let ee=!1;if(F){const ce=F.oldPos-R;ee=F&&0<=ce&&ce<p}const Q=M&&M.oldPos+1<b;if(!ee&&!Q){_[R]=void 0;continue}if(!Q||ee&&M.oldPos<F.oldPos?D=this.addToPath(F,!0,!1,0,o):D=this.addToPath(M,!1,!0,1,o),x=this.extractCommon(D,s,r,R,o),D.oldPos+1>=b&&x+1>=p)return d(this.buildValues(D.lastComponent,s,r))||!0;_[R]=D,D.oldPos+1>=b&&(T=Math.min(T,R-1)),x+1>=p&&(v=Math.max(v,R+1))}m++};if(c)(function R(){setTimeout(function(){if(m>S||Date.now()>C)return c(void 0);N()||R()},0)})();else for(;m<=S&&Date.now()<=C;){const R=N();if(R)return R}}addToPath(r,s,o,c,f){const d=r.lastComponent;return d&&!f.oneChangePerToken&&d.added===s&&d.removed===o?{oldPos:r.oldPos+c,lastComponent:{count:d.count+1,added:s,removed:o,previousComponent:d.previousComponent}}:{oldPos:r.oldPos+c,lastComponent:{count:1,added:s,removed:o,previousComponent:d}}}extractCommon(r,s,o,c,f){const d=s.length,p=o.length;let b=r.oldPos,m=b-c,S=0;for(;m+1<d&&b+1<p&&this.equals(o[b+1],s[m+1],f);)m++,b++,S++,f.oneChangePerToken&&(r.lastComponent={count:1,previousComponent:r.lastComponent,added:!1,removed:!1});return S&&!f.oneChangePerToken&&(r.lastComponent={count:S,previousComponent:r.lastComponent,added:!1,removed:!1}),r.oldPos=b,m}equals(r,s,o){return o.comparator?o.comparator(r,s):r===s||!!o.ignoreCase&&r.toLowerCase()===s.toLowerCase()}removeEmpty(r){const s=[];for(let o=0;o<r.length;o++)r[o]&&s.push(r[o]);return s}castInput(r,s){return r}tokenize(r,s){return Array.from(r)}join(r){return r.join("")}postProcess(r,s){return r}get useLongestToken(){return!1}buildValues(r,s,o){const c=[];let f;for(;r;)c.push(r),f=r.previousComponent,delete r.previousComponent,r=f;c.reverse();const d=c.length;let p=0,b=0,m=0;for(;p<d;p++){const S=c[p];if(S.removed)S.value=this.join(o.slice(m,m+S.count)),m+=S.count;else{if(!S.added&&this.useLongestToken){let y=s.slice(b,b+S.count);y=y.map(function(C,_){const x=o[m+_];return x.length>C.length?x:C}),S.value=this.join(y)}else S.value=this.join(s.slice(b,b+S.count));b+=S.count,S.added||(m+=S.count)}}return c}}function Kh(a,r){let s;for(s=0;s<a.length&&s<r.length;s++)if(a[s]!=r[s])return a.slice(0,s);return a.slice(0,s)}function Jh(a,r){let s;if(!a||!r||a[a.length-1]!=r[r.length-1])return"";for(s=0;s<a.length&&s<r.length;s++)if(a[a.length-(s+1)]!=r[r.length-(s+1)])return a.slice(-s);return a.slice(-s)}function yc(a,r,s){if(a.slice(0,r.length)!=r)throw Error(`string ${JSON.stringify(a)} doesn't start with prefix ${JSON.stringify(r)}; this is a bug`);return s+a.slice(r.length)}function vc(a,r,s){if(!r)return a+s;if(a.slice(-r.length)!=r)throw Error(`string ${JSON.stringify(a)} doesn't end with suffix ${JSON.stringify(r)}; this is a bug`);return a.slice(0,-r.length)+s}function Mr(a,r){return yc(a,r,"")}function ro(a,r){return vc(a,r,"")}function Wh(a,r){return r.slice(0,Vv(a,r))}function Vv(a,r){let s=0;a.length>r.length&&(s=a.length-r.length);let o=r.length;a.length<r.length&&(o=a.length);const c=Array(o);let f=0;c[0]=0;for(let d=1;d<o;d++){for(r[d]==r[f]?c[d]=c[f]:c[d]=f;f>0&&r[d]!=r[f];)f=c[f];r[d]==r[f]&&f++}f=0;for(let d=s;d<a.length;d++){for(;f>0&&a[d]!=r[f];)f=c[f];a[d]==r[f]&&f++}return f}function zr(a){let r;for(r=a.length-1;r>=0&&a[r].match(/\s/);r--);return a.substring(r+1)}function bl(a){const r=a.match(/^\s*/);return r?r[0]:""}const Ph="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",Xv=new RegExp(`[${Ph}]+|\\s+|[^${Ph}]`,"ug");class Zv extends Yv{equals(r,s,o){return o.ignoreCase&&(r=r.toLowerCase(),s=s.toLowerCase()),r.trim()===s.trim()}tokenize(r,s={}){let o;if(s.intlSegmenter){const d=s.intlSegmenter;if(d.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');o=[];for(const p of Array.from(d.segment(r))){const b=p.segment;o.length&&/\s/.test(o[o.length-1])&&/\s/.test(b)?o[o.length-1]+=b:o.push(b)}}else o=r.match(Xv)||[];const c=[];let f=null;return o.forEach(d=>{/\s/.test(d)?f==null?c.push(d):c.push(c.pop()+d):f!=null&&/\s/.test(f)?c[c.length-1]==f?c.push(c.pop()+d):c.push(f+d):c.push(d),f=d}),c}join(r){return r.map((s,o)=>o==0?s:s.replace(/^\s+/,"")).join("")}postProcess(r,s){if(!r||s.oneChangePerToken)return r;let o=null,c=null,f=null;return r.forEach(d=>{d.added?c=d:d.removed?f=d:((c||f)&&em(o,f,c,d),o=d,c=null,f=null)}),(c||f)&&em(o,f,c,null),r}}const Iv=new Zv;function mp(a,r,s){return Iv.diff(a,r,s)}function em(a,r,s,o){if(r&&s){const c=bl(r.value),f=zr(r.value),d=bl(s.value),p=zr(s.value);if(a){const b=Kh(c,d);a.value=vc(a.value,d,b),r.value=Mr(r.value,b),s.value=Mr(s.value,b)}if(o){const b=Jh(f,p);o.value=yc(o.value,p,b),r.value=ro(r.value,b),s.value=ro(s.value,b)}}else if(s){if(a){const c=bl(s.value);s.value=s.value.substring(c.length)}if(o){const c=bl(o.value);o.value=o.value.substring(c.length)}}else if(a&&o){const c=bl(o.value),f=bl(r.value),d=zr(r.value),p=Kh(c,f);r.value=Mr(r.value,p);const b=Jh(Mr(c,p),d);r.value=ro(r.value,b),o.value=yc(o.value,c,b),a.value=vc(a.value,c,c.slice(0,c.length-b.length))}else if(o){const c=bl(o.value),f=zr(r.value),d=Wh(f,c);r.value=ro(r.value,d)}else if(a){const c=zr(a.value),f=bl(r.value),d=Wh(c,f);r.value=Mr(r.value,d)}}function pp(a,r){const s=mp(a,r),o=[],c=[];for(const f of s)f.added?c.push({value:f.value,type:"added"}):f.removed?o.push({value:f.value,type:"removed"}):(o.push({value:f.value,type:"unchanged"}),c.push({value:f.value,type:"unchanged"}));return{oldSegments:o,newSegments:c}}function bp(a,r){if(!a.trim()||!r.trim()||a===r)return!1;const s=mp(a,r);let o=0,c=0;for(const d of s)c+=d.value.length,!d.added&&!d.removed&&(o+=d.value.length);return o/c>=.2}function yp({onSubmit:a,onCancel:r}){const[s,o]=A.useState(""),[c,f]=A.useState(!1),d=async m=>{if(m.preventDefault(),!!s.trim()){f(!0);try{await a(s.trim()),o("")}catch(S){console.error("Failed to submit comment:",S)}finally{f(!1)}}},p=m=>{m.key==="Enter"&&(m.metaKey||m.ctrlKey)?d(m):m.key==="Escape"&&r()},b=/Macintosh|Mac OS X/.test(navigator.userAgent)?"Cmd":"Ctrl";return g.jsxs("form",{className:"m-2 mx-3 p-3 bg-github-bg-tertiary border border-yellow-600/50 rounded-md border-l-4 border-l-yellow-400",onSubmit:d,"data-empty":!s.trim(),children:[g.jsxs("div",{className:"flex items-center justify-between mb-2",children:[g.jsx("span",{className:"text-sm font-medium",style:{color:"var(--color-yellow-path-text)"},children:"Add a comment"}),g.jsxs("span",{className:"text-xs text-github-text-muted",children:[b,"+Enter to submit • Escape to cancel"]})]}),g.jsx("textarea",{className:"w-full min-h-[60px] mb-2 resize-y bg-github-bg-secondary border border-github-border rounded px-3 py-2 text-github-text-primary text-sm leading-6 focus:outline-none focus:border-blue-600 focus:ring-2 focus:ring-blue-600/30 focus:min-h-[80px] disabled:opacity-50",value:s,onChange:m=>o(m.target.value),onKeyDown:p,placeholder:"Leave a comment...",rows:3,autoFocus:!0,disabled:c}),g.jsxs("div",{className:"flex gap-2 justify-end",children:[g.jsx("button",{type:"button",onClick:r,className:"text-xs px-3 py-1.5 bg-github-bg-tertiary text-github-text-primary border border-github-border rounded hover:opacity-80 transition-all disabled:opacity-50",disabled:c,children:"Cancel"}),g.jsx("button",{type:"submit",className:"text-xs px-3 py-1.5 rounded transition-all disabled:opacity-50",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:m=>{m.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",m.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:m=>{m.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",m.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},disabled:!s.trim()||c,children:c?"Submitting...":"Submit"})]})]})}const go=Vn.memo(({onMouseDown:a,onMouseUp:r,title:s="Add a comment"})=>g.jsx("button",{className:"absolute -right-2 top-1/2 -translate-y-1/2 w-7 h-7 flex items-center justify-center rounded transition-all duration-150 hover:scale-110 z-10","data-comment-button":"true",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:o=>{o.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",o.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:o=>{o.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",o.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},onMouseDown:a,onMouseUp:r,title:s,children:g.jsx(fp,{className:"w-4 h-4"})}));go.displayName="CommentButton";const $v=2,Qv=100;function Kv(a){return!(a.length<$v||a.length>Qv)}function tm(a){return a.toLowerCase()}function nm(a){const r=a.trim();return r?r.match(/^\w+$/)!==null&&Kv(r):!1}const Jv=200,vp=A.createContext(void 0);function Wv({children:a}){const[r,s]=A.useState(null),o=A.useRef(null),c=A.useCallback(()=>{o.current&&(clearTimeout(o.current),o.current=null)},[]),f=A.useCallback(m=>{const S=m.target;if(!S.classList.contains("word-token"))return;c();const y=S.getAttribute("data-word");y&&(o.current=setTimeout(()=>{s(y)},Jv))},[c]),d=A.useCallback(()=>{c(),s(null)},[c]),p=A.useCallback(m=>r?tm(m)===tm(r):!1,[r]);A.useEffect(()=>()=>{o.current&&clearTimeout(o.current)},[]);const b={highlightedWord:r,handleMouseOver:f,handleMouseOut:d,isWordHighlighted:p};return g.jsx(vp.Provider,{value:b,children:a})}function Pv(){const a=A.useContext(vp);if(!a)throw new Error("useWordHighlight must be used within a WordHighlightProvider");return a}function xp(a){var r,s,o="";if(typeof a=="string"||typeof a=="number")o+=a;else if(typeof a=="object")if(Array.isArray(a)){var c=a.length;for(r=0;r<c;r++)a[r]&&(s=xp(a[r]))&&(o&&(o+=" "),o+=s)}else for(s in a)a[s]&&(o&&(o+=" "),o+=s);return o}function Sp(){for(var a,r,s=0,o="",c=arguments.length;s<c;s++)(a=arguments[s])&&(r=xp(a))&&(o&&(o+=" "),o+=r);return o}var e1=Object.create,To=Object.defineProperty,t1=Object.defineProperties,n1=Object.getOwnPropertyDescriptor,l1=Object.getOwnPropertyDescriptors,Ep=Object.getOwnPropertyNames,ho=Object.getOwnPropertySymbols,a1=Object.getPrototypeOf,Mc=Object.prototype.hasOwnProperty,wp=Object.prototype.propertyIsEnumerable,lm=(a,r,s)=>r in a?To(a,r,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[r]=s,vn=(a,r)=>{for(var s in r||(r={}))Mc.call(r,s)&&lm(a,s,r[s]);if(ho)for(var s of ho(r))wp.call(r,s)&&lm(a,s,r[s]);return a},Ro=(a,r)=>t1(a,l1(r)),Np=(a,r)=>{var s={};for(var o in a)Mc.call(a,o)&&r.indexOf(o)<0&&(s[o]=a[o]);if(a!=null&&ho)for(var o of ho(a))r.indexOf(o)<0&&wp.call(a,o)&&(s[o]=a[o]);return s},r1=(a,r)=>function(){return r||(0,a[Ep(a)[0]])((r={exports:{}}).exports,r),r.exports},i1=(a,r)=>{for(var s in r)To(a,s,{get:r[s],enumerable:!0})},o1=(a,r,s,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of Ep(r))!Mc.call(a,c)&&c!==s&&To(a,c,{get:()=>r[c],enumerable:!(o=n1(r,c))||o.enumerable});return a},s1=(a,r,s)=>(s=a!=null?e1(a1(a)):{},o1(!a||!a.__esModule?To(s,"default",{value:a,enumerable:!0}):s,a)),u1=r1({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(a,r){var s=(function(){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,c=0,f={},d={util:{encode:function x(v){return v instanceof p?new p(v.type,x(v.content),v.alias):Array.isArray(v)?v.map(x):v.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(x){return Object.prototype.toString.call(x).slice(8,-1)},objId:function(x){return x.__id||Object.defineProperty(x,"__id",{value:++c}),x.__id},clone:function x(v,T){T=T||{};var N,R;switch(d.util.type(v)){case"Object":if(R=d.util.objId(v),T[R])return T[R];N={},T[R]=N;for(var D in v)v.hasOwnProperty(D)&&(N[D]=x(v[D],T));return N;case"Array":return R=d.util.objId(v),T[R]?T[R]:(N=[],T[R]=N,v.forEach(function(M,F){N[F]=x(M,T)}),N);default:return v}},getLanguage:function(x){for(;x;){var v=o.exec(x.className);if(v)return v[1].toLowerCase();x=x.parentElement}return"none"},setLanguage:function(x,v){x.className=x.className.replace(RegExp(o,"gi"),""),x.classList.add("language-"+v)},isActive:function(x,v,T){for(var N="no-"+v;x;){var R=x.classList;if(R.contains(v))return!0;if(R.contains(N))return!1;x=x.parentElement}return!!T}},languages:{plain:f,plaintext:f,text:f,txt:f,extend:function(x,v){var T=d.util.clone(d.languages[x]);for(var N in v)T[N]=v[N];return T},insertBefore:function(x,v,T,N){N=N||d.languages;var R=N[x],D={};for(var M in R)if(R.hasOwnProperty(M)){if(M==v)for(var F in T)T.hasOwnProperty(F)&&(D[F]=T[F]);T.hasOwnProperty(M)||(D[M]=R[M])}var ee=N[x];return N[x]=D,d.languages.DFS(d.languages,function(Q,ce){ce===ee&&Q!=x&&(this[Q]=D)}),D},DFS:function x(v,T,N,R){R=R||{};var D=d.util.objId;for(var M in v)if(v.hasOwnProperty(M)){T.call(v,M,v[M],N||M);var F=v[M],ee=d.util.type(F);ee==="Object"&&!R[D(F)]?(R[D(F)]=!0,x(F,T,null,R)):ee==="Array"&&!R[D(F)]&&(R[D(F)]=!0,x(F,T,M,R))}}},plugins:{},highlight:function(x,v,T){var N={code:x,grammar:v,language:T};if(d.hooks.run("before-tokenize",N),!N.grammar)throw new Error('The language "'+N.language+'" has no grammar.');return N.tokens=d.tokenize(N.code,N.grammar),d.hooks.run("after-tokenize",N),p.stringify(d.util.encode(N.tokens),N.language)},tokenize:function(x,v){var T=v.rest;if(T){for(var N in T)v[N]=T[N];delete v.rest}var R=new S;return y(R,R.head,x),m(x,R,v,R.head,0),_(R)},hooks:{all:{},add:function(x,v){var T=d.hooks.all;T[x]=T[x]||[],T[x].push(v)},run:function(x,v){var T=d.hooks.all[x];if(!(!T||!T.length))for(var N=0,R;R=T[N++];)R(v)}},Token:p};function p(x,v,T,N){this.type=x,this.content=v,this.alias=T,this.length=(N||"").length|0}p.stringify=function x(v,T){if(typeof v=="string")return v;if(Array.isArray(v)){var N="";return v.forEach(function(ee){N+=x(ee,T)}),N}var R={type:v.type,content:x(v.content,T),tag:"span",classes:["token",v.type],attributes:{},language:T},D=v.alias;D&&(Array.isArray(D)?Array.prototype.push.apply(R.classes,D):R.classes.push(D)),d.hooks.run("wrap",R);var M="";for(var F in R.attributes)M+=" "+F+'="'+(R.attributes[F]||"").replace(/"/g,""")+'"';return"<"+R.tag+' class="'+R.classes.join(" ")+'"'+M+">"+R.content+"</"+R.tag+">"};function b(x,v,T,N){x.lastIndex=v;var R=x.exec(T);if(R&&N&&R[1]){var D=R[1].length;R.index+=D,R[0]=R[0].slice(D)}return R}function m(x,v,T,N,R,D){for(var M in T)if(!(!T.hasOwnProperty(M)||!T[M])){var F=T[M];F=Array.isArray(F)?F:[F];for(var ee=0;ee<F.length;++ee){if(D&&D.cause==M+","+ee)return;var Q=F[ee],ce=Q.inside,q=!!Q.lookbehind,P=!!Q.greedy,J=Q.alias;if(P&&!Q.pattern.global){var K=Q.pattern.toString().match(/[imsuy]*$/)[0];Q.pattern=RegExp(Q.pattern.source,K+"g")}for(var se=Q.pattern||Q,U=N.next,re=R;U!==v.tail&&!(D&&re>=D.reach);re+=U.value.length,U=U.next){var E=U.value;if(v.length>x.length)return;if(!(E instanceof p)){var z=1,k;if(P){if(k=b(se,re,x,q),!k||k.index>=x.length)break;var B=k.index,I=k.index+k[0].length,$=re;for($+=U.value.length;B>=$;)U=U.next,$+=U.value.length;if($-=U.value.length,re=$,U.value instanceof p)continue;for(var j=U;j!==v.tail&&($<I||typeof j.value=="string");j=j.next)z++,$+=j.value.length;z--,E=x.slice(re,$),k.index-=re}else if(k=b(se,0,E,q),!k)continue;var B=k.index,X=k[0],ie=E.slice(0,B),oe=E.slice(B+X.length),fe=re+E.length;D&&fe>D.reach&&(D.reach=fe);var ue=U.prev;ie&&(ue=y(v,ue,ie),re+=ie.length),C(v,ue,z);var ge=new p(M,ce?d.tokenize(X,ce):X,J,X);if(U=y(v,ue,ge),oe&&y(v,U,oe),z>1){var de={cause:M+","+ee,reach:fe};m(x,v,T,U.prev,re,de),D&&de.reach>D.reach&&(D.reach=de.reach)}}}}}}function S(){var x={value:null,prev:null,next:null},v={value:null,prev:x,next:null};x.next=v,this.head=x,this.tail=v,this.length=0}function y(x,v,T){var N=v.next,R={value:T,prev:v,next:N};return v.next=R,N.prev=R,x.length++,R}function C(x,v,T){for(var N=v.next,R=0;R<T&&N!==x.tail;R++)N=N.next;v.next=N,N.prev=v,x.length-=R}function _(x){for(var v=[],T=x.head.next;T!==x.tail;)v.push(T.value),T=T.next;return v}return d})();r.exports=s,s.default=s}}),ne=s1(u1());ne.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},ne.languages.markup.tag.inside["attr-value"].inside.entity=ne.languages.markup.entity,ne.languages.markup.doctype.inside["internal-subset"].inside=ne.languages.markup,ne.hooks.add("wrap",function(a){a.type==="entity"&&(a.attributes.title=a.content.replace(/&/,"&"))}),Object.defineProperty(ne.languages.markup.tag,"addInlined",{value:function(a,o){var s={},s=(s["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:ne.languages[o]},s.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}}),o=(s["language-"+o]={pattern:/[\s\S]+/,inside:ne.languages[o]},{});o[a]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return a}),"i"),lookbehind:!0,greedy:!0,inside:s},ne.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(ne.languages.markup.tag,"addAttribute",{value:function(a,r){ne.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+a+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:ne.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),ne.languages.html=ne.languages.markup,ne.languages.mathml=ne.languages.markup,ne.languages.svg=ne.languages.markup,ne.languages.xml=ne.languages.extend("markup",{}),ne.languages.ssml=ne.languages.xml,ne.languages.atom=ne.languages.xml,ne.languages.rss=ne.languages.xml,(function(a){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},s=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,o="(?:[^\\\\-]|"+s.source+")",o=RegExp(o+"-"+o),c={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};a.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:o,inside:{escape:s,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:s}},"special-escape":r,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":c}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:s,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":c}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(ne),ne.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},ne.languages.javascript=ne.languages.extend("clike",{"class-name":[ne.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),ne.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,ne.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:ne.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:ne.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:ne.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:ne.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:ne.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),ne.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:ne.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),ne.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),ne.languages.markup&&(ne.languages.markup.tag.addInlined("script","javascript"),ne.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),ne.languages.js=ne.languages.javascript,ne.languages.actionscript=ne.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),ne.languages.actionscript["class-name"].alias="function",delete ne.languages.actionscript.parameter,delete ne.languages.actionscript["literal-property"],ne.languages.markup&&ne.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:ne.languages.markup}}),(function(a){var r=/#(?!\{).+/,s={pattern:/#\{[^}]+\}/,alias:"variable"};a.languages.coffeescript=a.languages.extend("javascript",{comment:r,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:s}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),a.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:r,interpolation:s}}}),a.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:a.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:s}}]}),a.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete a.languages.coffeescript["template-string"],a.languages.coffee=a.languages.coffeescript})(ne),(function(a){var r=a.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(r,"addSupport",{value:function(s,o){(s=typeof s=="string"?[s]:s).forEach(function(c){var f=function(y){y.inside||(y.inside={}),y.inside.rest=o},d="doc-comment";if(p=a.languages[c]){var p,b=p[d];if((b=b||(p=a.languages.insertBefore(c,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[d])instanceof RegExp&&(b=p[d]={pattern:b}),Array.isArray(b))for(var m=0,S=b.length;m<S;m++)b[m]instanceof RegExp&&(b[m]={pattern:b[m]}),f(b[m]);else f(b)}})}}),r.addSupport(["java","javascript","php"],r)})(ne),(function(a){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,r=(a.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},a.languages.css.atrule.inside.rest=a.languages.css,a.languages.markup);r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(ne),(function(a){var r=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=(a.languages.css.selector={pattern:a.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+r.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[r,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},a.languages.css.atrule.inside["selector-function-argument"].inside=r,a.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),s={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};a.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:s,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:s})})(ne),(function(a){var r=/[*&][^\s[\]{},]+/,s=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+s.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+s.source+")?)",c=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),f=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function d(p,b){b=(b||"").replace(/m/g,"")+"m";var m=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<value>>/g,function(){return p});return RegExp(m,b)}a.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<key>>/g,function(){return"(?:"+c+"|"+f+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:d(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:d(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:d(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:d(f),lookbehind:!0,greedy:!0},number:{pattern:d(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:s,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},a.languages.yml=a.languages.yaml})(ne),(function(a){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function s(m){return m=m.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+m+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,c=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),f=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,d=(a.languages.markdown=a.languages.extend("markup",{}),a.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:a.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+c+f+"(?:"+c+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+c+f+")(?:"+c+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:a.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+c+")"+f+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+c+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:a.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:s(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:s(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:s(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:s(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(m){["url","bold","italic","strike","code-snippet"].forEach(function(S){m!==S&&(a.languages.markdown[m].inside.content.inside[S]=a.languages.markdown[S])})}),a.hooks.add("after-tokenize",function(m){m.language!=="markdown"&&m.language!=="md"||(function S(y){if(y&&typeof y!="string")for(var C=0,_=y.length;C<_;C++){var x,v=y[C];v.type!=="code"?S(v.content):(x=v.content[1],v=v.content[3],x&&v&&x.type==="code-language"&&v.type==="code-block"&&typeof x.content=="string"&&(x=x.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),x="language-"+(x=(/[a-z][\w-]*/i.exec(x)||[""])[0].toLowerCase()),v.alias?typeof v.alias=="string"?v.alias=[v.alias,x]:v.alias.push(x):v.alias=[x]))}})(m.tokens)}),a.hooks.add("wrap",function(m){if(m.type==="code-block"){for(var S="",y=0,C=m.classes.length;y<C;y++){var _=m.classes[y],_=/language-(.+)/.exec(_);if(_){S=_[1];break}}var x,v=a.languages[S];v?m.content=a.highlight((function(T){return T=T.replace(d,""),T=T.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(N,R){var D;return(R=R.toLowerCase())[0]==="#"?(D=R[1]==="x"?parseInt(R.slice(2),16):Number(R.slice(1)),b(D)):p[R]||N})})(m.content),v,S):S&&S!=="none"&&a.plugins.autoloader&&(x="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),m.attributes.id=x,a.plugins.autoloader.loadLanguages(S,function(){var T=document.getElementById(x);T&&(T.innerHTML=a.highlight(T.textContent,a.languages[S],S))}))}}),RegExp(a.languages.markup.tag.pattern.source,"gi")),p={amp:"&",lt:"<",gt:">",quot:'"'},b=String.fromCodePoint||String.fromCharCode;a.languages.md=a.languages.markdown})(ne),ne.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:ne.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},ne.hooks.add("after-tokenize",function(a){if(a.language==="graphql")for(var r=a.tokens.filter(function(x){return typeof x!="string"&&x.type!=="comment"&&x.type!=="scalar"}),s=0;s<r.length;){var o=r[s++];if(o.type==="keyword"&&o.content==="mutation"){var c=[];if(y(["definition-mutation","punctuation"])&&S(1).content==="("){s+=2;var f=C(/^\($/,/^\)$/);if(f===-1)continue;for(;s<f;s++){var d=S(0);d.type==="variable"&&(_(d,"variable-input"),c.push(d.content))}s=f+1}if(y(["punctuation","property-query"])&&S(0).content==="{"&&(s++,_(S(0),"property-mutation"),0<c.length)){var p=C(/^\{$/,/^\}$/);if(p!==-1)for(var b=s;b<p;b++){var m=r[b];m.type==="variable"&&0<=c.indexOf(m.content)&&_(m,"variable-input")}}}}function S(x){return r[s+x]}function y(x,v){v=v||0;for(var T=0;T<x.length;T++){var N=S(T+v);if(!N||N.type!==x[T])return}return 1}function C(x,v){for(var T=1,N=s;N<r.length;N++){var R=r[N],D=R.content;if(R.type==="punctuation"&&typeof D=="string"){if(x.test(D))T++;else if(v.test(D)&&--T===0)return N}}return-1}function _(x,v){var T=x.alias;T?Array.isArray(T)||(x.alias=T=[T]):x.alias=T=[],T.push(v)}}),ne.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(a){var r=a.languages.javascript["template-string"],s=r.pattern.source,o=r.inside.interpolation,c=o.inside["interpolation-punctuation"],f=o.pattern.source;function d(y,C){if(a.languages[y])return{pattern:RegExp("((?:"+C+")\\s*)"+s),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:y}}}}function p(y,C,_){return y={code:y,grammar:C,language:_},a.hooks.run("before-tokenize",y),y.tokens=a.tokenize(y.code,y.grammar),a.hooks.run("after-tokenize",y),y.tokens}function b(y,C,_){var T=a.tokenize(y,{interpolation:{pattern:RegExp(f),lookbehind:!0}}),x=0,v={},T=p(T.map(function(R){if(typeof R=="string")return R;for(var D,M,R=R.content;y.indexOf((M=x++,D="___"+_.toUpperCase()+"_"+M+"___"))!==-1;);return v[D]=R,D}).join(""),C,_),N=Object.keys(v);return x=0,(function R(D){for(var M=0;M<D.length;M++){if(x>=N.length)return;var F,ee,Q,ce,q,P,J,K=D[M];typeof K=="string"||typeof K.content=="string"?(F=N[x],(J=(P=typeof K=="string"?K:K.content).indexOf(F))!==-1&&(++x,ee=P.substring(0,J),q=v[F],Q=void 0,(ce={})["interpolation-punctuation"]=c,(ce=a.tokenize(q,ce)).length===3&&((Q=[1,1]).push.apply(Q,p(ce[1],a.languages.javascript,"javascript")),ce.splice.apply(ce,Q)),Q=new a.Token("interpolation",ce,o.alias,q),ce=P.substring(J+F.length),q=[],ee&&q.push(ee),q.push(Q),ce&&(R(P=[ce]),q.push.apply(q,P)),typeof K=="string"?(D.splice.apply(D,[M,1].concat(q)),M+=q.length-1):K.content=q)):(J=K.content,Array.isArray(J)?R(J):R([J]))}})(T),new a.Token(_,T,"language-"+_,y)}a.languages.javascript["template-string"]=[d("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),d("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),d("svg",/\bsvg/.source),d("markdown",/\b(?:markdown|md)/.source),d("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),d("sql",/\bsql/.source),r].filter(Boolean);var m={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function S(y){return typeof y=="string"?y:Array.isArray(y)?y.map(S).join(""):S(y.content)}a.hooks.add("after-tokenize",function(y){y.language in m&&(function C(_){for(var x=0,v=_.length;x<v;x++){var T,N,R,D=_[x];typeof D!="string"&&(T=D.content,Array.isArray(T)?D.type==="template-string"?(D=T[1],T.length===3&&typeof D!="string"&&D.type==="embedded-code"&&(N=S(D),D=D.alias,D=Array.isArray(D)?D[0]:D,R=a.languages[D])&&(T[1]=b(N,R,D))):C(T):typeof T!="string"&&C([T]))}})(y.tokens)})})(ne),(function(a){a.languages.typescript=a.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),a.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete a.languages.typescript.parameter,delete a.languages.typescript["literal-property"];var r=a.languages.extend("typescript",{});delete r["class-name"],a.languages.typescript["class-name"].inside=r,a.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),a.languages.ts=a.languages.typescript})(ne),(function(a){var r=a.languages.javascript,s=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,o="(@(?:arg|argument|param|property)\\s+(?:"+s+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(o+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(o+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:r,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return s})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+s),lookbehind:!0,inside:{string:r.string,number:r.number,boolean:r.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:r,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)})(ne),(function(a){a.languages.flow=a.languages.extend("javascript",{}),a.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),a.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete a.languages.flow.parameter,a.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(a.languages.flow.keyword)||(a.languages.flow.keyword=[a.languages.flow.keyword]),a.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(ne),ne.languages.n4js=ne.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),ne.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),ne.languages.n4jsd=ne.languages.n4js,(function(a){function r(d,p){return RegExp(d.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),p)}a.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+a.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),a.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+a.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),a.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),a.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:a.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:a.languages.javascript}}),a.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),a.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),a.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var s=["function","function-variable","method","method-variable","property-access"],o=0;o<s.length;o++){var f=s[o],c=a.languages.javascript[f],f=(c=a.util.type(c)==="RegExp"?a.languages.javascript[f]={pattern:c}:c).inside||{};(c.inside=f)["maybe-class-name"]=/^[A-Z][\s\S]*/}})(ne),(function(a){var r=a.util.clone(a.languages.javascript),s=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,o=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,c=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function f(b,m){return b=b.replace(/<S>/g,function(){return s}).replace(/<BRACES>/g,function(){return o}).replace(/<SPREAD>/g,function(){return c}),RegExp(b,m)}c=f(c).source,a.languages.jsx=a.languages.extend("markup",r),a.languages.jsx.tag.pattern=f(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),a.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,a.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,a.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,a.languages.jsx.tag.inside.comment=r.comment,a.languages.insertBefore("inside","attr-name",{spread:{pattern:f(/<SPREAD>/.source),inside:a.languages.jsx}},a.languages.jsx.tag),a.languages.insertBefore("inside","special-attr",{script:{pattern:f(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:a.languages.jsx}}},a.languages.jsx.tag);function d(b){for(var m=[],S=0;S<b.length;S++){var y=b[S],C=!1;typeof y!="string"&&(y.type==="tag"&&y.content[0]&&y.content[0].type==="tag"?y.content[0].content[0].content==="</"?0<m.length&&m[m.length-1].tagName===p(y.content[0].content[1])&&m.pop():y.content[y.content.length-1].content!=="/>"&&m.push({tagName:p(y.content[0].content[1]),openedBraces:0}):0<m.length&&y.type==="punctuation"&&y.content==="{"?m[m.length-1].openedBraces++:0<m.length&&0<m[m.length-1].openedBraces&&y.type==="punctuation"&&y.content==="}"?m[m.length-1].openedBraces--:C=!0),(C||typeof y=="string")&&0<m.length&&m[m.length-1].openedBraces===0&&(C=p(y),S<b.length-1&&(typeof b[S+1]=="string"||b[S+1].type==="plain-text")&&(C+=p(b[S+1]),b.splice(S+1,1)),0<S&&(typeof b[S-1]=="string"||b[S-1].type==="plain-text")&&(C=p(b[S-1])+C,b.splice(S-1,1),S--),b[S]=new a.Token("plain-text",C,null,C)),y.content&&typeof y.content!="string"&&d(y.content)}}var p=function(b){return b?typeof b=="string"?b:typeof b.content=="string"?b.content:b.content.map(p).join(""):""};a.hooks.add("after-tokenize",function(b){b.language!=="jsx"&&b.language!=="tsx"||d(b.tokens)})})(ne),(function(a){var r=a.util.clone(a.languages.typescript),r=(a.languages.tsx=a.languages.extend("jsx",r),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"],a.languages.tsx.tag);r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0})(ne),ne.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},ne.languages.swift["string-literal"].forEach(function(a){a.inside.interpolation.inside=ne.languages.swift}),(function(a){a.languages.kotlin=a.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete a.languages.kotlin["class-name"];var r={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:a.languages.kotlin}};a.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:r},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:r},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete a.languages.kotlin.string,a.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),a.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),a.languages.kt=a.languages.kotlin,a.languages.kts=a.languages.kotlin})(ne),ne.languages.c=ne.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),ne.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),ne.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},ne.languages.c.string],char:ne.languages.c.char,comment:ne.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:ne.languages.c}}}}),ne.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete ne.languages.c.boolean,ne.languages.objectivec=ne.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete ne.languages.objectivec["class-name"],ne.languages.objc=ne.languages.objectivec,ne.languages.reason=ne.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),ne.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete ne.languages.reason.function,(function(a){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,s=0;s<2;s++)r=r.replace(/<self>/g,function(){return r});r=r.replace(/<self>/g,function(){return/[^\s\S]/.source}),a.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+r),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},a.languages.rust["closure-params"].inside.rest=a.languages.rust,a.languages.rust.attribute.inside.string=a.languages.rust.string})(ne),ne.languages.go=ne.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),ne.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete ne.languages.go["class-name"],(function(a){var r=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,s=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return r.source});a.languages.cpp=a.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return r.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:r,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),a.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return s})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),a.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:a.languages.cpp}}}}),a.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),a.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:a.languages.extend("cpp",{})}}),a.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},a.languages.cpp["base-clause"])})(ne),ne.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},ne.languages.python["string-interpolation"].inside.interpolation.inside.rest=ne.languages.python,ne.languages.py=ne.languages.python,ne.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},ne.languages.webmanifest=ne.languages.json;var Qt={};i1(Qt,{dracula:()=>f1,duotoneDark:()=>g1,duotoneLight:()=>m1,github:()=>b1,gruvboxMaterialDark:()=>Z1,gruvboxMaterialLight:()=>$1,jettwaveDark:()=>U1,jettwaveLight:()=>F1,nightOwl:()=>v1,nightOwlLight:()=>S1,oceanicNext:()=>w1,okaidia:()=>C1,oneDark:()=>G1,oneLight:()=>V1,palenight:()=>T1,shadesOfPurple:()=>_1,synthwave84:()=>O1,ultramin:()=>D1,vsDark:()=>Cp,vsLight:()=>L1});var c1={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},f1=c1,d1={plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]},g1=d1,h1={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#896724"}}]},m1=h1,p1={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},b1=p1,y1={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},v1=y1,x1={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},S1=x1,$t={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},E1={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:$t.keyword}},{types:["attr-value"],style:{color:$t.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:$t.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:$t.primitive}},{types:["boolean"],style:{color:$t.boolean}},{types:["tag"],style:{color:$t.tag}},{types:["string"],style:{color:$t.string}},{types:["punctuation"],style:{color:$t.string}},{types:["selector","char","builtin","inserted"],style:{color:$t.char}},{types:["function"],style:{color:$t.function}},{types:["operator","entity","url","variable"],style:{color:$t.variable}},{types:["keyword"],style:{color:$t.keyword}},{types:["atrule","class-name"],style:{color:$t.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},w1=E1,N1={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},C1=N1,A1={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},T1=A1,R1={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},_1=R1,j1={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},O1=j1,k1={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},D1=k1,M1={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},Cp=M1,z1={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]},L1=z1,B1={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},U1=B1,H1={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},F1=H1,q1={plain:{backgroundColor:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(220, 10%, 40%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(220, 14%, 71%)"}},{types:["attr-name","class-name","maybe-class-name","boolean","constant","number","atrule"],style:{color:"hsl(29, 54%, 61%)"}},{types:["keyword"],style:{color:"hsl(286, 60%, 67%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(355, 65%, 65%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value"],style:{color:"hsl(95, 38%, 62%)"}},{types:["variable","operator","function"],style:{color:"hsl(207, 82%, 66%)"}},{types:["url"],style:{color:"hsl(187, 47%, 55%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(220, 14%, 71%)"}}]},G1=q1,Y1={plain:{backgroundColor:"hsl(230, 1%, 98%)",color:"hsl(230, 8%, 24%)"},styles:[{types:["comment","prolog","cdata"],style:{color:"hsl(230, 4%, 64%)"}},{types:["doctype","punctuation","entity"],style:{color:"hsl(230, 8%, 24%)"}},{types:["attr-name","class-name","boolean","constant","number","atrule"],style:{color:"hsl(35, 99%, 36%)"}},{types:["keyword"],style:{color:"hsl(301, 63%, 40%)"}},{types:["property","tag","symbol","deleted","important"],style:{color:"hsl(5, 74%, 59%)"}},{types:["selector","string","char","builtin","inserted","regex","attr-value","punctuation"],style:{color:"hsl(119, 34%, 47%)"}},{types:["variable","operator","function"],style:{color:"hsl(221, 87%, 60%)"}},{types:["url"],style:{color:"hsl(198, 99%, 37%)"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"hsl(230, 8%, 24%)"}}]},V1=Y1,X1={plain:{color:"#ebdbb2",backgroundColor:"#292828"},styles:[{types:["imports","class-name","maybe-class-name","constant","doctype","builtin","function"],style:{color:"#d8a657"}},{types:["property-access"],style:{color:"#7daea3"}},{types:["tag"],style:{color:"#e78a4e"}},{types:["attr-name","char","url","regex"],style:{color:"#a9b665"}},{types:["attr-value","string"],style:{color:"#89b482"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#ea6962"}},{types:["entity","number","symbol"],style:{color:"#d3869b"}}]},Z1=X1,I1={plain:{color:"#654735",backgroundColor:"#f9f5d7"},styles:[{types:["delimiter","boolean","keyword","selector","important","atrule","property","variable","deleted"],style:{color:"#af2528"}},{types:["imports","class-name","maybe-class-name","constant","doctype","builtin"],style:{color:"#b4730e"}},{types:["string","attr-value"],style:{color:"#477a5b"}},{types:["property-access"],style:{color:"#266b79"}},{types:["function","attr-name","char","url"],style:{color:"#72761e"}},{types:["tag"],style:{color:"#b94c07"}},{types:["comment","prolog","cdata","operator","inserted"],style:{color:"#a89984"}},{types:["entity","number","symbol"],style:{color:"#924f79"}}]},$1=I1,Q1=a=>A.useCallback(r=>{var s=r,{className:o,style:c,line:f}=s,d=Np(s,["className","style","line"]);const p=Ro(vn({},d),{className:Sp("token-line",o)});return typeof a=="object"&&"plain"in a&&(p.style=a.plain),typeof c=="object"&&(p.style=vn(vn({},p.style||{}),c)),p},[a]),K1=a=>{const r=A.useCallback(({types:s,empty:o})=>{if(a!=null){{if(s.length===1&&s[0]==="plain")return o!=null?{display:"inline-block"}:void 0;if(s.length===1&&o!=null)return a[s[0]]}return Object.assign(o!=null?{display:"inline-block"}:{},...s.map(c=>a[c]))}},[a]);return A.useCallback(s=>{var o=s,{token:c,className:f,style:d}=o,p=Np(o,["token","className","style"]);const b=Ro(vn({},p),{className:Sp("token",...c.types,f),children:c.content,style:r(c)});return d!=null&&(b.style=vn(vn({},b.style||{}),d)),b},[r])},J1=/\r\n|\r|\n/,am=a=>{a.length===0?a.push({types:["plain"],content:`
|
|
13
|
-
`,empty:!0}):a.length===1&&a[0].content===""&&(a[0].content=`
|
|
14
|
-
`,a[0].empty=!0)},rm=(a,r)=>{const s=a.length;return s>0&&a[s-1]===r?a:a.concat(r)},W1=a=>{const r=[[]],s=[a],o=[0],c=[a.length];let f=0,d=0,p=[];const b=[p];for(;d>-1;){for(;(f=o[d]++)<c[d];){let m,S=r[d];const C=s[d][f];if(typeof C=="string"?(S=d>0?S:["plain"],m=C):(S=rm(S,C.type),C.alias&&(S=rm(S,C.alias)),m=C.content),typeof m!="string"){d++,r.push(S),s.push(m),o.push(0),c.push(m.length);continue}const _=m.split(J1),x=_.length;p.push({types:S,content:_[0]});for(let v=1;v<x;v++)am(p),b.push(p=[]),p.push({types:S,content:_[v]})}d--,r.pop(),s.pop(),o.pop(),c.pop()}return am(p),b},im=W1,P1=({prism:a,code:r,grammar:s,language:o})=>A.useMemo(()=>{if(s==null)return im([r]);const c={code:r,grammar:s,language:o,tokens:[]};return a.hooks.run("before-tokenize",c),c.tokens=a.tokenize(r,s),a.hooks.run("after-tokenize",c),im(c.tokens)},[r,s,o,a]),ex=(a,r)=>{const{plain:s}=a,o=a.styles.reduce((c,f)=>{const{languages:d,style:p}=f;return d&&!d.includes(r)||f.types.forEach(b=>{const m=vn(vn({},c[b]),p);c[b]=m}),c},{});return o.root=s,o.plain=Ro(vn({},s),{backgroundColor:void 0}),o},tx=ex,nx=({children:a,language:r,code:s,theme:o,prism:c})=>{const f=r.toLowerCase(),d=tx(o,f),p=Q1(d),b=K1(d),m=c.languages[f],S=P1({prism:c,language:f,code:s,grammar:m});return a({tokens:S,className:`prism-code language-${f}`,style:d!=null?d.root:{},getLineProps:p,getTokenProps:b})},lx=a=>A.createElement(nx,Ro(vn({},a),{prism:a.prism||ne,theme:a.theme||Cp,code:a.code,language:a.language}));const ax="modulepreload",rx=function(a){return"/"+a},om={},St=function(r,s,o){let c=Promise.resolve();if(s&&s.length>0){let b=function(m){return Promise.all(m.map(S=>Promise.resolve(S).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),p=d?.nonce||d?.getAttribute("nonce");c=b(s.map(m=>{if(m=rx(m),m in om)return;om[m]=!0;const S=m.endsWith(".css"),y=S?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${y}`))return;const C=document.createElement("link");if(C.rel=S?"stylesheet":ax,S||(C.as="script"),C.crossOrigin="",C.href=m,p&&C.setAttribute("nonce",p),document.head.appendChild(C),S)return new Promise((_,x)=>{C.addEventListener("load",_),C.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${m}`)))})}))}function f(d){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=d,window.dispatchEvent(p),!p.defaultPrevented)throw d}return c.then(d=>{for(const p of d||[])p.status==="rejected"&&f(p.reason);return r().catch(f)})},io={};function Ap(a){if(!io[a]){const s={bash:()=>St(()=>import("./prism-bash-DTkDXsAh.js"),[]),sh:()=>St(()=>import("./prism-bash-DTkDXsAh.js"),[]),shell:()=>St(()=>import("./prism-bash-DTkDXsAh.js"),[]),php:async()=>(await St(()=>import("./prism-markup-templating-Ct1xsyfA.js"),[]),St(()=>import("./prism-php-CCdVrygD.js").then(o=>o.p),[])),sql:()=>St(()=>import("./prism-sql-AgAyy5H_.js"),[]),ruby:()=>St(()=>import("./prism-ruby-Qwd73SkL.js").then(o=>o.p),[]),java:()=>St(()=>import("./prism-java-BaWgcwrJ.js").then(o=>o.p),[]),scala:async()=>(await Ap("java"),St(()=>import("./prism-scala-BjNo2HkN.js"),[])),solidity:()=>St(()=>import("./prism-solidity-BidqoZTv.js").then(o=>o.p),[]),vim:()=>St(()=>import("./prism-vim-uciLQ2PQ.js"),[]),dart:()=>St(()=>import("./prism-dart-MjriiaMt.js"),[]),csharp:()=>St(()=>import("./prism-csharp-Bxkwrybw.js").then(o=>o.p),[]),protobuf:()=>St(()=>import("./prism-protobuf-DiQ_z8B5.js"),[]),hcl:()=>St(()=>import("./prism-hcl-B4c-rgZP.js").then(o=>o.p),[]),perl:()=>St(()=>import("./prism-perl-BIlPfOTw.js").then(o=>o.p),[])}[a];if(!s)return console.warn(`No loader available for language: ${a}`),Promise.reject(new Error(`Unsupported language: ${a}`));io[a]=s().then(()=>{}).catch(o=>{throw delete io[a],console.warn(`Failed to load language: ${a}`,o),o})}return io[a]}typeof global<"u"?global.Prism=ne:typeof window<"u"&&(window.Prism=ne);const sm=["markup","html","xml","svg","javascript","js","typescript","ts","jsx","tsx","css","c","cpp","swift","kotlin","objectivec","reason","rust","go","graphql","yaml","yml","json","markdown","md","python","py"];function ix(a,r){const[s,o]=A.useState(()=>sm.includes(r)||!!ne.languages[r]);return A.useEffect(()=>{if(!s){if(sm.includes(r)){o(!0);return}Ap(r).then(()=>{o(!0)}).catch(()=>{o(!1)})}},[r,s]),{ready:s,actualLang:s?r:"text"}}const um=[{id:"github",label:"GitHub Light"},{id:"vsLight",label:"VS Light"},{id:"oneLight",label:"One Light"},{id:"gruvboxMaterialLight",label:"Gruvbox Material Light"},{id:"nightOwlLight",label:"Night Owl Light"}],cm=[{id:"vsDark",label:"VS Dark"},{id:"oneDark",label:"One Dark"},{id:"gruvboxMaterialDark",label:"Gruvbox Material Dark"},{id:"nightOwl",label:"Night Owl"},{id:"dracula",label:"Dracula"},{id:"okaidia",label:"Okaidia"}];function ox(a){return{...a,styles:a.styles.map(r=>({...r,style:{...r.style,background:void 0,backgroundColor:void 0}}))}}function sx(a){let r;switch(a){case"github":r=Qt.github;break;case"vsLight":r=Qt.vsLight;break;case"oneLight":r=Qt.oneLight;break;case"gruvboxMaterialLight":r=Qt.gruvboxMaterialLight;break;case"nightOwlLight":r=Qt.nightOwlLight;break;case"vsDark":r=Qt.vsDark;break;case"oneDark":r=Qt.oneDark;break;case"gruvboxMaterialDark":r=Qt.gruvboxMaterialDark;break;case"nightOwl":r=Qt.nightOwl;break;case"dracula":r=Qt.dracula;break;case"okaidia":r=Qt.okaidia;break;default:r=Qt.vsDark}return ox(r)}function ux(a){const r=Fv(a).toLowerCase(),s=hp(a),o={dockerfile:"docker",makefile:"makefile",".gitignore":"git",".env":"bash",".bashrc":"bash",".zshrc":"bash",".bash_profile":"bash",".profile":"bash"};return o[r]?o[r]:{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",json:"json",css:"css",scss:"css",html:"html",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",yml:"yaml",yaml:"yaml",md:"markdown",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",cpp:"cpp",c:"c",php:"php",sql:"sql",xml:"xml",swift:"swift",kt:"kotlin",scala:"scala",svelte:"svelte",r:"r",lua:"lua",perl:"perl",pl:"perl",pm:"perl",dockerfile:"docker",makefile:"makefile",gitignore:"git",env:"bash",conf:"nginx",ini:"ini",toml:"toml",sol:"solidity",vim:"vim",dart:"dart",cs:"csharp",proto:"protobuf",tf:"hcl",tfvars:"hcl",hcl:"hcl"}[s||""]||"text"}const cx=Vn.memo(function({code:r,language:s,className:o,syntaxTheme:c="vsDark",filename:f="",renderToken:d,onMouseOver:p,onMouseOut:b}){const m=s||(f?ux(f):"text"),{actualLang:S}=ix(r,m),y=sx(c),C=A.useCallback(({style:_,tokens:x,getLineProps:v,getTokenProps:T})=>g.jsx("span",{className:o,style:{..._,background:"transparent",backgroundColor:"transparent"},onMouseOver:p,onMouseOut:b,children:x.map((N,R)=>g.jsx("span",{...v({line:N}),children:N.map((D,M)=>d?d(D,M,T):g.jsx("span",{...T({token:D})},M))},R))}),[o,p,b,d]);return g.jsx(lx,{code:r,language:S,theme:y,prism:ne,children:C})}),xc=Vn.memo(function(r){const{handleMouseOver:s,handleMouseOut:o,isWordHighlighted:c}=Pv(),f=A.useCallback((d,p,b)=>{const m=b({token:d}),S=d.content.split(/( +)/);if(S.length===1&&S[0]&&!nm(S[0]))return g.jsx("span",{...m},p);const y=S.map((C,_)=>{if(!C)return null;if(nm(C)){const x=C.trim(),v=c(x);return g.jsx("span",{className:`word-token ${v?"word-highlight":""}`,"data-word":x,children:C},`${p}-${_}`)}return g.jsx("span",{children:C},`${p}-${_}`)});return g.jsx("span",{...m,children:y},p)},[c]);return g.jsx(cx,{...r,renderToken:f,onMouseOver:s,onMouseOut:o})}),Sc=Vn.memo(function({segments:r,className:s=""}){const o=A.useMemo(()=>r.map((c,f)=>{const d=c.type==="added"?"word-diff-added":c.type==="removed"?"word-diff-removed":"";return g.jsx("span",{className:d,children:c.value},f)}),[r]);return g.jsx("span",{className:s,children:o})}),fx=a=>{switch(a.type){case"add":return"bg-diff-addition-bg";case"delete":return"bg-diff-deletion-bg";default:return"bg-transparent"}},dx=a=>{switch(a.type){case"add":return"+";case"delete":return"-";default:return" "}},Tp=Vn.memo(({line:a,index:r,lineId:s,isCurrentLine:o=!1,hoveredLineIndex:c,selectedLineStyle:f,onMouseEnter:d,onMouseLeave:p,onMouseMove:b,onCommentButtonMouseDown:m,onCommentButtonMouseUp:S,syntaxTheme:y,onClick:C,filename:_,diffSegments:x})=>{const v=a.newLineNumber||a.oldLineNumber,T=c===r&&v,N=o?"keyboard-cursor":"";return g.jsxs("tr",{id:s,className:`group ${fx(a)} relative ${f} ${N} cursor-pointer`,onMouseEnter:d,onMouseLeave:p,onMouseMove:b,onClick:C,children:[g.jsx("td",{className:"w-[50px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative",children:a.oldLineNumber||""}),g.jsxs("td",{className:"w-[50px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible",children:[g.jsx("span",{className:"pr-5",children:a.newLineNumber||""}),T&&g.jsx(go,{onMouseDown:m,onMouseUp:S})]}),g.jsx("td",{className:"p-0 w-full relative align-top",children:g.jsxs("div",{className:"flex items-center relative min-h-[16px]",children:[g.jsx("span",{className:`w-5 text-center text-github-text-muted flex-shrink-0 bg-github-bg-secondary border-r border-github-border ${a.type==="add"?"text-github-accent bg-diff-addition-bg":a.type==="delete"?"text-github-danger bg-diff-deletion-bg":""}`,children:dx(a)}),x?g.jsx(Sc,{segments:x,className:"flex-1 px-3 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):g.jsx(xc,{code:a.content,className:"flex-1 px-3 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:y,filename:_})]})})]})});Tp.displayName="DiffLineRow";function gx({chunk:a,chunkIndex:r,comments:s,onAddComment:o,onGeneratePrompt:c,onRemoveComment:f,onUpdateComment:d,syntaxTheme:p,cursor:b=null,fileIndex:m=0,onLineClick:S,commentTrigger:y,onCommentTriggerHandled:C,filename:_}){const[x,v]=A.useState(null),[T,N]=A.useState(null),[R,D]=A.useState(!1),[M,F]=A.useState(null),[ee,Q]=A.useState(null);A.useEffect(()=>{if(y?.lineIndex!==void 0){const E=a.lines[y.lineIndex];if(E&&E.type!=="delete"){const z=E.newLineNumber;z&&(F({side:"new",lineNumber:z}),C?.())}}},[y,a.lines,C]),A.useEffect(()=>{if(R){const E=()=>{D(!1),v(null),N(null)};return document.addEventListener("mouseup",E),()=>{document.removeEventListener("mouseup",E)}}},[R]);const ce=A.useCallback((E,z)=>{M?.side===E&&M?.lineNumber===z?F(null):F({side:E,lineNumber:z})},[M]),q=A.useCallback(()=>{F(null)},[]),P=A.useCallback(async E=>{M!==null&&(await o(M.lineNumber,E,void 0,M.side),F(null))},[M,o]),J=(E,z)=>s.filter(k=>{const I=Array.isArray(k.line)?k.line[1]===E:k.line===E,$=!k.side||k.side===z;return I&&$}),K=E=>E.oldLine?.type==="delete"&&E.newLine?.type==="add"?E.newLineNumber?"right":"left":E.oldLine?.type==="delete"?"left":E.newLine?.type==="add"?"right":"full",se=(E,z)=>{const k=E==="old"?z.oldLineNumber:z.newLineNumber;if(!k)return"";if(R&&x&&T&&x.side===E&&T.side===E){const I=Math.min(x.lineNumber,T.lineNumber),$=Math.max(x.lineNumber,T.lineNumber);if(k>=I&&k<=$){let j="after:bg-blue-100 after:absolute after:inset-0 after:opacity-30 after:border-l-4 after:border-blue-500 after:pointer-events-none";return k===I&&(j+=" after:border-t-2"),k===$&&(j+=" after:border-b-2"),j}}if(M&&M.side===E){const I=Array.isArray(M.lineNumber)?M.lineNumber:[M.lineNumber,M.lineNumber],$=I[0],j=I[1];if($!==void 0&&j!==void 0&&k>=$&&k<=j)return"after:bg-diff-selected-bg after:absolute after:inset-0 after:border-l-5 after:border-l-diff-selected-border after:pointer-events-none"}return""},U=A.useCallback(E=>{const z=[];let k=a.oldStart,I=a.newStart,$=0;for(;$<E.length;){const j=E[$];if(!j){$++;continue}if(j.type==="normal")z.push({oldLine:j,newLine:{...j},oldLineNumber:j.oldLineNumber??k,newLineNumber:j.newLineNumber??I,oldLineOriginalIndex:$,newLineOriginalIndex:$}),k++,I++,$++;else if(j.type==="delete"){let B=$+1;for(;B<E.length&&E[B]?.type==="delete";)B++;const X=E.slice($,B),ie=$,oe=[],fe=B;for(;B<E.length&&E[B]?.type==="add";){const ge=E[B];ge&&oe.push(ge),B++}const ue=Math.max(X.length,oe.length);for(let ge=0;ge<ue;ge++){const de=X[ge],ye=oe[ge];let Ne;de&&ye&&bp(de.content,ye.content)&&(Ne=pp(de.content,ye.content)),z.push({oldLine:de,newLine:ye,oldLineNumber:de?de.oldLineNumber??k+ge:void 0,newLineNumber:ye?ye.newLineNumber??I+ge:void 0,oldLineOriginalIndex:de?ie+ge:void 0,newLineOriginalIndex:ye?fe+ge:void 0,wordLevelDiff:Ne})}k+=X.length,I+=oe.length,$=B}else j.type==="add"&&(z.push({newLine:j,newLineNumber:j.newLineNumber??I,newLineOriginalIndex:$}),I++,$++)}return z},[a.oldStart,a.newStart]),re=A.useMemo(()=>U(a.lines),[a.lines,U]);return g.jsx("div",{className:"bg-github-bg-primary border border-github-border rounded-md overflow-hidden",children:g.jsx("table",{className:"w-full border-collapse font-mono text-sm leading-5",children:g.jsx("tbody",{children:re.map((E,z)=>{const k=E.oldLineNumber?J(E.oldLineNumber,"old"):[],I=E.newLineNumber?J(E.newLineNumber,"new"):[],$=[...k,...I],j=E.oldLineOriginalIndex??-1,B=E.newLineOriginalIndex??-1,X=b?b.side==="left"&&j>=0?b.chunkIndex===r&&b.lineIndex===j:b.side==="right"&&B>=0?b.chunkIndex===r&&b.lineIndex===B:!1:!1,ie=j>=0?`file-${m}-chunk-${r}-line-${j}-left`:void 0,oe=B>=0?`file-${m}-chunk-${r}-line-${B}-right`:void 0,fe=X&&b?.side==="left",ue=X&&b?.side==="right",ge="keyboard-cursor";return g.jsxs(Vn.Fragment,{children:[g.jsxs("tr",{className:"group cursor-pointer",onClick:de=>{if(!R){const ye=de.target,Ne=ye.closest("td:nth-child(1)")||ye.closest("td:nth-child(2)"),pe=ye.closest("td:nth-child(3)")||ye.closest("td:nth-child(4)");Ne&&j>=0?S?.(m,r,j,"left"):pe&&B>=0&&S?.(m,r,B,"right")}},onMouseEnter:de=>{const ye=de.target,Ne=ye.closest("td:nth-child(1)")||ye.closest("td:nth-child(2)"),pe=ye.closest("td:nth-child(3)")||ye.closest("td:nth-child(4)");Ne&&E.oldLineNumber?Q({side:"old",lineNumber:E.oldLineNumber}):pe&&E.newLineNumber&&Q({side:"new",lineNumber:E.newLineNumber})},onMouseMove:de=>{const ye=de.target,Ne=ye.closest("td:nth-child(1)")||ye.closest("td:nth-child(2)"),pe=ye.closest("td:nth-child(3)")||ye.closest("td:nth-child(4)");Ne&&E.oldLineNumber?(ee?.side!=="old"||ee?.lineNumber!==E.oldLineNumber)&&Q({side:"old",lineNumber:E.oldLineNumber}):pe&&E.newLineNumber&&(ee?.side!=="new"||ee?.lineNumber!==E.newLineNumber)&&Q({side:"new",lineNumber:E.newLineNumber}),R&&x&&(x.side==="old"&&E.oldLineNumber?N({side:"old",lineNumber:E.oldLineNumber}):x.side==="new"&&E.newLineNumber&&N({side:"new",lineNumber:E.newLineNumber}))},onMouseLeave:()=>Q(null),children:[g.jsxs("td",{id:ie,className:`w-[60px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${fe?ge:""}`,children:[g.jsx("span",{className:"pr-5",children:E.oldLineNumber||""}),ee?.side==="old"&&ee?.lineNumber===E.oldLineNumber&&g.jsx(go,{onMouseDown:de=>{de.stopPropagation(),E.oldLineNumber&&(v({side:"old",lineNumber:E.oldLineNumber}),N({side:"old",lineNumber:E.oldLineNumber}),D(!0))},onMouseUp:de=>{if(de.stopPropagation(),!E.oldLineNumber||!x){D(!1),v(null),N(null);return}const ye=T&&T.side==="old"?T.lineNumber:E.oldLineNumber;if(x.side!=="old"||x.lineNumber===ye)ce("old",E.oldLineNumber);else{const Ne=Math.min(x.lineNumber,ye),pe=Math.max(x.lineNumber,ye);ce("old",[Ne,pe])}D(!1),v(null),N(null)}})]}),g.jsx("td",{className:`w-1/2 p-0 align-top border-r border-github-border relative ${E.oldLine?.type==="delete"?"bg-diff-deletion-bg":E.oldLine?.type==="normal"?"bg-transparent":"bg-github-bg-secondary"} ${se("old",E)} ${fe?ge:""}`,children:E.oldLine&&g.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:E.wordLevelDiff?g.jsx(Sc,{segments:E.wordLevelDiff.oldSegments,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):g.jsx(xc,{code:E.oldLine.content,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:p,filename:_})})}),g.jsxs("td",{id:oe,className:`w-[60px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${ue?ge:""}`,children:[g.jsx("span",{className:"pr-5",children:E.newLineNumber||""}),ee?.side==="new"&&ee?.lineNumber===E.newLineNumber&&g.jsx(go,{onMouseDown:de=>{de.stopPropagation(),E.newLineNumber&&(v({side:"new",lineNumber:E.newLineNumber}),N({side:"new",lineNumber:E.newLineNumber}),D(!0))},onMouseUp:de=>{if(de.stopPropagation(),!E.newLineNumber||!x){D(!1),v(null),N(null);return}const ye=T&&T.side==="new"?T.lineNumber:E.newLineNumber;if(x.side!=="new"||x.lineNumber===ye)ce("new",E.newLineNumber);else{const Ne=Math.min(x.lineNumber,ye),pe=Math.max(x.lineNumber,ye);ce("new",[Ne,pe])}D(!1),v(null),N(null)}})]}),g.jsx("td",{className:`w-1/2 p-0 align-top relative ${E.newLine?.type==="add"?"bg-diff-addition-bg":E.newLine?.type==="normal"?"bg-transparent":"bg-github-bg-secondary"} ${se("new",E)} ${ue?ge:""}`,children:E.newLine&&g.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:E.wordLevelDiff?g.jsx(Sc,{segments:E.wordLevelDiff.newSegments,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):g.jsx(xc,{code:E.newLine.content,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text [&_pre]:m-0 [&_pre]:p-0 [&_pre]:!bg-transparent [&_pre]:font-inherit [&_pre]:text-inherit [&_pre]:leading-inherit [&_code]:!bg-transparent [&_code]:font-inherit [&_code]:text-inherit [&_code]:leading-inherit",syntaxTheme:p,filename:_})})})]}),$.length>0&&g.jsx("tr",{className:"bg-github-bg-secondary",children:g.jsx("td",{colSpan:4,className:"p-0 border-t border-github-border",children:$.map(de=>{const ye=de.side||"new";let Ne;return ye==="old"&&E.oldLineNumber?Ne="left":ye==="new"&&E.newLineNumber?Ne="right":Ne=K(E),g.jsx("div",{className:`flex ${Ne==="left"?"justify-start":Ne==="right"?"justify-end":"justify-center"}`,children:g.jsx("div",{className:`${Ne==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:g.jsx(Dc,{comment:de,onGeneratePrompt:c,onRemoveComment:f,onUpdateComment:d})})},de.id)})})}),M&&(M.side==="old"&&M.lineNumber===E.oldLineNumber||M.side==="new"&&M.lineNumber===E.newLineNumber||Array.isArray(M.lineNumber)&&(M.side==="new"&&M.lineNumber[1]===E.newLineNumber||M.side==="old"&&M.lineNumber[1]===E.oldLineNumber))&&g.jsx("tr",{className:"bg-github-bg-secondary",children:g.jsx("td",{colSpan:4,className:"p-0",children:g.jsx("div",{className:`flex ${M.side==="old"?"justify-start":M.side==="new"?"justify-end":"justify-center"}`,children:g.jsx("div",{className:"w-1/2",children:g.jsx(yp,{onSubmit:P,onCancel:q})})})})})]},z)})})})})}function hx({chunk:a,chunkIndex:r,comments:s,onAddComment:o,onGeneratePrompt:c,onRemoveComment:f,onUpdateComment:d,mode:p="inline",syntaxTheme:b,cursor:m=null,fileIndex:S=0,onLineClick:y,commentTrigger:C,onCommentTriggerHandled:_,filename:x}){const[v,T]=A.useState(null),[N,R]=A.useState(null),[D,M]=A.useState(!1),[F,ee]=A.useState(null),[Q,ce]=A.useState(null);A.useEffect(()=>{if(C?.lineIndex!==void 0){const E=a.lines[C.lineIndex];if(E){const z=E.newLineNumber||E.oldLineNumber,k=E.type==="delete"?"old":"new";z&&(ee({side:k,lineNumber:z}),_?.())}}},[C,a.lines,_]),A.useEffect(()=>{if(D){const E=()=>{M(!1),T(null),R(null)};return document.addEventListener("mouseup",E),()=>{document.removeEventListener("mouseup",E)}}},[D]);const q=A.useCallback((E,z)=>{F?.side===E&&F?.lineNumber===z?ee(null):ee({side:E,lineNumber:z})},[F]),P=A.useCallback(()=>{ee(null)},[]),J=A.useCallback(async E=>{F!==null&&(await o(F.lineNumber,E,void 0,F.side),ee(null))},[F,o]),K=(E,z)=>s.filter(k=>{const I=Array.isArray(k.line)?k.line[1]===E:k.line===E,$=!k.side||k.side===z;return I&&$}),se=E=>{if(p==="inline")return"full";switch(E.type){case"delete":return"left";case"add":return"right";default:return"full"}},U=(E,z)=>{if(!E)return"";if(D&&v&&N){const k=Math.min(v,N),I=Math.max(v,N);if(E>=k&&E<=I){let $="after:bg-blue-100 after:absolute after:inset-0 after:opacity-30 after:border-l-4 after:border-blue-500 after:pointer-events-none";return E===k&&($+=" after:border-t-2"),E===I&&($+=" after:border-b-2"),$}}if(F&&F.side===z){const k=Array.isArray(F.lineNumber)?F.lineNumber[0]:F.lineNumber,I=Array.isArray(F.lineNumber)?F.lineNumber[1]:F.lineNumber;if(E>=k&&E<=I)return"after:bg-diff-selected-bg after:absolute after:inset-0 after:border-l-5 after:border-l-diff-selected-border after:pointer-events-none"}return""},re=A.useMemo(()=>{const E=new Map,z=a.lines;let k=0;for(;k<z.length;){const I=z[k];if(!I){k++;continue}if(I.type==="delete"){let $=k+1;for(;$<z.length&&z[$]?.type==="delete";)$++;const j=z.slice(k,$),B=k,X=[];for(;$<z.length&&z[$]?.type==="add";){const oe=z[$];oe&&X.push({line:oe,index:$}),$++}const ie=Math.max(j.length,X.length);for(let oe=0;oe<ie;oe++){const fe=j[oe],ue=X[oe];if(fe&&ue&&bp(fe.content,ue.line.content)){const ge=pp(fe.content,ue.line.content);E.set(B+oe,ge.oldSegments),E.set(ue.index,ge.newSegments)}}k=$}else k++}return E},[a.lines]);return p==="side-by-side"?g.jsx(gx,{chunk:a,chunkIndex:r,comments:s,onAddComment:o,onGeneratePrompt:c,onRemoveComment:f,onUpdateComment:d,syntaxTheme:b,cursor:m,fileIndex:S,onLineClick:y,filename:x,commentTrigger:C,onCommentTriggerHandled:_}):g.jsx("div",{className:"bg-github-bg-primary",children:g.jsx("table",{className:"w-full border-collapse font-mono text-sm leading-5",children:g.jsx("tbody",{children:a.lines.map((E,z)=>{const k=E.newLineNumber||E.oldLineNumber||0,I=E.type==="delete"?"old":"new",$=F?Array.isArray(F.lineNumber)?F.lineNumber[1]:F.lineNumber:null,j=E.type==="delete"?E.oldLineNumber:E.newLineNumber,B=E.type==="delete"?"old":"new",X=j?K(j,B):[],ie=`file-${S}-chunk-${r}-line-${z}`,oe=m&&m.chunkIndex===r&&m.lineIndex===z;return g.jsxs(Vn.Fragment,{children:[g.jsx(Tp,{line:E,index:z,lineId:ie,isCurrentLine:oe||!1,hoveredLineIndex:Q,selectedLineStyle:U(E.newLineNumber||E.oldLineNumber,E.type==="delete"?"old":"new"),onMouseEnter:()=>{ce(z)},onMouseLeave:()=>ce(null),onMouseMove:()=>{if(D&&v){const fe=E.newLineNumber||E.oldLineNumber;fe&&R(fe)}},onCommentButtonMouseDown:fe=>{fe.stopPropagation();const ue=E.newLineNumber||E.oldLineNumber;ue&&(T(ue),R(ue),M(!0))},onCommentButtonMouseUp:fe=>{fe.stopPropagation();const ue=E.newLineNumber||E.oldLineNumber,ge=E.type==="delete"?"old":"new";if(!ue||!v){M(!1),T(null),R(null);return}const de=N||ue;if(v===de)q(ge,ue);else{const ye=Math.min(v,de),Ne=Math.max(v,de);q(ge,[ye,Ne])}M(!1),T(null),R(null)},syntaxTheme:b,filename:x,diffSegments:re.get(z),onClick:()=>{const fe=E.type==="delete"?"left":"right";y?.(S,r,z,fe)}}),X.map(fe=>{const ue=se(E);return g.jsx("tr",{className:"bg-github-bg-secondary",children:g.jsx("td",{colSpan:3,className:"p-0 border-t border-github-border",children:g.jsx("div",{className:`flex ${ue==="left"?"justify-start":ue==="right"?"justify-end":"justify-center"}`,children:g.jsx("div",{className:`${ue==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:g.jsx(Dc,{comment:fe,onGeneratePrompt:c,onRemoveComment:f,onUpdateComment:d})})})})},fe.id)}),F&&F.side===I&&$===k&&g.jsx("tr",{className:"bg-[var(--bg-secondary)]",children:g.jsx("td",{colSpan:3,className:"p-0",children:g.jsx("div",{className:`flex ${se(E)==="left"?"justify-start":se(E)==="right"?"justify-end":"justify-center"}`,children:g.jsx("div",{className:`${se(E)==="full"?"w-full":"w-1/2"}`,children:g.jsx(yp,{onSubmit:J,onCancel:P})})})})})]},z)})})})})}function mx({file:a,mode:r="inline",baseCommitish:s,targetCommitish:o}){const c=a.status==="deleted",f=a.status==="added",d=a.status==="modified"||a.status==="renamed",p=s||"HEAD~1",b=o||"HEAD",[m,S]=A.useState({}),[y,C]=A.useState({}),_=async(N,R)=>{try{const D=N.naturalWidth,M=N.naturalHeight,Q=(await(await fetch(N.src)).blob()).size;R({width:D,height:M,size:Q})}catch(D){console.error("Failed to get image info:",D)}},x=N=>N?N<1024?`${N} B`:N<1024*1024?`${(N/1024).toFixed(1)} KB`:`${(N/(1024*1024)).toFixed(1)} MB`:"",v=N=>!N.width||!N.height?"":`W: ${N.width}px | H: ${N.height}px`,T={backgroundImage:`
|
|
15
|
-
linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%),
|
|
16
|
-
linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%)
|
|
17
|
-
`,backgroundSize:"20px 20px",backgroundPosition:"0 0, 10px 10px",backgroundColor:"white"};return c?g.jsx("div",{className:"bg-github-bg-primary p-4",children:g.jsxs("div",{className:"text-center",children:[g.jsx("div",{className:"mb-2",children:g.jsx("span",{className:"text-github-danger font-medium",children:"Deleted Image"})}),g.jsxs("div",{className:"inline-block border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[g.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),g.jsx("img",{src:`/api/blob/${a.oldPath||a.path}?ref=${p}`,alt:`Previous version of ${a.oldPath||a.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:T,onLoad:N=>_(N.currentTarget,S),onError:N=>{const R=N.target;R.style.display="none",R.nextElementSibling?.classList.remove("hidden")}}),g.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(m.width||m.size)&&g.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[v(m),v(m)&&x(m.size)&&" | ",x(m.size)]})]})]})}):f?g.jsx("div",{className:"bg-github-bg-primary p-4",children:g.jsxs("div",{className:"text-center",children:[g.jsx("div",{className:"mb-2",children:g.jsx("span",{className:"text-github-accent font-medium",children:"Added Image"})}),g.jsxs("div",{className:"inline-block border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[g.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"New file:"}),g.jsx("img",{src:`/api/blob/${a.path}?ref=${b}`,alt:`New image ${a.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:T,onLoad:N=>_(N.currentTarget,C),onError:N=>{const R=N.target;R.style.display="none",R.nextElementSibling?.classList.remove("hidden")}}),g.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(y.width||y.size)&&g.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[v(y),v(y)&&x(y.size)&&" | ",x(y.size)]})]})]})}):d?r==="side-by-side"?g.jsxs("div",{className:"bg-github-bg-primary p-4",children:[g.jsx("div",{className:"text-center mb-4",children:g.jsx("span",{className:"text-github-text-primary font-medium",children:"Modified Image"})}),g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsx("div",{className:"text-center",children:g.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[g.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),g.jsx("img",{src:`/api/blob/${a.oldPath||a.path}?ref=${p}`,alt:`Previous version of ${a.oldPath||a.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:T,onLoad:N=>_(N.currentTarget,S),onError:N=>{const R=N.target;R.style.display="none",R.nextElementSibling?.classList.remove("hidden")}}),g.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(m.width||m.size)&&g.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[v(m),v(m)&&x(m.size)&&" | ",x(m.size)]})]})}),g.jsx("div",{className:"text-center",children:g.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[g.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Current version:"}),g.jsx("img",{src:`/api/blob/${a.path}?ref=${b}`,alt:`Current version of ${a.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:T,onLoad:N=>_(N.currentTarget,C),onError:N=>{const R=N.target;R.style.display="none",R.nextElementSibling?.classList.remove("hidden")}}),g.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(y.width||y.size)&&g.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[v(y),v(y)&&x(y.size)&&" | ",x(y.size)]})]})})]})]}):g.jsxs("div",{className:"bg-github-bg-primary p-4",children:[g.jsx("div",{className:"text-center mb-4",children:g.jsx("span",{className:"text-github-text-primary font-medium",children:"Modified Image"})}),g.jsxs("div",{className:"space-y-6",children:[g.jsx("div",{className:"text-center",children:g.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary inline-block",children:[g.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),g.jsx("img",{src:`/api/blob/${a.oldPath||a.path}?ref=${p}`,alt:`Previous version of ${a.oldPath||a.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:T,onLoad:N=>_(N.currentTarget,S),onError:N=>{const R=N.target;R.style.display="none",R.nextElementSibling?.classList.remove("hidden")}}),g.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(m.width||m.size)&&g.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[v(m),v(m)&&x(m.size)&&" | ",x(m.size)]})]})}),g.jsx("div",{className:"text-center",children:g.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary inline-block",children:[g.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Current version:"}),g.jsx("img",{src:`/api/blob/${a.path}?ref=${b}`,alt:`Current version of ${a.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:T,onLoad:N=>_(N.currentTarget,C),onError:N=>{const R=N.target;R.style.display="none",R.nextElementSibling?.classList.remove("hidden")}}),g.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(y.width||y.size)&&g.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[v(y),v(y)&&x(y.size)&&" | ",x(y.size)]})]})})]})]}):null}function px({file:a,comments:r,diffMode:s,reviewedFiles:o,onToggleReviewed:c,collapsedFiles:f,onToggleCollapsed:d,onToggleAllCollapsed:p,onAddComment:b,onGeneratePrompt:m,onRemoveComment:S,onUpdateComment:y,syntaxTheme:C,baseCommitish:_,targetCommitish:x,cursor:v=null,fileIndex:T=0,onLineClick:N,commentTrigger:R,onCommentTriggerHandled:D}){const M=f.has(a.path),[F,ee]=A.useState(!1),Q=q=>{switch(q){case"added":return g.jsx(sp,{size:16,className:"text-github-accent"});case"deleted":return g.jsx(up,{size:16,className:"text-github-danger"});case"renamed":return g.jsx(op,{size:16,className:"text-github-warning"});default:return g.jsx(ip,{size:16,className:"text-github-text-secondary"})}},ce=async(q,P,J,K,se)=>{try{await b(a.path,q,P,J,K,se)}catch(U){console.error("Failed to add comment:",U)}};return g.jsxs("div",{className:"bg-github-bg-primary",children:[g.jsxs("div",{className:"bg-github-bg-secondary border-t-2 border-t-github-accent border-b border-github-border px-5 py-4 flex items-center justify-between flex-wrap gap-3 sticky top-0 z-10",children:[g.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[g.jsx("button",{onClick:q=>{q.altKey?p(!M):d(a.path)},className:"text-github-text-muted hover:text-github-text-primary transition-colors cursor-pointer",title:M?"Expand file (Alt+Click to expand all)":"Collapse file (Alt+Click to collapse all)",children:M?g.jsx(ap,{size:16}):g.jsx(Fr,{size:16})}),Q(a.status),g.jsx("h2",{className:"text-sm font-mono text-github-text-primary m-0 overflow-hidden text-ellipsis whitespace-nowrap",children:a.path}),g.jsx("button",{className:`bg-transparent border-none cursor-pointer px-1.5 py-1 rounded text-sm transition-all hover:bg-github-bg-tertiary ${F?"text-github-accent":"text-github-text-secondary hover:text-github-text-primary"}`,onClick:()=>{navigator.clipboard.writeText(a.path).then(()=>{console.log("File path copied to clipboard:",a.path),ee(!0),setTimeout(()=>ee(!1),2e3)}).catch(q=>{console.error("Failed to copy file path:",q)})},title:"Copy file path",children:F?g.jsx(Ur,{size:14}):g.jsx(rp,{size:14})}),a.oldPath&&a.oldPath!==a.path&&g.jsxs("span",{className:"text-xs text-github-text-muted italic",children:["(renamed from ",a.oldPath,")"]})]}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[g.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-accent bg-green-100/10",children:["+",a.additions]}),g.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-danger bg-red-100/10",children:["-",a.deletions]})]}),g.jsxs("button",{onClick:()=>c(a.path),className:`flex items-center gap-2 px-3 py-1.5 rounded-md text-sm font-medium transition-all duration-200 ${o.has(a.path)?"bg-github-accent text-white":"dark:bg-slate-600 dark:text-white dark:border-slate-500 dark:hover:bg-slate-500 dark:hover:border-slate-400 bg-github-bg-secondary text-github-text-primary border border-github-border hover:bg-github-bg-tertiary hover:border-github-text-muted"}`,title:o.has(a.path)?"Mark as not reviewed":"Mark as reviewed",children:[o.has(a.path)?g.jsx(Ur,{size:14}):g.jsx(Mv,{size:14}),"Viewed"]})]})]}),!M&&g.jsx("div",{className:"overflow-y-auto",children:Gv(a.path)?g.jsx(mx,{file:a,mode:s,baseCommitish:_,targetCommitish:x}):a.chunks.map((q,P)=>g.jsxs("div",{id:`chunk-${a.path.replace(/[^a-zA-Z0-9]/g,"-")}-${P}`,className:"border-b border-github-border",children:[g.jsx("div",{className:"bg-github-bg-tertiary px-3 py-2 border-b border-github-border",children:g.jsx("code",{className:"text-github-text-secondary text-xs font-mono",children:q.header})}),g.jsx(hx,{chunk:q,chunkIndex:P,comments:r,onAddComment:(J,K,se,U)=>ce(J,K,se,q.header,U),onGeneratePrompt:m,onRemoveComment:S,onUpdateComment:y,mode:s,syntaxTheme:C,cursor:v,fileIndex:T,onLineClick:N,commentTrigger:R?.chunkIndex===P?R:null,onCommentTriggerHandled:D,filename:a.path})]},P))})]})}function bx({containerRef:a,enabled:r=!0}){const s=A.useRef([]),o=A.useRef(new Map),c=A.useRef(null),f=A.useCallback((m,S,y,C)=>{S?o.current.set(m,{element:S,depth:y,name:C}):o.current.delete(m)},[]),d=A.useCallback(m=>{c.current=m;const S=a.current;if(!S||!r)return s.current.length>0&&(s.current=[],m()),()=>{c.current=null};const y=()=>{const _=S.getBoundingClientRect().top,x=[];o.current.forEach(({element:T,depth:N,name:R},D)=>{const M=T.getBoundingClientRect(),F=M.top-_,ee=M.bottom-_;F<0&&ee>0&&x.push({path:D,depth:N,name:R})}),x.sort((T,N)=>T.depth-N.depth),(x.length!==s.current.length||x.some((T,N)=>T.path!==s.current[N]?.path))&&(s.current=x,m())};return S.addEventListener("scroll",y,{passive:!0}),y(),()=>{S.removeEventListener("scroll",y),c.current=null}},[a,r]),p=A.useCallback(()=>s.current,[]);return{stickyDirs:A.useSyncExternalStore(d,p,p),registerDir:f}}function yx({dirs:a,onNavigate:r}){return a.length===0?null:g.jsx("div",{className:"sticky top-0 z-20 bg-github-bg-secondary",children:a.map(s=>g.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 hover:bg-github-bg-tertiary cursor-pointer",style:{paddingLeft:`${s.depth*16+16}px`},onClick:()=>r(s.path),children:[g.jsx(Fr,{size:16}),g.jsx(cp,{size:16,className:"text-github-text-secondary"}),g.jsx("span",{className:"text-sm text-github-text-primary font-medium flex-1 overflow-hidden text-ellipsis whitespace-nowrap",title:s.name,children:s.name})]},s.path))})}function vx(a){const r={name:"",path:"",isDirectory:!0,children:[]};a.forEach(o=>{const c=o.path.split("/");let f=r;for(let d=0;d<c.length;d++){const p=c[d];if(!p)continue;const b=d===c.length-1,m=c.slice(0,d+1).join("/");f.children||(f.children=[]);let S=f.children.find(y=>y.name===p);S||(S={name:p,path:m,isDirectory:!b,children:b?void 0:[],file:b?o:void 0},f.children.push(S)),f=S}});const s=o=>{if(!o.isDirectory||!o.children)return o;if(o.children=o.children.map(s),o.children.length===1&&o.children[0]?.isDirectory&&o.children[0]?.children){const c=o.children[0];if(c)return o.name?{...o,name:`${o.name}/${c.name}`,path:c.path,children:c.children}:o}return o};return s(r)}function xx({files:a,onScrollToFile:r,comments:s,reviewedFiles:o,onToggleReviewed:c,selectedFileIndex:f}){const d=vx(a),p=A.useRef(null),b=A.useRef(new Map),m=q=>{if(!q.isDirectory||!q.children)return[];const P=[];return q.path&&P.push(q.path),q.children.forEach(J=>{P.push(...m(J))}),P},[S,y]=A.useState(()=>new Set(m(d))),[C,_]=A.useState(""),x=q=>s.filter(P=>P.file===q).length,v=A.useMemo(()=>{const q=P=>{if(!C.trim())return P;if(P.isDirectory&&P.children){const J=P.children.map(K=>q(K)).filter(K=>K!==null);return J.length>0?{...P,children:J}:null}else if(P.file)return P.file.path.toLowerCase().includes(C.toLowerCase())?P:null;return null};return q(d)||{...d,children:[]}},[d,C]),{stickyDirs:T,registerDir:N}=bx({containerRef:p,enabled:!C.trim()}),R=A.useCallback(q=>{const P=b.current.get(q);P&&P.scrollIntoView({behavior:"smooth",block:"start"})},[]),D=q=>{switch(q){case"added":return g.jsx(sp,{size:16,className:"text-github-accent"});case"deleted":return g.jsx(up,{size:16,className:"text-github-danger"});case"renamed":return g.jsx(op,{size:16,className:"text-github-warning"});default:return g.jsx(ip,{size:16,className:"text-github-text-secondary"})}},M=q=>{y(P=>{const J=new Set(P);return J.has(q)?J.delete(q):J.add(q),J})},F=m(d),ee=S.size===F.length&&F.length>0,Q=()=>{y(ee?new Set:new Set(F))},ce=(q,P=0)=>{if(q.isDirectory&&q.children){const J=S.has(q.path);return g.jsxs("div",{ref:K=>{if(q.path){if(K){b.current.set(q.path,K),J?N(q.path,K,P,q.name):N(q.path,null,P,q.name);return}b.current.delete(q.path),N(q.path,null,P,q.name)}},children:[q.name&&g.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 hover:bg-github-bg-tertiary cursor-pointer",style:{paddingLeft:`${P*16+16}px`},onClick:()=>M(q.path),children:[J?g.jsx(Fr,{size:16}):g.jsx(ap,{size:16}),J?g.jsx(cp,{size:16,className:"text-github-text-secondary"}):g.jsx(pv,{size:16,className:"text-github-text-secondary"}),g.jsx("span",{className:"text-sm text-github-text-primary font-medium flex-1 overflow-hidden text-ellipsis whitespace-nowrap",title:q.name,children:q.name})]}),(J||!q.name)&&q.children.map(K=>ce(K,q.name?P+1:P))]},q.path)}else if(q.file){const J=q.file,K=x(J.path),se=o.has(J.path),U=a.findIndex(E=>E.path===J.path),re=f!==null&&f===U;return g.jsxs("div",{className:`flex items-center gap-2 px-4 py-2 hover:bg-github-bg-tertiary cursor-pointer transition-colors ${se?"opacity-70":""} ${re?"bg-github-bg-tertiary":""}`,style:{paddingLeft:`${P*16+16}px`},onClick:()=>r(J.path),children:[g.jsx(gp,{checked:se,onChange:()=>{c(J.path)},title:se?"Mark as not reviewed":"Mark as reviewed",className:"z-10"}),D(q.file.status),g.jsx("span",{className:`text-sm text-github-text-primary flex-1 overflow-hidden text-ellipsis whitespace-nowrap ${se?"line-through text-github-text-muted":""}`,title:q.file.path,children:q.name}),K>0&&g.jsxs("span",{className:"text-github-warning text-sm font-medium ml-auto flex items-center gap-1",children:[g.jsx(fp,{size:14}),K]})]},J.path)}return null};return g.jsxs("div",{className:"h-full flex flex-col",children:[g.jsxs("div",{className:"px-4 py-3 border-b border-github-border bg-github-bg-tertiary",children:[g.jsxs("div",{className:"flex items-center justify-between mb-3",children:[g.jsxs("h3",{className:"text-sm font-semibold text-github-text-primary m-0",children:["Files changed (",a.length,")"]}),g.jsx("button",{onClick:Q,className:"p-1 hover:bg-github-bg-primary rounded transition-colors",title:ee?"Collapse all":"Expand all",children:ee?g.jsx(nv,{size:16,className:"text-github-text-secondary"}):g.jsx(av,{size:16,className:"text-github-text-secondary"})})]}),g.jsxs("div",{className:"relative",children:[g.jsx(Ov,{size:16,className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-github-text-muted"}),g.jsx("input",{type:"text",placeholder:"Filter files...",value:C,onChange:q=>_(q.target.value),className:"w-full pl-9 pr-3 py-2 text-sm bg-github-bg-primary border border-github-border rounded-md focus:outline-none focus:border-github-accent text-github-text-primary placeholder-github-text-muted"})]})]}),g.jsxs("div",{className:"flex-1 overflow-y-auto relative",ref:p,children:[g.jsx(yx,{dirs:T,onNavigate:R}),v.children?.map(q=>ce(q))]})]})}function Sx({style:a}){return g.jsx("svg",{width:"98",height:"96",viewBox:"0, 0, 98, 96",style:a,xmlns:"http://www.w3.org/2000/svg","aria-label":"GitHub",role:"img",children:g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z",fill:"currentColor"})})}function Ex({isOpen:a,onClose:r}){const{enableScope:s,disableScope:o}=Ao();return Ye("escape",()=>r(),{enabled:a},[r,a]),A.useEffect(()=>(a?o("navigation"):s("navigation"),()=>{s("navigation")}),[a,s,o]),a?g.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[g.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:r}),g.jsxs("div",{className:"relative bg-github-bg-primary border border-github-border rounded-lg shadow-lg max-w-4xl w-full mx-4 max-h-[80vh] overflow-y-auto",children:[g.jsxs("div",{className:"sticky top-0 bg-github-bg-primary border-b border-github-border px-6 py-4 flex items-center justify-between",children:[g.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"Keyboard Shortcuts"}),g.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close help modal",children:g.jsx(kc,{size:20})})]}),g.jsxs("div",{className:"px-6 py-4 grid grid-cols-1 lg:grid-cols-2 gap-6",children:[g.jsxs("section",{children:[g.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Line Navigation"}),g.jsxs("div",{className:"space-y-1",children:[g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsxs("div",{className:"flex gap-2",children:[g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"j"}),g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↓"})]}),g.jsx("span",{className:"text-github-text-secondary",children:"Next line"})]}),g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsxs("div",{className:"flex gap-2",children:[g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"k"}),g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↑"})]}),g.jsx("span",{className:"text-github-text-secondary",children:"Previous line"})]})]})]}),g.jsxs("section",{children:[g.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"File Navigation"}),g.jsxs("div",{className:"space-y-1",children:[g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"}),g.jsx("span",{className:"text-github-text-secondary",children:"Next file"})]}),g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["}),g.jsx("span",{className:"text-github-text-secondary",children:"Previous file"})]}),g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),g.jsx("span",{className:"text-github-text-muted",children:"+"}),g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["})]}),g.jsx("span",{className:"text-github-text-secondary",children:"Jump to first file"})]}),g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),g.jsx("span",{className:"text-github-text-muted",children:"+"}),g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"})]}),g.jsx("span",{className:"text-github-text-secondary",children:"Jump to last file"})]})]})]}),g.jsxs("section",{children:[g.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Chunk Navigation"}),g.jsxs("div",{className:"space-y-1",children:[g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"n"}),g.jsx("span",{className:"text-github-text-secondary",children:"Next change chunk (added/deleted lines)"})]}),g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"p"}),g.jsx("span",{className:"text-github-text-secondary",children:"Previous change chunk (added/deleted lines)"})]})]})]}),g.jsxs("section",{children:[g.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Navigation"}),g.jsxs("div",{className:"space-y-1",children:[g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"N"}),g.jsx("span",{className:"text-github-text-secondary",children:"Next comment"})]}),g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"P"}),g.jsx("span",{className:"text-github-text-secondary",children:"Previous comment"})]})]})]}),g.jsxs("section",{children:[g.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Side Navigation (Side-by-side mode)"}),g.jsxs("div",{className:"space-y-1",children:[g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsxs("div",{className:"flex gap-2",children:[g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"h"}),g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"←"})]}),g.jsx("span",{className:"text-github-text-secondary",children:"Focus left side"})]}),g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsxs("div",{className:"flex gap-2",children:[g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"l"}),g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"→"})]}),g.jsx("span",{className:"text-github-text-secondary",children:"Focus right side"})]})]})]}),g.jsxs("section",{children:[g.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Management"}),g.jsxs("div",{className:"space-y-1",children:[g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),g.jsx("span",{className:"text-github-text-muted",children:"+"}),g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"L"})]}),g.jsx("span",{className:"text-github-text-secondary",children:"View all comments list"})]}),g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),g.jsx("span",{className:"text-github-text-muted",children:"+"}),g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"C"})]}),g.jsx("span",{className:"text-github-text-secondary",children:"Copy all comments prompt"})]}),g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),g.jsx("span",{className:"text-github-text-muted",children:"+"}),g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"D"})]}),g.jsx("span",{className:"text-github-text-secondary",children:"Delete all comments"})]})]})]}),g.jsxs("section",{children:[g.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Actions"}),g.jsxs("div",{className:"space-y-1",children:[g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"v"}),g.jsx("span",{className:"text-github-text-secondary",children:"Toggle viewed state of current file"})]}),g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),g.jsx("span",{className:"text-github-text-muted",children:"+"}),g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"R"})]}),g.jsx("span",{className:"text-github-text-secondary",children:"Refresh diff when changes detected"})]}),g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"c"}),g.jsx("span",{className:"text-github-text-secondary",children:"Add comment at current line"})]}),g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"."}),g.jsx("span",{className:"text-github-text-secondary",children:"Move cursor to center of viewport"})]}),g.jsxs("div",{className:"flex justify-between text-sm",children:[g.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"?"}),g.jsx("span",{className:"text-github-text-secondary",children:"Show/hide this help"})]})]})]}),g.jsx("div",{className:"pt-4 border-t border-github-border lg:col-span-2",children:g.jsx("p",{className:"text-xs text-github-text-secondary",children:"Shortcuts are disabled when typing in input fields."})})]})]})]}):null}function wx({style:a}){return g.jsxs("svg",{style:a,viewBox:"0 0 720 190",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"difit",role:"img",children:[g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M440.487 5.90627C432.164 9.01695 427.318 16.2817 427.318 25.649C427.318 35.9474 433.206 43.6458 442.714 45.7819C451.336 47.7188 459.606 44.3893 464.84 36.8737C466.923 33.8843 467.35 32.4073 467.606 27.3105C467.773 23.9957 467.492 20.0154 466.983 18.4654C465.699 14.5629 460.869 9.13088 456.854 7.07513C452.57 4.88086 444.73 4.32102 440.487 5.90627ZM596.658 6.653C588.927 9.55794 584.572 15.4908 583.887 24.0465C583.17 33.0212 586.83 39.8868 594.382 43.7278C603.739 48.4877 615.574 44.5081 620.482 34.9515C625.35 25.4728 622.15 13.4916 613.37 8.32678C608.986 5.74808 601.154 4.96365 596.658 6.653ZM368.585 7.68006C367.464 8.80629 367.302 12.903 367.302 40.2286V71.4878L363.832 68.1329C353.432 58.0787 335.595 52.668 319.246 54.6082C310.542 55.641 299.81 59.1369 293.3 63.0607C278.56 71.9427 266.453 89.5576 263.139 106.945C261.765 114.155 261.602 129.431 262.825 136.365C265.723 152.796 274.795 168.36 286.716 177.355C298.275 186.077 310.237 190 325.274 190C340.687 190 353.943 185.273 362.869 176.594L367.302 172.284V178.215C367.302 186.902 366.946 186.724 384.303 186.709C392.243 186.702 399.29 186.347 399.964 185.919C401.04 185.236 401.189 174.47 401.189 97.1224C401.189 23.7236 401.003 8.87842 400.068 7.74809C398.433 5.77021 370.547 5.71037 368.585 7.68006ZM526.937 7.94153C519.783 10.0325 515.359 12.5834 510.029 17.6867C501.959 25.4129 498.766 34.4597 498.766 49.5975V58.8517H490.659C484.378 58.8517 482.263 59.1418 481.268 60.1394C480.214 61.1976 479.986 63.6558 479.986 73.91C479.986 82.5264 480.289 86.6977 480.966 87.3764C481.601 88.0141 484.903 88.36 490.356 88.36H498.766V136.692C498.766 183.638 498.811 185.048 500.345 185.873C502.433 186.994 529.394 186.994 531.482 185.873C533.016 185.048 533.061 183.638 533.061 136.692V88.36H549.334C563.038 88.36 565.809 88.1568 566.89 87.0723C568.782 85.1723 568.782 62.0394 566.89 60.1394C565.808 59.0541 563.029 58.8517 549.231 58.8517H532.856L533.216 51.9721C533.604 44.5499 534.721 41.9147 538.546 39.3958C540.377 38.1901 543.049 37.904 554.661 37.6737C562.626 37.5155 569.018 37.0343 569.602 36.5483C570.892 35.4761 571.046 10.3579 569.777 7.9776C568.978 6.47923 567.918 6.39562 550.384 6.45054C535.269 6.49808 530.93 6.77431 526.937 7.94153ZM654.931 26.4834C653.136 27.7662 653.094 28.1572 653.094 43.3245V58.8517H644.567C633.342 58.8517 633.497 58.6443 633.497 73.6059C633.497 88.5674 633.342 88.36 644.567 88.36H653.094V122.636C653.094 159.998 653.439 163.935 657.362 171.354C661.848 179.838 669.111 184.99 680.857 188.022C687.996 189.866 707.647 189.269 714.309 187.007C719.756 185.158 719.86 184.87 719.969 171.298C720.082 157.364 720.441 157.791 709.174 158.48C695.386 159.324 689.341 156.938 687.388 149.883C686.927 148.214 686.58 134.435 686.577 117.663L686.572 88.36H702.068H717.564L718.87 86.3592C719.946 84.7108 720.129 82.3461 719.91 72.9575C719.719 64.8279 719.321 61.1689 718.522 60.2041C717.553 59.0345 715.315 58.8517 701.987 58.8517H686.572L686.546 43.8926C686.526 31.8556 686.28 28.613 685.288 27.2941C684.156 25.7884 682.945 25.6351 670.412 25.4129C658.94 25.2088 656.476 25.3793 654.931 26.4834ZM431.459 60.1394C430.316 61.2877 430.178 68.0001 430.188 121.82C430.197 168.838 430.429 182.667 431.232 184.262L432.264 186.311L446.657 186.535C458.941 186.725 461.242 186.567 462.353 185.452C463.521 184.279 463.655 177.845 463.655 122.786C463.655 68.0985 463.515 61.2877 462.372 60.1394C460.469 58.2287 433.362 58.2287 431.459 60.1394ZM587.799 60.4369C587.238 61.4894 586.954 82.56 586.954 123.084C586.954 177.502 587.093 184.285 588.236 185.434C590.138 187.342 616.431 187.342 618.333 185.434C619.476 184.285 619.615 177.447 619.615 122.482C619.615 75.6149 619.38 60.5828 618.636 59.8353C617.947 59.1443 613.344 58.8517 603.15 58.8517C589.644 58.8517 588.586 58.9607 587.799 60.4369ZM347.956 87.3469C362.023 93.9543 369.138 107.306 367.775 124.535C366.623 139.097 359.678 149.866 347.83 155.463C337.073 160.544 325.541 160.523 315.049 155.403C293.381 144.83 288.765 112.315 306.417 94.5961C313.92 87.0641 322.021 84.1412 334.301 84.5354C341.49 84.7666 343.224 85.124 347.956 87.3469Z",fill:"currentColor"}),g.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.42299 0.744751C4.61699 2.15275 2.03999 5.66375 0.956994 12.2768C-0.369006 20.3728 -0.294006 170.791 1.03899 176.572C2.29699 182.031 4.81699 185.308 9.65399 187.774C13.265 189.615 16.865 189.684 108.63 189.684C163.129 189.684 204.095 189.304 204.41 188.795C206 188.5 206 188.795 207.5 188C211.167 187.079 216.779 180.138 218.005 175.584C218.682 173.068 218.939 143.952 218.756 90.4718C218.487 11.7478 218.417 9.10275 216.535 6.62675C215.466 5.22075 213.441 3.19575 212.035 2.12675C209.546 0.23575 206.839 0.17975 110.978 0.0167504C55.373 -0.0782496 11.148 0.239751 9.42299 0.744751ZM203.778 14.8838C205.558 16.6638 205.509 172.577 203.728 175.005C202.577 176.574 198.865 176.688 156.978 176.446L111.478 176.184L111.226 138.684L110.974 101.184H84.059C69.255 101.184 56.808 101.52 56.397 101.931C55.986 102.343 60.674 107.82 66.814 114.104C72.954 120.388 77.978 126.202 77.978 127.026C77.978 129.577 74.769 134.267 71.896 135.916C69.609 137.229 68.75 137.278 66.704 136.217C63.533 134.572 28.705 99.1448 27.757 96.5998C27.36 95.5348 27.491 93.4308 28.049 91.9238C28.955 89.4768 68.498 49.6838 70.024 49.6838C70.366 49.6838 72.356 51.1627 74.447 52.9697C77.589 55.6867 78.118 56.6658 77.498 58.6198C77.086 59.9198 72.075 65.8308 66.363 71.7568C60.651 77.6818 55.978 83.0148 55.978 83.6068C55.978 84.3488 64.068 84.6838 81.952 84.6838H107.927H110.666C111.144 82.5 110.978 73.4537 110.978 46.2337V13.6838H156.778C191.067 13.6838 202.88 13.9858 203.778 14.8838ZM148.803 52.7217C146.51 54.0597 144.845 59.5997 145.74 62.9107C146.146 64.4107 150.657 69.9308 155.764 75.1788C161.411 80.9788 164.547 84.8988 163.764 85.1788C163.057 85.4318 151.549 85.7608 138.19 85.9108C117.896 86.1388 113.747 86.4308 112.956 87.6838C112.435 88.5088 112.002 91.7228 111.993 94.8268C111.982 99.0598 112.373 100.622 113.56 101.077C114.43 101.411 126.13 101.684 139.56 101.684C156.121 101.684 163.978 102.026 163.978 102.746C163.978 103.33 160.187 107.607 155.554 112.251C146.244 121.582 144.276 125.371 146.069 130.514C147.321 134.107 149.576 135.684 153.463 135.684C155.522 135.684 159.843 131.902 173.778 117.904C191.699 99.9008 194.978 96.0678 194.978 93.1208C194.978 91.1338 157.422 53.8238 154.163 52.5728C151.322 51.4818 150.908 51.4937 148.803 52.7217Z",fill:"currentColor"})]})}function Nx({shouldReload:a,isReloading:r,onReload:s,changeType:o,className:c=""}){if(!a)return null;const f=()=>{switch(o){case"commit":return"New commits available";case"staging":return"Staging changes detected";case"file":return"File changes detected";default:return"Changes detected"}};return g.jsxs("button",{onClick:s,disabled:r,className:`
|
|
18
|
-
flex items-center gap-1.5 px-3 py-1.5 text-xs rounded-md border ${c}
|
|
19
|
-
${r?"bg-github-text-primary text-github-bg-primary border-github-text-primary cursor-not-allowed":"bg-github-text-primary text-github-bg-primary border-github-text-primary"}
|
|
20
|
-
`,title:`${f()} - Click to refresh`,children:[g.jsx(_v,{size:12,className:`${r?"animate-spin":""}`}),"Refresh"]})}function _o(){return typeof window<"u"}function Nl(a){return zc(a)?(a.nodeName||"").toLowerCase():"#document"}function Ut(a){var r;return(a==null||(r=a.ownerDocument)==null?void 0:r.defaultView)||window}function Sn(a){var r;return(r=(zc(a)?a.ownerDocument:a.document)||window.document)==null?void 0:r.documentElement}function zc(a){return _o()?a instanceof Node||a instanceof Ut(a).Node:!1}function Ze(a){return _o()?a instanceof Element||a instanceof Ut(a).Element:!1}function ut(a){return _o()?a instanceof HTMLElement||a instanceof Ut(a).HTMLElement:!1}function mo(a){return!_o()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof Ut(a).ShadowRoot}const Cx=new Set(["inline","contents"]);function qr(a){const{overflow:r,overflowX:s,overflowY:o,display:c}=sn(a);return/auto|scroll|overlay|hidden|clip/.test(r+o+s)&&!Cx.has(c)}const Ax=new Set(["table","td","th"]);function Tx(a){return Ax.has(Nl(a))}const Rx=[":popover-open",":modal"];function jo(a){return Rx.some(r=>{try{return a.matches(r)}catch{return!1}})}const _x=["transform","translate","scale","rotate","perspective"],jx=["transform","translate","scale","rotate","perspective","filter"],Ox=["paint","layout","strict","content"];function Lc(a){const r=Oo(),s=Ze(a)?sn(a):a;return _x.some(o=>s[o]?s[o]!=="none":!1)||(s.containerType?s.containerType!=="normal":!1)||!r&&(s.backdropFilter?s.backdropFilter!=="none":!1)||!r&&(s.filter?s.filter!=="none":!1)||jx.some(o=>(s.willChange||"").includes(o))||Ox.some(o=>(s.contain||"").includes(o))}function kx(a){let r=Yn(a);for(;ut(r)&&!Gn(r);){if(Lc(r))return r;if(jo(r))return null;r=Yn(r)}return null}function Oo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Dx=new Set(["html","body","#document"]);function Gn(a){return Dx.has(Nl(a))}function sn(a){return Ut(a).getComputedStyle(a)}function ko(a){return Ze(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Yn(a){if(Nl(a)==="html")return a;const r=a.assignedSlot||a.parentNode||mo(a)&&a.host||Sn(a);return mo(r)?r.host:r}function Rp(a){const r=Yn(a);return Gn(r)?a.ownerDocument?a.ownerDocument.body:a.body:ut(r)&&qr(r)?r:Rp(r)}function wl(a,r,s){var o;r===void 0&&(r=[]),s===void 0&&(s=!0);const c=Rp(a),f=c===((o=a.ownerDocument)==null?void 0:o.body),d=Ut(c);if(f){const p=Ec(d);return r.concat(d,d.visualViewport||[],qr(c)?c:[],p&&s?wl(p):[])}return r.concat(c,wl(c,[],s))}function Ec(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}const po=Math.min,Zl=Math.max,bo=Math.round,oo=Math.floor,xn=a=>({x:a,y:a}),Mx={left:"right",right:"left",bottom:"top",top:"bottom"},zx={start:"end",end:"start"};function fm(a,r,s){return Zl(a,po(r,s))}function Do(a,r){return typeof a=="function"?a(r):a}function Il(a){return a.split("-")[0]}function Mo(a){return a.split("-")[1]}function _p(a){return a==="x"?"y":"x"}function jp(a){return a==="y"?"height":"width"}const Lx=new Set(["top","bottom"]);function xl(a){return Lx.has(Il(a))?"y":"x"}function Op(a){return _p(xl(a))}function Bx(a,r,s){s===void 0&&(s=!1);const o=Mo(a),c=Op(a),f=jp(c);let d=c==="x"?o===(s?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[f]>r.floating[f]&&(d=yo(d)),[d,yo(d)]}function Ux(a){const r=yo(a);return[wc(a),r,wc(r)]}function wc(a){return a.replace(/start|end/g,r=>zx[r])}const dm=["left","right"],gm=["right","left"],Hx=["top","bottom"],Fx=["bottom","top"];function qx(a,r,s){switch(a){case"top":case"bottom":return s?r?gm:dm:r?dm:gm;case"left":case"right":return r?Hx:Fx;default:return[]}}function Gx(a,r,s,o){const c=Mo(a);let f=qx(Il(a),s==="start",o);return c&&(f=f.map(d=>d+"-"+c),r&&(f=f.concat(f.map(wc)))),f}function yo(a){return a.replace(/left|right|bottom|top/g,r=>Mx[r])}function Yx(a){return{top:0,right:0,bottom:0,left:0,...a}}function Vx(a){return typeof a!="number"?Yx(a):{top:a,right:a,bottom:a,left:a}}function vo(a){const{x:r,y:s,width:o,height:c}=a;return{width:o,height:c,top:s,left:r,right:r+o,bottom:s+c,x:r,y:s}}var Xx=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],xo=Xx.join(","),kp=typeof Element>"u",Fa=kp?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,So=!kp&&Element.prototype.getRootNode?function(a){var r;return a==null||(r=a.getRootNode)===null||r===void 0?void 0:r.call(a)}:function(a){return a?.ownerDocument},Eo=function(r,s){var o;s===void 0&&(s=!0);var c=r==null||(o=r.getAttribute)===null||o===void 0?void 0:o.call(r,"inert"),f=c===""||c==="true",d=f||s&&r&&(typeof r.closest=="function"?r.closest("[inert]"):Eo(r.parentNode));return d},Zx=function(r){var s,o=r==null||(s=r.getAttribute)===null||s===void 0?void 0:s.call(r,"contenteditable");return o===""||o==="true"},Dp=function(r,s,o){if(Eo(r))return[];var c=Array.prototype.slice.apply(r.querySelectorAll(xo));return s&&Fa.call(r,xo)&&c.unshift(r),c=c.filter(o),c},wo=function(r,s,o){for(var c=[],f=Array.from(r);f.length;){var d=f.shift();if(!Eo(d,!1))if(d.tagName==="SLOT"){var p=d.assignedElements(),b=p.length?p:d.children,m=wo(b,!0,o);o.flatten?c.push.apply(c,m):c.push({scopeParent:d,candidates:m})}else{var S=Fa.call(d,xo);S&&o.filter(d)&&(s||!r.includes(d))&&c.push(d);var y=d.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(d),C=!Eo(y,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(d));if(y&&C){var _=wo(y===!0?d.children:y.children,!0,o);o.flatten?c.push.apply(c,_):c.push({scopeParent:d,candidates:_})}else f.unshift.apply(f,d.children)}}return c},Mp=function(r){return!isNaN(parseInt(r.getAttribute("tabindex"),10))},zp=function(r){if(!r)throw new Error("No node provided");return r.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(r.tagName)||Zx(r))&&!Mp(r)?0:r.tabIndex},Ix=function(r,s){var o=zp(r);return o<0&&s&&!Mp(r)?0:o},$x=function(r,s){return r.tabIndex===s.tabIndex?r.documentOrder-s.documentOrder:r.tabIndex-s.tabIndex},Lp=function(r){return r.tagName==="INPUT"},Qx=function(r){return Lp(r)&&r.type==="hidden"},Kx=function(r){var s=r.tagName==="DETAILS"&&Array.prototype.slice.apply(r.children).some(function(o){return o.tagName==="SUMMARY"});return s},Jx=function(r,s){for(var o=0;o<r.length;o++)if(r[o].checked&&r[o].form===s)return r[o]},Wx=function(r){if(!r.name)return!0;var s=r.form||So(r),o=function(p){return s.querySelectorAll('input[type="radio"][name="'+p+'"]')},c;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")c=o(window.CSS.escape(r.name));else try{c=o(r.name)}catch(d){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",d.message),!1}var f=Jx(c,r.form);return!f||f===r},Px=function(r){return Lp(r)&&r.type==="radio"},e2=function(r){return Px(r)&&!Wx(r)},t2=function(r){var s,o=r&&So(r),c=(s=o)===null||s===void 0?void 0:s.host,f=!1;if(o&&o!==r){var d,p,b;for(f=!!((d=c)!==null&&d!==void 0&&(p=d.ownerDocument)!==null&&p!==void 0&&p.contains(c)||r!=null&&(b=r.ownerDocument)!==null&&b!==void 0&&b.contains(r));!f&&c;){var m,S,y;o=So(c),c=(m=o)===null||m===void 0?void 0:m.host,f=!!((S=c)!==null&&S!==void 0&&(y=S.ownerDocument)!==null&&y!==void 0&&y.contains(c))}}return f},hm=function(r){var s=r.getBoundingClientRect(),o=s.width,c=s.height;return o===0&&c===0},n2=function(r,s){var o=s.displayCheck,c=s.getShadowRoot;if(o==="full-native"&&"checkVisibility"in r){var f=r.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!f}if(getComputedStyle(r).visibility==="hidden")return!0;var d=Fa.call(r,"details>summary:first-of-type"),p=d?r.parentElement:r;if(Fa.call(p,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="full-native"||o==="legacy-full"){if(typeof c=="function"){for(var b=r;r;){var m=r.parentElement,S=So(r);if(m&&!m.shadowRoot&&c(m)===!0)return hm(r);r.assignedSlot?r=r.assignedSlot:!m&&S!==r.ownerDocument?r=S.host:r=m}r=b}if(t2(r))return!r.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return hm(r);return!1},l2=function(r){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(r.tagName))for(var s=r.parentElement;s;){if(s.tagName==="FIELDSET"&&s.disabled){for(var o=0;o<s.children.length;o++){var c=s.children.item(o);if(c.tagName==="LEGEND")return Fa.call(s,"fieldset[disabled] *")?!0:!c.contains(r)}return!0}s=s.parentElement}return!1},Nc=function(r,s){return!(s.disabled||Qx(s)||n2(s,r)||Kx(s)||l2(s))},Cc=function(r,s){return!(e2(s)||zp(s)<0||!Nc(r,s))},a2=function(r){var s=parseInt(r.getAttribute("tabindex"),10);return!!(isNaN(s)||s>=0)},Bp=function(r){var s=[],o=[];return r.forEach(function(c,f){var d=!!c.scopeParent,p=d?c.scopeParent:c,b=Ix(p,d),m=d?Bp(c.candidates):p;b===0?d?s.push.apply(s,m):s.push(p):o.push({documentOrder:f,tabIndex:b,item:c,isScope:d,content:m})}),o.sort($x).reduce(function(c,f){return f.isScope?c.push.apply(c,f.content):c.push(f.content),c},[]).concat(s)},zo=function(r,s){s=s||{};var o;return s.getShadowRoot?o=wo([r],s.includeContainer,{filter:Cc.bind(null,s),flatten:!1,getShadowRoot:s.getShadowRoot,shadowRootFilter:a2}):o=Dp(r,s.includeContainer,Cc.bind(null,s)),Bp(o)},r2=function(r,s){s=s||{};var o;return s.getShadowRoot?o=wo([r],s.includeContainer,{filter:Nc.bind(null,s),flatten:!0,getShadowRoot:s.getShadowRoot}):o=Dp(r,s.includeContainer,Nc.bind(null,s)),o},Up=function(r,s){if(s=s||{},!r)throw new Error("No node provided");return Fa.call(r,xo)===!1?!1:Cc(s,r)};function Hp(){const a=navigator.userAgentData;return a!=null&&a.platform?a.platform:navigator.platform}function Fp(){const a=navigator.userAgentData;return a&&Array.isArray(a.brands)?a.brands.map(r=>{let{brand:s,version:o}=r;return s+"/"+o}).join(" "):navigator.userAgent}function qp(){return/apple/i.test(navigator.vendor)}function Ac(){const a=/android/i;return a.test(Hp())||a.test(Fp())}function i2(){return Hp().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Gp(){return Fp().includes("jsdom/")}const mm="data-floating-ui-focusable",o2="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function vl(a){let r=a.activeElement;for(;((s=r)==null||(s=s.shadowRoot)==null?void 0:s.activeElement)!=null;){var s;r=r.shadowRoot.activeElement}return r}function Et(a,r){if(!a||!r)return!1;const s=r.getRootNode==null?void 0:r.getRootNode();if(a.contains(r))return!0;if(s&&mo(s)){let o=r;for(;o;){if(a===o)return!0;o=o.parentNode||o.host}}return!1}function Fn(a){return"composedPath"in a?a.composedPath()[0]:a.target}function ic(a,r){if(r==null)return!1;if("composedPath"in a)return a.composedPath().includes(r);const s=a;return s.target!=null&&r.contains(s.target)}function s2(a){return a.matches("html,body")}function wt(a){return a?.ownerDocument||document}function Bc(a){return ut(a)&&a.matches(o2)}function pm(a){return a?a.getAttribute("role")==="combobox"&&Bc(a):!1}function u2(a){if(!a||Gp())return!0;try{return a.matches(":focus-visible")}catch{return!0}}function Tc(a){return a?a.hasAttribute(mm)?a:a.querySelector("["+mm+"]")||a:null}function Ba(a,r,s){return s===void 0&&(s=!0),a.filter(c=>{var f;return c.parentId===r&&(!s||((f=c.context)==null?void 0:f.open))}).flatMap(c=>[c,...Ba(a,c.id,s)])}function bm(a,r){var s;let o=[],c=(s=a.find(f=>f.id===r))==null?void 0:s.parentId;for(;c;){const f=a.find(d=>d.id===c);c=f?.parentId,f&&(o=o.concat(f))}return o}function oc(a){a.preventDefault(),a.stopPropagation()}function c2(a){return"nativeEvent"in a}function f2(a){return a.mozInputSource===0&&a.isTrusted?!0:Ac()&&a.pointerType?a.type==="click"&&a.buttons===1:a.detail===0&&!a.pointerType}function d2(a){return Gp()?!1:!Ac()&&a.width===0&&a.height===0||Ac()&&a.width===1&&a.height===1&&a.pressure===0&&a.detail===0&&a.pointerType==="mouse"||a.width<1&&a.height<1&&a.pressure===0&&a.detail===0&&a.pointerType==="touch"}function Hr(a,r){const s=["mouse","pen"];return r||s.push("",void 0),s.includes(a)}var g2=typeof document<"u",h2=function(){},Bt=g2?A.useLayoutEffect:h2;const m2={...$m};function Xl(a){const r=A.useRef(a);return Bt(()=>{r.current=a}),r}const p2=m2.useInsertionEffect,b2=p2||(a=>a());function Lt(a){const r=A.useRef(()=>{});return b2(()=>{r.current=a}),A.useCallback(function(){for(var s=arguments.length,o=new Array(s),c=0;c<s;c++)o[c]=arguments[c];return r.current==null?void 0:r.current(...o)},[])}const Gr=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Yp(a,r){const s=zo(a,Gr()),o=s.length;if(o===0)return;const c=vl(wt(a)),f=s.indexOf(c),d=f===-1?r===1?0:o-1:f+r;return s[d]}function Vp(a){return Yp(wt(a).body,1)||a}function Xp(a){return Yp(wt(a).body,-1)||a}function Lr(a,r){const s=r||a.currentTarget,o=a.relatedTarget;return!o||!Et(s,o)}function y2(a){zo(a,Gr()).forEach(s=>{s.dataset.tabindex=s.getAttribute("tabindex")||"",s.setAttribute("tabindex","-1")})}function ym(a){a.querySelectorAll("[data-tabindex]").forEach(s=>{const o=s.dataset.tabindex;delete s.dataset.tabindex,o?s.setAttribute("tabindex",o):s.removeAttribute("tabindex")})}var Zp=Qm();function vm(a,r,s){let{reference:o,floating:c}=a;const f=xl(r),d=Op(r),p=jp(d),b=Il(r),m=f==="y",S=o.x+o.width/2-c.width/2,y=o.y+o.height/2-c.height/2,C=o[p]/2-c[p]/2;let _;switch(b){case"top":_={x:S,y:o.y-c.height};break;case"bottom":_={x:S,y:o.y+o.height};break;case"right":_={x:o.x+o.width,y};break;case"left":_={x:o.x-c.width,y};break;default:_={x:o.x,y:o.y}}switch(Mo(r)){case"start":_[d]-=C*(s&&m?-1:1);break;case"end":_[d]+=C*(s&&m?-1:1);break}return _}const v2=async(a,r,s)=>{const{placement:o="bottom",strategy:c="absolute",middleware:f=[],platform:d}=s,p=f.filter(Boolean),b=await(d.isRTL==null?void 0:d.isRTL(r));let m=await d.getElementRects({reference:a,floating:r,strategy:c}),{x:S,y}=vm(m,o,b),C=o,_={},x=0;for(let v=0;v<p.length;v++){const{name:T,fn:N}=p[v],{x:R,y:D,data:M,reset:F}=await N({x:S,y,initialPlacement:o,placement:C,strategy:c,middlewareData:_,rects:m,platform:d,elements:{reference:a,floating:r}});S=R??S,y=D??y,_={..._,[T]:{..._[T],...M}},F&&x<=50&&(x++,typeof F=="object"&&(F.placement&&(C=F.placement),F.rects&&(m=F.rects===!0?await d.getElementRects({reference:a,floating:r,strategy:c}):F.rects),{x:S,y}=vm(m,C,b)),v=-1)}return{x:S,y,placement:C,strategy:c,middlewareData:_}};async function Ip(a,r){var s;r===void 0&&(r={});const{x:o,y:c,platform:f,rects:d,elements:p,strategy:b}=a,{boundary:m="clippingAncestors",rootBoundary:S="viewport",elementContext:y="floating",altBoundary:C=!1,padding:_=0}=Do(r,a),x=Vx(_),T=p[C?y==="floating"?"reference":"floating":y],N=vo(await f.getClippingRect({element:(s=await(f.isElement==null?void 0:f.isElement(T)))==null||s?T:T.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(p.floating)),boundary:m,rootBoundary:S,strategy:b})),R=y==="floating"?{x:o,y:c,width:d.floating.width,height:d.floating.height}:d.reference,D=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p.floating)),M=await(f.isElement==null?void 0:f.isElement(D))?await(f.getScale==null?void 0:f.getScale(D))||{x:1,y:1}:{x:1,y:1},F=vo(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:R,offsetParent:D,strategy:b}):R);return{top:(N.top-F.top+x.top)/M.y,bottom:(F.bottom-N.bottom+x.bottom)/M.y,left:(N.left-F.left+x.left)/M.x,right:(F.right-N.right+x.right)/M.x}}const x2=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(r){var s,o;const{placement:c,middlewareData:f,rects:d,initialPlacement:p,platform:b,elements:m}=r,{mainAxis:S=!0,crossAxis:y=!0,fallbackPlacements:C,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:v=!0,...T}=Do(a,r);if((s=f.arrow)!=null&&s.alignmentOffset)return{};const N=Il(c),R=xl(p),D=Il(p)===p,M=await(b.isRTL==null?void 0:b.isRTL(m.floating)),F=C||(D||!v?[yo(p)]:Ux(p)),ee=x!=="none";!C&&ee&&F.push(...Gx(p,v,x,M));const Q=[p,...F],ce=await Ip(r,T),q=[];let P=((o=f.flip)==null?void 0:o.overflows)||[];if(S&&q.push(ce[N]),y){const U=Bx(c,d,M);q.push(ce[U[0]],ce[U[1]])}if(P=[...P,{placement:c,overflows:q}],!q.every(U=>U<=0)){var J,K;const U=(((J=f.flip)==null?void 0:J.index)||0)+1,re=Q[U];if(re&&(!(y==="alignment"?R!==xl(re):!1)||P.every(k=>xl(k.placement)===R?k.overflows[0]>0:!0)))return{data:{index:U,overflows:P},reset:{placement:re}};let E=(K=P.filter(z=>z.overflows[0]<=0).sort((z,k)=>z.overflows[1]-k.overflows[1])[0])==null?void 0:K.placement;if(!E)switch(_){case"bestFit":{var se;const z=(se=P.filter(k=>{if(ee){const I=xl(k.placement);return I===R||I==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(I=>I>0).reduce((I,$)=>I+$,0)]).sort((k,I)=>k[1]-I[1])[0])==null?void 0:se[0];z&&(E=z);break}case"initialPlacement":E=p;break}if(c!==E)return{reset:{placement:E}}}return{}}}},S2=new Set(["left","top"]);async function E2(a,r){const{placement:s,platform:o,elements:c}=a,f=await(o.isRTL==null?void 0:o.isRTL(c.floating)),d=Il(s),p=Mo(s),b=xl(s)==="y",m=S2.has(d)?-1:1,S=f&&b?-1:1,y=Do(r,a);let{mainAxis:C,crossAxis:_,alignmentAxis:x}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return p&&typeof x=="number"&&(_=p==="end"?x*-1:x),b?{x:_*S,y:C*m}:{x:C*m,y:_*S}}const w2=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(r){var s,o;const{x:c,y:f,placement:d,middlewareData:p}=r,b=await E2(r,a);return d===((s=p.offset)==null?void 0:s.placement)&&(o=p.arrow)!=null&&o.alignmentOffset?{}:{x:c+b.x,y:f+b.y,data:{...b,placement:d}}}}},N2=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(r){const{x:s,y:o,placement:c}=r,{mainAxis:f=!0,crossAxis:d=!1,limiter:p={fn:T=>{let{x:N,y:R}=T;return{x:N,y:R}}},...b}=Do(a,r),m={x:s,y:o},S=await Ip(r,b),y=xl(Il(c)),C=_p(y);let _=m[C],x=m[y];if(f){const T=C==="y"?"top":"left",N=C==="y"?"bottom":"right",R=_+S[T],D=_-S[N];_=fm(R,_,D)}if(d){const T=y==="y"?"top":"left",N=y==="y"?"bottom":"right",R=x+S[T],D=x-S[N];x=fm(R,x,D)}const v=p.fn({...r,[C]:_,[y]:x});return{...v,data:{x:v.x-s,y:v.y-o,enabled:{[C]:f,[y]:d}}}}}};function $p(a){const r=sn(a);let s=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const c=ut(a),f=c?a.offsetWidth:s,d=c?a.offsetHeight:o,p=bo(s)!==f||bo(o)!==d;return p&&(s=f,o=d),{width:s,height:o,$:p}}function Uc(a){return Ze(a)?a:a.contextElement}function Ua(a){const r=Uc(a);if(!ut(r))return xn(1);const s=r.getBoundingClientRect(),{width:o,height:c,$:f}=$p(r);let d=(f?bo(s.width):s.width)/o,p=(f?bo(s.height):s.height)/c;return(!d||!Number.isFinite(d))&&(d=1),(!p||!Number.isFinite(p))&&(p=1),{x:d,y:p}}const C2=xn(0);function Qp(a){const r=Ut(a);return!Oo()||!r.visualViewport?C2:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function A2(a,r,s){return r===void 0&&(r=!1),!s||r&&s!==Ut(a)?!1:r}function $l(a,r,s,o){r===void 0&&(r=!1),s===void 0&&(s=!1);const c=a.getBoundingClientRect(),f=Uc(a);let d=xn(1);r&&(o?Ze(o)&&(d=Ua(o)):d=Ua(a));const p=A2(f,s,o)?Qp(f):xn(0);let b=(c.left+p.x)/d.x,m=(c.top+p.y)/d.y,S=c.width/d.x,y=c.height/d.y;if(f){const C=Ut(f),_=o&&Ze(o)?Ut(o):o;let x=C,v=Ec(x);for(;v&&o&&_!==x;){const T=Ua(v),N=v.getBoundingClientRect(),R=sn(v),D=N.left+(v.clientLeft+parseFloat(R.paddingLeft))*T.x,M=N.top+(v.clientTop+parseFloat(R.paddingTop))*T.y;b*=T.x,m*=T.y,S*=T.x,y*=T.y,b+=D,m+=M,x=Ut(v),v=Ec(x)}}return vo({width:S,height:y,x:b,y:m})}function Lo(a,r){const s=ko(a).scrollLeft;return r?r.left+s:$l(Sn(a)).left+s}function Kp(a,r){const s=a.getBoundingClientRect(),o=s.left+r.scrollLeft-Lo(a,s),c=s.top+r.scrollTop;return{x:o,y:c}}function T2(a){let{elements:r,rect:s,offsetParent:o,strategy:c}=a;const f=c==="fixed",d=Sn(o),p=r?jo(r.floating):!1;if(o===d||p&&f)return s;let b={scrollLeft:0,scrollTop:0},m=xn(1);const S=xn(0),y=ut(o);if((y||!y&&!f)&&((Nl(o)!=="body"||qr(d))&&(b=ko(o)),ut(o))){const _=$l(o);m=Ua(o),S.x=_.x+o.clientLeft,S.y=_.y+o.clientTop}const C=d&&!y&&!f?Kp(d,b):xn(0);return{width:s.width*m.x,height:s.height*m.y,x:s.x*m.x-b.scrollLeft*m.x+S.x+C.x,y:s.y*m.y-b.scrollTop*m.y+S.y+C.y}}function R2(a){return Array.from(a.getClientRects())}function _2(a){const r=Sn(a),s=ko(a),o=a.ownerDocument.body,c=Zl(r.scrollWidth,r.clientWidth,o.scrollWidth,o.clientWidth),f=Zl(r.scrollHeight,r.clientHeight,o.scrollHeight,o.clientHeight);let d=-s.scrollLeft+Lo(a);const p=-s.scrollTop;return sn(o).direction==="rtl"&&(d+=Zl(r.clientWidth,o.clientWidth)-c),{width:c,height:f,x:d,y:p}}const xm=25;function j2(a,r){const s=Ut(a),o=Sn(a),c=s.visualViewport;let f=o.clientWidth,d=o.clientHeight,p=0,b=0;if(c){f=c.width,d=c.height;const S=Oo();(!S||S&&r==="fixed")&&(p=c.offsetLeft,b=c.offsetTop)}const m=Lo(o);if(m<=0){const S=o.ownerDocument,y=S.body,C=getComputedStyle(y),_=S.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,x=Math.abs(o.clientWidth-y.clientWidth-_);x<=xm&&(f-=x)}else m<=xm&&(f+=m);return{width:f,height:d,x:p,y:b}}const O2=new Set(["absolute","fixed"]);function k2(a,r){const s=$l(a,!0,r==="fixed"),o=s.top+a.clientTop,c=s.left+a.clientLeft,f=ut(a)?Ua(a):xn(1),d=a.clientWidth*f.x,p=a.clientHeight*f.y,b=c*f.x,m=o*f.y;return{width:d,height:p,x:b,y:m}}function Sm(a,r,s){let o;if(r==="viewport")o=j2(a,s);else if(r==="document")o=_2(Sn(a));else if(Ze(r))o=k2(r,s);else{const c=Qp(a);o={x:r.x-c.x,y:r.y-c.y,width:r.width,height:r.height}}return vo(o)}function Jp(a,r){const s=Yn(a);return s===r||!Ze(s)||Gn(s)?!1:sn(s).position==="fixed"||Jp(s,r)}function D2(a,r){const s=r.get(a);if(s)return s;let o=wl(a,[],!1).filter(p=>Ze(p)&&Nl(p)!=="body"),c=null;const f=sn(a).position==="fixed";let d=f?Yn(a):a;for(;Ze(d)&&!Gn(d);){const p=sn(d),b=Lc(d);!b&&p.position==="fixed"&&(c=null),(f?!b&&!c:!b&&p.position==="static"&&!!c&&O2.has(c.position)||qr(d)&&!b&&Jp(a,d))?o=o.filter(S=>S!==d):c=p,d=Yn(d)}return r.set(a,o),o}function M2(a){let{element:r,boundary:s,rootBoundary:o,strategy:c}=a;const d=[...s==="clippingAncestors"?jo(r)?[]:D2(r,this._c):[].concat(s),o],p=d[0],b=d.reduce((m,S)=>{const y=Sm(r,S,c);return m.top=Zl(y.top,m.top),m.right=po(y.right,m.right),m.bottom=po(y.bottom,m.bottom),m.left=Zl(y.left,m.left),m},Sm(r,p,c));return{width:b.right-b.left,height:b.bottom-b.top,x:b.left,y:b.top}}function z2(a){const{width:r,height:s}=$p(a);return{width:r,height:s}}function L2(a,r,s){const o=ut(r),c=Sn(r),f=s==="fixed",d=$l(a,!0,f,r);let p={scrollLeft:0,scrollTop:0};const b=xn(0);function m(){b.x=Lo(c)}if(o||!o&&!f)if((Nl(r)!=="body"||qr(c))&&(p=ko(r)),o){const _=$l(r,!0,f,r);b.x=_.x+r.clientLeft,b.y=_.y+r.clientTop}else c&&m();f&&!o&&c&&m();const S=c&&!o&&!f?Kp(c,p):xn(0),y=d.left+p.scrollLeft-b.x-S.x,C=d.top+p.scrollTop-b.y-S.y;return{x:y,y:C,width:d.width,height:d.height}}function sc(a){return sn(a).position==="static"}function Em(a,r){if(!ut(a)||sn(a).position==="fixed")return null;if(r)return r(a);let s=a.offsetParent;return Sn(a)===s&&(s=s.ownerDocument.body),s}function Wp(a,r){const s=Ut(a);if(jo(a))return s;if(!ut(a)){let c=Yn(a);for(;c&&!Gn(c);){if(Ze(c)&&!sc(c))return c;c=Yn(c)}return s}let o=Em(a,r);for(;o&&Tx(o)&&sc(o);)o=Em(o,r);return o&&Gn(o)&&sc(o)&&!Lc(o)?s:o||kx(a)||s}const B2=async function(a){const r=this.getOffsetParent||Wp,s=this.getDimensions,o=await s(a.floating);return{reference:L2(a.reference,await r(a.floating),a.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function U2(a){return sn(a).direction==="rtl"}const H2={convertOffsetParentRelativeRectToViewportRelativeRect:T2,getDocumentElement:Sn,getClippingRect:M2,getOffsetParent:Wp,getElementRects:B2,getClientRects:R2,getDimensions:z2,getScale:Ua,isElement:Ze,isRTL:U2};function Pp(a,r){return a.x===r.x&&a.y===r.y&&a.width===r.width&&a.height===r.height}function F2(a,r){let s=null,o;const c=Sn(a);function f(){var p;clearTimeout(o),(p=s)==null||p.disconnect(),s=null}function d(p,b){p===void 0&&(p=!1),b===void 0&&(b=1),f();const m=a.getBoundingClientRect(),{left:S,top:y,width:C,height:_}=m;if(p||r(),!C||!_)return;const x=oo(y),v=oo(c.clientWidth-(S+C)),T=oo(c.clientHeight-(y+_)),N=oo(S),D={rootMargin:-x+"px "+-v+"px "+-T+"px "+-N+"px",threshold:Zl(0,po(1,b))||1};let M=!0;function F(ee){const Q=ee[0].intersectionRatio;if(Q!==b){if(!M)return d();Q?d(!1,Q):o=setTimeout(()=>{d(!1,1e-7)},1e3)}Q===1&&!Pp(m,a.getBoundingClientRect())&&d(),M=!1}try{s=new IntersectionObserver(F,{...D,root:c.ownerDocument})}catch{s=new IntersectionObserver(F,D)}s.observe(a)}return d(!0),f}function q2(a,r,s,o){o===void 0&&(o={});const{ancestorScroll:c=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:b=!1}=o,m=Uc(a),S=c||f?[...m?wl(m):[],...wl(r)]:[];S.forEach(N=>{c&&N.addEventListener("scroll",s,{passive:!0}),f&&N.addEventListener("resize",s)});const y=m&&p?F2(m,s):null;let C=-1,_=null;d&&(_=new ResizeObserver(N=>{let[R]=N;R&&R.target===m&&_&&(_.unobserve(r),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var D;(D=_)==null||D.observe(r)})),s()}),m&&!b&&_.observe(m),_.observe(r));let x,v=b?$l(a):null;b&&T();function T(){const N=$l(a);v&&!Pp(v,N)&&s(),v=N,x=requestAnimationFrame(T)}return s(),()=>{var N;S.forEach(R=>{c&&R.removeEventListener("scroll",s),f&&R.removeEventListener("resize",s)}),y?.(),(N=_)==null||N.disconnect(),_=null,b&&cancelAnimationFrame(x)}}const G2=w2,Y2=N2,V2=x2,X2=(a,r,s)=>{const o=new Map,c={platform:H2,...s},f={...c.platform,_c:o};return v2(a,r,{...c,platform:f})};var Z2=typeof document<"u",I2=function(){},fo=Z2?A.useLayoutEffect:I2;function No(a,r){if(a===r)return!0;if(typeof a!=typeof r)return!1;if(typeof a=="function"&&a.toString()===r.toString())return!0;let s,o,c;if(a&&r&&typeof a=="object"){if(Array.isArray(a)){if(s=a.length,s!==r.length)return!1;for(o=s;o--!==0;)if(!No(a[o],r[o]))return!1;return!0}if(c=Object.keys(a),s=c.length,s!==Object.keys(r).length)return!1;for(o=s;o--!==0;)if(!{}.hasOwnProperty.call(r,c[o]))return!1;for(o=s;o--!==0;){const f=c[o];if(!(f==="_owner"&&a.$$typeof)&&!No(a[f],r[f]))return!1}return!0}return a!==a&&r!==r}function eb(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function wm(a,r){const s=eb(a);return Math.round(r*s)/s}function uc(a){const r=A.useRef(a);return fo(()=>{r.current=a}),r}function $2(a){a===void 0&&(a={});const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:c,elements:{reference:f,floating:d}={},transform:p=!0,whileElementsMounted:b,open:m}=a,[S,y]=A.useState({x:0,y:0,strategy:s,placement:r,middlewareData:{},isPositioned:!1}),[C,_]=A.useState(o);No(C,o)||_(o);const[x,v]=A.useState(null),[T,N]=A.useState(null),R=A.useCallback(k=>{k!==ee.current&&(ee.current=k,v(k))},[]),D=A.useCallback(k=>{k!==Q.current&&(Q.current=k,N(k))},[]),M=f||x,F=d||T,ee=A.useRef(null),Q=A.useRef(null),ce=A.useRef(S),q=b!=null,P=uc(b),J=uc(c),K=uc(m),se=A.useCallback(()=>{if(!ee.current||!Q.current)return;const k={placement:r,strategy:s,middleware:C};J.current&&(k.platform=J.current),X2(ee.current,Q.current,k).then(I=>{const $={...I,isPositioned:K.current!==!1};U.current&&!No(ce.current,$)&&(ce.current=$,Zp.flushSync(()=>{y($)}))})},[C,r,s,J,K]);fo(()=>{m===!1&&ce.current.isPositioned&&(ce.current.isPositioned=!1,y(k=>({...k,isPositioned:!1})))},[m]);const U=A.useRef(!1);fo(()=>(U.current=!0,()=>{U.current=!1}),[]),fo(()=>{if(M&&(ee.current=M),F&&(Q.current=F),M&&F){if(P.current)return P.current(M,F,se);se()}},[M,F,se,P,q]);const re=A.useMemo(()=>({reference:ee,floating:Q,setReference:R,setFloating:D}),[R,D]),E=A.useMemo(()=>({reference:M,floating:F}),[M,F]),z=A.useMemo(()=>{const k={position:s,left:0,top:0};if(!E.floating)return k;const I=wm(E.floating,S.x),$=wm(E.floating,S.y);return p?{...k,transform:"translate("+I+"px, "+$+"px)",...eb(E.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:I,top:$}},[s,p,E.floating,S.x,S.y]);return A.useMemo(()=>({...S,update:se,refs:re,elements:E,floatingStyles:z}),[S,se,re,E,z])}const Q2=(a,r)=>({...G2(a),options:[a,r]}),K2=(a,r)=>({...Y2(a),options:[a,r]}),J2=(a,r)=>({...V2(a),options:[a,r]}),W2="data-floating-ui-focusable",Nm="active",Cm="selected",P2={...$m};let Am=!1,eS=0;const Tm=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+eS++;function tS(){const[a,r]=A.useState(()=>Am?Tm():void 0);return Bt(()=>{a==null&&r(Tm())},[]),A.useEffect(()=>{Am=!0},[]),a}const nS=P2.useId,Hc=nS||tS;function lS(){const a=new Map;return{emit(r,s){var o;(o=a.get(r))==null||o.forEach(c=>c(s))},on(r,s){a.has(r)||a.set(r,new Set),a.get(r).add(s)},off(r,s){var o;(o=a.get(r))==null||o.delete(s)}}}const aS=A.createContext(null),rS=A.createContext(null),Fc=()=>{var a;return((a=A.useContext(aS))==null?void 0:a.id)||null},Bo=()=>A.useContext(rS);function Ql(a){return"data-floating-ui-"+a}function At(a){a.current!==-1&&(clearTimeout(a.current),a.current=-1)}const Rm=Ql("safe-polygon");function cc(a,r,s){if(s&&!Hr(s))return 0;if(typeof a=="number")return a;if(typeof a=="function"){const o=a();return typeof o=="number"?o:o?.[r]}return a?.[r]}function fc(a){return typeof a=="function"?a():a}function iS(a,r){r===void 0&&(r={});const{open:s,onOpenChange:o,dataRef:c,events:f,elements:d}=a,{enabled:p=!0,delay:b=0,handleClose:m=null,mouseOnly:S=!1,restMs:y=0,move:C=!0}=r,_=Bo(),x=Fc(),v=Xl(m),T=Xl(b),N=Xl(s),R=Xl(y),D=A.useRef(),M=A.useRef(-1),F=A.useRef(),ee=A.useRef(-1),Q=A.useRef(!0),ce=A.useRef(!1),q=A.useRef(()=>{}),P=A.useRef(!1),J=Lt(()=>{var z;const k=(z=c.current.openEvent)==null?void 0:z.type;return k?.includes("mouse")&&k!=="mousedown"});A.useEffect(()=>{if(!p)return;function z(k){let{open:I}=k;I||(At(M),At(ee),Q.current=!0,P.current=!1)}return f.on("openchange",z),()=>{f.off("openchange",z)}},[p,f]),A.useEffect(()=>{if(!p||!v.current||!s)return;function z(I){J()&&o(!1,I,"hover")}const k=wt(d.floating).documentElement;return k.addEventListener("mouseleave",z),()=>{k.removeEventListener("mouseleave",z)}},[d.floating,s,o,p,v,J]);const K=A.useCallback(function(z,k,I){k===void 0&&(k=!0),I===void 0&&(I="hover");const $=cc(T.current,"close",D.current);$&&!F.current?(At(M),M.current=window.setTimeout(()=>o(!1,z,I),$)):k&&(At(M),o(!1,z,I))},[T,o]),se=Lt(()=>{q.current(),F.current=void 0}),U=Lt(()=>{if(ce.current){const z=wt(d.floating).body;z.style.pointerEvents="",z.removeAttribute(Rm),ce.current=!1}}),re=Lt(()=>c.current.openEvent?["click","mousedown"].includes(c.current.openEvent.type):!1);A.useEffect(()=>{if(!p)return;function z(B){if(At(M),Q.current=!1,S&&!Hr(D.current)||fc(R.current)>0&&!cc(T.current,"open"))return;const X=cc(T.current,"open",D.current);X?M.current=window.setTimeout(()=>{N.current||o(!0,B,"hover")},X):s||o(!0,B,"hover")}function k(B){if(re()){U();return}q.current();const X=wt(d.floating);if(At(ee),P.current=!1,v.current&&c.current.floatingContext){s||At(M),F.current=v.current({...c.current.floatingContext,tree:_,x:B.clientX,y:B.clientY,onClose(){U(),se(),re()||K(B,!0,"safe-polygon")}});const oe=F.current;X.addEventListener("mousemove",oe),q.current=()=>{X.removeEventListener("mousemove",oe)};return}(D.current!=="touch"||!Et(d.floating,B.relatedTarget))&&K(B)}function I(B){re()||c.current.floatingContext&&(v.current==null||v.current({...c.current.floatingContext,tree:_,x:B.clientX,y:B.clientY,onClose(){U(),se(),re()||K(B)}})(B))}function $(){At(M)}function j(B){re()||K(B,!1)}if(Ze(d.domReference)){const B=d.domReference,X=d.floating;return s&&B.addEventListener("mouseleave",I),C&&B.addEventListener("mousemove",z,{once:!0}),B.addEventListener("mouseenter",z),B.addEventListener("mouseleave",k),X&&(X.addEventListener("mouseleave",I),X.addEventListener("mouseenter",$),X.addEventListener("mouseleave",j)),()=>{s&&B.removeEventListener("mouseleave",I),C&&B.removeEventListener("mousemove",z),B.removeEventListener("mouseenter",z),B.removeEventListener("mouseleave",k),X&&(X.removeEventListener("mouseleave",I),X.removeEventListener("mouseenter",$),X.removeEventListener("mouseleave",j))}}},[d,p,a,S,C,K,se,U,o,s,N,_,T,v,c,re,R]),Bt(()=>{var z;if(p&&s&&(z=v.current)!=null&&(z=z.__options)!=null&&z.blockPointerEvents&&J()){ce.current=!0;const I=d.floating;if(Ze(d.domReference)&&I){var k;const $=wt(d.floating).body;$.setAttribute(Rm,"");const j=d.domReference,B=_==null||(k=_.nodesRef.current.find(X=>X.id===x))==null||(k=k.context)==null?void 0:k.elements.floating;return B&&(B.style.pointerEvents=""),$.style.pointerEvents="none",j.style.pointerEvents="auto",I.style.pointerEvents="auto",()=>{$.style.pointerEvents="",j.style.pointerEvents="",I.style.pointerEvents=""}}}},[p,s,x,d,_,v,J]),Bt(()=>{s||(D.current=void 0,P.current=!1,se(),U())},[s,se,U]),A.useEffect(()=>()=>{se(),At(M),At(ee),U()},[p,d.domReference,se,U]);const E=A.useMemo(()=>{function z(k){D.current=k.pointerType}return{onPointerDown:z,onPointerEnter:z,onMouseMove(k){const{nativeEvent:I}=k;function $(){!Q.current&&!N.current&&o(!0,I,"hover")}S&&!Hr(D.current)||s||fc(R.current)===0||P.current&&k.movementX**2+k.movementY**2<2||(At(ee),D.current==="touch"?$():(P.current=!0,ee.current=window.setTimeout($,fc(R.current))))}}},[S,o,s,N,R]);return A.useMemo(()=>p?{reference:E}:{},[p,E])}let _m=0;function La(a,r){r===void 0&&(r={});const{preventScroll:s=!1,cancelPrevious:o=!0,sync:c=!1}=r;o&&cancelAnimationFrame(_m);const f=()=>a?.focus({preventScroll:s});c?f():_m=requestAnimationFrame(f)}function dc(a,r){if(!a||!r)return!1;const s=r.getRootNode==null?void 0:r.getRootNode();if(a.contains(r))return!0;if(s&&mo(s)){let o=r;for(;o;){if(a===o)return!0;o=o.parentNode||o.host}}return!1}function oS(a){return"composedPath"in a?a.composedPath()[0]:a.target}function sS(a){return a?.ownerDocument||document}const Ha={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function jm(a){return a==="inert"?Ha.inert:a==="aria-hidden"?Ha["aria-hidden"]:Ha.none}let so=new WeakSet,uo={},gc=0;const uS=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,tb=a=>a&&(a.host||tb(a.parentNode)),cS=(a,r)=>r.map(s=>{if(a.contains(s))return s;const o=tb(s);return a.contains(o)?o:null}).filter(s=>s!=null);function fS(a,r,s,o){const c="data-floating-ui-inert",f=o?"inert":s?"aria-hidden":null,d=cS(r,a),p=new Set,b=new Set(d),m=[];uo[c]||(uo[c]=new WeakMap);const S=uo[c];d.forEach(y),C(r),p.clear();function y(_){!_||p.has(_)||(p.add(_),_.parentNode&&y(_.parentNode))}function C(_){!_||b.has(_)||[].forEach.call(_.children,x=>{if(Nl(x)!=="script")if(p.has(x))C(x);else{const v=f?x.getAttribute(f):null,T=v!==null&&v!=="false",N=jm(f),R=(N.get(x)||0)+1,D=(S.get(x)||0)+1;N.set(x,R),S.set(x,D),m.push(x),R===1&&T&&so.add(x),D===1&&x.setAttribute(c,""),!T&&f&&x.setAttribute(f,f==="inert"?"":"true")}})}return gc++,()=>{m.forEach(_=>{const x=jm(f),T=(x.get(_)||0)-1,N=(S.get(_)||0)-1;x.set(_,T),S.set(_,N),T||(!so.has(_)&&f&&_.removeAttribute(f),so.delete(_)),N||_.removeAttribute(c)}),gc--,gc||(Ha.inert=new WeakMap,Ha["aria-hidden"]=new WeakMap,Ha.none=new WeakMap,so=new WeakSet,uo={})}}function Om(a,r,s){r===void 0&&(r=!1),s===void 0&&(s=!1);const o=sS(a[0]).body;return fS(a.concat(Array.from(o.querySelectorAll('[aria-live],[role="status"],output'))),o,r,s)}const Uo={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Co=A.forwardRef(function(r,s){const[o,c]=A.useState();Bt(()=>{qp()&&c("button")},[]);const f={ref:s,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,[Ql("focus-guard")]:"",style:Uo};return g.jsx("span",{...r,...f})}),nb=A.createContext(null),km=Ql("portal");function dS(a){a===void 0&&(a={});const{id:r,root:s}=a,o=Hc(),c=lb(),[f,d]=A.useState(null),p=A.useRef(null);return Bt(()=>()=>{f?.remove(),queueMicrotask(()=>{p.current=null})},[f]),Bt(()=>{if(!o||p.current)return;const b=r?document.getElementById(r):null;if(!b)return;const m=document.createElement("div");m.id=o,m.setAttribute(km,""),b.appendChild(m),p.current=m,d(m)},[r,o]),Bt(()=>{if(s===null||!o||p.current)return;let b=s||c?.portalNode;b&&!zc(b)&&(b=b.current),b=b||document.body;let m=null;r&&(m=document.createElement("div"),m.id=r,b.appendChild(m));const S=document.createElement("div");S.id=o,S.setAttribute(km,""),b=m||b,b.appendChild(S),p.current=S,d(S)},[r,s,o,c]),f}function gS(a){const{children:r,id:s,root:o,preserveTabOrder:c=!0}=a,f=dS({id:s,root:o}),[d,p]=A.useState(null),b=A.useRef(null),m=A.useRef(null),S=A.useRef(null),y=A.useRef(null),C=d?.modal,_=d?.open,x=!!d&&!d.modal&&d.open&&c&&!!(o||f);return A.useEffect(()=>{if(!f||!c||C)return;function v(T){f&&Lr(T)&&(T.type==="focusin"?ym:y2)(f)}return f.addEventListener("focusin",v,!0),f.addEventListener("focusout",v,!0),()=>{f.removeEventListener("focusin",v,!0),f.removeEventListener("focusout",v,!0)}},[f,c,C]),A.useEffect(()=>{f&&(_||ym(f))},[_,f]),g.jsxs(nb.Provider,{value:A.useMemo(()=>({preserveTabOrder:c,beforeOutsideRef:b,afterOutsideRef:m,beforeInsideRef:S,afterInsideRef:y,portalNode:f,setFocusManagerState:p}),[c,f]),children:[x&&f&&g.jsx(Co,{"data-type":"outside",ref:b,onFocus:v=>{if(Lr(v,f)){var T;(T=S.current)==null||T.focus()}else{const N=d?d.domReference:null,R=Xp(N);R?.focus()}}}),x&&f&&g.jsx("span",{"aria-owns":f.id,style:Uo}),f&&Zp.createPortal(r,f),x&&f&&g.jsx(Co,{"data-type":"outside",ref:m,onFocus:v=>{if(Lr(v,f)){var T;(T=y.current)==null||T.focus()}else{const N=d?d.domReference:null,R=Vp(N);R?.focus(),d?.closeOnFocusOut&&d?.onOpenChange(!1,v.nativeEvent,"focus-out")}}})]})}const lb=()=>A.useContext(nb);function Dm(a){return A.useMemo(()=>r=>{a.forEach(s=>{s&&(s.current=r)})},a)}const hS=20;let Sl=[];function qc(){Sl=Sl.filter(a=>a.isConnected)}function mS(a){qc(),a&&Nl(a)!=="body"&&(Sl.push(a),Sl.length>hS&&(Sl=Sl.slice(-20)))}function Mm(){return qc(),Sl[Sl.length-1]}function pS(a){const r=Gr();return Up(a,r)?a:zo(a,r)[0]||a}function zm(a,r){var s;if(!r.current.includes("floating")&&!((s=a.getAttribute("role"))!=null&&s.includes("dialog")))return;const o=Gr(),f=r2(a,o).filter(p=>{const b=p.getAttribute("data-tabindex")||"";return Up(p,o)||p.hasAttribute("data-tabindex")&&!b.startsWith("-")}),d=a.getAttribute("tabindex");r.current.includes("floating")||f.length===0?d!=="0"&&a.setAttribute("tabindex","0"):(d!=="-1"||a.hasAttribute("data-tabindex")&&a.getAttribute("data-tabindex")!=="-1")&&(a.setAttribute("tabindex","-1"),a.setAttribute("data-tabindex","-1"))}const bS=A.forwardRef(function(r,s){return g.jsx("button",{...r,type:"button",ref:s,tabIndex:-1,style:Uo})});function yS(a){const{context:r,children:s,disabled:o=!1,order:c=["content"],guards:f=!0,initialFocus:d=0,returnFocus:p=!0,restoreFocus:b=!1,modal:m=!0,visuallyHiddenDismiss:S=!1,closeOnFocusOut:y=!0,outsideElementsInert:C=!1,getInsideElements:_=()=>[]}=a,{open:x,onOpenChange:v,events:T,dataRef:N,elements:{domReference:R,floating:D}}=r,M=Lt(()=>{var pe;return(pe=N.current.floatingContext)==null?void 0:pe.nodeId}),F=Lt(_),ee=typeof d=="number"&&d<0,Q=pm(R)&&ee,ce=uS(),q=ce?f:!0,P=!q||ce&&C,J=Xl(c),K=Xl(d),se=Xl(p),U=Bo(),re=lb(),E=A.useRef(null),z=A.useRef(null),k=A.useRef(!1),I=A.useRef(!1),$=A.useRef(-1),j=A.useRef(-1),B=re!=null,X=Tc(D),ie=Lt(function(pe){return pe===void 0&&(pe=X),pe?zo(pe,Gr()):[]}),oe=Lt(pe=>{const ke=ie(pe);return J.current.map(xe=>R&&xe==="reference"?R:X&&xe==="floating"?X:ke).filter(Boolean).flat()});A.useEffect(()=>{if(o||!m)return;function pe(xe){if(xe.key==="Tab"){Et(X,vl(wt(X)))&&ie().length===0&&!Q&&oc(xe);const Ve=oe(),Je=Fn(xe);J.current[0]==="reference"&&Je===R&&(oc(xe),xe.shiftKey?La(Ve[Ve.length-1]):La(Ve[1])),J.current[1]==="floating"&&Je===X&&xe.shiftKey&&(oc(xe),La(Ve[0]))}}const ke=wt(X);return ke.addEventListener("keydown",pe),()=>{ke.removeEventListener("keydown",pe)}},[o,R,X,m,J,Q,ie,oe]),A.useEffect(()=>{if(o||!D)return;function pe(ke){const xe=Fn(ke),Je=ie().indexOf(xe);Je!==-1&&($.current=Je)}return D.addEventListener("focusin",pe),()=>{D.removeEventListener("focusin",pe)}},[o,D,ie]),A.useEffect(()=>{if(o||!y)return;function pe(){I.current=!0,setTimeout(()=>{I.current=!1})}function ke(Je){const Me=Je.relatedTarget,Tt=Je.currentTarget,ft=Fn(Je);queueMicrotask(()=>{const at=M(),Rt=!(Et(R,Me)||Et(D,Me)||Et(Me,D)||Et(re?.portalNode,Me)||Me!=null&&Me.hasAttribute(Ql("focus-guard"))||U&&(Ba(U.nodesRef.current,at).find(Ht=>{var Ft,$e;return Et((Ft=Ht.context)==null?void 0:Ft.elements.floating,Me)||Et(($e=Ht.context)==null?void 0:$e.elements.domReference,Me)})||bm(U.nodesRef.current,at).find(Ht=>{var Ft,$e,Cl;return[(Ft=Ht.context)==null?void 0:Ft.elements.floating,Tc(($e=Ht.context)==null?void 0:$e.elements.floating)].includes(Me)||((Cl=Ht.context)==null?void 0:Cl.elements.domReference)===Me})));if(Tt===R&&X&&zm(X,J),b&&Tt!==R&&!(ft!=null&&ft.isConnected)&&vl(wt(X))===wt(X).body){ut(X)&&X.focus();const Ht=$.current,Ft=ie(),$e=Ft[Ht]||Ft[Ft.length-1]||X;ut($e)&&$e.focus()}if(N.current.insideReactTree){N.current.insideReactTree=!1;return}(Q||!m)&&Me&&Rt&&!I.current&&Me!==Mm()&&(k.current=!0,v(!1,Je,"focus-out"))})}const xe=!!(!U&&re);function Ve(){At(j),N.current.insideReactTree=!0,j.current=window.setTimeout(()=>{N.current.insideReactTree=!1})}if(D&&ut(R))return R.addEventListener("focusout",ke),R.addEventListener("pointerdown",pe),D.addEventListener("focusout",ke),xe&&D.addEventListener("focusout",Ve,!0),()=>{R.removeEventListener("focusout",ke),R.removeEventListener("pointerdown",pe),D.removeEventListener("focusout",ke),xe&&D.removeEventListener("focusout",Ve,!0)}},[o,R,D,X,m,U,re,v,y,b,ie,Q,M,J,N]);const fe=A.useRef(null),ue=A.useRef(null),ge=Dm([fe,re?.beforeInsideRef]),de=Dm([ue,re?.afterInsideRef]);A.useEffect(()=>{var pe,ke;if(o||!D)return;const xe=Array.from((re==null||(pe=re.portalNode)==null?void 0:pe.querySelectorAll("["+Ql("portal")+"]"))||[]),Je=(ke=(U?bm(U.nodesRef.current,M()):[]).find(ft=>{var at;return pm(((at=ft.context)==null?void 0:at.elements.domReference)||null)}))==null||(ke=ke.context)==null?void 0:ke.elements.domReference,Me=[D,Je,...xe,...F(),E.current,z.current,fe.current,ue.current,re?.beforeOutsideRef.current,re?.afterOutsideRef.current,J.current.includes("reference")||Q?R:null].filter(ft=>ft!=null),Tt=m||Q?Om(Me,!P,P):Om(Me);return()=>{Tt()}},[o,R,D,m,J,re,Q,q,P,U,M,F]),Bt(()=>{if(o||!ut(X))return;const pe=wt(X),ke=vl(pe);queueMicrotask(()=>{const xe=oe(X),Ve=K.current,Je=(typeof Ve=="number"?xe[Ve]:Ve.current)||X,Me=Et(X,ke);!ee&&!Me&&x&&La(Je,{preventScroll:Je===X})})},[o,x,X,ee,oe,K]),Bt(()=>{if(o||!X)return;const pe=wt(X),ke=vl(pe);mS(ke);function xe(Me){let{reason:Tt,event:ft,nested:at}=Me;if(["hover","safe-polygon"].includes(Tt)&&ft.type==="mouseleave"&&(k.current=!0),Tt==="outside-press")if(at)k.current=!1;else if(f2(ft)||d2(ft))k.current=!1;else{let Rt=!1;document.createElement("div").focus({get preventScroll(){return Rt=!0,!1}}),Rt?k.current=!1:k.current=!0}}T.on("openchange",xe);const Ve=pe.createElement("span");Ve.setAttribute("tabindex","-1"),Ve.setAttribute("aria-hidden","true"),Object.assign(Ve.style,Uo),B&&R&&R.insertAdjacentElement("afterend",Ve);function Je(){if(typeof se.current=="boolean"){const Me=R||Mm();return Me&&Me.isConnected?Me:Ve}return se.current.current||Ve}return()=>{T.off("openchange",xe);const Me=vl(pe),Tt=Et(D,Me)||U&&Ba(U.nodesRef.current,M(),!1).some(at=>{var Rt;return Et((Rt=at.context)==null?void 0:Rt.elements.floating,Me)}),ft=Je();queueMicrotask(()=>{const at=pS(ft);se.current&&!k.current&&ut(at)&&(!(at!==Me&&Me!==pe.body)||Tt)&&at.focus({preventScroll:!0}),Ve.remove()})}},[o,D,X,se,N,T,U,B,R,M]),A.useEffect(()=>(queueMicrotask(()=>{k.current=!1}),()=>{queueMicrotask(qc)}),[o]),Bt(()=>{if(!o&&re)return re.setFocusManagerState({modal:m,closeOnFocusOut:y,open:x,onOpenChange:v,domReference:R}),()=>{re.setFocusManagerState(null)}},[o,re,m,x,v,y,R]),Bt(()=>{o||X&&zm(X,J)},[o,X,J]);function ye(pe){return o||!S||!m?null:g.jsx(bS,{ref:pe==="start"?E:z,onClick:ke=>v(!1,ke.nativeEvent),children:typeof S=="string"?S:"Dismiss"})}const Ne=!o&&q&&(m?!Q:!0)&&(B||m);return g.jsxs(g.Fragment,{children:[Ne&&g.jsx(Co,{"data-type":"inside",ref:ge,onFocus:pe=>{if(m){const xe=oe();La(c[0]==="reference"?xe[0]:xe[xe.length-1])}else if(re!=null&&re.preserveTabOrder&&re.portalNode)if(k.current=!1,Lr(pe,re.portalNode)){const xe=Vp(R);xe?.focus()}else{var ke;(ke=re.beforeOutsideRef.current)==null||ke.focus()}}}),!Q&&ye("start"),s,ye("end"),Ne&&g.jsx(Co,{"data-type":"inside",ref:de,onFocus:pe=>{if(m)La(oe()[0]);else if(re!=null&&re.preserveTabOrder&&re.portalNode)if(y&&(k.current=!0),Lr(pe,re.portalNode)){const xe=Xp(R);xe?.focus()}else{var ke;(ke=re.afterOutsideRef.current)==null||ke.focus()}}})]})}function Lm(a){return ut(a.target)&&a.target.tagName==="BUTTON"}function vS(a){return ut(a.target)&&a.target.tagName==="A"}function Bm(a){return Bc(a)}function xS(a,r){r===void 0&&(r={});const{open:s,onOpenChange:o,dataRef:c,elements:{domReference:f}}=a,{enabled:d=!0,event:p="click",toggle:b=!0,ignoreMouse:m=!1,keyboardHandlers:S=!0,stickIfOpen:y=!0}=r,C=A.useRef(),_=A.useRef(!1),x=A.useMemo(()=>({onPointerDown(v){C.current=v.pointerType},onMouseDown(v){const T=C.current;v.button===0&&p!=="click"&&(Hr(T,!0)&&m||(s&&b&&(!(c.current.openEvent&&y)||c.current.openEvent.type==="mousedown")?o(!1,v.nativeEvent,"click"):(v.preventDefault(),o(!0,v.nativeEvent,"click"))))},onClick(v){const T=C.current;if(p==="mousedown"&&C.current){C.current=void 0;return}Hr(T,!0)&&m||(s&&b&&(!(c.current.openEvent&&y)||c.current.openEvent.type==="click")?o(!1,v.nativeEvent,"click"):o(!0,v.nativeEvent,"click"))},onKeyDown(v){C.current=void 0,!(v.defaultPrevented||!S||Lm(v))&&(v.key===" "&&!Bm(f)&&(v.preventDefault(),_.current=!0),!vS(v)&&v.key==="Enter"&&o(!(s&&b),v.nativeEvent,"click"))},onKeyUp(v){v.defaultPrevented||!S||Lm(v)||Bm(f)||v.key===" "&&_.current&&(_.current=!1,o(!(s&&b),v.nativeEvent,"click"))}}),[c,f,p,m,S,o,s,y,b]);return A.useMemo(()=>d?{reference:x}:{},[d,x])}const SS={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ES={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Um=a=>{var r,s;return{escapeKey:typeof a=="boolean"?a:(r=a?.escapeKey)!=null?r:!1,outsidePress:typeof a=="boolean"?a:(s=a?.outsidePress)!=null?s:!0}};function wS(a,r){r===void 0&&(r={});const{open:s,onOpenChange:o,elements:c,dataRef:f}=a,{enabled:d=!0,escapeKey:p=!0,outsidePress:b=!0,outsidePressEvent:m="pointerdown",referencePress:S=!1,referencePressEvent:y="pointerdown",ancestorScroll:C=!1,bubbles:_,capture:x}=r,v=Bo(),T=Lt(typeof b=="function"?b:()=>!1),N=typeof b=="function"?T:b,R=A.useRef(!1),{escapeKey:D,outsidePress:M}=Um(_),{escapeKey:F,outsidePress:ee}=Um(x),Q=A.useRef(!1),ce=Lt(U=>{var re;if(!s||!d||!p||U.key!=="Escape"||Q.current)return;const E=(re=f.current.floatingContext)==null?void 0:re.nodeId,z=v?Ba(v.nodesRef.current,E):[];if(!D&&(U.stopPropagation(),z.length>0)){let k=!0;if(z.forEach(I=>{var $;if(($=I.context)!=null&&$.open&&!I.context.dataRef.current.__escapeKeyBubbles){k=!1;return}}),!k)return}o(!1,c2(U)?U.nativeEvent:U,"escape-key")}),q=Lt(U=>{var re;const E=()=>{var z;ce(U),(z=Fn(U))==null||z.removeEventListener("keydown",E)};(re=Fn(U))==null||re.addEventListener("keydown",E)}),P=Lt(U=>{var re;const E=f.current.insideReactTree;f.current.insideReactTree=!1;const z=R.current;if(R.current=!1,m==="click"&&z||E||typeof N=="function"&&!N(U))return;const k=Fn(U),I="["+Ql("inert")+"]",$=wt(c.floating).querySelectorAll(I);let j=Ze(k)?k:null;for(;j&&!Gn(j);){const oe=Yn(j);if(Gn(oe)||!Ze(oe))break;j=oe}if($.length&&Ze(k)&&!s2(k)&&!Et(k,c.floating)&&Array.from($).every(oe=>!Et(j,oe)))return;if(ut(k)&&se){const oe=Gn(k),fe=sn(k),ue=/auto|scroll/,ge=oe||ue.test(fe.overflowX),de=oe||ue.test(fe.overflowY),ye=ge&&k.clientWidth>0&&k.scrollWidth>k.clientWidth,Ne=de&&k.clientHeight>0&&k.scrollHeight>k.clientHeight,pe=fe.direction==="rtl",ke=Ne&&(pe?U.offsetX<=k.offsetWidth-k.clientWidth:U.offsetX>k.clientWidth),xe=ye&&U.offsetY>k.clientHeight;if(ke||xe)return}const B=(re=f.current.floatingContext)==null?void 0:re.nodeId,X=v&&Ba(v.nodesRef.current,B).some(oe=>{var fe;return ic(U,(fe=oe.context)==null?void 0:fe.elements.floating)});if(ic(U,c.floating)||ic(U,c.domReference)||X)return;const ie=v?Ba(v.nodesRef.current,B):[];if(ie.length>0){let oe=!0;if(ie.forEach(fe=>{var ue;if((ue=fe.context)!=null&&ue.open&&!fe.context.dataRef.current.__outsidePressBubbles){oe=!1;return}}),!oe)return}o(!1,U,"outside-press")}),J=Lt(U=>{var re;const E=()=>{var z;P(U),(z=Fn(U))==null||z.removeEventListener(m,E)};(re=Fn(U))==null||re.addEventListener(m,E)});A.useEffect(()=>{if(!s||!d)return;f.current.__escapeKeyBubbles=D,f.current.__outsidePressBubbles=M;let U=-1;function re($){o(!1,$,"ancestor-scroll")}function E(){window.clearTimeout(U),Q.current=!0}function z(){U=window.setTimeout(()=>{Q.current=!1},Oo()?5:0)}const k=wt(c.floating);p&&(k.addEventListener("keydown",F?q:ce,F),k.addEventListener("compositionstart",E),k.addEventListener("compositionend",z)),N&&k.addEventListener(m,ee?J:P,ee);let I=[];return C&&(Ze(c.domReference)&&(I=wl(c.domReference)),Ze(c.floating)&&(I=I.concat(wl(c.floating))),!Ze(c.reference)&&c.reference&&c.reference.contextElement&&(I=I.concat(wl(c.reference.contextElement)))),I=I.filter($=>{var j;return $!==((j=k.defaultView)==null?void 0:j.visualViewport)}),I.forEach($=>{$.addEventListener("scroll",re,{passive:!0})}),()=>{p&&(k.removeEventListener("keydown",F?q:ce,F),k.removeEventListener("compositionstart",E),k.removeEventListener("compositionend",z)),N&&k.removeEventListener(m,ee?J:P,ee),I.forEach($=>{$.removeEventListener("scroll",re)}),window.clearTimeout(U)}},[f,c,p,N,m,s,o,C,d,D,M,ce,F,q,P,ee,J]),A.useEffect(()=>{f.current.insideReactTree=!1},[f,N,m]);const K=A.useMemo(()=>({onKeyDown:ce,...S&&{[SS[y]]:U=>{o(!1,U.nativeEvent,"reference-press")},...y!=="click"&&{onClick(U){o(!1,U.nativeEvent,"reference-press")}}}}),[ce,o,S,y]),se=A.useMemo(()=>({onKeyDown:ce,onMouseDown(){R.current=!0},onMouseUp(){R.current=!0},[ES[m]]:()=>{f.current.insideReactTree=!0}}),[ce,m,f]);return A.useMemo(()=>d?{reference:K,floating:se}:{},[d,K,se])}function NS(a){const{open:r=!1,onOpenChange:s,elements:o}=a,c=Hc(),f=A.useRef({}),[d]=A.useState(()=>lS()),p=Fc()!=null,[b,m]=A.useState(o.reference),S=Lt((_,x,v)=>{f.current.openEvent=_?x:void 0,d.emit("openchange",{open:_,event:x,reason:v,nested:p}),s?.(_,x,v)}),y=A.useMemo(()=>({setPositionReference:m}),[]),C=A.useMemo(()=>({reference:b||o.reference||null,floating:o.floating||null,domReference:o.reference}),[b,o.reference,o.floating]);return A.useMemo(()=>({dataRef:f,open:r,onOpenChange:S,elements:C,events:d,floatingId:c,refs:y}),[r,S,C,d,c,y])}function CS(a){a===void 0&&(a={});const{nodeId:r}=a,s=NS({...a,elements:{reference:null,floating:null,...a.elements}}),o=a.rootContext||s,c=o.elements,[f,d]=A.useState(null),[p,b]=A.useState(null),S=c?.domReference||f,y=A.useRef(null),C=Bo();Bt(()=>{S&&(y.current=S)},[S]);const _=$2({...a,elements:{...c,...p&&{reference:p}}}),x=A.useCallback(D=>{const M=Ze(D)?{getBoundingClientRect:()=>D.getBoundingClientRect(),getClientRects:()=>D.getClientRects(),contextElement:D}:D;b(M),_.refs.setReference(M)},[_.refs]),v=A.useCallback(D=>{(Ze(D)||D===null)&&(y.current=D,d(D)),(Ze(_.refs.reference.current)||_.refs.reference.current===null||D!==null&&!Ze(D))&&_.refs.setReference(D)},[_.refs]),T=A.useMemo(()=>({..._.refs,setReference:v,setPositionReference:x,domReference:y}),[_.refs,v,x]),N=A.useMemo(()=>({..._.elements,domReference:S}),[_.elements,S]),R=A.useMemo(()=>({..._,...o,refs:T,elements:N,nodeId:r}),[_,T,N,r,o]);return Bt(()=>{o.dataRef.current.floatingContext=R;const D=C?.nodesRef.current.find(M=>M.id===r);D&&(D.context=R)}),A.useMemo(()=>({..._,context:R,refs:T,elements:N}),[_,T,N,R])}function hc(){return i2()&&qp()}function AS(a,r){r===void 0&&(r={});const{open:s,onOpenChange:o,events:c,dataRef:f,elements:d}=a,{enabled:p=!0,visibleOnly:b=!0}=r,m=A.useRef(!1),S=A.useRef(-1),y=A.useRef(!0);A.useEffect(()=>{if(!p)return;const _=Ut(d.domReference);function x(){!s&&ut(d.domReference)&&d.domReference===vl(wt(d.domReference))&&(m.current=!0)}function v(){y.current=!0}function T(){y.current=!1}return _.addEventListener("blur",x),hc()&&(_.addEventListener("keydown",v,!0),_.addEventListener("pointerdown",T,!0)),()=>{_.removeEventListener("blur",x),hc()&&(_.removeEventListener("keydown",v,!0),_.removeEventListener("pointerdown",T,!0))}},[d.domReference,s,p]),A.useEffect(()=>{if(!p)return;function _(x){let{reason:v}=x;(v==="reference-press"||v==="escape-key")&&(m.current=!0)}return c.on("openchange",_),()=>{c.off("openchange",_)}},[c,p]),A.useEffect(()=>()=>{At(S)},[]);const C=A.useMemo(()=>({onMouseLeave(){m.current=!1},onFocus(_){if(m.current)return;const x=Fn(_.nativeEvent);if(b&&Ze(x)){if(hc()&&!_.relatedTarget){if(!y.current&&!Bc(x))return}else if(!u2(x))return}o(!0,_.nativeEvent,"focus")},onBlur(_){m.current=!1;const x=_.relatedTarget,v=_.nativeEvent,T=Ze(x)&&x.hasAttribute(Ql("focus-guard"))&&x.getAttribute("data-type")==="outside";S.current=window.setTimeout(()=>{var N;const R=vl(d.domReference?d.domReference.ownerDocument:document);!x&&R===d.domReference||Et((N=f.current.floatingContext)==null?void 0:N.refs.floating.current,R)||Et(d.domReference,R)||T||o(!1,v,"focus")})}}),[f,d.domReference,o,b]);return A.useMemo(()=>p?{reference:C}:{},[p,C])}function mc(a,r,s){const o=new Map,c=s==="item";let f=a;if(c&&a){const{[Nm]:d,[Cm]:p,...b}=a;f=b}return{...s==="floating"&&{tabIndex:-1,[W2]:""},...f,...r.map(d=>{const p=d?d[s]:null;return typeof p=="function"?a?p(a):null:p}).concat(a).reduce((d,p)=>(p&&Object.entries(p).forEach(b=>{let[m,S]=b;if(!(c&&[Nm,Cm].includes(m)))if(m.indexOf("on")===0){if(o.has(m)||o.set(m,[]),typeof S=="function"){var y;(y=o.get(m))==null||y.push(S),d[m]=function(){for(var C,_=arguments.length,x=new Array(_),v=0;v<_;v++)x[v]=arguments[v];return(C=o.get(m))==null?void 0:C.map(T=>T(...x)).find(T=>T!==void 0)}}}else d[m]=S}),d),{})}}function TS(a){a===void 0&&(a=[]);const r=a.map(p=>p?.reference),s=a.map(p=>p?.floating),o=a.map(p=>p?.item),c=A.useCallback(p=>mc(p,a,"reference"),r),f=A.useCallback(p=>mc(p,a,"floating"),s),d=A.useCallback(p=>mc(p,a,"item"),o);return A.useMemo(()=>({getReferenceProps:c,getFloatingProps:f,getItemProps:d}),[c,f,d])}const RS=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function _S(a,r){var s,o;r===void 0&&(r={});const{open:c,elements:f,floatingId:d}=a,{enabled:p=!0,role:b="dialog"}=r,m=Hc(),S=((s=f.domReference)==null?void 0:s.id)||m,y=A.useMemo(()=>{var R;return((R=Tc(f.floating))==null?void 0:R.id)||d},[f.floating,d]),C=(o=RS.get(b))!=null?o:b,x=Fc()!=null,v=A.useMemo(()=>C==="tooltip"||b==="label"?{["aria-"+(b==="label"?"labelledby":"describedby")]:c?y:void 0}:{"aria-expanded":c?"true":"false","aria-haspopup":C==="alertdialog"?"dialog":C,"aria-controls":c?y:void 0,...C==="listbox"&&{role:"combobox"},...C==="menu"&&{id:S},...C==="menu"&&x&&{role:"menuitem"},...b==="select"&&{"aria-autocomplete":"none"},...b==="combobox"&&{"aria-autocomplete":"list"}},[C,y,x,c,S,b]),T=A.useMemo(()=>{const R={id:y,...C&&{role:C}};return C==="tooltip"||b==="label"?R:{...R,...C==="menu"&&{"aria-labelledby":S}}},[C,y,S,b]),N=A.useCallback(R=>{let{active:D,selected:M}=R;const F={role:"option",...D&&{id:y+"-fui-option"}};switch(b){case"select":case"combobox":return{...F,"aria-selected":M}}return{}},[y,b]);return A.useMemo(()=>p?{reference:v,floating:T,item:N}:{},[p,v,T,N])}function ab(a,r,s){return s===void 0&&(s=!0),a.filter(c=>{var f;return c.parentId===r&&(!s||((f=c.context)==null?void 0:f.open))}).flatMap(c=>[c,...ab(a,c.id,s)])}function Hm(a,r){const[s,o]=a;let c=!1;const f=r.length;for(let d=0,p=f-1;d<f;p=d++){const[b,m]=r[d]||[0,0],[S,y]=r[p]||[0,0];m>=o!=y>=o&&s<=(S-b)*(o-m)/(y-m)+b&&(c=!c)}return c}function jS(a,r){return a[0]>=r.x&&a[0]<=r.x+r.width&&a[1]>=r.y&&a[1]<=r.y+r.height}function OS(a){a===void 0&&(a={});const{buffer:r=.5,blockPointerEvents:s=!1,requireIntent:o=!0}=a,c={current:-1};let f=!1,d=null,p=null,b=typeof performance<"u"?performance.now():0;function m(y,C){const _=performance.now(),x=_-b;if(d===null||p===null||x===0)return d=y,p=C,b=_,null;const v=y-d,T=C-p,R=Math.sqrt(v*v+T*T)/x;return d=y,p=C,b=_,R}const S=y=>{let{x:C,y:_,placement:x,elements:v,onClose:T,nodeId:N,tree:R}=y;return function(M){function F(){At(c),T()}if(At(c),!v.domReference||!v.floating||x==null||C==null||_==null)return;const{clientX:ee,clientY:Q}=M,ce=[ee,Q],q=oS(M),P=M.type==="mouseleave",J=dc(v.floating,q),K=dc(v.domReference,q),se=v.domReference.getBoundingClientRect(),U=v.floating.getBoundingClientRect(),re=x.split("-")[0],E=C>U.right-U.width/2,z=_>U.bottom-U.height/2,k=jS(ce,se),I=U.width>se.width,$=U.height>se.height,j=(I?se:U).left,B=(I?se:U).right,X=($?se:U).top,ie=($?se:U).bottom;if(J&&(f=!0,!P))return;if(K&&(f=!1),K&&!P){f=!0;return}if(P&&Ze(M.relatedTarget)&&dc(v.floating,M.relatedTarget)||R&&ab(R.nodesRef.current,N).length)return;if(re==="top"&&_>=se.bottom-1||re==="bottom"&&_<=se.top+1||re==="left"&&C>=se.right-1||re==="right"&&C<=se.left+1)return F();let oe=[];switch(re){case"top":oe=[[j,se.top+1],[j,U.bottom-1],[B,U.bottom-1],[B,se.top+1]];break;case"bottom":oe=[[j,U.top+1],[j,se.bottom-1],[B,se.bottom-1],[B,U.top+1]];break;case"left":oe=[[U.right-1,ie],[U.right-1,X],[se.left+1,X],[se.left+1,ie]];break;case"right":oe=[[se.right-1,ie],[se.right-1,X],[U.left+1,X],[U.left+1,ie]];break}function fe(ue){let[ge,de]=ue;switch(re){case"top":{const ye=[I?ge+r/2:E?ge+r*4:ge-r*4,de+r+1],Ne=[I?ge-r/2:E?ge+r*4:ge-r*4,de+r+1],pe=[[U.left,E||I?U.bottom-r:U.top],[U.right,E?I?U.bottom-r:U.top:U.bottom-r]];return[ye,Ne,...pe]}case"bottom":{const ye=[I?ge+r/2:E?ge+r*4:ge-r*4,de-r],Ne=[I?ge-r/2:E?ge+r*4:ge-r*4,de-r],pe=[[U.left,E||I?U.top+r:U.bottom],[U.right,E?I?U.top+r:U.bottom:U.top+r]];return[ye,Ne,...pe]}case"left":{const ye=[ge+r+1,$?de+r/2:z?de+r*4:de-r*4],Ne=[ge+r+1,$?de-r/2:z?de+r*4:de-r*4];return[...[[z||$?U.right-r:U.left,U.top],[z?$?U.right-r:U.left:U.right-r,U.bottom]],ye,Ne]}case"right":{const ye=[ge-r,$?de+r/2:z?de+r*4:de-r*4],Ne=[ge-r,$?de-r/2:z?de+r*4:de-r*4],pe=[[z||$?U.left+r:U.right,U.top],[z?$?U.left+r:U.right:U.left+r,U.bottom]];return[ye,Ne,...pe]}}}if(!Hm([ee,Q],oe)){if(f&&!k)return F();if(!P&&o){const ue=m(M.clientX,M.clientY);if(ue!==null&&ue<.1)return F()}Hm([ee,Q],fe([C,_]))?!f&&o&&(c.current=window.setTimeout(F,40)):F()}}};return S.__options={blockPointerEvents:s},S}function Fm({label:a,value:r,resolvedValue:s,onChange:o,options:c,disabledValues:f=[]}){const[d,p]=A.useState(!1),{refs:b,floatingStyles:m,context:S}=CS({open:d,onOpenChange:p,middleware:[Q2(4),J2(),K2({padding:8})],whileElementsMounted:q2}),y=iS(S,{handleClose:OS()}),C=xS(S),_=AS(S),x=wS(S),v=_S(S),{getReferenceProps:T,getFloatingProps:N}=TS([y,C,_,x,v]),R=r==="working"&&f.includes("staged")||r==="staged"&&f.includes("working"),D=()=>{const q=c.specialOptions.find(K=>K.value===r);if(q)return q.label;const P=c.branches.find(K=>K.name===r);if(P)return`${P.name}${P.current?" (current)":""}`;const J=c.commits.find(K=>K.shortHash===r);return J?`${J.shortHash} - ${J.message}`:r||"Select..."},M=q=>{o(q),p(!1)},F=q=>f.includes(q),ee=(q,P)=>["w-full text-left px-3 py-2 text-xs focus:outline-none transition-colors",q?"hover:bg-diff-selected-bg focus:bg-diff-selected-bg":"hover:bg-github-bg-tertiary focus:bg-github-bg-tertiary",q?"bg-diff-selected-bg border-l-4 border-l-diff-selected-border font-semibold pl-2":"",P?"opacity-50 cursor-not-allowed":"cursor-pointer"].join(" "),Q=(q,P)=>q===r||P===r?!0:s?q===s||P===s:!1,ce=()=>{let q=0;const P=c.specialOptions.findIndex(J=>J.value===r);if(P!==-1)return P;if(q+=c.specialOptions.length,!R){const J=c.commits.findIndex(se=>se.shortHash===r);if(J!==-1)return q+J;q+=c.commits.length;const K=c.branches.findIndex(se=>se.name===r);if(K!==-1)return q+K}return 0};return g.jsxs(g.Fragment,{children:[g.jsxs("button",{ref:b.setReference,type:"button",className:"flex items-center gap-1.5 cursor-pointer group","aria-haspopup":"listbox","aria-expanded":d,...T(),children:[g.jsxs("span",{className:"text-xs text-github-text-secondary",children:[a,":"]}),g.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 bg-github-bg-tertiary border border-github-border rounded hover:border-github-text-secondary transition-colors",children:[g.jsx("code",{className:"text-xs text-github-text-primary max-w-[150px] truncate",children:D()}),g.jsx(Fr,{size:12,className:"text-github-text-secondary group-hover:text-github-text-primary transition-colors"})]})]}),d&&g.jsx(gS,{children:g.jsx(yS,{context:S,modal:!1,initialFocus:ce(),children:g.jsxs("div",{ref:b.setFloating,style:m,className:"bg-github-bg-secondary border border-github-border rounded shadow-lg z-50 w-[360px] max-h-[400px] overflow-y-auto",...N(),children:[c.specialOptions.length>0&&g.jsxs("div",{className:"border-b border-github-border",children:[g.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Special"}),c.specialOptions.map(q=>g.jsx("button",{onClick:()=>M(q.value),disabled:F(q.value),className:ee(q.value===r,F(q.value)),children:q.label},q.value))]}),!R&&c.commits.length>0&&g.jsxs("div",{className:"border-b border-github-border",children:[g.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Recent Commits"}),c.commits.map(q=>g.jsx("button",{onClick:()=>M(q.shortHash),disabled:F(q.shortHash),className:ee(Q(q.shortHash,q.hash),F(q.shortHash)),children:g.jsxs("div",{className:"flex items-start gap-2",children:[g.jsx("code",{className:"text-xs text-github-text-primary font-mono whitespace-nowrap",children:q.shortHash}),g.jsx("span",{className:"text-xs text-github-text-secondary flex-1 break-words",children:q.message})]})},q.hash))]}),!R&&c.branches.length>0&&g.jsxs("div",{children:[g.jsx("div",{className:"px-3 py-2 text-xs font-semibold text-github-text-secondary bg-github-bg-tertiary",children:"Branches"}),c.branches.map(q=>g.jsx("button",{onClick:()=>M(q.name),disabled:F(q.name),className:ee(q.name===r,F(q.name)),children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-github-text-primary",children:q.name}),q.current&&g.jsx("span",{className:"text-xs text-github-text-muted",children:"(current)"})]})},q.name))]})]})})})]})}const kS={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark"},DS=[{name:"System Font",value:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif'},{name:"Menlo",value:'Menlo, Monaco, "Courier New", monospace'},{name:"SF Mono",value:'SF Mono, Consolas, "Liberation Mono", monospace'},{name:"Fira Code",value:'"Fira Code", "Courier New", monospace'},{name:"JetBrains Mono",value:'"JetBrains Mono", "Courier New", monospace'}];function MS({isOpen:a,onClose:r,settings:s,onSettingsChange:o}){const[c,f]=A.useState(s),{enableScope:d,disableScope:p}=Ao();A.useEffect(()=>{f(s)},[s]),A.useEffect(()=>{o(c)},[c,o]),A.useEffect(()=>(a?p("navigation"):d("navigation"),()=>{d("navigation")}),[a,d,p]);const b=()=>c.theme==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":c.theme,m=()=>b()==="light"?um:cm,S=C=>{const _={...c,theme:C},v=(C==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":C)==="light"?um:cm;if(!v.some(N=>N.id===c.syntaxTheme)&&v.length>0){const N=v[0];N&&(_.syntaxTheme=N.id)}f(_)},y=()=>{f(kS)};return a?g.jsx("div",{className:"fixed inset-0 flex items-center justify-center z-50 pointer-events-none",children:g.jsxs("div",{className:"bg-github-bg-secondary border border-github-border rounded-lg w-full max-w-md mx-4 pointer-events-auto",children:[g.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-github-border",children:[g.jsxs("h2",{className:"text-lg font-semibold text-github-text-primary flex items-center gap-2",children:[g.jsx(dp,{size:20}),"Appearance Settings"]}),g.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary p-1",children:g.jsx(kc,{size:18})})]}),g.jsxs("div",{className:"p-4 space-y-6",children:[g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Size"}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("input",{type:"range",min:"10",max:"20",step:"1",value:c.fontSize,onChange:C=>f({...c,fontSize:parseInt(C.target.value)}),className:"flex-1 accent-github-accent"}),g.jsxs("span",{className:"text-sm text-github-text-secondary w-8 text-right",children:[c.fontSize,"px"]})]})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Family"}),g.jsx("select",{value:c.fontFamily,onChange:C=>f({...c,fontFamily:C.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:DS.map(C=>g.jsx("option",{value:C.value,children:C.name},C.value))})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Theme"}),g.jsx("div",{className:"flex gap-2",children:["light","dark","auto"].map(C=>g.jsx("button",{onClick:()=>S(C),className:`px-3 py-2 text-sm rounded border transition-colors ${c.theme===C?"bg-github-accent text-white border-github-accent":"bg-github-bg-tertiary text-github-text-secondary border-github-border hover:text-github-text-primary"}`,children:C.charAt(0).toUpperCase()+C.slice(1)},C))})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Syntax Highlighting Theme"}),g.jsx("select",{value:c.syntaxTheme,onChange:C=>f({...c,syntaxTheme:C.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:m().map(C=>g.jsx("option",{value:C.id,children:C.label},C.id))})]})]}),g.jsxs("div",{className:"flex items-center justify-between p-4 border-t border-github-border",children:[g.jsx("button",{onClick:y,className:"px-3 py-2 text-sm text-github-text-secondary hover:text-github-text-primary",children:"Reset to Default"}),g.jsx("button",{onClick:r,className:"px-4 py-2 text-sm bg-github-accent text-white rounded hover:bg-green-600",children:"Close"})]})]})}):null}const qm={position:"absolute",fontSize:"16px",pointerEvents:"none",zIndex:100,transform:"translateY(20px) scale(0.5)",opacity:0},zS=({isActive:a})=>a?g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"animate-sparkle-rise",style:{...qm,left:"-12px",animationDelay:"0s"},children:"✨"}),g.jsx("div",{className:"animate-sparkle-rise",style:{...qm,right:"-12px",animationDelay:"0.3s"},children:"✨"})]}):null,Gm={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark"},Ym="reviewit-appearance-settings";function LS(){const[a,r]=A.useState(()=>{try{const c=localStorage.getItem(Ym);if(c)return{...Gm,...JSON.parse(c)}}catch(c){console.warn("Failed to load appearance settings from localStorage:",c)}return Gm}),s=A.useCallback(c=>{const f=document.documentElement;f.setAttribute("data-theme",c),c==="light"?(f.style.setProperty("--color-github-bg-primary","#ffffff"),f.style.setProperty("--color-github-bg-secondary","#f6f8fa"),f.style.setProperty("--color-github-bg-tertiary","#f1f3f4"),f.style.setProperty("--color-github-border","#d1d9e0"),f.style.setProperty("--color-github-text-primary","#24292f"),f.style.setProperty("--color-github-text-secondary","#656d76"),f.style.setProperty("--color-github-text-muted","#8c959f"),f.style.setProperty("--color-github-accent","#1f883d"),f.style.setProperty("--color-github-danger","#cf222e"),f.style.setProperty("--color-github-warning","#bf8700"),f.style.setProperty("--color-diff-addition-bg","#d1f4cd"),f.style.setProperty("--color-diff-addition-border","#1f883d"),f.style.setProperty("--color-diff-deletion-bg","#ffd8d3"),f.style.setProperty("--color-diff-deletion-border","#cf222e"),f.style.setProperty("--color-diff-neutral-bg","#f1f3f4"),f.style.setProperty("--color-comment-bg","#fff8e1"),f.style.setProperty("--color-comment-border","#ffd54f"),f.style.setProperty("--color-comment-text","#5d4037"),f.style.setProperty("--color-yellow-btn-bg","#fef3c7"),f.style.setProperty("--color-yellow-btn-border","#f59e0b"),f.style.setProperty("--color-yellow-btn-text","#92400e"),f.style.setProperty("--color-yellow-btn-hover-bg","#fde68a"),f.style.setProperty("--color-yellow-btn-hover-border","#d97706"),f.style.setProperty("--color-yellow-path-bg","#fde68a"),f.style.setProperty("--color-yellow-path-text","#92400e")):(f.style.setProperty("--color-github-bg-primary","#0d1117"),f.style.setProperty("--color-github-bg-secondary","#161b22"),f.style.setProperty("--color-github-bg-tertiary","#21262d"),f.style.setProperty("--color-github-border","#30363d"),f.style.setProperty("--color-github-text-primary","#f0f6fc"),f.style.setProperty("--color-github-text-secondary","#8b949e"),f.style.setProperty("--color-github-text-muted","#6e7681"),f.style.setProperty("--color-github-accent","#238636"),f.style.setProperty("--color-github-danger","#da3633"),f.style.setProperty("--color-github-warning","#d29922"),f.style.setProperty("--color-diff-addition-bg","#0d4429"),f.style.setProperty("--color-diff-addition-border","#1b7c3d"),f.style.setProperty("--color-diff-deletion-bg","#67060c"),f.style.setProperty("--color-diff-deletion-border","#da3633"),f.style.setProperty("--color-diff-neutral-bg","#21262d"),f.style.setProperty("--color-comment-bg","#1c2128"),f.style.setProperty("--color-comment-border","#373e47"),f.style.setProperty("--color-comment-text","#e6edf3"),f.style.setProperty("--color-yellow-btn-bg","rgba(180, 83, 9, 0.2)"),f.style.setProperty("--color-yellow-btn-border","rgba(217, 119, 6, 0.5)"),f.style.setProperty("--color-yellow-btn-text","#fbbf24"),f.style.setProperty("--color-yellow-btn-hover-bg","rgba(180, 83, 9, 0.3)"),f.style.setProperty("--color-yellow-btn-hover-border","#d97706"),f.style.setProperty("--color-yellow-path-bg","rgba(180, 83, 9, 0.3)"),f.style.setProperty("--color-yellow-path-text","#fbbf24")),document.body.style.backgroundColor="var(--color-github-bg-primary)",document.body.style.color="var(--color-github-text-primary)"},[]);return A.useEffect(()=>{const c=document.documentElement;if(c.style.setProperty("--app-font-size",`${a.fontSize}px`),c.style.setProperty("--app-font-family",a.fontFamily),a.theme==="auto"){const f=window.matchMedia("(prefers-color-scheme: dark)");s(f.matches?"dark":"light");const d=p=>{s(p.matches?"dark":"light")};return f.addEventListener("change",d),()=>f.removeEventListener("change",d)}else{s(a.theme);return}},[a,s]),{settings:a,updateSettings:c=>{r(c);try{localStorage.setItem(Ym,JSON.stringify(c))}catch(f){console.warn("Failed to save appearance settings to localStorage:",f)}}}}function rb(a,r,s){const o=typeof r=="number"?`L${r}`:Array.isArray(r)?`L${r[0]}-L${r[1]}`:"";return`${a||"<unknown file>"}:${o}
|
|
21
|
-
${s}`}function BS(a){return a.length===0?"":a.map(s=>rb(s.file,s.line,s.body)).join(`
|
|
22
|
-
=====
|
|
23
|
-
`)}const co="difit-storage-v1";class US{generateStorageKey(r,s){const o=c=>c.replace(/[^a-zA-Z0-9-_]/g,f=>`_${f.charCodeAt(0).toString(16)}_`);return`${o(r)}-${o(s)}`}normalizeCommitish(r,s,o){if(r==="."||r==="working")return"WORKING";if(r==="staged")return"STAGED";if((r==="HEAD"||r==="@")&&s)return s;if(o?.has(r)){const c=o.get(r);if(c)return c}return(r.startsWith("@")||r.includes("^")||r.includes("~")||r.includes("HEAD"))&&console.warn(`[StorageService] Cannot normalize symbolic ref '${r}' - may cause key collision. currentCommitHash=${s}`),r}getStorageKey(r,s,o,c,f){let d,p;s==="."||s==="working"?(d=o||r,p="WORKING"):s==="staged"?(d=o||r,p="STAGED"):(d=this.normalizeCommitish(r,o,c),p=this.normalizeCommitish(s,o,c));const b=this.generateStorageKey(d,p);return f?`${co}/${f}/${b}`:`${co}/${b}`}getDiffContextData(r,s,o,c,f){try{const d=this.getStorageKey(r,s,o,c,f),p=localStorage.getItem(d);if(!p)return null;const b=JSON.parse(p);return b.version!==1?(console.warn(`Unknown storage version: ${b.version}`),null):b}catch(d){return console.error("Error reading diff context data:",d),null}}saveDiffContextData(r,s,o,c,f,d){try{const p=this.getStorageKey(r,s,c,f,d),b={...o,baseCommitish:r,targetCommitish:s,lastModifiedAt:new Date().toISOString()};localStorage.setItem(p,JSON.stringify(b))}catch(p){p instanceof DOMException&&p.name==="QuotaExceededError"?console.error("localStorage quota exceeded"):console.error("Error saving diff context data:",p)}}getComments(r,s,o,c,f){return this.getDiffContextData(r,s,o,c,f)?.comments||[]}saveComments(r,s,o,c,f,d){const b=this.getDiffContextData(r,s,c,f,d)||{version:1,baseCommitish:r,targetCommitish:s,createdAt:new Date().toISOString(),lastModifiedAt:new Date().toISOString(),comments:[],viewedFiles:[]};b.comments=o,this.saveDiffContextData(r,s,b,c,f,d)}getViewedFiles(r,s,o,c,f){return this.getDiffContextData(r,s,o,c,f)?.viewedFiles||[]}saveViewedFiles(r,s,o,c,f,d){const b=this.getDiffContextData(r,s,c,f,d)||{version:1,baseCommitish:r,targetCommitish:s,createdAt:new Date().toISOString(),lastModifiedAt:new Date().toISOString(),comments:[],viewedFiles:[]};b.viewedFiles=o,this.saveDiffContextData(r,s,b,c,f,d)}cleanupOldData(r){const s=new Date;s.setDate(s.getDate()-r);const o=s.getTime(),c=[];for(let f=0;f<localStorage.length;f++){const d=localStorage.key(f);if(d?.startsWith(co))try{const p=localStorage.getItem(d);if(!p)continue;const b=JSON.parse(p);new Date(b.lastModifiedAt).getTime()<o&&c.push(d)}catch{}}c.forEach(f=>localStorage.removeItem(f))}getStorageSize(){let r=0;for(let s=0;s<localStorage.length;s++){const o=localStorage.key(s);if(!o?.startsWith(co))continue;const c=localStorage.getItem(o);c&&(r+=(o.length+c.length)*2)}return r}}const Br=new US;async function Vm(a){try{const s=new TextEncoder().encode(a),o=await crypto.subtle.digest("SHA-256",s);return Array.from(new Uint8Array(o)).map(f=>f.toString(16).padStart(2,"0")).join("")}catch{return console.warn("Crypto API not available, using fallback hash"),HS(a)}}function HS(a){let r=0;for(let s=0;s<a.length;s++){const o=a.charCodeAt(s);r=(r<<5)-r+o,r=r&r}return Math.abs(r).toString(16)}function Xm(a){const r=a.chunks.map(s=>{const o=s.lines.filter(c=>c.type!=="hunk"&&c.type!=="header").map(c=>`${c.type}:${c.content}`).join(`
|
|
24
|
-
`);return`${s.header}
|
|
25
|
-
${o}`}).join(`
|
|
26
|
-
|
|
27
|
-
`);return`${a.path}
|
|
28
|
-
${a.status}
|
|
29
|
-
${r}`}function FS(a){const r=a.split(".").pop()?.toLowerCase();return r?{js:"javascript",jsx:"javascript",ts:"typescript",tsx:"typescript",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",cpp:"cpp",c:"c",cs:"csharp",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",sql:"sql",sh:"bash",bash:"bash",zsh:"bash",fish:"bash",yml:"yaml",yaml:"yaml",json:"json",xml:"xml",html:"html",css:"css",scss:"scss",sass:"sass",less:"less",md:"markdown",markdown:"markdown",tex:"latex",vim:"vim"}[r]:void 0}function qS(a,r,s,o,c){const[f,d]=A.useState([]);A.useEffect(()=>{if(!a||!r)return;const x=Br.getComments(a,r,s,o,c);d(x)},[a,r,s,o,c]);const p=A.useCallback(x=>{!a||!r||(Br.saveComments(a,r,x,s,o,c),d(x))},[a,r,s,o,c]),b=A.useCallback(x=>{const v={id:crypto.randomUUID(),filePath:x.filePath,body:x.body,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),chunkHeader:x.chunkHeader,position:{side:x.side,line:x.line},codeSnapshot:x.codeSnapshot||{content:"",language:FS(x.filePath)}},T=[...f,v];return p(T),v},[f,p]),m=A.useCallback(x=>{const v=f.filter(T=>T.id!==x);p(v)},[f,p]),S=A.useCallback((x,v)=>{const T=f.map(N=>N.id===x?{...N,body:v,updatedAt:new Date().toISOString()}:N);p(T)},[f,p]),y=A.useCallback(()=>{p([])},[p]),C=A.useCallback(x=>{const v=f.find(N=>N.id===x);if(!v)return"";const T=typeof v.position.line=="number"?v.position.line:[v.position.line.start,v.position.line.end];return rb(v.filePath,T,v.body)},[f]),_=A.useCallback(()=>{const x=f.map(v=>({id:v.id,file:v.filePath,line:typeof v.position.line=="number"?v.position.line:[v.position.line.start,v.position.line.end],body:v.body,timestamp:v.createdAt}));return BS(x)},[f]);return{comments:f,addComment:b,removeComment:m,updateComment:S,clearAllComments:y,generatePrompt:C,generateAllCommentsPrompt:_}}var ib=(a=>(a.DEFAULT="default",a.WORKING="working",a.STAGED="staged",a.DOT="dot",a.SPECIFIC="specific",a))(ib||{});function GS(a){const r=A.useRef(null),s=A.useRef(null),o=A.useRef(0),c=5,f=3e3,[d,p]=A.useState({isWatchEnabled:!1,diffMode:ib.DEFAULT,shouldReload:!1,isReloading:!1,lastChangeTime:null,lastChangeType:null,connectionStatus:"disconnected"}),[b,m]=A.useState(null),S=A.useCallback(()=>{if(!r.current)try{const _=new EventSource("/api/watch");r.current=_,_.onopen=()=>{console.log("Connected to file watch service"),p(x=>({...x,connectionStatus:"connected"})),o.current=0,m(null)},_.onmessage=x=>{try{const v=JSON.parse(x.data);switch(v.type){case"connected":p(T=>({...T,isWatchEnabled:!0,diffMode:v.diffMode,connectionStatus:"connected"}));break;case"reload":console.log("File changes detected, showing reload button:",v.changeType),p(T=>({...T,shouldReload:!0,lastChangeTime:new Date,lastChangeType:v.changeType}));break;case"error":console.error("File watch error:",v.message),m(v.message||"File watch error occurred");break}}catch(v){console.error("Error parsing watch event:",v)}},_.onerror=()=>{console.log("File watch connection lost"),p(x=>({...x,connectionStatus:"disconnected"})),r.current&&(r.current.close(),r.current=null),o.current<c?(p(x=>({...x,connectionStatus:"reconnecting"})),o.current+=1,s.current=setTimeout(()=>{console.log(`Attempting to reconnect to file watch service (${o.current}/${c})...`),S()},f)):(console.error("Max reconnection attempts reached"),m("Lost connection to file watch service"))}}catch(_){console.error("Failed to connect to file watch service:",_),m("Failed to connect to file watch service")}},[c,f]),y=A.useCallback(async()=>{if(!d.isReloading){p(_=>({..._,isReloading:!0}));try{a&&await a(),p(_=>({..._,shouldReload:!1,isReloading:!1,lastChangeTime:null,lastChangeType:null}))}catch(_){console.error("Reload failed:",_),m("Failed to reload diff data"),p(x=>({...x,isReloading:!1}))}}},[a,d.isReloading]),C=()=>{r.current&&(r.current.close(),r.current=null),s.current&&(clearTimeout(s.current),s.current=null)};return A.useEffect(()=>(S(),C),[S]),A.useEffect(()=>C,[]),{shouldReload:d.shouldReload,isConnected:d.connectionStatus==="connected",error:b,reload:y,watchState:d}}const Rc={SCROLL_CONTAINER:"main.overflow-y-auto"};function yl(a,r){const s=`file-${a.fileIndex}-chunk-${a.chunkIndex}-line-${a.lineIndex}`;return r==="side-by-side"?`${s}-${a.side}`:s}function ob(a,r){return`${a}:${r}`}function YS(a,r){const s=r[a.fileIndex]?.chunks[a.chunkIndex]?.lines[a.lineIndex];return s&&(s.type==="add"||s.type==="delete"||s.type==="normal")?s.type:null}function Kt(a,r){const s=YS(a,r);return s?s==="normal"?!0:s==="delete"?a.side==="left":s==="add"?a.side==="right":!1:!1}function sb(a,r){return Kt(a,r)?a:{...a,side:a.side==="left"?"right":"left"}}const Zm={VIEWPORT_OFFSET_RATIO:1/3};function VS(a,r,s,o){return{line:c=>{const f=a[c.fileIndex];return!f||o?.has(f.path)?!1:s==="inline"||Kt(c,a)},chunk:c=>{const f=a[c.fileIndex];if(!f||o?.has(f.path))return!1;const d=f.chunks[c.chunkIndex]?.lines[c.lineIndex];if(!d||d.type==="normal")return!1;if(c.lineIndex===0)return!0;const p=f.chunks[c.chunkIndex]?.lines[c.lineIndex-1];return!p||p.type==="normal"},comment:c=>{const f=a[c.fileIndex];if(!f||o?.has(f.path))return!1;const d=f.chunks[c.chunkIndex]?.lines[c.lineIndex];if(!d||d.type==="delete")return!1;const p=d.newLineNumber;if(!p)return!1;const b=ob(f.path,p);return r.has(b)},file:c=>c.chunkIndex===0&&c.lineIndex===0}}function XS(){return a=>{const r=document.getElementById(a);if(!r)return;const s=document.querySelector(Rc.SCROLL_CONTAINER);if(!s)throw new Error(`Scrollable container (${Rc.SCROLL_CONTAINER}) not found`);const o=r.getBoundingClientRect(),c=s.getBoundingClientRect(),f=s.clientHeight,d=s.scrollTop,p=Math.max(c.top,0),b=Math.min(c.bottom,window.innerHeight);if(!(o.top>=p&&o.bottom<=b)){const v=ZS(r,s)-f*Zm.VIEWPORT_OFFSET_RATIO;s.scrollTop=Math.max(0,v);return}const S=o.bottom>Math.min(c.bottom,window.innerHeight),C=r.offsetTop-s.offsetTop-f*Zm.VIEWPORT_OFFSET_RATIO,_=C>d;S&&_&&(s.scrollTop=Math.max(0,C))}}function ZS(a,r){let s=a,o=0;for(;s&&s!==r&&s.offsetParent;)o+=s.offsetTop,s=s.offsetParent;return s&&s!==r&&(o+=s.offsetTop),o}function IS(a){return a||{fileIndex:0,chunkIndex:0,lineIndex:-1,side:"right"}}function $S(a,r,s){return s&&a.fileIndex===r.fileIndex&&a.chunkIndex===r.chunkIndex&&a.lineIndex===r.lineIndex}function QS(a,r,s){let{fileIndex:o,chunkIndex:c,lineIndex:f}=a;const d=s.length;let p=0;if(r==="next")for(f++;p<d;){if(s[o]?.chunks[c]?.lines[f])return{...a,fileIndex:o,chunkIndex:c,lineIndex:f};c++,f=0,s[o]?.chunks[c]||(o++,c=0,f=0,o>=d&&(o=0,p++))}else for(f--;p<d;){if(f<0)if(c--,c<0){o--,o<0&&(o=d-1,p++);const b=s[o];if(b&&b.chunks.length>0){c=b.chunks.length-1;const m=b.chunks[c];f=m&&m.lines.length>0?m.lines.length-1:-1}else c=-1,f=-1}else{const b=s[o]?.chunks[c];f=b&&b.lines.length>0?b.lines.length-1:-1}if(f>=0&&s[o]?.chunks[c]?.lines[f])return{...a,fileIndex:o,chunkIndex:c,lineIndex:f};f<0||f--}return null}function KS(a,r,s,o,c){let f=a,d=!1;for(;f;){const p=QS(f,r,o);if(!p||(f=p,$S(f,a,d)))break;if(d=!0,s(f,o)){const b=sb(f,o);return{position:b,scrollTarget:yl(b,c)}}}return{position:null,scrollTarget:null}}function JS({files:a,comments:r,viewMode:s="inline",reviewedFiles:o,onToggleReviewed:c,onCreateComment:f,onCopyAllComments:d,onDeleteAllComments:p,onShowCommentsList:b,onRefresh:m}){const[S,y]=A.useState(null),[C,_]=A.useState(!1),x=A.useMemo(()=>XS(),[]),v=A.useMemo(()=>{const J=new Map;return r.forEach(K=>{const se=Array.isArray(K.line)?K.line[0]:K.line,U=ob(K.file,se);J.has(U)||J.set(U,[]),J.get(U)?.push(K)}),J},[r]),T=A.useMemo(()=>VS(a,v,s,o),[a,v,s,o]),N=A.useCallback((J,K)=>{if(a.length===0)return{position:null,scrollTarget:null};const se=IS(S);return KS(se,J,K,a,s)},[S,a,s]),R=A.useCallback(J=>K=>{const se=N(K,J);se.position&&(y(se.position),se.scrollTarget&&x(se.scrollTarget))},[N,x]),D=A.useMemo(()=>R(T.line),[R,T.line]),M=A.useMemo(()=>R(T.chunk),[R,T.chunk]),F=A.useMemo(()=>R(T.file),[R,T.file]),ee=A.useMemo(()=>R(T.comment),[R,T.comment]),Q=A.useCallback(J=>{if(!S||s!=="side-by-side")return;let K={...S,side:J};const se=a[S.fileIndex]?.chunks[S.chunkIndex]?.lines[S.lineIndex];if(se){if(J==="left"&&se.type==="add"&&S.lineIndex>0){if(a[S.fileIndex]?.chunks[S.chunkIndex]?.lines[S.lineIndex-1]?.type==="delete"){K={...K,lineIndex:S.lineIndex-1},y(K),x(yl(K,s));return}}else if(J==="right"&&se.type==="delete"&&a[S.fileIndex]?.chunks[S.chunkIndex]?.lines[S.lineIndex+1]?.type==="add"){K={...K,lineIndex:S.lineIndex+1},y(K),x(yl(K,s));return}}if(!Kt(K,a)){const U=a[S.fileIndex];if(!U)return;const re=U.chunks[S.chunkIndex];if(re){for(let E=S.lineIndex+1;E<re.lines.length;E++){const z={...K,lineIndex:E};if(Kt(z,a)){K=z;break}}if(!Kt(K,a))for(let E=S.lineIndex-1;E>=0;E--){const z={...K,lineIndex:E};if(Kt(z,a)){K=z;break}}}if(!Kt(K,a)){for(let E=S.chunkIndex+1;E<U.chunks.length;E++){const z=U.chunks[E];if(z){for(let k=0;k<z.lines.length;k++){const I={...K,chunkIndex:E,lineIndex:k};if(Kt(I,a)){K=I;break}}if(Kt(K,a))break}}if(!Kt(K,a))for(let E=S.chunkIndex-1;E>=0;E--){const z=U.chunks[E];if(z){for(let k=z.lines.length-1;k>=0;k--){const I={...K,chunkIndex:E,lineIndex:k};if(Kt(I,a)){K=I;break}}if(Kt(K,a))break}}}}y(K),x(yl(K,s))},[S,s,x,a]),ce=A.useCallback(()=>{const J=document.querySelector(Rc.SCROLL_CONTAINER);if(!J)return;const K=J.getBoundingClientRect(),se=K.top+K.height/2;let U=1/0,re=null;a.forEach((E,z)=>{E.chunks.forEach((k,I)=>{k.lines.forEach(($,j)=>{const B=s==="side-by-side"?["left","right"]:["right"];for(const X of B){const ie={fileIndex:z,chunkIndex:I,lineIndex:j,side:X};if(s==="side-by-side"&&!Kt(ie,a))continue;const oe=yl(ie,s),fe=document.getElementById(oe);if(fe){const ue=fe.getBoundingClientRect(),ge=ue.top+ue.height/2,de=Math.abs(ge-se);ue.top<K.bottom&&ue.bottom>K.top&&de<U&&(U=de,re=ie)}}})})}),re&&y(re)},[a,s,y]),q=A.useCallback(J=>{if(!J){y(null);return}const K=sb(J,a);y(K),x(yl(K,s))},[a,s,x]),P={scopes:"navigation",enableOnFormTags:!1,preventDefault:!0};return Ye("j, down",()=>D("next"),P,[D]),Ye("k, up",()=>D("prev"),P,[D]),Ye("n",()=>M("next"),P,[M]),Ye("p",()=>M("prev"),P,[M]),Ye("shift+n",()=>ee("next"),P,[ee]),Ye("shift+p",()=>ee("prev"),P,[ee]),Ye("]",()=>F("next"),{...P,useKey:!0},[F]),Ye("[",()=>F("prev"),{...P,useKey:!0},[F]),Ye("{",()=>{a.length>0&&(y({fileIndex:0,chunkIndex:0,lineIndex:0,side:s==="side-by-side"?"left":"right"}),x(yl({fileIndex:0,chunkIndex:0,lineIndex:0,side:s==="side-by-side"?"left":"right"},s)))},{...P,useKey:!0},[a,s,x]),Ye("}",()=>{if(a.length>0){const J=a.length-1,K=a[J];K&&K.chunks.length>0&&(y({fileIndex:J,chunkIndex:0,lineIndex:0,side:s==="side-by-side"?"left":"right"}),x(yl({fileIndex:J,chunkIndex:0,lineIndex:0,side:s==="side-by-side"?"left":"right"},s)))}},{...P,useKey:!0},[a,s,x]),Ye("h, left",()=>Q("left"),{...P,enabled:s==="side-by-side"},[Q,s]),Ye("l, right",()=>Q("right"),{...P,enabled:s==="side-by-side"},[Q,s]),Ye("v",()=>{if(S){const J=a[S.fileIndex];J&&c(J.path)}},P,[S,a,c]),Ye("shift+r",()=>{m&&m()},P,[m]),Ye("c",()=>{if(S&&f){const J=a[S.fileIndex]?.chunks[S.chunkIndex]?.lines[S.lineIndex];J&&J.type!=="delete"&&f()}},P,[S,a,f]),Ye("?",()=>_(!C),{...P,useKey:!0},[C]),Ye(".",J=>{J.ctrlKey||J.altKey||J.shiftKey||J.metaKey||(ce(),J.preventDefault())},{...P,useKey:!0,preventDefault:!1},[ce]),Ye("shift+c",()=>{d&&d()},{...P,scopes:["navigation","comments-list"]},[d]),Ye("shift+d",()=>{p&&p()},{...P,scopes:["navigation","comments-list"]},[p]),Ye("shift+l",()=>{b&&b()},P,[b]),{cursor:S,isHelpOpen:C,setIsHelpOpen:_,setCursorPosition:q}}function WS(a,r,s,o,c,f){const[d,p]=A.useState([]),[b,m]=A.useState(new Map);A.useEffect(()=>{if(!a||!r)return;const N=Br.getViewedFiles(a,r,s,o,f);(async()=>{if(c&&c.length>0){const D=[],M=new Set(N.map(F=>F.filePath));for(const F of c)if((F.isGenerated||F.status==="deleted")&&!M.has(F.path))try{const ee=Xm(F),Q=await Vm(ee),ce={filePath:F.path,viewedAt:new Date().toISOString(),diffContentHash:Q};D.push(ce)}catch(ee){console.error("Failed to generate hash for auto-collapsed file:",ee)}if(D.length>0){const F=[...N,...D];Br.saveViewedFiles(a,r,F,s,o,f),p(F);return}}p(N)})()},[a,r,s,o,f]);const S=A.useCallback(N=>{!a||!r||(Br.saveViewedFiles(a,r,N,s,o,f),p(N))},[a,r,s,o,f]),y=A.useMemo(()=>new Set(d.map(N=>N.filePath)),[d]),C=A.useCallback(N=>d.find(R=>R.filePath===N),[d]),_=A.useCallback(async N=>{const R=b.get(N.path);if(R)return R;const D=Xm(N),M=await Vm(D);return m(F=>new Map(F).set(N.path,M)),M},[b]),x=A.useCallback(async(N,R)=>{const D=C(N);if(!D)return!1;const M=await _(R);return D.diffContentHash!==M},[C,_]),v=A.useCallback(async(N,R)=>{if(C(N)){const M=d.filter(F=>F.filePath!==N);S(M)}else{const M=await _(R),F={filePath:N,viewedAt:new Date().toISOString(),diffContentHash:M},ee=[...d,F];S(ee)}},[d,C,_,S]),T=A.useCallback(()=>{S([]),m(new Map)},[S]);return{viewedFiles:y,toggleFileViewed:v,isFileContentChanged:x,getViewedFileRecord:C,clearViewedFiles:T}}const pc=new Map;let PS=0;function bc(a){return pc.has(a)||pc.set(a,`file-${++PS}`),pc.get(a)??""}function e3(a,r,s){for(let o=0;o<a.chunks.length;o++){const c=a.chunks[o];if(c)for(let f=0;f<c.lines.length;f++){const d=c.lines[f];if(!d)continue;if((d.newLineNumber||d.oldLineNumber)===s)return{fileIndex:r,chunkIndex:o,lineIndex:f,side:d.newLineNumber?"right":"left"}}}return null}function t3(a,r){const s=r.findIndex(f=>f.path===a.file);if(s===-1)return null;const o=r[s];if(!o)return null;const c=Array.isArray(a.line)?a.line[1]:a.line;return e3(o,s,c)}function n3(){const[a,r]=A.useState(null),[s,o]=A.useState("side-by-side"),c=A.useRef(!1),[f,d]=A.useState(!0),[p,b]=A.useState(!0),[m,S]=A.useState(null),[y,C]=A.useState(!1),[_,x]=A.useState(320),[v,T]=A.useState(!1),[N,R]=A.useState(!0),[D,M]=A.useState(!1),[F,ee]=A.useState(!1),[Q,ce]=A.useState(!1),[q,P]=A.useState(!1),[J,K]=A.useState(new Set),se=A.useRef(!1),[U,re]=A.useState(null),[E,z]=A.useState(""),[k,I]=A.useState(""),[$,j]=A.useState(""),[B,X]=A.useState(""),ie=A.useRef(!1),{settings:oe,updateSettings:fe}=LS(),{comments:ue,addComment:ge,removeComment:de,updateComment:ye,clearAllComments:Ne,generatePrompt:pe,generateAllCommentsPrompt:ke}=qS(a?.baseCommitish,a?.targetCommitish,a?.commit,void 0,a?.repositoryId),{viewedFiles:xe,toggleFileViewed:Ve,clearViewedFiles:Je}=WS(a?.baseCommitish,a?.targetCommitish,a?.commit,void 0,a?.files,a?.repositoryId);A.useEffect(()=>{se.current=!1},[a?.repositoryId,a?.commit]),A.useEffect(()=>{se.current||(K(new Set(xe)),se.current=!0)},[xe]);const Me=async ae=>{if(a){const ve=a.files.find(be=>be.path===ae);if(ve){const be=xe.has(ae);await Ve(ae,ve),K(we=>{const We=new Set(we);return be?We.delete(ae):We.add(ae),We}),be||setTimeout(()=>{const we=document.getElementById(bc(ae));we&&we.scrollIntoView({behavior:"smooth",block:"start"})},100)}}},Tt=ae=>{K(ve=>{const be=new Set(ve);return be.has(ae)?be.delete(ae):be.add(ae),be})},ft=ae=>{a&&K(ae?new Set(a.files.map(ve=>ve.path)):new Set)},at=A.useCallback(ae=>{c.current=!0,o(ae)},[]),[Rt,Ht]=A.useState(null),{shouldReload:Ft,reload:$e,watchState:Cl}=GS(async()=>{await Tl()}),{cursor:gn,isHelpOpen:Yr,setIsHelpOpen:Al,setCursorPosition:qa}=JS({files:a?.files||[],comments:ue.map(ae=>({id:ae.id,file:ae.filePath,line:typeof ae.position.line=="number"?ae.position.line:[ae.position.line.start,ae.position.line.end],body:ae.body,timestamp:ae.createdAt,codeContent:ae.codeSnapshot?.content})),viewMode:s,reviewedFiles:xe,onToggleReviewed:Me,onCreateComment:()=>{gn&&Ht({fileIndex:gn.fileIndex,chunkIndex:gn.chunkIndex,lineIndex:gn.lineIndex})},onCopyAllComments:()=>{ue.length>0&&Zr()},onDeleteAllComments:()=>{ue.length>0&&confirm("Delete all comments?")&&Ne()},onShowCommentsList:()=>{P(!0)},onRefresh:()=>{$e()}}),Vr=ae=>{ae.preventDefault(),M(!0);const ve=ae.clientX,be=_,we=un=>{const Zn=Math.max(200,Math.min(600,be+(un.clientX-ve)));x(Zn)},We=()=>{M(!1),document.removeEventListener("mousemove",we),document.removeEventListener("mouseup",We)};document.addEventListener("mousemove",we),document.addEventListener("mouseup",We)},Tl=A.useCallback(async(ae,ve)=>{try{const be=new URLSearchParams({ignoreWhitespace:String(f)});ae&&be.set("base",ae),ve&&be.set("target",ve);const we=await fetch(`/api/diff?${be}`);if(!we.ok)throw new Error("Failed to fetch diff data");const We=await we.json();if(r(We),We.baseCommitish&&j(We.baseCommitish),We.targetCommitish&&X(We.targetCommitish),!ie.current){const un=We.requestedBaseCommitish??We.baseCommitish,Zn=We.requestedTargetCommitish??We.targetCommitish;un&&z(un),Zn&&I(Zn)}We.mode&&!c.current&&o(We.mode)}catch(be){S(be instanceof Error?be.message:"Unknown error")}finally{b(!1)}},[f]);A.useEffect(()=>{Tl()},[Tl]),A.useEffect(()=>{fetch("/api/revisions").then(ae=>ae.ok?ae.json():null).then(ae=>{re(ae),ae?.resolvedBase&&j(ve=>ve||ae.resolvedBase||""),ae?.resolvedTarget&&X(ve=>ve||ae.resolvedTarget||"")}).catch(()=>re(null))},[]);const Xr=A.useCallback(async(ae,ve)=>{ae===E&&ve===k||(ie.current=!0,z(ae),I(ve),b(!0),S(null),await Tl(ae,ve))},[E,k,Tl]),Xn=ae=>U?U.commits.findIndex(ve=>ve.shortHash===ae||ve.hash===ae):-1,Nt=()=>{if(!U)return[];const ve=Xn(B||k);if(ve===-1)return k?[k]:[];const be=U.commits.slice(0,ve+1).map(we=>we.shortHash);return k&&!be.includes(k)&&be.push(k),be.includes("working")||be.push("working"),be},hn=()=>{if(!U)return[];const ve=Xn($||E);if(ve===-1)return E?[E]:[];const be=U.commits.slice(ve).map(we=>we.shortHash);return E&&!be.includes(E)&&be.push(E),be},vt=A.useRef(!1);A.useEffect(()=>{a?.clearComments&&!vt.current&&(vt.current=!0,Ne(),Je(),console.log("✅ All existing comments and viewed files cleared as requested via --clean flag"))},[a?.clearComments,Ne,Je]),A.useEffect(()=>{a&&(xe.size<a.files.length?ce(!1):xe.size===a.files.length&&!Q&&(ee(!0),ce(!0),setTimeout(()=>{ee(!1)},1e3)))},[xe.size,a,Q]),A.useEffect(()=>{if(ue.length>0){const ve=ue.map(we=>({id:we.id,file:we.filePath,line:typeof we.position.line=="number"?we.position.line:[we.position.line.start,we.position.line.end],body:we.body,timestamp:we.createdAt,side:we.position.side})),be=JSON.stringify({comments:ve});fetch("/api/comments",{method:"POST",headers:{"Content-Type":"application/json"},body:be}).catch(we=>{console.error("Failed to sync comments:",we)})}const ae=()=>{if(ue.length>0){const ve=ue.map(we=>({id:we.id,file:we.filePath,line:typeof we.position.line=="number"?we.position.line:[we.position.line.start,we.position.line.end],body:we.body,timestamp:we.createdAt,side:we.position.side})),be=JSON.stringify({comments:ve});navigator.sendBeacon("/api/comments",be)}};return window.addEventListener("beforeunload",ae),()=>{window.removeEventListener("beforeunload",ae)}},[ue]),A.useEffect(()=>{const ae=new EventSource("/api/heartbeat");return ae.onopen=()=>{console.log("Connected to server heartbeat")},ae.onerror=()=>{console.log("Server connection lost"),ae.close()},()=>{ae.close()}},[]);const Ho=(ae,ve,be,we,We,un)=>(ge({filePath:ae,body:be,side:un||"new",line:typeof ve=="number"?ve:{start:ve[0],end:ve[1]},chunkHeader:We||"",codeSnapshot:we?{content:we,language:void 0}:void 0}),Promise.resolve()),Zr=async()=>{try{const ae=ke();await navigator.clipboard.writeText(ae),C(!0),setTimeout(()=>C(!1),2e3)}catch(ae){console.error("Failed to copy all comments prompt:",ae)}},Fo=ae=>{if(!a)return;const ve=t3(ae,a.files);ve&&qa(ve)},Kl=ae=>{qa(null),ae.target.closest('[data-comment-button="true"]')||Jl(ae)},Jl=ae=>{document.querySelectorAll('form[data-empty="true"]').forEach(be=>{be.contains(ae.target)||be.querySelector('button[type="button"]')?.click()})};return p?g.jsx("div",{className:"flex items-center justify-center h-screen bg-github-bg-primary",children:g.jsx("div",{className:"text-github-text-secondary text-base",children:"Loading diff..."})}):m?g.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-github-bg-primary text-center gap-2",children:[g.jsx("h2",{className:"text-github-danger text-2xl mb-2",children:"Error"}),g.jsx("p",{className:"text-github-text-secondary text-base",children:m})]}):a?g.jsx(Wv,{children:g.jsxs("div",{className:"h-screen flex flex-col",onClickCapture:Kl,children:[g.jsxs("header",{className:"bg-github-bg-secondary border-b border-github-border flex items-center",children:[g.jsxs("div",{className:`px-4 py-3 flex items-center justify-between gap-4 ${D?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:N?`${_}px`:"auto",minWidth:N?"200px":"auto",maxWidth:N?"600px":"auto"},children:[g.jsx("h1",{children:g.jsx(wx,{style:{height:"18px",color:"var(--color-github-text-secondary)"}})}),g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx("button",{onClick:()=>R(!N),className:"p-2 text-github-text-secondary hover:text-github-text-primary hover:bg-github-bg-tertiary rounded transition-colors",title:N?"Collapse file tree":"Expand file tree","aria-expanded":N,"aria-controls":"file-tree-panel","aria-label":"Toggle file tree panel",children:N?g.jsx(wv,{size:18}):g.jsx(Cv,{size:18})}),g.jsx("button",{onClick:()=>T(!0),className:"p-2 text-github-text-secondary hover:text-github-text-primary hover:bg-github-bg-tertiary rounded transition-colors",title:"Appearance Settings",children:g.jsx(dp,{size:18})})]})]}),g.jsx("div",{className:`border-r border-github-border ${D?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:N?"4px":"0px",height:"calc(100% - 16px)",margin:"8px 0",transform:"translateX(-2px)"}}),g.jsxs("div",{className:"flex-1 px-4 py-3 flex items-center justify-between gap-4",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsxs("div",{className:"flex bg-github-bg-tertiary border border-github-border rounded-md p-1",children:[g.jsxs("button",{onClick:()=>at("side-by-side"),className:`px-3 py-1.5 text-xs font-medium rounded transition-all duration-200 flex items-center gap-1.5 cursor-pointer ${s==="side-by-side"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[g.jsx(iv,{size:14}),"Side by Side"]}),g.jsxs("button",{onClick:()=>at("inline"),className:`px-3 py-1.5 text-xs font-medium rounded transition-all duration-200 flex items-center gap-1.5 cursor-pointer ${s==="inline"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[g.jsx(Lv,{size:14}),"Inline"]})]}),g.jsx(gp,{checked:f,onChange:d,label:"Ignore Whitespace",title:f?"Show whitespace changes":"Ignore whitespace changes"}),g.jsx(Nx,{shouldReload:Ft,isReloading:Cl.isReloading,onReload:$e,changeType:Cl.lastChangeType})]}),g.jsxs("div",{className:"flex items-center gap-4 text-sm text-github-text-secondary",children:[ue.length>0&&g.jsx(Uv,{commentsCount:ue.length,isCopiedAll:y,onCopyAll:Zr,onDeleteAll:Ne,onViewAll:()=>P(!0)}),g.jsxs("div",{className:"flex flex-col gap-1 items-center",children:[g.jsxs("div",{className:"text-xs relative",children:[xe.size===a.files.length?"All diffs difit-ed!":`${xe.size} / ${a.files.length} files viewed`,g.jsx(zS,{isActive:F})]}),g.jsx("div",{className:"relative h-2 bg-github-bg-tertiary rounded-full overflow-hidden",style:{width:"90px",border:"1px solid var(--color-github-border)"},children:g.jsx("div",{className:"absolute top-0 right-0 h-full transition-all duration-300 ease-out",style:{width:`${(a.files.length-xe.size)/a.files.length*100}%`,backgroundColor:(()=>{const ae=(a.files.length-xe.size)/a.files.length*100;return ae>50?"var(--color-github-accent)":ae>20?"var(--color-github-warning)":"var(--color-github-danger)"})()}})})]}),U?g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Fm,{label:"Base",value:E,resolvedValue:$,onChange:ae=>{Xr(ae,k)},options:U,disabledValues:Nt()}),g.jsx("span",{className:"text-github-text-muted",children:"..."}),g.jsx(Fm,{label:"Target",value:k,resolvedValue:B,onChange:ae=>{Xr(E,ae)},options:U,disabledValues:hn()})]}):g.jsxs("span",{children:["Reviewing:"," ",g.jsx("code",{className:"bg-github-bg-tertiary px-1.5 py-0.5 rounded text-xs text-github-text-primary",children:a.commit.includes("...")?g.jsxs(g.Fragment,{children:[g.jsxs("span",{className:"text-github-text-secondary font-medium",children:[a.commit.split("...")[0],"..."]}),g.jsx("span",{className:"font-medium",children:a.commit.split("...")[1]})]}):a.commit})]})]})]})]}),g.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[g.jsx("div",{className:`relative overflow-hidden ${D?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:N?`${_}px`:"0px"},children:g.jsxs("aside",{id:"file-tree-panel",className:"bg-github-bg-secondary border-r border-github-border overflow-y-auto flex flex-col",style:{width:`${_}px`,minWidth:"200px",maxWidth:"600px",height:"100%"},children:[g.jsx("div",{className:"flex-1 overflow-y-auto",children:g.jsx(xx,{files:a.files,onScrollToFile:ae=>{const ve=document.getElementById(bc(ae));ve&&ve.scrollIntoView({behavior:"smooth",block:"start"})},comments:ue.map(ae=>({id:ae.id,file:ae.filePath,line:typeof ae.position.line=="number"?ae.position.line:[ae.position.line.start,ae.position.line.end],body:ae.body,timestamp:ae.createdAt,codeContent:ae.codeSnapshot?.content})),reviewedFiles:xe,onToggleReviewed:Me,selectedFileIndex:gn?.fileIndex??null})}),g.jsxs("div",{className:"p-4 border-t border-github-border flex justify-between items-center",children:[g.jsxs("button",{onClick:()=>Al(!0),className:"flex items-center gap-1.5 text-github-text-secondary hover:text-github-text-primary transition-colors",title:"Keyboard shortcuts (Shift+?)",children:[g.jsx(yv,{size:16}),g.jsx("span",{className:"text-sm",children:"Shortcuts"})]}),g.jsxs("a",{href:"https://github.com/yoshiko-pg/difit",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-github-text-secondary hover:text-github-text-primary transition-colors",title:"View on GitHub",children:[g.jsx("span",{className:"text-sm",children:"Star on GitHub"}),g.jsx(Sx,{style:{height:"18px",width:"18px"}})]})]})]})}),g.jsx("div",{className:`bg-github-border hover:bg-github-text-muted cursor-col-resize ${D?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:N?"4px":"0px"},onMouseDown:Vr,title:"Drag to resize file list"}),g.jsx("main",{className:"flex-1 overflow-y-auto",children:a.files.map((ae,ve)=>g.jsx("div",{id:bc(ae.path),className:"mb-6",children:g.jsx(px,{file:ae,comments:ue.filter(be=>be.filePath===ae.path).map(be=>({id:be.id,file:be.filePath,line:typeof be.position.line=="number"?be.position.line:[be.position.line.start,be.position.line.end],body:be.body,timestamp:be.createdAt,codeContent:be.codeSnapshot?.content,side:be.position.side})),diffMode:s,reviewedFiles:xe,onToggleReviewed:Me,collapsedFiles:J,onToggleCollapsed:Tt,onToggleAllCollapsed:ft,onAddComment:Ho,onGeneratePrompt:be=>pe(be.id),onRemoveComment:de,onUpdateComment:ye,syntaxTheme:oe.syntaxTheme,baseCommitish:a.baseCommitish,targetCommitish:a.targetCommitish,cursor:gn?.fileIndex===ve?gn:null,fileIndex:ve,onLineClick:(be,we,We,un)=>{qa({fileIndex:be,chunkIndex:we,lineIndex:We,side:un})},commentTrigger:Rt?.fileIndex===ve?Rt:null,onCommentTriggerHandled:()=>Ht(null)})},ae.path))})]}),g.jsx(MS,{isOpen:v,onClose:()=>T(!1),settings:oe,onSettingsChange:fe}),g.jsx(Ex,{isOpen:Yr,onClose:()=>Al(!1)}),g.jsx(Hv,{isOpen:q,onClose:()=>P(!1),onNavigate:Fo,comments:ue.map(ae=>({id:ae.id,file:ae.filePath,line:typeof ae.position.line=="number"?ae.position.line:[ae.position.line.start,ae.position.line.end],body:ae.body,timestamp:ae.createdAt,codeContent:ae.codeSnapshot?.content})),onRemoveComment:de,onGeneratePrompt:ae=>pe(ae.id),onUpdateComment:ye})]})}):g.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-github-bg-primary text-center gap-2",children:[g.jsx("h2",{className:"text-github-danger text-2xl mb-2",children:"No data"}),g.jsx("p",{className:"text-github-text-secondary text-base",children:"No diff data available"})]})}const ub=document.getElementById("root");if(!ub)throw new Error("Root element not found");k0.createRoot(ub).render(g.jsx(Vn.StrictMode,{children:g.jsx(V0,{initiallyActiveScopes:["navigation"],children:g.jsx(n3,{})})}));export{Im as g};
|