code-squad-cli 1.2.2 → 1.2.4

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.
@@ -0,0 +1,154 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-D4QpJJKB.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-BOJIQeun.js","assets/ruby-BvKwtOVI.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BbnMAYS6.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-CkoXwp7k.js","assets/fortran-free-form-BxgE0vQu.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-B7Tvp0Sc.js","assets/gdshader-DkwncUOv.js","assets/gdscript-DTMYz4Jt.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-CxzCAyBv.js","assets/r-Dspwwk_N.js","assets/latex-B4uzh10-.js","assets/tex-CvyZ59Mk.js","assets/liquid-DYVedYrR.js","assets/marko-DZsq8hO1.js","assets/less-B1dDrJ26.js","assets/mdc-DUICxH0z.js","assets/nginx-DknmC5AR.js","assets/nim-CVrawwO9.js","assets/perl-C0TMdlhV.js","assets/php-CDn_0X-4.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-C1TweQQi.js","assets/csharp-K5feNrxe.js","assets/rst-B0xPkSld.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/svelte-zxCyuUbr.js","assets/templ-W15q3VgB.js","assets/go-Dn2_MT6a.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-CO9l9SDP.js","assets/vue-DN_0RTcg.js","assets/vue-html-AaS7Mt5G.js","assets/vue-vine-CQOfvN7w.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
2
+ var Wp=Object.defineProperty;var Kp=(e,t,n)=>t in e?Wp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var w=(e,t,n)=>Kp(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Rc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xc={exports:{}},go={},Tc={exports:{}},z={};/**
3
+ * @license React
4
+ * react.production.min.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var $r=Symbol.for("react.element"),Qp=Symbol.for("react.portal"),qp=Symbol.for("react.fragment"),Yp=Symbol.for("react.strict_mode"),Xp=Symbol.for("react.profiler"),Jp=Symbol.for("react.provider"),Zp=Symbol.for("react.context"),eh=Symbol.for("react.forward_ref"),th=Symbol.for("react.suspense"),nh=Symbol.for("react.memo"),rh=Symbol.for("react.lazy"),$a=Symbol.iterator;function ih(e){return e===null||typeof e!="object"?null:(e=$a&&e[$a]||e["@@iterator"],typeof e=="function"?e:null)}var Ic={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dc=Object.assign,Nc={};function Hn(e,t,n){this.props=e,this.context=t,this.refs=Nc,this.updater=n||Ic}Hn.prototype.isReactComponent={};Hn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Hn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Oc(){}Oc.prototype=Hn.prototype;function Ms(e,t,n){this.props=e,this.context=t,this.refs=Nc,this.updater=n||Ic}var Vs=Ms.prototype=new Oc;Vs.constructor=Ms;Dc(Vs,Hn.prototype);Vs.isPureReactComponent=!0;var Ua=Array.isArray,Mc=Object.prototype.hasOwnProperty,js={current:null},Vc={key:!0,ref:!0,__self:!0,__source:!0};function jc(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)Mc.call(t,r)&&!Vc.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var a=Array(s),u=0;u<s;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:$r,type:e,key:o,ref:l,props:i,_owner:js.current}}function oh(e,t){return{$$typeof:$r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Fs(e){return typeof e=="object"&&e!==null&&e.$$typeof===$r}function lh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ga=/\/+/g;function bo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?lh(""+e.key):t.toString(36)}function vi(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case $r:case Qp:l=!0}}if(l)return l=e,i=i(l),e=r===""?"."+bo(l,0):r,Ua(i)?(n="",e!=null&&(n=e.replace(Ga,"$&/")+"/"),vi(i,t,n,"",function(u){return u})):i!=null&&(Fs(i)&&(i=oh(i,n+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(Ga,"$&/")+"/")+e)),t.push(i)),1;if(l=0,r=r===""?".":r+":",Ua(e))for(var s=0;s<e.length;s++){o=e[s];var a=r+bo(o,s);l+=vi(o,t,n,a,i)}else if(a=ih(e),typeof a=="function")for(e=a.call(e),s=0;!(o=e.next()).done;)o=o.value,a=r+bo(o,s++),l+=vi(o,t,n,a,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Xr(e,t,n){if(e==null)return e;var r=[],i=0;return vi(e,r,"","",function(o){return t.call(n,o,i++)}),r}function sh(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ce={current:null},Ei={transition:null},ah={ReactCurrentDispatcher:Ce,ReactCurrentBatchConfig:Ei,ReactCurrentOwner:js};function Fc(){throw Error("act(...) is not supported in production builds of React.")}z.Children={map:Xr,forEach:function(e,t,n){Xr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Xr(e,function(){t++}),t},toArray:function(e){return Xr(e,function(t){return t})||[]},only:function(e){if(!Fs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};z.Component=Hn;z.Fragment=qp;z.Profiler=Xp;z.PureComponent=Ms;z.StrictMode=Yp;z.Suspense=th;z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ah;z.act=Fc;z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Dc({},e.props),i=e.key,o=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,l=js.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)Mc.call(t,a)&&!Vc.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var u=0;u<a;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:$r,type:e.type,key:i,ref:o,props:r,_owner:l}};z.createContext=function(e){return e={$$typeof:Zp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Jp,_context:e},e.Consumer=e};z.createElement=jc;z.createFactory=function(e){var t=jc.bind(null,e);return t.type=e,t};z.createRef=function(){return{current:null}};z.forwardRef=function(e){return{$$typeof:eh,render:e}};z.isValidElement=Fs;z.lazy=function(e){return{$$typeof:rh,_payload:{_status:-1,_result:e},_init:sh}};z.memo=function(e,t){return{$$typeof:nh,type:e,compare:t===void 0?null:t}};z.startTransition=function(e){var t=Ei.transition;Ei.transition={};try{e()}finally{Ei.transition=t}};z.unstable_act=Fc;z.useCallback=function(e,t){return Ce.current.useCallback(e,t)};z.useContext=function(e){return Ce.current.useContext(e)};z.useDebugValue=function(){};z.useDeferredValue=function(e){return Ce.current.useDeferredValue(e)};z.useEffect=function(e,t){return Ce.current.useEffect(e,t)};z.useId=function(){return Ce.current.useId()};z.useImperativeHandle=function(e,t,n){return Ce.current.useImperativeHandle(e,t,n)};z.useInsertionEffect=function(e,t){return Ce.current.useInsertionEffect(e,t)};z.useLayoutEffect=function(e,t){return Ce.current.useLayoutEffect(e,t)};z.useMemo=function(e,t){return Ce.current.useMemo(e,t)};z.useReducer=function(e,t,n){return Ce.current.useReducer(e,t,n)};z.useRef=function(e){return Ce.current.useRef(e)};z.useState=function(e){return Ce.current.useState(e)};z.useSyncExternalStore=function(e,t,n){return Ce.current.useSyncExternalStore(e,t,n)};z.useTransition=function(){return Ce.current.useTransition()};z.version="18.3.1";Tc.exports=z;var M=Tc.exports;const zc=Rc(M);/**
11
+ * @license React
12
+ * react-jsx-runtime.production.min.js
13
+ *
14
+ * Copyright (c) Facebook, Inc. and its affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var uh=M,ch=Symbol.for("react.element"),dh=Symbol.for("react.fragment"),fh=Object.prototype.hasOwnProperty,ph=uh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,hh={key:!0,ref:!0,__self:!0,__source:!0};function Bc(e,t,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)fh.call(t,r)&&!hh.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:ch,type:e,key:o,ref:l,props:i,_owner:ph.current}}go.Fragment=dh;go.jsx=Bc;go.jsxs=Bc;xc.exports=go;var S=xc.exports,Cl={},bc={exports:{}},ze={},$c={exports:{}},Uc={};/**
19
+ * @license React
20
+ * scheduler.production.min.js
21
+ *
22
+ * Copyright (c) Facebook, Inc. and its affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */(function(e){function t(I,V){var F=I.length;I.push(V);e:for(;0<F;){var Z=F-1>>>1,ue=I[Z];if(0<i(ue,V))I[Z]=V,I[F]=ue,F=Z;else break e}}function n(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var V=I[0],F=I.pop();if(F!==V){I[0]=F;e:for(var Z=0,ue=I.length,qr=ue>>>1;Z<qr;){var Qt=2*(Z+1)-1,Bo=I[Qt],qt=Qt+1,Yr=I[qt];if(0>i(Bo,F))qt<ue&&0>i(Yr,Bo)?(I[Z]=Yr,I[qt]=F,Z=qt):(I[Z]=Bo,I[Qt]=F,Z=Qt);else if(qt<ue&&0>i(Yr,F))I[Z]=Yr,I[qt]=F,Z=qt;else break e}}return V}function i(I,V){var F=I.sortIndex-V.sortIndex;return F!==0?F:I.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],c=1,d=null,f=3,p=!1,y=!1,v=!1,L=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(I){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=I)r(u),V.sortIndex=V.expirationTime,t(a,V);else break;V=n(u)}}function E(I){if(v=!1,_(I),!y)if(n(a)!==null)y=!0,rt(C);else{var V=n(u);V!==null&&zo(E,V.startTime-I)}}function C(I,V){y=!1,v&&(v=!1,g(x),x=-1),p=!0;var F=f;try{for(_(V),d=n(a);d!==null&&(!(d.expirationTime>V)||I&&!X());){var Z=d.callback;if(typeof Z=="function"){d.callback=null,f=d.priorityLevel;var ue=Z(d.expirationTime<=V);V=e.unstable_now(),typeof ue=="function"?d.callback=ue:d===n(a)&&r(a),_(V)}else r(a);d=n(a)}if(d!==null)var qr=!0;else{var Qt=n(u);Qt!==null&&zo(E,Qt.startTime-V),qr=!1}return qr}finally{d=null,f=F,p=!1}}var R=!1,k=null,x=-1,O=5,D=-1;function X(){return!(e.unstable_now()-D<O)}function ie(){if(k!==null){var I=e.unstable_now();D=I;var V=!0;try{V=k(!0,I)}finally{V?pt():(R=!1,k=null)}}else R=!1}var pt;if(typeof m=="function")pt=function(){m(ie)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,De=W.port2;W.port1.onmessage=ie,pt=function(){De.postMessage(null)}}else pt=function(){L(ie,0)};function rt(I){k=I,R||(R=!0,pt())}function zo(I,V){x=L(function(){I(e.unstable_now())},V)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_continueExecution=function(){y||p||(y=!0,rt(C))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(I){switch(f){case 1:case 2:case 3:var V=3;break;default:V=f}var F=f;f=V;try{return I()}finally{f=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,V){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var F=f;f=I;try{return V()}finally{f=F}},e.unstable_scheduleCallback=function(I,V,F){var Z=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?Z+F:Z):F=Z,I){case 1:var ue=-1;break;case 2:ue=250;break;case 5:ue=1073741823;break;case 4:ue=1e4;break;default:ue=5e3}return ue=F+ue,I={id:c++,callback:V,priorityLevel:I,startTime:F,expirationTime:ue,sortIndex:-1},F>Z?(I.sortIndex=F,t(u,I),n(a)===null&&I===n(u)&&(v?(g(x),x=-1):v=!0,zo(E,F-Z))):(I.sortIndex=ue,t(a,I),y||p||(y=!0,rt(C))),I},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(I){var V=f;return function(){var F=f;f=V;try{return I.apply(this,arguments)}finally{f=F}}}})(Uc);$c.exports=Uc;var mh=$c.exports;/**
27
+ * @license React
28
+ * react-dom.production.min.js
29
+ *
30
+ * Copyright (c) Facebook, Inc. and its affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var gh=M,Fe=mh;function P(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;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."}var Gc=new Set,Sr={};function dn(e,t){Vn(e,t),Vn(e+"Capture",t)}function Vn(e,t){for(Sr[e]=t,e=0;e<t.length;e++)Gc.add(t[e])}var Et=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ll=Object.prototype.hasOwnProperty,_h=/^[: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]*$/,Ha={},Wa={};function yh(e){return Ll.call(Wa,e)?!0:Ll.call(Ha,e)?!1:_h.test(e)?Wa[e]=!0:(Ha[e]=!0,!1)}function vh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Eh(e,t,n,r){if(t===null||typeof t>"u"||vh(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Le(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[e]=new Le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];me[t]=new Le(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new Le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[e]=new Le(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){me[e]=new Le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){me[e]=new Le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){me[e]=new Le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){me[e]=new Le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){me[e]=new Le(e,5,!1,e.toLowerCase(),null,!1,!1)});var zs=/[\-:]([a-z])/g;function Bs(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(zs,Bs);me[t]=new Le(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(zs,Bs);me[t]=new Le(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(zs,Bs);me[t]=new Le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){me[e]=new Le(e,1,!1,e.toLowerCase(),null,!1,!1)});me.xlinkHref=new Le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){me[e]=new Le(e,1,!1,e.toLowerCase(),null,!0,!0)});function bs(e,t,n,r){var i=me.hasOwnProperty(t)?me[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Eh(t,n,i,r)&&(n=null),r||i===null?yh(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Lt=gh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Jr=Symbol.for("react.element"),mn=Symbol.for("react.portal"),gn=Symbol.for("react.fragment"),$s=Symbol.for("react.strict_mode"),Pl=Symbol.for("react.profiler"),Hc=Symbol.for("react.provider"),Wc=Symbol.for("react.context"),Us=Symbol.for("react.forward_ref"),Al=Symbol.for("react.suspense"),Rl=Symbol.for("react.suspense_list"),Gs=Symbol.for("react.memo"),At=Symbol.for("react.lazy"),Kc=Symbol.for("react.offscreen"),Ka=Symbol.iterator;function Xn(e){return e===null||typeof e!="object"?null:(e=Ka&&e[Ka]||e["@@iterator"],typeof e=="function"?e:null)}var Y=Object.assign,$o;function lr(e){if($o===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);$o=t&&t[1]||""}return`
35
+ `+$o+e}var Uo=!1;function Go(e,t){if(!e||Uo)return"";Uo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
36
+ `),o=r.stack.split(`
37
+ `),l=i.length-1,s=o.length-1;1<=l&&0<=s&&i[l]!==o[s];)s--;for(;1<=l&&0<=s;l--,s--)if(i[l]!==o[s]){if(l!==1||s!==1)do if(l--,s--,0>s||i[l]!==o[s]){var a=`
38
+ `+i[l].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{Uo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?lr(e):""}function Sh(e){switch(e.tag){case 5:return lr(e.type);case 16:return lr("Lazy");case 13:return lr("Suspense");case 19:return lr("SuspenseList");case 0:case 2:case 15:return e=Go(e.type,!1),e;case 11:return e=Go(e.type.render,!1),e;case 1:return e=Go(e.type,!0),e;default:return""}}function xl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case gn:return"Fragment";case mn:return"Portal";case Pl:return"Profiler";case $s:return"StrictMode";case Al:return"Suspense";case Rl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Wc:return(e.displayName||"Context")+".Consumer";case Hc:return(e._context.displayName||"Context")+".Provider";case Us:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gs:return t=e.displayName||null,t!==null?t:xl(e.type)||"Memo";case At:t=e._payload,e=e._init;try{return xl(e(t))}catch{}}return null}function wh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xl(t);case 8:return t===$s?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function $t(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kh(e){var t=Qc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zr(e){e._valueTracker||(e._valueTracker=kh(e))}function qc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ni(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}}function Tl(e,t){var n=t.checked;return Y({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Qa(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=$t(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Yc(e,t){t=t.checked,t!=null&&bs(e,"checked",t,!1)}function Il(e,t){Yc(e,t);var n=$t(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Dl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Dl(e,t.type,$t(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qa(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Dl(e,t,n){(t!=="number"||Ni(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var sr=Array.isArray;function Rn(e,t,n,r){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&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$t(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Nl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(P(91));return Y({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ya(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(P(92));if(sr(n)){if(1<n.length)throw Error(P(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:$t(n)}}function Xc(e,t){var n=$t(t.value),r=$t(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Xa(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Jc(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ol(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Jc(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ei,Zc=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ei=ei||document.createElement("div"),ei.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ei.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var dr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ch=["Webkit","ms","Moz","O"];Object.keys(dr).forEach(function(e){Ch.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),dr[t]=dr[e]})});function ed(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||dr.hasOwnProperty(e)&&dr[e]?(""+t).trim():t+"px"}function td(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ed(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Lh=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ml(e,t){if(t){if(Lh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function Vl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 jl=null;function Hs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fl=null,xn=null,Tn=null;function Ja(e){if(e=Hr(e)){if(typeof Fl!="function")throw Error(P(280));var t=e.stateNode;t&&(t=So(t),Fl(e.stateNode,e.type,t))}}function nd(e){xn?Tn?Tn.push(e):Tn=[e]:xn=e}function rd(){if(xn){var e=xn,t=Tn;if(Tn=xn=null,Ja(e),t)for(e=0;e<t.length;e++)Ja(t[e])}}function id(e,t){return e(t)}function od(){}var Ho=!1;function ld(e,t,n){if(Ho)return e(t,n);Ho=!0;try{return id(e,t,n)}finally{Ho=!1,(xn!==null||Tn!==null)&&(od(),rd())}}function kr(e,t){var n=e.stateNode;if(n===null)return null;var r=So(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(P(231,t,typeof n));return n}var zl=!1;if(Et)try{var Jn={};Object.defineProperty(Jn,"passive",{get:function(){zl=!0}}),window.addEventListener("test",Jn,Jn),window.removeEventListener("test",Jn,Jn)}catch{zl=!1}function Ph(e,t,n,r,i,o,l,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var fr=!1,Oi=null,Mi=!1,Bl=null,Ah={onError:function(e){fr=!0,Oi=e}};function Rh(e,t,n,r,i,o,l,s,a){fr=!1,Oi=null,Ph.apply(Ah,arguments)}function xh(e,t,n,r,i,o,l,s,a){if(Rh.apply(this,arguments),fr){if(fr){var u=Oi;fr=!1,Oi=null}else throw Error(P(198));Mi||(Mi=!0,Bl=u)}}function fn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function sd(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 Za(e){if(fn(e)!==e)throw Error(P(188))}function Th(e){var t=e.alternate;if(!t){if(t=fn(e),t===null)throw Error(P(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Za(i),e;if(o===r)return Za(i),t;o=o.sibling}throw Error(P(188))}if(n.return!==r.return)n=i,r=o;else{for(var l=!1,s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l){for(s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l)throw Error(P(189))}}if(n.alternate!==r)throw Error(P(190))}if(n.tag!==3)throw Error(P(188));return n.stateNode.current===n?e:t}function ad(e){return e=Th(e),e!==null?ud(e):null}function ud(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ud(e);if(t!==null)return t;e=e.sibling}return null}var cd=Fe.unstable_scheduleCallback,eu=Fe.unstable_cancelCallback,Ih=Fe.unstable_shouldYield,Dh=Fe.unstable_requestPaint,ee=Fe.unstable_now,Nh=Fe.unstable_getCurrentPriorityLevel,Ws=Fe.unstable_ImmediatePriority,dd=Fe.unstable_UserBlockingPriority,Vi=Fe.unstable_NormalPriority,Oh=Fe.unstable_LowPriority,fd=Fe.unstable_IdlePriority,_o=null,dt=null;function Mh(e){if(dt&&typeof dt.onCommitFiberRoot=="function")try{dt.onCommitFiberRoot(_o,e,void 0,(e.current.flags&128)===128)}catch{}}var et=Math.clz32?Math.clz32:Fh,Vh=Math.log,jh=Math.LN2;function Fh(e){return e>>>=0,e===0?32:31-(Vh(e)/jh|0)|0}var ti=64,ni=4194304;function ar(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ji(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~i;s!==0?r=ar(s):(o&=l,o!==0&&(r=ar(o)))}else l=n&~i,l!==0?r=ar(l):o!==0&&(r=ar(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-et(t),i=1<<n,r|=e[n],t&=~i;return r}function zh(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Bh(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-et(o),s=1<<l,a=i[l];a===-1?(!(s&n)||s&r)&&(i[l]=zh(s,t)):a<=t&&(e.expiredLanes|=s),o&=~s}}function bl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function pd(){var e=ti;return ti<<=1,!(ti&4194240)&&(ti=64),e}function Wo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ur(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-et(t),e[t]=n}function bh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-et(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Ks(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-et(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var b=0;function hd(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var md,Qs,gd,_d,yd,$l=!1,ri=[],Nt=null,Ot=null,Mt=null,Cr=new Map,Lr=new Map,xt=[],$h="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 submit".split(" ");function tu(e,t){switch(e){case"focusin":case"focusout":Nt=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":Mt=null;break;case"pointerover":case"pointerout":Cr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lr.delete(t.pointerId)}}function Zn(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Hr(t),t!==null&&Qs(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Uh(e,t,n,r,i){switch(t){case"focusin":return Nt=Zn(Nt,e,t,n,r,i),!0;case"dragenter":return Ot=Zn(Ot,e,t,n,r,i),!0;case"mouseover":return Mt=Zn(Mt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Cr.set(o,Zn(Cr.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Lr.set(o,Zn(Lr.get(o)||null,e,t,n,r,i)),!0}return!1}function vd(e){var t=Zt(e.target);if(t!==null){var n=fn(t);if(n!==null){if(t=n.tag,t===13){if(t=sd(n),t!==null){e.blockedOn=t,yd(e.priority,function(){gd(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 Si(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ul(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);jl=r,n.target.dispatchEvent(r),jl=null}else return t=Hr(n),t!==null&&Qs(t),e.blockedOn=n,!1;t.shift()}return!0}function nu(e,t,n){Si(e)&&n.delete(t)}function Gh(){$l=!1,Nt!==null&&Si(Nt)&&(Nt=null),Ot!==null&&Si(Ot)&&(Ot=null),Mt!==null&&Si(Mt)&&(Mt=null),Cr.forEach(nu),Lr.forEach(nu)}function er(e,t){e.blockedOn===t&&(e.blockedOn=null,$l||($l=!0,Fe.unstable_scheduleCallback(Fe.unstable_NormalPriority,Gh)))}function Pr(e){function t(i){return er(i,e)}if(0<ri.length){er(ri[0],e);for(var n=1;n<ri.length;n++){var r=ri[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Nt!==null&&er(Nt,e),Ot!==null&&er(Ot,e),Mt!==null&&er(Mt,e),Cr.forEach(t),Lr.forEach(t),n=0;n<xt.length;n++)r=xt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<xt.length&&(n=xt[0],n.blockedOn===null);)vd(n),n.blockedOn===null&&xt.shift()}var In=Lt.ReactCurrentBatchConfig,Fi=!0;function Hh(e,t,n,r){var i=b,o=In.transition;In.transition=null;try{b=1,qs(e,t,n,r)}finally{b=i,In.transition=o}}function Wh(e,t,n,r){var i=b,o=In.transition;In.transition=null;try{b=4,qs(e,t,n,r)}finally{b=i,In.transition=o}}function qs(e,t,n,r){if(Fi){var i=Ul(e,t,n,r);if(i===null)nl(e,t,r,zi,n),tu(e,r);else if(Uh(i,e,t,n,r))r.stopPropagation();else if(tu(e,r),t&4&&-1<$h.indexOf(e)){for(;i!==null;){var o=Hr(i);if(o!==null&&md(o),o=Ul(e,t,n,r),o===null&&nl(e,t,r,zi,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else nl(e,t,r,null,n)}}var zi=null;function Ul(e,t,n,r){if(zi=null,e=Hs(r),e=Zt(e),e!==null)if(t=fn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=sd(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 zi=e,null}function Ed(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Nh()){case Ws:return 1;case dd:return 4;case Vi:case Oh:return 16;case fd:return 536870912;default:return 16}default:return 16}}var It=null,Ys=null,wi=null;function Sd(){if(wi)return wi;var e,t=Ys,n=t.length,r,i="value"in It?It.value:It.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===i[o-r];r++);return wi=i.slice(e,1<r?1-r:void 0)}function ki(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 ii(){return!0}function ru(){return!1}function Be(e){function t(n,r,i,o,l){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ii:ru,this.isPropagationStopped=ru,this}return Y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ii)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ii)},persist:function(){},isPersistent:ii}),t}var Wn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xs=Be(Wn),Gr=Y({},Wn,{view:0,detail:0}),Kh=Be(Gr),Ko,Qo,tr,yo=Y({},Gr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Js,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==tr&&(tr&&e.type==="mousemove"?(Ko=e.screenX-tr.screenX,Qo=e.screenY-tr.screenY):Qo=Ko=0,tr=e),Ko)},movementY:function(e){return"movementY"in e?e.movementY:Qo}}),iu=Be(yo),Qh=Y({},yo,{dataTransfer:0}),qh=Be(Qh),Yh=Y({},Gr,{relatedTarget:0}),qo=Be(Yh),Xh=Y({},Wn,{animationName:0,elapsedTime:0,pseudoElement:0}),Jh=Be(Xh),Zh=Y({},Wn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),em=Be(Zh),tm=Y({},Wn,{data:0}),ou=Be(tm),nm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rm={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"},im={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function om(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=im[e])?!!t[e]:!1}function Js(){return om}var lm=Y({},Gr,{key:function(e){if(e.key){var t=nm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ki(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?rm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Js,charCode:function(e){return e.type==="keypress"?ki(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ki(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),sm=Be(lm),am=Y({},yo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lu=Be(am),um=Y({},Gr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Js}),cm=Be(um),dm=Y({},Wn,{propertyName:0,elapsedTime:0,pseudoElement:0}),fm=Be(dm),pm=Y({},yo,{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}),hm=Be(pm),mm=[9,13,27,32],Zs=Et&&"CompositionEvent"in window,pr=null;Et&&"documentMode"in document&&(pr=document.documentMode);var gm=Et&&"TextEvent"in window&&!pr,wd=Et&&(!Zs||pr&&8<pr&&11>=pr),su=" ",au=!1;function kd(e,t){switch(e){case"keyup":return mm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _n=!1;function _m(e,t){switch(e){case"compositionend":return Cd(t);case"keypress":return t.which!==32?null:(au=!0,su);case"textInput":return e=t.data,e===su&&au?null:e;default:return null}}function ym(e,t){if(_n)return e==="compositionend"||!Zs&&kd(e,t)?(e=Sd(),wi=Ys=It=null,_n=!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 wd&&t.locale!=="ko"?null:t.data;default:return null}}var vm={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 uu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!vm[e.type]:t==="textarea"}function Ld(e,t,n,r){nd(r),t=Bi(t,"onChange"),0<t.length&&(n=new Xs("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var hr=null,Ar=null;function Em(e){Vd(e,0)}function vo(e){var t=En(e);if(qc(t))return e}function Sm(e,t){if(e==="change")return t}var Pd=!1;if(Et){var Yo;if(Et){var Xo="oninput"in document;if(!Xo){var cu=document.createElement("div");cu.setAttribute("oninput","return;"),Xo=typeof cu.oninput=="function"}Yo=Xo}else Yo=!1;Pd=Yo&&(!document.documentMode||9<document.documentMode)}function du(){hr&&(hr.detachEvent("onpropertychange",Ad),Ar=hr=null)}function Ad(e){if(e.propertyName==="value"&&vo(Ar)){var t=[];Ld(t,Ar,e,Hs(e)),ld(Em,t)}}function wm(e,t,n){e==="focusin"?(du(),hr=t,Ar=n,hr.attachEvent("onpropertychange",Ad)):e==="focusout"&&du()}function km(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vo(Ar)}function Cm(e,t){if(e==="click")return vo(t)}function Lm(e,t){if(e==="input"||e==="change")return vo(t)}function Pm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nt=typeof Object.is=="function"?Object.is:Pm;function Rr(e,t){if(nt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ll.call(t,i)||!nt(e[i],t[i]))return!1}return!0}function fu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pu(e,t){var n=fu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=fu(n)}}function Rd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xd(){for(var e=window,t=Ni();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ni(e.document)}return t}function ea(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")}function Am(e){var t=xd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Rd(n.ownerDocument.documentElement,n)){if(r!==null&&ea(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=pu(n,o);var l=pu(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Rm=Et&&"documentMode"in document&&11>=document.documentMode,yn=null,Gl=null,mr=null,Hl=!1;function hu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hl||yn==null||yn!==Ni(r)||(r=yn,"selectionStart"in r&&ea(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),mr&&Rr(mr,r)||(mr=r,r=Bi(Gl,"onSelect"),0<r.length&&(t=new Xs("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yn)))}function oi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var vn={animationend:oi("Animation","AnimationEnd"),animationiteration:oi("Animation","AnimationIteration"),animationstart:oi("Animation","AnimationStart"),transitionend:oi("Transition","TransitionEnd")},Jo={},Td={};Et&&(Td=document.createElement("div").style,"AnimationEvent"in window||(delete vn.animationend.animation,delete vn.animationiteration.animation,delete vn.animationstart.animation),"TransitionEvent"in window||delete vn.transitionend.transition);function Eo(e){if(Jo[e])return Jo[e];if(!vn[e])return e;var t=vn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Td)return Jo[e]=t[n];return e}var Id=Eo("animationend"),Dd=Eo("animationiteration"),Nd=Eo("animationstart"),Od=Eo("transitionend"),Md=new Map,mu="abort auxClick 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(" ");function Gt(e,t){Md.set(e,t),dn(t,[e])}for(var Zo=0;Zo<mu.length;Zo++){var el=mu[Zo],xm=el.toLowerCase(),Tm=el[0].toUpperCase()+el.slice(1);Gt(xm,"on"+Tm)}Gt(Id,"onAnimationEnd");Gt(Dd,"onAnimationIteration");Gt(Nd,"onAnimationStart");Gt("dblclick","onDoubleClick");Gt("focusin","onFocus");Gt("focusout","onBlur");Gt(Od,"onTransitionEnd");Vn("onMouseEnter",["mouseout","mouseover"]);Vn("onMouseLeave",["mouseout","mouseover"]);Vn("onPointerEnter",["pointerout","pointerover"]);Vn("onPointerLeave",["pointerout","pointerover"]);dn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));dn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));dn("onBeforeInput",["compositionend","keypress","textInput","paste"]);dn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));dn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));dn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ur="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(" "),Im=new Set("cancel close invalid load scroll toggle".split(" ").concat(ur));function gu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,xh(r,t,void 0,e),e.currentTarget=null}function Vd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var l=r.length-1;0<=l;l--){var s=r[l],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==o&&i.isPropagationStopped())break e;gu(i,s,u),o=a}else for(l=0;l<r.length;l++){if(s=r[l],a=s.instance,u=s.currentTarget,s=s.listener,a!==o&&i.isPropagationStopped())break e;gu(i,s,u),o=a}}}if(Mi)throw e=Bl,Mi=!1,Bl=null,e}function G(e,t){var n=t[Yl];n===void 0&&(n=t[Yl]=new Set);var r=e+"__bubble";n.has(r)||(jd(t,e,2,!1),n.add(r))}function tl(e,t,n){var r=0;t&&(r|=4),jd(n,e,r,t)}var li="_reactListening"+Math.random().toString(36).slice(2);function xr(e){if(!e[li]){e[li]=!0,Gc.forEach(function(n){n!=="selectionchange"&&(Im.has(n)||tl(n,!1,e),tl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[li]||(t[li]=!0,tl("selectionchange",!1,t))}}function jd(e,t,n,r){switch(Ed(t)){case 1:var i=Hh;break;case 4:i=Wh;break;default:i=qs}n=i.bind(null,t,n,e),i=void 0,!zl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?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 nl(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(l===4)for(l=r.return;l!==null;){var a=l.tag;if((a===3||a===4)&&(a=l.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;l=l.return}for(;s!==null;){if(l=Zt(s),l===null)return;if(a=l.tag,a===5||a===6){r=o=l;continue e}s=s.parentNode}}r=r.return}ld(function(){var u=o,c=Hs(n),d=[];e:{var f=Md.get(e);if(f!==void 0){var p=Xs,y=e;switch(e){case"keypress":if(ki(n)===0)break e;case"keydown":case"keyup":p=sm;break;case"focusin":y="focus",p=qo;break;case"focusout":y="blur",p=qo;break;case"beforeblur":case"afterblur":p=qo;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":p=iu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=qh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=cm;break;case Id:case Dd:case Nd:p=Jh;break;case Od:p=fm;break;case"scroll":p=Kh;break;case"wheel":p=hm;break;case"copy":case"cut":case"paste":p=em;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=lu}var v=(t&4)!==0,L=!v&&e==="scroll",g=v?f!==null?f+"Capture":null:f;v=[];for(var m=u,_;m!==null;){_=m;var E=_.stateNode;if(_.tag===5&&E!==null&&(_=E,g!==null&&(E=kr(m,g),E!=null&&v.push(Tr(m,E,_)))),L)break;m=m.return}0<v.length&&(f=new p(f,y,null,n,c),d.push({event:f,listeners:v}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==jl&&(y=n.relatedTarget||n.fromElement)&&(Zt(y)||y[St]))break e;if((p||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,p?(y=n.relatedTarget||n.toElement,p=u,y=y?Zt(y):null,y!==null&&(L=fn(y),y!==L||y.tag!==5&&y.tag!==6)&&(y=null)):(p=null,y=u),p!==y)){if(v=iu,E="onMouseLeave",g="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(v=lu,E="onPointerLeave",g="onPointerEnter",m="pointer"),L=p==null?f:En(p),_=y==null?f:En(y),f=new v(E,m+"leave",p,n,c),f.target=L,f.relatedTarget=_,E=null,Zt(c)===u&&(v=new v(g,m+"enter",y,n,c),v.target=_,v.relatedTarget=L,E=v),L=E,p&&y)t:{for(v=p,g=y,m=0,_=v;_;_=hn(_))m++;for(_=0,E=g;E;E=hn(E))_++;for(;0<m-_;)v=hn(v),m--;for(;0<_-m;)g=hn(g),_--;for(;m--;){if(v===g||g!==null&&v===g.alternate)break t;v=hn(v),g=hn(g)}v=null}else v=null;p!==null&&_u(d,f,p,v,!1),y!==null&&L!==null&&_u(d,L,y,v,!0)}}e:{if(f=u?En(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var C=Sm;else if(uu(f))if(Pd)C=Lm;else{C=km;var R=wm}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(C=Cm);if(C&&(C=C(e,u))){Ld(d,C,n,c);break e}R&&R(e,f,u),e==="focusout"&&(R=f._wrapperState)&&R.controlled&&f.type==="number"&&Dl(f,"number",f.value)}switch(R=u?En(u):window,e){case"focusin":(uu(R)||R.contentEditable==="true")&&(yn=R,Gl=u,mr=null);break;case"focusout":mr=Gl=yn=null;break;case"mousedown":Hl=!0;break;case"contextmenu":case"mouseup":case"dragend":Hl=!1,hu(d,n,c);break;case"selectionchange":if(Rm)break;case"keydown":case"keyup":hu(d,n,c)}var k;if(Zs)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else _n?kd(e,n)&&(x="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(x="onCompositionStart");x&&(wd&&n.locale!=="ko"&&(_n||x!=="onCompositionStart"?x==="onCompositionEnd"&&_n&&(k=Sd()):(It=c,Ys="value"in It?It.value:It.textContent,_n=!0)),R=Bi(u,x),0<R.length&&(x=new ou(x,e,null,n,c),d.push({event:x,listeners:R}),k?x.data=k:(k=Cd(n),k!==null&&(x.data=k)))),(k=gm?_m(e,n):ym(e,n))&&(u=Bi(u,"onBeforeInput"),0<u.length&&(c=new ou("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=k))}Vd(d,t)})}function Tr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Bi(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=kr(e,n),o!=null&&r.unshift(Tr(e,o,i)),o=kr(e,t),o!=null&&r.push(Tr(e,o,i))),e=e.return}return r}function hn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _u(e,t,n,r,i){for(var o=t._reactName,l=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,i?(a=kr(n,o),a!=null&&l.unshift(Tr(n,a,s))):i||(a=kr(n,o),a!=null&&l.push(Tr(n,a,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Dm=/\r\n?/g,Nm=/\u0000|\uFFFD/g;function yu(e){return(typeof e=="string"?e:""+e).replace(Dm,`
39
+ `).replace(Nm,"")}function si(e,t,n){if(t=yu(t),yu(e)!==t&&n)throw Error(P(425))}function bi(){}var Wl=null,Kl=null;function Ql(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ql=typeof setTimeout=="function"?setTimeout:void 0,Om=typeof clearTimeout=="function"?clearTimeout:void 0,vu=typeof Promise=="function"?Promise:void 0,Mm=typeof queueMicrotask=="function"?queueMicrotask:typeof vu<"u"?function(e){return vu.resolve(null).then(e).catch(Vm)}:ql;function Vm(e){setTimeout(function(){throw e})}function rl(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Pr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Pr(t)}function Vt(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==="$?")break;if(t==="/$")return null}}return e}function Eu(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Kn=Math.random().toString(36).slice(2),ut="__reactFiber$"+Kn,Ir="__reactProps$"+Kn,St="__reactContainer$"+Kn,Yl="__reactEvents$"+Kn,jm="__reactListeners$"+Kn,Fm="__reactHandles$"+Kn;function Zt(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[St]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Eu(e);e!==null;){if(n=e[ut])return n;e=Eu(e)}return t}e=n,n=e.parentNode}return null}function Hr(e){return e=e[ut]||e[St],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function En(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(P(33))}function So(e){return e[Ir]||null}var Xl=[],Sn=-1;function Ht(e){return{current:e}}function H(e){0>Sn||(e.current=Xl[Sn],Xl[Sn]=null,Sn--)}function U(e,t){Sn++,Xl[Sn]=e.current,e.current=t}var Ut={},Se=Ht(Ut),Re=Ht(!1),ln=Ut;function jn(e,t){var n=e.type.contextTypes;if(!n)return Ut;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function xe(e){return e=e.childContextTypes,e!=null}function $i(){H(Re),H(Se)}function Su(e,t,n){if(Se.current!==Ut)throw Error(P(168));U(Se,t),U(Re,n)}function Fd(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(P(108,wh(e)||"Unknown",i));return Y({},n,r)}function Ui(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ut,ln=Se.current,U(Se,e),U(Re,Re.current),!0}function wu(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=Fd(e,t,ln),r.__reactInternalMemoizedMergedChildContext=e,H(Re),H(Se),U(Se,e)):H(Re),U(Re,n)}var mt=null,wo=!1,il=!1;function zd(e){mt===null?mt=[e]:mt.push(e)}function zm(e){wo=!0,zd(e)}function Wt(){if(!il&&mt!==null){il=!0;var e=0,t=b;try{var n=mt;for(b=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}mt=null,wo=!1}catch(i){throw mt!==null&&(mt=mt.slice(e+1)),cd(Ws,Wt),i}finally{b=t,il=!1}}return null}var wn=[],kn=0,Gi=null,Hi=0,Ue=[],Ge=0,sn=null,_t=1,yt="";function Yt(e,t){wn[kn++]=Hi,wn[kn++]=Gi,Gi=e,Hi=t}function Bd(e,t,n){Ue[Ge++]=_t,Ue[Ge++]=yt,Ue[Ge++]=sn,sn=e;var r=_t;e=yt;var i=32-et(r)-1;r&=~(1<<i),n+=1;var o=32-et(t)+i;if(30<o){var l=i-i%5;o=(r&(1<<l)-1).toString(32),r>>=l,i-=l,_t=1<<32-et(t)+i|n<<i|r,yt=o+e}else _t=1<<o|n<<i|r,yt=e}function ta(e){e.return!==null&&(Yt(e,1),Bd(e,1,0))}function na(e){for(;e===Gi;)Gi=wn[--kn],wn[kn]=null,Hi=wn[--kn],wn[kn]=null;for(;e===sn;)sn=Ue[--Ge],Ue[Ge]=null,yt=Ue[--Ge],Ue[Ge]=null,_t=Ue[--Ge],Ue[Ge]=null}var je=null,Ve=null,K=!1,Ze=null;function bd(e,t){var n=We(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ku(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,je=e,Ve=Vt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,je=e,Ve=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=sn!==null?{id:_t,overflow:yt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=We(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,je=e,Ve=null,!0):!1;default:return!1}}function Jl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Zl(e){if(K){var t=Ve;if(t){var n=t;if(!ku(e,t)){if(Jl(e))throw Error(P(418));t=Vt(n.nextSibling);var r=je;t&&ku(e,t)?bd(r,n):(e.flags=e.flags&-4097|2,K=!1,je=e)}}else{if(Jl(e))throw Error(P(418));e.flags=e.flags&-4097|2,K=!1,je=e}}}function Cu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;je=e}function ai(e){if(e!==je)return!1;if(!K)return Cu(e),K=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ql(e.type,e.memoizedProps)),t&&(t=Ve)){if(Jl(e))throw $d(),Error(P(418));for(;t;)bd(e,t),t=Vt(t.nextSibling)}if(Cu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(P(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ve=Vt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ve=null}}else Ve=je?Vt(e.stateNode.nextSibling):null;return!0}function $d(){for(var e=Ve;e;)e=Vt(e.nextSibling)}function Fn(){Ve=je=null,K=!1}function ra(e){Ze===null?Ze=[e]:Ze.push(e)}var Bm=Lt.ReactCurrentBatchConfig;function nr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(P(309));var r=n.stateNode}if(!r)throw Error(P(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(l){var s=i.refs;l===null?delete s[o]:s[o]=l},t._stringRef=o,t)}if(typeof e!="string")throw Error(P(284));if(!n._owner)throw Error(P(290,e))}return e}function ui(e,t){throw e=Object.prototype.toString.call(t),Error(P(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Lu(e){var t=e._init;return t(e._payload)}function Ud(e){function t(g,m){if(e){var _=g.deletions;_===null?(g.deletions=[m],g.flags|=16):_.push(m)}}function n(g,m){if(!e)return null;for(;m!==null;)t(g,m),m=m.sibling;return null}function r(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function i(g,m){return g=Bt(g,m),g.index=0,g.sibling=null,g}function o(g,m,_){return g.index=_,e?(_=g.alternate,_!==null?(_=_.index,_<m?(g.flags|=2,m):_):(g.flags|=2,m)):(g.flags|=1048576,m)}function l(g){return e&&g.alternate===null&&(g.flags|=2),g}function s(g,m,_,E){return m===null||m.tag!==6?(m=dl(_,g.mode,E),m.return=g,m):(m=i(m,_),m.return=g,m)}function a(g,m,_,E){var C=_.type;return C===gn?c(g,m,_.props.children,E,_.key):m!==null&&(m.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===At&&Lu(C)===m.type)?(E=i(m,_.props),E.ref=nr(g,m,_),E.return=g,E):(E=Ti(_.type,_.key,_.props,null,g.mode,E),E.ref=nr(g,m,_),E.return=g,E)}function u(g,m,_,E){return m===null||m.tag!==4||m.stateNode.containerInfo!==_.containerInfo||m.stateNode.implementation!==_.implementation?(m=fl(_,g.mode,E),m.return=g,m):(m=i(m,_.children||[]),m.return=g,m)}function c(g,m,_,E,C){return m===null||m.tag!==7?(m=on(_,g.mode,E,C),m.return=g,m):(m=i(m,_),m.return=g,m)}function d(g,m,_){if(typeof m=="string"&&m!==""||typeof m=="number")return m=dl(""+m,g.mode,_),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Jr:return _=Ti(m.type,m.key,m.props,null,g.mode,_),_.ref=nr(g,null,m),_.return=g,_;case mn:return m=fl(m,g.mode,_),m.return=g,m;case At:var E=m._init;return d(g,E(m._payload),_)}if(sr(m)||Xn(m))return m=on(m,g.mode,_,null),m.return=g,m;ui(g,m)}return null}function f(g,m,_,E){var C=m!==null?m.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return C!==null?null:s(g,m,""+_,E);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Jr:return _.key===C?a(g,m,_,E):null;case mn:return _.key===C?u(g,m,_,E):null;case At:return C=_._init,f(g,m,C(_._payload),E)}if(sr(_)||Xn(_))return C!==null?null:c(g,m,_,E,null);ui(g,_)}return null}function p(g,m,_,E,C){if(typeof E=="string"&&E!==""||typeof E=="number")return g=g.get(_)||null,s(m,g,""+E,C);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Jr:return g=g.get(E.key===null?_:E.key)||null,a(m,g,E,C);case mn:return g=g.get(E.key===null?_:E.key)||null,u(m,g,E,C);case At:var R=E._init;return p(g,m,_,R(E._payload),C)}if(sr(E)||Xn(E))return g=g.get(_)||null,c(m,g,E,C,null);ui(m,E)}return null}function y(g,m,_,E){for(var C=null,R=null,k=m,x=m=0,O=null;k!==null&&x<_.length;x++){k.index>x?(O=k,k=null):O=k.sibling;var D=f(g,k,_[x],E);if(D===null){k===null&&(k=O);break}e&&k&&D.alternate===null&&t(g,k),m=o(D,m,x),R===null?C=D:R.sibling=D,R=D,k=O}if(x===_.length)return n(g,k),K&&Yt(g,x),C;if(k===null){for(;x<_.length;x++)k=d(g,_[x],E),k!==null&&(m=o(k,m,x),R===null?C=k:R.sibling=k,R=k);return K&&Yt(g,x),C}for(k=r(g,k);x<_.length;x++)O=p(k,g,x,_[x],E),O!==null&&(e&&O.alternate!==null&&k.delete(O.key===null?x:O.key),m=o(O,m,x),R===null?C=O:R.sibling=O,R=O);return e&&k.forEach(function(X){return t(g,X)}),K&&Yt(g,x),C}function v(g,m,_,E){var C=Xn(_);if(typeof C!="function")throw Error(P(150));if(_=C.call(_),_==null)throw Error(P(151));for(var R=C=null,k=m,x=m=0,O=null,D=_.next();k!==null&&!D.done;x++,D=_.next()){k.index>x?(O=k,k=null):O=k.sibling;var X=f(g,k,D.value,E);if(X===null){k===null&&(k=O);break}e&&k&&X.alternate===null&&t(g,k),m=o(X,m,x),R===null?C=X:R.sibling=X,R=X,k=O}if(D.done)return n(g,k),K&&Yt(g,x),C;if(k===null){for(;!D.done;x++,D=_.next())D=d(g,D.value,E),D!==null&&(m=o(D,m,x),R===null?C=D:R.sibling=D,R=D);return K&&Yt(g,x),C}for(k=r(g,k);!D.done;x++,D=_.next())D=p(k,g,x,D.value,E),D!==null&&(e&&D.alternate!==null&&k.delete(D.key===null?x:D.key),m=o(D,m,x),R===null?C=D:R.sibling=D,R=D);return e&&k.forEach(function(ie){return t(g,ie)}),K&&Yt(g,x),C}function L(g,m,_,E){if(typeof _=="object"&&_!==null&&_.type===gn&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Jr:e:{for(var C=_.key,R=m;R!==null;){if(R.key===C){if(C=_.type,C===gn){if(R.tag===7){n(g,R.sibling),m=i(R,_.props.children),m.return=g,g=m;break e}}else if(R.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===At&&Lu(C)===R.type){n(g,R.sibling),m=i(R,_.props),m.ref=nr(g,R,_),m.return=g,g=m;break e}n(g,R);break}else t(g,R);R=R.sibling}_.type===gn?(m=on(_.props.children,g.mode,E,_.key),m.return=g,g=m):(E=Ti(_.type,_.key,_.props,null,g.mode,E),E.ref=nr(g,m,_),E.return=g,g=E)}return l(g);case mn:e:{for(R=_.key;m!==null;){if(m.key===R)if(m.tag===4&&m.stateNode.containerInfo===_.containerInfo&&m.stateNode.implementation===_.implementation){n(g,m.sibling),m=i(m,_.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=fl(_,g.mode,E),m.return=g,g=m}return l(g);case At:return R=_._init,L(g,m,R(_._payload),E)}if(sr(_))return y(g,m,_,E);if(Xn(_))return v(g,m,_,E);ui(g,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,m!==null&&m.tag===6?(n(g,m.sibling),m=i(m,_),m.return=g,g=m):(n(g,m),m=dl(_,g.mode,E),m.return=g,g=m),l(g)):n(g,m)}return L}var zn=Ud(!0),Gd=Ud(!1),Wi=Ht(null),Ki=null,Cn=null,ia=null;function oa(){ia=Cn=Ki=null}function la(e){var t=Wi.current;H(Wi),e._currentValue=t}function es(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Dn(e,t){Ki=e,ia=Cn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ae=!0),e.firstContext=null)}function Qe(e){var t=e._currentValue;if(ia!==e)if(e={context:e,memoizedValue:t,next:null},Cn===null){if(Ki===null)throw Error(P(308));Cn=e,Ki.dependencies={lanes:0,firstContext:e}}else Cn=Cn.next=e;return t}var en=null;function sa(e){en===null?en=[e]:en.push(e)}function Hd(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,sa(t)):(n.next=i.next,i.next=n),t.interleaved=n,wt(e,r)}function wt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Rt=!1;function aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function vt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function jt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,B&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,wt(e,n)}return i=r.interleaved,i===null?(t.next=t,sa(r)):(t.next=i.next,i.next=t),r.interleaved=t,wt(e,n)}function Ci(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ks(e,n)}}function Pu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qi(e,t,n,r){var i=e.updateQueue;Rt=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var a=s,u=a.next;a.next=null,l===null?o=u:l.next=u,l=a;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==l&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=a))}if(o!==null){var d=i.baseState;l=0,c=u=a=null,s=o;do{var f=s.lane,p=s.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,v=s;switch(f=t,p=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){d=y.call(p,d,f);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,f=typeof y=="function"?y.call(p,d,f):y,f==null)break e;d=Y({},d,f);break e;case 2:Rt=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=p,a=d):c=c.next=p,l|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(a=d),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);un|=l,e.lanes=l,e.memoizedState=d}}function Au(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(P(191,i));i.call(r)}}}var Wr={},ft=Ht(Wr),Dr=Ht(Wr),Nr=Ht(Wr);function tn(e){if(e===Wr)throw Error(P(174));return e}function ua(e,t){switch(U(Nr,t),U(Dr,e),U(ft,Wr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ol(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ol(t,e)}H(ft),U(ft,t)}function Bn(){H(ft),H(Dr),H(Nr)}function Kd(e){tn(Nr.current);var t=tn(ft.current),n=Ol(t,e.type);t!==n&&(U(Dr,e),U(ft,n))}function ca(e){Dr.current===e&&(H(ft),H(Dr))}var Q=Ht(0);function qi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 ol=[];function da(){for(var e=0;e<ol.length;e++)ol[e]._workInProgressVersionPrimary=null;ol.length=0}var Li=Lt.ReactCurrentDispatcher,ll=Lt.ReactCurrentBatchConfig,an=0,q=null,oe=null,de=null,Yi=!1,gr=!1,Or=0,bm=0;function ge(){throw Error(P(321))}function fa(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nt(e[n],t[n]))return!1;return!0}function pa(e,t,n,r,i,o){if(an=o,q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Li.current=e===null||e.memoizedState===null?Hm:Wm,e=n(r,i),gr){o=0;do{if(gr=!1,Or=0,25<=o)throw Error(P(301));o+=1,de=oe=null,t.updateQueue=null,Li.current=Km,e=n(r,i)}while(gr)}if(Li.current=Xi,t=oe!==null&&oe.next!==null,an=0,de=oe=q=null,Yi=!1,t)throw Error(P(300));return e}function ha(){var e=Or!==0;return Or=0,e}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return de===null?q.memoizedState=de=e:de=de.next=e,de}function qe(){if(oe===null){var e=q.alternate;e=e!==null?e.memoizedState:null}else e=oe.next;var t=de===null?q.memoizedState:de.next;if(t!==null)de=t,oe=e;else{if(e===null)throw Error(P(310));oe=e,e={memoizedState:oe.memoizedState,baseState:oe.baseState,baseQueue:oe.baseQueue,queue:oe.queue,next:null},de===null?q.memoizedState=de=e:de=de.next=e}return de}function Mr(e,t){return typeof t=="function"?t(e):t}function sl(e){var t=qe(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var r=oe,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=l=null,a=null,u=o;do{var c=u.lane;if((an&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=d,l=r):a=a.next=d,q.lanes|=c,un|=c}u=u.next}while(u!==null&&u!==o);a===null?l=r:a.next=s,nt(r,t.memoizedState)||(Ae=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,q.lanes|=o,un|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function al(e){var t=qe(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do o=e(o,l.action),l=l.next;while(l!==i);nt(o,t.memoizedState)||(Ae=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Qd(){}function qd(e,t){var n=q,r=qe(),i=t(),o=!nt(r.memoizedState,i);if(o&&(r.memoizedState=i,Ae=!0),r=r.queue,ma(Jd.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||de!==null&&de.memoizedState.tag&1){if(n.flags|=2048,Vr(9,Xd.bind(null,n,r,i,t),void 0,null),fe===null)throw Error(P(349));an&30||Yd(n,t,i)}return i}function Yd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=q.updateQueue,t===null?(t={lastEffect:null,stores:null},q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Xd(e,t,n,r){t.value=n,t.getSnapshot=r,Zd(t)&&ef(e)}function Jd(e,t,n){return n(function(){Zd(t)&&ef(e)})}function Zd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nt(e,n)}catch{return!0}}function ef(e){var t=wt(e,1);t!==null&&tt(t,e,1,-1)}function Ru(e){var t=st();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mr,lastRenderedState:e},t.queue=e,e=e.dispatch=Gm.bind(null,q,e),[t.memoizedState,e]}function Vr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=q.updateQueue,t===null?(t={lastEffect:null,stores:null},q.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function tf(){return qe().memoizedState}function Pi(e,t,n,r){var i=st();q.flags|=e,i.memoizedState=Vr(1|t,n,void 0,r===void 0?null:r)}function ko(e,t,n,r){var i=qe();r=r===void 0?null:r;var o=void 0;if(oe!==null){var l=oe.memoizedState;if(o=l.destroy,r!==null&&fa(r,l.deps)){i.memoizedState=Vr(t,n,o,r);return}}q.flags|=e,i.memoizedState=Vr(1|t,n,o,r)}function xu(e,t){return Pi(8390656,8,e,t)}function ma(e,t){return ko(2048,8,e,t)}function nf(e,t){return ko(4,2,e,t)}function rf(e,t){return ko(4,4,e,t)}function of(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function lf(e,t,n){return n=n!=null?n.concat([e]):null,ko(4,4,of.bind(null,t,e),n)}function ga(){}function sf(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function af(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&fa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function uf(e,t,n){return an&21?(nt(n,t)||(n=pd(),q.lanes|=n,un|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ae=!0),e.memoizedState=n)}function $m(e,t){var n=b;b=n!==0&&4>n?n:4,e(!0);var r=ll.transition;ll.transition={};try{e(!1),t()}finally{b=n,ll.transition=r}}function cf(){return qe().memoizedState}function Um(e,t,n){var r=zt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},df(e))ff(t,n);else if(n=Hd(e,t,n,r),n!==null){var i=ke();tt(n,e,r,i),pf(n,t,r)}}function Gm(e,t,n){var r=zt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(df(e))ff(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,s=o(l,n);if(i.hasEagerState=!0,i.eagerState=s,nt(s,l)){var a=t.interleaved;a===null?(i.next=i,sa(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Hd(e,t,i,r),n!==null&&(i=ke(),tt(n,e,r,i),pf(n,t,r))}}function df(e){var t=e.alternate;return e===q||t!==null&&t===q}function ff(e,t){gr=Yi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ks(e,n)}}var Xi={readContext:Qe,useCallback:ge,useContext:ge,useEffect:ge,useImperativeHandle:ge,useInsertionEffect:ge,useLayoutEffect:ge,useMemo:ge,useReducer:ge,useRef:ge,useState:ge,useDebugValue:ge,useDeferredValue:ge,useTransition:ge,useMutableSource:ge,useSyncExternalStore:ge,useId:ge,unstable_isNewReconciler:!1},Hm={readContext:Qe,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:Qe,useEffect:xu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Pi(4194308,4,of.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pi(4,2,e,t)},useMemo:function(e,t){var n=st();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=st();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Um.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:Ru,useDebugValue:ga,useDeferredValue:function(e){return st().memoizedState=e},useTransition:function(){var e=Ru(!1),t=e[0];return e=$m.bind(null,e[1]),st().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=q,i=st();if(K){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),fe===null)throw Error(P(349));an&30||Yd(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,xu(Jd.bind(null,r,o,e),[e]),r.flags|=2048,Vr(9,Xd.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=st(),t=fe.identifierPrefix;if(K){var n=yt,r=_t;n=(r&~(1<<32-et(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Or++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=bm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Wm={readContext:Qe,useCallback:sf,useContext:Qe,useEffect:ma,useImperativeHandle:lf,useInsertionEffect:nf,useLayoutEffect:rf,useMemo:af,useReducer:sl,useRef:tf,useState:function(){return sl(Mr)},useDebugValue:ga,useDeferredValue:function(e){var t=qe();return uf(t,oe.memoizedState,e)},useTransition:function(){var e=sl(Mr)[0],t=qe().memoizedState;return[e,t]},useMutableSource:Qd,useSyncExternalStore:qd,useId:cf,unstable_isNewReconciler:!1},Km={readContext:Qe,useCallback:sf,useContext:Qe,useEffect:ma,useImperativeHandle:lf,useInsertionEffect:nf,useLayoutEffect:rf,useMemo:af,useReducer:al,useRef:tf,useState:function(){return al(Mr)},useDebugValue:ga,useDeferredValue:function(e){var t=qe();return oe===null?t.memoizedState=e:uf(t,oe.memoizedState,e)},useTransition:function(){var e=al(Mr)[0],t=qe().memoizedState;return[e,t]},useMutableSource:Qd,useSyncExternalStore:qd,useId:cf,unstable_isNewReconciler:!1};function Xe(e,t){if(e&&e.defaultProps){t=Y({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ts(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Co={isMounted:function(e){return(e=e._reactInternals)?fn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ke(),i=zt(e),o=vt(r,i);o.payload=t,n!=null&&(o.callback=n),t=jt(e,o,i),t!==null&&(tt(t,e,i,r),Ci(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ke(),i=zt(e),o=vt(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=jt(e,o,i),t!==null&&(tt(t,e,i,r),Ci(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ke(),r=zt(e),i=vt(n,r);i.tag=2,t!=null&&(i.callback=t),t=jt(e,i,r),t!==null&&(tt(t,e,r,n),Ci(t,e,r))}};function Tu(e,t,n,r,i,o,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,l):t.prototype&&t.prototype.isPureReactComponent?!Rr(n,r)||!Rr(i,o):!0}function hf(e,t,n){var r=!1,i=Ut,o=t.contextType;return typeof o=="object"&&o!==null?o=Qe(o):(i=xe(t)?ln:Se.current,r=t.contextTypes,o=(r=r!=null)?jn(e,i):Ut),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Co,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Iu(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Co.enqueueReplaceState(t,t.state,null)}function ns(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},aa(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Qe(o):(o=xe(t)?ln:Se.current,i.context=jn(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(ts(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Co.enqueueReplaceState(i,i.state,null),Qi(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function bn(e,t){try{var n="",r=t;do n+=Sh(r),r=r.return;while(r);var i=n}catch(o){i=`
40
+ Error generating stack: `+o.message+`
41
+ `+o.stack}return{value:e,source:t,stack:i,digest:null}}function ul(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function rs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Qm=typeof WeakMap=="function"?WeakMap:Map;function mf(e,t,n){n=vt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zi||(Zi=!0,ps=r),rs(e,t)},n}function gf(e,t,n){n=vt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){rs(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){rs(e,t),typeof r!="function"&&(Ft===null?Ft=new Set([this]):Ft.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Du(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Qm;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=ag.bind(null,e,t,n),t.then(e,e))}function Nu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ou(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=vt(-1,1),t.tag=2,jt(n,t,1))),n.lanes|=1),e)}var qm=Lt.ReactCurrentOwner,Ae=!1;function we(e,t,n,r){t.child=e===null?Gd(t,null,n,r):zn(t,e.child,n,r)}function Mu(e,t,n,r,i){n=n.render;var o=t.ref;return Dn(t,i),r=pa(e,t,n,r,o,i),n=ha(),e!==null&&!Ae?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,kt(e,t,i)):(K&&n&&ta(t),t.flags|=1,we(e,t,r,i),t.child)}function Vu(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Ca(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,_f(e,t,o,r,i)):(e=Ti(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:Rr,n(l,r)&&e.ref===t.ref)return kt(e,t,i)}return t.flags|=1,e=Bt(o,r),e.ref=t.ref,e.return=t,t.child=e}function _f(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Rr(o,r)&&e.ref===t.ref)if(Ae=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Ae=!0);else return t.lanes=e.lanes,kt(e,t,i)}return is(e,t,n,r,i)}function yf(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},U(Pn,Oe),Oe|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,U(Pn,Oe),Oe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,U(Pn,Oe),Oe|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,U(Pn,Oe),Oe|=r;return we(e,t,i,n),t.child}function vf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function is(e,t,n,r,i){var o=xe(n)?ln:Se.current;return o=jn(t,o),Dn(t,i),n=pa(e,t,n,r,o,i),r=ha(),e!==null&&!Ae?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,kt(e,t,i)):(K&&r&&ta(t),t.flags|=1,we(e,t,n,i),t.child)}function ju(e,t,n,r,i){if(xe(n)){var o=!0;Ui(t)}else o=!1;if(Dn(t,i),t.stateNode===null)Ai(e,t),hf(t,n,r),ns(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var a=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=Qe(u):(u=xe(n)?ln:Se.current,u=jn(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";d||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||a!==u)&&Iu(t,l,r,u),Rt=!1;var f=t.memoizedState;l.state=f,Qi(t,r,l,i),a=t.memoizedState,s!==r||f!==a||Re.current||Rt?(typeof c=="function"&&(ts(t,n,c,r),a=t.memoizedState),(s=Rt||Tu(t,n,s,r,f,a,u))?(d||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=u,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,Wd(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Xe(t.type,s),l.props=u,d=t.pendingProps,f=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=Qe(a):(a=xe(n)?ln:Se.current,a=jn(t,a));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==d||f!==a)&&Iu(t,l,r,a),Rt=!1,f=t.memoizedState,l.state=f,Qi(t,r,l,i);var y=t.memoizedState;s!==d||f!==y||Re.current||Rt?(typeof p=="function"&&(ts(t,n,p,r),y=t.memoizedState),(u=Rt||Tu(t,n,u,r,f,y,a)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,y,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,y,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),l.props=r,l.state=y,l.context=a,r=u):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return os(e,t,n,r,o,i)}function os(e,t,n,r,i,o){vf(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&wu(t,n,!1),kt(e,t,o);r=t.stateNode,qm.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=zn(t,e.child,null,o),t.child=zn(t,null,s,o)):we(e,t,s,o),t.memoizedState=r.state,i&&wu(t,n,!0),t.child}function Ef(e){var t=e.stateNode;t.pendingContext?Su(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Su(e,t.context,!1),ua(e,t.containerInfo)}function Fu(e,t,n,r,i){return Fn(),ra(i),t.flags|=256,we(e,t,n,r),t.child}var ls={dehydrated:null,treeContext:null,retryLane:0};function ss(e){return{baseLanes:e,cachePool:null,transitions:null}}function Sf(e,t,n){var r=t.pendingProps,i=Q.current,o=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),U(Q,i&1),e===null)return Zl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=l):o=Ao(l,r,0,null),e=on(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=ss(n),t.memoizedState=ls,e):_a(t,l));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Ym(e,t,l,r,s,i,n);if(o){o=r.fallback,l=t.mode,i=e.child,s=i.sibling;var a={mode:"hidden",children:r.children};return!(l&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Bt(i,a),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Bt(s,o):(o=on(o,l,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=e.child.memoizedState,l=l===null?ss(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=ls,r}return o=e.child,e=o.sibling,r=Bt(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function _a(e,t){return t=Ao({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ci(e,t,n,r){return r!==null&&ra(r),zn(t,e.child,null,n),e=_a(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ym(e,t,n,r,i,o,l){if(n)return t.flags&256?(t.flags&=-257,r=ul(Error(P(422))),ci(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ao({mode:"visible",children:r.children},i,0,null),o=on(o,i,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&zn(t,e.child,null,l),t.child.memoizedState=ss(l),t.memoizedState=ls,o);if(!(t.mode&1))return ci(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(P(419)),r=ul(o,r,void 0),ci(e,t,l,r)}if(s=(l&e.childLanes)!==0,Ae||s){if(r=fe,r!==null){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|l)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,wt(e,i),tt(r,e,i,-1))}return ka(),r=ul(Error(P(421))),ci(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=ug.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ve=Vt(i.nextSibling),je=t,K=!0,Ze=null,e!==null&&(Ue[Ge++]=_t,Ue[Ge++]=yt,Ue[Ge++]=sn,_t=e.id,yt=e.overflow,sn=t),t=_a(t,r.children),t.flags|=4096,t)}function zu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),es(e.return,t,n)}function cl(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function wf(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(we(e,t,r.children,n),r=Q.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zu(e,n,t);else if(e.tag===19)zu(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}r&=1}if(U(Q,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&qi(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),cl(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&qi(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}cl(t,!0,n,null,o);break;case"together":cl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ai(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function kt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),un|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(P(153));if(t.child!==null){for(e=t.child,n=Bt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Bt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Xm(e,t,n){switch(t.tag){case 3:Ef(t),Fn();break;case 5:Kd(t);break;case 1:xe(t.type)&&Ui(t);break;case 4:ua(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;U(Wi,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(U(Q,Q.current&1),t.flags|=128,null):n&t.child.childLanes?Sf(e,t,n):(U(Q,Q.current&1),e=kt(e,t,n),e!==null?e.sibling:null);U(Q,Q.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return wf(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),U(Q,Q.current),r)break;return null;case 22:case 23:return t.lanes=0,yf(e,t,n)}return kt(e,t,n)}var kf,as,Cf,Lf;kf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};as=function(){};Cf=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,tn(ft.current);var o=null;switch(n){case"input":i=Tl(e,i),r=Tl(e,r),o=[];break;case"select":i=Y({},i,{value:void 0}),r=Y({},r,{value:void 0}),o=[];break;case"textarea":i=Nl(e,i),r=Nl(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=bi)}Ml(n,r);var l;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Sr.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(l in s)!s.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&s[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Sr.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&G("scroll",e),o||s===a||(o=[])):(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Lf=function(e,t,n,r){n!==r&&(t.flags|=4)};function rr(e,t){if(!K)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 r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function _e(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Jm(e,t,n){var r=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _e(t),null;case 1:return xe(t.type)&&$i(),_e(t),null;case 3:return r=t.stateNode,Bn(),H(Re),H(Se),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ai(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ze!==null&&(gs(Ze),Ze=null))),as(e,t),_e(t),null;case 5:ca(t);var i=tn(Nr.current);if(n=t.type,e!==null&&t.stateNode!=null)Cf(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(P(166));return _e(t),null}if(e=tn(ft.current),ai(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[ut]=t,r[Ir]=o,e=(t.mode&1)!==0,n){case"dialog":G("cancel",r),G("close",r);break;case"iframe":case"object":case"embed":G("load",r);break;case"video":case"audio":for(i=0;i<ur.length;i++)G(ur[i],r);break;case"source":G("error",r);break;case"img":case"image":case"link":G("error",r),G("load",r);break;case"details":G("toggle",r);break;case"input":Qa(r,o),G("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},G("invalid",r);break;case"textarea":Ya(r,o),G("invalid",r)}Ml(n,o),i=null;for(var l in o)if(o.hasOwnProperty(l)){var s=o[l];l==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&si(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&si(r.textContent,s,e),i=["children",""+s]):Sr.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&G("scroll",r)}switch(n){case"input":Zr(r),qa(r,o,!0);break;case"textarea":Zr(r),Xa(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=bi)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Jc(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ut]=t,e[Ir]=r,kf(e,t,!1,!1),t.stateNode=e;e:{switch(l=Vl(n,r),n){case"dialog":G("cancel",e),G("close",e),i=r;break;case"iframe":case"object":case"embed":G("load",e),i=r;break;case"video":case"audio":for(i=0;i<ur.length;i++)G(ur[i],e);i=r;break;case"source":G("error",e),i=r;break;case"img":case"image":case"link":G("error",e),G("load",e),i=r;break;case"details":G("toggle",e),i=r;break;case"input":Qa(e,r),i=Tl(e,r),G("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Y({},r,{value:void 0}),G("invalid",e);break;case"textarea":Ya(e,r),i=Nl(e,r),G("invalid",e);break;default:i=r}Ml(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="style"?td(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Zc(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&wr(e,a):typeof a=="number"&&wr(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Sr.hasOwnProperty(o)?a!=null&&o==="onScroll"&&G("scroll",e):a!=null&&bs(e,o,a,l))}switch(n){case"input":Zr(e),qa(e,r,!1);break;case"textarea":Zr(e),Xa(e);break;case"option":r.value!=null&&e.setAttribute("value",""+$t(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Rn(e,!!r.multiple,o,!1):r.defaultValue!=null&&Rn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=bi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return _e(t),null;case 6:if(e&&t.stateNode!=null)Lf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(P(166));if(n=tn(Nr.current),tn(ft.current),ai(t)){if(r=t.stateNode,n=t.memoizedProps,r[ut]=t,(o=r.nodeValue!==n)&&(e=je,e!==null))switch(e.tag){case 3:si(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&si(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ut]=t,t.stateNode=r}return _e(t),null;case 13:if(H(Q),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(K&&Ve!==null&&t.mode&1&&!(t.flags&128))$d(),Fn(),t.flags|=98560,o=!1;else if(o=ai(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(P(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(P(317));o[ut]=t}else Fn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_e(t),o=!1}else Ze!==null&&(gs(Ze),Ze=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Q.current&1?se===0&&(se=3):ka())),t.updateQueue!==null&&(t.flags|=4),_e(t),null);case 4:return Bn(),as(e,t),e===null&&xr(t.stateNode.containerInfo),_e(t),null;case 10:return la(t.type._context),_e(t),null;case 17:return xe(t.type)&&$i(),_e(t),null;case 19:if(H(Q),o=t.memoizedState,o===null)return _e(t),null;if(r=(t.flags&128)!==0,l=o.rendering,l===null)if(r)rr(o,!1);else{if(se!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=qi(e),l!==null){for(t.flags|=128,rr(o,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,l=o.alternate,l===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return U(Q,Q.current&1|2),t.child}e=e.sibling}o.tail!==null&&ee()>$n&&(t.flags|=128,r=!0,rr(o,!1),t.lanes=4194304)}else{if(!r)if(e=qi(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),rr(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!K)return _e(t),null}else 2*ee()-o.renderingStartTime>$n&&n!==1073741824&&(t.flags|=128,r=!0,rr(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ee(),t.sibling=null,n=Q.current,U(Q,r?n&1|2:n&1),t):(_e(t),null);case 22:case 23:return wa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Oe&1073741824&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function Zm(e,t){switch(na(t),t.tag){case 1:return xe(t.type)&&$i(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bn(),H(Re),H(Se),da(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ca(t),null;case 13:if(H(Q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));Fn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(Q),null;case 4:return Bn(),null;case 10:return la(t.type._context),null;case 22:case 23:return wa(),null;case 24:return null;default:return null}}var di=!1,ve=!1,eg=typeof WeakSet=="function"?WeakSet:Set,T=null;function Ln(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function us(e,t,n){try{n()}catch(r){J(e,t,r)}}var Bu=!1;function tg(e,t){if(Wl=Fi,e=xd(),ea(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=l+i),d!==o||r!==0&&d.nodeType!==3||(a=l+r),d.nodeType===3&&(l+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===i&&(s=l),f===o&&++c===r&&(a=l),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Kl={focusedElem:e,selectionRange:n},Fi=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,L=y.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Xe(t.type,v),L);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(E){J(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return y=Bu,Bu=!1,y}function _r(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&us(t,n,o)}i=i.next}while(i!==r)}}function Lo(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function cs(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Pf(e){var t=e.alternate;t!==null&&(e.alternate=null,Pf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ut],delete t[Ir],delete t[Yl],delete t[jm],delete t[Fm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Af(e){return e.tag===5||e.tag===3||e.tag===4}function bu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Af(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.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 ds(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=bi));else if(r!==4&&(e=e.child,e!==null))for(ds(e,t,n),e=e.sibling;e!==null;)ds(e,t,n),e=e.sibling}function fs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(fs(e,t,n),e=e.sibling;e!==null;)fs(e,t,n),e=e.sibling}var pe=null,Je=!1;function Pt(e,t,n){for(n=n.child;n!==null;)Rf(e,t,n),n=n.sibling}function Rf(e,t,n){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(_o,n)}catch{}switch(n.tag){case 5:ve||Ln(n,t);case 6:var r=pe,i=Je;pe=null,Pt(e,t,n),pe=r,Je=i,pe!==null&&(Je?(e=pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pe.removeChild(n.stateNode));break;case 18:pe!==null&&(Je?(e=pe,n=n.stateNode,e.nodeType===8?rl(e.parentNode,n):e.nodeType===1&&rl(e,n),Pr(e)):rl(pe,n.stateNode));break;case 4:r=pe,i=Je,pe=n.stateNode.containerInfo,Je=!0,Pt(e,t,n),pe=r,Je=i;break;case 0:case 11:case 14:case 15:if(!ve&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&us(n,t,l),i=i.next}while(i!==r)}Pt(e,t,n);break;case 1:if(!ve&&(Ln(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){J(n,t,s)}Pt(e,t,n);break;case 21:Pt(e,t,n);break;case 22:n.mode&1?(ve=(r=ve)||n.memoizedState!==null,Pt(e,t,n),ve=r):Pt(e,t,n);break;default:Pt(e,t,n)}}function $u(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new eg),t.forEach(function(r){var i=cg.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ye(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 5:pe=s.stateNode,Je=!1;break e;case 3:pe=s.stateNode.containerInfo,Je=!0;break e;case 4:pe=s.stateNode.containerInfo,Je=!0;break e}s=s.return}if(pe===null)throw Error(P(160));Rf(o,l,i),pe=null,Je=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){J(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)xf(t,e),t=t.sibling}function xf(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ye(t,e),it(e),r&4){try{_r(3,e,e.return),Lo(3,e)}catch(v){J(e,e.return,v)}try{_r(5,e,e.return)}catch(v){J(e,e.return,v)}}break;case 1:Ye(t,e),it(e),r&512&&n!==null&&Ln(n,n.return);break;case 5:if(Ye(t,e),it(e),r&512&&n!==null&&Ln(n,n.return),e.flags&32){var i=e.stateNode;try{wr(i,"")}catch(v){J(e,e.return,v)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,l=n!==null?n.memoizedProps:o,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&Yc(i,o),Vl(s,l);var u=Vl(s,o);for(l=0;l<a.length;l+=2){var c=a[l],d=a[l+1];c==="style"?td(i,d):c==="dangerouslySetInnerHTML"?Zc(i,d):c==="children"?wr(i,d):bs(i,c,d,u)}switch(s){case"input":Il(i,o);break;case"textarea":Xc(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?Rn(i,!!o.multiple,p,!1):f!==!!o.multiple&&(o.defaultValue!=null?Rn(i,!!o.multiple,o.defaultValue,!0):Rn(i,!!o.multiple,o.multiple?[]:"",!1))}i[Ir]=o}catch(v){J(e,e.return,v)}}break;case 6:if(Ye(t,e),it(e),r&4){if(e.stateNode===null)throw Error(P(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(v){J(e,e.return,v)}}break;case 3:if(Ye(t,e),it(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Pr(t.containerInfo)}catch(v){J(e,e.return,v)}break;case 4:Ye(t,e),it(e);break;case 13:Ye(t,e),it(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Ea=ee())),r&4&&$u(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(ve=(u=ve)||c,Ye(t,e),ve=u):Ye(t,e),it(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(T=e,c=e.child;c!==null;){for(d=T=c;T!==null;){switch(f=T,p=f.child,f.tag){case 0:case 11:case 14:case 15:_r(4,f,f.return);break;case 1:Ln(f,f.return);var y=f.stateNode;if(typeof y.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(v){J(r,n,v)}}break;case 5:Ln(f,f.return);break;case 22:if(f.memoizedState!==null){Gu(d);continue}}p!==null?(p.return=f,T=p):Gu(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=d.stateNode,a=d.memoizedProps.style,l=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=ed("display",l))}catch(v){J(e,e.return,v)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(v){J(e,e.return,v)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ye(t,e),it(e),r&4&&$u(e);break;case 21:break;default:Ye(t,e),it(e)}}function it(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Af(n)){var r=n;break e}n=n.return}throw Error(P(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(wr(i,""),r.flags&=-33);var o=bu(e);fs(e,o,i);break;case 3:case 4:var l=r.stateNode.containerInfo,s=bu(e);ds(e,s,l);break;default:throw Error(P(161))}}catch(a){J(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ng(e,t,n){T=e,Tf(e)}function Tf(e,t,n){for(var r=(e.mode&1)!==0;T!==null;){var i=T,o=i.child;if(i.tag===22&&r){var l=i.memoizedState!==null||di;if(!l){var s=i.alternate,a=s!==null&&s.memoizedState!==null||ve;s=di;var u=ve;if(di=l,(ve=a)&&!u)for(T=i;T!==null;)l=T,a=l.child,l.tag===22&&l.memoizedState!==null?Hu(i):a!==null?(a.return=l,T=a):Hu(i);for(;o!==null;)T=o,Tf(o),o=o.sibling;T=i,di=s,ve=u}Uu(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,T=o):Uu(e)}}function Uu(e){for(;T!==null;){var t=T;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ve||Lo(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ve)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Xe(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Au(t,o,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Au(t,l,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Pr(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(P(163))}ve||t.flags&512&&cs(t)}catch(f){J(t,t.return,f)}}if(t===e){T=null;break}if(n=t.sibling,n!==null){n.return=t.return,T=n;break}T=t.return}}function Gu(e){for(;T!==null;){var t=T;if(t===e){T=null;break}var n=t.sibling;if(n!==null){n.return=t.return,T=n;break}T=t.return}}function Hu(e){for(;T!==null;){var t=T;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Lo(4,t)}catch(a){J(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){J(t,i,a)}}var o=t.return;try{cs(t)}catch(a){J(t,o,a)}break;case 5:var l=t.return;try{cs(t)}catch(a){J(t,l,a)}}}catch(a){J(t,t.return,a)}if(t===e){T=null;break}var s=t.sibling;if(s!==null){s.return=t.return,T=s;break}T=t.return}}var rg=Math.ceil,Ji=Lt.ReactCurrentDispatcher,ya=Lt.ReactCurrentOwner,Ke=Lt.ReactCurrentBatchConfig,B=0,fe=null,re=null,he=0,Oe=0,Pn=Ht(0),se=0,jr=null,un=0,Po=0,va=0,yr=null,Pe=null,Ea=0,$n=1/0,ht=null,Zi=!1,ps=null,Ft=null,fi=!1,Dt=null,eo=0,vr=0,hs=null,Ri=-1,xi=0;function ke(){return B&6?ee():Ri!==-1?Ri:Ri=ee()}function zt(e){return e.mode&1?B&2&&he!==0?he&-he:Bm.transition!==null?(xi===0&&(xi=pd()),xi):(e=b,e!==0||(e=window.event,e=e===void 0?16:Ed(e.type)),e):1}function tt(e,t,n,r){if(50<vr)throw vr=0,hs=null,Error(P(185));Ur(e,n,r),(!(B&2)||e!==fe)&&(e===fe&&(!(B&2)&&(Po|=n),se===4&&Tt(e,he)),Te(e,r),n===1&&B===0&&!(t.mode&1)&&($n=ee()+500,wo&&Wt()))}function Te(e,t){var n=e.callbackNode;Bh(e,t);var r=ji(e,e===fe?he:0);if(r===0)n!==null&&eu(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&eu(n),t===1)e.tag===0?zm(Wu.bind(null,e)):zd(Wu.bind(null,e)),Mm(function(){!(B&6)&&Wt()}),n=null;else{switch(hd(r)){case 1:n=Ws;break;case 4:n=dd;break;case 16:n=Vi;break;case 536870912:n=fd;break;default:n=Vi}n=Ff(n,If.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function If(e,t){if(Ri=-1,xi=0,B&6)throw Error(P(327));var n=e.callbackNode;if(Nn()&&e.callbackNode!==n)return null;var r=ji(e,e===fe?he:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=to(e,r);else{t=r;var i=B;B|=2;var o=Nf();(fe!==e||he!==t)&&(ht=null,$n=ee()+500,rn(e,t));do try{lg();break}catch(s){Df(e,s)}while(!0);oa(),Ji.current=o,B=i,re!==null?t=0:(fe=null,he=0,t=se)}if(t!==0){if(t===2&&(i=bl(e),i!==0&&(r=i,t=ms(e,i))),t===1)throw n=jr,rn(e,0),Tt(e,r),Te(e,ee()),n;if(t===6)Tt(e,r);else{if(i=e.current.alternate,!(r&30)&&!ig(i)&&(t=to(e,r),t===2&&(o=bl(e),o!==0&&(r=o,t=ms(e,o))),t===1))throw n=jr,rn(e,0),Tt(e,r),Te(e,ee()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(P(345));case 2:Xt(e,Pe,ht);break;case 3:if(Tt(e,r),(r&130023424)===r&&(t=Ea+500-ee(),10<t)){if(ji(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){ke(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ql(Xt.bind(null,e,Pe,ht),t);break}Xt(e,Pe,ht);break;case 4:if(Tt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-et(r);o=1<<l,l=t[l],l>i&&(i=l),r&=~o}if(r=i,r=ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*rg(r/1960))-r,10<r){e.timeoutHandle=ql(Xt.bind(null,e,Pe,ht),r);break}Xt(e,Pe,ht);break;case 5:Xt(e,Pe,ht);break;default:throw Error(P(329))}}}return Te(e,ee()),e.callbackNode===n?If.bind(null,e):null}function ms(e,t){var n=yr;return e.current.memoizedState.isDehydrated&&(rn(e,t).flags|=256),e=to(e,t),e!==2&&(t=Pe,Pe=n,t!==null&&gs(t)),e}function gs(e){Pe===null?Pe=e:Pe.push.apply(Pe,e)}function ig(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!nt(o(),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 Tt(e,t){for(t&=~va,t&=~Po,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-et(t),r=1<<n;e[n]=-1,t&=~r}}function Wu(e){if(B&6)throw Error(P(327));Nn();var t=ji(e,0);if(!(t&1))return Te(e,ee()),null;var n=to(e,t);if(e.tag!==0&&n===2){var r=bl(e);r!==0&&(t=r,n=ms(e,r))}if(n===1)throw n=jr,rn(e,0),Tt(e,t),Te(e,ee()),n;if(n===6)throw Error(P(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Xt(e,Pe,ht),Te(e,ee()),null}function Sa(e,t){var n=B;B|=1;try{return e(t)}finally{B=n,B===0&&($n=ee()+500,wo&&Wt())}}function cn(e){Dt!==null&&Dt.tag===0&&!(B&6)&&Nn();var t=B;B|=1;var n=Ke.transition,r=b;try{if(Ke.transition=null,b=1,e)return e()}finally{b=r,Ke.transition=n,B=t,!(B&6)&&Wt()}}function wa(){Oe=Pn.current,H(Pn)}function rn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Om(n)),re!==null)for(n=re.return;n!==null;){var r=n;switch(na(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&$i();break;case 3:Bn(),H(Re),H(Se),da();break;case 5:ca(r);break;case 4:Bn();break;case 13:H(Q);break;case 19:H(Q);break;case 10:la(r.type._context);break;case 22:case 23:wa()}n=n.return}if(fe=e,re=e=Bt(e.current,null),he=Oe=t,se=0,jr=null,va=Po=un=0,Pe=yr=null,en!==null){for(t=0;t<en.length;t++)if(n=en[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var l=o.next;o.next=i,r.next=l}n.pending=r}en=null}return e}function Df(e,t){do{var n=re;try{if(oa(),Li.current=Xi,Yi){for(var r=q.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Yi=!1}if(an=0,de=oe=q=null,gr=!1,Or=0,ya.current=null,n===null||n.return===null){se=1,jr=t,re=null;break}e:{var o=e,l=n.return,s=n,a=t;if(t=he,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=s,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=Nu(l);if(p!==null){p.flags&=-257,Ou(p,l,s,o,t),p.mode&1&&Du(o,u,t),t=p,a=u;var y=t.updateQueue;if(y===null){var v=new Set;v.add(a),t.updateQueue=v}else y.add(a);break e}else{if(!(t&1)){Du(o,u,t),ka();break e}a=Error(P(426))}}else if(K&&s.mode&1){var L=Nu(l);if(L!==null){!(L.flags&65536)&&(L.flags|=256),Ou(L,l,s,o,t),ra(bn(a,s));break e}}o=a=bn(a,s),se!==4&&(se=2),yr===null?yr=[o]:yr.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=mf(o,a,t);Pu(o,g);break e;case 1:s=a;var m=o.type,_=o.stateNode;if(!(o.flags&128)&&(typeof m.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Ft===null||!Ft.has(_)))){o.flags|=65536,t&=-t,o.lanes|=t;var E=gf(o,s,t);Pu(o,E);break e}}o=o.return}while(o!==null)}Mf(n)}catch(C){t=C,re===n&&n!==null&&(re=n=n.return);continue}break}while(!0)}function Nf(){var e=Ji.current;return Ji.current=Xi,e===null?Xi:e}function ka(){(se===0||se===3||se===2)&&(se=4),fe===null||!(un&268435455)&&!(Po&268435455)||Tt(fe,he)}function to(e,t){var n=B;B|=2;var r=Nf();(fe!==e||he!==t)&&(ht=null,rn(e,t));do try{og();break}catch(i){Df(e,i)}while(!0);if(oa(),B=n,Ji.current=r,re!==null)throw Error(P(261));return fe=null,he=0,se}function og(){for(;re!==null;)Of(re)}function lg(){for(;re!==null&&!Ih();)Of(re)}function Of(e){var t=jf(e.alternate,e,Oe);e.memoizedProps=e.pendingProps,t===null?Mf(e):re=t,ya.current=null}function Mf(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Zm(n,t),n!==null){n.flags&=32767,re=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{se=6,re=null;return}}else if(n=Jm(n,t,Oe),n!==null){re=n;return}if(t=t.sibling,t!==null){re=t;return}re=t=e}while(t!==null);se===0&&(se=5)}function Xt(e,t,n){var r=b,i=Ke.transition;try{Ke.transition=null,b=1,sg(e,t,n,r)}finally{Ke.transition=i,b=r}return null}function sg(e,t,n,r){do Nn();while(Dt!==null);if(B&6)throw Error(P(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(P(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(bh(e,o),e===fe&&(re=fe=null,he=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||fi||(fi=!0,Ff(Vi,function(){return Nn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Ke.transition,Ke.transition=null;var l=b;b=1;var s=B;B|=4,ya.current=null,tg(e,n),xf(n,e),Am(Kl),Fi=!!Wl,Kl=Wl=null,e.current=n,ng(n),Dh(),B=s,b=l,Ke.transition=o}else e.current=n;if(fi&&(fi=!1,Dt=e,eo=i),o=e.pendingLanes,o===0&&(Ft=null),Mh(n.stateNode),Te(e,ee()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Zi)throw Zi=!1,e=ps,ps=null,e;return eo&1&&e.tag!==0&&Nn(),o=e.pendingLanes,o&1?e===hs?vr++:(vr=0,hs=e):vr=0,Wt(),null}function Nn(){if(Dt!==null){var e=hd(eo),t=Ke.transition,n=b;try{if(Ke.transition=null,b=16>e?16:e,Dt===null)var r=!1;else{if(e=Dt,Dt=null,eo=0,B&6)throw Error(P(331));var i=B;for(B|=4,T=e.current;T!==null;){var o=T,l=o.child;if(T.flags&16){var s=o.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for(T=u;T!==null;){var c=T;switch(c.tag){case 0:case 11:case 15:_r(8,c,o)}var d=c.child;if(d!==null)d.return=c,T=d;else for(;T!==null;){c=T;var f=c.sibling,p=c.return;if(Pf(c),c===u){T=null;break}if(f!==null){f.return=p,T=f;break}T=p}}}var y=o.alternate;if(y!==null){var v=y.child;if(v!==null){y.child=null;do{var L=v.sibling;v.sibling=null,v=L}while(v!==null)}}T=o}}if(o.subtreeFlags&2064&&l!==null)l.return=o,T=l;else e:for(;T!==null;){if(o=T,o.flags&2048)switch(o.tag){case 0:case 11:case 15:_r(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,T=g;break e}T=o.return}}var m=e.current;for(T=m;T!==null;){l=T;var _=l.child;if(l.subtreeFlags&2064&&_!==null)_.return=l,T=_;else e:for(l=m;T!==null;){if(s=T,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Lo(9,s)}}catch(C){J(s,s.return,C)}if(s===l){T=null;break e}var E=s.sibling;if(E!==null){E.return=s.return,T=E;break e}T=s.return}}if(B=i,Wt(),dt&&typeof dt.onPostCommitFiberRoot=="function")try{dt.onPostCommitFiberRoot(_o,e)}catch{}r=!0}return r}finally{b=n,Ke.transition=t}}return!1}function Ku(e,t,n){t=bn(n,t),t=mf(e,t,1),e=jt(e,t,1),t=ke(),e!==null&&(Ur(e,1,t),Te(e,t))}function J(e,t,n){if(e.tag===3)Ku(e,e,n);else for(;t!==null;){if(t.tag===3){Ku(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ft===null||!Ft.has(r))){e=bn(n,e),e=gf(t,e,1),t=jt(t,e,1),e=ke(),t!==null&&(Ur(t,1,e),Te(t,e));break}}t=t.return}}function ag(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ke(),e.pingedLanes|=e.suspendedLanes&n,fe===e&&(he&n)===n&&(se===4||se===3&&(he&130023424)===he&&500>ee()-Ea?rn(e,0):va|=n),Te(e,t)}function Vf(e,t){t===0&&(e.mode&1?(t=ni,ni<<=1,!(ni&130023424)&&(ni=4194304)):t=1);var n=ke();e=wt(e,t),e!==null&&(Ur(e,t,n),Te(e,n))}function ug(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vf(e,n)}function cg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(t),Vf(e,n)}var jf;jf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Re.current)Ae=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ae=!1,Xm(e,t,n);Ae=!!(e.flags&131072)}else Ae=!1,K&&t.flags&1048576&&Bd(t,Hi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ai(e,t),e=t.pendingProps;var i=jn(t,Se.current);Dn(t,n),i=pa(null,t,r,e,i,n);var o=ha();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xe(r)?(o=!0,Ui(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,aa(t),i.updater=Co,t.stateNode=i,i._reactInternals=t,ns(t,r,e,n),t=os(null,t,r,!0,o,n)):(t.tag=0,K&&o&&ta(t),we(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ai(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=fg(r),e=Xe(r,e),i){case 0:t=is(null,t,r,e,n);break e;case 1:t=ju(null,t,r,e,n);break e;case 11:t=Mu(null,t,r,e,n);break e;case 14:t=Vu(null,t,r,Xe(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xe(r,i),is(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xe(r,i),ju(e,t,r,i,n);case 3:e:{if(Ef(t),e===null)throw Error(P(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Wd(e,t),Qi(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=bn(Error(P(423)),t),t=Fu(e,t,r,n,i);break e}else if(r!==i){i=bn(Error(P(424)),t),t=Fu(e,t,r,n,i);break e}else for(Ve=Vt(t.stateNode.containerInfo.firstChild),je=t,K=!0,Ze=null,n=Gd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Fn(),r===i){t=kt(e,t,n);break e}we(e,t,r,n)}t=t.child}return t;case 5:return Kd(t),e===null&&Zl(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,Ql(r,i)?l=null:o!==null&&Ql(r,o)&&(t.flags|=32),vf(e,t),we(e,t,l,n),t.child;case 6:return e===null&&Zl(t),null;case 13:return Sf(e,t,n);case 4:return ua(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zn(t,null,r,n):we(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xe(r,i),Mu(e,t,r,i,n);case 7:return we(e,t,t.pendingProps,n),t.child;case 8:return we(e,t,t.pendingProps.children,n),t.child;case 12:return we(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,U(Wi,r._currentValue),r._currentValue=l,o!==null)if(nt(o.value,l)){if(o.children===i.children&&!Re.current){t=kt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){l=o.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=vt(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),es(o.return,n,t),s.lanes|=n;break}a=a.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(P(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),es(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}we(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Dn(t,n),i=Qe(i),r=r(i),t.flags|=1,we(e,t,r,n),t.child;case 14:return r=t.type,i=Xe(r,t.pendingProps),i=Xe(r.type,i),Vu(e,t,r,i,n);case 15:return _f(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xe(r,i),Ai(e,t),t.tag=1,xe(r)?(e=!0,Ui(t)):e=!1,Dn(t,n),hf(t,r,i),ns(t,r,i,n),os(null,t,r,!0,e,n);case 19:return wf(e,t,n);case 22:return yf(e,t,n)}throw Error(P(156,t.tag))};function Ff(e,t){return cd(e,t)}function dg(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function We(e,t,n,r){return new dg(e,t,n,r)}function Ca(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fg(e){if(typeof e=="function")return Ca(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Us)return 11;if(e===Gs)return 14}return 2}function Bt(e,t){var n=e.alternate;return n===null?(n=We(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&14680064,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}function Ti(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Ca(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case gn:return on(n.children,i,o,t);case $s:l=8,i|=8;break;case Pl:return e=We(12,n,t,i|2),e.elementType=Pl,e.lanes=o,e;case Al:return e=We(13,n,t,i),e.elementType=Al,e.lanes=o,e;case Rl:return e=We(19,n,t,i),e.elementType=Rl,e.lanes=o,e;case Kc:return Ao(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Hc:l=10;break e;case Wc:l=9;break e;case Us:l=11;break e;case Gs:l=14;break e;case At:l=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=We(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function on(e,t,n,r){return e=We(7,e,r,t),e.lanes=n,e}function Ao(e,t,n,r){return e=We(22,e,r,t),e.elementType=Kc,e.lanes=n,e.stateNode={isHidden:!1},e}function dl(e,t,n){return e=We(6,e,null,t),e.lanes=n,e}function fl(e,t,n){return t=We(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pg(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wo(0),this.expirationTimes=Wo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function La(e,t,n,r,i,o,l,s,a){return e=new pg(e,t,n,s,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=We(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},aa(o),e}function hg(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:mn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function zf(e){if(!e)return Ut;e=e._reactInternals;e:{if(fn(e)!==e||e.tag!==1)throw Error(P(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(xe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(P(171))}if(e.tag===1){var n=e.type;if(xe(n))return Fd(e,n,t)}return t}function Bf(e,t,n,r,i,o,l,s,a){return e=La(n,r,!0,e,i,o,l,s,a),e.context=zf(null),n=e.current,r=ke(),i=zt(n),o=vt(r,i),o.callback=t??null,jt(n,o,i),e.current.lanes=i,Ur(e,i,r),Te(e,r),e}function Ro(e,t,n,r){var i=t.current,o=ke(),l=zt(i);return n=zf(n),t.context===null?t.context=n:t.pendingContext=n,t=vt(o,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=jt(i,t,l),e!==null&&(tt(e,i,l,o),Ci(e,i,l)),l}function no(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Qu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Pa(e,t){Qu(e,t),(e=e.alternate)&&Qu(e,t)}function mg(){return null}var bf=typeof reportError=="function"?reportError:function(e){console.error(e)};function Aa(e){this._internalRoot=e}xo.prototype.render=Aa.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(P(409));Ro(e,t,null,null)};xo.prototype.unmount=Aa.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;cn(function(){Ro(null,e,null,null)}),t[St]=null}};function xo(e){this._internalRoot=e}xo.prototype.unstable_scheduleHydration=function(e){if(e){var t=_d();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xt.length&&t!==0&&t<xt[n].priority;n++);xt.splice(n,0,e),n===0&&vd(e)}};function Ra(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function To(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function qu(){}function gg(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=no(l);o.call(u)}}var l=Bf(t,r,e,0,null,!1,!1,"",qu);return e._reactRootContainer=l,e[St]=l.current,xr(e.nodeType===8?e.parentNode:e),cn(),l}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=no(a);s.call(u)}}var a=La(e,0,!1,null,null,!1,!1,"",qu);return e._reactRootContainer=a,e[St]=a.current,xr(e.nodeType===8?e.parentNode:e),cn(function(){Ro(t,a,n,r)}),a}function Io(e,t,n,r,i){var o=n._reactRootContainer;if(o){var l=o;if(typeof i=="function"){var s=i;i=function(){var a=no(l);s.call(a)}}Ro(t,l,e,i)}else l=gg(n,t,e,i,r);return no(l)}md=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ar(t.pendingLanes);n!==0&&(Ks(t,n|1),Te(t,ee()),!(B&6)&&($n=ee()+500,Wt()))}break;case 13:cn(function(){var r=wt(e,1);if(r!==null){var i=ke();tt(r,e,1,i)}}),Pa(e,1)}};Qs=function(e){if(e.tag===13){var t=wt(e,134217728);if(t!==null){var n=ke();tt(t,e,134217728,n)}Pa(e,134217728)}};gd=function(e){if(e.tag===13){var t=zt(e),n=wt(e,t);if(n!==null){var r=ke();tt(n,e,t,r)}Pa(e,t)}};_d=function(){return b};yd=function(e,t){var n=b;try{return b=e,t()}finally{b=n}};Fl=function(e,t,n){switch(t){case"input":if(Il(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=So(r);if(!i)throw Error(P(90));qc(r),Il(r,i)}}}break;case"textarea":Xc(e,n);break;case"select":t=n.value,t!=null&&Rn(e,!!n.multiple,t,!1)}};id=Sa;od=cn;var _g={usingClientEntryPoint:!1,Events:[Hr,En,So,nd,rd,Sa]},ir={findFiberByHostInstance:Zt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},yg={bundleType:ir.bundleType,version:ir.version,rendererPackageName:ir.rendererPackageName,rendererConfig:ir.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Lt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ad(e),e===null?null:e.stateNode},findFiberByHostInstance:ir.findFiberByHostInstance||mg,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var pi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pi.isDisabled&&pi.supportsFiber)try{_o=pi.inject(yg),dt=pi}catch{}}ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_g;ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ra(t))throw Error(P(200));return hg(e,t,null,n)};ze.createRoot=function(e,t){if(!Ra(e))throw Error(P(299));var n=!1,r="",i=bf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=La(e,1,!1,null,null,n,!1,r,i),e[St]=t.current,xr(e.nodeType===8?e.parentNode:e),new Aa(t)};ze.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(P(188)):(e=Object.keys(e).join(","),Error(P(268,e)));return e=ad(t),e=e===null?null:e.stateNode,e};ze.flushSync=function(e){return cn(e)};ze.hydrate=function(e,t,n){if(!To(t))throw Error(P(200));return Io(null,e,t,!0,n)};ze.hydrateRoot=function(e,t,n){if(!Ra(e))throw Error(P(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",l=bf;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=Bf(t,null,e,1,n??null,i,!1,o,l),e[St]=t.current,xr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new xo(t)};ze.render=function(e,t,n){if(!To(t))throw Error(P(200));return Io(null,e,t,!1,n)};ze.unmountComponentAtNode=function(e){if(!To(e))throw Error(P(40));return e._reactRootContainer?(cn(function(){Io(null,null,e,!1,function(){e._reactRootContainer=null,e[St]=null})}),!0):!1};ze.unstable_batchedUpdates=Sa;ze.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!To(n))throw Error(P(200));if(e==null||e._reactInternals===void 0)throw Error(P(38));return Io(e,t,n,!1,r)};ze.version="18.3.1-next-f1338f8080-20240426";function $f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($f)}catch(e){console.error(e)}}$f(),bc.exports=ze;var vg=bc.exports,Yu=vg;Cl.createRoot=Yu.createRoot,Cl.hydrateRoot=Yu.hydrateRoot;/**
42
+ * @license lucide-react v0.468.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */const Eg=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Uf=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
47
+ * @license lucide-react v0.468.0 - ISC
48
+ *
49
+ * This source code is licensed under the ISC license.
50
+ * See the LICENSE file in the root directory of this source tree.
51
+ */var Sg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
52
+ * @license lucide-react v0.468.0 - ISC
53
+ *
54
+ * This source code is licensed under the ISC license.
55
+ * See the LICENSE file in the root directory of this source tree.
56
+ */const wg=M.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:l,...s},a)=>M.createElement("svg",{ref:a,...Sg,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Uf("lucide",i),...s},[...l.map(([u,c])=>M.createElement(u,c)),...Array.isArray(o)?o:[o]]));/**
57
+ * @license lucide-react v0.468.0 - ISC
58
+ *
59
+ * This source code is licensed under the ISC license.
60
+ * See the LICENSE file in the root directory of this source tree.
61
+ */const be=(e,t)=>{const n=M.forwardRef(({className:r,...i},o)=>M.createElement(wg,{ref:o,iconNode:t,className:Uf(`lucide-${Eg(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
62
+ * @license lucide-react v0.468.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const kg=be("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
67
+ * @license lucide-react v0.468.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */const Cg=be("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
72
+ * @license lucide-react v0.468.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */const Lg=be("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
77
+ * @license lucide-react v0.468.0 - ISC
78
+ *
79
+ * This source code is licensed under the ISC license.
80
+ * See the LICENSE file in the root directory of this source tree.
81
+ */const Pg=be("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
82
+ * @license lucide-react v0.468.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */const Ag=be("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
87
+ * @license lucide-react v0.468.0 - ISC
88
+ *
89
+ * This source code is licensed under the ISC license.
90
+ * See the LICENSE file in the root directory of this source tree.
91
+ */const Rg=be("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
92
+ * @license lucide-react v0.468.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */const xg=be("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
97
+ * @license lucide-react v0.468.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ */const Tg=be("GitCompare",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]]);/**
102
+ * @license lucide-react v0.468.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const Ig=be("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
107
+ * @license lucide-react v0.468.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const Dg=be("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
112
+ * @license lucide-react v0.468.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const Ng=be("PanelRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
117
+ * @license lucide-react v0.468.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const Og=be("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
122
+ * @license lucide-react v0.468.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const Mg=be("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Vg={},Xu=e=>{let t;const n=new Set,r=(c,d)=>{const f=typeof c=="function"?c(t):c;if(!Object.is(f,t)){const p=t;t=d??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(y=>y(t,p))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>u,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>{(Vg?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,i,a);return a},jg=e=>e?Xu(e):Xu;var Gf={exports:{}},Hf={},Wf={exports:{}},Kf={};/**
127
+ * @license React
128
+ * use-sync-external-store-shim.production.js
129
+ *
130
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
131
+ *
132
+ * This source code is licensed under the MIT license found in the
133
+ * LICENSE file in the root directory of this source tree.
134
+ */var Un=M;function Fg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zg=typeof Object.is=="function"?Object.is:Fg,Bg=Un.useState,bg=Un.useEffect,$g=Un.useLayoutEffect,Ug=Un.useDebugValue;function Gg(e,t){var n=t(),r=Bg({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return $g(function(){i.value=n,i.getSnapshot=t,pl(i)&&o({inst:i})},[e,n,t]),bg(function(){return pl(i)&&o({inst:i}),e(function(){pl(i)&&o({inst:i})})},[e]),Ug(n),n}function pl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zg(e,n)}catch{return!0}}function Hg(e,t){return t()}var Wg=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Hg:Gg;Kf.useSyncExternalStore=Un.useSyncExternalStore!==void 0?Un.useSyncExternalStore:Wg;Wf.exports=Kf;var Kg=Wf.exports;/**
135
+ * @license React
136
+ * use-sync-external-store-shim/with-selector.production.js
137
+ *
138
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
139
+ *
140
+ * This source code is licensed under the MIT license found in the
141
+ * LICENSE file in the root directory of this source tree.
142
+ */var Do=M,Qg=Kg;function qg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Yg=typeof Object.is=="function"?Object.is:qg,Xg=Qg.useSyncExternalStore,Jg=Do.useRef,Zg=Do.useEffect,e_=Do.useMemo,t_=Do.useDebugValue;Hf.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Jg(null);if(o.current===null){var l={hasValue:!1,value:null};o.current=l}else l=o.current;o=e_(function(){function a(p){if(!u){if(u=!0,c=p,p=r(p),i!==void 0&&l.hasValue){var y=l.value;if(i(y,p))return d=y}return d=p}if(y=d,Yg(c,p))return y;var v=r(p);return i!==void 0&&i(y,v)?(c=p,y):(c=p,d=v)}var u=!1,c,d,f=n===void 0?null:n;return[function(){return a(t())},f===null?void 0:function(){return a(f())}]},[t,n,r,i]);var s=Xg(e,o[0],o[1]);return Zg(function(){l.hasValue=!0,l.value=s},[s]),t_(s),s};Gf.exports=Hf;var n_=Gf.exports;const r_=Rc(n_),Qf={},{useDebugValue:i_}=zc,{useSyncExternalStoreWithSelector:o_}=r_;let Ju=!1;const l_=e=>e;function s_(e,t=l_,n){(Qf?"production":void 0)!=="production"&&n&&!Ju&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Ju=!0);const r=o_(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return i_(r),r}const Zu=e=>{(Qf?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?jg(e):e,n=(r,i)=>s_(t,r,i);return Object.assign(n,t),n},xa=e=>e?Zu(e):Zu,No=xa(e=>({fileTree:[],flatFiles:[],expandedDirs:new Set,setFileTree:t=>e({fileTree:t}),setFlatFiles:t=>e({flatFiles:t}),toggleDir:t=>e(n=>{const r=new Set(n.expandedDirs);return r.has(t)?r.delete(t):r.add(t),{expandedDirs:r}}),currentFile:null,setCurrentFile:t=>e({currentFile:t,selection:null}),selection:null,setSelection:t=>e({selection:t}),clearSelection:()=>e({selection:null}),gitStatus:null,setGitStatus:t=>e({gitStatus:t}),showFuzzyFinder:!1,setShowFuzzyFinder:t=>e({showFuzzyFinder:t})})),Oo=xa(e=>({leftPanelVisible:!0,rightPanelVisible:!0,showOnlyGitChanged:!1,diffViewMode:"none",setLeftPanelVisible:t=>e({leftPanelVisible:t}),setRightPanelVisible:t=>e({rightPanelVisible:t}),toggleLeftPanel:()=>e(t=>({leftPanelVisible:!t.leftPanelVisible})),toggleRightPanel:()=>e(t=>({rightPanelVisible:!t.rightPanelVisible})),toggleAllPanels:()=>e(t=>{const n=t.leftPanelVisible||t.rightPanelVisible;return{leftPanelVisible:!n,rightPanelVisible:!n}}),setShowOnlyGitChanged:t=>e({showOnlyGitChanged:t}),toggleGitFilter:()=>e(t=>({showOnlyGitChanged:!t.showOnlyGitChanged})),setDiffViewMode:t=>e({diffViewMode:t}),cycleDiffViewMode:()=>e(t=>{const n=["none","inline","side-by-side"],i=(n.indexOf(t.diffViewMode)+1)%n.length;return{diffViewMode:n[i]}})})),at={async getFiles(){const e=await fetch("/api/files");if(!e.ok)throw new Error("Failed to fetch files");return e.json()},async getFlatFiles(){const e=await fetch("/api/files/flat");if(!e.ok)throw new Error("Failed to fetch flat files");return e.json()},async getFile(e){const t=await fetch(`/api/file?path=${encodeURIComponent(e)}`);if(!t.ok)throw new Error("Failed to fetch file");return t.json()},async getGitStatus(){const e=await fetch("/api/git/status");if(!e.ok)throw new Error("Failed to fetch git status");return e.json()},async getFileDiff(e){const t=await fetch(`/api/git/diff?path=${encodeURIComponent(e)}`);if(!t.ok){if(t.status===404)return{hunks:[],status:"modified"};throw new Error("Failed to fetch diff")}return t.json()},async submit(e,t){if(!(await fetch("/api/submit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:e,items:t})})).ok)throw new Error("Failed to submit")},async cancel(){if(!(await fetch("/api/cancel",{method:"POST"})).ok)throw new Error("Failed to cancel")}};function qf(e,t){return e.map(n=>{if(n.type==="file")return t.has(n.path)?n:null;const r=n.children?qf(n.children,t):[];return r.length>0?{...n,children:r}:null}).filter(n=>n!==null)}function a_(){const{fileTree:e,expandedDirs:t,toggleDir:n,setCurrentFile:r,gitStatus:i}=No(),{showOnlyGitChanged:o,toggleGitFilter:l}=Oo(),s=M.useCallback(async p=>{try{const y=await at.getFile(p);r(y)}catch(y){console.error("Failed to load file:",y)}},[r]),a=M.useMemo(()=>i!=null&&i.isGitRepo?new Set(i.unstaged.map(p=>p.path)):new Set,[i]),u=a.size,c=M.useMemo(()=>!o||a.size===0?e:qf(e,a),[e,o,a]),d=p=>{var y;return i!=null&&i.isGitRepo?((y=i.unstaged.find(v=>v.path===p))==null?void 0:y.status)??null:null},f=(p,y=0)=>{const v=p.type==="directory",L=t.has(p.path),g=d(p.path);return S.jsxs("div",{className:"tree-node",children:[S.jsxs("div",{className:`tree-item ${v?"tree-item-dir":"tree-item-file"} ${g?`git-${g}`:""}`,style:{paddingLeft:`${y*16+8}px`},onClick:()=>{v?n(p.path):s(p.path)},children:[S.jsx("span",{className:"tree-icon",children:v?L?S.jsx(kg,{size:14}):S.jsx(Cg,{size:14}):S.jsx(Pg,{size:14})}),v&&S.jsx("span",{className:"tree-folder-icon",children:L?S.jsx(Ag,{size:14}):S.jsx(Rg,{size:14})}),S.jsx("span",{className:"tree-name",children:p.name}),g&&S.jsx("span",{className:`git-badge git-badge-${g}`,children:g==="modified"?"M":g==="untracked"?"U":g==="deleted"?"D":"A"})]}),v&&L&&p.children&&S.jsx("div",{className:"tree-children",children:p.children.map(m=>f(m,y+1))})]},p.path)};return S.jsxs("div",{className:"file-tree",children:[S.jsxs("div",{className:"file-tree-header",children:[S.jsx("span",{children:"Files"}),(i==null?void 0:i.isGitRepo)&&u>0&&S.jsx("div",{className:"file-tree-header-actions",children:S.jsxs("button",{className:`filter-btn ${o?"active":""}`,onClick:l,title:"Show only changed files (Cmd+G)",children:[S.jsx(xg,{size:12}),S.jsx("span",{className:"count",children:u})]})})]}),S.jsx("div",{className:"file-tree-content",children:c.length===0?S.jsx("div",{className:"staging-list-empty",children:S.jsx("p",{className:"staging-hint",children:"No files to display"})}):c.map(p=>f(p))})]})}const u_="modulepreload",c_=function(e){return"/"+e},ec={},h=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),s=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=Promise.allSettled(n.map(a=>{if(a=c_(a),a in ec)return;ec[a]=!0;const u=a.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":u_,u||(d.as="script"),d.crossOrigin="",d.href=a,s&&d.setAttribute("nonce",s),document.head.appendChild(d),u)return new Promise((f,p)=>{d.addEventListener("load",f),d.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${a}`)))})}))}function o(l){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=l,window.dispatchEvent(s),!s.defaultPrevented)throw l}return i.then(l=>{for(const s of l||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})};let ne=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function d_(e){return Ta(e)}function Ta(e){return Array.isArray(e)?f_(e):e instanceof RegExp?e:typeof e=="object"?p_(e):e}function f_(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Ta(e[n]);return t}function p_(e){let t={};for(let n in e)t[n]=Ta(e[n]);return t}function Yf(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function Xf(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Xf(e.substring(0,e.length-1)):e.substr(~t+1)}var hl=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,hi=class{static hasCaptures(e){return e===null?!1:(hl.lastIndex=0,hl.test(e))}static replaceCaptures(e,t,n){return e.replace(hl,(r,i,o,l)=>{let s=n[parseInt(i||o,10)];if(s){let a=t.substring(s.start,s.end);for(;a[0]===".";)a=a.substring(1);switch(l){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return r})}};function Jf(e,t){return e<t?-1:e>t?1:0}function Zf(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let i=0;i<n;i++){let o=Jf(e[i],t[i]);if(o!==0)return o}return 0}return n-r}function tc(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function ep(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var tp=class{constructor(e){w(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},ro=class{constructor(e,t,n){w(this,"_cachedMatchRoot",new tp(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(g_(e),t)}static createFromParsedTheme(e,t){return y_(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(i=>h_(e.parent,i.parentScopes));return r?new np(r.fontStyle,r.foreground,r.background):null}},ml=class Ii{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Ii(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Ii(n,t[r]);return n}push(t){return new Ii(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function h_(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!m_(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function m_(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var np=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function g_(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let i=0,o=t.length;i<o;i++){let l=t[i];if(!l.settings)continue;let s;if(typeof l.scope=="string"){let d=l.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),s=d.split(",")}else Array.isArray(l.scope)?s=l.scope:s=[""];let a=-1;if(typeof l.settings.fontStyle=="string"){a=0;let d=l.settings.fontStyle.split(" ");for(let f=0,p=d.length;f<p;f++)switch(d[f]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let u=null;typeof l.settings.foreground=="string"&&tc(l.settings.foreground)&&(u=l.settings.foreground);let c=null;typeof l.settings.background=="string"&&tc(l.settings.background)&&(c=l.settings.background);for(let d=0,f=s.length;d<f;d++){let y=s[d].trim().split(" "),v=y[y.length-1],L=null;y.length>1&&(L=y.slice(0,y.length-1),L.reverse()),n[r++]=new __(v,L,i,a,u,c)}}return n}var __=class{constructor(e,t,n,r,i,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=o}},Ee=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Ee||{});function y_(e,t){e.sort((a,u)=>{let c=Jf(a.scope,u.scope);return c!==0||(c=Zf(a.parentScopes,u.parentScopes),c!==0)?c:a.index-u.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&e[0].scope==="";){let a=e.shift();a.fontStyle!==-1&&(n=a.fontStyle),a.foreground!==null&&(r=a.foreground),a.background!==null&&(i=a.background)}let o=new v_(t),l=new np(n,o.getId(r),o.getId(i)),s=new S_(new _s(0,null,-1,0,0),[]);for(let a=0,u=e.length;a<u;a++){let c=e[a];s.insert(0,c.scope,c.parentScopes,c.fontStyle,o.getId(c.foreground),o.getId(c.background))}return new ro(o,l,s)}var v_=class{constructor(e){w(this,"_isFrozen");w(this,"_lastColorId");w(this,"_id2color");w(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},E_=Object.freeze([]),_s=class rp{constructor(t,n,r,i,o){w(this,"scopeDepth");w(this,"parentScopes");w(this,"fontStyle");w(this,"foreground");w(this,"background");this.scopeDepth=t,this.parentScopes=n||E_,this.fontStyle=r,this.foreground=i,this.background=o}clone(){return new rp(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,i){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}},S_=class ys{constructor(t,n=[],r={}){w(this,"_rulesWithParentScopes");this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,i=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[i]===">"&&i++,!(r>=t.parentScopes.length||i>=n.parentScopes.length);){const o=n.parentScopes[i].length-t.parentScopes[r].length;if(o!==0)return o;r++,i++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),i,o;if(r===-1?(i=t,o=""):(i=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(i))return this._children[i].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(ys._cmpBySpecificity),n}insert(t,n,r,i,o,l){if(n===""){this._doInsertHere(t,r,i,o,l);return}let s=n.indexOf("."),a,u;s===-1?(a=n,u=""):(a=n.substring(0,s),u=n.substring(s+1));let c;this._children.hasOwnProperty(a)?c=this._children[a]:(c=new ys(this._mainRule.clone(),_s.cloneArr(this._rulesWithParentScopes)),this._children[a]=c),c.insert(t+1,u,r,i,o,l)}_doInsertHere(t,n,r,i,o){if(n===null){this._mainRule.acceptOverwrite(t,r,i,o);return}for(let l=0,s=this._rulesWithParentScopes.length;l<s;l++){let a=this._rulesWithParentScopes[l];if(Zf(a.parentScopes,n)===0){a.acceptOverwrite(t,r,i,o);return}}r===-1&&(r=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new _s(t,n,r,i,o))}},Gn=class $e{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=$e.getLanguageId(t),r=$e.getTokenType(t),i=$e.getFontStyle(t),o=$e.getForeground(t),l=$e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:o,background:l})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,i,o,l,s){let a=$e.getLanguageId(t),u=$e.getTokenType(t),c=$e.containsBalancedBrackets(t)?1:0,d=$e.getFontStyle(t),f=$e.getForeground(t),p=$e.getBackground(t);return n!==0&&(a=n),r!==8&&(u=r),i!==null&&(c=i?1:0),o!==-1&&(d=o),l!==0&&(f=l),s!==0&&(p=s),(a<<0|u<<8|c<<10|d<<11|f<<15|p<<24)>>>0}};function io(e,t){const n=[],r=w_(e);let i=r.next();for(;i!==null;){let a=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let u=l();if(n.push({matcher:u,priority:a}),i!==",")break;i=r.next()}return n;function o(){if(i==="-"){i=r.next();const a=o();return u=>!!a&&!a(u)}if(i==="("){i=r.next();const a=s();return i===")"&&(i=r.next()),a}if(nc(i)){const a=[];do a.push(i),i=r.next();while(nc(i));return u=>t(a,u)}return null}function l(){const a=[];let u=o();for(;u;)a.push(u),u=o();return c=>a.every(d=>d(c))}function s(){const a=[];let u=l();for(;u&&(a.push(u),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");u=l()}return c=>a.some(d=>d(c))}}function nc(e){return!!e&&!!e.match(/[\w\.:]+/)}function w_(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function ip(e){typeof e.dispose=="function"&&e.dispose()}var Fr=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},k_=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},C_=class{constructor(){w(this,"_references",[]);w(this,"_seenReferenceKeys",new Set);w(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},L_=class{constructor(e,t){w(this,"seenFullScopeRequests",new Set);w(this,"seenPartialScopeRequests",new Set);w(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Fr(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new C_;for(const n of e)P_(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Fr){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function P_(e,t,n,r){const i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof Fr?Di({baseGrammar:o,selfGrammar:i},r):vs(e.ruleName,{baseGrammar:o,selfGrammar:i,repository:i.repository},r);const l=n.injections(e.scopeName);if(l)for(const s of l)r.add(new Fr(s))}function vs(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];oo([r],t,n)}}function Di(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&oo(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&oo(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function oo(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const i=r.repository?Yf({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&oo(r.patterns,{...t,repository:i},n);const o=r.include;if(!o)continue;const l=op(o);switch(l.kind){case 0:Di({...t,selfGrammar:t.baseGrammar},n);break;case 1:Di(t,n);break;case 2:vs(l.ruleName,{...t,repository:i},n);break;case 3:case 4:const s=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){const a={baseGrammar:t.baseGrammar,selfGrammar:s,repository:i};l.kind===4?vs(l.ruleName,a,n):Di(a,n)}else l.kind===4?n.add(new k_(l.scopeName,l.ruleName)):n.add(new Fr(l.scopeName));break}}}var A_=class{constructor(){w(this,"kind",0)}},R_=class{constructor(){w(this,"kind",1)}},x_=class{constructor(e){w(this,"kind",2);this.ruleName=e}},T_=class{constructor(e){w(this,"kind",3);this.scopeName=e}},I_=class{constructor(e,t){w(this,"kind",4);this.scopeName=e,this.ruleName=t}};function op(e){if(e==="$base")return new A_;if(e==="$self")return new R_;const t=e.indexOf("#");if(t===-1)return new T_(e);if(t===0)return new x_(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new I_(n,r)}}var D_=/\\(\d+)/,rc=/\\(\d+)/g,N_=-1,lp=-2;var Kr=class{constructor(e,t,n,r){w(this,"$location");w(this,"id");w(this,"_nameIsCapturing");w(this,"_name");w(this,"_contentNameIsCapturing");w(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=hi.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=hi.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${Xf(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:hi.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:hi.replaceCaptures(this._contentName,e,t)}},O_=class extends Kr{constructor(t,n,r,i,o){super(t,n,r,i);w(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,i){throw new Error("Not supported!")}},M_=class extends Kr{constructor(t,n,r,i,o){super(t,n,r,null);w(this,"_match");w(this,"captures");w(this,"_cachedCompiledPatterns");this._match=new zr(i,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,i){return this._getCachedCompiledPatterns(t).compileAG(t,r,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Br,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ic=class extends Kr{constructor(t,n,r,i,o){super(t,n,r,i);w(this,"hasMissingPatterns");w(this,"patterns");w(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,i){return this._getCachedCompiledPatterns(t).compileAG(t,r,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Br,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Es=class extends Kr{constructor(t,n,r,i,o,l,s,a,u,c){super(t,n,r,i);w(this,"_begin");w(this,"beginCaptures");w(this,"_end");w(this,"endHasBackReferences");w(this,"endCaptures");w(this,"applyEndPatternLast");w(this,"hasMissingPatterns");w(this,"patterns");w(this,"_cachedCompiledPatterns");this._begin=new zr(o,this.id),this.beginCaptures=l,this._end=new zr(s||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=u||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,i){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,i)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Br;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},lo=class extends Kr{constructor(t,n,r,i,o,l,s,a,u){super(t,n,r,i);w(this,"_begin");w(this,"beginCaptures");w(this,"whileCaptures");w(this,"_while");w(this,"whileHasBackReferences");w(this,"hasMissingPatterns");w(this,"patterns");w(this,"_cachedCompiledPatterns");w(this,"_cachedCompiledWhilePatterns");this._begin=new zr(o,this.id),this.beginCaptures=l,this.whileCaptures=a,this._while=new zr(s,lp),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,i){return this._getCachedCompiledPatterns(t).compileAG(t,r,i)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Br;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,i){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,i)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Br,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"￿"),this._cachedCompiledWhilePatterns}},sp=class ye{static createCaptureRule(t,n,r,i,o){return t.registerRule(l=>new O_(n,l,r,i,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new M_(t.$vscodeTextmateLocation,t.id,t.name,t.match,ye._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Yf({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new ic(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,ye._compilePatterns(o,n,r))}return t.while?new lo(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,ye._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,ye._compileCaptures(t.whileCaptures||t.captures,n,r),ye._compilePatterns(t.patterns,n,r)):new Es(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,ye._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,ye._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,ye._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let o=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const s=parseInt(l,10);s>o&&(o=s)}for(let l=0;l<=o;l++)i[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const s=parseInt(l,10);let a=0;t[l].patterns&&(a=ye.getCompiledRuleId(t[l],n,r)),i[s]=ye.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,a)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let o=0,l=t.length;o<l;o++){const s=t[o];let a=-1;if(s.include){const u=op(s.include);switch(u.kind){case 0:case 1:a=ye.getCompiledRuleId(r[s.include],n,r);break;case 2:let c=r[u.ruleName];c&&(a=ye.getCompiledRuleId(c,n,r));break;case 3:case 4:const d=u.scopeName,f=u.kind===4?u.ruleName:null,p=n.getExternalGrammar(d,r);if(p)if(f){let y=p.repository[f];y&&(a=ye.getCompiledRuleId(y,n,p.repository))}else a=ye.getCompiledRuleId(p.repository.$self,n,p.repository);break}}else a=ye.getCompiledRuleId(s,n,r);if(a!==-1){const u=n.getRule(a);let c=!1;if((u instanceof ic||u instanceof Es||u instanceof lo)&&u.hasMissingPatterns&&u.patterns.length===0&&(c=!0),c)continue;i.push(a)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},zr=class ap{constructor(t,n){w(this,"source");w(this,"ruleId");w(this,"hasAnchor");w(this,"hasBackReferences");w(this,"_anchorCache");if(t&&typeof t=="string"){const r=t.length;let i=0,o=[],l=!1;for(let s=0;s<r;s++)if(t.charAt(s)==="\\"&&s+1<r){const u=t.charAt(s+1);u==="z"?(o.push(t.substring(i,s)),o.push("$(?!\\n)(?<!\\n)"),i=s+2):(u==="A"||u==="G")&&(l=!0),s++}this.hasAnchor=l,i===0?this.source=t:(o.push(t.substring(i,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=D_.test(this.source):this.hasBackReferences=!1}clone(){return new ap(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(i=>t.substring(i.start,i.end));return rc.lastIndex=0,this.source.replace(rc,(i,o)=>ep(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],i=[],o,l,s,a;for(o=0,l=this.source.length;o<l;o++)s=this.source.charAt(o),t[o]=s,n[o]=s,r[o]=s,i[o]=s,s==="\\"&&o+1<l&&(a=this.source.charAt(o+1),a==="A"?(t[o+1]="￿",n[o+1]="￿",r[o+1]="A",i[o+1]="A"):a==="G"?(t[o+1]="￿",n[o+1]="G",r[o+1]="￿",i[o+1]="G"):(t[o+1]=a,n[o+1]=a,r[o+1]=a,i[o+1]=a),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:i.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Br=class{constructor(){w(this,"_items");w(this,"_hasAnchors");w(this,"_cached");w(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new oc(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(i=>i.resolveAnchors(t,n));return new oc(e,r,this._items.map(i=>i.ruleId))}},oc=class{constructor(e,t,n){w(this,"scanner");this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
143
+ `)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},gl=class{constructor(e,t){this.languageId=e,this.tokenType=t}},gt,V_=(gt=class{constructor(t,n){w(this,"_defaultAttributes");w(this,"_embeddedLanguagesMatcher");w(this,"_getBasicScopeAttributes",new tp(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new gl(n,r)}));this._defaultAttributes=new gl(t,8),this._embeddedLanguagesMatcher=new j_(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?gt._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(gt.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},w(gt,"_NULL_SCOPE_METADATA",new gl(0,0)),w(gt,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),gt),j_=class{constructor(e){w(this,"values");w(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>ep(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},lc=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function up(e,t,n,r,i,o,l,s){const a=t.content.length;let u=!1,c=-1;if(l){const p=F_(e,t,n,r,i,o);i=p.stack,r=p.linePos,n=p.isFirstLine,c=p.anchorPosition}const d=Date.now();for(;!u;){if(s!==0&&Date.now()-d>s)return new lc(i,!0);f()}return new lc(i,!1);function f(){const p=z_(e,t,n,r,i,c);if(!p){o.produce(i,a),u=!0;return}const y=p.captureIndices,v=p.matchedRuleId,L=y&&y.length>0?y[0].end>r:!1;if(v===N_){const g=i.getRule(e);o.produce(i,y[0].start),i=i.withContentNameScopesList(i.nameScopesList),cr(e,t,n,i,o,g.endCaptures,y),o.produce(i,y[0].end);const m=i;if(i=i.parent,c=m.getAnchorPos(),!L&&m.getEnterPos()===r){i=m,o.produce(i,a),u=!0;return}}else{const g=e.getRule(v);o.produce(i,y[0].start);const m=i,_=g.getName(t.content,y),E=i.contentNameScopesList.pushAttributed(_,e);if(i=i.push(v,r,c,y[0].end===a,null,E,E),g instanceof Es){const C=g;cr(e,t,n,i,o,C.beginCaptures,y),o.produce(i,y[0].end),c=y[0].end;const R=C.getContentName(t.content,y),k=E.pushAttributed(R,e);if(i=i.withContentNameScopesList(k),C.endHasBackReferences&&(i=i.withEndRule(C.getEndWithResolvedBackReferences(t.content,y))),!L&&m.hasSameRuleAs(i)){i=i.pop(),o.produce(i,a),u=!0;return}}else if(g instanceof lo){const C=g;cr(e,t,n,i,o,C.beginCaptures,y),o.produce(i,y[0].end),c=y[0].end;const R=C.getContentName(t.content,y),k=E.pushAttributed(R,e);if(i=i.withContentNameScopesList(k),C.whileHasBackReferences&&(i=i.withEndRule(C.getWhileWithResolvedBackReferences(t.content,y))),!L&&m.hasSameRuleAs(i)){i=i.pop(),o.produce(i,a),u=!0;return}}else if(cr(e,t,n,i,o,g.captures,y),o.produce(i,y[0].end),i=i.pop(),!L){i=i.safePop(),o.produce(i,a),u=!0;return}}y[0].end>r&&(r=y[0].end,n=!1)}}function F_(e,t,n,r,i,o){let l=i.beginRuleCapturedEOL?0:-1;const s=[];for(let a=i;a;a=a.pop()){const u=a.getRule(e);u instanceof lo&&s.push({rule:u,stack:a})}for(let a=s.pop();a;a=s.pop()){const{ruleScanner:u,findOptions:c}=$_(a.rule,e,a.stack.endRule,n,r===l),d=u.findNextMatchSync(t,r,c);if(d){if(d.ruleId!==lp){i=a.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(o.produce(a.stack,d.captureIndices[0].start),cr(e,t,n,a.stack,o,a.rule.whileCaptures,d.captureIndices),o.produce(a.stack,d.captureIndices[0].end),l=d.captureIndices[0].end,d.captureIndices[0].end>r&&(r=d.captureIndices[0].end,n=!1))}else{i=a.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:l,isFirstLine:n}}function z_(e,t,n,r,i,o){const l=B_(e,t,n,r,i,o),s=e.getInjections();if(s.length===0)return l;const a=b_(s,e,t,n,r,i,o);if(!a)return l;if(!l)return a;const u=l.captureIndices[0].start,c=a.captureIndices[0].start;return c<u||a.priorityMatch&&c===u?a:l}function B_(e,t,n,r,i,o){const l=i.getRule(e),{ruleScanner:s,findOptions:a}=cp(l,e,i.endRule,n,r===o),u=s.findNextMatchSync(t,r,a);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function b_(e,t,n,r,i,o,l){let s=Number.MAX_VALUE,a=null,u,c=0;const d=o.contentNameScopesList.getScopeNames();for(let f=0,p=e.length;f<p;f++){const y=e[f];if(!y.matcher(d))continue;const v=t.getRule(y.ruleId),{ruleScanner:L,findOptions:g}=cp(v,t,null,r,i===l),m=L.findNextMatchSync(n,i,g);if(!m)continue;const _=m.captureIndices[0].start;if(!(_>=s)&&(s=_,a=m.captureIndices,u=m.ruleId,c=y.priority,s===i))break}return a?{priorityMatch:c===-1,captureIndices:a,matchedRuleId:u}:null}function cp(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function $_(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function cr(e,t,n,r,i,o,l){if(o.length===0)return;const s=t.content,a=Math.min(o.length,l.length),u=[],c=l[0].end;for(let d=0;d<a;d++){const f=o[d];if(f===null)continue;const p=l[d];if(p.length===0)continue;if(p.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=p.start;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?i.produceFromScopes(u[u.length-1].scopes,p.start):i.produce(r,p.start),f.retokenizeCapturedWithRuleId){const v=f.getName(s,l),L=r.contentNameScopesList.pushAttributed(v,e),g=f.getContentName(s,l),m=L.pushAttributed(g,e),_=r.push(f.retokenizeCapturedWithRuleId,p.start,-1,!1,null,L,m),E=e.createOnigString(s.substring(0,p.end));up(e,E,n&&p.start===0,p.start,_,i,!1,0),ip(E);continue}const y=f.getName(s,l);if(y!==null){const L=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(y,e);u.push(new U_(L,p.end))}}for(;u.length>0;)i.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var U_=class{constructor(e,t){w(this,"scopes");w(this,"endPos");this.scopes=e,this.endPos=t}};function G_(e,t,n,r,i,o,l,s){return new W_(e,t,n,r,i,o,l,s)}function sc(e,t,n,r,i){const o=io(t,so),l=sp.getCompiledRuleId(n,r,i.repository);for(const s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:l,grammar:i,priority:s.priority})}function so(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let i=n;i<t.length;i++)if(H_(t[i],r))return n=i+1,!0;return!1})}function H_(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var W_=class{constructor(e,t,n,r,i,o,l,s){w(this,"_rootId");w(this,"_lastRuleId");w(this,"_ruleId2desc");w(this,"_includedGrammars");w(this,"_grammarRepository");w(this,"_grammar");w(this,"_injections");w(this,"_basicScopeAttributesProvider");w(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=s,this._basicScopeAttributesProvider=new V_(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=ac(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const a of Object.keys(i)){const u=io(a,so);for(const c of u)this._tokenTypeMatchers.push({matcher:c.matcher,type:i[a]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),injections:i=>this._grammarRepository.injections(i)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const i=r.injections;if(i)for(let l in i)sc(t,l,i[l],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(l=>{const s=this.getExternalGrammar(l);if(s){const a=s.injectionSelector;a&&sc(t,a,s,this,s)}})}return t.sort((i,o)=>i.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=ac(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=sp.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===Ss.NULL){i=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),d=Gn.set(0,u.languageId,u.tokenType,null,c.fontStyle,c.foregroundId,c.backgroundId),f=this.getRule(this._rootId).getName(null,null);let p;f?p=Er.createRootAndLookUpScopeName(f,d,this):p=Er.createRoot("unknown",d),t=new Ss(null,this._rootId,-1,-1,!1,null,p,p)}else i=!1,t.reset();e=e+`
144
+ `;const o=this.createOnigString(e),l=o.content.length,s=new Q_(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),a=up(this,o,i,0,t,s,!0,r);return ip(o),{lineLength:l,lineTokens:s,ruleStack:a.stack,stoppedEarly:a.stoppedEarly}}};function ac(e,t){return e=d_(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Er=class ot{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,i=(t==null?void 0:t.scopePath)??null;for(const o of n)i=ml.push(i,o.scopeNames),r=new ot(r,i,o.encodedTokenAttributes);return r}static createRoot(t,n){return new ot(null,new ml(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const i=r.getMetadataForScope(t),o=new ml(null,t),l=r.themeProvider.themeMatch(o),s=ot.mergeAttributes(n,i,l);return new ot(null,o,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return ot.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let i=-1,o=0,l=0;return r!==null&&(i=r.fontStyle,o=r.foregroundId,l=r.backgroundId),Gn.set(t,n.languageId,n.tokenType,null,i,o,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return ot._pushAttributed(this,t,n);const r=t.split(/ /g);let i=this;for(const o of r)i=ot._pushAttributed(i,o,n);return i}static _pushAttributed(t,n,r){const i=r.getMetadataForScope(n),o=t.scopePath.push(n),l=r.themeProvider.themeMatch(o),s=ot.mergeAttributes(t.tokenAttributes,i,l);return new ot(t,o,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var i;const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((i=r.parent)==null?void 0:i.scopePath)??null)}),r=r.parent;return r===t?n.reverse():void 0}},He,Ss=(He=class{constructor(t,n,r,i,o,l,s,a){w(this,"_stackElementBrand");w(this,"_enterPos");w(this,"_anchorPos");w(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=l,this.nameScopesList=s,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=i}equals(t){return t===null?!1:He._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Er.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){He._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,o,l,s){return new He(this,t,n,r,i,o,l,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){var r,i;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(i=this.contentNameScopesList)==null?void 0:i.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new He(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var t,n,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,n){const r=Er.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new He(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Er.fromExtension(r,n.contentNameScopesList))}},w(He,"NULL",new He(null,0,0,0,!1,null,null,null)),He),K_=class{constructor(e,t){w(this,"balancedBracketScopes");w(this,"unbalancedBracketScopes");w(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):io(n,so).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>io(n,so).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Q_=class{constructor(e,t,n,r){w(this,"_emitBinaryTokens");w(this,"_lineText");w(this,"_tokens");w(this,"_binaryTokens");w(this,"_lastTokenEndIndex");w(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var r;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let i=(e==null?void 0:e.tokenAttributes)??0,o=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const l=(e==null?void 0:e.getScopeNames())??[];for(const s of this._tokenTypeOverrides)s.matcher(l)&&(i=Gn.set(i,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(l))}if(o&&(i=Gn.set(i,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=t;return}const n=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,i=this._binaryTokens.length;r<i;r++)n[r]=this._binaryTokens[r];return n}},q_=class{constructor(e,t){w(this,"_grammars",new Map);w(this,"_rawGrammars",new Map);w(this,"_injectionGrammars",new Map);w(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,G_(e,o,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},Y_=class{constructor(t){w(this,"_options");w(this,"_syncRegistry");w(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new q_(ro.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(ro.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new K_(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,i,o){const l=new L_(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(s=>this._loadSingleGrammar(s.scopeName)),l.processQueue();return this._grammarForScopeName(t,n,r,i,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,i=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,i)}_grammarForScopeName(t,n=0,r=null,i=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,i,o)}},ws=Ss.NULL;const X_=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Qr{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Qr.prototype.normal={};Qr.prototype.property={};Qr.prototype.space=void 0;function dp(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Qr(n,r,t)}function ks(e){return e.toLowerCase()}class Ie{constructor(t,n){this.attribute=n,this.property=t}}Ie.prototype.attribute="";Ie.prototype.booleanish=!1;Ie.prototype.boolean=!1;Ie.prototype.commaOrSpaceSeparated=!1;Ie.prototype.commaSeparated=!1;Ie.prototype.defined=!1;Ie.prototype.mustUseProperty=!1;Ie.prototype.number=!1;Ie.prototype.overloadedBoolean=!1;Ie.prototype.property="";Ie.prototype.spaceSeparated=!1;Ie.prototype.space=void 0;let J_=0;const j=pn(),te=pn(),Cs=pn(),A=pn(),$=pn(),On=pn(),Ne=pn();function pn(){return 2**++J_}const Ls=Object.freeze(Object.defineProperty({__proto__:null,boolean:j,booleanish:te,commaOrSpaceSeparated:Ne,commaSeparated:On,number:A,overloadedBoolean:Cs,spaceSeparated:$},Symbol.toStringTag,{value:"Module"})),_l=Object.keys(Ls);class Ia extends Ie{constructor(t,n,r,i){let o=-1;if(super(t,n),uc(this,"space",i),typeof r=="number")for(;++o<_l.length;){const l=_l[o];uc(this,_l[o],(r&Ls[l])===Ls[l])}}}Ia.prototype.defined=!0;function uc(e,t,n){n&&(e[t]=n)}function Qn(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Ia(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[ks(r)]=r,n[ks(o.attribute)]=r}return new Qr(t,n,e.space)}const fp=Qn({properties:{ariaActiveDescendant:null,ariaAtomic:te,ariaAutoComplete:null,ariaBusy:te,ariaChecked:te,ariaColCount:A,ariaColIndex:A,ariaColSpan:A,ariaControls:$,ariaCurrent:null,ariaDescribedBy:$,ariaDetails:null,ariaDisabled:te,ariaDropEffect:$,ariaErrorMessage:null,ariaExpanded:te,ariaFlowTo:$,ariaGrabbed:te,ariaHasPopup:null,ariaHidden:te,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$,ariaLevel:A,ariaLive:null,ariaModal:te,ariaMultiLine:te,ariaMultiSelectable:te,ariaOrientation:null,ariaOwns:$,ariaPlaceholder:null,ariaPosInSet:A,ariaPressed:te,ariaReadOnly:te,ariaRelevant:null,ariaRequired:te,ariaRoleDescription:$,ariaRowCount:A,ariaRowIndex:A,ariaRowSpan:A,ariaSelected:te,ariaSetSize:A,ariaSort:null,ariaValueMax:A,ariaValueMin:A,ariaValueNow:A,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function pp(e,t){return t in e?e[t]:t}function hp(e,t){return pp(e,t.toLowerCase())}const Z_=Qn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:On,acceptCharset:$,accessKey:$,action:null,allow:null,allowFullScreen:j,allowPaymentRequest:j,allowUserMedia:j,alt:null,as:null,async:j,autoCapitalize:null,autoComplete:$,autoFocus:j,autoPlay:j,blocking:$,capture:null,charSet:null,checked:j,cite:null,className:$,cols:A,colSpan:null,content:null,contentEditable:te,controls:j,controlsList:$,coords:A|On,crossOrigin:null,data:null,dateTime:null,decoding:null,default:j,defer:j,dir:null,dirName:null,disabled:j,download:Cs,draggable:te,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:j,formTarget:null,headers:$,height:A,hidden:Cs,high:A,href:null,hrefLang:null,htmlFor:$,httpEquiv:$,id:null,imageSizes:null,imageSrcSet:null,inert:j,inputMode:null,integrity:null,is:null,isMap:j,itemId:null,itemProp:$,itemRef:$,itemScope:j,itemType:$,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:j,low:A,manifest:null,max:null,maxLength:A,media:null,method:null,min:null,minLength:A,multiple:j,muted:j,name:null,nonce:null,noModule:j,noValidate:j,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:j,optimum:A,pattern:null,ping:$,placeholder:null,playsInline:j,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:j,referrerPolicy:null,rel:$,required:j,reversed:j,rows:A,rowSpan:A,sandbox:$,scope:null,scoped:j,seamless:j,selected:j,shadowRootClonable:j,shadowRootDelegatesFocus:j,shadowRootMode:null,shape:null,size:A,sizes:null,slot:null,span:A,spellCheck:te,src:null,srcDoc:null,srcLang:null,srcSet:null,start:A,step:null,style:null,tabIndex:A,target:null,title:null,translate:null,type:null,typeMustMatch:j,useMap:null,value:te,width:A,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$,axis:null,background:null,bgColor:null,border:A,borderColor:null,bottomMargin:A,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:j,declare:j,event:null,face:null,frame:null,frameBorder:null,hSpace:A,leftMargin:A,link:null,longDesc:null,lowSrc:null,marginHeight:A,marginWidth:A,noResize:j,noHref:j,noShade:j,noWrap:j,object:null,profile:null,prompt:null,rev:null,rightMargin:A,rules:null,scheme:null,scrolling:te,standby:null,summary:null,text:null,topMargin:A,valueType:null,version:null,vAlign:null,vLink:null,vSpace:A,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:j,disableRemotePlayback:j,prefix:null,property:null,results:A,security:null,unselectable:null},space:"html",transform:hp}),ey=Qn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ne,accentHeight:A,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:A,amplitude:A,arabicForm:null,ascent:A,attributeName:null,attributeType:null,azimuth:A,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:A,by:null,calcMode:null,capHeight:A,className:$,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:A,diffuseConstant:A,direction:null,display:null,dur:null,divisor:A,dominantBaseline:null,download:j,dx:null,dy:null,edgeMode:null,editable:null,elevation:A,enableBackground:null,end:null,event:null,exponent:A,externalResourcesRequired:null,fill:null,fillOpacity:A,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:On,g2:On,glyphName:On,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:A,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:A,horizOriginX:A,horizOriginY:A,id:null,ideographic:A,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:A,k:A,k1:A,k2:A,k3:A,k4:A,kernelMatrix:Ne,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:A,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:A,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:A,overlineThickness:A,paintOrder:null,panose1:null,path:null,pathLength:A,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:A,pointsAtY:A,pointsAtZ:A,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ne,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ne,rev:Ne,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ne,requiredFeatures:Ne,requiredFonts:Ne,requiredFormats:Ne,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:A,specularExponent:A,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:A,strikethroughThickness:A,string:null,stroke:null,strokeDashArray:Ne,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:A,strokeOpacity:A,strokeWidth:null,style:null,surfaceScale:A,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ne,tabIndex:A,tableValues:null,target:null,targetX:A,targetY:A,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ne,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:A,underlineThickness:A,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:A,values:null,vAlphabetic:A,vMathematical:A,vectorEffect:null,vHanging:A,vIdeographic:A,version:null,vertAdvY:A,vertOriginX:A,vertOriginY:A,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:A,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:pp}),mp=Qn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),gp=Qn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:hp}),_p=Qn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ty=/[A-Z]/g,cc=/-[a-z]/g,ny=/^data[-\w.:]+$/i;function ry(e,t){const n=ks(t);let r=t,i=Ie;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ny.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(cc,oy);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!cc.test(o)){let l=o.replace(ty,iy);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Ia}return new i(r,t)}function iy(e){return"-"+e.toLowerCase()}function oy(e){return e.charAt(1).toUpperCase()}const ly=dp([fp,Z_,mp,gp,_p],"html"),yp=dp([fp,ey,mp,gp,_p],"svg"),dc={}.hasOwnProperty;function sy(e,t){const n=t||{};function r(i,...o){let l=r.invalid;const s=r.handlers;if(i&&dc.call(i,e)){const a=String(i[e]);l=dc.call(s,a)?s[a]:r.unknown}if(l)return l.call(this,i,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const ay=/["&'<>`]/g,uy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,cy=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,dy=/[|\\{}()[\]^$+*?.]/g,fc=new WeakMap;function fy(e,t){if(e=e.replace(t.subset?py(t.subset):ay,r),t.subset||t.escapeOnly)return e;return e.replace(uy,n).replace(cy,r);function n(i,o,l){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,l.charCodeAt(o+2),t)}function r(i,o,l){return t.format(i.charCodeAt(0),l.charCodeAt(o+1),t)}}function py(e){let t=fc.get(e);return t||(t=hy(e),fc.set(e,t)),t}function hy(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(dy,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const my=/[\dA-Fa-f]/;function gy(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!my.test(String.fromCharCode(t))?r:r+";"}const _y=/\d/;function yy(e,t,n){const r="&#"+String(e);return n&&t&&!_y.test(String.fromCharCode(t))?r:r+";"}const vy=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],yl={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Ey=["cent","copy","divide","gt","lt","not","para","times"],vp={}.hasOwnProperty,Ps={};let mi;for(mi in yl)vp.call(yl,mi)&&(Ps[yl[mi]]=mi);const Sy=/[^\dA-Za-z]/;function wy(e,t,n,r){const i=String.fromCharCode(e);if(vp.call(Ps,i)){const o=Ps[i],l="&"+o;return n&&vy.includes(o)&&!Ey.includes(o)&&(!r||t&&t!==61&&Sy.test(String.fromCharCode(t)))?l:l+";"}return""}function ky(e,t,n){let r=gy(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=wy(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const o=yy(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function Mn(e,t){return fy(e,Object.assign({format:ky},t))}const Cy=/^>|^->|<!--|-->|--!>|<!-$/g,Ly=[">"],Py=["<",">"];function Ay(e,t,n,r){return r.settings.bogusComments?"<?"+Mn(e.value,Object.assign({},r.settings.characterReferences,{subset:Ly}))+">":"<!--"+e.value.replace(Cy,i)+"-->";function i(o){return Mn(o,Object.assign({},r.settings.characterReferences,{subset:Py}))}}function Ry(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function pc(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function xy(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function Ty(e){return e.join(" ").trim()}const Iy=/[ \t\n\f\r]/g;function Da(e){return typeof e=="object"?e.type==="text"?hc(e.value):!1:hc(e)}function hc(e){return e.replace(Iy,"")===""}const ae=Sp(1),Ep=Sp(-1),Dy=[];function Sp(e){return t;function t(n,r,i){const o=n?n.children:Dy;let l=(r||0)+e,s=o[l];if(!i)for(;s&&Da(s);)l+=e,s=o[l];return s}}const Ny={}.hasOwnProperty;function wp(e){return t;function t(n,r,i){return Ny.call(e,n.tagName)&&e[n.tagName](n,r,i)}}const Na=wp({body:My,caption:vl,colgroup:vl,dd:zy,dt:Fy,head:vl,html:Oy,li:jy,optgroup:By,option:by,p:Vy,rp:mc,rt:mc,tbody:Uy,td:gc,tfoot:Gy,th:gc,thead:$y,tr:Hy});function vl(e,t,n){const r=ae(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Da(r.value.charAt(0)))}function Oy(e,t,n){const r=ae(n,t);return!r||r.type!=="comment"}function My(e,t,n){const r=ae(n,t);return!r||r.type!=="comment"}function Vy(e,t,n){const r=ae(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function jy(e,t,n){const r=ae(n,t);return!r||r.type==="element"&&r.tagName==="li"}function Fy(e,t,n){const r=ae(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function zy(e,t,n){const r=ae(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function mc(e,t,n){const r=ae(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function By(e,t,n){const r=ae(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function by(e,t,n){const r=ae(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function $y(e,t,n){const r=ae(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Uy(e,t,n){const r=ae(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Gy(e,t,n){return!ae(n,t)}function Hy(e,t,n){const r=ae(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function gc(e,t,n){const r=ae(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Wy=wp({body:qy,colgroup:Yy,head:Qy,html:Ky,tbody:Xy});function Ky(e){const t=ae(e,-1);return!t||t.type!=="comment"}function Qy(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function qy(e){const t=ae(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Da(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Yy(e,t,n){const r=Ep(n,t),i=ae(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Na(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function Xy(e,t,n){const r=Ep(n,t),i=ae(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Na(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const gi={name:[[`
145
+ \f\r &/=>`.split(""),`
146
+ \f\r "&'/=>\``.split("")],[`\0
147
+ \f\r "&'/<=>`.split(""),`\0
148
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
149
+ \f\r &>`.split(""),`\0
150
+ \f\r "&'<=>\``.split("")],[`\0
151
+ \f\r "&'<=>\``.split(""),`\0
152
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Jy(e,t,n,r){const i=r.schema,o=i.space==="svg"?!1:r.settings.omitOptionalTags;let l=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const s=[];let a;i.space==="html"&&e.tagName==="svg"&&(r.schema=yp);const u=Zy(r,e.properties),c=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,c&&(l=!1),(u||!o||!Wy(e,t,n))&&(s.push("<",e.tagName,u?" "+u:""),l&&(i.space==="svg"||r.settings.closeSelfClosing)&&(a=u.charAt(u.length-1),(!r.settings.tightSelfClosing||a==="/"||a&&a!=='"'&&a!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(c),!l&&(!o||!Na(e,t,n))&&s.push("</"+e.tagName+">"),s.join("")}function Zy(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const o=e0(e,i,t[i]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function e0(e,t,n){const r=ry(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let l=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const a=Mn(r.attribute,Object.assign({},e.settings.characterReferences,{subset:gi.name[i][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?xy:Ty)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?a:(e.settings.preferUnquoted&&(s=Mn(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:gi.unquoted[i][o]}))),s!==n&&(e.settings.quoteSmart&&pc(n,l)>pc(n,e.alternative)&&(l=e.alternative),s=l+Mn(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?gi.single:gi.double)[i][o],attribute:!0}))+l),a+(s&&"="+s))}const t0=["<","&"];function kp(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Mn(e.value,Object.assign({},r.settings.characterReferences,{subset:t0}))}function n0(e,t,n,r){return r.settings.allowDangerousHtml?e.value:kp(e,t,n,r)}function r0(e,t,n,r){return r.all(e)}const i0=sy("type",{invalid:o0,unknown:l0,handlers:{comment:Ay,doctype:Ry,element:Jy,raw:n0,root:r0,text:kp}});function o0(e){throw new Error("Expected node, not `"+e+"`")}function l0(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const s0={},a0={},u0=[];function c0(e,t){const n=t||s0,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:d0,all:f0,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||X_,characterReferences:n.characterReferences||a0,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?yp:ly,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function d0(e,t,n){return i0(e,t,n,this)}function f0(e){const t=[],n=e&&e.children||u0;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function ao(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[i,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?n[i]=o:i===r&&Object.assign(n,o);return n}function bt(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function p0(e){return Array.isArray(e)?e:[e]}async function Cp(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Oa(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Lp(e){return e==="ansi"||Oa(e)}function Ma(e){return e==="none"}function Pp(e){return Ma(e)}function Ap(e,t){var r;if(!t)return e;e.properties||(e.properties={}),(r=e.properties).class||(r.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const i of n)i&&!e.properties.class.includes(i)&&e.properties.class.push(i);return e}function Mo(e,t=!1){var o;if(e.length===0)return[["",0]];const n=e.split(/(\r?\n)/g);let r=0;const i=[];for(let l=0;l<n.length;l+=2){const s=t?n[l]+(n[l+1]||""):n[l];i.push([s,r]),r+=n[l].length,r+=((o=n[l+1])==null?void 0:o.length)||0}return i}function h0(e){const t=Mo(e,!0).map(([i])=>i);function n(i){if(i===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=i,l=0;for(const s of t){if(o<s.length)break;o-=s.length,l++}return{line:l,character:o}}function r(i,o){let l=0;for(let s=0;s<i;s++)l+=t[s].length;return l+=o,l}return{lines:t,indexToPos:n,posToIndex:r}}const Va="light-dark()",m0=["color","background-color"];function g0(e,t){let n=0;const r=[];for(const i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function _0(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,i)=>r-i);return n.length?e.map(r=>r.flatMap(i=>{const o=n.filter(l=>i.offset<l&&l<i.offset+i.content.length).map(l=>l-i.offset).sort((l,s)=>l-s);return o.length?g0(i,o):i})):e}function y0(e,t,n,r,i="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},l=t.map(c=>uo(e.variants[c])),s=new Set(l.flatMap(c=>Object.keys(c))),a={},u=(c,d)=>{const f=d==="color"?"":d==="background-color"?"-bg":`-${d}`;return n+t[c]+(d==="color"?"":f)};return l.forEach((c,d)=>{for(const f of s){const p=c[f]||"inherit";if(d===0&&r&&m0.includes(f))if(r===Va&&l.length>1){const y=t.findIndex(m=>m==="light"),v=t.findIndex(m=>m==="dark");if(y===-1||v===-1)throw new ne('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const L=l[y][f]||"inherit",g=l[v][f]||"inherit";a[f]=`light-dark(${L}, ${g})`,i==="css-vars"&&(a[u(d,f)]=p)}else a[f]=p;else i==="css-vars"&&(a[u(d,f)]=p)}}),o.htmlStyle=a,o}function uo(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Ee.Italic&&(t["font-style"]="italic"),e.fontStyle&Ee.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&Ee.Underline&&n.push("underline"),e.fontStyle&Ee.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function As(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const Rp=new WeakMap;function Vo(e,t){Rp.set(e,t)}function br(e){return Rp.get(e)}class qn{constructor(...t){w(this,"_stacks",{});w(this,"lang");if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,i]=t;this.lang=r,this._stacks={[i]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new qn(Object.fromEntries(p0(n).map(r=>[r,ws])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return v0(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function v0(e){const t=[],n=new Set;function r(i){var l;if(n.has(i))return;n.add(i);const o=(l=i==null?void 0:i.nameScopesList)==null?void 0:l.scopeName;o&&t.push(o),i.parent&&r(i.parent)}return r(e),t}function E0(e,t){if(!(e instanceof qn))throw new ne("Invalid grammar state");return e.getInternalStack(t)}function S0(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(l){if(typeof l=="number"){if(l<0||l>n.source.length)throw new ne(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...i.indexToPos(l),offset:l}}else{const s=i.lines[l.line];if(s===void 0)throw new ne(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${i.lines.length}`);let a=l.character;if(a<0&&(a=s.length+a),a<0||a>s.length)throw new ne(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${s.length}`);return{...l,character:a,offset:i.posToIndex(l.line,a)}}};const i=h0(n.source),o=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));w0(o),e.set(n.meta,{decorations:o,converter:i,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var l;if(!((l=this.options.decorations)!=null&&l.length))return;const i=t(this).decorations.flatMap(s=>[s.start.offset,s.end.offset]);return _0(n,i)},code(n){var c;if(!((c=this.options.decorations)!=null&&c.length))return;const r=t(this),i=Array.from(n.children).filter(d=>d.type==="element"&&d.tagName==="span");if(i.length!==r.converter.lines.length)throw new ne(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(d,f,p,y){const v=i[d];let L="",g=-1,m=-1;if(f===0&&(g=0),p===0&&(m=0),p===Number.POSITIVE_INFINITY&&(m=v.children.length),g===-1||m===-1)for(let E=0;E<v.children.length;E++)L+=xp(v.children[E]),g===-1&&L.length===f&&(g=E+1),m===-1&&L.length===p&&(m=E+1);if(g===-1)throw new ne(`Failed to find start index for decoration ${JSON.stringify(y.start)}`);if(m===-1)throw new ne(`Failed to find end index for decoration ${JSON.stringify(y.end)}`);const _=v.children.slice(g,m);if(!y.alwaysWrap&&_.length===v.children.length)s(v,y,"line");else if(!y.alwaysWrap&&_.length===1&&_[0].type==="element")s(_[0],y,"token");else{const E={type:"element",tagName:"span",properties:{},children:_};s(E,y,"wrapper"),v.children.splice(g,_.length,E)}}function l(d,f){i[d]=s(i[d],f,"line")}function s(d,f,p){var L;const y=f.properties||{},v=f.transform||(g=>g);return d.tagName=f.tagName||"span",d.properties={...d.properties,...y,class:d.properties.class},(L=f.properties)!=null&&L.class&&Ap(d,f.properties.class),d=v(d,p)||d,d}const a=[],u=r.decorations.sort((d,f)=>f.start.offset-d.start.offset||d.end.offset-f.end.offset);for(const d of u){const{start:f,end:p}=d;if(f.line===p.line)o(f.line,f.character,p.character,d);else if(f.line<p.line){o(f.line,f.character,Number.POSITIVE_INFINITY,d);for(let y=f.line+1;y<p.line;y++)a.unshift(()=>l(y,d));o(p.line,0,p.character,d)}}a.forEach(d=>d())}}}function w0(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new ne(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const i=e[r],o=n.start.offset<=i.start.offset&&i.start.offset<n.end.offset,l=n.start.offset<i.end.offset&&i.end.offset<=n.end.offset,s=i.start.offset<=n.start.offset&&n.start.offset<i.end.offset,a=i.start.offset<n.end.offset&&n.end.offset<=i.end.offset;if(o||l||s||a){if(o&&l||s&&a||s&&n.start.offset===n.end.offset||l&&i.start.offset===i.end.offset)continue;throw new ne(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}function xp(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(xp).join(""):""}const k0=[S0()];function co(e){const t=C0(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...k0]}function C0(e){const t=[],n=[],r=[];for(const i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var nn=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],El={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function L0(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function _c(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function P0(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)El[r]&&t.push({type:"setDecoration",value:El[r]});else if(r<=29){const i=El[r-20];i&&(t.push({type:"resetDecoration",value:i}),i==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:nn[r-30]}});else if(r===38){const i=_c(e);i&&t.push({type:"setForegroundColor",value:i})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:nn[r-40]}});else if(r===48){const i=_c(e);i&&t.push({type:"setBackgroundColor",value:i})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:nn[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:nn[r-100+8]}})}return t}function A0(){let e=null,t=null,n=new Set;return{parse(r){const i=[];let o=0;do{const l=L0(r,o),s=l.sequence?r.substring(o,l.startPosition):r.substring(o);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const a=P0(l.sequence);for(const u of a)u.type==="resetAll"?(e=null,t=null,n.clear()):u.type==="resetForegroundColor"?e=null:u.type==="resetBackgroundColor"?t=null:u.type==="resetDecoration"&&n.delete(u.value);for(const u of a)u.type==="setForegroundColor"?e=u.value:u.type==="setBackgroundColor"?t=u.value:u.type==="setDecoration"&&n.add(u.value)}o=l.position}while(o<r.length);return i}}}var R0={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function x0(e=R0){function t(s){return e[s]}function n(s){return`#${s.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}let r;function i(){if(r)return r;r=[];for(let u=0;u<nn.length;u++)r.push(t(nn[u]));let s=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let c=0;c<6;c++)for(let d=0;d<6;d++)r.push(n([s[u],s[c],s[d]]));let a=8;for(let u=0;u<24;u++,a+=10)r.push(n([a,a,a]));return r}function o(s){return i()[s]}function l(s){switch(s.type){case"named":return t(s.name);case"rgb":return n(s.rgb);case"table":return o(s.index)}}return{value:l}}const T0={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function I0(e,t,n){const r=ao(e,n),i=Mo(t),o=Object.fromEntries(nn.map(a=>{var d;const u=`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`,c=(d=e.colors)==null?void 0:d[u];return[a,c||T0[a]]})),l=x0(o),s=A0();return i.map(a=>s.parse(a[0]).map(u=>{let c,d;u.decorations.has("reverse")?(c=u.background?l.value(u.background):e.bg,d=u.foreground?l.value(u.foreground):e.fg):(c=u.foreground?l.value(u.foreground):e.fg,d=u.background?l.value(u.background):void 0),c=bt(c,r),d=bt(d,r),u.decorations.has("dim")&&(c=D0(c));let f=Ee.None;return u.decorations.has("bold")&&(f|=Ee.Bold),u.decorations.has("italic")&&(f|=Ee.Italic),u.decorations.has("underline")&&(f|=Ee.Underline),u.decorations.has("strikethrough")&&(f|=Ee.Strikethrough),{content:u.value,offset:a[1],color:c,bgColor:d,fontStyle:f}}))}function D0(e){const t=e.match(/#([0-9a-f]{3,8})/i);if(t){const r=t[1];if(r.length===8){const i=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${i}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const i=r[0],o=r[1],l=r[2],s=r[3],a=Math.round(Number.parseInt(`${s}${s}`,16)/2).toString(16).padStart(2,"0");return`#${i}${i}${o}${o}${l}${l}${a}`}else if(r.length===3){const i=r[0],o=r[1],l=r[2];return`#${i}${i}${o}${o}${l}${l}80`}}}const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function ja(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n,i=e.resolveLangAlias(n.lang||"text");if(Oa(i)||Ma(r))return Mo(t).map(a=>[{content:a[0],offset:a[1]}]);const{theme:o,colorMap:l}=e.setTheme(r);if(i==="ansi")return I0(o,t,n);const s=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==s.name)throw new ne(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(o.name))throw new ne(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return O0(t,s,o,l,n)}function N0(...e){if(e.length===2)return br(e[1]);const[t,n,r={}]=e,{lang:i="text",theme:o=t.getLoadedThemes()[0]}=r;if(Oa(i)||Ma(o))throw new ne("Plain language does not have grammar state");if(i==="ansi")throw new ne("ANSI language does not have grammar state");const{theme:l,colorMap:s}=t.setTheme(o),a=t.getLanguage(i);return new qn(Fa(n,a,l,s,r).stateStack,a.name,l.name)}function O0(e,t,n,r,i){const o=Fa(e,t,n,r,i),l=new qn(o.stateStack,t.name,n.name);return Vo(o.tokens,l),o.tokens}function Fa(e,t,n,r,i){const o=ao(n,i),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:s=500}=i,a=Mo(e);let u=i.grammarState?E0(i.grammarState,n.name)??ws:i.grammarContextCode!=null?Fa(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:ws,c=[];const d=[];for(let f=0,p=a.length;f<p;f++){const[y,v]=a[f];if(y===""){c=[],d.push([]);continue}if(l>0&&y.length>=l){c=[],d.push([{content:y,offset:v,color:"",fontStyle:0}]);continue}let L,g,m;i.includeExplanation&&(L=t.tokenizeLine(y,u,s),g=L.tokens,m=0);const _=t.tokenizeLine2(y,u,s),E=_.tokens.length/2;for(let C=0;C<E;C++){const R=_.tokens[2*C],k=C+1<E?_.tokens[2*C+2]:y.length;if(R===k)continue;const x=_.tokens[2*C+1],O=bt(r[Gn.getForeground(x)],o),D=Gn.getFontStyle(x),X={content:y.substring(R,k),offset:v+R,color:O,fontStyle:D};if(i.includeExplanation){const ie=[];if(i.includeExplanation!=="scopeName")for(const W of n.settings){let De;switch(typeof W.scope){case"string":De=W.scope.split(/,/).map(rt=>rt.trim());break;case"object":De=W.scope;break;default:continue}ie.push({settings:W,selectors:De.map(rt=>rt.split(/ /))})}X.explanation=[];let pt=0;for(;R+pt<k;){const W=g[m],De=y.substring(W.startIndex,W.endIndex);pt+=De.length,X.explanation.push({content:De,scopes:i.includeExplanation==="scopeName"?M0(W.scopes):V0(ie,W.scopes)}),m+=1}}c.push(X)}d.push(c),c=[],u=_.ruleStack}return{tokens:d,stateStack:u}}function M0(e){return e.map(t=>({scopeName:t}))}function V0(e,t){const n=[];for(let r=0,i=t.length;r<i;r++){const o=t[r];n[r]={scopeName:o,themeMatches:F0(e,o,t.slice(0,r))}}return n}function yc(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function j0(e,t,n){if(!yc(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)yc(e[r],n[i])&&(r-=1),i-=1;return r===-1}function F0(e,t,n){const r=[];for(const{selectors:i,settings:o}of e)for(const l of i)if(j0(l,t,n)){r.push(o);break}return r}function Tp(e,t,n){const r=Object.entries(n.themes).filter(a=>a[1]).map(a=>({color:a[0],theme:a[1]})),i=r.map(a=>{const u=ja(e,t,{...n,theme:a.theme}),c=br(u),d=typeof a.theme=="string"?a.theme:a.theme.name;return{tokens:u,state:c,theme:d}}),o=z0(...i.map(a=>a.tokens)),l=o[0].map((a,u)=>a.map((c,d)=>{const f={content:c.content,variants:{},offset:c.offset};return"includeExplanation"in n&&n.includeExplanation&&(f.explanation=c.explanation),o.forEach((p,y)=>{const{content:v,explanation:L,offset:g,...m}=p[u][d];f.variants[r[y].color]=m}),f})),s=i[0].state?new qn(Object.fromEntries(i.map(a=>{var u;return[a.theme,(u=a.state)==null?void 0:u.getInternalStack(a.theme)]})),i[0].state.lang):void 0;return s&&Vo(l,s),l}function z0(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const i=e.map(a=>a[r]),o=t.map(()=>[]);t.forEach((a,u)=>a.push(o[u]));const l=i.map(()=>0),s=i.map(a=>a[0]);for(;s.every(a=>a);){const a=Math.min(...s.map(u=>u.content.length));for(let u=0;u<n;u++){const c=s[u];c.content.length===a?(o[u].push(c),l[u]+=1,s[u]=i[u][l[u]]):(o[u].push({...c,content:c.content.slice(0,a)}),s[u]={...c,content:c.content.slice(a),offset:c.offset+a})}}}return t}function fo(e,t,n){let r,i,o,l,s,a;if("themes"in n){const{defaultColor:u="light",cssVariablePrefix:c="--shiki-",colorsRendering:d="css-vars"}=n,f=Object.entries(n.themes).filter(g=>g[1]).map(g=>({color:g[0],theme:g[1]})).sort((g,m)=>g.color===u?-1:m.color===u?1:0);if(f.length===0)throw new ne("`themes` option must not be empty");const p=Tp(e,t,n);if(a=br(p),u&&Va!==u&&!f.find(g=>g.color===u))throw new ne(`\`themes\` option must contain the defaultColor key \`${u}\``);const y=f.map(g=>e.getTheme(g.theme)),v=f.map(g=>g.color);o=p.map(g=>g.map(m=>y0(m,v,c,u,d))),a&&Vo(o,a);const L=f.map(g=>ao(g.theme,n));i=vc(f,y,L,c,u,"fg",d),r=vc(f,y,L,c,u,"bg",d),l=`shiki-themes ${y.map(g=>g.name).join(" ")}`,s=u?void 0:[i,r].join(";")}else if("theme"in n){const u=ao(n.theme,n);o=ja(e,t,n);const c=e.getTheme(n.theme);r=bt(c.bg,u),i=bt(c.fg,u),l=c.name,a=br(o)}else throw new ne("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:i,bg:r,themeName:l,rootStyle:s,grammarState:a}}function vc(e,t,n,r,i,o,l){return e.map((s,a)=>{const u=bt(t[a][o],n[a])||"inherit",c=`${r+s.color}${o==="bg"?"-bg":""}:${u}`;if(a===0&&i){if(i===Va&&e.length>1){const d=e.findIndex(v=>v.color==="light"),f=e.findIndex(v=>v.color==="dark");if(d===-1||f===-1)throw new ne('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const p=bt(t[d][o],n[d])||"inherit",y=bt(t[f][o],n[f])||"inherit";return`light-dark(${p}, ${y});${c}`}return u}return l==="css-vars"?c:null}).filter(s=>!!s).join(";")}function po(e,t,n,r={meta:{},options:n,codeToHast:(i,o)=>po(e,i,o),codeToTokens:(i,o)=>fo(e,i,o)}){var y,v;let i=t;for(const L of co(n))i=((y=L.preprocess)==null?void 0:y.call(r,i,n))||i;let{tokens:o,fg:l,bg:s,themeName:a,rootStyle:u,grammarState:c}=fo(e,i,n);const{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?o=b0(o):d==="never"&&(o=$0(o)),f&&(o=U0(o));const p={...r,get source(){return i}};for(const L of co(n))o=((v=L.tokens)==null?void 0:v.call(p,o))||o;return B0(o,{...n,fg:l,bg:s,themeName:a,rootStyle:n.rootStyle===!1?!1:n.rootStyle??u},p,c)}function B0(e,t,n,r=br(e)){var v,L,g,m;const i=co(t),o=[],l={type:"root",children:[]},{structure:s="classic",tabindex:a="0"}=t,u={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?u.style=t.rootStyle:u.style=`background-color:${t.bg};color:${t.fg}`),a!==!1&&a!=null&&(u.tabindex=a.toString());for(const[_,E]of Object.entries(t.meta||{}))_.startsWith("_")||(u[_]=E);let c={type:"element",tagName:"pre",properties:u,children:[],data:t.data},d={type:"element",tagName:"code",properties:{},children:o};const f=[],p={...n,structure:s,addClassToHast:Ap,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return l},get pre(){return c},get code(){return d},get lines(){return f}};if(e.forEach((_,E)=>{var k,x;E&&(s==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&o.push({type:"text",value:`
153
+ `}));let C={type:"element",tagName:"span",properties:{class:"line"},children:[]},R=0;for(const O of _){let D={type:"element",tagName:"span",properties:{...O.htmlAttrs},children:[{type:"text",value:O.content}]};const X=As(O.htmlStyle||uo(O));X&&(D.properties.style=X);for(const ie of i)D=((k=ie==null?void 0:ie.span)==null?void 0:k.call(p,D,E+1,R,C,O))||D;s==="inline"?l.children.push(D):s==="classic"&&C.children.push(D),R+=O.content.length}if(s==="classic"){for(const O of i)C=((x=O==null?void 0:O.line)==null?void 0:x.call(p,C,E+1))||C;f.push(C),o.push(C)}else s==="inline"&&f.push(C)}),s==="classic"){for(const _ of i)d=((v=_==null?void 0:_.code)==null?void 0:v.call(p,d))||d;c.children.push(d);for(const _ of i)c=((L=_==null?void 0:_.pre)==null?void 0:L.call(p,c))||c;l.children.push(c)}else if(s==="inline"){const _=[];let E={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const k of l.children)k.type==="element"&&k.tagName==="br"?(_.push(E),E={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(k.type==="element"||k.type==="text")&&E.children.push(k);_.push(E);let R={type:"element",tagName:"code",properties:{},children:_};for(const k of i)R=((g=k==null?void 0:k.code)==null?void 0:g.call(p,R))||R;l.children=[];for(let k=0;k<R.children.length;k++){k>0&&l.children.push({type:"element",tagName:"br",properties:{},children:[]});const x=R.children[k];x.type==="element"&&l.children.push(...x.children)}}let y=l;for(const _ of i)y=((m=_==null?void 0:_.root)==null?void 0:m.call(p,y))||y;return r&&Vo(y,r),y}function b0(e){return e.map(t=>{const n=[];let r="",i;return t.forEach((o,l)=>{const a=!(o.fontStyle&&(o.fontStyle&Ee.Underline||o.fontStyle&Ee.Strikethrough));a&&o.content.match(/^\s+$/)&&t[l+1]?(i===void 0&&(i=o.offset),r+=o.content):r?(a?n.push({...o,offset:i,content:r+o.content}):n.push({content:r,offset:i},o),i=void 0,r=""):n.push(o)}),n})}function $0(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,i,o,l]=r;if(!i&&!l)return n;const s=[{...n,offset:n.offset+i.length,content:o}];return i&&s.unshift({content:i,offset:n.offset}),l&&s.push({content:l,offset:n.offset+i.length+o.length}),s}))}function U0(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const i=n[n.length-1],o=As(i.htmlStyle||uo(i)),l=As(r.htmlStyle||uo(r)),s=i.fontStyle&&(i.fontStyle&Ee.Underline||i.fontStyle&Ee.Strikethrough),a=r.fontStyle&&(r.fontStyle&Ee.Underline||r.fontStyle&Ee.Strikethrough);!s&&!a&&o===l?i.content+=r.content:n.push({...r})}return n})}const G0=c0;function H0(e,t,n){var o;const r={meta:{},options:n,codeToHast:(l,s)=>po(e,l,s),codeToTokens:(l,s)=>fo(e,l,s)};let i=G0(po(e,t,n,r));for(const l of co(n))i=((o=l.postprocess)==null?void 0:o.call(r,i,n))||i;return i}const Ec={light:"#333333",dark:"#bbbbbb"},Sc={light:"#fffffe",dark:"#1e1e1e"},wc="__shiki_resolved";function za(e){var s,a,u,c,d;if(e!=null&&e[wc])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:r}=t;if(!n||!r){const f=t.settings?t.settings.find(p=>!p.name&&!p.scope):void 0;(s=f==null?void 0:f.settings)!=null&&s.foreground&&(r=f.settings.foreground),(a=f==null?void 0:f.settings)!=null&&a.background&&(n=f.settings.background),!r&&((u=t==null?void 0:t.colors)!=null&&u["editor.foreground"])&&(r=t.colors["editor.foreground"]),!n&&((c=t==null?void 0:t.colors)!=null&&c["editor.background"])&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?Ec.light:Ec.dark),n||(n=t.type==="light"?Sc.light:Sc.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0;const o=new Map;function l(f){var y;if(o.has(f))return o.get(f);i+=1;const p=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return(y=t.colorReplacements)!=null&&y[`#${p}`]?l(f):(o.set(f,p),p)}t.settings=t.settings.map(f=>{var L,g;const p=((L=f.settings)==null?void 0:L.foreground)&&!f.settings.foreground.startsWith("#"),y=((g=f.settings)==null?void 0:g.background)&&!f.settings.background.startsWith("#");if(!p&&!y)return f;const v={...f,settings:{...f.settings}};if(p){const m=l(f.settings.foreground);t.colorReplacements[m]=f.settings.foreground,v.settings.foreground=m}if(y){const m=l(f.settings.background);t.colorReplacements[m]=f.settings.background,v.settings.background=m}return v});for(const f of Object.keys(t.colors||{}))if((f==="editor.foreground"||f==="editor.background"||f.startsWith("terminal.ansi"))&&!((d=t.colors[f])!=null&&d.startsWith("#"))){const p=l(t.colors[f]);t.colorReplacements[p]=t.colors[f],t.colors[f]=p}return Object.defineProperty(t,wc,{enumerable:!1,writable:!1,value:!0}),t}async function Ip(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Lp(t)).map(async t=>await Cp(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Dp(e){return(await Promise.all(e.map(async n=>Pp(n)?null:za(await Cp(n))))).filter(n=>!!n)}let W0=3;function K0(e,t=3){t>W0||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let An=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Np(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new An(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class Q0 extends Y_{constructor(n,r,i,o={}){super(n);w(this,"_resolvedThemes",new Map);w(this,"_resolvedGrammars",new Map);w(this,"_langMap",new Map);w(this,"_langGraph",new Map);w(this,"_textmateThemeCache",new WeakMap);w(this,"_loadedThemesCache",null);w(this,"_loadedLanguagesCache",null);this._resolver=n,this._themes=r,this._langs=i,this._alias=o,this._themes.map(l=>this.loadTheme(l)),this.loadLanguages(this._langs)}getTheme(n){return typeof n=="string"?this._resolvedThemes.get(n):this.loadTheme(n)}loadTheme(n){const r=za(n);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(n){let r=this._textmateThemeCache.get(n);r||(r=ro.createFromRawTheme(n),this._textmateThemeCache.set(n,r)),this._syncRegistry.setTheme(r)}getGrammar(n){return n=Np(n,this._alias),this._resolvedGrammars.get(n)}loadLanguage(n){var l,s,a,u;if(this.getGrammar(n.name))return;const r=new Set([...this._langMap.values()].filter(c=>{var d;return(d=c.embeddedLangsLazy)==null?void 0:d.includes(n.name)}));this._resolver.addLanguage(n);const i={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const o=this.loadGrammarWithConfiguration(n.scopeName,1,i);if(o.name=n.name,this._resolvedGrammars.set(n.name,o),n.aliases&&n.aliases.forEach(c=>{this._alias[c]=n.name}),this._loadedLanguagesCache=null,r.size)for(const c of r)this._resolvedGrammars.delete(c.name),this._loadedLanguagesCache=null,(s=(l=this._syncRegistry)==null?void 0:l._injectionGrammars)==null||s.delete(c.scopeName),(u=(a=this._syncRegistry)==null?void 0:a._grammars)==null||u.delete(c.scopeName),this.loadLanguage(this._langMap.get(c.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(n){for(const o of n)this.resolveEmbeddedLanguages(o);const r=Array.from(this._langGraph.entries()),i=r.filter(([o,l])=>!l);if(i.length){const o=r.filter(([l,s])=>{if(!s)return!1;const a=s.embeddedLanguages||s.embeddedLangs;return a==null?void 0:a.some(u=>i.map(([c])=>c).includes(u))}).filter(l=>!i.includes(l));throw new An(`Missing languages ${i.map(([l])=>`\`${l}\``).join(", ")}, required by ${o.map(([l])=>`\`${l}\``).join(", ")}`)}for(const[o,l]of r)this._resolver.addLanguage(l);for(const[o,l]of r)this.loadLanguage(l)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){this._langMap.set(n.name,n),this._langGraph.set(n.name,n);const r=n.embeddedLanguages??n.embeddedLangs;if(r)for(const i of r)this._langGraph.set(i,this._langMap.get(i))}}class q0{constructor(t,n){w(this,"_langs",new Map);w(this,"_scopeToLang",new Map);w(this,"_injections",new Map);w(this,"_onigLib");this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let i=1;i<=n.length;i++){const o=n.slice(0,i).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let or=0;function Y0(e){or+=1,e.warnings!==!1&&or>=10&&or%10===0&&console.warn(`[Shiki] ${or} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new An("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(za),i=new q0(e.engine,n),o=new Q0(i,r,n,e.langAlias);let l;function s(_){return Np(_,e.langAlias)}function a(_){g();const E=o.getGrammar(typeof _=="string"?_:_.name);if(!E)throw new An(`Language \`${_}\` not found, you may need to load it first`);return E}function u(_){if(_==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};g();const E=o.getTheme(_);if(!E)throw new An(`Theme \`${_}\` not found, you may need to load it first`);return E}function c(_){g();const E=u(_);l!==_&&(o.setTheme(E),l=_);const C=o.getColorMap();return{theme:E,colorMap:C}}function d(){return g(),o.getLoadedThemes()}function f(){return g(),o.getLoadedLanguages()}function p(..._){g(),o.loadLanguages(_.flat(1))}async function y(..._){return p(await Ip(_))}function v(..._){g();for(const E of _.flat(1))o.loadTheme(E)}async function L(..._){return g(),v(await Dp(_))}function g(){if(t)throw new An("Shiki instance has been disposed")}function m(){t||(t=!0,o.dispose(),or-=1)}return{setTheme:c,getTheme:u,getLanguage:a,getLoadedThemes:d,getLoadedLanguages:f,resolveLangAlias:s,loadLanguage:y,loadLanguageSync:p,loadTheme:L,loadThemeSync:v,dispose:m,[Symbol.dispose]:m}}async function X0(e){e.engine||K0("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([Dp(e.themes||[]),Ip(e.langs||[]),e.engine]);return Y0({...e,themes:t,langs:n,engine:r})}async function J0(e){const t=await X0(e);return{getLastGrammarState:(...n)=>N0(t,...n),codeToTokensBase:(n,r)=>ja(t,n,r),codeToTokensWithThemes:(n,r)=>Tp(t,n,r),codeToTokens:(n,r)=>fo(t,n,r),codeToHast:(n,r)=>po(t,n,r),codeToHtml:(n,r)=>H0(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Z0(e){const t=e.langs,n=e.themes,r=e.engine;async function i(o){function l(d){var f;if(typeof d=="string"){if(d=((f=o.langAlias)==null?void 0:f[d])||d,Lp(d))return[];const p=t[d];if(!p)throw new ne(`Language \`${d}\` is not included in this bundle. You may want to load it from external source.`);return p}return d}function s(d){if(Pp(d))return"none";if(typeof d=="string"){const f=n[d];if(!f)throw new ne(`Theme \`${d}\` is not included in this bundle. You may want to load it from external source.`);return f}return d}const a=(o.themes??[]).map(d=>s(d)),u=(o.langs??[]).map(d=>l(d)),c=await J0({engine:o.engine??r(),...o,themes:a,langs:u});return{...c,loadLanguage(...d){return c.loadLanguage(...d.map(l))},loadTheme(...d){return c.loadTheme(...d.map(s))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}const Op=[{id:"abap",name:"ABAP",import:()=>h(()=>import("./abap-BdImnpbu.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>h(()=>import("./actionscript-3-CfeIJUat.js"),[])},{id:"ada",name:"Ada",import:()=>h(()=>import("./ada-bCR0ucgS.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>h(()=>import("./angular-html-CU67Zn6k.js").then(e=>e.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>h(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>h(()=>import("./apache-Pmp26Uib.js"),[])},{id:"apex",name:"Apex",import:()=>h(()=>import("./apex-D8_7TLub.js"),[])},{id:"apl",name:"APL",import:()=>h(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>h(()=>import("./applescript-Co6uUVPk.js"),[])},{id:"ara",name:"Ara",import:()=>h(()=>import("./ara-BRHolxvo.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>h(()=>import("./asciidoc-Dv7Oe6Be.js"),[])},{id:"asm",name:"Assembly",import:()=>h(()=>import("./asm-D_Q5rh1f.js"),[])},{id:"astro",name:"Astro",import:()=>h(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13]))},{id:"awk",name:"AWK",import:()=>h(()=>import("./awk-DMzUqQB5.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>h(()=>import("./ballerina-BFfxhgS-.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>h(()=>import("./bat-BkioyH1T.js"),[])},{id:"beancount",name:"Beancount",import:()=>h(()=>import("./beancount-k_qm7-4y.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>h(()=>import("./berry-uYugtg8r.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>h(()=>import("./bibtex-CHM0blh-.js"),[])},{id:"bicep",name:"Bicep",import:()=>h(()=>import("./bicep-Bmn6On1c.js"),[])},{id:"blade",name:"Blade",import:()=>h(()=>import("./blade-D4QpJJKB.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>h(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18]))},{id:"c",name:"C",import:()=>h(()=>import("./c-BIGW1oBm.js"),[])},{id:"c3",name:"C3",import:()=>h(()=>import("./c3-VCDPK7BO.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>h(()=>import("./cadence-Bv_4Rxtq.js"),[])},{id:"cairo",name:"Cairo",import:()=>h(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20]))},{id:"clarity",name:"Clarity",import:()=>h(()=>import("./clarity-D53aC0YG.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>h(()=>import("./clojure-P80f7IUj.js"),[])},{id:"cmake",name:"CMake",import:()=>h(()=>import("./cmake-D1j8_8rp.js"),[])},{id:"cobol",name:"COBOL",import:()=>h(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>h(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>h(()=>import("./codeql-DsOJ9woJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>h(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>h(()=>import("./common-lisp-Cg-RD9OK.js"),[])},{id:"coq",name:"Coq",import:()=>h(()=>import("./coq-DkFqJrB1.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>h(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16]))},{id:"crystal",name:"Crystal",import:()=>h(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>h(()=>import("./csharp-K5feNrxe.js"),[])},{id:"css",name:"CSS",import:()=>h(()=>import("./css-DPfMkruS.js"),[])},{id:"csv",name:"CSV",import:()=>h(()=>import("./csv-fuZLfV_i.js"),[])},{id:"cue",name:"CUE",import:()=>h(()=>import("./cue-D82EKSYY.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>h(()=>import("./cypher-COkxafJQ.js"),[])},{id:"d",name:"D",import:()=>h(()=>import("./d-85-TOEBH.js"),[])},{id:"dart",name:"Dart",import:()=>h(()=>import("./dart-CF10PKvl.js"),[])},{id:"dax",name:"DAX",import:()=>h(()=>import("./dax-CEL-wOlO.js"),[])},{id:"desktop",name:"Desktop",import:()=>h(()=>import("./desktop-BmXAJ9_W.js"),[])},{id:"diff",name:"Diff",import:()=>h(()=>import("./diff-D97Zzqfu.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>h(()=>import("./docker-BcOcwvcX.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>h(()=>import("./dotenv-Da5cRb03.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>h(()=>import("./dream-maker-BtqSS_iP.js"),[])},{id:"edge",name:"Edge",import:()=>h(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15]))},{id:"elixir",name:"Elixir",import:()=>h(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3]))},{id:"elm",name:"Elm",import:()=>h(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>h(()=>import("./emacs-lisp-C9XAeP06.js"),[])},{id:"erb",name:"ERB",import:()=>h(()=>import("./erb-BOJIQeun.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>h(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40]))},{id:"fennel",name:"Fennel",import:()=>h(()=>import("./fennel-BYunw83y.js"),[])},{id:"fish",name:"Fish",import:()=>h(()=>import("./fish-BvzEVeQv.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>h(()=>import("./fluent-C4IJs8-o.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>h(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([41,42]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>h(()=>import("./fortran-free-form-BxgE0vQu.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>h(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40]))},{id:"gdresource",name:"GDResource",import:()=>h(()=>import("./gdresource-B7Tvp0Sc.js"),__vite__mapDeps([44,45,46]))},{id:"gdscript",name:"GDScript",import:()=>h(()=>import("./gdscript-DTMYz4Jt.js"),[])},{id:"gdshader",name:"GDShader",import:()=>h(()=>import("./gdshader-DkwncUOv.js"),[])},{id:"genie",name:"Genie",import:()=>h(()=>import("./genie-D0YGMca9.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>h(()=>import("./gherkin-DyxjwDmM.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>h(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>h(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28]))},{id:"gleam",name:"Gleam",import:()=>h(()=>import("./gleam-BspZqrRM.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>h(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>h(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>h(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26]))},{id:"gn",name:"GN",import:()=>h(()=>import("./gn-n2N0HUVH.js"),[])},{id:"gnuplot",name:"Gnuplot",import:()=>h(()=>import("./gnuplot-DdkO51Og.js"),[])},{id:"go",name:"Go",import:()=>h(()=>import("./go-Dn2_MT6a.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>h(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13]))},{id:"groovy",name:"Groovy",import:()=>h(()=>import("./groovy-gcz8RCvz.js"),[])},{id:"hack",name:"Hack",import:()=>h(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16]))},{id:"haml",name:"Ruby Haml",import:()=>h(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>h(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>h(()=>import("./haskell-Df6bDoY_.js"),[])},{id:"haxe",name:"Haxe",import:()=>h(()=>import("./haxe-CzTSHFRz.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>h(()=>import("./hcl-BWvSN4gD.js"),[])},{id:"hjson",name:"Hjson",import:()=>h(()=>import("./hjson-D5-asLiD.js"),[])},{id:"hlsl",name:"HLSL",import:()=>h(()=>import("./hlsl-D3lLCCz7.js"),[])},{id:"html",name:"HTML",import:()=>h(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>h(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3]))},{id:"http",name:"HTTP",import:()=>h(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13]))},{id:"hurl",name:"Hurl",import:()=>h(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56]))},{id:"hxml",name:"HXML",import:()=>h(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58]))},{id:"hy",name:"Hy",import:()=>h(()=>import("./hy-DFXneXwc.js"),[])},{id:"imba",name:"Imba",import:()=>h(()=>import("./imba-DGztddWO.js"),[])},{id:"ini",name:"INI",aliases:["properties"],import:()=>h(()=>import("./ini-BEwlwnbL.js"),[])},{id:"java",name:"Java",import:()=>h(()=>import("./java-CylS5w8V.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>h(()=>import("./javascript-wDzz0qaB.js"),[])},{id:"jinja",name:"Jinja",import:()=>h(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3]))},{id:"jison",name:"Jison",import:()=>h(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2]))},{id:"json",name:"JSON",import:()=>h(()=>import("./json-Cp-IABpG.js"),[])},{id:"json5",name:"JSON5",import:()=>h(()=>import("./json5-C9tS-k6U.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>h(()=>import("./jsonc-Des-eS-w.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>h(()=>import("./jsonl-DcaNXYhu.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>h(()=>import("./jsonnet-DFQXde-d.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>h(()=>import("./jssm-C2t-YnRu.js"),[])},{id:"jsx",name:"JSX",import:()=>h(()=>import("./jsx-g9-lgVsj.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>h(()=>import("./julia-CxzCAyBv.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62]))},{id:"kdl",name:"KDL",import:()=>h(()=>import("./kdl-DV7GczEv.js"),[])},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>h(()=>import("./kotlin-BdnUsdx6.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>h(()=>import("./kusto-DZf3V79B.js"),[])},{id:"latex",name:"LaTeX",import:()=>h(()=>import("./latex-B4uzh10-.js"),__vite__mapDeps([63,64,62]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>h(()=>import("./lean-BZvkOJ9d.js"),[])},{id:"less",name:"Less",import:()=>h(()=>import("./less-B1dDrJ26.js"),[])},{id:"liquid",name:"Liquid",import:()=>h(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([65,1,2,3,9]))},{id:"llvm",name:"LLVM IR",import:()=>h(()=>import("./llvm-BtvRca6l.js"),[])},{id:"log",name:"Log file",import:()=>h(()=>import("./log-2UxHyX5q.js"),[])},{id:"logo",name:"Logo",import:()=>h(()=>import("./logo-BtOb2qkB.js"),[])},{id:"lua",name:"Lua",import:()=>h(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,26]))},{id:"luau",name:"Luau",import:()=>h(()=>import("./luau-C-HG3fhB.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>h(()=>import("./make-CHLpvVh8.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>h(()=>import("./markdown-Cvjx9yec.js"),[])},{id:"marko",name:"Marko",import:()=>h(()=>import("./marko-DZsq8hO1.js"),__vite__mapDeps([66,3,67,5,11]))},{id:"matlab",name:"MATLAB",import:()=>h(()=>import("./matlab-D7o27uSR.js"),[])},{id:"mdc",name:"MDC",import:()=>h(()=>import("./mdc-DUICxH0z.js"),__vite__mapDeps([68,40,38,15,1,2,3]))},{id:"mdx",name:"MDX",import:()=>h(()=>import("./mdx-Cmh6b_Ma.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>h(()=>import("./mermaid-mWjccvbQ.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>h(()=>import("./mipsasm-CKIfxQSi.js"),[])},{id:"mojo",name:"Mojo",import:()=>h(()=>import("./mojo-B93PlW-d.js"),[])},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>h(()=>import("./moonbit-Ba13S78F.js"),[])},{id:"move",name:"Move",import:()=>h(()=>import("./move-Bu9oaDYs.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>h(()=>import("./narrat-DRg8JJMk.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>h(()=>import("./nextflow-BrzmwbiE.js"),[])},{id:"nginx",name:"Nginx",import:()=>h(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([69,37,26]))},{id:"nim",name:"Nim",import:()=>h(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40]))},{id:"nix",name:"Nix",import:()=>h(()=>import("./nix-CwoSXNpI.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>h(()=>import("./nushell-C-sUppwS.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>h(()=>import("./objective-c-DXmwc3jG.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>h(()=>import("./objective-cpp-CLxacb5B.js"),[])},{id:"ocaml",name:"OCaml",import:()=>h(()=>import("./ocaml-C0hk2d4L.js"),[])},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>h(()=>import("./openscad-C4EeE6gA.js"),[])},{id:"pascal",name:"Pascal",import:()=>h(()=>import("./pascal-D93ZcfNL.js"),[])},{id:"perl",name:"Perl",import:()=>h(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([71,1,2,3,7,8,16]))},{id:"php",name:"PHP",import:()=>h(()=>import("./php-CDn_0X-4.js"),__vite__mapDeps([72,1,2,3,7,8,16,9]))},{id:"pkl",name:"Pkl",import:()=>h(()=>import("./pkl-u5AG7uiY.js"),[])},{id:"plsql",name:"PL/SQL",import:()=>h(()=>import("./plsql-ChMvpjG-.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>h(()=>import("./po-BTJTHyun.js"),[])},{id:"polar",name:"Polar",import:()=>h(()=>import("./polar-C0HS_06l.js"),[])},{id:"postcss",name:"PostCSS",import:()=>h(()=>import("./postcss-CXtECtnM.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>h(()=>import("./powerquery-CEu0bR-o.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>h(()=>import("./powershell-Dpen1YoG.js"),[])},{id:"prisma",name:"Prisma",import:()=>h(()=>import("./prisma-Dd19v3D-.js"),[])},{id:"prolog",name:"Prolog",import:()=>h(()=>import("./prolog-CbFg5uaA.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>h(()=>import("./proto-C7zT0LnQ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>h(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([73,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>h(()=>import("./puppet-BMWR74SV.js"),[])},{id:"purescript",name:"PureScript",import:()=>h(()=>import("./purescript-CklMAg4u.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>h(()=>import("./python-B6aJPvgy.js"),[])},{id:"qml",name:"QML",import:()=>h(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([74,2]))},{id:"qmldir",name:"QML Directory",import:()=>h(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>h(()=>import("./qss-IeuSbFQv.js"),[])},{id:"r",name:"R",import:()=>h(()=>import("./r-Dspwwk_N.js"),[])},{id:"racket",name:"Racket",import:()=>h(()=>import("./racket-BqYA7rlc.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>h(()=>import("./raku-DXvB9xmW.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>h(()=>import("./razor-C1TweQQi.js"),__vite__mapDeps([75,1,2,3,76]))},{id:"reg",name:"Windows Registry Script",import:()=>h(()=>import("./reg-C-SQnVFl.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>h(()=>import("./regexp-CDVJQ6XC.js"),[])},{id:"rel",name:"Rel",import:()=>h(()=>import("./rel-C3B-1QV4.js"),[])},{id:"riscv",name:"RISC-V",import:()=>h(()=>import("./riscv-BM1_JUlF.js"),[])},{id:"rosmsg",name:"ROS Interface",import:()=>h(()=>import("./rosmsg-BJDFO7_C.js"),[])},{id:"rst",name:"reStructuredText",import:()=>h(()=>import("./rst-B0xPkSld.js"),__vite__mapDeps([77,15,1,2,3,23,24,25,26,16,20,28,38,78,33,34,7,8,35,11,36,13,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>h(()=>import("./ruby-BvKwtOVI.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>h(()=>import("./rust-B1yitclQ.js"),[])},{id:"sas",name:"SAS",import:()=>h(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([79,16]))},{id:"sass",name:"Sass",import:()=>h(()=>import("./sass-Cj5Yp3dK.js"),[])},{id:"scala",name:"Scala",import:()=>h(()=>import("./scala-C151Ov-r.js"),[])},{id:"scheme",name:"Scheme",import:()=>h(()=>import("./scheme-C98Dy4si.js"),[])},{id:"scss",name:"SCSS",import:()=>h(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>h(()=>import("./sdbl-DVxCFoDh.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>h(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([80,81]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>h(()=>import("./shellscript-Yzrsuije.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>h(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([82,28]))},{id:"smalltalk",name:"Smalltalk",import:()=>h(()=>import("./smalltalk-BERRCDM3.js"),[])},{id:"solidity",name:"Solidity",import:()=>h(()=>import("./solidity-rGO070M0.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>h(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([83,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>h(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([84,85]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>h(()=>import("./splunk-BtCnVYZw.js"),[])},{id:"sql",name:"SQL",import:()=>h(()=>import("./sql-BLtJtn59.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>h(()=>import("./ssh-config-_ykCGR6B.js"),[])},{id:"stata",name:"Stata",import:()=>h(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([86,16]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>h(()=>import("./stylus-BEDo0Tqx.js"),[])},{id:"svelte",name:"Svelte",import:()=>h(()=>import("./svelte-zxCyuUbr.js"),__vite__mapDeps([87,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>h(()=>import("./swift-Dg5xB15N.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>h(()=>import("./system-verilog-CnnmHF94.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>h(()=>import("./systemd-4A_iFExJ.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>h(()=>import("./talonscript-CkByrt1z.js"),[])},{id:"tasl",name:"Tasl",import:()=>h(()=>import("./tasl-QIJgUcNo.js"),[])},{id:"tcl",name:"Tcl",import:()=>h(()=>import("./tcl-dwOrl1Do.js"),[])},{id:"templ",name:"Templ",import:()=>h(()=>import("./templ-W15q3VgB.js"),__vite__mapDeps([88,89,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>h(()=>import("./terraform-BETggiCN.js"),[])},{id:"tex",name:"TeX",import:()=>h(()=>import("./tex-CvyZ59Mk.js"),__vite__mapDeps([64,62]))},{id:"toml",name:"TOML",import:()=>h(()=>import("./toml-vGWfd6FD.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>h(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([90,11,3,2,25,26,1,16,7,8]))},{id:"tsv",name:"TSV",import:()=>h(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>h(()=>import("./tsx-COt5Ahok.js"),[])},{id:"turtle",name:"Turtle",import:()=>h(()=>import("./turtle-BsS91CYL.js"),[])},{id:"twig",name:"Twig",import:()=>h(()=>import("./twig-CO9l9SDP.js"),__vite__mapDeps([91,3,2,5,72,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>h(()=>import("./typescript-BPQ3VLAy.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>h(()=>import("./typespec-BGHnOYBU.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>h(()=>import("./typst-DHCkPAjA.js"),[])},{id:"v",name:"V",import:()=>h(()=>import("./v-BcVCzyr7.js"),[])},{id:"vala",name:"Vala",import:()=>h(()=>import("./vala-CsfeWuGM.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>h(()=>import("./vb-D17OF-Vu.js"),[])},{id:"verilog",name:"Verilog",import:()=>h(()=>import("./verilog-BQ8w6xss.js"),[])},{id:"vhdl",name:"VHDL",import:()=>h(()=>import("./vhdl-CeAyd5Ju.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>h(()=>import("./viml-CJc9bBzg.js"),[])},{id:"vue",name:"Vue",import:()=>h(()=>import("./vue-DN_0RTcg.js"),__vite__mapDeps([92,3,2,11,9,1,15]))},{id:"vue-html",name:"Vue HTML",import:()=>h(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([93,2]))},{id:"vue-vine",name:"Vue Vine",import:()=>h(()=>import("./vue-vine-CQOfvN7w.js"),__vite__mapDeps([94,3,5,67,95,12,2]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>h(()=>import("./vyper-CDx5xZoG.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>h(()=>import("./wasm-MzD3tlZU.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>h(()=>import("./wenyan-BV7otONQ.js"),[])},{id:"wgsl",name:"WGSL",import:()=>h(()=>import("./wgsl-Dx-B1_4e.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>h(()=>import("./wikitext-BhOHFoWU.js"),[])},{id:"wit",name:"WebAssembly Interface Types",import:()=>h(()=>import("./wit-5i3qLPDT.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>h(()=>import("./wolfram-lXgVvXCa.js"),[])},{id:"xml",name:"XML",import:()=>h(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>h(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([96,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>h(()=>import("./yaml-Buea-lGh.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>h(()=>import("./zenscript-DVFEvuxE.js"),[])},{id:"zig",name:"Zig",import:()=>h(()=>import("./zig-VOosw3JB.js"),[])}],ev=Object.fromEntries(Op.map(e=>[e.id,e.import])),tv=Object.fromEntries(Op.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(n=>[n,e.import]))||[]})),nv={...ev,...tv},rv=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>h(()=>import("./andromeeda-C-Jbm3Hp.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>h(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>h(()=>import("./ayu-dark-CmMr59Fi.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>h(()=>import("./catppuccin-frappe-DFWUc33u.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>h(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>h(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>h(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>h(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>h(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>h(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>h(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>h(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>h(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>h(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>h(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>h(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>h(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>h(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>h(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>h(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[])},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>h(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[])},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>h(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[])},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>h(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[])},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>h(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[])},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>h(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>h(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>h(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>h(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>h(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>h(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>h(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>h(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>h(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>h(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>h(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>h(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>h(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>h(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>h(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>h(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>h(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>h(()=>import("./one-dark-pro-DVMEJ2y_.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>h(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>h(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>h(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>h(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>h(()=>import("./rose-pine-qdsjHGoJ.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>h(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>h(()=>import("./rose-pine-moon-D4_iv3hh.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>h(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>h(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>h(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>h(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>h(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>h(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>h(()=>import("./tokyo-night-hegEt444.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>h(()=>import("./vesper-DU1UobuO.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>h(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>h(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>h(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],iv=Object.fromEntries(rv.map(e=>[e.id,e.import]));class Ba extends Error{constructor(t){super(t),this.name="ShikiError"}}function ov(){return 2147483648}function lv(){return typeof performance<"u"?performance.now():Date.now()}const sv=(e,t)=>e+(t-e%t)%t;async function av(e){let t,n;const r={};function i(p){n=p,r.HEAPU8=new Uint8Array(p),r.HEAPU32=new Uint32Array(p)}function o(p,y,v){r.HEAPU8.copyWithin(p,y,y+v)}function l(p){try{return t.grow(p-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(p){const y=r.HEAPU8.length;p=p>>>0;const v=ov();if(p>v)return!1;for(let L=1;L<=4;L*=2){let g=y*(1+.2/L);g=Math.min(g,p+100663296);const m=Math.min(v,sv(Math.max(p,g),65536));if(l(m))return!0}return!1}const a=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(p,y,v=1024){const L=y+v;let g=y;for(;p[g]&&!(g>=L);)++g;if(g-y>16&&p.buffer&&a)return a.decode(p.subarray(y,g));let m="";for(;y<g;){let _=p[y++];if(!(_&128)){m+=String.fromCharCode(_);continue}const E=p[y++]&63;if((_&224)===192){m+=String.fromCharCode((_&31)<<6|E);continue}const C=p[y++]&63;if((_&240)===224?_=(_&15)<<12|E<<6|C:_=(_&7)<<18|E<<12|C<<6|p[y++]&63,_<65536)m+=String.fromCharCode(_);else{const R=_-65536;m+=String.fromCharCode(55296|R>>10,56320|R&1023)}}return m}function c(p,y){return p?u(r.HEAPU8,p,y):""}const d={emscripten_get_now:lv,emscripten_memcpy_big:o,emscripten_resize_heap:s,fd_write:()=>0};async function f(){const y=await e({env:d,wasi_snapshot_preview1:d});t=y.memory,i(t.buffer),Object.assign(r,y),r.UTF8ToString=c}return await f(),r}var uv=Object.defineProperty,cv=(e,t,n)=>t in e?uv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,le=(e,t,n)=>cv(e,typeof t!="symbol"?t+"":t,n);let ce=null;function dv(e){throw new Ba(e.UTF8ToString(e.getLastOnigError()))}class jo{constructor(t){le(this,"utf16Length"),le(this,"utf8Length"),le(this,"utf16Value"),le(this,"utf8Value"),le(this,"utf16OffsetToUtf8"),le(this,"utf8OffsetToUtf16");const n=t.length,r=jo._utf8ByteLength(t),i=r!==n,o=i?new Uint32Array(n+1):null;i&&(o[n]=r);const l=i?new Uint32Array(r+1):null;i&&(l[r]=n);const s=new Uint8Array(r);let a=0;for(let u=0;u<n;u++){const c=t.charCodeAt(u);let d=c,f=!1;if(c>=55296&&c<=56319&&u+1<n){const p=t.charCodeAt(u+1);p>=56320&&p<=57343&&(d=(c-55296<<10)+65536|p-56320,f=!0)}i&&(o[u]=a,f&&(o[u+1]=a),d<=127?l[a+0]=u:d<=2047?(l[a+0]=u,l[a+1]=u):d<=65535?(l[a+0]=u,l[a+1]=u,l[a+2]=u):(l[a+0]=u,l[a+1]=u,l[a+2]=u,l[a+3]=u)),d<=127?s[a++]=d:d<=2047?(s[a++]=192|(d&1984)>>>6,s[a++]=128|(d&63)>>>0):d<=65535?(s[a++]=224|(d&61440)>>>12,s[a++]=128|(d&4032)>>>6,s[a++]=128|(d&63)>>>0):(s[a++]=240|(d&1835008)>>>18,s[a++]=128|(d&258048)>>>12,s[a++]=128|(d&4032)>>>6,s[a++]=128|(d&63)>>>0),f&&u++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=l}static _utf8ByteLength(t){let n=0;for(let r=0,i=t.length;r<i;r++){const o=t.charCodeAt(r);let l=o,s=!1;if(o>=55296&&o<=56319&&r+1<i){const a=t.charCodeAt(r+1);a>=56320&&a<=57343&&(l=(o-55296<<10)+65536|a-56320,s=!0)}l<=127?n+=1:l<=2047?n+=2:l<=65535?n+=3:n+=4,s&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const Fo=class lt{constructor(t){if(le(this,"id",++lt.LAST_ID),le(this,"_onigBinding"),le(this,"content"),le(this,"utf16Length"),le(this,"utf8Length"),le(this,"utf16OffsetToUtf8"),le(this,"utf8OffsetToUtf16"),le(this,"ptr"),!ce)throw new Ba("Must invoke loadWasm first.");this._onigBinding=ce,this.content=t;const n=new jo(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!lt._sharedPtrInUse?(lt._sharedPtr||(lt._sharedPtr=ce.omalloc(1e4)),lt._sharedPtrInUse=!0,ce.HEAPU8.set(n.utf8Value,lt._sharedPtr),this.ptr=lt._sharedPtr):this.ptr=n.createString(ce)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===lt._sharedPtr?lt._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};le(Fo,"LAST_ID",0);le(Fo,"_sharedPtr",0);le(Fo,"_sharedPtrInUse",!1);let Mp=Fo;class fv{constructor(t){if(le(this,"_onigBinding"),le(this,"_ptr"),!ce)throw new Ba("Must invoke loadWasm first.");const n=[],r=[];for(let s=0,a=t.length;s<a;s++){const u=new jo(t[s]);n[s]=u.createString(ce),r[s]=u.utf8Length}const i=ce.omalloc(4*t.length);ce.HEAPU32.set(n,i/4);const o=ce.omalloc(4*t.length);ce.HEAPU32.set(r,o/4);const l=ce.createOnigScanner(i,o,t.length);for(let s=0,a=t.length;s<a;s++)ce.ofree(n[s]);ce.ofree(o),ce.ofree(i),l===0&&dv(ce),this._onigBinding=ce,this._ptr=l}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let i=0;if(typeof r=="number"&&(i=r),typeof t=="string"){t=new Mp(t);const o=this._findNextMatchSync(t,n,!1,i);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,i)}_findNextMatchSync(t,n,r,i){const o=this._onigBinding,l=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),i);if(l===0)return null;const s=o.HEAPU32;let a=l/4;const u=s[a++],c=s[a++],d=[];for(let f=0;f<c;f++){const p=t.convertUtf8OffsetToUtf16(s[a++]),y=t.convertUtf8OffsetToUtf16(s[a++]);d[f]={start:p,end:y,length:y-p}}return{index:u,captureIndices:d}}}function pv(e){return typeof e.instantiator=="function"}function hv(e){return typeof e.default=="function"}function mv(e){return typeof e.data<"u"}function gv(e){return typeof Response<"u"&&e instanceof Response}function _v(e){var t;return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&((t=Buffer.isBuffer)==null?void 0:t.call(Buffer,e))||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let _i;function yv(e){if(_i)return _i;async function t(){ce=await av(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),pv(r)?r=await r.instantiator(n):hv(r)?r=await r.default(n):(mv(r)&&(r=r.data),gv(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await vv(r)(n):r=await Ev(r)(n):_v(r)?r=await Sl(r)(n):r instanceof WebAssembly.Module?r=await Sl(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Sl(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return _i=t(),_i}function Sl(e){return t=>WebAssembly.instantiate(e,t)}function vv(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Ev(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function Sv(e){return e&&await yv(e),{createScanner(t){return new fv(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Mp(t)}}}const wv=Z0({langs:nv,themes:iv,engine:()=>Sv(h(()=>import("./wasm-CG6Dc4jp.js"),[]))});let wl=null;const kv={plaintext:"text",text:"text",javascript:"javascript",typescript:"typescript",jsx:"jsx",tsx:"tsx",rust:"rust",go:"go",c:"c",cpp:"cpp",java:"java",kotlin:"kotlin",scala:"scala",groovy:"groovy",python:"python",ruby:"ruby",php:"php",perl:"perl",lua:"lua",swift:"swift","objective-c":"objective-c","objective-cpp":"objective-cpp",dart:"dart",html:"html",css:"css",scss:"scss",sass:"sass",less:"less",vue:"vue",svelte:"svelte",astro:"astro",json:"json",jsonc:"jsonc",yaml:"yaml",toml:"toml",xml:"xml",csv:"csv",markdown:"markdown",mdx:"mdx",rst:"rst",latex:"latex",bash:"bash",fish:"fish",powershell:"powershell",batch:"bat",sql:"sql",prisma:"prisma",graphql:"graphql",ini:"ini",dotenv:"dotenv",dockerfile:"dockerfile",makefile:"makefile",cmake:"cmake",gitignore:"gitignore",gitattributes:"gitattributes",diff:"diff",editorconfig:"editorconfig",csharp:"csharp"};async function Cv(){return wl||(wl=wv({themes:["github-dark"],langs:["typescript","javascript","tsx","jsx","python","rust","go","java","kotlin","swift","c","cpp","csharp","php","ruby","html","css","scss","less","json","yaml","markdown","sql","bash","dockerfile","makefile","xml","vue","svelte","graphql","toml","ini","diff","gitignore"]})),wl}function Lv(e){const t=e.toLowerCase();return kv[t]||t}function Pv(e){return e.map(t=>({content:t.content,color:t.color||"#e6edf3",fontStyle:t.fontStyle===1?"italic":t.fontStyle===2?"bold":void 0}))}function Av({code:e,language:t}){const[n,r]=M.useState([]),[i,o]=M.useState(!0),[l,s]=M.useState(null);return M.useEffect(()=>{let a=!1;async function u(){try{o(!0);const c=await Cv();if(a)return;const d=Lv(t),f=c.getLoadedLanguages(),p=f.includes(d)?d:"text";if(!f.includes(d)&&d!=="text")try{await c.loadLanguage(d)}catch{}const y=c.codeToTokens(e,{lang:p,theme:"github-dark"});if(a)return;const v=y.tokens.map((L,g)=>({lineNumber:g+1,tokens:Pv(L)}));r(v),s(null)}catch(c){if(!a){console.error("Shiki highlighting error:",c),s(c);const d=e.split(`
154
+ `).map((f,p)=>({lineNumber:p+1,tokens:[{content:f||" ",color:"#e6edf3"}]}));r(d)}}finally{a||o(!1)}}return u(),()=>{a=!0}},[e,t]),{lines:n,loading:i,error:l}}function Rv({filePath:e,enabled:t}){const[n,r]=M.useState(null),[i,o]=M.useState(!1),[l,s]=M.useState(null);return M.useEffect(()=>{if(!t||!e){r(null);return}let a=!1;async function u(){try{o(!0),s(null);const c=await at.getFileDiff(e);a||r(c)}catch(c){a||(console.error("Failed to fetch diff:",c),s(c),r(null))}finally{a||o(!1)}}return u(),()=>{a=!0}},[e,t]),{diff:n,loading:i,error:l}}function xv(e){const[t,n]=M.useState(!1),[r,i]=M.useState(null),[o,l]=M.useState(null),s=M.useCallback(c=>{n(!0),i(c),l({startLine:c,endLine:c})},[]),a=M.useCallback(c=>{if(!t||r===null)return;const d=Math.min(r,c),f=Math.max(r,c);l({startLine:d,endLine:f})},[t,r]),u=M.useCallback(()=>{t&&o&&e&&e(o),n(!1)},[t,o,e]);return{selecting:t,selection:o,handlers:{onMouseDown:s,onMouseMove:a,onMouseUp:u}}}function Rs({lineNumber:e,tokens:t,selected:n,diffType:r,handlers:i}){const o=r==="add"?"code-line-added":r==="delete"?"code-line-deleted":"";return S.jsxs("div",{className:`code-line ${n?"code-line-selected":""} ${o}`,onMouseDown:()=>i.onMouseDown(e),onMouseMove:()=>i.onMouseMove(e),onMouseUp:i.onMouseUp,children:[S.jsx("span",{className:"line-number",children:e}),S.jsx("span",{className:"code-content",children:t.map((l,s)=>S.jsx("span",{style:{color:l.color,fontStyle:l.fontStyle==="italic"?"italic":void 0,fontWeight:l.fontStyle==="bold"?"bold":void 0},children:l.content},s))})]})}function Tv({lines:e,diffLines:t,selection:n,handlers:r}){const i=o=>n?o>=n.startLine&&o<=n.endLine:!1;return S.jsx(S.Fragment,{children:e.map(o=>S.jsx(Rs,{lineNumber:o.lineNumber,tokens:o.tokens,selected:i(o.lineNumber),diffType:t.get(o.lineNumber),handlers:r},o.lineNumber))})}function Iv({originalLines:e,modifiedLines:t,diffData:n}){const r=M.useMemo(()=>{const i=[],o=new Map(e.map(s=>[s.lineNumber,s.tokens])),l=new Map(t.map(s=>[s.lineNumber,s.tokens]));for(const s of n)s.type==="context"?i.push({left:{lineNumber:s.oldLineNumber,tokens:o.get(s.oldLineNumber)||[{content:s.content,color:"#e6edf3"}],type:"context"},right:{lineNumber:s.newLineNumber,tokens:l.get(s.newLineNumber)||[{content:s.content,color:"#e6edf3"}],type:"context"}}):s.type==="delete"?i.push({left:{lineNumber:s.oldLineNumber,tokens:o.get(s.oldLineNumber)||[{content:s.content,color:"#e6edf3"}],type:"delete"},right:null}):s.type==="add"&&i.push({left:null,right:{lineNumber:s.newLineNumber,tokens:l.get(s.newLineNumber)||[{content:s.content,color:"#e6edf3"}],type:"add"}});return i},[e,t,n]);return r.length===0?S.jsx("div",{className:"code-viewer-empty",children:S.jsx("p",{children:"No changes in this file"})}):S.jsxs("div",{className:"diff-side-by-side",children:[S.jsxs("div",{className:"diff-pane diff-pane-left",children:[S.jsx("div",{className:"diff-pane-header",children:"Original"}),S.jsx("div",{className:"code-viewer-content",children:r.map((i,o)=>{var l,s,a;return S.jsxs("div",{className:`code-line ${((l=i.left)==null?void 0:l.type)==="delete"?"code-line-deleted":""}`,children:[S.jsx("span",{className:"line-number",children:((s=i.left)==null?void 0:s.lineNumber)||""}),S.jsx("span",{className:"code-content",children:((a=i.left)==null?void 0:a.tokens.map((u,c)=>S.jsx("span",{style:{color:u.color},children:u.content},c)))||" "})]},o)})})]}),S.jsxs("div",{className:"diff-pane diff-pane-right",children:[S.jsx("div",{className:"diff-pane-header",children:"Modified"}),S.jsx("div",{className:"code-viewer-content",children:r.map((i,o)=>{var l,s,a;return S.jsxs("div",{className:`code-line ${((l=i.right)==null?void 0:l.type)==="add"?"code-line-added":""}`,children:[S.jsx("span",{className:"line-number",children:((s=i.right)==null?void 0:s.lineNumber)||""}),S.jsx("span",{className:"code-content",children:((a=i.right)==null?void 0:a.tokens.map((u,c)=>S.jsx("span",{style:{color:u.color},children:u.content},c)))||" "})]},o)})})]})]})}function Dv(){const{currentFile:e,selection:t,setSelection:n}=No(),{diffViewMode:r}=Oo(),{handlers:i}=xv(p=>{n(p)}),{lines:o,loading:l}=Av({code:(e==null?void 0:e.content)||"",language:(e==null?void 0:e.language)||"text"}),{diff:s,loading:a}=Rv({filePath:(e==null?void 0:e.path)||null,enabled:r!=="none"}),u=M.useMemo(()=>{const p=new Map;if(!s||s.hunks.length===0)return p;for(const y of s.hunks)for(const v of y.lines)v.type==="add"&&v.newLineNumber?p.set(v.newLineNumber,"add"):v.type==="delete"&&v.oldLineNumber;return p},[s]),c=M.useMemo(()=>!s||s.hunks.length===0?[]:s.hunks.flatMap(p=>p.lines),[s]);if(!e)return S.jsxs("div",{className:"code-viewer code-viewer-empty",children:[S.jsx(Lg,{size:48,className:"empty-state-icon"}),S.jsx("p",{children:"Select a file to view its contents"}),S.jsxs("p",{className:"hint",children:[S.jsx(Og,{size:12}),"Use Cmd+P or / to search for files"]})]});const d=l||a;if(r==="side-by-side")return S.jsxs("div",{className:"code-viewer",children:[S.jsxs("div",{className:"code-viewer-header",children:[S.jsx("span",{className:"file-path",children:e.path}),S.jsxs("span",{className:"file-language",children:["Side by Side - ",e.language]})]}),d?S.jsx("div",{className:"code-viewer-loading",children:"Loading..."}):c.length>0?S.jsx(Iv,{originalLines:o,modifiedLines:o,diffData:c}):S.jsx("div",{className:"code-viewer-content",children:o.map(p=>S.jsx(Rs,{lineNumber:p.lineNumber,tokens:p.tokens,selected:!1,handlers:i},p.lineNumber))})]});if(r==="inline")return S.jsxs("div",{className:"code-viewer",children:[S.jsxs("div",{className:"code-viewer-header",children:[S.jsx("span",{className:"file-path",children:e.path}),S.jsxs("span",{className:"file-language",children:["Inline Diff - ",e.language]})]}),S.jsx("div",{className:"code-viewer-content",children:d?S.jsx("div",{className:"code-viewer-loading",children:"Loading..."}):S.jsx(Tv,{lines:o,diffLines:u,selection:t,handlers:i})})]});const f=p=>t?p>=t.startLine&&p<=t.endLine:!1;return S.jsxs("div",{className:"code-viewer",children:[S.jsxs("div",{className:"code-viewer-header",children:[S.jsx("span",{className:"file-path",children:e.path}),S.jsx("span",{className:"file-language",children:e.language})]}),S.jsx("div",{className:"code-viewer-content",children:d?S.jsx("div",{className:"code-viewer-loading",children:"Loading..."}):o.map(p=>S.jsx(Rs,{lineNumber:p.lineNumber,tokens:p.tokens,selected:f(p.lineNumber),handlers:i},p.lineNumber))})]})}let Nv=1;const Vp=xa(e=>({items:[],addItem:t=>e(n=>({items:[...n.items,{...t,id:`staged-${Nv++}`}]})),removeItem:t=>e(n=>({items:n.items.filter(r=>r.id!==t)})),clear:()=>e({items:[]})}));function Ov(){const{items:e,removeItem:t,clear:n}=Vp(),r=(i,o,l)=>{const s=i.split("/").pop()||i;return o===l?`${s}:${o}`:`${s}:${o}-${l}`};return e.length===0?S.jsxs("div",{className:"staging-list staging-list-empty",children:[S.jsx("div",{className:"staging-header",children:"Staged Selections"}),S.jsxs("div",{className:"empty-state",children:[S.jsx(Ig,{size:32,className:"empty-state-icon"}),S.jsx("p",{className:"staging-hint",children:"Select lines in the code viewer and add a comment to stage them"})]})]}):S.jsxs("div",{className:"staging-list",children:[S.jsxs("div",{className:"staging-header",children:[S.jsxs("span",{children:["Staged Selections (",e.length,")"]}),S.jsx("button",{className:"btn-link",onClick:n,children:"Clear all"})]}),S.jsx("div",{className:"staging-items",children:e.map(i=>S.jsxs("div",{className:"staging-item",children:[S.jsxs("div",{className:"staging-item-header",children:[S.jsx("span",{className:"staging-location",children:r(i.filePath,i.startLine,i.endLine)}),S.jsx("button",{className:"btn-icon",onClick:()=>t(i.id),title:"Remove",children:S.jsx(Mg,{size:14})})]}),S.jsx("div",{className:"staging-comment",children:i.comment})]},i.id))})]})}function Mv({selection:e,currentFilePath:t,onSubmit:n,onCancel:r}){const[i,o]=M.useState(""),l=M.useRef(null);M.useEffect(()=>{var c;e&&((c=l.current)==null||c.focus())},[e]),M.useEffect(()=>{e||o("")},[e]);const s=c=>{c.preventDefault(),!(!e||!i.trim())&&(n(i.trim()),o(""))},a=c=>{c.key==="Escape"&&(c.preventDefault(),r())},u=()=>{if(!e||!t)return"";const c=t.split("/").pop()||t;return e.startLine===e.endLine?`${c}:${e.startLine}`:`${c}:${e.startLine}-${e.endLine}`};return S.jsx("form",{className:"comment-input",onSubmit:s,children:e?S.jsxs(S.Fragment,{children:[S.jsx("span",{className:"comment-selection",children:u()}),S.jsx("input",{ref:l,type:"text",className:"comment-field",placeholder:"Add comment and press Enter...",value:i,onChange:c=>o(c.target.value),onKeyDown:a}),S.jsx("button",{type:"submit",className:"btn btn-small btn-primary",disabled:!i.trim(),children:"Add"})]}):S.jsx("span",{className:"comment-hint",children:"Select lines in the code viewer to add a comment"})})}function Ct(e){return Array.isArray?Array.isArray(e):zp(e)==="[object Array]"}function Vv(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function jv(e){return e==null?"":Vv(e)}function ct(e){return typeof e=="string"}function jp(e){return typeof e=="number"}function Fv(e){return e===!0||e===!1||zv(e)&&zp(e)=="[object Boolean]"}function Fp(e){return typeof e=="object"}function zv(e){return Fp(e)&&e!==null}function Me(e){return e!=null}function kl(e){return!e.trim().length}function zp(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Bv="Incorrect 'index' type",bv=e=>`Invalid value for key ${e}`,$v=e=>`Pattern length exceeds max of ${e}.`,Uv=e=>`Missing ${e} property in key`,Gv=e=>`Property 'weight' in key '${e}' must be a positive integer`,kc=Object.prototype.hasOwnProperty;class Hv{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let i=Bp(r);this._keys.push(i),this._keyMap[i.id]=i,n+=i.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Bp(e){let t=null,n=null,r=null,i=1,o=null;if(ct(e)||Ct(e))r=e,t=Cc(e),n=xs(e);else{if(!kc.call(e,"name"))throw new Error(Uv("name"));const l=e.name;if(r=l,kc.call(e,"weight")&&(i=e.weight,i<=0))throw new Error(Gv(l));t=Cc(l),n=xs(l),o=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:o}}function Cc(e){return Ct(e)?e:e.split(".")}function xs(e){return Ct(e)?e.join("."):e}function Wv(e,t){let n=[],r=!1;const i=(o,l,s)=>{if(Me(o))if(!l[s])n.push(o);else{let a=l[s];const u=o[a];if(!Me(u))return;if(s===l.length-1&&(ct(u)||jp(u)||Fv(u)))n.push(jv(u));else if(Ct(u)){r=!0;for(let c=0,d=u.length;c<d;c+=1)i(u[c],l,s+1)}else l.length&&i(u,l,s+1)}};return i(e,ct(t)?t.split("."):t,0),r?n:n[0]}const Kv={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Qv={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},qv={location:0,threshold:.6,distance:100},Yv={useExtendedSearch:!1,getFn:Wv,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var N={...Qv,...Kv,...qv,...Yv};const Xv=/[^ ]+/g;function Jv(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(i){const o=i.match(Xv).length;if(n.has(o))return n.get(o);const l=1/Math.pow(o,.5*e),s=parseFloat(Math.round(l*r)/r);return n.set(o,s),s},clear(){n.clear()}}}class ba{constructor({getFn:t=N.getFn,fieldNormWeight:n=N.fieldNormWeight}={}){this.norm=Jv(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,ct(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();ct(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!Me(t)||kl(t))return;let r={v:t,i:n,n:this.norm.get(t)};this.records.push(r)}_addObject(t,n){let r={i:n,$:{}};this.keys.forEach((i,o)=>{let l=i.getFn?i.getFn(t):this.getFn(t,i.path);if(Me(l)){if(Ct(l)){let s=[];const a=[{nestedArrIndex:-1,value:l}];for(;a.length;){const{nestedArrIndex:u,value:c}=a.pop();if(Me(c))if(ct(c)&&!kl(c)){let d={v:c,i:u,n:this.norm.get(c)};s.push(d)}else Ct(c)&&c.forEach((d,f)=>{a.push({nestedArrIndex:f,value:d})})}r.$[o]=s}else if(ct(l)&&!kl(l)){let s={v:l,n:this.norm.get(l)};r.$[o]=s}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function bp(e,t,{getFn:n=N.getFn,fieldNormWeight:r=N.fieldNormWeight}={}){const i=new ba({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(Bp)),i.setSources(t),i.create(),i}function Zv(e,{getFn:t=N.getFn,fieldNormWeight:n=N.fieldNormWeight}={}){const{keys:r,records:i}=e,o=new ba({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(i),o}function yi(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=N.distance,ignoreLocation:o=N.ignoreLocation}={}){const l=t/e.length;if(o)return l;const s=Math.abs(r-n);return i?l+s/i:s?1:l}function e1(e=[],t=N.minMatchCharLength){let n=[],r=-1,i=-1,o=0;for(let l=e.length;o<l;o+=1){let s=e[o];s&&r===-1?r=o:!s&&r!==-1&&(i=o-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}const Jt=32;function t1(e,t,n,{location:r=N.location,distance:i=N.distance,threshold:o=N.threshold,findAllMatches:l=N.findAllMatches,minMatchCharLength:s=N.minMatchCharLength,includeMatches:a=N.includeMatches,ignoreLocation:u=N.ignoreLocation}={}){if(t.length>Jt)throw new Error($v(Jt));const c=t.length,d=e.length,f=Math.max(0,Math.min(r,d));let p=o,y=f;const v=s>1||a,L=v?Array(d):[];let g;for(;(g=e.indexOf(t,y))>-1;){let k=yi(t,{currentLocation:g,expectedLocation:f,distance:i,ignoreLocation:u});if(p=Math.min(k,p),y=g+c,v){let x=0;for(;x<c;)L[g+x]=1,x+=1}}y=-1;let m=[],_=1,E=c+d;const C=1<<c-1;for(let k=0;k<c;k+=1){let x=0,O=E;for(;x<O;)yi(t,{errors:k,currentLocation:f+O,expectedLocation:f,distance:i,ignoreLocation:u})<=p?x=O:E=O,O=Math.floor((E-x)/2+x);E=O;let D=Math.max(1,f-O+1),X=l?d:Math.min(f+O,d)+c,ie=Array(X+2);ie[X+1]=(1<<k)-1;for(let W=X;W>=D;W-=1){let De=W-1,rt=n[e.charAt(De)];if(v&&(L[De]=+!!rt),ie[W]=(ie[W+1]<<1|1)&rt,k&&(ie[W]|=(m[W+1]|m[W])<<1|1|m[W+1]),ie[W]&C&&(_=yi(t,{errors:k,currentLocation:De,expectedLocation:f,distance:i,ignoreLocation:u}),_<=p)){if(p=_,y=De,y<=f)break;D=Math.max(1,2*f-y)}}if(yi(t,{errors:k+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:u})>p)break;m=ie}const R={isMatch:y>=0,score:Math.max(.001,_)};if(v){const k=e1(L,s);k.length?a&&(R.indices=k):R.isMatch=!1}return R}function n1(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}const ho=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class $p{constructor(t,{location:n=N.location,threshold:r=N.threshold,distance:i=N.distance,includeMatches:o=N.includeMatches,findAllMatches:l=N.findAllMatches,minMatchCharLength:s=N.minMatchCharLength,isCaseSensitive:a=N.isCaseSensitive,ignoreDiacritics:u=N.ignoreDiacritics,ignoreLocation:c=N.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:i,includeMatches:o,findAllMatches:l,minMatchCharLength:s,isCaseSensitive:a,ignoreDiacritics:u,ignoreLocation:c},t=a?t:t.toLowerCase(),t=u?ho(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const d=(p,y)=>{this.chunks.push({pattern:p,alphabet:n1(p),startIndex:y})},f=this.pattern.length;if(f>Jt){let p=0;const y=f%Jt,v=f-y;for(;p<v;)d(this.pattern.substr(p,Jt),p),p+=Jt;if(y){const L=f-Jt;d(this.pattern.substr(L),L)}}else d(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:i}=this.options;if(t=n?t:t.toLowerCase(),t=r?ho(t):t,this.pattern===t){let v={isMatch:!0,score:0};return i&&(v.indices=[[0,t.length-1]]),v}const{location:o,distance:l,threshold:s,findAllMatches:a,minMatchCharLength:u,ignoreLocation:c}=this.options;let d=[],f=0,p=!1;this.chunks.forEach(({pattern:v,alphabet:L,startIndex:g})=>{const{isMatch:m,score:_,indices:E}=t1(t,v,L,{location:o+g,distance:l,threshold:s,findAllMatches:a,minMatchCharLength:u,includeMatches:i,ignoreLocation:c});m&&(p=!0),f+=_,m&&E&&(d=[...d,...E])});let y={isMatch:p,score:p?f/this.chunks.length:1};return p&&i&&(y.indices=d),y}}class Kt{constructor(t){this.pattern=t}static isMultiMatch(t){return Lc(t,this.multiRegex)}static isSingleMatch(t){return Lc(t,this.singleRegex)}search(){}}function Lc(e,t){const n=e.match(t);return n?n[1]:null}class r1 extends Kt{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class i1 extends Kt{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class o1 extends Kt{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class l1 extends Kt{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class s1 extends Kt{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class a1 extends Kt{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Up extends Kt{constructor(t,{location:n=N.location,threshold:r=N.threshold,distance:i=N.distance,includeMatches:o=N.includeMatches,findAllMatches:l=N.findAllMatches,minMatchCharLength:s=N.minMatchCharLength,isCaseSensitive:a=N.isCaseSensitive,ignoreDiacritics:u=N.ignoreDiacritics,ignoreLocation:c=N.ignoreLocation}={}){super(t),this._bitapSearch=new $p(t,{location:n,threshold:r,distance:i,includeMatches:o,findAllMatches:l,minMatchCharLength:s,isCaseSensitive:a,ignoreDiacritics:u,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Gp extends Kt{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const i=[],o=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+o,i.push([r,n-1]);const l=!!i.length;return{isMatch:l,score:l?0:1,indices:i}}}const Ts=[r1,Gp,o1,l1,a1,s1,i1,Up],Pc=Ts.length,u1=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,c1="|";function d1(e,t={}){return e.split(c1).map(n=>{let r=n.trim().split(u1).filter(o=>o&&!!o.trim()),i=[];for(let o=0,l=r.length;o<l;o+=1){const s=r[o];let a=!1,u=-1;for(;!a&&++u<Pc;){const c=Ts[u];let d=c.isMultiMatch(s);d&&(i.push(new c(d,t)),a=!0)}if(!a)for(u=-1;++u<Pc;){const c=Ts[u];let d=c.isSingleMatch(s);if(d){i.push(new c(d,t));break}}}return i})}const f1=new Set([Up.type,Gp.type]);class p1{constructor(t,{isCaseSensitive:n=N.isCaseSensitive,ignoreDiacritics:r=N.ignoreDiacritics,includeMatches:i=N.includeMatches,minMatchCharLength:o=N.minMatchCharLength,ignoreLocation:l=N.ignoreLocation,findAllMatches:s=N.findAllMatches,location:a=N.location,threshold:u=N.threshold,distance:c=N.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:r,includeMatches:i,minMatchCharLength:o,findAllMatches:s,ignoreLocation:l,location:a,threshold:u,distance:c},t=n?t:t.toLowerCase(),t=r?ho(t):t,this.pattern=t,this.query=d1(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:i,ignoreDiacritics:o}=this.options;t=i?t:t.toLowerCase(),t=o?ho(t):t;let l=0,s=[],a=0;for(let u=0,c=n.length;u<c;u+=1){const d=n[u];s.length=0,l=0;for(let f=0,p=d.length;f<p;f+=1){const y=d[f],{isMatch:v,indices:L,score:g}=y.search(t);if(v){if(l+=1,a+=g,r){const m=y.constructor.type;f1.has(m)?s=[...s,...L]:s.push(L)}}else{a=0,l=0,s.length=0;break}}if(l){let f={isMatch:!0,score:a/l};return r&&(f.indices=s),f}}return{isMatch:!1,score:1}}}const Is=[];function h1(...e){Is.push(...e)}function Ds(e,t){for(let n=0,r=Is.length;n<r;n+=1){let i=Is[n];if(i.condition(e,t))return new i(e,t)}return new $p(e,t)}const mo={AND:"$and",OR:"$or"},Ns={PATH:"$path",PATTERN:"$val"},Os=e=>!!(e[mo.AND]||e[mo.OR]),m1=e=>!!e[Ns.PATH],g1=e=>!Ct(e)&&Fp(e)&&!Os(e),Ac=e=>({[mo.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Hp(e,t,{auto:n=!0}={}){const r=i=>{let o=Object.keys(i);const l=m1(i);if(!l&&o.length>1&&!Os(i))return r(Ac(i));if(g1(i)){const a=l?i[Ns.PATH]:o[0],u=l?i[Ns.PATTERN]:i[a];if(!ct(u))throw new Error(bv(a));const c={keyId:xs(a),pattern:u};return n&&(c.searcher=Ds(u,t)),c}let s={children:[],operator:o[0]};return o.forEach(a=>{const u=i[a];Ct(u)&&u.forEach(c=>{s.children.push(r(c))})}),s};return Os(e)||(e=Ac(e)),r(e)}function _1(e,{ignoreFieldNorm:t=N.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:i,norm:o,score:l})=>{const s=i?i.weight:null;r*=Math.pow(l===0&&s?Number.EPSILON:l,(s||1)*(t?1:o))}),n.score=r})}function y1(e,t){const n=e.matches;t.matches=[],Me(n)&&n.forEach(r=>{if(!Me(r.indices)||!r.indices.length)return;const{indices:i,value:o}=r;let l={indices:i,value:o};r.key&&(l.key=r.key.src),r.idx>-1&&(l.refIndex=r.idx),t.matches.push(l)})}function v1(e,t){t.score=e.score}function E1(e,t,{includeMatches:n=N.includeMatches,includeScore:r=N.includeScore}={}){const i=[];return n&&i.push(y1),r&&i.push(v1),e.map(o=>{const{idx:l}=o,s={item:t[l],refIndex:l};return i.length&&i.forEach(a=>{a(o,s)}),s})}class Yn{constructor(t,n={},r){this.options={...N,...n},this.options.useExtendedSearch,this._keyStore=new Hv(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof ba))throw new Error(Bv);this._myIndex=n||bp(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Me(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,i=this._docs.length;r<i;r+=1){const o=this._docs[r];t(o,r)&&(this.removeAt(r),r-=1,i-=1,n.push(o))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:r,includeScore:i,shouldSort:o,sortFn:l,ignoreFieldNorm:s}=this.options;let a=ct(t)?ct(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return _1(a,{ignoreFieldNorm:s}),o&&a.sort(l),jp(n)&&n>-1&&(a=a.slice(0,n)),E1(a,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(t){const n=Ds(t,this.options),{records:r}=this._myIndex,i=[];return r.forEach(({v:o,i:l,n:s})=>{if(!Me(o))return;const{isMatch:a,score:u,indices:c}=n.searchIn(o);a&&i.push({item:o,idx:l,matches:[{score:u,value:o,norm:s,indices:c}]})}),i}_searchLogical(t){const n=Hp(t,this.options),r=(s,a,u)=>{if(!s.children){const{keyId:d,searcher:f}=s,p=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(a,d),searcher:f});return p&&p.length?[{idx:u,item:a,matches:p}]:[]}const c=[];for(let d=0,f=s.children.length;d<f;d+=1){const p=s.children[d],y=r(p,a,u);if(y.length)c.push(...y);else if(s.operator===mo.AND)return[]}return c},i=this._myIndex.records,o={},l=[];return i.forEach(({$:s,i:a})=>{if(Me(s)){let u=r(n,s,a);u.length&&(o[a]||(o[a]={idx:a,item:s,matches:[]},l.push(o[a])),u.forEach(({matches:c})=>{o[a].matches.push(...c)}))}}),l}_searchObjectList(t){const n=Ds(t,this.options),{keys:r,records:i}=this._myIndex,o=[];return i.forEach(({$:l,i:s})=>{if(!Me(l))return;let a=[];r.forEach((u,c)=>{a.push(...this._findMatches({key:u,value:l[c],searcher:n}))}),a.length&&o.push({idx:s,item:l,matches:a})}),o}_findMatches({key:t,value:n,searcher:r}){if(!Me(n))return[];let i=[];if(Ct(n))n.forEach(({v:o,i:l,n:s})=>{if(!Me(o))return;const{isMatch:a,score:u,indices:c}=r.searchIn(o);a&&i.push({score:u,key:t,value:o,idx:l,norm:s,indices:c})});else{const{v:o,n:l}=n,{isMatch:s,score:a,indices:u}=r.searchIn(o);s&&i.push({score:a,key:t,value:o,norm:l,indices:u})}return i}}Yn.version="7.1.0";Yn.createIndex=bp;Yn.parseIndex=Zv;Yn.config=N;Yn.parseQuery=Hp;h1(p1);function S1(){const{flatFiles:e,setCurrentFile:t,setShowFuzzyFinder:n}=No(),[r,i]=M.useState(""),[o,l]=M.useState(0),s=M.useRef(null);M.useEffect(()=>{var f;(f=s.current)==null||f.focus()},[]);const a=M.useMemo(()=>new Yn(e,{threshold:.4,distance:100}),[e]),u=M.useMemo(()=>r.trim()?a.search(r).slice(0,20).map(f=>f.item):e.slice(0,20),[r,a,e]);M.useEffect(()=>{l(0)},[u]);const c=async f=>{try{const p=await at.getFile(f);t(p),n(!1)}catch(p){console.error("Failed to load file:",p)}},d=f=>{switch(f.key){case"ArrowDown":f.preventDefault(),l(p=>Math.min(p+1,u.length-1));break;case"ArrowUp":f.preventDefault(),l(p=>Math.max(p-1,0));break;case"Enter":f.preventDefault(),u[o]&&c(u[o]);break;case"Escape":f.preventDefault(),n(!1);break}};return S.jsx("div",{className:"fuzzy-finder-overlay",onClick:()=>n(!1),children:S.jsxs("div",{className:"fuzzy-finder",onClick:f=>f.stopPropagation(),children:[S.jsx("input",{ref:s,type:"text",className:"fuzzy-finder-input",placeholder:"Search files...",value:r,onChange:f=>i(f.target.value),onKeyDown:d}),S.jsxs("div",{className:"fuzzy-finder-results",children:[u.map((f,p)=>S.jsx("div",{className:`fuzzy-finder-item ${p===o?"fuzzy-finder-item-selected":""}`,onClick:()=>c(f),onMouseEnter:()=>l(p),children:f},f)),u.length===0&&S.jsx("div",{className:"fuzzy-finder-empty",children:"No files found"})]})]})})}const w1={none:"No Diff",inline:"Inline","side-by-side":"Side by Side"};function k1(){const{leftPanelVisible:e,rightPanelVisible:t,toggleLeftPanel:n,toggleRightPanel:r,diffViewMode:i,cycleDiffViewMode:o}=Oo();return S.jsxs("div",{className:"toolbar",children:[S.jsx("div",{className:"toolbar-left",children:S.jsx("button",{className:`toolbar-btn ${e?"active":""}`,onClick:n,title:"Toggle file tree (Cmd+B)",children:S.jsx(Dg,{size:16})})}),S.jsx("div",{className:"toolbar-center",children:S.jsxs("button",{className:"toolbar-btn diff-toggle",onClick:o,title:"Cycle diff mode (Cmd+D)",children:[S.jsx(Tg,{size:16}),S.jsx("span",{className:"diff-mode-label",children:w1[i]})]})}),S.jsx("div",{className:"toolbar-right",children:S.jsx("button",{className:`toolbar-btn ${t?"active":""}`,onClick:r,title:"Toggle staging panel (Cmd+Shift+B)",children:S.jsx(Ng,{size:16})})})]})}function C1({onFuzzyFinderToggle:e,onCancel:t,onSubmit:n,onToggleLeftPanel:r,onToggleRightPanel:i,onToggleAllPanels:o,onToggleGitFilter:l,onCycleDiffMode:s}){M.useEffect(()=>{const a=u=>{const c=u.target,d=c.tagName==="INPUT"||c.tagName==="TEXTAREA"||c.isContentEditable;if(u.metaKey&&u.key==="p"||!d&&u.key==="/"){u.preventDefault(),e();return}if(!d&&u.key==="q"){u.preventDefault(),t();return}if(u.metaKey&&u.key==="Enter"){u.preventDefault(),n();return}if(u.metaKey&&!u.shiftKey&&u.key==="b"){u.preventDefault(),r();return}if(u.metaKey&&u.shiftKey&&u.key==="B"){u.preventDefault(),i();return}if(u.metaKey&&u.key==="\\"){u.preventDefault(),o();return}if(u.metaKey&&u.key==="g"){u.preventDefault(),l();return}if(u.metaKey&&u.key==="d"){u.preventDefault(),s();return}u.key};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[e,t,n,r,i,o,l,s])}function L1(){const{currentFile:e,selection:t,setFileTree:n,setFlatFiles:r,setGitStatus:i,showFuzzyFinder:o,setShowFuzzyFinder:l,clearSelection:s}=No(),{items:a,addItem:u}=Vp(),{leftPanelVisible:c,rightPanelVisible:d,toggleLeftPanel:f,toggleRightPanel:p,toggleAllPanels:y,toggleGitFilter:v,cycleDiffViewMode:L}=Oo(),[g,m]=M.useState(!1),_=new URLSearchParams(window.location.search).get("session")||"";M.useEffect(()=>{(async()=>{try{const[x,O,D]=await Promise.all([at.getFiles(),at.getFlatFiles(),at.getGitStatus()]);n(x.tree),r(O.files),i(D)}catch(x){console.error("Failed to load data:",x)}})()},[n,r,i]),C1({onFuzzyFinderToggle:()=>l(!o),onCancel:async()=>{try{await at.cancel(),window.close()}catch(k){console.error("Failed to cancel:",k)}},onSubmit:async()=>{if(a.length!==0){m(!0);try{await at.submit(_,a),window.close()}catch(k){console.error("Failed to submit:",k),m(!1)}}},onToggleLeftPanel:f,onToggleRightPanel:p,onToggleAllPanels:y,onToggleGitFilter:v,onCycleDiffMode:L});const E=k=>{!e||!t||(u({filePath:e.path,startLine:t.startLine,endLine:t.endLine,comment:k}),s())},C=async()=>{if(a.length!==0){m(!0);try{await at.submit(_,a),window.close()}catch(k){console.error("Failed to submit:",k),m(!1)}}},R=async()=>{try{await at.cancel(),window.close()}catch(k){console.error("Failed to cancel:",k)}};return S.jsxs("div",{className:"app",children:[S.jsx(k1,{}),S.jsxs("div",{className:"main-content",children:[S.jsx("aside",{className:`sidebar ${c?"":"collapsed"}`,children:S.jsx(a_,{})}),S.jsx("main",{className:"content",children:S.jsx(Dv,{})}),S.jsx("aside",{className:`staging-panel ${d?"":"collapsed"}`,children:S.jsx(Ov,{})})]}),S.jsxs("footer",{className:"footer",children:[S.jsx(Mv,{selection:t,currentFilePath:(e==null?void 0:e.path)??null,onSubmit:E,onCancel:s}),S.jsxs("div",{className:"footer-actions",children:[S.jsx("button",{className:"btn btn-secondary",onClick:R,children:"Cancel (q)"}),S.jsx("button",{className:"btn btn-primary",onClick:C,disabled:a.length===0||g,children:g?"Submitting...":`Submit (${a.length})`})]})]}),o&&S.jsx(S1,{})]})}Cl.createRoot(document.getElementById("root")).render(S.jsx(zc.StrictMode,{children:S.jsx(L1,{})}));