difit 3.0.9 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/index-ChXcozx1.js +30 -0
- package/dist/client/assets/index-DPDkpyZI.css +1 -0
- package/dist/client/assets/{prism-csharp-5JlCuQ63.js → prism-csharp-Z74gxFlv.js} +1 -1
- package/dist/client/assets/{prism-hcl-DkgRGLsh.js → prism-hcl-BOBpZ5TL.js} +1 -1
- package/dist/client/assets/{prism-java-DOYF29Lx.js → prism-java-B2aDMewO.js} +1 -1
- package/dist/client/assets/{prism-perl-DmKcBdiA.js → prism-perl-DdGQmB7G.js} +1 -1
- package/dist/client/assets/{prism-php-C9GZ2eMR.js → prism-php-asV46xk7.js} +1 -1
- package/dist/client/assets/{prism-ruby-C1WcUSv8.js → prism-ruby-bxuH3ANF.js} +1 -1
- package/dist/client/assets/{prism-solidity-Bbzna8IW.js → prism-solidity-4eoXCiMk.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/git-diff.d.ts +1 -0
- package/dist/server/git-diff.js +13 -0
- package/dist/server/server.js +34 -0
- package/dist/types/diff.d.ts +18 -0
- package/package.json +1 -1
- package/dist/client/assets/index-TH-zOarE.js +0 -29
- package/dist/client/assets/index-lSHhcKDM.css +0 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
function T0(a,r){for(var o=0;o<r.length;o++){const s=r[o];if(typeof s!="string"&&!Array.isArray(s)){for(const c in s)if(c!=="default"&&!(c in a)){const f=Object.getOwnPropertyDescriptor(s,c);f&&Object.defineProperty(a,c,f.get?f:{enumerable:!0,get:()=>s[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"]'))s(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"&&s(d)}).observe(document,{childList:!0,subtree:!0});function o(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 s(c){if(c.ep)return;c.ep=!0;const f=o(c);fetch(c.href,f)}})();function nm(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var ic={exports:{}},Hr={};var Yh;function R0(){if(Yh)return Hr;Yh=1;var a=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(s,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var m in c)m!=="key"&&(f[m]=c[m])}else f=c;return c=f.ref,{$$typeof:a,type:s,key:d,ref:c!==void 0?c:null,props:f}}return Hr.Fragment=r,Hr.jsx=o,Hr.jsxs=o,Hr}var Vh;function _0(){return Vh||(Vh=1,ic.exports=R0()),ic.exports}var g=_0(),oc={exports:{}},Ne={};var Ih;function j0(){if(Ih)return Ne;Ih=1;var a=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),A=Symbol.iterator;function j(_){return _===null||typeof _!="object"?null:(_=A&&_[A]||_["@@iterator"],typeof _=="function"?_:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,T={};function E(_,D,G){this.props=_,this.context=D,this.refs=T,this.updater=G||S}E.prototype.isReactComponent={},E.prototype.setState=function(_,D){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,D,"setState")},E.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function R(){}R.prototype=E.prototype;function L(_,D,G){this.props=_,this.context=D,this.refs=T,this.updater=G||S}var z=L.prototype=new R;z.constructor=L,v(z,E.prototype),z.isPureReactComponent=!0;var Q=Array.isArray;function H(){}var F={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function Y(_,D,G){var le=G.ref;return{$$typeof:a,type:_,key:D,ref:le!==void 0?le:null,props:G}}function X(_,D){return Y(_.type,D,_.props)}function K(_){return typeof _=="object"&&_!==null&&_.$$typeof===a}function W(_){var D={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(G){return D[G]})}var ne=/\/+/g;function B(_,D){return typeof _=="object"&&_!==null&&_.key!=null?W(""+_.key):D.toString(36)}function re(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(H,H):(_.status="pending",_.then(function(D){_.status==="pending"&&(_.status="fulfilled",_.value=D)},function(D){_.status==="pending"&&(_.status="rejected",_.reason=D)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function N(_,D,G,le,ue){var fe=typeof _;(fe==="undefined"||fe==="boolean")&&(_=null);var ce=!1;if(_===null)ce=!0;else switch(fe){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(_.$$typeof){case a:case r:ce=!0;break;case x:return ce=_._init,N(ce(_._payload),D,G,le,ue)}}if(ce)return ue=ue(_),ce=le===""?"."+B(_,0):le,Q(ue)?(G="",ce!=null&&(G=ce.replace(ne,"$&/")+"/"),N(ue,D,G,"",function(be){return be})):ue!=null&&(K(ue)&&(ue=X(ue,G+(ue.key==null||_&&_.key===ue.key?"":(""+ue.key).replace(ne,"$&/")+"/")+ce)),D.push(ue)),1;ce=0;var ge=le===""?".":le+":";if(Q(_))for(var de=0;de<_.length;de++)le=_[de],fe=ge+B(le,de),ce+=N(le,D,G,fe,ue);else if(de=j(_),typeof de=="function")for(_=de.call(_),de=0;!(le=_.next()).done;)le=le.value,fe=ge+B(le,de++),ce+=N(le,D,G,fe,ue);else if(fe==="object"){if(typeof _.then=="function")return N(re(_),D,G,le,ue);throw D=String(_),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return ce}function k(_,D,G){if(_==null)return _;var le=[],ue=0;return N(_,le,"","",function(fe){return D.call(G,fe,ue++)}),le}function O(_){if(_._status===-1){var D=_._result;D=D(),D.then(function(G){(_._status===0||_._status===-1)&&(_._status=1,_._result=G)},function(G){(_._status===0||_._status===-1)&&(_._status=2,_._result=G)}),_._status===-1&&(_._status=0,_._result=D)}if(_._status===1)return _._result.default;throw _._result}var I=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},P={map:k,forEach:function(_,D,G){k(_,function(){D.apply(this,arguments)},G)},count:function(_){var D=0;return k(_,function(){D++}),D},toArray:function(_){return k(_,function(D){return D})||[]},only:function(_){if(!K(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return Ne.Activity=y,Ne.Children=P,Ne.Component=E,Ne.Fragment=o,Ne.Profiler=c,Ne.PureComponent=L,Ne.StrictMode=s,Ne.Suspense=b,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(_){return F.H.useMemoCache(_)}},Ne.cache=function(_){return function(){return _.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(_,D,G){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var le=v({},_.props),ue=_.key;if(D!=null)for(fe in D.key!==void 0&&(ue=""+D.key),D)!V.call(D,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&D.ref===void 0||(le[fe]=D[fe]);var fe=arguments.length-2;if(fe===1)le.children=G;else if(1<fe){for(var ce=Array(fe),ge=0;ge<fe;ge++)ce[ge]=arguments[ge+2];le.children=ce}return Y(_.type,ue,le)},Ne.createContext=function(_){return _={$$typeof:d,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:f,_context:_},_},Ne.createElement=function(_,D,G){var le,ue={},fe=null;if(D!=null)for(le in D.key!==void 0&&(fe=""+D.key),D)V.call(D,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(ue[le]=D[le]);var ce=arguments.length-2;if(ce===1)ue.children=G;else if(1<ce){for(var ge=Array(ce),de=0;de<ce;de++)ge[de]=arguments[de+2];ue.children=ge}if(_&&_.defaultProps)for(le in ce=_.defaultProps,ce)ue[le]===void 0&&(ue[le]=ce[le]);return Y(_,fe,ue)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(_){return{$$typeof:m,render:_}},Ne.isValidElement=K,Ne.lazy=function(_){return{$$typeof:x,_payload:{_status:-1,_result:_},_init:O}},Ne.memo=function(_,D){return{$$typeof:p,type:_,compare:D===void 0?null:D}},Ne.startTransition=function(_){var D=F.T,G={};F.T=G;try{var le=_(),ue=F.S;ue!==null&&ue(G,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(H,I)}catch(fe){I(fe)}finally{D!==null&&G.types!==null&&(D.types=G.types),F.T=D}},Ne.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},Ne.use=function(_){return F.H.use(_)},Ne.useActionState=function(_,D,G){return F.H.useActionState(_,D,G)},Ne.useCallback=function(_,D){return F.H.useCallback(_,D)},Ne.useContext=function(_){return F.H.useContext(_)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(_,D){return F.H.useDeferredValue(_,D)},Ne.useEffect=function(_,D){return F.H.useEffect(_,D)},Ne.useEffectEvent=function(_){return F.H.useEffectEvent(_)},Ne.useId=function(){return F.H.useId()},Ne.useImperativeHandle=function(_,D,G){return F.H.useImperativeHandle(_,D,G)},Ne.useInsertionEffect=function(_,D){return F.H.useInsertionEffect(_,D)},Ne.useLayoutEffect=function(_,D){return F.H.useLayoutEffect(_,D)},Ne.useMemo=function(_,D){return F.H.useMemo(_,D)},Ne.useOptimistic=function(_,D){return F.H.useOptimistic(_,D)},Ne.useReducer=function(_,D,G){return F.H.useReducer(_,D,G)},Ne.useRef=function(_){return F.H.useRef(_)},Ne.useState=function(_){return F.H.useState(_)},Ne.useSyncExternalStore=function(_,D,G){return F.H.useSyncExternalStore(_,D,G)},Ne.useTransition=function(){return F.H.useTransition()},Ne.version="19.2.3",Ne}var Xh;function Hc(){return Xh||(Xh=1,oc.exports=j0()),oc.exports}var C=Hc();const bn=nm(C),lm=T0({__proto__:null,default:bn},[C]);var sc={exports:{}},Fr={},uc={exports:{}},cc={};var Zh;function k0(){return Zh||(Zh=1,(function(a){function r(N,k){var O=N.length;N.push(k);e:for(;0<O;){var I=O-1>>>1,P=N[I];if(0<c(P,k))N[I]=k,N[O]=P,O=I;else break e}}function o(N){return N.length===0?null:N[0]}function s(N){if(N.length===0)return null;var k=N[0],O=N.pop();if(O!==k){N[0]=O;e:for(var I=0,P=N.length,_=P>>>1;I<_;){var D=2*(I+1)-1,G=N[D],le=D+1,ue=N[le];if(0>c(G,O))le<P&&0>c(ue,G)?(N[I]=ue,N[le]=O,I=le):(N[I]=G,N[D]=O,I=D);else if(le<P&&0>c(ue,O))N[I]=ue,N[le]=O,I=le;else break e}}return k}function c(N,k){var O=N.sortIndex-k.sortIndex;return O!==0?O:N.id-k.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,m=d.now();a.unstable_now=function(){return d.now()-m}}var b=[],p=[],x=1,y=null,A=3,j=!1,S=!1,v=!1,T=!1,E=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function z(N){for(var k=o(p);k!==null;){if(k.callback===null)s(p);else if(k.startTime<=N)s(p),k.sortIndex=k.expirationTime,r(b,k);else break;k=o(p)}}function Q(N){if(v=!1,z(N),!S)if(o(b)!==null)S=!0,H||(H=!0,W());else{var k=o(p);k!==null&&re(Q,k.startTime-N)}}var H=!1,F=-1,V=5,Y=-1;function X(){return T?!0:!(a.unstable_now()-Y<V)}function K(){if(T=!1,H){var N=a.unstable_now();Y=N;var k=!0;try{e:{S=!1,v&&(v=!1,R(F),F=-1),j=!0;var O=A;try{t:{for(z(N),y=o(b);y!==null&&!(y.expirationTime>N&&X());){var I=y.callback;if(typeof I=="function"){y.callback=null,A=y.priorityLevel;var P=I(y.expirationTime<=N);if(N=a.unstable_now(),typeof P=="function"){y.callback=P,z(N),k=!0;break t}y===o(b)&&s(b),z(N)}else s(b);y=o(b)}if(y!==null)k=!0;else{var _=o(p);_!==null&&re(Q,_.startTime-N),k=!1}}break e}finally{y=null,A=O,j=!1}k=void 0}}finally{k?W():H=!1}}}var W;if(typeof L=="function")W=function(){L(K)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,B=ne.port2;ne.port1.onmessage=K,W=function(){B.postMessage(null)}}else W=function(){E(K,0)};function re(N,k){F=E(function(){N(a.unstable_now())},k)}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(N){N.callback=null},a.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<N?Math.floor(1e3/N):5},a.unstable_getCurrentPriorityLevel=function(){return A},a.unstable_next=function(N){switch(A){case 1:case 2:case 3:var k=3;break;default:k=A}var O=A;A=k;try{return N()}finally{A=O}},a.unstable_requestPaint=function(){T=!0},a.unstable_runWithPriority=function(N,k){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var O=A;A=N;try{return k()}finally{A=O}},a.unstable_scheduleCallback=function(N,k,O){var I=a.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?I+O:I):O=I,N){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=O+P,N={id:x++,callback:k,priorityLevel:N,startTime:O,expirationTime:P,sortIndex:-1},O>I?(N.sortIndex=O,r(p,N),o(b)===null&&N===o(p)&&(v?(R(F),F=-1):v=!0,re(Q,O-I))):(N.sortIndex=P,r(b,N),S||j||(S=!0,H||(H=!0,W()))),N},a.unstable_shouldYield=X,a.unstable_wrapCallback=function(N){var k=A;return function(){var O=A;A=k;try{return N.apply(this,arguments)}finally{A=O}}}})(cc)),cc}var $h;function O0(){return $h||($h=1,uc.exports=k0()),uc.exports}var fc={exports:{}},vt={};var Kh;function L0(){if(Kh)return vt;Kh=1;var a=Hc();function r(b){var p="https://react.dev/errors/"+b;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+b+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(r(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(b,p,x){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:y==null?null:""+y,children:b,containerInfo:p,implementation:x}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(b,p){if(b==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,vt.createPortal=function(b,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return f(b,p,null,x)},vt.flushSync=function(b){var p=d.T,x=s.p;try{if(d.T=null,s.p=2,b)return b()}finally{d.T=p,s.p=x,s.d.f()}},vt.preconnect=function(b,p){typeof b=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(b,p))},vt.prefetchDNS=function(b){typeof b=="string"&&s.d.D(b)},vt.preinit=function(b,p){if(typeof b=="string"&&p&&typeof p.as=="string"){var x=p.as,y=m(x,p.crossOrigin),A=typeof p.integrity=="string"?p.integrity:void 0,j=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?s.d.S(b,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:A,fetchPriority:j}):x==="script"&&s.d.X(b,{crossOrigin:y,integrity:A,fetchPriority:j,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},vt.preinitModule=function(b,p){if(typeof b=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=m(p.as,p.crossOrigin);s.d.M(b,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(b)},vt.preload=function(b,p){if(typeof b=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,y=m(x,p.crossOrigin);s.d.L(b,x,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},vt.preloadModule=function(b,p){if(typeof b=="string")if(p){var x=m(p.as,p.crossOrigin);s.d.m(b,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(b)},vt.requestFormReset=function(b){s.d.r(b)},vt.unstable_batchedUpdates=function(b,p){return b(p)},vt.useFormState=function(b,p,x){return d.H.useFormState(b,p,x)},vt.useFormStatus=function(){return d.H.useHostTransitionStatus()},vt.version="19.2.3",vt}var Qh;function am(){if(Qh)return fc.exports;Qh=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(),fc.exports=L0(),fc.exports}var Jh;function M0(){if(Jh)return Fr;Jh=1;var a=O0(),r=Hc(),o=am();function s(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 m(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(s(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(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(s(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(s(189))}}if(n.alternate!==l)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,A=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),L=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),X=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=K&&e[K]||e["@@iterator"],typeof e=="function"?e:null)}var ne=Symbol.for("react.client.reference");function B(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case v:return"Fragment";case E:return"Profiler";case T:return"StrictMode";case Q:return"Suspense";case H:return"SuspenseList";case Y:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case S:return"Portal";case L:return e.displayName||"Context";case R:return(e._context.displayName||"Context")+".Consumer";case z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:B(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return B(e(t))}catch{}}return null}var re=Array.isArray,N=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O={pending:!1,data:null,method:null,action:null},I=[],P=-1;function _(e){return{current:e}}function D(e){0>P||(e.current=I[P],I[P]=null,P--)}function G(e,t){P++,I[P]=e.current,e.current=t}var le=_(null),ue=_(null),fe=_(null),ce=_(null);function ge(e,t){switch(G(fe,t),G(ue,e),G(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?dh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=dh(t),e=gh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(le),G(le,e)}function de(){D(le),D(ue),D(fe)}function be(e){e.memoizedState!==null&&G(ce,e);var t=le.current,n=gh(t,e.type);t!==n&&(G(ue,e),G(le,n))}function Ce(e){ue.current===e&&(D(le),D(ue)),ce.current===e&&(D(ce),Dr._currentValue=O)}var pe,ke;function Se(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 ze=!1;function Re(e,t){if(!e||ze)return"";ze=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(ee){var J=ee}Reflect.construct(e,[],se)}else{try{se.call()}catch(ee){J=ee}e.call(se.prototype)}}else{try{throw Error()}catch(ee){J=ee}(se=e())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(ee){if(ee&&J&&typeof ee.stack=="string")return[ee.stack,J.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 M=h.split(`
|
|
4
|
+
`),$=w.split(`
|
|
5
|
+
`);for(i=l=0;l<M.length&&!M[l].includes("DetermineComponentFrameRoot");)l++;for(;i<$.length&&!$[i].includes("DetermineComponentFrameRoot");)i++;if(l===M.length||i===$.length)for(l=M.length-1,i=$.length-1;1<=l&&0<=i&&M[l]!==$[i];)i--;for(;1<=l&&0<=i;l--,i--)if(M[l]!==$[i]){if(l!==1||i!==1)do if(l--,i--,0>i||M[l]!==$[i]){var ae=`
|
|
6
|
+
`+M[l].replace(" at new "," at ");return e.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",e.displayName)),ae}while(1<=l&&0<=i);break}}}finally{ze=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Se(n):""}function De(e,t){switch(e.tag){case 26:case 27:case 5:return Se(e.type);case 16:return Se("Lazy");case 13:return e.child!==t&&t!==null?Se("Suspense Fallback"):Se("Suspense");case 19:return Se("SuspenseList");case 0:case 15:return Re(e.type,!1);case 11:return Re(e.type.render,!1);case 1:return Re(e.type,!0);case 31:return Se("Activity");default:return""}}function Et(e){try{var t="",n=null;do t+=De(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
|
|
7
|
+
Error generating stack: `+l.message+`
|
|
8
|
+
`+l.stack}}var at=Object.prototype.hasOwnProperty,ct=a.unstable_scheduleCallback,zt=a.unstable_cancelCallback,Bt=a.unstable_shouldYield,Ut=a.unstable_requestPaint,Je=a.unstable_now,Ql=a.unstable_getCurrentPriorityLevel,Kr=a.unstable_ImmediatePriority,Jl=a.unstable_UserBlockingPriority,Vn=a.unstable_NormalPriority,Ko=a.unstable_LowPriority,Wl=a.unstable_IdlePriority,Xa=a.log,Za=a.unstable_setDisableYieldValue,Nl=null,yt=null;function Kt(e){if(typeof Xa=="function"&&Za(e),yt&&typeof yt.setStrictMode=="function")try{yt.setStrictMode(Nl,e)}catch{}}var Ct=Math.clz32?Math.clz32:vn,Qr=Math.log,Jr=Math.LN2;function vn(e){return e>>>=0,e===0?32:31-(Qr(e)/Jr|0)|0}var Pl=256,Al=262144,xn=4194304;function Sn(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 ea(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=Sn(l):(h&=w,h!==0?i=Sn(h):n||(n=w&~e,n!==0&&(i=Sn(n))))):(w=l&~u,w!==0?i=Sn(w):h!==0?i=Sn(h):n||(n=l&~e,n!==0&&(i=Sn(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 Tl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qo(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 In(){var e=xn;return xn<<=1,(xn&62914560)===0&&(xn=4194304),e}function ta(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Jo(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,M=e.expirationTimes,$=e.hiddenUpdates;for(n=h&~n;0<n;){var ae=31-Ct(n),se=1<<ae;w[ae]=0,M[ae]=-1;var J=$[ae];if(J!==null)for($[ae]=null,ae=0;ae<J.length;ae++){var ee=J[ae];ee!==null&&(ee.lane&=-536870913)}n&=~se}l!==0&&Wr(e,l,0),u!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=u&~(h&~t))}function Wr(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Ct(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function $a(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-Ct(n),i=1<<l;i&t|e[l]&t&&(e[l]|=t),n&=~i}}function Pr(e,t){var n=t&-t;return n=(n&42)!==0?1:na(n),(n&(e.suspendedLanes|t))!==0?0:n}function na(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 Ka(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ei(){var e=k.p;return e!==0?e:(e=window.event,e===void 0?32:zh(e.type))}function ti(e,t){var n=k.p;try{return k.p=e,t()}finally{k.p=n}}var te=Math.random().toString(36).slice(2),he="__reactFiber$"+te,ye="__reactProps$"+te,we="__reactContainer$"+te,We="__reactEvents$"+te,Zn="__reactListeners$"+te,la="__reactHandles$"+te,Wc="__reactResources$"+te,Qa="__reactMarker$"+te;function Wo(e){delete e[he],delete e[ye],delete e[We],delete e[Zn],delete e[la]}function aa(e){var t=e[he];if(t)return t;for(var n=e.parentNode;n;){if(t=n[we]||n[he]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xh(e);e!==null;){if(n=e[he])return n;e=xh(e)}return t}e=n,n=e.parentNode}return null}function ra(e){if(e=e[he]||e[we]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ja(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ia(e){var t=e[Wc];return t||(t=e[Wc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function dt(e){e[Qa]=!0}var Pc=new Set,ef={};function Rl(e,t){oa(e,t),oa(e+"Capture",t)}function oa(e,t){for(ef[e]=t,e=0;e<t.length;e++)Pc.add(t[e])}var yb=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]*$"),tf={},nf={};function vb(e){return at.call(nf,e)?!0:at.call(tf,e)?!1:yb.test(e)?nf[e]=!0:(tf[e]=!0,!1)}function ni(e,t,n){if(vb(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 li(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 wn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xb(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 Po(e){if(!e._valueTracker){var t=lf(e)?"checked":"value";e._valueTracker=xb(e,t,""+e[t])}}function af(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=lf(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function ai(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 Sb=/[\n"\\]/g;function Jt(e){return e.replace(Sb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function es(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=""+Qt(t)):e.value!==""+Qt(t)&&(e.value=""+Qt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?ts(e,h,Qt(t)):n!=null?ts(e,h,Qt(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=""+Qt(w):e.removeAttribute("name")}function rf(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)){Po(e);return}n=n!=null?""+Qt(n):"",t=t!=null?""+Qt(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),Po(e)}function ts(e,t,n){t==="number"&&ai(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function sa(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=""+Qt(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 of(e,t,n){if(t!=null&&(t=""+Qt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Qt(n):""}function sf(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(s(92));if(re(l)){if(1<l.length)throw Error(s(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Qt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),Po(e)}function ua(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wb=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 uf(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||wb.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function cf(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(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&&uf(e,i,l)}else for(var u in t)t.hasOwnProperty(u)&&uf(e,u,t[u])}function ns(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 Eb=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"]]),Cb=/^[\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 ri(e){return Cb.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function En(){}var ls=null;function as(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ca=null,fa=null;function ff(e){var t=ra(e);if(t&&(e=t.stateNode)){var n=e[ye]||null;e:switch(e=t.stateNode,t.type){case"input":if(es(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="'+Jt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var i=l[ye]||null;if(!i)throw Error(s(90));es(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&&af(l)}break e;case"textarea":of(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&sa(e,!!n.multiple,t,!1)}}}var rs=!1;function df(e,t,n){if(rs)return e(t,n);rs=!0;try{var l=e(t);return l}finally{if(rs=!1,(ca!==null||fa!==null)&&(Xi(),ca&&(t=ca,e=fa,fa=ca=null,ff(t),e)))for(t=0;t<e.length;t++)ff(e[t])}}function Wa(e,t){var n=e.stateNode;if(n===null)return null;var l=n[ye]||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(s(231,t,typeof n));return n}var Cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),is=!1;if(Cn)try{var Pa={};Object.defineProperty(Pa,"passive",{get:function(){is=!0}}),window.addEventListener("test",Pa,Pa),window.removeEventListener("test",Pa,Pa)}catch{is=!1}var $n=null,os=null,ii=null;function gf(){if(ii)return ii;var e,t=os,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 ii=i.slice(e,1<l?1-l:void 0)}function oi(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 si(){return!0}function hf(){return!1}function Tt(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)?si:hf,this.isPropagationStopped=hf,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=si)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=si)},persist:function(){},isPersistent:si}),t}var _l={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ui=Tt(_l),er=y({},_l,{view:0,detail:0}),Nb=Tt(er),ss,us,tr,ci=y({},er,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fs,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!==tr&&(tr&&e.type==="mousemove"?(ss=e.screenX-tr.screenX,us=e.screenY-tr.screenY):us=ss=0,tr=e),ss)},movementY:function(e){return"movementY"in e?e.movementY:us}}),pf=Tt(ci),Ab=y({},ci,{dataTransfer:0}),Tb=Tt(Ab),Rb=y({},er,{relatedTarget:0}),cs=Tt(Rb),_b=y({},_l,{animationName:0,elapsedTime:0,pseudoElement:0}),jb=Tt(_b),kb=y({},_l,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ob=Tt(kb),Lb=y({},_l,{data:0}),mf=Tt(Lb),Mb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Db={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"},zb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zb[e])?!!t[e]:!1}function fs(){return Bb}var Ub=y({},er,{key:function(e){if(e.key){var t=Mb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=oi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Db[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fs,charCode:function(e){return e.type==="keypress"?oi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?oi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Hb=Tt(Ub),Fb=y({},ci,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bf=Tt(Fb),qb=y({},er,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fs}),Gb=Tt(qb),Yb=y({},_l,{propertyName:0,elapsedTime:0,pseudoElement:0}),Vb=Tt(Yb),Ib=y({},ci,{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}),Xb=Tt(Ib),Zb=y({},_l,{newState:0,oldState:0}),$b=Tt(Zb),Kb=[9,13,27,32],ds=Cn&&"CompositionEvent"in window,nr=null;Cn&&"documentMode"in document&&(nr=document.documentMode);var Qb=Cn&&"TextEvent"in window&&!nr,yf=Cn&&(!ds||nr&&8<nr&&11>=nr),vf=" ",xf=!1;function Sf(e,t){switch(e){case"keyup":return Kb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var da=!1;function Jb(e,t){switch(e){case"compositionend":return wf(t);case"keypress":return t.which!==32?null:(xf=!0,vf);case"textInput":return e=t.data,e===vf&&xf?null:e;default:return null}}function Wb(e,t){if(da)return e==="compositionend"||!ds&&Sf(e,t)?(e=gf(),ii=os=$n=null,da=!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 yf&&t.locale!=="ko"?null:t.data;default:return null}}var Pb={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 Ef(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Pb[e.type]:t==="textarea"}function Cf(e,t,n,l){ca?fa?fa.push(l):fa=[l]:ca=l,t=Pi(t,"onChange"),0<t.length&&(n=new ui("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var lr=null,ar=null;function ey(e){ih(e,0)}function fi(e){var t=Ja(e);if(af(t))return e}function Nf(e,t){if(e==="change")return t}var Af=!1;if(Cn){var gs;if(Cn){var hs="oninput"in document;if(!hs){var Tf=document.createElement("div");Tf.setAttribute("oninput","return;"),hs=typeof Tf.oninput=="function"}gs=hs}else gs=!1;Af=gs&&(!document.documentMode||9<document.documentMode)}function Rf(){lr&&(lr.detachEvent("onpropertychange",_f),ar=lr=null)}function _f(e){if(e.propertyName==="value"&&fi(ar)){var t=[];Cf(t,ar,e,as(e)),df(ey,t)}}function ty(e,t,n){e==="focusin"?(Rf(),lr=t,ar=n,lr.attachEvent("onpropertychange",_f)):e==="focusout"&&Rf()}function ny(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fi(ar)}function ly(e,t){if(e==="click")return fi(t)}function ay(e,t){if(e==="input"||e==="change")return fi(t)}function ry(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ht=typeof Object.is=="function"?Object.is:ry;function rr(e,t){if(Ht(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(!at.call(t,i)||!Ht(e[i],t[i]))return!1}return!0}function jf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kf(e,t){var n=jf(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=jf(n)}}function Of(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Of(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ai(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=ai(e.document)}return t}function ps(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 iy=Cn&&"documentMode"in document&&11>=document.documentMode,ga=null,ms=null,ir=null,bs=!1;function Mf(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bs||ga==null||ga!==ai(l)||(l=ga,"selectionStart"in l&&ps(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}),ir&&rr(ir,l)||(ir=l,l=Pi(ms,"onSelect"),0<l.length&&(t=new ui("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=ga)))}function jl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ha={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")},ys={},Df={};Cn&&(Df=document.createElement("div").style,"AnimationEvent"in window||(delete ha.animationend.animation,delete ha.animationiteration.animation,delete ha.animationstart.animation),"TransitionEvent"in window||delete ha.transitionend.transition);function kl(e){if(ys[e])return ys[e];if(!ha[e])return e;var t=ha[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Df)return ys[e]=t[n];return e}var zf=kl("animationend"),Bf=kl("animationiteration"),Uf=kl("animationstart"),oy=kl("transitionrun"),sy=kl("transitionstart"),uy=kl("transitioncancel"),Hf=kl("transitionend"),Ff=new Map,vs="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(" ");vs.push("scrollEnd");function sn(e,t){Ff.set(e,t),Rl(t,[e])}var di=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)},Wt=[],pa=0,xs=0;function gi(){for(var e=pa,t=xs=pa=0;t<e;){var n=Wt[t];Wt[t++]=null;var l=Wt[t];Wt[t++]=null;var i=Wt[t];Wt[t++]=null;var u=Wt[t];if(Wt[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&&qf(n,i,u)}}function hi(e,t,n,l){Wt[pa++]=e,Wt[pa++]=t,Wt[pa++]=n,Wt[pa++]=l,xs|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Ss(e,t,n,l){return hi(e,t,n,l),pi(e)}function Ol(e,t){return hi(e,null,null,t),pi(e)}function qf(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-Ct(n),e=u.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=n|536870912),u):null}function pi(e){if(50<Rr)throw Rr=0,ju=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ma={};function cy(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 Ft(e,t,n,l){return new cy(e,t,n,l)}function ws(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nn(e,t){var n=e.alternate;return n===null?(n=Ft(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 Gf(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 mi(e,t,n,l,i,u){var h=0;if(l=e,typeof e=="function")ws(e)&&(h=1);else if(typeof e=="string")h=p0(e,n,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Y:return e=Ft(31,n,t,i),e.elementType=Y,e.lanes=u,e;case v:return Ll(n.children,i,u,t);case T:h=8,i|=24;break;case E:return e=Ft(12,n,t,i|2),e.elementType=E,e.lanes=u,e;case Q:return e=Ft(13,n,t,i),e.elementType=Q,e.lanes=u,e;case H:return e=Ft(19,n,t,i),e.elementType=H,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L:h=10;break e;case R:h=9;break e;case z:h=11;break e;case F:h=14;break e;case V:h=16,l=null;break e}h=29,n=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Ft(h,n,t,i),t.elementType=e,t.type=l,t.lanes=u,t}function Ll(e,t,n,l){return e=Ft(7,e,l,t),e.lanes=n,e}function Es(e,t,n){return e=Ft(6,e,null,t),e.lanes=n,e}function Yf(e){var t=Ft(18,null,null,0);return t.stateNode=e,t}function Cs(e,t,n){return t=Ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Vf=new WeakMap;function Pt(e,t){if(typeof e=="object"&&e!==null){var n=Vf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Et(t)},Vf.set(e,t),t)}return{value:e,source:t,stack:Et(t)}}var ba=[],ya=0,bi=null,or=0,en=[],tn=0,Kn=null,fn=1,dn="";function An(e,t){ba[ya++]=or,ba[ya++]=bi,bi=e,or=t}function If(e,t,n){en[tn++]=fn,en[tn++]=dn,en[tn++]=Kn,Kn=e;var l=fn;e=dn;var i=32-Ct(l)-1;l&=~(1<<i),n+=1;var u=32-Ct(t)+i;if(30<u){var h=i-i%5;u=(l&(1<<h)-1).toString(32),l>>=h,i-=h,fn=1<<32-Ct(t)+i|n<<i|l,dn=u+e}else fn=1<<u|n<<i|l,dn=e}function Ns(e){e.return!==null&&(An(e,1),If(e,1,0))}function As(e){for(;e===bi;)bi=ba[--ya],ba[ya]=null,or=ba[--ya],ba[ya]=null;for(;e===Kn;)Kn=en[--tn],en[tn]=null,dn=en[--tn],en[tn]=null,fn=en[--tn],en[tn]=null}function Xf(e,t){en[tn++]=fn,en[tn++]=dn,en[tn++]=Kn,fn=t.id,dn=t.overflow,Kn=e}var ht=null,Ke=null,Me=!1,Qn=null,nn=!1,Ts=Error(s(519));function Jn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw sr(Pt(t,e)),Ts}function Zf(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[he]=e,t[ye]=l,n){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(n=0;n<jr.length;n++)je(jr[n],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),rf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),sf(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||ch(t.textContent,n)?(l.popover!=null&&(je("beforetoggle",t),je("toggle",t)),l.onScroll!=null&&je("scroll",t),l.onScrollEnd!=null&&je("scrollend",t),l.onClick!=null&&(t.onclick=En),t=!0):t=!1,t||Jn(e,!0)}function $f(e){for(ht=e.return;ht;)switch(ht.tag){case 5:case 31:case 13:nn=!1;return;case 27:case 3:nn=!0;return;default:ht=ht.return}}function va(e){if(e!==ht)return!1;if(!Me)return $f(e),Me=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Iu(e.type,e.memoizedProps)),n=!n),n&&Ke&&Jn(e),$f(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ke=vh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ke=vh(e)}else t===27?(t=Ke,fl(e.type)?(e=Qu,Qu=null,Ke=e):Ke=t):Ke=ht?an(e.stateNode.nextSibling):null;return!0}function Ml(){Ke=ht=null,Me=!1}function Rs(){var e=Qn;return e!==null&&(kt===null?kt=e:kt.push.apply(kt,e),Qn=null),e}function sr(e){Qn===null?Qn=[e]:Qn.push(e)}var _s=_(null),Dl=null,Tn=null;function Wn(e,t,n){G(_s,t._currentValue),t._currentValue=n}function Rn(e){e._currentValue=_s.current,D(_s)}function js(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 ks(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 M=0;M<t.length;M++)if(w.context===t[M]){u.lanes|=n,w=u.alternate,w!==null&&(w.lanes|=n),js(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(s(341));h.lanes|=n,u=h.alternate,u!==null&&(u.lanes|=n),js(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 xa(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(s(387));if(h=h.memoizedProps,h!==null){var w=i.type;Ht(i.pendingProps.value,h.value)||(e!==null?e.push(w):e=[w])}}else if(i===ce.current){if(h=i.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Dr):e=[Dr])}i=i.return}e!==null&&ks(t,e,n,l),t.flags|=262144}function yi(e){for(e=e.firstContext;e!==null;){if(!Ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function zl(e){Dl=e,Tn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return Kf(Dl,e)}function vi(e,t){return Dl===null&&zl(e),Kf(e,t)}function Kf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Tn===null){if(e===null)throw Error(s(308));Tn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Tn=Tn.next=t;return n}var fy=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()})}},dy=a.unstable_scheduleCallback,gy=a.unstable_NormalPriority,rt={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Os(){return{controller:new fy,data:new Map,refCount:0}}function ur(e){e.refCount--,e.refCount===0&&dy(gy,function(){e.controller.abort()})}var cr=null,Ls=0,Sa=0,wa=null;function hy(e,t){if(cr===null){var n=cr=[];Ls=0,Sa=zu(),wa={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Ls++,t.then(Qf,Qf),t}function Qf(){if(--Ls===0&&cr!==null){wa!==null&&(wa.status="fulfilled");var e=cr;cr=null,Sa=0,wa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function py(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 Jf=N.S;N.S=function(e,t){Mg=Je(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&hy(e,t),Jf!==null&&Jf(e,t)};var Bl=_(null);function Ms(){var e=Bl.current;return e!==null?e:Ze.pooledCache}function xi(e,t){t===null?G(Bl,Bl.current):G(Bl,t.pool)}function Wf(){var e=Ms();return e===null?null:{parent:rt._currentValue,pool:e}}var Ea=Error(s(460)),Ds=Error(s(474)),Si=Error(s(542)),wi={then:function(){}};function Pf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ed(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(En,En),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nd(e),e;default:if(typeof t.status=="string")t.then(En,En);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(s(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,nd(e),e}throw Hl=t,Ea}}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,Ea):n}}var Hl=null;function td(){if(Hl===null)throw Error(s(459));var e=Hl;return Hl=null,e}function nd(e){if(e===Ea||e===Si)throw Error(s(483))}var Ca=null,fr=0;function Ei(e){var t=fr;return fr+=1,Ca===null&&(Ca=[]),ed(Ca,e,t)}function dr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ci(e,t){throw t.$$typeof===A?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ld(e){function t(q,U){if(e){var Z=q.deletions;Z===null?(q.deletions=[U],q.flags|=16):Z.push(U)}}function n(q,U){if(!e)return null;for(;U!==null;)t(q,U),U=U.sibling;return null}function l(q){for(var U=new Map;q!==null;)q.key!==null?U.set(q.key,q):U.set(q.index,q),q=q.sibling;return U}function i(q,U){return q=Nn(q,U),q.index=0,q.sibling=null,q}function u(q,U,Z){return q.index=Z,e?(Z=q.alternate,Z!==null?(Z=Z.index,Z<U?(q.flags|=67108866,U):Z):(q.flags|=67108866,U)):(q.flags|=1048576,U)}function h(q){return e&&q.alternate===null&&(q.flags|=67108866),q}function w(q,U,Z,ie){return U===null||U.tag!==6?(U=Es(Z,q.mode,ie),U.return=q,U):(U=i(U,Z),U.return=q,U)}function M(q,U,Z,ie){var xe=Z.type;return xe===v?ae(q,U,Z.props.children,ie,Z.key):U!==null&&(U.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===V&&Ul(xe)===U.type)?(U=i(U,Z.props),dr(U,Z),U.return=q,U):(U=mi(Z.type,Z.key,Z.props,null,q.mode,ie),dr(U,Z),U.return=q,U)}function $(q,U,Z,ie){return U===null||U.tag!==4||U.stateNode.containerInfo!==Z.containerInfo||U.stateNode.implementation!==Z.implementation?(U=Cs(Z,q.mode,ie),U.return=q,U):(U=i(U,Z.children||[]),U.return=q,U)}function ae(q,U,Z,ie,xe){return U===null||U.tag!==7?(U=Ll(Z,q.mode,ie,xe),U.return=q,U):(U=i(U,Z),U.return=q,U)}function se(q,U,Z){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=Es(""+U,q.mode,Z),U.return=q,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case j:return Z=mi(U.type,U.key,U.props,null,q.mode,Z),dr(Z,U),Z.return=q,Z;case S:return U=Cs(U,q.mode,Z),U.return=q,U;case V:return U=Ul(U),se(q,U,Z)}if(re(U)||W(U))return U=Ll(U,q.mode,Z,null),U.return=q,U;if(typeof U.then=="function")return se(q,Ei(U),Z);if(U.$$typeof===L)return se(q,vi(q,U),Z);Ci(q,U)}return null}function J(q,U,Z,ie){var xe=U!==null?U.key:null;if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return xe!==null?null:w(q,U,""+Z,ie);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case j:return Z.key===xe?M(q,U,Z,ie):null;case S:return Z.key===xe?$(q,U,Z,ie):null;case V:return Z=Ul(Z),J(q,U,Z,ie)}if(re(Z)||W(Z))return xe!==null?null:ae(q,U,Z,ie,null);if(typeof Z.then=="function")return J(q,U,Ei(Z),ie);if(Z.$$typeof===L)return J(q,U,vi(q,Z),ie);Ci(q,Z)}return null}function ee(q,U,Z,ie,xe){if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return q=q.get(Z)||null,w(U,q,""+ie,xe);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case j:return q=q.get(ie.key===null?Z:ie.key)||null,M(U,q,ie,xe);case S:return q=q.get(ie.key===null?Z:ie.key)||null,$(U,q,ie,xe);case V:return ie=Ul(ie),ee(q,U,Z,ie,xe)}if(re(ie)||W(ie))return q=q.get(Z)||null,ae(U,q,ie,xe,null);if(typeof ie.then=="function")return ee(q,U,Z,Ei(ie),xe);if(ie.$$typeof===L)return ee(q,U,Z,vi(U,ie),xe);Ci(U,ie)}return null}function me(q,U,Z,ie){for(var xe=null,Be=null,ve=U,Te=U=0,Le=null;ve!==null&&Te<Z.length;Te++){ve.index>Te?(Le=ve,ve=null):Le=ve.sibling;var Ue=J(q,ve,Z[Te],ie);if(Ue===null){ve===null&&(ve=Le);break}e&&ve&&Ue.alternate===null&&t(q,ve),U=u(Ue,U,Te),Be===null?xe=Ue:Be.sibling=Ue,Be=Ue,ve=Le}if(Te===Z.length)return n(q,ve),Me&&An(q,Te),xe;if(ve===null){for(;Te<Z.length;Te++)ve=se(q,Z[Te],ie),ve!==null&&(U=u(ve,U,Te),Be===null?xe=ve:Be.sibling=ve,Be=ve);return Me&&An(q,Te),xe}for(ve=l(ve);Te<Z.length;Te++)Le=ee(ve,q,Te,Z[Te],ie),Le!==null&&(e&&Le.alternate!==null&&ve.delete(Le.key===null?Te:Le.key),U=u(Le,U,Te),Be===null?xe=Le:Be.sibling=Le,Be=Le);return e&&ve.forEach(function(ml){return t(q,ml)}),Me&&An(q,Te),xe}function Ee(q,U,Z,ie){if(Z==null)throw Error(s(151));for(var xe=null,Be=null,ve=U,Te=U=0,Le=null,Ue=Z.next();ve!==null&&!Ue.done;Te++,Ue=Z.next()){ve.index>Te?(Le=ve,ve=null):Le=ve.sibling;var ml=J(q,ve,Ue.value,ie);if(ml===null){ve===null&&(ve=Le);break}e&&ve&&ml.alternate===null&&t(q,ve),U=u(ml,U,Te),Be===null?xe=ml:Be.sibling=ml,Be=ml,ve=Le}if(Ue.done)return n(q,ve),Me&&An(q,Te),xe;if(ve===null){for(;!Ue.done;Te++,Ue=Z.next())Ue=se(q,Ue.value,ie),Ue!==null&&(U=u(Ue,U,Te),Be===null?xe=Ue:Be.sibling=Ue,Be=Ue);return Me&&An(q,Te),xe}for(ve=l(ve);!Ue.done;Te++,Ue=Z.next())Ue=ee(ve,q,Te,Ue.value,ie),Ue!==null&&(e&&Ue.alternate!==null&&ve.delete(Ue.key===null?Te:Ue.key),U=u(Ue,U,Te),Be===null?xe=Ue:Be.sibling=Ue,Be=Ue);return e&&ve.forEach(function(A0){return t(q,A0)}),Me&&An(q,Te),xe}function Ie(q,U,Z,ie){if(typeof Z=="object"&&Z!==null&&Z.type===v&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case j:e:{for(var xe=Z.key;U!==null;){if(U.key===xe){if(xe=Z.type,xe===v){if(U.tag===7){n(q,U.sibling),ie=i(U,Z.props.children),ie.return=q,q=ie;break e}}else if(U.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===V&&Ul(xe)===U.type){n(q,U.sibling),ie=i(U,Z.props),dr(ie,Z),ie.return=q,q=ie;break e}n(q,U);break}else t(q,U);U=U.sibling}Z.type===v?(ie=Ll(Z.props.children,q.mode,ie,Z.key),ie.return=q,q=ie):(ie=mi(Z.type,Z.key,Z.props,null,q.mode,ie),dr(ie,Z),ie.return=q,q=ie)}return h(q);case S:e:{for(xe=Z.key;U!==null;){if(U.key===xe)if(U.tag===4&&U.stateNode.containerInfo===Z.containerInfo&&U.stateNode.implementation===Z.implementation){n(q,U.sibling),ie=i(U,Z.children||[]),ie.return=q,q=ie;break e}else{n(q,U);break}else t(q,U);U=U.sibling}ie=Cs(Z,q.mode,ie),ie.return=q,q=ie}return h(q);case V:return Z=Ul(Z),Ie(q,U,Z,ie)}if(re(Z))return me(q,U,Z,ie);if(W(Z)){if(xe=W(Z),typeof xe!="function")throw Error(s(150));return Z=xe.call(Z),Ee(q,U,Z,ie)}if(typeof Z.then=="function")return Ie(q,U,Ei(Z),ie);if(Z.$$typeof===L)return Ie(q,U,vi(q,Z),ie);Ci(q,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,U!==null&&U.tag===6?(n(q,U.sibling),ie=i(U,Z),ie.return=q,q=ie):(n(q,U),ie=Es(Z,q.mode,ie),ie.return=q,q=ie),h(q)):n(q,U)}return function(q,U,Z,ie){try{fr=0;var xe=Ie(q,U,Z,ie);return Ca=null,xe}catch(ve){if(ve===Ea||ve===Si)throw ve;var Be=Ft(29,ve,null,q.mode);return Be.lanes=ie,Be.return=q,Be}}}var Fl=ld(!0),ad=ld(!1),Pn=!1;function zs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Bs(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,(He&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=pi(e),qf(e,null,n),t}return hi(e,l,t,n),pi(e)}function gr(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,$a(e,n)}}function Us(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 Hs=!1;function hr(){if(Hs){var e=wa;if(e!==null)throw e}}function pr(e,t,n,l){Hs=!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 M=w,$=M.next;M.next=null,h===null?u=$:h.next=$,h=M;var ae=e.alternate;ae!==null&&(ae=ae.updateQueue,w=ae.lastBaseUpdate,w!==h&&(w===null?ae.firstBaseUpdate=$:w.next=$,ae.lastBaseUpdate=M))}if(u!==null){var se=i.baseState;h=0,ae=$=M=null,w=u;do{var J=w.lane&-536870913,ee=J!==w.lane;if(ee?(Oe&J)===J:(l&J)===J){J!==0&&J===Sa&&(Hs=!0),ae!==null&&(ae=ae.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var me=e,Ee=w;J=t;var Ie=n;switch(Ee.tag){case 1:if(me=Ee.payload,typeof me=="function"){se=me.call(Ie,se,J);break e}se=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=Ee.payload,J=typeof me=="function"?me.call(Ie,se,J):me,J==null)break e;se=y({},se,J);break e;case 2:Pn=!0}}J=w.callback,J!==null&&(e.flags|=64,ee&&(e.flags|=8192),ee=i.callbacks,ee===null?i.callbacks=[J]:ee.push(J))}else ee={lane:J,tag:w.tag,payload:w.payload,callback:w.callback,next:null},ae===null?($=ae=ee,M=se):ae=ae.next=ee,h|=J;if(w=w.next,w===null){if(w=i.shared.pending,w===null)break;ee=w,w=ee.next,ee.next=null,i.lastBaseUpdate=ee,i.shared.pending=null}}while(!0);ae===null&&(M=se),i.baseState=M,i.firstBaseUpdate=$,i.lastBaseUpdate=ae,u===null&&(i.shared.lanes=0),il|=h,e.lanes=h,e.memoizedState=se}}function rd(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function id(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)rd(n[e],t)}var Na=_(null),Ni=_(0);function od(e,t){e=Bn,G(Ni,e),G(Na,t),Bn=e|t.baseLanes}function Fs(){G(Ni,Bn),G(Na,Na.current)}function qs(){Bn=Ni.current,D(Na),D(Ni)}var qt=_(null),ln=null;function nl(e){var t=e.alternate;G(nt,nt.current&1),G(qt,e),ln===null&&(t===null||Na.current!==null||t.memoizedState!==null)&&(ln=e)}function Gs(e){G(nt,nt.current),G(qt,e),ln===null&&(ln=e)}function sd(e){e.tag===22?(G(nt,nt.current),G(qt,e),ln===null&&(ln=e)):ll()}function ll(){G(nt,nt.current),G(qt,qt.current)}function Gt(e){D(qt),ln===e&&(ln=null),D(nt)}var nt=_(0);function Ai(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||$u(n)||Ku(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,Ye=null,it=null,Ti=!1,Aa=!1,ql=!1,Ri=0,mr=0,Ta=null,my=0;function et(){throw Error(s(321))}function Ys(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ht(e[n],t[n]))return!1;return!0}function Vs(e,t,n,l,i,u){return _n=u,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?Id:ru,ql=!1,u=n(l,i),ql=!1,Aa&&(u=cd(t,n,l,i)),ud(e),u}function ud(e){N.H=vr;var t=Ye!==null&&Ye.next!==null;if(_n=0,it=Ye=Ae=null,Ti=!1,mr=0,Ta=null,t)throw Error(s(300));e===null||ot||(e=e.dependencies,e!==null&&yi(e)&&(ot=!0))}function cd(e,t,n,l){Ae=e;var i=0;do{if(Aa&&(Ta=null),mr=0,Aa=!1,25<=i)throw Error(s(301));if(i+=1,it=Ye=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}N.H=Xd,u=t(n,l)}while(Aa);return u}function by(){var e=N.H,t=e.useState()[0];return t=typeof t.then=="function"?br(t):t,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(Ae.flags|=1024),t}function Is(){var e=Ri!==0;return Ri=0,e}function Xs(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Zs(e){if(Ti){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ti=!1}_n=0,it=Ye=Ae=null,Aa=!1,mr=Ri=0,Ta=null}function Nt(){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(Ye===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=it===null?Ae.memoizedState:it.next;if(t!==null)it=t,Ye=e;else{if(e===null)throw Ae.alternate===null?Error(s(467)):Error(s(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},it===null?Ae.memoizedState=it=e:it=it.next=e}return it}function _i(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function br(e){var t=mr;return mr+=1,Ta===null&&(Ta=[]),e=ed(Ta,e,t),t=Ae,(it===null?t.memoizedState:it.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?Id:ru),e}function ji(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return br(e);if(e.$$typeof===L)return pt(e)}throw Error(s(438,String(e)))}function $s(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=_i(),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]=X;return t.index++,n}function jn(e,t){return typeof t=="function"?t(e):t}function ki(e){var t=lt();return Ks(t,Ye,e)}function Ks(e,t,n){var l=e.queue;if(l===null)throw Error(s(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,M=null,$=t,ae=!1;do{var se=$.lane&-536870913;if(se!==$.lane?(Oe&se)===se:(_n&se)===se){var J=$.revertLane;if(J===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),se===Sa&&(ae=!0);else if((_n&J)===J){$=$.next,J===Sa&&(ae=!0);continue}else se={lane:0,revertLane:$.revertLane,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},M===null?(w=M=se,h=u):M=M.next=se,Ae.lanes|=J,il|=J;se=$.action,ql&&n(u,se),u=$.hasEagerState?$.eagerState:n(u,se)}else J={lane:se,revertLane:$.revertLane,gesture:$.gesture,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},M===null?(w=M=J,h=u):M=M.next=J,Ae.lanes|=se,il|=se;$=$.next}while($!==null&&$!==t);if(M===null?h=u:M.next=w,!Ht(u,e.memoizedState)&&(ot=!0,ae&&(n=wa,n!==null)))throw n;e.memoizedState=u,e.baseState=h,e.baseQueue=M,l.lastRenderedState=u}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Qs(e){var t=lt(),n=t.queue;if(n===null)throw Error(s(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);Ht(u,t.memoizedState)||(ot=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,l]}function fd(e,t,n){var l=Ae,i=lt(),u=Me;if(u){if(n===void 0)throw Error(s(407));n=n()}else n=t();var h=!Ht((Ye||i).memoizedState,n);if(h&&(i.memoizedState=n,ot=!0),i=i.queue,Ps(hd.bind(null,l,i,e),[e]),i.getSnapshot!==t||h||it!==null&&it.memoizedState.tag&1){if(l.flags|=2048,Ra(9,{destroy:void 0},gd.bind(null,l,i,n,t),null),Ze===null)throw Error(s(349));u||(_n&127)!==0||dd(l,t,n)}return n}function dd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ae.updateQueue,t===null?(t=_i(),Ae.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gd(e,t,n,l){t.value=n,t.getSnapshot=l,pd(t)&&md(e)}function hd(e,t,n){return n(function(){pd(t)&&md(e)})}function pd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ht(e,n)}catch{return!0}}function md(e){var t=Ol(e,2);t!==null&&Ot(t,e,2)}function Js(e){var t=Nt();if(typeof e=="function"){var n=e;if(e=n(),ql){Kt(!0);try{n()}finally{Kt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jn,lastRenderedState:e},t}function bd(e,t,n,l){return e.baseState=n,Ks(e,Ye,typeof l=="function"?l:jn)}function yy(e,t,n,l,i){if(Mi(e))throw Error(s(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)}};N.T!==null?n(!0):u.isTransition=!1,l(u),n=t.pending,n===null?(u.next=t.pending=u,yd(t,u)):(u.next=n.next,t.pending=n.next=u)}}function yd(e,t){var n=t.action,l=t.payload,i=e.state;if(t.isTransition){var u=N.T,h={};N.T=h;try{var w=n(i,l),M=N.S;M!==null&&M(h,w),vd(e,t,w)}catch($){Ws(e,t,$)}finally{u!==null&&h.types!==null&&(u.types=h.types),N.T=u}}else try{u=n(i,l),vd(e,t,u)}catch($){Ws(e,t,$)}}function vd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){xd(e,t,l)},function(l){return Ws(e,t,l)}):xd(e,t,n)}function xd(e,t,n){t.status="fulfilled",t.value=n,Sd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,yd(e,n)))}function Ws(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Sd(t),t=t.next;while(t!==l)}e.action=null}function Sd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function wd(e,t){return t}function Ed(e,t){if(Me){var n=Ze.formState;if(n!==null){e:{var l=Ae;if(Me){if(Ke){t:{for(var i=Ke,u=nn;i.nodeType!==8;){if(!u){i=null;break t}if(i=an(i.nextSibling),i===null){i=null;break t}}u=i.data,i=u==="F!"||u==="F"?i:null}if(i){Ke=an(i.nextSibling),l=i.data==="F!";break e}}Jn(l)}l=!1}l&&(t=n[0])}}return n=Nt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wd,lastRenderedState:t},n.queue=l,n=Gd.bind(null,Ae,l),l.dispatch=n,l=Js(!1),u=au.bind(null,Ae,!1,l.queue),l=Nt(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,n=yy.bind(null,Ae,i,u,n),i.dispatch=n,l.memoizedState=e,[t,n,!1]}function Cd(e){var t=lt();return Nd(t,Ye,e)}function Nd(e,t,n){if(t=Ks(e,t,wd)[0],e=ki(jn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=br(t)}catch(h){throw h===Ea?Si:h}else l=t;t=lt();var i=t.queue,u=i.dispatch;return n!==t.memoizedState&&(Ae.flags|=2048,Ra(9,{destroy:void 0},vy.bind(null,i,n),null)),[l,u,e]}function vy(e,t){e.action=t}function Ad(e){var t=lt(),n=Ye;if(n!==null)return Nd(t,n,e);lt(),t=t.memoizedState,n=lt();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Ra(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=Ae.updateQueue,t===null&&(t=_i(),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 Td(){return lt().memoizedState}function Oi(e,t,n,l){var i=Nt();Ae.flags|=e,i.memoizedState=Ra(1|t,{destroy:void 0},n,l===void 0?null:l)}function Li(e,t,n,l){var i=lt();l=l===void 0?null:l;var u=i.memoizedState.inst;Ye!==null&&l!==null&&Ys(l,Ye.memoizedState.deps)?i.memoizedState=Ra(t,u,n,l):(Ae.flags|=e,i.memoizedState=Ra(1|t,u,n,l))}function Rd(e,t){Oi(8390656,8,e,t)}function Ps(e,t){Li(2048,8,e,t)}function xy(e){Ae.flags|=4;var t=Ae.updateQueue;if(t===null)t=_i(),Ae.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function _d(e){var t=lt().memoizedState;return xy({ref:t,nextImpl:e}),function(){if((He&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function jd(e,t){return Li(4,2,e,t)}function kd(e,t){return Li(4,4,e,t)}function Od(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 Ld(e,t,n){n=n!=null?n.concat([e]):null,Li(4,4,Od.bind(null,t,e),n)}function eu(){}function Md(e,t){var n=lt();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Ys(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function Dd(e,t){var n=lt();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Ys(t,l[1]))return l[0];if(l=e(),ql){Kt(!0);try{e()}finally{Kt(!1)}}return n.memoizedState=[l,t],l}function tu(e,t,n){return n===void 0||(_n&1073741824)!==0&&(Oe&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=zg(),Ae.lanes|=e,il|=e,n)}function zd(e,t,n,l){return Ht(n,t)?n:Na.current!==null?(e=tu(e,n,l),Ht(e,t)||(ot=!0),e):(_n&42)===0||(_n&1073741824)!==0&&(Oe&261930)===0?(ot=!0,e.memoizedState=n):(e=zg(),Ae.lanes|=e,il|=e,t)}function Bd(e,t,n,l,i){var u=k.p;k.p=u!==0&&8>u?u:8;var h=N.T,w={};N.T=w,au(e,!1,t,n);try{var M=i(),$=N.S;if($!==null&&$(w,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var ae=py(M,l);yr(e,t,ae,It(e))}else yr(e,t,l,It(e))}catch(se){yr(e,t,{then:function(){},status:"rejected",reason:se},It())}finally{k.p=u,h!==null&&w.types!==null&&(h.types=w.types),N.T=h}}function Sy(){}function nu(e,t,n,l){if(e.tag!==5)throw Error(s(476));var i=Ud(e).queue;Bd(e,i,t,O,n===null?Sy:function(){return Hd(e),n(l)})}function Ud(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:O,baseState:O,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jn,lastRenderedState:O},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 Hd(e){var t=Ud(e);t.next===null&&(t=e.alternate.memoizedState),yr(e,t.next.queue,{},It())}function lu(){return pt(Dr)}function Fd(){return lt().memoizedState}function qd(){return lt().memoizedState}function wy(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&&(Ot(l,t,n),gr(l,t,n)),t={cache:Os()},e.payload=t;return}t=t.return}}function Ey(e,t,n){var l=It();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Mi(e)?Yd(t,n):(n=Ss(e,t,n,l),n!==null&&(Ot(n,e,l),Vd(n,t,l)))}function Gd(e,t,n){var l=It();yr(e,t,n,l)}function yr(e,t,n,l){var i={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Mi(e))Yd(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,Ht(w,h))return hi(e,t,i,0),Ze===null&&gi(),!1}catch{}if(n=Ss(e,t,i,l),n!==null)return Ot(n,e,l),Vd(n,t,l),!0}return!1}function au(e,t,n,l){if(l={lane:2,revertLane:zu(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mi(e)){if(t)throw Error(s(479))}else t=Ss(e,n,l,2),t!==null&&Ot(t,e,2)}function Mi(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function Yd(e,t){Aa=Ti=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vd(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,$a(e,n)}}var vr={readContext:pt,use:ji,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};vr.useEffectEvent=et;var Id={readContext:pt,use:ji,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:Rd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Oi(4194308,4,Od.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oi(4194308,4,e,t)},useInsertionEffect:function(e,t){Oi(4,2,e,t)},useMemo:function(e,t){var n=Nt();t=t===void 0?null:t;var l=e();if(ql){Kt(!0);try{e()}finally{Kt(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=Nt();if(n!==void 0){var i=n(t);if(ql){Kt(!0);try{n(t)}finally{Kt(!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=Ey.bind(null,Ae,e),[l.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:function(e){e=Js(e);var t=e.queue,n=Gd.bind(null,Ae,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:eu,useDeferredValue:function(e,t){var n=Nt();return tu(n,e,t)},useTransition:function(){var e=Js(!1);return e=Bd.bind(null,Ae,e.queue,!0,!1),Nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Ae,i=Nt();if(Me){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Ze===null)throw Error(s(349));(Oe&127)!==0||dd(l,t,n)}i.memoizedState=n;var u={value:n,getSnapshot:t};return i.queue=u,Rd(hd.bind(null,l,u,e),[e]),l.flags|=2048,Ra(9,{destroy:void 0},gd.bind(null,l,u,n,t),null),n},useId:function(){var e=Nt(),t=Ze.identifierPrefix;if(Me){var n=dn,l=fn;n=(l&~(1<<32-Ct(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Ri++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=my++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:lu,useFormState:Ed,useActionState:Ed,useOptimistic:function(e){var t=Nt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=au.bind(null,Ae,!0,n),n.dispatch=t,[e,t]},useMemoCache:$s,useCacheRefresh:function(){return Nt().memoizedState=wy.bind(null,Ae)},useEffectEvent:function(e){var t=Nt(),n={impl:e};return t.memoizedState=n,function(){if((He&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},ru={readContext:pt,use:ji,useCallback:Md,useContext:pt,useEffect:Ps,useImperativeHandle:Ld,useInsertionEffect:jd,useLayoutEffect:kd,useMemo:Dd,useReducer:ki,useRef:Td,useState:function(){return ki(jn)},useDebugValue:eu,useDeferredValue:function(e,t){var n=lt();return zd(n,Ye.memoizedState,e,t)},useTransition:function(){var e=ki(jn)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:br(e),t]},useSyncExternalStore:fd,useId:Fd,useHostTransitionStatus:lu,useFormState:Cd,useActionState:Cd,useOptimistic:function(e,t){var n=lt();return bd(n,Ye,e,t)},useMemoCache:$s,useCacheRefresh:qd};ru.useEffectEvent=_d;var Xd={readContext:pt,use:ji,useCallback:Md,useContext:pt,useEffect:Ps,useImperativeHandle:Ld,useInsertionEffect:jd,useLayoutEffect:kd,useMemo:Dd,useReducer:Qs,useRef:Td,useState:function(){return Qs(jn)},useDebugValue:eu,useDeferredValue:function(e,t){var n=lt();return Ye===null?tu(n,e,t):zd(n,Ye.memoizedState,e,t)},useTransition:function(){var e=Qs(jn)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:br(e),t]},useSyncExternalStore:fd,useId:Fd,useHostTransitionStatus:lu,useFormState:Ad,useActionState:Ad,useOptimistic:function(e,t){var n=lt();return Ye!==null?bd(n,Ye,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:$s,useCacheRefresh:qd};Xd.useEffectEvent=_d;function iu(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 ou={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&&(Ot(t,e,l),gr(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&&(Ot(t,e,l),gr(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&&(Ot(t,e,n),gr(t,e,n))}};function Zd(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?!rr(n,l)||!rr(i,u):!0}function $d(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&ou.enqueueReplaceState(t,t.state,null)}function 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 Kd(e){di(e)}function Qd(e){console.error(e)}function Jd(e){di(e)}function Di(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Wd(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 su(e,t,n){return n=el(n),n.tag=3,n.payload={element:null},n.callback=function(){Di(e,t)},n}function Pd(e){return e=el(e),e.tag=3,e}function eg(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(){Wd(t,n,l)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Wd(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 Cy(e,t,n,l,i){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&xa(t,n,i,!0),n=qt.current,n!==null){switch(n.tag){case 31:case 13:return ln===null?Zi():n.alternate===null&&tt===0&&(tt=3),n.flags&=-257,n.flags|=65536,n.lanes=i,l===wi?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Lu(e,l,i)),!1;case 22:return n.flags|=65536,l===wi?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)),Lu(e,l,i)),!1}throw Error(s(435,n.tag))}return Lu(e,l,i),Zi(),!1}if(Me)return t=qt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==Ts&&(e=Error(s(422),{cause:l}),sr(Pt(e,n)))):(l!==Ts&&(t=Error(s(423),{cause:l}),sr(Pt(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=Pt(l,n),i=su(e.stateNode,l,i),Us(e,i),tt!==4&&(tt=2)),!1;var u=Error(s(520),{cause:l});if(u=Pt(u,n),Tr===null?Tr=[u]:Tr.push(u),tt!==4&&(tt=2),t===null)return!0;l=Pt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=su(n.stateNode,l,e),Us(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=Pd(i),eg(i,e,n,l),Us(n,i),!1}n=n.return}while(n!==null);return!1}var uu=Error(s(461)),ot=!1;function mt(e,t,n,l){t.child=e===null?ad(t,null,n,l):Fl(t,e.child,n,l)}function tg(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 zl(t),l=Vs(e,t,n,h,u,i),w=Is(),e!==null&&!ot?(Xs(e,t,i),kn(e,t,i)):(Me&&w&&Ns(t),t.flags|=1,mt(e,t,l,i),t.child)}function ng(e,t,n,l,i){if(e===null){var u=n.type;return typeof u=="function"&&!ws(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,lg(e,t,u,l,i)):(e=mi(n.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!bu(e,i)){var h=u.memoizedProps;if(n=n.compare,n=n!==null?n:rr,n(h,l)&&e.ref===t.ref)return kn(e,t,i)}return t.flags|=1,e=Nn(u,l),e.ref=t.ref,e.return=t,t.child=e}function lg(e,t,n,l,i){if(e!==null){var u=e.memoizedProps;if(rr(u,l)&&e.ref===t.ref)if(ot=!1,t.pendingProps=l=u,bu(e,i))(e.flags&131072)!==0&&(ot=!0);else return t.lanes=e.lanes,kn(e,t,i)}return cu(e,t,n,l,i)}function ag(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 rg(e,t,u,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&xi(t,u!==null?u.cachePool:null),u!==null?od(t,u):Fs(),sd(t);else return l=t.lanes=536870912,rg(e,t,u!==null?u.baseLanes|n:n,n,l)}else u!==null?(xi(t,u.cachePool),od(t,u),ll(),t.memoizedState=null):(e!==null&&xi(t,null),Fs(),ll());return mt(e,t,i,n),t.child}function xr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function rg(e,t,n,l,i){var u=Ms();return u=u===null?null:{parent:rt._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&xi(t,null),Fs(),sd(t),e!==null&&xa(e,t,l,!0),t.childLanes=i,null}function zi(e,t){return t=Ui({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ig(e,t,n){return Fl(t,e.child,null,n),e=zi(t,t.pendingProps),e.flags|=2,Gt(t),t.memoizedState=null,e}function Ny(e,t,n){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Me){if(l.mode==="hidden")return e=zi(t,l),t.lanes=536870912,xr(null,e);if(Gs(t),(e=Ke)?(e=yh(e,nn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Kn!==null?{id:fn,overflow:dn}:null,retryLane:536870912,hydrationErrors:null},n=Yf(e),n.return=t,t.child=n,ht=t,Ke=null)):e=null,e===null)throw Jn(t);return t.lanes=536870912,null}return zi(t,l)}var u=e.memoizedState;if(u!==null){var h=u.dehydrated;if(Gs(t),i)if(t.flags&256)t.flags&=-257,t=ig(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(ot||xa(e,t,n,!1),i=(n&e.childLanes)!==0,ot||i){if(l=Ze,l!==null&&(h=Pr(l,n),h!==0&&h!==u.retryLane))throw u.retryLane=h,Ol(e,h),Ot(l,e,h),uu;Zi(),t=ig(e,t,n)}else e=u.treeContext,Ke=an(h.nextSibling),ht=t,Me=!0,Qn=null,nn=!1,e!==null&&Xf(t,e),t=zi(t,l),t.flags|=4096;return t}return e=Nn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Bi(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(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function cu(e,t,n,l,i){return zl(t),n=Vs(e,t,n,l,void 0,i),l=Is(),e!==null&&!ot?(Xs(e,t,i),kn(e,t,i)):(Me&&l&&Ns(t),t.flags|=1,mt(e,t,n,i),t.child)}function og(e,t,n,l,i,u){return zl(t),t.updateQueue=null,n=cd(t,l,n,i),ud(e),l=Is(),e!==null&&!ot?(Xs(e,t,u),kn(e,t,u)):(Me&&l&&Ns(t),t.flags|=1,mt(e,t,n,u),t.child)}function sg(e,t,n,l,i){if(zl(t),t.stateNode===null){var u=ma,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=ou,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},zs(t),h=n.contextType,u.context=typeof h=="object"&&h!==null?pt(h):ma,u.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(iu(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&&ou.enqueueReplaceState(u,u.state,null),pr(t,l,u,i),hr(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var w=t.memoizedProps,M=Gl(n,w);u.props=M;var $=u.context,ae=n.contextType;h=ma,typeof ae=="object"&&ae!==null&&(h=pt(ae));var se=n.getDerivedStateFromProps;ae=typeof se=="function"||typeof u.getSnapshotBeforeUpdate=="function",w=t.pendingProps!==w,ae||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(w||$!==h)&&$d(t,u,l,h),Pn=!1;var J=t.memoizedState;u.state=J,pr(t,l,u,i),hr(),$=t.memoizedState,w||J!==$||Pn?(typeof se=="function"&&(iu(t,n,se,l),$=t.memoizedState),(M=Pn||Zd(t,n,M,l,J,$,h))?(ae||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=$),u.props=l,u.state=$,u.context=h,l=M):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,Bs(e,t),h=t.memoizedProps,ae=Gl(n,h),u.props=ae,se=t.pendingProps,J=u.context,$=n.contextType,M=ma,typeof $=="object"&&$!==null&&(M=pt($)),w=n.getDerivedStateFromProps,($=typeof w=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(h!==se||J!==M)&&$d(t,u,l,M),Pn=!1,J=t.memoizedState,u.state=J,pr(t,l,u,i),hr();var ee=t.memoizedState;h!==se||J!==ee||Pn||e!==null&&e.dependencies!==null&&yi(e.dependencies)?(typeof w=="function"&&(iu(t,n,w,l),ee=t.memoizedState),(ae=Pn||Zd(t,n,ae,l,J,ee,M)||e!==null&&e.dependencies!==null&&yi(e.dependencies))?($||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,ee,M),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,ee,M)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&J===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&J===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=ee),u.props=l,u.state=ee,u.context=M,l=ae):(typeof u.componentDidUpdate!="function"||h===e.memoizedProps&&J===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&J===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,Bi(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)):mt(e,t,n,i),t.memoizedState=u.state,e=t.child):e=kn(e,t,i),e}function ug(e,t,n,l){return Ml(),t.flags|=256,mt(e,t,n,l),t.child}var fu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function du(e){return{baseLanes:e,cachePool:Wf()}}function gu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Vt),e}function cg(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(Me){if(i?nl(t):ll(),(e=Ke)?(e=yh(e,nn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Kn!==null?{id:fn,overflow:dn}:null,retryLane:536870912,hydrationErrors:null},n=Yf(e),n.return=t,t.child=n,ht=t,Ke=null)):e=null,e===null)throw Jn(t);return Ku(e)?t.lanes=32:t.lanes=536870912,null}var w=l.children;return l=l.fallback,i?(ll(),i=t.mode,w=Ui({mode:"hidden",children:w},i),l=Ll(l,i,n,null),w.return=t,l.return=t,w.sibling=l,t.child=w,l=t.child,l.memoizedState=du(n),l.childLanes=gu(e,h,n),t.memoizedState=fu,xr(null,l)):(nl(t),hu(t,w))}var M=e.memoizedState;if(M!==null&&(w=M.dehydrated,w!==null)){if(u)t.flags&256?(nl(t),t.flags&=-257,t=pu(e,t,n)):t.memoizedState!==null?(ll(),t.child=e.child,t.flags|=128,t=null):(ll(),w=l.fallback,i=t.mode,l=Ui({mode:"visible",children:l.children},i),w=Ll(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=du(n),l.childLanes=gu(e,h,n),t.memoizedState=fu,t=xr(null,l));else if(nl(t),Ku(w)){if(h=w.nextSibling&&w.nextSibling.dataset,h)var $=h.dgst;h=$,l=Error(s(419)),l.stack="",l.digest=h,sr({value:l,source:null,stack:null}),t=pu(e,t,n)}else if(ot||xa(e,t,n,!1),h=(n&e.childLanes)!==0,ot||h){if(h=Ze,h!==null&&(l=Pr(h,n),l!==0&&l!==M.retryLane))throw M.retryLane=l,Ol(e,l),Ot(h,e,l),uu;$u(w)||Zi(),t=pu(e,t,n)}else $u(w)?(t.flags|=192,t.child=e.child,t=null):(e=M.treeContext,Ke=an(w.nextSibling),ht=t,Me=!0,Qn=null,nn=!1,e!==null&&Xf(t,e),t=hu(t,l.children),t.flags|=4096);return t}return i?(ll(),w=l.fallback,i=t.mode,M=e.child,$=M.sibling,l=Nn(M,{mode:"hidden",children:l.children}),l.subtreeFlags=M.subtreeFlags&65011712,$!==null?w=Nn($,w):(w=Ll(w,i,n,null),w.flags|=2),w.return=t,l.return=t,l.sibling=w,t.child=l,xr(null,l),l=t.child,w=e.child.memoizedState,w===null?w=du(n):(i=w.cachePool,i!==null?(M=rt._currentValue,i=i.parent!==M?{parent:M,pool:M}:i):i=Wf(),w={baseLanes:w.baseLanes|n,cachePool:i}),l.memoizedState=w,l.childLanes=gu(e,h,n),t.memoizedState=fu,xr(e.child,l)):(nl(t),n=e.child,e=n.sibling,n=Nn(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 hu(e,t){return t=Ui({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ui(e,t){return e=Ft(22,e,null,t),e.lanes=0,e}function pu(e,t,n){return Fl(t,e.child,null,n),e=hu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fg(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),js(e.return,t,n)}function mu(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 dg(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,G(nt,h),mt(e,t,l,n),l=Me?or:0,!w&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fg(e,n,t);else if(e.tag===19)fg(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&&Ai(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),mu(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&&Ai(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}mu(t,!0,n,null,u,l);break;case"together":mu(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function kn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),il|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(xa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=Nn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Nn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function bu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&yi(e)))}function Ay(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:be(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,Gs(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?cg(e,t,n):(nl(t),e=kn(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||(xa(e,t,n,!1),l=(n&t.childLanes)!==0),i){if(l)return dg(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),G(nt,nt.current),l)break;return null;case 22:return t.lanes=0,ag(e,t,n,t.pendingProps);case 24:Wn(t,rt,e.memoizedState.cache)}return kn(e,t,n)}function gg(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ot=!0;else{if(!bu(e,n)&&(t.flags&128)===0)return ot=!1,Ay(e,t,n);ot=(e.flags&131072)!==0}else ot=!1,Me&&(t.flags&1048576)!==0&&If(t,or,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")ws(e)?(l=Gl(e,l),t.tag=1,t=sg(null,t,e,l,n)):(t.tag=0,t=cu(null,t,e,l,n));else{if(e!=null){var i=e.$$typeof;if(i===z){t.tag=11,t=tg(null,t,e,l,n);break e}else if(i===F){t.tag=14,t=ng(null,t,e,l,n);break e}}throw t=B(e)||e,Error(s(306,t,""))}}return t;case 0:return cu(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,i=Gl(l,t.pendingProps),sg(e,t,l,i,n);case 3:e:{if(ge(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var u=t.memoizedState;i=u.element,Bs(e,t),pr(t,l,null,n);var h=t.memoizedState;if(l=h.cache,Wn(t,rt,l),l!==u.cache&&ks(t,[rt],n,!0),hr(),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=ug(e,t,l,n);break e}else if(l!==i){i=Pt(Error(s(424)),t),sr(i),t=ug(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,Ke=an(e.firstChild),ht=t,Me=!0,Qn=null,nn=!0,n=ad(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ml(),l===i){t=kn(e,t,n);break e}mt(e,t,l,n)}t=t.child}return t;case 26:return Bi(e,t),e===null?(n=Ch(t.type,null,t.pendingProps,null))?t.memoizedState=n:Me||(n=t.type,e=t.pendingProps,l=eo(fe.current).createElement(n),l[he]=t,l[ye]=e,bt(l,n,e),dt(l),t.stateNode=l):t.memoizedState=Ch(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return be(t),e===null&&Me&&(l=t.stateNode=Sh(t.type,t.pendingProps,fe.current),ht=t,nn=!0,i=Ke,fl(t.type)?(Qu=i,Ke=an(l.firstChild)):Ke=i),mt(e,t,t.pendingProps.children,n),Bi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Me&&((i=l=Ke)&&(l=n0(l,t.type,t.pendingProps,nn),l!==null?(t.stateNode=l,ht=t,Ke=an(l.firstChild),nn=!1,i=!0):i=!1),i||Jn(t)),be(t),i=t.type,u=t.pendingProps,h=e!==null?e.memoizedProps:null,l=u.children,Iu(i,u)?l=null:h!==null&&Iu(i,h)&&(t.flags|=32),t.memoizedState!==null&&(i=Vs(e,t,by,null,null,n),Dr._currentValue=i),Bi(e,t),mt(e,t,l,n),t.child;case 6:return e===null&&Me&&((e=n=Ke)&&(n=l0(n,t.pendingProps,nn),n!==null?(t.stateNode=n,ht=t,Ke=null,e=!0):e=!1),e||Jn(t)),null;case 13:return cg(e,t,n);case 4:return ge(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Fl(t,null,l,n):mt(e,t,l,n),t.child;case 11:return tg(e,t,t.type,t.pendingProps,n);case 7:return mt(e,t,t.pendingProps,n),t.child;case 8:return mt(e,t,t.pendingProps.children,n),t.child;case 12:return mt(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Wn(t,t.type,l.value),mt(e,t,l.children,n),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,zl(t),i=pt(i),l=l(i),t.flags|=1,mt(e,t,l,n),t.child;case 14:return ng(e,t,t.type,t.pendingProps,n);case 15:return lg(e,t,t.type,t.pendingProps,n);case 19:return dg(e,t,n);case 31:return Ny(e,t,n);case 22:return ag(e,t,n,t.pendingProps);case 24:return zl(t),l=pt(rt),e===null?(i=Ms(),i===null&&(i=Ze,u=Os(),i.pooledCache=u,u.refCount++,u!==null&&(i.pooledCacheLanes|=n),i=u),t.memoizedState={parent:l,cache:i},zs(t),Wn(t,rt,i)):((e.lanes&n)!==0&&(Bs(e,t),pr(t,null,null,n),hr()),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&&ks(t,[rt],n,!0))),mt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function On(e){e.flags|=4}function yu(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(Fg())e.flags|=8192;else throw Hl=wi,Ds}else e.flags&=-16777217}function hg(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!_h(t))if(Fg())e.flags|=8192;else throw Hl=wi,Ds}function Hi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?In():536870912,e.lanes|=t,Oa|=t)}function Sr(e,t){if(!Me)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 Qe(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 Ty(e,t,n){var l=t.pendingProps;switch(As(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return Qe(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)&&(va(t)?On(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Rs())),Qe(t),null;case 26:var i=t.type,u=t.memoizedState;return e===null?(On(t),u!==null?(Qe(t),hg(t,u)):(Qe(t),yu(t,i,null,l,n))):u?u!==e.memoizedState?(On(t),Qe(t),hg(t,u)):(Qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&On(t),Qe(t),yu(t,i,e,l,n)),null;case 27:if(Ce(t),n=fe.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&On(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Qe(t),null}e=le.current,va(t)?Zf(t):(e=Sh(i,l,n),t.stateNode=e,On(t))}return Qe(t),null;case 5:if(Ce(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&On(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return Qe(t),null}if(u=le.current,va(t))Zf(t);else{var h=eo(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[he]=t,u[ye]=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(bt(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&&On(t)}}return Qe(t),yu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&On(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=fe.current,va(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,i=ht,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[he]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||ch(e.nodeValue,n)),e||Jn(t,!0)}else e=eo(e).createTextNode(l),e[he]=t,t.stateNode=e}return Qe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=va(t),n!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[he]=t}else Ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),e=!1}else n=Rs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Gt(t),t):(Gt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Qe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=va(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(s(317));i[he]=t}else Ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),i=!1}else i=Rs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Gt(t),t):(Gt(t),null)}return Gt(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),Hi(t,t.updateQueue),Qe(t),null);case 4:return de(),e===null&&Fu(t.stateNode.containerInfo),Qe(t),null;case 10:return Rn(t.type),Qe(t),null;case 19:if(D(nt),l=t.memoizedState,l===null)return Qe(t),null;if(i=(t.flags&128)!==0,u=l.rendering,u===null)if(i)Sr(l,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Ai(e),u!==null){for(t.flags|=128,Sr(l,!1),e=u.updateQueue,t.updateQueue=e,Hi(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Gf(n,e),n=n.sibling;return G(nt,nt.current&1|2),Me&&An(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Je()>Vi&&(t.flags|=128,i=!0,Sr(l,!1),t.lanes=4194304)}else{if(!i)if(e=Ai(u),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Hi(t,e),Sr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!Me)return Qe(t),null}else 2*Je()-l.renderingStartTime>Vi&&n!==536870912&&(t.flags|=128,i=!0,Sr(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=Je(),e.sibling=null,n=nt.current,G(nt,i?n&1|2:n&1),Me&&An(t,l.treeForkCount),e):(Qe(t),null);case 22:case 23:return Gt(t),qs(),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&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),n=t.updateQueue,n!==null&&Hi(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&&D(Bl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Rn(rt),Qe(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Ry(e,t){switch(As(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 Ce(t),null;case 31:if(t.memoizedState!==null){if(Gt(t),t.alternate===null)throw Error(s(340));Ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Gt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(nt),null;case 4:return de(),null;case 10:return Rn(t.type),null;case 22:case 23:return Gt(t),qs(),e!==null&&D(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 pg(e,t){switch(As(t),t.tag){case 3:Rn(rt),de();break;case 26:case 27:case 5:Ce(t);break;case 4:de();break;case 31:t.memoizedState!==null&&Gt(t);break;case 13:Gt(t);break;case 19:D(nt);break;case 10:Rn(t.type);break;case 22:case 23:Gt(t),qs(),e!==null&&D(Bl);break;case 24:Rn(rt)}}function wr(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){Ge(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 M=n,$=w;try{$()}catch(ae){Ge(i,M,ae)}}}l=l.next}while(l!==u)}}catch(ae){Ge(t,t.return,ae)}}function mg(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{id(t,n)}catch(l){Ge(e,e.return,l)}}}function bg(e,t,n){n.props=Gl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Ge(e,t,l)}}function Er(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){Ge(e,t,i)}}function gn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(i){Ge(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){Ge(e,t,i)}else n.current=null}function yg(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){Ge(e,e.return,i)}}function vu(e,t,n){try{var l=e.stateNode;Qy(l,e.type,n,t),l[ye]=t}catch(i){Ge(e,e.return,i)}}function vg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&fl(e.type)||e.tag===4}function xu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vg(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 Su(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=En));else if(l!==4&&(l===27&&fl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Su(e,t,n),e=e.sibling;e!==null;)Su(e,t,n),e=e.sibling}function Fi(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(Fi(e,t,n),e=e.sibling;e!==null;)Fi(e,t,n),e=e.sibling}function xg(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);bt(t,l,n),t[he]=e,t[ye]=n}catch(u){Ge(e,e.return,u)}}var Ln=!1,st=!1,wu=!1,Sg=typeof WeakSet=="function"?WeakSet:Set,gt=null;function _y(e,t){if(e=e.containerInfo,Yu=oo,e=Lf(e),ps(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,M=-1,$=0,ae=0,se=e,J=null;t:for(;;){for(var ee;se!==n||i!==0&&se.nodeType!==3||(w=h+i),se!==u||l!==0&&se.nodeType!==3||(M=h+l),se.nodeType===3&&(h+=se.nodeValue.length),(ee=se.firstChild)!==null;)J=se,se=ee;for(;;){if(se===e)break t;if(J===n&&++$===i&&(w=h),J===u&&++ae===l&&(M=h),(ee=se.nextSibling)!==null)break;se=J,J=se.parentNode}se=ee}n=w===-1||M===-1?null:{start:w,end:M}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vu={focusedElem:e,selectionRange:n},oo=!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 me=Gl(n.type,i);e=l.getSnapshotBeforeUpdate(me,u),l.__reactInternalSnapshotBeforeUpdate=e}catch(Ee){Ge(n,n.return,Ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Zu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Zu(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,gt=e;break}gt=t.return}}function wg(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Dn(e,n),l&4&&wr(5,n);break;case 1:if(Dn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(h){Ge(n,n.return,h)}else{var i=Gl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Ge(n,n.return,h)}}l&64&&mg(n),l&512&&Er(n,n.return);break;case 3:if(Dn(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{id(e,t)}catch(h){Ge(n,n.return,h)}}break;case 27:t===null&&l&4&&xg(n);case 26:case 5:Dn(e,n),t===null&&l&4&&yg(n),l&512&&Er(n,n.return);break;case 12:Dn(e,n);break;case 31:Dn(e,n),l&4&&Ng(e,n);break;case 13:Dn(e,n),l&4&&Ag(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Uy.bind(null,n),a0(e,n))));break;case 22:if(l=n.memoizedState!==null||Ln,!l){t=t!==null&&t.memoizedState!==null||st,i=Ln;var u=st;Ln=l,(st=t)&&!u?zn(e,n,(n.subtreeFlags&8772)!==0):Dn(e,n),Ln=i,st=u}break;case 30:break;default:Dn(e,n)}}function Eg(e){var t=e.alternate;t!==null&&(e.alternate=null,Eg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Wo(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,Rt=!1;function Mn(e,t,n){for(n=n.child;n!==null;)Cg(e,t,n),n=n.sibling}function Cg(e,t,n){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount(Nl,n)}catch{}switch(n.tag){case 26:st||gn(n,t),Mn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:st||gn(n,t);var l=Pe,i=Rt;fl(n.type)&&(Pe=n.stateNode,Rt=!1),Mn(e,t,n),Or(n.stateNode),Pe=l,Rt=i;break;case 5:st||gn(n,t);case 6:if(l=Pe,i=Rt,Pe=null,Mn(e,t,n),Pe=l,Rt=i,Pe!==null)if(Rt)try{(Pe.nodeType===9?Pe.body:Pe.nodeName==="HTML"?Pe.ownerDocument.body:Pe).removeChild(n.stateNode)}catch(u){Ge(n,t,u)}else try{Pe.removeChild(n.stateNode)}catch(u){Ge(n,t,u)}break;case 18:Pe!==null&&(Rt?(e=Pe,mh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Fa(e)):mh(Pe,n.stateNode));break;case 4:l=Pe,i=Rt,Pe=n.stateNode.containerInfo,Rt=!0,Mn(e,t,n),Pe=l,Rt=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||(gn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&bg(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 Ng(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Fa(e)}catch(n){Ge(t,t.return,n)}}}function Ag(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Fa(e)}catch(n){Ge(t,t.return,n)}}function jy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Sg),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Sg),t;default:throw Error(s(435,e.tag))}}function qi(e,t){var n=jy(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var i=Hy.bind(null,e,l);l.then(i,i)}})}function _t(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,Rt=!1;break e}break;case 5:Pe=w.stateNode,Rt=!1;break e;case 3:case 4:Pe=w.stateNode.containerInfo,Rt=!0;break e}w=w.return}if(Pe===null)throw Error(s(160));Cg(u,h,i),Pe=null,Rt=!1,u=i.alternate,u!==null&&(u.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Tg(t,e),t=t.sibling}var un=null;function Tg(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_t(t,e),jt(e),l&4&&(al(3,e,e.return),wr(3,e),al(5,e,e.return));break;case 1:_t(t,e),jt(e),l&512&&(st||n===null||gn(n,n.return)),l&64&&Ln&&(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=un;if(_t(t,e),jt(e),l&512&&(st||n===null||gn(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[Qa]||u[he]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=i.createElement(l),i.head.insertBefore(u,i.querySelector("head > title"))),bt(u,l,n),u[he]=e,dt(u),l=u;break e;case"link":var h=Th("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),bt(u,l,n),i.head.appendChild(u);break;case"meta":if(h=Th("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),bt(u,l,n),i.head.appendChild(u);break;default:throw Error(s(468,l))}u[he]=e,dt(u),l=u}e.stateNode=l}else Rh(i,e.type,e.stateNode);else e.stateNode=Ah(i,l,e.memoizedProps);else u!==l?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,l===null?Rh(i,e.type,e.stateNode):Ah(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&vu(e,e.memoizedProps,n.memoizedProps)}break;case 27:_t(t,e),jt(e),l&512&&(st||n===null||gn(n,n.return)),n!==null&&l&4&&vu(e,e.memoizedProps,n.memoizedProps);break;case 5:if(_t(t,e),jt(e),l&512&&(st||n===null||gn(n,n.return)),e.flags&32){i=e.stateNode;try{ua(i,"")}catch(me){Ge(e,e.return,me)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,vu(e,i,n!==null?n.memoizedProps:i)),l&1024&&(wu=!0);break;case 6:if(_t(t,e),jt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(me){Ge(e,e.return,me)}}break;case 3:if(lo=null,i=un,un=to(t.containerInfo),_t(t,e),un=i,jt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Fa(t.containerInfo)}catch(me){Ge(e,e.return,me)}wu&&(wu=!1,Rg(e));break;case 4:l=un,un=to(e.stateNode.containerInfo),_t(t,e),jt(e),un=l;break;case 12:_t(t,e),jt(e);break;case 31:_t(t,e),jt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,qi(e,l)));break;case 13:_t(t,e),jt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Yi=Je()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,qi(e,l)));break;case 22:i=e.memoizedState!==null;var M=n!==null&&n.memoizedState!==null,$=Ln,ae=st;if(Ln=$||i,st=ae||M,_t(t,e),st=ae,Ln=$,jt(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||M||Ln||st||Yl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){M=n=t;try{if(u=M.stateNode,i)h=u.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{w=M.stateNode;var se=M.memoizedProps.style,J=se!=null&&se.hasOwnProperty("display")?se.display:null;w.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(me){Ge(M,M.return,me)}}}else if(t.tag===6){if(n===null){M=t;try{M.stateNode.nodeValue=i?"":M.memoizedProps}catch(me){Ge(M,M.return,me)}}}else if(t.tag===18){if(n===null){M=t;try{var ee=M.stateNode;i?bh(ee,!0):bh(M.stateNode,!1)}catch(me){Ge(M,M.return,me)}}}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,qi(e,n))));break;case 19:_t(t,e),jt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,qi(e,l)));break;case 30:break;case 21:break;default:_t(t,e),jt(e)}}function jt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(vg(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var i=n.stateNode,u=xu(e);Fi(e,u,i);break;case 5:var h=n.stateNode;n.flags&32&&(ua(h,""),n.flags&=-33);var w=xu(e);Fi(e,w,h);break;case 3:case 4:var M=n.stateNode.containerInfo,$=xu(e);Su(e,$,M);break;default:throw Error(s(161))}}catch(ae){Ge(e,e.return,ae)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Rg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Rg(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Dn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)wg(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:gn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&bg(t,t.return,n),Yl(t);break;case 27:Or(t.stateNode);case 26:case 5:gn(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 zn(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:zn(i,u,n),wr(4,u);break;case 1:if(zn(i,u,n),l=u,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch($){Ge(l,l.return,$)}if(l=u,i=l.updateQueue,i!==null){var w=l.stateNode;try{var M=i.shared.hiddenCallbacks;if(M!==null)for(i.shared.hiddenCallbacks=null,i=0;i<M.length;i++)rd(M[i],w)}catch($){Ge(l,l.return,$)}}n&&h&64&&mg(u),Er(u,u.return);break;case 27:xg(u);case 26:case 5:zn(i,u,n),n&&l===null&&h&4&&yg(u),Er(u,u.return);break;case 12:zn(i,u,n);break;case 31:zn(i,u,n),n&&h&4&&Ng(i,u);break;case 13:zn(i,u,n),n&&h&4&&Ag(i,u);break;case 22:u.memoizedState===null&&zn(i,u,n),Er(u,u.return);break;case 30:break;default:zn(i,u,n)}t=t.sibling}}function Eu(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&&ur(n))}function Cu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ur(e))}function cn(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)_g(e,t,n,l),t=t.sibling}function _g(e,t,n,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:cn(e,t,n,l),i&2048&&wr(9,t);break;case 1:cn(e,t,n,l);break;case 3:cn(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&&ur(e)));break;case 12:if(i&2048){cn(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(M){Ge(t,t.return,M)}}else cn(e,t,n,l);break;case 31:cn(e,t,n,l);break;case 13:cn(e,t,n,l);break;case 23:break;case 22:u=t.stateNode,h=t.alternate,t.memoizedState!==null?u._visibility&2?cn(e,t,n,l):Cr(e,t):u._visibility&2?cn(e,t,n,l):(u._visibility|=2,_a(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Eu(h,t);break;case 24:cn(e,t,n,l),i&2048&&Cu(t.alternate,t);break;default:cn(e,t,n,l)}}function _a(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,M=l,$=h.flags;switch(h.tag){case 0:case 11:case 15:_a(u,h,w,M,i),wr(8,h);break;case 23:break;case 22:var ae=h.stateNode;h.memoizedState!==null?ae._visibility&2?_a(u,h,w,M,i):Cr(u,h):(ae._visibility|=2,_a(u,h,w,M,i)),i&&$&2048&&Eu(h.alternate,h);break;case 24:_a(u,h,w,M,i),i&&$&2048&&Cu(h.alternate,h);break;default:_a(u,h,w,M,i)}t=t.sibling}}function Cr(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:Cr(n,l),i&2048&&Eu(l.alternate,l);break;case 24:Cr(n,l),i&2048&&Cu(l.alternate,l);break;default:Cr(n,l)}t=t.sibling}}var Nr=8192;function ja(e,t,n){if(e.subtreeFlags&Nr)for(e=e.child;e!==null;)jg(e,t,n),e=e.sibling}function jg(e,t,n){switch(e.tag){case 26:ja(e,t,n),e.flags&Nr&&e.memoizedState!==null&&m0(n,un,e.memoizedState,e.memoizedProps);break;case 5:ja(e,t,n);break;case 3:case 4:var l=un;un=to(e.stateNode.containerInfo),ja(e,t,n),un=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Nr,Nr=16777216,ja(e,t,n),Nr=l):ja(e,t,n));break;default:ja(e,t,n)}}function kg(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 Ar(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,Lg(l,e)}kg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Og(e),e=e.sibling}function Og(e){switch(e.tag){case 0:case 11:case 15:Ar(e),e.flags&2048&&al(9,e,e.return);break;case 3:Ar(e);break;case 12:Ar(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Gi(e)):Ar(e);break;default:Ar(e)}}function Gi(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,Lg(l,e)}kg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:al(8,t,t.return),Gi(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Gi(t));break;default:Gi(t)}e=e.sibling}}function Lg(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:ur(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(Eg(l),l===n){gt=null;break e}if(i!==null){i.return=u,gt=i;break e}gt=u}}}var ky={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}},Oy=typeof WeakMap=="function"?WeakMap:Map,He=0,Ze=null,_e=null,Oe=0,qe=0,Yt=null,rl=!1,ka=!1,Nu=!1,Bn=0,tt=0,il=0,Vl=0,Au=0,Vt=0,Oa=0,Tr=null,kt=null,Tu=!1,Yi=0,Mg=0,Vi=1/0,Ii=null,ol=null,ft=0,sl=null,La=null,Un=0,Ru=0,_u=null,Dg=null,Rr=0,ju=null;function It(){return(He&2)!==0&&Oe!==0?Oe&-Oe:N.T!==null?zu():ei()}function zg(){if(Vt===0)if((Oe&536870912)===0||Me){var e=Al;Al<<=1,(Al&3932160)===0&&(Al=262144),Vt=e}else Vt=536870912;return e=qt.current,e!==null&&(e.flags|=32),Vt}function Ot(e,t,n){(e===Ze&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&(Ma(e,0),ul(e,Oe,Vt,!1)),Xn(e,n),((He&2)===0||e!==Ze)&&(e===Ze&&((He&2)===0&&(Vl|=n),tt===4&&ul(e,Oe,Vt,!1)),hn(e))}function Bg(e,t,n){if((He&6)!==0)throw Error(s(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Tl(e,t),i=l?Dy(e,t):Ou(e,t,!0),u=l;do{if(i===0){ka&&!l&&ul(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!Ly(n)){i=Ou(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=Tr;var M=w.current.memoizedState.isDehydrated;if(M&&(Ma(w,h).flags|=256),h=Ou(w,h,!1),h!==2){if(Nu&&!M){w.errorRecoveryDisabledLanes|=u,Vl|=u,i=4;break e}u=kt,kt=i,u!==null&&(kt===null?kt=u:kt.push.apply(kt,u))}i=h}if(u=!1,i!==2)continue}}if(i===1){Ma(e,0),ul(e,t,0,!0);break}e:{switch(l=e,u=i,u){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:ul(l,t,Vt,!rl);break e;case 2:kt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(i=Yi+300-Je(),10<i)){if(ul(l,t,Vt,!rl),ea(l,0,!0)!==0)break e;Un=t,l.timeoutHandle=hh(Ug.bind(null,l,n,kt,Ii,Tu,t,Vt,Vl,Oa,rl,u,"Throttled",-0,0),i);break e}Ug(l,n,kt,Ii,Tu,t,Vt,Vl,Oa,rl,u,null,-0,0)}}break}while(!0);hn(e)}function Ug(e,t,n,l,i,u,h,w,M,$,ae,se,J,ee){if(e.timeoutHandle=-1,se=t.subtreeFlags,se&8192||(se&16785408)===16785408){se={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:En},jg(t,u,se);var me=(u&62914560)===u?Yi-Je():(u&4194048)===u?Mg-Je():0;if(me=b0(se,me),me!==null){Un=u,e.cancelPendingCommit=me(Xg.bind(null,e,t,u,n,l,i,h,w,M,ae,se,null,J,ee)),ul(e,u,h,!$);return}}Xg(e,t,u,n,l,i,h,w,M)}function Ly(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(!Ht(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&=~Au,t&=~Vl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var u=31-Ct(i),h=1<<u;l[u]=-1,i&=~h}n!==0&&Wr(e,n,t)}function Xi(){return(He&6)===0?(_r(0),!1):!0}function ku(){if(_e!==null){if(qe===0)var e=_e.return;else e=_e,Tn=Dl=null,Zs(e),Ca=null,fr=0,e=_e;for(;e!==null;)pg(e.alternate,e),e=e.return;_e=null}}function Ma(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Py(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Un=0,ku(),Ze=e,_e=n=Nn(e.current,null),Oe=t,qe=0,Yt=null,rl=!1,ka=Tl(e,t),Nu=!1,Oa=Vt=Au=Vl=il=tt=0,kt=Tr=null,Tu=!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-Ct(l),u=1<<i;t|=e[i],l&=~u}return Bn=t,gi(),n}function Hg(e,t){Ae=null,N.H=vr,t===Ea||t===Si?(t=td(),qe=3):t===Ds?(t=td(),qe=4):qe=t===uu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Yt=t,_e===null&&(tt=1,Di(e,Pt(t,e.current)))}function Fg(){var e=qt.current;return e===null?!0:(Oe&4194048)===Oe?ln===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?e===ln:!1}function qg(){var e=N.H;return N.H=vr,e===null?vr:e}function Gg(){var e=N.A;return N.A=ky,e}function Zi(){tt=4,rl||(Oe&4194048)!==Oe&&qt.current!==null||(ka=!0),(il&134217727)===0&&(Vl&134217727)===0||Ze===null||ul(Ze,Oe,Vt,!1)}function Ou(e,t,n){var l=He;He|=2;var i=qg(),u=Gg();(Ze!==e||Oe!==t)&&(Ii=null,Ma(e,t)),t=!1;var h=tt;e:do try{if(qe!==0&&_e!==null){var w=_e,M=Yt;switch(qe){case 8:ku(),h=6;break e;case 3:case 2:case 9:case 6:qt.current===null&&(t=!0);var $=qe;if(qe=0,Yt=null,Da(e,w,M,$),n&&ka){h=0;break e}break;default:$=qe,qe=0,Yt=null,Da(e,w,M,$)}}My(),h=tt;break}catch(ae){Hg(e,ae)}while(!0);return t&&e.shellSuspendCounter++,Tn=Dl=null,He=l,N.H=i,N.A=u,_e===null&&(Ze=null,Oe=0,gi()),h}function My(){for(;_e!==null;)Yg(_e)}function Dy(e,t){var n=He;He|=2;var l=qg(),i=Gg();Ze!==e||Oe!==t?(Ii=null,Vi=Je()+500,Ma(e,t)):ka=Tl(e,t);e:do try{if(qe!==0&&_e!==null){t=_e;var u=Yt;t:switch(qe){case 1:qe=0,Yt=null,Da(e,t,u,1);break;case 2:case 9:if(Pf(u)){qe=0,Yt=null,Vg(t);break}t=function(){qe!==2&&qe!==9||Ze!==e||(qe=7),hn(e)},u.then(t,t);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:Pf(u)?(qe=0,Yt=null,Vg(t)):(qe=0,Yt=null,Da(e,t,u,7));break;case 5:var h=null;switch(_e.tag){case 26:h=_e.memoizedState;case 5:case 27:var w=_e;if(h?_h(h):w.stateNode.complete){qe=0,Yt=null;var M=w.sibling;if(M!==null)_e=M;else{var $=w.return;$!==null?(_e=$,$i($)):_e=null}break t}}qe=0,Yt=null,Da(e,t,u,5);break;case 6:qe=0,Yt=null,Da(e,t,u,6);break;case 8:ku(),tt=6;break e;default:throw Error(s(462))}}zy();break}catch(ae){Hg(e,ae)}while(!0);return Tn=Dl=null,N.H=l,N.A=i,He=n,_e!==null?0:(Ze=null,Oe=0,gi(),tt)}function zy(){for(;_e!==null&&!Bt();)Yg(_e)}function Yg(e){var t=gg(e.alternate,e,Bn);e.memoizedProps=e.pendingProps,t===null?$i(e):_e=t}function Vg(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=og(n,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=og(n,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:Zs(t);default:pg(n,t),t=_e=Gf(t,Bn),t=gg(n,t,Bn)}e.memoizedProps=e.pendingProps,t===null?$i(e):_e=t}function Da(e,t,n,l){Tn=Dl=null,Zs(t),Ca=null,fr=0;var i=t.return;try{if(Cy(e,i,t,n,Oe)){tt=1,Di(e,Pt(n,e.current)),_e=null;return}}catch(u){if(i!==null)throw _e=i,u;tt=1,Di(e,Pt(n,e.current)),_e=null;return}t.flags&32768?(Me||l===1?e=!0:ka||(Oe&536870912)!==0?e=!1:(rl=e=!0,(l===2||l===9||l===3||l===6)&&(l=qt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Ig(t,e)):$i(t)}function $i(e){var t=e;do{if((t.flags&32768)!==0){Ig(t,rl);return}e=t.return;var n=Ty(t.alternate,t,Bn);if(n!==null){_e=n;return}if(t=t.sibling,t!==null){_e=t;return}_e=t=e}while(t!==null);tt===0&&(tt=5)}function Ig(e,t){do{var n=Ry(e.alternate,e);if(n!==null){n.flags&=32767,_e=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){_e=e;return}_e=e=n}while(e!==null);tt=6,_e=null}function Xg(e,t,n,l,i,u,h,w,M){e.cancelPendingCommit=null;do Ki();while(ft!==0);if((He&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(u=t.lanes|t.childLanes,u|=xs,Jo(e,n,u,h,w,M),e===Ze&&(_e=Ze=null,Oe=0),La=t,sl=e,Un=n,Ru=u,_u=i,Dg=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Fy(Vn,function(){return Jg(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=N.T,N.T=null,i=k.p,k.p=2,h=He,He|=4;try{_y(e,t,n)}finally{He=h,k.p=i,N.T=l}}ft=1,Zg(),$g(),Kg()}}function Zg(){if(ft===1){ft=0;var e=sl,t=La,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=N.T,N.T=null;var l=k.p;k.p=2;var i=He;He|=4;try{Tg(t,e);var u=Vu,h=Lf(e.containerInfo),w=u.focusedElem,M=u.selectionRange;if(h!==w&&w&&w.ownerDocument&&Of(w.ownerDocument.documentElement,w)){if(M!==null&&ps(w)){var $=M.start,ae=M.end;if(ae===void 0&&(ae=$),"selectionStart"in w)w.selectionStart=$,w.selectionEnd=Math.min(ae,w.value.length);else{var se=w.ownerDocument||document,J=se&&se.defaultView||window;if(J.getSelection){var ee=J.getSelection(),me=w.textContent.length,Ee=Math.min(M.start,me),Ie=M.end===void 0?Ee:Math.min(M.end,me);!ee.extend&&Ee>Ie&&(h=Ie,Ie=Ee,Ee=h);var q=kf(w,Ee),U=kf(w,Ie);if(q&&U&&(ee.rangeCount!==1||ee.anchorNode!==q.node||ee.anchorOffset!==q.offset||ee.focusNode!==U.node||ee.focusOffset!==U.offset)){var Z=se.createRange();Z.setStart(q.node,q.offset),ee.removeAllRanges(),Ee>Ie?(ee.addRange(Z),ee.extend(U.node,U.offset)):(Z.setEnd(U.node,U.offset),ee.addRange(Z))}}}}for(se=[],ee=w;ee=ee.parentNode;)ee.nodeType===1&&se.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<se.length;w++){var ie=se[w];ie.element.scrollLeft=ie.left,ie.element.scrollTop=ie.top}}oo=!!Yu,Vu=Yu=null}finally{He=i,k.p=l,N.T=n}}e.current=t,ft=2}}function $g(){if(ft===2){ft=0;var e=sl,t=La,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=N.T,N.T=null;var l=k.p;k.p=2;var i=He;He|=4;try{wg(e,t.alternate,t)}finally{He=i,k.p=l,N.T=n}}ft=3}}function Kg(){if(ft===4||ft===3){ft=0,Ut();var e=sl,t=La,n=Un,l=Dg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ft=5:(ft=0,La=sl=null,Qg(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ol=null),Ka(n),t=t.stateNode,yt&&typeof yt.onCommitFiberRoot=="function")try{yt.onCommitFiberRoot(Nl,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=N.T,i=k.p,k.p=2,N.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{N.T=t,k.p=i}}(Un&3)!==0&&Ki(),hn(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===ju?Rr++:(Rr=0,ju=e):Rr=0,_r(0)}}function Qg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ur(t)))}function Ki(){return Zg(),$g(),Kg(),Jg()}function Jg(){if(ft!==5)return!1;var e=sl,t=Ru;Ru=0;var n=Ka(Un),l=N.T,i=k.p;try{k.p=32>n?32:n,N.T=null,n=_u,_u=null;var u=sl,h=Un;if(ft=0,La=sl=null,Un=0,(He&6)!==0)throw Error(s(331));var w=He;if(He|=4,Og(u.current),_g(u,u.current,h,n),He=w,_r(0,!1),yt&&typeof yt.onPostCommitFiberRoot=="function")try{yt.onPostCommitFiberRoot(Nl,u)}catch{}return!0}finally{k.p=i,N.T=l,Qg(e,t)}}function Wg(e,t,n){t=Pt(n,t),t=su(e.stateNode,t,2),e=tl(e,t,2),e!==null&&(Xn(e,2),hn(e))}function Ge(e,t,n){if(e.tag===3)Wg(e,e,n);else for(;t!==null;){if(t.tag===3){Wg(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=Pt(n,e),n=Pd(2),l=tl(t,n,2),l!==null&&(eg(n,l,t,e),Xn(l,2),hn(l));break}}t=t.return}}function Lu(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new Oy;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)||(Nu=!0,i.add(n),e=By.bind(null,e,t,n),t.then(e,e))}function By(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ze===e&&(Oe&n)===n&&(tt===4||tt===3&&(Oe&62914560)===Oe&&300>Je()-Yi?(He&2)===0&&Ma(e,0):Au|=n,Oa===Oe&&(Oa=0)),hn(e)}function Pg(e,t){t===0&&(t=In()),e=Ol(e,t),e!==null&&(Xn(e,t),hn(e))}function Uy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Pg(e,n)}function Hy(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(s(314))}l!==null&&l.delete(t),Pg(e,n)}function Fy(e,t){return ct(e,t)}var Qi=null,za=null,Mu=!1,Ji=!1,Du=!1,cl=0;function hn(e){e!==za&&e.next===null&&(za===null?Qi=za=e:za=za.next=e),Ji=!0,Mu||(Mu=!0,Gy())}function _r(e,t){if(!Du&&Ji){Du=!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-Ct(42|e)+1)-1,u&=i&~(h&~w),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,lh(l,u))}else u=Oe,u=ea(l,l===Ze?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||Tl(l,u)||(n=!0,lh(l,u));l=l.next}while(n);Du=!1}}function qy(){eh()}function eh(){Ji=Mu=!1;var e=0;cl!==0&&Wy()&&(e=cl);for(var t=Je(),n=null,l=Qi;l!==null;){var i=l.next,u=th(l,t);u===0?(l.next=null,n===null?Qi=i:n.next=i,i===null&&(za=n)):(n=l,(e!==0||(u&3)!==0)&&(Ji=!0)),l=i}ft!==0&&ft!==5||_r(e),cl!==0&&(cl=0)}function th(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var h=31-Ct(u),w=1<<h,M=i[h];M===-1?((w&n)===0||(w&l)!==0)&&(i[h]=Qo(w,t)):M<=t&&(e.expiredLanes|=w),u&=~w}if(t=Ze,n=Oe,n=ea(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(qe===2||qe===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&zt(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Tl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&zt(l),Ka(n)){case 2:case 8:n=Jl;break;case 32:n=Vn;break;case 268435456:n=Wl;break;default:n=Vn}return l=nh.bind(null,e),n=ct(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&zt(l),e.callbackPriority=2,e.callbackNode=null,2}function nh(e,t){if(ft!==0&&ft!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ki()&&e.callbackNode!==n)return null;var l=Oe;return l=ea(e,e===Ze?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Bg(e,l,t),th(e,Je()),e.callbackNode!=null&&e.callbackNode===n?nh.bind(null,e):null)}function lh(e,t){if(Ki())return null;Bg(e,t,!0)}function Gy(){e0(function(){(He&6)!==0?ct(Kr,qy):eh()})}function zu(){if(cl===0){var e=Sa;e===0&&(e=Pl,Pl<<=1,(Pl&261888)===0&&(Pl=256)),cl=e}return cl}function ah(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ri(""+e)}function rh(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 Yy(e,t,n,l,i){if(t==="submit"&&n&&n.stateNode===i){var u=ah((i[ye]||null).action),h=l.submitter;h&&(t=(t=h[ye]||null)?ah(t.formAction):h.getAttribute("formAction"),t!==null&&(u=t,h=null));var w=new ui("action","action",null,l,i);e.push({event:w,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(cl!==0){var M=h?rh(i,h):new FormData(i);nu(n,{pending:!0,data:M,method:i.method,action:u},null,M)}}else typeof u=="function"&&(w.preventDefault(),M=h?rh(i,h):new FormData(i),nu(n,{pending:!0,data:M,method:i.method,action:u},u,M))},currentTarget:i}]})}}for(var Bu=0;Bu<vs.length;Bu++){var Uu=vs[Bu],Vy=Uu.toLowerCase(),Iy=Uu[0].toUpperCase()+Uu.slice(1);sn(Vy,"on"+Iy)}sn(zf,"onAnimationEnd"),sn(Bf,"onAnimationIteration"),sn(Uf,"onAnimationStart"),sn("dblclick","onDoubleClick"),sn("focusin","onFocus"),sn("focusout","onBlur"),sn(oy,"onTransitionRun"),sn(sy,"onTransitionStart"),sn(uy,"onTransitionCancel"),sn(Hf,"onTransitionEnd"),oa("onMouseEnter",["mouseout","mouseover"]),oa("onMouseLeave",["mouseout","mouseover"]),oa("onPointerEnter",["pointerout","pointerover"]),oa("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 jr="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(" "),Xy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(jr));function ih(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],M=w.instance,$=w.currentTarget;if(w=w.listener,M!==u&&i.isPropagationStopped())break e;u=w,i.currentTarget=$;try{u(i)}catch(ae){di(ae)}i.currentTarget=null,u=M}else for(h=0;h<l.length;h++){if(w=l[h],M=w.instance,$=w.currentTarget,w=w.listener,M!==u&&i.isPropagationStopped())break e;u=w,i.currentTarget=$;try{u(i)}catch(ae){di(ae)}i.currentTarget=null,u=M}}}}function je(e,t){var n=t[We];n===void 0&&(n=t[We]=new Set);var l=e+"__bubble";n.has(l)||(oh(t,e,2,!1),n.add(l))}function Hu(e,t,n){var l=0;t&&(l|=4),oh(n,e,l,t)}var Wi="_reactListening"+Math.random().toString(36).slice(2);function Fu(e){if(!e[Wi]){e[Wi]=!0,Pc.forEach(function(n){n!=="selectionchange"&&(Xy.has(n)||Hu(n,!1,e),Hu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wi]||(t[Wi]=!0,Hu("selectionchange",!1,t))}}function oh(e,t,n,l){switch(zh(t)){case 2:var i=x0;break;case 8:i=S0;break;default:i=tc}n=i.bind(null,t,n,e),i=void 0,!is||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 qu(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 M=h.tag;if((M===3||M===4)&&h.stateNode.containerInfo===i)return;h=h.return}for(;w!==null;){if(h=aa(w),h===null)return;if(M=h.tag,M===5||M===6||M===26||M===27){l=u=h;continue e}w=w.parentNode}}l=l.return}df(function(){var $=u,ae=as(n),se=[];e:{var J=Ff.get(e);if(J!==void 0){var ee=ui,me=e;switch(e){case"keypress":if(oi(n)===0)break e;case"keydown":case"keyup":ee=Hb;break;case"focusin":me="focus",ee=cs;break;case"focusout":me="blur",ee=cs;break;case"beforeblur":case"afterblur":ee=cs;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":ee=pf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=Tb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=Gb;break;case zf:case Bf:case Uf:ee=jb;break;case Hf:ee=Vb;break;case"scroll":case"scrollend":ee=Nb;break;case"wheel":ee=Xb;break;case"copy":case"cut":case"paste":ee=Ob;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=bf;break;case"toggle":case"beforetoggle":ee=$b}var Ee=(t&4)!==0,Ie=!Ee&&(e==="scroll"||e==="scrollend"),q=Ee?J!==null?J+"Capture":null:J;Ee=[];for(var U=$,Z;U!==null;){var ie=U;if(Z=ie.stateNode,ie=ie.tag,ie!==5&&ie!==26&&ie!==27||Z===null||q===null||(ie=Wa(U,q),ie!=null&&Ee.push(kr(U,ie,Z))),Ie)break;U=U.return}0<Ee.length&&(J=new ee(J,me,null,n,ae),se.push({event:J,listeners:Ee}))}}if((t&7)===0){e:{if(J=e==="mouseover"||e==="pointerover",ee=e==="mouseout"||e==="pointerout",J&&n!==ls&&(me=n.relatedTarget||n.fromElement)&&(aa(me)||me[we]))break e;if((ee||J)&&(J=ae.window===ae?ae:(J=ae.ownerDocument)?J.defaultView||J.parentWindow:window,ee?(me=n.relatedTarget||n.toElement,ee=$,me=me?aa(me):null,me!==null&&(Ie=f(me),Ee=me.tag,me!==Ie||Ee!==5&&Ee!==27&&Ee!==6)&&(me=null)):(ee=null,me=$),ee!==me)){if(Ee=pf,ie="onMouseLeave",q="onMouseEnter",U="mouse",(e==="pointerout"||e==="pointerover")&&(Ee=bf,ie="onPointerLeave",q="onPointerEnter",U="pointer"),Ie=ee==null?J:Ja(ee),Z=me==null?J:Ja(me),J=new Ee(ie,U+"leave",ee,n,ae),J.target=Ie,J.relatedTarget=Z,ie=null,aa(ae)===$&&(Ee=new Ee(q,U+"enter",me,n,ae),Ee.target=Z,Ee.relatedTarget=Ie,ie=Ee),Ie=ie,ee&&me)t:{for(Ee=Zy,q=ee,U=me,Z=0,ie=q;ie;ie=Ee(ie))Z++;ie=0;for(var xe=U;xe;xe=Ee(xe))ie++;for(;0<Z-ie;)q=Ee(q),Z--;for(;0<ie-Z;)U=Ee(U),ie--;for(;Z--;){if(q===U||U!==null&&q===U.alternate){Ee=q;break t}q=Ee(q),U=Ee(U)}Ee=null}else Ee=null;ee!==null&&sh(se,J,ee,Ee,!1),me!==null&&Ie!==null&&sh(se,Ie,me,Ee,!0)}}e:{if(J=$?Ja($):window,ee=J.nodeName&&J.nodeName.toLowerCase(),ee==="select"||ee==="input"&&J.type==="file")var Be=Nf;else if(Ef(J))if(Af)Be=ay;else{Be=ny;var ve=ty}else ee=J.nodeName,!ee||ee.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?$&&ns($.elementType)&&(Be=Nf):Be=ly;if(Be&&(Be=Be(e,$))){Cf(se,Be,n,ae);break e}ve&&ve(e,J,$),e==="focusout"&&$&&J.type==="number"&&$.memoizedProps.value!=null&&ts(J,"number",J.value)}switch(ve=$?Ja($):window,e){case"focusin":(Ef(ve)||ve.contentEditable==="true")&&(ga=ve,ms=$,ir=null);break;case"focusout":ir=ms=ga=null;break;case"mousedown":bs=!0;break;case"contextmenu":case"mouseup":case"dragend":bs=!1,Mf(se,n,ae);break;case"selectionchange":if(iy)break;case"keydown":case"keyup":Mf(se,n,ae)}var Te;if(ds)e:{switch(e){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else da?Sf(e,n)&&(Le="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Le="onCompositionStart");Le&&(yf&&n.locale!=="ko"&&(da||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&da&&(Te=gf()):($n=ae,os="value"in $n?$n.value:$n.textContent,da=!0)),ve=Pi($,Le),0<ve.length&&(Le=new mf(Le,e,null,n,ae),se.push({event:Le,listeners:ve}),Te?Le.data=Te:(Te=wf(n),Te!==null&&(Le.data=Te)))),(Te=Qb?Jb(e,n):Wb(e,n))&&(Le=Pi($,"onBeforeInput"),0<Le.length&&(ve=new mf("onBeforeInput","beforeinput",null,n,ae),se.push({event:ve,listeners:Le}),ve.data=Te)),Yy(se,e,$,n,ae)}ih(se,t)})}function kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Pi(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=Wa(e,n),i!=null&&l.unshift(kr(e,i,u)),i=Wa(e,t),i!=null&&l.push(kr(e,i,u))),e.tag===3)return l;e=e.return}return[]}function Zy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function sh(e,t,n,l,i){for(var u=t._reactName,h=[];n!==null&&n!==l;){var w=n,M=w.alternate,$=w.stateNode;if(w=w.tag,M!==null&&M===l)break;w!==5&&w!==26&&w!==27||$===null||(M=$,i?($=Wa(n,u),$!=null&&h.unshift(kr(n,$,M))):i||($=Wa(n,u),$!=null&&h.push(kr(n,$,M)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}var $y=/\r\n?/g,Ky=/\u0000|\uFFFD/g;function uh(e){return(typeof e=="string"?e:""+e).replace($y,`
|
|
9
|
+
`).replace(Ky,"")}function ch(e,t){return t=uh(t),uh(e)===t}function Ve(e,t,n,l,i,u){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||ua(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&ua(e,""+l);break;case"className":li(e,"class",l);break;case"tabIndex":li(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":li(e,n,l);break;case"style":cf(e,l,u);break;case"data":if(t!=="object"){li(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=ri(""+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"&&Ve(e,t,"name",i.name,i,null),Ve(e,t,"formEncType",i.formEncType,i,null),Ve(e,t,"formMethod",i.formMethod,i,null),Ve(e,t,"formTarget",i.formTarget,i,null)):(Ve(e,t,"encType",i.encType,i,null),Ve(e,t,"method",i.method,i,null),Ve(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=ri(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=En);break;case"onScroll":l!=null&&je("scroll",e);break;case"onScrollEnd":l!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(s(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=ri(""+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":je("beforetoggle",e),je("toggle",e),ni(e,"popover",l);break;case"xlinkActuate":wn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":wn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":wn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":wn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":wn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":wn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":wn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":wn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":wn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ni(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=Eb.get(n)||n,ni(e,n,l))}}function Gu(e,t,n,l,i,u){switch(n){case"style":cf(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof l=="string"?ua(e,l):(typeof l=="number"||typeof l=="bigint")&&ua(e,""+l);break;case"onScroll":l!=null&&je("scroll",e);break;case"onScrollEnd":l!=null&&je("scrollend",e);break;case"onClick":l!=null&&(e.onclick=En);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ef.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[ye]||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,""):ni(e,n,l)}}}function bt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("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(s(137,t));default:Ve(e,t,u,h,n,null)}}i&&Ve(e,t,"srcSet",n.srcSet,n,null),l&&Ve(e,t,"src",n.src,n,null);return;case"input":je("invalid",e);var w=u=h=i=null,M=null,$=null;for(l in n)if(n.hasOwnProperty(l)){var ae=n[l];if(ae!=null)switch(l){case"name":i=ae;break;case"type":h=ae;break;case"checked":M=ae;break;case"defaultChecked":$=ae;break;case"value":u=ae;break;case"defaultValue":w=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(s(137,t));break;default:Ve(e,t,l,ae,n,null)}}rf(e,u,w,M,$,h,i,!1);return;case"select":je("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:Ve(e,t,i,w,n,null)}t=u,n=h,e.multiple=!!l,t!=null?sa(e,!!l,t,!1):n!=null&&sa(e,!!l,n,!0);return;case"textarea":je("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(s(91));break;default:Ve(e,t,h,w,n,null)}sf(e,l,i,u);return;case"option":for(M in n)n.hasOwnProperty(M)&&(l=n[M],l!=null)&&(M==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Ve(e,t,M,l,n,null));return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(l=0;l<jr.length;l++)je(jr[l],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("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($ in n)if(n.hasOwnProperty($)&&(l=n[$],l!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ve(e,t,$,l,n,null)}return;default:if(ns(t)){for(ae in n)n.hasOwnProperty(ae)&&(l=n[ae],l!==void 0&&Gu(e,t,ae,l,n,void 0));return}}for(w in n)n.hasOwnProperty(w)&&(l=n[w],l!=null&&Ve(e,t,w,l,n,null))}function Qy(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,M=null,$=null,ae=null;for(ee in n){var se=n[ee];if(n.hasOwnProperty(ee)&&se!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":M=se;default:l.hasOwnProperty(ee)||Ve(e,t,ee,null,l,se)}}for(var J in l){var ee=l[J];if(se=n[J],l.hasOwnProperty(J)&&(ee!=null||se!=null))switch(J){case"type":u=ee;break;case"name":i=ee;break;case"checked":$=ee;break;case"defaultChecked":ae=ee;break;case"value":h=ee;break;case"defaultValue":w=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(s(137,t));break;default:ee!==se&&Ve(e,t,J,ee,l,se)}}es(e,h,w,M,$,ae,u,i);return;case"select":ee=h=w=J=null;for(u in n)if(M=n[u],n.hasOwnProperty(u)&&M!=null)switch(u){case"value":break;case"multiple":ee=M;default:l.hasOwnProperty(u)||Ve(e,t,u,null,l,M)}for(i in l)if(u=l[i],M=n[i],l.hasOwnProperty(i)&&(u!=null||M!=null))switch(i){case"value":J=u;break;case"defaultValue":w=u;break;case"multiple":h=u;default:u!==M&&Ve(e,t,i,u,l,M)}t=w,n=h,l=ee,J!=null?sa(e,!!n,J,!1):!!l!=!!n&&(t!=null?sa(e,!!n,t,!0):sa(e,!!n,n?[]:"",!1));return;case"textarea":ee=J=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:Ve(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":J=i;break;case"defaultValue":ee=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(s(91));break;default:i!==u&&Ve(e,t,h,i,l,u)}of(e,J,ee);return;case"option":for(var me in n)J=n[me],n.hasOwnProperty(me)&&J!=null&&!l.hasOwnProperty(me)&&(me==="selected"?e.selected=!1:Ve(e,t,me,null,l,J));for(M in l)J=l[M],ee=n[M],l.hasOwnProperty(M)&&J!==ee&&(J!=null||ee!=null)&&(M==="selected"?e.selected=J&&typeof J!="function"&&typeof J!="symbol":Ve(e,t,M,J,l,ee));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)J=n[Ee],n.hasOwnProperty(Ee)&&J!=null&&!l.hasOwnProperty(Ee)&&Ve(e,t,Ee,null,l,J);for($ in l)if(J=l[$],ee=n[$],l.hasOwnProperty($)&&J!==ee&&(J!=null||ee!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(s(137,t));break;default:Ve(e,t,$,J,l,ee)}return;default:if(ns(t)){for(var Ie in n)J=n[Ie],n.hasOwnProperty(Ie)&&J!==void 0&&!l.hasOwnProperty(Ie)&&Gu(e,t,Ie,void 0,l,J);for(ae in l)J=l[ae],ee=n[ae],!l.hasOwnProperty(ae)||J===ee||J===void 0&&ee===void 0||Gu(e,t,ae,J,l,ee);return}}for(var q in n)J=n[q],n.hasOwnProperty(q)&&J!=null&&!l.hasOwnProperty(q)&&Ve(e,t,q,null,l,J);for(se in l)J=l[se],ee=n[se],!l.hasOwnProperty(se)||J===ee||J==null&&ee==null||Ve(e,t,se,J,l,ee)}function fh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Jy(){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&&fh(h)){for(h=0,w=i.responseEnd,l+=1;l<n.length;l++){var M=n[l],$=M.startTime;if($>w)break;var ae=M.transferSize,se=M.initiatorType;ae&&fh(se)&&(M=M.responseEnd,h+=ae*(M<w?1:(w-$)/(M-$)))}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 Yu=null,Vu=null;function eo(e){return e.nodeType===9?e:e.ownerDocument}function dh(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 gh(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 Iu(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 Xu=null;function Wy(){var e=window.event;return e&&e.type==="popstate"?e===Xu?!1:(Xu=e,!0):(Xu=null,!1)}var hh=typeof setTimeout=="function"?setTimeout:void 0,Py=typeof clearTimeout=="function"?clearTimeout:void 0,ph=typeof Promise=="function"?Promise:void 0,e0=typeof queueMicrotask=="function"?queueMicrotask:typeof ph<"u"?function(e){return ph.resolve(null).then(e).catch(t0)}:hh;function t0(e){setTimeout(function(){throw e})}function fl(e){return e==="head"}function mh(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),Fa(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Or(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Or(n);for(var u=n.firstChild;u;){var h=u.nextSibling,w=u.nodeName;u[Qa]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=h}}else n==="body"&&Or(e.ownerDocument.body);n=i}while(n);Fa(t)}function bh(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 Zu(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":Zu(n),Wo(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function n0(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[Qa])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=an(e.nextSibling),e===null)break}return null}function l0(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=an(e.nextSibling),e===null))return null;return e}function yh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=an(e.nextSibling),e===null))return null;return e}function $u(e){return e.data==="$?"||e.data==="$~"}function Ku(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function a0(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 an(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 Qu=null;function vh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return an(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function xh(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 Sh(e,t,n){switch(t=eo(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Or(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Wo(e)}var rn=new Map,wh=new Set;function to(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Hn=k.d;k.d={f:r0,r:i0,D:o0,C:s0,L:u0,m:c0,X:d0,S:f0,M:g0};function r0(){var e=Hn.f(),t=Xi();return e||t}function i0(e){var t=ra(e);t!==null&&t.tag===5&&t.type==="form"?Hd(t):Hn.r(e)}var Ba=typeof document>"u"?null:document;function Eh(e,t,n){var l=Ba;if(l&&typeof t=="string"&&t){var i=Jt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),wh.has(i)||(wh.add(i),e={rel:e,crossOrigin:n,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),bt(t,"link",e),dt(t),l.head.appendChild(t)))}}function o0(e){Hn.D(e),Eh("dns-prefetch",e,null)}function s0(e,t){Hn.C(e,t),Eh("preconnect",e,t)}function u0(e,t,n){Hn.L(e,t,n);var l=Ba;if(l&&e&&t){var i='link[rel="preload"][as="'+Jt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Jt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Jt(n.imageSizes)+'"]')):i+='[href="'+Jt(e)+'"]';var u=i;switch(t){case"style":u=Ua(e);break;case"script":u=Ha(e)}rn.has(u)||(e=y({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),rn.set(u,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(Lr(u))||t==="script"&&l.querySelector(Mr(u))||(t=l.createElement("link"),bt(t,"link",e),dt(t),l.head.appendChild(t)))}}function c0(e,t){Hn.m(e,t);var n=Ba;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Jt(l)+'"][href="'+Jt(e)+'"]',u=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ha(e)}if(!rn.has(u)&&(e=y({rel:"modulepreload",href:e},t),rn.set(u,e),n.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Mr(u)))return}l=n.createElement("link"),bt(l,"link",e),dt(l),n.head.appendChild(l)}}}function f0(e,t,n){Hn.S(e,t,n);var l=Ba;if(l&&e){var i=ia(l).hoistableStyles,u=Ua(e);t=t||"default";var h=i.get(u);if(!h){var w={loading:0,preload:null};if(h=l.querySelector(Lr(u)))w.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=rn.get(u))&&Ju(e,n);var M=h=l.createElement("link");dt(M),bt(M,"link",e),M._p=new Promise(function($,ae){M.onload=$,M.onerror=ae}),M.addEventListener("load",function(){w.loading|=1}),M.addEventListener("error",function(){w.loading|=2}),w.loading|=4,no(h,t,l)}h={type:"stylesheet",instance:h,count:1,state:w},i.set(u,h)}}}function d0(e,t){Hn.X(e,t);var n=Ba;if(n&&e){var l=ia(n).hoistableScripts,i=Ha(e),u=l.get(i);u||(u=n.querySelector(Mr(i)),u||(e=y({src:e,async:!0},t),(t=rn.get(i))&&Wu(e,t),u=n.createElement("script"),dt(u),bt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(i,u))}}function g0(e,t){Hn.M(e,t);var n=Ba;if(n&&e){var l=ia(n).hoistableScripts,i=Ha(e),u=l.get(i);u||(u=n.querySelector(Mr(i)),u||(e=y({src:e,async:!0,type:"module"},t),(t=rn.get(i))&&Wu(e,t),u=n.createElement("script"),dt(u),bt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(i,u))}}function Ch(e,t,n,l){var i=(i=fe.current)?to(i):null;if(!i)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ua(n.href),n=ia(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=Ua(n.href);var u=ia(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(Lr(e)))&&!u._p&&(h.instance=u,h.state.loading=5),rn.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},rn.set(e,n),u||h0(i,e,n,h.state))),t&&l===null)throw Error(s(528,""));return h}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ha(n),n=ia(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(s(444,e))}}function Ua(e){return'href="'+Jt(e)+'"'}function Lr(e){return'link[rel="stylesheet"]['+e+"]"}function Nh(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function h0(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}),bt(t,"link",n),dt(t),e.head.appendChild(t))}function Ha(e){return'[src="'+Jt(e)+'"]'}function Mr(e){return"script[async]"+e}function Ah(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Jt(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),bt(l,"style",i),no(l,n.precedence,e),t.instance=l;case"stylesheet":i=Ua(n.href);var u=e.querySelector(Lr(i));if(u)return t.state.loading|=4,t.instance=u,dt(u),u;l=Nh(n),(i=rn.get(i))&&Ju(l,i),u=(e.ownerDocument||e).createElement("link"),dt(u);var h=u;return h._p=new Promise(function(w,M){h.onload=w,h.onerror=M}),bt(u,"link",l),t.state.loading|=4,no(u,n.precedence,e),t.instance=u;case"script":return u=Ha(n.src),(i=e.querySelector(Mr(u)))?(t.instance=i,dt(i),i):(l=n,(i=rn.get(u))&&(l=y({},n),Wu(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),dt(i),bt(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,no(l,n.precedence,e));return t.instance}function no(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 Ju(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Wu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var lo=null;function Th(e,t,n){if(lo===null){var l=new Map,i=lo=new Map;i.set(n,l)}else i=lo,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[Qa]||u[he]||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 Rh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function p0(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 _h(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function m0(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=Ua(l.href),u=t.querySelector(Lr(i));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ao.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,dt(u);return}u=t.ownerDocument||t,l=Nh(l),(i=rn.get(i))&&Ju(l,i),u=u.createElement("link"),dt(u);var h=u;h._p=new Promise(function(w,M){h.onload=w,h.onerror=M}),bt(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=ao.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Pu=0;function b0(e,t){return e.stylesheets&&e.count===0&&io(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&io(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Pu===0&&(Pu=62500*Jy());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&io(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Pu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function ao(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)io(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ro=null;function io(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ro=new Map,t.forEach(y0,e),ro=null,ao.call(e))}function y0(e,t){if(!(t.state.loading&4)){var n=ro.get(e);if(n)var l=n.get(null);else{n=new Map,ro.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=ao.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 Dr={$$typeof:L,Provider:null,Consumer:null,_currentValue:O,_currentValue2:O,_threadCount:0};function v0(e,t,n,l,i,u,h,w,M){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=ta(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ta(0),this.hiddenUpdates=ta(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=u,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function jh(e,t,n,l,i,u,h,w,M,$,ae,se){return e=new v0(e,t,n,h,M,$,ae,se,w),t=1,u===!0&&(t|=24),u=Ft(3,null,null,t),e.current=u,u.stateNode=e,t=Os(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:t},zs(u),e}function kh(e){return e?(e=ma,e):ma}function Oh(e,t,n,l,i,u){i=kh(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&&(Ot(n,e,t),gr(n,e,t))}function Lh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ec(e,t){Lh(e,t),(e=e.alternate)&&Lh(e,t)}function Mh(e){if(e.tag===13||e.tag===31){var t=Ol(e,67108864);t!==null&&Ot(t,e,67108864),ec(e,67108864)}}function Dh(e){if(e.tag===13||e.tag===31){var t=It();t=na(t);var n=Ol(e,t);n!==null&&Ot(n,e,t),ec(e,t)}}var oo=!0;function x0(e,t,n,l){var i=N.T;N.T=null;var u=k.p;try{k.p=2,tc(e,t,n,l)}finally{k.p=u,N.T=i}}function S0(e,t,n,l){var i=N.T;N.T=null;var u=k.p;try{k.p=8,tc(e,t,n,l)}finally{k.p=u,N.T=i}}function tc(e,t,n,l){if(oo){var i=nc(l);if(i===null)qu(e,t,l,so,n),Bh(e,l);else if(E0(i,e,t,n,l))l.stopPropagation();else if(Bh(e,l),t&4&&-1<w0.indexOf(e)){for(;i!==null;){var u=ra(i);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var h=Sn(u.pendingLanes);if(h!==0){var w=u;for(w.pendingLanes|=2,w.entangledLanes|=2;h;){var M=1<<31-Ct(h);w.entanglements[1]|=M,h&=~M}hn(u),(He&6)===0&&(Vi=Je()+500,_r(0))}}break;case 31:case 13:w=Ol(u,2),w!==null&&Ot(w,u,2),Xi(),ec(u,2)}if(u=nc(l),u===null&&qu(e,t,l,so,n),u===i)break;i=u}i!==null&&l.stopPropagation()}else qu(e,t,l,null,n)}}function nc(e){return e=as(e),lc(e)}var so=null;function lc(e){if(so=null,e=aa(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=m(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 so=e,null}function zh(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(Ql()){case Kr:return 2;case Jl:return 8;case Vn:case Ko:return 32;case Wl:return 268435456;default:return 32}default:return 32}}var ac=!1,dl=null,gl=null,hl=null,zr=new Map,Br=new Map,pl=[],w0="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 Bh(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":zr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Br.delete(t.pointerId)}}function Ur(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=ra(t),t!==null&&Mh(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function E0(e,t,n,l,i){switch(t){case"focusin":return dl=Ur(dl,e,t,n,l,i),!0;case"dragenter":return gl=Ur(gl,e,t,n,l,i),!0;case"mouseover":return hl=Ur(hl,e,t,n,l,i),!0;case"pointerover":var u=i.pointerId;return zr.set(u,Ur(zr.get(u)||null,e,t,n,l,i)),!0;case"gotpointercapture":return u=i.pointerId,Br.set(u,Ur(Br.get(u)||null,e,t,n,l,i)),!0}return!1}function Uh(e){var t=aa(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,ti(e.priority,function(){Dh(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,ti(e.priority,function(){Dh(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 uo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=nc(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);ls=l,n.target.dispatchEvent(l),ls=null}else return t=ra(n),t!==null&&Mh(t),e.blockedOn=n,!1;t.shift()}return!0}function Hh(e,t,n){uo(e)&&n.delete(t)}function C0(){ac=!1,dl!==null&&uo(dl)&&(dl=null),gl!==null&&uo(gl)&&(gl=null),hl!==null&&uo(hl)&&(hl=null),zr.forEach(Hh),Br.forEach(Hh)}function co(e,t){e.blockedOn===t&&(e.blockedOn=null,ac||(ac=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,C0)))}var fo=null;function Fh(e){fo!==e&&(fo=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){fo===e&&(fo=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(lc(l||n)===null)continue;break}var u=ra(n);u!==null&&(e.splice(t,3),t-=3,nu(u,{pending:!0,data:i,method:n.method,action:l},l,i))}}))}function Fa(e){function t(M){return co(M,e)}dl!==null&&co(dl,e),gl!==null&&co(gl,e),hl!==null&&co(hl,e),zr.forEach(t),Br.forEach(t);for(var n=0;n<pl.length;n++){var l=pl[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<pl.length&&(n=pl[0],n.blockedOn===null);)Uh(n),n.blockedOn===null&&pl.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[ye]||null;if(typeof u=="function")h||Fh(n);else if(h){var w=null;if(u&&u.hasAttribute("formAction")){if(i=u,h=u[ye]||null)w=h.formAction;else if(lc(i)!==null)continue}else w=h.action;typeof w=="function"?n[l+1]=w:(n.splice(l,3),l-=3),Fh(n)}}}function qh(){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 rc(e){this._internalRoot=e}go.prototype.render=rc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,l=It();Oh(n,l,e,t,null,null)},go.prototype.unmount=rc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Oh(e.current,2,null,e,null,null),Xi(),t[we]=null}};function go(e){this._internalRoot=e}go.prototype.unstable_scheduleHydration=function(e){if(e){var t=ei();e={blockedOn:null,target:e,priority:t};for(var n=0;n<pl.length&&t!==0&&t<pl[n].priority;n++);pl.splice(n,0,e),n===0&&Uh(e)}};var Gh=r.version;if(Gh!=="19.2.3")throw Error(s(527,Gh,"19.2.3"));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var N0={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ho=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ho.isDisabled&&ho.supportsFiber)try{Nl=ho.inject(N0),yt=ho}catch{}}return Fr.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,l="",i=Kd,u=Qd,h=Jd;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=jh(e,1,!1,null,null,n,l,null,i,u,h,qh),e[we]=t.current,Fu(e),new rc(t)},Fr.hydrateRoot=function(e,t,n){if(!c(e))throw Error(s(299));var l=!1,i="",u=Kd,h=Qd,w=Jd,M=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&&(M=n.formState)),t=jh(e,1,!0,t,n??null,l,i,M,u,h,w,qh),t.context=kh(null),n=t.current,l=It(),l=na(l),i=el(l),i.callback=null,tl(n,i,l),n=l,t.current.lanes=n,Xn(t,n),hn(t),e[we]=t.current,Fu(e),new go(t)},Fr.version="19.2.3",Fr}var Wh;function D0(){if(Wh)return sc.exports;Wh=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(),sc.exports=M0(),sc.exports}var z0=D0();const B0=nm(z0),rm=["shift","alt","meta","mod","ctrl","control"],U0={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 wl(a){return(U0[a.trim()]||a.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function im(a){return rm.includes(a)}function dc(a,r=","){return a.toLowerCase().split(r)}function gc(a,r="+",o=">",s=!1,c){let f=[],d=!1;a=a.trim(),a.includes(o)?(d=!0,f=a.toLocaleLowerCase().split(o).map(p=>wl(p))):f=a.toLocaleLowerCase().split(r).map(p=>wl(p));const m={alt:f.includes("alt"),ctrl:f.includes("ctrl")||f.includes("control"),shift:f.includes("shift"),meta:f.includes("meta"),mod:f.includes("mod"),useKey:s},b=f.filter(p=>!rm.includes(p));return{...m,keys:b,description:c,isSequence:d,hotkey:a}}typeof document<"u"&&(document.addEventListener("keydown",a=>{a.code!==void 0&&om([wl(a.code)])}),document.addEventListener("keyup",a=>{a.code!==void 0&&sm([wl(a.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{qn.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{qn.clear()},0)}));const qn=new Set;function Fc(a){return Array.isArray(a)}function H0(a,r=","){return(Fc(a)?a:a.split(r)).every(o=>qn.has(o.trim().toLowerCase()))}function om(a){const r=Array.isArray(a)?a:[a];qn.has("meta")&&qn.forEach(o=>!im(o)&&qn.delete(o.toLowerCase())),r.forEach(o=>qn.add(o.toLowerCase()))}function sm(a){const r=Array.isArray(a)?a:[a];a==="meta"?qn.clear():r.forEach(o=>qn.delete(o.toLowerCase()))}function F0(a,r,o){(typeof o=="function"&&o(a,r)||o===!0)&&a.preventDefault()}function q0(a,r,o){return typeof o=="function"?o(a,r):o===!0||o===void 0}const G0=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function Y0(a){return um(a,G0)}function um(a,r=!1){const{target:o,composed:s}=a;let c,f;return V0(o)&&s?(c=a.composedPath()[0]&&a.composedPath()[0].tagName,f=a.composedPath()[0]&&a.composedPath()[0].role):(c=o&&o.tagName,f=o&&o.role),Fc(r)?!!(c&&r&&r.some(d=>d.toLowerCase()===c.toLowerCase()||d===f)):!!(c&&r&&r)}function V0(a){return!!a.tagName&&!a.tagName.startsWith("-")&&a.tagName.includes("-")}function I0(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(o=>r.includes(o))||a.includes("*"):!0}const X0=(a,r,o=!1)=>{const{alt:s,meta:c,mod:f,shift:d,ctrl:m,keys:b,useKey:p}=r,{code:x,key:y,ctrlKey:A,metaKey:j,shiftKey:S,altKey:v}=a,T=wl(x);if(p&&b?.length===1&&b.includes(y))return!0;if(!b?.includes(T)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(T))return!1;if(!o){if(s!==v&&T!=="alt"||d!==S&&T!=="shift")return!1;if(f){if(!j&&!A)return!1}else if(c!==j&&T!=="meta"&&T!=="os"||m!==A&&T!=="ctrl"&&T!=="control")return!1}return b&&b.length===1&&b.includes(T)?!0:b?H0(b):!b},cm=C.createContext(void 0),Z0=()=>C.useContext(cm);function $0({addHotkey:a,removeHotkey:r,children:o}){return g.jsx(cm.Provider,{value:{addHotkey:a,removeHotkey:r},children:o})}function qc(a,r){return a&&r&&typeof a=="object"&&typeof r=="object"?Object.keys(a).length===Object.keys(r).length&&Object.keys(a).reduce((o,s)=>o&&qc(a[s],r[s]),!0):a===r}const fm=C.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),Do=()=>C.useContext(fm),K0=({initiallyActiveScopes:a=["*"],children:r})=>{const[o,s]=C.useState(a),[c,f]=C.useState([]),d=C.useCallback(y=>{s(A=>A.includes("*")?[y]:Array.from(new Set([...A,y])))},[]),m=C.useCallback(y=>{s(A=>A.filter(j=>j!==y))},[]),b=C.useCallback(y=>{s(A=>A.includes(y)?A.filter(j=>j!==y):A.includes("*")?[y]:Array.from(new Set([...A,y])))},[]),p=C.useCallback(y=>{f(A=>[...A,y])},[]),x=C.useCallback(y=>{f(A=>A.filter(j=>!qc(j,y)))},[]);return g.jsx(fm.Provider,{value:{activeScopes:o,hotkeys:c,enableScope:d,disableScope:m,toggleScope:b},children:g.jsx($0,{addHotkey:p,removeHotkey:x,children:r})})};function Q0(a){const r=C.useRef(void 0);return qc(r.current,a)||(r.current=a),r.current}const Ph=a=>{a.stopPropagation(),a.preventDefault(),a.stopImmediatePropagation()},J0=typeof window<"u"?C.useLayoutEffect:C.useEffect;function Xe(a,r,o,s){const c=C.useRef(null),f=C.useRef(!1),d=Array.isArray(o)?Array.isArray(s)?void 0:s:o,m=Fc(a)?a.join(d?.delimiter):a,b=Array.isArray(o)?o:Array.isArray(s)?s:void 0,p=C.useCallback(r,b??[]),x=C.useRef(p);b?x.current=p:x.current=r;const y=Q0(d),{activeScopes:A}=Do(),j=Z0();return J0(()=>{if(y?.enabled===!1||!I0(A,y?.scopes))return;let S=[],v;const T=(z,Q=!1)=>{if(!(Y0(z)&&!um(z,y?.enableOnFormTags))){if(c.current!==null){const H=c.current.getRootNode();if((H instanceof Document||H instanceof ShadowRoot)&&H.activeElement!==c.current&&!c.current.contains(H.activeElement)){Ph(z);return}}z.target?.isContentEditable&&!y?.enableOnContentEditable||dc(m,y?.delimiter).forEach(H=>{if(H.includes(y?.splitKey??"+")&&H.includes(y?.sequenceSplitKey??">")){console.warn(`Hotkey ${H} contains both ${y?.splitKey??"+"} and ${y?.sequenceSplitKey??">"} which is not supported.`);return}const F=gc(H,y?.splitKey,y?.sequenceSplitKey,y?.useKey,y?.description);if(F.isSequence){v=setTimeout(()=>{S=[]},y?.sequenceTimeoutMs??1e3);const V=F.useKey?z.key:wl(z.code);if(im(V.toLowerCase()))return;S.push(V);const Y=F.keys?.[S.length-1];if(V!==Y){S=[],v&&clearTimeout(v);return}S.length===F.keys?.length&&(x.current(z,F),v&&clearTimeout(v),S=[])}else if(X0(z,F,y?.ignoreModifiers)||F.keys?.includes("*")){if(y?.ignoreEventWhen?.(z)||Q&&f.current)return;if(F0(z,F,y?.preventDefault),!q0(z,F,y?.enabled)){Ph(z);return}x.current(z,F),Q||(f.current=!0)}})}},E=z=>{z.code!==void 0&&(om(wl(z.code)),(y?.keydown===void 0&&y?.keyup!==!0||y?.keydown)&&T(z))},R=z=>{z.code!==void 0&&(sm(wl(z.code)),f.current=!1,y?.keyup&&T(z,!0))},L=c.current||d?.document||document;return L.addEventListener("keyup",R,d?.eventListenerOptions),L.addEventListener("keydown",E,d?.eventListenerOptions),j&&dc(m,y?.delimiter).forEach(z=>j.addHotkey(gc(z,y?.splitKey,y?.sequenceSplitKey,y?.useKey,y?.description))),()=>{L.removeEventListener("keyup",R,d?.eventListenerOptions),L.removeEventListener("keydown",E,d?.eventListenerOptions),j&&dc(m,y?.delimiter).forEach(z=>j.removeHotkey(gc(z,y?.splitKey,y?.sequenceSplitKey,y?.useKey,y?.description))),S=[],v&&clearTimeout(v)}},[m,y,A]),c}const W0=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),P0=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,s)=>s?s.toUpperCase():o.toLowerCase()),ep=a=>{const r=P0(a);return r.charAt(0).toUpperCase()+r.slice(1)},dm=(...a)=>a.filter((r,o,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===o).join(" ").trim(),ev=a=>{for(const r in a)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};var tv={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 nv=C.forwardRef(({color:a="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:c="",children:f,iconNode:d,...m},b)=>C.createElement("svg",{ref:b,...tv,width:r,height:r,stroke:a,strokeWidth:s?Number(o)*24/Number(r):o,className:dm("lucide",c),...!f&&!ev(m)&&{"aria-hidden":"true"},...m},[...d.map(([p,x])=>C.createElement(p,x)),...Array.isArray(f)?f:[f]]));const Fe=(a,r)=>{const o=C.forwardRef(({className:s,...c},f)=>C.createElement(nv,{ref:f,iconNode:r,className:dm(`lucide-${W0(ep(a))}`,`lucide-${a}`,s),...c}));return o.displayName=ep(a),o};const lv=[["path",{d:"M19 3H5",key:"1236rx"}],["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m6 15 6 6 6-6",key:"h15q88"}]],av=Fe("arrow-down-from-line",lv);const rv=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],iv=Fe("arrow-up-from-line",rv);const ov=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ir=Fe("check",ov);const sv=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],zo=Fe("chevron-down",sv);const uv=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],gm=Fe("chevron-right",uv);const cv=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],fv=Fe("chevrons-down-up",cv);const dv=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],gv=Fe("chevrons-up-down",dv);const hv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],pv=Fe("columns-2",hv);const mv=[["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"}]],hm=Fe("copy",mv);const bv=[["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"}]],yv=Fe("eraser",bv);const vv=[["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"}]],pm=Fe("file-diff",vv);const xv=[["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"}]],mm=Fe("file-pen",xv);const Sv=[["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"}]],bm=Fe("file-plus",Sv);const wv=[["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"}]],ym=Fe("file-x",wv);const Ev=[["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"}]],Cv=Fe("folder-open",Ev);const Nv=[["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"}]],Av=Fe("folder",Nv);const Tv=[["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"}]],Rv=Fe("keyboard",Tv);const _v=[["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"}]],jv=Fe("list",_v);const kv=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ov=Fe("loader-circle",kv);const Lv=[["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"}]],vm=Fe("message-square",Lv);const Mv=[["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"}]],Dv=Fe("panel-left-close",Mv);const zv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Bv=Fe("panel-left",zv);const Uv=[["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"}]],Hv=Fe("pen",Uv);const Fv=[["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"}]],qv=Fe("refresh-cw",Fv);const Gv=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Yv=Fe("search",Gv);const Vv=[["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"}]],xm=Fe("settings",Vv);const Iv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Xv=Fe("square",Iv);const Zv=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],$v=Fe("text-align-start",Zv);const Kv=[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m15 5-3-3-3 3",key:"itvq4r"}]],Qv=Fe("unfold-vertical",Kv);const Jv=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Gc=Fe("x",Jv);function Sm({checked:a,onChange:r,label:o,className:s="",title:c}){const f=m=>{m.stopPropagation(),r(!a)},d=m=>{(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),m.stopPropagation(),r(!a))};return g.jsxs("div",{className:`flex items-center gap-2 text-xs text-github-text-primary cursor-pointer ${s}`,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(Ir,{size:10,className:"text-white"})}),o&&g.jsx("span",{className:"select-none",children:o})]})}function Wv({commentsCount:a,isCopiedAll:r,onCopyAll:o,onDeleteAll:s,onViewAll:c}){const[f,d]=C.useState(!1),m=C.useRef(null);C.useEffect(()=>{const y=A=>{m.current&&!m.current.contains(A.target)&&d(!1)};return document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)},[]);const b=()=>{o(),d(!1)},p=()=>{s(),d(!1)},x=()=>{c?.(),d(!1)};return g.jsxs("div",{className:"relative",ref:m,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(Ir,{size:12}):g.jsx(hm,{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(zo,{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:x,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(jv,{size:12}),"View All Comments"]}),g.jsxs("button",{onClick:p,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(yv,{size:12}),"Cleanup All Prompt"]})]})]})}function Yc({comment:a,onGeneratePrompt:r,onRemoveComment:o,onUpdateComment:s,onClick:c}){const[f,d]=C.useState(!1),[m,b]=C.useState(!1),[p,x]=C.useState(a.body),y=async E=>{E.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)}},A=E=>{E.stopPropagation(),b(!0),x(a.body)},j=()=>{b(!1),x(a.body)},S=E=>{E?.stopPropagation(),p.trim()!==a.body&&s(a.id,p.trim()),b(!1)},v=E=>{E.stopPropagation(),o(a.id)},T=E=>{E.key==="Enter"&&(E.metaKey||E.ctrlKey)?(E.preventDefault(),S()):E.key==="Escape"&&(E.preventDefault(),j())};return Xe("escape",()=>{m&&j()},{enableOnFormTags:["textarea"],enabled:m},[m]),Xe("mod+enter",()=>{m&&S()},{enableOnFormTags:["textarea"],enabled:m},[m,p,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:!m&&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:E=>{E.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",E.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:E=>{E.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",E.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:"Copy prompt for AI coding agent",children:f?"Copied!":"Copy Prompt"}),g.jsx("button",{onClick:A,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(Hv,{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(Ir,{size:12})})]})})]}),m?g.jsxs("div",{children:[g.jsx("textarea",{value:p,onChange:E=>x(E.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,p.split(`
|
|
10
|
+
`).length),placeholder:"Edit your comment...",autoFocus:!0,onClick:E=>E.stopPropagation(),onKeyDown:E=>{E.stopPropagation(),T(E)}}),g.jsxs("div",{className:"flex gap-2 justify-end mt-2",children:[g.jsx("button",{type:"button",onClick:j,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:S,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:E=>{E.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",E.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:E=>{E.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",E.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},disabled:!p.trim(),children:"Submit"})]})]}):g.jsx("div",{className:"text-github-text-primary text-sm leading-6 whitespace-pre-wrap",children:a.body})]})}function Pv({isOpen:a,onClose:r,onNavigate:o,comments:s,onRemoveComment:c,onGeneratePrompt:f,onUpdateComment:d}){const[m,b]=C.useState(0),p=C.useRef([]),{enableScope:x,disableScope:y}=Do(),A=[...s].sort((T,E)=>{const R=T.file.localeCompare(E.file);if(R!==0)return R;const L=Array.isArray(T.line)?T.line[0]:T.line,z=Array.isArray(E.line)?E.line[0]:E.line;return L-z}),j=C.useCallback(T=>{o(T),r()},[o,r]),S=C.useCallback(T=>{confirm(`Delete this comment?
|
|
11
|
+
|
|
12
|
+
"${T.body}"`)&&(c(T.id),m>=A.length-1&&m>0&&b(m-1))},[c,m,A.length]);C.useEffect(()=>(a?(x("comments-list"),y("navigation")):(x("navigation"),y("comments-list"),b(0)),()=>{x("navigation"),y("comments-list")}),[a,x,y]);const v={scopes:"comments-list",enableOnFormTags:!1};return Xe("escape",()=>r(),v,[r]),Xe("j, down",()=>b(T=>Math.min(T+1,A.length-1)),v,[A.length]),Xe("k, up",()=>b(T=>Math.max(T-1,0)),v,[]),Xe("enter",()=>{A[m]&&j(A[m])},v,[m,A,j]),Xe("d",()=>{A[m]&&S(A[m])},v,[m,A,S]),C.useEffect(()=>{p.current[m]&&p.current[m]?.scrollIntoView({behavior:"smooth",block:"nearest"})},[m]),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(Gc,{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:A.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:A.map((T,E)=>g.jsx("div",{ref:R=>{p.current[E]=R},className:`${m===E?"ring-2 ring-blue-500 rounded":""}`,children:g.jsx(Yc,{comment:T,onGeneratePrompt:f,onRemoveComment:c,onUpdateComment:d,onClick:R=>{R.stopPropagation(),b(E),j(T)}})},T.id))}),A.length>0&&g.jsxs("div",{className:"mt-4 pt-4 border-t border-github-border text-xs text-github-text-secondary text-center",children:[m+1," of ",A.length," comments"]})]})})})]})]}):null}function wm(a){return a&&a.split(".").pop()?.toLowerCase()||null}function e1(a){return a&&a.split("/").pop()||""}const t1=["jpg","jpeg","png","gif","bmp","svg","webp","ico","tiff","tif","avif","heic","heif"];function tp(a){if(!a)return!1;const r=wm(a);return r?t1.includes(r):!1}class n1{diff(r,o,s={}){let c;typeof s=="function"?(c=s,s={}):"callback"in s&&(c=s.callback);const f=this.castInput(r,s),d=this.castInput(o,s),m=this.removeEmpty(this.tokenize(f,s)),b=this.removeEmpty(this.tokenize(d,s));return this.diffWithOptionsObj(m,b,s,c)}diffWithOptionsObj(r,o,s,c){var f;const d=R=>{if(R=this.postProcess(R,s),c){setTimeout(function(){c(R)},0);return}else return R},m=o.length,b=r.length;let p=1,x=m+b;s.maxEditLength!=null&&(x=Math.min(x,s.maxEditLength));const y=(f=s.timeout)!==null&&f!==void 0?f:1/0,A=Date.now()+y,j=[{oldPos:-1,lastComponent:void 0}];let S=this.extractCommon(j[0],o,r,0,s);if(j[0].oldPos+1>=b&&S+1>=m)return d(this.buildValues(j[0].lastComponent,o,r));let v=-1/0,T=1/0;const E=()=>{for(let R=Math.max(v,-p);R<=Math.min(T,p);R+=2){let L;const z=j[R-1],Q=j[R+1];z&&(j[R-1]=void 0);let H=!1;if(Q){const V=Q.oldPos-R;H=Q&&0<=V&&V<m}const F=z&&z.oldPos+1<b;if(!H&&!F){j[R]=void 0;continue}if(!F||H&&z.oldPos<Q.oldPos?L=this.addToPath(Q,!0,!1,0,s):L=this.addToPath(z,!1,!0,1,s),S=this.extractCommon(L,o,r,R,s),L.oldPos+1>=b&&S+1>=m)return d(this.buildValues(L.lastComponent,o,r))||!0;j[R]=L,L.oldPos+1>=b&&(T=Math.min(T,R-1)),S+1>=m&&(v=Math.max(v,R+1))}p++};if(c)(function R(){setTimeout(function(){if(p>x||Date.now()>A)return c(void 0);E()||R()},0)})();else for(;p<=x&&Date.now()<=A;){const R=E();if(R)return R}}addToPath(r,o,s,c,f){const d=r.lastComponent;return d&&!f.oneChangePerToken&&d.added===o&&d.removed===s?{oldPos:r.oldPos+c,lastComponent:{count:d.count+1,added:o,removed:s,previousComponent:d.previousComponent}}:{oldPos:r.oldPos+c,lastComponent:{count:1,added:o,removed:s,previousComponent:d}}}extractCommon(r,o,s,c,f){const d=o.length,m=s.length;let b=r.oldPos,p=b-c,x=0;for(;p+1<d&&b+1<m&&this.equals(s[b+1],o[p+1],f);)p++,b++,x++,f.oneChangePerToken&&(r.lastComponent={count:1,previousComponent:r.lastComponent,added:!1,removed:!1});return x&&!f.oneChangePerToken&&(r.lastComponent={count:x,previousComponent:r.lastComponent,added:!1,removed:!1}),r.oldPos=b,p}equals(r,o,s){return s.comparator?s.comparator(r,o):r===o||!!s.ignoreCase&&r.toLowerCase()===o.toLowerCase()}removeEmpty(r){const o=[];for(let s=0;s<r.length;s++)r[s]&&o.push(r[s]);return o}castInput(r,o){return r}tokenize(r,o){return Array.from(r)}join(r){return r.join("")}postProcess(r,o){return r}get useLongestToken(){return!1}buildValues(r,o,s){const c=[];let f;for(;r;)c.push(r),f=r.previousComponent,delete r.previousComponent,r=f;c.reverse();const d=c.length;let m=0,b=0,p=0;for(;m<d;m++){const x=c[m];if(x.removed)x.value=this.join(s.slice(p,p+x.count)),p+=x.count;else{if(!x.added&&this.useLongestToken){let y=o.slice(b,b+x.count);y=y.map(function(A,j){const S=s[p+j];return S.length>A.length?S:A}),x.value=this.join(y)}else x.value=this.join(o.slice(b,b+x.count));b+=x.count,x.added||(p+=x.count)}}return c}}function np(a,r){let o;for(o=0;o<a.length&&o<r.length;o++)if(a[o]!=r[o])return a.slice(0,o);return a.slice(0,o)}function lp(a,r){let o;if(!a||!r||a[a.length-1]!=r[r.length-1])return"";for(o=0;o<a.length&&o<r.length;o++)if(a[a.length-(o+1)]!=r[r.length-(o+1)])return a.slice(-o);return a.slice(-o)}function Rc(a,r,o){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 o+a.slice(r.length)}function _c(a,r,o){if(!r)return a+o;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)+o}function qr(a,r){return Rc(a,r,"")}function po(a,r){return _c(a,r,"")}function ap(a,r){return r.slice(0,l1(a,r))}function l1(a,r){let o=0;a.length>r.length&&(o=a.length-r.length);let s=r.length;a.length<r.length&&(s=a.length);const c=Array(s);let f=0;c[0]=0;for(let d=1;d<s;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=o;d<a.length;d++){for(;f>0&&a[d]!=r[f];)f=c[f];a[d]==r[f]&&f++}return f}function Gr(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 rp="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}",a1=new RegExp(`[${rp}]+|\\s+|[^${rp}]`,"ug");class r1 extends n1{equals(r,o,s){return s.ignoreCase&&(r=r.toLowerCase(),o=o.toLowerCase()),r.trim()===o.trim()}tokenize(r,o={}){let s;if(o.intlSegmenter){const d=o.intlSegmenter;if(d.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');s=[];for(const m of Array.from(d.segment(r))){const b=m.segment;s.length&&/\s/.test(s[s.length-1])&&/\s/.test(b)?s[s.length-1]+=b:s.push(b)}}else s=r.match(a1)||[];const c=[];let f=null;return s.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((o,s)=>s==0?o:o.replace(/^\s+/,"")).join("")}postProcess(r,o){if(!r||o.oneChangePerToken)return r;let s=null,c=null,f=null;return r.forEach(d=>{d.added?c=d:d.removed?f=d:((c||f)&&ip(s,f,c,d),s=d,c=null,f=null)}),(c||f)&&ip(s,f,c,null),r}}const i1=new r1;function Em(a,r,o){return i1.diff(a,r,o)}function ip(a,r,o,s){if(r&&o){const c=bl(r.value),f=Gr(r.value),d=bl(o.value),m=Gr(o.value);if(a){const b=np(c,d);a.value=_c(a.value,d,b),r.value=qr(r.value,b),o.value=qr(o.value,b)}if(s){const b=lp(f,m);s.value=Rc(s.value,m,b),r.value=po(r.value,b),o.value=po(o.value,b)}}else if(o){if(a){const c=bl(o.value);o.value=o.value.substring(c.length)}if(s){const c=bl(s.value);s.value=s.value.substring(c.length)}}else if(a&&s){const c=bl(s.value),f=bl(r.value),d=Gr(r.value),m=np(c,f);r.value=qr(r.value,m);const b=lp(qr(c,m),d);r.value=po(r.value,b),s.value=Rc(s.value,c,b),a.value=_c(a.value,c,c.slice(0,c.length-b.length))}else if(s){const c=bl(s.value),f=Gr(r.value),d=ap(f,c);r.value=po(r.value,d)}else if(a){const c=Gr(a.value),f=bl(r.value),d=ap(c,f);r.value=qr(r.value,d)}}function Cm(a,r){const o=Em(a,r),s=[],c=[];for(const f of o)f.added?c.push({value:f.value,type:"added"}):f.removed?s.push({value:f.value,type:"removed"}):(s.push({value:f.value,type:"unchanged"}),c.push({value:f.value,type:"unchanged"}));return{oldSegments:s,newSegments:c}}function Nm(a,r){if(!a.trim()||!r.trim()||a===r)return!1;const o=Em(a,r);let s=0,c=0;for(const d of o)c+=d.value.length,!d.added&&!d.removed&&(s+=d.value.length);return s/c>=.2}function Am({onSubmit:a,onCancel:r}){const[o,s]=C.useState(""),[c,f]=C.useState(!1),d=async p=>{if(p.preventDefault(),!!o.trim()){f(!0);try{await a(o.trim()),s("")}catch(x){console.error("Failed to submit comment:",x)}finally{f(!1)}}},m=p=>{p.key==="Enter"&&(p.metaKey||p.ctrlKey)?d(p):p.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":!o.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:o,onChange:p=>s(p.target.value),onKeyDown:m,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:p=>{p.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",p.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:p=>{p.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",p.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},disabled:!o.trim()||c,children:c?"Submitting...":"Submit"})]})]})}const wo=bn.memo(({onMouseDown:a,onMouseUp:r,title:o="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:s=>{s.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",s.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:s=>{s.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",s.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},onMouseDown:a,onMouseUp:r,title:o,children:g.jsx(vm,{className:"w-4 h-4"})}));wo.displayName="CommentButton";const o1=2,s1=100;function u1(a){return!(a.length<o1||a.length>s1)}function op(a){return a.toLowerCase()}function sp(a){const r=a.trim();return r?r.match(/^\w+$/)!==null&&u1(r):!1}const c1=200,Tm=C.createContext(void 0);function f1({children:a}){const[r,o]=C.useState(null),s=C.useRef(null),c=C.useCallback(()=>{s.current&&(clearTimeout(s.current),s.current=null)},[]),f=C.useCallback(p=>{const x=p.target;if(!x.classList.contains("word-token"))return;c();const y=x.getAttribute("data-word");y&&(s.current=setTimeout(()=>{o(y)},c1))},[c]),d=C.useCallback(()=>{c(),o(null)},[c]),m=C.useCallback(p=>r?op(p)===op(r):!1,[r]);C.useEffect(()=>()=>{s.current&&clearTimeout(s.current)},[]);const b={highlightedWord:r,handleMouseOver:f,handleMouseOut:d,isWordHighlighted:m};return g.jsx(Tm.Provider,{value:b,children:a})}function d1(){const a=C.useContext(Tm);if(!a)throw new Error("useWordHighlight must be used within a WordHighlightProvider");return a}function Rm(a){var r,o,s="";if(typeof a=="string"||typeof a=="number")s+=a;else if(typeof a=="object")if(Array.isArray(a)){var c=a.length;for(r=0;r<c;r++)a[r]&&(o=Rm(a[r]))&&(s&&(s+=" "),s+=o)}else for(o in a)a[o]&&(s&&(s+=" "),s+=o);return s}function _m(){for(var a,r,o=0,s="",c=arguments.length;o<c;o++)(a=arguments[o])&&(r=Rm(a))&&(s&&(s+=" "),s+=r);return s}var g1=Object.create,Bo=Object.defineProperty,h1=Object.defineProperties,p1=Object.getOwnPropertyDescriptor,m1=Object.getOwnPropertyDescriptors,jm=Object.getOwnPropertyNames,Eo=Object.getOwnPropertySymbols,b1=Object.getPrototypeOf,Vc=Object.prototype.hasOwnProperty,km=Object.prototype.propertyIsEnumerable,up=(a,r,o)=>r in a?Bo(a,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[r]=o,pn=(a,r)=>{for(var o in r||(r={}))Vc.call(r,o)&&up(a,o,r[o]);if(Eo)for(var o of Eo(r))km.call(r,o)&&up(a,o,r[o]);return a},Uo=(a,r)=>h1(a,m1(r)),Om=(a,r)=>{var o={};for(var s in a)Vc.call(a,s)&&r.indexOf(s)<0&&(o[s]=a[s]);if(a!=null&&Eo)for(var s of Eo(a))r.indexOf(s)<0&&km.call(a,s)&&(o[s]=a[s]);return o},y1=(a,r)=>function(){return r||(0,a[jm(a)[0]])((r={exports:{}}).exports,r),r.exports},v1=(a,r)=>{for(var o in r)Bo(a,o,{get:r[o],enumerable:!0})},x1=(a,r,o,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of jm(r))!Vc.call(a,c)&&c!==o&&Bo(a,c,{get:()=>r[c],enumerable:!(s=p1(r,c))||s.enumerable});return a},S1=(a,r,o)=>(o=a!=null?g1(b1(a)):{},x1(!a||!a.__esModule?Bo(o,"default",{value:a,enumerable:!0}):o,a)),w1=y1({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(a,r){var o=(function(){var s=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,c=0,f={},d={util:{encode:function S(v){return v instanceof m?new m(v.type,S(v.content),v.alias):Array.isArray(v)?v.map(S):v.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(S){return Object.prototype.toString.call(S).slice(8,-1)},objId:function(S){return S.__id||Object.defineProperty(S,"__id",{value:++c}),S.__id},clone:function S(v,T){T=T||{};var E,R;switch(d.util.type(v)){case"Object":if(R=d.util.objId(v),T[R])return T[R];E={},T[R]=E;for(var L in v)v.hasOwnProperty(L)&&(E[L]=S(v[L],T));return E;case"Array":return R=d.util.objId(v),T[R]?T[R]:(E=[],T[R]=E,v.forEach(function(z,Q){E[Q]=S(z,T)}),E);default:return v}},getLanguage:function(S){for(;S;){var v=s.exec(S.className);if(v)return v[1].toLowerCase();S=S.parentElement}return"none"},setLanguage:function(S,v){S.className=S.className.replace(RegExp(s,"gi"),""),S.classList.add("language-"+v)},isActive:function(S,v,T){for(var E="no-"+v;S;){var R=S.classList;if(R.contains(v))return!0;if(R.contains(E))return!1;S=S.parentElement}return!!T}},languages:{plain:f,plaintext:f,text:f,txt:f,extend:function(S,v){var T=d.util.clone(d.languages[S]);for(var E in v)T[E]=v[E];return T},insertBefore:function(S,v,T,E){E=E||d.languages;var R=E[S],L={};for(var z in R)if(R.hasOwnProperty(z)){if(z==v)for(var Q in T)T.hasOwnProperty(Q)&&(L[Q]=T[Q]);T.hasOwnProperty(z)||(L[z]=R[z])}var H=E[S];return E[S]=L,d.languages.DFS(d.languages,function(F,V){V===H&&F!=S&&(this[F]=L)}),L},DFS:function S(v,T,E,R){R=R||{};var L=d.util.objId;for(var z in v)if(v.hasOwnProperty(z)){T.call(v,z,v[z],E||z);var Q=v[z],H=d.util.type(Q);H==="Object"&&!R[L(Q)]?(R[L(Q)]=!0,S(Q,T,null,R)):H==="Array"&&!R[L(Q)]&&(R[L(Q)]=!0,S(Q,T,z,R))}}},plugins:{},highlight:function(S,v,T){var E={code:S,grammar:v,language:T};if(d.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=d.tokenize(E.code,E.grammar),d.hooks.run("after-tokenize",E),m.stringify(d.util.encode(E.tokens),E.language)},tokenize:function(S,v){var T=v.rest;if(T){for(var E in T)v[E]=T[E];delete v.rest}var R=new x;return y(R,R.head,S),p(S,R,v,R.head,0),j(R)},hooks:{all:{},add:function(S,v){var T=d.hooks.all;T[S]=T[S]||[],T[S].push(v)},run:function(S,v){var T=d.hooks.all[S];if(!(!T||!T.length))for(var E=0,R;R=T[E++];)R(v)}},Token:m};function m(S,v,T,E){this.type=S,this.content=v,this.alias=T,this.length=(E||"").length|0}m.stringify=function S(v,T){if(typeof v=="string")return v;if(Array.isArray(v)){var E="";return v.forEach(function(H){E+=S(H,T)}),E}var R={type:v.type,content:S(v.content,T),tag:"span",classes:["token",v.type],attributes:{},language:T},L=v.alias;L&&(Array.isArray(L)?Array.prototype.push.apply(R.classes,L):R.classes.push(L)),d.hooks.run("wrap",R);var z="";for(var Q in R.attributes)z+=" "+Q+'="'+(R.attributes[Q]||"").replace(/"/g,""")+'"';return"<"+R.tag+' class="'+R.classes.join(" ")+'"'+z+">"+R.content+"</"+R.tag+">"};function b(S,v,T,E){S.lastIndex=v;var R=S.exec(T);if(R&&E&&R[1]){var L=R[1].length;R.index+=L,R[0]=R[0].slice(L)}return R}function p(S,v,T,E,R,L){for(var z in T)if(!(!T.hasOwnProperty(z)||!T[z])){var Q=T[z];Q=Array.isArray(Q)?Q:[Q];for(var H=0;H<Q.length;++H){if(L&&L.cause==z+","+H)return;var F=Q[H],V=F.inside,Y=!!F.lookbehind,X=!!F.greedy,K=F.alias;if(X&&!F.pattern.global){var W=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,W+"g")}for(var ne=F.pattern||F,B=E.next,re=R;B!==v.tail&&!(L&&re>=L.reach);re+=B.value.length,B=B.next){var N=B.value;if(v.length>S.length)return;if(!(N instanceof m)){var k=1,O;if(X){if(O=b(ne,re,S,Y),!O||O.index>=S.length)break;var D=O.index,I=O.index+O[0].length,P=re;for(P+=B.value.length;D>=P;)B=B.next,P+=B.value.length;if(P-=B.value.length,re=P,B.value instanceof m)continue;for(var _=B;_!==v.tail&&(P<I||typeof _.value=="string");_=_.next)k++,P+=_.value.length;k--,N=S.slice(re,P),O.index-=re}else if(O=b(ne,0,N,Y),!O)continue;var D=O.index,G=O[0],le=N.slice(0,D),ue=N.slice(D+G.length),fe=re+N.length;L&&fe>L.reach&&(L.reach=fe);var ce=B.prev;le&&(ce=y(v,ce,le),re+=le.length),A(v,ce,k);var ge=new m(z,V?d.tokenize(G,V):G,K,G);if(B=y(v,ce,ge),ue&&y(v,B,ue),k>1){var de={cause:z+","+H,reach:fe};p(S,v,T,B.prev,re,de),L&&de.reach>L.reach&&(L.reach=de.reach)}}}}}}function x(){var S={value:null,prev:null,next:null},v={value:null,prev:S,next:null};S.next=v,this.head=S,this.tail=v,this.length=0}function y(S,v,T){var E=v.next,R={value:T,prev:v,next:E};return v.next=R,E.prev=R,S.length++,R}function A(S,v,T){for(var E=v.next,R=0;R<T&&E!==S.tail;R++)E=E.next;v.next=E,E.prev=v,S.length-=R}function j(S){for(var v=[],T=S.head.next;T!==S.tail;)v.push(T.value),T=T.next;return v}return d})();r.exports=o,o.default=o}}),oe=S1(w1());oe.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]},oe.languages.markup.tag.inside["attr-value"].inside.entity=oe.languages.markup.entity,oe.languages.markup.doctype.inside["internal-subset"].inside=oe.languages.markup,oe.hooks.add("wrap",function(a){a.type==="entity"&&(a.attributes.title=a.content.replace(/&/,"&"))}),Object.defineProperty(oe.languages.markup.tag,"addInlined",{value:function(a,s){var o={},o=(o["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:oe.languages[s]},o.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}}),s=(o["language-"+s]={pattern:/[\s\S]+/,inside:oe.languages[s]},{});s[a]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return a}),"i"),lookbehind:!0,greedy:!0,inside:o},oe.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(oe.languages.markup.tag,"addAttribute",{value:function(a,r){oe.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:oe.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),oe.languages.html=oe.languages.markup,oe.languages.mathml=oe.languages.markup,oe.languages.svg=oe.languages.markup,oe.languages.xml=oe.languages.extend("markup",{}),oe.languages.ssml=oe.languages.xml,oe.languages.atom=oe.languages.xml,oe.languages.rss=oe.languages.xml,(function(a){var r={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},o=/\\(?: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]|.)/,s="(?:[^\\\\-]|"+o.source+")",s=RegExp(s+"-"+s),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:s,inside:{escape:o,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":r,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:o}},"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:o,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":c}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(oe),oe.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:/[{}[\];(),.:]/},oe.languages.javascript=oe.languages.extend("clike",{"class-name":[oe.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}|\?\?=?|\?\.?|[~:]/}),oe.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,oe.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:oe.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:oe.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:oe.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:oe.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:oe.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),oe.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:oe.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"}}),oe.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),oe.languages.markup&&(oe.languages.markup.tag.addInlined("script","javascript"),oe.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")),oe.languages.js=oe.languages.javascript,oe.languages.actionscript=oe.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:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),oe.languages.actionscript["class-name"].alias="function",delete oe.languages.actionscript.parameter,delete oe.languages.actionscript["literal-property"],oe.languages.markup&&oe.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:oe.languages.markup}}),(function(a){var r=/#(?!\{).+/,o={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:o}}],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:o}}}),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:o}}]}),a.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete a.languages.coffeescript["template-string"],a.languages.coffee=a.languages.coffeescript})(oe),(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(o,s){(o=typeof o=="string"?[o]:o).forEach(function(c){var f=function(y){y.inside||(y.inside={}),y.inside.rest=s},d="doc-comment";if(m=a.languages[c]){var m,b=m[d];if((b=b||(m=a.languages.insertBefore(c,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[d])instanceof RegExp&&(b=m[d]={pattern:b}),Array.isArray(b))for(var p=0,x=b.length;p<x;p++)b[p]instanceof RegExp&&(b[p]={pattern:b[p]}),f(b[p]);else f(b)}})}}),r.addSupport(["java","javascript","php"],r)})(oe),(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"))})(oe),(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}),o={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:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:o})})(oe),(function(a){var r=/[*&][^\s[\]{},]+/,o=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,s="(?:"+o.source+"(?:[ ]+"+r.source+")?|"+r.source+"(?:[ ]+"+o.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(m,b){b=(b||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return s}).replace(/<<value>>/g,function(){return m});return RegExp(p,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 s})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return s}).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:o,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},a.languages.yml=a.languages.yaml})(oe),(function(a){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function o(p){return p=p.replace(/<inner>/g,function(){return r}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+p+")")}var s=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,c=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return s}),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(s),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(s),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:o(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:o(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:o(/(~~?)(?:(?!~)<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:o(/!?\[(?:(?!\])<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(p){["url","bold","italic","strike","code-snippet"].forEach(function(x){p!==x&&(a.languages.markdown[p].inside.content.inside[x]=a.languages.markdown[x])})}),a.hooks.add("after-tokenize",function(p){p.language!=="markdown"&&p.language!=="md"||(function x(y){if(y&&typeof y!="string")for(var A=0,j=y.length;A<j;A++){var S,v=y[A];v.type!=="code"?x(v.content):(S=v.content[1],v=v.content[3],S&&v&&S.type==="code-language"&&v.type==="code-block"&&typeof S.content=="string"&&(S=S.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),S="language-"+(S=(/[a-z][\w-]*/i.exec(S)||[""])[0].toLowerCase()),v.alias?typeof v.alias=="string"?v.alias=[v.alias,S]:v.alias.push(S):v.alias=[S]))}})(p.tokens)}),a.hooks.add("wrap",function(p){if(p.type==="code-block"){for(var x="",y=0,A=p.classes.length;y<A;y++){var j=p.classes[y],j=/language-(.+)/.exec(j);if(j){x=j[1];break}}var S,v=a.languages[x];v?p.content=a.highlight((function(T){return T=T.replace(d,""),T=T.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(E,R){var L;return(R=R.toLowerCase())[0]==="#"?(L=R[1]==="x"?parseInt(R.slice(2),16):Number(R.slice(1)),b(L)):m[R]||E})})(p.content),v,x):x&&x!=="none"&&a.plugins.autoloader&&(S="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),p.attributes.id=S,a.plugins.autoloader.loadLanguages(x,function(){var T=document.getElementById(S);T&&(T.innerHTML=a.highlight(T.textContent,a.languages[x],x))}))}}),RegExp(a.languages.markup.tag.pattern.source,"gi")),m={amp:"&",lt:"<",gt:">",quot:'"'},b=String.fromCodePoint||String.fromCharCode;a.languages.md=a.languages.markdown})(oe),oe.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:oe.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+/},oe.hooks.add("after-tokenize",function(a){if(a.language==="graphql")for(var r=a.tokens.filter(function(S){return typeof S!="string"&&S.type!=="comment"&&S.type!=="scalar"}),o=0;o<r.length;){var s=r[o++];if(s.type==="keyword"&&s.content==="mutation"){var c=[];if(y(["definition-mutation","punctuation"])&&x(1).content==="("){o+=2;var f=A(/^\($/,/^\)$/);if(f===-1)continue;for(;o<f;o++){var d=x(0);d.type==="variable"&&(j(d,"variable-input"),c.push(d.content))}o=f+1}if(y(["punctuation","property-query"])&&x(0).content==="{"&&(o++,j(x(0),"property-mutation"),0<c.length)){var m=A(/^\{$/,/^\}$/);if(m!==-1)for(var b=o;b<m;b++){var p=r[b];p.type==="variable"&&0<=c.indexOf(p.content)&&j(p,"variable-input")}}}}function x(S){return r[o+S]}function y(S,v){v=v||0;for(var T=0;T<S.length;T++){var E=x(T+v);if(!E||E.type!==S[T])return}return 1}function A(S,v){for(var T=1,E=o;E<r.length;E++){var R=r[E],L=R.content;if(R.type==="punctuation"&&typeof L=="string"){if(S.test(L))T++;else if(v.test(L)&&--T===0)return E}}return-1}function j(S,v){var T=S.alias;T?Array.isArray(T)||(S.alias=T=[T]):S.alias=T=[],T.push(v)}}),oe.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"],o=r.pattern.source,s=r.inside.interpolation,c=s.inside["interpolation-punctuation"],f=s.pattern.source;function d(y,A){if(a.languages[y])return{pattern:RegExp("((?:"+A+")\\s*)"+o),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:y}}}}function m(y,A,j){return y={code:y,grammar:A,language:j},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,A,j){var T=a.tokenize(y,{interpolation:{pattern:RegExp(f),lookbehind:!0}}),S=0,v={},T=m(T.map(function(R){if(typeof R=="string")return R;for(var L,z,R=R.content;y.indexOf((z=S++,L="___"+j.toUpperCase()+"_"+z+"___"))!==-1;);return v[L]=R,L}).join(""),A,j),E=Object.keys(v);return S=0,(function R(L){for(var z=0;z<L.length;z++){if(S>=E.length)return;var Q,H,F,V,Y,X,K,W=L[z];typeof W=="string"||typeof W.content=="string"?(Q=E[S],(K=(X=typeof W=="string"?W:W.content).indexOf(Q))!==-1&&(++S,H=X.substring(0,K),Y=v[Q],F=void 0,(V={})["interpolation-punctuation"]=c,(V=a.tokenize(Y,V)).length===3&&((F=[1,1]).push.apply(F,m(V[1],a.languages.javascript,"javascript")),V.splice.apply(V,F)),F=new a.Token("interpolation",V,s.alias,Y),V=X.substring(K+Q.length),Y=[],H&&Y.push(H),Y.push(F),V&&(R(X=[V]),Y.push.apply(Y,X)),typeof W=="string"?(L.splice.apply(L,[z,1].concat(Y)),z+=Y.length-1):W.content=Y)):(K=W.content,Array.isArray(K)?R(K):R([K]))}})(T),new a.Token(j,T,"language-"+j,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 p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function x(y){return typeof y=="string"?y:Array.isArray(y)?y.map(x).join(""):x(y.content)}a.hooks.add("after-tokenize",function(y){y.language in p&&(function A(j){for(var S=0,v=j.length;S<v;S++){var T,E,R,L=j[S];typeof L!="string"&&(T=L.content,Array.isArray(T)?L.type==="template-string"?(L=T[1],T.length===3&&typeof L!="string"&&L.type==="embedded-code"&&(E=x(L),L=L.alias,L=Array.isArray(L)?L[0]:L,R=a.languages[L])&&(T[1]=b(E,R,L))):A(T):typeof T!="string"&&A([T]))}})(y.tokens)})})(oe),(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})(oe),(function(a){var r=a.languages.javascript,o=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,s="(@(?:arg|argument|param|property)\\s+(?:"+o+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(s+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(s+/\[(?:(?!\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 o})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+o),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)})(oe),(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})})(oe),oe.languages.n4js=oe.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/}),oe.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),oe.languages.n4jsd=oe.languages.n4js,(function(a){function r(d,m){return RegExp(d.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),m)}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 o=["function","function-variable","method","method-variable","property-access"],s=0;s<o.length;s++){var f=o[s],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]*/}})(oe),(function(a){var r=a.util.clone(a.languages.javascript),o=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,s=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,c=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function f(b,p){return b=b.replace(/<S>/g,function(){return o}).replace(/<BRACES>/g,function(){return s}).replace(/<SPREAD>/g,function(){return c}),RegExp(b,p)}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 p=[],x=0;x<b.length;x++){var y=b[x],A=!1;typeof y!="string"&&(y.type==="tag"&&y.content[0]&&y.content[0].type==="tag"?y.content[0].content[0].content==="</"?0<p.length&&p[p.length-1].tagName===m(y.content[0].content[1])&&p.pop():y.content[y.content.length-1].content!=="/>"&&p.push({tagName:m(y.content[0].content[1]),openedBraces:0}):0<p.length&&y.type==="punctuation"&&y.content==="{"?p[p.length-1].openedBraces++:0<p.length&&0<p[p.length-1].openedBraces&&y.type==="punctuation"&&y.content==="}"?p[p.length-1].openedBraces--:A=!0),(A||typeof y=="string")&&0<p.length&&p[p.length-1].openedBraces===0&&(A=m(y),x<b.length-1&&(typeof b[x+1]=="string"||b[x+1].type==="plain-text")&&(A+=m(b[x+1]),b.splice(x+1,1)),0<x&&(typeof b[x-1]=="string"||b[x-1].type==="plain-text")&&(A=m(b[x-1])+A,b.splice(x-1,1),x--),b[x]=new a.Token("plain-text",A,null,A)),y.content&&typeof y.content!="string"&&d(y.content)}}var m=function(b){return b?typeof b=="string"?b:typeof b.content=="string"?b.content:b.content.map(m).join(""):""};a.hooks.add("after-tokenize",function(b){b.language!=="jsx"&&b.language!=="tsx"||d(b.tokens)})})(oe),(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})(oe),oe.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:/[{}[\]();,.:\\]/},oe.languages.swift["string-literal"].forEach(function(a){a.inside.interpolation.inside=oe.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})(oe),oe.languages.c=oe.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|[?:~]|[-+*/%&|^!=<>]=?/}),oe.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),oe.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},oe.languages.c.string],char:oe.languages.c.char,comment:oe.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:oe.languages.c}}}}),oe.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 oe.languages.c.boolean,oe.languages.objectivec=oe.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 oe.languages.objectivec["class-name"],oe.languages.objc=oe.languages.objectivec,oe.languages.reason=oe.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/}),oe.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 oe.languages.reason.function,(function(a){for(var r=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,o=0;o<2;o++)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})(oe),oe.languages.go=oe.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/}),oe.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete oe.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/,o=/\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 o})+")"),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"])})(oe),oe.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:/[{}[\];(),.:]/},oe.languages.python["string-interpolation"].inside.interpolation.inside.rest=oe.languages.python,oe.languages.py=oe.languages.python,oe.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"}},oe.languages.webmanifest=oe.languages.json;var Zt={};v1(Zt,{dracula:()=>C1,duotoneDark:()=>A1,duotoneLight:()=>R1,github:()=>j1,gruvboxMaterialDark:()=>rx,gruvboxMaterialLight:()=>ox,jettwaveDark:()=>J1,jettwaveLight:()=>P1,nightOwl:()=>O1,nightOwlLight:()=>M1,oceanicNext:()=>z1,okaidia:()=>U1,oneDark:()=>tx,oneLight:()=>lx,palenight:()=>F1,shadesOfPurple:()=>G1,synthwave84:()=>V1,ultramin:()=>X1,vsDark:()=>Lm,vsLight:()=>K1});var E1={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)"}}]},C1=E1,N1={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"}}]},A1=N1,T1={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"}}]},R1=T1,_1={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"}}]},j1=_1,k1={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)"}}]},O1=k1,L1={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)"}}]},M1=L1,Xt={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},D1={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Xt.keyword}},{types:["attr-value"],style:{color:Xt.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:Xt.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:Xt.primitive}},{types:["boolean"],style:{color:Xt.boolean}},{types:["tag"],style:{color:Xt.tag}},{types:["string"],style:{color:Xt.string}},{types:["punctuation"],style:{color:Xt.string}},{types:["selector","char","builtin","inserted"],style:{color:Xt.char}},{types:["function"],style:{color:Xt.function}},{types:["operator","entity","url","variable"],style:{color:Xt.variable}},{types:["keyword"],style:{color:Xt.keyword}},{types:["atrule","class-name"],style:{color:Xt.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},z1=D1,B1={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"}}]},U1=B1,H1={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)"}}]},F1=H1,q1={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)"}}]},G1=q1,Y1={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"}}]},V1=Y1,I1={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)"}}]},X1=I1,Z1={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)"}}]},Lm=Z1,$1={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)"}}]},K1=$1,Q1={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"}}]},J1=Q1,W1={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"}}]},P1=W1,ex={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%)"}}]},tx=ex,nx={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%)"}}]},lx=nx,ax={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"}}]},rx=ax,ix={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"}}]},ox=ix,sx=a=>C.useCallback(r=>{var o=r,{className:s,style:c,line:f}=o,d=Om(o,["className","style","line"]);const m=Uo(pn({},d),{className:_m("token-line",s)});return typeof a=="object"&&"plain"in a&&(m.style=a.plain),typeof c=="object"&&(m.style=pn(pn({},m.style||{}),c)),m},[a]),ux=a=>{const r=C.useCallback(({types:o,empty:s})=>{if(a!=null){{if(o.length===1&&o[0]==="plain")return s!=null?{display:"inline-block"}:void 0;if(o.length===1&&s!=null)return a[o[0]]}return Object.assign(s!=null?{display:"inline-block"}:{},...o.map(c=>a[c]))}},[a]);return C.useCallback(o=>{var s=o,{token:c,className:f,style:d}=s,m=Om(s,["token","className","style"]);const b=Uo(pn({},m),{className:_m("token",...c.types,f),children:c.content,style:r(c)});return d!=null&&(b.style=pn(pn({},b.style||{}),d)),b},[r])},cx=/\r\n|\r|\n/,cp=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)},fp=(a,r)=>{const o=a.length;return o>0&&a[o-1]===r?a:a.concat(r)},fx=a=>{const r=[[]],o=[a],s=[0],c=[a.length];let f=0,d=0,m=[];const b=[m];for(;d>-1;){for(;(f=s[d]++)<c[d];){let p,x=r[d];const A=o[d][f];if(typeof A=="string"?(x=d>0?x:["plain"],p=A):(x=fp(x,A.type),A.alias&&(x=fp(x,A.alias)),p=A.content),typeof p!="string"){d++,r.push(x),o.push(p),s.push(0),c.push(p.length);continue}const j=p.split(cx),S=j.length;m.push({types:x,content:j[0]});for(let v=1;v<S;v++)cp(m),b.push(m=[]),m.push({types:x,content:j[v]})}d--,r.pop(),o.pop(),s.pop(),c.pop()}return cp(m),b},dp=fx,dx=({prism:a,code:r,grammar:o,language:s})=>C.useMemo(()=>{if(o==null)return dp([r]);const c={code:r,grammar:o,language:s,tokens:[]};return a.hooks.run("before-tokenize",c),c.tokens=a.tokenize(r,o),a.hooks.run("after-tokenize",c),dp(c.tokens)},[r,o,s,a]),gx=(a,r)=>{const{plain:o}=a,s=a.styles.reduce((c,f)=>{const{languages:d,style:m}=f;return d&&!d.includes(r)||f.types.forEach(b=>{const p=pn(pn({},c[b]),m);c[b]=p}),c},{});return s.root=o,s.plain=Uo(pn({},o),{backgroundColor:void 0}),s},hx=gx,px=({children:a,language:r,code:o,theme:s,prism:c})=>{const f=r.toLowerCase(),d=hx(s,f),m=sx(d),b=ux(d),p=c.languages[f],x=dx({prism:c,language:f,code:o,grammar:p});return a({tokens:x,className:`prism-code language-${f}`,style:d!=null?d.root:{},getLineProps:m,getTokenProps:b})},mx=a=>C.createElement(px,Uo(pn({},a),{prism:a.prism||oe,theme:a.theme||Lm,code:a.code,language:a.language}));const bx="modulepreload",yx=function(a){return"/"+a},gp={},xt=function(r,o,s){let c=Promise.resolve();if(o&&o.length>0){let b=function(p){return Promise.all(p.map(x=>Promise.resolve(x).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),m=d?.nonce||d?.getAttribute("nonce");c=b(o.map(p=>{if(p=yx(p),p in gp)return;gp[p]=!0;const x=p.endsWith(".css"),y=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const A=document.createElement("link");if(A.rel=x?"stylesheet":bx,x||(A.as="script"),A.crossOrigin="",A.href=p,m&&A.setAttribute("nonce",m),document.head.appendChild(A),x)return new Promise((j,S)=>{A.addEventListener("load",j),A.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${p}`)))})}))}function f(d){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=d,window.dispatchEvent(m),!m.defaultPrevented)throw d}return c.then(d=>{for(const m of d||[])m.status==="rejected"&&f(m.reason);return r().catch(f)})},mo={};function Mm(a){if(!mo[a]){const o={bash:()=>xt(()=>import("./prism-bash-DTkDXsAh.js"),[]),sh:()=>xt(()=>import("./prism-bash-DTkDXsAh.js"),[]),shell:()=>xt(()=>import("./prism-bash-DTkDXsAh.js"),[]),php:async()=>(await xt(()=>import("./prism-markup-templating-Ct1xsyfA.js"),[]),xt(()=>import("./prism-php-asV46xk7.js").then(s=>s.p),[])),sql:()=>xt(()=>import("./prism-sql-AgAyy5H_.js"),[]),ruby:()=>xt(()=>import("./prism-ruby-bxuH3ANF.js").then(s=>s.p),[]),java:()=>xt(()=>import("./prism-java-B2aDMewO.js").then(s=>s.p),[]),scala:async()=>(await Mm("java"),xt(()=>import("./prism-scala-BjNo2HkN.js"),[])),solidity:()=>xt(()=>import("./prism-solidity-4eoXCiMk.js").then(s=>s.p),[]),vim:()=>xt(()=>import("./prism-vim-uciLQ2PQ.js"),[]),dart:()=>xt(()=>import("./prism-dart-MjriiaMt.js"),[]),csharp:()=>xt(()=>import("./prism-csharp-Z74gxFlv.js").then(s=>s.p),[]),protobuf:()=>xt(()=>import("./prism-protobuf-DiQ_z8B5.js"),[]),hcl:()=>xt(()=>import("./prism-hcl-BOBpZ5TL.js").then(s=>s.p),[]),perl:()=>xt(()=>import("./prism-perl-DdGQmB7G.js").then(s=>s.p),[])}[a];if(!o)return console.warn(`No loader available for language: ${a}`),Promise.reject(new Error(`Unsupported language: ${a}`));mo[a]=o().then(()=>{}).catch(s=>{throw delete mo[a],console.warn(`Failed to load language: ${a}`,s),s})}return mo[a]}typeof global<"u"?global.Prism=oe:typeof window<"u"&&(window.Prism=oe);const hp=["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 vx(a,r){const[o,s]=C.useState(()=>hp.includes(r)||!!oe.languages[r]);return C.useEffect(()=>{if(!o){if(hp.includes(r)){s(!0);return}Mm(r).then(()=>{s(!0)}).catch(()=>{s(!1)})}},[r,o]),{ready:o,actualLang:o?r:"text"}}const pp=[{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"}],mp=[{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 xx(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=Zt.github;break;case"vsLight":r=Zt.vsLight;break;case"oneLight":r=Zt.oneLight;break;case"gruvboxMaterialLight":r=Zt.gruvboxMaterialLight;break;case"nightOwlLight":r=Zt.nightOwlLight;break;case"vsDark":r=Zt.vsDark;break;case"oneDark":r=Zt.oneDark;break;case"gruvboxMaterialDark":r=Zt.gruvboxMaterialDark;break;case"nightOwl":r=Zt.nightOwl;break;case"dracula":r=Zt.dracula;break;case"okaidia":r=Zt.okaidia;break;default:r=Zt.vsDark}return xx(r)}function wx(a){const r=e1(a).toLowerCase(),o=wm(a),s={dockerfile:"docker",makefile:"makefile",".gitignore":"git",".env":"bash",".bashrc":"bash",".zshrc":"bash",".bash_profile":"bash",".profile":"bash"};return s[r]?s[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"}[o||""]||"text"}const Ex=bn.memo(function({code:r,language:o,className:s,syntaxTheme:c="vsDark",filename:f="",renderToken:d,onMouseOver:m,onMouseOut:b}){const p=o||(f?wx(f):"text"),{actualLang:x}=vx(r,p),y=Sx(c),A=C.useCallback(({style:j,tokens:S,getLineProps:v,getTokenProps:T})=>g.jsx("span",{className:s,style:{...j,background:"transparent",backgroundColor:"transparent"},onMouseOver:m,onMouseOut:b,children:S.map((E,R)=>g.jsx("span",{...v({line:E}),children:E.map((L,z)=>d?d(L,z,T):g.jsx("span",{...T({token:L})},z))},R))}),[s,m,b,d]);return g.jsx(mx,{code:r,language:x,theme:y,prism:oe,children:A})}),jc=bn.memo(function(r){const{handleMouseOver:o,handleMouseOut:s,isWordHighlighted:c}=d1(),f=C.useCallback((d,m,b)=>{const p=b({token:d}),x=d.content.split(/( +)/);if(x.length===1&&x[0]&&!sp(x[0]))return g.jsx("span",{...p},m);const y=x.map((A,j)=>{if(!A)return null;if(sp(A)){const S=A.trim(),v=c(S);return g.jsx("span",{className:`word-token ${v?"word-highlight":""}`,"data-word":S,children:A},`${m}-${j}`)}return g.jsx("span",{children:A},`${m}-${j}`)});return g.jsx("span",{...p,children:y},m)},[c]);return g.jsx(Ex,{...r,renderToken:f,onMouseOver:o,onMouseOut:s})}),kc=bn.memo(function({segments:r,className:o=""}){const s=C.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:o,children:s})}),Cx=a=>{if("isExpanded"in a&&a.isExpanded)return"bg-github-bg-tertiary/80";switch(a.type){case"add":return"bg-diff-addition-bg";case"delete":return"bg-diff-deletion-bg";default:return"bg-transparent"}},Nx=a=>{switch(a.type){case"add":return"+";case"delete":return"-";default:return" "}},Dm=bn.memo(({line:a,index:r,lineId:o,isCurrentLine:s=!1,hoveredLineIndex:c,selectedLineStyle:f,onMouseEnter:d,onMouseLeave:m,onMouseMove:b,onCommentButtonMouseDown:p,onCommentButtonMouseUp:x,syntaxTheme:y,onClick:A,filename:j,diffSegments:S})=>{const v=a.newLineNumber||a.oldLineNumber,T=c===r&&v,E=s?"keyboard-cursor":"";return g.jsxs("tr",{id:o,className:`group ${Cx(a)} relative ${f} ${E} cursor-pointer`,onMouseEnter:d,onMouseLeave:m,onMouseMove:b,onClick:A,children:[g.jsx("td",{className:"w-[var(--line-number-width)] min-w-[var(--line-number-width)] max-w-[var(--line-number-width)] 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-[var(--line-number-width)] min-w-[var(--line-number-width)] max-w-[var(--line-number-width)] 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",{children:a.newLineNumber||""}),T&&g.jsx(wo,{onMouseDown:p,onMouseUp:x})]}),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:Nx(a)}),S?g.jsx(kc,{segments:S,className:"flex-1 px-3 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):g.jsx(jc,{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:j})]})})]})});Dm.displayName="DiffLineRow";const bp=a=>a!==void 0&&"isExpanded"in a&&a.isExpanded===!0,yp=(a,r)=>r?"bg-github-bg-tertiary/80":a?.type==="delete"?"bg-diff-deletion-bg":a?.type==="add"?"bg-diff-addition-bg":a?.type==="normal"?"bg-transparent":"bg-github-bg-secondary";function Ax({chunk:a,chunkIndex:r,comments:o,onAddComment:s,onGeneratePrompt:c,onRemoveComment:f,onUpdateComment:d,syntaxTheme:m,cursor:b=null,fileIndex:p=0,onLineClick:x,commentTrigger:y,onCommentTriggerHandled:A,filename:j}){const[S,v]=C.useState(null),[T,E]=C.useState(null),[R,L]=C.useState(!1),[z,Q]=C.useState(null),[H,F]=C.useState(null);C.useEffect(()=>{if(y?.lineIndex!==void 0){const N=a.lines[y.lineIndex];if(N&&N.type!=="delete"){const k=N.newLineNumber;k&&(Q({side:"new",lineNumber:k}),A?.())}}},[y,a.lines,A]),C.useEffect(()=>{if(R){const N=()=>{L(!1),v(null),E(null)};return document.addEventListener("mouseup",N),()=>{document.removeEventListener("mouseup",N)}}},[R]);const V=C.useCallback((N,k)=>{z?.side===N&&z?.lineNumber===k?Q(null):Q({side:N,lineNumber:k})},[z]),Y=C.useCallback(()=>{Q(null)},[]),X=C.useCallback(async N=>{z!==null&&(await s(z.lineNumber,N,void 0,z.side),Q(null))},[z,s]),K=(N,k)=>o.filter(O=>{const I=Array.isArray(O.line)?O.line[1]===N:O.line===N,P=!O.side||O.side===k;return I&&P}),W=N=>N.oldLine?.type==="delete"&&N.newLine?.type==="add"?N.newLineNumber?"right":"left":N.oldLine?.type==="delete"?"left":N.newLine?.type==="add"?"right":"full",ne=(N,k)=>{const O=N==="old"?k.oldLineNumber:k.newLineNumber;if(!O)return"";if(R&&S&&T&&S.side===N&&T.side===N){const I=Math.min(S.lineNumber,T.lineNumber),P=Math.max(S.lineNumber,T.lineNumber);if(O>=I&&O<=P){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 O===I&&(_+=" after:border-t-2"),O===P&&(_+=" after:border-b-2"),_}}if(z&&z.side===N){const I=Array.isArray(z.lineNumber)?z.lineNumber:[z.lineNumber,z.lineNumber],P=I[0],_=I[1];if(P!==void 0&&_!==void 0&&O>=P&&O<=_)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""},B=C.useCallback(N=>{const k=[];let O=a.oldStart,I=a.newStart,P=0;for(;P<N.length;){const _=N[P];if(!_){P++;continue}if(_.type==="normal")k.push({oldLine:_,newLine:{..._},oldLineNumber:_.oldLineNumber??O,newLineNumber:_.newLineNumber??I,oldLineOriginalIndex:P,newLineOriginalIndex:P}),O++,I++,P++;else if(_.type==="delete"){let D=P+1;for(;D<N.length&&N[D]?.type==="delete";)D++;const G=N.slice(P,D),le=P,ue=[],fe=D;for(;D<N.length&&N[D]?.type==="add";){const ge=N[D];ge&&ue.push(ge),D++}const ce=Math.max(G.length,ue.length);for(let ge=0;ge<ce;ge++){const de=G[ge],be=ue[ge];let Ce;de&&be&&Nm(de.content,be.content)&&(Ce=Cm(de.content,be.content)),k.push({oldLine:de,newLine:be,oldLineNumber:de?de.oldLineNumber??O+ge:void 0,newLineNumber:be?be.newLineNumber??I+ge:void 0,oldLineOriginalIndex:de?le+ge:void 0,newLineOriginalIndex:be?fe+ge:void 0,wordLevelDiff:Ce})}O+=G.length,I+=ue.length,P=D}else _.type==="add"&&(k.push({newLine:_,newLineNumber:_.newLineNumber??I,newLineOriginalIndex:P}),I++,P++)}return k},[a.oldStart,a.newStart]),re=C.useMemo(()=>B(a.lines),[a.lines,B]);return g.jsx("div",{className:"bg-github-bg-primary overflow-hidden",children:g.jsx("table",{className:"w-full table-fixed border-collapse font-mono text-sm leading-5",children:g.jsx("tbody",{children:re.map((N,k)=>{const O=N.oldLineNumber?K(N.oldLineNumber,"old"):[],I=N.newLineNumber?K(N.newLineNumber,"new"):[],P=[...O,...I],_=N.oldLineOriginalIndex??-1,D=N.newLineOriginalIndex??-1,G=b?b.side==="left"&&_>=0?b.chunkIndex===r&&b.lineIndex===_:b.side==="right"&&D>=0?b.chunkIndex===r&&b.lineIndex===D:!1:!1,le=_>=0?`file-${p}-chunk-${r}-line-${_}-left`:void 0,ue=D>=0?`file-${p}-chunk-${r}-line-${D}-right`:void 0,fe=G&&b?.side==="left",ce=G&&b?.side==="right",ge="keyboard-cursor";return g.jsxs(bn.Fragment,{children:[g.jsxs("tr",{className:"group cursor-pointer",onClick:de=>{if(!R){const be=de.target,Ce=be.closest("td:nth-child(1)")||be.closest("td:nth-child(2)"),pe=be.closest("td:nth-child(3)")||be.closest("td:nth-child(4)");Ce&&_>=0?x?.(p,r,_,"left"):pe&&D>=0&&x?.(p,r,D,"right")}},onMouseEnter:de=>{const be=de.target,Ce=be.closest("td:nth-child(1)")||be.closest("td:nth-child(2)"),pe=be.closest("td:nth-child(3)")||be.closest("td:nth-child(4)");Ce&&N.oldLineNumber?F({side:"old",lineNumber:N.oldLineNumber}):pe&&N.newLineNumber&&F({side:"new",lineNumber:N.newLineNumber})},onMouseMove:de=>{const be=de.target,Ce=be.closest("td:nth-child(1)")||be.closest("td:nth-child(2)"),pe=be.closest("td:nth-child(3)")||be.closest("td:nth-child(4)");Ce&&N.oldLineNumber?(H?.side!=="old"||H?.lineNumber!==N.oldLineNumber)&&F({side:"old",lineNumber:N.oldLineNumber}):pe&&N.newLineNumber&&(H?.side!=="new"||H?.lineNumber!==N.newLineNumber)&&F({side:"new",lineNumber:N.newLineNumber}),R&&S&&(S.side==="old"&&N.oldLineNumber?E({side:"old",lineNumber:N.oldLineNumber}):S.side==="new"&&N.newLineNumber&&E({side:"new",lineNumber:N.newLineNumber}))},onMouseLeave:()=>F(null),children:[g.jsxs("td",{id:le,className:`w-[var(--line-number-width)] min-w-[var(--line-number-width)] max-w-[var(--line-number-width)] 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",{children:N.oldLineNumber||""}),H?.side==="old"&&H?.lineNumber===N.oldLineNumber&&g.jsx(wo,{onMouseDown:de=>{de.stopPropagation(),N.oldLineNumber&&(v({side:"old",lineNumber:N.oldLineNumber}),E({side:"old",lineNumber:N.oldLineNumber}),L(!0))},onMouseUp:de=>{if(de.stopPropagation(),!N.oldLineNumber||!S){L(!1),v(null),E(null);return}const be=T&&T.side==="old"?T.lineNumber:N.oldLineNumber;if(S.side!=="old"||S.lineNumber===be)V("old",N.oldLineNumber);else{const Ce=Math.min(S.lineNumber,be),pe=Math.max(S.lineNumber,be);V("old",[Ce,pe])}L(!1),v(null),E(null)}})]}),g.jsx("td",{className:`w-1/2 p-0 align-top border-r border-github-border relative ${yp(N.oldLine,bp(N.oldLine))} ${ne("old",N)} ${fe?ge:""}`,children:N.oldLine&&g.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:N.wordLevelDiff?g.jsx(kc,{segments:N.wordLevelDiff.oldSegments,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):g.jsx(jc,{code:N.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:m,filename:j})})}),g.jsxs("td",{id:ue,className:`w-[var(--line-number-width)] min-w-[var(--line-number-width)] max-w-[var(--line-number-width)] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${ce?ge:""}`,children:[g.jsx("span",{children:N.newLineNumber||""}),H?.side==="new"&&H?.lineNumber===N.newLineNumber&&g.jsx(wo,{onMouseDown:de=>{de.stopPropagation(),N.newLineNumber&&(v({side:"new",lineNumber:N.newLineNumber}),E({side:"new",lineNumber:N.newLineNumber}),L(!0))},onMouseUp:de=>{if(de.stopPropagation(),!N.newLineNumber||!S){L(!1),v(null),E(null);return}const be=T&&T.side==="new"?T.lineNumber:N.newLineNumber;if(S.side!=="new"||S.lineNumber===be)V("new",N.newLineNumber);else{const Ce=Math.min(S.lineNumber,be),pe=Math.max(S.lineNumber,be);V("new",[Ce,pe])}L(!1),v(null),E(null)}})]}),g.jsx("td",{className:`w-1/2 p-0 align-top relative ${yp(N.newLine,bp(N.newLine))} ${ne("new",N)} ${ce?ge:""}`,children:N.newLine&&g.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:N.wordLevelDiff?g.jsx(kc,{segments:N.wordLevelDiff.newSegments,className:"flex-1 text-github-text-primary whitespace-pre-wrap break-all overflow-wrap-break-word select-text"}):g.jsx(jc,{code:N.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:m,filename:j})})})]}),P.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:P.map(de=>{const be=de.side||"new";let Ce;return be==="old"&&N.oldLineNumber?Ce="left":be==="new"&&N.newLineNumber?Ce="right":Ce=W(N),g.jsx("div",{className:`flex ${Ce==="left"?"justify-start":Ce==="right"?"justify-end":"justify-center"}`,children:g.jsx("div",{className:`${Ce==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:g.jsx(Yc,{comment:de,onGeneratePrompt:c,onRemoveComment:f,onUpdateComment:d})})},de.id)})})}),z&&(z.side==="old"&&z.lineNumber===N.oldLineNumber||z.side==="new"&&z.lineNumber===N.newLineNumber||Array.isArray(z.lineNumber)&&(z.side==="new"&&z.lineNumber[1]===N.newLineNumber||z.side==="old"&&z.lineNumber[1]===N.oldLineNumber))&&g.jsx("tr",{className:"bg-github-bg-secondary",children:g.jsx("td",{colSpan:4,className:"p-0",children:g.jsx("div",{className:`flex ${z.side==="old"?"justify-start":z.side==="new"?"justify-end":"justify-center"}`,children:g.jsx("div",{className:"w-1/2",children:g.jsx(Am,{onSubmit:X,onCancel:Y})})})})})]},k)})})})})}const Tx=C.memo(function({chunk:r,chunkIndex:o,comments:s,onAddComment:c,onGeneratePrompt:f,onRemoveComment:d,onUpdateComment:m,mode:b="inline",syntaxTheme:p,cursor:x=null,fileIndex:y=0,onLineClick:A,commentTrigger:j,onCommentTriggerHandled:S,filename:v}){const[T,E]=C.useState(null),[R,L]=C.useState(null),[z,Q]=C.useState(!1),[H,F]=C.useState(null),[V,Y]=C.useState(null);C.useEffect(()=>{if(j?.lineIndex!==void 0){const k=r.lines[j.lineIndex];if(k){const O=k.newLineNumber||k.oldLineNumber,I=k.type==="delete"?"old":"new";O&&(F({side:I,lineNumber:O}),S?.())}}},[j,r.lines,S]),C.useEffect(()=>{if(z){const k=()=>{Q(!1),E(null),L(null)};return document.addEventListener("mouseup",k),()=>{document.removeEventListener("mouseup",k)}}},[z]);const X=C.useCallback((k,O)=>{H?.side===k&&H?.lineNumber===O?F(null):F({side:k,lineNumber:O})},[H]),K=C.useCallback(()=>{F(null)},[]),W=C.useCallback(async k=>{H!==null&&(await c(H.lineNumber,k,void 0,H.side),F(null))},[H,c]),ne=(k,O)=>s.filter(I=>{const P=Array.isArray(I.line)?I.line[1]===k:I.line===k,_=!I.side||I.side===O;return P&&_}),B=k=>{if(b==="inline")return"full";switch(k.type){case"delete":return"left";case"add":return"right";default:return"full"}},re=(k,O)=>{if(!k)return"";if(z&&T&&R){const I=Math.min(T,R),P=Math.max(T,R);if(k>=I&&k<=P){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 k===I&&(_+=" after:border-t-2"),k===P&&(_+=" after:border-b-2"),_}}if(H&&H.side===O){const I=Array.isArray(H.lineNumber)?H.lineNumber[0]:H.lineNumber,P=Array.isArray(H.lineNumber)?H.lineNumber[1]:H.lineNumber;if(k>=I&&k<=P)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""},N=C.useMemo(()=>{const k=new Map,O=r.lines;let I=0;for(;I<O.length;){const P=O[I];if(!P){I++;continue}if(P.type==="delete"){let _=I+1;for(;_<O.length&&O[_]?.type==="delete";)_++;const D=O.slice(I,_),G=I,le=[];for(;_<O.length&&O[_]?.type==="add";){const fe=O[_];fe&&le.push({line:fe,index:_}),_++}const ue=Math.max(D.length,le.length);for(let fe=0;fe<ue;fe++){const ce=D[fe],ge=le[fe];if(ce&&ge&&Nm(ce.content,ge.line.content)){const de=Cm(ce.content,ge.line.content);k.set(G+fe,de.oldSegments),k.set(ge.index,de.newSegments)}}I=_}else I++}return k},[r.lines]);return b==="side-by-side"?g.jsx(Ax,{chunk:r,chunkIndex:o,comments:s,onAddComment:c,onGeneratePrompt:f,onRemoveComment:d,onUpdateComment:m,syntaxTheme:p,cursor:x,fileIndex:y,onLineClick:A,filename:v,commentTrigger:j,onCommentTriggerHandled:S}):g.jsx("div",{className:"bg-github-bg-primary",children:g.jsx("table",{className:"w-full table-fixed border-collapse font-mono text-sm leading-5",children:g.jsx("tbody",{children:r.lines.map((k,O)=>{const I=k.newLineNumber||k.oldLineNumber||0,P=k.type==="delete"?"old":"new",_=H?Array.isArray(H.lineNumber)?H.lineNumber[1]:H.lineNumber:null,D=k.type==="delete"?k.oldLineNumber:k.newLineNumber,G=k.type==="delete"?"old":"new",le=D?ne(D,G):[],ue=`file-${y}-chunk-${o}-line-${O}`,fe=x&&x.chunkIndex===o&&x.lineIndex===O;return g.jsxs(bn.Fragment,{children:[g.jsx(Dm,{line:k,index:O,lineId:ue,isCurrentLine:fe||!1,hoveredLineIndex:V,selectedLineStyle:re(k.newLineNumber||k.oldLineNumber,k.type==="delete"?"old":"new"),onMouseEnter:()=>{Y(O)},onMouseLeave:()=>Y(null),onMouseMove:()=>{if(z&&T){const ce=k.newLineNumber||k.oldLineNumber;ce&&L(ce)}},onCommentButtonMouseDown:ce=>{ce.stopPropagation();const ge=k.newLineNumber||k.oldLineNumber;ge&&(E(ge),L(ge),Q(!0))},onCommentButtonMouseUp:ce=>{ce.stopPropagation();const ge=k.newLineNumber||k.oldLineNumber,de=k.type==="delete"?"old":"new";if(!ge||!T){Q(!1),E(null),L(null);return}const be=R||ge;if(T===be)X(de,ge);else{const Ce=Math.min(T,be),pe=Math.max(T,be);X(de,[Ce,pe])}Q(!1),E(null),L(null)},syntaxTheme:p,filename:v,diffSegments:N.get(O),onClick:()=>{const ce=k.type==="delete"?"left":"right";A?.(y,o,O,ce)}}),le.map(ce=>{const ge=B(k);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 ${ge==="left"?"justify-start":ge==="right"?"justify-end":"justify-center"}`,children:g.jsx("div",{className:`${ge==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:g.jsx(Yc,{comment:ce,onGeneratePrompt:f,onRemoveComment:d,onUpdateComment:m})})})})},ce.id)}),H&&H.side===P&&_===I&&g.jsx("tr",{className:"bg-[var(--bg-secondary)]",children:g.jsx("td",{colSpan:3,className:"p-0",children:g.jsx("div",{className:`flex ${B(k)==="left"?"justify-start":B(k)==="right"?"justify-end":"justify-center"}`,children:g.jsx("div",{className:`${B(k)==="full"?"w-full":"w-1/2"}`,children:g.jsx(Am,{onSubmit:W,onCancel:K})})})})})]},O)})})})})}),hc=20,pc=C.memo(function({direction:r,hiddenLines:o,onExpandUp:s,onExpandDown:c,onExpandAll:f,isLoading:d=!1}){if(o<=0)return null;const m=`${o} ${o===1?"line":"lines"}`,b=o<=hc,p="grid-cols-[var(--line-number-width)_1fr]",x="flex flex-1 w-full items-center justify-center py-1 text-github-text-primary hover:bg-github-bg-secondary hover:text-github-text-muted transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed",y=[];return b?y.push({key:"all",onClick:f,ariaLabel:`Expand all ${o} hidden lines`,icon:g.jsx(Qv,{size:16,"aria-hidden":"true"})}):((r==="up"||r==="both")&&y.push({key:"up",onClick:s,ariaLabel:`Expand ${hc} hidden lines above`,icon:g.jsx(iv,{size:12,"aria-hidden":"true",className:"translate-y-0.5"})}),(r==="down"||r==="both")&&y.push({key:"down",onClick:c,ariaLabel:`Expand ${hc} hidden lines below`,icon:g.jsx(av,{size:12,"aria-hidden":"true",className:"-translate-y-0.5"})})),g.jsxs("div",{className:`grid w-full border-l border-r border-github-border bg-github-bg-tertiary text-sm ${p}`,children:[g.jsx("div",{className:"flex flex-col items-stretch justify-center gap-0.5 border-r border-github-border",children:d?g.jsx(Ov,{size:14,className:"animate-spin text-github-text-muted self-center","aria-hidden":"true"}):y.map(A=>g.jsx("button",{type:"button",onClick:A.onClick,disabled:d||!A.onClick,className:x,title:A.ariaLabel,"aria-label":A.ariaLabel,children:A.icon},A.key))}),g.jsx("div",{className:"flex items-center justify-start px-3 py-1.5 font-mono text-github-text-muted select-none",children:m})]})});function Rx({file:a,mode:r="inline",baseCommitish:o,targetCommitish:s}){const c=a.status==="deleted",f=a.status==="added",d=a.status==="modified"||a.status==="renamed",m=o||"HEAD~1",b=s||"HEAD",[p,x]=C.useState({}),[y,A]=C.useState({}),j=async(E,R)=>{try{const L=E.naturalWidth,z=E.naturalHeight,F=(await(await fetch(E.src)).blob()).size;R({width:L,height:z,size:F})}catch(L){console.error("Failed to get image info:",L)}},S=E=>E?E<1024?`${E} B`:E<1024*1024?`${(E/1024).toFixed(1)} KB`:`${(E/(1024*1024)).toFixed(1)} MB`:"",v=E=>!E.width||!E.height?"":`W: ${E.width}px | H: ${E.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=${m}`,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:E=>j(E.currentTarget,x),onError:E=>{const R=E.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"}),(p.width||p.size)&&g.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[v(p),v(p)&&S(p.size)&&" | ",S(p.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:E=>j(E.currentTarget,A),onError:E=>{const R=E.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)&&S(y.size)&&" | ",S(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=${m}`,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:E=>j(E.currentTarget,x),onError:E=>{const R=E.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"}),(p.width||p.size)&&g.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[v(p),v(p)&&S(p.size)&&" | ",S(p.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:E=>j(E.currentTarget,A),onError:E=>{const R=E.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)&&S(y.size)&&" | ",S(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=${m}`,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:E=>j(E.currentTarget,x),onError:E=>{const R=E.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"}),(p.width||p.size)&&g.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[v(p),v(p)&&S(p.size)&&" | ",S(p.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:E=>j(E.currentTarget,A),onError:E=>{const R=E.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)&&S(y.size)&&" | ",S(y.size)]})]})})]})]}):null}const _x=a=>{const r={old:[],new:[]};return a.forEach(o=>{const s=o.side??"new",[c,f]=Array.isArray(o.line)?[o.line[0],o.line[1]]:[o.line,o.line];c<=0||f<=0||r[s].push({start:Math.min(c,f),end:Math.max(c,f)})}),r},jx=(a,r)=>a.chunks.map((o,s)=>{const c=r==="old"?o.oldStart:o.newStart,f=r==="old"?o.oldLines:o.newLines;return!c||f<=0?null:{start:c,end:c+f-1,index:s}}).filter(o=>!!o),kx=a=>{const r=[],o=a[0];if(!o)return r;o.start>1&&r.push({type:"before",start:1,end:o.start-1,nextChunkIndex:o.index});for(let c=1;c<a.length;c+=1){const f=a[c-1],d=a[c];!f||!d||d.start>f.end+1&&r.push({type:"between",start:f.end+1,end:d.start-1,prevChunkIndex:f.index,nextChunkIndex:d.index})}const s=a[a.length-1];return s&&r.push({type:"after",start:s.end+1,end:Number.POSITIVE_INFINITY,prevChunkIndex:s.index}),r},Ox=a=>{const r=new Map;return a.forEach(o=>{const s=o.originalIndices[0];s!==void 0&&r.set(s,o)}),r},Lx=a=>{const r=a[a.length-1];return r?.originalIndices[r.originalIndices.length-1]??null},Mx=C.memo(function({file:r,comments:o,diffMode:s,reviewedFiles:c,onToggleReviewed:f,collapsedFiles:d,onToggleCollapsed:m,onToggleAllCollapsed:b,onAddComment:p,onGeneratePrompt:x,onRemoveComment:y,onUpdateComment:A,syntaxTheme:j,baseCommitish:S,targetCommitish:v,cursor:T=null,fileIndex:E=0,onLineClick:R,commentTrigger:L,onCommentTriggerHandled:z,mergedChunks:Q,expandLines:H,expandAllBetweenChunks:F,prefetchFileContent:V,isExpandLoading:Y}){const X=d.has(r.path),[K,W]=C.useState(!1),ne=C.useRef(null),[B,re]=C.useState(!1),N=r.status!=="added"&&r.status!=="deleted"&&!tp(r.path);C.useEffect(()=>{if(!N)return;const D=ne.current;if(!D)return;const G=new IntersectionObserver(([le])=>{le?.isIntersecting&&re(!0)},{rootMargin:"200px"});return G.observe(D),()=>G.disconnect()},[N]),C.useEffect(()=>{B&&!X&&N&&V(r)},[B,X,N,r,V]);const k=D=>{switch(D){case"added":return g.jsx(bm,{size:16,className:"text-github-accent"});case"deleted":return g.jsx(ym,{size:16,className:"text-github-danger"});case"renamed":return g.jsx(mm,{size:16,className:"text-github-warning"});default:return g.jsx(pm,{size:16,className:"text-github-text-secondary"})}},O=C.useCallback(async(D,G,le,ue,fe)=>{try{await p(r.path,D,G,le,ue,fe)}catch(ce){console.error("Failed to add comment:",ce)}},[r.path,p]),I=C.useMemo(()=>Q.map(D=>({mergedChunk:D,onAddComment:(G,le,ue,fe)=>O(G,le,ue,D.header,fe)})),[Q,O]);C.useEffect(()=>{if(X||Y||!N||o.length===0||r.chunks.length===0||Q.length===0)return;const D=_x(o),G=Ox(Q),le=Lx(Q),ue=Q[Q.length-1],fe=new Set,ce=(ge,de)=>{fe.has(ge)||(fe.add(ge),de())};["old","new"].forEach(ge=>{const de=D[ge];if(de.length===0)return;const be=jx(r,ge);kx(be).forEach(pe=>{if(!de.some(Re=>Re.start<=pe.end&&Re.end>=pe.start))return;if(pe.type==="after"&&ue&&le!==null){ue.hiddenLinesAfter>0&&ce(`after-${le}`,()=>{H(r,le,"down",ue.hiddenLinesAfter)});return}const Se=pe.nextChunkIndex;if(Se===void 0)return;const ze=G.get(Se);!ze||ze.hiddenLinesBefore<=0||(pe.type==="before"?ce(`before-${Se}`,()=>{H(r,Se,"up",ze.hiddenLinesBefore)}):pe.type==="between"&&ce(`between-${Se}`,()=>{F(r,Se,ze.hiddenLinesBefore)}))})})},[o,F,H,r,X,Y,Q,N]);const P=(D,G,le,ue)=>D==="top"&&G.hiddenLinesBefore>0?g.jsx(pc,{direction:"down",hiddenLines:G.hiddenLinesBefore,onExpandDown:()=>H(r,le,"up"),onExpandAll:()=>F(r,le,G.hiddenLinesBefore),isLoading:Y}):D==="middle"&&G.hiddenLinesBefore>0?g.jsx(pc,{direction:"both",hiddenLines:G.hiddenLinesBefore,onExpandUp:()=>H(r,le-1,"down"),onExpandDown:()=>H(r,le,"up"),onExpandAll:()=>F(r,le,G.hiddenLinesBefore),isLoading:Y}):D==="bottom"&&G.hiddenLinesAfter>0?g.jsx(pc,{direction:"up",hiddenLines:G.hiddenLinesAfter,onExpandUp:()=>H(r,ue,"down"),onExpandAll:()=>H(r,ue,"down",G.hiddenLinesAfter),isLoading:Y}):null;return g.jsxs("div",{ref:ne,className:"bg-github-bg-primary",style:{"--line-number-width":"4em"},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:D=>{D.altKey?b(!X):m(r.path)},className:"text-github-text-muted hover:text-github-text-primary transition-colors cursor-pointer",title:X?"Expand file (Alt+Click to expand all)":"Collapse file (Alt+Click to collapse all)",children:X?g.jsx(gm,{size:16}):g.jsx(zo,{size:16})}),k(r.status),g.jsx("h2",{className:"text-sm font-mono text-github-text-primary m-0 overflow-hidden text-ellipsis whitespace-nowrap",children:r.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 ${K?"text-github-accent":"text-github-text-secondary hover:text-github-text-primary"}`,onClick:()=>{navigator.clipboard.writeText(r.path).then(()=>{console.log("File path copied to clipboard:",r.path),W(!0),setTimeout(()=>W(!1),2e3)}).catch(D=>{console.error("Failed to copy file path:",D)})},title:"Copy file path",children:K?g.jsx(Ir,{size:14}):g.jsx(hm,{size:14})}),r.oldPath&&r.oldPath!==r.path&&g.jsxs("span",{className:"text-xs text-github-text-muted italic",children:["(renamed from ",r.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:["+",r.additions]}),g.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-danger bg-red-100/10",children:["-",r.deletions]})]}),g.jsxs("button",{onClick:()=>f(r.path),className:`flex items-center gap-2 px-3 py-1.5 rounded-md text-sm font-medium transition-all duration-200 ${c.has(r.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:c.has(r.path)?"Mark as not reviewed":"Mark as reviewed",children:[c.has(r.path)?g.jsx(Ir,{size:14}):g.jsx(Xv,{size:14}),"Viewed"]})]})]}),!X&&g.jsx("div",{className:"overflow-y-auto",children:tp(r.path)?g.jsx(Rx,{file:r,mode:s,baseCommitish:S,targetCommitish:v}):I.map(({mergedChunk:D,onAddComment:G},le)=>{const ue=le===0,fe=le===I.length-1,ce=D.originalIndices[0]??0,ge=D.originalIndices[D.originalIndices.length-1]??0;return g.jsxs(bn.Fragment,{children:[ue&&P("top",D,ce,ge),!ue&&P("middle",D,ce,ge),g.jsx("div",{id:`chunk-${r.path.replace(/[^a-zA-Z0-9]/g,"-")}-${le}`,children:g.jsx(Tx,{chunk:D,chunkIndex:le,comments:o,onAddComment:G,onGeneratePrompt:x,onRemoveComment:y,onUpdateComment:A,mode:s,syntaxTheme:j,cursor:T&&T.chunkIndex===le?T:null,fileIndex:E,onLineClick:R,commentTrigger:L&&L.chunkIndex===le?L:null,onCommentTriggerHandled:z,filename:r.path})}),fe&&P("bottom",D,ce,ge)]},le)})})]})});function Dx(a){const r={name:"",path:"",isDirectory:!0,children:[]};a.forEach(s=>{const c=s.path.split("/");let f=r;for(let d=0;d<c.length;d++){const m=c[d];if(!m)continue;const b=d===c.length-1,p=c.slice(0,d+1).join("/");f.children||(f.children=[]);let x=f.children.find(y=>y.name===m);x||(x={name:m,path:p,isDirectory:!b,children:b?void 0:[],file:b?s:void 0},f.children.push(x)),f=x}});const o=s=>{if(!s.isDirectory||!s.children)return s;if(s.children=s.children.map(o),s.children.length===1&&s.children[0]?.isDirectory&&s.children[0]?.children){const c=s.children[0];if(c)return s.name?{...s,name:`${s.name}/${c.name}`,path:c.path,children:c.children}:s}return s};return o(r)}function zx({files:a,onScrollToFile:r,comments:o,reviewedFiles:s,onToggleReviewed:c,selectedFileIndex:f}){const d=Dx(a),m=C.useRef(null),b=C.useRef(new Map),p={"--dir-row-height":"calc(var(--spacing, 0.25rem) * 9)"},x=V=>{if(!V.isDirectory||!V.children)return[];const Y=[];return V.path&&Y.push(V.path),V.children.forEach(X=>{Y.push(...x(X))}),Y},[y,A]=C.useState(()=>new Set(x(d))),[j,S]=C.useState(""),v=V=>o.filter(Y=>Y.file===V).length,T=C.useMemo(()=>{const V=Y=>{if(!j.trim())return Y;if(Y.isDirectory&&Y.children){const X=Y.children.map(K=>V(K)).filter(K=>K!==null);return X.length>0?{...Y,children:X}:null}else if(Y.file)return Y.file.path.toLowerCase().includes(j.toLowerCase())?Y:null;return null};return V(d)||{...d,children:[]}},[d,j]),E=V=>{switch(V){case"added":return g.jsx(bm,{size:16,className:"text-github-accent"});case"deleted":return g.jsx(ym,{size:16,className:"text-github-danger"});case"renamed":return g.jsx(mm,{size:16,className:"text-github-warning"});default:return g.jsx(pm,{size:16,className:"text-github-text-secondary"})}},R=V=>{A(Y=>{const X=new Set(Y);return X.has(V)?X.delete(V):X.add(V),X})},L=x(d),z=y.size===L.length&&L.length>0,Q=()=>{A(z?new Set:new Set(L))},H=(V,Y)=>{const X=m.current,K=V.currentTarget;if(!X){R(Y);return}const W=X.getBoundingClientRect(),ne=K.getBoundingClientRect(),B=Number.parseFloat(getComputedStyle(K).top||"0");if(ne.top-W.top<=B+1){const O=b.current.get(Y)?.querySelector('[data-tree-row="true"]:not([data-dir-header="true"])'),I=K.getBoundingClientRect().height||0,P=O??K,_=Number.parseInt(P.dataset.depth||K.dataset.depth||"0",10),D=I*_,G=Math.max(0,P.offsetTop-D);if(Math.abs(X.scrollTop-G)<=1){R(Y);return}X.scrollTo({top:G,behavior:"smooth"});return}R(Y)},F=(V,Y=0)=>{if(V.isDirectory&&V.children){const X=y.has(V.path);return g.jsxs("div",{"data-dir-container":V.path||void 0,ref:K=>{V.path&&(K?b.current.set(V.path,K):b.current.delete(V.path))},children:[V.name&&g.jsxs("div",{className:"sticky flex h-9 items-center gap-2 bg-github-bg-secondary px-4 hover:bg-github-bg-tertiary cursor-pointer","data-dir-header":"true","data-tree-row":"true","data-depth":Y,style:{paddingLeft:`${Y*16+16}px`,top:`calc(${Y} * var(--dir-row-height))`,zIndex:1e3-Y},onClick:K=>H(K,V.path),children:[X?g.jsx(zo,{size:16}):g.jsx(gm,{size:16}),X?g.jsx(Cv,{size:16,className:"text-github-text-secondary"}):g.jsx(Av,{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:V.name,children:V.name})]}),(X||!V.name)&&V.children.map(K=>F(K,V.name?Y+1:Y))]},V.path)}else if(V.file){const X=V.file,K=v(X.path),W=s.has(X.path),ne=a.findIndex(re=>re.path===X.path),B=f!==null&&f===ne;return g.jsxs("div",{className:`flex items-center gap-2 px-4 py-2 hover:bg-github-bg-tertiary cursor-pointer transition-colors ${W?"opacity-70":""} ${B?"bg-github-bg-tertiary":""}`,"data-file-row":"true","data-tree-row":"true","data-depth":Y,style:{paddingLeft:`${Y*16+16}px`},onClick:()=>r(X.path),children:[g.jsx(Sm,{checked:W,onChange:()=>{c(X.path)},title:W?"Mark as not reviewed":"Mark as reviewed",className:"z-10"}),E(V.file.status),g.jsx("span",{className:`text-sm text-github-text-primary flex-1 overflow-hidden text-ellipsis whitespace-nowrap ${W?"line-through text-github-text-muted":""}`,title:V.file.path,children:V.name}),K>0&&g.jsxs("span",{className:"text-github-warning text-sm font-medium ml-auto flex items-center gap-1",children:[g.jsx(vm,{size:14}),K]})]},X.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:z?"Collapse all":"Expand all",children:z?g.jsx(fv,{size:16,className:"text-github-text-secondary"}):g.jsx(gv,{size:16,className:"text-github-text-secondary"})})]}),g.jsxs("div",{className:"relative",children:[g.jsx(Yv,{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:j,onChange:V=>S(V.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.jsx("div",{className:"flex-1 overflow-y-auto relative z-0",style:p,ref:m,children:T.children?.map(V=>F(V))})]})}function Bx({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 Ux({isOpen:a,onClose:r}){const{enableScope:o,disableScope:s}=Do();return Xe("escape",()=>r(),{enabled:a},[r,a]),C.useEffect(()=>(a?s("navigation"):o("navigation"),()=>{o("navigation")}),[a,o,s]),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(Gc,{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 Hx({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 Fx({shouldReload:a,isReloading:r,onReload:o,changeType:s,className:c=""}){if(!a)return null;const f=()=>{switch(s){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:o,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(qv,{size:12,className:`${r?"animate-spin":""}`}),"Refresh"]})}function Ho(){return typeof window<"u"}function Cl(a){return Ic(a)?(a.nodeName||"").toLowerCase():"#document"}function Dt(a){var r;return(a==null||(r=a.ownerDocument)==null?void 0:r.defaultView)||window}function yn(a){var r;return(r=(Ic(a)?a.ownerDocument:a.document)||window.document)==null?void 0:r.documentElement}function Ic(a){return Ho()?a instanceof Node||a instanceof Dt(a).Node:!1}function $e(a){return Ho()?a instanceof Element||a instanceof Dt(a).Element:!1}function ut(a){return Ho()?a instanceof HTMLElement||a instanceof Dt(a).HTMLElement:!1}function Co(a){return!Ho()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof Dt(a).ShadowRoot}const qx=new Set(["inline","contents"]);function Zr(a){const{overflow:r,overflowX:o,overflowY:s,display:c}=on(a);return/auto|scroll|overlay|hidden|clip/.test(r+s+o)&&!qx.has(c)}const Gx=new Set(["table","td","th"]);function Yx(a){return Gx.has(Cl(a))}const Vx=[":popover-open",":modal"];function Fo(a){return Vx.some(r=>{try{return a.matches(r)}catch{return!1}})}const Ix=["transform","translate","scale","rotate","perspective"],Xx=["transform","translate","scale","rotate","perspective","filter"],Zx=["paint","layout","strict","content"];function Xc(a){const r=qo(),o=$e(a)?on(a):a;return Ix.some(s=>o[s]?o[s]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!r&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!r&&(o.filter?o.filter!=="none":!1)||Xx.some(s=>(o.willChange||"").includes(s))||Zx.some(s=>(o.contain||"").includes(s))}function $x(a){let r=Yn(a);for(;ut(r)&&!Gn(r);){if(Xc(r))return r;if(Fo(r))return null;r=Yn(r)}return null}function qo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Kx=new Set(["html","body","#document"]);function Gn(a){return Kx.has(Cl(a))}function on(a){return Dt(a).getComputedStyle(a)}function Go(a){return $e(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function Yn(a){if(Cl(a)==="html")return a;const r=a.assignedSlot||a.parentNode||Co(a)&&a.host||yn(a);return Co(r)?r.host:r}function zm(a){const r=Yn(a);return Gn(r)?a.ownerDocument?a.ownerDocument.body:a.body:ut(r)&&Zr(r)?r:zm(r)}function El(a,r,o){var s;r===void 0&&(r=[]),o===void 0&&(o=!0);const c=zm(a),f=c===((s=a.ownerDocument)==null?void 0:s.body),d=Dt(c);if(f){const m=Oc(d);return r.concat(d,d.visualViewport||[],Zr(c)?c:[],m&&o?El(m):[])}return r.concat(c,El(c,[],o))}function Oc(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}const No=Math.min,Xl=Math.max,Ao=Math.round,bo=Math.floor,mn=a=>({x:a,y:a}),Qx={left:"right",right:"left",bottom:"top",top:"bottom"},Jx={start:"end",end:"start"};function vp(a,r,o){return Xl(a,No(r,o))}function Yo(a,r){return typeof a=="function"?a(r):a}function Zl(a){return a.split("-")[0]}function Vo(a){return a.split("-")[1]}function Bm(a){return a==="x"?"y":"x"}function Um(a){return a==="y"?"height":"width"}const Wx=new Set(["top","bottom"]);function xl(a){return Wx.has(Zl(a))?"y":"x"}function Hm(a){return Bm(xl(a))}function Px(a,r,o){o===void 0&&(o=!1);const s=Vo(a),c=Hm(a),f=Um(c);let d=c==="x"?s===(o?"end":"start")?"right":"left":s==="start"?"bottom":"top";return r.reference[f]>r.floating[f]&&(d=To(d)),[d,To(d)]}function e2(a){const r=To(a);return[Lc(a),r,Lc(r)]}function Lc(a){return a.replace(/start|end/g,r=>Jx[r])}const xp=["left","right"],Sp=["right","left"],t2=["top","bottom"],n2=["bottom","top"];function l2(a,r,o){switch(a){case"top":case"bottom":return o?r?Sp:xp:r?xp:Sp;case"left":case"right":return r?t2:n2;default:return[]}}function a2(a,r,o,s){const c=Vo(a);let f=l2(Zl(a),o==="start",s);return c&&(f=f.map(d=>d+"-"+c),r&&(f=f.concat(f.map(Lc)))),f}function To(a){return a.replace(/left|right|bottom|top/g,r=>Qx[r])}function r2(a){return{top:0,right:0,bottom:0,left:0,...a}}function i2(a){return typeof a!="number"?r2(a):{top:a,right:a,bottom:a,left:a}}function Ro(a){const{x:r,y:o,width:s,height:c}=a;return{width:s,height:c,top:o,left:r,right:r+s,bottom:o+c,x:r,y:o}}var o2=["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] *)"],_o=o2.join(","),Fm=typeof Element>"u",Ia=Fm?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,jo=!Fm&&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},ko=function(r,o){var s;o===void 0&&(o=!0);var c=r==null||(s=r.getAttribute)===null||s===void 0?void 0:s.call(r,"inert"),f=c===""||c==="true",d=f||o&&r&&(typeof r.closest=="function"?r.closest("[inert]"):ko(r.parentNode));return d},s2=function(r){var o,s=r==null||(o=r.getAttribute)===null||o===void 0?void 0:o.call(r,"contenteditable");return s===""||s==="true"},qm=function(r,o,s){if(ko(r))return[];var c=Array.prototype.slice.apply(r.querySelectorAll(_o));return o&&Ia.call(r,_o)&&c.unshift(r),c=c.filter(s),c},Oo=function(r,o,s){for(var c=[],f=Array.from(r);f.length;){var d=f.shift();if(!ko(d,!1))if(d.tagName==="SLOT"){var m=d.assignedElements(),b=m.length?m:d.children,p=Oo(b,!0,s);s.flatten?c.push.apply(c,p):c.push({scopeParent:d,candidates:p})}else{var x=Ia.call(d,_o);x&&s.filter(d)&&(o||!r.includes(d))&&c.push(d);var y=d.shadowRoot||typeof s.getShadowRoot=="function"&&s.getShadowRoot(d),A=!ko(y,!1)&&(!s.shadowRootFilter||s.shadowRootFilter(d));if(y&&A){var j=Oo(y===!0?d.children:y.children,!0,s);s.flatten?c.push.apply(c,j):c.push({scopeParent:d,candidates:j})}else f.unshift.apply(f,d.children)}}return c},Gm=function(r){return!isNaN(parseInt(r.getAttribute("tabindex"),10))},Ym=function(r){if(!r)throw new Error("No node provided");return r.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(r.tagName)||s2(r))&&!Gm(r)?0:r.tabIndex},u2=function(r,o){var s=Ym(r);return s<0&&o&&!Gm(r)?0:s},c2=function(r,o){return r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex},Vm=function(r){return r.tagName==="INPUT"},f2=function(r){return Vm(r)&&r.type==="hidden"},d2=function(r){var o=r.tagName==="DETAILS"&&Array.prototype.slice.apply(r.children).some(function(s){return s.tagName==="SUMMARY"});return o},g2=function(r,o){for(var s=0;s<r.length;s++)if(r[s].checked&&r[s].form===o)return r[s]},h2=function(r){if(!r.name)return!0;var o=r.form||jo(r),s=function(m){return o.querySelectorAll('input[type="radio"][name="'+m+'"]')},c;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")c=s(window.CSS.escape(r.name));else try{c=s(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=g2(c,r.form);return!f||f===r},p2=function(r){return Vm(r)&&r.type==="radio"},m2=function(r){return p2(r)&&!h2(r)},b2=function(r){var o,s=r&&jo(r),c=(o=s)===null||o===void 0?void 0:o.host,f=!1;if(s&&s!==r){var d,m,b;for(f=!!((d=c)!==null&&d!==void 0&&(m=d.ownerDocument)!==null&&m!==void 0&&m.contains(c)||r!=null&&(b=r.ownerDocument)!==null&&b!==void 0&&b.contains(r));!f&&c;){var p,x,y;s=jo(c),c=(p=s)===null||p===void 0?void 0:p.host,f=!!((x=c)!==null&&x!==void 0&&(y=x.ownerDocument)!==null&&y!==void 0&&y.contains(c))}}return f},wp=function(r){var o=r.getBoundingClientRect(),s=o.width,c=o.height;return s===0&&c===0},y2=function(r,o){var s=o.displayCheck,c=o.getShadowRoot;if(s==="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=Ia.call(r,"details>summary:first-of-type"),m=d?r.parentElement:r;if(Ia.call(m,"details:not([open]) *"))return!0;if(!s||s==="full"||s==="full-native"||s==="legacy-full"){if(typeof c=="function"){for(var b=r;r;){var p=r.parentElement,x=jo(r);if(p&&!p.shadowRoot&&c(p)===!0)return wp(r);r.assignedSlot?r=r.assignedSlot:!p&&x!==r.ownerDocument?r=x.host:r=p}r=b}if(b2(r))return!r.getClientRects().length;if(s!=="legacy-full")return!0}else if(s==="non-zero-area")return wp(r);return!1},v2=function(r){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(r.tagName))for(var o=r.parentElement;o;){if(o.tagName==="FIELDSET"&&o.disabled){for(var s=0;s<o.children.length;s++){var c=o.children.item(s);if(c.tagName==="LEGEND")return Ia.call(o,"fieldset[disabled] *")?!0:!c.contains(r)}return!0}o=o.parentElement}return!1},Mc=function(r,o){return!(o.disabled||f2(o)||y2(o,r)||d2(o)||v2(o))},Dc=function(r,o){return!(m2(o)||Ym(o)<0||!Mc(r,o))},x2=function(r){var o=parseInt(r.getAttribute("tabindex"),10);return!!(isNaN(o)||o>=0)},Im=function(r){var o=[],s=[];return r.forEach(function(c,f){var d=!!c.scopeParent,m=d?c.scopeParent:c,b=u2(m,d),p=d?Im(c.candidates):m;b===0?d?o.push.apply(o,p):o.push(m):s.push({documentOrder:f,tabIndex:b,item:c,isScope:d,content:p})}),s.sort(c2).reduce(function(c,f){return f.isScope?c.push.apply(c,f.content):c.push(f.content),c},[]).concat(o)},Io=function(r,o){o=o||{};var s;return o.getShadowRoot?s=Oo([r],o.includeContainer,{filter:Dc.bind(null,o),flatten:!1,getShadowRoot:o.getShadowRoot,shadowRootFilter:x2}):s=qm(r,o.includeContainer,Dc.bind(null,o)),Im(s)},S2=function(r,o){o=o||{};var s;return o.getShadowRoot?s=Oo([r],o.includeContainer,{filter:Mc.bind(null,o),flatten:!0,getShadowRoot:o.getShadowRoot}):s=qm(r,o.includeContainer,Mc.bind(null,o)),s},Xm=function(r,o){if(o=o||{},!r)throw new Error("No node provided");return Ia.call(r,_o)===!1?!1:Dc(o,r)};function Zm(){const a=navigator.userAgentData;return a!=null&&a.platform?a.platform:navigator.platform}function $m(){const a=navigator.userAgentData;return a&&Array.isArray(a.brands)?a.brands.map(r=>{let{brand:o,version:s}=r;return o+"/"+s}).join(" "):navigator.userAgent}function Km(){return/apple/i.test(navigator.vendor)}function zc(){const a=/android/i;return a.test(Zm())||a.test($m())}function w2(){return Zm().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Qm(){return $m().includes("jsdom/")}const Ep="data-floating-ui-focusable",E2="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function vl(a){let r=a.activeElement;for(;((o=r)==null||(o=o.shadowRoot)==null?void 0:o.activeElement)!=null;){var o;r=r.shadowRoot.activeElement}return r}function St(a,r){if(!a||!r)return!1;const o=r.getRootNode==null?void 0:r.getRootNode();if(a.contains(r))return!0;if(o&&Co(o)){let s=r;for(;s;){if(a===s)return!0;s=s.parentNode||s.host}}return!1}function Fn(a){return"composedPath"in a?a.composedPath()[0]:a.target}function mc(a,r){if(r==null)return!1;if("composedPath"in a)return a.composedPath().includes(r);const o=a;return o.target!=null&&r.contains(o.target)}function C2(a){return a.matches("html,body")}function wt(a){return a?.ownerDocument||document}function Zc(a){return ut(a)&&a.matches(E2)}function Cp(a){return a?a.getAttribute("role")==="combobox"&&Zc(a):!1}function N2(a){if(!a||Qm())return!0;try{return a.matches(":focus-visible")}catch{return!0}}function Bc(a){return a?a.hasAttribute(Ep)?a:a.querySelector("["+Ep+"]")||a:null}function Ga(a,r,o){return o===void 0&&(o=!0),a.filter(c=>{var f;return c.parentId===r&&(!o||((f=c.context)==null?void 0:f.open))}).flatMap(c=>[c,...Ga(a,c.id,o)])}function Np(a,r){var o;let s=[],c=(o=a.find(f=>f.id===r))==null?void 0:o.parentId;for(;c;){const f=a.find(d=>d.id===c);c=f?.parentId,f&&(s=s.concat(f))}return s}function bc(a){a.preventDefault(),a.stopPropagation()}function A2(a){return"nativeEvent"in a}function T2(a){return a.mozInputSource===0&&a.isTrusted?!0:zc()&&a.pointerType?a.type==="click"&&a.buttons===1:a.detail===0&&!a.pointerType}function R2(a){return Qm()?!1:!zc()&&a.width===0&&a.height===0||zc()&&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 Xr(a,r){const o=["mouse","pen"];return r||o.push("",void 0),o.includes(a)}var _2=typeof document<"u",j2=function(){},Mt=_2?C.useLayoutEffect:j2;const k2={...lm};function Il(a){const r=C.useRef(a);return Mt(()=>{r.current=a}),r}const O2=k2.useInsertionEffect,L2=O2||(a=>a());function Lt(a){const r=C.useRef(()=>{});return L2(()=>{r.current=a}),C.useCallback(function(){for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];return r.current==null?void 0:r.current(...s)},[])}const $r=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Jm(a,r){const o=Io(a,$r()),s=o.length;if(s===0)return;const c=vl(wt(a)),f=o.indexOf(c),d=f===-1?r===1?0:s-1:f+r;return o[d]}function Wm(a){return Jm(wt(a).body,1)||a}function Pm(a){return Jm(wt(a).body,-1)||a}function Yr(a,r){const o=r||a.currentTarget,s=a.relatedTarget;return!s||!St(o,s)}function M2(a){Io(a,$r()).forEach(o=>{o.dataset.tabindex=o.getAttribute("tabindex")||"",o.setAttribute("tabindex","-1")})}function Ap(a){a.querySelectorAll("[data-tabindex]").forEach(o=>{const s=o.dataset.tabindex;delete o.dataset.tabindex,s?o.setAttribute("tabindex",s):o.removeAttribute("tabindex")})}var eb=am();function Tp(a,r,o){let{reference:s,floating:c}=a;const f=xl(r),d=Hm(r),m=Um(d),b=Zl(r),p=f==="y",x=s.x+s.width/2-c.width/2,y=s.y+s.height/2-c.height/2,A=s[m]/2-c[m]/2;let j;switch(b){case"top":j={x,y:s.y-c.height};break;case"bottom":j={x,y:s.y+s.height};break;case"right":j={x:s.x+s.width,y};break;case"left":j={x:s.x-c.width,y};break;default:j={x:s.x,y:s.y}}switch(Vo(r)){case"start":j[d]-=A*(o&&p?-1:1);break;case"end":j[d]+=A*(o&&p?-1:1);break}return j}const D2=async(a,r,o)=>{const{placement:s="bottom",strategy:c="absolute",middleware:f=[],platform:d}=o,m=f.filter(Boolean),b=await(d.isRTL==null?void 0:d.isRTL(r));let p=await d.getElementRects({reference:a,floating:r,strategy:c}),{x,y}=Tp(p,s,b),A=s,j={},S=0;for(let v=0;v<m.length;v++){const{name:T,fn:E}=m[v],{x:R,y:L,data:z,reset:Q}=await E({x,y,initialPlacement:s,placement:A,strategy:c,middlewareData:j,rects:p,platform:d,elements:{reference:a,floating:r}});x=R??x,y=L??y,j={...j,[T]:{...j[T],...z}},Q&&S<=50&&(S++,typeof Q=="object"&&(Q.placement&&(A=Q.placement),Q.rects&&(p=Q.rects===!0?await d.getElementRects({reference:a,floating:r,strategy:c}):Q.rects),{x,y}=Tp(p,A,b)),v=-1)}return{x,y,placement:A,strategy:c,middlewareData:j}};async function tb(a,r){var o;r===void 0&&(r={});const{x:s,y:c,platform:f,rects:d,elements:m,strategy:b}=a,{boundary:p="clippingAncestors",rootBoundary:x="viewport",elementContext:y="floating",altBoundary:A=!1,padding:j=0}=Yo(r,a),S=i2(j),T=m[A?y==="floating"?"reference":"floating":y],E=Ro(await f.getClippingRect({element:(o=await(f.isElement==null?void 0:f.isElement(T)))==null||o?T:T.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(m.floating)),boundary:p,rootBoundary:x,strategy:b})),R=y==="floating"?{x:s,y:c,width:d.floating.width,height:d.floating.height}:d.reference,L=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m.floating)),z=await(f.isElement==null?void 0:f.isElement(L))?await(f.getScale==null?void 0:f.getScale(L))||{x:1,y:1}:{x:1,y:1},Q=Ro(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:R,offsetParent:L,strategy:b}):R);return{top:(E.top-Q.top+S.top)/z.y,bottom:(Q.bottom-E.bottom+S.bottom)/z.y,left:(E.left-Q.left+S.left)/z.x,right:(Q.right-E.right+S.right)/z.x}}const z2=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(r){var o,s;const{placement:c,middlewareData:f,rects:d,initialPlacement:m,platform:b,elements:p}=r,{mainAxis:x=!0,crossAxis:y=!0,fallbackPlacements:A,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:v=!0,...T}=Yo(a,r);if((o=f.arrow)!=null&&o.alignmentOffset)return{};const E=Zl(c),R=xl(m),L=Zl(m)===m,z=await(b.isRTL==null?void 0:b.isRTL(p.floating)),Q=A||(L||!v?[To(m)]:e2(m)),H=S!=="none";!A&&H&&Q.push(...a2(m,v,S,z));const F=[m,...Q],V=await tb(r,T),Y=[];let X=((s=f.flip)==null?void 0:s.overflows)||[];if(x&&Y.push(V[E]),y){const B=Px(c,d,z);Y.push(V[B[0]],V[B[1]])}if(X=[...X,{placement:c,overflows:Y}],!Y.every(B=>B<=0)){var K,W;const B=(((K=f.flip)==null?void 0:K.index)||0)+1,re=F[B];if(re&&(!(y==="alignment"?R!==xl(re):!1)||X.every(O=>xl(O.placement)===R?O.overflows[0]>0:!0)))return{data:{index:B,overflows:X},reset:{placement:re}};let N=(W=X.filter(k=>k.overflows[0]<=0).sort((k,O)=>k.overflows[1]-O.overflows[1])[0])==null?void 0:W.placement;if(!N)switch(j){case"bestFit":{var ne;const k=(ne=X.filter(O=>{if(H){const I=xl(O.placement);return I===R||I==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(I=>I>0).reduce((I,P)=>I+P,0)]).sort((O,I)=>O[1]-I[1])[0])==null?void 0:ne[0];k&&(N=k);break}case"initialPlacement":N=m;break}if(c!==N)return{reset:{placement:N}}}return{}}}},B2=new Set(["left","top"]);async function U2(a,r){const{placement:o,platform:s,elements:c}=a,f=await(s.isRTL==null?void 0:s.isRTL(c.floating)),d=Zl(o),m=Vo(o),b=xl(o)==="y",p=B2.has(d)?-1:1,x=f&&b?-1:1,y=Yo(r,a);let{mainAxis:A,crossAxis:j,alignmentAxis:S}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return m&&typeof S=="number"&&(j=m==="end"?S*-1:S),b?{x:j*x,y:A*p}:{x:A*p,y:j*x}}const H2=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(r){var o,s;const{x:c,y:f,placement:d,middlewareData:m}=r,b=await U2(r,a);return d===((o=m.offset)==null?void 0:o.placement)&&(s=m.arrow)!=null&&s.alignmentOffset?{}:{x:c+b.x,y:f+b.y,data:{...b,placement:d}}}}},F2=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(r){const{x:o,y:s,placement:c}=r,{mainAxis:f=!0,crossAxis:d=!1,limiter:m={fn:T=>{let{x:E,y:R}=T;return{x:E,y:R}}},...b}=Yo(a,r),p={x:o,y:s},x=await tb(r,b),y=xl(Zl(c)),A=Bm(y);let j=p[A],S=p[y];if(f){const T=A==="y"?"top":"left",E=A==="y"?"bottom":"right",R=j+x[T],L=j-x[E];j=vp(R,j,L)}if(d){const T=y==="y"?"top":"left",E=y==="y"?"bottom":"right",R=S+x[T],L=S-x[E];S=vp(R,S,L)}const v=m.fn({...r,[A]:j,[y]:S});return{...v,data:{x:v.x-o,y:v.y-s,enabled:{[A]:f,[y]:d}}}}}};function nb(a){const r=on(a);let o=parseFloat(r.width)||0,s=parseFloat(r.height)||0;const c=ut(a),f=c?a.offsetWidth:o,d=c?a.offsetHeight:s,m=Ao(o)!==f||Ao(s)!==d;return m&&(o=f,s=d),{width:o,height:s,$:m}}function $c(a){return $e(a)?a:a.contextElement}function Ya(a){const r=$c(a);if(!ut(r))return mn(1);const o=r.getBoundingClientRect(),{width:s,height:c,$:f}=nb(r);let d=(f?Ao(o.width):o.width)/s,m=(f?Ao(o.height):o.height)/c;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}const q2=mn(0);function lb(a){const r=Dt(a);return!qo()||!r.visualViewport?q2:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function G2(a,r,o){return r===void 0&&(r=!1),!o||r&&o!==Dt(a)?!1:r}function $l(a,r,o,s){r===void 0&&(r=!1),o===void 0&&(o=!1);const c=a.getBoundingClientRect(),f=$c(a);let d=mn(1);r&&(s?$e(s)&&(d=Ya(s)):d=Ya(a));const m=G2(f,o,s)?lb(f):mn(0);let b=(c.left+m.x)/d.x,p=(c.top+m.y)/d.y,x=c.width/d.x,y=c.height/d.y;if(f){const A=Dt(f),j=s&&$e(s)?Dt(s):s;let S=A,v=Oc(S);for(;v&&s&&j!==S;){const T=Ya(v),E=v.getBoundingClientRect(),R=on(v),L=E.left+(v.clientLeft+parseFloat(R.paddingLeft))*T.x,z=E.top+(v.clientTop+parseFloat(R.paddingTop))*T.y;b*=T.x,p*=T.y,x*=T.x,y*=T.y,b+=L,p+=z,S=Dt(v),v=Oc(S)}}return Ro({width:x,height:y,x:b,y:p})}function Xo(a,r){const o=Go(a).scrollLeft;return r?r.left+o:$l(yn(a)).left+o}function ab(a,r){const o=a.getBoundingClientRect(),s=o.left+r.scrollLeft-Xo(a,o),c=o.top+r.scrollTop;return{x:s,y:c}}function Y2(a){let{elements:r,rect:o,offsetParent:s,strategy:c}=a;const f=c==="fixed",d=yn(s),m=r?Fo(r.floating):!1;if(s===d||m&&f)return o;let b={scrollLeft:0,scrollTop:0},p=mn(1);const x=mn(0),y=ut(s);if((y||!y&&!f)&&((Cl(s)!=="body"||Zr(d))&&(b=Go(s)),ut(s))){const j=$l(s);p=Ya(s),x.x=j.x+s.clientLeft,x.y=j.y+s.clientTop}const A=d&&!y&&!f?ab(d,b):mn(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-b.scrollLeft*p.x+x.x+A.x,y:o.y*p.y-b.scrollTop*p.y+x.y+A.y}}function V2(a){return Array.from(a.getClientRects())}function I2(a){const r=yn(a),o=Go(a),s=a.ownerDocument.body,c=Xl(r.scrollWidth,r.clientWidth,s.scrollWidth,s.clientWidth),f=Xl(r.scrollHeight,r.clientHeight,s.scrollHeight,s.clientHeight);let d=-o.scrollLeft+Xo(a);const m=-o.scrollTop;return on(s).direction==="rtl"&&(d+=Xl(r.clientWidth,s.clientWidth)-c),{width:c,height:f,x:d,y:m}}const Rp=25;function X2(a,r){const o=Dt(a),s=yn(a),c=o.visualViewport;let f=s.clientWidth,d=s.clientHeight,m=0,b=0;if(c){f=c.width,d=c.height;const x=qo();(!x||x&&r==="fixed")&&(m=c.offsetLeft,b=c.offsetTop)}const p=Xo(s);if(p<=0){const x=s.ownerDocument,y=x.body,A=getComputedStyle(y),j=x.compatMode==="CSS1Compat"&&parseFloat(A.marginLeft)+parseFloat(A.marginRight)||0,S=Math.abs(s.clientWidth-y.clientWidth-j);S<=Rp&&(f-=S)}else p<=Rp&&(f+=p);return{width:f,height:d,x:m,y:b}}const Z2=new Set(["absolute","fixed"]);function $2(a,r){const o=$l(a,!0,r==="fixed"),s=o.top+a.clientTop,c=o.left+a.clientLeft,f=ut(a)?Ya(a):mn(1),d=a.clientWidth*f.x,m=a.clientHeight*f.y,b=c*f.x,p=s*f.y;return{width:d,height:m,x:b,y:p}}function _p(a,r,o){let s;if(r==="viewport")s=X2(a,o);else if(r==="document")s=I2(yn(a));else if($e(r))s=$2(r,o);else{const c=lb(a);s={x:r.x-c.x,y:r.y-c.y,width:r.width,height:r.height}}return Ro(s)}function rb(a,r){const o=Yn(a);return o===r||!$e(o)||Gn(o)?!1:on(o).position==="fixed"||rb(o,r)}function K2(a,r){const o=r.get(a);if(o)return o;let s=El(a,[],!1).filter(m=>$e(m)&&Cl(m)!=="body"),c=null;const f=on(a).position==="fixed";let d=f?Yn(a):a;for(;$e(d)&&!Gn(d);){const m=on(d),b=Xc(d);!b&&m.position==="fixed"&&(c=null),(f?!b&&!c:!b&&m.position==="static"&&!!c&&Z2.has(c.position)||Zr(d)&&!b&&rb(a,d))?s=s.filter(x=>x!==d):c=m,d=Yn(d)}return r.set(a,s),s}function Q2(a){let{element:r,boundary:o,rootBoundary:s,strategy:c}=a;const d=[...o==="clippingAncestors"?Fo(r)?[]:K2(r,this._c):[].concat(o),s],m=d[0],b=d.reduce((p,x)=>{const y=_p(r,x,c);return p.top=Xl(y.top,p.top),p.right=No(y.right,p.right),p.bottom=No(y.bottom,p.bottom),p.left=Xl(y.left,p.left),p},_p(r,m,c));return{width:b.right-b.left,height:b.bottom-b.top,x:b.left,y:b.top}}function J2(a){const{width:r,height:o}=nb(a);return{width:r,height:o}}function W2(a,r,o){const s=ut(r),c=yn(r),f=o==="fixed",d=$l(a,!0,f,r);let m={scrollLeft:0,scrollTop:0};const b=mn(0);function p(){b.x=Xo(c)}if(s||!s&&!f)if((Cl(r)!=="body"||Zr(c))&&(m=Go(r)),s){const j=$l(r,!0,f,r);b.x=j.x+r.clientLeft,b.y=j.y+r.clientTop}else c&&p();f&&!s&&c&&p();const x=c&&!s&&!f?ab(c,m):mn(0),y=d.left+m.scrollLeft-b.x-x.x,A=d.top+m.scrollTop-b.y-x.y;return{x:y,y:A,width:d.width,height:d.height}}function yc(a){return on(a).position==="static"}function jp(a,r){if(!ut(a)||on(a).position==="fixed")return null;if(r)return r(a);let o=a.offsetParent;return yn(a)===o&&(o=o.ownerDocument.body),o}function ib(a,r){const o=Dt(a);if(Fo(a))return o;if(!ut(a)){let c=Yn(a);for(;c&&!Gn(c);){if($e(c)&&!yc(c))return c;c=Yn(c)}return o}let s=jp(a,r);for(;s&&Yx(s)&&yc(s);)s=jp(s,r);return s&&Gn(s)&&yc(s)&&!Xc(s)?o:s||$x(a)||o}const P2=async function(a){const r=this.getOffsetParent||ib,o=this.getDimensions,s=await o(a.floating);return{reference:W2(a.reference,await r(a.floating),a.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function eS(a){return on(a).direction==="rtl"}const tS={convertOffsetParentRelativeRectToViewportRelativeRect:Y2,getDocumentElement:yn,getClippingRect:Q2,getOffsetParent:ib,getElementRects:P2,getClientRects:V2,getDimensions:J2,getScale:Ya,isElement:$e,isRTL:eS};function ob(a,r){return a.x===r.x&&a.y===r.y&&a.width===r.width&&a.height===r.height}function nS(a,r){let o=null,s;const c=yn(a);function f(){var m;clearTimeout(s),(m=o)==null||m.disconnect(),o=null}function d(m,b){m===void 0&&(m=!1),b===void 0&&(b=1),f();const p=a.getBoundingClientRect(),{left:x,top:y,width:A,height:j}=p;if(m||r(),!A||!j)return;const S=bo(y),v=bo(c.clientWidth-(x+A)),T=bo(c.clientHeight-(y+j)),E=bo(x),L={rootMargin:-S+"px "+-v+"px "+-T+"px "+-E+"px",threshold:Xl(0,No(1,b))||1};let z=!0;function Q(H){const F=H[0].intersectionRatio;if(F!==b){if(!z)return d();F?d(!1,F):s=setTimeout(()=>{d(!1,1e-7)},1e3)}F===1&&!ob(p,a.getBoundingClientRect())&&d(),z=!1}try{o=new IntersectionObserver(Q,{...L,root:c.ownerDocument})}catch{o=new IntersectionObserver(Q,L)}o.observe(a)}return d(!0),f}function lS(a,r,o,s){s===void 0&&(s={});const{ancestorScroll:c=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:b=!1}=s,p=$c(a),x=c||f?[...p?El(p):[],...El(r)]:[];x.forEach(E=>{c&&E.addEventListener("scroll",o,{passive:!0}),f&&E.addEventListener("resize",o)});const y=p&&m?nS(p,o):null;let A=-1,j=null;d&&(j=new ResizeObserver(E=>{let[R]=E;R&&R.target===p&&j&&(j.unobserve(r),cancelAnimationFrame(A),A=requestAnimationFrame(()=>{var L;(L=j)==null||L.observe(r)})),o()}),p&&!b&&j.observe(p),j.observe(r));let S,v=b?$l(a):null;b&&T();function T(){const E=$l(a);v&&!ob(v,E)&&o(),v=E,S=requestAnimationFrame(T)}return o(),()=>{var E;x.forEach(R=>{c&&R.removeEventListener("scroll",o),f&&R.removeEventListener("resize",o)}),y?.(),(E=j)==null||E.disconnect(),j=null,b&&cancelAnimationFrame(S)}}const aS=H2,rS=F2,iS=z2,oS=(a,r,o)=>{const s=new Map,c={platform:tS,...o},f={...c.platform,_c:s};return D2(a,r,{...c,platform:f})};var sS=typeof document<"u",uS=function(){},So=sS?C.useLayoutEffect:uS;function Lo(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 o,s,c;if(a&&r&&typeof a=="object"){if(Array.isArray(a)){if(o=a.length,o!==r.length)return!1;for(s=o;s--!==0;)if(!Lo(a[s],r[s]))return!1;return!0}if(c=Object.keys(a),o=c.length,o!==Object.keys(r).length)return!1;for(s=o;s--!==0;)if(!{}.hasOwnProperty.call(r,c[s]))return!1;for(s=o;s--!==0;){const f=c[s];if(!(f==="_owner"&&a.$$typeof)&&!Lo(a[f],r[f]))return!1}return!0}return a!==a&&r!==r}function sb(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function kp(a,r){const o=sb(a);return Math.round(r*o)/o}function vc(a){const r=C.useRef(a);return So(()=>{r.current=a}),r}function cS(a){a===void 0&&(a={});const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:c,elements:{reference:f,floating:d}={},transform:m=!0,whileElementsMounted:b,open:p}=a,[x,y]=C.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[A,j]=C.useState(s);Lo(A,s)||j(s);const[S,v]=C.useState(null),[T,E]=C.useState(null),R=C.useCallback(O=>{O!==H.current&&(H.current=O,v(O))},[]),L=C.useCallback(O=>{O!==F.current&&(F.current=O,E(O))},[]),z=f||S,Q=d||T,H=C.useRef(null),F=C.useRef(null),V=C.useRef(x),Y=b!=null,X=vc(b),K=vc(c),W=vc(p),ne=C.useCallback(()=>{if(!H.current||!F.current)return;const O={placement:r,strategy:o,middleware:A};K.current&&(O.platform=K.current),oS(H.current,F.current,O).then(I=>{const P={...I,isPositioned:W.current!==!1};B.current&&!Lo(V.current,P)&&(V.current=P,eb.flushSync(()=>{y(P)}))})},[A,r,o,K,W]);So(()=>{p===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,y(O=>({...O,isPositioned:!1})))},[p]);const B=C.useRef(!1);So(()=>(B.current=!0,()=>{B.current=!1}),[]),So(()=>{if(z&&(H.current=z),Q&&(F.current=Q),z&&Q){if(X.current)return X.current(z,Q,ne);ne()}},[z,Q,ne,X,Y]);const re=C.useMemo(()=>({reference:H,floating:F,setReference:R,setFloating:L}),[R,L]),N=C.useMemo(()=>({reference:z,floating:Q}),[z,Q]),k=C.useMemo(()=>{const O={position:o,left:0,top:0};if(!N.floating)return O;const I=kp(N.floating,x.x),P=kp(N.floating,x.y);return m?{...O,transform:"translate("+I+"px, "+P+"px)",...sb(N.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:I,top:P}},[o,m,N.floating,x.x,x.y]);return C.useMemo(()=>({...x,update:ne,refs:re,elements:N,floatingStyles:k}),[x,ne,re,N,k])}const fS=(a,r)=>({...aS(a),options:[a,r]}),dS=(a,r)=>({...rS(a),options:[a,r]}),gS=(a,r)=>({...iS(a),options:[a,r]}),hS="data-floating-ui-focusable",Op="active",Lp="selected",pS={...lm};let Mp=!1,mS=0;const Dp=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+mS++;function bS(){const[a,r]=C.useState(()=>Mp?Dp():void 0);return Mt(()=>{a==null&&r(Dp())},[]),C.useEffect(()=>{Mp=!0},[]),a}const yS=pS.useId,Kc=yS||bS;function vS(){const a=new Map;return{emit(r,o){var s;(s=a.get(r))==null||s.forEach(c=>c(o))},on(r,o){a.has(r)||a.set(r,new Set),a.get(r).add(o)},off(r,o){var s;(s=a.get(r))==null||s.delete(o)}}}const xS=C.createContext(null),SS=C.createContext(null),Qc=()=>{var a;return((a=C.useContext(xS))==null?void 0:a.id)||null},Zo=()=>C.useContext(SS);function Kl(a){return"data-floating-ui-"+a}function At(a){a.current!==-1&&(clearTimeout(a.current),a.current=-1)}const zp=Kl("safe-polygon");function xc(a,r,o){if(o&&!Xr(o))return 0;if(typeof a=="number")return a;if(typeof a=="function"){const s=a();return typeof s=="number"?s:s?.[r]}return a?.[r]}function Sc(a){return typeof a=="function"?a():a}function wS(a,r){r===void 0&&(r={});const{open:o,onOpenChange:s,dataRef:c,events:f,elements:d}=a,{enabled:m=!0,delay:b=0,handleClose:p=null,mouseOnly:x=!1,restMs:y=0,move:A=!0}=r,j=Zo(),S=Qc(),v=Il(p),T=Il(b),E=Il(o),R=Il(y),L=C.useRef(),z=C.useRef(-1),Q=C.useRef(),H=C.useRef(-1),F=C.useRef(!0),V=C.useRef(!1),Y=C.useRef(()=>{}),X=C.useRef(!1),K=Lt(()=>{var k;const O=(k=c.current.openEvent)==null?void 0:k.type;return O?.includes("mouse")&&O!=="mousedown"});C.useEffect(()=>{if(!m)return;function k(O){let{open:I}=O;I||(At(z),At(H),F.current=!0,X.current=!1)}return f.on("openchange",k),()=>{f.off("openchange",k)}},[m,f]),C.useEffect(()=>{if(!m||!v.current||!o)return;function k(I){K()&&s(!1,I,"hover")}const O=wt(d.floating).documentElement;return O.addEventListener("mouseleave",k),()=>{O.removeEventListener("mouseleave",k)}},[d.floating,o,s,m,v,K]);const W=C.useCallback(function(k,O,I){O===void 0&&(O=!0),I===void 0&&(I="hover");const P=xc(T.current,"close",L.current);P&&!Q.current?(At(z),z.current=window.setTimeout(()=>s(!1,k,I),P)):O&&(At(z),s(!1,k,I))},[T,s]),ne=Lt(()=>{Y.current(),Q.current=void 0}),B=Lt(()=>{if(V.current){const k=wt(d.floating).body;k.style.pointerEvents="",k.removeAttribute(zp),V.current=!1}}),re=Lt(()=>c.current.openEvent?["click","mousedown"].includes(c.current.openEvent.type):!1);C.useEffect(()=>{if(!m)return;function k(D){if(At(z),F.current=!1,x&&!Xr(L.current)||Sc(R.current)>0&&!xc(T.current,"open"))return;const G=xc(T.current,"open",L.current);G?z.current=window.setTimeout(()=>{E.current||s(!0,D,"hover")},G):o||s(!0,D,"hover")}function O(D){if(re()){B();return}Y.current();const G=wt(d.floating);if(At(H),X.current=!1,v.current&&c.current.floatingContext){o||At(z),Q.current=v.current({...c.current.floatingContext,tree:j,x:D.clientX,y:D.clientY,onClose(){B(),ne(),re()||W(D,!0,"safe-polygon")}});const ue=Q.current;G.addEventListener("mousemove",ue),Y.current=()=>{G.removeEventListener("mousemove",ue)};return}(L.current!=="touch"||!St(d.floating,D.relatedTarget))&&W(D)}function I(D){re()||c.current.floatingContext&&(v.current==null||v.current({...c.current.floatingContext,tree:j,x:D.clientX,y:D.clientY,onClose(){B(),ne(),re()||W(D)}})(D))}function P(){At(z)}function _(D){re()||W(D,!1)}if($e(d.domReference)){const D=d.domReference,G=d.floating;return o&&D.addEventListener("mouseleave",I),A&&D.addEventListener("mousemove",k,{once:!0}),D.addEventListener("mouseenter",k),D.addEventListener("mouseleave",O),G&&(G.addEventListener("mouseleave",I),G.addEventListener("mouseenter",P),G.addEventListener("mouseleave",_)),()=>{o&&D.removeEventListener("mouseleave",I),A&&D.removeEventListener("mousemove",k),D.removeEventListener("mouseenter",k),D.removeEventListener("mouseleave",O),G&&(G.removeEventListener("mouseleave",I),G.removeEventListener("mouseenter",P),G.removeEventListener("mouseleave",_))}}},[d,m,a,x,A,W,ne,B,s,o,E,j,T,v,c,re,R]),Mt(()=>{var k;if(m&&o&&(k=v.current)!=null&&(k=k.__options)!=null&&k.blockPointerEvents&&K()){V.current=!0;const I=d.floating;if($e(d.domReference)&&I){var O;const P=wt(d.floating).body;P.setAttribute(zp,"");const _=d.domReference,D=j==null||(O=j.nodesRef.current.find(G=>G.id===S))==null||(O=O.context)==null?void 0:O.elements.floating;return D&&(D.style.pointerEvents=""),P.style.pointerEvents="none",_.style.pointerEvents="auto",I.style.pointerEvents="auto",()=>{P.style.pointerEvents="",_.style.pointerEvents="",I.style.pointerEvents=""}}}},[m,o,S,d,j,v,K]),Mt(()=>{o||(L.current=void 0,X.current=!1,ne(),B())},[o,ne,B]),C.useEffect(()=>()=>{ne(),At(z),At(H),B()},[m,d.domReference,ne,B]);const N=C.useMemo(()=>{function k(O){L.current=O.pointerType}return{onPointerDown:k,onPointerEnter:k,onMouseMove(O){const{nativeEvent:I}=O;function P(){!F.current&&!E.current&&s(!0,I,"hover")}x&&!Xr(L.current)||o||Sc(R.current)===0||X.current&&O.movementX**2+O.movementY**2<2||(At(H),L.current==="touch"?P():(X.current=!0,H.current=window.setTimeout(P,Sc(R.current))))}}},[x,s,o,E,R]);return C.useMemo(()=>m?{reference:N}:{},[m,N])}let Bp=0;function qa(a,r){r===void 0&&(r={});const{preventScroll:o=!1,cancelPrevious:s=!0,sync:c=!1}=r;s&&cancelAnimationFrame(Bp);const f=()=>a?.focus({preventScroll:o});c?f():Bp=requestAnimationFrame(f)}function wc(a,r){if(!a||!r)return!1;const o=r.getRootNode==null?void 0:r.getRootNode();if(a.contains(r))return!0;if(o&&Co(o)){let s=r;for(;s;){if(a===s)return!0;s=s.parentNode||s.host}}return!1}function ES(a){return"composedPath"in a?a.composedPath()[0]:a.target}function CS(a){return a?.ownerDocument||document}const Va={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Up(a){return a==="inert"?Va.inert:a==="aria-hidden"?Va["aria-hidden"]:Va.none}let yo=new WeakSet,vo={},Ec=0;const NS=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,ub=a=>a&&(a.host||ub(a.parentNode)),AS=(a,r)=>r.map(o=>{if(a.contains(o))return o;const s=ub(o);return a.contains(s)?s:null}).filter(o=>o!=null);function TS(a,r,o,s){const c="data-floating-ui-inert",f=s?"inert":o?"aria-hidden":null,d=AS(r,a),m=new Set,b=new Set(d),p=[];vo[c]||(vo[c]=new WeakMap);const x=vo[c];d.forEach(y),A(r),m.clear();function y(j){!j||m.has(j)||(m.add(j),j.parentNode&&y(j.parentNode))}function A(j){!j||b.has(j)||[].forEach.call(j.children,S=>{if(Cl(S)!=="script")if(m.has(S))A(S);else{const v=f?S.getAttribute(f):null,T=v!==null&&v!=="false",E=Up(f),R=(E.get(S)||0)+1,L=(x.get(S)||0)+1;E.set(S,R),x.set(S,L),p.push(S),R===1&&T&&yo.add(S),L===1&&S.setAttribute(c,""),!T&&f&&S.setAttribute(f,f==="inert"?"":"true")}})}return Ec++,()=>{p.forEach(j=>{const S=Up(f),T=(S.get(j)||0)-1,E=(x.get(j)||0)-1;S.set(j,T),x.set(j,E),T||(!yo.has(j)&&f&&j.removeAttribute(f),yo.delete(j)),E||j.removeAttribute(c)}),Ec--,Ec||(Va.inert=new WeakMap,Va["aria-hidden"]=new WeakMap,Va.none=new WeakMap,yo=new WeakSet,vo={})}}function Hp(a,r,o){r===void 0&&(r=!1),o===void 0&&(o=!1);const s=CS(a[0]).body;return TS(a.concat(Array.from(s.querySelectorAll('[aria-live],[role="status"],output'))),s,r,o)}const $o={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},Mo=C.forwardRef(function(r,o){const[s,c]=C.useState();Mt(()=>{Km()&&c("button")},[]);const f={ref:o,tabIndex:0,role:s,"aria-hidden":s?void 0:!0,[Kl("focus-guard")]:"",style:$o};return g.jsx("span",{...r,...f})}),cb=C.createContext(null),Fp=Kl("portal");function RS(a){a===void 0&&(a={});const{id:r,root:o}=a,s=Kc(),c=fb(),[f,d]=C.useState(null),m=C.useRef(null);return Mt(()=>()=>{f?.remove(),queueMicrotask(()=>{m.current=null})},[f]),Mt(()=>{if(!s||m.current)return;const b=r?document.getElementById(r):null;if(!b)return;const p=document.createElement("div");p.id=s,p.setAttribute(Fp,""),b.appendChild(p),m.current=p,d(p)},[r,s]),Mt(()=>{if(o===null||!s||m.current)return;let b=o||c?.portalNode;b&&!Ic(b)&&(b=b.current),b=b||document.body;let p=null;r&&(p=document.createElement("div"),p.id=r,b.appendChild(p));const x=document.createElement("div");x.id=s,x.setAttribute(Fp,""),b=p||b,b.appendChild(x),m.current=x,d(x)},[r,o,s,c]),f}function _S(a){const{children:r,id:o,root:s,preserveTabOrder:c=!0}=a,f=RS({id:o,root:s}),[d,m]=C.useState(null),b=C.useRef(null),p=C.useRef(null),x=C.useRef(null),y=C.useRef(null),A=d?.modal,j=d?.open,S=!!d&&!d.modal&&d.open&&c&&!!(s||f);return C.useEffect(()=>{if(!f||!c||A)return;function v(T){f&&Yr(T)&&(T.type==="focusin"?Ap:M2)(f)}return f.addEventListener("focusin",v,!0),f.addEventListener("focusout",v,!0),()=>{f.removeEventListener("focusin",v,!0),f.removeEventListener("focusout",v,!0)}},[f,c,A]),C.useEffect(()=>{f&&(j||Ap(f))},[j,f]),g.jsxs(cb.Provider,{value:C.useMemo(()=>({preserveTabOrder:c,beforeOutsideRef:b,afterOutsideRef:p,beforeInsideRef:x,afterInsideRef:y,portalNode:f,setFocusManagerState:m}),[c,f]),children:[S&&f&&g.jsx(Mo,{"data-type":"outside",ref:b,onFocus:v=>{if(Yr(v,f)){var T;(T=x.current)==null||T.focus()}else{const E=d?d.domReference:null,R=Pm(E);R?.focus()}}}),S&&f&&g.jsx("span",{"aria-owns":f.id,style:$o}),f&&eb.createPortal(r,f),S&&f&&g.jsx(Mo,{"data-type":"outside",ref:p,onFocus:v=>{if(Yr(v,f)){var T;(T=y.current)==null||T.focus()}else{const E=d?d.domReference:null,R=Wm(E);R?.focus(),d?.closeOnFocusOut&&d?.onOpenChange(!1,v.nativeEvent,"focus-out")}}})]})}const fb=()=>C.useContext(cb);function qp(a){return C.useMemo(()=>r=>{a.forEach(o=>{o&&(o.current=r)})},a)}const jS=20;let Sl=[];function Jc(){Sl=Sl.filter(a=>a.isConnected)}function kS(a){Jc(),a&&Cl(a)!=="body"&&(Sl.push(a),Sl.length>jS&&(Sl=Sl.slice(-20)))}function Gp(){return Jc(),Sl[Sl.length-1]}function OS(a){const r=$r();return Xm(a,r)?a:Io(a,r)[0]||a}function Yp(a,r){var o;if(!r.current.includes("floating")&&!((o=a.getAttribute("role"))!=null&&o.includes("dialog")))return;const s=$r(),f=S2(a,s).filter(m=>{const b=m.getAttribute("data-tabindex")||"";return Xm(m,s)||m.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 LS=C.forwardRef(function(r,o){return g.jsx("button",{...r,type:"button",ref:o,tabIndex:-1,style:$o})});function MS(a){const{context:r,children:o,disabled:s=!1,order:c=["content"],guards:f=!0,initialFocus:d=0,returnFocus:m=!0,restoreFocus:b=!1,modal:p=!0,visuallyHiddenDismiss:x=!1,closeOnFocusOut:y=!0,outsideElementsInert:A=!1,getInsideElements:j=()=>[]}=a,{open:S,onOpenChange:v,events:T,dataRef:E,elements:{domReference:R,floating:L}}=r,z=Lt(()=>{var pe;return(pe=E.current.floatingContext)==null?void 0:pe.nodeId}),Q=Lt(j),H=typeof d=="number"&&d<0,F=Cp(R)&&H,V=NS(),Y=V?f:!0,X=!Y||V&&A,K=Il(c),W=Il(d),ne=Il(m),B=Zo(),re=fb(),N=C.useRef(null),k=C.useRef(null),O=C.useRef(!1),I=C.useRef(!1),P=C.useRef(-1),_=C.useRef(-1),D=re!=null,G=Bc(L),le=Lt(function(pe){return pe===void 0&&(pe=G),pe?Io(pe,$r()):[]}),ue=Lt(pe=>{const ke=le(pe);return K.current.map(Se=>R&&Se==="reference"?R:G&&Se==="floating"?G:ke).filter(Boolean).flat()});C.useEffect(()=>{if(s||!p)return;function pe(Se){if(Se.key==="Tab"){St(G,vl(wt(G)))&&le().length===0&&!F&&bc(Se);const ze=ue(),Re=Fn(Se);K.current[0]==="reference"&&Re===R&&(bc(Se),Se.shiftKey?qa(ze[ze.length-1]):qa(ze[1])),K.current[1]==="floating"&&Re===G&&Se.shiftKey&&(bc(Se),qa(ze[0]))}}const ke=wt(G);return ke.addEventListener("keydown",pe),()=>{ke.removeEventListener("keydown",pe)}},[s,R,G,p,K,F,le,ue]),C.useEffect(()=>{if(s||!L)return;function pe(ke){const Se=Fn(ke),Re=le().indexOf(Se);Re!==-1&&(P.current=Re)}return L.addEventListener("focusin",pe),()=>{L.removeEventListener("focusin",pe)}},[s,L,le]),C.useEffect(()=>{if(s||!y)return;function pe(){I.current=!0,setTimeout(()=>{I.current=!1})}function ke(Re){const De=Re.relatedTarget,Et=Re.currentTarget,at=Fn(Re);queueMicrotask(()=>{const ct=z(),zt=!(St(R,De)||St(L,De)||St(De,L)||St(re?.portalNode,De)||De!=null&&De.hasAttribute(Kl("focus-guard"))||B&&(Ga(B.nodesRef.current,ct).find(Bt=>{var Ut,Je;return St((Ut=Bt.context)==null?void 0:Ut.elements.floating,De)||St((Je=Bt.context)==null?void 0:Je.elements.domReference,De)})||Np(B.nodesRef.current,ct).find(Bt=>{var Ut,Je,Ql;return[(Ut=Bt.context)==null?void 0:Ut.elements.floating,Bc((Je=Bt.context)==null?void 0:Je.elements.floating)].includes(De)||((Ql=Bt.context)==null?void 0:Ql.elements.domReference)===De})));if(Et===R&&G&&Yp(G,K),b&&Et!==R&&!(at!=null&&at.isConnected)&&vl(wt(G))===wt(G).body){ut(G)&&G.focus();const Bt=P.current,Ut=le(),Je=Ut[Bt]||Ut[Ut.length-1]||G;ut(Je)&&Je.focus()}if(E.current.insideReactTree){E.current.insideReactTree=!1;return}(F||!p)&&De&&zt&&!I.current&&De!==Gp()&&(O.current=!0,v(!1,Re,"focus-out"))})}const Se=!!(!B&&re);function ze(){At(_),E.current.insideReactTree=!0,_.current=window.setTimeout(()=>{E.current.insideReactTree=!1})}if(L&&ut(R))return R.addEventListener("focusout",ke),R.addEventListener("pointerdown",pe),L.addEventListener("focusout",ke),Se&&L.addEventListener("focusout",ze,!0),()=>{R.removeEventListener("focusout",ke),R.removeEventListener("pointerdown",pe),L.removeEventListener("focusout",ke),Se&&L.removeEventListener("focusout",ze,!0)}},[s,R,L,G,p,B,re,v,y,b,le,F,z,K,E]);const fe=C.useRef(null),ce=C.useRef(null),ge=qp([fe,re?.beforeInsideRef]),de=qp([ce,re?.afterInsideRef]);C.useEffect(()=>{var pe,ke;if(s||!L)return;const Se=Array.from((re==null||(pe=re.portalNode)==null?void 0:pe.querySelectorAll("["+Kl("portal")+"]"))||[]),Re=(ke=(B?Np(B.nodesRef.current,z()):[]).find(at=>{var ct;return Cp(((ct=at.context)==null?void 0:ct.elements.domReference)||null)}))==null||(ke=ke.context)==null?void 0:ke.elements.domReference,De=[L,Re,...Se,...Q(),N.current,k.current,fe.current,ce.current,re?.beforeOutsideRef.current,re?.afterOutsideRef.current,K.current.includes("reference")||F?R:null].filter(at=>at!=null),Et=p||F?Hp(De,!X,X):Hp(De);return()=>{Et()}},[s,R,L,p,K,re,F,Y,X,B,z,Q]),Mt(()=>{if(s||!ut(G))return;const pe=wt(G),ke=vl(pe);queueMicrotask(()=>{const Se=ue(G),ze=W.current,Re=(typeof ze=="number"?Se[ze]:ze.current)||G,De=St(G,ke);!H&&!De&&S&&qa(Re,{preventScroll:Re===G})})},[s,S,G,H,ue,W]),Mt(()=>{if(s||!G)return;const pe=wt(G),ke=vl(pe);kS(ke);function Se(De){let{reason:Et,event:at,nested:ct}=De;if(["hover","safe-polygon"].includes(Et)&&at.type==="mouseleave"&&(O.current=!0),Et==="outside-press")if(ct)O.current=!1;else if(T2(at)||R2(at))O.current=!1;else{let zt=!1;document.createElement("div").focus({get preventScroll(){return zt=!0,!1}}),zt?O.current=!1:O.current=!0}}T.on("openchange",Se);const ze=pe.createElement("span");ze.setAttribute("tabindex","-1"),ze.setAttribute("aria-hidden","true"),Object.assign(ze.style,$o),D&&R&&R.insertAdjacentElement("afterend",ze);function Re(){if(typeof ne.current=="boolean"){const De=R||Gp();return De&&De.isConnected?De:ze}return ne.current.current||ze}return()=>{T.off("openchange",Se);const De=vl(pe),Et=St(L,De)||B&&Ga(B.nodesRef.current,z(),!1).some(ct=>{var zt;return St((zt=ct.context)==null?void 0:zt.elements.floating,De)}),at=Re();queueMicrotask(()=>{const ct=OS(at);ne.current&&!O.current&&ut(ct)&&(!(ct!==De&&De!==pe.body)||Et)&&ct.focus({preventScroll:!0}),ze.remove()})}},[s,L,G,ne,E,T,B,D,R,z]),C.useEffect(()=>(queueMicrotask(()=>{O.current=!1}),()=>{queueMicrotask(Jc)}),[s]),Mt(()=>{if(!s&&re)return re.setFocusManagerState({modal:p,closeOnFocusOut:y,open:S,onOpenChange:v,domReference:R}),()=>{re.setFocusManagerState(null)}},[s,re,p,S,v,y,R]),Mt(()=>{s||G&&Yp(G,K)},[s,G,K]);function be(pe){return s||!x||!p?null:g.jsx(LS,{ref:pe==="start"?N:k,onClick:ke=>v(!1,ke.nativeEvent),children:typeof x=="string"?x:"Dismiss"})}const Ce=!s&&Y&&(p?!F:!0)&&(D||p);return g.jsxs(g.Fragment,{children:[Ce&&g.jsx(Mo,{"data-type":"inside",ref:ge,onFocus:pe=>{if(p){const Se=ue();qa(c[0]==="reference"?Se[0]:Se[Se.length-1])}else if(re!=null&&re.preserveTabOrder&&re.portalNode)if(O.current=!1,Yr(pe,re.portalNode)){const Se=Wm(R);Se?.focus()}else{var ke;(ke=re.beforeOutsideRef.current)==null||ke.focus()}}}),!F&&be("start"),o,be("end"),Ce&&g.jsx(Mo,{"data-type":"inside",ref:de,onFocus:pe=>{if(p)qa(ue()[0]);else if(re!=null&&re.preserveTabOrder&&re.portalNode)if(y&&(O.current=!0),Yr(pe,re.portalNode)){const Se=Pm(R);Se?.focus()}else{var ke;(ke=re.afterOutsideRef.current)==null||ke.focus()}}})]})}function Vp(a){return ut(a.target)&&a.target.tagName==="BUTTON"}function DS(a){return ut(a.target)&&a.target.tagName==="A"}function Ip(a){return Zc(a)}function zS(a,r){r===void 0&&(r={});const{open:o,onOpenChange:s,dataRef:c,elements:{domReference:f}}=a,{enabled:d=!0,event:m="click",toggle:b=!0,ignoreMouse:p=!1,keyboardHandlers:x=!0,stickIfOpen:y=!0}=r,A=C.useRef(),j=C.useRef(!1),S=C.useMemo(()=>({onPointerDown(v){A.current=v.pointerType},onMouseDown(v){const T=A.current;v.button===0&&m!=="click"&&(Xr(T,!0)&&p||(o&&b&&(!(c.current.openEvent&&y)||c.current.openEvent.type==="mousedown")?s(!1,v.nativeEvent,"click"):(v.preventDefault(),s(!0,v.nativeEvent,"click"))))},onClick(v){const T=A.current;if(m==="mousedown"&&A.current){A.current=void 0;return}Xr(T,!0)&&p||(o&&b&&(!(c.current.openEvent&&y)||c.current.openEvent.type==="click")?s(!1,v.nativeEvent,"click"):s(!0,v.nativeEvent,"click"))},onKeyDown(v){A.current=void 0,!(v.defaultPrevented||!x||Vp(v))&&(v.key===" "&&!Ip(f)&&(v.preventDefault(),j.current=!0),!DS(v)&&v.key==="Enter"&&s(!(o&&b),v.nativeEvent,"click"))},onKeyUp(v){v.defaultPrevented||!x||Vp(v)||Ip(f)||v.key===" "&&j.current&&(j.current=!1,s(!(o&&b),v.nativeEvent,"click"))}}),[c,f,m,p,x,s,o,y,b]);return C.useMemo(()=>d?{reference:S}:{},[d,S])}const BS={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},US={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Xp=a=>{var r,o;return{escapeKey:typeof a=="boolean"?a:(r=a?.escapeKey)!=null?r:!1,outsidePress:typeof a=="boolean"?a:(o=a?.outsidePress)!=null?o:!0}};function HS(a,r){r===void 0&&(r={});const{open:o,onOpenChange:s,elements:c,dataRef:f}=a,{enabled:d=!0,escapeKey:m=!0,outsidePress:b=!0,outsidePressEvent:p="pointerdown",referencePress:x=!1,referencePressEvent:y="pointerdown",ancestorScroll:A=!1,bubbles:j,capture:S}=r,v=Zo(),T=Lt(typeof b=="function"?b:()=>!1),E=typeof b=="function"?T:b,R=C.useRef(!1),{escapeKey:L,outsidePress:z}=Xp(j),{escapeKey:Q,outsidePress:H}=Xp(S),F=C.useRef(!1),V=Lt(B=>{var re;if(!o||!d||!m||B.key!=="Escape"||F.current)return;const N=(re=f.current.floatingContext)==null?void 0:re.nodeId,k=v?Ga(v.nodesRef.current,N):[];if(!L&&(B.stopPropagation(),k.length>0)){let O=!0;if(k.forEach(I=>{var P;if((P=I.context)!=null&&P.open&&!I.context.dataRef.current.__escapeKeyBubbles){O=!1;return}}),!O)return}s(!1,A2(B)?B.nativeEvent:B,"escape-key")}),Y=Lt(B=>{var re;const N=()=>{var k;V(B),(k=Fn(B))==null||k.removeEventListener("keydown",N)};(re=Fn(B))==null||re.addEventListener("keydown",N)}),X=Lt(B=>{var re;const N=f.current.insideReactTree;f.current.insideReactTree=!1;const k=R.current;if(R.current=!1,p==="click"&&k||N||typeof E=="function"&&!E(B))return;const O=Fn(B),I="["+Kl("inert")+"]",P=wt(c.floating).querySelectorAll(I);let _=$e(O)?O:null;for(;_&&!Gn(_);){const ue=Yn(_);if(Gn(ue)||!$e(ue))break;_=ue}if(P.length&&$e(O)&&!C2(O)&&!St(O,c.floating)&&Array.from(P).every(ue=>!St(_,ue)))return;if(ut(O)&&ne){const ue=Gn(O),fe=on(O),ce=/auto|scroll/,ge=ue||ce.test(fe.overflowX),de=ue||ce.test(fe.overflowY),be=ge&&O.clientWidth>0&&O.scrollWidth>O.clientWidth,Ce=de&&O.clientHeight>0&&O.scrollHeight>O.clientHeight,pe=fe.direction==="rtl",ke=Ce&&(pe?B.offsetX<=O.offsetWidth-O.clientWidth:B.offsetX>O.clientWidth),Se=be&&B.offsetY>O.clientHeight;if(ke||Se)return}const D=(re=f.current.floatingContext)==null?void 0:re.nodeId,G=v&&Ga(v.nodesRef.current,D).some(ue=>{var fe;return mc(B,(fe=ue.context)==null?void 0:fe.elements.floating)});if(mc(B,c.floating)||mc(B,c.domReference)||G)return;const le=v?Ga(v.nodesRef.current,D):[];if(le.length>0){let ue=!0;if(le.forEach(fe=>{var ce;if((ce=fe.context)!=null&&ce.open&&!fe.context.dataRef.current.__outsidePressBubbles){ue=!1;return}}),!ue)return}s(!1,B,"outside-press")}),K=Lt(B=>{var re;const N=()=>{var k;X(B),(k=Fn(B))==null||k.removeEventListener(p,N)};(re=Fn(B))==null||re.addEventListener(p,N)});C.useEffect(()=>{if(!o||!d)return;f.current.__escapeKeyBubbles=L,f.current.__outsidePressBubbles=z;let B=-1;function re(P){s(!1,P,"ancestor-scroll")}function N(){window.clearTimeout(B),F.current=!0}function k(){B=window.setTimeout(()=>{F.current=!1},qo()?5:0)}const O=wt(c.floating);m&&(O.addEventListener("keydown",Q?Y:V,Q),O.addEventListener("compositionstart",N),O.addEventListener("compositionend",k)),E&&O.addEventListener(p,H?K:X,H);let I=[];return A&&($e(c.domReference)&&(I=El(c.domReference)),$e(c.floating)&&(I=I.concat(El(c.floating))),!$e(c.reference)&&c.reference&&c.reference.contextElement&&(I=I.concat(El(c.reference.contextElement)))),I=I.filter(P=>{var _;return P!==((_=O.defaultView)==null?void 0:_.visualViewport)}),I.forEach(P=>{P.addEventListener("scroll",re,{passive:!0})}),()=>{m&&(O.removeEventListener("keydown",Q?Y:V,Q),O.removeEventListener("compositionstart",N),O.removeEventListener("compositionend",k)),E&&O.removeEventListener(p,H?K:X,H),I.forEach(P=>{P.removeEventListener("scroll",re)}),window.clearTimeout(B)}},[f,c,m,E,p,o,s,A,d,L,z,V,Q,Y,X,H,K]),C.useEffect(()=>{f.current.insideReactTree=!1},[f,E,p]);const W=C.useMemo(()=>({onKeyDown:V,...x&&{[BS[y]]:B=>{s(!1,B.nativeEvent,"reference-press")},...y!=="click"&&{onClick(B){s(!1,B.nativeEvent,"reference-press")}}}}),[V,s,x,y]),ne=C.useMemo(()=>({onKeyDown:V,onMouseDown(){R.current=!0},onMouseUp(){R.current=!0},[US[p]]:()=>{f.current.insideReactTree=!0}}),[V,p,f]);return C.useMemo(()=>d?{reference:W,floating:ne}:{},[d,W,ne])}function FS(a){const{open:r=!1,onOpenChange:o,elements:s}=a,c=Kc(),f=C.useRef({}),[d]=C.useState(()=>vS()),m=Qc()!=null,[b,p]=C.useState(s.reference),x=Lt((j,S,v)=>{f.current.openEvent=j?S:void 0,d.emit("openchange",{open:j,event:S,reason:v,nested:m}),o?.(j,S,v)}),y=C.useMemo(()=>({setPositionReference:p}),[]),A=C.useMemo(()=>({reference:b||s.reference||null,floating:s.floating||null,domReference:s.reference}),[b,s.reference,s.floating]);return C.useMemo(()=>({dataRef:f,open:r,onOpenChange:x,elements:A,events:d,floatingId:c,refs:y}),[r,x,A,d,c,y])}function qS(a){a===void 0&&(a={});const{nodeId:r}=a,o=FS({...a,elements:{reference:null,floating:null,...a.elements}}),s=a.rootContext||o,c=s.elements,[f,d]=C.useState(null),[m,b]=C.useState(null),x=c?.domReference||f,y=C.useRef(null),A=Zo();Mt(()=>{x&&(y.current=x)},[x]);const j=cS({...a,elements:{...c,...m&&{reference:m}}}),S=C.useCallback(L=>{const z=$e(L)?{getBoundingClientRect:()=>L.getBoundingClientRect(),getClientRects:()=>L.getClientRects(),contextElement:L}:L;b(z),j.refs.setReference(z)},[j.refs]),v=C.useCallback(L=>{($e(L)||L===null)&&(y.current=L,d(L)),($e(j.refs.reference.current)||j.refs.reference.current===null||L!==null&&!$e(L))&&j.refs.setReference(L)},[j.refs]),T=C.useMemo(()=>({...j.refs,setReference:v,setPositionReference:S,domReference:y}),[j.refs,v,S]),E=C.useMemo(()=>({...j.elements,domReference:x}),[j.elements,x]),R=C.useMemo(()=>({...j,...s,refs:T,elements:E,nodeId:r}),[j,T,E,r,s]);return Mt(()=>{s.dataRef.current.floatingContext=R;const L=A?.nodesRef.current.find(z=>z.id===r);L&&(L.context=R)}),C.useMemo(()=>({...j,context:R,refs:T,elements:E}),[j,T,E,R])}function Cc(){return w2()&&Km()}function GS(a,r){r===void 0&&(r={});const{open:o,onOpenChange:s,events:c,dataRef:f,elements:d}=a,{enabled:m=!0,visibleOnly:b=!0}=r,p=C.useRef(!1),x=C.useRef(-1),y=C.useRef(!0);C.useEffect(()=>{if(!m)return;const j=Dt(d.domReference);function S(){!o&&ut(d.domReference)&&d.domReference===vl(wt(d.domReference))&&(p.current=!0)}function v(){y.current=!0}function T(){y.current=!1}return j.addEventListener("blur",S),Cc()&&(j.addEventListener("keydown",v,!0),j.addEventListener("pointerdown",T,!0)),()=>{j.removeEventListener("blur",S),Cc()&&(j.removeEventListener("keydown",v,!0),j.removeEventListener("pointerdown",T,!0))}},[d.domReference,o,m]),C.useEffect(()=>{if(!m)return;function j(S){let{reason:v}=S;(v==="reference-press"||v==="escape-key")&&(p.current=!0)}return c.on("openchange",j),()=>{c.off("openchange",j)}},[c,m]),C.useEffect(()=>()=>{At(x)},[]);const A=C.useMemo(()=>({onMouseLeave(){p.current=!1},onFocus(j){if(p.current)return;const S=Fn(j.nativeEvent);if(b&&$e(S)){if(Cc()&&!j.relatedTarget){if(!y.current&&!Zc(S))return}else if(!N2(S))return}s(!0,j.nativeEvent,"focus")},onBlur(j){p.current=!1;const S=j.relatedTarget,v=j.nativeEvent,T=$e(S)&&S.hasAttribute(Kl("focus-guard"))&&S.getAttribute("data-type")==="outside";x.current=window.setTimeout(()=>{var E;const R=vl(d.domReference?d.domReference.ownerDocument:document);!S&&R===d.domReference||St((E=f.current.floatingContext)==null?void 0:E.refs.floating.current,R)||St(d.domReference,R)||T||s(!1,v,"focus")})}}),[f,d.domReference,s,b]);return C.useMemo(()=>m?{reference:A}:{},[m,A])}function Nc(a,r,o){const s=new Map,c=o==="item";let f=a;if(c&&a){const{[Op]:d,[Lp]:m,...b}=a;f=b}return{...o==="floating"&&{tabIndex:-1,[hS]:""},...f,...r.map(d=>{const m=d?d[o]:null;return typeof m=="function"?a?m(a):null:m}).concat(a).reduce((d,m)=>(m&&Object.entries(m).forEach(b=>{let[p,x]=b;if(!(c&&[Op,Lp].includes(p)))if(p.indexOf("on")===0){if(s.has(p)||s.set(p,[]),typeof x=="function"){var y;(y=s.get(p))==null||y.push(x),d[p]=function(){for(var A,j=arguments.length,S=new Array(j),v=0;v<j;v++)S[v]=arguments[v];return(A=s.get(p))==null?void 0:A.map(T=>T(...S)).find(T=>T!==void 0)}}}else d[p]=x}),d),{})}}function YS(a){a===void 0&&(a=[]);const r=a.map(m=>m?.reference),o=a.map(m=>m?.floating),s=a.map(m=>m?.item),c=C.useCallback(m=>Nc(m,a,"reference"),r),f=C.useCallback(m=>Nc(m,a,"floating"),o),d=C.useCallback(m=>Nc(m,a,"item"),s);return C.useMemo(()=>({getReferenceProps:c,getFloatingProps:f,getItemProps:d}),[c,f,d])}const VS=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function IS(a,r){var o,s;r===void 0&&(r={});const{open:c,elements:f,floatingId:d}=a,{enabled:m=!0,role:b="dialog"}=r,p=Kc(),x=((o=f.domReference)==null?void 0:o.id)||p,y=C.useMemo(()=>{var R;return((R=Bc(f.floating))==null?void 0:R.id)||d},[f.floating,d]),A=(s=VS.get(b))!=null?s:b,S=Qc()!=null,v=C.useMemo(()=>A==="tooltip"||b==="label"?{["aria-"+(b==="label"?"labelledby":"describedby")]:c?y:void 0}:{"aria-expanded":c?"true":"false","aria-haspopup":A==="alertdialog"?"dialog":A,"aria-controls":c?y:void 0,...A==="listbox"&&{role:"combobox"},...A==="menu"&&{id:x},...A==="menu"&&S&&{role:"menuitem"},...b==="select"&&{"aria-autocomplete":"none"},...b==="combobox"&&{"aria-autocomplete":"list"}},[A,y,S,c,x,b]),T=C.useMemo(()=>{const R={id:y,...A&&{role:A}};return A==="tooltip"||b==="label"?R:{...R,...A==="menu"&&{"aria-labelledby":x}}},[A,y,x,b]),E=C.useCallback(R=>{let{active:L,selected:z}=R;const Q={role:"option",...L&&{id:y+"-fui-option"}};switch(b){case"select":case"combobox":return{...Q,"aria-selected":z}}return{}},[y,b]);return C.useMemo(()=>m?{reference:v,floating:T,item:E}:{},[m,v,T,E])}function db(a,r,o){return o===void 0&&(o=!0),a.filter(c=>{var f;return c.parentId===r&&(!o||((f=c.context)==null?void 0:f.open))}).flatMap(c=>[c,...db(a,c.id,o)])}function Zp(a,r){const[o,s]=a;let c=!1;const f=r.length;for(let d=0,m=f-1;d<f;m=d++){const[b,p]=r[d]||[0,0],[x,y]=r[m]||[0,0];p>=s!=y>=s&&o<=(x-b)*(s-p)/(y-p)+b&&(c=!c)}return c}function XS(a,r){return a[0]>=r.x&&a[0]<=r.x+r.width&&a[1]>=r.y&&a[1]<=r.y+r.height}function ZS(a){a===void 0&&(a={});const{buffer:r=.5,blockPointerEvents:o=!1,requireIntent:s=!0}=a,c={current:-1};let f=!1,d=null,m=null,b=typeof performance<"u"?performance.now():0;function p(y,A){const j=performance.now(),S=j-b;if(d===null||m===null||S===0)return d=y,m=A,b=j,null;const v=y-d,T=A-m,R=Math.sqrt(v*v+T*T)/S;return d=y,m=A,b=j,R}const x=y=>{let{x:A,y:j,placement:S,elements:v,onClose:T,nodeId:E,tree:R}=y;return function(z){function Q(){At(c),T()}if(At(c),!v.domReference||!v.floating||S==null||A==null||j==null)return;const{clientX:H,clientY:F}=z,V=[H,F],Y=ES(z),X=z.type==="mouseleave",K=wc(v.floating,Y),W=wc(v.domReference,Y),ne=v.domReference.getBoundingClientRect(),B=v.floating.getBoundingClientRect(),re=S.split("-")[0],N=A>B.right-B.width/2,k=j>B.bottom-B.height/2,O=XS(V,ne),I=B.width>ne.width,P=B.height>ne.height,_=(I?ne:B).left,D=(I?ne:B).right,G=(P?ne:B).top,le=(P?ne:B).bottom;if(K&&(f=!0,!X))return;if(W&&(f=!1),W&&!X){f=!0;return}if(X&&$e(z.relatedTarget)&&wc(v.floating,z.relatedTarget)||R&&db(R.nodesRef.current,E).length)return;if(re==="top"&&j>=ne.bottom-1||re==="bottom"&&j<=ne.top+1||re==="left"&&A>=ne.right-1||re==="right"&&A<=ne.left+1)return Q();let ue=[];switch(re){case"top":ue=[[_,ne.top+1],[_,B.bottom-1],[D,B.bottom-1],[D,ne.top+1]];break;case"bottom":ue=[[_,B.top+1],[_,ne.bottom-1],[D,ne.bottom-1],[D,B.top+1]];break;case"left":ue=[[B.right-1,le],[B.right-1,G],[ne.left+1,G],[ne.left+1,le]];break;case"right":ue=[[ne.right-1,le],[ne.right-1,G],[B.left+1,G],[B.left+1,le]];break}function fe(ce){let[ge,de]=ce;switch(re){case"top":{const be=[I?ge+r/2:N?ge+r*4:ge-r*4,de+r+1],Ce=[I?ge-r/2:N?ge+r*4:ge-r*4,de+r+1],pe=[[B.left,N||I?B.bottom-r:B.top],[B.right,N?I?B.bottom-r:B.top:B.bottom-r]];return[be,Ce,...pe]}case"bottom":{const be=[I?ge+r/2:N?ge+r*4:ge-r*4,de-r],Ce=[I?ge-r/2:N?ge+r*4:ge-r*4,de-r],pe=[[B.left,N||I?B.top+r:B.bottom],[B.right,N?I?B.top+r:B.bottom:B.top+r]];return[be,Ce,...pe]}case"left":{const be=[ge+r+1,P?de+r/2:k?de+r*4:de-r*4],Ce=[ge+r+1,P?de-r/2:k?de+r*4:de-r*4];return[...[[k||P?B.right-r:B.left,B.top],[k?P?B.right-r:B.left:B.right-r,B.bottom]],be,Ce]}case"right":{const be=[ge-r,P?de+r/2:k?de+r*4:de-r*4],Ce=[ge-r,P?de-r/2:k?de+r*4:de-r*4],pe=[[k||P?B.left+r:B.right,B.top],[k?P?B.left+r:B.right:B.left+r,B.bottom]];return[be,Ce,...pe]}}}if(!Zp([H,F],ue)){if(f&&!O)return Q();if(!X&&s){const ce=p(z.clientX,z.clientY);if(ce!==null&&ce<.1)return Q()}Zp([H,F],fe([A,j]))?!f&&s&&(c.current=window.setTimeout(Q,40)):Q()}}};return x.__options={blockPointerEvents:o},x}function $p({label:a,value:r,resolvedValue:o,onChange:s,options:c,disabledValues:f=[]}){const[d,m]=C.useState(!1),{refs:b,floatingStyles:p,context:x}=qS({open:d,onOpenChange:m,middleware:[fS(4),gS(),dS({padding:8})],whileElementsMounted:lS}),y=wS(x,{handleClose:ZS()}),A=zS(x),j=GS(x),S=HS(x),v=IS(x),{getReferenceProps:T,getFloatingProps:E}=YS([y,A,j,S,v]),R=r==="working"&&f.includes("staged")||r==="staged"&&f.includes("working"),L=()=>{const Y=c.specialOptions.find(W=>W.value===r);if(Y)return Y.label;const X=c.branches.find(W=>W.name===r);if(X)return`${X.name}${X.current?" (current)":""}`;const K=c.commits.find(W=>W.shortHash===r);return K?`${K.shortHash} - ${K.message}`:r||"Select..."},z=Y=>{s(Y),m(!1)},Q=Y=>f.includes(Y),H=(Y,X)=>["w-full text-left px-3 py-2 text-xs focus:outline-none transition-colors",Y?"hover:bg-diff-selected-bg focus:bg-diff-selected-bg":"hover:bg-github-bg-tertiary focus:bg-github-bg-tertiary",Y?"bg-diff-selected-bg border-l-4 border-l-diff-selected-border font-semibold pl-2":"",X?"opacity-50 cursor-not-allowed":"cursor-pointer"].join(" "),F=(Y,X)=>Y===r||X===r?!0:o?Y===o||X===o:!1,V=()=>{let Y=0;const X=c.specialOptions.findIndex(K=>K.value===r);if(X!==-1)return X;if(Y+=c.specialOptions.length,!R){const K=c.commits.findIndex(ne=>ne.shortHash===r);if(K!==-1)return Y+K;Y+=c.commits.length;const W=c.branches.findIndex(ne=>ne.name===r);if(W!==-1)return Y+W}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:L()}),g.jsx(zo,{size:12,className:"text-github-text-secondary group-hover:text-github-text-primary transition-colors"})]})]}),d&&g.jsx(_S,{children:g.jsx(MS,{context:x,modal:!1,initialFocus:V(),children:g.jsxs("div",{ref:b.setFloating,style:p,className:"bg-github-bg-secondary border border-github-border rounded shadow-lg z-50 w-[360px] max-h-[400px] overflow-y-auto",...E(),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(Y=>g.jsx("button",{onClick:()=>z(Y.value),disabled:Q(Y.value),className:H(Y.value===r,Q(Y.value)),children:Y.label},Y.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(Y=>g.jsx("button",{onClick:()=>z(Y.shortHash),disabled:Q(Y.shortHash),className:H(F(Y.shortHash,Y.hash),Q(Y.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:Y.shortHash}),g.jsx("span",{className:"text-xs text-github-text-secondary flex-1 break-words",children:Y.message})]})},Y.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(Y=>g.jsx("button",{onClick:()=>z(Y.name),disabled:Q(Y.name),className:H(Y.name===r,Q(Y.name)),children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:"text-github-text-primary",children:Y.name}),Y.current&&g.jsx("span",{className:"text-xs text-github-text-muted",children:"(current)"})]})},Y.name))]})]})})})]})}const $S={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark"},KS=[{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 QS({isOpen:a,onClose:r,settings:o,onSettingsChange:s}){const[c,f]=C.useState(o),{enableScope:d,disableScope:m}=Do();C.useEffect(()=>{f(o)},[o]),C.useEffect(()=>{s(c)},[c,s]),C.useEffect(()=>(a?m("navigation"):d("navigation"),()=>{d("navigation")}),[a,d,m]);const b=()=>c.theme==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":c.theme,p=()=>b()==="light"?pp:mp,x=A=>{const j={...c,theme:A},v=(A==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":A)==="light"?pp:mp;if(!v.some(E=>E.id===c.syntaxTheme)&&v.length>0){const E=v[0];E&&(j.syntaxTheme=E.id)}f(j)},y=()=>{f($S)};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(xm,{size:20}),"Appearance Settings"]}),g.jsx("button",{onClick:r,className:"text-github-text-secondary hover:text-github-text-primary p-1",children:g.jsx(Gc,{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:A=>f({...c,fontSize:parseInt(A.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:A=>f({...c,fontFamily:A.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:KS.map(A=>g.jsx("option",{value:A.value,children:A.name},A.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(A=>g.jsx("button",{onClick:()=>x(A),className:`px-3 py-2 text-sm rounded border transition-colors ${c.theme===A?"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:A.charAt(0).toUpperCase()+A.slice(1)},A))})]}),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:A=>f({...c,syntaxTheme:A.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:p().map(A=>g.jsx("option",{value:A.id,children:A.label},A.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 Kp={position:"absolute",fontSize:"16px",pointerEvents:"none",zIndex:100,transform:"translateY(20px) scale(0.5)",opacity:0},JS=({isActive:a})=>a?g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"animate-sparkle-rise",style:{...Kp,left:"-12px",animationDelay:"0s"},children:"✨"}),g.jsx("div",{className:"animate-sparkle-rise",style:{...Kp,right:"-12px",animationDelay:"0.3s"},children:"✨"})]}):null,Qp={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark"},Jp="reviewit-appearance-settings";function WS(){const[a,r]=C.useState(()=>{try{const c=localStorage.getItem(Jp);if(c)return{...Qp,...JSON.parse(c)}}catch(c){console.warn("Failed to load appearance settings from localStorage:",c)}return Qp}),o=C.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 C.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)");o(f.matches?"dark":"light");const d=m=>{o(m.matches?"dark":"light")};return f.addEventListener("change",d),()=>f.removeEventListener("change",d)}else{o(a.theme);return}},[a,o]),{settings:a,updateSettings:c=>{r(c);try{localStorage.setItem(Jp,JSON.stringify(c))}catch(f){console.warn("Failed to save appearance settings to localStorage:",f)}}}}function gb(a,r,o){const s=typeof r=="number"?`L${r}`:Array.isArray(r)?`L${r[0]}-L${r[1]}`:"";return`${a||"<unknown file>"}:${s}
|
|
21
|
+
${o}`}function PS(a){return a.length===0?"":a.map(o=>gb(o.file,o.line,o.body)).join(`
|
|
22
|
+
=====
|
|
23
|
+
`)}const xo="difit-storage-v1";class e3{generateStorageKey(r,o){const s=c=>c.replace(/[^a-zA-Z0-9-_]/g,f=>`_${f.charCodeAt(0).toString(16)}_`);return`${s(r)}-${s(o)}`}normalizeCommitish(r,o,s){if(r==="."||r==="working")return"WORKING";if(r==="staged")return"STAGED";if((r==="HEAD"||r==="@")&&o)return o;if(s?.has(r)){const c=s.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=${o}`),r}getStorageKey(r,o,s,c,f){let d,m;o==="."||o==="working"?(d=s||r,m="WORKING"):o==="staged"?(d=s||r,m="STAGED"):(d=this.normalizeCommitish(r,s,c),m=this.normalizeCommitish(o,s,c));const b=this.generateStorageKey(d,m);return f?`${xo}/${f}/${b}`:`${xo}/${b}`}getDiffContextData(r,o,s,c,f){try{const d=this.getStorageKey(r,o,s,c,f),m=localStorage.getItem(d);if(!m)return null;const b=JSON.parse(m);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,o,s,c,f,d){try{const m=this.getStorageKey(r,o,c,f,d),b={...s,baseCommitish:r,targetCommitish:o,lastModifiedAt:new Date().toISOString()};localStorage.setItem(m,JSON.stringify(b))}catch(m){m instanceof DOMException&&m.name==="QuotaExceededError"?console.error("localStorage quota exceeded"):console.error("Error saving diff context data:",m)}}getComments(r,o,s,c,f){return this.getDiffContextData(r,o,s,c,f)?.comments||[]}saveComments(r,o,s,c,f,d){const b=this.getDiffContextData(r,o,c,f,d)||{version:1,baseCommitish:r,targetCommitish:o,createdAt:new Date().toISOString(),lastModifiedAt:new Date().toISOString(),comments:[],viewedFiles:[]};b.comments=s,this.saveDiffContextData(r,o,b,c,f,d)}getViewedFiles(r,o,s,c,f){return this.getDiffContextData(r,o,s,c,f)?.viewedFiles||[]}saveViewedFiles(r,o,s,c,f,d){const b=this.getDiffContextData(r,o,c,f,d)||{version:1,baseCommitish:r,targetCommitish:o,createdAt:new Date().toISOString(),lastModifiedAt:new Date().toISOString(),comments:[],viewedFiles:[]};b.viewedFiles=s,this.saveDiffContextData(r,o,b,c,f,d)}cleanupOldData(r){const o=new Date;o.setDate(o.getDate()-r);const s=o.getTime(),c=[];for(let f=0;f<localStorage.length;f++){const d=localStorage.key(f);if(d?.startsWith(xo))try{const m=localStorage.getItem(d);if(!m)continue;const b=JSON.parse(m);new Date(b.lastModifiedAt).getTime()<s&&c.push(d)}catch{}}c.forEach(f=>localStorage.removeItem(f))}getStorageSize(){let r=0;for(let o=0;o<localStorage.length;o++){const s=localStorage.key(o);if(!s?.startsWith(xo))continue;const c=localStorage.getItem(s);c&&(r+=(s.length+c.length)*2)}return r}}const Vr=new e3;async function Wp(a){try{const o=new TextEncoder().encode(a),s=await crypto.subtle.digest("SHA-256",o);return Array.from(new Uint8Array(s)).map(f=>f.toString(16).padStart(2,"0")).join("")}catch{return console.warn("Crypto API not available, using fallback hash"),t3(a)}}function t3(a){let r=0;for(let o=0;o<a.length;o++){const s=a.charCodeAt(o);r=(r<<5)-r+s,r=r&r}return Math.abs(r).toString(16)}function Pp(a){const r=a.chunks.map(o=>{const s=o.lines.filter(c=>c.type!=="hunk"&&c.type!=="header").map(c=>`${c.type}:${c.content}`).join(`
|
|
24
|
+
`);return`${o.header}
|
|
25
|
+
${s}`}).join(`
|
|
26
|
+
|
|
27
|
+
`);return`${a.path}
|
|
28
|
+
${a.status}
|
|
29
|
+
${r}`}function n3(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 l3(a,r,o,s,c){const[f,d]=C.useState([]);C.useEffect(()=>{if(!a||!r)return;const S=Vr.getComments(a,r,o,s,c);d(S)},[a,r,o,s,c]);const m=C.useCallback(S=>{!a||!r||(Vr.saveComments(a,r,S,o,s,c),d(S))},[a,r,o,s,c]),b=C.useCallback(S=>{const v={id:crypto.randomUUID(),filePath:S.filePath,body:S.body,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString(),chunkHeader:S.chunkHeader,position:{side:S.side,line:S.line},codeSnapshot:S.codeSnapshot||{content:"",language:n3(S.filePath)}},T=[...f,v];return m(T),v},[f,m]),p=C.useCallback(S=>{const v=f.filter(T=>T.id!==S);m(v)},[f,m]),x=C.useCallback((S,v)=>{const T=f.map(E=>E.id===S?{...E,body:v,updatedAt:new Date().toISOString()}:E);m(T)},[f,m]),y=C.useCallback(()=>{m([])},[m]),A=C.useCallback(S=>{const v=f.find(E=>E.id===S);if(!v)return"";const T=typeof v.position.line=="number"?v.position.line:[v.position.line.start,v.position.line.end];return gb(v.filePath,T,v.body)},[f]),j=C.useCallback(()=>{const S=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 PS(S)},[f]);return{comments:f,addComment:b,removeComment:p,updateComment:x,clearAllComments:y,generatePrompt:A,generateAllCommentsPrompt:j}}const a3=20;async function em(a,r){const o=encodeURIComponent(a),s=await fetch(`/api/blob/${o}?ref=${encodeURIComponent(r)}`);if(!s.ok)throw new Error(`Failed to fetch file content: ${s.statusText}`);const f=(await s.text()).split(`
|
|
30
|
+
`);return f.length>0&&f[f.length-1]===""&&f.pop(),{lines:f,totalLines:f.length}}async function r3(a,r,o,s){const c=encodeURIComponent(a),f=new URLSearchParams;r&&f.set("oldRef",r),o&&f.set("newRef",o),s&&s!==a&&f.set("oldPath",s);const d=await fetch(`/api/line-count/${c}?${f}`);if(!d.ok)throw new Error(`Failed to fetch line count: ${d.statusText}`);return d.json()}function i3({baseCommitish:a,targetCommitish:r}){const[o,s]=C.useState({}),[c,f]=C.useState(!1),[d,m]=C.useState(null),[b,p]=C.useState(0),x=C.useRef(new Map),y=C.useRef({});y.current=o;const A=C.useCallback(async H=>{const F=x.current.get(H.path);if(F)return F;const V=(async()=>{const Y=y.current[H.path];if(Y?.oldContent&&Y?.newContent)return Y;const X={...Y,expandedRanges:Y?.expandedRanges||[]};if(H.status!=="added"&&a){const K=H.oldPath||H.path;try{const{lines:W,totalLines:ne}=await em(K,a);X.oldContent=W,X.oldTotalLines=ne}catch(W){console.error("Failed to fetch old file content:",W),X.oldContent=[],X.oldTotalLines=0}}if(H.status!=="deleted"&&r)try{const{lines:K,totalLines:W}=await em(H.path,r);X.newContent=K,X.newTotalLines=W}catch(K){console.error("Failed to fetch new file content:",K),X.newContent=[],X.newTotalLines=0}return X})();x.current.set(H.path,V);try{return await V}finally{x.current.delete(H.path)}},[a,r]),j=C.useCallback(H=>{m(H),p(F=>F+1)},[]),S=C.useCallback(async(H,F,V,Y=a3)=>{f(!0);try{const X=await A(H);s(K=>{const W=K[H.path],ne=W?.expandedRanges||X.expandedRanges||[],B=ne.findIndex(N=>N.chunkIndex===F&&N.direction===V),re=[...ne];if(B>=0&&re[B]){const N=re[B];re[B]={chunkIndex:N.chunkIndex,direction:N.direction,count:N.count+Y}}else re.push({chunkIndex:F,direction:V,count:Y});return{...K,[H.path]:{oldContent:W?.oldContent??X.oldContent,newContent:W?.newContent??X.newContent,oldTotalLines:W?.oldTotalLines??X.oldTotalLines,newTotalLines:W?.newTotalLines??X.newTotalLines,expandedRanges:re}}}),j(H.path)}finally{f(!1)}},[A,j]),v=C.useCallback(async(H,F,V)=>{f(!0);try{const Y=await A(H);s(X=>{const K=X[H.path],ne=[...K?.expandedRanges||Y.expandedRanges||[]],B=ne.findIndex(_=>_.chunkIndex===F&&_.direction==="up"),re=ne.findIndex(_=>_.chunkIndex===F-1&&_.direction==="down");let N=0,k=0;B>=0&&ne[B]&&(N=ne[B].count),re>=0&&ne[re]&&(k=ne[re].count);const O=N+k+V,I=ne.filter(_=>!(_.chunkIndex===F-1&&_.direction==="down")),P=I.findIndex(_=>_.chunkIndex===F&&_.direction==="up");return P>=0&&I[P]?I[P]={chunkIndex:F,direction:"up",count:O}:I.push({chunkIndex:F,direction:"up",count:O}),{...X,[H.path]:{oldContent:K?.oldContent??Y.oldContent,newContent:K?.newContent??Y.newContent,oldTotalLines:K?.oldTotalLines??Y.oldTotalLines,newTotalLines:K?.newTotalLines??Y.newTotalLines,expandedRanges:I}}}),j(H.path)}finally{f(!1)}},[A,j]),T=C.useCallback(async H=>{const F=y.current[H.path];if(F?.oldTotalLines!==void 0||F?.newTotalLines!==void 0)return;const V=H.status!=="added"?a:void 0,Y=H.status!=="deleted"?r:void 0;if(!(!V&&!Y))try{const{oldLineCount:X,newLineCount:K}=await r3(H.path,V,Y,H.oldPath);s(W=>{const ne=W[H.path];return ne?.oldTotalLines!==void 0||ne?.newTotalLines!==void 0?W:{...W,[H.path]:{...ne,expandedRanges:ne?.expandedRanges||[],oldTotalLines:X,newTotalLines:K}}}),j(H.path)}catch(X){console.error("Failed to prefetch line count:",X)}},[a,r,j]),E=C.useCallback((H,F,V)=>{const Y=o[H];return Y&&Y.expandedRanges.find(K=>K.chunkIndex===F&&K.direction===V)?.count||0},[o]),R=C.useCallback((H,F,V)=>{if(H.status==="added"||H.status==="deleted")return 0;const Y=H.chunks[V-1];let X;if(!Y)X=F.oldStart-1;else{const ne=Y.oldStart+Y.oldLines;X=F.oldStart-ne}const K=E(H.path,V,"up"),W=V>0?E(H.path,V-1,"down"):0;return Math.max(0,X-K-W)},[E]),L=C.useCallback((H,F,V)=>{if(H.status==="added"||H.status==="deleted")return 0;const Y=o[H.path],X=Y?.oldTotalLines||Y?.newTotalLines;if(X===void 0)return H.chunks[V+1]?0:-1;if(H.chunks[V+1])return 0;const W=F.oldStart+F.oldLines-1,ne=X-W,B=E(H.path,V,"down");return Math.max(0,ne-B)},[o,E]),z=C.useCallback((H,F,V)=>{const Y=o[H.path];if(!Y)return F;const X=E(H.path,V,"up"),K=E(H.path,V,"down");if(X===0&&K===0)return F;const W=Y.oldContent||[],ne=Y.newContent||[],B=[];if(X>0){const k=H.chunks[V-1];let O;k?O=k.oldStart+k.oldLines-1:O=Math.max(0,F.oldStart-1-X);const I=F.oldStart-1,P=F.newStart-1,_=Math.min(X,I-O),D=I-_,G=P-_;for(let le=0;le<_;le++){const ue=D+le+1,fe=G+le+1,ce=W[ue-1]??ne[fe-1]??"";B.push({type:"normal",content:ce,oldLineNumber:ue,newLineNumber:fe,isExpanded:!0})}}if(B.push(...F.lines),K>0){const k=F.oldStart+F.oldLines-1,O=F.newStart+F.newLines-1,I=H.chunks[V+1],P=I?I.oldStart-1:Y.oldTotalLines||k,_=Math.min(K,P-k);for(let D=0;D<_;D++){const G=k+D+1,le=O+D+1,ue=W[G-1]??ne[le-1]??"";B.push({type:"normal",content:ue,oldLineNumber:G,newLineNumber:le,isExpanded:!0})}}const re=B[0],N=B[B.length-1];return{...F,lines:B,oldStart:re?.oldLineNumber??F.oldStart,newStart:re?.newLineNumber??F.newStart,oldLines:(N?.oldLineNumber??F.oldStart+F.oldLines-1)-(re?.oldLineNumber??F.oldStart)+1,newLines:(N?.newLineNumber??F.newStart+F.newLines-1)-(re?.newLineNumber??F.newStart)+1}},[o,E]),Q=C.useCallback(H=>{const F=[];for(let V=0;V<H.chunks.length;V++){const Y=H.chunks[V];if(!Y)continue;const X=z(H,Y,V),K=R(H,Y,V),W=L(H,Y,V),ne=F[F.length-1];if(ne&&K===0){ne.lines=[...ne.lines,...X.lines],ne.originalIndices.push(V),ne.hiddenLinesAfter=W;const B=ne.lines[ne.lines.length-1];ne.oldLines=(B?.oldLineNumber??ne.oldStart+ne.oldLines-1)-ne.oldStart+1,ne.newLines=(B?.newLineNumber??ne.newStart+ne.newLines-1)-ne.newStart+1}else F.push({...X,originalIndices:[V],hiddenLinesBefore:K,hiddenLinesAfter:W})}return F},[z,R,L]);return{expandedState:o,isLoading:c,lastUpdatedFilePath:d,lastUpdatedAt:b,expandLines:S,expandAllBetweenChunks:v,prefetchFileContent:T,getMergedChunks:Q,getHiddenLinesBefore:R,getHiddenLinesAfter:L}}var hb=(a=>(a.DEFAULT="default",a.WORKING="working",a.STAGED="staged",a.DOT="dot",a.SPECIFIC="specific",a))(hb||{});function o3(a){const r=C.useRef(null),o=C.useRef(null),s=C.useRef(0),c=5,f=3e3,[d,m]=C.useState({isWatchEnabled:!1,diffMode:hb.DEFAULT,shouldReload:!1,isReloading:!1,lastChangeTime:null,lastChangeType:null,connectionStatus:"disconnected"}),[b,p]=C.useState(null),x=C.useCallback(()=>{if(!r.current)try{const j=new EventSource("/api/watch");r.current=j,j.onopen=()=>{console.log("Connected to file watch service"),m(S=>({...S,connectionStatus:"connected"})),s.current=0,p(null)},j.onmessage=S=>{try{const v=JSON.parse(S.data);switch(v.type){case"connected":m(T=>({...T,isWatchEnabled:!0,diffMode:v.diffMode,connectionStatus:"connected"}));break;case"reload":console.log("File changes detected, showing reload button:",v.changeType),m(T=>({...T,shouldReload:!0,lastChangeTime:new Date,lastChangeType:v.changeType}));break;case"error":console.error("File watch error:",v.message),p(v.message||"File watch error occurred");break}}catch(v){console.error("Error parsing watch event:",v)}},j.onerror=()=>{console.log("File watch connection lost"),m(S=>({...S,connectionStatus:"disconnected"})),r.current&&(r.current.close(),r.current=null),s.current<c?(m(S=>({...S,connectionStatus:"reconnecting"})),s.current+=1,o.current=setTimeout(()=>{console.log(`Attempting to reconnect to file watch service (${s.current}/${c})...`),x()},f)):(console.error("Max reconnection attempts reached"),p("Lost connection to file watch service"))}}catch(j){console.error("Failed to connect to file watch service:",j),p("Failed to connect to file watch service")}},[c,f]),y=C.useCallback(async()=>{if(!d.isReloading){m(j=>({...j,isReloading:!0}));try{a&&await a(),m(j=>({...j,shouldReload:!1,isReloading:!1,lastChangeTime:null,lastChangeType:null}))}catch(j){console.error("Reload failed:",j),p("Failed to reload diff data"),m(S=>({...S,isReloading:!1}))}}},[a,d.isReloading]),A=()=>{r.current&&(r.current.close(),r.current=null),o.current&&(clearTimeout(o.current),o.current=null)};return C.useEffect(()=>(x(),A),[x]),C.useEffect(()=>A,[]),{shouldReload:d.shouldReload,isConnected:d.connectionStatus==="connected",error:b,reload:y,watchState:d}}const Uc={SCROLL_CONTAINER:"main.overflow-y-auto"};function yl(a,r){const o=`file-${a.fileIndex}-chunk-${a.chunkIndex}-line-${a.lineIndex}`;return r==="side-by-side"?`${o}-${a.side}`:o}function pb(a,r){return`${a}:${r}`}function s3(a,r){const o=r[a.fileIndex]?.chunks[a.chunkIndex]?.lines[a.lineIndex];return o&&(o.type==="add"||o.type==="delete"||o.type==="normal")?o.type:null}function $t(a,r){const o=s3(a,r);return o?o==="normal"?!0:o==="delete"?a.side==="left":o==="add"?a.side==="right":!1:!1}function mb(a,r){return $t(a,r)?a:{...a,side:a.side==="left"?"right":"left"}}const tm={VIEWPORT_OFFSET_RATIO:1/3};function u3(a,r,o,s){return{line:c=>{const f=a[c.fileIndex];return!f||s?.has(f.path)?!1:o==="inline"||$t(c,a)},chunk:c=>{const f=a[c.fileIndex];if(!f||s?.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 m=f.chunks[c.chunkIndex]?.lines[c.lineIndex-1];return!m||m.type==="normal"},comment:c=>{const f=a[c.fileIndex];if(!f||s?.has(f.path))return!1;const d=f.chunks[c.chunkIndex]?.lines[c.lineIndex];if(!d||d.type==="delete")return!1;const m=d.newLineNumber;if(!m)return!1;const b=pb(f.path,m);return r.has(b)},file:c=>c.chunkIndex===0&&c.lineIndex===0}}function c3(){return a=>{const r=document.getElementById(a);if(!r)return;const o=document.querySelector(Uc.SCROLL_CONTAINER);if(!o)throw new Error(`Scrollable container (${Uc.SCROLL_CONTAINER}) not found`);const s=r.getBoundingClientRect(),c=o.getBoundingClientRect(),f=o.clientHeight,d=o.scrollTop,m=Math.max(c.top,0),b=Math.min(c.bottom,window.innerHeight);if(!(s.top>=m&&s.bottom<=b)){const v=f3(r,o)-f*tm.VIEWPORT_OFFSET_RATIO;o.scrollTop=Math.max(0,v);return}const x=s.bottom>Math.min(c.bottom,window.innerHeight),A=r.offsetTop-o.offsetTop-f*tm.VIEWPORT_OFFSET_RATIO,j=A>d;x&&j&&(o.scrollTop=Math.max(0,A))}}function f3(a,r){let o=a,s=0;for(;o&&o!==r&&o.offsetParent;)s+=o.offsetTop,o=o.offsetParent;return o&&o!==r&&(s+=o.offsetTop),s}function d3(a){return a||{fileIndex:0,chunkIndex:0,lineIndex:-1,side:"right"}}function g3(a,r,o){return o&&a.fileIndex===r.fileIndex&&a.chunkIndex===r.chunkIndex&&a.lineIndex===r.lineIndex}function h3(a,r,o){let{fileIndex:s,chunkIndex:c,lineIndex:f}=a;const d=o.length;let m=0;if(r==="next")for(f++;m<d;){if(o[s]?.chunks[c]?.lines[f])return{...a,fileIndex:s,chunkIndex:c,lineIndex:f};c++,f=0,o[s]?.chunks[c]||(s++,c=0,f=0,s>=d&&(s=0,m++))}else for(f--;m<d;){if(f<0)if(c--,c<0){s--,s<0&&(s=d-1,m++);const b=o[s];if(b&&b.chunks.length>0){c=b.chunks.length-1;const p=b.chunks[c];f=p&&p.lines.length>0?p.lines.length-1:-1}else c=-1,f=-1}else{const b=o[s]?.chunks[c];f=b&&b.lines.length>0?b.lines.length-1:-1}if(f>=0&&o[s]?.chunks[c]?.lines[f])return{...a,fileIndex:s,chunkIndex:c,lineIndex:f};f<0||f--}return null}function p3(a,r,o,s,c){let f=a,d=!1;for(;f;){const m=h3(f,r,s);if(!m||(f=m,g3(f,a,d)))break;if(d=!0,o(f,s)){const b=mb(f,s);return{position:b,scrollTarget:yl(b,c)}}}return{position:null,scrollTarget:null}}function m3({files:a,comments:r,viewMode:o="inline",reviewedFiles:s,onToggleReviewed:c,onCreateComment:f,onCopyAllComments:d,onDeleteAllComments:m,onShowCommentsList:b,onRefresh:p}){const[x,y]=C.useState(null),[A,j]=C.useState(!1),S=C.useMemo(()=>c3(),[]),v=C.useMemo(()=>{const K=new Map;return r.forEach(W=>{const ne=Array.isArray(W.line)?W.line[0]:W.line,B=pb(W.file,ne);K.has(B)||K.set(B,[]),K.get(B)?.push(W)}),K},[r]),T=C.useMemo(()=>u3(a,v,o,s),[a,v,o,s]),E=C.useCallback((K,W)=>{if(a.length===0)return{position:null,scrollTarget:null};const ne=d3(x);return p3(ne,K,W,a,o)},[x,a,o]),R=C.useCallback(K=>W=>{const ne=E(W,K);ne.position&&(y(ne.position),ne.scrollTarget&&S(ne.scrollTarget))},[E,S]),L=C.useMemo(()=>R(T.line),[R,T.line]),z=C.useMemo(()=>R(T.chunk),[R,T.chunk]),Q=C.useMemo(()=>R(T.file),[R,T.file]),H=C.useMemo(()=>R(T.comment),[R,T.comment]),F=C.useCallback(K=>{if(!x||o!=="side-by-side")return;let W={...x,side:K};const ne=a[x.fileIndex]?.chunks[x.chunkIndex]?.lines[x.lineIndex];if(ne){if(K==="left"&&ne.type==="add"&&x.lineIndex>0){if(a[x.fileIndex]?.chunks[x.chunkIndex]?.lines[x.lineIndex-1]?.type==="delete"){W={...W,lineIndex:x.lineIndex-1},y(W),S(yl(W,o));return}}else if(K==="right"&&ne.type==="delete"&&a[x.fileIndex]?.chunks[x.chunkIndex]?.lines[x.lineIndex+1]?.type==="add"){W={...W,lineIndex:x.lineIndex+1},y(W),S(yl(W,o));return}}if(!$t(W,a)){const B=a[x.fileIndex];if(!B)return;const re=B.chunks[x.chunkIndex];if(re){for(let N=x.lineIndex+1;N<re.lines.length;N++){const k={...W,lineIndex:N};if($t(k,a)){W=k;break}}if(!$t(W,a))for(let N=x.lineIndex-1;N>=0;N--){const k={...W,lineIndex:N};if($t(k,a)){W=k;break}}}if(!$t(W,a)){for(let N=x.chunkIndex+1;N<B.chunks.length;N++){const k=B.chunks[N];if(k){for(let O=0;O<k.lines.length;O++){const I={...W,chunkIndex:N,lineIndex:O};if($t(I,a)){W=I;break}}if($t(W,a))break}}if(!$t(W,a))for(let N=x.chunkIndex-1;N>=0;N--){const k=B.chunks[N];if(k){for(let O=k.lines.length-1;O>=0;O--){const I={...W,chunkIndex:N,lineIndex:O};if($t(I,a)){W=I;break}}if($t(W,a))break}}}}y(W),S(yl(W,o))},[x,o,S,a]),V=C.useCallback(()=>{const K=document.querySelector(Uc.SCROLL_CONTAINER);if(!K)return;const W=K.getBoundingClientRect(),ne=W.top+W.height/2;let B=1/0,re=null;a.forEach((N,k)=>{N.chunks.forEach((O,I)=>{O.lines.forEach((P,_)=>{const D=o==="side-by-side"?["left","right"]:["right"];for(const G of D){const le={fileIndex:k,chunkIndex:I,lineIndex:_,side:G};if(o==="side-by-side"&&!$t(le,a))continue;const ue=yl(le,o),fe=document.getElementById(ue);if(fe){const ce=fe.getBoundingClientRect(),ge=ce.top+ce.height/2,de=Math.abs(ge-ne);ce.top<W.bottom&&ce.bottom>W.top&&de<B&&(B=de,re=le)}}})})}),re&&y(re)},[a,o,y]),Y=C.useCallback(K=>{if(!K){y(null);return}const W=mb(K,a);y(W),S(yl(W,o))},[a,o,S]),X={scopes:"navigation",enableOnFormTags:!1,preventDefault:!0};return Xe("j, down",()=>L("next"),X,[L]),Xe("k, up",()=>L("prev"),X,[L]),Xe("n",()=>z("next"),X,[z]),Xe("p",()=>z("prev"),X,[z]),Xe("shift+n",()=>H("next"),X,[H]),Xe("shift+p",()=>H("prev"),X,[H]),Xe("]",()=>Q("next"),{...X,useKey:!0},[Q]),Xe("[",()=>Q("prev"),{...X,useKey:!0},[Q]),Xe("{",()=>{a.length>0&&(y({fileIndex:0,chunkIndex:0,lineIndex:0,side:o==="side-by-side"?"left":"right"}),S(yl({fileIndex:0,chunkIndex:0,lineIndex:0,side:o==="side-by-side"?"left":"right"},o)))},{...X,useKey:!0},[a,o,S]),Xe("}",()=>{if(a.length>0){const K=a.length-1,W=a[K];W&&W.chunks.length>0&&(y({fileIndex:K,chunkIndex:0,lineIndex:0,side:o==="side-by-side"?"left":"right"}),S(yl({fileIndex:K,chunkIndex:0,lineIndex:0,side:o==="side-by-side"?"left":"right"},o)))}},{...X,useKey:!0},[a,o,S]),Xe("h, left",()=>F("left"),{...X,enabled:o==="side-by-side"},[F,o]),Xe("l, right",()=>F("right"),{...X,enabled:o==="side-by-side"},[F,o]),Xe("v",()=>{if(x){const K=a[x.fileIndex];K&&c(K.path)}},X,[x,a,c]),Xe("shift+r",()=>{p&&p()},X,[p]),Xe("c",()=>{if(x&&f){const K=a[x.fileIndex]?.chunks[x.chunkIndex]?.lines[x.lineIndex];K&&K.type!=="delete"&&f()}},X,[x,a,f]),Xe("?",()=>j(!A),{...X,useKey:!0},[A]),Xe(".",K=>{K.ctrlKey||K.altKey||K.shiftKey||K.metaKey||(V(),K.preventDefault())},{...X,useKey:!0,preventDefault:!1},[V]),Xe("shift+c",()=>{d&&d()},{...X,scopes:["navigation","comments-list"]},[d]),Xe("shift+d",()=>{m&&m()},{...X,scopes:["navigation","comments-list"]},[m]),Xe("shift+l",()=>{b&&b()},X,[b]),{cursor:x,isHelpOpen:A,setIsHelpOpen:j,setCursorPosition:Y}}function b3(a,r,o,s,c,f){const[d,m]=C.useState([]),[b,p]=C.useState(new Map);C.useEffect(()=>{if(!a||!r)return;const E=Vr.getViewedFiles(a,r,o,s,f);(async()=>{if(c&&c.length>0){const L=[],z=new Set(E.map(Q=>Q.filePath));for(const Q of c)if((Q.isGenerated||Q.status==="deleted")&&!z.has(Q.path))try{const H=Pp(Q),F=await Wp(H),V={filePath:Q.path,viewedAt:new Date().toISOString(),diffContentHash:F};L.push(V)}catch(H){console.error("Failed to generate hash for auto-collapsed file:",H)}if(L.length>0){const Q=[...E,...L];Vr.saveViewedFiles(a,r,Q,o,s,f),m(Q);return}}m(E)})()},[a,r,o,s,f]);const x=C.useCallback(E=>{!a||!r||(Vr.saveViewedFiles(a,r,E,o,s,f),m(E))},[a,r,o,s,f]),y=C.useMemo(()=>new Set(d.map(E=>E.filePath)),[d]),A=C.useCallback(E=>d.find(R=>R.filePath===E),[d]),j=C.useCallback(async E=>{const R=b.get(E.path);if(R)return R;const L=Pp(E),z=await Wp(L);return p(Q=>new Map(Q).set(E.path,z)),z},[b]),S=C.useCallback(async(E,R)=>{const L=A(E);if(!L)return!1;const z=await j(R);return L.diffContentHash!==z},[A,j]),v=C.useCallback(async(E,R)=>{if(A(E)){const z=d.filter(Q=>Q.filePath!==E);x(z)}else{const z=await j(R),Q={filePath:E,viewedAt:new Date().toISOString(),diffContentHash:z},H=[...d,Q];x(H)}},[d,A,j,x]),T=C.useCallback(()=>{x([]),p(new Map)},[x]);return{viewedFiles:y,toggleFileViewed:v,isFileContentChanged:S,getViewedFileRecord:A,clearViewedFiles:T}}const Ac=new Map;let y3=0;function Tc(a){return Ac.has(a)||Ac.set(a,`file-${++y3}`),Ac.get(a)??""}function v3(a,r,o){for(let s=0;s<a.chunks.length;s++){const c=a.chunks[s];if(c)for(let f=0;f<c.lines.length;f++){const d=c.lines[f];if(!d)continue;if((d.newLineNumber||d.oldLineNumber)===o)return{fileIndex:r,chunkIndex:s,lineIndex:f,side:d.newLineNumber?"right":"left"}}}return null}function x3(a,r){const o=r.findIndex(f=>f.path===a.file);if(o===-1)return null;const s=r[o];if(!s)return null;const c=Array.isArray(a.line)?a.line[1]:a.line;return v3(s,o,c)}const S3=[],w3=[];function E3(){const[a,r]=C.useState(null),[o,s]=C.useState("side-by-side"),c=C.useRef(!1),[f,d]=C.useState(!0),[m,b]=C.useState(!0),[p,x]=C.useState(null),[y,A]=C.useState(!1),[j,S]=C.useState(320),[v,T]=C.useState(!1),[E,R]=C.useState(!0),[L,z]=C.useState(!1),[Q,H]=C.useState(!1),[F,V]=C.useState(!1),[Y,X]=C.useState(!1),[K,W]=C.useState(new Set),ne=C.useRef(!1),[B,re]=C.useState(null),[N,k]=C.useState(""),[O,I]=C.useState(""),[P,_]=C.useState(""),[D,G]=C.useState(""),le=C.useRef(!1),{settings:ue,updateSettings:fe}=WS(),{comments:ce,addComment:ge,removeComment:de,updateComment:be,clearAllComments:Ce,generatePrompt:pe,generateAllCommentsPrompt:ke}=l3(a?.baseCommitish,a?.targetCommitish,a?.commit,void 0,a?.repositoryId),Se=C.useMemo(()=>ce.map(te=>({id:te.id,file:te.filePath,line:typeof te.position.line=="number"?te.position.line:[te.position.line.start,te.position.line.end],body:te.body,timestamp:te.createdAt,codeContent:te.codeSnapshot?.content,side:te.position.side})),[ce]),ze=C.useMemo(()=>{const te=new Map;return Se.forEach(he=>{const ye=te.get(he.file);ye?ye.push(he):te.set(he.file,[he])}),te},[Se]),{viewedFiles:Re,toggleFileViewed:De,clearViewedFiles:Et}=b3(a?.baseCommitish,a?.targetCommitish,a?.commit,void 0,a?.files,a?.repositoryId);C.useEffect(()=>{ne.current=!1},[a?.repositoryId,a?.commit]),C.useEffect(()=>{ne.current||(W(new Set(Re)),ne.current=!0)},[Re]);const at=C.useCallback(async te=>{if(!a)return;const he=a.files.find(we=>we.path===te);if(!he)return;const ye=Re.has(te);await De(te,he),W(we=>{const We=new Set(we);return ye?We.delete(te):We.add(te),We}),ye||setTimeout(()=>{const we=document.getElementById(Tc(te));we&&we.scrollIntoView({behavior:"smooth",block:"start"})},100)},[a,De,Re]),ct=C.useCallback(te=>{W(he=>{const ye=new Set(he);return ye.has(te)?ye.delete(te):ye.add(te),ye})},[]),zt=C.useCallback(te=>{a&&W(te?new Set(a.files.map(he=>he.path)):new Set)},[a]),Bt=C.useCallback(te=>{c.current=!0,s(te)},[]),{isLoading:Ut,expandLines:Je,expandAllBetweenChunks:Ql,prefetchFileContent:Kr,getMergedChunks:Jl,lastUpdatedFilePath:Vn,lastUpdatedAt:Ko}=i3({baseCommitish:a?.baseCommitish,targetCommitish:a?.targetCommitish}),Wl=C.useRef(Jl);C.useEffect(()=>{Wl.current=Jl},[Jl]);const[Xa,Za]=C.useState(new Map);C.useEffect(()=>{if(!a){Za(new Map);return}const te=new Map;a.files.forEach(he=>{te.set(he.path,Wl.current(he))}),Za(te)},[a]),C.useEffect(()=>{if(!a||!Vn)return;const te=a.files.find(he=>he.path===Vn);te&&Za(he=>{const ye=new Map(he);return ye.set(te.path,Wl.current(te)),ye})},[a,Vn,Ko]);const Nl=C.useMemo(()=>a?a.files.map(te=>({...te,chunks:Xa.get(te.path)||te.chunks})):[],[a,Xa]),[yt,Kt]=C.useState(null),{shouldReload:Ct,reload:Qr,watchState:Jr}=o3(async()=>{await In()}),{cursor:vn,isHelpOpen:Pl,setIsHelpOpen:Al,setCursorPosition:xn}=m3({files:Nl,comments:Se,viewMode:o,reviewedFiles:Re,onToggleReviewed:at,onCreateComment:()=>{vn&&Kt({fileIndex:vn.fileIndex,chunkIndex:vn.chunkIndex,lineIndex:vn.lineIndex})},onCopyAllComments:()=>{ce.length>0&&na()},onDeleteAllComments:()=>{ce.length>0&&confirm("Delete all comments?")&&Ce()},onShowCommentsList:()=>{X(!0)},onRefresh:()=>{Qr()}}),Sn=C.useCallback((te,he,ye,we)=>{xn({fileIndex:te,chunkIndex:he,lineIndex:ye,side:we})},[xn]),ea=C.useCallback(()=>{Kt(null)},[Kt]),Tl=C.useCallback(te=>pe(te.id),[pe]),Qo=te=>{te.preventDefault(),z(!0);const he=te.clientX,ye=j,we=Zn=>{const la=Math.max(200,Math.min(600,ye+(Zn.clientX-he)));S(la)},We=()=>{z(!1),document.removeEventListener("mousemove",we),document.removeEventListener("mouseup",We)};document.addEventListener("mousemove",we),document.addEventListener("mouseup",We)},In=C.useCallback(async(te,he)=>{try{const ye=new URLSearchParams({ignoreWhitespace:String(f)});te&&ye.set("base",te),he&&ye.set("target",he);const we=await fetch(`/api/diff?${ye}`);if(!we.ok)throw new Error("Failed to fetch diff data");const We=await we.json();if(r(We),We.baseCommitish&&_(We.baseCommitish),We.targetCommitish&&G(We.targetCommitish),!le.current){const Zn=We.requestedBaseCommitish??We.baseCommitish,la=We.requestedTargetCommitish??We.targetCommitish;Zn&&k(Zn),la&&I(la)}We.mode&&!c.current&&s(We.mode)}catch(ye){x(ye instanceof Error?ye.message:"Unknown error")}finally{b(!1)}},[f]);C.useEffect(()=>{In()},[In]),C.useEffect(()=>{fetch("/api/revisions").then(te=>te.ok?te.json():null).then(te=>{re(te),te?.resolvedBase&&_(he=>he||te.resolvedBase||""),te?.resolvedTarget&&G(he=>he||te.resolvedTarget||"")}).catch(()=>re(null))},[]);const ta=C.useCallback(async(te,he)=>{te===N&&he===O||(le.current=!0,k(te),I(he),b(!0),x(null),await In(te,he))},[N,O,In]),Xn=te=>B?B.commits.findIndex(he=>he.shortHash===te||he.hash===te):-1,Jo=()=>{if(!B)return[];const he=Xn(D||O);if(he===-1)return O?[O]:[];const ye=B.commits.slice(0,he+1).map(we=>we.shortHash);return O&&!ye.includes(O)&&ye.push(O),ye.includes("working")||ye.push("working"),ye},Wr=()=>{if(!B)return[];const he=Xn(P||N);if(he===-1)return N?[N]:[];const ye=B.commits.slice(he).map(we=>we.shortHash);return N&&!ye.includes(N)&&ye.push(N),ye},$a=C.useRef(!1);C.useEffect(()=>{a?.clearComments&&!$a.current&&($a.current=!0,Ce(),Et(),console.log("✅ All existing comments and viewed files cleared as requested via --clean flag"))},[a?.clearComments,Ce,Et]),C.useEffect(()=>{a&&(Re.size<a.files.length?V(!1):Re.size===a.files.length&&!F&&(H(!0),V(!0),setTimeout(()=>{H(!1)},1e3)))},[Re.size,a,F]),C.useEffect(()=>{if(ce.length>0){const he=ce.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})),ye=JSON.stringify({comments:he});fetch("/api/comments",{method:"POST",headers:{"Content-Type":"application/json"},body:ye}).catch(we=>{console.error("Failed to sync comments:",we)})}const te=()=>{if(ce.length>0){const he=ce.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})),ye=JSON.stringify({comments:he});navigator.sendBeacon("/api/comments",ye)}};return window.addEventListener("beforeunload",te),()=>{window.removeEventListener("beforeunload",te)}},[ce]),C.useEffect(()=>{const te=new EventSource("/api/heartbeat");return te.onopen=()=>{console.log("Connected to server heartbeat")},te.onerror=()=>{console.log("Server connection lost"),te.close()},()=>{te.close()}},[]);const Pr=C.useCallback((te,he,ye,we,We,Zn)=>(ge({filePath:te,body:ye,side:Zn||"new",line:typeof he=="number"?he:{start:he[0],end:he[1]},chunkHeader:We||"",codeSnapshot:we?{content:we,language:void 0}:void 0}),Promise.resolve()),[ge]),na=async()=>{try{const te=ke();await navigator.clipboard.writeText(te),A(!0),setTimeout(()=>A(!1),2e3)}catch(te){console.error("Failed to copy all comments prompt:",te)}},Ka=te=>{if(!a)return;const he=x3(te,a.files);he&&xn(he)},ei=te=>{xn(null),te.target.closest('[data-comment-button="true"]')||ti(te)},ti=te=>{document.querySelectorAll('form[data-empty="true"]').forEach(ye=>{ye.contains(te.target)||ye.querySelector('button[type="button"]')?.click()})};return m?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..."})}):p?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:p})]}):a?g.jsx(f1,{children:g.jsxs("div",{className:"h-screen flex flex-col",onClickCapture:ei,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 ${L?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:E?`${j}px`:"auto",minWidth:E?"200px":"auto",maxWidth:E?"600px":"auto"},children:[g.jsx("h1",{children:g.jsx(Hx,{style:{height:"18px",color:"var(--color-github-text-secondary)"}})}),g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx("button",{onClick:()=>R(!E),className:"p-2 text-github-text-secondary hover:text-github-text-primary hover:bg-github-bg-tertiary rounded transition-colors",title:E?"Collapse file tree":"Expand file tree","aria-expanded":E,"aria-controls":"file-tree-panel","aria-label":"Toggle file tree panel",children:E?g.jsx(Dv,{size:18}):g.jsx(Bv,{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(xm,{size:18})})]})]}),g.jsx("div",{className:`border-r border-github-border ${L?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:E?"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:()=>Bt("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 ${o==="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(pv,{size:14}),"Side by Side"]}),g.jsxs("button",{onClick:()=>Bt("inline"),className:`px-3 py-1.5 text-xs font-medium rounded transition-all duration-200 flex items-center gap-1.5 cursor-pointer ${o==="inline"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[g.jsx($v,{size:14}),"Inline"]})]}),g.jsx(Sm,{checked:f,onChange:d,label:"Ignore Whitespace",title:f?"Show whitespace changes":"Ignore whitespace changes"}),g.jsx(Fx,{shouldReload:Ct,isReloading:Jr.isReloading,onReload:Qr,changeType:Jr.lastChangeType})]}),g.jsxs("div",{className:"flex items-center gap-4 text-sm text-github-text-secondary",children:[ce.length>0&&g.jsx(Wv,{commentsCount:ce.length,isCopiedAll:y,onCopyAll:na,onDeleteAll:Ce,onViewAll:()=>X(!0)}),g.jsxs("div",{className:"flex flex-col gap-1 items-center",children:[g.jsxs("div",{className:"text-xs relative",children:[Re.size===a.files.length?"All diffs difit-ed!":`${Re.size} / ${a.files.length} files viewed`,g.jsx(JS,{isActive:Q})]}),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-Re.size)/a.files.length*100}%`,backgroundColor:(()=>{const te=(a.files.length-Re.size)/a.files.length*100;return te>50?"var(--color-github-accent)":te>20?"var(--color-github-warning)":"var(--color-github-danger)"})()}})})]}),B?g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx($p,{label:"Base",value:N,resolvedValue:P,onChange:te=>{ta(te,O)},options:B,disabledValues:Jo()}),g.jsx("span",{className:"text-github-text-muted",children:"..."}),g.jsx($p,{label:"Target",value:O,resolvedValue:D,onChange:te=>{ta(N,te)},options:B,disabledValues:Wr()})]}):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 ${L?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:E?`${j}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:`${j}px`,minWidth:"200px",maxWidth:"600px",height:"100%"},children:[g.jsx("div",{className:"flex-1 overflow-y-auto",children:g.jsx(zx,{files:a.files,onScrollToFile:te=>{const he=document.getElementById(Tc(te));he&&he.scrollIntoView({behavior:"smooth",block:"start"})},comments:ce.map(te=>({id:te.id,file:te.filePath,line:typeof te.position.line=="number"?te.position.line:[te.position.line.start,te.position.line.end],body:te.body,timestamp:te.createdAt,codeContent:te.codeSnapshot?.content})),reviewedFiles:Re,onToggleReviewed:at,selectedFileIndex:vn?.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(Rv,{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(Bx,{style:{height:"18px",width:"18px"}})]})]})]})}),g.jsx("div",{className:`bg-github-border hover:bg-github-text-muted cursor-col-resize ${L?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:E?"4px":"0px"},onMouseDown:Qo,title:"Drag to resize file list"}),g.jsx("main",{className:"flex-1 overflow-y-auto",children:a.files.map((te,he)=>{const ye=ze.get(te.path)??S3,we=Xa.get(te.path)??w3;return g.jsx("div",{id:Tc(te.path),className:"mb-6",children:g.jsx(Mx,{file:te,comments:ye,diffMode:o,reviewedFiles:Re,onToggleReviewed:at,collapsedFiles:K,onToggleCollapsed:ct,onToggleAllCollapsed:zt,onAddComment:Pr,onGeneratePrompt:Tl,onRemoveComment:de,onUpdateComment:be,syntaxTheme:ue.syntaxTheme,baseCommitish:a.baseCommitish,targetCommitish:a.targetCommitish,cursor:vn?.fileIndex===he?vn:null,fileIndex:he,onLineClick:Sn,commentTrigger:yt?.fileIndex===he?yt:null,onCommentTriggerHandled:ea,mergedChunks:we,expandLines:Je,expandAllBetweenChunks:Ql,prefetchFileContent:Kr,isExpandLoading:Ut})},te.path)})})]}),g.jsx(QS,{isOpen:v,onClose:()=>T(!1),settings:ue,onSettingsChange:fe}),g.jsx(Ux,{isOpen:Pl,onClose:()=>Al(!1)}),g.jsx(Pv,{isOpen:Y,onClose:()=>X(!1),onNavigate:Ka,comments:ce.map(te=>({id:te.id,file:te.filePath,line:typeof te.position.line=="number"?te.position.line:[te.position.line.start,te.position.line.end],body:te.body,timestamp:te.createdAt,codeContent:te.codeSnapshot?.content})),onRemoveComment:de,onGeneratePrompt:te=>pe(te.id),onUpdateComment:be})]})}):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 bb=document.getElementById("root");if(!bb)throw new Error("Root element not found");B0.createRoot(bb).render(g.jsx(bn.StrictMode,{children:g.jsx(K0,{initiallyActiveScopes:["navigation"],children:g.jsx(E3,{})})}));export{nm as g};
|