difit 2.1.1 → 2.1.2
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/README.ja.md +0 -6
- package/README.ko.md +0 -6
- package/README.md +0 -6
- package/README.zh.md +0 -6
- package/dist/cli/index.js +2 -1
- package/dist/cli/index.test.js +49 -2
- package/dist/client/assets/index-Bz9yRRZ7.css +1 -0
- package/dist/client/assets/index-D-ytcgYk.js +215 -0
- package/dist/client/assets/{prism-csharp-B2ldtMsY.js → prism-csharp-C6507-_U.js} +1 -1
- package/dist/client/assets/{prism-java-n1ck9mYw.js → prism-java-Dv0G_qSp.js} +1 -1
- package/dist/client/assets/{prism-php-DiCmaEbX.js → prism-php-CshMHvWJ.js} +1 -1
- package/dist/client/assets/{prism-ruby-qa8qRdnq.js → prism-ruby-qC3LGMgv.js} +1 -1
- package/dist/client/assets/{prism-solidity-DDmtWXtT.js → prism-solidity-DbdYT-uq.js} +1 -1
- package/dist/client/index.html +2 -2
- package/package.json +9 -2
- package/dist/client/assets/index-CueWm3qS.css +0 -1
- package/dist/client/assets/index-U2EYNr4O.js +0 -215
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))o(p);new MutationObserver(p=>{for(const g of p)if(g.type==="childList")for(const N of g.addedNodes)N.tagName==="LINK"&&N.rel==="modulepreload"&&o(N)}).observe(document,{childList:!0,subtree:!0});function f(p){const g={};return p.integrity&&(g.integrity=p.integrity),p.referrerPolicy&&(g.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?g.credentials="include":p.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function o(p){if(p.ep)return;p.ep=!0;const g=f(p);fetch(p.href,g)}})();function ig(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Ns={exports:{}},qn={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Dd;function eb(){if(Dd)return qn;Dd=1;var r=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function f(o,p,g){var N=null;if(g!==void 0&&(N=""+g),p.key!==void 0&&(N=""+p.key),"key"in p){g={};for(var j in p)j!=="key"&&(g[j]=p[j])}else g=p;return p=g.ref,{$$typeof:r,type:o,key:N,ref:p!==void 0?p:null,props:g}}return qn.Fragment=c,qn.jsx=f,qn.jsxs=f,qn}var zd;function tb(){return zd||(zd=1,Ns.exports=eb()),Ns.exports}var u=tb(),As={exports:{}},ye={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Md;function lb(){if(Md)return ye;Md=1;var r=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),N=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.iterator;function k(m){return m===null||typeof m!="object"?null:(m=b&&m[b]||m["@@iterator"],typeof m=="function"?m:null)}var q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,A={};function C(m,L,K){this.props=m,this.context=L,this.refs=A,this.updater=K||q}C.prototype.isReactComponent={},C.prototype.setState=function(m,L){if(typeof m!="object"&&typeof m!="function"&&m!=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,m,L,"setState")},C.prototype.forceUpdate=function(m){this.updater.enqueueForceUpdate(this,m,"forceUpdate")};function T(){}T.prototype=C.prototype;function w(m,L,K){this.props=m,this.context=L,this.refs=A,this.updater=K||q}var H=w.prototype=new T;H.constructor=w,E(H,C.prototype),H.isPureReactComponent=!0;var U=Array.isArray,Q={H:null,A:null,T:null,S:null,V:null},P=Object.prototype.hasOwnProperty;function W(m,L,K,I,te,ge){return K=ge.ref,{$$typeof:r,type:m,key:L,ref:K!==void 0?K:null,props:ge}}function oe(m,L){return W(m.type,L,void 0,void 0,void 0,m.props)}function be(m){return typeof m=="object"&&m!==null&&m.$$typeof===r}function pe(m){var L={"=":"=0",":":"=2"};return"$"+m.replace(/[=:]/g,function(K){return L[K]})}var ie=/\/+/g;function $(m,L){return typeof m=="object"&&m!==null&&m.key!=null?pe(""+m.key):L.toString(36)}function me(){}function re(m){switch(m.status){case"fulfilled":return m.value;case"rejected":throw m.reason;default:switch(typeof m.status=="string"?m.then(me,me):(m.status="pending",m.then(function(L){m.status==="pending"&&(m.status="fulfilled",m.value=L)},function(L){m.status==="pending"&&(m.status="rejected",m.reason=L)})),m.status){case"fulfilled":return m.value;case"rejected":throw m.reason}}throw m}function J(m,L,K,I,te){var ge=typeof m;(ge==="undefined"||ge==="boolean")&&(m=null);var ne=!1;if(m===null)ne=!0;else switch(ge){case"bigint":case"string":case"number":ne=!0;break;case"object":switch(m.$$typeof){case r:case c:ne=!0;break;case v:return ne=m._init,J(ne(m._payload),L,K,I,te)}}if(ne)return te=te(m),ne=I===""?"."+$(m,0):I,U(te)?(K="",ne!=null&&(K=ne.replace(ie,"$&/")+"/"),J(te,L,K,"",function(Ae){return Ae})):te!=null&&(be(te)&&(te=oe(te,K+(te.key==null||m&&m.key===te.key?"":(""+te.key).replace(ie,"$&/")+"/")+ne)),L.push(te)),1;ne=0;var ce=I===""?".":I+":";if(U(m))for(var ee=0;ee<m.length;ee++)I=m[ee],ge=ce+$(I,ee),ne+=J(I,L,K,ge,te);else if(ee=k(m),typeof ee=="function")for(m=ee.call(m),ee=0;!(I=m.next()).done;)I=I.value,ge=ce+$(I,ee++),ne+=J(I,L,K,ge,te);else if(ge==="object"){if(typeof m.then=="function")return J(re(m),L,K,I,te);throw L=String(m),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return ne}function y(m,L,K){if(m==null)return m;var I=[],te=0;return J(m,I,"","",function(ge){return L.call(K,ge,te++)}),I}function Y(m){if(m._status===-1){var L=m._result;L=L(),L.then(function(K){(m._status===0||m._status===-1)&&(m._status=1,m._result=K)},function(K){(m._status===0||m._status===-1)&&(m._status=2,m._result=K)}),m._status===-1&&(m._status=0,m._result=L)}if(m._status===1)return m._result.default;throw m._result}var F=typeof reportError=="function"?reportError:function(m){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof m=="object"&&m!==null&&typeof m.message=="string"?String(m.message):String(m),error:m});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",m);return}console.error(m)};function ae(){}return ye.Children={map:y,forEach:function(m,L,K){y(m,function(){L.apply(this,arguments)},K)},count:function(m){var L=0;return y(m,function(){L++}),L},toArray:function(m){return y(m,function(L){return L})||[]},only:function(m){if(!be(m))throw Error("React.Children.only expected to receive a single React element child.");return m}},ye.Component=C,ye.Fragment=f,ye.Profiler=p,ye.PureComponent=w,ye.StrictMode=o,ye.Suspense=x,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,ye.__COMPILER_RUNTIME={__proto__:null,c:function(m){return Q.H.useMemoCache(m)}},ye.cache=function(m){return function(){return m.apply(null,arguments)}},ye.cloneElement=function(m,L,K){if(m==null)throw Error("The argument must be a React element, but you passed "+m+".");var I=E({},m.props),te=m.key,ge=void 0;if(L!=null)for(ne in L.ref!==void 0&&(ge=void 0),L.key!==void 0&&(te=""+L.key),L)!P.call(L,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&L.ref===void 0||(I[ne]=L[ne]);var ne=arguments.length-2;if(ne===1)I.children=K;else if(1<ne){for(var ce=Array(ne),ee=0;ee<ne;ee++)ce[ee]=arguments[ee+2];I.children=ce}return W(m.type,te,void 0,void 0,ge,I)},ye.createContext=function(m){return m={$$typeof:N,_currentValue:m,_currentValue2:m,_threadCount:0,Provider:null,Consumer:null},m.Provider=m,m.Consumer={$$typeof:g,_context:m},m},ye.createElement=function(m,L,K){var I,te={},ge=null;if(L!=null)for(I in L.key!==void 0&&(ge=""+L.key),L)P.call(L,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(te[I]=L[I]);var ne=arguments.length-2;if(ne===1)te.children=K;else if(1<ne){for(var ce=Array(ne),ee=0;ee<ne;ee++)ce[ee]=arguments[ee+2];te.children=ce}if(m&&m.defaultProps)for(I in ne=m.defaultProps,ne)te[I]===void 0&&(te[I]=ne[I]);return W(m,ge,void 0,void 0,null,te)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(m){return{$$typeof:j,render:m}},ye.isValidElement=be,ye.lazy=function(m){return{$$typeof:v,_payload:{_status:-1,_result:m},_init:Y}},ye.memo=function(m,L){return{$$typeof:h,type:m,compare:L===void 0?null:L}},ye.startTransition=function(m){var L=Q.T,K={};Q.T=K;try{var I=m(),te=Q.S;te!==null&&te(K,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(ae,F)}catch(ge){F(ge)}finally{Q.T=L}},ye.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},ye.use=function(m){return Q.H.use(m)},ye.useActionState=function(m,L,K){return Q.H.useActionState(m,L,K)},ye.useCallback=function(m,L){return Q.H.useCallback(m,L)},ye.useContext=function(m){return Q.H.useContext(m)},ye.useDebugValue=function(){},ye.useDeferredValue=function(m,L){return Q.H.useDeferredValue(m,L)},ye.useEffect=function(m,L,K){var I=Q.H;if(typeof K=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return I.useEffect(m,L)},ye.useId=function(){return Q.H.useId()},ye.useImperativeHandle=function(m,L,K){return Q.H.useImperativeHandle(m,L,K)},ye.useInsertionEffect=function(m,L){return Q.H.useInsertionEffect(m,L)},ye.useLayoutEffect=function(m,L){return Q.H.useLayoutEffect(m,L)},ye.useMemo=function(m,L){return Q.H.useMemo(m,L)},ye.useOptimistic=function(m,L){return Q.H.useOptimistic(m,L)},ye.useReducer=function(m,L,K){return Q.H.useReducer(m,L,K)},ye.useRef=function(m){return Q.H.useRef(m)},ye.useState=function(m){return Q.H.useState(m)},ye.useSyncExternalStore=function(m,L,K){return Q.H.useSyncExternalStore(m,L,K)},ye.useTransition=function(){return Q.H.useTransition()},ye.version="19.1.0",ye}var Ld;function Ms(){return Ld||(Ld=1,As.exports=lb()),As.exports}var B=Ms();const Pl=ig(B);var ws={exports:{}},Gn={},Ts={exports:{}},_s={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Ud;function ab(){return Ud||(Ud=1,function(r){function c(y,Y){var F=y.length;y.push(Y);e:for(;0<F;){var ae=F-1>>>1,m=y[ae];if(0<p(m,Y))y[ae]=Y,y[F]=m,F=ae;else break e}}function f(y){return y.length===0?null:y[0]}function o(y){if(y.length===0)return null;var Y=y[0],F=y.pop();if(F!==Y){y[0]=F;e:for(var ae=0,m=y.length,L=m>>>1;ae<L;){var K=2*(ae+1)-1,I=y[K],te=K+1,ge=y[te];if(0>p(I,F))te<m&&0>p(ge,I)?(y[ae]=ge,y[te]=F,ae=te):(y[ae]=I,y[K]=F,ae=K);else if(te<m&&0>p(ge,F))y[ae]=ge,y[te]=F,ae=te;else break e}}return Y}function p(y,Y){var F=y.sortIndex-Y.sortIndex;return F!==0?F:y.id-Y.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;r.unstable_now=function(){return g.now()}}else{var N=Date,j=N.now();r.unstable_now=function(){return N.now()-j}}var x=[],h=[],v=1,b=null,k=3,q=!1,E=!1,A=!1,C=!1,T=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function U(y){for(var Y=f(h);Y!==null;){if(Y.callback===null)o(h);else if(Y.startTime<=y)o(h),Y.sortIndex=Y.expirationTime,c(x,Y);else break;Y=f(h)}}function Q(y){if(A=!1,U(y),!E)if(f(x)!==null)E=!0,P||(P=!0,$());else{var Y=f(h);Y!==null&&J(Q,Y.startTime-y)}}var P=!1,W=-1,oe=5,be=-1;function pe(){return C?!0:!(r.unstable_now()-be<oe)}function ie(){if(C=!1,P){var y=r.unstable_now();be=y;var Y=!0;try{e:{E=!1,A&&(A=!1,w(W),W=-1),q=!0;var F=k;try{t:{for(U(y),b=f(x);b!==null&&!(b.expirationTime>y&&pe());){var ae=b.callback;if(typeof ae=="function"){b.callback=null,k=b.priorityLevel;var m=ae(b.expirationTime<=y);if(y=r.unstable_now(),typeof m=="function"){b.callback=m,U(y),Y=!0;break t}b===f(x)&&o(x),U(y)}else o(x);b=f(x)}if(b!==null)Y=!0;else{var L=f(h);L!==null&&J(Q,L.startTime-y),Y=!1}}break e}finally{b=null,k=F,q=!1}Y=void 0}}finally{Y?$():P=!1}}}var $;if(typeof H=="function")$=function(){H(ie)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,re=me.port2;me.port1.onmessage=ie,$=function(){re.postMessage(null)}}else $=function(){T(ie,0)};function J(y,Y){W=T(function(){y(r.unstable_now())},Y)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(y){y.callback=null},r.unstable_forceFrameRate=function(y){0>y||125<y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):oe=0<y?Math.floor(1e3/y):5},r.unstable_getCurrentPriorityLevel=function(){return k},r.unstable_next=function(y){switch(k){case 1:case 2:case 3:var Y=3;break;default:Y=k}var F=k;k=Y;try{return y()}finally{k=F}},r.unstable_requestPaint=function(){C=!0},r.unstable_runWithPriority=function(y,Y){switch(y){case 1:case 2:case 3:case 4:case 5:break;default:y=3}var F=k;k=y;try{return Y()}finally{k=F}},r.unstable_scheduleCallback=function(y,Y,F){var ae=r.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ae+F:ae):F=ae,y){case 1:var m=-1;break;case 2:m=250;break;case 5:m=1073741823;break;case 4:m=1e4;break;default:m=5e3}return m=F+m,y={id:v++,callback:Y,priorityLevel:y,startTime:F,expirationTime:m,sortIndex:-1},F>ae?(y.sortIndex=F,c(h,y),f(x)===null&&y===f(h)&&(A?(w(W),W=-1):A=!0,J(Q,F-ae))):(y.sortIndex=m,c(x,y),E||q||(E=!0,P||(P=!0,$()))),y},r.unstable_shouldYield=pe,r.unstable_wrapCallback=function(y){var Y=k;return function(){var F=k;k=Y;try{return y.apply(this,arguments)}finally{k=F}}}}(_s)),_s}var Bd;function nb(){return Bd||(Bd=1,Ts.exports=ab()),Ts.exports}var js={exports:{}},it={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Hd;function ib(){if(Hd)return it;Hd=1;var r=Ms();function c(x){var h="https://react.dev/errors/"+x;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)h+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+x+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var o={d:{f,r:function(){throw Error(c(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},p=Symbol.for("react.portal");function g(x,h,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:p,key:b==null?null:""+b,children:x,containerInfo:h,implementation:v}}var N=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function j(x,h){if(x==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,it.createPortal=function(x,h){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(c(299));return g(x,h,null,v)},it.flushSync=function(x){var h=N.T,v=o.p;try{if(N.T=null,o.p=2,x)return x()}finally{N.T=h,o.p=v,o.d.f()}},it.preconnect=function(x,h){typeof x=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,o.d.C(x,h))},it.prefetchDNS=function(x){typeof x=="string"&&o.d.D(x)},it.preinit=function(x,h){if(typeof x=="string"&&h&&typeof h.as=="string"){var v=h.as,b=j(v,h.crossOrigin),k=typeof h.integrity=="string"?h.integrity:void 0,q=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;v==="style"?o.d.S(x,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:b,integrity:k,fetchPriority:q}):v==="script"&&o.d.X(x,{crossOrigin:b,integrity:k,fetchPriority:q,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},it.preinitModule=function(x,h){if(typeof x=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var v=j(h.as,h.crossOrigin);o.d.M(x,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&o.d.M(x)},it.preload=function(x,h){if(typeof x=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var v=h.as,b=j(v,h.crossOrigin);o.d.L(x,v,{crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},it.preloadModule=function(x,h){if(typeof x=="string")if(h){var v=j(h.as,h.crossOrigin);o.d.m(x,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else o.d.m(x)},it.requestFormReset=function(x){o.d.r(x)},it.unstable_batchedUpdates=function(x,h){return x(h)},it.useFormState=function(x,h,v){return N.H.useFormState(x,h,v)},it.useFormStatus=function(){return N.H.useHostTransitionStatus()},it.version="19.1.0",it}var qd;function rb(){if(qd)return js.exports;qd=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(c){console.error(c)}}return r(),js.exports=ib(),js.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Gd;function ub(){if(Gd)return Gn;Gd=1;var r=nb(),c=Ms(),f=rb();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function p(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function g(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function N(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 j(e){if(g(e)!==e)throw Error(o(188))}function x(e){var t=e.alternate;if(!t){if(t=g(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return j(n),e;if(i===a)return j(n),t;i=i.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=i;else{for(var s=!1,d=n.child;d;){if(d===l){s=!0,l=n,a=i;break}if(d===a){s=!0,a=n,l=i;break}d=d.sibling}if(!s){for(d=i.child;d;){if(d===l){s=!0,l=i,a=n;break}if(d===a){s=!0,a=i,l=n;break}d=d.sibling}if(!s)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function h(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=h(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),w=Symbol.for("react.consumer"),H=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),oe=Symbol.for("react.lazy"),be=Symbol.for("react.activity"),pe=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function $(e){return e===null||typeof e!="object"?null:(e=ie&&e[ie]||e["@@iterator"],typeof e=="function"?e:null)}var me=Symbol.for("react.client.reference");function re(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case C:return"Profiler";case A:return"StrictMode";case Q:return"Suspense";case P:return"SuspenseList";case be:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case q:return"Portal";case H:return(e.displayName||"Context")+".Provider";case w:return(e._context.displayName||"Context")+".Consumer";case U:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return t=e.displayName||null,t!==null?t:re(e.type)||"Memo";case oe:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var J=Array.isArray,y=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},ae=[],m=-1;function L(e){return{current:e}}function K(e){0>m||(e.current=ae[m],ae[m]=null,m--)}function I(e,t){m++,ae[m]=e.current,e.current=t}var te=L(null),ge=L(null),ne=L(null),ce=L(null);function ee(e,t){switch(I(ne,t),I(ge,e),I(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ud(t),e=sd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}K(te),I(te,e)}function Ae(){K(te),K(ge),K(ne)}function qe(e){e.memoizedState!==null&&I(ce,e);var t=te.current,l=sd(t,e.type);t!==l&&(I(ge,e),I(te,l))}function ea(e){ge.current===e&&(K(te),K(ge)),ce.current===e&&(K(ce),Mn._currentValue=F)}var Ga=Object.prototype.hasOwnProperty,Dl=r.unstable_scheduleCallback,ta=r.unstable_cancelCallback,cr=r.unstable_shouldYield,Zn=r.unstable_requestPaint,wt=r.unstable_now,fr=r.unstable_getCurrentPriorityLevel,Xn=r.unstable_ImmediatePriority,de=r.unstable_UserBlockingPriority,we=r.unstable_NormalPriority,Le=r.unstable_LowPriority,Pe=r.unstable_IdlePriority,Xt=r.log,Ya=r.unstable_setDisableYieldValue,zl=null,gt=null;function ul(e){if(typeof Xt=="function"&&Ya(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(zl,e)}catch{}}var ht=Math.clz32?Math.clz32:qg,Bg=Math.log,Hg=Math.LN2;function qg(e){return e>>>=0,e===0?32:31-(Bg(e)/Hg|0)|0}var Vn=256,Qn=4194304;function Ml(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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 Fn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~i,a!==0?n=Ml(a):(s&=d,s!==0?n=Ml(s):l||(l=d&~e,l!==0&&(n=Ml(l))))):(d=a&~i,d!==0?n=Ml(d):s!==0?n=Ml(s):l||(l=a&~e,l!==0&&(n=Ml(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function Za(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Gg(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 Ys(){var e=Vn;return Vn<<=1,(Vn&4194048)===0&&(Vn=256),e}function Zs(){var e=Qn;return Qn<<=1,(Qn&62914560)===0&&(Qn=4194304),e}function dr(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Xa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Yg(e,t,l,a,n,i){var s=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,S=e.expirationTimes,D=e.hiddenUpdates;for(l=s&~l;0<l;){var G=31-ht(l),V=1<<G;d[G]=0,S[G]=-1;var z=D[G];if(z!==null)for(D[G]=null,G=0;G<z.length;G++){var M=z[G];M!==null&&(M.lane&=-536870913)}l&=~V}a!==0&&Xs(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(s&~t))}function Xs(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ht(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&4194090}function Vs(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-ht(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function gr(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 hr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Qs(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:_d(e.type))}function Zg(e,t){var l=Y.p;try{return Y.p=e,t()}finally{Y.p=l}}var sl=Math.random().toString(36).slice(2),at="__reactFiber$"+sl,ut="__reactProps$"+sl,la="__reactContainer$"+sl,pr="__reactEvents$"+sl,Xg="__reactListeners$"+sl,Vg="__reactHandles$"+sl,Fs="__reactResources$"+sl,Va="__reactMarker$"+sl;function br(e){delete e[at],delete e[ut],delete e[pr],delete e[Xg],delete e[Vg]}function aa(e){var t=e[at];if(t)return t;for(var l=e.parentNode;l;){if(t=l[la]||l[at]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=dd(e);e!==null;){if(l=e[at])return l;e=dd(e)}return t}e=l,l=e.parentNode}return null}function na(e){if(e=e[at]||e[la]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Qa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function ia(e){var t=e[Fs];return t||(t=e[Fs]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ke(e){e[Va]=!0}var $s=new Set,Ks={};function Ll(e,t){ra(e,t),ra(e+"Capture",t)}function ra(e,t){for(Ks[e]=t,e=0;e<t.length;e++)$s.add(t[e])}var Qg=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]*$"),Is={},Js={};function Fg(e){return Ga.call(Js,e)?!0:Ga.call(Is,e)?!1:Qg.test(e)?Js[e]=!0:(Is[e]=!0,!1)}function $n(e,t,l){if(Fg(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Kn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Vt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}var yr,Ws;function ua(e){if(yr===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);yr=t&&t[1]||"",Ws=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+yr+e+Ws}var mr=!1;function vr(e,t){if(!e||mr)return"";mr=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(M){var z=M}Reflect.construct(e,[],V)}else{try{V.call()}catch(M){z=M}e.call(V.prototype)}}else{try{throw Error()}catch(M){z=M}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(M){if(M&&z&&typeof M.stack=="string")return[M.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),s=i[0],d=i[1];if(s&&d){var S=s.split(`
|
|
44
|
+
`),D=d.split(`
|
|
45
|
+
`);for(n=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;n<D.length&&!D[n].includes("DetermineComponentFrameRoot");)n++;if(a===S.length||n===D.length)for(a=S.length-1,n=D.length-1;1<=a&&0<=n&&S[a]!==D[n];)n--;for(;1<=a&&0<=n;a--,n--)if(S[a]!==D[n]){if(a!==1||n!==1)do if(a--,n--,0>n||S[a]!==D[n]){var G=`
|
|
46
|
+
`+S[a].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=a&&0<=n);break}}}finally{mr=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?ua(l):""}function $g(e){switch(e.tag){case 26:case 27:case 5:return ua(e.type);case 16:return ua("Lazy");case 13:return ua("Suspense");case 19:return ua("SuspenseList");case 0:case 15:return vr(e.type,!1);case 11:return vr(e.type.render,!1);case 1:return vr(e.type,!0);case 31:return ua("Activity");default:return""}}function Ps(e){try{var t="";do t+=$g(e),e=e.return;while(e);return t}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}function Tt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function eo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kg(e){var t=eo(e)?"checked":"value",l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(s){a=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(s){a=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function In(e){e._valueTracker||(e._valueTracker=Kg(e))}function to(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=eo(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Jn(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 Ig=/[\n"\\]/g;function _t(e){return e.replace(Ig,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function xr(e,t,l,a,n,i,s,d){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Tt(t)):e.value!==""+Tt(t)&&(e.value=""+Tt(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?Sr(e,s,Tt(t)):l!=null?Sr(e,s,Tt(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Tt(d):e.removeAttribute("name")}function lo(e,t,l,a,n,i,s,d){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null))return;l=l!=null?""+Tt(l):"",t=t!=null?""+Tt(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s)}function Sr(e,t,l){t==="number"&&Jn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function sa(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Tt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function ao(e,t,l){if(t!=null&&(t=""+Tt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Tt(l):""}function no(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(J(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Tt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a)}function oa(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Jg=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 io(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Jg.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function ro(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&io(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&io(e,i,t[i])}function Er(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 Wg=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"]]),Pg=/^[\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 Wn(e){return Pg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Nr=null;function Ar(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 uo(e){var t=na(e);if(t&&(e=t.stateNode)){var l=e[ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(xr(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+_t(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[ut]||null;if(!n)throw Error(o(90));xr(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&to(a)}break e;case"textarea":ao(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&sa(e,!!l.multiple,t,!1)}}}var wr=!1;function so(e,t,l){if(wr)return e(t,l);wr=!0;try{var a=e(t);return a}finally{if(wr=!1,(ca!==null||fa!==null)&&(Ui(),ca&&(t=ca,e=fa,fa=ca=null,uo(t),e)))for(t=0;t<e.length;t++)uo(e[t])}}function Fa(e,t){var l=e.stateNode;if(l===null)return null;var a=l[ut]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var Qt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tr=!1;if(Qt)try{var $a={};Object.defineProperty($a,"passive",{get:function(){Tr=!0}}),window.addEventListener("test",$a,$a),window.removeEventListener("test",$a,$a)}catch{Tr=!1}var ol=null,_r=null,Pn=null;function oo(){if(Pn)return Pn;var e,t=_r,l=t.length,a,n="value"in ol?ol.value:ol.textContent,i=n.length;for(e=0;e<l&&t[e]===n[e];e++);var s=l-e;for(a=1;a<=s&&t[l-a]===n[i-a];a++);return Pn=n.slice(e,1<a?1-a:void 0)}function ei(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 ti(){return!0}function co(){return!1}function st(e){function t(l,a,n,i,s){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(i):i[d]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ti:co,this.isPropagationStopped=co,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ti)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ti)},persist:function(){},isPersistent:ti}),t}var Ul={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},li=st(Ul),Ka=v({},Ul,{view:0,detail:0}),eh=st(Ka),jr,Cr,Ia,ai=v({},Ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Or,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!==Ia&&(Ia&&e.type==="mousemove"?(jr=e.screenX-Ia.screenX,Cr=e.screenY-Ia.screenY):Cr=jr=0,Ia=e),jr)},movementY:function(e){return"movementY"in e?e.movementY:Cr}}),fo=st(ai),th=v({},ai,{dataTransfer:0}),lh=st(th),ah=v({},Ka,{relatedTarget:0}),kr=st(ah),nh=v({},Ul,{animationName:0,elapsedTime:0,pseudoElement:0}),ih=st(nh),rh=v({},Ul,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),uh=st(rh),sh=v({},Ul,{data:0}),go=st(sh),oh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ch={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"},fh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=fh[e])?!!t[e]:!1}function Or(){return dh}var gh=v({},Ka,{key:function(e){if(e.key){var t=oh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ei(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ch[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Or,charCode:function(e){return e.type==="keypress"?ei(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ei(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hh=st(gh),ph=v({},ai,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ho=st(ph),bh=v({},Ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Or}),yh=st(bh),mh=v({},Ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),vh=st(mh),xh=v({},ai,{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}),Sh=st(xh),Eh=v({},Ul,{newState:0,oldState:0}),Nh=st(Eh),Ah=[9,13,27,32],Rr=Qt&&"CompositionEvent"in window,Ja=null;Qt&&"documentMode"in document&&(Ja=document.documentMode);var wh=Qt&&"TextEvent"in window&&!Ja,po=Qt&&(!Rr||Ja&&8<Ja&&11>=Ja),bo=" ",yo=!1;function mo(e,t){switch(e){case"keyup":return Ah.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var da=!1;function Th(e,t){switch(e){case"compositionend":return vo(t);case"keypress":return t.which!==32?null:(yo=!0,bo);case"textInput":return e=t.data,e===bo&&yo?null:e;default:return null}}function _h(e,t){if(da)return e==="compositionend"||!Rr&&mo(e,t)?(e=oo(),Pn=_r=ol=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 po&&t.locale!=="ko"?null:t.data;default:return null}}var jh={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 xo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!jh[e.type]:t==="textarea"}function So(e,t,l,a){ca?fa?fa.push(a):fa=[a]:ca=a,t=Zi(t,"onChange"),0<t.length&&(l=new li("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Wa=null,Pa=null;function Ch(e){ld(e,0)}function ni(e){var t=Qa(e);if(to(t))return e}function Eo(e,t){if(e==="change")return t}var No=!1;if(Qt){var Dr;if(Qt){var zr="oninput"in document;if(!zr){var Ao=document.createElement("div");Ao.setAttribute("oninput","return;"),zr=typeof Ao.oninput=="function"}Dr=zr}else Dr=!1;No=Dr&&(!document.documentMode||9<document.documentMode)}function wo(){Wa&&(Wa.detachEvent("onpropertychange",To),Pa=Wa=null)}function To(e){if(e.propertyName==="value"&&ni(Pa)){var t=[];So(t,Pa,e,Ar(e)),so(Ch,t)}}function kh(e,t,l){e==="focusin"?(wo(),Wa=t,Pa=l,Wa.attachEvent("onpropertychange",To)):e==="focusout"&&wo()}function Oh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ni(Pa)}function Rh(e,t){if(e==="click")return ni(t)}function Dh(e,t){if(e==="input"||e==="change")return ni(t)}function zh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:zh;function en(e,t){if(pt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Ga.call(t,n)||!pt(e[n],t[n]))return!1}return!0}function _o(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jo(e,t){var l=_o(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=_o(l)}}function Co(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Co(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ko(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Jn(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Jn(e.document)}return t}function Mr(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 Mh=Qt&&"documentMode"in document&&11>=document.documentMode,ga=null,Lr=null,tn=null,Ur=!1;function Oo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ur||ga==null||ga!==Jn(a)||(a=ga,"selectionStart"in a&&Mr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),tn&&en(tn,a)||(tn=a,a=Zi(Lr,"onSelect"),0<a.length&&(t=new li("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ga)))}function Bl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ha={animationend:Bl("Animation","AnimationEnd"),animationiteration:Bl("Animation","AnimationIteration"),animationstart:Bl("Animation","AnimationStart"),transitionrun:Bl("Transition","TransitionRun"),transitionstart:Bl("Transition","TransitionStart"),transitioncancel:Bl("Transition","TransitionCancel"),transitionend:Bl("Transition","TransitionEnd")},Br={},Ro={};Qt&&(Ro=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 Hl(e){if(Br[e])return Br[e];if(!ha[e])return e;var t=ha[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Ro)return Br[e]=t[l];return e}var Do=Hl("animationend"),zo=Hl("animationiteration"),Mo=Hl("animationstart"),Lh=Hl("transitionrun"),Uh=Hl("transitionstart"),Bh=Hl("transitioncancel"),Lo=Hl("transitionend"),Uo=new Map,Hr="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(" ");Hr.push("scrollEnd");function Mt(e,t){Uo.set(e,t),Ll(t,[e])}var Bo=new WeakMap;function jt(e,t){if(typeof e=="object"&&e!==null){var l=Bo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ps(t)},Bo.set(e,t),t)}return{value:e,source:t,stack:Ps(t)}}var Ct=[],pa=0,qr=0;function ii(){for(var e=pa,t=qr=pa=0;t<e;){var l=Ct[t];Ct[t++]=null;var a=Ct[t];Ct[t++]=null;var n=Ct[t];Ct[t++]=null;var i=Ct[t];if(Ct[t++]=null,a!==null&&n!==null){var s=a.pending;s===null?n.next=n:(n.next=s.next,s.next=n),a.pending=n}i!==0&&Ho(l,n,i)}}function ri(e,t,l,a){Ct[pa++]=e,Ct[pa++]=t,Ct[pa++]=l,Ct[pa++]=a,qr|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Gr(e,t,l,a){return ri(e,t,l,a),ui(e)}function ba(e,t){return ri(e,null,null,t),ui(e)}function Ho(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-ht(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function ui(e){if(50<_n)throw _n=0,Fu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ya={};function Hh(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,l,a){return new Hh(e,t,l,a)}function Yr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ft(e,t){var l=e.alternate;return l===null?(l=bt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function qo(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function si(e,t,l,a,n,i){var s=0;if(a=e,typeof e=="function")Yr(e)&&(s=1);else if(typeof e=="string")s=Gp(e,l,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case be:return e=bt(31,l,t,n),e.elementType=be,e.lanes=i,e;case E:return ql(l.children,n,i,t);case A:s=8,n|=24;break;case C:return e=bt(12,l,t,n|2),e.elementType=C,e.lanes=i,e;case Q:return e=bt(13,l,t,n),e.elementType=Q,e.lanes=i,e;case P:return e=bt(19,l,t,n),e.elementType=P,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case T:case H:s=10;break e;case w:s=9;break e;case U:s=11;break e;case W:s=14;break e;case oe:s=16,a=null;break e}s=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=bt(s,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function ql(e,t,l,a){return e=bt(7,e,a,t),e.lanes=l,e}function Zr(e,t,l){return e=bt(6,e,null,t),e.lanes=l,e}function Xr(e,t,l){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ma=[],va=0,oi=null,ci=0,kt=[],Ot=0,Gl=null,$t=1,Kt="";function Yl(e,t){ma[va++]=ci,ma[va++]=oi,oi=e,ci=t}function Go(e,t,l){kt[Ot++]=$t,kt[Ot++]=Kt,kt[Ot++]=Gl,Gl=e;var a=$t;e=Kt;var n=32-ht(a)-1;a&=~(1<<n),l+=1;var i=32-ht(t)+n;if(30<i){var s=n-n%5;i=(a&(1<<s)-1).toString(32),a>>=s,n-=s,$t=1<<32-ht(t)+n|l<<n|a,Kt=i+e}else $t=1<<i|l<<n|a,Kt=e}function Vr(e){e.return!==null&&(Yl(e,1),Go(e,1,0))}function Qr(e){for(;e===oi;)oi=ma[--va],ma[va]=null,ci=ma[--va],ma[va]=null;for(;e===Gl;)Gl=kt[--Ot],kt[Ot]=null,Kt=kt[--Ot],kt[Ot]=null,$t=kt[--Ot],kt[Ot]=null}var rt=null,Ge=null,_e=!1,Zl=null,Bt=!1,Fr=Error(o(519));function Xl(e){var t=Error(o(418,""));throw nn(jt(t,e)),Fr}function Yo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[at]=e,t[ut]=a,l){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(l=0;l<Cn.length;l++)Ee(Cn[l],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),lo(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),In(t);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),no(t,a.value,a.defaultValue,a.children),In(t)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||rd(t.textContent,l)?(a.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),a.onScroll!=null&&Ee("scroll",t),a.onScrollEnd!=null&&Ee("scrollend",t),a.onClick!=null&&(t.onclick=Xi),t=!0):t=!1,t||Xl(e)}function Zo(e){for(rt=e.return;rt;)switch(rt.tag){case 5:case 13:Bt=!1;return;case 27:case 3:Bt=!0;return;default:rt=rt.return}}function ln(e){if(e!==rt)return!1;if(!_e)return Zo(e),_e=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||os(e.type,e.memoizedProps)),l=!l),l&&Ge&&Xl(e),Zo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(l=e.data,l==="/$"){if(t===0){Ge=Ut(e.nextSibling);break e}t--}else l!=="$"&&l!=="$!"&&l!=="$?"||t++;e=e.nextSibling}Ge=null}}else t===27?(t=Ge,wl(e.type)?(e=gs,gs=null,Ge=e):Ge=t):Ge=rt?Ut(e.stateNode.nextSibling):null;return!0}function an(){Ge=rt=null,_e=!1}function Xo(){var e=Zl;return e!==null&&(ft===null?ft=e:ft.push.apply(ft,e),Zl=null),e}function nn(e){Zl===null?Zl=[e]:Zl.push(e)}var $r=L(null),Vl=null,It=null;function cl(e,t,l){I($r,t._currentValue),t._currentValue=l}function Jt(e){e._currentValue=$r.current,K($r)}function Kr(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Ir(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var s=n.child;i=i.firstContext;e:for(;i!==null;){var d=i;i=n;for(var S=0;S<t.length;S++)if(d.context===t[S]){i.lanes|=l,d=i.alternate,d!==null&&(d.lanes|=l),Kr(i.return,l,e),a||(s=null);break e}i=d.next}}else if(n.tag===18){if(s=n.return,s===null)throw Error(o(341));s.lanes|=l,i=s.alternate,i!==null&&(i.lanes|=l),Kr(s,l,e),s=null}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===e){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}}function rn(e,t,l,a){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var s=n.alternate;if(s===null)throw Error(o(387));if(s=s.memoizedProps,s!==null){var d=n.type;pt(n.pendingProps.value,s.value)||(e!==null?e.push(d):e=[d])}}else if(n===ce.current){if(s=n.alternate,s===null)throw Error(o(387));s.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Mn):e=[Mn])}n=n.return}e!==null&&Ir(t,e,l,a),t.flags|=262144}function fi(e){for(e=e.firstContext;e!==null;){if(!pt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ql(e){Vl=e,It=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nt(e){return Vo(Vl,e)}function di(e,t){return Vl===null&&Ql(e),Vo(e,t)}function Vo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},It===null){if(e===null)throw Error(o(308));It=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else It=It.next=t;return l}var qh=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Gh=r.unstable_scheduleCallback,Yh=r.unstable_NormalPriority,Fe={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jr(){return{controller:new qh,data:new Map,refCount:0}}function un(e){e.refCount--,e.refCount===0&&Gh(Yh,function(){e.controller.abort()})}var sn=null,Wr=0,xa=0,Sa=null;function Zh(e,t){if(sn===null){var l=sn=[];Wr=0,xa=es(),Sa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Wr++,t.then(Qo,Qo),t}function Qo(){if(--Wr===0&&sn!==null){Sa!==null&&(Sa.status="fulfilled");var e=sn;sn=null,xa=0,Sa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Xh(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Fo=y.S;y.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Zh(e,t),Fo!==null&&Fo(e,t)};var Fl=L(null);function Pr(){var e=Fl.current;return e!==null?e:Me.pooledCache}function gi(e,t){t===null?I(Fl,Fl.current):I(Fl,t.pool)}function $o(){var e=Pr();return e===null?null:{parent:Fe._currentValue,pool:e}}var on=Error(o(460)),Ko=Error(o(474)),hi=Error(o(542)),eu={then:function(){}};function Io(e){return e=e.status,e==="fulfilled"||e==="rejected"}function pi(){}function Jo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(pi,pi),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Po(e),e;default:if(typeof t.status=="string")t.then(pi,pi);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Po(e),e}throw cn=t,on}}var cn=null;function Wo(){if(cn===null)throw Error(o(459));var e=cn;return cn=null,e}function Po(e){if(e===on||e===hi)throw Error(o(483))}var fl=!1;function tu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lu(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 dl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function gl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(je&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=ui(e),Ho(e,null,l),t}return ri(e,a,t,l),ui(e)}function fn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Vs(e,l)}}function au(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var s={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=s:i=i.next=s,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var nu=!1;function dn(){if(nu){var e=Sa;if(e!==null)throw e}}function gn(e,t,l,a){nu=!1;var n=e.updateQueue;fl=!1;var i=n.firstBaseUpdate,s=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var S=d,D=S.next;S.next=null,s===null?i=D:s.next=D,s=S;var G=e.alternate;G!==null&&(G=G.updateQueue,d=G.lastBaseUpdate,d!==s&&(d===null?G.firstBaseUpdate=D:d.next=D,G.lastBaseUpdate=S))}if(i!==null){var V=n.baseState;s=0,G=D=S=null,d=i;do{var z=d.lane&-536870913,M=z!==d.lane;if(M?(Ne&z)===z:(a&z)===z){z!==0&&z===xa&&(nu=!0),G!==null&&(G=G.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var he=e,se=d;z=t;var Re=l;switch(se.tag){case 1:if(he=se.payload,typeof he=="function"){V=he.call(Re,V,z);break e}V=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=se.payload,z=typeof he=="function"?he.call(Re,V,z):he,z==null)break e;V=v({},V,z);break e;case 2:fl=!0}}z=d.callback,z!==null&&(e.flags|=64,M&&(e.flags|=8192),M=n.callbacks,M===null?n.callbacks=[z]:M.push(z))}else M={lane:z,tag:d.tag,payload:d.payload,callback:d.callback,next:null},G===null?(D=G=M,S=V):G=G.next=M,s|=z;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;M=d,d=M.next,M.next=null,n.lastBaseUpdate=M,n.shared.pending=null}}while(!0);G===null&&(S=V),n.baseState=S,n.firstBaseUpdate=D,n.lastBaseUpdate=G,i===null&&(n.shared.lanes=0),Sl|=s,e.lanes=s,e.memoizedState=V}}function ec(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function tc(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)ec(l[e],t)}var Ea=L(null),bi=L(0);function lc(e,t){e=nl,I(bi,e),I(Ea,t),nl=e|t.baseLanes}function iu(){I(bi,nl),I(Ea,Ea.current)}function ru(){nl=bi.current,K(Ea),K(bi)}var hl=0,ve=null,ke=null,Ve=null,yi=!1,Na=!1,$l=!1,mi=0,hn=0,Aa=null,Vh=0;function Ze(){throw Error(o(321))}function uu(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!pt(e[l],t[l]))return!1;return!0}function su(e,t,l,a,n,i){return hl=i,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,y.H=e===null||e.memoizedState===null?Hc:qc,$l=!1,i=l(a,n),$l=!1,Na&&(i=nc(t,l,a,n)),ac(e),i}function ac(e){y.H=Ai;var t=ke!==null&&ke.next!==null;if(hl=0,Ve=ke=ve=null,yi=!1,hn=0,Aa=null,t)throw Error(o(300));e===null||Ie||(e=e.dependencies,e!==null&&fi(e)&&(Ie=!0))}function nc(e,t,l,a){ve=e;var n=0;do{if(Na&&(Aa=null),hn=0,Na=!1,25<=n)throw Error(o(301));if(n+=1,Ve=ke=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}y.H=Wh,i=t(l,a)}while(Na);return i}function Qh(){var e=y.H,t=e.useState()[0];return t=typeof t.then=="function"?pn(t):t,e=e.useState()[0],(ke!==null?ke.memoizedState:null)!==e&&(ve.flags|=1024),t}function ou(){var e=mi!==0;return mi=0,e}function cu(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function fu(e){if(yi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}yi=!1}hl=0,Ve=ke=ve=null,Na=!1,hn=mi=0,Aa=null}function ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?ve.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function Qe(){if(ke===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=ke.next;var t=Ve===null?ve.memoizedState:Ve.next;if(t!==null)Ve=t,ke=e;else{if(e===null)throw ve.alternate===null?Error(o(467)):Error(o(310));ke=e,e={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},Ve===null?ve.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function du(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pn(e){var t=hn;return hn+=1,Aa===null&&(Aa=[]),e=Jo(Aa,e,t),t=ve,(Ve===null?t.memoizedState:Ve.next)===null&&(t=t.alternate,y.H=t===null||t.memoizedState===null?Hc:qc),e}function vi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pn(e);if(e.$$typeof===H)return nt(e)}throw Error(o(438,String(e)))}function gu(e){var t=null,l=ve.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ve.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=du(),ve.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=pe;return t.index++,l}function Wt(e,t){return typeof t=="function"?t(e):t}function xi(e){var t=Qe();return hu(t,ke,e)}function hu(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var s=n.next;n.next=i.next,i.next=s}t.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var d=s=null,S=null,D=t,G=!1;do{var V=D.lane&-536870913;if(V!==D.lane?(Ne&V)===V:(hl&V)===V){var z=D.revertLane;if(z===0)S!==null&&(S=S.next={lane:0,revertLane:0,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),V===xa&&(G=!0);else if((hl&z)===z){D=D.next,z===xa&&(G=!0);continue}else V={lane:0,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},S===null?(d=S=V,s=i):S=S.next=V,ve.lanes|=z,Sl|=z;V=D.action,$l&&l(i,V),i=D.hasEagerState?D.eagerState:l(i,V)}else z={lane:V,revertLane:D.revertLane,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},S===null?(d=S=z,s=i):S=S.next=z,ve.lanes|=V,Sl|=V;D=D.next}while(D!==null&&D!==t);if(S===null?s=i:S.next=d,!pt(i,e.memoizedState)&&(Ie=!0,G&&(l=Sa,l!==null)))throw l;e.memoizedState=i,e.baseState=s,e.baseQueue=S,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function pu(e){var t=Qe(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,i=t.memoizedState;if(n!==null){l.pending=null;var s=n=n.next;do i=e(i,s.action),s=s.next;while(s!==n);pt(i,t.memoizedState)||(Ie=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function ic(e,t,l){var a=ve,n=Qe(),i=_e;if(i){if(l===void 0)throw Error(o(407));l=l()}else l=t();var s=!pt((ke||n).memoizedState,l);s&&(n.memoizedState=l,Ie=!0),n=n.queue;var d=sc.bind(null,a,n,e);if(bn(2048,8,d,[e]),n.getSnapshot!==t||s||Ve!==null&&Ve.memoizedState.tag&1){if(a.flags|=2048,wa(9,Si(),uc.bind(null,a,n,l,t),null),Me===null)throw Error(o(349));i||(hl&124)!==0||rc(a,t,l)}return l}function rc(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ve.updateQueue,t===null?(t=du(),ve.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function uc(e,t,l,a){t.value=l,t.getSnapshot=a,oc(t)&&cc(e)}function sc(e,t,l){return l(function(){oc(t)&&cc(e)})}function oc(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!pt(e,l)}catch{return!0}}function cc(e){var t=ba(e,2);t!==null&&St(t,e,2)}function bu(e){var t=ot();if(typeof e=="function"){var l=e;if(e=l(),$l){ul(!0);try{l()}finally{ul(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wt,lastRenderedState:e},t}function fc(e,t,l,a){return e.baseState=l,hu(e,ke,typeof a=="function"?a:Wt)}function Fh(e,t,l,a,n){if(Ni(e))throw Error(o(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){i.listeners.push(s)}};y.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,dc(t,i)):(i.next=l.next,t.pending=l.next=i)}}function dc(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=y.T,s={};y.T=s;try{var d=l(n,a),S=y.S;S!==null&&S(s,d),gc(e,t,d)}catch(D){yu(e,t,D)}finally{y.T=i}}else try{i=l(n,a),gc(e,t,i)}catch(D){yu(e,t,D)}}function gc(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){hc(e,t,a)},function(a){return yu(e,t,a)}):hc(e,t,l)}function hc(e,t,l){t.status="fulfilled",t.value=l,pc(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,dc(e,l)))}function yu(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,pc(t),t=t.next;while(t!==a)}e.action=null}function pc(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function bc(e,t){return t}function yc(e,t){if(_e){var l=Me.formState;if(l!==null){e:{var a=ve;if(_e){if(Ge){t:{for(var n=Ge,i=Bt;n.nodeType!==8;){if(!i){n=null;break t}if(n=Ut(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Ge=Ut(n.nextSibling),a=n.data==="F!";break e}}Xl(a)}a=!1}a&&(t=l[0])}}return l=ot(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bc,lastRenderedState:t},l.queue=a,l=Lc.bind(null,ve,a),a.dispatch=l,a=bu(!1),i=Eu.bind(null,ve,!1,a.queue),a=ot(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Fh.bind(null,ve,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function mc(e){var t=Qe();return vc(t,ke,e)}function vc(e,t,l){if(t=hu(e,t,bc)[0],e=xi(Wt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=pn(t)}catch(s){throw s===on?hi:s}else a=t;t=Qe();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(ve.flags|=2048,wa(9,Si(),$h.bind(null,n,l),null)),[a,i,e]}function $h(e,t){e.action=t}function xc(e){var t=Qe(),l=ke;if(l!==null)return vc(t,l,e);Qe(),t=t.memoizedState,l=Qe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function wa(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ve.updateQueue,t===null&&(t=du(),ve.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Si(){return{destroy:void 0,resource:void 0}}function Sc(){return Qe().memoizedState}function Ei(e,t,l,a){var n=ot();a=a===void 0?null:a,ve.flags|=e,n.memoizedState=wa(1|t,Si(),l,a)}function bn(e,t,l,a){var n=Qe();a=a===void 0?null:a;var i=n.memoizedState.inst;ke!==null&&a!==null&&uu(a,ke.memoizedState.deps)?n.memoizedState=wa(t,i,l,a):(ve.flags|=e,n.memoizedState=wa(1|t,i,l,a))}function Ec(e,t){Ei(8390656,8,e,t)}function Nc(e,t){bn(2048,8,e,t)}function Ac(e,t){return bn(4,2,e,t)}function wc(e,t){return bn(4,4,e,t)}function Tc(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _c(e,t,l){l=l!=null?l.concat([e]):null,bn(4,4,Tc.bind(null,t,e),l)}function mu(){}function jc(e,t){var l=Qe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&uu(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Cc(e,t){var l=Qe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&uu(t,a[1]))return a[0];if(a=e(),$l){ul(!0);try{e()}finally{ul(!1)}}return l.memoizedState=[a,t],a}function vu(e,t,l){return l===void 0||(hl&1073741824)!==0?e.memoizedState=t:(e.memoizedState=l,e=Df(),ve.lanes|=e,Sl|=e,l)}function kc(e,t,l,a){return pt(l,t)?l:Ea.current!==null?(e=vu(e,l,a),pt(e,t)||(Ie=!0),e):(hl&42)===0?(Ie=!0,e.memoizedState=l):(e=Df(),ve.lanes|=e,Sl|=e,t)}function Oc(e,t,l,a,n){var i=Y.p;Y.p=i!==0&&8>i?i:8;var s=y.T,d={};y.T=d,Eu(e,!1,t,l);try{var S=n(),D=y.S;if(D!==null&&D(d,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var G=Xh(S,a);yn(e,t,G,xt(e))}else yn(e,t,a,xt(e))}catch(V){yn(e,t,{then:function(){},status:"rejected",reason:V},xt())}finally{Y.p=i,y.T=s}}function Kh(){}function xu(e,t,l,a){if(e.tag!==5)throw Error(o(476));var n=Rc(e).queue;Oc(e,n,t,F,l===null?Kh:function(){return Dc(e),l(a)})}function Rc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wt,lastRenderedState:F},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Dc(e){var t=Rc(e).next.queue;yn(e,t,{},xt())}function Su(){return nt(Mn)}function zc(){return Qe().memoizedState}function Mc(){return Qe().memoizedState}function Ih(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=xt();e=dl(l);var a=gl(t,e,l);a!==null&&(St(a,t,l),fn(a,t,l)),t={cache:Jr()},e.payload=t;return}t=t.return}}function Jh(e,t,l){var a=xt();l={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Ni(e)?Uc(t,l):(l=Gr(e,t,l,a),l!==null&&(St(l,e,a),Bc(l,t,a)))}function Lc(e,t,l){var a=xt();yn(e,t,l,a)}function yn(e,t,l,a){var n={lane:a,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ni(e))Uc(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,d=i(s,l);if(n.hasEagerState=!0,n.eagerState=d,pt(d,s))return ri(e,t,n,0),Me===null&&ii(),!1}catch{}finally{}if(l=Gr(e,t,n,a),l!==null)return St(l,e,a),Bc(l,t,a),!0}return!1}function Eu(e,t,l,a){if(a={lane:2,revertLane:es(),action:a,hasEagerState:!1,eagerState:null,next:null},Ni(e)){if(t)throw Error(o(479))}else t=Gr(e,l,a,2),t!==null&&St(t,e,2)}function Ni(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function Uc(e,t){Na=yi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Bc(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Vs(e,l)}}var Ai={readContext:nt,use:vi,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze},Hc={readContext:nt,use:vi,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:Ec,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ei(4194308,4,Tc.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ei(4194308,4,e,t)},useInsertionEffect:function(e,t){Ei(4,2,e,t)},useMemo:function(e,t){var l=ot();t=t===void 0?null:t;var a=e();if($l){ul(!0);try{e()}finally{ul(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=ot();if(l!==void 0){var n=l(t);if($l){ul(!0);try{l(t)}finally{ul(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Jh.bind(null,ve,e),[a.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:function(e){e=bu(e);var t=e.queue,l=Lc.bind(null,ve,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:mu,useDeferredValue:function(e,t){var l=ot();return vu(l,e,t)},useTransition:function(){var e=bu(!1);return e=Oc.bind(null,ve,e.queue,!0,!1),ot().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ve,n=ot();if(_e){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),Me===null)throw Error(o(349));(Ne&124)!==0||rc(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,Ec(sc.bind(null,a,i,e),[e]),a.flags|=2048,wa(9,Si(),uc.bind(null,a,i,l,t),null),l},useId:function(){var e=ot(),t=Me.identifierPrefix;if(_e){var l=Kt,a=$t;l=(a&~(1<<32-ht(a)-1)).toString(32)+l,t="«"+t+"R"+l,l=mi++,0<l&&(t+="H"+l.toString(32)),t+="»"}else l=Vh++,t="«"+t+"r"+l.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Su,useFormState:yc,useActionState:yc,useOptimistic:function(e){var t=ot();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Eu.bind(null,ve,!0,l),l.dispatch=t,[e,t]},useMemoCache:gu,useCacheRefresh:function(){return ot().memoizedState=Ih.bind(null,ve)}},qc={readContext:nt,use:vi,useCallback:jc,useContext:nt,useEffect:Nc,useImperativeHandle:_c,useInsertionEffect:Ac,useLayoutEffect:wc,useMemo:Cc,useReducer:xi,useRef:Sc,useState:function(){return xi(Wt)},useDebugValue:mu,useDeferredValue:function(e,t){var l=Qe();return kc(l,ke.memoizedState,e,t)},useTransition:function(){var e=xi(Wt)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:pn(e),t]},useSyncExternalStore:ic,useId:zc,useHostTransitionStatus:Su,useFormState:mc,useActionState:mc,useOptimistic:function(e,t){var l=Qe();return fc(l,ke,e,t)},useMemoCache:gu,useCacheRefresh:Mc},Wh={readContext:nt,use:vi,useCallback:jc,useContext:nt,useEffect:Nc,useImperativeHandle:_c,useInsertionEffect:Ac,useLayoutEffect:wc,useMemo:Cc,useReducer:pu,useRef:Sc,useState:function(){return pu(Wt)},useDebugValue:mu,useDeferredValue:function(e,t){var l=Qe();return ke===null?vu(l,e,t):kc(l,ke.memoizedState,e,t)},useTransition:function(){var e=pu(Wt)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:pn(e),t]},useSyncExternalStore:ic,useId:zc,useHostTransitionStatus:Su,useFormState:xc,useActionState:xc,useOptimistic:function(e,t){var l=Qe();return ke!==null?fc(l,ke,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:gu,useCacheRefresh:Mc},Ta=null,mn=0;function wi(e){var t=mn;return mn+=1,Ta===null&&(Ta=[]),Jo(Ta,e,t)}function vn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ti(e,t){throw t.$$typeof===b?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Gc(e){var t=e._init;return t(e._payload)}function Yc(e){function t(O,_){if(e){var R=O.deletions;R===null?(O.deletions=[_],O.flags|=16):R.push(_)}}function l(O,_){if(!e)return null;for(;_!==null;)t(O,_),_=_.sibling;return null}function a(O){for(var _=new Map;O!==null;)O.key!==null?_.set(O.key,O):_.set(O.index,O),O=O.sibling;return _}function n(O,_){return O=Ft(O,_),O.index=0,O.sibling=null,O}function i(O,_,R){return O.index=R,e?(R=O.alternate,R!==null?(R=R.index,R<_?(O.flags|=67108866,_):R):(O.flags|=67108866,_)):(O.flags|=1048576,_)}function s(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function d(O,_,R,X){return _===null||_.tag!==6?(_=Zr(R,O.mode,X),_.return=O,_):(_=n(_,R),_.return=O,_)}function S(O,_,R,X){var le=R.type;return le===E?G(O,_,R.props.children,X,R.key):_!==null&&(_.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===oe&&Gc(le)===_.type)?(_=n(_,R.props),vn(_,R),_.return=O,_):(_=si(R.type,R.key,R.props,null,O.mode,X),vn(_,R),_.return=O,_)}function D(O,_,R,X){return _===null||_.tag!==4||_.stateNode.containerInfo!==R.containerInfo||_.stateNode.implementation!==R.implementation?(_=Xr(R,O.mode,X),_.return=O,_):(_=n(_,R.children||[]),_.return=O,_)}function G(O,_,R,X,le){return _===null||_.tag!==7?(_=ql(R,O.mode,X,le),_.return=O,_):(_=n(_,R),_.return=O,_)}function V(O,_,R){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=Zr(""+_,O.mode,R),_.return=O,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case k:return R=si(_.type,_.key,_.props,null,O.mode,R),vn(R,_),R.return=O,R;case q:return _=Xr(_,O.mode,R),_.return=O,_;case oe:var X=_._init;return _=X(_._payload),V(O,_,R)}if(J(_)||$(_))return _=ql(_,O.mode,R,null),_.return=O,_;if(typeof _.then=="function")return V(O,wi(_),R);if(_.$$typeof===H)return V(O,di(O,_),R);Ti(O,_)}return null}function z(O,_,R,X){var le=_!==null?_.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return le!==null?null:d(O,_,""+R,X);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case k:return R.key===le?S(O,_,R,X):null;case q:return R.key===le?D(O,_,R,X):null;case oe:return le=R._init,R=le(R._payload),z(O,_,R,X)}if(J(R)||$(R))return le!==null?null:G(O,_,R,X,null);if(typeof R.then=="function")return z(O,_,wi(R),X);if(R.$$typeof===H)return z(O,_,di(O,R),X);Ti(O,R)}return null}function M(O,_,R,X,le){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return O=O.get(R)||null,d(_,O,""+X,le);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case k:return O=O.get(X.key===null?R:X.key)||null,S(_,O,X,le);case q:return O=O.get(X.key===null?R:X.key)||null,D(_,O,X,le);case oe:var xe=X._init;return X=xe(X._payload),M(O,_,R,X,le)}if(J(X)||$(X))return O=O.get(R)||null,G(_,O,X,le,null);if(typeof X.then=="function")return M(O,_,R,wi(X),le);if(X.$$typeof===H)return M(O,_,R,di(_,X),le);Ti(_,X)}return null}function he(O,_,R,X){for(var le=null,xe=null,ue=_,fe=_=0,We=null;ue!==null&&fe<R.length;fe++){ue.index>fe?(We=ue,ue=null):We=ue.sibling;var Te=z(O,ue,R[fe],X);if(Te===null){ue===null&&(ue=We);break}e&&ue&&Te.alternate===null&&t(O,ue),_=i(Te,_,fe),xe===null?le=Te:xe.sibling=Te,xe=Te,ue=We}if(fe===R.length)return l(O,ue),_e&&Yl(O,fe),le;if(ue===null){for(;fe<R.length;fe++)ue=V(O,R[fe],X),ue!==null&&(_=i(ue,_,fe),xe===null?le=ue:xe.sibling=ue,xe=ue);return _e&&Yl(O,fe),le}for(ue=a(ue);fe<R.length;fe++)We=M(ue,O,fe,R[fe],X),We!==null&&(e&&We.alternate!==null&&ue.delete(We.key===null?fe:We.key),_=i(We,_,fe),xe===null?le=We:xe.sibling=We,xe=We);return e&&ue.forEach(function(kl){return t(O,kl)}),_e&&Yl(O,fe),le}function se(O,_,R,X){if(R==null)throw Error(o(151));for(var le=null,xe=null,ue=_,fe=_=0,We=null,Te=R.next();ue!==null&&!Te.done;fe++,Te=R.next()){ue.index>fe?(We=ue,ue=null):We=ue.sibling;var kl=z(O,ue,Te.value,X);if(kl===null){ue===null&&(ue=We);break}e&&ue&&kl.alternate===null&&t(O,ue),_=i(kl,_,fe),xe===null?le=kl:xe.sibling=kl,xe=kl,ue=We}if(Te.done)return l(O,ue),_e&&Yl(O,fe),le;if(ue===null){for(;!Te.done;fe++,Te=R.next())Te=V(O,Te.value,X),Te!==null&&(_=i(Te,_,fe),xe===null?le=Te:xe.sibling=Te,xe=Te);return _e&&Yl(O,fe),le}for(ue=a(ue);!Te.done;fe++,Te=R.next())Te=M(ue,O,fe,Te.value,X),Te!==null&&(e&&Te.alternate!==null&&ue.delete(Te.key===null?fe:Te.key),_=i(Te,_,fe),xe===null?le=Te:xe.sibling=Te,xe=Te);return e&&ue.forEach(function(Pp){return t(O,Pp)}),_e&&Yl(O,fe),le}function Re(O,_,R,X){if(typeof R=="object"&&R!==null&&R.type===E&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case k:e:{for(var le=R.key;_!==null;){if(_.key===le){if(le=R.type,le===E){if(_.tag===7){l(O,_.sibling),X=n(_,R.props.children),X.return=O,O=X;break e}}else if(_.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===oe&&Gc(le)===_.type){l(O,_.sibling),X=n(_,R.props),vn(X,R),X.return=O,O=X;break e}l(O,_);break}else t(O,_);_=_.sibling}R.type===E?(X=ql(R.props.children,O.mode,X,R.key),X.return=O,O=X):(X=si(R.type,R.key,R.props,null,O.mode,X),vn(X,R),X.return=O,O=X)}return s(O);case q:e:{for(le=R.key;_!==null;){if(_.key===le)if(_.tag===4&&_.stateNode.containerInfo===R.containerInfo&&_.stateNode.implementation===R.implementation){l(O,_.sibling),X=n(_,R.children||[]),X.return=O,O=X;break e}else{l(O,_);break}else t(O,_);_=_.sibling}X=Xr(R,O.mode,X),X.return=O,O=X}return s(O);case oe:return le=R._init,R=le(R._payload),Re(O,_,R,X)}if(J(R))return he(O,_,R,X);if($(R)){if(le=$(R),typeof le!="function")throw Error(o(150));return R=le.call(R),se(O,_,R,X)}if(typeof R.then=="function")return Re(O,_,wi(R),X);if(R.$$typeof===H)return Re(O,_,di(O,R),X);Ti(O,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,_!==null&&_.tag===6?(l(O,_.sibling),X=n(_,R),X.return=O,O=X):(l(O,_),X=Zr(R,O.mode,X),X.return=O,O=X),s(O)):l(O,_)}return function(O,_,R,X){try{mn=0;var le=Re(O,_,R,X);return Ta=null,le}catch(ue){if(ue===on||ue===hi)throw ue;var xe=bt(29,ue,null,O.mode);return xe.lanes=X,xe.return=O,xe}finally{}}}var _a=Yc(!0),Zc=Yc(!1),Rt=L(null),Ht=null;function pl(e){var t=e.alternate;I($e,$e.current&1),I(Rt,e),Ht===null&&(t===null||Ea.current!==null||t.memoizedState!==null)&&(Ht=e)}function Xc(e){if(e.tag===22){if(I($e,$e.current),I(Rt,e),Ht===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Ht=e)}}else bl()}function bl(){I($e,$e.current),I(Rt,Rt.current)}function Pt(e){K(Rt),Ht===e&&(Ht=null),K($e)}var $e=L(0);function _i(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||ds(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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}function Nu(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:v({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Au={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=xt(),n=dl(a);n.payload=t,l!=null&&(n.callback=l),t=gl(e,n,a),t!==null&&(St(t,e,a),fn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=xt(),n=dl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=gl(e,n,a),t!==null&&(St(t,e,a),fn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=xt(),a=dl(l);a.tag=2,t!=null&&(a.callback=t),t=gl(e,a,l),t!==null&&(St(t,e,l),fn(t,e,l))}};function Vc(e,t,l,a,n,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,s):t.prototype&&t.prototype.isPureReactComponent?!en(l,a)||!en(n,i):!0}function Qc(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Au.enqueueReplaceState(t,t.state,null)}function Kl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=v({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}var ji=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)};function Fc(e){ji(e)}function $c(e){console.error(e)}function Kc(e){ji(e)}function Ci(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Ic(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function wu(e,t,l){return l=dl(l),l.tag=3,l.payload={element:null},l.callback=function(){Ci(e,t)},l}function Jc(e){return e=dl(e),e.tag=3,e}function Wc(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;e.payload=function(){return n(i)},e.callback=function(){Ic(t,l,a)}}var s=l.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){Ic(t,l,a),typeof n!="function"&&(El===null?El=new Set([this]):El.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function Ph(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&rn(t,l,n,!0),l=Rt.current,l!==null){switch(l.tag){case 13:return Ht===null?Ku():l.alternate===null&&Ye===0&&(Ye=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===eu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Ju(e,a,n)),!1;case 22:return l.flags|=65536,a===eu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Ju(e,a,n)),!1}throw Error(o(435,l.tag))}return Ju(e,a,n),Ku(),!1}if(_e)return t=Rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Fr&&(e=Error(o(422),{cause:a}),nn(jt(e,l)))):(a!==Fr&&(t=Error(o(423),{cause:a}),nn(jt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=jt(a,l),n=wu(e.stateNode,a,n),au(e,n),Ye!==4&&(Ye=2)),!1;var i=Error(o(520),{cause:a});if(i=jt(i,l),Tn===null?Tn=[i]:Tn.push(i),Ye!==4&&(Ye=2),t===null)return!0;a=jt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=wu(l.stateNode,a,e),au(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(El===null||!El.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Jc(n),Wc(n,e,l,a),au(l,n),!1}l=l.return}while(l!==null);return!1}var Pc=Error(o(461)),Ie=!1;function et(e,t,l,a){t.child=e===null?Zc(t,null,l,a):_a(t,e.child,l,a)}function ef(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var s={};for(var d in a)d!=="ref"&&(s[d]=a[d])}else s=a;return Ql(t),a=su(e,t,l,s,i,n),d=ou(),e!==null&&!Ie?(cu(e,t,n),el(e,t,n)):(_e&&d&&Vr(t),t.flags|=1,et(e,t,a,n),t.child)}function tf(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!Yr(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,lf(e,t,i,a,n)):(e=si(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Du(e,n)){var s=i.memoizedProps;if(l=l.compare,l=l!==null?l:en,l(s,a)&&e.ref===t.ref)return el(e,t,n)}return t.flags|=1,e=Ft(i,a),e.ref=t.ref,e.return=t,t.child=e}function lf(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(en(i,a)&&e.ref===t.ref)if(Ie=!1,t.pendingProps=a=i,Du(e,n))(e.flags&131072)!==0&&(Ie=!0);else return t.lanes=e.lanes,el(e,t,n)}return Tu(e,t,l,a,n)}function af(e,t,l){var a=t.pendingProps,n=a.children,i=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=i!==null?i.baseLanes|l:l,e!==null){for(n=t.child=e.child,i=0;n!==null;)i=i|n.lanes|n.childLanes,n=n.sibling;t.childLanes=i&~a}else t.childLanes=0,t.child=null;return nf(e,t,a,l)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&gi(t,i!==null?i.cachePool:null),i!==null?lc(t,i):iu(),Xc(t);else return t.lanes=t.childLanes=536870912,nf(e,t,i!==null?i.baseLanes|l:l,l)}else i!==null?(gi(t,i.cachePool),lc(t,i),bl(),t.memoizedState=null):(e!==null&&gi(t,null),iu(),bl());return et(e,t,n,l),t.child}function nf(e,t,l,a){var n=Pr();return n=n===null?null:{parent:Fe._currentValue,pool:n},t.memoizedState={baseLanes:l,cachePool:n},e!==null&&gi(t,null),iu(),Xc(t),e!==null&&rn(e,t,a,!0),null}function ki(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Tu(e,t,l,a,n){return Ql(t),l=su(e,t,l,a,void 0,n),a=ou(),e!==null&&!Ie?(cu(e,t,n),el(e,t,n)):(_e&&a&&Vr(t),t.flags|=1,et(e,t,l,n),t.child)}function rf(e,t,l,a,n,i){return Ql(t),t.updateQueue=null,l=nc(t,a,l,n),ac(e),a=ou(),e!==null&&!Ie?(cu(e,t,i),el(e,t,i)):(_e&&a&&Vr(t),t.flags|=1,et(e,t,l,i),t.child)}function uf(e,t,l,a,n){if(Ql(t),t.stateNode===null){var i=ya,s=l.contextType;typeof s=="object"&&s!==null&&(i=nt(s)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Au,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},tu(t),s=l.contextType,i.context=typeof s=="object"&&s!==null?nt(s):ya,i.state=t.memoizedState,s=l.getDerivedStateFromProps,typeof s=="function"&&(Nu(t,l,s,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(s=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),s!==i.state&&Au.enqueueReplaceState(i,i.state,null),gn(t,a,i,n),dn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var d=t.memoizedProps,S=Kl(l,d);i.props=S;var D=i.context,G=l.contextType;s=ya,typeof G=="object"&&G!==null&&(s=nt(G));var V=l.getDerivedStateFromProps;G=typeof V=="function"||typeof i.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,G||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d||D!==s)&&Qc(t,i,a,s),fl=!1;var z=t.memoizedState;i.state=z,gn(t,a,i,n),dn(),D=t.memoizedState,d||z!==D||fl?(typeof V=="function"&&(Nu(t,l,V,a),D=t.memoizedState),(S=fl||Vc(t,l,S,a,z,D,s))?(G||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=D),i.props=a,i.state=D,i.context=s,a=S):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,lu(e,t),s=t.memoizedProps,G=Kl(l,s),i.props=G,V=t.pendingProps,z=i.context,D=l.contextType,S=ya,typeof D=="object"&&D!==null&&(S=nt(D)),d=l.getDerivedStateFromProps,(D=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==V||z!==S)&&Qc(t,i,a,S),fl=!1,z=t.memoizedState,i.state=z,gn(t,a,i,n),dn();var M=t.memoizedState;s!==V||z!==M||fl||e!==null&&e.dependencies!==null&&fi(e.dependencies)?(typeof d=="function"&&(Nu(t,l,d,a),M=t.memoizedState),(G=fl||Vc(t,l,G,a,z,M,S)||e!==null&&e.dependencies!==null&&fi(e.dependencies))?(D||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,M,S),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,M,S)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=M),i.props=a,i.state=M,i.context=S,a=G):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,ki(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=_a(t,e.child,null,n),t.child=_a(t,null,l,n)):et(e,t,l,n),t.memoizedState=i.state,e=t.child):e=el(e,t,n),e}function sf(e,t,l,a){return an(),t.flags|=256,et(e,t,l,a),t.child}var _u={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ju(e){return{baseLanes:e,cachePool:$o()}}function Cu(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Dt),e}function of(e,t,l){var a=t.pendingProps,n=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:($e.current&2)!==0),s&&(n=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(_e){if(n?pl(t):bl(),_e){var d=Ge,S;if(S=d){e:{for(S=d,d=Bt;S.nodeType!==8;){if(!d){d=null;break e}if(S=Ut(S.nextSibling),S===null){d=null;break e}}d=S}d!==null?(t.memoizedState={dehydrated:d,treeContext:Gl!==null?{id:$t,overflow:Kt}:null,retryLane:536870912,hydrationErrors:null},S=bt(18,null,null,0),S.stateNode=d,S.return=t,t.child=S,rt=t,Ge=null,S=!0):S=!1}S||Xl(t)}if(d=t.memoizedState,d!==null&&(d=d.dehydrated,d!==null))return ds(d)?t.lanes=32:t.lanes=536870912,null;Pt(t)}return d=a.children,a=a.fallback,n?(bl(),n=t.mode,d=Oi({mode:"hidden",children:d},n),a=ql(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,n=t.child,n.memoizedState=ju(l),n.childLanes=Cu(e,s,l),t.memoizedState=_u,a):(pl(t),ku(t,d))}if(S=e.memoizedState,S!==null&&(d=S.dehydrated,d!==null)){if(i)t.flags&256?(pl(t),t.flags&=-257,t=Ou(e,t,l)):t.memoizedState!==null?(bl(),t.child=e.child,t.flags|=128,t=null):(bl(),n=a.fallback,d=t.mode,a=Oi({mode:"visible",children:a.children},d),n=ql(n,d,l,null),n.flags|=2,a.return=t,n.return=t,a.sibling=n,t.child=a,_a(t,e.child,null,l),a=t.child,a.memoizedState=ju(l),a.childLanes=Cu(e,s,l),t.memoizedState=_u,t=n);else if(pl(t),ds(d)){if(s=d.nextSibling&&d.nextSibling.dataset,s)var D=s.dgst;s=D,a=Error(o(419)),a.stack="",a.digest=s,nn({value:a,source:null,stack:null}),t=Ou(e,t,l)}else if(Ie||rn(e,t,l,!1),s=(l&e.childLanes)!==0,Ie||s){if(s=Me,s!==null&&(a=l&-l,a=(a&42)!==0?1:gr(a),a=(a&(s.suspendedLanes|l))!==0?0:a,a!==0&&a!==S.retryLane))throw S.retryLane=a,ba(e,a),St(s,e,a),Pc;d.data==="$?"||Ku(),t=Ou(e,t,l)}else d.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,Ge=Ut(d.nextSibling),rt=t,_e=!0,Zl=null,Bt=!1,e!==null&&(kt[Ot++]=$t,kt[Ot++]=Kt,kt[Ot++]=Gl,$t=e.id,Kt=e.overflow,Gl=t),t=ku(t,a.children),t.flags|=4096);return t}return n?(bl(),n=a.fallback,d=t.mode,S=e.child,D=S.sibling,a=Ft(S,{mode:"hidden",children:a.children}),a.subtreeFlags=S.subtreeFlags&65011712,D!==null?n=Ft(D,n):(n=ql(n,d,l,null),n.flags|=2),n.return=t,a.return=t,a.sibling=n,t.child=a,a=n,n=t.child,d=e.child.memoizedState,d===null?d=ju(l):(S=d.cachePool,S!==null?(D=Fe._currentValue,S=S.parent!==D?{parent:D,pool:D}:S):S=$o(),d={baseLanes:d.baseLanes|l,cachePool:S}),n.memoizedState=d,n.childLanes=Cu(e,s,l),t.memoizedState=_u,a):(pl(t),l=e.child,e=l.sibling,l=Ft(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=l,t.memoizedState=null,l)}function ku(e,t){return t=Oi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Oi(e,t){return e=bt(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Ou(e,t,l){return _a(t,e.child,null,l),e=ku(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function cf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Kr(e.return,t,l)}function Ru(e,t,l,a,n){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=l,i.tailMode=n)}function ff(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;if(et(e,t,a.children,l),a=$e.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cf(e,l,t);else if(e.tag===19)cf(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}switch(I($e,a),n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&_i(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Ru(t,!1,n,l,i);break;case"backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&_i(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Ru(t,!0,l,null,i);break;case"together":Ru(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function el(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Sl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(rn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=Ft(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Ft(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Du(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&fi(e)))}function ep(e,t,l){switch(t.tag){case 3:ee(t,t.stateNode.containerInfo),cl(t,Fe,e.memoizedState.cache),an();break;case 27:case 5:qe(t);break;case 4:ee(t,t.stateNode.containerInfo);break;case 10:cl(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(pl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?of(e,t,l):(pl(t),e=el(e,t,l),e!==null?e.sibling:null);pl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(rn(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return ff(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),I($e,$e.current),a)break;return null;case 22:case 23:return t.lanes=0,af(e,t,l);case 24:cl(t,Fe,e.memoizedState.cache)}return el(e,t,l)}function df(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ie=!0;else{if(!Du(e,l)&&(t.flags&128)===0)return Ie=!1,ep(e,t,l);Ie=(e.flags&131072)!==0}else Ie=!1,_e&&(t.flags&1048576)!==0&&Go(t,ci,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,n=a._init;if(a=n(a._payload),t.type=a,typeof a=="function")Yr(a)?(e=Kl(a,e),t.tag=1,t=uf(null,t,a,e,l)):(t.tag=0,t=Tu(null,t,a,e,l));else{if(a!=null){if(n=a.$$typeof,n===U){t.tag=11,t=ef(null,t,a,e,l);break e}else if(n===W){t.tag=14,t=tf(null,t,a,e,l);break e}}throw t=re(a)||a,Error(o(306,t,""))}}return t;case 0:return Tu(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Kl(a,t.pendingProps),uf(e,t,a,n,l);case 3:e:{if(ee(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,lu(e,t),gn(t,a,null,l);var s=t.memoizedState;if(a=s.cache,cl(t,Fe,a),a!==i.cache&&Ir(t,[Fe],l,!0),dn(),a=s.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=sf(e,t,a,l);break e}else if(a!==n){n=jt(Error(o(424)),t),nn(n),t=sf(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ge=Ut(e.firstChild),rt=t,_e=!0,Zl=null,Bt=!0,l=Zc(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(an(),a===n){t=el(e,t,l);break e}et(e,t,a,l)}t=t.child}return t;case 26:return ki(e,t),e===null?(l=bd(t.type,null,t.pendingProps,null))?t.memoizedState=l:_e||(l=t.type,e=t.pendingProps,a=Vi(ne.current).createElement(l),a[at]=t,a[ut]=e,lt(a,l,e),Ke(a),t.stateNode=a):t.memoizedState=bd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return qe(t),e===null&&_e&&(a=t.stateNode=gd(t.type,t.pendingProps,ne.current),rt=t,Bt=!0,n=Ge,wl(t.type)?(gs=n,Ge=Ut(a.firstChild)):Ge=n),et(e,t,t.pendingProps.children,l),ki(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&_e&&((n=a=Ge)&&(a=jp(a,t.type,t.pendingProps,Bt),a!==null?(t.stateNode=a,rt=t,Ge=Ut(a.firstChild),Bt=!1,n=!0):n=!1),n||Xl(t)),qe(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,a=i.children,os(n,i)?a=null:s!==null&&os(n,s)&&(t.flags|=32),t.memoizedState!==null&&(n=su(e,t,Qh,null,null,l),Mn._currentValue=n),ki(e,t),et(e,t,a,l),t.child;case 6:return e===null&&_e&&((e=l=Ge)&&(l=Cp(l,t.pendingProps,Bt),l!==null?(t.stateNode=l,rt=t,Ge=null,e=!0):e=!1),e||Xl(t)),null;case 13:return of(e,t,l);case 4:return ee(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=_a(t,null,a,l):et(e,t,a,l),t.child;case 11:return ef(e,t,t.type,t.pendingProps,l);case 7:return et(e,t,t.pendingProps,l),t.child;case 8:return et(e,t,t.pendingProps.children,l),t.child;case 12:return et(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,cl(t,t.type,a.value),et(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Ql(t),n=nt(n),a=a(n),t.flags|=1,et(e,t,a,l),t.child;case 14:return tf(e,t,t.type,t.pendingProps,l);case 15:return lf(e,t,t.type,t.pendingProps,l);case 19:return ff(e,t,l);case 31:return a=t.pendingProps,l=t.mode,a={mode:a.mode,children:a.children},e===null?(l=Oi(a,l),l.ref=t.ref,t.child=l,l.return=t,t=l):(l=Ft(e.child,a),l.ref=t.ref,t.child=l,l.return=t,t=l),t;case 22:return af(e,t,l);case 24:return Ql(t),a=nt(Fe),e===null?(n=Pr(),n===null&&(n=Me,i=Jr(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},tu(t),cl(t,Fe,n)):((e.lanes&l)!==0&&(lu(e,t),gn(t,null,null,l),dn()),n=e.memoizedState,i=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),cl(t,Fe,a)):(a=i.cache,cl(t,Fe,a),a!==n.cache&&Ir(t,[Fe],l,!0))),et(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function tl(e){e.flags|=4}function gf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Sd(t)){if(t=Rt.current,t!==null&&((Ne&4194048)===Ne?Ht!==null:(Ne&62914560)!==Ne&&(Ne&536870912)===0||t!==Ht))throw cn=eu,Ko;e.flags|=8192}}function Ri(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Zs():536870912,e.lanes|=t,Oa|=t)}function xn(e,t){if(!_e)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function tp(e,t,l){var a=t.pendingProps;switch(Qr(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return He(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Jt(Fe),Ae(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ln(t)?tl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Xo())),He(t),null;case 26:return l=t.memoizedState,e===null?(tl(t),l!==null?(He(t),gf(t,l)):(He(t),t.flags&=-16777217)):l?l!==e.memoizedState?(tl(t),He(t),gf(t,l)):(He(t),t.flags&=-16777217):(e.memoizedProps!==a&&tl(t),He(t),t.flags&=-16777217),null;case 27:ea(t),l=ne.current;var n=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return He(t),null}e=te.current,ln(t)?Yo(t):(e=gd(n,a,l),t.stateNode=e,tl(t))}return He(t),null;case 5:if(ea(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return He(t),null}if(e=te.current,ln(t))Yo(t);else{switch(n=Vi(ne.current),e){case 1:e=n.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:e=n.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":e=n.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":e=n.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":e=n.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?n.createElement("select",{is:a.is}):n.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?n.createElement(l,{is:a.is}):n.createElement(l)}}e[at]=t,e[ut]=a;e:for(n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.tag!==27&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}t.stateNode=e;e:switch(lt(e,l,a),l){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&tl(t)}}return He(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=ne.current,ln(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=rt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[at]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||rd(e.nodeValue,l)),e||Xl(t)}else e=Vi(e).createTextNode(a),e[at]=t,t.stateNode=e}return He(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ln(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[at]=t}else an(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),n=!1}else n=Xo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Pt(t),t):(Pt(t),null)}if(Pt(t),(t.flags&128)!==0)return t.lanes=l,t;if(l=a!==null,e=e!==null&&e.memoizedState!==null,l){a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool);var i=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)}return l!==e&&l&&(t.child.flags|=8192),Ri(t,t.updateQueue),He(t),null;case 4:return Ae(),e===null&&ns(t.stateNode.containerInfo),He(t),null;case 10:return Jt(t.type),He(t),null;case 19:if(K($e),n=t.memoizedState,n===null)return He(t),null;if(a=(t.flags&128)!==0,i=n.rendering,i===null)if(a)xn(n,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=_i(e),i!==null){for(t.flags|=128,xn(n,!1),e=i.updateQueue,t.updateQueue=e,Ri(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)qo(l,e),l=l.sibling;return I($e,$e.current&1|2),t.child}e=e.sibling}n.tail!==null&&wt()>Mi&&(t.flags|=128,a=!0,xn(n,!1),t.lanes=4194304)}else{if(!a)if(e=_i(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ri(t,e),xn(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!_e)return He(t),null}else 2*wt()-n.renderingStartTime>Mi&&l!==536870912&&(t.flags|=128,a=!0,xn(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(e=n.last,e!==null?e.sibling=i:t.child=i,n.last=i)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=wt(),t.sibling=null,e=$e.current,I($e,a?e&1|2:e&1),t):(He(t),null);case 22:case 23:return Pt(t),ru(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),l=t.updateQueue,l!==null&&Ri(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&K(Fl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Jt(Fe),He(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function lp(e,t){switch(Qr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Jt(Fe),Ae(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ea(t),null;case 13:if(Pt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));an()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K($e),null;case 4:return Ae(),null;case 10:return Jt(t.type),null;case 22:case 23:return Pt(t),ru(),e!==null&&K(Fl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Jt(Fe),null;case 25:return null;default:return null}}function hf(e,t){switch(Qr(t),t.tag){case 3:Jt(Fe),Ae();break;case 26:case 27:case 5:ea(t);break;case 4:Ae();break;case 13:Pt(t);break;case 19:K($e);break;case 10:Jt(t.type);break;case 22:case 23:Pt(t),ru(),e!==null&&K(Fl);break;case 24:Jt(Fe)}}function Sn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var i=l.create,s=l.inst;a=i(),s.destroy=a}l=l.next}while(l!==n)}}catch(d){ze(t,t.return,d)}}function yl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var s=a.inst,d=s.destroy;if(d!==void 0){s.destroy=void 0,n=t;var S=l,D=d;try{D()}catch(G){ze(n,S,G)}}}a=a.next}while(a!==i)}}catch(G){ze(t,t.return,G)}}function pf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{tc(t,l)}catch(a){ze(e,e.return,a)}}}function bf(e,t,l){l.props=Kl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){ze(e,t,a)}}function En(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){ze(e,t,n)}}function qt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){ze(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){ze(e,t,n)}else l.current=null}function yf(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){ze(e,e.return,n)}}function zu(e,t,l){try{var a=e.stateNode;Np(a,e.type,l,t),a[ut]=t}catch(n){ze(e,e.return,n)}}function mf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&wl(e.type)||e.tag===4}function Mu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mf(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&&wl(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 Lu(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Xi));else if(a!==4&&(a===27&&wl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Lu(e,t,l),e=e.sibling;e!==null;)Lu(e,t,l),e=e.sibling}function Di(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&wl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Di(e,t,l),e=e.sibling;e!==null;)Di(e,t,l),e=e.sibling}function vf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);lt(t,a,l),t[at]=e,t[ut]=l}catch(i){ze(e,e.return,i)}}var ll=!1,Xe=!1,Uu=!1,xf=typeof WeakSet=="function"?WeakSet:Set,Je=null;function ap(e,t){if(e=e.containerInfo,us=Ji,e=ko(e),Mr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var s=0,d=-1,S=-1,D=0,G=0,V=e,z=null;t:for(;;){for(var M;V!==l||n!==0&&V.nodeType!==3||(d=s+n),V!==i||a!==0&&V.nodeType!==3||(S=s+a),V.nodeType===3&&(s+=V.nodeValue.length),(M=V.firstChild)!==null;)z=V,V=M;for(;;){if(V===e)break t;if(z===l&&++D===n&&(d=s),z===i&&++G===a&&(S=s),(M=V.nextSibling)!==null)break;V=z,z=V.parentNode}V=M}l=d===-1||S===-1?null:{start:d,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(ss={focusedElem:e,selectionRange:l},Ji=!1,Je=t;Je!==null;)if(t=Je,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Je=e;else for(;Je!==null;){switch(t=Je,i=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var he=Kl(l.type,n,l.elementType===l.type);e=a.getSnapshotBeforeUpdate(he,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(se){ze(l,l.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)fs(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":fs(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Je=e;break}Je=t.return}}function Sf(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:ml(e,l),a&4&&Sn(5,l);break;case 1:if(ml(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(s){ze(l,l.return,s)}else{var n=Kl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){ze(l,l.return,s)}}a&64&&pf(l),a&512&&En(l,l.return);break;case 3:if(ml(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{tc(e,t)}catch(s){ze(l,l.return,s)}}break;case 27:t===null&&a&4&&vf(l);case 26:case 5:ml(e,l),t===null&&a&4&&yf(l),a&512&&En(l,l.return);break;case 12:ml(e,l);break;case 13:ml(e,l),a&4&&Af(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=dp.bind(null,l),kp(e,l))));break;case 22:if(a=l.memoizedState!==null||ll,!a){t=t!==null&&t.memoizedState!==null||Xe,n=ll;var i=Xe;ll=a,(Xe=t)&&!i?vl(e,l,(l.subtreeFlags&8772)!==0):ml(e,l),ll=n,Xe=i}break;case 30:break;default:ml(e,l)}}function Ef(e){var t=e.alternate;t!==null&&(e.alternate=null,Ef(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&br(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 Ue=null,ct=!1;function al(e,t,l){for(l=l.child;l!==null;)Nf(e,t,l),l=l.sibling}function Nf(e,t,l){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(zl,l)}catch{}switch(l.tag){case 26:Xe||qt(l,t),al(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Xe||qt(l,t);var a=Ue,n=ct;wl(l.type)&&(Ue=l.stateNode,ct=!1),al(e,t,l),On(l.stateNode),Ue=a,ct=n;break;case 5:Xe||qt(l,t);case 6:if(a=Ue,n=ct,Ue=null,al(e,t,l),Ue=a,ct=n,Ue!==null)if(ct)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(l.stateNode)}catch(i){ze(l,t,i)}else try{Ue.removeChild(l.stateNode)}catch(i){ze(l,t,i)}break;case 18:Ue!==null&&(ct?(e=Ue,fd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Hn(e)):fd(Ue,l.stateNode));break;case 4:a=Ue,n=ct,Ue=l.stateNode.containerInfo,ct=!0,al(e,t,l),Ue=a,ct=n;break;case 0:case 11:case 14:case 15:Xe||yl(2,l,t),Xe||yl(4,l,t),al(e,t,l);break;case 1:Xe||(qt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&bf(l,t,a)),al(e,t,l);break;case 21:al(e,t,l);break;case 22:Xe=(a=Xe)||l.memoizedState!==null,al(e,t,l),Xe=a;break;default:al(e,t,l)}}function Af(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hn(e)}catch(l){ze(t,t.return,l)}}function np(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new xf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new xf),t;default:throw Error(o(435,e.tag))}}function Bu(e,t){var l=np(e);t.forEach(function(a){var n=gp.bind(null,e,a);l.has(a)||(l.add(a),a.then(n,n))})}function yt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=e,s=t,d=s;e:for(;d!==null;){switch(d.tag){case 27:if(wl(d.type)){Ue=d.stateNode,ct=!1;break e}break;case 5:Ue=d.stateNode,ct=!1;break e;case 3:case 4:Ue=d.stateNode.containerInfo,ct=!0;break e}d=d.return}if(Ue===null)throw Error(o(160));Nf(i,s,n),Ue=null,ct=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)wf(t,e),t=t.sibling}var Lt=null;function wf(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yt(t,e),mt(e),a&4&&(yl(3,e,e.return),Sn(3,e),yl(5,e,e.return));break;case 1:yt(t,e),mt(e),a&512&&(Xe||l===null||qt(l,l.return)),a&64&&ll&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Lt;if(yt(t,e),mt(e),a&512&&(Xe||l===null||qt(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[Va]||i[at]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),lt(i,a,l),i[at]=e,Ke(i),a=i;break e;case"link":var s=vd("link","href",n).get(a+(l.href||""));if(s){for(var d=0;d<s.length;d++)if(i=s[d],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){s.splice(d,1);break t}}i=n.createElement(a),lt(i,a,l),n.head.appendChild(i);break;case"meta":if(s=vd("meta","content",n).get(a+(l.content||""))){for(d=0;d<s.length;d++)if(i=s[d],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){s.splice(d,1);break t}}i=n.createElement(a),lt(i,a,l),n.head.appendChild(i);break;default:throw Error(o(468,a))}i[at]=e,Ke(i),a=i}e.stateNode=a}else xd(n,e.type,e.stateNode);else e.stateNode=md(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?xd(n,e.type,e.stateNode):md(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&zu(e,e.memoizedProps,l.memoizedProps)}break;case 27:yt(t,e),mt(e),a&512&&(Xe||l===null||qt(l,l.return)),l!==null&&a&4&&zu(e,e.memoizedProps,l.memoizedProps);break;case 5:if(yt(t,e),mt(e),a&512&&(Xe||l===null||qt(l,l.return)),e.flags&32){n=e.stateNode;try{oa(n,"")}catch(M){ze(e,e.return,M)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,zu(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Uu=!0);break;case 6:if(yt(t,e),mt(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(M){ze(e,e.return,M)}}break;case 3:if($i=null,n=Lt,Lt=Qi(t.containerInfo),yt(t,e),Lt=n,mt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Hn(t.containerInfo)}catch(M){ze(e,e.return,M)}Uu&&(Uu=!1,Tf(e));break;case 4:a=Lt,Lt=Qi(e.stateNode.containerInfo),yt(t,e),mt(e),Lt=a;break;case 12:yt(t,e),mt(e);break;case 13:yt(t,e),mt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Xu=wt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bu(e,a)));break;case 22:n=e.memoizedState!==null;var S=l!==null&&l.memoizedState!==null,D=ll,G=Xe;if(ll=D||n,Xe=G||S,yt(t,e),Xe=G,ll=D,mt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||S||ll||Xe||Il(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){S=l=t;try{if(i=S.stateNode,n)s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{d=S.stateNode;var V=S.memoizedProps.style,z=V!=null&&V.hasOwnProperty("display")?V.display:null;d.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(M){ze(S,S.return,M)}}}else if(t.tag===6){if(l===null){S=t;try{S.stateNode.nodeValue=n?"":S.memoizedProps}catch(M){ze(S,S.return,M)}}}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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Bu(e,l))));break;case 19:yt(t,e),mt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bu(e,a)));break;case 30:break;case 21:break;default:yt(t,e),mt(e)}}function mt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(mf(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,i=Mu(e);Di(e,i,n);break;case 5:var s=l.stateNode;l.flags&32&&(oa(s,""),l.flags&=-33);var d=Mu(e);Di(e,d,s);break;case 3:case 4:var S=l.stateNode.containerInfo,D=Mu(e);Lu(e,D,S);break;default:throw Error(o(161))}}catch(G){ze(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Tf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Tf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ml(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Sf(e,t.alternate,t),t=t.sibling}function Il(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:yl(4,t,t.return),Il(t);break;case 1:qt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&bf(t,t.return,l),Il(t);break;case 27:On(t.stateNode);case 26:case 5:qt(t,t.return),Il(t);break;case 22:t.memoizedState===null&&Il(t);break;case 30:Il(t);break;default:Il(t)}e=e.sibling}}function vl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,i=t,s=i.flags;switch(i.tag){case 0:case 11:case 15:vl(n,i,l),Sn(4,i);break;case 1:if(vl(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(D){ze(a,a.return,D)}if(a=i,n=a.updateQueue,n!==null){var d=a.stateNode;try{var S=n.shared.hiddenCallbacks;if(S!==null)for(n.shared.hiddenCallbacks=null,n=0;n<S.length;n++)ec(S[n],d)}catch(D){ze(a,a.return,D)}}l&&s&64&&pf(i),En(i,i.return);break;case 27:vf(i);case 26:case 5:vl(n,i,l),l&&a===null&&s&4&&yf(i),En(i,i.return);break;case 12:vl(n,i,l);break;case 13:vl(n,i,l),l&&s&4&&Af(n,i);break;case 22:i.memoizedState===null&&vl(n,i,l),En(i,i.return);break;case 30:break;default:vl(n,i,l)}t=t.sibling}}function Hu(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&un(l))}function qu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&un(e))}function Gt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)_f(e,t,l,a),t=t.sibling}function _f(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Gt(e,t,l,a),n&2048&&Sn(9,t);break;case 1:Gt(e,t,l,a);break;case 3:Gt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&un(e)));break;case 12:if(n&2048){Gt(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,s=i.id,d=i.onPostCommit;typeof d=="function"&&d(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){ze(t,t.return,S)}}else Gt(e,t,l,a);break;case 13:Gt(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,s=t.alternate,t.memoizedState!==null?i._visibility&2?Gt(e,t,l,a):Nn(e,t):i._visibility&2?Gt(e,t,l,a):(i._visibility|=2,ja(e,t,l,a,(t.subtreeFlags&10256)!==0)),n&2048&&Hu(s,t);break;case 24:Gt(e,t,l,a),n&2048&&qu(t.alternate,t);break;default:Gt(e,t,l,a)}}function ja(e,t,l,a,n){for(n=n&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var i=e,s=t,d=l,S=a,D=s.flags;switch(s.tag){case 0:case 11:case 15:ja(i,s,d,S,n),Sn(8,s);break;case 23:break;case 22:var G=s.stateNode;s.memoizedState!==null?G._visibility&2?ja(i,s,d,S,n):Nn(i,s):(G._visibility|=2,ja(i,s,d,S,n)),n&&D&2048&&Hu(s.alternate,s);break;case 24:ja(i,s,d,S,n),n&&D&2048&&qu(s.alternate,s);break;default:ja(i,s,d,S,n)}t=t.sibling}}function Nn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:Nn(l,a),n&2048&&Hu(a.alternate,a);break;case 24:Nn(l,a),n&2048&&qu(a.alternate,a);break;default:Nn(l,a)}t=t.sibling}}var An=8192;function Ca(e){if(e.subtreeFlags&An)for(e=e.child;e!==null;)jf(e),e=e.sibling}function jf(e){switch(e.tag){case 26:Ca(e),e.flags&An&&e.memoizedState!==null&&Zp(Lt,e.memoizedState,e.memoizedProps);break;case 5:Ca(e);break;case 3:case 4:var t=Lt;Lt=Qi(e.stateNode.containerInfo),Ca(e),Lt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=An,An=16777216,Ca(e),An=t):Ca(e));break;default:Ca(e)}}function Cf(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 wn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Je=a,Of(a,e)}Cf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kf(e),e=e.sibling}function kf(e){switch(e.tag){case 0:case 11:case 15:wn(e),e.flags&2048&&yl(9,e,e.return);break;case 3:wn(e);break;case 12:wn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,zi(e)):wn(e);break;default:wn(e)}}function zi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Je=a,Of(a,e)}Cf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:yl(8,t,t.return),zi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,zi(t));break;default:zi(t)}e=e.sibling}}function Of(e,t){for(;Je!==null;){var l=Je;switch(l.tag){case 0:case 11:case 15:yl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:un(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Je=a;else e:for(l=e;Je!==null;){a=Je;var n=a.sibling,i=a.return;if(Ef(a),a===l){Je=null;break e}if(n!==null){n.return=i,Je=n;break e}Je=i}}}var ip={getCacheForType:function(e){var t=nt(Fe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l}},rp=typeof WeakMap=="function"?WeakMap:Map,je=0,Me=null,Se=null,Ne=0,Ce=0,vt=null,xl=!1,ka=!1,Gu=!1,nl=0,Ye=0,Sl=0,Jl=0,Yu=0,Dt=0,Oa=0,Tn=null,ft=null,Zu=!1,Xu=0,Mi=1/0,Li=null,El=null,tt=0,Nl=null,Ra=null,Da=0,Vu=0,Qu=null,Rf=null,_n=0,Fu=null;function xt(){if((je&2)!==0&&Ne!==0)return Ne&-Ne;if(y.T!==null){var e=xa;return e!==0?e:es()}return Qs()}function Df(){Dt===0&&(Dt=(Ne&536870912)===0||_e?Ys():536870912);var e=Rt.current;return e!==null&&(e.flags|=32),Dt}function St(e,t,l){(e===Me&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)&&(za(e,0),Al(e,Ne,Dt,!1)),Xa(e,l),((je&2)===0||e!==Me)&&(e===Me&&((je&2)===0&&(Jl|=l),Ye===4&&Al(e,Ne,Dt,!1)),Yt(e))}function zf(e,t,l){if((je&6)!==0)throw Error(o(327));var a=!l&&(t&124)===0&&(t&e.expiredLanes)===0||Za(e,t),n=a?op(e,t):Iu(e,t,!0),i=a;do{if(n===0){ka&&!a&&Al(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!up(l)){n=Iu(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var d=e;n=Tn;var S=d.current.memoizedState.isDehydrated;if(S&&(za(d,s).flags|=256),s=Iu(d,s,!1),s!==2){if(Gu&&!S){d.errorRecoveryDisabledLanes|=i,Jl|=i,n=4;break e}i=ft,ft=n,i!==null&&(ft===null?ft=i:ft.push.apply(ft,i))}n=s}if(i=!1,n!==2)continue}}if(n===1){za(e,0),Al(e,t,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Al(a,t,Dt,!xl);break e;case 2:ft=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=Xu+300-wt(),10<n)){if(Al(a,t,Dt,!xl),Fn(a,0,!0)!==0)break e;a.timeoutHandle=od(Mf.bind(null,a,l,ft,Li,Zu,t,Dt,Jl,Oa,xl,i,2,-0,0),n);break e}Mf(a,l,ft,Li,Zu,t,Dt,Jl,Oa,xl,i,0,-0,0)}}break}while(!0);Yt(e)}function Mf(e,t,l,a,n,i,s,d,S,D,G,V,z,M){if(e.timeoutHandle=-1,V=t.subtreeFlags,(V&8192||(V&16785408)===16785408)&&(zn={stylesheets:null,count:0,unsuspend:Yp},jf(t),V=Xp(),V!==null)){e.cancelPendingCommit=V(Yf.bind(null,e,t,i,l,a,n,s,d,S,G,1,z,M)),Al(e,i,s,!D);return}Yf(e,t,i,l,a,n,s,d,S)}function up(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!pt(i(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Al(e,t,l,a){t&=~Yu,t&=~Jl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-ht(n),s=1<<i;a[i]=-1,n&=~s}l!==0&&Xs(e,l,t)}function Ui(){return(je&6)===0?(jn(0),!1):!0}function $u(){if(Se!==null){if(Ce===0)var e=Se.return;else e=Se,It=Vl=null,fu(e),Ta=null,mn=0,e=Se;for(;e!==null;)hf(e.alternate,e),e=e.return;Se=null}}function za(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,wp(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),$u(),Me=e,Se=l=Ft(e.current,null),Ne=t,Ce=0,vt=null,xl=!1,ka=Za(e,t),Gu=!1,Oa=Dt=Yu=Jl=Sl=Ye=0,ft=Tn=null,Zu=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-ht(a),i=1<<n;t|=e[n],a&=~i}return nl=t,ii(),l}function Lf(e,t){ve=null,y.H=Ai,t===on||t===hi?(t=Wo(),Ce=3):t===Ko?(t=Wo(),Ce=4):Ce=t===Pc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,vt=t,Se===null&&(Ye=1,Ci(e,jt(t,e.current)))}function Uf(){var e=y.H;return y.H=Ai,e===null?Ai:e}function Bf(){var e=y.A;return y.A=ip,e}function Ku(){Ye=4,xl||(Ne&4194048)!==Ne&&Rt.current!==null||(ka=!0),(Sl&134217727)===0&&(Jl&134217727)===0||Me===null||Al(Me,Ne,Dt,!1)}function Iu(e,t,l){var a=je;je|=2;var n=Uf(),i=Bf();(Me!==e||Ne!==t)&&(Li=null,za(e,t)),t=!1;var s=Ye;e:do try{if(Ce!==0&&Se!==null){var d=Se,S=vt;switch(Ce){case 8:$u(),s=6;break e;case 3:case 2:case 9:case 6:Rt.current===null&&(t=!0);var D=Ce;if(Ce=0,vt=null,Ma(e,d,S,D),l&&ka){s=0;break e}break;default:D=Ce,Ce=0,vt=null,Ma(e,d,S,D)}}sp(),s=Ye;break}catch(G){Lf(e,G)}while(!0);return t&&e.shellSuspendCounter++,It=Vl=null,je=a,y.H=n,y.A=i,Se===null&&(Me=null,Ne=0,ii()),s}function sp(){for(;Se!==null;)Hf(Se)}function op(e,t){var l=je;je|=2;var a=Uf(),n=Bf();Me!==e||Ne!==t?(Li=null,Mi=wt()+500,za(e,t)):ka=Za(e,t);e:do try{if(Ce!==0&&Se!==null){t=Se;var i=vt;t:switch(Ce){case 1:Ce=0,vt=null,Ma(e,t,i,1);break;case 2:case 9:if(Io(i)){Ce=0,vt=null,qf(t);break}t=function(){Ce!==2&&Ce!==9||Me!==e||(Ce=7),Yt(e)},i.then(t,t);break e;case 3:Ce=7;break e;case 4:Ce=5;break e;case 7:Io(i)?(Ce=0,vt=null,qf(t)):(Ce=0,vt=null,Ma(e,t,i,7));break;case 5:var s=null;switch(Se.tag){case 26:s=Se.memoizedState;case 5:case 27:var d=Se;if(!s||Sd(s)){Ce=0,vt=null;var S=d.sibling;if(S!==null)Se=S;else{var D=d.return;D!==null?(Se=D,Bi(D)):Se=null}break t}}Ce=0,vt=null,Ma(e,t,i,5);break;case 6:Ce=0,vt=null,Ma(e,t,i,6);break;case 8:$u(),Ye=6;break e;default:throw Error(o(462))}}cp();break}catch(G){Lf(e,G)}while(!0);return It=Vl=null,y.H=a,y.A=n,je=l,Se!==null?0:(Me=null,Ne=0,ii(),Ye)}function cp(){for(;Se!==null&&!cr();)Hf(Se)}function Hf(e){var t=df(e.alternate,e,nl);e.memoizedProps=e.pendingProps,t===null?Bi(e):Se=t}function qf(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=rf(l,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=rf(l,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:fu(t);default:hf(l,t),t=Se=qo(t,nl),t=df(l,t,nl)}e.memoizedProps=e.pendingProps,t===null?Bi(e):Se=t}function Ma(e,t,l,a){It=Vl=null,fu(t),Ta=null,mn=0;var n=t.return;try{if(Ph(e,n,t,l,Ne)){Ye=1,Ci(e,jt(l,e.current)),Se=null;return}}catch(i){if(n!==null)throw Se=n,i;Ye=1,Ci(e,jt(l,e.current)),Se=null;return}t.flags&32768?(_e||a===1?e=!0:ka||(Ne&536870912)!==0?e=!1:(xl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Rt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Gf(t,e)):Bi(t)}function Bi(e){var t=e;do{if((t.flags&32768)!==0){Gf(t,xl);return}e=t.return;var l=tp(t.alternate,t,nl);if(l!==null){Se=l;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Ye===0&&(Ye=5)}function Gf(e,t){do{var l=lp(e.alternate,e);if(l!==null){l.flags&=32767,Se=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=l}while(e!==null);Ye=6,Se=null}function Yf(e,t,l,a,n,i,s,d,S){e.cancelPendingCommit=null;do Hi();while(tt!==0);if((je&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(i=t.lanes|t.childLanes,i|=qr,Yg(e,l,i,s,d,S),e===Me&&(Se=Me=null,Ne=0),Ra=t,Nl=e,Da=l,Vu=i,Qu=n,Rf=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,hp(we,function(){return Ff(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=y.T,y.T=null,n=Y.p,Y.p=2,s=je,je|=4;try{ap(e,t,l)}finally{je=s,Y.p=n,y.T=a}}tt=1,Zf(),Xf(),Vf()}}function Zf(){if(tt===1){tt=0;var e=Nl,t=Ra,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=y.T,y.T=null;var a=Y.p;Y.p=2;var n=je;je|=4;try{wf(t,e);var i=ss,s=ko(e.containerInfo),d=i.focusedElem,S=i.selectionRange;if(s!==d&&d&&d.ownerDocument&&Co(d.ownerDocument.documentElement,d)){if(S!==null&&Mr(d)){var D=S.start,G=S.end;if(G===void 0&&(G=D),"selectionStart"in d)d.selectionStart=D,d.selectionEnd=Math.min(G,d.value.length);else{var V=d.ownerDocument||document,z=V&&V.defaultView||window;if(z.getSelection){var M=z.getSelection(),he=d.textContent.length,se=Math.min(S.start,he),Re=S.end===void 0?se:Math.min(S.end,he);!M.extend&&se>Re&&(s=Re,Re=se,se=s);var O=jo(d,se),_=jo(d,Re);if(O&&_&&(M.rangeCount!==1||M.anchorNode!==O.node||M.anchorOffset!==O.offset||M.focusNode!==_.node||M.focusOffset!==_.offset)){var R=V.createRange();R.setStart(O.node,O.offset),M.removeAllRanges(),se>Re?(M.addRange(R),M.extend(_.node,_.offset)):(R.setEnd(_.node,_.offset),M.addRange(R))}}}}for(V=[],M=d;M=M.parentNode;)M.nodeType===1&&V.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<V.length;d++){var X=V[d];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Ji=!!us,ss=us=null}finally{je=n,Y.p=a,y.T=l}}e.current=t,tt=2}}function Xf(){if(tt===2){tt=0;var e=Nl,t=Ra,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=y.T,y.T=null;var a=Y.p;Y.p=2;var n=je;je|=4;try{Sf(e,t.alternate,t)}finally{je=n,Y.p=a,y.T=l}}tt=3}}function Vf(){if(tt===4||tt===3){tt=0,Zn();var e=Nl,t=Ra,l=Da,a=Rf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?tt=5:(tt=0,Ra=Nl=null,Qf(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(El=null),hr(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(zl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=y.T,n=Y.p,Y.p=2,y.T=null;try{for(var i=e.onRecoverableError,s=0;s<a.length;s++){var d=a[s];i(d.value,{componentStack:d.stack})}}finally{y.T=t,Y.p=n}}(Da&3)!==0&&Hi(),Yt(e),n=e.pendingLanes,(l&4194090)!==0&&(n&42)!==0?e===Fu?_n++:(_n=0,Fu=e):_n=0,jn(0)}}function Qf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,un(t)))}function Hi(e){return Zf(),Xf(),Vf(),Ff()}function Ff(){if(tt!==5)return!1;var e=Nl,t=Vu;Vu=0;var l=hr(Da),a=y.T,n=Y.p;try{Y.p=32>l?32:l,y.T=null,l=Qu,Qu=null;var i=Nl,s=Da;if(tt=0,Ra=Nl=null,Da=0,(je&6)!==0)throw Error(o(331));var d=je;if(je|=4,kf(i.current),_f(i,i.current,s,l),je=d,jn(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(zl,i)}catch{}return!0}finally{Y.p=n,y.T=a,Qf(e,t)}}function $f(e,t,l){t=jt(l,t),t=wu(e.stateNode,t,2),e=gl(e,t,2),e!==null&&(Xa(e,2),Yt(e))}function ze(e,t,l){if(e.tag===3)$f(e,e,l);else for(;t!==null;){if(t.tag===3){$f(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(El===null||!El.has(a))){e=jt(l,e),l=Jc(2),a=gl(t,l,2),a!==null&&(Wc(l,a,t,e),Xa(a,2),Yt(a));break}}t=t.return}}function Ju(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new rp;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Gu=!0,n.add(l),e=fp.bind(null,e,t,l),t.then(e,e))}function fp(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Me===e&&(Ne&l)===l&&(Ye===4||Ye===3&&(Ne&62914560)===Ne&&300>wt()-Xu?(je&2)===0&&za(e,0):Yu|=l,Oa===Ne&&(Oa=0)),Yt(e)}function Kf(e,t){t===0&&(t=Zs()),e=ba(e,t),e!==null&&(Xa(e,t),Yt(e))}function dp(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Kf(e,l)}function gp(e,t){var l=0;switch(e.tag){case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),Kf(e,l)}function hp(e,t){return Dl(e,t)}var qi=null,La=null,Wu=!1,Gi=!1,Pu=!1,Wl=0;function Yt(e){e!==La&&e.next===null&&(La===null?qi=La=e:La=La.next=e),Gi=!0,Wu||(Wu=!0,bp())}function jn(e,t){if(!Pu&&Gi){Pu=!0;do for(var l=!1,a=qi;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var s=a.suspendedLanes,d=a.pingedLanes;i=(1<<31-ht(42|e)+1)-1,i&=n&~(s&~d),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Pf(a,i))}else i=Ne,i=Fn(a,a===Me?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Za(a,i)||(l=!0,Pf(a,i));a=a.next}while(l);Pu=!1}}function pp(){If()}function If(){Gi=Wu=!1;var e=0;Wl!==0&&(Ap()&&(e=Wl),Wl=0);for(var t=wt(),l=null,a=qi;a!==null;){var n=a.next,i=Jf(a,t);i===0?(a.next=null,l===null?qi=n:l.next=n,n===null&&(La=l)):(l=a,(e!==0||(i&3)!==0)&&(Gi=!0)),a=n}jn(e)}function Jf(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var s=31-ht(i),d=1<<s,S=n[s];S===-1?((d&l)===0||(d&a)!==0)&&(n[s]=Gg(d,t)):S<=t&&(e.expiredLanes|=d),i&=~d}if(t=Me,l=Ne,l=Fn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&ta(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Za(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&ta(a),hr(l)){case 2:case 8:l=de;break;case 32:l=we;break;case 268435456:l=Pe;break;default:l=we}return a=Wf.bind(null,e),l=Dl(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&ta(a),e.callbackPriority=2,e.callbackNode=null,2}function Wf(e,t){if(tt!==0&&tt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Hi()&&e.callbackNode!==l)return null;var a=Ne;return a=Fn(e,e===Me?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(zf(e,a,t),Jf(e,wt()),e.callbackNode!=null&&e.callbackNode===l?Wf.bind(null,e):null)}function Pf(e,t){if(Hi())return null;zf(e,t,!0)}function bp(){Tp(function(){(je&6)!==0?Dl(Xn,pp):If()})}function es(){return Wl===0&&(Wl=Ys()),Wl}function ed(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Wn(""+e)}function td(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function yp(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=ed((n[ut]||null).action),s=a.submitter;s&&(t=(t=s[ut]||null)?ed(t.formAction):s.getAttribute("formAction"),t!==null&&(i=t,s=null));var d=new li("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Wl!==0){var S=s?td(n,s):new FormData(n);xu(l,{pending:!0,data:S,method:n.method,action:i},null,S)}}else typeof i=="function"&&(d.preventDefault(),S=s?td(n,s):new FormData(n),xu(l,{pending:!0,data:S,method:n.method,action:i},i,S))},currentTarget:n}]})}}for(var ts=0;ts<Hr.length;ts++){var ls=Hr[ts],mp=ls.toLowerCase(),vp=ls[0].toUpperCase()+ls.slice(1);Mt(mp,"on"+vp)}Mt(Do,"onAnimationEnd"),Mt(zo,"onAnimationIteration"),Mt(Mo,"onAnimationStart"),Mt("dblclick","onDoubleClick"),Mt("focusin","onFocus"),Mt("focusout","onBlur"),Mt(Lh,"onTransitionRun"),Mt(Uh,"onTransitionStart"),Mt(Bh,"onTransitionCancel"),Mt(Lo,"onTransitionEnd"),ra("onMouseEnter",["mouseout","mouseover"]),ra("onMouseLeave",["mouseout","mouseover"]),ra("onPointerEnter",["pointerout","pointerover"]),ra("onPointerLeave",["pointerout","pointerover"]),Ll("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ll("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ll("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ll("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cn="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(" "),xp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Cn));function ld(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var s=a.length-1;0<=s;s--){var d=a[s],S=d.instance,D=d.currentTarget;if(d=d.listener,S!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=D;try{i(n)}catch(G){ji(G)}n.currentTarget=null,i=S}else for(s=0;s<a.length;s++){if(d=a[s],S=d.instance,D=d.currentTarget,d=d.listener,S!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=D;try{i(n)}catch(G){ji(G)}n.currentTarget=null,i=S}}}}function Ee(e,t){var l=t[pr];l===void 0&&(l=t[pr]=new Set);var a=e+"__bubble";l.has(a)||(ad(t,e,2,!1),l.add(a))}function as(e,t,l){var a=0;t&&(a|=4),ad(l,e,a,t)}var Yi="_reactListening"+Math.random().toString(36).slice(2);function ns(e){if(!e[Yi]){e[Yi]=!0,$s.forEach(function(l){l!=="selectionchange"&&(xp.has(l)||as(l,!1,e),as(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yi]||(t[Yi]=!0,as("selectionchange",!1,t))}}function ad(e,t,l,a){switch(_d(t)){case 2:var n=Fp;break;case 8:n=$p;break;default:n=ms}l=n.bind(null,t,l,e),n=void 0,!Tr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function is(e,t,l,a,n){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var s=a.tag;if(s===3||s===4){var d=a.stateNode.containerInfo;if(d===n)break;if(s===4)for(s=a.return;s!==null;){var S=s.tag;if((S===3||S===4)&&s.stateNode.containerInfo===n)return;s=s.return}for(;d!==null;){if(s=aa(d),s===null)return;if(S=s.tag,S===5||S===6||S===26||S===27){a=i=s;continue e}d=d.parentNode}}a=a.return}so(function(){var D=i,G=Ar(l),V=[];e:{var z=Uo.get(e);if(z!==void 0){var M=li,he=e;switch(e){case"keypress":if(ei(l)===0)break e;case"keydown":case"keyup":M=hh;break;case"focusin":he="focus",M=kr;break;case"focusout":he="blur",M=kr;break;case"beforeblur":case"afterblur":M=kr;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=fo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=lh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=yh;break;case Do:case zo:case Mo:M=ih;break;case Lo:M=vh;break;case"scroll":case"scrollend":M=eh;break;case"wheel":M=Sh;break;case"copy":case"cut":case"paste":M=uh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=ho;break;case"toggle":case"beforetoggle":M=Nh}var se=(t&4)!==0,Re=!se&&(e==="scroll"||e==="scrollend"),O=se?z!==null?z+"Capture":null:z;se=[];for(var _=D,R;_!==null;){var X=_;if(R=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||R===null||O===null||(X=Fa(_,O),X!=null&&se.push(kn(_,X,R))),Re)break;_=_.return}0<se.length&&(z=new M(z,he,null,l,G),V.push({event:z,listeners:se}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",z&&l!==Nr&&(he=l.relatedTarget||l.fromElement)&&(aa(he)||he[la]))break e;if((M||z)&&(z=G.window===G?G:(z=G.ownerDocument)?z.defaultView||z.parentWindow:window,M?(he=l.relatedTarget||l.toElement,M=D,he=he?aa(he):null,he!==null&&(Re=g(he),se=he.tag,he!==Re||se!==5&&se!==27&&se!==6)&&(he=null)):(M=null,he=D),M!==he)){if(se=fo,X="onMouseLeave",O="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(se=ho,X="onPointerLeave",O="onPointerEnter",_="pointer"),Re=M==null?z:Qa(M),R=he==null?z:Qa(he),z=new se(X,_+"leave",M,l,G),z.target=Re,z.relatedTarget=R,X=null,aa(G)===D&&(se=new se(O,_+"enter",he,l,G),se.target=R,se.relatedTarget=Re,X=se),Re=X,M&&he)t:{for(se=M,O=he,_=0,R=se;R;R=Ua(R))_++;for(R=0,X=O;X;X=Ua(X))R++;for(;0<_-R;)se=Ua(se),_--;for(;0<R-_;)O=Ua(O),R--;for(;_--;){if(se===O||O!==null&&se===O.alternate)break t;se=Ua(se),O=Ua(O)}se=null}else se=null;M!==null&&nd(V,z,M,se,!1),he!==null&&Re!==null&&nd(V,Re,he,se,!0)}}e:{if(z=D?Qa(D):window,M=z.nodeName&&z.nodeName.toLowerCase(),M==="select"||M==="input"&&z.type==="file")var le=Eo;else if(xo(z))if(No)le=Dh;else{le=Oh;var xe=kh}else M=z.nodeName,!M||M.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?D&&Er(D.elementType)&&(le=Eo):le=Rh;if(le&&(le=le(e,D))){So(V,le,l,G);break e}xe&&xe(e,z,D),e==="focusout"&&D&&z.type==="number"&&D.memoizedProps.value!=null&&Sr(z,"number",z.value)}switch(xe=D?Qa(D):window,e){case"focusin":(xo(xe)||xe.contentEditable==="true")&&(ga=xe,Lr=D,tn=null);break;case"focusout":tn=Lr=ga=null;break;case"mousedown":Ur=!0;break;case"contextmenu":case"mouseup":case"dragend":Ur=!1,Oo(V,l,G);break;case"selectionchange":if(Mh)break;case"keydown":case"keyup":Oo(V,l,G)}var ue;if(Rr)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else da?mo(e,l)&&(fe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(fe="onCompositionStart");fe&&(po&&l.locale!=="ko"&&(da||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&da&&(ue=oo()):(ol=G,_r="value"in ol?ol.value:ol.textContent,da=!0)),xe=Zi(D,fe),0<xe.length&&(fe=new go(fe,e,null,l,G),V.push({event:fe,listeners:xe}),ue?fe.data=ue:(ue=vo(l),ue!==null&&(fe.data=ue)))),(ue=wh?Th(e,l):_h(e,l))&&(fe=Zi(D,"onBeforeInput"),0<fe.length&&(xe=new go("onBeforeInput","beforeinput",null,l,G),V.push({event:xe,listeners:fe}),xe.data=ue)),yp(V,e,D,l,G)}ld(V,t)})}function kn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Zi(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Fa(e,l),n!=null&&a.unshift(kn(e,n,i)),n=Fa(e,t),n!=null&&a.push(kn(e,n,i))),e.tag===3)return a;e=e.return}return[]}function Ua(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function nd(e,t,l,a,n){for(var i=t._reactName,s=[];l!==null&&l!==a;){var d=l,S=d.alternate,D=d.stateNode;if(d=d.tag,S!==null&&S===a)break;d!==5&&d!==26&&d!==27||D===null||(S=D,n?(D=Fa(l,i),D!=null&&s.unshift(kn(l,D,S))):n||(D=Fa(l,i),D!=null&&s.push(kn(l,D,S)))),l=l.return}s.length!==0&&e.push({event:t,listeners:s})}var Sp=/\r\n?/g,Ep=/\u0000|\uFFFD/g;function id(e){return(typeof e=="string"?e:""+e).replace(Sp,`
|
|
49
|
+
`).replace(Ep,"")}function rd(e,t){return t=id(t),id(e)===t}function Xi(){}function Oe(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||oa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&oa(e,""+a);break;case"className":Kn(e,"class",a);break;case"tabIndex":Kn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Kn(e,l,a);break;case"style":ro(e,a,i);break;case"data":if(t!=="object"){Kn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Wn(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(t!=="input"&&Oe(e,t,"name",n.name,n,null),Oe(e,t,"formEncType",n.formEncType,n,null),Oe(e,t,"formMethod",n.formMethod,n,null),Oe(e,t,"formTarget",n.formTarget,n,null)):(Oe(e,t,"encType",n.encType,n,null),Oe(e,t,"method",n.method,n,null),Oe(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Wn(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Xi);break;case"onScroll":a!=null&&Ee("scroll",e);break;case"onScrollEnd":a!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Wn(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),$n(e,"popover",a);break;case"xlinkActuate":Vt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Vt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Vt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Vt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Vt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Vt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":$n(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Wg.get(l)||l,$n(e,l,a))}}function rs(e,t,l,a,n,i){switch(l){case"style":ro(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof a=="string"?oa(e,a):(typeof a=="number"||typeof a=="bigint")&&oa(e,""+a);break;case"onScroll":a!=null&&Ee("scroll",e);break;case"onScrollEnd":a!=null&&Ee("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Xi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ks.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),i=e[ut]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):$n(e,l,a)}}}function lt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var s=l[i];if(s!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Oe(e,t,i,s,l,null)}}n&&Oe(e,t,"srcSet",l.srcSet,l,null),a&&Oe(e,t,"src",l.src,l,null);return;case"input":Ee("invalid",e);var d=i=s=n=null,S=null,D=null;for(a in l)if(l.hasOwnProperty(a)){var G=l[a];if(G!=null)switch(a){case"name":n=G;break;case"type":s=G;break;case"checked":S=G;break;case"defaultChecked":D=G;break;case"value":i=G;break;case"defaultValue":d=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(o(137,t));break;default:Oe(e,t,a,G,l,null)}}lo(e,i,d,S,D,s,n,!1),In(e);return;case"select":Ee("invalid",e),a=s=i=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":i=d;break;case"defaultValue":s=d;break;case"multiple":a=d;default:Oe(e,t,n,d,l,null)}t=i,l=s,e.multiple=!!a,t!=null?sa(e,!!a,t,!1):l!=null&&sa(e,!!a,l,!0);return;case"textarea":Ee("invalid",e),i=n=a=null;for(s in l)if(l.hasOwnProperty(s)&&(d=l[s],d!=null))switch(s){case"value":a=d;break;case"defaultValue":n=d;break;case"children":i=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:Oe(e,t,s,d,l,null)}no(e,a,n,i),In(e);return;case"option":for(S in l)if(l.hasOwnProperty(S)&&(a=l[S],a!=null))switch(S){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Oe(e,t,S,a,l,null)}return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(a=0;a<Cn.length;a++)Ee(Cn[a],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("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(D in l)if(l.hasOwnProperty(D)&&(a=l[D],a!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Oe(e,t,D,a,l,null)}return;default:if(Er(t)){for(G in l)l.hasOwnProperty(G)&&(a=l[G],a!==void 0&&rs(e,t,G,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&Oe(e,t,d,a,l,null))}function Np(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,s=null,d=null,S=null,D=null,G=null;for(M in l){var V=l[M];if(l.hasOwnProperty(M)&&V!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":S=V;default:a.hasOwnProperty(M)||Oe(e,t,M,null,a,V)}}for(var z in a){var M=a[z];if(V=l[z],a.hasOwnProperty(z)&&(M!=null||V!=null))switch(z){case"type":i=M;break;case"name":n=M;break;case"checked":D=M;break;case"defaultChecked":G=M;break;case"value":s=M;break;case"defaultValue":d=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(137,t));break;default:M!==V&&Oe(e,t,z,M,a,V)}}xr(e,s,d,S,D,G,i,n);return;case"select":M=s=d=z=null;for(i in l)if(S=l[i],l.hasOwnProperty(i)&&S!=null)switch(i){case"value":break;case"multiple":M=S;default:a.hasOwnProperty(i)||Oe(e,t,i,null,a,S)}for(n in a)if(i=a[n],S=l[n],a.hasOwnProperty(n)&&(i!=null||S!=null))switch(n){case"value":z=i;break;case"defaultValue":d=i;break;case"multiple":s=i;default:i!==S&&Oe(e,t,n,i,a,S)}t=d,l=s,a=M,z!=null?sa(e,!!l,z,!1):!!a!=!!l&&(t!=null?sa(e,!!l,t,!0):sa(e,!!l,l?[]:"",!1));return;case"textarea":M=z=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Oe(e,t,d,null,a,n)}for(s in a)if(n=a[s],i=l[s],a.hasOwnProperty(s)&&(n!=null||i!=null))switch(s){case"value":z=n;break;case"defaultValue":M=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==i&&Oe(e,t,s,n,a,i)}ao(e,z,M);return;case"option":for(var he in l)if(z=l[he],l.hasOwnProperty(he)&&z!=null&&!a.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Oe(e,t,he,null,a,z)}for(S in a)if(z=a[S],M=l[S],a.hasOwnProperty(S)&&z!==M&&(z!=null||M!=null))switch(S){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Oe(e,t,S,z,a,M)}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 se in l)z=l[se],l.hasOwnProperty(se)&&z!=null&&!a.hasOwnProperty(se)&&Oe(e,t,se,null,a,z);for(D in a)if(z=a[D],M=l[D],a.hasOwnProperty(D)&&z!==M&&(z!=null||M!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:Oe(e,t,D,z,a,M)}return;default:if(Er(t)){for(var Re in l)z=l[Re],l.hasOwnProperty(Re)&&z!==void 0&&!a.hasOwnProperty(Re)&&rs(e,t,Re,void 0,a,z);for(G in a)z=a[G],M=l[G],!a.hasOwnProperty(G)||z===M||z===void 0&&M===void 0||rs(e,t,G,z,a,M);return}}for(var O in l)z=l[O],l.hasOwnProperty(O)&&z!=null&&!a.hasOwnProperty(O)&&Oe(e,t,O,null,a,z);for(V in a)z=a[V],M=l[V],!a.hasOwnProperty(V)||z===M||z==null&&M==null||Oe(e,t,V,z,a,M)}var us=null,ss=null;function Vi(e){return e.nodeType===9?e:e.ownerDocument}function ud(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 sd(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 os(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 cs=null;function Ap(){var e=window.event;return e&&e.type==="popstate"?e===cs?!1:(cs=e,!0):(cs=null,!1)}var od=typeof setTimeout=="function"?setTimeout:void 0,wp=typeof clearTimeout=="function"?clearTimeout:void 0,cd=typeof Promise=="function"?Promise:void 0,Tp=typeof queueMicrotask=="function"?queueMicrotask:typeof cd<"u"?function(e){return cd.resolve(null).then(e).catch(_p)}:od;function _p(e){setTimeout(function(){throw e})}function wl(e){return e==="head"}function fd(e,t){var l=t,a=0,n=0;do{var i=l.nextSibling;if(e.removeChild(l),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(0<a&&8>a){l=a;var s=e.ownerDocument;if(l&1&&On(s.documentElement),l&2&&On(s.body),l&4)for(l=s.head,On(l),s=l.firstChild;s;){var d=s.nextSibling,S=s.nodeName;s[Va]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=d}}if(n===0){e.removeChild(i),Hn(t);return}n--}else l==="$"||l==="$?"||l==="$!"?n++:a=l.charCodeAt(0)-48;else a=0;l=i}while(l);Hn(t)}function fs(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":fs(l),br(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function jp(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Va])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Ut(e.nextSibling),e===null)break}return null}function Cp(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Ut(e.nextSibling),e===null))return null;return e}function ds(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function kp(e,t){var l=e.ownerDocument;if(e.data!=="$?"||l.readyState==="complete")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Ut(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==="F!"||t==="F")break;if(t==="/$")return null}}return e}var gs=null;function dd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"){if(t===0)return e;t--}else l==="/$"&&t++}e=e.previousSibling}return null}function gd(e,t,l){switch(t=Vi(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function On(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);br(e)}var zt=new Map,hd=new Set;function Qi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var il=Y.d;Y.d={f:Op,r:Rp,D:Dp,C:zp,L:Mp,m:Lp,X:Bp,S:Up,M:Hp};function Op(){var e=il.f(),t=Ui();return e||t}function Rp(e){var t=na(e);t!==null&&t.tag===5&&t.type==="form"?Dc(t):il.r(e)}var Ba=typeof document>"u"?null:document;function pd(e,t,l){var a=Ba;if(a&&typeof t=="string"&&t){var n=_t(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),hd.has(n)||(hd.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),lt(t,"link",e),Ke(t),a.head.appendChild(t)))}}function Dp(e){il.D(e),pd("dns-prefetch",e,null)}function zp(e,t){il.C(e,t),pd("preconnect",e,t)}function Mp(e,t,l){il.L(e,t,l);var a=Ba;if(a&&e&&t){var n='link[rel="preload"][as="'+_t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+_t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+_t(l.imageSizes)+'"]')):n+='[href="'+_t(e)+'"]';var i=n;switch(t){case"style":i=Ha(e);break;case"script":i=qa(e)}zt.has(i)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),zt.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Rn(i))||t==="script"&&a.querySelector(Dn(i))||(t=a.createElement("link"),lt(t,"link",e),Ke(t),a.head.appendChild(t)))}}function Lp(e,t){il.m(e,t);var l=Ba;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+_t(a)+'"][href="'+_t(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=qa(e)}if(!zt.has(i)&&(e=v({rel:"modulepreload",href:e},t),zt.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Dn(i)))return}a=l.createElement("link"),lt(a,"link",e),Ke(a),l.head.appendChild(a)}}}function Up(e,t,l){il.S(e,t,l);var a=Ba;if(a&&e){var n=ia(a).hoistableStyles,i=Ha(e);t=t||"default";var s=n.get(i);if(!s){var d={loading:0,preload:null};if(s=a.querySelector(Rn(i)))d.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=zt.get(i))&&hs(e,l);var S=s=a.createElement("link");Ke(S),lt(S,"link",e),S._p=new Promise(function(D,G){S.onload=D,S.onerror=G}),S.addEventListener("load",function(){d.loading|=1}),S.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Fi(s,t,a)}s={type:"stylesheet",instance:s,count:1,state:d},n.set(i,s)}}}function Bp(e,t){il.X(e,t);var l=Ba;if(l&&e){var a=ia(l).hoistableScripts,n=qa(e),i=a.get(n);i||(i=l.querySelector(Dn(n)),i||(e=v({src:e,async:!0},t),(t=zt.get(n))&&ps(e,t),i=l.createElement("script"),Ke(i),lt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Hp(e,t){il.M(e,t);var l=Ba;if(l&&e){var a=ia(l).hoistableScripts,n=qa(e),i=a.get(n);i||(i=l.querySelector(Dn(n)),i||(e=v({src:e,async:!0,type:"module"},t),(t=zt.get(n))&&ps(e,t),i=l.createElement("script"),Ke(i),lt(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function bd(e,t,l,a){var n=(n=ne.current)?Qi(n):null;if(!n)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ha(l.href),l=ia(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ha(l.href);var i=ia(n).hoistableStyles,s=i.get(e);if(s||(n=n.ownerDocument||n,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,s),(i=n.querySelector(Rn(e)))&&!i._p&&(s.instance=i,s.state.loading=5),zt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},zt.set(e,l),i||qp(n,e,l,s.state))),t&&a===null)throw Error(o(528,""));return s}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=qa(l),l=ia(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Ha(e){return'href="'+_t(e)+'"'}function Rn(e){return'link[rel="stylesheet"]['+e+"]"}function yd(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function qp(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),lt(t,"link",l),Ke(t),e.head.appendChild(t))}function qa(e){return'[src="'+_t(e)+'"]'}function Dn(e){return"script[async]"+e}function md(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+_t(l.href)+'"]');if(a)return t.instance=a,Ke(a),a;var n=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ke(a),lt(a,"style",n),Fi(a,l.precedence,e),t.instance=a;case"stylesheet":n=Ha(l.href);var i=e.querySelector(Rn(n));if(i)return t.state.loading|=4,t.instance=i,Ke(i),i;a=yd(l),(n=zt.get(n))&&hs(a,n),i=(e.ownerDocument||e).createElement("link"),Ke(i);var s=i;return s._p=new Promise(function(d,S){s.onload=d,s.onerror=S}),lt(i,"link",a),t.state.loading|=4,Fi(i,l.precedence,e),t.instance=i;case"script":return i=qa(l.src),(n=e.querySelector(Dn(i)))?(t.instance=n,Ke(n),n):(a=l,(n=zt.get(i))&&(a=v({},l),ps(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ke(n),lt(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Fi(a,l.precedence,e));return t.instance}function Fi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,s=0;s<a.length;s++){var d=a[s];if(d.dataset.precedence===t)i=d;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function hs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ps(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $i=null;function vd(e,t,l){if($i===null){var a=new Map,n=$i=new Map;n.set(l,a)}else n=$i,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var i=l[n];if(!(i[Va]||i[at]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var s=i.getAttribute(t)||"";s=e+s;var d=a.get(s);d?d.push(i):a.set(s,[i])}}return a}function xd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Gp(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Sd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var zn=null;function Yp(){}function Zp(e,t,l){if(zn===null)throw Error(o(475));var a=zn;if(t.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var n=Ha(l.href),i=e.querySelector(Rn(n));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=Ki.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=i,Ke(i);return}i=e.ownerDocument||e,l=yd(l),(n=zt.get(n))&&hs(l,n),i=i.createElement("link"),Ke(i);var s=i;s._p=new Promise(function(d,S){s.onload=d,s.onerror=S}),lt(i,"link",l),t.instance=i}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(a.count++,t=Ki.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function Xp(){if(zn===null)throw Error(o(475));var e=zn;return e.stylesheets&&e.count===0&&bs(e,e.stylesheets),0<e.count?function(t){var l=setTimeout(function(){if(e.stylesheets&&bs(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(l)}}:null}function Ki(){if(this.count--,this.count===0){if(this.stylesheets)bs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ii=null;function bs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ii=new Map,t.forEach(Vp,e),Ii=null,Ki.call(e))}function Vp(e,t){if(!(t.state.loading&4)){var l=Ii.get(e);if(l)var a=l.get(null);else{l=new Map,Ii.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var s=n[i];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(l.set(s.dataset.precedence,s),a=s)}a&&l.set(null,a)}n=t.instance,s=n.getAttribute("data-precedence"),i=l.get(s)||a,i===a&&l.set(null,n),l.set(s,n),this.count++,a=Ki.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Mn={$$typeof:H,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function Qp(e,t,l,a,n,i,s,d){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=dr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dr(0),this.hiddenUpdates=dr(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=d,this.incompleteTransitions=new Map}function Ed(e,t,l,a,n,i,s,d,S,D,G,V){return e=new Qp(e,t,l,s,d,S,D,V),t=1,i===!0&&(t|=24),i=bt(3,null,null,t),e.current=i,i.stateNode=e,t=Jr(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},tu(i),e}function Nd(e){return e?(e=ya,e):ya}function Ad(e,t,l,a,n,i){n=Nd(n),a.context===null?a.context=n:a.pendingContext=n,a=dl(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=gl(e,a,t),l!==null&&(St(l,e,t),fn(l,e,t))}function wd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ys(e,t){wd(e,t),(e=e.alternate)&&wd(e,t)}function Td(e){if(e.tag===13){var t=ba(e,67108864);t!==null&&St(t,e,67108864),ys(e,67108864)}}var Ji=!0;function Fp(e,t,l,a){var n=y.T;y.T=null;var i=Y.p;try{Y.p=2,ms(e,t,l,a)}finally{Y.p=i,y.T=n}}function $p(e,t,l,a){var n=y.T;y.T=null;var i=Y.p;try{Y.p=8,ms(e,t,l,a)}finally{Y.p=i,y.T=n}}function ms(e,t,l,a){if(Ji){var n=vs(a);if(n===null)is(e,t,a,Wi,l),jd(e,a);else if(Ip(n,e,t,l,a))a.stopPropagation();else if(jd(e,a),t&4&&-1<Kp.indexOf(e)){for(;n!==null;){var i=na(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var s=Ml(i.pendingLanes);if(s!==0){var d=i;for(d.pendingLanes|=2,d.entangledLanes|=2;s;){var S=1<<31-ht(s);d.entanglements[1]|=S,s&=~S}Yt(i),(je&6)===0&&(Mi=wt()+500,jn(0))}}break;case 13:d=ba(i,2),d!==null&&St(d,i,2),Ui(),ys(i,2)}if(i=vs(a),i===null&&is(e,t,a,Wi,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else is(e,t,a,null,l)}}function vs(e){return e=Ar(e),xs(e)}var Wi=null;function xs(e){if(Wi=null,e=aa(e),e!==null){var t=g(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=N(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Wi=e,null}function _d(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(fr()){case Xn:return 2;case de:return 8;case we:case Le:return 32;case Pe:return 268435456;default:return 32}default:return 32}}var Ss=!1,Tl=null,_l=null,jl=null,Ln=new Map,Un=new Map,Cl=[],Kp="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 jd(e,t){switch(e){case"focusin":case"focusout":Tl=null;break;case"dragenter":case"dragleave":_l=null;break;case"mouseover":case"mouseout":jl=null;break;case"pointerover":case"pointerout":Ln.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Un.delete(t.pointerId)}}function Bn(e,t,l,a,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},t!==null&&(t=na(t),t!==null&&Td(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Ip(e,t,l,a,n){switch(t){case"focusin":return Tl=Bn(Tl,e,t,l,a,n),!0;case"dragenter":return _l=Bn(_l,e,t,l,a,n),!0;case"mouseover":return jl=Bn(jl,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return Ln.set(i,Bn(Ln.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,Un.set(i,Bn(Un.get(i)||null,e,t,l,a,n)),!0}return!1}function Cd(e){var t=aa(e.target);if(t!==null){var l=g(t);if(l!==null){if(t=l.tag,t===13){if(t=N(l),t!==null){e.blockedOn=t,Zg(e.priority,function(){if(l.tag===13){var a=xt();a=gr(a);var n=ba(l,a);n!==null&&St(n,l,a),ys(l,a)}});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Pi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=vs(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Nr=a,l.target.dispatchEvent(a),Nr=null}else return t=na(l),t!==null&&Td(t),e.blockedOn=l,!1;t.shift()}return!0}function kd(e,t,l){Pi(e)&&l.delete(t)}function Jp(){Ss=!1,Tl!==null&&Pi(Tl)&&(Tl=null),_l!==null&&Pi(_l)&&(_l=null),jl!==null&&Pi(jl)&&(jl=null),Ln.forEach(kd),Un.forEach(kd)}function er(e,t){e.blockedOn===t&&(e.blockedOn=null,Ss||(Ss=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Jp)))}var tr=null;function Od(e){tr!==e&&(tr=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){tr===e&&(tr=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(xs(a||l)===null)continue;break}var i=na(l);i!==null&&(e.splice(t,3),t-=3,xu(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Hn(e){function t(S){return er(S,e)}Tl!==null&&er(Tl,e),_l!==null&&er(_l,e),jl!==null&&er(jl,e),Ln.forEach(t),Un.forEach(t);for(var l=0;l<Cl.length;l++){var a=Cl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Cl.length&&(l=Cl[0],l.blockedOn===null);)Cd(l),l.blockedOn===null&&Cl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],s=n[ut]||null;if(typeof i=="function")s||Od(l);else if(s){var d=null;if(i&&i.hasAttribute("formAction")){if(n=i,s=i[ut]||null)d=s.formAction;else if(xs(n)!==null)continue}else d=s.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),Od(l)}}}function Es(e){this._internalRoot=e}lr.prototype.render=Es.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=xt();Ad(l,a,e,t,null,null)},lr.prototype.unmount=Es.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ad(e.current,2,null,e,null,null),Ui(),t[la]=null}};function lr(e){this._internalRoot=e}lr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qs();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Cl.length&&t!==0&&t<Cl[l].priority;l++);Cl.splice(l,0,e),l===0&&Cd(e)}};var Rd=c.version;if(Rd!=="19.1.0")throw Error(o(527,Rd,"19.1.0"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=x(t),e=e!==null?h(e):null,e=e===null?null:e.stateNode,e};var Wp={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:y,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ar=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ar.isDisabled&&ar.supportsFiber)try{zl=ar.inject(Wp),gt=ar}catch{}}return Gn.createRoot=function(e,t){if(!p(e))throw Error(o(299));var l=!1,a="",n=Fc,i=$c,s=Kc,d=null;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(d=t.unstable_transitionCallbacks)),t=Ed(e,1,!1,null,null,l,a,n,i,s,d,null),e[la]=t.current,ns(e),new Es(t)},Gn.hydrateRoot=function(e,t,l){if(!p(e))throw Error(o(299));var a=!1,n="",i=Fc,s=$c,d=Kc,S=null,D=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(s=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(S=l.unstable_transitionCallbacks),l.formState!==void 0&&(D=l.formState)),t=Ed(e,1,!0,t,l??null,a,n,i,s,d,S,D),t.context=Nd(null),l=t.current,a=xt(),a=gr(a),n=dl(a),n.callback=null,gl(l,n,a),l=a,t.current.lanes=l,Xa(t,l),Yt(t),e[la]=t.current,ns(e),new lr(t)},Gn.version="19.1.0",Gn}var Yd;function sb(){if(Yd)return ws.exports;Yd=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(c){console.error(c)}}return r(),ws.exports=ub(),ws.exports}var ob=sb();const cb=ig(ob),rg=["shift","alt","meta","mod","ctrl","control"],fb={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 Rl(r){return(fb[r.trim()]||r.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function ug(r){return rg.includes(r)}function Cs(r,c=","){return r.toLowerCase().split(c)}function ks(r,c="+",f=">",o=!1,p){let g=[],N=!1;r.includes(f)?(N=!0,g=r.toLocaleLowerCase().split(f).map(h=>Rl(h))):g=r.toLocaleLowerCase().split(c).map(h=>Rl(h));const j={alt:g.includes("alt"),ctrl:g.includes("ctrl")||g.includes("control"),shift:g.includes("shift"),meta:g.includes("meta"),mod:g.includes("mod"),useKey:o},x=g.filter(h=>!rg.includes(h));return{...j,keys:x,description:p,isSequence:N}}typeof document<"u"&&(document.addEventListener("keydown",r=>{r.code!==void 0&&sg([Rl(r.code)])}),document.addEventListener("keyup",r=>{r.code!==void 0&&og([Rl(r.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{rl.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{rl.clear()},0)}));const rl=new Set;function Ls(r){return Array.isArray(r)}function db(r,c=","){return(Ls(r)?r:r.split(c)).every(f=>rl.has(f.trim().toLowerCase()))}function sg(r){const c=Array.isArray(r)?r:[r];rl.has("meta")&&rl.forEach(f=>!ug(f)&&rl.delete(f.toLowerCase())),c.forEach(f=>rl.add(f.toLowerCase()))}function og(r){const c=Array.isArray(r)?r:[r];r==="meta"?rl.clear():c.forEach(f=>rl.delete(f.toLowerCase()))}function gb(r,c,f){(typeof f=="function"&&f(r,c)||f===!0)&&r.preventDefault()}function hb(r,c,f){return typeof f=="function"?f(r,c):f===!0||f===void 0}function pb(r){return cg(r,["input","textarea","select"])}function cg(r,c=!1){const{target:f,composed:o}=r;let p;return bb(f)&&o?p=r.composedPath()[0]&&r.composedPath()[0].tagName:p=f&&f.tagName,Ls(c)?!!(p&&c&&c.some(g=>g.toLowerCase()===p.toLowerCase())):!!(p&&c&&c)}function bb(r){return!!r.tagName&&!r.tagName.startsWith("-")&&r.tagName.includes("-")}function yb(r,c){return r.length===0&&c?(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):c?r.some(f=>c.includes(f))||r.includes("*"):!0}const mb=(r,c,f=!1)=>{const{alt:o,meta:p,mod:g,shift:N,ctrl:j,keys:x,useKey:h}=c,{code:v,key:b,ctrlKey:k,metaKey:q,shiftKey:E,altKey:A}=r,C=Rl(v);if(h&&x?.length===1&&x.includes(b))return!0;if(!(x!=null&&x.includes(C))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(C))return!1;if(!f){if(o!==A&&C!=="alt"||N!==E&&C!=="shift")return!1;if(g){if(!q&&!k)return!1}else if(p!==q&&C!=="meta"&&C!=="os"||j!==k&&C!=="ctrl"&&C!=="control")return!1}return x&&x.length===1&&x.includes(C)?!0:x?db(x):!x},fg=B.createContext(void 0),vb=()=>B.useContext(fg);function xb({addHotkey:r,removeHotkey:c,children:f}){return u.jsx(fg.Provider,{value:{addHotkey:r,removeHotkey:c},children:f})}function Us(r,c){return r&&c&&typeof r=="object"&&typeof c=="object"?Object.keys(r).length===Object.keys(c).length&&Object.keys(r).reduce((f,o)=>f&&Us(r[o],c[o]),!0):r===c}const dg=B.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),ur=()=>B.useContext(dg),Sb=({initiallyActiveScopes:r=["*"],children:c})=>{const[f,o]=B.useState(r),[p,g]=B.useState([]),N=B.useCallback(b=>{o(k=>k.includes("*")?[b]:Array.from(new Set([...k,b])))},[]),j=B.useCallback(b=>{o(k=>k.filter(q=>q!==b))},[]),x=B.useCallback(b=>{o(k=>k.includes(b)?k.filter(q=>q!==b):k.includes("*")?[b]:Array.from(new Set([...k,b])))},[]),h=B.useCallback(b=>{g(k=>[...k,b])},[]),v=B.useCallback(b=>{g(k=>k.filter(q=>!Us(q,b)))},[]);return u.jsx(dg.Provider,{value:{activeScopes:f,hotkeys:p,enableScope:N,disableScope:j,toggleScope:x},children:u.jsx(xb,{addHotkey:h,removeHotkey:v,children:c})})};function Eb(r){const c=B.useRef(void 0);return Us(c.current,r)||(c.current=r),c.current}const Zd=r=>{r.stopPropagation(),r.preventDefault(),r.stopImmediatePropagation()},Nb=typeof window<"u"?B.useLayoutEffect:B.useEffect;function De(r,c,f,o){const p=B.useRef(null),g=B.useRef(!1),N=f instanceof Array?o instanceof Array?void 0:o:f,j=Ls(r)?r.join(N?.delimiter):r,x=f instanceof Array?f:o instanceof Array?o:void 0,h=B.useCallback(c,x??[]),v=B.useRef(h);x?v.current=h:v.current=c;const b=Eb(N),{activeScopes:k}=ur(),q=vb();return Nb(()=>{if(b?.enabled===!1||!yb(k,b?.scopes))return;let E=[],A;const C=(U,Q=!1)=>{var P;if(!(pb(U)&&!cg(U,b?.enableOnFormTags))){if(p.current!==null){const W=p.current.getRootNode();if((W instanceof Document||W instanceof ShadowRoot)&&W.activeElement!==p.current&&!p.current.contains(W.activeElement)){Zd(U);return}}(P=U.target)!=null&&P.isContentEditable&&!(b!=null&&b.enableOnContentEditable)||Cs(j,b?.delimiter).forEach(W=>{var oe,be,pe,ie;if(W.includes(b?.splitKey??"+")&&W.includes(b?.sequenceSplitKey??">")){console.warn(`Hotkey ${W} contains both ${b?.splitKey??"+"} and ${b?.sequenceSplitKey??">"} which is not supported.`);return}const $=ks(W,b?.splitKey,b?.sequenceSplitKey,b?.useKey,b?.description);if($.isSequence){A=setTimeout(()=>{E=[]},b?.sequenceTimeoutMs??1e3);const me=$.useKey?U.key:Rl(U.code);if(ug(me.toLowerCase()))return;E.push(me);const re=(oe=$.keys)==null?void 0:oe[E.length-1];if(me!==re){E=[],A&&clearTimeout(A);return}E.length===((be=$.keys)==null?void 0:be.length)&&(v.current(U,$),A&&clearTimeout(A),E=[])}else if(mb(U,$,b?.ignoreModifiers)||(pe=$.keys)!=null&&pe.includes("*")){if((ie=b?.ignoreEventWhen)!=null&&ie.call(b,U)||Q&&g.current)return;if(gb(U,$,b?.preventDefault),!hb(U,$,b?.enabled)){Zd(U);return}v.current(U,$),Q||(g.current=!0)}})}},T=U=>{U.code!==void 0&&(sg(Rl(U.code)),(b?.keydown===void 0&&b?.keyup!==!0||b!=null&&b.keydown)&&C(U))},w=U=>{U.code!==void 0&&(og(Rl(U.code)),g.current=!1,b!=null&&b.keyup&&C(U,!0))},H=p.current||N?.document||document;return H.addEventListener("keyup",w,N?.eventListenerOptions),H.addEventListener("keydown",T,N?.eventListenerOptions),q&&Cs(j,b?.delimiter).forEach(U=>q.addHotkey(ks(U,b?.splitKey,b?.sequenceSplitKey,b?.useKey,b?.description))),()=>{H.removeEventListener("keyup",w,N?.eventListenerOptions),H.removeEventListener("keydown",T,N?.eventListenerOptions),q&&Cs(j,b?.delimiter).forEach(U=>q.removeHotkey(ks(U,b?.splitKey,b?.sequenceSplitKey,b?.useKey,b?.description))),E=[],A&&clearTimeout(A)}},[j,b,k]),p}/**
|
|
50
|
+
* @license lucide-react v0.525.0 - ISC
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the ISC license.
|
|
53
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/const Ab=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),wb=r=>r.replace(/^([A-Z])|[\s-_]+(\w)/g,(c,f,o)=>o?o.toUpperCase():f.toLowerCase()),Xd=r=>{const c=wb(r);return c.charAt(0).toUpperCase()+c.slice(1)},gg=(...r)=>r.filter((c,f,o)=>!!c&&c.trim()!==""&&o.indexOf(c)===f).join(" ").trim(),Tb=r=>{for(const c in r)if(c.startsWith("aria-")||c==="role"||c==="title")return!0};/**
|
|
55
|
+
* @license lucide-react v0.525.0 - ISC
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the ISC license.
|
|
58
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/var _b={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
60
|
+
* @license lucide-react v0.525.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/const jb=B.forwardRef(({color:r="currentColor",size:c=24,strokeWidth:f=2,absoluteStrokeWidth:o,className:p="",children:g,iconNode:N,...j},x)=>B.createElement("svg",{ref:x,..._b,width:c,height:c,stroke:r,strokeWidth:o?Number(f)*24/Number(c):f,className:gg("lucide",p),...!g&&!Tb(j)&&{"aria-hidden":"true"},...j},[...N.map(([h,v])=>B.createElement(h,v)),...Array.isArray(g)?g:[g]]));/**
|
|
65
|
+
* @license lucide-react v0.525.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const Be=(r,c)=>{const f=B.forwardRef(({className:o,...p},g)=>B.createElement(jb,{ref:g,iconNode:c,className:gg(`lucide-${Ab(Xd(r))}`,`lucide-${r}`,o),...p}));return f.displayName=Xd(r),f};/**
|
|
70
|
+
* @license lucide-react v0.525.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/const Cb=[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]],kb=Be("align-left",Cb);/**
|
|
75
|
+
* @license lucide-react v0.525.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const Ob=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Yn=Be("check",Ob);/**
|
|
80
|
+
* @license lucide-react v0.525.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/const Rb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Bs=Be("chevron-down",Rb);/**
|
|
85
|
+
* @license lucide-react v0.525.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/const Db=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],hg=Be("chevron-right",Db);/**
|
|
90
|
+
* @license lucide-react v0.525.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const zb=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],Mb=Be("columns-2",zb);/**
|
|
95
|
+
* @license lucide-react v0.525.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const Lb=[["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"}]],pg=Be("copy",Lb);/**
|
|
100
|
+
* @license lucide-react v0.525.0 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const Ub=[["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"}]],Bb=Be("eraser",Ub);/**
|
|
105
|
+
* @license lucide-react v0.525.0 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/const Hb=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],bg=Be("file-diff",Hb);/**
|
|
110
|
+
* @license lucide-react v0.525.0 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/const qb=[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]],yg=Be("file-pen",qb);/**
|
|
115
|
+
* @license lucide-react v0.525.0 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const Gb=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],mg=Be("file-plus",Gb);/**
|
|
120
|
+
* @license lucide-react v0.525.0 - ISC
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the ISC license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/const Yb=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]],vg=Be("file-x",Yb);/**
|
|
125
|
+
* @license lucide-react v0.525.0 - ISC
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the ISC license.
|
|
128
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
+
*/const Zb=[["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"}]],Xb=Be("folder-open",Zb);/**
|
|
130
|
+
* @license lucide-react v0.525.0 - ISC
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the ISC license.
|
|
133
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/const Vb=[["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"}]],Qb=Be("folder",Vb);/**
|
|
135
|
+
* @license lucide-react v0.525.0 - ISC
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the ISC license.
|
|
138
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/const Fb=[["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"}]],$b=Be("keyboard",Fb);/**
|
|
140
|
+
* @license lucide-react v0.525.0 - ISC
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the ISC license.
|
|
143
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
+
*/const Kb=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],Ib=Be("list",Kb);/**
|
|
145
|
+
* @license lucide-react v0.525.0 - ISC
|
|
146
|
+
*
|
|
147
|
+
* This source code is licensed under the ISC license.
|
|
148
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
+
*/const Jb=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],xg=Be("message-square",Jb);/**
|
|
150
|
+
* @license lucide-react v0.525.0 - ISC
|
|
151
|
+
*
|
|
152
|
+
* This source code is licensed under the ISC license.
|
|
153
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
+
*/const Wb=[["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"}]],Pb=Be("panel-left-close",Wb);/**
|
|
155
|
+
* @license lucide-react v0.525.0 - ISC
|
|
156
|
+
*
|
|
157
|
+
* This source code is licensed under the ISC license.
|
|
158
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
+
*/const ey=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],ty=Be("panel-left",ey);/**
|
|
160
|
+
* @license lucide-react v0.525.0 - ISC
|
|
161
|
+
*
|
|
162
|
+
* This source code is licensed under the ISC license.
|
|
163
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
+
*/const ly=[["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"}]],ay=Be("pen",ly);/**
|
|
165
|
+
* @license lucide-react v0.525.0 - ISC
|
|
166
|
+
*
|
|
167
|
+
* This source code is licensed under the ISC license.
|
|
168
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
+
*/const ny=[["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"}]],iy=Be("refresh-cw",ny);/**
|
|
170
|
+
* @license lucide-react v0.525.0 - ISC
|
|
171
|
+
*
|
|
172
|
+
* This source code is licensed under the ISC license.
|
|
173
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
+
*/const ry=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],uy=Be("search",ry);/**
|
|
175
|
+
* @license lucide-react v0.525.0 - ISC
|
|
176
|
+
*
|
|
177
|
+
* This source code is licensed under the ISC license.
|
|
178
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
+
*/const sy=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Sg=Be("settings",sy);/**
|
|
180
|
+
* @license lucide-react v0.525.0 - ISC
|
|
181
|
+
*
|
|
182
|
+
* This source code is licensed under the ISC license.
|
|
183
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
+
*/const oy=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],cy=Be("square",oy);/**
|
|
185
|
+
* @license lucide-react v0.525.0 - ISC
|
|
186
|
+
*
|
|
187
|
+
* This source code is licensed under the ISC license.
|
|
188
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
+
*/const fy=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Hs=Be("x",fy);function Eg({checked:r,onChange:c,label:f,className:o="",title:p}){const g=j=>{j.stopPropagation(),c(!r)},N=j=>{(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),j.stopPropagation(),c(!r))};return u.jsxs("div",{className:`flex items-center gap-2 text-xs text-github-text-primary cursor-pointer ${o}`,title:p,onClick:g,onKeyDown:N,role:"checkbox","aria-checked":r,tabIndex:0,children:[u.jsx("div",{className:`w-4 h-4 rounded border flex items-center justify-center transition-all duration-200 cursor-pointer ${r?"bg-github-accent border-github-accent":"bg-github-bg-tertiary border-github-text-muted hover:border-github-accent/50"}`,children:r&&u.jsx(Yn,{size:10,className:"text-white"})}),f&&u.jsx("span",{className:"select-none",children:f})]})}function dy({commentsCount:r,isCopiedAll:c,onCopyAll:f,onDeleteAll:o,onViewAll:p}){const[g,N]=B.useState(!1),j=B.useRef(null);B.useEffect(()=>{const b=k=>{j.current&&!j.current.contains(k.target)&&N(!1)};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[]);const x=()=>{f(),N(!1)},h=()=>{o(),N(!1)},v=()=>{p?.(),N(!1)};return u.jsxs("div",{className:"relative",ref:j,children:[u.jsxs("div",{className:"flex",children:[u.jsxs("button",{onClick:x,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:b=>{b.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",b.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:b=>{b.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",b.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:`Copy all ${r} comments to AI coding agent`,children:[c?u.jsx(Yn,{size:12}):u.jsx(pg,{size:12}),c?"Copied All!":`Copy All Prompt (${r})`]}),u.jsx("button",{onClick:()=>N(!g),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:b=>{b.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",b.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:b=>{b.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",b.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:"More options",children:u.jsx(Bs,{size:12,className:`transition-transform duration-200 ${g?"rotate-180":""}`})})]}),g&&u.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:[p&&u.jsxs("button",{onClick:v,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:r===0,children:[u.jsx(Ib,{size:12}),"View All Comments"]}),u.jsxs("button",{onClick:h,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:[u.jsx(Bb,{size:12}),"Cleanup All Prompt"]})]})]})}function qs({comment:r,onGeneratePrompt:c,onRemoveComment:f,onUpdateComment:o,onClick:p}){const[g,N]=B.useState(!1),[j,x]=B.useState(!1),[h,v]=B.useState(r.body),b=async T=>{T.stopPropagation();try{const w=c(r);await navigator.clipboard.writeText(w),N(!0),setTimeout(()=>N(!1),2e3)}catch(w){console.error("Failed to copy prompt:",w)}},k=T=>{T.stopPropagation(),x(!0),v(r.body)},q=()=>{x(!1),v(r.body)},E=T=>{T?.stopPropagation(),h.trim()!==r.body&&o(r.id,h.trim()),x(!1)},A=T=>{T.stopPropagation(),f(r.id)},C=T=>{T.key==="Enter"&&(T.metaKey||T.ctrlKey)?(T.preventDefault(),E()):T.key==="Escape"&&(T.preventDefault(),q())};return De("escape",()=>{j&&q()},{enableOnFormTags:["textarea"],enabled:j},[j]),De("mod+enter",()=>{j&&E()},{enableOnFormTags:["textarea"],enabled:j},[j,h,r.body]),u.jsxs("div",{id:`comment-${r.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 ${p?"hover:shadow-md cursor-pointer":""}`,onClick:p,children:[u.jsxs("div",{className:"flex items-center justify-between mb-2 gap-3",children:[u.jsx("div",{className:"flex items-center gap-2 text-xs text-github-text-secondary flex-1 min-w-0",children:u.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:[r.file,":",Array.isArray(r.line)?`${r.line[0]}-${r.line[1]}`:r.line]})}),u.jsx("div",{className:"flex items-center gap-2",children:!j&&u.jsxs(u.Fragment,{children:[u.jsx("button",{onClick:b,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:T=>{T.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",T.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:T=>{T.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",T.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},title:"Copy prompt for AI coding agent",children:g?"Copied!":"Copy Prompt"}),u.jsx("button",{onClick:k,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:u.jsx(ay,{size:12})}),u.jsx("button",{onClick:A,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:u.jsx(Yn,{size:12})})]})})]}),j?u.jsxs("div",{children:[u.jsx("textarea",{value:h,onChange:T=>v(T.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,h.split(`
|
|
190
|
+
`).length),placeholder:"Edit your comment...",autoFocus:!0,onClick:T=>T.stopPropagation(),onKeyDown:T=>{T.stopPropagation(),C(T)}}),u.jsxs("div",{className:"flex gap-2 justify-end mt-2",children:[u.jsx("button",{type:"button",onClick:q,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"}),u.jsx("button",{type:"button",onClick:E,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:T=>{T.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",T.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:T=>{T.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",T.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},disabled:!h.trim(),children:"Submit"})]})]}):u.jsx("div",{className:"text-github-text-primary text-sm leading-6 whitespace-pre-wrap",children:r.body})]})}function gy({isOpen:r,onClose:c,onNavigate:f,comments:o,onRemoveComment:p,onGeneratePrompt:g,onUpdateComment:N}){const[j,x]=B.useState(0),h=B.useRef([]),{enableScope:v,disableScope:b}=ur(),k=[...o].sort((C,T)=>{const w=C.file.localeCompare(T.file);if(w!==0)return w;const H=Array.isArray(C.line)?C.line[0]:C.line,U=Array.isArray(T.line)?T.line[0]:T.line;return H-U}),q=B.useCallback(C=>{f(C),c()},[f,c]),E=B.useCallback(C=>{confirm(`Delete this comment?
|
|
191
|
+
|
|
192
|
+
"${C.body}"`)&&(p(C.id),j>=k.length-1&&j>0&&x(j-1))},[p,j,k.length]);B.useEffect(()=>(r?(v("comments-list"),b("navigation")):(v("navigation"),b("comments-list"),x(0)),()=>{v("navigation"),b("comments-list")}),[r,v,b]);const A={scopes:"comments-list",enableOnFormTags:!1};return De("escape",()=>c(),A,[c]),De("j, down",()=>x(C=>Math.min(C+1,k.length-1)),A,[k.length]),De("k, up",()=>x(C=>Math.max(C-1,0)),A,[]),De("enter",()=>{k[j]&&q(k[j])},A,[j,k,q]),De("d",()=>{k[j]&&E(k[j])},A,[j,k,E]),B.useEffect(()=>{h.current[j]&&h.current[j]?.scrollIntoView({behavior:"smooth",block:"nearest"})},[j]),r?u.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[u.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:c}),u.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:[u.jsxs("div",{className:"sticky top-0 bg-github-bg-primary border-b border-github-border px-6 py-4",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"All Comments"}),u.jsx("button",{onClick:c,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close comments list",children:u.jsx(Hs,{size:20})})]}),u.jsxs("div",{className:"text-xs text-github-text-secondary",children:[u.jsx("span",{className:"font-mono",children:"j/k"})," or ",u.jsx("span",{className:"font-mono",children:"↑/↓"})," to navigate • ",u.jsx("span",{className:"font-mono",children:"Enter"})," to jump •"," ",u.jsx("span",{className:"font-mono",children:"d"})," to delete • ",u.jsx("span",{className:"font-mono",children:"Esc"})," ","to close"]})]}),u.jsx("div",{className:"overflow-y-auto max-h-[calc(80vh-120px)]",children:u.jsx("div",{className:"p-6",children:k.length===0?u.jsx("p",{className:"text-github-text-secondary text-center",children:"No comments yet"}):u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"space-y-2",children:k.map((C,T)=>u.jsx("div",{ref:w=>{h.current[T]=w},className:`${j===T?"ring-2 ring-blue-500 rounded":""}`,children:u.jsx(qs,{comment:C,onGeneratePrompt:g,onRemoveComment:p,onUpdateComment:N,onClick:w=>{w.stopPropagation(),x(T),q(C)}})},C.id))}),k.length>0&&u.jsxs("div",{className:"mt-4 pt-4 border-t border-github-border text-xs text-github-text-secondary text-center",children:[j+1," of ",k.length," comments"]})]})})})]})]}):null}function Ng(r){return r&&r.split(".").pop()?.toLowerCase()||null}function hy(r){return r&&r.split("/").pop()||""}const py=["jpg","jpeg","png","gif","bmp","svg","webp","ico","tiff","tif","avif","heic","heif"];function by(r){if(!r)return!1;const c=Ng(r);return c?py.includes(c):!1}function Ag({onSubmit:r,onCancel:c}){const[f,o]=B.useState(""),[p,g]=B.useState(!1),N=async x=>{if(x.preventDefault(),!!f.trim()){g(!0);try{await r(f.trim()),o("")}catch(h){console.error("Failed to submit comment:",h)}finally{g(!1)}}},j=x=>{x.key==="Enter"&&(x.metaKey||x.ctrlKey)?N(x):x.key==="Escape"&&c()};return u.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:N,"data-empty":!f.trim(),children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsx("span",{className:"text-sm font-medium",style:{color:"var(--color-yellow-path-text)"},children:"Add a comment"}),u.jsx("span",{className:"text-xs text-github-text-muted",children:"Cmd+Enter to submit • Escape to cancel"})]}),u.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:f,onChange:x=>o(x.target.value),onKeyDown:j,placeholder:"Leave a comment...",rows:3,autoFocus:!0,disabled:p}),u.jsxs("div",{className:"flex gap-2 justify-end",children:[u.jsx("button",{type:"button",onClick:c,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:p,children:"Cancel"}),u.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:x=>{x.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",x.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:x=>{x.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",x.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},disabled:!f.trim()||p,children:p?"Submitting...":"Submit"})]})]})}const ir=Pl.memo(({onMouseDown:r,onMouseUp:c,title:f="Add a comment"})=>u.jsx("button",{className:"absolute -right-2 top-1/2 -translate-y-1/2 w-7 h-7 flex items-center justify-center rounded transition-all duration-150 hover:scale-110 z-10","data-comment-button":"true",style:{backgroundColor:"var(--color-yellow-btn-bg)",color:"var(--color-yellow-btn-text)",border:"1px solid var(--color-yellow-btn-border)"},onMouseEnter:o=>{o.currentTarget.style.backgroundColor="var(--color-yellow-btn-hover-bg)",o.currentTarget.style.borderColor="var(--color-yellow-btn-hover-border)"},onMouseLeave:o=>{o.currentTarget.style.backgroundColor="var(--color-yellow-btn-bg)",o.currentTarget.style.borderColor="var(--color-yellow-btn-border)"},onMouseDown:r,onMouseUp:c,title:f,children:u.jsx(xg,{className:"w-4 h-4"})}));ir.displayName="CommentButton";const yy=2,my=100;function vy(r){return!(r.length<yy||r.length>my)}function Vd(r){return r.toLowerCase()}function Qd(r){const c=r.trim();return c?c.match(/^\w+$/)!==null&&vy(c):!1}const xy=200,wg=B.createContext(void 0);function Sy({children:r}){const[c,f]=B.useState(null),o=B.useRef(null),p=B.useCallback(()=>{o.current&&(clearTimeout(o.current),o.current=null)},[]),g=B.useCallback(h=>{const v=h.target;if(!v.classList.contains("word-token"))return;p();const b=v.getAttribute("data-word");b&&(o.current=setTimeout(()=>{f(b)},xy))},[p]),N=B.useCallback(()=>{p(),f(null)},[p]),j=B.useCallback(h=>c?Vd(h)===Vd(c):!1,[c]);B.useEffect(()=>()=>{o.current&&clearTimeout(o.current)},[]);const x={highlightedWord:c,handleMouseOver:g,handleMouseOut:N,isWordHighlighted:j};return u.jsx(wg.Provider,{value:x,children:r})}function Ey(){const r=B.useContext(wg);if(!r)throw new Error("useWordHighlight must be used within a WordHighlightProvider");return r}function Tg(r){var c,f,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r)){var p=r.length;for(c=0;c<p;c++)r[c]&&(f=Tg(r[c]))&&(o&&(o+=" "),o+=f)}else for(f in r)r[f]&&(o&&(o+=" "),o+=f);return o}function _g(){for(var r,c,f=0,o="",p=arguments.length;f<p;f++)(r=arguments[f])&&(c=Tg(r))&&(o&&(o+=" "),o+=c);return o}var Ny=Object.create,sr=Object.defineProperty,Ay=Object.defineProperties,wy=Object.getOwnPropertyDescriptor,Ty=Object.getOwnPropertyDescriptors,jg=Object.getOwnPropertyNames,rr=Object.getOwnPropertySymbols,_y=Object.getPrototypeOf,Gs=Object.prototype.hasOwnProperty,Cg=Object.prototype.propertyIsEnumerable,Fd=(r,c,f)=>c in r?sr(r,c,{enumerable:!0,configurable:!0,writable:!0,value:f}):r[c]=f,Zt=(r,c)=>{for(var f in c||(c={}))Gs.call(c,f)&&Fd(r,f,c[f]);if(rr)for(var f of rr(c))Cg.call(c,f)&&Fd(r,f,c[f]);return r},or=(r,c)=>Ay(r,Ty(c)),kg=(r,c)=>{var f={};for(var o in r)Gs.call(r,o)&&c.indexOf(o)<0&&(f[o]=r[o]);if(r!=null&&rr)for(var o of rr(r))c.indexOf(o)<0&&Cg.call(r,o)&&(f[o]=r[o]);return f},jy=(r,c)=>function(){return c||(0,r[jg(r)[0]])((c={exports:{}}).exports,c),c.exports},Cy=(r,c)=>{for(var f in c)sr(r,f,{get:c[f],enumerable:!0})},ky=(r,c,f,o)=>{if(c&&typeof c=="object"||typeof c=="function")for(let p of jg(c))!Gs.call(r,p)&&p!==f&&sr(r,p,{get:()=>c[p],enumerable:!(o=wy(c,p))||o.enumerable});return r},Oy=(r,c,f)=>(f=r!=null?Ny(_y(r)):{},ky(!r||!r.__esModule?sr(f,"default",{value:r,enumerable:!0}):f,r)),Ry=jy({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(r,c){var f=function(){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,p=0,g={},N={util:{encode:function E(A){return A instanceof j?new j(A.type,E(A.content),A.alias):Array.isArray(A)?A.map(E):A.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(E){return Object.prototype.toString.call(E).slice(8,-1)},objId:function(E){return E.__id||Object.defineProperty(E,"__id",{value:++p}),E.__id},clone:function E(A,C){C=C||{};var T,w;switch(N.util.type(A)){case"Object":if(w=N.util.objId(A),C[w])return C[w];T={},C[w]=T;for(var H in A)A.hasOwnProperty(H)&&(T[H]=E(A[H],C));return T;case"Array":return w=N.util.objId(A),C[w]?C[w]:(T=[],C[w]=T,A.forEach(function(U,Q){T[Q]=E(U,C)}),T);default:return A}},getLanguage:function(E){for(;E;){var A=o.exec(E.className);if(A)return A[1].toLowerCase();E=E.parentElement}return"none"},setLanguage:function(E,A){E.className=E.className.replace(RegExp(o,"gi"),""),E.classList.add("language-"+A)},isActive:function(E,A,C){for(var T="no-"+A;E;){var w=E.classList;if(w.contains(A))return!0;if(w.contains(T))return!1;E=E.parentElement}return!!C}},languages:{plain:g,plaintext:g,text:g,txt:g,extend:function(E,A){var C=N.util.clone(N.languages[E]);for(var T in A)C[T]=A[T];return C},insertBefore:function(E,A,C,T){T=T||N.languages;var w=T[E],H={};for(var U in w)if(w.hasOwnProperty(U)){if(U==A)for(var Q in C)C.hasOwnProperty(Q)&&(H[Q]=C[Q]);C.hasOwnProperty(U)||(H[U]=w[U])}var P=T[E];return T[E]=H,N.languages.DFS(N.languages,function(W,oe){oe===P&&W!=E&&(this[W]=H)}),H},DFS:function E(A,C,T,w){w=w||{};var H=N.util.objId;for(var U in A)if(A.hasOwnProperty(U)){C.call(A,U,A[U],T||U);var Q=A[U],P=N.util.type(Q);P==="Object"&&!w[H(Q)]?(w[H(Q)]=!0,E(Q,C,null,w)):P==="Array"&&!w[H(Q)]&&(w[H(Q)]=!0,E(Q,C,U,w))}}},plugins:{},highlight:function(E,A,C){var T={code:E,grammar:A,language:C};if(N.hooks.run("before-tokenize",T),!T.grammar)throw new Error('The language "'+T.language+'" has no grammar.');return T.tokens=N.tokenize(T.code,T.grammar),N.hooks.run("after-tokenize",T),j.stringify(N.util.encode(T.tokens),T.language)},tokenize:function(E,A){var C=A.rest;if(C){for(var T in C)A[T]=C[T];delete A.rest}var w=new v;return b(w,w.head,E),h(E,w,A,w.head,0),q(w)},hooks:{all:{},add:function(E,A){var C=N.hooks.all;C[E]=C[E]||[],C[E].push(A)},run:function(E,A){var C=N.hooks.all[E];if(!(!C||!C.length))for(var T=0,w;w=C[T++];)w(A)}},Token:j};function j(E,A,C,T){this.type=E,this.content=A,this.alias=C,this.length=(T||"").length|0}j.stringify=function E(A,C){if(typeof A=="string")return A;if(Array.isArray(A)){var T="";return A.forEach(function(P){T+=E(P,C)}),T}var w={type:A.type,content:E(A.content,C),tag:"span",classes:["token",A.type],attributes:{},language:C},H=A.alias;H&&(Array.isArray(H)?Array.prototype.push.apply(w.classes,H):w.classes.push(H)),N.hooks.run("wrap",w);var U="";for(var Q in w.attributes)U+=" "+Q+'="'+(w.attributes[Q]||"").replace(/"/g,""")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+U+">"+w.content+"</"+w.tag+">"};function x(E,A,C,T){E.lastIndex=A;var w=E.exec(C);if(w&&T&&w[1]){var H=w[1].length;w.index+=H,w[0]=w[0].slice(H)}return w}function h(E,A,C,T,w,H){for(var U in C)if(!(!C.hasOwnProperty(U)||!C[U])){var Q=C[U];Q=Array.isArray(Q)?Q:[Q];for(var P=0;P<Q.length;++P){if(H&&H.cause==U+","+P)return;var W=Q[P],oe=W.inside,be=!!W.lookbehind,pe=!!W.greedy,ie=W.alias;if(pe&&!W.pattern.global){var $=W.pattern.toString().match(/[imsuy]*$/)[0];W.pattern=RegExp(W.pattern.source,$+"g")}for(var me=W.pattern||W,re=T.next,J=w;re!==A.tail&&!(H&&J>=H.reach);J+=re.value.length,re=re.next){var y=re.value;if(A.length>E.length)return;if(!(y instanceof j)){var Y=1,F;if(pe){if(F=x(me,J,E,be),!F||F.index>=E.length)break;var K=F.index,ae=F.index+F[0].length,m=J;for(m+=re.value.length;K>=m;)re=re.next,m+=re.value.length;if(m-=re.value.length,J=m,re.value instanceof j)continue;for(var L=re;L!==A.tail&&(m<ae||typeof L.value=="string");L=L.next)Y++,m+=L.value.length;Y--,y=E.slice(J,m),F.index-=J}else if(F=x(me,0,y,be),!F)continue;var K=F.index,I=F[0],te=y.slice(0,K),ge=y.slice(K+I.length),ne=J+y.length;H&&ne>H.reach&&(H.reach=ne);var ce=re.prev;te&&(ce=b(A,ce,te),J+=te.length),k(A,ce,Y);var ee=new j(U,oe?N.tokenize(I,oe):I,ie,I);if(re=b(A,ce,ee),ge&&b(A,re,ge),Y>1){var Ae={cause:U+","+P,reach:ne};h(E,A,C,re.prev,J,Ae),H&&Ae.reach>H.reach&&(H.reach=Ae.reach)}}}}}}function v(){var E={value:null,prev:null,next:null},A={value:null,prev:E,next:null};E.next=A,this.head=E,this.tail=A,this.length=0}function b(E,A,C){var T=A.next,w={value:C,prev:A,next:T};return A.next=w,T.prev=w,E.length++,w}function k(E,A,C){for(var T=A.next,w=0;w<C&&T!==E.tail;w++)T=T.next;A.next=T,T.prev=A,E.length-=w}function q(E){for(var A=[],C=E.head.next;C!==E.tail;)A.push(C.value),C=C.next;return A}return N}();c.exports=f,f.default=f}}),Z=Oy(Ry());Z.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]},Z.languages.markup.tag.inside["attr-value"].inside.entity=Z.languages.markup.entity,Z.languages.markup.doctype.inside["internal-subset"].inside=Z.languages.markup,Z.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(Z.languages.markup.tag,"addInlined",{value:function(r,o){var f={},f=(f["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Z.languages[o]},f.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:f}}),o=(f["language-"+o]={pattern:/[\s\S]+/,inside:Z.languages[o]},{});o[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:f},Z.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Z.languages.markup.tag,"addAttribute",{value:function(r,c){Z.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\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:[c,"language-"+c],inside:Z.languages[c]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Z.languages.html=Z.languages.markup,Z.languages.mathml=Z.languages.markup,Z.languages.svg=Z.languages.markup,Z.languages.xml=Z.languages.extend("markup",{}),Z.languages.ssml=Z.languages.xml,Z.languages.atom=Z.languages.xml,Z.languages.rss=Z.languages.xml,function(r){var c={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},f=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,o="(?:[^\\\\-]|"+f.source+")",o=RegExp(o+"-"+o),p={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};r.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:o,inside:{escape:f,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":c,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:f}},"special-escape":c,"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":p}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:f,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":p}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(Z),Z.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:/[{}[\];(),.:]/},Z.languages.javascript=Z.languages.extend("clike",{"class-name":[Z.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}|\?\?=?|\?\.?|[~:]/}),Z.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Z.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:Z.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:Z.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Z.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Z.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:Z.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Z.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:Z.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"}}),Z.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Z.languages.markup&&(Z.languages.markup.tag.addInlined("script","javascript"),Z.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")),Z.languages.js=Z.languages.javascript,Z.languages.actionscript=Z.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:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),Z.languages.actionscript["class-name"].alias="function",delete Z.languages.actionscript.parameter,delete Z.languages.actionscript["literal-property"],Z.languages.markup&&Z.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:Z.languages.markup}}),function(r){var c=/#(?!\{).+/,f={pattern:/#\{[^}]+\}/,alias:"variable"};r.languages.coffeescript=r.languages.extend("javascript",{comment:c,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:f}}],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"}}),r.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:c,interpolation:f}}}),r.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:r.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:f}}]}),r.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete r.languages.coffeescript["template-string"],r.languages.coffee=r.languages.coffeescript}(Z),function(r){var c=r.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(c,"addSupport",{value:function(f,o){(f=typeof f=="string"?[f]:f).forEach(function(p){var g=function(b){b.inside||(b.inside={}),b.inside.rest=o},N="doc-comment";if(j=r.languages[p]){var j,x=j[N];if((x=x||(j=r.languages.insertBefore(p,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[N])instanceof RegExp&&(x=j[N]={pattern:x}),Array.isArray(x))for(var h=0,v=x.length;h<v;h++)x[h]instanceof RegExp&&(x[h]={pattern:x[h]}),g(x[h]);else g(x)}})}}),c.addSupport(["java","javascript","php"],c)}(Z),function(r){var c=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,c=(r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+c.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\\((?:"+c.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+c.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+c.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:c,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:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css,r.languages.markup);c&&(c.tag.addInlined("style","css"),c.tag.addAttribute("style","css"))}(Z),function(r){var c=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,c=(r.languages.css.selector={pattern:r.languages.css.selector.pattern,lookbehind:!0,inside:c={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+c.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":[c,{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:/[(),]/}},r.languages.css.atrule.inside["selector-function-argument"].inside=c,r.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}),f={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};r.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:c,number:f,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:c,number:f})}(Z),function(r){var c=/[*&][^\s[\]{},]+/,f=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+f.source+"(?:[ ]+"+c.source+")?|"+c.source+"(?:[ ]+"+f.source+")?)",p=/(?:[^\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}),g=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function N(j,x){x=(x||"").replace(/m/g,"")+"m";var h=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<value>>/g,function(){return j});return RegExp(h,x)}r.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<key>>/g,function(){return"(?:"+p+"|"+g+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:N(/\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:N(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:N(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:N(g),lookbehind:!0,greedy:!0},number:{pattern:N(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:f,important:c,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},r.languages.yml=r.languages.yaml}(Z),function(r){var c=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function f(h){return h=h.replace(/<inner>/g,function(){return c}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+h+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,p=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),g=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,N=(r.languages.markdown=r.languages.extend("markup",{}),r.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:r.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+p+g+"(?:"+p+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+p+g+")(?:"+p+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:r.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+p+")"+g+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+p+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:r.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:f(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:f(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:f(/(~~?)(?:(?!~)<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:f(/!?\[(?:(?!\])<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(h){["url","bold","italic","strike","code-snippet"].forEach(function(v){h!==v&&(r.languages.markdown[h].inside.content.inside[v]=r.languages.markdown[v])})}),r.hooks.add("after-tokenize",function(h){h.language!=="markdown"&&h.language!=="md"||function v(b){if(b&&typeof b!="string")for(var k=0,q=b.length;k<q;k++){var E,A=b[k];A.type!=="code"?v(A.content):(E=A.content[1],A=A.content[3],E&&A&&E.type==="code-language"&&A.type==="code-block"&&typeof E.content=="string"&&(E=E.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),E="language-"+(E=(/[a-z][\w-]*/i.exec(E)||[""])[0].toLowerCase()),A.alias?typeof A.alias=="string"?A.alias=[A.alias,E]:A.alias.push(E):A.alias=[E]))}}(h.tokens)}),r.hooks.add("wrap",function(h){if(h.type==="code-block"){for(var v="",b=0,k=h.classes.length;b<k;b++){var q=h.classes[b],q=/language-(.+)/.exec(q);if(q){v=q[1];break}}var E,A=r.languages[v];A?h.content=r.highlight(function(C){return C=C.replace(N,""),C=C.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(T,w){var H;return(w=w.toLowerCase())[0]==="#"?(H=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),x(H)):j[w]||T})}(h.content),A,v):v&&v!=="none"&&r.plugins.autoloader&&(E="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),h.attributes.id=E,r.plugins.autoloader.loadLanguages(v,function(){var C=document.getElementById(E);C&&(C.innerHTML=r.highlight(C.textContent,r.languages[v],v))}))}}),RegExp(r.languages.markup.tag.pattern.source,"gi")),j={amp:"&",lt:"<",gt:">",quot:'"'},x=String.fromCodePoint||String.fromCharCode;r.languages.md=r.languages.markdown}(Z),Z.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:Z.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+/},Z.hooks.add("after-tokenize",function(r){if(r.language==="graphql")for(var c=r.tokens.filter(function(E){return typeof E!="string"&&E.type!=="comment"&&E.type!=="scalar"}),f=0;f<c.length;){var o=c[f++];if(o.type==="keyword"&&o.content==="mutation"){var p=[];if(b(["definition-mutation","punctuation"])&&v(1).content==="("){f+=2;var g=k(/^\($/,/^\)$/);if(g===-1)continue;for(;f<g;f++){var N=v(0);N.type==="variable"&&(q(N,"variable-input"),p.push(N.content))}f=g+1}if(b(["punctuation","property-query"])&&v(0).content==="{"&&(f++,q(v(0),"property-mutation"),0<p.length)){var j=k(/^\{$/,/^\}$/);if(j!==-1)for(var x=f;x<j;x++){var h=c[x];h.type==="variable"&&0<=p.indexOf(h.content)&&q(h,"variable-input")}}}}function v(E){return c[f+E]}function b(E,A){A=A||0;for(var C=0;C<E.length;C++){var T=v(C+A);if(!T||T.type!==E[C])return}return 1}function k(E,A){for(var C=1,T=f;T<c.length;T++){var w=c[T],H=w.content;if(w.type==="punctuation"&&typeof H=="string"){if(E.test(H))C++;else if(A.test(H)&&--C===0)return T}}return-1}function q(E,A){var C=E.alias;C?Array.isArray(C)||(E.alias=C=[C]):E.alias=C=[],C.push(A)}}),Z.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(r){var c=r.languages.javascript["template-string"],f=c.pattern.source,o=c.inside.interpolation,p=o.inside["interpolation-punctuation"],g=o.pattern.source;function N(b,k){if(r.languages[b])return{pattern:RegExp("((?:"+k+")\\s*)"+f),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:b}}}}function j(b,k,q){return b={code:b,grammar:k,language:q},r.hooks.run("before-tokenize",b),b.tokens=r.tokenize(b.code,b.grammar),r.hooks.run("after-tokenize",b),b.tokens}function x(b,k,q){var C=r.tokenize(b,{interpolation:{pattern:RegExp(g),lookbehind:!0}}),E=0,A={},C=j(C.map(function(w){if(typeof w=="string")return w;for(var H,U,w=w.content;b.indexOf((U=E++,H="___"+q.toUpperCase()+"_"+U+"___"))!==-1;);return A[H]=w,H}).join(""),k,q),T=Object.keys(A);return E=0,function w(H){for(var U=0;U<H.length;U++){if(E>=T.length)return;var Q,P,W,oe,be,pe,ie,$=H[U];typeof $=="string"||typeof $.content=="string"?(Q=T[E],(ie=(pe=typeof $=="string"?$:$.content).indexOf(Q))!==-1&&(++E,P=pe.substring(0,ie),be=A[Q],W=void 0,(oe={})["interpolation-punctuation"]=p,(oe=r.tokenize(be,oe)).length===3&&((W=[1,1]).push.apply(W,j(oe[1],r.languages.javascript,"javascript")),oe.splice.apply(oe,W)),W=new r.Token("interpolation",oe,o.alias,be),oe=pe.substring(ie+Q.length),be=[],P&&be.push(P),be.push(W),oe&&(w(pe=[oe]),be.push.apply(be,pe)),typeof $=="string"?(H.splice.apply(H,[U,1].concat(be)),U+=be.length-1):$.content=be)):(ie=$.content,Array.isArray(ie)?w(ie):w([ie]))}}(C),new r.Token(q,C,"language-"+q,b)}r.languages.javascript["template-string"]=[N("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),N("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),N("svg",/\bsvg/.source),N("markdown",/\b(?:markdown|md)/.source),N("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),N("sql",/\bsql/.source),c].filter(Boolean);var h={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function v(b){return typeof b=="string"?b:Array.isArray(b)?b.map(v).join(""):v(b.content)}r.hooks.add("after-tokenize",function(b){b.language in h&&function k(q){for(var E=0,A=q.length;E<A;E++){var C,T,w,H=q[E];typeof H!="string"&&(C=H.content,Array.isArray(C)?H.type==="template-string"?(H=C[1],C.length===3&&typeof H!="string"&&H.type==="embedded-code"&&(T=v(H),H=H.alias,H=Array.isArray(H)?H[0]:H,w=r.languages[H])&&(C[1]=x(T,w,H))):k(C):typeof C!="string"&&k([C]))}}(b.tokens)})}(Z),function(r){r.languages.typescript=r.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/}),r.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 r.languages.typescript.parameter,delete r.languages.typescript["literal-property"];var c=r.languages.extend("typescript",{});delete c["class-name"],r.languages.typescript["class-name"].inside=c,r.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:c}}}}),r.languages.ts=r.languages.typescript}(Z),function(r){var c=r.languages.javascript,f=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,o="(@(?:arg|argument|param|property)\\s+(?:"+f+"\\s+)?)";r.languages.jsdoc=r.languages.extend("javadoclike",{parameter:{pattern:RegExp(o+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),r.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(o+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:c,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 f})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+f),lookbehind:!0,inside:{string:c.string,number:c.number,boolean:c.boolean,keyword:r.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:c,alias:"language-javascript"}}}}),r.languages.javadoclike.addSupport("javascript",r.languages.jsdoc)}(Z),function(r){r.languages.flow=r.languages.extend("javascript",{}),r.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),r.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 r.languages.flow.parameter,r.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(r.languages.flow.keyword)||(r.languages.flow.keyword=[r.languages.flow.keyword]),r.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})}(Z),Z.languages.n4js=Z.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/}),Z.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),Z.languages.n4jsd=Z.languages.n4js,function(r){function c(N,j){return RegExp(N.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),j)}r.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+r.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),r.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+r.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),r.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"}]}),r.languages.insertBefore("javascript","keyword",{imports:{pattern:c(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:r.languages.javascript},exports:{pattern:c(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:r.languages.javascript}}),r.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"}),r.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),r.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:c(/(\.\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 f=["function","function-variable","method","method-variable","property-access"],o=0;o<f.length;o++){var g=f[o],p=r.languages.javascript[g],g=(p=r.util.type(p)==="RegExp"?r.languages.javascript[g]={pattern:p}:p).inside||{};(p.inside=g)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(Z),function(r){var c=r.util.clone(r.languages.javascript),f=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,o=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,p=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function g(x,h){return x=x.replace(/<S>/g,function(){return f}).replace(/<BRACES>/g,function(){return o}).replace(/<SPREAD>/g,function(){return p}),RegExp(x,h)}p=g(p).source,r.languages.jsx=r.languages.extend("markup",c),r.languages.jsx.tag.pattern=g(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),r.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,r.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,r.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,r.languages.jsx.tag.inside.comment=c.comment,r.languages.insertBefore("inside","attr-name",{spread:{pattern:g(/<SPREAD>/.source),inside:r.languages.jsx}},r.languages.jsx.tag),r.languages.insertBefore("inside","special-attr",{script:{pattern:g(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:r.languages.jsx}}},r.languages.jsx.tag);function N(x){for(var h=[],v=0;v<x.length;v++){var b=x[v],k=!1;typeof b!="string"&&(b.type==="tag"&&b.content[0]&&b.content[0].type==="tag"?b.content[0].content[0].content==="</"?0<h.length&&h[h.length-1].tagName===j(b.content[0].content[1])&&h.pop():b.content[b.content.length-1].content!=="/>"&&h.push({tagName:j(b.content[0].content[1]),openedBraces:0}):0<h.length&&b.type==="punctuation"&&b.content==="{"?h[h.length-1].openedBraces++:0<h.length&&0<h[h.length-1].openedBraces&&b.type==="punctuation"&&b.content==="}"?h[h.length-1].openedBraces--:k=!0),(k||typeof b=="string")&&0<h.length&&h[h.length-1].openedBraces===0&&(k=j(b),v<x.length-1&&(typeof x[v+1]=="string"||x[v+1].type==="plain-text")&&(k+=j(x[v+1]),x.splice(v+1,1)),0<v&&(typeof x[v-1]=="string"||x[v-1].type==="plain-text")&&(k=j(x[v-1])+k,x.splice(v-1,1),v--),x[v]=new r.Token("plain-text",k,null,k)),b.content&&typeof b.content!="string"&&N(b.content)}}var j=function(x){return x?typeof x=="string"?x:typeof x.content=="string"?x.content:x.content.map(j).join(""):""};r.hooks.add("after-tokenize",function(x){x.language!=="jsx"&&x.language!=="tsx"||N(x.tokens)})}(Z),function(r){var c=r.util.clone(r.languages.typescript),c=(r.languages.tsx=r.languages.extend("jsx",c),delete r.languages.tsx.parameter,delete r.languages.tsx["literal-property"],r.languages.tsx.tag);c.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+c.pattern.source+")",c.pattern.flags),c.lookbehind=!0}(Z),Z.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:/[{}[\]();,.:\\]/},Z.languages.swift["string-literal"].forEach(function(r){r.inside.interpolation.inside=Z.languages.swift}),function(r){r.languages.kotlin=r.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 r.languages.kotlin["class-name"];var c={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:r.languages.kotlin}};r.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:c},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:c},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete r.languages.kotlin.string,r.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),r.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),r.languages.kt=r.languages.kotlin,r.languages.kts=r.languages.kotlin}(Z),Z.languages.c=Z.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|[?:~]|[-+*/%&|^!=<>]=?/}),Z.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Z.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},Z.languages.c.string],char:Z.languages.c.char,comment:Z.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:Z.languages.c}}}}),Z.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 Z.languages.c.boolean,Z.languages.objectivec=Z.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 Z.languages.objectivec["class-name"],Z.languages.objc=Z.languages.objectivec,Z.languages.reason=Z.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/}),Z.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 Z.languages.reason.function,function(r){for(var c=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,f=0;f<2;f++)c=c.replace(/<self>/g,function(){return c});c=c.replace(/<self>/g,function(){return/[^\s\S]/.source}),r.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+c),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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},r.languages.rust["closure-params"].inside.rest=r.languages.rust,r.languages.rust.attribute.inside.string=r.languages.rust.string}(Z),Z.languages.go=Z.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/}),Z.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Z.languages.go["class-name"],function(r){var c=/\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/,f=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return c.source});r.languages.cpp=r.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return c.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:c,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/}),r.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 f})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),r.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:r.languages.cpp}}}}),r.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),r.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:r.languages.extend("cpp",{})}}),r.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},r.languages.cpp["base-clause"])}(Z),Z.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:/[{}[\];(),.:]/},Z.languages.python["string-interpolation"].inside.interpolation.inside.rest=Z.languages.python,Z.languages.py=Z.languages.python,Z.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"}},Z.languages.webmanifest=Z.languages.json;var Nt={};Cy(Nt,{dracula:()=>zy,duotoneDark:()=>Ly,duotoneLight:()=>By,github:()=>qy,gruvboxMaterialDark:()=>pm,gruvboxMaterialLight:()=>ym,jettwaveDark:()=>um,jettwaveLight:()=>om,nightOwl:()=>Yy,nightOwlLight:()=>Xy,oceanicNext:()=>Qy,okaidia:()=>$y,oneDark:()=>fm,oneLight:()=>gm,palenight:()=>Iy,shadesOfPurple:()=>Wy,synthwave84:()=>em,ultramin:()=>lm,vsDark:()=>Og,vsLight:()=>im});var Dy={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)"}}]},zy=Dy,My={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"}}]},Ly=My,Uy={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"}}]},By=Uy,Hy={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"}}]},qy=Hy,Gy={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)"}}]},Yy=Gy,Zy={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)"}}]},Xy=Zy,Et={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},Vy={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Et.keyword}},{types:["attr-value"],style:{color:Et.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:Et.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:Et.primitive}},{types:["boolean"],style:{color:Et.boolean}},{types:["tag"],style:{color:Et.tag}},{types:["string"],style:{color:Et.string}},{types:["punctuation"],style:{color:Et.string}},{types:["selector","char","builtin","inserted"],style:{color:Et.char}},{types:["function"],style:{color:Et.function}},{types:["operator","entity","url","variable"],style:{color:Et.variable}},{types:["keyword"],style:{color:Et.keyword}},{types:["atrule","class-name"],style:{color:Et.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Qy=Vy,Fy={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"}}]},$y=Fy,Ky={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)"}}]},Iy=Ky,Jy={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)"}}]},Wy=Jy,Py={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"}}]},em=Py,tm={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)"}}]},lm=tm,am={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)"}}]},Og=am,nm={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)"}}]},im=nm,rm={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"}}]},um=rm,sm={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"}}]},om=sm,cm={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%)"}}]},fm=cm,dm={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%)"}}]},gm=dm,hm={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"}}]},pm=hm,bm={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"}}]},ym=bm,mm=r=>B.useCallback(c=>{var f=c,{className:o,style:p,line:g}=f,N=kg(f,["className","style","line"]);const j=or(Zt({},N),{className:_g("token-line",o)});return typeof r=="object"&&"plain"in r&&(j.style=r.plain),typeof p=="object"&&(j.style=Zt(Zt({},j.style||{}),p)),j},[r]),vm=r=>{const c=B.useCallback(({types:f,empty:o})=>{if(r!=null){{if(f.length===1&&f[0]==="plain")return o!=null?{display:"inline-block"}:void 0;if(f.length===1&&o!=null)return r[f[0]]}return Object.assign(o!=null?{display:"inline-block"}:{},...f.map(p=>r[p]))}},[r]);return B.useCallback(f=>{var o=f,{token:p,className:g,style:N}=o,j=kg(o,["token","className","style"]);const x=or(Zt({},j),{className:_g("token",...p.types,g),children:p.content,style:c(p)});return N!=null&&(x.style=Zt(Zt({},x.style||{}),N)),x},[c])},xm=/\r\n|\r|\n/,$d=r=>{r.length===0?r.push({types:["plain"],content:`
|
|
193
|
+
`,empty:!0}):r.length===1&&r[0].content===""&&(r[0].content=`
|
|
194
|
+
`,r[0].empty=!0)},Kd=(r,c)=>{const f=r.length;return f>0&&r[f-1]===c?r:r.concat(c)},Sm=r=>{const c=[[]],f=[r],o=[0],p=[r.length];let g=0,N=0,j=[];const x=[j];for(;N>-1;){for(;(g=o[N]++)<p[N];){let h,v=c[N];const k=f[N][g];if(typeof k=="string"?(v=N>0?v:["plain"],h=k):(v=Kd(v,k.type),k.alias&&(v=Kd(v,k.alias)),h=k.content),typeof h!="string"){N++,c.push(v),f.push(h),o.push(0),p.push(h.length);continue}const q=h.split(xm),E=q.length;j.push({types:v,content:q[0]});for(let A=1;A<E;A++)$d(j),x.push(j=[]),j.push({types:v,content:q[A]})}N--,c.pop(),f.pop(),o.pop(),p.pop()}return $d(j),x},Id=Sm,Em=({prism:r,code:c,grammar:f,language:o})=>B.useMemo(()=>{if(f==null)return Id([c]);const p={code:c,grammar:f,language:o,tokens:[]};return r.hooks.run("before-tokenize",p),p.tokens=r.tokenize(c,f),r.hooks.run("after-tokenize",p),Id(p.tokens)},[c,f,o,r]),Nm=(r,c)=>{const{plain:f}=r,o=r.styles.reduce((p,g)=>{const{languages:N,style:j}=g;return N&&!N.includes(c)||g.types.forEach(x=>{const h=Zt(Zt({},p[x]),j);p[x]=h}),p},{});return o.root=f,o.plain=or(Zt({},f),{backgroundColor:void 0}),o},Am=Nm,wm=({children:r,language:c,code:f,theme:o,prism:p})=>{const g=c.toLowerCase(),N=Am(o,g),j=mm(N),x=vm(N),h=p.languages[g],v=Em({prism:p,language:g,code:f,grammar:h});return r({tokens:v,className:`prism-code language-${g}`,style:N!=null?N.root:{},getLineProps:j,getTokenProps:x})},Tm=r=>B.createElement(wm,or(Zt({},r),{prism:r.prism||Z,theme:r.theme||Og,code:r.code,language:r.language}));/*! Bundled license information:
|
|
195
|
+
|
|
196
|
+
prismjs/prism.js:
|
|
197
|
+
(**
|
|
198
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
199
|
+
*
|
|
200
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
201
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
202
|
+
* @namespace
|
|
203
|
+
* @public
|
|
204
|
+
*)
|
|
205
|
+
*/const _m="modulepreload",jm=function(r){return"/"+r},Jd={},dt=function(c,f,o){let p=Promise.resolve();if(f&&f.length>0){let x=function(h){return Promise.all(h.map(v=>Promise.resolve(v).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const N=document.querySelector("meta[property=csp-nonce]"),j=N?.nonce||N?.getAttribute("nonce");p=x(f.map(h=>{if(h=jm(h),h in Jd)return;Jd[h]=!0;const v=h.endsWith(".css"),b=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${b}`))return;const k=document.createElement("link");if(k.rel=v?"stylesheet":_m,v||(k.as="script"),k.crossOrigin="",k.href=h,j&&k.setAttribute("nonce",j),document.head.appendChild(k),v)return new Promise((q,E)=>{k.addEventListener("load",q),k.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${h}`)))})}))}function g(N){const j=new Event("vite:preloadError",{cancelable:!0});if(j.payload=N,window.dispatchEvent(j),!j.defaultPrevented)throw N}return p.then(N=>{for(const j of N||[])j.status==="rejected"&&g(j.reason);return c().catch(g)})},nr={};function Rg(r){if(!nr[r]){const f={bash:()=>dt(()=>import("./prism-bash-DTkDXsAh.js"),[]),sh:()=>dt(()=>import("./prism-bash-DTkDXsAh.js"),[]),shell:()=>dt(()=>import("./prism-bash-DTkDXsAh.js"),[]),php:async()=>(await dt(()=>import("./prism-markup-templating-Ct1xsyfA.js"),[]),dt(()=>import("./prism-php-CshMHvWJ.js").then(o=>o.p),[])),sql:()=>dt(()=>import("./prism-sql-AgAyy5H_.js"),[]),ruby:()=>dt(()=>import("./prism-ruby-qC3LGMgv.js").then(o=>o.p),[]),java:()=>dt(()=>import("./prism-java-Dv0G_qSp.js").then(o=>o.p),[]),scala:async()=>(await Rg("java"),dt(()=>import("./prism-scala-BjNo2HkN.js"),[])),solidity:()=>dt(()=>import("./prism-solidity-DbdYT-uq.js").then(o=>o.p),[]),vim:()=>dt(()=>import("./prism-vim-uciLQ2PQ.js"),[]),dart:()=>dt(()=>import("./prism-dart-MjriiaMt.js"),[]),csharp:()=>dt(()=>import("./prism-csharp-C6507-_U.js").then(o=>o.p),[]),protobuf:()=>dt(()=>import("./prism-protobuf-DiQ_z8B5.js"),[])}[r];if(!f)return console.warn(`No loader available for language: ${r}`),Promise.reject(new Error(`Unsupported language: ${r}`));nr[r]=f().then(()=>{}).catch(o=>{throw delete nr[r],console.warn(`Failed to load language: ${r}`,o),o})}return nr[r]}typeof global<"u"?global.Prism=Z:typeof window<"u"&&(window.Prism=Z);const Wd=["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 Cm(r,c){const[f,o]=B.useState(()=>Wd.includes(c)||!!Z.languages[c]);return B.useEffect(()=>{if(!f){if(Wd.includes(c)){o(!0);return}Rg(c).then(()=>{o(!0)}).catch(()=>{o(!1)})}},[c,f]),{ready:f,actualLang:f?c:"text"}}const Pd=[{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"}],eg=[{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 km(r){return{...r,styles:r.styles.map(c=>({...c,style:{...c.style,background:void 0,backgroundColor:void 0}}))}}function Om(r){let c;switch(r){case"github":c=Nt.github;break;case"vsLight":c=Nt.vsLight;break;case"oneLight":c=Nt.oneLight;break;case"gruvboxMaterialLight":c=Nt.gruvboxMaterialLight;break;case"nightOwlLight":c=Nt.nightOwlLight;break;case"vsDark":c=Nt.vsDark;break;case"oneDark":c=Nt.oneDark;break;case"gruvboxMaterialDark":c=Nt.gruvboxMaterialDark;break;case"nightOwl":c=Nt.nightOwl;break;case"dracula":c=Nt.dracula;break;case"okaidia":c=Nt.okaidia;break;default:c=Nt.vsDark}return km(c)}function Rm(r){const c=hy(r).toLowerCase(),f=Ng(r),o={dockerfile:"docker",makefile:"makefile",".gitignore":"git",".env":"bash",".bashrc":"bash",".zshrc":"bash",".bash_profile":"bash",".profile":"bash"};return o[c]?o[c]:{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",r:"r",lua:"lua",perl:"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"}[f||""]||"text"}const Dm=Pl.memo(function({code:c,language:f,className:o,syntaxTheme:p="vsDark",filename:g="",renderToken:N,onMouseOver:j,onMouseOut:x}){const h=f||(g?Rm(g):"text"),{actualLang:v}=Cm(c,h),b=Om(p),k=B.useCallback(({style:q,tokens:E,getLineProps:A,getTokenProps:C})=>u.jsx("span",{className:o,style:{...q,background:"transparent",backgroundColor:"transparent"},onMouseOver:j,onMouseOut:x,children:E.map((T,w)=>u.jsx("span",{...A({line:T}),children:T.map((H,U)=>N?N(H,U,C):u.jsx("span",{...C({token:H})},U))},w))}),[o,j,x,N]);return u.jsx(Tm,{code:c,language:v,theme:b,prism:Z,children:k})}),Ds=Pl.memo(function(c){const{handleMouseOver:f,handleMouseOut:o,isWordHighlighted:p}=Ey(),g=B.useCallback((N,j,x)=>{const h=x({token:N}),v=N.content.split(/( +)/);if(v.length===1&&v[0]&&!Qd(v[0]))return u.jsx("span",{...h},j);const b=v.map((k,q)=>{if(!k)return null;if(Qd(k)){const E=k.trim(),A=p(E);return u.jsx("span",{className:`word-token ${A?"word-highlight":""}`,"data-word":E,children:k},`${j}-${q}`)}return u.jsx("span",{children:k},`${j}-${q}`)});return u.jsx("span",{...h,children:b},j)},[p]);return u.jsx(Dm,{...c,renderToken:g,onMouseOver:f,onMouseOut:o})}),zm=r=>{switch(r.type){case"add":return"bg-diff-addition-bg";case"delete":return"bg-diff-deletion-bg";default:return"bg-transparent"}},Mm=r=>{switch(r.type){case"add":return"+";case"delete":return"-";default:return" "}},Dg=Pl.memo(({line:r,lineId:c,isCurrentLine:f=!1,hoveredLine:o,selectedLineStyle:p,onMouseEnter:g,onMouseLeave:N,onMouseMove:j,onCommentButtonMouseDown:x,onCommentButtonMouseUp:h,syntaxTheme:v,onClick:b,filename:k})=>{const q=r.newLineNumber||r.oldLineNumber,E=o===q&&q,A=f?"keyboard-cursor":"";return u.jsxs("tr",{id:c,className:`group ${zm(r)} relative ${p} ${A} cursor-pointer`,onMouseEnter:g,onMouseLeave:N,onMouseMove:j,onClick:b,children:[u.jsx("td",{className:"w-[50px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative",children:r.oldLineNumber||""}),u.jsxs("td",{className:"w-[50px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible",children:[u.jsx("span",{className:"pr-5",children:r.newLineNumber||""}),E&&u.jsx(ir,{onMouseDown:x,onMouseUp:h})]}),u.jsx("td",{className:"p-0 w-full relative align-top",children:u.jsxs("div",{className:"flex items-center relative min-h-[16px]",children:[u.jsx("span",{className:`w-5 text-center text-github-text-muted flex-shrink-0 bg-github-bg-secondary border-r border-github-border ${r.type==="add"?"text-github-accent bg-diff-addition-bg":r.type==="delete"?"text-github-danger bg-diff-deletion-bg":""}`,children:Mm(r)}),u.jsx(Ds,{code:r.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:v,filename:k})]})})]})});Dg.displayName="DiffLineRow";function Lm({chunk:r,chunkIndex:c,comments:f,onAddComment:o,onGeneratePrompt:p,onRemoveComment:g,onUpdateComment:N,syntaxTheme:j,cursor:x=null,fileIndex:h=0,onLineClick:v,commentTrigger:b,onCommentTriggerHandled:k,filename:q}){const[E,A]=B.useState(null),[C,T]=B.useState(null),[w,H]=B.useState(!1),[U,Q]=B.useState(null),[P,W]=B.useState(null);B.useEffect(()=>{if(b?.lineIndex!==void 0){const y=r.lines[b.lineIndex];if(y&&y.type!=="delete"){const Y=y.newLineNumber;Y&&(Q({side:"new",lineNumber:Y}),k?.())}}},[b,r.lines,k]),B.useEffect(()=>{if(w){const y=()=>{H(!1),A(null),T(null)};return document.addEventListener("mouseup",y),()=>{document.removeEventListener("mouseup",y)}}},[w]);const oe=B.useCallback((y,Y)=>{U?.side===y&&U?.lineNumber===Y?Q(null):Q({side:y,lineNumber:Y})},[U]),be=B.useCallback(()=>{Q(null)},[]),pe=B.useCallback(async y=>{U!==null&&(await o(U.lineNumber,y),Q(null))},[U,o]),ie=y=>f.filter(Y=>Array.isArray(Y.line)?Y.line[1]===y:Y.line===y),$=y=>y.oldLine?.type==="delete"&&y.newLine?.type==="add"?y.newLineNumber?"right":"left":y.oldLine?.type==="delete"?"left":y.newLine?.type==="add"?"right":"full",me=(y,Y)=>{const F=y==="old"?Y.oldLineNumber:Y.newLineNumber;if(!F)return"";if(w&&E&&C&&E.side===y&&C.side===y){const ae=Math.min(E.lineNumber,C.lineNumber),m=Math.max(E.lineNumber,C.lineNumber);if(F>=ae&&F<=m){let L="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 F===ae&&(L+=" after:border-t-2"),F===m&&(L+=" after:border-b-2"),L}}if(U&&U.side===y){const ae=Array.isArray(U.lineNumber)?U.lineNumber:[U.lineNumber,U.lineNumber],m=ae[0],L=ae[1];if(m!==void 0&&L!==void 0&&F>=m&&F<=L)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""},J=(y=>{const Y=[];let F=r.oldStart,ae=r.newStart,m=0;for(;m<y.length;){const L=y[m];if(!L){m++;continue}if(L.type==="normal")Y.push({oldLine:L,newLine:{...L},oldLineNumber:L.oldLineNumber??F,newLineNumber:L.newLineNumber??ae,oldLineOriginalIndex:m,newLineOriginalIndex:m}),F++,ae++,m++;else if(L.type==="delete"){let K=m+1;for(;K<y.length&&y[K]?.type==="delete";)K++;const I=y.slice(m,K),te=m,ge=[],ne=K;for(;K<y.length&&y[K]?.type==="add";){const ee=y[K];ee&&ge.push(ee),K++}const ce=Math.max(I.length,ge.length);for(let ee=0;ee<ce;ee++){const Ae=I[ee],qe=ge[ee];Y.push({oldLine:Ae,newLine:qe,oldLineNumber:Ae?Ae.oldLineNumber??F+ee:void 0,newLineNumber:qe?qe.newLineNumber??ae+ee:void 0,oldLineOriginalIndex:Ae?te+ee:void 0,newLineOriginalIndex:qe?ne+ee:void 0})}F+=I.length,ae+=ge.length,m=K}else L.type==="add"&&(Y.push({newLine:L,newLineNumber:L.newLineNumber??ae,newLineOriginalIndex:m}),ae++,m++)}return Y})(r.lines);return u.jsx("div",{className:"bg-github-bg-primary border border-github-border rounded-md overflow-hidden",children:u.jsx("table",{className:"w-full border-collapse font-mono text-xs leading-5",children:u.jsx("tbody",{children:J.map((y,Y)=>{const F=y.newLineNumber?ie(y.newLineNumber):y.oldLineNumber?ie(y.oldLineNumber):[],ae=y.oldLineOriginalIndex??-1,m=y.newLineOriginalIndex??-1,L=x?x.side==="left"&&ae>=0?x.chunkIndex===c&&x.lineIndex===ae:x.side==="right"&&m>=0?x.chunkIndex===c&&x.lineIndex===m:!1:!1,K=ae>=0?`file-${h}-chunk-${c}-line-${ae}-left`:void 0,I=m>=0?`file-${h}-chunk-${c}-line-${m}-right`:void 0,te=L&&x?.side==="left",ge=L&&x?.side==="right",ne="keyboard-cursor";return u.jsxs(Pl.Fragment,{children:[u.jsxs("tr",{className:"group cursor-pointer",onClick:ce=>{if(!w){const ee=ce.target,Ae=ee.closest("td:nth-child(1)")||ee.closest("td:nth-child(2)"),qe=ee.closest("td:nth-child(3)")||ee.closest("td:nth-child(4)");Ae&&ae>=0?v?.(h,c,ae,"left"):qe&&m>=0&&v?.(h,c,m,"right")}},onMouseEnter:ce=>{const ee=ce.target,Ae=ee.closest("td:nth-child(1)")||ee.closest("td:nth-child(2)"),qe=ee.closest("td:nth-child(3)")||ee.closest("td:nth-child(4)");Ae&&y.oldLineNumber?W({side:"old",lineNumber:y.oldLineNumber}):qe&&y.newLineNumber&&W({side:"new",lineNumber:y.newLineNumber})},onMouseMove:ce=>{const ee=ce.target,Ae=ee.closest("td:nth-child(1)")||ee.closest("td:nth-child(2)"),qe=ee.closest("td:nth-child(3)")||ee.closest("td:nth-child(4)");Ae&&y.oldLineNumber?(P?.side!=="old"||P?.lineNumber!==y.oldLineNumber)&&W({side:"old",lineNumber:y.oldLineNumber}):qe&&y.newLineNumber&&(P?.side!=="new"||P?.lineNumber!==y.newLineNumber)&&W({side:"new",lineNumber:y.newLineNumber}),w&&E&&(E.side==="old"&&y.oldLineNumber?T({side:"old",lineNumber:y.oldLineNumber}):E.side==="new"&&y.newLineNumber&&T({side:"new",lineNumber:y.newLineNumber}))},onMouseLeave:()=>W(null),children:[u.jsxs("td",{id:K,className:`w-[60px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${te?ne:""}`,children:[u.jsx("span",{className:"pr-5",children:y.oldLineNumber||""}),P?.side==="old"&&P?.lineNumber===y.oldLineNumber&&u.jsx(ir,{onMouseDown:ce=>{ce.stopPropagation(),y.oldLineNumber&&(A({side:"old",lineNumber:y.oldLineNumber}),T({side:"old",lineNumber:y.oldLineNumber}),H(!0))},onMouseUp:ce=>{if(ce.stopPropagation(),!y.oldLineNumber||!E){H(!1),A(null),T(null);return}const ee=C&&C.side==="old"?C.lineNumber:y.oldLineNumber;if(E.side!=="old"||E.lineNumber===ee)oe("old",y.oldLineNumber);else{const Ae=Math.min(E.lineNumber,ee),qe=Math.max(E.lineNumber,ee);oe("old",[Ae,qe])}H(!1),A(null),T(null)}})]}),u.jsx("td",{className:`w-1/2 p-0 align-top border-r border-github-border relative ${y.oldLine?.type==="delete"?"bg-diff-deletion-bg":y.oldLine?.type==="normal"?"bg-transparent":"bg-github-bg-secondary"} ${me("old",y)} ${te?ne:""}`,children:y.oldLine&&u.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:u.jsx(Ds,{code:y.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:j,filename:q})})}),u.jsxs("td",{id:I,className:`w-[60px] px-2 text-right text-github-text-muted bg-github-bg-secondary border-r border-github-border select-none align-top relative overflow-visible ${ge?ne:""}`,children:[u.jsx("span",{className:"pr-5",children:y.newLineNumber||""}),P?.side==="new"&&P?.lineNumber===y.newLineNumber&&u.jsx(ir,{onMouseDown:ce=>{ce.stopPropagation(),y.newLineNumber&&(A({side:"new",lineNumber:y.newLineNumber}),T({side:"new",lineNumber:y.newLineNumber}),H(!0))},onMouseUp:ce=>{if(ce.stopPropagation(),!y.newLineNumber||!E){H(!1),A(null),T(null);return}const ee=C&&C.side==="new"?C.lineNumber:y.newLineNumber;if(E.side!=="new"||E.lineNumber===ee)oe("new",y.newLineNumber);else{const Ae=Math.min(E.lineNumber,ee),qe=Math.max(E.lineNumber,ee);oe("new",[Ae,qe])}H(!1),A(null),T(null)}})]}),u.jsx("td",{className:`w-1/2 p-0 align-top relative ${y.newLine?.type==="add"?"bg-diff-addition-bg":y.newLine?.type==="normal"?"bg-transparent":"bg-github-bg-secondary"} ${me("new",y)} ${ge?ne:""}`,children:y.newLine&&u.jsx("div",{className:"flex items-center relative min-h-[20px] px-3",children:u.jsx(Ds,{code:y.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:j,filename:q})})})]}),F.length>0&&u.jsx("tr",{className:"bg-github-bg-secondary",children:u.jsx("td",{colSpan:4,className:"p-0 border-t border-github-border",children:F.map(ce=>{const ee=$(y);return u.jsx("div",{className:`flex ${ee==="left"?"justify-start":ee==="right"?"justify-end":"justify-center"}`,children:u.jsx("div",{className:`${ee==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:u.jsx(qs,{comment:ce,onGeneratePrompt:p,onRemoveComment:g,onUpdateComment:N})})},ce.id)})})}),U&&(U.side==="old"&&U.lineNumber===y.oldLineNumber||U.side==="new"&&U.lineNumber===y.newLineNumber||Array.isArray(U.lineNumber)&&(U.side==="new"&&U.lineNumber[1]===y.newLineNumber||U.side==="old"&&U.lineNumber[1]===y.oldLineNumber))&&u.jsx("tr",{className:"bg-github-bg-secondary",children:u.jsx("td",{colSpan:4,className:"p-0",children:u.jsx("div",{className:`flex ${$(y)==="left"?"justify-start":$(y)==="right"?"justify-end":"justify-center"}`,children:u.jsx("div",{className:`${$(y)==="full"?"w-full":"w-1/2"}`,children:u.jsx(Ag,{onSubmit:pe,onCancel:be})})})})})]},Y)})})})})}function Um({chunk:r,chunkIndex:c,comments:f,onAddComment:o,onGeneratePrompt:p,onRemoveComment:g,onUpdateComment:N,mode:j="inline",syntaxTheme:x,cursor:h=null,fileIndex:v=0,onLineClick:b,commentTrigger:k,onCommentTriggerHandled:q,filename:E}){const[A,C]=B.useState(null),[T,w]=B.useState(null),[H,U]=B.useState(!1),[Q,P]=B.useState(null),[W,oe]=B.useState(null);B.useEffect(()=>{if(k?.lineIndex!==void 0){const J=r.lines[k.lineIndex];if(J){const y=J.newLineNumber||J.oldLineNumber;y&&(P(y),q?.())}}},[k,r.lines,q]),B.useEffect(()=>{if(H){const J=()=>{U(!1),C(null),w(null)};return document.addEventListener("mouseup",J),()=>{document.removeEventListener("mouseup",J)}}},[H]);const be=B.useCallback(J=>{P(Q===J?null:J)},[Q]),pe=B.useCallback(()=>{P(null)},[]),ie=B.useCallback(async J=>{Q!==null&&(await o(Q,J),P(null))},[Q,o]),$=J=>f.filter(y=>Array.isArray(y.line)?y.line[1]===J:y.line===J),me=J=>{if(j==="inline")return"full";switch(J.type){case"delete":return"left";case"add":return"right";default:return"full"}},re=J=>{if(!J)return"";if(H&&A&&T){const y=Math.min(A,T),Y=Math.max(A,T);if(J>=y&&J<=Y){let F="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 J===y&&(F+=" after:border-t-2"),J===Y&&(F+=" after:border-b-2"),F}}if(Q){const y=Array.isArray(Q)?Q[0]:Q,Y=Array.isArray(Q)?Q[1]:Q;if(J>=y&&J<=Y)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""};return j==="side-by-side"?u.jsx(Lm,{chunk:r,chunkIndex:c,comments:f,onAddComment:o,onGeneratePrompt:p,onRemoveComment:g,onUpdateComment:N,syntaxTheme:x,cursor:h,fileIndex:v,onLineClick:b,filename:E,commentTrigger:k,onCommentTriggerHandled:q}):u.jsx("div",{className:"bg-github-bg-primary",children:u.jsx("table",{className:"w-full border-collapse font-mono text-xs leading-5",children:u.jsx("tbody",{children:r.lines.map((J,y)=>{const Y=$(J.newLineNumber||J.oldLineNumber||0),F=`file-${v}-chunk-${c}-line-${y}`,ae=h&&h.chunkIndex===c&&h.lineIndex===y;return u.jsxs(Pl.Fragment,{children:[u.jsx(Dg,{line:J,index:y,lineId:F,isCurrentLine:ae||!1,hoveredLine:W,selectedLineStyle:re(J.newLineNumber||J.oldLineNumber),onMouseEnter:()=>{const m=J.newLineNumber||J.oldLineNumber;m&&oe(m)},onMouseLeave:()=>oe(null),onMouseMove:()=>{if(H&&A){const m=J.newLineNumber||J.oldLineNumber;m&&w(m)}},onCommentButtonMouseDown:m=>{m.stopPropagation();const L=J.newLineNumber||J.oldLineNumber;L&&(C(L),w(L),U(!0))},onCommentButtonMouseUp:m=>{m.stopPropagation();const L=J.newLineNumber||J.oldLineNumber;if(!L||!A){U(!1),C(null),w(null);return}const K=T||L;if(A===K)be(L);else{const I=Math.min(A,K),te=Math.max(A,K);be([I,te])}U(!1),C(null),w(null)},syntaxTheme:x,filename:E,onClick:()=>{const m=J.type==="delete"?"left":"right";b?.(v,c,y,m)}}),Y.map(m=>{const L=me(J);return u.jsx("tr",{className:"bg-github-bg-secondary",children:u.jsx("td",{colSpan:3,className:"p-0 border-t border-github-border",children:u.jsx("div",{className:`flex ${L==="left"?"justify-start":L==="right"?"justify-end":"justify-center"}`,children:u.jsx("div",{className:`${L==="full"?"w-full":"w-1/2"} m-2 mx-4`,children:u.jsx(qs,{comment:m,onGeneratePrompt:p,onRemoveComment:g,onUpdateComment:N})})})})},m.id)}),Q&&(Q===(J.newLineNumber||J.oldLineNumber)||Array.isArray(Q)&&Q[1]===(J.newLineNumber||J.oldLineNumber))&&u.jsx("tr",{className:"bg-[var(--bg-secondary)]",children:u.jsx("td",{colSpan:3,className:"p-0",children:u.jsx("div",{className:`flex ${me(J)==="left"?"justify-start":me(J)==="right"?"justify-end":"justify-center"}`,children:u.jsx("div",{className:`${me(J)==="full"?"w-full":"w-1/2"}`,children:u.jsx(Ag,{onSubmit:ie,onCancel:pe})})})})})]},y)})})})})}function Bm({file:r,mode:c="inline",baseCommitish:f,targetCommitish:o}){const p=r.status==="deleted",g=r.status==="added",N=r.status==="modified"||r.status==="renamed",j=f||"HEAD~1",x=o||"HEAD",[h,v]=B.useState({}),[b,k]=B.useState({}),q=async(T,w)=>{try{const H=T.naturalWidth,U=T.naturalHeight,W=(await(await fetch(T.src)).blob()).size;w({width:H,height:U,size:W})}catch(H){console.error("Failed to get image info:",H)}},E=T=>T?T<1024?`${T} B`:T<1024*1024?`${(T/1024).toFixed(1)} KB`:`${(T/(1024*1024)).toFixed(1)} MB`:"",A=T=>!T.width||!T.height?"":`W: ${T.width}px | H: ${T.height}px`,C={backgroundImage:`
|
|
206
|
+
linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%),
|
|
207
|
+
linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%)
|
|
208
|
+
`,backgroundSize:"20px 20px",backgroundPosition:"0 0, 10px 10px",backgroundColor:"white"};return p?u.jsx("div",{className:"bg-github-bg-primary p-4",children:u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"mb-2",children:u.jsx("span",{className:"text-github-danger font-medium",children:"Deleted Image"})}),u.jsxs("div",{className:"inline-block border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[u.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),u.jsx("img",{src:`/api/blob/${r.oldPath||r.path}?ref=${j}`,alt:`Previous version of ${r.oldPath||r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:C,onLoad:T=>q(T.currentTarget,v),onError:T=>{const w=T.target;w.style.display="none",w.nextElementSibling?.classList.remove("hidden")}}),u.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(h.width||h.size)&&u.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(h),A(h)&&E(h.size)&&" | ",E(h.size)]})]})]})}):g?u.jsx("div",{className:"bg-github-bg-primary p-4",children:u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"mb-2",children:u.jsx("span",{className:"text-github-accent font-medium",children:"Added Image"})}),u.jsxs("div",{className:"inline-block border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[u.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"New file:"}),u.jsx("img",{src:`/api/blob/${r.path}?ref=${x}`,alt:`New image ${r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:C,onLoad:T=>q(T.currentTarget,k),onError:T=>{const w=T.target;w.style.display="none",w.nextElementSibling?.classList.remove("hidden")}}),u.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&u.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(b),A(b)&&E(b.size)&&" | ",E(b.size)]})]})]})}):N?c==="side-by-side"?u.jsxs("div",{className:"bg-github-bg-primary p-4",children:[u.jsx("div",{className:"text-center mb-4",children:u.jsx("span",{className:"text-github-text-primary font-medium",children:"Modified Image"})}),u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsx("div",{className:"text-center",children:u.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[u.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),u.jsx("img",{src:`/api/blob/${r.oldPath||r.path}?ref=${j}`,alt:`Previous version of ${r.oldPath||r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:C,onLoad:T=>q(T.currentTarget,v),onError:T=>{const w=T.target;w.style.display="none",w.nextElementSibling?.classList.remove("hidden")}}),u.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(h.width||h.size)&&u.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(h),A(h)&&E(h.size)&&" | ",E(h.size)]})]})}),u.jsx("div",{className:"text-center",children:u.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary",children:[u.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Current version:"}),u.jsx("img",{src:`/api/blob/${r.path}?ref=${x}`,alt:`Current version of ${r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:C,onLoad:T=>q(T.currentTarget,k),onError:T=>{const w=T.target;w.style.display="none",w.nextElementSibling?.classList.remove("hidden")}}),u.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&u.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(b),A(b)&&E(b.size)&&" | ",E(b.size)]})]})})]})]}):u.jsxs("div",{className:"bg-github-bg-primary p-4",children:[u.jsx("div",{className:"text-center mb-4",children:u.jsx("span",{className:"text-github-text-primary font-medium",children:"Modified Image"})}),u.jsxs("div",{className:"space-y-6",children:[u.jsx("div",{className:"text-center",children:u.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary inline-block",children:[u.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Previous version:"}),u.jsx("img",{src:`/api/blob/${r.oldPath||r.path}?ref=${j}`,alt:`Previous version of ${r.oldPath||r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:C,onLoad:T=>q(T.currentTarget,v),onError:T=>{const w=T.target;w.style.display="none",w.nextElementSibling?.classList.remove("hidden")}}),u.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(h.width||h.size)&&u.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(h),A(h)&&E(h.size)&&" | ",E(h.size)]})]})}),u.jsx("div",{className:"text-center",children:u.jsxs("div",{className:"border border-github-border rounded-md p-4 bg-github-bg-secondary inline-block",children:[u.jsx("div",{className:"text-github-text-muted mb-2",style:{fontSize:"14px"},children:"Current version:"}),u.jsx("img",{src:`/api/blob/${r.path}?ref=${x}`,alt:`Current version of ${r.path}`,className:"max-w-full max-h-96 border border-github-border rounded mx-auto",style:C,onLoad:T=>q(T.currentTarget,k),onError:T=>{const w=T.target;w.style.display="none",w.nextElementSibling?.classList.remove("hidden")}}),u.jsx("div",{className:"hidden text-github-text-muted text-sm mt-2",children:"Image could not be loaded"}),(b.width||b.size)&&u.jsxs("div",{className:"text-github-text-muted mt-2",style:{fontSize:"14px"},children:[A(b),A(b)&&E(b.size)&&" | ",E(b.size)]})]})})]})]}):null}function Hm({file:r,comments:c,diffMode:f,reviewedFiles:o,onToggleReviewed:p,onAddComment:g,onGeneratePrompt:N,onRemoveComment:j,onUpdateComment:x,syntaxTheme:h,baseCommitish:v,targetCommitish:b,cursor:k=null,fileIndex:q=0,onLineClick:E,commentTrigger:A,onCommentTriggerHandled:C}){const T=o.has(r.path),[w,H]=B.useState(!1),U=P=>{switch(P){case"added":return u.jsx(mg,{size:16,className:"text-github-accent"});case"deleted":return u.jsx(vg,{size:16,className:"text-github-danger"});case"renamed":return u.jsx(yg,{size:16,className:"text-github-warning"});default:return u.jsx(bg,{size:16,className:"text-github-text-secondary"})}},Q=async(P,W,oe)=>{try{await g(r.path,P,W,oe)}catch(be){console.error("Failed to add comment:",be)}};return u.jsxs("div",{className:"bg-github-bg-primary",children:[u.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:[u.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[u.jsx("button",{onClick:()=>p(r.path),className:"text-github-text-muted hover:text-github-text-primary transition-colors cursor-pointer",title:T?"Expand file":"Collapse file",children:T?u.jsx(hg,{size:16}):u.jsx(Bs,{size:16})}),U(r.status),u.jsx("h2",{className:"text-sm font-mono text-github-text-primary m-0 overflow-hidden text-ellipsis whitespace-nowrap",children:r.path}),u.jsx("button",{className:`bg-transparent border-none cursor-pointer px-1.5 py-1 rounded text-sm transition-all hover:bg-github-bg-tertiary ${w?"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),H(!0),setTimeout(()=>H(!1),2e3)}).catch(P=>{console.error("Failed to copy file path:",P)})},title:"Copy file path",children:w?u.jsx(Yn,{size:14}):u.jsx(pg,{size:14})}),r.oldPath&&r.oldPath!==r.path&&u.jsxs("span",{className:"text-xs text-github-text-muted italic",children:["(renamed from ",r.oldPath,")"]})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[u.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-accent bg-green-100/10",children:["+",r.additions]}),u.jsxs("span",{className:"font-medium px-1 py-0.5 rounded text-github-danger bg-red-100/10",children:["-",r.deletions]})]}),u.jsxs("button",{onClick:()=>p(r.path),className:`flex items-center gap-2 px-3 py-1.5 rounded-md text-sm font-medium transition-all duration-200 ${o.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:o.has(r.path)?"Mark as not reviewed":"Mark as reviewed",children:[o.has(r.path)?u.jsx(Yn,{size:14}):u.jsx(cy,{size:14}),"Viewed"]})]})]}),!T&&u.jsx("div",{className:"overflow-y-auto",children:by(r.path)?u.jsx(Bm,{file:r,mode:f,baseCommitish:v,targetCommitish:b}):r.chunks.map((P,W)=>u.jsxs("div",{id:`chunk-${r.path.replace(/[^a-zA-Z0-9]/g,"-")}-${W}`,className:"border-b border-github-border",children:[u.jsx("div",{className:"bg-github-bg-tertiary px-3 py-2 border-b border-github-border",children:u.jsx("code",{className:"text-github-text-secondary text-xs font-mono",children:P.header})}),u.jsx(Um,{chunk:P,chunkIndex:W,comments:c,onAddComment:Q,onGeneratePrompt:N,onRemoveComment:j,onUpdateComment:x,mode:f,syntaxTheme:h,cursor:k,fileIndex:q,onLineClick:E,commentTrigger:A?.chunkIndex===W?A:null,onCommentTriggerHandled:C,filename:r.path})]},W))})]})}function qm(r){const c={name:"",path:"",isDirectory:!0,children:[]};r.forEach(o=>{const p=o.path.split("/");let g=c;for(let N=0;N<p.length;N++){const j=p[N];if(!j)continue;const x=N===p.length-1,h=p.slice(0,N+1).join("/");g.children||(g.children=[]);let v=g.children.find(b=>b.name===j);v||(v={name:j,path:h,isDirectory:!x,children:x?void 0:[],file:x?o:void 0},g.children.push(v)),g=v}});const f=o=>{if(!o.isDirectory||!o.children)return o;if(o.children=o.children.map(f),o.children.length===1&&o.children[0]?.isDirectory&&o.children[0]?.children){const p=o.children[0];if(p)return o.name?{...o,name:`${o.name}/${p.name}`,path:p.path,children:p.children}:o}return o};return f(c)}function Gm({files:r,onScrollToFile:c,comments:f,reviewedFiles:o,onToggleReviewed:p,selectedFileIndex:g}){const N=qm(r),j=w=>{if(!w.isDirectory||!w.children)return[];const H=[];return w.path&&H.push(w.path),w.children.forEach(U=>{H.push(...j(U))}),H},[x,h]=B.useState(()=>new Set(j(N))),[v,b]=B.useState(""),k=w=>f.filter(H=>H.file===w).length,q=w=>{if(!v.trim())return w;if(w.isDirectory&&w.children){const H=w.children.map(U=>q(U)).filter(U=>U!==null);return H.length>0?{...w,children:H}:null}else if(w.file)return w.file.path.toLowerCase().includes(v.toLowerCase())?w:null;return null},E=q(N)||{...N,children:[]},A=w=>{switch(w){case"added":return u.jsx(mg,{size:16,className:"text-github-accent"});case"deleted":return u.jsx(vg,{size:16,className:"text-github-danger"});case"renamed":return u.jsx(yg,{size:16,className:"text-github-warning"});default:return u.jsx(bg,{size:16,className:"text-github-text-secondary"})}},C=w=>{h(H=>{const U=new Set(H);return U.has(w)?U.delete(w):U.add(w),U})},T=(w,H=0)=>{if(w.isDirectory&&w.children){const U=x.has(w.path);return u.jsxs("div",{children:[w.name&&u.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 hover:bg-github-bg-tertiary cursor-pointer",style:{paddingLeft:`${H*16+16}px`},onClick:()=>C(w.path),children:[U?u.jsx(Bs,{size:16}):u.jsx(hg,{size:16}),U?u.jsx(Xb,{size:16,className:"text-github-text-secondary"}):u.jsx(Qb,{size:16,className:"text-github-text-secondary"}),u.jsx("span",{className:"text-sm text-github-text-primary font-medium flex-1 overflow-hidden text-ellipsis whitespace-nowrap",title:w.name,children:w.name})]}),(U||!w.name)&&w.children.map(Q=>T(Q,H+1))]},w.path)}else if(w.file){const U=w.file,Q=k(U.path),P=o.has(U.path),W=r.findIndex(be=>be.path===U.path),oe=g!==null&&g===W;return u.jsxs("div",{className:`flex items-center gap-2 px-4 py-2 hover:bg-github-bg-tertiary cursor-pointer transition-colors ${P?"opacity-70":""} ${oe?"bg-github-bg-tertiary":""}`,style:{paddingLeft:`${H*16+16}px`},onClick:()=>c(U.path),children:[u.jsx(Eg,{checked:P,onChange:()=>{p(U.path)},title:P?"Mark as not reviewed":"Mark as reviewed",className:"z-10"}),A(w.file.status),u.jsx("span",{className:`text-sm text-github-text-primary flex-1 overflow-hidden text-ellipsis whitespace-nowrap ${P?"line-through text-github-text-muted":""}`,title:w.file.path,children:w.name}),Q>0&&u.jsxs("span",{className:"text-github-warning text-sm font-medium ml-auto flex items-center gap-1",children:[u.jsx(xg,{size:14}),Q]})]},U.path)}return null};return u.jsxs("div",{className:"h-full flex flex-col",children:[u.jsxs("div",{className:"px-4 py-3 border-b border-github-border bg-github-bg-tertiary",children:[u.jsxs("h3",{className:"text-sm font-semibold text-github-text-primary m-0 mb-3",children:["Files changed (",r.length,")"]}),u.jsxs("div",{className:"relative",children:[u.jsx(uy,{size:16,className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-github-text-muted"}),u.jsx("input",{type:"text",placeholder:"Filter files...",value:v,onChange:w=>b(w.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"})]})]}),u.jsx("div",{className:"flex-1 overflow-y-auto",children:E.children?.map(w=>T(w))})]})}function Ym({style:r}){return u.jsx("svg",{width:"98",height:"96",viewBox:"0, 0, 98, 96",style:r,xmlns:"http://www.w3.org/2000/svg","aria-label":"GitHub",role:"img",children:u.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 Zm({isOpen:r,onClose:c}){const{enableScope:f,disableScope:o}=ur();return De("escape",()=>c(),{enabled:r},[c,r]),B.useEffect(()=>(r?o("navigation"):f("navigation"),()=>{f("navigation")}),[r,f,o]),r?u.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[u.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:c}),u.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:[u.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:[u.jsx("h2",{className:"text-lg font-semibold text-github-text-primary",children:"Keyboard Shortcuts"}),u.jsx("button",{onClick:c,className:"text-github-text-secondary hover:text-github-text-primary transition-colors","aria-label":"Close help modal",children:u.jsx(Hs,{size:20})})]}),u.jsxs("div",{className:"px-6 py-4 grid grid-cols-1 lg:grid-cols-2 gap-6",children:[u.jsxs("section",{children:[u.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Line Navigation"}),u.jsxs("div",{className:"space-y-1",children:[u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsxs("div",{className:"flex gap-2",children:[u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"j"}),u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↓"})]}),u.jsx("span",{className:"text-github-text-secondary",children:"Next line"})]}),u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsxs("div",{className:"flex gap-2",children:[u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"k"}),u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"↑"})]}),u.jsx("span",{className:"text-github-text-secondary",children:"Previous line"})]})]})]}),u.jsxs("section",{children:[u.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"File Navigation"}),u.jsxs("div",{className:"space-y-1",children:[u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"}),u.jsx("span",{className:"text-github-text-secondary",children:"Next file"})]}),u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["}),u.jsx("span",{className:"text-github-text-secondary",children:"Previous file"})]}),u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),u.jsx("span",{className:"text-github-text-muted",children:"+"}),u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"["})]}),u.jsx("span",{className:"text-github-text-secondary",children:"Jump to first file"})]}),u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),u.jsx("span",{className:"text-github-text-muted",children:"+"}),u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"]"})]}),u.jsx("span",{className:"text-github-text-secondary",children:"Jump to last file"})]})]})]}),u.jsxs("section",{children:[u.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Chunk Navigation"}),u.jsxs("div",{className:"space-y-1",children:[u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"n"}),u.jsx("span",{className:"text-github-text-secondary",children:"Next change chunk (added/deleted lines)"})]}),u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"p"}),u.jsx("span",{className:"text-github-text-secondary",children:"Previous change chunk (added/deleted lines)"})]})]})]}),u.jsxs("section",{children:[u.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Navigation"}),u.jsxs("div",{className:"space-y-1",children:[u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"N"}),u.jsx("span",{className:"text-github-text-secondary",children:"Next comment"})]}),u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"P"}),u.jsx("span",{className:"text-github-text-secondary",children:"Previous comment"})]})]})]}),u.jsxs("section",{children:[u.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Side Navigation (Side-by-side mode)"}),u.jsxs("div",{className:"space-y-1",children:[u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsxs("div",{className:"flex gap-2",children:[u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"h"}),u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"←"})]}),u.jsx("span",{className:"text-github-text-secondary",children:"Focus left side"})]}),u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsxs("div",{className:"flex gap-2",children:[u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"l"}),u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"→"})]}),u.jsx("span",{className:"text-github-text-secondary",children:"Focus right side"})]})]})]}),u.jsxs("section",{children:[u.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Comment Management"}),u.jsxs("div",{className:"space-y-1",children:[u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),u.jsx("span",{className:"text-github-text-muted",children:"+"}),u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"L"})]}),u.jsx("span",{className:"text-github-text-secondary",children:"View all comments list"})]}),u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),u.jsx("span",{className:"text-github-text-muted",children:"+"}),u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"C"})]}),u.jsx("span",{className:"text-github-text-secondary",children:"Copy all comments prompt"})]}),u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"Shift"}),u.jsx("span",{className:"text-github-text-muted",children:"+"}),u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"D"})]}),u.jsx("span",{className:"text-github-text-secondary",children:"Delete all comments"})]})]})]}),u.jsxs("section",{children:[u.jsx("h3",{className:"text-sm font-semibold text-github-text-primary mb-2",children:"Actions"}),u.jsxs("div",{className:"space-y-1",children:[u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"v"}),u.jsx("span",{className:"text-github-text-secondary",children:"Toggle viewed state of current file"})]}),u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"r"}),u.jsx("span",{className:"text-github-text-secondary",children:"Refresh diff when changes detected"})]}),u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"c"}),u.jsx("span",{className:"text-github-text-secondary",children:"Add comment at current line"})]}),u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"."}),u.jsx("span",{className:"text-github-text-secondary",children:"Move cursor to center of viewport"})]}),u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsx("kbd",{className:"px-2 py-1 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary font-mono",children:"?"}),u.jsx("span",{className:"text-github-text-secondary",children:"Show/hide this help"})]})]})]}),u.jsx("div",{className:"pt-4 border-t border-github-border lg:col-span-2",children:u.jsx("p",{className:"text-xs text-github-text-secondary",children:"Shortcuts are disabled when typing in input fields."})})]})]})]}):null}function Xm({style:r}){return u.jsxs("svg",{style:r,viewBox:"0 0 720 190",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-label":"difit",role:"img",children:[u.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"}),u.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 Vm({shouldReload:r,isReloading:c,onReload:f,changeType:o,className:p=""}){if(!r)return null;const g=()=>{switch(o){case"commit":return"New commits available";case"staging":return"Staging changes detected";case"file":return"File changes detected";default:return"Changes detected"}};return u.jsxs("button",{onClick:f,disabled:c,className:`
|
|
209
|
+
flex items-center gap-1.5 px-3 py-1.5 text-xs rounded-md border ${p}
|
|
210
|
+
${c?"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"}
|
|
211
|
+
`,title:`${g()} - Click to refresh`,children:[u.jsx(iy,{size:12,className:`${c?"animate-spin":""}`}),"Refresh"]})}const Qm={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark"},Fm=[{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 $m({isOpen:r,onClose:c,settings:f,onSettingsChange:o}){const[p,g]=B.useState(f),{enableScope:N,disableScope:j}=ur();B.useEffect(()=>{g(f)},[f]),B.useEffect(()=>{o(p)},[p,o]),B.useEffect(()=>(r?j("navigation"):N("navigation"),()=>{N("navigation")}),[r,N,j]);const x=()=>p.theme==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":p.theme,h=()=>x()==="light"?Pd:eg,v=k=>{const q={...p,theme:k},A=(k==="auto"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":k)==="light"?Pd:eg;if(!A.some(T=>T.id===p.syntaxTheme)&&A.length>0){const T=A[0];T&&(q.syntaxTheme=T.id)}g(q)},b=()=>{g(Qm)};return r?u.jsx("div",{className:"fixed inset-0 flex items-center justify-center z-50 pointer-events-none",children:u.jsxs("div",{className:"bg-github-bg-secondary border border-github-border rounded-lg w-full max-w-md mx-4 pointer-events-auto",children:[u.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-github-border",children:[u.jsxs("h2",{className:"text-lg font-semibold text-github-text-primary flex items-center gap-2",children:[u.jsx(Sg,{size:20}),"Appearance Settings"]}),u.jsx("button",{onClick:c,className:"text-github-text-secondary hover:text-github-text-primary p-1",children:u.jsx(Hs,{size:18})})]}),u.jsxs("div",{className:"p-4 space-y-6",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Size"}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("input",{type:"range",min:"10",max:"20",step:"1",value:p.fontSize,onChange:k=>g({...p,fontSize:parseInt(k.target.value)}),className:"flex-1 accent-github-accent"}),u.jsxs("span",{className:"text-sm text-github-text-secondary w-8 text-right",children:[p.fontSize,"px"]})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Font Family"}),u.jsx("select",{value:p.fontFamily,onChange:k=>g({...p,fontFamily:k.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:Fm.map(k=>u.jsx("option",{value:k.value,children:k.name},k.value))})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Theme"}),u.jsx("div",{className:"flex gap-2",children:["light","dark","auto"].map(k=>u.jsx("button",{onClick:()=>v(k),className:`px-3 py-2 text-sm rounded border transition-colors ${p.theme===k?"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:k.charAt(0).toUpperCase()+k.slice(1)},k))})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-github-text-primary mb-2",children:"Syntax Highlighting Theme"}),u.jsx("select",{value:p.syntaxTheme,onChange:k=>g({...p,syntaxTheme:k.target.value}),className:"w-full p-2 bg-github-bg-tertiary border border-github-border rounded text-github-text-primary text-sm",children:h().map(k=>u.jsx("option",{value:k.id,children:k.label},k.id))})]})]}),u.jsxs("div",{className:"flex items-center justify-between p-4 border-t border-github-border",children:[u.jsx("button",{onClick:b,className:"px-3 py-2 text-sm text-github-text-secondary hover:text-github-text-primary",children:"Reset to Default"}),u.jsx("button",{onClick:c,className:"px-4 py-2 text-sm bg-github-accent text-white rounded hover:bg-green-600",children:"Close"})]})]})}):null}const tg={position:"absolute",fontSize:"16px",pointerEvents:"none",zIndex:100,transform:"translateY(20px) scale(0.5)",opacity:0},Km=({isActive:r})=>r?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"animate-sparkle-rise",style:{...tg,left:"-12px",animationDelay:"0s"},children:"✨"}),u.jsx("div",{className:"animate-sparkle-rise",style:{...tg,right:"-12px",animationDelay:"0.3s"},children:"✨"})]}):null,lg={fontSize:14,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif',theme:"dark",syntaxTheme:"vsDark"},ag="reviewit-appearance-settings";function Im(){const[r,c]=B.useState(lg);B.useEffect(()=>{try{const p=localStorage.getItem(ag);if(p){const g=JSON.parse(p);c({...lg,...g})}}catch(p){console.warn("Failed to load appearance settings from localStorage:",p)}},[]),B.useEffect(()=>{const p=document.documentElement;if(p.style.setProperty("--app-font-size",`${r.fontSize}px`),p.style.setProperty("--app-font-family",r.fontFamily),r.theme==="auto"){const g=window.matchMedia("(prefers-color-scheme: dark)");f(g.matches?"dark":"light");const N=j=>{f(j.matches?"dark":"light")};return g.addEventListener("change",N),()=>g.removeEventListener("change",N)}else{f(r.theme);return}},[r]);const f=p=>{const g=document.documentElement;g.setAttribute("data-theme",p),p==="light"?(g.style.setProperty("--color-github-bg-primary","#ffffff"),g.style.setProperty("--color-github-bg-secondary","#f6f8fa"),g.style.setProperty("--color-github-bg-tertiary","#f1f3f4"),g.style.setProperty("--color-github-border","#d1d9e0"),g.style.setProperty("--color-github-text-primary","#24292f"),g.style.setProperty("--color-github-text-secondary","#656d76"),g.style.setProperty("--color-github-text-muted","#8c959f"),g.style.setProperty("--color-github-accent","#1f883d"),g.style.setProperty("--color-github-danger","#cf222e"),g.style.setProperty("--color-github-warning","#bf8700"),g.style.setProperty("--color-diff-addition-bg","#d1f4cd"),g.style.setProperty("--color-diff-addition-border","#1f883d"),g.style.setProperty("--color-diff-deletion-bg","#ffd8d3"),g.style.setProperty("--color-diff-deletion-border","#cf222e"),g.style.setProperty("--color-diff-neutral-bg","#f1f3f4"),g.style.setProperty("--color-comment-bg","#fff8e1"),g.style.setProperty("--color-comment-border","#ffd54f"),g.style.setProperty("--color-comment-text","#5d4037"),g.style.setProperty("--color-yellow-btn-bg","#fef3c7"),g.style.setProperty("--color-yellow-btn-border","#f59e0b"),g.style.setProperty("--color-yellow-btn-text","#92400e"),g.style.setProperty("--color-yellow-btn-hover-bg","#fde68a"),g.style.setProperty("--color-yellow-btn-hover-border","#d97706"),g.style.setProperty("--color-yellow-path-bg","#fde68a"),g.style.setProperty("--color-yellow-path-text","#92400e")):(g.style.setProperty("--color-github-bg-primary","#0d1117"),g.style.setProperty("--color-github-bg-secondary","#161b22"),g.style.setProperty("--color-github-bg-tertiary","#21262d"),g.style.setProperty("--color-github-border","#30363d"),g.style.setProperty("--color-github-text-primary","#f0f6fc"),g.style.setProperty("--color-github-text-secondary","#8b949e"),g.style.setProperty("--color-github-text-muted","#6e7681"),g.style.setProperty("--color-github-accent","#238636"),g.style.setProperty("--color-github-danger","#da3633"),g.style.setProperty("--color-github-warning","#d29922"),g.style.setProperty("--color-diff-addition-bg","#0d4429"),g.style.setProperty("--color-diff-addition-border","#1b7c3d"),g.style.setProperty("--color-diff-deletion-bg","#67060c"),g.style.setProperty("--color-diff-deletion-border","#da3633"),g.style.setProperty("--color-diff-neutral-bg","#21262d"),g.style.setProperty("--color-comment-bg","#1c2128"),g.style.setProperty("--color-comment-border","#373e47"),g.style.setProperty("--color-comment-text","#e6edf3"),g.style.setProperty("--color-yellow-btn-bg","rgba(180, 83, 9, 0.2)"),g.style.setProperty("--color-yellow-btn-border","rgba(217, 119, 6, 0.5)"),g.style.setProperty("--color-yellow-btn-text","#fbbf24"),g.style.setProperty("--color-yellow-btn-hover-bg","rgba(180, 83, 9, 0.3)"),g.style.setProperty("--color-yellow-btn-hover-border","#d97706"),g.style.setProperty("--color-yellow-path-bg","rgba(180, 83, 9, 0.3)"),g.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{settings:r,updateSettings:p=>{c(p);try{localStorage.setItem(ag,JSON.stringify(p))}catch(g){console.warn("Failed to save appearance settings to localStorage:",g)}}}}var zg=(r=>(r.DEFAULT="default",r.WORKING="working",r.STAGED="staged",r.DOT="dot",r.SPECIFIC="specific",r))(zg||{});function Jm(r){const c=B.useRef(null),f=B.useRef(null),o=B.useRef(0),p=5,g=3e3,[N,j]=B.useState({isWatchEnabled:!1,diffMode:zg.DEFAULT,shouldReload:!1,isReloading:!1,lastChangeTime:null,lastChangeType:null,connectionStatus:"disconnected"}),[x,h]=B.useState(null),v=B.useCallback(()=>{if(!c.current)try{const q=new EventSource("/api/watch");c.current=q,q.onopen=()=>{console.log("Connected to file watch service"),j(E=>({...E,connectionStatus:"connected"})),o.current=0,h(null)},q.onmessage=E=>{try{const A=JSON.parse(E.data);switch(A.type){case"connected":j(C=>({...C,isWatchEnabled:!0,diffMode:A.diffMode,connectionStatus:"connected"}));break;case"reload":console.log("File changes detected, showing reload button:",A.changeType),j(C=>({...C,shouldReload:!0,lastChangeTime:new Date,lastChangeType:A.changeType}));break;case"error":console.error("File watch error:",A.message),h(A.message||"File watch error occurred");break}}catch(A){console.error("Error parsing watch event:",A)}},q.onerror=()=>{console.log("File watch connection lost"),j(E=>({...E,connectionStatus:"disconnected"})),c.current&&(c.current.close(),c.current=null),o.current<p?(j(E=>({...E,connectionStatus:"reconnecting"})),o.current+=1,f.current=setTimeout(()=>{console.log(`Attempting to reconnect to file watch service (${o.current}/${p})...`),v()},g)):(console.error("Max reconnection attempts reached"),h("Lost connection to file watch service"))}}catch(q){console.error("Failed to connect to file watch service:",q),h("Failed to connect to file watch service")}},[p,g]),b=B.useCallback(async()=>{if(!N.isReloading){j(q=>({...q,isReloading:!0}));try{r&&await r(),j(q=>({...q,shouldReload:!1,isReloading:!1,lastChangeTime:null,lastChangeType:null}))}catch(q){console.error("Reload failed:",q),h("Failed to reload diff data"),j(E=>({...E,isReloading:!1}))}}},[r,N.isReloading]),k=()=>{c.current&&(c.current.close(),c.current=null),f.current&&(clearTimeout(f.current),f.current=null)};return B.useEffect(()=>(v(),k),[v]),B.useEffect(()=>k,[]),{shouldReload:N.shouldReload,isConnected:N.connectionStatus==="connected",error:x,reload:b,watchState:N}}const zs={SCROLL_CONTAINER:"main.overflow-y-auto"};function Ol(r,c){const f=`file-${r.fileIndex}-chunk-${r.chunkIndex}-line-${r.lineIndex}`;return c==="side-by-side"?`${f}-${r.side}`:f}function Mg(r,c){return`${r}:${c}`}function Wm(r,c){const f=c[r.fileIndex]?.chunks[r.chunkIndex]?.lines[r.lineIndex];return f&&(f.type==="add"||f.type==="delete"||f.type==="normal")?f.type:null}function At(r,c){const f=Wm(r,c);return f?f==="normal"?!0:f==="delete"?r.side==="left":f==="add"?r.side==="right":!1:!1}function Lg(r,c){return At(r,c)?r:{...r,side:r.side==="left"?"right":"left"}}const ng={VIEWPORT_OFFSET_RATIO:1/3};function Pm(r,c,f,o){return{line:p=>{const g=r[p.fileIndex];return!g||o?.has(g.path)?!1:f==="inline"||At(p,r)},chunk:p=>{const g=r[p.fileIndex];if(!g||o?.has(g.path))return!1;const N=g.chunks[p.chunkIndex]?.lines[p.lineIndex];if(!N||N.type==="normal")return!1;if(p.lineIndex===0)return!0;const j=g.chunks[p.chunkIndex]?.lines[p.lineIndex-1];return!j||j.type==="normal"},comment:p=>{const g=r[p.fileIndex];if(!g||o?.has(g.path))return!1;const N=g.chunks[p.chunkIndex]?.lines[p.lineIndex];if(!N||N.type==="delete")return!1;const j=N.newLineNumber;if(!j)return!1;const x=Mg(g.path,j);return c.has(x)},file:p=>p.chunkIndex===0&&p.lineIndex===0}}function e0(){return r=>{const c=document.getElementById(r);if(!c)return;const f=document.querySelector(zs.SCROLL_CONTAINER);if(!f)throw new Error(`Scrollable container (${zs.SCROLL_CONTAINER}) not found`);const o=c.getBoundingClientRect(),p=f.getBoundingClientRect(),g=f.clientHeight,N=f.scrollTop,j=Math.max(p.top,0),x=Math.min(p.bottom,window.innerHeight);if(!(o.top>=j&&o.bottom<=x)){const A=t0(c,f)-g*ng.VIEWPORT_OFFSET_RATIO;f.scrollTop=Math.max(0,A);return}const v=o.bottom>Math.min(p.bottom,window.innerHeight),k=c.offsetTop-f.offsetTop-g*ng.VIEWPORT_OFFSET_RATIO,q=k>N;v&&q&&(f.scrollTop=Math.max(0,k))}}function t0(r,c){let f=r,o=0;for(;f&&f!==c&&f.offsetParent;)o+=f.offsetTop,f=f.offsetParent;return f&&f!==c&&(o+=f.offsetTop),o}function l0(r){return r||{fileIndex:0,chunkIndex:0,lineIndex:-1,side:"right"}}function a0(r,c,f){return f&&r.fileIndex===c.fileIndex&&r.chunkIndex===c.chunkIndex&&r.lineIndex===c.lineIndex}function n0(r,c,f){let{fileIndex:o,chunkIndex:p,lineIndex:g}=r;const N=f.length;let j=0;if(c==="next")for(g++;j<N;){if(f[o]?.chunks[p]?.lines[g])return{...r,fileIndex:o,chunkIndex:p,lineIndex:g};p++,g=0,f[o]?.chunks[p]||(o++,p=0,g=0,o>=N&&(o=0,j++))}else for(g--;j<N;){if(g<0)if(p--,p<0){o--,o<0&&(o=N-1,j++);const x=f[o];if(x&&x.chunks.length>0){p=x.chunks.length-1;const h=x.chunks[p];g=h&&h.lines.length>0?h.lines.length-1:-1}else p=-1,g=-1}else{const x=f[o]?.chunks[p];g=x&&x.lines.length>0?x.lines.length-1:-1}if(g>=0&&f[o]?.chunks[p]?.lines[g])return{...r,fileIndex:o,chunkIndex:p,lineIndex:g};g<0||g--}return null}function i0(r,c,f,o,p){let g=r,N=!1;for(;g;){const j=n0(g,c,o);if(!j||(g=j,a0(g,r,N)))break;if(N=!0,f(g,o)){const x=Lg(g,o);return{position:x,scrollTarget:Ol(x,p)}}}return{position:null,scrollTarget:null}}function r0({files:r,comments:c,viewMode:f="inline",reviewedFiles:o,onToggleReviewed:p,onCreateComment:g,onCopyAllComments:N,onDeleteAllComments:j,onShowCommentsList:x,onRefresh:h}){const[v,b]=B.useState(null),[k,q]=B.useState(!1),E=B.useMemo(()=>e0(),[]),A=B.useMemo(()=>{const ie=new Map;return c.forEach($=>{const me=Array.isArray($.line)?$.line[0]:$.line,re=Mg($.file,me);ie.has(re)||ie.set(re,[]),ie.get(re)?.push($)}),ie},[c]),C=B.useMemo(()=>Pm(r,A,f,o),[r,A,f,o]),T=B.useCallback((ie,$)=>{if(r.length===0)return{position:null,scrollTarget:null};const me=l0(v);return i0(me,ie,$,r,f)},[v,r,f]),w=B.useCallback(ie=>$=>{const me=T($,ie);me.position&&(b(me.position),me.scrollTarget&&E(me.scrollTarget))},[T,E]),H=B.useMemo(()=>w(C.line),[w,C.line]),U=B.useMemo(()=>w(C.chunk),[w,C.chunk]),Q=B.useMemo(()=>w(C.file),[w,C.file]),P=B.useMemo(()=>w(C.comment),[w,C.comment]),W=B.useCallback(ie=>{if(!v||f!=="side-by-side")return;let $={...v,side:ie};const me=r[v.fileIndex]?.chunks[v.chunkIndex]?.lines[v.lineIndex];if(me){if(ie==="left"&&me.type==="add"&&v.lineIndex>0){if(r[v.fileIndex]?.chunks[v.chunkIndex]?.lines[v.lineIndex-1]?.type==="delete"){$={...$,lineIndex:v.lineIndex-1},b($),E(Ol($,f));return}}else if(ie==="right"&&me.type==="delete"&&r[v.fileIndex]?.chunks[v.chunkIndex]?.lines[v.lineIndex+1]?.type==="add"){$={...$,lineIndex:v.lineIndex+1},b($),E(Ol($,f));return}}if(!At($,r)){const re=r[v.fileIndex];if(!re)return;const J=re.chunks[v.chunkIndex];if(J){for(let y=v.lineIndex+1;y<J.lines.length;y++){const Y={...$,lineIndex:y};if(At(Y,r)){$=Y;break}}if(!At($,r))for(let y=v.lineIndex-1;y>=0;y--){const Y={...$,lineIndex:y};if(At(Y,r)){$=Y;break}}}if(!At($,r)){for(let y=v.chunkIndex+1;y<re.chunks.length;y++){const Y=re.chunks[y];if(Y){for(let F=0;F<Y.lines.length;F++){const ae={...$,chunkIndex:y,lineIndex:F};if(At(ae,r)){$=ae;break}}if(At($,r))break}}if(!At($,r))for(let y=v.chunkIndex-1;y>=0;y--){const Y=re.chunks[y];if(Y){for(let F=Y.lines.length-1;F>=0;F--){const ae={...$,chunkIndex:y,lineIndex:F};if(At(ae,r)){$=ae;break}}if(At($,r))break}}}}b($),E(Ol($,f))},[v,f,E,r]),oe=B.useCallback(()=>{const ie=document.querySelector(zs.SCROLL_CONTAINER);if(!ie)return;const $=ie.getBoundingClientRect(),me=$.top+$.height/2;let re=1/0,J=null;r.forEach((y,Y)=>{y.chunks.forEach((F,ae)=>{F.lines.forEach((m,L)=>{const K=f==="side-by-side"?["left","right"]:["right"];for(const I of K){const te={fileIndex:Y,chunkIndex:ae,lineIndex:L,side:I};if(f==="side-by-side"&&!At(te,r))continue;const ge=Ol(te,f),ne=document.getElementById(ge);if(ne){const ce=ne.getBoundingClientRect(),ee=ce.top+ce.height/2,Ae=Math.abs(ee-me);ce.top<$.bottom&&ce.bottom>$.top&&Ae<re&&(re=Ae,J=te)}}})})}),J&&b(J)},[r,f,b]),be=B.useCallback(ie=>{if(!ie){b(null);return}const $=Lg(ie,r);b($),E(Ol($,f))},[r,f,E]),pe={scopes:"navigation",enableOnFormTags:!1,preventDefault:!0};return De("j, down",()=>H("next"),pe,[H]),De("k, up",()=>H("prev"),pe,[H]),De("n",()=>U("next"),pe,[U]),De("p",()=>U("prev"),pe,[U]),De("shift+n",()=>P("next"),pe,[P]),De("shift+p",()=>P("prev"),pe,[P]),De("]",()=>Q("next"),{...pe,useKey:!0},[Q]),De("[",()=>Q("prev"),{...pe,useKey:!0},[Q]),De("{",()=>{r.length>0&&(b({fileIndex:0,chunkIndex:0,lineIndex:0,side:f==="side-by-side"?"left":"right"}),E(Ol({fileIndex:0,chunkIndex:0,lineIndex:0,side:f==="side-by-side"?"left":"right"},f)))},{...pe,useKey:!0},[r,f,E]),De("}",()=>{if(r.length>0){const ie=r.length-1,$=r[ie];$&&$.chunks.length>0&&(b({fileIndex:ie,chunkIndex:0,lineIndex:0,side:f==="side-by-side"?"left":"right"}),E(Ol({fileIndex:ie,chunkIndex:0,lineIndex:0,side:f==="side-by-side"?"left":"right"},f)))}},{...pe,useKey:!0},[r,f,E]),De("h, left",()=>W("left"),{...pe,enabled:f==="side-by-side"},[W,f]),De("l, right",()=>W("right"),{...pe,enabled:f==="side-by-side"},[W,f]),De("v",()=>{if(v){const ie=r[v.fileIndex];ie&&p(ie.path)}},pe,[v,r,p]),De("r",()=>{h&&h()},pe,[h]),De("c",()=>{if(v&&g){const ie=r[v.fileIndex]?.chunks[v.chunkIndex]?.lines[v.lineIndex];ie&&ie.type!=="delete"&&g()}},pe,[v,r,g]),De("?",()=>q(!k),{...pe,useKey:!0},[k]),De(".",()=>oe(),{...pe,useKey:!0},[oe]),De("shift+c",()=>{N&&N()},{...pe,scopes:["navigation","comments-list"]},[N]),De("shift+d",()=>{j&&j()},{...pe,scopes:["navigation","comments-list"]},[j]),De("shift+l",()=>{x&&x()},pe,[x]),{cursor:v,isHelpOpen:k,setIsHelpOpen:q,setCursorPosition:be}}function u0(r){const[c,f]=B.useState([]),o=r?`difit-comments-${r}`:"difit-comments";B.useEffect(()=>{const v=localStorage.getItem(o);if(v)try{f(JSON.parse(v))}catch(b){console.error("Failed to parse saved comments:",b)}},[o]),B.useEffect(()=>{localStorage.setItem(o,JSON.stringify(c))},[c,o]);const p=(v,b,k,q)=>{console.log("Adding comment with codeContent:",q);const E={id:`${v}:${Array.isArray(b)?`${b[0]}-${b[1]}`:b}:${Date.now()}`,file:v,line:b,body:k,timestamp:new Date().toISOString(),codeContent:q};return f(A=>[...A,E]),E},g=v=>{f(b=>b.filter(k=>k.id!==v))},N=(v,b)=>{f(k=>k.map(q=>q.id===v?{...q,body:b}:q))},j=()=>{f([]),localStorage.removeItem(o)},x=v=>Array.isArray(v.line)?`${v.file}:L${v.line[0]}-L${v.line[1]}
|
|
212
|
+
${v.body}`:`${v.file}:L${v.line}
|
|
213
|
+
${v.body}`;return{comments:c,addComment:p,removeComment:g,updateComment:N,clearAllComments:j,generatePrompt:x,generateAllCommentsPrompt:()=>c.length===0?"No comments available.":c.map(x).join(`
|
|
214
|
+
=====
|
|
215
|
+
`)}}const Os=new Map;let s0=0;function Rs(r){return Os.has(r)||Os.set(r,`file-${++s0}`),Os.get(r)??""}function o0(r,c,f){for(let o=0;o<r.chunks.length;o++){const p=r.chunks[o];if(p)for(let g=0;g<p.lines.length;g++){const N=p.lines[g];if(!N)continue;if((N.newLineNumber||N.oldLineNumber)===f)return{fileIndex:c,chunkIndex:o,lineIndex:g,side:N.newLineNumber?"right":"left"}}}return null}function c0(r,c){const f=c.findIndex(g=>g.path===r.file);if(f===-1)return null;const o=c[f];if(!o)return null;const p=Array.isArray(r.line)?r.line[1]:r.line;return o0(o,f,p)}function f0(){const[r,c]=B.useState(null),[f,o]=B.useState(new Set),[p,g]=B.useState("side-by-side"),[N,j]=B.useState(!0),[x,h]=B.useState(!0),[v,b]=B.useState(null),[k,q]=B.useState(!1),[E,A]=B.useState(320),[C,T]=B.useState(!1),[w,H]=B.useState(!0),[U,Q]=B.useState(!1),[P,W]=B.useState(!1),[oe,be]=B.useState(!1),[pe,ie]=B.useState(!1),{settings:$,updateSettings:me}=Im(),{comments:re,addComment:J,removeComment:y,updateComment:Y,clearAllComments:F,generatePrompt:ae,generateAllCommentsPrompt:m}=u0(r?.commit),L=de=>{o(we=>{const Le=new Set(we);return Le.has(de)?Le.delete(de):(Le.add(de),setTimeout(()=>{const Xt=document.getElementById(Rs(de));Xt&&Xt.scrollIntoView({behavior:"instant",block:"start"})},100)),Le})},[K,I]=B.useState(null),{shouldReload:te,reload:ge,watchState:ne}=Jm(async()=>{await Dl()}),{cursor:ce,isHelpOpen:ee,setIsHelpOpen:Ae,setCursorPosition:qe}=r0({files:r?.files||[],comments:re,viewMode:p,reviewedFiles:f,onToggleReviewed:L,onCreateComment:()=>{ce&&I({fileIndex:ce.fileIndex,chunkIndex:ce.chunkIndex,lineIndex:ce.lineIndex})},onCopyAllComments:()=>{re.length>0&&Zn()},onDeleteAllComments:()=>{re.length>0&&confirm("Delete all comments?")&&F()},onShowCommentsList:()=>{ie(!0)},onRefresh:()=>{ge()}}),ea=de=>{de.preventDefault(),Q(!0);const we=de.clientX,Le=E,Pe=Ya=>{const zl=Math.max(200,Math.min(600,Le+(Ya.clientX-we)));A(zl)},Xt=()=>{Q(!1),document.removeEventListener("mousemove",Pe),document.removeEventListener("mouseup",Xt)};document.addEventListener("mousemove",Pe),document.addEventListener("mouseup",Xt)},Ga=de=>{const we=["pnpm-lock.yaml","package-lock.json","yarn.lock","Cargo.lock","Gemfile.lock","composer.lock","Pipfile.lock","poetry.lock","go.sum","mix.lock"],Le=de.split("/").pop()||"";return we.includes(Le)},Dl=B.useCallback(async()=>{try{const de=await fetch(`/api/diff?ignoreWhitespace=${N}`);if(!de.ok)throw new Error("Failed to fetch diff data");const we=await de.json();c(we),we.mode&&g(we.mode);const Le=we.files.filter(Pe=>Ga(Pe.path)).map(Pe=>Pe.path);Le.length>0&&o(Pe=>new Set([...Pe,...Le]))}catch(de){b(de instanceof Error?de.message:"Unknown error")}finally{h(!1)}},[N]);B.useEffect(()=>{Dl()},[Dl]);const ta=B.useRef(!1);B.useEffect(()=>{r?.clearComments&&!ta.current&&(ta.current=!0,F(),console.log("✅ All existing comments cleared as requested via --clean flag"))},[r?.clearComments,F]),B.useEffect(()=>{r&&(f.size<r.files.length?be(!1):f.size===r.files.length&&!oe&&(W(!0),be(!0),setTimeout(()=>{W(!1)},1e3)))},[f.size,r,oe]),B.useEffect(()=>{if(re.length>0){const we=JSON.stringify({comments:re});fetch("/api/comments",{method:"POST",headers:{"Content-Type":"application/json"},body:we}).catch(Le=>{console.error("Failed to sync comments:",Le)})}const de=()=>{if(re.length>0){const we=JSON.stringify({comments:re});navigator.sendBeacon("/api/comments",we)}};return window.addEventListener("beforeunload",de),()=>{window.removeEventListener("beforeunload",de)}},[re]),B.useEffect(()=>{const de=new EventSource("/api/heartbeat");return de.onopen=()=>{console.log("Connected to server heartbeat")},de.onerror=()=>{console.log("Server connection lost"),de.close()},()=>{de.close()}},[]);const cr=(de,we,Le,Pe)=>(J(de,we,Le,Pe),Promise.resolve()),Zn=async()=>{try{const de=m();await navigator.clipboard.writeText(de),q(!0),setTimeout(()=>q(!1),2e3)}catch(de){console.error("Failed to copy all comments prompt:",de)}},wt=de=>{if(!r)return;const we=c0(de,r.files);we&&qe(we)},fr=de=>{qe(null),de.target.closest('[data-comment-button="true"]')||Xn(de)},Xn=de=>{document.querySelectorAll('form[data-empty="true"]').forEach(Le=>{Le.contains(de.target)||Le.querySelector('button[type="button"]')?.click()})};return x?u.jsx("div",{className:"flex items-center justify-center h-screen bg-github-bg-primary",children:u.jsx("div",{className:"text-github-text-secondary text-base",children:"Loading diff..."})}):v?u.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-github-bg-primary text-center gap-2",children:[u.jsx("h2",{className:"text-github-danger text-2xl mb-2",children:"Error"}),u.jsx("p",{className:"text-github-text-secondary text-base",children:v})]}):r?u.jsx(Sy,{children:u.jsxs("div",{className:"h-screen flex flex-col",onClickCapture:fr,children:[u.jsxs("header",{className:"bg-github-bg-secondary border-b border-github-border flex items-center",children:[u.jsxs("div",{className:`px-4 py-3 flex items-center justify-between gap-4 ${U?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:w?`${E}px`:"auto",minWidth:w?"200px":"auto",maxWidth:w?"600px":"auto"},children:[u.jsx("h1",{children:u.jsx(Xm,{style:{height:"18px",color:"var(--color-github-text-secondary)"}})}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("button",{onClick:()=>H(!w),className:"p-2 text-github-text-secondary hover:text-github-text-primary hover:bg-github-bg-tertiary rounded transition-colors",title:w?"Collapse file tree":"Expand file tree","aria-expanded":w,"aria-controls":"file-tree-panel","aria-label":"Toggle file tree panel",children:w?u.jsx(Pb,{size:18}):u.jsx(ty,{size:18})}),u.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:u.jsx(Sg,{size:18})})]})]}),u.jsx("div",{className:`border-r border-github-border ${U?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:w?"4px":"0px",height:"calc(100% - 16px)",margin:"8px 0",transform:"translateX(-2px)"}}),u.jsxs("div",{className:"flex-1 px-4 py-3 flex items-center justify-between gap-4",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs("div",{className:"flex bg-github-bg-tertiary border border-github-border rounded-md p-1",children:[u.jsxs("button",{onClick:()=>g("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 ${p==="side-by-side"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[u.jsx(Mb,{size:14}),"Side by Side"]}),u.jsxs("button",{onClick:()=>g("inline"),className:`px-3 py-1.5 text-xs font-medium rounded transition-all duration-200 flex items-center gap-1.5 cursor-pointer ${p==="inline"?"bg-github-bg-primary text-github-text-primary shadow-sm":"text-github-text-secondary hover:text-github-text-primary"}`,children:[u.jsx(kb,{size:14}),"Inline"]})]}),u.jsx(Eg,{checked:N,onChange:j,label:"Ignore Whitespace",title:N?"Show whitespace changes":"Ignore whitespace changes"}),u.jsx(Vm,{shouldReload:te,isReloading:ne.isReloading,onReload:ge,changeType:ne.lastChangeType})]}),u.jsxs("div",{className:"flex items-center gap-4 text-sm text-github-text-secondary",children:[re.length>0&&u.jsx(dy,{commentsCount:re.length,isCopiedAll:k,onCopyAll:Zn,onDeleteAll:F,onViewAll:()=>ie(!0)}),u.jsxs("div",{className:"flex flex-col gap-1 items-center",children:[u.jsxs("div",{className:"text-xs relative",children:[f.size===r.files.length?"All diffs difit-ed!":`${f.size} / ${r.files.length} files viewed`,u.jsx(Km,{isActive:P})]}),u.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:u.jsx("div",{className:"absolute top-0 right-0 h-full transition-all duration-300 ease-out",style:{width:`${(r.files.length-f.size)/r.files.length*100}%`,backgroundColor:(()=>{const de=(r.files.length-f.size)/r.files.length*100;return de>50?"var(--color-github-accent)":de>20?"var(--color-github-warning)":"var(--color-github-danger)"})()}})})]}),u.jsxs("span",{children:["Reviewing:"," ",u.jsx("code",{className:"bg-github-bg-tertiary px-1.5 py-0.5 rounded text-xs text-github-text-primary",children:r.commit.includes("...")?u.jsxs(u.Fragment,{children:[u.jsxs("span",{className:"text-github-text-secondary font-medium",children:[r.commit.split("...")[0],"..."]}),u.jsx("span",{className:"font-medium",children:r.commit.split("...")[1]})]}):r.commit})]}),u.jsxs("span",{children:[r.files.length," file",r.files.length!==1?"s":""," changed"]})]})]})]}),u.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[u.jsx("div",{className:`relative overflow-hidden ${U?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:w?`${E}px`:"0px"},children:u.jsxs("aside",{id:"file-tree-panel",className:"bg-github-bg-secondary border-r border-github-border overflow-y-auto flex flex-col",style:{width:`${E}px`,minWidth:"200px",maxWidth:"600px",height:"100%"},children:[u.jsx("div",{className:"flex-1 overflow-y-auto",children:u.jsx(Gm,{files:r.files,onScrollToFile:de=>{const we=document.getElementById(Rs(de));we&&we.scrollIntoView({behavior:"smooth",block:"start"})},comments:re,reviewedFiles:f,onToggleReviewed:L,selectedFileIndex:ce?.fileIndex??null})}),u.jsxs("div",{className:"p-4 border-t border-github-border flex justify-between items-center",children:[u.jsxs("button",{onClick:()=>Ae(!0),className:"flex items-center gap-1.5 text-github-text-secondary hover:text-github-text-primary transition-colors",title:"Keyboard shortcuts (Shift+?)",children:[u.jsx($b,{size:16}),u.jsx("span",{className:"text-sm",children:"Shortcuts"})]}),u.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:[u.jsx("span",{className:"text-sm",children:"Star on GitHub"}),u.jsx(Ym,{style:{height:"18px",width:"18px"}})]})]})]})}),u.jsx("div",{className:`bg-github-border hover:bg-github-text-muted cursor-col-resize ${U?"":"!transition-all !duration-300 !ease-in-out"}`,style:{width:w?"4px":"0px"},onMouseDown:ea,title:"Drag to resize file list"}),u.jsx("main",{className:"flex-1 overflow-y-auto",children:r.files.map((de,we)=>u.jsx("div",{id:Rs(de.path),className:"mb-6",children:u.jsx(Hm,{file:de,comments:re.filter(Le=>Le.file===de.path),diffMode:p,reviewedFiles:f,onToggleReviewed:L,onAddComment:cr,onGeneratePrompt:ae,onRemoveComment:y,onUpdateComment:Y,syntaxTheme:$.syntaxTheme,baseCommitish:r.baseCommitish,targetCommitish:r.targetCommitish,cursor:ce?.fileIndex===we?ce:null,fileIndex:we,onLineClick:(Le,Pe,Xt,Ya)=>{qe({fileIndex:Le,chunkIndex:Pe,lineIndex:Xt,side:Ya})},commentTrigger:K?.fileIndex===we?K:null,onCommentTriggerHandled:()=>I(null)})},de.path))})]}),u.jsx($m,{isOpen:C,onClose:()=>T(!1),settings:$,onSettingsChange:me}),u.jsx(Zm,{isOpen:ee,onClose:()=>Ae(!1)}),u.jsx(gy,{isOpen:pe,onClose:()=>ie(!1),onNavigate:wt,comments:re,onRemoveComment:y,onGeneratePrompt:ae,onUpdateComment:Y})]})}):u.jsxs("div",{className:"flex flex-col items-center justify-center h-screen bg-github-bg-primary text-center gap-2",children:[u.jsx("h2",{className:"text-github-danger text-2xl mb-2",children:"No data"}),u.jsx("p",{className:"text-github-text-secondary text-base",children:"No diff data available"})]})}const Ug=document.getElementById("root");if(!Ug)throw new Error("Root element not found");cb.createRoot(Ug).render(u.jsx(Pl.StrictMode,{children:u.jsx(Sb,{initiallyActiveScopes:["navigation"],children:u.jsx(f0,{})})}));export{ig as g};
|