vibe-replay 0.0.7 → 0.0.8

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.
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
6
6
  <title>vibe-replay</title>
7
7
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
8
- <script type="module" crossorigin>(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const m of f)if(m.type==="childList")for(const p of m.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&u(p)}).observe(document,{childList:!0,subtree:!0});function o(f){const m={};return f.integrity&&(m.integrity=f.integrity),f.referrerPolicy&&(m.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?m.credentials="include":f.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function u(f){if(f.ep)return;f.ep=!0;const m=o(f);fetch(f.href,m)}})();function cm(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Fo={exports:{}},Fa={};/**
8
+ <script type="module" crossorigin>(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))o(f);new MutationObserver(f=>{for(const m of f)if(m.type==="childList")for(const p of m.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&o(p)}).observe(document,{childList:!0,subtree:!0});function u(f){const m={};return f.integrity&&(m.integrity=f.integrity),f.referrerPolicy&&(m.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?m.credentials="include":f.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function o(f){if(f.ep)return;f.ep=!0;const m=u(f);fetch(f.href,m)}})();function cp(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Vu={exports:{}},Fa={};/**
9
9
  * @license React
10
10
  * react-jsx-runtime.production.js
11
11
  *
@@ -13,7 +13,7 @@
13
13
  *
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
- */var Np;function lx(){if(Np)return Fa;Np=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function o(u,f,m){var p=null;if(m!==void 0&&(p=""+m),f.key!==void 0&&(p=""+f.key),"key"in f){m={};for(var v in f)v!=="key"&&(m[v]=f[v])}else m=f;return f=m.ref,{$$typeof:a,type:u,key:p,ref:f!==void 0?f:null,props:m}}return Fa.Fragment=i,Fa.jsx=o,Fa.jsxs=o,Fa}var jp;function ax(){return jp||(jp=1,Fo.exports=lx()),Fo.exports}var c=ax(),Jo={exports:{}},ge={};/**
16
+ */var jm;function sx(){if(jm)return Fa;jm=1;var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function u(o,f,m){var p=null;if(m!==void 0&&(p=""+m),f.key!==void 0&&(p=""+f.key),"key"in f){m={};for(var v in f)v!=="key"&&(m[v]=f[v])}else m=f;return f=m.ref,{$$typeof:a,type:o,key:p,ref:f!==void 0?f:null,props:m}}return Fa.Fragment=s,Fa.jsx=u,Fa.jsxs=u,Fa}var Tm;function ix(){return Tm||(Tm=1,Vu.exports=sx()),Vu.exports}var c=ix(),Fu={exports:{}},ge={};/**
17
17
  * @license React
18
18
  * react.production.js
19
19
  *
@@ -21,7 +21,7 @@
21
21
  *
22
22
  * This source code is licensed under the MIT license found in the
23
23
  * LICENSE file in the root directory of this source tree.
24
- */var Tp;function rx(){if(Tp)return ge;Tp=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),p=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),T=Symbol.iterator;function R(E){return E===null||typeof E!="object"?null:(E=T&&E[T]||E["@@iterator"],typeof E=="function"?E:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,A={};function H(E,B,Z){this.props=E,this.context=B,this.refs=A,this.updater=Z||S}H.prototype.isReactComponent={},H.prototype.setState=function(E,B){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,B,"setState")},H.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function M(){}M.prototype=H.prototype;function Y(E,B,Z){this.props=E,this.context=B,this.refs=A,this.updater=Z||S}var F=Y.prototype=new M;F.constructor=Y,w(F,H.prototype),F.isPureReactComponent=!0;var P=Array.isArray;function ee(){}var I={H:null,A:null,T:null,S:null},re=Object.prototype.hasOwnProperty;function ue(E,B,Z){var K=Z.ref;return{$$typeof:a,type:E,key:B,ref:K!==void 0?K:null,props:Z}}function q(E,B){return ue(E.type,B,E.props)}function J(E){return typeof E=="object"&&E!==null&&E.$$typeof===a}function ie(E){var B={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(Z){return B[Z]})}var ve=/\/+/g;function de(E,B){return typeof E=="object"&&E!==null&&E.key!=null?ie(""+E.key):B.toString(36)}function be(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(ee,ee):(E.status="pending",E.then(function(B){E.status==="pending"&&(E.status="fulfilled",E.value=B)},function(B){E.status==="pending"&&(E.status="rejected",E.reason=B)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function L(E,B,Z,K,oe){var ce=typeof E;(ce==="undefined"||ce==="boolean")&&(E=null);var pe=!1;if(E===null)pe=!0;else switch(ce){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(E.$$typeof){case a:case i:pe=!0;break;case y:return pe=E._init,L(pe(E._payload),B,Z,K,oe)}}if(pe)return oe=oe(E),pe=K===""?"."+de(E,0):K,P(oe)?(Z="",pe!=null&&(Z=pe.replace(ve,"$&/")+"/"),L(oe,B,Z,"",function(Ge){return Ge})):oe!=null&&(J(oe)&&(oe=q(oe,Z+(oe.key==null||E&&E.key===oe.key?"":(""+oe.key).replace(ve,"$&/")+"/")+pe)),B.push(oe)),1;pe=0;var te=K===""?".":K+":";if(P(E))for(var ne=0;ne<E.length;ne++)K=E[ne],ce=te+de(K,ne),pe+=L(K,B,Z,ce,oe);else if(ne=R(E),typeof ne=="function")for(E=ne.call(E),ne=0;!(K=E.next()).done;)K=K.value,ce=te+de(K,ne++),pe+=L(K,B,Z,ce,oe);else if(ce==="object"){if(typeof E.then=="function")return L(be(E),B,Z,K,oe);throw B=String(E),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return pe}function W(E,B,Z){if(E==null)return E;var K=[],oe=0;return L(E,K,"","",function(ce){return B.call(Z,ce,oe++)}),K}function le(E){if(E._status===-1){var B=E._result;B=B(),B.then(function(Z){(E._status===0||E._status===-1)&&(E._status=1,E._result=Z)},function(Z){(E._status===0||E._status===-1)&&(E._status=2,E._result=Z)}),E._status===-1&&(E._status=0,E._result=B)}if(E._status===1)return E._result.default;throw E._result}var _=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=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(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},V={map:W,forEach:function(E,B,Z){W(E,function(){B.apply(this,arguments)},Z)},count:function(E){var B=0;return W(E,function(){B++}),B},toArray:function(E){return W(E,function(B){return B})||[]},only:function(E){if(!J(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ge.Activity=b,ge.Children=V,ge.Component=H,ge.Fragment=o,ge.Profiler=f,ge.PureComponent=Y,ge.StrictMode=u,ge.Suspense=h,ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,ge.__COMPILER_RUNTIME={__proto__:null,c:function(E){return I.H.useMemoCache(E)}},ge.cache=function(E){return function(){return E.apply(null,arguments)}},ge.cacheSignal=function(){return null},ge.cloneElement=function(E,B,Z){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var K=w({},E.props),oe=E.key;if(B!=null)for(ce in B.key!==void 0&&(oe=""+B.key),B)!re.call(B,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&B.ref===void 0||(K[ce]=B[ce]);var ce=arguments.length-2;if(ce===1)K.children=Z;else if(1<ce){for(var pe=Array(ce),te=0;te<ce;te++)pe[te]=arguments[te+2];K.children=pe}return ue(E.type,oe,K)},ge.createContext=function(E){return E={$$typeof:p,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:m,_context:E},E},ge.createElement=function(E,B,Z){var K,oe={},ce=null;if(B!=null)for(K in B.key!==void 0&&(ce=""+B.key),B)re.call(B,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(oe[K]=B[K]);var pe=arguments.length-2;if(pe===1)oe.children=Z;else if(1<pe){for(var te=Array(pe),ne=0;ne<pe;ne++)te[ne]=arguments[ne+2];oe.children=te}if(E&&E.defaultProps)for(K in pe=E.defaultProps,pe)oe[K]===void 0&&(oe[K]=pe[K]);return ue(E,ce,oe)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(E){return{$$typeof:v,render:E}},ge.isValidElement=J,ge.lazy=function(E){return{$$typeof:y,_payload:{_status:-1,_result:E},_init:le}},ge.memo=function(E,B){return{$$typeof:x,type:E,compare:B===void 0?null:B}},ge.startTransition=function(E){var B=I.T,Z={};I.T=Z;try{var K=E(),oe=I.S;oe!==null&&oe(Z,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(ee,_)}catch(ce){_(ce)}finally{B!==null&&Z.types!==null&&(B.types=Z.types),I.T=B}},ge.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},ge.use=function(E){return I.H.use(E)},ge.useActionState=function(E,B,Z){return I.H.useActionState(E,B,Z)},ge.useCallback=function(E,B){return I.H.useCallback(E,B)},ge.useContext=function(E){return I.H.useContext(E)},ge.useDebugValue=function(){},ge.useDeferredValue=function(E,B){return I.H.useDeferredValue(E,B)},ge.useEffect=function(E,B){return I.H.useEffect(E,B)},ge.useEffectEvent=function(E){return I.H.useEffectEvent(E)},ge.useId=function(){return I.H.useId()},ge.useImperativeHandle=function(E,B,Z){return I.H.useImperativeHandle(E,B,Z)},ge.useInsertionEffect=function(E,B){return I.H.useInsertionEffect(E,B)},ge.useLayoutEffect=function(E,B){return I.H.useLayoutEffect(E,B)},ge.useMemo=function(E,B){return I.H.useMemo(E,B)},ge.useOptimistic=function(E,B){return I.H.useOptimistic(E,B)},ge.useReducer=function(E,B,Z){return I.H.useReducer(E,B,Z)},ge.useRef=function(E){return I.H.useRef(E)},ge.useState=function(E){return I.H.useState(E)},ge.useSyncExternalStore=function(E,B,Z){return I.H.useSyncExternalStore(E,B,Z)},ge.useTransition=function(){return I.H.useTransition()},ge.version="19.2.4",ge}var Ap;function pu(){return Ap||(Ap=1,Jo.exports=rx()),Jo.exports}var j=pu();const ix=cm(j);var Ko={exports:{}},Ja={},Io={exports:{}},Wo={};/**
24
+ */var Am;function rx(){if(Am)return ge;Am=1;var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),p=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),A=Symbol.iterator;function z(w){return w===null||typeof w!="object"?null:(w=A&&w[A]||w["@@iterator"],typeof w=="function"?w:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,C={};function H(w,B,Q){this.props=w,this.context=B,this.refs=C,this.updater=Q||S}H.prototype.isReactComponent={},H.prototype.setState=function(w,B){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,B,"setState")},H.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function O(){}O.prototype=H.prototype;function G(w,B,Q){this.props=w,this.context=B,this.refs=C,this.updater=Q||S}var F=G.prototype=new O;F.constructor=G,N(F,H.prototype),F.isPureReactComponent=!0;var P=Array.isArray;function ee(){}var K={H:null,A:null,T:null,S:null},ae=Object.prototype.hasOwnProperty;function de(w,B,Q){var W=Q.ref;return{$$typeof:a,type:w,key:B,ref:W!==void 0?W:null,props:Q}}function le(w,B){return de(w.type,B,w.props)}function te(w){return typeof w=="object"&&w!==null&&w.$$typeof===a}function fe(w){var B={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(Q){return B[Q]})}var Le=/\/+/g;function me(w,B){return typeof w=="object"&&w!==null&&w.key!=null?fe(""+w.key):B.toString(36)}function he(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(ee,ee):(w.status="pending",w.then(function(B){w.status==="pending"&&(w.status="fulfilled",w.value=B)},function(B){w.status==="pending"&&(w.status="rejected",w.reason=B)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function E(w,B,Q,W,ne){var re=typeof w;(re==="undefined"||re==="boolean")&&(w=null);var pe=!1;if(w===null)pe=!0;else switch(re){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(w.$$typeof){case a:case s:pe=!0;break;case y:return pe=w._init,E(pe(w._payload),B,Q,W,ne)}}if(pe)return ne=ne(w),pe=W===""?"."+me(w,0):W,P(ne)?(Q="",pe!=null&&(Q=pe.replace(Le,"$&/")+"/"),E(ne,B,Q,"",function(xe){return xe})):ne!=null&&(te(ne)&&(ne=le(ne,Q+(ne.key==null||w&&w.key===ne.key?"":(""+ne.key).replace(Le,"$&/")+"/")+pe)),B.push(ne)),1;pe=0;var Be=W===""?".":W+":";if(P(w))for(var J=0;J<w.length;J++)W=w[J],re=Be+me(W,J),pe+=E(W,B,Q,re,ne);else if(J=z(w),typeof J=="function")for(w=J.call(w),J=0;!(W=w.next()).done;)W=W.value,re=Be+me(W,J++),pe+=E(W,B,Q,re,ne);else if(re==="object"){if(typeof w.then=="function")return E(he(w),B,Q,W,ne);throw B=String(w),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return pe}function Y(w,B,Q){if(w==null)return w;var W=[],ne=0;return E(w,W,"","",function(re){return B.call(Q,re,ne++)}),W}function I(w){if(w._status===-1){var B=w._result;B=B(),B.then(function(Q){(w._status===0||w._status===-1)&&(w._status=1,w._result=Q)},function(Q){(w._status===0||w._status===-1)&&(w._status=2,w._result=Q)}),w._status===-1&&(w._status=0,w._result=B)}if(w._status===1)return w._result.default;throw w._result}var _=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},V={map:Y,forEach:function(w,B,Q){Y(w,function(){B.apply(this,arguments)},Q)},count:function(w){var B=0;return Y(w,function(){B++}),B},toArray:function(w){return Y(w,function(B){return B})||[]},only:function(w){if(!te(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return ge.Activity=b,ge.Children=V,ge.Component=H,ge.Fragment=u,ge.Profiler=f,ge.PureComponent=G,ge.StrictMode=o,ge.Suspense=h,ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,ge.__COMPILER_RUNTIME={__proto__:null,c:function(w){return K.H.useMemoCache(w)}},ge.cache=function(w){return function(){return w.apply(null,arguments)}},ge.cacheSignal=function(){return null},ge.cloneElement=function(w,B,Q){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var W=N({},w.props),ne=w.key;if(B!=null)for(re in B.key!==void 0&&(ne=""+B.key),B)!ae.call(B,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&B.ref===void 0||(W[re]=B[re]);var re=arguments.length-2;if(re===1)W.children=Q;else if(1<re){for(var pe=Array(re),Be=0;Be<re;Be++)pe[Be]=arguments[Be+2];W.children=pe}return de(w.type,ne,W)},ge.createContext=function(w){return w={$$typeof:p,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:m,_context:w},w},ge.createElement=function(w,B,Q){var W,ne={},re=null;if(B!=null)for(W in B.key!==void 0&&(re=""+B.key),B)ae.call(B,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ne[W]=B[W]);var pe=arguments.length-2;if(pe===1)ne.children=Q;else if(1<pe){for(var Be=Array(pe),J=0;J<pe;J++)Be[J]=arguments[J+2];ne.children=Be}if(w&&w.defaultProps)for(W in pe=w.defaultProps,pe)ne[W]===void 0&&(ne[W]=pe[W]);return de(w,re,ne)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(w){return{$$typeof:v,render:w}},ge.isValidElement=te,ge.lazy=function(w){return{$$typeof:y,_payload:{_status:-1,_result:w},_init:I}},ge.memo=function(w,B){return{$$typeof:x,type:w,compare:B===void 0?null:B}},ge.startTransition=function(w){var B=K.T,Q={};K.T=Q;try{var W=w(),ne=K.S;ne!==null&&ne(Q,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(ee,_)}catch(re){_(re)}finally{B!==null&&Q.types!==null&&(B.types=Q.types),K.T=B}},ge.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},ge.use=function(w){return K.H.use(w)},ge.useActionState=function(w,B,Q){return K.H.useActionState(w,B,Q)},ge.useCallback=function(w,B){return K.H.useCallback(w,B)},ge.useContext=function(w){return K.H.useContext(w)},ge.useDebugValue=function(){},ge.useDeferredValue=function(w,B){return K.H.useDeferredValue(w,B)},ge.useEffect=function(w,B){return K.H.useEffect(w,B)},ge.useEffectEvent=function(w){return K.H.useEffectEvent(w)},ge.useId=function(){return K.H.useId()},ge.useImperativeHandle=function(w,B,Q){return K.H.useImperativeHandle(w,B,Q)},ge.useInsertionEffect=function(w,B){return K.H.useInsertionEffect(w,B)},ge.useLayoutEffect=function(w,B){return K.H.useLayoutEffect(w,B)},ge.useMemo=function(w,B){return K.H.useMemo(w,B)},ge.useOptimistic=function(w,B){return K.H.useOptimistic(w,B)},ge.useReducer=function(w,B,Q){return K.H.useReducer(w,B,Q)},ge.useRef=function(w){return K.H.useRef(w)},ge.useState=function(w){return K.H.useState(w)},ge.useSyncExternalStore=function(w,B,Q){return K.H.useSyncExternalStore(w,B,Q)},ge.useTransition=function(){return K.H.useTransition()},ge.version="19.2.4",ge}var _m;function po(){return _m||(_m=1,Fu.exports=rx()),Fu.exports}var T=po();const ux=cp(T);var Ju={exports:{}},Ja={},Ku={exports:{}},Iu={};/**
25
25
  * @license React
26
26
  * scheduler.production.js
27
27
  *
@@ -29,7 +29,7 @@
29
29
  *
30
30
  * This source code is licensed under the MIT license found in the
31
31
  * LICENSE file in the root directory of this source tree.
32
- */var _p;function sx(){return _p||(_p=1,(function(a){function i(L,W){var le=L.length;L.push(W);e:for(;0<le;){var _=le-1>>>1,V=L[_];if(0<f(V,W))L[_]=W,L[le]=V,le=_;else break e}}function o(L){return L.length===0?null:L[0]}function u(L){if(L.length===0)return null;var W=L[0],le=L.pop();if(le!==W){L[0]=le;e:for(var _=0,V=L.length,E=V>>>1;_<E;){var B=2*(_+1)-1,Z=L[B],K=B+1,oe=L[K];if(0>f(Z,le))K<V&&0>f(oe,Z)?(L[_]=oe,L[K]=le,_=K):(L[_]=Z,L[B]=le,_=B);else if(K<V&&0>f(oe,le))L[_]=oe,L[K]=le,_=K;else break e}}return W}function f(L,W){var le=L.sortIndex-W.sortIndex;return le!==0?le:L.id-W.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;a.unstable_now=function(){return m.now()}}else{var p=Date,v=p.now();a.unstable_now=function(){return p.now()-v}}var h=[],x=[],y=1,b=null,T=3,R=!1,S=!1,w=!1,A=!1,H=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function F(L){for(var W=o(x);W!==null;){if(W.callback===null)u(x);else if(W.startTime<=L)u(x),W.sortIndex=W.expirationTime,i(h,W);else break;W=o(x)}}function P(L){if(w=!1,F(L),!S)if(o(h)!==null)S=!0,ee||(ee=!0,ie());else{var W=o(x);W!==null&&be(P,W.startTime-L)}}var ee=!1,I=-1,re=5,ue=-1;function q(){return A?!0:!(a.unstable_now()-ue<re)}function J(){if(A=!1,ee){var L=a.unstable_now();ue=L;var W=!0;try{e:{S=!1,w&&(w=!1,M(I),I=-1),R=!0;var le=T;try{t:{for(F(L),b=o(h);b!==null&&!(b.expirationTime>L&&q());){var _=b.callback;if(typeof _=="function"){b.callback=null,T=b.priorityLevel;var V=_(b.expirationTime<=L);if(L=a.unstable_now(),typeof V=="function"){b.callback=V,F(L),W=!0;break t}b===o(h)&&u(h),F(L)}else u(h);b=o(h)}if(b!==null)W=!0;else{var E=o(x);E!==null&&be(P,E.startTime-L),W=!1}}break e}finally{b=null,T=le,R=!1}W=void 0}}finally{W?ie():ee=!1}}}var ie;if(typeof Y=="function")ie=function(){Y(J)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,de=ve.port2;ve.port1.onmessage=J,ie=function(){de.postMessage(null)}}else ie=function(){H(J,0)};function be(L,W){I=H(function(){L(a.unstable_now())},W)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(L){L.callback=null},a.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):re=0<L?Math.floor(1e3/L):5},a.unstable_getCurrentPriorityLevel=function(){return T},a.unstable_next=function(L){switch(T){case 1:case 2:case 3:var W=3;break;default:W=T}var le=T;T=W;try{return L()}finally{T=le}},a.unstable_requestPaint=function(){A=!0},a.unstable_runWithPriority=function(L,W){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var le=T;T=L;try{return W()}finally{T=le}},a.unstable_scheduleCallback=function(L,W,le){var _=a.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?_+le:_):le=_,L){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=le+V,L={id:y++,callback:W,priorityLevel:L,startTime:le,expirationTime:V,sortIndex:-1},le>_?(L.sortIndex=le,i(x,L),o(h)===null&&L===o(x)&&(w?(M(I),I=-1):w=!0,be(P,le-_))):(L.sortIndex=V,i(h,L),S||R||(S=!0,ee||(ee=!0,ie()))),L},a.unstable_shouldYield=q,a.unstable_wrapCallback=function(L){var W=T;return function(){var le=T;T=W;try{return L.apply(this,arguments)}finally{T=le}}}})(Wo)),Wo}var Cp;function ox(){return Cp||(Cp=1,Io.exports=sx()),Io.exports}var Po={exports:{}},rt={};/**
32
+ */var Cm;function ox(){return Cm||(Cm=1,(function(a){function s(E,Y){var I=E.length;E.push(Y);e:for(;0<I;){var _=I-1>>>1,V=E[_];if(0<f(V,Y))E[_]=Y,E[I]=V,I=_;else break e}}function u(E){return E.length===0?null:E[0]}function o(E){if(E.length===0)return null;var Y=E[0],I=E.pop();if(I!==Y){E[0]=I;e:for(var _=0,V=E.length,w=V>>>1;_<w;){var B=2*(_+1)-1,Q=E[B],W=B+1,ne=E[W];if(0>f(Q,I))W<V&&0>f(ne,Q)?(E[_]=ne,E[W]=I,_=W):(E[_]=Q,E[B]=I,_=B);else if(W<V&&0>f(ne,I))E[_]=ne,E[W]=I,_=W;else break e}}return Y}function f(E,Y){var I=E.sortIndex-Y.sortIndex;return I!==0?I:E.id-Y.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;a.unstable_now=function(){return m.now()}}else{var p=Date,v=p.now();a.unstable_now=function(){return p.now()-v}}var h=[],x=[],y=1,b=null,A=3,z=!1,S=!1,N=!1,C=!1,H=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function F(E){for(var Y=u(x);Y!==null;){if(Y.callback===null)o(x);else if(Y.startTime<=E)o(x),Y.sortIndex=Y.expirationTime,s(h,Y);else break;Y=u(x)}}function P(E){if(N=!1,F(E),!S)if(u(h)!==null)S=!0,ee||(ee=!0,fe());else{var Y=u(x);Y!==null&&he(P,Y.startTime-E)}}var ee=!1,K=-1,ae=5,de=-1;function le(){return C?!0:!(a.unstable_now()-de<ae)}function te(){if(C=!1,ee){var E=a.unstable_now();de=E;var Y=!0;try{e:{S=!1,N&&(N=!1,O(K),K=-1),z=!0;var I=A;try{t:{for(F(E),b=u(h);b!==null&&!(b.expirationTime>E&&le());){var _=b.callback;if(typeof _=="function"){b.callback=null,A=b.priorityLevel;var V=_(b.expirationTime<=E);if(E=a.unstable_now(),typeof V=="function"){b.callback=V,F(E),Y=!0;break t}b===u(h)&&o(h),F(E)}else o(h);b=u(h)}if(b!==null)Y=!0;else{var w=u(x);w!==null&&he(P,w.startTime-E),Y=!1}}break e}finally{b=null,A=I,z=!1}Y=void 0}}finally{Y?fe():ee=!1}}}var fe;if(typeof G=="function")fe=function(){G(te)};else if(typeof MessageChannel<"u"){var Le=new MessageChannel,me=Le.port2;Le.port1.onmessage=te,fe=function(){me.postMessage(null)}}else fe=function(){H(te,0)};function he(E,Y){K=H(function(){E(a.unstable_now())},Y)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(E){E.callback=null},a.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<E?Math.floor(1e3/E):5},a.unstable_getCurrentPriorityLevel=function(){return A},a.unstable_next=function(E){switch(A){case 1:case 2:case 3:var Y=3;break;default:Y=A}var I=A;A=Y;try{return E()}finally{A=I}},a.unstable_requestPaint=function(){C=!0},a.unstable_runWithPriority=function(E,Y){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var I=A;A=E;try{return Y()}finally{A=I}},a.unstable_scheduleCallback=function(E,Y,I){var _=a.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?_+I:_):I=_,E){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=I+V,E={id:y++,callback:Y,priorityLevel:E,startTime:I,expirationTime:V,sortIndex:-1},I>_?(E.sortIndex=I,s(x,E),u(h)===null&&E===u(x)&&(N?(O(K),K=-1):N=!0,he(P,I-_))):(E.sortIndex=V,s(h,E),S||z||(S=!0,ee||(ee=!0,fe()))),E},a.unstable_shouldYield=le,a.unstable_wrapCallback=function(E){var Y=A;return function(){var I=A;A=Y;try{return E.apply(this,arguments)}finally{A=I}}}})(Iu)),Iu}var Rm;function cx(){return Rm||(Rm=1,Ku.exports=ox()),Ku.exports}var Wu={exports:{}},ut={};/**
33
33
  * @license React
34
34
  * react-dom.production.js
35
35
  *
@@ -37,7 +37,7 @@
37
37
  *
38
38
  * This source code is licensed under the MIT license found in the
39
39
  * LICENSE file in the root directory of this source tree.
40
- */var Rp;function ux(){if(Rp)return rt;Rp=1;var a=pu();function i(h){var x="https://react.dev/errors/"+h;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)x+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var u={d:{f:o,r:function(){throw Error(i(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},f=Symbol.for("react.portal");function m(h,x,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:b==null?null:""+b,children:h,containerInfo:x,implementation:y}}var p=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(h,x){if(h==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,rt.createPortal=function(h,x){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(i(299));return m(h,x,null,y)},rt.flushSync=function(h){var x=p.T,y=u.p;try{if(p.T=null,u.p=2,h)return h()}finally{p.T=x,u.p=y,u.d.f()}},rt.preconnect=function(h,x){typeof h=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,u.d.C(h,x))},rt.prefetchDNS=function(h){typeof h=="string"&&u.d.D(h)},rt.preinit=function(h,x){if(typeof h=="string"&&x&&typeof x.as=="string"){var y=x.as,b=v(y,x.crossOrigin),T=typeof x.integrity=="string"?x.integrity:void 0,R=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;y==="style"?u.d.S(h,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:b,integrity:T,fetchPriority:R}):y==="script"&&u.d.X(h,{crossOrigin:b,integrity:T,fetchPriority:R,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},rt.preinitModule=function(h,x){if(typeof h=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var y=v(x.as,x.crossOrigin);u.d.M(h,{crossOrigin:y,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&u.d.M(h)},rt.preload=function(h,x){if(typeof h=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var y=x.as,b=v(y,x.crossOrigin);u.d.L(h,y,{crossOrigin:b,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},rt.preloadModule=function(h,x){if(typeof h=="string")if(x){var y=v(x.as,x.crossOrigin);u.d.m(h,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:y,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else u.d.m(h)},rt.requestFormReset=function(h){u.d.r(h)},rt.unstable_batchedUpdates=function(h,x){return h(x)},rt.useFormState=function(h,x,y){return p.H.useFormState(h,x,y)},rt.useFormStatus=function(){return p.H.useHostTransitionStatus()},rt.version="19.2.4",rt}var Op;function cx(){if(Op)return Po.exports;Op=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Po.exports=ux(),Po.exports}/**
40
+ */var zm;function fx(){if(zm)return ut;zm=1;var a=po();function s(h){var x="https://react.dev/errors/"+h;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)x+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var o={d:{f:u,r:function(){throw Error(s(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},f=Symbol.for("react.portal");function m(h,x,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:b==null?null:""+b,children:h,containerInfo:x,implementation:y}}var p=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(h,x){if(h==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ut.createPortal=function(h,x){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(s(299));return m(h,x,null,y)},ut.flushSync=function(h){var x=p.T,y=o.p;try{if(p.T=null,o.p=2,h)return h()}finally{p.T=x,o.p=y,o.d.f()}},ut.preconnect=function(h,x){typeof h=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,o.d.C(h,x))},ut.prefetchDNS=function(h){typeof h=="string"&&o.d.D(h)},ut.preinit=function(h,x){if(typeof h=="string"&&x&&typeof x.as=="string"){var y=x.as,b=v(y,x.crossOrigin),A=typeof x.integrity=="string"?x.integrity:void 0,z=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;y==="style"?o.d.S(h,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:b,integrity:A,fetchPriority:z}):y==="script"&&o.d.X(h,{crossOrigin:b,integrity:A,fetchPriority:z,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},ut.preinitModule=function(h,x){if(typeof h=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var y=v(x.as,x.crossOrigin);o.d.M(h,{crossOrigin:y,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&o.d.M(h)},ut.preload=function(h,x){if(typeof h=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var y=x.as,b=v(y,x.crossOrigin);o.d.L(h,y,{crossOrigin:b,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},ut.preloadModule=function(h,x){if(typeof h=="string")if(x){var y=v(x.as,x.crossOrigin);o.d.m(h,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:y,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else o.d.m(h)},ut.requestFormReset=function(h){o.d.r(h)},ut.unstable_batchedUpdates=function(h,x){return h(x)},ut.useFormState=function(h,x,y){return p.H.useFormState(h,x,y)},ut.useFormStatus=function(){return p.H.useHostTransitionStatus()},ut.version="19.2.4",ut}var Om;function dx(){if(Om)return Wu.exports;Om=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(s){console.error(s)}}return a(),Wu.exports=fx(),Wu.exports}/**
41
41
  * @license React
42
42
  * react-dom-client.production.js
43
43
  *
@@ -45,82 +45,86 @@
45
45
  *
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
- */var zp;function fx(){if(zp)return Ja;zp=1;var a=ox(),i=pu(),o=cx();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function p(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 v(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(m(e)!==e)throw Error(u(188))}function x(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(u(188));return t!==e?null:e}for(var n=e,l=t;;){var r=n.return;if(r===null)break;var s=r.alternate;if(s===null){if(l=r.return,l!==null){n=l;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===n)return h(r),e;if(s===l)return h(r),t;s=s.sibling}throw Error(u(188))}if(n.return!==l.return)n=r,l=s;else{for(var d=!1,g=r.child;g;){if(g===n){d=!0,n=r,l=s;break}if(g===l){d=!0,l=r,n=s;break}g=g.sibling}if(!d){for(g=s.child;g;){if(g===n){d=!0,n=s,l=r;break}if(g===l){d=!0,l=s,n=r;break}g=g.sibling}if(!d)throw Error(u(189))}}if(n.alternate!==l)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,T=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=J&&e[J]||e["@@iterator"],typeof e=="function"?e:null)}var ve=Symbol.for("react.client.reference");function de(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ve?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case H:return"Profiler";case A:return"StrictMode";case P:return"Suspense";case ee:return"SuspenseList";case ue:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case S:return"Portal";case Y:return e.displayName||"Context";case M:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case I:return t=e.displayName||null,t!==null?t:de(e.type)||"Memo";case re:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}var be=Array.isArray,L=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},_=[],V=-1;function E(e){return{current:e}}function B(e){0>V||(e.current=_[V],_[V]=null,V--)}function Z(e,t){V++,_[V]=e.current,e.current=t}var K=E(null),oe=E(null),ce=E(null),pe=E(null);function te(e,t){switch(Z(ce,t),Z(oe,e),Z(K,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Fd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Fd(t),e=Jd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(K),Z(K,e)}function ne(){B(K),B(oe),B(ce)}function Ge(e){e.memoizedState!==null&&Z(pe,e);var t=K.current,n=Jd(t,e.type);t!==n&&(Z(oe,e),Z(K,n))}function ht(e){oe.current===e&&(B(K),B(oe)),pe.current===e&&(B(pe),Za._currentValue=le)}var At,Ht;function Pe(e){if(At===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);At=t&&t[1]||"",Ht=-1<n.stack.indexOf(`
48
+ */var Dm;function mx(){if(Dm)return Ja;Dm=1;var a=cx(),s=po(),u=dx();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function p(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 v(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(m(e)!==e)throw Error(o(188))}function x(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,l=t;;){var i=n.return;if(i===null)break;var r=i.alternate;if(r===null){if(l=i.return,l!==null){n=l;continue}break}if(i.child===r.child){for(r=i.child;r;){if(r===n)return h(i),e;if(r===l)return h(i),t;r=r.sibling}throw Error(o(188))}if(n.return!==l.return)n=i,l=r;else{for(var d=!1,g=i.child;g;){if(g===n){d=!0,n=i,l=r;break}if(g===l){d=!0,l=i,n=r;break}g=g.sibling}if(!d){for(g=r.child;g;){if(g===n){d=!0,n=r,l=i;break}if(g===l){d=!0,l=r,n=i;break}g=g.sibling}if(!d)throw Error(o(189))}}if(n.alternate!==l)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,A=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),G=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),le=Symbol.for("react.memo_cache_sentinel"),te=Symbol.iterator;function fe(e){return e===null||typeof e!="object"?null:(e=te&&e[te]||e["@@iterator"],typeof e=="function"?e:null)}var Le=Symbol.for("react.client.reference");function me(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Le?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case N:return"Fragment";case H:return"Profiler";case C:return"StrictMode";case P:return"Suspense";case ee:return"SuspenseList";case de:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case S:return"Portal";case G:return e.displayName||"Context";case O:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:me(e.type)||"Memo";case ae:t=e._payload,e=e._init;try{return me(e(t))}catch{}}return null}var he=Array.isArray,E=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},_=[],V=-1;function w(e){return{current:e}}function B(e){0>V||(e.current=_[V],_[V]=null,V--)}function Q(e,t){V++,_[V]=e.current,e.current=t}var W=w(null),ne=w(null),re=w(null),pe=w(null);function Be(e,t){switch(Q(re,t),Q(ne,e),Q(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Jd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Jd(t),e=Kd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(W),Q(W,e)}function J(){B(W),B(ne),B(re)}function xe(e){e.memoizedState!==null&&Q(pe,e);var t=W.current,n=Kd(t,e.type);t!==n&&(Q(ne,e),Q(W,n))}function ze(e){ne.current===e&&(B(W),B(ne)),pe.current===e&&(B(pe),Za._currentValue=I)}var rt,_t;function Ie(e){if(rt===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);rt=t&&t[1]||"",_t=-1<n.stack.indexOf(`
49
49
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
50
- `+At+e+Ht}var gt=!1;function he(e,t){if(!e||gt)return"";gt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(U){var D=U}Reflect.construct(e,[],X)}else{try{X.call()}catch(U){D=U}e.call(X.prototype)}}else{try{throw Error()}catch(U){D=U}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(U){if(U&&D&&typeof U.stack=="string")return[U.stack,D.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),d=s[0],g=s[1];if(d&&g){var k=d.split(`
51
- `),z=g.split(`
52
- `);for(r=l=0;l<k.length&&!k[l].includes("DetermineComponentFrameRoot");)l++;for(;r<z.length&&!z[r].includes("DetermineComponentFrameRoot");)r++;if(l===k.length||r===z.length)for(l=k.length-1,r=z.length-1;1<=l&&0<=r&&k[l]!==z[r];)r--;for(;1<=l&&0<=r;l--,r--)if(k[l]!==z[r]){if(l!==1||r!==1)do if(l--,r--,0>r||k[l]!==z[r]){var G=`
53
- `+k[l].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=l&&0<=r);break}}}finally{gt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Pe(n):""}function Be(e,t){switch(e.tag){case 26:case 27:case 5:return Pe(e.type);case 16:return Pe("Lazy");case 13:return e.child!==t&&t!==null?Pe("Suspense Fallback"):Pe("Suspense");case 19:return Pe("SuspenseList");case 0:case 15:return he(e.type,!1);case 11:return he(e.type.render,!1);case 1:return he(e.type,!0);case 31:return Pe("Activity");default:return""}}function dl(e){try{var t="",n=null;do t+=Be(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
50
+ `+rt+e+_t}var Ct=!1;function oe(e,t){if(!e||Ct)return"";Ct=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(U){var L=U}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(U){L=U}e.call(Z.prototype)}}else{try{throw Error()}catch(U){L=U}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(U){if(U&&L&&typeof U.stack=="string")return[U.stack,L.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=l.DetermineComponentFrameRoot(),d=r[0],g=r[1];if(d&&g){var k=d.split(`
51
+ `),M=g.split(`
52
+ `);for(i=l=0;l<k.length&&!k[l].includes("DetermineComponentFrameRoot");)l++;for(;i<M.length&&!M[i].includes("DetermineComponentFrameRoot");)i++;if(l===k.length||i===M.length)for(l=k.length-1,i=M.length-1;1<=l&&0<=i&&k[l]!==M[i];)i--;for(;1<=l&&0<=i;l--,i--)if(k[l]!==M[i]){if(l!==1||i!==1)do if(l--,i--,0>i||k[l]!==M[i]){var q=`
53
+ `+k[l].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=l&&0<=i);break}}}finally{Ct=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ie(n):""}function He(e,t){switch(e.tag){case 26:case 27:case 5:return Ie(e.type);case 16:return Ie("Lazy");case 13:return e.child!==t&&t!==null?Ie("Suspense Fallback"):Ie("Suspense");case 19:return Ie("SuspenseList");case 0:case 15:return oe(e.type,!1);case 11:return oe(e.type.render,!1);case 1:return oe(e.type,!0);case 31:return Ie("Activity");default:return""}}function yn(e){try{var t="",n=null;do t+=He(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
54
54
  Error generating stack: `+l.message+`
55
- `+l.stack}}var pl=Object.prototype.hasOwnProperty,ta=a.unstable_scheduleCallback,ml=a.unstable_cancelCallback,Mm=a.unstable_shouldYield,Lm=a.unstable_requestPaint,xt=a.unstable_now,Bm=a.unstable_getCurrentPriorityLevel,Nu=a.unstable_ImmediatePriority,ju=a.unstable_UserBlockingPriority,nr=a.unstable_NormalPriority,Um=a.unstable_LowPriority,Tu=a.unstable_IdlePriority,Hm=a.log,qm=a.unstable_setDisableYieldValue,na=null,yt=null;function xn(e){if(typeof Hm=="function"&&qm(e),yt&&typeof yt.setStrictMode=="function")try{yt.setStrictMode(na,e)}catch{}}var bt=Math.clz32?Math.clz32:$m,Gm=Math.log,Ym=Math.LN2;function $m(e){return e>>>=0,e===0?32:31-(Gm(e)/Ym|0)|0}var lr=256,ar=262144,rr=4194304;function Xn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ir(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var r=0,s=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var g=l&134217727;return g!==0?(l=g&~s,l!==0?r=Xn(l):(d&=g,d!==0?r=Xn(d):n||(n=g&~e,n!==0&&(r=Xn(n))))):(g=l&~s,g!==0?r=Xn(g):d!==0?r=Xn(d):n||(n=l&~e,n!==0&&(r=Xn(n)))),r===0?0:t!==0&&t!==r&&(t&s)===0&&(s=r&-r,n=t&-t,s>=n||s===32&&(n&4194048)!==0)?t:r}function la(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Zm(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 Au(){var e=rr;return rr<<=1,(rr&62914560)===0&&(rr=4194304),e}function Mi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function aa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Xm(e,t,n,l,r,s){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var g=e.entanglements,k=e.expirationTimes,z=e.hiddenUpdates;for(n=d&~n;0<n;){var G=31-bt(n),X=1<<G;g[G]=0,k[G]=-1;var D=z[G];if(D!==null)for(z[G]=null,G=0;G<D.length;G++){var U=D[G];U!==null&&(U.lane&=-536870913)}n&=~X}l!==0&&_u(e,l,0),s!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=s&~(d&~t))}function _u(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-bt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Cu(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-bt(n),r=1<<l;r&t|e[l]&t&&(e[l]|=t),n&=~r}}function Ru(e,t){var n=t&-t;return n=(n&42)!==0?1:Li(n),(n&(e.suspendedLanes|t))!==0?0:n}function Li(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 Bi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ou(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:yp(e.type))}function zu(e,t){var n=W.p;try{return W.p=e,t()}finally{W.p=n}}var yn=Math.random().toString(36).slice(2),et="__reactFiber$"+yn,ot="__reactProps$"+yn,hl="__reactContainer$"+yn,Ui="__reactEvents$"+yn,Qm="__reactListeners$"+yn,Vm="__reactHandles$"+yn,Du="__reactResources$"+yn,ra="__reactMarker$"+yn;function Hi(e){delete e[et],delete e[ot],delete e[Ui],delete e[Qm],delete e[Vm]}function gl(e){var t=e[et];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hl]||n[et]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=np(e);e!==null;){if(n=e[et])return n;e=np(e)}return t}e=n,n=e.parentNode}return null}function xl(e){if(e=e[et]||e[hl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ia(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function yl(e){var t=e[Du];return t||(t=e[Du]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[ra]=!0}var Mu=new Set,Lu={};function Qn(e,t){bl(e,t),bl(e+"Capture",t)}function bl(e,t){for(Lu[e]=t,e=0;e<t.length;e++)Mu.add(t[e])}var Fm=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]*$"),Bu={},Uu={};function Jm(e){return pl.call(Uu,e)?!0:pl.call(Bu,e)?!1:Fm.test(e)?Uu[e]=!0:(Bu[e]=!0,!1)}function sr(e,t,n){if(Jm(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function or(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Wt(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function _t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Km(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var r=l.get,s=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(d){n=""+d,s.call(this,d)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qi(e){if(!e._valueTracker){var t=Hu(e)?"checked":"value";e._valueTracker=Km(e,t,""+e[t])}}function qu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=Hu(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function ur(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 Im=/[\n"\\]/g;function Ct(e){return e.replace(Im,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Gi(e,t,n,l,r,s,d,g){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+_t(t)):e.value!==""+_t(t)&&(e.value=""+_t(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Yi(e,d,_t(t)):n!=null?Yi(e,d,_t(n)):l!=null&&e.removeAttribute("value"),r==null&&s!=null&&(e.defaultChecked=!!s),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+_t(g):e.removeAttribute("name")}function Gu(e,t,n,l,r,s,d,g){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){qi(e);return}n=n!=null?""+_t(n):"",t=t!=null?""+_t(t):n,g||t===e.value||(e.value=t),e.defaultValue=t}l=l??r,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=g?e.checked:!!l,e.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),qi(e)}function Yi(e,t,n){t==="number"&&ur(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function vl(e,t,n,l){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&l&&(e[n].defaultSelected=!0)}else{for(n=""+_t(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,l&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Yu(e,t,n){if(t!=null&&(t=""+_t(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+_t(n):""}function $u(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(u(92));if(be(l)){if(1<l.length)throw Error(u(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=_t(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),qi(e)}function Sl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wm=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 Zu(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||Wm.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Xu(e,t,n){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var r in t)l=t[r],t.hasOwnProperty(r)&&n[r]!==l&&Zu(e,r,l)}else for(var s in t)t.hasOwnProperty(s)&&Zu(e,s,t[s])}function $i(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 Pm=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"]]),eh=/^[\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 cr(e){return eh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Pt(){}var Zi=null;function Xi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var El=null,kl=null;function Qu(e){var t=xl(e);if(t&&(e=t.stateNode)){var n=e[ot]||null;e:switch(e=t.stateNode,t.type){case"input":if(Gi(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ct(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var r=l[ot]||null;if(!r)throw Error(u(90));Gi(l,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&qu(l)}break e;case"textarea":Yu(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&vl(e,!!n.multiple,t,!1)}}}var Qi=!1;function Vu(e,t,n){if(Qi)return e(t,n);Qi=!0;try{var l=e(t);return l}finally{if(Qi=!1,(El!==null||kl!==null)&&(Ir(),El&&(t=El,e=kl,kl=El=null,Qu(t),e)))for(t=0;t<e.length;t++)Qu(e[t])}}function sa(e,t){var n=e.stateNode;if(n===null)return null;var l=n[ot]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(u(231,t,typeof n));return n}var en=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vi=!1;if(en)try{var oa={};Object.defineProperty(oa,"passive",{get:function(){Vi=!0}}),window.addEventListener("test",oa,oa),window.removeEventListener("test",oa,oa)}catch{Vi=!1}var bn=null,Fi=null,fr=null;function Fu(){if(fr)return fr;var e,t=Fi,n=t.length,l,r="value"in bn?bn.value:bn.textContent,s=r.length;for(e=0;e<n&&t[e]===r[e];e++);var d=n-e;for(l=1;l<=d&&t[n-l]===r[s-l];l++);return fr=r.slice(e,1<l?1-l:void 0)}function dr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function pr(){return!0}function Ju(){return!1}function ut(e){function t(n,l,r,s,d){this._reactName=n,this._targetInst=r,this.type=l,this.nativeEvent=s,this.target=d,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(n=e[g],this[g]=n?n(s):s[g]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?pr:Ju,this.isPropagationStopped=Ju,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=pr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=pr)},persist:function(){},isPersistent:pr}),t}var Vn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mr=ut(Vn),ua=b({},Vn,{view:0,detail:0}),th=ut(ua),Ji,Ki,ca,hr=b({},ua,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wi,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!==ca&&(ca&&e.type==="mousemove"?(Ji=e.screenX-ca.screenX,Ki=e.screenY-ca.screenY):Ki=Ji=0,ca=e),Ji)},movementY:function(e){return"movementY"in e?e.movementY:Ki}}),Ku=ut(hr),nh=b({},hr,{dataTransfer:0}),lh=ut(nh),ah=b({},ua,{relatedTarget:0}),Ii=ut(ah),rh=b({},Vn,{animationName:0,elapsedTime:0,pseudoElement:0}),ih=ut(rh),sh=b({},Vn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),oh=ut(sh),uh=b({},Vn,{data:0}),Iu=ut(uh),ch={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fh={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"},dh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ph(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=dh[e])?!!t[e]:!1}function Wi(){return ph}var mh=b({},ua,{key:function(e){if(e.key){var t=ch[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=dr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?fh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wi,charCode:function(e){return e.type==="keypress"?dr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?dr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),hh=ut(mh),gh=b({},hr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wu=ut(gh),xh=b({},ua,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wi}),yh=ut(xh),bh=b({},Vn,{propertyName:0,elapsedTime:0,pseudoElement:0}),vh=ut(bh),Sh=b({},hr,{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}),Eh=ut(Sh),kh=b({},Vn,{newState:0,oldState:0}),wh=ut(kh),Nh=[9,13,27,32],Pi=en&&"CompositionEvent"in window,fa=null;en&&"documentMode"in document&&(fa=document.documentMode);var jh=en&&"TextEvent"in window&&!fa,Pu=en&&(!Pi||fa&&8<fa&&11>=fa),ec=" ",tc=!1;function nc(e,t){switch(e){case"keyup":return Nh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wl=!1;function Th(e,t){switch(e){case"compositionend":return lc(t);case"keypress":return t.which!==32?null:(tc=!0,ec);case"textInput":return e=t.data,e===ec&&tc?null:e;default:return null}}function Ah(e,t){if(wl)return e==="compositionend"||!Pi&&nc(e,t)?(e=Fu(),fr=Fi=bn=null,wl=!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 Pu&&t.locale!=="ko"?null:t.data;default:return null}}var _h={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 ac(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_h[e.type]:t==="textarea"}function rc(e,t,n,l){El?kl?kl.push(l):kl=[l]:El=l,t=ai(t,"onChange"),0<t.length&&(n=new mr("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var da=null,pa=null;function Ch(e){Yd(e,0)}function gr(e){var t=ia(e);if(qu(t))return e}function ic(e,t){if(e==="change")return t}var sc=!1;if(en){var es;if(en){var ts="oninput"in document;if(!ts){var oc=document.createElement("div");oc.setAttribute("oninput","return;"),ts=typeof oc.oninput=="function"}es=ts}else es=!1;sc=es&&(!document.documentMode||9<document.documentMode)}function uc(){da&&(da.detachEvent("onpropertychange",cc),pa=da=null)}function cc(e){if(e.propertyName==="value"&&gr(pa)){var t=[];rc(t,pa,e,Xi(e)),Vu(Ch,t)}}function Rh(e,t,n){e==="focusin"?(uc(),da=t,pa=n,da.attachEvent("onpropertychange",cc)):e==="focusout"&&uc()}function Oh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gr(pa)}function zh(e,t){if(e==="click")return gr(t)}function Dh(e,t){if(e==="input"||e==="change")return gr(t)}function Mh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vt=typeof Object.is=="function"?Object.is:Mh;function ma(e,t){if(vt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var r=n[l];if(!pl.call(t,r)||!vt(e[r],t[r]))return!1}return!0}function fc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dc(e,t){var n=fc(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fc(n)}}function pc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ur(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ur(e.document)}return t}function ns(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 Lh=en&&"documentMode"in document&&11>=document.documentMode,Nl=null,ls=null,ha=null,as=!1;function hc(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;as||Nl==null||Nl!==ur(l)||(l=Nl,"selectionStart"in l&&ns(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ha&&ma(ha,l)||(ha=l,l=ai(ls,"onSelect"),0<l.length&&(t=new mr("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Nl)))}function Fn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var jl={animationend:Fn("Animation","AnimationEnd"),animationiteration:Fn("Animation","AnimationIteration"),animationstart:Fn("Animation","AnimationStart"),transitionrun:Fn("Transition","TransitionRun"),transitionstart:Fn("Transition","TransitionStart"),transitioncancel:Fn("Transition","TransitionCancel"),transitionend:Fn("Transition","TransitionEnd")},rs={},gc={};en&&(gc=document.createElement("div").style,"AnimationEvent"in window||(delete jl.animationend.animation,delete jl.animationiteration.animation,delete jl.animationstart.animation),"TransitionEvent"in window||delete jl.transitionend.transition);function Jn(e){if(rs[e])return rs[e];if(!jl[e])return e;var t=jl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in gc)return rs[e]=t[n];return e}var xc=Jn("animationend"),yc=Jn("animationiteration"),bc=Jn("animationstart"),Bh=Jn("transitionrun"),Uh=Jn("transitionstart"),Hh=Jn("transitioncancel"),vc=Jn("transitionend"),Sc=new Map,is="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(" ");is.push("scrollEnd");function qt(e,t){Sc.set(e,t),Qn(t,[e])}var xr=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)},Rt=[],Tl=0,ss=0;function yr(){for(var e=Tl,t=ss=Tl=0;t<e;){var n=Rt[t];Rt[t++]=null;var l=Rt[t];Rt[t++]=null;var r=Rt[t];Rt[t++]=null;var s=Rt[t];if(Rt[t++]=null,l!==null&&r!==null){var d=l.pending;d===null?r.next=r:(r.next=d.next,d.next=r),l.pending=r}s!==0&&Ec(n,r,s)}}function br(e,t,n,l){Rt[Tl++]=e,Rt[Tl++]=t,Rt[Tl++]=n,Rt[Tl++]=l,ss|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function os(e,t,n,l){return br(e,t,n,l),vr(e)}function Kn(e,t){return br(e,null,null,t),vr(e)}function Ec(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var r=!1,s=e.return;s!==null;)s.childLanes|=n,l=s.alternate,l!==null&&(l.childLanes|=n),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(r=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,r&&t!==null&&(r=31-bt(n),e=s.hiddenUpdates,l=e[r],l===null?e[r]=[t]:l.push(t),t.lane=n|536870912),s):null}function vr(e){if(50<Ba)throw Ba=0,yo=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Al={};function qh(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function St(e,t,n,l){return new qh(e,t,n,l)}function us(e){return e=e.prototype,!(!e||!e.isReactComponent)}function tn(e,t){var n=e.alternate;return n===null?(n=St(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function kc(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Sr(e,t,n,l,r,s){var d=0;if(l=e,typeof e=="function")us(e)&&(d=1);else if(typeof e=="string")d=Xg(e,n,K.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ue:return e=St(31,n,t,r),e.elementType=ue,e.lanes=s,e;case w:return In(n.children,r,s,t);case A:d=8,r|=24;break;case H:return e=St(12,n,t,r|2),e.elementType=H,e.lanes=s,e;case P:return e=St(13,n,t,r),e.elementType=P,e.lanes=s,e;case ee:return e=St(19,n,t,r),e.elementType=ee,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:d=10;break e;case M:d=9;break e;case F:d=11;break e;case I:d=14;break e;case re:d=16,l=null;break e}d=29,n=Error(u(130,e===null?"null":typeof e,"")),l=null}return t=St(d,n,t,r),t.elementType=e,t.type=l,t.lanes=s,t}function In(e,t,n,l){return e=St(7,e,l,t),e.lanes=n,e}function cs(e,t,n){return e=St(6,e,null,t),e.lanes=n,e}function wc(e){var t=St(18,null,null,0);return t.stateNode=e,t}function fs(e,t,n){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Nc=new WeakMap;function Ot(e,t){if(typeof e=="object"&&e!==null){var n=Nc.get(e);return n!==void 0?n:(t={value:e,source:t,stack:dl(t)},Nc.set(e,t),t)}return{value:e,source:t,stack:dl(t)}}var _l=[],Cl=0,Er=null,ga=0,zt=[],Dt=0,vn=null,Xt=1,Qt="";function nn(e,t){_l[Cl++]=ga,_l[Cl++]=Er,Er=e,ga=t}function jc(e,t,n){zt[Dt++]=Xt,zt[Dt++]=Qt,zt[Dt++]=vn,vn=e;var l=Xt;e=Qt;var r=32-bt(l)-1;l&=~(1<<r),n+=1;var s=32-bt(t)+r;if(30<s){var d=r-r%5;s=(l&(1<<d)-1).toString(32),l>>=d,r-=d,Xt=1<<32-bt(t)+r|n<<r|l,Qt=s+e}else Xt=1<<s|n<<r|l,Qt=e}function ds(e){e.return!==null&&(nn(e,1),jc(e,1,0))}function ps(e){for(;e===Er;)Er=_l[--Cl],_l[Cl]=null,ga=_l[--Cl],_l[Cl]=null;for(;e===vn;)vn=zt[--Dt],zt[Dt]=null,Qt=zt[--Dt],zt[Dt]=null,Xt=zt[--Dt],zt[Dt]=null}function Tc(e,t){zt[Dt++]=Xt,zt[Dt++]=Qt,zt[Dt++]=vn,Xt=t.id,Qt=t.overflow,vn=e}var tt=null,Ue=null,Ne=!1,Sn=null,Mt=!1,ms=Error(u(519));function En(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xa(Ot(t,e)),ms}function Ac(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[et]=e,t[ot]=l,n){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(n=0;n<Ha.length;n++)Ee(Ha[n],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),Gu(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),$u(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||Qd(t.textContent,n)?(l.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),l.onScroll!=null&&Ee("scroll",t),l.onScrollEnd!=null&&Ee("scrollend",t),l.onClick!=null&&(t.onclick=Pt),t=!0):t=!1,t||En(e,!0)}function _c(e){for(tt=e.return;tt;)switch(tt.tag){case 5:case 31:case 13:Mt=!1;return;case 27:case 3:Mt=!0;return;default:tt=tt.return}}function Rl(e){if(e!==tt)return!1;if(!Ne)return _c(e),Ne=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||zo(e.type,e.memoizedProps)),n=!n),n&&Ue&&En(e),_c(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ue=tp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ue=tp(e)}else t===27?(t=Ue,Ln(e.type)?(e=Uo,Uo=null,Ue=e):Ue=t):Ue=tt?Bt(e.stateNode.nextSibling):null;return!0}function Wn(){Ue=tt=null,Ne=!1}function hs(){var e=Sn;return e!==null&&(pt===null?pt=e:pt.push.apply(pt,e),Sn=null),e}function xa(e){Sn===null?Sn=[e]:Sn.push(e)}var gs=E(null),Pn=null,ln=null;function kn(e,t,n){Z(gs,t._currentValue),t._currentValue=n}function an(e){e._currentValue=gs.current,B(gs)}function xs(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function ys(e,t,n,l){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var s=r.dependencies;if(s!==null){var d=r.child;s=s.firstContext;e:for(;s!==null;){var g=s;s=r;for(var k=0;k<t.length;k++)if(g.context===t[k]){s.lanes|=n,g=s.alternate,g!==null&&(g.lanes|=n),xs(s.return,n,e),l||(d=null);break e}s=g.next}}else if(r.tag===18){if(d=r.return,d===null)throw Error(u(341));d.lanes|=n,s=d.alternate,s!==null&&(s.lanes|=n),xs(d,n,e),d=null}else d=r.child;if(d!==null)d.return=r;else for(d=r;d!==null;){if(d===e){d=null;break}if(r=d.sibling,r!==null){r.return=d.return,d=r;break}d=d.return}r=d}}function Ol(e,t,n,l){e=null;for(var r=t,s=!1;r!==null;){if(!s){if((r.flags&524288)!==0)s=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var d=r.alternate;if(d===null)throw Error(u(387));if(d=d.memoizedProps,d!==null){var g=r.type;vt(r.pendingProps.value,d.value)||(e!==null?e.push(g):e=[g])}}else if(r===pe.current){if(d=r.alternate,d===null)throw Error(u(387));d.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Za):e=[Za])}r=r.return}e!==null&&ys(t,e,n,l),t.flags|=262144}function kr(e){for(e=e.firstContext;e!==null;){if(!vt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function el(e){Pn=e,ln=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nt(e){return Cc(Pn,e)}function wr(e,t){return Pn===null&&el(e),Cc(e,t)}function Cc(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ln===null){if(e===null)throw Error(u(308));ln=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ln=ln.next=t;return n}var Gh=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Yh=a.unstable_scheduleCallback,$h=a.unstable_NormalPriority,Qe={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bs(){return{controller:new Gh,data:new Map,refCount:0}}function ya(e){e.refCount--,e.refCount===0&&Yh($h,function(){e.controller.abort()})}var ba=null,vs=0,zl=0,Dl=null;function Zh(e,t){if(ba===null){var n=ba=[];vs=0,zl=wo(),Dl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return vs++,t.then(Rc,Rc),t}function Rc(){if(--vs===0&&ba!==null){Dl!==null&&(Dl.status="fulfilled");var e=ba;ba=null,zl=0,Dl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Xh(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(l.status="rejected",l.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),l}var Oc=L.S;L.S=function(e,t){gd=xt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Zh(e,t),Oc!==null&&Oc(e,t)};var tl=E(null);function Ss(){var e=tl.current;return e!==null?e:Le.pooledCache}function Nr(e,t){t===null?Z(tl,tl.current):Z(tl,t.pool)}function zc(){var e=Ss();return e===null?null:{parent:Qe._currentValue,pool:e}}var Ml=Error(u(460)),Es=Error(u(474)),jr=Error(u(542)),Tr={then:function(){}};function Dc(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Mc(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Pt,Pt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bc(e),e;default:if(typeof t.status=="string")t.then(Pt,Pt);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=l}},function(l){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bc(e),e}throw ll=t,Ml}}function nl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ll=n,Ml):n}}var ll=null;function Lc(){if(ll===null)throw Error(u(459));var e=ll;return ll=null,e}function Bc(e){if(e===Ml||e===jr)throw Error(u(483))}var Ll=null,va=0;function Ar(e){var t=va;return va+=1,Ll===null&&(Ll=[]),Mc(Ll,e,t)}function Sa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function _r(e,t){throw t.$$typeof===T?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Uc(e){function t(C,N){if(e){var O=C.deletions;O===null?(C.deletions=[N],C.flags|=16):O.push(N)}}function n(C,N){if(!e)return null;for(;N!==null;)t(C,N),N=N.sibling;return null}function l(C){for(var N=new Map;C!==null;)C.key!==null?N.set(C.key,C):N.set(C.index,C),C=C.sibling;return N}function r(C,N){return C=tn(C,N),C.index=0,C.sibling=null,C}function s(C,N,O){return C.index=O,e?(O=C.alternate,O!==null?(O=O.index,O<N?(C.flags|=67108866,N):O):(C.flags|=67108866,N)):(C.flags|=1048576,N)}function d(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function g(C,N,O,$){return N===null||N.tag!==6?(N=cs(O,C.mode,$),N.return=C,N):(N=r(N,O),N.return=C,N)}function k(C,N,O,$){var fe=O.type;return fe===w?G(C,N,O.props.children,$,O.key):N!==null&&(N.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===re&&nl(fe)===N.type)?(N=r(N,O.props),Sa(N,O),N.return=C,N):(N=Sr(O.type,O.key,O.props,null,C.mode,$),Sa(N,O),N.return=C,N)}function z(C,N,O,$){return N===null||N.tag!==4||N.stateNode.containerInfo!==O.containerInfo||N.stateNode.implementation!==O.implementation?(N=fs(O,C.mode,$),N.return=C,N):(N=r(N,O.children||[]),N.return=C,N)}function G(C,N,O,$,fe){return N===null||N.tag!==7?(N=In(O,C.mode,$,fe),N.return=C,N):(N=r(N,O),N.return=C,N)}function X(C,N,O){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=cs(""+N,C.mode,O),N.return=C,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case R:return O=Sr(N.type,N.key,N.props,null,C.mode,O),Sa(O,N),O.return=C,O;case S:return N=fs(N,C.mode,O),N.return=C,N;case re:return N=nl(N),X(C,N,O)}if(be(N)||ie(N))return N=In(N,C.mode,O,null),N.return=C,N;if(typeof N.then=="function")return X(C,Ar(N),O);if(N.$$typeof===Y)return X(C,wr(C,N),O);_r(C,N)}return null}function D(C,N,O,$){var fe=N!==null?N.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return fe!==null?null:g(C,N,""+O,$);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case R:return O.key===fe?k(C,N,O,$):null;case S:return O.key===fe?z(C,N,O,$):null;case re:return O=nl(O),D(C,N,O,$)}if(be(O)||ie(O))return fe!==null?null:G(C,N,O,$,null);if(typeof O.then=="function")return D(C,N,Ar(O),$);if(O.$$typeof===Y)return D(C,N,wr(C,O),$);_r(C,O)}return null}function U(C,N,O,$,fe){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return C=C.get(O)||null,g(N,C,""+$,fe);if(typeof $=="object"&&$!==null){switch($.$$typeof){case R:return C=C.get($.key===null?O:$.key)||null,k(N,C,$,fe);case S:return C=C.get($.key===null?O:$.key)||null,z(N,C,$,fe);case re:return $=nl($),U(C,N,O,$,fe)}if(be($)||ie($))return C=C.get(O)||null,G(N,C,$,fe,null);if(typeof $.then=="function")return U(C,N,O,Ar($),fe);if($.$$typeof===Y)return U(C,N,O,wr(N,$),fe);_r(N,$)}return null}function ae(C,N,O,$){for(var fe=null,Te=null,se=N,ye=N=0,we=null;se!==null&&ye<O.length;ye++){se.index>ye?(we=se,se=null):we=se.sibling;var Ae=D(C,se,O[ye],$);if(Ae===null){se===null&&(se=we);break}e&&se&&Ae.alternate===null&&t(C,se),N=s(Ae,N,ye),Te===null?fe=Ae:Te.sibling=Ae,Te=Ae,se=we}if(ye===O.length)return n(C,se),Ne&&nn(C,ye),fe;if(se===null){for(;ye<O.length;ye++)se=X(C,O[ye],$),se!==null&&(N=s(se,N,ye),Te===null?fe=se:Te.sibling=se,Te=se);return Ne&&nn(C,ye),fe}for(se=l(se);ye<O.length;ye++)we=U(se,C,ye,O[ye],$),we!==null&&(e&&we.alternate!==null&&se.delete(we.key===null?ye:we.key),N=s(we,N,ye),Te===null?fe=we:Te.sibling=we,Te=we);return e&&se.forEach(function(Gn){return t(C,Gn)}),Ne&&nn(C,ye),fe}function me(C,N,O,$){if(O==null)throw Error(u(151));for(var fe=null,Te=null,se=N,ye=N=0,we=null,Ae=O.next();se!==null&&!Ae.done;ye++,Ae=O.next()){se.index>ye?(we=se,se=null):we=se.sibling;var Gn=D(C,se,Ae.value,$);if(Gn===null){se===null&&(se=we);break}e&&se&&Gn.alternate===null&&t(C,se),N=s(Gn,N,ye),Te===null?fe=Gn:Te.sibling=Gn,Te=Gn,se=we}if(Ae.done)return n(C,se),Ne&&nn(C,ye),fe;if(se===null){for(;!Ae.done;ye++,Ae=O.next())Ae=X(C,Ae.value,$),Ae!==null&&(N=s(Ae,N,ye),Te===null?fe=Ae:Te.sibling=Ae,Te=Ae);return Ne&&nn(C,ye),fe}for(se=l(se);!Ae.done;ye++,Ae=O.next())Ae=U(se,C,ye,Ae.value,$),Ae!==null&&(e&&Ae.alternate!==null&&se.delete(Ae.key===null?ye:Ae.key),N=s(Ae,N,ye),Te===null?fe=Ae:Te.sibling=Ae,Te=Ae);return e&&se.forEach(function(nx){return t(C,nx)}),Ne&&nn(C,ye),fe}function Me(C,N,O,$){if(typeof O=="object"&&O!==null&&O.type===w&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case R:e:{for(var fe=O.key;N!==null;){if(N.key===fe){if(fe=O.type,fe===w){if(N.tag===7){n(C,N.sibling),$=r(N,O.props.children),$.return=C,C=$;break e}}else if(N.elementType===fe||typeof fe=="object"&&fe!==null&&fe.$$typeof===re&&nl(fe)===N.type){n(C,N.sibling),$=r(N,O.props),Sa($,O),$.return=C,C=$;break e}n(C,N);break}else t(C,N);N=N.sibling}O.type===w?($=In(O.props.children,C.mode,$,O.key),$.return=C,C=$):($=Sr(O.type,O.key,O.props,null,C.mode,$),Sa($,O),$.return=C,C=$)}return d(C);case S:e:{for(fe=O.key;N!==null;){if(N.key===fe)if(N.tag===4&&N.stateNode.containerInfo===O.containerInfo&&N.stateNode.implementation===O.implementation){n(C,N.sibling),$=r(N,O.children||[]),$.return=C,C=$;break e}else{n(C,N);break}else t(C,N);N=N.sibling}$=fs(O,C.mode,$),$.return=C,C=$}return d(C);case re:return O=nl(O),Me(C,N,O,$)}if(be(O))return ae(C,N,O,$);if(ie(O)){if(fe=ie(O),typeof fe!="function")throw Error(u(150));return O=fe.call(O),me(C,N,O,$)}if(typeof O.then=="function")return Me(C,N,Ar(O),$);if(O.$$typeof===Y)return Me(C,N,wr(C,O),$);_r(C,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,N!==null&&N.tag===6?(n(C,N.sibling),$=r(N,O),$.return=C,C=$):(n(C,N),$=cs(O,C.mode,$),$.return=C,C=$),d(C)):n(C,N)}return function(C,N,O,$){try{va=0;var fe=Me(C,N,O,$);return Ll=null,fe}catch(se){if(se===Ml||se===jr)throw se;var Te=St(29,se,null,C.mode);return Te.lanes=$,Te.return=C,Te}finally{}}}var al=Uc(!0),Hc=Uc(!1),wn=!1;function ks(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ws(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 Nn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function jn(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(_e&2)!==0){var r=l.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),l.pending=t,t=vr(e),Ec(e,null,n),t}return br(e,l,t,n),vr(e)}function Ea(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Cu(e,n)}}function Ns(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var r=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?r=s=d:s=s.next=d,n=n.next}while(n!==null);s===null?r=s=t:s=s.next=t}else r=s=t;n={baseState:l.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var js=!1;function ka(){if(js){var e=Dl;if(e!==null)throw e}}function wa(e,t,n,l){js=!1;var r=e.updateQueue;wn=!1;var s=r.firstBaseUpdate,d=r.lastBaseUpdate,g=r.shared.pending;if(g!==null){r.shared.pending=null;var k=g,z=k.next;k.next=null,d===null?s=z:d.next=z,d=k;var G=e.alternate;G!==null&&(G=G.updateQueue,g=G.lastBaseUpdate,g!==d&&(g===null?G.firstBaseUpdate=z:g.next=z,G.lastBaseUpdate=k))}if(s!==null){var X=r.baseState;d=0,G=z=k=null,g=s;do{var D=g.lane&-536870913,U=D!==g.lane;if(U?(ke&D)===D:(l&D)===D){D!==0&&D===zl&&(js=!0),G!==null&&(G=G.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var ae=e,me=g;D=t;var Me=n;switch(me.tag){case 1:if(ae=me.payload,typeof ae=="function"){X=ae.call(Me,X,D);break e}X=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=me.payload,D=typeof ae=="function"?ae.call(Me,X,D):ae,D==null)break e;X=b({},X,D);break e;case 2:wn=!0}}D=g.callback,D!==null&&(e.flags|=64,U&&(e.flags|=8192),U=r.callbacks,U===null?r.callbacks=[D]:U.push(D))}else U={lane:D,tag:g.tag,payload:g.payload,callback:g.callback,next:null},G===null?(z=G=U,k=X):G=G.next=U,d|=D;if(g=g.next,g===null){if(g=r.shared.pending,g===null)break;U=g,g=U.next,U.next=null,r.lastBaseUpdate=U,r.shared.pending=null}}while(!0);G===null&&(k=X),r.baseState=k,r.firstBaseUpdate=z,r.lastBaseUpdate=G,s===null&&(r.shared.lanes=0),Rn|=d,e.lanes=d,e.memoizedState=X}}function qc(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Gc(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)qc(n[e],t)}var Bl=E(null),Cr=E(0);function Yc(e,t){e=mn,Z(Cr,e),Z(Bl,t),mn=e|t.baseLanes}function Ts(){Z(Cr,mn),Z(Bl,Bl.current)}function As(){mn=Cr.current,B(Bl),B(Cr)}var Et=E(null),Lt=null;function Tn(e){var t=e.alternate;Z(Ze,Ze.current&1),Z(Et,e),Lt===null&&(t===null||Bl.current!==null||t.memoizedState!==null)&&(Lt=e)}function _s(e){Z(Ze,Ze.current),Z(Et,e),Lt===null&&(Lt=e)}function $c(e){e.tag===22?(Z(Ze,Ze.current),Z(Et,e),Lt===null&&(Lt=e)):An()}function An(){Z(Ze,Ze.current),Z(Et,Et.current)}function kt(e){B(Et),Lt===e&&(Lt=null),B(Ze)}var Ze=E(0);function Rr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Lo(n)||Bo(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rn=0,xe=null,ze=null,Ve=null,Or=!1,Ul=!1,rl=!1,zr=0,Na=0,Hl=null,Qh=0;function Ye(){throw Error(u(321))}function Cs(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!vt(e[n],t[n]))return!1;return!0}function Rs(e,t,n,l,r,s){return rn=s,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?Tf:Qs,rl=!1,s=n(l,r),rl=!1,Ul&&(s=Xc(t,n,l,r)),Zc(e),s}function Zc(e){L.H=Aa;var t=ze!==null&&ze.next!==null;if(rn=0,Ve=ze=xe=null,Or=!1,Na=0,Hl=null,t)throw Error(u(300));e===null||Fe||(e=e.dependencies,e!==null&&kr(e)&&(Fe=!0))}function Xc(e,t,n,l){xe=e;var r=0;do{if(Ul&&(Hl=null),Na=0,Ul=!1,25<=r)throw Error(u(301));if(r+=1,Ve=ze=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}L.H=Af,s=t(n,l)}while(Ul);return s}function Vh(){var e=L.H,t=e.useState()[0];return t=typeof t.then=="function"?ja(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(xe.flags|=1024),t}function Os(){var e=zr!==0;return zr=0,e}function zs(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ds(e){if(Or){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Or=!1}rn=0,Ve=ze=xe=null,Ul=!1,Na=zr=0,Hl=null}function it(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?xe.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function Xe(){if(ze===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Ve===null?xe.memoizedState:Ve.next;if(t!==null)Ve=t,ze=e;else{if(e===null)throw xe.alternate===null?Error(u(467)):Error(u(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Ve===null?xe.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function Dr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ja(e){var t=Na;return Na+=1,Hl===null&&(Hl=[]),e=Mc(Hl,e,t),t=xe,(Ve===null?t.memoizedState:Ve.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?Tf:Qs),e}function Mr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ja(e);if(e.$$typeof===Y)return nt(e)}throw Error(u(438,String(e)))}function Ms(e){var t=null,n=xe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=xe.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Dr(),xe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=q;return t.index++,n}function sn(e,t){return typeof t=="function"?t(e):t}function Lr(e){var t=Xe();return Ls(t,ze,e)}function Ls(e,t,n){var l=e.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=n;var r=e.baseQueue,s=l.pending;if(s!==null){if(r!==null){var d=r.next;r.next=s.next,s.next=d}t.baseQueue=r=s,l.pending=null}if(s=e.baseState,r===null)e.memoizedState=s;else{t=r.next;var g=d=null,k=null,z=t,G=!1;do{var X=z.lane&-536870913;if(X!==z.lane?(ke&X)===X:(rn&X)===X){var D=z.revertLane;if(D===0)k!==null&&(k=k.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),X===zl&&(G=!0);else if((rn&D)===D){z=z.next,D===zl&&(G=!0);continue}else X={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},k===null?(g=k=X,d=s):k=k.next=X,xe.lanes|=D,Rn|=D;X=z.action,rl&&n(s,X),s=z.hasEagerState?z.eagerState:n(s,X)}else D={lane:X,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},k===null?(g=k=D,d=s):k=k.next=D,xe.lanes|=X,Rn|=X;z=z.next}while(z!==null&&z!==t);if(k===null?d=s:k.next=g,!vt(s,e.memoizedState)&&(Fe=!0,G&&(n=Dl,n!==null)))throw n;e.memoizedState=s,e.baseState=d,e.baseQueue=k,l.lastRenderedState=s}return r===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Bs(e){var t=Xe(),n=t.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=e;var l=n.dispatch,r=n.pending,s=t.memoizedState;if(r!==null){n.pending=null;var d=r=r.next;do s=e(s,d.action),d=d.next;while(d!==r);vt(s,t.memoizedState)||(Fe=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,l]}function Qc(e,t,n){var l=xe,r=Xe(),s=Ne;if(s){if(n===void 0)throw Error(u(407));n=n()}else n=t();var d=!vt((ze||r).memoizedState,n);if(d&&(r.memoizedState=n,Fe=!0),r=r.queue,qs(Jc.bind(null,l,r,e),[e]),r.getSnapshot!==t||d||Ve!==null&&Ve.memoizedState.tag&1){if(l.flags|=2048,ql(9,{destroy:void 0},Fc.bind(null,l,r,n,t),null),Le===null)throw Error(u(349));s||(rn&127)!==0||Vc(l,t,n)}return n}function Vc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t=Dr(),xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Fc(e,t,n,l){t.value=n,t.getSnapshot=l,Kc(t)&&Ic(e)}function Jc(e,t,n){return n(function(){Kc(t)&&Ic(e)})}function Kc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vt(e,n)}catch{return!0}}function Ic(e){var t=Kn(e,2);t!==null&&mt(t,e,2)}function Us(e){var t=it();if(typeof e=="function"){var n=e;if(e=n(),rl){xn(!0);try{n()}finally{xn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sn,lastRenderedState:e},t}function Wc(e,t,n,l){return e.baseState=n,Ls(e,ze,typeof l=="function"?l:sn)}function Fh(e,t,n,l,r){if(Hr(e))throw Error(u(485));if(e=t.action,e!==null){var s={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){s.listeners.push(d)}};L.T!==null?n(!0):s.isTransition=!1,l(s),n=t.pending,n===null?(s.next=t.pending=s,Pc(t,s)):(s.next=n.next,t.pending=n.next=s)}}function Pc(e,t){var n=t.action,l=t.payload,r=e.state;if(t.isTransition){var s=L.T,d={};L.T=d;try{var g=n(r,l),k=L.S;k!==null&&k(d,g),ef(e,t,g)}catch(z){Hs(e,t,z)}finally{s!==null&&d.types!==null&&(s.types=d.types),L.T=s}}else try{s=n(r,l),ef(e,t,s)}catch(z){Hs(e,t,z)}}function ef(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){tf(e,t,l)},function(l){return Hs(e,t,l)}):tf(e,t,n)}function tf(e,t,n){t.status="fulfilled",t.value=n,nf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Pc(e,n)))}function Hs(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,nf(t),t=t.next;while(t!==l)}e.action=null}function nf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function lf(e,t){return t}function af(e,t){if(Ne){var n=Le.formState;if(n!==null){e:{var l=xe;if(Ne){if(Ue){t:{for(var r=Ue,s=Mt;r.nodeType!==8;){if(!s){r=null;break t}if(r=Bt(r.nextSibling),r===null){r=null;break t}}s=r.data,r=s==="F!"||s==="F"?r:null}if(r){Ue=Bt(r.nextSibling),l=r.data==="F!";break e}}En(l)}l=!1}l&&(t=n[0])}}return n=it(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lf,lastRenderedState:t},n.queue=l,n=wf.bind(null,xe,l),l.dispatch=n,l=Us(!1),s=Xs.bind(null,xe,!1,l.queue),l=it(),r={state:t,dispatch:null,action:e,pending:null},l.queue=r,n=Fh.bind(null,xe,r,s,n),r.dispatch=n,l.memoizedState=e,[t,n,!1]}function rf(e){var t=Xe();return sf(t,ze,e)}function sf(e,t,n){if(t=Ls(e,t,lf)[0],e=Lr(sn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ja(t)}catch(d){throw d===Ml?jr:d}else l=t;t=Xe();var r=t.queue,s=r.dispatch;return n!==t.memoizedState&&(xe.flags|=2048,ql(9,{destroy:void 0},Jh.bind(null,r,n),null)),[l,s,e]}function Jh(e,t){e.action=t}function of(e){var t=Xe(),n=ze;if(n!==null)return sf(t,n,e);Xe(),t=t.memoizedState,n=Xe();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function ql(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=xe.updateQueue,t===null&&(t=Dr(),xe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function uf(){return Xe().memoizedState}function Br(e,t,n,l){var r=it();xe.flags|=e,r.memoizedState=ql(1|t,{destroy:void 0},n,l===void 0?null:l)}function Ur(e,t,n,l){var r=Xe();l=l===void 0?null:l;var s=r.memoizedState.inst;ze!==null&&l!==null&&Cs(l,ze.memoizedState.deps)?r.memoizedState=ql(t,s,n,l):(xe.flags|=e,r.memoizedState=ql(1|t,s,n,l))}function cf(e,t){Br(8390656,8,e,t)}function qs(e,t){Ur(2048,8,e,t)}function Kh(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=Dr(),xe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ff(e){var t=Xe().memoizedState;return Kh({ref:t,nextImpl:e}),function(){if((_e&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function df(e,t){return Ur(4,2,e,t)}function pf(e,t){return Ur(4,4,e,t)}function mf(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function hf(e,t,n){n=n!=null?n.concat([e]):null,Ur(4,4,mf.bind(null,t,e),n)}function Gs(){}function gf(e,t){var n=Xe();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Cs(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function xf(e,t){var n=Xe();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Cs(t,l[1]))return l[0];if(l=e(),rl){xn(!0);try{e()}finally{xn(!1)}}return n.memoizedState=[l,t],l}function Ys(e,t,n){return n===void 0||(rn&1073741824)!==0&&(ke&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=yd(),xe.lanes|=e,Rn|=e,n)}function yf(e,t,n,l){return vt(n,t)?n:Bl.current!==null?(e=Ys(e,n,l),vt(e,t)||(Fe=!0),e):(rn&42)===0||(rn&1073741824)!==0&&(ke&261930)===0?(Fe=!0,e.memoizedState=n):(e=yd(),xe.lanes|=e,Rn|=e,t)}function bf(e,t,n,l,r){var s=W.p;W.p=s!==0&&8>s?s:8;var d=L.T,g={};L.T=g,Xs(e,!1,t,n);try{var k=r(),z=L.S;if(z!==null&&z(g,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var G=Xh(k,l);Ta(e,t,G,jt(e))}else Ta(e,t,l,jt(e))}catch(X){Ta(e,t,{then:function(){},status:"rejected",reason:X},jt())}finally{W.p=s,d!==null&&g.types!==null&&(d.types=g.types),L.T=d}}function Ih(){}function $s(e,t,n,l){if(e.tag!==5)throw Error(u(476));var r=vf(e).queue;bf(e,r,t,le,n===null?Ih:function(){return Sf(e),n(l)})}function vf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sn,lastRenderedState:le},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Sf(e){var t=vf(e);t.next===null&&(t=e.alternate.memoizedState),Ta(e,t.next.queue,{},jt())}function Zs(){return nt(Za)}function Ef(){return Xe().memoizedState}function kf(){return Xe().memoizedState}function Wh(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=jt();e=Nn(n);var l=jn(t,e,n);l!==null&&(mt(l,t,n),Ea(l,t,n)),t={cache:bs()},e.payload=t;return}t=t.return}}function Ph(e,t,n){var l=jt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Hr(e)?Nf(t,n):(n=os(e,t,n,l),n!==null&&(mt(n,e,l),jf(n,t,l)))}function wf(e,t,n){var l=jt();Ta(e,t,n,l)}function Ta(e,t,n,l){var r={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hr(e))Nf(t,r);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var d=t.lastRenderedState,g=s(d,n);if(r.hasEagerState=!0,r.eagerState=g,vt(g,d))return br(e,t,r,0),Le===null&&yr(),!1}catch{}finally{}if(n=os(e,t,r,l),n!==null)return mt(n,e,l),jf(n,t,l),!0}return!1}function Xs(e,t,n,l){if(l={lane:2,revertLane:wo(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Hr(e)){if(t)throw Error(u(479))}else t=os(e,n,l,2),t!==null&&mt(t,e,2)}function Hr(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function Nf(e,t){Ul=Or=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jf(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Cu(e,n)}}var Aa={readContext:nt,use:Mr,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};Aa.useEffectEvent=Ye;var Tf={readContext:nt,use:Mr,useCallback:function(e,t){return it().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:cf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Br(4194308,4,mf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Br(4194308,4,e,t)},useInsertionEffect:function(e,t){Br(4,2,e,t)},useMemo:function(e,t){var n=it();t=t===void 0?null:t;var l=e();if(rl){xn(!0);try{e()}finally{xn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=it();if(n!==void 0){var r=n(t);if(rl){xn(!0);try{n(t)}finally{xn(!1)}}}else r=t;return l.memoizedState=l.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},l.queue=e,e=e.dispatch=Ph.bind(null,xe,e),[l.memoizedState,e]},useRef:function(e){var t=it();return e={current:e},t.memoizedState=e},useState:function(e){e=Us(e);var t=e.queue,n=wf.bind(null,xe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Gs,useDeferredValue:function(e,t){var n=it();return Ys(n,e,t)},useTransition:function(){var e=Us(!1);return e=bf.bind(null,xe,e.queue,!0,!1),it().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=xe,r=it();if(Ne){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),Le===null)throw Error(u(349));(ke&127)!==0||Vc(l,t,n)}r.memoizedState=n;var s={value:n,getSnapshot:t};return r.queue=s,cf(Jc.bind(null,l,s,e),[e]),l.flags|=2048,ql(9,{destroy:void 0},Fc.bind(null,l,s,n,t),null),n},useId:function(){var e=it(),t=Le.identifierPrefix;if(Ne){var n=Qt,l=Xt;n=(l&~(1<<32-bt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=zr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Qh++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Zs,useFormState:af,useActionState:af,useOptimistic:function(e){var t=it();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Xs.bind(null,xe,!0,n),n.dispatch=t,[e,t]},useMemoCache:Ms,useCacheRefresh:function(){return it().memoizedState=Wh.bind(null,xe)},useEffectEvent:function(e){var t=it(),n={impl:e};return t.memoizedState=n,function(){if((_e&2)!==0)throw Error(u(440));return n.impl.apply(void 0,arguments)}}},Qs={readContext:nt,use:Mr,useCallback:gf,useContext:nt,useEffect:qs,useImperativeHandle:hf,useInsertionEffect:df,useLayoutEffect:pf,useMemo:xf,useReducer:Lr,useRef:uf,useState:function(){return Lr(sn)},useDebugValue:Gs,useDeferredValue:function(e,t){var n=Xe();return yf(n,ze.memoizedState,e,t)},useTransition:function(){var e=Lr(sn)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:ja(e),t]},useSyncExternalStore:Qc,useId:Ef,useHostTransitionStatus:Zs,useFormState:rf,useActionState:rf,useOptimistic:function(e,t){var n=Xe();return Wc(n,ze,e,t)},useMemoCache:Ms,useCacheRefresh:kf};Qs.useEffectEvent=ff;var Af={readContext:nt,use:Mr,useCallback:gf,useContext:nt,useEffect:qs,useImperativeHandle:hf,useInsertionEffect:df,useLayoutEffect:pf,useMemo:xf,useReducer:Bs,useRef:uf,useState:function(){return Bs(sn)},useDebugValue:Gs,useDeferredValue:function(e,t){var n=Xe();return ze===null?Ys(n,e,t):yf(n,ze.memoizedState,e,t)},useTransition:function(){var e=Bs(sn)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:ja(e),t]},useSyncExternalStore:Qc,useId:Ef,useHostTransitionStatus:Zs,useFormState:of,useActionState:of,useOptimistic:function(e,t){var n=Xe();return ze!==null?Wc(n,ze,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Ms,useCacheRefresh:kf};Af.useEffectEvent=ff;function Vs(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Fs={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=jt(),r=Nn(l);r.payload=t,n!=null&&(r.callback=n),t=jn(e,r,l),t!==null&&(mt(t,e,l),Ea(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=jt(),r=Nn(l);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=jn(e,r,l),t!==null&&(mt(t,e,l),Ea(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=jt(),l=Nn(n);l.tag=2,t!=null&&(l.callback=t),t=jn(e,l,n),t!==null&&(mt(t,e,n),Ea(t,e,n))}};function _f(e,t,n,l,r,s,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,s,d):t.prototype&&t.prototype.isPureReactComponent?!ma(n,l)||!ma(r,s):!0}function Cf(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Fs.enqueueReplaceState(t,t.state,null)}function il(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function Rf(e){xr(e)}function Of(e){console.error(e)}function zf(e){xr(e)}function qr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Df(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Js(e,t,n){return n=Nn(n),n.tag=3,n.payload={element:null},n.callback=function(){qr(e,t)},n}function Mf(e){return e=Nn(e),e.tag=3,e}function Lf(e,t,n,l){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var s=l.value;e.payload=function(){return r(s)},e.callback=function(){Df(t,n,l)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Df(t,n,l),typeof r!="function"&&(On===null?On=new Set([this]):On.add(this));var g=l.stack;this.componentDidCatch(l.value,{componentStack:g!==null?g:""})})}function eg(e,t,n,l,r){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Ol(t,n,r,!0),n=Et.current,n!==null){switch(n.tag){case 31:case 13:return Lt===null?Wr():n.alternate===null&&$e===0&&($e=3),n.flags&=-257,n.flags|=65536,n.lanes=r,l===Tr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),So(e,l,r)),!1;case 22:return n.flags|=65536,l===Tr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),So(e,l,r)),!1}throw Error(u(435,n.tag))}return So(e,l,r),Wr(),!1}if(Ne)return t=Et.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,l!==ms&&(e=Error(u(422),{cause:l}),xa(Ot(e,n)))):(l!==ms&&(t=Error(u(423),{cause:l}),xa(Ot(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,l=Ot(l,n),r=Js(e.stateNode,l,r),Ns(e,r),$e!==4&&($e=2)),!1;var s=Error(u(520),{cause:l});if(s=Ot(s,n),La===null?La=[s]:La.push(s),$e!==4&&($e=2),t===null)return!0;l=Ot(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=Js(n.stateNode,l,e),Ns(n,e),!1;case 1:if(t=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(On===null||!On.has(s))))return n.flags|=65536,r&=-r,n.lanes|=r,r=Mf(r),Lf(r,e,n,l),Ns(n,r),!1}n=n.return}while(n!==null);return!1}var Ks=Error(u(461)),Fe=!1;function lt(e,t,n,l){t.child=e===null?Hc(t,null,n,l):al(t,e.child,n,l)}function Bf(e,t,n,l,r){n=n.render;var s=t.ref;if("ref"in l){var d={};for(var g in l)g!=="ref"&&(d[g]=l[g])}else d=l;return el(t),l=Rs(e,t,n,d,s,r),g=Os(),e!==null&&!Fe?(zs(e,t,r),on(e,t,r)):(Ne&&g&&ds(t),t.flags|=1,lt(e,t,l,r),t.child)}function Uf(e,t,n,l,r){if(e===null){var s=n.type;return typeof s=="function"&&!us(s)&&s.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=s,Hf(e,t,s,l,r)):(e=Sr(n.type,null,l,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!ao(e,r)){var d=s.memoizedProps;if(n=n.compare,n=n!==null?n:ma,n(d,l)&&e.ref===t.ref)return on(e,t,r)}return t.flags|=1,e=tn(s,l),e.ref=t.ref,e.return=t,t.child=e}function Hf(e,t,n,l,r){if(e!==null){var s=e.memoizedProps;if(ma(s,l)&&e.ref===t.ref)if(Fe=!1,t.pendingProps=l=s,ao(e,r))(e.flags&131072)!==0&&(Fe=!0);else return t.lanes=e.lanes,on(e,t,r)}return Is(e,t,n,l,r)}function qf(e,t,n,l){var r=l.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|n:n,e!==null){for(l=t.child=e.child,r=0;l!==null;)r=r|l.lanes|l.childLanes,l=l.sibling;l=r&~s}else l=0,t.child=null;return Gf(e,t,s,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Nr(t,s!==null?s.cachePool:null),s!==null?Yc(t,s):Ts(),$c(t);else return l=t.lanes=536870912,Gf(e,t,s!==null?s.baseLanes|n:n,n,l)}else s!==null?(Nr(t,s.cachePool),Yc(t,s),An(),t.memoizedState=null):(e!==null&&Nr(t,null),Ts(),An());return lt(e,t,r,n),t.child}function _a(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Gf(e,t,n,l,r){var s=Ss();return s=s===null?null:{parent:Qe._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&Nr(t,null),Ts(),$c(t),e!==null&&Ol(e,t,l,!0),t.childLanes=r,null}function Gr(e,t){return t=$r({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Yf(e,t,n){return al(t,e.child,null,n),e=Gr(t,t.pendingProps),e.flags|=2,kt(t),t.memoizedState=null,e}function tg(e,t,n){var l=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ne){if(l.mode==="hidden")return e=Gr(t,l),t.lanes=536870912,_a(null,e);if(_s(t),(e=Ue)?(e=ep(e,Mt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vn!==null?{id:Xt,overflow:Qt}:null,retryLane:536870912,hydrationErrors:null},n=wc(e),n.return=t,t.child=n,tt=t,Ue=null)):e=null,e===null)throw En(t);return t.lanes=536870912,null}return Gr(t,l)}var s=e.memoizedState;if(s!==null){var d=s.dehydrated;if(_s(t),r)if(t.flags&256)t.flags&=-257,t=Yf(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(Fe||Ol(e,t,n,!1),r=(n&e.childLanes)!==0,Fe||r){if(l=Le,l!==null&&(d=Ru(l,n),d!==0&&d!==s.retryLane))throw s.retryLane=d,Kn(e,d),mt(l,e,d),Ks;Wr(),t=Yf(e,t,n)}else e=s.treeContext,Ue=Bt(d.nextSibling),tt=t,Ne=!0,Sn=null,Mt=!1,e!==null&&Tc(t,e),t=Gr(t,l),t.flags|=4096;return t}return e=tn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Yr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(u(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Is(e,t,n,l,r){return el(t),n=Rs(e,t,n,l,void 0,r),l=Os(),e!==null&&!Fe?(zs(e,t,r),on(e,t,r)):(Ne&&l&&ds(t),t.flags|=1,lt(e,t,n,r),t.child)}function $f(e,t,n,l,r,s){return el(t),t.updateQueue=null,n=Xc(t,l,n,r),Zc(e),l=Os(),e!==null&&!Fe?(zs(e,t,s),on(e,t,s)):(Ne&&l&&ds(t),t.flags|=1,lt(e,t,n,s),t.child)}function Zf(e,t,n,l,r){if(el(t),t.stateNode===null){var s=Al,d=n.contextType;typeof d=="object"&&d!==null&&(s=nt(d)),s=new n(l,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Fs,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=l,s.state=t.memoizedState,s.refs={},ks(t),d=n.contextType,s.context=typeof d=="object"&&d!==null?nt(d):Al,s.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(Vs(t,n,d,l),s.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(d=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),d!==s.state&&Fs.enqueueReplaceState(s,s.state,null),wa(t,l,s,r),ka(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){s=t.stateNode;var g=t.memoizedProps,k=il(n,g);s.props=k;var z=s.context,G=n.contextType;d=Al,typeof G=="object"&&G!==null&&(d=nt(G));var X=n.getDerivedStateFromProps;G=typeof X=="function"||typeof s.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,G||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(g||z!==d)&&Cf(t,s,l,d),wn=!1;var D=t.memoizedState;s.state=D,wa(t,l,s,r),ka(),z=t.memoizedState,g||D!==z||wn?(typeof X=="function"&&(Vs(t,n,X,l),z=t.memoizedState),(k=wn||_f(t,n,k,l,D,z,d))?(G||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=z),s.props=l,s.state=z,s.context=d,l=k):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{s=t.stateNode,ws(e,t),d=t.memoizedProps,G=il(n,d),s.props=G,X=t.pendingProps,D=s.context,z=n.contextType,k=Al,typeof z=="object"&&z!==null&&(k=nt(z)),g=n.getDerivedStateFromProps,(z=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d!==X||D!==k)&&Cf(t,s,l,k),wn=!1,D=t.memoizedState,s.state=D,wa(t,l,s,r),ka();var U=t.memoizedState;d!==X||D!==U||wn||e!==null&&e.dependencies!==null&&kr(e.dependencies)?(typeof g=="function"&&(Vs(t,n,g,l),U=t.memoizedState),(G=wn||_f(t,n,G,l,D,U,k)||e!==null&&e.dependencies!==null&&kr(e.dependencies))?(z||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(l,U,k),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(l,U,k)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=U),s.props=l,s.state=U,s.context=k,l=G):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),l=!1)}return s=l,Yr(e,t),l=(t.flags&128)!==0,s||l?(s=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&l?(t.child=al(t,e.child,null,r),t.child=al(t,null,n,r)):lt(e,t,n,r),t.memoizedState=s.state,e=t.child):e=on(e,t,r),e}function Xf(e,t,n,l){return Wn(),t.flags|=256,lt(e,t,n,l),t.child}var Ws={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ps(e){return{baseLanes:e,cachePool:zc()}}function eo(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Nt),e}function Qf(e,t,n){var l=t.pendingProps,r=!1,s=(t.flags&128)!==0,d;if((d=s)||(d=e!==null&&e.memoizedState===null?!1:(Ze.current&2)!==0),d&&(r=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(r?Tn(t):An(),(e=Ue)?(e=ep(e,Mt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vn!==null?{id:Xt,overflow:Qt}:null,retryLane:536870912,hydrationErrors:null},n=wc(e),n.return=t,t.child=n,tt=t,Ue=null)):e=null,e===null)throw En(t);return Bo(e)?t.lanes=32:t.lanes=536870912,null}var g=l.children;return l=l.fallback,r?(An(),r=t.mode,g=$r({mode:"hidden",children:g},r),l=In(l,r,n,null),g.return=t,l.return=t,g.sibling=l,t.child=g,l=t.child,l.memoizedState=Ps(n),l.childLanes=eo(e,d,n),t.memoizedState=Ws,_a(null,l)):(Tn(t),to(t,g))}var k=e.memoizedState;if(k!==null&&(g=k.dehydrated,g!==null)){if(s)t.flags&256?(Tn(t),t.flags&=-257,t=no(e,t,n)):t.memoizedState!==null?(An(),t.child=e.child,t.flags|=128,t=null):(An(),g=l.fallback,r=t.mode,l=$r({mode:"visible",children:l.children},r),g=In(g,r,n,null),g.flags|=2,l.return=t,g.return=t,l.sibling=g,t.child=l,al(t,e.child,null,n),l=t.child,l.memoizedState=Ps(n),l.childLanes=eo(e,d,n),t.memoizedState=Ws,t=_a(null,l));else if(Tn(t),Bo(g)){if(d=g.nextSibling&&g.nextSibling.dataset,d)var z=d.dgst;d=z,l=Error(u(419)),l.stack="",l.digest=d,xa({value:l,source:null,stack:null}),t=no(e,t,n)}else if(Fe||Ol(e,t,n,!1),d=(n&e.childLanes)!==0,Fe||d){if(d=Le,d!==null&&(l=Ru(d,n),l!==0&&l!==k.retryLane))throw k.retryLane=l,Kn(e,l),mt(d,e,l),Ks;Lo(g)||Wr(),t=no(e,t,n)}else Lo(g)?(t.flags|=192,t.child=e.child,t=null):(e=k.treeContext,Ue=Bt(g.nextSibling),tt=t,Ne=!0,Sn=null,Mt=!1,e!==null&&Tc(t,e),t=to(t,l.children),t.flags|=4096);return t}return r?(An(),g=l.fallback,r=t.mode,k=e.child,z=k.sibling,l=tn(k,{mode:"hidden",children:l.children}),l.subtreeFlags=k.subtreeFlags&65011712,z!==null?g=tn(z,g):(g=In(g,r,n,null),g.flags|=2),g.return=t,l.return=t,l.sibling=g,t.child=l,_a(null,l),l=t.child,g=e.child.memoizedState,g===null?g=Ps(n):(r=g.cachePool,r!==null?(k=Qe._currentValue,r=r.parent!==k?{parent:k,pool:k}:r):r=zc(),g={baseLanes:g.baseLanes|n,cachePool:r}),l.memoizedState=g,l.childLanes=eo(e,d,n),t.memoizedState=Ws,_a(e.child,l)):(Tn(t),n=e.child,e=n.sibling,n=tn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function to(e,t){return t=$r({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function $r(e,t){return e=St(22,e,null,t),e.lanes=0,e}function no(e,t,n){return al(t,e.child,null,n),e=to(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Vf(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),xs(e.return,t,n)}function lo(e,t,n,l,r,s){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:r,treeForkCount:s}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=n,d.tailMode=r,d.treeForkCount=s)}function Ff(e,t,n){var l=t.pendingProps,r=l.revealOrder,s=l.tail;l=l.children;var d=Ze.current,g=(d&2)!==0;if(g?(d=d&1|2,t.flags|=128):d&=1,Z(Ze,d),lt(e,t,l,n),l=Ne?ga:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vf(e,n,t);else if(e.tag===19)Vf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&Rr(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),lo(t,!1,r,n,s,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Rr(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}lo(t,!0,n,null,s,l);break;case"together":lo(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function on(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Rn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ol(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,n=tn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=tn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ao(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&kr(e)))}function ng(e,t,n){switch(t.tag){case 3:te(t,t.stateNode.containerInfo),kn(t,Qe,e.memoizedState.cache),Wn();break;case 27:case 5:Ge(t);break;case 4:te(t,t.stateNode.containerInfo);break;case 10:kn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,_s(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Tn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Qf(e,t,n):(Tn(t),e=on(e,t,n),e!==null?e.sibling:null);Tn(t);break;case 19:var r=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(Ol(e,t,n,!1),l=(n&t.childLanes)!==0),r){if(l)return Ff(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),Z(Ze,Ze.current),l)break;return null;case 22:return t.lanes=0,qf(e,t,n,t.pendingProps);case 24:kn(t,Qe,e.memoizedState.cache)}return on(e,t,n)}function Jf(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Fe=!0;else{if(!ao(e,n)&&(t.flags&128)===0)return Fe=!1,ng(e,t,n);Fe=(e.flags&131072)!==0}else Fe=!1,Ne&&(t.flags&1048576)!==0&&jc(t,ga,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=nl(t.elementType),t.type=e,typeof e=="function")us(e)?(l=il(e,l),t.tag=1,t=Zf(null,t,e,l,n)):(t.tag=0,t=Is(null,t,e,l,n));else{if(e!=null){var r=e.$$typeof;if(r===F){t.tag=11,t=Bf(null,t,e,l,n);break e}else if(r===I){t.tag=14,t=Uf(null,t,e,l,n);break e}}throw t=de(e)||e,Error(u(306,t,""))}}return t;case 0:return Is(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,r=il(l,t.pendingProps),Zf(e,t,l,r,n);case 3:e:{if(te(t,t.stateNode.containerInfo),e===null)throw Error(u(387));l=t.pendingProps;var s=t.memoizedState;r=s.element,ws(e,t),wa(t,l,null,n);var d=t.memoizedState;if(l=d.cache,kn(t,Qe,l),l!==s.cache&&ys(t,[Qe],n,!0),ka(),l=d.element,s.isDehydrated)if(s={element:l,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=Xf(e,t,l,n);break e}else if(l!==r){r=Ot(Error(u(424)),t),xa(r),t=Xf(e,t,l,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ue=Bt(e.firstChild),tt=t,Ne=!0,Sn=null,Mt=!0,n=Hc(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Wn(),l===r){t=on(e,t,n);break e}lt(e,t,l,n)}t=t.child}return t;case 26:return Yr(e,t),e===null?(n=ip(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ne||(n=t.type,e=t.pendingProps,l=ri(ce.current).createElement(n),l[et]=t,l[ot]=e,at(l,n,e),Ie(l),t.stateNode=l):t.memoizedState=ip(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ge(t),e===null&&Ne&&(l=t.stateNode=lp(t.type,t.pendingProps,ce.current),tt=t,Mt=!0,r=Ue,Ln(t.type)?(Uo=r,Ue=Bt(l.firstChild)):Ue=r),lt(e,t,t.pendingProps.children,n),Yr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((r=l=Ue)&&(l=Og(l,t.type,t.pendingProps,Mt),l!==null?(t.stateNode=l,tt=t,Ue=Bt(l.firstChild),Mt=!1,r=!0):r=!1),r||En(t)),Ge(t),r=t.type,s=t.pendingProps,d=e!==null?e.memoizedProps:null,l=s.children,zo(r,s)?l=null:d!==null&&zo(r,d)&&(t.flags|=32),t.memoizedState!==null&&(r=Rs(e,t,Vh,null,null,n),Za._currentValue=r),Yr(e,t),lt(e,t,l,n),t.child;case 6:return e===null&&Ne&&((e=n=Ue)&&(n=zg(n,t.pendingProps,Mt),n!==null?(t.stateNode=n,tt=t,Ue=null,e=!0):e=!1),e||En(t)),null;case 13:return Qf(e,t,n);case 4:return te(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=al(t,null,l,n):lt(e,t,l,n),t.child;case 11:return Bf(e,t,t.type,t.pendingProps,n);case 7:return lt(e,t,t.pendingProps,n),t.child;case 8:return lt(e,t,t.pendingProps.children,n),t.child;case 12:return lt(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,kn(t,t.type,l.value),lt(e,t,l.children,n),t.child;case 9:return r=t.type._context,l=t.pendingProps.children,el(t),r=nt(r),l=l(r),t.flags|=1,lt(e,t,l,n),t.child;case 14:return Uf(e,t,t.type,t.pendingProps,n);case 15:return Hf(e,t,t.type,t.pendingProps,n);case 19:return Ff(e,t,n);case 31:return tg(e,t,n);case 22:return qf(e,t,n,t.pendingProps);case 24:return el(t),l=nt(Qe),e===null?(r=Ss(),r===null&&(r=Le,s=bs(),r.pooledCache=s,s.refCount++,s!==null&&(r.pooledCacheLanes|=n),r=s),t.memoizedState={parent:l,cache:r},ks(t),kn(t,Qe,r)):((e.lanes&n)!==0&&(ws(e,t),wa(t,null,null,n),ka()),r=e.memoizedState,s=t.memoizedState,r.parent!==l?(r={parent:l,cache:l},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),kn(t,Qe,l)):(l=s.cache,kn(t,Qe,l),l!==r.cache&&ys(t,[Qe],n,!0))),lt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function un(e){e.flags|=4}function ro(e,t,n,l,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Ed())e.flags|=8192;else throw ll=Tr,Es}else e.flags&=-16777217}function Kf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!fp(t))if(Ed())e.flags|=8192;else throw ll=Tr,Es}function Zr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Au():536870912,e.lanes|=t,Zl|=t)}function Ca(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags&65011712,l|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,l|=r.subtreeFlags,l|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function lg(e,t,n){var l=t.pendingProps;switch(ps(t),t.tag){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 n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),an(Qe),ne(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Rl(t)?un(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,hs())),He(t),null;case 26:var r=t.type,s=t.memoizedState;return e===null?(un(t),s!==null?(He(t),Kf(t,s)):(He(t),ro(t,r,null,l,n))):s?s!==e.memoizedState?(un(t),He(t),Kf(t,s)):(He(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&un(t),He(t),ro(t,r,e,l,n)),null;case 27:if(ht(t),n=ce.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&un(t);else{if(!l){if(t.stateNode===null)throw Error(u(166));return He(t),null}e=K.current,Rl(t)?Ac(t):(e=lp(r,l,n),t.stateNode=e,un(t))}return He(t),null;case 5:if(ht(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&un(t);else{if(!l){if(t.stateNode===null)throw Error(u(166));return He(t),null}if(s=K.current,Rl(t))Ac(t);else{var d=ri(ce.current);switch(s){case 1:s=d.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:s=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":s=d.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":s=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":s=d.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?d.createElement(r,{is:l.is}):d.createElement(r)}}s[et]=t,s[ot]=l;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)s.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=s;e:switch(at(s,r,l),r){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&un(t)}}return He(t),ro(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&un(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(u(166));if(e=ce.current,Rl(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,r=tt,r!==null)switch(r.tag){case 27:case 5:l=r.memoizedProps}e[et]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Qd(e.nodeValue,n)),e||En(t,!0)}else e=ri(e).createTextNode(l),e[et]=t,t.stateNode=e}return He(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=Rl(t),n!==null){if(e===null){if(!l)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[et]=t}else Wn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),e=!1}else n=hs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(kt(t),t):(kt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return He(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Rl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!r)throw Error(u(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(u(317));r[et]=t}else Wn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),r=!1}else r=hs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(kt(t),t):(kt(t),null)}return kt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,r=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(r=l.alternate.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==r&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Zr(t,t.updateQueue),He(t),null);case 4:return ne(),e===null&&Ao(t.stateNode.containerInfo),He(t),null;case 10:return an(t.type),He(t),null;case 19:if(B(Ze),l=t.memoizedState,l===null)return He(t),null;if(r=(t.flags&128)!==0,s=l.rendering,s===null)if(r)Ca(l,!1);else{if($e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Rr(e),s!==null){for(t.flags|=128,Ca(l,!1),e=s.updateQueue,t.updateQueue=e,Zr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)kc(n,e),n=n.sibling;return Z(Ze,Ze.current&1|2),Ne&&nn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&xt()>Jr&&(t.flags|=128,r=!0,Ca(l,!1),t.lanes=4194304)}else{if(!r)if(e=Rr(s),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Zr(t,e),Ca(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!Ne)return He(t),null}else 2*xt()-l.renderingStartTime>Jr&&n!==536870912&&(t.flags|=128,r=!0,Ca(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(e=l.last,e!==null?e.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=xt(),e.sibling=null,n=Ze.current,Z(Ze,r?n&1|2:n&1),Ne&&nn(t,l.treeForkCount),e):(He(t),null);case 22:case 23:return kt(t),As(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),n=t.updateQueue,n!==null&&Zr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&B(tl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),an(Qe),He(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function ag(e,t){switch(ps(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return an(Qe),ne(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ht(t),null;case 31:if(t.memoizedState!==null){if(kt(t),t.alternate===null)throw Error(u(340));Wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Ze),null;case 4:return ne(),null;case 10:return an(t.type),null;case 22:case 23:return kt(t),As(),e!==null&&B(tl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return an(Qe),null;case 25:return null;default:return null}}function If(e,t){switch(ps(t),t.tag){case 3:an(Qe),ne();break;case 26:case 27:case 5:ht(t);break;case 4:ne();break;case 31:t.memoizedState!==null&&kt(t);break;case 13:kt(t);break;case 19:B(Ze);break;case 10:an(t.type);break;case 22:case 23:kt(t),As(),e!==null&&B(tl);break;case 24:an(Qe)}}function Ra(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var r=l.next;n=r;do{if((n.tag&e)===e){l=void 0;var s=n.create,d=n.inst;l=s(),d.destroy=l}n=n.next}while(n!==r)}}catch(g){Oe(t,t.return,g)}}function _n(e,t,n){try{var l=t.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var s=r.next;l=s;do{if((l.tag&e)===e){var d=l.inst,g=d.destroy;if(g!==void 0){d.destroy=void 0,r=t;var k=n,z=g;try{z()}catch(G){Oe(r,k,G)}}}l=l.next}while(l!==s)}}catch(G){Oe(t,t.return,G)}}function Wf(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Gc(t,n)}catch(l){Oe(e,e.return,l)}}}function Pf(e,t,n){n.props=il(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Oe(e,t,l)}}function Oa(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(r){Oe(e,t,r)}}function Vt(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(r){Oe(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Oe(e,t,r)}else n.current=null}function ed(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(r){Oe(e,e.return,r)}}function io(e,t,n){try{var l=e.stateNode;jg(l,e.type,n,t),l[ot]=t}catch(r){Oe(e,e.return,r)}}function td(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ln(e.type)||e.tag===4}function so(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||td(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&&Ln(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 oo(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Pt));else if(l!==4&&(l===27&&Ln(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(oo(e,t,n),e=e.sibling;e!==null;)oo(e,t,n),e=e.sibling}function Xr(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&Ln(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Xr(e,t,n),e=e.sibling;e!==null;)Xr(e,t,n),e=e.sibling}function nd(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);at(t,l,n),t[et]=e,t[ot]=n}catch(s){Oe(e,e.return,s)}}var cn=!1,Je=!1,uo=!1,ld=typeof WeakSet=="function"?WeakSet:Set,We=null;function rg(e,t){if(e=e.containerInfo,Ro=di,e=mc(e),ns(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var r=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var d=0,g=-1,k=-1,z=0,G=0,X=e,D=null;t:for(;;){for(var U;X!==n||r!==0&&X.nodeType!==3||(g=d+r),X!==s||l!==0&&X.nodeType!==3||(k=d+l),X.nodeType===3&&(d+=X.nodeValue.length),(U=X.firstChild)!==null;)D=X,X=U;for(;;){if(X===e)break t;if(D===n&&++z===r&&(g=d),D===s&&++G===l&&(k=d),(U=X.nextSibling)!==null)break;X=D,D=X.parentNode}X=U}n=g===-1||k===-1?null:{start:g,end:k}}else n=null}n=n||{start:0,end:0}}else n=null;for(Oo={focusedElem:e,selectionRange:n},di=!1,We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){switch(t=We,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)r=e[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,n=t,r=s.memoizedProps,s=s.memoizedState,l=n.stateNode;try{var ae=il(n.type,r);e=l.getSnapshotBeforeUpdate(ae,s),l.__reactInternalSnapshotBeforeUpdate=e}catch(me){Oe(n,n.return,me)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Mo(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Mo(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(u(163))}if(e=t.sibling,e!==null){e.return=t.return,We=e;break}We=t.return}}function ad(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:dn(e,n),l&4&&Ra(5,n);break;case 1:if(dn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){Oe(n,n.return,d)}else{var r=il(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Oe(n,n.return,d)}}l&64&&Wf(n),l&512&&Oa(n,n.return);break;case 3:if(dn(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Gc(e,t)}catch(d){Oe(n,n.return,d)}}break;case 27:t===null&&l&4&&nd(n);case 26:case 5:dn(e,n),t===null&&l&4&&ed(n),l&512&&Oa(n,n.return);break;case 12:dn(e,n);break;case 31:dn(e,n),l&4&&sd(e,n);break;case 13:dn(e,n),l&4&&od(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=mg.bind(null,n),Dg(e,n))));break;case 22:if(l=n.memoizedState!==null||cn,!l){t=t!==null&&t.memoizedState!==null||Je,r=cn;var s=Je;cn=l,(Je=t)&&!s?pn(e,n,(n.subtreeFlags&8772)!==0):dn(e,n),cn=r,Je=s}break;case 30:break;default:dn(e,n)}}function rd(e){var t=e.alternate;t!==null&&(e.alternate=null,rd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Hi(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 qe=null,ct=!1;function fn(e,t,n){for(n=n.child;n!==null;)id(e,t,n),n=n.sibling}function id(e,t,n){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount(na,n)}catch{}switch(n.tag){case 26:Je||Vt(n,t),fn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Je||Vt(n,t);var l=qe,r=ct;Ln(n.type)&&(qe=n.stateNode,ct=!1),fn(e,t,n),Ga(n.stateNode),qe=l,ct=r;break;case 5:Je||Vt(n,t);case 6:if(l=qe,r=ct,qe=null,fn(e,t,n),qe=l,ct=r,qe!==null)if(ct)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(n.stateNode)}catch(s){Oe(n,t,s)}else try{qe.removeChild(n.stateNode)}catch(s){Oe(n,t,s)}break;case 18:qe!==null&&(ct?(e=qe,Wd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Wl(e)):Wd(qe,n.stateNode));break;case 4:l=qe,r=ct,qe=n.stateNode.containerInfo,ct=!0,fn(e,t,n),qe=l,ct=r;break;case 0:case 11:case 14:case 15:_n(2,n,t),Je||_n(4,n,t),fn(e,t,n);break;case 1:Je||(Vt(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Pf(n,t,l)),fn(e,t,n);break;case 21:fn(e,t,n);break;case 22:Je=(l=Je)||n.memoizedState!==null,fn(e,t,n),Je=l;break;default:fn(e,t,n)}}function sd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wl(e)}catch(n){Oe(t,t.return,n)}}}function od(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wl(e)}catch(n){Oe(t,t.return,n)}}function ig(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ld),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ld),t;default:throw Error(u(435,e.tag))}}function Qr(e,t){var n=ig(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var r=hg.bind(null,e,l);l.then(r,r)}})}function ft(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var r=n[l],s=e,d=t,g=d;e:for(;g!==null;){switch(g.tag){case 27:if(Ln(g.type)){qe=g.stateNode,ct=!1;break e}break;case 5:qe=g.stateNode,ct=!1;break e;case 3:case 4:qe=g.stateNode.containerInfo,ct=!0;break e}g=g.return}if(qe===null)throw Error(u(160));id(s,d,r),qe=null,ct=!1,s=r.alternate,s!==null&&(s.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ud(t,e),t=t.sibling}var Gt=null;function ud(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ft(t,e),dt(e),l&4&&(_n(3,e,e.return),Ra(3,e),_n(5,e,e.return));break;case 1:ft(t,e),dt(e),l&512&&(Je||n===null||Vt(n,n.return)),l&64&&cn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var r=Gt;if(ft(t,e),dt(e),l&512&&(Je||n===null||Vt(n,n.return)),l&4){var s=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(l){case"title":s=r.getElementsByTagName("title")[0],(!s||s[ra]||s[et]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=r.createElement(l),r.head.insertBefore(s,r.querySelector("head > title"))),at(s,l,n),s[et]=e,Ie(s),l=s;break e;case"link":var d=up("link","href",r).get(l+(n.href||""));if(d){for(var g=0;g<d.length;g++)if(s=d[g],s.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&s.getAttribute("rel")===(n.rel==null?null:n.rel)&&s.getAttribute("title")===(n.title==null?null:n.title)&&s.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(g,1);break t}}s=r.createElement(l),at(s,l,n),r.head.appendChild(s);break;case"meta":if(d=up("meta","content",r).get(l+(n.content||""))){for(g=0;g<d.length;g++)if(s=d[g],s.getAttribute("content")===(n.content==null?null:""+n.content)&&s.getAttribute("name")===(n.name==null?null:n.name)&&s.getAttribute("property")===(n.property==null?null:n.property)&&s.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&s.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(g,1);break t}}s=r.createElement(l),at(s,l,n),r.head.appendChild(s);break;default:throw Error(u(468,l))}s[et]=e,Ie(s),l=s}e.stateNode=l}else cp(r,e.type,e.stateNode);else e.stateNode=op(r,l,e.memoizedProps);else s!==l?(s===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):s.count--,l===null?cp(r,e.type,e.stateNode):op(r,l,e.memoizedProps)):l===null&&e.stateNode!==null&&io(e,e.memoizedProps,n.memoizedProps)}break;case 27:ft(t,e),dt(e),l&512&&(Je||n===null||Vt(n,n.return)),n!==null&&l&4&&io(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ft(t,e),dt(e),l&512&&(Je||n===null||Vt(n,n.return)),e.flags&32){r=e.stateNode;try{Sl(r,"")}catch(ae){Oe(e,e.return,ae)}}l&4&&e.stateNode!=null&&(r=e.memoizedProps,io(e,r,n!==null?n.memoizedProps:r)),l&1024&&(uo=!0);break;case 6:if(ft(t,e),dt(e),l&4){if(e.stateNode===null)throw Error(u(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ae){Oe(e,e.return,ae)}}break;case 3:if(oi=null,r=Gt,Gt=ii(t.containerInfo),ft(t,e),Gt=r,dt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Wl(t.containerInfo)}catch(ae){Oe(e,e.return,ae)}uo&&(uo=!1,cd(e));break;case 4:l=Gt,Gt=ii(e.stateNode.containerInfo),ft(t,e),dt(e),Gt=l;break;case 12:ft(t,e),dt(e);break;case 31:ft(t,e),dt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Qr(e,l)));break;case 13:ft(t,e),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Fr=xt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Qr(e,l)));break;case 22:r=e.memoizedState!==null;var k=n!==null&&n.memoizedState!==null,z=cn,G=Je;if(cn=z||r,Je=G||k,ft(t,e),Je=G,cn=z,dt(e),l&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||k||cn||Je||sl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){k=n=t;try{if(s=k.stateNode,r)d=s.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{g=k.stateNode;var X=k.memoizedProps.style,D=X!=null&&X.hasOwnProperty("display")?X.display:null;g.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(ae){Oe(k,k.return,ae)}}}else if(t.tag===6){if(n===null){k=t;try{k.stateNode.nodeValue=r?"":k.memoizedProps}catch(ae){Oe(k,k.return,ae)}}}else if(t.tag===18){if(n===null){k=t;try{var U=k.stateNode;r?Pd(U,!0):Pd(k.stateNode,!1)}catch(ae){Oe(k,k.return,ae)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Qr(e,n))));break;case 19:ft(t,e),dt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Qr(e,l)));break;case 30:break;case 21:break;default:ft(t,e),dt(e)}}function dt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(td(l)){n=l;break}l=l.return}if(n==null)throw Error(u(160));switch(n.tag){case 27:var r=n.stateNode,s=so(e);Xr(e,s,r);break;case 5:var d=n.stateNode;n.flags&32&&(Sl(d,""),n.flags&=-33);var g=so(e);Xr(e,g,d);break;case 3:case 4:var k=n.stateNode.containerInfo,z=so(e);oo(e,z,k);break;default:throw Error(u(161))}}catch(G){Oe(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;cd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function dn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ad(e,t.alternate,t),t=t.sibling}function sl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:_n(4,t,t.return),sl(t);break;case 1:Vt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Pf(t,t.return,n),sl(t);break;case 27:Ga(t.stateNode);case 26:case 5:Vt(t,t.return),sl(t);break;case 22:t.memoizedState===null&&sl(t);break;case 30:sl(t);break;default:sl(t)}e=e.sibling}}function pn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,r=e,s=t,d=s.flags;switch(s.tag){case 0:case 11:case 15:pn(r,s,n),Ra(4,s);break;case 1:if(pn(r,s,n),l=s,r=l.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(z){Oe(l,l.return,z)}if(l=s,r=l.updateQueue,r!==null){var g=l.stateNode;try{var k=r.shared.hiddenCallbacks;if(k!==null)for(r.shared.hiddenCallbacks=null,r=0;r<k.length;r++)qc(k[r],g)}catch(z){Oe(l,l.return,z)}}n&&d&64&&Wf(s),Oa(s,s.return);break;case 27:nd(s);case 26:case 5:pn(r,s,n),n&&l===null&&d&4&&ed(s),Oa(s,s.return);break;case 12:pn(r,s,n);break;case 31:pn(r,s,n),n&&d&4&&sd(r,s);break;case 13:pn(r,s,n),n&&d&4&&od(r,s);break;case 22:s.memoizedState===null&&pn(r,s,n),Oa(s,s.return);break;case 30:break;default:pn(r,s,n)}t=t.sibling}}function co(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ya(n))}function fo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ya(e))}function Yt(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)fd(e,t,n,l),t=t.sibling}function fd(e,t,n,l){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Yt(e,t,n,l),r&2048&&Ra(9,t);break;case 1:Yt(e,t,n,l);break;case 3:Yt(e,t,n,l),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ya(e)));break;case 12:if(r&2048){Yt(e,t,n,l),e=t.stateNode;try{var s=t.memoizedProps,d=s.id,g=s.onPostCommit;typeof g=="function"&&g(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(k){Oe(t,t.return,k)}}else Yt(e,t,n,l);break;case 31:Yt(e,t,n,l);break;case 13:Yt(e,t,n,l);break;case 23:break;case 22:s=t.stateNode,d=t.alternate,t.memoizedState!==null?s._visibility&2?Yt(e,t,n,l):za(e,t):s._visibility&2?Yt(e,t,n,l):(s._visibility|=2,Gl(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),r&2048&&co(d,t);break;case 24:Yt(e,t,n,l),r&2048&&fo(t.alternate,t);break;default:Yt(e,t,n,l)}}function Gl(e,t,n,l,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,d=t,g=n,k=l,z=d.flags;switch(d.tag){case 0:case 11:case 15:Gl(s,d,g,k,r),Ra(8,d);break;case 23:break;case 22:var G=d.stateNode;d.memoizedState!==null?G._visibility&2?Gl(s,d,g,k,r):za(s,d):(G._visibility|=2,Gl(s,d,g,k,r)),r&&z&2048&&co(d.alternate,d);break;case 24:Gl(s,d,g,k,r),r&&z&2048&&fo(d.alternate,d);break;default:Gl(s,d,g,k,r)}t=t.sibling}}function za(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,r=l.flags;switch(l.tag){case 22:za(n,l),r&2048&&co(l.alternate,l);break;case 24:za(n,l),r&2048&&fo(l.alternate,l);break;default:za(n,l)}t=t.sibling}}var Da=8192;function Yl(e,t,n){if(e.subtreeFlags&Da)for(e=e.child;e!==null;)dd(e,t,n),e=e.sibling}function dd(e,t,n){switch(e.tag){case 26:Yl(e,t,n),e.flags&Da&&e.memoizedState!==null&&Qg(n,Gt,e.memoizedState,e.memoizedProps);break;case 5:Yl(e,t,n);break;case 3:case 4:var l=Gt;Gt=ii(e.stateNode.containerInfo),Yl(e,t,n),Gt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Da,Da=16777216,Yl(e,t,n),Da=l):Yl(e,t,n));break;default:Yl(e,t,n)}}function pd(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 Ma(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];We=l,hd(l,e)}pd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)md(e),e=e.sibling}function md(e){switch(e.tag){case 0:case 11:case 15:Ma(e),e.flags&2048&&_n(9,e,e.return);break;case 3:Ma(e);break;case 12:Ma(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Vr(e)):Ma(e);break;default:Ma(e)}}function Vr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];We=l,hd(l,e)}pd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:_n(8,t,t.return),Vr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Vr(t));break;default:Vr(t)}e=e.sibling}}function hd(e,t){for(;We!==null;){var n=We;switch(n.tag){case 0:case 11:case 15:_n(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ya(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,We=l;else e:for(n=e;We!==null;){l=We;var r=l.sibling,s=l.return;if(rd(l),l===n){We=null;break e}if(r!==null){r.return=s,We=r;break e}We=s}}}var sg={getCacheForType:function(e){var t=nt(Qe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return nt(Qe).controller.signal}},og=typeof WeakMap=="function"?WeakMap:Map,_e=0,Le=null,Se=null,ke=0,Re=0,wt=null,Cn=!1,$l=!1,po=!1,mn=0,$e=0,Rn=0,ol=0,mo=0,Nt=0,Zl=0,La=null,pt=null,ho=!1,Fr=0,gd=0,Jr=1/0,Kr=null,On=null,Ke=0,zn=null,Xl=null,hn=0,go=0,xo=null,xd=null,Ba=0,yo=null;function jt(){return(_e&2)!==0&&ke!==0?ke&-ke:L.T!==null?wo():Ou()}function yd(){if(Nt===0)if((ke&536870912)===0||Ne){var e=ar;ar<<=1,(ar&3932160)===0&&(ar=262144),Nt=e}else Nt=536870912;return e=Et.current,e!==null&&(e.flags|=32),Nt}function mt(e,t,n){(e===Le&&(Re===2||Re===9)||e.cancelPendingCommit!==null)&&(Ql(e,0),Dn(e,ke,Nt,!1)),aa(e,n),((_e&2)===0||e!==Le)&&(e===Le&&((_e&2)===0&&(ol|=n),$e===4&&Dn(e,ke,Nt,!1)),Ft(e))}function bd(e,t,n){if((_e&6)!==0)throw Error(u(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||la(e,t),r=l?fg(e,t):vo(e,t,!0),s=l;do{if(r===0){$l&&!l&&Dn(e,t,0,!1);break}else{if(n=e.current.alternate,s&&!ug(n)){r=vo(e,t,!1),s=!1;continue}if(r===2){if(s=t,e.errorRecoveryDisabledLanes&s)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var g=e;r=La;var k=g.current.memoizedState.isDehydrated;if(k&&(Ql(g,d).flags|=256),d=vo(g,d,!1),d!==2){if(po&&!k){g.errorRecoveryDisabledLanes|=s,ol|=s,r=4;break e}s=pt,pt=r,s!==null&&(pt===null?pt=s:pt.push.apply(pt,s))}r=d}if(s=!1,r!==2)continue}}if(r===1){Ql(e,0),Dn(e,t,0,!0);break}e:{switch(l=e,s=r,s){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:Dn(l,t,Nt,!Cn);break e;case 2:pt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(r=Fr+300-xt(),10<r)){if(Dn(l,t,Nt,!Cn),ir(l,0,!0)!==0)break e;hn=t,l.timeoutHandle=Kd(vd.bind(null,l,n,pt,Kr,ho,t,Nt,ol,Zl,Cn,s,"Throttled",-0,0),r);break e}vd(l,n,pt,Kr,ho,t,Nt,ol,Zl,Cn,s,null,-0,0)}}break}while(!0);Ft(e)}function vd(e,t,n,l,r,s,d,g,k,z,G,X,D,U){if(e.timeoutHandle=-1,X=t.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Pt},dd(t,s,X);var ae=(s&62914560)===s?Fr-xt():(s&4194048)===s?gd-xt():0;if(ae=Vg(X,ae),ae!==null){hn=s,e.cancelPendingCommit=ae(Ad.bind(null,e,t,s,n,l,r,d,g,k,G,X,null,D,U)),Dn(e,s,d,!z);return}}Ad(e,t,s,n,l,r,d,g,k)}function ug(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var r=n[l],s=r.getSnapshot;r=r.value;try{if(!vt(s(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Dn(e,t,n,l){t&=~mo,t&=~ol,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var r=t;0<r;){var s=31-bt(r),d=1<<s;l[s]=-1,r&=~d}n!==0&&_u(e,n,t)}function Ir(){return(_e&6)===0?(Ua(0),!1):!0}function bo(){if(Se!==null){if(Re===0)var e=Se.return;else e=Se,ln=Pn=null,Ds(e),Ll=null,va=0,e=Se;for(;e!==null;)If(e.alternate,e),e=e.return;Se=null}}function Ql(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,_g(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),hn=0,bo(),Le=e,Se=n=tn(e.current,null),ke=t,Re=0,wt=null,Cn=!1,$l=la(e,t),po=!1,Zl=Nt=mo=ol=Rn=$e=0,pt=La=null,ho=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var r=31-bt(l),s=1<<r;t|=e[r],l&=~s}return mn=t,yr(),n}function Sd(e,t){xe=null,L.H=Aa,t===Ml||t===jr?(t=Lc(),Re=3):t===Es?(t=Lc(),Re=4):Re=t===Ks?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,wt=t,Se===null&&($e=1,qr(e,Ot(t,e.current)))}function Ed(){var e=Et.current;return e===null?!0:(ke&4194048)===ke?Lt===null:(ke&62914560)===ke||(ke&536870912)!==0?e===Lt:!1}function kd(){var e=L.H;return L.H=Aa,e===null?Aa:e}function wd(){var e=L.A;return L.A=sg,e}function Wr(){$e=4,Cn||(ke&4194048)!==ke&&Et.current!==null||($l=!0),(Rn&134217727)===0&&(ol&134217727)===0||Le===null||Dn(Le,ke,Nt,!1)}function vo(e,t,n){var l=_e;_e|=2;var r=kd(),s=wd();(Le!==e||ke!==t)&&(Kr=null,Ql(e,t)),t=!1;var d=$e;e:do try{if(Re!==0&&Se!==null){var g=Se,k=wt;switch(Re){case 8:bo(),d=6;break e;case 3:case 2:case 9:case 6:Et.current===null&&(t=!0);var z=Re;if(Re=0,wt=null,Vl(e,g,k,z),n&&$l){d=0;break e}break;default:z=Re,Re=0,wt=null,Vl(e,g,k,z)}}cg(),d=$e;break}catch(G){Sd(e,G)}while(!0);return t&&e.shellSuspendCounter++,ln=Pn=null,_e=l,L.H=r,L.A=s,Se===null&&(Le=null,ke=0,yr()),d}function cg(){for(;Se!==null;)Nd(Se)}function fg(e,t){var n=_e;_e|=2;var l=kd(),r=wd();Le!==e||ke!==t?(Kr=null,Jr=xt()+500,Ql(e,t)):$l=la(e,t);e:do try{if(Re!==0&&Se!==null){t=Se;var s=wt;t:switch(Re){case 1:Re=0,wt=null,Vl(e,t,s,1);break;case 2:case 9:if(Dc(s)){Re=0,wt=null,jd(t);break}t=function(){Re!==2&&Re!==9||Le!==e||(Re=7),Ft(e)},s.then(t,t);break e;case 3:Re=7;break e;case 4:Re=5;break e;case 7:Dc(s)?(Re=0,wt=null,jd(t)):(Re=0,wt=null,Vl(e,t,s,7));break;case 5:var d=null;switch(Se.tag){case 26:d=Se.memoizedState;case 5:case 27:var g=Se;if(d?fp(d):g.stateNode.complete){Re=0,wt=null;var k=g.sibling;if(k!==null)Se=k;else{var z=g.return;z!==null?(Se=z,Pr(z)):Se=null}break t}}Re=0,wt=null,Vl(e,t,s,5);break;case 6:Re=0,wt=null,Vl(e,t,s,6);break;case 8:bo(),$e=6;break e;default:throw Error(u(462))}}dg();break}catch(G){Sd(e,G)}while(!0);return ln=Pn=null,L.H=l,L.A=r,_e=n,Se!==null?0:(Le=null,ke=0,yr(),$e)}function dg(){for(;Se!==null&&!Mm();)Nd(Se)}function Nd(e){var t=Jf(e.alternate,e,mn);e.memoizedProps=e.pendingProps,t===null?Pr(e):Se=t}function jd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=$f(n,t,t.pendingProps,t.type,void 0,ke);break;case 11:t=$f(n,t,t.pendingProps,t.type.render,t.ref,ke);break;case 5:Ds(t);default:If(n,t),t=Se=kc(t,mn),t=Jf(n,t,mn)}e.memoizedProps=e.pendingProps,t===null?Pr(e):Se=t}function Vl(e,t,n,l){ln=Pn=null,Ds(t),Ll=null,va=0;var r=t.return;try{if(eg(e,r,t,n,ke)){$e=1,qr(e,Ot(n,e.current)),Se=null;return}}catch(s){if(r!==null)throw Se=r,s;$e=1,qr(e,Ot(n,e.current)),Se=null;return}t.flags&32768?(Ne||l===1?e=!0:$l||(ke&536870912)!==0?e=!1:(Cn=e=!0,(l===2||l===9||l===3||l===6)&&(l=Et.current,l!==null&&l.tag===13&&(l.flags|=16384))),Td(t,e)):Pr(t)}function Pr(e){var t=e;do{if((t.flags&32768)!==0){Td(t,Cn);return}e=t.return;var n=lg(t.alternate,t,mn);if(n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);$e===0&&($e=5)}function Td(e,t){do{var n=ag(e.alternate,e);if(n!==null){n.flags&=32767,Se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=n}while(e!==null);$e=6,Se=null}function Ad(e,t,n,l,r,s,d,g,k){e.cancelPendingCommit=null;do ei();while(Ke!==0);if((_e&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(s=t.lanes|t.childLanes,s|=ss,Xm(e,n,s,d,g,k),e===Le&&(Se=Le=null,ke=0),Xl=t,zn=e,hn=n,go=s,xo=r,xd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,gg(nr,function(){return zd(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=L.T,L.T=null,r=W.p,W.p=2,d=_e,_e|=4;try{rg(e,t,n)}finally{_e=d,W.p=r,L.T=l}}Ke=1,_d(),Cd(),Rd()}}function _d(){if(Ke===1){Ke=0;var e=zn,t=Xl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=L.T,L.T=null;var l=W.p;W.p=2;var r=_e;_e|=4;try{ud(t,e);var s=Oo,d=mc(e.containerInfo),g=s.focusedElem,k=s.selectionRange;if(d!==g&&g&&g.ownerDocument&&pc(g.ownerDocument.documentElement,g)){if(k!==null&&ns(g)){var z=k.start,G=k.end;if(G===void 0&&(G=z),"selectionStart"in g)g.selectionStart=z,g.selectionEnd=Math.min(G,g.value.length);else{var X=g.ownerDocument||document,D=X&&X.defaultView||window;if(D.getSelection){var U=D.getSelection(),ae=g.textContent.length,me=Math.min(k.start,ae),Me=k.end===void 0?me:Math.min(k.end,ae);!U.extend&&me>Me&&(d=Me,Me=me,me=d);var C=dc(g,me),N=dc(g,Me);if(C&&N&&(U.rangeCount!==1||U.anchorNode!==C.node||U.anchorOffset!==C.offset||U.focusNode!==N.node||U.focusOffset!==N.offset)){var O=X.createRange();O.setStart(C.node,C.offset),U.removeAllRanges(),me>Me?(U.addRange(O),U.extend(N.node,N.offset)):(O.setEnd(N.node,N.offset),U.addRange(O))}}}}for(X=[],U=g;U=U.parentNode;)U.nodeType===1&&X.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<X.length;g++){var $=X[g];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}di=!!Ro,Oo=Ro=null}finally{_e=r,W.p=l,L.T=n}}e.current=t,Ke=2}}function Cd(){if(Ke===2){Ke=0;var e=zn,t=Xl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=L.T,L.T=null;var l=W.p;W.p=2;var r=_e;_e|=4;try{ad(e,t.alternate,t)}finally{_e=r,W.p=l,L.T=n}}Ke=3}}function Rd(){if(Ke===4||Ke===3){Ke=0,Lm();var e=zn,t=Xl,n=hn,l=xd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ke=5:(Ke=0,Xl=zn=null,Od(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(On=null),Bi(n),t=t.stateNode,yt&&typeof yt.onCommitFiberRoot=="function")try{yt.onCommitFiberRoot(na,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=L.T,r=W.p,W.p=2,L.T=null;try{for(var s=e.onRecoverableError,d=0;d<l.length;d++){var g=l[d];s(g.value,{componentStack:g.stack})}}finally{L.T=t,W.p=r}}(hn&3)!==0&&ei(),Ft(e),r=e.pendingLanes,(n&261930)!==0&&(r&42)!==0?e===yo?Ba++:(Ba=0,yo=e):Ba=0,Ua(0)}}function Od(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ya(t)))}function ei(){return _d(),Cd(),Rd(),zd()}function zd(){if(Ke!==5)return!1;var e=zn,t=go;go=0;var n=Bi(hn),l=L.T,r=W.p;try{W.p=32>n?32:n,L.T=null,n=xo,xo=null;var s=zn,d=hn;if(Ke=0,Xl=zn=null,hn=0,(_e&6)!==0)throw Error(u(331));var g=_e;if(_e|=4,md(s.current),fd(s,s.current,d,n),_e=g,Ua(0,!1),yt&&typeof yt.onPostCommitFiberRoot=="function")try{yt.onPostCommitFiberRoot(na,s)}catch{}return!0}finally{W.p=r,L.T=l,Od(e,t)}}function Dd(e,t,n){t=Ot(n,t),t=Js(e.stateNode,t,2),e=jn(e,t,2),e!==null&&(aa(e,2),Ft(e))}function Oe(e,t,n){if(e.tag===3)Dd(e,e,n);else for(;t!==null;){if(t.tag===3){Dd(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(On===null||!On.has(l))){e=Ot(n,e),n=Mf(2),l=jn(t,n,2),l!==null&&(Lf(n,l,t,e),aa(l,2),Ft(l));break}}t=t.return}}function So(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new og;var r=new Set;l.set(t,r)}else r=l.get(t),r===void 0&&(r=new Set,l.set(t,r));r.has(n)||(po=!0,r.add(n),e=pg.bind(null,e,t,n),t.then(e,e))}function pg(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Le===e&&(ke&n)===n&&($e===4||$e===3&&(ke&62914560)===ke&&300>xt()-Fr?(_e&2)===0&&Ql(e,0):mo|=n,Zl===ke&&(Zl=0)),Ft(e)}function Md(e,t){t===0&&(t=Au()),e=Kn(e,t),e!==null&&(aa(e,t),Ft(e))}function mg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Md(e,n)}function hg(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(u(314))}l!==null&&l.delete(t),Md(e,n)}function gg(e,t){return ta(e,t)}var ti=null,Fl=null,Eo=!1,ni=!1,ko=!1,Mn=0;function Ft(e){e!==Fl&&e.next===null&&(Fl===null?ti=Fl=e:Fl=Fl.next=e),ni=!0,Eo||(Eo=!0,yg())}function Ua(e,t){if(!ko&&ni){ko=!0;do for(var n=!1,l=ti;l!==null;){if(e!==0){var r=l.pendingLanes;if(r===0)var s=0;else{var d=l.suspendedLanes,g=l.pingedLanes;s=(1<<31-bt(42|e)+1)-1,s&=r&~(d&~g),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,Hd(l,s))}else s=ke,s=ir(l,l===Le?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||la(l,s)||(n=!0,Hd(l,s));l=l.next}while(n);ko=!1}}function xg(){Ld()}function Ld(){ni=Eo=!1;var e=0;Mn!==0&&Ag()&&(e=Mn);for(var t=xt(),n=null,l=ti;l!==null;){var r=l.next,s=Bd(l,t);s===0?(l.next=null,n===null?ti=r:n.next=r,r===null&&(Fl=n)):(n=l,(e!==0||(s&3)!==0)&&(ni=!0)),l=r}Ke!==0&&Ke!==5||Ua(e),Mn!==0&&(Mn=0)}function Bd(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,r=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var d=31-bt(s),g=1<<d,k=r[d];k===-1?((g&n)===0||(g&l)!==0)&&(r[d]=Zm(g,t)):k<=t&&(e.expiredLanes|=g),s&=~g}if(t=Le,n=ke,n=ir(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Re===2||Re===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&ml(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||la(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&ml(l),Bi(n)){case 2:case 8:n=ju;break;case 32:n=nr;break;case 268435456:n=Tu;break;default:n=nr}return l=Ud.bind(null,e),n=ta(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&ml(l),e.callbackPriority=2,e.callbackNode=null,2}function Ud(e,t){if(Ke!==0&&Ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ei()&&e.callbackNode!==n)return null;var l=ke;return l=ir(e,e===Le?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(bd(e,l,t),Bd(e,xt()),e.callbackNode!=null&&e.callbackNode===n?Ud.bind(null,e):null)}function Hd(e,t){if(ei())return null;bd(e,t,!0)}function yg(){Cg(function(){(_e&6)!==0?ta(Nu,xg):Ld()})}function wo(){if(Mn===0){var e=zl;e===0&&(e=lr,lr<<=1,(lr&261888)===0&&(lr=256)),Mn=e}return Mn}function qd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:cr(""+e)}function Gd(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function bg(e,t,n,l,r){if(t==="submit"&&n&&n.stateNode===r){var s=qd((r[ot]||null).action),d=l.submitter;d&&(t=(t=d[ot]||null)?qd(t.formAction):d.getAttribute("formAction"),t!==null&&(s=t,d=null));var g=new mr("action","action",null,l,r);e.push({event:g,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Mn!==0){var k=d?Gd(r,d):new FormData(r);$s(n,{pending:!0,data:k,method:r.method,action:s},null,k)}}else typeof s=="function"&&(g.preventDefault(),k=d?Gd(r,d):new FormData(r),$s(n,{pending:!0,data:k,method:r.method,action:s},s,k))},currentTarget:r}]})}}for(var No=0;No<is.length;No++){var jo=is[No],vg=jo.toLowerCase(),Sg=jo[0].toUpperCase()+jo.slice(1);qt(vg,"on"+Sg)}qt(xc,"onAnimationEnd"),qt(yc,"onAnimationIteration"),qt(bc,"onAnimationStart"),qt("dblclick","onDoubleClick"),qt("focusin","onFocus"),qt("focusout","onBlur"),qt(Bh,"onTransitionRun"),qt(Uh,"onTransitionStart"),qt(Hh,"onTransitionCancel"),qt(vc,"onTransitionEnd"),bl("onMouseEnter",["mouseout","mouseover"]),bl("onMouseLeave",["mouseout","mouseover"]),bl("onPointerEnter",["pointerout","pointerover"]),bl("onPointerLeave",["pointerout","pointerover"]),Qn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Qn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Qn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Qn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Qn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Qn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ha="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(" "),Eg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ha));function Yd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],r=l.event;l=l.listeners;e:{var s=void 0;if(t)for(var d=l.length-1;0<=d;d--){var g=l[d],k=g.instance,z=g.currentTarget;if(g=g.listener,k!==s&&r.isPropagationStopped())break e;s=g,r.currentTarget=z;try{s(r)}catch(G){xr(G)}r.currentTarget=null,s=k}else for(d=0;d<l.length;d++){if(g=l[d],k=g.instance,z=g.currentTarget,g=g.listener,k!==s&&r.isPropagationStopped())break e;s=g,r.currentTarget=z;try{s(r)}catch(G){xr(G)}r.currentTarget=null,s=k}}}}function Ee(e,t){var n=t[Ui];n===void 0&&(n=t[Ui]=new Set);var l=e+"__bubble";n.has(l)||($d(t,e,2,!1),n.add(l))}function To(e,t,n){var l=0;t&&(l|=4),$d(n,e,l,t)}var li="_reactListening"+Math.random().toString(36).slice(2);function Ao(e){if(!e[li]){e[li]=!0,Mu.forEach(function(n){n!=="selectionchange"&&(Eg.has(n)||To(n,!1,e),To(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[li]||(t[li]=!0,To("selectionchange",!1,t))}}function $d(e,t,n,l){switch(yp(t)){case 2:var r=Kg;break;case 8:r=Ig;break;default:r=$o}n=r.bind(null,t,n,e),r=void 0,!Vi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),l?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function _o(e,t,n,l,r){var s=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var g=l.stateNode.containerInfo;if(g===r)break;if(d===4)for(d=l.return;d!==null;){var k=d.tag;if((k===3||k===4)&&d.stateNode.containerInfo===r)return;d=d.return}for(;g!==null;){if(d=gl(g),d===null)return;if(k=d.tag,k===5||k===6||k===26||k===27){l=s=d;continue e}g=g.parentNode}}l=l.return}Vu(function(){var z=s,G=Xi(n),X=[];e:{var D=Sc.get(e);if(D!==void 0){var U=mr,ae=e;switch(e){case"keypress":if(dr(n)===0)break e;case"keydown":case"keyup":U=hh;break;case"focusin":ae="focus",U=Ii;break;case"focusout":ae="blur",U=Ii;break;case"beforeblur":case"afterblur":U=Ii;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=Ku;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=lh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=yh;break;case xc:case yc:case bc:U=ih;break;case vc:U=vh;break;case"scroll":case"scrollend":U=th;break;case"wheel":U=Eh;break;case"copy":case"cut":case"paste":U=oh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Wu;break;case"toggle":case"beforetoggle":U=wh}var me=(t&4)!==0,Me=!me&&(e==="scroll"||e==="scrollend"),C=me?D!==null?D+"Capture":null:D;me=[];for(var N=z,O;N!==null;){var $=N;if(O=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||O===null||C===null||($=sa(N,C),$!=null&&me.push(qa(N,$,O))),Me)break;N=N.return}0<me.length&&(D=new U(D,ae,null,n,G),X.push({event:D,listeners:me}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",D&&n!==Zi&&(ae=n.relatedTarget||n.fromElement)&&(gl(ae)||ae[hl]))break e;if((U||D)&&(D=G.window===G?G:(D=G.ownerDocument)?D.defaultView||D.parentWindow:window,U?(ae=n.relatedTarget||n.toElement,U=z,ae=ae?gl(ae):null,ae!==null&&(Me=m(ae),me=ae.tag,ae!==Me||me!==5&&me!==27&&me!==6)&&(ae=null)):(U=null,ae=z),U!==ae)){if(me=Ku,$="onMouseLeave",C="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(me=Wu,$="onPointerLeave",C="onPointerEnter",N="pointer"),Me=U==null?D:ia(U),O=ae==null?D:ia(ae),D=new me($,N+"leave",U,n,G),D.target=Me,D.relatedTarget=O,$=null,gl(G)===z&&(me=new me(C,N+"enter",ae,n,G),me.target=O,me.relatedTarget=Me,$=me),Me=$,U&&ae)t:{for(me=kg,C=U,N=ae,O=0,$=C;$;$=me($))O++;$=0;for(var fe=N;fe;fe=me(fe))$++;for(;0<O-$;)C=me(C),O--;for(;0<$-O;)N=me(N),$--;for(;O--;){if(C===N||N!==null&&C===N.alternate){me=C;break t}C=me(C),N=me(N)}me=null}else me=null;U!==null&&Zd(X,D,U,me,!1),ae!==null&&Me!==null&&Zd(X,Me,ae,me,!0)}}e:{if(D=z?ia(z):window,U=D.nodeName&&D.nodeName.toLowerCase(),U==="select"||U==="input"&&D.type==="file")var Te=ic;else if(ac(D))if(sc)Te=Dh;else{Te=Oh;var se=Rh}else U=D.nodeName,!U||U.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?z&&$i(z.elementType)&&(Te=ic):Te=zh;if(Te&&(Te=Te(e,z))){rc(X,Te,n,G);break e}se&&se(e,D,z),e==="focusout"&&z&&D.type==="number"&&z.memoizedProps.value!=null&&Yi(D,"number",D.value)}switch(se=z?ia(z):window,e){case"focusin":(ac(se)||se.contentEditable==="true")&&(Nl=se,ls=z,ha=null);break;case"focusout":ha=ls=Nl=null;break;case"mousedown":as=!0;break;case"contextmenu":case"mouseup":case"dragend":as=!1,hc(X,n,G);break;case"selectionchange":if(Lh)break;case"keydown":case"keyup":hc(X,n,G)}var ye;if(Pi)e:{switch(e){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else wl?nc(e,n)&&(we="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(we="onCompositionStart");we&&(Pu&&n.locale!=="ko"&&(wl||we!=="onCompositionStart"?we==="onCompositionEnd"&&wl&&(ye=Fu()):(bn=G,Fi="value"in bn?bn.value:bn.textContent,wl=!0)),se=ai(z,we),0<se.length&&(we=new Iu(we,e,null,n,G),X.push({event:we,listeners:se}),ye?we.data=ye:(ye=lc(n),ye!==null&&(we.data=ye)))),(ye=jh?Th(e,n):Ah(e,n))&&(we=ai(z,"onBeforeInput"),0<we.length&&(se=new Iu("onBeforeInput","beforeinput",null,n,G),X.push({event:se,listeners:we}),se.data=ye)),bg(X,e,z,n,G)}Yd(X,t)})}function qa(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ai(e,t){for(var n=t+"Capture",l=[];e!==null;){var r=e,s=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||s===null||(r=sa(e,n),r!=null&&l.unshift(qa(e,r,s)),r=sa(e,t),r!=null&&l.push(qa(e,r,s))),e.tag===3)return l;e=e.return}return[]}function kg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zd(e,t,n,l,r){for(var s=t._reactName,d=[];n!==null&&n!==l;){var g=n,k=g.alternate,z=g.stateNode;if(g=g.tag,k!==null&&k===l)break;g!==5&&g!==26&&g!==27||z===null||(k=z,r?(z=sa(n,s),z!=null&&d.unshift(qa(n,z,k))):r||(z=sa(n,s),z!=null&&d.push(qa(n,z,k)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var wg=/\r\n?/g,Ng=/\u0000|\uFFFD/g;function Xd(e){return(typeof e=="string"?e:""+e).replace(wg,`
56
- `).replace(Ng,"")}function Qd(e,t){return t=Xd(t),Xd(e)===t}function De(e,t,n,l,r,s){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Sl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Sl(e,""+l);break;case"className":or(e,"class",l);break;case"tabIndex":or(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":or(e,n,l);break;case"style":Xu(e,l,s);break;case"data":if(t!=="object"){or(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=cr(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(n==="formAction"?(t!=="input"&&De(e,t,"name",r.name,r,null),De(e,t,"formEncType",r.formEncType,r,null),De(e,t,"formMethod",r.formMethod,r,null),De(e,t,"formTarget",r.formTarget,r,null)):(De(e,t,"encType",r.encType,r,null),De(e,t,"method",r.method,r,null),De(e,t,"target",r.target,r,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=cr(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=Pt);break;case"onScroll":l!=null&&Ee("scroll",e);break;case"onScrollEnd":l!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=cr(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),sr(e,"popover",l);break;case"xlinkActuate":Wt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Wt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Wt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Wt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Wt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Wt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":sr(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Pm.get(n)||n,sr(e,n,l))}}function Co(e,t,n,l,r,s){switch(n){case"style":Xu(e,l,s);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(n=l.__html,n!=null){if(r.children!=null)throw Error(u(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Sl(e,l):(typeof l=="number"||typeof l=="bigint")&&Sl(e,""+l);break;case"onScroll":l!=null&&Ee("scroll",e);break;case"onScrollEnd":l!=null&&Ee("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Pt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Lu.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),s=e[ot]||null,s=s!=null?s[n]:null,typeof s=="function"&&e.removeEventListener(t,s,r),typeof l=="function")){typeof s!="function"&&s!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,r);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):sr(e,n,l)}}}function at(e,t,n){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 l=!1,r=!1,s;for(s in n)if(n.hasOwnProperty(s)){var d=n[s];if(d!=null)switch(s){case"src":l=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:De(e,t,s,d,n,null)}}r&&De(e,t,"srcSet",n.srcSet,n,null),l&&De(e,t,"src",n.src,n,null);return;case"input":Ee("invalid",e);var g=s=d=r=null,k=null,z=null;for(l in n)if(n.hasOwnProperty(l)){var G=n[l];if(G!=null)switch(l){case"name":r=G;break;case"type":d=G;break;case"checked":k=G;break;case"defaultChecked":z=G;break;case"value":s=G;break;case"defaultValue":g=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(u(137,t));break;default:De(e,t,l,G,n,null)}}Gu(e,s,g,k,z,d,r,!1);return;case"select":Ee("invalid",e),l=d=s=null;for(r in n)if(n.hasOwnProperty(r)&&(g=n[r],g!=null))switch(r){case"value":s=g;break;case"defaultValue":d=g;break;case"multiple":l=g;default:De(e,t,r,g,n,null)}t=s,n=d,e.multiple=!!l,t!=null?vl(e,!!l,t,!1):n!=null&&vl(e,!!l,n,!0);return;case"textarea":Ee("invalid",e),s=r=l=null;for(d in n)if(n.hasOwnProperty(d)&&(g=n[d],g!=null))switch(d){case"value":l=g;break;case"defaultValue":r=g;break;case"children":s=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(u(91));break;default:De(e,t,d,g,n,null)}$u(e,l,r,s);return;case"option":for(k in n)if(n.hasOwnProperty(k)&&(l=n[k],l!=null))switch(k){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:De(e,t,k,l,n,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(l=0;l<Ha.length;l++)Ee(Ha[l],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(z in n)if(n.hasOwnProperty(z)&&(l=n[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:De(e,t,z,l,n,null)}return;default:if($i(t)){for(G in n)n.hasOwnProperty(G)&&(l=n[G],l!==void 0&&Co(e,t,G,l,n,void 0));return}}for(g in n)n.hasOwnProperty(g)&&(l=n[g],l!=null&&De(e,t,g,l,n,null))}function jg(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,s=null,d=null,g=null,k=null,z=null,G=null;for(U in n){var X=n[U];if(n.hasOwnProperty(U)&&X!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":k=X;default:l.hasOwnProperty(U)||De(e,t,U,null,l,X)}}for(var D in l){var U=l[D];if(X=n[D],l.hasOwnProperty(D)&&(U!=null||X!=null))switch(D){case"type":s=U;break;case"name":r=U;break;case"checked":z=U;break;case"defaultChecked":G=U;break;case"value":d=U;break;case"defaultValue":g=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(u(137,t));break;default:U!==X&&De(e,t,D,U,l,X)}}Gi(e,d,g,k,z,G,s,r);return;case"select":U=d=g=D=null;for(s in n)if(k=n[s],n.hasOwnProperty(s)&&k!=null)switch(s){case"value":break;case"multiple":U=k;default:l.hasOwnProperty(s)||De(e,t,s,null,l,k)}for(r in l)if(s=l[r],k=n[r],l.hasOwnProperty(r)&&(s!=null||k!=null))switch(r){case"value":D=s;break;case"defaultValue":g=s;break;case"multiple":d=s;default:s!==k&&De(e,t,r,s,l,k)}t=g,n=d,l=U,D!=null?vl(e,!!n,D,!1):!!l!=!!n&&(t!=null?vl(e,!!n,t,!0):vl(e,!!n,n?[]:"",!1));return;case"textarea":U=D=null;for(g in n)if(r=n[g],n.hasOwnProperty(g)&&r!=null&&!l.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:De(e,t,g,null,l,r)}for(d in l)if(r=l[d],s=n[d],l.hasOwnProperty(d)&&(r!=null||s!=null))switch(d){case"value":D=r;break;case"defaultValue":U=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(u(91));break;default:r!==s&&De(e,t,d,r,l,s)}Yu(e,D,U);return;case"option":for(var ae in n)if(D=n[ae],n.hasOwnProperty(ae)&&D!=null&&!l.hasOwnProperty(ae))switch(ae){case"selected":e.selected=!1;break;default:De(e,t,ae,null,l,D)}for(k in l)if(D=l[k],U=n[k],l.hasOwnProperty(k)&&D!==U&&(D!=null||U!=null))switch(k){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:De(e,t,k,D,l,U)}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 me in n)D=n[me],n.hasOwnProperty(me)&&D!=null&&!l.hasOwnProperty(me)&&De(e,t,me,null,l,D);for(z in l)if(D=l[z],U=n[z],l.hasOwnProperty(z)&&D!==U&&(D!=null||U!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(u(137,t));break;default:De(e,t,z,D,l,U)}return;default:if($i(t)){for(var Me in n)D=n[Me],n.hasOwnProperty(Me)&&D!==void 0&&!l.hasOwnProperty(Me)&&Co(e,t,Me,void 0,l,D);for(G in l)D=l[G],U=n[G],!l.hasOwnProperty(G)||D===U||D===void 0&&U===void 0||Co(e,t,G,D,l,U);return}}for(var C in n)D=n[C],n.hasOwnProperty(C)&&D!=null&&!l.hasOwnProperty(C)&&De(e,t,C,null,l,D);for(X in l)D=l[X],U=n[X],!l.hasOwnProperty(X)||D===U||D==null&&U==null||De(e,t,X,D,l,U)}function Vd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Tg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var r=n[l],s=r.transferSize,d=r.initiatorType,g=r.duration;if(s&&g&&Vd(d)){for(d=0,g=r.responseEnd,l+=1;l<n.length;l++){var k=n[l],z=k.startTime;if(z>g)break;var G=k.transferSize,X=k.initiatorType;G&&Vd(X)&&(k=k.responseEnd,d+=G*(k<g?1:(g-z)/(k-z)))}if(--l,t+=8*(s+d)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ro=null,Oo=null;function ri(e){return e.nodeType===9?e:e.ownerDocument}function Fd(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 Jd(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 zo(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 Do=null;function Ag(){var e=window.event;return e&&e.type==="popstate"?e===Do?!1:(Do=e,!0):(Do=null,!1)}var Kd=typeof setTimeout=="function"?setTimeout:void 0,_g=typeof clearTimeout=="function"?clearTimeout:void 0,Id=typeof Promise=="function"?Promise:void 0,Cg=typeof queueMicrotask=="function"?queueMicrotask:typeof Id<"u"?function(e){return Id.resolve(null).then(e).catch(Rg)}:Kd;function Rg(e){setTimeout(function(){throw e})}function Ln(e){return e==="head"}function Wd(e,t){var n=t,l=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(r),Wl(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Ga(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ga(n);for(var s=n.firstChild;s;){var d=s.nextSibling,g=s.nodeName;s[ra]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=d}}else n==="body"&&Ga(e.ownerDocument.body);n=r}while(n);Wl(t)}function Pd(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Mo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Mo(n),Hi(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Og(e,t,n,l){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ra])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Bt(e.nextSibling),e===null)break}return null}function zg(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Bt(e.nextSibling),e===null))return null;return e}function ep(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Bt(e.nextSibling),e===null))return null;return e}function Lo(e){return e.data==="$?"||e.data==="$~"}function Bo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Dg(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Bt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Uo=null;function tp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Bt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function np(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function lp(e,t,n){switch(t=ri(n),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Ga(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Hi(e)}var Ut=new Map,ap=new Set;function ii(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var gn=W.d;W.d={f:Mg,r:Lg,D:Bg,C:Ug,L:Hg,m:qg,X:Yg,S:Gg,M:$g};function Mg(){var e=gn.f(),t=Ir();return e||t}function Lg(e){var t=xl(e);t!==null&&t.tag===5&&t.type==="form"?Sf(t):gn.r(e)}var Jl=typeof document>"u"?null:document;function rp(e,t,n){var l=Jl;if(l&&typeof t=="string"&&t){var r=Ct(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),ap.has(r)||(ap.add(r),e={rel:e,crossOrigin:n,href:t},l.querySelector(r)===null&&(t=l.createElement("link"),at(t,"link",e),Ie(t),l.head.appendChild(t)))}}function Bg(e){gn.D(e),rp("dns-prefetch",e,null)}function Ug(e,t){gn.C(e,t),rp("preconnect",e,t)}function Hg(e,t,n){gn.L(e,t,n);var l=Jl;if(l&&e&&t){var r='link[rel="preload"][as="'+Ct(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+Ct(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+Ct(n.imageSizes)+'"]')):r+='[href="'+Ct(e)+'"]';var s=r;switch(t){case"style":s=Kl(e);break;case"script":s=Il(e)}Ut.has(s)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Ut.set(s,e),l.querySelector(r)!==null||t==="style"&&l.querySelector(Ya(s))||t==="script"&&l.querySelector($a(s))||(t=l.createElement("link"),at(t,"link",e),Ie(t),l.head.appendChild(t)))}}function qg(e,t){gn.m(e,t);var n=Jl;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+Ct(l)+'"][href="'+Ct(e)+'"]',s=r;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Il(e)}if(!Ut.has(s)&&(e=b({rel:"modulepreload",href:e},t),Ut.set(s,e),n.querySelector(r)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector($a(s)))return}l=n.createElement("link"),at(l,"link",e),Ie(l),n.head.appendChild(l)}}}function Gg(e,t,n){gn.S(e,t,n);var l=Jl;if(l&&e){var r=yl(l).hoistableStyles,s=Kl(e);t=t||"default";var d=r.get(s);if(!d){var g={loading:0,preload:null};if(d=l.querySelector(Ya(s)))g.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ut.get(s))&&Ho(e,n);var k=d=l.createElement("link");Ie(k),at(k,"link",e),k._p=new Promise(function(z,G){k.onload=z,k.onerror=G}),k.addEventListener("load",function(){g.loading|=1}),k.addEventListener("error",function(){g.loading|=2}),g.loading|=4,si(d,t,l)}d={type:"stylesheet",instance:d,count:1,state:g},r.set(s,d)}}}function Yg(e,t){gn.X(e,t);var n=Jl;if(n&&e){var l=yl(n).hoistableScripts,r=Il(e),s=l.get(r);s||(s=n.querySelector($a(r)),s||(e=b({src:e,async:!0},t),(t=Ut.get(r))&&qo(e,t),s=n.createElement("script"),Ie(s),at(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(r,s))}}function $g(e,t){gn.M(e,t);var n=Jl;if(n&&e){var l=yl(n).hoistableScripts,r=Il(e),s=l.get(r);s||(s=n.querySelector($a(r)),s||(e=b({src:e,async:!0,type:"module"},t),(t=Ut.get(r))&&qo(e,t),s=n.createElement("script"),Ie(s),at(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(r,s))}}function ip(e,t,n,l){var r=(r=ce.current)?ii(r):null;if(!r)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Kl(n.href),n=yl(r).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Kl(n.href);var s=yl(r).hoistableStyles,d=s.get(e);if(d||(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,d),(s=r.querySelector(Ya(e)))&&!s._p&&(d.instance=s,d.state.loading=5),Ut.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ut.set(e,n),s||Zg(r,e,n,d.state))),t&&l===null)throw Error(u(528,""));return d}if(t&&l!==null)throw Error(u(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Il(n),n=yl(r).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Kl(e){return'href="'+Ct(e)+'"'}function Ya(e){return'link[rel="stylesheet"]['+e+"]"}function sp(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Zg(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),at(t,"link",n),Ie(t),e.head.appendChild(t))}function Il(e){return'[src="'+Ct(e)+'"]'}function $a(e){return"script[async]"+e}function op(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ct(n.href)+'"]');if(l)return t.instance=l,Ie(l),l;var r=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Ie(l),at(l,"style",r),si(l,n.precedence,e),t.instance=l;case"stylesheet":r=Kl(n.href);var s=e.querySelector(Ya(r));if(s)return t.state.loading|=4,t.instance=s,Ie(s),s;l=sp(n),(r=Ut.get(r))&&Ho(l,r),s=(e.ownerDocument||e).createElement("link"),Ie(s);var d=s;return d._p=new Promise(function(g,k){d.onload=g,d.onerror=k}),at(s,"link",l),t.state.loading|=4,si(s,n.precedence,e),t.instance=s;case"script":return s=Il(n.src),(r=e.querySelector($a(s)))?(t.instance=r,Ie(r),r):(l=n,(r=Ut.get(s))&&(l=b({},n),qo(l,r)),e=e.ownerDocument||e,r=e.createElement("script"),Ie(r),at(r,"link",l),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,si(l,n.precedence,e));return t.instance}function si(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=l.length?l[l.length-1]:null,s=r,d=0;d<l.length;d++){var g=l[d];if(g.dataset.precedence===t)s=g;else if(s!==r)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Ho(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function qo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var oi=null;function up(e,t,n){if(oi===null){var l=new Map,r=oi=new Map;r.set(n,l)}else r=oi,l=r.get(n),l||(l=new Map,r.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var s=n[r];if(!(s[ra]||s[et]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var d=s.getAttribute(t)||"";d=e+d;var g=l.get(d);g?g.push(s):l.set(d,[s])}}return l}function cp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Xg(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function fp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Qg(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=Kl(l.href),s=t.querySelector(Ya(r));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ui.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=s,Ie(s);return}s=t.ownerDocument||t,l=sp(l),(r=Ut.get(r))&&Ho(l,r),s=s.createElement("link"),Ie(s);var d=s;d._p=new Promise(function(g,k){d.onload=g,d.onerror=k}),at(s,"link",l),n.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=ui.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Go=0;function Vg(e,t){return e.stylesheets&&e.count===0&&fi(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&fi(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&Go===0&&(Go=62500*Tg());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&fi(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>Go?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(r)}}:null}function ui(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ci=null;function fi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ci=new Map,t.forEach(Fg,e),ci=null,ui.call(e))}function Fg(e,t){if(!(t.state.loading&4)){var n=ci.get(e);if(n)var l=n.get(null);else{n=new Map,ci.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<r.length;s++){var d=r[s];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),l=d)}l&&n.set(null,l)}r=t.instance,d=r.getAttribute("data-precedence"),s=n.get(d)||l,s===l&&n.set(null,r),n.set(d,r),this.count++,l=ui.bind(this),r.addEventListener("load",l),r.addEventListener("error",l),s?s.parentNode.insertBefore(r,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Za={$$typeof:Y,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function Jg(e,t,n,l,r,s,d,g,k){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=Mi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mi(0),this.hiddenUpdates=Mi(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=s,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function dp(e,t,n,l,r,s,d,g,k,z,G,X){return e=new Jg(e,t,n,d,k,z,G,X,g),t=1,s===!0&&(t|=24),s=St(3,null,null,t),e.current=s,s.stateNode=e,t=bs(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:l,isDehydrated:n,cache:t},ks(s),e}function pp(e){return e?(e=Al,e):Al}function mp(e,t,n,l,r,s){r=pp(r),l.context===null?l.context=r:l.pendingContext=r,l=Nn(t),l.payload={element:n},s=s===void 0?null:s,s!==null&&(l.callback=s),n=jn(e,l,t),n!==null&&(mt(n,e,t),Ea(n,e,t))}function hp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Yo(e,t){hp(e,t),(e=e.alternate)&&hp(e,t)}function gp(e){if(e.tag===13||e.tag===31){var t=Kn(e,67108864);t!==null&&mt(t,e,67108864),Yo(e,67108864)}}function xp(e){if(e.tag===13||e.tag===31){var t=jt();t=Li(t);var n=Kn(e,t);n!==null&&mt(n,e,t),Yo(e,t)}}var di=!0;function Kg(e,t,n,l){var r=L.T;L.T=null;var s=W.p;try{W.p=2,$o(e,t,n,l)}finally{W.p=s,L.T=r}}function Ig(e,t,n,l){var r=L.T;L.T=null;var s=W.p;try{W.p=8,$o(e,t,n,l)}finally{W.p=s,L.T=r}}function $o(e,t,n,l){if(di){var r=Zo(l);if(r===null)_o(e,t,l,pi,n),bp(e,l);else if(Pg(r,e,t,n,l))l.stopPropagation();else if(bp(e,l),t&4&&-1<Wg.indexOf(e)){for(;r!==null;){var s=xl(r);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var d=Xn(s.pendingLanes);if(d!==0){var g=s;for(g.pendingLanes|=2,g.entangledLanes|=2;d;){var k=1<<31-bt(d);g.entanglements[1]|=k,d&=~k}Ft(s),(_e&6)===0&&(Jr=xt()+500,Ua(0))}}break;case 31:case 13:g=Kn(s,2),g!==null&&mt(g,s,2),Ir(),Yo(s,2)}if(s=Zo(l),s===null&&_o(e,t,l,pi,n),s===r)break;r=s}r!==null&&l.stopPropagation()}else _o(e,t,l,null,n)}}function Zo(e){return e=Xi(e),Xo(e)}var pi=null;function Xo(e){if(pi=null,e=gl(e),e!==null){var t=m(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===31){if(e=v(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return pi=e,null}function yp(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(Bm()){case Nu:return 2;case ju:return 8;case nr:case Um:return 32;case Tu:return 268435456;default:return 32}default:return 32}}var Qo=!1,Bn=null,Un=null,Hn=null,Xa=new Map,Qa=new Map,qn=[],Wg="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 bp(e,t){switch(e){case"focusin":case"focusout":Bn=null;break;case"dragenter":case"dragleave":Un=null;break;case"mouseover":case"mouseout":Hn=null;break;case"pointerover":case"pointerout":Xa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qa.delete(t.pointerId)}}function Va(e,t,n,l,r,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:s,targetContainers:[r]},t!==null&&(t=xl(t),t!==null&&gp(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function Pg(e,t,n,l,r){switch(t){case"focusin":return Bn=Va(Bn,e,t,n,l,r),!0;case"dragenter":return Un=Va(Un,e,t,n,l,r),!0;case"mouseover":return Hn=Va(Hn,e,t,n,l,r),!0;case"pointerover":var s=r.pointerId;return Xa.set(s,Va(Xa.get(s)||null,e,t,n,l,r)),!0;case"gotpointercapture":return s=r.pointerId,Qa.set(s,Va(Qa.get(s)||null,e,t,n,l,r)),!0}return!1}function vp(e){var t=gl(e.target);if(t!==null){var n=m(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,zu(e.priority,function(){xp(n)});return}}else if(t===31){if(t=v(n),t!==null){e.blockedOn=t,zu(e.priority,function(){xp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zo(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Zi=l,n.target.dispatchEvent(l),Zi=null}else return t=xl(n),t!==null&&gp(t),e.blockedOn=n,!1;t.shift()}return!0}function Sp(e,t,n){mi(e)&&n.delete(t)}function ex(){Qo=!1,Bn!==null&&mi(Bn)&&(Bn=null),Un!==null&&mi(Un)&&(Un=null),Hn!==null&&mi(Hn)&&(Hn=null),Xa.forEach(Sp),Qa.forEach(Sp)}function hi(e,t){e.blockedOn===t&&(e.blockedOn=null,Qo||(Qo=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,ex)))}var gi=null;function Ep(e){gi!==e&&(gi=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){gi===e&&(gi=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],r=e[t+2];if(typeof l!="function"){if(Xo(l||n)===null)continue;break}var s=xl(n);s!==null&&(e.splice(t,3),t-=3,$s(s,{pending:!0,data:r,method:n.method,action:l},l,r))}}))}function Wl(e){function t(k){return hi(k,e)}Bn!==null&&hi(Bn,e),Un!==null&&hi(Un,e),Hn!==null&&hi(Hn,e),Xa.forEach(t),Qa.forEach(t);for(var n=0;n<qn.length;n++){var l=qn[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<qn.length&&(n=qn[0],n.blockedOn===null);)vp(n),n.blockedOn===null&&qn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var r=n[l],s=n[l+1],d=r[ot]||null;if(typeof s=="function")d||Ep(n);else if(d){var g=null;if(s&&s.hasAttribute("formAction")){if(r=s,d=s[ot]||null)g=d.formAction;else if(Xo(r)!==null)continue}else g=d.action;typeof g=="function"?n[l+1]=g:(n.splice(l,3),l-=3),Ep(n)}}}function kp(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(d){return r=d})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function Vo(e){this._internalRoot=e}xi.prototype.render=Vo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var n=t.current,l=jt();mp(n,l,e,t,null,null)},xi.prototype.unmount=Vo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mp(e.current,2,null,e,null,null),Ir(),t[hl]=null}};function xi(e){this._internalRoot=e}xi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ou();e={blockedOn:null,target:e,priority:t};for(var n=0;n<qn.length&&t!==0&&t<qn[n].priority;n++);qn.splice(n,0,e),n===0&&vp(e)}};var wp=i.version;if(wp!=="19.2.4")throw Error(u(527,wp,"19.2.4"));W.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=x(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var tx={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yi.isDisabled&&yi.supportsFiber)try{na=yi.inject(tx),yt=yi}catch{}}return Ja.createRoot=function(e,t){if(!f(e))throw Error(u(299));var n=!1,l="",r=Rf,s=Of,d=zf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=dp(e,1,!1,null,null,n,l,null,r,s,d,kp),e[hl]=t.current,Ao(e),new Vo(t)},Ja.hydrateRoot=function(e,t,n){if(!f(e))throw Error(u(299));var l=!1,r="",s=Rf,d=Of,g=zf,k=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.formState!==void 0&&(k=n.formState)),t=dp(e,1,!0,t,n??null,l,r,k,s,d,g,kp),t.context=pp(null),n=t.current,l=jt(),l=Li(l),r=Nn(l),r.callback=null,jn(n,r,l),n=l,t.current.lanes=n,aa(t,n),Ft(t),e[hl]=t.current,Ao(e),new xi(t)},Ja.version="19.2.4",Ja}var Dp;function dx(){if(Dp)return Ko.exports;Dp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Ko.exports=fx(),Ko.exports}var px=dx();const mx=cm(px);function hx(a){const i=a;if(!i)return!1;const o=i.tagName;if(o==="INPUT"||o==="TEXTAREA"||o==="SELECT"||i.isContentEditable)return!0;const u=i.getAttribute("role");return u==="textbox"||u==="combobox"}function Mp(a){return a.type==="tool-call"&&!a.diff&&!a.bashOutput}function Lp(a,i){const o=a[i];if(!Mp(o)||o.type!=="tool-call")return i;const u=o.toolName;let f=i;for(;f+1<a.length&&a[f+1].type==="tool-call"&&Mp(a[f+1])&&a[f+1].toolName===u;)f++;return f}function Pl(a,i){return(()=>{switch(a.type){case"user-prompt":return 1200;case"thinking":return 600;case"text-response":{const u=a.content.length;return Math.max(800,Math.min(u/40,5)*600)}case"tool-call":return a.diff?1200:a.bashOutput?900:400}})()/i}function gx(a,i=!1,o=!0){const[u,f]=j.useState("idle"),[m,p]=j.useState(-1),[v,h]=j.useState(1),[x,y]=j.useState(0),b=j.useRef(null),T=j.useRef(u),R=j.useRef(m),S=j.useRef(v),w=j.useRef(i);T.current=u,R.current=m,S.current=v,w.current=i;const A=j.useMemo(()=>{const q=[];return a.forEach((J,ie)=>{J.type==="user-prompt"&&q.push(ie)}),q},[a]),H=j.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=null)},[]),M=j.useCallback(()=>{if(T.current!=="playing")return;let q=R.current+1;if(q>=a.length){f("ended"),p(a.length-1),y(a.length);return}if(w.current){for(;q<a.length&&a[q].type!=="user-prompt";)q++;if(q>=a.length){f("ended"),p(a.length-1),y(a.length);return}p(q),y(q+1);const ve=Pl(a[q],S.current);b.current=setTimeout(M,ve);return}const J=Lp(a,q);p(J),y(J+1);const ie=Pl(a[J],S.current);b.current=setTimeout(M,ie)},[a]),Y=j.useCallback(()=>{a.length!==0&&(T.current==="ended"&&(p(-1),y(0)),f("playing"),setTimeout(()=>{if(R.current<0){const q=Lp(a,0);p(q),y(q+1);const J=Pl(a[q],S.current);b.current=setTimeout(M,J)}else{const q=a[R.current];if(q){const J=Pl(q,S.current)/2;b.current=setTimeout(M,J)}}},50))},[a,M]),F=j.useCallback(()=>{H(),f("paused")},[H]),P=j.useCallback(()=>{T.current==="playing"?F():Y()},[Y,F]),ee=j.useCallback(q=>{H();const J=Math.max(0,Math.min(q,a.length-1));if(p(J),y(J+1),T.current==="playing"){const ie=Pl(a[J],S.current);b.current=setTimeout(M,ie)}(T.current==="ended"||T.current==="idle")&&f("paused")},[a,H,M]),I=j.useCallback(()=>{const q=R.current,J=A.find(ie=>ie>q);J!==void 0&&ee(J)},[A,ee]),re=j.useCallback(()=>{const q=R.current,J=[...A].reverse().find(ie=>ie<q);J!==void 0&&ee(J)},[A,ee]),ue=j.useCallback(q=>{if(h(q),T.current==="playing"){H();const J=a[R.current];if(J){const ie=Pl(J,q);b.current=setTimeout(M,ie)}}},[a,H,M]);return j.useEffect(()=>H,[H]),j.useEffect(()=>{if(!o)return;const q=J=>{hx(J.target)||(J.key===" "||J.key==="k"?(J.preventDefault(),P()):J.key==="ArrowRight"||J.key==="l"?(J.preventDefault(),ee(R.current+1)):J.key==="ArrowLeft"||J.key==="j"?(J.preventDefault(),ee(R.current-1)):J.key==="n"?(J.preventDefault(),I()):J.key==="p"?(J.preventDefault(),re()):J.key==="Home"?(J.preventDefault(),ee(0)):(J.key==="End"||J.key==="e")&&(J.preventDefault(),ee(a.length-1)))};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[o,P,ee,I,re,a.length]),{state:u,currentIndex:m,visibleCount:x,speed:v,play:Y,pause:F,togglePlayPause:P,seekTo:ee,changeSpeed:ue,jumpToNextUserPrompt:I,jumpToPrevUserPrompt:re,userPromptIndices:A,totalScenes:a.length}}const xx="vibe-replay-annotations-";function bi(a){return xx+a}function Yn(a){const i=new URLSearchParams(window.location.search).get("session");if(!i)return a;const o=a.includes("?")?"&":"?";return`${a}${o}slug=${encodeURIComponent(i)}`}function yx(a,i="embedded"){const o=a.meta.sessionId,u=i==="editor",f=!!window.__VIBE_REPLAY_DATA__||u,[m,p]=j.useState(()=>{const _=a.annotations??[];if(u)return _;try{const V=localStorage.getItem(bi(o));if(V){const E=JSON.parse(V);if(E.length>0||_.length===0)return E}}catch{}return _}),[v,h]=j.useState(()=>JSON.stringify(a.annotations??[])),x=JSON.stringify(m)!==v,y=j.useRef(null);j.useEffect(()=>{if(u)return y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{fetch(Yn("/api/annotations"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(m)}).then(()=>{h(JSON.stringify(m))}).catch(()=>{})},1e3),()=>{y.current&&clearTimeout(y.current)};try{localStorage.setItem(bi(o),JSON.stringify(m))}catch{}},[m,o,u]);const b=j.useMemo(()=>new Set(m.map(_=>_.sceneIndex)),[m]),T=j.useMemo(()=>{const _=new Map;for(const V of m)_.set(V.sceneIndex,(_.get(V.sceneIndex)||0)+1);return _},[m]),R=j.useCallback((_,V)=>{const E=new Date().toISOString(),B={id:crypto.randomUUID(),sceneIndex:_,body:V,author:"anonymous",createdAt:E,updatedAt:E,resolved:!1};p(Z=>[...Z,B])},[]),S=j.useCallback((_,V)=>{p(E=>E.map(B=>B.id===_?{...B,body:V,updatedAt:new Date().toISOString()}:B))},[]),w=j.useCallback(_=>{p(V=>V.filter(E=>E.id!==_))},[]),A=j.useCallback(()=>{if(u)return;const _={...a,annotations:m},E="window.__VIBE_REPLAY_DATA__ = "+JSON.stringify(_).replace(/<\//g,"<\\/")+";",B=document.getElementById("vibe-replay-data");if(B){const K=B.textContent;B.textContent=E;const oe=`<!DOCTYPE html>
57
- `+document.documentElement.outerHTML;B.textContent=K,Z(oe)}else{const K=document.createElement("script");K.id="vibe-replay-data",K.textContent=E,document.head.appendChild(K);const oe=`<!DOCTYPE html>
58
- `+document.documentElement.outerHTML;document.head.removeChild(K),Z(oe)}function Z(K){const oe=new Blob([K],{type:"text/html"}),ce=URL.createObjectURL(oe),pe=document.createElement("a");pe.href=ce,pe.download=`${a.meta.slug||"replay"}.html`,document.body.appendChild(pe),pe.click(),document.body.removeChild(pe),URL.revokeObjectURL(ce)}h(JSON.stringify(m));try{localStorage.removeItem(bi(o))}catch{}},[a,m,o,u]),H=j.useCallback(()=>{const _={...a,annotations:m},V=JSON.stringify(_,null,2),E=new Blob([V],{type:"application/json"}),B=URL.createObjectURL(E),Z=document.createElement("a");Z.href=B,Z.download="replay.json",document.body.appendChild(Z),Z.click(),document.body.removeChild(Z),URL.revokeObjectURL(B),h(JSON.stringify(m));try{localStorage.removeItem(bi(o))}catch{}},[a,m,o]),[M,Y]=j.useState(!1),F=u?async()=>{Y(!0);try{await fetch(Yn("/api/annotations"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(m)});const _=await fetch(Yn("/api/publish/gist"),{method:"POST"}),V=await _.json();if(!_.ok)throw new Error(V.error||`Server error: ${_.status}`);return h(JSON.stringify(m)),V}finally{Y(!1)}}:null,[P,ee]=j.useState([]),[I,re]=j.useState(null),[ue,q]=j.useState(!1),J=j.useRef(null),ie=j.useMemo(()=>I&&P.find(_=>_.name===I)||null,[I,P]);j.useEffect(()=>{u&&fetch(Yn("/api/feedback/detect")).then(_=>_.json()).then(_=>{if(!_.available)return;const V=Array.isArray(_.tools)?_.tools:_.tool?[_.tool]:[];ee(V);const E=_.defaultTool?.name||_.tool?.name||V[0]?.name||null;re(E)}).catch(()=>{})},[u]);const ve=u&&I?async()=>{const _=new AbortController;J.current=_,q(!0);try{await fetch(Yn("/api/annotations"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(m),signal:_.signal});const V=await fetch(Yn("/api/feedback/generate"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({toolName:I}),signal:_.signal}),E=await V.json();if(!V.ok)throw new Error(E.error||"AI Coach failed");return p(E.annotations),h(JSON.stringify(E.annotations)),{score:E.score,itemCount:E.itemCount}}finally{J.current=null,q(!1)}}:null,de=u?_=>{re(_)}:null,be=u?()=>{J.current&&J.current.abort()}:null,[L,W]=j.useState(!1);return{annotations:m,annotatedScenes:b,annotationCounts:T,add:R,update:S,remove:w,hasUnsaved:x,canSaveHtml:f,downloadHtml:A,downloadJson:H,publishGist:F,exportHtml:u?async()=>{W(!0);try{await fetch(Yn("/api/annotations"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(m)});const _=await fetch(Yn("/api/export/html"),{method:"POST"}),V=await _.json();if(!_.ok)throw new Error(V.error||`Export failed: ${_.status}`);const{path:E}=V;return h(JSON.stringify(m)),E}finally{W(!1)}}:null,gistPublishing:M,htmlExporting:L,aiCoachTool:ie,aiCoachTools:P,aiCoachToolName:I,setAiCoachToolName:de,runAiCoach:ve,cancelAiCoach:be,aiCoachRunning:ue}}function bx(a){switch(a){case"user-prompt":return"#3fb950";case"compaction-summary":return"#666666";case"thinking":return"#bc8cff";case"text-response":return"#58a6ff";case"tool-call":return"#d29922"}}function vx({scenes:a,currentIndex:i,onSeek:o,annotatedScenes:u}){if(a.length===0)return null;const f=j.useMemo(()=>{if(a.length<=200)return a.map((T,R)=>({startIndex:R,endIndex:R,type:T.type}));const y=a.length/200,b=[];for(let T=0;T<200;T++){const R=Math.floor(T*y),S=Math.floor((T+1)*y)-1,w={"user-prompt":4,"compaction-summary":1,"tool-call":3,"text-response":2,thinking:1};let A=a[R].type,H=w[A];for(let M=R+1;M<=S&&M<a.length;M++){const Y=w[a[M].type];Y>H&&(A=a[M].type,H=Y)}b.push({startIndex:R,endIndex:S,type:A})}return b},[a]),m=a.length>0?(i+1)/a.length*100:0,p=j.useRef(null),v=j.useCallback(x=>{const y=p.current;if(!y)return;const b=y.getBoundingClientRect(),T=x.clientX-b.left,R=Math.max(0,Math.min(1,T/b.width)),S=Math.floor(R*a.length);o(S)},[a.length,o]),h=j.useMemo(()=>{if(!u||u.size===0)return[];const x=[];return u.forEach(y=>{y>=0&&y<a.length&&x.push((y+.5)/a.length*100)}),x},[u,a.length]);return c.jsxs("div",{className:"px-4 pt-3 pb-1 cursor-pointer",onClick:v,children:[h.length>0&&c.jsx("div",{className:"relative h-2 mb-0.5",children:h.map((x,y)=>c.jsx("div",{className:"absolute w-1.5 h-1.5 rounded-full bg-terminal-blue shadow-sm shadow-terminal-blue/50",style:{left:`${x}%`,top:"50%",transform:"translate(-50%, -50%)"}},y))}),c.jsxs("div",{ref:p,className:"relative flex h-2 rounded overflow-hidden bg-terminal-border/30",children:[f.map((x,y)=>c.jsx("div",{className:"flex-1 transition-opacity duration-150",style:{backgroundColor:bx(x.type),opacity:x.startIndex<=i?1:.15}},y)),c.jsx("div",{className:"absolute top-0 bottom-0 w-0.5 bg-white shadow-sm shadow-white/50 transition-[left] duration-150",style:{left:`${m}%`}})]})]})}const Sx=[1,5,10];function Ex({state:a,speed:i,currentIndex:o,totalScenes:u,userPromptCount:f,currentTurn:m,onTogglePlayPause:p,onChangeSpeed:v,onPrevPrompt:h,onNextPrompt:x,onOpenSearch:y,onOpenOutline:b,annotationCount:T=0,annotationPanelOpen:R=!1,onToggleAnnotations:S,hasUnsavedAnnotations:w=!1}){const A=a==="playing",H=A?"⏸":"▶",M=A?"Pause":"Play",[Y,F]=j.useState(null),P=j.useCallback(q=>{F(q),setTimeout(()=>F(null),300)},[]),ee="transition-all duration-150",I=q=>Y===q?"ring-2 ring-terminal-green/50 scale-105":"",re="flex items-center border border-terminal-border/60 rounded-md overflow-hidden",ue="px-2.5 md:px-2.5 py-2 md:py-1 text-xs font-mono";return c.jsxs("div",{className:"flex items-center justify-between px-3 md:px-4 py-2",children:[c.jsxs("div",{className:"flex items-center gap-1.5 md:gap-3",children:[c.jsx("div",{className:re,children:c.jsxs("button",{onClick:()=>{P("play"),p()},className:`${ue} hover:text-terminal-green bg-terminal-surface ${ee} ${I("play")}`,title:"Play/Pause (Space)",children:[c.jsx("span",{children:H}),c.jsx("span",{className:"hidden sm:inline ml-1.5",children:M})]})}),c.jsx("div",{className:re,children:Sx.map(q=>c.jsxs("button",{onClick:()=>{P(`speed-${q}`),v(q)},className:`${ue} ${ee} ${i===q?"bg-terminal-green/15 text-terminal-green":"text-terminal-dim hover:text-terminal-text bg-terminal-surface"} ${I(`speed-${q}`)}`,children:[q,"x"]},q))}),c.jsxs("div",{className:re,children:[c.jsx("button",{onClick:()=>{P("prev"),h()},className:`${ue} text-terminal-dim hover:text-terminal-green bg-terminal-surface ${ee} ${I("prev")}`,title:"Previous turn (p)",children:"‹"}),c.jsxs("span",{className:`${ue} text-terminal-dim tabular-nums bg-terminal-surface border-x border-terminal-border/60`,children:[c.jsx("span",{className:"hidden sm:inline",children:"Turn "}),m,"/",f]}),c.jsx("button",{onClick:()=>{P("next"),x()},className:`${ue} text-terminal-dim hover:text-terminal-green bg-terminal-surface ${ee} ${I("next")}`,title:"Next turn (n)",children:"›"})]}),c.jsx("div",{className:re,children:c.jsxs("button",{onClick:()=>{P("search"),y()},className:`${ue} hover:text-terminal-blue bg-terminal-surface ${ee} ${I("search")}`,title:"Search (Cmd/Ctrl+K)",children:[c.jsx("span",{children:"🔍"}),c.jsx("span",{className:"hidden sm:inline ml-1.5",children:"Search"})]})}),S&&c.jsx("div",{className:`${re} hidden md:flex`,children:c.jsxs("button",{onClick:()=>{P("annotate"),S()},className:`${ue} ${ee} ${R?"bg-terminal-blue/15 text-terminal-blue":"hover:text-terminal-blue bg-terminal-surface"} ${I("annotate")} relative`,title:"Toggle comments panel",children:[c.jsx("span",{children:"💬"}),T>0&&c.jsx("span",{className:"hidden sm:inline ml-1.5",children:T}),w&&c.jsx("span",{className:"absolute -top-0.5 -right-0.5 w-1.5 h-1.5 rounded-full bg-terminal-orange"})]})}),b&&c.jsx("div",{className:`${re} md:hidden`,children:c.jsx("button",{onClick:()=>{P("outline"),b()},className:`${ue} hover:text-terminal-text bg-terminal-surface ${ee} ${I("outline")}`,title:"Outline",children:"☰"})})]}),c.jsxs("div",{className:"hidden sm:flex items-center gap-2 md:gap-3 text-xs text-terminal-dim font-mono shrink-0",children:[a==="paused"&&c.jsx("span",{className:"text-terminal-orange",children:"PAUSED"}),c.jsxs("span",{className:"tabular-nums",children:[Math.max(0,o+1)," / ",u]}),c.jsxs("span",{className:"hidden lg:inline-flex items-center gap-2 text-terminal-dim/50 border-l border-terminal-border/40 pl-3",children:[c.jsx("kbd",{className:"px-1 py-px rounded bg-terminal-surface border border-terminal-border/50 text-[10px]",children:"Space"}),c.jsx("span",{className:"text-[10px]",children:"play"}),c.jsx("kbd",{className:"px-1 py-px rounded bg-terminal-surface border border-terminal-border/50 text-[10px]",children:"n"}),c.jsx("kbd",{className:"px-1 py-px rounded bg-terminal-surface border border-terminal-border/50 text-[10px]",children:"p"}),c.jsx("span",{className:"text-[10px]",children:"turns"}),c.jsx("kbd",{className:"px-1 py-px rounded bg-terminal-surface border border-terminal-border/50 text-[10px]",children:"←→"}),c.jsx("span",{className:"text-[10px]",children:"step"}),c.jsx("kbd",{className:"px-1 py-px rounded bg-terminal-surface border border-terminal-border/50 text-[10px]",children:"e"}),c.jsx("span",{className:"text-[10px]",children:"all"}),c.jsx("kbd",{className:"px-1 py-px rounded bg-terminal-surface border border-terminal-border/50 text-[10px]",children:"⌘K"}),c.jsx("span",{className:"text-[10px]",children:"search"})]})]})]})}const Bp=8,kx=900,wx=j.memo(function({content:i,images:o,isActive:u}){const[f,m]=j.useState(!1),p=j.useMemo(()=>i.split(`
59
- `),[i]),v=p.length>Bp||i.length>kx,h=j.useMemo(()=>!v||f?i:p.slice(0,Bp).join(`
60
- `),[i,f,v,p]);return c.jsxs("div",{children:[c.jsxs("div",{className:`text-terminal-green font-mono text-sm whitespace-pre-wrap break-words ${u?"typing-cursor":""}`,children:[h,v&&!f&&c.jsx("span",{className:"text-terminal-dim",children:`
61
- ...`})]}),v&&c.jsx("button",{onClick:()=>m(x=>!x),className:"mt-1 text-[11px] font-mono text-terminal-green/80 hover:text-terminal-green transition-colors",children:f?"Show less":`Show more (${p.length} lines)`}),o&&o.length>0&&c.jsx("div",{className:"flex gap-2 mt-2 flex-wrap",children:o.map((x,y)=>c.jsx("img",{src:x,alt:`Attached image ${y+1}`,className:"max-w-[300px] max-h-[200px] rounded border border-terminal-border object-contain"},y))})]})}),Up=3,fm=j.memo(function({content:i,isActive:o}){const[u,f]=j.useState(!1),m=i.split(`
62
- `),p=m.length>Up,v=p&&!u?m.slice(0,Up).join(`
63
- `):i;return c.jsxs("div",{children:[c.jsxs("div",{className:`text-xs font-mono text-terminal-dim/70 whitespace-pre-wrap leading-relaxed ${o?"":"opacity-80"} ${p&&!u?"max-h-[4.5em] overflow-hidden relative":""}`,children:[v,p&&!u&&c.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-8 bg-gradient-to-t from-terminal-bg to-transparent"})]}),p&&c.jsx("button",{onClick:()=>f(!u),className:"mt-1 text-[11px] font-mono text-terminal-dim/50 hover:text-terminal-text transition-colors",children:u?"Show less":`Show full summary (${m.length} lines)`})]})}),Nx=j.memo(function({content:i,isActive:o}){const[u,f]=j.useState(!1);return c.jsxs("div",{className:"ml-6",children:[c.jsxs("button",{onClick:()=>f(!u),className:"flex items-center gap-2 text-xs text-terminal-dim hover:text-terminal-text transition-colors font-mono",children:[c.jsx("span",{className:`transition-transform ${u?"rotate-90":""}`,children:"▶"}),c.jsx("span",{className:o?"animate-pulse":"",children:"Thinking..."}),c.jsxs("span",{className:"text-terminal-purple",children:["(",i.length," chars)"]})]}),u&&c.jsx("div",{className:"mt-2 pl-5 text-xs text-terminal-dim font-mono whitespace-pre-wrap break-words border-l-2 border-terminal-purple/30 max-h-[300px] overflow-y-auto",children:i})]})});function mu(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var fl=mu();function dm(a){fl=a}var ul={exec:()=>null};function je(a,i=""){let o=typeof a=="string"?a:a.source,u={replace:(f,m)=>{let p=typeof m=="string"?m:m.source;return p=p.replace(st.caret,"$1"),o=o.replace(f,p),u},getRegex:()=>new RegExp(o,i)};return u}var jx=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),st={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:a=>new RegExp(`^( {0,3}${a})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}#`),htmlBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}>`)},Tx=/^(?:[ \t]*(?:\n|$))+/,Ax=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,_x=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,tr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Cx=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hu=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,pm=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,mm=je(pm).replace(/bull/g,hu).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Rx=je(pm).replace(/bull/g,hu).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),gu=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ox=/^[^\n]+/,xu=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,zx=je(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",xu).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Dx=je(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,hu).getRegex(),_i="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",yu=/\x3C!--(?:-?>|[\s\S]*?(?:-->|$))/,Mx=je("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",yu).replace("tag",_i).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),hm=je(gu).replace("hr",tr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_i).getRegex(),Lx=je(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",hm).getRegex(),bu={blockquote:Lx,code:Ax,def:zx,fences:_x,heading:Cx,hr:tr,html:Mx,lheading:mm,list:Dx,newline:Tx,paragraph:hm,table:ul,text:Ox},Hp=je("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",tr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_i).getRegex(),Bx={...bu,lheading:Rx,table:Hp,paragraph:je(gu).replace("hr",tr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Hp).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_i).getRegex()},Ux={...bu,html:je(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",yu).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ul,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:je(gu).replace("hr",tr).replace("heading",` *#{1,6} *[^
64
- ]`).replace("lheading",mm).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Hx=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,qx=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,gm=/^( {2,}|\\)\n(?!\s*$)/,Gx=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ci=/[\p{P}\p{S}]/u,vu=/[\s\p{P}\p{S}]/u,xm=/[^\s\p{P}\p{S}]/u,Yx=je(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,vu).getRegex(),ym=/(?!~)[\p{P}\p{S}]/u,$x=/(?!~)[\s\p{P}\p{S}]/u,Zx=/(?:[^\s\p{P}\p{S}]|~)/u,bm=/(?![*_])[\p{P}\p{S}]/u,Xx=/(?![*_])[\s\p{P}\p{S}]/u,Qx=/(?:[^\s\p{P}\p{S}]|[*_])/u,Vx=je(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",jx?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),vm=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Fx=je(vm,"u").replace(/punct/g,Ci).getRegex(),Jx=je(vm,"u").replace(/punct/g,ym).getRegex(),Sm="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Kx=je(Sm,"gu").replace(/notPunctSpace/g,xm).replace(/punctSpace/g,vu).replace(/punct/g,Ci).getRegex(),Ix=je(Sm,"gu").replace(/notPunctSpace/g,Zx).replace(/punctSpace/g,$x).replace(/punct/g,ym).getRegex(),Wx=je("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,xm).replace(/punctSpace/g,vu).replace(/punct/g,Ci).getRegex(),Px=je(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,bm).getRegex(),ey="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",ty=je(ey,"gu").replace(/notPunctSpace/g,Qx).replace(/punctSpace/g,Xx).replace(/punct/g,bm).getRegex(),ny=je(/\\(punct)/,"gu").replace(/punct/g,Ci).getRegex(),ly=je(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ay=je(yu).replace("(?:-->|$)","-->").getRegex(),ry=je("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ay).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),wi=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,iy=je(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",wi).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Em=je(/^!?\[(label)\]\[(ref)\]/).replace("label",wi).replace("ref",xu).getRegex(),km=je(/^!?\[(ref)\](?:\[\])?/).replace("ref",xu).getRegex(),sy=je("reflink|nolink(?!\\()","g").replace("reflink",Em).replace("nolink",km).getRegex(),qp=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Su={_backpedal:ul,anyPunctuation:ny,autolink:ly,blockSkip:Vx,br:gm,code:qx,del:ul,delLDelim:ul,delRDelim:ul,emStrongLDelim:Fx,emStrongRDelimAst:Kx,emStrongRDelimUnd:Wx,escape:Hx,link:iy,nolink:km,punctuation:Yx,reflink:Em,reflinkSearch:sy,tag:ry,text:Gx,url:ul},oy={...Su,link:je(/^!?\[(label)\]\((.*?)\)/).replace("label",wi).getRegex(),reflink:je(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",wi).getRegex()},nu={...Su,emStrongRDelimAst:Ix,emStrongLDelim:Jx,delLDelim:Px,delRDelim:ty,url:je(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",qp).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:je(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",qp).getRegex()},uy={...nu,br:je(gm).replace("{2,}","*").getRegex(),text:je(nu.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},vi={normal:bu,gfm:Bx,pedantic:Ux},Ka={normal:Su,gfm:nu,breaks:uy,pedantic:oy},cy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Gp=a=>cy[a];function Jt(a,i){if(i){if(st.escapeTest.test(a))return a.replace(st.escapeReplace,Gp)}else if(st.escapeTestNoEncode.test(a))return a.replace(st.escapeReplaceNoEncode,Gp);return a}function Yp(a){try{a=encodeURI(a).replace(st.percentDecode,"%")}catch{return null}return a}function $p(a,i){let o=a.replace(st.findPipe,(m,p,v)=>{let h=!1,x=p;for(;--x>=0&&v[x]==="\\";)h=!h;return h?"|":" |"}),u=o.split(st.splitPipe),f=0;if(u[0].trim()||u.shift(),u.length>0&&!u.at(-1)?.trim()&&u.pop(),i)if(u.length>i)u.splice(i);else for(;u.length<i;)u.push("");for(;f<u.length;f++)u[f]=u[f].trim().replace(st.slashPipe,"|");return u}function Ia(a,i,o){let u=a.length;if(u===0)return"";let f=0;for(;f<u&&a.charAt(u-f-1)===i;)f++;return a.slice(0,u-f)}function fy(a,i){if(a.indexOf(i[1])===-1)return-1;let o=0;for(let u=0;u<a.length;u++)if(a[u]==="\\")u++;else if(a[u]===i[0])o++;else if(a[u]===i[1]&&(o--,o<0))return u;return o>0?-2:-1}function dy(a,i=0){let o=i,u="";for(let f of a)if(f===" "){let m=4-o%4;u+=" ".repeat(m),o+=m}else u+=f,o++;return u}function Zp(a,i,o,u,f){let m=i.href,p=i.title||null,v=a[1].replace(f.other.outputLinkReplace,"$1");u.state.inLink=!0;let h={type:a[0].charAt(0)==="!"?"image":"link",raw:o,href:m,title:p,text:v,tokens:u.inlineTokens(v)};return u.state.inLink=!1,h}function py(a,i,o){let u=a.match(o.other.indentCodeCompensation);if(u===null)return i;let f=u[1];return i.split(`
65
- `).map(m=>{let p=m.match(o.other.beginningSpace);if(p===null)return m;let[v]=p;return v.length>=f.length?m.slice(f.length):m}).join(`
66
- `)}var Ni=class{options;rules;lexer;constructor(a){this.options=a||fl}space(a){let i=this.rules.block.newline.exec(a);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(a){let i=this.rules.block.code.exec(a);if(i){let o=i[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?o:Ia(o,`
67
- `)}}}fences(a){let i=this.rules.block.fences.exec(a);if(i){let o=i[0],u=py(o,i[3]||"",this.rules);return{type:"code",raw:o,lang:i[2]?i[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):i[2],text:u}}}heading(a){let i=this.rules.block.heading.exec(a);if(i){let o=i[2].trim();if(this.rules.other.endingHash.test(o)){let u=Ia(o,"#");(this.options.pedantic||!u||this.rules.other.endingSpaceChar.test(u))&&(o=u.trim())}return{type:"heading",raw:i[0],depth:i[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(a){let i=this.rules.block.hr.exec(a);if(i)return{type:"hr",raw:Ia(i[0],`
68
- `)}}blockquote(a){let i=this.rules.block.blockquote.exec(a);if(i){let o=Ia(i[0],`
55
+ `+l.stack}}var pl=Object.prototype.hasOwnProperty,ta=a.unstable_scheduleCallback,hl=a.unstable_cancelCallback,Bp=a.unstable_shouldYield,Up=a.unstable_requestPaint,yt=a.unstable_now,Hp=a.unstable_getCurrentPriorityLevel,jo=a.unstable_ImmediatePriority,To=a.unstable_UserBlockingPriority,ls=a.unstable_NormalPriority,qp=a.unstable_LowPriority,Ao=a.unstable_IdlePriority,Gp=a.log,$p=a.unstable_setDisableYieldValue,na=null,bt=null;function bn(e){if(typeof Gp=="function"&&$p(e),bt&&typeof bt.setStrictMode=="function")try{bt.setStrictMode(na,e)}catch{}}var vt=Math.clz32?Math.clz32:Xp,Yp=Math.log,Zp=Math.LN2;function Xp(e){return e>>>=0,e===0?32:31-(Yp(e)/Zp|0)|0}var as=256,ss=262144,is=4194304;function Qn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function rs(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var i=0,r=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var g=l&134217727;return g!==0?(l=g&~r,l!==0?i=Qn(l):(d&=g,d!==0?i=Qn(d):n||(n=g&~e,n!==0&&(i=Qn(n))))):(g=l&~r,g!==0?i=Qn(g):d!==0?i=Qn(d):n||(n=l&~e,n!==0&&(i=Qn(n)))),i===0?0:t!==0&&t!==i&&(t&r)===0&&(r=i&-i,n=t&-t,r>=n||r===32&&(n&4194048)!==0)?t:i}function la(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qp(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 _o(){var e=is;return is<<=1,(is&62914560)===0&&(is=4194304),e}function Mi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function aa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Vp(e,t,n,l,i,r){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var g=e.entanglements,k=e.expirationTimes,M=e.hiddenUpdates;for(n=d&~n;0<n;){var q=31-vt(n),Z=1<<q;g[q]=0,k[q]=-1;var L=M[q];if(L!==null)for(M[q]=null,q=0;q<L.length;q++){var U=L[q];U!==null&&(U.lane&=-536870913)}n&=~Z}l!==0&&Co(e,l,0),r!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=r&~(d&~t))}function Co(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-vt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Ro(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-vt(n),i=1<<l;i&t|e[l]&t&&(e[l]|=t),n&=~i}}function zo(e,t){var n=t&-t;return n=(n&42)!==0?1:Li(n),(n&(e.suspendedLanes|t))!==0?0:n}function Li(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 Bi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Oo(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:bm(e.type))}function Do(e,t){var n=Y.p;try{return Y.p=e,t()}finally{Y.p=n}}var vn=Math.random().toString(36).slice(2),tt="__reactFiber$"+vn,ft="__reactProps$"+vn,gl="__reactContainer$"+vn,Ui="__reactEvents$"+vn,Fp="__reactListeners$"+vn,Jp="__reactHandles$"+vn,Mo="__reactResources$"+vn,sa="__reactMarker$"+vn;function Hi(e){delete e[tt],delete e[ft],delete e[Ui],delete e[Fp],delete e[Jp]}function xl(e){var t=e[tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gl]||n[tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=lm(e);e!==null;){if(n=e[tt])return n;e=lm(e)}return t}e=n,n=e.parentNode}return null}function yl(e){if(e=e[tt]||e[gl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ia(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function bl(e){var t=e[Mo];return t||(t=e[Mo]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Pe(e){e[sa]=!0}var Lo=new Set,Bo={};function Vn(e,t){vl(e,t),vl(e+"Capture",t)}function vl(e,t){for(Bo[e]=t,e=0;e<t.length;e++)Lo.add(t[e])}var Kp=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]*$"),Uo={},Ho={};function Ip(e){return pl.call(Ho,e)?!0:pl.call(Uo,e)?!1:Kp.test(e)?Ho[e]=!0:(Uo[e]=!0,!1)}function us(e,t,n){if(Ip(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function os(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Pt(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Rt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Wp(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,r=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(d){n=""+d,r.call(this,d)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qi(e){if(!e._valueTracker){var t=qo(e)?"checked":"value";e._valueTracker=Wp(e,t,""+e[t])}}function Go(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=qo(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function cs(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 Pp=/[\n"\\]/g;function zt(e){return e.replace(Pp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Gi(e,t,n,l,i,r,d,g){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Rt(t)):e.value!==""+Rt(t)&&(e.value=""+Rt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?$i(e,d,Rt(t)):n!=null?$i(e,d,Rt(n)):l!=null&&e.removeAttribute("value"),i==null&&r!=null&&(e.defaultChecked=!!r),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+Rt(g):e.removeAttribute("name")}function $o(e,t,n,l,i,r,d,g){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){qi(e);return}n=n!=null?""+Rt(n):"",t=t!=null?""+Rt(t):n,g||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=g?e.checked:!!l,e.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),qi(e)}function $i(e,t,n){t==="number"&&cs(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Sl(e,t,n,l){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Rt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Yo(e,t,n){if(t!=null&&(t=""+Rt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Rt(n):""}function Zo(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(o(92));if(he(l)){if(1<l.length)throw Error(o(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Rt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),qi(e)}function wl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var eh=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 Xo(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||eh.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Qo(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in t)l=t[i],t.hasOwnProperty(i)&&n[i]!==l&&Xo(e,i,l)}else for(var r in t)t.hasOwnProperty(r)&&Xo(e,r,t[r])}function Yi(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 th=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"]]),nh=/^[\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 fs(e){return nh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function en(){}var Zi=null;function Xi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kl=null,El=null;function Vo(e){var t=yl(e);if(t&&(e=t.stateNode)){var n=e[ft]||null;e:switch(e=t.stateNode,t.type){case"input":if(Gi(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+zt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var i=l[ft]||null;if(!i)throw Error(o(90));Gi(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Go(l)}break e;case"textarea":Yo(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Sl(e,!!n.multiple,t,!1)}}}var Qi=!1;function Fo(e,t,n){if(Qi)return e(t,n);Qi=!0;try{var l=e(t);return l}finally{if(Qi=!1,(kl!==null||El!==null)&&(Ws(),kl&&(t=kl,e=El,El=kl=null,Vo(t),e)))for(t=0;t<e.length;t++)Vo(e[t])}}function ra(e,t){var n=e.stateNode;if(n===null)return null;var l=n[ft]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var tn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vi=!1;if(tn)try{var ua={};Object.defineProperty(ua,"passive",{get:function(){Vi=!0}}),window.addEventListener("test",ua,ua),window.removeEventListener("test",ua,ua)}catch{Vi=!1}var Sn=null,Fi=null,ds=null;function Jo(){if(ds)return ds;var e,t=Fi,n=t.length,l,i="value"in Sn?Sn.value:Sn.textContent,r=i.length;for(e=0;e<n&&t[e]===i[e];e++);var d=n-e;for(l=1;l<=d&&t[n-l]===i[r-l];l++);return ds=i.slice(e,1<l?1-l:void 0)}function ms(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 ps(){return!0}function Ko(){return!1}function dt(e){function t(n,l,i,r,d){this._reactName=n,this._targetInst=i,this.type=l,this.nativeEvent=r,this.target=d,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(n=e[g],this[g]=n?n(r):r[g]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?ps:Ko,this.isPropagationStopped=Ko,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ps)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ps)},persist:function(){},isPersistent:ps}),t}var Fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hs=dt(Fn),oa=b({},Fn,{view:0,detail:0}),lh=dt(oa),Ji,Ki,ca,gs=b({},oa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wi,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!==ca&&(ca&&e.type==="mousemove"?(Ji=e.screenX-ca.screenX,Ki=e.screenY-ca.screenY):Ki=Ji=0,ca=e),Ji)},movementY:function(e){return"movementY"in e?e.movementY:Ki}}),Io=dt(gs),ah=b({},gs,{dataTransfer:0}),sh=dt(ah),ih=b({},oa,{relatedTarget:0}),Ii=dt(ih),rh=b({},Fn,{animationName:0,elapsedTime:0,pseudoElement:0}),uh=dt(rh),oh=b({},Fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ch=dt(oh),fh=b({},Fn,{data:0}),Wo=dt(fh),dh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mh={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"},ph={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ph[e])?!!t[e]:!1}function Wi(){return hh}var gh=b({},oa,{key:function(e){if(e.key){var t=dh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ms(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?mh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wi,charCode:function(e){return e.type==="keypress"?ms(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ms(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xh=dt(gh),yh=b({},gs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Po=dt(yh),bh=b({},oa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wi}),vh=dt(bh),Sh=b({},Fn,{propertyName:0,elapsedTime:0,pseudoElement:0}),wh=dt(Sh),kh=b({},gs,{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}),Eh=dt(kh),Nh=b({},Fn,{newState:0,oldState:0}),jh=dt(Nh),Th=[9,13,27,32],Pi=tn&&"CompositionEvent"in window,fa=null;tn&&"documentMode"in document&&(fa=document.documentMode);var Ah=tn&&"TextEvent"in window&&!fa,ec=tn&&(!Pi||fa&&8<fa&&11>=fa),tc=" ",nc=!1;function lc(e,t){switch(e){case"keyup":return Th.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ac(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nl=!1;function _h(e,t){switch(e){case"compositionend":return ac(t);case"keypress":return t.which!==32?null:(nc=!0,tc);case"textInput":return e=t.data,e===tc&&nc?null:e;default:return null}}function Ch(e,t){if(Nl)return e==="compositionend"||!Pi&&lc(e,t)?(e=Jo(),ds=Fi=Sn=null,Nl=!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 ec&&t.locale!=="ko"?null:t.data;default:return null}}var Rh={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 sc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Rh[e.type]:t==="textarea"}function ic(e,t,n,l){kl?El?El.push(l):El=[l]:kl=l,t=si(t,"onChange"),0<t.length&&(n=new hs("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var da=null,ma=null;function zh(e){Yd(e,0)}function xs(e){var t=ia(e);if(Go(t))return e}function rc(e,t){if(e==="change")return t}var uc=!1;if(tn){var er;if(tn){var tr="oninput"in document;if(!tr){var oc=document.createElement("div");oc.setAttribute("oninput","return;"),tr=typeof oc.oninput=="function"}er=tr}else er=!1;uc=er&&(!document.documentMode||9<document.documentMode)}function cc(){da&&(da.detachEvent("onpropertychange",fc),ma=da=null)}function fc(e){if(e.propertyName==="value"&&xs(ma)){var t=[];ic(t,ma,e,Xi(e)),Fo(zh,t)}}function Oh(e,t,n){e==="focusin"?(cc(),da=t,ma=n,da.attachEvent("onpropertychange",fc)):e==="focusout"&&cc()}function Dh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xs(ma)}function Mh(e,t){if(e==="click")return xs(t)}function Lh(e,t){if(e==="input"||e==="change")return xs(t)}function Bh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var St=typeof Object.is=="function"?Object.is:Bh;function pa(e,t){if(St(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var i=n[l];if(!pl.call(t,i)||!St(e[i],t[i]))return!1}return!0}function dc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mc(e,t){var n=dc(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=dc(n)}}function pc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=cs(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=cs(e.document)}return t}function nr(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 Uh=tn&&"documentMode"in document&&11>=document.documentMode,jl=null,lr=null,ha=null,ar=!1;function gc(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ar||jl==null||jl!==cs(l)||(l=jl,"selectionStart"in l&&nr(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ha&&pa(ha,l)||(ha=l,l=si(lr,"onSelect"),0<l.length&&(t=new hs("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=jl)))}function Jn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Tl={animationend:Jn("Animation","AnimationEnd"),animationiteration:Jn("Animation","AnimationIteration"),animationstart:Jn("Animation","AnimationStart"),transitionrun:Jn("Transition","TransitionRun"),transitionstart:Jn("Transition","TransitionStart"),transitioncancel:Jn("Transition","TransitionCancel"),transitionend:Jn("Transition","TransitionEnd")},sr={},xc={};tn&&(xc=document.createElement("div").style,"AnimationEvent"in window||(delete Tl.animationend.animation,delete Tl.animationiteration.animation,delete Tl.animationstart.animation),"TransitionEvent"in window||delete Tl.transitionend.transition);function Kn(e){if(sr[e])return sr[e];if(!Tl[e])return e;var t=Tl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in xc)return sr[e]=t[n];return e}var yc=Kn("animationend"),bc=Kn("animationiteration"),vc=Kn("animationstart"),Hh=Kn("transitionrun"),qh=Kn("transitionstart"),Gh=Kn("transitioncancel"),Sc=Kn("transitionend"),wc=new Map,ir="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(" ");ir.push("scrollEnd");function Gt(e,t){wc.set(e,t),Vn(t,[e])}var ys=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)},Ot=[],Al=0,rr=0;function bs(){for(var e=Al,t=rr=Al=0;t<e;){var n=Ot[t];Ot[t++]=null;var l=Ot[t];Ot[t++]=null;var i=Ot[t];Ot[t++]=null;var r=Ot[t];if(Ot[t++]=null,l!==null&&i!==null){var d=l.pending;d===null?i.next=i:(i.next=d.next,d.next=i),l.pending=i}r!==0&&kc(n,i,r)}}function vs(e,t,n,l){Ot[Al++]=e,Ot[Al++]=t,Ot[Al++]=n,Ot[Al++]=l,rr|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function ur(e,t,n,l){return vs(e,t,n,l),Ss(e)}function In(e,t){return vs(e,null,null,t),Ss(e)}function kc(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var i=!1,r=e.return;r!==null;)r.childLanes|=n,l=r.alternate,l!==null&&(l.childLanes|=n),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(i=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,i&&t!==null&&(i=31-vt(n),e=r.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=n|536870912),r):null}function Ss(e){if(50<Ba)throw Ba=0,xu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var _l={};function $h(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wt(e,t,n,l){return new $h(e,t,n,l)}function or(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nn(e,t){var n=e.alternate;return n===null?(n=wt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ec(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ws(e,t,n,l,i,r){var d=0;if(l=e,typeof e=="function")or(e)&&(d=1);else if(typeof e=="string")d=Vg(e,n,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case de:return e=wt(31,n,t,i),e.elementType=de,e.lanes=r,e;case N:return Wn(n.children,i,r,t);case C:d=8,i|=24;break;case H:return e=wt(12,n,t,i|2),e.elementType=H,e.lanes=r,e;case P:return e=wt(13,n,t,i),e.elementType=P,e.lanes=r,e;case ee:return e=wt(19,n,t,i),e.elementType=ee,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G:d=10;break e;case O:d=9;break e;case F:d=11;break e;case K:d=14;break e;case ae:d=16,l=null;break e}d=29,n=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=wt(d,n,t,i),t.elementType=e,t.type=l,t.lanes=r,t}function Wn(e,t,n,l){return e=wt(7,e,l,t),e.lanes=n,e}function cr(e,t,n){return e=wt(6,e,null,t),e.lanes=n,e}function Nc(e){var t=wt(18,null,null,0);return t.stateNode=e,t}function fr(e,t,n){return t=wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var jc=new WeakMap;function Dt(e,t){if(typeof e=="object"&&e!==null){var n=jc.get(e);return n!==void 0?n:(t={value:e,source:t,stack:yn(t)},jc.set(e,t),t)}return{value:e,source:t,stack:yn(t)}}var Cl=[],Rl=0,ks=null,ga=0,Mt=[],Lt=0,wn=null,Qt=1,Vt="";function ln(e,t){Cl[Rl++]=ga,Cl[Rl++]=ks,ks=e,ga=t}function Tc(e,t,n){Mt[Lt++]=Qt,Mt[Lt++]=Vt,Mt[Lt++]=wn,wn=e;var l=Qt;e=Vt;var i=32-vt(l)-1;l&=~(1<<i),n+=1;var r=32-vt(t)+i;if(30<r){var d=i-i%5;r=(l&(1<<d)-1).toString(32),l>>=d,i-=d,Qt=1<<32-vt(t)+i|n<<i|l,Vt=r+e}else Qt=1<<r|n<<i|l,Vt=e}function dr(e){e.return!==null&&(ln(e,1),Tc(e,1,0))}function mr(e){for(;e===ks;)ks=Cl[--Rl],Cl[Rl]=null,ga=Cl[--Rl],Cl[Rl]=null;for(;e===wn;)wn=Mt[--Lt],Mt[Lt]=null,Vt=Mt[--Lt],Mt[Lt]=null,Qt=Mt[--Lt],Mt[Lt]=null}function Ac(e,t){Mt[Lt++]=Qt,Mt[Lt++]=Vt,Mt[Lt++]=wn,Qt=t.id,Vt=t.overflow,wn=e}var nt=null,qe=null,Ee=!1,kn=null,Bt=!1,pr=Error(o(519));function En(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xa(Dt(t,e)),pr}function _c(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[tt]=e,t[ft]=l,n){case"dialog":Se("cancel",t),Se("close",t);break;case"iframe":case"object":case"embed":Se("load",t);break;case"video":case"audio":for(n=0;n<Ha.length;n++)Se(Ha[n],t);break;case"source":Se("error",t);break;case"img":case"image":case"link":Se("error",t),Se("load",t);break;case"details":Se("toggle",t);break;case"input":Se("invalid",t),$o(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Se("invalid",t);break;case"textarea":Se("invalid",t),Zo(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||Vd(t.textContent,n)?(l.popover!=null&&(Se("beforetoggle",t),Se("toggle",t)),l.onScroll!=null&&Se("scroll",t),l.onScrollEnd!=null&&Se("scrollend",t),l.onClick!=null&&(t.onclick=en),t=!0):t=!1,t||En(e,!0)}function Cc(e){for(nt=e.return;nt;)switch(nt.tag){case 5:case 31:case 13:Bt=!1;return;case 27:case 3:Bt=!0;return;default:nt=nt.return}}function zl(e){if(e!==nt)return!1;if(!Ee)return Cc(e),Ee=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||zu(e.type,e.memoizedProps)),n=!n),n&&qe&&En(e),Cc(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));qe=nm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));qe=nm(e)}else t===27?(t=qe,Un(e.type)?(e=Bu,Bu=null,qe=e):qe=t):qe=nt?Ht(e.stateNode.nextSibling):null;return!0}function Pn(){qe=nt=null,Ee=!1}function hr(){var e=kn;return e!==null&&(gt===null?gt=e:gt.push.apply(gt,e),kn=null),e}function xa(e){kn===null?kn=[e]:kn.push(e)}var gr=w(null),el=null,an=null;function Nn(e,t,n){Q(gr,t._currentValue),t._currentValue=n}function sn(e){e._currentValue=gr.current,B(gr)}function xr(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function yr(e,t,n,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var r=i.dependencies;if(r!==null){var d=i.child;r=r.firstContext;e:for(;r!==null;){var g=r;r=i;for(var k=0;k<t.length;k++)if(g.context===t[k]){r.lanes|=n,g=r.alternate,g!==null&&(g.lanes|=n),xr(r.return,n,e),l||(d=null);break e}r=g.next}}else if(i.tag===18){if(d=i.return,d===null)throw Error(o(341));d.lanes|=n,r=d.alternate,r!==null&&(r.lanes|=n),xr(d,n,e),d=null}else d=i.child;if(d!==null)d.return=i;else for(d=i;d!==null;){if(d===e){d=null;break}if(i=d.sibling,i!==null){i.return=d.return,d=i;break}d=d.return}i=d}}function Ol(e,t,n,l){e=null;for(var i=t,r=!1;i!==null;){if(!r){if((i.flags&524288)!==0)r=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var d=i.alternate;if(d===null)throw Error(o(387));if(d=d.memoizedProps,d!==null){var g=i.type;St(i.pendingProps.value,d.value)||(e!==null?e.push(g):e=[g])}}else if(i===pe.current){if(d=i.alternate,d===null)throw Error(o(387));d.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Za):e=[Za])}i=i.return}e!==null&&yr(t,e,n,l),t.flags|=262144}function Es(e){for(e=e.firstContext;e!==null;){if(!St(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function tl(e){el=e,an=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return Rc(el,e)}function Ns(e,t){return el===null&&tl(e),Rc(e,t)}function Rc(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},an===null){if(e===null)throw Error(o(308));an=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else an=an.next=t;return n}var Yh=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Zh=a.unstable_scheduleCallback,Xh=a.unstable_NormalPriority,Ve={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function br(){return{controller:new Yh,data:new Map,refCount:0}}function ya(e){e.refCount--,e.refCount===0&&Zh(Xh,function(){e.controller.abort()})}var ba=null,vr=0,Dl=0,Ml=null;function Qh(e,t){if(ba===null){var n=ba=[];vr=0,Dl=ku(),Ml={status:"pending",value:void 0,then:function(l){n.push(l)}}}return vr++,t.then(zc,zc),t}function zc(){if(--vr===0&&ba!==null){Ml!==null&&(Ml.status="fulfilled");var e=ba;ba=null,Dl=0,Ml=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Vh(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),l}var Oc=E.S;E.S=function(e,t){xd=yt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Qh(e,t),Oc!==null&&Oc(e,t)};var nl=w(null);function Sr(){var e=nl.current;return e!==null?e:Ue.pooledCache}function js(e,t){t===null?Q(nl,nl.current):Q(nl,t.pool)}function Dc(){var e=Sr();return e===null?null:{parent:Ve._currentValue,pool:e}}var Ll=Error(o(460)),wr=Error(o(474)),Ts=Error(o(542)),As={then:function(){}};function Mc(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Lc(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(en,en),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Uc(e),e;default:if(typeof t.status=="string")t.then(en,en);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Uc(e),e}throw al=t,Ll}}function ll(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(al=n,Ll):n}}var al=null;function Bc(){if(al===null)throw Error(o(459));var e=al;return al=null,e}function Uc(e){if(e===Ll||e===Ts)throw Error(o(483))}var Bl=null,va=0;function _s(e){var t=va;return va+=1,Bl===null&&(Bl=[]),Lc(Bl,e,t)}function Sa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Cs(e,t){throw t.$$typeof===A?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Hc(e){function t(R,j){if(e){var D=R.deletions;D===null?(R.deletions=[j],R.flags|=16):D.push(j)}}function n(R,j){if(!e)return null;for(;j!==null;)t(R,j),j=j.sibling;return null}function l(R){for(var j=new Map;R!==null;)R.key!==null?j.set(R.key,R):j.set(R.index,R),R=R.sibling;return j}function i(R,j){return R=nn(R,j),R.index=0,R.sibling=null,R}function r(R,j,D){return R.index=D,e?(D=R.alternate,D!==null?(D=D.index,D<j?(R.flags|=67108866,j):D):(R.flags|=67108866,j)):(R.flags|=1048576,j)}function d(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function g(R,j,D,$){return j===null||j.tag!==6?(j=cr(D,R.mode,$),j.return=R,j):(j=i(j,D),j.return=R,j)}function k(R,j,D,$){var ue=D.type;return ue===N?q(R,j,D.props.children,$,D.key):j!==null&&(j.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ae&&ll(ue)===j.type)?(j=i(j,D.props),Sa(j,D),j.return=R,j):(j=ws(D.type,D.key,D.props,null,R.mode,$),Sa(j,D),j.return=R,j)}function M(R,j,D,$){return j===null||j.tag!==4||j.stateNode.containerInfo!==D.containerInfo||j.stateNode.implementation!==D.implementation?(j=fr(D,R.mode,$),j.return=R,j):(j=i(j,D.children||[]),j.return=R,j)}function q(R,j,D,$,ue){return j===null||j.tag!==7?(j=Wn(D,R.mode,$,ue),j.return=R,j):(j=i(j,D),j.return=R,j)}function Z(R,j,D){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=cr(""+j,R.mode,D),j.return=R,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case z:return D=ws(j.type,j.key,j.props,null,R.mode,D),Sa(D,j),D.return=R,D;case S:return j=fr(j,R.mode,D),j.return=R,j;case ae:return j=ll(j),Z(R,j,D)}if(he(j)||fe(j))return j=Wn(j,R.mode,D,null),j.return=R,j;if(typeof j.then=="function")return Z(R,_s(j),D);if(j.$$typeof===G)return Z(R,Ns(R,j),D);Cs(R,j)}return null}function L(R,j,D,$){var ue=j!==null?j.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ue!==null?null:g(R,j,""+D,$);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case z:return D.key===ue?k(R,j,D,$):null;case S:return D.key===ue?M(R,j,D,$):null;case ae:return D=ll(D),L(R,j,D,$)}if(he(D)||fe(D))return ue!==null?null:q(R,j,D,$,null);if(typeof D.then=="function")return L(R,j,_s(D),$);if(D.$$typeof===G)return L(R,j,Ns(R,D),$);Cs(R,D)}return null}function U(R,j,D,$,ue){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return R=R.get(D)||null,g(j,R,""+$,ue);if(typeof $=="object"&&$!==null){switch($.$$typeof){case z:return R=R.get($.key===null?D:$.key)||null,k(j,R,$,ue);case S:return R=R.get($.key===null?D:$.key)||null,M(j,R,$,ue);case ae:return $=ll($),U(R,j,D,$,ue)}if(he($)||fe($))return R=R.get(D)||null,q(j,R,$,ue,null);if(typeof $.then=="function")return U(R,j,D,_s($),ue);if($.$$typeof===G)return U(R,j,D,Ns(j,$),ue);Cs(j,$)}return null}function se(R,j,D,$){for(var ue=null,je=null,ie=j,be=j=0,ke=null;ie!==null&&be<D.length;be++){ie.index>be?(ke=ie,ie=null):ke=ie.sibling;var Te=L(R,ie,D[be],$);if(Te===null){ie===null&&(ie=ke);break}e&&ie&&Te.alternate===null&&t(R,ie),j=r(Te,j,be),je===null?ue=Te:je.sibling=Te,je=Te,ie=ke}if(be===D.length)return n(R,ie),Ee&&ln(R,be),ue;if(ie===null){for(;be<D.length;be++)ie=Z(R,D[be],$),ie!==null&&(j=r(ie,j,be),je===null?ue=ie:je.sibling=ie,je=ie);return Ee&&ln(R,be),ue}for(ie=l(ie);be<D.length;be++)ke=U(ie,R,be,D[be],$),ke!==null&&(e&&ke.alternate!==null&&ie.delete(ke.key===null?be:ke.key),j=r(ke,j,be),je===null?ue=ke:je.sibling=ke,je=ke);return e&&ie.forEach(function(Yn){return t(R,Yn)}),Ee&&ln(R,be),ue}function ce(R,j,D,$){if(D==null)throw Error(o(151));for(var ue=null,je=null,ie=j,be=j=0,ke=null,Te=D.next();ie!==null&&!Te.done;be++,Te=D.next()){ie.index>be?(ke=ie,ie=null):ke=ie.sibling;var Yn=L(R,ie,Te.value,$);if(Yn===null){ie===null&&(ie=ke);break}e&&ie&&Yn.alternate===null&&t(R,ie),j=r(Yn,j,be),je===null?ue=Yn:je.sibling=Yn,je=Yn,ie=ke}if(Te.done)return n(R,ie),Ee&&ln(R,be),ue;if(ie===null){for(;!Te.done;be++,Te=D.next())Te=Z(R,Te.value,$),Te!==null&&(j=r(Te,j,be),je===null?ue=Te:je.sibling=Te,je=Te);return Ee&&ln(R,be),ue}for(ie=l(ie);!Te.done;be++,Te=D.next())Te=U(ie,R,be,Te.value,$),Te!==null&&(e&&Te.alternate!==null&&ie.delete(Te.key===null?be:Te.key),j=r(Te,j,be),je===null?ue=Te:je.sibling=Te,je=Te);return e&&ie.forEach(function(ax){return t(R,ax)}),Ee&&ln(R,be),ue}function Me(R,j,D,$){if(typeof D=="object"&&D!==null&&D.type===N&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case z:e:{for(var ue=D.key;j!==null;){if(j.key===ue){if(ue=D.type,ue===N){if(j.tag===7){n(R,j.sibling),$=i(j,D.props.children),$.return=R,R=$;break e}}else if(j.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ae&&ll(ue)===j.type){n(R,j.sibling),$=i(j,D.props),Sa($,D),$.return=R,R=$;break e}n(R,j);break}else t(R,j);j=j.sibling}D.type===N?($=Wn(D.props.children,R.mode,$,D.key),$.return=R,R=$):($=ws(D.type,D.key,D.props,null,R.mode,$),Sa($,D),$.return=R,R=$)}return d(R);case S:e:{for(ue=D.key;j!==null;){if(j.key===ue)if(j.tag===4&&j.stateNode.containerInfo===D.containerInfo&&j.stateNode.implementation===D.implementation){n(R,j.sibling),$=i(j,D.children||[]),$.return=R,R=$;break e}else{n(R,j);break}else t(R,j);j=j.sibling}$=fr(D,R.mode,$),$.return=R,R=$}return d(R);case ae:return D=ll(D),Me(R,j,D,$)}if(he(D))return se(R,j,D,$);if(fe(D)){if(ue=fe(D),typeof ue!="function")throw Error(o(150));return D=ue.call(D),ce(R,j,D,$)}if(typeof D.then=="function")return Me(R,j,_s(D),$);if(D.$$typeof===G)return Me(R,j,Ns(R,D),$);Cs(R,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,j!==null&&j.tag===6?(n(R,j.sibling),$=i(j,D),$.return=R,R=$):(n(R,j),$=cr(D,R.mode,$),$.return=R,R=$),d(R)):n(R,j)}return function(R,j,D,$){try{va=0;var ue=Me(R,j,D,$);return Bl=null,ue}catch(ie){if(ie===Ll||ie===Ts)throw ie;var je=wt(29,ie,null,R.mode);return je.lanes=$,je.return=R,je}finally{}}}var sl=Hc(!0),qc=Hc(!1),jn=!1;function kr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Er(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 Tn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function An(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ae&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=Ss(e),kc(e,null,n),t}return vs(e,l,t,n),Ss(e)}function wa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Ro(e,n)}}function Nr(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var i=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?i=r=d:r=r.next=d,n=n.next}while(n!==null);r===null?i=r=t:r=r.next=t}else i=r=t;n={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var jr=!1;function ka(){if(jr){var e=Ml;if(e!==null)throw e}}function Ea(e,t,n,l){jr=!1;var i=e.updateQueue;jn=!1;var r=i.firstBaseUpdate,d=i.lastBaseUpdate,g=i.shared.pending;if(g!==null){i.shared.pending=null;var k=g,M=k.next;k.next=null,d===null?r=M:d.next=M,d=k;var q=e.alternate;q!==null&&(q=q.updateQueue,g=q.lastBaseUpdate,g!==d&&(g===null?q.firstBaseUpdate=M:g.next=M,q.lastBaseUpdate=k))}if(r!==null){var Z=i.baseState;d=0,q=M=k=null,g=r;do{var L=g.lane&-536870913,U=L!==g.lane;if(U?(we&L)===L:(l&L)===L){L!==0&&L===Dl&&(jr=!0),q!==null&&(q=q.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var se=e,ce=g;L=t;var Me=n;switch(ce.tag){case 1:if(se=ce.payload,typeof se=="function"){Z=se.call(Me,Z,L);break e}Z=se;break e;case 3:se.flags=se.flags&-65537|128;case 0:if(se=ce.payload,L=typeof se=="function"?se.call(Me,Z,L):se,L==null)break e;Z=b({},Z,L);break e;case 2:jn=!0}}L=g.callback,L!==null&&(e.flags|=64,U&&(e.flags|=8192),U=i.callbacks,U===null?i.callbacks=[L]:U.push(L))}else U={lane:L,tag:g.tag,payload:g.payload,callback:g.callback,next:null},q===null?(M=q=U,k=Z):q=q.next=U,d|=L;if(g=g.next,g===null){if(g=i.shared.pending,g===null)break;U=g,g=U.next,U.next=null,i.lastBaseUpdate=U,i.shared.pending=null}}while(!0);q===null&&(k=Z),i.baseState=k,i.firstBaseUpdate=M,i.lastBaseUpdate=q,r===null&&(i.shared.lanes=0),On|=d,e.lanes=d,e.memoizedState=Z}}function Gc(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function $c(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Gc(n[e],t)}var Ul=w(null),Rs=w(0);function Yc(e,t){e=hn,Q(Rs,e),Q(Ul,t),hn=e|t.baseLanes}function Tr(){Q(Rs,hn),Q(Ul,Ul.current)}function Ar(){hn=Rs.current,B(Ul),B(Rs)}var kt=w(null),Ut=null;function _n(e){var t=e.alternate;Q(Xe,Xe.current&1),Q(kt,e),Ut===null&&(t===null||Ul.current!==null||t.memoizedState!==null)&&(Ut=e)}function _r(e){Q(Xe,Xe.current),Q(kt,e),Ut===null&&(Ut=e)}function Zc(e){e.tag===22?(Q(Xe,Xe.current),Q(kt,e),Ut===null&&(Ut=e)):Cn()}function Cn(){Q(Xe,Xe.current),Q(kt,kt.current)}function Et(e){B(kt),Ut===e&&(Ut=null),B(Xe)}var Xe=w(0);function zs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Mu(n)||Lu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rn=0,ye=null,Oe=null,Fe=null,Os=!1,Hl=!1,il=!1,Ds=0,Na=0,ql=null,Fh=0;function Ye(){throw Error(o(321))}function Cr(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!St(e[n],t[n]))return!1;return!0}function Rr(e,t,n,l,i,r){return rn=r,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,E.H=e===null||e.memoizedState===null?Af:Qr,il=!1,r=n(l,i),il=!1,Hl&&(r=Qc(t,n,l,i)),Xc(e),r}function Xc(e){E.H=Aa;var t=Oe!==null&&Oe.next!==null;if(rn=0,Fe=Oe=ye=null,Os=!1,Na=0,ql=null,t)throw Error(o(300));e===null||Je||(e=e.dependencies,e!==null&&Es(e)&&(Je=!0))}function Qc(e,t,n,l){ye=e;var i=0;do{if(Hl&&(ql=null),Na=0,Hl=!1,25<=i)throw Error(o(301));if(i+=1,Fe=Oe=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}E.H=_f,r=t(n,l)}while(Hl);return r}function Jh(){var e=E.H,t=e.useState()[0];return t=typeof t.then=="function"?ja(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(ye.flags|=1024),t}function zr(){var e=Ds!==0;return Ds=0,e}function Or(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Dr(e){if(Os){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Os=!1}rn=0,Fe=Oe=ye=null,Hl=!1,Na=Ds=0,ql=null}function ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?ye.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Qe(){if(Oe===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Fe===null?ye.memoizedState:Fe.next;if(t!==null)Fe=t,Oe=e;else{if(e===null)throw ye.alternate===null?Error(o(467)):Error(o(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Fe===null?ye.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function Ms(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ja(e){var t=Na;return Na+=1,ql===null&&(ql=[]),e=Lc(ql,e,t),t=ye,(Fe===null?t.memoizedState:Fe.next)===null&&(t=t.alternate,E.H=t===null||t.memoizedState===null?Af:Qr),e}function Ls(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ja(e);if(e.$$typeof===G)return lt(e)}throw Error(o(438,String(e)))}function Mr(e){var t=null,n=ye.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=ye.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Ms(),ye.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=le;return t.index++,n}function un(e,t){return typeof t=="function"?t(e):t}function Bs(e){var t=Qe();return Lr(t,Oe,e)}function Lr(e,t,n){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=n;var i=e.baseQueue,r=l.pending;if(r!==null){if(i!==null){var d=i.next;i.next=r.next,r.next=d}t.baseQueue=i=r,l.pending=null}if(r=e.baseState,i===null)e.memoizedState=r;else{t=i.next;var g=d=null,k=null,M=t,q=!1;do{var Z=M.lane&-536870913;if(Z!==M.lane?(we&Z)===Z:(rn&Z)===Z){var L=M.revertLane;if(L===0)k!==null&&(k=k.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),Z===Dl&&(q=!0);else if((rn&L)===L){M=M.next,L===Dl&&(q=!0);continue}else Z={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},k===null?(g=k=Z,d=r):k=k.next=Z,ye.lanes|=L,On|=L;Z=M.action,il&&n(r,Z),r=M.hasEagerState?M.eagerState:n(r,Z)}else L={lane:Z,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},k===null?(g=k=L,d=r):k=k.next=L,ye.lanes|=Z,On|=Z;M=M.next}while(M!==null&&M!==t);if(k===null?d=r:k.next=g,!St(r,e.memoizedState)&&(Je=!0,q&&(n=Ml,n!==null)))throw n;e.memoizedState=r,e.baseState=d,e.baseQueue=k,l.lastRenderedState=r}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Br(e){var t=Qe(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var l=n.dispatch,i=n.pending,r=t.memoizedState;if(i!==null){n.pending=null;var d=i=i.next;do r=e(r,d.action),d=d.next;while(d!==i);St(r,t.memoizedState)||(Je=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),n.lastRenderedState=r}return[r,l]}function Vc(e,t,n){var l=ye,i=Qe(),r=Ee;if(r){if(n===void 0)throw Error(o(407));n=n()}else n=t();var d=!St((Oe||i).memoizedState,n);if(d&&(i.memoizedState=n,Je=!0),i=i.queue,qr(Kc.bind(null,l,i,e),[e]),i.getSnapshot!==t||d||Fe!==null&&Fe.memoizedState.tag&1){if(l.flags|=2048,Gl(9,{destroy:void 0},Jc.bind(null,l,i,n,t),null),Ue===null)throw Error(o(349));r||(rn&127)!==0||Fc(l,t,n)}return n}function Fc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t=Ms(),ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Jc(e,t,n,l){t.value=n,t.getSnapshot=l,Ic(t)&&Wc(e)}function Kc(e,t,n){return n(function(){Ic(t)&&Wc(e)})}function Ic(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!St(e,n)}catch{return!0}}function Wc(e){var t=In(e,2);t!==null&&xt(t,e,2)}function Ur(e){var t=ot();if(typeof e=="function"){var n=e;if(e=n(),il){bn(!0);try{n()}finally{bn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:e},t}function Pc(e,t,n,l){return e.baseState=n,Lr(e,Oe,typeof l=="function"?l:un)}function Kh(e,t,n,l,i){if(qs(e))throw Error(o(485));if(e=t.action,e!==null){var r={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){r.listeners.push(d)}};E.T!==null?n(!0):r.isTransition=!1,l(r),n=t.pending,n===null?(r.next=t.pending=r,ef(t,r)):(r.next=n.next,t.pending=n.next=r)}}function ef(e,t){var n=t.action,l=t.payload,i=e.state;if(t.isTransition){var r=E.T,d={};E.T=d;try{var g=n(i,l),k=E.S;k!==null&&k(d,g),tf(e,t,g)}catch(M){Hr(e,t,M)}finally{r!==null&&d.types!==null&&(r.types=d.types),E.T=r}}else try{r=n(i,l),tf(e,t,r)}catch(M){Hr(e,t,M)}}function tf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){nf(e,t,l)},function(l){return Hr(e,t,l)}):nf(e,t,n)}function nf(e,t,n){t.status="fulfilled",t.value=n,lf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ef(e,n)))}function Hr(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,lf(t),t=t.next;while(t!==l)}e.action=null}function lf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function af(e,t){return t}function sf(e,t){if(Ee){var n=Ue.formState;if(n!==null){e:{var l=ye;if(Ee){if(qe){t:{for(var i=qe,r=Bt;i.nodeType!==8;){if(!r){i=null;break t}if(i=Ht(i.nextSibling),i===null){i=null;break t}}r=i.data,i=r==="F!"||r==="F"?i:null}if(i){qe=Ht(i.nextSibling),l=i.data==="F!";break e}}En(l)}l=!1}l&&(t=n[0])}}return n=ot(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:af,lastRenderedState:t},n.queue=l,n=Nf.bind(null,ye,l),l.dispatch=n,l=Ur(!1),r=Xr.bind(null,ye,!1,l.queue),l=ot(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,n=Kh.bind(null,ye,i,r,n),i.dispatch=n,l.memoizedState=e,[t,n,!1]}function rf(e){var t=Qe();return uf(t,Oe,e)}function uf(e,t,n){if(t=Lr(e,t,af)[0],e=Bs(un)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ja(t)}catch(d){throw d===Ll?Ts:d}else l=t;t=Qe();var i=t.queue,r=i.dispatch;return n!==t.memoizedState&&(ye.flags|=2048,Gl(9,{destroy:void 0},Ih.bind(null,i,n),null)),[l,r,e]}function Ih(e,t){e.action=t}function of(e){var t=Qe(),n=Oe;if(n!==null)return uf(t,n,e);Qe(),t=t.memoizedState,n=Qe();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Gl(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=ye.updateQueue,t===null&&(t=Ms(),ye.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function cf(){return Qe().memoizedState}function Us(e,t,n,l){var i=ot();ye.flags|=e,i.memoizedState=Gl(1|t,{destroy:void 0},n,l===void 0?null:l)}function Hs(e,t,n,l){var i=Qe();l=l===void 0?null:l;var r=i.memoizedState.inst;Oe!==null&&l!==null&&Cr(l,Oe.memoizedState.deps)?i.memoizedState=Gl(t,r,n,l):(ye.flags|=e,i.memoizedState=Gl(1|t,r,n,l))}function ff(e,t){Us(8390656,8,e,t)}function qr(e,t){Hs(2048,8,e,t)}function Wh(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=Ms(),ye.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function df(e){var t=Qe().memoizedState;return Wh({ref:t,nextImpl:e}),function(){if((Ae&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function mf(e,t){return Hs(4,2,e,t)}function pf(e,t){return Hs(4,4,e,t)}function hf(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function gf(e,t,n){n=n!=null?n.concat([e]):null,Hs(4,4,hf.bind(null,t,e),n)}function Gr(){}function xf(e,t){var n=Qe();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Cr(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function yf(e,t){var n=Qe();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Cr(t,l[1]))return l[0];if(l=e(),il){bn(!0);try{e()}finally{bn(!1)}}return n.memoizedState=[l,t],l}function $r(e,t,n){return n===void 0||(rn&1073741824)!==0&&(we&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=bd(),ye.lanes|=e,On|=e,n)}function bf(e,t,n,l){return St(n,t)?n:Ul.current!==null?(e=$r(e,n,l),St(e,t)||(Je=!0),e):(rn&42)===0||(rn&1073741824)!==0&&(we&261930)===0?(Je=!0,e.memoizedState=n):(e=bd(),ye.lanes|=e,On|=e,t)}function vf(e,t,n,l,i){var r=Y.p;Y.p=r!==0&&8>r?r:8;var d=E.T,g={};E.T=g,Xr(e,!1,t,n);try{var k=i(),M=E.S;if(M!==null&&M(g,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){var q=Vh(k,l);Ta(e,t,q,Tt(e))}else Ta(e,t,l,Tt(e))}catch(Z){Ta(e,t,{then:function(){},status:"rejected",reason:Z},Tt())}finally{Y.p=r,d!==null&&g.types!==null&&(d.types=g.types),E.T=d}}function Ph(){}function Yr(e,t,n,l){if(e.tag!==5)throw Error(o(476));var i=Sf(e).queue;vf(e,i,t,I,n===null?Ph:function(){return wf(e),n(l)})}function Sf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:I},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function wf(e){var t=Sf(e);t.next===null&&(t=e.alternate.memoizedState),Ta(e,t.next.queue,{},Tt())}function Zr(){return lt(Za)}function kf(){return Qe().memoizedState}function Ef(){return Qe().memoizedState}function eg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Tt();e=Tn(n);var l=An(t,e,n);l!==null&&(xt(l,t,n),wa(l,t,n)),t={cache:br()},e.payload=t;return}t=t.return}}function tg(e,t,n){var l=Tt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},qs(e)?jf(t,n):(n=ur(e,t,n,l),n!==null&&(xt(n,e,l),Tf(n,t,l)))}function Nf(e,t,n){var l=Tt();Ta(e,t,n,l)}function Ta(e,t,n,l){var i={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(qs(e))jf(t,i);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var d=t.lastRenderedState,g=r(d,n);if(i.hasEagerState=!0,i.eagerState=g,St(g,d))return vs(e,t,i,0),Ue===null&&bs(),!1}catch{}finally{}if(n=ur(e,t,i,l),n!==null)return xt(n,e,l),Tf(n,t,l),!0}return!1}function Xr(e,t,n,l){if(l={lane:2,revertLane:ku(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},qs(e)){if(t)throw Error(o(479))}else t=ur(e,n,l,2),t!==null&&xt(t,e,2)}function qs(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function jf(e,t){Hl=Os=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Tf(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Ro(e,n)}}var Aa={readContext:lt,use:Ls,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};Aa.useEffectEvent=Ye;var Af={readContext:lt,use:Ls,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:ff,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Us(4194308,4,hf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Us(4194308,4,e,t)},useInsertionEffect:function(e,t){Us(4,2,e,t)},useMemo:function(e,t){var n=ot();t=t===void 0?null:t;var l=e();if(il){bn(!0);try{e()}finally{bn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=ot();if(n!==void 0){var i=n(t);if(il){bn(!0);try{n(t)}finally{bn(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=tg.bind(null,ye,e),[l.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:function(e){e=Ur(e);var t=e.queue,n=Nf.bind(null,ye,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Gr,useDeferredValue:function(e,t){var n=ot();return $r(n,e,t)},useTransition:function(){var e=Ur(!1);return e=vf.bind(null,ye,e.queue,!0,!1),ot().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=ye,i=ot();if(Ee){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Ue===null)throw Error(o(349));(we&127)!==0||Fc(l,t,n)}i.memoizedState=n;var r={value:n,getSnapshot:t};return i.queue=r,ff(Kc.bind(null,l,r,e),[e]),l.flags|=2048,Gl(9,{destroy:void 0},Jc.bind(null,l,r,n,t),null),n},useId:function(){var e=ot(),t=Ue.identifierPrefix;if(Ee){var n=Vt,l=Qt;n=(l&~(1<<32-vt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Ds++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Fh++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Zr,useFormState:sf,useActionState:sf,useOptimistic:function(e){var t=ot();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Xr.bind(null,ye,!0,n),n.dispatch=t,[e,t]},useMemoCache:Mr,useCacheRefresh:function(){return ot().memoizedState=eg.bind(null,ye)},useEffectEvent:function(e){var t=ot(),n={impl:e};return t.memoizedState=n,function(){if((Ae&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Qr={readContext:lt,use:Ls,useCallback:xf,useContext:lt,useEffect:qr,useImperativeHandle:gf,useInsertionEffect:mf,useLayoutEffect:pf,useMemo:yf,useReducer:Bs,useRef:cf,useState:function(){return Bs(un)},useDebugValue:Gr,useDeferredValue:function(e,t){var n=Qe();return bf(n,Oe.memoizedState,e,t)},useTransition:function(){var e=Bs(un)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:ja(e),t]},useSyncExternalStore:Vc,useId:kf,useHostTransitionStatus:Zr,useFormState:rf,useActionState:rf,useOptimistic:function(e,t){var n=Qe();return Pc(n,Oe,e,t)},useMemoCache:Mr,useCacheRefresh:Ef};Qr.useEffectEvent=df;var _f={readContext:lt,use:Ls,useCallback:xf,useContext:lt,useEffect:qr,useImperativeHandle:gf,useInsertionEffect:mf,useLayoutEffect:pf,useMemo:yf,useReducer:Br,useRef:cf,useState:function(){return Br(un)},useDebugValue:Gr,useDeferredValue:function(e,t){var n=Qe();return Oe===null?$r(n,e,t):bf(n,Oe.memoizedState,e,t)},useTransition:function(){var e=Br(un)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:ja(e),t]},useSyncExternalStore:Vc,useId:kf,useHostTransitionStatus:Zr,useFormState:of,useActionState:of,useOptimistic:function(e,t){var n=Qe();return Oe!==null?Pc(n,Oe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Mr,useCacheRefresh:Ef};_f.useEffectEvent=df;function Vr(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Fr={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Tt(),i=Tn(l);i.payload=t,n!=null&&(i.callback=n),t=An(e,i,l),t!==null&&(xt(t,e,l),wa(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Tt(),i=Tn(l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=An(e,i,l),t!==null&&(xt(t,e,l),wa(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Tt(),l=Tn(n);l.tag=2,t!=null&&(l.callback=t),t=An(e,l,n),t!==null&&(xt(t,e,n),wa(t,e,n))}};function Cf(e,t,n,l,i,r,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,r,d):t.prototype&&t.prototype.isPureReactComponent?!pa(n,l)||!pa(i,r):!0}function Rf(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Fr.enqueueReplaceState(t,t.state,null)}function rl(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function zf(e){ys(e)}function Of(e){console.error(e)}function Df(e){ys(e)}function Gs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Mf(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Jr(e,t,n){return n=Tn(n),n.tag=3,n.payload={element:null},n.callback=function(){Gs(e,t)},n}function Lf(e){return e=Tn(e),e.tag=3,e}function Bf(e,t,n,l){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var r=l.value;e.payload=function(){return i(r)},e.callback=function(){Mf(t,n,l)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Mf(t,n,l),typeof i!="function"&&(Dn===null?Dn=new Set([this]):Dn.add(this));var g=l.stack;this.componentDidCatch(l.value,{componentStack:g!==null?g:""})})}function ng(e,t,n,l,i){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Ol(t,n,i,!0),n=kt.current,n!==null){switch(n.tag){case 31:case 13:return Ut===null?Ps():n.alternate===null&&Ze===0&&(Ze=3),n.flags&=-257,n.flags|=65536,n.lanes=i,l===As?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),vu(e,l,i)),!1;case 22:return n.flags|=65536,l===As?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),vu(e,l,i)),!1}throw Error(o(435,n.tag))}return vu(e,l,i),Ps(),!1}if(Ee)return t=kt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==pr&&(e=Error(o(422),{cause:l}),xa(Dt(e,n)))):(l!==pr&&(t=Error(o(423),{cause:l}),xa(Dt(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=Dt(l,n),i=Jr(e.stateNode,l,i),Nr(e,i),Ze!==4&&(Ze=2)),!1;var r=Error(o(520),{cause:l});if(r=Dt(r,n),La===null?La=[r]:La.push(r),Ze!==4&&(Ze=2),t===null)return!0;l=Dt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Jr(n.stateNode,l,e),Nr(n,e),!1;case 1:if(t=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Dn===null||!Dn.has(r))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Lf(i),Bf(i,e,n,l),Nr(n,i),!1}n=n.return}while(n!==null);return!1}var Kr=Error(o(461)),Je=!1;function at(e,t,n,l){t.child=e===null?qc(t,null,n,l):sl(t,e.child,n,l)}function Uf(e,t,n,l,i){n=n.render;var r=t.ref;if("ref"in l){var d={};for(var g in l)g!=="ref"&&(d[g]=l[g])}else d=l;return tl(t),l=Rr(e,t,n,d,r,i),g=zr(),e!==null&&!Je?(Or(e,t,i),on(e,t,i)):(Ee&&g&&dr(t),t.flags|=1,at(e,t,l,i),t.child)}function Hf(e,t,n,l,i){if(e===null){var r=n.type;return typeof r=="function"&&!or(r)&&r.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=r,qf(e,t,r,l,i)):(e=ws(n.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!au(e,i)){var d=r.memoizedProps;if(n=n.compare,n=n!==null?n:pa,n(d,l)&&e.ref===t.ref)return on(e,t,i)}return t.flags|=1,e=nn(r,l),e.ref=t.ref,e.return=t,t.child=e}function qf(e,t,n,l,i){if(e!==null){var r=e.memoizedProps;if(pa(r,l)&&e.ref===t.ref)if(Je=!1,t.pendingProps=l=r,au(e,i))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,on(e,t,i)}return Ir(e,t,n,l,i)}function Gf(e,t,n,l){var i=l.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|n:n,e!==null){for(l=t.child=e.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~r}else l=0,t.child=null;return $f(e,t,r,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&js(t,r!==null?r.cachePool:null),r!==null?Yc(t,r):Tr(),Zc(t);else return l=t.lanes=536870912,$f(e,t,r!==null?r.baseLanes|n:n,n,l)}else r!==null?(js(t,r.cachePool),Yc(t,r),Cn(),t.memoizedState=null):(e!==null&&js(t,null),Tr(),Cn());return at(e,t,i,n),t.child}function _a(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function $f(e,t,n,l,i){var r=Sr();return r=r===null?null:{parent:Ve._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&js(t,null),Tr(),Zc(t),e!==null&&Ol(e,t,l,!0),t.childLanes=i,null}function $s(e,t){return t=Zs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Yf(e,t,n){return sl(t,e.child,null,n),e=$s(t,t.pendingProps),e.flags|=2,Et(t),t.memoizedState=null,e}function lg(e,t,n){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ee){if(l.mode==="hidden")return e=$s(t,l),t.lanes=536870912,_a(null,e);if(_r(t),(e=qe)?(e=tm(e,Bt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wn!==null?{id:Qt,overflow:Vt}:null,retryLane:536870912,hydrationErrors:null},n=Nc(e),n.return=t,t.child=n,nt=t,qe=null)):e=null,e===null)throw En(t);return t.lanes=536870912,null}return $s(t,l)}var r=e.memoizedState;if(r!==null){var d=r.dehydrated;if(_r(t),i)if(t.flags&256)t.flags&=-257,t=Yf(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Je||Ol(e,t,n,!1),i=(n&e.childLanes)!==0,Je||i){if(l=Ue,l!==null&&(d=zo(l,n),d!==0&&d!==r.retryLane))throw r.retryLane=d,In(e,d),xt(l,e,d),Kr;Ps(),t=Yf(e,t,n)}else e=r.treeContext,qe=Ht(d.nextSibling),nt=t,Ee=!0,kn=null,Bt=!1,e!==null&&Ac(t,e),t=$s(t,l),t.flags|=4096;return t}return e=nn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ys(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Ir(e,t,n,l,i){return tl(t),n=Rr(e,t,n,l,void 0,i),l=zr(),e!==null&&!Je?(Or(e,t,i),on(e,t,i)):(Ee&&l&&dr(t),t.flags|=1,at(e,t,n,i),t.child)}function Zf(e,t,n,l,i,r){return tl(t),t.updateQueue=null,n=Qc(t,l,n,i),Xc(e),l=zr(),e!==null&&!Je?(Or(e,t,r),on(e,t,r)):(Ee&&l&&dr(t),t.flags|=1,at(e,t,n,r),t.child)}function Xf(e,t,n,l,i){if(tl(t),t.stateNode===null){var r=_l,d=n.contextType;typeof d=="object"&&d!==null&&(r=lt(d)),r=new n(l,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Fr,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=l,r.state=t.memoizedState,r.refs={},kr(t),d=n.contextType,r.context=typeof d=="object"&&d!==null?lt(d):_l,r.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(Vr(t,n,d,l),r.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(d=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),d!==r.state&&Fr.enqueueReplaceState(r,r.state,null),Ea(t,l,r,i),ka(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){r=t.stateNode;var g=t.memoizedProps,k=rl(n,g);r.props=k;var M=r.context,q=n.contextType;d=_l,typeof q=="object"&&q!==null&&(d=lt(q));var Z=n.getDerivedStateFromProps;q=typeof Z=="function"||typeof r.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,q||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(g||M!==d)&&Rf(t,r,l,d),jn=!1;var L=t.memoizedState;r.state=L,Ea(t,l,r,i),ka(),M=t.memoizedState,g||L!==M||jn?(typeof Z=="function"&&(Vr(t,n,Z,l),M=t.memoizedState),(k=jn||Cf(t,n,k,l,L,M,d))?(q||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=M),r.props=l,r.state=M,r.context=d,l=k):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{r=t.stateNode,Er(e,t),d=t.memoizedProps,q=rl(n,d),r.props=q,Z=t.pendingProps,L=r.context,M=n.contextType,k=_l,typeof M=="object"&&M!==null&&(k=lt(M)),g=n.getDerivedStateFromProps,(M=typeof g=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(d!==Z||L!==k)&&Rf(t,r,l,k),jn=!1,L=t.memoizedState,r.state=L,Ea(t,l,r,i),ka();var U=t.memoizedState;d!==Z||L!==U||jn||e!==null&&e.dependencies!==null&&Es(e.dependencies)?(typeof g=="function"&&(Vr(t,n,g,l),U=t.memoizedState),(q=jn||Cf(t,n,q,l,L,U,k)||e!==null&&e.dependencies!==null&&Es(e.dependencies))?(M||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(l,U,k),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(l,U,k)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=U),r.props=l,r.state=U,r.context=k,l=q):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),l=!1)}return r=l,Ys(e,t),l=(t.flags&128)!==0,r||l?(r=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&l?(t.child=sl(t,e.child,null,i),t.child=sl(t,null,n,i)):at(e,t,n,i),t.memoizedState=r.state,e=t.child):e=on(e,t,i),e}function Qf(e,t,n,l){return Pn(),t.flags|=256,at(e,t,n,l),t.child}var Wr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pr(e){return{baseLanes:e,cachePool:Dc()}}function eu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=jt),e}function Vf(e,t,n){var l=t.pendingProps,i=!1,r=(t.flags&128)!==0,d;if((d=r)||(d=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),d&&(i=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(i?_n(t):Cn(),(e=qe)?(e=tm(e,Bt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wn!==null?{id:Qt,overflow:Vt}:null,retryLane:536870912,hydrationErrors:null},n=Nc(e),n.return=t,t.child=n,nt=t,qe=null)):e=null,e===null)throw En(t);return Lu(e)?t.lanes=32:t.lanes=536870912,null}var g=l.children;return l=l.fallback,i?(Cn(),i=t.mode,g=Zs({mode:"hidden",children:g},i),l=Wn(l,i,n,null),g.return=t,l.return=t,g.sibling=l,t.child=g,l=t.child,l.memoizedState=Pr(n),l.childLanes=eu(e,d,n),t.memoizedState=Wr,_a(null,l)):(_n(t),tu(t,g))}var k=e.memoizedState;if(k!==null&&(g=k.dehydrated,g!==null)){if(r)t.flags&256?(_n(t),t.flags&=-257,t=nu(e,t,n)):t.memoizedState!==null?(Cn(),t.child=e.child,t.flags|=128,t=null):(Cn(),g=l.fallback,i=t.mode,l=Zs({mode:"visible",children:l.children},i),g=Wn(g,i,n,null),g.flags|=2,l.return=t,g.return=t,l.sibling=g,t.child=l,sl(t,e.child,null,n),l=t.child,l.memoizedState=Pr(n),l.childLanes=eu(e,d,n),t.memoizedState=Wr,t=_a(null,l));else if(_n(t),Lu(g)){if(d=g.nextSibling&&g.nextSibling.dataset,d)var M=d.dgst;d=M,l=Error(o(419)),l.stack="",l.digest=d,xa({value:l,source:null,stack:null}),t=nu(e,t,n)}else if(Je||Ol(e,t,n,!1),d=(n&e.childLanes)!==0,Je||d){if(d=Ue,d!==null&&(l=zo(d,n),l!==0&&l!==k.retryLane))throw k.retryLane=l,In(e,l),xt(d,e,l),Kr;Mu(g)||Ps(),t=nu(e,t,n)}else Mu(g)?(t.flags|=192,t.child=e.child,t=null):(e=k.treeContext,qe=Ht(g.nextSibling),nt=t,Ee=!0,kn=null,Bt=!1,e!==null&&Ac(t,e),t=tu(t,l.children),t.flags|=4096);return t}return i?(Cn(),g=l.fallback,i=t.mode,k=e.child,M=k.sibling,l=nn(k,{mode:"hidden",children:l.children}),l.subtreeFlags=k.subtreeFlags&65011712,M!==null?g=nn(M,g):(g=Wn(g,i,n,null),g.flags|=2),g.return=t,l.return=t,l.sibling=g,t.child=l,_a(null,l),l=t.child,g=e.child.memoizedState,g===null?g=Pr(n):(i=g.cachePool,i!==null?(k=Ve._currentValue,i=i.parent!==k?{parent:k,pool:k}:i):i=Dc(),g={baseLanes:g.baseLanes|n,cachePool:i}),l.memoizedState=g,l.childLanes=eu(e,d,n),t.memoizedState=Wr,_a(e.child,l)):(_n(t),n=e.child,e=n.sibling,n=nn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function tu(e,t){return t=Zs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Zs(e,t){return e=wt(22,e,null,t),e.lanes=0,e}function nu(e,t,n){return sl(t,e.child,null,n),e=tu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ff(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),xr(e.return,t,n)}function lu(e,t,n,l,i,r){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:i,treeForkCount:r}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=n,d.tailMode=i,d.treeForkCount=r)}function Jf(e,t,n){var l=t.pendingProps,i=l.revealOrder,r=l.tail;l=l.children;var d=Xe.current,g=(d&2)!==0;if(g?(d=d&1|2,t.flags|=128):d&=1,Q(Xe,d),at(e,t,l,n),l=Ee?ga:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ff(e,n,t);else if(e.tag===19)Ff(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&zs(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),lu(t,!1,i,n,r,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&zs(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}lu(t,!0,n,null,r,l);break;case"together":lu(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function on(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),On|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ol(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=nn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=nn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function au(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Es(e)))}function ag(e,t,n){switch(t.tag){case 3:Be(t,t.stateNode.containerInfo),Nn(t,Ve,e.memoizedState.cache),Pn();break;case 27:case 5:xe(t);break;case 4:Be(t,t.stateNode.containerInfo);break;case 10:Nn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,_r(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(_n(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Vf(e,t,n):(_n(t),e=on(e,t,n),e!==null?e.sibling:null);_n(t);break;case 19:var i=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(Ol(e,t,n,!1),l=(n&t.childLanes)!==0),i){if(l)return Jf(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Q(Xe,Xe.current),l)break;return null;case 22:return t.lanes=0,Gf(e,t,n,t.pendingProps);case 24:Nn(t,Ve,e.memoizedState.cache)}return on(e,t,n)}function Kf(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!au(e,n)&&(t.flags&128)===0)return Je=!1,ag(e,t,n);Je=(e.flags&131072)!==0}else Je=!1,Ee&&(t.flags&1048576)!==0&&Tc(t,ga,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=ll(t.elementType),t.type=e,typeof e=="function")or(e)?(l=rl(e,l),t.tag=1,t=Xf(null,t,e,l,n)):(t.tag=0,t=Ir(null,t,e,l,n));else{if(e!=null){var i=e.$$typeof;if(i===F){t.tag=11,t=Uf(null,t,e,l,n);break e}else if(i===K){t.tag=14,t=Hf(null,t,e,l,n);break e}}throw t=me(e)||e,Error(o(306,t,""))}}return t;case 0:return Ir(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,i=rl(l,t.pendingProps),Xf(e,t,l,i,n);case 3:e:{if(Be(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var r=t.memoizedState;i=r.element,Er(e,t),Ea(t,l,null,n);var d=t.memoizedState;if(l=d.cache,Nn(t,Ve,l),l!==r.cache&&yr(t,[Ve],n,!0),ka(),l=d.element,r.isDehydrated)if(r={element:l,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=Qf(e,t,l,n);break e}else if(l!==i){i=Dt(Error(o(424)),t),xa(i),t=Qf(e,t,l,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(qe=Ht(e.firstChild),nt=t,Ee=!0,kn=null,Bt=!0,n=qc(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Pn(),l===i){t=on(e,t,n);break e}at(e,t,l,n)}t=t.child}return t;case 26:return Ys(e,t),e===null?(n=rm(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ee||(n=t.type,e=t.pendingProps,l=ii(re.current).createElement(n),l[tt]=t,l[ft]=e,st(l,n,e),Pe(l),t.stateNode=l):t.memoizedState=rm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return xe(t),e===null&&Ee&&(l=t.stateNode=am(t.type,t.pendingProps,re.current),nt=t,Bt=!0,i=qe,Un(t.type)?(Bu=i,qe=Ht(l.firstChild)):qe=i),at(e,t,t.pendingProps.children,n),Ys(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((i=l=qe)&&(l=Dg(l,t.type,t.pendingProps,Bt),l!==null?(t.stateNode=l,nt=t,qe=Ht(l.firstChild),Bt=!1,i=!0):i=!1),i||En(t)),xe(t),i=t.type,r=t.pendingProps,d=e!==null?e.memoizedProps:null,l=r.children,zu(i,r)?l=null:d!==null&&zu(i,d)&&(t.flags|=32),t.memoizedState!==null&&(i=Rr(e,t,Jh,null,null,n),Za._currentValue=i),Ys(e,t),at(e,t,l,n),t.child;case 6:return e===null&&Ee&&((e=n=qe)&&(n=Mg(n,t.pendingProps,Bt),n!==null?(t.stateNode=n,nt=t,qe=null,e=!0):e=!1),e||En(t)),null;case 13:return Vf(e,t,n);case 4:return Be(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=sl(t,null,l,n):at(e,t,l,n),t.child;case 11:return Uf(e,t,t.type,t.pendingProps,n);case 7:return at(e,t,t.pendingProps,n),t.child;case 8:return at(e,t,t.pendingProps.children,n),t.child;case 12:return at(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Nn(t,t.type,l.value),at(e,t,l.children,n),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,tl(t),i=lt(i),l=l(i),t.flags|=1,at(e,t,l,n),t.child;case 14:return Hf(e,t,t.type,t.pendingProps,n);case 15:return qf(e,t,t.type,t.pendingProps,n);case 19:return Jf(e,t,n);case 31:return lg(e,t,n);case 22:return Gf(e,t,n,t.pendingProps);case 24:return tl(t),l=lt(Ve),e===null?(i=Sr(),i===null&&(i=Ue,r=br(),i.pooledCache=r,r.refCount++,r!==null&&(i.pooledCacheLanes|=n),i=r),t.memoizedState={parent:l,cache:i},kr(t),Nn(t,Ve,i)):((e.lanes&n)!==0&&(Er(e,t),Ea(t,null,null,n),ka()),i=e.memoizedState,r=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Nn(t,Ve,l)):(l=r.cache,Nn(t,Ve,l),l!==i.cache&&yr(t,[Ve],n,!0))),at(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function cn(e){e.flags|=4}function su(e,t,n,l,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(kd())e.flags|=8192;else throw al=As,wr}else e.flags&=-16777217}function If(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!dm(t))if(kd())e.flags|=8192;else throw al=As,wr}function Xs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?_o():536870912,e.lanes|=t,Xl|=t)}function Ca(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ge(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function sg(e,t,n){var l=t.pendingProps;switch(mr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return Ge(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),sn(Ve),J(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(zl(t)?cn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,hr())),Ge(t),null;case 26:var i=t.type,r=t.memoizedState;return e===null?(cn(t),r!==null?(Ge(t),If(t,r)):(Ge(t),su(t,i,null,l,n))):r?r!==e.memoizedState?(cn(t),Ge(t),If(t,r)):(Ge(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&cn(t),Ge(t),su(t,i,e,l,n)),null;case 27:if(ze(t),n=re.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&cn(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Ge(t),null}e=W.current,zl(t)?_c(t):(e=am(i,l,n),t.stateNode=e,cn(t))}return Ge(t),null;case 5:if(ze(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&cn(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Ge(t),null}if(r=W.current,zl(t))_c(t);else{var d=ii(re.current);switch(r){case 1:r=d.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:r=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":r=d.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":r=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":r=d.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?r.multiple=!0:l.size&&(r.size=l.size);break;default:r=typeof l.is=="string"?d.createElement(i,{is:l.is}):d.createElement(i)}}r[tt]=t,r[ft]=l;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)r.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=r;e:switch(st(r,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&cn(t)}}return Ge(t),su(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&cn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=re.current,zl(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,i=nt,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[tt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Vd(e.nodeValue,n)),e||En(t,!0)}else e=ii(e).createTextNode(l),e[tt]=t,t.stateNode=e}return Ge(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=zl(t),n!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[tt]=t}else Pn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),e=!1}else n=hr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Et(t),t):(Et(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ge(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=zl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[tt]=t}else Pn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),i=!1}else i=hr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Et(t),t):(Et(t),null)}return Et(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),r=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==i&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Xs(t,t.updateQueue),Ge(t),null);case 4:return J(),e===null&&Tu(t.stateNode.containerInfo),Ge(t),null;case 10:return sn(t.type),Ge(t),null;case 19:if(B(Xe),l=t.memoizedState,l===null)return Ge(t),null;if(i=(t.flags&128)!==0,r=l.rendering,r===null)if(i)Ca(l,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=zs(e),r!==null){for(t.flags|=128,Ca(l,!1),e=r.updateQueue,t.updateQueue=e,Xs(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ec(n,e),n=n.sibling;return Q(Xe,Xe.current&1|2),Ee&&ln(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&yt()>Ks&&(t.flags|=128,i=!0,Ca(l,!1),t.lanes=4194304)}else{if(!i)if(e=zs(r),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Xs(t,e),Ca(l,!0),l.tail===null&&l.tailMode==="hidden"&&!r.alternate&&!Ee)return Ge(t),null}else 2*yt()-l.renderingStartTime>Ks&&n!==536870912&&(t.flags|=128,i=!0,Ca(l,!1),t.lanes=4194304);l.isBackwards?(r.sibling=t.child,t.child=r):(e=l.last,e!==null?e.sibling=r:t.child=r,l.last=r)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=yt(),e.sibling=null,n=Xe.current,Q(Xe,i?n&1|2:n&1),Ee&&ln(t,l.treeForkCount),e):(Ge(t),null);case 22:case 23:return Et(t),Ar(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),n=t.updateQueue,n!==null&&Xs(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&B(nl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),sn(Ve),Ge(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function ig(e,t){switch(mr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sn(Ve),J(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ze(t),null;case 31:if(t.memoizedState!==null){if(Et(t),t.alternate===null)throw Error(o(340));Pn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Et(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Pn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Xe),null;case 4:return J(),null;case 10:return sn(t.type),null;case 22:case 23:return Et(t),Ar(),e!==null&&B(nl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return sn(Ve),null;case 25:return null;default:return null}}function Wf(e,t){switch(mr(t),t.tag){case 3:sn(Ve),J();break;case 26:case 27:case 5:ze(t);break;case 4:J();break;case 31:t.memoizedState!==null&&Et(t);break;case 13:Et(t);break;case 19:B(Xe);break;case 10:sn(t.type);break;case 22:case 23:Et(t),Ar(),e!==null&&B(nl);break;case 24:sn(Ve)}}function Ra(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var i=l.next;n=i;do{if((n.tag&e)===e){l=void 0;var r=n.create,d=n.inst;l=r(),d.destroy=l}n=n.next}while(n!==i)}}catch(g){Re(t,t.return,g)}}function Rn(e,t,n){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var r=i.next;l=r;do{if((l.tag&e)===e){var d=l.inst,g=d.destroy;if(g!==void 0){d.destroy=void 0,i=t;var k=n,M=g;try{M()}catch(q){Re(i,k,q)}}}l=l.next}while(l!==r)}}catch(q){Re(t,t.return,q)}}function Pf(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{$c(t,n)}catch(l){Re(e,e.return,l)}}}function ed(e,t,n){n.props=rl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Re(e,t,l)}}function za(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(i){Re(e,t,i)}}function Ft(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(i){Re(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Re(e,t,i)}else n.current=null}function td(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(i){Re(e,e.return,i)}}function iu(e,t,n){try{var l=e.stateNode;Ag(l,e.type,n,t),l[ft]=t}catch(i){Re(e,e.return,i)}}function nd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Un(e.type)||e.tag===4}function ru(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nd(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&&Un(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 uu(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=en));else if(l!==4&&(l===27&&Un(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(uu(e,t,n),e=e.sibling;e!==null;)uu(e,t,n),e=e.sibling}function Qs(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&Un(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Qs(e,t,n),e=e.sibling;e!==null;)Qs(e,t,n),e=e.sibling}function ld(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);st(t,l,n),t[tt]=e,t[ft]=n}catch(r){Re(e,e.return,r)}}var fn=!1,Ke=!1,ou=!1,ad=typeof WeakSet=="function"?WeakSet:Set,et=null;function rg(e,t){if(e=e.containerInfo,Cu=mi,e=hc(e),nr(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var i=l.anchorOffset,r=l.focusNode;l=l.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break e}var d=0,g=-1,k=-1,M=0,q=0,Z=e,L=null;t:for(;;){for(var U;Z!==n||i!==0&&Z.nodeType!==3||(g=d+i),Z!==r||l!==0&&Z.nodeType!==3||(k=d+l),Z.nodeType===3&&(d+=Z.nodeValue.length),(U=Z.firstChild)!==null;)L=Z,Z=U;for(;;){if(Z===e)break t;if(L===n&&++M===i&&(g=d),L===r&&++q===l&&(k=d),(U=Z.nextSibling)!==null)break;Z=L,L=Z.parentNode}Z=U}n=g===-1||k===-1?null:{start:g,end:k}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ru={focusedElem:e,selectionRange:n},mi=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,r=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,n=t,i=r.memoizedProps,r=r.memoizedState,l=n.stateNode;try{var se=rl(n.type,i);e=l.getSnapshotBeforeUpdate(se,r),l.__reactInternalSnapshotBeforeUpdate=e}catch(ce){Re(n,n.return,ce)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Du(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Du(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,et=e;break}et=t.return}}function sd(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:mn(e,n),l&4&&Ra(5,n);break;case 1:if(mn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){Re(n,n.return,d)}else{var i=rl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Re(n,n.return,d)}}l&64&&Pf(n),l&512&&za(n,n.return);break;case 3:if(mn(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{$c(e,t)}catch(d){Re(n,n.return,d)}}break;case 27:t===null&&l&4&&ld(n);case 26:case 5:mn(e,n),t===null&&l&4&&td(n),l&512&&za(n,n.return);break;case 12:mn(e,n);break;case 31:mn(e,n),l&4&&ud(e,n);break;case 13:mn(e,n),l&4&&od(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=gg.bind(null,n),Lg(e,n))));break;case 22:if(l=n.memoizedState!==null||fn,!l){t=t!==null&&t.memoizedState!==null||Ke,i=fn;var r=Ke;fn=l,(Ke=t)&&!r?pn(e,n,(n.subtreeFlags&8772)!==0):mn(e,n),fn=i,Ke=r}break;case 30:break;default:mn(e,n)}}function id(e){var t=e.alternate;t!==null&&(e.alternate=null,id(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Hi(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 $e=null,mt=!1;function dn(e,t,n){for(n=n.child;n!==null;)rd(e,t,n),n=n.sibling}function rd(e,t,n){if(bt&&typeof bt.onCommitFiberUnmount=="function")try{bt.onCommitFiberUnmount(na,n)}catch{}switch(n.tag){case 26:Ke||Ft(n,t),dn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ke||Ft(n,t);var l=$e,i=mt;Un(n.type)&&($e=n.stateNode,mt=!1),dn(e,t,n),Ga(n.stateNode),$e=l,mt=i;break;case 5:Ke||Ft(n,t);case 6:if(l=$e,i=mt,$e=null,dn(e,t,n),$e=l,mt=i,$e!==null)if(mt)try{($e.nodeType===9?$e.body:$e.nodeName==="HTML"?$e.ownerDocument.body:$e).removeChild(n.stateNode)}catch(r){Re(n,t,r)}else try{$e.removeChild(n.stateNode)}catch(r){Re(n,t,r)}break;case 18:$e!==null&&(mt?(e=$e,Pd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Pl(e)):Pd($e,n.stateNode));break;case 4:l=$e,i=mt,$e=n.stateNode.containerInfo,mt=!0,dn(e,t,n),$e=l,mt=i;break;case 0:case 11:case 14:case 15:Rn(2,n,t),Ke||Rn(4,n,t),dn(e,t,n);break;case 1:Ke||(Ft(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&ed(n,t,l)),dn(e,t,n);break;case 21:dn(e,t,n);break;case 22:Ke=(l=Ke)||n.memoizedState!==null,dn(e,t,n),Ke=l;break;default:dn(e,t,n)}}function ud(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pl(e)}catch(n){Re(t,t.return,n)}}}function od(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pl(e)}catch(n){Re(t,t.return,n)}}function ug(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ad),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ad),t;default:throw Error(o(435,e.tag))}}function Vs(e,t){var n=ug(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var i=xg.bind(null,e,l);l.then(i,i)}})}function pt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var i=n[l],r=e,d=t,g=d;e:for(;g!==null;){switch(g.tag){case 27:if(Un(g.type)){$e=g.stateNode,mt=!1;break e}break;case 5:$e=g.stateNode,mt=!1;break e;case 3:case 4:$e=g.stateNode.containerInfo,mt=!0;break e}g=g.return}if($e===null)throw Error(o(160));rd(r,d,i),$e=null,mt=!1,r=i.alternate,r!==null&&(r.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)cd(t,e),t=t.sibling}var $t=null;function cd(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:pt(t,e),ht(e),l&4&&(Rn(3,e,e.return),Ra(3,e),Rn(5,e,e.return));break;case 1:pt(t,e),ht(e),l&512&&(Ke||n===null||Ft(n,n.return)),l&64&&fn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var i=$t;if(pt(t,e),ht(e),l&512&&(Ke||n===null||Ft(n,n.return)),l&4){var r=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(l){case"title":r=i.getElementsByTagName("title")[0],(!r||r[sa]||r[tt]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=i.createElement(l),i.head.insertBefore(r,i.querySelector("head > title"))),st(r,l,n),r[tt]=e,Pe(r),l=r;break e;case"link":var d=cm("link","href",i).get(l+(n.href||""));if(d){for(var g=0;g<d.length;g++)if(r=d[g],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(g,1);break t}}r=i.createElement(l),st(r,l,n),i.head.appendChild(r);break;case"meta":if(d=cm("meta","content",i).get(l+(n.content||""))){for(g=0;g<d.length;g++)if(r=d[g],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(g,1);break t}}r=i.createElement(l),st(r,l,n),i.head.appendChild(r);break;default:throw Error(o(468,l))}r[tt]=e,Pe(r),l=r}e.stateNode=l}else fm(i,e.type,e.stateNode);else e.stateNode=om(i,l,e.memoizedProps);else r!==l?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,l===null?fm(i,e.type,e.stateNode):om(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&iu(e,e.memoizedProps,n.memoizedProps)}break;case 27:pt(t,e),ht(e),l&512&&(Ke||n===null||Ft(n,n.return)),n!==null&&l&4&&iu(e,e.memoizedProps,n.memoizedProps);break;case 5:if(pt(t,e),ht(e),l&512&&(Ke||n===null||Ft(n,n.return)),e.flags&32){i=e.stateNode;try{wl(i,"")}catch(se){Re(e,e.return,se)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,iu(e,i,n!==null?n.memoizedProps:i)),l&1024&&(ou=!0);break;case 6:if(pt(t,e),ht(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(se){Re(e,e.return,se)}}break;case 3:if(oi=null,i=$t,$t=ri(t.containerInfo),pt(t,e),$t=i,ht(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Pl(t.containerInfo)}catch(se){Re(e,e.return,se)}ou&&(ou=!1,fd(e));break;case 4:l=$t,$t=ri(e.stateNode.containerInfo),pt(t,e),ht(e),$t=l;break;case 12:pt(t,e),ht(e);break;case 31:pt(t,e),ht(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Vs(e,l)));break;case 13:pt(t,e),ht(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Js=yt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Vs(e,l)));break;case 22:i=e.memoizedState!==null;var k=n!==null&&n.memoizedState!==null,M=fn,q=Ke;if(fn=M||i,Ke=q||k,pt(t,e),Ke=q,fn=M,ht(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||k||fn||Ke||ul(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){k=n=t;try{if(r=k.stateNode,i)d=r.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{g=k.stateNode;var Z=k.memoizedProps.style,L=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;g.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(se){Re(k,k.return,se)}}}else if(t.tag===6){if(n===null){k=t;try{k.stateNode.nodeValue=i?"":k.memoizedProps}catch(se){Re(k,k.return,se)}}}else if(t.tag===18){if(n===null){k=t;try{var U=k.stateNode;i?em(U,!0):em(k.stateNode,!1)}catch(se){Re(k,k.return,se)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Vs(e,n))));break;case 19:pt(t,e),ht(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Vs(e,l)));break;case 30:break;case 21:break;default:pt(t,e),ht(e)}}function ht(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(nd(l)){n=l;break}l=l.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var i=n.stateNode,r=ru(e);Qs(e,r,i);break;case 5:var d=n.stateNode;n.flags&32&&(wl(d,""),n.flags&=-33);var g=ru(e);Qs(e,g,d);break;case 3:case 4:var k=n.stateNode.containerInfo,M=ru(e);uu(e,M,k);break;default:throw Error(o(161))}}catch(q){Re(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function fd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;fd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function mn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sd(e,t.alternate,t),t=t.sibling}function ul(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Rn(4,t,t.return),ul(t);break;case 1:Ft(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&ed(t,t.return,n),ul(t);break;case 27:Ga(t.stateNode);case 26:case 5:Ft(t,t.return),ul(t);break;case 22:t.memoizedState===null&&ul(t);break;case 30:ul(t);break;default:ul(t)}e=e.sibling}}function pn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,r=t,d=r.flags;switch(r.tag){case 0:case 11:case 15:pn(i,r,n),Ra(4,r);break;case 1:if(pn(i,r,n),l=r,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(M){Re(l,l.return,M)}if(l=r,i=l.updateQueue,i!==null){var g=l.stateNode;try{var k=i.shared.hiddenCallbacks;if(k!==null)for(i.shared.hiddenCallbacks=null,i=0;i<k.length;i++)Gc(k[i],g)}catch(M){Re(l,l.return,M)}}n&&d&64&&Pf(r),za(r,r.return);break;case 27:ld(r);case 26:case 5:pn(i,r,n),n&&l===null&&d&4&&td(r),za(r,r.return);break;case 12:pn(i,r,n);break;case 31:pn(i,r,n),n&&d&4&&ud(i,r);break;case 13:pn(i,r,n),n&&d&4&&od(i,r);break;case 22:r.memoizedState===null&&pn(i,r,n),za(r,r.return);break;case 30:break;default:pn(i,r,n)}t=t.sibling}}function cu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ya(n))}function fu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ya(e))}function Yt(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)dd(e,t,n,l),t=t.sibling}function dd(e,t,n,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Yt(e,t,n,l),i&2048&&Ra(9,t);break;case 1:Yt(e,t,n,l);break;case 3:Yt(e,t,n,l),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ya(e)));break;case 12:if(i&2048){Yt(e,t,n,l),e=t.stateNode;try{var r=t.memoizedProps,d=r.id,g=r.onPostCommit;typeof g=="function"&&g(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(k){Re(t,t.return,k)}}else Yt(e,t,n,l);break;case 31:Yt(e,t,n,l);break;case 13:Yt(e,t,n,l);break;case 23:break;case 22:r=t.stateNode,d=t.alternate,t.memoizedState!==null?r._visibility&2?Yt(e,t,n,l):Oa(e,t):r._visibility&2?Yt(e,t,n,l):(r._visibility|=2,$l(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),i&2048&&cu(d,t);break;case 24:Yt(e,t,n,l),i&2048&&fu(t.alternate,t);break;default:Yt(e,t,n,l)}}function $l(e,t,n,l,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,d=t,g=n,k=l,M=d.flags;switch(d.tag){case 0:case 11:case 15:$l(r,d,g,k,i),Ra(8,d);break;case 23:break;case 22:var q=d.stateNode;d.memoizedState!==null?q._visibility&2?$l(r,d,g,k,i):Oa(r,d):(q._visibility|=2,$l(r,d,g,k,i)),i&&M&2048&&cu(d.alternate,d);break;case 24:$l(r,d,g,k,i),i&&M&2048&&fu(d.alternate,d);break;default:$l(r,d,g,k,i)}t=t.sibling}}function Oa(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,i=l.flags;switch(l.tag){case 22:Oa(n,l),i&2048&&cu(l.alternate,l);break;case 24:Oa(n,l),i&2048&&fu(l.alternate,l);break;default:Oa(n,l)}t=t.sibling}}var Da=8192;function Yl(e,t,n){if(e.subtreeFlags&Da)for(e=e.child;e!==null;)md(e,t,n),e=e.sibling}function md(e,t,n){switch(e.tag){case 26:Yl(e,t,n),e.flags&Da&&e.memoizedState!==null&&Fg(n,$t,e.memoizedState,e.memoizedProps);break;case 5:Yl(e,t,n);break;case 3:case 4:var l=$t;$t=ri(e.stateNode.containerInfo),Yl(e,t,n),$t=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Da,Da=16777216,Yl(e,t,n),Da=l):Yl(e,t,n));break;default:Yl(e,t,n)}}function pd(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 Ma(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];et=l,gd(l,e)}pd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)hd(e),e=e.sibling}function hd(e){switch(e.tag){case 0:case 11:case 15:Ma(e),e.flags&2048&&Rn(9,e,e.return);break;case 3:Ma(e);break;case 12:Ma(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fs(e)):Ma(e);break;default:Ma(e)}}function Fs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];et=l,gd(l,e)}pd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Rn(8,t,t.return),Fs(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Fs(t));break;default:Fs(t)}e=e.sibling}}function gd(e,t){for(;et!==null;){var n=et;switch(n.tag){case 0:case 11:case 15:Rn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ya(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,et=l;else e:for(n=e;et!==null;){l=et;var i=l.sibling,r=l.return;if(id(l),l===n){et=null;break e}if(i!==null){i.return=r,et=i;break e}et=r}}}var og={getCacheForType:function(e){var t=lt(Ve),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return lt(Ve).controller.signal}},cg=typeof WeakMap=="function"?WeakMap:Map,Ae=0,Ue=null,ve=null,we=0,Ce=0,Nt=null,zn=!1,Zl=!1,du=!1,hn=0,Ze=0,On=0,ol=0,mu=0,jt=0,Xl=0,La=null,gt=null,pu=!1,Js=0,xd=0,Ks=1/0,Is=null,Dn=null,We=0,Mn=null,Ql=null,gn=0,hu=0,gu=null,yd=null,Ba=0,xu=null;function Tt(){return(Ae&2)!==0&&we!==0?we&-we:E.T!==null?ku():Oo()}function bd(){if(jt===0)if((we&536870912)===0||Ee){var e=ss;ss<<=1,(ss&3932160)===0&&(ss=262144),jt=e}else jt=536870912;return e=kt.current,e!==null&&(e.flags|=32),jt}function xt(e,t,n){(e===Ue&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)&&(Vl(e,0),Ln(e,we,jt,!1)),aa(e,n),((Ae&2)===0||e!==Ue)&&(e===Ue&&((Ae&2)===0&&(ol|=n),Ze===4&&Ln(e,we,jt,!1)),Jt(e))}function vd(e,t,n){if((Ae&6)!==0)throw Error(o(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||la(e,t),i=l?mg(e,t):bu(e,t,!0),r=l;do{if(i===0){Zl&&!l&&Ln(e,t,0,!1);break}else{if(n=e.current.alternate,r&&!fg(n)){i=bu(e,t,!1),r=!1;continue}if(i===2){if(r=t,e.errorRecoveryDisabledLanes&r)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var g=e;i=La;var k=g.current.memoizedState.isDehydrated;if(k&&(Vl(g,d).flags|=256),d=bu(g,d,!1),d!==2){if(du&&!k){g.errorRecoveryDisabledLanes|=r,ol|=r,i=4;break e}r=gt,gt=i,r!==null&&(gt===null?gt=r:gt.push.apply(gt,r))}i=d}if(r=!1,i!==2)continue}}if(i===1){Vl(e,0),Ln(e,t,0,!0);break}e:{switch(l=e,r=i,r){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Ln(l,t,jt,!zn);break e;case 2:gt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=Js+300-yt(),10<i)){if(Ln(l,t,jt,!zn),rs(l,0,!0)!==0)break e;gn=t,l.timeoutHandle=Id(Sd.bind(null,l,n,gt,Is,pu,t,jt,ol,Xl,zn,r,"Throttled",-0,0),i);break e}Sd(l,n,gt,Is,pu,t,jt,ol,Xl,zn,r,null,-0,0)}}break}while(!0);Jt(e)}function Sd(e,t,n,l,i,r,d,g,k,M,q,Z,L,U){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:en},md(t,r,Z);var se=(r&62914560)===r?Js-yt():(r&4194048)===r?xd-yt():0;if(se=Jg(Z,se),se!==null){gn=r,e.cancelPendingCommit=se(_d.bind(null,e,t,r,n,l,i,d,g,k,q,Z,null,L,U)),Ln(e,r,d,!M);return}}_d(e,t,r,n,l,i,d,g,k)}function fg(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var i=n[l],r=i.getSnapshot;i=i.value;try{if(!St(r(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ln(e,t,n,l){t&=~mu,t&=~ol,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var r=31-vt(i),d=1<<r;l[r]=-1,i&=~d}n!==0&&Co(e,n,t)}function Ws(){return(Ae&6)===0?(Ua(0),!1):!0}function yu(){if(ve!==null){if(Ce===0)var e=ve.return;else e=ve,an=el=null,Dr(e),Bl=null,va=0,e=ve;for(;e!==null;)Wf(e.alternate,e),e=e.return;ve=null}}function Vl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Rg(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),gn=0,yu(),Ue=e,ve=n=nn(e.current,null),we=t,Ce=0,Nt=null,zn=!1,Zl=la(e,t),du=!1,Xl=jt=mu=ol=On=Ze=0,gt=La=null,pu=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var i=31-vt(l),r=1<<i;t|=e[i],l&=~r}return hn=t,bs(),n}function wd(e,t){ye=null,E.H=Aa,t===Ll||t===Ts?(t=Bc(),Ce=3):t===wr?(t=Bc(),Ce=4):Ce=t===Kr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Nt=t,ve===null&&(Ze=1,Gs(e,Dt(t,e.current)))}function kd(){var e=kt.current;return e===null?!0:(we&4194048)===we?Ut===null:(we&62914560)===we||(we&536870912)!==0?e===Ut:!1}function Ed(){var e=E.H;return E.H=Aa,e===null?Aa:e}function Nd(){var e=E.A;return E.A=og,e}function Ps(){Ze=4,zn||(we&4194048)!==we&&kt.current!==null||(Zl=!0),(On&134217727)===0&&(ol&134217727)===0||Ue===null||Ln(Ue,we,jt,!1)}function bu(e,t,n){var l=Ae;Ae|=2;var i=Ed(),r=Nd();(Ue!==e||we!==t)&&(Is=null,Vl(e,t)),t=!1;var d=Ze;e:do try{if(Ce!==0&&ve!==null){var g=ve,k=Nt;switch(Ce){case 8:yu(),d=6;break e;case 3:case 2:case 9:case 6:kt.current===null&&(t=!0);var M=Ce;if(Ce=0,Nt=null,Fl(e,g,k,M),n&&Zl){d=0;break e}break;default:M=Ce,Ce=0,Nt=null,Fl(e,g,k,M)}}dg(),d=Ze;break}catch(q){wd(e,q)}while(!0);return t&&e.shellSuspendCounter++,an=el=null,Ae=l,E.H=i,E.A=r,ve===null&&(Ue=null,we=0,bs()),d}function dg(){for(;ve!==null;)jd(ve)}function mg(e,t){var n=Ae;Ae|=2;var l=Ed(),i=Nd();Ue!==e||we!==t?(Is=null,Ks=yt()+500,Vl(e,t)):Zl=la(e,t);e:do try{if(Ce!==0&&ve!==null){t=ve;var r=Nt;t:switch(Ce){case 1:Ce=0,Nt=null,Fl(e,t,r,1);break;case 2:case 9:if(Mc(r)){Ce=0,Nt=null,Td(t);break}t=function(){Ce!==2&&Ce!==9||Ue!==e||(Ce=7),Jt(e)},r.then(t,t);break e;case 3:Ce=7;break e;case 4:Ce=5;break e;case 7:Mc(r)?(Ce=0,Nt=null,Td(t)):(Ce=0,Nt=null,Fl(e,t,r,7));break;case 5:var d=null;switch(ve.tag){case 26:d=ve.memoizedState;case 5:case 27:var g=ve;if(d?dm(d):g.stateNode.complete){Ce=0,Nt=null;var k=g.sibling;if(k!==null)ve=k;else{var M=g.return;M!==null?(ve=M,ei(M)):ve=null}break t}}Ce=0,Nt=null,Fl(e,t,r,5);break;case 6:Ce=0,Nt=null,Fl(e,t,r,6);break;case 8:yu(),Ze=6;break e;default:throw Error(o(462))}}pg();break}catch(q){wd(e,q)}while(!0);return an=el=null,E.H=l,E.A=i,Ae=n,ve!==null?0:(Ue=null,we=0,bs(),Ze)}function pg(){for(;ve!==null&&!Bp();)jd(ve)}function jd(e){var t=Kf(e.alternate,e,hn);e.memoizedProps=e.pendingProps,t===null?ei(e):ve=t}function Td(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Zf(n,t,t.pendingProps,t.type,void 0,we);break;case 11:t=Zf(n,t,t.pendingProps,t.type.render,t.ref,we);break;case 5:Dr(t);default:Wf(n,t),t=ve=Ec(t,hn),t=Kf(n,t,hn)}e.memoizedProps=e.pendingProps,t===null?ei(e):ve=t}function Fl(e,t,n,l){an=el=null,Dr(t),Bl=null,va=0;var i=t.return;try{if(ng(e,i,t,n,we)){Ze=1,Gs(e,Dt(n,e.current)),ve=null;return}}catch(r){if(i!==null)throw ve=i,r;Ze=1,Gs(e,Dt(n,e.current)),ve=null;return}t.flags&32768?(Ee||l===1?e=!0:Zl||(we&536870912)!==0?e=!1:(zn=e=!0,(l===2||l===9||l===3||l===6)&&(l=kt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Ad(t,e)):ei(t)}function ei(e){var t=e;do{if((t.flags&32768)!==0){Ad(t,zn);return}e=t.return;var n=sg(t.alternate,t,hn);if(n!==null){ve=n;return}if(t=t.sibling,t!==null){ve=t;return}ve=t=e}while(t!==null);Ze===0&&(Ze=5)}function Ad(e,t){do{var n=ig(e.alternate,e);if(n!==null){n.flags&=32767,ve=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ve=e;return}ve=e=n}while(e!==null);Ze=6,ve=null}function _d(e,t,n,l,i,r,d,g,k){e.cancelPendingCommit=null;do ti();while(We!==0);if((Ae&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(r=t.lanes|t.childLanes,r|=rr,Vp(e,n,r,d,g,k),e===Ue&&(ve=Ue=null,we=0),Ql=t,Mn=e,gn=n,hu=r,gu=i,yd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,yg(ls,function(){return Dd(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=E.T,E.T=null,i=Y.p,Y.p=2,d=Ae,Ae|=4;try{rg(e,t,n)}finally{Ae=d,Y.p=i,E.T=l}}We=1,Cd(),Rd(),zd()}}function Cd(){if(We===1){We=0;var e=Mn,t=Ql,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=E.T,E.T=null;var l=Y.p;Y.p=2;var i=Ae;Ae|=4;try{cd(t,e);var r=Ru,d=hc(e.containerInfo),g=r.focusedElem,k=r.selectionRange;if(d!==g&&g&&g.ownerDocument&&pc(g.ownerDocument.documentElement,g)){if(k!==null&&nr(g)){var M=k.start,q=k.end;if(q===void 0&&(q=M),"selectionStart"in g)g.selectionStart=M,g.selectionEnd=Math.min(q,g.value.length);else{var Z=g.ownerDocument||document,L=Z&&Z.defaultView||window;if(L.getSelection){var U=L.getSelection(),se=g.textContent.length,ce=Math.min(k.start,se),Me=k.end===void 0?ce:Math.min(k.end,se);!U.extend&&ce>Me&&(d=Me,Me=ce,ce=d);var R=mc(g,ce),j=mc(g,Me);if(R&&j&&(U.rangeCount!==1||U.anchorNode!==R.node||U.anchorOffset!==R.offset||U.focusNode!==j.node||U.focusOffset!==j.offset)){var D=Z.createRange();D.setStart(R.node,R.offset),U.removeAllRanges(),ce>Me?(U.addRange(D),U.extend(j.node,j.offset)):(D.setEnd(j.node,j.offset),U.addRange(D))}}}}for(Z=[],U=g;U=U.parentNode;)U.nodeType===1&&Z.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<Z.length;g++){var $=Z[g];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}mi=!!Cu,Ru=Cu=null}finally{Ae=i,Y.p=l,E.T=n}}e.current=t,We=2}}function Rd(){if(We===2){We=0;var e=Mn,t=Ql,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=E.T,E.T=null;var l=Y.p;Y.p=2;var i=Ae;Ae|=4;try{sd(e,t.alternate,t)}finally{Ae=i,Y.p=l,E.T=n}}We=3}}function zd(){if(We===4||We===3){We=0,Up();var e=Mn,t=Ql,n=gn,l=yd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,Ql=Mn=null,Od(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Dn=null),Bi(n),t=t.stateNode,bt&&typeof bt.onCommitFiberRoot=="function")try{bt.onCommitFiberRoot(na,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=E.T,i=Y.p,Y.p=2,E.T=null;try{for(var r=e.onRecoverableError,d=0;d<l.length;d++){var g=l[d];r(g.value,{componentStack:g.stack})}}finally{E.T=t,Y.p=i}}(gn&3)!==0&&ti(),Jt(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===xu?Ba++:(Ba=0,xu=e):Ba=0,Ua(0)}}function Od(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ya(t)))}function ti(){return Cd(),Rd(),zd(),Dd()}function Dd(){if(We!==5)return!1;var e=Mn,t=hu;hu=0;var n=Bi(gn),l=E.T,i=Y.p;try{Y.p=32>n?32:n,E.T=null,n=gu,gu=null;var r=Mn,d=gn;if(We=0,Ql=Mn=null,gn=0,(Ae&6)!==0)throw Error(o(331));var g=Ae;if(Ae|=4,hd(r.current),dd(r,r.current,d,n),Ae=g,Ua(0,!1),bt&&typeof bt.onPostCommitFiberRoot=="function")try{bt.onPostCommitFiberRoot(na,r)}catch{}return!0}finally{Y.p=i,E.T=l,Od(e,t)}}function Md(e,t,n){t=Dt(n,t),t=Jr(e.stateNode,t,2),e=An(e,t,2),e!==null&&(aa(e,2),Jt(e))}function Re(e,t,n){if(e.tag===3)Md(e,e,n);else for(;t!==null;){if(t.tag===3){Md(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Dn===null||!Dn.has(l))){e=Dt(n,e),n=Lf(2),l=An(t,n,2),l!==null&&(Bf(n,l,t,e),aa(l,2),Jt(l));break}}t=t.return}}function vu(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new cg;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(n)||(du=!0,i.add(n),e=hg.bind(null,e,t,n),t.then(e,e))}function hg(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ue===e&&(we&n)===n&&(Ze===4||Ze===3&&(we&62914560)===we&&300>yt()-Js?(Ae&2)===0&&Vl(e,0):mu|=n,Xl===we&&(Xl=0)),Jt(e)}function Ld(e,t){t===0&&(t=_o()),e=In(e,t),e!==null&&(aa(e,t),Jt(e))}function gg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ld(e,n)}function xg(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),Ld(e,n)}function yg(e,t){return ta(e,t)}var ni=null,Jl=null,Su=!1,li=!1,wu=!1,Bn=0;function Jt(e){e!==Jl&&e.next===null&&(Jl===null?ni=Jl=e:Jl=Jl.next=e),li=!0,Su||(Su=!0,vg())}function Ua(e,t){if(!wu&&li){wu=!0;do for(var n=!1,l=ni;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var r=0;else{var d=l.suspendedLanes,g=l.pingedLanes;r=(1<<31-vt(42|e)+1)-1,r&=i&~(d&~g),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,qd(l,r))}else r=we,r=rs(l,l===Ue?r:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(r&3)===0||la(l,r)||(n=!0,qd(l,r));l=l.next}while(n);wu=!1}}function bg(){Bd()}function Bd(){li=Su=!1;var e=0;Bn!==0&&Cg()&&(e=Bn);for(var t=yt(),n=null,l=ni;l!==null;){var i=l.next,r=Ud(l,t);r===0?(l.next=null,n===null?ni=i:n.next=i,i===null&&(Jl=n)):(n=l,(e!==0||(r&3)!==0)&&(li=!0)),l=i}We!==0&&We!==5||Ua(e),Bn!==0&&(Bn=0)}function Ud(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var d=31-vt(r),g=1<<d,k=i[d];k===-1?((g&n)===0||(g&l)!==0)&&(i[d]=Qp(g,t)):k<=t&&(e.expiredLanes|=g),r&=~g}if(t=Ue,n=we,n=rs(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&hl(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||la(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&hl(l),Bi(n)){case 2:case 8:n=To;break;case 32:n=ls;break;case 268435456:n=Ao;break;default:n=ls}return l=Hd.bind(null,e),n=ta(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&hl(l),e.callbackPriority=2,e.callbackNode=null,2}function Hd(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ti()&&e.callbackNode!==n)return null;var l=we;return l=rs(e,e===Ue?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(vd(e,l,t),Ud(e,yt()),e.callbackNode!=null&&e.callbackNode===n?Hd.bind(null,e):null)}function qd(e,t){if(ti())return null;vd(e,t,!0)}function vg(){zg(function(){(Ae&6)!==0?ta(jo,bg):Bd()})}function ku(){if(Bn===0){var e=Dl;e===0&&(e=as,as<<=1,(as&261888)===0&&(as=256)),Bn=e}return Bn}function Gd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:fs(""+e)}function $d(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Sg(e,t,n,l,i){if(t==="submit"&&n&&n.stateNode===i){var r=Gd((i[ft]||null).action),d=l.submitter;d&&(t=(t=d[ft]||null)?Gd(t.formAction):d.getAttribute("formAction"),t!==null&&(r=t,d=null));var g=new hs("action","action",null,l,i);e.push({event:g,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Bn!==0){var k=d?$d(i,d):new FormData(i);Yr(n,{pending:!0,data:k,method:i.method,action:r},null,k)}}else typeof r=="function"&&(g.preventDefault(),k=d?$d(i,d):new FormData(i),Yr(n,{pending:!0,data:k,method:i.method,action:r},r,k))},currentTarget:i}]})}}for(var Eu=0;Eu<ir.length;Eu++){var Nu=ir[Eu],wg=Nu.toLowerCase(),kg=Nu[0].toUpperCase()+Nu.slice(1);Gt(wg,"on"+kg)}Gt(yc,"onAnimationEnd"),Gt(bc,"onAnimationIteration"),Gt(vc,"onAnimationStart"),Gt("dblclick","onDoubleClick"),Gt("focusin","onFocus"),Gt("focusout","onBlur"),Gt(Hh,"onTransitionRun"),Gt(qh,"onTransitionStart"),Gt(Gh,"onTransitionCancel"),Gt(Sc,"onTransitionEnd"),vl("onMouseEnter",["mouseout","mouseover"]),vl("onMouseLeave",["mouseout","mouseover"]),vl("onPointerEnter",["pointerout","pointerover"]),vl("onPointerLeave",["pointerout","pointerover"]),Vn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Vn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Vn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Vn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Vn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Vn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ha="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(" "),Eg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ha));function Yd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],i=l.event;l=l.listeners;e:{var r=void 0;if(t)for(var d=l.length-1;0<=d;d--){var g=l[d],k=g.instance,M=g.currentTarget;if(g=g.listener,k!==r&&i.isPropagationStopped())break e;r=g,i.currentTarget=M;try{r(i)}catch(q){ys(q)}i.currentTarget=null,r=k}else for(d=0;d<l.length;d++){if(g=l[d],k=g.instance,M=g.currentTarget,g=g.listener,k!==r&&i.isPropagationStopped())break e;r=g,i.currentTarget=M;try{r(i)}catch(q){ys(q)}i.currentTarget=null,r=k}}}}function Se(e,t){var n=t[Ui];n===void 0&&(n=t[Ui]=new Set);var l=e+"__bubble";n.has(l)||(Zd(t,e,2,!1),n.add(l))}function ju(e,t,n){var l=0;t&&(l|=4),Zd(n,e,l,t)}var ai="_reactListening"+Math.random().toString(36).slice(2);function Tu(e){if(!e[ai]){e[ai]=!0,Lo.forEach(function(n){n!=="selectionchange"&&(Eg.has(n)||ju(n,!1,e),ju(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ai]||(t[ai]=!0,ju("selectionchange",!1,t))}}function Zd(e,t,n,l){switch(bm(t)){case 2:var i=Wg;break;case 8:i=Pg;break;default:i=$u}n=i.bind(null,t,n,e),i=void 0,!Vi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Au(e,t,n,l,i){var r=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var g=l.stateNode.containerInfo;if(g===i)break;if(d===4)for(d=l.return;d!==null;){var k=d.tag;if((k===3||k===4)&&d.stateNode.containerInfo===i)return;d=d.return}for(;g!==null;){if(d=xl(g),d===null)return;if(k=d.tag,k===5||k===6||k===26||k===27){l=r=d;continue e}g=g.parentNode}}l=l.return}Fo(function(){var M=r,q=Xi(n),Z=[];e:{var L=wc.get(e);if(L!==void 0){var U=hs,se=e;switch(e){case"keypress":if(ms(n)===0)break e;case"keydown":case"keyup":U=xh;break;case"focusin":se="focus",U=Ii;break;case"focusout":se="blur",U=Ii;break;case"beforeblur":case"afterblur":U=Ii;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=Io;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=sh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=vh;break;case yc:case bc:case vc:U=uh;break;case Sc:U=wh;break;case"scroll":case"scrollend":U=lh;break;case"wheel":U=Eh;break;case"copy":case"cut":case"paste":U=ch;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Po;break;case"toggle":case"beforetoggle":U=jh}var ce=(t&4)!==0,Me=!ce&&(e==="scroll"||e==="scrollend"),R=ce?L!==null?L+"Capture":null:L;ce=[];for(var j=M,D;j!==null;){var $=j;if(D=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||D===null||R===null||($=ra(j,R),$!=null&&ce.push(qa(j,$,D))),Me)break;j=j.return}0<ce.length&&(L=new U(L,se,null,n,q),Z.push({event:L,listeners:ce}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",L&&n!==Zi&&(se=n.relatedTarget||n.fromElement)&&(xl(se)||se[gl]))break e;if((U||L)&&(L=q.window===q?q:(L=q.ownerDocument)?L.defaultView||L.parentWindow:window,U?(se=n.relatedTarget||n.toElement,U=M,se=se?xl(se):null,se!==null&&(Me=m(se),ce=se.tag,se!==Me||ce!==5&&ce!==27&&ce!==6)&&(se=null)):(U=null,se=M),U!==se)){if(ce=Io,$="onMouseLeave",R="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ce=Po,$="onPointerLeave",R="onPointerEnter",j="pointer"),Me=U==null?L:ia(U),D=se==null?L:ia(se),L=new ce($,j+"leave",U,n,q),L.target=Me,L.relatedTarget=D,$=null,xl(q)===M&&(ce=new ce(R,j+"enter",se,n,q),ce.target=D,ce.relatedTarget=Me,$=ce),Me=$,U&&se)t:{for(ce=Ng,R=U,j=se,D=0,$=R;$;$=ce($))D++;$=0;for(var ue=j;ue;ue=ce(ue))$++;for(;0<D-$;)R=ce(R),D--;for(;0<$-D;)j=ce(j),$--;for(;D--;){if(R===j||j!==null&&R===j.alternate){ce=R;break t}R=ce(R),j=ce(j)}ce=null}else ce=null;U!==null&&Xd(Z,L,U,ce,!1),se!==null&&Me!==null&&Xd(Z,Me,se,ce,!0)}}e:{if(L=M?ia(M):window,U=L.nodeName&&L.nodeName.toLowerCase(),U==="select"||U==="input"&&L.type==="file")var je=rc;else if(sc(L))if(uc)je=Lh;else{je=Dh;var ie=Oh}else U=L.nodeName,!U||U.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?M&&Yi(M.elementType)&&(je=rc):je=Mh;if(je&&(je=je(e,M))){ic(Z,je,n,q);break e}ie&&ie(e,L,M),e==="focusout"&&M&&L.type==="number"&&M.memoizedProps.value!=null&&$i(L,"number",L.value)}switch(ie=M?ia(M):window,e){case"focusin":(sc(ie)||ie.contentEditable==="true")&&(jl=ie,lr=M,ha=null);break;case"focusout":ha=lr=jl=null;break;case"mousedown":ar=!0;break;case"contextmenu":case"mouseup":case"dragend":ar=!1,gc(Z,n,q);break;case"selectionchange":if(Uh)break;case"keydown":case"keyup":gc(Z,n,q)}var be;if(Pi)e:{switch(e){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else Nl?lc(e,n)&&(ke="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ke="onCompositionStart");ke&&(ec&&n.locale!=="ko"&&(Nl||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&Nl&&(be=Jo()):(Sn=q,Fi="value"in Sn?Sn.value:Sn.textContent,Nl=!0)),ie=si(M,ke),0<ie.length&&(ke=new Wo(ke,e,null,n,q),Z.push({event:ke,listeners:ie}),be?ke.data=be:(be=ac(n),be!==null&&(ke.data=be)))),(be=Ah?_h(e,n):Ch(e,n))&&(ke=si(M,"onBeforeInput"),0<ke.length&&(ie=new Wo("onBeforeInput","beforeinput",null,n,q),Z.push({event:ie,listeners:ke}),ie.data=be)),Sg(Z,e,M,n,q)}Yd(Z,t)})}function qa(e,t,n){return{instance:e,listener:t,currentTarget:n}}function si(e,t){for(var n=t+"Capture",l=[];e!==null;){var i=e,r=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||r===null||(i=ra(e,n),i!=null&&l.unshift(qa(e,i,r)),i=ra(e,t),i!=null&&l.push(qa(e,i,r))),e.tag===3)return l;e=e.return}return[]}function Ng(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Xd(e,t,n,l,i){for(var r=t._reactName,d=[];n!==null&&n!==l;){var g=n,k=g.alternate,M=g.stateNode;if(g=g.tag,k!==null&&k===l)break;g!==5&&g!==26&&g!==27||M===null||(k=M,i?(M=ra(n,r),M!=null&&d.unshift(qa(n,M,k))):i||(M=ra(n,r),M!=null&&d.push(qa(n,M,k)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var jg=/\r\n?/g,Tg=/\u0000|\uFFFD/g;function Qd(e){return(typeof e=="string"?e:""+e).replace(jg,`
56
+ `).replace(Tg,"")}function Vd(e,t){return t=Qd(t),Qd(e)===t}function De(e,t,n,l,i,r){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||wl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&wl(e,""+l);break;case"className":os(e,"class",l);break;case"tabIndex":os(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":os(e,n,l);break;case"style":Qo(e,l,r);break;case"data":if(t!=="object"){os(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=fs(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(t!=="input"&&De(e,t,"name",i.name,i,null),De(e,t,"formEncType",i.formEncType,i,null),De(e,t,"formMethod",i.formMethod,i,null),De(e,t,"formTarget",i.formTarget,i,null)):(De(e,t,"encType",i.encType,i,null),De(e,t,"method",i.method,i,null),De(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=fs(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=en);break;case"onScroll":l!=null&&Se("scroll",e);break;case"onScrollEnd":l!=null&&Se("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=fs(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":Se("beforetoggle",e),Se("toggle",e),us(e,"popover",l);break;case"xlinkActuate":Pt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Pt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Pt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Pt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Pt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Pt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Pt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":us(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=th.get(n)||n,us(e,n,l))}}function _u(e,t,n,l,i,r){switch(n){case"style":Qo(e,l,r);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"children":typeof l=="string"?wl(e,l):(typeof l=="number"||typeof l=="bigint")&&wl(e,""+l);break;case"onScroll":l!=null&&Se("scroll",e);break;case"onScrollEnd":l!=null&&Se("scrollend",e);break;case"onClick":l!=null&&(e.onclick=en);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Bo.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),r=e[ft]||null,r=r!=null?r[n]:null,typeof r=="function"&&e.removeEventListener(t,r,i),typeof l=="function")){typeof r!="function"&&r!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,i);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):us(e,n,l)}}}function st(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Se("error",e),Se("load",e);var l=!1,i=!1,r;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:De(e,t,r,d,n,null)}}i&&De(e,t,"srcSet",n.srcSet,n,null),l&&De(e,t,"src",n.src,n,null);return;case"input":Se("invalid",e);var g=r=d=i=null,k=null,M=null;for(l in n)if(n.hasOwnProperty(l)){var q=n[l];if(q!=null)switch(l){case"name":i=q;break;case"type":d=q;break;case"checked":k=q;break;case"defaultChecked":M=q;break;case"value":r=q;break;case"defaultValue":g=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(o(137,t));break;default:De(e,t,l,q,n,null)}}$o(e,r,g,k,M,d,i,!1);return;case"select":Se("invalid",e),l=d=r=null;for(i in n)if(n.hasOwnProperty(i)&&(g=n[i],g!=null))switch(i){case"value":r=g;break;case"defaultValue":d=g;break;case"multiple":l=g;default:De(e,t,i,g,n,null)}t=r,n=d,e.multiple=!!l,t!=null?Sl(e,!!l,t,!1):n!=null&&Sl(e,!!l,n,!0);return;case"textarea":Se("invalid",e),r=i=l=null;for(d in n)if(n.hasOwnProperty(d)&&(g=n[d],g!=null))switch(d){case"value":l=g;break;case"defaultValue":i=g;break;case"children":r=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(o(91));break;default:De(e,t,d,g,n,null)}Zo(e,l,i,r);return;case"option":for(k in n)if(n.hasOwnProperty(k)&&(l=n[k],l!=null))switch(k){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:De(e,t,k,l,n,null)}return;case"dialog":Se("beforetoggle",e),Se("toggle",e),Se("cancel",e),Se("close",e);break;case"iframe":case"object":Se("load",e);break;case"video":case"audio":for(l=0;l<Ha.length;l++)Se(Ha[l],e);break;case"image":Se("error",e),Se("load",e);break;case"details":Se("toggle",e);break;case"embed":case"source":case"link":Se("error",e),Se("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(M in n)if(n.hasOwnProperty(M)&&(l=n[M],l!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:De(e,t,M,l,n,null)}return;default:if(Yi(t)){for(q in n)n.hasOwnProperty(q)&&(l=n[q],l!==void 0&&_u(e,t,q,l,n,void 0));return}}for(g in n)n.hasOwnProperty(g)&&(l=n[g],l!=null&&De(e,t,g,l,n,null))}function Ag(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,r=null,d=null,g=null,k=null,M=null,q=null;for(U in n){var Z=n[U];if(n.hasOwnProperty(U)&&Z!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":k=Z;default:l.hasOwnProperty(U)||De(e,t,U,null,l,Z)}}for(var L in l){var U=l[L];if(Z=n[L],l.hasOwnProperty(L)&&(U!=null||Z!=null))switch(L){case"type":r=U;break;case"name":i=U;break;case"checked":M=U;break;case"defaultChecked":q=U;break;case"value":d=U;break;case"defaultValue":g=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,t));break;default:U!==Z&&De(e,t,L,U,l,Z)}}Gi(e,d,g,k,M,q,r,i);return;case"select":U=d=g=L=null;for(r in n)if(k=n[r],n.hasOwnProperty(r)&&k!=null)switch(r){case"value":break;case"multiple":U=k;default:l.hasOwnProperty(r)||De(e,t,r,null,l,k)}for(i in l)if(r=l[i],k=n[i],l.hasOwnProperty(i)&&(r!=null||k!=null))switch(i){case"value":L=r;break;case"defaultValue":g=r;break;case"multiple":d=r;default:r!==k&&De(e,t,i,r,l,k)}t=g,n=d,l=U,L!=null?Sl(e,!!n,L,!1):!!l!=!!n&&(t!=null?Sl(e,!!n,t,!0):Sl(e,!!n,n?[]:"",!1));return;case"textarea":U=L=null;for(g in n)if(i=n[g],n.hasOwnProperty(g)&&i!=null&&!l.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:De(e,t,g,null,l,i)}for(d in l)if(i=l[d],r=n[d],l.hasOwnProperty(d)&&(i!=null||r!=null))switch(d){case"value":L=i;break;case"defaultValue":U=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==r&&De(e,t,d,i,l,r)}Yo(e,L,U);return;case"option":for(var se in n)if(L=n[se],n.hasOwnProperty(se)&&L!=null&&!l.hasOwnProperty(se))switch(se){case"selected":e.selected=!1;break;default:De(e,t,se,null,l,L)}for(k in l)if(L=l[k],U=n[k],l.hasOwnProperty(k)&&L!==U&&(L!=null||U!=null))switch(k){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:De(e,t,k,L,l,U)}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 ce in n)L=n[ce],n.hasOwnProperty(ce)&&L!=null&&!l.hasOwnProperty(ce)&&De(e,t,ce,null,l,L);for(M in l)if(L=l[M],U=n[M],l.hasOwnProperty(M)&&L!==U&&(L!=null||U!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,t));break;default:De(e,t,M,L,l,U)}return;default:if(Yi(t)){for(var Me in n)L=n[Me],n.hasOwnProperty(Me)&&L!==void 0&&!l.hasOwnProperty(Me)&&_u(e,t,Me,void 0,l,L);for(q in l)L=l[q],U=n[q],!l.hasOwnProperty(q)||L===U||L===void 0&&U===void 0||_u(e,t,q,L,l,U);return}}for(var R in n)L=n[R],n.hasOwnProperty(R)&&L!=null&&!l.hasOwnProperty(R)&&De(e,t,R,null,l,L);for(Z in l)L=l[Z],U=n[Z],!l.hasOwnProperty(Z)||L===U||L==null&&U==null||De(e,t,Z,L,l,U)}function Fd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _g(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var i=n[l],r=i.transferSize,d=i.initiatorType,g=i.duration;if(r&&g&&Fd(d)){for(d=0,g=i.responseEnd,l+=1;l<n.length;l++){var k=n[l],M=k.startTime;if(M>g)break;var q=k.transferSize,Z=k.initiatorType;q&&Fd(Z)&&(k=k.responseEnd,d+=q*(k<g?1:(g-M)/(k-M)))}if(--l,t+=8*(r+d)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Cu=null,Ru=null;function ii(e){return e.nodeType===9?e:e.ownerDocument}function Jd(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 Kd(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 zu(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 Ou=null;function Cg(){var e=window.event;return e&&e.type==="popstate"?e===Ou?!1:(Ou=e,!0):(Ou=null,!1)}var Id=typeof setTimeout=="function"?setTimeout:void 0,Rg=typeof clearTimeout=="function"?clearTimeout:void 0,Wd=typeof Promise=="function"?Promise:void 0,zg=typeof queueMicrotask=="function"?queueMicrotask:typeof Wd<"u"?function(e){return Wd.resolve(null).then(e).catch(Og)}:Id;function Og(e){setTimeout(function(){throw e})}function Un(e){return e==="head"}function Pd(e,t){var n=t,l=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(i),Pl(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Ga(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ga(n);for(var r=n.firstChild;r;){var d=r.nextSibling,g=r.nodeName;r[sa]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=d}}else n==="body"&&Ga(e.ownerDocument.body);n=i}while(n);Pl(t)}function em(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Du(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Du(n),Hi(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Dg(e,t,n,l){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[sa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Ht(e.nextSibling),e===null)break}return null}function Mg(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Ht(e.nextSibling),e===null))return null;return e}function tm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ht(e.nextSibling),e===null))return null;return e}function Mu(e){return e.data==="$?"||e.data==="$~"}function Lu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Lg(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Ht(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Bu=null;function nm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Ht(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function lm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function am(e,t,n){switch(t=ii(n),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Ga(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Hi(e)}var qt=new Map,sm=new Set;function ri(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var xn=Y.d;Y.d={f:Bg,r:Ug,D:Hg,C:qg,L:Gg,m:$g,X:Zg,S:Yg,M:Xg};function Bg(){var e=xn.f(),t=Ws();return e||t}function Ug(e){var t=yl(e);t!==null&&t.tag===5&&t.type==="form"?wf(t):xn.r(e)}var Kl=typeof document>"u"?null:document;function im(e,t,n){var l=Kl;if(l&&typeof t=="string"&&t){var i=zt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),sm.has(i)||(sm.add(i),e={rel:e,crossOrigin:n,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),st(t,"link",e),Pe(t),l.head.appendChild(t)))}}function Hg(e){xn.D(e),im("dns-prefetch",e,null)}function qg(e,t){xn.C(e,t),im("preconnect",e,t)}function Gg(e,t,n){xn.L(e,t,n);var l=Kl;if(l&&e&&t){var i='link[rel="preload"][as="'+zt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+zt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+zt(n.imageSizes)+'"]')):i+='[href="'+zt(e)+'"]';var r=i;switch(t){case"style":r=Il(e);break;case"script":r=Wl(e)}qt.has(r)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),qt.set(r,e),l.querySelector(i)!==null||t==="style"&&l.querySelector($a(r))||t==="script"&&l.querySelector(Ya(r))||(t=l.createElement("link"),st(t,"link",e),Pe(t),l.head.appendChild(t)))}}function $g(e,t){xn.m(e,t);var n=Kl;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+zt(l)+'"][href="'+zt(e)+'"]',r=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Wl(e)}if(!qt.has(r)&&(e=b({rel:"modulepreload",href:e},t),qt.set(r,e),n.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ya(r)))return}l=n.createElement("link"),st(l,"link",e),Pe(l),n.head.appendChild(l)}}}function Yg(e,t,n){xn.S(e,t,n);var l=Kl;if(l&&e){var i=bl(l).hoistableStyles,r=Il(e);t=t||"default";var d=i.get(r);if(!d){var g={loading:0,preload:null};if(d=l.querySelector($a(r)))g.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=qt.get(r))&&Uu(e,n);var k=d=l.createElement("link");Pe(k),st(k,"link",e),k._p=new Promise(function(M,q){k.onload=M,k.onerror=q}),k.addEventListener("load",function(){g.loading|=1}),k.addEventListener("error",function(){g.loading|=2}),g.loading|=4,ui(d,t,l)}d={type:"stylesheet",instance:d,count:1,state:g},i.set(r,d)}}}function Zg(e,t){xn.X(e,t);var n=Kl;if(n&&e){var l=bl(n).hoistableScripts,i=Wl(e),r=l.get(i);r||(r=n.querySelector(Ya(i)),r||(e=b({src:e,async:!0},t),(t=qt.get(i))&&Hu(e,t),r=n.createElement("script"),Pe(r),st(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(i,r))}}function Xg(e,t){xn.M(e,t);var n=Kl;if(n&&e){var l=bl(n).hoistableScripts,i=Wl(e),r=l.get(i);r||(r=n.querySelector(Ya(i)),r||(e=b({src:e,async:!0,type:"module"},t),(t=qt.get(i))&&Hu(e,t),r=n.createElement("script"),Pe(r),st(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(i,r))}}function rm(e,t,n,l){var i=(i=re.current)?ri(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Il(n.href),n=bl(i).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Il(n.href);var r=bl(i).hoistableStyles,d=r.get(e);if(d||(i=i.ownerDocument||i,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,d),(r=i.querySelector($a(e)))&&!r._p&&(d.instance=r,d.state.loading=5),qt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},qt.set(e,n),r||Qg(i,e,n,d.state))),t&&l===null)throw Error(o(528,""));return d}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Wl(n),n=bl(i).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Il(e){return'href="'+zt(e)+'"'}function $a(e){return'link[rel="stylesheet"]['+e+"]"}function um(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Qg(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),st(t,"link",n),Pe(t),e.head.appendChild(t))}function Wl(e){return'[src="'+zt(e)+'"]'}function Ya(e){return"script[async]"+e}function om(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+zt(n.href)+'"]');if(l)return t.instance=l,Pe(l),l;var i=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Pe(l),st(l,"style",i),ui(l,n.precedence,e),t.instance=l;case"stylesheet":i=Il(n.href);var r=e.querySelector($a(i));if(r)return t.state.loading|=4,t.instance=r,Pe(r),r;l=um(n),(i=qt.get(i))&&Uu(l,i),r=(e.ownerDocument||e).createElement("link"),Pe(r);var d=r;return d._p=new Promise(function(g,k){d.onload=g,d.onerror=k}),st(r,"link",l),t.state.loading|=4,ui(r,n.precedence,e),t.instance=r;case"script":return r=Wl(n.src),(i=e.querySelector(Ya(r)))?(t.instance=i,Pe(i),i):(l=n,(i=qt.get(r))&&(l=b({},n),Hu(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),Pe(i),st(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,ui(l,n.precedence,e));return t.instance}function ui(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,r=i,d=0;d<l.length;d++){var g=l[d];if(g.dataset.precedence===t)r=g;else if(r!==i)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Uu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Hu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var oi=null;function cm(e,t,n){if(oi===null){var l=new Map,i=oi=new Map;i.set(n,l)}else i=oi,l=i.get(n),l||(l=new Map,i.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var r=n[i];if(!(r[sa]||r[tt]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var d=r.getAttribute(t)||"";d=e+d;var g=l.get(d);g?g.push(r):l.set(d,[r])}}return l}function fm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Vg(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function dm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Fg(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=Il(l.href),r=t.querySelector($a(i));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ci.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=r,Pe(r);return}r=t.ownerDocument||t,l=um(l),(i=qt.get(i))&&Uu(l,i),r=r.createElement("link"),Pe(r);var d=r;d._p=new Promise(function(g,k){d.onload=g,d.onerror=k}),st(r,"link",l),n.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=ci.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var qu=0;function Jg(e,t){return e.stylesheets&&e.count===0&&di(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&di(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&qu===0&&(qu=62500*_g());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&di(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>qu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function ci(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)di(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var fi=null;function di(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,fi=new Map,t.forEach(Kg,e),fi=null,ci.call(e))}function Kg(e,t){if(!(t.state.loading&4)){var n=fi.get(e);if(n)var l=n.get(null);else{n=new Map,fi.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<i.length;r++){var d=i[r];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),l=d)}l&&n.set(null,l)}i=t.instance,d=i.getAttribute("data-precedence"),r=n.get(d)||l,r===l&&n.set(null,i),n.set(d,i),this.count++,l=ci.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),r?r.parentNode.insertBefore(i,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Za={$$typeof:G,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function Ig(e,t,n,l,i,r,d,g,k){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=Mi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mi(0),this.hiddenUpdates=Mi(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=r,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function mm(e,t,n,l,i,r,d,g,k,M,q,Z){return e=new Ig(e,t,n,d,k,M,q,Z,g),t=1,r===!0&&(t|=24),r=wt(3,null,null,t),e.current=r,r.stateNode=e,t=br(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:l,isDehydrated:n,cache:t},kr(r),e}function pm(e){return e?(e=_l,e):_l}function hm(e,t,n,l,i,r){i=pm(i),l.context===null?l.context=i:l.pendingContext=i,l=Tn(t),l.payload={element:n},r=r===void 0?null:r,r!==null&&(l.callback=r),n=An(e,l,t),n!==null&&(xt(n,e,t),wa(n,e,t))}function gm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Gu(e,t){gm(e,t),(e=e.alternate)&&gm(e,t)}function xm(e){if(e.tag===13||e.tag===31){var t=In(e,67108864);t!==null&&xt(t,e,67108864),Gu(e,67108864)}}function ym(e){if(e.tag===13||e.tag===31){var t=Tt();t=Li(t);var n=In(e,t);n!==null&&xt(n,e,t),Gu(e,t)}}var mi=!0;function Wg(e,t,n,l){var i=E.T;E.T=null;var r=Y.p;try{Y.p=2,$u(e,t,n,l)}finally{Y.p=r,E.T=i}}function Pg(e,t,n,l){var i=E.T;E.T=null;var r=Y.p;try{Y.p=8,$u(e,t,n,l)}finally{Y.p=r,E.T=i}}function $u(e,t,n,l){if(mi){var i=Yu(l);if(i===null)Au(e,t,l,pi,n),vm(e,l);else if(tx(i,e,t,n,l))l.stopPropagation();else if(vm(e,l),t&4&&-1<ex.indexOf(e)){for(;i!==null;){var r=yl(i);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var d=Qn(r.pendingLanes);if(d!==0){var g=r;for(g.pendingLanes|=2,g.entangledLanes|=2;d;){var k=1<<31-vt(d);g.entanglements[1]|=k,d&=~k}Jt(r),(Ae&6)===0&&(Ks=yt()+500,Ua(0))}}break;case 31:case 13:g=In(r,2),g!==null&&xt(g,r,2),Ws(),Gu(r,2)}if(r=Yu(l),r===null&&Au(e,t,l,pi,n),r===i)break;i=r}i!==null&&l.stopPropagation()}else Au(e,t,l,null,n)}}function Yu(e){return e=Xi(e),Zu(e)}var pi=null;function Zu(e){if(pi=null,e=xl(e),e!==null){var t=m(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===31){if(e=v(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return pi=e,null}function bm(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(Hp()){case jo:return 2;case To:return 8;case ls:case qp:return 32;case Ao:return 268435456;default:return 32}default:return 32}}var Xu=!1,Hn=null,qn=null,Gn=null,Xa=new Map,Qa=new Map,$n=[],ex="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 vm(e,t){switch(e){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":qn=null;break;case"mouseover":case"mouseout":Gn=null;break;case"pointerover":case"pointerout":Xa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qa.delete(t.pointerId)}}function Va(e,t,n,l,i,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:r,targetContainers:[i]},t!==null&&(t=yl(t),t!==null&&xm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function tx(e,t,n,l,i){switch(t){case"focusin":return Hn=Va(Hn,e,t,n,l,i),!0;case"dragenter":return qn=Va(qn,e,t,n,l,i),!0;case"mouseover":return Gn=Va(Gn,e,t,n,l,i),!0;case"pointerover":var r=i.pointerId;return Xa.set(r,Va(Xa.get(r)||null,e,t,n,l,i)),!0;case"gotpointercapture":return r=i.pointerId,Qa.set(r,Va(Qa.get(r)||null,e,t,n,l,i)),!0}return!1}function Sm(e){var t=xl(e.target);if(t!==null){var n=m(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,Do(e.priority,function(){ym(n)});return}}else if(t===31){if(t=v(n),t!==null){e.blockedOn=t,Do(e.priority,function(){ym(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function hi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yu(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Zi=l,n.target.dispatchEvent(l),Zi=null}else return t=yl(n),t!==null&&xm(t),e.blockedOn=n,!1;t.shift()}return!0}function wm(e,t,n){hi(e)&&n.delete(t)}function nx(){Xu=!1,Hn!==null&&hi(Hn)&&(Hn=null),qn!==null&&hi(qn)&&(qn=null),Gn!==null&&hi(Gn)&&(Gn=null),Xa.forEach(wm),Qa.forEach(wm)}function gi(e,t){e.blockedOn===t&&(e.blockedOn=null,Xu||(Xu=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,nx)))}var xi=null;function km(e){xi!==e&&(xi=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){xi===e&&(xi=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if(Zu(l||n)===null)continue;break}var r=yl(n);r!==null&&(e.splice(t,3),t-=3,Yr(r,{pending:!0,data:i,method:n.method,action:l},l,i))}}))}function Pl(e){function t(k){return gi(k,e)}Hn!==null&&gi(Hn,e),qn!==null&&gi(qn,e),Gn!==null&&gi(Gn,e),Xa.forEach(t),Qa.forEach(t);for(var n=0;n<$n.length;n++){var l=$n[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<$n.length&&(n=$n[0],n.blockedOn===null);)Sm(n),n.blockedOn===null&&$n.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var i=n[l],r=n[l+1],d=i[ft]||null;if(typeof r=="function")d||km(n);else if(d){var g=null;if(r&&r.hasAttribute("formAction")){if(i=r,d=r[ft]||null)g=d.formAction;else if(Zu(i)!==null)continue}else g=d.action;typeof g=="function"?n[l+1]=g:(n.splice(l,3),l-=3),km(n)}}}function Em(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(d){return i=d})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Qu(e){this._internalRoot=e}yi.prototype.render=Qu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,l=Tt();hm(n,l,e,t,null,null)},yi.prototype.unmount=Qu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hm(e.current,2,null,e,null,null),Ws(),t[gl]=null}};function yi(e){this._internalRoot=e}yi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Oo();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$n.length&&t!==0&&t<$n[n].priority;n++);$n.splice(n,0,e),n===0&&Sm(e)}};var Nm=s.version;if(Nm!=="19.2.4")throw Error(o(527,Nm,"19.2.4"));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?y(e):null,e=e===null?null:e.stateNode,e};var lx={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:E,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bi.isDisabled&&bi.supportsFiber)try{na=bi.inject(lx),bt=bi}catch{}}return Ja.createRoot=function(e,t){if(!f(e))throw Error(o(299));var n=!1,l="",i=zf,r=Of,d=Df;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=mm(e,1,!1,null,null,n,l,null,i,r,d,Em),e[gl]=t.current,Tu(e),new Qu(t)},Ja.hydrateRoot=function(e,t,n){if(!f(e))throw Error(o(299));var l=!1,i="",r=zf,d=Of,g=Df,k=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.formState!==void 0&&(k=n.formState)),t=mm(e,1,!0,t,n??null,l,i,k,r,d,g,Em),t.context=pm(null),n=t.current,l=Tt(),l=Li(l),i=Tn(l),i.callback=null,An(n,i,l),n=l,t.current.lanes=n,aa(t,n),Jt(t),e[gl]=t.current,Tu(e),new yi(t)},Ja.version="19.2.4",Ja}var Mm;function px(){if(Mm)return Ju.exports;Mm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(s){console.error(s)}}return a(),Ju.exports=mx(),Ju.exports}var hx=px();const gx=cp(hx);function xx(a){if(!a)return"";const s=Math.floor(a/1e3);if(s<60)return`${s}s`;const u=Math.floor(s/60);return u<60?`${u}m ${s%60}s`:`${Math.floor(u/60)}h ${u%60}m`}function fp(a){return new Date(a).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1})}function yx(a){return a?`$${a.toFixed(2)}`:""}function bx(a){const s=Math.round(a/1024);return s>=1024?`${(s/1024).toFixed(1)}MB`:`${s}KB`}function dp({provider:a}){const u={"claude-code":"bg-terminal-orange-subtle text-terminal-orange",cursor:"bg-terminal-blue-subtle text-terminal-blue"}[a]||"bg-terminal-surface text-terminal-dim",o=a==="claude-code"?"Claude":a==="cursor"?"Cursor":a;return c.jsx("span",{className:`text-[10px] font-sans font-medium px-2 py-0.5 rounded-full uppercase tracking-wider ${u}`,children:o})}function vx({slug:a,title:s,onSave:u}){const[o,f]=T.useState(!1),[m,p]=T.useState(s||""),[v,h]=T.useState(!1),x=T.useRef(null);T.useEffect(()=>{p(s||"")},[s]),T.useEffect(()=>{o&&x.current?.focus()},[o]);const y=async()=>{if(!v){h(!0);try{await u(a,m.trim())}finally{h(!1),f(!1)}}};return o?c.jsx("form",{onSubmit:b=>{b.preventDefault(),y()},className:"flex items-center gap-1.5 min-w-0",children:c.jsx("input",{ref:x,value:m,onChange:b=>p(b.target.value),onBlur:y,onKeyDown:b=>{b.key==="Escape"&&(p(s||""),f(!1))},className:"bg-terminal-surface-2 rounded px-2 py-0.5 text-sm font-mono text-terminal-text w-full outline-none ring-1 ring-terminal-border-subtle focus:ring-terminal-green/50 transition-shadow duration-200",placeholder:a,disabled:v})}):c.jsxs("button",{onClick:()=>f(!0),className:"group flex items-center gap-1 min-w-0 text-left",title:"Click to edit title",children:[c.jsx("span",{className:"text-sm font-mono text-terminal-text truncate",children:s||a}),c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"shrink-0 text-terminal-dim opacity-0 group-hover:opacity-100 transition-opacity",children:c.jsx("path",{d:"M11.5 1.5l3 3-9 9H2.5v-3l9-9z"})})]})}function mp({summary:a,onOpen:s,onTitleSave:u,onDelete:o,onPublishGist:f,onRegenerate:m,onArchive:p,ghAvailable:v,isPublishing:h,isDeleting:x,isRegenerating:y,isArchived:b}){const[A,z]=T.useState(!1);return c.jsxs("div",{className:`bg-terminal-surface rounded-xl px-5 py-4 hover:bg-terminal-surface-hover transition-colors duration-200 ease-material space-y-2.5 shadow-layer-sm hover-lift ${b?"opacity-50":""}`,children:[c.jsxs("div",{className:"flex items-center justify-between gap-3",children:[c.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[u?c.jsx(vx,{slug:a.slug,title:a.title,onSave:u}):c.jsx("span",{className:"text-sm font-mono text-terminal-text truncate",children:a.title||a.slug}),a.gist&&!a.gist.outdated&&c.jsxs("a",{href:a.gist.viewerUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs font-mono px-1.5 py-0.5 rounded bg-terminal-purple-subtle text-terminal-purple hover:bg-terminal-purple-emphasis transition-colors duration-200 shrink-0",title:"View on vibe-replay.com",children:[c.jsx("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("path",{d:"M6 3H3v10h10v-3M9 2h5v5M14 2L7 9"})}),"Synced"]}),a.gist?.outdated&&f&&c.jsx("button",{onClick:f,disabled:h,className:"inline-flex items-center gap-1 text-xs font-mono px-1.5 py-0.5 rounded bg-terminal-orange-subtle text-terminal-orange hover:bg-terminal-orange-emphasis transition-colors duration-200 disabled:opacity-50 shrink-0",children:h?"Syncing...":"Out of sync"})]}),c.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[c.jsx("button",{onClick:s,className:"px-3.5 py-1.5 text-xs font-sans font-semibold rounded-lg bg-terminal-green-subtle text-terminal-green hover:bg-terminal-green-emphasis transition-all duration-200 ease-material",children:"Open"}),m&&c.jsx("button",{onClick:m,disabled:y,className:"px-2 py-1.5 text-xs font-mono rounded-md text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface/80 transition-colors disabled:opacity-50",children:y?c.jsx("span",{className:"animate-pulse text-terminal-green",children:"..."}):"Redo"}),v&&f&&!a.gist?.gistId&&c.jsx("button",{onClick:f,disabled:h,className:"px-2 py-1.5 text-xs font-mono rounded-md text-terminal-dim hover:text-terminal-purple hover:bg-terminal-purple-subtle transition-colors duration-200 disabled:opacity-50",title:"Publish to Gist",children:h?c.jsx("span",{className:"text-terminal-purple animate-pulse",children:"..."}):c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:c.jsx("path",{d:"M8 2v8M5 5l3-3 3 3M3 11v2h10v-2"})})}),o&&(A?c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx("button",{onClick:()=>{o(),z(!1)},className:"px-2 py-1.5 text-xs font-mono rounded-md bg-terminal-red-subtle text-terminal-red hover:bg-terminal-red-emphasis transition-colors duration-200",children:"Confirm"}),c.jsx("button",{onClick:()=>z(!1),className:"px-2 py-1.5 text-xs font-mono rounded-md text-terminal-dim hover:text-terminal-text transition-colors",children:"Cancel"})]}):c.jsx("button",{onClick:()=>z(!0),className:"px-2 py-1.5 text-xs font-mono rounded-md text-terminal-dim hover:text-terminal-red hover:bg-terminal-red-subtle transition-colors duration-200",title:"Delete",children:c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:c.jsx("path",{d:"M3 4h10M5.5 4V3a1 1 0 011-1h3a1 1 0 011 1v1M6.5 7v4M9.5 7v4M4.5 4l.5 9a1 1 0 001 1h4a1 1 0 001-1l.5-9"})})})),p&&c.jsx("button",{onClick:p,className:"p-1.5 text-terminal-dim hover:text-terminal-text transition-colors",title:b?"Unarchive":"Archive",children:c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:c.jsx("path",{d:"M2 4h12v2H2zM3 6v7h10V6M6.5 8h3"})})})]})]}),(a.messages||(a.firstMessage?[a.firstMessage]:[])).map((S,N)=>c.jsxs("div",{className:"flex gap-2 items-start",children:[c.jsx("span",{className:"text-xs text-terminal-green shrink-0 mt-px select-none",children:">"}),c.jsx("p",{className:"text-sm text-terminal-dim line-clamp-1 leading-relaxed",children:S})]},N)),c.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[c.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-mono tabular-nums px-1.5 py-0.5 rounded-md bg-terminal-surface-2 text-terminal-dim",children:[a.stats.userPrompts," prompts"]}),c.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-mono tabular-nums px-1.5 py-0.5 rounded-md bg-terminal-orange-subtle text-terminal-orange",children:[a.stats.toolCalls," tools"]}),a.stats.durationMs&&c.jsx("span",{className:"inline-flex items-center gap-1 text-xs font-mono tabular-nums px-1.5 py-0.5 rounded-md bg-terminal-surface-2 text-terminal-dim",children:xx(a.stats.durationMs)}),a.stats.costEstimate&&c.jsx("span",{className:"inline-flex items-center gap-1 text-xs font-mono tabular-nums px-1.5 py-0.5 rounded-md bg-terminal-green-subtle text-terminal-green",children:yx(a.stats.costEstimate)}),a.hasAnnotations&&c.jsxs("span",{className:"inline-flex items-center gap-1 text-xs font-mono tabular-nums px-1.5 py-0.5 rounded-md bg-terminal-blue-subtle text-terminal-blue",children:[a.annotationCount," annotation",a.annotationCount!==1?"s":""]})]}),c.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono text-terminal-dimmer flex-wrap",children:[c.jsx(dp,{provider:a.provider}),c.jsx("span",{children:a.project}),c.jsx("span",{className:"text-terminal-border",children:"·"}),c.jsx("span",{children:fp(a.startTime)}),a.model&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-terminal-border",children:"·"}),c.jsx("span",{children:a.model})]})]})]})}function Lm(){const[a,s]=T.useState(""),[u,o]=T.useState(!1),[f,m]=T.useState(null),p=v=>{v.preventDefault();const h=a.trim();if(!h)return;if(o(!0),m(null),/^[a-f0-9]{20,40}$/.test(h)){window.location.search=`?gist=${h}`;return}const x=h.match(/gist\.github\.com\/[^/]+\/([a-f0-9]{20,40})/);if(x){window.location.search=`?gist=${x[1]}`;return}const y=h.match(/[?&]gist=([a-f0-9]{20,40})/);if(y){window.location.search=`?gist=${y[1]}`;return}try{new URL(h),window.location.search=`?url=${encodeURIComponent(h)}`}catch{m("Enter a valid URL or Gist ID"),o(!1)}};return c.jsxs("form",{onSubmit:p,className:"space-y-2",children:[c.jsxs("div",{className:"flex gap-2",children:[c.jsx("input",{value:a,onChange:v=>{s(v.target.value),m(null)},placeholder:"Paste a Gist ID, Gist URL, or replay JSON URL...",className:"flex-1 bg-terminal-surface rounded-lg px-3 py-2.5 text-sm font-mono text-terminal-text placeholder:text-terminal-dimmer outline-none ring-1 ring-transparent focus:ring-terminal-green/40 transition-shadow duration-200 shadow-layer-sm",disabled:u}),c.jsx("button",{type:"submit",disabled:u||!a.trim(),className:"px-4 py-2 text-xs font-mono rounded-lg bg-terminal-green-subtle text-terminal-green hover:bg-terminal-green-emphasis transition-colors duration-200 disabled:opacity-40 font-medium",children:u?"Loading...":"Open"})]}),f&&c.jsx("div",{className:"text-xs font-mono text-terminal-red",children:f})]})}function to(a){const s=new URL(window.location.href);for(const[u,o]of Object.entries(a))o===null?s.searchParams.delete(u):s.searchParams.set(u,o);window.history.pushState({},"",s.toString()),window.dispatchEvent(new PopStateEvent("popstate"))}function no(a){const s=Date.now()-new Date(a).getTime(),u=Math.floor(s/6e4);if(u<1)return"just now";if(u<60)return`${u}m ago`;const o=Math.floor(u/60);if(o<24)return`${o}h ago`;const f=Math.floor(o/24);return f<30?`${f}d ago`:fp(a)}function fl(a){const s=a.replace(/\/$/,"").split("/");return s[s.length-1]||a}function pp(a){const s=new Map;for(const u of a)s.set(u,Sx(u));return s}function Sx(a){if(a.length<=26)return a;const u=a.split("/");if(u.length<=2)return a;const o=u[0],f=u.slice(-2).join("/"),m=`${o}/…/${f}`;if(m.length<=26)return m;const p=u[u.length-1];return`${o}/…/${p}`}function wx(a){const s=a.gitBranch&&a.gitBranch!=="main"&&a.gitBranch!=="master"?a.gitBranch:void 0;return a.title&&a.title!==a.slug?{primary:a.title,branch:s}:{primary:a.slug,branch:s}}function Bm(a){let s=a;return s=s.replace(/<\/?[a-z][a-z0-9-]*>/gi,""),s=s.replace(/Caveat:\s*The messages below were generated by the user while running local commands\.[^.]*/g,""),s=s.replace(/DO NOT respond to these messages[^.]*/g,""),s=s.replace(/^\/\w+\s*/g,""),s=s.replace(/\s+/g," ").trim(),s}const it="__all__";function kx(){const[a,s]=T.useState([]),[u,o]=T.useState(!0),[f,m]=T.useState(null),[p,v]=T.useState(it),[h,x]=T.useState(""),[y,b]=T.useState(null),[A,z]=T.useState(null),[S,N]=T.useState(null),[C,H]=T.useState(""),O=T.useRef(null),[G,F]=T.useState(new Set),[P,ee]=T.useState(!1),K=T.useCallback(()=>{o(!0),m(null),Promise.all([fetch("/api/sources").then(_=>{if(!_.ok)throw new Error("Failed to load sessions");return _.json()}),fetch("/api/archived").then(_=>_.ok?_.json():{slugs:[]})]).then(([_,V])=>{s(_.sessions),F(new Set(V.slugs))}).catch(_=>m(_.message)).finally(()=>o(!1))},[]),ae=async _=>{const V=G.has(_);await fetch(`/api/archive/${_}`,{method:V?"DELETE":"POST"}),F(w=>{const B=new Set(w);return V?B.delete(_):B.add(_),B})};T.useEffect(()=>{K()},[K]),T.useEffect(()=>{S&&O.current?.focus()},[S]);const de=async(_,V)=>{if(!(await fetch(`/api/sessions/${encodeURIComponent(_)}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:V})})).ok)throw new Error("Failed to update title");s(B=>B.map(Q=>Q.slug===_&&Q.replay?{...Q,replay:{...Q.replay,title:V||void 0}}:Q))},le=_=>{N({slug:_.slug,defaultTitle:_.title||_.slug}),H(_.title||_.slug)},te=async()=>{if(!S)return;const _=a.find(V=>V.slug===S.slug);if(_){N(null),b(_.slug),z(null);try{const V=await fetch("/api/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:_.provider,filePaths:_.filePaths,toolPaths:_.toolPaths,title:C.trim()||void 0,sessionSlug:_.slug,sessionProject:_.project})}),w=await V.json();if(!V.ok)throw new Error(w.error||"Generation failed");to({view:null,session:w.slug})}catch(V){z(V.message)}finally{b(null)}}},fe=a.filter(_=>G.has(_.slug)).length,Le=P?a:a.filter(_=>!G.has(_.slug)),me=new Map;for(const _ of Le)me.has(_.project)||me.set(_.project,[]),me.get(_.project)?.push(_);const he=[...me.entries()].sort((_,V)=>{const w=_[1][0]?.timestamp||"";return(V[1][0]?.timestamp||"").localeCompare(w)}),E=pp(he.map(([_])=>_)),Y=p===it?Le:me.get(p)||[],I=h?Y.filter(_=>_.slug.toLowerCase().includes(h.toLowerCase())||_.firstPrompt.toLowerCase().includes(h.toLowerCase())||(_.title||"").toLowerCase().includes(h.toLowerCase())||(_.gitBranch||"").toLowerCase().includes(h.toLowerCase())):Y;return u?c.jsx("div",{className:"flex-1 flex items-center justify-center",children:c.jsx("div",{className:"text-terminal-dim font-mono text-sm animate-pulse",children:"Scanning for AI sessions..."})}):f?c.jsx("div",{className:"flex-1 flex items-center justify-center",children:c.jsxs("div",{className:"text-center space-y-3",children:[c.jsx("div",{className:"text-terminal-red font-mono text-sm",children:f}),c.jsx("button",{onClick:K,className:"px-3 py-1.5 text-xs font-mono rounded-md bg-terminal-surface text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface-hover transition-colors duration-200",children:"Retry"})]})}):a.length===0?c.jsx("div",{className:"flex-1 flex items-center justify-center",children:c.jsxs("div",{className:"text-center space-y-2",children:[c.jsx("div",{className:"text-terminal-dim font-mono text-sm",children:"No AI sessions found"}),c.jsx("div",{className:"text-terminal-dimmer font-mono text-xs",children:"Start a coding session with Claude Code or Cursor, then come back here"})]})}):c.jsxs("div",{className:"flex flex-1 min-h-0",children:[c.jsxs("div",{className:"hidden md:flex w-60 shrink-0 flex-col border-r border-terminal-border-subtle bg-terminal-surface/20",children:[c.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-terminal-border-subtle",children:[c.jsx("span",{className:"text-[10px] font-sans text-terminal-dimmer uppercase tracking-widest font-semibold",children:"Projects"}),c.jsx("button",{onClick:K,className:"p-1.5 rounded-md text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface-hover transition-colors duration-200",title:"Refresh",children:c.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[c.jsx("path",{d:"M2.5 8a5.5 5.5 0 019.3-4M13.5 8a5.5 5.5 0 01-9.3 4"}),c.jsx("path",{d:"M12.5 1v3h-3M3.5 15v-3h3"})]})})]}),c.jsxs("div",{className:"flex-1 overflow-y-auto p-2 space-y-0.5",children:[c.jsxs("button",{onClick:()=>v(it),className:`w-full text-left px-3 py-2.5 text-xs font-mono rounded-lg transition-all duration-200 ease-material flex items-center justify-between ${p===it?"bg-terminal-green-subtle text-terminal-green shadow-layer-sm":"text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface"}`,children:[c.jsx("span",{className:"font-medium",children:"All projects"}),c.jsx("span",{className:`tabular-nums px-1.5 py-0.5 rounded-md text-xs ${p===it?"bg-terminal-green-emphasis text-terminal-green":"bg-terminal-surface text-terminal-dimmer"}`,children:a.length})]}),c.jsx("div",{className:"h-px bg-terminal-border-subtle mx-2 my-1.5"}),he.map(([_,V])=>{const w=V.filter(re=>re.existingReplay).length,B=p===_,Q=E.get(_)||fl(_),W=V[0]?.projectExists!==!1,ne=V.some(re=>re.isGitRepo||re.gitBranch);return c.jsxs("button",{onClick:()=>v(_),title:_,className:`w-full text-left px-3 py-2.5 rounded-lg transition-all duration-200 ease-material group ${B?"bg-terminal-green-subtle shadow-layer-sm":"hover:bg-terminal-surface"} ${W?"":"opacity-50"}`,children:[c.jsxs("div",{className:"flex items-center justify-between gap-1.5",children:[c.jsxs("span",{className:`text-xs font-mono truncate flex items-center gap-1.5 ${B?"text-terminal-green font-medium":W?"text-terminal-text group-hover:text-terminal-text":"text-terminal-dim"}`,children:[ne&&c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"currentColor",className:`shrink-0 ${B?"opacity-70":"opacity-40"}`,children:c.jsx("path",{fillRule:"evenodd",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})}),Q]}),c.jsx("span",{className:`tabular-nums px-1.5 py-0.5 rounded-md text-xs shrink-0 ${B?"bg-terminal-green-emphasis text-terminal-green":"bg-terminal-surface text-terminal-dimmer"}`,children:V.length})]}),c.jsxs("div",{className:"flex items-center gap-2 mt-1 ml-0.5",children:[c.jsx("span",{className:`text-xs font-mono truncate ${B?"text-terminal-dim":"text-terminal-dimmer"}`,children:no(V[0]?.timestamp||"")}),w>0&&c.jsxs("span",{className:`text-xs font-mono ${B?"text-terminal-green":"text-terminal-dimmer"}`,children:[w," ",w===1?"replay":"replays"]})]})]},_)})]})]}),c.jsxs("div",{className:"flex-1 flex flex-col min-h-0 min-w-0",children:[c.jsx("div",{className:"md:hidden px-3 pt-3",children:c.jsxs("select",{value:p,onChange:_=>v(_.target.value),className:"w-full bg-terminal-surface rounded-lg px-3 py-2.5 text-sm font-mono text-terminal-text outline-none shadow-layer-sm",children:[c.jsxs("option",{value:it,children:["All projects (",a.length,")"]}),he.map(([_,V])=>c.jsxs("option",{value:_,children:[E.get(_)||fl(_)," (",V.length,")"]},_))]})}),c.jsxs("div",{className:"px-4 pt-4 pb-2 space-y-3 shrink-0",children:[c.jsxs("div",{className:"hidden md:flex items-center justify-between",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx("h2",{className:"text-base font-mono text-terminal-text truncate font-semibold",children:p===it?"All projects":E.get(p)||fl(p)}),p!==it&&c.jsx("span",{className:"text-xs font-mono text-terminal-dimmer truncate block mt-0.5",children:p})]}),c.jsxs("span",{className:"text-xs font-mono text-terminal-dim tabular-nums px-2 py-1 rounded-md bg-terminal-surface",children:[I.length," session",I.length!==1?"s":""]})]}),c.jsxs("div",{className:"flex gap-2 items-center",children:[c.jsxs("div",{className:"relative flex-1",children:[c.jsxs("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-terminal-dim",width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[c.jsx("circle",{cx:"7",cy:"7",r:"5"}),c.jsx("path",{d:"M11 11l3.5 3.5"})]}),c.jsx("input",{value:h,onChange:_=>x(_.target.value),placeholder:"Filter by branch, title, prompt...",className:"w-full bg-terminal-surface rounded-lg pl-9 pr-3 py-2.5 text-sm font-mono text-terminal-text placeholder:text-terminal-dimmer outline-none ring-1 ring-transparent focus:ring-terminal-green/40 transition-shadow duration-200 shadow-layer-sm"})]}),fe>0&&c.jsx("button",{onClick:()=>ee(!P),className:`shrink-0 px-2.5 py-2 text-xs font-mono rounded-lg transition-colors duration-200 ${P?"bg-terminal-orange-subtle text-terminal-orange":"bg-terminal-surface text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface-hover"}`,title:P?"Hide archived":`View all (${fe} archived)`,children:P?"Active":"View all"})]})]}),A&&c.jsxs("div",{className:"mx-4 mb-2 flex items-center gap-2 bg-terminal-red-subtle rounded-lg px-3 py-2.5 text-xs font-mono text-terminal-red shrink-0 shadow-layer-sm",children:[c.jsx("span",{children:A}),c.jsx("button",{onClick:()=>z(null),className:"ml-auto text-terminal-red/60 hover:text-terminal-red transition-colors",children:"×"})]}),S&&c.jsxs("div",{className:"mx-4 mb-2 bg-terminal-surface rounded-lg px-4 py-3.5 space-y-3 shrink-0 shadow-layer-md",children:[c.jsxs("div",{className:"text-xs font-mono text-terminal-dim",children:["Title for ",c.jsx("span",{className:"text-terminal-text",children:S.slug})]}),c.jsxs("form",{onSubmit:_=>{_.preventDefault(),te()},className:"flex gap-2",children:[c.jsx("input",{ref:O,value:C,onChange:_=>H(_.target.value),className:"flex-1 bg-terminal-bg rounded-lg px-3 py-2.5 text-sm font-mono text-terminal-text placeholder:text-terminal-dimmer outline-none ring-1 ring-terminal-border-subtle focus:ring-terminal-green/40 transition-shadow duration-200",placeholder:S.defaultTitle,onKeyDown:_=>{_.key==="Escape"&&N(null)}}),c.jsx("button",{type:"submit",className:"px-4 py-2 text-xs font-mono rounded-lg bg-terminal-green-subtle text-terminal-green hover:bg-terminal-green-emphasis transition-colors duration-200 font-medium",children:"Generate"}),c.jsx("button",{type:"button",onClick:()=>N(null),className:"px-3 py-2 text-xs font-mono rounded-lg text-terminal-dim hover:text-terminal-text transition-colors",children:"Cancel"})]})]}),c.jsx("div",{className:"flex-1 overflow-y-auto",children:I.length===0?c.jsx("div",{className:"text-center py-12 text-terminal-dim font-mono text-sm",children:h?"No sessions match your filter":"No sessions in this project"}):c.jsx("div",{className:"space-y-2.5 px-4 py-3",children:I.map(_=>{if(_.replay){const Q=G.has(_.slug);return c.jsx(mp,{summary:_.replay,onOpen:()=>to({view:null,session:_.existingReplay}),onTitleSave:de,onRegenerate:()=>le(_),isRegenerating:y===_.slug,onArchive:()=>ae(_.slug),isArchived:Q},`${_.provider}-${_.slug}`)}const V=wx(_),w=(_.prompts||[]).map(Q=>Bm(Q)).filter(Q=>Q.length>0);if(w.length===0&&_.firstPrompt){const Q=Bm(_.firstPrompt);Q&&w.push(Q)}const B=G.has(_.slug);return c.jsxs("div",{className:`bg-terminal-surface rounded-xl px-5 py-4 hover:bg-terminal-surface-hover transition-colors duration-200 ease-material space-y-2.5 shadow-layer-sm hover-lift ${B?"opacity-50":""}`,children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-sm font-mono text-terminal-text truncate",children:V.primary}),V.branch&&c.jsxs("span",{className:"text-xs font-mono px-1.5 py-0.5 rounded bg-terminal-surface-2 text-terminal-dim shrink-0 flex items-center gap-0.5",children:[c.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[c.jsx("circle",{cx:"5",cy:"4",r:"2"}),c.jsx("circle",{cx:"11",cy:"12",r:"2"}),c.jsx("path",{d:"M5 6v4c0 1.1.9 2 2 2h2"})]}),V.branch]}),c.jsxs("div",{className:"flex items-center gap-1.5 shrink-0 ml-auto",children:[c.jsx("span",{className:"text-xs font-mono text-terminal-dimmer",children:no(_.timestamp)}),c.jsx("button",{onClick:()=>le(_),disabled:y===_.slug,className:"px-3 py-1.5 text-xs font-mono rounded-md bg-terminal-green-subtle text-terminal-green hover:bg-terminal-green-emphasis transition-colors duration-200 disabled:opacity-50 font-medium",children:y===_.slug?c.jsx("span",{className:"animate-pulse",children:"Generating..."}):"Generate"}),c.jsx("button",{onClick:()=>ae(_.slug),className:"p-1 text-terminal-dim hover:text-terminal-text transition-colors",title:B?"Unarchive":"Archive",children:c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:c.jsx("path",{d:"M2 4h12v2H2zM3 6v7h10V6M6.5 8h3"})})})]})]}),w.map((Q,W)=>c.jsxs("div",{className:"flex gap-2 items-start",children:[c.jsx("span",{className:"text-xs text-terminal-green shrink-0 mt-px select-none",children:">"}),c.jsx("p",{className:"text-sm text-terminal-dim line-clamp-1 leading-relaxed",children:Q})]},W)),c.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[c.jsx(dp,{provider:_.provider}),p===it&&c.jsx("span",{className:"text-xs font-mono px-1.5 py-0.5 rounded-md bg-terminal-surface-2 text-terminal-dim",title:_.project,children:E.get(_.project)||fl(_.project)}),c.jsx("span",{className:"text-xs font-mono tabular-nums px-1.5 py-0.5 rounded-md bg-terminal-surface-2 text-terminal-dimmer",children:bx(_.fileSize)}),_.filePaths.length>1&&c.jsxs("span",{className:"text-xs font-mono tabular-nums px-1.5 py-0.5 rounded-md bg-terminal-surface-2 text-terminal-dimmer",children:[_.filePaths.length," parts"]}),_.hasSqlite&&c.jsx("span",{className:"text-xs font-mono px-1.5 py-0.5 rounded-md bg-terminal-green-subtle text-terminal-green",children:"db"})]})]},`${_.provider}-${_.slug}`)})})})]})]})}function Ex(){const[a,s]=T.useState([]),[u,o]=T.useState(!0),[f,m]=T.useState(!1),[p,v]=T.useState(null),[h,x]=T.useState(""),[y,b]=T.useState(null),[A,z]=T.useState(null),[S,N]=T.useState(new Set),[C,H]=T.useState(!1),[O,G]=T.useState(it);T.useEffect(()=>{Promise.all([fetch("/api/sessions").then(E=>{if(!E.ok)throw new Error;return E.json()}),fetch("/api/archived").then(E=>E.ok?E.json():{slugs:[]})]).then(([E,Y])=>{s(E),N(new Set(Y.slugs)),m(!0)}).catch(()=>{m(!1)}).finally(()=>o(!1)),fetch("/api/gh-status").then(E=>E.json()).then(E=>v(E.available)).catch(()=>v(!1))},[]);const F=async E=>{const Y=S.has(E);await fetch(`/api/archive/${E}`,{method:Y?"DELETE":"POST"}),N(I=>{const _=new Set(I);return Y?_.delete(E):_.add(E),_})},P=async(E,Y)=>{if(!(await fetch(`/api/sessions/${encodeURIComponent(E)}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:Y})})).ok)throw new Error("Failed to update title");s(_=>_.map(V=>V.slug===E?{...V,title:Y||void 0}:V))},ee=E=>{to({view:null,session:E})},K=async E=>{b(null);try{const Y=await fetch(`/api/sessions/${encodeURIComponent(E)}`,{method:"DELETE"});if(!Y.ok){const I=await Y.json().catch(()=>({}));b(I.error||"Failed to delete session");return}s(I=>I.filter(_=>_.slug!==E))}catch{b("Failed to delete session")}},ae=async E=>{z(E);try{const Y=await fetch(`/api/publish/gist?slug=${encodeURIComponent(E)}`,{method:"POST"});if(!Y.ok){const _=await Y.json().catch(()=>({}));throw new Error(_.error||"Publish failed")}const I=await Y.json();s(_=>_.map(V=>V.slug===E?{...V,gist:{gistId:I.gistId,viewerUrl:I.viewerUrl,updatedAt:new Date().toISOString(),outdated:!1}}:V))}catch(Y){console.error("Gist publish error:",Y.message)}finally{z(null)}},de=a.filter(E=>S.has(E.slug)).length,le=C?a:a.filter(E=>!S.has(E.slug)),te=new Map;for(const E of le)te.has(E.project)||te.set(E.project,[]),te.get(E.project)?.push(E);const fe=[...te.entries()].sort((E,Y)=>{const I=E[1][0]?.startTime||"";return(Y[1][0]?.startTime||"").localeCompare(I)}),Le=pp(fe.map(([E])=>E)),me=O===it?le:te.get(O)||[],he=h?me.filter(E=>(E.title||"").toLowerCase().includes(h.toLowerCase())||E.slug.toLowerCase().includes(h.toLowerCase())||E.project.toLowerCase().includes(h.toLowerCase())||E.provider.toLowerCase().includes(h.toLowerCase())||(E.firstMessage||"").toLowerCase().includes(h.toLowerCase())):me;return u?c.jsx("div",{className:"flex-1 flex items-center justify-center py-12",children:c.jsx("div",{className:"text-terminal-dim font-mono text-sm animate-pulse",children:"Loading..."})}):!f||a.length===0?c.jsx("div",{className:"flex-1 overflow-auto",children:c.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-6 space-y-6",children:[c.jsx(Lm,{}),f&&a.length===0&&c.jsxs("div",{className:"text-center py-12 space-y-2",children:[c.jsx("div",{className:"text-terminal-dim font-mono text-sm",children:"No replays yet"}),c.jsx("div",{className:"text-terminal-dimmer font-mono text-xs",children:"Go to the Sessions tab to generate your first replay"})]}),!f&&c.jsx("div",{className:"text-center py-8 space-y-2",children:c.jsxs("div",{className:"text-terminal-dimmer font-mono text-xs",children:["Or run ",c.jsx("span",{className:"text-terminal-green",children:"npx vibe-replay"})," to create a replay from your AI coding sessions"]})})]})}):c.jsxs("div",{className:"flex flex-1 min-h-0",children:[c.jsxs("div",{className:"hidden md:flex w-60 shrink-0 flex-col border-r border-terminal-border-subtle bg-terminal-surface/20",children:[c.jsx("div",{className:"flex items-center justify-between px-4 py-3 border-b border-terminal-border-subtle",children:c.jsx("span",{className:"text-[10px] font-sans text-terminal-dimmer uppercase tracking-widest font-semibold",children:"Projects"})}),c.jsxs("div",{className:"flex-1 overflow-y-auto p-2 space-y-0.5",children:[c.jsxs("button",{onClick:()=>G(it),className:`w-full text-left px-3 py-2.5 text-xs font-mono rounded-lg transition-all duration-200 ease-material flex items-center justify-between ${O===it?"bg-terminal-green-subtle text-terminal-green shadow-layer-sm":"text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface"}`,children:[c.jsx("span",{className:"font-medium",children:"All replays"}),c.jsx("span",{className:`tabular-nums px-1.5 py-0.5 rounded-md text-xs ${O===it?"bg-terminal-green-emphasis text-terminal-green":"bg-terminal-surface text-terminal-dimmer"}`,children:le.length})]}),c.jsx("div",{className:"h-px bg-terminal-border-subtle mx-2 my-1.5"}),fe.map(([E,Y])=>{const I=O===E,_=Le.get(E)||fl(E),V=Y.filter(w=>w.gist?.gistId).length;return c.jsxs("button",{onClick:()=>G(E),title:E,className:`w-full text-left px-3 py-2.5 rounded-lg transition-all duration-200 ease-material group ${I?"bg-terminal-green-subtle shadow-layer-sm":"hover:bg-terminal-surface"}`,children:[c.jsxs("div",{className:"flex items-center justify-between gap-1.5",children:[c.jsx("span",{className:`text-xs font-mono truncate ${I?"text-terminal-green font-medium":"text-terminal-text group-hover:text-terminal-text"}`,children:_}),c.jsx("span",{className:`tabular-nums px-1.5 py-0.5 rounded-md text-xs shrink-0 ${I?"bg-terminal-green-emphasis text-terminal-green":"bg-terminal-surface text-terminal-dimmer"}`,children:Y.length})]}),c.jsxs("div",{className:"flex items-center gap-2 mt-1 ml-0.5",children:[c.jsx("span",{className:`text-xs font-mono truncate ${I?"text-terminal-dim":"text-terminal-dimmer"}`,children:no(Y[0]?.startTime||"")}),V>0&&c.jsxs("span",{className:`text-xs font-mono ${I?"text-terminal-purple":"text-terminal-dimmer"}`,children:[V," published"]})]})]},E)})]})]}),c.jsxs("div",{className:"flex-1 flex flex-col min-h-0 min-w-0",children:[c.jsx("div",{className:"md:hidden px-3 pt-3",children:c.jsxs("select",{value:O,onChange:E=>G(E.target.value),className:"w-full bg-terminal-surface rounded-lg px-3 py-2.5 text-sm font-mono text-terminal-text outline-none shadow-layer-sm",children:[c.jsxs("option",{value:it,children:["All replays (",le.length,")"]}),fe.map(([E,Y])=>c.jsxs("option",{value:E,children:[Le.get(E)||fl(E)," (",Y.length,")"]},E))]})}),c.jsxs("div",{className:"px-4 pt-4 pb-2 space-y-3 shrink-0",children:[c.jsx(Lm,{}),c.jsxs("div",{className:"hidden md:flex items-center justify-between",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx("h2",{className:"text-base font-mono text-terminal-text truncate font-semibold",children:O===it?"All replays":Le.get(O)||fl(O)}),O!==it&&c.jsx("span",{className:"text-xs font-mono text-terminal-dimmer truncate block mt-0.5",children:O})]}),c.jsxs("span",{className:"text-xs font-mono text-terminal-dim tabular-nums px-2 py-1 rounded-md bg-terminal-surface",children:[he.length," replay",he.length!==1?"s":""]})]}),c.jsxs("div",{className:"flex gap-2 items-center",children:[c.jsxs("div",{className:"relative flex-1",children:[c.jsxs("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-terminal-dim",width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[c.jsx("circle",{cx:"7",cy:"7",r:"5"}),c.jsx("path",{d:"M11 11l3.5 3.5"})]}),c.jsx("input",{value:h,onChange:E=>x(E.target.value),placeholder:"Filter replays...",className:"w-full bg-terminal-surface rounded-lg pl-9 pr-3 py-2.5 text-sm font-mono text-terminal-text placeholder:text-terminal-dimmer outline-none ring-1 ring-transparent focus:ring-terminal-green/40 transition-shadow duration-200 shadow-layer-sm"})]}),de>0&&c.jsx("button",{onClick:()=>H(!C),className:`shrink-0 px-2.5 py-2 text-xs font-mono rounded-lg transition-colors duration-200 ${C?"bg-terminal-orange-subtle text-terminal-orange":"bg-terminal-surface text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface-hover"}`,title:C?"Hide archived":`View all (${de} archived)`,children:C?"Active":"View all"})]})]}),y&&c.jsxs("div",{className:"mx-4 mb-2 flex items-center gap-2 bg-terminal-red-subtle rounded-lg px-3 py-2.5 text-xs font-mono text-terminal-red shrink-0 shadow-layer-sm",children:[c.jsx("span",{children:y}),c.jsx("button",{onClick:()=>b(null),className:"ml-auto text-terminal-red/60 hover:text-terminal-red transition-colors",children:"×"})]}),c.jsx("div",{className:"flex-1 overflow-y-auto",children:he.length===0?c.jsx("div",{className:"text-center py-12 text-terminal-dim font-mono text-sm",children:h?"No replays match your filter":"No replays in this project"}):c.jsx("div",{className:"space-y-2.5 px-4 py-3",children:he.map(E=>{const Y=S.has(E.slug);return c.jsx(mp,{summary:E,onOpen:()=>ee(E.slug),onTitleSave:P,onDelete:()=>K(E.slug),onPublishGist:()=>ae(E.slug),onArchive:()=>F(E.slug),ghAvailable:p===!0,isPublishing:A===E.slug,isArchived:Y},E.slug)})})})]})]})}function Nx(){const a=!!window.__VIBE_REPLAY_EDITOR__,[s,u]=T.useState(a?"sessions":"replays");return c.jsxs("div",{className:"flex-1 flex flex-col min-h-0",children:[a&&c.jsx("div",{className:"shrink-0 px-5 py-3 border-b border-terminal-border-subtle bg-terminal-surface/30",children:c.jsxs("div",{className:"inline-flex items-center rounded-xl bg-terminal-surface p-0.5 shadow-layer-sm",children:[c.jsx("button",{onClick:()=>u("sessions"),className:`px-5 py-2 text-xs font-sans font-semibold rounded-lg transition-all duration-200 ease-material ${s==="sessions"?"bg-terminal-green-subtle text-terminal-green shadow-layer-sm":"text-terminal-dim hover:text-terminal-text"}`,children:"Sessions"}),c.jsx("button",{onClick:()=>u("replays"),className:`px-5 py-2 text-xs font-sans font-semibold rounded-lg transition-all duration-200 ease-material ${s==="replays"?"bg-terminal-green-subtle text-terminal-green shadow-layer-sm":"text-terminal-dim hover:text-terminal-text"}`,children:"Replays"})]})}),s==="sessions"&&a?c.jsx(kx,{}):c.jsx(Ex,{})]})}function jx(a,s,u,o){const f=new Date().toISOString(),m={id:crypto.randomUUID(),sceneIndex:s,body:u,author:"anonymous",createdAt:f,updatedAt:f,resolved:!1};return[...a,m]}function Tx(a,s,u){return a.map(o=>o.id===s?{...o,body:u,updatedAt:new Date().toISOString()}:o)}function Ax(a,s){return a.filter(u=>u.id!==s)}function _x(a){return new Set(a.map(s=>s.sceneIndex))}function Cx(a){const s=new Map;for(const u of a)s.set(u.sceneIndex,(s.get(u.sceneIndex)||0)+1);return s}function Rx(a,s){return JSON.stringify(a)!==JSON.stringify(s)}function Um(a){return a.type==="tool-call"&&!a.diff&&!a.bashOutput}function hp(a,s){const u=a[s];if(!Um(u))return s;const o=u.toolName;let f=s;for(;f+1<a.length&&Um(a[f+1])&&a[f+1].toolName===o;)f++;return f}function Ka(a,s){return(()=>{switch(a.type){case"user-prompt":return 1200;case"thinking":return 600;case"text-response":{const o=a.content.length;return Math.max(800,Math.min(o/40,5)*600)}case"tool-call":return a.diff?1200:a.bashOutput?900:400}})()/s}function zx(a){const s=[];for(let u=0;u<a.length;u++)a[u].type==="user-prompt"&&s.push(u);return s}function Ox(a,s){return a.find(u=>u>s)}function Dx(a,s){for(let u=a.length-1;u>=0;u--)if(a[u]<s)return a[u]}function Mx(a,s,u){let o=s+1;if(o>=a.length)return-1;if(u){for(;o<a.length&&a[o].type!=="user-prompt";)o++;return o>=a.length?-1:o}return hp(a,o)}const Lx="vibe-replay-annotations-";function vi(a){return Lx+a}function Zn(a){const s=new URLSearchParams(window.location.search).get("session");if(!s)return a;const u=a.includes("?")?"&":"?";return`${a}${u}slug=${encodeURIComponent(s)}`}function Bx(a,s="embedded"){const u=a.meta.sessionId,o=s==="editor",f=!!window.__VIBE_REPLAY_DATA__||o,[m,p]=T.useState(()=>{const _=a.annotations??[];if(o)return _;try{const V=localStorage.getItem(vi(u));if(V){const w=JSON.parse(V);if(w.length>0||_.length===0)return w}}catch{}return _}),[v,h]=T.useState(()=>a.annotations??[]),x=Rx(m,v),y=T.useRef(null);T.useEffect(()=>{if(o)return y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{fetch(Zn("/api/annotations"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(m)}).then(()=>{h(m)}).catch(()=>{})},1e3),()=>{y.current&&clearTimeout(y.current)};try{localStorage.setItem(vi(u),JSON.stringify(m))}catch{}},[m,u,o]);const b=T.useMemo(()=>_x(m),[m]),A=T.useMemo(()=>Cx(m),[m]),z=T.useCallback((_,V)=>{p(w=>jx(w,_,V))},[]),S=T.useCallback((_,V)=>{p(w=>Tx(w,_,V))},[]),N=T.useCallback(_=>{p(V=>Ax(V,_))},[]),C=T.useCallback(()=>{if(o)return;const _={...a,annotations:m},w=`window.__VIBE_REPLAY_DATA__ = ${JSON.stringify(_).replace(/<\//g,"<\\/")};`,B=document.getElementById("vibe-replay-data");if(B){const W=B.textContent;B.textContent=w;const ne=`<!DOCTYPE html>
57
+ ${document.documentElement.outerHTML}`;B.textContent=W,Q(ne)}else{const W=document.createElement("script");W.id="vibe-replay-data",W.textContent=w,document.head.appendChild(W);const ne=`<!DOCTYPE html>
58
+ ${document.documentElement.outerHTML}`;document.head.removeChild(W),Q(ne)}function Q(W){const ne=new Blob([W],{type:"text/html"}),re=URL.createObjectURL(ne),pe=document.createElement("a");pe.href=re,pe.download=`${a.meta.slug||"replay"}.html`,document.body.appendChild(pe),pe.click(),document.body.removeChild(pe),URL.revokeObjectURL(re)}h(m);try{localStorage.removeItem(vi(u))}catch{}},[a,m,u,o]),H=T.useCallback(()=>{const _={...a,annotations:m},V=JSON.stringify(_,null,2),w=new Blob([V],{type:"application/json"}),B=URL.createObjectURL(w),Q=document.createElement("a");Q.href=B,Q.download="replay.json",document.body.appendChild(Q),Q.click(),document.body.removeChild(Q),URL.revokeObjectURL(B),h(m);try{localStorage.removeItem(vi(u))}catch{}},[a,m,u]),[O,G]=T.useState(!1),F=o?async()=>{G(!0);try{await fetch(Zn("/api/annotations"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(m)});const _=await fetch(Zn("/api/publish/gist"),{method:"POST"}),V=await _.json();if(!_.ok)throw new Error(V.error||`Server error: ${_.status}`);return h(m),V}finally{G(!1)}}:null,[P,ee]=T.useState([]),[K,ae]=T.useState(null),[de,le]=T.useState(!1),te=T.useRef(null),fe=T.useMemo(()=>K&&P.find(_=>_.name===K)||null,[K,P]);T.useEffect(()=>{o&&fetch(Zn("/api/feedback/detect")).then(_=>_.json()).then(_=>{if(!_.available)return;const V=Array.isArray(_.tools)?_.tools:_.tool?[_.tool]:[];ee(V);const w=_.defaultTool?.name||_.tool?.name||V[0]?.name||null;ae(w)}).catch(()=>{})},[o]);const Le=o&&K?async()=>{const _=new AbortController;te.current=_,le(!0);try{await fetch(Zn("/api/annotations"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(m),signal:_.signal});const V=await fetch(Zn("/api/feedback/generate"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({toolName:K}),signal:_.signal}),w=await V.json();if(!V.ok)throw new Error(w.error||"AI Coach failed");return p(w.annotations),h(w.annotations),{score:w.score,itemCount:w.itemCount}}finally{te.current=null,le(!1)}}:null,me=o?_=>{ae(_)}:null,he=o?()=>{te.current&&te.current.abort()}:null,[E,Y]=T.useState(!1);return{annotations:m,annotatedScenes:b,annotationCounts:A,add:z,update:S,remove:N,hasUnsaved:x,canSaveHtml:f,downloadHtml:C,downloadJson:H,publishGist:F,exportHtml:o?async()=>{Y(!0);try{await fetch(Zn("/api/annotations"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(m)});const _=await fetch(Zn("/api/export/html"),{method:"POST"}),V=await _.json();if(!_.ok)throw new Error(V.error||`Export failed: ${_.status}`);const{path:w}=V;return h(m),w}finally{Y(!1)}}:null,gistPublishing:O,htmlExporting:E,aiCoachTool:fe,aiCoachTools:P,aiCoachToolName:K,setAiCoachToolName:me,runAiCoach:Le,cancelAiCoach:he,aiCoachRunning:de}}function Ux(a){const s=a;if(!s)return!1;const u=s.tagName;if(u==="INPUT"||u==="TEXTAREA"||u==="SELECT"||s.isContentEditable)return!0;const o=s.getAttribute("role");return o==="textbox"||o==="combobox"}function Hx(a,s=!1,u=!0){const[o,f]=T.useState("idle"),[m,p]=T.useState(-1),[v,h]=T.useState(1),[x,y]=T.useState(0),b=T.useRef(null),A=T.useRef(o),z=T.useRef(m),S=T.useRef(v),N=T.useRef(s);A.current=o,z.current=m,S.current=v,N.current=s;const C=T.useMemo(()=>zx(a),[a]),H=T.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=null)},[]),O=T.useCallback(()=>{if(A.current!=="playing")return;const le=Mx(a,z.current,N.current);if(le===-1){f("ended"),p(a.length-1),y(a.length);return}p(le),y(le+1);const te=Ka(a[le],S.current);b.current=setTimeout(O,te)},[a]),G=T.useCallback(()=>{a.length!==0&&(A.current==="ended"&&(p(-1),y(0)),f("playing"),setTimeout(()=>{if(z.current<0){const le=hp(a,0);p(le),y(le+1);const te=Ka(a[le],S.current);b.current=setTimeout(O,te)}else{const le=a[z.current];if(le){const te=Ka(le,S.current)/2;b.current=setTimeout(O,te)}}},50))},[a,O]),F=T.useCallback(()=>{H(),f("paused")},[H]),P=T.useCallback(()=>{A.current==="playing"?F():G()},[G,F]),ee=T.useCallback(le=>{H();const te=Math.max(0,Math.min(le,a.length-1));if(p(te),y(te+1),A.current==="playing"){const fe=Ka(a[te],S.current);b.current=setTimeout(O,fe)}(A.current==="ended"||A.current==="idle")&&f("paused")},[a,H,O]),K=T.useCallback(()=>{const le=Ox(C,z.current);le!==void 0&&ee(le)},[C,ee]),ae=T.useCallback(()=>{const le=Dx(C,z.current);le!==void 0&&ee(le)},[C,ee]),de=T.useCallback(le=>{if(h(le),A.current==="playing"){H();const te=a[z.current];if(te){const fe=Ka(te,le);b.current=setTimeout(O,fe)}}},[a,H,O]);return T.useEffect(()=>H,[H]),T.useEffect(()=>{if(!u)return;const le=te=>{Ux(te.target)||(te.key===" "||te.key==="k"?(te.preventDefault(),P()):te.key==="ArrowRight"||te.key==="l"?(te.preventDefault(),ee(z.current+1)):te.key==="ArrowLeft"||te.key==="j"?(te.preventDefault(),ee(z.current-1)):te.key==="n"?(te.preventDefault(),K()):te.key==="p"?(te.preventDefault(),ae()):te.key==="Home"?(te.preventDefault(),ee(0)):(te.key==="End"||te.key==="e")&&(te.preventDefault(),ee(a.length-1)))};return window.addEventListener("keydown",le),()=>window.removeEventListener("keydown",le)},[u,P,ee,K,ae,a.length]),{state:o,currentIndex:m,visibleCount:x,speed:v,play:G,pause:F,togglePlayPause:P,seekTo:ee,changeSpeed:de,jumpToNextUserPrompt:K,jumpToPrevUserPrompt:ae,userPromptIndices:C,totalScenes:a.length}}function ho(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ml=ho();function gp(a){ml=a}var cl={exec:()=>null};function Ne(a,s=""){let u=typeof a=="string"?a:a.source,o={replace:(f,m)=>{let p=typeof m=="string"?m:m.source;return p=p.replace(ct.caret,"$1"),u=u.replace(f,p),o},getRegex:()=>new RegExp(u,s)};return o}var qx=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),ct={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:a=>new RegExp(`^( {0,3}${a})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}#`),htmlBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:a=>new RegExp(`^ {0,${Math.min(3,a-1)}}>`)},Gx=/^(?:[ \t]*(?:\n|$))+/,$x=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Yx=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ns=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Zx=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,go=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,xp=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,yp=Ne(xp).replace(/bull/g,go).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Xx=Ne(xp).replace(/bull/g,go).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),xo=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Qx=/^[^\n]+/,yo=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Vx=Ne(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",yo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Fx=Ne(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,go).getRegex(),_i="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",bo=/\x3C!--(?:-?>|[\s\S]*?(?:-->|$))/,Jx=Ne("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",bo).replace("tag",_i).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),bp=Ne(xo).replace("hr",ns).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_i).getRegex(),Kx=Ne(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",bp).getRegex(),vo={blockquote:Kx,code:$x,def:Vx,fences:Yx,heading:Zx,hr:ns,html:Jx,lheading:yp,list:Fx,newline:Gx,paragraph:bp,table:cl,text:Qx},Hm=Ne("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ns).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_i).getRegex(),Ix={...vo,lheading:Xx,table:Hm,paragraph:Ne(xo).replace("hr",ns).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Hm).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_i).getRegex()},Wx={...vo,html:Ne(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",bo).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:cl,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ne(xo).replace("hr",ns).replace("heading",` *#{1,6} *[^
59
+ ]`).replace("lheading",yp).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Px=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ey=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,vp=/^( {2,}|\\)\n(?!\s*$)/,ty=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ci=/[\p{P}\p{S}]/u,So=/[\s\p{P}\p{S}]/u,Sp=/[^\s\p{P}\p{S}]/u,ny=Ne(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,So).getRegex(),wp=/(?!~)[\p{P}\p{S}]/u,ly=/(?!~)[\s\p{P}\p{S}]/u,ay=/(?:[^\s\p{P}\p{S}]|~)/u,kp=/(?![*_])[\p{P}\p{S}]/u,sy=/(?![*_])[\s\p{P}\p{S}]/u,iy=/(?:[^\s\p{P}\p{S}]|[*_])/u,ry=Ne(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",qx?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ep=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,uy=Ne(Ep,"u").replace(/punct/g,Ci).getRegex(),oy=Ne(Ep,"u").replace(/punct/g,wp).getRegex(),Np="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",cy=Ne(Np,"gu").replace(/notPunctSpace/g,Sp).replace(/punctSpace/g,So).replace(/punct/g,Ci).getRegex(),fy=Ne(Np,"gu").replace(/notPunctSpace/g,ay).replace(/punctSpace/g,ly).replace(/punct/g,wp).getRegex(),dy=Ne("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Sp).replace(/punctSpace/g,So).replace(/punct/g,Ci).getRegex(),my=Ne(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,kp).getRegex(),py="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",hy=Ne(py,"gu").replace(/notPunctSpace/g,iy).replace(/punctSpace/g,sy).replace(/punct/g,kp).getRegex(),gy=Ne(/\\(punct)/,"gu").replace(/punct/g,Ci).getRegex(),xy=Ne(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),yy=Ne(bo).replace("(?:-->|$)","-->").getRegex(),by=Ne("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",yy).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ei=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,vy=Ne(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Ei).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),jp=Ne(/^!?\[(label)\]\[(ref)\]/).replace("label",Ei).replace("ref",yo).getRegex(),Tp=Ne(/^!?\[(ref)\](?:\[\])?/).replace("ref",yo).getRegex(),Sy=Ne("reflink|nolink(?!\\()","g").replace("reflink",jp).replace("nolink",Tp).getRegex(),qm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,wo={_backpedal:cl,anyPunctuation:gy,autolink:xy,blockSkip:ry,br:vp,code:ey,del:cl,delLDelim:cl,delRDelim:cl,emStrongLDelim:uy,emStrongRDelimAst:cy,emStrongRDelimUnd:dy,escape:Px,link:vy,nolink:Tp,punctuation:ny,reflink:jp,reflinkSearch:Sy,tag:by,text:ty,url:cl},wy={...wo,link:Ne(/^!?\[(label)\]\((.*?)\)/).replace("label",Ei).getRegex(),reflink:Ne(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ei).getRegex()},lo={...wo,emStrongRDelimAst:fy,emStrongLDelim:oy,delLDelim:my,delRDelim:hy,url:Ne(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",qm).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ne(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",qm).getRegex()},ky={...lo,br:Ne(vp).replace("{2,}","*").getRegex(),text:Ne(lo.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Si={normal:vo,gfm:Ix,pedantic:Wx},Ia={normal:wo,gfm:lo,breaks:ky,pedantic:wy},Ey={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Gm=a=>Ey[a];function Kt(a,s){if(s){if(ct.escapeTest.test(a))return a.replace(ct.escapeReplace,Gm)}else if(ct.escapeTestNoEncode.test(a))return a.replace(ct.escapeReplaceNoEncode,Gm);return a}function $m(a){try{a=encodeURI(a).replace(ct.percentDecode,"%")}catch{return null}return a}function Ym(a,s){let u=a.replace(ct.findPipe,(m,p,v)=>{let h=!1,x=p;for(;--x>=0&&v[x]==="\\";)h=!h;return h?"|":" |"}),o=u.split(ct.splitPipe),f=0;if(o[0].trim()||o.shift(),o.length>0&&!o.at(-1)?.trim()&&o.pop(),s)if(o.length>s)o.splice(s);else for(;o.length<s;)o.push("");for(;f<o.length;f++)o[f]=o[f].trim().replace(ct.slashPipe,"|");return o}function Wa(a,s,u){let o=a.length;if(o===0)return"";let f=0;for(;f<o&&a.charAt(o-f-1)===s;)f++;return a.slice(0,o-f)}function Ny(a,s){if(a.indexOf(s[1])===-1)return-1;let u=0;for(let o=0;o<a.length;o++)if(a[o]==="\\")o++;else if(a[o]===s[0])u++;else if(a[o]===s[1]&&(u--,u<0))return o;return u>0?-2:-1}function jy(a,s=0){let u=s,o="";for(let f of a)if(f===" "){let m=4-u%4;o+=" ".repeat(m),u+=m}else o+=f,u++;return o}function Zm(a,s,u,o,f){let m=s.href,p=s.title||null,v=a[1].replace(f.other.outputLinkReplace,"$1");o.state.inLink=!0;let h={type:a[0].charAt(0)==="!"?"image":"link",raw:u,href:m,title:p,text:v,tokens:o.inlineTokens(v)};return o.state.inLink=!1,h}function Ty(a,s,u){let o=a.match(u.other.indentCodeCompensation);if(o===null)return s;let f=o[1];return s.split(`
60
+ `).map(m=>{let p=m.match(u.other.beginningSpace);if(p===null)return m;let[v]=p;return v.length>=f.length?m.slice(f.length):m}).join(`
61
+ `)}var Ni=class{options;rules;lexer;constructor(a){this.options=a||ml}space(a){let s=this.rules.block.newline.exec(a);if(s&&s[0].length>0)return{type:"space",raw:s[0]}}code(a){let s=this.rules.block.code.exec(a);if(s){let u=s[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:s[0],codeBlockStyle:"indented",text:this.options.pedantic?u:Wa(u,`
62
+ `)}}}fences(a){let s=this.rules.block.fences.exec(a);if(s){let u=s[0],o=Ty(u,s[3]||"",this.rules);return{type:"code",raw:u,lang:s[2]?s[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):s[2],text:o}}}heading(a){let s=this.rules.block.heading.exec(a);if(s){let u=s[2].trim();if(this.rules.other.endingHash.test(u)){let o=Wa(u,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(u=o.trim())}return{type:"heading",raw:s[0],depth:s[1].length,text:u,tokens:this.lexer.inline(u)}}}hr(a){let s=this.rules.block.hr.exec(a);if(s)return{type:"hr",raw:Wa(s[0],`
63
+ `)}}blockquote(a){let s=this.rules.block.blockquote.exec(a);if(s){let u=Wa(s[0],`
69
64
  `).split(`
70
- `),u="",f="",m=[];for(;o.length>0;){let p=!1,v=[],h;for(h=0;h<o.length;h++)if(this.rules.other.blockquoteStart.test(o[h]))v.push(o[h]),p=!0;else if(!p)v.push(o[h]);else break;o=o.slice(h);let x=v.join(`
65
+ `),o="",f="",m=[];for(;u.length>0;){let p=!1,v=[],h;for(h=0;h<u.length;h++)if(this.rules.other.blockquoteStart.test(u[h]))v.push(u[h]),p=!0;else if(!p)v.push(u[h]);else break;u=u.slice(h);let x=v.join(`
71
66
  `),y=x.replace(this.rules.other.blockquoteSetextReplace,`
72
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");u=u?`${u}
67
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
73
68
  ${x}`:x,f=f?`${f}
74
- ${y}`:y;let b=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(y,m,!0),this.lexer.state.top=b,o.length===0)break;let T=m.at(-1);if(T?.type==="code")break;if(T?.type==="blockquote"){let R=T,S=R.raw+`
75
- `+o.join(`
76
- `),w=this.blockquote(S);m[m.length-1]=w,u=u.substring(0,u.length-R.raw.length)+w.raw,f=f.substring(0,f.length-R.text.length)+w.text;break}else if(T?.type==="list"){let R=T,S=R.raw+`
77
- `+o.join(`
78
- `),w=this.list(S);m[m.length-1]=w,u=u.substring(0,u.length-T.raw.length)+w.raw,f=f.substring(0,f.length-R.raw.length)+w.raw,o=S.substring(m.at(-1).raw.length).split(`
79
- `);continue}}return{type:"blockquote",raw:u,tokens:m,text:f}}}list(a){let i=this.rules.block.list.exec(a);if(i){let o=i[1].trim(),u=o.length>1,f={type:"list",raw:"",ordered:u,start:u?+o.slice(0,-1):"",loose:!1,items:[]};o=u?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=u?o:"[*+-]");let m=this.rules.other.listItemRegex(o),p=!1;for(;a;){let h=!1,x="",y="";if(!(i=m.exec(a))||this.rules.block.hr.test(a))break;x=i[0],a=a.substring(x.length);let b=dy(i[2].split(`
80
- `,1)[0],i[1].length),T=a.split(`
81
- `,1)[0],R=!b.trim(),S=0;if(this.options.pedantic?(S=2,y=b.trimStart()):R?S=i[1].length+1:(S=b.search(this.rules.other.nonSpaceChar),S=S>4?1:S,y=b.slice(S),S+=i[1].length),R&&this.rules.other.blankLine.test(T)&&(x+=T+`
82
- `,a=a.substring(T.length+1),h=!0),!h){let w=this.rules.other.nextBulletRegex(S),A=this.rules.other.hrRegex(S),H=this.rules.other.fencesBeginRegex(S),M=this.rules.other.headingBeginRegex(S),Y=this.rules.other.htmlBeginRegex(S),F=this.rules.other.blockquoteBeginRegex(S);for(;a;){let P=a.split(`
83
- `,1)[0],ee;if(T=P,this.options.pedantic?(T=T.replace(this.rules.other.listReplaceNesting," "),ee=T):ee=T.replace(this.rules.other.tabCharGlobal," "),H.test(T)||M.test(T)||Y.test(T)||F.test(T)||w.test(T)||A.test(T))break;if(ee.search(this.rules.other.nonSpaceChar)>=S||!T.trim())y+=`
84
- `+ee.slice(S);else{if(R||b.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||H.test(b)||M.test(b)||A.test(b))break;y+=`
85
- `+T}R=!T.trim(),x+=P+`
86
- `,a=a.substring(P.length+1),b=ee.slice(S)}}f.loose||(p?f.loose=!0:this.rules.other.doubleBlankLine.test(x)&&(p=!0)),f.items.push({type:"list_item",raw:x,task:!!this.options.gfm&&this.rules.other.listIsTask.test(y),loose:!1,text:y,tokens:[]}),f.raw+=x}let v=f.items.at(-1);if(v)v.raw=v.raw.trimEnd(),v.text=v.text.trimEnd();else return;f.raw=f.raw.trimEnd();for(let h of f.items){if(this.lexer.state.top=!1,h.tokens=this.lexer.blockTokens(h.text,[]),h.task){if(h.text=h.text.replace(this.rules.other.listReplaceTask,""),h.tokens[0]?.type==="text"||h.tokens[0]?.type==="paragraph"){h.tokens[0].raw=h.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),h.tokens[0].text=h.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let y=this.lexer.inlineQueue.length-1;y>=0;y--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[y].src)){this.lexer.inlineQueue[y].src=this.lexer.inlineQueue[y].src.replace(this.rules.other.listReplaceTask,"");break}}let x=this.rules.other.listTaskCheckbox.exec(h.raw);if(x){let y={type:"checkbox",raw:x[0]+" ",checked:x[0]!=="[ ]"};h.checked=y.checked,f.loose?h.tokens[0]&&["paragraph","text"].includes(h.tokens[0].type)&&"tokens"in h.tokens[0]&&h.tokens[0].tokens?(h.tokens[0].raw=y.raw+h.tokens[0].raw,h.tokens[0].text=y.raw+h.tokens[0].text,h.tokens[0].tokens.unshift(y)):h.tokens.unshift({type:"paragraph",raw:y.raw,text:y.raw,tokens:[y]}):h.tokens.unshift(y)}}if(!f.loose){let x=h.tokens.filter(b=>b.type==="space"),y=x.length>0&&x.some(b=>this.rules.other.anyLine.test(b.raw));f.loose=y}}if(f.loose)for(let h of f.items){h.loose=!0;for(let x of h.tokens)x.type==="text"&&(x.type="paragraph")}return f}}html(a){let i=this.rules.block.html.exec(a);if(i)return{type:"html",block:!0,raw:i[0],pre:i[1]==="pre"||i[1]==="script"||i[1]==="style",text:i[0]}}def(a){let i=this.rules.block.def.exec(a);if(i){let o=i[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),u=i[2]?i[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",f=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):i[3];return{type:"def",tag:o,raw:i[0],href:u,title:f}}}table(a){let i=this.rules.block.table.exec(a);if(!i||!this.rules.other.tableDelimiter.test(i[2]))return;let o=$p(i[1]),u=i[2].replace(this.rules.other.tableAlignChars,"").split("|"),f=i[3]?.trim()?i[3].replace(this.rules.other.tableRowBlankLine,"").split(`
87
- `):[],m={type:"table",raw:i[0],header:[],align:[],rows:[]};if(o.length===u.length){for(let p of u)this.rules.other.tableAlignRight.test(p)?m.align.push("right"):this.rules.other.tableAlignCenter.test(p)?m.align.push("center"):this.rules.other.tableAlignLeft.test(p)?m.align.push("left"):m.align.push(null);for(let p=0;p<o.length;p++)m.header.push({text:o[p],tokens:this.lexer.inline(o[p]),header:!0,align:m.align[p]});for(let p of f)m.rows.push($p(p,m.header.length).map((v,h)=>({text:v,tokens:this.lexer.inline(v),header:!1,align:m.align[h]})));return m}}lheading(a){let i=this.rules.block.lheading.exec(a);if(i)return{type:"heading",raw:i[0],depth:i[2].charAt(0)==="="?1:2,text:i[1],tokens:this.lexer.inline(i[1])}}paragraph(a){let i=this.rules.block.paragraph.exec(a);if(i){let o=i[1].charAt(i[1].length-1)===`
88
- `?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:o,tokens:this.lexer.inline(o)}}}text(a){let i=this.rules.block.text.exec(a);if(i)return{type:"text",raw:i[0],text:i[0],tokens:this.lexer.inline(i[0])}}escape(a){let i=this.rules.inline.escape.exec(a);if(i)return{type:"escape",raw:i[0],text:i[1]}}tag(a){let i=this.rules.inline.tag.exec(a);if(i)return!this.lexer.state.inLink&&this.rules.other.startATag.test(i[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:i[0]}}link(a){let i=this.rules.inline.link.exec(a);if(i){let o=i[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;let m=Ia(o.slice(0,-1),"\\");if((o.length-m.length)%2===0)return}else{let m=fy(i[2],"()");if(m===-2)return;if(m>-1){let p=(i[0].indexOf("!")===0?5:4)+i[1].length+m;i[2]=i[2].substring(0,m),i[0]=i[0].substring(0,p).trim(),i[3]=""}}let u=i[2],f="";if(this.options.pedantic){let m=this.rules.other.pedanticHrefTitle.exec(u);m&&(u=m[1],f=m[3])}else f=i[3]?i[3].slice(1,-1):"";return u=u.trim(),this.rules.other.startAngleBracket.test(u)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(o)?u=u.slice(1):u=u.slice(1,-1)),Zp(i,{href:u&&u.replace(this.rules.inline.anyPunctuation,"$1"),title:f&&f.replace(this.rules.inline.anyPunctuation,"$1")},i[0],this.lexer,this.rules)}}reflink(a,i){let o;if((o=this.rules.inline.reflink.exec(a))||(o=this.rules.inline.nolink.exec(a))){let u=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),f=i[u.toLowerCase()];if(!f){let m=o[0].charAt(0);return{type:"text",raw:m,text:m}}return Zp(o,f,o[0],this.lexer,this.rules)}}emStrong(a,i,o=""){let u=this.rules.inline.emStrongLDelim.exec(a);if(!(!u||u[3]&&o.match(this.rules.other.unicodeAlphaNumeric))&&(!(u[1]||u[2])||!o||this.rules.inline.punctuation.exec(o))){let f=[...u[0]].length-1,m,p,v=f,h=0,x=u[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(x.lastIndex=0,i=i.slice(-1*a.length+f);(u=x.exec(i))!=null;){if(m=u[1]||u[2]||u[3]||u[4]||u[5]||u[6],!m)continue;if(p=[...m].length,u[3]||u[4]){v+=p;continue}else if((u[5]||u[6])&&f%3&&!((f+p)%3)){h+=p;continue}if(v-=p,v>0)continue;p=Math.min(p,p+v+h);let y=[...u[0]][0].length,b=a.slice(0,f+u.index+y+p);if(Math.min(f,p)%2){let R=b.slice(1,-1);return{type:"em",raw:b,text:R,tokens:this.lexer.inlineTokens(R)}}let T=b.slice(2,-2);return{type:"strong",raw:b,text:T,tokens:this.lexer.inlineTokens(T)}}}}codespan(a){let i=this.rules.inline.code.exec(a);if(i){let o=i[2].replace(this.rules.other.newLineCharGlobal," "),u=this.rules.other.nonSpaceChar.test(o),f=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return u&&f&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:i[0],text:o}}}br(a){let i=this.rules.inline.br.exec(a);if(i)return{type:"br",raw:i[0]}}del(a,i,o=""){let u=this.rules.inline.delLDelim.exec(a);if(u&&(!u[1]||!o||this.rules.inline.punctuation.exec(o))){let f=[...u[0]].length-1,m,p,v=f,h=this.rules.inline.delRDelim;for(h.lastIndex=0,i=i.slice(-1*a.length+f);(u=h.exec(i))!=null;){if(m=u[1]||u[2]||u[3]||u[4]||u[5]||u[6],!m||(p=[...m].length,p!==f))continue;if(u[3]||u[4]){v+=p;continue}if(v-=p,v>0)continue;p=Math.min(p,p+v);let x=[...u[0]][0].length,y=a.slice(0,f+u.index+x+p),b=y.slice(f,-f);return{type:"del",raw:y,text:b,tokens:this.lexer.inlineTokens(b)}}}}autolink(a){let i=this.rules.inline.autolink.exec(a);if(i){let o,u;return i[2]==="@"?(o=i[1],u="mailto:"+o):(o=i[1],u=o),{type:"link",raw:i[0],text:o,href:u,tokens:[{type:"text",raw:o,text:o}]}}}url(a){let i;if(i=this.rules.inline.url.exec(a)){let o,u;if(i[2]==="@")o=i[0],u="mailto:"+o;else{let f;do f=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])?.[0]??"";while(f!==i[0]);o=i[0],i[1]==="www."?u="http://"+i[0]:u=i[0]}return{type:"link",raw:i[0],text:o,href:u,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(a){let i=this.rules.inline.text.exec(a);if(i){let o=this.lexer.state.inRawBlock;return{type:"text",raw:i[0],text:i[0],escaped:o}}}},$t=class lu{tokens;options;state;inlineQueue;tokenizer;constructor(i){this.tokens=[],this.tokens.links=Object.create(null),this.options=i||fl,this.options.tokenizer=this.options.tokenizer||new Ni,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let o={other:st,block:vi.normal,inline:Ka.normal};this.options.pedantic?(o.block=vi.pedantic,o.inline=Ka.pedantic):this.options.gfm&&(o.block=vi.gfm,this.options.breaks?o.inline=Ka.breaks:o.inline=Ka.gfm),this.tokenizer.rules=o}static get rules(){return{block:vi,inline:Ka}}static lex(i,o){return new lu(o).lex(i)}static lexInline(i,o){return new lu(o).inlineTokens(i)}lex(i){i=i.replace(st.carriageReturn,`
89
- `),this.blockTokens(i,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){let u=this.inlineQueue[o];this.inlineTokens(u.src,u.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(i,o=[],u=!1){for(this.options.pedantic&&(i=i.replace(st.tabCharGlobal," ").replace(st.spaceLine,""));i;){let f;if(this.options.extensions?.block?.some(p=>(f=p.call({lexer:this},i,o))?(i=i.substring(f.raw.length),o.push(f),!0):!1))continue;if(f=this.tokenizer.space(i)){i=i.substring(f.raw.length);let p=o.at(-1);f.raw.length===1&&p!==void 0?p.raw+=`
90
- `:o.push(f);continue}if(f=this.tokenizer.code(i)){i=i.substring(f.raw.length);let p=o.at(-1);p?.type==="paragraph"||p?.type==="text"?(p.raw+=(p.raw.endsWith(`
69
+ ${y}`:y;let b=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(y,m,!0),this.lexer.state.top=b,u.length===0)break;let A=m.at(-1);if(A?.type==="code")break;if(A?.type==="blockquote"){let z=A,S=z.raw+`
70
+ `+u.join(`
71
+ `),N=this.blockquote(S);m[m.length-1]=N,o=o.substring(0,o.length-z.raw.length)+N.raw,f=f.substring(0,f.length-z.text.length)+N.text;break}else if(A?.type==="list"){let z=A,S=z.raw+`
72
+ `+u.join(`
73
+ `),N=this.list(S);m[m.length-1]=N,o=o.substring(0,o.length-A.raw.length)+N.raw,f=f.substring(0,f.length-z.raw.length)+N.raw,u=S.substring(m.at(-1).raw.length).split(`
74
+ `);continue}}return{type:"blockquote",raw:o,tokens:m,text:f}}}list(a){let s=this.rules.block.list.exec(a);if(s){let u=s[1].trim(),o=u.length>1,f={type:"list",raw:"",ordered:o,start:o?+u.slice(0,-1):"",loose:!1,items:[]};u=o?`\\d{1,9}\\${u.slice(-1)}`:`\\${u}`,this.options.pedantic&&(u=o?u:"[*+-]");let m=this.rules.other.listItemRegex(u),p=!1;for(;a;){let h=!1,x="",y="";if(!(s=m.exec(a))||this.rules.block.hr.test(a))break;x=s[0],a=a.substring(x.length);let b=jy(s[2].split(`
75
+ `,1)[0],s[1].length),A=a.split(`
76
+ `,1)[0],z=!b.trim(),S=0;if(this.options.pedantic?(S=2,y=b.trimStart()):z?S=s[1].length+1:(S=b.search(this.rules.other.nonSpaceChar),S=S>4?1:S,y=b.slice(S),S+=s[1].length),z&&this.rules.other.blankLine.test(A)&&(x+=A+`
77
+ `,a=a.substring(A.length+1),h=!0),!h){let N=this.rules.other.nextBulletRegex(S),C=this.rules.other.hrRegex(S),H=this.rules.other.fencesBeginRegex(S),O=this.rules.other.headingBeginRegex(S),G=this.rules.other.htmlBeginRegex(S),F=this.rules.other.blockquoteBeginRegex(S);for(;a;){let P=a.split(`
78
+ `,1)[0],ee;if(A=P,this.options.pedantic?(A=A.replace(this.rules.other.listReplaceNesting," "),ee=A):ee=A.replace(this.rules.other.tabCharGlobal," "),H.test(A)||O.test(A)||G.test(A)||F.test(A)||N.test(A)||C.test(A))break;if(ee.search(this.rules.other.nonSpaceChar)>=S||!A.trim())y+=`
79
+ `+ee.slice(S);else{if(z||b.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||H.test(b)||O.test(b)||C.test(b))break;y+=`
80
+ `+A}z=!A.trim(),x+=P+`
81
+ `,a=a.substring(P.length+1),b=ee.slice(S)}}f.loose||(p?f.loose=!0:this.rules.other.doubleBlankLine.test(x)&&(p=!0)),f.items.push({type:"list_item",raw:x,task:!!this.options.gfm&&this.rules.other.listIsTask.test(y),loose:!1,text:y,tokens:[]}),f.raw+=x}let v=f.items.at(-1);if(v)v.raw=v.raw.trimEnd(),v.text=v.text.trimEnd();else return;f.raw=f.raw.trimEnd();for(let h of f.items){if(this.lexer.state.top=!1,h.tokens=this.lexer.blockTokens(h.text,[]),h.task){if(h.text=h.text.replace(this.rules.other.listReplaceTask,""),h.tokens[0]?.type==="text"||h.tokens[0]?.type==="paragraph"){h.tokens[0].raw=h.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),h.tokens[0].text=h.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let y=this.lexer.inlineQueue.length-1;y>=0;y--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[y].src)){this.lexer.inlineQueue[y].src=this.lexer.inlineQueue[y].src.replace(this.rules.other.listReplaceTask,"");break}}let x=this.rules.other.listTaskCheckbox.exec(h.raw);if(x){let y={type:"checkbox",raw:x[0]+" ",checked:x[0]!=="[ ]"};h.checked=y.checked,f.loose?h.tokens[0]&&["paragraph","text"].includes(h.tokens[0].type)&&"tokens"in h.tokens[0]&&h.tokens[0].tokens?(h.tokens[0].raw=y.raw+h.tokens[0].raw,h.tokens[0].text=y.raw+h.tokens[0].text,h.tokens[0].tokens.unshift(y)):h.tokens.unshift({type:"paragraph",raw:y.raw,text:y.raw,tokens:[y]}):h.tokens.unshift(y)}}if(!f.loose){let x=h.tokens.filter(b=>b.type==="space"),y=x.length>0&&x.some(b=>this.rules.other.anyLine.test(b.raw));f.loose=y}}if(f.loose)for(let h of f.items){h.loose=!0;for(let x of h.tokens)x.type==="text"&&(x.type="paragraph")}return f}}html(a){let s=this.rules.block.html.exec(a);if(s)return{type:"html",block:!0,raw:s[0],pre:s[1]==="pre"||s[1]==="script"||s[1]==="style",text:s[0]}}def(a){let s=this.rules.block.def.exec(a);if(s){let u=s[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),o=s[2]?s[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",f=s[3]?s[3].substring(1,s[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):s[3];return{type:"def",tag:u,raw:s[0],href:o,title:f}}}table(a){let s=this.rules.block.table.exec(a);if(!s||!this.rules.other.tableDelimiter.test(s[2]))return;let u=Ym(s[1]),o=s[2].replace(this.rules.other.tableAlignChars,"").split("|"),f=s[3]?.trim()?s[3].replace(this.rules.other.tableRowBlankLine,"").split(`
82
+ `):[],m={type:"table",raw:s[0],header:[],align:[],rows:[]};if(u.length===o.length){for(let p of o)this.rules.other.tableAlignRight.test(p)?m.align.push("right"):this.rules.other.tableAlignCenter.test(p)?m.align.push("center"):this.rules.other.tableAlignLeft.test(p)?m.align.push("left"):m.align.push(null);for(let p=0;p<u.length;p++)m.header.push({text:u[p],tokens:this.lexer.inline(u[p]),header:!0,align:m.align[p]});for(let p of f)m.rows.push(Ym(p,m.header.length).map((v,h)=>({text:v,tokens:this.lexer.inline(v),header:!1,align:m.align[h]})));return m}}lheading(a){let s=this.rules.block.lheading.exec(a);if(s)return{type:"heading",raw:s[0],depth:s[2].charAt(0)==="="?1:2,text:s[1],tokens:this.lexer.inline(s[1])}}paragraph(a){let s=this.rules.block.paragraph.exec(a);if(s){let u=s[1].charAt(s[1].length-1)===`
83
+ `?s[1].slice(0,-1):s[1];return{type:"paragraph",raw:s[0],text:u,tokens:this.lexer.inline(u)}}}text(a){let s=this.rules.block.text.exec(a);if(s)return{type:"text",raw:s[0],text:s[0],tokens:this.lexer.inline(s[0])}}escape(a){let s=this.rules.inline.escape.exec(a);if(s)return{type:"escape",raw:s[0],text:s[1]}}tag(a){let s=this.rules.inline.tag.exec(a);if(s)return!this.lexer.state.inLink&&this.rules.other.startATag.test(s[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(s[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(s[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(s[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:s[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:s[0]}}link(a){let s=this.rules.inline.link.exec(a);if(s){let u=s[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(u)){if(!this.rules.other.endAngleBracket.test(u))return;let m=Wa(u.slice(0,-1),"\\");if((u.length-m.length)%2===0)return}else{let m=Ny(s[2],"()");if(m===-2)return;if(m>-1){let p=(s[0].indexOf("!")===0?5:4)+s[1].length+m;s[2]=s[2].substring(0,m),s[0]=s[0].substring(0,p).trim(),s[3]=""}}let o=s[2],f="";if(this.options.pedantic){let m=this.rules.other.pedanticHrefTitle.exec(o);m&&(o=m[1],f=m[3])}else f=s[3]?s[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(u)?o=o.slice(1):o=o.slice(1,-1)),Zm(s,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:f&&f.replace(this.rules.inline.anyPunctuation,"$1")},s[0],this.lexer,this.rules)}}reflink(a,s){let u;if((u=this.rules.inline.reflink.exec(a))||(u=this.rules.inline.nolink.exec(a))){let o=(u[2]||u[1]).replace(this.rules.other.multipleSpaceGlobal," "),f=s[o.toLowerCase()];if(!f){let m=u[0].charAt(0);return{type:"text",raw:m,text:m}}return Zm(u,f,u[0],this.lexer,this.rules)}}emStrong(a,s,u=""){let o=this.rules.inline.emStrongLDelim.exec(a);if(!(!o||o[3]&&u.match(this.rules.other.unicodeAlphaNumeric))&&(!(o[1]||o[2])||!u||this.rules.inline.punctuation.exec(u))){let f=[...o[0]].length-1,m,p,v=f,h=0,x=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(x.lastIndex=0,s=s.slice(-1*a.length+f);(o=x.exec(s))!=null;){if(m=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!m)continue;if(p=[...m].length,o[3]||o[4]){v+=p;continue}else if((o[5]||o[6])&&f%3&&!((f+p)%3)){h+=p;continue}if(v-=p,v>0)continue;p=Math.min(p,p+v+h);let y=[...o[0]][0].length,b=a.slice(0,f+o.index+y+p);if(Math.min(f,p)%2){let z=b.slice(1,-1);return{type:"em",raw:b,text:z,tokens:this.lexer.inlineTokens(z)}}let A=b.slice(2,-2);return{type:"strong",raw:b,text:A,tokens:this.lexer.inlineTokens(A)}}}}codespan(a){let s=this.rules.inline.code.exec(a);if(s){let u=s[2].replace(this.rules.other.newLineCharGlobal," "),o=this.rules.other.nonSpaceChar.test(u),f=this.rules.other.startingSpaceChar.test(u)&&this.rules.other.endingSpaceChar.test(u);return o&&f&&(u=u.substring(1,u.length-1)),{type:"codespan",raw:s[0],text:u}}}br(a){let s=this.rules.inline.br.exec(a);if(s)return{type:"br",raw:s[0]}}del(a,s,u=""){let o=this.rules.inline.delLDelim.exec(a);if(o&&(!o[1]||!u||this.rules.inline.punctuation.exec(u))){let f=[...o[0]].length-1,m,p,v=f,h=this.rules.inline.delRDelim;for(h.lastIndex=0,s=s.slice(-1*a.length+f);(o=h.exec(s))!=null;){if(m=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!m||(p=[...m].length,p!==f))continue;if(o[3]||o[4]){v+=p;continue}if(v-=p,v>0)continue;p=Math.min(p,p+v);let x=[...o[0]][0].length,y=a.slice(0,f+o.index+x+p),b=y.slice(f,-f);return{type:"del",raw:y,text:b,tokens:this.lexer.inlineTokens(b)}}}}autolink(a){let s=this.rules.inline.autolink.exec(a);if(s){let u,o;return s[2]==="@"?(u=s[1],o="mailto:"+u):(u=s[1],o=u),{type:"link",raw:s[0],text:u,href:o,tokens:[{type:"text",raw:u,text:u}]}}}url(a){let s;if(s=this.rules.inline.url.exec(a)){let u,o;if(s[2]==="@")u=s[0],o="mailto:"+u;else{let f;do f=s[0],s[0]=this.rules.inline._backpedal.exec(s[0])?.[0]??"";while(f!==s[0]);u=s[0],s[1]==="www."?o="http://"+s[0]:o=s[0]}return{type:"link",raw:s[0],text:u,href:o,tokens:[{type:"text",raw:u,text:u}]}}}inlineText(a){let s=this.rules.inline.text.exec(a);if(s){let u=this.lexer.state.inRawBlock;return{type:"text",raw:s[0],text:s[0],escaped:u}}}},Zt=class ao{tokens;options;state;inlineQueue;tokenizer;constructor(s){this.tokens=[],this.tokens.links=Object.create(null),this.options=s||ml,this.options.tokenizer=this.options.tokenizer||new Ni,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let u={other:ct,block:Si.normal,inline:Ia.normal};this.options.pedantic?(u.block=Si.pedantic,u.inline=Ia.pedantic):this.options.gfm&&(u.block=Si.gfm,this.options.breaks?u.inline=Ia.breaks:u.inline=Ia.gfm),this.tokenizer.rules=u}static get rules(){return{block:Si,inline:Ia}}static lex(s,u){return new ao(u).lex(s)}static lexInline(s,u){return new ao(u).inlineTokens(s)}lex(s){s=s.replace(ct.carriageReturn,`
84
+ `),this.blockTokens(s,this.tokens);for(let u=0;u<this.inlineQueue.length;u++){let o=this.inlineQueue[u];this.inlineTokens(o.src,o.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(s,u=[],o=!1){for(this.options.pedantic&&(s=s.replace(ct.tabCharGlobal," ").replace(ct.spaceLine,""));s;){let f;if(this.options.extensions?.block?.some(p=>(f=p.call({lexer:this},s,u))?(s=s.substring(f.raw.length),u.push(f),!0):!1))continue;if(f=this.tokenizer.space(s)){s=s.substring(f.raw.length);let p=u.at(-1);f.raw.length===1&&p!==void 0?p.raw+=`
85
+ `:u.push(f);continue}if(f=this.tokenizer.code(s)){s=s.substring(f.raw.length);let p=u.at(-1);p?.type==="paragraph"||p?.type==="text"?(p.raw+=(p.raw.endsWith(`
91
86
  `)?"":`
92
87
  `)+f.raw,p.text+=`
93
- `+f.text,this.inlineQueue.at(-1).src=p.text):o.push(f);continue}if(f=this.tokenizer.fences(i)){i=i.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.heading(i)){i=i.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.hr(i)){i=i.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.blockquote(i)){i=i.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.list(i)){i=i.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.html(i)){i=i.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.def(i)){i=i.substring(f.raw.length);let p=o.at(-1);p?.type==="paragraph"||p?.type==="text"?(p.raw+=(p.raw.endsWith(`
88
+ `+f.text,this.inlineQueue.at(-1).src=p.text):u.push(f);continue}if(f=this.tokenizer.fences(s)){s=s.substring(f.raw.length),u.push(f);continue}if(f=this.tokenizer.heading(s)){s=s.substring(f.raw.length),u.push(f);continue}if(f=this.tokenizer.hr(s)){s=s.substring(f.raw.length),u.push(f);continue}if(f=this.tokenizer.blockquote(s)){s=s.substring(f.raw.length),u.push(f);continue}if(f=this.tokenizer.list(s)){s=s.substring(f.raw.length),u.push(f);continue}if(f=this.tokenizer.html(s)){s=s.substring(f.raw.length),u.push(f);continue}if(f=this.tokenizer.def(s)){s=s.substring(f.raw.length);let p=u.at(-1);p?.type==="paragraph"||p?.type==="text"?(p.raw+=(p.raw.endsWith(`
94
89
  `)?"":`
95
90
  `)+f.raw,p.text+=`
96
- `+f.raw,this.inlineQueue.at(-1).src=p.text):this.tokens.links[f.tag]||(this.tokens.links[f.tag]={href:f.href,title:f.title},o.push(f));continue}if(f=this.tokenizer.table(i)){i=i.substring(f.raw.length),o.push(f);continue}if(f=this.tokenizer.lheading(i)){i=i.substring(f.raw.length),o.push(f);continue}let m=i;if(this.options.extensions?.startBlock){let p=1/0,v=i.slice(1),h;this.options.extensions.startBlock.forEach(x=>{h=x.call({lexer:this},v),typeof h=="number"&&h>=0&&(p=Math.min(p,h))}),p<1/0&&p>=0&&(m=i.substring(0,p+1))}if(this.state.top&&(f=this.tokenizer.paragraph(m))){let p=o.at(-1);u&&p?.type==="paragraph"?(p.raw+=(p.raw.endsWith(`
91
+ `+f.raw,this.inlineQueue.at(-1).src=p.text):this.tokens.links[f.tag]||(this.tokens.links[f.tag]={href:f.href,title:f.title},u.push(f));continue}if(f=this.tokenizer.table(s)){s=s.substring(f.raw.length),u.push(f);continue}if(f=this.tokenizer.lheading(s)){s=s.substring(f.raw.length),u.push(f);continue}let m=s;if(this.options.extensions?.startBlock){let p=1/0,v=s.slice(1),h;this.options.extensions.startBlock.forEach(x=>{h=x.call({lexer:this},v),typeof h=="number"&&h>=0&&(p=Math.min(p,h))}),p<1/0&&p>=0&&(m=s.substring(0,p+1))}if(this.state.top&&(f=this.tokenizer.paragraph(m))){let p=u.at(-1);o&&p?.type==="paragraph"?(p.raw+=(p.raw.endsWith(`
97
92
  `)?"":`
98
93
  `)+f.raw,p.text+=`
99
- `+f.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):o.push(f),u=m.length!==i.length,i=i.substring(f.raw.length);continue}if(f=this.tokenizer.text(i)){i=i.substring(f.raw.length);let p=o.at(-1);p?.type==="text"?(p.raw+=(p.raw.endsWith(`
94
+ `+f.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):u.push(f),o=m.length!==s.length,s=s.substring(f.raw.length);continue}if(f=this.tokenizer.text(s)){s=s.substring(f.raw.length);let p=u.at(-1);p?.type==="text"?(p.raw+=(p.raw.endsWith(`
100
95
  `)?"":`
101
96
  `)+f.raw,p.text+=`
102
- `+f.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):o.push(f);continue}if(i){let p="Infinite loop on byte: "+i.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return this.state.top=!0,o}inline(i,o=[]){return this.inlineQueue.push({src:i,tokens:o}),o}inlineTokens(i,o=[]){let u=i,f=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(f=this.tokenizer.rules.inline.reflinkSearch.exec(u))!=null;)h.includes(f[0].slice(f[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,f.index)+"["+"a".repeat(f[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(f=this.tokenizer.rules.inline.anyPunctuation.exec(u))!=null;)u=u.slice(0,f.index)+"++"+u.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let m;for(;(f=this.tokenizer.rules.inline.blockSkip.exec(u))!=null;)m=f[2]?f[2].length:0,u=u.slice(0,f.index+m)+"["+"a".repeat(f[0].length-m-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);u=this.options.hooks?.emStrongMask?.call({lexer:this},u)??u;let p=!1,v="";for(;i;){p||(v=""),p=!1;let h;if(this.options.extensions?.inline?.some(y=>(h=y.call({lexer:this},i,o))?(i=i.substring(h.raw.length),o.push(h),!0):!1))continue;if(h=this.tokenizer.escape(i)){i=i.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.tag(i)){i=i.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.link(i)){i=i.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.reflink(i,this.tokens.links)){i=i.substring(h.raw.length);let y=o.at(-1);h.type==="text"&&y?.type==="text"?(y.raw+=h.raw,y.text+=h.text):o.push(h);continue}if(h=this.tokenizer.emStrong(i,u,v)){i=i.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.codespan(i)){i=i.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.br(i)){i=i.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.del(i,u,v)){i=i.substring(h.raw.length),o.push(h);continue}if(h=this.tokenizer.autolink(i)){i=i.substring(h.raw.length),o.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(i))){i=i.substring(h.raw.length),o.push(h);continue}let x=i;if(this.options.extensions?.startInline){let y=1/0,b=i.slice(1),T;this.options.extensions.startInline.forEach(R=>{T=R.call({lexer:this},b),typeof T=="number"&&T>=0&&(y=Math.min(y,T))}),y<1/0&&y>=0&&(x=i.substring(0,y+1))}if(h=this.tokenizer.inlineText(x)){i=i.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(v=h.raw.slice(-1)),p=!0;let y=o.at(-1);y?.type==="text"?(y.raw+=h.raw,y.text+=h.text):o.push(h);continue}if(i){let y="Infinite loop on byte: "+i.charCodeAt(0);if(this.options.silent){console.error(y);break}else throw new Error(y)}}return o}},ji=class{options;parser;constructor(a){this.options=a||fl}space(a){return""}code({text:a,lang:i,escaped:o}){let u=(i||"").match(st.notSpaceStart)?.[0],f=a.replace(st.endingNewline,"")+`
103
- `;return u?'<pre><code class="language-'+Jt(u)+'">'+(o?f:Jt(f,!0))+`</code></pre>
104
- `:"<pre><code>"+(o?f:Jt(f,!0))+`</code></pre>
97
+ `+f.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):u.push(f);continue}if(s){let p="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return this.state.top=!0,u}inline(s,u=[]){return this.inlineQueue.push({src:s,tokens:u}),u}inlineTokens(s,u=[]){let o=s,f=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(f=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)h.includes(f[0].slice(f[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,f.index)+"["+"a".repeat(f[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(f=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,f.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let m;for(;(f=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)m=f[2]?f[2].length:0,o=o.slice(0,f.index+m)+"["+"a".repeat(f[0].length-m-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);o=this.options.hooks?.emStrongMask?.call({lexer:this},o)??o;let p=!1,v="";for(;s;){p||(v=""),p=!1;let h;if(this.options.extensions?.inline?.some(y=>(h=y.call({lexer:this},s,u))?(s=s.substring(h.raw.length),u.push(h),!0):!1))continue;if(h=this.tokenizer.escape(s)){s=s.substring(h.raw.length),u.push(h);continue}if(h=this.tokenizer.tag(s)){s=s.substring(h.raw.length),u.push(h);continue}if(h=this.tokenizer.link(s)){s=s.substring(h.raw.length),u.push(h);continue}if(h=this.tokenizer.reflink(s,this.tokens.links)){s=s.substring(h.raw.length);let y=u.at(-1);h.type==="text"&&y?.type==="text"?(y.raw+=h.raw,y.text+=h.text):u.push(h);continue}if(h=this.tokenizer.emStrong(s,o,v)){s=s.substring(h.raw.length),u.push(h);continue}if(h=this.tokenizer.codespan(s)){s=s.substring(h.raw.length),u.push(h);continue}if(h=this.tokenizer.br(s)){s=s.substring(h.raw.length),u.push(h);continue}if(h=this.tokenizer.del(s,o,v)){s=s.substring(h.raw.length),u.push(h);continue}if(h=this.tokenizer.autolink(s)){s=s.substring(h.raw.length),u.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(s))){s=s.substring(h.raw.length),u.push(h);continue}let x=s;if(this.options.extensions?.startInline){let y=1/0,b=s.slice(1),A;this.options.extensions.startInline.forEach(z=>{A=z.call({lexer:this},b),typeof A=="number"&&A>=0&&(y=Math.min(y,A))}),y<1/0&&y>=0&&(x=s.substring(0,y+1))}if(h=this.tokenizer.inlineText(x)){s=s.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(v=h.raw.slice(-1)),p=!0;let y=u.at(-1);y?.type==="text"?(y.raw+=h.raw,y.text+=h.text):u.push(h);continue}if(s){let y="Infinite loop on byte: "+s.charCodeAt(0);if(this.options.silent){console.error(y);break}else throw new Error(y)}}return u}},ji=class{options;parser;constructor(a){this.options=a||ml}space(a){return""}code({text:a,lang:s,escaped:u}){let o=(s||"").match(ct.notSpaceStart)?.[0],f=a.replace(ct.endingNewline,"")+`
98
+ `;return o?'<pre><code class="language-'+Kt(o)+'">'+(u?f:Kt(f,!0))+`</code></pre>
99
+ `:"<pre><code>"+(u?f:Kt(f,!0))+`</code></pre>
105
100
  `}blockquote({tokens:a}){return`<blockquote>
106
101
  ${this.parser.parse(a)}</blockquote>
107
- `}html({text:a}){return a}def(a){return""}heading({tokens:a,depth:i}){return`<h${i}>${this.parser.parseInline(a)}</h${i}>
102
+ `}html({text:a}){return a}def(a){return""}heading({tokens:a,depth:s}){return`<h${s}>${this.parser.parseInline(a)}</h${s}>
108
103
  `}hr(a){return`<hr>
109
- `}list(a){let i=a.ordered,o=a.start,u="";for(let p=0;p<a.items.length;p++){let v=a.items[p];u+=this.listitem(v)}let f=i?"ol":"ul",m=i&&o!==1?' start="'+o+'"':"";return"<"+f+m+`>
110
- `+u+"</"+f+`>
104
+ `}list(a){let s=a.ordered,u=a.start,o="";for(let p=0;p<a.items.length;p++){let v=a.items[p];o+=this.listitem(v)}let f=s?"ol":"ul",m=s&&u!==1?' start="'+u+'"':"";return"<"+f+m+`>
105
+ `+o+"</"+f+`>
111
106
  `}listitem(a){return`<li>${this.parser.parse(a.tokens)}</li>
112
107
  `}checkbox({checked:a}){return"<input "+(a?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:a}){return`<p>${this.parser.parseInline(a)}</p>
113
- `}table(a){let i="",o="";for(let f=0;f<a.header.length;f++)o+=this.tablecell(a.header[f]);i+=this.tablerow({text:o});let u="";for(let f=0;f<a.rows.length;f++){let m=a.rows[f];o="";for(let p=0;p<m.length;p++)o+=this.tablecell(m[p]);u+=this.tablerow({text:o})}return u&&(u=`<tbody>${u}</tbody>`),`<table>
108
+ `}table(a){let s="",u="";for(let f=0;f<a.header.length;f++)u+=this.tablecell(a.header[f]);s+=this.tablerow({text:u});let o="";for(let f=0;f<a.rows.length;f++){let m=a.rows[f];u="";for(let p=0;p<m.length;p++)u+=this.tablecell(m[p]);o+=this.tablerow({text:u})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
114
109
  <thead>
115
- `+i+`</thead>
116
- `+u+`</table>
110
+ `+s+`</thead>
111
+ `+o+`</table>
117
112
  `}tablerow({text:a}){return`<tr>
118
113
  ${a}</tr>
119
- `}tablecell(a){let i=this.parser.parseInline(a.tokens),o=a.header?"th":"td";return(a.align?`<${o} align="${a.align}">`:`<${o}>`)+i+`</${o}>
120
- `}strong({tokens:a}){return`<strong>${this.parser.parseInline(a)}</strong>`}em({tokens:a}){return`<em>${this.parser.parseInline(a)}</em>`}codespan({text:a}){return`<code>${Jt(a,!0)}</code>`}br(a){return"<br>"}del({tokens:a}){return`<del>${this.parser.parseInline(a)}</del>`}link({href:a,title:i,tokens:o}){let u=this.parser.parseInline(o),f=Yp(a);if(f===null)return u;a=f;let m='<a href="'+a+'"';return i&&(m+=' title="'+Jt(i)+'"'),m+=">"+u+"</a>",m}image({href:a,title:i,text:o,tokens:u}){u&&(o=this.parser.parseInline(u,this.parser.textRenderer));let f=Yp(a);if(f===null)return Jt(o);a=f;let m=`<img src="${a}" alt="${Jt(o)}"`;return i&&(m+=` title="${Jt(i)}"`),m+=">",m}text(a){return"tokens"in a&&a.tokens?this.parser.parseInline(a.tokens):"escaped"in a&&a.escaped?a.text:Jt(a.text)}},Eu=class{strong({text:a}){return a}em({text:a}){return a}codespan({text:a}){return a}del({text:a}){return a}html({text:a}){return a}text({text:a}){return a}link({text:a}){return""+a}image({text:a}){return""+a}br(){return""}checkbox({raw:a}){return a}},Zt=class au{options;renderer;textRenderer;constructor(i){this.options=i||fl,this.options.renderer=this.options.renderer||new ji,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Eu}static parse(i,o){return new au(o).parse(i)}static parseInline(i,o){return new au(o).parseInline(i)}parse(i){let o="";for(let u=0;u<i.length;u++){let f=i[u];if(this.options.extensions?.renderers?.[f.type]){let p=f,v=this.options.extensions.renderers[p.type].call({parser:this},p);if(v!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(p.type)){o+=v||"";continue}}let m=f;switch(m.type){case"space":{o+=this.renderer.space(m);break}case"hr":{o+=this.renderer.hr(m);break}case"heading":{o+=this.renderer.heading(m);break}case"code":{o+=this.renderer.code(m);break}case"table":{o+=this.renderer.table(m);break}case"blockquote":{o+=this.renderer.blockquote(m);break}case"list":{o+=this.renderer.list(m);break}case"checkbox":{o+=this.renderer.checkbox(m);break}case"html":{o+=this.renderer.html(m);break}case"def":{o+=this.renderer.def(m);break}case"paragraph":{o+=this.renderer.paragraph(m);break}case"text":{o+=this.renderer.text(m);break}default:{let p='Token with "'+m.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return o}parseInline(i,o=this.renderer){let u="";for(let f=0;f<i.length;f++){let m=i[f];if(this.options.extensions?.renderers?.[m.type]){let v=this.options.extensions.renderers[m.type].call({parser:this},m);if(v!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(m.type)){u+=v||"";continue}}let p=m;switch(p.type){case"escape":{u+=o.text(p);break}case"html":{u+=o.html(p);break}case"link":{u+=o.link(p);break}case"image":{u+=o.image(p);break}case"checkbox":{u+=o.checkbox(p);break}case"strong":{u+=o.strong(p);break}case"em":{u+=o.em(p);break}case"codespan":{u+=o.codespan(p);break}case"br":{u+=o.br(p);break}case"del":{u+=o.del(p);break}case"text":{u+=o.text(p);break}default:{let v='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(v),"";throw new Error(v)}}}return u}},Pa=class{options;block;constructor(a){this.options=a||fl}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(a){return a}postprocess(a){return a}processAllTokens(a){return a}emStrongMask(a){return a}provideLexer(){return this.block?$t.lex:$t.lexInline}provideParser(){return this.block?Zt.parse:Zt.parseInline}},my=class{defaults=mu();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Zt;Renderer=ji;TextRenderer=Eu;Lexer=$t;Tokenizer=Ni;Hooks=Pa;constructor(...a){this.use(...a)}walkTokens(a,i){let o=[];for(let u of a)switch(o=o.concat(i.call(this,u)),u.type){case"table":{let f=u;for(let m of f.header)o=o.concat(this.walkTokens(m.tokens,i));for(let m of f.rows)for(let p of m)o=o.concat(this.walkTokens(p.tokens,i));break}case"list":{let f=u;o=o.concat(this.walkTokens(f.items,i));break}default:{let f=u;this.defaults.extensions?.childTokens?.[f.type]?this.defaults.extensions.childTokens[f.type].forEach(m=>{let p=f[m].flat(1/0);o=o.concat(this.walkTokens(p,i))}):f.tokens&&(o=o.concat(this.walkTokens(f.tokens,i)))}}return o}use(...a){let i=this.defaults.extensions||{renderers:{},childTokens:{}};return a.forEach(o=>{let u={...o};if(u.async=this.defaults.async||u.async||!1,o.extensions&&(o.extensions.forEach(f=>{if(!f.name)throw new Error("extension name required");if("renderer"in f){let m=i.renderers[f.name];m?i.renderers[f.name]=function(...p){let v=f.renderer.apply(this,p);return v===!1&&(v=m.apply(this,p)),v}:i.renderers[f.name]=f.renderer}if("tokenizer"in f){if(!f.level||f.level!=="block"&&f.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let m=i[f.level];m?m.unshift(f.tokenizer):i[f.level]=[f.tokenizer],f.start&&(f.level==="block"?i.startBlock?i.startBlock.push(f.start):i.startBlock=[f.start]:f.level==="inline"&&(i.startInline?i.startInline.push(f.start):i.startInline=[f.start]))}"childTokens"in f&&f.childTokens&&(i.childTokens[f.name]=f.childTokens)}),u.extensions=i),o.renderer){let f=this.defaults.renderer||new ji(this.defaults);for(let m in o.renderer){if(!(m in f))throw new Error(`renderer '${m}' does not exist`);if(["options","parser"].includes(m))continue;let p=m,v=o.renderer[p],h=f[p];f[p]=(...x)=>{let y=v.apply(f,x);return y===!1&&(y=h.apply(f,x)),y||""}}u.renderer=f}if(o.tokenizer){let f=this.defaults.tokenizer||new Ni(this.defaults);for(let m in o.tokenizer){if(!(m in f))throw new Error(`tokenizer '${m}' does not exist`);if(["options","rules","lexer"].includes(m))continue;let p=m,v=o.tokenizer[p],h=f[p];f[p]=(...x)=>{let y=v.apply(f,x);return y===!1&&(y=h.apply(f,x)),y}}u.tokenizer=f}if(o.hooks){let f=this.defaults.hooks||new Pa;for(let m in o.hooks){if(!(m in f))throw new Error(`hook '${m}' does not exist`);if(["options","block"].includes(m))continue;let p=m,v=o.hooks[p],h=f[p];Pa.passThroughHooks.has(m)?f[p]=x=>{if(this.defaults.async&&Pa.passThroughHooksRespectAsync.has(m))return(async()=>{let b=await v.call(f,x);return h.call(f,b)})();let y=v.call(f,x);return h.call(f,y)}:f[p]=(...x)=>{if(this.defaults.async)return(async()=>{let b=await v.apply(f,x);return b===!1&&(b=await h.apply(f,x)),b})();let y=v.apply(f,x);return y===!1&&(y=h.apply(f,x)),y}}u.hooks=f}if(o.walkTokens){let f=this.defaults.walkTokens,m=o.walkTokens;u.walkTokens=function(p){let v=[];return v.push(m.call(this,p)),f&&(v=v.concat(f.call(this,p))),v}}this.defaults={...this.defaults,...u}}),this}setOptions(a){return this.defaults={...this.defaults,...a},this}lexer(a,i){return $t.lex(a,i??this.defaults)}parser(a,i){return Zt.parse(a,i??this.defaults)}parseMarkdown(a){return(i,o)=>{let u={...o},f={...this.defaults,...u},m=this.onError(!!f.silent,!!f.async);if(this.defaults.async===!0&&u.async===!1)return m(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||i===null)return m(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return m(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(f.hooks&&(f.hooks.options=f,f.hooks.block=a),f.async)return(async()=>{let p=f.hooks?await f.hooks.preprocess(i):i,v=await(f.hooks?await f.hooks.provideLexer():a?$t.lex:$t.lexInline)(p,f),h=f.hooks?await f.hooks.processAllTokens(v):v;f.walkTokens&&await Promise.all(this.walkTokens(h,f.walkTokens));let x=await(f.hooks?await f.hooks.provideParser():a?Zt.parse:Zt.parseInline)(h,f);return f.hooks?await f.hooks.postprocess(x):x})().catch(m);try{f.hooks&&(i=f.hooks.preprocess(i));let p=(f.hooks?f.hooks.provideLexer():a?$t.lex:$t.lexInline)(i,f);f.hooks&&(p=f.hooks.processAllTokens(p)),f.walkTokens&&this.walkTokens(p,f.walkTokens);let v=(f.hooks?f.hooks.provideParser():a?Zt.parse:Zt.parseInline)(p,f);return f.hooks&&(v=f.hooks.postprocess(v)),v}catch(p){return m(p)}}}onError(a,i){return o=>{if(o.message+=`
121
- Please report this to https://github.com/markedjs/marked.`,a){let u="<p>An error occurred:</p><pre>"+Jt(o.message+"",!0)+"</pre>";return i?Promise.resolve(u):u}if(i)return Promise.reject(o);throw o}}},cl=new my;function Ce(a,i){return cl.parse(a,i)}Ce.options=Ce.setOptions=function(a){return cl.setOptions(a),Ce.defaults=cl.defaults,dm(Ce.defaults),Ce};Ce.getDefaults=mu;Ce.defaults=fl;Ce.use=function(...a){return cl.use(...a),Ce.defaults=cl.defaults,dm(Ce.defaults),Ce};Ce.walkTokens=function(a,i){return cl.walkTokens(a,i)};Ce.parseInline=cl.parseInline;Ce.Parser=Zt;Ce.parser=Zt.parse;Ce.Renderer=ji;Ce.TextRenderer=Eu;Ce.Lexer=$t;Ce.lexer=$t.lex;Ce.Tokenizer=Ni;Ce.Hooks=Pa;Ce.parse=Ce;Ce.options;Ce.setOptions;Ce.use;Ce.walkTokens;Ce.parseInline;Zt.parse;$t.lex;const Xp=600,hy=j.memo(function({content:i,isActive:o}){const u=i.length>Xp,[f,m]=j.useState(!1),p=u&&!f?i.slice(0,Xp)+"...":i,v=j.useMemo(()=>Ce.parse(p),[p]);return c.jsxs("div",{children:[c.jsxs("div",{className:`prose-terminal text-sm text-terminal-text ${o?"typing-cursor":""} ${u&&!f?"max-h-[200px] overflow-hidden relative":""}`,children:[c.jsx("div",{dangerouslySetInnerHTML:{__html:v}}),u&&!f&&c.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-12 bg-gradient-to-t from-terminal-bg to-transparent"})]}),u&&c.jsx("button",{onClick:()=>m(!f),className:"mt-1 text-[11px] font-mono text-terminal-blue hover:text-terminal-text transition-colors",children:f?"Show less":`Show more (${i.length} chars)`})]})});function wm(a){var i,o,u="";if(typeof a=="string"||typeof a=="number")u+=a;else if(typeof a=="object")if(Array.isArray(a)){var f=a.length;for(i=0;i<f;i++)a[i]&&(o=wm(a[i]))&&(u&&(u+=" "),u+=o)}else for(o in a)a[o]&&(u&&(u+=" "),u+=o);return u}function Nm(){for(var a,i,o=0,u="",f=arguments.length;o<f;o++)(a=arguments[o])&&(i=wm(a))&&(u&&(u+=" "),u+=i);return u}var gy=Object.create,Ri=Object.defineProperty,xy=Object.defineProperties,yy=Object.getOwnPropertyDescriptor,by=Object.getOwnPropertyDescriptors,jm=Object.getOwnPropertyNames,Ti=Object.getOwnPropertySymbols,vy=Object.getPrototypeOf,ku=Object.prototype.hasOwnProperty,Tm=Object.prototype.propertyIsEnumerable,Qp=(a,i,o)=>i in a?Ri(a,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):a[i]=o,Kt=(a,i)=>{for(var o in i||(i={}))ku.call(i,o)&&Qp(a,o,i[o]);if(Ti)for(var o of Ti(i))Tm.call(i,o)&&Qp(a,o,i[o]);return a},Oi=(a,i)=>xy(a,by(i)),Am=(a,i)=>{var o={};for(var u in a)ku.call(a,u)&&i.indexOf(u)<0&&(o[u]=a[u]);if(a!=null&&Ti)for(var u of Ti(a))i.indexOf(u)<0&&Tm.call(a,u)&&(o[u]=a[u]);return o},Sy=(a,i)=>function(){return i||(0,a[jm(a)[0]])((i={exports:{}}).exports,i),i.exports},Ey=(a,i)=>{for(var o in i)Ri(a,o,{get:i[o],enumerable:!0})},ky=(a,i,o,u)=>{if(i&&typeof i=="object"||typeof i=="function")for(let f of jm(i))!ku.call(a,f)&&f!==o&&Ri(a,f,{get:()=>i[f],enumerable:!(u=yy(i,f))||u.enumerable});return a},wy=(a,i,o)=>(o=a!=null?gy(vy(a)):{},ky(!a||!a.__esModule?Ri(o,"default",{value:a,enumerable:!0}):o,a)),Ny=Sy({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(a,i){var o=(function(){var u=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,f=0,m={},p={util:{encode:function S(w){return w instanceof v?new v(w.type,S(w.content),w.alias):Array.isArray(w)?w.map(S):w.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(S){return Object.prototype.toString.call(S).slice(8,-1)},objId:function(S){return S.__id||Object.defineProperty(S,"__id",{value:++f}),S.__id},clone:function S(w,A){A=A||{};var H,M;switch(p.util.type(w)){case"Object":if(M=p.util.objId(w),A[M])return A[M];H={},A[M]=H;for(var Y in w)w.hasOwnProperty(Y)&&(H[Y]=S(w[Y],A));return H;case"Array":return M=p.util.objId(w),A[M]?A[M]:(H=[],A[M]=H,w.forEach(function(F,P){H[P]=S(F,A)}),H);default:return w}},getLanguage:function(S){for(;S;){var w=u.exec(S.className);if(w)return w[1].toLowerCase();S=S.parentElement}return"none"},setLanguage:function(S,w){S.className=S.className.replace(RegExp(u,"gi"),""),S.classList.add("language-"+w)},isActive:function(S,w,A){for(var H="no-"+w;S;){var M=S.classList;if(M.contains(w))return!0;if(M.contains(H))return!1;S=S.parentElement}return!!A}},languages:{plain:m,plaintext:m,text:m,txt:m,extend:function(S,w){var A=p.util.clone(p.languages[S]);for(var H in w)A[H]=w[H];return A},insertBefore:function(S,w,A,H){H=H||p.languages;var M=H[S],Y={};for(var F in M)if(M.hasOwnProperty(F)){if(F==w)for(var P in A)A.hasOwnProperty(P)&&(Y[P]=A[P]);A.hasOwnProperty(F)||(Y[F]=M[F])}var ee=H[S];return H[S]=Y,p.languages.DFS(p.languages,function(I,re){re===ee&&I!=S&&(this[I]=Y)}),Y},DFS:function S(w,A,H,M){M=M||{};var Y=p.util.objId;for(var F in w)if(w.hasOwnProperty(F)){A.call(w,F,w[F],H||F);var P=w[F],ee=p.util.type(P);ee==="Object"&&!M[Y(P)]?(M[Y(P)]=!0,S(P,A,null,M)):ee==="Array"&&!M[Y(P)]&&(M[Y(P)]=!0,S(P,A,F,M))}}},plugins:{},highlight:function(S,w,A){var H={code:S,grammar:w,language:A};if(p.hooks.run("before-tokenize",H),!H.grammar)throw new Error('The language "'+H.language+'" has no grammar.');return H.tokens=p.tokenize(H.code,H.grammar),p.hooks.run("after-tokenize",H),v.stringify(p.util.encode(H.tokens),H.language)},tokenize:function(S,w){var A=w.rest;if(A){for(var H in A)w[H]=A[H];delete w.rest}var M=new y;return b(M,M.head,S),x(S,M,w,M.head,0),R(M)},hooks:{all:{},add:function(S,w){var A=p.hooks.all;A[S]=A[S]||[],A[S].push(w)},run:function(S,w){var A=p.hooks.all[S];if(!(!A||!A.length))for(var H=0,M;M=A[H++];)M(w)}},Token:v};function v(S,w,A,H){this.type=S,this.content=w,this.alias=A,this.length=(H||"").length|0}v.stringify=function S(w,A){if(typeof w=="string")return w;if(Array.isArray(w)){var H="";return w.forEach(function(ee){H+=S(ee,A)}),H}var M={type:w.type,content:S(w.content,A),tag:"span",classes:["token",w.type],attributes:{},language:A},Y=w.alias;Y&&(Array.isArray(Y)?Array.prototype.push.apply(M.classes,Y):M.classes.push(Y)),p.hooks.run("wrap",M);var F="";for(var P in M.attributes)F+=" "+P+'="'+(M.attributes[P]||"").replace(/"/g,"&quot;")+'"';return"<"+M.tag+' class="'+M.classes.join(" ")+'"'+F+">"+M.content+"</"+M.tag+">"};function h(S,w,A,H){S.lastIndex=w;var M=S.exec(A);if(M&&H&&M[1]){var Y=M[1].length;M.index+=Y,M[0]=M[0].slice(Y)}return M}function x(S,w,A,H,M,Y){for(var F in A)if(!(!A.hasOwnProperty(F)||!A[F])){var P=A[F];P=Array.isArray(P)?P:[P];for(var ee=0;ee<P.length;++ee){if(Y&&Y.cause==F+","+ee)return;var I=P[ee],re=I.inside,ue=!!I.lookbehind,q=!!I.greedy,J=I.alias;if(q&&!I.pattern.global){var ie=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,ie+"g")}for(var ve=I.pattern||I,de=H.next,be=M;de!==w.tail&&!(Y&&be>=Y.reach);be+=de.value.length,de=de.next){var L=de.value;if(w.length>S.length)return;if(!(L instanceof v)){var W=1,le;if(q){if(le=h(ve,be,S,ue),!le||le.index>=S.length)break;var B=le.index,_=le.index+le[0].length,V=be;for(V+=de.value.length;B>=V;)de=de.next,V+=de.value.length;if(V-=de.value.length,be=V,de.value instanceof v)continue;for(var E=de;E!==w.tail&&(V<_||typeof E.value=="string");E=E.next)W++,V+=E.value.length;W--,L=S.slice(be,V),le.index-=be}else if(le=h(ve,0,L,ue),!le)continue;var B=le.index,Z=le[0],K=L.slice(0,B),oe=L.slice(B+Z.length),ce=be+L.length;Y&&ce>Y.reach&&(Y.reach=ce);var pe=de.prev;K&&(pe=b(w,pe,K),be+=K.length),T(w,pe,W);var te=new v(F,re?p.tokenize(Z,re):Z,J,Z);if(de=b(w,pe,te),oe&&b(w,de,oe),W>1){var ne={cause:F+","+ee,reach:ce};x(S,w,A,de.prev,be,ne),Y&&ne.reach>Y.reach&&(Y.reach=ne.reach)}}}}}}function y(){var S={value:null,prev:null,next:null},w={value:null,prev:S,next:null};S.next=w,this.head=S,this.tail=w,this.length=0}function b(S,w,A){var H=w.next,M={value:A,prev:w,next:H};return w.next=M,H.prev=M,S.length++,M}function T(S,w,A){for(var H=w.next,M=0;M<A&&H!==S.tail;M++)H=H.next;w.next=H,H.prev=w,S.length-=M}function R(S){for(var w=[],A=S.head.next;A!==S.tail;)w.push(A.value),A=A.next;return w}return p})();i.exports=o,o.default=o}}),Q=wy(Ny());Q.languages.markup={comment:{pattern:/\x3C!--(?:(?!\x3C!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|\x3C!--(?:[^-]|-(?!->))*-->)*\]\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]},Q.languages.markup.tag.inside["attr-value"].inside.entity=Q.languages.markup.entity,Q.languages.markup.doctype.inside["internal-subset"].inside=Q.languages.markup,Q.hooks.add("wrap",function(a){a.type==="entity"&&(a.attributes.title=a.content.replace(/&amp;/,"&"))}),Object.defineProperty(Q.languages.markup.tag,"addInlined",{value:function(a,u){var o={},o=(o["language-"+u]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Q.languages[u]},o.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}}),u=(o["language-"+u]={pattern:/[\s\S]+/,inside:Q.languages[u]},{});u[a]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return a}),"i"),lookbehind:!0,greedy:!0,inside:o},Q.languages.insertBefore("markup","cdata",u)}}),Object.defineProperty(Q.languages.markup.tag,"addAttribute",{value:function(a,i){Q.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+a+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:Q.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Q.languages.html=Q.languages.markup,Q.languages.mathml=Q.languages.markup,Q.languages.svg=Q.languages.markup,Q.languages.xml=Q.languages.extend("markup",{}),Q.languages.ssml=Q.languages.xml,Q.languages.atom=Q.languages.xml,Q.languages.rss=Q.languages.xml,(function(a){var i={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},o=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,u="(?:[^\\\\-]|"+o.source+")",u=RegExp(u+"-"+u),f={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};a.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:u,inside:{escape:o,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":i,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:o}},"special-escape":i,"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":f}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:o,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":f}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(Q),Q.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:/[{}[\];(),.:]/},Q.languages.javascript=Q.languages.extend("clike",{"class-name":[Q.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}|\?\?=?|\?\.?|[~:]/}),Q.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Q.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:Q.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:Q.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Q.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Q.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:Q.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Q.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:Q.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"}}),Q.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Q.languages.markup&&(Q.languages.markup.tag.addInlined("script","javascript"),Q.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")),Q.languages.js=Q.languages.javascript,Q.languages.actionscript=Q.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:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),Q.languages.actionscript["class-name"].alias="function",delete Q.languages.actionscript.parameter,delete Q.languages.actionscript["literal-property"],Q.languages.markup&&Q.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:Q.languages.markup}}),(function(a){var i=/#(?!\{).+/,o={pattern:/#\{[^}]+\}/,alias:"variable"};a.languages.coffeescript=a.languages.extend("javascript",{comment:i,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:o}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),a.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:i,interpolation:o}}}),a.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:a.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:o}}]}),a.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete a.languages.coffeescript["template-string"],a.languages.coffee=a.languages.coffeescript})(Q),(function(a){var i=a.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(i,"addSupport",{value:function(o,u){(o=typeof o=="string"?[o]:o).forEach(function(f){var m=function(b){b.inside||(b.inside={}),b.inside.rest=u},p="doc-comment";if(v=a.languages[f]){var v,h=v[p];if((h=h||(v=a.languages.insertBefore(f,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[p])instanceof RegExp&&(h=v[p]={pattern:h}),Array.isArray(h))for(var x=0,y=h.length;x<y;x++)h[x]instanceof RegExp&&(h[x]={pattern:h[x]}),m(h[x]);else m(h)}})}}),i.addSupport(["java","javascript","php"],i)})(Q),(function(a){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,i=(a.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.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\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},a.languages.css.atrule.inside.rest=a.languages.css,a.languages.markup);i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(Q),(function(a){var i=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i=(a.languages.css.selector={pattern:a.languages.css.selector.pattern,lookbehind:!0,inside:i={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+i.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":[i,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},a.languages.css.atrule.inside["selector-function-argument"].inside=i,a.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};a.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:o})})(Q),(function(a){var i=/[*&][^\s[\]{},]+/,o=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,u="(?:"+o.source+"(?:[ ]+"+i.source+")?|"+i.source+"(?:[ ]+"+o.source+")?)",f=/(?:[^\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}),m=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function p(v,h){h=(h||"").replace(/m/g,"")+"m";var x=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return u}).replace(/<<value>>/g,function(){return v});return RegExp(x,h)}a.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return u})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return u}).replace(/<<key>>/g,function(){return"(?:"+f+"|"+m+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:p(/\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:p(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:p(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:p(m),lookbehind:!0,greedy:!0},number:{pattern:p(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:o,important:i,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},a.languages.yml=a.languages.yaml})(Q),(function(a){var i=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function o(x){return x=x.replace(/<inner>/g,function(){return i}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+x+")")}var u=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,f=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return u}),m=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,p=(a.languages.markdown=a.languages.extend("markup",{}),a.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:a.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+f+m+"(?:"+f+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+f+m+")(?:"+f+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(u),inside:a.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+f+")"+m+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+f+"$"),inside:{"table-header":{pattern:RegExp(u),alias:"important",inside:a.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:o(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:o(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:o(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:o(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(x){["url","bold","italic","strike","code-snippet"].forEach(function(y){x!==y&&(a.languages.markdown[x].inside.content.inside[y]=a.languages.markdown[y])})}),a.hooks.add("after-tokenize",function(x){x.language!=="markdown"&&x.language!=="md"||(function y(b){if(b&&typeof b!="string")for(var T=0,R=b.length;T<R;T++){var S,w=b[T];w.type!=="code"?y(w.content):(S=w.content[1],w=w.content[3],S&&w&&S.type==="code-language"&&w.type==="code-block"&&typeof S.content=="string"&&(S=S.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),S="language-"+(S=(/[a-z][\w-]*/i.exec(S)||[""])[0].toLowerCase()),w.alias?typeof w.alias=="string"?w.alias=[w.alias,S]:w.alias.push(S):w.alias=[S]))}})(x.tokens)}),a.hooks.add("wrap",function(x){if(x.type==="code-block"){for(var y="",b=0,T=x.classes.length;b<T;b++){var R=x.classes[b],R=/language-(.+)/.exec(R);if(R){y=R[1];break}}var S,w=a.languages[y];w?x.content=a.highlight((function(A){return A=A.replace(p,""),A=A.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(H,M){var Y;return(M=M.toLowerCase())[0]==="#"?(Y=M[1]==="x"?parseInt(M.slice(2),16):Number(M.slice(1)),h(Y)):v[M]||H})})(x.content),w,y):y&&y!=="none"&&a.plugins.autoloader&&(S="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),x.attributes.id=S,a.plugins.autoloader.loadLanguages(y,function(){var A=document.getElementById(S);A&&(A.innerHTML=a.highlight(A.textContent,a.languages[y],y))}))}}),RegExp(a.languages.markup.tag.pattern.source,"gi")),v={amp:"&",lt:"<",gt:">",quot:'"'},h=String.fromCodePoint||String.fromCharCode;a.languages.md=a.languages.markdown})(Q),Q.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:Q.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+/},Q.hooks.add("after-tokenize",function(a){if(a.language==="graphql")for(var i=a.tokens.filter(function(S){return typeof S!="string"&&S.type!=="comment"&&S.type!=="scalar"}),o=0;o<i.length;){var u=i[o++];if(u.type==="keyword"&&u.content==="mutation"){var f=[];if(b(["definition-mutation","punctuation"])&&y(1).content==="("){o+=2;var m=T(/^\($/,/^\)$/);if(m===-1)continue;for(;o<m;o++){var p=y(0);p.type==="variable"&&(R(p,"variable-input"),f.push(p.content))}o=m+1}if(b(["punctuation","property-query"])&&y(0).content==="{"&&(o++,R(y(0),"property-mutation"),0<f.length)){var v=T(/^\{$/,/^\}$/);if(v!==-1)for(var h=o;h<v;h++){var x=i[h];x.type==="variable"&&0<=f.indexOf(x.content)&&R(x,"variable-input")}}}}function y(S){return i[o+S]}function b(S,w){w=w||0;for(var A=0;A<S.length;A++){var H=y(A+w);if(!H||H.type!==S[A])return}return 1}function T(S,w){for(var A=1,H=o;H<i.length;H++){var M=i[H],Y=M.content;if(M.type==="punctuation"&&typeof Y=="string"){if(S.test(Y))A++;else if(w.test(Y)&&--A===0)return H}}return-1}function R(S,w){var A=S.alias;A?Array.isArray(A)||(S.alias=A=[A]):S.alias=A=[],A.push(w)}}),Q.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(a){var i=a.languages.javascript["template-string"],o=i.pattern.source,u=i.inside.interpolation,f=u.inside["interpolation-punctuation"],m=u.pattern.source;function p(b,T){if(a.languages[b])return{pattern:RegExp("((?:"+T+")\\s*)"+o),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:b}}}}function v(b,T,R){return b={code:b,grammar:T,language:R},a.hooks.run("before-tokenize",b),b.tokens=a.tokenize(b.code,b.grammar),a.hooks.run("after-tokenize",b),b.tokens}function h(b,T,R){var A=a.tokenize(b,{interpolation:{pattern:RegExp(m),lookbehind:!0}}),S=0,w={},A=v(A.map(function(M){if(typeof M=="string")return M;for(var Y,F,M=M.content;b.indexOf((F=S++,Y="___"+R.toUpperCase()+"_"+F+"___"))!==-1;);return w[Y]=M,Y}).join(""),T,R),H=Object.keys(w);return S=0,(function M(Y){for(var F=0;F<Y.length;F++){if(S>=H.length)return;var P,ee,I,re,ue,q,J,ie=Y[F];typeof ie=="string"||typeof ie.content=="string"?(P=H[S],(J=(q=typeof ie=="string"?ie:ie.content).indexOf(P))!==-1&&(++S,ee=q.substring(0,J),ue=w[P],I=void 0,(re={})["interpolation-punctuation"]=f,(re=a.tokenize(ue,re)).length===3&&((I=[1,1]).push.apply(I,v(re[1],a.languages.javascript,"javascript")),re.splice.apply(re,I)),I=new a.Token("interpolation",re,u.alias,ue),re=q.substring(J+P.length),ue=[],ee&&ue.push(ee),ue.push(I),re&&(M(q=[re]),ue.push.apply(ue,q)),typeof ie=="string"?(Y.splice.apply(Y,[F,1].concat(ue)),F+=ue.length-1):ie.content=ue)):(J=ie.content,Array.isArray(J)?M(J):M([J]))}})(A),new a.Token(R,A,"language-"+R,b)}a.languages.javascript["template-string"]=[p("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),p("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),p("svg",/\bsvg/.source),p("markdown",/\b(?:markdown|md)/.source),p("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),p("sql",/\bsql/.source),i].filter(Boolean);var x={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function y(b){return typeof b=="string"?b:Array.isArray(b)?b.map(y).join(""):y(b.content)}a.hooks.add("after-tokenize",function(b){b.language in x&&(function T(R){for(var S=0,w=R.length;S<w;S++){var A,H,M,Y=R[S];typeof Y!="string"&&(A=Y.content,Array.isArray(A)?Y.type==="template-string"?(Y=A[1],A.length===3&&typeof Y!="string"&&Y.type==="embedded-code"&&(H=y(Y),Y=Y.alias,Y=Array.isArray(Y)?Y[0]:Y,M=a.languages[Y])&&(A[1]=h(H,M,Y))):T(A):typeof A!="string"&&T([A]))}})(b.tokens)})})(Q),(function(a){a.languages.typescript=a.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),a.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete a.languages.typescript.parameter,delete a.languages.typescript["literal-property"];var i=a.languages.extend("typescript",{});delete i["class-name"],a.languages.typescript["class-name"].inside=i,a.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:i}}}}),a.languages.ts=a.languages.typescript})(Q),(function(a){var i=a.languages.javascript,o=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,u="(@(?:arg|argument|param|property)\\s+(?:"+o+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(u+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(u+/\[(?:(?!\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:i,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return o})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+o),lookbehind:!0,inside:{string:i.string,number:i.number,boolean:i.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:i,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)})(Q),(function(a){a.languages.flow=a.languages.extend("javascript",{}),a.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),a.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete a.languages.flow.parameter,a.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(a.languages.flow.keyword)||(a.languages.flow.keyword=[a.languages.flow.keyword]),a.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(Q),Q.languages.n4js=Q.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/}),Q.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),Q.languages.n4jsd=Q.languages.n4js,(function(a){function i(p,v){return RegExp(p.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),v)}a.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+a.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),a.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+a.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),a.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),a.languages.insertBefore("javascript","keyword",{imports:{pattern:i(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:a.languages.javascript},exports:{pattern:i(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:a.languages.javascript}}),a.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),a.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),a.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:i(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var o=["function","function-variable","method","method-variable","property-access"],u=0;u<o.length;u++){var m=o[u],f=a.languages.javascript[m],m=(f=a.util.type(f)==="RegExp"?a.languages.javascript[m]={pattern:f}:f).inside||{};(f.inside=m)["maybe-class-name"]=/^[A-Z][\s\S]*/}})(Q),(function(a){var i=a.util.clone(a.languages.javascript),o=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,u=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,f=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function m(h,x){return h=h.replace(/<S>/g,function(){return o}).replace(/<BRACES>/g,function(){return u}).replace(/<SPREAD>/g,function(){return f}),RegExp(h,x)}f=m(f).source,a.languages.jsx=a.languages.extend("markup",i),a.languages.jsx.tag.pattern=m(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),a.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,a.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,a.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,a.languages.jsx.tag.inside.comment=i.comment,a.languages.insertBefore("inside","attr-name",{spread:{pattern:m(/<SPREAD>/.source),inside:a.languages.jsx}},a.languages.jsx.tag),a.languages.insertBefore("inside","special-attr",{script:{pattern:m(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:a.languages.jsx}}},a.languages.jsx.tag);function p(h){for(var x=[],y=0;y<h.length;y++){var b=h[y],T=!1;typeof b!="string"&&(b.type==="tag"&&b.content[0]&&b.content[0].type==="tag"?b.content[0].content[0].content==="</"?0<x.length&&x[x.length-1].tagName===v(b.content[0].content[1])&&x.pop():b.content[b.content.length-1].content!=="/>"&&x.push({tagName:v(b.content[0].content[1]),openedBraces:0}):0<x.length&&b.type==="punctuation"&&b.content==="{"?x[x.length-1].openedBraces++:0<x.length&&0<x[x.length-1].openedBraces&&b.type==="punctuation"&&b.content==="}"?x[x.length-1].openedBraces--:T=!0),(T||typeof b=="string")&&0<x.length&&x[x.length-1].openedBraces===0&&(T=v(b),y<h.length-1&&(typeof h[y+1]=="string"||h[y+1].type==="plain-text")&&(T+=v(h[y+1]),h.splice(y+1,1)),0<y&&(typeof h[y-1]=="string"||h[y-1].type==="plain-text")&&(T=v(h[y-1])+T,h.splice(y-1,1),y--),h[y]=new a.Token("plain-text",T,null,T)),b.content&&typeof b.content!="string"&&p(b.content)}}var v=function(h){return h?typeof h=="string"?h:typeof h.content=="string"?h.content:h.content.map(v).join(""):""};a.hooks.add("after-tokenize",function(h){h.language!=="jsx"&&h.language!=="tsx"||p(h.tokens)})})(Q),(function(a){var i=a.util.clone(a.languages.typescript),i=(a.languages.tsx=a.languages.extend("jsx",i),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"],a.languages.tsx.tag);i.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+i.pattern.source+")",i.pattern.flags),i.lookbehind=!0})(Q),Q.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:/[{}[\]();,.:\\]/},Q.languages.swift["string-literal"].forEach(function(a){a.inside.interpolation.inside=Q.languages.swift}),(function(a){a.languages.kotlin=a.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete a.languages.kotlin["class-name"];var i={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:a.languages.kotlin}};a.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:i},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:i},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete a.languages.kotlin.string,a.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),a.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),a.languages.kt=a.languages.kotlin,a.languages.kts=a.languages.kotlin})(Q),Q.languages.c=Q.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|[?:~]|[-+*/%&|^!=<>]=?/}),Q.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Q.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},Q.languages.c.string],char:Q.languages.c.char,comment:Q.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:Q.languages.c}}}}),Q.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 Q.languages.c.boolean,Q.languages.objectivec=Q.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 Q.languages.objectivec["class-name"],Q.languages.objc=Q.languages.objectivec,Q.languages.reason=Q.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/}),Q.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 Q.languages.reason.function,(function(a){for(var i=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,o=0;o<2;o++)i=i.replace(/<self>/g,function(){return i});i=i.replace(/<self>/g,function(){return/[^\s\S]/.source}),a.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+i),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},a.languages.rust["closure-params"].inside.rest=a.languages.rust,a.languages.rust.attribute.inside.string=a.languages.rust.string})(Q),Q.languages.go=Q.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/}),Q.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Q.languages.go["class-name"],(function(a){var i=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,o=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return i.source});a.languages.cpp=a.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return i.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:i,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),a.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return o})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),a.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:a.languages.cpp}}}}),a.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),a.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:a.languages.extend("cpp",{})}}),a.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},a.languages.cpp["base-clause"])})(Q),Q.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:/![sra](?=[:}]$)/,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:/[{}[\];(),.:]/},Q.languages.python["string-interpolation"].inside.interpolation.inside.rest=Q.languages.python,Q.languages.py=Q.languages.python,Q.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"}},Q.languages.webmanifest=Q.languages.json;var ru={};Ey(ru,{dracula:()=>Ty,duotoneDark:()=>_y,duotoneLight:()=>Ry,github:()=>zy,gruvboxMaterialDark:()=>ob,gruvboxMaterialLight:()=>cb,jettwaveDark:()=>eb,jettwaveLight:()=>nb,nightOwl:()=>My,nightOwlLight:()=>By,oceanicNext:()=>Hy,okaidia:()=>Gy,oneDark:()=>ab,oneLight:()=>ib,palenight:()=>$y,shadesOfPurple:()=>Xy,synthwave84:()=>Vy,ultramin:()=>Jy,vsDark:()=>_m,vsLight:()=>Wy});var jy={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)"}}]},Ty=jy,Ay={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"}}]},_y=Ay,Cy={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"}}]},Ry=Cy,Oy={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"}}]},zy=Oy,Dy={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)"}}]},My=Dy,Ly={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)"}}]},By=Ly,Tt={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},Uy={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Tt.keyword}},{types:["attr-value"],style:{color:Tt.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:Tt.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:Tt.primitive}},{types:["boolean"],style:{color:Tt.boolean}},{types:["tag"],style:{color:Tt.tag}},{types:["string"],style:{color:Tt.string}},{types:["punctuation"],style:{color:Tt.string}},{types:["selector","char","builtin","inserted"],style:{color:Tt.char}},{types:["function"],style:{color:Tt.function}},{types:["operator","entity","url","variable"],style:{color:Tt.variable}},{types:["keyword"],style:{color:Tt.keyword}},{types:["atrule","class-name"],style:{color:Tt.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},Hy=Uy,qy={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"}}]},Gy=qy,Yy={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)"}}]},$y=Yy,Zy={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)"}}]},Xy=Zy,Qy={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"}}]},Vy=Qy,Fy={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)"}}]},Jy=Fy,Ky={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)"}}]},_m=Ky,Iy={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)"}}]},Wy=Iy,Py={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"}}]},eb=Py,tb={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"}}]},nb=tb,lb={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%)"}}]},ab=lb,rb={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%)"}}]},ib=rb,sb={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"}}]},ob=sb,ub={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"}}]},cb=ub,fb=a=>j.useCallback(i=>{var o=i,{className:u,style:f,line:m}=o,p=Am(o,["className","style","line"]);const v=Oi(Kt({},p),{className:Nm("token-line",u)});return typeof a=="object"&&"plain"in a&&(v.style=a.plain),typeof f=="object"&&(v.style=Kt(Kt({},v.style||{}),f)),v},[a]),db=a=>{const i=j.useCallback(({types:o,empty:u})=>{if(a!=null){{if(o.length===1&&o[0]==="plain")return u!=null?{display:"inline-block"}:void 0;if(o.length===1&&u!=null)return a[o[0]]}return Object.assign(u!=null?{display:"inline-block"}:{},...o.map(f=>a[f]))}},[a]);return j.useCallback(o=>{var u=o,{token:f,className:m,style:p}=u,v=Am(u,["token","className","style"]);const h=Oi(Kt({},v),{className:Nm("token",...f.types,m),children:f.content,style:i(f)});return p!=null&&(h.style=Kt(Kt({},h.style||{}),p)),h},[i])},pb=/\r\n|\r|\n/,Vp=a=>{a.length===0?a.push({types:["plain"],content:`
114
+ `}tablecell(a){let s=this.parser.parseInline(a.tokens),u=a.header?"th":"td";return(a.align?`<${u} align="${a.align}">`:`<${u}>`)+s+`</${u}>
115
+ `}strong({tokens:a}){return`<strong>${this.parser.parseInline(a)}</strong>`}em({tokens:a}){return`<em>${this.parser.parseInline(a)}</em>`}codespan({text:a}){return`<code>${Kt(a,!0)}</code>`}br(a){return"<br>"}del({tokens:a}){return`<del>${this.parser.parseInline(a)}</del>`}link({href:a,title:s,tokens:u}){let o=this.parser.parseInline(u),f=$m(a);if(f===null)return o;a=f;let m='<a href="'+a+'"';return s&&(m+=' title="'+Kt(s)+'"'),m+=">"+o+"</a>",m}image({href:a,title:s,text:u,tokens:o}){o&&(u=this.parser.parseInline(o,this.parser.textRenderer));let f=$m(a);if(f===null)return Kt(u);a=f;let m=`<img src="${a}" alt="${Kt(u)}"`;return s&&(m+=` title="${Kt(s)}"`),m+=">",m}text(a){return"tokens"in a&&a.tokens?this.parser.parseInline(a.tokens):"escaped"in a&&a.escaped?a.text:Kt(a.text)}},ko=class{strong({text:a}){return a}em({text:a}){return a}codespan({text:a}){return a}del({text:a}){return a}html({text:a}){return a}text({text:a}){return a}link({text:a}){return""+a}image({text:a}){return""+a}br(){return""}checkbox({raw:a}){return a}},Xt=class so{options;renderer;textRenderer;constructor(s){this.options=s||ml,this.options.renderer=this.options.renderer||new ji,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ko}static parse(s,u){return new so(u).parse(s)}static parseInline(s,u){return new so(u).parseInline(s)}parse(s){let u="";for(let o=0;o<s.length;o++){let f=s[o];if(this.options.extensions?.renderers?.[f.type]){let p=f,v=this.options.extensions.renderers[p.type].call({parser:this},p);if(v!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(p.type)){u+=v||"";continue}}let m=f;switch(m.type){case"space":{u+=this.renderer.space(m);break}case"hr":{u+=this.renderer.hr(m);break}case"heading":{u+=this.renderer.heading(m);break}case"code":{u+=this.renderer.code(m);break}case"table":{u+=this.renderer.table(m);break}case"blockquote":{u+=this.renderer.blockquote(m);break}case"list":{u+=this.renderer.list(m);break}case"checkbox":{u+=this.renderer.checkbox(m);break}case"html":{u+=this.renderer.html(m);break}case"def":{u+=this.renderer.def(m);break}case"paragraph":{u+=this.renderer.paragraph(m);break}case"text":{u+=this.renderer.text(m);break}default:{let p='Token with "'+m.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return u}parseInline(s,u=this.renderer){let o="";for(let f=0;f<s.length;f++){let m=s[f];if(this.options.extensions?.renderers?.[m.type]){let v=this.options.extensions.renderers[m.type].call({parser:this},m);if(v!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(m.type)){o+=v||"";continue}}let p=m;switch(p.type){case"escape":{o+=u.text(p);break}case"html":{o+=u.html(p);break}case"link":{o+=u.link(p);break}case"image":{o+=u.image(p);break}case"checkbox":{o+=u.checkbox(p);break}case"strong":{o+=u.strong(p);break}case"em":{o+=u.em(p);break}case"codespan":{o+=u.codespan(p);break}case"br":{o+=u.br(p);break}case"del":{o+=u.del(p);break}case"text":{o+=u.text(p);break}default:{let v='Token with "'+p.type+'" type was not found.';if(this.options.silent)return console.error(v),"";throw new Error(v)}}}return o}},es=class{options;block;constructor(a){this.options=a||ml}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(a){return a}postprocess(a){return a}processAllTokens(a){return a}emStrongMask(a){return a}provideLexer(){return this.block?Zt.lex:Zt.lexInline}provideParser(){return this.block?Xt.parse:Xt.parseInline}},Ay=class{defaults=ho();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Xt;Renderer=ji;TextRenderer=ko;Lexer=Zt;Tokenizer=Ni;Hooks=es;constructor(...a){this.use(...a)}walkTokens(a,s){let u=[];for(let o of a)switch(u=u.concat(s.call(this,o)),o.type){case"table":{let f=o;for(let m of f.header)u=u.concat(this.walkTokens(m.tokens,s));for(let m of f.rows)for(let p of m)u=u.concat(this.walkTokens(p.tokens,s));break}case"list":{let f=o;u=u.concat(this.walkTokens(f.items,s));break}default:{let f=o;this.defaults.extensions?.childTokens?.[f.type]?this.defaults.extensions.childTokens[f.type].forEach(m=>{let p=f[m].flat(1/0);u=u.concat(this.walkTokens(p,s))}):f.tokens&&(u=u.concat(this.walkTokens(f.tokens,s)))}}return u}use(...a){let s=this.defaults.extensions||{renderers:{},childTokens:{}};return a.forEach(u=>{let o={...u};if(o.async=this.defaults.async||o.async||!1,u.extensions&&(u.extensions.forEach(f=>{if(!f.name)throw new Error("extension name required");if("renderer"in f){let m=s.renderers[f.name];m?s.renderers[f.name]=function(...p){let v=f.renderer.apply(this,p);return v===!1&&(v=m.apply(this,p)),v}:s.renderers[f.name]=f.renderer}if("tokenizer"in f){if(!f.level||f.level!=="block"&&f.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let m=s[f.level];m?m.unshift(f.tokenizer):s[f.level]=[f.tokenizer],f.start&&(f.level==="block"?s.startBlock?s.startBlock.push(f.start):s.startBlock=[f.start]:f.level==="inline"&&(s.startInline?s.startInline.push(f.start):s.startInline=[f.start]))}"childTokens"in f&&f.childTokens&&(s.childTokens[f.name]=f.childTokens)}),o.extensions=s),u.renderer){let f=this.defaults.renderer||new ji(this.defaults);for(let m in u.renderer){if(!(m in f))throw new Error(`renderer '${m}' does not exist`);if(["options","parser"].includes(m))continue;let p=m,v=u.renderer[p],h=f[p];f[p]=(...x)=>{let y=v.apply(f,x);return y===!1&&(y=h.apply(f,x)),y||""}}o.renderer=f}if(u.tokenizer){let f=this.defaults.tokenizer||new Ni(this.defaults);for(let m in u.tokenizer){if(!(m in f))throw new Error(`tokenizer '${m}' does not exist`);if(["options","rules","lexer"].includes(m))continue;let p=m,v=u.tokenizer[p],h=f[p];f[p]=(...x)=>{let y=v.apply(f,x);return y===!1&&(y=h.apply(f,x)),y}}o.tokenizer=f}if(u.hooks){let f=this.defaults.hooks||new es;for(let m in u.hooks){if(!(m in f))throw new Error(`hook '${m}' does not exist`);if(["options","block"].includes(m))continue;let p=m,v=u.hooks[p],h=f[p];es.passThroughHooks.has(m)?f[p]=x=>{if(this.defaults.async&&es.passThroughHooksRespectAsync.has(m))return(async()=>{let b=await v.call(f,x);return h.call(f,b)})();let y=v.call(f,x);return h.call(f,y)}:f[p]=(...x)=>{if(this.defaults.async)return(async()=>{let b=await v.apply(f,x);return b===!1&&(b=await h.apply(f,x)),b})();let y=v.apply(f,x);return y===!1&&(y=h.apply(f,x)),y}}o.hooks=f}if(u.walkTokens){let f=this.defaults.walkTokens,m=u.walkTokens;o.walkTokens=function(p){let v=[];return v.push(m.call(this,p)),f&&(v=v.concat(f.call(this,p))),v}}this.defaults={...this.defaults,...o}}),this}setOptions(a){return this.defaults={...this.defaults,...a},this}lexer(a,s){return Zt.lex(a,s??this.defaults)}parser(a,s){return Xt.parse(a,s??this.defaults)}parseMarkdown(a){return(s,u)=>{let o={...u},f={...this.defaults,...o},m=this.onError(!!f.silent,!!f.async);if(this.defaults.async===!0&&o.async===!1)return m(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof s>"u"||s===null)return m(new Error("marked(): input parameter is undefined or null"));if(typeof s!="string")return m(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected"));if(f.hooks&&(f.hooks.options=f,f.hooks.block=a),f.async)return(async()=>{let p=f.hooks?await f.hooks.preprocess(s):s,v=await(f.hooks?await f.hooks.provideLexer():a?Zt.lex:Zt.lexInline)(p,f),h=f.hooks?await f.hooks.processAllTokens(v):v;f.walkTokens&&await Promise.all(this.walkTokens(h,f.walkTokens));let x=await(f.hooks?await f.hooks.provideParser():a?Xt.parse:Xt.parseInline)(h,f);return f.hooks?await f.hooks.postprocess(x):x})().catch(m);try{f.hooks&&(s=f.hooks.preprocess(s));let p=(f.hooks?f.hooks.provideLexer():a?Zt.lex:Zt.lexInline)(s,f);f.hooks&&(p=f.hooks.processAllTokens(p)),f.walkTokens&&this.walkTokens(p,f.walkTokens);let v=(f.hooks?f.hooks.provideParser():a?Xt.parse:Xt.parseInline)(p,f);return f.hooks&&(v=f.hooks.postprocess(v)),v}catch(p){return m(p)}}}onError(a,s){return u=>{if(u.message+=`
116
+ Please report this to https://github.com/markedjs/marked.`,a){let o="<p>An error occurred:</p><pre>"+Kt(u.message+"",!0)+"</pre>";return s?Promise.resolve(o):o}if(s)return Promise.reject(u);throw u}}},dl=new Ay;function _e(a,s){return dl.parse(a,s)}_e.options=_e.setOptions=function(a){return dl.setOptions(a),_e.defaults=dl.defaults,gp(_e.defaults),_e};_e.getDefaults=ho;_e.defaults=ml;_e.use=function(...a){return dl.use(...a),_e.defaults=dl.defaults,gp(_e.defaults),_e};_e.walkTokens=function(a,s){return dl.walkTokens(a,s)};_e.parseInline=dl.parseInline;_e.Parser=Xt;_e.parser=Xt.parse;_e.Renderer=ji;_e.TextRenderer=ko;_e.Lexer=Zt;_e.lexer=Zt.lex;_e.Tokenizer=Ni;_e.Hooks=es;_e.parse=_e;_e.options;_e.setOptions;_e.use;_e.walkTokens;_e.parseInline;Xt.parse;Zt.lex;_e.setOptions({breaks:!0,gfm:!0});function Ap(a){switch(a.type){case"user-prompt":return{label:"You",text:(a.content.split(`
117
+ `).find(u=>u.trim())||"").slice(0,100)};case"compaction-summary":return{label:"Compaction",text:a.content.slice(0,80)};case"thinking":return{label:"Thinking",text:a.content.slice(0,80)};case"text-response":return{label:"Response",text:(a.content.split(`
118
+ `).find(u=>u.trim())||"").slice(0,100)};case"tool-call":return{label:a.toolName,text:a.diff?.filePath||a.bashOutput?.command||Object.values(a.input).filter(s=>typeof s=="string").join(", ").slice(0,80)||""}}}function _p(a){switch(a.type){case"user-prompt":return"text-terminal-green";case"compaction-summary":return"text-terminal-dim";case"thinking":return"text-terminal-purple";case"text-response":return"text-terminal-blue";case"tool-call":return"text-terminal-orange"}}function Xm({actions:a,scenes:s,currentIndex:u,totalScenes:o,onSeek:f,addingForScene:m,onClearAddingTarget:p,readOnly:v=!1}){const{annotations:h,add:x,update:y,remove:b,hasUnsaved:A,canSaveHtml:z,downloadHtml:S,downloadJson:N,publishGist:C,exportHtml:H,gistPublishing:O,htmlExporting:G,aiCoachTool:F,aiCoachTools:P,aiCoachToolName:ee,setAiCoachToolName:K,runAiCoach:ae,cancelAiCoach:de,aiCoachRunning:le}=a,[te,fe]=T.useState(null),[Le,me]=T.useState(""),[he,E]=T.useState(null),[Y,I]=T.useState(null),[_,V]=T.useState(!1);T.useEffect(()=>{C&&fetch("/api/gh-status").then(oe=>oe.json()).then(oe=>I(oe.available??!1)).catch(()=>I(!1))},[C]);const[w,B]=T.useState(null),[Q,W]=T.useState(""),ne=T.useRef(null),re=T.useRef(null),pe=T.useRef(null),Be=T.useRef(null),J=m??te;T.useEffect(()=>{m!==null&&(me(""),fe(null),setTimeout(()=>{Be.current?.scrollIntoView({behavior:"smooth",block:"nearest"}),ne.current?.focus()},50))},[m]),T.useEffect(()=>{J!==null&&ne.current&&ne.current.focus()},[J]),T.useEffect(()=>{w&&re.current&&re.current.focus()},[w]);const xe=T.useMemo(()=>[...h].sort((oe,He)=>oe.sceneIndex-He.sceneIndex),[h]);T.useEffect(()=>{if(!pe.current||J!==null)return;const oe=pe.current.querySelectorAll("[data-annotation-scene]");let He=null,yn=1/0;oe.forEach(pl=>{const ta=Number(pl.getAttribute("data-annotation-scene")),hl=Math.abs(ta-u);hl<yn&&(yn=hl,He=pl)}),He&&yn<=3&&He.scrollIntoView({behavior:"smooth",block:"nearest"})},[u,J]);const ze=T.useCallback(()=>{fe(null),me(""),p()},[p]),rt=T.useCallback(()=>{!Le.trim()||J===null||(x(J,Le.trim()),me(""),fe(null),p())},[x,J,Le,p]),_t=T.useCallback(()=>{!w||!Q.trim()||(y(w,Q.trim()),B(null),W(""))},[w,Q,y]),Ie=J!==null&&s[J]?Ap(s[J]):null,Ct=J!==null&&s[J]?_p(s[J]):"";return c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-terminal-border-subtle",children:[c.jsx("span",{className:"text-[10px] font-sans font-semibold text-terminal-text uppercase tracking-widest",children:"Comments"}),c.jsxs("div",{className:"flex items-center gap-2",children:[v&&c.jsx("span",{className:"text-xs font-mono text-terminal-dimmer uppercase px-1.5 py-0.5 rounded bg-terminal-surface",children:"Read-only"}),c.jsx("span",{className:"text-xs font-mono text-terminal-dim",children:h.length})]})]}),c.jsxs("div",{ref:pe,className:"flex-1 overflow-y-auto",children:[xe.length===0&&J===null&&c.jsxs("div",{className:"px-3 py-8 text-center",children:[c.jsx("div",{className:"text-terminal-dim text-xs font-mono mb-2",children:"No comments yet"}),!v&&c.jsx("div",{className:"text-terminal-dimmer text-xs font-mono",children:"Hover over any message and click the comment icon to add one"})]}),xe.map(oe=>c.jsx(_y,{annotation:oe,scene:s[oe.sceneIndex],isCurrent:oe.sceneIndex===u,isEditing:!v&&w===oe.id,editBody:w===oe.id?Q:"",editTextareaRef:w===oe.id?re:void 0,onSeek:()=>f(oe.sceneIndex),onStartEdit:()=>{B(oe.id),W(oe.body)},onCancelEdit:()=>{B(null),W("")},onSaveEdit:_t,onEditBodyChange:W,onDelete:()=>b(oe.id),readOnly:v},oe.id)),!v&&J!==null&&c.jsxs("div",{ref:Be,className:"px-3 py-2.5 border-b border-terminal-border-subtle bg-terminal-blue-subtle",children:[Ie&&c.jsxs("div",{className:"flex items-center gap-1.5 mb-2",children:[c.jsx("span",{className:`text-xs font-mono font-semibold uppercase ${Ct}`,children:Ie.label}),c.jsx("span",{className:"text-xs font-mono text-terminal-dim truncate",children:Ie.text})]}),c.jsx("textarea",{ref:ne,value:Le,onChange:oe=>me(oe.target.value),onKeyDown:oe=>{oe.key==="Enter"&&(oe.metaKey||oe.ctrlKey)&&(oe.preventDefault(),rt()),oe.key==="Escape"&&ze()},placeholder:"Add a comment... (Markdown supported)",className:"w-full bg-terminal-surface rounded px-2 py-1.5 text-xs font-mono text-terminal-text placeholder-terminal-dimmer resize-none focus:outline-none ring-1 ring-terminal-border-subtle focus:ring-terminal-blue/40 transition-shadow duration-200",rows:3}),c.jsxs("div",{className:"flex items-center justify-between mt-1.5",children:[c.jsxs("span",{className:"text-xs font-mono text-terminal-dimmer",children:["⌘","+Enter to save"]}),c.jsxs("div",{className:"flex gap-1.5",children:[c.jsx("button",{onClick:ze,className:"px-2 py-1 text-xs font-mono text-terminal-dim hover:text-terminal-text transition-colors",children:"Cancel"}),c.jsx("button",{onClick:rt,disabled:!Le.trim(),className:"px-2 py-1 text-xs font-mono bg-terminal-blue-subtle text-terminal-blue rounded hover:bg-terminal-blue-emphasis transition-colors disabled:opacity-40",children:"Comment"})]})]})]})]}),!v&&(h.length>0||ae)&&c.jsxs("div",{className:"shrink-0 border-t border-terminal-border-subtle px-3 py-2 space-y-1.5",children:[A&&!C&&c.jsx("div",{className:"text-xs font-mono text-terminal-orange text-center mb-1",children:"Unsaved changes"}),he&&c.jsx("div",{className:`text-xs font-mono text-center mb-1 ${he.type==="success"?"text-terminal-green":"text-terminal-red"}`,children:he.type==="success"&&he.text.startsWith("http")?c.jsx("a",{href:he.text,target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-terminal-text transition-colors",children:he.text}):he.text}),ae&&!_&&!le&&(()=>{const oe=h.some(He=>He.author==="vibe-feedback");return c.jsx("button",{onClick:()=>V(!0),className:"w-full px-2 py-1.5 text-xs font-mono bg-terminal-purple-subtle text-terminal-purple rounded hover:bg-terminal-purple-emphasis transition-colors text-center",children:oe?"Re-run AI Coach (beta)":"AI Coach (beta)"})})(),_&&!le&&(()=>{const oe=h.some(He=>He.author==="vibe-feedback");return c.jsxs("div",{className:"space-y-1.5 p-2 rounded bg-terminal-purple-subtle",children:[c.jsx("div",{className:"text-xs font-mono text-terminal-purple font-semibold",children:"AI Coach (beta)"}),c.jsxs("div",{className:"text-xs font-mono text-terminal-dim leading-relaxed",children:["Uses ",c.jsx("span",{className:"text-terminal-text",children:F?.name})," CLI to analyze your prompting technique. This will make API calls using your configured credentials and may use tokens/cost money. Typically takes 1-3 minutes.",oe&&c.jsx("span",{className:"block mt-1 text-terminal-orange",children:"This will replace existing AI Coach comments."})]}),P.length>1&&K&&c.jsxs("label",{className:"block text-xs font-mono text-terminal-dim",children:["Tool:",c.jsx("select",{value:ee||"",onChange:He=>K(He.target.value),className:"ml-1 bg-terminal-surface rounded px-1.5 py-0.5 text-xs font-mono text-terminal-text",children:P.map(He=>c.jsx("option",{value:He.name,children:He.name},He.name))})]}),c.jsxs("div",{className:"flex gap-1.5 justify-end",children:[c.jsx("button",{onClick:()=>V(!1),className:"px-2 py-1 text-xs font-mono text-terminal-dim hover:text-terminal-text transition-colors",children:"Cancel"}),c.jsx("button",{onClick:async()=>{V(!1);try{const He=await ae?.();E({type:"success",text:`Score: ${He.score}/10 — ${He.itemCount} comment(s) added`})}catch(He){if(He.name==="AbortError")return;E({type:"error",text:He.message})}},className:"px-2 py-1 text-xs font-mono bg-terminal-purple-subtle text-terminal-purple rounded hover:bg-terminal-purple-emphasis transition-colors",children:"Run"})]})]})})(),le&&c.jsxs("div",{className:"flex items-center justify-center gap-2 py-2",children:[c.jsx("span",{className:"text-xs font-mono text-terminal-purple animate-pulse",children:"Analyzing your prompting patterns..."}),de&&c.jsx("button",{onClick:de,className:"px-1.5 py-0.5 text-xs font-mono text-terminal-dim hover:text-terminal-red rounded transition-colors",children:"Cancel"})]}),H&&c.jsx("button",{onClick:async()=>{E(null);try{const oe=await H();E({type:"success",text:`Saved: ${oe}`})}catch(oe){E({type:"error",text:oe.message})}},disabled:G,className:"w-full px-2 py-1.5 text-xs font-mono bg-terminal-green-subtle text-terminal-green rounded hover:bg-terminal-green-emphasis transition-colors text-center disabled:opacity-50",children:G?"Exporting...":"Export HTML"}),C&&Y&&c.jsx("button",{onClick:async()=>{E(null);try{const oe=await C();E({type:"success",text:oe.viewerUrl})}catch(oe){E({type:"error",text:oe.message})}},disabled:O,className:"w-full px-2 py-1.5 text-xs font-mono bg-terminal-purple-subtle text-terminal-purple rounded hover:bg-terminal-purple-emphasis transition-colors text-center disabled:opacity-50",children:O?"Publishing...":"Publish to Gist"}),C&&Y===!1&&c.jsxs("div",{className:"text-xs font-mono text-terminal-orange text-center px-2 py-1.5 rounded bg-terminal-orange-subtle",children:["Gist publishing requires"," ",c.jsx("a",{href:"https://cli.github.com/",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"gh CLI"})," ","— install then run ",c.jsx("span",{className:"text-terminal-text",children:"gh auth login"})]}),!H&&z&&c.jsx("button",{onClick:S,className:"w-full px-2 py-1.5 text-xs font-mono bg-terminal-green-subtle text-terminal-green rounded hover:bg-terminal-green-emphasis transition-colors text-center",title:"Download HTML with comments embedded",children:"Save HTML with Comments"}),!H&&!z&&c.jsx("div",{className:"text-xs font-mono text-terminal-dimmer text-center px-2 py-1",children:"Save HTML requires a production build (use CLI output)"}),!C&&c.jsx("button",{onClick:N,className:"w-full px-2 py-1.5 text-xs font-mono bg-terminal-blue-subtle text-terminal-blue rounded hover:bg-terminal-blue-emphasis transition-colors text-center",title:"Download replay.json for re-publishing to gist",children:"Export JSON (for gist re-publish)"})]})]})}const _y=T.memo(function({annotation:s,scene:u,isCurrent:o,isEditing:f,editBody:m,editTextareaRef:p,onSeek:v,onStartEdit:h,onCancelEdit:x,onSaveEdit:y,onEditBodyChange:b,onDelete:A,readOnly:z=!1}){const[S,N]=T.useState(!1),C=u?Ap(u):null,H=u?_p(u):"text-terminal-dim",O=T.useMemo(()=>{try{return new Date(s.createdAt).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}catch{return""}},[s.createdAt]),G=s.author==="vibe-feedback";return c.jsxs("div",{"data-annotation-scene":s.sceneIndex,className:`px-3 py-2 border-b border-terminal-border-subtle transition-colors ${G?o?"bg-terminal-purple/10 border-l-2 border-l-terminal-purple":"bg-terminal-purple/[0.03] hover:bg-terminal-purple/[0.06]":o?"bg-terminal-blue/10 border-l-2 border-l-terminal-blue":"hover:bg-terminal-surface/50"}`,onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:[G&&c.jsx("div",{className:"flex items-center gap-1.5 mb-1",children:c.jsx("span",{className:"text-[10px] font-sans font-semibold uppercase tracking-widest text-terminal-purple px-2 py-0.5 rounded-full bg-terminal-purple-subtle",children:"AI Coach"})}),c.jsxs("button",{onClick:v,className:"flex items-center gap-1.5 mb-1 w-full text-left group/ref",children:[C&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:`text-xs font-mono font-semibold uppercase shrink-0 ${H}`,children:C.label}),c.jsx("span",{className:"text-xs font-mono text-terminal-dim truncate group-hover/ref:text-terminal-text transition-colors",children:C.text})]}),!C&&c.jsxs("span",{className:"text-xs font-mono text-terminal-dim",children:["Step ",s.sceneIndex+1]})]}),c.jsxs("div",{className:"flex items-start gap-1",children:[c.jsx("div",{className:"flex-1 min-w-0",children:f?c.jsxs("div",{children:[c.jsx("textarea",{ref:p,value:m,onChange:F=>b(F.target.value),onKeyDown:F=>{F.key==="Enter"&&(F.metaKey||F.ctrlKey)&&(F.preventDefault(),y()),F.key==="Escape"&&x()},className:"w-full bg-terminal-surface rounded px-2 py-1.5 text-xs font-mono text-terminal-text resize-none focus:outline-none ring-1 ring-terminal-border-subtle focus:ring-terminal-blue/40 transition-shadow duration-200",rows:3}),c.jsxs("div",{className:"flex justify-end gap-1.5 mt-1",children:[c.jsx("button",{onClick:x,className:"px-2 py-0.5 text-xs font-mono text-terminal-dim hover:text-terminal-text transition-colors",children:"Cancel"}),c.jsx("button",{onClick:y,className:"px-2 py-0.5 text-xs font-mono bg-terminal-blue-subtle text-terminal-blue rounded hover:bg-terminal-blue-emphasis transition-colors",children:"Save"})]})]}):c.jsx("div",{className:"prose-terminal text-xs text-terminal-text leading-relaxed",dangerouslySetInnerHTML:{__html:_e.parse(s.body)}})}),!z&&S&&!f&&c.jsxs("div",{className:"flex gap-0.5 shrink-0 pt-0.5",children:[c.jsx("button",{onClick:h,className:"p-0.5 text-xs text-terminal-dim hover:text-terminal-blue transition-colors",title:"Edit",children:"✎"}),c.jsx("button",{onClick:A,className:"p-0.5 text-xs text-terminal-dim hover:text-terminal-red transition-colors",title:"Delete",children:"✕"})]})]}),c.jsx("div",{className:"text-xs font-mono text-terminal-dimmer mt-1",children:O})]})}),Cy=[1,5,10];function Ry({state:a,speed:s,currentIndex:u,totalScenes:o,userPromptCount:f,currentTurn:m,onTogglePlayPause:p,onChangeSpeed:v,onPrevPrompt:h,onNextPrompt:x,onOpenSearch:y,onOpenOutline:b,annotationCount:A=0,annotationPanelOpen:z=!1,onToggleAnnotations:S,hasUnsavedAnnotations:N=!1}){const C=a==="playing",H=C?"⏸":"▶",O=C?"Pause":"Play",[G,F]=T.useState(null),P=T.useCallback(ae=>{F(ae),setTimeout(()=>F(null),300)},[]),ee=ae=>G===ae?"scale-105":"",K="px-2.5 py-1.5 text-xs font-mono rounded-lg transition-all duration-200 ease-material";return c.jsxs("div",{className:"flex items-center justify-between px-4 md:px-5 py-2.5",children:[c.jsxs("div",{className:"flex items-center gap-1 md:gap-2",children:[c.jsxs("button",{onClick:()=>{P("play"),p()},className:`${K} bg-terminal-green-subtle text-terminal-green hover:bg-terminal-green-emphasis font-medium ${ee("play")}`,title:"Play/Pause (Space)",children:[c.jsx("span",{children:H}),c.jsx("span",{className:"hidden sm:inline ml-1.5",children:O})]}),c.jsx("div",{className:"flex items-center rounded-lg bg-terminal-surface overflow-hidden",children:Cy.map(ae=>c.jsxs("button",{onClick:()=>{P(`speed-${ae}`),v(ae)},className:`px-2.5 py-1.5 text-xs font-mono transition-all duration-200 ease-material ${s===ae?"bg-terminal-green-subtle text-terminal-green font-medium":"text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface-hover"} ${ee(`speed-${ae}`)}`,children:[ae,"x"]},ae))}),c.jsxs("div",{className:"flex items-center",children:[c.jsx("button",{onClick:()=>{P("prev"),h()},className:`${K} text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface-hover ${ee("prev")}`,title:"Previous turn (p)",children:"‹"}),c.jsxs("span",{className:"px-1.5 py-1.5 text-xs font-mono text-terminal-dim tabular-nums",children:[c.jsx("span",{className:"hidden sm:inline",children:"Turn "}),m,"/",f]}),c.jsx("button",{onClick:()=>{P("next"),x()},className:`${K} text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface-hover ${ee("next")}`,title:"Next turn (n)",children:"›"})]}),c.jsxs("button",{onClick:()=>{P("search"),y()},className:`${K} text-terminal-dim hover:text-terminal-blue hover:bg-terminal-blue-subtle ${ee("search")}`,title:"Search (Cmd/Ctrl+K)",children:[c.jsx("span",{children:"🔍"}),c.jsx("span",{className:"hidden sm:inline ml-1.5",children:"Search"})]}),S&&c.jsxs("button",{onClick:()=>{P("annotate"),S()},className:`${K} hidden md:inline-flex items-center ${z?"bg-terminal-blue-subtle text-terminal-blue":"text-terminal-dim hover:text-terminal-blue hover:bg-terminal-blue-subtle"} ${ee("annotate")} relative`,title:"Toggle comments panel",children:[c.jsx("span",{children:"💬"}),A>0&&c.jsx("span",{className:"hidden sm:inline ml-1.5",children:A}),N&&c.jsx("span",{className:"absolute -top-0.5 -right-0.5 w-1.5 h-1.5 rounded-full bg-terminal-orange"})]}),b&&c.jsx("button",{onClick:()=>{P("outline"),b()},className:`${K} md:hidden text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface-hover ${ee("outline")}`,title:"Outline",children:"☰"})]}),c.jsxs("div",{className:"hidden sm:flex items-center gap-2 md:gap-3 text-xs text-terminal-dim font-mono shrink-0",children:[a==="paused"&&c.jsx("span",{className:"text-[10px] font-sans font-semibold uppercase tracking-widest text-terminal-orange",children:"Paused"}),c.jsxs("span",{className:"tabular-nums",children:[Math.max(0,u+1)," / ",o]}),c.jsxs("span",{className:"hidden lg:inline-flex items-center gap-2 text-terminal-dimmer pl-3",children:[c.jsx("kbd",{className:"text-xs px-1 py-px rounded bg-terminal-surface border border-terminal-border/50",children:"Space"}),c.jsx("span",{className:"text-xs",children:"play"}),c.jsx("kbd",{className:"text-xs px-1 py-px rounded bg-terminal-surface border border-terminal-border/50",children:"n"}),c.jsx("kbd",{className:"text-xs px-1 py-px rounded bg-terminal-surface border border-terminal-border/50",children:"p"}),c.jsx("span",{className:"text-xs",children:"turns"}),c.jsx("kbd",{className:"text-xs px-1 py-px rounded bg-terminal-surface border border-terminal-border/50",children:"←→"}),c.jsx("span",{className:"text-xs",children:"step"}),c.jsx("kbd",{className:"text-xs px-1 py-px rounded bg-terminal-surface border border-terminal-border/50",children:"e"}),c.jsx("span",{className:"text-xs",children:"all"}),c.jsx("kbd",{className:"text-xs px-1 py-px rounded bg-terminal-surface border border-terminal-border/50",children:"⌘K"}),c.jsx("span",{className:"text-xs",children:"search"})]})]})]})}const Qm=3,Cp=T.memo(function({content:s}){const[u,o]=T.useState(!1),f=s.split(`
119
+ `),m=f.length>Qm,p=m&&!u?f.slice(0,Qm).join(`
120
+ `):s;return c.jsxs("div",{children:[c.jsxs("div",{className:`text-xs font-mono text-terminal-dimmer whitespace-pre-wrap leading-relaxed ${m&&!u?"max-h-[4.5em] overflow-hidden relative":""}`,children:[p,m&&!u&&c.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-8 bg-gradient-to-t from-terminal-bg to-transparent"})]}),m&&c.jsx("button",{onClick:()=>o(!u),className:"mt-1 text-xs font-mono text-terminal-dimmer hover:text-terminal-text transition-colors",children:u?"Show less":`Show full summary (${f.length} lines)`})]})}),Vm=600,zy=T.memo(function({content:s,isActive:u}){const o=s.length>Vm,[f,m]=T.useState(!1),p=o&&!f?`${s.slice(0,Vm)}...`:s,v=T.useMemo(()=>_e.parse(p),[p]);return c.jsxs("div",{children:[c.jsxs("div",{className:`prose-terminal text-sm text-terminal-text ${u?"typing-cursor":""} ${o&&!f?"max-h-[200px] overflow-hidden relative":""}`,children:[c.jsx("div",{dangerouslySetInnerHTML:{__html:v}}),o&&!f&&c.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-12 bg-gradient-to-t from-terminal-bg to-transparent"})]}),o&&c.jsx("button",{onClick:()=>m(!f),className:"mt-1 text-xs font-mono text-terminal-blue hover:text-terminal-text transition-colors",children:f?"Show less":`Show more (${s.length} chars)`})]})}),Oy=T.memo(function({content:s,isActive:u}){const[o,f]=T.useState(!1);return c.jsxs("div",{className:"ml-6",children:[c.jsxs("button",{onClick:()=>f(!o),className:"flex items-center gap-2 text-xs text-terminal-dim hover:text-terminal-text transition-colors duration-200 ease-material font-mono",children:[c.jsx("span",{className:`transition-transform ${o?"rotate-90":""}`,children:"▶"}),c.jsx("span",{className:u?"animate-pulse":"",children:"Thinking..."}),c.jsxs("span",{className:"text-terminal-purple",children:["(",s.length," chars)"]})]}),o&&c.jsx("div",{className:"mt-2 pl-5 text-xs text-terminal-dim font-mono whitespace-pre-wrap break-words border-l-2 border-terminal-purple/30 max-h-[300px] overflow-y-auto",children:s})]})}),Dy=T.memo(function({command:s,stdout:u,isActive:o}){const[f,m]=T.useState(!0),p=u.trim().length>0;return c.jsxs("div",{className:"bg-terminal-surface rounded-xl overflow-hidden shadow-layer-sm",children:[c.jsxs("button",{onClick:()=>p&&m(!f),className:"w-full flex items-center gap-2 px-3 py-2 hover:bg-terminal-surface-hover transition-colors duration-200 ease-material text-left",children:[c.jsx("span",{className:"text-xs font-mono font-bold text-terminal-orange",children:"$"}),c.jsx("span",{className:"text-xs font-mono text-terminal-text truncate flex-1",children:s}),p&&c.jsx("span",{className:`text-xs text-terminal-dim transition-transform ${f?"rotate-90":""}`,children:"▶"})]}),f&&p&&c.jsx("div",{className:"px-3 py-2 max-h-[300px] overflow-y-auto",children:c.jsx("pre",{className:"text-xs font-mono text-terminal-dim whitespace-pre-wrap break-words",children:u})})]})});function Wt(){}Wt.prototype={diff:function(s,u){var o,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},m=f.callback;typeof f=="function"&&(m=f,f={});var p=this;function v(F){return F=p.postProcess(F,f),m?(setTimeout(function(){m(F)},0),!0):F}s=this.castInput(s,f),u=this.castInput(u,f),s=this.removeEmpty(this.tokenize(s,f)),u=this.removeEmpty(this.tokenize(u,f));var h=u.length,x=s.length,y=1,b=h+x;f.maxEditLength!=null&&(b=Math.min(b,f.maxEditLength));var A=(o=f.timeout)!==null&&o!==void 0?o:1/0,z=Date.now()+A,S=[{oldPos:-1,lastComponent:void 0}],N=this.extractCommon(S[0],u,s,0,f);if(S[0].oldPos+1>=x&&N+1>=h)return v(Fm(p,S[0].lastComponent,u,s,p.useLongestToken));var C=-1/0,H=1/0;function O(){for(var F=Math.max(C,-y);F<=Math.min(H,y);F+=2){var P=void 0,ee=S[F-1],K=S[F+1];ee&&(S[F-1]=void 0);var ae=!1;if(K){var de=K.oldPos-F;ae=K&&0<=de&&de<h}var le=ee&&ee.oldPos+1<x;if(!ae&&!le){S[F]=void 0;continue}if(!le||ae&&ee.oldPos<K.oldPos?P=p.addToPath(K,!0,!1,0,f):P=p.addToPath(ee,!1,!0,1,f),N=p.extractCommon(P,u,s,F,f),P.oldPos+1>=x&&N+1>=h)return v(Fm(p,P.lastComponent,u,s,p.useLongestToken));S[F]=P,P.oldPos+1>=x&&(H=Math.min(H,F-1)),N+1>=h&&(C=Math.max(C,F+1))}y++}if(m)(function F(){setTimeout(function(){if(y>b||Date.now()>z)return m();O()||F()},0)})();else for(;y<=b&&Date.now()<=z;){var G=O();if(G)return G}},addToPath:function(s,u,o,f,m){var p=s.lastComponent;return p&&!m.oneChangePerToken&&p.added===u&&p.removed===o?{oldPos:s.oldPos+f,lastComponent:{count:p.count+1,added:u,removed:o,previousComponent:p.previousComponent}}:{oldPos:s.oldPos+f,lastComponent:{count:1,added:u,removed:o,previousComponent:p}}},extractCommon:function(s,u,o,f,m){for(var p=u.length,v=o.length,h=s.oldPos,x=h-f,y=0;x+1<p&&h+1<v&&this.equals(o[h+1],u[x+1],m);)x++,h++,y++,m.oneChangePerToken&&(s.lastComponent={count:1,previousComponent:s.lastComponent,added:!1,removed:!1});return y&&!m.oneChangePerToken&&(s.lastComponent={count:y,previousComponent:s.lastComponent,added:!1,removed:!1}),s.oldPos=h,x},equals:function(s,u,o){return o.comparator?o.comparator(s,u):s===u||o.ignoreCase&&s.toLowerCase()===u.toLowerCase()},removeEmpty:function(s){for(var u=[],o=0;o<s.length;o++)s[o]&&u.push(s[o]);return u},castInput:function(s){return s},tokenize:function(s){return Array.from(s)},join:function(s){return s.join("")},postProcess:function(s){return s}};function Fm(a,s,u,o,f){for(var m=[],p;s;)m.push(s),p=s.previousComponent,delete s.previousComponent,s=p;m.reverse();for(var v=0,h=m.length,x=0,y=0;v<h;v++){var b=m[v];if(b.removed)b.value=a.join(o.slice(y,y+b.count)),y+=b.count;else{if(!b.added&&f){var A=u.slice(x,x+b.count);A=A.map(function(z,S){var N=o[y+S];return N.length>z.length?N:z}),b.value=a.join(A)}else b.value=a.join(u.slice(x,x+b.count));x+=b.count,b.added||(y+=b.count)}}return m}function Jm(a,s){var u;for(u=0;u<a.length&&u<s.length;u++)if(a[u]!=s[u])return a.slice(0,u);return a.slice(0,u)}function Km(a,s){var u;if(!a||!s||a[a.length-1]!=s[s.length-1])return"";for(u=0;u<a.length&&u<s.length;u++)if(a[a.length-(u+1)]!=s[s.length-(u+1)])return a.slice(-u);return a.slice(-u)}function io(a,s,u){if(a.slice(0,s.length)!=s)throw Error("string ".concat(JSON.stringify(a)," doesn't start with prefix ").concat(JSON.stringify(s),"; this is a bug"));return u+a.slice(s.length)}function ro(a,s,u){if(!s)return a+u;if(a.slice(-s.length)!=s)throw Error("string ".concat(JSON.stringify(a)," doesn't end with suffix ").concat(JSON.stringify(s),"; this is a bug"));return a.slice(0,-s.length)+u}function Pa(a,s){return io(a,s,"")}function wi(a,s){return ro(a,s,"")}function Im(a,s){return s.slice(0,My(a,s))}function My(a,s){var u=0;a.length>s.length&&(u=a.length-s.length);var o=s.length;a.length<s.length&&(o=a.length);var f=Array(o),m=0;f[0]=0;for(var p=1;p<o;p++){for(s[p]==s[m]?f[p]=f[m]:f[p]=m;m>0&&s[p]!=s[m];)m=f[m];s[p]==s[m]&&m++}m=0;for(var v=u;v<a.length;v++){for(;m>0&&a[v]!=s[m];)m=f[m];a[v]==s[m]&&m++}return m}var Ti="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",Ly=new RegExp("[".concat(Ti,"]+|\\s+|[^").concat(Ti,"]"),"ug"),Ri=new Wt;Ri.equals=function(a,s,u){return u.ignoreCase&&(a=a.toLowerCase(),s=s.toLowerCase()),a.trim()===s.trim()};Ri.tokenize=function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u;if(s.intlSegmenter){if(s.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');u=Array.from(s.intlSegmenter.segment(a),function(m){return m.segment})}else u=a.match(Ly)||[];var o=[],f=null;return u.forEach(function(m){/\s/.test(m)?f==null?o.push(m):o.push(o.pop()+m):/\s/.test(f)?o[o.length-1]==f?o.push(o.pop()+m):o.push(f+m):o.push(m),f=m}),o};Ri.join=function(a){return a.map(function(s,u){return u==0?s:s.replace(/^\s+/,"")}).join("")};Ri.postProcess=function(a,s){if(!a||s.oneChangePerToken)return a;var u=null,o=null,f=null;return a.forEach(function(m){m.added?o=m:m.removed?f=m:((o||f)&&Wm(u,f,o,m),u=m,o=null,f=null)}),(o||f)&&Wm(u,f,o,null),a};function Wm(a,s,u,o){if(s&&u){var f=s.value.match(/^\s*/)[0],m=s.value.match(/\s*$/)[0],p=u.value.match(/^\s*/)[0],v=u.value.match(/\s*$/)[0];if(a){var h=Jm(f,p);a.value=ro(a.value,p,h),s.value=Pa(s.value,h),u.value=Pa(u.value,h)}if(o){var x=Km(m,v);o.value=io(o.value,v,x),s.value=wi(s.value,x),u.value=wi(u.value,x)}}else if(u)a&&(u.value=u.value.replace(/^\s*/,"")),o&&(o.value=o.value.replace(/^\s*/,""));else if(a&&o){var y=o.value.match(/^\s*/)[0],b=s.value.match(/^\s*/)[0],A=s.value.match(/\s*$/)[0],z=Jm(y,b);s.value=Pa(s.value,z);var S=Km(Pa(y,z),A);s.value=wi(s.value,S),o.value=io(o.value,y,S),a.value=ro(a.value,y,y.slice(0,y.length-S.length))}else if(o){var N=o.value.match(/^\s*/)[0],C=s.value.match(/\s*$/)[0],H=Im(C,N);s.value=wi(s.value,H)}else if(a){var O=a.value.match(/\s*$/)[0],G=s.value.match(/^\s*/)[0],F=Im(O,G);s.value=Pa(s.value,F)}}var By=new Wt;By.tokenize=function(a){var s=new RegExp("(\\r?\\n)|[".concat(Ti,"]+|[^\\S\\n\\r]+|[^").concat(Ti,"]"),"ug");return a.match(s)||[]};var zi=new Wt;zi.tokenize=function(a,s){s.stripTrailingCr&&(a=a.replace(/\r\n/g,`
121
+ `));var u=[],o=a.split(/(\n|\r\n)/);o[o.length-1]||o.pop();for(var f=0;f<o.length;f++){var m=o[f];f%2&&!s.newlineIsToken?u[u.length-1]+=m:u.push(m)}return u};zi.equals=function(a,s,u){return u.ignoreWhitespace?((!u.newlineIsToken||!a.includes(`
122
+ `))&&(a=a.trim()),(!u.newlineIsToken||!s.includes(`
123
+ `))&&(s=s.trim())):u.ignoreNewlineAtEof&&!u.newlineIsToken&&(a.endsWith(`
124
+ `)&&(a=a.slice(0,-1)),s.endsWith(`
125
+ `)&&(s=s.slice(0,-1))),Wt.prototype.equals.call(this,a,s,u)};function Uy(a,s,u){return zi.diff(a,s,u)}var Hy=new Wt;Hy.tokenize=function(a){return a.split(/(\S.+?[.!?])(?=\s+|$)/)};var qy=new Wt;qy.tokenize=function(a){return a.split(/([{}:;,]|\s+)/)};function uo(a){"@babel/helpers - typeof";return uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},uo(a)}var ts=new Wt;ts.useLongestToken=!0;ts.tokenize=zi.tokenize;ts.castInput=function(a,s){var u=s.undefinedReplacement,o=s.stringifyReplacer,f=o===void 0?function(m,p){return typeof p>"u"?u:p}:o;return typeof a=="string"?a:JSON.stringify(oo(a,null,null,f),f," ")};ts.equals=function(a,s,u){return Wt.prototype.equals.call(ts,a.replace(/,([\r\n])/g,"$1"),s.replace(/,([\r\n])/g,"$1"),u)};function oo(a,s,u,o,f){s=s||[],u=u||[],o&&(a=o(f,a));var m;for(m=0;m<s.length;m+=1)if(s[m]===a)return u[m];var p;if(Object.prototype.toString.call(a)==="[object Array]"){for(s.push(a),p=new Array(a.length),u.push(p),m=0;m<a.length;m+=1)p[m]=oo(a[m],s,u,o,f);return s.pop(),u.pop(),p}if(a&&a.toJSON&&(a=a.toJSON()),uo(a)==="object"&&a!==null){s.push(a),p={},u.push(p);var v=[],h;for(h in a)Object.prototype.hasOwnProperty.call(a,h)&&v.push(h);for(v.sort(),m=0;m<v.length;m+=1)h=v[m],p[h]=oo(a[h],s,u,o,h);s.pop(),u.pop()}else p=a;return p}var co=new Wt;co.tokenize=function(a){return a.slice()};co.join=co.removeEmpty=function(a){return a};function Rp(a){var s,u,o="";if(typeof a=="string"||typeof a=="number")o+=a;else if(typeof a=="object")if(Array.isArray(a)){var f=a.length;for(s=0;s<f;s++)a[s]&&(u=Rp(a[s]))&&(o&&(o+=" "),o+=u)}else for(u in a)a[u]&&(o&&(o+=" "),o+=u);return o}function zp(){for(var a,s,u=0,o="",f=arguments.length;u<f;u++)(a=arguments[u])&&(s=Rp(a))&&(o&&(o+=" "),o+=s);return o}var Gy=Object.create,Oi=Object.defineProperty,$y=Object.defineProperties,Yy=Object.getOwnPropertyDescriptor,Zy=Object.getOwnPropertyDescriptors,Op=Object.getOwnPropertyNames,Ai=Object.getOwnPropertySymbols,Xy=Object.getPrototypeOf,Eo=Object.prototype.hasOwnProperty,Dp=Object.prototype.propertyIsEnumerable,Pm=(a,s,u)=>s in a?Oi(a,s,{enumerable:!0,configurable:!0,writable:!0,value:u}):a[s]=u,It=(a,s)=>{for(var u in s||(s={}))Eo.call(s,u)&&Pm(a,u,s[u]);if(Ai)for(var u of Ai(s))Dp.call(s,u)&&Pm(a,u,s[u]);return a},Di=(a,s)=>$y(a,Zy(s)),Mp=(a,s)=>{var u={};for(var o in a)Eo.call(a,o)&&s.indexOf(o)<0&&(u[o]=a[o]);if(a!=null&&Ai)for(var o of Ai(a))s.indexOf(o)<0&&Dp.call(a,o)&&(u[o]=a[o]);return u},Qy=(a,s)=>function(){return s||(0,a[Op(a)[0]])((s={exports:{}}).exports,s),s.exports},Vy=(a,s)=>{for(var u in s)Oi(a,u,{get:s[u],enumerable:!0})},Fy=(a,s,u,o)=>{if(s&&typeof s=="object"||typeof s=="function")for(let f of Op(s))!Eo.call(a,f)&&f!==u&&Oi(a,f,{get:()=>s[f],enumerable:!(o=Yy(s,f))||o.enumerable});return a},Jy=(a,s,u)=>(u=a!=null?Gy(Xy(a)):{},Fy(!a||!a.__esModule?Oi(u,"default",{value:a,enumerable:!0}):u,a)),Ky=Qy({"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(a,s){var u=(function(){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,f=0,m={},p={util:{encode:function S(N){return N instanceof v?new v(N.type,S(N.content),N.alias):Array.isArray(N)?N.map(S):N.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(S){return Object.prototype.toString.call(S).slice(8,-1)},objId:function(S){return S.__id||Object.defineProperty(S,"__id",{value:++f}),S.__id},clone:function S(N,C){C=C||{};var H,O;switch(p.util.type(N)){case"Object":if(O=p.util.objId(N),C[O])return C[O];H={},C[O]=H;for(var G in N)N.hasOwnProperty(G)&&(H[G]=S(N[G],C));return H;case"Array":return O=p.util.objId(N),C[O]?C[O]:(H=[],C[O]=H,N.forEach(function(F,P){H[P]=S(F,C)}),H);default:return N}},getLanguage:function(S){for(;S;){var N=o.exec(S.className);if(N)return N[1].toLowerCase();S=S.parentElement}return"none"},setLanguage:function(S,N){S.className=S.className.replace(RegExp(o,"gi"),""),S.classList.add("language-"+N)},isActive:function(S,N,C){for(var H="no-"+N;S;){var O=S.classList;if(O.contains(N))return!0;if(O.contains(H))return!1;S=S.parentElement}return!!C}},languages:{plain:m,plaintext:m,text:m,txt:m,extend:function(S,N){var C=p.util.clone(p.languages[S]);for(var H in N)C[H]=N[H];return C},insertBefore:function(S,N,C,H){H=H||p.languages;var O=H[S],G={};for(var F in O)if(O.hasOwnProperty(F)){if(F==N)for(var P in C)C.hasOwnProperty(P)&&(G[P]=C[P]);C.hasOwnProperty(F)||(G[F]=O[F])}var ee=H[S];return H[S]=G,p.languages.DFS(p.languages,function(K,ae){ae===ee&&K!=S&&(this[K]=G)}),G},DFS:function S(N,C,H,O){O=O||{};var G=p.util.objId;for(var F in N)if(N.hasOwnProperty(F)){C.call(N,F,N[F],H||F);var P=N[F],ee=p.util.type(P);ee==="Object"&&!O[G(P)]?(O[G(P)]=!0,S(P,C,null,O)):ee==="Array"&&!O[G(P)]&&(O[G(P)]=!0,S(P,C,F,O))}}},plugins:{},highlight:function(S,N,C){var H={code:S,grammar:N,language:C};if(p.hooks.run("before-tokenize",H),!H.grammar)throw new Error('The language "'+H.language+'" has no grammar.');return H.tokens=p.tokenize(H.code,H.grammar),p.hooks.run("after-tokenize",H),v.stringify(p.util.encode(H.tokens),H.language)},tokenize:function(S,N){var C=N.rest;if(C){for(var H in C)N[H]=C[H];delete N.rest}var O=new y;return b(O,O.head,S),x(S,O,N,O.head,0),z(O)},hooks:{all:{},add:function(S,N){var C=p.hooks.all;C[S]=C[S]||[],C[S].push(N)},run:function(S,N){var C=p.hooks.all[S];if(!(!C||!C.length))for(var H=0,O;O=C[H++];)O(N)}},Token:v};function v(S,N,C,H){this.type=S,this.content=N,this.alias=C,this.length=(H||"").length|0}v.stringify=function S(N,C){if(typeof N=="string")return N;if(Array.isArray(N)){var H="";return N.forEach(function(ee){H+=S(ee,C)}),H}var O={type:N.type,content:S(N.content,C),tag:"span",classes:["token",N.type],attributes:{},language:C},G=N.alias;G&&(Array.isArray(G)?Array.prototype.push.apply(O.classes,G):O.classes.push(G)),p.hooks.run("wrap",O);var F="";for(var P in O.attributes)F+=" "+P+'="'+(O.attributes[P]||"").replace(/"/g,"&quot;")+'"';return"<"+O.tag+' class="'+O.classes.join(" ")+'"'+F+">"+O.content+"</"+O.tag+">"};function h(S,N,C,H){S.lastIndex=N;var O=S.exec(C);if(O&&H&&O[1]){var G=O[1].length;O.index+=G,O[0]=O[0].slice(G)}return O}function x(S,N,C,H,O,G){for(var F in C)if(!(!C.hasOwnProperty(F)||!C[F])){var P=C[F];P=Array.isArray(P)?P:[P];for(var ee=0;ee<P.length;++ee){if(G&&G.cause==F+","+ee)return;var K=P[ee],ae=K.inside,de=!!K.lookbehind,le=!!K.greedy,te=K.alias;if(le&&!K.pattern.global){var fe=K.pattern.toString().match(/[imsuy]*$/)[0];K.pattern=RegExp(K.pattern.source,fe+"g")}for(var Le=K.pattern||K,me=H.next,he=O;me!==N.tail&&!(G&&he>=G.reach);he+=me.value.length,me=me.next){var E=me.value;if(N.length>S.length)return;if(!(E instanceof v)){var Y=1,I;if(le){if(I=h(Le,he,S,de),!I||I.index>=S.length)break;var B=I.index,_=I.index+I[0].length,V=he;for(V+=me.value.length;B>=V;)me=me.next,V+=me.value.length;if(V-=me.value.length,he=V,me.value instanceof v)continue;for(var w=me;w!==N.tail&&(V<_||typeof w.value=="string");w=w.next)Y++,V+=w.value.length;Y--,E=S.slice(he,V),I.index-=he}else if(I=h(Le,0,E,de),!I)continue;var B=I.index,Q=I[0],W=E.slice(0,B),ne=E.slice(B+Q.length),re=he+E.length;G&&re>G.reach&&(G.reach=re);var pe=me.prev;W&&(pe=b(N,pe,W),he+=W.length),A(N,pe,Y);var Be=new v(F,ae?p.tokenize(Q,ae):Q,te,Q);if(me=b(N,pe,Be),ne&&b(N,me,ne),Y>1){var J={cause:F+","+ee,reach:re};x(S,N,C,me.prev,he,J),G&&J.reach>G.reach&&(G.reach=J.reach)}}}}}}function y(){var S={value:null,prev:null,next:null},N={value:null,prev:S,next:null};S.next=N,this.head=S,this.tail=N,this.length=0}function b(S,N,C){var H=N.next,O={value:C,prev:N,next:H};return N.next=O,H.prev=O,S.length++,O}function A(S,N,C){for(var H=N.next,O=0;O<C&&H!==S.tail;O++)H=H.next;N.next=H,H.prev=N,S.length-=O}function z(S){for(var N=[],C=S.head.next;C!==S.tail;)N.push(C.value),C=C.next;return N}return p})();s.exports=u,u.default=u}}),X=Jy(Ky());X.languages.markup={comment:{pattern:/\x3C!--(?:(?!\x3C!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|\x3C!--(?:[^-]|-(?!->))*-->)*\]\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]},X.languages.markup.tag.inside["attr-value"].inside.entity=X.languages.markup.entity,X.languages.markup.doctype.inside["internal-subset"].inside=X.languages.markup,X.hooks.add("wrap",function(a){a.type==="entity"&&(a.attributes.title=a.content.replace(/&amp;/,"&"))}),Object.defineProperty(X.languages.markup.tag,"addInlined",{value:function(a,o){var u={},u=(u["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:X.languages[o]},u.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:u}}),o=(u["language-"+o]={pattern:/[\s\S]+/,inside:X.languages[o]},{});o[a]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return a}),"i"),lookbehind:!0,greedy:!0,inside:u},X.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(X.languages.markup.tag,"addAttribute",{value:function(a,s){X.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+a+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[s,"language-"+s],inside:X.languages[s]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),X.languages.html=X.languages.markup,X.languages.mathml=X.languages.markup,X.languages.svg=X.languages.markup,X.languages.xml=X.languages.extend("markup",{}),X.languages.ssml=X.languages.xml,X.languages.atom=X.languages.xml,X.languages.rss=X.languages.xml,(function(a){var s={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},u=/\\(?: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="(?:[^\\\\-]|"+u.source+")",o=RegExp(o+"-"+o),f={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};a.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:o,inside:{escape:u,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":s,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:u}},"special-escape":s,"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":f}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:u,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":f}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(X),X.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:/[{}[\];(),.:]/},X.languages.javascript=X.languages.extend("clike",{"class-name":[X.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}|\?\?=?|\?\.?|[~:]/}),X.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,X.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:X.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:X.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:X.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:X.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:X.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),X.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:X.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"}}),X.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),X.languages.markup&&(X.languages.markup.tag.addInlined("script","javascript"),X.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")),X.languages.js=X.languages.javascript,X.languages.actionscript=X.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:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),X.languages.actionscript["class-name"].alias="function",delete X.languages.actionscript.parameter,delete X.languages.actionscript["literal-property"],X.languages.markup&&X.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:X.languages.markup}}),(function(a){var s=/#(?!\{).+/,u={pattern:/#\{[^}]+\}/,alias:"variable"};a.languages.coffeescript=a.languages.extend("javascript",{comment:s,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:u}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),a.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:s,interpolation:u}}}),a.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:a.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:u}}]}),a.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete a.languages.coffeescript["template-string"],a.languages.coffee=a.languages.coffeescript})(X),(function(a){var s=a.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(s,"addSupport",{value:function(u,o){(u=typeof u=="string"?[u]:u).forEach(function(f){var m=function(b){b.inside||(b.inside={}),b.inside.rest=o},p="doc-comment";if(v=a.languages[f]){var v,h=v[p];if((h=h||(v=a.languages.insertBefore(f,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[p])instanceof RegExp&&(h=v[p]={pattern:h}),Array.isArray(h))for(var x=0,y=h.length;x<y;x++)h[x]instanceof RegExp&&(h[x]={pattern:h[x]}),m(h[x]);else m(h)}})}}),s.addSupport(["java","javascript","php"],s)})(X),(function(a){var s=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,s=(a.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+s.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\\((?:"+s.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+s.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+s.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:s,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},a.languages.css.atrule.inside.rest=a.languages.css,a.languages.markup);s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))})(X),(function(a){var s=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,s=(a.languages.css.selector={pattern:a.languages.css.selector.pattern,lookbehind:!0,inside:s={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+s.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":[s,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},a.languages.css.atrule.inside["selector-function-argument"].inside=s,a.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),u={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};a.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:s,number:u,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:s,number:u})})(X),(function(a){var s=/[*&][^\s[\]{},]+/,u=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+u.source+"(?:[ ]+"+s.source+")?|"+s.source+"(?:[ ]+"+u.source+")?)",f=/(?:[^\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}),m=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function p(v,h){h=(h||"").replace(/m/g,"")+"m";var x=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<value>>/g,function(){return v});return RegExp(x,h)}a.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<key>>/g,function(){return"(?:"+f+"|"+m+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:p(/\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:p(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:p(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:p(m),lookbehind:!0,greedy:!0},number:{pattern:p(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:u,important:s,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},a.languages.yml=a.languages.yaml})(X),(function(a){var s=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function u(x){return x=x.replace(/<inner>/g,function(){return s}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+x+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,f=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),m=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source,p=(a.languages.markdown=a.languages.extend("markup",{}),a.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:a.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+f+m+"(?:"+f+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+f+m+")(?:"+f+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:a.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+f+")"+m+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+f+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:a.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:u(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:u(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:u(/(~~?)(?:(?!~)<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:u(/!?\[(?:(?!\])<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(x){["url","bold","italic","strike","code-snippet"].forEach(function(y){x!==y&&(a.languages.markdown[x].inside.content.inside[y]=a.languages.markdown[y])})}),a.hooks.add("after-tokenize",function(x){x.language!=="markdown"&&x.language!=="md"||(function y(b){if(b&&typeof b!="string")for(var A=0,z=b.length;A<z;A++){var S,N=b[A];N.type!=="code"?y(N.content):(S=N.content[1],N=N.content[3],S&&N&&S.type==="code-language"&&N.type==="code-block"&&typeof S.content=="string"&&(S=S.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),S="language-"+(S=(/[a-z][\w-]*/i.exec(S)||[""])[0].toLowerCase()),N.alias?typeof N.alias=="string"?N.alias=[N.alias,S]:N.alias.push(S):N.alias=[S]))}})(x.tokens)}),a.hooks.add("wrap",function(x){if(x.type==="code-block"){for(var y="",b=0,A=x.classes.length;b<A;b++){var z=x.classes[b],z=/language-(.+)/.exec(z);if(z){y=z[1];break}}var S,N=a.languages[y];N?x.content=a.highlight((function(C){return C=C.replace(p,""),C=C.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(H,O){var G;return(O=O.toLowerCase())[0]==="#"?(G=O[1]==="x"?parseInt(O.slice(2),16):Number(O.slice(1)),h(G)):v[O]||H})})(x.content),N,y):y&&y!=="none"&&a.plugins.autoloader&&(S="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random()),x.attributes.id=S,a.plugins.autoloader.loadLanguages(y,function(){var C=document.getElementById(S);C&&(C.innerHTML=a.highlight(C.textContent,a.languages[y],y))}))}}),RegExp(a.languages.markup.tag.pattern.source,"gi")),v={amp:"&",lt:"<",gt:">",quot:'"'},h=String.fromCodePoint||String.fromCharCode;a.languages.md=a.languages.markdown})(X),X.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:X.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+/},X.hooks.add("after-tokenize",function(a){if(a.language==="graphql")for(var s=a.tokens.filter(function(S){return typeof S!="string"&&S.type!=="comment"&&S.type!=="scalar"}),u=0;u<s.length;){var o=s[u++];if(o.type==="keyword"&&o.content==="mutation"){var f=[];if(b(["definition-mutation","punctuation"])&&y(1).content==="("){u+=2;var m=A(/^\($/,/^\)$/);if(m===-1)continue;for(;u<m;u++){var p=y(0);p.type==="variable"&&(z(p,"variable-input"),f.push(p.content))}u=m+1}if(b(["punctuation","property-query"])&&y(0).content==="{"&&(u++,z(y(0),"property-mutation"),0<f.length)){var v=A(/^\{$/,/^\}$/);if(v!==-1)for(var h=u;h<v;h++){var x=s[h];x.type==="variable"&&0<=f.indexOf(x.content)&&z(x,"variable-input")}}}}function y(S){return s[u+S]}function b(S,N){N=N||0;for(var C=0;C<S.length;C++){var H=y(C+N);if(!H||H.type!==S[C])return}return 1}function A(S,N){for(var C=1,H=u;H<s.length;H++){var O=s[H],G=O.content;if(O.type==="punctuation"&&typeof G=="string"){if(S.test(G))C++;else if(N.test(G)&&--C===0)return H}}return-1}function z(S,N){var C=S.alias;C?Array.isArray(C)||(S.alias=C=[C]):S.alias=C=[],C.push(N)}}),X.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(a){var s=a.languages.javascript["template-string"],u=s.pattern.source,o=s.inside.interpolation,f=o.inside["interpolation-punctuation"],m=o.pattern.source;function p(b,A){if(a.languages[b])return{pattern:RegExp("((?:"+A+")\\s*)"+u),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:b}}}}function v(b,A,z){return b={code:b,grammar:A,language:z},a.hooks.run("before-tokenize",b),b.tokens=a.tokenize(b.code,b.grammar),a.hooks.run("after-tokenize",b),b.tokens}function h(b,A,z){var C=a.tokenize(b,{interpolation:{pattern:RegExp(m),lookbehind:!0}}),S=0,N={},C=v(C.map(function(O){if(typeof O=="string")return O;for(var G,F,O=O.content;b.indexOf((F=S++,G="___"+z.toUpperCase()+"_"+F+"___"))!==-1;);return N[G]=O,G}).join(""),A,z),H=Object.keys(N);return S=0,(function O(G){for(var F=0;F<G.length;F++){if(S>=H.length)return;var P,ee,K,ae,de,le,te,fe=G[F];typeof fe=="string"||typeof fe.content=="string"?(P=H[S],(te=(le=typeof fe=="string"?fe:fe.content).indexOf(P))!==-1&&(++S,ee=le.substring(0,te),de=N[P],K=void 0,(ae={})["interpolation-punctuation"]=f,(ae=a.tokenize(de,ae)).length===3&&((K=[1,1]).push.apply(K,v(ae[1],a.languages.javascript,"javascript")),ae.splice.apply(ae,K)),K=new a.Token("interpolation",ae,o.alias,de),ae=le.substring(te+P.length),de=[],ee&&de.push(ee),de.push(K),ae&&(O(le=[ae]),de.push.apply(de,le)),typeof fe=="string"?(G.splice.apply(G,[F,1].concat(de)),F+=de.length-1):fe.content=de)):(te=fe.content,Array.isArray(te)?O(te):O([te]))}})(C),new a.Token(z,C,"language-"+z,b)}a.languages.javascript["template-string"]=[p("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),p("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),p("svg",/\bsvg/.source),p("markdown",/\b(?:markdown|md)/.source),p("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),p("sql",/\bsql/.source),s].filter(Boolean);var x={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function y(b){return typeof b=="string"?b:Array.isArray(b)?b.map(y).join(""):y(b.content)}a.hooks.add("after-tokenize",function(b){b.language in x&&(function A(z){for(var S=0,N=z.length;S<N;S++){var C,H,O,G=z[S];typeof G!="string"&&(C=G.content,Array.isArray(C)?G.type==="template-string"?(G=C[1],C.length===3&&typeof G!="string"&&G.type==="embedded-code"&&(H=y(G),G=G.alias,G=Array.isArray(G)?G[0]:G,O=a.languages[G])&&(C[1]=h(H,O,G))):A(C):typeof C!="string"&&A([C]))}})(b.tokens)})})(X),(function(a){a.languages.typescript=a.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),a.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete a.languages.typescript.parameter,delete a.languages.typescript["literal-property"];var s=a.languages.extend("typescript",{});delete s["class-name"],a.languages.typescript["class-name"].inside=s,a.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:s}}}}),a.languages.ts=a.languages.typescript})(X),(function(a){var s=a.languages.javascript,u=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,o="(@(?:arg|argument|param|property)\\s+(?:"+u+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(o+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(o+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:s,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 u})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+u),lookbehind:!0,inside:{string:s.string,number:s.number,boolean:s.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:s,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)})(X),(function(a){a.languages.flow=a.languages.extend("javascript",{}),a.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),a.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete a.languages.flow.parameter,a.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(a.languages.flow.keyword)||(a.languages.flow.keyword=[a.languages.flow.keyword]),a.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(X),X.languages.n4js=X.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/}),X.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),X.languages.n4jsd=X.languages.n4js,(function(a){function s(p,v){return RegExp(p.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),v)}a.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+a.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),a.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+a.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),a.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),a.languages.insertBefore("javascript","keyword",{imports:{pattern:s(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:a.languages.javascript},exports:{pattern:s(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:a.languages.javascript}}),a.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),a.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),a.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:s(/(\.\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 u=["function","function-variable","method","method-variable","property-access"],o=0;o<u.length;o++){var m=u[o],f=a.languages.javascript[m],m=(f=a.util.type(f)==="RegExp"?a.languages.javascript[m]={pattern:f}:f).inside||{};(f.inside=m)["maybe-class-name"]=/^[A-Z][\s\S]*/}})(X),(function(a){var s=a.util.clone(a.languages.javascript),u=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,o=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,f=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function m(h,x){return h=h.replace(/<S>/g,function(){return u}).replace(/<BRACES>/g,function(){return o}).replace(/<SPREAD>/g,function(){return f}),RegExp(h,x)}f=m(f).source,a.languages.jsx=a.languages.extend("markup",s),a.languages.jsx.tag.pattern=m(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),a.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,a.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,a.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,a.languages.jsx.tag.inside.comment=s.comment,a.languages.insertBefore("inside","attr-name",{spread:{pattern:m(/<SPREAD>/.source),inside:a.languages.jsx}},a.languages.jsx.tag),a.languages.insertBefore("inside","special-attr",{script:{pattern:m(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:a.languages.jsx}}},a.languages.jsx.tag);function p(h){for(var x=[],y=0;y<h.length;y++){var b=h[y],A=!1;typeof b!="string"&&(b.type==="tag"&&b.content[0]&&b.content[0].type==="tag"?b.content[0].content[0].content==="</"?0<x.length&&x[x.length-1].tagName===v(b.content[0].content[1])&&x.pop():b.content[b.content.length-1].content!=="/>"&&x.push({tagName:v(b.content[0].content[1]),openedBraces:0}):0<x.length&&b.type==="punctuation"&&b.content==="{"?x[x.length-1].openedBraces++:0<x.length&&0<x[x.length-1].openedBraces&&b.type==="punctuation"&&b.content==="}"?x[x.length-1].openedBraces--:A=!0),(A||typeof b=="string")&&0<x.length&&x[x.length-1].openedBraces===0&&(A=v(b),y<h.length-1&&(typeof h[y+1]=="string"||h[y+1].type==="plain-text")&&(A+=v(h[y+1]),h.splice(y+1,1)),0<y&&(typeof h[y-1]=="string"||h[y-1].type==="plain-text")&&(A=v(h[y-1])+A,h.splice(y-1,1),y--),h[y]=new a.Token("plain-text",A,null,A)),b.content&&typeof b.content!="string"&&p(b.content)}}var v=function(h){return h?typeof h=="string"?h:typeof h.content=="string"?h.content:h.content.map(v).join(""):""};a.hooks.add("after-tokenize",function(h){h.language!=="jsx"&&h.language!=="tsx"||p(h.tokens)})})(X),(function(a){var s=a.util.clone(a.languages.typescript),s=(a.languages.tsx=a.languages.extend("jsx",s),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"],a.languages.tsx.tag);s.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+s.pattern.source+")",s.pattern.flags),s.lookbehind=!0})(X),X.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:/[{}[\]();,.:\\]/},X.languages.swift["string-literal"].forEach(function(a){a.inside.interpolation.inside=X.languages.swift}),(function(a){a.languages.kotlin=a.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete a.languages.kotlin["class-name"];var s={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:a.languages.kotlin}};a.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:s},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:s},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete a.languages.kotlin.string,a.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),a.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),a.languages.kt=a.languages.kotlin,a.languages.kts=a.languages.kotlin})(X),X.languages.c=X.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|[?:~]|[-+*/%&|^!=<>]=?/}),X.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),X.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},X.languages.c.string],char:X.languages.c.char,comment:X.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:X.languages.c}}}}),X.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 X.languages.c.boolean,X.languages.objectivec=X.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 X.languages.objectivec["class-name"],X.languages.objc=X.languages.objectivec,X.languages.reason=X.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/}),X.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 X.languages.reason.function,(function(a){for(var s=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,u=0;u<2;u++)s=s.replace(/<self>/g,function(){return s});s=s.replace(/<self>/g,function(){return/[^\s\S]/.source}),a.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+s),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},a.languages.rust["closure-params"].inside.rest=a.languages.rust,a.languages.rust.attribute.inside.string=a.languages.rust.string})(X),X.languages.go=X.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/}),X.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete X.languages.go["class-name"],(function(a){var s=/\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/,u=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return s.source});a.languages.cpp=a.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return s.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:s,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),a.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return u})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),a.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:a.languages.cpp}}}}),a.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),a.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:a.languages.extend("cpp",{})}}),a.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},a.languages.cpp["base-clause"])})(X),X.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:/![sra](?=[:}]$)/,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:/[{}[\];(),.:]/},X.languages.python["string-interpolation"].inside.interpolation.inside.rest=X.languages.python,X.languages.py=X.languages.python,X.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"}},X.languages.webmanifest=X.languages.json;var fo={};Vy(fo,{dracula:()=>Wy,duotoneDark:()=>eb,duotoneLight:()=>nb,github:()=>ab,gruvboxMaterialDark:()=>Ob,gruvboxMaterialLight:()=>Mb,jettwaveDark:()=>Nb,jettwaveLight:()=>Tb,nightOwl:()=>ib,nightOwlLight:()=>ub,oceanicNext:()=>cb,okaidia:()=>db,oneDark:()=>_b,oneLight:()=>Rb,palenight:()=>pb,shadesOfPurple:()=>gb,synthwave84:()=>yb,ultramin:()=>vb,vsDark:()=>Lp,vsLight:()=>kb});var Iy={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)"}}]},Wy=Iy,Py={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"}}]},eb=Py,tb={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"}}]},nb=tb,lb={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"}}]},ab=lb,sb={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)"}}]},ib=sb,rb={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)"}}]},ub=rb,At={char:"#D8DEE9",comment:"#999999",keyword:"#c5a5c5",primitive:"#5a9bcf",string:"#8dc891",variable:"#d7deea",boolean:"#ff8b50",tag:"#fc929e",function:"#79b6f2",className:"#FAC863"},ob={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:At.keyword}},{types:["attr-value"],style:{color:At.string}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:At.comment}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:At.primitive}},{types:["boolean"],style:{color:At.boolean}},{types:["tag"],style:{color:At.tag}},{types:["string"],style:{color:At.string}},{types:["punctuation"],style:{color:At.string}},{types:["selector","char","builtin","inserted"],style:{color:At.char}},{types:["function"],style:{color:At.function}},{types:["operator","entity","url","variable"],style:{color:At.variable}},{types:["keyword"],style:{color:At.keyword}},{types:["atrule","class-name"],style:{color:At.className}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},cb=ob,fb={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"}}]},db=fb,mb={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)"}}]},pb=mb,hb={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)"}}]},gb=hb,xb={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"}}]},yb=xb,bb={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)"}}]},vb=bb,Sb={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)"}}]},Lp=Sb,wb={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)"}}]},kb=wb,Eb={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"}}]},Nb=Eb,jb={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"}}]},Tb=jb,Ab={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%)"}}]},_b=Ab,Cb={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%)"}}]},Rb=Cb,zb={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"}}]},Ob=zb,Db={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"}}]},Mb=Db,Lb=a=>T.useCallback(s=>{var u=s,{className:o,style:f,line:m}=u,p=Mp(u,["className","style","line"]);const v=Di(It({},p),{className:zp("token-line",o)});return typeof a=="object"&&"plain"in a&&(v.style=a.plain),typeof f=="object"&&(v.style=It(It({},v.style||{}),f)),v},[a]),Bb=a=>{const s=T.useCallback(({types:u,empty:o})=>{if(a!=null){{if(u.length===1&&u[0]==="plain")return o!=null?{display:"inline-block"}:void 0;if(u.length===1&&o!=null)return a[u[0]]}return Object.assign(o!=null?{display:"inline-block"}:{},...u.map(f=>a[f]))}},[a]);return T.useCallback(u=>{var o=u,{token:f,className:m,style:p}=o,v=Mp(o,["token","className","style"]);const h=Di(It({},v),{className:zp("token",...f.types,m),children:f.content,style:s(f)});return p!=null&&(h.style=It(It({},h.style||{}),p)),h},[s])},Ub=/\r\n|\r|\n/,ep=a=>{a.length===0?a.push({types:["plain"],content:`
122
126
  `,empty:!0}):a.length===1&&a[0].content===""&&(a[0].content=`
123
- `,a[0].empty=!0)},Fp=(a,i)=>{const o=a.length;return o>0&&a[o-1]===i?a:a.concat(i)},mb=a=>{const i=[[]],o=[a],u=[0],f=[a.length];let m=0,p=0,v=[];const h=[v];for(;p>-1;){for(;(m=u[p]++)<f[p];){let x,y=i[p];const T=o[p][m];if(typeof T=="string"?(y=p>0?y:["plain"],x=T):(y=Fp(y,T.type),T.alias&&(y=Fp(y,T.alias)),x=T.content),typeof x!="string"){p++,i.push(y),o.push(x),u.push(0),f.push(x.length);continue}const R=x.split(pb),S=R.length;v.push({types:y,content:R[0]});for(let w=1;w<S;w++)Vp(v),h.push(v=[]),v.push({types:y,content:R[w]})}p--,i.pop(),o.pop(),u.pop(),f.pop()}return Vp(v),h},Jp=mb,hb=({prism:a,code:i,grammar:o,language:u})=>j.useMemo(()=>{if(o==null)return Jp([i]);const f={code:i,grammar:o,language:u,tokens:[]};return a.hooks.run("before-tokenize",f),f.tokens=a.tokenize(i,o),a.hooks.run("after-tokenize",f),Jp(f.tokens)},[i,o,u,a]),gb=(a,i)=>{const{plain:o}=a,u=a.styles.reduce((f,m)=>{const{languages:p,style:v}=m;return p&&!p.includes(i)||m.types.forEach(h=>{const x=Kt(Kt({},f[h]),v);f[h]=x}),f},{});return u.root=o,u.plain=Oi(Kt({},o),{backgroundColor:void 0}),u},xb=gb,yb=({children:a,language:i,code:o,theme:u,prism:f})=>{const m=i.toLowerCase(),p=xb(u,m),v=fb(p),h=db(p),x=f.languages[m],y=hb({prism:f,language:m,code:o,grammar:x});return a({tokens:y,className:`prism-code language-${m}`,style:p!=null?p.root:{},getLineProps:v,getTokenProps:h})},bb=a=>j.createElement(yb,Oi(Kt({},a),{prism:a.prism||Q,theme:a.theme||_m,code:a.code,language:a.language}));/*! Bundled license information:
127
+ `,a[0].empty=!0)},tp=(a,s)=>{const u=a.length;return u>0&&a[u-1]===s?a:a.concat(s)},Hb=a=>{const s=[[]],u=[a],o=[0],f=[a.length];let m=0,p=0,v=[];const h=[v];for(;p>-1;){for(;(m=o[p]++)<f[p];){let x,y=s[p];const A=u[p][m];if(typeof A=="string"?(y=p>0?y:["plain"],x=A):(y=tp(y,A.type),A.alias&&(y=tp(y,A.alias)),x=A.content),typeof x!="string"){p++,s.push(y),u.push(x),o.push(0),f.push(x.length);continue}const z=x.split(Ub),S=z.length;v.push({types:y,content:z[0]});for(let N=1;N<S;N++)ep(v),h.push(v=[]),v.push({types:y,content:z[N]})}p--,s.pop(),u.pop(),o.pop(),f.pop()}return ep(v),h},np=Hb,qb=({prism:a,code:s,grammar:u,language:o})=>T.useMemo(()=>{if(u==null)return np([s]);const f={code:s,grammar:u,language:o,tokens:[]};return a.hooks.run("before-tokenize",f),f.tokens=a.tokenize(s,u),a.hooks.run("after-tokenize",f),np(f.tokens)},[s,u,o,a]),Gb=(a,s)=>{const{plain:u}=a,o=a.styles.reduce((f,m)=>{const{languages:p,style:v}=m;return p&&!p.includes(s)||m.types.forEach(h=>{const x=It(It({},f[h]),v);f[h]=x}),f},{});return o.root=u,o.plain=Di(It({},u),{backgroundColor:void 0}),o},$b=Gb,Yb=({children:a,language:s,code:u,theme:o,prism:f})=>{const m=s.toLowerCase(),p=$b(o,m),v=Lb(p),h=Bb(p),x=f.languages[m],y=qb({prism:f,language:m,code:u,grammar:x});return a({tokens:y,className:`prism-code language-${m}`,style:p!=null?p.root:{},getLineProps:v,getTokenProps:h})},Zb=a=>T.createElement(Yb,Di(It({},a),{prism:a.prism||X,theme:a.theme||Lp,code:a.code,language:a.language}));/*! Bundled license information:
124
128
 
125
129
  prismjs/prism.js:
126
130
  (**
@@ -131,18 +135,14 @@ prismjs/prism.js:
131
135
  * @namespace
132
136
  * @public
133
137
  *)
134
- */function It(){}It.prototype={diff:function(i,o){var u,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},m=f.callback;typeof f=="function"&&(m=f,f={});var p=this;function v(F){return F=p.postProcess(F,f),m?(setTimeout(function(){m(F)},0),!0):F}i=this.castInput(i,f),o=this.castInput(o,f),i=this.removeEmpty(this.tokenize(i,f)),o=this.removeEmpty(this.tokenize(o,f));var h=o.length,x=i.length,y=1,b=h+x;f.maxEditLength!=null&&(b=Math.min(b,f.maxEditLength));var T=(u=f.timeout)!==null&&u!==void 0?u:1/0,R=Date.now()+T,S=[{oldPos:-1,lastComponent:void 0}],w=this.extractCommon(S[0],o,i,0,f);if(S[0].oldPos+1>=x&&w+1>=h)return v(Kp(p,S[0].lastComponent,o,i,p.useLongestToken));var A=-1/0,H=1/0;function M(){for(var F=Math.max(A,-y);F<=Math.min(H,y);F+=2){var P=void 0,ee=S[F-1],I=S[F+1];ee&&(S[F-1]=void 0);var re=!1;if(I){var ue=I.oldPos-F;re=I&&0<=ue&&ue<h}var q=ee&&ee.oldPos+1<x;if(!re&&!q){S[F]=void 0;continue}if(!q||re&&ee.oldPos<I.oldPos?P=p.addToPath(I,!0,!1,0,f):P=p.addToPath(ee,!1,!0,1,f),w=p.extractCommon(P,o,i,F,f),P.oldPos+1>=x&&w+1>=h)return v(Kp(p,P.lastComponent,o,i,p.useLongestToken));S[F]=P,P.oldPos+1>=x&&(H=Math.min(H,F-1)),w+1>=h&&(A=Math.max(A,F+1))}y++}if(m)(function F(){setTimeout(function(){if(y>b||Date.now()>R)return m();M()||F()},0)})();else for(;y<=b&&Date.now()<=R;){var Y=M();if(Y)return Y}},addToPath:function(i,o,u,f,m){var p=i.lastComponent;return p&&!m.oneChangePerToken&&p.added===o&&p.removed===u?{oldPos:i.oldPos+f,lastComponent:{count:p.count+1,added:o,removed:u,previousComponent:p.previousComponent}}:{oldPos:i.oldPos+f,lastComponent:{count:1,added:o,removed:u,previousComponent:p}}},extractCommon:function(i,o,u,f,m){for(var p=o.length,v=u.length,h=i.oldPos,x=h-f,y=0;x+1<p&&h+1<v&&this.equals(u[h+1],o[x+1],m);)x++,h++,y++,m.oneChangePerToken&&(i.lastComponent={count:1,previousComponent:i.lastComponent,added:!1,removed:!1});return y&&!m.oneChangePerToken&&(i.lastComponent={count:y,previousComponent:i.lastComponent,added:!1,removed:!1}),i.oldPos=h,x},equals:function(i,o,u){return u.comparator?u.comparator(i,o):i===o||u.ignoreCase&&i.toLowerCase()===o.toLowerCase()},removeEmpty:function(i){for(var o=[],u=0;u<i.length;u++)i[u]&&o.push(i[u]);return o},castInput:function(i){return i},tokenize:function(i){return Array.from(i)},join:function(i){return i.join("")},postProcess:function(i){return i}};function Kp(a,i,o,u,f){for(var m=[],p;i;)m.push(i),p=i.previousComponent,delete i.previousComponent,i=p;m.reverse();for(var v=0,h=m.length,x=0,y=0;v<h;v++){var b=m[v];if(b.removed)b.value=a.join(u.slice(y,y+b.count)),y+=b.count;else{if(!b.added&&f){var T=o.slice(x,x+b.count);T=T.map(function(R,S){var w=u[y+S];return w.length>R.length?w:R}),b.value=a.join(T)}else b.value=a.join(o.slice(x,x+b.count));x+=b.count,b.added||(y+=b.count)}}return m}function Ip(a,i){var o;for(o=0;o<a.length&&o<i.length;o++)if(a[o]!=i[o])return a.slice(0,o);return a.slice(0,o)}function Wp(a,i){var o;if(!a||!i||a[a.length-1]!=i[i.length-1])return"";for(o=0;o<a.length&&o<i.length;o++)if(a[a.length-(o+1)]!=i[i.length-(o+1)])return a.slice(-o);return a.slice(-o)}function iu(a,i,o){if(a.slice(0,i.length)!=i)throw Error("string ".concat(JSON.stringify(a)," doesn't start with prefix ").concat(JSON.stringify(i),"; this is a bug"));return o+a.slice(i.length)}function su(a,i,o){if(!i)return a+o;if(a.slice(-i.length)!=i)throw Error("string ".concat(JSON.stringify(a)," doesn't end with suffix ").concat(JSON.stringify(i),"; this is a bug"));return a.slice(0,-i.length)+o}function Wa(a,i){return iu(a,i,"")}function Si(a,i){return su(a,i,"")}function Pp(a,i){return i.slice(0,vb(a,i))}function vb(a,i){var o=0;a.length>i.length&&(o=a.length-i.length);var u=i.length;a.length<i.length&&(u=a.length);var f=Array(u),m=0;f[0]=0;for(var p=1;p<u;p++){for(i[p]==i[m]?f[p]=f[m]:f[p]=m;m>0&&i[p]!=i[m];)m=f[m];i[p]==i[m]&&m++}m=0;for(var v=o;v<a.length;v++){for(;m>0&&a[v]!=i[m];)m=f[m];a[v]==i[m]&&m++}return m}var Ai="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",Sb=new RegExp("[".concat(Ai,"]+|\\s+|[^").concat(Ai,"]"),"ug"),zi=new It;zi.equals=function(a,i,o){return o.ignoreCase&&(a=a.toLowerCase(),i=i.toLowerCase()),a.trim()===i.trim()};zi.tokenize=function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o;if(i.intlSegmenter){if(i.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');o=Array.from(i.intlSegmenter.segment(a),function(m){return m.segment})}else o=a.match(Sb)||[];var u=[],f=null;return o.forEach(function(m){/\s/.test(m)?f==null?u.push(m):u.push(u.pop()+m):/\s/.test(f)?u[u.length-1]==f?u.push(u.pop()+m):u.push(f+m):u.push(m),f=m}),u};zi.join=function(a){return a.map(function(i,o){return o==0?i:i.replace(/^\s+/,"")}).join("")};zi.postProcess=function(a,i){if(!a||i.oneChangePerToken)return a;var o=null,u=null,f=null;return a.forEach(function(m){m.added?u=m:m.removed?f=m:((u||f)&&em(o,f,u,m),o=m,u=null,f=null)}),(u||f)&&em(o,f,u,null),a};function em(a,i,o,u){if(i&&o){var f=i.value.match(/^\s*/)[0],m=i.value.match(/\s*$/)[0],p=o.value.match(/^\s*/)[0],v=o.value.match(/\s*$/)[0];if(a){var h=Ip(f,p);a.value=su(a.value,p,h),i.value=Wa(i.value,h),o.value=Wa(o.value,h)}if(u){var x=Wp(m,v);u.value=iu(u.value,v,x),i.value=Si(i.value,x),o.value=Si(o.value,x)}}else if(o)a&&(o.value=o.value.replace(/^\s*/,"")),u&&(u.value=u.value.replace(/^\s*/,""));else if(a&&u){var y=u.value.match(/^\s*/)[0],b=i.value.match(/^\s*/)[0],T=i.value.match(/\s*$/)[0],R=Ip(y,b);i.value=Wa(i.value,R);var S=Wp(Wa(y,R),T);i.value=Si(i.value,S),u.value=iu(u.value,y,S),a.value=su(a.value,y,y.slice(0,y.length-S.length))}else if(u){var w=u.value.match(/^\s*/)[0],A=i.value.match(/\s*$/)[0],H=Pp(A,w);i.value=Si(i.value,H)}else if(a){var M=a.value.match(/\s*$/)[0],Y=i.value.match(/^\s*/)[0],F=Pp(M,Y);i.value=Wa(i.value,F)}}var Eb=new It;Eb.tokenize=function(a){var i=new RegExp("(\\r?\\n)|[".concat(Ai,"]+|[^\\S\\n\\r]+|[^").concat(Ai,"]"),"ug");return a.match(i)||[]};var Di=new It;Di.tokenize=function(a,i){i.stripTrailingCr&&(a=a.replace(/\r\n/g,`
135
- `));var o=[],u=a.split(/(\n|\r\n)/);u[u.length-1]||u.pop();for(var f=0;f<u.length;f++){var m=u[f];f%2&&!i.newlineIsToken?o[o.length-1]+=m:o.push(m)}return o};Di.equals=function(a,i,o){return o.ignoreWhitespace?((!o.newlineIsToken||!a.includes(`
136
- `))&&(a=a.trim()),(!o.newlineIsToken||!i.includes(`
137
- `))&&(i=i.trim())):o.ignoreNewlineAtEof&&!o.newlineIsToken&&(a.endsWith(`
138
- `)&&(a=a.slice(0,-1)),i.endsWith(`
139
- `)&&(i=i.slice(0,-1))),It.prototype.equals.call(this,a,i,o)};function kb(a,i,o){return Di.diff(a,i,o)}var wb=new It;wb.tokenize=function(a){return a.split(/(\S.+?[.!?])(?=\s+|$)/)};var Nb=new It;Nb.tokenize=function(a){return a.split(/([{}:;,]|\s+)/)};function ou(a){"@babel/helpers - typeof";return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ou(a)}var er=new It;er.useLongestToken=!0;er.tokenize=Di.tokenize;er.castInput=function(a,i){var o=i.undefinedReplacement,u=i.stringifyReplacer,f=u===void 0?function(m,p){return typeof p>"u"?o:p}:u;return typeof a=="string"?a:JSON.stringify(uu(a,null,null,f),f," ")};er.equals=function(a,i,o){return It.prototype.equals.call(er,a.replace(/,([\r\n])/g,"$1"),i.replace(/,([\r\n])/g,"$1"),o)};function uu(a,i,o,u,f){i=i||[],o=o||[],u&&(a=u(f,a));var m;for(m=0;m<i.length;m+=1)if(i[m]===a)return o[m];var p;if(Object.prototype.toString.call(a)==="[object Array]"){for(i.push(a),p=new Array(a.length),o.push(p),m=0;m<a.length;m+=1)p[m]=uu(a[m],i,o,u,f);return i.pop(),o.pop(),p}if(a&&a.toJSON&&(a=a.toJSON()),ou(a)==="object"&&a!==null){i.push(a),p={},o.push(p);var v=[],h;for(h in a)Object.prototype.hasOwnProperty.call(a,h)&&v.push(h);for(v.sort(),m=0;m<v.length;m+=1)h=v[m],p[h]=uu(a[h],i,o,u,h);i.pop(),o.pop()}else p=a;return p}var cu=new It;cu.tokenize=function(a){return a.slice()};cu.join=cu.removeEmpty=function(a){return a};const jb=a=>{const i=new MutationObserver(a);return i.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>i.disconnect()},Tb=()=>document.documentElement.classList.contains("dark");function Ab(a,i){if(!a&&i)return i.split(`
140
- `).map(f=>({type:"add",content:f}));const o=kb(a,i),u=[];for(const f of o){const m=f.value.replace(/\n$/,"").split(`
141
- `),p=f.added?"add":f.removed?"remove":"context";for(const v of m)u.push({type:p,content:v})}return u}function _b(a){const i=a.split(".").pop()?.toLowerCase()||"";return{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",py:"python",rs:"rust",go:"go",rb:"ruby",java:"java",css:"css",html:"html",json:"json",md:"markdown",yaml:"yaml",yml:"yaml",toml:"toml",sh:"bash",zsh:"bash",bash:"bash"}[i]||"text"}const Cb=j.memo(function({toolName:i,filePath:o,oldContent:u,newContent:f,isActive:m}){const p=j.useMemo(()=>Ab(u,f),[u,f]),v=_b(o),h=j.useSyncExternalStore(jb,Tb),x=!u;return c.jsxs("div",{className:"border border-terminal-border rounded-lg overflow-hidden",children:[c.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-terminal-surface border-b border-terminal-border",children:[c.jsx("span",{className:"text-xs font-mono font-bold text-terminal-orange",children:i}),c.jsx("span",{className:"text-xs font-mono text-terminal-blue truncate",children:o}),x&&c.jsx("span",{className:"text-xs px-1.5 py-0.5 rounded bg-terminal-green/20 text-terminal-green",children:"new"})]}),c.jsx("div",{className:"overflow-x-auto max-h-[400px] overflow-y-auto",children:c.jsx(bb,{theme:h?ru.nightOwl:ru.nightOwlLight,code:p.map(y=>y.content).join(`
142
- `),language:v,children:({tokens:y,getLineProps:b,getTokenProps:T})=>c.jsx("pre",{className:"text-xs font-mono !bg-transparent !m-0 p-0",children:y.map((R,S)=>{const w=p[S];if(!w)return null;const A=w.type==="add"?"bg-green-100 dark:bg-green-900/30":w.type==="remove"?"bg-red-100 dark:bg-red-900/30":"",H=w.type==="add"?"+":w.type==="remove"?"-":" ",M=w.type==="add"?"text-terminal-green":w.type==="remove"?"text-terminal-red":"text-terminal-dim";return c.jsxs("div",{...b({line:R}),className:`flex ${A} px-3 leading-5`,children:[c.jsx("span",{className:`select-none w-4 shrink-0 ${M}`,children:H}),c.jsx("span",{children:R.map((Y,F)=>c.jsx("span",{...T({token:Y})},F))})]},S)})})})})]})}),Rb=j.memo(function({command:i,stdout:o,isActive:u}){const[f,m]=j.useState(!0),p=o.trim().length>0;return c.jsxs("div",{className:"border border-terminal-border rounded-lg overflow-hidden bg-terminal-surface",children:[c.jsxs("button",{onClick:()=>p&&m(!f),className:"w-full flex items-center gap-2 px-3 py-2 bg-terminal-surface/50 hover:bg-terminal-border/20 transition-colors text-left border-b border-terminal-border",children:[c.jsx("span",{className:"text-xs font-mono font-bold text-terminal-orange",children:"$"}),c.jsx("span",{className:"text-xs font-mono text-terminal-text truncate flex-1",children:i}),p&&c.jsx("span",{className:`text-xs text-terminal-dim transition-transform ${f?"rotate-90":""}`,children:"▶"})]}),f&&p&&c.jsx("div",{className:"px-3 py-2 max-h-[300px] overflow-y-auto",children:c.jsx("pre",{className:"text-xs font-mono text-terminal-dim whitespace-pre-wrap break-words",children:o})})]})});function tm(a){switch(a){case"Read":return"📄";case"Write":return"✏️";case"Edit":return"✂️";case"Bash":return"$";case"Glob":return"🔍";case"Grep":return"🔎";case"Agent":return"🤖";default:return"⚙️"}}const Ob=j.memo(function({scene:i,isActive:o,forceCollapse:u}){const[f,m]=j.useState(!1);return u?c.jsxs("div",{className:"flex items-center gap-2 px-3 py-1 text-xs font-mono text-terminal-dim",children:[c.jsx("span",{children:tm(i.toolName)}),c.jsx("span",{className:"text-terminal-orange font-bold",children:i.toolName}),c.jsx("span",{className:"truncate",children:nm(i.toolName,i.input)})]}):i.bashOutput?c.jsx(Rb,{command:i.bashOutput.command,stdout:i.bashOutput.stdout,isActive:o}):i.diff?c.jsx(Cb,{toolName:i.toolName,filePath:i.diff.filePath,oldContent:i.diff.oldContent,newContent:i.diff.newContent,isActive:o}):c.jsx("div",{children:c.jsxs("div",{className:"border border-terminal-border rounded-lg overflow-hidden",children:[c.jsxs("button",{onClick:()=>m(!f),className:"w-full flex items-center gap-2 px-3 py-2 bg-terminal-surface hover:bg-terminal-border/30 transition-colors text-left",children:[c.jsx("span",{className:"text-xs font-mono",children:tm(i.toolName)}),c.jsx("span",{className:"text-xs font-mono font-bold text-terminal-orange",children:i.toolName}),c.jsx("span",{className:"text-xs text-terminal-dim font-mono truncate flex-1",children:nm(i.toolName,i.input)}),c.jsx("span",{className:`text-xs text-terminal-dim transition-transform ${f?"rotate-90":""}`,children:"▶"})]}),f&&c.jsxs("div",{className:"border-t border-terminal-border",children:[c.jsxs("div",{className:"px-3 py-2",children:[c.jsx("div",{className:"text-xs text-terminal-dim font-mono mb-1",children:"Input:"}),c.jsx("pre",{className:"text-xs text-terminal-text font-mono whitespace-pre-wrap break-words max-h-[200px] overflow-y-auto",children:JSON.stringify(i.input,null,2)})]}),i.result&&c.jsxs("div",{className:"px-3 py-2 border-t border-terminal-border",children:[c.jsx("div",{className:"text-xs text-terminal-dim font-mono mb-1",children:"Result:"}),c.jsx("pre",{className:"text-xs text-terminal-text font-mono whitespace-pre-wrap break-words max-h-[200px] overflow-y-auto",children:i.result})]}),i.images&&i.images.length>0&&c.jsx("div",{className:"px-3 py-2 border-t border-terminal-border",children:c.jsx("div",{className:"flex gap-2 flex-wrap",children:i.images.map((p,v)=>c.jsx("img",{src:p,alt:`Screenshot ${v+1}`,className:"max-w-[400px] max-h-[300px] rounded border border-terminal-border object-contain"},v))})})]})]})})});function nm(a,i){switch(a){case"Read":return i.file_path||"";case"Glob":return i.pattern||"";case"Grep":return`/${i.pattern||""}/ ${i.path||""}`;case"Agent":return i.description||"";case"Write":return i.file_path||"";case"Edit":return i.file_path||"";case"WebSearch":return i.query||"";case"WebFetch":return i.url||"";default:return Object.values(i).filter(o=>typeof o=="string").join(" ").slice(0,80)}}function eu(a){if(!a)return"";try{return new Date(a).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}catch{return""}}function zb({scenes:a,visibleCount:i,currentIndex:o,viewPrefs:u,focusIndex:f,annotatedScenes:m,annotationCounts:p,onComment:v}){const h=j.useMemo(()=>{const b=[];let T=null;for(let R=0;R<a.length;R++){const S=a[R];S.type==="user-prompt"||S.type==="compaction-summary"?(T&&T.scenes.length>0&&b.push(T),b.push({type:S.type==="compaction-summary"?"compaction":"user",timestamp:S.timestamp,scenes:[{scene:S,index:R}]}),T=null):((!T||T.type!=="assistant")&&(T&&T.scenes.length>0&&b.push(T),T={type:"assistant",timestamp:S.timestamp,scenes:[]}),T.scenes.push({scene:S,index:R}))}return T&&T.scenes.length>0&&b.push(T),b},[a]),x=j.useMemo(()=>u.promptsOnly?h.filter(b=>(b.type==="user"||b.type==="compaction")&&b.scenes[0].index<i):h.filter(b=>b.scenes[0].index<i),[h,i,u.promptsOnly]),y=j.useMemo(()=>{for(let b=x.length-1;b>=0;b--)if(x[b].scenes.some(T=>T.index<=o))return b;return x.length-1},[x,o]);return c.jsx("div",{className:"max-w-4xl mx-auto space-y-3 pb-4",children:x.map((b,T)=>c.jsx(Db,{forceRender:Math.abs(T-y)<=5,children:c.jsx(Mb,{group:b,currentIndex:o,visibleCount:i,viewPrefs:u,focusIndex:f,annotatedScenes:m,annotationCounts:p,onComment:v})},T))})}const Db=j.memo(function({children:i,forceRender:o}){const u=j.useRef(null),[f,m]=j.useState(!1),p=j.useRef(0);j.useEffect(()=>{const h=u.current;if(!h)return;const x=new IntersectionObserver(([y])=>{m(y.isIntersecting),y.isIntersecting&&h.offsetHeight>0&&(p.current=h.offsetHeight)},{rootMargin:"800px 0px"});return x.observe(h),()=>x.disconnect()},[]);const v=f||o;return j.useEffect(()=>{v&&u.current&&u.current.offsetHeight>0&&(p.current=u.current.offsetHeight)}),c.jsx("div",{ref:u,style:!v&&p.current>0?{minHeight:p.current}:void 0,children:v?i:null})}),Mb=j.memo(function({group:i,currentIndex:o,visibleCount:u,viewPrefs:f,focusIndex:m,annotatedScenes:p,annotationCounts:v,onComment:h}){const[x,y]=j.useState(!1),b=j.useMemo(()=>i.scenes.filter(M=>M.index<u),[i.scenes,u]),T=b.some(({index:M})=>M===o),R=typeof m=="number"&&b.some(({index:M})=>M===m),S=b[0]?.index;if(b.length===0)return null;const w=i.type==="user"&&v?.get(S)||0,A=i.type==="user"&&h&&(w>0||x)?c.jsxs("button",{onClick:M=>{M.stopPropagation(),h(S)},className:`absolute -right-3 top-3 z-10 flex items-center gap-1 px-1.5 py-1 rounded-md border text-[10px] font-mono transition-all duration-150 ${w>0?"bg-terminal-blue border-terminal-blue text-white shadow-sm":"bg-terminal-bg border-terminal-border text-terminal-dim hover:text-terminal-blue hover:border-terminal-blue/40 opacity-0 group-hover:opacity-100"}`,title:w>0?`${w} comment${w>1?"s":""}`:"Add comment",children:["💬",w>0&&c.jsx("span",{children:w})]}):null;if(i.type==="user")return c.jsxs("div",{id:`scene-${S}`,"data-scene-index":S,className:`group relative rounded-lg px-4 py-3 transition-colors duration-200 ${R?"scene-nav-focused bg-terminal-green/30 border-2 border-terminal-green ring-2 ring-terminal-green/60 shadow-lg shadow-terminal-green/30":T?"bg-terminal-green/20 border-2 border-terminal-green/60 ring-1 ring-terminal-green/40 shadow-md shadow-terminal-green/20":"bg-terminal-green/5 border border-terminal-green/15"}`,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[A,c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx("span",{className:"text-[11px] font-mono font-semibold text-terminal-green uppercase tracking-wider",children:"You"}),R?c.jsx("span",{className:"text-[10px] font-mono uppercase tracking-wider px-1.5 py-0.5 rounded border border-terminal-green text-terminal-green bg-terminal-green/20",children:"Jump Target"}):T&&c.jsx("span",{className:"text-[10px] font-mono uppercase tracking-wider px-1.5 py-0.5 rounded border border-terminal-green/50 text-terminal-green bg-terminal-green/10",children:"Focused"}),i.timestamp&&c.jsx("span",{className:"text-[11px] font-mono text-terminal-dim",children:eu(i.timestamp)})]}),b.map(({scene:M,index:Y})=>c.jsx("div",{className:"scene-enter",children:c.jsx(wu,{scene:M,isActive:Y===o,collapseTools:f.collapseAllTools})},Y))]});if(i.type==="compaction"){const M=b[0]?.scene;return!M||M.type!=="compaction-summary"?null:c.jsxs("div",{id:`scene-${S}`,"data-scene-index":S,className:`group relative rounded-lg px-4 py-3 transition-colors duration-200 ${R?"scene-nav-focused bg-terminal-dim/20 border-2 border-terminal-dim ring-2 ring-terminal-dim/60":T?"bg-terminal-dim/10 border-2 border-terminal-dim/40":"bg-terminal-dim/[0.03] border border-terminal-border/30 border-dashed"}`,children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx("span",{className:"text-[11px] font-mono font-semibold text-terminal-dim uppercase tracking-wider",children:"Context Compaction"}),i.timestamp&&c.jsx("span",{className:"text-[11px] font-mono text-terminal-dim/60",children:eu(i.timestamp)})]}),c.jsx(fm,{content:M.content,isActive:S===o})]})}const H=f.hideThinking?b.filter(M=>M.scene.type!=="thinking"):b;return H.length===0?null:c.jsxs("div",{id:`scene-${S}`,"data-scene-index":S,className:`relative rounded-lg px-4 py-3 transition-colors duration-200 ${R?"scene-nav-focused bg-terminal-blue/20 border-2 border-terminal-blue ring-2 ring-terminal-blue/60 shadow-lg shadow-terminal-blue/30":T?"bg-terminal-blue/15 border-2 border-terminal-blue/45 ring-1 ring-terminal-blue/35 shadow-md shadow-terminal-blue/20":"bg-terminal-blue/[0.03] border border-terminal-blue/10"}`,children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx("span",{className:"text-[11px] font-mono font-semibold text-terminal-blue/70 uppercase tracking-wider",children:"Assistant"}),R?c.jsx("span",{className:"text-[10px] font-mono uppercase tracking-wider px-1.5 py-0.5 rounded border border-terminal-blue text-terminal-blue bg-terminal-blue/20",children:"Jump Target"}):T&&c.jsx("span",{className:"text-[10px] font-mono uppercase tracking-wider px-1.5 py-0.5 rounded border border-terminal-blue/50 text-terminal-blue bg-terminal-blue/10",children:"Focused"}),i.timestamp&&c.jsx("span",{className:"text-[11px] font-mono text-terminal-dim",children:eu(i.timestamp)})]}),c.jsx("div",{className:"space-y-2",children:c.jsx(Lb,{scenes:H,currentIndex:o,collapseTools:f.collapseAllTools,annotationCounts:v,onComment:h})})]})});function Lb({scenes:a,currentIndex:i,collapseTools:o,annotationCounts:u,onComment:f}){const m=[];let p=[];for(const v of a){const h=p[p.length-1];h&&h.scene.type==="tool-call"&&v.scene.type==="tool-call"&&h.scene.toolName===v.scene.toolName&&!v.scene.diff&&!v.scene.bashOutput&&!h.scene.diff&&!h.scene.bashOutput?p.push(v):(p.length>0&&m.push(p),p=[v])}return p.length>0&&m.push(p),c.jsx(c.Fragment,{children:m.map(v=>{if(v.length<=1){const{scene:x,index:y}=v[0],b=u?.get(y)||0;return c.jsxs("div",{"data-scene-index":y,className:`group/scene relative scene-enter ${y===i?"":"opacity-90"}`,children:[c.jsx(wu,{scene:x,isActive:y===i,collapseTools:o}),f&&c.jsxs("button",{onClick:T=>{T.stopPropagation(),f(y)},className:`absolute -right-2 top-1 z-10 flex items-center gap-0.5 px-1.5 py-0.5 rounded-md border text-[10px] font-mono transition-all duration-150 ${b>0?"bg-terminal-blue border-terminal-blue text-white shadow-sm":"bg-terminal-bg border-terminal-border text-terminal-dim hover:text-terminal-blue hover:border-terminal-blue/40 opacity-0 group-hover/scene:opacity-100"}`,title:b>0?`${b} comment${b>1?"s":""}`:"Add comment",children:["💬",b>0&&c.jsx("span",{children:b})]})]},y)}const h=v[0].scene.toolName;return c.jsx(Bb,{batch:v,toolName:h,currentIndex:i,collapseTools:o,annotationCounts:u,onComment:f},v[0].index)})})}function Bb({batch:a,toolName:i,currentIndex:o,collapseTools:u,annotationCounts:f,onComment:m}){const[p,v]=j.useState(!1),h=f?a.reduce((y,{index:b})=>y+(f.get(b)||0),0):0,x=a.map(({scene:y})=>y.type==="tool-call"?Ub(y.toolName,y.input):"");return c.jsxs("div",{"data-scene-index":a[0].index,className:"group/batch relative",children:[c.jsxs("button",{onClick:()=>v(!p),className:"w-full flex items-center gap-2 px-3 py-2 text-xs font-mono text-terminal-dim border border-terminal-border/50 rounded-lg bg-terminal-surface/50 hover:bg-terminal-surface hover:border-terminal-border transition-colors cursor-pointer text-left",children:[c.jsx("span",{className:`transition-transform text-[10px] ${p?"rotate-90":""}`,children:"▶"}),c.jsx("span",{className:"text-terminal-orange font-semibold",children:i}),c.jsxs("span",{className:"text-terminal-dim/70",children:[a.length," call",a.length>1?"s":""]}),!p&&c.jsxs("span",{className:"truncate text-terminal-dim/50 ml-1",children:[x.filter(Boolean).slice(0,3).join(", "),x.filter(Boolean).length>3&&"..."]})]}),m&&!p&&c.jsxs("button",{onClick:y=>{y.stopPropagation(),m(a[0].index)},className:`absolute -right-2 top-1 z-10 flex items-center gap-0.5 px-1.5 py-0.5 rounded-md border text-[10px] font-mono transition-all duration-150 ${h>0?"bg-terminal-blue border-terminal-blue text-white shadow-sm":"bg-terminal-bg border-terminal-border text-terminal-dim hover:text-terminal-blue hover:border-terminal-blue/40 opacity-0 group-hover/batch:opacity-100"}`,title:h>0?`${h} comment${h>1?"s":""}`:"Add comment",children:["💬",h>0&&c.jsx("span",{children:h})]}),p&&c.jsx("div",{className:"mt-1 ml-4 space-y-2 border-l border-terminal-border/30 pl-3",children:a.map(({scene:y,index:b})=>{const T=f?.get(b)||0;return c.jsxs("div",{"data-scene-index":b,className:`group/scene relative scene-enter ${b===o?"":"opacity-90"}`,children:[c.jsx(wu,{scene:y,isActive:b===o,collapseTools:u}),m&&c.jsxs("button",{onClick:R=>{R.stopPropagation(),m(b)},className:`absolute -right-2 top-1 z-10 flex items-center gap-0.5 px-1.5 py-0.5 rounded-md border text-[10px] font-mono transition-all duration-150 ${T>0?"bg-terminal-blue border-terminal-blue text-white shadow-sm":"bg-terminal-bg border-terminal-border text-terminal-dim hover:text-terminal-blue hover:border-terminal-blue/40 opacity-0 group-hover/scene:opacity-100"}`,title:T>0?`${T} comment${T>1?"s":""}`:"Add comment",children:["💬",T>0&&c.jsx("span",{children:T})]})]},b)})})]})}function Ub(a,i){switch(a){case"Read":return i.file_path||"";case"Glob":return i.pattern||"";case"Grep":return i.pattern||"";case"Agent":return i.description||"";default:return""}}const wu=j.memo(function({scene:i,isActive:o,collapseTools:u}){switch(i.type){case"user-prompt":return c.jsx(wx,{content:i.content,images:i.images,isActive:o});case"compaction-summary":return c.jsx(fm,{content:i.content,isActive:o});case"thinking":return c.jsx(Nx,{content:i.content,isActive:o});case"text-response":return c.jsx(hy,{content:i.content,isActive:o});case"tool-call":return c.jsx(Ob,{scene:i,isActive:o,forceCollapse:u})}});function lm({scenes:a,currentIndex:i,onSeek:o}){const u=j.useMemo(()=>{const m=[];let p=null,v=0;return a.forEach((h,x)=>{h.type==="user-prompt"?(p&&(p.endIndex=x-1,m.push(p)),v++,p={kind:"turn",turnNumber:v,promptIndex:x,prompt:h.content.replace(/\n/g," ").slice(0,120),toolCalls:0,toolNames:[],thinkingBlocks:0,textBlocks:0,endIndex:x}):h.type==="compaction-summary"?(p&&(p.endIndex=x-1,m.push(p),p=null),m.push({kind:"compaction",promptIndex:x,preview:h.content.replace(/\n/g," ").slice(0,80)})):p&&(p.endIndex=x,h.type==="tool-call"?(p.toolCalls++,p.toolNames.includes(h.toolName)||p.toolNames.push(h.toolName)):h.type==="thinking"?p.thinkingBlocks++:h.type==="text-response"&&p.textBlocks++)}),p&&m.push(p),m},[a]),f=j.useMemo(()=>{for(let m=u.length-1;m>=0;m--)if(i>=u[m].promptIndex)return m;return-1},[u,i]);return c.jsx("div",{className:"flex flex-col gap-px p-2 overflow-y-auto",children:u.map((m,p)=>{const v=p===f,h=p<f;return m.kind==="compaction"?c.jsx("button",{onClick:()=>o(m.promptIndex),className:`text-left px-3 py-2 rounded-md transition-all border border-dashed ${v?"border-terminal-dim/40 bg-terminal-dim/10":"border-terminal-border/30 hover:bg-terminal-surface/50 opacity-60 hover:opacity-100"}`,children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-[10px] font-mono text-terminal-dim/60 shrink-0",children:"⟳"}),c.jsx("span",{className:"text-[11px] font-mono text-terminal-dim/70 italic truncate",children:"Context compacted"})]})},`c-${m.promptIndex}`):c.jsxs("button",{onClick:()=>o(m.promptIndex),className:`group text-left px-3 py-2.5 rounded-md transition-all ${v?"bg-terminal-green/8 border border-terminal-green/25":h?"border border-transparent hover:bg-terminal-surface/80 opacity-70 hover:opacity-100":"border border-transparent hover:bg-terminal-surface/80"}`,children:[c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx("span",{className:`text-xs font-mono font-semibold shrink-0 mt-px tabular-nums ${v?"text-terminal-green":"text-terminal-dim"}`,children:String(m.turnNumber).padStart(2,"0")}),c.jsx("span",{className:`text-[13px] font-mono leading-snug line-clamp-2 ${v?"text-terminal-text":"text-terminal-text/80"}`,children:m.prompt})]}),c.jsxs("div",{className:"flex items-center gap-2 mt-1.5 ml-6 flex-wrap",children:[m.toolCalls>0&&c.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-px rounded-sm bg-terminal-orange/10 text-terminal-orange/80",children:[m.toolCalls," tool",m.toolCalls>1?"s":""]}),m.textBlocks>0&&c.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-px rounded-sm bg-terminal-blue/10 text-terminal-blue/80",children:[m.textBlocks," resp"]}),m.thinkingBlocks>0&&c.jsx("span",{className:"text-[11px] font-mono px-1.5 py-px rounded-sm bg-terminal-purple/10 text-terminal-purple/80",children:"think"})]}),v&&m.toolNames.length>0&&c.jsx("div",{className:"mt-1.5 ml-6 text-[11px] font-mono text-terminal-dim truncate",children:m.toolNames.join(", ")})]},`t-${m.promptIndex}`)})})}function am({session:a}){const i=j.useMemo(()=>{const{scenes:u,meta:f}=a,m=new Map;let p=0,v=0,h=0,x=0,y=new Set;for(const T of u)switch(T.type){case"user-prompt":h+=T.content.length;break;case"thinking":p+=T.content.length;break;case"text-response":v+=T.content.length;break;case"tool-call":{m.set(T.toolName,(m.get(T.toolName)||0)+1),T.diff&&(x++,y.add(T.diff.filePath));break}}const b=[...m.entries()].sort((T,R)=>R[1]-T[1]).slice(0,6);return{totalScenes:u.length,userPrompts:f.stats.userPrompts,toolCalls:f.stats.toolCalls,thinkingChars:p,responseChars:v,promptChars:h,editCount:x,filesModified:y.size,topTools:b,durationMs:f.stats.durationMs,tokenUsage:f.stats.tokenUsage,costEstimate:f.stats.costEstimate,compactions:f.compactions}},[a]),{meta:o}=a;return c.jsxs("div",{className:"p-3 space-y-4 text-xs font-mono",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-terminal-dim uppercase tracking-wider text-[11px] font-semibold mb-1.5",children:"Session"}),o.title&&c.jsx("div",{className:"text-terminal-text text-xs mb-0.5 truncate",title:o.title,children:o.title}),c.jsx("div",{className:"text-terminal-dim truncate",title:o.cwd,children:o.project}),c.jsxs("div",{className:"text-terminal-dim mt-0.5 flex items-center gap-1.5 flex-wrap",children:[o.model&&c.jsx("span",{className:"text-terminal-text/60",children:o.model}),o.provider&&c.jsx("span",{children:o.provider})]}),o.generator?.version&&c.jsxs("div",{className:"text-terminal-dim/80 mt-0.5 truncate",children:["replay: ",c.jsxs("span",{className:"text-terminal-text/80",children:[o.generator.name," v",o.generator.version]})]}),o.generator?.generatedAt&&c.jsxs("div",{className:"text-terminal-dim/80 mt-0.5 truncate",title:o.generator.generatedAt,children:["generated: ",c.jsx("span",{className:"text-terminal-text/80",children:Gb(o.generator.generatedAt)})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[c.jsx(Ei,{label:"Turns",value:i.userPrompts,color:"text-terminal-green"}),c.jsx(Ei,{label:"Scenes",value:i.totalScenes,color:"text-terminal-text"}),c.jsx(Ei,{label:"Tool Calls",value:i.toolCalls,color:"text-terminal-orange"}),c.jsx(Ei,{label:"Files Modified",value:i.filesModified,color:"text-terminal-blue"})]}),(i.durationMs||i.costEstimate!==void 0)&&c.jsxs("div",{className:"text-terminal-dim space-y-0.5",children:[i.durationMs&&c.jsxs("div",{children:["Duration: ",c.jsx("span",{className:"text-terminal-text",children:Hb(i.durationMs)})]}),i.costEstimate!==void 0&&c.jsxs("div",{children:["Cost: ",c.jsxs("span",{className:"text-terminal-green",children:["$",i.costEstimate<.01?i.costEstimate.toFixed(4):i.costEstimate.toFixed(2)]}),c.jsx("span",{className:"text-terminal-dim/60",children:" (estimate)"})]})]}),i.tokenUsage&&c.jsxs("div",{children:[c.jsx("div",{className:"text-terminal-dim mb-1.5 text-[11px] font-semibold uppercase tracking-wider",children:"Tokens"}),c.jsxs("div",{className:"text-terminal-dim leading-relaxed space-y-0.5",children:[c.jsxs("div",{children:["In: ",c.jsx("span",{className:"text-terminal-blue",children:$n(i.tokenUsage.inputTokens)})," / ","Out: ",c.jsx("span",{className:"text-terminal-green",children:$n(i.tokenUsage.outputTokens)})]}),c.jsxs("div",{children:["Cache: ",c.jsx("span",{className:"text-terminal-purple",children:$n(i.tokenUsage.cacheReadTokens)})," read"," / ",c.jsx("span",{className:"text-terminal-orange",children:$n(i.tokenUsage.cacheCreationTokens)})," created"]})]})]}),c.jsxs("div",{className:"text-terminal-dim leading-relaxed",children:["Chars: ",c.jsx("span",{className:"text-terminal-green",children:$n(i.promptChars)})," prompt"," / ",c.jsx("span",{className:"text-terminal-purple",children:$n(i.thinkingChars)})," thinking"," / ",c.jsx("span",{className:"text-terminal-blue",children:$n(i.responseChars)})," response"]}),i.compactions&&i.compactions.length>0&&c.jsxs("div",{children:[c.jsxs("div",{className:"text-terminal-dim mb-1.5 text-[11px] font-semibold uppercase tracking-wider",children:["Context Compactions (",i.compactions.length,")"]}),c.jsx("div",{className:"space-y-1",children:i.compactions.map((u,f)=>c.jsxs("div",{className:"text-terminal-dim text-[11px] flex items-baseline gap-1.5",children:[c.jsx("span",{className:"text-terminal-orange",children:"●"}),c.jsx("span",{children:u.trigger}),u.preTokens&&c.jsxs("span",{className:"text-terminal-text",children:[$n(u.preTokens)," tokens"]})]},f))})]}),i.topTools.length>0&&c.jsxs("div",{children:[c.jsx("div",{className:"text-terminal-dim mb-2 text-[11px] font-semibold uppercase tracking-wider",children:"Top Tools"}),c.jsx("div",{className:"space-y-1.5",children:i.topTools.map(([u,f])=>c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-terminal-text shrink-0 w-20 text-right",children:u}),c.jsx("div",{className:"flex-1 h-1.5 rounded-full bg-terminal-border/30 overflow-hidden",children:c.jsx("div",{className:"h-full rounded-full bg-terminal-orange/60",style:{width:`${f/i.topTools[0][1]*100}%`}})}),c.jsx("span",{className:"text-terminal-dim shrink-0 w-6 text-right tabular-nums",children:f})]},u))})]}),(o.dataSource||o.dataSourceInfo)&&c.jsxs("div",{className:"pt-1 border-t border-terminal-border/30",children:[c.jsx("div",{className:"text-terminal-dim mb-1.5 text-[11px] font-semibold uppercase tracking-wider",children:"Data Source"}),c.jsx("div",{className:"text-terminal-dim",children:c.jsx("span",{className:"text-terminal-blue",children:qb(o.dataSourceInfo?.primary||o.dataSource)})}),o.dataSourceInfo?.sources&&o.dataSourceInfo.sources.length>0&&c.jsx("div",{className:"mt-0.5 space-y-0.5",children:o.dataSourceInfo.sources.map(u=>c.jsxs("div",{className:"text-terminal-dim/80 truncate",title:u,children:[c.jsx("span",{className:"text-terminal-green",children:"source:"})," ",u]},u))}),o.dataSourceInfo?.supplements&&o.dataSourceInfo.supplements.length>0&&c.jsx("div",{className:"mt-0.5 space-y-0.5",children:o.dataSourceInfo.supplements.map(u=>c.jsxs("div",{className:"text-terminal-dim/80 truncate",title:u,children:[c.jsx("span",{className:"text-terminal-purple",children:"supplement:"})," ",u]},u))}),o.dataSourceInfo?.notes&&o.dataSourceInfo.notes.length>0&&c.jsx("div",{className:"mt-0.5 space-y-0.5",children:o.dataSourceInfo.notes.map(u=>c.jsxs("div",{className:"text-terminal-dim/80 truncate",title:u,children:[c.jsx("span",{className:"text-terminal-orange",children:"note:"})," ",u]},u))})]})]})}function Ei({label:a,value:i,color:o}){return c.jsxs("div",{className:"bg-terminal-surface/80 rounded-md px-2.5 py-2 border border-terminal-border/40",children:[c.jsx("div",{className:`text-lg font-bold tabular-nums ${o}`,children:i}),c.jsx("div",{className:"text-terminal-dim text-[11px] uppercase tracking-wide",children:a})]})}function $n(a){return a>=1e6?(a/1e6).toFixed(1)+"M":a>=1e3?(a/1e3).toFixed(1)+"K":a.toString()}function Hb(a){const i=Math.floor(a/1e3);if(i<60)return`${i}s`;const o=Math.floor(i/60);return o<60?`${o}m ${i%60}s`:`${Math.floor(o/60)}h ${o%60}m`}function qb(a){return a?{sqlite:"SQLite (store.db)","global-state":"SQLite (global state.vscdb)",jsonl:"JSONL transcript","jsonl+tools":"JSONL + agent-tools"}[a]||a:"unknown"}function Gb(a){if(!a)return"";const i=new Date(a);return Number.isNaN(i.getTime())?a:i.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function Yb(a){switch(a.type){case"user-prompt":return a.content;case"compaction-summary":return a.content;case"thinking":return a.content;case"text-response":return a.content;case"tool-call":return[a.toolName,JSON.stringify(a.input),a.result||"",a.bashOutput?.command||"",a.bashOutput?.stdout||""].join(" ");default:return""}}function $b(a,i){const o=a.toLowerCase().indexOf(i.toLowerCase());if(o===-1)return a.slice(0,120);const u=Math.max(0,o-40),f=Math.min(a.length,o+i.length+60);return(u>0?"...":"")+a.slice(u,f)+(f<a.length?"...":"")}const Zb={"user-prompt":"User","compaction-summary":"Compaction",thinking:"Thinking","text-response":"Response","tool-call":"Tool"},Xb={"user-prompt":"text-terminal-green","compaction-summary":"text-terminal-dim",thinking:"text-terminal-purple","text-response":"text-terminal-blue","tool-call":"text-terminal-orange"};function Qb({scenes:a,open:i,onClose:o,onSeek:u}){const[f,m]=j.useState(""),[p,v]=j.useState(0),h=j.useRef(null),x=j.useRef(null);j.useEffect(()=>{i&&(m(""),v(0),setTimeout(()=>h.current?.focus(),50))},[i]);const y=j.useMemo(()=>{if(f.length<2)return[];const R=f.toLowerCase(),S=[];for(let w=0;w<a.length;w++){const A=Yb(a[w]);if(A.toLowerCase().includes(R)&&S.push({sceneIndex:w,type:a[w].type,snippet:$b(A,f),toolName:a[w].type==="tool-call"?a[w].toolName:void 0}),S.length>=50)break}return S},[a,f]);j.useEffect(()=>v(0),[y]),j.useEffect(()=>{if(!x.current)return;x.current.children[p]?.scrollIntoView({block:"nearest"})},[p]);const b=j.useCallback(R=>{const S=y[R];S&&(u(S.sceneIndex),o())},[y,u,o]),T=j.useCallback(R=>{R.key==="ArrowDown"?(R.preventDefault(),v(S=>Math.min(S+1,y.length-1))):R.key==="ArrowUp"?(R.preventDefault(),v(S=>Math.max(S-1,0))):R.key==="Enter"?(R.preventDefault(),b(p)):R.key==="Escape"&&o()},[y.length,p,b,o]);return i?c.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[8vh] sm:pt-[15vh]",onClick:o,children:[c.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm"}),c.jsxs("div",{className:"relative w-full max-w-xl mx-3 sm:mx-0 bg-terminal-bg border border-terminal-border rounded-xl shadow-2xl overflow-hidden",onClick:R=>R.stopPropagation(),onKeyDown:T,children:[c.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-terminal-border",children:[c.jsx("span",{className:"text-terminal-dim text-sm",children:"🔍"}),c.jsx("input",{ref:h,type:"text",value:f,onChange:R=>m(R.target.value),placeholder:"Search scenes...",className:"flex-1 bg-transparent text-sm font-mono text-terminal-text placeholder-terminal-dim outline-none"}),c.jsx("kbd",{className:"text-[10px] font-mono text-terminal-dim bg-terminal-surface px-1.5 py-0.5 rounded border border-terminal-border",children:"ESC"})]}),c.jsx("div",{ref:x,className:"max-h-[50vh] overflow-y-auto",children:f.length<2?c.jsx("div",{className:"px-4 py-8 text-center text-xs font-mono text-terminal-dim",children:"Type at least 2 characters to search"}):y.length===0?c.jsxs("div",{className:"px-4 py-8 text-center text-xs font-mono text-terminal-dim",children:['No results for "',f,'"']}):y.map((R,S)=>c.jsxs("button",{onClick:()=>b(S),className:`w-full text-left px-4 py-2.5 flex items-start gap-3 transition-colors ${S===p?"bg-terminal-green/10":"hover:bg-terminal-surface/50"}`,children:[c.jsx("span",{className:`text-[10px] font-mono font-semibold uppercase shrink-0 mt-0.5 ${Xb[R.type]||"text-terminal-dim"}`,children:R.toolName||Zb[R.type]||R.type}),c.jsx("span",{className:"text-xs font-mono text-terminal-text/80 line-clamp-2 break-words",children:Vb(R.snippet,f)}),c.jsxs("span",{className:"text-[10px] font-mono text-terminal-dim shrink-0 mt-0.5",children:["#",R.sceneIndex]})]},R.sceneIndex))}),y.length>0&&c.jsxs("div",{className:"px-4 py-2 border-t border-terminal-border text-[10px] font-mono text-terminal-dim flex gap-4",children:[c.jsxs("span",{children:[y.length," result",y.length!==1?"s":""]}),c.jsx("span",{children:"↑↓ navigate"}),c.jsx("span",{children:"↵ select"})]})]})]}):null}function Vb(a,i){if(!i)return a;const o=[],u=a.toLowerCase(),f=i.toLowerCase();let m=0,p=u.indexOf(f);for(;p!==-1;)p>m&&o.push(a.slice(m,p)),o.push(c.jsx("mark",{className:"bg-terminal-green/30 text-terminal-green rounded-sm px-0.5",children:a.slice(p,p+i.length)},p)),m=p+i.length,p=u.indexOf(f,m);return m<a.length&&o.push(a.slice(m)),o}function Fb(a){if(!a)return"";const i=Math.floor(a/1e3);if(i<60)return`${i}s`;const o=Math.floor(i/60);return o<60?`${o}m ${i%60}s`:`${Math.floor(o/60)}h ${o%60}m`}function Jb({session:a,onStart:i}){const{meta:o,scenes:u}=a,f=j.useMemo(()=>{const y=u.find(b=>b.type==="user-prompt");return!y||y.type!=="user-prompt"?null:y.content.length>300?y.content.slice(0,300)+"...":y.content},[u]),m=j.useMemo(()=>{const y=new Map;let b=0;const T=new Set;for(const R of u)R.type==="tool-call"&&(y.set(R.toolName,(y.get(R.toolName)||0)+1),R.diff&&!T.has(R.diff.filePath)&&(T.add(R.diff.filePath),b++));return{toolCounts:y,filesModified:b}},[u]),p=Fb(o.stats.durationMs),v=o.title||o.project,h=j.useRef(!1),x=j.useRef(0);return j.useEffect(()=>{const y=R=>{h.current||R.deltaY>0&&(h.current=!0,i(!1))},b=R=>{x.current=R.touches[0].clientY},T=R=>{if(h.current)return;x.current-R.touches[0].clientY>15&&(h.current=!0,i(!1))};return window.addEventListener("wheel",y,{passive:!0}),window.addEventListener("touchstart",b,{passive:!0}),window.addEventListener("touchmove",T,{passive:!0}),()=>{window.removeEventListener("wheel",y),window.removeEventListener("touchstart",b),window.removeEventListener("touchmove",T)}},[i]),j.useEffect(()=>{const y=b=>{(b.key===" "||b.key==="Enter")&&(b.preventDefault(),i())};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[i]),c.jsxs("div",{className:"flex-1 flex flex-col items-center overflow-y-auto relative",children:[c.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-terminal-green/[0.03] via-transparent to-transparent pointer-events-none"}),c.jsx("div",{className:"flex-1 min-h-0"}),c.jsxs("div",{className:"max-w-2xl w-full px-6 text-center space-y-5 md:space-y-8 z-10 shrink-0",children:[c.jsxs("div",{className:"space-y-3 md:space-y-4",children:[c.jsx("a",{href:"https://vibe-replay.com",target:"_blank",rel:"noopener noreferrer",className:"inline-block text-lg sm:text-xl font-mono font-bold hover:opacity-80 transition-opacity bg-gradient-to-r from-[#3fb950] to-[#58a6ff] bg-clip-text text-transparent",children:"vibe-replay"}),c.jsx("h2",{className:"text-2xl sm:text-3xl font-mono font-bold text-terminal-text leading-tight",children:v}),o.title&&o.project!==o.title&&c.jsx("div",{className:"text-sm font-mono text-terminal-dim",children:o.project})]}),c.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3 max-w-lg mx-auto",children:[c.jsx(ea,{label:"Turns",value:o.stats.userPrompts,color:"text-terminal-green"}),c.jsx(ea,{label:"Tool Calls",value:o.stats.toolCalls,color:"text-terminal-orange"}),p?c.jsx(ea,{label:"Duration",value:p,color:"text-terminal-text"}):c.jsx(ea,{label:"Files",value:m.filesModified,color:"text-terminal-blue"}),o.stats.costEstimate!==void 0?c.jsx(ea,{label:"Cost",value:`$${o.stats.costEstimate<.01?o.stats.costEstimate.toFixed(4):o.stats.costEstimate.toFixed(2)}`,color:"text-terminal-green"}):c.jsx(ea,{label:"Scenes",value:o.stats.sceneCount,color:"text-terminal-text"})]}),c.jsxs("div",{className:"flex items-center justify-center gap-3 text-xs font-mono text-terminal-dim",children:[o.model&&c.jsx("span",{children:o.model}),o.model&&c.jsx("span",{className:"text-terminal-border",children:"|"}),c.jsx("span",{children:o.provider})]}),c.jsxs("button",{onClick:i,className:"group inline-flex items-center gap-3 px-8 py-3 rounded-xl bg-terminal-green/10 border border-terminal-green/30 hover:bg-terminal-green/20 hover:border-terminal-green/50 transition-all duration-200",children:[c.jsx("span",{className:"text-xl text-terminal-green group-hover:scale-110 transition-transform",children:"▶"}),c.jsx("span",{className:"text-sm font-mono font-semibold text-terminal-green",children:"Start Replay"})]})]}),f&&c.jsx("div",{className:"w-full px-6 mt-6 md:mt-8 pb-6 z-10 shrink-0",children:c.jsxs("div",{onClick:i,className:"max-w-2xl mx-auto cursor-pointer group",children:[c.jsx("div",{className:"text-[11px] font-mono text-terminal-dim uppercase tracking-wider mb-2 text-center",children:"First message"}),c.jsxs("div",{className:"rounded-lg bg-terminal-green/5 border border-terminal-green/15 px-4 py-3 group-hover:border-terminal-green/30 transition-colors",children:[c.jsx("div",{className:"text-[11px] font-mono font-semibold text-terminal-green uppercase tracking-wider mb-1.5",children:"You"}),c.jsx("div",{className:"text-sm font-mono text-terminal-text/70 line-clamp-3 whitespace-pre-wrap",children:f})]}),c.jsxs("div",{className:"text-center mt-3 text-terminal-dim/50 text-xs font-mono animate-bounce",children:["↓"," scroll to explore"]})]})}),c.jsx("div",{className:"px-6 py-4 z-10 shrink-0",children:c.jsxs("a",{href:"https://vibe-replay.com/explore",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-xs font-mono text-terminal-dim hover:text-terminal-text transition-colors border border-terminal-border/40 rounded-full px-4 py-1.5 hover:border-terminal-border",children:["Explore more replays",c.jsx("span",{className:"text-terminal-green",children:"→"})]})}),c.jsx("div",{className:"flex-1 min-h-0"})]})}function ea({label:a,value:i,color:o}){return c.jsxs("div",{className:"bg-terminal-surface/80 rounded-lg px-3 py-2.5 border border-terminal-border/40",children:[c.jsx("div",{className:`text-lg font-bold font-mono tabular-nums ${o}`,children:i}),c.jsx("div",{className:"text-[11px] font-mono text-terminal-dim uppercase tracking-wide",children:a})]})}Ce.setOptions({breaks:!0,gfm:!0});function Cm(a){switch(a.type){case"user-prompt":return{label:"You",text:(a.content.split(`
143
- `).find(o=>o.trim())||"").slice(0,100)};case"compaction-summary":return{label:"Compaction",text:a.content.slice(0,80)};case"thinking":return{label:"Thinking",text:a.content.slice(0,80)};case"text-response":return{label:"Response",text:(a.content.split(`
144
- `).find(o=>o.trim())||"").slice(0,100)};case"tool-call":return{label:a.toolName,text:a.diff?.filePath||a.bashOutput?.command||Object.values(a.input).filter(i=>typeof i=="string").join(", ").slice(0,80)||""}}}function Rm(a){switch(a.type){case"user-prompt":return"text-terminal-green";case"compaction-summary":return"text-terminal-dim";case"thinking":return"text-terminal-purple";case"text-response":return"text-terminal-blue";case"tool-call":return"text-terminal-orange"}}function rm({actions:a,scenes:i,currentIndex:o,totalScenes:u,onSeek:f,addingForScene:m,onClearAddingTarget:p,readOnly:v=!1}){const{annotations:h,add:x,update:y,remove:b,hasUnsaved:T,canSaveHtml:R,downloadHtml:S,downloadJson:w,publishGist:A,exportHtml:H,gistPublishing:M,htmlExporting:Y,aiCoachTool:F,aiCoachTools:P,aiCoachToolName:ee,setAiCoachToolName:I,runAiCoach:re,cancelAiCoach:ue,aiCoachRunning:q}=a,[J,ie]=j.useState(null),[ve,de]=j.useState(""),[be,L]=j.useState(null),[W,le]=j.useState(null),[_,V]=j.useState(!1);j.useEffect(()=>{A&&fetch("/api/gh-status").then(he=>he.json()).then(he=>le(he.available??!1)).catch(()=>le(!1))},[A]);const[E,B]=j.useState(null),[Z,K]=j.useState(""),oe=j.useRef(null),ce=j.useRef(null),pe=j.useRef(null),te=j.useRef(null),ne=m??J;j.useEffect(()=>{m!==null&&(de(""),ie(null),setTimeout(()=>{te.current?.scrollIntoView({behavior:"smooth",block:"nearest"}),oe.current?.focus()},50))},[m]),j.useEffect(()=>{ne!==null&&oe.current&&oe.current.focus()},[ne]),j.useEffect(()=>{E&&ce.current&&ce.current.focus()},[E]);const Ge=j.useMemo(()=>[...h].sort((he,Be)=>he.sceneIndex-Be.sceneIndex),[h]);j.useEffect(()=>{if(!pe.current||ne!==null)return;const he=pe.current.querySelectorAll("[data-annotation-scene]");let Be=null,dl=1/0;he.forEach(pl=>{const ta=Number(pl.getAttribute("data-annotation-scene")),ml=Math.abs(ta-o);ml<dl&&(dl=ml,Be=pl)}),Be&&dl<=3&&Be.scrollIntoView({behavior:"smooth",block:"nearest"})},[o,ne]);const ht=j.useCallback(()=>{ie(null),de(""),p()},[p]),At=j.useCallback(()=>{!ve.trim()||ne===null||(x(ne,ve.trim()),de(""),ie(null),p())},[x,ne,ve,p]),Ht=j.useCallback(()=>{!E||!Z.trim()||(y(E,Z.trim()),B(null),K(""))},[E,Z,y]),Pe=ne!==null&&i[ne]?Cm(i[ne]):null,gt=ne!==null&&i[ne]?Rm(i[ne]):"";return c.jsxs("div",{className:"flex flex-col h-full",children:[c.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-terminal-border/50",children:[c.jsx("span",{className:"text-xs font-mono font-semibold text-terminal-text uppercase tracking-wider",children:"Comments"}),c.jsxs("div",{className:"flex items-center gap-2",children:[v&&c.jsx("span",{className:"text-[9px] font-mono text-terminal-dim/60 uppercase px-1.5 py-0.5 rounded border border-terminal-border/40",children:"Read-only"}),c.jsx("span",{className:"text-[10px] font-mono text-terminal-dim",children:h.length})]})]}),c.jsxs("div",{ref:pe,className:"flex-1 overflow-y-auto",children:[Ge.length===0&&ne===null&&c.jsxs("div",{className:"px-3 py-8 text-center",children:[c.jsx("div",{className:"text-terminal-dim text-xs font-mono mb-2",children:"No comments yet"}),!v&&c.jsx("div",{className:"text-terminal-dim/60 text-[10px] font-mono",children:"Hover over any message and click the comment icon to add one"})]}),Ge.map(he=>c.jsx(Kb,{annotation:he,scene:i[he.sceneIndex],isCurrent:he.sceneIndex===o,isEditing:!v&&E===he.id,editBody:E===he.id?Z:"",editTextareaRef:E===he.id?ce:void 0,onSeek:()=>f(he.sceneIndex),onStartEdit:()=>{B(he.id),K(he.body)},onCancelEdit:()=>{B(null),K("")},onSaveEdit:Ht,onEditBodyChange:K,onDelete:()=>b(he.id),readOnly:v},he.id)),!v&&ne!==null&&c.jsxs("div",{ref:te,className:"px-3 py-2.5 border-b border-terminal-border/30 bg-terminal-blue/[0.03]",children:[Pe&&c.jsxs("div",{className:"flex items-center gap-1.5 mb-2",children:[c.jsx("span",{className:`text-[10px] font-mono font-semibold uppercase ${gt}`,children:Pe.label}),c.jsx("span",{className:"text-[10px] font-mono text-terminal-dim truncate",children:Pe.text})]}),c.jsx("textarea",{ref:oe,value:ve,onChange:he=>de(he.target.value),onKeyDown:he=>{he.key==="Enter"&&(he.metaKey||he.ctrlKey)&&(he.preventDefault(),At()),he.key==="Escape"&&ht()},placeholder:"Add a comment... (Markdown supported)",className:"w-full bg-terminal-surface border border-terminal-border/50 rounded px-2 py-1.5 text-xs font-mono text-terminal-text placeholder-terminal-dim/50 resize-none focus:outline-none focus:border-terminal-blue/50",rows:3}),c.jsxs("div",{className:"flex items-center justify-between mt-1.5",children:[c.jsxs("span",{className:"text-[9px] font-mono text-terminal-dim/50",children:["⌘","+Enter to save"]}),c.jsxs("div",{className:"flex gap-1.5",children:[c.jsx("button",{onClick:ht,className:"px-2 py-1 text-[10px] font-mono text-terminal-dim hover:text-terminal-text transition-colors",children:"Cancel"}),c.jsx("button",{onClick:At,disabled:!ve.trim(),className:"px-2 py-1 text-[10px] font-mono bg-terminal-blue/15 text-terminal-blue rounded hover:bg-terminal-blue/25 transition-colors disabled:opacity-40",children:"Comment"})]})]})]})]}),!v&&(h.length>0||re)&&c.jsxs("div",{className:"shrink-0 border-t border-terminal-border/50 px-3 py-2 space-y-1.5",children:[T&&!A&&c.jsx("div",{className:"text-[9px] font-mono text-terminal-orange text-center mb-1",children:"Unsaved changes"}),be&&c.jsx("div",{className:`text-[9px] font-mono text-center mb-1 ${be.type==="success"?"text-terminal-green":"text-terminal-red"}`,children:be.type==="success"&&be.text.startsWith("http")?c.jsx("a",{href:be.text,target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-terminal-text transition-colors",children:be.text}):be.text}),re&&!_&&!q&&(()=>{const he=h.some(Be=>Be.author==="vibe-feedback");return c.jsx("button",{onClick:()=>V(!0),className:"w-full px-2 py-1.5 text-[10px] font-mono bg-terminal-purple/15 text-terminal-purple rounded hover:bg-terminal-purple/25 transition-colors text-center border border-terminal-purple/30",children:he?"Re-run AI Coach (beta)":"AI Coach (beta)"})})(),_&&!q&&(()=>{const he=h.some(Be=>Be.author==="vibe-feedback");return c.jsxs("div",{className:"space-y-1.5 p-2 rounded border border-terminal-purple/30 bg-terminal-purple/5",children:[c.jsx("div",{className:"text-[10px] font-mono text-terminal-purple font-semibold",children:"AI Coach (beta)"}),c.jsxs("div",{className:"text-[9px] font-mono text-terminal-dim leading-relaxed",children:["Uses ",c.jsx("span",{className:"text-terminal-text",children:F?.name})," CLI to analyze your prompting technique. This will make API calls using your configured credentials and may use tokens/cost money. Typically takes 1-3 minutes.",he&&c.jsx("span",{className:"block mt-1 text-terminal-orange",children:"This will replace existing AI Coach comments."})]}),P.length>1&&I&&c.jsxs("label",{className:"block text-[9px] font-mono text-terminal-dim",children:["Tool:",c.jsx("select",{value:ee||"",onChange:Be=>I(Be.target.value),className:"ml-1 bg-terminal-surface border border-terminal-border/50 rounded px-1.5 py-0.5 text-[9px] font-mono text-terminal-text",children:P.map(Be=>c.jsx("option",{value:Be.name,children:Be.name},Be.name))})]}),c.jsxs("div",{className:"flex gap-1.5 justify-end",children:[c.jsx("button",{onClick:()=>V(!1),className:"px-2 py-1 text-[10px] font-mono text-terminal-dim hover:text-terminal-text transition-colors",children:"Cancel"}),c.jsx("button",{onClick:async()=>{V(!1);try{const Be=await re();L({type:"success",text:`Score: ${Be.score}/10 — ${Be.itemCount} comment(s) added`})}catch(Be){if(Be.name==="AbortError")return;L({type:"error",text:Be.message})}},className:"px-2 py-1 text-[10px] font-mono bg-terminal-purple/20 text-terminal-purple rounded hover:bg-terminal-purple/30 transition-colors",children:"Run"})]})]})})(),q&&c.jsxs("div",{className:"flex items-center justify-center gap-2 py-2",children:[c.jsx("span",{className:"text-[10px] font-mono text-terminal-purple animate-pulse",children:"Analyzing your prompting patterns..."}),ue&&c.jsx("button",{onClick:ue,className:"px-1.5 py-0.5 text-[9px] font-mono text-terminal-dim hover:text-terminal-red border border-terminal-border/40 rounded transition-colors",children:"Cancel"})]}),H&&c.jsx("button",{onClick:async()=>{L(null);try{const he=await H();L({type:"success",text:`Saved: ${he}`})}catch(he){L({type:"error",text:he.message})}},disabled:Y,className:"w-full px-2 py-1.5 text-[10px] font-mono bg-terminal-green/15 text-terminal-green rounded hover:bg-terminal-green/25 transition-colors text-center border border-terminal-green/30 disabled:opacity-50",children:Y?"Exporting...":"Export HTML"}),A&&W&&c.jsx("button",{onClick:async()=>{L(null);try{const he=await A();L({type:"success",text:he.viewerUrl})}catch(he){L({type:"error",text:he.message})}},disabled:M,className:"w-full px-2 py-1.5 text-[10px] font-mono bg-terminal-purple/15 text-terminal-purple rounded hover:bg-terminal-purple/25 transition-colors text-center border border-terminal-purple/30 disabled:opacity-50",children:M?"Publishing...":"Publish to Gist"}),A&&W===!1&&c.jsxs("div",{className:"text-[9px] font-mono text-terminal-orange/70 text-center px-2 py-1.5 border border-terminal-orange/20 rounded bg-terminal-orange/5",children:["Gist publishing requires"," ",c.jsx("a",{href:"https://cli.github.com/",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"gh CLI"})," ","— install then run ",c.jsx("span",{className:"text-terminal-text/70",children:"gh auth login"})]}),!H&&R&&c.jsx("button",{onClick:S,className:"w-full px-2 py-1.5 text-[10px] font-mono bg-terminal-green/15 text-terminal-green rounded hover:bg-terminal-green/25 transition-colors text-center border border-terminal-green/30",title:"Download HTML with comments embedded",children:"Save HTML with Comments"}),!H&&!R&&c.jsx("div",{className:"text-[9px] font-mono text-terminal-dim/60 text-center px-2 py-1",children:"Save HTML requires a production build (use CLI output)"}),!A&&c.jsx("button",{onClick:w,className:"w-full px-2 py-1.5 text-[10px] font-mono bg-terminal-blue/10 text-terminal-blue rounded hover:bg-terminal-blue/20 transition-colors text-center border border-terminal-blue/20",title:"Download replay.json for re-publishing to gist",children:"Export JSON (for gist re-publish)"})]})]})}const Kb=j.memo(function({annotation:i,scene:o,isCurrent:u,isEditing:f,editBody:m,editTextareaRef:p,onSeek:v,onStartEdit:h,onCancelEdit:x,onSaveEdit:y,onEditBodyChange:b,onDelete:T,readOnly:R=!1}){const[S,w]=j.useState(!1),A=o?Cm(o):null,H=o?Rm(o):"text-terminal-dim",M=j.useMemo(()=>{try{return new Date(i.createdAt).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}catch{return""}},[i.createdAt]),Y=i.author==="vibe-feedback";return c.jsxs("div",{"data-annotation-scene":i.sceneIndex,className:`px-3 py-2 border-b border-terminal-border/30 transition-colors ${Y?u?"bg-terminal-purple/10 border-l-2 border-l-terminal-purple":"bg-terminal-purple/[0.03] hover:bg-terminal-purple/[0.06]":u?"bg-terminal-blue/10 border-l-2 border-l-terminal-blue":"hover:bg-terminal-surface/50"}`,onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),children:[Y&&c.jsx("div",{className:"flex items-center gap-1.5 mb-1",children:c.jsx("span",{className:"text-[9px] font-mono font-semibold uppercase tracking-wider text-terminal-purple px-1.5 py-0.5 rounded border border-terminal-purple/30 bg-terminal-purple/10",children:"AI Coach"})}),c.jsxs("button",{onClick:v,className:"flex items-center gap-1.5 mb-1 w-full text-left group/ref",children:[A&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:`text-[10px] font-mono font-semibold uppercase shrink-0 ${H}`,children:A.label}),c.jsx("span",{className:"text-[10px] font-mono text-terminal-dim truncate group-hover/ref:text-terminal-text transition-colors",children:A.text})]}),!A&&c.jsxs("span",{className:"text-[10px] font-mono text-terminal-dim",children:["Step ",i.sceneIndex+1]})]}),c.jsxs("div",{className:"flex items-start gap-1",children:[c.jsx("div",{className:"flex-1 min-w-0",children:f?c.jsxs("div",{children:[c.jsx("textarea",{ref:p,value:m,onChange:F=>b(F.target.value),onKeyDown:F=>{F.key==="Enter"&&(F.metaKey||F.ctrlKey)&&(F.preventDefault(),y()),F.key==="Escape"&&x()},className:"w-full bg-terminal-surface border border-terminal-border/50 rounded px-2 py-1.5 text-xs font-mono text-terminal-text resize-none focus:outline-none focus:border-terminal-blue/50",rows:3}),c.jsxs("div",{className:"flex justify-end gap-1.5 mt-1",children:[c.jsx("button",{onClick:x,className:"px-2 py-0.5 text-[10px] font-mono text-terminal-dim hover:text-terminal-text transition-colors",children:"Cancel"}),c.jsx("button",{onClick:y,className:"px-2 py-0.5 text-[10px] font-mono bg-terminal-blue/15 text-terminal-blue rounded hover:bg-terminal-blue/25 transition-colors",children:"Save"})]})]}):c.jsx("div",{className:"prose-terminal text-xs text-terminal-text/90 leading-relaxed",dangerouslySetInnerHTML:{__html:Ce.parse(i.body)}})}),!R&&S&&!f&&c.jsxs("div",{className:"flex gap-0.5 shrink-0 pt-0.5",children:[c.jsx("button",{onClick:h,className:"p-0.5 text-[10px] text-terminal-dim hover:text-terminal-blue transition-colors",title:"Edit",children:"✎"}),c.jsx("button",{onClick:T,className:"p-0.5 text-[10px] text-terminal-dim hover:text-terminal-red transition-colors",title:"Delete",children:"✕"})]})]}),c.jsx("div",{className:"text-[9px] font-mono text-terminal-dim/40 mt-1",children:M})]})});function Ib(a){a.classList.remove("jump-target-flash"),a.offsetWidth,a.classList.add("jump-target-flash"),window.setTimeout(()=>{a.classList.remove("jump-target-flash")},900)}function Wb({session:a,viewPrefs:i,viewerMode:o="embedded"}){const u=o==="readonly",[f,m]=j.useState(!1),[p,v]=j.useState(void 0),[h,x]=j.useState(0),[y,b]=j.useState(()=>{if((a.annotations?.length??0)>0)return!0;try{const te="vibe-replay-annotations-"+a.meta.sessionId,ne=localStorage.getItem(te);if(ne){const Ge=JSON.parse(ne);return Array.isArray(Ge)&&Ge.length>0}}catch{}return!1}),[T,R]=j.useState(null),S=yx(a,o),{state:w,currentIndex:A,visibleCount:H,speed:M,play:Y,pause:F,togglePlayPause:P,seekTo:ee,changeSpeed:I,totalScenes:re,userPromptIndices:ue}=gx(a.scenes,i.promptsOnly,f),q=j.useRef(null),[J,ie]=j.useState("outline"),[ve,de]=j.useState(!1),[be,L]=j.useState(!1),[W,le]=j.useState(!1),_=j.useRef(null),V=j.useRef(null);j.useEffect(()=>{const te=ne=>{(ne.metaKey||ne.ctrlKey)&&ne.key==="k"&&(ne.preventDefault(),de(Ge=>!Ge))};return window.addEventListener("keydown",te),()=>window.removeEventListener("keydown",te)},[]);const E=ue.filter(te=>te<=A).length||0,B=ue.length,Z=j.useCallback((te=!0)=>{m(!0),te?setTimeout(Y,300):setTimeout(()=>ee(0),100)},[Y,ee]),K=j.useCallback(te=>{const ne=Math.max(0,Math.min(te,a.scenes.length-1));F(),_.current=ne,x(Ge=>Ge+1),v(ne),V.current&&clearTimeout(V.current),V.current=setTimeout(()=>v(void 0),2500),ee(ne)},[F,ee,a.scenes.length]),oe=j.useCallback(()=>{const te=ue.find(ne=>ne>A);te!==void 0&&K(te)},[ue,A,K]),ce=j.useCallback(()=>{const te=[...ue].reverse().find(ne=>ne<A);te!==void 0&&K(te)},[ue,A,K]),pe=j.useRef(!1);return j.useEffect(()=>{w==="playing"&&le(!1)},[w]),j.useEffect(()=>{if(!q.current||A<0||w!=="playing")return;const te=q.current;pe.current=!0,requestAnimationFrame(()=>{const ne=te.querySelector(`[data-scene-index="${A}"]`);ne?ne.scrollIntoView({behavior:"smooth",block:"center"}):te.scrollTo({top:te.scrollHeight,behavior:"smooth"}),setTimeout(()=>{pe.current=!1},400)})},[A,w]),j.useEffect(()=>{const te=q.current;if(!te)return;const ne=()=>{pe.current||(le(!0),w==="playing"&&F())};return te.addEventListener("wheel",ne,{passive:!0}),te.addEventListener("touchmove",ne,{passive:!0}),()=>{te.removeEventListener("wheel",ne),te.removeEventListener("touchmove",ne)}},[w,F]),j.useEffect(()=>{const te=q.current;if(!te)return;let ne=!1;const Ge=()=>{if(w!=="paused"||ne||A>=a.scenes.length-1)return;te.scrollHeight-te.scrollTop-te.clientHeight<80&&(ne=!0,ee(A+1),setTimeout(()=>{ne=!1},150))},ht=gt=>{gt.deltaY>0&&Ge()};let At=0;const Ht=gt=>{At=gt.touches[0].clientY},Pe=gt=>{At-gt.changedTouches[0].clientY>20&&Ge()};return te.addEventListener("scroll",Ge,{passive:!0}),te.addEventListener("wheel",ht,{passive:!0}),te.addEventListener("touchstart",Ht,{passive:!0}),te.addEventListener("touchend",Pe,{passive:!0}),()=>{te.removeEventListener("scroll",Ge),te.removeEventListener("wheel",ht),te.removeEventListener("touchstart",Ht),te.removeEventListener("touchend",Pe)}},[w,A,a.scenes.length,ee]),j.useEffect(()=>{const te=_.current,ne=q.current;if(te===null||!ne||A!==te)return;let Ge=!1,ht=0;const At=()=>{if(Ge)return;const Ht=ne.querySelector(`[data-scene-index="${te}"]`);if(Ht){pe.current=!0;const Pe=ne.getBoundingClientRect(),Be=Ht.getBoundingClientRect().top-Pe.top+ne.scrollTop-Pe.height*.35;ne.scrollTo({top:Math.max(0,Be),behavior:"smooth"}),Ib(Ht),setTimeout(()=>{pe.current=!1},450),_.current=null;return}ht+=1,ht<12?setTimeout(At,80):_.current=null};return requestAnimationFrame(At),()=>{Ge=!0}},[h,A,H]),j.useEffect(()=>()=>{V.current&&clearTimeout(V.current)},[]),f?c.jsxs("div",{className:"flex flex-1 min-h-0 relative",children:[c.jsxs("div",{className:"hidden md:flex w-64 shrink-0 flex-col border-r border-terminal-border/50 bg-terminal-bg",children:[c.jsxs("div",{className:"flex border-b border-terminal-border/50",children:[c.jsx("button",{onClick:()=>ie("outline"),className:`flex-1 px-3 py-2 text-xs font-mono uppercase tracking-wider transition-colors ${J==="outline"?"text-terminal-green border-b-2 border-terminal-green":"text-terminal-dim hover:text-terminal-text"}`,children:"Outline"}),c.jsx("button",{onClick:()=>ie("stats"),className:`flex-1 px-3 py-2 text-xs font-mono uppercase tracking-wider transition-colors ${J==="stats"?"text-terminal-green border-b-2 border-terminal-green":"text-terminal-dim hover:text-terminal-text"}`,children:"Stats"})]}),c.jsx("div",{className:"flex-1 overflow-y-auto",children:J==="stats"?c.jsx(am,{session:a}):c.jsx(lm,{scenes:a.scenes,currentIndex:A,onSeek:K})})]}),c.jsxs("div",{className:"flex flex-col flex-1 min-h-0 min-w-0",children:[c.jsxs("div",{className:"flex flex-1 min-h-0",children:[c.jsxs("div",{className:"flex flex-col flex-1 min-h-0 min-w-0 relative",children:[c.jsx("div",{ref:q,className:"flex-1 overflow-y-auto px-4 py-4 pb-8 overscroll-contain",children:c.jsx(zb,{scenes:a.scenes,visibleCount:H,currentIndex:A,viewPrefs:i,focusIndex:p,annotatedScenes:S.annotatedScenes,annotationCounts:S.annotationCounts,onComment:u?void 0:te=>{b(!0),R(te)}})}),w==="paused"&&A<a.scenes.length-1&&!W&&c.jsx("div",{className:"absolute bottom-[72px] left-1/2 -translate-x-1/2 z-10 pointer-events-none animate-bounce",children:c.jsxs("div",{className:"px-4 py-1.5 rounded-full bg-terminal-surface/90 border border-terminal-border/60 backdrop-blur-sm text-xs font-mono text-terminal-dim flex items-center gap-2 shadow-lg",children:[c.jsx("span",{className:"text-terminal-green",children:"↓"}),"scroll for more"]})}),c.jsx(Qb,{scenes:a.scenes,open:ve,onClose:()=>de(!1),onSeek:te=>{K(te),de(!1)}}),w==="paused"&&H>0&&c.jsx("div",{className:"hidden md:block absolute top-3 right-3 px-3 py-1.5 rounded-md bg-terminal-orange/10 border border-terminal-orange/20 text-terminal-orange text-xs font-mono pause-overlay pointer-events-none backdrop-blur-sm",children:"PAUSED"})]}),y&&c.jsx("div",{className:"hidden md:flex w-72 shrink-0 flex-col border-l border-terminal-border/50 bg-terminal-bg",children:c.jsx(rm,{actions:S,scenes:a.scenes,currentIndex:A,totalScenes:re,onSeek:K,addingForScene:T,onClearAddingTarget:()=>R(null),readOnly:u})})]}),c.jsxs("div",{className:"shrink-0 border-t border-terminal-border/50 bg-terminal-surface/80 backdrop-blur-sm sticky bottom-0 safe-bottom",children:[c.jsx(vx,{scenes:a.scenes,currentIndex:A,onSeek:K,annotatedScenes:S.annotatedScenes}),c.jsx(Ex,{state:w,speed:M,currentIndex:A,totalScenes:re,userPromptCount:B,currentTurn:E,onTogglePlayPause:P,onChangeSpeed:I,onPrevPrompt:ce,onNextPrompt:oe,onOpenSearch:()=>de(!0),onOpenOutline:()=>L(!0),annotationCount:S.annotations.length,annotationPanelOpen:y,onToggleAnnotations:()=>b(te=>!te),hasUnsavedAnnotations:S.hasUnsaved})]})]}),c.jsxs("div",{className:`fixed inset-0 z-40 md:hidden transition-opacity duration-300 ${be?"opacity-100":"opacity-0 pointer-events-none"}`,onClick:()=>L(!1),children:[c.jsx("div",{className:"absolute inset-0 bg-black/40"}),c.jsxs("div",{className:`absolute bottom-0 left-0 right-0 h-[65vh] bg-terminal-bg border-t border-terminal-border rounded-t-2xl flex flex-col transition-transform duration-300 safe-bottom ${be?"translate-y-0":"translate-y-full"}`,onClick:te=>te.stopPropagation(),children:[c.jsx("div",{className:"flex justify-center py-2.5 shrink-0",children:c.jsx("div",{className:"w-10 h-1 rounded-full bg-terminal-border"})}),c.jsxs("div",{className:"flex border-b border-terminal-border/50 shrink-0",children:[c.jsx("button",{onClick:()=>ie("outline"),className:`flex-1 px-3 py-2.5 text-xs font-mono uppercase tracking-wider transition-colors ${J==="outline"?"text-terminal-green border-b-2 border-terminal-green":"text-terminal-dim"}`,children:"Outline"}),c.jsx("button",{onClick:()=>ie("stats"),className:`flex-1 px-3 py-2.5 text-xs font-mono uppercase tracking-wider transition-colors ${J==="stats"?"text-terminal-green border-b-2 border-terminal-green":"text-terminal-dim"}`,children:"Stats"}),c.jsxs("button",{onClick:()=>ie("comments"),className:`flex-1 px-3 py-2.5 text-xs font-mono uppercase tracking-wider transition-colors ${J==="comments"?"text-terminal-blue border-b-2 border-terminal-blue":"text-terminal-dim"}`,children:["Comments",S.annotations.length>0?` (${S.annotations.length})`:""]})]}),c.jsx("div",{className:"flex-1 overflow-y-auto overscroll-contain",children:J==="outline"?c.jsx(lm,{scenes:a.scenes,currentIndex:A,onSeek:te=>{K(te),L(!1)}}):J==="stats"?c.jsx(am,{session:a}):c.jsx(rm,{actions:S,scenes:a.scenes,currentIndex:A,totalScenes:re,onSeek:te=>{K(te),L(!1)},addingForScene:T,onClearAddingTarget:()=>R(null),readOnly:u})})]})]})]}):c.jsx(Jb,{session:a,onStart:Z})}function Pb(a){if(!a)return"";const i=Math.floor(a/1e3);if(i<60)return`${i}s`;const o=Math.floor(i/60);return o<60?`${o}m ${i%60}s`:`${Math.floor(o/60)}h ${o%60}m`}function Om(a){return new Date(a).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1})}function e0(a){return a?`$${a.toFixed(2)}`:""}function t0(a){const i=Math.round(a/1024);return i>=1024?`${(i/1024).toFixed(1)}MB`:`${i}KB`}function zm({provider:a}){const o={"claude-code":"bg-amber-500/15 text-amber-400 border-amber-500/30",cursor:"bg-blue-500/15 text-blue-400 border-blue-500/30"}[a]||"bg-gray-500/15 text-gray-400 border-gray-500/30",u=a==="claude-code"?"Claude":a==="cursor"?"Cursor":a;return c.jsx("span",{className:`text-[10px] font-mono px-1.5 py-0.5 rounded border ${o}`,children:u})}function n0({slug:a,title:i,onSave:o}){const[u,f]=j.useState(!1),[m,p]=j.useState(i||""),[v,h]=j.useState(!1),x=j.useRef(null);j.useEffect(()=>{p(i||"")},[i]),j.useEffect(()=>{u&&x.current?.focus()},[u]);const y=async()=>{if(!v){h(!0);try{await o(a,m.trim())}finally{h(!1),f(!1)}}};return u?c.jsx("form",{onSubmit:b=>{b.preventDefault(),y()},className:"flex items-center gap-1.5 min-w-0",children:c.jsx("input",{ref:x,value:m,onChange:b=>p(b.target.value),onBlur:y,onKeyDown:b=>{b.key==="Escape"&&(p(i||""),f(!1))},className:"bg-terminal-surface border border-terminal-border rounded px-2 py-0.5 text-sm font-mono text-terminal-text w-full outline-none focus:border-terminal-green/50",placeholder:a,disabled:v})}):c.jsxs("button",{onClick:()=>f(!0),className:"group flex items-center gap-1 min-w-0 text-left",title:"Click to edit title",children:[c.jsx("span",{className:"text-sm font-mono text-terminal-text truncate",children:i||a}),c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"shrink-0 text-terminal-dim opacity-0 group-hover:opacity-100 transition-opacity",children:c.jsx("path",{d:"M11.5 1.5l3 3-9 9H2.5v-3l9-9z"})})]})}function Dm({summary:a,onOpen:i,onTitleSave:o,onDelete:u,onPublishGist:f,onRegenerate:m,onArchive:p,ghAvailable:v,isPublishing:h,isDeleting:x,isRegenerating:y,isArchived:b}){const[T,R]=j.useState(!1);return c.jsxs("div",{className:`bg-terminal-surface/50 border border-terminal-border/50 rounded-lg px-4 py-3 hover:bg-terminal-surface/80 transition-colors space-y-1.5 ${b?"opacity-50":""}`,children:[c.jsxs("div",{className:"flex items-center justify-between gap-3",children:[c.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[o?c.jsx(n0,{slug:a.slug,title:a.title,onSave:o}):c.jsx("span",{className:"text-sm font-mono text-terminal-text truncate",children:a.title||a.slug}),a.gist&&!a.gist.outdated&&c.jsxs("a",{href:a.gist.viewerUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-[10px] font-mono px-1.5 py-0.5 rounded border bg-purple-500/15 text-purple-400 border-purple-500/30 hover:bg-purple-500/25 transition-colors shrink-0",title:"View on vibe-replay.com",children:[c.jsx("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",children:c.jsx("path",{d:"M6 3H3v10h10v-3M9 2h5v5M14 2L7 9"})}),"Synced"]}),a.gist?.outdated&&f&&c.jsx("button",{onClick:f,disabled:h,className:"inline-flex items-center gap-1 text-[10px] font-mono px-1.5 py-0.5 rounded border bg-yellow-500/15 text-yellow-400 border-yellow-500/30 hover:bg-yellow-500/25 transition-colors disabled:opacity-50 shrink-0",children:h?"Syncing...":"Out of sync"})]}),c.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[c.jsx("button",{onClick:i,className:"px-3 py-1.5 text-xs font-mono rounded-md bg-terminal-green/10 text-terminal-green border border-terminal-green/20 hover:bg-terminal-green/20 transition-colors",children:"Open"}),m&&c.jsx("button",{onClick:m,disabled:y,className:"px-2 py-1.5 text-[11px] font-mono rounded-md text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface/80 transition-colors disabled:opacity-50",children:y?c.jsx("span",{className:"animate-pulse text-terminal-green",children:"..."}):"Redo"}),v&&f&&!a.gist?.gistId&&c.jsx("button",{onClick:f,disabled:h,className:"px-2 py-1.5 text-xs font-mono rounded-md text-terminal-dim hover:text-purple-400 hover:bg-purple-500/10 transition-colors disabled:opacity-50",title:"Publish to Gist",children:h?c.jsx("span",{className:"text-purple-400 animate-pulse",children:"..."}):c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:c.jsx("path",{d:"M8 2v8M5 5l3-3 3 3M3 11v2h10v-2"})})}),u&&(T?c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx("button",{onClick:()=>{u(),R(!1)},className:"px-2 py-1.5 text-xs font-mono rounded-md bg-red-500/10 text-red-400 border border-red-500/20 hover:bg-red-500/20 transition-colors",children:"Confirm"}),c.jsx("button",{onClick:()=>R(!1),className:"px-2 py-1.5 text-xs font-mono rounded-md text-terminal-dim hover:text-terminal-text transition-colors",children:"Cancel"})]}):c.jsx("button",{onClick:()=>R(!0),className:"px-2 py-1.5 text-xs font-mono rounded-md text-terminal-dim hover:text-red-400 hover:bg-red-500/10 transition-colors",title:"Delete",children:c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:c.jsx("path",{d:"M3 4h10M5.5 4V3a1 1 0 011-1h3a1 1 0 011 1v1M6.5 7v4M9.5 7v4M4.5 4l.5 9a1 1 0 001 1h4a1 1 0 001-1l.5-9"})})})),p&&c.jsx("button",{onClick:p,className:"p-1.5 text-terminal-dim hover:text-terminal-text transition-colors",title:b?"Unarchive":"Archive",children:c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:c.jsx("path",{d:"M2 4h12v2H2zM3 6v7h10V6M6.5 8h3"})})})]})]}),(a.messages||(a.firstMessage?[a.firstMessage]:[])).map((S,w)=>c.jsxs("div",{className:"flex gap-2 items-start",children:[c.jsx("span",{className:"text-[11px] text-terminal-green/60 shrink-0 mt-px select-none",children:">"}),c.jsx("p",{className:"text-[13px] text-terminal-text/60 line-clamp-1 leading-relaxed",children:S})]},w)),c.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] font-mono text-terminal-dim/50 flex-wrap",children:[c.jsx(zm,{provider:a.provider}),c.jsx("span",{children:a.slug}),c.jsx("span",{className:"text-terminal-dim/30",children:"·"}),c.jsx("span",{children:a.project}),c.jsx("span",{className:"text-terminal-dim/30",children:"·"}),c.jsx("span",{children:Om(a.startTime)}),a.model&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-terminal-dim/30",children:"·"}),c.jsx("span",{children:a.model})]})]}),c.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] font-mono text-terminal-dim/40 flex-wrap",children:[c.jsxs("span",{children:[a.stats.sceneCount," scenes"]}),c.jsxs("span",{children:[a.stats.userPrompts," prompts"]}),c.jsxs("span",{children:[a.stats.toolCalls," tools"]}),a.stats.durationMs&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-terminal-dim/30",children:"·"}),c.jsx("span",{children:Pb(a.stats.durationMs)})]}),a.stats.costEstimate&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-terminal-dim/30",children:"·"}),c.jsx("span",{children:e0(a.stats.costEstimate)})]}),a.hasAnnotations&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-terminal-dim/30",children:"·"}),c.jsxs("span",{className:"text-terminal-orange",children:[a.annotationCount," annotation",a.annotationCount!==1?"s":""]})]})]})]})}function l0(){const[a,i]=j.useState(""),[o,u]=j.useState(!1),[f,m]=j.useState(null),p=v=>{v.preventDefault();const h=a.trim();if(!h)return;if(u(!0),m(null),/^[a-f0-9]{20,40}$/.test(h)){window.location.search=`?gist=${h}`;return}const x=h.match(/gist\.github\.com\/[^/]+\/([a-f0-9]{20,40})/);if(x){window.location.search=`?gist=${x[1]}`;return}const y=h.match(/[?&]gist=([a-f0-9]{20,40})/);if(y){window.location.search=`?gist=${y[1]}`;return}try{new URL(h),window.location.search=`?url=${encodeURIComponent(h)}`}catch{m("Enter a valid URL or Gist ID"),u(!1)}};return c.jsxs("form",{onSubmit:p,className:"space-y-2",children:[c.jsxs("div",{className:"flex gap-2",children:[c.jsx("input",{value:a,onChange:v=>{i(v.target.value),m(null)},placeholder:"Paste a Gist ID, Gist URL, or replay JSON URL...",className:"flex-1 bg-terminal-surface border border-terminal-border rounded-lg px-3 py-2 text-sm font-mono text-terminal-text placeholder:text-terminal-dim/50 outline-none focus:border-terminal-green/50",disabled:o}),c.jsx("button",{type:"submit",disabled:o||!a.trim(),className:"px-4 py-2 text-xs font-mono rounded-lg bg-terminal-green/10 text-terminal-green border border-terminal-green/20 hover:bg-terminal-green/20 transition-colors disabled:opacity-40",children:o?"Loading...":"Open"})]}),f&&c.jsx("div",{className:"text-xs font-mono text-terminal-red",children:f})]})}function fu(a){const i=new URL(window.location.href);for(const[o,u]of Object.entries(a))u===null?i.searchParams.delete(o):i.searchParams.set(o,u);window.history.pushState({},"",i.toString()),window.dispatchEvent(new PopStateEvent("popstate"))}function im(a){const i=Date.now()-new Date(a).getTime(),o=Math.floor(i/6e4);if(o<1)return"just now";if(o<60)return`${o}m ago`;const u=Math.floor(o/60);if(u<24)return`${u}h ago`;const f=Math.floor(u/24);return f<30?`${f}d ago`:Om(a)}function ki(a){const i=a.replace(/\/$/,"").split("/");return i[i.length-1]||a}function a0(a){const i=new Map;for(const o of a)i.set(o,r0(o));return i}function r0(a){if(a.length<=26)return a;const o=a.split("/");if(o.length<=2)return a;const u=o[0],f=o.slice(-2).join("/"),m=`${u}/…/${f}`;if(m.length<=26)return m;const p=o[o.length-1];return`${u}/…/${p}`}function i0(a){const i=a.gitBranch&&a.gitBranch!=="main"&&a.gitBranch!=="master"?a.gitBranch:void 0;return a.title&&a.title!==a.slug?{primary:a.title,branch:i}:{primary:a.slug,branch:i}}function sm(a){let i=a;return i=i.replace(/<\/?[a-z][a-z0-9-]*>/gi,""),i=i.replace(/Caveat:\s*The messages below were generated by the user while running local commands\.[^.]*/g,""),i=i.replace(/DO NOT respond to these messages[^.]*/g,""),i=i.replace(/^\/\w+\s*/g,""),i=i.replace(/\s+/g," ").trim(),i}const Zn="__all__";function s0(){const[a,i]=j.useState([]),[o,u]=j.useState(!0),[f,m]=j.useState(null),[p,v]=j.useState(Zn),[h,x]=j.useState(""),[y,b]=j.useState(null),[T,R]=j.useState(null),[S,w]=j.useState(null),[A,H]=j.useState(""),M=j.useRef(null),[Y,F]=j.useState(new Set),[P,ee]=j.useState(!1),I=j.useCallback(()=>{u(!0),m(null),Promise.all([fetch("/api/sources").then(_=>{if(!_.ok)throw new Error("Failed to load sessions");return _.json()}),fetch("/api/archived").then(_=>_.ok?_.json():{slugs:[]})]).then(([_,V])=>{i(_.sessions),F(new Set(V.slugs))}).catch(_=>m(_.message)).finally(()=>u(!1))},[]),re=async _=>{const V=Y.has(_);await fetch(`/api/archive/${_}`,{method:V?"DELETE":"POST"}),F(E=>{const B=new Set(E);return V?B.delete(_):B.add(_),B})};j.useEffect(()=>{I()},[I]),j.useEffect(()=>{S&&M.current?.focus()},[S]);const ue=async(_,V)=>{if(!(await fetch(`/api/sessions/${encodeURIComponent(_)}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:V})})).ok)throw new Error("Failed to update title");i(B=>B.map(Z=>Z.slug===_&&Z.replay?{...Z,replay:{...Z.replay,title:V||void 0}}:Z))},q=_=>{w({slug:_.slug,defaultTitle:_.title||_.slug}),H(_.title||_.slug)},J=async()=>{if(!S)return;const _=a.find(V=>V.slug===S.slug);if(_){w(null),b(_.slug),R(null);try{const V=await fetch("/api/generate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:_.provider,filePaths:_.filePaths,toolPaths:_.toolPaths,title:A.trim()||void 0,sessionSlug:_.slug,sessionProject:_.project})}),E=await V.json();if(!V.ok)throw new Error(E.error||"Generation failed");fu({view:null,session:E.slug})}catch(V){R(V.message)}finally{b(null)}}},ie=a.filter(_=>Y.has(_.slug)).length,ve=P?a:a.filter(_=>!Y.has(_.slug)),de=new Map;for(const _ of ve)de.has(_.project)||de.set(_.project,[]),de.get(_.project).push(_);const be=[...de.entries()].sort((_,V)=>{const E=_[1][0]?.timestamp||"";return(V[1][0]?.timestamp||"").localeCompare(E)}),L=a0(be.map(([_])=>_)),W=p===Zn?ve:de.get(p)||[],le=h?W.filter(_=>_.slug.toLowerCase().includes(h.toLowerCase())||_.firstPrompt.toLowerCase().includes(h.toLowerCase())||(_.title||"").toLowerCase().includes(h.toLowerCase())||(_.gitBranch||"").toLowerCase().includes(h.toLowerCase())):W;return o?c.jsx("div",{className:"flex-1 flex items-center justify-center",children:c.jsx("div",{className:"text-terminal-dim font-mono text-sm animate-pulse",children:"Scanning for AI sessions..."})}):f?c.jsx("div",{className:"flex-1 flex items-center justify-center",children:c.jsxs("div",{className:"text-center space-y-3",children:[c.jsx("div",{className:"text-terminal-red font-mono text-sm",children:f}),c.jsx("button",{onClick:I,className:"px-3 py-1.5 text-xs font-mono rounded-md bg-terminal-surface text-terminal-dim border border-terminal-border hover:text-terminal-text transition-colors",children:"Retry"})]})}):a.length===0?c.jsx("div",{className:"flex-1 flex items-center justify-center",children:c.jsxs("div",{className:"text-center space-y-2",children:[c.jsx("div",{className:"text-terminal-dim font-mono text-sm",children:"No AI sessions found"}),c.jsx("div",{className:"text-terminal-dim/50 font-mono text-xs",children:"Start a coding session with Claude Code or Cursor, then come back here"})]})}):c.jsxs("div",{className:"flex flex-1 min-h-0",children:[c.jsxs("div",{className:"hidden md:flex w-56 shrink-0 flex-col border-r border-terminal-border/50 bg-terminal-bg",children:[c.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-terminal-border/30",children:[c.jsx("span",{className:"text-[11px] font-mono text-terminal-dim uppercase tracking-wider",children:"Projects"}),c.jsx("button",{onClick:I,className:"p-1 text-terminal-dim hover:text-terminal-text transition-colors",title:"Refresh",children:c.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[c.jsx("path",{d:"M2.5 8a5.5 5.5 0 019.3-4M13.5 8a5.5 5.5 0 01-9.3 4"}),c.jsx("path",{d:"M12.5 1v3h-3M3.5 15v-3h3"})]})})]}),c.jsxs("div",{className:"flex-1 overflow-y-auto",children:[c.jsxs("button",{onClick:()=>v(Zn),className:`w-full text-left px-3 py-2 text-xs font-mono transition-colors flex items-center justify-between ${p===Zn?"bg-terminal-green/10 text-terminal-green":"text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface/50"}`,children:[c.jsx("span",{children:"All projects"}),c.jsx("span",{className:"text-terminal-dim/50",children:a.length})]}),c.jsx("div",{className:"border-t border-terminal-border/20 my-1"}),be.map(([_,V])=>{const E=V.filter(ce=>ce.existingReplay).length,B=p===_,Z=L.get(_)||ki(_),K=V[0]?.projectExists!==!1,oe=V.some(ce=>ce.isGitRepo||ce.gitBranch);return c.jsxs("button",{onClick:()=>v(_),title:_,className:`w-full text-left px-3 py-2 transition-colors group ${B?"bg-terminal-green/10":"hover:bg-terminal-surface/50"} ${K?"":"opacity-50"}`,children:[c.jsxs("div",{className:"flex items-center justify-between gap-1",children:[c.jsxs("span",{className:`text-xs font-mono truncate flex items-center gap-1 ${B?"text-terminal-green":K?"text-terminal-text/80 group-hover:text-terminal-text":"text-terminal-dim"}`,children:[oe&&c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"currentColor",className:"shrink-0 opacity-50",children:c.jsx("path",{fillRule:"evenodd",d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})}),Z]}),c.jsx("span",{className:`text-[10px] font-mono shrink-0 ${B?"text-terminal-green/60":"text-terminal-dim/50"}`,children:V.length})]}),c.jsxs("div",{className:"flex items-center gap-1.5 mt-0.5",children:[c.jsx("span",{className:"text-[10px] font-mono text-terminal-dim/40 truncate",children:im(V[0]?.timestamp||"")}),E>0&&c.jsxs("span",{className:"text-[9px] font-mono text-green-400/50",children:[E," ",E===1?"replay":"replays"]})]})]},_)})]})]}),c.jsxs("div",{className:"flex-1 flex flex-col min-h-0 min-w-0",children:[c.jsx("div",{className:"md:hidden px-3 pt-3",children:c.jsxs("select",{value:p,onChange:_=>v(_.target.value),className:"w-full bg-terminal-surface border border-terminal-border rounded-lg px-3 py-2 text-sm font-mono text-terminal-text outline-none",children:[c.jsxs("option",{value:Zn,children:["All projects (",a.length,")"]}),be.map(([_,V])=>c.jsxs("option",{value:_,children:[L.get(_)||ki(_)," (",V.length,")"]},_))]})}),c.jsxs("div",{className:"px-4 pt-3 pb-2 space-y-2 shrink-0",children:[c.jsxs("div",{className:"hidden md:flex items-center justify-between",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx("span",{className:"text-sm font-mono text-terminal-text truncate block",children:p===Zn?"All projects":L.get(p)||ki(p)}),p!==Zn&&c.jsx("span",{className:"text-[11px] font-mono text-terminal-dim/40 truncate block",children:p})]}),c.jsxs("span",{className:"text-xs font-mono text-terminal-dim",children:[le.length," session",le.length!==1?"s":""]})]}),c.jsxs("div",{className:"flex gap-2 items-center",children:[c.jsxs("div",{className:"relative flex-1",children:[c.jsxs("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-terminal-dim",width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[c.jsx("circle",{cx:"7",cy:"7",r:"5"}),c.jsx("path",{d:"M11 11l3.5 3.5"})]}),c.jsx("input",{value:h,onChange:_=>x(_.target.value),placeholder:"Filter by branch, title, prompt...",className:"w-full bg-terminal-surface border border-terminal-border rounded-lg pl-9 pr-3 py-2 text-sm font-mono text-terminal-text placeholder:text-terminal-dim/50 outline-none focus:border-terminal-green/50"})]}),ie>0&&c.jsx("button",{onClick:()=>ee(!P),className:`shrink-0 px-2.5 py-2 text-[11px] font-mono rounded-lg border transition-colors ${P?"bg-yellow-500/10 text-yellow-400 border-yellow-500/30":"text-terminal-dim border-terminal-border hover:text-terminal-text"}`,title:P?"Hide archived":`View all (${ie} archived)`,children:P?"Active":"View all"})]})]}),T&&c.jsxs("div",{className:"mx-4 mb-2 flex items-center gap-2 bg-red-500/10 border border-red-500/30 rounded-lg px-3 py-2 text-xs font-mono text-red-400 shrink-0",children:[c.jsx("span",{children:T}),c.jsx("button",{onClick:()=>R(null),className:"ml-auto text-red-400/60 hover:text-red-400",children:"×"})]}),S&&c.jsxs("div",{className:"mx-4 mb-2 bg-terminal-surface border border-terminal-green/30 rounded-lg px-4 py-3 space-y-3 shrink-0",children:[c.jsxs("div",{className:"text-xs font-mono text-terminal-dim",children:["Title for ",c.jsx("span",{className:"text-terminal-text",children:S.slug})]}),c.jsxs("form",{onSubmit:_=>{_.preventDefault(),J()},className:"flex gap-2",children:[c.jsx("input",{ref:M,value:A,onChange:_=>H(_.target.value),className:"flex-1 bg-terminal-bg border border-terminal-border rounded-lg px-3 py-2 text-sm font-mono text-terminal-text placeholder:text-terminal-dim/50 outline-none focus:border-terminal-green/50",placeholder:S.defaultTitle,onKeyDown:_=>{_.key==="Escape"&&w(null)}}),c.jsx("button",{type:"submit",className:"px-4 py-2 text-xs font-mono rounded-lg bg-terminal-green/10 text-terminal-green border border-terminal-green/20 hover:bg-terminal-green/20 transition-colors",children:"Generate"}),c.jsx("button",{type:"button",onClick:()=>w(null),className:"px-3 py-2 text-xs font-mono rounded-lg text-terminal-dim hover:text-terminal-text transition-colors",children:"Cancel"})]})]}),c.jsx("div",{className:"flex-1 overflow-y-auto",children:le.length===0?c.jsx("div",{className:"text-center py-12 text-terminal-dim font-mono text-sm",children:h?"No sessions match your filter":"No sessions in this project"}):c.jsx("div",{className:"space-y-2 px-3 py-2",children:le.map(_=>{if(_.replay){const Z=Y.has(_.slug);return c.jsx(Dm,{summary:_.replay,onOpen:()=>fu({view:null,session:_.existingReplay}),onTitleSave:ue,onRegenerate:()=>q(_),isRegenerating:y===_.slug,onArchive:()=>re(_.slug),isArchived:Z},`${_.provider}-${_.slug}`)}const V=i0(_),E=(_.prompts||[]).map(Z=>sm(Z)).filter(Z=>Z.length>0);if(E.length===0&&_.firstPrompt){const Z=sm(_.firstPrompt);Z&&E.push(Z)}const B=Y.has(_.slug);return c.jsxs("div",{className:`bg-terminal-surface/30 border border-terminal-border/30 rounded-lg px-4 py-3 hover:bg-terminal-surface/50 transition-colors space-y-1.5 ${B?"opacity-50":""}`,children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-sm font-mono text-terminal-text truncate",children:V.primary}),V.branch&&c.jsxs("span",{className:"text-[10px] font-mono px-1.5 py-0.5 rounded border border-terminal-border/40 text-terminal-dim/70 shrink-0 flex items-center gap-0.5",children:[c.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[c.jsx("circle",{cx:"5",cy:"4",r:"2"}),c.jsx("circle",{cx:"11",cy:"12",r:"2"}),c.jsx("path",{d:"M5 6v4c0 1.1.9 2 2 2h2"})]}),V.branch]}),c.jsxs("div",{className:"flex items-center gap-1.5 shrink-0 ml-auto",children:[c.jsx("span",{className:"text-[11px] font-mono text-terminal-dim/40",children:im(_.timestamp)}),c.jsx("button",{onClick:()=>q(_),disabled:y===_.slug,className:"px-3 py-1 text-xs font-mono rounded-md bg-terminal-green/10 text-terminal-green border border-terminal-green/20 hover:bg-terminal-green/20 transition-colors disabled:opacity-50",children:y===_.slug?c.jsx("span",{className:"animate-pulse",children:"Generating..."}):"Generate"}),c.jsx("button",{onClick:()=>re(_.slug),className:"p-1 text-terminal-dim hover:text-terminal-text transition-colors",title:B?"Unarchive":"Archive",children:c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:c.jsx("path",{d:"M2 4h12v2H2zM3 6v7h10V6M6.5 8h3"})})})]})]}),E.map((Z,K)=>c.jsxs("div",{className:"flex gap-2 items-start",children:[c.jsx("span",{className:"text-[11px] text-terminal-green/60 shrink-0 mt-px select-none",children:">"}),c.jsx("p",{className:"text-[13px] text-terminal-text/60 line-clamp-1 leading-relaxed",children:Z})]},K)),c.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] font-mono text-terminal-dim/50 flex-wrap",children:[c.jsx(zm,{provider:_.provider}),p===Zn&&c.jsx("span",{className:"text-terminal-text/40",title:_.project,children:L.get(_.project)||ki(_.project)}),c.jsx("span",{children:t0(_.fileSize)}),_.filePaths.length>1&&c.jsxs("span",{children:[_.filePaths.length," parts"]}),_.hasSqlite&&c.jsx("span",{className:"text-green-400/60",children:"db"})]})]},`${_.provider}-${_.slug}`)})})})]})]})}function o0(){const[a,i]=j.useState([]),[o,u]=j.useState(!0),[f,m]=j.useState(!1),[p,v]=j.useState(null),[h,x]=j.useState(""),[y,b]=j.useState(null),[T,R]=j.useState(null),[S,w]=j.useState(new Set),[A,H]=j.useState(!1);j.useEffect(()=>{Promise.all([fetch("/api/sessions").then(q=>{if(!q.ok)throw new Error;return q.json()}),fetch("/api/archived").then(q=>q.ok?q.json():{slugs:[]})]).then(([q,J])=>{i(q),w(new Set(J.slugs)),m(!0)}).catch(()=>{m(!1)}).finally(()=>u(!1)),fetch("/api/gh-status").then(q=>q.json()).then(q=>v(q.available)).catch(()=>v(!1))},[]);const M=async q=>{const J=S.has(q);await fetch(`/api/archive/${q}`,{method:J?"DELETE":"POST"}),w(ie=>{const ve=new Set(ie);return J?ve.delete(q):ve.add(q),ve})},Y=async(q,J)=>{if(!(await fetch(`/api/sessions/${encodeURIComponent(q)}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:J})})).ok)throw new Error("Failed to update title");i(ve=>ve.map(de=>de.slug===q?{...de,title:J||void 0}:de))},F=q=>{fu({view:null,session:q})},P=async q=>{b(null);try{const J=await fetch(`/api/sessions/${encodeURIComponent(q)}`,{method:"DELETE"});if(!J.ok){const ie=await J.json().catch(()=>({}));b(ie.error||"Failed to delete session");return}i(ie=>ie.filter(ve=>ve.slug!==q))}catch{b("Failed to delete session")}},ee=async q=>{R(q);try{const J=await fetch(`/api/publish/gist?slug=${encodeURIComponent(q)}`,{method:"POST"});if(!J.ok){const ve=await J.json().catch(()=>({}));throw new Error(ve.error||"Publish failed")}const ie=await J.json();i(ve=>ve.map(de=>de.slug===q?{...de,gist:{gistId:ie.gistId,viewerUrl:ie.viewerUrl,updatedAt:new Date().toISOString(),outdated:!1}}:de))}catch(J){console.error("Gist publish error:",J.message)}finally{R(null)}},I=a.filter(q=>S.has(q.slug)).length,re=A?a:a.filter(q=>!S.has(q.slug)),ue=h?re.filter(q=>(q.title||"").toLowerCase().includes(h.toLowerCase())||q.slug.toLowerCase().includes(h.toLowerCase())||q.project.toLowerCase().includes(h.toLowerCase())||q.provider.toLowerCase().includes(h.toLowerCase())||(q.firstMessage||"").toLowerCase().includes(h.toLowerCase())):re;return o?c.jsx("div",{className:"flex-1 flex items-center justify-center py-12",children:c.jsx("div",{className:"text-terminal-dim font-mono text-sm animate-pulse",children:"Loading..."})}):c.jsxs("div",{className:"space-y-4",children:[c.jsx(l0,{}),f&&a.length>0&&c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"flex gap-2 items-center",children:[c.jsxs("div",{className:"relative flex-1",children:[c.jsxs("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-terminal-dim",width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[c.jsx("circle",{cx:"7",cy:"7",r:"5"}),c.jsx("path",{d:"M11 11l3.5 3.5"})]}),c.jsx("input",{value:h,onChange:q=>x(q.target.value),placeholder:"Filter replays...",className:"w-full bg-terminal-surface border border-terminal-border rounded-lg pl-9 pr-3 py-2 text-sm font-mono text-terminal-text placeholder:text-terminal-dim/50 outline-none focus:border-terminal-green/50"})]}),I>0&&c.jsx("button",{onClick:()=>H(!A),className:`shrink-0 px-2.5 py-2 text-[11px] font-mono rounded-lg border transition-colors ${A?"bg-yellow-500/10 text-yellow-400 border-yellow-500/30":"text-terminal-dim border-terminal-border hover:text-terminal-text"}`,title:A?"Hide archived":`View all (${I} archived)`,children:A?"Active":"View all"})]}),y&&c.jsxs("div",{className:"flex items-center gap-2 bg-red-500/10 border border-red-500/30 rounded-lg px-3 py-2 text-xs font-mono text-red-400",children:[c.jsx("span",{children:y}),c.jsx("button",{onClick:()=>b(null),className:"ml-auto text-red-400/60 hover:text-red-400",children:"×"})]}),c.jsxs("div",{className:"flex items-center gap-3 text-xs font-mono text-terminal-dim",children:[c.jsxs("span",{children:[ue.length," ",c.jsx("span",{className:"text-terminal-text/70",children:"local"})," replay",ue.length!==1?"s":""]}),h&&ue.length!==a.length&&c.jsxs("span",{className:"text-terminal-dim/50",children:["(of ",a.length," total)"]}),p===!0&&c.jsx("span",{className:"text-terminal-green/70",children:"gh authenticated"}),p===!1&&c.jsx("span",{className:"text-terminal-dim/50",children:"gh not available"})]}),c.jsx("div",{className:"space-y-2",children:ue.map(q=>{const J=S.has(q.slug);return c.jsx(Dm,{summary:q,onOpen:()=>F(q.slug),onTitleSave:Y,onDelete:()=>P(q.slug),onPublishGist:()=>ee(q.slug),onArchive:()=>M(q.slug),ghAvailable:p===!0,isPublishing:T===q.slug,isArchived:J},q.slug)})})]}),f&&a.length===0&&c.jsxs("div",{className:"text-center py-12 space-y-2",children:[c.jsx("div",{className:"text-terminal-dim font-mono text-sm",children:"No replays yet"}),c.jsx("div",{className:"text-terminal-dim/50 font-mono text-xs",children:"Go to the Sessions tab to generate your first replay"})]}),!f&&c.jsx("div",{className:"text-center py-8 space-y-2",children:c.jsxs("div",{className:"text-terminal-dim/50 font-mono text-xs",children:["Or run ",c.jsx("span",{className:"text-terminal-green",children:"npx vibe-replay"})," to create a replay from your AI coding sessions"]})})]})}function u0(){const a=!!window.__VIBE_REPLAY_EDITOR__,[i,o]=j.useState(a?"sessions":"replays");return c.jsxs("div",{className:"flex-1 flex flex-col min-h-0",children:[a&&c.jsxs("div",{className:"shrink-0 px-4 flex border-b border-terminal-border/50",children:[c.jsx("button",{onClick:()=>o("sessions"),className:`px-4 py-2 text-sm font-mono transition-colors ${i==="sessions"?"text-terminal-green border-b-2 border-terminal-green":"text-terminal-dim hover:text-terminal-text"}`,children:"Sessions"}),c.jsx("button",{onClick:()=>o("replays"),className:`px-4 py-2 text-sm font-mono transition-colors ${i==="replays"?"text-terminal-green border-b-2 border-terminal-green":"text-terminal-dim hover:text-terminal-text"}`,children:"Replays"})]}),i==="sessions"&&a?c.jsx(s0,{}):c.jsx("div",{className:"flex-1 overflow-auto",children:c.jsx("div",{className:"max-w-4xl mx-auto px-4 py-6 space-y-6",children:c.jsx(o0,{})})})]})}function c0(){const[a,i]=j.useState({status:"loading"}),o=j.useCallback(()=>{i({status:"loading"}),d0().then(u=>{i(u==="dashboard"?{status:"dashboard"}:{status:"ready",session:u.session,mode:u.mode,gistOwner:u.gistOwner})},u=>i({status:"error",message:String(u.message||u)}))},[]);return j.useEffect(()=>{o();const u=()=>o();return window.addEventListener("popstate",u),()=>window.removeEventListener("popstate",u)},[o]),a}function f0(){return!!window.__VIBE_REPLAY_EDITOR__}async function d0(){if(window.__VIBE_REPLAY_DATA__)return{session:window.__VIBE_REPLAY_DATA__,mode:"embedded"};if(f0()){const f=new URLSearchParams(window.location.search);if(f.get("view")==="dashboard")return"dashboard";const m=f.get("session");if(m){const p=await fetch(`/api/session?slug=${encodeURIComponent(m)}`);if(!p.ok)throw new Error(`Session not found: ${m}`);return{session:await p.json(),mode:"editor"}}return"dashboard"}const a=new URLSearchParams(window.location.search),i=a.get("gist");if(i){if(!/^[a-f0-9]{20,40}$/.test(i))throw new Error("Invalid gist ID");const{rawUrl:f,owner:m}=await m0(i),p=await om(f);return p0(i).catch(()=>{}),{session:p,mode:"readonly",gistOwner:m}}const o=a.get("url");if(o)return{session:await om(o),mode:"readonly"};const u=a.get("file");if(u){const f=await fetch(u);if(!f.ok)throw new Error(`Failed to load file: ${f.status}`);return{session:await f.json(),mode:"embedded"}}return"dashboard"}async function om(a){const i=await fetch(a);if(!i.ok)throw new Error(`Failed to fetch: ${i.status} ${i.statusText}`);const o=await i.text();if(o.trimStart().startsWith("{"))return JSON.parse(o);throw new Error("URL must point to a vibe-replay JSON replay file")}async function p0(a){await fetch("https://vibe-replay.com/api/replays",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({gist_id:a})})}async function m0(a){const i=await fetch(`https://api.github.com/gists/${a}`);if(!i.ok)throw new Error(`Gist not found: ${i.status}`);const o=await i.json(),u=o.files,f=Object.values(u).find(p=>p.filename.endsWith(".json"));if(!f)throw new Error("No JSON file found in gist");const m=o.owner?.login;return{rawUrl:f.raw_url,owner:m}}function h0(){const[a,i]=j.useState(()=>{const f=new URLSearchParams(window.location.search).get("theme");if(f==="light"||f==="dark")return f;const m=localStorage.getItem("vibe-replay-theme");return m==="light"||m==="dark"?m:"dark"});j.useEffect(()=>{const u=document.documentElement;u.classList.add("theme-transition"),u.classList.toggle("dark",a==="dark"),u.classList.toggle("light",a==="light"),localStorage.setItem("vibe-replay-theme",a);const f=setTimeout(()=>u.classList.remove("theme-transition"),300);return()=>clearTimeout(f)},[a]);const o=j.useCallback(()=>{i(u=>u==="dark"?"light":"dark")},[]);return{theme:a,toggleTheme:o}}const du="vibe-replay-view-prefs";function g0(){try{const a=localStorage.getItem(du);if(a)return{...um,...JSON.parse(a)}}catch{}return um}const um={hideThinking:!1,collapseAllTools:!1,promptsOnly:!1};function x0(){const[a,i]=j.useState(g0),o=j.useCallback((f,m)=>{i(p=>{const v={...p,[f]:m};return localStorage.setItem(du,JSON.stringify(v)),v})},[]),u=j.useCallback(f=>{i(m=>{const p={...m,[f]:!m[f]};return localStorage.setItem(du,JSON.stringify(p)),p})},[]);return{prefs:a,updatePref:o,togglePref:u}}function y0(a){if(!a)return"";const i=Math.floor(a/1e3);if(i<60)return`${i}s`;const o=Math.floor(i/60);return o<60?`${o}m ${i%60}s`:`${Math.floor(o/60)}h ${o%60}m`}function tu(a){const i=new URL(window.location.href);for(const[o,u]of Object.entries(a))u===null?i.searchParams.delete(o):i.searchParams.set(o,u);window.history.pushState({},"",i.toString()),window.dispatchEvent(new PopStateEvent("popstate"))}function b0(){const a=c0(),{theme:i,toggleTheme:o}=h0(),{prefs:u,togglePref:f}=x0(),m=a.status==="ready"?a.session:null,p=a.status==="ready"?a.mode:"embedded",v=a.status==="ready"?a.gistOwner:void 0,h=p==="editor",x=j.useMemo(()=>m?.scenes.some(A=>A.type==="thinking")??!1,[m]),[y,b]=j.useState(!1),T=j.useRef(null);if(j.useEffect(()=>{if(!y)return;const A=H=>{T.current&&!T.current.contains(H.target)&&b(!1)};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[y]),a.status==="loading")return c.jsx("div",{className:"h-screen bg-terminal-bg flex items-center justify-center",children:c.jsx("div",{className:"text-terminal-dim font-mono text-sm animate-pulse",children:"Loading session..."})});if(a.status==="error")return c.jsx("div",{className:"h-screen bg-terminal-bg flex items-center justify-center",children:c.jsxs("div",{className:"text-center space-y-2",children:[c.jsx("div",{className:"text-terminal-red font-mono text-sm",children:a.message}),c.jsx("div",{className:"text-terminal-dim font-mono text-xs",children:"Use ?gist=<id> or ?url=<replay-json-url> or embed via CLI"})]})});if(a.status==="dashboard")return c.jsxs("div",{className:"h-screen bg-terminal-bg flex flex-col overflow-hidden",children:[c.jsxs("header",{className:"border-b border-terminal-border/50 px-3 md:px-4 py-2 md:py-2.5 flex items-center justify-between shrink-0 bg-terminal-surface/30 safe-top",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("button",{onClick:()=>tu({view:null,session:null}),className:"text-sm font-mono font-bold bg-gradient-to-r from-[#3fb950] to-[#58a6ff] bg-clip-text text-transparent hover:opacity-80 transition-opacity",children:"vibe-replay"}),c.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] font-mono px-1.5 py-0.5 rounded-full border border-terminal-green/30 bg-terminal-green/10 text-terminal-green",children:[c.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-terminal-green animate-pulse"}),"Local"]}),c.jsx("span",{className:"text-terminal-border/60 text-sm select-none",children:"|"}),c.jsx("span",{className:"text-sm font-mono text-terminal-text/80",children:"Dashboard"})]}),c.jsx("button",{onClick:o,className:"h-7 w-7 flex items-center justify-center rounded-md border border-terminal-border/60 bg-terminal-surface text-terminal-dim hover:text-terminal-text text-xs transition-colors",children:i==="dark"?"☾":"☀"})]}),c.jsx(u0,{})]});const{meta:R}=m,S=y0(R.stats.durationMs),w=h&&new URLSearchParams(window.location.search).has("session");return c.jsxs("div",{className:"h-screen bg-terminal-bg flex flex-col overflow-hidden",children:[c.jsxs("header",{className:"border-b border-terminal-border/50 px-3 md:px-4 py-2 md:py-2.5 flex items-center justify-between shrink-0 bg-terminal-surface/30 safe-top",children:[c.jsxs("div",{className:"flex items-center gap-2 md:gap-3 min-w-0",children:[c.jsx("a",{href:"https://vibe-replay.com",target:"_blank",rel:"noopener noreferrer",className:"text-sm font-mono font-bold shrink-0 hover:opacity-80 transition-opacity bg-gradient-to-r from-[#3fb950] to-[#58a6ff] bg-clip-text text-transparent",children:"vibe-replay"}),h&&c.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] font-mono px-1.5 py-0.5 rounded-full border border-terminal-green/30 bg-terminal-green/10 text-terminal-green",children:[c.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-terminal-green animate-pulse"}),"Local"]}),w&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-terminal-border/60 text-sm select-none",children:"|"}),c.jsxs("button",{onClick:()=>tu({view:"dashboard",session:null}),className:"flex items-center gap-0.5 text-sm font-mono text-terminal-text/80 hover:text-terminal-text transition-colors",children:[c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M10 3L5 8l5 5"})}),"Dashboard"]})]}),R.title&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"hidden md:inline text-terminal-border/60 text-sm select-none",children:"|"}),c.jsx("span",{className:"hidden md:inline text-terminal-text/80 text-xs font-mono truncate max-w-[300px]",title:R.project,children:R.title})]}),c.jsxs("div",{className:"hidden sm:flex items-center gap-1.5 text-xs font-mono text-terminal-dim",children:[v&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-terminal-border",children:"·"}),c.jsxs("a",{href:`https://github.com/${v}`,target:"_blank",rel:"noopener noreferrer",className:"text-terminal-text/60 hover:text-terminal-text transition-colors",children:["@",v]})]}),R.model&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-terminal-border",children:"·"}),c.jsx("span",{className:"text-terminal-text/60",children:R.model})]}),S&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-terminal-border",children:"·"}),c.jsx("span",{children:S})]})]})]}),c.jsxs("div",{className:"flex items-center gap-1.5 md:gap-2 shrink-0",children:[h&&!w&&c.jsxs("button",{onClick:()=>tu({view:"dashboard"}),className:"h-7 px-2.5 flex items-center gap-1.5 rounded-md border border-terminal-border/60 bg-terminal-surface text-terminal-dim hover:text-terminal-text text-xs font-mono transition-colors",title:"All replays",children:[c.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[c.jsx("rect",{x:"1",y:"1",width:"6",height:"6",rx:"1"}),c.jsx("rect",{x:"9",y:"1",width:"6",height:"6",rx:"1"}),c.jsx("rect",{x:"1",y:"9",width:"6",height:"6",rx:"1"}),c.jsx("rect",{x:"9",y:"9",width:"6",height:"6",rx:"1"})]}),c.jsx("span",{className:"hidden sm:inline",children:"Dashboard"})]}),c.jsxs("div",{className:"flex items-center h-7 rounded-md overflow-hidden border border-terminal-border/60",children:[c.jsx("button",{onClick:()=>{u.promptsOnly&&f("promptsOnly")},className:`h-full px-2.5 text-xs font-mono transition-colors ${u.promptsOnly?"bg-terminal-surface text-terminal-dim hover:text-terminal-text":"bg-terminal-green/15 text-terminal-green"}`,children:"All"}),c.jsx("button",{onClick:()=>{u.promptsOnly||f("promptsOnly")},className:`h-full px-2.5 text-xs font-mono transition-colors ${u.promptsOnly?"bg-terminal-green/15 text-terminal-green":"bg-terminal-surface text-terminal-dim hover:text-terminal-text"}`,children:"Prompts"})]}),c.jsxs("div",{ref:T,className:"relative",children:[c.jsx("button",{onClick:()=>b(A=>!A),className:`h-7 w-7 flex items-center justify-center rounded-md border transition-colors text-xs ${y?"bg-terminal-green/15 text-terminal-green border-terminal-green/30":u.collapseAllTools||u.hideThinking?"bg-terminal-orange/10 text-terminal-orange border-terminal-orange/30":"bg-terminal-surface text-terminal-dim border-terminal-border/60 hover:text-terminal-text"}`,title:"Settings",children:c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[c.jsx("line",{x1:"2",y1:"4",x2:"14",y2:"4"}),c.jsx("line",{x1:"2",y1:"8",x2:"14",y2:"8"}),c.jsx("line",{x1:"2",y1:"12",x2:"14",y2:"12"}),c.jsx("circle",{cx:"5",cy:"4",r:"1.5",fill:"currentColor"}),c.jsx("circle",{cx:"10",cy:"8",r:"1.5",fill:"currentColor"}),c.jsx("circle",{cx:"6",cy:"12",r:"1.5",fill:"currentColor"})]})}),y&&c.jsxs("div",{className:"absolute right-0 top-full mt-1.5 w-48 bg-terminal-bg border border-terminal-border rounded-lg shadow-xl z-50 py-1.5 overflow-hidden",children:[!u.promptsOnly&&c.jsxs(c.Fragment,{children:[c.jsxs("button",{onClick:()=>f("collapseAllTools"),className:"w-full text-left px-3 py-2 text-xs font-mono text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface/50 transition-colors flex items-center gap-2",children:[c.jsx("span",{className:`w-3.5 h-3.5 rounded border flex items-center justify-center text-[10px] ${u.collapseAllTools?"bg-terminal-orange/20 border-terminal-orange/50 text-terminal-orange":"border-terminal-border"}`,children:u.collapseAllTools?"✓":""}),"Collapse Tools"]}),x&&c.jsxs("button",{onClick:()=>f("hideThinking"),className:"w-full text-left px-3 py-2 text-xs font-mono text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface/50 transition-colors flex items-center gap-2",children:[c.jsx("span",{className:`w-3.5 h-3.5 rounded border flex items-center justify-center text-[10px] ${u.hideThinking?"bg-terminal-purple/20 border-terminal-purple/50 text-terminal-purple":"border-terminal-border"}`,children:u.hideThinking?"✓":""}),"Hide Thinking"]}),c.jsx("div",{className:"border-t border-terminal-border/40 my-1.5"})]}),c.jsxs("button",{onClick:()=>{o(),b(!1)},className:"w-full text-left px-3 py-2 text-xs font-mono text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface/50 transition-colors flex items-center gap-2",children:[c.jsx("span",{className:"w-3.5 text-center",children:i==="dark"?"☾":"☀"}),i==="dark"?"Light Mode":"Dark Mode"]})]})]})]})]}),c.jsx(Wb,{session:m,viewPrefs:u,viewerMode:p})]})}mx.createRoot(document.getElementById("root")).render(c.jsx(ix.StrictMode,{children:c.jsx(b0,{})}));</script>
145
- <style rel="stylesheet" crossorigin>*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{scrollbar-width:thin;scrollbar-color:var(--border) var(--bg)}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:var(--bg)}::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.-right-0\.5{right:-.125rem}.-right-2{right:-.5rem}.-right-3{right:-.75rem}.-top-0\.5{top:-.125rem}.bottom-0{bottom:0}.bottom-\[72px\]{bottom:72px}.left-0{left:0}.left-1\/2{left:50%}.left-3{left:.75rem}.right-0{right:0}.right-3{right:.75rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-3{top:.75rem}.top-full{top:100%}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.\!m-0{margin:0!important}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-1\.5{margin-top:.375rem;margin-bottom:.375rem}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.ml-1\.5{margin-left:.375rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-auto{margin-left:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-6{margin-top:1.5rem}.mt-px{margin-top:1px}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-12{height:3rem}.h-2{height:.5rem}.h-3\.5{height:.875rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-\[65vh\]{height:65vh}.h-full{height:100%}.h-screen{height:100vh}.max-h-\[200px\]{max-height:200px}.max-h-\[300px\]{max-height:300px}.max-h-\[4\.5em\]{max-height:4.5em}.max-h-\[400px\]{max-height:400px}.max-h-\[50vh\]{max-height:50vh}.min-h-0{min-height:0px}.min-h-screen{min-height:100vh}.w-0\.5{width:.125rem}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-20{width:5rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-48{width:12rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-\[300px\]{max-width:300px}.max-w-\[400px\]{max-width:400px}.max-w-lg{max-width:32rem}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-px{gap:1px}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.border{border-width:1px}.border-2{border-width:2px}.border-x{border-left-width:1px;border-right-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-amber-500\/30{border-color:#f59e0b4d}.border-blue-500\/30{border-color:#3b82f64d}.border-gray-500\/30{border-color:#6b72804d}.border-purple-500\/30{border-color:#a855f74d}.border-red-500\/20{border-color:#ef444433}.border-red-500\/30{border-color:#ef44444d}.border-terminal-blue{border-color:var(--blue)}.border-terminal-border{border-color:var(--border)}.border-terminal-dim{border-color:var(--dim)}.border-terminal-green{border-color:var(--green)}.border-transparent{border-color:transparent}.border-yellow-500\/30{border-color:#eab3084d}.border-l-terminal-blue{border-left-color:var(--blue)}.border-l-terminal-purple{border-left-color:var(--purple)}.\!bg-transparent{background-color:transparent!important}.bg-amber-500\/15{background-color:#f59e0b26}.bg-black\/40{background-color:#0006}.bg-black\/50{background-color:#00000080}.bg-blue-500\/15{background-color:#3b82f626}.bg-gray-500\/15{background-color:#6b728026}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-purple-500\/15{background-color:#a855f726}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-500\/10{background-color:#ef44441a}.bg-terminal-bg{background-color:var(--bg)}.bg-terminal-blue{background-color:var(--blue)}.bg-terminal-border{background-color:var(--border)}.bg-terminal-green{background-color:var(--green)}.bg-terminal-orange{background-color:var(--orange)}.bg-terminal-surface{background-color:var(--surface)}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-yellow-500\/10{background-color:#eab3081a}.bg-yellow-500\/15{background-color:#eab30826}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-\[\#3fb950\]{--tw-gradient-from: #3fb950 var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 185 80 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-terminal-bg{--tw-gradient-from: var(--bg) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-transparent{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-\[\#58a6ff\]{--tw-gradient-to: #58a6ff var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-px{padding-top:1px;padding-bottom:1px}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pl-9{padding-left:2.25rem}.pr-3{padding-right:.75rem}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-3{padding-top:.75rem}.pt-\[8vh\]{padding-top:8vh}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.text-\[9px\]{font-size:9px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-5{line-height:1.25rem}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-green-400\/50{color:#4ade8080}.text-green-400\/60{color:#4ade8099}.text-purple-400{--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-red-400\/60{color:#f8717199}.text-terminal-blue{color:var(--blue)}.text-terminal-border{color:var(--border)}.text-terminal-dim{color:var(--dim)}.text-terminal-green{color:var(--green)}.text-terminal-orange{color:var(--orange)}.text-terminal-purple{color:var(--purple)}.text-terminal-red{color:var(--red)}.text-terminal-text{color:var(--text)}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.placeholder-terminal-dim::-moz-placeholder{color:var(--dim)}.placeholder-terminal-dim::placeholder{color:var(--dim)}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-white\/50{--tw-shadow-color: rgb(255 255 255 / .5);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[left\]{transition-property:left;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}:root,.dark{--bg: #0d1117;--surface: #161b22;--border: #30363d;--text: #e6edf3;--dim: #8b949e;--green: #3fb950;--blue: #58a6ff;--orange: #d29922;--red: #f85149;--purple: #bc8cff}.light{--bg: #ffffff;--surface: #f6f8fa;--border: #d0d7de;--text: #1f2328;--dim: #656d76;--green: #1a7f37;--blue: #0969da;--orange: #9a6700;--red: #cf222e;--purple: #8250df}html.theme-transition,html.theme-transition *,html.theme-transition *:before,html.theme-transition *:after{transition:background-color .25s ease,border-color .25s ease,color .25s ease!important}button,[role=button]{-webkit-tap-highlight-color:transparent}@supports (padding: env(safe-area-inset-top)){.safe-top{padding-top:env(safe-area-inset-top)}.safe-bottom{padding-bottom:env(safe-area-inset-bottom)}}@keyframes blink{0%,to{opacity:1}50%{opacity:0}}.typing-cursor:after{content:"█";animation:blink 1s step-end infinite;color:var(--green)}@keyframes fade-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.scene-enter{animation:fade-in .3s ease-out}@keyframes pulse-border{0%,to{border-color:#d299224d}50%{border-color:#d2992299}}.pause-overlay{animation:pulse-border 2s ease-in-out infinite}@keyframes jump-target-flash{0%{box-shadow:0 0 #3fb95000;outline-color:#3fb95000}30%{box-shadow:0 0 0 3px #3fb95040;outline-color:#3fb95099}to{box-shadow:0 0 #3fb95000;outline-color:#3fb95000}}.jump-target-flash{outline:1px solid transparent;animation:jump-target-flash .85s ease-out}@keyframes nav-focus-pulse{0%,to{transform:translateY(0)}50%{transform:translateY(-1px)}}.scene-nav-focused{animation:nav-focus-pulse .9s ease-in-out 2}@keyframes landing-glow{0%,to{box-shadow:0 0 #3fb95000}50%{box-shadow:0 0 20px 2px #3fb95026}}.landing-pulse{animation:landing-glow 2.5s ease-in-out infinite}.minimap-item{transition:background-color .15s,border-color .15s}.prose-terminal{line-height:1.6}.prose-terminal p{margin:.5em 0}.prose-terminal code{background:var(--surface);padding:.15em .4em;border-radius:4px;font-size:.9em}.prose-terminal pre{background:var(--surface);padding:.75em 1em;border-radius:6px;overflow-x:auto;margin:.5em 0}.prose-terminal pre code{background:none;padding:0}.prose-terminal ul,.prose-terminal ol{padding-left:1.5em;margin:.5em 0}.prose-terminal li{margin:.25em 0}.prose-terminal h1,.prose-terminal h2,.prose-terminal h3{margin:.75em 0 .5em;font-weight:600}.prose-terminal blockquote{border-left:3px solid var(--border);padding-left:1em;color:var(--dim);margin:.5em 0}.prose-terminal a{color:var(--blue);text-decoration:underline}.prose-terminal table{border-collapse:collapse;margin:.5em 0}.prose-terminal th,.prose-terminal td{border:1px solid var(--border);padding:.4em .8em}.hover\:border-terminal-border:hover{border-color:var(--border)}.hover\:bg-purple-500\/10:hover{background-color:#a855f71a}.hover\:bg-purple-500\/25:hover{background-color:#a855f740}.hover\:bg-red-500\/10:hover{background-color:#ef44441a}.hover\:bg-red-500\/20:hover{background-color:#ef444433}.hover\:bg-terminal-surface:hover{background-color:var(--surface)}.hover\:bg-yellow-500\/25:hover{background-color:#eab30840}.hover\:text-purple-400:hover{--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1))}.hover\:text-red-400:hover{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.hover\:text-terminal-blue:hover{color:var(--blue)}.hover\:text-terminal-green:hover{color:var(--green)}.hover\:text-terminal-red:hover{color:var(--red)}.hover\:text-terminal-text:hover{color:var(--text)}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-80:hover{opacity:.8}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group\/ref:hover .group-hover\/ref\:text-terminal-text,.group:hover .group-hover\:text-terminal-text{color:var(--text)}.group\/batch:hover .group-hover\/batch\:opacity-100,.group\/scene:hover .group-hover\/scene\:opacity-100,.group:hover .group-hover\:opacity-100{opacity:1}.dark\:bg-green-900\/30:is(.dark *){background-color:#14532d4d}.dark\:bg-red-900\/30:is(.dark *){background-color:#7f1d1d4d}@media(min-width:640px){.sm\:mx-0{margin-left:0;margin-right:0}.sm\:inline{display:inline}.sm\:flex{display:flex}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:pt-\[15vh\]{padding-top:15vh}.sm\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media(min-width:768px){.md\:mt-8{margin-top:2rem}.md\:block{display:block}.md\:inline{display:inline}.md\:flex{display:flex}.md\:hidden{display:none}.md\:gap-2{gap:.5rem}.md\:gap-3{gap:.75rem}.md\:space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.md\:space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.md\:px-2\.5{padding-left:.625rem;padding-right:.625rem}.md\:px-4{padding-left:1rem;padding-right:1rem}.md\:py-1{padding-top:.25rem;padding-bottom:.25rem}.md\:py-2\.5{padding-top:.625rem;padding-bottom:.625rem}}@media(min-width:1024px){.lg\:inline-flex{display:inline-flex}}</style>
138
+ */const Xb=a=>{const s=new MutationObserver(a);return s.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>s.disconnect()},Qb=()=>document.documentElement.classList.contains("dark");function Vb(a,s){if(!a&&s)return s.split(`
139
+ `).map(f=>({type:"add",content:f}));const u=Uy(a,s),o=[];for(const f of u){const m=f.value.replace(/\n$/,"").split(`
140
+ `),p=f.added?"add":f.removed?"remove":"context";for(const v of m)o.push({type:p,content:v})}return o}function Fb(a){const s=a.split(".").pop()?.toLowerCase()||"";return{ts:"typescript",tsx:"tsx",js:"javascript",jsx:"jsx",py:"python",rs:"rust",go:"go",rb:"ruby",java:"java",css:"css",html:"html",json:"json",md:"markdown",yaml:"yaml",yml:"yaml",toml:"toml",sh:"bash",zsh:"bash",bash:"bash"}[s]||"text"}const Jb=T.memo(function({toolName:s,filePath:u,oldContent:o,newContent:f,isActive:m}){const p=T.useMemo(()=>Vb(o,f),[o,f]),v=Fb(u),h=T.useSyncExternalStore(Xb,Qb),x=!o;return c.jsxs("div",{className:"bg-terminal-surface rounded-xl overflow-hidden shadow-layer-sm",children:[c.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-terminal-surface",children:[c.jsx("span",{className:"text-xs font-mono font-bold text-terminal-orange",children:s}),c.jsx("span",{className:"text-xs font-mono text-terminal-blue truncate",children:u}),x&&c.jsx("span",{className:"text-xs px-1.5 py-0.5 rounded bg-terminal-green/20 text-terminal-green",children:"new"})]}),c.jsx("div",{className:"overflow-x-auto max-h-[400px] overflow-y-auto",children:c.jsx(Zb,{theme:h?fo.nightOwl:fo.nightOwlLight,code:p.map(y=>y.content).join(`
141
+ `),language:v,children:({tokens:y,getLineProps:b,getTokenProps:A})=>c.jsx("pre",{className:"text-xs font-mono !bg-transparent !m-0 p-0",children:y.map((z,S)=>{const N=p[S];if(!N)return null;const C=N.type==="add"?"bg-green-100 dark:bg-green-900/30":N.type==="remove"?"bg-red-100 dark:bg-red-900/30":"",H=N.type==="add"?"+":N.type==="remove"?"-":" ",O=N.type==="add"?"text-terminal-green":N.type==="remove"?"text-terminal-red":"text-terminal-dim";return c.jsxs("div",{...b({line:z}),className:`flex ${C} px-3 leading-5`,children:[c.jsx("span",{className:`select-none w-4 shrink-0 ${O}`,children:H}),c.jsx("span",{children:z.map((G,F)=>c.jsx("span",{...A({token:G})},F))})]},S)})})})})]})});function lp(a){switch(a){case"Read":return"📄";case"Write":return"✏️";case"Edit":return"✂️";case"Bash":return"$";case"Glob":return"🔍";case"Grep":return"🔎";case"Agent":return"🤖";default:return"⚙️"}}const Kb=T.memo(function({scene:s,isActive:u,forceCollapse:o}){const[f,m]=T.useState(!1);return o?c.jsxs("div",{className:"flex items-center gap-2 px-3 py-1 text-xs font-mono text-terminal-dim",children:[c.jsx("span",{children:lp(s.toolName)}),c.jsx("span",{className:"text-terminal-orange font-bold",children:s.toolName}),c.jsx("span",{className:"truncate",children:ap(s.toolName,s.input)})]}):s.bashOutput?c.jsx(Dy,{command:s.bashOutput.command,stdout:s.bashOutput.stdout,isActive:u}):s.diff?c.jsx(Jb,{toolName:s.toolName,filePath:s.diff.filePath,oldContent:s.diff.oldContent,newContent:s.diff.newContent,isActive:u}):c.jsx("div",{children:c.jsxs("div",{className:"bg-terminal-surface rounded-xl overflow-hidden shadow-layer-sm",children:[c.jsxs("button",{onClick:()=>m(!f),className:"w-full flex items-center gap-2 px-3 py-2 bg-terminal-surface hover:bg-terminal-surface-hover transition-colors duration-200 ease-material text-left",children:[c.jsx("span",{className:"text-xs font-mono",children:lp(s.toolName)}),c.jsx("span",{className:"text-xs font-mono font-bold text-terminal-orange",children:s.toolName}),c.jsx("span",{className:"text-xs text-terminal-dim font-mono truncate flex-1",children:ap(s.toolName,s.input)}),c.jsx("span",{className:`text-xs text-terminal-dim transition-transform ${f?"rotate-90":""}`,children:"▶"})]}),f&&c.jsxs("div",{className:"border-t border-terminal-border-subtle",children:[c.jsxs("div",{className:"px-3 py-2",children:[c.jsx("div",{className:"text-xs text-terminal-dim font-mono mb-1",children:"Input:"}),c.jsx("pre",{className:"text-xs text-terminal-text font-mono whitespace-pre-wrap break-words max-h-[200px] overflow-y-auto",children:JSON.stringify(s.input,null,2)})]}),s.result&&c.jsxs("div",{className:"px-3 py-2 border-t border-terminal-border-subtle",children:[c.jsx("div",{className:"text-xs text-terminal-dim font-mono mb-1",children:"Result:"}),c.jsx("pre",{className:"text-xs text-terminal-text font-mono whitespace-pre-wrap break-words max-h-[200px] overflow-y-auto",children:s.result})]}),s.images&&s.images.length>0&&c.jsx("div",{className:"px-3 py-2 border-t border-terminal-border-subtle",children:c.jsx("div",{className:"flex gap-2 flex-wrap",children:s.images.map((p,v)=>c.jsx("img",{src:p,alt:`Screenshot ${v+1}`,className:"max-w-[400px] max-h-[300px] rounded-md object-contain"},v))})})]})]})})});function ap(a,s){switch(a){case"Read":return s.file_path||"";case"Glob":return s.pattern||"";case"Grep":return`/${s.pattern||""}/ ${s.path||""}`;case"Agent":return s.description||"";case"Write":return s.file_path||"";case"Edit":return s.file_path||"";case"WebSearch":return s.query||"";case"WebFetch":return s.url||"";default:return Object.values(s).filter(u=>typeof u=="string").join(" ").slice(0,80)}}const sp=8,Ib=900,Wb=T.memo(function({content:s,images:u,isActive:o}){const[f,m]=T.useState(!1),p=T.useMemo(()=>s.split(`
142
+ `),[s]),v=p.length>sp||s.length>Ib,h=T.useMemo(()=>!v||f?s:p.slice(0,sp).join(`
143
+ `),[s,f,v,p]);return c.jsxs("div",{children:[c.jsxs("div",{className:`text-terminal-green font-mono text-sm whitespace-pre-wrap break-words ${o?"typing-cursor":""}`,children:[h,v&&!f&&c.jsx("span",{className:"text-terminal-dim",children:`
144
+ ...`})]}),v&&c.jsx("button",{onClick:()=>m(x=>!x),className:"mt-1 text-xs font-mono text-terminal-dim hover:text-terminal-green transition-colors duration-200 ease-material",children:f?"Show less":`Show more (${p.length} lines)`}),u&&u.length>0&&c.jsx("div",{className:"flex gap-2 mt-2 flex-wrap",children:u.map((x,y)=>c.jsx("img",{src:x,alt:`Attachment ${y+1}`,className:"max-w-[300px] max-h-[200px] rounded-md object-contain"},y))})]})});function Pu(a){if(!a)return"";try{return new Date(a).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}catch{return""}}function Pb({scenes:a,visibleCount:s,currentIndex:u,viewPrefs:o,focusIndex:f,annotatedScenes:m,annotationCounts:p,onComment:v}){const h=T.useMemo(()=>{const b=[];let A=null;for(let z=0;z<a.length;z++){const S=a[z];S.type==="user-prompt"||S.type==="compaction-summary"?(A&&A.scenes.length>0&&b.push(A),b.push({type:S.type==="compaction-summary"?"compaction":"user",timestamp:S.timestamp,scenes:[{scene:S,index:z}]}),A=null):((!A||A.type!=="assistant")&&(A&&A.scenes.length>0&&b.push(A),A={type:"assistant",timestamp:S.timestamp,scenes:[]}),A.scenes.push({scene:S,index:z}))}return A&&A.scenes.length>0&&b.push(A),b},[a]),x=T.useMemo(()=>o.promptsOnly?h.filter(b=>(b.type==="user"||b.type==="compaction")&&b.scenes[0].index<s):h.filter(b=>b.scenes[0].index<s),[h,s,o.promptsOnly]),y=T.useMemo(()=>{for(let b=x.length-1;b>=0;b--)if(x[b].scenes.some(A=>A.index<=u))return b;return x.length-1},[x,u]);return c.jsx("div",{className:"max-w-4xl mx-auto space-y-5 pb-6",children:x.map((b,A)=>c.jsx(e0,{forceRender:Math.abs(A-y)<=5,children:c.jsx(t0,{group:b,currentIndex:u,visibleCount:s,viewPrefs:o,focusIndex:f,annotatedScenes:m,annotationCounts:p,onComment:v})},A))})}const e0=T.memo(function({children:s,forceRender:u}){const o=T.useRef(null),[f,m]=T.useState(!1),p=T.useRef(0);T.useEffect(()=>{const h=o.current;if(!h)return;const x=new IntersectionObserver(([y])=>{m(y.isIntersecting),y.isIntersecting&&h.offsetHeight>0&&(p.current=h.offsetHeight)},{rootMargin:"800px 0px"});return x.observe(h),()=>x.disconnect()},[]);const v=f||u;return T.useEffect(()=>{v&&o.current&&o.current.offsetHeight>0&&(p.current=o.current.offsetHeight)}),c.jsx("div",{ref:o,style:!v&&p.current>0?{minHeight:p.current}:void 0,children:v?s:null})}),t0=T.memo(function({group:s,currentIndex:u,visibleCount:o,viewPrefs:f,focusIndex:m,annotatedScenes:p,annotationCounts:v,onComment:h}){const[x,y]=T.useState(!1),b=T.useMemo(()=>s.scenes.filter(O=>O.index<o),[s.scenes,o]),A=b.some(({index:O})=>O===u),z=typeof m=="number"&&b.some(({index:O})=>O===m),S=b[0]?.index;if(b.length===0)return null;const N=s.type==="user"&&v?.get(S)||0,C=s.type==="user"&&h&&(N>0||x)?c.jsxs("button",{onClick:O=>{O.stopPropagation(),h(S)},className:`absolute -right-2 top-3 z-10 flex items-center gap-1 px-1.5 py-1 rounded-md text-xs font-mono transition-all duration-150 ${N>0?"bg-terminal-blue text-terminal-bg shadow-layer-sm":"text-terminal-dim hover:text-terminal-blue hover:bg-terminal-blue-subtle opacity-0 group-hover:opacity-100"}`,title:N>0?`${N} comment${N>1?"s":""}`:"Add comment",children:["💬",N>0&&c.jsx("span",{children:N})]}):null;if(s.type==="user")return c.jsxs("div",{id:`scene-${S}`,"data-scene-index":S,className:`group relative rounded-xl px-5 py-4 transition-all duration-200 ease-material ${z?"scene-nav-focused bg-terminal-green-emphasis border-l-2 border-terminal-green shadow-layer-lg":A?"bg-terminal-green-subtle border-l-2 border-terminal-green shadow-layer-sm":"bg-terminal-green-subtle"}`,onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),children:[C,c.jsxs("div",{className:"flex items-center gap-2 mb-2.5",children:[c.jsx("span",{className:"text-[10px] font-sans font-semibold text-terminal-green uppercase tracking-widest",children:"You"}),z?c.jsx("span",{className:"text-[10px] font-sans font-medium uppercase tracking-widest px-2 py-0.5 rounded-full bg-terminal-green-emphasis text-terminal-green",children:"Jump Target"}):A&&c.jsx("span",{className:"text-[10px] font-sans font-medium uppercase tracking-widest px-2 py-0.5 rounded-full bg-terminal-green-subtle text-terminal-green",children:"Focused"}),s.timestamp&&c.jsx("span",{className:"text-xs font-mono text-terminal-dimmer",children:Pu(s.timestamp)})]}),b.map(({scene:O,index:G})=>c.jsx("div",{className:"scene-enter",children:c.jsx(No,{scene:O,isActive:G===u,collapseTools:f.collapseAllTools})},G))]});if(s.type==="compaction"){const O=b[0]?.scene;return!O||O.type!=="compaction-summary"?null:c.jsxs("div",{id:`scene-${S}`,"data-scene-index":S,className:`group relative rounded-xl px-5 py-3.5 transition-all duration-200 ease-material ${z?"scene-nav-focused bg-terminal-surface border-l-2 border-terminal-dim shadow-layer-sm":A?"bg-terminal-surface border-l-2 border-terminal-dim shadow-layer-sm":"bg-terminal-surface/50"}`,children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx("span",{className:"text-[10px] font-sans font-semibold text-terminal-dim uppercase tracking-widest",children:"Context Compaction"}),s.timestamp&&c.jsx("span",{className:"text-xs font-mono text-terminal-dimmer",children:Pu(s.timestamp)})]}),c.jsx(Cp,{content:O.content,isActive:S===u})]})}const H=f.hideThinking?b.filter(O=>O.scene.type!=="thinking"):b;return H.length===0?null:c.jsxs("div",{id:`scene-${S}`,"data-scene-index":S,className:`relative rounded-xl px-5 py-4 transition-all duration-200 ease-material ${z?"scene-nav-focused bg-terminal-blue-subtle border-l-2 border-terminal-blue shadow-layer-lg":A?"bg-terminal-blue-subtle border-l-2 border-terminal-blue shadow-layer-sm":"bg-terminal-surface shadow-layer-sm"}`,children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx("span",{className:"text-[10px] font-sans font-semibold text-terminal-blue uppercase tracking-widest",children:"Assistant"}),z?c.jsx("span",{className:"text-[10px] font-sans font-medium uppercase tracking-widest px-2 py-0.5 rounded-full bg-terminal-blue-emphasis text-terminal-blue",children:"Jump Target"}):A&&c.jsx("span",{className:"text-[10px] font-sans font-medium uppercase tracking-widest px-2 py-0.5 rounded-full bg-terminal-blue-subtle text-terminal-blue",children:"Focused"}),s.timestamp&&c.jsx("span",{className:"text-xs font-mono text-terminal-dimmer",children:Pu(s.timestamp)})]}),c.jsx("div",{className:"space-y-2",children:c.jsx(n0,{scenes:H,currentIndex:u,collapseTools:f.collapseAllTools,annotationCounts:v,onComment:h})})]})});function n0({scenes:a,currentIndex:s,collapseTools:u,annotationCounts:o,onComment:f}){const m=[];let p=[];for(const v of a){const h=p[p.length-1];h&&h.scene.type==="tool-call"&&v.scene.type==="tool-call"&&h.scene.toolName===v.scene.toolName&&!v.scene.diff&&!v.scene.bashOutput&&!h.scene.diff&&!h.scene.bashOutput?p.push(v):(p.length>0&&m.push(p),p=[v])}return p.length>0&&m.push(p),c.jsx(c.Fragment,{children:m.map(v=>{if(v.length<=1){const{scene:x,index:y}=v[0],b=o?.get(y)||0;return c.jsxs("div",{"data-scene-index":y,className:"group/scene relative scene-enter",children:[c.jsx(No,{scene:x,isActive:y===s,collapseTools:u}),f&&c.jsxs("button",{onClick:A=>{A.stopPropagation(),f(y)},className:`absolute -right-2 top-1 z-10 flex items-center gap-0.5 px-1.5 py-0.5 rounded-md text-xs font-mono transition-all duration-150 ${b>0?"bg-terminal-blue text-terminal-bg shadow-layer-sm":"text-terminal-dim hover:text-terminal-blue hover:bg-terminal-blue-subtle opacity-0 group-hover/scene:opacity-100"}`,title:b>0?`${b} comment${b>1?"s":""}`:"Add comment",children:["💬",b>0&&c.jsx("span",{children:b})]})]},y)}const h=v[0].scene.toolName;return c.jsx(l0,{batch:v,toolName:h,currentIndex:s,collapseTools:u,annotationCounts:o,onComment:f},v[0].index)})})}function l0({batch:a,toolName:s,currentIndex:u,collapseTools:o,annotationCounts:f,onComment:m}){const[p,v]=T.useState(!1),h=f?a.reduce((y,{index:b})=>y+(f.get(b)||0),0):0,x=a.map(({scene:y})=>y.type==="tool-call"?a0(y.toolName,y.input):"");return c.jsxs("div",{"data-scene-index":a[0].index,className:"group/batch relative",children:[c.jsxs("button",{onClick:()=>v(!p),className:"w-full flex items-center gap-2 px-3.5 py-2.5 text-xs font-mono text-terminal-dim rounded-xl bg-terminal-surface hover:bg-terminal-surface-hover transition-all duration-200 ease-material cursor-pointer text-left shadow-layer-sm",children:[c.jsx("span",{className:`transition-transform text-xs ${p?"rotate-90":""}`,children:"▶"}),c.jsx("span",{className:"text-terminal-orange font-semibold",children:s}),c.jsxs("span",{className:"text-terminal-dimmer",children:[a.length," call",a.length>1?"s":""]}),!p&&c.jsxs("span",{className:"truncate text-terminal-dimmer ml-1",children:[x.filter(Boolean).slice(0,3).join(", "),x.filter(Boolean).length>3&&"..."]})]}),m&&!p&&c.jsxs("button",{onClick:y=>{y.stopPropagation(),m(a[0].index)},className:`absolute -right-2 top-1 z-10 flex items-center gap-0.5 px-1.5 py-0.5 rounded-md text-xs font-mono transition-all duration-150 ${h>0?"bg-terminal-blue text-terminal-bg shadow-layer-sm":"text-terminal-dim hover:text-terminal-blue hover:bg-terminal-blue-subtle opacity-0 group-hover/batch:opacity-100"}`,title:h>0?`${h} comment${h>1?"s":""}`:"Add comment",children:["💬",h>0&&c.jsx("span",{children:h})]}),p&&c.jsx("div",{className:"mt-1 ml-4 space-y-2 pl-4",children:a.map(({scene:y,index:b})=>{const A=f?.get(b)||0;return c.jsxs("div",{"data-scene-index":b,className:"group/scene relative scene-enter",children:[c.jsx(No,{scene:y,isActive:b===u,collapseTools:o}),m&&c.jsxs("button",{onClick:z=>{z.stopPropagation(),m(b)},className:`absolute -right-2 top-1 z-10 flex items-center gap-0.5 px-1.5 py-0.5 rounded-md text-xs font-mono transition-all duration-150 ${A>0?"bg-terminal-blue text-terminal-bg shadow-layer-sm":"text-terminal-dim hover:text-terminal-blue hover:bg-terminal-blue-subtle opacity-0 group-hover/scene:opacity-100"}`,title:A>0?`${A} comment${A>1?"s":""}`:"Add comment",children:["💬",A>0&&c.jsx("span",{children:A})]})]},b)})})]})}function a0(a,s){switch(a){case"Read":return s.file_path||"";case"Glob":return s.pattern||"";case"Grep":return s.pattern||"";case"Agent":return s.description||"";default:return""}}const No=T.memo(function({scene:s,isActive:u,collapseTools:o}){switch(s.type){case"user-prompt":return c.jsx(Wb,{content:s.content,images:s.images,isActive:u});case"compaction-summary":return c.jsx(Cp,{content:s.content,isActive:u});case"thinking":return c.jsx(Oy,{content:s.content,isActive:u});case"text-response":return c.jsx(zy,{content:s.content,isActive:u});case"tool-call":return c.jsx(Kb,{scene:s,isActive:u,forceCollapse:o})}});function s0(a){if(!a)return"";const s=Math.floor(a/1e3);if(s<60)return`${s}s`;const u=Math.floor(s/60);return u<60?`${u}m ${s%60}s`:`${Math.floor(u/60)}h ${u%60}m`}function i0({session:a,onStart:s}){const{meta:u,scenes:o}=a,f=T.useMemo(()=>{const y=o.find(b=>b.type==="user-prompt");return!y||y.type!=="user-prompt"?null:y.content.length>300?`${y.content.slice(0,300)}...`:y.content},[o]),m=T.useMemo(()=>{const y=new Map;let b=0;const A=new Set;for(const z of o)z.type==="tool-call"&&(y.set(z.toolName,(y.get(z.toolName)||0)+1),z.diff&&!A.has(z.diff.filePath)&&(A.add(z.diff.filePath),b++));return{toolCounts:y,filesModified:b}},[o]),p=s0(u.stats.durationMs),v=u.title||u.project,h=T.useRef(!1),x=T.useRef(0);return T.useEffect(()=>{const y=z=>{h.current||z.deltaY>0&&(h.current=!0,s(!1))},b=z=>{x.current=z.touches[0].clientY},A=z=>{if(h.current)return;x.current-z.touches[0].clientY>15&&(h.current=!0,s(!1))};return window.addEventListener("wheel",y,{passive:!0}),window.addEventListener("touchstart",b,{passive:!0}),window.addEventListener("touchmove",A,{passive:!0}),()=>{window.removeEventListener("wheel",y),window.removeEventListener("touchstart",b),window.removeEventListener("touchmove",A)}},[s]),T.useEffect(()=>{const y=b=>{(b.key===" "||b.key==="Enter")&&(b.preventDefault(),s())};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[s]),c.jsxs("div",{className:"flex-1 flex flex-col items-center overflow-y-auto relative",children:[c.jsxs("div",{className:"absolute inset-0 pointer-events-none",children:[c.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-terminal-green-subtle via-transparent to-transparent"}),c.jsx("div",{className:"absolute inset-0 bg-dot-grid"})]}),c.jsx("div",{className:"flex-1 min-h-0"}),c.jsxs("div",{className:"max-w-2xl w-full px-8 text-center space-y-6 md:space-y-10 z-10 shrink-0",children:[c.jsxs("div",{className:"space-y-4 md:space-y-5",children:[c.jsx("a",{href:"https://vibe-replay.com",target:"_blank",rel:"noopener noreferrer",className:"inline-block text-sm font-sans font-semibold uppercase tracking-widest hover:opacity-80 transition-opacity bg-gradient-to-r from-[#3fb950] to-[#79b8ff] bg-clip-text text-transparent",children:"vibe-replay"}),c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-sans font-bold text-terminal-text leading-[1.15] tracking-tight",children:v}),u.title&&u.project!==u.title&&c.jsx("div",{className:"text-sm font-mono text-terminal-dim",children:u.project})]}),c.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3 max-w-lg mx-auto",children:[c.jsx(ea,{label:"Turns",value:u.stats.userPrompts,color:"text-terminal-green"}),c.jsx(ea,{label:"Tool Calls",value:u.stats.toolCalls,color:"text-terminal-orange"}),p?c.jsx(ea,{label:"Duration",value:p,color:"text-terminal-text"}):c.jsx(ea,{label:"Files",value:m.filesModified,color:"text-terminal-blue"}),u.stats.costEstimate!==void 0?c.jsx(ea,{label:"Cost",value:`$${u.stats.costEstimate<.01?u.stats.costEstimate.toFixed(4):u.stats.costEstimate.toFixed(2)}`,color:"text-terminal-green"}):c.jsx(ea,{label:"Scenes",value:u.stats.sceneCount,color:"text-terminal-text"})]}),c.jsxs("div",{className:"flex items-center justify-center gap-3 text-xs font-mono text-terminal-dimmer",children:[u.model&&c.jsx("span",{children:u.model}),u.model&&c.jsx("span",{className:"text-terminal-border",children:"|"}),c.jsx("span",{children:u.provider})]}),c.jsxs("button",{onClick:s,className:"group inline-flex items-center gap-3 px-10 py-4 rounded-xl bg-terminal-green-subtle hover:bg-terminal-green-emphasis transition-all duration-200 ease-material shadow-layer-md hover:shadow-layer-lg hover:-translate-y-0.5 landing-pulse",children:[c.jsx("span",{className:"text-xl text-terminal-green group-hover:scale-110 transition-transform duration-200",children:"▶"}),c.jsx("span",{className:"text-base font-sans font-semibold text-terminal-green tracking-wide",children:"Start Replay"})]})]}),f&&c.jsx("div",{className:"w-full px-8 mt-8 md:mt-12 pb-6 z-10 shrink-0",children:c.jsxs("div",{onClick:s,className:"max-w-2xl mx-auto cursor-pointer group",children:[c.jsx("div",{className:"text-xs font-sans text-terminal-dimmer uppercase tracking-widest mb-3 text-center font-medium",children:"First message"}),c.jsxs("div",{className:"rounded-xl bg-terminal-green-subtle px-5 py-4 group-hover:bg-terminal-green-emphasis transition-all duration-200 ease-material shadow-layer-sm hover-lift",children:[c.jsx("div",{className:"text-xs font-sans font-semibold text-terminal-green uppercase tracking-widest mb-2",children:"You"}),c.jsx("div",{className:"text-sm font-mono text-terminal-dim line-clamp-3 whitespace-pre-wrap leading-relaxed",children:f})]}),c.jsxs("div",{className:"text-center mt-4 text-terminal-dimmer text-xs font-mono animate-bounce",children:["↓"," scroll to explore"]})]})}),c.jsx("div",{className:"px-8 py-5 z-10 shrink-0",children:c.jsxs("a",{href:"https://vibe-replay.com/explore",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-xs font-sans font-medium text-terminal-dim hover:text-terminal-text transition-colors",children:["Explore more replays",c.jsx("span",{className:"text-terminal-green",children:"→"})]})}),c.jsx("div",{className:"flex-1 min-h-0"})]})}function ea({label:a,value:s,color:u}){return c.jsxs("div",{className:"bg-terminal-surface rounded-xl px-3 py-3 shadow-layer-sm",children:[c.jsx("div",{className:`text-xl font-bold font-mono tabular-nums ${u}`,children:s}),c.jsx("div",{className:"text-[10px] font-sans text-terminal-dimmer uppercase tracking-widest font-medium mt-0.5",children:a})]})}function ip({scenes:a,currentIndex:s,onSeek:u}){const o=T.useMemo(()=>{const m=[];let p=null,v=0;return a.forEach((h,x)=>{h.type==="user-prompt"?(p&&(p.endIndex=x-1,m.push(p)),v++,p={kind:"turn",turnNumber:v,promptIndex:x,prompt:h.content.replace(/\n/g," ").slice(0,120),toolCalls:0,toolNames:[],thinkingBlocks:0,textBlocks:0,endIndex:x}):h.type==="compaction-summary"?(p&&(p.endIndex=x-1,m.push(p),p=null),m.push({kind:"compaction",promptIndex:x,preview:h.content.replace(/\n/g," ").slice(0,80)})):p&&(p.endIndex=x,h.type==="tool-call"?(p.toolCalls++,p.toolNames.includes(h.toolName)||p.toolNames.push(h.toolName)):h.type==="thinking"?p.thinkingBlocks++:h.type==="text-response"&&p.textBlocks++)}),p&&m.push(p),m},[a]),f=T.useMemo(()=>{for(let m=o.length-1;m>=0;m--)if(s>=o[m].promptIndex)return m;return-1},[o,s]);return c.jsx("div",{className:"flex flex-col gap-1 p-3.5 overflow-y-auto",children:o.map((m,p)=>{const v=p===f,h=p<f;return m.kind==="compaction"?c.jsx("button",{onClick:()=>u(m.promptIndex),className:`text-left px-3 py-2 rounded-lg transition-all duration-200 ease-material ${v?"bg-terminal-surface border-l-2 border-terminal-dim shadow-layer-sm":"hover:bg-terminal-surface-hover text-terminal-dimmer hover:text-terminal-dim"}`,children:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-xs font-mono text-terminal-dimmer shrink-0",children:"⟳"}),c.jsx("span",{className:"text-xs font-mono text-terminal-dimmer italic truncate",children:"Context compacted"})]})},`c-${m.promptIndex}`):c.jsxs("button",{onClick:()=>u(m.promptIndex),className:`group text-left px-3 py-2.5 rounded-xl transition-all duration-200 ease-material ${v?"bg-terminal-green-subtle border-l-2 border-terminal-green shadow-layer-sm":h?"hover:bg-terminal-surface-hover text-terminal-dim hover:text-terminal-text":"hover:bg-terminal-surface-hover"}`,children:[c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx("span",{className:`text-xs font-mono font-semibold shrink-0 mt-px tabular-nums ${v?"text-terminal-green":"text-terminal-dim"}`,children:String(m.turnNumber).padStart(2,"0")}),c.jsx("span",{className:"text-sm font-mono leading-snug line-clamp-2 text-terminal-text",children:m.prompt})]}),c.jsxs("div",{className:"flex items-center gap-2 mt-1.5 ml-6 flex-wrap",children:[m.toolCalls>0&&c.jsxs("span",{className:"text-[10px] font-mono px-1.5 py-px rounded-full bg-terminal-orange-subtle text-terminal-orange",children:[m.toolCalls," tool",m.toolCalls>1?"s":""]}),m.textBlocks>0&&c.jsxs("span",{className:"text-[10px] font-mono px-1.5 py-px rounded-full bg-terminal-blue-subtle text-terminal-blue",children:[m.textBlocks," resp"]}),m.thinkingBlocks>0&&c.jsx("span",{className:"text-[10px] font-mono px-1.5 py-px rounded-full bg-terminal-purple-subtle text-terminal-purple",children:"think"})]}),v&&m.toolNames.length>0&&c.jsx("div",{className:"mt-1.5 ml-6 text-xs font-mono text-terminal-dim truncate",children:m.toolNames.join(", ")})]},`t-${m.promptIndex}`)})})}function r0(a){switch(a.type){case"user-prompt":return a.content;case"compaction-summary":return a.content;case"thinking":return a.content;case"text-response":return a.content;case"tool-call":return[a.toolName,JSON.stringify(a.input),a.result||"",a.bashOutput?.command||"",a.bashOutput?.stdout||""].join(" ");default:return""}}function u0(a,s){const u=a.toLowerCase().indexOf(s.toLowerCase());if(u===-1)return a.slice(0,120);const o=Math.max(0,u-40),f=Math.min(a.length,u+s.length+60);return(o>0?"...":"")+a.slice(o,f)+(f<a.length?"...":"")}const o0={"user-prompt":"User","compaction-summary":"Compaction",thinking:"Thinking","text-response":"Response","tool-call":"Tool"},c0={"user-prompt":"text-terminal-green","compaction-summary":"text-terminal-dim",thinking:"text-terminal-purple","text-response":"text-terminal-blue","tool-call":"text-terminal-orange"};function f0({scenes:a,open:s,onClose:u,onSeek:o}){const[f,m]=T.useState(""),[p,v]=T.useState(0),h=T.useRef(null),x=T.useRef(null);T.useEffect(()=>{s&&(m(""),v(0),setTimeout(()=>h.current?.focus(),50))},[s]);const y=T.useMemo(()=>{if(f.length<2)return[];const z=f.toLowerCase(),S=[];for(let N=0;N<a.length;N++){const C=r0(a[N]);if(C.toLowerCase().includes(z)&&S.push({sceneIndex:N,type:a[N].type,snippet:u0(C,f),toolName:a[N].type==="tool-call"?a[N].toolName:void 0}),S.length>=50)break}return S},[a,f]);T.useEffect(()=>v(0),[]),T.useEffect(()=>{if(!x.current)return;x.current.children[p]?.scrollIntoView({block:"nearest"})},[p]);const b=T.useCallback(z=>{const S=y[z];S&&(o(S.sceneIndex),u())},[y,o,u]),A=T.useCallback(z=>{z.key==="ArrowDown"?(z.preventDefault(),v(S=>Math.min(S+1,y.length-1))):z.key==="ArrowUp"?(z.preventDefault(),v(S=>Math.max(S-1,0))):z.key==="Enter"?(z.preventDefault(),b(p)):z.key==="Escape"&&u()},[y.length,p,b,u]);return s?c.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[8vh] sm:pt-[15vh]",onClick:u,children:[c.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm"}),c.jsxs("div",{className:"relative w-full max-w-xl mx-3 sm:mx-0 bg-terminal-bg border border-terminal-border-subtle rounded-2xl shadow-layer-xl overflow-hidden",onClick:z=>z.stopPropagation(),onKeyDown:A,children:[c.jsxs("div",{className:"flex items-center gap-3 px-5 py-3.5 border-b border-terminal-border-subtle",children:[c.jsx("span",{className:"text-terminal-dim text-sm",children:"🔍"}),c.jsx("input",{ref:h,type:"text",value:f,onChange:z=>m(z.target.value),placeholder:"Search scenes...",className:"flex-1 bg-transparent text-sm font-mono text-terminal-text placeholder-terminal-dim outline-none"}),c.jsx("kbd",{className:"text-[10px] font-mono text-terminal-dimmer bg-terminal-surface px-2 py-0.5 rounded-md",children:"ESC"})]}),c.jsx("div",{ref:x,className:"max-h-[50vh] overflow-y-auto",children:f.length<2?c.jsx("div",{className:"px-4 py-8 text-center text-xs font-mono text-terminal-dim",children:"Type at least 2 characters to search"}):y.length===0?c.jsxs("div",{className:"px-4 py-8 text-center text-xs font-mono text-terminal-dim",children:['No results for "',f,'"']}):y.map((z,S)=>c.jsxs("button",{onClick:()=>b(S),className:`w-full text-left px-4 py-2.5 flex items-start gap-3 transition-colors ${S===p?"bg-terminal-green/10":"hover:bg-terminal-surface/50"}`,children:[c.jsx("span",{className:`text-xs font-mono font-semibold uppercase shrink-0 mt-0.5 ${c0[z.type]||"text-terminal-dim"}`,children:z.toolName||o0[z.type]||z.type}),c.jsx("span",{className:"text-xs font-mono text-terminal-text line-clamp-2 break-words",children:d0(z.snippet,f)}),c.jsxs("span",{className:"text-xs font-mono text-terminal-dimmer shrink-0 mt-0.5",children:["#",z.sceneIndex]})]},z.sceneIndex))}),y.length>0&&c.jsxs("div",{className:"px-4 py-2 border-t border-terminal-border-subtle text-xs font-mono text-terminal-dimmer flex gap-4",children:[c.jsxs("span",{children:[y.length," result",y.length!==1?"s":""]}),c.jsx("span",{children:"↑↓ navigate"}),c.jsx("span",{children:"↵ select"})]})]})]}):null}function d0(a,s){if(!s)return a;const u=[],o=a.toLowerCase(),f=s.toLowerCase();let m=0,p=o.indexOf(f);for(;p!==-1;)p>m&&u.push(a.slice(m,p)),u.push(c.jsx("mark",{className:"bg-terminal-green/30 text-terminal-green rounded-sm px-0.5",children:a.slice(p,p+s.length)},p)),m=p+s.length,p=o.indexOf(f,m);return m<a.length&&u.push(a.slice(m)),u}function rp({session:a}){const s=T.useMemo(()=>{const{scenes:o,meta:f}=a,m=new Map;let p=0,v=0,h=0,x=0;const y=new Set;for(const A of o)switch(A.type){case"user-prompt":h+=A.content.length;break;case"thinking":p+=A.content.length;break;case"text-response":v+=A.content.length;break;case"tool-call":{m.set(A.toolName,(m.get(A.toolName)||0)+1),A.diff&&(x++,y.add(A.diff.filePath));break}}const b=[...m.entries()].sort((A,z)=>z[1]-A[1]).slice(0,6);return{totalScenes:o.length,userPrompts:f.stats.userPrompts,toolCalls:f.stats.toolCalls,thinkingChars:p,responseChars:v,promptChars:h,editCount:x,filesModified:y.size,topTools:b,durationMs:f.stats.durationMs,tokenUsage:f.stats.tokenUsage,costEstimate:f.stats.costEstimate,compactions:f.compactions}},[a]),{meta:u}=a;return c.jsxs("div",{className:"p-4 space-y-6 text-xs font-mono",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-terminal-dimmer uppercase tracking-widest text-[10px] font-sans font-semibold mb-2",children:"Session"}),u.title&&c.jsx("div",{className:"text-terminal-text text-xs mb-0.5 truncate",title:u.title,children:u.title}),c.jsx("div",{className:"text-terminal-dim truncate",title:u.cwd,children:u.project}),c.jsxs("div",{className:"text-terminal-dim mt-0.5 flex items-center gap-1.5 flex-wrap",children:[u.model&&c.jsx("span",{className:"text-terminal-dim",children:u.model}),u.provider&&c.jsx("span",{children:u.provider})]}),u.generator?.version&&c.jsxs("div",{className:"text-terminal-dim mt-0.5 truncate",children:["replay:"," ",c.jsxs("span",{className:"text-terminal-text",children:[u.generator.name," v",u.generator.version]})]}),u.generator?.generatedAt&&c.jsxs("div",{className:"text-terminal-dim mt-0.5 truncate",title:u.generator.generatedAt,children:["generated:"," ",c.jsx("span",{className:"text-terminal-text",children:h0(u.generator.generatedAt)})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[c.jsx(ki,{label:"Turns",value:s.userPrompts,color:"text-terminal-green"}),c.jsx(ki,{label:"Scenes",value:s.totalScenes,color:"text-terminal-text"}),c.jsx(ki,{label:"Tool Calls",value:s.toolCalls,color:"text-terminal-orange"}),c.jsx(ki,{label:"Files Modified",value:s.filesModified,color:"text-terminal-blue"})]}),(s.durationMs||s.costEstimate!==void 0)&&c.jsxs("div",{className:"text-terminal-dim space-y-0.5",children:[s.durationMs&&c.jsxs("div",{children:["Duration:"," ",c.jsx("span",{className:"text-terminal-text",children:m0(s.durationMs)})]}),s.costEstimate!==void 0&&c.jsxs("div",{children:["Cost:"," ",c.jsxs("span",{className:"text-terminal-green",children:["$",s.costEstimate<.01?s.costEstimate.toFixed(4):s.costEstimate.toFixed(2)]}),c.jsx("span",{className:"text-terminal-dimmer",children:" (estimate)"})]})]}),s.tokenUsage&&c.jsxs("div",{children:[c.jsx("div",{className:"text-terminal-dimmer mb-2 text-[10px] font-sans font-semibold uppercase tracking-widest",children:"Tokens"}),c.jsxs("div",{className:"text-terminal-dim leading-relaxed space-y-0.5",children:[c.jsxs("div",{children:["In: ",c.jsx("span",{className:"text-terminal-blue",children:Xn(s.tokenUsage.inputTokens)})," / ","Out:"," ",c.jsx("span",{className:"text-terminal-green",children:Xn(s.tokenUsage.outputTokens)})]}),c.jsxs("div",{children:["Cache:"," ",c.jsx("span",{className:"text-terminal-purple",children:Xn(s.tokenUsage.cacheReadTokens)})," ","read"," / ",c.jsx("span",{className:"text-terminal-orange",children:Xn(s.tokenUsage.cacheCreationTokens)})," ","created"]})]})]}),c.jsxs("div",{className:"text-terminal-dim leading-relaxed",children:["Chars: ",c.jsx("span",{className:"text-terminal-green",children:Xn(s.promptChars)})," prompt"," / ",c.jsx("span",{className:"text-terminal-purple",children:Xn(s.thinkingChars)})," thinking"," / ",c.jsx("span",{className:"text-terminal-blue",children:Xn(s.responseChars)})," response"]}),s.compactions&&s.compactions.length>0&&c.jsxs("div",{children:[c.jsxs("div",{className:"text-terminal-dimmer mb-2 text-[10px] font-sans font-semibold uppercase tracking-widest",children:["Context Compactions (",s.compactions.length,")"]}),c.jsx("div",{className:"space-y-1",children:s.compactions.map((o,f)=>c.jsxs("div",{className:"text-terminal-dim text-xs flex items-baseline gap-1.5",children:[c.jsx("span",{className:"text-terminal-orange",children:"●"}),c.jsx("span",{children:o.trigger}),o.preTokens&&c.jsxs("span",{className:"text-terminal-text",children:[Xn(o.preTokens)," tokens"]})]},f))})]}),s.topTools.length>0&&c.jsxs("div",{children:[c.jsx("div",{className:"text-terminal-dimmer mb-2 text-[10px] font-sans font-semibold uppercase tracking-widest",children:"Top Tools"}),c.jsx("div",{className:"space-y-1.5",children:s.topTools.map(([o,f])=>c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-terminal-text shrink-0 w-20 text-right",children:o}),c.jsx("div",{className:"flex-1 h-2 rounded-full bg-terminal-surface overflow-hidden",children:c.jsx("div",{className:"h-full rounded-full bg-terminal-orange",style:{width:`${f/s.topTools[0][1]*100}%`}})}),c.jsx("span",{className:"text-terminal-dim shrink-0 w-6 text-right tabular-nums",children:f})]},o))})]}),(u.dataSource||u.dataSourceInfo)&&c.jsxs("div",{children:[c.jsx("div",{className:"text-terminal-dimmer mb-2 text-[10px] font-sans font-semibold uppercase tracking-widest",children:"Data Source"}),c.jsx("div",{className:"text-terminal-dim",children:c.jsx("span",{className:"text-terminal-blue",children:p0(u.dataSourceInfo?.primary||u.dataSource)})}),u.dataSourceInfo?.sources&&u.dataSourceInfo.sources.length>0&&c.jsx("div",{className:"mt-0.5 space-y-0.5",children:u.dataSourceInfo.sources.map(o=>c.jsxs("div",{className:"text-terminal-dim truncate",title:o,children:[c.jsx("span",{className:"text-terminal-green",children:"source:"})," ",o]},o))}),u.dataSourceInfo?.supplements&&u.dataSourceInfo.supplements.length>0&&c.jsx("div",{className:"mt-0.5 space-y-0.5",children:u.dataSourceInfo.supplements.map(o=>c.jsxs("div",{className:"text-terminal-dim truncate",title:o,children:[c.jsx("span",{className:"text-terminal-purple",children:"supplement:"})," ",o]},o))}),u.dataSourceInfo?.notes&&u.dataSourceInfo.notes.length>0&&c.jsx("div",{className:"mt-0.5 space-y-0.5",children:u.dataSourceInfo.notes.map(o=>c.jsxs("div",{className:"text-terminal-dim truncate",title:o,children:[c.jsx("span",{className:"text-terminal-orange",children:"note:"})," ",o]},o))})]})]})}function ki({label:a,value:s,color:u}){return c.jsxs("div",{className:"bg-terminal-surface rounded-xl px-3 py-3 shadow-layer-sm",children:[c.jsx("div",{className:`text-xl font-bold tabular-nums ${u}`,children:s}),c.jsx("div",{className:"text-terminal-dimmer text-[10px] font-sans font-medium uppercase tracking-widest mt-0.5",children:a})]})}function Xn(a){return a>=1e6?`${(a/1e6).toFixed(1)}M`:a>=1e3?`${(a/1e3).toFixed(1)}K`:a.toString()}function m0(a){const s=Math.floor(a/1e3);if(s<60)return`${s}s`;const u=Math.floor(s/60);return u<60?`${u}m ${s%60}s`:`${Math.floor(u/60)}h ${u%60}m`}function p0(a){return a?{sqlite:"SQLite (store.db)","global-state":"SQLite (global state.vscdb)",jsonl:"JSONL transcript","jsonl+tools":"JSONL + agent-tools"}[a]||a:"unknown"}function h0(a){if(!a)return"";const s=new Date(a);return Number.isNaN(s.getTime())?a:s.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function g0(a){switch(a){case"user-prompt":return"#3fb950";case"compaction-summary":return"#666666";case"thinking":return"#b392f0";case"text-response":return"#79b8ff";case"tool-call":return"#d29922"}}function x0({scenes:a,currentIndex:s,onSeek:u,annotatedScenes:o}){const f=T.useMemo(()=>{if(a.length<=200)return a.map((A,z)=>({startIndex:z,endIndex:z,type:A.type}));const y=a.length/200,b=[];for(let A=0;A<200;A++){const z=Math.floor(A*y),S=Math.floor((A+1)*y)-1,N={"user-prompt":4,"compaction-summary":1,"tool-call":3,"text-response":2,thinking:1};let C=a[z].type,H=N[C];for(let O=z+1;O<=S&&O<a.length;O++){const G=N[a[O].type];G>H&&(C=a[O].type,H=G)}b.push({startIndex:z,endIndex:S,type:C})}return b},[a]),m=a.length>0?(s+1)/a.length*100:0,p=T.useRef(null),v=T.useCallback(x=>{const y=p.current;if(!y)return;const b=y.getBoundingClientRect(),A=x.clientX-b.left,z=Math.max(0,Math.min(1,A/b.width)),S=Math.floor(z*a.length);u(S)},[a.length,u]),h=T.useMemo(()=>{if(!o||o.size===0)return[];const x=[];return o.forEach(y=>{y>=0&&y<a.length&&x.push((y+.5)/a.length*100)}),x},[o,a.length]);return a.length===0?null:c.jsxs("div",{className:"px-4 pt-3 pb-1 cursor-pointer",onClick:v,children:[h.length>0&&c.jsx("div",{className:"relative h-2 mb-0.5",children:h.map((x,y)=>c.jsx("div",{className:"absolute w-1.5 h-1.5 rounded-full bg-terminal-blue shadow-layer-sm",style:{left:`${x}%`,top:"50%",transform:"translate(-50%, -50%)"}},y))}),c.jsxs("div",{ref:p,className:"relative flex h-2 rounded-full overflow-hidden bg-terminal-surface-2",children:[f.map((x,y)=>c.jsx("div",{className:"flex-1 transition-opacity duration-150",style:{backgroundColor:g0(x.type),opacity:x.startIndex<=s?1:.15}},y)),c.jsx("div",{className:"absolute top-0 bottom-0 w-0.5 bg-white shadow-layer-sm transition-[left] duration-150 ease-material",style:{left:`${m}%`}})]})]})}function y0(a){a.classList.remove("jump-target-flash"),a.offsetWidth,a.classList.add("jump-target-flash"),window.setTimeout(()=>{a.classList.remove("jump-target-flash")},900)}function b0({session:a,viewPrefs:s,viewerMode:u="embedded"}){const o=u==="readonly",[f,m]=T.useState(!1),[p,v]=T.useState(void 0),[h,x]=T.useState(0),[y,b]=T.useState(()=>{if((a.annotations?.length??0)>0)return!0;try{const J=`vibe-replay-annotations-${a.meta.sessionId}`,xe=localStorage.getItem(J);if(xe){const ze=JSON.parse(xe);return Array.isArray(ze)&&ze.length>0}}catch{}return!1}),[A,z]=T.useState(null),S=Bx(a,u),{state:N,currentIndex:C,visibleCount:H,speed:O,play:G,pause:F,togglePlayPause:P,seekTo:ee,changeSpeed:K,totalScenes:ae,userPromptIndices:de}=Hx(a.scenes,s.promptsOnly,f),le=T.useRef(null),[te,fe]=T.useState("outline"),[Le,me]=T.useState(!1),[he,E]=T.useState(!1),[Y,I]=T.useState(!1),_=T.useRef(null),V=T.useRef(null),w=T.useRef(!1);T.useEffect(()=>{const J=xe=>{(xe.metaKey||xe.ctrlKey)&&xe.key==="k"&&(xe.preventDefault(),me(ze=>!ze))};return window.addEventListener("keydown",J),()=>window.removeEventListener("keydown",J)},[]);const B=de.filter(J=>J<=C).length||0,Q=de.length,W=T.useCallback((J=!0)=>{m(!0),J?setTimeout(G,300):setTimeout(()=>ee(0),100)},[G,ee]),ne=T.useCallback(J=>{const xe=Math.max(0,Math.min(J,a.scenes.length-1));F(),_.current=xe,x(ze=>ze+1),v(xe),V.current&&clearTimeout(V.current),V.current=setTimeout(()=>v(void 0),2500),ee(xe)},[F,ee,a.scenes.length]),re=T.useCallback(()=>{const J=de.find(xe=>xe>C);J!==void 0&&ne(J)},[de,C,ne]),pe=T.useCallback(()=>{const J=[...de].reverse().find(xe=>xe<C);J!==void 0&&ne(J)},[de,C,ne]),Be=T.useRef(!1);return T.useEffect(()=>{N==="playing"&&I(!1)},[N]),T.useEffect(()=>{if(!le.current||C<0||_.current!==null)return;if(w.current){w.current=!1;return}const J=le.current;Be.current=!0,requestAnimationFrame(()=>{const xe=J.querySelector(`[data-scene-index="${C}"]`);if(xe)if(N==="playing")xe.scrollIntoView({behavior:"smooth",block:"center"});else{const ze=J.getBoundingClientRect(),rt=xe.getBoundingClientRect(),_t=rt.top-ze.top;if(rt.bottom-ze.top>ze.height||_t<0){const oe=rt.top-ze.top+J.scrollTop-ze.height*.3;J.scrollTo({top:Math.max(0,oe),behavior:"smooth"})}}else N==="playing"&&J.scrollTo({top:J.scrollHeight,behavior:"smooth"});setTimeout(()=>{Be.current=!1},400)})},[C,N]),T.useEffect(()=>{const J=le.current;if(!J)return;const xe=()=>{Be.current||(I(!0),N==="playing"&&F())};return J.addEventListener("wheel",xe,{passive:!0}),J.addEventListener("touchmove",xe,{passive:!0}),()=>{J.removeEventListener("wheel",xe),J.removeEventListener("touchmove",xe)}},[N,F]),T.useEffect(()=>{const J=le.current;if(!J)return;let xe=!1;const ze=()=>{if(N!=="paused"||xe||C>=a.scenes.length-1||Be.current||_.current!==null)return;J.scrollHeight-J.scrollTop-J.clientHeight<80&&(xe=!0,w.current=!0,ee(C+1),setTimeout(()=>{xe=!1},150))},rt=oe=>{oe.deltaY>0&&ze()};let _t=0;const Ie=oe=>{_t=oe.touches[0].clientY},Ct=oe=>{_t-oe.changedTouches[0].clientY>20&&ze()};return J.addEventListener("scroll",ze,{passive:!0}),J.addEventListener("wheel",rt,{passive:!0}),J.addEventListener("touchstart",Ie,{passive:!0}),J.addEventListener("touchend",Ct,{passive:!0}),()=>{J.removeEventListener("scroll",ze),J.removeEventListener("wheel",rt),J.removeEventListener("touchstart",Ie),J.removeEventListener("touchend",Ct)}},[N,C,a.scenes.length,ee]),T.useEffect(()=>{const J=_.current,xe=le.current;if(J===null||!xe||C!==J)return;let ze=!1,rt=0;const _t=()=>{if(ze)return;const Ie=xe.querySelector(`[data-scene-index="${J}"]`);if(Ie){Be.current=!0;const Ct=xe.getBoundingClientRect(),yn=Ie.getBoundingClientRect().top-Ct.top+xe.scrollTop-Ct.height*.35;xe.scrollTo({top:Math.max(0,yn),behavior:"smooth"}),y0(Ie),setTimeout(()=>{Be.current=!1},450),_.current=null;return}rt+=1,rt<12?setTimeout(_t,80):_.current=null};return requestAnimationFrame(_t),()=>{ze=!0}},[C]),T.useEffect(()=>()=>{V.current&&clearTimeout(V.current)},[]),f?c.jsxs("div",{className:"flex flex-1 min-h-0 relative",children:[c.jsxs("div",{className:"hidden md:flex w-64 shrink-0 flex-col border-r border-terminal-border-subtle bg-terminal-bg shadow-layer-sm",children:[c.jsxs("div",{className:"flex border-b border-terminal-border-subtle",children:[c.jsx("button",{onClick:()=>fe("outline"),className:`flex-1 px-3 py-2.5 text-[10px] font-sans font-semibold uppercase tracking-widest transition-colors ${te==="outline"?"text-terminal-green border-b-2 border-terminal-green":"text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface-hover"}`,children:"Outline"}),c.jsx("button",{onClick:()=>fe("stats"),className:`flex-1 px-3 py-2.5 text-[10px] font-sans font-semibold uppercase tracking-widest transition-colors ${te==="stats"?"text-terminal-green border-b-2 border-terminal-green":"text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface-hover"}`,children:"Stats"})]}),c.jsx("div",{className:"flex-1 overflow-y-auto",children:te==="stats"?c.jsx(rp,{session:a}):c.jsx(ip,{scenes:a.scenes,currentIndex:C,onSeek:ne})})]}),c.jsxs("div",{className:"flex flex-col flex-1 min-h-0 min-w-0",children:[c.jsxs("div",{className:"flex flex-1 min-h-0",children:[c.jsxs("div",{className:"flex flex-col flex-1 min-h-0 min-w-0 relative",children:[c.jsx("div",{ref:le,className:"flex-1 overflow-y-auto px-5 py-5 pb-10 overscroll-contain",children:c.jsx(Pb,{scenes:a.scenes,visibleCount:H,currentIndex:C,viewPrefs:s,focusIndex:p,annotatedScenes:S.annotatedScenes,annotationCounts:S.annotationCounts,onComment:o?void 0:J=>{b(!0),z(J)}})}),N==="paused"&&C<a.scenes.length-1&&!Y&&c.jsx("div",{className:"absolute bottom-[72px] left-1/2 -translate-x-1/2 z-10 pointer-events-none animate-bounce",children:c.jsxs("div",{className:"px-5 py-2 rounded-full bg-terminal-surface/90 backdrop-blur-md text-xs font-mono text-terminal-dim flex items-center gap-2 shadow-layer-lg border border-terminal-border-subtle",children:[c.jsx("span",{className:"text-terminal-green",children:"↓"}),"scroll for more"]})}),c.jsx(f0,{scenes:a.scenes,open:Le,onClose:()=>me(!1),onSeek:J=>{ne(J),me(!1)}}),N==="paused"&&H>0&&c.jsx("div",{className:"hidden md:block absolute top-3 right-3 px-3.5 py-1.5 rounded-lg bg-terminal-orange-subtle text-terminal-orange text-[10px] font-sans font-semibold uppercase tracking-widest pause-overlay pointer-events-none backdrop-blur-sm",children:"PAUSED"})]}),y&&c.jsx("div",{className:"hidden md:flex w-72 shrink-0 flex-col border-l border-terminal-border-subtle bg-terminal-bg",children:c.jsx(Xm,{actions:S,scenes:a.scenes,currentIndex:C,totalScenes:ae,onSeek:ne,addingForScene:A,onClearAddingTarget:()=>z(null),readOnly:o})})]}),c.jsxs("div",{className:"shrink-0 border-t border-terminal-border-subtle bg-terminal-surface/80 backdrop-blur-md sticky bottom-0 safe-bottom shadow-layer-lg",children:[c.jsx(x0,{scenes:a.scenes,currentIndex:C,onSeek:ne,annotatedScenes:S.annotatedScenes}),c.jsx(Ry,{state:N,speed:O,currentIndex:C,totalScenes:ae,userPromptCount:Q,currentTurn:B,onTogglePlayPause:P,onChangeSpeed:K,onPrevPrompt:pe,onNextPrompt:re,onOpenSearch:()=>me(!0),onOpenOutline:()=>E(!0),annotationCount:S.annotations.length,annotationPanelOpen:y,onToggleAnnotations:()=>b(J=>!J),hasUnsavedAnnotations:S.hasUnsaved})]})]}),c.jsxs("div",{className:`fixed inset-0 z-40 md:hidden transition-opacity duration-300 ${he?"opacity-100":"opacity-0 pointer-events-none"}`,onClick:()=>E(!1),children:[c.jsx("div",{className:"absolute inset-0 bg-black/40"}),c.jsxs("div",{className:`absolute bottom-0 left-0 right-0 h-[65vh] bg-terminal-bg border-t border-terminal-border-subtle rounded-t-2xl flex flex-col transition-transform duration-300 ease-material-decel safe-bottom shadow-layer-xl ${he?"translate-y-0":"translate-y-full"}`,onClick:J=>J.stopPropagation(),children:[c.jsx("div",{className:"flex justify-center py-2.5 shrink-0",children:c.jsx("div",{className:"w-10 h-1 rounded-full bg-terminal-border"})}),c.jsxs("div",{className:"flex border-b border-terminal-border-subtle shrink-0",children:[c.jsx("button",{onClick:()=>fe("outline"),className:`flex-1 px-3 py-2.5 text-[10px] font-sans font-semibold uppercase tracking-widest transition-colors ${te==="outline"?"text-terminal-green border-b-2 border-terminal-green":"text-terminal-dim hover:text-terminal-text"}`,children:"Outline"}),c.jsx("button",{onClick:()=>fe("stats"),className:`flex-1 px-3 py-2.5 text-[10px] font-sans font-semibold uppercase tracking-widest transition-colors ${te==="stats"?"text-terminal-green border-b-2 border-terminal-green":"text-terminal-dim hover:text-terminal-text"}`,children:"Stats"}),c.jsxs("button",{onClick:()=>fe("comments"),className:`flex-1 px-3 py-2.5 text-[10px] font-sans font-semibold uppercase tracking-widest transition-colors ${te==="comments"?"text-terminal-blue border-b-2 border-terminal-blue":"text-terminal-dim hover:text-terminal-text"}`,children:["Comments",S.annotations.length>0?` (${S.annotations.length})`:""]})]}),c.jsx("div",{className:"flex-1 overflow-y-auto overscroll-contain",children:te==="outline"?c.jsx(ip,{scenes:a.scenes,currentIndex:C,onSeek:J=>{ne(J),E(!1)}}):te==="stats"?c.jsx(rp,{session:a}):c.jsx(Xm,{actions:S,scenes:a.scenes,currentIndex:C,totalScenes:ae,onSeek:J=>{ne(J),E(!1)},addingForScene:A,onClearAddingTarget:()=>z(null),readOnly:o})})]})]})]}):c.jsx(i0,{session:a,onStart:W})}function v0(){const[a,s]=T.useState({status:"loading"}),u=T.useCallback(()=>{s({status:"loading"}),w0().then(o=>{s(o==="dashboard"?{status:"dashboard"}:{status:"ready",session:o.session,mode:o.mode,gistOwner:o.gistOwner})},o=>s({status:"error",message:String(o.message||o)}))},[]);return T.useEffect(()=>{u();const o=()=>u();return window.addEventListener("popstate",o),()=>window.removeEventListener("popstate",o)},[u]),a}function S0(){return!!window.__VIBE_REPLAY_EDITOR__}async function w0(){if(window.__VIBE_REPLAY_DATA__)return{session:window.__VIBE_REPLAY_DATA__,mode:"embedded"};if(S0()){const f=new URLSearchParams(window.location.search);if(f.get("view")==="dashboard")return"dashboard";const m=f.get("session");if(m){const p=await fetch(`/api/session?slug=${encodeURIComponent(m)}`);if(!p.ok)throw new Error(`Session not found: ${m}`);return{session:await p.json(),mode:"editor"}}return"dashboard"}const a=new URLSearchParams(window.location.search),s=a.get("gist");if(s){if(!/^[a-f0-9]{20,40}$/.test(s))throw new Error("Invalid gist ID");const{rawUrl:f,owner:m}=await E0(s),p=await up(f);return k0(s).catch(()=>{}),{session:p,mode:"readonly",gistOwner:m}}const u=a.get("url");if(u)return{session:await up(u),mode:"readonly"};const o=a.get("file");if(o){const f=await fetch(o);if(!f.ok)throw new Error(`Failed to load file: ${f.status}`);return{session:await f.json(),mode:"embedded"}}return"dashboard"}async function up(a){const s=await fetch(a);if(!s.ok)throw new Error(`Failed to fetch: ${s.status} ${s.statusText}`);const u=await s.text();if(u.trimStart().startsWith("{"))return JSON.parse(u);throw new Error("URL must point to a vibe-replay JSON replay file")}async function k0(a){await fetch("https://vibe-replay.com/api/replays",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({gist_id:a})})}async function E0(a){const s=await fetch(`https://api.github.com/gists/${a}`);if(!s.ok)throw new Error(`Gist not found: ${s.status}`);const u=await s.json(),o=u.files,f=Object.values(o).find(p=>p.filename.endsWith(".json"));if(!f)throw new Error("No JSON file found in gist");const m=u.owner?.login;return{rawUrl:f.raw_url,owner:m}}function N0(){const[a,s]=T.useState(()=>{const f=new URLSearchParams(window.location.search).get("theme");if(f==="light"||f==="dark")return f;const m=localStorage.getItem("vibe-replay-theme");return m==="light"||m==="dark"?m:"dark"});T.useEffect(()=>{const o=document.documentElement;o.classList.add("theme-transition"),o.classList.toggle("dark",a==="dark"),o.classList.toggle("light",a==="light"),localStorage.setItem("vibe-replay-theme",a);const f=setTimeout(()=>o.classList.remove("theme-transition"),300);return()=>clearTimeout(f)},[a]);const u=T.useCallback(()=>{s(o=>o==="dark"?"light":"dark")},[]);return{theme:a,toggleTheme:u}}const mo="vibe-replay-view-prefs";function j0(){try{const a=localStorage.getItem(mo);if(a)return{...op,...JSON.parse(a)}}catch{}return op}const op={hideThinking:!1,collapseAllTools:!1,promptsOnly:!1};function T0(){const[a,s]=T.useState(j0),u=T.useCallback((f,m)=>{s(p=>{const v={...p,[f]:m};return localStorage.setItem(mo,JSON.stringify(v)),v})},[]),o=T.useCallback(f=>{s(m=>{const p={...m,[f]:!m[f]};return localStorage.setItem(mo,JSON.stringify(p)),p})},[]);return{prefs:a,updatePref:u,togglePref:o}}function A0(a){if(!a)return"";const s=Math.floor(a/1e3);if(s<60)return`${s}s`;const u=Math.floor(s/60);return u<60?`${u}m ${s%60}s`:`${Math.floor(u/60)}h ${u%60}m`}function eo(a){const s=new URL(window.location.href);for(const[u,o]of Object.entries(a))o===null?s.searchParams.delete(u):s.searchParams.set(u,o);window.history.pushState({},"",s.toString()),window.dispatchEvent(new PopStateEvent("popstate"))}function _0(){const a=v0(),{theme:s,toggleTheme:u}=N0(),{prefs:o,togglePref:f}=T0(),m=a.status==="ready"?a.session:null,p=a.status==="ready"?a.mode:"embedded",v=a.status==="ready"?a.gistOwner:void 0,h=p==="editor",x=T.useMemo(()=>m?.scenes.some(C=>C.type==="thinking")??!1,[m]),[y,b]=T.useState(!1),A=T.useRef(null);if(T.useEffect(()=>{if(!y)return;const C=H=>{A.current&&!A.current.contains(H.target)&&b(!1)};return document.addEventListener("mousedown",C),()=>document.removeEventListener("mousedown",C)},[y]),a.status==="loading")return c.jsx("div",{className:"h-screen bg-terminal-bg flex items-center justify-center",children:c.jsx("div",{className:"text-terminal-dim font-mono text-sm animate-pulse",children:"Loading session..."})});if(a.status==="error")return c.jsx("div",{className:"h-screen bg-terminal-bg flex items-center justify-center",children:c.jsxs("div",{className:"text-center space-y-2",children:[c.jsx("div",{className:"text-terminal-red font-mono text-sm",children:a.message}),c.jsx("div",{className:"text-terminal-dim font-mono text-xs",children:"Use ?gist=<id> or ?url=<replay-json-url> or embed via CLI"})]})});if(a.status==="dashboard")return c.jsxs("div",{className:"h-screen bg-terminal-bg flex flex-col overflow-hidden",children:[c.jsxs("header",{className:"border-b border-terminal-border-subtle px-4 md:px-5 py-2.5 md:py-3 flex items-center justify-between shrink-0 bg-terminal-surface/30 backdrop-blur-sm safe-top",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("button",{onClick:()=>eo({view:null,session:null}),className:"text-sm font-sans font-bold bg-gradient-to-r from-[#3fb950] to-[#79b8ff] bg-clip-text text-transparent hover:opacity-80 transition-opacity",children:"vibe-replay"}),c.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] font-sans font-medium px-2 py-0.5 rounded-full bg-terminal-green-subtle text-terminal-green uppercase tracking-wider",children:[c.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-terminal-green animate-pulse"}),"Local"]}),c.jsx("span",{className:"text-terminal-border/40 text-sm select-none",children:"|"}),c.jsx("span",{className:"text-sm font-sans font-medium text-terminal-text",children:"Dashboard"})]}),c.jsx("button",{onClick:u,className:"h-7 w-7 flex items-center justify-center rounded-md bg-terminal-surface text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface-hover text-xs transition-colors",children:s==="dark"?"☾":"☀"})]}),c.jsx(Nx,{})]});const{meta:z}=m,S=A0(z.stats.durationMs),N=h&&new URLSearchParams(window.location.search).has("session");return c.jsxs("div",{className:"h-screen bg-terminal-bg flex flex-col overflow-hidden",children:[c.jsxs("header",{className:"relative z-30 border-b border-terminal-border-subtle px-4 md:px-5 py-2.5 md:py-3 flex items-center justify-between shrink-0 bg-terminal-surface/30 backdrop-blur-sm safe-top",children:[c.jsxs("div",{className:"flex items-center gap-2 md:gap-3 min-w-0",children:[c.jsx("a",{href:"https://vibe-replay.com",target:"_blank",rel:"noopener noreferrer",className:"text-sm font-sans font-bold shrink-0 hover:opacity-80 transition-opacity bg-gradient-to-r from-[#3fb950] to-[#79b8ff] bg-clip-text text-transparent",children:"vibe-replay"}),h&&c.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] font-sans font-medium px-2 py-0.5 rounded-full bg-terminal-green-subtle text-terminal-green uppercase tracking-wider",children:[c.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-terminal-green animate-pulse"}),"Local"]}),N&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-terminal-border/40 text-sm select-none",children:"|"}),c.jsxs("button",{onClick:()=>eo({view:"dashboard",session:null}),className:"flex items-center gap-0.5 text-sm font-sans font-medium text-terminal-dim hover:text-terminal-text transition-colors",children:[c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M10 3L5 8l5 5"})}),"Dashboard"]})]}),z.title&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"hidden md:inline text-terminal-border/40 text-sm select-none",children:"|"}),c.jsx("span",{className:"hidden md:inline text-terminal-text text-xs font-sans font-medium truncate max-w-[300px]",title:z.project,children:z.title})]}),c.jsxs("div",{className:"hidden sm:flex items-center gap-1.5 text-xs font-mono text-terminal-dim",children:[v&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-terminal-border",children:"·"}),c.jsxs("a",{href:`https://github.com/${v}`,target:"_blank",rel:"noopener noreferrer",className:"text-terminal-dim hover:text-terminal-text transition-colors",children:["@",v]})]}),z.model&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-terminal-border",children:"·"}),c.jsx("span",{className:"text-terminal-dim",children:z.model})]}),S&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-terminal-border",children:"·"}),c.jsx("span",{children:S})]})]})]}),c.jsxs("div",{className:"flex items-center gap-1.5 md:gap-2 shrink-0",children:[h&&!N&&c.jsxs("button",{onClick:()=>eo({view:"dashboard"}),className:"h-7 px-2.5 flex items-center gap-1.5 rounded-md bg-terminal-surface text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface-hover text-xs font-mono transition-colors",title:"All replays",children:[c.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[c.jsx("rect",{x:"1",y:"1",width:"6",height:"6",rx:"1"}),c.jsx("rect",{x:"9",y:"1",width:"6",height:"6",rx:"1"}),c.jsx("rect",{x:"1",y:"9",width:"6",height:"6",rx:"1"}),c.jsx("rect",{x:"9",y:"9",width:"6",height:"6",rx:"1"})]}),c.jsx("span",{className:"hidden sm:inline",children:"Dashboard"})]}),c.jsxs("div",{className:"flex items-center h-7 rounded-md overflow-hidden bg-terminal-surface",children:[c.jsx("button",{onClick:()=>{o.promptsOnly&&f("promptsOnly")},className:`h-full px-2.5 text-xs font-mono transition-colors ${o.promptsOnly?"text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface-hover":"bg-terminal-green-subtle text-terminal-green"}`,children:"All"}),c.jsx("button",{onClick:()=>{o.promptsOnly||f("promptsOnly")},className:`h-full px-2.5 text-xs font-mono transition-colors ${o.promptsOnly?"bg-terminal-green-subtle text-terminal-green":"text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface-hover"}`,children:"Prompts"})]}),c.jsxs("div",{ref:A,className:"relative",children:[c.jsx("button",{onClick:()=>b(C=>!C),className:`h-7 w-7 flex items-center justify-center rounded-md transition-colors text-xs ${y?"bg-terminal-green-subtle text-terminal-green":o.collapseAllTools||o.hideThinking?"bg-terminal-orange-subtle text-terminal-orange":"bg-terminal-surface text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface-hover"}`,title:"Settings",children:c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",children:[c.jsx("line",{x1:"2",y1:"4",x2:"14",y2:"4"}),c.jsx("line",{x1:"2",y1:"8",x2:"14",y2:"8"}),c.jsx("line",{x1:"2",y1:"12",x2:"14",y2:"12"}),c.jsx("circle",{cx:"5",cy:"4",r:"1.5",fill:"currentColor"}),c.jsx("circle",{cx:"10",cy:"8",r:"1.5",fill:"currentColor"}),c.jsx("circle",{cx:"6",cy:"12",r:"1.5",fill:"currentColor"})]})}),y&&c.jsxs("div",{className:"absolute right-0 top-full mt-2 w-48 bg-terminal-surface border border-terminal-border-subtle rounded-xl shadow-layer-xl z-50 py-2 overflow-hidden backdrop-blur-md",children:[!o.promptsOnly&&c.jsxs(c.Fragment,{children:[c.jsxs("button",{onClick:()=>f("collapseAllTools"),className:"w-full text-left px-3 py-2 text-xs font-mono text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface/50 transition-colors flex items-center gap-2",children:[c.jsx("span",{className:`w-3.5 h-3.5 rounded flex items-center justify-center text-xs ${o.collapseAllTools?"bg-terminal-orange-subtle text-terminal-orange":"bg-terminal-surface"}`,children:o.collapseAllTools?"✓":""}),"Collapse Tools"]}),x&&c.jsxs("button",{onClick:()=>f("hideThinking"),className:"w-full text-left px-3 py-2 text-xs font-mono text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface/50 transition-colors flex items-center gap-2",children:[c.jsx("span",{className:`w-3.5 h-3.5 rounded flex items-center justify-center text-xs ${o.hideThinking?"bg-terminal-purple-subtle text-terminal-purple":"bg-terminal-surface"}`,children:o.hideThinking?"✓":""}),"Hide Thinking"]}),c.jsx("div",{className:"border-t border-terminal-border-subtle my-1.5"})]}),c.jsxs("button",{onClick:()=>{u(),b(!1)},className:"w-full text-left px-3 py-2 text-xs font-mono text-terminal-dim hover:text-terminal-text hover:bg-terminal-surface/50 transition-colors flex items-center gap-2",children:[c.jsx("span",{className:"w-3.5 text-center",children:s==="dark"?"☾":"☀"}),s==="dark"?"Light Mode":"Dark Mode"]})]})]})]})]}),c.jsx(b0,{session:m,viewPrefs:o,viewerMode:p})]})}gx.createRoot(document.getElementById("root")).render(c.jsx(ux.StrictMode,{children:c.jsx(_0,{})}));</script>
145
+ <style rel="stylesheet" crossorigin>*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--font-sans);font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{scrollbar-width:thin;scrollbar-color:var(--border) var(--bg)}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:var(--bg)}::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}.tabular-nums{font-variant-numeric:tabular-nums}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.-right-0\.5{right:-.125rem}.-right-2{right:-.5rem}.-top-0\.5{top:-.125rem}.bottom-0{bottom:0}.bottom-\[72px\]{bottom:72px}.left-0{left:0}.left-1\/2{left:50%}.left-3{left:.75rem}.right-0{right:0}.right-3{right:.75rem}.top-0{top:0}.top-1{top:.25rem}.top-1\/2{top:50%}.top-3{top:.75rem}.top-full{top:100%}.z-10{z-index:10}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.\!m-0{margin:0!important}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1\.5{margin-top:.375rem;margin-bottom:.375rem}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-2\.5{margin-bottom:.625rem}.mb-3{margin-bottom:.75rem}.ml-0\.5{margin-left:.125rem}.ml-1{margin-left:.25rem}.ml-1\.5{margin-left:.375rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-auto{margin-left:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.mt-px{margin-top:1px}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-12{height:3rem}.h-2{height:.5rem}.h-3\.5{height:.875rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-\[65vh\]{height:65vh}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\[200px\]{max-height:200px}.max-h-\[300px\]{max-height:300px}.max-h-\[4\.5em\]{max-height:4.5em}.max-h-\[400px\]{max-height:400px}.max-h-\[50vh\]{max-height:50vh}.min-h-0{min-height:0px}.min-h-screen{min-height:100vh}.w-0\.5{width:.125rem}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-20{width:5rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-48{width:12rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-\[300px\]{max-width:300px}.max-w-\[400px\]{max-width:400px}.max-w-lg{max-width:32rem}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-2\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.625rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.625rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-terminal-blue{border-color:var(--blue)}.border-terminal-border-subtle{border-color:var(--border-subtle)}.border-terminal-dim{border-color:var(--dim)}.border-terminal-green{border-color:var(--green)}.border-l-terminal-blue{border-left-color:var(--blue)}.border-l-terminal-purple{border-left-color:var(--purple)}.\!bg-transparent{background-color:transparent!important}.bg-black\/40{background-color:#0006}.bg-black\/50{background-color:#00000080}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-terminal-bg{background-color:var(--bg)}.bg-terminal-blue{background-color:var(--blue)}.bg-terminal-blue-emphasis{background-color:var(--blue-emphasis)}.bg-terminal-blue-subtle{background-color:var(--blue-subtle)}.bg-terminal-border{background-color:var(--border)}.bg-terminal-border-subtle{background-color:var(--border-subtle)}.bg-terminal-green{background-color:var(--green)}.bg-terminal-green-emphasis{background-color:var(--green-emphasis)}.bg-terminal-green-subtle{background-color:var(--green-subtle)}.bg-terminal-orange{background-color:var(--orange)}.bg-terminal-orange-subtle{background-color:var(--orange-subtle)}.bg-terminal-purple-subtle{background-color:var(--purple-subtle)}.bg-terminal-red-subtle{background-color:var(--red-subtle)}.bg-terminal-surface{background-color:var(--surface)}.bg-terminal-surface-2{background-color:var(--surface-2)}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-\[\#3fb950\]{--tw-gradient-from: #3fb950 var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 185 80 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-terminal-bg{--tw-gradient-from: var(--bg) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-terminal-green-subtle{--tw-gradient-from: var(--green-subtle) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-transparent{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-\[\#79b8ff\]{--tw-gradient-to: #79b8ff var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3\.5{padding:.875rem}.p-4{padding:1rem}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-px{padding-top:1px;padding-bottom:1px}.pb-1{padding-bottom:.25rem}.pb-10{padding-bottom:2.5rem}.pb-2{padding-bottom:.5rem}.pb-6{padding-bottom:1.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pl-9{padding-left:2.25rem}.pr-3{padding-right:.75rem}.pt-0\.5{padding-top:.125rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-\[8vh\]{padding-top:8vh}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:var(--font-sans)}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[10px\]{font-size:10px}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-5{line-height:1.25rem}.leading-\[1\.15\]{line-height:1.15}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-terminal-bg{color:var(--bg)}.text-terminal-blue{color:var(--blue)}.text-terminal-border{color:var(--border)}.text-terminal-dim{color:var(--dim)}.text-terminal-dimmer{color:var(--dimmer)}.text-terminal-green{color:var(--green)}.text-terminal-orange{color:var(--orange)}.text-terminal-purple{color:var(--purple)}.text-terminal-red{color:var(--red)}.text-terminal-text{color:var(--text)}.text-transparent{color:transparent}.underline{text-decoration-line:underline}.placeholder-terminal-dim::-moz-placeholder{color:var(--dim)}.placeholder-terminal-dim::placeholder{color:var(--dim)}.placeholder-terminal-dimmer::-moz-placeholder{color:var(--dimmer)}.placeholder-terminal-dimmer::placeholder{color:var(--dimmer)}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow-layer-lg{--tw-shadow: var(--shadow-lg);--tw-shadow-colored: var(--shadow-lg);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-layer-md{--tw-shadow: var(--shadow-md);--tw-shadow-colored: var(--shadow-md);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-layer-sm{--tw-shadow: var(--shadow-sm);--tw-shadow-colored: var(--shadow-sm);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-layer-xl{--tw-shadow: var(--shadow-xl);--tw-shadow-colored: var(--shadow-xl);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-terminal-border-subtle{--tw-ring-color: var(--border-subtle)}.ring-transparent{--tw-ring-color: transparent}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[left\]{transition-property:left;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-material{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-material-decel{transition-timing-function:cubic-bezier(0,0,.2,1)}:root{--font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif}:root,.dark{--bg: #0d1117;--surface: #161b22;--surface-hover: #21262d;--surface-2: #1c2129;--surface-inset: #010409;--border: #30363d;--border-subtle: rgba(48, 54, 61, .5);--text: #c9d1d9;--dim: #8b949e;--dimmer: #7d8590;--green: #3fb950;--green-subtle: rgba(63, 185, 80, .15);--green-emphasis: rgba(63, 185, 80, .25);--blue: #79b8ff;--blue-subtle: rgba(121, 184, 255, .15);--blue-emphasis: rgba(121, 184, 255, .25);--orange: #d29922;--orange-subtle: rgba(210, 153, 34, .15);--orange-emphasis: rgba(210, 153, 34, .25);--red: #f85149;--red-subtle: rgba(248, 81, 73, .15);--red-emphasis: rgba(248, 81, 73, .25);--purple: #b392f0;--purple-subtle: rgba(179, 146, 240, .15);--purple-emphasis: rgba(179, 146, 240, .25);--shadow-color: 215 28% 4%;--shadow-sm: 0 1px 2px hsl(var(--shadow-color) / .5);--shadow-md: 0 1px 2px hsl(var(--shadow-color) / .4), 0 4px 8px hsl(var(--shadow-color) / .3);--shadow-lg: 0 1px 3px hsl(var(--shadow-color) / .4), 0 4px 8px hsl(var(--shadow-color) / .3), 0 12px 24px hsl(var(--shadow-color) / .25);--shadow-xl: 0 2px 4px hsl(var(--shadow-color) / .4), 0 8px 16px hsl(var(--shadow-color) / .3), 0 24px 48px hsl(var(--shadow-color) / .25)}.light{--bg: #ffffff;--surface: #f6f8fa;--surface-hover: #e6edf3;--surface-2: #ebeef1;--surface-inset: #f0f2f5;--border: #d0d7de;--border-subtle: rgba(208, 215, 222, .5);--text: #24292f;--dim: #57606a;--dimmer: #697078;--green: #1a7f37;--green-subtle: rgba(26, 127, 55, .1);--green-emphasis: rgba(26, 127, 55, .2);--blue: #0969da;--blue-subtle: rgba(9, 105, 218, .1);--blue-emphasis: rgba(9, 105, 218, .2);--orange: #9a6700;--orange-subtle: rgba(154, 103, 0, .1);--orange-emphasis: rgba(154, 103, 0, .2);--red: #cf222e;--red-subtle: rgba(207, 34, 46, .1);--red-emphasis: rgba(207, 34, 46, .2);--purple: #8250df;--purple-subtle: rgba(130, 80, 223, .1);--purple-emphasis: rgba(130, 80, 223, .2);--shadow-color: 220 10% 50%;--shadow-sm: 0 1px 2px hsl(var(--shadow-color) / .1);--shadow-md: 0 1px 2px hsl(var(--shadow-color) / .08), 0 4px 8px hsl(var(--shadow-color) / .06);--shadow-lg: 0 1px 3px hsl(var(--shadow-color) / .08), 0 4px 8px hsl(var(--shadow-color) / .06), 0 12px 24px hsl(var(--shadow-color) / .05);--shadow-xl: 0 2px 4px hsl(var(--shadow-color) / .08), 0 8px 16px hsl(var(--shadow-color) / .06), 0 24px 48px hsl(var(--shadow-color) / .05)}html.theme-transition,html.theme-transition *,html.theme-transition *:before,html.theme-transition *:after{transition:background-color .25s ease,border-color .25s ease,color .25s ease}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}button,[role=button]{-webkit-tap-highlight-color:transparent}:focus:not(:focus-visible){outline:none}:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:4px}@supports (padding: env(safe-area-inset-top)){.safe-top{padding-top:env(safe-area-inset-top)}.safe-bottom{padding-bottom:env(safe-area-inset-bottom)}}@keyframes blink{0%,to{opacity:1}50%{opacity:0}}.typing-cursor:after{content:"█";animation:blink 1s step-end infinite;color:var(--green)}@keyframes fade-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.scene-enter{animation:fade-in .3s cubic-bezier(.4,0,.2,1)}@keyframes pulse-border{0%,to{border-color:#d299224d}50%{border-color:#d2992299}}.pause-overlay{animation:pulse-border 2s ease-in-out infinite}@keyframes jump-target-flash{0%{box-shadow:0 0 #3fb95000;outline-color:#3fb95000}30%{box-shadow:0 0 0 3px #3fb95040;outline-color:#3fb95099}to{box-shadow:0 0 #3fb95000;outline-color:#3fb95000}}.jump-target-flash{outline:1px solid transparent;animation:jump-target-flash .85s ease-out}@keyframes nav-focus-pulse{0%,to{transform:translateY(0)}50%{transform:translateY(-1px)}}.scene-nav-focused{animation:nav-focus-pulse .9s ease-in-out 2}@keyframes landing-glow{0%,to{box-shadow:0 0 #3fb95000}50%{box-shadow:0 0 20px 2px #3fb95026}}.landing-pulse{animation:landing-glow 2.5s ease-in-out infinite}.hover-lift{transition:transform .2s cubic-bezier(.4,0,.2,1),box-shadow .2s cubic-bezier(.4,0,.2,1)}.hover-lift:hover{transform:translateY(-1px)}.bg-dot-grid{background-image:radial-gradient(circle,var(--border) .5px,transparent .5px);background-size:24px 24px;opacity:.03}.minimap-item{transition:background-color .2s cubic-bezier(.4,0,.2,1),border-color .2s cubic-bezier(.4,0,.2,1)}.prose-terminal{line-height:1.6}.prose-terminal p{margin:.5em 0}.prose-terminal code{background:var(--surface);padding:.15em .4em;border-radius:4px;font-size:.9em}.prose-terminal pre{background:var(--surface);padding:.75em 1em;border-radius:6px;overflow-x:auto;margin:.5em 0}.prose-terminal pre code{background:none;padding:0}.prose-terminal ul,.prose-terminal ol{padding-left:1.5em;margin:.5em 0}.prose-terminal li{margin:.25em 0}.prose-terminal h1,.prose-terminal h2,.prose-terminal h3{margin:.75em 0 .5em;font-weight:600}.prose-terminal blockquote{border-left:3px solid var(--border);padding-left:1em;color:var(--dim);margin:.5em 0}.prose-terminal a{color:var(--blue);text-decoration:underline}.prose-terminal table{border-collapse:collapse;margin:.5em 0}.prose-terminal th,.prose-terminal td{border:1px solid var(--border);padding:.4em .8em}.placeholder\:text-terminal-dimmer::-moz-placeholder{color:var(--dimmer)}.placeholder\:text-terminal-dimmer::placeholder{color:var(--dimmer)}.hover\:-translate-y-0\.5:hover{--tw-translate-y: -.125rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-terminal-blue-emphasis:hover{background-color:var(--blue-emphasis)}.hover\:bg-terminal-blue-subtle:hover{background-color:var(--blue-subtle)}.hover\:bg-terminal-green-emphasis:hover{background-color:var(--green-emphasis)}.hover\:bg-terminal-orange-emphasis:hover{background-color:var(--orange-emphasis)}.hover\:bg-terminal-purple-emphasis:hover{background-color:var(--purple-emphasis)}.hover\:bg-terminal-purple-subtle:hover{background-color:var(--purple-subtle)}.hover\:bg-terminal-red-emphasis:hover{background-color:var(--red-emphasis)}.hover\:bg-terminal-red-subtle:hover{background-color:var(--red-subtle)}.hover\:bg-terminal-surface:hover{background-color:var(--surface)}.hover\:bg-terminal-surface-hover:hover{background-color:var(--surface-hover)}.hover\:text-terminal-blue:hover{color:var(--blue)}.hover\:text-terminal-dim:hover{color:var(--dim)}.hover\:text-terminal-green:hover{color:var(--green)}.hover\:text-terminal-purple:hover{color:var(--purple)}.hover\:text-terminal-red:hover{color:var(--red)}.hover\:text-terminal-text:hover{color:var(--text)}.hover\:opacity-80:hover{opacity:.8}.hover\:shadow-layer-lg:hover{--tw-shadow: var(--shadow-lg);--tw-shadow-colored: var(--shadow-lg);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\:bg-terminal-green-emphasis{background-color:var(--green-emphasis)}.group\/ref:hover .group-hover\/ref\:text-terminal-text,.group:hover .group-hover\:text-terminal-text{color:var(--text)}.group\/batch:hover .group-hover\/batch\:opacity-100,.group\/scene:hover .group-hover\/scene\:opacity-100,.group:hover .group-hover\:opacity-100{opacity:1}.dark\:bg-green-900\/30:is(.dark *){background-color:#14532d4d}.dark\:bg-red-900\/30:is(.dark *){background-color:#7f1d1d4d}@media(min-width:640px){.sm\:mx-0{margin-left:0;margin-right:0}.sm\:inline{display:inline}.sm\:flex{display:flex}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:pt-\[15vh\]{padding-top:15vh}.sm\:text-4xl{font-size:2.25rem;line-height:2.5rem}}@media(min-width:768px){.md\:mt-12{margin-top:3rem}.md\:block{display:block}.md\:inline{display:inline}.md\:flex{display:flex}.md\:inline-flex{display:inline-flex}.md\:hidden{display:none}.md\:gap-2{gap:.5rem}.md\:gap-3{gap:.75rem}.md\:space-y-10>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2.5rem * var(--tw-space-y-reverse))}.md\:space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.md\:px-5{padding-left:1.25rem;padding-right:1.25rem}.md\:py-3{padding-top:.75rem;padding-bottom:.75rem}.md\:text-5xl{font-size:3rem;line-height:1}}@media(min-width:1024px){.lg\:inline-flex{display:inline-flex}}</style>
146
146
  </head>
147
147
  <body class="bg-terminal-bg text-terminal-text min-h-screen">
148
148
  <div id="root"></div>